Skip to content

armgit / GSAP

Public Imported from GitHub
0

GSAP (GreenSock Animation Platform): high-performance JavaScript animation for anything JavaScript can touch. 100% free, including every plugin.

3.0.2

Jack Doylee0cae1242676
diff --git a/README.md b/README.md
index fb37e6d..deb8ffc 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ GSAP is a JavaScript library for building high-performance animations that work
### What is GSAP? (video)
-[![What is GSAP?](http://img.youtube.com/vi/RYuau0NeR1U/0.jpg)](http://www.youtube.com/watch?v=RYuau0NeR1U)
+[![What is GSAP?](http://greensock.com/_img/github/thumb-what-is-gsap-small.jpg)](http://www.youtube.com/watch?v=RYuau0NeR1U)
GSAP is completely flexible; sprinkle it wherever you want. **Zero dependencies.**
@@ -18,7 +18,7 @@ View the <a href="https://greensock.com/docs">full documentation here</a>, inclu
### CDN
```html
-<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.0.1/gsap.min.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.0.2/gsap.min.js"></script>
```
Click the green "Get GSAP Now" button at <a href="https://greensock.com/?download=GSAP-JS">greensock.com</a> for more options and installation instructions, including CDN URLs for various plugins.
@@ -49,6 +49,11 @@ The NPM files are ES modules, but there's also a /dist/ directory with UMD files
Download <a href="https://greensock.com/club/">Club GreenSock</a>-only plugins from your GreenSock.com account and then treat them as part of your own JS payload. Post other questions in our <a href="https://greensock.com/forums/">forums</a> and we'd be happy to help.
+
+### Getting Started (includes video)
+
+[![Getting Started with GSAP](http://greensock.com/_img/github/thumb-getting-started-small.gif)](http://greensock.com/get-started)
+
### Resources
* <a href="https://greensock.com/">GSAP home page</a>
@@ -67,14 +72,12 @@ Sign up for a free GreenSock account to gain access to <a href="https://greensoc
### What is Club GreenSock? (video)
-[![What is Club GreenSock?](http://img.youtube.com/vi/Ome_KnloOhs/0.jpg)](http://www.youtube.com/watch?v=Ome_KnloOhs)
+[![What is Club GreenSock?](http://greensock.com/_img/github/thumb-what-is-club-greensock-small.jpg)](http://www.youtube.com/watch?v=Ome_KnloOhs)
<a href="https://greensock.com/club/">Sign up</a> anytime.
### Advanced playback controls &amp; debugging
-<a href="https://greensock.com/gsdevtools/">![GSDevTools](https://greensock.com/_img/github/GSDevTools-github-thumb.gif)</a>
-
<a href="https://greensock.com/gsdevtools/">GSDevTools</a> adds a visual UI for controlling your GSAP animations which can significantly boost your workflow and productivity. (<a href="https://greensock.com/club">Club GreenSock</a> membership required, not included in this repository).
### Try all bonus plugins for free on Codepen
diff --git a/dist/CSSRulePlugin.js b/dist/CSSRulePlugin.js
index 2da0b73..bbaaed0 100644
--- a/dist/CSSRulePlugin.js
+++ b/dist/CSSRulePlugin.js
@@ -2,10 +2,10 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
-}(this, function (exports) { 'use strict';
+}(this, (function (exports) { 'use strict';
/*!
- * CSSRulePlugin 3.0.0
+ * CSSRulePlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -51,7 +51,7 @@
};
var CSSRulePlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "cssRule",
init: function init(target, value, tween, index, targets) {
if (!_checkRegister() || typeof target.cssText === "undefined") {
@@ -135,4 +135,4 @@
Object.defineProperty(exports, '__esModule', { value: true });
-}));
+})));
diff --git a/dist/CSSRulePlugin.min.js b/dist/CSSRulePlugin.min.js
index 5324bc6..1d76268 100644
--- a/dist/CSSRulePlugin.min.js
+++ b/dist/CSSRulePlugin.min.js
@@ -1,11 +1,11 @@
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";
/*!
- * CSSRulePlugin 3.0.0
- * https://greensock.com
- *
- * @license Copyright 2008-2019, 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, [email protected]
- */function h(){return"undefined"!=typeof window}function i(){return t||h()&&(t=window.gsap)&&t.registerPlugin&&t}function j(){return n||(s(),o||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),n}var t,n,c,o,s=function _initCore(e){t=e||i(),h()&&(c=document),t&&(o=t.plugins.css)&&(n=1)},r={version:"3.0.0",name:"cssRule",init:function init(e,t,n,i,s){if(!j()||void 0===e.cssText)return!1;var r=e._gsProxy=e._gsProxy||c.createElement("div");this.ss=e,this.style=r.style,r.style.cssText=e.cssText,o.prototype.init.call(this,r,t,n,i,s)},render:function render(e,t){for(var n=t._pt,i=t.style,s=t.ss,r=i.length;n;)n.r(e,n.d),n=n._next;for(;-1<--r;)s[i[r]]=i[i[r]]},getRule:function getRule(e){j();var t,n,i,s,r=c.all?"rules":"cssRules",o=c.styleSheets,l=o.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(s=[]);l--;){try{if(!(n=o[l][r]))continue;t=n.length}catch(e){console.warn(e);continue}for(;-1<--t;)if((i=n[t]).selectorText&&-1!==(","+i.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return i.style;s.push(i.style)}}return s},register:s};i()&&t.registerPlugin(r),e.CSSRulePlugin=r,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})});
+ * CSSRulePlugin 3.0.2
+ * https://greensock.com
+ *
+ * @license Copyright 2019, 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, [email protected]
+ */
+
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function h(){return"undefined"!=typeof window}function i(){return t||h()&&(t=window.gsap)&&t.registerPlugin&&t}function j(){return n||(s(),o||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),n}var t,n,c,o,s=function _initCore(e){t=e||i(),h()&&(c=document),t&&(o=t.plugins.css)&&(n=1)},r={version:"3.0.2",name:"cssRule",init:function init(e,t,n,i,s){if(!j()||void 0===e.cssText)return!1;var r=e._gsProxy=e._gsProxy||c.createElement("div");this.ss=e,this.style=r.style,r.style.cssText=e.cssText,o.prototype.init.call(this,r,t,n,i,s)},render:function render(e,t){for(var n=t._pt,i=t.style,s=t.ss,r=i.length;n;)n.r(e,n.d),n=n._next;for(;-1<--r;)s[i[r]]=i[i[r]]},getRule:function getRule(e){j();var t,n,i,s,r=c.all?"rules":"cssRules",o=c.styleSheets,l=o.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(s=[]);l--;){try{if(!(n=o[l][r]))continue;t=n.length}catch(e){console.warn(e);continue}for(;-1<--t;)if((i=n[t]).selectorText&&-1!==(","+i.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return i.style;s.push(i.style)}}return s},register:s};i()&&t.registerPlugin(r),e.CSSRulePlugin=r,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=CSSRulePlugin.min.js.map
diff --git a/dist/CSSRulePlugin.min.js.map b/dist/CSSRulePlugin.min.js.map
index 9427d5e..a26785a 100644
--- a/dist/CSSRulePlugin.min.js.map
+++ b/dist/CSSRulePlugin.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"CSSRulePlugin.min.js","sources":["../src/CSSRulePlugin.js"],"sourcesContent":["/*!\n * CSSRulePlugin 3.0.0\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _coreInitted, _win, _doc, CSSPlugin,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_checkRegister = () => {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore();\n\t\t\tif (!CSSPlugin) {\n\t\t\t\tconsole.warn(\"Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)\");\n\t\t\t}\n\t\t}\n\t\treturn _coreInitted;\n\t},\n\t_initCore = core => {\n\t\tgsap = core || _getGSAP();\n\t\tif (_windowExists()) {\n\t\t\t_win = window;\n\t\t\t_doc = document;\n\t\t}\n\t\tif (gsap) {\n\t\t\tCSSPlugin = gsap.plugins.css;\n\t\t\tif (CSSPlugin) {\n\t\t\t\t_coreInitted = 1;\n\t\t\t}\n\t\t}\n\t};\n\n\nexport const CSSRulePlugin = {\n\tversion: \"3.0.0\",\n\tname: \"cssRule\",\n\tinit(target, value, tween, index, targets) {\n\t\tif (!_checkRegister() || typeof(target.cssText) === \"undefined\") {\n\t\t\treturn false;\n\t\t}\n\t\tlet div = target._gsProxy = target._gsProxy || _doc.createElement(\"div\");\n\t\tthis.ss = target;\n\t\tthis.style = div.style;\n\t\tdiv.style.cssText = target.cssText;\n\t\tCSSPlugin.prototype.init.call(this, div, value, tween, index, targets); //we just offload all the work to the regular CSSPlugin and then copy the cssText back over to the rule in the render() method. This allows us to have all of the updates to CSSPlugin automatically flow through to CSSRulePlugin instead of having to maintain both\n\t},\n\trender(ratio, data) {\n\t\tlet pt = data._pt,\n\t\t\tstyle = data.style,\n\t\t\tss = data.ss,\n\t\t\ti = style.length;\n\t\twhile (pt) {\n\t\t\tpt.r(ratio, pt.d);\n\t\t\tpt = pt._next;\n\t\t}\n\t\twhile (--i > -1) {\n\t\t\tss[style[i]] = style[style[i]];\n\t\t}\n\t},\n\tgetRule(selector) {\n\t\t_checkRegister();\n\t\tlet ruleProp = _doc.all ? \"rules\" : \"cssRules\",\n\t\t\tstyleSheets = _doc.styleSheets,\n\t\t\ti = styleSheets.length,\n\t\t\tpseudo = (selector.charAt(0) === \":\"),\n\t\t\tj, curSS, cs, a;\n\t\tselector = (pseudo ? \"\" : \",\") + selector.split(\"::\").join(\":\").toLowerCase() + \",\"; //note: old versions of IE report tag name selectors as upper case, so we just change everything to lowercase.\n\t\tif (pseudo) {\n\t\t\ta = [];\n\t\t}\n\t\twhile (i--) {\n\t\t\t//Firefox may throw insecure operation errors when css is loaded from other domains, so try/catch.\n\t\t\ttry {\n\t\t\t\tcurSS = styleSheets[i][ruleProp];\n\t\t\t\tif (!curSS) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tj = curSS.length;\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(e);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile (--j > -1) {\n\t\t\t\tcs = curSS[j];\n\t\t\t\tif (cs.selectorText && (\",\" + cs.selectorText.split(\"::\").join(\":\").toLowerCase() + \",\").indexOf(selector) !== -1) { //note: IE adds an extra \":\" to pseudo selectors, so .myClass:after becomes .myClass::after, so we need to strip the extra one out.\n\t\t\t\t\tif (pseudo) {\n\t\t\t\t\t\ta.push(cs.style);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn cs.style;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t},\n\tregister: _initCore\n};\n\n_getGSAP() && gsap.registerPlugin(CSSRulePlugin);\n\nexport { CSSRulePlugin as default };"],"names":["_windowExists","window","_getGSAP","gsap","registerPlugin","_checkRegister","_coreInitted","_initCore","CSSPlugin","console","warn","_doc","core","document","plugins","css","CSSRulePlugin","version","name","init","target","value","tween","index","targets","cssText","div","_gsProxy","createElement","ss","style","prototype","call","this","render","ratio","data","pt","_pt","i","length","r","d","_next","getRule","selector","j","curSS","cs","a","ruleProp","all","styleSheets","pseudo","charAt","split","join","toLowerCase","e","selectorText","indexOf","push","register"],"mappings":";;;;;;;;;GAYiB,SAAhBA,UAAyC,oBAAZC,OAClB,SAAXC,WAAiBC,GAASH,MAAoBG,EAAOF,OAAOE,OAAS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,MAAM,MAAMC,KAAK,KAAKC,cAAgB,KAAKG,QAAQf,GAAkB,KAC9GQ,SAGIL,EAAGlB,MAFVmB,EAAEY,KAAKb,EAAGlB,eAOPmB,GAERa,SAAUvD,GAGXL,KAAcC,EAAKC,eAAeY"}
\ No newline at end of file
+{"version":3,"file":"CSSRulePlugin.min.js","sources":["../src/CSSRulePlugin.js"],"sourcesContent":["/*!\n * CSSRulePlugin 3.0.2\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _coreInitted, _win, _doc, CSSPlugin,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_checkRegister = () => {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore();\n\t\t\tif (!CSSPlugin) {\n\t\t\t\tconsole.warn(\"Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)\");\n\t\t\t}\n\t\t}\n\t\treturn _coreInitted;\n\t},\n\t_initCore = core => {\n\t\tgsap = core || _getGSAP();\n\t\tif (_windowExists()) {\n\t\t\t_win = window;\n\t\t\t_doc = document;\n\t\t}\n\t\tif (gsap) {\n\t\t\tCSSPlugin = gsap.plugins.css;\n\t\t\tif (CSSPlugin) {\n\t\t\t\t_coreInitted = 1;\n\t\t\t}\n\t\t}\n\t};\n\n\nexport const CSSRulePlugin = {\n\tversion: \"3.0.2\",\n\tname: \"cssRule\",\n\tinit(target, value, tween, index, targets) {\n\t\tif (!_checkRegister() || typeof(target.cssText) === \"undefined\") {\n\t\t\treturn false;\n\t\t}\n\t\tlet div = target._gsProxy = target._gsProxy || _doc.createElement(\"div\");\n\t\tthis.ss = target;\n\t\tthis.style = div.style;\n\t\tdiv.style.cssText = target.cssText;\n\t\tCSSPlugin.prototype.init.call(this, div, value, tween, index, targets); //we just offload all the work to the regular CSSPlugin and then copy the cssText back over to the rule in the render() method. This allows us to have all of the updates to CSSPlugin automatically flow through to CSSRulePlugin instead of having to maintain both\n\t},\n\trender(ratio, data) {\n\t\tlet pt = data._pt,\n\t\t\tstyle = data.style,\n\t\t\tss = data.ss,\n\t\t\ti = style.length;\n\t\twhile (pt) {\n\t\t\tpt.r(ratio, pt.d);\n\t\t\tpt = pt._next;\n\t\t}\n\t\twhile (--i > -1) {\n\t\t\tss[style[i]] = style[style[i]];\n\t\t}\n\t},\n\tgetRule(selector) {\n\t\t_checkRegister();\n\t\tlet ruleProp = _doc.all ? \"rules\" : \"cssRules\",\n\t\t\tstyleSheets = _doc.styleSheets,\n\t\t\ti = styleSheets.length,\n\t\t\tpseudo = (selector.charAt(0) === \":\"),\n\t\t\tj, curSS, cs, a;\n\t\tselector = (pseudo ? \"\" : \",\") + selector.split(\"::\").join(\":\").toLowerCase() + \",\"; //note: old versions of IE report tag name selectors as upper case, so we just change everything to lowercase.\n\t\tif (pseudo) {\n\t\t\ta = [];\n\t\t}\n\t\twhile (i--) {\n\t\t\t//Firefox may throw insecure operation errors when css is loaded from other domains, so try/catch.\n\t\t\ttry {\n\t\t\t\tcurSS = styleSheets[i][ruleProp];\n\t\t\t\tif (!curSS) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tj = curSS.length;\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(e);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile (--j > -1) {\n\t\t\t\tcs = curSS[j];\n\t\t\t\tif (cs.selectorText && (\",\" + cs.selectorText.split(\"::\").join(\":\").toLowerCase() + \",\").indexOf(selector) !== -1) { //note: IE adds an extra \":\" to pseudo selectors, so .myClass:after becomes .myClass::after, so we need to strip the extra one out.\n\t\t\t\t\tif (pseudo) {\n\t\t\t\t\t\ta.push(cs.style);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn cs.style;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t},\n\tregister: _initCore\n};\n\n_getGSAP() && gsap.registerPlugin(CSSRulePlugin);\n\nexport { CSSRulePlugin as default };"],"names":["_windowExists","window","_getGSAP","gsap","registerPlugin","_checkRegister","_coreInitted","_initCore","CSSPlugin","console","warn","_doc","core","document","plugins","css","CSSRulePlugin","version","name","init","target","value","tween","index","targets","cssText","div","_gsProxy","createElement","ss","style","prototype","call","this","render","ratio","data","pt","_pt","i","length","r","d","_next","getRule","selector","j","curSS","cs","a","ruleProp","all","styleSheets","pseudo","charAt","split","join","toLowerCase","e","selectorText","indexOf","push","register"],"mappings":";;;;;;;;;6MAYiB,SAAhBA,UAAyC,oBAAZC,OAClB,SAAXC,WAAiBC,GAASH,MAAoBG,EAAOF,OAAOE,OAASA,EAAKC,gBAAkBD,EAC3E,SAAjBE,WACMC,IACJC,IACKC,GACJC,QAAQC,KAAK,yDAGRJ,MAVLH,EAAMG,EAAoBK,EAAMH,EAYnCD,EAAY,SAAZA,UAAYK,GACXT,EAAOS,GAAQV,IACXF,MAEHW,EAAOE,UAEJV,IACHK,EAAYL,EAAKW,QAAQC,OAExBT,EAAe,IAMNU,EAAgB,CAC5BC,QAAS,QACTC,KAAM,UACNC,mBAAKC,EAAQC,EAAOC,EAAOC,EAAOC,OAC5BnB,UAA+C,IAApBe,EAAOK,eAC/B,MAEJC,EAAMN,EAAOO,SAAWP,EAAOO,UAAYhB,EAAKiB,cAAc,YAC7DC,GAAKT,OACLU,MAAQJ,EAAII,MACjBJ,EAAII,MAAML,QAAUL,EAAOK,QAC3BjB,EAAUuB,UAAUZ,KAAKa,KAAKC,KAAMP,EAAKL,EAAOC,EAAOC,EAAOC,IAE/DU,uBAAOC,EAAOC,WACTC,EAAKD,EAAKE,IACbR,EAAQM,EAAKN,MACbD,EAAKO,EAAKP,GACVU,EAAIT,EAAMU,OACJH,GACNA,EAAGI,EAAEN,EAAOE,EAAGK,GACfL,EAAKA,EAAGM,YAEK,IAALJ,GACRV,EAAGC,EAAMS,IAAMT,EAAMA,EAAMS,KAG7BK,yBAAQC,GACPxC,QAKCyC,EAAGC,EAAOC,EAAIC,EAJXC,EAAWvC,EAAKwC,IAAM,QAAU,WACnCC,EAAczC,EAAKyC,YACnBb,EAAIa,EAAYZ,OAChBa,EAAiC,MAAvBR,EAASS,OAAO,OAE3BT,GAAYQ,EAAS,GAAK,KAAOR,EAASU,MAAM,MAAMC,KAAK,KAAKC,cAAgB,IAC5EJ,IACHJ,EAAI,IAEEV,KAAK,UAGVQ,EAAQK,EAAYb,GAAGW,aAIvBJ,EAAIC,EAAMP,OACT,MAAOkB,GACRjD,QAAQC,KAAKgD,kBAGA,IAALZ,OACRE,EAAKD,EAAMD,IACJa,eAAyG,KAAxF,IAAMX,EAAGW,aAAaJ,MAAM,MAAMC,KAAK,KAAKC,cAAgB,KAAKG,QAAQf,GAAkB,KAC9GQ,SAGIL,EAAGlB,MAFVmB,EAAEY,KAAKb,EAAGlB,eAOPmB,GAERa,SAAUvD,GAGXL,KAAcC,EAAKC,eAAeY"}
\ No newline at end of file
diff --git a/dist/Draggable.js b/dist/Draggable.js
index 7a2267c..1997c8a 100644
--- a/dist/Draggable.js
+++ b/dist/Draggable.js
@@ -2,7 +2,7 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
-}(this, function (exports) { 'use strict';
+}(this, (function (exports) { 'use strict';
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
@@ -58,6 +58,17 @@
},
_svgOwner = function _svgOwner(element) {
return element.ownerSVGElement || ((element.tagName + "").toLowerCase() === "svg" ? element : null);
+ },
+ _isFixed = function _isFixed(element) {
+ if (_win.getComputedStyle(element).position === "fixed") {
+ return true;
+ }
+
+ element = element.parentNode;
+
+ if (element && element.nodeType === 1) {
+ return _isFixed(element);
+ }
},
_createSibling = function _createSibling(element, i) {
if (element.parentNode && (_doc || _setDoc(element))) {
@@ -122,7 +133,7 @@
x: 0,
y: 0
} : element.getBBox();
- m = element.transform.baseVal;
+ m = element.transform ? element.transform.baseVal : [];
if (m.length) {
m = m.consolidate().matrix;
@@ -147,6 +158,7 @@
m = _win.getComputedStyle(element);
container.style[_transformProp] = m[_transformProp];
container.style[_transformOriginProp] = m[_transformOriginProp];
+ container.style.position = m.position === "fixed" ? "fixed" : "absolute";
element.parentNode.appendChild(container);
}
@@ -251,7 +263,7 @@
return Matrix2D;
}();
function getGlobalMatrix(element, inverse) {
- if (!element.parentNode) {
+ if (!element || !element.parentNode) {
return new Matrix2D();
}
@@ -262,7 +274,8 @@
b2 = temps[1].getBoundingClientRect(),
b3 = temps[2].getBoundingClientRect(),
parent = container.parentNode,
- m = new Matrix2D((b2.left - b1.left) / 100, (b2.top - b1.top) / 100, (b3.left - b1.left) / 100, (b3.top - b1.top) / 100, b1.left + _getDocScrollLeft(), b1.top + _getDocScrollTop());
+ isFixed = _isFixed(element),
+ m = new Matrix2D((b2.left - b1.left) / 100, (b2.top - b1.top) / 100, (b3.left - b1.left) / 100, (b3.top - b1.top) / 100, b1.left + (isFixed ? 0 : _getDocScrollLeft()), b1.top + (isFixed ? 0 : _getDocScrollTop()));
parent.removeChild(container);
return inverse ? m.inverse() : m;
@@ -279,6 +292,7 @@
_checkPrefix,
_toArray,
_supportsPassive,
+ _isTouchDevice,
_touchEventLookup,
_dragCount,
_isMultiTouching,
@@ -336,6 +350,15 @@
}
return copy;
+ },
+ _extend = function _extend(obj, defaults) {
+ for (var p in defaults) {
+ if (!(p in obj)) {
+ obj[p] = defaults[p];
+ }
+ }
+
+ return obj;
},
_renderQueueTick = function _renderQueueTick() {
return _renderQueue.forEach(function (func) {
@@ -429,11 +452,11 @@
_addListener(event.target, "touchend", _onMultiTouchDocumentEnd);
},
- _getDocScrollTop$1 = function _getDocScrollTop() {
- return _win$1.pageYOffset || _doc$1.scrollTop || _docElement$1.scrollTop || _body$1.scrollTop || 0;
+ _getDocScrollTop$1 = function _getDocScrollTop(doc) {
+ return _win$1.pageYOffset || doc.scrollTop || doc.documentElement.scrollTop || doc.body.scrollTop || 0;
},
- _getDocScrollLeft$1 = function _getDocScrollLeft() {
- return _win$1.pageXOffset || _doc$1.scrollLeft || _docElement$1.scrollLeft || _body$1.scrollLeft || 0;
+ _getDocScrollLeft$1 = function _getDocScrollLeft(doc) {
+ return _win$1.pageXOffset || doc.scrollLeft || doc.documentElement.scrollLeft || doc.body.scrollLeft || 0;
},
_addScrollListener = function _addScrollListener(e, callback) {
_addListener(e, "scroll", callback);
@@ -450,7 +473,7 @@
}
},
_isRoot = function _isRoot(e) {
- return !!(!e || e === _docElement$1 || e === _doc$1 || e === _doc$1.body || e === _win$1 || !e.nodeType || !e.parentNode);
+ return !!(!e || e === _docElement$1 || e.nodeType === 9 || e === _doc$1.body || e === _win$1 || !e.nodeType || !e.parentNode);
},
_getMaxScroll = function _getMaxScroll(element, axis) {
var dim = axis === "x" ? "Width" : "Height",
@@ -502,11 +525,12 @@
return _tempRect;
}
- var r = !_isUndefined(e.pageX) ? {
- left: e.pageX - _getDocScrollLeft$1(),
- top: e.pageY - _getDocScrollTop$1(),
- right: e.pageX - _getDocScrollLeft$1() + 1,
- bottom: e.pageY - _getDocScrollTop$1() + 1
+ var doc = e.ownerDocument || _doc$1,
+ r = !_isUndefined(e.pageX) ? {
+ left: e.pageX - _getDocScrollLeft$1(doc),
+ top: e.pageY - _getDocScrollTop$1(doc),
+ right: e.pageX - _getDocScrollLeft$1(doc) + 1,
+ bottom: e.pageY - _getDocScrollTop$1(doc) + 1
} : !e.nodeType && !_isUndefined(e.left) && !_isUndefined(e.top) ? e : _toArray(e)[0].getBoundingClientRect();
if (_isUndefined(r.right) && !_isUndefined(r.width)) {
@@ -577,6 +601,7 @@
_getElementBounds = function _getElementBounds(element, context) {
context = _toArray(context)[0];
var isSVG = element.getBBox && element.ownerSVGElement,
+ doc = element.ownerDocument || _doc$1,
left,
right,
top,
@@ -593,10 +618,10 @@
contextParent;
if (element === _win$1) {
- top = _getDocScrollTop$1();
- left = _getDocScrollLeft$1();
- right = left + (_docElement$1.clientWidth || element.innerWidth || _doc$1.body.clientWidth || 0);
- bottom = top + ((element.innerHeight || 0) - 20 < _docElement$1.clientHeight ? _docElement$1.clientHeight : element.innerHeight || _body$1.clientHeight || 0);
+ top = _getDocScrollTop$1(doc);
+ left = _getDocScrollLeft$1(doc);
+ right = left + (doc.documentElement.clientWidth || element.innerWidth || doc.body.clientWidth || 0);
+ bottom = top + ((element.innerHeight || 0) - 20 < doc.documentElement.clientHeight ? doc.documentElement.clientHeight : element.innerHeight || doc.body.clientHeight || 0);
} else if (context === _win$1 || _isUndefined(context)) {
return element.getBoundingClientRect();
} else {
@@ -606,15 +631,19 @@
bbox = element.getBBox();
width = bbox.width;
height = bbox.height;
- } else if (element.viewBox && (bbox = element.viewBox.baseVal)) {
- left = bbox.x || 0;
- top = bbox.y || 0;
- width = bbox.width;
- height = bbox.height;
} else {
- cs = _getComputedStyle(element);
- width = parseFloat(cs.width) || element.clientWidth || 0;
- height = parseFloat(cs.height) || element.clientHeight || 0;
+ if (element.viewBox && (bbox = element.viewBox.baseVal)) {
+ left = bbox.x || 0;
+ top = bbox.y || 0;
+ width = bbox.width;
+ height = bbox.height;
+ }
+
+ if (!width) {
+ cs = _getComputedStyle(element);
+ width = (parseFloat(cs.width) || element.clientWidth || 0) + parseFloat(cs.borderLeftWidth) + parseFloat(cs.borderRightWidth);
+ height = (parseFloat(cs.height) || element.clientHeight || 0) + parseFloat(cs.borderTopWidth) + parseFloat(cs.borderBottomWidth);
+ }
}
right = width;
@@ -732,33 +761,298 @@
while (i--) {
e = elements[i];
e.ondragstart = e.onselectstart = selectable ? null : _emptyFunc;
-
- _setStyle(e, "userSelect", selectable ? "text" : "none");
+ gsap.set(e, {
+ lazy: true,
+ userSelect: selectable ? "text" : "none"
+ });
}
},
- _isFixed = function _isFixed(element) {
+ _isFixed$1 = function _isFixed(element) {
if (_getComputedStyle(element).position === "fixed") {
return true;
}
element = element.parentNode;
- if (element && element !== _docElement$1) {
+ if (element && element.nodeType === 1) {
return _isFixed(element);
}
+ },
+ _supports3D,
+ _addPaddingBR,
+ ScrollProxy = function ScrollProxy(element, vars) {
+ element = gsap.utils.toArray(element)[0];
+ vars = vars || {};
+ var content = document.createElement("div"),
+ style = content.style,
+ node = element.firstChild,
+ offsetTop = 0,
+ offsetLeft = 0,
+ prevTop = element.scrollTop,
+ prevLeft = element.scrollLeft,
+ scrollWidth = element.scrollWidth,
+ scrollHeight = element.scrollHeight,
+ extraPadRight = 0,
+ maxLeft = 0,
+ maxTop = 0,
+ elementWidth,
+ elementHeight,
+ contentHeight,
+ nextNode,
+ transformStart,
+ transformEnd;
+
+ if (_supports3D && vars.force3D !== false) {
+ transformStart = "translate3d(";
+ transformEnd = "px,0px)";
+ } else if (_transformProp$1) {
+ transformStart = "translate(";
+ transformEnd = "px)";
+ }
+
+ this.scrollTop = function (value, force) {
+ if (!arguments.length) {
+ return -this.top();
+ }
+
+ this.top(-value, force);
+ };
+
+ this.scrollLeft = function (value, force) {
+ if (!arguments.length) {
+ return -this.left();
+ }
+
+ this.left(-value, force);
+ };
+
+ this.left = function (value, force) {
+ if (!arguments.length) {
+ return -(element.scrollLeft + offsetLeft);
+ }
+
+ var dif = element.scrollLeft - prevLeft,
+ oldOffset = offsetLeft;
+
+ if ((dif > 2 || dif < -2) && !force) {
+ prevLeft = element.scrollLeft;
+ gsap.killTweensOf(this, {
+ left: 1,
+ scrollLeft: 1
+ });
+ this.left(-prevLeft);
+
+ if (vars.onKill) {
+ vars.onKill();
+ }
+
+ return;
+ }
+
+ value = -value;
+
+ if (value < 0) {
+ offsetLeft = value - 0.5 | 0;
+ value = 0;
+ } else if (value > maxLeft) {
+ offsetLeft = value - maxLeft | 0;
+ value = maxLeft;
+ } else {
+ offsetLeft = 0;
+ }
+
+ if (offsetLeft || oldOffset) {
+ if (!this._skip) {
+ style[_transformProp$1] = transformStart + -offsetLeft + "px," + -offsetTop + transformEnd;
+ }
+
+ if (offsetLeft + extraPadRight >= 0) {
+ style.paddingRight = offsetLeft + extraPadRight + "px";
+ }
+ }
+
+ element.scrollLeft = value | 0;
+ prevLeft = element.scrollLeft;
+ };
+
+ this.top = function (value, force) {
+ if (!arguments.length) {
+ return -(element.scrollTop + offsetTop);
+ }
+
+ var dif = element.scrollTop - prevTop,
+ oldOffset = offsetTop;
+
+ if ((dif > 2 || dif < -2) && !force) {
+ prevTop = element.scrollTop;
+ gsap.killTweensOf(this, {
+ top: 1,
+ scrollTop: 1
+ });
+ this.top(-prevTop);
+
+ if (vars.onKill) {
+ vars.onKill();
+ }
+
+ return;
+ }
+
+ value = -value;
+
+ if (value < 0) {
+ offsetTop = value - 0.5 | 0;
+ value = 0;
+ } else if (value > maxTop) {
+ offsetTop = value - maxTop | 0;
+ value = maxTop;
+ } else {
+ offsetTop = 0;
+ }
+
+ if (offsetTop || oldOffset) {
+ if (!this._skip) {
+ style[_transformProp$1] = transformStart + -offsetLeft + "px," + -offsetTop + transformEnd;
+ }
+ }
+
+ element.scrollTop = value | 0;
+ prevTop = element.scrollTop;
+ };
+
+ this.maxScrollTop = function () {
+ return maxTop;
+ };
+
+ this.maxScrollLeft = function () {
+ return maxLeft;
+ };
+
+ this.disable = function () {
+ node = content.firstChild;
+
+ while (node) {
+ nextNode = node.nextSibling;
+ element.appendChild(node);
+ node = nextNode;
+ }
+
+ if (element === content.parentNode) {
+ element.removeChild(content);
+ }
+ };
+
+ this.enable = function () {
+ node = element.firstChild;
+
+ if (node === content) {
+ return;
+ }
+
+ while (node) {
+ nextNode = node.nextSibling;
+ content.appendChild(node);
+ node = nextNode;
+ }
+
+ element.appendChild(content);
+ this.calibrate();
+ };
+
+ this.calibrate = function (force) {
+ var widthMatches = element.clientWidth === elementWidth,
+ cs,
+ x,
+ y;
+ prevTop = element.scrollTop;
+ prevLeft = element.scrollLeft;
+
+ if (widthMatches && element.clientHeight === elementHeight && content.offsetHeight === contentHeight && scrollWidth === element.scrollWidth && scrollHeight === element.scrollHeight && !force) {
+ return;
+ }
+
+ if (offsetTop || offsetLeft) {
+ x = this.left();
+ y = this.top();
+ this.left(-element.scrollLeft);
+ this.top(-element.scrollTop);
+ }
+
+ cs = _getComputedStyle(element);
+
+ if (!widthMatches || force) {
+ style.display = "block";
+ style.width = "auto";
+ style.paddingRight = "0px";
+ extraPadRight = Math.max(0, element.scrollWidth - element.clientWidth);
+
+ if (extraPadRight) {
+ extraPadRight += parseFloat(cs.paddingLeft) + (_addPaddingBR ? parseFloat(cs.paddingRight) : 0);
+ }
+ }
+
+ style.display = "inline-block";
+ style.position = "relative";
+ style.overflow = "visible";
+ style.verticalAlign = "top";
+ style.boxSizing = "content-box";
+ style.width = "100%";
+ style.paddingRight = extraPadRight + "px";
+
+ if (_addPaddingBR) {
+ style.paddingBottom = cs.paddingBottom;
+ }
+
+ elementWidth = element.clientWidth;
+ elementHeight = element.clientHeight;
+ scrollWidth = element.scrollWidth;
+ scrollHeight = element.scrollHeight;
+ maxLeft = element.scrollWidth - elementWidth;
+ maxTop = element.scrollHeight - elementHeight;
+ contentHeight = content.offsetHeight;
+ style.display = "block";
+
+ if (x || y) {
+ this.left(x);
+ this.top(y);
+ }
+ };
+
+ this.content = content;
+ this.element = element;
+ this._skip = false;
+ this.enable();
},
_initCore = function _initCore(required) {
- if (_windowExists()) {
+ if (_windowExists() && document.body) {
_win$1 = window;
_doc$1 = document;
_docElement$1 = _doc$1.documentElement;
_body$1 = _doc$1.body;
_tempDiv = _createElement("div");
_supportsPointer = !!window.PointerEvent;
- _placeholderDiv = _doc$1.createElement("div");
+ _placeholderDiv = _createElement("div");
_placeholderDiv.style.cssText = "visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab";
_defaultCursor = _placeholderDiv.style.cursor === "grab" ? "grab" : "move";
_isAndroid = _win$1.navigator && _win$1.navigator.userAgent.toLowerCase().indexOf("android") !== -1;
+ _isTouchDevice = "ontouchstart" in _docElement$1 && "orientation" in _win$1;
+
+ _addPaddingBR = function () {
+ var div = _createElement("div"),
+ child = _createElement("div"),
+ childStyle = child.style,
+ parent = _body$1,
+ val;
+
+ childStyle.display = "inline-block";
+ childStyle.position = "relative";
+ div.style.cssText = child.innerHTML = "width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden";
+ div.appendChild(child);
+ parent.appendChild(div);
+ val = child.offsetHeight + 18 > div.scrollHeight;
+ parent.removeChild(div);
+ return val;
+ }();
_touchEventLookup = function (types) {
var standard = types.split(","),
@@ -805,6 +1099,7 @@
_transformProp$1 = _checkPrefix(_transformProp$1);
_transformOriginProp$1 = _checkPrefix(_transformOriginProp$1);
_toArray = gsap.utils.toArray;
+ _supports3D = !!_checkPrefix("perspective");
} else if (required) {
console.warn("Please gsap.registerPlugin(Draggable)");
}
@@ -875,17 +1170,15 @@
_this2.autoScroll = vars.autoScroll || 0;
_this2.lockedAxis = null;
_this2.allowEventDefault = !!vars.allowEventDefault;
- gsap.set(target, {
- x: "+=0"
- });
+ gsap.getProperty(target, "x");
var type = (vars.type || "x,y").toLowerCase(),
xyMode = ~type.indexOf("x") || ~type.indexOf("y"),
rotationMode = type.indexOf("rotation") !== -1,
xProp = rotationMode ? "rotation" : xyMode ? "x" : "left",
yProp = xyMode ? "y" : "top",
- allowX = !!(~type.indexOf("x") || ~type.indexOf("left")),
- allowY = !!(~type.indexOf("y") || ~type.indexOf("top")),
+ allowX = !!(~type.indexOf("x") || ~type.indexOf("left") || type === "scroll"),
+ allowY = !!(~type.indexOf("y") || ~type.indexOf("top") || type === "scroll"),
minimumMovement = vars.minimumMovement || 2,
self = _assertThisInitialized(_this2),
triggers = _toArray(vars.trigger || vars.handle || target),
@@ -899,11 +1192,13 @@
isClickable = vars.clickableTest || _isClickable,
clickTime = 0,
gsCache = target._gsap || gsap.core.getCache(target),
- isFixed = _isFixed(target),
+ isFixed = _isFixed$1(target),
getPropAsNum = function getPropAsNum(property, unit) {
return parseFloat(gsCache.get(target, property, unit));
},
+ ownerDoc = target.ownerDocument || _doc$1,
enabled,
+ scrollProxy,
startPointerX,
startPointerY,
startElementX,
@@ -957,8 +1252,8 @@
changeY,
gap;
checkAutoScrollBounds = false;
- _windowProxy.scrollTop = _win$1.pageYOffset != null ? _win$1.pageYOffset : _docElement$1.scrollTop != null ? _docElement$1.scrollTop : _body$1.scrollTop;
- _windowProxy.scrollLeft = _win$1.pageXOffset != null ? _win$1.pageXOffset : _docElement$1.scrollLeft != null ? _docElement$1.scrollLeft : _body$1.scrollLeft;
+ _windowProxy.scrollTop = _win$1.pageYOffset != null ? _win$1.pageYOffset : ownerDoc.documentElement.scrollTop != null ? ownerDoc.documentElement.scrollTop : ownerDoc.body.scrollTop;
+ _windowProxy.scrollLeft = _win$1.pageXOffset != null ? _win$1.pageXOffset : ownerDoc.documentElement.scrollLeft != null ? ownerDoc.documentElement.scrollLeft : ownerDoc.body.scrollLeft;
pointerX = self.pointerX - _windowProxy.scrollLeft;
pointerY = self.pointerY - _windowProxy.scrollTop;
@@ -1029,7 +1324,17 @@
gsCache.rotation = x + "deg";
gsCache.renderTransform(1, gsCache);
} else {
- if (xyMode) {
+ if (scrollProxy) {
+ if (allowY) {
+ self.deltaY = y - scrollProxy.top();
+ scrollProxy.top(y);
+ }
+
+ if (allowX) {
+ self.deltaX = x - scrollProxy.left();
+ scrollProxy.left(x);
+ }
+ } else if (xyMode) {
if (allowY) {
self.deltaY = y - parseFloat(gsCache.y);
gsCache.y = y + "px";
@@ -1090,6 +1395,9 @@
self.y = parseFloat(gsCache.y);
} else if (rotationMode) {
self.x = self.rotation = parseFloat(gsCache.rotation);
+ } else if (scrollProxy) {
+ self.y = scrollProxy.top();
+ self.x = scrollProxy.left();
} else {
self.y = parseInt(target.style.top || (cs = _getComputedStyle(target)) && cs.top, 10) || 0;
self.x = parseInt(target.style.left || (cs || {}).left, 10) || 0;
@@ -1269,7 +1577,13 @@
var bounds, targetBounds, snap, snapIsRaw;
hasBounds = false;
- if (!!vars.bounds) {
+ if (scrollProxy) {
+ scrollProxy.calibrate();
+ self.minX = minX = -scrollProxy.maxScrollLeft();
+ self.minY = minY = -scrollProxy.maxScrollTop();
+ self.maxX = maxX = self.maxY = maxY = 0;
+ hasBounds = true;
+ } else if (!!vars.bounds) {
bounds = _getBounds(vars.bounds, target.parentNode);
if (rotationMode) {
@@ -1284,10 +1598,10 @@
self.maxY = maxY = bounds.maxY;
} else {
targetBounds = _getBounds(target, target.parentNode);
- self.minX = minX = getPropAsNum(xProp) + bounds.left - targetBounds.left;
- self.minY = minY = getPropAsNum(yProp) + bounds.top - targetBounds.top;
- self.maxX = maxX = minX + (bounds.width - targetBounds.width);
- self.maxY = maxY = minY + (bounds.height - targetBounds.height);
+ self.minX = minX = Math.round(getPropAsNum(xProp, "px") + bounds.left - targetBounds.left);
+ self.minY = minY = Math.round(getPropAsNum(yProp, "px") + bounds.top - targetBounds.top);
+ self.maxX = maxX = Math.round(minX + (bounds.width - targetBounds.width));
+ self.maxY = maxY = Math.round(minY + (bounds.height - targetBounds.height));
}
if (minX > maxX) {
@@ -1319,14 +1633,14 @@
snapY = null;
} else {
if (snap.points) {
- snapXY = buildPointSnapFunc(snapIsRaw ? snap : snap.points, minX, maxX, minY, maxY, snap.radius, 1);
+ snapXY = buildPointSnapFunc(snapIsRaw ? snap : snap.points, minX, maxX, minY, maxY, snap.radius, scrollProxy ? -1 : 1);
} else {
if (allowX) {
- snapX = buildSnapFunc(snapIsRaw ? snap : snap.x || snap.left || snap.scrollLeft, minX, maxX, 1);
+ snapX = buildSnapFunc(snapIsRaw ? snap : snap.x || snap.left || snap.scrollLeft, minX, maxX, scrollProxy ? -1 : 1);
}
if (allowY) {
- snapY = buildSnapFunc(snapIsRaw ? snap : snap.y || snap.top || snap.scrollTop, minY, maxY, 1);
+ snapY = buildSnapFunc(snapIsRaw ? snap : snap.y || snap.top || snap.scrollTop, minY, maxY, scrollProxy ? -1 : 1);
}
}
}
@@ -1355,11 +1669,11 @@
inertia.rotation = _parseInertia(self, snapIsRaw ? snap : snap.rotation, maxX, minX, 1, forceZeroVelocity);
} else {
if (allowX) {
- inertia[xProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.x || snap.left, maxX, minX, 1, forceZeroVelocity || self.lockedAxis === "x");
+ inertia[xProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.x || snap.left, maxX, minX, scrollProxy ? -1 : 1, forceZeroVelocity || self.lockedAxis === "x");
}
if (allowY) {
- inertia[yProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.y || snap.top, maxY, minY, 1, forceZeroVelocity || self.lockedAxis === "y");
+ inertia[yProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.y || snap.top, maxY, minY, scrollProxy ? -1 : 1, forceZeroVelocity || self.lockedAxis === "y");
}
if (snap.points || _isArray(snap) && _isObject(snap[0])) {
@@ -1371,12 +1685,16 @@
self.isThrowing = true;
overshootTolerance = !isNaN(vars.overshootTolerance) ? vars.overshootTolerance : vars.edgeResistance === 1 ? 0 : 1 - self.edgeResistance + 0.2;
- inertia.duration = {
- max: Math.max(vars.minDuration || 0, vars.maxDuration || 0) || 2,
- min: !isNaN(vars.minDuration) ? vars.minDuration : overshootTolerance === 0 || _isObject(inertia) && inertia.resistance > 1000 ? 0 : 0.5,
- overshoot: overshootTolerance
- };
- self.tween = tween = gsap.to(target, {
+
+ if (!inertia.duration) {
+ inertia.duration = {
+ max: Math.max(vars.minDuration || 0, "maxDuration" in vars ? vars.maxDuration : 2),
+ min: !isNaN(vars.minDuration) ? vars.minDuration : overshootTolerance === 0 || _isObject(inertia) && inertia.resistance > 1000 ? 0 : 0.5,
+ overshoot: overshootTolerance
+ };
+ }
+
+ self.tween = tween = gsap.to(scrollProxy || target, {
inertia: inertia,
data: "_draggable",
onComplete: onThrowComplete,
@@ -1386,6 +1704,10 @@
});
if (!vars.fastMode) {
+ if (scrollProxy) {
+ scrollProxy._skip = true;
+ }
+
tween.render(tween.duration(), true, true);
syncXY(true, true);
self.endX = self.x;
@@ -1397,17 +1719,21 @@
tween.play(0);
syncXY(true, true);
+
+ if (scrollProxy) {
+ scrollProxy._skip = false;
+ }
}
} else if (hasBounds) {
self.applyBounds();
}
},
updateMatrix = function updateMatrix(shiftStart) {
- var start = matrix || new Matrix2D(),
+ var start = matrix,
p;
matrix = getGlobalMatrix(target.parentNode, true);
- if (shiftStart && self.isPressed && !matrix.equals(start)) {
+ if (shiftStart && self.isPressed && !matrix.equals(start || new Matrix2D())) {
p = start.inverse().apply({
x: startPointerX,
y: startPointerY
@@ -1424,7 +1750,9 @@
recordStartPositions = function recordStartPositions() {
var edgeTolerance = 1 - self.edgeResistance,
parsedOrigin,
- parent;
+ parent,
+ x,
+ y;
updateMatrix(false);
if (matrix) {
@@ -1440,28 +1768,42 @@
render(true);
}
- if (isTweening()) {
- syncXY(true, true);
+ if (scrollProxy) {
calculateBounds();
+ startElementY = scrollProxy.top();
+ startElementX = scrollProxy.left();
} else {
- self.applyBounds();
- }
+ if (isTweening()) {
+ syncXY(true, true);
+ calculateBounds();
+ } else {
+ self.applyBounds();
+ }
- if (rotationMode) {
- parsedOrigin = target.ownerSVGElement ? [gsCache.xOrigin - target.getBBox().x, gsCache.yOrigin - target.getBBox().y] : (_getComputedStyle(target)[_transformOriginProp$1] || "0 0").split(" ");
- rotationOrigin = self.rotationOrigin = getGlobalMatrix(target).apply({
- x: parseFloat(parsedOrigin[0]) || 0,
- y: parseFloat(parsedOrigin[1]) || 0
- });
- syncXY(true, true);
- startElementX = self.x;
- startElementY = self.y = Math.atan2(rotationOrigin.y - self.pointerY, self.pointerX - rotationOrigin.x) * _RAD2DEG;
- } else {
- parent = !isFixed && target.parentNode;
- startScrollTop = parent ? parent.scrollTop || 0 : 0;
- startScrollLeft = parent ? parent.scrollLeft || 0 : 0;
- startElementY = getPropAsNum(yProp);
- startElementX = getPropAsNum(xProp);
+ if (rotationMode) {
+ parsedOrigin = target.ownerSVGElement ? [gsCache.xOrigin - target.getBBox().x, gsCache.yOrigin - target.getBBox().y] : (_getComputedStyle(target)[_transformOriginProp$1] || "0 0").split(" ");
+ rotationOrigin = self.rotationOrigin = getGlobalMatrix(target).apply({
+ x: parseFloat(parsedOrigin[0]) || 0,
+ y: parseFloat(parsedOrigin[1]) || 0
+ });
+ syncXY(true, true);
+ x = self.pointerX - rotationOrigin.x;
+ y = rotationOrigin.y - self.pointerY;
+
+ if (isFixed) {
+ x -= _getDocScrollLeft$1(ownerDoc);
+ y += _getDocScrollTop$1(ownerDoc);
+ }
+
+ startElementX = self.x;
+ startElementY = self.y = Math.atan2(y, x) * _RAD2DEG;
+ } else {
+ parent = !isFixed && target.parentNode;
+ startScrollTop = parent ? parent.scrollTop || 0 : 0;
+ startScrollLeft = parent ? parent.scrollLeft || 0 : 0;
+ startElementY = getPropAsNum(yProp, "px");
+ startElementX = getPropAsNum(xProp, "px");
+ }
}
if (hasBounds && edgeTolerance) {
@@ -1502,7 +1844,7 @@
self.pointerEvent = e;
if (_touchEventLookup[e.type]) {
- touchEventTarget = ~e.type.indexOf("touch") ? e.currentTarget || e.target : _doc$1;
+ touchEventTarget = ~e.type.indexOf("touch") ? e.currentTarget || e.target : ownerDoc;
_addListener(touchEventTarget, "touchend", onRelease);
@@ -1510,17 +1852,17 @@
_addListener(touchEventTarget, "touchcancel", onRelease);
- _addListener(_doc$1, "touchstart", _onMultiTouchDocument);
+ _addListener(ownerDoc, "touchstart", _onMultiTouchDocument);
} else {
touchEventTarget = null;
- _addListener(_doc$1, "mousemove", onMove);
+ _addListener(ownerDoc, "mousemove", onMove);
}
touchDragAxis = null;
if (!_supportsPointer) {
- _addListener(_doc$1, "mouseup", onRelease);
+ _addListener(ownerDoc, "mouseup", onRelease);
if (e && e.target) {
_addListener(e.target, "mouseup", onRelease);
@@ -1571,7 +1913,7 @@
_recordMaxScrolls(target.parentNode);
}
- if (target.parentNode && self.autoScroll && !rotationMode && target.parentNode._gsMaxScrollX && !_placeholderDiv.parentNode && !target.getBBox) {
+ if (target.parentNode && self.autoScroll && !scrollProxy && !rotationMode && target.parentNode._gsMaxScrollX && !_placeholderDiv.parentNode && !target.getBBox) {
_placeholderDiv.style.width = target.parentNode.scrollWidth + "px";
target.parentNode.appendChild(_placeholderDiv);
}
@@ -1583,10 +1925,17 @@
}
self.isThrowing = false;
- gsap.killTweensOf(target, killProps, true);
+ gsap.killTweensOf(scrollProxy || target, killProps, true);
+
+ if (scrollProxy) {
+ gsap.killTweensOf(target, {
+ scrollTo: 1
+ }, true);
+ }
+
self.tween = self.lockedAxis = null;
- if (vars.zIndexBoost || !rotationMode && vars.zIndexBoost !== false) {
+ if (vars.zIndexBoost || !rotationMode && !scrollProxy && vars.zIndexBoost !== false) {
target.style.zIndex = Draggable.zIndex++;
}
@@ -1598,7 +1947,9 @@
i = triggers.length;
while (--i > -1) {
- _setStyle(triggers[i], "cursor", vars.activeCursor || vars.cursor || (_defaultCursor === "grab" ? "grabbing" : _defaultCursor));
+ gsap.set(triggers[i], {
+ cursor: vars.activeCursor || vars.cursor || (_defaultCursor === "grab" ? "grabbing" : _defaultCursor)
+ });
}
}
@@ -1679,7 +2030,7 @@
checkAutoScrollBounds = true;
}
- setPointerPosition(e.pageX - (isFixed ? _getDocScrollLeft$1() : 0), e.pageY - (isFixed ? _getDocScrollTop$1() : 0), hasMoveCallback);
+ setPointerPosition(e.pageX - (isFixed ? _getDocScrollLeft$1(ownerDoc) : 0), e.pageY - (isFixed ? _getDocScrollTop$1(ownerDoc) : 0), hasMoveCallback);
},
setPointerPosition = function setPointerPosition(pointerX, pointerY, invokeOnMove) {
var dragTolerance = 1 - self.dragResistance,
@@ -1850,15 +2201,15 @@
_removeListener(touchEventTarget, "touchcancel", onRelease);
- _removeListener(_doc$1, "touchstart", _onMultiTouchDocument);
+ _removeListener(ownerDoc, "touchstart", _onMultiTouchDocument);
} else {
- _removeListener(_doc$1, "mousemove", onMove);
+ _removeListener(ownerDoc, "mousemove", onMove);
}
_removeListener(_win$1, "touchforcechange", _preventDefault);
if (!_supportsPointer) {
- _removeListener(_doc$1, "mouseup", onRelease);
+ _removeListener(ownerDoc, "mouseup", onRelease);
if (e && e.target) {
_removeListener(e.target, "mouseup", onRelease);
@@ -1948,8 +2299,8 @@
if (clickTime !== clickDispatch && self.enabled() && !self.isPressed && !originalEvent.defaultPrevented) {
if (eventTarget.click) {
eventTarget.click();
- } else if (_doc$1.createEvent) {
- syntheticEvent = _doc$1.createEvent("MouseEvents");
+ } else if (ownerDoc.createEvent) {
+ syntheticEvent = ownerDoc.createEvent("MouseEvents");
syntheticEvent.initMouseEvent("click", true, true, _win$1, 1, self.pointerEvent.screenX, self.pointerEvent.screenY, self.pointerX, self.pointerY, false, false, false, false, 0, null);
eventTarget.dispatchEvent(syntheticEvent);
}
@@ -1981,7 +2332,7 @@
return true;
},
updateScroll = function updateScroll(e) {
- if (e && self.isDragging) {
+ if (e && self.isDragging && !scrollProxy) {
var parent = e.target || target.parentNode,
deltaX = parent.scrollLeft - parent._gsScrollX,
deltaY = parent.scrollTop - parent._gsScrollY;
@@ -2125,18 +2476,18 @@
return direction;
};
- _this2.applyBounds = function (newBounds) {
+ _this2.applyBounds = function (newBounds, sticky) {
var x, y, forceZeroVelocity, e, parent, isRoot;
if (newBounds && vars.bounds !== newBounds) {
vars.bounds = newBounds;
- return self.update(true);
+ return self.update(true, sticky);
}
syncXY(true);
calculateBounds();
- if (hasBounds) {
+ if (hasBounds && !isTweening()) {
x = self.x;
y = self.y;
@@ -2169,8 +2520,8 @@
_recordMaxScrolls(target.parentNode);
e = target;
- _windowProxy.scrollTop = _win$1.pageYOffset != null ? _win$1.pageYOffset : _docElement$1.scrollTop != null ? _docElement$1.scrollTop : _body$1.scrollTop;
- _windowProxy.scrollLeft = _win$1.pageXOffset != null ? _win$1.pageXOffset : _docElement$1.scrollLeft != null ? _docElement$1.scrollLeft : _body$1.scrollLeft;
+ _windowProxy.scrollTop = _win$1.pageYOffset != null ? _win$1.pageYOffset : ownerDoc.documentElement.scrollTop != null ? ownerDoc.documentElement.scrollTop : ownerDoc.body.scrollTop;
+ _windowProxy.scrollLeft = _win$1.pageXOffset != null ? _win$1.pageXOffset : ownerDoc.documentElement.scrollLeft != null ? ownerDoc.documentElement.scrollLeft : ownerDoc.body.scrollLeft;
while (e && !isRoot) {
isRoot = _isRoot(e.parentNode);
@@ -2229,9 +2580,7 @@
checkAutoScrollBounds = self.isDragging;
render(true);
- }
- if (self.autoScroll) {
_removeScrollListener(target, updateScroll);
_addScrollListener(target, updateScroll);
@@ -2241,7 +2590,12 @@
};
_this2.enable = function (type) {
- var id, i, trigger;
+ var vars = {
+ lazy: true
+ },
+ id,
+ i,
+ trigger;
if (type !== "soft") {
i = triggers.length;
@@ -2258,15 +2612,20 @@
_addListener(trigger, "click", onClick, true);
if (!rotationMode && vars.cursor !== false) {
- _setStyle(trigger, "cursor", vars.cursor || _defaultCursor);
+ vars.cursor = vars.cursor || _defaultCursor;
}
- _setStyle(trigger, "touchCallout", "none");
+ if (gsap.utils.checkPrefix("touchCallout")) {
+ vars.touchCallout = "none";
+ }
- _setStyle(trigger, "touchAction", allowX === allowY ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x");
+ vars.touchAction = allowX === allowY ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x";
+ gsap.set(trigger, vars);
if (trigger.getBBox && trigger.ownerSVGElement) {
- _setStyle(trigger.ownerSVGElement, "touchAction", allowX === allowY ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x");
+ gsap.set(trigger.ownerSVGElement, {
+ touchAction: allowX === allowY ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x"
+ });
}
if (!self.vars.allowContextMenu) {
@@ -2282,13 +2641,22 @@
enabled = true;
if (InertiaPlugin && type !== "soft") {
- InertiaPlugin.track(target, xyMode ? "x,y" : rotationMode ? "rotation" : "top,left");
+ InertiaPlugin.track(scrollProxy || target, xyMode ? "x,y" : rotationMode ? "rotation" : "top,left");
}
target._gsDragID = id = "d" + _lookupCount++;
_lookup[id] = self;
- recordStartPositions();
- self.update(true);
+
+ if (scrollProxy) {
+ scrollProxy.enable();
+ scrollProxy.element._gsDragID = id;
+ }
+
+ if (vars.bounds) {
+ recordStartPositions();
+ self.applyBounds();
+ }
+
return self;
};
@@ -2334,9 +2702,9 @@
_removeListener(touchEventTarget, "touchmove", onMove);
}
- _removeListener(_doc$1, "mouseup", onRelease);
+ _removeListener(ownerDoc, "mouseup", onRelease);
- _removeListener(_doc$1, "mousemove", onMove);
+ _removeListener(ownerDoc, "mousemove", onMove);
}
_removeScrollListener(target, updateScroll);
@@ -2344,7 +2712,11 @@
enabled = false;
if (InertiaPlugin && type !== "soft") {
- InertiaPlugin.untrack(target, xyMode ? "x,y" : rotationMode ? "rotation" : "top,left");
+ InertiaPlugin.untrack(scrollProxy || target, xyMode ? "x,y" : rotationMode ? "rotation" : "top,left");
+ }
+
+ if (scrollProxy) {
+ scrollProxy.disable();
}
_removeFromRenderQueue(render);
@@ -2364,7 +2736,7 @@
_this2.kill = function () {
self.isThrowing = false;
- gsap.killTweensOf(target, killProps, true);
+ gsap.killTweensOf(scrollProxy || target, killProps, true);
self.disable();
gsap.set(triggers, {
clearProps: "userSelect"
@@ -2373,6 +2745,19 @@
return self;
};
+ if (~type.indexOf("scroll")) {
+ scrollProxy = _this2.scrollProxy = new ScrollProxy(target, _extend({
+ onKill: function onKill() {
+ if (self.isPressed) {
+ onRelease(null);
+ }
+ }
+ }, vars));
+ target.style.overflowY = allowY && !_isTouchDevice ? "auto" : "hidden";
+ target.style.overflowX = allowX && !_isTouchDevice ? "auto" : "hidden";
+ target = scrollProxy.content;
+ }
+
if (rotationMode) {
killProps.rotation = 1;
} else {
@@ -2473,7 +2858,7 @@
});
Draggable.zIndex = 1000;
- Draggable.version = "3.0.0";
+ Draggable.version = "3.0.2";
_getGSAP() && gsap.registerPlugin(Draggable);
exports.Draggable = Draggable;
@@ -2481,4 +2866,4 @@
Object.defineProperty(exports, '__esModule', { value: true });
-}));
+})));
diff --git a/dist/Draggable.min.js b/dist/Draggable.min.js
index 7e1c5f8..f42a3d7 100644
--- a/dist/Draggable.min.js
+++ b/dist/Draggable.min.js
@@ -1,2 +1,11 @@
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function s(e,t){if(e.parentNode&&(p||function _setDoc(e){var t=e.ownerDocument||e;!(y in e.style)&&"msTransform"in e.style&&(m=(y="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););return f=window,v=new pe,t&&(d=(p=t).documentElement,g=t.body),t}(e))){var n=E(e),o=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=n?t?"rect":"g":"div",a=2!==t?0:100,i=3===t?100:0,l="position:absolute;display:block;",c=p.createElementNS?p.createElementNS(o.replace(/^https/,"http"),r):p.createElement(r);return t&&(n?(x=x||s(e),c.setAttribute("width",1),c.setAttribute("height",1),c.setAttribute("transform","translate("+a+","+i+")"),x.appendChild(c)):(h||((h=s(e)).style.cssText=l),c.style.cssText=l+"width:1px;height:1px;top:"+i+"px;left:"+a+"px",h.appendChild(c))),c}throw"Need document and parent."}function u(e,t,n,o,r,a,i){return e.a=t,e.b=n,e.c=o,e.d=r,e.e=a,e.f=i,e}var p,f,d,g,h,x,v,t,y="transform",m=y+"Origin",w=[],b=[],c=function _getDocScrollTop(){return f.pageYOffset||p.scrollTop||d.scrollTop||g.scrollTop||0},D=function _getDocScrollLeft(){return f.pageXOffset||p.scrollLeft||d.scrollLeft||g.scrollLeft||0},E=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},M=function _placeSiblings(e){var t,n,o,r,a,i=E(e),l=e===i,c=i?w:b;return e===f?e:(c.length||c.push(s(e,1),s(e,2),s(e,3)),t=i?x:h,i?(o=l?{x:0,y:0}:e.getBBox(),(n=e.transform.baseVal).length?(r=(n=n.consolidate().matrix).a*o.x+n.c*o.y,a=n.b*o.x+n.d*o.y):(n=v,"g"===e.tagName.toLowerCase()?r=a=0:(r=o.x,a=o.y)),t.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+r)+","+(n.f+a)+")"),(l?i:e.parentNode).appendChild(t)):(t.style.top=e.offsetTop+"px",t.style.left=e.offsetLeft+"px",n=f.getComputedStyle(e),t.style[y]=n[y],t.style[m]=n[m],e.parentNode.appendChild(t)),t)},pe=((t=Matrix2D.prototype).inverse=function inverse(){var e=this.a,t=this.b,n=this.c,o=this.d,r=this.e,a=this.f,i=e*o-t*n;return u(this,o/i,-t/i,-n/i,e/i,(n*a-o*r)/i,-(e*a-t*r)/i)},t.multiply=function multiply(e){var t=this.a,n=this.b,o=this.c,r=this.d,a=this.e,i=this.f,l=e.a,s=e.c,c=e.b,p=e.d,f=e.e,d=e.f;return u(this,l*t+c*o,l*n+c*r,s*t+p*o,s*n+p*r,a+f*t+d*o,i+f*n+d*r)},t.equals=function equals(e){var t=this.a,n=this.b,o=this.c,r=this.d,a=this.e,i=this.f;return t===e.a&&n===e.b&&o===e.c&&r===e.d&&a===e.e&&i===e.f},t.apply=function apply(e,t){void 0===t&&(t={});var n=e.x,o=e.y,r=this.a,a=this.b,i=this.c,l=this.d,s=this.e,c=this.f;return t.x=n*r+o*i+s,t.y=n*a+o*l+c,t},Matrix2D);function Matrix2D(e,t,n,o,r,a){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===a&&(a=0),u(this,e,t,n,o,r,a)}function getGlobalMatrix(e,t){if(!e.parentNode)return new pe;var n=E(e)?w:b,o=M(e),r=n[0].getBoundingClientRect(),a=n[1].getBoundingClientRect(),i=n[2].getBoundingClientRect(),l=o.parentNode,s=new pe((a.left-r.left)/100,(a.top-r.top)/100,(i.left-r.left)/100,(i.top-r.top)/100,r.left+D(),r.top+c());return l.removeChild(o),t?s.inverse():s}function O(){return"undefined"!=typeof window}function P(){return fe||O()&&(fe=window.gsap)&&fe.registerPlugin&&fe}function Q(e){return"function"==typeof e}function R(e){return"object"==typeof e}function S(e){return void 0===e}function T(){return 0}function W(e){return Math.round(1e4*e)/1e4}function ia(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function ja(){return Le.forEach(function(e){return e()})}function la(){return!Le.length&&fe.ticker.remove(ja)}function ma(e){for(var t=Le.length;t--;)Le[t]===e&&Le.splice(t,1);fe.to(la,{overwrite:!0,delay:15,duration:0,onComplete:la,data:"_draggable"})}function oa(e,t,n,o){if(e.addEventListener){var r=ye[t];o=o||(l?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&"pointer"!==r.substr(0,7)&&e.addEventListener(t,n,o)}}function pa(e,t,n){if(e.removeEventListener){var o=ye[t];e.removeEventListener(o||t,n),o&&t!==o&&"pointer"!==o.substr(0,7)&&e.removeEventListener(t,n)}}function qa(e){e.preventDefault&&(e.preventDefault(),e.preventManipulation&&e.preventManipulation())}function sa(e){we=e.touches&&me<e.touches.length,pa(e.target,"touchend",sa)}function ta(e){we=e.touches&&me<e.touches.length,oa(e.target,"touchend",sa)}function ua(){return de.pageYOffset||ge.scrollTop||he.scrollTop||xe.scrollTop||0}function va(){return de.pageXOffset||ge.scrollLeft||he.scrollLeft||xe.scrollLeft||0}function wa(e,t){oa(e,"scroll",t),Be(e.parentNode)||wa(e.parentNode,t)}function xa(e,t){pa(e,"scroll",t),Be(e.parentNode)||xa(e.parentNode,t)}function za(e,t){var n="x"===t?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,Be(e)?Math.max(he[o],xe[o])-(de["inner"+n]||he[r]||xe[r]):e[o]-e[r])}function Aa(e){var t=za(e,"x"),n=za(e,"y");Be(e)?e=Oe:Aa(e.parentNode),e._gsMaxScrollX=t,e._gsMaxScrollY=n,e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0}function Ba(e,t,n){var o=e.style;o&&(S(o[t])&&(t=i(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):o[t]=n)}function Ca(e){return de.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Ea(e){if(e===de)return N.left=N.top=0,N.width=N.right=he.clientWidth||e.innerWidth||xe.clientWidth||0,N.height=N.bottom=(e.innerHeight||0)-20<he.clientHeight?he.clientHeight:e.innerHeight||xe.clientHeight||0,N;var t=S(e.pageX)?e.nodeType||S(e.left)||S(e.top)?ve(e)[0].getBoundingClientRect():e:{left:e.pageX-va(),top:e.pageY-ua(),right:e.pageX-va()+1,bottom:e.pageY-ua()+1};return S(t.right)&&!S(t.width)?(t.right=t.left+t.width,t.bottom=t.top+t.height):S(t.width)&&(t={width:t.right-t.left,height:t.bottom-t.top,right:t.right,left:t.left,bottom:t.bottom,top:t.top}),t}function Fa(e,t,n){var o,r=e.vars,a=r[n],i=e._listeners[t];return Q(a)&&(o=a.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),i&&!1===e.dispatchEvent(t)&&(o=!1),o}function Ga(e,t){var n,o,r,a=ve(e)[0];return a.nodeType||a===de?L(a,t):S(e.left)?{left:o=e.min||e.minX||e.minRotation||0,top:n=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-n}:(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})}function Ja(r,a,e,t,i,n){var o,l,s,c={};if(a)if(1!==i&&a instanceof Array){if(c.end=o=[],s=a.length,R(a[0]))for(l=0;l<s;l++)o[l]=ia(a[l],i);else for(l=0;l<s;l++)o[l]=a[l]*i;e+=1.1,t-=1.1}else Q(a)?c.end=function(e){var t,n,o=a.call(r,e);if(1!==i)if(R(o)){for(n in t={},o)t[n]=o[n]*i;o=t}else o*=i;return o}:c.end=a;return!e&&0!==e||(c.max=e),!t&&0!==t||(c.min=t),n&&(c.velocity=0),c}function Ka(e){var t;return!(!e||!e.getAttribute||e===xe)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!e.onclick&&!Y.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Ka(e.parentNode))}function La(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:T,Ba(n,"userSelect",t?"text":"none")}function Na(e){O()&&(de=window,ge=document,he=ge.documentElement,xe=ge.body,a=function _createElement(e,t){var n=ge.createElementNS?ge.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ge.createElement(e);return n.style?n:ge.createElement(e)}("div"),Ee=!!window.PointerEvent,(r=ge.createElement("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",De="grab"===r.style.cursor?"grab":"move",be=de.navigator&&-1!==de.navigator.userAgent.toLowerCase().indexOf("android"),ye=function(e){for(var t=e.split(","),n=(S(a.onpointerdown)?S(a.onmspointerdown)?e:"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":"pointerdown,pointermove,pointerup,pointercancel").split(","),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{he.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){l=1}}))}catch(e){}return o}("touchstart,touchmove,touchend,touchcancel"),oa(ge,"touchcancel",T),oa(de,"touchmove",T),xe&&xe.addEventListener("touchstart",T),oa(ge,"contextmenu",function(){for(var e in _e)_e[e].isPressed&&_e[e].endDrag()}),fe=n=P()),fe?(Te=fe.plugins.inertia,i=fe.utils.checkPrefix,X=i(X),Se=i(Se),ve=fe.utils.toArray):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var fe,de,ge,he,xe,a,r,n,i,ve,l,ye,me,we,be,Te,De,Ee,o,X="transform",Se="transformOrigin",Me=Array.isArray,Xe=180/Math.PI,Ye=1e20,Pe=new pe,Ne=Date.now||function(){return(new Date).getTime()},Le=[],_e={},Re=0,Y=/^(?:a|input|textarea|button|select)$/i,ke=0,Ce={},Oe={},Be=function _isRoot(e){return!(e&&e!==he&&e!==ge&&e!==ge.body&&e!==de&&e.nodeType&&e.parentNode)},N={},Fe={},L=function _getElementBounds(e,t){t=ve(t)[0];var n,o,r,a,i,l,s,c,u,p,f,d,g,h,x=e.getBBox&&e.ownerSVGElement;if(e===de)r=ua(),o=(n=va())+(he.clientWidth||e.innerWidth||ge.body.clientWidth||0),a=r+((e.innerHeight||0)-20<he.clientHeight?he.clientHeight:e.innerHeight||xe.clientHeight||0);else{if(t===de||S(t))return e.getBoundingClientRect();n=r=0,d=x?(f=(p=e.getBBox()).width,p.height):e.viewBox&&(p=e.viewBox.baseVal)?(n=p.x||0,r=p.y||0,f=p.width,p.height):(g=Ca(e),f=parseFloat(g.width)||e.clientWidth||0,parseFloat(g.height)||e.clientHeight||0),o=f,a=d}return e===t?{left:n,top:r,width:o-n,height:a-r}:(l=(i=getGlobalMatrix(t,!0).multiply(getGlobalMatrix(e))).apply({x:n,y:r}),s=i.apply({x:o,y:r}),c=i.apply({x:o,y:a}),u=i.apply({x:n,y:a}),n=Math.min(l.x,s.x,c.x,u.x),r=Math.min(l.y,s.y,c.y,u.y),{left:n+((h=t.parentNode||{}).scrollLeft||0),top:r+(h.scrollTop||0),width:Math.max(l.x,s.x,c.x,u.x)-n,height:Math.max(l.y,s.y,c.y,u.y)-r})},_=((o=EventDispatcher.prototype).addEventListener=function addEventListener(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);~n.indexOf(t)||n.push(t)},o.removeEventListener=function removeEventListener(e,t){var n=this._listeners[e],o=n&&n.indexOf(t)||-1;-1<o&&n.splice(o,1)},o.dispatchEvent=function dispatchEvent(t){var n,o=this;return(this._listeners[t]||[]).forEach(function(e){return!1===e.call(o,{type:t,target:o.target})&&(n=!1)}),n},EventDispatcher);function EventDispatcher(e){this._listeners={},this.target=e||this}var Ae,k=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,Ae=_),Draggable.register=function register(e){fe=e,Na()},Draggable.create=function create(e,t){return n||Na(!0),ve(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return _e[(ve(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(Ne()-ke)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,a,i=Ea(e),l=Ea(t),s=i.top,c=i.left,u=i.right,p=i.bottom,f=i.width,d=i.height,g=l.left>u||l.right<c||l.top>p||l.bottom<s;return g||!n?!g:(a=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(o={left:Math.max(c,l.left),top:Math.max(s,l.top)}).width=Math.min(u,l.right)-o.left,o.height=Math.min(p,l.bottom)-o.top,!(o.width<0||o.height<0)&&(a?f*d*(n*=.01)<=(r=o.width*o.height)||r>=l.width*l.height*n:o.width>n&&o.height>n))},Draggable);function Draggable(d,p){var e;e=Ae.call(this)||this,fe||Na(1),d=ve(d)[0],Te=Te||fe.plugins.inertia,e.vars=p=ia(p||{}),e.target=d,e.x=e.y=e.rotation=0,e.dragResistance=parseFloat(p.dragResistance)||0,e.edgeResistance=isNaN(p.edgeResistance)?1:parseFloat(p.edgeResistance)||0,e.lockAxis=p.lockAxis,e.autoScroll=p.autoScroll||0,e.lockedAxis=null,e.allowEventDefault=!!p.allowEventDefault,fe.set(d,{x:"+=0"});function hf(e,t){return parseFloat(ae.get(d,e,t))}function Of(e){if(!(U.isPressed&&e.which<2))return qa(e),e.stopPropagation(),!1;U.endDrag()}function Pf(e){if(U.autoScroll&&U.isDragging&&($||L)){var t,n,o,r,a,i,l,s,c=d,u=15*U.autoScroll;for($=!1,Oe.scrollTop=null!=de.pageYOffset?de.pageYOffset:null!=he.scrollTop?he.scrollTop:xe.scrollTop,Oe.scrollLeft=null!=de.pageXOffset?de.pageXOffset:null!=he.scrollLeft?he.scrollLeft:xe.scrollLeft,r=U.pointerX-Oe.scrollLeft,a=U.pointerY-Oe.scrollTop;c&&!n;)t=(n=Be(c.parentNode))?Oe:c.parentNode,o=n?{bottom:Math.max(he.clientHeight,de.innerHeight||0),right:Math.max(he.clientWidth,de.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),i=l=0,z&&((s=t._gsMaxScrollY-t.scrollTop)<0?l=s:a>o.bottom-te&&s?($=!0,l=Math.min(s,u*(1-Math.max(0,o.bottom-a)/te)|0)):a<o.top+Z&&t.scrollTop&&($=!0,l=-Math.min(t.scrollTop,u*(1-Math.max(0,a-o.top)/Z)|0)),l&&(t.scrollTop+=l)),V&&((s=t._gsMaxScrollX-t.scrollLeft)<0?i=s:r>o.right-ee&&s?($=!0,i=Math.min(s,u*(1-Math.max(0,o.right-r)/ee)|0)):r<o.left+ne&&t.scrollLeft&&($=!0,i=-Math.min(t.scrollLeft,u*(1-Math.max(0,r-o.left)/ne)|0)),i&&(t.scrollLeft+=i)),n&&(i||l)&&(de.scrollTo(t.scrollLeft,t.scrollTop),ce(U.pointerX+i,U.pointerY+l)),c=t}if(L){var p=U.x,f=U.y;H?(U.deltaX=p-parseFloat(ae.rotation),U.rotation=p,ae.rotation=p+"deg",ae.renderTransform(1,ae)):q?(z&&(U.deltaY=f-parseFloat(ae.y),ae.y=f+"px"),V&&(U.deltaX=p-parseFloat(ae.x),ae.x=p+"px"),ae.renderTransform(1,ae)):(z&&(U.deltaY=f-parseFloat(d.style.top||0),d.style.top=f+"px"),V&&(U.deltaY=p-parseFloat(d.style.left||0),d.style.left=p+"px")),!g||e||A||(!(A=!0)===Fa(U,"drag","onDrag")&&(V&&(U.x-=U.deltaX),z&&(U.y-=U.deltaY),Pf(!0)),A=!1)}L=!1}function Qf(e,t){var n,o,r=U.x,a=U.y;d._gsap||(ae=fe.core.getCache(d)),q?(U.x=parseFloat(ae.x),U.y=parseFloat(ae.y)):H?U.x=U.rotation=parseFloat(ae.rotation):(U.y=parseInt(d.style.top||(o=Ca(d))&&o.top,10)||0,U.x=parseInt(d.style.left||(o||{}).left,10)||0),(_||k||C)&&!t&&(U.isDragging||U.isThrowing)&&(C&&(Ce.x=U.x,Ce.y=U.y,(n=C(Ce)).x!==U.x&&(U.x=n.x,L=!0),n.y!==U.y&&(U.y=n.y,L=!0)),_&&(n=_(U.x))!==U.x&&(U.x=n,H&&(U.rotation=n),L=!0),k&&((n=k(U.y))!==U.y&&(U.y=n),L=!0)),L&&Pf(!0),e||(U.deltaX=U.x-r,U.deltaY=U.y-a,Fa(U,"throwupdate","onThrowUpdate"))}function Rf(i,l,s,n){return null==l&&(l=-Ye),null==s&&(s=Ye),Q(i)?function(e){var t=U.isPressed?1-U.edgeResistance:1;return i.call(U,s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n}:Me(i)?function(e){for(var t,n,o=i.length,r=0,a=Ye;-1<--o;)(n=(t=i[o])-e)<0&&(n=-n),n<a&&l<=t&&t<=s&&(r=o,a=n);return i[r]}:isNaN(i)?function(e){return e}:function(){return i*n}}function Tf(){var e,t,n,o;E=!1,p.bounds&&(e=Ga(p.bounds,d.parentNode),H?(U.minX=X=e.left,U.maxX=M=e.left+e.width,U.minY=P=U.maxY=Y=0):S(p.bounds.maxX)&&S(p.bounds.maxY)?(t=Ga(d,d.parentNode),U.minX=X=hf(u)+e.left-t.left,U.minY=P=hf(G)+e.top-t.top,U.maxX=M=X+(e.width-t.width),U.maxY=Y=P+(e.height-t.height)):(e=p.bounds,U.minX=X=e.minX,U.minY=P=e.minY,U.maxX=M=e.maxX,U.maxY=Y=e.maxY),M<X&&(U.minX=M,U.maxX=M=X,X=U.minX),Y<P&&(U.minY=Y,U.maxY=Y=P,P=U.minY),H&&(U.minRotation=X,U.maxRotation=M),E=!0),p.liveSnap&&(n=!0===p.liveSnap?p.snap||{}:p.liveSnap,o=Me(n)||Q(n),H?(_=Rf(o?n:n.rotation,X,M,1),k=null):n.points?C=function buildPointSnapFunc(s,l,c,u,p,f,d){return f=f&&f<Ye?f*f:Ye,Q(s)?function(e){var t,n,o,r=U.isPressed?1-U.edgeResistance:1,a=e.x,i=e.y;return e.x=a=c<a?c+(a-c)*r:a<l?l+(a-l)*r:a,e.y=i=p<i?p+(i-p)*r:i<u?u+(i-u)*r:i,(t=s.call(U,e))!==e&&(e.x=t.x,e.y=t.y),1!==d&&(e.x*=d,e.y*=d),f<Ye&&(n=e.x-a,o=e.y-i,f<n*n+o*o&&(e.x=a,e.y=i)),e}:Me(s)?function(e){for(var t,n,o,r,a=s.length,i=0,l=Ye;-1<--a;)(r=(t=(o=s[a]).x-e.x)*t+(n=o.y-e.y)*n)<l&&(i=a,l=r);return l<=f?s[i]:e}:function(e){return e}}(o?n:n.points,X,M,P,Y,n.radius,1):(V&&(_=Rf(o?n:n.x||n.left||n.scrollLeft,X,M,1)),z&&(k=Rf(o?n:n.y||n.top||n.scrollTop,P,Y,1))))}function Uf(){U.isThrowing=!1,Fa(U,"throwcomplete","onThrowComplete")}function Vf(){U.isThrowing=!1}function Wf(e,t){var n,o,r,a;e&&Te?(!0===e&&(n=p.snap||p.liveSnap||{},o=Me(n)||Q(n),e={resistance:(p.throwResistance||p.resistance||1e3)/(H?10:1)},H?e.rotation=Ja(U,o?n:n.rotation,M,X,1,t):(V&&(e[u]=Ja(U,o?n:n.points||n.x||n.left,M,X,1,t||"x"===U.lockedAxis)),z&&(e[G]=Ja(U,o?n:n.points||n.y||n.top,Y,P,1,t||"y"===U.lockedAxis)),(n.points||Me(n)&&R(n[0]))&&(e.linkedProps=u+","+G,e.radius=n.radius))),U.isThrowing=!0,a=isNaN(p.overshootTolerance)?1===p.edgeResistance?0:1-U.edgeResistance+.2:p.overshootTolerance,e.duration={max:Math.max(p.minDuration||0,p.maxDuration||0)||2,min:isNaN(p.minDuration)?0===a||R(e)&&1e3<e.resistance?0:.5:p.minDuration,overshoot:a},U.tween=r=fe.to(d,{inertia:e,data:"_draggable",onComplete:Uf,onInterrupt:Vf,onUpdate:p.fastMode?Fa:Qf,onUpdateParams:p.fastMode?[U,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),p.fastMode||(r.render(r.duration(),!0,!0),Qf(!0,!0),U.endX=U.x,U.endY=U.y,H&&(U.endRotation=U.x),r.play(0),Qf(!0,!0))):E&&U.applyBounds()}function Xf(e){var t,n=O||new pe;O=getGlobalMatrix(d.parentNode,!0),e&&U.isPressed&&!O.equals(n)&&(t=n.inverse().apply({x:w,y:b}),O.apply(t,t),w=t.x,b=t.y),O.equals(Pe)&&(O=null)}function Yf(){var e,t,n=1-U.edgeResistance;Xf(!1),O&&(Fe.x=U.pointerX,Fe.y=U.pointerY,O.apply(Fe,Fe),w=Fe.x,b=Fe.y),L&&(ce(U.pointerX,U.pointerY),Pf(!0)),le()?(Qf(!0,!0),Tf()):U.applyBounds(),H?(e=d.ownerSVGElement?[ae.xOrigin-d.getBBox().x,ae.yOrigin-d.getBBox().y]:(Ca(d)[Se]||"0 0").split(" "),N=U.rotationOrigin=getGlobalMatrix(d).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),Qf(!0,!0),T=U.x,D=U.y=Math.atan2(N.y-U.pointerY,U.pointerX-N.x)*Xe):((t=!ie&&d.parentNode)&&t.scrollTop,t&&t.scrollLeft,D=hf(G),T=hf(u)),E&&n&&(M<T?T=M+(T-M)/n:T<X&&(T=X-(X-T)/n),H||(Y<D?D=Y+(D-Y)/n:D<P&&(D=P-(P-D)/n))),U.startX=T,U.startY=D}function $f(){!r.parentNode||le()||U.isDragging||r.parentNode.removeChild(r)}function _f(e,t){var n;if(f&&!U.isPressed&&e&&("mousedown"!==e.type&&"pointerdown"!==e.type||t||!(Ne()-re<30)||!ye[U.pointerEvent.type])){if(m=le(),U.pointerEvent=e,ye[e.type]?(y=~e.type.indexOf("touch")?e.currentTarget||e.target:ge,oa(y,"touchend",ue),oa(y,"touchmove",se),oa(y,"touchcancel",ue),oa(ge,"touchstart",ta)):(y=null,oa(ge,"mousemove",se)),F=null,Ee||(oa(ge,"mouseup",ue),e&&e.target&&oa(e.target,"mouseup",ue)),v=oe.call(U,e.target)&&!1===p.dragClickables&&!t)return oa(e.target,"change",ue),Fa(U,"pressInit","onPressInit"),Fa(U,"press","onPress"),void La(K,!0);if((B=!(!y||V==z||!1===U.vars.allowNativeTouchScrolling||U.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(V?"y":"x"))||U.allowEventDefault||(qa(e),oa(de,"touchforcechange",qa)),e.changedTouches?(e=h=e.changedTouches[0],x=e.identifier):e.pointerId?x=e.pointerId:h=x=null,me++,function _addToRenderQueue(e){Le.push(e),1===Le.length&&fe.ticker.add(ja)}(Pf),b=U.pointerY=e.pageY,w=U.pointerX=e.pageX,Fa(U,"pressInit","onPressInit"),(B||U.autoScroll)&&Aa(d.parentNode),d.parentNode&&U.autoScroll&&!H&&d.parentNode._gsMaxScrollX&&!r.parentNode&&!d.getBBox&&(r.style.width=d.parentNode.scrollWidth+"px",d.parentNode.appendChild(r)),Yf(),U.tween&&U.tween.kill(),U.isThrowing=!1,fe.killTweensOf(d,o,!0),U.tween=U.lockedAxis=null,(p.zIndexBoost||!H&&!1!==p.zIndexBoost)&&(d.style.zIndex=Draggable.zIndex++),U.isPressed=!0,g=!(!p.onDrag&&!U._listeners.drag),s=!(!p.onMove&&!U._listeners.move),!H&&(!1!==p.cursor||p.activeCursor))for(n=K.length;-1<--n;)Ba(K[n],"cursor",p.activeCursor||p.cursor||("grab"===De?"grabbing":De));Fa(U,"press","onPress")}}function dg(e){if(e&&U.isDragging){var t=e.target||d.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(O?(w-=n*O.a+o*O.c,b-=o*O.d+n*O.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,ce(U.pointerX,U.pointerY))}}function eg(e){var t=Ne(),n=t-re<40,o=t-J<40,r=n&&I===re,a=U.pointerEvent&&U.pointerEvent.defaultPrevented,i=n&&c===re,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==U.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!U.pointerEvent||!U.pointerEvent.defaultPrevented)&&(!r||l&&!i))return l&&r&&(c=re),void(I=re);(U.isPressed||o||n)&&(l&&e.detail&&n&&!a||qa(e))}function fg(e){return O?{x:e.x*O.a+e.y*O.c+O.e,y:e.x*O.b+e.y*O.d+O.f}:{x:e.x,y:e.y}}var f,w,b,T,D,E,g,s,M,X,Y,P,h,x,N,L,t,_,k,C,v,y,O,m,B,F,A,I,c,n=(p.type||"x,y").toLowerCase(),q=~n.indexOf("x")||~n.indexOf("y"),H=-1!==n.indexOf("rotation"),u=H?"rotation":q?"x":"left",G=q?"y":"top",V=!(!~n.indexOf("x")&&!~n.indexOf("left")),z=!(!~n.indexOf("y")&&!~n.indexOf("top")),j=p.minimumMovement||2,U=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),K=ve(p.trigger||p.handle||d),o={},J=0,$=!1,Z=p.autoScrollMarginTop||40,ee=p.autoScrollMarginRight||40,te=p.autoScrollMarginBottom||40,ne=p.autoScrollMarginLeft||40,oe=p.clickableTest||Ka,re=0,ae=d._gsap||fe.core.getCache(d),ie=function _isFixed(e){return"fixed"===Ca(e).position||((e=e.parentNode)&&e!==he?_isFixed(e):void 0)}(d),le=function isTweening(){return U.tween&&U.tween.isActive()},se=function onMove(e){var t,n,o,r,a,i,l=e;if(f&&!we&&U.isPressed&&e){if(t=(U.pointerEvent=e).changedTouches){if((e=t[0])!==h&&e.identifier!==x){for(r=t.length;-1<--r&&(e=t[r]).identifier!==x;);if(r<0)return}}else if(e.pointerId&&x&&e.pointerId!==x)return;y&&B&&!F&&(Fe.x=e.pageX,Fe.y=e.pageY,O&&O.apply(Fe,Fe),n=Fe.x,o=Fe.y,((a=Math.abs(n-w))!==(i=Math.abs(o-b))&&(j<a||j<i)||be&&B===F)&&(F=i<a&&V?"x":"y",B&&F!==B&&oa(de,"touchforcechange",qa),!1!==U.vars.lockAxisOnTouchScroll&&(U.lockedAxis="x"===F?"y":"x",Q(U.vars.onLockAxis)&&U.vars.onLockAxis.call(U,l)),be&&B===F))?ue(l):(U.allowEventDefault||B&&(!F||B===F)||!1===l.cancelable||qa(l),U.autoScroll&&($=!0),ce(e.pageX-(ie?va():0),e.pageY-(ie?ua():0),s))}},ce=function setPointerPosition(e,t,n){var o,r,a,i,l,s,c=1-U.dragResistance,u=1-U.edgeResistance,p=U.pointerX,f=U.pointerY,d=D,g=U.x,h=U.y,x=U.endX,v=U.endY,y=U.endRotation,m=L;U.pointerX=e,U.pointerY=t,H?(i=Math.atan2(N.y-t,e-N.x)*Xe,180<(l=U.y-i)?(D-=360,U.y=i):l<-180&&(D+=360,U.y=i),a=U.x!==T||Math.abs(D-i)>j?(U.y=i,T+(D-i)*c):T):(O&&(s=e*O.a+t*O.c+O.e,t=e*O.b+t*O.d+O.f,e=s),(r=t-b)<j&&-j<r&&(r=0),(o=e-w)<j&&-j<o&&(o=0),(U.lockAxis||U.lockedAxis)&&(o||r)&&((s=U.lockedAxis)||(U.lockedAxis=s=V&&Math.abs(o)>Math.abs(r)?"y":z?"x":null,s&&Q(U.vars.onLockAxis)&&U.vars.onLockAxis.call(U,U.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),a=W(T+o*c),i=W(D+r*c)),(_||k||C)&&(U.x!==a||U.y!==i&&!H)?(C&&(Ce.x=a,Ce.y=i,s=C(Ce),a=W(s.x),i=W(s.y)),_&&(a=W(_(a))),k&&(i=W(k(i)))):E&&(M<a?a=M+Math.round((a-M)*u):a<X&&(a=X+Math.round((a-X)*u)),H||(Y<i?i=Math.round(Y+(i-Y)*u):i<P&&(i=Math.round(P+(i-P)*u)))),U.x===a&&(U.y===i||H)||(H?(U.endRotation=U.x=U.endX=a,L=!0):(z&&(U.y=U.endY=i,L=!0),V&&(U.x=U.endX=a,L=!0)),n&&!1===Fa(U,"move","onMove")?(U.pointerX=p,U.pointerY=f,D=d,U.x=g,U.y=h,U.endX=x,U.endY=v,U.endRotation=y,L=m):!U.isDragging&&U.isPressed&&(U.isDragging=!0,Fa(U,"dragstart","onDragStart")))},ue=function onRelease(e,t){if(f&&U.isPressed&&(!e||null==x||t||!(e.pointerId&&e.pointerId!==x||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,x)))){U.isPressed=!1;var n,o,r,a,i,l=e,s=U.isDragging,c=U.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),u=fe.delayedCall(.001,$f);if(y?(pa(y,"touchend",onRelease),pa(y,"touchmove",se),pa(y,"touchcancel",onRelease),pa(ge,"touchstart",ta)):pa(ge,"mousemove",se),pa(de,"touchforcechange",qa),Ee||(pa(ge,"mouseup",onRelease),e&&e.target&&pa(e.target,"mouseup",onRelease)),L=!1,v&&!c)return e&&(pa(e.target,"change",onRelease),U.pointerEvent=l),La(K,!1),Fa(U,"release","onRelease"),Fa(U,"click","onClick"),void(v=!1);if(ma(Pf),!H)for(o=K.length;-1<--o;)Ba(K[o],"cursor",p.cursor||(!1!==p.cursor?De:null));if(s&&(J=ke=Ne(),U.isDragging=!1),me--,e){if((n=e.changedTouches)&&(e=n[0])!==h&&e.identifier!==x){for(o=n.length;-1<--o&&(e=n[o]).identifier!==x;);if(o<0)return}U.pointerEvent=l,U.pointerX=e.pageX,U.pointerY=e.pageY}return c&&l?(qa(l),Fa(U,"release","onRelease")):l&&!s?(m&&(p.snap||p.bounds)&&Wf(p.inertia||p.throwProps),Fa(U,"release","onRelease"),be&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(Fa(U,"click","onClick"),Ne()-re<300&&Fa(U,"doubleclick","onDoubleClick"),a=l.target||d,re=Ne(),i=function syntheticClick(){re===I||!U.enabled()||U.isPressed||l.defaultPrevented||(a.click?a.click():ge.createEvent&&((r=ge.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,de,1,U.pointerEvent.screenX,U.pointerEvent.screenY,U.pointerX,U.pointerY,!1,!1,!1,!1,0,null),a.dispatchEvent(r)))},be||l.defaultPrevented||fe.delayedCall(.05,i))):(Wf(p.inertia||p.throwProps),U.allowEventDefault||!l||!1===p.dragClickables&&oe.call(U,l.target)||!s||B&&(!F||B!==F)||!1===l.cancelable||qa(l),Fa(U,"release","onRelease")),le()&&u.duration(U.tween.duration()),s&&Fa(U,"dragend","onDragEnd"),!0}};return(t=Draggable.get(d))&&t.kill(),e.startDrag=function(e,t){var n,o,r,a;_f(e||U.pointerEvent,!0),t&&!U.hitTest(e||U.pointerEvent)&&(n=Ea(e||U.pointerEvent),o=Ea(d),r=fg({x:n.left+n.width/2,y:n.top+n.height/2}),a=fg({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-a.x,b-=r.y-a.y),U.isDragging||(U.isDragging=!0,Fa(U,"dragstart","onDragStart"))},e.drag=se,e.endDrag=function(e){return ue(e||U.pointerEvent,!0)},e.timeSinceDrag=function(){return U.isDragging?0:(Ne()-J)/1e3},e.timeSinceClick=function(){return(Ne()-re)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(U.target,e,t)},e.getDirection=function(e,t){var n,o,r,a,i,l,s="velocity"===e&&Te?e:R(e)&&!H?"element":"start";return"element"===s&&(i=Ea(U.target),l=Ea(e)),n="start"===s?U.x-T:"velocity"===s?Te.getVelocity(d,u):i.left+i.width/2-(l.left+l.width/2),H?n<0?"counter-clockwise":"clockwise":(t=t||2,o="start"===s?U.y-D:"velocity"===s?Te.getVelocity(d,G):i.top+i.height/2-(l.top+l.height/2),a=(r=Math.abs(n/o))<1/t?"":n<0?"left":"right",r<t&&(""!==a&&(a+="-"),a+=o<0?"up":"down"),a)},e.applyBounds=function(e){var t,n,o,r,a,i;if(e&&p.bounds!==e)return p.bounds=e,U.update(!0);if(Qf(!0),Tf(),E){if(t=U.x,n=U.y,M<t?t=M:t<X&&(t=X),Y<n?n=Y:n<P&&(n=P),(U.x!==t||U.y!==n)&&(o=!0,U.x=U.endX=t,H?U.endRotation=t:U.y=U.endY=n,Pf(L=!0),U.autoScroll&&!U.isDragging))for(Aa(d.parentNode),r=d,Oe.scrollTop=null!=de.pageYOffset?de.pageYOffset:null!=he.scrollTop?he.scrollTop:xe.scrollTop,Oe.scrollLeft=null!=de.pageXOffset?de.pageXOffset:null!=he.scrollLeft?he.scrollLeft:xe.scrollLeft;r&&!i;)a=(i=Be(r.parentNode))?Oe:r.parentNode,z&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),V&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),r=a;U.isThrowing&&(o||U.endX>M||U.endX<X||U.endY>Y||U.endY<P)&&Wf(p.inertia||p.throwProps,o)}return U},e.update=function(e,t,n){var o=U.x,r=U.y;return Xf(!t),e?U.applyBounds():(L&&n&&Pf(!0),Qf(!0)),t&&(ce(U.pointerX,U.pointerY),L&&Pf(!0)),U.isPressed&&!t&&(V&&.01<Math.abs(o-U.x)||z&&.01<Math.abs(r-U.y)&&!H)&&Yf(),U.autoScroll&&(Aa(d.parentNode),$=U.isDragging,Pf(!0)),U.autoScroll&&(xa(d,dg),wa(d,dg)),U},e.enable=function(e){var t,n,o;if("soft"!==e){for(n=K.length;-1<--n;)o=K[n],Ee||oa(o,"mousedown",_f),oa(o,"touchstart",_f),oa(o,"click",eg,!0),H||!1===p.cursor||Ba(o,"cursor",p.cursor||De),Ba(o,"touchCallout","none"),Ba(o,"touchAction",V==z?"none":p.allowNativeTouchScrolling||p.allowEventDefault?"manipulation":V?"pan-y":"pan-x"),o.getBBox&&o.ownerSVGElement&&Ba(o.ownerSVGElement,"touchAction",V==z?"none":p.allowNativeTouchScrolling||p.allowEventDefault?"manipulation":V?"pan-y":"pan-x"),U.vars.allowContextMenu||oa(o,"contextmenu",Of);La(K,!1)}return wa(d,dg),f=!0,Te&&"soft"!==e&&Te.track(d,q?"x,y":H?"rotation":"top,left"),d._gsDragID=t="d"+Re++,_e[t]=U,Yf(),U.update(!0),U},e.disable=function(e){var t,n,o=U.isDragging;if(!H)for(t=K.length;-1<--t;)Ba(K[t],"cursor",null);if("soft"!==e){for(t=K.length;-1<--t;)n=K[t],Ba(n,"touchCallout",null),Ba(n,"touchAction",null),pa(n,"mousedown",_f),pa(n,"touchstart",_f),pa(n,"click",eg),pa(n,"contextmenu",Of);La(K,!0),y&&(pa(y,"touchcancel",ue),pa(y,"touchend",ue),pa(y,"touchmove",se)),pa(ge,"mouseup",ue),pa(ge,"mousemove",se)}return xa(d,dg),f=!1,Te&&"soft"!==e&&Te.untrack(d,q?"x,y":H?"rotation":"top,left"),ma(Pf),U.isDragging=U.isPressed=v=!1,o&&Fa(U,"dragend","onDragEnd"),U},e.enabled=function(e,t){return arguments.length?e?U.enable(t):U.disable(t):f},e.kill=function(){return U.isThrowing=!1,fe.killTweensOf(d,o,!0),U.disable(),fe.set(K,{clearProps:"userSelect"}),delete _e[d._gsDragID],U},H?o.rotation=1:(V&&(o[u]=1),z&&(o[G]=1)),e.enable(),e}!function _setDefaults(e,t){for(var n in t)n in e||(e[n]=t[n])}(k.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),k.zIndex=1e3,k.version="3.0.0",P()&&fe.registerPlugin(k),e.Draggable=k,e.default=k,Object.defineProperty(e,"__esModule",{value:!0})});
+/*!
+ * Draggable 3.0.2
+ * https://greensock.com
+ *
+ * @license Copyright 2019, 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, [email protected]
+ */
+
+!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(e){"use strict";function t(e,n){if(e.parentNode&&(d||function _setDoc(t){var e=t.ownerDocument||t;!(m in t.style)&&"msTransform"in t.style&&(y=(m="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););return u=window,x=new ht,e&&(p=(d=e).documentElement,h=e.body),e}(e))){var o=M(e),r=o?o.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i=o?n?"rect":"g":"div",a=2!==n?0:100,l=3===n?100:0,s="position:absolute;display:block;",c=d.createElementNS?d.createElementNS(r.replace(/^https/,"http"),i):d.createElement(i);return n&&(o?(f=f||t(e),c.setAttribute("width",1),c.setAttribute("height",1),c.setAttribute("transform","translate("+a+","+l+")"),f.appendChild(c)):(g||((g=t(e)).style.cssText=s),c.style.cssText=s+"width:1px;height:1px;top:"+l+"px;left:"+a+"px",g.appendChild(c))),c}throw"Need document and parent."}function v(t,e,n,o,r,i,a){return t.a=e,t.b=n,t.c=o,t.d=r,t.e=i,t.f=a,t}var d,u,p,h,g,f,x,n,m="transform",y=m+"Origin",w=[],b=[],D=function _getDocScrollTop(){return u.pageYOffset||d.scrollTop||p.scrollTop||h.scrollTop||0},E=function _getDocScrollLeft(){return u.pageXOffset||d.scrollLeft||p.scrollLeft||h.scrollLeft||0},M=function _svgOwner(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},k=function _isFixed(t){return"fixed"===u.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)},X=function _placeSiblings(e){var n,o,r,i,a,l=M(e),s=e===l,c=l?w:b;return e===u?e:(c.length||c.push(t(e,1),t(e,2),t(e,3)),n=l?f:g,l?(r=s?{x:0,y:0}:e.getBBox(),(o=e.transform?e.transform.baseVal:[]).length?(i=(o=o.consolidate().matrix).a*r.x+o.c*r.y,a=o.b*r.x+o.d*r.y):(o=x,"g"===e.tagName.toLowerCase()?i=a=0:(i=r.x,a=r.y)),n.setAttribute("transform","matrix("+o.a+","+o.b+","+o.c+","+o.d+","+(o.e+i)+","+(o.f+a)+")"),(s?l:e.parentNode).appendChild(n)):(n.style.top=e.offsetTop+"px",n.style.left=e.offsetLeft+"px",o=u.getComputedStyle(e),n.style[m]=o[m],n.style[y]=o[y],n.style.position="fixed"===o.position?"fixed":"absolute",e.parentNode.appendChild(n)),n)},ht=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,o=this.d,r=this.e,i=this.f,a=t*o-e*n;return v(this,o/a,-e/a,-n/a,t/a,(n*i-o*r)/a,-(t*i-e*r)/a)},n.multiply=function multiply(t){var e=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f,l=t.a,s=t.c,c=t.b,d=t.d,u=t.e,p=t.f;return v(this,l*e+c*o,l*n+c*r,s*e+d*o,s*n+d*r,i+u*e+p*o,a+u*n+p*r)},n.equals=function equals(t){var e=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f;return e===t.a&&n===t.b&&o===t.c&&r===t.d&&i===t.e&&a===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,o=t.y,r=this.a,i=this.b,a=this.c,l=this.d,s=this.e,c=this.f;return e.x=n*r+o*a+s,e.y=n*i+o*l+c,e},Matrix2D);function Matrix2D(t,e,n,o,r,i){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),v(this,t,e,n,o,r,i)}function getGlobalMatrix(t,e){if(!t||!t.parentNode)return new ht;var n=M(t)?w:b,o=X(t),r=n[0].getBoundingClientRect(),i=n[1].getBoundingClientRect(),a=n[2].getBoundingClientRect(),l=o.parentNode,s=k(t),c=new ht((i.left-r.left)/100,(i.top-r.top)/100,(a.left-r.left)/100,(a.top-r.top)/100,r.left+(s?0:E()),r.top+(s?0:D()));return l.removeChild(o),e?c.inverse():c}function Q(){return"undefined"!=typeof window}function R(){return gt||Q()&&(gt=window.gsap)&&gt.registerPlugin&&gt}function S(t){return"function"==typeof t}function T(t){return"object"==typeof t}function U(t){return void 0===t}function V(){return 0}function Y(t){return Math.round(1e4*t)/1e4}function $(t,e){var n=xt.createElementNS?xt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):xt.createElement(t);return n.style?n:xt.createElement(t)}function ka(t,e){var n,o={};for(n in t)o[n]=e?t[n]*e:t[n];return o}function ma(){return i.forEach(function(t){return t()})}function oa(){return!i.length&&gt.ticker.remove(ma)}function pa(t){for(var e=i.length;e--;)i[e]===t&&i.splice(e,1);gt.to(oa,{overwrite:!0,delay:15,duration:0,onComplete:oa,data:"_draggable"})}function ra(t,e,n,o){if(t.addEventListener){var r=bt[e];o=o||(L?{passive:!1}:null),t.addEventListener(r||e,n,o),r&&e!==r&&"pointer"!==r.substr(0,7)&&t.addEventListener(e,n,o)}}function sa(t,e,n){if(t.removeEventListener){var o=bt[e];t.removeEventListener(o||e,n),o&&e!==o&&"pointer"!==o.substr(0,7)&&t.removeEventListener(e,n)}}function ta(t){t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())}function va(t){Dt=t.touches&&Tt<t.touches.length,sa(t.target,"touchend",va)}function wa(t){Dt=t.touches&&Tt<t.touches.length,ra(t.target,"touchend",va)}function xa(t){return ft.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0}function ya(t){return ft.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0}function za(t,e){ra(t,"scroll",e),At(t.parentNode)||za(t.parentNode,e)}function Aa(t,e){sa(t,"scroll",e),At(t.parentNode)||Aa(t.parentNode,e)}function Ca(t,e){var n="x"===e?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,At(t)?Math.max(mt[o],a[o])-(ft["inner"+n]||mt[r]||a[r]):t[o]-t[r])}function Da(t){var e=Ca(t,"x"),n=Ca(t,"y");At(t)?t=Ot:Da(t.parentNode),t._gsMaxScrollX=e,t._gsMaxScrollY=n,t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0}function Ea(t,e,n){var o=t.style;o&&(U(o[e])&&(e=c(e,t)||e),null==n?o.removeProperty&&o.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):o[e]=n)}function Fa(t){return ft.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)}function Ha(t){if(t===ft)return I.left=I.top=0,I.width=I.right=mt.clientWidth||t.innerWidth||a.clientWidth||0,I.height=I.bottom=(t.innerHeight||0)-20<mt.clientHeight?mt.clientHeight:t.innerHeight||a.clientHeight||0,I;var e=t.ownerDocument||xt,n=U(t.pageX)?t.nodeType||U(t.left)||U(t.top)?yt(t)[0].getBoundingClientRect():t:{left:t.pageX-ya(e),top:t.pageY-xa(e),right:t.pageX-ya(e)+1,bottom:t.pageY-xa(e)+1};return U(n.right)&&!U(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):U(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n}function Ia(t,e,n){var o,r=t.vars,i=r[n],a=t._listeners[e];return S(i)&&(o=i.apply(r.callbackScope||t,r[n+"Params"]||[t.pointerEvent])),a&&!1===t.dispatchEvent(e)&&(o=!1),o}function Ja(t,e){var n,o,r,i=yt(t)[0];return i.nodeType||i===ft?O(i,e):U(t.left)?{left:o=t.min||t.minX||t.minRotation||0,top:n=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-o,height:(t.max||t.maxY||0)-n}:(r={x:0,y:0},{left:t.left-r.x,top:t.top-r.y,width:t.width,height:t.height})}function Ma(r,i,t,e,a,n){var o,l,s,c={};if(i)if(1!==a&&i instanceof Array){if(c.end=o=[],s=i.length,T(i[0]))for(l=0;l<s;l++)o[l]=ka(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;t+=1.1,e-=1.1}else S(i)?c.end=function(t){var e,n,o=i.call(r,t);if(1!==a)if(T(o)){for(n in e={},o)e[n]=o[n]*a;o=e}else o*=a;return o}:c.end=i;return!t&&0!==t||(c.max=t),!e&&0!==e||(c.min=e),n&&(c.velocity=0),c}function Na(t){var e;return!(!t||!t.getAttribute||t===a)&&(!("true"!==(e=t.getAttribute("data-clickable"))&&("false"===e||!t.onclick&&!P.test(t.nodeName+"")&&"true"!==t.getAttribute("contentEditable")))||Na(t.parentNode))}function Oa(t,e){for(var n,o=t.length;o--;)(n=t[o]).ondragstart=n.onselectstart=e?null:V,gt.set(n,{lazy:!0,userSelect:e?"text":"none"})}function Sa(i,r){i=gt.utils.toArray(i)[0],r=r||{};var a,l,s,t,c,d,u=document.createElement("div"),p=u.style,e=i.firstChild,h=0,g=0,f=i.scrollTop,x=i.scrollLeft,m=i.scrollWidth,v=i.scrollHeight,y=0,w=0,b=0;_&&!1!==r.force3D?(c="translate3d(",d="px,0px)"):C&&(c="translate(",d="px)"),this.scrollTop=function(t,e){if(!arguments.length)return-this.top();this.top(-t,e)},this.scrollLeft=function(t,e){if(!arguments.length)return-this.left();this.left(-t,e)},this.left=function(t,e){if(!arguments.length)return-(i.scrollLeft+g);var n=i.scrollLeft-x,o=g;if((2<n||n<-2)&&!e)return x=i.scrollLeft,gt.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-x),void(r.onKill&&r.onKill());(t=-t)<0?(g=t-.5|0,t=0):w<t?(g=t-w|0,t=w):g=0,(g||o)&&(this._skip||(p[C]=c+-g+"px,"+-h+d),0<=g+y&&(p.paddingRight=g+y+"px")),i.scrollLeft=0|t,x=i.scrollLeft},this.top=function(t,e){if(!arguments.length)return-(i.scrollTop+h);var n=i.scrollTop-f,o=h;if((2<n||n<-2)&&!e)return f=i.scrollTop,gt.killTweensOf(this,{top:1,scrollTop:1}),this.top(-f),void(r.onKill&&r.onKill());(t=-t)<0?(h=t-.5|0,t=0):b<t?(h=t-b|0,t=b):h=0,(h||o)&&(this._skip||(p[C]=c+-g+"px,"+-h+d)),i.scrollTop=0|t,f=i.scrollTop},this.maxScrollTop=function(){return b},this.maxScrollLeft=function(){return w},this.disable=function(){for(e=u.firstChild;e;)t=e.nextSibling,i.appendChild(e),e=t;i===u.parentNode&&i.removeChild(u)},this.enable=function(){if((e=i.firstChild)!==u){for(;e;)t=e.nextSibling,u.appendChild(e),e=t;i.appendChild(u),this.calibrate()}},this.calibrate=function(t){var e,n,o,r=i.clientWidth===a;f=i.scrollTop,x=i.scrollLeft,r&&i.clientHeight===l&&u.offsetHeight===s&&m===i.scrollWidth&&v===i.scrollHeight&&!t||((h||g)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),e=Fa(i),r&&!t||(p.display="block",p.width="auto",p.paddingRight="0px",(y=Math.max(0,i.scrollWidth-i.clientWidth))&&(y+=parseFloat(e.paddingLeft)+(N?parseFloat(e.paddingRight):0))),p.display="inline-block",p.position="relative",p.overflow="visible",p.verticalAlign="top",p.boxSizing="content-box",p.width="100%",p.paddingRight=y+"px",N&&(p.paddingBottom=e.paddingBottom),a=i.clientWidth,l=i.clientHeight,m=i.scrollWidth,v=i.scrollHeight,w=i.scrollWidth-a,b=i.scrollHeight-l,s=u.offsetHeight,p.display="block",(n||o)&&(this.left(n),this.top(o)))},this.content=u,this.element=i,this._skip=!1,this.enable()}function Ta(t){var e,n,o,r,i;Q()&&document.body&&(ft=window,xt=document,mt=xt.documentElement,a=xt.body,l=$("div"),Yt=!!window.PointerEvent,(vt=$("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",St="grab"===vt.style.cursor?"grab":"move",Et=ft.navigator&&-1!==ft.navigator.userAgent.toLowerCase().indexOf("android"),wt="ontouchstart"in mt&&"orientation"in ft,n=$("div"),o=$("div"),r=o.style,i=a,r.display="inline-block",r.position="relative",n.style.cssText=o.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",n.appendChild(o),i.appendChild(n),e=o.offsetHeight+18>n.scrollHeight,i.removeChild(n),N=e,bt=function(t){for(var e=t.split(","),n=(U(l.onpointerdown)?U(l.onmspointerdown)?t:"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":"pointerdown,pointermove,pointerup,pointercancel").split(","),o={},r=4;-1<--r;)o[e[r]]=n[r],o[n[r]]=e[r];try{mt.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){L=1}}))}catch(t){}return o}("touchstart,touchmove,touchend,touchcancel"),ra(xt,"touchcancel",V),ra(ft,"touchmove",V),a&&a.addEventListener("touchstart",V),ra(xt,"contextmenu",function(){for(var t in Ct)Ct[t].isPressed&&Ct[t].endDrag()}),gt=s=R()),gt?(Mt=gt.plugins.inertia,c=gt.utils.checkPrefix,C=c(C),kt=c(kt),yt=gt.utils.toArray,_=!!c("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")}var gt,ft,xt,mt,a,l,vt,s,c,yt,L,wt,bt,Tt,Dt,Et,Mt,St,Yt,_,N,o,C="transform",kt="transformOrigin",Xt=Array.isArray,Lt=180/Math.PI,_t=1e20,r=new ht,Nt=Date.now||function(){return(new Date).getTime()},i=[],Ct={},Pt=0,P=/^(?:a|input|textarea|button|select)$/i,Rt=0,It={},Ot={},At=function _isRoot(t){return!(t&&t!==mt&&9!==t.nodeType&&t!==xt.body&&t!==ft&&t.nodeType&&t.parentNode)},I={},Bt={},O=function _getElementBounds(t,e){e=yt(e)[0];var n,o,r,i,a,l,s,c,d,u,p,h,g,f,x=t.getBBox&&t.ownerSVGElement,m=t.ownerDocument||xt;if(t===ft)r=xa(m),o=(n=ya(m))+(m.documentElement.clientWidth||t.innerWidth||m.body.clientWidth||0),i=r+((t.innerHeight||0)-20<m.documentElement.clientHeight?m.documentElement.clientHeight:t.innerHeight||m.body.clientHeight||0);else{if(e===ft||U(e))return t.getBoundingClientRect();n=r=0,x?(p=(u=t.getBBox()).width,h=u.height):(t.viewBox&&(u=t.viewBox.baseVal)&&(n=u.x||0,r=u.y||0,p=u.width,h=u.height),p||(g=Fa(t),p=(parseFloat(g.width)||t.clientWidth||0)+parseFloat(g.borderLeftWidth)+parseFloat(g.borderRightWidth),h=(parseFloat(g.height)||t.clientHeight||0)+parseFloat(g.borderTopWidth)+parseFloat(g.borderBottomWidth))),o=p,i=h}return t===e?{left:n,top:r,width:o-n,height:i-r}:(l=(a=getGlobalMatrix(e,!0).multiply(getGlobalMatrix(t))).apply({x:n,y:r}),s=a.apply({x:o,y:r}),c=a.apply({x:o,y:i}),d=a.apply({x:n,y:i}),n=Math.min(l.x,s.x,c.x,d.x),r=Math.min(l.y,s.y,c.y,d.y),{left:n+((f=e.parentNode||{}).scrollLeft||0),top:r+(f.scrollTop||0),width:Math.max(l.x,s.x,c.x,d.x)-n,height:Math.max(l.y,s.y,c.y,d.y)-r})},A=((o=EventDispatcher.prototype).addEventListener=function addEventListener(t,e){var n=this._listeners[t]||(this._listeners[t]=[]);~n.indexOf(e)||n.push(e)},o.removeEventListener=function removeEventListener(t,e){var n=this._listeners[t],o=n&&n.indexOf(e)||-1;-1<o&&n.splice(o,1)},o.dispatchEvent=function dispatchEvent(e){var n,o=this;return(this._listeners[e]||[]).forEach(function(t){return!1===t.call(o,{type:e,target:o.target})&&(n=!1)}),n},EventDispatcher);function EventDispatcher(t){this._listeners={},this.target=t||this}var Ft,B=(function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}(Draggable,Ft=A),Draggable.register=function register(t){gt=t,Ta()},Draggable.create=function create(t,e){return s||Ta(!0),yt(t).map(function(t){return new Draggable(t,e)})},Draggable.get=function get(t){return Ct[(yt(t)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(Nt()-Rt)/1e3},Draggable.hitTest=function hitTest(t,e,n){if(t===e)return!1;var o,r,i,a=Ha(t),l=Ha(e),s=a.top,c=a.left,d=a.right,u=a.bottom,p=a.width,h=a.height,g=l.left>d||l.right<c||l.top>u||l.bottom<s;return g||!n?!g:(i=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(o={left:Math.max(c,l.left),top:Math.max(s,l.top)}).width=Math.min(d,l.right)-o.left,o.height=Math.min(u,l.bottom)-o.top,!(o.width<0||o.height<0)&&(i?p*h*(n*=.01)<=(r=o.width*o.height)||r>=l.width*l.height*n:o.width>n&&o.height>n))},Draggable);function Draggable(h,u){var t;t=Ft.call(this)||this,gt||Ta(1),h=yt(h)[0],Mt=Mt||gt.plugins.inertia,t.vars=u=ka(u||{}),t.target=h,t.x=t.y=t.rotation=0,t.dragResistance=parseFloat(u.dragResistance)||0,t.edgeResistance=isNaN(u.edgeResistance)?1:parseFloat(u.edgeResistance)||0,t.lockAxis=u.lockAxis,t.autoScroll=u.autoScroll||0,t.lockedAxis=null,t.allowEventDefault=!!u.allowEventDefault,gt.getProperty(h,"x");function lg(t,e){return parseFloat(at.get(h,t,e))}function Tg(t){if(!(q.isPressed&&t.which<2))return ta(t),t.stopPropagation(),!1;q.endDrag()}function Ug(t){if(q.autoScroll&&q.isDragging&&(Z||C)){var e,n,o,r,i,a,l,s,c=h,d=15*q.autoScroll;for(Z=!1,Ot.scrollTop=null!=ft.pageYOffset?ft.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,Ot.scrollLeft=null!=ft.pageXOffset?ft.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft,r=q.pointerX-Ot.scrollLeft,i=q.pointerY-Ot.scrollTop;c&&!n;)e=(n=At(c.parentNode))?Ot:c.parentNode,o=n?{bottom:Math.max(mt.clientHeight,ft.innerHeight||0),right:Math.max(mt.clientWidth,ft.innerWidth||0),left:0,top:0}:e.getBoundingClientRect(),a=l=0,j&&((s=e._gsMaxScrollY-e.scrollTop)<0?l=s:i>o.bottom-nt&&s?(Z=!0,l=Math.min(s,d*(1-Math.max(0,o.bottom-i)/nt)|0)):i<o.top+tt&&e.scrollTop&&(Z=!0,l=-Math.min(e.scrollTop,d*(1-Math.max(0,i-o.top)/tt)|0)),l&&(e.scrollTop+=l)),$&&((s=e._gsMaxScrollX-e.scrollLeft)<0?a=s:r>o.right-et&&s?(Z=!0,a=Math.min(s,d*(1-Math.max(0,o.right-r)/et)|0)):r<o.left+ot&&e.scrollLeft&&(Z=!0,a=-Math.min(e.scrollLeft,d*(1-Math.max(0,r-o.left)/ot)|0)),a&&(e.scrollLeft+=a)),n&&(a||l)&&(ft.scrollTo(e.scrollLeft,e.scrollTop),ut(q.pointerX+a,q.pointerY+l)),c=e}if(C){var u=q.x,p=q.y;z?(q.deltaX=u-parseFloat(at.rotation),q.rotation=u,at.rotation=u+"deg",at.renderTransform(1,at)):g?(j&&(q.deltaY=p-g.top(),g.top(p)),$&&(q.deltaX=u-g.left(),g.left(u))):V?(j&&(q.deltaY=p-parseFloat(at.y),at.y=p+"px"),$&&(q.deltaX=u-parseFloat(at.x),at.x=u+"px"),at.renderTransform(1,at)):(j&&(q.deltaY=p-parseFloat(h.style.top||0),h.style.top=p+"px"),$&&(q.deltaY=u-parseFloat(h.style.left||0),h.style.left=u+"px")),!f||t||H||(!(H=!0)===Ia(q,"drag","onDrag")&&($&&(q.x-=q.deltaX),j&&(q.y-=q.deltaY),Ug(!0)),H=!1)}C=!1}function Vg(t,e){var n,o,r=q.x,i=q.y;h._gsap||(at=gt.core.getCache(h)),V?(q.x=parseFloat(at.x),q.y=parseFloat(at.y)):z?q.x=q.rotation=parseFloat(at.rotation):g?(q.y=g.top(),q.x=g.left()):(q.y=parseInt(h.style.top||(o=Fa(h))&&o.top,10)||0,q.x=parseInt(h.style.left||(o||{}).left,10)||0),(P||R||I)&&!e&&(q.isDragging||q.isThrowing)&&(I&&(It.x=q.x,It.y=q.y,(n=I(It)).x!==q.x&&(q.x=n.x,C=!0),n.y!==q.y&&(q.y=n.y,C=!0)),P&&(n=P(q.x))!==q.x&&(q.x=n,z&&(q.rotation=n),C=!0),R&&((n=R(q.y))!==q.y&&(q.y=n),C=!0)),C&&Ug(!0),t||(q.deltaX=q.x-r,q.deltaY=q.y-i,Ia(q,"throwupdate","onThrowUpdate"))}function Wg(a,l,s,n){return null==l&&(l=-_t),null==s&&(s=_t),S(a)?function(t){var e=q.isPressed?1-q.edgeResistance:1;return a.call(q,s<t?s+(t-s)*e:t<l?l+(t-l)*e:t)*n}:Xt(a)?function(t){for(var e,n,o=a.length,r=0,i=_t;-1<--o;)(n=(e=a[o])-t)<0&&(n=-n),n<i&&l<=e&&e<=s&&(r=o,i=n);return a[r]}:isNaN(a)?function(t){return t}:function(){return a*n}}function Yg(){var t,e,n,o;M=!1,g?(g.calibrate(),q.minX=X=-g.maxScrollLeft(),q.minY=_=-g.maxScrollTop(),q.maxX=k=q.maxY=L=0,M=!0):u.bounds&&(t=Ja(u.bounds,h.parentNode),z?(q.minX=X=t.left,q.maxX=k=t.left+t.width,q.minY=_=q.maxY=L=0):U(u.bounds.maxX)&&U(u.bounds.maxY)?(e=Ja(h,h.parentNode),q.minX=X=Math.round(lg(d,"px")+t.left-e.left),q.minY=_=Math.round(lg(G,"px")+t.top-e.top),q.maxX=k=Math.round(X+(t.width-e.width)),q.maxY=L=Math.round(_+(t.height-e.height))):(t=u.bounds,q.minX=X=t.minX,q.minY=_=t.minY,q.maxX=k=t.maxX,q.maxY=L=t.maxY),k<X&&(q.minX=k,q.maxX=k=X,X=q.minX),L<_&&(q.minY=L,q.maxY=L=_,_=q.minY),z&&(q.minRotation=X,q.maxRotation=k),M=!0),u.liveSnap&&(n=!0===u.liveSnap?u.snap||{}:u.liveSnap,o=Xt(n)||S(n),z?(P=Wg(o?n:n.rotation,X,k,1),R=null):n.points?I=function buildPointSnapFunc(s,l,c,d,u,p,h){return p=p&&p<_t?p*p:_t,S(s)?function(t){var e,n,o,r=q.isPressed?1-q.edgeResistance:1,i=t.x,a=t.y;return t.x=i=c<i?c+(i-c)*r:i<l?l+(i-l)*r:i,t.y=a=u<a?u+(a-u)*r:a<d?d+(a-d)*r:a,(e=s.call(q,t))!==t&&(t.x=e.x,t.y=e.y),1!==h&&(t.x*=h,t.y*=h),p<_t&&(n=t.x-i,o=t.y-a,p<n*n+o*o&&(t.x=i,t.y=a)),t}:Xt(s)?function(t){for(var e,n,o,r,i=s.length,a=0,l=_t;-1<--i;)(r=(e=(o=s[i]).x-t.x)*e+(n=o.y-t.y)*n)<l&&(a=i,l=r);return l<=p?s[a]:t}:function(t){return t}}(o?n:n.points,X,k,_,L,n.radius,g?-1:1):($&&(P=Wg(o?n:n.x||n.left||n.scrollLeft,X,k,g?-1:1)),j&&(R=Wg(o?n:n.y||n.top||n.scrollTop,_,L,g?-1:1))))}function Zg(){q.isThrowing=!1,Ia(q,"throwcomplete","onThrowComplete")}function $g(){q.isThrowing=!1}function _g(t,e){var n,o,r,i;t&&Mt?(!0===t&&(n=u.snap||u.liveSnap||{},o=Xt(n)||S(n),t={resistance:(u.throwResistance||u.resistance||1e3)/(z?10:1)},z?t.rotation=Ma(q,o?n:n.rotation,k,X,1,e):($&&(t[d]=Ma(q,o?n:n.points||n.x||n.left,k,X,g?-1:1,e||"x"===q.lockedAxis)),j&&(t[G]=Ma(q,o?n:n.points||n.y||n.top,L,_,g?-1:1,e||"y"===q.lockedAxis)),(n.points||Xt(n)&&T(n[0]))&&(t.linkedProps=d+","+G,t.radius=n.radius))),q.isThrowing=!0,i=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-q.edgeResistance+.2:u.overshootTolerance,t.duration||(t.duration={max:Math.max(u.minDuration||0,"maxDuration"in u?u.maxDuration:2),min:isNaN(u.minDuration)?0===i||T(t)&&1e3<t.resistance?0:.5:u.minDuration,overshoot:i}),q.tween=r=gt.to(g||h,{inertia:t,data:"_draggable",onComplete:Zg,onInterrupt:$g,onUpdate:u.fastMode?Ia:Vg,onUpdateParams:u.fastMode?[q,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),u.fastMode||(g&&(g._skip=!0),r.render(r.duration(),!0,!0),Vg(!0,!0),q.endX=q.x,q.endY=q.y,z&&(q.endRotation=q.x),r.play(0),Vg(!0,!0),g&&(g._skip=!1))):M&&q.applyBounds()}function ah(t){var e,n=O;O=getGlobalMatrix(h.parentNode,!0),t&&q.isPressed&&!O.equals(n||new ht)&&(e=n.inverse().apply({x:w,y:b}),O.apply(e,e),w=e.x,b=e.y),O.equals(r)&&(O=null)}function bh(){var t,e,n,o,r=1-q.edgeResistance;ah(!1),O&&(Bt.x=q.pointerX,Bt.y=q.pointerY,O.apply(Bt,Bt),w=Bt.x,b=Bt.y),C&&(ut(q.pointerX,q.pointerY),Ug(!0)),g?(Yg(),E=g.top(),D=g.left()):(ct()?(Vg(!0,!0),Yg()):q.applyBounds(),z?(t=h.ownerSVGElement?[at.xOrigin-h.getBBox().x,at.yOrigin-h.getBBox().y]:(Fa(h)[kt]||"0 0").split(" "),N=q.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),Vg(!0,!0),n=q.pointerX-N.x,o=N.y-q.pointerY,lt&&(n-=ya(st),o+=xa(st)),D=q.x,E=q.y=Math.atan2(o,n)*Lt):((e=!lt&&h.parentNode)&&e.scrollTop,e&&e.scrollLeft,E=lg(G,"px"),D=lg(d,"px"))),M&&r&&(k<D?D=k+(D-k)/r:D<X&&(D=X-(X-D)/r),z||(L<E?E=L+(E-L)/r:E<_&&(E=_-(_-E)/r))),q.startX=D,q.startY=E}function dh(){!vt.parentNode||ct()||q.isDragging||vt.parentNode.removeChild(vt)}function eh(t,e){var n;if(p&&!q.isPressed&&t&&("mousedown"!==t.type&&"pointerdown"!==t.type||e||!(Nt()-it<30)||!bt[q.pointerEvent.type])){if(A=ct(),q.pointerEvent=t,bt[t.type]?(y=~t.type.indexOf("touch")?t.currentTarget||t.target:st,ra(y,"touchend",pt),ra(y,"touchmove",dt),ra(y,"touchcancel",pt),ra(st,"touchstart",wa)):(y=null,ra(st,"mousemove",dt)),F=null,Yt||(ra(st,"mouseup",pt),t&&t.target&&ra(t.target,"mouseup",pt)),v=rt.call(q,t.target)&&!1===u.dragClickables&&!e)return ra(t.target,"change",pt),Ia(q,"pressInit","onPressInit"),Ia(q,"press","onPress"),void Oa(Q,!0);if((B=!(!y||$==j||!1===q.vars.allowNativeTouchScrolling||q.vars.allowContextMenu&&t&&(t.ctrlKey||2<t.which))&&($?"y":"x"))||q.allowEventDefault||(ta(t),ra(ft,"touchforcechange",ta)),t.changedTouches?(t=x=t.changedTouches[0],m=t.identifier):t.pointerId?m=t.pointerId:x=m=null,Tt++,function _addToRenderQueue(t){i.push(t),1===i.length&&gt.ticker.add(ma)}(Ug),b=q.pointerY=t.pageY,w=q.pointerX=t.pageX,Ia(q,"pressInit","onPressInit"),(B||q.autoScroll)&&Da(h.parentNode),!h.parentNode||!q.autoScroll||g||z||!h.parentNode._gsMaxScrollX||vt.parentNode||h.getBBox||(vt.style.width=h.parentNode.scrollWidth+"px",h.parentNode.appendChild(vt)),bh(),q.tween&&q.tween.kill(),q.isThrowing=!1,gt.killTweensOf(g||h,o,!0),g&&gt.killTweensOf(h,{scrollTo:1},!0),q.tween=q.lockedAxis=null,!u.zIndexBoost&&(z||g||!1===u.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),q.isPressed=!0,f=!(!u.onDrag&&!q._listeners.drag),s=!(!u.onMove&&!q._listeners.move),!z&&(!1!==u.cursor||u.activeCursor))for(n=Q.length;-1<--n;)gt.set(Q[n],{cursor:u.activeCursor||u.cursor||("grab"===St?"grabbing":St)});Ia(q,"press","onPress")}}function ih(t){if(t&&q.isDragging&&!g){var e=t.target||h.parentNode,n=e.scrollLeft-e._gsScrollX,o=e.scrollTop-e._gsScrollY;(n||o)&&(O?(w-=n*O.a+o*O.c,b-=o*O.d+n*O.b):(w-=n,b-=o),e._gsScrollX+=n,e._gsScrollY+=o,ut(q.pointerX,q.pointerY))}}function jh(t){var e=Nt(),n=e-it<40,o=e-J<40,r=n&&W===it,i=q.pointerEvent&&q.pointerEvent.defaultPrevented,a=n&&c===it,l=t.isTrusted||null==t.isTrusted&&n&&r;if((r||o&&!1!==q.vars.suppressClickOnDrag)&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),n&&(!q.pointerEvent||!q.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=it),void(W=it);(q.isPressed||o||n)&&(l&&t.detail&&n&&!i||ta(t))}function kh(t){return O?{x:t.x*O.a+t.y*O.c+O.e,y:t.x*O.b+t.y*O.d+O.f}:{x:t.x,y:t.y}}var p,g,w,b,D,E,M,f,s,k,X,L,_,x,m,N,C,e,P,R,I,v,y,O,A,B,F,H,W,c,n=(u.type||"x,y").toLowerCase(),V=~n.indexOf("x")||~n.indexOf("y"),z=-1!==n.indexOf("rotation"),d=z?"rotation":V?"x":"left",G=V?"y":"top",$=!(!~n.indexOf("x")&&!~n.indexOf("left")&&"scroll"!==n),j=!(!~n.indexOf("y")&&!~n.indexOf("top")&&"scroll"!==n),K=u.minimumMovement||2,q=function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t),Q=yt(u.trigger||u.handle||h),o={},J=0,Z=!1,tt=u.autoScrollMarginTop||40,et=u.autoScrollMarginRight||40,nt=u.autoScrollMarginBottom||40,ot=u.autoScrollMarginLeft||40,rt=u.clickableTest||Na,it=0,at=h._gsap||gt.core.getCache(h),lt=function _isFixed(t){return"fixed"===Fa(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(h),st=h.ownerDocument||xt,ct=function isTweening(){return q.tween&&q.tween.isActive()},dt=function onMove(t){var e,n,o,r,i,a,l=t;if(p&&!Dt&&q.isPressed&&t){if(e=(q.pointerEvent=t).changedTouches){if((t=e[0])!==x&&t.identifier!==m){for(r=e.length;-1<--r&&(t=e[r]).identifier!==m;);if(r<0)return}}else if(t.pointerId&&m&&t.pointerId!==m)return;y&&B&&!F&&(Bt.x=t.pageX,Bt.y=t.pageY,O&&O.apply(Bt,Bt),n=Bt.x,o=Bt.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(K<i||K<a)||Et&&B===F)&&(F=a<i&&$?"x":"y",B&&F!==B&&ra(ft,"touchforcechange",ta),!1!==q.vars.lockAxisOnTouchScroll&&(q.lockedAxis="x"===F?"y":"x",S(q.vars.onLockAxis)&&q.vars.onLockAxis.call(q,l)),Et&&B===F))?pt(l):(q.allowEventDefault||B&&(!F||B===F)||!1===l.cancelable||ta(l),q.autoScroll&&(Z=!0),ut(t.pageX-(lt?ya(st):0),t.pageY-(lt?xa(st):0),s))}},ut=function setPointerPosition(t,e,n){var o,r,i,a,l,s,c=1-q.dragResistance,d=1-q.edgeResistance,u=q.pointerX,p=q.pointerY,h=E,g=q.x,f=q.y,x=q.endX,m=q.endY,v=q.endRotation,y=C;q.pointerX=t,q.pointerY=e,z?(a=Math.atan2(N.y-e,t-N.x)*Lt,180<(l=q.y-a)?(E-=360,q.y=a):l<-180&&(E+=360,q.y=a),i=q.x!==D||Math.abs(E-a)>K?(q.y=a,D+(E-a)*c):D):(O&&(s=t*O.a+e*O.c+O.e,e=t*O.b+e*O.d+O.f,t=s),(r=e-b)<K&&-K<r&&(r=0),(o=t-w)<K&&-K<o&&(o=0),(q.lockAxis||q.lockedAxis)&&(o||r)&&((s=q.lockedAxis)||(q.lockedAxis=s=$&&Math.abs(o)>Math.abs(r)?"y":j?"x":null,s&&S(q.vars.onLockAxis)&&q.vars.onLockAxis.call(q,q.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),i=Y(D+o*c),a=Y(E+r*c)),(P||R||I)&&(q.x!==i||q.y!==a&&!z)?(I&&(It.x=i,It.y=a,s=I(It),i=Y(s.x),a=Y(s.y)),P&&(i=Y(P(i))),R&&(a=Y(R(a)))):M&&(k<i?i=k+Math.round((i-k)*d):i<X&&(i=X+Math.round((i-X)*d)),z||(L<a?a=Math.round(L+(a-L)*d):a<_&&(a=Math.round(_+(a-_)*d)))),q.x===i&&(q.y===a||z)||(z?(q.endRotation=q.x=q.endX=i,C=!0):(j&&(q.y=q.endY=a,C=!0),$&&(q.x=q.endX=i,C=!0)),n&&!1===Ia(q,"move","onMove")?(q.pointerX=u,q.pointerY=p,E=h,q.x=g,q.y=f,q.endX=x,q.endY=m,q.endRotation=v,C=y):!q.isDragging&&q.isPressed&&(q.isDragging=!0,Ia(q,"dragstart","onDragStart")))},pt=function onRelease(t,e){if(p&&q.isPressed&&(!t||null==m||e||!(t.pointerId&&t.pointerId!==m||t.changedTouches&&!function _hasTouchID(t,e){for(var n=t.length;n--;)if(t[n].identifier===e)return!0}(t.changedTouches,m)))){q.isPressed=!1;var n,o,r,i,a,l=t,s=q.isDragging,c=q.vars.allowContextMenu&&t&&(t.ctrlKey||2<t.which),d=gt.delayedCall(.001,dh);if(y?(sa(y,"touchend",onRelease),sa(y,"touchmove",dt),sa(y,"touchcancel",onRelease),sa(st,"touchstart",wa)):sa(st,"mousemove",dt),sa(ft,"touchforcechange",ta),Yt||(sa(st,"mouseup",onRelease),t&&t.target&&sa(t.target,"mouseup",onRelease)),C=!1,v&&!c)return t&&(sa(t.target,"change",onRelease),q.pointerEvent=l),Oa(Q,!1),Ia(q,"release","onRelease"),Ia(q,"click","onClick"),void(v=!1);if(pa(Ug),!z)for(o=Q.length;-1<--o;)Ea(Q[o],"cursor",u.cursor||(!1!==u.cursor?St:null));if(s&&(J=Rt=Nt(),q.isDragging=!1),Tt--,t){if((n=t.changedTouches)&&(t=n[0])!==x&&t.identifier!==m){for(o=n.length;-1<--o&&(t=n[o]).identifier!==m;);if(o<0)return}q.pointerEvent=l,q.pointerX=t.pageX,q.pointerY=t.pageY}return c&&l?(ta(l),Ia(q,"release","onRelease")):l&&!s?(A&&(u.snap||u.bounds)&&_g(u.inertia||u.throwProps),Ia(q,"release","onRelease"),Et&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(Ia(q,"click","onClick"),Nt()-it<300&&Ia(q,"doubleclick","onDoubleClick"),i=l.target||h,it=Nt(),a=function syntheticClick(){it===W||!q.enabled()||q.isPressed||l.defaultPrevented||(i.click?i.click():st.createEvent&&((r=st.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,ft,1,q.pointerEvent.screenX,q.pointerEvent.screenY,q.pointerX,q.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},Et||l.defaultPrevented||gt.delayedCall(.05,a))):(_g(u.inertia||u.throwProps),q.allowEventDefault||!l||!1===u.dragClickables&&rt.call(q,l.target)||!s||B&&(!F||B!==F)||!1===l.cancelable||ta(l),Ia(q,"release","onRelease")),ct()&&d.duration(q.tween.duration()),s&&Ia(q,"dragend","onDragEnd"),!0}};return(e=Draggable.get(h))&&e.kill(),t.startDrag=function(t,e){var n,o,r,i;eh(t||q.pointerEvent,!0),e&&!q.hitTest(t||q.pointerEvent)&&(n=Ha(t||q.pointerEvent),o=Ha(h),r=kh({x:n.left+n.width/2,y:n.top+n.height/2}),i=kh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),q.isDragging||(q.isDragging=!0,Ia(q,"dragstart","onDragStart"))},t.drag=dt,t.endDrag=function(t){return pt(t||q.pointerEvent,!0)},t.timeSinceDrag=function(){return q.isDragging?0:(Nt()-J)/1e3},t.timeSinceClick=function(){return(Nt()-it)/1e3},t.hitTest=function(t,e){return Draggable.hitTest(q.target,t,e)},t.getDirection=function(t,e){var n,o,r,i,a,l,s="velocity"===t&&Mt?t:T(t)&&!z?"element":"start";return"element"===s&&(a=Ha(q.target),l=Ha(t)),n="start"===s?q.x-D:"velocity"===s?Mt.getVelocity(h,d):a.left+a.width/2-(l.left+l.width/2),z?n<0?"counter-clockwise":"clockwise":(e=e||2,o="start"===s?q.y-E:"velocity"===s?Mt.getVelocity(h,G):a.top+a.height/2-(l.top+l.height/2),i=(r=Math.abs(n/o))<1/e?"":n<0?"left":"right",r<e&&(""!==i&&(i+="-"),i+=o<0?"up":"down"),i)},t.applyBounds=function(t,e){var n,o,r,i,a,l;if(t&&u.bounds!==t)return u.bounds=t,q.update(!0,e);if(Vg(!0),Yg(),M&&!ct()){if(n=q.x,o=q.y,k<n?n=k:n<X&&(n=X),L<o?o=L:o<_&&(o=_),(q.x!==n||q.y!==o)&&(r=!0,q.x=q.endX=n,z?q.endRotation=n:q.y=q.endY=o,Ug(C=!0),q.autoScroll&&!q.isDragging))for(Da(h.parentNode),i=h,Ot.scrollTop=null!=ft.pageYOffset?ft.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,Ot.scrollLeft=null!=ft.pageXOffset?ft.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft;i&&!l;)a=(l=At(i.parentNode))?Ot:i.parentNode,j&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),$&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;q.isThrowing&&(r||q.endX>k||q.endX<X||q.endY>L||q.endY<_)&&_g(u.inertia||u.throwProps,r)}return q},t.update=function(t,e,n){var o=q.x,r=q.y;return ah(!e),t?q.applyBounds():(C&&n&&Ug(!0),Vg(!0)),e&&(ut(q.pointerX,q.pointerY),C&&Ug(!0)),q.isPressed&&!e&&($&&.01<Math.abs(o-q.x)||j&&.01<Math.abs(r-q.y)&&!z)&&bh(),q.autoScroll&&(Da(h.parentNode),Z=q.isDragging,Ug(!0),Aa(h,ih),za(h,ih)),q},t.enable=function(t){var e,n,o,r={lazy:!0};if("soft"!==t){for(n=Q.length;-1<--n;)o=Q[n],Yt||ra(o,"mousedown",eh),ra(o,"touchstart",eh),ra(o,"click",jh,!0),z||!1===r.cursor||(r.cursor=r.cursor||St),gt.utils.checkPrefix("touchCallout")&&(r.touchCallout="none"),r.touchAction=$==j?"none":r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":$?"pan-y":"pan-x",gt.set(o,r),o.getBBox&&o.ownerSVGElement&&gt.set(o.ownerSVGElement,{touchAction:$==j?"none":r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":$?"pan-y":"pan-x"}),q.vars.allowContextMenu||ra(o,"contextmenu",Tg);Oa(Q,!1)}return za(h,ih),p=!0,Mt&&"soft"!==t&&Mt.track(g||h,V?"x,y":z?"rotation":"top,left"),h._gsDragID=e="d"+Pt++,Ct[e]=q,g&&(g.enable(),g.element._gsDragID=e),r.bounds&&(bh(),q.applyBounds()),q},t.disable=function(t){var e,n,o=q.isDragging;if(!z)for(e=Q.length;-1<--e;)Ea(Q[e],"cursor",null);if("soft"!==t){for(e=Q.length;-1<--e;)n=Q[e],Ea(n,"touchCallout",null),Ea(n,"touchAction",null),sa(n,"mousedown",eh),sa(n,"touchstart",eh),sa(n,"click",jh),sa(n,"contextmenu",Tg);Oa(Q,!0),y&&(sa(y,"touchcancel",pt),sa(y,"touchend",pt),sa(y,"touchmove",dt)),sa(st,"mouseup",pt),sa(st,"mousemove",dt)}return Aa(h,ih),p=!1,Mt&&"soft"!==t&&Mt.untrack(g||h,V?"x,y":z?"rotation":"top,left"),g&&g.disable(),pa(Ug),q.isDragging=q.isPressed=v=!1,o&&Ia(q,"dragend","onDragEnd"),q},t.enabled=function(t,e){return arguments.length?t?q.enable(e):q.disable(e):p},t.kill=function(){return q.isThrowing=!1,gt.killTweensOf(g||h,o,!0),q.disable(),gt.set(Q,{clearProps:"userSelect"}),delete Ct[h._gsDragID],q},~n.indexOf("scroll")&&(g=t.scrollProxy=new Sa(h,function _extend(t,e){for(var n in e)n in t||(t[n]=e[n]);return t}({onKill:function onKill(){q.isPressed&&pt(null)}},u)),h.style.overflowY=j&&!wt?"auto":"hidden",h.style.overflowX=$&&!wt?"auto":"hidden",h=g.content),z?o.rotation=1:($&&(o[d]=1),j&&(o[G]=1)),t.enable(),t}!function _setDefaults(t,e){for(var n in e)n in t||(t[n]=e[n])}(B.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),B.zIndex=1e3,B.version="3.0.2",R()&&gt.registerPlugin(B),e.Draggable=B,e.default=B,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=Draggable.min.js.map
diff --git a/dist/Draggable.min.js.map b/dist/Draggable.min.js.map
index 7d73f6e..20bad65 100644
--- a/dist/Draggable.min.js.map
+++ b/dist/Draggable.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"Draggable.min.js","sources":["../src/utils/matrix.js","../src/Draggable.js"],"sourcesContent":["/*!\n * matrix 3.0.0\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _doc, _win, _docElement, _body,\t_divContainer, _svgContainer, _identityMatrix,\n\t_transformProp = \"transform\",\n\t_transformOriginProp = _transformProp + \"Origin\",\n\t_setDoc = element => {\n\t\tlet doc = element.ownerDocument || element;\n\t\tif (!(_transformProp in element.style) && \"msTransform\" in element.style) { //to improve compatibility with old Microsoft browsers\n\t\t\t_transformProp = \"msTransform\";\n\t\t\t_transformOriginProp = _transformProp + \"Origin\";\n\t\t}\n\t\twhile (doc.parentNode && (doc = doc.parentNode)) {\t}\n\t\t_win = window;\n\t\t_identityMatrix = new Matrix2D();\n\t\tif (doc) {\n\t\t\t_doc = doc;\n\t\t\t_docElement = doc.documentElement;\n\t\t\t_body = doc.body;\n\t\t}\n\t\treturn doc;\n\t},\n\t_svgTemps = [], //we create 3 elements for SVG, and 3 for other DOM elements and cache them for performance reasons. They get nested in _divContainer and _svgContainer so that just one element is added to the DOM on each successive attempt. Again, performance is key.\n\t_divTemps = [],\n\t_getDocScrollTop = () => _win.pageYOffset || _doc.scrollTop || _docElement.scrollTop || _body.scrollTop || 0,\n\t_getDocScrollLeft = () => _win.pageXOffset || _doc.scrollLeft || _docElement.scrollLeft || _body.scrollLeft || 0,\n\t_svgOwner = element => element.ownerSVGElement || ((element.tagName + \"\").toLowerCase() === \"svg\" ? element : null),\n\t_createSibling = (element, i) => {\n\t\tif (element.parentNode && (_doc || _setDoc(element))) {\n\t\t\tlet svg = _svgOwner(element),\n\t\t\t\tns = svg ? (svg.getAttribute(\"xmlns\") || \"http://www.w3.org/2000/svg\") : \"http://www.w3.org/1999/xhtml\",\n\t\t\t\ttype = svg ? (i ? \"rect\" : \"g\") : \"div\",\n\t\t\t\tx = i !== 2 ? 0 : 100,\n\t\t\t\ty = i === 3 ? 100 : 0,\n\t\t\t\tcss = \"position:absolute;display:block;\",\n\t\t\t\te = _doc.createElementNS ? _doc.createElementNS(ns.replace(/^https/, \"http\"), type) : _doc.createElement(type);\n\t\t\tif (i) {\n\t\t\t\tif (!svg) {\n\t\t\t\t\tif (!_divContainer) {\n\t\t\t\t\t\t_divContainer = _createSibling(element);\n\t\t\t\t\t\t_divContainer.style.cssText = css;\n\t\t\t\t\t}\n\t\t\t\t\te.style.cssText = css + \"width:1px;height:1px;top:\" + y + \"px;left:\" + x + \"px\";\n\t\t\t\t\t_divContainer.appendChild(e);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (!_svgContainer) {\n\t\t\t\t\t\t_svgContainer = _createSibling(element);\n\t\t\t\t\t}\n\t\t\t\t\te.setAttribute(\"width\", 1);\n\t\t\t\t\te.setAttribute(\"height\", 1);\n\t\t\t\t\te.setAttribute(\"transform\", \"translate(\" + x + \",\" + y + \")\");\n\t\t\t\t\t_svgContainer.appendChild(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn e;\n\t\t}\n\t\tthrow \"Need document and parent.\";\n\t},\n\t_placeSiblings = element => {\n\t\tlet svg = _svgOwner(element),\n\t\t\tisRootSVG = element === svg,\n\t\t\tsiblings = svg ? _svgTemps : _divTemps,\n\t\t\tcontainer, m, b, x, y;\n\t\tif (element === _win) {\n\t\t\treturn element;\n\t\t}\n\t\tif (!siblings.length) {\n\t\t\tsiblings.push(_createSibling(element, 1), _createSibling(element, 2), _createSibling(element, 3));\n\t\t}\n\t\tcontainer = svg ? _svgContainer : _divContainer;\n\t\tif (svg) {\n\t\t\tb = isRootSVG ? {x:0, y:0} : element.getBBox();\n\t\t\tm = element.transform.baseVal;\n\t\t\tif (m.length) {\n\t\t\t\tm = m.consolidate().matrix;\n\t\t\t\tx = m.a * b.x + m.c * b.y;\n\t\t\t\ty = m.b * b.x + m.d * b.y;\n\t\t\t} else {\n\t\t\t\tm = _identityMatrix;\n\t\t\t\tif (element.tagName.toLowerCase() === \"g\") {\n\t\t\t\t\tx = y = 0;\n\t\t\t\t} else {\n\t\t\t\t\tx = b.x;\n\t\t\t\t\ty = b.y;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontainer.setAttribute(\"transform\", \"matrix(\" + m.a + \",\" + m.b + \",\" + m.c + \",\" + m.d + \",\" + (m.e + x) + \",\" + (m.f + y) + \")\");\n\t\t\t(isRootSVG ? svg : element.parentNode).appendChild(container);\n\t\t} else {\n\t\t\tcontainer.style.top = element.offsetTop + \"px\";\n\t\t\tcontainer.style.left = element.offsetLeft + \"px\";\n\t\t\tm = _win.getComputedStyle(element);\n\t\t\tcontainer.style[_transformProp] = m[_transformProp];\n\t\t\tcontainer.style[_transformOriginProp] = m[_transformOriginProp];\n\t\t\telement.parentNode.appendChild(container);\n\t\t}\n\t\treturn container;\n\t},\n\t_setMatrix = (m, a, b, c, d, e, f) => {\n\t\tm.a = a;\n\t\tm.b = b;\n\t\tm.c = c;\n\t\tm.d = d;\n\t\tm.e = e;\n\t\tm.f = f;\n\t\treturn m;\n\t};\n\nexport class Matrix2D {\n\tconstructor(a=1, b=0, c=0, d=1, e=0, f=0) {\n\t\t_setMatrix(this, a, b, c, d, e, f);\n\t}\n\n\tinverse() {\n\t\tlet {a, b, c, d, e, f} = this,\n\t\t\tdeterminant = (a * d - b * c);\n\t\treturn _setMatrix(\n\t\t\tthis,\n\t\t\td / determinant,\n\t\t\t-b / determinant,\n\t\t\t-c / determinant,\n\t\t\ta / determinant,\n\t\t\t(c * f - d * e) / determinant,\n\t\t\t-(a * f - b * e) / determinant\n\t\t);\n\t}\n\n\tmultiply(matrix) {\n\t\tlet {a, b, c, d, e, f} = this,\n\t\t\ta2 = matrix.a,\n\t\t\tb2 = matrix.c,\n\t\t\tc2 = matrix.b,\n\t\t\td2 = matrix.d,\n\t\t\te2 = matrix.e,\n\t\t\tf2 = matrix.f;\n\t\treturn _setMatrix(this,\n\t\t\ta2 * a + c2 * c,\n\t\t\ta2 * b + c2 * d,\n\t\t\tb2 * a + d2 * c,\n\t\t\tb2 * b + d2 * d,\n\t\t\te + e2 * a + f2 * c,\n\t\t\tf + e2 * b + f2 * d);\n\t}\n\n\tequals(matrix) {\n\t\tlet {a, b, c, d, e, f} = this;\n\t\treturn (a === matrix.a && b === matrix.b && c === matrix.c && d === matrix.d && e === matrix.e && f === matrix.f);\n\t}\n\n\tapply(point, decoratee={}) {\n\t\tlet {x, y} = point,\n\t\t\t{a, b, c, d, e, f} = this;\n\t\tdecoratee.x = x * a + y * c + e;\n\t\tdecoratee.y = x * b + y * d + f;\n\t\treturn decoratee;\n\t}\n\n}\n\n//feed in an element and it'll return a 2D matrix (optionally inverted) so that you can translate between coordinate spaces.\n// Inverting lets you translate a global point into a local coordinate space. No inverting lets you go the other way.\n// We needed this to work around various browser bugs, like Firefox doesn't accurately report getScreenCTM() when there\n// are transforms applied to ancestor elements.\n// The matrix math to convert any x/y coordinate is:\n// tx = m.a * x + m.c * y + m.e\n// ty = m.b * x + m.d * y + m.f\nexport function getGlobalMatrix(element, inverse) {\n\tif (!element.parentNode) {\n\t\treturn new Matrix2D();\n\t}\n\tlet svg = _svgOwner(element),\n\t\ttemps = svg ? _svgTemps : _divTemps,\n\t\tcontainer = _placeSiblings(element),\n\t\tb1 = temps[0].getBoundingClientRect(),\n\t\tb2 = temps[1].getBoundingClientRect(),\n\t\tb3 = temps[2].getBoundingClientRect(),\n\t\tparent = container.parentNode,\n\t\tm = new Matrix2D(\n\t\t\t(b2.left - b1.left) / 100,\n\t\t\t(b2.top - b1.top) / 100,\n\t\t\t(b3.left - b1.left) / 100,\n\t\t\t(b3.top - b1.top) / 100,\n\t\t\tb1.left + _getDocScrollLeft(),\n\t\t\tb1.top + _getDocScrollTop()\n\t\t);\n\tparent.removeChild(container);\n\treturn inverse ? m.inverse() : m;\n}\n","/*!\n * Draggable 3.0.0\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n/* eslint-disable */\n\nimport { getGlobalMatrix, Matrix2D } from \"./utils/matrix.js\";\n\nlet gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitted, _checkPrefix, _toArray, _supportsPassive, _isTouchDevice, _touchEventLookup, _dragCount, _isMultiTouching, _isAndroid, InertiaPlugin, _defaultCursor, _supportsPointer,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_isFunction = value => typeof(value) === \"function\",\n\t_isObject = value => typeof(value) === \"object\",\n\t_isUndefined = value => typeof(value) === \"undefined\",\n\t_emptyFunc = () => 0,\n\t_transformProp = \"transform\",\n\t_transformOriginProp = \"transformOrigin\",\n\t_round = value => Math.round(value * 10000) / 10000,\n\t_isArray = Array.isArray,\n\t_createElement = (type, ns) => {\n\t\tlet e = _doc.createElementNS ? _doc.createElementNS((ns || \"http://www.w3.org/1999/xhtml\").replace(/^https/, \"http\"), type) : _doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making \"style\" inaccessible.\n\t\treturn e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://greensock.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).\n\t},\n\t_RAD2DEG = 180 / Math.PI,\n\t_bigNum = 1e20,\n\t_identityMatrix = new Matrix2D(),\n\t_getTime = Date.now || (() => new Date().getTime()),\n\t_renderQueue = [],\n\t_lookup = {}, //when a Draggable is created, the target gets a unique _gsDragID property that allows gets associated with the Draggable instance for quick lookups in Draggable.get(). This avoids circular references that could cause gc problems.\n\t_lookupCount = 0,\n\t_clickableTagExp = /^(?:a|input|textarea|button|select)$/i,\n\t_lastDragTime = 0,\n\t_temp1 = {}, // a simple object we reuse and populate (usually x/y properties) to conserve memory and improve performance.\n\t_windowProxy = {}, //memory/performance optimization - we reuse this object during autoScroll to store window-related bounds/offsets.\n\t_copy = (obj, factor) => {\n\t\tlet copy = {}, p;\n\t\tfor (p in obj) {\n\t\t\tcopy[p] = factor ? obj[p] * factor : obj[p];\n\t\t}\n\t\treturn copy;\n\t},\n\t_renderQueueTick = () => _renderQueue.forEach(func => func()),\n\t_addToRenderQueue = func => {\n\t\t_renderQueue.push(func);\n\t\tif (_renderQueue.length === 1) {\n\t\t\tgsap.ticker.add(_renderQueueTick);\n\t\t}\n\t},\n\t_renderQueueTimeout = () => !_renderQueue.length && gsap.ticker.remove(_renderQueueTick),\n\t_removeFromRenderQueue = func => {\n\t\tlet i = _renderQueue.length;\n\t\twhile (i--) {\n\t\t\tif (_renderQueue[i] === func) {\n\t\t\t\t_renderQueue.splice(i, 1);\n\t\t\t}\n\t\t}\n\t\tgsap.to(_renderQueueTimeout, {overwrite:true, delay:15, duration:0, onComplete:_renderQueueTimeout, data:\"_draggable\"}); //remove the \"tick\" listener only after the render queue is empty for 15 seconds (to improve performance). Adding/removing it constantly for every click/touch wouldn't deliver optimal speed, and we also don't want the ticker to keep calling the render method when things are idle for long periods of time (we want to improve battery life on mobile devices).\n\t},\n\t_setDefaults = (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\tif (!(p in obj)) {\n\t\t\t\tobj[p] = defaults[p];\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t},\n\t_addListener = (element, type, func, capture) => {\n\t\tif (element.addEventListener) {\n\t\t\tlet touchType = _touchEventLookup[type];\n\t\t\tcapture = capture || (_supportsPassive ? {passive:false} : null);\n\t\t\telement.addEventListener(touchType || type, func, capture);\n\t\t\tif (touchType && type !== touchType && touchType.substr(0, 7) !== \"pointer\") { //some browsers actually support both, so must we. But pointer events cover all.\n\t\t\t\telement.addEventListener(type, func, capture);\n\t\t\t}\n\t\t}\n\t},\n\t_removeListener = (element, type, func) => {\n\t\tif (element.removeEventListener) {\n\t\t\tlet touchType = _touchEventLookup[type];\n\t\t\telement.removeEventListener(touchType || type, func);\n\t\t\tif (touchType && type !== touchType && touchType.substr(0, 7) !== \"pointer\") {\n\t\t\t\telement.removeEventListener(type, func);\n\t\t\t}\n\t\t}\n\t},\n\t_preventDefault = event => {\n\t\tif (event.preventDefault) {\n\t\t\tevent.preventDefault();\n\t\t\tif (event.preventManipulation) {\n\t\t\t\tevent.preventManipulation(); //for some Microsoft browsers\n\t\t\t}\n\t\t}\n\t},\n\t_hasTouchID = (list, ID) => {\n\t\tlet i = list.length;\n\t\twhile (i--) {\n\t\t\tif (list[i].identifier === ID) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t},\n\t_onMultiTouchDocumentEnd = event => {\n\t\t_isMultiTouching = (event.touches && _dragCount < event.touches.length);\n\t\t_removeListener(event.target, \"touchend\", _onMultiTouchDocumentEnd);\n\t},\n\n\t_onMultiTouchDocument = event => {\n\t\t_isMultiTouching = (event.touches && _dragCount < event.touches.length);\n\t\t_addListener(event.target, \"touchend\", _onMultiTouchDocumentEnd);\n\t},\n\t_getDocScrollTop = () => _win.pageYOffset || _doc.scrollTop || _docElement.scrollTop || _body.scrollTop || 0,\n\t_getDocScrollLeft = () => _win.pageXOffset || _doc.scrollLeft || _docElement.scrollLeft || _body.scrollLeft || 0,\n\t_addScrollListener = (e, callback) => {\n\t\t_addListener(e, \"scroll\", callback);\n\t\tif (!_isRoot(e.parentNode)) {\n\t\t\t_addScrollListener(e.parentNode, callback);\n\t\t}\n\t},\n\t_removeScrollListener = (e, callback) => {\n\t\t_removeListener(e, \"scroll\", callback);\n\t\tif (!_isRoot(e.parentNode)) {\n\t\t\t_removeScrollListener(e.parentNode, callback);\n\t\t}\n\t},\n\t_isRoot = e => !!(!e || e === _docElement || e === _doc || e === _doc.body || e === _win || !e.nodeType || !e.parentNode),\n\t_getMaxScroll = (element, axis) => {\n\t\tlet dim = (axis === \"x\") ? \"Width\" : \"Height\",\n\t\t\tscroll = \"scroll\" + dim,\n\t\t\tclient = \"client\" + dim;\n\t\treturn Math.max(0, _isRoot(element) ? Math.max(_docElement[scroll], _body[scroll]) - (_win[\"inner\" + dim] || _docElement[client] || _body[client]) : element[scroll] - element[client]);\n\t},\n\t_recordMaxScrolls = e => { //records _gsMaxScrollX and _gsMaxScrollY properties for the element and all ancestors up the chain so that we can cap it, otherwise dragging beyond the edges with autoScroll on can endlessly scroll.\n\t\tlet x = _getMaxScroll(e, \"x\"),\n\t\t\ty = _getMaxScroll(e, \"y\");\n\t\tif (_isRoot(e)) {\n\t\t\te = _windowProxy;\n\t\t} else {\n\t\t\t_recordMaxScrolls(e.parentNode);\n\t\t}\n\t\te._gsMaxScrollX = x;\n\t\te._gsMaxScrollY = y;\n\t\te._gsScrollX = e.scrollLeft || 0;\n\t\te._gsScrollY = e.scrollTop || 0;\n\t},\n\t_setStyle = (element, property, value) => {\n\t\tlet style = element.style;\n\t\tif (!style) {\n\t\t\treturn;\n\t\t}\n\t\tif (_isUndefined(style[property])) {\n\t\t\tproperty = _checkPrefix(property, element) || property;\n\t\t}\n\t\tif (value == null) {\n\t\t\tstyle.removeProperty && style.removeProperty(property.replace(/([A-Z])/g, \"-$1\").toLowerCase());\n\t\t} else {\n\t\t\tstyle[property] = value;\n\t\t}\n\t},\n\t_getComputedStyle = element => _win.getComputedStyle((element instanceof Element) ? element : element.host || (element.parentNode || {}).host || element), //the \"host\" stuff helps to accommodate ShadowDom objects.\n\n\t_tempRect = {}, //reuse to reduce garbage collection tasks\n\t_parseRect = e => { //accepts a DOM element, a mouse event, or a rectangle object and returns the corresponding rectangle with left, right, width, height, top, and bottom properties\n\t\tif (e === _win) {\n\t\t\t_tempRect.left = _tempRect.top = 0;\n\t\t\t_tempRect.width = _tempRect.right = _docElement.clientWidth || e.innerWidth || _body.clientWidth || 0;\n\t\t\t_tempRect.height = _tempRect.bottom = ((e.innerHeight || 0) - 20 < _docElement.clientHeight) ? _docElement.clientHeight : e.innerHeight || _body.clientHeight || 0;\n\t\t\treturn _tempRect;\n\t\t}\n\t\tlet r = !_isUndefined(e.pageX) ? {left: e.pageX - _getDocScrollLeft(), top: e.pageY - _getDocScrollTop(), right: e.pageX - _getDocScrollLeft() + 1, bottom: e.pageY - _getDocScrollTop() + 1} : (!e.nodeType && !_isUndefined(e.left) && !_isUndefined(e.top)) ? e : _toArray(e)[0].getBoundingClientRect();\n\t\tif (_isUndefined(r.right) && !_isUndefined(r.width)) {\n\t\t\tr.right = r.left + r.width;\n\t\t\tr.bottom = r.top + r.height;\n\t\t} else if (_isUndefined(r.width)) { //some browsers don't include width and height properties. We can't just set them directly on r because some browsers throw errors, so create a new generic object.\n\t\t\tr = {width: r.right - r.left, height: r.bottom - r.top, right: r.right, left: r.left, bottom: r.bottom, top: r.top};\n\t\t}\n\t\treturn r;\n\t},\n\n\t_dispatchEvent = (target, type, callbackName) => {\n\t\tlet vars = target.vars,\n\t\t\tcallback = vars[callbackName],\n\t\t\tlisteners = target._listeners[type],\n\t\t\tresult;\n\t\tif (_isFunction(callback)) {\n\t\t\tresult = callback.apply(vars.callbackScope || target, vars[callbackName + \"Params\"] || [target.pointerEvent]);\n\t\t}\n\t\tif (listeners && target.dispatchEvent(type) === false) {\n\t\t\tresult = false;\n\t\t}\n\t\treturn result;\n\t},\n\t_getBounds = (target, context) => { //accepts any of the following: a DOM element, jQuery object, selector text, or an object defining bounds as {top, left, width, height} or {minX, maxX, minY, maxY}. Returns an object with left, top, width, and height properties.\n\t\tlet e = _toArray(target)[0],\n\t\t\ttop, left, offset;\n\t\tif (!e.nodeType && e !== _win) {\n\t\t\tif (!_isUndefined(target.left)) {\n\t\t\t\toffset = {x:0, y:0}; //_getOffsetTransformOrigin(context); //the bounds should be relative to the origin\n\t\t\t\treturn {left: target.left - offset.x, top: target.top - offset.y, width: target.width, height: target.height};\n\t\t\t}\n\t\t\tleft = target.min || target.minX || target.minRotation || 0;\n\t\t\ttop = target.min || target.minY || 0;\n\t\t\treturn {left:left, top:top, width:(target.max || target.maxX || target.maxRotation || 0) - left, height:(target.max || target.maxY || 0) - top};\n\t\t}\n\t\treturn _getElementBounds(e, context);\n\t},\n\t_point1 = {}, //we reuse to minimize garbage collection tasks.\n\t_getElementBounds = (element, context) => {\n\t\tcontext = _toArray(context)[0];\n\t\tlet isSVG = (element.getBBox && element.ownerSVGElement),\n\t\t\tleft, right, top, bottom, matrix, p1, p2, p3, p4, bbox, width, height, cs, contextParent;\n\t\tif (element === _win) {\n\t\t\ttop = _getDocScrollTop();\n\t\t\tleft = _getDocScrollLeft();\n\t\t\tright = left + (_docElement.clientWidth || element.innerWidth || _doc.body.clientWidth || 0);\n\t\t\tbottom = top + (((element.innerHeight || 0) - 20 < _docElement.clientHeight) ? _docElement.clientHeight : element.innerHeight || _body.clientHeight || 0); //some browsers (like Firefox) ignore absolutely positioned elements, and collapse the height of the documentElement, so it could be 8px, for example, if you have just an absolutely positioned div. In that case, we use the innerHeight to resolve this.\n\t\t} else if (context === _win || _isUndefined(context)) {\n\t\t\treturn element.getBoundingClientRect();\n\t\t} else {\n\t\t\tleft = top = 0;\n\t\t\tif (isSVG) {\n\t\t\t\tbbox = element.getBBox();\n\t\t\t\twidth = bbox.width;\n\t\t\t\theight = bbox.height;\n\t\t\t} else if (element.viewBox && (bbox = element.viewBox.baseVal)) {\n\t\t\t\tleft = bbox.x || 0;\n\t\t\t\ttop = bbox.y || 0;\n\t\t\t\twidth = bbox.width;\n\t\t\t\theight = bbox.height;\n\t\t\t} else {\n\t\t\t\tcs = _getComputedStyle(element);\n\t\t\t\twidth = parseFloat(cs.width) || element.clientWidth || 0;\n\t\t\t\theight = parseFloat(cs.height) || element.clientHeight || 0;\n\t\t\t}\n\t\t\tright = width;\n\t\t\tbottom = height;\n\t\t}\n\t\tif (element === context) {\n\t\t\treturn {left:left, top:top, width: right - left, height: bottom - top};\n\t\t}\n\t\tmatrix = getGlobalMatrix(context, true).multiply(getGlobalMatrix(element));\n\t\tp1 = matrix.apply({x:left, y:top});\n\t\tp2 = matrix.apply({x:right, y:top});\n\t\tp3 = matrix.apply({x:right, y:bottom});\n\t\tp4 = matrix.apply({x:left, y:bottom});\n\t\tleft = Math.min(p1.x, p2.x, p3.x, p4.x);\n\t\ttop = Math.min(p1.y, p2.y, p3.y, p4.y);\n\t\tcontextParent = context.parentNode || {};\n\t\treturn {left: left + (contextParent.scrollLeft || 0), top: top + (contextParent.scrollTop || 0), width: Math.max(p1.x, p2.x, p3.x, p4.x) - left, height: Math.max(p1.y, p2.y, p3.y, p4.y) - top};\n\t},\n\t_parseInertia = (draggable, snap, max, min, factor, forceZeroVelocity) => {\n\t\tlet vars = {},\n\t\t\ta, i, l;\n\t\tif (snap) {\n\t\t\tif (factor !== 1 && snap instanceof Array) { //some data must be altered to make sense, like if the user passes in an array of rotational values in degrees, we must convert it to radians. Or for scrollLeft and scrollTop, we invert the values.\n\t\t\t\tvars.end = a = [];\n\t\t\t\tl = snap.length;\n\t\t\t\tif (_isObject(snap[0])) { //if the array is populated with objects, like points ({x:100, y:200}), make copies before multiplying by the factor, otherwise we'll mess up the originals and the user may reuse it elsewhere.\n\t\t\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t\t\ta[i] = _copy(snap[i], factor);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t\t\ta[i] = snap[i] * factor;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmax += 1.1; //allow 1.1 pixels of wiggle room when snapping in order to work around some browser inconsistencies in the way bounds are reported which can make them roughly a pixel off. For example, if \"snap:[-$('#menu').width(), 0]\" was defined and #menu had a wrapper that was used as the bounds, some browsers would be one pixel off, making the minimum -752 for example when snap was [-753,0], thus instead of snapping to -753, it would snap to 0 since -753 was below the minimum.\n\t\t\t\tmin -= 1.1;\n\t\t\t} else if (_isFunction(snap)) {\n\t\t\t\tvars.end = value => {\n\t\t\t\t\tlet result = snap.call(draggable, value),\n\t\t\t\t\t\tcopy, p;\n\t\t\t\t\tif (factor !== 1) {\n\t\t\t\t\t\tif (_isObject(result)) {\n\t\t\t\t\t\t\tcopy = {};\n\t\t\t\t\t\t\tfor (p in result) {\n\t\t\t\t\t\t\t\tcopy[p] = result[p] * factor;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tresult = copy;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresult *= factor;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn result; //we need to ensure that we can scope the function call to the Draggable instance itself so that users can access important values like maxX, minX, maxY, minY, x, and y from within that function.\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tvars.end = snap;\n\t\t\t}\n\t\t}\n\t\tif (max || max === 0) {\n\t\t\tvars.max = max;\n\t\t}\n\t\tif (min || min === 0) {\n\t\t\tvars.min = min;\n\t\t}\n\t\tif (forceZeroVelocity) {\n\t\t\tvars.velocity = 0;\n\t\t}\n\t\treturn vars;\n\t},\n\t_isClickable = element => { //sometimes it's convenient to mark an element as clickable by adding a data-clickable=\"true\" attribute (in which case we won't preventDefault() the mouse/touch event). This method checks if the element is an <a>, <input>, or <button> or has an onclick or has the data-clickable or contentEditable attribute set to true (or any of its parent elements).\n\t\tlet data;\n\t\treturn (!element || !element.getAttribute || element === _body) ? false : ((data = element.getAttribute(\"data-clickable\")) === \"true\" || (data !== \"false\" && (element.onclick || _clickableTagExp.test(element.nodeName + \"\") || element.getAttribute(\"contentEditable\") === \"true\"))) ? true : _isClickable(element.parentNode);\n\t},\n\t_setSelectable = (elements, selectable) => {\n\t\tlet i = elements.length,\n\t\t\te;\n\t\twhile (i--) {\n\t\t\te = elements[i];\n\t\t\te.ondragstart = e.onselectstart = selectable ? null : _emptyFunc;\n\t\t\t_setStyle(e, \"userSelect\", (selectable ? \"text\" : \"none\"));\n\t\t}\n\t},\n\t_isFixed = element => {\n\t\tif (_getComputedStyle(element).position === \"fixed\") {\n\t\t\treturn true;\n\t\t}\n\t\telement = element.parentNode;\n\t\tif (element && element !== _docElement) {\n\t\t\treturn _isFixed(element);\n\t\t}\n\t},\n\t_initCore = required => {\n\t\tif (_windowExists()) {\n\t\t\t_win = window;\n\t\t\t_doc = document;\n\t\t\t_docElement = _doc.documentElement;\n\t\t\t_body = _doc.body;\n\t\t\t_tempDiv = _createElement(\"div\");\n\t\t\t_supportsPointer = !!window.PointerEvent;\n\t\t\t_placeholderDiv = _doc.createElement(\"div\");\n\t\t\t_placeholderDiv.style.cssText = \"visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab\";\n\t\t\t_defaultCursor = _placeholderDiv.style.cursor === \"grab\" ? \"grab\" : \"move\";\n\t\t\t_isAndroid = (_win.navigator && _win.navigator.userAgent.toLowerCase().indexOf(\"android\") !== -1); //Android handles touch events in an odd way and it's virtually impossible to \"feature test\" so we resort to UA sniffing\n\t\t\t_isTouchDevice = (\"ontouchstart\" in _docElement) && (\"orientation\" in _win);\n\t\t\t_touchEventLookup = (function(types) { //we create an object that makes it easy to translate touch event types into their \"pointer\" counterparts if we're in a browser that uses those instead. Like IE10 uses \"MSPointerDown\" instead of \"touchstart\", for example.\n\t\t\t\tlet standard = types.split(\",\"),\n\t\t\t\t\tconverted = (!_isUndefined(_tempDiv.onpointerdown) ? \"pointerdown,pointermove,pointerup,pointercancel\" : !_isUndefined(_tempDiv.onmspointerdown) ? \"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel\" : types).split(\",\"),\n\t\t\t\t\tobj = {},\n\t\t\t\t\ti = 4;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\tobj[standard[i]] = converted[i];\n\t\t\t\t\tobj[converted[i]] = standard[i];\n\t\t\t\t}\n\t\t\t\t//to avoid problems in iOS 9, test to see if the browser supports the \"passive\" option on addEventListener().\n\t\t\t\ttry {\n\t\t\t\t\t_docElement.addEventListener(\"test\", null, Object.defineProperty({}, \"passive\", {\n\t\t\t\t\t\tget: function () {\n\t\t\t\t\t\t\t_supportsPassive = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}));\n\t\t\t\t} catch (e) {}\n\t\t\t\treturn obj;\n\t\t\t}(\"touchstart,touchmove,touchend,touchcancel\"));\n\t\t\t_addListener(_doc, \"touchcancel\", _emptyFunc); //some older Android devices intermittently stop dispatching \"touchmove\" events if we don't listen for \"touchcancel\" on the document. Very strange indeed.\n\t\t\t_addListener(_win, \"touchmove\", _emptyFunc); //works around Safari bugs that still allow the page to scroll even when we preventDefault() on the touchmove event.\n\t\t\t_body && _body.addEventListener(\"touchstart\", _emptyFunc); //works around Safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/\n\t\t\t_addListener(_doc, \"contextmenu\", function() {\n\t\t\t\tfor (let p in _lookup) {\n\t\t\t\t\tif (_lookup[p].isPressed) {\n\t\t\t\t\t\t_lookup[p].endDrag();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tgsap = _coreInitted = _getGSAP();\n\t\t}\n\t\tif (gsap) {\n\t\t\tInertiaPlugin = gsap.plugins.inertia;\n\t\t\t_checkPrefix = gsap.utils.checkPrefix;\n\t\t\t_transformProp = _checkPrefix(_transformProp);\n\t\t\t_transformOriginProp = _checkPrefix(_transformOriginProp);\n\t\t\t_toArray = gsap.utils.toArray;\n\t\t} else if (required) {\n\t\t\tconsole.warn(\"Please gsap.registerPlugin(Draggable)\");\n\t\t}\n\t};\n\n\n\n\n\n\nclass EventDispatcher {\n\n\tconstructor(target) {\n\t\tthis._listeners = {};\n\t\tthis.target = target || this;\n\t}\n\n\taddEventListener(type, callback) {\n\t\tlet list = this._listeners[type] || (this._listeners[type] = []);\n\t\tif (!~list.indexOf(callback)) {\n\t\t\tlist.push(callback);\n\t\t}\n\t}\n\n\tremoveEventListener(type, callback) {\n\t\tlet list = this._listeners[type],\n\t\t\ti = (list && list.indexOf(callback)) || -1;\n\t\t(i > -1) && list.splice(i, 1);\n\t}\n\n\tdispatchEvent(type) {\n\t\tlet result;\n\t\t(this._listeners[type] || []).forEach(callback => (callback.call(this, {type: type, target: this.target}) === false) && (result = false));\n\t\treturn result; //if any of the callbacks return false, pass that along.\n\t}\n}\n\n\n\n\n\n\n\n\n\nexport class Draggable extends EventDispatcher {\n\n\tconstructor(target, vars) {\n\t\tsuper();\n\t\tif (!gsap) {\n\t\t\t_initCore(1);\n\t\t}\n\t\ttarget = _toArray(target)[0]; //in case the target is a selector object or selector text\n\t\tif (!InertiaPlugin) {\n\t\t\tInertiaPlugin = gsap.plugins.inertia;\n\t\t}\n\t\tthis.vars = vars = _copy(vars || {});\n\t\tthis.target = target;\n\t\tthis.x = this.y = this.rotation = 0;\n\t\tthis.dragResistance = parseFloat(vars.dragResistance) || 0;\n\t\tthis.edgeResistance = isNaN(vars.edgeResistance) ? 1 : parseFloat(vars.edgeResistance) || 0;\n\t\tthis.lockAxis = vars.lockAxis;\n\t\tthis.autoScroll = vars.autoScroll || 0;\n\t\tthis.lockedAxis = null;\n\t\tthis.allowEventDefault = !!vars.allowEventDefault;\n\n\t\tgsap.set(target, {x:\"+=0\"}); // to ensure that transforms are instantiated.\n\n\t\tlet type = (vars.type || \"x,y\").toLowerCase(),\n\t\t\txyMode = (~type.indexOf(\"x\") || ~type.indexOf(\"y\")),\n\t\t\trotationMode = (type.indexOf(\"rotation\") !== -1),\n\t\t\txProp = rotationMode ? \"rotation\" : xyMode ? \"x\" : \"left\",\n\t\t\tyProp = xyMode ? \"y\" : \"top\",\n\t\t\tallowX = !!(~type.indexOf(\"x\") || ~type.indexOf(\"left\")),\n\t\t\tallowY = !!(~type.indexOf(\"y\") || ~type.indexOf(\"top\")),\n\t\t\tminimumMovement = vars.minimumMovement || 2,\n\t\t\tself = this,\n\t\t\ttriggers = _toArray(vars.trigger || vars.handle || target),\n\t\t\tkillProps = {},\n\t\t\tdragEndTime = 0,\n\t\t\tcheckAutoScrollBounds = false,\n\t\t\tautoScrollMarginTop = vars.autoScrollMarginTop || 40,\n\t\t\tautoScrollMarginRight = vars.autoScrollMarginRight || 40,\n\t\t\tautoScrollMarginBottom = vars.autoScrollMarginBottom || 40,\n\t\t\tautoScrollMarginLeft = vars.autoScrollMarginLeft || 40,\n\t\t\tisClickable = vars.clickableTest || _isClickable,\n\t\t\tclickTime = 0,\n\t\t\tgsCache = target._gsap || gsap.core.getCache(target),\n\t\t\tisFixed = _isFixed(target),\n\t\t\tgetPropAsNum = (property, unit) => parseFloat(gsCache.get(target, property, unit)),\n\t\t\tenabled, startPointerX, startPointerY, startElementX, startElementY, hasBounds, hasDragCallback, hasMoveCallback, maxX, minX, maxY, minY, touch, touchID, rotationOrigin, dirty, old, snapX, snapY, snapXY, isClicking, touchEventTarget, matrix, interrupted, startScrollTop, startScrollLeft, allowNativeTouchScrolling, touchDragAxis, isDispatching, clickDispatch, trustedClickDispatch,\n\n\t\t\tonContextMenu = e => { //used to prevent long-touch from triggering a context menu.\n\t\t\t\tif (self.isPressed && e.which < 2) {\n\t\t\t\t\tself.endDrag();\n\t\t\t\t} else {\n\t\t\t\t\t_preventDefault(e);\n\t\t\t\t\te.stopPropagation();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t//this method gets called on every tick of TweenLite.ticker which allows us to synchronize the renders to the core engine (which is typically synchronized with the display refresh via requestAnimationFrame). This is an optimization - it's better than applying the values inside the \"mousemove\" or \"touchmove\" event handler which may get called many times inbetween refreshes.\n\t\t\trender = suppressEvents => {\n\t\t\t\tif (self.autoScroll && self.isDragging && (checkAutoScrollBounds || dirty)) {\n\t\t\t\t\tlet e = target,\n\t\t\t\t\t\tautoScrollFactor = self.autoScroll * 15, //multiplying by 15 just gives us a better \"feel\" speed-wise.\n\t\t\t\t\t\tparent, isRoot, rect, pointerX, pointerY, changeX, changeY, gap;\n\t\t\t\t\tcheckAutoScrollBounds = false;\n\t\t\t\t\t_windowProxy.scrollTop = ((_win.pageYOffset != null) ? _win.pageYOffset : (_docElement.scrollTop != null) ? _docElement.scrollTop : _body.scrollTop);\n\t\t\t\t\t_windowProxy.scrollLeft = ((_win.pageXOffset != null) ? _win.pageXOffset : (_docElement.scrollLeft != null) ? _docElement.scrollLeft : _body.scrollLeft);\n\t\t\t\t\tpointerX = self.pointerX - _windowProxy.scrollLeft;\n\t\t\t\t\tpointerY = self.pointerY - _windowProxy.scrollTop;\n\t\t\t\t\twhile (e && !isRoot) { //walk up the chain and sense wherever the pointer is within 40px of an edge that's scrollable.\n\t\t\t\t\t\tisRoot = _isRoot(e.parentNode);\n\t\t\t\t\t\tparent = isRoot ? _windowProxy : e.parentNode;\n\t\t\t\t\t\trect = isRoot ? {bottom:Math.max(_docElement.clientHeight, _win.innerHeight || 0), right: Math.max(_docElement.clientWidth, _win.innerWidth || 0), left:0, top:0} : parent.getBoundingClientRect();\n\t\t\t\t\t\tchangeX = changeY = 0;\n\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\tgap = parent._gsMaxScrollY - parent.scrollTop;\n\t\t\t\t\t\t\tif (gap < 0) {\n\t\t\t\t\t\t\t\tchangeY = gap;\n\t\t\t\t\t\t\t} else if (pointerY > rect.bottom - autoScrollMarginBottom && gap) {\n\t\t\t\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t\t\t\t\tchangeY = Math.min(gap, (autoScrollFactor * (1 - Math.max(0, (rect.bottom - pointerY)) / autoScrollMarginBottom)) | 0);\n\t\t\t\t\t\t\t} else if (pointerY < rect.top + autoScrollMarginTop && parent.scrollTop) {\n\t\t\t\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t\t\t\t\tchangeY = -Math.min(parent.scrollTop, (autoScrollFactor * (1 - Math.max(0, (pointerY - rect.top)) / autoScrollMarginTop)) | 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (changeY) {\n\t\t\t\t\t\t\t\tparent.scrollTop += changeY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\tgap = parent._gsMaxScrollX - parent.scrollLeft;\n\t\t\t\t\t\t\tif (gap < 0) {\n\t\t\t\t\t\t\t\tchangeX = gap;\n\t\t\t\t\t\t\t} else if (pointerX > rect.right - autoScrollMarginRight && gap) {\n\t\t\t\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t\t\t\t\tchangeX = Math.min(gap, (autoScrollFactor * (1 - Math.max(0, (rect.right - pointerX)) / autoScrollMarginRight)) | 0);\n\t\t\t\t\t\t\t} else if (pointerX < rect.left + autoScrollMarginLeft && parent.scrollLeft) {\n\t\t\t\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t\t\t\t\tchangeX = -Math.min(parent.scrollLeft, (autoScrollFactor * (1 - Math.max(0, (pointerX - rect.left)) / autoScrollMarginLeft)) | 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (changeX) {\n\t\t\t\t\t\t\t\tparent.scrollLeft += changeX;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (isRoot && (changeX || changeY)) {\n\t\t\t\t\t\t\t_win.scrollTo(parent.scrollLeft, parent.scrollTop);\n\t\t\t\t\t\t\tsetPointerPosition(self.pointerX + changeX, self.pointerY + changeY);\n\t\t\t\t\t\t}\n\t\t\t\t\t\te = parent;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (dirty) {\n\t\t\t\t\tlet {x, y} = self;\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.deltaX = x - parseFloat(gsCache.rotation);\n\t\t\t\t\t\tself.rotation = x;\n\t\t\t\t\t\tgsCache.rotation = x + \"deg\";\n\t\t\t\t\t\tgsCache.renderTransform(1, gsCache);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (xyMode) {\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tself.deltaY = y - parseFloat(gsCache.y);\n\t\t\t\t\t\t\t\tgsCache.y = y + \"px\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tself.deltaX = x - parseFloat(gsCache.x);\n\t\t\t\t\t\t\t\tgsCache.x = x + \"px\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tgsCache.renderTransform(1, gsCache);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tself.deltaY = y - parseFloat(target.style.top || 0);\n\t\t\t\t\t\t\t\ttarget.style.top = y + \"px\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tself.deltaY = x - parseFloat(target.style.left || 0);\n\t\t\t\t\t\t\t\ttarget.style.left = x + \"px\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (hasDragCallback && !suppressEvents && !isDispatching) {\n\t\t\t\t\t\tisDispatching = true; //in case onDrag has an update() call (avoid endless loop)\n\t\t\t\t\t\tif (_dispatchEvent(self, \"drag\", \"onDrag\") === false) {\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tself.x -= self.deltaX;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tself.y -= self.deltaY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trender(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisDispatching = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdirty = false;\n\t\t\t},\n\n\t\t\t//copies the x/y from the element (whether that be transforms, top/left, or ScrollProxy's top/left) to the Draggable's x and y (and rotation if necessary) properties so that they reflect reality and it also (optionally) applies any snapping necessary. This is used by the InertiaPlugin tween in an onUpdate to ensure things are synced and snapped.\n\t\t\tsyncXY = (skipOnUpdate, skipSnap) => {\n\t\t\t\tlet { x, y } = self,\n\t\t\t\t\tsnappedValue, cs;\n\t\t\t\tif (!target._gsap) { //just in case the _gsap cache got wiped, like if the user called clearProps on the transform or something (very rare).\n\t\t\t\t\tgsCache = gsap.core.getCache(target);\n\t\t\t\t}\n\t\t\t\tif (xyMode) {\n\t\t\t\t\tself.x = parseFloat(gsCache.x);\n\t\t\t\t\tself.y = parseFloat(gsCache.y);\n\t\t\t\t} else if (rotationMode) {\n\t\t\t\t\tself.x = self.rotation = parseFloat(gsCache.rotation);\n\t\t\t\t} else {\n\t\t\t\t\tself.y = parseInt(target.style.top || ((cs = _getComputedStyle(target)) && cs.top), 10) || 0;\n\t\t\t\t\tself.x = parseInt(target.style.left || (cs || {}).left, 10) || 0;\n\t\t\t\t}\n\t\t\t\tif ((snapX || snapY || snapXY) && !skipSnap && (self.isDragging || self.isThrowing)) {\n\t\t\t\t\tif (snapXY) {\n\t\t\t\t\t\t_temp1.x = self.x;\n\t\t\t\t\t\t_temp1.y = self.y;\n\t\t\t\t\t\tsnappedValue = snapXY(_temp1);\n\t\t\t\t\t\tif (snappedValue.x !== self.x) {\n\t\t\t\t\t\t\tself.x = snappedValue.x;\n\t\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (snappedValue.y !== self.y) {\n\t\t\t\t\t\t\tself.y = snappedValue.y;\n\t\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (snapX) {\n\t\t\t\t\t\tsnappedValue = snapX(self.x);\n\t\t\t\t\t\tif (snappedValue !== self.x) {\n\t\t\t\t\t\t\tself.x = snappedValue;\n\t\t\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\t\t\tself.rotation = snappedValue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (snapY) {\n\t\t\t\t\t\tsnappedValue = snapY(self.y);\n\t\t\t\t\t\tif (snappedValue !== self.y) {\n\t\t\t\t\t\t\tself.y = snappedValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (dirty) {\n\t\t\t\t\trender(true);\n\t\t\t\t}\n\t\t\t\tif (!skipOnUpdate) {\n\t\t\t\t\tself.deltaX = self.x - x;\n\t\t\t\t\tself.deltaY = self.y - y;\n\t\t\t\t\t_dispatchEvent(self, \"throwupdate\", \"onThrowUpdate\");\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tbuildSnapFunc = (snap, min, max, factor) => {\n\t\t\t\tif (min == null) {\n\t\t\t\t\tmin = -_bigNum;\n\t\t\t\t}\n\t\t\t\tif (max == null) {\n\t\t\t\t\tmax = _bigNum;\n\t\t\t\t}\n\t\t\t\tif (_isFunction(snap)) {\n\t\t\t\t\treturn n => {\n\t\t\t\t\t\tlet edgeTolerance = !self.isPressed ? 1 : 1 - self.edgeResistance; //if we're tweening, disable the edgeTolerance because it's already factored into the tweening values (we don't want to apply it multiple times)\n\t\t\t\t\t\treturn snap.call(self, (n > max ? max + (n - max) * edgeTolerance : (n < min) ? min + (n - min) * edgeTolerance : n)) * factor;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tif (_isArray(snap)) {\n\t\t\t\t\treturn n => {\n\t\t\t\t\t\tlet i = snap.length,\n\t\t\t\t\t\t\tclosest = 0,\n\t\t\t\t\t\t\tabsDif = _bigNum,\n\t\t\t\t\t\t\tval, dif;\n\t\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t\tval = snap[i];\n\t\t\t\t\t\t\tdif = val - n;\n\t\t\t\t\t\t\tif (dif < 0) {\n\t\t\t\t\t\t\t\tdif = -dif;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (dif < absDif && val >= min && val <= max) {\n\t\t\t\t\t\t\t\tclosest = i;\n\t\t\t\t\t\t\t\tabsDif = dif;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn snap[closest];\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn isNaN(snap) ? n => n : () => snap * factor;\n\t\t\t},\n\n\t\t\tbuildPointSnapFunc = (snap, minX, maxX, minY, maxY, radius, factor) => {\n\t\t\t\tradius = (radius && radius < _bigNum) ? radius * radius : _bigNum; //so we don't have to Math.sqrt() in the functions. Performance optimization.\n\t\t\t\tif (_isFunction(snap)) {\n\t\t\t\t\treturn point => {\n\t\t\t\t\t\tlet edgeTolerance = !self.isPressed ? 1 : 1 - self.edgeResistance,\n\t\t\t\t\t\t\tx = point.x,\n\t\t\t\t\t\t\ty = point.y,\n\t\t\t\t\t\t\tresult, dx, dy; //if we're tweening, disable the edgeTolerance because it's already factored into the tweening values (we don't want to apply it multiple times)\n\t\t\t\t\t\tpoint.x = x = (x > maxX ? maxX + (x - maxX) * edgeTolerance : (x < minX) ? minX + (x - minX) * edgeTolerance : x);\n\t\t\t\t\t\tpoint.y = y = (y > maxY ? maxY + (y - maxY) * edgeTolerance : (y < minY) ? minY + (y - minY) * edgeTolerance : y);\n\t\t\t\t\t\tresult = snap.call(self, point);\n\t\t\t\t\t\tif (result !== point) {\n\t\t\t\t\t\t\tpoint.x = result.x;\n\t\t\t\t\t\t\tpoint.y = result.y;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (factor !== 1) {\n\t\t\t\t\t\t\tpoint.x *= factor;\n\t\t\t\t\t\t\tpoint.y *= factor;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (radius < _bigNum) {\n\t\t\t\t\t\t\tdx = point.x - x;\n\t\t\t\t\t\t\tdy = point.y - y;\n\t\t\t\t\t\t\tif (dx * dx + dy * dy > radius) {\n\t\t\t\t\t\t\t\tpoint.x = x;\n\t\t\t\t\t\t\t\tpoint.y = y;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn point;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tif (_isArray(snap)) {\n\t\t\t\t\treturn p => {\n\t\t\t\t\t\tlet i = snap.length,\n\t\t\t\t\t\t\tclosest = 0,\n\t\t\t\t\t\t\tminDist = _bigNum,\n\t\t\t\t\t\t\tx, y, point, dist;\n\t\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t\tpoint = snap[i];\n\t\t\t\t\t\t\tx = point.x - p.x;\n\t\t\t\t\t\t\ty = point.y - p.y;\n\t\t\t\t\t\t\tdist = x * x + y * y;\n\t\t\t\t\t\t\tif (dist < minDist) {\n\t\t\t\t\t\t\t\tclosest = i;\n\t\t\t\t\t\t\t\tminDist = dist;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn (minDist <= radius) ? snap[closest] : p;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn n => n;\n\t\t\t},\n\n\t\t\tcalculateBounds = () => {\n\t\t\t\tlet bounds, targetBounds, snap, snapIsRaw;\n\t\t\t\thasBounds = false;\n\t\t\t\tif (!!vars.bounds) {\n\t\t\t\t\tbounds = _getBounds(vars.bounds, target.parentNode); //could be a selector/jQuery object or a DOM element or a generic object like {top:0, left:100, width:1000, height:800} or {minX:100, maxX:1100, minY:0, maxY:800}\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.minX = minX = bounds.left;\n\t\t\t\t\t\tself.maxX = maxX = bounds.left + bounds.width;\n\t\t\t\t\t\tself.minY = minY = self.maxY = maxY = 0;\n\t\t\t\t\t} else if (!_isUndefined(vars.bounds.maxX) || !_isUndefined(vars.bounds.maxY)) {\n\t\t\t\t\t\tbounds = vars.bounds;\n\t\t\t\t\t\tself.minX = minX = bounds.minX;\n\t\t\t\t\t\tself.minY = minY = bounds.minY;\n\t\t\t\t\t\tself.maxX = maxX = bounds.maxX;\n\t\t\t\t\t\tself.maxY = maxY = bounds.maxY;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttargetBounds = _getBounds(target, target.parentNode);\n\t\t\t\t\t\tself.minX = minX = getPropAsNum(xProp) + bounds.left - targetBounds.left;\n\t\t\t\t\t\tself.minY = minY = getPropAsNum(yProp) + bounds.top - targetBounds.top;\n\t\t\t\t\t\tself.maxX = maxX = minX + (bounds.width - targetBounds.width);\n\t\t\t\t\t\tself.maxY = maxY = minY + (bounds.height - targetBounds.height);\n\t\t\t\t\t}\n\t\t\t\t\tif (minX > maxX) {\n\t\t\t\t\t\tself.minX = maxX;\n\t\t\t\t\t\tself.maxX = maxX = minX;\n\t\t\t\t\t\tminX = self.minX;\n\t\t\t\t\t}\n\t\t\t\t\tif (minY > maxY) {\n\t\t\t\t\t\tself.minY = maxY;\n\t\t\t\t\t\tself.maxY = maxY = minY;\n\t\t\t\t\t\tminY = self.minY;\n\t\t\t\t\t}\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.minRotation = minX;\n\t\t\t\t\t\tself.maxRotation = maxX;\n\t\t\t\t\t}\n\t\t\t\t\thasBounds = true;\n\t\t\t\t}\n\t\t\t\tif (vars.liveSnap) {\n\t\t\t\t\tsnap = (vars.liveSnap === true) ? (vars.snap || {}) : vars.liveSnap;\n\t\t\t\t\tsnapIsRaw = (_isArray(snap) || _isFunction(snap));\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tsnapX = buildSnapFunc((snapIsRaw ? snap : snap.rotation), minX, maxX, 1);\n\t\t\t\t\t\tsnapY = null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (snap.points) {\n\t\t\t\t\t\t\tsnapXY = buildPointSnapFunc((snapIsRaw ? snap : snap.points), minX, maxX, minY, maxY, snap.radius, 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tsnapX = buildSnapFunc((snapIsRaw ? snap : snap.x || snap.left || snap.scrollLeft), minX, maxX, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tsnapY = buildSnapFunc((snapIsRaw ? snap : snap.y || snap.top || snap.scrollTop), minY, maxY, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tonThrowComplete = () => {\n\t\t\t\tself.isThrowing = false;\n\t\t\t\t_dispatchEvent(self, \"throwcomplete\", \"onThrowComplete\");\n\t\t\t},\n\t\t\tonThrowInterrupt = () => {\n\t\t\t\tself.isThrowing = false;\n\t\t\t},\n\n\t\t\tanimate = (inertia, forceZeroVelocity) => {\n\t\t\t\tlet snap, snapIsRaw, tween, overshootTolerance;\n\t\t\t\tif (inertia && InertiaPlugin) {\n\t\t\t\t\tif (inertia === true) {\n\t\t\t\t\t\tsnap = vars.snap || vars.liveSnap || {};\n\t\t\t\t\t\tsnapIsRaw = (_isArray(snap) || _isFunction(snap));\n\t\t\t\t\t\tinertia = {resistance:(vars.throwResistance || vars.resistance || 1000) / (rotationMode ? 10 : 1)};\n\t\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\t\tinertia.rotation = _parseInertia(self, snapIsRaw ? snap : snap.rotation, maxX, minX, 1, forceZeroVelocity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tinertia[xProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.x || snap.left, maxX, minX, 1, forceZeroVelocity || (self.lockedAxis === \"x\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tinertia[yProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.y || snap.top, maxY, minY, 1, forceZeroVelocity || (self.lockedAxis === \"y\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (snap.points || (_isArray(snap) && _isObject(snap[0]))) {\n\t\t\t\t\t\t\t\tinertia.linkedProps = xProp + \",\" + yProp;\n\t\t\t\t\t\t\t\tinertia.radius = snap.radius; //note: we also disable liveSnapping while throwing if there's a \"radius\" defined, otherwise it looks weird to have the item thrown past a snapping point but live-snapping mid-tween. We do this by altering the onUpdateParams so that \"skipSnap\" parameter is true for syncXY.\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tself.isThrowing = true;\n\t\t\t\t\tovershootTolerance = (!isNaN(vars.overshootTolerance)) ? vars.overshootTolerance : (vars.edgeResistance === 1) ? 0 : (1 - self.edgeResistance) + 0.2;\n\t\t\t\t\tinertia.duration = {max:Math.max(vars.minDuration || 0, vars.maxDuration || 0) || 2, min:(!isNaN(vars.minDuration) ? vars.minDuration : (overshootTolerance === 0 || (_isObject(inertia) && inertia.resistance > 1000)) ? 0 : 0.5), overshoot:overshootTolerance};\n\t\t\t\t\tself.tween = tween = gsap.to(target, {inertia:inertia, data:\"_draggable\", onComplete:onThrowComplete, onInterrupt:onThrowInterrupt, onUpdate:(vars.fastMode ? _dispatchEvent : syncXY), onUpdateParams:(vars.fastMode ? [self, \"onthrowupdate\", \"onThrowUpdate\"] : (snap && snap.radius) ? [false, true] : [])});\n\t\t\t\t\tif (!vars.fastMode) {\n\t\t\t\t\t\ttween.render(tween.duration(), true, true);\n\t\t\t\t\t\tsyncXY(true, true);\n\t\t\t\t\t\tself.endX = self.x;\n\t\t\t\t\t\tself.endY = self.y;\n\t\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\t\tself.endRotation = self.x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttween.play(0);\n\t\t\t\t\t\tsyncXY(true, true);\n\t\t\t\t\t}\n\t\t\t\t} else if (hasBounds) {\n\t\t\t\t\tself.applyBounds();\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tupdateMatrix = shiftStart => {\n\t\t\t\tlet start = matrix || new Matrix2D(),\n\t\t\t\t\tp;\n\t\t\t\tmatrix = getGlobalMatrix(target.parentNode, true);\n\t\t\t\tif (shiftStart && self.isPressed && !matrix.equals(start)) { //if the matrix changes WHILE the element is pressed, we must adjust the startPointerX and startPointerY accordingly, so we invert the original matrix and figure out where the pointerX and pointerY were in the global space, then apply the new matrix to get the updated coordinates.\n\t\t\t\t\tp = start.inverse().apply({x:startPointerX, y:startPointerY});\n\t\t\t\t\tmatrix.apply(p, p);\n\t\t\t\t\tstartPointerX = p.x;\n\t\t\t\t\tstartPointerY = p.y;\n\t\t\t\t}\n\t\t\t\tif (matrix.equals(_identityMatrix)) { //if there are no transforms, we can optimize performance by not factoring in the matrix\n\t\t\t\t\tmatrix = null;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\trecordStartPositions = () => {\n\t\t\t\tlet edgeTolerance = 1 - self.edgeResistance,\n\t\t\t\t\tparsedOrigin, parent;\n\t\t\t\tupdateMatrix(false);\n\t\t\t\tif (matrix) {\n\t\t\t\t\t_point1.x = self.pointerX;\n\t\t\t\t\t_point1.y = self.pointerY;\n\t\t\t\t\tmatrix.apply(_point1, _point1);\n\t\t\t\t\tstartPointerX = _point1.x; //translate to local coordinate system\n\t\t\t\t\tstartPointerY = _point1.y;\n\t\t\t\t}\n\t\t\t\tif (dirty) {\n\t\t\t\t\tsetPointerPosition(self.pointerX, self.pointerY);\n\t\t\t\t\trender(true);\n\t\t\t\t}\n\n\t\t\t\t//if the element is in the process of tweening, don't force snapping to occur because it could make it jump. Imagine the user throwing, then before it's done, clicking on the element in its inbetween state.\n\t\t\t\tif (isTweening()) {\n\t\t\t\t\tsyncXY(true, true);\n\t\t\t\t\tcalculateBounds();\n\t\t\t\t} else {\n\t\t\t\t\tself.applyBounds();\n\t\t\t\t}\n\t\t\t\tif (rotationMode) {\n\t\t\t\t\tparsedOrigin = target.ownerSVGElement ? [gsCache.xOrigin - target.getBBox().x, gsCache.yOrigin - target.getBBox().y] : (_getComputedStyle(target)[_transformOriginProp] || \"0 0\").split(\" \");\n\t\t\t\t\trotationOrigin = self.rotationOrigin = getGlobalMatrix(target).apply({x:parseFloat(parsedOrigin[0]) || 0, y:parseFloat(parsedOrigin[1]) || 0});\n\t\t\t\t\tsyncXY(true, true);\n\t\t\t\t\tstartElementX = self.x; //starting rotation (x always refers to rotation in type:\"rotation\", measured in degrees)\n\t\t\t\t\tstartElementY = self.y = Math.atan2(rotationOrigin.y - self.pointerY, self.pointerX - rotationOrigin.x) * _RAD2DEG;\n\t\t\t\t} else {\n\t\t\t\t\tparent = !isFixed && target.parentNode;\n\t\t\t\t\tstartScrollTop = parent ? parent.scrollTop || 0 : 0;\n\t\t\t\t\tstartScrollLeft = parent ? parent.scrollLeft || 0 : 0;\n\t\t\t\t\tstartElementY = getPropAsNum(yProp); //record the starting top and left values so that we can just add the mouse's movement to them later.\n\t\t\t\t\tstartElementX = getPropAsNum(xProp);\n\t\t\t\t}\n\n\t\t\t\tif (hasBounds && edgeTolerance) {\n\t\t\t\t\tif (startElementX > maxX) {\n\t\t\t\t\t\tstartElementX = maxX + (startElementX - maxX) / edgeTolerance;\n\t\t\t\t\t} else if (startElementX < minX) {\n\t\t\t\t\t\tstartElementX = minX - (minX - startElementX) / edgeTolerance;\n\t\t\t\t\t}\n\t\t\t\t\tif (!rotationMode) {\n\t\t\t\t\t\tif (startElementY > maxY) {\n\t\t\t\t\t\t\tstartElementY = maxY + (startElementY - maxY) / edgeTolerance;\n\t\t\t\t\t\t} else if (startElementY < minY) {\n\t\t\t\t\t\t\tstartElementY = minY - (minY - startElementY) / edgeTolerance;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tself.startX = startElementX;\n\t\t\t\tself.startY = startElementY;\n\t\t\t},\n\n\t\t\tisTweening = () => self.tween && self.tween.isActive(),\n\n\t\t\tremovePlaceholder = () => {\n\t\t\t\tif (_placeholderDiv.parentNode && !isTweening() && !self.isDragging) { //_placeholderDiv just props open auto-scrolling containers so they don't collapse as the user drags left/up. We remove it after dragging (and throwing, if necessary) finishes.\n\t\t\t\t\t_placeholderDiv.parentNode.removeChild(_placeholderDiv);\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t//called when the mouse is pressed (or touch starts)\n\t\t\tonPress = (e, force) => {\n\t\t\t\tlet i;\n\t\t\t\tif (!enabled || self.isPressed || !e || ((e.type === \"mousedown\" || e.type === \"pointerdown\") && !force && _getTime() - clickTime < 30 && _touchEventLookup[self.pointerEvent.type])) { //when we DON'T preventDefault() in order to accommodate touch-scrolling and the user just taps, many browsers also fire a mousedown/mouseup sequence AFTER the touchstart/touchend sequence, thus it'd result in two quick \"click\" events being dispatched. This line senses that condition and halts it on the subsequent mousedown.\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinterrupted = isTweening();\n\t\t\t\tself.pointerEvent = e;\n\t\t\t\tif (_touchEventLookup[e.type]) { //note: on iOS, BOTH touchmove and mousemove are dispatched, but the mousemove has pageY and pageX of 0 which would mess up the calculations and needlessly hurt performance.\n\t\t\t\t\ttouchEventTarget = ~e.type.indexOf(\"touch\") ? (e.currentTarget || e.target) : _doc; //pointer-based touches (for Microsoft browsers) don't remain locked to the original target like other browsers, so we must use the document instead. The event type would be \"MSPointerDown\" or \"pointerdown\".\n\t\t\t\t\t_addListener(touchEventTarget, \"touchend\", onRelease);\n\t\t\t\t\t_addListener(touchEventTarget, \"touchmove\", onMove);\n\t\t\t\t\t_addListener(touchEventTarget, \"touchcancel\", onRelease);\n\t\t\t\t\t_addListener(_doc, \"touchstart\", _onMultiTouchDocument);\n\t\t\t\t} else {\n\t\t\t\t\ttouchEventTarget = null;\n\t\t\t\t\t_addListener(_doc, \"mousemove\", onMove); //attach these to the document instead of the box itself so that if the user's mouse moves too quickly (and off of the box), things still work.\n\t\t\t\t}\n\t\t\t\ttouchDragAxis = null;\n\t\t\t\tif (!_supportsPointer) {\n\t\t\t\t\t_addListener(_doc, \"mouseup\", onRelease);\n\t\t\t\t\tif (e && e.target) {\n\t\t\t\t\t\t_addListener(e.target, \"mouseup\", onRelease); //we also have to listen directly on the element because some browsers don't bubble up the event to the _doc on elements with contentEditable=\"true\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tisClicking = (isClickable.call(self, e.target) && vars.dragClickables === false && !force);\n\t\t\t\tif (isClicking) {\n\t\t\t\t\t_addListener(e.target, \"change\", onRelease); //in some browsers, when you mousedown on a <select> element, no mouseup gets dispatched! So we listen for a \"change\" event instead.\n\t\t\t\t\t_dispatchEvent(self, \"pressInit\", \"onPressInit\");\n\t\t\t\t\t_dispatchEvent(self, \"press\", \"onPress\");\n\t\t\t\t\t_setSelectable(triggers, true); //accommodates things like inputs and elements with contentEditable=\"true\" (otherwise user couldn't drag to select text)\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tallowNativeTouchScrolling = (!touchEventTarget || allowX === allowY || self.vars.allowNativeTouchScrolling === false || (self.vars.allowContextMenu && e && (e.ctrlKey || e.which > 2))) ? false : allowX ? \"y\" : \"x\"; //note: in Chrome, right-clicking (for a context menu) fires onPress and it doesn't have the event.which set properly, so we must look for event.ctrlKey. If the user wants to allow context menus we should of course sense it here and not allow native touch scrolling.\n\t\t\t\tif (!allowNativeTouchScrolling && !self.allowEventDefault) {\n\t\t\t\t\t_preventDefault(e);\n\t\t\t\t\t_addListener(_win, \"touchforcechange\", _preventDefault); //works around safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/\n\t\t\t\t}\n\t\t\t\tif (e.changedTouches) { //touch events store the data slightly differently\n\t\t\t\t\te = touch = e.changedTouches[0];\n\t\t\t\t\ttouchID = e.identifier;\n\t\t\t\t} else if (e.pointerId) {\n\t\t\t\t\ttouchID = e.pointerId; //for some Microsoft browsers\n\t\t\t\t} else {\n\t\t\t\t\ttouch = touchID = null;\n\t\t\t\t}\n\t\t\t\t_dragCount++;\n\t\t\t\t_addToRenderQueue(render); //causes the Draggable to render on each \"tick\" of TweenLite.ticker (performance optimization - updating values in a mousemove can cause them to happen too frequently, like multiple times between frame redraws which is wasteful, and it also prevents values from updating properly in IE8)\n\t\t\t\tstartPointerY = self.pointerY = e.pageY; //record the starting x and y so that we can calculate the movement from the original in _onMouseMove\n\t\t\t\tstartPointerX = self.pointerX = e.pageX;\n\t\t\t\t_dispatchEvent(self, \"pressInit\", \"onPressInit\");\n\t\t\t\tif (allowNativeTouchScrolling || self.autoScroll) {\n\t\t\t\t\t_recordMaxScrolls(target.parentNode);\n\t\t\t\t}\n\t\t\t\tif (target.parentNode && self.autoScroll && !rotationMode && target.parentNode._gsMaxScrollX && !_placeholderDiv.parentNode && !target.getBBox) { //add a placeholder div to prevent the parent container from collapsing when the user drags the element left.\n\t\t\t\t\t_placeholderDiv.style.width = target.parentNode.scrollWidth + \"px\";\n\t\t\t\t\ttarget.parentNode.appendChild(_placeholderDiv);\n\t\t\t\t}\n\t\t\t\trecordStartPositions();\n\t\t\t\tif (self.tween) {\n\t\t\t\t\tself.tween.kill();\n\t\t\t\t}\n\t\t\t\tself.isThrowing = false;\n\t\t\t\tgsap.killTweensOf(target, killProps, true); //in case the user tries to drag it before the last tween is done.\n\t\t\t\tself.tween = self.lockedAxis = null;\n\t\t\t\tif (vars.zIndexBoost || (!rotationMode && vars.zIndexBoost !== false)) {\n\t\t\t\t\ttarget.style.zIndex = Draggable.zIndex++;\n\t\t\t\t}\n\t\t\t\tself.isPressed = true;\n\t\t\t\thasDragCallback = !!(vars.onDrag || self._listeners.drag);\n\t\t\t\thasMoveCallback = !!(vars.onMove || self._listeners.move);\n\t\t\t\tif (!rotationMode && (vars.cursor !== false || vars.activeCursor)) {\n\t\t\t\t\ti = triggers.length;\n\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t_setStyle(triggers[i], \"cursor\", vars.activeCursor || vars.cursor || (_defaultCursor === \"grab\" ? \"grabbing\" : _defaultCursor));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_dispatchEvent(self, \"press\", \"onPress\");\n\t\t\t},\n\n\t\t\t//called every time the mouse/touch moves\n\t\t\tonMove = e => {\n\t\t\t\tlet originalEvent = e,\n\t\t\t\t\ttouches, pointerX, pointerY, i, dx, dy;\n\t\t\t\tif (!enabled || _isMultiTouching || !self.isPressed || !e) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tself.pointerEvent = e;\n\t\t\t\ttouches = e.changedTouches;\n\t\t\t\tif (touches) { //touch events store the data slightly differently\n\t\t\t\t\te = touches[0];\n\t\t\t\t\tif (e !== touch && e.identifier !== touchID) { //Usually changedTouches[0] will be what we're looking for, but in case it's not, look through the rest of the array...(and Android browsers don't reuse the event like iOS)\n\t\t\t\t\t\ti = touches.length;\n\t\t\t\t\t\twhile (--i > -1 && (e = touches[i]).identifier !== touchID) {}\n\t\t\t\t\t\tif (i < 0) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (e.pointerId && touchID && e.pointerId !== touchID) { //for some Microsoft browsers, we must attach the listener to the doc rather than the trigger so that when the finger moves outside the bounds of the trigger, things still work. So if the event we're receiving has a pointerId that doesn't match the touchID, ignore it (for multi-touch)\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (touchEventTarget && allowNativeTouchScrolling && !touchDragAxis) { //Android browsers force us to decide on the first \"touchmove\" event if we should allow the default (scrolling) behavior or preventDefault(). Otherwise, a \"touchcancel\" will be fired and then no \"touchmove\" or \"touchend\" will fire during the scrolling (no good).\n\t\t\t\t\t_point1.x = e.pageX;\n\t\t\t\t\t_point1.y = e.pageY;\n\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\tmatrix.apply(_point1, _point1);\n\t\t\t\t\t}\n\t\t\t\t\tpointerX = _point1.x;\n\t\t\t\t\tpointerY = _point1.y;\n\t\t\t\t\tdx = Math.abs(pointerX - startPointerX);\n\t\t\t\t\tdy = Math.abs(pointerY - startPointerY);\n\t\t\t\t\tif ((dx !== dy && (dx > minimumMovement || dy > minimumMovement)) || (_isAndroid && allowNativeTouchScrolling === touchDragAxis)) {\n\t\t\t\t\t\ttouchDragAxis = (dx > dy && allowX) ? \"x\" : \"y\";\n\t\t\t\t\t\tif (allowNativeTouchScrolling && touchDragAxis !== allowNativeTouchScrolling) {\n\t\t\t\t\t\t\t_addListener(_win, \"touchforcechange\", _preventDefault); // prevents native touch scrolling from taking over if the user started dragging in the other direction in iOS Safari\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (self.vars.lockAxisOnTouchScroll !== false) {\n\t\t\t\t\t\t\tself.lockedAxis = (touchDragAxis === \"x\") ? \"y\" : \"x\";\n\t\t\t\t\t\t\tif (_isFunction(self.vars.onLockAxis)) {\n\t\t\t\t\t\t\t\tself.vars.onLockAxis.call(self, originalEvent);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (_isAndroid && allowNativeTouchScrolling === touchDragAxis) {\n\t\t\t\t\t\t\tonRelease(originalEvent);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!self.allowEventDefault && (!allowNativeTouchScrolling || (touchDragAxis && allowNativeTouchScrolling !== touchDragAxis)) && originalEvent.cancelable !== false) {\n\t\t\t\t\t_preventDefault(originalEvent);\n\t\t\t\t}\n\n\t\t\t\tif (self.autoScroll) {\n\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t}\n\t\t\t\tsetPointerPosition(e.pageX - (isFixed ? _getDocScrollLeft() : 0), e.pageY - (isFixed ? _getDocScrollTop() : 0), hasMoveCallback);\n\t\t\t},\n\n\t\t\tsetPointerPosition = (pointerX, pointerY, invokeOnMove) => {\n\t\t\t\tlet dragTolerance = 1 - self.dragResistance,\n\t\t\t\t\tedgeTolerance = 1 - self.edgeResistance,\n\t\t\t\t\tprevPointerX = self.pointerX,\n\t\t\t\t\tprevPointerY = self.pointerY,\n\t\t\t\t\tprevStartElementY = startElementY,\n\t\t\t\t\tprevX = self.x,\n\t\t\t\t\tprevY = self.y,\n\t\t\t\t\tprevEndX = self.endX,\n\t\t\t\t\tprevEndY = self.endY,\n\t\t\t\t\tprevEndRotation = self.endRotation,\n\t\t\t\t\tprevDirty = dirty,\n\t\t\t\t\txChange, yChange, x, y, dif, temp;\n\t\t\t\tself.pointerX = pointerX;\n\t\t\t\tself.pointerY = pointerY;\n\t\t\t\tif (rotationMode) {\n\t\t\t\t\ty = Math.atan2(rotationOrigin.y - pointerY, pointerX - rotationOrigin.x) * _RAD2DEG;\n\t\t\t\t\tdif = self.y - y;\n\t\t\t\t\tif (dif > 180) {\n\t\t\t\t\t\tstartElementY -= 360;\n\t\t\t\t\t\tself.y = y;\n\t\t\t\t\t} else if (dif < -180) {\n\t\t\t\t\t\tstartElementY += 360;\n\t\t\t\t\t\tself.y = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (self.x !== startElementX || Math.abs(startElementY - y) > minimumMovement) {\n\t\t\t\t\t\tself.y = y;\n\t\t\t\t\t\tx = startElementX + (startElementY - y) * dragTolerance;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tx = startElementX;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\ttemp = pointerX * matrix.a + pointerY * matrix.c + matrix.e;\n\t\t\t\t\t\tpointerY = pointerX * matrix.b + pointerY * matrix.d + matrix.f;\n\t\t\t\t\t\tpointerX = temp;\n\t\t\t\t\t}\n\t\t\t\t\tyChange = (pointerY - startPointerY);\n\t\t\t\t\txChange = (pointerX - startPointerX);\n\t\t\t\t\tif (yChange < minimumMovement && yChange > -minimumMovement) {\n\t\t\t\t\t\tyChange = 0;\n\t\t\t\t\t}\n\t\t\t\t\tif (xChange < minimumMovement && xChange > -minimumMovement) {\n\t\t\t\t\t\txChange = 0;\n\t\t\t\t\t}\n\t\t\t\t\tif ((self.lockAxis || self.lockedAxis) && (xChange || yChange)) {\n\t\t\t\t\t\ttemp = self.lockedAxis;\n\t\t\t\t\t\tif (!temp) {\n\t\t\t\t\t\t\tself.lockedAxis = temp = (allowX && Math.abs(xChange) > Math.abs(yChange)) ? \"y\" : allowY ? \"x\" : null;\n\t\t\t\t\t\t\tif (temp && _isFunction(self.vars.onLockAxis)) {\n\t\t\t\t\t\t\t\tself.vars.onLockAxis.call(self, self.pointerEvent);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (temp === \"y\") {\n\t\t\t\t\t\t\tyChange = 0;\n\t\t\t\t\t\t} else if (temp === \"x\") {\n\t\t\t\t\t\t\txChange = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tx = _round(startElementX + xChange * dragTolerance);\n\t\t\t\t\ty = _round(startElementY + yChange * dragTolerance);\n\t\t\t\t}\n\n\t\t\t\tif ((snapX || snapY || snapXY) && (self.x !== x || (self.y !== y && !rotationMode))) {\n\t\t\t\t\tif (snapXY) {\n\t\t\t\t\t\t_temp1.x = x;\n\t\t\t\t\t\t_temp1.y = y;\n\t\t\t\t\t\ttemp = snapXY(_temp1);\n\t\t\t\t\t\tx = _round(temp.x);\n\t\t\t\t\t\ty = _round(temp.y);\n\t\t\t\t\t}\n\t\t\t\t\tif (snapX) {\n\t\t\t\t\t\tx = _round(snapX(x));\n\t\t\t\t\t}\n\t\t\t\t\tif (snapY) {\n\t\t\t\t\t\ty = _round(snapY(y));\n\t\t\t\t\t}\n\t\t\t\t} else if (hasBounds) {\n\t\t\t\t\tif (x > maxX) {\n\t\t\t\t\t\tx = maxX + Math.round((x - maxX) * edgeTolerance);\n\t\t\t\t\t} else if (x < minX) {\n\t\t\t\t\t\tx = minX + Math.round((x - minX) * edgeTolerance);\n\t\t\t\t\t}\n\t\t\t\t\tif (!rotationMode) {\n\t\t\t\t\t\tif (y > maxY) {\n\t\t\t\t\t\t\ty = Math.round(maxY + (y - maxY) * edgeTolerance);\n\t\t\t\t\t\t} else if (y < minY) {\n\t\t\t\t\t\t\ty = Math.round(minY + (y - minY) * edgeTolerance);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (self.x !== x || (self.y !== y && !rotationMode)) {\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.endRotation = self.x = self.endX = x;\n\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\tself.y = self.endY = y;\n\t\t\t\t\t\t\tdirty = true; //a flag that indicates we need to render the target next time the TweenLite.ticker dispatches a \"tick\" event (typically on a requestAnimationFrame) - this is a performance optimization (we shouldn't render on every move because sometimes many move events can get dispatched between screen refreshes, and that'd be wasteful to render every time)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\tself.x = self.endX = x;\n\t\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!invokeOnMove || _dispatchEvent(self, \"move\", \"onMove\") !== false) {\n\t\t\t\t\t\tif (!self.isDragging && self.isPressed) {\n\t\t\t\t\t\t\tself.isDragging = true;\n\t\t\t\t\t\t\t_dispatchEvent(self, \"dragstart\", \"onDragStart\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else { //revert because the onMove returned false!\n\t\t\t\t\t\tself.pointerX = prevPointerX;\n\t\t\t\t\t\tself.pointerY = prevPointerY;\n\t\t\t\t\t\tstartElementY = prevStartElementY;\n\t\t\t\t\t\tself.x = prevX;\n\t\t\t\t\t\tself.y = prevY;\n\t\t\t\t\t\tself.endX = prevEndX;\n\t\t\t\t\t\tself.endY = prevEndY;\n\t\t\t\t\t\tself.endRotation = prevEndRotation;\n\t\t\t\t\t\tdirty = prevDirty;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t//called when the mouse/touch is released\n\t\t\tonRelease = (e, force) => {\n\t\t\t\tif (!enabled || !self.isPressed || (e && touchID != null && !force && ((e.pointerId && e.pointerId !== touchID) || (e.changedTouches && !_hasTouchID(e.changedTouches, touchID))))) { //for some Microsoft browsers, we must attach the listener to the doc rather than the trigger so that when the finger moves outside the bounds of the trigger, things still work. So if the event we're receiving has a pointerId that doesn't match the touchID, ignore it (for multi-touch)\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tself.isPressed = false;\n\t\t\t\tlet originalEvent = e,\n\t\t\t\t\twasDragging = self.isDragging,\n\t\t\t\t\tisContextMenuRelease = (self.vars.allowContextMenu && e && (e.ctrlKey || e.which > 2)),\n\t\t\t\t\tplaceholderDelayedCall = gsap.delayedCall(0.001, removePlaceholder),\n\t\t\t\t\ttouches, i, syntheticEvent, eventTarget, syntheticClick;\n\t\t\t\tif (touchEventTarget) {\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchend\", onRelease);\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchmove\", onMove);\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchcancel\", onRelease);\n\t\t\t\t\t_removeListener(_doc, \"touchstart\", _onMultiTouchDocument);\n\t\t\t\t} else {\n\t\t\t\t\t_removeListener(_doc, \"mousemove\", onMove);\n\t\t\t\t}\n\t\t\t\t_removeListener(_win, \"touchforcechange\", _preventDefault);\n\t\t\t\tif (!_supportsPointer) {\n\t\t\t\t\t_removeListener(_doc, \"mouseup\", onRelease);\n\t\t\t\t\tif (e && e.target) {\n\t\t\t\t\t\t_removeListener(e.target, \"mouseup\", onRelease);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdirty = false;\n\t\t\t\tif (isClicking && !isContextMenuRelease) {\n\t\t\t\t\tif (e) {\n\t\t\t\t\t\t_removeListener(e.target, \"change\", onRelease);\n\t\t\t\t\t\tself.pointerEvent = originalEvent;\n\t\t\t\t\t}\n\t\t\t\t\t_setSelectable(triggers, false);\n\t\t\t\t\t_dispatchEvent(self, \"release\", \"onRelease\");\n\t\t\t\t\t_dispatchEvent(self, \"click\", \"onClick\");\n\t\t\t\t\tisClicking = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t_removeFromRenderQueue(render);\n\t\t\t\tif (!rotationMode) {\n\t\t\t\t\ti = triggers.length;\n\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t_setStyle(triggers[i], \"cursor\", vars.cursor || (vars.cursor !== false ? _defaultCursor : null));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (wasDragging) {\n\t\t\t\t\tdragEndTime = _lastDragTime = _getTime();\n\t\t\t\t\tself.isDragging = false;\n\t\t\t\t}\n\t\t\t\t_dragCount--;\n\t\t\t\tif (e) {\n\t\t\t\t\ttouches = e.changedTouches;\n\t\t\t\t\tif (touches) { //touch events store the data slightly differently\n\t\t\t\t\t\te = touches[0];\n\t\t\t\t\t\tif (e !== touch && e.identifier !== touchID) { //Usually changedTouches[0] will be what we're looking for, but in case it's not, look through the rest of the array...(and Android browsers don't reuse the event like iOS)\n\t\t\t\t\t\t\ti = touches.length;\n\t\t\t\t\t\t\twhile (--i > -1 && (e = touches[i]).identifier !== touchID) {}\n\t\t\t\t\t\t\tif (i < 0) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tself.pointerEvent = originalEvent;\n\t\t\t\t\tself.pointerX = e.pageX;\n\t\t\t\t\tself.pointerY = e.pageY;\n\t\t\t\t}\n\t\t\t\tif (isContextMenuRelease && originalEvent) {\n\t\t\t\t\t_preventDefault(originalEvent);\n\t\t\t\t\t_dispatchEvent(self, \"release\", \"onRelease\");\n\t\t\t\t} else if (originalEvent && !wasDragging) {\n\t\t\t\t\tif (interrupted && (vars.snap || vars.bounds)) { //otherwise, if the user clicks on the object while it's animating to a snapped position, and then releases without moving 3 pixels, it will just stay there (it should animate/snap)\n\t\t\t\t\t\tanimate(vars.inertia || vars.throwProps);\n\t\t\t\t\t}\n\t\t\t\t\t_dispatchEvent(self, \"release\", \"onRelease\");\n\t\t\t\t\tif ((!_isAndroid || originalEvent.type !== \"touchmove\") && originalEvent.type.indexOf(\"cancel\") === -1) { //to accommodate native scrolling on Android devices, we have to immediately call onRelease() on the first touchmove event, but that shouldn't trigger a \"click\".\n\t\t\t\t\t\t_dispatchEvent(self, \"click\", \"onClick\");\n\t\t\t\t\t\tif (_getTime() - clickTime < 300) {\n\t\t\t\t\t\t\t_dispatchEvent(self, \"doubleclick\", \"onDoubleClick\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\teventTarget = originalEvent.target || target; //old IE uses srcElement\n\t\t\t\t\t\tclickTime = _getTime();\n\t\t\t\t\t\tsyntheticClick = () => { // some browsers (like Firefox) won't trust script-generated clicks, so if the user tries to click on a video to play it, for example, it simply won't work. Since a regular \"click\" event will most likely be generated anyway (one that has its isTrusted flag set to true), we must slightly delay our script-generated click so that the \"real\"/trusted one is prioritized. Remember, when there are duplicate events in quick succession, we suppress all but the first one. Some browsers don't even trigger the \"real\" one at all, so our synthetic one is a safety valve that ensures that no matter what, a click event does get dispatched.\n\t\t\t\t\t\t\tif (clickTime !== clickDispatch && self.enabled() && !self.isPressed && !originalEvent.defaultPrevented) {\n\t\t\t\t\t\t\t\tif (eventTarget.click) { //some browsers (like mobile Safari) don't properly trigger the click event\n\t\t\t\t\t\t\t\t\teventTarget.click();\n\t\t\t\t\t\t\t\t} else if (_doc.createEvent) {\n\t\t\t\t\t\t\t\t\tsyntheticEvent = _doc.createEvent(\"MouseEvents\");\n\t\t\t\t\t\t\t\t\tsyntheticEvent.initMouseEvent(\"click\", true, true, _win, 1, self.pointerEvent.screenX, self.pointerEvent.screenY, self.pointerX, self.pointerY, false, false, false, false, 0, null);\n\t\t\t\t\t\t\t\t\teventTarget.dispatchEvent(syntheticEvent);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (!_isAndroid && !originalEvent.defaultPrevented) { //iOS Safari requires the synthetic click to happen immediately or else it simply won't work, but Android doesn't play nice.\n\t\t\t\t\t\t\tgsap.delayedCall(0.05, syntheticClick); //in addition to the iOS bug workaround, there's a Firefox issue with clicking on things like a video to play, so we must fake a click event in a slightly delayed fashion. Previously, we listened for the \"click\" event with \"capture\" false which solved the video-click-to-play issue, but it would allow the \"click\" event to be dispatched twice like if you were using a jQuery.click() because that was handled in the capture phase, thus we had to switch to the capture phase to avoid the double-dispatching, but do the delayed synthetic click. Don't fire it too fast (like 0.00001) because we want to give the native event a chance to fire first as it's \"trusted\".\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tanimate(vars.inertia || vars.throwProps); //will skip if inertia/throwProps isn't defined or IntertiaPlugin isn't loaded.\n\t\t\t\t\tif (!self.allowEventDefault && originalEvent && (vars.dragClickables !== false || !isClickable.call(self, originalEvent.target)) && wasDragging && (!allowNativeTouchScrolling || (touchDragAxis && allowNativeTouchScrolling === touchDragAxis)) && originalEvent.cancelable !== false) {\n\t\t\t\t\t\t_preventDefault(originalEvent);\n\t\t\t\t\t}\n\t\t\t\t\t_dispatchEvent(self, \"release\", \"onRelease\");\n\t\t\t\t}\n\t\t\t\tif (isTweening()) {\n\t\t\t\t\tplaceholderDelayedCall.duration( self.tween.duration() ); //sync the timing so that the placeholder DIV gets\n\t\t\t\t}\n\t\t\t\tif (wasDragging) {\n\t\t\t\t\t_dispatchEvent(self, \"dragend\", \"onDragEnd\");\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t},\n\n\t\t\tupdateScroll = e => {\n\t\t\t\tif (e && self.isDragging) {\n\t\t\t\t\tlet parent = e.target || target.parentNode,\n\t\t\t\t\t\tdeltaX = parent.scrollLeft - parent._gsScrollX,\n\t\t\t\t\t\tdeltaY = parent.scrollTop - parent._gsScrollY;\n\t\t\t\t\tif (deltaX || deltaY) {\n\t\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\t\tstartPointerX -= deltaX * matrix.a + deltaY * matrix.c;\n\t\t\t\t\t\t\tstartPointerY -= deltaY * matrix.d + deltaX * matrix.b;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstartPointerX -= deltaX;\n\t\t\t\t\t\t\tstartPointerY -= deltaY;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparent._gsScrollX += deltaX;\n\t\t\t\t\t\tparent._gsScrollY += deltaY;\n\t\t\t\t\t\tsetPointerPosition(self.pointerX, self.pointerY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tonClick = e => { //this was a huge pain in the neck to align all the various browsers and their behaviors. Chrome, Firefox, Safari, Opera, Android, and Microsoft Edge all handle events differently! Some will only trigger native behavior (like checkbox toggling) from trusted events. Others don't even support isTrusted, but require 2 events to flow through before triggering native behavior. Edge treats everything as trusted but also mandates that 2 flow through to trigger the correct native behavior.\n\t\t\t\tlet time = _getTime(),\n\t\t\t\t\trecentlyClicked = (time - clickTime < 40),\n\t\t\t\t\trecentlyDragged = (time - dragEndTime < 40),\n\t\t\t\t\talreadyDispatched = (recentlyClicked && clickDispatch === clickTime),\n\t\t\t\t\tdefaultPrevented = (self.pointerEvent && self.pointerEvent.defaultPrevented),\n\t\t\t\t\talreadyDispatchedTrusted = (recentlyClicked && trustedClickDispatch === clickTime),\n\t\t\t\t\ttrusted = e.isTrusted || (e.isTrusted == null && recentlyClicked && alreadyDispatched); //note: Safari doesn't support isTrusted, and it won't properly execute native behavior (like toggling checkboxes) on the first synthetic \"click\" event - we must wait for the 2nd and treat it as trusted (but stop propagation at that point). Confusing, I know. Don't you love cross-browser compatibility challenges?\n\t\t\t\tif ((alreadyDispatched || (recentlyDragged && self.vars.suppressClickOnDrag !== false) ) && e.stopImmediatePropagation) {\n\t\t\t\t\te.stopImmediatePropagation();\n\t\t\t\t}\n\t\t\t\tif (recentlyClicked && !(self.pointerEvent && self.pointerEvent.defaultPrevented) && (!alreadyDispatched || (trusted && !alreadyDispatchedTrusted))) { //let the first click pass through unhindered. Let the next one only if it's trusted, then no more (stop quick-succession ones)\n\t\t\t\t\tif (trusted && alreadyDispatched) {\n\t\t\t\t\t\ttrustedClickDispatch = clickTime;\n\t\t\t\t\t}\n\t\t\t\t\tclickDispatch = clickTime;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (self.isPressed || recentlyDragged || recentlyClicked) {\n\t\t\t\t\tif (!trusted || !e.detail || !recentlyClicked || defaultPrevented) {\n\t\t\t\t\t\t_preventDefault(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tlocalizePoint = p => matrix ? {x:p.x * matrix.a + p.y * matrix.c + matrix.e, y:p.x * matrix.b + p.y * matrix.d + matrix.f} : {x:p.x, y:p.y};\n\n\t\told = Draggable.get(target);\n\t\tif (old) {\n\t\t\told.kill(); // avoids duplicates (an element can only be controlled by one Draggable)\n\t\t}\n\n\t\t//give the user access to start/stop dragging...\n\t\tthis.startDrag = (event, align) => {\n\t\t\tlet r1, r2, p1, p2;\n\t\t\tonPress(event || self.pointerEvent, true);\n\t\t\t//if the pointer isn't on top of the element, adjust things accordingly\n\t\t\tif (align && !self.hitTest(event || self.pointerEvent)) {\n\t\t\t\tr1 = _parseRect(event || self.pointerEvent);\n\t\t\t\tr2 = _parseRect(target);\n\t\t\t\tp1 = localizePoint({x:r1.left + r1.width / 2, y:r1.top + r1.height / 2});\n\t\t\t\tp2 = localizePoint({x:r2.left + r2.width / 2, y:r2.top + r2.height / 2});\n\t\t\t\tstartPointerX -= p1.x - p2.x;\n\t\t\t\tstartPointerY -= p1.y - p2.y;\n\t\t\t}\n\t\t\tif (!self.isDragging) {\n\t\t\t\tself.isDragging = true;\n\t\t\t\t_dispatchEvent(self, \"dragstart\", \"onDragStart\");\n\t\t\t}\n\t\t};\n\t\tthis.drag = onMove;\n\t\tthis.endDrag = e =>\tonRelease(e || self.pointerEvent, true);\n\t\tthis.timeSinceDrag = () => self.isDragging ? 0 : (_getTime() - dragEndTime) / 1000;\n\t\tthis.timeSinceClick = () => (_getTime() - clickTime) / 1000;\n\t\tthis.hitTest = (target, threshold) => Draggable.hitTest(self.target, target, threshold);\n\n\t\tthis.getDirection = (from, diagonalThreshold) => { //from can be \"start\" (default), \"velocity\", or an element\n\t\t\tlet mode = (from === \"velocity\" && InertiaPlugin) ? from : (_isObject(from) && !rotationMode) ? \"element\" : \"start\",\n\t\t\t\txChange, yChange, ratio, direction, r1, r2;\n\t\t\tif (mode === \"element\") {\n\t\t\t\tr1 = _parseRect(self.target);\n\t\t\t\tr2 = _parseRect(from);\n\t\t\t}\n\t\t\txChange = (mode === \"start\") ? self.x - startElementX : (mode === \"velocity\") ? InertiaPlugin.getVelocity(target, xProp) : (r1.left + r1.width / 2) - (r2.left + r2.width / 2);\n\t\t\tif (rotationMode) {\n\t\t\t\treturn xChange < 0 ? \"counter-clockwise\" : \"clockwise\";\n\t\t\t} else {\n\t\t\t\tdiagonalThreshold = diagonalThreshold || 2;\n\t\t\t\tyChange = (mode === \"start\") ? self.y - startElementY : (mode === \"velocity\") ? InertiaPlugin.getVelocity(target, yProp) : (r1.top + r1.height / 2) - (r2.top + r2.height / 2);\n\t\t\t\tratio = Math.abs(xChange / yChange);\n\t\t\t\tdirection = (ratio < 1 / diagonalThreshold) ? \"\" : (xChange < 0) ? \"left\" : \"right\";\n\t\t\t\tif (ratio < diagonalThreshold) {\n\t\t\t\t\tif (direction !== \"\") {\n\t\t\t\t\t\tdirection += \"-\";\n\t\t\t\t\t}\n\t\t\t\t\tdirection += (yChange < 0) ? \"up\" : \"down\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn direction;\n\t\t};\n\n\t\tthis.applyBounds = newBounds => {\n\t\t\tlet x, y, forceZeroVelocity, e, parent, isRoot;\n\t\t\tif (newBounds && vars.bounds !== newBounds) {\n\t\t\t\tvars.bounds = newBounds;\n\t\t\t\treturn self.update(true);\n\t\t\t}\n\t\t\tsyncXY(true);\n\t\t\tcalculateBounds();\n\t\t\tif (hasBounds) {\n\t\t\t\tx = self.x;\n\t\t\t\ty = self.y;\n\t\t\t\tif (x > maxX) {\n\t\t\t\t\tx = maxX;\n\t\t\t\t} else if (x < minX) {\n\t\t\t\t\tx = minX;\n\t\t\t\t}\n\t\t\t\tif (y > maxY) {\n\t\t\t\t\ty = maxY;\n\t\t\t\t} else if (y < minY) {\n\t\t\t\t\ty = minY;\n\t\t\t\t}\n\t\t\t\tif (self.x !== x || self.y !== y) {\n\t\t\t\t\tforceZeroVelocity = true;\n\t\t\t\t\tself.x = self.endX = x;\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.endRotation = x;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.y = self.endY = y;\n\t\t\t\t\t}\n\t\t\t\t\tdirty = true;\n\t\t\t\t\trender(true);\n\t\t\t\t\tif (self.autoScroll && !self.isDragging) {\n\t\t\t\t\t\t_recordMaxScrolls(target.parentNode);\n\t\t\t\t\t\te = target;\n\t\t\t\t\t\t_windowProxy.scrollTop = ((_win.pageYOffset != null) ? _win.pageYOffset : (_docElement.scrollTop != null) ? _docElement.scrollTop : _body.scrollTop);\n\t\t\t\t\t\t_windowProxy.scrollLeft = ((_win.pageXOffset != null) ? _win.pageXOffset : (_docElement.scrollLeft != null) ? _docElement.scrollLeft : _body.scrollLeft);\n\t\t\t\t\t\twhile (e && !isRoot) { //walk up the chain and sense wherever the scrollTop/scrollLeft exceeds the maximum.\n\t\t\t\t\t\t\tisRoot = _isRoot(e.parentNode);\n\t\t\t\t\t\t\tparent = isRoot ? _windowProxy : e.parentNode;\n\t\t\t\t\t\t\tif (allowY && parent.scrollTop > parent._gsMaxScrollY) {\n\t\t\t\t\t\t\t\tparent.scrollTop = parent._gsMaxScrollY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowX && parent.scrollLeft > parent._gsMaxScrollX) {\n\t\t\t\t\t\t\t\tparent.scrollLeft = parent._gsMaxScrollX;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\te = parent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (self.isThrowing && (forceZeroVelocity || self.endX > maxX || self.endX < minX || self.endY > maxY || self.endY < minY)) {\n\t\t\t\t\tanimate(vars.inertia || vars.throwProps, forceZeroVelocity);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn self;\n\t\t};\n\n\t\tthis.update = (applyBounds, sticky, ignoreExternalChanges) => {\n\t\t\tlet { x, y } = self;\n\t\t\tupdateMatrix(!sticky);\n\t\t\tif (applyBounds) {\n\t\t\t\tself.applyBounds();\n\t\t\t} else {\n\t\t\t\tif (dirty && ignoreExternalChanges) {\n\t\t\t\t\trender(true);\n\t\t\t\t}\n\t\t\t\tsyncXY(true);\n\t\t\t}\n\t\t\tif (sticky) {\n\t\t\t\tsetPointerPosition(self.pointerX, self.pointerY);\n\t\t\t\tif (dirty) {\n\t\t\t\t\trender(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (self.isPressed && !sticky && ((allowX && Math.abs(x - self.x) > 0.01) || (allowY && (Math.abs(y - self.y) > 0.01 && !rotationMode)))) {\n\t\t\t\trecordStartPositions();\n\t\t\t}\n\t\t\tif (self.autoScroll) {\n\t\t\t\t_recordMaxScrolls(target.parentNode);\n\t\t\t\tcheckAutoScrollBounds = self.isDragging;\n\t\t\t\trender(true);\n\t\t\t}\n\t\t\tif (self.autoScroll) { //in case reparenting occurred.\n\t\t\t\t_removeScrollListener(target, updateScroll);\n\t\t\t\t_addScrollListener(target, updateScroll);\n\t\t\t}\n\t\t\treturn self;\n\t\t};\n\n\t\tthis.enable = type => {\n\t\t\tlet id, i, trigger;\n\t\t\tif (type !== \"soft\") {\n\t\t\t\ti = triggers.length;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\ttrigger = triggers[i];\n\t\t\t\t\tif (!_supportsPointer) {\n\t\t\t\t\t\t_addListener(trigger, \"mousedown\", onPress);\n\t\t\t\t\t}\n\t\t\t\t\t_addListener(trigger, \"touchstart\", onPress);\n\t\t\t\t\t_addListener(trigger, \"click\", onClick, true); //note: used to pass true for capture but it prevented click-to-play-video functionality in Firefox.\n\t\t\t\t\tif (!rotationMode && vars.cursor !== false) {\n\t\t\t\t\t\t_setStyle(trigger, \"cursor\", vars.cursor || _defaultCursor);\n\t\t\t\t\t}\n\t\t\t\t\t_setStyle(trigger, \"touchCallout\", \"none\");\n\t\t\t\t\t_setStyle(trigger, \"touchAction\", (allowX === allowY) ? \"none\" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? \"manipulation\" : allowX ? \"pan-y\" : \"pan-x\");\n\t\t\t\t\tif (trigger.getBBox && trigger.ownerSVGElement) { // a bug in chrome doesn't respect touch-action on SVG elements - it only works if we set it on the parent SVG.\n\t\t\t\t\t\t_setStyle(trigger.ownerSVGElement, \"touchAction\", (allowX === allowY) ? \"none\" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? \"manipulation\" : allowX ? \"pan-y\" : \"pan-x\");\n\t\t\t\t\t}\n\t\t\t\t\tif (!self.vars.allowContextMenu) {\n\t\t\t\t\t\t_addListener(trigger, \"contextmenu\", onContextMenu);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_setSelectable(triggers, false);\n\t\t\t}\n\t\t\t_addScrollListener(target, updateScroll);\n\t\t\tenabled = true;\n\t\t\tif (InertiaPlugin && type !== \"soft\") {\n\t\t\t\tInertiaPlugin.track(target, (xyMode ? \"x,y\" : rotationMode ? \"rotation\" : \"top,left\"));\n\t\t\t}\n\t\t\ttarget._gsDragID = id = \"d\" + (_lookupCount++);\n\t\t\t_lookup[id] = self;\n\t\t\t//syncXY();\n\t\t\trecordStartPositions();\n\t\t\tself.update(true);\n\t\t\treturn self;\n\t\t};\n\n\t\tthis.disable = type => {\n\t\t\tlet dragging = self.isDragging,\n\t\t\t\ti, trigger;\n\t\t\tif (!rotationMode) {\n\t\t\t\ti = triggers.length;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t_setStyle(triggers[i], \"cursor\", null);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (type !== \"soft\") {\n\t\t\t\ti = triggers.length;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\ttrigger = triggers[i];\n\t\t\t\t\t_setStyle(trigger, \"touchCallout\", null);\n\t\t\t\t\t_setStyle(trigger, \"touchAction\", null);\n\t\t\t\t\t_removeListener(trigger, \"mousedown\", onPress);\n\t\t\t\t\t_removeListener(trigger, \"touchstart\", onPress);\n\t\t\t\t\t_removeListener(trigger, \"click\", onClick);\n\t\t\t\t\t_removeListener(trigger, \"contextmenu\", onContextMenu);\n\t\t\t\t}\n\t\t\t\t_setSelectable(triggers, true);\n\t\t\t\tif (touchEventTarget) {\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchcancel\", onRelease);\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchend\", onRelease);\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchmove\", onMove);\n\t\t\t\t}\n\t\t\t\t_removeListener(_doc, \"mouseup\", onRelease);\n\t\t\t\t_removeListener(_doc, \"mousemove\", onMove);\n\t\t\t}\n\t\t\t_removeScrollListener(target, updateScroll);\n\t\t\tenabled = false;\n\t\t\tif (InertiaPlugin && type !== \"soft\") {\n\t\t\t\tInertiaPlugin.untrack(target, (xyMode ? \"x,y\" : rotationMode ? \"rotation\" : \"top,left\"));\n\t\t\t}\n\t\t\t_removeFromRenderQueue(render);\n\t\t\tself.isDragging = self.isPressed = isClicking = false;\n\t\t\tif (dragging) {\n\t\t\t\t_dispatchEvent(self, \"dragend\", \"onDragEnd\");\n\t\t\t}\n\t\t\treturn self;\n\t\t};\n\n\t\tthis.enabled = function(value, type) {\n\t\t\treturn arguments.length ? (value ? self.enable(type) : self.disable(type)) : enabled;\n\t\t};\n\n\t\tthis.kill = function() {\n\t\t\tself.isThrowing = false;\n\t\t\tgsap.killTweensOf(target, killProps, true);\n\t\t\tself.disable();\n\t\t\tgsap.set(triggers, {clearProps:\"userSelect\"});\n\t\t\tdelete _lookup[target._gsDragID];\n\t\t\treturn self;\n\t\t};\n\n\t\tif (rotationMode) {\n\t\t\tkillProps.rotation = 1;\n\t\t} else {\n\t\t\tif (allowX) {\n\t\t\t\tkillProps[xProp] = 1;\n\t\t\t}\n\t\t\tif (allowY) {\n\t\t\t\tkillProps[yProp] = 1;\n\t\t\t}\n\t\t}\n\n\t\tthis.enable();\n\t}\n\n\n\n\n\tstatic register(core) {\n\t\tgsap = core;\n\t\t_initCore();\n\t}\n\n\tstatic create(targets, vars) {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore(true);\n\t\t}\n\t\treturn _toArray(targets).map(target => new Draggable(target, vars));\n\t}\n\n\tstatic get(target) {\n\t\treturn _lookup[(_toArray(target)[0] || {})._gsDragID];\n\t}\n\n\tstatic timeSinceDrag() {\n\t\treturn (_getTime() - _lastDragTime) / 1000;\n\t}\n\n\tstatic hitTest(obj1, obj2, threshold) {\n\t\tif (obj1 === obj2) {\n\t\t\treturn false;\n\t\t}\n\t\tlet r1 = _parseRect(obj1),\n\t\t\tr2 = _parseRect(obj2),\n\t\t\t{ top, left, right, bottom, width, height } = r1,\n\t\t\tisOutside = (r2.left > right || r2.right < left || r2.top > bottom || r2.bottom < top),\n\t\t\toverlap, area, isRatio;\n\t\tif (isOutside || !threshold) {\n\t\t\treturn !isOutside;\n\t\t}\n\t\tisRatio = ((threshold + \"\").indexOf(\"%\") !== -1);\n\t\tthreshold = parseFloat(threshold) || 0;\n\t\toverlap = {left: Math.max(left, r2.left), top: Math.max(top, r2.top)};\n\t\toverlap.width = Math.min(right, r2.right) - overlap.left;\n\t\toverlap.height = Math.min(bottom, r2.bottom) - overlap.top;\n\t\tif (overlap.width < 0 || overlap.height < 0) {\n\t\t\treturn false;\n\t\t}\n\t\tif (isRatio) {\n\t\t\tthreshold *= 0.01;\n\t\t\tarea = overlap.width * overlap.height;\n\t\t\treturn (area >= width * height * threshold || area >= r2.width * r2.height * threshold);\n\t\t}\n\t\treturn (overlap.width > threshold && overlap.height > threshold);\n\t}\n\n}\n\n_setDefaults(Draggable.prototype, {pointerX:0, pointerY: 0, startX: 0, startY: 0, deltaX: 0, deltaY: 0, isDragging: false, isPressed: false});\n\nDraggable.zIndex = 1000;\nDraggable.version = \"3.0.0\";\n\n_getGSAP() && gsap.registerPlugin(Draggable);\n\nexport { Draggable as default };"],"names":["_createSibling","element","i","parentNode","_doc","_setDoc","doc","ownerDocument","_transformProp","style","_transformOriginProp","_win","window","_identityMatrix","Matrix2D","_docElement","documentElement","_body","body","svg","_svgOwner","ns","getAttribute","type","x","y","css","e","createElementNS","replace","createElement","_svgContainer","setAttribute","appendChild","_divContainer","cssText","_setMatrix","m","a","b","c","d","f","_svgTemps","_divTemps","_getDocScrollTop","pageYOffset","scrollTop","_getDocScrollLeft","pageXOffset","scrollLeft","ownerSVGElement","tagName","toLowerCase","_placeSiblings","container","isRootSVG","siblings","length","push","getBBox","transform","baseVal","consolidate","matrix","top","offsetTop","left","offsetLeft","getComputedStyle","inverse","this","determinant","multiply","a2","b2","c2","d2","e2","f2","equals","apply","point","decoratee","getGlobalMatrix","temps","b1","getBoundingClientRect","b3","parent","removeChild","_windowExists","_getGSAP","gsap","registerPlugin","_isFunction","value","_isObject","_isUndefined","_emptyFunc","_round","Math","round","_copy","obj","factor","p","copy","_renderQueueTick","_renderQueue","forEach","func","_renderQueueTimeout","ticker","remove","_removeFromRenderQueue","splice","to","overwrite","delay","duration","onComplete","data","_addListener","capture","addEventListener","touchType","_touchEventLookup","_supportsPassive","passive","substr","_removeListener","removeEventListener","_preventDefault","event","preventDefault","preventManipulation","_onMultiTouchDocumentEnd","_isMultiTouching","touches","_dragCount","target","_onMultiTouchDocument","_addScrollListener","callback","_isRoot","_removeScrollListener","_getMaxScroll","axis","dim","scroll","client","max","_recordMaxScrolls","_windowProxy","_gsMaxScrollX","_gsMaxScrollY","_gsScrollX","_gsScrollY","_setStyle","property","_checkPrefix","removeProperty","_getComputedStyle","Element","host","_parseRect","_tempRect","width","right","clientWidth","innerWidth","height","bottom","innerHeight","clientHeight","r","pageX","nodeType","_toArray","pageY","_dispatchEvent","callbackName","result","vars","listeners","_listeners","callbackScope","pointerEvent","dispatchEvent","_getBounds","context","offset","_getElementBounds","min","minX","minRotation","minY","maxX","maxRotation","maxY","_parseInertia","draggable","snap","forceZeroVelocity","l","Array","end","call","velocity","_isClickable","onclick","_clickableTagExp","test","nodeName","_setSelectable","elements","selectable","ondragstart","onselectstart","_initCore","required","document","_tempDiv","_createElement","_supportsPointer","PointerEvent","_placeholderDiv","_defaultCursor","cursor","_isAndroid","navigator","userAgent","indexOf","types","standard","split","converted","onpointerdown","onmspointerdown","Object","defineProperty","get","_lookup","isPressed","endDrag","_coreInitted","InertiaPlugin","plugins","inertia","utils","checkPrefix","toArray","console","warn","_isArray","isArray","_RAD2DEG","PI","_bigNum","_getTime","Date","now","getTime","_lookupCount","_lastDragTime","_temp1","_point1","p1","p2","p3","p4","bbox","cs","contextParent","isSVG","viewBox","parseFloat","EventDispatcher","list","_this","Draggable","register","core","create","targets","map","_gsDragID","timeSinceDrag","hitTest","obj1","obj2","threshold","overlap","area","isRatio","r1","r2","isOutside","_this2","rotation","dragResistance","edgeResistance","isNaN","lockAxis","autoScroll","lockedAxis","allowEventDefault","set","getPropAsNum","unit","gsCache","onContextMenu","self","which","stopPropagation","render","suppressEvents","isDragging","checkAutoScrollBounds","dirty","isRoot","rect","pointerX","pointerY","changeX","changeY","gap","autoScrollFactor","allowY","autoScrollMarginBottom","autoScrollMarginTop","allowX","autoScrollMarginRight","autoScrollMarginLeft","scrollTo","setPointerPosition","rotationMode","deltaX","renderTransform","xyMode","deltaY","hasDragCallback","isDispatching","syncXY","skipOnUpdate","skipSnap","snappedValue","_gsap","getCache","parseInt","snapX","snapY","snapXY","isThrowing","buildSnapFunc","n","edgeTolerance","val","dif","closest","absDif","calculateBounds","bounds","targetBounds","snapIsRaw","hasBounds","xProp","yProp","liveSnap","points","buildPointSnapFunc","radius","dx","dy","dist","minDist","onThrowComplete","onThrowInterrupt","animate","tween","overshootTolerance","resistance","throwResistance","linkedProps","minDuration","maxDuration","overshoot","onInterrupt","onUpdate","fastMode","onUpdateParams","endX","endY","endRotation","play","applyBounds","updateMatrix","shiftStart","start","startPointerX","startPointerY","recordStartPositions","parsedOrigin","isTweening","xOrigin","yOrigin","rotationOrigin","startElementX","startElementY","atan2","isFixed","startX","startY","removePlaceholder","onPress","force","enabled","clickTime","interrupted","touchEventTarget","currentTarget","onRelease","onMove","touchDragAxis","isClicking","isClickable","dragClickables","triggers","allowNativeTouchScrolling","allowContextMenu","ctrlKey","changedTouches","touch","touchID","identifier","pointerId","_addToRenderQueue","add","scrollWidth","kill","killTweensOf","killProps","zIndexBoost","zIndex","onDrag","drag","hasMoveCallback","move","activeCursor","updateScroll","onClick","time","recentlyClicked","recentlyDragged","dragEndTime","alreadyDispatched","clickDispatch","defaultPrevented","alreadyDispatchedTrusted","trustedClickDispatch","trusted","isTrusted","suppressClickOnDrag","stopImmediatePropagation","detail","localizePoint","old","minimumMovement","trigger","handle","clickableTest","_isFixed","position","isActive","originalEvent","abs","lockAxisOnTouchScroll","onLockAxis","cancelable","invokeOnMove","xChange","yChange","temp","dragTolerance","prevPointerX","prevPointerY","prevStartElementY","prevX","prevY","prevEndX","prevEndY","prevEndRotation","prevDirty","_hasTouchID","ID","syntheticEvent","eventTarget","syntheticClick","wasDragging","isContextMenuRelease","placeholderDelayedCall","delayedCall","throwProps","click","createEvent","initMouseEvent","screenX","screenY","startDrag","align","timeSinceClick","getDirection","from","diagonalThreshold","ratio","direction","mode","getVelocity","newBounds","update","sticky","ignoreExternalChanges","enable","id","track","disable","dragging","untrack","arguments","clearProps","_setDefaults","defaults","prototype","version"],"mappings":"6MAmCkB,SAAjBA,EAAkBC,EAASC,MAC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G,EAAOkJ,WACf0B,GAGJwB,EACHyG,EAAU9I,SAAW,GAEjBgC,IACH8G,EAAU3E,GAAS,GAEhBtC,IACHiH,EAAU1E,GAAS,MAIhB2J,YA7+CS,SAAfQ,aAAgB3a,EAAK4a,OACf,IAAI1a,KAAK0a,EACP1a,KAAKF,IACVA,EAAIE,GAAK0a,EAAS1a,IAkiDtBya,CAAa1P,EAAU4P,UAAW,CAAClN,SAAS,EAAGC,SAAU,EAAGwF,OAAQ,EAAGC,OAAQ,EAAG3E,OAAQ,EAAGG,OAAQ,EAAGvB,YAAY,EAAO1E,WAAW,IAEtIqC,EAAUmK,OAAS,IACnBnK,EAAU6P,QAAU,QAEpB1b,KAAcC,GAAKC,eAAe2L"}
\ No newline at end of file
+{"version":3,"file":"Draggable.min.js","sources":["../src/utils/matrix.js","../src/Draggable.js"],"sourcesContent":["/*!\n * matrix 3.0.2\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _doc, _win, _docElement, _body,\t_divContainer, _svgContainer, _identityMatrix,\n\t_transformProp = \"transform\",\n\t_transformOriginProp = _transformProp + \"Origin\",\n\t_setDoc = element => {\n\t\tlet doc = element.ownerDocument || element;\n\t\tif (!(_transformProp in element.style) && \"msTransform\" in element.style) { //to improve compatibility with old Microsoft browsers\n\t\t\t_transformProp = \"msTransform\";\n\t\t\t_transformOriginProp = _transformProp + \"Origin\";\n\t\t}\n\t\twhile (doc.parentNode && (doc = doc.parentNode)) {\t}\n\t\t_win = window;\n\t\t_identityMatrix = new Matrix2D();\n\t\tif (doc) {\n\t\t\t_doc = doc;\n\t\t\t_docElement = doc.documentElement;\n\t\t\t_body = doc.body;\n\t\t}\n\t\treturn doc;\n\t},\n\t_svgTemps = [], //we create 3 elements for SVG, and 3 for other DOM elements and cache them for performance reasons. They get nested in _divContainer and _svgContainer so that just one element is added to the DOM on each successive attempt. Again, performance is key.\n\t_divTemps = [],\n\t_getDocScrollTop = () => _win.pageYOffset || _doc.scrollTop || _docElement.scrollTop || _body.scrollTop || 0,\n\t_getDocScrollLeft = () => _win.pageXOffset || _doc.scrollLeft || _docElement.scrollLeft || _body.scrollLeft || 0,\n\t_svgOwner = element => element.ownerSVGElement || ((element.tagName + \"\").toLowerCase() === \"svg\" ? element : null),\n\t_isFixed = element => {\n\t\tif (_win.getComputedStyle(element).position === \"fixed\") {\n\t\t\treturn true;\n\t\t}\n\t\telement = element.parentNode;\n\t\tif (element && element.nodeType === 1) { // avoid document fragments which will throw an error.\n\t\t\treturn _isFixed(element);\n\t\t}\n\t},\n\t_createSibling = (element, i) => {\n\t\tif (element.parentNode && (_doc || _setDoc(element))) {\n\t\t\tlet svg = _svgOwner(element),\n\t\t\t\tns = svg ? (svg.getAttribute(\"xmlns\") || \"http://www.w3.org/2000/svg\") : \"http://www.w3.org/1999/xhtml\",\n\t\t\t\ttype = svg ? (i ? \"rect\" : \"g\") : \"div\",\n\t\t\t\tx = i !== 2 ? 0 : 100,\n\t\t\t\ty = i === 3 ? 100 : 0,\n\t\t\t\tcss = \"position:absolute;display:block;\",\n\t\t\t\te = _doc.createElementNS ? _doc.createElementNS(ns.replace(/^https/, \"http\"), type) : _doc.createElement(type);\n\t\t\tif (i) {\n\t\t\t\tif (!svg) {\n\t\t\t\t\tif (!_divContainer) {\n\t\t\t\t\t\t_divContainer = _createSibling(element);\n\t\t\t\t\t\t_divContainer.style.cssText = css;\n\t\t\t\t\t}\n\t\t\t\t\te.style.cssText = css + \"width:1px;height:1px;top:\" + y + \"px;left:\" + x + \"px\";\n\t\t\t\t\t_divContainer.appendChild(e);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (!_svgContainer) {\n\t\t\t\t\t\t_svgContainer = _createSibling(element);\n\t\t\t\t\t}\n\t\t\t\t\te.setAttribute(\"width\", 1);\n\t\t\t\t\te.setAttribute(\"height\", 1);\n\t\t\t\t\te.setAttribute(\"transform\", \"translate(\" + x + \",\" + y + \")\");\n\t\t\t\t\t_svgContainer.appendChild(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn e;\n\t\t}\n\t\tthrow \"Need document and parent.\";\n\t},\n\t_placeSiblings = element => {\n\t\tlet svg = _svgOwner(element),\n\t\t\tisRootSVG = element === svg,\n\t\t\tsiblings = svg ? _svgTemps : _divTemps,\n\t\t\tcontainer, m, b, x, y;\n\t\tif (element === _win) {\n\t\t\treturn element;\n\t\t}\n\t\tif (!siblings.length) {\n\t\t\tsiblings.push(_createSibling(element, 1), _createSibling(element, 2), _createSibling(element, 3));\n\t\t}\n\t\tcontainer = svg ? _svgContainer : _divContainer;\n\t\tif (svg) {\n\t\t\tb = isRootSVG ? {x:0, y:0} : element.getBBox();\n\t\t\tm = element.transform ? element.transform.baseVal : []; // IE11 doesn't follow the spec.\n\t\t\tif (m.length) {\n\t\t\t\tm = m.consolidate().matrix;\n\t\t\t\tx = m.a * b.x + m.c * b.y;\n\t\t\t\ty = m.b * b.x + m.d * b.y;\n\t\t\t} else {\n\t\t\t\tm = _identityMatrix;\n\t\t\t\tif (element.tagName.toLowerCase() === \"g\") {\n\t\t\t\t\tx = y = 0;\n\t\t\t\t} else {\n\t\t\t\t\tx = b.x;\n\t\t\t\t\ty = b.y;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontainer.setAttribute(\"transform\", \"matrix(\" + m.a + \",\" + m.b + \",\" + m.c + \",\" + m.d + \",\" + (m.e + x) + \",\" + (m.f + y) + \")\");\n\t\t\t(isRootSVG ? svg : element.parentNode).appendChild(container);\n\t\t} else {\n\t\t\tcontainer.style.top = element.offsetTop + \"px\";\n\t\t\tcontainer.style.left = element.offsetLeft + \"px\";\n\t\t\tm = _win.getComputedStyle(element);\n\t\t\tcontainer.style[_transformProp] = m[_transformProp];\n\t\t\tcontainer.style[_transformOriginProp] = m[_transformOriginProp];\n\t\t\tcontainer.style.position = m.position === \"fixed\" ? \"fixed\" : \"absolute\";\n\t\t\telement.parentNode.appendChild(container);\n\t\t}\n\t\treturn container;\n\t},\n\t_setMatrix = (m, a, b, c, d, e, f) => {\n\t\tm.a = a;\n\t\tm.b = b;\n\t\tm.c = c;\n\t\tm.d = d;\n\t\tm.e = e;\n\t\tm.f = f;\n\t\treturn m;\n\t};\n\nexport class Matrix2D {\n\tconstructor(a=1, b=0, c=0, d=1, e=0, f=0) {\n\t\t_setMatrix(this, a, b, c, d, e, f);\n\t}\n\n\tinverse() {\n\t\tlet {a, b, c, d, e, f} = this,\n\t\t\tdeterminant = (a * d - b * c);\n\t\treturn _setMatrix(\n\t\t\tthis,\n\t\t\td / determinant,\n\t\t\t-b / determinant,\n\t\t\t-c / determinant,\n\t\t\ta / determinant,\n\t\t\t(c * f - d * e) / determinant,\n\t\t\t-(a * f - b * e) / determinant\n\t\t);\n\t}\n\n\tmultiply(matrix) {\n\t\tlet {a, b, c, d, e, f} = this,\n\t\t\ta2 = matrix.a,\n\t\t\tb2 = matrix.c,\n\t\t\tc2 = matrix.b,\n\t\t\td2 = matrix.d,\n\t\t\te2 = matrix.e,\n\t\t\tf2 = matrix.f;\n\t\treturn _setMatrix(this,\n\t\t\ta2 * a + c2 * c,\n\t\t\ta2 * b + c2 * d,\n\t\t\tb2 * a + d2 * c,\n\t\t\tb2 * b + d2 * d,\n\t\t\te + e2 * a + f2 * c,\n\t\t\tf + e2 * b + f2 * d);\n\t}\n\n\tequals(matrix) {\n\t\tlet {a, b, c, d, e, f} = this;\n\t\treturn (a === matrix.a && b === matrix.b && c === matrix.c && d === matrix.d && e === matrix.e && f === matrix.f);\n\t}\n\n\tapply(point, decoratee={}) {\n\t\tlet {x, y} = point,\n\t\t\t{a, b, c, d, e, f} = this;\n\t\tdecoratee.x = x * a + y * c + e;\n\t\tdecoratee.y = x * b + y * d + f;\n\t\treturn decoratee;\n\t}\n\n}\n\n//feed in an element and it'll return a 2D matrix (optionally inverted) so that you can translate between coordinate spaces.\n// Inverting lets you translate a global point into a local coordinate space. No inverting lets you go the other way.\n// We needed this to work around various browser bugs, like Firefox doesn't accurately report getScreenCTM() when there\n// are transforms applied to ancestor elements.\n// The matrix math to convert any x/y coordinate is:\n// tx = m.a * x + m.c * y + m.e\n// ty = m.b * x + m.d * y + m.f\nexport function getGlobalMatrix(element, inverse) {\n\tif (!element || !element.parentNode) {\n\t\treturn new Matrix2D();\n\t}\n\tlet svg = _svgOwner(element),\n\t\ttemps = svg ? _svgTemps : _divTemps,\n\t\tcontainer = _placeSiblings(element),\n\t\tb1 = temps[0].getBoundingClientRect(),\n\t\tb2 = temps[1].getBoundingClientRect(),\n\t\tb3 = temps[2].getBoundingClientRect(),\n\t\tparent = container.parentNode,\n\t\tisFixed = _isFixed(element),\n\t\tm = new Matrix2D(\n\t\t\t(b2.left - b1.left) / 100,\n\t\t\t(b2.top - b1.top) / 100,\n\t\t\t(b3.left - b1.left) / 100,\n\t\t\t(b3.top - b1.top) / 100,\n\t\t\tb1.left + (isFixed ? 0 : _getDocScrollLeft()),\n\t\t\tb1.top + (isFixed ? 0 : _getDocScrollTop())\n\t\t);\n\tparent.removeChild(container);\n\treturn inverse ? m.inverse() : m;\n}\n","/*!\n * Draggable 3.0.2\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n/* eslint-disable */\n\nimport { getGlobalMatrix, Matrix2D } from \"./utils/matrix.js\";\n\nlet gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitted, _checkPrefix, _toArray, _supportsPassive, _isTouchDevice, _touchEventLookup, _dragCount, _isMultiTouching, _isAndroid, InertiaPlugin, _defaultCursor, _supportsPointer,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_isFunction = value => typeof(value) === \"function\",\n\t_isObject = value => typeof(value) === \"object\",\n\t_isUndefined = value => typeof(value) === \"undefined\",\n\t_emptyFunc = () => 0,\n\t_transformProp = \"transform\",\n\t_transformOriginProp = \"transformOrigin\",\n\t_round = value => Math.round(value * 10000) / 10000,\n\t_isArray = Array.isArray,\n\t_createElement = (type, ns) => {\n\t\tlet e = _doc.createElementNS ? _doc.createElementNS((ns || \"http://www.w3.org/1999/xhtml\").replace(/^https/, \"http\"), type) : _doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making \"style\" inaccessible.\n\t\treturn e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://greensock.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).\n\t},\n\t_RAD2DEG = 180 / Math.PI,\n\t_bigNum = 1e20,\n\t_identityMatrix = new Matrix2D(),\n\t_getTime = Date.now || (() => new Date().getTime()),\n\t_renderQueue = [],\n\t_lookup = {}, //when a Draggable is created, the target gets a unique _gsDragID property that allows gets associated with the Draggable instance for quick lookups in Draggable.get(). This avoids circular references that could cause gc problems.\n\t_lookupCount = 0,\n\t_clickableTagExp = /^(?:a|input|textarea|button|select)$/i,\n\t_lastDragTime = 0,\n\t_temp1 = {}, // a simple object we reuse and populate (usually x/y properties) to conserve memory and improve performance.\n\t_windowProxy = {}, //memory/performance optimization - we reuse this object during autoScroll to store window-related bounds/offsets.\n\t_copy = (obj, factor) => {\n\t\tlet copy = {}, p;\n\t\tfor (p in obj) {\n\t\t\tcopy[p] = factor ? obj[p] * factor : obj[p];\n\t\t}\n\t\treturn copy;\n\t},\n\t_extend = (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\tif (!(p in obj)) {\n\t\t\t\tobj[p] = defaults[p];\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t},\n\t_renderQueueTick = () => _renderQueue.forEach(func => func()),\n\t_addToRenderQueue = func => {\n\t\t_renderQueue.push(func);\n\t\tif (_renderQueue.length === 1) {\n\t\t\tgsap.ticker.add(_renderQueueTick);\n\t\t}\n\t},\n\t_renderQueueTimeout = () => !_renderQueue.length && gsap.ticker.remove(_renderQueueTick),\n\t_removeFromRenderQueue = func => {\n\t\tlet i = _renderQueue.length;\n\t\twhile (i--) {\n\t\t\tif (_renderQueue[i] === func) {\n\t\t\t\t_renderQueue.splice(i, 1);\n\t\t\t}\n\t\t}\n\t\tgsap.to(_renderQueueTimeout, {overwrite:true, delay:15, duration:0, onComplete:_renderQueueTimeout, data:\"_draggable\"}); //remove the \"tick\" listener only after the render queue is empty for 15 seconds (to improve performance). Adding/removing it constantly for every click/touch wouldn't deliver optimal speed, and we also don't want the ticker to keep calling the render method when things are idle for long periods of time (we want to improve battery life on mobile devices).\n\t},\n\t_setDefaults = (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\tif (!(p in obj)) {\n\t\t\t\tobj[p] = defaults[p];\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t},\n\t_addListener = (element, type, func, capture) => {\n\t\tif (element.addEventListener) {\n\t\t\tlet touchType = _touchEventLookup[type];\n\t\t\tcapture = capture || (_supportsPassive ? {passive:false} : null);\n\t\t\telement.addEventListener(touchType || type, func, capture);\n\t\t\tif (touchType && type !== touchType && touchType.substr(0, 7) !== \"pointer\") { //some browsers actually support both, so must we. But pointer events cover all.\n\t\t\t\telement.addEventListener(type, func, capture);\n\t\t\t}\n\t\t}\n\t},\n\t_removeListener = (element, type, func) => {\n\t\tif (element.removeEventListener) {\n\t\t\tlet touchType = _touchEventLookup[type];\n\t\t\telement.removeEventListener(touchType || type, func);\n\t\t\tif (touchType && type !== touchType && touchType.substr(0, 7) !== \"pointer\") {\n\t\t\t\telement.removeEventListener(type, func);\n\t\t\t}\n\t\t}\n\t},\n\t_preventDefault = event => {\n\t\tif (event.preventDefault) {\n\t\t\tevent.preventDefault();\n\t\t\tif (event.preventManipulation) {\n\t\t\t\tevent.preventManipulation(); //for some Microsoft browsers\n\t\t\t}\n\t\t}\n\t},\n\t_hasTouchID = (list, ID) => {\n\t\tlet i = list.length;\n\t\twhile (i--) {\n\t\t\tif (list[i].identifier === ID) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t},\n\t_onMultiTouchDocumentEnd = event => {\n\t\t_isMultiTouching = (event.touches && _dragCount < event.touches.length);\n\t\t_removeListener(event.target, \"touchend\", _onMultiTouchDocumentEnd);\n\t},\n\n\t_onMultiTouchDocument = event => {\n\t\t_isMultiTouching = (event.touches && _dragCount < event.touches.length);\n\t\t_addListener(event.target, \"touchend\", _onMultiTouchDocumentEnd);\n\t},\n\t_getDocScrollTop = doc => _win.pageYOffset || doc.scrollTop || doc.documentElement.scrollTop || doc.body.scrollTop || 0,\n\t_getDocScrollLeft = doc => _win.pageXOffset || doc.scrollLeft || doc.documentElement.scrollLeft || doc.body.scrollLeft || 0,\n\t_addScrollListener = (e, callback) => {\n\t\t_addListener(e, \"scroll\", callback);\n\t\tif (!_isRoot(e.parentNode)) {\n\t\t\t_addScrollListener(e.parentNode, callback);\n\t\t}\n\t},\n\t_removeScrollListener = (e, callback) => {\n\t\t_removeListener(e, \"scroll\", callback);\n\t\tif (!_isRoot(e.parentNode)) {\n\t\t\t_removeScrollListener(e.parentNode, callback);\n\t\t}\n\t},\n\t_isRoot = e => !!(!e || e === _docElement || e.nodeType === 9 || e === _doc.body || e === _win || !e.nodeType || !e.parentNode),\n\t_getMaxScroll = (element, axis) => {\n\t\tlet dim = (axis === \"x\") ? \"Width\" : \"Height\",\n\t\t\tscroll = \"scroll\" + dim,\n\t\t\tclient = \"client\" + dim;\n\t\treturn Math.max(0, _isRoot(element) ? Math.max(_docElement[scroll], _body[scroll]) - (_win[\"inner\" + dim] || _docElement[client] || _body[client]) : element[scroll] - element[client]);\n\t},\n\t_recordMaxScrolls = e => { //records _gsMaxScrollX and _gsMaxScrollY properties for the element and all ancestors up the chain so that we can cap it, otherwise dragging beyond the edges with autoScroll on can endlessly scroll.\n\t\tlet x = _getMaxScroll(e, \"x\"),\n\t\t\ty = _getMaxScroll(e, \"y\");\n\t\tif (_isRoot(e)) {\n\t\t\te = _windowProxy;\n\t\t} else {\n\t\t\t_recordMaxScrolls(e.parentNode);\n\t\t}\n\t\te._gsMaxScrollX = x;\n\t\te._gsMaxScrollY = y;\n\t\te._gsScrollX = e.scrollLeft || 0;\n\t\te._gsScrollY = e.scrollTop || 0;\n\t},\n\t_setStyle = (element, property, value) => {\n\t\tlet style = element.style;\n\t\tif (!style) {\n\t\t\treturn;\n\t\t}\n\t\tif (_isUndefined(style[property])) {\n\t\t\tproperty = _checkPrefix(property, element) || property;\n\t\t}\n\t\tif (value == null) {\n\t\t\tstyle.removeProperty && style.removeProperty(property.replace(/([A-Z])/g, \"-$1\").toLowerCase());\n\t\t} else {\n\t\t\tstyle[property] = value;\n\t\t}\n\t},\n\t_getComputedStyle = element => _win.getComputedStyle((element instanceof Element) ? element : element.host || (element.parentNode || {}).host || element), //the \"host\" stuff helps to accommodate ShadowDom objects.\n\n\t_tempRect = {}, //reuse to reduce garbage collection tasks\n\t_parseRect = e => { //accepts a DOM element, a mouse event, or a rectangle object and returns the corresponding rectangle with left, right, width, height, top, and bottom properties\n\t\tif (e === _win) {\n\t\t\t_tempRect.left = _tempRect.top = 0;\n\t\t\t_tempRect.width = _tempRect.right = _docElement.clientWidth || e.innerWidth || _body.clientWidth || 0;\n\t\t\t_tempRect.height = _tempRect.bottom = ((e.innerHeight || 0) - 20 < _docElement.clientHeight) ? _docElement.clientHeight : e.innerHeight || _body.clientHeight || 0;\n\t\t\treturn _tempRect;\n\t\t}\n\t\tlet doc = e.ownerDocument || _doc,\n\t\t\tr = !_isUndefined(e.pageX) ? {left: e.pageX - _getDocScrollLeft(doc), top: e.pageY - _getDocScrollTop(doc), right: e.pageX - _getDocScrollLeft(doc) + 1, bottom: e.pageY - _getDocScrollTop(doc) + 1} : (!e.nodeType && !_isUndefined(e.left) && !_isUndefined(e.top)) ? e : _toArray(e)[0].getBoundingClientRect();\n\t\tif (_isUndefined(r.right) && !_isUndefined(r.width)) {\n\t\t\tr.right = r.left + r.width;\n\t\t\tr.bottom = r.top + r.height;\n\t\t} else if (_isUndefined(r.width)) { //some browsers don't include width and height properties. We can't just set them directly on r because some browsers throw errors, so create a new generic object.\n\t\t\tr = {width: r.right - r.left, height: r.bottom - r.top, right: r.right, left: r.left, bottom: r.bottom, top: r.top};\n\t\t}\n\t\treturn r;\n\t},\n\n\t_dispatchEvent = (target, type, callbackName) => {\n\t\tlet vars = target.vars,\n\t\t\tcallback = vars[callbackName],\n\t\t\tlisteners = target._listeners[type],\n\t\t\tresult;\n\t\tif (_isFunction(callback)) {\n\t\t\tresult = callback.apply(vars.callbackScope || target, vars[callbackName + \"Params\"] || [target.pointerEvent]);\n\t\t}\n\t\tif (listeners && target.dispatchEvent(type) === false) {\n\t\t\tresult = false;\n\t\t}\n\t\treturn result;\n\t},\n\t_getBounds = (target, context) => { //accepts any of the following: a DOM element, jQuery object, selector text, or an object defining bounds as {top, left, width, height} or {minX, maxX, minY, maxY}. Returns an object with left, top, width, and height properties.\n\t\tlet e = _toArray(target)[0],\n\t\t\ttop, left, offset;\n\t\tif (!e.nodeType && e !== _win) {\n\t\t\tif (!_isUndefined(target.left)) {\n\t\t\t\toffset = {x:0, y:0}; //_getOffsetTransformOrigin(context); //the bounds should be relative to the origin\n\t\t\t\treturn {left: target.left - offset.x, top: target.top - offset.y, width: target.width, height: target.height};\n\t\t\t}\n\t\t\tleft = target.min || target.minX || target.minRotation || 0;\n\t\t\ttop = target.min || target.minY || 0;\n\t\t\treturn {left:left, top:top, width:(target.max || target.maxX || target.maxRotation || 0) - left, height:(target.max || target.maxY || 0) - top};\n\t\t}\n\t\treturn _getElementBounds(e, context);\n\t},\n\t_point1 = {}, //we reuse to minimize garbage collection tasks.\n\t_getElementBounds = (element, context) => {\n\t\tcontext = _toArray(context)[0];\n\t\tlet isSVG = (element.getBBox && element.ownerSVGElement),\n\t\t\tdoc = element.ownerDocument || _doc,\n\t\t\tleft, right, top, bottom, matrix, p1, p2, p3, p4, bbox, width, height, cs, contextParent;\n\t\tif (element === _win) {\n\t\t\ttop = _getDocScrollTop(doc);\n\t\t\tleft = _getDocScrollLeft(doc);\n\t\t\tright = left + (doc.documentElement.clientWidth || element.innerWidth || doc.body.clientWidth || 0);\n\t\t\tbottom = top + (((element.innerHeight || 0) - 20 < doc.documentElement.clientHeight) ? doc.documentElement.clientHeight : element.innerHeight || doc.body.clientHeight || 0); //some browsers (like Firefox) ignore absolutely positioned elements, and collapse the height of the documentElement, so it could be 8px, for example, if you have just an absolutely positioned div. In that case, we use the innerHeight to resolve this.\n\t\t} else if (context === _win || _isUndefined(context)) {\n\t\t\treturn element.getBoundingClientRect();\n\t\t} else {\n\t\t\tleft = top = 0;\n\t\t\tif (isSVG) {\n\t\t\t\tbbox = element.getBBox();\n\t\t\t\twidth = bbox.width;\n\t\t\t\theight = bbox.height;\n\t\t\t} else {\n\t\t\t\tif (element.viewBox && (bbox = element.viewBox.baseVal)) {\n\t\t\t\t\tleft = bbox.x || 0;\n\t\t\t\t\ttop = bbox.y || 0;\n\t\t\t\t\twidth = bbox.width;\n\t\t\t\t\theight = bbox.height;\n\t\t\t\t}\n\t\t\t\tif (!width) {\n\t\t\t\t\tcs = _getComputedStyle(element);\n\t\t\t\t\twidth = (parseFloat(cs.width) || element.clientWidth || 0) + parseFloat(cs.borderLeftWidth) + parseFloat(cs.borderRightWidth);\n\t\t\t\t\theight = (parseFloat(cs.height) || element.clientHeight || 0) + parseFloat(cs.borderTopWidth) + parseFloat(cs.borderBottomWidth);\n\t\t\t\t}\n\t\t\t}\n\t\t\tright = width;\n\t\t\tbottom = height;\n\t\t}\n\t\tif (element === context) {\n\t\t\treturn {left:left, top:top, width: right - left, height: bottom - top};\n\t\t}\n\t\tmatrix = getGlobalMatrix(context, true).multiply(getGlobalMatrix(element));\n\t\tp1 = matrix.apply({x:left, y:top});\n\t\tp2 = matrix.apply({x:right, y:top});\n\t\tp3 = matrix.apply({x:right, y:bottom});\n\t\tp4 = matrix.apply({x:left, y:bottom});\n\t\tleft = Math.min(p1.x, p2.x, p3.x, p4.x);\n\t\ttop = Math.min(p1.y, p2.y, p3.y, p4.y);\n\t\tcontextParent = context.parentNode || {};\n\t\treturn {left: left + (contextParent.scrollLeft || 0), top: top + (contextParent.scrollTop || 0), width: Math.max(p1.x, p2.x, p3.x, p4.x) - left, height: Math.max(p1.y, p2.y, p3.y, p4.y) - top};\n\t},\n\t_parseInertia = (draggable, snap, max, min, factor, forceZeroVelocity) => {\n\t\tlet vars = {},\n\t\t\ta, i, l;\n\t\tif (snap) {\n\t\t\tif (factor !== 1 && snap instanceof Array) { //some data must be altered to make sense, like if the user passes in an array of rotational values in degrees, we must convert it to radians. Or for scrollLeft and scrollTop, we invert the values.\n\t\t\t\tvars.end = a = [];\n\t\t\t\tl = snap.length;\n\t\t\t\tif (_isObject(snap[0])) { //if the array is populated with objects, like points ({x:100, y:200}), make copies before multiplying by the factor, otherwise we'll mess up the originals and the user may reuse it elsewhere.\n\t\t\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t\t\ta[i] = _copy(snap[i], factor);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t\t\ta[i] = snap[i] * factor;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmax += 1.1; //allow 1.1 pixels of wiggle room when snapping in order to work around some browser inconsistencies in the way bounds are reported which can make them roughly a pixel off. For example, if \"snap:[-$('#menu').width(), 0]\" was defined and #menu had a wrapper that was used as the bounds, some browsers would be one pixel off, making the minimum -752 for example when snap was [-753,0], thus instead of snapping to -753, it would snap to 0 since -753 was below the minimum.\n\t\t\t\tmin -= 1.1;\n\t\t\t} else if (_isFunction(snap)) {\n\t\t\t\tvars.end = value => {\n\t\t\t\t\tlet result = snap.call(draggable, value),\n\t\t\t\t\t\tcopy, p;\n\t\t\t\t\tif (factor !== 1) {\n\t\t\t\t\t\tif (_isObject(result)) {\n\t\t\t\t\t\t\tcopy = {};\n\t\t\t\t\t\t\tfor (p in result) {\n\t\t\t\t\t\t\t\tcopy[p] = result[p] * factor;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tresult = copy;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresult *= factor;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn result; //we need to ensure that we can scope the function call to the Draggable instance itself so that users can access important values like maxX, minX, maxY, minY, x, and y from within that function.\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tvars.end = snap;\n\t\t\t}\n\t\t}\n\t\tif (max || max === 0) {\n\t\t\tvars.max = max;\n\t\t}\n\t\tif (min || min === 0) {\n\t\t\tvars.min = min;\n\t\t}\n\t\tif (forceZeroVelocity) {\n\t\t\tvars.velocity = 0;\n\t\t}\n\t\treturn vars;\n\t},\n\t_isClickable = element => { //sometimes it's convenient to mark an element as clickable by adding a data-clickable=\"true\" attribute (in which case we won't preventDefault() the mouse/touch event). This method checks if the element is an <a>, <input>, or <button> or has an onclick or has the data-clickable or contentEditable attribute set to true (or any of its parent elements).\n\t\tlet data;\n\t\treturn (!element || !element.getAttribute || element === _body) ? false : ((data = element.getAttribute(\"data-clickable\")) === \"true\" || (data !== \"false\" && (element.onclick || _clickableTagExp.test(element.nodeName + \"\") || element.getAttribute(\"contentEditable\") === \"true\"))) ? true : _isClickable(element.parentNode);\n\t},\n\t_setSelectable = (elements, selectable) => {\n\t\tlet i = elements.length,\n\t\t\te;\n\t\twhile (i--) {\n\t\t\te = elements[i];\n\t\t\te.ondragstart = e.onselectstart = selectable ? null : _emptyFunc;\n\t\t\t//setStyle(e, \"userSelect\", (selectable ? \"text\" : \"none\"));\n\t\t\tgsap.set(e, {lazy:true, userSelect: (selectable ? \"text\" : \"none\")});\n\t\t}\n\t},\n\t_isFixed = element => {\n\t\tif (_getComputedStyle(element).position === \"fixed\") {\n\t\t\treturn true;\n\t\t}\n\t\telement = element.parentNode;\n\t\tif (element && element.nodeType === 1) { // avoid document fragments which will throw an error.\n\t\t\treturn _isFixed(element);\n\t\t}\n\t},\n\t_supports3D, _addPaddingBR,\n\n\t//The ScrollProxy class wraps an element's contents into another div (we call it \"content\") that we either add padding when necessary or apply a translate3d() transform in order to overscroll (scroll past the boundaries). This allows us to simply set the scrollTop/scrollLeft (or top/left for easier reverse-axis orientation, which is what we do in Draggable) and it'll do all the work for us. For example, if we tried setting scrollTop to -100 on a normal DOM element, it wouldn't work - it'd look the same as setting it to 0, but if we set scrollTop of a ScrollProxy to -100, it'll give the correct appearance by either setting paddingTop of the wrapper to 100 or applying a 100-pixel translateY.\n\tScrollProxy = function(element, vars) {\n\t\telement = gsap.utils.toArray(element)[0];\n\t\tvars = vars || {};\n\t\tlet content = document.createElement(\"div\"),\n\t\t\tstyle = content.style,\n\t\t\tnode = element.firstChild,\n\t\t\toffsetTop = 0,\n\t\t\toffsetLeft = 0,\n\t\t\tprevTop = element.scrollTop,\n\t\t\tprevLeft = element.scrollLeft,\n\t\t\tscrollWidth = element.scrollWidth,\n\t\t\tscrollHeight = element.scrollHeight,\n\t\t\textraPadRight = 0,\n\t\t\tmaxLeft = 0,\n\t\t\tmaxTop = 0,\n\t\t\telementWidth, elementHeight, contentHeight, nextNode, transformStart, transformEnd;\n\t\tif (_supports3D && vars.force3D !== false) {\n\t\t\ttransformStart = \"translate3d(\";\n\t\t\ttransformEnd = \"px,0px)\";\n\t\t} else if (_transformProp) {\n\t\t\ttransformStart = \"translate(\";\n\t\t\ttransformEnd = \"px)\";\n\t\t}\n\t\tthis.scrollTop = function(value, force) {\n\t\t\tif (!arguments.length) {\n\t\t\t\treturn -this.top();\n\t\t\t}\n\t\t\tthis.top(-value, force);\n\t\t};\n\t\tthis.scrollLeft = function(value, force) {\n\t\t\tif (!arguments.length) {\n\t\t\t\treturn -this.left();\n\t\t\t}\n\t\t\tthis.left(-value, force);\n\t\t};\n\t\tthis.left = function(value, force) {\n\t\t\tif (!arguments.length) {\n\t\t\t\treturn -(element.scrollLeft + offsetLeft);\n\t\t\t}\n\t\t\tlet dif = element.scrollLeft - prevLeft,\n\t\t\t\toldOffset = offsetLeft;\n\t\t\tif ((dif > 2 || dif < -2) && !force) { //if the user interacts with the scrollbar (or something else scrolls it, like the mouse wheel), we should kill any tweens of the ScrollProxy.\n\t\t\t\tprevLeft = element.scrollLeft;\n\t\t\t\tgsap.killTweensOf(this, {left:1, scrollLeft:1});\n\t\t\t\tthis.left(-prevLeft);\n\t\t\t\tif (vars.onKill) {\n\t\t\t\t\tvars.onKill();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvalue = -value; //invert because scrolling works in the opposite direction\n\t\t\tif (value < 0) {\n\t\t\t\toffsetLeft = (value - 0.5) | 0;\n\t\t\t\tvalue = 0;\n\t\t\t} else if (value > maxLeft) {\n\t\t\t\toffsetLeft = (value - maxLeft) | 0;\n\t\t\t\tvalue = maxLeft;\n\t\t\t} else {\n\t\t\t\toffsetLeft = 0;\n\t\t\t}\n\t\t\tif (offsetLeft || oldOffset) {\n\t\t\t\tif (!this._skip) {\n\t\t\t\t\tstyle[_transformProp] = transformStart + -offsetLeft + \"px,\" + -offsetTop + transformEnd;\n\t\t\t\t}\n\t\t\t\tif (offsetLeft + extraPadRight >= 0) {\n\t\t\t\t\tstyle.paddingRight = offsetLeft + extraPadRight + \"px\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telement.scrollLeft = value | 0;\n\t\t\tprevLeft = element.scrollLeft; //don't merge this with the line above because some browsers adjust the scrollLeft after it's set, so in order to be 100% accurate in tracking it, we need to ask the browser to report it.\n\t\t};\n\t\tthis.top = function(value, force) {\n\t\t\tif (!arguments.length) {\n\t\t\t\treturn -(element.scrollTop + offsetTop);\n\t\t\t}\n\t\t\tlet dif = element.scrollTop - prevTop,\n\t\t\t\toldOffset = offsetTop;\n\t\t\tif ((dif > 2 || dif < -2) && !force) { //if the user interacts with the scrollbar (or something else scrolls it, like the mouse wheel), we should kill any tweens of the ScrollProxy.\n\t\t\t\tprevTop = element.scrollTop;\n\t\t\t\tgsap.killTweensOf(this, {top:1, scrollTop:1});\n\t\t\t\tthis.top(-prevTop);\n\t\t\t\tif (vars.onKill) {\n\t\t\t\t\tvars.onKill();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvalue = -value; //invert because scrolling works in the opposite direction\n\t\t\tif (value < 0) {\n\t\t\t\toffsetTop = (value - 0.5) | 0;\n\t\t\t\tvalue = 0;\n\t\t\t} else if (value > maxTop) {\n\t\t\t\toffsetTop = (value - maxTop) | 0;\n\t\t\t\tvalue = maxTop;\n\t\t\t} else {\n\t\t\t\toffsetTop = 0;\n\t\t\t}\n\t\t\tif (offsetTop || oldOffset) {\n\t\t\t\tif (!this._skip) {\n\t\t\t\t\tstyle[_transformProp] = transformStart + -offsetLeft + \"px,\" + -offsetTop + transformEnd;\n\t\t\t\t}\n\t\t\t}\n\t\t\telement.scrollTop = value | 0;\n\t\t\tprevTop = element.scrollTop;\n\t\t};\n\n\t\tthis.maxScrollTop = () => maxTop;\n\t\tthis.maxScrollLeft = () => maxLeft;\n\n\t\tthis.disable = function() {\n\t\t\tnode = content.firstChild;\n\t\t\twhile (node) {\n\t\t\t\tnextNode = node.nextSibling;\n\t\t\t\telement.appendChild(node);\n\t\t\t\tnode = nextNode;\n\t\t\t}\n\t\t\tif (element === content.parentNode) { //in case disable() is called when it's already disabled.\n\t\t\t\telement.removeChild(content);\n\t\t\t}\n\t\t};\n\t\tthis.enable = function() {\n\t\t\tnode = element.firstChild;\n\t\t\tif (node === content) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\twhile (node) {\n\t\t\t\tnextNode = node.nextSibling;\n\t\t\t\tcontent.appendChild(node);\n\t\t\t\tnode = nextNode;\n\t\t\t}\n\t\t\telement.appendChild(content);\n\t\t\tthis.calibrate();\n\t\t};\n\t\tthis.calibrate = function(force) {\n\t\t\tlet widthMatches = (element.clientWidth === elementWidth),\n\t\t\t\tcs, x, y;\n\t\t\tprevTop = element.scrollTop;\n\t\t\tprevLeft = element.scrollLeft;\n\t\t\tif (widthMatches && element.clientHeight === elementHeight && content.offsetHeight === contentHeight && scrollWidth === element.scrollWidth && scrollHeight === element.scrollHeight && !force) {\n\t\t\t\treturn; //no need to recalculate things if the width and height haven't changed.\n\t\t\t}\n\t\t\tif (offsetTop || offsetLeft) {\n\t\t\t\tx = this.left();\n\t\t\t\ty = this.top();\n\t\t\t\tthis.left(-element.scrollLeft);\n\t\t\t\tthis.top(-element.scrollTop);\n\t\t\t}\n\t\t\tcs = _getComputedStyle(element);\n\t\t\t//first, we need to remove any width constraints to see how the content naturally flows so that we can see if it's wider than the containing element. If so, we've got to record the amount of overage so that we can apply that as padding in order for browsers to correctly handle things. Then we switch back to a width of 100% (without that, some browsers don't flow the content correctly)\n\t\t\tif (!widthMatches || force) {\n\t\t\t\tstyle.display = \"block\";\n\t\t\t\tstyle.width = \"auto\";\n\t\t\t\tstyle.paddingRight = \"0px\";\n\t\t\t\textraPadRight = Math.max(0, element.scrollWidth - element.clientWidth);\n\t\t\t\t//if the content is wider than the container, we need to add the paddingLeft and paddingRight in order for things to behave correctly.\n\t\t\t\tif (extraPadRight) {\n\t\t\t\t\textraPadRight += parseFloat(cs.paddingLeft) + (_addPaddingBR ? parseFloat(cs.paddingRight) : 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tstyle.display = \"inline-block\";\n\t\t\tstyle.position = \"relative\";\n\t\t\tstyle.overflow = \"visible\";\n\t\t\tstyle.verticalAlign = \"top\";\n\t\t\tstyle.boxSizing = \"content-box\";\n\t\t\tstyle.width = \"100%\";\n\t\t\tstyle.paddingRight = extraPadRight + \"px\";\n\t\t\t//some browsers neglect to factor in the bottom padding when calculating the scrollHeight, so we need to add that padding to the content when that happens. Allow a 2px margin for error\n\t\t\tif (_addPaddingBR) {\n\t\t\t\tstyle.paddingBottom = cs.paddingBottom;\n\t\t\t}\n\t\t\telementWidth = element.clientWidth;\n\t\t\telementHeight = element.clientHeight;\n\t\t\tscrollWidth = element.scrollWidth;\n\t\t\tscrollHeight = element.scrollHeight;\n\t\t\tmaxLeft = element.scrollWidth - elementWidth;\n\t\t\tmaxTop = element.scrollHeight - elementHeight;\n\t\t\tcontentHeight = content.offsetHeight;\n\t\t\tstyle.display = \"block\";\n\t\t\tif (x || y) {\n\t\t\t\tthis.left(x);\n\t\t\t\tthis.top(y);\n\t\t\t}\n\t\t};\n\t\tthis.content = content;\n\t\tthis.element = element;\n\t\tthis._skip = false;\n\t\tthis.enable();\n\t},\n\t_initCore = required => {\n\t\tif (_windowExists() && document.body) {\n\t\t\t_win = window;\n\t\t\t_doc = document;\n\t\t\t_docElement = _doc.documentElement;\n\t\t\t_body = _doc.body;\n\t\t\t_tempDiv = _createElement(\"div\");\n\t\t\t_supportsPointer = !!window.PointerEvent;\n\t\t\t_placeholderDiv = _createElement(\"div\");\n\t\t\t_placeholderDiv.style.cssText = \"visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab\";\n\t\t\t_defaultCursor = _placeholderDiv.style.cursor === \"grab\" ? \"grab\" : \"move\";\n\t\t\t_isAndroid = (_win.navigator && _win.navigator.userAgent.toLowerCase().indexOf(\"android\") !== -1); //Android handles touch events in an odd way and it's virtually impossible to \"feature test\" so we resort to UA sniffing\n\t\t\t_isTouchDevice = (\"ontouchstart\" in _docElement) && (\"orientation\" in _win);\n\t\t\t_addPaddingBR = (function() { //this function is in charge of analyzing browser behavior related to padding. It sets the _addPaddingBR to true if the browser doesn't normally factor in the bottom or right padding on the element inside the scrolling area, and it sets _addPaddingLeft to true if it's a browser that requires the extra offset (offsetLeft) to be added to the paddingRight (like Opera).\n\t\t\t\tlet div = _createElement(\"div\"),\n\t\t\t\t\tchild = _createElement(\"div\"),\n\t\t\t\t\tchildStyle = child.style,\n\t\t\t\t\tparent = _body,\n\t\t\t\t\tval;\n\t\t\t\tchildStyle.display = \"inline-block\";\n\t\t\t\tchildStyle.position = \"relative\";\n\t\t\t\tdiv.style.cssText = child.innerHTML = \"width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden\";\n\t\t\t\tdiv.appendChild(child);\n\t\t\t\tparent.appendChild(div);\n\t\t\t\tval = (child.offsetHeight + 18 > div.scrollHeight); //div.scrollHeight should be child.offsetHeight + 20 because of the 10px of padding on each side, but some browsers ignore one side. We allow a 2px margin of error.\n\t\t\t\tparent.removeChild(div);\n\t\t\t\treturn val;\n\t\t\t}());\n\t\t\t_touchEventLookup = (function(types) { //we create an object that makes it easy to translate touch event types into their \"pointer\" counterparts if we're in a browser that uses those instead. Like IE10 uses \"MSPointerDown\" instead of \"touchstart\", for example.\n\t\t\t\tlet standard = types.split(\",\"),\n\t\t\t\t\tconverted = (!_isUndefined(_tempDiv.onpointerdown) ? \"pointerdown,pointermove,pointerup,pointercancel\" : !_isUndefined(_tempDiv.onmspointerdown) ? \"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel\" : types).split(\",\"),\n\t\t\t\t\tobj = {},\n\t\t\t\t\ti = 4;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\tobj[standard[i]] = converted[i];\n\t\t\t\t\tobj[converted[i]] = standard[i];\n\t\t\t\t}\n\t\t\t\t//to avoid problems in iOS 9, test to see if the browser supports the \"passive\" option on addEventListener().\n\t\t\t\ttry {\n\t\t\t\t\t_docElement.addEventListener(\"test\", null, Object.defineProperty({}, \"passive\", {\n\t\t\t\t\t\tget: function () {\n\t\t\t\t\t\t\t_supportsPassive = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}));\n\t\t\t\t} catch (e) {}\n\t\t\t\treturn obj;\n\t\t\t}(\"touchstart,touchmove,touchend,touchcancel\"));\n\t\t\t_addListener(_doc, \"touchcancel\", _emptyFunc); //some older Android devices intermittently stop dispatching \"touchmove\" events if we don't listen for \"touchcancel\" on the document. Very strange indeed.\n\t\t\t_addListener(_win, \"touchmove\", _emptyFunc); //works around Safari bugs that still allow the page to scroll even when we preventDefault() on the touchmove event.\n\t\t\t_body && _body.addEventListener(\"touchstart\", _emptyFunc); //works around Safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/\n\t\t\t_addListener(_doc, \"contextmenu\", function() {\n\t\t\t\tfor (let p in _lookup) {\n\t\t\t\t\tif (_lookup[p].isPressed) {\n\t\t\t\t\t\t_lookup[p].endDrag();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tgsap = _coreInitted = _getGSAP();\n\t\t}\n\t\tif (gsap) {\n\t\t\tInertiaPlugin = gsap.plugins.inertia;\n\t\t\t_checkPrefix = gsap.utils.checkPrefix;\n\t\t\t_transformProp = _checkPrefix(_transformProp);\n\t\t\t_transformOriginProp = _checkPrefix(_transformOriginProp);\n\t\t\t_toArray = gsap.utils.toArray;\n\t\t\t_supports3D = !!_checkPrefix(\"perspective\");\n\t\t} else if (required) {\n\t\t\tconsole.warn(\"Please gsap.registerPlugin(Draggable)\");\n\t\t}\n\t};\n\n\n\n\n\n\nclass EventDispatcher {\n\n\tconstructor(target) {\n\t\tthis._listeners = {};\n\t\tthis.target = target || this;\n\t}\n\n\taddEventListener(type, callback) {\n\t\tlet list = this._listeners[type] || (this._listeners[type] = []);\n\t\tif (!~list.indexOf(callback)) {\n\t\t\tlist.push(callback);\n\t\t}\n\t}\n\n\tremoveEventListener(type, callback) {\n\t\tlet list = this._listeners[type],\n\t\t\ti = (list && list.indexOf(callback)) || -1;\n\t\t(i > -1) && list.splice(i, 1);\n\t}\n\n\tdispatchEvent(type) {\n\t\tlet result;\n\t\t(this._listeners[type] || []).forEach(callback => (callback.call(this, {type: type, target: this.target}) === false) && (result = false));\n\t\treturn result; //if any of the callbacks return false, pass that along.\n\t}\n}\n\n\n\n\n\n\n\n\n\nexport class Draggable extends EventDispatcher {\n\n\tconstructor(target, vars) {\n\t\tsuper();\n\t\tif (!gsap) {\n\t\t\t_initCore(1);\n\t\t}\n\t\ttarget = _toArray(target)[0]; //in case the target is a selector object or selector text\n\t\tif (!InertiaPlugin) {\n\t\t\tInertiaPlugin = gsap.plugins.inertia;\n\t\t}\n\t\tthis.vars = vars = _copy(vars || {});\n\t\tthis.target = target;\n\t\tthis.x = this.y = this.rotation = 0;\n\t\tthis.dragResistance = parseFloat(vars.dragResistance) || 0;\n\t\tthis.edgeResistance = isNaN(vars.edgeResistance) ? 1 : parseFloat(vars.edgeResistance) || 0;\n\t\tthis.lockAxis = vars.lockAxis;\n\t\tthis.autoScroll = vars.autoScroll || 0;\n\t\tthis.lockedAxis = null;\n\t\tthis.allowEventDefault = !!vars.allowEventDefault;\n\n\t\tgsap.getProperty(target, \"x\"); // to ensure that transforms are instantiated.\n\n\t\tlet type = (vars.type || \"x,y\").toLowerCase(),\n\t\t\txyMode = (~type.indexOf(\"x\") || ~type.indexOf(\"y\")),\n\t\t\trotationMode = (type.indexOf(\"rotation\") !== -1),\n\t\t\txProp = rotationMode ? \"rotation\" : xyMode ? \"x\" : \"left\",\n\t\t\tyProp = xyMode ? \"y\" : \"top\",\n\t\t\tallowX = !!(~type.indexOf(\"x\") || ~type.indexOf(\"left\") || type === \"scroll\"),\n\t\t\tallowY = !!(~type.indexOf(\"y\") || ~type.indexOf(\"top\") || type === \"scroll\"),\n\t\t\tminimumMovement = vars.minimumMovement || 2,\n\t\t\tself = this,\n\t\t\ttriggers = _toArray(vars.trigger || vars.handle || target),\n\t\t\tkillProps = {},\n\t\t\tdragEndTime = 0,\n\t\t\tcheckAutoScrollBounds = false,\n\t\t\tautoScrollMarginTop = vars.autoScrollMarginTop || 40,\n\t\t\tautoScrollMarginRight = vars.autoScrollMarginRight || 40,\n\t\t\tautoScrollMarginBottom = vars.autoScrollMarginBottom || 40,\n\t\t\tautoScrollMarginLeft = vars.autoScrollMarginLeft || 40,\n\t\t\tisClickable = vars.clickableTest || _isClickable,\n\t\t\tclickTime = 0,\n\t\t\tgsCache = target._gsap || gsap.core.getCache(target),\n\t\t\tisFixed = _isFixed(target),\n\t\t\tgetPropAsNum = (property, unit) => parseFloat(gsCache.get(target, property, unit)),\n\t\t\townerDoc = target.ownerDocument || _doc,\n\t\t\tenabled, scrollProxy, startPointerX, startPointerY, startElementX, startElementY, hasBounds, hasDragCallback, hasMoveCallback, maxX, minX, maxY, minY, touch, touchID, rotationOrigin, dirty, old, snapX, snapY, snapXY, isClicking, touchEventTarget, matrix, interrupted, startScrollTop, startScrollLeft, allowNativeTouchScrolling, touchDragAxis, isDispatching, clickDispatch, trustedClickDispatch,\n\n\t\t\tonContextMenu = e => { //used to prevent long-touch from triggering a context menu.\n\t\t\t\tif (self.isPressed && e.which < 2) {\n\t\t\t\t\tself.endDrag();\n\t\t\t\t} else {\n\t\t\t\t\t_preventDefault(e);\n\t\t\t\t\te.stopPropagation();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t//this method gets called on every tick of TweenLite.ticker which allows us to synchronize the renders to the core engine (which is typically synchronized with the display refresh via requestAnimationFrame). This is an optimization - it's better than applying the values inside the \"mousemove\" or \"touchmove\" event handler which may get called many times inbetween refreshes.\n\t\t\trender = suppressEvents => {\n\t\t\t\tif (self.autoScroll && self.isDragging && (checkAutoScrollBounds || dirty)) {\n\t\t\t\t\tlet e = target,\n\t\t\t\t\t\tautoScrollFactor = self.autoScroll * 15, //multiplying by 15 just gives us a better \"feel\" speed-wise.\n\t\t\t\t\t\tparent, isRoot, rect, pointerX, pointerY, changeX, changeY, gap;\n\t\t\t\t\tcheckAutoScrollBounds = false;\n\t\t\t\t\t_windowProxy.scrollTop = ((_win.pageYOffset != null) ? _win.pageYOffset : (ownerDoc.documentElement.scrollTop != null) ? ownerDoc.documentElement.scrollTop : ownerDoc.body.scrollTop);\n\t\t\t\t\t_windowProxy.scrollLeft = ((_win.pageXOffset != null) ? _win.pageXOffset : (ownerDoc.documentElement.scrollLeft != null) ? ownerDoc.documentElement.scrollLeft : ownerDoc.body.scrollLeft);\n\t\t\t\t\tpointerX = self.pointerX - _windowProxy.scrollLeft;\n\t\t\t\t\tpointerY = self.pointerY - _windowProxy.scrollTop;\n\t\t\t\t\twhile (e && !isRoot) { //walk up the chain and sense wherever the pointer is within 40px of an edge that's scrollable.\n\t\t\t\t\t\tisRoot = _isRoot(e.parentNode);\n\t\t\t\t\t\tparent = isRoot ? _windowProxy : e.parentNode;\n\t\t\t\t\t\trect = isRoot ? {bottom:Math.max(_docElement.clientHeight, _win.innerHeight || 0), right: Math.max(_docElement.clientWidth, _win.innerWidth || 0), left:0, top:0} : parent.getBoundingClientRect();\n\t\t\t\t\t\tchangeX = changeY = 0;\n\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\tgap = parent._gsMaxScrollY - parent.scrollTop;\n\t\t\t\t\t\t\tif (gap < 0) {\n\t\t\t\t\t\t\t\tchangeY = gap;\n\t\t\t\t\t\t\t} else if (pointerY > rect.bottom - autoScrollMarginBottom && gap) {\n\t\t\t\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t\t\t\t\tchangeY = Math.min(gap, (autoScrollFactor * (1 - Math.max(0, (rect.bottom - pointerY)) / autoScrollMarginBottom)) | 0);\n\t\t\t\t\t\t\t} else if (pointerY < rect.top + autoScrollMarginTop && parent.scrollTop) {\n\t\t\t\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t\t\t\t\tchangeY = -Math.min(parent.scrollTop, (autoScrollFactor * (1 - Math.max(0, (pointerY - rect.top)) / autoScrollMarginTop)) | 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (changeY) {\n\t\t\t\t\t\t\t\tparent.scrollTop += changeY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\tgap = parent._gsMaxScrollX - parent.scrollLeft;\n\t\t\t\t\t\t\tif (gap < 0) {\n\t\t\t\t\t\t\t\tchangeX = gap;\n\t\t\t\t\t\t\t} else if (pointerX > rect.right - autoScrollMarginRight && gap) {\n\t\t\t\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t\t\t\t\tchangeX = Math.min(gap, (autoScrollFactor * (1 - Math.max(0, (rect.right - pointerX)) / autoScrollMarginRight)) | 0);\n\t\t\t\t\t\t\t} else if (pointerX < rect.left + autoScrollMarginLeft && parent.scrollLeft) {\n\t\t\t\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t\t\t\t\tchangeX = -Math.min(parent.scrollLeft, (autoScrollFactor * (1 - Math.max(0, (pointerX - rect.left)) / autoScrollMarginLeft)) | 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (changeX) {\n\t\t\t\t\t\t\t\tparent.scrollLeft += changeX;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (isRoot && (changeX || changeY)) {\n\t\t\t\t\t\t\t_win.scrollTo(parent.scrollLeft, parent.scrollTop);\n\t\t\t\t\t\t\tsetPointerPosition(self.pointerX + changeX, self.pointerY + changeY);\n\t\t\t\t\t\t}\n\t\t\t\t\t\te = parent;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (dirty) {\n\t\t\t\t\tlet {x, y} = self;\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.deltaX = x - parseFloat(gsCache.rotation);\n\t\t\t\t\t\tself.rotation = x;\n\t\t\t\t\t\tgsCache.rotation = x + \"deg\";\n\t\t\t\t\t\tgsCache.renderTransform(1, gsCache);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (scrollProxy) {\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tself.deltaY = y - scrollProxy.top();\n\t\t\t\t\t\t\t\tscrollProxy.top(y);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tself.deltaX = x - scrollProxy.left();\n\t\t\t\t\t\t\t\tscrollProxy.left(x);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (xyMode) {\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tself.deltaY = y - parseFloat(gsCache.y);\n\t\t\t\t\t\t\t\tgsCache.y = y + \"px\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tself.deltaX = x - parseFloat(gsCache.x);\n\t\t\t\t\t\t\t\tgsCache.x = x + \"px\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tgsCache.renderTransform(1, gsCache);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tself.deltaY = y - parseFloat(target.style.top || 0);\n\t\t\t\t\t\t\t\ttarget.style.top = y + \"px\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tself.deltaY = x - parseFloat(target.style.left || 0);\n\t\t\t\t\t\t\t\ttarget.style.left = x + \"px\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (hasDragCallback && !suppressEvents && !isDispatching) {\n\t\t\t\t\t\tisDispatching = true; //in case onDrag has an update() call (avoid endless loop)\n\t\t\t\t\t\tif (_dispatchEvent(self, \"drag\", \"onDrag\") === false) {\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tself.x -= self.deltaX;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tself.y -= self.deltaY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trender(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisDispatching = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdirty = false;\n\t\t\t},\n\n\t\t\t//copies the x/y from the element (whether that be transforms, top/left, or ScrollProxy's top/left) to the Draggable's x and y (and rotation if necessary) properties so that they reflect reality and it also (optionally) applies any snapping necessary. This is used by the InertiaPlugin tween in an onUpdate to ensure things are synced and snapped.\n\t\t\tsyncXY = (skipOnUpdate, skipSnap) => {\n\t\t\t\tlet { x, y } = self,\n\t\t\t\t\tsnappedValue, cs;\n\t\t\t\tif (!target._gsap) { //just in case the _gsap cache got wiped, like if the user called clearProps on the transform or something (very rare).\n\t\t\t\t\tgsCache = gsap.core.getCache(target);\n\t\t\t\t}\n\t\t\t\tif (xyMode) {\n\t\t\t\t\tself.x = parseFloat(gsCache.x);\n\t\t\t\t\tself.y = parseFloat(gsCache.y);\n\t\t\t\t} else if (rotationMode) {\n\t\t\t\t\tself.x = self.rotation = parseFloat(gsCache.rotation);\n\t\t\t\t} else if (scrollProxy) {\n\t\t\t\t\tself.y = scrollProxy.top();\n\t\t\t\t\tself.x = scrollProxy.left();\n\t\t\t\t} else {\n\t\t\t\t\tself.y = parseInt(target.style.top || ((cs = _getComputedStyle(target)) && cs.top), 10) || 0;\n\t\t\t\t\tself.x = parseInt(target.style.left || (cs || {}).left, 10) || 0;\n\t\t\t\t}\n\t\t\t\tif ((snapX || snapY || snapXY) && !skipSnap && (self.isDragging || self.isThrowing)) {\n\t\t\t\t\tif (snapXY) {\n\t\t\t\t\t\t_temp1.x = self.x;\n\t\t\t\t\t\t_temp1.y = self.y;\n\t\t\t\t\t\tsnappedValue = snapXY(_temp1);\n\t\t\t\t\t\tif (snappedValue.x !== self.x) {\n\t\t\t\t\t\t\tself.x = snappedValue.x;\n\t\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (snappedValue.y !== self.y) {\n\t\t\t\t\t\t\tself.y = snappedValue.y;\n\t\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (snapX) {\n\t\t\t\t\t\tsnappedValue = snapX(self.x);\n\t\t\t\t\t\tif (snappedValue !== self.x) {\n\t\t\t\t\t\t\tself.x = snappedValue;\n\t\t\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\t\t\tself.rotation = snappedValue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (snapY) {\n\t\t\t\t\t\tsnappedValue = snapY(self.y);\n\t\t\t\t\t\tif (snappedValue !== self.y) {\n\t\t\t\t\t\t\tself.y = snappedValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (dirty) {\n\t\t\t\t\trender(true);\n\t\t\t\t}\n\t\t\t\tif (!skipOnUpdate) {\n\t\t\t\t\tself.deltaX = self.x - x;\n\t\t\t\t\tself.deltaY = self.y - y;\n\t\t\t\t\t_dispatchEvent(self, \"throwupdate\", \"onThrowUpdate\");\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tbuildSnapFunc = (snap, min, max, factor) => {\n\t\t\t\tif (min == null) {\n\t\t\t\t\tmin = -_bigNum;\n\t\t\t\t}\n\t\t\t\tif (max == null) {\n\t\t\t\t\tmax = _bigNum;\n\t\t\t\t}\n\t\t\t\tif (_isFunction(snap)) {\n\t\t\t\t\treturn n => {\n\t\t\t\t\t\tlet edgeTolerance = !self.isPressed ? 1 : 1 - self.edgeResistance; //if we're tweening, disable the edgeTolerance because it's already factored into the tweening values (we don't want to apply it multiple times)\n\t\t\t\t\t\treturn snap.call(self, (n > max ? max + (n - max) * edgeTolerance : (n < min) ? min + (n - min) * edgeTolerance : n)) * factor;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tif (_isArray(snap)) {\n\t\t\t\t\treturn n => {\n\t\t\t\t\t\tlet i = snap.length,\n\t\t\t\t\t\t\tclosest = 0,\n\t\t\t\t\t\t\tabsDif = _bigNum,\n\t\t\t\t\t\t\tval, dif;\n\t\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t\tval = snap[i];\n\t\t\t\t\t\t\tdif = val - n;\n\t\t\t\t\t\t\tif (dif < 0) {\n\t\t\t\t\t\t\t\tdif = -dif;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (dif < absDif && val >= min && val <= max) {\n\t\t\t\t\t\t\t\tclosest = i;\n\t\t\t\t\t\t\t\tabsDif = dif;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn snap[closest];\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn isNaN(snap) ? n => n : () => snap * factor;\n\t\t\t},\n\n\t\t\tbuildPointSnapFunc = (snap, minX, maxX, minY, maxY, radius, factor) => {\n\t\t\t\tradius = (radius && radius < _bigNum) ? radius * radius : _bigNum; //so we don't have to Math.sqrt() in the functions. Performance optimization.\n\t\t\t\tif (_isFunction(snap)) {\n\t\t\t\t\treturn point => {\n\t\t\t\t\t\tlet edgeTolerance = !self.isPressed ? 1 : 1 - self.edgeResistance,\n\t\t\t\t\t\t\tx = point.x,\n\t\t\t\t\t\t\ty = point.y,\n\t\t\t\t\t\t\tresult, dx, dy; //if we're tweening, disable the edgeTolerance because it's already factored into the tweening values (we don't want to apply it multiple times)\n\t\t\t\t\t\tpoint.x = x = (x > maxX ? maxX + (x - maxX) * edgeTolerance : (x < minX) ? minX + (x - minX) * edgeTolerance : x);\n\t\t\t\t\t\tpoint.y = y = (y > maxY ? maxY + (y - maxY) * edgeTolerance : (y < minY) ? minY + (y - minY) * edgeTolerance : y);\n\t\t\t\t\t\tresult = snap.call(self, point);\n\t\t\t\t\t\tif (result !== point) {\n\t\t\t\t\t\t\tpoint.x = result.x;\n\t\t\t\t\t\t\tpoint.y = result.y;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (factor !== 1) {\n\t\t\t\t\t\t\tpoint.x *= factor;\n\t\t\t\t\t\t\tpoint.y *= factor;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (radius < _bigNum) {\n\t\t\t\t\t\t\tdx = point.x - x;\n\t\t\t\t\t\t\tdy = point.y - y;\n\t\t\t\t\t\t\tif (dx * dx + dy * dy > radius) {\n\t\t\t\t\t\t\t\tpoint.x = x;\n\t\t\t\t\t\t\t\tpoint.y = y;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn point;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tif (_isArray(snap)) {\n\t\t\t\t\treturn p => {\n\t\t\t\t\t\tlet i = snap.length,\n\t\t\t\t\t\t\tclosest = 0,\n\t\t\t\t\t\t\tminDist = _bigNum,\n\t\t\t\t\t\t\tx, y, point, dist;\n\t\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t\tpoint = snap[i];\n\t\t\t\t\t\t\tx = point.x - p.x;\n\t\t\t\t\t\t\ty = point.y - p.y;\n\t\t\t\t\t\t\tdist = x * x + y * y;\n\t\t\t\t\t\t\tif (dist < minDist) {\n\t\t\t\t\t\t\t\tclosest = i;\n\t\t\t\t\t\t\t\tminDist = dist;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn (minDist <= radius) ? snap[closest] : p;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn n => n;\n\t\t\t},\n\n\t\t\tcalculateBounds = () => {\n\t\t\t\tlet bounds, targetBounds, snap, snapIsRaw;\n\t\t\t\thasBounds = false;\n\t\t\t\tif (scrollProxy) {\n\t\t\t\t\tscrollProxy.calibrate();\n\t\t\t\t\tself.minX = minX = -scrollProxy.maxScrollLeft();\n\t\t\t\t\tself.minY = minY = -scrollProxy.maxScrollTop();\n\t\t\t\t\tself.maxX = maxX = self.maxY = maxY = 0;\n\t\t\t\t\thasBounds = true;\n\t\t\t\t} else if (!!vars.bounds) {\n\t\t\t\t\tbounds = _getBounds(vars.bounds, target.parentNode); //could be a selector/jQuery object or a DOM element or a generic object like {top:0, left:100, width:1000, height:800} or {minX:100, maxX:1100, minY:0, maxY:800}\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.minX = minX = bounds.left;\n\t\t\t\t\t\tself.maxX = maxX = bounds.left + bounds.width;\n\t\t\t\t\t\tself.minY = minY = self.maxY = maxY = 0;\n\t\t\t\t\t} else if (!_isUndefined(vars.bounds.maxX) || !_isUndefined(vars.bounds.maxY)) {\n\t\t\t\t\t\tbounds = vars.bounds;\n\t\t\t\t\t\tself.minX = minX = bounds.minX;\n\t\t\t\t\t\tself.minY = minY = bounds.minY;\n\t\t\t\t\t\tself.maxX = maxX = bounds.maxX;\n\t\t\t\t\t\tself.maxY = maxY = bounds.maxY;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttargetBounds = _getBounds(target, target.parentNode);\n\t\t\t\t\t\tself.minX = minX = Math.round(getPropAsNum(xProp, \"px\") + bounds.left - targetBounds.left);\n\t\t\t\t\t\tself.minY = minY = Math.round(getPropAsNum(yProp, \"px\") + bounds.top - targetBounds.top);\n\t\t\t\t\t\tself.maxX = maxX = Math.round(minX + (bounds.width - targetBounds.width));\n\t\t\t\t\t\tself.maxY = maxY = Math.round(minY + (bounds.height - targetBounds.height));\n\t\t\t\t\t}\n\t\t\t\t\tif (minX > maxX) {\n\t\t\t\t\t\tself.minX = maxX;\n\t\t\t\t\t\tself.maxX = maxX = minX;\n\t\t\t\t\t\tminX = self.minX;\n\t\t\t\t\t}\n\t\t\t\t\tif (minY > maxY) {\n\t\t\t\t\t\tself.minY = maxY;\n\t\t\t\t\t\tself.maxY = maxY = minY;\n\t\t\t\t\t\tminY = self.minY;\n\t\t\t\t\t}\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.minRotation = minX;\n\t\t\t\t\t\tself.maxRotation = maxX;\n\t\t\t\t\t}\n\t\t\t\t\thasBounds = true;\n\t\t\t\t}\n\t\t\t\tif (vars.liveSnap) {\n\t\t\t\t\tsnap = (vars.liveSnap === true) ? (vars.snap || {}) : vars.liveSnap;\n\t\t\t\t\tsnapIsRaw = (_isArray(snap) || _isFunction(snap));\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tsnapX = buildSnapFunc((snapIsRaw ? snap : snap.rotation), minX, maxX, 1);\n\t\t\t\t\t\tsnapY = null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (snap.points) {\n\t\t\t\t\t\t\tsnapXY = buildPointSnapFunc((snapIsRaw ? snap : snap.points), minX, maxX, minY, maxY, snap.radius, scrollProxy ? -1 : 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tsnapX = buildSnapFunc((snapIsRaw ? snap : snap.x || snap.left || snap.scrollLeft), minX, maxX, scrollProxy ? -1 : 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tsnapY = buildSnapFunc((snapIsRaw ? snap : snap.y || snap.top || snap.scrollTop), minY, maxY, scrollProxy ? -1 : 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tonThrowComplete = () => {\n\t\t\t\tself.isThrowing = false;\n\t\t\t\t_dispatchEvent(self, \"throwcomplete\", \"onThrowComplete\");\n\t\t\t},\n\t\t\tonThrowInterrupt = () => {\n\t\t\t\tself.isThrowing = false;\n\t\t\t},\n\n\t\t\tanimate = (inertia, forceZeroVelocity) => {\n\t\t\t\tlet snap, snapIsRaw, tween, overshootTolerance;\n\t\t\t\tif (inertia && InertiaPlugin) {\n\t\t\t\t\tif (inertia === true) {\n\t\t\t\t\t\tsnap = vars.snap || vars.liveSnap || {};\n\t\t\t\t\t\tsnapIsRaw = (_isArray(snap) || _isFunction(snap));\n\t\t\t\t\t\tinertia = {resistance:(vars.throwResistance || vars.resistance || 1000) / (rotationMode ? 10 : 1)};\n\t\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\t\tinertia.rotation = _parseInertia(self, snapIsRaw ? snap : snap.rotation, maxX, minX, 1, forceZeroVelocity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\t\tinertia[xProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.x || snap.left, maxX, minX, scrollProxy ? -1 : 1, forceZeroVelocity || (self.lockedAxis === \"x\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\t\tinertia[yProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.y || snap.top, maxY, minY, scrollProxy ? -1 : 1, forceZeroVelocity || (self.lockedAxis === \"y\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (snap.points || (_isArray(snap) && _isObject(snap[0]))) {\n\t\t\t\t\t\t\t\tinertia.linkedProps = xProp + \",\" + yProp;\n\t\t\t\t\t\t\t\tinertia.radius = snap.radius; //note: we also disable liveSnapping while throwing if there's a \"radius\" defined, otherwise it looks weird to have the item thrown past a snapping point but live-snapping mid-tween. We do this by altering the onUpdateParams so that \"skipSnap\" parameter is true for syncXY.\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tself.isThrowing = true;\n\t\t\t\t\tovershootTolerance = (!isNaN(vars.overshootTolerance)) ? vars.overshootTolerance : (vars.edgeResistance === 1) ? 0 : (1 - self.edgeResistance) + 0.2;\n\t\t\t\t\tif (!inertia.duration) {\n\t\t\t\t\t\tinertia.duration = {max:Math.max(vars.minDuration || 0, (\"maxDuration\" in vars) ? vars.maxDuration : 2), min:(!isNaN(vars.minDuration) ? vars.minDuration : (overshootTolerance === 0 || (_isObject(inertia) && inertia.resistance > 1000)) ? 0 : 0.5), overshoot:overshootTolerance};\n\t\t\t\t\t}\n\t\t\t\t\tself.tween = tween = gsap.to(scrollProxy || target, {\n\t\t\t\t\t\tinertia: inertia,\n\t\t\t\t\t\tdata: \"_draggable\",\n\t\t\t\t\t\tonComplete: onThrowComplete,\n\t\t\t\t\t\tonInterrupt: onThrowInterrupt,\n\t\t\t\t\t\tonUpdate: (vars.fastMode ? _dispatchEvent : syncXY),\n\t\t\t\t\t\tonUpdateParams: (vars.fastMode ? [self, \"onthrowupdate\", \"onThrowUpdate\"] : (snap && snap.radius) ? [false, true] : [])\n\t\t\t\t\t});\n\t\t\t\t\tif (!vars.fastMode) {\n\t\t\t\t\t\tif (scrollProxy) {\n\t\t\t\t\t\t\tscrollProxy._skip = true; //Microsoft browsers have a bug that causes them to briefly render the position incorrectly (it flashes to the end state when we seek() the tween even though we jump right back to the current position, and this only seems to happen when we're affecting both top and left), so we set a _suspendTransforms flag to prevent it from actually applying the values in the ScrollProxy.\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttween.render(tween.duration(), true, true);\n\t\t\t\t\t\tsyncXY(true, true);\n\t\t\t\t\t\tself.endX = self.x;\n\t\t\t\t\t\tself.endY = self.y;\n\t\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\t\tself.endRotation = self.x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttween.play(0);\n\t\t\t\t\t\tsyncXY(true, true);\n\t\t\t\t\t\tif (scrollProxy) {\n\t\t\t\t\t\t\tscrollProxy._skip = false; //Microsoft browsers have a bug that causes them to briefly render the position incorrectly (it flashes to the end state when we seek() the tween even though we jump right back to the current position, and this only seems to happen when we're affecting both top and left), so we set a _suspendTransforms flag to prevent it from actually applying the values in the ScrollProxy.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (hasBounds) {\n\t\t\t\t\tself.applyBounds();\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tupdateMatrix = shiftStart => {\n\t\t\t\tlet start = matrix,\n\t\t\t\t\tp;\n\t\t\t\tmatrix = getGlobalMatrix(target.parentNode, true);\n\t\t\t\tif (shiftStart && self.isPressed && !matrix.equals(start || new Matrix2D())) { //if the matrix changes WHILE the element is pressed, we must adjust the startPointerX and startPointerY accordingly, so we invert the original matrix and figure out where the pointerX and pointerY were in the global space, then apply the new matrix to get the updated coordinates.\n\t\t\t\t\tp = start.inverse().apply({x:startPointerX, y:startPointerY});\n\t\t\t\t\tmatrix.apply(p, p);\n\t\t\t\t\tstartPointerX = p.x;\n\t\t\t\t\tstartPointerY = p.y;\n\t\t\t\t}\n\t\t\t\tif (matrix.equals(_identityMatrix)) { //if there are no transforms, we can optimize performance by not factoring in the matrix\n\t\t\t\t\tmatrix = null;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\trecordStartPositions = () => {\n\t\t\t\tlet edgeTolerance = 1 - self.edgeResistance,\n\t\t\t\t\tparsedOrigin, parent, x, y;\n\t\t\t\tupdateMatrix(false);\n\t\t\t\tif (matrix) {\n\t\t\t\t\t_point1.x = self.pointerX;\n\t\t\t\t\t_point1.y = self.pointerY;\n\t\t\t\t\tmatrix.apply(_point1, _point1);\n\t\t\t\t\tstartPointerX = _point1.x; //translate to local coordinate system\n\t\t\t\t\tstartPointerY = _point1.y;\n\t\t\t\t}\n\t\t\t\tif (dirty) {\n\t\t\t\t\tsetPointerPosition(self.pointerX, self.pointerY);\n\t\t\t\t\trender(true);\n\t\t\t\t}\n\t\t\t\tif (scrollProxy) {\n\t\t\t\t\tcalculateBounds();\n\t\t\t\t\tstartElementY = scrollProxy.top();\n\t\t\t\t\tstartElementX = scrollProxy.left();\n\t\t\t\t} else {\n\t\t\t\t\t//if the element is in the process of tweening, don't force snapping to occur because it could make it jump. Imagine the user throwing, then before it's done, clicking on the element in its inbetween state.\n\t\t\t\t\tif (isTweening()) {\n\t\t\t\t\t\tsyncXY(true, true);\n\t\t\t\t\t\tcalculateBounds();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.applyBounds();\n\t\t\t\t\t}\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tparsedOrigin = target.ownerSVGElement ? [gsCache.xOrigin - target.getBBox().x, gsCache.yOrigin - target.getBBox().y] : (_getComputedStyle(target)[_transformOriginProp] || \"0 0\").split(\" \");\n\t\t\t\t\t\trotationOrigin = self.rotationOrigin = getGlobalMatrix(target).apply({x: parseFloat(parsedOrigin[0]) || 0, y: parseFloat(parsedOrigin[1]) || 0});\n\t\t\t\t\t\tsyncXY(true, true);\n\t\t\t\t\t\tx = self.pointerX - rotationOrigin.x;\n\t\t\t\t\t\ty = rotationOrigin.y - self.pointerY;\n\t\t\t\t\t\tif (isFixed) {\n\t\t\t\t\t\t\tx -= _getDocScrollLeft(ownerDoc);\n\t\t\t\t\t\t\ty += _getDocScrollTop(ownerDoc);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstartElementX = self.x; //starting rotation (x always refers to rotation in type:\"rotation\", measured in degrees)\n\t\t\t\t\t\tstartElementY = self.y = Math.atan2(y, x) * _RAD2DEG;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tparent = !isFixed && target.parentNode;\n\t\t\t\t\t\tstartScrollTop = parent ? parent.scrollTop || 0 : 0;\n\t\t\t\t\t\tstartScrollLeft = parent ? parent.scrollLeft || 0 : 0;\n\t\t\t\t\t\tstartElementY = getPropAsNum(yProp, \"px\"); //record the starting top and left values so that we can just add the mouse's movement to them later.\n\t\t\t\t\t\tstartElementX = getPropAsNum(xProp, \"px\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (hasBounds && edgeTolerance) {\n\t\t\t\t\tif (startElementX > maxX) {\n\t\t\t\t\t\tstartElementX = maxX + (startElementX - maxX) / edgeTolerance;\n\t\t\t\t\t} else if (startElementX < minX) {\n\t\t\t\t\t\tstartElementX = minX - (minX - startElementX) / edgeTolerance;\n\t\t\t\t\t}\n\t\t\t\t\tif (!rotationMode) {\n\t\t\t\t\t\tif (startElementY > maxY) {\n\t\t\t\t\t\t\tstartElementY = maxY + (startElementY - maxY) / edgeTolerance;\n\t\t\t\t\t\t} else if (startElementY < minY) {\n\t\t\t\t\t\t\tstartElementY = minY - (minY - startElementY) / edgeTolerance;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tself.startX = startElementX;\n\t\t\t\tself.startY = startElementY;\n\t\t\t},\n\n\t\t\tisTweening = () => self.tween && self.tween.isActive(),\n\n\t\t\tremovePlaceholder = () => {\n\t\t\t\tif (_placeholderDiv.parentNode && !isTweening() && !self.isDragging) { //_placeholderDiv just props open auto-scrolling containers so they don't collapse as the user drags left/up. We remove it after dragging (and throwing, if necessary) finishes.\n\t\t\t\t\t_placeholderDiv.parentNode.removeChild(_placeholderDiv);\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t//called when the mouse is pressed (or touch starts)\n\t\t\tonPress = (e, force) => {\n\t\t\t\tlet i;\n\t\t\t\tif (!enabled || self.isPressed || !e || ((e.type === \"mousedown\" || e.type === \"pointerdown\") && !force && _getTime() - clickTime < 30 && _touchEventLookup[self.pointerEvent.type])) { //when we DON'T preventDefault() in order to accommodate touch-scrolling and the user just taps, many browsers also fire a mousedown/mouseup sequence AFTER the touchstart/touchend sequence, thus it'd result in two quick \"click\" events being dispatched. This line senses that condition and halts it on the subsequent mousedown.\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinterrupted = isTweening();\n\t\t\t\tself.pointerEvent = e;\n\t\t\t\tif (_touchEventLookup[e.type]) { //note: on iOS, BOTH touchmove and mousemove are dispatched, but the mousemove has pageY and pageX of 0 which would mess up the calculations and needlessly hurt performance.\n\t\t\t\t\ttouchEventTarget = ~e.type.indexOf(\"touch\") ? (e.currentTarget || e.target) : ownerDoc; //pointer-based touches (for Microsoft browsers) don't remain locked to the original target like other browsers, so we must use the document instead. The event type would be \"MSPointerDown\" or \"pointerdown\".\n\t\t\t\t\t_addListener(touchEventTarget, \"touchend\", onRelease);\n\t\t\t\t\t_addListener(touchEventTarget, \"touchmove\", onMove);\n\t\t\t\t\t_addListener(touchEventTarget, \"touchcancel\", onRelease);\n\t\t\t\t\t_addListener(ownerDoc, \"touchstart\", _onMultiTouchDocument);\n\t\t\t\t} else {\n\t\t\t\t\ttouchEventTarget = null;\n\t\t\t\t\t_addListener(ownerDoc, \"mousemove\", onMove); //attach these to the document instead of the box itself so that if the user's mouse moves too quickly (and off of the box), things still work.\n\t\t\t\t}\n\t\t\t\ttouchDragAxis = null;\n\t\t\t\tif (!_supportsPointer) {\n\t\t\t\t\t_addListener(ownerDoc, \"mouseup\", onRelease);\n\t\t\t\t\tif (e && e.target) {\n\t\t\t\t\t\t_addListener(e.target, \"mouseup\", onRelease); //we also have to listen directly on the element because some browsers don't bubble up the event to the _doc on elements with contentEditable=\"true\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tisClicking = (isClickable.call(self, e.target) && vars.dragClickables === false && !force);\n\t\t\t\tif (isClicking) {\n\t\t\t\t\t_addListener(e.target, \"change\", onRelease); //in some browsers, when you mousedown on a <select> element, no mouseup gets dispatched! So we listen for a \"change\" event instead.\n\t\t\t\t\t_dispatchEvent(self, \"pressInit\", \"onPressInit\");\n\t\t\t\t\t_dispatchEvent(self, \"press\", \"onPress\");\n\t\t\t\t\t_setSelectable(triggers, true); //accommodates things like inputs and elements with contentEditable=\"true\" (otherwise user couldn't drag to select text)\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tallowNativeTouchScrolling = (!touchEventTarget || allowX === allowY || self.vars.allowNativeTouchScrolling === false || (self.vars.allowContextMenu && e && (e.ctrlKey || e.which > 2))) ? false : allowX ? \"y\" : \"x\"; //note: in Chrome, right-clicking (for a context menu) fires onPress and it doesn't have the event.which set properly, so we must look for event.ctrlKey. If the user wants to allow context menus we should of course sense it here and not allow native touch scrolling.\n\t\t\t\tif (!allowNativeTouchScrolling && !self.allowEventDefault) {\n\t\t\t\t\t_preventDefault(e);\n\t\t\t\t\t_addListener(_win, \"touchforcechange\", _preventDefault); //works around safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/\n\t\t\t\t}\n\t\t\t\tif (e.changedTouches) { //touch events store the data slightly differently\n\t\t\t\t\te = touch = e.changedTouches[0];\n\t\t\t\t\ttouchID = e.identifier;\n\t\t\t\t} else if (e.pointerId) {\n\t\t\t\t\ttouchID = e.pointerId; //for some Microsoft browsers\n\t\t\t\t} else {\n\t\t\t\t\ttouch = touchID = null;\n\t\t\t\t}\n\t\t\t\t_dragCount++;\n\t\t\t\t_addToRenderQueue(render); //causes the Draggable to render on each \"tick\" of TweenLite.ticker (performance optimization - updating values in a mousemove can cause them to happen too frequently, like multiple times between frame redraws which is wasteful, and it also prevents values from updating properly in IE8)\n\t\t\t\tstartPointerY = self.pointerY = e.pageY; //record the starting x and y so that we can calculate the movement from the original in _onMouseMove\n\t\t\t\tstartPointerX = self.pointerX = e.pageX;\n\t\t\t\t_dispatchEvent(self, \"pressInit\", \"onPressInit\");\n\t\t\t\tif (allowNativeTouchScrolling || self.autoScroll) {\n\t\t\t\t\t_recordMaxScrolls(target.parentNode);\n\t\t\t\t}\n\t\t\t\tif (target.parentNode && self.autoScroll && !scrollProxy && !rotationMode && target.parentNode._gsMaxScrollX && !_placeholderDiv.parentNode && !target.getBBox) { //add a placeholder div to prevent the parent container from collapsing when the user drags the element left.\n\t\t\t\t\t_placeholderDiv.style.width = target.parentNode.scrollWidth + \"px\";\n\t\t\t\t\ttarget.parentNode.appendChild(_placeholderDiv);\n\t\t\t\t}\n\t\t\t\trecordStartPositions();\n\t\t\t\tif (self.tween) {\n\t\t\t\t\tself.tween.kill();\n\t\t\t\t}\n\t\t\t\tself.isThrowing = false;\n\t\t\t\tgsap.killTweensOf(scrollProxy || target, killProps, true); //in case the user tries to drag it before the last tween is done.\n\t\t\t\tif (scrollProxy) {\n\t\t\t\t\tgsap.killTweensOf(target, {scrollTo:1}, true); //just in case the original target's scroll position is being tweened somewhere else.\n\t\t\t\t}\n\t\t\t\tself.tween = self.lockedAxis = null;\n\t\t\t\tif (vars.zIndexBoost || (!rotationMode && !scrollProxy && vars.zIndexBoost !== false)) {\n\t\t\t\t\ttarget.style.zIndex = Draggable.zIndex++;\n\t\t\t\t}\n\t\t\t\tself.isPressed = true;\n\t\t\t\thasDragCallback = !!(vars.onDrag || self._listeners.drag);\n\t\t\t\thasMoveCallback = !!(vars.onMove || self._listeners.move);\n\t\t\t\tif (!rotationMode && (vars.cursor !== false || vars.activeCursor)) {\n\t\t\t\t\ti = triggers.length;\n\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t//_setStyle(triggers[i], \"cursor\", vars.activeCursor || vars.cursor || (_defaultCursor === \"grab\" ? \"grabbing\" : _defaultCursor));\n\t\t\t\t\t\tgsap.set(triggers[i], {cursor: vars.activeCursor || vars.cursor || (_defaultCursor === \"grab\" ? \"grabbing\" : _defaultCursor)});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_dispatchEvent(self, \"press\", \"onPress\");\n\t\t\t},\n\n\t\t\t//called every time the mouse/touch moves\n\t\t\tonMove = e => {\n\t\t\t\tlet originalEvent = e,\n\t\t\t\t\ttouches, pointerX, pointerY, i, dx, dy;\n\t\t\t\tif (!enabled || _isMultiTouching || !self.isPressed || !e) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tself.pointerEvent = e;\n\t\t\t\ttouches = e.changedTouches;\n\t\t\t\tif (touches) { //touch events store the data slightly differently\n\t\t\t\t\te = touches[0];\n\t\t\t\t\tif (e !== touch && e.identifier !== touchID) { //Usually changedTouches[0] will be what we're looking for, but in case it's not, look through the rest of the array...(and Android browsers don't reuse the event like iOS)\n\t\t\t\t\t\ti = touches.length;\n\t\t\t\t\t\twhile (--i > -1 && (e = touches[i]).identifier !== touchID) {}\n\t\t\t\t\t\tif (i < 0) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (e.pointerId && touchID && e.pointerId !== touchID) { //for some Microsoft browsers, we must attach the listener to the doc rather than the trigger so that when the finger moves outside the bounds of the trigger, things still work. So if the event we're receiving has a pointerId that doesn't match the touchID, ignore it (for multi-touch)\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (touchEventTarget && allowNativeTouchScrolling && !touchDragAxis) { //Android browsers force us to decide on the first \"touchmove\" event if we should allow the default (scrolling) behavior or preventDefault(). Otherwise, a \"touchcancel\" will be fired and then no \"touchmove\" or \"touchend\" will fire during the scrolling (no good).\n\t\t\t\t\t_point1.x = e.pageX;\n\t\t\t\t\t_point1.y = e.pageY;\n\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\tmatrix.apply(_point1, _point1);\n\t\t\t\t\t}\n\t\t\t\t\tpointerX = _point1.x;\n\t\t\t\t\tpointerY = _point1.y;\n\t\t\t\t\tdx = Math.abs(pointerX - startPointerX);\n\t\t\t\t\tdy = Math.abs(pointerY - startPointerY);\n\t\t\t\t\tif ((dx !== dy && (dx > minimumMovement || dy > minimumMovement)) || (_isAndroid && allowNativeTouchScrolling === touchDragAxis)) {\n\t\t\t\t\t\ttouchDragAxis = (dx > dy && allowX) ? \"x\" : \"y\";\n\t\t\t\t\t\tif (allowNativeTouchScrolling && touchDragAxis !== allowNativeTouchScrolling) {\n\t\t\t\t\t\t\t_addListener(_win, \"touchforcechange\", _preventDefault); // prevents native touch scrolling from taking over if the user started dragging in the other direction in iOS Safari\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (self.vars.lockAxisOnTouchScroll !== false) {\n\t\t\t\t\t\t\tself.lockedAxis = (touchDragAxis === \"x\") ? \"y\" : \"x\";\n\t\t\t\t\t\t\tif (_isFunction(self.vars.onLockAxis)) {\n\t\t\t\t\t\t\t\tself.vars.onLockAxis.call(self, originalEvent);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (_isAndroid && allowNativeTouchScrolling === touchDragAxis) {\n\t\t\t\t\t\t\tonRelease(originalEvent);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!self.allowEventDefault && (!allowNativeTouchScrolling || (touchDragAxis && allowNativeTouchScrolling !== touchDragAxis)) && originalEvent.cancelable !== false) {\n\t\t\t\t\t_preventDefault(originalEvent);\n\t\t\t\t}\n\n\t\t\t\tif (self.autoScroll) {\n\t\t\t\t\tcheckAutoScrollBounds = true;\n\t\t\t\t}\n\t\t\t\tsetPointerPosition(e.pageX - (isFixed ? _getDocScrollLeft(ownerDoc) : 0), e.pageY - (isFixed ? _getDocScrollTop(ownerDoc) : 0), hasMoveCallback);\n\t\t\t},\n\n\t\t\tsetPointerPosition = (pointerX, pointerY, invokeOnMove) => {\n\t\t\t\tlet dragTolerance = 1 - self.dragResistance,\n\t\t\t\t\tedgeTolerance = 1 - self.edgeResistance,\n\t\t\t\t\tprevPointerX = self.pointerX,\n\t\t\t\t\tprevPointerY = self.pointerY,\n\t\t\t\t\tprevStartElementY = startElementY,\n\t\t\t\t\tprevX = self.x,\n\t\t\t\t\tprevY = self.y,\n\t\t\t\t\tprevEndX = self.endX,\n\t\t\t\t\tprevEndY = self.endY,\n\t\t\t\t\tprevEndRotation = self.endRotation,\n\t\t\t\t\tprevDirty = dirty,\n\t\t\t\t\txChange, yChange, x, y, dif, temp;\n\t\t\t\tself.pointerX = pointerX;\n\t\t\t\tself.pointerY = pointerY;\n\t\t\t\tif (rotationMode) {\n\t\t\t\t\ty = Math.atan2(rotationOrigin.y - pointerY, pointerX - rotationOrigin.x) * _RAD2DEG;\n\t\t\t\t\tdif = self.y - y;\n\t\t\t\t\tif (dif > 180) {\n\t\t\t\t\t\tstartElementY -= 360;\n\t\t\t\t\t\tself.y = y;\n\t\t\t\t\t} else if (dif < -180) {\n\t\t\t\t\t\tstartElementY += 360;\n\t\t\t\t\t\tself.y = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (self.x !== startElementX || Math.abs(startElementY - y) > minimumMovement) {\n\t\t\t\t\t\tself.y = y;\n\t\t\t\t\t\tx = startElementX + (startElementY - y) * dragTolerance;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tx = startElementX;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\ttemp = pointerX * matrix.a + pointerY * matrix.c + matrix.e;\n\t\t\t\t\t\tpointerY = pointerX * matrix.b + pointerY * matrix.d + matrix.f;\n\t\t\t\t\t\tpointerX = temp;\n\t\t\t\t\t}\n\t\t\t\t\tyChange = (pointerY - startPointerY);\n\t\t\t\t\txChange = (pointerX - startPointerX);\n\t\t\t\t\tif (yChange < minimumMovement && yChange > -minimumMovement) {\n\t\t\t\t\t\tyChange = 0;\n\t\t\t\t\t}\n\t\t\t\t\tif (xChange < minimumMovement && xChange > -minimumMovement) {\n\t\t\t\t\t\txChange = 0;\n\t\t\t\t\t}\n\t\t\t\t\tif ((self.lockAxis || self.lockedAxis) && (xChange || yChange)) {\n\t\t\t\t\t\ttemp = self.lockedAxis;\n\t\t\t\t\t\tif (!temp) {\n\t\t\t\t\t\t\tself.lockedAxis = temp = (allowX && Math.abs(xChange) > Math.abs(yChange)) ? \"y\" : allowY ? \"x\" : null;\n\t\t\t\t\t\t\tif (temp && _isFunction(self.vars.onLockAxis)) {\n\t\t\t\t\t\t\t\tself.vars.onLockAxis.call(self, self.pointerEvent);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (temp === \"y\") {\n\t\t\t\t\t\t\tyChange = 0;\n\t\t\t\t\t\t} else if (temp === \"x\") {\n\t\t\t\t\t\t\txChange = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tx = _round(startElementX + xChange * dragTolerance);\n\t\t\t\t\ty = _round(startElementY + yChange * dragTolerance);\n\t\t\t\t}\n\n\t\t\t\tif ((snapX || snapY || snapXY) && (self.x !== x || (self.y !== y && !rotationMode))) {\n\t\t\t\t\tif (snapXY) {\n\t\t\t\t\t\t_temp1.x = x;\n\t\t\t\t\t\t_temp1.y = y;\n\t\t\t\t\t\ttemp = snapXY(_temp1);\n\t\t\t\t\t\tx = _round(temp.x);\n\t\t\t\t\t\ty = _round(temp.y);\n\t\t\t\t\t}\n\t\t\t\t\tif (snapX) {\n\t\t\t\t\t\tx = _round(snapX(x));\n\t\t\t\t\t}\n\t\t\t\t\tif (snapY) {\n\t\t\t\t\t\ty = _round(snapY(y));\n\t\t\t\t\t}\n\t\t\t\t} else if (hasBounds) {\n\t\t\t\t\tif (x > maxX) {\n\t\t\t\t\t\tx = maxX + Math.round((x - maxX) * edgeTolerance);\n\t\t\t\t\t} else if (x < minX) {\n\t\t\t\t\t\tx = minX + Math.round((x - minX) * edgeTolerance);\n\t\t\t\t\t}\n\t\t\t\t\tif (!rotationMode) {\n\t\t\t\t\t\tif (y > maxY) {\n\t\t\t\t\t\t\ty = Math.round(maxY + (y - maxY) * edgeTolerance);\n\t\t\t\t\t\t} else if (y < minY) {\n\t\t\t\t\t\t\ty = Math.round(minY + (y - minY) * edgeTolerance);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (self.x !== x || (self.y !== y && !rotationMode)) {\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.endRotation = self.x = self.endX = x;\n\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (allowY) {\n\t\t\t\t\t\t\tself.y = self.endY = y;\n\t\t\t\t\t\t\tdirty = true; //a flag that indicates we need to render the target next time the TweenLite.ticker dispatches a \"tick\" event (typically on a requestAnimationFrame) - this is a performance optimization (we shouldn't render on every move because sometimes many move events can get dispatched between screen refreshes, and that'd be wasteful to render every time)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (allowX) {\n\t\t\t\t\t\t\tself.x = self.endX = x;\n\t\t\t\t\t\t\tdirty = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!invokeOnMove || _dispatchEvent(self, \"move\", \"onMove\") !== false) {\n\t\t\t\t\t\tif (!self.isDragging && self.isPressed) {\n\t\t\t\t\t\t\tself.isDragging = true;\n\t\t\t\t\t\t\t_dispatchEvent(self, \"dragstart\", \"onDragStart\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else { //revert because the onMove returned false!\n\t\t\t\t\t\tself.pointerX = prevPointerX;\n\t\t\t\t\t\tself.pointerY = prevPointerY;\n\t\t\t\t\t\tstartElementY = prevStartElementY;\n\t\t\t\t\t\tself.x = prevX;\n\t\t\t\t\t\tself.y = prevY;\n\t\t\t\t\t\tself.endX = prevEndX;\n\t\t\t\t\t\tself.endY = prevEndY;\n\t\t\t\t\t\tself.endRotation = prevEndRotation;\n\t\t\t\t\t\tdirty = prevDirty;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t//called when the mouse/touch is released\n\t\t\tonRelease = (e, force) => {\n\t\t\t\tif (!enabled || !self.isPressed || (e && touchID != null && !force && ((e.pointerId && e.pointerId !== touchID) || (e.changedTouches && !_hasTouchID(e.changedTouches, touchID))))) { //for some Microsoft browsers, we must attach the listener to the doc rather than the trigger so that when the finger moves outside the bounds of the trigger, things still work. So if the event we're receiving has a pointerId that doesn't match the touchID, ignore it (for multi-touch)\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tself.isPressed = false;\n\t\t\t\tlet originalEvent = e,\n\t\t\t\t\twasDragging = self.isDragging,\n\t\t\t\t\tisContextMenuRelease = (self.vars.allowContextMenu && e && (e.ctrlKey || e.which > 2)),\n\t\t\t\t\tplaceholderDelayedCall = gsap.delayedCall(0.001, removePlaceholder),\n\t\t\t\t\ttouches, i, syntheticEvent, eventTarget, syntheticClick;\n\t\t\t\tif (touchEventTarget) {\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchend\", onRelease);\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchmove\", onMove);\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchcancel\", onRelease);\n\t\t\t\t\t_removeListener(ownerDoc, \"touchstart\", _onMultiTouchDocument);\n\t\t\t\t} else {\n\t\t\t\t\t_removeListener(ownerDoc, \"mousemove\", onMove);\n\t\t\t\t}\n\t\t\t\t_removeListener(_win, \"touchforcechange\", _preventDefault);\n\t\t\t\tif (!_supportsPointer) {\n\t\t\t\t\t_removeListener(ownerDoc, \"mouseup\", onRelease);\n\t\t\t\t\tif (e && e.target) {\n\t\t\t\t\t\t_removeListener(e.target, \"mouseup\", onRelease);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdirty = false;\n\t\t\t\tif (isClicking && !isContextMenuRelease) {\n\t\t\t\t\tif (e) {\n\t\t\t\t\t\t_removeListener(e.target, \"change\", onRelease);\n\t\t\t\t\t\tself.pointerEvent = originalEvent;\n\t\t\t\t\t}\n\t\t\t\t\t_setSelectable(triggers, false);\n\t\t\t\t\t_dispatchEvent(self, \"release\", \"onRelease\");\n\t\t\t\t\t_dispatchEvent(self, \"click\", \"onClick\");\n\t\t\t\t\tisClicking = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t_removeFromRenderQueue(render);\n\t\t\t\tif (!rotationMode) {\n\t\t\t\t\ti = triggers.length;\n\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t_setStyle(triggers[i], \"cursor\", vars.cursor || (vars.cursor !== false ? _defaultCursor : null));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (wasDragging) {\n\t\t\t\t\tdragEndTime = _lastDragTime = _getTime();\n\t\t\t\t\tself.isDragging = false;\n\t\t\t\t}\n\t\t\t\t_dragCount--;\n\t\t\t\tif (e) {\n\t\t\t\t\ttouches = e.changedTouches;\n\t\t\t\t\tif (touches) { //touch events store the data slightly differently\n\t\t\t\t\t\te = touches[0];\n\t\t\t\t\t\tif (e !== touch && e.identifier !== touchID) { //Usually changedTouches[0] will be what we're looking for, but in case it's not, look through the rest of the array...(and Android browsers don't reuse the event like iOS)\n\t\t\t\t\t\t\ti = touches.length;\n\t\t\t\t\t\t\twhile (--i > -1 && (e = touches[i]).identifier !== touchID) {}\n\t\t\t\t\t\t\tif (i < 0) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tself.pointerEvent = originalEvent;\n\t\t\t\t\tself.pointerX = e.pageX;\n\t\t\t\t\tself.pointerY = e.pageY;\n\t\t\t\t}\n\t\t\t\tif (isContextMenuRelease && originalEvent) {\n\t\t\t\t\t_preventDefault(originalEvent);\n\t\t\t\t\t_dispatchEvent(self, \"release\", \"onRelease\");\n\t\t\t\t} else if (originalEvent && !wasDragging) {\n\t\t\t\t\tif (interrupted && (vars.snap || vars.bounds)) { //otherwise, if the user clicks on the object while it's animating to a snapped position, and then releases without moving 3 pixels, it will just stay there (it should animate/snap)\n\t\t\t\t\t\tanimate(vars.inertia || vars.throwProps);\n\t\t\t\t\t}\n\t\t\t\t\t_dispatchEvent(self, \"release\", \"onRelease\");\n\t\t\t\t\tif ((!_isAndroid || originalEvent.type !== \"touchmove\") && originalEvent.type.indexOf(\"cancel\") === -1) { //to accommodate native scrolling on Android devices, we have to immediately call onRelease() on the first touchmove event, but that shouldn't trigger a \"click\".\n\t\t\t\t\t\t_dispatchEvent(self, \"click\", \"onClick\");\n\t\t\t\t\t\tif (_getTime() - clickTime < 300) {\n\t\t\t\t\t\t\t_dispatchEvent(self, \"doubleclick\", \"onDoubleClick\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\teventTarget = originalEvent.target || target; //old IE uses srcElement\n\t\t\t\t\t\tclickTime = _getTime();\n\t\t\t\t\t\tsyntheticClick = () => { // some browsers (like Firefox) won't trust script-generated clicks, so if the user tries to click on a video to play it, for example, it simply won't work. Since a regular \"click\" event will most likely be generated anyway (one that has its isTrusted flag set to true), we must slightly delay our script-generated click so that the \"real\"/trusted one is prioritized. Remember, when there are duplicate events in quick succession, we suppress all but the first one. Some browsers don't even trigger the \"real\" one at all, so our synthetic one is a safety valve that ensures that no matter what, a click event does get dispatched.\n\t\t\t\t\t\t\tif (clickTime !== clickDispatch && self.enabled() && !self.isPressed && !originalEvent.defaultPrevented) {\n\t\t\t\t\t\t\t\tif (eventTarget.click) { //some browsers (like mobile Safari) don't properly trigger the click event\n\t\t\t\t\t\t\t\t\teventTarget.click();\n\t\t\t\t\t\t\t\t} else if (ownerDoc.createEvent) {\n\t\t\t\t\t\t\t\t\tsyntheticEvent = ownerDoc.createEvent(\"MouseEvents\");\n\t\t\t\t\t\t\t\t\tsyntheticEvent.initMouseEvent(\"click\", true, true, _win, 1, self.pointerEvent.screenX, self.pointerEvent.screenY, self.pointerX, self.pointerY, false, false, false, false, 0, null);\n\t\t\t\t\t\t\t\t\teventTarget.dispatchEvent(syntheticEvent);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (!_isAndroid && !originalEvent.defaultPrevented) { //iOS Safari requires the synthetic click to happen immediately or else it simply won't work, but Android doesn't play nice.\n\t\t\t\t\t\t\tgsap.delayedCall(0.05, syntheticClick); //in addition to the iOS bug workaround, there's a Firefox issue with clicking on things like a video to play, so we must fake a click event in a slightly delayed fashion. Previously, we listened for the \"click\" event with \"capture\" false which solved the video-click-to-play issue, but it would allow the \"click\" event to be dispatched twice like if you were using a jQuery.click() because that was handled in the capture phase, thus we had to switch to the capture phase to avoid the double-dispatching, but do the delayed synthetic click. Don't fire it too fast (like 0.00001) because we want to give the native event a chance to fire first as it's \"trusted\".\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tanimate(vars.inertia || vars.throwProps); //will skip if inertia/throwProps isn't defined or IntertiaPlugin isn't loaded.\n\t\t\t\t\tif (!self.allowEventDefault && originalEvent && (vars.dragClickables !== false || !isClickable.call(self, originalEvent.target)) && wasDragging && (!allowNativeTouchScrolling || (touchDragAxis && allowNativeTouchScrolling === touchDragAxis)) && originalEvent.cancelable !== false) {\n\t\t\t\t\t\t_preventDefault(originalEvent);\n\t\t\t\t\t}\n\t\t\t\t\t_dispatchEvent(self, \"release\", \"onRelease\");\n\t\t\t\t}\n\t\t\t\tif (isTweening()) {\n\t\t\t\t\tplaceholderDelayedCall.duration( self.tween.duration() ); //sync the timing so that the placeholder DIV gets\n\t\t\t\t}\n\t\t\t\tif (wasDragging) {\n\t\t\t\t\t_dispatchEvent(self, \"dragend\", \"onDragEnd\");\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t},\n\n\t\t\tupdateScroll = e => {\n\t\t\t\tif (e && self.isDragging && !scrollProxy) {\n\t\t\t\t\tlet parent = e.target || target.parentNode,\n\t\t\t\t\t\tdeltaX = parent.scrollLeft - parent._gsScrollX,\n\t\t\t\t\t\tdeltaY = parent.scrollTop - parent._gsScrollY;\n\t\t\t\t\tif (deltaX || deltaY) {\n\t\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\t\tstartPointerX -= deltaX * matrix.a + deltaY * matrix.c;\n\t\t\t\t\t\t\tstartPointerY -= deltaY * matrix.d + deltaX * matrix.b;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstartPointerX -= deltaX;\n\t\t\t\t\t\t\tstartPointerY -= deltaY;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparent._gsScrollX += deltaX;\n\t\t\t\t\t\tparent._gsScrollY += deltaY;\n\t\t\t\t\t\tsetPointerPosition(self.pointerX, self.pointerY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tonClick = e => { //this was a huge pain in the neck to align all the various browsers and their behaviors. Chrome, Firefox, Safari, Opera, Android, and Microsoft Edge all handle events differently! Some will only trigger native behavior (like checkbox toggling) from trusted events. Others don't even support isTrusted, but require 2 events to flow through before triggering native behavior. Edge treats everything as trusted but also mandates that 2 flow through to trigger the correct native behavior.\n\t\t\t\tlet time = _getTime(),\n\t\t\t\t\trecentlyClicked = (time - clickTime < 40),\n\t\t\t\t\trecentlyDragged = (time - dragEndTime < 40),\n\t\t\t\t\talreadyDispatched = (recentlyClicked && clickDispatch === clickTime),\n\t\t\t\t\tdefaultPrevented = (self.pointerEvent && self.pointerEvent.defaultPrevented),\n\t\t\t\t\talreadyDispatchedTrusted = (recentlyClicked && trustedClickDispatch === clickTime),\n\t\t\t\t\ttrusted = e.isTrusted || (e.isTrusted == null && recentlyClicked && alreadyDispatched); //note: Safari doesn't support isTrusted, and it won't properly execute native behavior (like toggling checkboxes) on the first synthetic \"click\" event - we must wait for the 2nd and treat it as trusted (but stop propagation at that point). Confusing, I know. Don't you love cross-browser compatibility challenges?\n\t\t\t\tif ((alreadyDispatched || (recentlyDragged && self.vars.suppressClickOnDrag !== false) ) && e.stopImmediatePropagation) {\n\t\t\t\t\te.stopImmediatePropagation();\n\t\t\t\t}\n\t\t\t\tif (recentlyClicked && !(self.pointerEvent && self.pointerEvent.defaultPrevented) && (!alreadyDispatched || (trusted && !alreadyDispatchedTrusted))) { //let the first click pass through unhindered. Let the next one only if it's trusted, then no more (stop quick-succession ones)\n\t\t\t\t\tif (trusted && alreadyDispatched) {\n\t\t\t\t\t\ttrustedClickDispatch = clickTime;\n\t\t\t\t\t}\n\t\t\t\t\tclickDispatch = clickTime;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (self.isPressed || recentlyDragged || recentlyClicked) {\n\t\t\t\t\tif (!trusted || !e.detail || !recentlyClicked || defaultPrevented) {\n\t\t\t\t\t\t_preventDefault(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tlocalizePoint = p => matrix ? {x:p.x * matrix.a + p.y * matrix.c + matrix.e, y:p.x * matrix.b + p.y * matrix.d + matrix.f} : {x:p.x, y:p.y};\n\n\t\told = Draggable.get(target);\n\t\tif (old) {\n\t\t\told.kill(); // avoids duplicates (an element can only be controlled by one Draggable)\n\t\t}\n\n\t\t//give the user access to start/stop dragging...\n\t\tthis.startDrag = (event, align) => {\n\t\t\tlet r1, r2, p1, p2;\n\t\t\tonPress(event || self.pointerEvent, true);\n\t\t\t//if the pointer isn't on top of the element, adjust things accordingly\n\t\t\tif (align && !self.hitTest(event || self.pointerEvent)) {\n\t\t\t\tr1 = _parseRect(event || self.pointerEvent);\n\t\t\t\tr2 = _parseRect(target);\n\t\t\t\tp1 = localizePoint({x:r1.left + r1.width / 2, y:r1.top + r1.height / 2});\n\t\t\t\tp2 = localizePoint({x:r2.left + r2.width / 2, y:r2.top + r2.height / 2});\n\t\t\t\tstartPointerX -= p1.x - p2.x;\n\t\t\t\tstartPointerY -= p1.y - p2.y;\n\t\t\t}\n\t\t\tif (!self.isDragging) {\n\t\t\t\tself.isDragging = true;\n\t\t\t\t_dispatchEvent(self, \"dragstart\", \"onDragStart\");\n\t\t\t}\n\t\t};\n\t\tthis.drag = onMove;\n\t\tthis.endDrag = e =>\tonRelease(e || self.pointerEvent, true);\n\t\tthis.timeSinceDrag = () => self.isDragging ? 0 : (_getTime() - dragEndTime) / 1000;\n\t\tthis.timeSinceClick = () => (_getTime() - clickTime) / 1000;\n\t\tthis.hitTest = (target, threshold) => Draggable.hitTest(self.target, target, threshold);\n\n\t\tthis.getDirection = (from, diagonalThreshold) => { //from can be \"start\" (default), \"velocity\", or an element\n\t\t\tlet mode = (from === \"velocity\" && InertiaPlugin) ? from : (_isObject(from) && !rotationMode) ? \"element\" : \"start\",\n\t\t\t\txChange, yChange, ratio, direction, r1, r2;\n\t\t\tif (mode === \"element\") {\n\t\t\t\tr1 = _parseRect(self.target);\n\t\t\t\tr2 = _parseRect(from);\n\t\t\t}\n\t\t\txChange = (mode === \"start\") ? self.x - startElementX : (mode === \"velocity\") ? InertiaPlugin.getVelocity(target, xProp) : (r1.left + r1.width / 2) - (r2.left + r2.width / 2);\n\t\t\tif (rotationMode) {\n\t\t\t\treturn xChange < 0 ? \"counter-clockwise\" : \"clockwise\";\n\t\t\t} else {\n\t\t\t\tdiagonalThreshold = diagonalThreshold || 2;\n\t\t\t\tyChange = (mode === \"start\") ? self.y - startElementY : (mode === \"velocity\") ? InertiaPlugin.getVelocity(target, yProp) : (r1.top + r1.height / 2) - (r2.top + r2.height / 2);\n\t\t\t\tratio = Math.abs(xChange / yChange);\n\t\t\t\tdirection = (ratio < 1 / diagonalThreshold) ? \"\" : (xChange < 0) ? \"left\" : \"right\";\n\t\t\t\tif (ratio < diagonalThreshold) {\n\t\t\t\t\tif (direction !== \"\") {\n\t\t\t\t\t\tdirection += \"-\";\n\t\t\t\t\t}\n\t\t\t\t\tdirection += (yChange < 0) ? \"up\" : \"down\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn direction;\n\t\t};\n\n\t\tthis.applyBounds = (newBounds, sticky) => {\n\t\t\tlet x, y, forceZeroVelocity, e, parent, isRoot;\n\t\t\tif (newBounds && vars.bounds !== newBounds) {\n\t\t\t\tvars.bounds = newBounds;\n\t\t\t\treturn self.update(true, sticky);\n\t\t\t}\n\t\t\tsyncXY(true);\n\t\t\tcalculateBounds();\n\t\t\tif (hasBounds && !isTweening()) {\n\t\t\t\tx = self.x;\n\t\t\t\ty = self.y;\n\t\t\t\tif (x > maxX) {\n\t\t\t\t\tx = maxX;\n\t\t\t\t} else if (x < minX) {\n\t\t\t\t\tx = minX;\n\t\t\t\t}\n\t\t\t\tif (y > maxY) {\n\t\t\t\t\ty = maxY;\n\t\t\t\t} else if (y < minY) {\n\t\t\t\t\ty = minY;\n\t\t\t\t}\n\t\t\t\tif (self.x !== x || self.y !== y) {\n\t\t\t\t\tforceZeroVelocity = true;\n\t\t\t\t\tself.x = self.endX = x;\n\t\t\t\t\tif (rotationMode) {\n\t\t\t\t\t\tself.endRotation = x;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.y = self.endY = y;\n\t\t\t\t\t}\n\t\t\t\t\tdirty = true;\n\t\t\t\t\trender(true);\n\t\t\t\t\tif (self.autoScroll && !self.isDragging) {\n\t\t\t\t\t\t_recordMaxScrolls(target.parentNode);\n\t\t\t\t\t\te = target;\n\t\t\t\t\t\t_windowProxy.scrollTop = ((_win.pageYOffset != null) ? _win.pageYOffset : (ownerDoc.documentElement.scrollTop != null) ? ownerDoc.documentElement.scrollTop : ownerDoc.body.scrollTop);\n\t\t\t\t\t\t_windowProxy.scrollLeft = ((_win.pageXOffset != null) ? _win.pageXOffset : (ownerDoc.documentElement.scrollLeft != null) ? ownerDoc.documentElement.scrollLeft : ownerDoc.body.scrollLeft);\n\t\t\t\t\t\twhile (e && !isRoot) { //walk up the chain and sense wherever the scrollTop/scrollLeft exceeds the maximum.\n\t\t\t\t\t\t\tisRoot = _isRoot(e.parentNode);\n\t\t\t\t\t\t\tparent = isRoot ? _windowProxy : e.parentNode;\n\t\t\t\t\t\t\tif (allowY && parent.scrollTop > parent._gsMaxScrollY) {\n\t\t\t\t\t\t\t\tparent.scrollTop = parent._gsMaxScrollY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (allowX && parent.scrollLeft > parent._gsMaxScrollX) {\n\t\t\t\t\t\t\t\tparent.scrollLeft = parent._gsMaxScrollX;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\te = parent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (self.isThrowing && (forceZeroVelocity || self.endX > maxX || self.endX < minX || self.endY > maxY || self.endY < minY)) {\n\t\t\t\t\tanimate(vars.inertia || vars.throwProps, forceZeroVelocity);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn self;\n\t\t};\n\n\t\tthis.update = (applyBounds, sticky, ignoreExternalChanges) => {\n\t\t\tlet { x, y } = self;\n\t\t\tupdateMatrix(!sticky);\n\t\t\tif (applyBounds) {\n\t\t\t\tself.applyBounds();\n\t\t\t} else {\n\t\t\t\tif (dirty && ignoreExternalChanges) {\n\t\t\t\t\trender(true);\n\t\t\t\t}\n\t\t\t\tsyncXY(true);\n\t\t\t}\n\t\t\tif (sticky) {\n\t\t\t\tsetPointerPosition(self.pointerX, self.pointerY);\n\t\t\t\tif (dirty) {\n\t\t\t\t\trender(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (self.isPressed && !sticky && ((allowX && Math.abs(x - self.x) > 0.01) || (allowY && (Math.abs(y - self.y) > 0.01 && !rotationMode)))) {\n\t\t\t\trecordStartPositions();\n\t\t\t}\n\t\t\tif (self.autoScroll) {\n\t\t\t\t_recordMaxScrolls(target.parentNode);\n\t\t\t\tcheckAutoScrollBounds = self.isDragging;\n\t\t\t\trender(true);\n\t\t\t\t//in case reparenting occurred.\n\t\t\t\t_removeScrollListener(target, updateScroll);\n\t\t\t\t_addScrollListener(target, updateScroll);\n\t\t\t}\n\t\t\treturn self;\n\t\t};\n\n\t\tthis.enable = type => {\n\t\t\tlet vars = {lazy: true},\n\t\t\t\tid, i, trigger;\n\t\t\tif (type !== \"soft\") {\n\t\t\t\ti = triggers.length;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\ttrigger = triggers[i];\n\t\t\t\t\tif (!_supportsPointer) {\n\t\t\t\t\t\t_addListener(trigger, \"mousedown\", onPress);\n\t\t\t\t\t}\n\t\t\t\t\t_addListener(trigger, \"touchstart\", onPress);\n\t\t\t\t\t_addListener(trigger, \"click\", onClick, true); //note: used to pass true for capture but it prevented click-to-play-video functionality in Firefox.\n\t\t\t\t\tif (!rotationMode && vars.cursor !== false) {\n\t\t\t\t\t\tvars.cursor = vars.cursor || _defaultCursor;\n\t\t\t\t\t}\n\t\t\t\t\tif (gsap.utils.checkPrefix(\"touchCallout\")) {\n\t\t\t\t\t\tvars.touchCallout = \"none\";\n\t\t\t\t\t}\n\t\t\t\t\tvars.touchAction = (allowX === allowY) ? \"none\" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? \"manipulation\" : allowX ? \"pan-y\" : \"pan-x\";\n\t\t\t\t\tgsap.set(trigger, vars);\n\t\t\t\t\tif (trigger.getBBox && trigger.ownerSVGElement) { // a bug in chrome doesn't respect touch-action on SVG elements - it only works if we set it on the parent SVG.\n\t\t\t\t\t\tgsap.set(trigger.ownerSVGElement, {touchAction: (allowX === allowY) ? \"none\" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? \"manipulation\" : allowX ? \"pan-y\" : \"pan-x\"});\n\t\t\t\t\t}\n\t\t\t\t\tif (!self.vars.allowContextMenu) {\n\t\t\t\t\t\t_addListener(trigger, \"contextmenu\", onContextMenu);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_setSelectable(triggers, false);\n\t\t\t}\n\t\t\t_addScrollListener(target, updateScroll);\n\t\t\tenabled = true;\n\t\t\tif (InertiaPlugin && type !== \"soft\") {\n\t\t\t\tInertiaPlugin.track(scrollProxy || target, (xyMode ? \"x,y\" : rotationMode ? \"rotation\" : \"top,left\"));\n\t\t\t}\n\t\t\ttarget._gsDragID = id = \"d\" + (_lookupCount++);\n\t\t\t_lookup[id] = self;\n\t\t\tif (scrollProxy) {\n\t\t\t\tscrollProxy.enable();\n\t\t\t\tscrollProxy.element._gsDragID = id;\n\t\t\t}\n\t\t\tif (vars.bounds) {\n\t\t\t\trecordStartPositions();\n\t\t\t\tself.applyBounds();\n\t\t\t}\n\t\t\treturn self;\n\t\t};\n\n\t\tthis.disable = type => {\n\t\t\tlet dragging = self.isDragging,\n\t\t\t\ti, trigger;\n\t\t\tif (!rotationMode) {\n\t\t\t\ti = triggers.length;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t_setStyle(triggers[i], \"cursor\", null);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (type !== \"soft\") {\n\t\t\t\ti = triggers.length;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\ttrigger = triggers[i];\n\t\t\t\t\t_setStyle(trigger, \"touchCallout\", null);\n\t\t\t\t\t_setStyle(trigger, \"touchAction\", null);\n\t\t\t\t\t_removeListener(trigger, \"mousedown\", onPress);\n\t\t\t\t\t_removeListener(trigger, \"touchstart\", onPress);\n\t\t\t\t\t_removeListener(trigger, \"click\", onClick);\n\t\t\t\t\t_removeListener(trigger, \"contextmenu\", onContextMenu);\n\t\t\t\t}\n\t\t\t\t_setSelectable(triggers, true);\n\t\t\t\tif (touchEventTarget) {\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchcancel\", onRelease);\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchend\", onRelease);\n\t\t\t\t\t_removeListener(touchEventTarget, \"touchmove\", onMove);\n\t\t\t\t}\n\t\t\t\t_removeListener(ownerDoc, \"mouseup\", onRelease);\n\t\t\t\t_removeListener(ownerDoc, \"mousemove\", onMove);\n\t\t\t}\n\t\t\t_removeScrollListener(target, updateScroll);\n\t\t\tenabled = false;\n\t\t\tif (InertiaPlugin && type !== \"soft\") {\n\t\t\t\tInertiaPlugin.untrack(scrollProxy || target, (xyMode ? \"x,y\" : rotationMode ? \"rotation\" : \"top,left\"));\n\t\t\t}\n\t\t\tif (scrollProxy) {\n\t\t\t\tscrollProxy.disable();\n\t\t\t}\n\t\t\t_removeFromRenderQueue(render);\n\t\t\tself.isDragging = self.isPressed = isClicking = false;\n\t\t\tif (dragging) {\n\t\t\t\t_dispatchEvent(self, \"dragend\", \"onDragEnd\");\n\t\t\t}\n\t\t\treturn self;\n\t\t};\n\n\t\tthis.enabled = function(value, type) {\n\t\t\treturn arguments.length ? (value ? self.enable(type) : self.disable(type)) : enabled;\n\t\t};\n\n\t\tthis.kill = function() {\n\t\t\tself.isThrowing = false;\n\t\t\tgsap.killTweensOf(scrollProxy || target, killProps, true);\n\t\t\tself.disable();\n\t\t\tgsap.set(triggers, {clearProps:\"userSelect\"});\n\t\t\tdelete _lookup[target._gsDragID];\n\t\t\treturn self;\n\t\t};\n\n\t\tif (~type.indexOf(\"scroll\")) {\n\t\t\tscrollProxy = this.scrollProxy = new ScrollProxy(target, _extend({onKill:function() { //ScrollProxy's onKill() gets called if/when the ScrollProxy senses that the user interacted with the scroll position manually (like using the scrollbar). IE9 doesn't fire the \"mouseup\" properly when users drag the scrollbar of an element, so this works around that issue.\n\t\t\t\t\tif (self.isPressed) {\n\t\t\t\t\t\tonRelease(null);\n\t\t\t\t\t}}}, vars));\n\t\t\t//a bug in many Android devices' stock browser causes scrollTop to get forced back to 0 after it is altered via JS, so we set overflow to \"hidden\" on mobile/touch devices (they hide the scroll bar anyway). That works around the bug. (This bug is discussed at https://code.google.com/p/android/issues/detail?id=19625)\n\t\t\ttarget.style.overflowY = (allowY && !_isTouchDevice) ? \"auto\" : \"hidden\";\n\t\t\ttarget.style.overflowX = (allowX && !_isTouchDevice) ? \"auto\" : \"hidden\";\n\t\t\ttarget = scrollProxy.content;\n\t\t}\n\n\t\tif (rotationMode) {\n\t\t\tkillProps.rotation = 1;\n\t\t} else {\n\t\t\tif (allowX) {\n\t\t\t\tkillProps[xProp] = 1;\n\t\t\t}\n\t\t\tif (allowY) {\n\t\t\t\tkillProps[yProp] = 1;\n\t\t\t}\n\t\t}\n\n\t\tthis.enable();\n\t}\n\n\n\n\n\tstatic register(core) {\n\t\tgsap = core;\n\t\t_initCore();\n\t}\n\n\tstatic create(targets, vars) {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore(true);\n\t\t}\n\t\treturn _toArray(targets).map(target => new Draggable(target, vars));\n\t}\n\n\tstatic get(target) {\n\t\treturn _lookup[(_toArray(target)[0] || {})._gsDragID];\n\t}\n\n\tstatic timeSinceDrag() {\n\t\treturn (_getTime() - _lastDragTime) / 1000;\n\t}\n\n\tstatic hitTest(obj1, obj2, threshold) {\n\t\tif (obj1 === obj2) {\n\t\t\treturn false;\n\t\t}\n\t\tlet r1 = _parseRect(obj1),\n\t\t\tr2 = _parseRect(obj2),\n\t\t\t{ top, left, right, bottom, width, height } = r1,\n\t\t\tisOutside = (r2.left > right || r2.right < left || r2.top > bottom || r2.bottom < top),\n\t\t\toverlap, area, isRatio;\n\t\tif (isOutside || !threshold) {\n\t\t\treturn !isOutside;\n\t\t}\n\t\tisRatio = ((threshold + \"\").indexOf(\"%\") !== -1);\n\t\tthreshold = parseFloat(threshold) || 0;\n\t\toverlap = {left: Math.max(left, r2.left), top: Math.max(top, r2.top)};\n\t\toverlap.width = Math.min(right, r2.right) - overlap.left;\n\t\toverlap.height = Math.min(bottom, r2.bottom) - overlap.top;\n\t\tif (overlap.width < 0 || overlap.height < 0) {\n\t\t\treturn false;\n\t\t}\n\t\tif (isRatio) {\n\t\t\tthreshold *= 0.01;\n\t\t\tarea = overlap.width * overlap.height;\n\t\t\treturn (area >= width * height * threshold || area >= r2.width * r2.height * threshold);\n\t\t}\n\t\treturn (overlap.width > threshold && overlap.height > threshold);\n\t}\n\n}\n\n_setDefaults(Draggable.prototype, {pointerX:0, pointerY: 0, startX: 0, startY: 0, deltaX: 0, deltaY: 0, isDragging: false, isPressed: false});\n\nDraggable.zIndex = 1000;\nDraggable.version = \"3.0.2\";\n\n_getGSAP() && gsap.registerPlugin(Draggable);\n\nexport { Draggable as default };"],"names":["_createSibling","element","i","parentNode","_doc","_setDoc","doc","ownerDocument","_transformProp","style","_transformOriginProp","_win","window","_identityMatrix","Matrix2D","_docElement","documentElement","_body","body","svg","_svgOwner","ns","getAttribute","type","x","y","css","e","createElementNS","replace","createElement","_svgContainer","setAttribute","appendChild","_divContainer","cssText","_setMatrix","m","a","b","c","d","f","_svgTemps","_divTemps","_getDocScrollTop","pageYOffset","scrollTop","_getDocScrollLeft","pageXOffset","scrollLeft","ownerSVGElement","tagName","toLowerCase","_isFixed","getComputedStyle","position","nodeType","_placeSiblings","container","isRootSVG","siblings","length","push","getBBox","transform","baseVal","consolidate","matrix","top","offsetTop","left","offsetLeft","inverse","this","determinant","multiply","a2","b2","c2","d2","e2","f2","equals","apply","point","decoratee","getGlobalMatrix","temps","b1","getBoundingClientRect","b3","parent","isFixed","removeChild","_windowExists","_getGSAP","gsap","registerPlugin","_isFunction","value","_isObject","_isUndefined","_emptyFunc","_round","Math","round","_createElement","_copy","obj","factor","p","copy","_renderQueueTick","_renderQueue","forEach","func","_renderQueueTimeout","ticker","remove","_removeFromRenderQueue","splice","to","overwrite","delay","duration","onComplete","data","_addListener","capture","addEventListener","touchType","_touchEventLookup","_supportsPassive","passive","substr","_removeListener","removeEventListener","_preventDefault","event","preventDefault","preventManipulation","_onMultiTouchDocumentEnd","_isMultiTouching","touches","_dragCount","target","_onMultiTouchDocument","_addScrollListener","callback","_isRoot","_removeScrollListener","_getMaxScroll","axis","dim","scroll","client","max","_recordMaxScrolls","_windowProxy","_gsMaxScrollX","_gsMaxScrollY","_gsScrollX","_gsScrollY","_setStyle","property","_checkPrefix","removeProperty","_getComputedStyle","Element","host","_parseRect","_tempRect","width","right","clientWidth","innerWidth","height","bottom","innerHeight","clientHeight","r","pageX","_toArray","pageY","_dispatchEvent","callbackName","result","vars","listeners","_listeners","callbackScope","pointerEvent","dispatchEvent","_getBounds","context","offset","_getElementBounds","min","minX","minRotation","minY","maxX","maxRotation","maxY","_parseInertia","draggable","snap","forceZeroVelocity","l","Array","end","call","velocity","_isClickable","onclick","_clickableTagExp","test","nodeName","_setSelectable","elements","selectable","ondragstart","onselectstart","set","lazy","userSelect","ScrollProxy","utils","toArray","elementWidth","elementHeight","contentHeight","nextNode","transformStart","transformEnd","content","document","node","firstChild","prevTop","prevLeft","scrollWidth","scrollHeight","extraPadRight","maxLeft","maxTop","_supports3D","force3D","force","arguments","dif","oldOffset","killTweensOf","onKill","_skip","paddingRight","maxScrollTop","maxScrollLeft","disable","nextSibling","enable","calibrate","cs","widthMatches","offsetHeight","display","parseFloat","paddingLeft","_addPaddingBR","overflow","verticalAlign","boxSizing","paddingBottom","_initCore","required","val","div","child","childStyle","_tempDiv","_supportsPointer","PointerEvent","_placeholderDiv","_defaultCursor","cursor","_isAndroid","navigator","userAgent","indexOf","_isTouchDevice","innerHTML","types","standard","split","converted","onpointerdown","onmspointerdown","Object","defineProperty","get","_lookup","isPressed","endDrag","_coreInitted","InertiaPlugin","plugins","inertia","checkPrefix","console","warn","_isArray","isArray","_RAD2DEG","PI","_bigNum","_getTime","Date","now","getTime","_lookupCount","_lastDragTime","_temp1","_point1","p1","p2","p3","p4","bbox","contextParent","isSVG","viewBox","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","EventDispatcher","list","_this","Draggable","register","core","create","targets","map","_gsDragID","timeSinceDrag","hitTest","obj1","obj2","threshold","overlap","area","isRatio","r1","r2","isOutside","_this2","rotation","dragResistance","edgeResistance","isNaN","lockAxis","autoScroll","lockedAxis","allowEventDefault","getProperty","getPropAsNum","unit","gsCache","onContextMenu","self","which","stopPropagation","render","suppressEvents","isDragging","checkAutoScrollBounds","dirty","isRoot","rect","pointerX","pointerY","changeX","changeY","gap","autoScrollFactor","ownerDoc","allowY","autoScrollMarginBottom","autoScrollMarginTop","allowX","autoScrollMarginRight","autoScrollMarginLeft","scrollTo","setPointerPosition","rotationMode","deltaX","renderTransform","scrollProxy","deltaY","xyMode","hasDragCallback","isDispatching","syncXY","skipOnUpdate","skipSnap","snappedValue","_gsap","getCache","parseInt","snapX","snapY","snapXY","isThrowing","buildSnapFunc","n","edgeTolerance","closest","absDif","calculateBounds","bounds","targetBounds","snapIsRaw","hasBounds","xProp","yProp","liveSnap","points","buildPointSnapFunc","radius","dx","dy","dist","minDist","onThrowComplete","onThrowInterrupt","animate","tween","overshootTolerance","resistance","throwResistance","linkedProps","minDuration","maxDuration","overshoot","onInterrupt","onUpdate","fastMode","onUpdateParams","endX","endY","endRotation","play","applyBounds","updateMatrix","shiftStart","start","startPointerX","startPointerY","recordStartPositions","parsedOrigin","startElementY","startElementX","isTweening","xOrigin","yOrigin","rotationOrigin","atan2","startX","startY","removePlaceholder","onPress","enabled","clickTime","interrupted","touchEventTarget","currentTarget","onRelease","onMove","touchDragAxis","isClicking","isClickable","dragClickables","triggers","allowNativeTouchScrolling","allowContextMenu","ctrlKey","changedTouches","touch","touchID","identifier","pointerId","_addToRenderQueue","add","kill","killProps","zIndexBoost","zIndex","onDrag","drag","hasMoveCallback","move","activeCursor","updateScroll","onClick","time","recentlyClicked","recentlyDragged","dragEndTime","alreadyDispatched","clickDispatch","defaultPrevented","alreadyDispatchedTrusted","trustedClickDispatch","trusted","isTrusted","suppressClickOnDrag","stopImmediatePropagation","detail","localizePoint","old","minimumMovement","trigger","handle","clickableTest","isActive","originalEvent","abs","lockAxisOnTouchScroll","onLockAxis","cancelable","invokeOnMove","xChange","yChange","temp","dragTolerance","prevPointerX","prevPointerY","prevStartElementY","prevX","prevY","prevEndX","prevEndY","prevEndRotation","prevDirty","_hasTouchID","ID","syntheticEvent","eventTarget","syntheticClick","wasDragging","isContextMenuRelease","placeholderDelayedCall","delayedCall","throwProps","click","createEvent","initMouseEvent","screenX","screenY","startDrag","align","timeSinceClick","getDirection","from","diagonalThreshold","ratio","direction","mode","getVelocity","newBounds","sticky","update","ignoreExternalChanges","id","touchCallout","touchAction","track","dragging","untrack","clearProps","_extend","defaults","overflowY","overflowX","_setDefaults","prototype","version"],"mappings":";;;;;;;;;6MA4CkB,SAAjBA,EAAkBC,EAASC,MACtBD,EAAQE,aAAeC,GA/BlB,SAAVC,QAAUJ,OACLK,EAAML,EAAQM,eAAiBN,IAC7BO,KAAkBP,EAAQQ,QAAU,gBAAiBR,EAAQQ,QAElEC,GADAF,EAAiB,eACuB,eAElCF,EAAIH,aAAeG,EAAMA,EAAIH,qBACpCQ,EAAOC,OACPC,EAAkB,IAAIC,GAClBR,IAEHS,GADAX,EAAOE,GACWU,gBAClBC,EAAQX,EAAIY,MAENZ,EAiB4BD,CAAQJ,IAAW,KACjDkB,EAAMC,EAAUnB,GACnBoB,EAAKF,EAAOA,EAAIG,aAAa,UAAY,6BAAgC,+BACzEC,EAAOJ,EAAOjB,EAAI,OAAS,IAAO,MAClCsB,EAAU,IAANtB,EAAU,EAAI,IAClBuB,EAAU,IAANvB,EAAU,IAAM,EACpBwB,EAAM,mCACNC,EAAIvB,EAAKwB,gBAAkBxB,EAAKwB,gBAAgBP,EAAGQ,QAAQ,SAAU,QAASN,GAAQnB,EAAK0B,cAAcP,UACtGrB,IACEiB,GAUHY,EADIA,GACY/B,EAAeC,GAEhC0B,EAAEK,aAAa,QAAS,GACxBL,EAAEK,aAAa,SAAU,GACzBL,EAAEK,aAAa,YAAa,aAAeR,EAAI,IAAMC,EAAI,KACzDM,EAAcE,YA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O,kBACX5H,EAAK2C,YAAa,EAClB7T,GAAK4J,aAAakJ,GAAe7P,EAAQ8V,GAAW,GACpD7H,EAAKhH,UACLlK,GAAK+H,IAAIoQ,EAAU,CAACiG,WAAW,sBACxBxR,GAAQ3J,EAAOuM,WACf0B,IAGH5V,EAAK0Q,QAAQ,YACjB8G,EAAc1C,EAAK0C,YAAc,IAAI5K,GAAYjF,EA5wDzC,SAAVob,QAAWzd,EAAK0d,OACV,IAAIxd,KAAKwd,EACPxd,KAAKF,IACVA,EAAIE,GAAKwd,EAASxd,WAGbF,EAswDmDyd,CAAQ,CAACxU,OAAO,kBACnEqH,EAAKrE,WACRgL,GAAU,QACNlS,IAEP1C,EAAOzI,MAAM+jB,UAAapM,IAAWlG,GAAkB,OAAS,SAChEhJ,EAAOzI,MAAMgkB,UAAalM,IAAWrG,GAAkB,OAAS,SAChEhJ,EAAS6P,EAAYnK,SAGlBgK,EACHoG,EAAU1I,SAAW,GAEjBiC,IACHyG,EAAUvE,GAAS,GAEhBrC,IACH4G,EAAUtE,GAAS,MAIhBrK,YAxwDS,SAAfqU,aAAgB7d,EAAK0d,OACf,IAAIxd,KAAKwd,EACPxd,KAAKF,IACVA,EAAIE,GAAKwd,EAASxd,IA6zDtB2d,CAAavP,EAAUwP,UAAW,CAAC9M,SAAS,EAAGC,SAAU,EAAGuF,OAAQ,EAAGC,OAAQ,EAAGzE,OAAQ,EAAGG,OAAQ,EAAGxB,YAAY,EAAO1E,WAAW,IAEtIqC,EAAU+J,OAAS,IACnB/J,EAAUyP,QAAU,QAEpB5e,KAAcC,GAAKC,eAAeiP"}
\ No newline at end of file
diff --git a/dist/EasePack.js b/dist/EasePack.js
index 7967a4c..15da0e5 100644
--- a/dist/EasePack.js
+++ b/dist/EasePack.js
@@ -2,10 +2,10 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
-}(this, function (exports) { 'use strict';
+}(this, (function (exports) { 'use strict';
/*!
- * EasePack 3.0.0
+ * EasePack 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -201,7 +201,7 @@
for (var p in EasePack) {
EasePack[p].register = _initCore;
- EasePack[p].version = "3.0.0";
+ EasePack[p].version = "3.0.2";
}
_getGSAP() && gsap.registerPlugin(SlowMo);
@@ -214,4 +214,4 @@
Object.defineProperty(exports, '__esModule', { value: true });
-}));
+})));
diff --git a/dist/EasePack.min.js b/dist/EasePack.min.js
index 17f43d3..2719000 100644
--- a/dist/EasePack.min.js
+++ b/dist/EasePack.min.js
@@ -1,11 +1,11 @@
-!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";
/*!
- * EasePack 3.0.0
- * https://greensock.com
- *
- * @license Copyright 2008-2019, 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, [email protected]
- */function f(){return w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w}function g(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function h(e){if(w=e||f()){r=w.registerEase;var n,t=w.parseEase(),o=function createConfig(t){return function(e){var n=.5+e/2;t.config=function(e){return t(2*(1-e)*e*n+e*e)}}};for(n in t)t[n].config||o(t[n]);for(n in r("slow",a),r("expoScale",s),r("rough",u),c)"version"!==n&&w.core.globals(n,c[n])}}function i(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=g(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function j(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&w.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function k(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function l(e){"object"!=typeof e&&(e={points:+e||20});for(var n,t,o,r,i,a,f,s=e.taper||"none",u=[],c=0,p=0|(+e.points||20),l=p,v=g(e.randomize,!0),d=g(e.clamp),h=w?w.parseEase(e.template):0,x=.4*(+e.strength||1);-1<--l;)n=v?Math.random():1/p*l,t=h?h(n):n,o="none"===s?x:"out"===s?(r=1-n)*r*x:"in"===s?n*n*x:n<.5?(r=2*n)*r*.5*x:(r=2*(1-n))*r*.5*x,v?t+=Math.random()*o-.5*o:l%2?t+=.5*o:t-=.5*o,d&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new k(1,1,null),l=p;l--;)i=u[l],a=new k(i.x,i.y,a);return f=new k(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var w,r,a=i(.7);(a.ease=a).config=i;var s=j(1,2);s.config=j;var u=l();(u.ease=u).config=l;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:s};for(var n in c)c[n].register=h,c[n].version="3.0.0";f()&&w.registerPlugin(a),e.EasePack=c,e.ExpoScaleEase=s,e.RoughEase=u,e.SlowMo=a,e.default=c,Object.defineProperty(e,"__esModule",{value:!0})});
+ * EasePack 3.0.2
+ * https://greensock.com
+ *
+ * @license Copyright 2019, 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, [email protected]
+ */
+
+!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function f(){return w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w}function g(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function h(e){if(w=e||f()){r=w.registerEase;var n,t=w.parseEase(),o=function createConfig(t){return function(e){var n=.5+e/2;t.config=function(e){return t(2*(1-e)*e*n+e*e)}}};for(n in t)t[n].config||o(t[n]);for(n in r("slow",a),r("expoScale",s),r("rough",u),c)"version"!==n&&w.core.globals(n,c[n])}}function i(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=g(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function j(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&w.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function k(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function l(e){"object"!=typeof e&&(e={points:+e||20});for(var n,t,o,r,i,a,f,s=e.taper||"none",u=[],c=0,p=0|(+e.points||20),l=p,v=g(e.randomize,!0),d=g(e.clamp),h=w?w.parseEase(e.template):0,x=.4*(+e.strength||1);-1<--l;)n=v?Math.random():1/p*l,t=h?h(n):n,o="none"===s?x:"out"===s?(r=1-n)*r*x:"in"===s?n*n*x:n<.5?(r=2*n)*r*.5*x:(r=2*(1-n))*r*.5*x,v?t+=Math.random()*o-.5*o:l%2?t+=.5*o:t-=.5*o,d&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new k(1,1,null),l=p;l--;)i=u[l],a=new k(i.x,i.y,a);return f=new k(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var w,r,a=i(.7);(a.ease=a).config=i;var s=j(1,2);s.config=j;var u=l();(u.ease=u).config=l;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:s};for(var n in c)c[n].register=h,c[n].version="3.0.2";f()&&w.registerPlugin(a),e.EasePack=c,e.ExpoScaleEase=s,e.RoughEase=u,e.SlowMo=a,e.default=c,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=EasePack.min.js.map
diff --git a/dist/EasePack.min.js.map b/dist/EasePack.min.js.map
index f179a71..2f22ce9 100644
--- a/dist/EasePack.min.js.map
+++ b/dist/EasePack.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"EasePack.min.js","sources":["../src/EasePack.js"],"sourcesContent":["/*!\n * EasePack 3.0.0\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _coreInitted, _registerEase,\n\t_getGSAP = () => gsap || (typeof(window) !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_boolean = (value, defaultValue) => !!(typeof(value) === \"undefined\" ? defaultValue : value && !~((value + \"\").indexOf(\"false\"))),\n\t_initCore = core => {\n\t\tgsap = core || _getGSAP();\n\t\tif (gsap) {\n\t\t\t_registerEase = gsap.registerEase;\n\t\t\t//add weighted ease capabilities to standard eases so users can do \"power2.inOut(0.8)\" for example to push everything toward the \"out\", or (-0.8) to push it toward the \"in\" (0 is neutral)\n\t\t\tlet eases = gsap.parseEase(),\n\t\t\t\tcreateConfig = ease => ratio => {\n\t\t\t\t\tlet y = 0.5 + ratio / 2;\n\t\t\t\t\tease.config = p => ease(2 * (1 - p) * p * y + p * p);\n\t\t\t\t},\n\t\t\t\tp;\n\t\t\tfor (p in eases) {\n\t\t\t\tif (!eases[p].config) {\n\t\t\t\t\tcreateConfig(eases[p]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t_registerEase(\"slow\", SlowMo);\n\t\t\t_registerEase(\"expoScale\", ExpoScaleEase);\n\t\t\t_registerEase(\"rough\", RoughEase);\n\t\t\tfor (p in EasePack) {\n\t\t\t\tp !== \"version\" && gsap.core.globals(p, EasePack[p]);\n\t\t\t}\n\t\t\t_coreInitted = 1;\n\t\t}\n\t},\n\t_createSlowMo = (linearRatio, power, yoyoMode) => {\n\t\tlinearRatio = Math.min(1, linearRatio || 0.7);\n\t\tlet pow = linearRatio < 1 ? ((power || power === 0) ? power : 0.7) : 0,\n\t\t\tp1 = (1 - linearRatio) / 2,\n\t\t\tp3 = p1 + linearRatio,\n\t\t\tcalcEnd = _boolean(yoyoMode);\n\t\treturn p => {\n\t\t\tlet r = p + (0.5 - p) * pow;\n\t\t\treturn (p < p1) ? (calcEnd ? 1 - ((p = 1 - (p / p1)) * p) : r - ((p = 1 - (p / p1)) * p * p * p * r)) : (p > p3) ? (calcEnd ? (p === 1 ? 0 : 1 - (p = (p - p3) / p1) * p) : r + ((p - r) * (p = (p - p3) / p1) * p * p * p)) : (calcEnd ? 1 : r);\n\t\t}\n\t},\n\t_createExpoScale = (start, end, ease) => {\n\t\tlet p1 = Math.log(end / start),\n\t\t\tp2 = end - start;\n\t\tease && (ease = gsap.parseEase(ease));\n\t\treturn p => (start * Math.exp(p1 * (ease ? ease(p) : p)) - start) / p2;\n\t},\n\tEasePoint = function(time, value, next) {\n\t\tthis.t = time;\n\t\tthis.v = value;\n\t\tif (next) {\n\t\t\tthis.next = next;\n\t\t\tnext.prev = this;\n\t\t\tthis.c = next.v - value;\n\t\t\tthis.gap = next.t - time;\n\t\t}\n\t},\n\t_createRoughEase = vars => {\n\t\tif (typeof(vars) !== \"object\") { //users may pass in via a string, like \"rough(30)\"\n\t\t\tvars = {points: +vars || 20};\n\t\t}\n\t\tlet taper = vars.taper || \"none\",\n\t\t\ta = [],\n\t\t\tcnt = 0,\n\t\t\tpoints = (+vars.points || 20) | 0,\n\t\t\ti = points,\n\t\t\trandomize = _boolean(vars.randomize, true),\n\t\t\tclamp = _boolean(vars.clamp),\n\t\t\ttemplate = gsap ? gsap.parseEase(vars.template) : 0,\n\t\t\tstrength = (+vars.strength || 1) * 0.4,\n\t\t\tx, y, bump, invX, obj, pnt, recent;\n\t\twhile (--i > -1) {\n\t\t\tx = randomize ? Math.random() : (1 / points) * i;\n\t\t\ty = template ? template(x) : x;\n\t\t\tif (taper === \"none\") {\n\t\t\t\tbump = strength;\n\t\t\t} else if (taper === \"out\") {\n\t\t\t\tinvX = 1 - x;\n\t\t\t\tbump = invX * invX * strength;\n\t\t\t} else if (taper === \"in\") {\n\t\t\t\tbump = x * x * strength;\n\t\t\t} else if (x < 0.5) { //\"both\" (start)\n\t\t\t\tinvX = x * 2;\n\t\t\t\tbump = invX * invX * 0.5 * strength;\n\t\t\t} else {\t\t\t\t//\"both\" (end)\n\t\t\t\tinvX = (1 - x) * 2;\n\t\t\t\tbump = invX * invX * 0.5 * strength;\n\t\t\t}\n\t\t\tif (randomize) {\n\t\t\t\ty += (Math.random() * bump) - (bump * 0.5);\n\t\t\t} else if (i % 2) {\n\t\t\t\ty += bump * 0.5;\n\t\t\t} else {\n\t\t\t\ty -= bump * 0.5;\n\t\t\t}\n\t\t\tif (clamp) {\n\t\t\t\tif (y > 1) {\n\t\t\t\t\ty = 1;\n\t\t\t\t} else if (y < 0) {\n\t\t\t\t\ty = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\ta[cnt++] = {x:x, y:y};\n\t\t}\n\t\ta.sort((a, b) => a.x - b.x);\n\t\tpnt = new EasePoint(1, 1, null);\n\t\ti = points;\n\t\twhile (i--) {\n\t\t\tobj = a[i];\n\t\t\tpnt = new EasePoint(obj.x, obj.y, pnt);\n\t\t}\n\t\trecent = new EasePoint(0, 0, pnt.t ? pnt : pnt.next);\n\t\treturn p => {\n\t\t\tlet pnt = recent;\n\t\t\tif (p > pnt.t) {\n\t\t\t\twhile (pnt.next && p >= pnt.t) {\n\t\t\t\t\tpnt = pnt.next;\n\t\t\t\t}\n\t\t\t\tpnt = pnt.prev;\n\t\t\t} else {\n\t\t\t\twhile (pnt.prev && p <= pnt.t) {\n\t\t\t\t\tpnt = pnt.prev;\n\t\t\t\t}\n\t\t\t}\n\t\t\trecent = pnt;\n\t\t\treturn pnt.v + ((p - pnt.t) / pnt.gap) * pnt.c;\n\t\t};\n\t};\n\nexport const SlowMo = _createSlowMo(0.7);\nSlowMo.ease = SlowMo; //for backward compatibility\nSlowMo.config = _createSlowMo;\n\nexport const ExpoScaleEase = _createExpoScale(1, 2);\nExpoScaleEase.config = _createExpoScale;\n\nexport const RoughEase = _createRoughEase();\nRoughEase.ease = RoughEase; //for backward compatibility\nRoughEase.config = _createRoughEase;\n\nexport const EasePack = {\n\tSlowMo: SlowMo,\n\tRoughEase: RoughEase,\n\tExpoScaleEase: ExpoScaleEase\n};\n\nfor (let p in EasePack) {\n\tEasePack[p].register = _initCore;\n\tEasePack[p].version = \"3.0.0\";\n}\n\n_getGSAP() && gsap.registerPlugin(SlowMo);\n\nexport { EasePack as default };"],"names":["_getGSAP","gsap","window","registerPlugin","_boolean","value","defaultValue","indexOf","_initCore","core","_registerEase","registerEase","p","eases","parseEase","createConfig","ease","ratio","y","config","SlowMo","ExpoScaleEase","RoughEase","EasePack","globals","_createSlowMo","linearRatio","power","yoyoMode","pow","Math","min","p1","p3","calcEnd","r","_createExpoScale","start","end","log","p2","exp","EasePoint","time","next","t","v","prev","this","c","gap","_createRoughEase","vars","points","x","bump","invX","obj","pnt","recent","taper","a","cnt","i","randomize","clamp","template","strength","random","sort","b","register","version"],"mappings":";;;;;;;;;GAYY,SAAXA,WAAiBC,GAA4B,oBAAZC,SAA4BD,EAAOC,OAAOD,OAASA,EAAKE,gBAAkBF,EAChG,SAAXG,EAAYC,EAAOC,iBAAsC,IAAXD,EAAyBC,EAAeD,MAAaA,EAAQ,IAAIE,QAAQ,UAC3G,SAAZC,E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EAAM,IAAIhB,EAAUe,EAAIH,EAAGG,EAAIvC,EAAGwC,UAEnCC,EAAS,IAAIjB,EAAU,EAAG,EAAGgB,EAAIb,EAAIa,EAAMA,EAAId,MACxC,SAAAhC,OACF8C,EAAMC,KACN/C,EAAI8C,EAAIb,EAAG,MACPa,EAAId,MAAQhC,GAAK8C,EAAIb,GAC3Ba,EAAMA,EAAId,KAEXc,EAAMA,EAAIX,eAEHW,EAAIX,MAAQnC,GAAK8C,EAAIb,GAC3Ba,EAAMA,EAAIX,YAGZY,EAASD,GACEZ,GAAMlC,EAAI8C,EAAIb,GAAKa,EAAIR,IAAOQ,EAAIT,OA3H5ChD,EAAoBS,EA+HXU,EAASK,EAAc,KACpCL,EAAOJ,KAAOI,GACPD,OAASM,MAEHJ,EAAgBe,EAAiB,EAAG,GACjDf,EAAcF,OAASiB,MAEVd,EAAY6B,KACzB7B,EAAUN,KAAOM,GACPH,OAASgC,MAEN5B,EAAW,CACvBH,OAAQA,EACRE,UAAWA,EACXD,cAAeA,GAGhB,IAAK,IAAIT,KAAKW,EACbA,EAASX,GAAG2D,SAAW/D,EACvBe,EAASX,GAAG4D,QAAU,QAGvBxE,KAAcC,EAAKE,eAAeiB"}
\ No newline at end of file
+{"version":3,"file":"EasePack.min.js","sources":["../src/EasePack.js"],"sourcesContent":["/*!\n * EasePack 3.0.2\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _coreInitted, _registerEase,\n\t_getGSAP = () => gsap || (typeof(window) !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_boolean = (value, defaultValue) => !!(typeof(value) === \"undefined\" ? defaultValue : value && !~((value + \"\").indexOf(\"false\"))),\n\t_initCore = core => {\n\t\tgsap = core || _getGSAP();\n\t\tif (gsap) {\n\t\t\t_registerEase = gsap.registerEase;\n\t\t\t//add weighted ease capabilities to standard eases so users can do \"power2.inOut(0.8)\" for example to push everything toward the \"out\", or (-0.8) to push it toward the \"in\" (0 is neutral)\n\t\t\tlet eases = gsap.parseEase(),\n\t\t\t\tcreateConfig = ease => ratio => {\n\t\t\t\t\tlet y = 0.5 + ratio / 2;\n\t\t\t\t\tease.config = p => ease(2 * (1 - p) * p * y + p * p);\n\t\t\t\t},\n\t\t\t\tp;\n\t\t\tfor (p in eases) {\n\t\t\t\tif (!eases[p].config) {\n\t\t\t\t\tcreateConfig(eases[p]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t_registerEase(\"slow\", SlowMo);\n\t\t\t_registerEase(\"expoScale\", ExpoScaleEase);\n\t\t\t_registerEase(\"rough\", RoughEase);\n\t\t\tfor (p in EasePack) {\n\t\t\t\tp !== \"version\" && gsap.core.globals(p, EasePack[p]);\n\t\t\t}\n\t\t\t_coreInitted = 1;\n\t\t}\n\t},\n\t_createSlowMo = (linearRatio, power, yoyoMode) => {\n\t\tlinearRatio = Math.min(1, linearRatio || 0.7);\n\t\tlet pow = linearRatio < 1 ? ((power || power === 0) ? power : 0.7) : 0,\n\t\t\tp1 = (1 - linearRatio) / 2,\n\t\t\tp3 = p1 + linearRatio,\n\t\t\tcalcEnd = _boolean(yoyoMode);\n\t\treturn p => {\n\t\t\tlet r = p + (0.5 - p) * pow;\n\t\t\treturn (p < p1) ? (calcEnd ? 1 - ((p = 1 - (p / p1)) * p) : r - ((p = 1 - (p / p1)) * p * p * p * r)) : (p > p3) ? (calcEnd ? (p === 1 ? 0 : 1 - (p = (p - p3) / p1) * p) : r + ((p - r) * (p = (p - p3) / p1) * p * p * p)) : (calcEnd ? 1 : r);\n\t\t}\n\t},\n\t_createExpoScale = (start, end, ease) => {\n\t\tlet p1 = Math.log(end / start),\n\t\t\tp2 = end - start;\n\t\tease && (ease = gsap.parseEase(ease));\n\t\treturn p => (start * Math.exp(p1 * (ease ? ease(p) : p)) - start) / p2;\n\t},\n\tEasePoint = function(time, value, next) {\n\t\tthis.t = time;\n\t\tthis.v = value;\n\t\tif (next) {\n\t\t\tthis.next = next;\n\t\t\tnext.prev = this;\n\t\t\tthis.c = next.v - value;\n\t\t\tthis.gap = next.t - time;\n\t\t}\n\t},\n\t_createRoughEase = vars => {\n\t\tif (typeof(vars) !== \"object\") { //users may pass in via a string, like \"rough(30)\"\n\t\t\tvars = {points: +vars || 20};\n\t\t}\n\t\tlet taper = vars.taper || \"none\",\n\t\t\ta = [],\n\t\t\tcnt = 0,\n\t\t\tpoints = (+vars.points || 20) | 0,\n\t\t\ti = points,\n\t\t\trandomize = _boolean(vars.randomize, true),\n\t\t\tclamp = _boolean(vars.clamp),\n\t\t\ttemplate = gsap ? gsap.parseEase(vars.template) : 0,\n\t\t\tstrength = (+vars.strength || 1) * 0.4,\n\t\t\tx, y, bump, invX, obj, pnt, recent;\n\t\twhile (--i > -1) {\n\t\t\tx = randomize ? Math.random() : (1 / points) * i;\n\t\t\ty = template ? template(x) : x;\n\t\t\tif (taper === \"none\") {\n\t\t\t\tbump = strength;\n\t\t\t} else if (taper === \"out\") {\n\t\t\t\tinvX = 1 - x;\n\t\t\t\tbump = invX * invX * strength;\n\t\t\t} else if (taper === \"in\") {\n\t\t\t\tbump = x * x * strength;\n\t\t\t} else if (x < 0.5) { //\"both\" (start)\n\t\t\t\tinvX = x * 2;\n\t\t\t\tbump = invX * invX * 0.5 * strength;\n\t\t\t} else {\t\t\t\t//\"both\" (end)\n\t\t\t\tinvX = (1 - x) * 2;\n\t\t\t\tbump = invX * invX * 0.5 * strength;\n\t\t\t}\n\t\t\tif (randomize) {\n\t\t\t\ty += (Math.random() * bump) - (bump * 0.5);\n\t\t\t} else if (i % 2) {\n\t\t\t\ty += bump * 0.5;\n\t\t\t} else {\n\t\t\t\ty -= bump * 0.5;\n\t\t\t}\n\t\t\tif (clamp) {\n\t\t\t\tif (y > 1) {\n\t\t\t\t\ty = 1;\n\t\t\t\t} else if (y < 0) {\n\t\t\t\t\ty = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\ta[cnt++] = {x:x, y:y};\n\t\t}\n\t\ta.sort((a, b) => a.x - b.x);\n\t\tpnt = new EasePoint(1, 1, null);\n\t\ti = points;\n\t\twhile (i--) {\n\t\t\tobj = a[i];\n\t\t\tpnt = new EasePoint(obj.x, obj.y, pnt);\n\t\t}\n\t\trecent = new EasePoint(0, 0, pnt.t ? pnt : pnt.next);\n\t\treturn p => {\n\t\t\tlet pnt = recent;\n\t\t\tif (p > pnt.t) {\n\t\t\t\twhile (pnt.next && p >= pnt.t) {\n\t\t\t\t\tpnt = pnt.next;\n\t\t\t\t}\n\t\t\t\tpnt = pnt.prev;\n\t\t\t} else {\n\t\t\t\twhile (pnt.prev && p <= pnt.t) {\n\t\t\t\t\tpnt = pnt.prev;\n\t\t\t\t}\n\t\t\t}\n\t\t\trecent = pnt;\n\t\t\treturn pnt.v + ((p - pnt.t) / pnt.gap) * pnt.c;\n\t\t};\n\t};\n\nexport const SlowMo = _createSlowMo(0.7);\nSlowMo.ease = SlowMo; //for backward compatibility\nSlowMo.config = _createSlowMo;\n\nexport const ExpoScaleEase = _createExpoScale(1, 2);\nExpoScaleEase.config = _createExpoScale;\n\nexport const RoughEase = _createRoughEase();\nRoughEase.ease = RoughEase; //for backward compatibility\nRoughEase.config = _createRoughEase;\n\nexport const EasePack = {\n\tSlowMo: SlowMo,\n\tRoughEase: RoughEase,\n\tExpoScaleEase: ExpoScaleEase\n};\n\nfor (let p in EasePack) {\n\tEasePack[p].register = _initCore;\n\tEasePack[p].version = \"3.0.2\";\n}\n\n_getGSAP() && gsap.registerPlugin(SlowMo);\n\nexport { EasePack as default };"],"names":["_getGSAP","gsap","window","registerPlugin","_boolean","value","defaultValue","indexOf","_initCore","core","_registerEase","registerEase","p","eases","parseEase","createConfig","ease","ratio","y","config","SlowMo","ExpoScaleEase","RoughEase","EasePack","globals","_createSlowMo","linearRatio","power","yoyoMode","pow","Math","min","p1","p3","calcEnd","r","_createExpoScale","start","end","log","p2","exp","EasePoint","time","next","t","v","prev","this","c","gap","_createRoughEase","vars","points","x","bump","invX","obj","pnt","recent","taper","a","cnt","i","randomize","clamp","template","strength","random","sort","b","register","version"],"mappings":";;;;;;;;;6MAYY,SAAXA,WAAiBC,GAA4B,oBAAZC,SAA4BD,EAAOC,OAAOD,OAASA,EAAKE,gBAAkBF,EAChG,SAAXG,EAAYC,EAAOC,iBAAsC,IAAXD,EAAyBC,EAAeD,MAAaA,EAAQ,IAAIE,QAAQ,UAC3G,SAAZC,EAAYC,MACXR,EAAOQ,GAAQT,IACL,CACTU,EAAgBT,EAAKU,iBAOpBC,EALGC,EAAQZ,EAAKa,YAChBC,EAAe,SAAfA,aAAeC,UAAQ,SAAAC,OAClBC,EAAI,GAAMD,EAAQ,EACtBD,EAAKG,OAAS,SAAAP,UAAKI,EAAK,GAAK,EAAIJ,GAAKA,EAAIM,EAAIN,EAAIA,UAG/CA,KAAKC,EACJA,EAAMD,GAAGO,QACbJ,EAAaF,EAAMD,QAMhBA,KAHLF,EAAc,OAAQU,GACtBV,EAAc,YAAaW,GAC3BX,EAAc,QAASY,GACbC,EACH,YAANX,GAAmBX,EAAKQ,KAAKe,QAAQZ,EAAGW,EAASX,KAKpC,SAAhBa,EAAiBC,EAAaC,EAAOC,OAEhCC,GADJH,EAAcI,KAAKC,IAAI,EAAGL,GAAe,KACjB,EAAMC,GAAmB,IAAVA,EAAeA,EAAQ,GAAO,EACpEK,GAAM,EAAIN,GAAe,EACzBO,EAAKD,EAAKN,EACVQ,EAAU9B,EAASwB,UACb,SAAAhB,OACFuB,EAAIvB,GAAK,GAAMA,GAAKiB,SAChBjB,EAAIoB,EAAOE,EAAU,GAAMtB,EAAI,EAAKA,EAAIoB,GAAOpB,EAAKuB,GAAMvB,EAAI,EAAKA,EAAIoB,GAAOpB,EAAIA,EAAIA,EAAIuB,EAAWF,EAAJrB,EAAWsB,EAAiB,IAANtB,EAAU,EAAI,GAAK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10 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
-}(this, function (exports) { 'use strict';
+}(this, (function (exports) { 'use strict';
/*!
- * EaselPlugin 3.0.0
+ * EaselPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -263,7 +263,7 @@
};
var EaselPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "easel",
init: function init(target, value, tween, index, targets) {
if (!_coreInitted) {
@@ -337,4 +337,4 @@
Object.defineProperty(exports, '__esModule', { value: true });
-}));
+})));
diff --git a/dist/EaselPlugin.min.js b/dist/EaselPlugin.min.js
index 81037bf..af5fa5d 100644
--- a/dist/EaselPlugin.min.js
+++ b/dist/EaselPlugin.min.js
@@ -1,11 +1,11 @@
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";
/*!
- * EaselPlugin 3.0.0
- * https://greensock.com
- *
- * @license Copyright 2008-2019, 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, [email protected]
- */function k(){return"undefined"!=typeof window}function l(){return h||k()&&(h=window.gsap)&&h.registerPlugin&&h}function m(){return r||t&&t.createjs||t||{}}function n(e){return console.warn(e)}function o(e){var t=e.getBounds&&e.getBounds();e.cache&&e.cache(t.x,t.y,t.width,t.height),n("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)}function p(e,t,r){(d=d||m().ColorFilter)||n("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var i,l,s,u,a,f,c=e.filters||[],p=c.length;p--;)if(c[p]instanceof d){l=c[p];break}if(l||(l=new d,c.push(l),e.filters=c),s=l.clone(),null!=t.tint)i=h.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,s.redOffset=+i[0]*u,s.greenOffset=+i[1]*u,s.blueOffset=+i[2]*u,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-u;else for(a in t)"exposure"!==a&&"brightness"!==a&&(s[a]=+t[a]);for(null!=t.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(+t.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=t.brightness&&(u=+t.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=0<u?255*u:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(u)),p=8;p--;)l[a=M[p]]!==s[a]&&(f=r.add(l,a,l[a],s[a]))&&(f.op="easel_colorFilter");r._props.push("easel_colorFilter"),e.cacheID||o(e)}function u(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,n=[],l=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[l+4]:0,n[l+i]=e[l]*t[i]+e[l+1]*t[i+5]+e[l+2]*t[i+10]+e[l+3]*t[i+15]+o;l+=5}return n}function z(e,t,r){(b=b||m().ColorMatrixFilter)||n("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var i,l,s,a,f=e.filters||[],c=f.length;-1<--c;)if(f[c]instanceof b){s=f[c];break}for(s||(s=new b(w.slice()),f.push(s),e.filters=f),l=s.matrix,i=w.slice(),null!=t.colorize&&(i=function _colorize(e,t,r){isNaN(r)&&(r=1);var i=h.utils.splitColor(t),n=i[0]/255,l=i[1]/255,o=i[2]/255,s=1-r;return u([s+r*n*x,r*n*_,r*n*v,0,0,r*l*x,s+r*l*_,r*l*v,0,0,r*o*x,r*o*_,s+r*o*v,0,0,0,0,0,1,0],e)}(i,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(i=function _setContrast(e,t){return isNaN(t)?e:u([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(i,Number(t.contrast))),null!=t.hue&&(i=function _setHue(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return u([x+r*(1-x)+i*-x,_+r*-_+i*-_,v+r*-v+i*(1-v),0,0,x+r*-x+.143*i,_+r*(1-_)+.14*i,v+r*-v+-.283*i,0,0,x+r*-x+i*-(1-x),_+r*-_+i*_,v+r*(1-v)+i*v,0,0,0,0,0,1,0,0,0,0,0,1],e)}(i,Number(t.hue))),null!=t.saturation&&(i=function _setSaturation(e,t){if(isNaN(t))return e;var r=1-t,i=r*x,n=r*_,l=r*v;return u([i+t,n,l,0,0,i,n+t,l,0,0,i,n,l+t,0,0,0,0,0,1,0],e)}(i,Number(t.saturation))),c=i.length;-1<--c;)i[c]!==l[c]&&(a=r.add(l,c,l[c],i[c]))&&(a.op="easel_colorMatrixFilter");r._props.push("easel_colorMatrixFilter"),e.cacheID||o(),r._matrix=l}function A(e){h=e||l(),k()&&(t=window),h&&(g=1)}var h,g,t,r,d,b,M="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),w=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],x=.212671,_=.71516,v=.072169,i={version:"3.0.0",name:"easel",init:function init(e,t,r,i,l){var o,s,u,a,f,c,d;for(o in g||(A(),h||n("Please gsap.registerPlugin(EaselPlugin)")),this.target=e,t)if(f=t[o],"colorFilter"===o||"tint"===o||"tintAmount"===o||"exposure"===o||"brightness"===o)u||(p(e,t.colorFilter||t,this),u=!0);else if("saturation"===o||"contrast"===o||"hue"===o||"colorize"===o||"colorizeAmount"===o)a||(z(e,t.colorMatrixFilter||t,this),a=!0);else if("frame"===o){if("string"==typeof f&&"="!==f.charAt(1)&&(c=e.labels))for(d=0;d<c.length;d++)c[d].label===f&&(f=c[d].position);(s=this.add(e,"gotoAndStop",e.currentFrame,f,i,l,Math.round))&&(s.op=o)}else null!=e[o]&&this.add(e,o,"get",f)},render:function render(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:A,registerCreateJS:function(e){r=e}};l()&&h.registerPlugin(i),e.EaselPlugin=i,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})});
+ * EaselPlugin 3.0.2
+ * https://greensock.com
+ *
+ * @license Copyright 2019, 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, [email protected]
+ */
+
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return h||k()&&(h=window.gsap)&&h.registerPlugin&&h}function m(){return r||t&&t.createjs||t||{}}function n(e){return console.warn(e)}function o(e){var t=e.getBounds&&e.getBounds();e.cache&&e.cache(t.x,t.y,t.width,t.height),n("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)}function p(e,t,r){(d=d||m().ColorFilter)||n("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var i,l,s,u,a,f,c=e.filters||[],p=c.length;p--;)if(c[p]instanceof d){l=c[p];break}if(l||(l=new d,c.push(l),e.filters=c),s=l.clone(),null!=t.tint)i=h.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,s.redOffset=i[0]*u,s.greenOffset=i[1]*u,s.blueOffset=i[2]*u,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-u;else for(a in t)"exposure"!==a&&"brightness"!==a&&(s[a]=+t[a]);for(null!=t.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(t.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=t.brightness&&(u=t.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=0<u?255*u:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(u)),p=8;p--;)l[a=M[p]]!==s[a]&&(f=r.add(l,a,l[a],s[a]))&&(f.op="easel_colorFilter");r._props.push("easel_colorFilter"),e.cacheID||o(e)}function u(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,n=[],l=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[l+4]:0,n[l+i]=e[l]*t[i]+e[l+1]*t[i+5]+e[l+2]*t[i+10]+e[l+3]*t[i+15]+o;l+=5}return n}function z(e,t,r){(b=b||m().ColorMatrixFilter)||n("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var i,l,s,a,f=e.filters||[],c=f.length;-1<--c;)if(f[c]instanceof b){s=f[c];break}for(s||(s=new b(w.slice()),f.push(s),e.filters=f),l=s.matrix,i=w.slice(),null!=t.colorize&&(i=function _colorize(e,t,r){isNaN(r)&&(r=1);var i=h.utils.splitColor(t),n=i[0]/255,l=i[1]/255,o=i[2]/255,s=1-r;return u([s+r*n*x,r*n*_,r*n*v,0,0,r*l*x,s+r*l*_,r*l*v,0,0,r*o*x,r*o*_,s+r*o*v,0,0,0,0,0,1,0],e)}(i,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(i=function _setContrast(e,t){return isNaN(t)?e:u([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(i,Number(t.contrast))),null!=t.hue&&(i=function _setHue(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return u([x+r*(1-x)+i*-x,_+r*-_+i*-_,v+r*-v+i*(1-v),0,0,x+r*-x+.143*i,_+r*(1-_)+.14*i,v+r*-v+-.283*i,0,0,x+r*-x+i*-(1-x),_+r*-_+i*_,v+r*(1-v)+i*v,0,0,0,0,0,1,0,0,0,0,0,1],e)}(i,Number(t.hue))),null!=t.saturation&&(i=function _setSaturation(e,t){if(isNaN(t))return e;var r=1-t,i=r*x,n=r*_,l=r*v;return u([i+t,n,l,0,0,i,n+t,l,0,0,i,n,l+t,0,0,0,0,0,1,0],e)}(i,Number(t.saturation))),c=i.length;-1<--c;)i[c]!==l[c]&&(a=r.add(l,c,l[c],i[c]))&&(a.op="easel_colorMatrixFilter");r._props.push("easel_colorMatrixFilter"),e.cacheID||o(),r._matrix=l}function A(e){h=e||l(),k()&&(t=window),h&&(g=1)}var h,g,t,r,d,b,M="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),w=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],x=.212671,_=.71516,v=.072169,i={version:"3.0.2",name:"easel",init:function init(e,t,r,i,l){var o,s,u,a,f,c,d;for(o in g||(A(),h||n("Please gsap.registerPlugin(EaselPlugin)")),this.target=e,t)if(f=t[o],"colorFilter"===o||"tint"===o||"tintAmount"===o||"exposure"===o||"brightness"===o)u||(p(e,t.colorFilter||t,this),u=!0);else if("saturation"===o||"contrast"===o||"hue"===o||"colorize"===o||"colorizeAmount"===o)a||(z(e,t.colorMatrixFilter||t,this),a=!0);else if("frame"===o){if("string"==typeof f&&"="!==f.charAt(1)&&(c=e.labels))for(d=0;d<c.length;d++)c[d].label===f&&(f=c[d].position);(s=this.add(e,"gotoAndStop",e.currentFrame,f,i,l,Math.round))&&(s.op=o)}else null!=e[o]&&this.add(e,o,"get",f)},render:function render(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:A,registerCreateJS:function(e){r=e}};l()&&h.registerPlugin(i),e.EaselPlugin=i,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=EaselPlugin.min.js.map
diff --git a/dist/EaselPlugin.min.js.map b/dist/EaselPlugin.min.js.map
index a64af2e..e8bd91c 100644
--- a/dist/EaselPlugin.min.js.map
+++ b/dist/EaselPlugin.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"EaselPlugin.min.js","sources":["../src/EaselPlugin.js"],"sourcesContent":["/*!\n * EaselPlugin 3.0.0\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _coreInitted, _win, _createJS, _ColorFilter, _ColorMatrixFilter,\n\t_colorProps = \"redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset\".split(\",\"),\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_getCreateJS = () => _createJS || (_win && _win.createjs) || _win || {},\n\t_warn = message => console.warn(message),\n\t_cache = target => {\n\t\tlet bounds = target.getBounds && target.getBounds();\n\t\ttarget.cache && target.cache(bounds.x, bounds.y, bounds.width, bounds.height);\n\t\t_warn(\"EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. \" + target);\n\t},\n\t_parseColorFilter = (target, v, plugin) => {\n\t\tif (!_ColorFilter) {\n\t\t\t_ColorFilter = _getCreateJS().ColorFilter;\n\t\t\tif (!_ColorFilter) {\n\t\t\t\t_warn(\"EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.\");\n\t\t\t}\n\t\t}\n\t\tlet filters = target.filters || [],\n\t\t\ti = filters.length,\n\t\t\tc, s, e, a, p, pt;\n\t\twhile (i--) {\n\t\t\tif (filters[i] instanceof _ColorFilter) {\n\t\t\t\ts = filters[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!s) {\n\t\t\ts = new _ColorFilter();\n\t\t\tfilters.push(s);\n\t\t\ttarget.filters = filters;\n\t\t}\n\t\te = s.clone();\n\t\tif (v.tint != null) {\n\t\t\tc = gsap.utils.splitColor(v.tint);\n\t\t\ta = (v.tintAmount != null) ? +v.tintAmount : 1;\n\t\t\te.redOffset = +c[0] * a;\n\t\t\te.greenOffset = +c[1] * a;\n\t\t\te.blueOffset = +c[2] * a;\n\t\t\te.redMultiplier = e.greenMultiplier = e.blueMultiplier = 1 - a;\n\t\t} else {\n\t\t\tfor (p in v) {\n\t\t\t\tif (p !== \"exposure\") if (p !== \"brightness\") {\n\t\t\t\t\te[p] = +v[p];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (v.exposure != null) {\n\t\t\te.redOffset = e.greenOffset = e.blueOffset = 255 * (+v.exposure - 1);\n\t\t\te.redMultiplier = e.greenMultiplier = e.blueMultiplier = 1;\n\t\t} else if (v.brightness != null) {\n\t\t\ta = +v.brightness - 1;\n\t\t\te.redOffset = e.greenOffset = e.blueOffset = (a > 0) ? a * 255 : 0;\n\t\t\te.redMultiplier = e.greenMultiplier = e.blueMultiplier = 1 - Math.abs(a);\n\t\t}\n\t\ti = 8;\n\t\twhile (i--) {\n\t\t\tp = _colorProps[i];\n\t\t\tif (s[p] !== e[p]) {\n\t\t\t\tpt = plugin.add(s, p, s[p], e[p]);\n\t\t\t\tif (pt) {\n\t\t\t\t\tpt.op = \"easel_colorFilter\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tplugin._props.push(\"easel_colorFilter\");\n\t\tif (!target.cacheID) {\n\t\t\t_cache(target);\n\t\t}\n\t},\n\n\t_idMatrix = [1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],\n\t_lumR = 0.212671,\n\t_lumG = 0.715160,\n\t_lumB = 0.072169,\n\n\t_applyMatrix = (m, m2) => {\n\t\tif (!(m instanceof Array) || !(m2 instanceof Array)) {\n\t\t\treturn m2;\n\t\t}\n\t\tlet temp = [],\n\t\t\ti = 0,\n\t\t\tz = 0,\n\t\t\ty, x;\n\t\tfor (y = 0; y < 4; y++) {\n\t\t\tfor (x = 0; x < 5; x++) {\n\t\t\t\tz = (x === 4) ? m[i + 4] : 0;\n\t\t\t\ttemp[i + x] = m[i] * m2[x] + m[i+1] * m2[x + 5] +\tm[i+2] * m2[x + 10] + m[i+3] * m2[x + 15] +\tz;\n\t\t\t}\n\t\t\ti += 5;\n\t\t}\n\t\treturn temp;\n\t},\n\n\t_setSaturation = (m, n) => {\n\t\tif (isNaN(n)) {\n\t\t\treturn m;\n\t\t}\n\t\tlet inv = 1 - n,\n\t\t\tr = inv * _lumR,\n\t\t\tg = inv * _lumG,\n\t\t\tb = inv * _lumB;\n\t\treturn _applyMatrix([r + n, g, b, 0, 0, r, g + n, b, 0, 0, r, g, b + n, 0, 0, 0, 0, 0, 1, 0], m);\n\t},\n\n\t_colorize = (m, color, amount) => {\n\t\tif (isNaN(amount)) {\n\t\t\tamount = 1;\n\t\t}\n\t\tlet c = gsap.utils.splitColor(color),\n\t\t\tr = c[0] / 255,\n\t\t\tg = c[1] / 255,\n\t\t\tb = c[2] / 255,\n\t\t\tinv = 1 - amount;\n\t\treturn _applyMatrix([inv + amount * r * _lumR, amount * r * _lumG, amount * r * _lumB, 0, 0, amount * g * _lumR, inv + amount * g * _lumG, amount * g * _lumB, 0, 0, amount * b * _lumR, amount * b * _lumG, inv + amount * b * _lumB, 0, 0, 0, 0, 0, 1, 0], m);\n\t},\n\n\t_setHue = (m, n) => {\n\t\tif (isNaN(n)) {\n\t\t\treturn m;\n\t\t}\n\t\tn *= Math.PI / 180;\n\t\tlet c = Math.cos(n),\n\t\t\ts = Math.sin(n);\n\t\treturn _applyMatrix([(_lumR + (c * (1 - _lumR))) + (s * (-_lumR)), (_lumG + (c * (-_lumG))) + (s * (-_lumG)), (_lumB + (c * (-_lumB))) + (s * (1 - _lumB)), 0, 0, (_lumR + (c * (-_lumR))) + (s * 0.143), (_lumG + (c * (1 - _lumG))) + (s * 0.14), (_lumB + (c * (-_lumB))) + (s * -0.283), 0, 0, (_lumR + (c * (-_lumR))) + (s * (-(1 - _lumR))), (_lumG + (c * (-_lumG))) + (s * _lumG), (_lumB + (c * (1 - _lumB))) + (s * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m);\n\t},\n\n\t_setContrast = (m, n) => {\n\t\tif (isNaN(n)) {\n\t\t\treturn m;\n\t\t}\n\t\tn += 0.01;\n\t\treturn _applyMatrix([n,0,0,0,128 * (1 - n), 0,n,0,0,128 * (1 - n), 0,0,n,0,128 * (1 - n), 0,0,0,1,0], m);\n\t},\n\n\t_parseColorMatrixFilter = (target, v, plugin) => {\n\t\tif (!_ColorMatrixFilter) {\n\t\t\t_ColorMatrixFilter = _getCreateJS().ColorMatrixFilter;\n\t\t\tif (!_ColorMatrixFilter) {\n\t\t\t\t_warn(\"EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.\");\n\t\t\t}\n\t\t}\n\t\tlet filters = target.filters || [],\n\t\t\ti = filters.length,\n\t\t\tmatrix, startMatrix, s, pg;\n\t\twhile (--i > -1) {\n\t\t\tif (filters[i] instanceof _ColorMatrixFilter) {\n\t\t\t\ts = filters[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!s) {\n\t\t\ts = new _ColorMatrixFilter(_idMatrix.slice());\n\t\t\tfilters.push(s);\n\t\t\ttarget.filters = filters;\n\t\t}\n\t\tstartMatrix = s.matrix;\n\t\tmatrix = _idMatrix.slice();\n\t\tif (v.colorize != null) {\n\t\t\tmatrix = _colorize(matrix, v.colorize, Number(v.colorizeAmount));\n\t\t}\n\t\tif (v.contrast != null) {\n\t\t\tmatrix = _setContrast(matrix, Number(v.contrast));\n\t\t}\n\t\tif (v.hue != null) {\n\t\t\tmatrix = _setHue(matrix, Number(v.hue));\n\t\t}\n\t\tif (v.saturation != null) {\n\t\t\tmatrix = _setSaturation(matrix, Number(v.saturation));\n\t\t}\n\n\t\ti = matrix.length;\n\t\twhile (--i > -1) {\n\t\t\tif (matrix[i] !== startMatrix[i]) {\n\t\t\t\tpg = plugin.add(startMatrix, i, startMatrix[i], matrix[i]);\n\t\t\t\tif (pg) {\n\t\t\t\t\tpg.op = \"easel_colorMatrixFilter\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tplugin._props.push(\"easel_colorMatrixFilter\");\n\t\tif (!target.cacheID) {\n\t\t\t_cache();\n\t\t}\n\n\t\tplugin._matrix = startMatrix;\n\t},\n\n\t_initCore = core => {\n\t\tgsap = core || _getGSAP();\n\t\tif (_windowExists()) {\n\t\t\t_win = window;\n\t\t}\n\t\tif (gsap) {\n\n\t\t\t_coreInitted = 1;\n\t\t}\n\t};\n\n\nexport const EaselPlugin = {\n\tversion: \"3.0.0\",\n\tname: \"easel\",\n\tinit(target, value, tween, index, targets) {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore();\n\t\t\tif (!gsap) {\n\t\t\t\t_warn(\"Please gsap.registerPlugin(EaselPlugin)\");\n\t\t\t}\n\t\t}\n\t\tthis.target = target;\n\t\tlet p, pt, tint, colorMatrix, end, labels, i;\n\t\tfor (p in value) {\n\n\t\t\tend = value[p];\n\t\t\tif (p === \"colorFilter\" || p === \"tint\" || p === \"tintAmount\" || p === \"exposure\" || p === \"brightness\") {\n\t\t\t\tif (!tint) {\n\t\t\t\t\t_parseColorFilter(target, value.colorFilter || value, this);\n\t\t\t\t\ttint = true;\n\t\t\t\t}\n\n\t\t\t} else if (p === \"saturation\" || p === \"contrast\" || p === \"hue\" || p === \"colorize\" || p === \"colorizeAmount\") {\n\t\t\t\tif (!colorMatrix) {\n\t\t\t\t\t_parseColorMatrixFilter(target, value.colorMatrixFilter || value, this);\n\t\t\t\t\tcolorMatrix = true;\n\t\t\t\t}\n\n\t\t\t} else if (p === \"frame\") {\n\t\t\t\tif (typeof(end) === \"string\" && end.charAt(1) !== \"=\" && (labels = target.labels)) {\n\t\t\t\t\tfor (i = 0; i < labels.length; i++) {\n\t\t\t\t\t\tif (labels[i].label === end) {\n\t\t\t\t\t\t\tend = labels[i].position;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpt = this.add(target, \"gotoAndStop\", target.currentFrame, end, index, targets, Math.round);\n\t\t\t\tif (pt) {\n\t\t\t\t\tpt.op = p;\n\t\t\t\t}\n\n\t\t\t} else if (target[p] != null) {\n\t\t\t\tthis.add(target, p, \"get\", end);\n\t\t\t}\n\n\t\t}\n\t},\n\trender(ratio, data) {\n\t\tlet pt = data._pt;\n\t\twhile (pt) {\n\t\t\tpt.r(ratio, pt.d);\n\t\t\tpt = pt._next;\n\t\t}\n\t\tif (data.target.cacheID) {\n\t\t\tdata.target.updateCache();\n\t\t}\n\t},\n\tregister: _initCore\n};\n\nEaselPlugin.registerCreateJS = createjs => {\n\t_createJS = createjs;\n};\n\n_getGSAP() && gsap.registerPlugin(EaselPlugin);\n\nexport { EaselPlugin as default };"],"names":["_windowExists","window","_getGSAP","gsap","registerPlugin","_getCreateJS","_createJS","_win","createjs","_warn","message","console","warn","_cache","target","bounds","getBounds","cache","x","y","width","height","_parseColorFilter","v","plugin","_ColorFilter","ColorFilter","c","s","e","a","p","pt","filters","i","length","push","clone","tint","utils","splitColor","tintAmount","redOffset","greenOffset","blueOffset","redMultiplier","greenMultiplier","blueMultiplier","exposure","brightness","Math","abs","_colorProps","add","op","_props","cacheID","_applyMatrix","m","m2","Array","temp","z","_parseColorMatrixFilter","_ColorMatrixFilter","ColorMatrixFilter","matrix","startMatrix","pg","_idMatrix","slice","colorize","_colorize","color","amount","isNaN","r","g","b","inv","_lumR","_lumG","_lumB","Number","colorizeAmount","contrast","_setContrast","n","hue","_setHue","PI","cos","sin","saturation","_setSaturation","_matrix","_initCore","core","_coreInitted","split","EaselPlugin","version","name","init","value","tween","index","targets","colorMatrix","end","labels","colorFilter","this","colorMatrixFilter","charAt","label","position","currentFrame","round","render","ratio","data","_pt","d","_next","updateCache","register"],"mappings":";;;;;;;;;GAaiB,SAAhBA,UAAyC,oBAAZC,OAClB,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,EAGXI,iBAA+B,SAAA5F,GAC9BF,EAAYE,IAGbN,KAAcC,EAAKC,eAAegG"}
\ No newline at end of file
+{"version":3,"file":"EaselPlugin.min.js","sources":["../src/EaselPlugin.js"],"sourcesContent":["/*!\n * EaselPlugin 3.0.2\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _coreInitted, _win, _createJS, _ColorFilter, _ColorMatrixFilter,\n\t_colorProps = \"redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset\".split(\",\"),\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_getCreateJS = () => _createJS || (_win && _win.createjs) || _win || {},\n\t_warn = message => console.warn(message),\n\t_cache = target => {\n\t\tlet bounds = target.getBounds && target.getBounds();\n\t\ttarget.cache && target.cache(bounds.x, bounds.y, bounds.width, bounds.height);\n\t\t_warn(\"EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. \" + target);\n\t},\n\t_parseColorFilter = (target, v, plugin) => {\n\t\tif (!_ColorFilter) {\n\t\t\t_ColorFilter = _getCreateJS().ColorFilter;\n\t\t\tif (!_ColorFilter) {\n\t\t\t\t_warn(\"EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.\");\n\t\t\t}\n\t\t}\n\t\tlet filters = target.filters || [],\n\t\t\ti = filters.length,\n\t\t\tc, s, e, a, p, pt;\n\t\twhile (i--) {\n\t\t\tif (filters[i] instanceof _ColorFilter) {\n\t\t\t\ts = filters[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!s) {\n\t\t\ts = new _ColorFilter();\n\t\t\tfilters.push(s);\n\t\t\ttarget.filters = filters;\n\t\t}\n\t\te = s.clone();\n\t\tif (v.tint != null) {\n\t\t\tc = gsap.utils.splitColor(v.tint);\n\t\t\ta = (v.tintAmount != null) ? +v.tintAmount : 1;\n\t\t\te.redOffset = +c[0] * a;\n\t\t\te.greenOffset = +c[1] * a;\n\t\t\te.blueOffset = +c[2] * a;\n\t\t\te.redMultiplier = e.greenMultiplier = e.blueMultiplier = 1 - a;\n\t\t} else {\n\t\t\tfor (p in v) {\n\t\t\t\tif (p !== \"exposure\") if (p !== \"brightness\") {\n\t\t\t\t\te[p] = +v[p];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (v.exposure != null) {\n\t\t\te.redOffset = e.greenOffset = e.blueOffset = 255 * (+v.exposure - 1);\n\t\t\te.redMultiplier = e.greenMultiplier = e.blueMultiplier = 1;\n\t\t} else if (v.brightness != null) {\n\t\t\ta = +v.brightness - 1;\n\t\t\te.redOffset = e.greenOffset = e.blueOffset = (a > 0) ? a * 255 : 0;\n\t\t\te.redMultiplier = e.greenMultiplier = e.blueMultiplier = 1 - Math.abs(a);\n\t\t}\n\t\ti = 8;\n\t\twhile (i--) {\n\t\t\tp = _colorProps[i];\n\t\t\tif (s[p] !== e[p]) {\n\t\t\t\tpt = plugin.add(s, p, s[p], e[p]);\n\t\t\t\tif (pt) {\n\t\t\t\t\tpt.op = \"easel_colorFilter\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tplugin._props.push(\"easel_colorFilter\");\n\t\tif (!target.cacheID) {\n\t\t\t_cache(target);\n\t\t}\n\t},\n\n\t_idMatrix = [1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],\n\t_lumR = 0.212671,\n\t_lumG = 0.715160,\n\t_lumB = 0.072169,\n\n\t_applyMatrix = (m, m2) => {\n\t\tif (!(m instanceof Array) || !(m2 instanceof Array)) {\n\t\t\treturn m2;\n\t\t}\n\t\tlet temp = [],\n\t\t\ti = 0,\n\t\t\tz = 0,\n\t\t\ty, x;\n\t\tfor (y = 0; y < 4; y++) {\n\t\t\tfor (x = 0; x < 5; x++) {\n\t\t\t\tz = (x === 4) ? m[i + 4] : 0;\n\t\t\t\ttemp[i + x] = m[i] * m2[x] + m[i+1] * m2[x + 5] +\tm[i+2] * m2[x + 10] + m[i+3] * m2[x + 15] +\tz;\n\t\t\t}\n\t\t\ti += 5;\n\t\t}\n\t\treturn temp;\n\t},\n\n\t_setSaturation = (m, n) => {\n\t\tif (isNaN(n)) {\n\t\t\treturn m;\n\t\t}\n\t\tlet inv = 1 - n,\n\t\t\tr = inv * _lumR,\n\t\t\tg = inv * _lumG,\n\t\t\tb = inv * _lumB;\n\t\treturn _applyMatrix([r + n, g, b, 0, 0, r, g + n, b, 0, 0, r, g, b + n, 0, 0, 0, 0, 0, 1, 0], m);\n\t},\n\n\t_colorize = (m, color, amount) => {\n\t\tif (isNaN(amount)) {\n\t\t\tamount = 1;\n\t\t}\n\t\tlet c = gsap.utils.splitColor(color),\n\t\t\tr = c[0] / 255,\n\t\t\tg = c[1] / 255,\n\t\t\tb = c[2] / 255,\n\t\t\tinv = 1 - amount;\n\t\treturn _applyMatrix([inv + amount * r * _lumR, amount * r * _lumG, amount * r * _lumB, 0, 0, amount * g * _lumR, inv + amount * g * _lumG, amount * g * _lumB, 0, 0, amount * b * _lumR, amount * b * _lumG, inv + amount * b * _lumB, 0, 0, 0, 0, 0, 1, 0], m);\n\t},\n\n\t_setHue = (m, n) => {\n\t\tif (isNaN(n)) {\n\t\t\treturn m;\n\t\t}\n\t\tn *= Math.PI / 180;\n\t\tlet c = Math.cos(n),\n\t\t\ts = Math.sin(n);\n\t\treturn _applyMatrix([(_lumR + (c * (1 - _lumR))) + (s * (-_lumR)), (_lumG + (c * (-_lumG))) + (s * (-_lumG)), (_lumB + (c * (-_lumB))) + (s * (1 - _lumB)), 0, 0, (_lumR + (c * (-_lumR))) + (s * 0.143), (_lumG + (c * (1 - _lumG))) + (s * 0.14), (_lumB + (c * (-_lumB))) + (s * -0.283), 0, 0, (_lumR + (c * (-_lumR))) + (s * (-(1 - _lumR))), (_lumG + (c * (-_lumG))) + (s * _lumG), (_lumB + (c * (1 - _lumB))) + (s * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m);\n\t},\n\n\t_setContrast = (m, n) => {\n\t\tif (isNaN(n)) {\n\t\t\treturn m;\n\t\t}\n\t\tn += 0.01;\n\t\treturn _applyMatrix([n,0,0,0,128 * (1 - n), 0,n,0,0,128 * (1 - n), 0,0,n,0,128 * (1 - n), 0,0,0,1,0], m);\n\t},\n\n\t_parseColorMatrixFilter = (target, v, plugin) => {\n\t\tif (!_ColorMatrixFilter) {\n\t\t\t_ColorMatrixFilter = _getCreateJS().ColorMatrixFilter;\n\t\t\tif (!_ColorMatrixFilter) {\n\t\t\t\t_warn(\"EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.\");\n\t\t\t}\n\t\t}\n\t\tlet filters = target.filters || [],\n\t\t\ti = filters.length,\n\t\t\tmatrix, startMatrix, s, pg;\n\t\twhile (--i > -1) {\n\t\t\tif (filters[i] instanceof _ColorMatrixFilter) {\n\t\t\t\ts = filters[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!s) {\n\t\t\ts = new _ColorMatrixFilter(_idMatrix.slice());\n\t\t\tfilters.push(s);\n\t\t\ttarget.filters = filters;\n\t\t}\n\t\tstartMatrix = s.matrix;\n\t\tmatrix = _idMatrix.slice();\n\t\tif (v.colorize != null) {\n\t\t\tmatrix = _colorize(matrix, v.colorize, Number(v.colorizeAmount));\n\t\t}\n\t\tif (v.contrast != null) {\n\t\t\tmatrix = _setContrast(matrix, Number(v.contrast));\n\t\t}\n\t\tif (v.hue != null) {\n\t\t\tmatrix = _setHue(matrix, Number(v.hue));\n\t\t}\n\t\tif (v.saturation != null) {\n\t\t\tmatrix = _setSaturation(matrix, Number(v.saturation));\n\t\t}\n\n\t\ti = matrix.length;\n\t\twhile (--i > -1) {\n\t\t\tif (matrix[i] !== startMatrix[i]) {\n\t\t\t\tpg = plugin.add(startMatrix, i, startMatrix[i], matrix[i]);\n\t\t\t\tif (pg) {\n\t\t\t\t\tpg.op = \"easel_colorMatrixFilter\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tplugin._props.push(\"easel_colorMatrixFilter\");\n\t\tif (!target.cacheID) {\n\t\t\t_cache();\n\t\t}\n\n\t\tplugin._matrix = startMatrix;\n\t},\n\n\t_initCore = core => {\n\t\tgsap = core || _getGSAP();\n\t\tif (_windowExists()) {\n\t\t\t_win = window;\n\t\t}\n\t\tif (gsap) {\n\n\t\t\t_coreInitted = 1;\n\t\t}\n\t};\n\n\nexport const EaselPlugin = {\n\tversion: \"3.0.2\",\n\tname: \"easel\",\n\tinit(target, value, tween, index, targets) {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore();\n\t\t\tif (!gsap) {\n\t\t\t\t_warn(\"Please gsap.registerPlugin(EaselPlugin)\");\n\t\t\t}\n\t\t}\n\t\tthis.target = target;\n\t\tlet p, pt, tint, colorMatrix, end, labels, i;\n\t\tfor (p in value) {\n\n\t\t\tend = value[p];\n\t\t\tif (p === \"colorFilter\" || p === \"tint\" || p === \"tintAmount\" || p === \"exposure\" || p === \"brightness\") {\n\t\t\t\tif (!tint) {\n\t\t\t\t\t_parseColorFilter(target, value.colorFilter || value, this);\n\t\t\t\t\ttint = true;\n\t\t\t\t}\n\n\t\t\t} else if (p === \"saturation\" || p === \"contrast\" || p === \"hue\" || p === \"colorize\" || p === \"colorizeAmount\") {\n\t\t\t\tif (!colorMatrix) {\n\t\t\t\t\t_parseColorMatrixFilter(target, value.colorMatrixFilter || value, this);\n\t\t\t\t\tcolorMatrix = true;\n\t\t\t\t}\n\n\t\t\t} else if (p === \"frame\") {\n\t\t\t\tif (typeof(end) === \"string\" && end.charAt(1) !== \"=\" && (labels = target.labels)) {\n\t\t\t\t\tfor (i = 0; i < labels.length; i++) {\n\t\t\t\t\t\tif (labels[i].label === end) {\n\t\t\t\t\t\t\tend = labels[i].position;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpt = this.add(target, \"gotoAndStop\", target.currentFrame, end, index, targets, Math.round);\n\t\t\t\tif (pt) {\n\t\t\t\t\tpt.op = p;\n\t\t\t\t}\n\n\t\t\t} else if (target[p] != null) {\n\t\t\t\tthis.add(target, p, \"get\", end);\n\t\t\t}\n\n\t\t}\n\t},\n\trender(ratio, data) {\n\t\tlet pt = data._pt;\n\t\twhile (pt) {\n\t\t\tpt.r(ratio, pt.d);\n\t\t\tpt = pt._next;\n\t\t}\n\t\tif (data.target.cacheID) {\n\t\t\tdata.target.updateCache();\n\t\t}\n\t},\n\tregister: _initCore\n};\n\nEaselPlugin.registerCreateJS = createjs => {\n\t_createJS = createjs;\n};\n\n_getGSAP() && gsap.registerPlugin(EaselPlugin);\n\nexport { EaselPlugin as default };"],"names":["_windowExists","window","_getGSAP","gsap","registerPlugin","_getCreateJS","_createJS","_win","createjs","_warn","message","console","warn","_cache","target","bounds","getBounds","cache","x","y","width","height","_parseColorFilter","v","plugin","_ColorFilter","ColorFilter","c","s","e","a","p","pt","filters","i","length","push","clone","tint","utils","splitColor","tintAmount","redOffset","greenOffset","blueOffset","redMultiplier","greenMultiplier","blueMultiplier","exposure","brightness","Math","abs","_colorProps","add","op","_props","cacheID","_applyMatrix","m","m2","Array","temp","z","_parseColorMatrixFilter","_ColorMatrixFilter","ColorMatrixFilter","matrix","startMatrix","pg","_idMatrix","slice","colorize","_colorize","color","amount","isNaN","r","g","b","inv","_lumR","_lumG","_lumB","Number","colorizeAmount","contrast","_setContrast","n","hue","_setHue","PI","cos","sin","saturation","_setSaturation","_matrix","_initCore","core","_coreInitted","split","EaselPlugin","version","name","init","value","tween","index","targets","colorMatrix","end","labels","colorFilter","this","colorMatrixFilter","charAt","label","position","currentFrame","round","render","ratio","data","_pt","d","_next","updateCache","register"],"mapp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K3G,OAAO0C,SACfiE,EAAK3G,OAAO+G,eAGdC,SAAU9B,EAGXI,iBAA+B,SAAA5F,GAC9BF,EAAYE,IAGbN,KAAcC,EAAKC,eAAegG"}
\ No newline at end of file
diff --git a/dist/MotionPathPlugin.js b/dist/MotionPathPlugin.js
index 50e48f4..864dfd9 100644
--- a/dist/MotionPathPlugin.js
+++ b/dist/MotionPathPlugin.js
@@ -2,7 +2,7 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
-}(this, function (exports) { 'use strict';
+}(this, (function (exports) { 'use strict';
var _svgPathExp = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,
_numbersExp = /(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,
@@ -464,19 +464,27 @@
y2 = segment[j + 1] - y1;
xd = xd1 = yd = yd1 = 0;
- for (i = 1; i <= resolution; i++) {
- t = inc * i;
- inv = 1 - t;
- xd = xd1 - (xd1 = (t * t * x4 + 3 * inv * (t * x3 + inv * x2)) * t);
- yd = yd1 - (yd1 = (t * t * y4 + 3 * inv * (t * y3 + inv * y2)) * t);
- l = _sqrt(yd * yd + xd * xd);
-
- if (l < min) {
- min = l;
+ if (_abs(x4) < 1e-5 && _abs(y4) < 1e-5 && _abs(x2) + _abs(y2) < 1e-5) {
+ if (segment.length > 8) {
+ segment.splice(j, 6);
+ j -= 6;
+ endIndex -= 6;
}
+ } else {
+ for (i = 1; i <= resolution; i++) {
+ t = inc * i;
+ inv = 1 - t;
+ xd = xd1 - (xd1 = (t * t * x4 + 3 * inv * (t * x3 + inv * x2)) * t);
+ yd = yd1 - (yd1 = (t * t * y4 + 3 * inv * (t * y3 + inv * y2)) * t);
+ l = _sqrt(yd * yd + xd * xd);
+
+ if (l < min) {
+ min = l;
+ }
- length += l;
- samples[samplesIndex++] = length;
+ length += l;
+ samples[samplesIndex++] = length;
+ }
}
x1 += x4;
@@ -1096,6 +1104,17 @@
},
_svgOwner = function _svgOwner(element) {
return element.ownerSVGElement || ((element.tagName + "").toLowerCase() === "svg" ? element : null);
+ },
+ _isFixed = function _isFixed(element) {
+ if (_win.getComputedStyle(element).position === "fixed") {
+ return true;
+ }
+
+ element = element.parentNode;
+
+ if (element && element.nodeType === 1) {
+ return _isFixed(element);
+ }
},
_createSibling = function _createSibling(element, i) {
if (element.parentNode && (_doc || _setDoc(element))) {
@@ -1160,7 +1179,7 @@
x: 0,
y: 0
} : element.getBBox();
- m = element.transform.baseVal;
+ m = element.transform ? element.transform.baseVal : [];
if (m.length) {
m = m.consolidate().matrix;
@@ -1185,6 +1204,7 @@
m = _win.getComputedStyle(element);
container.style[_transformProp] = m[_transformProp];
container.style[_transformOriginProp] = m[_transformOriginProp];
+ container.style.position = m.position === "fixed" ? "fixed" : "absolute";
element.parentNode.appendChild(container);
}
@@ -1289,7 +1309,7 @@
return Matrix2D;
}();
function getGlobalMatrix(element, inverse) {
- if (!element.parentNode) {
+ if (!element || !element.parentNode) {
return new Matrix2D();
}
@@ -1300,14 +1320,15 @@
b2 = temps[1].getBoundingClientRect(),
b3 = temps[2].getBoundingClientRect(),
parent = container.parentNode,
- m = new Matrix2D((b2.left - b1.left) / 100, (b2.top - b1.top) / 100, (b3.left - b1.left) / 100, (b3.top - b1.top) / 100, b1.left + _getDocScrollLeft(), b1.top + _getDocScrollTop());
+ isFixed = _isFixed(element),
+ m = new Matrix2D((b2.left - b1.left) / 100, (b2.top - b1.top) / 100, (b3.left - b1.left) / 100, (b3.top - b1.top) / 100, b1.left + (isFixed ? 0 : _getDocScrollLeft()), b1.top + (isFixed ? 0 : _getDocScrollTop()));
parent.removeChild(container);
return inverse ? m.inverse() : m;
}
/*!
- * MotionPathPlugin 3.0.0
+ * MotionPathPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -1453,7 +1474,7 @@
};
var MotionPathPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "motionPath",
register: function register(core, Plugin, propTween) {
gsap = core;
@@ -1563,6 +1584,8 @@
});
},
getGlobalMatrix: getGlobalMatrix,
+ getPositionOnPath: getPositionOnPath,
+ cacheRawPathMeasurements: cacheRawPathMeasurements,
arrayToRawPath: function arrayToRawPath(value, vars) {
vars = vars || {};
@@ -1582,4 +1605,4 @@
Object.defineProperty(exports, '__esModule', { value: true });
-}));
+})));
diff --git a/dist/MotionPathPlugin.min.js b/dist/MotionPathPlugin.min.js
index 5a2f6ba..490caf3 100644
--- a/dist/MotionPathPlugin.min.js
+++ b/dist/MotionPathPlugin.min.js
@@ -1,11 +1,11 @@
-!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 p(t){return"string"==typeof t}function x(t,e,n,r){var a=t[e],o=1===r?6:subdivideSegment(a,n,r);if(o&&o+n+2<a.length)return t.splice(e,0,a.slice(0,n+o+2)),a.splice(0,n+o),1}function A(t,e){var n=t.length,r=t[n-1]||[],a=r.length;e[0]===r[a-2]&&e[1]===r[a-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e}var y=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,R=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,b=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,F=Math.PI/180,s=180/Math.PI,U=Math.sin,Z=Math.cos,H=Math.abs,Q=Math.sqrt,L=Math.atan2,C=1e8,l=function _isNumber(t){return"number"==typeof t},_={},N={},e=1e5,d=function _wrapProgress(t){return Math.round((t+C)%1*e)/e||(t<0?0:1)},O=function _round(t){return~~(t*e+(t<0?-.5:.5))/e},D=function _copyMetaData(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):e.totalPoints=t.totalPoints,e};function getRawPath(t){var e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?p(t)?stringToRawPath(t):l(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var z={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,a,o,i,s,l,h,u,g,f,c,p,d,m,v,P,w,x,y,b,T,M=t.tagName.toLowerCase(),L=.552284749831;return"path"!==M&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(t.attributes),o=a.length;for(e=","+e+",";-1<--o;)n=a[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,a[o].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),T=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},a=n.length;-1<--a;)r[n[a]]=+t.getAttribute(n[a])||0;return r}(t,z[M]),"rect"===M?(o=T.rx,i=T.ry,r=T.x,a=T.y,g=T.width-2*o,f=T.height-2*i,n=o||i?"M"+(v=(d=(p=r+o)+g)+o)+","+(w=a+i)+" V"+(x=w+f)+" C"+[v,y=x+i*L,m=d+o*L,b=x+i,d,b,d-(d-p)/3,b,p+(d-p)/3,b,p,b,c=r+o*(1-L),b,r,y,r,x,r,x-(x-w)/3,r,w+(x-w)/3,r,w,r,P=a+i*(1-L),c,a,p,a,p+(d-p)/3,a,d-(d-p)/3,a,d,a,m,a,v,P,v,w].join(",")+"z":"M"+(r+g)+","+a+" v"+f+" h"+-g+" v"+-f+" h"+g+"z"):"circle"===M||"ellipse"===M?(h="circle"===M?(o=i=T.r)*L:(o=T.rx,(i=T.ry)*L),n="M"+((r=T.cx)+o)+","+(a=T.cy)+" C"+[r+o,a+h,r+(l=o*L),a+i,r,a+i,r-l,a+i,r-o,a+h,r-o,a,r-o,a-h,r-l,a-i,r,a-i,r+l,a-i,r+o,a-h,r+o,a].join(",")+"z"):"line"===M?n="M"+T.x1+","+T.y1+" L"+T.x2+","+T.y2:"polyline"!==M&&"polygon"!==M||(n="M"+(r=(u=(t.getAttribute("points")+"").match(R)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===M&&(n+=","+r+","+a+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function getRotationAtBezierT(t,e,n){var r,a=t[e],o=t[e+2],i=t[e+4];return a+=(o-a)*n,a+=((o+=(i-o)*n)-a)*n,r=o+(i+(t[e+6]-i)*n-o)*n-a,a=t[e+1],a+=((o=t[e+3])-a)*n,a+=((o+=((i=t[e+5])-o)*n)-a)*n,O(L(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){!function _isUndefined(t){return void 0===t}(n)||(n=1);var r=n<(e=e||0),a=Math.max(0,~~(H(n-e)-1e-8));if(r&&(r=n,n=e,e=r,r=1,a-=a?1:0),e<0||n<0){var o=1+~~Math.min(e,n);e+=o,n+=o}var i,s,l,h,u,g,f,c=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=D(t[n],t[n].slice(0));return D(t,e)}(t.totalLength?t:cacheRawPathMeasurements(t)),p=1<n,d=getProgressData(c,e,_),m=getProgressData(c,n,N),v=m.segment,P=d.segment,w=m.segIndex,y=d.segIndex,b=m.i,T=d.i,M=y===w,L=b===T&&M,R=M&&b<T||L&&d.t>m.t;if(p||a){if(x(c,y,T,d.t)&&(i=1,y++,L?R?m.t/=d.t:(m.t=(m.t-d.t)/(1-d.t),w++,b=0):y<=w+1&&!R&&(w++,M&&(b-=T))),m.t?x(c,w,b,m.t)&&(R&&i&&y++,r&&w++):(w--,r&&y--),h=[],g=1+(u=c.length)*a,f=y,r)for(g+=(u-(w=(w||u)-1)+y)%u,l=0;l<g;l++)A(h,c[f]),f=(f||u)-1;else for(g+=(u-y+w)%u,l=0;l<g;l++)A(h,c[f++%u]);c=h}else if(s=1===m.t?6:subdivideSegment(v,b,m.t),e!==n)for(i=subdivideSegment(P,T,L?d.t/m.t:d.t),M&&(s+=i),v.splice(b+s+2),i&&P.splice(0,T+i),l=c.length;l--;)(l<y||w<l)&&c.splice(l,1);else v.angle=getRotationAtBezierT(v,b+s,0),d=v[b+=s],m=v[b+1],v.length=v.totalLength=0,v.totalPoints=c.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return r&&function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(c,p||a),c.totalLength=0,c}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,g,f,c,p,d,m,v,P,w,x=~~t.resolution||12,y=1/x,b=n?e+6*n+1:t.length,T=t[e],M=t[e+1],L=e?e/6*x:0,R=t.samples,S=t.lookup,_=(e?t.minLength:C)||C,N=R[L+n*x-1],A=e?R[L-1]:0;for(R.length=S.length=0,a=e+2;a<b;a+=6){for(o=t[a+4]-T,i=t[a+2]-T,s=t[a]-T,u=t[a+5]-M,g=t[a+3]-M,f=t[a+1]-M,l=h=c=p=0,r=1;r<=x;r++)l=h-(h=((m=y*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),c=p-(p=(m*m*u+3*d*(m*g+d*f))*m),(P=Q(c*c+l*l))<_&&(_=P),A+=P,R[L++]=A;T+=o,M+=u}if(N)for(N-=A;L<R.length;L++)R[L]+=N;if(R.length&&_)for(t.totalLength=w=R[R.length-1]||0,t.minLength=_,P=v=0,r=0;r<w;r+=_)S[P++]=R[v]<r?++v:v;else t.totalLength=R[0]=0;return e?A-R[e/2-1]:A}function cacheRawPathMeasurements(t,e){var n,r,a;for(a=n=r=0;a<t.length;a++)t[a].resolution=~~e||12,r+=t[a].length,n+=measureSegment(t[a]);return t.totalPoints=r,t.totalLength=n,t}function subdivideSegment(t,e,n){if(n<=0||1<=n)return 0;var r=t[e],a=t[e+1],o=t[e+2],i=t[e+3],s=t[e+4],l=t[e+5],h=r+(o-r)*n,u=o+(s-o)*n,g=a+(i-a)*n,f=i+(l-i)*n,c=h+(u-h)*n,p=g+(f-g)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,f+=(m-f)*n,t.splice(e+2,4,O(h),O(g),O(c),O(p),O(c+(u-c)*n),O(p+(f-p)*n),O(u),O(f),O(d),O(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,e,n){n=n||{},t.totalLength||cacheRawPathMeasurements(t),(e<0||1<e)&&(e=d(e));var r,a,o,i,s,l,h=0,u=t[0];if(1<t.length){for(o=t.totalLength*e,s=l=0;(s+=t[l++].totalLength)<o;)h=l;e=(o-(i=s-(u=t[h]).totalLength))/(s-i)||0}return r=u.samples,a=u.resolution,o=u.totalLength*e,i=(l=u.lookup[~~(o/u.minLength)]||0)?r[l-1]:0,(s=r[l])<o&&(i=s,s=r[++l]),n.path=t,n.segment=u,n.segIndex=h,n.i=6*~~(l/a),n.t=1/a*((o-i)/(s-i)+l%a),n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,g,f,c=t[0],p=r||{};if((e<0||1<e)&&(e=d(e)),1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)c=t[h];e=(i-(s=l-c.totalLength))/(l-s)||0}return a=c.samples,o=c.resolution,i=c.totalLength*e,s=(h=c.lookup[~~(i/c.minLength)]||0)?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),f=1-(u=1/o*((i-s)/(l-s)+h%o)||0),g=c[h=6*~~(h/o)],p.x=O((u*u*(c[h+6]-g)+3*f*(u*(c[h+4]-g)+f*(c[h+2]-g)))*u+g),p.y=O((u*u*(c[h+7]-(g=c[h+1]))+3*f*(u*(c[h+5]-g)+f*(c[h+3]-g)))*u+g),n&&(p.angle=c.totalLength?getRotationAtBezierT(c,h,1<=u?1-1e-9:u||1e-9):c.angle||0),p}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,g,f=t.length;-1<--f;)for(l=(s=t[f]).length,h=0;h<l;h+=2)u=s[h],g=s[h+1],s[h]=u*e+g*r+o,s[h+1]=u*n+g*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=H(n),r=H(r);var h=a%360*F,u=Z(h),g=U(h),f=Math.PI,c=2*f,p=(t-s)/2,d=(e-l)/2,m=u*p+g*d,v=-g*p+u*d,P=m*m,w=v*v,x=P/(n*n)+w/(r*r);1<x&&(n=Q(x)*n,r=Q(x)*r);var y=n*n,b=r*r,T=(y*b-y*w-b*P)/(y*w+b*P);T<0&&(T=0);var M=(o===i?-1:1)*Q(T),L=n*v/r*M,R=-r*m/n*M,S=u*L-g*R+(t+s)/2,_=g*L+u*R+(e+l)/2,N=(m-L)/n,A=(v-R)/r,C=(-m-L)/n,O=(-v-R)/r,D=N*N+A*A,z=(A<0?-1:1)*Math.acos(N/Q(D)),B=(N*O-A*C<0?-1:1)*Math.acos((N*C+A*O)/Q(D*(C*C+O*O)));isNaN(B)&&(B=f),!i&&0<B?B-=c:i&&B<0&&(B+=c),z%=c,B%=c;var G,V=Math.ceil(H(B)/(c/4)),I=[],k=B/V,E=4/3*U(k/2)/(1+Z(k/2)),j=u*n,X=g*n,Y=g*-r,q=u*r;for(G=0;G<V;G++)m=Z(a=z+G*k),v=U(a),N=Z(a+=k),A=U(a),I.push(m-E*v,v+E*m,N+E*A,A-E*N,N,A);for(G=0;G<I.length;G+=2)m=I[G],v=I[G+1],I[G]=m*j+v*Y+S,I[G+1]=m*X+v*q+_;return I[G-2]=s,I[G-1]=l,I}}function stringToRawPath(t){function ff(t,e,n,r){u=(n-t)/3,g=(r-e)/3,s.push(t+u,e+g,n-u,r-g,n,r)}var e,n,r,a,o,i,s,l,h,u,g,f,c,p=(t+"").replace(b,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(y)||[],d=[],m=0,v=0,P=p.length,w=0,x="ERROR: malformed path: "+t;if(!t||!isNaN(p[0])||isNaN(p[1]))return console.log(x),d;for(e=0;e<P;e++)if(c=o,isNaN(p[e])?i=(o=p[e].toUpperCase())!==p[e]:e--,r=+p[e+1],a=+p[e+2],i&&(r+=m,a+=v),e||(l=r,h=a),"M"===o)s&&(s.length<8?d.length-=1:w+=s.length),m=l=r,v=h=a,s=[r,a],d.push(s),e+=2,o="L";else if("C"===o)i||(m=v=0),(s=s||[0,0]).push(r,a,m+1*p[e+3],v+1*p[e+4],m+=1*p[e+5],v+=1*p[e+6]),e+=6;else if("S"===o)u=m,g=v,"C"!==c&&"S"!==c||(u+=m-s[s.length-4],g+=v-s[s.length-3]),i||(m=v=0),s.push(u,g,r,a,m+=1*p[e+3],v+=1*p[e+4]),e+=4;else if("Q"===o)u=m+2/3*(r-m),g=v+2/3*(a-v),i||(m=v=0),m+=1*p[e+3],v+=1*p[e+4],s.push(u,g,m+2/3*(r-m),v+2/3*(a-v),m,v),e+=4;else if("T"===o)u=m-s[s.length-4],g=v-s[s.length-3],s.push(m+u,v+g,r+2/3*(m+1.5*u-r),a+2/3*(v+1.5*g-a),m=r,v=a),e+=2;else if("H"===o)ff(m,v,m=r,v),e+=1;else if("V"===o)ff(m,v,m,v=r+(i?v-m:0)),e+=1;else if("L"===o||"Z"===o)"Z"===o&&(r=l,a=h,s.closed=!0),("L"===o||.5<H(m-r)||.5<H(v-a))&&(ff(m,v,r,a),"L"===o&&(e+=2)),m=r,v=a;else if("A"===o){if(f=arcToSegment(m,v,+p[e+1],+p[e+2],+p[e+3],+p[e+4],+p[e+5],(i?m:0)+1*p[e+6],(i?v:0)+1*p[e+7]))for(n=0;n<f.length;n++)s.push(f[n]);m=s[s.length-2],v=s[s.length-1],e+=7}else console.log(x);return(e=s.length)<6?(d.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),d.totalPoints=w+e,d}function flatPointsToSegment(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,a=[n,r],o=2;o<t.length;o+=2)a.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return a}function pointsToSegment(t,e,n){var r,a,o,i,s,l,h,u,g,f,c,p,d,m,v=t.length-2,P=+t[0],w=+t[1],x=+t[2],y=+t[3],b=[P,w,P,w],T=x-P,M=y-w;for(isNaN(n)&&(n=Math.PI/10),e=e||0===e?+e:1,s=2;s<v;s+=2)r=P,a=w,P=x,w=y,p=(l=T)*l+(u=M)*u,d=(T=(x=+t[s+2])-P)*T+(M=(y=+t[s+3])-w)*M,m=(h=x-r)*h+(g=y-a)*g,c=(o=Math.acos((p+d-m)/Q(4*p*d)))/Math.PI*e,f=Q(p)*c,c*=Q(d),P===r&&w===a||(n<o?(i=L(g,h),b.push(O(P-Z(i)*f),O(w-U(i)*f),O(P),O(w),O(P+Z(i)*c),O(w+U(i)*c))):(i=L(u,l),b.push(O(P-Z(i)*f),O(w-U(i)*f)),i=L(M,T),b.push(O(P),O(w),O(P+Z(i)*c),O(w+U(i)*c))));return b.push(O(x),O(y),O(x),O(y)),b}function rawPathToString(t){l(t[0])&&(t=[t]);var e,n,r,a,o="",i=t.length;for(n=0;n<i;n++){for(a=t[n],o+="M"+O(a[0])+","+O(a[1])+" C",e=a.length,r=2;r<e;r++)o+=O(a[r++])+","+O(a[r++])+" "+O(a[r++])+","+O(a[r++])+" "+O(a[r++])+","+O(a[r])+" ";a.closed&&(o+="z")}return o}function S(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function T(t,e){if(t.parentNode&&(h||function _setDoc(t){var e=t.ownerDocument||t;!(P in t.style)&&"msTransform"in t.style&&(w=(P="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););return u=window,v=new G,e&&(g=(h=e).documentElement,f=e.body),e}(t))){var n=S(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?e?"rect":"g":"div",o=2!==e?0:100,i=3===e?100:0,s="position:absolute;display:block;",l=h.createElementNS?h.createElementNS(r.replace(/^https/,"http"),a):h.createElement(a);return e&&(n?(m=m||T(t),l.setAttribute("width",1),l.setAttribute("height",1),l.setAttribute("transform","translate("+o+","+i+")"),m.appendChild(l)):(c||((c=T(t)).style.cssText=s),l.style.cssText=s+"width:1px;height:1px;top:"+i+"px;left:"+o+"px",c.appendChild(l))),l}throw"Need document and parent."}function V(t,e,n,r,a,o,i){return t.a=e,t.b=n,t.c=r,t.d=a,t.e=o,t.f=i,t}var h,u,g,f,c,m,v,n,P="transform",w=P+"Origin",M=[],B=[],G=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,r=this.d,a=this.e,o=this.f,i=t*r-e*n;return V(this,r/i,-e/i,-n/i,t/i,(n*o-r*a)/i,-(t*o-e*a)/i)},n.multiply=function multiply(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f,s=t.a,l=t.c,h=t.b,u=t.d,g=t.e,f=t.f;return V(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+g*e+f*r,i+g*n+f*a)},n.equals=function equals(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f;return e===t.a&&n===t.b&&r===t.c&&a===t.d&&o===t.e&&i===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,h=this.f;return e.x=n*a+r*i+l,e.y=n*o+r*s+h,e},Matrix2D);function Matrix2D(t,e,n,r,a,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===o&&(o=0),V(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e){if(!t.parentNode)return new G;var n=S(t)?M:B,r=function _placeSiblings(t){var e,n,r,a,o,i=S(t),s=t===i,l=i?M:B;return t===u?t:(l.length||l.push(T(t,1),T(t,2),T(t,3)),e=i?m:c,i?(r=s?{x:0,y:0}:t.getBBox(),(n=t.transform.baseVal).length?(a=(n=n.consolidate().matrix).a*r.x+n.c*r.y,o=n.b*r.x+n.d*r.y):(n=v,"g"===t.tagName.toLowerCase()?a=o=0:(a=r.x,o=r.y)),e.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+o)+")"),(s?i:t.parentNode).appendChild(e)):(e.style.top=t.offsetTop+"px",e.style.left=t.offsetLeft+"px",n=u.getComputedStyle(t),e.style[P]=n[P],e.style[w]=n[w],t.parentNode.appendChild(e)),e)}(t),a=n[0].getBoundingClientRect(),o=n[1].getBoundingClientRect(),i=n[2].getBoundingClientRect(),s=r.parentNode,l=new G((o.left-a.left)/100,(o.top-a.top)/100,(i.left-a.left)/100,(i.top-a.top)/100,a.left+function _getDocScrollLeft(){return u.pageXOffset||h.scrollLeft||g.scrollLeft||f.scrollLeft||0}(),a.top+function _getDocScrollTop(){return u.pageYOffset||h.scrollTop||g.scrollTop||f.scrollTop||0}());return s.removeChild(r),e?l.inverse():l}
/*!
- * MotionPathPlugin 3.0.0
- * https://greensock.com
- *
- * @license Copyright 2008-2019, 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, [email protected]
- */function da(t,e,n,r){for(var a=e.length,o=r,i=0;i<a;i++)t[o]=parseFloat(e[i][n]),o+=2;return t}function ea(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function fa(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r}function ga(t,e,n,r,a,o,i){return e="cubic"===i.type?[e]:(e.unshift(ea(n,r,i.unitX),a?ea(n,a,i.unitY):0),i.relative&&fa(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(q(e,n,i)),$(t,n,r,e,"x",i.unitX),a&&$(t,n,a,e,"y",i.unitY),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function ha(t){return t}var I,k,E,j,X=["x","translateX","left","marginLeft"],Y=["y","translateY","top","marginTop"],o=Math.PI/180,q=function _align(t,e,n){var r,a,o,i,s,l,h,u,g,f,c=n.align,p=n.matrix,d=n.offsetX,m=n.offsetY;return t&&t.length?(c&&("self"===c||(s=j(c)[0]||e)===e?transformRawPath(t,1,0,0,1,r=ea(e,"x")-t[0][0],a=ea(e,"y")-t[0][1]):(o=I.to(e,{xPercent:0,yPercent:0,x:0,y:0}).progress(1),i=getGlobalMatrix(e),o.render(-1).kill(),a=s.getTotalLength&&"path"===s.tagName.toLowerCase()?(l=getRawPath(s),h=getGlobalMatrix(s.parentNode),r=l[0][0],l[0][1]):(h=getGlobalMatrix(s),r=0),g=h.a*r+h.c*a+h.e-i.e,f=h.b*r+h.d*a+h.f-i.f,r=(u=getGlobalMatrix(e.parentNode,!0)).a*g+u.c*f,a=u.b*g+u.d*f,g=t[0][0],f=t[0][1],h.multiply(u),r-=h.a*g+h.c*f,a-=h.b*g+h.d*f,transformRawPath(t,h.a,h.b,h.c,h.d,r,a))),p?transformRawPath(t,p.a,p.b,p.c,p.d,p.e,p.f):(d||m)&&transformRawPath(t,1,0,0,1,d||0,m||0),t):getRawPath("M0,0L0,0")},$=function _addDimensionalPropTween(t,e,n,r,a,o){var i=e._gsap,s=t._pt=new k(t._pt,e,n,0,0,ha,0,i.set(e,n,t));s.u=E(i.get(e,n,o))||0,s.path=r,s.pp=a,t._props.push(n)},a={version:"3.0.0",name:"motionPath",register:function register(t,e,n){E=(I=t).utils.getUnit,j=I.utils.toArray,k=n},init:function init(t,e){if(!I)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,a,o,i=[],s=e.path,l=s[0],h=e.autoRotate,u=function _sliceModifier(e,n){return function(t){return e||1!==n?sliceRawPath(t,e,n):t}}(e.start,"end"in e?e.end:1);if(this.rawPaths=i,this.target=t,(this.rotate=h||0===h)&&(this.rOffset=parseFloat(h)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=E(t._gsap.get(t,this.rProp))||0),!Array.isArray(s)||"closed"in s||"number"==typeof l)cacheRawPathMeasurements(n=u(q(getRawPath(e.path),t,e)),e.resolution),i.push(n),$(this,t,e.x||"x",n,"x",e.unitX||"px"),$(this,t,e.y||"y",n,"y",e.unitY||"px");else{for(r in l)~X.indexOf(r)?a=r:~Y.indexOf(r)&&(o=r);for(r in a&&o?i.push(ga(this,da(da([],s,a,0),s,o,1),t,e.x||a,e.y||o,u,e)):a=o=0,l)r!==a&&r!==o&&i.push(ga(this,da([],s,r,0),t,r,0,u,e))}},render:function render(t,e){var n=e.rawPaths,r=n.length,a=e._pt;for(1<t?t=1:t<0&&(t=0);r--;)getPositionOnPath(n[r],t,!r&&e.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,t),a=a._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?o:1)+e.rOffset+e.ru,e,t)},getLength:function getLength(t){return cacheRawPathMeasurements(getRawPath(t)).totalLength},sliceRawPath:sliceRawPath,getRawPath:getRawPath,pointsToSegment:pointsToSegment,stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,transformRawPath:transformRawPath,convertToPath:function convertToPath$1(t,e){return j(t).map(function(t){return convertToPath(t,!1!==e)})},getGlobalMatrix:getGlobalMatrix,arrayToRawPath:function arrayToRawPath(t,e){var n=da(da([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&fa(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return I||"undefined"!=typeof window&&(I=window.gsap)&&I.registerPlugin&&I}()||I.registerPlugin(a),t.MotionPathPlugin=a,t.default=a,Object.defineProperty(t,"__esModule",{value:!0})});
+ * MotionPathPlugin 3.0.2
+ * https://greensock.com
+ *
+ * @license Copyright 2019, 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, [email protected]
+ */
+
+!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 p(t){return"string"==typeof t}function x(t,e,n,r){var a=t[e],o=1===r?6:subdivideSegment(a,n,r);if(o&&o+n+2<a.length)return t.splice(e,0,a.slice(0,n+o+2)),a.splice(0,n+o),1}function A(t,e){var n=t.length,r=t[n-1]||[],a=r.length;e[0]===r[a-2]&&e[1]===r[a-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e}var y=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,T=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,b=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,q=Math.PI/180,s=180/Math.PI,F=Math.sin,Z=Math.cos,H=Math.abs,Q=Math.sqrt,L=Math.atan2,C=1e8,l=function _isNumber(t){return"number"==typeof t},_={},N={},e=1e5,d=function _wrapProgress(t){return Math.round((t+C)%1*e)/e||(t<0?0:1)},O=function _round(t){return~~(t*e+(t<0?-.5:.5))/e},D=function _copyMetaData(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):e.totalPoints=t.totalPoints,e};function getRawPath(t){var e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?p(t)?stringToRawPath(t):l(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var z={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,a,o,i,s,l,h,u,g,f,c,p,d,m,P,v,w,x,y,b,M,R=t.tagName.toLowerCase(),L=.552284749831;return"path"!==R&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(t.attributes),o=a.length;for(e=","+e+",";-1<--o;)n=a[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,a[o].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},a=n.length;-1<--a;)r[n[a]]=+t.getAttribute(n[a])||0;return r}(t,z[R]),"rect"===R?(o=M.rx,i=M.ry,r=M.x,a=M.y,g=M.width-2*o,f=M.height-2*i,n=o||i?"M"+(P=(d=(p=r+o)+g)+o)+","+(w=a+i)+" V"+(x=w+f)+" C"+[P,y=x+i*L,m=d+o*L,b=x+i,d,b,d-(d-p)/3,b,p+(d-p)/3,b,p,b,c=r+o*(1-L),b,r,y,r,x,r,x-(x-w)/3,r,w+(x-w)/3,r,w,r,v=a+i*(1-L),c,a,p,a,p+(d-p)/3,a,d-(d-p)/3,a,d,a,m,a,P,v,P,w].join(",")+"z":"M"+(r+g)+","+a+" v"+f+" h"+-g+" v"+-f+" h"+g+"z"):"circle"===R||"ellipse"===R?(h="circle"===R?(o=i=M.r)*L:(o=M.rx,(i=M.ry)*L),n="M"+((r=M.cx)+o)+","+(a=M.cy)+" C"+[r+o,a+h,r+(l=o*L),a+i,r,a+i,r-l,a+i,r-o,a+h,r-o,a,r-o,a-h,r-l,a-i,r,a-i,r+l,a-i,r+o,a-h,r+o,a].join(",")+"z"):"line"===R?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==R&&"polygon"!==R||(n="M"+(r=(u=(t.getAttribute("points")+"").match(T)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===R&&(n+=","+r+","+a+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function getRotationAtBezierT(t,e,n){var r,a=t[e],o=t[e+2],i=t[e+4];return a+=(o-a)*n,a+=((o+=(i-o)*n)-a)*n,r=o+(i+(t[e+6]-i)*n-o)*n-a,a=t[e+1],a+=((o=t[e+3])-a)*n,a+=((o+=((i=t[e+5])-o)*n)-a)*n,O(L(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){!function _isUndefined(t){return void 0===t}(n)||(n=1);var r=n<(e=e||0),a=Math.max(0,~~(H(n-e)-1e-8));if(r&&(r=n,n=e,e=r,r=1,a-=a?1:0),e<0||n<0){var o=1+~~Math.min(e,n);e+=o,n+=o}var i,s,l,h,u,g,f,c=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=D(t[n],t[n].slice(0));return D(t,e)}(t.totalLength?t:cacheRawPathMeasurements(t)),p=1<n,d=getProgressData(c,e,_),m=getProgressData(c,n,N),P=m.segment,v=d.segment,w=m.segIndex,y=d.segIndex,b=m.i,M=d.i,R=y===w,L=b===M&&R,T=R&&b<M||L&&d.t>m.t;if(p||a){if(x(c,y,M,d.t)&&(i=1,y++,L?T?m.t/=d.t:(m.t=(m.t-d.t)/(1-d.t),w++,b=0):y<=w+1&&!T&&(w++,R&&(b-=M))),m.t?x(c,w,b,m.t)&&(T&&i&&y++,r&&w++):(w--,r&&y--),h=[],g=1+(u=c.length)*a,f=y,r)for(g+=(u-(w=(w||u)-1)+y)%u,l=0;l<g;l++)A(h,c[f]),f=(f||u)-1;else for(g+=(u-y+w)%u,l=0;l<g;l++)A(h,c[f++%u]);c=h}else if(s=1===m.t?6:subdivideSegment(P,b,m.t),e!==n)for(i=subdivideSegment(v,M,L?d.t/m.t:d.t),R&&(s+=i),P.splice(b+s+2),i&&v.splice(0,M+i),l=c.length;l--;)(l<y||w<l)&&c.splice(l,1);else P.angle=getRotationAtBezierT(P,b+s,0),d=P[b+=s],m=P[b+1],P.length=P.totalLength=0,P.totalPoints=c.totalPoints=8,P.push(d,m,d,m,d,m,d,m);return r&&function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(c,p||a),c.totalLength=0,c}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,g,f,c,p,d,m,P,v,w,x=~~t.resolution||12,y=1/x,b=n?e+6*n+1:t.length,M=t[e],R=t[e+1],L=e?e/6*x:0,T=t.samples,S=t.lookup,_=(e?t.minLength:C)||C,N=T[L+n*x-1],A=e?T[L-1]:0;for(T.length=S.length=0,a=e+2;a<b;a+=6){if(o=t[a+4]-M,i=t[a+2]-M,s=t[a]-M,u=t[a+5]-R,g=t[a+3]-R,f=t[a+1]-R,l=h=c=p=0,H(o)<1e-5&&H(u)<1e-5&&H(s)+H(f)<1e-5)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=x;r++)l=h-(h=((m=y*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),c=p-(p=(m*m*u+3*d*(m*g+d*f))*m),(v=Q(c*c+l*l))<_&&(_=v),A+=v,T[L++]=A;M+=o,R+=u}if(N)for(N-=A;L<T.length;L++)T[L]+=N;if(T.length&&_)for(t.totalLength=w=T[T.length-1]||0,t.minLength=_,v=P=0,r=0;r<w;r+=_)S[v++]=T[P]<r?++P:P;else t.totalLength=T[0]=0;return e?A-T[e/2-1]:A}function cacheRawPathMeasurements(t,e){var n,r,a;for(a=n=r=0;a<t.length;a++)t[a].resolution=~~e||12,r+=t[a].length,n+=measureSegment(t[a]);return t.totalPoints=r,t.totalLength=n,t}function subdivideSegment(t,e,n){if(n<=0||1<=n)return 0;var r=t[e],a=t[e+1],o=t[e+2],i=t[e+3],s=t[e+4],l=t[e+5],h=r+(o-r)*n,u=o+(s-o)*n,g=a+(i-a)*n,f=i+(l-i)*n,c=h+(u-h)*n,p=g+(f-g)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,f+=(m-f)*n,t.splice(e+2,4,O(h),O(g),O(c),O(p),O(c+(u-c)*n),O(p+(f-p)*n),O(u),O(f),O(d),O(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,e,n){n=n||{},t.totalLength||cacheRawPathMeasurements(t),(e<0||1<e)&&(e=d(e));var r,a,o,i,s,l,h=0,u=t[0];if(1<t.length){for(o=t.totalLength*e,s=l=0;(s+=t[l++].totalLength)<o;)h=l;e=(o-(i=s-(u=t[h]).totalLength))/(s-i)||0}return r=u.samples,a=u.resolution,o=u.totalLength*e,i=(l=u.lookup[~~(o/u.minLength)]||0)?r[l-1]:0,(s=r[l])<o&&(i=s,s=r[++l]),n.path=t,n.segment=u,n.segIndex=h,n.i=6*~~(l/a),n.t=1/a*((o-i)/(s-i)+l%a),n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,g,f,c=t[0],p=r||{};if((e<0||1<e)&&(e=d(e)),1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)c=t[h];e=(i-(s=l-c.totalLength))/(l-s)||0}return a=c.samples,o=c.resolution,i=c.totalLength*e,s=(h=c.lookup[~~(i/c.minLength)]||0)?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),f=1-(u=1/o*((i-s)/(l-s)+h%o)||0),g=c[h=6*~~(h/o)],p.x=O((u*u*(c[h+6]-g)+3*f*(u*(c[h+4]-g)+f*(c[h+2]-g)))*u+g),p.y=O((u*u*(c[h+7]-(g=c[h+1]))+3*f*(u*(c[h+5]-g)+f*(c[h+3]-g)))*u+g),n&&(p.angle=c.totalLength?getRotationAtBezierT(c,h,1<=u?1-1e-9:u||1e-9):c.angle||0),p}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,g,f=t.length;-1<--f;)for(l=(s=t[f]).length,h=0;h<l;h+=2)u=s[h],g=s[h+1],s[h]=u*e+g*r+o,s[h+1]=u*n+g*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=H(n),r=H(r);var h=a%360*q,u=Z(h),g=F(h),f=Math.PI,c=2*f,p=(t-s)/2,d=(e-l)/2,m=u*p+g*d,P=-g*p+u*d,v=m*m,w=P*P,x=v/(n*n)+w/(r*r);1<x&&(n=Q(x)*n,r=Q(x)*r);var y=n*n,b=r*r,M=(y*b-y*w-b*v)/(y*w+b*v);M<0&&(M=0);var R=(o===i?-1:1)*Q(M),L=n*P/r*R,T=-r*m/n*R,S=u*L-g*T+(t+s)/2,_=g*L+u*T+(e+l)/2,N=(m-L)/n,A=(P-T)/r,C=(-m-L)/n,O=(-P-T)/r,D=N*N+A*A,z=(A<0?-1:1)*Math.acos(N/Q(D)),B=(N*O-A*C<0?-1:1)*Math.acos((N*C+A*O)/Q(D*(C*C+O*O)));isNaN(B)&&(B=f),!i&&0<B?B-=c:i&&B<0&&(B+=c),z%=c,B%=c;var G,I=Math.ceil(H(B)/(c/4)),U=[],k=B/I,E=4/3*F(k/2)/(1+Z(k/2)),j=u*n,V=g*n,X=g*-r,Y=u*r;for(G=0;G<I;G++)m=Z(a=z+G*k),P=F(a),N=Z(a+=k),A=F(a),U.push(m-E*P,P+E*m,N+E*A,A-E*N,N,A);for(G=0;G<U.length;G+=2)m=U[G],P=U[G+1],U[G]=m*j+P*X+S,U[G+1]=m*V+P*Y+_;return U[G-2]=s,U[G-1]=l,U}}function stringToRawPath(t){function gf(t,e,n,r){u=(n-t)/3,g=(r-e)/3,s.push(t+u,e+g,n-u,r-g,n,r)}var e,n,r,a,o,i,s,l,h,u,g,f,c,p=(t+"").replace(b,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(y)||[],d=[],m=0,P=0,v=p.length,w=0,x="ERROR: malformed path: "+t;if(!t||!isNaN(p[0])||isNaN(p[1]))return console.log(x),d;for(e=0;e<v;e++)if(c=o,isNaN(p[e])?i=(o=p[e].toUpperCase())!==p[e]:e--,r=+p[e+1],a=+p[e+2],i&&(r+=m,a+=P),e||(l=r,h=a),"M"===o)s&&(s.length<8?d.length-=1:w+=s.length),m=l=r,P=h=a,s=[r,a],d.push(s),e+=2,o="L";else if("C"===o)i||(m=P=0),(s=s||[0,0]).push(r,a,m+1*p[e+3],P+1*p[e+4],m+=1*p[e+5],P+=1*p[e+6]),e+=6;else if("S"===o)u=m,g=P,"C"!==c&&"S"!==c||(u+=m-s[s.length-4],g+=P-s[s.length-3]),i||(m=P=0),s.push(u,g,r,a,m+=1*p[e+3],P+=1*p[e+4]),e+=4;else if("Q"===o)u=m+2/3*(r-m),g=P+2/3*(a-P),i||(m=P=0),m+=1*p[e+3],P+=1*p[e+4],s.push(u,g,m+2/3*(r-m),P+2/3*(a-P),m,P),e+=4;else if("T"===o)u=m-s[s.length-4],g=P-s[s.length-3],s.push(m+u,P+g,r+2/3*(m+1.5*u-r),a+2/3*(P+1.5*g-a),m=r,P=a),e+=2;else if("H"===o)gf(m,P,m=r,P),e+=1;else if("V"===o)gf(m,P,m,P=r+(i?P-m:0)),e+=1;else if("L"===o||"Z"===o)"Z"===o&&(r=l,a=h,s.closed=!0),("L"===o||.5<H(m-r)||.5<H(P-a))&&(gf(m,P,r,a),"L"===o&&(e+=2)),m=r,P=a;else if("A"===o){if(f=arcToSegment(m,P,+p[e+1],+p[e+2],+p[e+3],+p[e+4],+p[e+5],(i?m:0)+1*p[e+6],(i?P:0)+1*p[e+7]))for(n=0;n<f.length;n++)s.push(f[n]);m=s[s.length-2],P=s[s.length-1],e+=7}else console.log(x);return(e=s.length)<6?(d.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),d.totalPoints=w+e,d}function flatPointsToSegment(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,a=[n,r],o=2;o<t.length;o+=2)a.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return a}function pointsToSegment(t,e,n){var r,a,o,i,s,l,h,u,g,f,c,p,d,m,P=t.length-2,v=+t[0],w=+t[1],x=+t[2],y=+t[3],b=[v,w,v,w],M=x-v,R=y-w;for(isNaN(n)&&(n=Math.PI/10),e=e||0===e?+e:1,s=2;s<P;s+=2)r=v,a=w,v=x,w=y,p=(l=M)*l+(u=R)*u,d=(M=(x=+t[s+2])-v)*M+(R=(y=+t[s+3])-w)*R,m=(h=x-r)*h+(g=y-a)*g,c=(o=Math.acos((p+d-m)/Q(4*p*d)))/Math.PI*e,f=Q(p)*c,c*=Q(d),v===r&&w===a||(n<o?(i=L(g,h),b.push(O(v-Z(i)*f),O(w-F(i)*f),O(v),O(w),O(v+Z(i)*c),O(w+F(i)*c))):(i=L(u,l),b.push(O(v-Z(i)*f),O(w-F(i)*f)),i=L(R,M),b.push(O(v),O(w),O(v+Z(i)*c),O(w+F(i)*c))));return b.push(O(x),O(y),O(x),O(y)),b}function rawPathToString(t){l(t[0])&&(t=[t]);var e,n,r,a,o="",i=t.length;for(n=0;n<i;n++){for(a=t[n],o+="M"+O(a[0])+","+O(a[1])+" C",e=a.length,r=2;r<e;r++)o+=O(a[r++])+","+O(a[r++])+" "+O(a[r++])+","+O(a[r++])+" "+O(a[r++])+","+O(a[r])+" ";a.closed&&(o+="z")}return o}function S(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function U(t,e){if(t.parentNode&&(u||function _setDoc(t){var e=t.ownerDocument||t;!(w in t.style)&&"msTransform"in t.style&&(M=(w="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););return g=window,v=new G,e&&(f=(u=e).documentElement,c=e.body),e}(t))){var n=S(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?e?"rect":"g":"div",o=2!==e?0:100,i=3===e?100:0,s="position:absolute;display:block;",l=u.createElementNS?u.createElementNS(r.replace(/^https/,"http"),a):u.createElement(a);return e&&(n?(P=P||U(t),l.setAttribute("width",1),l.setAttribute("height",1),l.setAttribute("transform","translate("+o+","+i+")"),P.appendChild(l)):(m||((m=U(t)).style.cssText=s),l.style.cssText=s+"width:1px;height:1px;top:"+i+"px;left:"+o+"px",m.appendChild(l))),l}throw"Need document and parent."}function W(t,e,n,r,a,o,i){return t.a=e,t.b=n,t.c=r,t.d=a,t.e=o,t.f=i,t}var u,g,f,c,m,P,v,n,w="transform",M=w+"Origin",R=[],B=[],G=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,r=this.d,a=this.e,o=this.f,i=t*r-e*n;return W(this,r/i,-e/i,-n/i,t/i,(n*o-r*a)/i,-(t*o-e*a)/i)},n.multiply=function multiply(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f,s=t.a,l=t.c,h=t.b,u=t.d,g=t.e,f=t.f;return W(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+g*e+f*r,i+g*n+f*a)},n.equals=function equals(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f;return e===t.a&&n===t.b&&r===t.c&&a===t.d&&o===t.e&&i===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,h=this.f;return e.x=n*a+r*i+l,e.y=n*o+r*s+h,e},Matrix2D);function Matrix2D(t,e,n,r,a,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===o&&(o=0),W(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e){if(!t||!t.parentNode)return new G;var n=S(t)?R:B,r=function _placeSiblings(t){var e,n,r,a,o,i=S(t),s=t===i,l=i?R:B;return t===g?t:(l.length||l.push(U(t,1),U(t,2),U(t,3)),e=i?P:m,i?(r=s?{x:0,y:0}:t.getBBox(),(n=t.transform?t.transform.baseVal:[]).length?(a=(n=n.consolidate().matrix).a*r.x+n.c*r.y,o=n.b*r.x+n.d*r.y):(n=v,"g"===t.tagName.toLowerCase()?a=o=0:(a=r.x,o=r.y)),e.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+o)+")"),(s?i:t.parentNode).appendChild(e)):(e.style.top=t.offsetTop+"px",e.style.left=t.offsetLeft+"px",n=g.getComputedStyle(t),e.style[w]=n[w],e.style[M]=n[M],e.style.position="fixed"===n.position?"fixed":"absolute",t.parentNode.appendChild(e)),e)}(t),a=n[0].getBoundingClientRect(),o=n[1].getBoundingClientRect(),i=n[2].getBoundingClientRect(),s=r.parentNode,l=function _isFixed(t){return"fixed"===g.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),h=new G((o.left-a.left)/100,(o.top-a.top)/100,(i.left-a.left)/100,(i.top-a.top)/100,a.left+(l?0:function _getDocScrollLeft(){return g.pageXOffset||u.scrollLeft||f.scrollLeft||c.scrollLeft||0}()),a.top+(l?0:function _getDocScrollTop(){return g.pageYOffset||u.scrollTop||f.scrollTop||c.scrollTop||0}()));return s.removeChild(r),e?h.inverse():h}function ea(t,e,n,r){for(var a=e.length,o=r,i=0;i<a;i++)t[o]=parseFloat(e[i][n]),o+=2;return t}function fa(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function ga(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r}function ha(t,e,n,r,a,o,i){return e="cubic"===i.type?[e]:(e.unshift(fa(n,r,i.unitX),a?fa(n,a,i.unitY):0),i.relative&&ga(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(X(e,n,i)),Y(t,n,r,e,"x",i.unitX),a&&Y(t,n,a,e,"y",i.unitY),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function ia(t){return t}var I,h,k,E,j=["x","translateX","left","marginLeft"],V=["y","translateY","top","marginTop"],o=Math.PI/180,X=function _align(t,e,n){var r,a,o,i,s,l,h,u,g,f,c=n.align,p=n.matrix,d=n.offsetX,m=n.offsetY;return t&&t.length?(c&&("self"===c||(s=E(c)[0]||e)===e?transformRawPath(t,1,0,0,1,r=fa(e,"x")-t[0][0],a=fa(e,"y")-t[0][1]):(o=I.to(e,{xPercent:0,yPercent:0,x:0,y:0}).progress(1),i=getGlobalMatrix(e),o.render(-1).kill(),a=s.getTotalLength&&"path"===s.tagName.toLowerCase()?(l=getRawPath(s),h=getGlobalMatrix(s.parentNode),r=l[0][0],l[0][1]):(h=getGlobalMatrix(s),r=0),g=h.a*r+h.c*a+h.e-i.e,f=h.b*r+h.d*a+h.f-i.f,r=(u=getGlobalMatrix(e.parentNode,!0)).a*g+u.c*f,a=u.b*g+u.d*f,g=t[0][0],f=t[0][1],h.multiply(u),r-=h.a*g+h.c*f,a-=h.b*g+h.d*f,transformRawPath(t,h.a,h.b,h.c,h.d,r,a))),p?transformRawPath(t,p.a,p.b,p.c,p.d,p.e,p.f):(d||m)&&transformRawPath(t,1,0,0,1,d||0,m||0),t):getRawPath("M0,0L0,0")},Y=function _addDimensionalPropTween(t,e,n,r,a,o){var i=e._gsap,s=t._pt=new h(t._pt,e,n,0,0,ia,0,i.set(e,n,t));s.u=k(i.get(e,n,o))||0,s.path=r,s.pp=a,t._props.push(n)},a={version:"3.0.2",name:"motionPath",register:function register(t,e,n){k=(I=t).utils.getUnit,E=I.utils.toArray,h=n},init:function init(t,e){if(!I)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,a,o,i=[],s=e.path,l=s[0],h=e.autoRotate,u=function _sliceModifier(e,n){return function(t){return e||1!==n?sliceRawPath(t,e,n):t}}(e.start,"end"in e?e.end:1);if(this.rawPaths=i,this.target=t,(this.rotate=h||0===h)&&(this.rOffset=parseFloat(h)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=k(t._gsap.get(t,this.rProp))||0),!Array.isArray(s)||"closed"in s||"number"==typeof l)cacheRawPathMeasurements(n=u(X(getRawPath(e.path),t,e)),e.resolution),i.push(n),Y(this,t,e.x||"x",n,"x",e.unitX||"px"),Y(this,t,e.y||"y",n,"y",e.unitY||"px");else{for(r in l)~j.indexOf(r)?a=r:~V.indexOf(r)&&(o=r);for(r in a&&o?i.push(ha(this,ea(ea([],s,a,0),s,o,1),t,e.x||a,e.y||o,u,e)):a=o=0,l)r!==a&&r!==o&&i.push(ha(this,ea([],s,r,0),t,r,0,u,e))}},render:function render(t,e){var n=e.rawPaths,r=n.length,a=e._pt;for(1<t?t=1:t<0&&(t=0);r--;)getPositionOnPath(n[r],t,!r&&e.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,t),a=a._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?o:1)+e.rOffset+e.ru,e,t)},getLength:function getLength(t){return cacheRawPathMeasurements(getRawPath(t)).totalLength},sliceRawPath:sliceRawPath,getRawPath:getRawPath,pointsToSegment:pointsToSegment,stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,transformRawPath:transformRawPath,convertToPath:function convertToPath$1(t,e){return E(t).map(function(t){return convertToPath(t,!1!==e)})},getGlobalMatrix:getGlobalMatrix,getPositionOnPath:getPositionOnPath,cacheRawPathMeasurements:cacheRawPathMeasurements,arrayToRawPath:function arrayToRawPath(t,e){var n=ea(ea([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&ga(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return I||"undefined"!=typeof window&&(I=window.gsap)&&I.registerPlugin&&I}()||I.registerPlugin(a),t.MotionPathPlugin=a,t.default=a,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=MotionPathPlugin.min.js.map
diff --git a/dist/MotionPathPlugin.min.js.map b/dist/MotionPathPlugin.min.js.map
index 8102145..d47d392 100644
--- a/dist/MotionPathPlugin.min.js.map
+++ b/dist/MotionPathPlugin.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"MotionPathPlugin.min.js","sources":["../src/utils/paths.js","../src/utils/matrix.js","../src/MotionPathPlugin.js"],"sourcesContent":["/*!\n * paths 3.0.0\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _svgPathExp = /[achlmqstvz]|(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[0-9]/ig,\n\t_numbersExp = /(?:(-)?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[0-9]/ig,\n\t_scientific = /[\\+\\-]?\\d*\\.?\\d+e[\\+\\-]?\\d+/ig,\n\t_selectorExp = /(^[#\\.][a-z]|[a-y][a-z])/i,\n\t_DEG2RAD = Math.PI / 180,\n\t_RAD2DEG = 180 / Math.PI,\n\t_sin = Math.sin,\n\t_cos = Math.cos,\n\t_abs = Math.abs,\n\t_sqrt = Math.sqrt,\n\t_atan2 = Math.atan2,\n\t_largeNum = 1e8,\n\t_isString = value => typeof(value) === \"string\",\n\t_isNumber = value => typeof(value) === \"number\",\n\t_isUndefined = value => typeof(value) === \"undefined\",\n\t_temp = {},\n\t_temp2 = {},\n\t_roundingNum = 1e5,\n\t_wrapProgress = progress => (Math.round((progress + _largeNum) % 1 * _roundingNum) / _roundingNum) || ((progress < 0) ? 0 : 1), //if progress lands on 1, the % will make it 0 which is why we || 1, but not if it's negative because it makes more sense for motion to end at 0 in that case.\n\t_round = value => ~~(value * _roundingNum + (value < 0 ? -.5 : .5)) / _roundingNum,\n\t_splitSegment = (rawPath, segIndex, i, t) => {\n\t\tlet segment = rawPath[segIndex],\n\t\t\tshift = t === 1 ? 6 : subdivideSegment(segment, i, t);\n\t\tif (shift && shift + i + 2 < segment.length) {\n\t\t\trawPath.splice(segIndex, 0, segment.slice(0, i + shift + 2));\n\t\t\tsegment.splice(0, i + shift);\n\t\t\treturn 1;\n\t\t}\n\t},\n\t_reverseRawPath = (rawPath, skipOuter) => {\n\t\tlet i = rawPath.length;\n\t\tif (!skipOuter) {\n\t\t\trawPath.reverse();\n\t\t}\n\t\twhile (i--) {\n\t\t\tif (!rawPath[i].reversed) {\n\t\t\t\treverseSegment(rawPath[i]);\n\t\t\t}\n\t\t}\n\t},\n\t_copyMetaData = (source, copy) => {\n\t\tcopy.totalLength = source.totalLength;\n\t\tif (source.samples) { //segment\n\t\t\tcopy.samples = source.samples.slice(0);\n\t\t\tcopy.lookup = source.lookup.slice(0);\n\t\t\tcopy.minLength = source.minLength;\n\t\t\tcopy.resolution = source.resolution;\n\t\t} else { //rawPath\n\t\t\tcopy.totalPoints = source.totalPoints;\n\t\t}\n\t\treturn copy;\n\t},\n\t//pushes a new segment into a rawPath, but if its starting values match the ending values of the last segment, it'll merge it into that same segment (to reduce the number of segments)\n\t_appendOrMerge = (rawPath, segment) => {\n\t\tlet index = rawPath.length,\n\t\t\tprevSeg = rawPath[index - 1] || [],\n\t\t\tl = prevSeg.length;\n\t\tif (segment[0] === prevSeg[l-2] && segment[1] === prevSeg[l-1]) {\n\t\t\tsegment = prevSeg.concat(segment.slice(2));\n\t\t\tindex--;\n\t\t}\n\t\trawPath[index] = segment;\n\t},\n\t_bestDistance;\n\n/* TERMINOLOGY\n - RawPath - an array of arrays, one for each Segment. A single RawPath could have multiple \"M\" commands, defining Segments (paths aren't always connected).\n - Segment - an array containing a sequence of Cubic Bezier coordinates in alternating x, y, x, y format. Starting anchor, then control point 1, control point 2, and ending anchor, then the next control point 1, control point 2, anchor, etc. Uses less memory than an array with a bunch of {x, y} points.\n - Bezier - a single cubic Bezier with a starting anchor, two control points, and an ending anchor.\n - the variable \"t\" is typically the position along an individual Bezier path (time) and it's NOT linear, meaning it could accelerate/decelerate based on the control points whereas the \"p\" or \"progress\" value is linearly mapped to the whole path, so it shouldn't really accelerate/decelerate based on control points. So a progress of 0.2 would be almost exactly 20% along the path. \"t\" is ONLY in an individual Bezier piece.\n */\n\n//accepts basic selector text, a path instance, a RawPath instance, or a Segment and returns a RawPath (makes it easy to homogenize things). If an element or selector text is passed in, it'll also cache the value so that if it's queried again, it'll just take the path data from there instead of parsing it all over again (as long as the path data itself hasn't changed - it'll check).\nexport function getRawPath(value) {\n\tvalue = (_isString(value) && _selectorExp.test(value)) ? document.querySelector(value) || value : value;\n\tlet e = value.getAttribute ? value : 0,\n\t\trawPath;\n\tif (e && (value = value.getAttribute(\"d\"))) {\n\t\t//implements caching\n\t\tif (!e._gsPath) {\n\t\t\te._gsPath = {};\n\t\t}\n\t\trawPath = e._gsPath[value];\n\t\treturn (rawPath && !rawPath._dirty) ? rawPath : (e._gsPath[value] = stringToRawPath(value));\n\t}\n\treturn !value ? console.warn(\"Expecting a <path> element or an SVG path data string\") : _isString(value) ? stringToRawPath(value) : (_isNumber(value[0])) ? [value] : value;\n}\n\n//copies a RawPath WITHOUT the length meta data (for speed)\nexport function copyRawPath(rawPath) {\n\tlet a = [],\n\t\ti = 0;\n\tfor (; i < rawPath.length; i++) {\n\t\ta[i] = _copyMetaData(rawPath[i], rawPath[i].slice(0));\n\t}\n\treturn _copyMetaData(rawPath, a);\n}\n\nexport function reverseSegment(segment) {\n\tlet i = 0,\n\t\ty;\n\tsegment.reverse(); //this will invert the order y, x, y, x so we must flip it back.\n\tfor (; i < segment.length; i += 2) {\n\t\ty = segment[i];\n\t\tsegment[i] = segment[i+1];\n\t\tsegment[i+1] = y;\n\t}\n\tsegment.reversed = !segment.reversed;\n}\n\n\n\nlet _createPath = (e, ignore) => {\n\t\tlet path = document.createElementNS(\"http://www.w3.org/2000/svg\", \"path\"),\n\t\t\tattr = [].slice.call(e.attributes),\n\t\t\ti = attr.length,\n\t\t\tname;\n\t\tignore = \",\" + ignore + \",\";\n\t\twhile (--i > -1) {\n\t\t\tname = attr[i].nodeName.toLowerCase(); //in Microsoft Edge, if you don't set the attribute with a lowercase name, it doesn't render correctly! Super weird.\n\t\t\tif (ignore.indexOf(\",\" + name + \",\") < 0) {\n\t\t\t\tpath.setAttributeNS(null, name, attr[i].nodeValue);\n\t\t\t}\n\t\t}\n\t\treturn path;\n\t},\n\t_typeAttrs = {\n\t\trect:\"rx,ry,x,y,width,height\",\n\t\tcircle:\"r,cx,cy\",\n\t\tellipse:\"rx,ry,cx,cy\",\n\t\tline:\"x1,x2,y1,y2\"\n\t},\n\t_attrToObj = (e, attrs) => {\n\t\tlet props = attrs ? attrs.split(\",\") : [],\n\t\t\tobj = {},\n\t\t\ti = props.length;\n\t\twhile (--i > -1) {\n\t\t\tobj[props[i]] = +e.getAttribute(props[i]) || 0;\n\t\t}\n\t\treturn obj;\n\t};\n\n//converts an SVG shape like <circle>, <rect>, <polygon>, <polyline>, <ellipse>, etc. to a <path>, swapping it in and copying the attributes to match.\nexport function convertToPath(element, swap) {\n\tlet type = element.tagName.toLowerCase(),\n\t\tcirc = 0.552284749831,\n\t\tdata, x, y, r, ry, path, rcirc, rycirc, points, w, h, x2, x3, x4, x5, x6, y2, y3, y4, y5, y6, attr;\n\tif (type === \"path\" || !element.getBBox) {\n\t\treturn element;\n\t}\n\tpath = _createPath(element, \"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points\");\n\tattr = _attrToObj(element, _typeAttrs[type]);\n\tif (type === \"rect\") {\n\t\tr = attr.rx;\n\t\try = attr.ry;\n\t\tx = attr.x;\n\t\ty = attr.y;\n\t\tw = attr.width - r * 2;\n\t\th = attr.height - ry * 2;\n\t\tif (r || ry) { //if there are rounded corners, render cubic beziers\n\t\t\tx2 = x + r * (1 - circ);\n\t\t\tx3 = x + r;\n\t\t\tx4 = x3 + w;\n\t\t\tx5 = x4 + r * circ;\n\t\t\tx6 = x4 + r;\n\t\t\ty2 = y + ry * (1 - circ);\n\t\t\ty3 = y + ry;\n\t\t\ty4 = y3 + h;\n\t\t\ty5 = y4 + ry * circ;\n\t\t\ty6 = y4 + ry;\n\t\t\tdata = \"M\" + x6 + \",\" + y3 + \" V\" + y4 + \" C\" + [x6, y5, x5, y6, x4, y6, x4 - (x4 - x3) / 3, y6, x3 + (x4 - x3) / 3, y6, x3, y6, x2, y6, x, y5, x, y4, x, y4 - (y4 - y3) / 3, x, y3 + (y4 - y3) / 3, x, y3, x, y2, x2, y, x3, y, x3 + (x4 - x3) / 3, y, x4 - (x4 - x3) / 3, y, x4, y, x5, y, x6, y2, x6, y3].join(\",\") + \"z\";\n\t\t} else {\n\t\t\tdata = \"M\" + (x + w) + \",\" + y + \" v\" + h + \" h\" + (-w) + \" v\" + (-h) + \" h\" + w + \"z\";\n\t\t}\n\n\t} else if (type === \"circle\" || type === \"ellipse\") {\n\t\tif (type === \"circle\") {\n\t\t\tr = ry = attr.r;\n\t\t\trycirc = r * circ;\n\t\t} else {\n\t\t\tr = attr.rx;\n\t\t\try = attr.ry;\n\t\t\trycirc = ry * circ;\n\t\t}\n\t\tx = attr.cx;\n\t\ty = attr.cy;\n\t\trcirc = r * circ;\n\t\tdata = \"M\" + (x+r) + \",\" + y + \" C\" + [x+r, y + rycirc, x + rcirc, y + ry, x, y + ry, x - rcirc, y + ry, x - r, y + rycirc, x - r, y, x - r, y - rycirc, x - rcirc, y - ry, x, y - ry, x + rcirc, y - ry, x + r, y - rycirc, x + r, y].join(\",\") + \"z\";\n\t} else if (type === \"line\") {\n\t\tdata = \"M\" + attr.x1 + \",\" + attr.y1 + \" L\" + attr.x2 + \",\" + attr.y2; //previously, we just converted to \"Mx,y Lx,y\" but Safari has bugs that cause that not to render properly when using a stroke-dasharray that's not fully visible! Using a cubic bezier fixes that issue.\n\t} else if (type === \"polyline\" || type === \"polygon\") {\n\t\tpoints = (element.getAttribute(\"points\") + \"\").match(_numbersExp) || [];\n\t\tx = points.shift();\n\t\ty = points.shift();\n\t\tdata = \"M\" + x + \",\" + y + \" L\" + points.join(\",\");\n\t\tif (type === \"polygon\") {\n\t\t\tdata += \",\" + x + \",\" + y + \"z\";\n\t\t}\n\t}\n\tpath.setAttribute(\"d\", rawPathToString(path._gsRawPath = stringToRawPath(data)));\n\tif (swap && element.parentNode) {\n\t\telement.parentNode.insertBefore(path, element);\n\t\telement.parentNode.removeChild(element);\n\t}\n\treturn path;\n}\n\n\n\n//returns the rotation (in degrees) at a particular progress on a rawPath (the slope of the tangent)\nexport function getRotationAtProgress(rawPath, progress) {\n\tlet d = getProgressData(rawPath, progress >= 1 ? 1 - 1e-9 : progress ? progress : 1e-9);\n\treturn getRotationAtBezierT(d.segment, d.i, d.t);\n}\n\nfunction getRotationAtBezierT(segment, i, t) {\n\tlet a = segment[i],\n\t\tb = segment[i+2],\n\t\tc = segment[i+4],\n\t\tx;\n\ta += (b - a) * t;\n\tb += (c - b) * t;\n\ta += (b - a) * t;\n\tx = b + ((c + (segment[i+6] - c) * t) - b) * t - a;\n\ta = segment[i+1];\n\tb = segment[i+3];\n\tc = segment[i+5];\n\ta += (b - a) * t;\n\tb += (c - b) * t;\n\ta += (b - a) * t;\n\treturn _round(_atan2(b + ((c + (segment[i+7] - c) * t) - b) * t - a, x) * _RAD2DEG);\n}\n\nexport function sliceRawPath(rawPath, start, end) {\n\tif (_isUndefined(end)) {\n\t\tend = 1;\n\t}\n\tstart = start || 0;\n\tlet reverse = start > end,\n\t\tloops = Math.max(0, ~~(_abs(end - start) - 1e-8));\n\tif (reverse) {\n\t\treverse = end;\n\t\tend = start;\n\t\tstart = reverse;\n\t\treverse = 1;\n\t\tloops -= loops ? 1 : 0;\n\t}\n\tif (start < 0 || end < 0) {\n\t\tlet offset = ~~Math.min(start, end) + 1;\n\t\tstart += offset;\n\t\tend += offset;\n\t}\n\tlet path = copyRawPath(rawPath.totalLength ? rawPath : cacheRawPathMeasurements(rawPath)),\n\t\twrap = (end > 1),\n\t\ts = getProgressData(path, start, _temp),\n\t\te = getProgressData(path, end, _temp2),\n\t\teSeg = e.segment,\n\t\tsSeg = s.segment,\n\t\teSegIndex = e.segIndex,\n\t\tsSegIndex = s.segIndex,\n\t\tei = e.i,\n\t\tsi = s.i,\n\t\tsameSegment = (sSegIndex === eSegIndex),\n\t\tsameBezier = (ei === si && sameSegment),\n\t\tinvertedOrder = ((sameSegment && si > ei) || (sameBezier && s.t > e.t)),\n\t\tsShift, eShift, i, copy, totalSegments, l, j;\n\tif (wrap || loops) {\n\t\tif (_splitSegment(path, sSegIndex, si, s.t)) {\n\t\t\tsShift = 1;\n\t\t\tsSegIndex++;\n\t\t\tif (sameBezier) {\n\t\t\t\tif (invertedOrder) {\n\t\t\t\t\te.t /= s.t;\n\t\t\t\t} else {\n\t\t\t\t\te.t = (e.t - s.t) / (1 - s.t);\n\t\t\t\t\teSegIndex++;\n\t\t\t\t\tei = 0;\n\t\t\t\t}\n\t\t\t} else if (sSegIndex <= eSegIndex + 1 && !invertedOrder) {\n\t\t\t\teSegIndex++;\n\t\t\t\tif (sameSegment) {\n\t\t\t\t\tei -= si;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!e.t) {\n\t\t\teSegIndex--;\n\t\t\tif (reverse) {\n\t\t\t\tsSegIndex--;\n\t\t\t}\n\t\t} else if (_splitSegment(path, eSegIndex, ei, e.t)) {\n\t\t\tif (invertedOrder && sShift) {\n\t\t\t\tsSegIndex++;\n\t\t\t}\n\t\t\tif (reverse) {\n\t\t\t\teSegIndex++;\n\t\t\t}\n\t\t}\n\t\tcopy = [];\n\t\ttotalSegments = path.length;\n\t\tl = 1 + totalSegments * loops;\n\t\tj = sSegIndex;\n\t\tif (reverse) {\n\t\t\teSegIndex = (eSegIndex || totalSegments) - 1;\n\t\t\tl += (totalSegments - eSegIndex + sSegIndex) % totalSegments;\n\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t_appendOrMerge(copy, path[j]);\n\t\t\t\tj = (j || totalSegments) - 1;\n\t\t\t}\n\t\t} else {\n\t\t\tl += ((totalSegments - sSegIndex) + eSegIndex) % totalSegments;\n\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t_appendOrMerge(copy, path[j++ % totalSegments]);\n\t\t\t}\n\t\t}\n\t\tpath = copy;\n\t} else {\n\t\teShift = e.t === 1 ? 6 : subdivideSegment(eSeg, ei, e.t);\n\t\tif (start !== end) {\n\t\t\tsShift = subdivideSegment(sSeg, si, sameBezier ? s.t / e.t : s.t);\n\t\t\tif (sameSegment) {\n\t\t\t\teShift += sShift;\n\t\t\t}\n\t\t\teSeg.splice(ei + eShift + 2);\n\t\t\tif (sShift) {\n\t\t\t\tsSeg.splice(0, si + sShift);\n\t\t\t}\n\t\t\ti = path.length;\n\t\t\twhile (i--) {\n\t\t\t\t//chop off any extra segments\n\t\t\t\tif (i < sSegIndex || i > eSegIndex) {\n\t\t\t\t\tpath.splice(i, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\teSeg.angle = getRotationAtBezierT(eSeg, ei + eShift, 0); //record the value before we chop because it'll be impossible to determine the angle after its length is 0!\n\t\t\tei += eShift;\n\t\t\ts = eSeg[ei];\n\t\t\te = eSeg[ei+1];\n\t\t\teSeg.length = eSeg.totalLength = 0;\n\t\t\teSeg.totalPoints = path.totalPoints = 8;\n\t\t\teSeg.push(s, e, s, e, s, e, s, e);\n\t\t}\n\t}\n\tif (reverse) {\n\t\t_reverseRawPath(path, wrap || loops);\n\t}\n\tpath.totalLength = 0;\n\treturn path;\n}\n\n//measures a Segment according to its resolution (so if segment.resolution is 6, for example, it'll take 6 samples equally across each Bezier) and create/populate a \"samples\" array that has the length up to each of those sample points (always increasing from the start) as well as a \"lookup\" array that's broken up according to the smallest distance between 2 samples. This gives us a very fast way of looking up a progress position rather than looping through all the points/Beziers. You can optionally have it only measure a subset, starting at startIndex and going for a specific number of beziers (remember, there are 3 x/y pairs each, for a total of 6 elements for each Bezier). It will also populate a \"totalLength\" property, but that's not generally super accurate because by default it'll only take 6 samples per Bezier. But for performance reasons, it's perfectly adequate for measuring progress values along the path. If you need a more accurate totalLength, either increase the resolution or use the more advanced bezierToPoints() method which keeps adding points until they don't deviate by more than a certain precision value.\nfunction measureSegment(segment, startIndex, bezierQty) {\n\tstartIndex = startIndex || 0;\n\tif (!segment.samples) {\n\t\tsegment.samples = [];\n\t\tsegment.lookup = [];\n\t}\n\tlet resolution = ~~segment.resolution || 12,\n\t\tinc = 1 / resolution,\n\t\tendIndex = bezierQty ? startIndex + bezierQty * 6 + 1 : segment.length,\n\t\tx1 = segment[startIndex],\n\t\ty1 = segment[startIndex + 1],\n\t\tsamplesIndex = startIndex ? (startIndex / 6) * resolution : 0,\n\t\tsamples = segment.samples,\n\t\tlookup = segment.lookup,\n\t\tmin = (startIndex ? segment.minLength : _largeNum) || _largeNum,\n\t\tprevLength = samples[samplesIndex + bezierQty * resolution - 1],\n\t\tlength = startIndex ? samples[samplesIndex-1] : 0,\n\t\ti, j, x4, x3, x2, xd, xd1, y4, y3, y2, yd, yd1, inv, t, lengthIndex, l, segLength;\n\tsamples.length = lookup.length = 0;\n\tfor (j = startIndex + 2; j < endIndex; j += 6) {\n\t\tx4 = segment[j + 4] - x1;\n\t\tx3 = segment[j + 2] - x1;\n\t\tx2 = segment[j] - x1;\n\t\ty4 = segment[j + 5] - y1;\n\t\ty3 = segment[j + 3] - y1;\n\t\ty2 = segment[j + 1] - y1;\n\t\txd = xd1 = yd = yd1 = 0;\n\t\tfor (i = 1; i <= resolution; i++) {\n\t\t\tt = inc * i;\n\t\t\tinv = 1 - t;\n\t\t\txd = xd1 - (xd1 = (t * t * x4 + 3 * inv * (t * x3 + inv * x2)) * t);\n\t\t\tyd = yd1 - (yd1 = (t * t * y4 + 3 * inv * (t * y3 + inv * y2)) * t);\n\t\t\tl = _sqrt(yd * yd + xd * xd);\n\t\t\tif (l < min) {\n\t\t\t\tmin = l;\n\t\t\t}\n\t\t\tlength += l;\n\t\t\tsamples[samplesIndex++] = length;\n\t\t}\n\t\tx1 += x4;\n\t\ty1 += y4;\n\t}\n\tif (prevLength) {\n\t\tprevLength -= length;\n\t\tfor (; samplesIndex < samples.length; samplesIndex++) {\n\t\t\tsamples[samplesIndex] += prevLength;\n\t\t}\n\t}\n\tif (samples.length && min) {\n\t\tsegment.totalLength = segLength = samples[samples.length-1] || 0;\n\t\tsegment.minLength = min;\n\t\tl = lengthIndex = 0;\n\t\tfor (i = 0; i < segLength; i += min) {\n\t\t\tlookup[l++] = (samples[lengthIndex] < i) ? ++lengthIndex : lengthIndex;\n\t\t}\n\t} else {\n\t\tsegment.totalLength = samples[0] = 0;\n\t}\n\treturn startIndex ? length - samples[startIndex / 2 - 1] : length;\n}\n\nexport function cacheRawPathMeasurements(rawPath, resolution) {\n\tlet pathLength, points, i;\n\tfor (i = pathLength = points = 0; i < rawPath.length; i++) {\n\t\trawPath[i].resolution = ~~resolution || 12; //steps per Bezier curve (anchor, 2 control points, to anchor)\n\t\tpoints += rawPath[i].length;\n\t\tpathLength += measureSegment(rawPath[i]);\n\t}\n\trawPath.totalPoints = points;\n\trawPath.totalLength = pathLength;\n\treturn rawPath;\n}\n\n//divide segment[i] at position t (value between 0 and 1, progress along that particular cubic bezier segment that starts at segment[i]). Returns how many elements were spliced into the segment array (either 0 or 6)\nexport function subdivideSegment(segment, i, t) {\n\tif (t <= 0 || t >= 1) {\n\t\treturn 0;\n\t}\n\tlet ax = segment[i],\n\t\tay = segment[i+1],\n\t\tcp1x = segment[i+2],\n\t\tcp1y = segment[i+3],\n\t\tcp2x = segment[i+4],\n\t\tcp2y = segment[i+5],\n\t\tbx = segment[i+6],\n\t\tby = segment[i+7],\n\t\tx1a = ax + (cp1x - ax) * t,\n\t\tx2 = cp1x + (cp2x - cp1x) * t,\n\t\ty1a = ay + (cp1y - ay) * t,\n\t\ty2 = cp1y + (cp2y - cp1y) * t,\n\t\tx1 = x1a + (x2 - x1a) * t,\n\t\ty1 = y1a + (y2 - y1a) * t,\n\t\tx2a = cp2x + (bx - cp2x) * t,\n\t\ty2a = cp2y + (by - cp2y) * t;\n\tx2 += (x2a - x2) * t;\n\ty2 += (y2a - y2) * t;\n\tsegment.splice(i + 2, 4,\n\t\t_round(x1a), //first control point\n\t\t_round(y1a),\n\t\t_round(x1), //second control point\n\t\t_round(y1),\n\t\t_round(x1 + (x2 - x1) * t), //new fabricated anchor on line\n\t\t_round(y1 + (y2 - y1) * t),\n\t\t_round(x2), //third control point\n\t\t_round(y2),\n\t\t_round(x2a), //fourth control point\n\t\t_round(y2a)\n\t);\n\tif (segment.samples) {\n\t\tsegment.samples.splice(((i / 6) * segment.resolution) | 0, 0, 0, 0, 0, 0, 0, 0);\n\t}\n\treturn 6;\n}\n\n// returns an object {path, segment, segIndex, i, t}\nfunction getProgressData(rawPath, progress, decoratee) {\n\tdecoratee = decoratee || {};\n\tif (!rawPath.totalLength) {\n\t\tcacheRawPathMeasurements(rawPath);\n\t}\n\tif (progress < 0 || progress > 1) {\n\t\tprogress = _wrapProgress(progress);\n\t}\n\tlet segIndex = 0,\n\t\tsegment = rawPath[0],\n\t\tsamples, resolution, length, min, max, i;\n\tif (rawPath.length > 1) { //speed optimization: most of the time, there's only one segment so skip the recursion.\n\t\tlength = rawPath.totalLength * progress;\n\t\tmax = i = 0;\n\t\twhile ((max += rawPath[i++].totalLength) < length) {\n\t\t\tsegIndex = i;\n\t\t}\n\t\tsegment = rawPath[segIndex];\n\t\tmin = max - segment.totalLength;\n\t\tprogress = ((length - min) / (max - min)) || 0;\n\t}\n\tsamples = segment.samples;\n\tresolution = segment.resolution; //how many samples per cubic bezier chunk\n\tlength = segment.totalLength * progress;\n\ti = segment.lookup[~~(length / segment.minLength)] || 0;\n\tmin = i ? samples[i-1] : 0;\n\tmax = samples[i];\n\tif (max < length) {\n\t\tmin = max;\n\t\tmax = samples[++i];\n\t}\n\tdecoratee.path = rawPath;\n\tdecoratee.segment = segment;\n\tdecoratee.segIndex = segIndex;\n\tdecoratee.i = ~~(i / resolution) * 6;\n\tdecoratee.t = (1 / resolution) * (((length - min) / (max - min)) + ((i % resolution)));\n\treturn decoratee;\n}\n\nexport function getPositionOnPath(rawPath, progress, includeAngle, point) {\n\tlet segment = rawPath[0],\n\t\tresult = point || {},\n\t\tsamples, resolution, length, min, max, i, t, a, inv;\n\tif (progress < 0 || progress > 1) {\n\t\tprogress = _wrapProgress(progress);\n\t}\n\tif (rawPath.length > 1) { //speed optimization: most of the time, there's only one segment so skip the recursion.\n\t\tlength = rawPath.totalLength * progress;\n\t\tmax = i = 0;\n\t\twhile ((max += rawPath[i++].totalLength) < length) {\n\t\t\tsegment = rawPath[i];\n\t\t}\n\t\tmin = max - segment.totalLength;\n\t\tprogress = ((length - min) / (max - min)) || 0;\n\t}\n\tsamples = segment.samples;\n\tresolution = segment.resolution;\n\tlength = segment.totalLength * progress;\n\ti = segment.lookup[~~(length / segment.minLength)] || 0;\n\tmin = i ? samples[i-1] : 0;\n\tmax = samples[i];\n\tif (max < length) {\n\t\tmin = max;\n\t\tmax = samples[++i];\n\t}\n\tt = ((1 / resolution) * (((length - min) / (max - min)) + ((i % resolution)))) || 0;\n\tinv = 1 - t;\n\ti = ~~(i / resolution) * 6;\n\ta = segment[i];\n\tresult.x = _round((t * t * (segment[i + 6] - a) + 3 * inv * (t * (segment[i + 4] - a) + inv * (segment[i + 2] - a))) * t + a);\n\tresult.y = _round((t * t * (segment[i + 7] - (a = segment[i+1])) + 3 * inv * (t * (segment[i + 5] - a) + inv * (segment[i + 3] - a))) * t + a);\n\tif (includeAngle) {\n\t\tresult.angle = segment.totalLength ? getRotationAtBezierT(segment, i, t >= 1 ? 1 - 1e-9 : t ? t : 1e-9) : segment.angle || 0;\n\t}\n\treturn result;\n}\n\n\n\n//applies a matrix transform to RawPath (or a segment in a RawPath) and returns whatever was passed in (it transforms the values in the array(s), not a copy).\nexport function transformRawPath(rawPath, a, b, c, d, tx, ty) {\n\tlet j = rawPath.length,\n\t\tsegment, l, i, x, y;\n\twhile (--j > -1) {\n\t\tsegment = rawPath[j];\n\t\tl = segment.length;\n\t\tfor (i = 0; i < l; i += 2) {\n\t\t\tx = segment[i];\n\t\t\ty = segment[i+1];\n\t\t\tsegment[i] = x * a + y * c + tx;\n\t\t\tsegment[i+1] = x * b + y * d + ty;\n\t\t}\n\t}\n\trawPath._dirty = 1;\n\treturn rawPath;\n}\n\n\n\n// translates SVG arc data into a segment (cubic beziers). Angle is in degrees.\nfunction arcToSegment(lastX, lastY, rx, ry, angle, largeArcFlag, sweepFlag, x, y) {\n\tif (lastX === x && lastY === y) {\n\t\treturn;\n\t}\n\trx = _abs(rx);\n\try = _abs(ry);\n\tlet angleRad = (angle % 360) * _DEG2RAD,\n\t\tcosAngle = _cos(angleRad),\n\t\tsinAngle = _sin(angleRad),\n\t\tPI = Math.PI,\n\t\tTWOPI = PI * 2,\n\t\tdx2 = (lastX - x) / 2,\n\t\tdy2 = (lastY - y) / 2,\n\t\tx1 = (cosAngle * dx2 + sinAngle * dy2),\n\t\ty1 = (-sinAngle * dx2 + cosAngle * dy2),\n\t\tx1_sq = x1 * x1,\n\t\ty1_sq = y1 * y1,\n\t\tradiiCheck = x1_sq / (rx * rx) + y1_sq / (ry * ry);\n\tif (radiiCheck > 1) {\n\t\trx = _sqrt(radiiCheck) * rx;\n\t\try = _sqrt(radiiCheck) * ry;\n\t}\n\tlet rx_sq = rx * rx,\n\t\try_sq = ry * ry,\n\t\tsq = ((rx_sq * ry_sq) - (rx_sq * y1_sq) - (ry_sq * x1_sq)) / ((rx_sq * y1_sq) + (ry_sq * x1_sq));\n\tif (sq < 0) {\n\t\tsq = 0;\n\t}\n\tlet coef = ((largeArcFlag === sweepFlag) ? -1 : 1) * _sqrt(sq),\n\t\tcx1 = coef * ((rx * y1) / ry),\n\t\tcy1 = coef * -((ry * x1) / rx),\n\t\tsx2 = (lastX + x) / 2,\n\t\tsy2 = (lastY + y) / 2,\n\t\tcx = sx2 + (cosAngle * cx1 - sinAngle * cy1),\n\t\tcy = sy2 + (sinAngle * cx1 + cosAngle * cy1),\n\t\tux = (x1 - cx1) / rx,\n\t\tuy = (y1 - cy1) / ry,\n\t\tvx = (-x1 - cx1) / rx,\n\t\tvy = (-y1 - cy1) / ry,\n\t\ttemp = ux * ux + uy * uy,\n\t\tangleStart = ((uy < 0) ? -1 : 1) * Math.acos(ux / _sqrt(temp)),\n\t\tangleExtent = ((ux * vy - uy * vx < 0) ? -1 : 1) * Math.acos((ux * vx + uy * vy) / _sqrt(temp * (vx * vx + vy * vy)));\n\tif (isNaN(angleExtent)) { //rare edge case. Math.cos(-1) is NaN.\n\t\tangleExtent = PI;\n\t}\n\tif (!sweepFlag && angleExtent > 0) {\n\t\tangleExtent -= TWOPI;\n\t} else if (sweepFlag && angleExtent < 0) {\n\t\tangleExtent += TWOPI;\n\t}\n\tangleStart %= TWOPI;\n\tangleExtent %= TWOPI;\n\tlet segments = Math.ceil(_abs(angleExtent) / (TWOPI / 4)),\n\t\trawPath = [],\n\t\tangleIncrement = angleExtent / segments,\n\t\tcontrolLength = 4 / 3 * _sin(angleIncrement / 2) / (1 + _cos(angleIncrement / 2)),\n\t\tma = cosAngle * rx,\n\t\tmb = sinAngle * rx,\n\t\tmc = sinAngle * -ry,\n\t\tmd = cosAngle * ry,\n\t\ti;\n\tfor (i = 0; i < segments; i++) {\n\t\tangle = angleStart + i * angleIncrement;\n\t\tx1 = _cos(angle);\n\t\ty1 = _sin(angle);\n\t\tux = _cos(angle += angleIncrement);\n\t\tuy = _sin(angle);\n\t\trawPath.push(x1 - controlLength * y1, y1 + controlLength * x1, ux + controlLength * uy, uy - controlLength * ux, ux, uy);\n\t}\n\t//now transform according to the actual size of the ellipse/arc (the beziers were noramlized, between 0 and 1 on a circle).\n\tfor (i = 0; i < rawPath.length; i+=2) {\n\t\tx1 = rawPath[i];\n\t\ty1 = rawPath[i+1];\n\t\trawPath[i] = x1 * ma + y1 * mc + cx;\n\t\trawPath[i+1] = x1 * mb + y1 * md + cy;\n\t}\n\trawPath[i-2] = x; //always set the end to exactly where it's supposed to be\n\trawPath[i-1] = y;\n\treturn rawPath;\n}\n\n//Spits back a RawPath with absolute coordinates. Each segment starts with a \"moveTo\" command (x coordinate, then y) and then 2 control points (x, y, x, y), then anchor. The goal is to minimize memory and maximize speed.\nexport function stringToRawPath(d) {\n\tlet a = (d + \"\").replace(_scientific, m => { let n = +m; return (n < 0.0001 && n > -0.0001) ? 0 : n; }).match(_svgPathExp) || [], //some authoring programs spit out very small numbers in scientific notation like \"1e-5\", so make sure we round that down to 0 first.\n\t\tpath = [],\n\t\trelativeX = 0,\n\t\trelativeY = 0,\n\t\ttwoThirds = 2 / 3,\n\t\telements = a.length,\n\t\tpoints = 0,\n\t\terrorMessage = \"ERROR: malformed path: \" + d,\n\t\ti, j, x, y, command, isRelative, segment, startX, startY, difX, difY, beziers, prevCommand,\n\t\tline = function(sx, sy, ex, ey) {\n\t\t\tdifX = (ex - sx) / 3;\n\t\t\tdifY = (ey - sy) / 3;\n\t\t\tsegment.push(sx + difX, sy + difY, ex - difX, ey - difY, ex, ey);\n\t\t};\n\tif (!d || !isNaN(a[0]) || isNaN(a[1])) {\n\t\tconsole.log(errorMessage);\n\t\treturn path;\n\t}\n\tfor (i = 0; i < elements; i++) {\n\t\tprevCommand = command;\n\t\tif (isNaN(a[i])) {\n\t\t\tcommand = a[i].toUpperCase();\n\t\t\tisRelative = (command !== a[i]); //lower case means relative\n\t\t} else { //commands like \"C\" can be strung together without any new command characters between.\n\t\t\ti--;\n\t\t}\n\t\tx = +a[i + 1];\n\t\ty = +a[i + 2];\n\t\tif (isRelative) {\n\t\t\tx += relativeX;\n\t\t\ty += relativeY;\n\t\t}\n\t\tif (!i) {\n\t\t\tstartX = x;\n\t\t\tstartY = y;\n\t\t}\n\n\t\t// \"M\" (move)\n\t\tif (command === \"M\") {\n\t\t\tif (segment) {\n\t\t\t\tif (segment.length < 8) { //if the path data was funky and just had a M with no actual drawing anywhere, skip it.\n\t\t\t\t\tpath.length -= 1;\n\t\t\t\t} else {\n\t\t\t\t\tpoints += segment.length;\n\t\t\t\t}\n\t\t\t}\n\t\t\trelativeX = startX = x;\n\t\t\trelativeY = startY = y;\n\t\t\tsegment = [x, y];\n\t\t\tpath.push(segment);\n\t\t\ti += 2;\n\t\t\tcommand = \"L\"; //an \"M\" with more than 2 values gets interpreted as \"lineTo\" commands (\"L\").\n\n\t\t// \"C\" (cubic bezier)\n\t\t} else if (command === \"C\") {\n\t\t\tif (!segment) {\n\t\t\t\tsegment = [0, 0];\n\t\t\t}\n\t\t\tif (!isRelative) {\n\t\t\t\trelativeX = relativeY = 0;\n\t\t\t}\n\t\t\t//note: \"*1\" is just a fast/short way to cast the value as a Number. WAAAY faster in Chrome, slightly slower in Firefox.\n\t\t\tsegment.push(x,\ty, relativeX + a[i + 3] * 1, relativeY + a[i + 4] * 1, (relativeX += a[i + 5] * 1),\t(relativeY += a[i + 6] * 1));\n\t\t\ti += 6;\n\n\t\t// \"S\" (continuation of cubic bezier)\n\t\t} else if (command === \"S\") {\n\t\t\tdifX = relativeX;\n\t\t\tdifY = relativeY;\n\t\t\tif (prevCommand === \"C\" || prevCommand === \"S\") {\n\t\t\t\tdifX += relativeX - segment[segment.length - 4];\n\t\t\t\tdifY += relativeY - segment[segment.length - 3];\n\t\t\t}\n\t\t\tif (!isRelative) {\n\t\t\t\trelativeX = relativeY = 0;\n\t\t\t}\n\t\t\tsegment.push(difX, difY, x,\ty, (relativeX += a[i + 3] * 1), (relativeY += a[i + 4] * 1));\n\t\t\ti += 4;\n\n\t\t// \"Q\" (quadratic bezier)\n\t\t} else if (command === \"Q\") {\n\t\t\tdifX = relativeX + (x - relativeX) * twoThirds;\n\t\t\tdifY = relativeY + (y - relativeY) * twoThirds;\n\t\t\tif (!isRelative) {\n\t\t\t\trelativeX = relativeY = 0;\n\t\t\t}\n\t\t\trelativeX += a[i + 3] * 1;\n\t\t\trelativeY += a[i + 4] * 1;\n\t\t\tsegment.push(difX, difY, relativeX + (x - relativeX) * twoThirds, relativeY + (y - relativeY) * twoThirds, relativeX, relativeY);\n\t\t\ti += 4;\n\n\t\t// \"T\" (continuation of quadratic bezier)\n\t\t} else if (command === \"T\") {\n\t\t\tdifX = relativeX - segment[segment.length - 4];\n\t\t\tdifY = relativeY - segment[segment.length - 3];\n\t\t\tsegment.push(relativeX + difX, relativeY + difY, x + ((relativeX + difX * 1.5) - x) * twoThirds, y + ((relativeY + difY * 1.5) - y) * twoThirds, (relativeX = x), (relativeY = y));\n\t\t\ti += 2;\n\n\t\t// \"H\" (horizontal line)\n\t\t} else if (command === \"H\") {\n\t\t\tline(relativeX, relativeY, (relativeX = x), relativeY);\n\t\t\ti += 1;\n\n\t\t// \"V\" (vertical line)\n\t\t} else if (command === \"V\") {\n\t\t\t//adjust values because the first (and only one) isn't x in this case, it's y.\n\t\t\tline(relativeX, relativeY, relativeX, (relativeY = x + (isRelative ? relativeY - relativeX : 0)));\n\t\t\ti += 1;\n\n\t\t// \"L\" (line) or \"Z\" (close)\n\t\t} else if (command === \"L\" || command === \"Z\") {\n\t\t\tif (command === \"Z\") {\n\t\t\t\tx = startX;\n\t\t\t\ty = startY;\n\t\t\t\tsegment.closed = true;\n\t\t\t}\n\t\t\tif (command === \"L\" || _abs(relativeX - x) > 0.5 || _abs(relativeY - y) > 0.5) {\n\t\t\t\tline(relativeX, relativeY, x, y);\n\t\t\t\tif (command === \"L\") {\n\t\t\t\t\ti += 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\trelativeX = x;\n\t\t\trelativeY = y;\n\n\t\t// \"A\" (arc)\n\t\t} else if (command === \"A\") {\n\t\t\tbeziers = arcToSegment(relativeX, relativeY, +a[i+1], +a[i+2], +a[i+3], +a[i+4], +a[i+5], (isRelative ? relativeX : 0) + a[i+6]*1, (isRelative ? relativeY : 0) + a[i+7]*1);\n\t\t\tif (beziers) {\n\t\t\t\tfor (j = 0; j < beziers.length; j++) {\n\t\t\t\t\tsegment.push(beziers[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\trelativeX = segment[segment.length-2];\n\t\t\trelativeY = segment[segment.length-1];\n\t\t\ti += 7;\n\n\t\t} else {\n\t\t\tconsole.log(errorMessage);\n\t\t}\n\t}\n\ti = segment.length;\n\tif (i < 6) { //in case there's odd SVG like a M0,0 command at the very end.\n\t\tpath.pop();\n\t\ti = 0;\n\t} else if (segment[0] === segment[i-2] && segment[1] === segment[i-1]) {\n\t\tsegment.closed = true;\n\t}\n\tpath.totalPoints = points + i;\n\treturn path;\n}\n\n//populates the points array in alternating x/y values (like [x, y, x, y...] instead of individual point objects [{x, y}, {x, y}...] to conserve memory and stay in line with how we're handling segment arrays\nexport function bezierToPoints(x1, y1, x2, y2, x3, y3, x4, y4, threshold, points, index) {\n\tlet x12 = (x1 + x2) / 2,\n\t\ty12 = (y1 + y2) / 2,\n\t\tx23 = (x2 + x3) / 2,\n\t\ty23 = (y2 + y3) / 2,\n\t\tx34 = (x3 + x4) / 2,\n\t\ty34 = (y3 + y4) / 2,\n\t\tx123 = (x12 + x23) / 2,\n\t\ty123 = (y12 + y23) / 2,\n\t\tx234 = (x23 + x34) / 2,\n\t\ty234 = (y23 + y34) / 2,\n\t\tx1234 = (x123 + x234) / 2,\n\t\ty1234 = (y123 + y234) / 2,\n\t\tdx = x4 - x1,\n\t\tdy = y4 - y1,\n\t\td2 = _abs((x2 - x4) * dy - (y2 - y4) * dx),\n\t\td3 = _abs((x3 - x4) * dy - (y3 - y4) * dx),\n\t\tlength;\n\tif (!points) {\n\t\tpoints = [x1, y1, x4, y4];\n\t\tindex = 2;\n\t}\n\tpoints.splice(index || points.length - 2, 0, x1234, y1234);\n\tif ((d2 + d3) * (d2 + d3) > threshold * (dx * dx + dy * dy)) {\n\t\tlength = points.length;\n\t\tbezierToPoints(x1, y1, x12, y12, x123, y123, x1234, y1234, threshold, points, index);\n\t\tbezierToPoints(x1234, y1234, x234, y234, x34, y34, x4, y4, threshold, points, index + 2 + (points.length - length));\n\t}\n\treturn points;\n}\n\n/*\nfunction getAngleBetweenPoints(x0, y0, x1, y1, x2, y2) { //angle between 3 points in radians\n\tvar dx1 = x1 - x0,\n\t\tdy1 = y1 - y0,\n\t\tdx2 = x2 - x1,\n\t\tdy2 = y2 - y1,\n\t\tdx3 = x2 - x0,\n\t\tdy3 = y2 - y0,\n\t\ta = dx1 * dx1 + dy1 * dy1,\n\t\tb = dx2 * dx2 + dy2 * dy2,\n\t\tc = dx3 * dx3 + dy3 * dy3;\n\treturn Math.acos( (a + b - c) / _sqrt(4 * a * b) );\n},\n*/\n\n//pointsToSegment() doesn't handle flat coordinates (where y is always 0) the way we need (the resulting control points are always right on top of the anchors), so this function basically makes the control points go directly up and down, varying in length based on the curviness (more curvy, further control points)\nexport function flatPointsToSegment(points, curviness=1) {\n\tlet x = points[0],\n\t\ty = 0,\n\t\tsegment = [x, y],\n\t\ti = 2;\n\tfor (; i < points.length; i+=2) {\n\t\tsegment.push(\n\t\t\tx,\n\t\t\ty,\n\t\t\tpoints[i],\n\t\t\t(y = (points[i] - x) * curviness / 2),\n\t\t\t(x = points[i]),\n\t\t\t-y\n\t\t);\n\t}\n\treturn segment;\n}\n\n//points is an array of x/y points, like [x, y, x, y, x, y]\nexport function pointsToSegment(points, curviness, cornerThreshold) {\n\t//points = simplifyPoints(points, tolerance);\n\tlet l = points.length-2,\n\t\tx = +points[0],\n\t\ty = +points[1],\n\t\tnextX = +points[2],\n\t\tnextY = +points[3],\n\t\tsegment = [x, y, x, y],\n\t\tdx2 = nextX - x,\n\t\tdy2 = nextY - y,\n\t\tprevX, prevY, angle, slope, i, dx1, dx3, dy1, dy3, d1, d2, a, b, c;\n\tif (isNaN(cornerThreshold)) {\n\t\tcornerThreshold = Math.PI / 10;\n\t}\n\tcurviness = (curviness || curviness === 0) ? +curviness : 1;\n\tfor (i = 2; i < l; i+=2) {\n\t\tprevX = x;\n\t\tprevY = y;\n\t\tx = nextX;\n\t\ty = nextY;\n\t\tnextX = +points[i+2];\n\t\tnextY = +points[i+3];\n\t\tdx1 = dx2;\n\t\tdy1 = dy2;\n\t\tdx2 = nextX - x;\n\t\tdy2 = nextY - y;\n\t\tdx3 = nextX - prevX;\n\t\tdy3 = nextY - prevY;\n\t\ta = dx1 * dx1 + dy1 * dy1;\n\t\tb = dx2 * dx2 + dy2 * dy2;\n\t\tc = dx3 * dx3 + dy3 * dy3;\n\t\tangle = Math.acos( (a + b - c) / _sqrt(4 * a * b) ); //angle between the 3 points\n\t\td2 = (angle / Math.PI) * curviness; //temporary precalculation for speed (reusing d2 variable)\n\t\td1 = _sqrt(a) * d2; //the tighter the angle, the shorter we make the handles in proportion.\n\t\td2 *= _sqrt(b);\n\t\tif (x !== prevX || y !== prevY) {\n\t\t\tif (angle > cornerThreshold) {\n\t\t\t\tslope = _atan2(dy3, dx3);\n\t\t\t\tsegment.push(\n\t\t\t\t\t_round(x - _cos(slope) * d1), //first control point\n\t\t\t\t\t_round(y - _sin(slope) * d1),\n\t\t\t\t\t_round(x), //anchor\n\t\t\t\t\t_round(y),\n\t\t\t\t\t_round(x + _cos(slope) * d2), //second control point\n\t\t\t\t\t_round(y + _sin(slope) * d2)\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tslope = _atan2(dy1, dx1);\n\t\t\t\tsegment.push(\n\t\t\t\t\t_round(x - _cos(slope) * d1), //first control point\n\t\t\t\t\t_round(y - _sin(slope) * d1));\n\t\t\t\tslope = _atan2(dy2, dx2);\n\t\t\t\tsegment.push(\n\t\t\t\t\t_round(x), //anchor\n\t\t\t\t\t_round(y),\n\t\t\t\t\t_round(x + _cos(slope) * d2), //second control point\n\t\t\t\t\t_round(y + _sin(slope) * d2)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\tsegment.push(_round(nextX), _round(nextY), _round(nextX), _round(nextY));\n\treturn segment;\n}\n\n//returns the squared distance between an x/y coordinate and a segment between x1/y1 and x2/y2\nfunction pointToSegDist(x, y, x1, y1, x2, y2) {\n\tlet dx = x2 - x1,\n\t\tdy = y2 - y1,\n\t\tt;\n\tif (dx || dy) {\n\t\tt = ((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy);\n\t\tif (t > 1) {\n\t\t\tx1 = x2;\n\t\t\ty1 = y2;\n\t\t} else if (t > 0) {\n\t\t\tx1 += dx * t;\n\t\t\ty1 += dy * t;\n\t\t}\n\t}\n\treturn (x - x1) ** 2 + (y - y1) ** 2;\n}\n\nfunction simplifyStep(points, first, last, tolerance, simplified) {\n\tlet maxSqDist = tolerance,\n\t\tfirstX = points[first],\n\t\tfirstY = points[first+1],\n\t\tlastX = points[last],\n\t\tlastY = points[last+1],\n\t\tindex, i, d;\n\tfor (i = first + 2; i < last; i += 2) {\n\t\td = pointToSegDist(points[i], points[i+1], firstX, firstY, lastX, lastY);\n\t\tif (d > maxSqDist) {\n\t\t\tindex = i;\n\t\t\tmaxSqDist = d;\n\t\t}\n\t}\n\tif (maxSqDist > tolerance) {\n\t\tif (index - first > 2) {\n\t\t\tsimplifyStep(points, first, index, tolerance, simplified);\n\t\t}\n\t\tsimplified.push(points[index], points[index+1]);\n\t\tif (last - index > 2) {\n\t\t\tsimplifyStep(points, index, last, tolerance, simplified);\n\t\t}\n\t}\n}\n\n//points is an array of x/y values like [x, y, x, y, x, y]\nexport function simplifyPoints(points, tolerance) {\n\tlet prevX = parseFloat(points[0]),\n\t\tprevY = parseFloat(points[1]),\n\t\ttemp = [prevX, prevY],\n\t\tl = points.length - 2,\n\t\ti, x, y, dx, dy, result, last;\n\ttolerance = (tolerance || 1) ** 2;\n\tfor (i = 2; i < l; i += 2) {\n\t\tx = parseFloat(points[i]);\n\t\ty = parseFloat(points[i+1]);\n\t\tdx = prevX - x;\n\t\tdy = prevY - y;\n\t\tif (dx * dx + dy * dy > tolerance) {\n\t\t\ttemp.push(x, y);\n\t\t\tprevX = x;\n\t\t\tprevY = y;\n\t\t}\n\t}\n\ttemp.push(parseFloat(points[l]), parseFloat(points[l+1]));\n\tlast = temp.length - 2;\n\tresult = [temp[0], temp[1]];\n\tsimplifyStep(temp, 0, last, tolerance, result);\n\tresult.push(temp[last], temp[last+1]);\n\treturn result;\n}\n\nfunction getClosestProgressOnBezier(iterations, px, py, start, end, slices, x0, y0, x1, y1, x2, y2, x3, y3) {\n\tlet inc = (end - start) / slices,\n\t\tbest = 0,\n\t\tt = start,\n\t\tx, y, d, dx, dy, inv;\n\t_bestDistance = _largeNum;\n\twhile (t <= end) {\n\t\tinv = 1 - t;\n\t\tx = inv * inv * inv * x0 + 3 * inv * inv * t * x1 + 3 * inv * t * t * x2 + t * t * t * x3;\n\t\ty = inv * inv * inv * y0 + 3 * inv * inv * t * y1 + 3 * inv * t * t * y2 + t * t * t * y3;\n\t\tdx = x - px;\n\t\tdy = y - py;\n\t\td = dx * dx + dy * dy;\n\t\tif (d < _bestDistance) {\n\t\t\t_bestDistance = d;\n\t\t\tbest = t;\n\t\t}\n\t\tt += inc;\n\t}\n\treturn (iterations > 1) ? getClosestProgressOnBezier(iterations - 1, px, py, Math.max(best - inc, 0), Math.min(best + inc, 1), slices, x0, y0, x1, y1, x2, y2, x3, y3) : best;\n}\n\nexport function getClosestData(rawPath, x, y, slices) { //returns an object with the closest j, i, and t (j is the segment index, i is the index of the point in that segment, and t is the time/progress along that bezier)\n\tlet closest = {j:0, i:0, t:0},\n\t\tbestDistance = _largeNum,\n\t\ti, j, t, segment;\n\tfor (j = 0; j < rawPath.length; j++) {\n\t\tsegment = rawPath[j];\n\t\tfor (i = 0; i < segment.length; i+=6) {\n\t\t\tt = getClosestProgressOnBezier(1, x, y, 0, 1, slices || 20, segment[i], segment[i+1], segment[i+2], segment[i+3], segment[i+4], segment[i+5], segment[i+6], segment[i+7]);\n\t\t\tif (bestDistance > _bestDistance) {\n\t\t\t\tbestDistance = _bestDistance;\n\t\t\t\tclosest.j = j;\n\t\t\t\tclosest.i = i;\n\t\t\t\tclosest.t = t;\n\t\t\t}\n\t\t}\n\t}\n\treturn closest;\n}\n\n//subdivide a Segment closest to a specific x,y coordinate\nexport function subdivideSegmentNear(x, y, segment, slices, iterations) {\n\tlet l = segment.length,\n\t\tbestDistance = _largeNum,\n\t\tbestT = 0,\n\t\tbestSegmentIndex = 0,\n\t\tt, i;\n\tslices = slices || 20;\n\titerations = iterations || 3;\n\tfor (i = 0; i < l; i += 6) {\n\t\tt = getClosestProgressOnBezier(1, x, y, 0, 1, slices, segment[i], segment[i+1], segment[i+2], segment[i+3], segment[i+4], segment[i+5], segment[i+6], segment[i+7]);\n\t\tif (bestDistance > _bestDistance) {\n\t\t\tbestDistance = _bestDistance;\n\t\t\tbestT = t;\n\t\t\tbestSegmentIndex = i;\n\t\t}\n\t}\n\tt = getClosestProgressOnBezier(iterations, x, y, bestT - 0.05, bestT + 0.05, slices, segment[bestSegmentIndex], segment[bestSegmentIndex+1], segment[bestSegmentIndex+2], segment[bestSegmentIndex+3], segment[bestSegmentIndex+4], segment[bestSegmentIndex+5], segment[bestSegmentIndex+6], segment[bestSegmentIndex+7]);\n\tsubdivideSegment(segment, bestSegmentIndex, t);\n\treturn bestSegmentIndex + 6;\n}\n\n/*\nTakes any of the following and converts it to an all Cubic Bezier SVG data string:\n- A <path> data string like \"M0,0 L2,4 v20,15 H100\"\n- A RawPath, like [[x, y, x, y, x, y, x, y][[x, y, x, y, x, y, x, y]]\n- A Segment, like [x, y, x, y, x, y, x, y]\n\nNote: all numbers are rounded down to the closest 0.001 to minimize memory, maximize speed, and avoid odd numbers like 1e-13\n*/\nexport function rawPathToString(rawPath) {\n\tif (_isNumber(rawPath[0])) { //in case a segment is passed in instead\n\t\trawPath = [rawPath];\n\t}\n\tlet result = \"\",\n\t\tl = rawPath.length,\n\t\tsl, s, i, segment;\n\tfor (s = 0; s < l; s++) {\n\t\tsegment = rawPath[s];\n\t\tresult += \"M\" + _round(segment[0]) + \",\" + _round(segment[1]) + \" C\";\n\t\tsl = segment.length;\n\t\tfor (i = 2; i < sl; i++) {\n\t\t\tresult += _round(segment[i++]) + \",\" + _round(segment[i++]) + \" \" + _round(segment[i++]) + \",\" + _round(segment[i++]) + \" \" + _round(segment[i++]) + \",\" + _round(segment[i]) + \" \";\n\t\t}\n\t\tif (segment.closed) {\n\t\t\tresult += \"z\";\n\t\t}\n\t}\n\treturn result;\n}\n\n/*\n// takes a segment with coordinates [x, y, x, y, ...] and converts the control points into angles and lengths [x, y, angle, length, angle, length, x, y, angle, length, ...] so that it animates more cleanly and avoids odd breaks/kinks. For example, if you animate from 1 o'clock to 6 o'clock, it'd just go directly/linearly rather than around. So the length would be very short in the middle of the tween.\nexport function cpCoordsToAngles(segment, copy) {\n\tvar result = copy ? segment.slice(0) : segment,\n\t\tx, y, i;\n\tfor (i = 0; i < segment.length; i+=6) {\n\t\tx = segment[i+2] - segment[i];\n\t\ty = segment[i+3] - segment[i+1];\n\t\tresult[i+2] = Math.atan2(y, x);\n\t\tresult[i+3] = Math.sqrt(x * x + y * y);\n\t\tx = segment[i+6] - segment[i+4];\n\t\ty = segment[i+7] - segment[i+5];\n\t\tresult[i+4] = Math.atan2(y, x);\n\t\tresult[i+5] = Math.sqrt(x * x + y * y);\n\t}\n\treturn result;\n}\n\n// takes a segment that was converted with cpCoordsToAngles() to have angles and lengths instead of coordinates for the control points, and converts it BACK into coordinates.\nexport function cpAnglesToCoords(segment, copy) {\n\tvar result = copy ? segment.slice(0) : segment,\n\t\tlength = segment.length,\n\t\trnd = 1000,\n\t\tangle, l, i, j;\n\tfor (i = 0; i < length; i+=6) {\n\t\tangle = segment[i+2];\n\t\tl = segment[i+3]; //length\n\t\tresult[i+2] = (((segment[i] + Math.cos(angle) * l) * rnd) | 0) / rnd;\n\t\tresult[i+3] = (((segment[i+1] + Math.sin(angle) * l) * rnd) | 0) / rnd;\n\t\tangle = segment[i+4];\n\t\tl = segment[i+5]; //length\n\t\tresult[i+4] = (((segment[i+6] - Math.cos(angle) * l) * rnd) | 0) / rnd;\n\t\tresult[i+5] = (((segment[i+7] - Math.sin(angle) * l) * rnd) | 0) / rnd;\n\t}\n\treturn result;\n}\n\n//adds an \"isSmooth\" array to each segment and populates it with a boolean value indicating whether or not it's smooth (the control points have basically the same slope). For any smooth control points, it converts the coordinates into angle (x, in radians) and length (y) and puts them into the same index value in a smoothData array.\nexport function populateSmoothData(rawPath) {\n\tlet j = rawPath.length,\n\t\tsmooth, segment, x, y, x2, y2, i, l, a, a2, isSmooth, smoothData;\n\twhile (--j > -1) {\n\t\tsegment = rawPath[j];\n\t\tisSmooth = segment.isSmooth = segment.isSmooth || [0, 0, 0, 0];\n\t\tsmoothData = segment.smoothData = segment.smoothData || [0, 0, 0, 0];\n\t\tisSmooth.length = 4;\n\t\tl = segment.length - 2;\n\t\tfor (i = 6; i < l; i += 6) {\n\t\t\tx = segment[i] - segment[i - 2];\n\t\t\ty = segment[i + 1] - segment[i - 1];\n\t\t\tx2 = segment[i + 2] - segment[i];\n\t\t\ty2 = segment[i + 3] - segment[i + 1];\n\t\t\ta = _atan2(y, x);\n\t\t\ta2 = _atan2(y2, x2);\n\t\t\tsmooth = (Math.abs(a - a2) < 0.09);\n\t\t\tif (smooth) {\n\t\t\t\tsmoothData[i - 2] = a;\n\t\t\t\tsmoothData[i + 2] = a2;\n\t\t\t\tsmoothData[i - 1] = _sqrt(x * x + y * y);\n\t\t\t\tsmoothData[i + 3] = _sqrt(x2 * x2 + y2 * y2);\n\t\t\t}\n\t\t\tisSmooth.push(smooth, smooth, 0, 0, smooth, smooth);\n\t\t}\n\t\t//if the first and last points are identical, check to see if there's a smooth transition. We must handle this a bit differently due to their positions in the array.\n\t\tif (segment[l] === segment[0] && segment[l+1] === segment[1]) {\n\t\t\tx = segment[0] - segment[l-2];\n\t\t\ty = segment[1] - segment[l-1];\n\t\t\tx2 = segment[2] - segment[0];\n\t\t\ty2 = segment[3] - segment[1];\n\t\t\ta = _atan2(y, x);\n\t\t\ta2 = _atan2(y2, x2);\n\t\t\tif (Math.abs(a - a2) < 0.09) {\n\t\t\t\tsmoothData[l-2] = a;\n\t\t\t\tsmoothData[2] = a2;\n\t\t\t\tsmoothData[l-1] = _sqrt(x * x + y * y);\n\t\t\t\tsmoothData[3] = _sqrt(x2 * x2 + y2 * y2);\n\t\t\t\tisSmooth[l-2] = isSmooth[l-1] = true; //don't change indexes 2 and 3 because we'll trigger everything from the END, and this will optimize file size a bit.\n\t\t\t}\n\t\t}\n\t}\n\treturn rawPath;\n}\nexport function pointToScreen(svgElement, point) {\n\tif (arguments.length < 2) { //by default, take the first set of coordinates in the path as the point\n\t\tlet rawPath = getRawPath(svgElement);\n\t\tpoint = svgElement.ownerSVGElement.createSVGPoint();\n\t\tpoint.x = rawPath[0][0];\n\t\tpoint.y = rawPath[0][1];\n\t}\n\treturn point.matrixTransform(svgElement.getScreenCTM());\n}\n\n*/","/*!\n * matrix 3.0.0\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _doc, _win, _docElement, _body,\t_divContainer, _svgContainer, _identityMatrix,\n\t_transformProp = \"transform\",\n\t_transformOriginProp = _transformProp + \"Origin\",\n\t_setDoc = element => {\n\t\tlet doc = element.ownerDocument || element;\n\t\tif (!(_transformProp in element.style) && \"msTransform\" in element.style) { //to improve compatibility with old Microsoft browsers\n\t\t\t_transformProp = \"msTransform\";\n\t\t\t_transformOriginProp = _transformProp + \"Origin\";\n\t\t}\n\t\twhile (doc.parentNode && (doc = doc.parentNode)) {\t}\n\t\t_win = window;\n\t\t_identityMatrix = new Matrix2D();\n\t\tif (doc) {\n\t\t\t_doc = doc;\n\t\t\t_docElement = doc.documentElement;\n\t\t\t_body = doc.body;\n\t\t}\n\t\treturn doc;\n\t},\n\t_svgTemps = [], //we create 3 elements for SVG, and 3 for other DOM elements and cache them for performance reasons. They get nested in _divContainer and _svgContainer so that just one element is added to the DOM on each successive attempt. Again, performance is key.\n\t_divTemps = [],\n\t_getDocScrollTop = () => _win.pageYOffset || _doc.scrollTop || _docElement.scrollTop || _body.scrollTop || 0,\n\t_getDocScrollLeft = () => _win.pageXOffset || _doc.scrollLeft || _docElement.scrollLeft || _body.scrollLeft || 0,\n\t_svgOwner = element => element.ownerSVGElement || ((element.tagName + \"\").toLowerCase() === \"svg\" ? element : null),\n\t_createSibling = (element, i) => {\n\t\tif (element.parentNode && (_doc || _setDoc(element))) {\n\t\t\tlet svg = _svgOwner(element),\n\t\t\t\tns = svg ? (svg.getAttribute(\"xmlns\") || \"http://www.w3.org/2000/svg\") : \"http://www.w3.org/1999/xhtml\",\n\t\t\t\ttype = svg ? (i ? \"rect\" : \"g\") : \"div\",\n\t\t\t\tx = i !== 2 ? 0 : 100,\n\t\t\t\ty = i === 3 ? 100 : 0,\n\t\t\t\tcss = \"position:absolute;display:block;\",\n\t\t\t\te = _doc.createElementNS ? _doc.createElementNS(ns.replace(/^https/, \"http\"), type) : _doc.createElement(type);\n\t\t\tif (i) {\n\t\t\t\tif (!svg) {\n\t\t\t\t\tif (!_divContainer) {\n\t\t\t\t\t\t_divContainer = _createSibling(element);\n\t\t\t\t\t\t_divContainer.style.cssText = css;\n\t\t\t\t\t}\n\t\t\t\t\te.style.cssText = css + \"width:1px;height:1px;top:\" + y + \"px;left:\" + x + \"px\";\n\t\t\t\t\t_divContainer.appendChild(e);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (!_svgContainer) {\n\t\t\t\t\t\t_svgContainer = _createSibling(element);\n\t\t\t\t\t}\n\t\t\t\t\te.setAttribute(\"width\", 1);\n\t\t\t\t\te.setAttribute(\"height\", 1);\n\t\t\t\t\te.setAttribute(\"transform\", \"translate(\" + x + \",\" + y + \")\");\n\t\t\t\t\t_svgContainer.appendChild(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn e;\n\t\t}\n\t\tthrow \"Need document and parent.\";\n\t},\n\t_placeSiblings = element => {\n\t\tlet svg = _svgOwner(element),\n\t\t\tisRootSVG = element === svg,\n\t\t\tsiblings = svg ? _svgTemps : _divTemps,\n\t\t\tcontainer, m, b, x, y;\n\t\tif (element === _win) {\n\t\t\treturn element;\n\t\t}\n\t\tif (!siblings.length) {\n\t\t\tsiblings.push(_createSibling(element, 1), _createSibling(element, 2), _createSibling(element, 3));\n\t\t}\n\t\tcontainer = svg ? _svgContainer : _divContainer;\n\t\tif (svg) {\n\t\t\tb = isRootSVG ? {x:0, y:0} : element.getBBox();\n\t\t\tm = element.transform.baseVal;\n\t\t\tif (m.length) {\n\t\t\t\tm = m.consolidate().matrix;\n\t\t\t\tx = m.a * b.x + m.c * b.y;\n\t\t\t\ty = m.b * b.x + m.d * b.y;\n\t\t\t} else {\n\t\t\t\tm = _identityMatrix;\n\t\t\t\tif (element.tagName.toLowerCase() === \"g\") {\n\t\t\t\t\tx = y = 0;\n\t\t\t\t} else {\n\t\t\t\t\tx = b.x;\n\t\t\t\t\ty = b.y;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontainer.setAttribute(\"transform\", \"matrix(\" + m.a + \",\" + m.b + \",\" + m.c + \",\" + m.d + \",\" + (m.e + x) + \",\" + (m.f + y) + \")\");\n\t\t\t(isRootSVG ? svg : element.parentNode).appendChild(container);\n\t\t} else {\n\t\t\tcontainer.style.top = element.offsetTop + \"px\";\n\t\t\tcontainer.style.left = element.offsetLeft + \"px\";\n\t\t\tm = _win.getComputedStyle(element);\n\t\t\tcontainer.style[_transformProp] = m[_transformProp];\n\t\t\tcontainer.style[_transformOriginProp] = m[_transformOriginProp];\n\t\t\telement.parentNode.appendChild(container);\n\t\t}\n\t\treturn container;\n\t},\n\t_setMatrix = (m, a, b, c, d, e, f) => {\n\t\tm.a = a;\n\t\tm.b = b;\n\t\tm.c = c;\n\t\tm.d = d;\n\t\tm.e = e;\n\t\tm.f = f;\n\t\treturn m;\n\t};\n\nexport class Matrix2D {\n\tconstructor(a=1, b=0, c=0, d=1, e=0, f=0) {\n\t\t_setMatrix(this, a, b, c, d, e, f);\n\t}\n\n\tinverse() {\n\t\tlet {a, b, c, d, e, f} = this,\n\t\t\tdeterminant = (a * d - b * c);\n\t\treturn _setMatrix(\n\t\t\tthis,\n\t\t\td / determinant,\n\t\t\t-b / determinant,\n\t\t\t-c / determinant,\n\t\t\ta / determinant,\n\t\t\t(c * f - d * e) / determinant,\n\t\t\t-(a * f - b * e) / determinant\n\t\t);\n\t}\n\n\tmultiply(matrix) {\n\t\tlet {a, b, c, d, e, f} = this,\n\t\t\ta2 = matrix.a,\n\t\t\tb2 = matrix.c,\n\t\t\tc2 = matrix.b,\n\t\t\td2 = matrix.d,\n\t\t\te2 = matrix.e,\n\t\t\tf2 = matrix.f;\n\t\treturn _setMatrix(this,\n\t\t\ta2 * a + c2 * c,\n\t\t\ta2 * b + c2 * d,\n\t\t\tb2 * a + d2 * c,\n\t\t\tb2 * b + d2 * d,\n\t\t\te + e2 * a + f2 * c,\n\t\t\tf + e2 * b + f2 * d);\n\t}\n\n\tequals(matrix) {\n\t\tlet {a, b, c, d, e, f} = this;\n\t\treturn (a === matrix.a && b === matrix.b && c === matrix.c && d === matrix.d && e === matrix.e && f === matrix.f);\n\t}\n\n\tapply(point, decoratee={}) {\n\t\tlet {x, y} = point,\n\t\t\t{a, b, c, d, e, f} = this;\n\t\tdecoratee.x = x * a + y * c + e;\n\t\tdecoratee.y = x * b + y * d + f;\n\t\treturn decoratee;\n\t}\n\n}\n\n//feed in an element and it'll return a 2D matrix (optionally inverted) so that you can translate between coordinate spaces.\n// Inverting lets you translate a global point into a local coordinate space. No inverting lets you go the other way.\n// We needed this to work around various browser bugs, like Firefox doesn't accurately report getScreenCTM() when there\n// are transforms applied to ancestor elements.\n// The matrix math to convert any x/y coordinate is:\n// tx = m.a * x + m.c * y + m.e\n// ty = m.b * x + m.d * y + m.f\nexport function getGlobalMatrix(element, inverse) {\n\tif (!element.parentNode) {\n\t\treturn new Matrix2D();\n\t}\n\tlet svg = _svgOwner(element),\n\t\ttemps = svg ? _svgTemps : _divTemps,\n\t\tcontainer = _placeSiblings(element),\n\t\tb1 = temps[0].getBoundingClientRect(),\n\t\tb2 = temps[1].getBoundingClientRect(),\n\t\tb3 = temps[2].getBoundingClientRect(),\n\t\tparent = container.parentNode,\n\t\tm = new Matrix2D(\n\t\t\t(b2.left - b1.left) / 100,\n\t\t\t(b2.top - b1.top) / 100,\n\t\t\t(b3.left - b1.left) / 100,\n\t\t\t(b3.top - b1.top) / 100,\n\t\t\tb1.left + _getDocScrollLeft(),\n\t\t\tb1.top + _getDocScrollTop()\n\t\t);\n\tparent.removeChild(container);\n\treturn inverse ? m.inverse() : m;\n}\n","/*!\n * MotionPathPlugin 3.0.0\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nimport { getRawPath, cacheRawPathMeasurements, getPositionOnPath, pointsToSegment, flatPointsToSegment, sliceRawPath, stringToRawPath, rawPathToString, transformRawPath, convertToPath } from \"./utils/paths.js\";\nimport { getGlobalMatrix } from \"./utils/matrix.js\";\n\nlet _xProps = [\"x\",\"translateX\",\"left\",\"marginLeft\"],\n\t_yProps = [\"y\",\"translateY\",\"top\",\"marginTop\"],\n\t_DEG2RAD = Math.PI / 180,\n\tgsap, PropTween, _getUnit, _toArray,\n\t_getGSAP = () => gsap || (typeof(window) !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_populateSegmentFromArray = (segment, values, property, mode) => { //mode: 0 = x but don't fill y yet, 1 = y.\n\t\tlet l = values.length,\n\t\t\tsi = mode,\n\t\t\ti = 0;\n\t\tfor (; i < l; i++) {\n\t\t\tsegment[si] = parseFloat(values[i][property]);\n\t\t\tsi += 2;\n\t\t}\n\t\treturn segment;\n\t},\n\t_getPropNum = (target, prop, unit) => parseFloat(target._gsap.get(target, prop, unit || \"px\")) || 0,\n\t_relativize = segment => {\n\t\tlet x = segment[0],\n\t\t\ty = segment[1],\n\t\t\ti;\n\t\tfor (i = 2; i < segment.length; i+=2) {\n\t\t\tx = (segment[i] += x);\n\t\t\ty = (segment[i+1] += y);\n\t\t}\n\t},\n\t_segmentToRawPath = (plugin, segment, target, x, y, slicer, vars) => {\n\t\tif (vars.type === \"cubic\") {\n\t\t\tsegment = [segment];\n\t\t} else {\n\t\t\tsegment.unshift(_getPropNum(target, x, vars.unitX), y ? _getPropNum(target, y, vars.unitY) : 0);\n\t\t\tif (vars.relative) {\n\t\t\t\t_relativize(segment);\n\t\t\t}\n\t\t\tlet pointFunc = y ? pointsToSegment : flatPointsToSegment;\n\t\t\tsegment = [pointFunc(segment, vars.curviness)];\n\t\t}\n\t\tsegment = slicer(_align(segment, target, vars));\n\t\t_addDimensionalPropTween(plugin, target, x, segment, \"x\", vars.unitX);\n\t\tif (y) {\n\t\t\t_addDimensionalPropTween(plugin, target, y, segment, \"y\", vars.unitY);\n\t\t}\n\t\treturn cacheRawPathMeasurements(segment, vars.resolution || (vars.curviness === 0 ? 20 : 12)); //when curviness is 0, it creates control points right on top of the anchors which makes it more sensitive to resolution, thus we change the default accordingly.\n\t},\n\t_emptyFunc = v => v,\n\t_align = (rawPath, target, {align, matrix, offsetX, offsetY}) => {\n\t\tlet x, y, tween, targetMatrix, alignTarget, alignPath, alignMatrix, invertedMatrix, tx, ty;\n\t\tif (!rawPath || !rawPath.length) {\n\t\t\treturn getRawPath(\"M0,0L0,0\");\n\t\t}\n\t\tif (align) {\n\t\t\tif (align === \"self\" || ((alignTarget = _toArray(align)[0] || target) === target)) {\n\t\t\t\tx = _getPropNum(target, \"x\") - rawPath[0][0];\n\t\t\t\ty = _getPropNum(target, \"y\") - rawPath[0][1];\n\t\t\t\ttransformRawPath(rawPath, 1, 0, 0, 1, x, y);\n\t\t\t} else {\n\t\t\t\ttween = gsap.to(target, {xPercent:0, yPercent:0, x:0, y:0}).progress(1); //get rid of transforms, otherwise they'll throw off the measurements.\n\t\t\t\ttargetMatrix = getGlobalMatrix(target); //we cannot use something like getScreenCTM() because of a major bug in Firefox that has existed for years and prevents values from being reported correctly when an ancestor element has transforms applied. Our proprietary getGlobalMatrix() works across all browsers.\n\t\t\t\ttween.render(-1).kill();\n\t\t\t\tif (alignTarget.getTotalLength && alignTarget.tagName.toLowerCase() === \"path\") { //path\n\t\t\t\t\talignPath = getRawPath(alignTarget);\n\t\t\t\t\talignMatrix = getGlobalMatrix(alignTarget.parentNode);\n\t\t\t\t\tx = alignPath[0][0];\n\t\t\t\t\ty = alignPath[0][1];\n\t\t\t\t} else {\n\t\t\t\t\talignMatrix = getGlobalMatrix(alignTarget);\n\t\t\t\t\tx = 0;\n\t\t\t\t\ty = 0;\n\t\t\t\t}\n\t\t\t\ttx = alignMatrix.a * x + alignMatrix.c * y + alignMatrix.e - targetMatrix.e;\n\t\t\t\tty = alignMatrix.b * x + alignMatrix.d * y + alignMatrix.f - targetMatrix.f;\n\t\t\t\tinvertedMatrix = getGlobalMatrix(target.parentNode, true);\n\t\t\t\tx = invertedMatrix.a * tx + invertedMatrix.c * ty;\n\t\t\t\ty = invertedMatrix.b * tx + invertedMatrix.d * ty;\n\t\t\t\ttx = rawPath[0][0];\n\t\t\t\tty = rawPath[0][1];\n\t\t\t\talignMatrix.multiply(invertedMatrix);\n\t\t\t\tx -= alignMatrix.a * tx + alignMatrix.c * ty;\n\t\t\t\ty -= alignMatrix.b * tx + alignMatrix.d * ty;\n\t\t\t\ttransformRawPath(rawPath, alignMatrix.a, alignMatrix.b, alignMatrix.c, alignMatrix.d, x, y);\n\t\t\t}\n\t\t}\n\t\tif (matrix) {\n\t\t\ttransformRawPath(rawPath, matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f);\n\t\t} else if (offsetX || offsetY) {\n\t\t\ttransformRawPath(rawPath, 1, 0, 0, 1, offsetX || 0, offsetY || 0);\n\t\t}\n\t\treturn rawPath;\n\t},\n\t_addDimensionalPropTween = (plugin, target, property, rawPath, pathProperty, forceUnit) => {\n\t\tlet cache = target._gsap,\n\t\t\tpt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _emptyFunc, 0, cache.set(target, property, plugin));\n\t\tpt.u = _getUnit(cache.get(target, property, forceUnit)) || 0;\n\t\tpt.path = rawPath;\n\t\tpt.pp = pathProperty;\n\t\tplugin._props.push(property);\n\t},\n\t_sliceModifier = (start, end) => rawPath => (start || end !== 1) ? sliceRawPath(rawPath, start, end) : rawPath;\n\n\nexport const MotionPathPlugin = {\n\tversion:\"3.0.0\",\n\tname:\"motionPath\",\n\tregister(core, Plugin, propTween) {\n\t\tgsap = core;\n\t\t_getUnit = gsap.utils.getUnit;\n\t\t_toArray = gsap.utils.toArray;\n\t\tPropTween = propTween;\n\t},\n\tinit(target, vars, tween, index, targets) {\n\t\tif (!gsap) {\n\t\t\tconsole.warn(\"Please gsap.registerPlugin(MotionPathPlugin)\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!(typeof(vars) === \"object\" && !vars.style) || !vars.path) {\n\t\t\tvars = {path:vars};\n\t\t}\n\t\tlet rawPaths = [],\n\t\t\tpath = vars.path,\n\t\t\tfirstObj = path[0],\n\t\t\tautoRotate = vars.autoRotate,\n\t\t\tslicer = _sliceModifier(vars.start, (\"end\" in vars) ? vars.end : 1),\n\t\t\trawPath, p, x, y;\n\t\tthis.rawPaths = rawPaths;\n\t\tthis.target = target;\n\t\tif ((this.rotate = (autoRotate || autoRotate === 0))) { //get the rotational data FIRST so that the setTransform() method is called in the correct order in the render() loop - rotation gets set last.\n\t\t\tthis.rOffset = parseFloat(autoRotate) || 0;\n\t\t\tthis.radians = !!vars.useRadians;\n\t\t\tthis.rProp = vars.rotation || \"rotation\"; // rotation property\n\t\t\tthis.rSet = target._gsap.set(target, this.rProp, this); // rotation setter\n\t\t\tthis.ru = _getUnit(target._gsap.get(target, this.rProp)) || 0; // rotation units\n\t\t}\n\t\tif (Array.isArray(path) && !(\"closed\" in path) && typeof(firstObj) !== \"number\") {\n\t\t\tfor (p in firstObj) {\n\t\t\t\tif (~_xProps.indexOf(p)) {\n\t\t\t\t\tx = p;\n\t\t\t\t} else if (~_yProps.indexOf(p)) {\n\t\t\t\t\ty = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x && y) { //correlated values\n\t\t\t\trawPaths.push(_segmentToRawPath(this, _populateSegmentFromArray(_populateSegmentFromArray([], path, x, 0), path, y, 1), target, vars.x || x, vars.y || y, slicer, vars));\n\t\t\t} else {\n\t\t\t\tx = y = 0;\n\t\t\t}\n\t\t\tfor (p in firstObj) {\n\t\t\t\tif (p !== x && p !== y) {\n\t\t\t\t\trawPaths.push(_segmentToRawPath(this, _populateSegmentFromArray([], path, p, 0), target, p, 0, slicer, vars));\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\trawPath = slicer(_align(getRawPath(vars.path), target, vars));\n\t\t\tcacheRawPathMeasurements(rawPath, vars.resolution);\n\t\t\trawPaths.push(rawPath);\n\t\t\t_addDimensionalPropTween(this, target, vars.x || \"x\", rawPath, \"x\", vars.unitX || \"px\");\n\t\t\t_addDimensionalPropTween(this, target, vars.y || \"y\", rawPath, \"y\", vars.unitY || \"px\");\n\t\t}\n\t},\n\trender(ratio, data) {\n\t\tlet rawPaths = data.rawPaths,\n\t\t\ti = rawPaths.length,\n\t\t\tpt = data._pt;\n\t\tif (ratio > 1) {\n\t\t\tratio = 1;\n\t\t} else if (ratio < 0) {\n\t\t\tratio = 0;\n\t\t}\n\t\twhile (i--) {\n\t\t\tgetPositionOnPath(rawPaths[i], ratio, !i && data.rotate, rawPaths[i]);\n\t\t}\n\t\twhile (pt) {\n\t\t\tpt.set(pt.t, pt.p, pt.path[pt.pp] + pt.u, pt.d, ratio);\n\t\t\tpt = pt._next;\n\t\t}\n\t\tif (data.rotate) {\n\t\t\tdata.rSet(data.target, data.rProp, rawPaths[0].angle * (data.radians ? _DEG2RAD : 1) + data.rOffset + data.ru, data, ratio);\n\t\t}\n\t},\n\tgetLength(path) {\n\t\treturn cacheRawPathMeasurements(getRawPath(path)).totalLength;\n\t},\n\tsliceRawPath: sliceRawPath,\n\tgetRawPath: getRawPath,\n\tpointsToSegment: pointsToSegment,\n\tstringToRawPath: stringToRawPath,\n\trawPathToString: rawPathToString,\n\ttransformRawPath: transformRawPath,\n\tconvertToPath: (targets, swap) => _toArray(targets).map(target => convertToPath(target, swap !== false)),\n\tgetGlobalMatrix: getGlobalMatrix,\n\tarrayToRawPath(value, vars) {\n\t\tvars = vars || {};\n\t\tlet segment = _populateSegmentFromArray(_populateSegmentFromArray([], value, vars.x || \"x\", 0), value, vars.y || \"y\", 1);\n\t\tif (vars.relative) {\n\t\t\t_relativize(segment);\n\t\t}\n\t\treturn [(vars.type === \"cubic\") ? segment : pointsToSegment(segment, vars.curviness)];\n\t}\n};\n\n_getGSAP() && gsap.registerPlugin(MotionPathPlugin);\n\nexport { MotionPathPlugin as default };"],"names":["_isString","value","_splitSegment","rawPath","segIndex","i","t","segment","shift","subdivideSegment","length","splice","slice","_appendOrMerge","index","prevSeg","l","concat","_svgPathExp","_numbersExp","_scientific","_selectorExp","_DEG2RAD","Math","PI","_RAD2DEG","_sin","sin","_cos","cos","_abs","abs","_sqrt","sqrt","_atan2","atan2","_largeNum","_isNumber","_temp","_temp2","_roundingNum","_wrapProgress","progress","round","_round","_copyMetaData","source","copy","totalLength","samples","lookup","minLength","resolution","totalPoints","getRawPath","e","test","document","querySelector","getAttribute","_gsPath","_dirty","stringToRawPath","console","warn","reverseSegment","y","reverse","reversed","_typeAttrs","rect","circle","ellipse","line","convertToPath","element","swap","data","x","r","ry","path","rcirc","rycirc","points","w","h","x2","x3","x4","x5","x6","y2","y3","y4","y5","y6","attr","type","tagName","toLowerCase","circ","getBBox","_createPath","ignore","name","createElementNS","call","attributes","nodeName","indexOf","setAttributeNS","nodeValue","_attrToObj","attrs","props","split","obj","rx","width","height","join","cx","cy","x1","y1","match","setAttribute","rawPathToString","_gsRawPath","parentNode","insertBefore","removeChild","getRotationAtBezierT","a","b","c","sliceRawPath","start","end","_isUndefined","loops","max","offset","min","sShift","eShift","totalSegments","j","copyRawPath","cacheRawPathMeasurements","wrap","s","getProgressData","eSeg","sSeg","eSegIndex","sSegIndex","ei","si","sameSegment","sameBezier","invertedOrder","angle","push","_reverseRawPath","skipOuter","measureSegment","startIndex","bezierQty","xd","xd1","yd","yd1","inv","lengthIndex","segLength","inc","endIndex","samplesIndex","prevLength","pathLength","ax","ay","cp1x","cp1y","cp2x","cp2y","x1a","y1a","x2a","y2a","decoratee","getPositionOnPath","includeAngle","point","result","transformRawPath","d","tx","ty","arcToSegment","lastX","lastY","largeArcFlag","sweepFlag","angleRad","cosAngle","sinAngle","TWOPI","dx2","dy2","x1_sq","y1_sq","radiiCheck","rx_sq","ry_sq","sq","coef","cx1","cy1","ux","uy","vx","vy","temp","angleStart","acos","angleExtent","isNaN","segments","ceil","angleIncrement","controlLength","ma","mb","mc","md","sx","sy","ex","ey","difX","difY","command","isRelative","startX","startY","beziers","prevCommand","replace","m","n","relativeX","relativeY","elements","errorMessage","log","toUpperCase","closed","pop","flatPointsToSegment","curviness","pointsToSegment","cornerThreshold","prevX","prevY","slope","dx1","dx3","dy1","dy3","d1","d2","nextX","nextY","sl","_svgOwner","ownerSVGElement","_createSibling","_doc","_setDoc","doc","ownerDocument","_transformProp","style","_transformOriginProp","_win","window","_identityMatrix","Matrix2D","_docElement","documentElement","_body","body","svg","ns","css","createElement","_svgContainer","appendChild","_divContainer","cssText","_setMatrix","f","_svgTemps","_divTemps","inverse","this","determinant","multiply","matrix","a2","b2","c2","e2","f2","equals","apply","getGlobalMatrix","temps","container","_placeSiblings","isRootSVG","siblings","transform","baseVal","consolidate","top","offsetTop","left","offsetLeft","getComputedStyle","b1","getBoundingClientRect","b3","parent","_getDocScrollLeft","pageXOffset","scrollLeft","_getDocScrollTop","pageYOffset","scrollTop","_populateSegmentFromArray","values","property","mode","parseFloat","_getPropNum","target","prop","unit","_gsap","get","_relativize","_segmentToRawPath","plugin","slicer","vars","unshift","unitX","unitY","relative","_align","_addDimensionalPropTween","_emptyFunc","v","gsap","PropTween","_getUnit","_toArray","_xProps","_yProps","tween","targetMatrix","alignTarget","alignPath","alignMatrix","invertedMatrix","align","offsetX","offsetY","to","xPercent","yPercent","render","kill","getTotalLength","pathProperty","forceUnit","cache","pt","_pt","set","u","pp","_props","MotionPathPlugin","version","register","core","Plugin","propTween","utils","getUnit","toArray","init","p","rawPaths","firstObj","autoRotate","_sliceModifier","rotate","rOffset","radians","useRadians","rProp","rotation","rSet","ru","Array","isArray","ratio","_next","getLength","targets","map","arrayToRawPath","_getGSAP","registerPlugin"],"mappings":"6MAuBa,SAAZA,EAAYC,SAA2B,iBAAXA,EAQZ,SAAhBC,EAAiBC,EAASC,EAAUC,EAAGC,OAClCC,EAAUJ,EAAQC,GACrBI,EAAc,IAANF,EAAU,EAAIG,iBAAiBF,EAASF,EAAGC,MAChDE,GAASA,EAAQH,EAAI,EAAIE,EAAQG,cACpCP,EAAQQ,OAAOP,EAAU,EAAGG,EAAQK,MAAM,EAAGP,EAAIG,EAAQ,IACzDD,EAAQI,OAAO,EAAGN,EAAIG,GACf,EA2BQ,SAAjBK,EAAkBV,EAASI,OACtBO,EAAQX,EAAQO,OACnBK,EAAUZ,EAAQW,EAAQ,IAAM,GAChCE,EAAID,EAAQL,OACTH,EAAQ,KAAOQ,EAAQC,EAAE,IAAMT,EAAQ,KAAOQ,EAAQC,EAAE,KAC3DT,EAAUQ,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AATjR,MACxFmP,gBAAiBA,gBACjB4G,uCAAe1a,EAAOqW,OAEjB/V,EAAUgV,GAA0BA,GAA0B,GAAItV,GADtEqW,EAAOA,GAAQ,IACmExR,GAAK,IAAK,GAAI7E,EAAOqW,EAAKpS,GAAK,IAAK,UAClHoS,EAAKI,UACRR,GAAY3V,GAEN,CAAgB,UAAd+V,EAAKpQ,KAAoB3F,EAAUgQ,gBAAgBhQ,EAAS+V,EAAKhG,eA9LhE,SAAXsK,kBAAiB7D,GAA4B,oBAAZ/E,SAA4B+E,EAAO/E,OAAO+E,OAASA,EAAK8D,gBAAkB9D,EAkM5G6D,IAAc7D,EAAK8D,eAAehC"}
\ No newline at end of file
+{"version":3,"file":"MotionPathPlugin.min.js","sources":["../src/utils/paths.js","../src/utils/matrix.js","../src/MotionPathPlugin.js"],"sourcesContent":["/*!\n * paths 3.0.2\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _svgPathExp = /[achlmqstvz]|(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[0-9]/ig,\n\t_numbersExp = /(?:(-)?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[0-9]/ig,\n\t_scientific = /[\\+\\-]?\\d*\\.?\\d+e[\\+\\-]?\\d+/ig,\n\t_selectorExp = /(^[#\\.][a-z]|[a-y][a-z])/i,\n\t_DEG2RAD = Math.PI / 180,\n\t_RAD2DEG = 180 / Math.PI,\n\t_sin = Math.sin,\n\t_cos = Math.cos,\n\t_abs = Math.abs,\n\t_sqrt = Math.sqrt,\n\t_atan2 = Math.atan2,\n\t_largeNum = 1e8,\n\t_isString = value => typeof(value) === \"string\",\n\t_isNumber = value => typeof(value) === \"number\",\n\t_isUndefined = value => typeof(value) === \"undefined\",\n\t_temp = {},\n\t_temp2 = {},\n\t_roundingNum = 1e5,\n\t_wrapProgress = progress => (Math.round((progress + _largeNum) % 1 * _roundingNum) / _roundingNum) || ((progress < 0) ? 0 : 1), //if progress lands on 1, the % will make it 0 which is why we || 1, but not if it's negative because it makes more sense for motion to end at 0 in that case.\n\t_round = value => ~~(value * _roundingNum + (value < 0 ? -.5 : .5)) / _roundingNum,\n\t_splitSegment = (rawPath, segIndex, i, t) => {\n\t\tlet segment = rawPath[segIndex],\n\t\t\tshift = t === 1 ? 6 : subdivideSegment(segment, i, t);\n\t\tif (shift && shift + i + 2 < segment.length) {\n\t\t\trawPath.splice(segIndex, 0, segment.slice(0, i + shift + 2));\n\t\t\tsegment.splice(0, i + shift);\n\t\t\treturn 1;\n\t\t}\n\t},\n\t_reverseRawPath = (rawPath, skipOuter) => {\n\t\tlet i = rawPath.length;\n\t\tif (!skipOuter) {\n\t\t\trawPath.reverse();\n\t\t}\n\t\twhile (i--) {\n\t\t\tif (!rawPath[i].reversed) {\n\t\t\t\treverseSegment(rawPath[i]);\n\t\t\t}\n\t\t}\n\t},\n\t_copyMetaData = (source, copy) => {\n\t\tcopy.totalLength = source.totalLength;\n\t\tif (source.samples) { //segment\n\t\t\tcopy.samples = source.samples.slice(0);\n\t\t\tcopy.lookup = source.lookup.slice(0);\n\t\t\tcopy.minLength = source.minLength;\n\t\t\tcopy.resolution = source.resolution;\n\t\t} else { //rawPath\n\t\t\tcopy.totalPoints = source.totalPoints;\n\t\t}\n\t\treturn copy;\n\t},\n\t//pushes a new segment into a rawPath, but if its starting values match the ending values of the last segment, it'll merge it into that same segment (to reduce the number of segments)\n\t_appendOrMerge = (rawPath, segment) => {\n\t\tlet index = rawPath.length,\n\t\t\tprevSeg = rawPath[index - 1] || [],\n\t\t\tl = prevSeg.length;\n\t\tif (segment[0] === prevSeg[l-2] && segment[1] === prevSeg[l-1]) {\n\t\t\tsegment = prevSeg.concat(segment.slice(2));\n\t\t\tindex--;\n\t\t}\n\t\trawPath[index] = segment;\n\t},\n\t_bestDistance;\n\n/* TERMINOLOGY\n - RawPath - an array of arrays, one for each Segment. A single RawPath could have multiple \"M\" commands, defining Segments (paths aren't always connected).\n - Segment - an array containing a sequence of Cubic Bezier coordinates in alternating x, y, x, y format. Starting anchor, then control point 1, control point 2, and ending anchor, then the next control point 1, control point 2, anchor, etc. Uses less memory than an array with a bunch of {x, y} points.\n - Bezier - a single cubic Bezier with a starting anchor, two control points, and an ending anchor.\n - the variable \"t\" is typically the position along an individual Bezier path (time) and it's NOT linear, meaning it could accelerate/decelerate based on the control points whereas the \"p\" or \"progress\" value is linearly mapped to the whole path, so it shouldn't really accelerate/decelerate based on control points. So a progress of 0.2 would be almost exactly 20% along the path. \"t\" is ONLY in an individual Bezier piece.\n */\n\n//accepts basic selector text, a path instance, a RawPath instance, or a Segment and returns a RawPath (makes it easy to homogenize things). If an element or selector text is passed in, it'll also cache the value so that if it's queried again, it'll just take the path data from there instead of parsing it all over again (as long as the path data itself hasn't changed - it'll check).\nexport function getRawPath(value) {\n\tvalue = (_isString(value) && _selectorExp.test(value)) ? document.querySelector(value) || value : value;\n\tlet e = value.getAttribute ? value : 0,\n\t\trawPath;\n\tif (e && (value = value.getAttribute(\"d\"))) {\n\t\t//implements caching\n\t\tif (!e._gsPath) {\n\t\t\te._gsPath = {};\n\t\t}\n\t\trawPath = e._gsPath[value];\n\t\treturn (rawPath && !rawPath._dirty) ? rawPath : (e._gsPath[value] = stringToRawPath(value));\n\t}\n\treturn !value ? console.warn(\"Expecting a <path> element or an SVG path data string\") : _isString(value) ? stringToRawPath(value) : (_isNumber(value[0])) ? [value] : value;\n}\n\n//copies a RawPath WITHOUT the length meta data (for speed)\nexport function copyRawPath(rawPath) {\n\tlet a = [],\n\t\ti = 0;\n\tfor (; i < rawPath.length; i++) {\n\t\ta[i] = _copyMetaData(rawPath[i], rawPath[i].slice(0));\n\t}\n\treturn _copyMetaData(rawPath, a);\n}\n\nexport function reverseSegment(segment) {\n\tlet i = 0,\n\t\ty;\n\tsegment.reverse(); //this will invert the order y, x, y, x so we must flip it back.\n\tfor (; i < segment.length; i += 2) {\n\t\ty = segment[i];\n\t\tsegment[i] = segment[i+1];\n\t\tsegment[i+1] = y;\n\t}\n\tsegment.reversed = !segment.reversed;\n}\n\n\n\nlet _createPath = (e, ignore) => {\n\t\tlet path = document.createElementNS(\"http://www.w3.org/2000/svg\", \"path\"),\n\t\t\tattr = [].slice.call(e.attributes),\n\t\t\ti = attr.length,\n\t\t\tname;\n\t\tignore = \",\" + ignore + \",\";\n\t\twhile (--i > -1) {\n\t\t\tname = attr[i].nodeName.toLowerCase(); //in Microsoft Edge, if you don't set the attribute with a lowercase name, it doesn't render correctly! Super weird.\n\t\t\tif (ignore.indexOf(\",\" + name + \",\") < 0) {\n\t\t\t\tpath.setAttributeNS(null, name, attr[i].nodeValue);\n\t\t\t}\n\t\t}\n\t\treturn path;\n\t},\n\t_typeAttrs = {\n\t\trect:\"rx,ry,x,y,width,height\",\n\t\tcircle:\"r,cx,cy\",\n\t\tellipse:\"rx,ry,cx,cy\",\n\t\tline:\"x1,x2,y1,y2\"\n\t},\n\t_attrToObj = (e, attrs) => {\n\t\tlet props = attrs ? attrs.split(\",\") : [],\n\t\t\tobj = {},\n\t\t\ti = props.length;\n\t\twhile (--i > -1) {\n\t\t\tobj[props[i]] = +e.getAttribute(props[i]) || 0;\n\t\t}\n\t\treturn obj;\n\t};\n\n//converts an SVG shape like <circle>, <rect>, <polygon>, <polyline>, <ellipse>, etc. to a <path>, swapping it in and copying the attributes to match.\nexport function convertToPath(element, swap) {\n\tlet type = element.tagName.toLowerCase(),\n\t\tcirc = 0.552284749831,\n\t\tdata, x, y, r, ry, path, rcirc, rycirc, points, w, h, x2, x3, x4, x5, x6, y2, y3, y4, y5, y6, attr;\n\tif (type === \"path\" || !element.getBBox) {\n\t\treturn element;\n\t}\n\tpath = _createPath(element, \"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points\");\n\tattr = _attrToObj(element, _typeAttrs[type]);\n\tif (type === \"rect\") {\n\t\tr = attr.rx;\n\t\try = attr.ry;\n\t\tx = attr.x;\n\t\ty = attr.y;\n\t\tw = attr.width - r * 2;\n\t\th = attr.height - ry * 2;\n\t\tif (r || ry) { //if there are rounded corners, render cubic beziers\n\t\t\tx2 = x + r * (1 - circ);\n\t\t\tx3 = x + r;\n\t\t\tx4 = x3 + w;\n\t\t\tx5 = x4 + r * circ;\n\t\t\tx6 = x4 + r;\n\t\t\ty2 = y + ry * (1 - circ);\n\t\t\ty3 = y + ry;\n\t\t\ty4 = y3 + h;\n\t\t\ty5 = y4 + ry * circ;\n\t\t\ty6 = y4 + ry;\n\t\t\tdata = \"M\" + x6 + \",\" + y3 + \" V\" + y4 + \" C\" + [x6, y5, x5, y6, x4, y6, x4 - (x4 - x3) / 3, y6, x3 + (x4 - x3) / 3, y6, x3, y6, x2, y6, x, y5, x, y4, x, y4 - (y4 - y3) / 3, x, y3 + (y4 - y3) / 3, x, y3, x, y2, x2, y, x3, y, x3 + (x4 - x3) / 3, y, x4 - (x4 - x3) / 3, y, x4, y, x5, y, x6, y2, x6, y3].join(\",\") + \"z\";\n\t\t} else {\n\t\t\tdata = \"M\" + (x + w) + \",\" + y + \" v\" + h + \" h\" + (-w) + \" v\" + (-h) + \" h\" + w + \"z\";\n\t\t}\n\n\t} else if (type === \"circle\" || type === \"ellipse\") {\n\t\tif (type === \"circle\") {\n\t\t\tr = ry = attr.r;\n\t\t\trycirc = r * circ;\n\t\t} else {\n\t\t\tr = attr.rx;\n\t\t\try = attr.ry;\n\t\t\trycirc = ry * circ;\n\t\t}\n\t\tx = attr.cx;\n\t\ty = attr.cy;\n\t\trcirc = r * circ;\n\t\tdata = \"M\" + (x+r) + \",\" + y + \" C\" + [x+r, y + rycirc, x + rcirc, y + ry, x, y + ry, x - rcirc, y + ry, x - r, y + rycirc, x - r, y, x - r, y - rycirc, x - rcirc, y - ry, x, y - ry, x + rcirc, y - ry, x + r, y - rycirc, x + r, y].join(\",\") + \"z\";\n\t} else if (type === \"line\") {\n\t\tdata = \"M\" + attr.x1 + \",\" + attr.y1 + \" L\" + attr.x2 + \",\" + attr.y2; //previously, we just converted to \"Mx,y Lx,y\" but Safari has bugs that cause that not to render properly when using a stroke-dasharray that's not fully visible! Using a cubic bezier fixes that issue.\n\t} else if (type === \"polyline\" || type === \"polygon\") {\n\t\tpoints = (element.getAttribute(\"points\") + \"\").match(_numbersExp) || [];\n\t\tx = points.shift();\n\t\ty = points.shift();\n\t\tdata = \"M\" + x + \",\" + y + \" L\" + points.join(\",\");\n\t\tif (type === \"polygon\") {\n\t\t\tdata += \",\" + x + \",\" + y + \"z\";\n\t\t}\n\t}\n\tpath.setAttribute(\"d\", rawPathToString(path._gsRawPath = stringToRawPath(data)));\n\tif (swap && element.parentNode) {\n\t\telement.parentNode.insertBefore(path, element);\n\t\telement.parentNode.removeChild(element);\n\t}\n\treturn path;\n}\n\n\n\n//returns the rotation (in degrees) at a particular progress on a rawPath (the slope of the tangent)\nexport function getRotationAtProgress(rawPath, progress) {\n\tlet d = getProgressData(rawPath, progress >= 1 ? 1 - 1e-9 : progress ? progress : 1e-9);\n\treturn getRotationAtBezierT(d.segment, d.i, d.t);\n}\n\nfunction getRotationAtBezierT(segment, i, t) {\n\tlet a = segment[i],\n\t\tb = segment[i+2],\n\t\tc = segment[i+4],\n\t\tx;\n\ta += (b - a) * t;\n\tb += (c - b) * t;\n\ta += (b - a) * t;\n\tx = b + ((c + (segment[i+6] - c) * t) - b) * t - a;\n\ta = segment[i+1];\n\tb = segment[i+3];\n\tc = segment[i+5];\n\ta += (b - a) * t;\n\tb += (c - b) * t;\n\ta += (b - a) * t;\n\treturn _round(_atan2(b + ((c + (segment[i+7] - c) * t) - b) * t - a, x) * _RAD2DEG);\n}\n\nexport function sliceRawPath(rawPath, start, end) {\n\tif (_isUndefined(end)) {\n\t\tend = 1;\n\t}\n\tstart = start || 0;\n\tlet reverse = start > end,\n\t\tloops = Math.max(0, ~~(_abs(end - start) - 1e-8));\n\tif (reverse) {\n\t\treverse = end;\n\t\tend = start;\n\t\tstart = reverse;\n\t\treverse = 1;\n\t\tloops -= loops ? 1 : 0;\n\t}\n\tif (start < 0 || end < 0) {\n\t\tlet offset = ~~Math.min(start, end) + 1;\n\t\tstart += offset;\n\t\tend += offset;\n\t}\n\tlet path = copyRawPath(rawPath.totalLength ? rawPath : cacheRawPathMeasurements(rawPath)),\n\t\twrap = (end > 1),\n\t\ts = getProgressData(path, start, _temp),\n\t\te = getProgressData(path, end, _temp2),\n\t\teSeg = e.segment,\n\t\tsSeg = s.segment,\n\t\teSegIndex = e.segIndex,\n\t\tsSegIndex = s.segIndex,\n\t\tei = e.i,\n\t\tsi = s.i,\n\t\tsameSegment = (sSegIndex === eSegIndex),\n\t\tsameBezier = (ei === si && sameSegment),\n\t\tinvertedOrder = ((sameSegment && si > ei) || (sameBezier && s.t > e.t)),\n\t\tsShift, eShift, i, copy, totalSegments, l, j;\n\tif (wrap || loops) {\n\t\tif (_splitSegment(path, sSegIndex, si, s.t)) {\n\t\t\tsShift = 1;\n\t\t\tsSegIndex++;\n\t\t\tif (sameBezier) {\n\t\t\t\tif (invertedOrder) {\n\t\t\t\t\te.t /= s.t;\n\t\t\t\t} else {\n\t\t\t\t\te.t = (e.t - s.t) / (1 - s.t);\n\t\t\t\t\teSegIndex++;\n\t\t\t\t\tei = 0;\n\t\t\t\t}\n\t\t\t} else if (sSegIndex <= eSegIndex + 1 && !invertedOrder) {\n\t\t\t\teSegIndex++;\n\t\t\t\tif (sameSegment) {\n\t\t\t\t\tei -= si;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!e.t) {\n\t\t\teSegIndex--;\n\t\t\tif (reverse) {\n\t\t\t\tsSegIndex--;\n\t\t\t}\n\t\t} else if (_splitSegment(path, eSegIndex, ei, e.t)) {\n\t\t\tif (invertedOrder && sShift) {\n\t\t\t\tsSegIndex++;\n\t\t\t}\n\t\t\tif (reverse) {\n\t\t\t\teSegIndex++;\n\t\t\t}\n\t\t}\n\t\tcopy = [];\n\t\ttotalSegments = path.length;\n\t\tl = 1 + totalSegments * loops;\n\t\tj = sSegIndex;\n\t\tif (reverse) {\n\t\t\teSegIndex = (eSegIndex || totalSegments) - 1;\n\t\t\tl += (totalSegments - eSegIndex + sSegIndex) % totalSegments;\n\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t_appendOrMerge(copy, path[j]);\n\t\t\t\tj = (j || totalSegments) - 1;\n\t\t\t}\n\t\t} else {\n\t\t\tl += ((totalSegments - sSegIndex) + eSegIndex) % totalSegments;\n\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t_appendOrMerge(copy, path[j++ % totalSegments]);\n\t\t\t}\n\t\t}\n\t\tpath = copy;\n\t} else {\n\t\teShift = e.t === 1 ? 6 : subdivideSegment(eSeg, ei, e.t);\n\t\tif (start !== end) {\n\t\t\tsShift = subdivideSegment(sSeg, si, sameBezier ? s.t / e.t : s.t);\n\t\t\tif (sameSegment) {\n\t\t\t\teShift += sShift;\n\t\t\t}\n\t\t\teSeg.splice(ei + eShift + 2);\n\t\t\tif (sShift) {\n\t\t\t\tsSeg.splice(0, si + sShift);\n\t\t\t}\n\t\t\ti = path.length;\n\t\t\twhile (i--) {\n\t\t\t\t//chop off any extra segments\n\t\t\t\tif (i < sSegIndex || i > eSegIndex) {\n\t\t\t\t\tpath.splice(i, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\teSeg.angle = getRotationAtBezierT(eSeg, ei + eShift, 0); //record the value before we chop because it'll be impossible to determine the angle after its length is 0!\n\t\t\tei += eShift;\n\t\t\ts = eSeg[ei];\n\t\t\te = eSeg[ei+1];\n\t\t\teSeg.length = eSeg.totalLength = 0;\n\t\t\teSeg.totalPoints = path.totalPoints = 8;\n\t\t\teSeg.push(s, e, s, e, s, e, s, e);\n\t\t}\n\t}\n\tif (reverse) {\n\t\t_reverseRawPath(path, wrap || loops);\n\t}\n\tpath.totalLength = 0;\n\treturn path;\n}\n\n//measures a Segment according to its resolution (so if segment.resolution is 6, for example, it'll take 6 samples equally across each Bezier) and create/populate a \"samples\" array that has the length up to each of those sample points (always increasing from the start) as well as a \"lookup\" array that's broken up according to the smallest distance between 2 samples. This gives us a very fast way of looking up a progress position rather than looping through all the points/Beziers. You can optionally have it only measure a subset, starting at startIndex and going for a specific number of beziers (remember, there are 3 x/y pairs each, for a total of 6 elements for each Bezier). It will also populate a \"totalLength\" property, but that's not generally super accurate because by default it'll only take 6 samples per Bezier. But for performance reasons, it's perfectly adequate for measuring progress values along the path. If you need a more accurate totalLength, either increase the resolution or use the more advanced bezierToPoints() method which keeps adding points until they don't deviate by more than a certain precision value.\nfunction measureSegment(segment, startIndex, bezierQty) {\n\tstartIndex = startIndex || 0;\n\tif (!segment.samples) {\n\t\tsegment.samples = [];\n\t\tsegment.lookup = [];\n\t}\n\tlet resolution = ~~segment.resolution || 12,\n\t\tinc = 1 / resolution,\n\t\tendIndex = bezierQty ? startIndex + bezierQty * 6 + 1 : segment.length,\n\t\tx1 = segment[startIndex],\n\t\ty1 = segment[startIndex + 1],\n\t\tsamplesIndex = startIndex ? (startIndex / 6) * resolution : 0,\n\t\tsamples = segment.samples,\n\t\tlookup = segment.lookup,\n\t\tmin = (startIndex ? segment.minLength : _largeNum) || _largeNum,\n\t\tprevLength = samples[samplesIndex + bezierQty * resolution - 1],\n\t\tlength = startIndex ? samples[samplesIndex-1] : 0,\n\t\ti, j, x4, x3, x2, xd, xd1, y4, y3, y2, yd, yd1, inv, t, lengthIndex, l, segLength;\n\tsamples.length = lookup.length = 0;\n\tfor (j = startIndex + 2; j < endIndex; j += 6) {\n\t\tx4 = segment[j + 4] - x1;\n\t\tx3 = segment[j + 2] - x1;\n\t\tx2 = segment[j] - x1;\n\t\ty4 = segment[j + 5] - y1;\n\t\ty3 = segment[j + 3] - y1;\n\t\ty2 = segment[j + 1] - y1;\n\t\txd = xd1 = yd = yd1 = 0;\n\t\tif (_abs(x4) < 1e-5 && _abs(y4) < 1e-5 && _abs(x2) + _abs(y2) < 1e-5) { //dump points that are sufficiently close (basically right on top of each other, making a bezier super tiny or 0 length)\n\t\t\tif (segment.length > 8) {\n\t\t\t\tsegment.splice(j, 6);\n\t\t\t\tj -= 6;\n\t\t\t\tendIndex -= 6;\n\t\t\t}\n\t\t} else {\n\t\t\tfor (i = 1; i <= resolution; i++) {\n\t\t\t\tt = inc * i;\n\t\t\t\tinv = 1 - t;\n\t\t\t\txd = xd1 - (xd1 = (t * t * x4 + 3 * inv * (t * x3 + inv * x2)) * t);\n\t\t\t\tyd = yd1 - (yd1 = (t * t * y4 + 3 * inv * (t * y3 + inv * y2)) * t);\n\t\t\t\tl = _sqrt(yd * yd + xd * xd);\n\t\t\t\tif (l < min) {\n\t\t\t\t\tmin = l;\n\t\t\t\t}\n\t\t\t\tlength += l;\n\t\t\t\tsamples[samplesIndex++] = length;\n\t\t\t}\n\t\t}\n\t\tx1 += x4;\n\t\ty1 += y4;\n\t}\n\tif (prevLength) {\n\t\tprevLength -= length;\n\t\tfor (; samplesIndex < samples.length; samplesIndex++) {\n\t\t\tsamples[samplesIndex] += prevLength;\n\t\t}\n\t}\n\tif (samples.length && min) {\n\t\tsegment.totalLength = segLength = samples[samples.length-1] || 0;\n\t\tsegment.minLength = min;\n\t\tl = lengthIndex = 0;\n\t\tfor (i = 0; i < segLength; i += min) {\n\t\t\tlookup[l++] = (samples[lengthIndex] < i) ? ++lengthIndex : lengthIndex;\n\t\t}\n\t} else {\n\t\tsegment.totalLength = samples[0] = 0;\n\t}\n\treturn startIndex ? length - samples[startIndex / 2 - 1] : length;\n}\n\nexport function cacheRawPathMeasurements(rawPath, resolution) {\n\tlet pathLength, points, i;\n\tfor (i = pathLength = points = 0; i < rawPath.length; i++) {\n\t\trawPath[i].resolution = ~~resolution || 12; //steps per Bezier curve (anchor, 2 control points, to anchor)\n\t\tpoints += rawPath[i].length;\n\t\tpathLength += measureSegment(rawPath[i]);\n\t}\n\trawPath.totalPoints = points;\n\trawPath.totalLength = pathLength;\n\treturn rawPath;\n}\n\n//divide segment[i] at position t (value between 0 and 1, progress along that particular cubic bezier segment that starts at segment[i]). Returns how many elements were spliced into the segment array (either 0 or 6)\nexport function subdivideSegment(segment, i, t) {\n\tif (t <= 0 || t >= 1) {\n\t\treturn 0;\n\t}\n\tlet ax = segment[i],\n\t\tay = segment[i+1],\n\t\tcp1x = segment[i+2],\n\t\tcp1y = segment[i+3],\n\t\tcp2x = segment[i+4],\n\t\tcp2y = segment[i+5],\n\t\tbx = segment[i+6],\n\t\tby = segment[i+7],\n\t\tx1a = ax + (cp1x - ax) * t,\n\t\tx2 = cp1x + (cp2x - cp1x) * t,\n\t\ty1a = ay + (cp1y - ay) * t,\n\t\ty2 = cp1y + (cp2y - cp1y) * t,\n\t\tx1 = x1a + (x2 - x1a) * t,\n\t\ty1 = y1a + (y2 - y1a) * t,\n\t\tx2a = cp2x + (bx - cp2x) * t,\n\t\ty2a = cp2y + (by - cp2y) * t;\n\tx2 += (x2a - x2) * t;\n\ty2 += (y2a - y2) * t;\n\tsegment.splice(i + 2, 4,\n\t\t_round(x1a), //first control point\n\t\t_round(y1a),\n\t\t_round(x1), //second control point\n\t\t_round(y1),\n\t\t_round(x1 + (x2 - x1) * t), //new fabricated anchor on line\n\t\t_round(y1 + (y2 - y1) * t),\n\t\t_round(x2), //third control point\n\t\t_round(y2),\n\t\t_round(x2a), //fourth control point\n\t\t_round(y2a)\n\t);\n\tif (segment.samples) {\n\t\tsegment.samples.splice(((i / 6) * segment.resolution) | 0, 0, 0, 0, 0, 0, 0, 0);\n\t}\n\treturn 6;\n}\n\n// returns an object {path, segment, segIndex, i, t}\nfunction getProgressData(rawPath, progress, decoratee) {\n\tdecoratee = decoratee || {};\n\tif (!rawPath.totalLength) {\n\t\tcacheRawPathMeasurements(rawPath);\n\t}\n\tif (progress < 0 || progress > 1) {\n\t\tprogress = _wrapProgress(progress);\n\t}\n\tlet segIndex = 0,\n\t\tsegment = rawPath[0],\n\t\tsamples, resolution, length, min, max, i;\n\tif (rawPath.length > 1) { //speed optimization: most of the time, there's only one segment so skip the recursion.\n\t\tlength = rawPath.totalLength * progress;\n\t\tmax = i = 0;\n\t\twhile ((max += rawPath[i++].totalLength) < length) {\n\t\t\tsegIndex = i;\n\t\t}\n\t\tsegment = rawPath[segIndex];\n\t\tmin = max - segment.totalLength;\n\t\tprogress = ((length - min) / (max - min)) || 0;\n\t}\n\tsamples = segment.samples;\n\tresolution = segment.resolution; //how many samples per cubic bezier chunk\n\tlength = segment.totalLength * progress;\n\ti = segment.lookup[~~(length / segment.minLength)] || 0;\n\tmin = i ? samples[i-1] : 0;\n\tmax = samples[i];\n\tif (max < length) {\n\t\tmin = max;\n\t\tmax = samples[++i];\n\t}\n\tdecoratee.path = rawPath;\n\tdecoratee.segment = segment;\n\tdecoratee.segIndex = segIndex;\n\tdecoratee.i = ~~(i / resolution) * 6;\n\tdecoratee.t = (1 / resolution) * (((length - min) / (max - min)) + ((i % resolution)));\n\treturn decoratee;\n}\n\nexport function getPositionOnPath(rawPath, progress, includeAngle, point) {\n\tlet segment = rawPath[0],\n\t\tresult = point || {},\n\t\tsamples, resolution, length, min, max, i, t, a, inv;\n\tif (progress < 0 || progress > 1) {\n\t\tprogress = _wrapProgress(progress);\n\t}\n\tif (rawPath.length > 1) { //speed optimization: most of the time, there's only one segment so skip the recursion.\n\t\tlength = rawPath.totalLength * progress;\n\t\tmax = i = 0;\n\t\twhile ((max += rawPath[i++].totalLength) < length) {\n\t\t\tsegment = rawPath[i];\n\t\t}\n\t\tmin = max - segment.totalLength;\n\t\tprogress = ((length - min) / (max - min)) || 0;\n\t}\n\tsamples = segment.samples;\n\tresolution = segment.resolution;\n\tlength = segment.totalLength * progress;\n\ti = segment.lookup[~~(length / segment.minLength)] || 0;\n\tmin = i ? samples[i-1] : 0;\n\tmax = samples[i];\n\tif (max < length) {\n\t\tmin = max;\n\t\tmax = samples[++i];\n\t}\n\tt = ((1 / resolution) * (((length - min) / (max - min)) + ((i % resolution)))) || 0;\n\tinv = 1 - t;\n\ti = ~~(i / resolution) * 6;\n\ta = segment[i];\n\tresult.x = _round((t * t * (segment[i + 6] - a) + 3 * inv * (t * (segment[i + 4] - a) + inv * (segment[i + 2] - a))) * t + a);\n\tresult.y = _round((t * t * (segment[i + 7] - (a = segment[i+1])) + 3 * inv * (t * (segment[i + 5] - a) + inv * (segment[i + 3] - a))) * t + a);\n\tif (includeAngle) {\n\t\tresult.angle = segment.totalLength ? getRotationAtBezierT(segment, i, t >= 1 ? 1 - 1e-9 : t ? t : 1e-9) : segment.angle || 0;\n\t}\n\treturn result;\n}\n\n\n\n//applies a matrix transform to RawPath (or a segment in a RawPath) and returns whatever was passed in (it transforms the values in the array(s), not a copy).\nexport function transformRawPath(rawPath, a, b, c, d, tx, ty) {\n\tlet j = rawPath.length,\n\t\tsegment, l, i, x, y;\n\twhile (--j > -1) {\n\t\tsegment = rawPath[j];\n\t\tl = segment.length;\n\t\tfor (i = 0; i < l; i += 2) {\n\t\t\tx = segment[i];\n\t\t\ty = segment[i+1];\n\t\t\tsegment[i] = x * a + y * c + tx;\n\t\t\tsegment[i+1] = x * b + y * d + ty;\n\t\t}\n\t}\n\trawPath._dirty = 1;\n\treturn rawPath;\n}\n\n\n\n// translates SVG arc data into a segment (cubic beziers). Angle is in degrees.\nfunction arcToSegment(lastX, lastY, rx, ry, angle, largeArcFlag, sweepFlag, x, y) {\n\tif (lastX === x && lastY === y) {\n\t\treturn;\n\t}\n\trx = _abs(rx);\n\try = _abs(ry);\n\tlet angleRad = (angle % 360) * _DEG2RAD,\n\t\tcosAngle = _cos(angleRad),\n\t\tsinAngle = _sin(angleRad),\n\t\tPI = Math.PI,\n\t\tTWOPI = PI * 2,\n\t\tdx2 = (lastX - x) / 2,\n\t\tdy2 = (lastY - y) / 2,\n\t\tx1 = (cosAngle * dx2 + sinAngle * dy2),\n\t\ty1 = (-sinAngle * dx2 + cosAngle * dy2),\n\t\tx1_sq = x1 * x1,\n\t\ty1_sq = y1 * y1,\n\t\tradiiCheck = x1_sq / (rx * rx) + y1_sq / (ry * ry);\n\tif (radiiCheck > 1) {\n\t\trx = _sqrt(radiiCheck) * rx;\n\t\try = _sqrt(radiiCheck) * ry;\n\t}\n\tlet rx_sq = rx * rx,\n\t\try_sq = ry * ry,\n\t\tsq = ((rx_sq * ry_sq) - (rx_sq * y1_sq) - (ry_sq * x1_sq)) / ((rx_sq * y1_sq) + (ry_sq * x1_sq));\n\tif (sq < 0) {\n\t\tsq = 0;\n\t}\n\tlet coef = ((largeArcFlag === sweepFlag) ? -1 : 1) * _sqrt(sq),\n\t\tcx1 = coef * ((rx * y1) / ry),\n\t\tcy1 = coef * -((ry * x1) / rx),\n\t\tsx2 = (lastX + x) / 2,\n\t\tsy2 = (lastY + y) / 2,\n\t\tcx = sx2 + (cosAngle * cx1 - sinAngle * cy1),\n\t\tcy = sy2 + (sinAngle * cx1 + cosAngle * cy1),\n\t\tux = (x1 - cx1) / rx,\n\t\tuy = (y1 - cy1) / ry,\n\t\tvx = (-x1 - cx1) / rx,\n\t\tvy = (-y1 - cy1) / ry,\n\t\ttemp = ux * ux + uy * uy,\n\t\tangleStart = ((uy < 0) ? -1 : 1) * Math.acos(ux / _sqrt(temp)),\n\t\tangleExtent = ((ux * vy - uy * vx < 0) ? -1 : 1) * Math.acos((ux * vx + uy * vy) / _sqrt(temp * (vx * vx + vy * vy)));\n\tif (isNaN(angleExtent)) { //rare edge case. Math.cos(-1) is NaN.\n\t\tangleExtent = PI;\n\t}\n\tif (!sweepFlag && angleExtent > 0) {\n\t\tangleExtent -= TWOPI;\n\t} else if (sweepFlag && angleExtent < 0) {\n\t\tangleExtent += TWOPI;\n\t}\n\tangleStart %= TWOPI;\n\tangleExtent %= TWOPI;\n\tlet segments = Math.ceil(_abs(angleExtent) / (TWOPI / 4)),\n\t\trawPath = [],\n\t\tangleIncrement = angleExtent / segments,\n\t\tcontrolLength = 4 / 3 * _sin(angleIncrement / 2) / (1 + _cos(angleIncrement / 2)),\n\t\tma = cosAngle * rx,\n\t\tmb = sinAngle * rx,\n\t\tmc = sinAngle * -ry,\n\t\tmd = cosAngle * ry,\n\t\ti;\n\tfor (i = 0; i < segments; i++) {\n\t\tangle = angleStart + i * angleIncrement;\n\t\tx1 = _cos(angle);\n\t\ty1 = _sin(angle);\n\t\tux = _cos(angle += angleIncrement);\n\t\tuy = _sin(angle);\n\t\trawPath.push(x1 - controlLength * y1, y1 + controlLength * x1, ux + controlLength * uy, uy - controlLength * ux, ux, uy);\n\t}\n\t//now transform according to the actual size of the ellipse/arc (the beziers were noramlized, between 0 and 1 on a circle).\n\tfor (i = 0; i < rawPath.length; i+=2) {\n\t\tx1 = rawPath[i];\n\t\ty1 = rawPath[i+1];\n\t\trawPath[i] = x1 * ma + y1 * mc + cx;\n\t\trawPath[i+1] = x1 * mb + y1 * md + cy;\n\t}\n\trawPath[i-2] = x; //always set the end to exactly where it's supposed to be\n\trawPath[i-1] = y;\n\treturn rawPath;\n}\n\n//Spits back a RawPath with absolute coordinates. Each segment starts with a \"moveTo\" command (x coordinate, then y) and then 2 control points (x, y, x, y), then anchor. The goal is to minimize memory and maximize speed.\nexport function stringToRawPath(d) {\n\tlet a = (d + \"\").replace(_scientific, m => { let n = +m; return (n < 0.0001 && n > -0.0001) ? 0 : n; }).match(_svgPathExp) || [], //some authoring programs spit out very small numbers in scientific notation like \"1e-5\", so make sure we round that down to 0 first.\n\t\tpath = [],\n\t\trelativeX = 0,\n\t\trelativeY = 0,\n\t\ttwoThirds = 2 / 3,\n\t\telements = a.length,\n\t\tpoints = 0,\n\t\terrorMessage = \"ERROR: malformed path: \" + d,\n\t\ti, j, x, y, command, isRelative, segment, startX, startY, difX, difY, beziers, prevCommand,\n\t\tline = function(sx, sy, ex, ey) {\n\t\t\tdifX = (ex - sx) / 3;\n\t\t\tdifY = (ey - sy) / 3;\n\t\t\tsegment.push(sx + difX, sy + difY, ex - difX, ey - difY, ex, ey);\n\t\t};\n\tif (!d || !isNaN(a[0]) || isNaN(a[1])) {\n\t\tconsole.log(errorMessage);\n\t\treturn path;\n\t}\n\tfor (i = 0; i < elements; i++) {\n\t\tprevCommand = command;\n\t\tif (isNaN(a[i])) {\n\t\t\tcommand = a[i].toUpperCase();\n\t\t\tisRelative = (command !== a[i]); //lower case means relative\n\t\t} else { //commands like \"C\" can be strung together without any new command characters between.\n\t\t\ti--;\n\t\t}\n\t\tx = +a[i + 1];\n\t\ty = +a[i + 2];\n\t\tif (isRelative) {\n\t\t\tx += relativeX;\n\t\t\ty += relativeY;\n\t\t}\n\t\tif (!i) {\n\t\t\tstartX = x;\n\t\t\tstartY = y;\n\t\t}\n\n\t\t// \"M\" (move)\n\t\tif (command === \"M\") {\n\t\t\tif (segment) {\n\t\t\t\tif (segment.length < 8) { //if the path data was funky and just had a M with no actual drawing anywhere, skip it.\n\t\t\t\t\tpath.length -= 1;\n\t\t\t\t} else {\n\t\t\t\t\tpoints += segment.length;\n\t\t\t\t}\n\t\t\t}\n\t\t\trelativeX = startX = x;\n\t\t\trelativeY = startY = y;\n\t\t\tsegment = [x, y];\n\t\t\tpath.push(segment);\n\t\t\ti += 2;\n\t\t\tcommand = \"L\"; //an \"M\" with more than 2 values gets interpreted as \"lineTo\" commands (\"L\").\n\n\t\t// \"C\" (cubic bezier)\n\t\t} else if (command === \"C\") {\n\t\t\tif (!segment) {\n\t\t\t\tsegment = [0, 0];\n\t\t\t}\n\t\t\tif (!isRelative) {\n\t\t\t\trelativeX = relativeY = 0;\n\t\t\t}\n\t\t\t//note: \"*1\" is just a fast/short way to cast the value as a Number. WAAAY faster in Chrome, slightly slower in Firefox.\n\t\t\tsegment.push(x,\ty, relativeX + a[i + 3] * 1, relativeY + a[i + 4] * 1, (relativeX += a[i + 5] * 1),\t(relativeY += a[i + 6] * 1));\n\t\t\ti += 6;\n\n\t\t// \"S\" (continuation of cubic bezier)\n\t\t} else if (command === \"S\") {\n\t\t\tdifX = relativeX;\n\t\t\tdifY = relativeY;\n\t\t\tif (prevCommand === \"C\" || prevCommand === \"S\") {\n\t\t\t\tdifX += relativeX - segment[segment.length - 4];\n\t\t\t\tdifY += relativeY - segment[segment.length - 3];\n\t\t\t}\n\t\t\tif (!isRelative) {\n\t\t\t\trelativeX = relativeY = 0;\n\t\t\t}\n\t\t\tsegment.push(difX, difY, x,\ty, (relativeX += a[i + 3] * 1), (relativeY += a[i + 4] * 1));\n\t\t\ti += 4;\n\n\t\t// \"Q\" (quadratic bezier)\n\t\t} else if (command === \"Q\") {\n\t\t\tdifX = relativeX + (x - relativeX) * twoThirds;\n\t\t\tdifY = relativeY + (y - relativeY) * twoThirds;\n\t\t\tif (!isRelative) {\n\t\t\t\trelativeX = relativeY = 0;\n\t\t\t}\n\t\t\trelativeX += a[i + 3] * 1;\n\t\t\trelativeY += a[i + 4] * 1;\n\t\t\tsegment.push(difX, difY, relativeX + (x - relativeX) * twoThirds, relativeY + (y - relativeY) * twoThirds, relativeX, relativeY);\n\t\t\ti += 4;\n\n\t\t// \"T\" (continuation of quadratic bezier)\n\t\t} else if (command === \"T\") {\n\t\t\tdifX = relativeX - segment[segment.length - 4];\n\t\t\tdifY = relativeY - segment[segment.length - 3];\n\t\t\tsegment.push(relativeX + difX, relativeY + difY, x + ((relativeX + difX * 1.5) - x) * twoThirds, y + ((relativeY + difY * 1.5) - y) * twoThirds, (relativeX = x), (relativeY = y));\n\t\t\ti += 2;\n\n\t\t// \"H\" (horizontal line)\n\t\t} else if (command === \"H\") {\n\t\t\tline(relativeX, relativeY, (relativeX = x), relativeY);\n\t\t\ti += 1;\n\n\t\t// \"V\" (vertical line)\n\t\t} else if (command === \"V\") {\n\t\t\t//adjust values because the first (and only one) isn't x in this case, it's y.\n\t\t\tline(relativeX, relativeY, relativeX, (relativeY = x + (isRelative ? relativeY - relativeX : 0)));\n\t\t\ti += 1;\n\n\t\t// \"L\" (line) or \"Z\" (close)\n\t\t} else if (command === \"L\" || command === \"Z\") {\n\t\t\tif (command === \"Z\") {\n\t\t\t\tx = startX;\n\t\t\t\ty = startY;\n\t\t\t\tsegment.closed = true;\n\t\t\t}\n\t\t\tif (command === \"L\" || _abs(relativeX - x) > 0.5 || _abs(relativeY - y) > 0.5) {\n\t\t\t\tline(relativeX, relativeY, x, y);\n\t\t\t\tif (command === \"L\") {\n\t\t\t\t\ti += 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\trelativeX = x;\n\t\t\trelativeY = y;\n\n\t\t// \"A\" (arc)\n\t\t} else if (command === \"A\") {\n\t\t\tbeziers = arcToSegment(relativeX, relativeY, +a[i+1], +a[i+2], +a[i+3], +a[i+4], +a[i+5], (isRelative ? relativeX : 0) + a[i+6]*1, (isRelative ? relativeY : 0) + a[i+7]*1);\n\t\t\tif (beziers) {\n\t\t\t\tfor (j = 0; j < beziers.length; j++) {\n\t\t\t\t\tsegment.push(beziers[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\trelativeX = segment[segment.length-2];\n\t\t\trelativeY = segment[segment.length-1];\n\t\t\ti += 7;\n\n\t\t} else {\n\t\t\tconsole.log(errorMessage);\n\t\t}\n\t}\n\ti = segment.length;\n\tif (i < 6) { //in case there's odd SVG like a M0,0 command at the very end.\n\t\tpath.pop();\n\t\ti = 0;\n\t} else if (segment[0] === segment[i-2] && segment[1] === segment[i-1]) {\n\t\tsegment.closed = true;\n\t}\n\tpath.totalPoints = points + i;\n\treturn path;\n}\n\n//populates the points array in alternating x/y values (like [x, y, x, y...] instead of individual point objects [{x, y}, {x, y}...] to conserve memory and stay in line with how we're handling segment arrays\nexport function bezierToPoints(x1, y1, x2, y2, x3, y3, x4, y4, threshold, points, index) {\n\tlet x12 = (x1 + x2) / 2,\n\t\ty12 = (y1 + y2) / 2,\n\t\tx23 = (x2 + x3) / 2,\n\t\ty23 = (y2 + y3) / 2,\n\t\tx34 = (x3 + x4) / 2,\n\t\ty34 = (y3 + y4) / 2,\n\t\tx123 = (x12 + x23) / 2,\n\t\ty123 = (y12 + y23) / 2,\n\t\tx234 = (x23 + x34) / 2,\n\t\ty234 = (y23 + y34) / 2,\n\t\tx1234 = (x123 + x234) / 2,\n\t\ty1234 = (y123 + y234) / 2,\n\t\tdx = x4 - x1,\n\t\tdy = y4 - y1,\n\t\td2 = _abs((x2 - x4) * dy - (y2 - y4) * dx),\n\t\td3 = _abs((x3 - x4) * dy - (y3 - y4) * dx),\n\t\tlength;\n\tif (!points) {\n\t\tpoints = [x1, y1, x4, y4];\n\t\tindex = 2;\n\t}\n\tpoints.splice(index || points.length - 2, 0, x1234, y1234);\n\tif ((d2 + d3) * (d2 + d3) > threshold * (dx * dx + dy * dy)) {\n\t\tlength = points.length;\n\t\tbezierToPoints(x1, y1, x12, y12, x123, y123, x1234, y1234, threshold, points, index);\n\t\tbezierToPoints(x1234, y1234, x234, y234, x34, y34, x4, y4, threshold, points, index + 2 + (points.length - length));\n\t}\n\treturn points;\n}\n\n/*\nfunction getAngleBetweenPoints(x0, y0, x1, y1, x2, y2) { //angle between 3 points in radians\n\tvar dx1 = x1 - x0,\n\t\tdy1 = y1 - y0,\n\t\tdx2 = x2 - x1,\n\t\tdy2 = y2 - y1,\n\t\tdx3 = x2 - x0,\n\t\tdy3 = y2 - y0,\n\t\ta = dx1 * dx1 + dy1 * dy1,\n\t\tb = dx2 * dx2 + dy2 * dy2,\n\t\tc = dx3 * dx3 + dy3 * dy3;\n\treturn Math.acos( (a + b - c) / _sqrt(4 * a * b) );\n},\n*/\n\n//pointsToSegment() doesn't handle flat coordinates (where y is always 0) the way we need (the resulting control points are always right on top of the anchors), so this function basically makes the control points go directly up and down, varying in length based on the curviness (more curvy, further control points)\nexport function flatPointsToSegment(points, curviness=1) {\n\tlet x = points[0],\n\t\ty = 0,\n\t\tsegment = [x, y],\n\t\ti = 2;\n\tfor (; i < points.length; i+=2) {\n\t\tsegment.push(\n\t\t\tx,\n\t\t\ty,\n\t\t\tpoints[i],\n\t\t\t(y = (points[i] - x) * curviness / 2),\n\t\t\t(x = points[i]),\n\t\t\t-y\n\t\t);\n\t}\n\treturn segment;\n}\n\n//points is an array of x/y points, like [x, y, x, y, x, y]\nexport function pointsToSegment(points, curviness, cornerThreshold) {\n\t//points = simplifyPoints(points, tolerance);\n\tlet l = points.length-2,\n\t\tx = +points[0],\n\t\ty = +points[1],\n\t\tnextX = +points[2],\n\t\tnextY = +points[3],\n\t\tsegment = [x, y, x, y],\n\t\tdx2 = nextX - x,\n\t\tdy2 = nextY - y,\n\t\tprevX, prevY, angle, slope, i, dx1, dx3, dy1, dy3, d1, d2, a, b, c;\n\tif (isNaN(cornerThreshold)) {\n\t\tcornerThreshold = Math.PI / 10;\n\t}\n\tcurviness = (curviness || curviness === 0) ? +curviness : 1;\n\tfor (i = 2; i < l; i+=2) {\n\t\tprevX = x;\n\t\tprevY = y;\n\t\tx = nextX;\n\t\ty = nextY;\n\t\tnextX = +points[i+2];\n\t\tnextY = +points[i+3];\n\t\tdx1 = dx2;\n\t\tdy1 = dy2;\n\t\tdx2 = nextX - x;\n\t\tdy2 = nextY - y;\n\t\tdx3 = nextX - prevX;\n\t\tdy3 = nextY - prevY;\n\t\ta = dx1 * dx1 + dy1 * dy1;\n\t\tb = dx2 * dx2 + dy2 * dy2;\n\t\tc = dx3 * dx3 + dy3 * dy3;\n\t\tangle = Math.acos( (a + b - c) / _sqrt(4 * a * b) ); //angle between the 3 points\n\t\td2 = (angle / Math.PI) * curviness; //temporary precalculation for speed (reusing d2 variable)\n\t\td1 = _sqrt(a) * d2; //the tighter the angle, the shorter we make the handles in proportion.\n\t\td2 *= _sqrt(b);\n\t\tif (x !== prevX || y !== prevY) {\n\t\t\tif (angle > cornerThreshold) {\n\t\t\t\tslope = _atan2(dy3, dx3);\n\t\t\t\tsegment.push(\n\t\t\t\t\t_round(x - _cos(slope) * d1), //first control point\n\t\t\t\t\t_round(y - _sin(slope) * d1),\n\t\t\t\t\t_round(x), //anchor\n\t\t\t\t\t_round(y),\n\t\t\t\t\t_round(x + _cos(slope) * d2), //second control point\n\t\t\t\t\t_round(y + _sin(slope) * d2)\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tslope = _atan2(dy1, dx1);\n\t\t\t\tsegment.push(\n\t\t\t\t\t_round(x - _cos(slope) * d1), //first control point\n\t\t\t\t\t_round(y - _sin(slope) * d1));\n\t\t\t\tslope = _atan2(dy2, dx2);\n\t\t\t\tsegment.push(\n\t\t\t\t\t_round(x), //anchor\n\t\t\t\t\t_round(y),\n\t\t\t\t\t_round(x + _cos(slope) * d2), //second control point\n\t\t\t\t\t_round(y + _sin(slope) * d2)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\tsegment.push(_round(nextX), _round(nextY), _round(nextX), _round(nextY));\n\treturn segment;\n}\n\n//returns the squared distance between an x/y coordinate and a segment between x1/y1 and x2/y2\nfunction pointToSegDist(x, y, x1, y1, x2, y2) {\n\tlet dx = x2 - x1,\n\t\tdy = y2 - y1,\n\t\tt;\n\tif (dx || dy) {\n\t\tt = ((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy);\n\t\tif (t > 1) {\n\t\t\tx1 = x2;\n\t\t\ty1 = y2;\n\t\t} else if (t > 0) {\n\t\t\tx1 += dx * t;\n\t\t\ty1 += dy * t;\n\t\t}\n\t}\n\treturn (x - x1) ** 2 + (y - y1) ** 2;\n}\n\nfunction simplifyStep(points, first, last, tolerance, simplified) {\n\tlet maxSqDist = tolerance,\n\t\tfirstX = points[first],\n\t\tfirstY = points[first+1],\n\t\tlastX = points[last],\n\t\tlastY = points[last+1],\n\t\tindex, i, d;\n\tfor (i = first + 2; i < last; i += 2) {\n\t\td = pointToSegDist(points[i], points[i+1], firstX, firstY, lastX, lastY);\n\t\tif (d > maxSqDist) {\n\t\t\tindex = i;\n\t\t\tmaxSqDist = d;\n\t\t}\n\t}\n\tif (maxSqDist > tolerance) {\n\t\tif (index - first > 2) {\n\t\t\tsimplifyStep(points, first, index, tolerance, simplified);\n\t\t}\n\t\tsimplified.push(points[index], points[index+1]);\n\t\tif (last - index > 2) {\n\t\t\tsimplifyStep(points, index, last, tolerance, simplified);\n\t\t}\n\t}\n}\n\n//points is an array of x/y values like [x, y, x, y, x, y]\nexport function simplifyPoints(points, tolerance) {\n\tlet prevX = parseFloat(points[0]),\n\t\tprevY = parseFloat(points[1]),\n\t\ttemp = [prevX, prevY],\n\t\tl = points.length - 2,\n\t\ti, x, y, dx, dy, result, last;\n\ttolerance = (tolerance || 1) ** 2;\n\tfor (i = 2; i < l; i += 2) {\n\t\tx = parseFloat(points[i]);\n\t\ty = parseFloat(points[i+1]);\n\t\tdx = prevX - x;\n\t\tdy = prevY - y;\n\t\tif (dx * dx + dy * dy > tolerance) {\n\t\t\ttemp.push(x, y);\n\t\t\tprevX = x;\n\t\t\tprevY = y;\n\t\t}\n\t}\n\ttemp.push(parseFloat(points[l]), parseFloat(points[l+1]));\n\tlast = temp.length - 2;\n\tresult = [temp[0], temp[1]];\n\tsimplifyStep(temp, 0, last, tolerance, result);\n\tresult.push(temp[last], temp[last+1]);\n\treturn result;\n}\n\nfunction getClosestProgressOnBezier(iterations, px, py, start, end, slices, x0, y0, x1, y1, x2, y2, x3, y3) {\n\tlet inc = (end - start) / slices,\n\t\tbest = 0,\n\t\tt = start,\n\t\tx, y, d, dx, dy, inv;\n\t_bestDistance = _largeNum;\n\twhile (t <= end) {\n\t\tinv = 1 - t;\n\t\tx = inv * inv * inv * x0 + 3 * inv * inv * t * x1 + 3 * inv * t * t * x2 + t * t * t * x3;\n\t\ty = inv * inv * inv * y0 + 3 * inv * inv * t * y1 + 3 * inv * t * t * y2 + t * t * t * y3;\n\t\tdx = x - px;\n\t\tdy = y - py;\n\t\td = dx * dx + dy * dy;\n\t\tif (d < _bestDistance) {\n\t\t\t_bestDistance = d;\n\t\t\tbest = t;\n\t\t}\n\t\tt += inc;\n\t}\n\treturn (iterations > 1) ? getClosestProgressOnBezier(iterations - 1, px, py, Math.max(best - inc, 0), Math.min(best + inc, 1), slices, x0, y0, x1, y1, x2, y2, x3, y3) : best;\n}\n\nexport function getClosestData(rawPath, x, y, slices) { //returns an object with the closest j, i, and t (j is the segment index, i is the index of the point in that segment, and t is the time/progress along that bezier)\n\tlet closest = {j:0, i:0, t:0},\n\t\tbestDistance = _largeNum,\n\t\ti, j, t, segment;\n\tfor (j = 0; j < rawPath.length; j++) {\n\t\tsegment = rawPath[j];\n\t\tfor (i = 0; i < segment.length; i+=6) {\n\t\t\tt = getClosestProgressOnBezier(1, x, y, 0, 1, slices || 20, segment[i], segment[i+1], segment[i+2], segment[i+3], segment[i+4], segment[i+5], segment[i+6], segment[i+7]);\n\t\t\tif (bestDistance > _bestDistance) {\n\t\t\t\tbestDistance = _bestDistance;\n\t\t\t\tclosest.j = j;\n\t\t\t\tclosest.i = i;\n\t\t\t\tclosest.t = t;\n\t\t\t}\n\t\t}\n\t}\n\treturn closest;\n}\n\n//subdivide a Segment closest to a specific x,y coordinate\nexport function subdivideSegmentNear(x, y, segment, slices, iterations) {\n\tlet l = segment.length,\n\t\tbestDistance = _largeNum,\n\t\tbestT = 0,\n\t\tbestSegmentIndex = 0,\n\t\tt, i;\n\tslices = slices || 20;\n\titerations = iterations || 3;\n\tfor (i = 0; i < l; i += 6) {\n\t\tt = getClosestProgressOnBezier(1, x, y, 0, 1, slices, segment[i], segment[i+1], segment[i+2], segment[i+3], segment[i+4], segment[i+5], segment[i+6], segment[i+7]);\n\t\tif (bestDistance > _bestDistance) {\n\t\t\tbestDistance = _bestDistance;\n\t\t\tbestT = t;\n\t\t\tbestSegmentIndex = i;\n\t\t}\n\t}\n\tt = getClosestProgressOnBezier(iterations, x, y, bestT - 0.05, bestT + 0.05, slices, segment[bestSegmentIndex], segment[bestSegmentIndex+1], segment[bestSegmentIndex+2], segment[bestSegmentIndex+3], segment[bestSegmentIndex+4], segment[bestSegmentIndex+5], segment[bestSegmentIndex+6], segment[bestSegmentIndex+7]);\n\tsubdivideSegment(segment, bestSegmentIndex, t);\n\treturn bestSegmentIndex + 6;\n}\n\n/*\nTakes any of the following and converts it to an all Cubic Bezier SVG data string:\n- A <path> data string like \"M0,0 L2,4 v20,15 H100\"\n- A RawPath, like [[x, y, x, y, x, y, x, y][[x, y, x, y, x, y, x, y]]\n- A Segment, like [x, y, x, y, x, y, x, y]\n\nNote: all numbers are rounded down to the closest 0.001 to minimize memory, maximize speed, and avoid odd numbers like 1e-13\n*/\nexport function rawPathToString(rawPath) {\n\tif (_isNumber(rawPath[0])) { //in case a segment is passed in instead\n\t\trawPath = [rawPath];\n\t}\n\tlet result = \"\",\n\t\tl = rawPath.length,\n\t\tsl, s, i, segment;\n\tfor (s = 0; s < l; s++) {\n\t\tsegment = rawPath[s];\n\t\tresult += \"M\" + _round(segment[0]) + \",\" + _round(segment[1]) + \" C\";\n\t\tsl = segment.length;\n\t\tfor (i = 2; i < sl; i++) {\n\t\t\tresult += _round(segment[i++]) + \",\" + _round(segment[i++]) + \" \" + _round(segment[i++]) + \",\" + _round(segment[i++]) + \" \" + _round(segment[i++]) + \",\" + _round(segment[i]) + \" \";\n\t\t}\n\t\tif (segment.closed) {\n\t\t\tresult += \"z\";\n\t\t}\n\t}\n\treturn result;\n}\n\n/*\n// takes a segment with coordinates [x, y, x, y, ...] and converts the control points into angles and lengths [x, y, angle, length, angle, length, x, y, angle, length, ...] so that it animates more cleanly and avoids odd breaks/kinks. For example, if you animate from 1 o'clock to 6 o'clock, it'd just go directly/linearly rather than around. So the length would be very short in the middle of the tween.\nexport function cpCoordsToAngles(segment, copy) {\n\tvar result = copy ? segment.slice(0) : segment,\n\t\tx, y, i;\n\tfor (i = 0; i < segment.length; i+=6) {\n\t\tx = segment[i+2] - segment[i];\n\t\ty = segment[i+3] - segment[i+1];\n\t\tresult[i+2] = Math.atan2(y, x);\n\t\tresult[i+3] = Math.sqrt(x * x + y * y);\n\t\tx = segment[i+6] - segment[i+4];\n\t\ty = segment[i+7] - segment[i+5];\n\t\tresult[i+4] = Math.atan2(y, x);\n\t\tresult[i+5] = Math.sqrt(x * x + y * y);\n\t}\n\treturn result;\n}\n\n// takes a segment that was converted with cpCoordsToAngles() to have angles and lengths instead of coordinates for the control points, and converts it BACK into coordinates.\nexport function cpAnglesToCoords(segment, copy) {\n\tvar result = copy ? segment.slice(0) : segment,\n\t\tlength = segment.length,\n\t\trnd = 1000,\n\t\tangle, l, i, j;\n\tfor (i = 0; i < length; i+=6) {\n\t\tangle = segment[i+2];\n\t\tl = segment[i+3]; //length\n\t\tresult[i+2] = (((segment[i] + Math.cos(angle) * l) * rnd) | 0) / rnd;\n\t\tresult[i+3] = (((segment[i+1] + Math.sin(angle) * l) * rnd) | 0) / rnd;\n\t\tangle = segment[i+4];\n\t\tl = segment[i+5]; //length\n\t\tresult[i+4] = (((segment[i+6] - Math.cos(angle) * l) * rnd) | 0) / rnd;\n\t\tresult[i+5] = (((segment[i+7] - Math.sin(angle) * l) * rnd) | 0) / rnd;\n\t}\n\treturn result;\n}\n\n//adds an \"isSmooth\" array to each segment and populates it with a boolean value indicating whether or not it's smooth (the control points have basically the same slope). For any smooth control points, it converts the coordinates into angle (x, in radians) and length (y) and puts them into the same index value in a smoothData array.\nexport function populateSmoothData(rawPath) {\n\tlet j = rawPath.length,\n\t\tsmooth, segment, x, y, x2, y2, i, l, a, a2, isSmooth, smoothData;\n\twhile (--j > -1) {\n\t\tsegment = rawPath[j];\n\t\tisSmooth = segment.isSmooth = segment.isSmooth || [0, 0, 0, 0];\n\t\tsmoothData = segment.smoothData = segment.smoothData || [0, 0, 0, 0];\n\t\tisSmooth.length = 4;\n\t\tl = segment.length - 2;\n\t\tfor (i = 6; i < l; i += 6) {\n\t\t\tx = segment[i] - segment[i - 2];\n\t\t\ty = segment[i + 1] - segment[i - 1];\n\t\t\tx2 = segment[i + 2] - segment[i];\n\t\t\ty2 = segment[i + 3] - segment[i + 1];\n\t\t\ta = _atan2(y, x);\n\t\t\ta2 = _atan2(y2, x2);\n\t\t\tsmooth = (Math.abs(a - a2) < 0.09);\n\t\t\tif (smooth) {\n\t\t\t\tsmoothData[i - 2] = a;\n\t\t\t\tsmoothData[i + 2] = a2;\n\t\t\t\tsmoothData[i - 1] = _sqrt(x * x + y * y);\n\t\t\t\tsmoothData[i + 3] = _sqrt(x2 * x2 + y2 * y2);\n\t\t\t}\n\t\t\tisSmooth.push(smooth, smooth, 0, 0, smooth, smooth);\n\t\t}\n\t\t//if the first and last points are identical, check to see if there's a smooth transition. We must handle this a bit differently due to their positions in the array.\n\t\tif (segment[l] === segment[0] && segment[l+1] === segment[1]) {\n\t\t\tx = segment[0] - segment[l-2];\n\t\t\ty = segment[1] - segment[l-1];\n\t\t\tx2 = segment[2] - segment[0];\n\t\t\ty2 = segment[3] - segment[1];\n\t\t\ta = _atan2(y, x);\n\t\t\ta2 = _atan2(y2, x2);\n\t\t\tif (Math.abs(a - a2) < 0.09) {\n\t\t\t\tsmoothData[l-2] = a;\n\t\t\t\tsmoothData[2] = a2;\n\t\t\t\tsmoothData[l-1] = _sqrt(x * x + y * y);\n\t\t\t\tsmoothData[3] = _sqrt(x2 * x2 + y2 * y2);\n\t\t\t\tisSmooth[l-2] = isSmooth[l-1] = true; //don't change indexes 2 and 3 because we'll trigger everything from the END, and this will optimize file size a bit.\n\t\t\t}\n\t\t}\n\t}\n\treturn rawPath;\n}\nexport function pointToScreen(svgElement, point) {\n\tif (arguments.length < 2) { //by default, take the first set of coordinates in the path as the point\n\t\tlet rawPath = getRawPath(svgElement);\n\t\tpoint = svgElement.ownerSVGElement.createSVGPoint();\n\t\tpoint.x = rawPath[0][0];\n\t\tpoint.y = rawPath[0][1];\n\t}\n\treturn point.matrixTransform(svgElement.getScreenCTM());\n}\n\n*/","/*!\n * matrix 3.0.2\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _doc, _win, _docElement, _body,\t_divContainer, _svgContainer, _identityMatrix,\n\t_transformProp = \"transform\",\n\t_transformOriginProp = _transformProp + \"Origin\",\n\t_setDoc = element => {\n\t\tlet doc = element.ownerDocument || element;\n\t\tif (!(_transformProp in element.style) && \"msTransform\" in element.style) { //to improve compatibility with old Microsoft browsers\n\t\t\t_transformProp = \"msTransform\";\n\t\t\t_transformOriginProp = _transformProp + \"Origin\";\n\t\t}\n\t\twhile (doc.parentNode && (doc = doc.parentNode)) {\t}\n\t\t_win = window;\n\t\t_identityMatrix = new Matrix2D();\n\t\tif (doc) {\n\t\t\t_doc = doc;\n\t\t\t_docElement = doc.documentElement;\n\t\t\t_body = doc.body;\n\t\t}\n\t\treturn doc;\n\t},\n\t_svgTemps = [], //we create 3 elements for SVG, and 3 for other DOM elements and cache them for performance reasons. They get nested in _divContainer and _svgContainer so that just one element is added to the DOM on each successive attempt. Again, performance is key.\n\t_divTemps = [],\n\t_getDocScrollTop = () => _win.pageYOffset || _doc.scrollTop || _docElement.scrollTop || _body.scrollTop || 0,\n\t_getDocScrollLeft = () => _win.pageXOffset || _doc.scrollLeft || _docElement.scrollLeft || _body.scrollLeft || 0,\n\t_svgOwner = element => element.ownerSVGElement || ((element.tagName + \"\").toLowerCase() === \"svg\" ? element : null),\n\t_isFixed = element => {\n\t\tif (_win.getComputedStyle(element).position === \"fixed\") {\n\t\t\treturn true;\n\t\t}\n\t\telement = element.parentNode;\n\t\tif (element && element.nodeType === 1) { // avoid document fragments which will throw an error.\n\t\t\treturn _isFixed(element);\n\t\t}\n\t},\n\t_createSibling = (element, i) => {\n\t\tif (element.parentNode && (_doc || _setDoc(element))) {\n\t\t\tlet svg = _svgOwner(element),\n\t\t\t\tns = svg ? (svg.getAttribute(\"xmlns\") || \"http://www.w3.org/2000/svg\") : \"http://www.w3.org/1999/xhtml\",\n\t\t\t\ttype = svg ? (i ? \"rect\" : \"g\") : \"div\",\n\t\t\t\tx = i !== 2 ? 0 : 100,\n\t\t\t\ty = i === 3 ? 100 : 0,\n\t\t\t\tcss = \"position:absolute;display:block;\",\n\t\t\t\te = _doc.createElementNS ? _doc.createElementNS(ns.replace(/^https/, \"http\"), type) : _doc.createElement(type);\n\t\t\tif (i) {\n\t\t\t\tif (!svg) {\n\t\t\t\t\tif (!_divContainer) {\n\t\t\t\t\t\t_divContainer = _createSibling(element);\n\t\t\t\t\t\t_divContainer.style.cssText = css;\n\t\t\t\t\t}\n\t\t\t\t\te.style.cssText = css + \"width:1px;height:1px;top:\" + y + \"px;left:\" + x + \"px\";\n\t\t\t\t\t_divContainer.appendChild(e);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (!_svgContainer) {\n\t\t\t\t\t\t_svgContainer = _createSibling(element);\n\t\t\t\t\t}\n\t\t\t\t\te.setAttribute(\"width\", 1);\n\t\t\t\t\te.setAttribute(\"height\", 1);\n\t\t\t\t\te.setAttribute(\"transform\", \"translate(\" + x + \",\" + y + \")\");\n\t\t\t\t\t_svgContainer.appendChild(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn e;\n\t\t}\n\t\tthrow \"Need document and parent.\";\n\t},\n\t_placeSiblings = element => {\n\t\tlet svg = _svgOwner(element),\n\t\t\tisRootSVG = element === svg,\n\t\t\tsiblings = svg ? _svgTemps : _divTemps,\n\t\t\tcontainer, m, b, x, y;\n\t\tif (element === _win) {\n\t\t\treturn element;\n\t\t}\n\t\tif (!siblings.length) {\n\t\t\tsiblings.push(_createSibling(element, 1), _createSibling(element, 2), _createSibling(element, 3));\n\t\t}\n\t\tcontainer = svg ? _svgContainer : _divContainer;\n\t\tif (svg) {\n\t\t\tb = isRootSVG ? {x:0, y:0} : element.getBBox();\n\t\t\tm = element.transform ? element.transform.baseVal : []; // IE11 doesn't follow the spec.\n\t\t\tif (m.length) {\n\t\t\t\tm = m.consolidate().matrix;\n\t\t\t\tx = m.a * b.x + m.c * b.y;\n\t\t\t\ty = m.b * b.x + m.d * b.y;\n\t\t\t} else {\n\t\t\t\tm = _identityMatrix;\n\t\t\t\tif (element.tagName.toLowerCase() === \"g\") {\n\t\t\t\t\tx = y = 0;\n\t\t\t\t} else {\n\t\t\t\t\tx = b.x;\n\t\t\t\t\ty = b.y;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontainer.setAttribute(\"transform\", \"matrix(\" + m.a + \",\" + m.b + \",\" + m.c + \",\" + m.d + \",\" + (m.e + x) + \",\" + (m.f + y) + \")\");\n\t\t\t(isRootSVG ? svg : element.parentNode).appendChild(container);\n\t\t} else {\n\t\t\tcontainer.style.top = element.offsetTop + \"px\";\n\t\t\tcontainer.style.left = element.offsetLeft + \"px\";\n\t\t\tm = _win.getComputedStyle(element);\n\t\t\tcontainer.style[_transformProp] = m[_transformProp];\n\t\t\tcontainer.style[_transformOriginProp] = m[_transformOriginProp];\n\t\t\tcontainer.style.position = m.position === \"fixed\" ? \"fixed\" : \"absolute\";\n\t\t\telement.parentNode.appendChild(container);\n\t\t}\n\t\treturn container;\n\t},\n\t_setMatrix = (m, a, b, c, d, e, f) => {\n\t\tm.a = a;\n\t\tm.b = b;\n\t\tm.c = c;\n\t\tm.d = d;\n\t\tm.e = e;\n\t\tm.f = f;\n\t\treturn m;\n\t};\n\nexport class Matrix2D {\n\tconstructor(a=1, b=0, c=0, d=1, e=0, f=0) {\n\t\t_setMatrix(this, a, b, c, d, e, f);\n\t}\n\n\tinverse() {\n\t\tlet {a, b, c, d, e, f} = this,\n\t\t\tdeterminant = (a * d - b * c);\n\t\treturn _setMatrix(\n\t\t\tthis,\n\t\t\td / determinant,\n\t\t\t-b / determinant,\n\t\t\t-c / determinant,\n\t\t\ta / determinant,\n\t\t\t(c * f - d * e) / determinant,\n\t\t\t-(a * f - b * e) / determinant\n\t\t);\n\t}\n\n\tmultiply(matrix) {\n\t\tlet {a, b, c, d, e, f} = this,\n\t\t\ta2 = matrix.a,\n\t\t\tb2 = matrix.c,\n\t\t\tc2 = matrix.b,\n\t\t\td2 = matrix.d,\n\t\t\te2 = matrix.e,\n\t\t\tf2 = matrix.f;\n\t\treturn _setMatrix(this,\n\t\t\ta2 * a + c2 * c,\n\t\t\ta2 * b + c2 * d,\n\t\t\tb2 * a + d2 * c,\n\t\t\tb2 * b + d2 * d,\n\t\t\te + e2 * a + f2 * c,\n\t\t\tf + e2 * b + f2 * d);\n\t}\n\n\tequals(matrix) {\n\t\tlet {a, b, c, d, e, f} = this;\n\t\treturn (a === matrix.a && b === matrix.b && c === matrix.c && d === matrix.d && e === matrix.e && f === matrix.f);\n\t}\n\n\tapply(point, decoratee={}) {\n\t\tlet {x, y} = point,\n\t\t\t{a, b, c, d, e, f} = this;\n\t\tdecoratee.x = x * a + y * c + e;\n\t\tdecoratee.y = x * b + y * d + f;\n\t\treturn decoratee;\n\t}\n\n}\n\n//feed in an element and it'll return a 2D matrix (optionally inverted) so that you can translate between coordinate spaces.\n// Inverting lets you translate a global point into a local coordinate space. No inverting lets you go the other way.\n// We needed this to work around various browser bugs, like Firefox doesn't accurately report getScreenCTM() when there\n// are transforms applied to ancestor elements.\n// The matrix math to convert any x/y coordinate is:\n// tx = m.a * x + m.c * y + m.e\n// ty = m.b * x + m.d * y + m.f\nexport function getGlobalMatrix(element, inverse) {\n\tif (!element || !element.parentNode) {\n\t\treturn new Matrix2D();\n\t}\n\tlet svg = _svgOwner(element),\n\t\ttemps = svg ? _svgTemps : _divTemps,\n\t\tcontainer = _placeSiblings(element),\n\t\tb1 = temps[0].getBoundingClientRect(),\n\t\tb2 = temps[1].getBoundingClientRect(),\n\t\tb3 = temps[2].getBoundingClientRect(),\n\t\tparent = container.parentNode,\n\t\tisFixed = _isFixed(element),\n\t\tm = new Matrix2D(\n\t\t\t(b2.left - b1.left) / 100,\n\t\t\t(b2.top - b1.top) / 100,\n\t\t\t(b3.left - b1.left) / 100,\n\t\t\t(b3.top - b1.top) / 100,\n\t\t\tb1.left + (isFixed ? 0 : _getDocScrollLeft()),\n\t\t\tb1.top + (isFixed ? 0 : _getDocScrollTop())\n\t\t);\n\tparent.removeChild(container);\n\treturn inverse ? m.inverse() : m;\n}\n","/*!\n * MotionPathPlugin 3.0.2\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nimport { getRawPath, cacheRawPathMeasurements, getPositionOnPath, pointsToSegment, flatPointsToSegment, sliceRawPath, stringToRawPath, rawPathToString, transformRawPath, convertToPath } from \"./utils/paths.js\";\nimport { getGlobalMatrix } from \"./utils/matrix.js\";\n\nlet _xProps = [\"x\",\"translateX\",\"left\",\"marginLeft\"],\n\t_yProps = [\"y\",\"translateY\",\"top\",\"marginTop\"],\n\t_DEG2RAD = Math.PI / 180,\n\tgsap, PropTween, _getUnit, _toArray,\n\t_getGSAP = () => gsap || (typeof(window) !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_populateSegmentFromArray = (segment, values, property, mode) => { //mode: 0 = x but don't fill y yet, 1 = y.\n\t\tlet l = values.length,\n\t\t\tsi = mode,\n\t\t\ti = 0;\n\t\tfor (; i < l; i++) {\n\t\t\tsegment[si] = parseFloat(values[i][property]);\n\t\t\tsi += 2;\n\t\t}\n\t\treturn segment;\n\t},\n\t_getPropNum = (target, prop, unit) => parseFloat(target._gsap.get(target, prop, unit || \"px\")) || 0,\n\t_relativize = segment => {\n\t\tlet x = segment[0],\n\t\t\ty = segment[1],\n\t\t\ti;\n\t\tfor (i = 2; i < segment.length; i+=2) {\n\t\t\tx = (segment[i] += x);\n\t\t\ty = (segment[i+1] += y);\n\t\t}\n\t},\n\t_segmentToRawPath = (plugin, segment, target, x, y, slicer, vars) => {\n\t\tif (vars.type === \"cubic\") {\n\t\t\tsegment = [segment];\n\t\t} else {\n\t\t\tsegment.unshift(_getPropNum(target, x, vars.unitX), y ? _getPropNum(target, y, vars.unitY) : 0);\n\t\t\tif (vars.relative) {\n\t\t\t\t_relativize(segment);\n\t\t\t}\n\t\t\tlet pointFunc = y ? pointsToSegment : flatPointsToSegment;\n\t\t\tsegment = [pointFunc(segment, vars.curviness)];\n\t\t}\n\t\tsegment = slicer(_align(segment, target, vars));\n\t\t_addDimensionalPropTween(plugin, target, x, segment, \"x\", vars.unitX);\n\t\tif (y) {\n\t\t\t_addDimensionalPropTween(plugin, target, y, segment, \"y\", vars.unitY);\n\t\t}\n\t\treturn cacheRawPathMeasurements(segment, vars.resolution || (vars.curviness === 0 ? 20 : 12)); //when curviness is 0, it creates control points right on top of the anchors which makes it more sensitive to resolution, thus we change the default accordingly.\n\t},\n\t_emptyFunc = v => v,\n\t_align = (rawPath, target, {align, matrix, offsetX, offsetY}) => {\n\t\tlet x, y, tween, targetMatrix, alignTarget, alignPath, alignMatrix, invertedMatrix, tx, ty;\n\t\tif (!rawPath || !rawPath.length) {\n\t\t\treturn getRawPath(\"M0,0L0,0\");\n\t\t}\n\t\tif (align) {\n\t\t\tif (align === \"self\" || ((alignTarget = _toArray(align)[0] || target) === target)) {\n\t\t\t\tx = _getPropNum(target, \"x\") - rawPath[0][0];\n\t\t\t\ty = _getPropNum(target, \"y\") - rawPath[0][1];\n\t\t\t\ttransformRawPath(rawPath, 1, 0, 0, 1, x, y);\n\t\t\t} else {\n\t\t\t\ttween = gsap.to(target, {xPercent:0, yPercent:0, x:0, y:0}).progress(1); //get rid of transforms, otherwise they'll throw off the measurements.\n\t\t\t\ttargetMatrix = getGlobalMatrix(target); //we cannot use something like getScreenCTM() because of a major bug in Firefox that has existed for years and prevents values from being reported correctly when an ancestor element has transforms applied. Our proprietary getGlobalMatrix() works across all browsers.\n\t\t\t\ttween.render(-1).kill();\n\t\t\t\tif (alignTarget.getTotalLength && alignTarget.tagName.toLowerCase() === \"path\") { //path\n\t\t\t\t\talignPath = getRawPath(alignTarget);\n\t\t\t\t\talignMatrix = getGlobalMatrix(alignTarget.parentNode);\n\t\t\t\t\tx = alignPath[0][0];\n\t\t\t\t\ty = alignPath[0][1];\n\t\t\t\t} else {\n\t\t\t\t\talignMatrix = getGlobalMatrix(alignTarget);\n\t\t\t\t\tx = 0;\n\t\t\t\t\ty = 0;\n\t\t\t\t}\n\t\t\t\ttx = alignMatrix.a * x + alignMatrix.c * y + alignMatrix.e - targetMatrix.e;\n\t\t\t\tty = alignMatrix.b * x + alignMatrix.d * y + alignMatrix.f - targetMatrix.f;\n\t\t\t\tinvertedMatrix = getGlobalMatrix(target.parentNode, true);\n\t\t\t\tx = invertedMatrix.a * tx + invertedMatrix.c * ty;\n\t\t\t\ty = invertedMatrix.b * tx + invertedMatrix.d * ty;\n\t\t\t\ttx = rawPath[0][0];\n\t\t\t\tty = rawPath[0][1];\n\t\t\t\talignMatrix.multiply(invertedMatrix);\n\t\t\t\tx -= alignMatrix.a * tx + alignMatrix.c * ty;\n\t\t\t\ty -= alignMatrix.b * tx + alignMatrix.d * ty;\n\t\t\t\ttransformRawPath(rawPath, alignMatrix.a, alignMatrix.b, alignMatrix.c, alignMatrix.d, x, y);\n\t\t\t}\n\t\t}\n\t\tif (matrix) {\n\t\t\ttransformRawPath(rawPath, matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f);\n\t\t} else if (offsetX || offsetY) {\n\t\t\ttransformRawPath(rawPath, 1, 0, 0, 1, offsetX || 0, offsetY || 0);\n\t\t}\n\t\treturn rawPath;\n\t},\n\t_addDimensionalPropTween = (plugin, target, property, rawPath, pathProperty, forceUnit) => {\n\t\tlet cache = target._gsap,\n\t\t\tpt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _emptyFunc, 0, cache.set(target, property, plugin));\n\t\tpt.u = _getUnit(cache.get(target, property, forceUnit)) || 0;\n\t\tpt.path = rawPath;\n\t\tpt.pp = pathProperty;\n\t\tplugin._props.push(property);\n\t},\n\t_sliceModifier = (start, end) => rawPath => (start || end !== 1) ? sliceRawPath(rawPath, start, end) : rawPath;\n\n\nexport const MotionPathPlugin = {\n\tversion:\"3.0.2\",\n\tname:\"motionPath\",\n\tregister(core, Plugin, propTween) {\n\t\tgsap = core;\n\t\t_getUnit = gsap.utils.getUnit;\n\t\t_toArray = gsap.utils.toArray;\n\t\tPropTween = propTween;\n\t},\n\tinit(target, vars, tween, index, targets) {\n\t\tif (!gsap) {\n\t\t\tconsole.warn(\"Please gsap.registerPlugin(MotionPathPlugin)\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!(typeof(vars) === \"object\" && !vars.style) || !vars.path) {\n\t\t\tvars = {path:vars};\n\t\t}\n\t\tlet rawPaths = [],\n\t\t\tpath = vars.path,\n\t\t\tfirstObj = path[0],\n\t\t\tautoRotate = vars.autoRotate,\n\t\t\tslicer = _sliceModifier(vars.start, (\"end\" in vars) ? vars.end : 1),\n\t\t\trawPath, p, x, y;\n\t\tthis.rawPaths = rawPaths;\n\t\tthis.target = target;\n\t\tif ((this.rotate = (autoRotate || autoRotate === 0))) { //get the rotational data FIRST so that the setTransform() method is called in the correct order in the render() loop - rotation gets set last.\n\t\t\tthis.rOffset = parseFloat(autoRotate) || 0;\n\t\t\tthis.radians = !!vars.useRadians;\n\t\t\tthis.rProp = vars.rotation || \"rotation\"; // rotation property\n\t\t\tthis.rSet = target._gsap.set(target, this.rProp, this); // rotation setter\n\t\t\tthis.ru = _getUnit(target._gsap.get(target, this.rProp)) || 0; // rotation units\n\t\t}\n\t\tif (Array.isArray(path) && !(\"closed\" in path) && typeof(firstObj) !== \"number\") {\n\t\t\tfor (p in firstObj) {\n\t\t\t\tif (~_xProps.indexOf(p)) {\n\t\t\t\t\tx = p;\n\t\t\t\t} else if (~_yProps.indexOf(p)) {\n\t\t\t\t\ty = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x && y) { //correlated values\n\t\t\t\trawPaths.push(_segmentToRawPath(this, _populateSegmentFromArray(_populateSegmentFromArray([], path, x, 0), path, y, 1), target, vars.x || x, vars.y || y, slicer, vars));\n\t\t\t} else {\n\t\t\t\tx = y = 0;\n\t\t\t}\n\t\t\tfor (p in firstObj) {\n\t\t\t\tif (p !== x && p !== y) {\n\t\t\t\t\trawPaths.push(_segmentToRawPath(this, _populateSegmentFromArray([], path, p, 0), target, p, 0, slicer, vars));\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\trawPath = slicer(_align(getRawPath(vars.path), target, vars));\n\t\t\tcacheRawPathMeasurements(rawPath, vars.resolution);\n\t\t\trawPaths.push(rawPath);\n\t\t\t_addDimensionalPropTween(this, target, vars.x || \"x\", rawPath, \"x\", vars.unitX || \"px\");\n\t\t\t_addDimensionalPropTween(this, target, vars.y || \"y\", rawPath, \"y\", vars.unitY || \"px\");\n\t\t}\n\t},\n\trender(ratio, data) {\n\t\tlet rawPaths = data.rawPaths,\n\t\t\ti = rawPaths.length,\n\t\t\tpt = data._pt;\n\t\tif (ratio > 1) {\n\t\t\tratio = 1;\n\t\t} else if (ratio < 0) {\n\t\t\tratio = 0;\n\t\t}\n\t\twhile (i--) {\n\t\t\tgetPositionOnPath(rawPaths[i], ratio, !i && data.rotate, rawPaths[i]);\n\t\t}\n\t\twhile (pt) {\n\t\t\tpt.set(pt.t, pt.p, pt.path[pt.pp] + pt.u, pt.d, ratio);\n\t\t\tpt = pt._next;\n\t\t}\n\t\tif (data.rotate) {\n\t\t\tdata.rSet(data.target, data.rProp, rawPaths[0].angle * (data.radians ? _DEG2RAD : 1) + data.rOffset + data.ru, data, ratio);\n\t\t}\n\t},\n\tgetLength(path) {\n\t\treturn cacheRawPathMeasurements(getRawPath(path)).totalLength;\n\t},\n\tsliceRawPath: sliceRawPath,\n\tgetRawPath: getRawPath,\n\tpointsToSegment: pointsToSegment,\n\tstringToRawPath: stringToRawPath,\n\trawPathToString: rawPathToString,\n\ttransformRawPath: transformRawPath,\n\tconvertToPath: (targets, swap) => _toArray(targets).map(target => convertToPath(target, swap !== false)),\n\tgetGlobalMatrix: getGlobalMatrix,\n\tgetPositionOnPath: getPositionOnPath,\n\tcacheRawPathMeasurements: cacheRawPathMeasurements,\n\tarrayToRawPath(value, vars) {\n\t\tvars = vars || {};\n\t\tlet segment = _populateSegmentFromArray(_populateSegmentFromArray([], value, vars.x || \"x\", 0), value, vars.y || \"y\", 1);\n\t\tif (vars.relative) {\n\t\t\t_relativize(segment);\n\t\t}\n\t\treturn [(vars.type === \"cubic\") ? segment : pointsToSegment(segment, vars.curviness)];\n\t}\n};\n\n_getGSAP() && gsap.registerPlugin(MotionPathPlugin);\n\nexport { MotionPathPlugin as default };"],"names":["_isString","value","_splitSegment","rawPath","segIndex","i","t","segment","shift","subdivideSegment","length","splice","slice","_appendOrMerge","index","prevSeg","l","concat","_svgPathExp","_numbersExp","_scientific","_selectorExp","_DEG2RAD","Math","PI","_RAD2DEG","_sin","sin","_cos","cos","_abs","abs","_sqrt","sqrt","_atan2","atan2","_largeNum","_isNumber","_temp","_temp2","_roundingNum","_wrapProgress","progress","round","_round","_copyMetaData","source","copy","totalLength","samples","lookup","minLength","resolution","totalPoints","getRawPath","e","test","document","querySelector","getAttribute","_gsPath","_dirty","stringToRawPath","console","warn","reverseSegment","y","reverse","reversed","_typeAttrs","rect","circle","ellipse","line","convertToPath","element","swap","data","x","r","ry","path","rcirc","rycirc","points","w","h","x2","x3","x4","x5","x6","y2","y3","y4","y5","y6","attr","type","tagName","toLowerCase","circ","getBBox","_createPath","ignore","name","createElementNS","call","attributes","nodeName","indexOf","setAttributeNS","nodeValue","_attrToObj","attrs","props","split","obj","rx","width","height","join","cx","cy","x1","y1","match","setAttribute","rawPathToString","_gsRawPath","parentNode","insertBefore","removeChild","getRotationAtBezierT","a","b","c","sliceRawPath","start","end","_isUndefined","loops","max","offset","min","sShift","eShift","totalSegments","j","copyRawPath","cacheRawPathMeasurements","wrap","s","getProgressData","eSeg","sSeg","eSegIndex","sSegIndex","ei","si","sameSegment","sameBezier","invertedOrder","angle","push","_reverseRawPath","skipOuter","measureSegment","startIndex","bezierQty","xd","xd1","yd","yd1","inv","lengthIndex","segLength","inc","endIndex","samplesIndex","prevLength","pathLength","ax","ay","cp1x","cp1y","cp2x","cp2y","x1a","y1a","x2a","y2a","decoratee","getPositionOnPath","includeAngle","point","result","transformRawPath","d","tx","ty","arcToSegment","lastX","lastY","largeArcFlag","sweepFlag","angleRad","cosAngle","sinAngle","TWOPI","dx2","dy2","x1_sq","y1_sq","radiiCheck","rx_sq","ry_sq","sq","coef","cx1","cy1","ux","uy","vx","vy","temp","angleStart","acos","angleExtent","isNaN","segments","ceil","angleIncrement","controlLength","ma","mb","mc","md","sx","sy","ex","ey","difX","difY","command","isRelative","startX","startY","beziers","prevCommand","replace","m","n","relativeX","relativeY","elements","errorMessage","log","toUpperCase","closed","pop","flatPointsToSegment","curviness","pointsToSegment","cornerThreshold","prevX","prevY","slope","dx1","dx3","dy1","dy3","d1","d2","nextX","nextY","sl","_svgOwner","ownerSVGElement","_createSibling","_doc","_setDoc","doc","ownerDocument","_transformProp","style","_transformOriginProp","_win","window","_identityMatrix","Matrix2D","_docElement","documentElement","_body","body","svg","ns","css","createElement","_svgContainer","appendChild","_divContainer","cssText","_setMatrix","f","_svgTemps","_divTemps","inverse","this","determinant","multiply","matrix","a2","b2","c2","e2","f2","equals","apply","getGlobalMatrix","temps","container","_placeSiblings","isRootSVG","siblings","transform","baseVal","consolidate","top","offsetTop","left","offsetLeft","getComputedStyle","position","b1","getBoundingClientRect","b3","parent","isFixed","_isFixed","nodeType","_getDocScrollLeft","pageXOffset","scrollLeft","_getDocScrollTop","pageYOffset","scrollTop","_populateSegmentFromArray","values","property","mode","parseFloat","_getPropNum","target","prop","unit","_gsap","get","_relativize","_segmentToRawPath","plugin","slicer","vars","unshift","unitX","unitY","relative","_align","_addDimensionalPropTween","_emptyFunc","v","gsap","PropTween","_getUnit","_toArray","_xProps","_yProps","tween","targetMatrix","alignTarget","alignPath","alignMatrix","invertedMatrix","align","offsetX","offsetY","to","xPercent","yPercent","render","kill","getTotalLength","pathProperty","forceUnit","cache","pt","_pt","set","u","pp","_props","MotionPathPlugin","version","register","core","Plugin","propTween","utils","getUnit","toArray","init","p","rawPaths","firstObj","autoRotate","_sliceModifier","rotate","rOffset","radians","useRadians","rProp","rotation","rSet","ru","Array","isArray","ratio","_next","getLength","targets","map","arrayToRawPath","_getGSAP","registerPlugin"],"mappings":";;;;;;;;;6MAuBa,SAAZA,EAAYC,SAA2B,iBAAXA,EAQZ,SAAhBC,EAAiBC,EAASC,EAAUC,EAAGC,OAClCC,EAAUJ,EAAQC,GACrBI,EAAc,IAANF,EAAU,EAAIG,iBAAiBF,EAASF,EAAGC,MAChDE,GAASA,EAAQH,EAAI,EAAIE,EAAQG,cACpCP,EAAQQ,OAAOP,EAAU,EAAGG,EAAQK,MAAM,EAAGP,EAAIG,EAAQ,IACzDD,EAAQI,OAAO,EAAGN,EAAIG,GACf,EA2BQ,SAAjBK,EAAkBV,EAASI,OACtBO,EAAQX,EAAQO,OACnBK,EAAUZ,EAAQW,EAAQ,IAAM,GAChCE,EAAID,EAAQL,OACTH,EAAQ,KAAOQ,EAAQC,EAAE,IAAMT,EAAQ,KAAOQ,EAAQC,EAAE,KAC3DT,EAAUQ,EAAQE,OAAOV,EAAQK,MAAM,IACvCE,KAEDX,EAAQW,GAASP,MA7DfW,EAAc,mDACjBC,EAAc,0CACdC,EAAc,gCACdC,EAAe,4BACfC,EAAWC,KAAKC,GAAK,IACrBC,EAAW,IAAMF,KAAKC,GACtBE,EAAOH,KAAKI,IACZC,EAAOL,KAAKM,IACZC,EAAOP,KAAKQ,IACZC,EAAQT,KAAKU,KACbC,EAASX,KAAKY,MACdC,EAAY,IAEZC,EAAY,SAAZA,UAAYpC,SAA2B,iBAAXA,GAE5BqC,EAAQ,GACRC,EAAS,GACTC,EAAe,IACfC,EAAgB,SAAhBA,cAAgBC,UAAanB,KAAKoB,OAAOD,EAAWN,GAAa,EAAII,GAAgBA,IAAmBE,EAAW,EAAK,EAAI,IAC5HE,EAAS,SAATA,OAAS3C,YAAaA,EAAQuC,GAAgBvC,EAAQ,GAAK,GAAK,KAAOuC,GAqBvEK,EAAgB,SAAhBA,cAAiBC,EAAQC,UACxBA,EAAKC,YAAcF,EAAOE,YACtBF,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I7E,EAAOyW,EAAKxS,GAAK,IAAK,UAClHwS,EAAKI,UACRR,GAAY/V,GAEN,CAAgB,UAAdmW,EAAKxQ,KAAoB3F,EAAUgQ,gBAAgBhQ,EAASmW,EAAKpG,eAhMhE,SAAX0K,kBAAiB7D,GAA4B,oBAAZnF,SAA4BmF,EAAOnF,OAAOmF,OAASA,EAAK8D,gBAAkB9D,EAoM5G6D,IAAc7D,EAAK8D,eAAehC"}
\ No newline at end of file
diff --git a/dist/PixiPlugin.js b/dist/PixiPlugin.js
index cca8814..49ef8a9 100644
--- a/dist/PixiPlugin.js
+++ b/dist/PixiPlugin.js
@@ -2,10 +2,10 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
-}(this, function (exports) { 'use strict';
+}(this, (function (exports) { 'use strict';
/*!
- * PixiPlugin 3.0.0
+ * PixiPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -328,7 +328,7 @@
}
var PixiPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "pixi",
register: function register(core, Plugin, propTween) {
gsap = core;
@@ -424,4 +424,4 @@
Object.defineProperty(exports, '__esModule', { value: true });
-}));
+})));
diff --git a/dist/PixiPlugin.min.js b/dist/PixiPlugin.min.js
index 0a8a679..ce5f1cb 100644
--- a/dist/PixiPlugin.min.js
+++ b/dist/PixiPlugin.min.js
@@ -1,11 +1,11 @@
-!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t=t||self).window=t.window||{})}(this,function(i){"use strict";
/*!
- * PixiPlugin 3.0.0
- * https://greensock.com
- *
- * @license Copyright 2008-2019, 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, [email protected]
- */function k(){return"undefined"!=typeof window}function l(){return o||k()&&(o=window.gsap)&&o.registerPlugin&&o}function m(t){return"function"==typeof t}function s(t,i){var r,o,e=[],n=0,s=0;for(r=0;r<4;r++){for(o=0;o<5;o++)s=4===o?t[n+4]:0,e[n+o]=t[n]*i[o]+t[n+1]*i[o+5]+t[n+2]*i[o+10]+t[n+3]*i[o+15]+s;n+=5}return e}function t(t,i){var r=1-i,o=r*p,e=r*g,n=r*b;return s([o+i,e,n,0,0,o,e+i,n,0,0,o,e,n+i,0,0,0,0,0,1,0],t)}function u(t,i,r){var o=c(i),e=o[0]/255,n=o[1]/255,l=o[2]/255,a=1-r;return s([a+r*e*p,r*e*g,r*e*b,0,0,r*n*p,a+r*n*g,r*n*b,0,0,r*l*p,r*l*g,a+r*l*b,0,0,0,0,0,1,0],t)}function v(t,i){i*=Math.PI/180;var r=Math.cos(i),o=Math.sin(i);return s([p+r*(1-p)+o*-p,g+r*-g+o*-g,b+r*-b+o*(1-b),0,0,p+r*-p+.143*o,g+r*(1-g)+.14*o,b+r*-b+-.283*o,0,0,p+r*-p+o*-(1-p),g+r*-g+o*g,b+r*(1-b)+o*b,0,0,0,0,0,1,0,0,0,0,0,1],t)}function w(t,i){return s([i,0,0,0,.5*(1-i),0,i,0,0,.5*(1-i),0,0,i,0,.5*(1-i),0,0,0,1,0],t)}function x(t,i){var r,o=h.filters[i],e=t.filters||[],n=e.length;for(o||function _warn(t){console.warn(t)}(i+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--n;)if(e[n]instanceof o)return e[n];return r=new o,"BlurFilter"===i&&(r.blur=0),e.push(r),t.filters=e,r}function y(t,i,r,o){i.add(r,t,r[t],o[t]),i._props.push(t)}function z(t,i){var r=new h.filters.ColorMatrixFilter;return r.matrix=i,r.brightness(t,!0),r.matrix}function C(i,r,o){var e,n,s,l=x(i,"ColorMatrixFilter"),a=i._gsColorMatrixFilter=i._gsColorMatrixFilter||function _copy(t){var i,r={};for(i in t)r[i]=t[i];return r}(P),c=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter);s=l.matrix,r.resolution&&(l.resolution=r.resolution),r.matrix&&r.matrix.length===s.length?(n=r.matrix,1!==a.contrast&&y("contrast",o,a,P),a.hue&&y("hue",o,a,P),1!==a.brightness&&y("brightness",o,a,P),a.colorizeAmount&&(y("colorize",o,a,P),y("colorizeAmount",o,a,P)),1!==a.saturation&&y("saturation",o,a,P)):(n=f.slice(),null!=r.contrast?(n=w(n,+r.contrast),y("contrast",o,a,r)):1!==a.contrast&&(c?n=w(n,a.contrast):y("contrast",o,a,P)),null!=r.hue?(n=v(n,+r.hue),y("hue",o,a,r)):a.hue&&(c?n=v(n,a.hue):y("hue",o,a,P)),null!=r.brightness?(n=z(+r.brightness,n),y("brightness",o,a,r)):1!==a.brightness&&(c?n=z(a.brightness,n):y("brightness",o,a,P)),null!=r.colorize?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,n=u(n,r.colorize,r.colorizeAmount),y("colorize",o,a,r),y("colorizeAmount",o,a,r)):a.colorizeAmount&&(c?n=u(n,a.colorize,a.colorizeAmount):(y("colorize",o,a,P),y("colorizeAmount",o,a,P))),null!=r.saturation?(n=t(n,+r.saturation),y("saturation",o,a,r)):1!==a.saturation&&(c?n=t(n,a.saturation):y("saturation",o,a,P))),e=n.length;for(;-1<--e;)n[e]!==s[e]&&o.add(s,e,s[e],n[e],"colorMatrixFilter");o._props.push("colorMatrixFilter")}function D(t,i){var r=i.t,o=i.p,e=i.color;(0,i.set)(r,o,e[0]<<16|e[1]<<8|e[2])}function E(t,i){var r=i.g;r&&(r.dirty++,r.clearDirty++)}function F(t,i){i.t.visible=!!i.t.alpha}function G(t,i,r,o){var e=t[i],n=c(m(e)?t[i.indexOf("set")||!m(t["get"+i.substr(3)])?i:"get"+i.substr(3)]():e),s=c(r);o._pt=new d(o._pt,t,i,0,0,D,{t:t,p:i,color:n,set:a(t,i)}),o.add(n,0,n[0],s[0]),o.add(n,1,n[1],s[1]),o.add(n,2,n[2],s[2])}function M(t){return"string"==typeof t&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*O:t*O}function N(){k()&&(r=window,o=l(),h=h||r.PIXI,c=o.utils.splitColor)}var o,r,c,h,d,a,e,n,f=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],p=.212671,g=.71516,b=.072169,P={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},A={tint:1,lineColor:1,fillColor:1},_="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),I={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},X={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},O=Math.PI/180;for(e=0;e<_.length;e++)n=_[e],I[n+"X"]=n,I[n+"Y"]=n;var S={version:"3.0.0",name:"pixi",register:function register(t,i,r){o=t,d=r,a=i.getSetter,N()},registerPIXI:function registerPIXI(t){h=t},init:function init(t,i){if(h||N(),!t instanceof h.DisplayObject)return!1;var r,o,e,n,s,l,a,u,c,f="4"===h.VERSION.charAt(0);for(l in i){if(r=I[l],e=i[l],r)o=~l.charAt(l.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[r],o,t[r][o],"skew"===r?M(e):e);else if("scale"===l||"anchor"===l||"pivot"===l||"tileScale"===l)this.add(t[l],"x",t[l].x,e),this.add(t[l],"y",t[l].y,e);else if("rotation"===l)this.add(t,l,t.rotation,M(e));else if(X[l])n||(C(t,i.colorMatrixFilter||i,this),n=!0);else if("blur"===l||"blurX"===l||"blurY"===l||"blurPadding"===l){if(s=x(t,"BlurFilter"),this.add(s,l,s[l],e),0!==i.blurPadding)for(a=i.blurPadding||2*Math.max(s[l],e),u=t.filters.length;-1<--u;)t.filters[u].padding=Math.max(t.filters[u].padding,a)}else if(A[l])if(("lineColor"===l||"fillColor"===l)&&t instanceof h.Graphics)for(c=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,l,0,0,E,{g:t.geometry||t}),u=c.length;-1<--u;)G(f?c[u]:c[u][l.substr(0,4)+"Style"],f?l:"color",e,this);else G(t,l,e,this);else"autoAlpha"===l?(this._pt=new d(this._pt,t,"visible",0,0,F),this.add(t,"alpha",t.alpha,e),this._props.push("alpha","visible")):this.add(t,l,"get",e);this._props.push(l)}}};l()&&o.registerPlugin(S),i.PixiPlugin=S,i.default=S,Object.defineProperty(i,"__esModule",{value:!0})});
+ * PixiPlugin 3.0.2
+ * https://greensock.com
+ *
+ * @license Copyright 2019, 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, [email protected]
+ */
+
+!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t=t||self).window=t.window||{})}(this,function(i){"use strict";function k(){return"undefined"!=typeof window}function l(){return o||k()&&(o=window.gsap)&&o.registerPlugin&&o}function m(t){return"function"==typeof t}function s(t,i){var r,o,e=[],n=0,s=0;for(r=0;r<4;r++){for(o=0;o<5;o++)s=4===o?t[n+4]:0,e[n+o]=t[n]*i[o]+t[n+1]*i[o+5]+t[n+2]*i[o+10]+t[n+3]*i[o+15]+s;n+=5}return e}function t(t,i){var r=1-i,o=r*p,e=r*g,n=r*b;return s([o+i,e,n,0,0,o,e+i,n,0,0,o,e,n+i,0,0,0,0,0,1,0],t)}function u(t,i,r){var o=c(i),e=o[0]/255,n=o[1]/255,l=o[2]/255,a=1-r;return s([a+r*e*p,r*e*g,r*e*b,0,0,r*n*p,a+r*n*g,r*n*b,0,0,r*l*p,r*l*g,a+r*l*b,0,0,0,0,0,1,0],t)}function v(t,i){i*=Math.PI/180;var r=Math.cos(i),o=Math.sin(i);return s([p+r*(1-p)+o*-p,g+r*-g+o*-g,b+r*-b+o*(1-b),0,0,p+r*-p+.143*o,g+r*(1-g)+.14*o,b+r*-b+-.283*o,0,0,p+r*-p+o*-(1-p),g+r*-g+o*g,b+r*(1-b)+o*b,0,0,0,0,0,1,0,0,0,0,0,1],t)}function w(t,i){return s([i,0,0,0,.5*(1-i),0,i,0,0,.5*(1-i),0,0,i,0,.5*(1-i),0,0,0,1,0],t)}function x(t,i){var r,o=h.filters[i],e=t.filters||[],n=e.length;for(o||function _warn(t){console.warn(t)}(i+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--n;)if(e[n]instanceof o)return e[n];return r=new o,"BlurFilter"===i&&(r.blur=0),e.push(r),t.filters=e,r}function y(t,i,r,o){i.add(r,t,r[t],o[t]),i._props.push(t)}function z(t,i){var r=new h.filters.ColorMatrixFilter;return r.matrix=i,r.brightness(t,!0),r.matrix}function C(i,r,o){var e,n,s,l=x(i,"ColorMatrixFilter"),a=i._gsColorMatrixFilter=i._gsColorMatrixFilter||function _copy(t){var i,r={};for(i in t)r[i]=t[i];return r}(P),c=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter);s=l.matrix,r.resolution&&(l.resolution=r.resolution),r.matrix&&r.matrix.length===s.length?(n=r.matrix,1!==a.contrast&&y("contrast",o,a,P),a.hue&&y("hue",o,a,P),1!==a.brightness&&y("brightness",o,a,P),a.colorizeAmount&&(y("colorize",o,a,P),y("colorizeAmount",o,a,P)),1!==a.saturation&&y("saturation",o,a,P)):(n=f.slice(),null!=r.contrast?(n=w(n,+r.contrast),y("contrast",o,a,r)):1!==a.contrast&&(c?n=w(n,a.contrast):y("contrast",o,a,P)),null!=r.hue?(n=v(n,+r.hue),y("hue",o,a,r)):a.hue&&(c?n=v(n,a.hue):y("hue",o,a,P)),null!=r.brightness?(n=z(+r.brightness,n),y("brightness",o,a,r)):1!==a.brightness&&(c?n=z(a.brightness,n):y("brightness",o,a,P)),null!=r.colorize?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,n=u(n,r.colorize,r.colorizeAmount),y("colorize",o,a,r),y("colorizeAmount",o,a,r)):a.colorizeAmount&&(c?n=u(n,a.colorize,a.colorizeAmount):(y("colorize",o,a,P),y("colorizeAmount",o,a,P))),null!=r.saturation?(n=t(n,+r.saturation),y("saturation",o,a,r)):1!==a.saturation&&(c?n=t(n,a.saturation):y("saturation",o,a,P))),e=n.length;for(;-1<--e;)n[e]!==s[e]&&o.add(s,e,s[e],n[e],"colorMatrixFilter");o._props.push("colorMatrixFilter")}function D(t,i){var r=i.t,o=i.p,e=i.color;(0,i.set)(r,o,e[0]<<16|e[1]<<8|e[2])}function E(t,i){var r=i.g;r&&(r.dirty++,r.clearDirty++)}function F(t,i){i.t.visible=!!i.t.alpha}function G(t,i,r,o){var e=t[i],n=c(m(e)?t[i.indexOf("set")||!m(t["get"+i.substr(3)])?i:"get"+i.substr(3)]():e),s=c(r);o._pt=new d(o._pt,t,i,0,0,D,{t:t,p:i,color:n,set:a(t,i)}),o.add(n,0,n[0],s[0]),o.add(n,1,n[1],s[1]),o.add(n,2,n[2],s[2])}function M(t){return"string"==typeof t&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*O:t*O}function N(){k()&&(r=window,o=l(),h=h||r.PIXI,c=o.utils.splitColor)}var o,r,c,h,d,a,e,n,f=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],p=.212671,g=.71516,b=.072169,P={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},A={tint:1,lineColor:1,fillColor:1},_="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),I={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},X={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},O=Math.PI/180;for(e=0;e<_.length;e++)n=_[e],I[n+"X"]=n,I[n+"Y"]=n;var S={version:"3.0.2",name:"pixi",register:function register(t,i,r){o=t,d=r,a=i.getSetter,N()},registerPIXI:function registerPIXI(t){h=t},init:function init(t,i){if(h||N(),!t instanceof h.DisplayObject)return!1;var r,o,e,n,s,l,a,u,c,f="4"===h.VERSION.charAt(0);for(l in i){if(r=I[l],e=i[l],r)o=~l.charAt(l.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[r],o,t[r][o],"skew"===r?M(e):e);else if("scale"===l||"anchor"===l||"pivot"===l||"tileScale"===l)this.add(t[l],"x",t[l].x,e),this.add(t[l],"y",t[l].y,e);else if("rotation"===l)this.add(t,l,t.rotation,M(e));else if(X[l])n||(C(t,i.colorMatrixFilter||i,this),n=!0);else if("blur"===l||"blurX"===l||"blurY"===l||"blurPadding"===l){if(s=x(t,"BlurFilter"),this.add(s,l,s[l],e),0!==i.blurPadding)for(a=i.blurPadding||2*Math.max(s[l],e),u=t.filters.length;-1<--u;)t.filters[u].padding=Math.max(t.filters[u].padding,a)}else if(A[l])if(("lineColor"===l||"fillColor"===l)&&t instanceof h.Graphics)for(c=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,l,0,0,E,{g:t.geometry||t}),u=c.length;-1<--u;)G(f?c[u]:c[u][l.substr(0,4)+"Style"],f?l:"color",e,this);else G(t,l,e,this);else"autoAlpha"===l?(this._pt=new d(this._pt,t,"visible",0,0,F),this.add(t,"alpha",t.alpha,e),this._props.push("alpha","visible")):this.add(t,l,"get",e);this._props.push(l)}}};l()&&o.registerPlugin(S),i.PixiPlugin=S,i.default=S,Object.defineProperty(i,"__esModule",{value:!0})});
//# sourceMappingURL=PixiPlugin.min.js.map
diff --git a/dist/PixiPlugin.min.js.map b/dist/PixiPlugin.min.js.map
index e665368..dd927b8 100644
--- a/dist/PixiPlugin.min.js.map
+++ b/dist/PixiPlugin.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"PixiPlugin.min.js","sources":["../src/PixiPlugin.js"],"sourcesContent":["/*!\n * PixiPlugin 3.0.0\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _win, _splitColor, _coreInitted, _PIXI, PropTween, _getSetter,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_isFunction = value => typeof(value) === \"function\",\n\t_warn = message => console.warn(message),\n\t_idMatrix = [1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],\n\t_lumR = 0.212671,\n\t_lumG = 0.715160,\n\t_lumB = 0.072169,\n\t_applyMatrix = (m, m2) => {\n\t\tlet temp = [],\n\t\t\ti = 0,\n\t\t\tz = 0,\n\t\t\ty, x;\n\t\tfor (y = 0; y < 4; y++) {\n\t\t\tfor (x = 0; x < 5; x++) {\n\t\t\t\tz = (x === 4) ? m[i + 4] : 0;\n\t\t\t\ttemp[i + x] = m[i] * m2[x] + m[i+1] * m2[x + 5] +\tm[i+2] * m2[x + 10] + m[i+3] * m2[x + 15] +\tz;\n\t\t\t}\n\t\t\ti += 5;\n\t\t}\n\t\treturn temp;\n\t},\n\t_setSaturation = (m, n) => {\n\t\tlet inv = 1 - n,\n\t\t\tr = inv * _lumR,\n\t\t\tg = inv * _lumG,\n\t\t\tb = inv * _lumB;\n\t\treturn _applyMatrix([r + n, g, b, 0, 0, r, g + n, b, 0, 0, r, g, b + n, 0, 0, 0, 0, 0, 1, 0], m);\n\t},\n\t_colorize = (m, color, amount) => {\n\t\tlet c = _splitColor(color),\n\t\t\tr = c[0] / 255,\n\t\t\tg = c[1] / 255,\n\t\t\tb = c[2] / 255,\n\t\t\tinv = 1 - amount;\n\t\treturn _applyMatrix([inv + amount * r * _lumR, amount * r * _lumG, amount * r * _lumB, 0, 0, amount * g * _lumR, inv + amount * g * _lumG, amount * g * _lumB, 0, 0, amount * b * _lumR, amount * b * _lumG, inv + amount * b * _lumB, 0, 0, 0, 0, 0, 1, 0], m);\n\t},\n\t_setHue = (m, n) => {\n\t\tn *= Math.PI / 180;\n\t\tlet c = Math.cos(n),\n\t\t\ts = Math.sin(n);\n\t\treturn _applyMatrix([(_lumR + (c * (1 - _lumR))) + (s * (-_lumR)), (_lumG + (c * (-_lumG))) + (s * (-_lumG)), (_lumB + (c * (-_lumB))) + (s * (1 - _lumB)), 0, 0, (_lumR + (c * (-_lumR))) + (s * 0.143), (_lumG + (c * (1 - _lumG))) + (s * 0.14), (_lumB + (c * (-_lumB))) + (s * -0.283), 0, 0, (_lumR + (c * (-_lumR))) + (s * (-(1 - _lumR))), (_lumG + (c * (-_lumG))) + (s * _lumG), (_lumB + (c * (1 - _lumB))) + (s * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m);\n\t},\n\t_setContrast = (m, n) => _applyMatrix([n,0,0,0,0.5 * (1 - n), 0,n,0,0,0.5 * (1 - n), 0,0,n,0,0.5 * (1 - n), 0,0,0,1,0], m),\n\t_getFilter = (target, type) => {\n\t\tlet filterClass = _PIXI.filters[type],\n\t\t\tfilters = target.filters || [],\n\t\t\ti = filters.length,\n\t\t\tfilter;\n\t\tif (!filterClass) {\n\t\t\t_warn(type + \" not found. PixiPlugin.registerPIXI(PIXI)\");\n\t\t}\n\t\twhile (--i > -1) {\n\t\t\tif (filters[i] instanceof filterClass) {\n\t\t\t\treturn filters[i];\n\t\t\t}\n\t\t}\n\t\tfilter = new filterClass();\n\t\tif (type === \"BlurFilter\") {\n\t\t\tfilter.blur = 0;\n\t\t}\n\t\tfilters.push(filter);\n\t\ttarget.filters = filters;\n\t\treturn filter;\n\t},\n\t_addColorMatrixFilterCacheTween = (p, plugin, cache, vars) => { //we cache the ColorMatrixFilter components in a _gsColorMatrixFilter object attached to the target object so that it's easy to grab the current value at any time.\n\t\tplugin.add(cache, p, cache[p], vars[p]);\n\t\tplugin._props.push(p);\n\t},\n\t_applyBrightnessToMatrix = (brightness, matrix) => {\n\t\tlet temp = new _PIXI.filters.ColorMatrixFilter();\n\t\ttemp.matrix = matrix;\n\t\ttemp.brightness(brightness, true);\n\t\treturn temp.matrix;\n\t},\n\t_copy = obj => {\n\t\tlet copy = {},\n\t\t\tp;\n\t\tfor (p in obj) {\n\t\t\tcopy[p] = obj[p];\n\t\t}\n\t\treturn copy;\n\t},\n\t_CMFdefaults = {contrast:1, saturation:1, colorizeAmount:0, colorize:\"rgb(255,255,255)\", hue:0, brightness:1},\n\t_parseColorMatrixFilter = (target, v, pg) => {\n\t\tlet filter = _getFilter(target, \"ColorMatrixFilter\"),\n\t\t\tcache = target._gsColorMatrixFilter = target._gsColorMatrixFilter || _copy(_CMFdefaults),\n\t\t\tcombine = v.combineCMF && !(\"colorMatrixFilter\" in v && !v.colorMatrixFilter),\n\t\t\ti, matrix, startMatrix;\n\t\tstartMatrix = filter.matrix;\n\t\tif (v.resolution) {\n\t\t\tfilter.resolution = v.resolution;\n\t\t}\n\t\tif (v.matrix && v.matrix.length === startMatrix.length) {\n\t\t\tmatrix = v.matrix;\n\t\t\tif (cache.contrast !== 1) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"contrast\", pg, cache, _CMFdefaults);\n\t\t\t}\n\t\t\tif (cache.hue) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"hue\", pg, cache, _CMFdefaults);\n\t\t\t}\n\t\t\tif (cache.brightness !== 1) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"brightness\", pg, cache, _CMFdefaults);\n\t\t\t}\n\t\t\tif (cache.colorizeAmount) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"colorize\", pg, cache, _CMFdefaults);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"colorizeAmount\", pg, cache, _CMFdefaults);\n\t\t\t}\n\t\t\tif (cache.saturation !== 1) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"saturation\", pg, cache, _CMFdefaults);\n\t\t\t}\n\n\t\t} else {\n\t\t\tmatrix = _idMatrix.slice();\n\t\t\tif (v.contrast != null) {\n\t\t\t\tmatrix = _setContrast(matrix, +v.contrast);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"contrast\", pg, cache, v);\n\t\t\t} else if (cache.contrast !== 1) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _setContrast(matrix, cache.contrast);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"contrast\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (v.hue != null) {\n\t\t\t\tmatrix = _setHue(matrix, +v.hue);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"hue\", pg, cache, v);\n\t\t\t} else if (cache.hue) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _setHue(matrix, cache.hue);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"hue\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (v.brightness != null) {\n\t\t\t\tmatrix = _applyBrightnessToMatrix(+v.brightness, matrix);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"brightness\", pg, cache, v);\n\t\t\t} else if (cache.brightness !== 1) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _applyBrightnessToMatrix(cache.brightness, matrix);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"brightness\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (v.colorize != null) {\n\t\t\t\tv.colorizeAmount = (\"colorizeAmount\" in v) ? +v.colorizeAmount : 1;\n\t\t\t\tmatrix = _colorize(matrix, v.colorize, v.colorizeAmount);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"colorize\", pg, cache, v);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"colorizeAmount\", pg, cache, v);\n\t\t\t} else if (cache.colorizeAmount) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _colorize(matrix, cache.colorize, cache.colorizeAmount);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"colorize\", pg, cache, _CMFdefaults);\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"colorizeAmount\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (v.saturation != null) {\n\t\t\t\tmatrix = _setSaturation(matrix, +v.saturation);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"saturation\", pg, cache, v);\n\t\t\t} else if (cache.saturation !== 1) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _setSaturation(matrix, cache.saturation);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"saturation\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ti = matrix.length;\n\t\twhile (--i > -1) {\n\t\t\tif (matrix[i] !== startMatrix[i]) {\n\t\t\t\tpg.add(startMatrix, i, startMatrix[i], matrix[i], \"colorMatrixFilter\");\n\t\t\t}\n\t\t}\n\t\tpg._props.push(\"colorMatrixFilter\");\n\t},\n\t_renderColor = (ratio, {t, p, color, set}) => {\n\t\tset(t, p, color[0] << 16 | color[1] << 8 | color[2]);\n\t},\n\t_renderDirtyCache = (ratio, {g}) => {\n\t\tif (g) { //in order for PixiJS to actually redraw GraphicsData, we've gotta increment the \"dirty\" and \"clearDirty\" values. If we don't do this, the values will be tween properly, but not rendered.\n\t\t\tg.dirty++;\n\t\t\tg.clearDirty++;\n\t\t}\n\t},\n\t_renderAutoAlpha = (ratio, data) => {\n\t\tdata.t.visible = !!data.t.alpha;\n\t},\n\t_addColorTween = (target, p, value, plugin) => {\n\t\tlet currentValue = target[p],\n\t\t\tstartColor = _splitColor(_isFunction(currentValue) ? target[ ((p.indexOf(\"set\") || !_isFunction(target[\"get\" + p.substr(3)])) ? p : \"get\" + p.substr(3)) ]() : currentValue),\n\t\t\tendColor = _splitColor(value);\n\t\tplugin._pt = new PropTween(plugin._pt, target, p, 0, 0, _renderColor, {t:target, p:p, color:startColor, set:_getSetter(target, p)});\n\t\tplugin.add(startColor, 0, startColor[0], endColor[0]);\n\t\tplugin.add(startColor, 1, startColor[1], endColor[1]);\n\t\tplugin.add(startColor, 2, startColor[2], endColor[2]);\n\t},\n\n\t_colorProps = {tint:1, lineColor:1, fillColor:1},\n\t_xyContexts = \"position,scale,skew,pivot,anchor,tilePosition,tileScale\".split(\",\"),\n\t_contexts = {x:\"position\", y:\"position\", tileX:\"tilePosition\", tileY:\"tilePosition\"},\n\t_colorMatrixFilterProps = {colorMatrixFilter:1, saturation:1, contrast:1, hue:1, colorize:1, colorizeAmount:1, brightness:1, combineCMF:1},\n\t_DEG2RAD = Math.PI / 180,\n\t_degreesToRadians = value => (typeof(value) === \"string\" && value.charAt(1) === \"=\") ? value.substr(0, 2) + (parseFloat(value.substr(2)) * _DEG2RAD) : value * _DEG2RAD,\n\t_initCore = () => {\n\t\tif (_windowExists()) {\n\t\t\t_win = window;\n\t\t\tgsap = _coreInitted = _getGSAP();\n\t\t\t_PIXI = _PIXI || _win.PIXI;\n\t\t\t_splitColor = gsap.utils.splitColor;\n\t\t}\n\t}, i, p;\n\n//context setup...\nfor (i = 0; i < _xyContexts.length; i++) {\n\tp = _xyContexts[i];\n\t_contexts[p + \"X\"] = p;\n\t_contexts[p + \"Y\"] = p;\n}\n\n\nexport const PixiPlugin = {\n\tversion:\"3.0.0\",\n\tname:\"pixi\",\n\tregister(core, Plugin, propTween) {\n\t\tgsap = core;\n\t\tPropTween = propTween;\n\t\t_getSetter = Plugin.getSetter;\n\t\t_initCore();\n\t},\n\tregisterPIXI(pixi) {\n\t\t_PIXI = pixi;\n\t},\n\tinit(target, values, tween, index, targets) {\n\t\tif (!_PIXI) {\n\t\t\t_initCore();\n\t\t}\n\t\tif (!target instanceof _PIXI.DisplayObject) {\n\t\t\treturn false;\n\t\t}\n\t\tlet isV4 = _PIXI.VERSION.charAt(0) === \"4\",\n\t\t\tcontext, axis, value, colorMatrix, filter, p, padding, i, data;\n\t\tfor (p in values) {\n\t\t\tcontext = _contexts[p];\n\t\t\tvalue = values[p];\n\t\t\tif (context) {\n\t\t\t\taxis = ~p.charAt(p.length-1).toLowerCase().indexOf(\"x\") ? \"x\" : \"y\";\n\t\t\t\tthis.add(target[context], axis, target[context][axis], (context === \"skew\") ? _degreesToRadians(value) : value);\n\t\t\t} else if (p === \"scale\" || p === \"anchor\" || p === \"pivot\" || p === \"tileScale\") {\n\t\t\t\tthis.add(target[p], \"x\", target[p].x, value);\n\t\t\t\tthis.add(target[p], \"y\", target[p].y, value);\n\t\t\t} else if (p === \"rotation\") { //PIXI expects rotation in radians, but as a convenience we let folks define it in degrees and we do the conversion.\n\t\t\t\tthis.add(target, p, target.rotation, _degreesToRadians(value));\n\t\t\t} else if (_colorMatrixFilterProps[p]) {\n\t\t\t\tif (!colorMatrix) {\n\t\t\t\t\t_parseColorMatrixFilter(target, values.colorMatrixFilter || values, this);\n\t\t\t\t\tcolorMatrix = true;\n\t\t\t\t}\n\t\t\t} else if (p === \"blur\" || p === \"blurX\" || p === \"blurY\" || p === \"blurPadding\") {\n\t\t\t\tfilter = _getFilter(target, \"BlurFilter\");\n\t\t\t\tthis.add(filter, p, filter[p], value);\n\t\t\t\tif (values.blurPadding !== 0) {\n\t\t\t\t\tpadding = values.blurPadding || Math.max(filter[p], value) * 2;\n\t\t\t\t\ti = target.filters.length;\n\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\ttarget.filters[i].padding = Math.max(target.filters[i].padding, padding); //if we don't expand the padding on all the filters, it can look clipped.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (_colorProps[p]) {\n\t\t\t\tif ((p === \"lineColor\" || p === \"fillColor\") && target instanceof _PIXI.Graphics) {\n\t\t\t\t\tdata = (target.geometry || target).graphicsData; //\"geometry\" was introduced in PIXI version 5\n\t\t\t\t\tthis._pt = new PropTween(this._pt, target, p, 0, 0, _renderDirtyCache, {g:target.geometry || target});\n\t\t\t\t\ti = data.length;\n\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t_addColorTween(isV4 ? data[i] : data[i][p.substr(0, 4) + \"Style\"], isV4 ? p : \"color\", value, this);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t_addColorTween(target, p, value, this);\n\t\t\t\t}\n\t\t\t} else if (p === \"autoAlpha\") {\n\t\t\t\tthis._pt = new PropTween(this._pt, target, \"visible\", 0, 0, _renderAutoAlpha);\n\t\t\t\tthis.add(target, \"alpha\", target.alpha, value);\n\t\t\t\tthis._props.push(\"alpha\", \"visible\");\n\t\t\t} else {\n\t\t\t\tthis.add(target, p, \"get\", value);\n\t\t\t}\n\t\t\tthis._props.push(p);\n\t\t}\n\t}\n};\n\n_getGSAP() && gsap.registerPlugin(PixiPlugin);\n\nexport { PixiPlugin as default };"],"names":["_windowExists","window","_getGSAP","gsap","registerPlugin","_isFunction","value","_applyMatrix","m","m2","y","x","temp","i","z","_setSaturation","n","inv","r","_lumR","g","_lumG","b","_lumB","_colorize","color","amount","c","_splitColor","_setHue","Math","PI","cos","s","sin","_setContrast","_getFilter","target","type","filter","filterClass","_PIXI","filters","length","_warn","message","console","warn","blur","push","_addColorMatrixFilterCacheTween","p","plugin","cache","vars","add","_props","_applyBrightnessToMatrix","brightness","matrix","ColorMatrixFilter","_parseColorMatrixFilter","v","pg","startMatrix","_gsColorMatrixFilter","_copy","obj","copy","_CMFdefaults","combine","combineCMF","colorMatrixFilter","resolution","contrast","hue","colorizeAmount","saturation","_idMatrix","slice","colorize","_renderColor","ratio","t","set","_renderDirtyCache","dirty","clearDirty","_renderAutoAlpha","data","visible","alpha","_addColorTween","currentValue","startColor","indexOf","substr","endColor","_pt","PropTween","_getSetter","_degreesToRadians","charAt","parseFloat","_DEG2RAD","_initCore","_win","PIXI","utils","splitColor","_colorProps","tint","lineColor","fillColor","_xyContexts","split","_contexts","tileX","tileY","_colorMatrixFilterProps","PixiPlugin","version","name","register","core","Plugin","propTween","getSetter","registerPIXI","pixi","init","values","DisplayObject","context","axis","colorMatrix","padding","isV4","VERSION","toLowerCase","rotation","this","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c,EAAG7C,EAAOuI,UAElB,cAAN1F,QACL+C,IAAM,IAAIC,EAAU0C,KAAK3C,IAAK7D,EAAQ,UAAW,EAAG,EAAGmD,QACvDjC,IAAIlB,EAAQ,QAASA,EAAOsD,MAAOrF,QACnCkD,OAAOP,KAAK,QAAS,iBAErBM,IAAIlB,EAAQc,EAAG,MAAO7C,QAEvBkD,OAAOP,KAAKE,MAKpBjD,KAAcC,EAAKC,eAAeoH"}
\ No newline at end of file
+{"version":3,"file":"PixiPlugin.min.js","sources":["../src/PixiPlugin.js"],"sourcesContent":["/*!\n * PixiPlugin 3.0.2\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _win, _splitColor, _coreInitted, _PIXI, PropTween, _getSetter,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_isFunction = value => typeof(value) === \"function\",\n\t_warn = message => console.warn(message),\n\t_idMatrix = [1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],\n\t_lumR = 0.212671,\n\t_lumG = 0.715160,\n\t_lumB = 0.072169,\n\t_applyMatrix = (m, m2) => {\n\t\tlet temp = [],\n\t\t\ti = 0,\n\t\t\tz = 0,\n\t\t\ty, x;\n\t\tfor (y = 0; y < 4; y++) {\n\t\t\tfor (x = 0; x < 5; x++) {\n\t\t\t\tz = (x === 4) ? m[i + 4] : 0;\n\t\t\t\ttemp[i + x] = m[i] * m2[x] + m[i+1] * m2[x + 5] +\tm[i+2] * m2[x + 10] + m[i+3] * m2[x + 15] +\tz;\n\t\t\t}\n\t\t\ti += 5;\n\t\t}\n\t\treturn temp;\n\t},\n\t_setSaturation = (m, n) => {\n\t\tlet inv = 1 - n,\n\t\t\tr = inv * _lumR,\n\t\t\tg = inv * _lumG,\n\t\t\tb = inv * _lumB;\n\t\treturn _applyMatrix([r + n, g, b, 0, 0, r, g + n, b, 0, 0, r, g, b + n, 0, 0, 0, 0, 0, 1, 0], m);\n\t},\n\t_colorize = (m, color, amount) => {\n\t\tlet c = _splitColor(color),\n\t\t\tr = c[0] / 255,\n\t\t\tg = c[1] / 255,\n\t\t\tb = c[2] / 255,\n\t\t\tinv = 1 - amount;\n\t\treturn _applyMatrix([inv + amount * r * _lumR, amount * r * _lumG, amount * r * _lumB, 0, 0, amount * g * _lumR, inv + amount * g * _lumG, amount * g * _lumB, 0, 0, amount * b * _lumR, amount * b * _lumG, inv + amount * b * _lumB, 0, 0, 0, 0, 0, 1, 0], m);\n\t},\n\t_setHue = (m, n) => {\n\t\tn *= Math.PI / 180;\n\t\tlet c = Math.cos(n),\n\t\t\ts = Math.sin(n);\n\t\treturn _applyMatrix([(_lumR + (c * (1 - _lumR))) + (s * (-_lumR)), (_lumG + (c * (-_lumG))) + (s * (-_lumG)), (_lumB + (c * (-_lumB))) + (s * (1 - _lumB)), 0, 0, (_lumR + (c * (-_lumR))) + (s * 0.143), (_lumG + (c * (1 - _lumG))) + (s * 0.14), (_lumB + (c * (-_lumB))) + (s * -0.283), 0, 0, (_lumR + (c * (-_lumR))) + (s * (-(1 - _lumR))), (_lumG + (c * (-_lumG))) + (s * _lumG), (_lumB + (c * (1 - _lumB))) + (s * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m);\n\t},\n\t_setContrast = (m, n) => _applyMatrix([n,0,0,0,0.5 * (1 - n), 0,n,0,0,0.5 * (1 - n), 0,0,n,0,0.5 * (1 - n), 0,0,0,1,0], m),\n\t_getFilter = (target, type) => {\n\t\tlet filterClass = _PIXI.filters[type],\n\t\t\tfilters = target.filters || [],\n\t\t\ti = filters.length,\n\t\t\tfilter;\n\t\tif (!filterClass) {\n\t\t\t_warn(type + \" not found. PixiPlugin.registerPIXI(PIXI)\");\n\t\t}\n\t\twhile (--i > -1) {\n\t\t\tif (filters[i] instanceof filterClass) {\n\t\t\t\treturn filters[i];\n\t\t\t}\n\t\t}\n\t\tfilter = new filterClass();\n\t\tif (type === \"BlurFilter\") {\n\t\t\tfilter.blur = 0;\n\t\t}\n\t\tfilters.push(filter);\n\t\ttarget.filters = filters;\n\t\treturn filter;\n\t},\n\t_addColorMatrixFilterCacheTween = (p, plugin, cache, vars) => { //we cache the ColorMatrixFilter components in a _gsColorMatrixFilter object attached to the target object so that it's easy to grab the current value at any time.\n\t\tplugin.add(cache, p, cache[p], vars[p]);\n\t\tplugin._props.push(p);\n\t},\n\t_applyBrightnessToMatrix = (brightness, matrix) => {\n\t\tlet temp = new _PIXI.filters.ColorMatrixFilter();\n\t\ttemp.matrix = matrix;\n\t\ttemp.brightness(brightness, true);\n\t\treturn temp.matrix;\n\t},\n\t_copy = obj => {\n\t\tlet copy = {},\n\t\t\tp;\n\t\tfor (p in obj) {\n\t\t\tcopy[p] = obj[p];\n\t\t}\n\t\treturn copy;\n\t},\n\t_CMFdefaults = {contrast:1, saturation:1, colorizeAmount:0, colorize:\"rgb(255,255,255)\", hue:0, brightness:1},\n\t_parseColorMatrixFilter = (target, v, pg) => {\n\t\tlet filter = _getFilter(target, \"ColorMatrixFilter\"),\n\t\t\tcache = target._gsColorMatrixFilter = target._gsColorMatrixFilter || _copy(_CMFdefaults),\n\t\t\tcombine = v.combineCMF && !(\"colorMatrixFilter\" in v && !v.colorMatrixFilter),\n\t\t\ti, matrix, startMatrix;\n\t\tstartMatrix = filter.matrix;\n\t\tif (v.resolution) {\n\t\t\tfilter.resolution = v.resolution;\n\t\t}\n\t\tif (v.matrix && v.matrix.length === startMatrix.length) {\n\t\t\tmatrix = v.matrix;\n\t\t\tif (cache.contrast !== 1) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"contrast\", pg, cache, _CMFdefaults);\n\t\t\t}\n\t\t\tif (cache.hue) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"hue\", pg, cache, _CMFdefaults);\n\t\t\t}\n\t\t\tif (cache.brightness !== 1) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"brightness\", pg, cache, _CMFdefaults);\n\t\t\t}\n\t\t\tif (cache.colorizeAmount) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"colorize\", pg, cache, _CMFdefaults);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"colorizeAmount\", pg, cache, _CMFdefaults);\n\t\t\t}\n\t\t\tif (cache.saturation !== 1) {\n\t\t\t\t_addColorMatrixFilterCacheTween(\"saturation\", pg, cache, _CMFdefaults);\n\t\t\t}\n\n\t\t} else {\n\t\t\tmatrix = _idMatrix.slice();\n\t\t\tif (v.contrast != null) {\n\t\t\t\tmatrix = _setContrast(matrix, +v.contrast);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"contrast\", pg, cache, v);\n\t\t\t} else if (cache.contrast !== 1) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _setContrast(matrix, cache.contrast);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"contrast\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (v.hue != null) {\n\t\t\t\tmatrix = _setHue(matrix, +v.hue);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"hue\", pg, cache, v);\n\t\t\t} else if (cache.hue) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _setHue(matrix, cache.hue);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"hue\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (v.brightness != null) {\n\t\t\t\tmatrix = _applyBrightnessToMatrix(+v.brightness, matrix);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"brightness\", pg, cache, v);\n\t\t\t} else if (cache.brightness !== 1) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _applyBrightnessToMatrix(cache.brightness, matrix);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"brightness\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (v.colorize != null) {\n\t\t\t\tv.colorizeAmount = (\"colorizeAmount\" in v) ? +v.colorizeAmount : 1;\n\t\t\t\tmatrix = _colorize(matrix, v.colorize, v.colorizeAmount);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"colorize\", pg, cache, v);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"colorizeAmount\", pg, cache, v);\n\t\t\t} else if (cache.colorizeAmount) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _colorize(matrix, cache.colorize, cache.colorizeAmount);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"colorize\", pg, cache, _CMFdefaults);\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"colorizeAmount\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (v.saturation != null) {\n\t\t\t\tmatrix = _setSaturation(matrix, +v.saturation);\n\t\t\t\t_addColorMatrixFilterCacheTween(\"saturation\", pg, cache, v);\n\t\t\t} else if (cache.saturation !== 1) {\n\t\t\t\tif (combine) {\n\t\t\t\t\tmatrix = _setSaturation(matrix, cache.saturation);\n\t\t\t\t} else {\n\t\t\t\t\t_addColorMatrixFilterCacheTween(\"saturation\", pg, cache, _CMFdefaults);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ti = matrix.length;\n\t\twhile (--i > -1) {\n\t\t\tif (matrix[i] !== startMatrix[i]) {\n\t\t\t\tpg.add(startMatrix, i, startMatrix[i], matrix[i], \"colorMatrixFilter\");\n\t\t\t}\n\t\t}\n\t\tpg._props.push(\"colorMatrixFilter\");\n\t},\n\t_renderColor = (ratio, {t, p, color, set}) => {\n\t\tset(t, p, color[0] << 16 | color[1] << 8 | color[2]);\n\t},\n\t_renderDirtyCache = (ratio, {g}) => {\n\t\tif (g) { //in order for PixiJS to actually redraw GraphicsData, we've gotta increment the \"dirty\" and \"clearDirty\" values. If we don't do this, the values will be tween properly, but not rendered.\n\t\t\tg.dirty++;\n\t\t\tg.clearDirty++;\n\t\t}\n\t},\n\t_renderAutoAlpha = (ratio, data) => {\n\t\tdata.t.visible = !!data.t.alpha;\n\t},\n\t_addColorTween = (target, p, value, plugin) => {\n\t\tlet currentValue = target[p],\n\t\t\tstartColor = _splitColor(_isFunction(currentValue) ? target[ ((p.indexOf(\"set\") || !_isFunction(target[\"get\" + p.substr(3)])) ? p : \"get\" + p.substr(3)) ]() : currentValue),\n\t\t\tendColor = _splitColor(value);\n\t\tplugin._pt = new PropTween(plugin._pt, target, p, 0, 0, _renderColor, {t:target, p:p, color:startColor, set:_getSetter(target, p)});\n\t\tplugin.add(startColor, 0, startColor[0], endColor[0]);\n\t\tplugin.add(startColor, 1, startColor[1], endColor[1]);\n\t\tplugin.add(startColor, 2, startColor[2], endColor[2]);\n\t},\n\n\t_colorProps = {tint:1, lineColor:1, fillColor:1},\n\t_xyContexts = \"position,scale,skew,pivot,anchor,tilePosition,tileScale\".split(\",\"),\n\t_contexts = {x:\"position\", y:\"position\", tileX:\"tilePosition\", tileY:\"tilePosition\"},\n\t_colorMatrixFilterProps = {colorMatrixFilter:1, saturation:1, contrast:1, hue:1, colorize:1, colorizeAmount:1, brightness:1, combineCMF:1},\n\t_DEG2RAD = Math.PI / 180,\n\t_degreesToRadians = value => (typeof(value) === \"string\" && value.charAt(1) === \"=\") ? value.substr(0, 2) + (parseFloat(value.substr(2)) * _DEG2RAD) : value * _DEG2RAD,\n\t_initCore = () => {\n\t\tif (_windowExists()) {\n\t\t\t_win = window;\n\t\t\tgsap = _coreInitted = _getGSAP();\n\t\t\t_PIXI = _PIXI || _win.PIXI;\n\t\t\t_splitColor = gsap.utils.splitColor;\n\t\t}\n\t}, i, p;\n\n//context setup...\nfor (i = 0; i < _xyContexts.length; i++) {\n\tp = _xyContexts[i];\n\t_contexts[p + \"X\"] = p;\n\t_contexts[p + \"Y\"] = p;\n}\n\n\nexport const PixiPlugin = {\n\tversion:\"3.0.2\",\n\tname:\"pixi\",\n\tregister(core, Plugin, propTween) {\n\t\tgsap = core;\n\t\tPropTween = propTween;\n\t\t_getSetter = Plugin.getSetter;\n\t\t_initCore();\n\t},\n\tregisterPIXI(pixi) {\n\t\t_PIXI = pixi;\n\t},\n\tinit(target, values, tween, index, targets) {\n\t\tif (!_PIXI) {\n\t\t\t_initCore();\n\t\t}\n\t\tif (!target instanceof _PIXI.DisplayObject) {\n\t\t\treturn false;\n\t\t}\n\t\tlet isV4 = _PIXI.VERSION.charAt(0) === \"4\",\n\t\t\tcontext, axis, value, colorMatrix, filter, p, padding, i, data;\n\t\tfor (p in values) {\n\t\t\tcontext = _contexts[p];\n\t\t\tvalue = values[p];\n\t\t\tif (context) {\n\t\t\t\taxis = ~p.charAt(p.length-1).toLowerCase().indexOf(\"x\") ? \"x\" : \"y\";\n\t\t\t\tthis.add(target[context], axis, target[context][axis], (context === \"skew\") ? _degreesToRadians(value) : value);\n\t\t\t} else if (p === \"scale\" || p === \"anchor\" || p === \"pivot\" || p === \"tileScale\") {\n\t\t\t\tthis.add(target[p], \"x\", target[p].x, value);\n\t\t\t\tthis.add(target[p], \"y\", target[p].y, value);\n\t\t\t} else if (p === \"rotation\") { //PIXI expects rotation in radians, but as a convenience we let folks define it in degrees and we do the conversion.\n\t\t\t\tthis.add(target, p, target.rotation, _degreesToRadians(value));\n\t\t\t} else if (_colorMatrixFilterProps[p]) {\n\t\t\t\tif (!colorMatrix) {\n\t\t\t\t\t_parseColorMatrixFilter(target, values.colorMatrixFilter || values, this);\n\t\t\t\t\tcolorMatrix = true;\n\t\t\t\t}\n\t\t\t} else if (p === \"blur\" || p === \"blurX\" || p === \"blurY\" || p === \"blurPadding\") {\n\t\t\t\tfilter = _getFilter(target, \"BlurFilter\");\n\t\t\t\tthis.add(filter, p, filter[p], value);\n\t\t\t\tif (values.blurPadding !== 0) {\n\t\t\t\t\tpadding = values.blurPadding || Math.max(filter[p], value) * 2;\n\t\t\t\t\ti = target.filters.length;\n\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\ttarget.filters[i].padding = Math.max(target.filters[i].padding, padding); //if we don't expand the padding on all the filters, it can look clipped.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (_colorProps[p]) {\n\t\t\t\tif ((p === \"lineColor\" || p === \"fillColor\") && target instanceof _PIXI.Graphics) {\n\t\t\t\t\tdata = (target.geometry || target).graphicsData; //\"geometry\" was introduced in PIXI version 5\n\t\t\t\t\tthis._pt = new PropTween(this._pt, target, p, 0, 0, _renderDirtyCache, {g:target.geometry || target});\n\t\t\t\t\ti = data.length;\n\t\t\t\t\twhile (--i > -1) {\n\t\t\t\t\t\t_addColorTween(isV4 ? data[i] : data[i][p.substr(0, 4) + \"Style\"], isV4 ? p : \"color\", value, this);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t_addColorTween(target, p, value, this);\n\t\t\t\t}\n\t\t\t} else if (p === \"autoAlpha\") {\n\t\t\t\tthis._pt = new PropTween(this._pt, target, \"visible\", 0, 0, _renderAutoAlpha);\n\t\t\t\tthis.add(target, \"alpha\", target.alpha, value);\n\t\t\t\tthis._props.push(\"alpha\", \"visible\");\n\t\t\t} else {\n\t\t\t\tthis.add(target, p, \"get\", value);\n\t\t\t}\n\t\t\tthis._props.push(p);\n\t\t}\n\t}\n};\n\n_getGSAP() && gsap.registerPlugin(PixiPlugin);\n\nexport { PixiPlugin as default };"],"names":["_windowExists","window","_getGSAP","gsap","registerPlugin","_isFunction","value","_applyMatrix","m","m2","y","x","temp","i","z","_setSaturation","n","inv","r","_lumR","g","_lumG","b","_lumB","_colorize","color","amount","c","_splitColor","_setHue","Math","PI","cos","s","sin","_setContrast","_getFilter","target","type","filter","filterClass","_PIXI","filters","length","_warn","message","console","warn","blur","push","_addColorMatrixFilterCacheTween","p","plugin","cache","vars","add","_props","_applyBrightnessToMatrix","brightness","matrix","ColorMatrixFilter","_parseColorMatrixFilter","v","pg","startMatrix","_gsColorMatrixFilter","_copy","obj","copy","_CMFdefaults","combine","combineCMF","colorMatrixFilter","resolution","contrast","hue","colorizeAmount","saturation","_idMatrix","slice","colorize","_renderColor","ratio","t","set","_renderDirtyCache","dirty","clearDirty","_renderAutoAlpha","data","visible","alpha","_addColorTween","currentValue","startColor","indexOf","substr","endColor","_pt","PropTween","_getSetter","_degreesToRadians","charAt","parseFloat","_DEG2RAD","_initCore","_win","PIXI","utils","splitColor","_colorProps","tint","lineColor","fillColor","_xyContexts","split","_contexts","tileX","tileY","_colorMatrixFilterProps","PixiPlugin","version","name","register","core","Plugin","propTween","getSetter","registerPIXI","pixi","init","values","DisplayObject","context","axis","colorMatrix","padding","isV4","VERSION","toLowerCase","rotation","this","blurPadding","max","Graphics","geometry","graphicsData"],"mappings":";;;;;;;;;6MAYiB,SAAhBA,UAAyC,oBAAZC,OAClB,SAAXC,WAAiBC,GAASH,MAAoBG,EAAOF,OAAOE,OAASA,EAAKC,gBAAkBD,EAC9E,SAAdE,EAAcC,SAA2B,mBAAXA,EAMf,SAAfC,EAAgBC,EAAGC,OAIjBC,EAAGC,EAHAC,EAAO,GACVC,EAAI,EACJC,EAAI,MAEAJ,EAAI,EAAGA,EAAI,EAAGA,IAAK,KAClBC,EAAI,EAAGA,EAAI,EAAGA,IAClBG,EAAW,IAANH,EAAWH,EAAEK,EAAI,GAAK,EAC3BD,EAAKC,EAAIF,GAAKH,EAAEK,GAAOJ,EAAGE,GAAKH,EAAEK,EAAE,GAAKJ,EAAGE,EAAI,GAAKH,EAAEK,EAAE,GAAKJ,EAAGE,EAAI,IAAMH,EAAEK,EAAE,GAAKJ,EAAGE,EAAI,IAAMG,EAEjGD,GAAK,SAECD,EAES,SAAjBG,EAAkBP,EAAGQ,OAChBC,EAAM,EAAID,EACbE,EAAID,EAAME,EACVC,EAAIH,EAAMI,EACVC,EAAIL,EAAMM,SACJhB,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ACL,IAAL9B,GACRwB,EAAOK,QAAQ7B,GAAG2H,QAAU1G,KAAKiH,IAAI1G,EAAOK,QAAQ7B,GAAG2H,QAASA,QAG5D,GAAI1B,EAAY3D,OACX,cAANA,GAA2B,cAANA,IAAsBd,aAAkBI,EAAMuG,aACvEvD,GAAQpD,EAAO4G,UAAY5G,GAAQ6G,kBAC9BhD,IAAM,IAAIC,EAAU0C,KAAK3C,IAAK7D,EAAQc,EAAG,EAAG,EAAGkC,EAAmB,CAACjE,EAAEiB,EAAO4G,UAAY5G,IAC7FxB,EAAI4E,EAAK9C,QACK,IAAL9B,GACR+E,EAAe6C,EAAOhD,EAAK5E,GAAK4E,EAAK5E,GAAGsC,EAAE6C,OAAO,EAAG,GAAK,SAAUyC,EAAOtF,EAAI,QAAS7C,EAAOuI,WAG/FjD,EAAevD,EAAQc,EAAG7C,EAAOuI,UAElB,cAAN1F,QACL+C,IAAM,IAAIC,EAAU0C,KAAK3C,IAAK7D,EAAQ,UAAW,EAAG,EAAGmD,QACvDjC,IAAIlB,EAAQ,QAASA,EAAOsD,MAAOrF,QACnCkD,OAAOP,KAAK,QAAS,iBAErBM,IAAIlB,EAAQc,EAAG,MAAO7C,QAEvBkD,OAAOP,KAAKE,MAKpBjD,KAAcC,EAAKC,eAAeoH"}
\ No newline at end of file
diff --git a/dist/ScrollToPlugin.js b/dist/ScrollToPlugin.js
index b45476b..8ebd21f 100644
--- a/dist/ScrollToPlugin.js
+++ b/dist/ScrollToPlugin.js
@@ -2,10 +2,10 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
-}(this, function (exports) { 'use strict';
+}(this, (function (exports) { 'use strict';
/*!
- * ScrollToPlugin 3.0.0
+ * ScrollToPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -75,7 +75,7 @@
_initCore = function _initCore() {
gsap = _getGSAP();
- if (_windowExists() && gsap) {
+ if (_windowExists() && gsap && document.body) {
_window = window;
_body = document.body;
_docEl = document.documentElement;
@@ -89,9 +89,10 @@
};
var ScrollToPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "scrollTo",
- register: function register(core, Plugin, propTween) {
+ rawVars: 1,
+ register: function register(core) {
gsap = core;
_initCore();
@@ -232,4 +233,4 @@
Object.defineProperty(exports, '__esModule', { value: true });
-}));
+})));
diff --git a/dist/ScrollToPlugin.min.js b/dist/ScrollToPlugin.min.js
index 5abda73..1293116 100644
--- a/dist/ScrollToPlugin.min.js
+++ b/dist/ScrollToPlugin.min.js
@@ -1,11 +1,11 @@
-!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";
/*!
- * ScrollToPlugin 3.0.0
- * https://greensock.com
- *
- * @license Copyright 2008-2019, 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, [email protected]
- */function k(){return"undefined"!=typeof window}function l(){return e||k()&&(e=window.gsap)&&e.registerPlugin&&e}function m(t){return"string"==typeof t}function n(t,e){var o="x"===e?"Width":"Height",n="scroll"+o,r="client"+o;return t===x||t===s||t===f?Math.max(s[n],f[n])-(x["inner"+o]||s[r]||f[r]):t[n]-t["offset"+o]}function o(t,e){var o="scroll"+("x"===e?"Left":"Top");return t===x&&(null!=t.pageXOffset?o="page"+e.toUpperCase()+"Offset":t=null!=s[o]?s:f),function(){return t[o]}}function p(t,e){var n=a(t)[0].getBoundingClientRect(),r=!e||e===x||e===f,i=r?{top:s.clientTop-(x.pageYOffset||s.scrollTop||f.scrollTop||0),left:s.clientLeft-(x.pageXOffset||s.scrollLeft||f.scrollLeft||0)}:e.getBoundingClientRect(),l={x:n.left-i.left,y:n.top-i.top};return!r&&e&&(l.x+=o(e,"x")(),l.y+=o(e,"y")()),l}function q(t,e,o,r){return isNaN(t)?m(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+r:"max"===t?n(e,o):Math.min(n(e,o),p(t,e)[o]):parseFloat(t)}function r(){e=l(),k()&&e&&(x=window,f=document.body,s=document.documentElement,a=e.utils.toArray,e.config({autoKillThreshold:7}),g=e.config(),u=1)}var e,u,x,s,f,a,g,i={version:"3.0.0",name:"scrollTo",register:function register(t){e=t,r()},init:function init(t,e,n,i,l){u||r();var s=this;s.isWin=t===x,s.target=t,s.tween=n,"object"!=typeof e?m((e={y:e}).y)&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),s.vars=e,s.autoKill=!!e.autoKill,s.getX=o(t,"x"),s.getY=o(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),null!=e.x?(s.add(s,"x",s.x,q(e.x,t,"x",s.x)-(e.offsetX||0),i,l,Math.round),s._props.push("scrollTo_x")):s.skipX=1,null!=e.y?(s.add(s,"y",s.y,q(e.y,t,"y",s.y)-(e.offsetY||0),i,l,Math.round),s._props.push("scrollTo_y")):s.skipY=1},render:function render(t,e){for(var o,r,i,l,s,u=e._pt,f=e.target,p=e.tween,a=e.autoKill,c=e.xPrev,y=e.yPrev,d=e.isWin;u;)u.r(t,u.d),u=u._next;o=d||!e.skipX?e.getX():c,i=(r=d||!e.skipY?e.getY():y)-y,l=o-c,s=g.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),a&&(!e.skipX&&(s<l||l<-s)&&o<n(f,"x")&&(e.skipX=1),!e.skipY&&(s<i||i<-s)&&r<n(f,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(p.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(p,e.vars.onAutoKillParams||[]))),d?x.scrollTo(e.skipX?o:e.x,e.skipY?r:e.y):(e.skipY||(f.scrollTop=e.y),e.skipX||(f.scrollLeft=e.x)),e.xPrev=e.x,e.yPrev=e.y},kill:function kill(t){var e="scrollTo"===t;!e&&"scrollTo_x"!==t||(this.skipX=1),!e&&"scrollTo_y"!==t||(this.skipY=1)}};i.max=n,i.getOffset=p,i.buildGetter=o,l()&&e.registerPlugin(i),t.ScrollToPlugin=i,t.default=i,Object.defineProperty(t,"__esModule",{value:!0})});
+ * ScrollToPlugin 3.0.2
+ * https://greensock.com
+ *
+ * @license Copyright 2019, 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, [email protected]
+ */
+
+!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 k(){return"undefined"!=typeof window}function l(){return e||k()&&(e=window.gsap)&&e.registerPlugin&&e}function m(t){return"string"==typeof t}function n(t,e){var o="x"===e?"Width":"Height",n="scroll"+o,r="client"+o;return t===x||t===s||t===f?Math.max(s[n],f[n])-(x["inner"+o]||s[r]||f[r]):t[n]-t["offset"+o]}function o(t,e){var o="scroll"+("x"===e?"Left":"Top");return t===x&&(null!=t.pageXOffset?o="page"+e.toUpperCase()+"Offset":t=null!=s[o]?s:f),function(){return t[o]}}function p(t,e){var n=a(t)[0].getBoundingClientRect(),r=!e||e===x||e===f,i=r?{top:s.clientTop-(x.pageYOffset||s.scrollTop||f.scrollTop||0),left:s.clientLeft-(x.pageXOffset||s.scrollLeft||f.scrollLeft||0)}:e.getBoundingClientRect(),l={x:n.left-i.left,y:n.top-i.top};return!r&&e&&(l.x+=o(e,"x")(),l.y+=o(e,"y")()),l}function q(t,e,o,r){return isNaN(t)?m(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+r:"max"===t?n(e,o):Math.min(n(e,o),p(t,e)[o]):parseFloat(t)}function r(){e=l(),k()&&e&&document.body&&(x=window,f=document.body,s=document.documentElement,a=e.utils.toArray,e.config({autoKillThreshold:7}),g=e.config(),u=1)}var e,u,x,s,f,a,g,i={version:"3.0.2",name:"scrollTo",rawVars:1,register:function register(t){e=t,r()},init:function init(t,e,n,i,l){u||r();var s=this;s.isWin=t===x,s.target=t,s.tween=n,"object"!=typeof e?m((e={y:e}).y)&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),s.vars=e,s.autoKill=!!e.autoKill,s.getX=o(t,"x"),s.getY=o(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),null!=e.x?(s.add(s,"x",s.x,q(e.x,t,"x",s.x)-(e.offsetX||0),i,l,Math.round),s._props.push("scrollTo_x")):s.skipX=1,null!=e.y?(s.add(s,"y",s.y,q(e.y,t,"y",s.y)-(e.offsetY||0),i,l,Math.round),s._props.push("scrollTo_y")):s.skipY=1},render:function render(t,e){for(var o,r,i,l,s,u=e._pt,f=e.target,p=e.tween,a=e.autoKill,c=e.xPrev,y=e.yPrev,d=e.isWin;u;)u.r(t,u.d),u=u._next;o=d||!e.skipX?e.getX():c,i=(r=d||!e.skipY?e.getY():y)-y,l=o-c,s=g.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),a&&(!e.skipX&&(s<l||l<-s)&&o<n(f,"x")&&(e.skipX=1),!e.skipY&&(s<i||i<-s)&&r<n(f,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(p.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(p,e.vars.onAutoKillParams||[]))),d?x.scrollTo(e.skipX?o:e.x,e.skipY?r:e.y):(e.skipY||(f.scrollTop=e.y),e.skipX||(f.scrollLeft=e.x)),e.xPrev=e.x,e.yPrev=e.y},kill:function kill(t){var e="scrollTo"===t;!e&&"scrollTo_x"!==t||(this.skipX=1),!e&&"scrollTo_y"!==t||(this.skipY=1)}};i.max=n,i.getOffset=p,i.buildGetter=o,l()&&e.registerPlugin(i),t.ScrollToPlugin=i,t.default=i,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ScrollToPlugin.min.js.map
diff --git a/dist/ScrollToPlugin.min.js.map b/dist/ScrollToPlugin.min.js.map
index 1e33b1d..96fad08 100644
--- a/dist/ScrollToPlugin.min.js.map
+++ b/dist/ScrollToPlugin.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"ScrollToPlugin.min.js","sources":["../src/ScrollToPlugin.js"],"sourcesContent":["/*!\n * ScrollToPlugin 3.0.0\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _coreInitted, _window, _docEl, _body, _toArray, _config,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_isString = value => typeof(value) === \"string\",\n\t_max = (element, axis) => {\n\t\tlet dim = (axis === \"x\") ? \"Width\" : \"Height\",\n\t\t\tscroll = \"scroll\" + dim,\n\t\t\tclient = \"client\" + dim;\n\t\treturn (element === _window || element === _docEl || element === _body) ? Math.max(_docEl[scroll], _body[scroll]) - (_window[\"inner\" + dim] || _docEl[client] || _body[client]) : element[scroll] - element[\"offset\" + dim];\n\t},\n\t_buildGetter = (e, axis) => { //pass in an element and an axis (\"x\" or \"y\") and it'll return a getter function for the scroll position of that element (like scrollTop or scrollLeft, although if the element is the window, it'll use the pageXOffset/pageYOffset or the documentElement's scrollTop/scrollLeft or document.body's. Basically this streamlines things and makes a very fast getter across browsers.\n\t\tlet p = \"scroll\" + ((axis === \"x\") ? \"Left\" : \"Top\");\n\t\tif (e === _window) {\n\t\t\tif (e.pageXOffset != null) {\n\t\t\t\tp = \"page\" + axis.toUpperCase() + \"Offset\";\n\t\t\t} else {\n\t\t\t\te = _docEl[p] != null ? _docEl : _body;\n\t\t\t}\n\t\t}\n\t\treturn () => e[p];\n\t},\n\t_getOffset = (element, container) => {\n\t\tlet rect = _toArray(element)[0].getBoundingClientRect(),\n\t\t\tisRoot = (!container || container === _window || container === _body),\n\t\t\tcRect = isRoot ? {top:_docEl.clientTop - (_window.pageYOffset || _docEl.scrollTop || _body.scrollTop || 0), left:_docEl.clientLeft - (_window.pageXOffset || _docEl.scrollLeft || _body.scrollLeft || 0)} : container.getBoundingClientRect(),\n\t\t\toffsets = {x: rect.left - cRect.left, y: rect.top - cRect.top};\n\t\tif (!isRoot && container) { //only add the current scroll position if it's not the window/body.\n\t\t\toffsets.x += _buildGetter(container, \"x\")();\n\t\t\toffsets.y += _buildGetter(container, \"y\")();\n\t\t}\n\t\treturn offsets;\n\t},\n\t_parseVal = (value, target, axis, currentVal) => !isNaN(value) ? parseFloat(value) : (_isString(value) && value.charAt(1) === \"=\") ? parseFloat(value.substr(2)) * (value.charAt(0) === \"-\" ? -1 : 1) + currentVal : (value === \"max\") ? _max(target, axis) : Math.min(_max(target, axis), _getOffset(value, target)[axis]),\n\t_initCore = () => {\n\t\tgsap = _getGSAP();\n\t\tif (_windowExists() && gsap) {\n\t\t\t_window = window;\n\t\t\t_body = document.body;\n\t\t\t_docEl = document.documentElement;\n\t\t\t_toArray = gsap.utils.toArray;\n\t\t\tgsap.config({autoKillThreshold:7});\n\t\t\t_config = gsap.config();\n\t\t\t_coreInitted = 1;\n\t\t}\n\t};\n\n\nexport const ScrollToPlugin = {\n\tversion:\"3.0.0\",\n\tname:\"scrollTo\",\n\tregister(core, Plugin, propTween) {\n\t\tgsap = core;\n\t\t_initCore();\n\t},\n\tinit(target, value, tween, index, targets) {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore();\n\t\t}\n\t\tlet data = this;\n\t\tdata.isWin = (target === _window);\n\t\tdata.target = target;\n\t\tdata.tween = tween;\n\t\tif (typeof(value) !== \"object\") {\n\t\t\tvalue = {y:value}; //if we don't receive an object as the parameter, assume the user intends \"y\".\n\t\t\tif (_isString(value.y) && value.y !== \"max\" && value.y.charAt(1) !== \"=\") {\n\t\t\t\tvalue.x = value.y;\n\t\t\t}\n\t\t} else if (value.nodeType) {\n\t\t\tvalue = {y:value, x:value};\n\t\t}\n\t\tdata.vars = value;\n\t\tdata.autoKill = !!value.autoKill;\n\t\tdata.getX = _buildGetter(target, \"x\");\n\t\tdata.getY = _buildGetter(target, \"y\");\n\t\tdata.x = data.xPrev = data.getX();\n\t\tdata.y = data.yPrev = data.getY();\n\t\tif (value.x != null) {\n\t\t\tdata.add(data, \"x\", data.x, _parseVal(value.x, target, \"x\", data.x) - (value.offsetX || 0), index, targets, Math.round);\n\t\t\tdata._props.push(\"scrollTo_x\");\n\t\t} else {\n\t\t\tdata.skipX = 1;\n\t\t}\n\t\tif (value.y != null) {\n\t\t\tdata.add(data, \"y\", data.y, _parseVal(value.y, target, \"y\", data.y) - (value.offsetY || 0), index, targets, Math.round);\n\t\t\tdata._props.push(\"scrollTo_y\");\n\t\t} else {\n\t\t\tdata.skipY = 1;\n\t\t}\n\t},\n\trender(ratio, data) {\n\t\tlet pt = data._pt,\n\t\t\t{ target, tween, autoKill, xPrev, yPrev, isWin } = data,\n\t\t\tx, y, yDif, xDif, threshold;\n\t\twhile (pt) {\n\t\t\tpt.r(ratio, pt.d);\n\t\t\tpt = pt._next;\n\t\t}\n\t\tx = (isWin || !data.skipX) ? data.getX() : xPrev;\n\t\ty = (isWin || !data.skipY) ? data.getY() : yPrev;\n\t\tyDif = y - yPrev;\n\t\txDif = x - xPrev;\n\t\tthreshold = _config.autoKillThreshold;\n\t\tif (data.x < 0) { //can't scroll to a position less than 0! Might happen if someone uses a Back.easeOut or Elastic.easeOut when scrolling back to the top of the page (for example)\n\t\t\tdata.x = 0;\n\t\t}\n\t\tif (data.y < 0) {\n\t\t\tdata.y = 0;\n\t\t}\n\t\tif (autoKill) {\n\t\t\t//note: iOS has a bug that throws off the scroll by several pixels, so we need to check if it's within 7 pixels of the previous one that we set instead of just looking for an exact match.\n\t\t\tif (!data.skipX && (xDif > threshold || xDif < -threshold) && x < _max(target, \"x\")) {\n\t\t\t\tdata.skipX = 1; //if the user scrolls separately, we should stop tweening!\n\t\t\t}\n\t\t\tif (!data.skipY && (yDif > threshold || yDif < -threshold) && y < _max(target, \"y\")) {\n\t\t\t\tdata.skipY = 1; //if the user scrolls separately, we should stop tweening!\n\t\t\t}\n\t\t\tif (data.skipX && data.skipY) {\n\t\t\t\ttween.kill();\n\t\t\t\tif (data.vars.onAutoKill) {\n\t\t\t\t\tdata.vars.onAutoKill.apply(tween, data.vars.onAutoKillParams || []);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isWin) {\n\t\t\t_window.scrollTo((!data.skipX) ? data.x : x, (!data.skipY) ? data.y : y);\n\t\t} else {\n\t\t\tif (!data.skipY) {\n\t\t\t\ttarget.scrollTop = data.y;\n\t\t\t}\n\t\t\tif (!data.skipX) {\n\t\t\t\ttarget.scrollLeft = data.x;\n\t\t\t}\n\t\t}\n\t\tdata.xPrev = data.x;\n\t\tdata.yPrev = data.y;\n\t},\n\tkill(property) {\n\t\tlet both = (property === \"scrollTo\");\n\t\tif (both || property === \"scrollTo_x\") {\n\t\t\tthis.skipX = 1;\n\t\t}\n\t\tif (both || property === \"scrollTo_y\") {\n\t\t\tthis.skipY = 1;\n\t\t}\n\t}\n};\n\nScrollToPlugin.max = _max;\nScrollToPlugin.getOffset = _getOffset;\nScrollToPlugin.buildGetter = _buildGetter;\n\n_getGSAP() && gsap.registerPlugin(ScrollToPlugin);\n\nexport { ScrollToPlugin as default };"],"names":["_windowExists","window","_getGSAP","gsap","registerPlugin","_isString","value","_max","element","axis","dim","scroll","client","_window","_docEl","_body","Math","max","_buildGetter","e","p","pageXOffset","toUpperCase","_getOffset","container","rect","_toArray","getBoundingClientRect","isRoot","cRect","top","clientTop","pageYOffset","scrollTop","left","clientLeft","scrollLeft","offsets","x","y","_parseVal","target","currentVal","isNaN","charAt","parseFloat","substr","min","_initCore","document","body","documentElement","utils","toArray","config","autoKillThreshold","_config","_coreInitted","ScrollToPlugin","version","name","register","core","init","tween","index","targets","data","this","isWin","nodeType","vars","autoKill","getX","getY","xPrev","yPrev","add","offsetX","round","_props","push","skipX","offsetY","skipY","render","ratio","yDif","xDif","threshold","pt","_pt","r","d","_next","kill","onAutoKill","apply","onAutoKillParams","scrollTo","property","both","getOffset","buildGetter"],"mappings":";;;;;;;;;GAYiB,SAAhBA,UAAyC,oBAAZC,OAClB,SAAXC,WAAiBC,GAASH,MAAoBG,EAAOF,OAAOE,OAASA,EAAKC,gBAAkBD,EAChF,SAAZE,EAAYC,SAA2B,iBAAXA,EACrB,SAAPC,EAAQC,EAASC,OACZC,EAAgB,MAATD,EAAgB,QAAU,SACpCE,EAAS,SAAWD,EACpBE,EAAS,SAAWF,SACbF,IAAYK,GAAWL,IAAYM,GAAUN,IAAYO,EAASC,KAAKC,IAAIH,EAAOH,GAASI,EAAMJ,KAAYE,EAAQ,QAAUH,IAAQI,EAAOF,IAAWG,EAAMH,IAAWJ,EAAQG,GAAUH,EAAQ,SAAWE,GAEzM,SAAfQ,EAAgBC,EAAGV,OACdW,EAAI,UAAsB,MAATX,EAAgB,OAAS,cAC1CU,IAAMN,IACY,MAAjBM,EAAEE,YACLD,EAAI,OAASX,EAAKa,cAAgB,SAElCH,EAAiB,MAAbL,EAAOM,GAAaN,EAASC,GAG5B,kBAAMI,EAAEC,IAEH,SAAbG,EAAcf,EAASgB,OAClBC,EAAOC,EAASlB,GAAS,GAAGmB,wBAC/BC,GAAWJ,GAAaA,IAAcX,GAAWW,IAAcT,EAC/Dc,EAAQD,EAAS,CAACE,IAAIhB,EAAOiB,WAAalB,EAAQmB,aAAelB,EAAOmB,WAAalB,EAAMkB,WAAa,GAAIC,KAAKpB,EAAOqB,YAActB,EAAQQ,aAAeP,EAAOsB,YAAcrB,EAAMqB,YAAc,IAAMZ,EAAUG,wBACtNU,EAAU,CAACC,EAAGb,EAAKS,KAAOL,EAAMK,KAAMK,EAAGd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AcnD,EAAI/B,EAAKkC,EAAQ,OAC9E0B,EAAKe,MAAQ,IAETf,EAAKiB,QAAiBK,EAAPF,GAAoBA,GAAQE,IAAclD,EAAIhC,EAAKkC,EAAQ,OAC9E0B,EAAKiB,MAAQ,GAEVjB,EAAKe,OAASf,EAAKiB,QACtBpB,EAAM+B,OACF5B,EAAKI,KAAKyB,YACb7B,EAAKI,KAAKyB,WAAWC,MAAMjC,EAAOG,EAAKI,KAAK2B,kBAAoB,MAI/D7B,EACHxD,EAAQsF,SAAWhC,EAAKe,MAAkB5C,EAAT6B,EAAK7B,EAAS6B,EAAKiB,MAAkB7C,EAAT4B,EAAK5B,IAE7D4B,EAAKiB,QACT3C,EAAOR,UAAYkC,EAAK5B,GAEpB4B,EAAKe,QACTzC,EAAOL,WAAa+B,EAAK7B,IAG3B6B,EAAKQ,MAAQR,EAAK7B,EAClB6B,EAAKS,MAAQT,EAAK5B,GAEnBwD,mBAAKK,OACAC,EAAqB,aAAbD,GACRC,GAAqB,eAAbD,SACNlB,MAAQ,IAEVmB,GAAqB,eAAbD,SACNhB,MAAQ,KAKhB1B,EAAezC,IAAMV,EACrBmD,EAAe4C,UAAY/E,EAC3BmC,EAAe6C,YAAcrF,EAE7BhB,KAAcC,EAAKC,eAAesD"}
\ No newline at end of file
+{"version":3,"file":"ScrollToPlugin.min.js","sources":["../src/ScrollToPlugin.js"],"sourcesContent":["/*!\n * ScrollToPlugin 3.0.2\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet gsap, _coreInitted, _window, _docEl, _body, _toArray, _config,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_isString = value => typeof(value) === \"string\",\n\t_max = (element, axis) => {\n\t\tlet dim = (axis === \"x\") ? \"Width\" : \"Height\",\n\t\t\tscroll = \"scroll\" + dim,\n\t\t\tclient = \"client\" + dim;\n\t\treturn (element === _window || element === _docEl || element === _body) ? Math.max(_docEl[scroll], _body[scroll]) - (_window[\"inner\" + dim] || _docEl[client] || _body[client]) : element[scroll] - element[\"offset\" + dim];\n\t},\n\t_buildGetter = (e, axis) => { //pass in an element and an axis (\"x\" or \"y\") and it'll return a getter function for the scroll position of that element (like scrollTop or scrollLeft, although if the element is the window, it'll use the pageXOffset/pageYOffset or the documentElement's scrollTop/scrollLeft or document.body's. Basically this streamlines things and makes a very fast getter across browsers.\n\t\tlet p = \"scroll\" + ((axis === \"x\") ? \"Left\" : \"Top\");\n\t\tif (e === _window) {\n\t\t\tif (e.pageXOffset != null) {\n\t\t\t\tp = \"page\" + axis.toUpperCase() + \"Offset\";\n\t\t\t} else {\n\t\t\t\te = _docEl[p] != null ? _docEl : _body;\n\t\t\t}\n\t\t}\n\t\treturn () => e[p];\n\t},\n\t_getOffset = (element, container) => {\n\t\tlet rect = _toArray(element)[0].getBoundingClientRect(),\n\t\t\tisRoot = (!container || container === _window || container === _body),\n\t\t\tcRect = isRoot ? {top:_docEl.clientTop - (_window.pageYOffset || _docEl.scrollTop || _body.scrollTop || 0), left:_docEl.clientLeft - (_window.pageXOffset || _docEl.scrollLeft || _body.scrollLeft || 0)} : container.getBoundingClientRect(),\n\t\t\toffsets = {x: rect.left - cRect.left, y: rect.top - cRect.top};\n\t\tif (!isRoot && container) { //only add the current scroll position if it's not the window/body.\n\t\t\toffsets.x += _buildGetter(container, \"x\")();\n\t\t\toffsets.y += _buildGetter(container, \"y\")();\n\t\t}\n\t\treturn offsets;\n\t},\n\t_parseVal = (value, target, axis, currentVal) => !isNaN(value) ? parseFloat(value) : (_isString(value) && value.charAt(1) === \"=\") ? parseFloat(value.substr(2)) * (value.charAt(0) === \"-\" ? -1 : 1) + currentVal : (value === \"max\") ? _max(target, axis) : Math.min(_max(target, axis), _getOffset(value, target)[axis]),\n\t_initCore = () => {\n\t\tgsap = _getGSAP();\n\t\tif (_windowExists() && gsap && document.body) {\n\t\t\t_window = window;\n\t\t\t_body = document.body;\n\t\t\t_docEl = document.documentElement;\n\t\t\t_toArray = gsap.utils.toArray;\n\t\t\tgsap.config({autoKillThreshold:7});\n\t\t\t_config = gsap.config();\n\t\t\t_coreInitted = 1;\n\t\t}\n\t};\n\n\nexport const ScrollToPlugin = {\n\tversion:\"3.0.2\",\n\tname:\"scrollTo\",\n\trawVars:1,\n\tregister(core) {\n\t\tgsap = core;\n\t\t_initCore();\n\t},\n\tinit(target, value, tween, index, targets) {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore();\n\t\t}\n\t\tlet data = this;\n\t\tdata.isWin = (target === _window);\n\t\tdata.target = target;\n\t\tdata.tween = tween;\n\t\tif (typeof(value) !== \"object\") {\n\t\t\tvalue = {y:value}; //if we don't receive an object as the parameter, assume the user intends \"y\".\n\t\t\tif (_isString(value.y) && value.y !== \"max\" && value.y.charAt(1) !== \"=\") {\n\t\t\t\tvalue.x = value.y;\n\t\t\t}\n\t\t} else if (value.nodeType) {\n\t\t\tvalue = {y:value, x:value};\n\t\t}\n\t\tdata.vars = value;\n\t\tdata.autoKill = !!value.autoKill;\n\t\tdata.getX = _buildGetter(target, \"x\");\n\t\tdata.getY = _buildGetter(target, \"y\");\n\t\tdata.x = data.xPrev = data.getX();\n\t\tdata.y = data.yPrev = data.getY();\n\t\tif (value.x != null) {\n\t\t\tdata.add(data, \"x\", data.x, _parseVal(value.x, target, \"x\", data.x) - (value.offsetX || 0), index, targets, Math.round);\n\t\t\tdata._props.push(\"scrollTo_x\");\n\t\t} else {\n\t\t\tdata.skipX = 1;\n\t\t}\n\t\tif (value.y != null) {\n\t\t\tdata.add(data, \"y\", data.y, _parseVal(value.y, target, \"y\", data.y) - (value.offsetY || 0), index, targets, Math.round);\n\t\t\tdata._props.push(\"scrollTo_y\");\n\t\t} else {\n\t\t\tdata.skipY = 1;\n\t\t}\n\t},\n\trender(ratio, data) {\n\t\tlet pt = data._pt,\n\t\t\t{ target, tween, autoKill, xPrev, yPrev, isWin } = data,\n\t\t\tx, y, yDif, xDif, threshold;\n\t\twhile (pt) {\n\t\t\tpt.r(ratio, pt.d);\n\t\t\tpt = pt._next;\n\t\t}\n\t\tx = (isWin || !data.skipX) ? data.getX() : xPrev;\n\t\ty = (isWin || !data.skipY) ? data.getY() : yPrev;\n\t\tyDif = y - yPrev;\n\t\txDif = x - xPrev;\n\t\tthreshold = _config.autoKillThreshold;\n\t\tif (data.x < 0) { //can't scroll to a position less than 0! Might happen if someone uses a Back.easeOut or Elastic.easeOut when scrolling back to the top of the page (for example)\n\t\t\tdata.x = 0;\n\t\t}\n\t\tif (data.y < 0) {\n\t\t\tdata.y = 0;\n\t\t}\n\t\tif (autoKill) {\n\t\t\t//note: iOS has a bug that throws off the scroll by several pixels, so we need to check if it's within 7 pixels of the previous one that we set instead of just looking for an exact match.\n\t\t\tif (!data.skipX && (xDif > threshold || xDif < -threshold) && x < _max(target, \"x\")) {\n\t\t\t\tdata.skipX = 1; //if the user scrolls separately, we should stop tweening!\n\t\t\t}\n\t\t\tif (!data.skipY && (yDif > threshold || yDif < -threshold) && y < _max(target, \"y\")) {\n\t\t\t\tdata.skipY = 1; //if the user scrolls separately, we should stop tweening!\n\t\t\t}\n\t\t\tif (data.skipX && data.skipY) {\n\t\t\t\ttween.kill();\n\t\t\t\tif (data.vars.onAutoKill) {\n\t\t\t\t\tdata.vars.onAutoKill.apply(tween, data.vars.onAutoKillParams || []);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isWin) {\n\t\t\t_window.scrollTo((!data.skipX) ? data.x : x, (!data.skipY) ? data.y : y);\n\t\t} else {\n\t\t\tif (!data.skipY) {\n\t\t\t\ttarget.scrollTop = data.y;\n\t\t\t}\n\t\t\tif (!data.skipX) {\n\t\t\t\ttarget.scrollLeft = data.x;\n\t\t\t}\n\t\t}\n\t\tdata.xPrev = data.x;\n\t\tdata.yPrev = data.y;\n\t},\n\tkill(property) {\n\t\tlet both = (property === \"scrollTo\");\n\t\tif (both || property === \"scrollTo_x\") {\n\t\t\tthis.skipX = 1;\n\t\t}\n\t\tif (both || property === \"scrollTo_y\") {\n\t\t\tthis.skipY = 1;\n\t\t}\n\t}\n};\n\nScrollToPlugin.max = _max;\nScrollToPlugin.getOffset = _getOffset;\nScrollToPlugin.buildGetter = _buildGetter;\n\n_getGSAP() && gsap.registerPlugin(ScrollToPlugin);\n\nexport { ScrollToPlugin as default };"],"names":["_windowExists","window","_getGSAP","gsap","registerPlugin","_isString","value","_max","element","axis","dim","scroll","client","_window","_docEl","_body","Math","max","_buildGetter","e","p","pageXOffset","toUpperCase","_getOffset","container","rect","_toArray","getBoundingClientRect","isRoot","cRect","top","clientTop","pageYOffset","scrollTop","left","clientLeft","scrollLeft","offsets","x","y","_parseVal","target","currentVal","isNaN","charAt","parseFloat","substr","min","_initCore","document","body","documentElement","utils","toArray","config","autoKillThreshold","_config","_coreInitted","ScrollToPlugin","version","name","rawVars","register","core","init","tween","index","targets","data","this","isWin","nodeType","vars","autoKill","getX","getY","xPrev","yPrev","add","offsetX","round","_props","push","skipX","offsetY","skipY","render","ratio","yDif","xDif","threshold","pt","_pt","r","d","_next","kill","onAutoKill","apply","onAutoKillParams","scrollTo","property","both","getOffset","buildGetter"],"mappings":";;;;;;;;;6MAYiB,SAAhBA,UAAyC,oBAAZC,OAClB,SAAXC,WAAiBC,GAASH,MAAoBG,EAAOF,OAAOE,OAASA,EAAKC,gBAAkBD,EAChF,SAAZE,EAAYC,SAA2B,iBAAXA,EACrB,SAAPC,EAAQC,EAASC,OACZC,EAAgB,MAATD,EAAgB,QAAU,SACpCE,EAAS,SAAWD,EACpBE,EAAS,SAAWF,SACbF,IAAYK,GAAWL,IAAYM,GAAUN,IAAYO,EAASC,KAAKC,IAAIH,EAAOH,GAASI,EAAMJ,KAAYE,EAAQ,QAAUH,IAAQI,EAAOF,IAAW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OACAC,EAAqB,aAAbD,GACRC,GAAqB,eAAbD,SACNlB,MAAQ,IAEVmB,GAAqB,eAAbD,SACNhB,MAAQ,KAKhB3B,EAAezC,IAAMV,EACrBmD,EAAe6C,UAAYhF,EAC3BmC,EAAe8C,YAActF,EAE7BhB,KAAcC,EAAKC,eAAesD"}
\ No newline at end of file
diff --git a/dist/TextPlugin.js b/dist/TextPlugin.js
index ba6e630..5298bbd 100644
--- a/dist/TextPlugin.js
+++ b/dist/TextPlugin.js
@@ -2,7 +2,7 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
-}(this, function (exports) { 'use strict';
+}(this, (function (exports) { 'use strict';
var _trimExp = /(^\s+|\s+$)/g;
var emojiExp = /([\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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DE4D\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)/;
@@ -56,7 +56,7 @@
}
/*!
- * TextPlugin 3.0.0
+ * TextPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -71,7 +71,7 @@
};
var TextPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "text",
init: function init(target, value, tween) {
var i = target.nodeName.toUpperCase(),
@@ -174,4 +174,4 @@
Object.defineProperty(exports, '__esModule', { value: true });
-}));
+})));
diff --git a/dist/TextPlugin.min.js b/dist/TextPlugin.min.js
index bde70e7..45006e7 100644
--- a/dist/TextPlugin.min.js
+++ b/dist/TextPlugin.min.js
@@ -1,11 +1,11 @@
-!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var i=/(^\s+|\s+$)/g,A=/([\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\uDD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\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)/;function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F}function emojiSafeSplit(D,u,F){if(F&&(D=D.replace(i,"")),u&&""!==u)return D.split(u);for(var C,E,e=[],t=D.length,B=0;B<t;B++)(55296<=(E=D.charAt(B)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(B+1)&&D.charCodeAt(B+1)<=65039)&&(C=((D.substr(B,12).split(A)||[])[1]||"").length||2,E=D.substr(B,C),B+=C-(e.emoji=1)),e.push(E);return e}
/*!
- * TextPlugin 3.0.0
- * https://greensock.com
- *
- * @license Copyright 2008-2019, 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, [email protected]
- */var u,F={version:"3.0.0",name:"text",init:function init(D,u,F){var C,E=D.nodeName.toUpperCase(),e=this;if(e.svg=D.getBBox&&("TEXT"===E||"TSPAN"===E),!("innerHTML"in D||e.svg))return!1;if(e.target=D,"object"!=typeof u&&(u={value:u}),"value"in u){for(e.delimiter=u.delimiter||"",e.original=emojiSafeSplit(getText(D).replace(/\s+/g," "),e.delimiter),e.text=emojiSafeSplit(u.value.replace(/\s+/g," "),e.delimiter),e.from=F._from,e.from&&(E=e.original,e.original=e.text,e.text=E),e.hasClass=!(!u.newClass&&!u.oldClass),e.newClass=u.newClass,e.oldClass=u.oldClass,C=(E=e.original.length-e.text.length)<0?e.original:e.text,e.fillChar=u.fillChar||(u.padSpace?"&nbsp;":""),E<0&&(E=-E);-1<--E;)C.push(e.fillChar);this._props.push("text")}else e.text=e.original=[""]},render:function render(D,u){1<D?D=1:D<0&&(D=0),u.from&&(D=1-D);var F,C,E,e=u.text,t=u.hasClass,B=u.newClass,i=u.oldClass,A=u.delimiter,n=u.target,r=u.fillChar,s=u.original,l=e.length,o=D*l+.5|0;E=t?(C=i&&o!==l,((F=B&&o)?"<span class='"+B+"'>":"")+e.slice(0,o).join(A)+(F?"</span>":"")+(C?"<span class='"+i+"'>":"")+A+s.slice(o).join(A)+(C?"</span>":"")):e.slice(0,o).join(A)+A+s.slice(o).join(A),u.svg?n.textContent=E:n.innerHTML="&nbsp;"===r&&~E.indexOf(" ")?E.split(" ").join("&nbsp;&nbsp;"):E}};F.emojiSafeSplit=emojiSafeSplit,F.getText=getText,function _getGSAP(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}()&&u.registerPlugin(F),D.TextPlugin=F,D.default=F,Object.defineProperty(D,"__esModule",{value:!0})});
+ * TextPlugin 3.0.2
+ * https://greensock.com
+ *
+ * @license Copyright 2019, 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, [email protected]
+ */
+
+!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var i=/(^\s+|\s+$)/g,A=/([\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)/;function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F}function emojiSafeSplit(D,u,F){if(F&&(D=D.replace(i,"")),u&&""!==u)return D.split(u);for(var C,E,e=[],t=D.length,B=0;B<t;B++)(55296<=(E=D.charAt(B)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(B+1)&&D.charCodeAt(B+1)<=65039)&&(C=((D.substr(B,12).split(A)||[])[1]||"").length||2,E=D.substr(B,C),B+=C-(e.emoji=1)),e.push(E);return e}var u,F={version:"3.0.2",name:"text",init:function init(D,u,F){var C,E=D.nodeName.toUpperCase(),e=this;if(e.svg=D.getBBox&&("TEXT"===E||"TSPAN"===E),!("innerHTML"in D||e.svg))return!1;if(e.target=D,"object"!=typeof u&&(u={value:u}),"value"in u){for(e.delimiter=u.delimiter||"",e.original=emojiSafeSplit(getText(D).replace(/\s+/g," "),e.delimiter),e.text=emojiSafeSplit(u.value.replace(/\s+/g," "),e.delimiter),e.from=F._from,e.from&&(E=e.original,e.original=e.text,e.text=E),e.hasClass=!(!u.newClass&&!u.oldClass),e.newClass=u.newClass,e.oldClass=u.oldClass,C=(E=e.original.length-e.text.length)<0?e.original:e.text,e.fillChar=u.fillChar||(u.padSpace?"&nbsp;":""),E<0&&(E=-E);-1<--E;)C.push(e.fillChar);this._props.push("text")}else e.text=e.original=[""]},render:function render(D,u){1<D?D=1:D<0&&(D=0),u.from&&(D=1-D);var F,C,E,e=u.text,t=u.hasClass,B=u.newClass,i=u.oldClass,A=u.delimiter,n=u.target,r=u.fillChar,s=u.original,l=e.length,o=D*l+.5|0;E=t?(C=i&&o!==l,((F=B&&o)?"<span class='"+B+"'>":"")+e.slice(0,o).join(A)+(F?"</span>":"")+(C?"<span class='"+i+"'>":"")+A+s.slice(o).join(A)+(C?"</span>":"")):e.slice(0,o).join(A)+A+s.slice(o).join(A),u.svg?n.textContent=E:n.innerHTML="&nbsp;"===r&&~E.indexOf(" ")?E.split(" ").join("&nbsp;&nbsp;"):E}};F.emojiSafeSplit=emojiSafeSplit,F.getText=getText,function _getGSAP(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}()&&u.registerPlugin(F),D.TextPlugin=F,D.default=F,Object.defineProperty(D,"__esModule",{value:!0})});
//# sourceMappingURL=TextPlugin.min.js.map
diff --git a/dist/TextPlugin.min.js.map b/dist/TextPlugin.min.js.map
index c6f22f4..331ddc4 100644
--- a/dist/TextPlugin.min.js.map
+++ b/dist/TextPlugin.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"TextPlugin.min.js","sources":["../src/utils/strings.js","../src/TextPlugin.js"],"sourcesContent":["/*!\n * strings: 3.0.0\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _trimExp = /(^\\s+|\\s+$)/g;\n\nexport const emojiExp = /([\\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\\u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\\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)/;\n\nexport function getText(e) {\n\tlet type = e.nodeType,\n\t\tresult = \"\";\n\tif (type === 1 || type === 9 || type === 11) {\n\t\tif (typeof(e.textContent) === \"string\") {\n\t\t\treturn e.textContent;\n\t\t} else {\n\t\t\tfor (e = e.firstChild; e; e = e.nextSibling ) {\n\t\t\t\tresult += getText(e);\n\t\t\t}\n\t\t}\n\t} else if (type === 3 || type === 4) {\n\t\treturn e.nodeValue;\n\t}\n\treturn result;\n}\n\n/*\n//smaller kb version that only handles the simpler emoji's, which is often perfectly adequate.\n\nlet _emoji = \"[\\uE000-\\uF8FF]|\\uD83C[\\uDC00-\\uDFFF]|\\uD83D[\\uDC00-\\uDFFF]|[\\u2694-\\u2697]|\\uD83E[\\uDD10-\\uDD5D]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]\",\n\t_emojiExp = new RegExp(_emoji),\n\t_emojiAndCharsExp = new RegExp(_emoji + \"|.\", \"g\"),\n\t_emojiSafeSplit = (text, delimiter, trim) => {\n\t\tif (trim) {\n\t\t\ttext = text.replace(_trimExp, \"\");\n\t\t}\n\t\treturn ((delimiter === \"\" || !delimiter) && _emojiExp.test(text)) ? text.match(_emojiAndCharsExp) : text.split(delimiter || \"\");\n\t};\n */\nexport function emojiSafeSplit(text, delimiter, trim) {\n\tif (trim) {\n\t\ttext = text.replace(_trimExp, \"\");\n\t}\n\tif (delimiter && delimiter !== \"\") {\n\t\treturn text.split(delimiter);\n\t}\n\tlet result = [],\n\t\tl = text.length,\n\t\ti = 0,\n\t\tj, character;\n\tfor (; i < l; i++) {\n\t\tcharacter = text.charAt(i);\n\t\tif ((character.charCodeAt(0) >= 0xD800 && character.charCodeAt(0) <= 0xDBFF) || (text.charCodeAt(i+1) >= 0xFE00 && text.charCodeAt(i+1) <= 0xFE0F)) { //special emoji characters use 2 or 4 unicode characters that we must keep together.\n\t\t\tj = ((text.substr(i, 12).split(emojiExp) || [])[1] || \"\").length || 2;\n\t\t\tcharacter = text.substr(i, j);\n\t\t\tresult.emoji = 1;\n\t\t\ti += j - 1;\n\t\t}\n\t\tresult.push(character);\n\t}\n\treturn result;\n}","/*!\n * TextPlugin 3.0.0\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nimport { emojiSafeSplit, getText } from \"./utils/strings.js\";\n\nlet gsap,\n\t_getGSAP = () => gsap || (typeof(window) !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap);\n\n\nexport const TextPlugin = {\n\tversion:\"3.0.0\",\n\tname:\"text\",\n\tinit(target, value, tween) {\n\t\tlet i = target.nodeName.toUpperCase(),\n\t\t\tdata = this,\n\t\t\tshort;\n\t\tdata.svg = (target.getBBox && (i === \"TEXT\" || i === \"TSPAN\"));\n\t\tif (!(\"innerHTML\" in target) && !data.svg) {\n\t\t\treturn false;\n\t\t}\n\t\tdata.target = target;\n\t\tif (typeof(value) !== \"object\") {\n\t\t\tvalue = {value:value};\n\t\t}\n\t\tif (!(\"value\" in value)) {\n\t\t\tdata.text = data.original = [\"\"];\n\t\t\treturn;\n\t\t}\n\t\tdata.delimiter = value.delimiter || \"\";\n\t\tdata.original = emojiSafeSplit(getText(target).replace(/\\s+/g, \" \"), data.delimiter);\n\t\tdata.text = emojiSafeSplit(value.value.replace(/\\s+/g, \" \"), data.delimiter);\n\t\tdata.from = tween._from;\n\t\tif (data.from) {\n\t\t\ti = data.original;\n\t\t\tdata.original = data.text;\n\t\t\tdata.text = i;\n\t\t}\n\t\tdata.hasClass = !!(value.newClass || value.oldClass);\n\t\tdata.newClass = value.newClass;\n\t\tdata.oldClass = value.oldClass;\n\t\ti = data.original.length - data.text.length;\n\t\tshort = (i < 0) ? data.original : data.text;\n\t\tdata.fillChar = value.fillChar || (value.padSpace ? \"&nbsp;\" : \"\");\n\t\tif (i < 0) {\n\t\t\ti = -i;\n\t\t}\n\t\twhile (--i > -1) {\n\t\t\tshort.push(data.fillChar);\n\t\t}\n\t\tthis._props.push(\"text\");\n\t},\n\trender(ratio, data) {\n\t\tif (ratio > 1) {\n\t\t\tratio = 1;\n\t\t} else if (ratio < 0) {\n\t\t\tratio = 0;\n\t\t}\n\t\tif (data.from) {\n\t\t\tratio = 1 - ratio;\n\t\t}\n\t\tlet { text, hasClass, newClass, oldClass, delimiter, target, fillChar, original } = data,\n\t\t\tl = text.length,\n\t\t\ti = (ratio * l + 0.5) | 0,\n\t\t\tapplyNew, applyOld, str;\n\t\tif (hasClass) {\n\t\t\tapplyNew = (newClass && i);\n\t\t\tapplyOld = (oldClass && i !== l);\n\t\t\tstr = (applyNew ? \"<span class='\" + newClass + \"'>\" : \"\") + text.slice(0, i).join(delimiter) + (applyNew ? \"</span>\" : \"\") + (applyOld ? \"<span class='\" + oldClass + \"'>\" : \"\") + delimiter + original.slice(i).join(delimiter) + (applyOld ? \"</span>\" : \"\");\n\t\t} else {\n\t\t\tstr = text.slice(0, i).join(delimiter) + delimiter + original.slice(i).join(delimiter);\n\t\t}\n\t\tif (data.svg) { //SVG text elements don't have an \"innerHTML\" in Microsoft browsers.\n\t\t\ttarget.textContent = str;\n\t\t} else {\n\t\t\ttarget.innerHTML = (fillChar === \"&nbsp;\" && ~str.indexOf(\" \")) ? str.split(\" \").join(\"&nbsp;&nbsp;\") : str;\n\t\t}\n\t}\n};\n\nTextPlugin.emojiSafeSplit = emojiSafeSplit;\nTextPlugin.getText = getText;\n\n_getGSAP() && gsap.registerPlugin(TextPlugin);\n\nexport { TextPlugin as default };"],"names":["_trimExp","emojiExp","getText","e","type","nodeType","result","textContent","firstChild","nextSibling","nodeValue","emojiSafeSplit","text","delimiter","trim","replace","split","j","character","l","length","i","charAt","charCodeAt","substr","emoji","push","gsap","TextPlugin","version","name","init","target","value","tween","short","nodeName","toUpperCase","data","this","svg","getBBox","original","from","_from","hasClass","newClass","oldClass","fillChar","padSpace","_props","render","ratio","applyNew","applyOld","str","slice","join","innerHTML","indexOf","_getGSAP","window","registerPlugin"],"mappings":"6MAWA,IAAIA,EAAW,eAEFC,EAAW,4gOAEjB,SAASC,QAAQC,OACnBC,EAAOD,EAAEE,SACZC,EAAS,MACG,IAATF,GAAuB,IAATA,GAAuB,KAATA,EAAa,IACd,iBAAnBD,EAAEI,mBAC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AGoC,KAAK5C,GAEzEyB,EAAKE,IACRR,EAAOzB,YAAcgD,EAErBvB,EAAO0B,UAA0B,WAAbV,IAA0BO,EAAII,QAAQ,MAASJ,EAAIvC,MAAM,MAAMyC,KAAK,gBAAkBF,IAK7G3B,EAAWjB,eAAiBA,eAC5BiB,EAAW1B,QAAUA,QA1ET,SAAX0D,kBAAiBjC,GAA4B,oBAAZkC,SAA4BlC,EAAOkC,OAAOlC,OAASA,EAAKmC,gBAAkBnC,EA4E5GiC,IAAcjC,EAAKmC,eAAelC"}
\ No newline at end of file
+{"version":3,"file":"TextPlugin.min.js","sources":["../src/utils/strings.js","../src/TextPlugin.js"],"sourcesContent":["/*!\n * strings: 3.0.2\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _trimExp = /(^\\s+|\\s+$)/g;\n\nexport const emojiExp = /([\\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\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\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)/;\n\nexport function getText(e) {\n\tlet type = e.nodeType,\n\t\tresult = \"\";\n\tif (type === 1 || type === 9 || type === 11) {\n\t\tif (typeof(e.textContent) === \"string\") {\n\t\t\treturn e.textContent;\n\t\t} else {\n\t\t\tfor (e = e.firstChild; e; e = e.nextSibling ) {\n\t\t\t\tresult += getText(e);\n\t\t\t}\n\t\t}\n\t} else if (type === 3 || type === 4) {\n\t\treturn e.nodeValue;\n\t}\n\treturn result;\n}\n\n/*\n//smaller kb version that only handles the simpler emoji's, which is often perfectly adequate.\n\nlet _emoji = \"[\\uE000-\\uF8FF]|\\uD83C[\\uDC00-\\uDFFF]|\\uD83D[\\uDC00-\\uDFFF]|[\\u2694-\\u2697]|\\uD83E[\\uDD10-\\uDD5D]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]\",\n\t_emojiExp = new RegExp(_emoji),\n\t_emojiAndCharsExp = new RegExp(_emoji + \"|.\", \"g\"),\n\t_emojiSafeSplit = (text, delimiter, trim) => {\n\t\tif (trim) {\n\t\t\ttext = text.replace(_trimExp, \"\");\n\t\t}\n\t\treturn ((delimiter === \"\" || !delimiter) && _emojiExp.test(text)) ? text.match(_emojiAndCharsExp) : text.split(delimiter || \"\");\n\t};\n */\nexport function emojiSafeSplit(text, delimiter, trim) {\n\tif (trim) {\n\t\ttext = text.replace(_trimExp, \"\");\n\t}\n\tif (delimiter && delimiter !== \"\") {\n\t\treturn text.split(delimiter);\n\t}\n\tlet result = [],\n\t\tl = text.length,\n\t\ti = 0,\n\t\tj, character;\n\tfor (; i < l; i++) {\n\t\tcharacter = text.charAt(i);\n\t\tif ((character.charCodeAt(0) >= 0xD800 && character.charCodeAt(0) <= 0xDBFF) || (text.charCodeAt(i+1) >= 0xFE00 && text.charCodeAt(i+1) <= 0xFE0F)) { //special emoji characters use 2 or 4 unicode characters that we must keep together.\n\t\t\tj = ((text.substr(i, 12).split(emojiExp) || [])[1] || \"\").length || 2;\n\t\t\tcharacter = text.substr(i, j);\n\t\t\tresult.emoji = 1;\n\t\t\ti += j - 1;\n\t\t}\n\t\tresult.push(character);\n\t}\n\treturn result;\n}","/*!\n * TextPlugin 3.0.2\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nimport { emojiSafeSplit, getText } from \"./utils/strings.js\";\n\nlet gsap,\n\t_getGSAP = () => gsap || (typeof(window) !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap);\n\n\nexport const TextPlugin = {\n\tversion:\"3.0.2\",\n\tname:\"text\",\n\tinit(target, value, tween) {\n\t\tlet i = target.nodeName.toUpperCase(),\n\t\t\tdata = this,\n\t\t\tshort;\n\t\tdata.svg = (target.getBBox && (i === \"TEXT\" || i === \"TSPAN\"));\n\t\tif (!(\"innerHTML\" in target) && !data.svg) {\n\t\t\treturn false;\n\t\t}\n\t\tdata.target = target;\n\t\tif (typeof(value) !== \"object\") {\n\t\t\tvalue = {value:value};\n\t\t}\n\t\tif (!(\"value\" in value)) {\n\t\t\tdata.text = data.original = [\"\"];\n\t\t\treturn;\n\t\t}\n\t\tdata.delimiter = value.delimiter || \"\";\n\t\tdata.original = emojiSafeSplit(getText(target).replace(/\\s+/g, \" \"), data.delimiter);\n\t\tdata.text = emojiSafeSplit(value.value.replace(/\\s+/g, \" \"), data.delimiter);\n\t\tdata.from = tween._from;\n\t\tif (data.from) {\n\t\t\ti = data.original;\n\t\t\tdata.original = data.text;\n\t\t\tdata.text = i;\n\t\t}\n\t\tdata.hasClass = !!(value.newClass || value.oldClass);\n\t\tdata.newClass = value.newClass;\n\t\tdata.oldClass = value.oldClass;\n\t\ti = data.original.length - data.text.length;\n\t\tshort = (i < 0) ? data.original : data.text;\n\t\tdata.fillChar = value.fillChar || (value.padSpace ? \"&nbsp;\" : \"\");\n\t\tif (i < 0) {\n\t\t\ti = -i;\n\t\t}\n\t\twhile (--i > -1) {\n\t\t\tshort.push(data.fillChar);\n\t\t}\n\t\tthis._props.push(\"text\");\n\t},\n\trender(ratio, data) {\n\t\tif (ratio > 1) {\n\t\t\tratio = 1;\n\t\t} else if (ratio < 0) {\n\t\t\tratio = 0;\n\t\t}\n\t\tif (data.from) {\n\t\t\tratio = 1 - ratio;\n\t\t}\n\t\tlet { text, hasClass, newClass, oldClass, delimiter, target, fillChar, original } = data,\n\t\t\tl = text.length,\n\t\t\ti = (ratio * l + 0.5) | 0,\n\t\t\tapplyNew, applyOld, str;\n\t\tif (hasClass) {\n\t\t\tapplyNew = (newClass && i);\n\t\t\tapplyOld = (oldClass && i !== l);\n\t\t\tstr = (applyNew ? \"<span class='\" + newClass + \"'>\" : \"\") + text.slice(0, i).join(delimiter) + (applyNew ? \"</span>\" : \"\") + (applyOld ? \"<span class='\" + oldClass + \"'>\" : \"\") + delimiter + original.slice(i).join(delimiter) + (applyOld ? \"</span>\" : \"\");\n\t\t} else {\n\t\t\tstr = text.slice(0, i).join(delimiter) + delimiter + original.slice(i).join(delimiter);\n\t\t}\n\t\tif (data.svg) { //SVG text elements don't have an \"innerHTML\" in Microsoft browsers.\n\t\t\ttarget.textContent = str;\n\t\t} else {\n\t\t\ttarget.innerHTML = (fillChar === \"&nbsp;\" && ~str.indexOf(\" \")) ? str.split(\" \").join(\"&nbsp;&nbsp;\") : str;\n\t\t}\n\t}\n};\n\nTextPlugin.emojiSafeSplit = emojiSafeSplit;\nTextPlugin.getText = getText;\n\n_getGSAP() && gsap.registerPlugin(TextPlugin);\n\nexport { TextPlugin as default };"],"names":["_trimExp","emojiExp","getText","e","type","nodeType","result","textContent","firstChild","nextSibling","nodeValue","emojiSafeSplit","text","delimiter","trim","replace","split","j","character","l","length","i","charAt","charCodeAt","substr","emoji","push","gsap","TextPlugin","version","name","init","target","value","tween","short","nodeName","toUpperCase","data","this","svg","getBBox","original","from","_from","hasClass","newClass","oldClass","fillChar","padSpace","_props","render","ratio","applyNew","applyOld","str","slice","join","innerHTML","indexOf","_getGSAP","window","registerPlugin"],"mappings":";;;;;;;;;6MAWA,IAAIA,EAAW,eAEFC,EAAW,4gOAEjB,SAASC,QAAQC,OACnBC,EAAOD,EAAEE,SACZC,EAAS,MACG,IAATF,GAAuB,IAATA,GAAuB,KAATA,EAAa,IACd,iBAAnBD,EAAEI,mBACLJ,EAAEI,gBAEJJ,EAAIA,EAAEK,WAAYL,EAAGA,EAAIA,EAAE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AA0B,WAAbV,IAA0BO,EAAII,QAAQ,MAASJ,EAAIvC,MAAM,MAAMyC,KAAK,gBAAkBF,IAK7G3B,EAAWjB,eAAiBA,eAC5BiB,EAAW1B,QAAUA,QA1ET,SAAX0D,kBAAiBjC,GAA4B,oBAAZkC,SAA4BlC,EAAOkC,OAAOlC,OAASA,EAAKmC,gBAAkBnC,EA4E5GiC,IAAcjC,EAAKmC,eAAelC"}
\ No newline at end of file
diff --git a/dist/gsap.js b/dist/gsap.js
index ba307ec..e9ea491 100644
--- a/dist/gsap.js
+++ b/dist/gsap.js
@@ -2,7 +2,7 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
-}(this, function (exports) { 'use strict';
+}(this, (function (exports) { 'use strict';
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
@@ -19,7 +19,7 @@
}
/*!
- * GSAP 3.0.1
+ * GSAP 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -90,7 +90,7 @@
return (_installScope = _merge(scope, _globals)) && gsap;
},
_missingPlugin = function _missingPlugin(property, value) {
- return console.warn("Invalid", property, "tween of", value, "Missing plugin? gsap.registerPlugin()");
+ return console.warn("Invalid property", property, "set to", value, "Missing plugin? gsap.registerPlugin()");
},
_warn = function _warn(message, suppress) {
return !suppress && console.warn(message);
@@ -115,7 +115,7 @@
i;
if (!_isObject(target) && !_isFunction(target)) {
- return _isArray(targets) ? targets : [targets];
+ targets = [targets];
}
if (!(harnessPlugin = (target._gsap || {}).harness)) {
@@ -129,7 +129,7 @@
i = targets.length;
while (i--) {
- targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin));
+ targets[i] && (targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin))) || targets.splice(i, 1);
}
return targets;
@@ -372,8 +372,7 @@
return !animation || animation._ts && _hasNoPausedAncestors(animation.parent);
},
_elapsedCycleDuration = function _elapsedCycleDuration(animation) {
- var cycleDuration;
- return animation._repeat ? (cycleDuration = animation.duration() + animation._rDelay) * ~~(animation._tTime / cycleDuration) : 0;
+ return animation._repeat ? ~~(animation._tTime / (animation = animation.duration() + animation._rDelay)) * animation : 0;
},
_parentToChildTotalTime = function _parentToChildTotalTime(parentTime, child) {
return child._ts > 0 ? (parentTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (parentTime - child._start) * child._ts;
@@ -415,7 +414,7 @@
return 1;
}
- if (!force && tween._pt && tween.vars.lazy) {
+ if (!force && tween._pt && (tween._dur && tween.vars.lazy !== false || !tween._dur && tween.vars.lazy)) {
_lazyTweens.push(tween);
tween._lazy = [totalTime, suppressEvents];
@@ -448,7 +447,7 @@
if (iteration !== prevIteration) {
prevRatio = 1 - ratio;
- if (tween.vars.repeatRefresh) {
+ if (tween.vars.repeatRefresh && tween._initted) {
tween.invalidate();
}
}
@@ -458,11 +457,8 @@
return;
}
- if (ratio !== prevRatio || force) {
- if (!suppressEvents || totalTime) {
- tween._zTime = totalTime;
- }
-
+ if (ratio !== prevRatio || force || tween._zTime === _tinyNum || !totalTime && tween._zTime) {
+ tween._zTime = totalTime || (suppressEvents ? _tinyNum : 0);
tween.ratio = ratio;
if (tween._from) {
@@ -501,7 +497,7 @@
if (!suppressEvents) {
_callback(tween, tween.ratio ? "onComplete" : "onReverseComplete", true);
- tween._prom && tween.ratio && tween._prom();
+ tween._prom && tween._prom();
}
}
}
@@ -593,7 +589,7 @@
},
_slice = [].slice,
_isArrayLike = function _isArrayLike(value) {
- return _isObject(value) && "length" in value && value.length - 1 in value && _isObject(value[0]) && value !== _win;
+ return value && _isObject(value) && "length" in value && value.length - 1 in value && _isObject(value[0]) && !value.nodeType && value !== _win;
},
_flatten = function _flatten(ar, leaveStrings, accumulator) {
if (accumulator === void 0) {
@@ -903,7 +899,7 @@
_lazyRender();
}
- return params ? callback.apply(scope, params) : callback.call(scope, animation);
+ return params ? callback.apply(scope, params) : callback.call(scope);
},
_interrupt = function _interrupt(animation) {
_removeFromParent(animation);
@@ -1507,6 +1503,8 @@
}
if (this._tTime !== _totalTime || !this._dur) {
+ this._ts || (this._pTime = _totalTime);
+
_lazySafeRender(this, _totalTime, suppressEvents);
}
@@ -1514,7 +1512,7 @@
};
_proto.time = function time(value, suppressEvents) {
- return arguments.length ? this.totalTime(value + _elapsedCycleDuration(this), suppressEvents) : this._time;
+ return arguments.length ? this.totalTime((value + _elapsedCycleDuration(this)) % this.duration() || (value ? this._dur : 0), suppressEvents) : this._time;
};
_proto.totalProgress = function totalProgress(value, suppressEvents) {
@@ -1522,7 +1520,7 @@
};
_proto.progress = function progress(value, suppressEvents) {
- return arguments.length ? this.totalTime(this.duration() * value + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? this._time / this._dur : this.ratio;
+ return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? this._time / this._dur : this.ratio;
};
_proto.iteration = function iteration(value, suppressEvents) {
@@ -1678,11 +1676,11 @@
return this;
};
- _proto.isActive = function isActive() {
+ _proto.isActive = function isActive(hasStarted) {
var parent = this.parent || this._dp,
start = this._start,
rawTime;
- return !parent || this._ts && this._initted && parent.isActive() && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum;
+ return !parent || this._ts && (this._initted || !hasStarted) && parent.isActive(hasStarted) && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum;
};
_proto.eventCallback = function eventCallback(type, callback, params) {
@@ -1712,15 +1710,27 @@
_proto.then = function then(onFulfilled) {
var _this = this;
- if (onFulfilled === void 0) {
- onFulfilled = _emptyFunc;
- }
-
return new Promise(function (resolve) {
- _this._prom = function () {
- onFulfilled(_this);
- resolve();
+ var f = onFulfilled || _passThrough,
+ _resolve = function _resolve() {
+ var _then = _this.then;
+ _this.then = null;
+ f = f(_this);
+
+ if (f && (f.then || f === _this)) {
+ _this._prom = f;
+ _this.then = _then;
+ }
+
+ resolve(f);
+ _this.then = _then;
};
+
+ if (_this._initted && _this.totalProgress() === 1 && _this._ts >= 0 || !_this._tTime && _this._ts < 0) {
+ _resolve();
+ } else {
+ _this._prom = _resolve;
+ }
});
};
@@ -1741,6 +1751,7 @@
_repeat: 0,
_yoyo: false,
parent: 0,
+ _initted: false,
_rDelay: 0,
_ts: 1,
_dp: 0,
@@ -1828,7 +1839,7 @@
tDur = this._dirty ? this.totalDuration() : this._tDur,
dur = this._dur,
tTime = totalTime > tDur - _tinyNum && totalTime >= 0 && this !== _globalTimeline ? tDur : totalTime < _tinyNum ? 0 : totalTime,
- crossingStart = this._zTime < 0 !== totalTime < 0 && this._initted,
+ crossingStart = this._zTime < 0 !== totalTime < 0 && (this._initted || !dur),
time,
child,
next,
@@ -2007,7 +2018,7 @@
if (!suppressEvents && !(totalTime < 0 && !prevTime)) {
_callback(this, tTime === tDur ? "onComplete" : "onReverseComplete", true);
- this._prom && tTime === tDur && this._prom();
+ this._prom && this._prom();
}
}
}
@@ -2168,7 +2179,7 @@
i = tweens.length;
while (i--) {
- tweens[i].kill(targets, props);
+ _overwritingTween !== tweens[i] && tweens[i].kill(targets, props);
}
return this;
@@ -2182,7 +2193,7 @@
while (child) {
if (child instanceof Tween) {
- if (_arrayContainsAny(child._targets, parsedTargets) && (!onlyActive || child.isActive())) {
+ if (_arrayContainsAny(child._targets, parsedTargets) && (!onlyActive || child.isActive(onlyActive === "started"))) {
a.push(child);
}
} else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) {
@@ -2489,7 +2500,7 @@
}
if (end.charAt(1) === "=") {
- end = parseFloat(parsedStart) + parseFloat(end.substr(2)) * (end.charAt(0) === "-" ? -1 : 1) + getUnit(parsedStart);
+ end = parseFloat(parsedStart) + parseFloat(end.substr(2)) * (end.charAt(0) === "-" ? -1 : 1) + (getUnit(parsedStart) || 0);
}
}
@@ -2640,11 +2651,7 @@
})));
if (!immediateRender) {
- _initTween(tween._startAt, time);
-
- if (immediateRender) {
- !autoRevert && (tween._startAt = 0);
- }
+ _initTween(tween._startAt, _tinyNum);
} else if (!time) {
return;
}
@@ -2655,6 +2662,7 @@
tween._pt = 0;
harness = targets[0] ? _getCache(targets[0]).harness : 0;
harnessVars = harness && vars[harness.prop];
+ lazy = dur && _isNotFalse(lazy) || lazy && !dur;
for (i = 0; i < targets.length; i++) {
target = targets[i];
@@ -2698,12 +2706,12 @@
if (autoOverwrite) {
_overwritingTween = tween;
- _globalTimeline.killTweensOf(target, ptLookup, true);
+ _globalTimeline.killTweensOf(target, ptLookup, "started");
_overwritingTween = 0;
}
- if (tween._pt && (_isNotFalse(lazy) && dur || lazy && !dur)) {
+ if (tween._pt && lazy) {
_lazyLookup[gsData.id] = 1;
}
}
@@ -2751,8 +2759,8 @@
_parseFuncOrString = function _parseFuncOrString(value, tween, i, target, targets) {
return _isFunction(value) ? value.call(tween, i, target, targets) : _isString(value) && ~value.indexOf("random(") ? _replaceRandom(value) : value;
},
- _staggerTweenProps = _callbackNames + ",repeat,repeatDelay,yoyo,yoyoEase",
- _staggerPropsToSkip = (_staggerTweenProps + ",id,stagger,delay,duration").split(",");
+ _staggerTweenProps = _callbackNames + ",repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",
+ _staggerPropsToSkip = (_staggerTweenProps + ",id,stagger,delay,duration,paused").split(",");
var Tween = function (_Animation2) {
_inheritsLoose(Tween, _Animation2);
@@ -2775,7 +2783,7 @@
overwrite = _this4$vars.overwrite,
keyframes = _this4$vars.keyframes,
defaults = _this4$vars.defaults,
- parsedTargets = toArray(targets),
+ parsedTargets = _isArray(targets) && _isNumber(targets[0]) ? [targets] : toArray(targets),
tl,
i,
copy,
@@ -2784,7 +2792,7 @@
curTarget,
staggerFunc,
staggerVarsToMerge;
- _this4._targets = parsedTargets.length ? _harness(parsedTargets) : _warn("GSAP target " + targets + " not found. https://greensock.com", !_config.nullTargetWarn) || [{}];
+ _this4._targets = parsedTargets.length ? _harness(parsedTargets) : _warn("GSAP target " + targets + " not found. https://greensock.com", !_config.nullTargetWarn) || [];
_this4._ptLookup = [];
_this4._overwrite = overwrite;
@@ -2897,7 +2905,7 @@
if (!dur) {
_renderZeroDurationTween(this, totalTime, suppressEvents, force);
- } else if (tTime !== this._tTime || force || this._startAt && this._zTime < 0 !== totalTime < 0) {
+ } else if (tTime !== this._tTime || !totalTime || force || this._startAt && this._zTime < 0 !== totalTime < 0) {
time = tTime;
timeline = this.timeline;
@@ -2929,13 +2937,13 @@
prevIteration--;
}
- if (time === prevTime && !force) {
+ if (time === prevTime && !force && this._initted) {
return this;
}
if (iteration !== prevIteration) {
if (this.vars.repeatRefresh && !this._lock) {
- this._lock = 1;
+ this._lock = force = 1;
this.render(cycleDuration * iteration, true).invalidate()._lock = 0;
}
}
@@ -2994,7 +3002,7 @@
if (!suppressEvents && !(totalTime < 0 && !prevTime)) {
_callback(this, tTime === tDur ? "onComplete" : "onReverseComplete", true);
- this._prom && tTime === tDur && this._prom();
+ this._prom && this._prom();
}
}
}
@@ -3022,19 +3030,16 @@
vars = "all";
}
- if (_overwritingTween === this) {
- return _overwritingTween;
- }
-
if (!targets && (!vars || vars === "all")) {
+ this._lazy = 0;
+
if (this.parent) {
- this._lazy = 0;
return _interrupt(this);
}
}
if (this.timeline) {
- this.timeline.killTweensOf(targets, vars);
+ this.timeline.killTweensOf(targets, vars, !!_overwritingTween);
return this;
}
@@ -3155,7 +3160,6 @@
_setDefaults(Tween.prototype, {
_targets: [],
- _initted: 0,
_lazy: 0,
_startAt: 0,
_op: 0,
@@ -3187,7 +3191,7 @@
return _isFunction(target[property]) ? _setterFunc : _isUndefined(target[property]) && target.setAttribute ? _setterAttribute : _setterPlain;
},
_renderPlain = function _renderPlain(ratio, data) {
- return data.set(data.t, data.p, ~~((data.s + data.c * ratio) * 10000) / 10000, data);
+ return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 10000) / 10000, data);
},
_renderBoolean = function _renderBoolean(ratio, data) {
return data.set(data.t, data.p, !!(data.s + data.c * ratio), data);
@@ -3202,7 +3206,7 @@
s = data.e;
} else {
while (pt) {
- s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : ~~((pt.s + pt.c * ratio) * 10000) / 10000) + s;
+ s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : Math.round((pt.s + pt.c * ratio) * 10000) / 10000) + s;
pt = pt._next;
}
@@ -3332,7 +3336,7 @@
id: "root"
});
_config.stringFilter = _colorStringFilter;
- var gsap = {
+ var _gsap = {
registerPlugin: function registerPlugin() {
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
@@ -3502,16 +3506,25 @@
};
_forEachName("to,from,fromTo,delayedCall,set,killTweensOf", function (name) {
- return gsap[name] = Tween[name];
+ return _gsap[name] = Tween[name];
});
_ticker.add(Timeline.updateRoot);
- _quickTween = gsap.to({}, {
+ _quickTween = _gsap.to({}, {
duration: 0
});
- var _addModifiers = function _addModifiers(tween, modifiers) {
+ var _getPluginPropTween = function _getPluginPropTween(plugin, prop) {
+ var pt = plugin._pt;
+
+ while (pt && pt.p !== prop && pt.op !== prop && pt.fp !== prop) {
+ pt = pt._next;
+ }
+
+ return pt;
+ },
+ _addModifiers = function _addModifiers(tween, modifiers) {
var targets = tween._targets,
p,
i,
@@ -3523,10 +3536,12 @@
while (i--) {
pt = tween._ptLookup[i][p];
- if (pt) {
- if (pt.d.modifier) {
- pt.d.modifier(modifiers[p], tween, targets[i], p);
+ if (pt && (pt = pt.d)) {
+ if (pt._pt) {
+ pt = _getPluginPropTween(pt, p);
}
+
+ pt && pt.modifier && pt.modifier(modifiers[p], tween, targets[i], p);
}
}
}
@@ -3565,7 +3580,7 @@
};
};
- gsap.registerPlugin({
+ var gsap = _gsap.registerPlugin({
name: "attr",
init: function init(target, vars, tween, index, targets) {
for (var p in vars) {
@@ -3580,11 +3595,11 @@
var i = value.length;
while (i--) {
- this.add(target, i, target[i], value[i]);
+ this.add(target, i, target[i] || 0, value[i]);
}
}
- }, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap));
- Tween.version = Timeline.version = gsap.version = "3.0.1";
+ }, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap)) || _gsap;
+ Tween.version = Timeline.version = gsap.version = "3.0.2";
_coreReady = 1;
if (_windowExists()) {
@@ -3635,13 +3650,13 @@
alpha: "opacity"
},
_renderCSSProp = function _renderCSSProp(ratio, data) {
- return data.set(data.t, data.p, ~~((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);
+ return data.set(data.t, data.p, ~~((data.s + data.c * ratio) * 1000) / 1000 + data.u, data);
},
_renderPropWithEnd = function _renderPropWithEnd(ratio, data) {
- return data.set(data.t, data.p, ratio === 1 ? data.e : ~~((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);
+ return data.set(data.t, data.p, ratio === 1 ? data.e : ~~((data.s + data.c * ratio) * 1000) / 1000 + data.u, data);
},
_renderCSSPropWithBeginning = function _renderCSSPropWithBeginning(ratio, data) {
- return data.set(data.t, data.p, ratio ? ~~((data.s + data.c * ratio) * 10000) / 10000 + data.u : data.b, data);
+ return data.set(data.t, data.p, ratio ? ~~((data.s + data.c * ratio) * 1000) / 1000 + data.u : data.b, data);
},
_renderRoundedCSSProp = function _renderRoundedCSSProp(ratio, data) {
var value = data.s + data.c * ratio;
@@ -3682,15 +3697,15 @@
var e = _doc$1.createElementNS ? _doc$1.createElementNS((ns || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), type) : _doc$1.createElement(type);
return e.style ? e : _doc$1.createElement(type);
},
- _getComputedProperty = function _getComputedProperty(target, property) {
+ _getComputedProperty = function _getComputedProperty(target, property, skipPrefixFallback) {
var cs = getComputedStyle(target);
- return cs[property] || cs.getPropertyValue(property.replace(_capsExp, "-$1").toLowerCase()) || cs.getPropertyValue(property);
+ return cs[property] || cs.getPropertyValue(property.replace(_capsExp, "-$1").toLowerCase()) || cs.getPropertyValue(property) || !skipPrefixFallback && _getComputedProperty(target, _checkPropPrefix(property) || property, 1) || "";
},
+ _prefixes = "O,Moz,ms,Ms,Webkit".split(","),
_checkPropPrefix = function _checkPropPrefix(property, element) {
var e = element || _tempDiv,
s = e.style,
- i = 5,
- a = "O,Moz,ms,Ms,Webkit".split(",");
+ i = 5;
if (property in s) {
return property;
@@ -3698,9 +3713,9 @@
property = property.charAt(0).toUpperCase() + property.substr(1);
- while (i-- && !(a[i] + property in s)) {}
+ while (i-- && !(_prefixes[i] + property in s)) {}
- return i < 0 ? null : (i === 3 ? "ms" : i >= 0 ? a[i] : "") + property;
+ return i < 0 ? null : (i === 3 ? "ms" : i >= 0 ? _prefixes[i] : "") + property;
},
_initCore = function _initCore() {
if (_windowExists$1()) {
@@ -3770,8 +3785,8 @@
}
return bounds && !bounds.width && !bounds.x && !bounds.y ? {
- x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]),
- y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]),
+ x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]) || 0,
+ y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]) || 0,
width: 0,
height: 0
} : bounds;
@@ -3887,7 +3902,7 @@
} else {
value = target.style[property];
- if (!value || value === "auto" || uncache) {
+ if (!value || value === "auto" || uncache || ~value.indexOf("calc(")) {
value = _getComputedProperty(target, property) || _getProperty(target, property);
}
}
@@ -3965,7 +3980,7 @@
}
if (startUnit !== endUnit) {
- startNum = _convertToUnit(target, prop, startValue, endUnit);
+ startNum = _convertToUnit(target, prop, startValue, endUnit) || 0;
}
pt._pt = {
@@ -3980,7 +3995,7 @@
pt.c = index < end.length ? end.substring(index, end.length) : "";
} else {
- pt.r = prop === "display" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;
+ pt.r = prop === "display" && end === "none" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;
}
if (_relExp.test(end)) {
@@ -4003,9 +4018,9 @@
y = split[1] || "50%";
if (x === "top" || x === "bottom" || y === "left" || y === "right") {
- split = x;
+ value = x;
x = y;
- y = split;
+ y = value;
}
split[0] = _keywordToPercent[x] || x;
@@ -4050,21 +4065,23 @@
target.removeAttribute("transform");
}
- delete clearTransforms.x;
+ clearTransforms.uncache = 1;
}
}
}
},
_specialProps = {
clearProps: function clearProps(plugin, target, property, endValue, tween) {
- var pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);
- pt.u = endValue;
- pt.pr = -10;
- pt.tween = tween;
+ if (tween.data !== "isFromStart") {
+ var pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);
+ pt.u = endValue;
+ pt.pr = -10;
+ pt.tween = tween;
- plugin._props.push(property);
+ plugin._props.push(property);
- return 1;
+ return 1;
+ }
}
},
_identity2DMatrix = [1, 0, 0, 1, 0, 0],
@@ -4158,8 +4175,8 @@
if (smooth || smooth !== false && cache.smooth) {
tx = xOrigin - xOriginOld;
ty = yOrigin - yOriginOld;
- cache.xOffset += tx * a + ty * c - tx;
- cache.yOffset += tx * b + ty * d - ty;
+ cache.xOffset = xOffsetOld + (tx * a + ty * c) - tx;
+ cache.yOffset = yOffsetOld + (tx * b + ty * d) - ty;
} else {
cache.xOffset = cache.yOffset = 0;
}
@@ -4169,6 +4186,7 @@
cache.smooth = !!smooth;
cache.origin = origin;
cache.originIsAbsolute = !!originIsAbsolute;
+ target.style[_transformOriginProp] = "0px 0px";
if (pluginToAddPropTweensTo) {
_addNonTweeningPT(pluginToAddPropTweensTo, cache, "xOrigin", xOriginOld, xOrigin);
@@ -4183,7 +4201,7 @@
_parseTransform = function _parseTransform(target, uncache) {
var cache = target._gsap || new GSCache(target);
- if ("x" in cache && !uncache) {
+ if ("x" in cache && !uncache && !cache.uncache) {
return cache;
}
@@ -4357,6 +4375,7 @@
cache.xOffset = cache.yOffset = 0;
cache.force3D = _config.force3D;
cache.renderTransform = cache.svg ? _renderSVGTransforms : _supports3D ? _renderCSSTransforms : _renderNon3DTransforms;
+ cache.uncache = 0;
return cache;
},
_firstTwoOnly = function _firstTwoOnly(value) {
@@ -4700,14 +4719,14 @@
if (!transformPropTween) {
cache = target._gsap;
smooth = vars.smoothOrigin !== false && cache.smooth;
- transformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache);
+ transformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache, 0, -1);
transformPropTween.dep = 1;
}
if (p === "scale") {
- this._pt = new PropTween(this._pt, target, "scale", startNum, relative ? relative * endNum : endNum - startNum, 0, 0, _setterScale);
- props.push("scale");
- continue;
+ this._pt = new PropTween(this._pt, cache, "scaleY", cache.scaleY, relative ? relative * endNum : endNum - cache.scaleY);
+ props.push("scaleY", p);
+ p += "X";
} else if (p === "transformOrigin") {
endValue = _convertKeywordsToPercentages(endValue);
@@ -4744,6 +4763,8 @@
continue;
}
+ } else if (!(p in style)) {
+ p = _checkPropPrefix(p) || p;
}
if (isTransformRelated || (endNum || endNum === 0) && (startNum || startNum === 0) && !_complexExp.test(endValue) && p in style) {
@@ -4765,7 +4786,7 @@
if (p in target) {
this.add(target, p, target[p], endValue, index, targets);
} else {
- _missingPlugin("Invalid " + p + " tween " + endValue + ". Missing plugin? gsap.registerPlugin()");
+ _missingPlugin(p, endValue);
continue;
}
@@ -4843,4 +4864,4 @@
Object.defineProperty(exports, '__esModule', { value: true });
-}));
+})));
diff --git a/dist/gsap.min.js b/dist/gsap.min.js
index 186b801..9c07dcf 100644
--- a/dist/gsap.min.js
+++ b/dist/gsap.min.js
@@ -1,11 +1,11 @@
-!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(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
/*!
- * GSAP 3.0.1
- * https://greensock.com
- *
- * @license Copyright 2008-2019, 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, [email protected]
- */function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function J(t){return(l=dt(t,at))&&ee}function K(t,e){return console.warn("Invalid",t,"tween of",e,"Missing plugin? gsap.registerPlugin()")}function L(t,e){return!e&&console.warn(t)}function M(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function N(){return 0}function W(t){var e,n,i=t[0];if(!r(i)&&!o(i))return G(t)?t:[t];if(!(e=(i._gsap||{}).harness)){for(n=ct.length;n--&&!ct[n].targetTest(i););e=ct[n]}for(n=t.length;n--;)t[n]._gsap||(t[n]._gsap=new Ft(t[n],e));return t}function X(t){return t._gsap||W(vt(t))[0]._gsap}function Y(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function Z(t,e){return(t=t.split(",")).forEach(e)||t}function $(t){return Math.round(1e4*t)/1e4}function _(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r}function aa(t,e,r){var n,i=p(t[1]),a=(i?2:1)+(e<2?0:1),o=t[a];return i&&(o.duration=t[1]),1===e?(o.runBackwards=1,o.immediateRender=s(o.immediateRender)):2===e&&(n=t[a-1],o.startAt=n,o.immediateRender=s(o.immediateRender)),o.parent=r,o}function ba(){var t,e,r=ot.length,n=ot.slice(0);for(ut={},t=ot.length=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function ca(t,e,r,n){ot.length&&ba(),t.render(e,r,n),ot.length&&ba()}function da(t){var e=parseFloat(t);return e||0===e?e:t}function ea(t){return t}function fa(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ga(t,e){for(var r in e)r in t||"duration"===r||"ease"===r||(t[r]=e[r])}function ia(t,e){for(var n in e)t[n]=r(e[n])?ia(t[n]||(t[n]={}),e[n]):e[n];return t}function ja(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n}function na(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,a=e._next;i?i._next=a:t[r]===e&&(t[r]=a),a?a._prev=i:t[n]===e&&(t[n]=i),e._dp=t,e._next=e._prev=e.parent=null}function oa(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function pa(t){for(var e=t;e;)e._dirty=1,e=e.parent;return t}function sa(t){var e;return t._repeat?(e=t.duration()+t._rDelay)*~~(t._tTime/e):0}function ta(t,e){return 0<e._ts?(t-e._start)*e._ts:(e._dirty?e.totalDuration():e._tDur)+(t-e._start)*e._ts}function ua(t,e,r){if(e.parent&&oa(e),e._start=r+e._delay,e._end=e._start+(e.totalDuration()/e._ts||0),function _addLinkedListItem(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var a,s=t[n];if(i)for(a=e[i];s&&s[i]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=s,e.parent=t}(t,e,"_first","_last",t._sort?"_start":0),(t._recent=e)._time||!e._dur&&e._initted){var n=(t.rawTime()-e._start)*e._ts;(!e._dur||mt(0,e.totalDuration(),n)-e._tTime>B)&&e.render(n,!0)}if(pa(t),t._dp&&t._time>=t._dur&&t._ts&&t._dur<t.duration())for(var i=t;i._dp;)i.totalTime(i._tTime,!0),i=i._dp;return t}function va(t,e,r,n){return It(t,e),t._initted?!r&&t._pt&&t.vars.lazy?(ot.push(t),t._lazy=[e,n],1):void 0:1}function ya(t){if(t instanceof Et)return pa(t);var e=t._repeat;return t._tDur=e?e<0?1e20:$(t._dur*(e+1)+t._rDelay*e):t._dur,pa(t.parent),t}function Aa(t,e){var r,i,a=t.labels,s=t._recent||_t,o=t.duration()>=D?s.endTime(!1):t._dur;return n(e)&&(isNaN(e)||e in a)?"<"===(r=e.charAt(0))||">"===r?("<"===r?s._start:s.endTime(0<=s._repeat))+(parseFloat(e.substr(1))||0):(r=e.indexOf("="))<0?(e in a||(a[e]=o),a[e]):(i=+(e.charAt(r-1)+e.substr(r+1)),1<r?Aa(t,e.substr(0,r-1))+i:o+i):null==e?o:+e}function Ba(t,e){return t||0===t?e(t):e}function Da(t){return(t+"").substr((parseFloat(t)+"").length)}function Ga(t){return r(t)&&"length"in t&&t.length-1 in t&&r(t[0])&&t!==i}function Ja(t){if(o(t))return t;var d=r(t)?t:{each:t},_=Dt(d.ease),m=d.from||0,g=parseFloat(d.base)||0,v={},e=0<m&&m<1,y=isNaN(m)||e,b=d.axis,w=m,T=m;return n(m)?w=T={center:.5,edges:.5,end:1}[m]||0:!e&&y&&(w=m[0],T=m[1]),function(t,e,r){var n,i,a,s,o,u,h,l,f,c=(r||d).length,p=v[c];if(!p){if(!(f="auto"===d.grid?0:(d.grid||[1,D])[1])){for(h=-D;h<(h=r[f++].getBoundingClientRect().left)&&f<c;);f--}for(p=v[c]=[],n=y?Math.min(f,c)*w-.5:m%f,i=y?c*T/f-.5:m/f|0,l=D,u=h=0;u<c;u++)a=u%f-n,s=i-(u/f|0),p[u]=o=b?Math.abs("y"===b?s:a):j(a*a+s*s),h<o&&(h=o),o<l&&(l=o);p.max=h-l,p.min=l,p.v=c=(parseFloat(d.amount)||parseFloat(d.each)*(c<f?c-1:b?"y"===b?c/f:f:Math.max(f,c/f))||0)*("edges"===m?-1:1),p.b=c<0?g-c:g,p.u=Da(d.amount||d.each)||0,_=_&&c<0?Ct(_):_}return c=(p[t]-p.min)/p.max||0,$(p.b+(_?_(c):c)*p.v)+p.u}}function Ka(e){var r=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return~~(Math.round(parseFloat(t)/e)*e*r)/r+(p(t)?0:Da(t))}}function La(u,t){var h,l,e=G(u);return!e&&r(u)&&(h=e=u.radius||D,u=vt(u.values),(l=!p(u[0]))&&(h*=h)),Ba(t,e?function(t){for(var e,r,n=parseFloat(l?t.x:t),i=parseFloat(l?t.y:0),a=D,s=0,o=u.length;o--;)(e=l?(e=u[o].x-n)*e+(r=u[o].y-i)*r:Math.abs(u[o]-n))<a&&(a=e,s=o);return s=!h||a<=h?u[s]:t,l||s===t||p(t)?s:s+Da(t)}:Ka(u))}function Ma(t,e,r,n){return Ba(G(t)?!e:!n,function(){return G(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&~~(Math.round((t+Math.random()*(e-t))/r)*r*n)/n})}function Qa(e,r,t){return Ba(t,function(t){return e[~~r(t)]})}function Ta(t){for(var e,r,n,i,a=0,s="";~(e=t.indexOf("random(",a));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?it:H),s+=t.substr(a,e-a)+Ma(i?r:+r[0],+r[1],+r[2]||1e-5),a=n+1;return s+t.substr(a,t.length-a)}function Wa(t,e,r){var n,i,a,s=t.labels,o=D;for(n in s)(i=s[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(a=n,o=i);return a}function Ya(t){return oa(t),t.progress()<1&&bt(t,"onInterrupt"),t}function bb(t,e,r){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*wt+.5|0}function cb(t,e){var r,n,i,a,s,o,u,h,l,f,c=t?p(t)?[t>>16,t>>8&wt,t&wt]:0:Tt.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Tt[t])c=Tt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(r=t.charAt(1))+r+(n=t.charAt(2))+n+(i=t.charAt(3))+i),c=[(t=parseInt(t.substr(1),16))>>16,t>>8&wt,t&wt];else if("hsl"===t.substr(0,3))if(c=f=t.match(H),e){if(~t.indexOf("="))return t.match(tt)}else a=+c[0]%360/360,s=+c[1]/100,r=2*(o=+c[2]/100)-(n=o<=.5?o*(s+1):o+s-o*s),3<c.length&&(c[3]*=1),c[0]=bb(a+1/3,r,n),c[1]=bb(a,r,n),c[2]=bb(a-1/3,r,n);else c=t.match(H)||Tt.transparent;c=c.map(Number)}return e&&!f&&(r=c[0]/wt,n=c[1]/wt,i=c[2]/wt,o=((u=Math.max(r,n,i))+(h=Math.min(r,n,i)))/2,u===h?a=s=0:(l=u-h,s=.5<o?l/(2-u-h):l/(u+h),a=u===r?(n-i)/l+(n<i?6:0):u===n?(i-r)/l+2:(r-n)/l+4,a*=60),c[0]=a+.5|0,c[1]=100*s+.5|0,c[2]=100*o+.5|0),c}function db(t,e){var r,n,i,a=(t+"").match(xt),s=0,o="";if(!a)return t;for(r=0;r<a.length;r++)n=a[r],s+=(i=t.substr(s,t.indexOf(n,s)-s)).length+n.length,3===(n=cb(n,e)).length&&n.push(1),o+=i+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return o+t.substr(s)}function gb(t){var e,r=t.join(" ");xt.lastIndex=0,xt.test(r)&&(e=kt.test(r),t[0]=db(t[0],e),t[1]=db(t[1],e))}function ob(t){var e=(t+"").split("("),r=Ot[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,n,i={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[s]=isNaN(n)?n.replace(St,"").trim():+n,s=r.substr(e+1).trim();return i}(e[1])]:rt.exec(t)[1].split(",").map(da)):Ot._CE&&Pt.test(t)?Ot._CE("",t):r}function rb(t,e,r,n){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===n&&(n=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:r,easeInOut:n};return Z(t,function(t){for(var e in Ot[t]=at[t]=a,Ot[i=t.toLowerCase()]=r,a)Ot[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ot[t+"."+e]=a[e]}),a}function sb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function tb(r,t,e){function sk(t){return 1===t?1:n*Math.pow(2,-10*t)*Q((t-a)*i)+1}var n=1<=t?t:1,i=(e||(r?.3:.45))/(t<1?t:1),a=i/F*(Math.asin(1/n)||0),s="out"===r?sk:"in"===r?function(t){return 1-sk(1-t)}:sb(sk);return i=F/i,s.config=function(t,e){return tb(r,t,e)},s}function ub(e,r){function Ak(t){return--t*t*((r+1)*t+r)+1}void 0===r&&(r=1.70158);var t="out"===e?Ak:"in"===e?function(t){return 1-Ak(1-t)}:sb(Ak);return t.config=function(t){return ub(e,t)},t}var R,i,a,h,l,f,d,c,m,g,v,y,b,w,T,x,k,A,O,P,S,C,U={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},E={duration:.5,overwrite:!1,delay:0},D=1e8,B=1/D,F=2*Math.PI,z=F/4,I=0,j=Math.sqrt,V=Math.cos,Q=Math.sin,G=Array.isArray,H=/(?:-?\.?\d|\.)+/gi,tt=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,et=/[-+=\.]*\d+(?:\.|e-|e)*\d*/gi,rt=/\(([^()]+)\)/i,nt=/[\+-]=-?[\.\d]+/,it=/[#\-+\.]*\b[a-z\d-=+%.]+/gi,at={},st={},ot=[],ut={},ht={},lt={},ft=30,ct=[],pt="onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",dt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},_t={_start:0,endTime:N},mt=function _clamp(t,e,r){return r<t?t:e<r?e:r},gt=[].slice,vt=function toArray(t,e){return!n(t)||e||!a&&Mt()?G(t)?function _flatten(t,r,i){return void 0===i&&(i=[]),t.forEach(function(t){var e;return n(t)&&!r||Ga(t)?(e=i).push.apply(e,vt(t)):i.push(t)})||i}(t,e):Ga(t)?gt.call(t,0):t?[t]:[]:gt.call(h.querySelectorAll(t),0)},yt=function mapRange(e,t,r,n,i){var a=t-e,s=n-r;return Ba(i,function(t){return r+(t-e)/a*s})},bt=function _callback(t,e,r){var n,i,a=t.vars,s=a[e];if(s)return n=a[e+"Params"],i=a.callbackScope||t,r&&ot.length&&ba(),n?s.apply(i,n):s.call(i,t)},wt=255,Tt={aqua:[0,wt,wt],lime:[0,wt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,wt],navy:[0,0,128],white:[wt,wt,wt],olive:[128,128,0],yellow:[wt,wt,0],orange:[wt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[wt,0,0],pink:[wt,192,203],cyan:[0,wt,wt],transparent:[wt,wt,wt,0]},xt=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in Tt)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),kt=/hsl[a]?\(/,At=(b=Date.now,w=500,T=33,x=b(),k=x,O=A=1/60,y={time:0,frame:0,tick:function tick(){yj(!0)},wake:function wake(){f&&(!a&&t()&&(i=a=window,h=i.document||{},at.gsap=ee,(i.gsapVersions||(i.gsapVersions=[])).push(ee.version),J(l||i.GreenSockGlobals||!i.gsap&&i||{}),v=i.requestAnimationFrame),m&&y.sleep(),g=v||function(t){return setTimeout(t,1e3*(O-y.time)+1|0)},c=1,yj(2))},sleep:function sleep(){(v?i.cancelAnimationFrame:clearTimeout)(m),c=0,g=N},lagSmoothing:function lagSmoothing(t,e){w=t||1e8,T=Math.min(e,w,0)},fps:function fps(t){A=1/(t||60),O=y.time+A},add:function add(t){P.indexOf(t)<0&&P.push(t),Mt()},remove:function remove(t){var e;~(e=P.indexOf(t))&&P.splice(e,1)},_listeners:P=[]}),Mt=function _wake(){return!c&&At.wake()},Ot={},Pt=/^[\d.\-M][\d.\-,\s]/,St=/["']/g,Ct=function _invertEase(e){return function(t){return 1-e(1-t)}},Dt=function _parseEase(t,e){return t&&(o(t)?t:Ot[t]||ob(t))||e};function yj(e){var t,r,n=b()-k,i=!0===e;w<n&&(x+=n-T),k+=n,y.time=(k-x)/1e3,(0<(t=y.time-O)||i)&&(y.frame++,O+=t+(A<=t?.004:A-t),r=1),i||(m=g(yj)),r&&P.forEach(function(t){return t(y.time,n,y.frame,e)})}function Rk(t){return t<C?S*t*t:t<.7272727272727273?S*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?S*(t-=2.25/2.75)*t+.9375:S*Math.pow(t-2.625/2.75,2)+.984375}Z("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;rb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Ot.Linear.easeNone=Ot.none=Ot.Linear.easeIn,rb("Elastic",tb("in"),tb("out"),tb()),S=7.5625,C=1/2.75,rb("Bounce",function(t){return 1-Rk(1-t)},Rk),rb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),rb("Circ",function(t){return-(j(1-t*t)-1)}),rb("Sine",function(t){return 1-V(t*z)}),rb("Back",ub("in"),ub("out"),ub()),Ot.SteppedEase=Ot.steps=at.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*mt(0,.99999999,t)|0)+i)*r}}},E.ease=Ot["quad.out"];var Bt,Ft=function GSCache(t,e){this.id=I++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:Y,this.set=e?e.getSetter:jt},Rt=((Bt=Animation.prototype).delay=function delay(t){return t||0===t?(this._delay=t,this):this._delay},Bt.duration=function duration(t){var e=arguments.length,r=this._repeat,n=0<r?r*((e?t:this._dur)+this._rDelay):0;return e?this.totalDuration(r<0?t:t+n):this.totalDuration()&&this._dur},Bt.totalDuration=function totalDuration(t){if(!arguments.length)return this._tDur;var e=this._repeat,r=(t||this._rDelay)&&e<0;return this._tDur=r?1e20:t,this._dur=r?t:(t-e*this._rDelay)/(e+1),this._dirty=0,pa(this.parent),this},Bt.totalTime=function totalTime(t,e){if(Mt(),!arguments.length)return this._tTime;var r,n=this.parent||this._dp;if(n&&n.smoothChildTiming&&this._ts){for(r=this._start,this._start=n._time-(0<this._ts?t/this._ts:((this._dirty?this.totalDuration():this._tDur)-t)/-this._ts),this._end+=this._start-r,n._dirty||pa(n);n.parent;)n.parent._time!==n._start+(0<n._ts?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;this.parent||ua(this._dp,this,this._start-this._delay)}return this._tTime===t&&this._dur||ca(this,t,e),this},Bt.time=function time(t,e){return arguments.length?this.totalTime(t+sa(this),e):this._time},Bt.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._tTime/this.totalDuration()},Bt.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*t+sa(this),e):this.duration()?this._time/this._dur:this.ratio},Bt.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?1+~~(this._tTime/r):1},Bt.timeScale=function timeScale(t){var e=this._ts;return arguments.length?e?(this._end=this._start+this._tDur/(this._ts=t||B),function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this).totalTime(this._tTime,!0)):(this._pauseTS=t,this):e||this._pauseTS},Bt.paused=function paused(t){var e=!this._ts;return arguments.length?(e!==t&&(t?(this._pauseTS=this._ts,this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(this._ts=this._pauseTS,t=this._tTime||this._pTime,1===this.progress()&&(this._tTime-=B),this.totalTime(t,!0))),this):e},Bt.startTime=function startTime(t){return arguments.length?(this.parent&&this.parent._sort&&ua(this.parent,this,t-this._delay),this):this._start},Bt.endTime=function endTime(t){return this._start+(s(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},Bt.rawTime=function rawTime(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?ta(e.rawTime(t),this):this._tTime:this._tTime},Bt.repeat=function repeat(t){return arguments.length?(this._repeat=t,ya(this)):this._repeat},Bt.repeatDelay=function repeatDelay(t){return arguments.length?(this._rDelay=t,ya(this)):this._rDelay},Bt.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},Bt.seek=function seek(t,e){return this.totalTime(Aa(this,t),s(e))},Bt.restart=function restart(t,e){return this.play().totalTime(t?-this._delay:0,s(e))},Bt.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},Bt.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},Bt.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},Bt.resume=function resume(){return this.paused(!1)},Bt.reversed=function reversed(t){var e=this._ts||this._pauseTS;return arguments.length?(t!==this.reversed()&&(this[this._ts?"_ts":"_pauseTS"]=Math.abs(e)*(t?-1:1),this.totalTime(this._tTime,!0)),this):e<0},Bt.invalidate=function invalidate(){return this._initted=0,this},Bt.isActive=function isActive(){var t,e=this.parent||this._dp,r=this._start;return!e||this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-B},Bt.eventCallback=function eventCallback(t,e,r){var n=this.vars;return 1<arguments.length?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},Bt.then=function then(e){var r=this;return void 0===e&&(e=N),new Promise(function(t){r._prom=function(){e(r),t()}})},Bt.kill=function kill(){Ya(this)},Animation);function Animation(t,e){var r=t.parent||R;this.vars=t,this._dur=this._tDur=+t.duration||0,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase,ya(this)),this._ts=1,this.data=t.data,c||At.wake(),r&&ua(r,this,e||0===e?e:r._time),t.reversed&&this.reversed(!0),t.paused&&this.paused(!0)}fa(Rt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:0,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-B,_prom:0});var Et=function(i){function Timeline(t,e){var r;return void 0===t&&(t={}),(r=i.call(this,t,e)||this).labels={},r.smoothChildTiming=s(t.smoothChildTiming),r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=s(t.sortChildren),r}_inheritsLoose(Timeline,i);var t=Timeline.prototype;return t.to=function to(t,e,r,n){return new Xt(t,aa(arguments,0,this),Aa(this,p(e)?n:r)),this},t.from=function from(t,e,r,n){return new Xt(t,aa(arguments,1,this),Aa(this,p(e)?n:r)),this},t.fromTo=function fromTo(t,e,r,n,i){return new Xt(t,aa(arguments,2,this),Aa(this,p(e)?i:n)),this},t.set=function set(t,e,r){return e.duration=0,e.parent=this,e.repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Xt(t,e,Aa(this,r)),this},t.call=function call(t,e,r){return ua(this,Xt.delayedCall(0,t,e),Aa(this,r))},t.staggerTo=function staggerTo(t,e,r,n,i,a,s){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Xt(t,r,Aa(this,i)),this},t.staggerFrom=function staggerFrom(t,e,r,n,i,a,o){return r.runBackwards=1,r.immediateRender=s(r.immediateRender),this.staggerTo(t,e,r,n,i,a,o)},t.staggerFromTo=function staggerFromTo(t,e,r,n,i,a,o,u){return n.startAt=r,n.immediateRender=s(n.immediateRender),this.staggerTo(t,e,n,i,a,o,u)},t.render=function render(t,e,r){var n,i,a,s,o,u,h,l,f,c,p,d=this._time,_=this._dirty?this.totalDuration():this._tDur,m=this._dur,g=_-B<t&&0<=t&&this!==R?_:t<B?0:t,v=this._zTime<0!=t<0&&this._initted;if(g!==this._tTime||r||v){if(v&&(m||(d=this._zTime),!t&&e||(this._zTime=t)),n=g,f=this._start,u=0===(l=this._ts),d!==this._time&&m&&(n+=this._time-d),this._repeat&&(p=this._yoyo,o=m+this._rDelay,(m<(n=$(g%o))||_===g)&&(n=m),(s=~~(g/o))&&s===g/o&&(n=m,s--),(c=~~(this._tTime/o))&&c===this._tTime/o&&c--,p&&1&s&&(n=m-n),s!==c&&!this._lock)){var y=p&&1&c,b=y===(p&&1&s);if(s<c&&(y=!y),d=y?0:m,this._lock=1,this.render(d,e,!m)._lock=0,!e&&this.parent&&bt(this,"onRepeat"),d!==this._time||u!=!this._ts)return this;if(b&&(this._lock=2,d=y?m+1e-4:-1e-4,this.render(d,!0)),this._lock=0,!this._ts&&!u)return this}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var n;if(e<r)for(n=t._first;n&&n._start<=r;){if(!n._dur&&"isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if(!n._dur&&"isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,$(d),$(n)))&&(g-=n-(n=h._start)),this._tTime=g,this._time=n,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1),d||!n||e||bt(this,"onStart"),d<=n&&0<=t)for(i=this._first;i;){if(a=i._next,(i._act||n>=i._start)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(0<i._ts?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!u){h=0;break}}i=a}else{i=this._last;for(var w=t<0?t:n;i;){if(a=i._prev,(i._act||w<=i._end)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(0<i._ts?(w-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(w-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!u){h=0;break}}i=a}}if(h&&!e&&(this.pause(),h.render(d<=n?0:-B)._zTime=d<=n?1:-1,this._ts))return this._start=f,this.render(t,e,r);this._onUpdate&&!e&&bt(this,"onUpdate",!0),(g===_||!g&&this._ts<0)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||(!n||_>=this.totalDuration())&&(!t&&m||oa(this,1),e||t<0&&!d||(bt(this,g===_?"onComplete":"onReverseComplete",!0),this._prom&&g===_&&this._prom())))}return this},t.add=function add(t,e){var r=this;if(p(e)||(e=Aa(this,e)),!(t instanceof Rt)){if(G(t))return t.forEach(function(t){return r.add(t,e)}),pa(this);if(n(t))return this.addLabel(t,e);if(!o(t))return this;t=Xt.delayedCall(0,t)}return this!==t?ua(this,t,e):this},t.getChildren=function getChildren(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-D);for(var i=[],a=this._first;a;)a._start>=n&&(a instanceof Xt?e&&i.push(a):(r&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,r)))),a=a._next;return i},t.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},t.remove=function remove(t){return n(t)?this.removeLabel(t):o(t)?this.killTweensOf(t):(na(this,t),t===this._recent&&(this._recent=this._last),pa(this))},t.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,this.parent||this._dp||!this._ts||(this._start=At.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts)),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},t.addLabel=function addLabel(t,e){return this.labels[t]=Aa(this,e),this},t.removeLabel=function removeLabel(t){return delete this.labels[t],this},t.addPause=function addPause(t,e,r){var n=Xt.delayedCall(0,e||N,r);return n.data="isPause",this._hasPause=1,ua(this,n,Aa(this,t))},t.removePause=function removePause(t){var e=this._first;for(t=Aa(this,t);e;)e._start===t&&"isPause"===e.data&&oa(e),e=e._next},t.killTweensOf=function killTweensOf(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)n[i].kill(t,e);return this},t.getTweensOf=function getTweensOf(t,e){for(var r,n=[],i=vt(t),a=this._first;a;)a instanceof Xt?!_(a._targets,i)||e&&!a.isActive()||n.push(a):(r=a.getTweensOf(i,e)).length&&n.push.apply(n,r),a=a._next;return n},t.tweenTo=function tweenTo(t,e){var r=this,n=Aa(r,t),i=e&&e.startAt,a=Xt.to(r,fa({ease:"none",lazy:!1,time:n,duration:Math.abs(n-(i&&"time"in i?i.time:r._time))/r.timeScale()||B,onStart:function onStart(){r.pause();var t=Math.abs(n-r._time)/r.timeScale();a._dur!==t&&(a._dur=t,a.render(a._time,!0,!0)),e&&e.onStart&&e.onStart.apply(a,e.onStartParams||[])}},e));return a},t.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,fa({startAt:{time:Aa(this,t)}},r))},t.recent=function recent(){return this._recent},t.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),Wa(this,Aa(this,t))},t.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),Wa(this,Aa(this,t),1)},t.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+B)},t.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,a=this.labels;i;)i._start>=r&&(i._start+=t),i=i._next;if(e)for(n in a)a[n]>=r&&(a[n]+=t);return pa(this)},t.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return i.prototype.invalidate.call(this)},t.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._time=this._tTime=0,t&&(this.labels={}),pa(this)},t.totalDuration=function totalDuration(t){var e,r,n=0,i=this,a=i._last,s=D,o=i._repeat,u=o*i._rDelay||0,h=o<0;if(arguments.length)return h?i:i.timeScale(i.totalDuration()/t);if(i._dirty){for(;a;)e=a._prev,a._dirty&&a.totalDuration(),a._start>s&&i._sort&&a._ts&&!i._lock?(i._lock=1,ua(i,a,a._start-a._delay),i._lock=0):s=a._start,a._start<0&&a._ts&&(n-=a._start,(!i.parent&&!i._dp||i.parent&&i.parent.smoothChildTiming)&&(i._start+=a._start/i._ts,i._time-=a._start,i._tTime-=a._start),i.shiftChildren(-a._start,!1,-D),s=0),n<(r=a._end=a._start+a._tDur/Math.abs(a._ts||a._pauseTS))&&a._ts&&(n=$(r)),a=e;i._dur=i===R&&i._time>n?i._time:Math.min(D,n),i._tDur=h&&(i._dur||u)?1e20:Math.min(D,n*(o+1)+u),i._end=i._start+(i._tDur/Math.abs(i._ts||i._pauseTS)||0),i._dirty=0}return i._tDur},Timeline.updateRoot=function updateRoot(t){if(R._ts&&ca(R,ta(t,R)),At.frame>=ft){ft+=U.autoSleep||120;var e=R._first;if((!e||!e._ts)&&U.autoSleep&&At._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||At.sleep()}}},Timeline}(Rt);fa(Et.prototype,{_lock:0,_hasPause:0,_forcing:0});function Bb(t,e,i,a,s,u){var h,l,f,c;if(ht[t]&&!1!==(h=new ht[t]).init(s,h.rawVars?e[t]:function _processVars(t,e,i,a,s){if(o(t)&&(t=Yt(t,s,e,i,a)),!r(t)||t.style&&t.nodeType||G(t))return n(t)?Yt(t,s,e,i,a):t;var u,h={};for(u in t)h[u]=Yt(t[u],s,e,i,a);return h}(e[t],a,s,u,i),i,a,u)&&(i._pt=l=new te(i._pt,s,t,0,1,h.render,h,0,h.priority),i!==d))for(f=i._ptLookup[i._targets.indexOf(s)],c=h._props.length;c--;)f[h._props[c]]=l;return h}var zt,Lt=function _addPropTween(t,e,r,i,a,s,u,h,l){o(i)&&(i=i(a||0,t,s));var f,c=t[e],p="get"!==r?r:o(c)?l?t[e.indexOf("set")||!o(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():c,d=o(c)?l?qt:Ut:Zt;if(n(i)&&(~i.indexOf("random(")&&(i=Ta(i)),"="===i.charAt(1)&&(i=parseFloat(p)+parseFloat(i.substr(2))*("-"===i.charAt(0)?-1:1)+Da(p))),p!==i)return isNaN(p+i)?(c||e in t||K(e,i),function _addComplexStringPropTween(t,e,r,n,i,a,s){var o,u,h,l,f,c,p,d,_=new te(this._pt,t,e,0,1,Wt,null,i),m=0,g=0;for(_.b=r,_.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=Ta(n)),a&&(a(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match(et)||[];o=et.exec(n);)l=o[0],f=n.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(c=parseFloat(u[g-1]),_._pt={_next:_._pt,p:f||1===g?f:",",s:c,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-c,m:h&&h<4?Math.round:0},m=et.lastIndex);return _.c=m<n.length?n.substring(m,n.length):"",_.fp=s,(nt.test(n)||p)&&(_.e=0),this._pt=_}.call(this,t,e,p,i,d,h||U.stringFilter,l)):(f=new te(this._pt,t,e,+p||0,i-(p||0),"boolean"==typeof c?Qt:Vt,0,d),l&&(f.fp=l),u&&f.modifier(u,this,t),this._pt=f)},It=function _initTween(t,e){var r,n,i,a,o,u,h,l,f,c,p,d,_=t.vars,m=_.ease,g=_.startAt,v=_.immediateRender,y=_.lazy,b=_.onUpdate,w=_.onUpdateParams,T=_.callbackScope,x=_.runBackwards,k=_.yoyoEase,A=_.keyframes,M=_.autoRevert,O=t._dur,P=t._startAt,S=t._targets,C=t.parent,D=C&&"nested"===C.data?C.parent._targets:S,B="auto"===t._overwrite,F=t.timeline;if(!F||A&&m||(m="none"),t._ease=Dt(m,E.ease),t._yEase=k?Ct(Dt(!0===k?m:k,E.ease)):0,k&&t._yoyo&&!t._repeat&&(k=t._yEase,t._yEase=t._ease,t._ease=k),!F){if(P&&P.render(-1,!0).kill(),g){if(oa(t._startAt=Xt.set(S,fa({data:"isStart",overwrite:!1,parent:C,immediateRender:!0,lazy:s(y),startAt:null,delay:0,onUpdate:b,onUpdateParams:w,callbackScope:T,stagger:0},g))),v)if(0<e)M||(t._startAt=0);else if(O)return}else if(x&&O)if(P)M||(t._startAt=0);else if(e&&(v=!1),oa(t._startAt=Xt.set(S,dt(ja(_,st),{overwrite:!1,data:"isFromStart",lazy:v&&s(y),immediateRender:v,stagger:0,parent:C}))),v){if(!e)return}else _initTween(t._startAt,e),v&&(M||(t._startAt=0));for(r=ja(_,st),d=(l=S[t._pt=0]?X(S[0]).harness:0)&&_[l.prop],n=0;n<S.length;n++){if(h=(o=S[n])._gsap||W(S)[n]._gsap,t._ptLookup[n]=c={},ut[h.id]&&ba(),p=D===S?n:D.indexOf(o),l&&!1!==(f=new l).init(o,d||r,t,p,D)&&(t._pt=a=new te(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){c[t]=a}),f.priority&&(u=1)),!l||d)for(i in r)ht[i]&&(f=Bb(i,r,t,p,o,D))?f.priority&&(u=1):c[i]=a=Lt.call(t,o,i,"get",r[i],p,D,0,_.stringFilter);t._op&&t._op[n]&&t.kill(o,t._op[n]),B&&(zt=t,R.killTweensOf(o,c,!0),zt=0),t._pt&&(s(y)&&O||y&&!O)&&(ut[h.id]=1)}u&&Ht(t),t._onInit&&t._onInit(t)}t._from=!F&&!!_.runBackwards,t._onUpdate=b,t._initted=1},Yt=function _parseFuncOrString(t,e,r,i,a){return o(t)?t.call(e,r,i,a):n(t)&&~t.indexOf("random(")?Ta(t):t},Nt=pt+",repeat,repeatDelay,yoyo,yoyoEase",$t=(Nt+",id,stagger,delay,duration").split(","),Xt=function(k){function Tween(t,e,n){var i;"number"==typeof e&&(n.duration=e,e=n,n=null);var a,o,h,l,f,c,p,d,_=(i=k.call(this,function _inheritDefaults(t){var e=t.parent||R,r=t.keyframes?ga:fa;if(s(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent;return t}(e),n)||this).vars,m=_.duration,g=_.delay,v=_.immediateRender,y=_.stagger,b=_.overwrite,w=_.keyframes,T=_.defaults,x=vt(t);if(i._targets=x.length?W(x):L("GSAP target "+t+" not found. https://greensock.com",!U.nullTargetWarn)||[{}],i._ptLookup=[],i._overwrite=b,w||y||u(m)||u(g)){if(e=i.vars,(a=i.timeline=new Et({data:"nested",defaults:T||{}})).kill(),a.parent=_assertThisInitialized(i),w)fa(a.vars.defaults,{ease:"none"}),w.forEach(function(t){return a.to(x,t,">")});else{if(l=x.length,p=y?Ja(y):N,r(y))for(f in y)~Nt.indexOf(f)&&((d=d||{})[f]=y[f]);for(o=0;o<l;o++){for(f in h={},e)$t.indexOf(f)<0&&(h[f]=e[f]);h.stagger=0,d&&dt(h,d),e.yoyoEase&&!e.repeat&&(h.yoyoEase=e.yoyoEase),c=x[o],h.duration=+Yt(m,_assertThisInitialized(i),o,c,x),h.delay=(+Yt(g,_assertThisInitialized(i),o,c,x)||0)-i._delay,!y&&1===l&&h.delay&&(i._delay=g=h.delay,i._start+=g,h.delay=0),a.to(c,h,p(o,c,x))}m=g=0}m||i.duration(m=a.duration())}else i.timeline=0;return!0===b&&(zt=_assertThisInitialized(i),R.killTweensOf(x),zt=0),(v||!m&&!w&&i._start===i.parent._time&&s(v)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(i))&&"nested"!==i.parent.data)&&(i._tTime=-B,i.render(Math.max(0,-g))),i}_inheritsLoose(Tween,k);var t=Tween.prototype;return t.render=function render(t,e,r){var n,i,a,s,o,u,h,l,f,c=this._time,p=this._tDur,d=this._dur,_=p-B<t&&0<=t?p:t<B?0:t;if(d){if(_!==this._tTime||r||this._startAt&&this._zTime<0!=t<0){if(n=_,l=this.timeline,this._repeat){if(s=d+this._rDelay,d<(n=$(_%s))&&(n=d),(a=~~(_/s))&&a===_/s&&(n=d,a--),(u=this._yoyo&&1&a)&&(f=this._yEase,n=d-n),(o=~~(this._tTime/s))&&o===this._tTime/s&&o--,n===c&&!r)return this;a!==o&&this.vars.repeatRefresh&&!this._lock&&(this._lock=1,this.render(s*a,!0).invalidate()._lock=0)}if(!this._initted&&va(this,n,r,e))return this;for(this._tTime=_,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(n/d),this._from&&(this.ratio=h=1-h),c||!n||e||bt(this,"onStart"),i=this._pt;i;)i.r(h,i.d),i=i._next;l&&l.render(t<0?t:!n&&u?-B:l._dur*h,e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),bt(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&bt(this,"onRepeat"),_!==p&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,r),!t&&d||!(_||this._ts<0)||oa(this,1),e||t<0&&!c||(bt(this,_===p?"onComplete":"onReverseComplete",!0),this._prom&&_===p&&this._prom()))}}else!function _renderZeroDurationTween(t,e,r,n){var i,a,s,o=t._zTime<0?0:1,u=e<0?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&((a=~~((l=mt(0,t._tDur,e))/h))&&a===l/h&&a--,(s=~~(t._tTime/h))&&s===t._tTime/h&&s--,a!==s&&(o=1-u,t.vars.repeatRefresh&&t.invalidate())),(t._initted||!va(t,e,n,r))&&(u!==o||n)){for(r&&!e||(t._zTime=e),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,r||bt(t,"onStart"),i=t._pt;i;)i.r(u,i.d),i=i._next;!u&&t._startAt&&!t._onUpdate&&t._start&&t._startAt.render(e,!0,n),t._onUpdate&&!r&&bt(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&bt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(t.ratio&&oa(t,1),r||(bt(t,t.ratio?"onComplete":"onReverseComplete",!0),t._prom&&t.ratio&&t._prom()))}}(this,t,e,r);return this},t.targets=function targets(){return this._targets},t.invalidate=function invalidate(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),k.prototype.invalidate.call(this)},t.kill=function kill(t,e){if(void 0===e&&(e="all"),zt===this)return zt;if(!(t||e&&"all"!==e)&&this.parent)return this._lazy=0,Ya(this);if(this.timeline)return this.timeline.killTweensOf(t,e),this;var r,i,a,s,o,u,h,l=this._targets,f=t?vt(t):l,c=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(l,f))return Ya(this);for(r=this._op=this._op||[],"all"!==e&&(n(e)&&(o={},Z(e,function(t){return o[t]=1}),e=o),e=function _addAliasesToVars(t,e){var r,n,i,a,s=t[0]?X(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(n in r=dt({},e),o)if(n in r)for(i=(a=o[n].split(",")).length;i--;)r[a[i]]=r[n];return r}(l,e)),h=l.length;h--;)if(~f.indexOf(l[h]))for(o in i=c[h],"all"===e?(r[h]=e,s=i,a={}):(a=r[h]=r[h]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||(na(this,u,"_pt"),delete i[o])),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&p&&Ya(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return new Tween(t,aa(arguments,1))},Tween.delayedCall=function delayedCall(t,e,r,n){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},Tween.fromTo=function fromTo(t,e,r){return new Tween(t,aa(arguments,2))},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return R.killTweensOf(t,e,r)},Tween}(Rt);fa(Xt.prototype,{_targets:[],_initted:0,_lazy:0,_startAt:0,_op:0,_onInit:0}),Z("staggerTo,staggerFrom,staggerFromTo",function(r){Xt[r]=function(){var t=new Et,e=vt(arguments);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function Mb(t,e,r){return t.setAttribute(e,r)}function Ub(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)}var Zt=function _setterPlain(t,e,r){return t[e]=r},Ut=function _setterFunc(t,e,r){return t[e](r)},qt=function _setterFuncWithParam(t,e,r,n){return t[e](n.fp,r)},jt=function _getSetter(t,e){return o(t[e])?Ut:q(t[e])&&t.setAttribute?Mb:Zt},Vt=function _renderPlain(t,e){return e.set(e.t,e.p,~~(1e4*(e.s+e.c*t))/1e4,e)},Qt=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Wt=function _renderComplexString(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):~~(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},Gt=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Jt=function _addPluginModifier(t,e,r,n){for(var i,a=this._pt;a;)i=a._next,a.p===n&&a.modifier(t,e,r),a=i},Kt=function _killPropTweensOf(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?na(this,n,"_pt"):n.dep||(e=1),n=r;return!e},Ht=function _sortPropTweensByPriority(t){for(var e,r,n,i,a=t._pt;a;){for(e=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:i)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:i=a,a=e}t._pt=n},te=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=Ub,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,n,i,a,s,o,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=a||Vt,this.d=s||this,this.set=o||Zt,this.pr=u||0,(this._next=t)&&(t._prev=this)}Z(pt+",parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert",function(t){st[t]=1,"on"===t.substr(0,2)&&(st[t+"Params"]=1)}),at.TweenMax=at.TweenLite=Xt,at.TimelineLite=at.TimelineMax=Et,R=new Et({sortChildren:!1,defaults:E,autoRemoveChildren:!0,id:"root"}),U.stringFilter=gb;var ee={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=o(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:N,render:Gt,add:Lt,kill:Kt,modifier:Jt,rawVars:0},a={targetTest:0,get:0,getSetter:jt,aliases:{},register:0};if(Mt(),t!==n){if(ht[e])return;fa(n,fa(ja(t,i),a)),dt(n.prototype,dt(i,ja(t,a))),ht[n.prop=e]=n,t.targetTest&&(ct.push(n),st[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}M(e,n),t.register&&t.register(ee,n,te)}(t)})},timeline:function timeline(t){return new Et(t)},getTweensOf:function getTweensOf(t,e){return R.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,r){n(i)&&(i=vt(i)[0]);var a=X(i||{}).get,s=e?ea:da;return"native"===e&&(e=""),i?t?s((ht[t]&&ht[t].get||a)(i,t,e,r)):function(t,e,r){return s((ht[t]&&ht[t].get||a)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,n){if(1<(r=vt(r)).length){var i=r.map(function(t){return ee.quickSetter(t,e,n)}),a=i.length;return function(t){for(var e=a;e--;)i[e](t)}}r=r[0]||{};var s=ht[e],o=X(r),u=s?function(t){var e=new s;d._pt=0,e.init(r,n?t+n:t,d,0,[r]),e.render(1,e),d._pt&&Gt(1,d)}:o.set(r,e);return s?u:function(t){return u(r,e,n?t+n:t,o,1)}},isTweening:function isTweening(t){return 0<R.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=Dt(t.ease,E.ease)),ia(E,t||{})},config:function config(t){return ia(U,t||{})},registerEffect:function registerEffect(t){var i=t.name,n=t.effect,e=t.plugins,a=t.defaults,s=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!ht[t]&&!at[t]&&L(i+" effect requires "+t+" plugin.")}),lt[i]=function(t,e){return n(vt(t),fa(e||{},a))},s&&(Et.prototype[i]=function(t,e,n){return this.add(lt[i](t,r(e)?e:(n=e)&&{}),n)})},registerEase:function registerEase(t,e){Ot[t]=Dt(e)},parseEase:function parseEase(t,e){return arguments.length?Dt(t,e):Ot},getById:function getById(t){return R.getById(t)},exportRoot:function exportRoot(t,e){void 0===t&&(t={});var r,n,i=new Et(t);for(i.smoothChildTiming=s(t.smoothChildTiming),R.remove(i),i._dp=0,i._time=i._tTime=R._time,r=R._first;r;)n=r._next,!e&&!r._dur&&r instanceof Xt&&r.vars.onComplete===r._targets[0]||ua(i,r,r._start-r._delay),r=n;return ua(R,i,0),i},utils:{wrap:function wrap(e,t,r){var n=t-e;return G(e)?Qa(e,wrap(0,e.length),t):Ba(r,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function wrapYoyo(e,t,r){var n=t-e,i=2*n;return G(e)?Qa(e,wrapYoyo(0,e.length-1),t):Ba(r,function(t){return e+(n<(t=(i+(t-e)%i)%i)?i-t:t)})},distribute:Ja,random:Ma,snap:La,normalize:function normalize(t,e,r){return yt(t,e,0,1,r)},getUnit:Da,clamp:function clamp(e,r,t){return Ba(t,function(t){return mt(e,r,t)})},splitColor:cb,toArray:vt,mapRange:yt,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Da(t))}},interpolate:function interpolate(e,r,t,i){var a=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!a){var s,o,u,h,l,f=n(e),c={};if(!0===t&&(i=1)&&(t=null),f)e={p:e},r={p:r};else if(G(e)&&!G(r)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(interpolate(e[o-1],e[o]));h--,a=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=r}else i||(e=dt(G(e)?[]:{},e));if(!u){for(s in r)Lt.call(c,e,s,"get",r[s]);a=function func(t){return Gt(t,c)||(f?e.p:e)}}}return Ba(t,a)}},install:J,effects:lt,ticker:At,updateRoot:Et.updateRoot,plugins:ht,globalTimeline:R,core:{PropTween:te,globals:M,Tween:Xt,Timeline:Et,Animation:Rt,getCache:X}};Z("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return ee[t]=Xt[t]}),At.add(Et.updateRoot),d=ee.to({},{duration:0});function Zb(t,a){return{name:t,rawVars:1,init:function init(t,i,e){e._onInit=function(t){var e,r;if(n(i)&&(e={},Z(i,function(t){return e[t]=1}),i=e),a){for(r in e={},i)e[r]=a(i[r]);i=e}!function _addModifiers(t,e){var r,n,i,a=t._targets;for(r in e)for(n=a.length;n--;)(i=t._ptLookup[n][r])&&i.d.modifier&&i.d.modifier(e[r],t,a[n],r)}(t,i)}}}}ee.registerPlugin({name:"attr",init:function init(t,e,r,n,i){for(var a in e)this.add(t,"setAttribute",(t.getAttribute(a)||0)+"",e[a],n,i,0,0,a),this._props.push(a)}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r],e[r])}},Zb("roundProps",Ka),Zb("modifiers"),Zb("snap",La)),Xt.version=Et.version=ee.version="3.0.1",f=1,t()&&Mt();function Ic(t,e){return e.set(e.t,e.p,~~(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Jc(t,e){return e.set(e.t,e.p,1===t?e.e:~~(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Kc(t,e){return e.set(e.t,e.p,t?~~(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Lc(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function Mc(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Nc(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function Oc(t,e,r){return t.style[e]=r}function Pc(t,e,r){return t.style.setProperty(e,r)}function Qc(t,e,r){return t._gsap[e]=r}function Rc(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function Sc(t,e,r,n,i){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(i,a)}function Tc(t,e,r,n,i){var a=t._gsap;a[e]=r,a.renderTransform(i,a)}function Xc(t,e){var r=ne.createElementNS?ne.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ne.createElement(t);return r.style?r:ne.createElement(t)}function Yc(t,e){var r=getComputedStyle(t);return r[e]||r.getPropertyValue(e.replace(Ee,"-$1").toLowerCase())||r.getPropertyValue(e)}function Zc(t,e){var r=(e||se).style,n=5,i="O,Moz,ms,Ms,Webkit".split(",");if(t in r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(i[n]+t in r););return n<0?null:(3===n?"ms":0<=n?i[n]:"")+t}function $c(){!function _windowExists(){return"undefined"!=typeof window}()||(re=window,ne=re.document,ie=ne.documentElement,se=Xc("div")||{style:{}},oe=Xc("div"),Ne=Zc(Ne),$e=Zc($e),se.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",he=!!Zc("perspective"),ae=1)}function ad(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function bd(e){var r;try{r=e.getBBox()}catch(t){r=function _getBBoxHack(t){var e,r=Xc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,a=this.style.cssText;if(ie.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=_getBBoxHack}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i?n.insertBefore(this,i):n.appendChild(this),ie.removeChild(r),this.style.cssText=a,e}.call(e,!0)}return!r||r.width||r.x||r.y?r:{x:+ad(e,["x","cx","x1"]),y:+ad(e,["y","cy","y1"]),width:0,height:0}}function cd(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!bd(t))}function dd(t,e){if(e){var r=t.style;e in De&&(e=Ne),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(Ee,"-$1").toLowerCase())):r.removeAttribute(e)}}function ed(t,e,r,n,i,a){var s=new te(t._pt,e,r,0,1,a?Nc:Mc);return(t._pt=s).b=n,s.e=i,t._props.push(r),s}function gd(t,e,r,n){var i,a,s,o,u=parseFloat(r),h=(r+"").substr((u+"").length)||"px",l=se.style,f=Le.test(e),c="svg"===t.tagName.toLowerCase(),p=(c?"client":"offset")+(f?"Width":"Height"),d="px"===n;return n===h||Xe[n]||Xe[h]?u:(o=t.getCTM&&cd(t),"%"===n&&De[e]?$(u/(o?t.getBBox()[f?"width":"height"]:t[p])*100):(l[f?"width":"height"]=100+(d?h:n),a="em"===n&&t.appendChild&&!c?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==ne&&a.appendChild||(a=ne.body),(s=a._gsap)&&"%"===n&&s.width&&f&&s.time===At.time?i=s.width*u/100:(a.appendChild(se),i=se[p],a.removeChild(se),f&&"%"===n&&((s=X(a)).time=At.time,s.width=i/u*100)),$(d?i*u/100:100/i*u)))}function hd(t,e,r,n){var i;return ae||$c(),e in Ye&&~(e=Ye[e]).indexOf(",")&&(e=e.split(",")[0]),De[e]?(i=Ve(t,n),i="transformOrigin"!==e?i[e]:Qe(Yc(t,$e))+i.zOrigin+"px"):(i=t.style[e])&&"auto"!==i&&!n||(i=Yc(t,e)||Y(t,e)),r?gd(t,e,i,r)+r:i}function id(t,e,r,n){var i,a,s,o,u,h,l,f,c,p,d,_,m=new te(this._pt,t.style,e,0,1,Wt),g=0,v=0;if(m.b=r,m.e=n,r+="","auto"===(n+="")&&(t.style[e]=n,n=Yc(t,e)||n,t.style[e]=r),gb(i=[r,n]),n=i[1],s=(r=i[0]).match(ze)||[],(n.match(ze)||[]).length){for(;a=ze.exec(n);)l=a[0],c=n.substring(g,a.index),u?u=(u+1)%5:"rgba("===c.substr(-5)&&(u=1),l!==(h=s[v++]||"")&&(o=parseFloat(h)||0,d=h.substr((o+"").length),(_="="===l.charAt(1)?+(l.charAt(0)+"1"):0)&&(l=l.substr(2)),f=parseFloat(l),p=l.substr((f+"").length),g=ze.lastIndex-p.length,p||(p=p||U.units[e]||d,g===n.length&&(n+=p,m.e+=p)),d!==p&&(o=gd(t,e,h,p)),m._pt={_next:m._pt,p:c||1===v?c:",",s:o,c:_?_*f:f-o,m:u&&u<4?Math.round:0});m.c=g<n.length?n.substring(g,n.length):""}else m.r="display"===e?Nc:Mc;return nt.test(n)&&(m.e=0),this._pt=m}function kd(t){var e=t.split(" "),r=e[0],n=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==n&&"right"!==n||(e=r,r=n,n=e),e[0]=Ze[r]||r,e[1]=Ze[n]||n,e.join(" ")}function ld(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,a=e.t,s=a.style,o=e.u;if("all"===o||!0===o)s.cssText="",n=1;else for(i=(o=o.split(",")).length;-1<--i;)r=o[i],De[r]&&(n=1,r="transformOrigin"===r?$e:Ne),dd(a,r);n&&(dd(a,Ne),(n=a._gsap)&&(n.svg&&a.removeAttribute("transform"),delete n.x))}}function pd(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function qd(t){var e=Yc(t,Ne);return pd(e)?qe:e.substr(7).match(tt).map($)}function rd(t,e){var r,n,i,a,s=t._gsap,o=t.style,u=qd(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?qe:u:(u!==qe||t.offsetParent||t===ie||s.svg||(i=o.display,o.display="block",(r=t.parentNode)&&t.offsetParent||(a=1,n=t.nextSibling,ie.appendChild(t)),u=qd(t),i?o.display=i:dd(t,"display"),a&&(n?r.insertBefore(t,n):r?r.appendChild(t):ie.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function sd(t,e,r,n,i,a){var s,o,u,h=t._gsap,l=i||rd(t,!0),f=h.xOrigin||0,c=h.yOrigin||0,p=h.xOffset||0,d=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],b=l[5],w=e.split(" "),T=parseFloat(w[0])||0,x=parseFloat(w[1])||0;r?l!==qe&&(o=_*v-m*g)&&(u=T*(-m/o)+x*(_/o)-(_*b-m*y)/o,T=T*(v/o)+x*(-g/o)+(g*b-v*y)/o,x=u):(T=(s=bd(t)).x+(~w[0].indexOf("%")?T/100*s.width:T),x=s.y+(~(w[1]||w[0]).indexOf("%")?x/100*s.height:x)),n||!1!==n&&h.smooth?(y=T-f,b=x-c,h.xOffset+=y*_+b*g-y,h.yOffset+=y*m+b*v-b):h.xOffset=h.yOffset=0,h.xOrigin=T,h.yOrigin=x,h.smooth=!!n,h.origin=e,h.originIsAbsolute=!!r,a&&(ed(a,h,"xOrigin",f,T),ed(a,h,"yOrigin",c,x),ed(a,h,"xOffset",p,h.xOffset),ed(a,h,"yOffset",d,h.yOffset))}function vd(t,e,r){var n=Da(e);return $(parseFloat(e)+parseFloat(gd(t,"x",r+"px",n)))+n}function Cd(t,e,r,i,a,s){var o,u,h=360,l=n(a),f=parseFloat(a)*(l&&~a.indexOf("rad")?Be:1),c=s?f*s:f-i,p=i+c+"deg";return l&&("short"===(o=a.split("_")[1])&&(c%=h)!==c%180&&(c+=c<0?h:-h),"cw"===o&&c<0?c=(c+36e9)%h-~~(c/h)*h:"ccw"===o&&0<c&&(c=(c-36e9)%h-~~(c/h)*h)),t._pt=u=new te(t._pt,e,r,i,c,Jc),u.e=p,u.u="deg",t._props.push(r),u}function Dd(t,e,r){var n,i,a,s,o,u,h,l=oe.style,f=r._gsap;for(i in l.cssText=getComputedStyle(r).cssText+";position:absolute;display:block;",l[Ne]=e,ne.body.appendChild(oe),n=Ve(oe,1),De)(a=f[i])!==(s=n[i])&&"perspective"!==i&&(o=Da(a)!==(h=Da(s))?gd(r,i,a,h):parseFloat(a),u=parseFloat(s),t._pt=new te(t._pt,f,i,o,u-o,Ic),t._pt.u=h,t._props.push(i));ne.body.removeChild(oe)}var re,ne,ie,ae,se,oe,ue,he,le,fe,ce,pe=Ot.Power0,de=Ot.Power1,_e=Ot.Power2,me=Ot.Power3,ge=Ot.Power4,ve=Ot.Linear,ye=Ot.Quad,be=Ot.Cubic,we=Ot.Quart,Te=Ot.Quint,xe=Ot.Strong,ke=Ot.Elastic,Ae=Ot.Back,Me=Ot.SteppedEase,Oe=Ot.Bounce,Pe=Ot.Sine,Se=Ot.Expo,Ce=Ot.Circ,De={},Be=180/Math.PI,Fe=Math.PI/180,Re=Math.atan2,Ee=/([A-Z])/g,ze=/[-+=\.]*\d+[\.e-]*\d*[a-z%]*/g,Le=/(?:left|right|width|margin|padding|x)/i,Ie=/[\s,\(]\S/,Ye={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ne="transform",$e=Ne+"Origin",Xe={deg:1,rad:1,turn:1},Ze={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ue={clearProps:function clearProps(t,e,r,n,i){var a=t._pt=new te(t._pt,e,r,0,0,ld);return a.u=n,a.pr=-10,a.tween=i,t._props.push(r),1}},qe=[1,0,0,1,0,0],je={},Ve=function _parseTransform(t,e){var r=t._gsap||new Ft(t);if("x"in r&&!e)return r;var n,i,a,s,o,u,h,l,f,c,p,d,_,m,g,v,y,b,w,T,x,k,A,M,O,P,S,C,D,B,F=t.style,R=r.scaleX<0,E=r.xOrigin||0,z=r.yOrigin||0,L="deg",I=Yc(t,$e)||"0";return n=i=a=u=h=l=f=c=p=0,s=o=1,r.svg=!(!t.getCTM||!cd(t)),d=rd(t,r.svg),r.svg&&sd(t,I,r.originIsAbsolute,!1!==r.smooth,d),d!==qe&&(v=d[0],y=d[1],b=d[2],w=d[3],n=T=d[4],i=x=d[5],6===d.length?(s=Math.sqrt(v*v+y*y),o=Math.sqrt(w*w+b*b),u=v||y?Re(y,v)*Be:r.rotation||0,f=b||w?Re(b,w)*Be+u:r.skewX||0,r.svg&&(n-=E-(E*v+z*b),i-=z-(E*y+z*w))):(B=d[6],C=d[7],O=d[8],P=d[9],S=d[10],D=d[11],n=d[12],i=d[13],a=d[14],h=(_=Re(B,S))*Be,_&&(k=T*(m=Math.cos(-_))+O*(g=Math.sin(-_)),A=x*m+P*g,M=B*m+S*g,O=T*-g+O*m,P=x*-g+P*m,S=B*-g+S*m,D=C*-g+D*m,T=k,x=A,B=M),l=(_=Re(-b,S))*Be,_&&(m=Math.cos(-_),D=w*(g=Math.sin(-_))+D*m,v=k=v*m-O*g,y=A=y*m-P*g,b=M=b*m-S*g),u=(_=Re(y,v))*Be,_&&(k=v*(m=Math.cos(_))+y*(g=Math.sin(_)),A=T*m+x*g,y=y*m-v*g,x=x*m-T*g,v=k,T=A),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=$(Math.sqrt(v*v+y*y+b*b)),o=$(Math.sqrt(x*x+B*B)),_=Re(T,x),f=2e-4<Math.abs(_)?_*Be:0,p=D?1/(D<0?-D:D):0),r.svg&&(d=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!pd(Yc(t,Ne)),d&&t.setAttribute("transform",d))),90<Math.abs(f)&&Math.abs(f)<270&&(R?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),r.x=((r.xPercent=n&&Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)?0:n)+"px",r.y=((r.yPercent=i&&Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)?0:i)+"px",r.z=a+"px",r.scaleX=$(s),r.scaleY=$(o),r.rotation=$(u)+L,r.rotationX=$(h)+L,r.rotationY=$(l)+L,r.skewX=f+L,r.skewY=c+L,r.transformPerspective=p+"px",(r.zOrigin=parseFloat(I.split(" ")[2])||0)&&(F[$e]=Qe(I)),r.xOffset=r.yOffset=0,r.force3D=U.force3D,r.renderTransform=r.svg?tr:he?He:We,r},Qe=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},We=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,He(t,e)},Ge="0deg",Je="0px",Ke=") ",He=function _renderCSSTransforms(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,c=r.skewY,p=r.scaleX,d=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",b="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==Ge||h!==Ge)){var w,T=parseFloat(h)*Fe,x=Math.sin(T),k=Math.cos(T);T=parseFloat(l)*Fe,w=Math.cos(T),a=vd(g,a,x*w*-v),s=vd(g,s,-Math.sin(T)*-v),o=vd(g,o,k*w*-v+v)}(n||i)&&(y="translate("+n+"%, "+i+"%) "),!b&&a===Je&&s===Je&&o===Je||(y+=o!==Je||b?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+Ke),_!==Je&&(y+="perspective("+_+Ke),u!==Ge&&(y+="rotate("+u+Ke),h!==Ge&&(y+="rotateY("+h+Ke),l!==Ge&&(y+="rotateX("+l+Ke),f===Ge&&c===Ge||(y+="skew("+f+", "+c+Ke),1===p&&1===d||(y+="scale("+p+", "+d+Ke),g.style[Ne]=y||"translate(0, 0)"},tr=function _renderSVGTransforms(t,e){var r,n,i,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,c=o.rotation,p=o.skewX,d=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,b=o.xOffset,w=o.yOffset,T=o.forceCSS,x=parseFloat(l),k=parseFloat(f);c=parseFloat(c),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),c+=d),c||p?(c*=Fe,p*=Fe,r=Math.cos(c)*_,n=Math.sin(c)*_,i=Math.sin(c-p)*-m,a=Math.cos(c-p)*m,p&&(d*=Fe,s=Math.tan(p-d),i*=s=Math.sqrt(1+s*s),a*=s,d&&(s=Math.tan(d),r*=s=Math.sqrt(1+s*s),n*=s)),r=$(r),n=$(n),i=$(i),a=$(a)):(r=_,a=m,n=i=0),(x&&!~(l+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(x=gd(g,"x",l,"px"),k=gd(g,"y",f,"px")),(v||y||b||w)&&(x=$(x+v-(v*r+y*i)+b),k=$(k+y-(v*n+y*a)+w)),(u||h)&&(s=g.getBBox(),x=$(x+u/100*s.width),k=$(k+h/100*s.height)),s="matrix("+r+","+n+","+i+","+a+","+x+","+k+")",g.setAttribute("transform",s),T&&(g.style[Ne]=s)},er={name:"css",register:$c,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,r,n,i){var a,s,o,u,h,l,f,c,p,d,_,m,g,v,y,b=this._props,w=t.style;for(f in ae||$c(),e)if("autoRound"!==f&&(s=e[f],!ht[f]||!Bb(f,e,r,n,t,i)))if(l=Ue[f],"function"===(h=typeof s)&&(h=typeof(s=s.call(r,n,t,i))),"string"===h&&~s.indexOf("random(")&&(s=Ta(s)),l)l(this,t,f,s,r)&&(y=1);else if("--"===f.substr(0,2))this.add(w,"setProperty",getComputedStyle(t).getPropertyValue(f)+"",s+"",n,i,0,0,f);else{if(a=hd(t,f),u=parseFloat(a),(d="string"===h&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),o=parseFloat(s),f in Ye&&("autoAlpha"===f&&(1===u&&"hidden"===hd(t,"visibility")&&o&&(u=0),ed(this,w,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&~(f=Ye[f]).indexOf(",")&&(f=f.split(",")[0])),_=f in De){if(m||(g=t._gsap,v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new te(this._pt,w,Ne,0,1,g.renderTransform,g)).dep=1),"scale"===f){this._pt=new te(this._pt,t,"scale",u,d?d*o:o-u,0,0,Rc),b.push("scale");continue}if("transformOrigin"===f){s=kd(s),g.svg?sd(t,s,0,v,0,this):((p=parseFloat(s.split(" ")[2]))!==g.zOrigin&&ed(this,g,"zOrigin",g.zOrigin,p),ed(this,w,f,Qe(a),Qe(s)));continue}if("svgOrigin"===f){sd(t,s,1,v,0,this);continue}if(f in je){Cd(this,g,f,u,s,d);continue}if("smoothOrigin"===f){ed(this,g,"smooth",g.smooth,s);continue}if("force3D"===f){g[f]=s;continue}if("transform"===f){Dd(this,s,t);continue}}if(_||(o||0===o)&&(u||0===u)&&!Ie.test(s)&&f in w)(c=(a+"").substr((u+"").length))!==(p=(s+"").substr((o+"").length)||(f in U.units?U.units[f]:c))&&(u=gd(t,f,a,p)),this._pt=new te(this._pt,_?g:w,f,u,d?d*o:o-u,"px"!==p||!1===e.autoRound||_?Ic:Lc),this._pt.u=p||0,c!==p&&(this._pt.b=a,this._pt.r=Kc);else if(f in w)id.call(this,t,f,a,s);else{if(!(f in t)){K("Invalid "+f+" tween "+s+". Missing plugin? gsap.registerPlugin()");continue}this.add(t,f,t[f],s,n,i)}b.push(f)}y&&Ht(this)},get:hd,aliases:Ye,getSetter:function getSetter(t,e,r){return e in De&&e!==$e&&(t._gsap.x||hd(t,"x"))?r&&ue===r?"scale"===e?Rc:Qc:(ue=r||{})&&("scale"===e?Sc:Tc):t.style&&!q(t.style[e])?Oc:~e.indexOf("-")?Pc:jt(t,e)}};ee.utils.checkPrefix=Zc,ce=Z((le="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(fe="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){De[t]=1}),Z(fe,function(t){U.units[t]="deg",je[t]=1}),Ye[ce[13]]=le+","+fe,Z("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Ye[e[1]]=ce[e[0]]}),Z("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){U.units[t]="px"}),ee.registerPlugin(er);var rr=ee.registerPlugin(er)||ee;e.Back=Ae,e.Bounce=Oe,e.CSSPlugin=er,e.Circ=Ce,e.Cubic=be,e.Elastic=ke,e.Expo=Se,e.Linear=ve,e.Power0=pe,e.Power1=de,e.Power2=_e,e.Power3=me,e.Power4=ge,e.Quad=ye,e.Quart=we,e.Quint=Te,e.Sine=Pe,e.SteppedEase=Me,e.Strong=xe,e.TimelineLite=Et,e.TimelineMax=Et,e.TweenLite=Xt,e.TweenMax=Xt,e.default=rr,e.gsap=rr,Object.defineProperty(e,"__esModule",{value:!0})});
+ * GSAP 3.0.2
+ * https://greensock.com
+ *
+ * @license Copyright 2019, 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, [email protected]
+ */
+
+!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(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function J(t){return(l=dt(t,at))&&re}function K(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function L(t,e){return!e&&console.warn(t)}function M(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function N(){return 0}function W(t){var e,n,i=t[0];if(r(i)||o(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(n=pt.length;n--&&!pt[n].targetTest(i););e=pt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Bt(t[n],e)))||t.splice(n,1);return t}function X(t){return t._gsap||W(vt(t))[0]._gsap}function Y(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function Z(t,e){return(t=t.split(",")).forEach(e)||t}function $(t){return Math.round(1e4*t)/1e4}function _(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r}function aa(t,e,r){var n,i=p(t[1]),a=(i?2:1)+(e<2?0:1),o=t[a];return i&&(o.duration=t[1]),1===e?(o.runBackwards=1,o.immediateRender=s(o.immediateRender)):2===e&&(n=t[a-1],o.startAt=n,o.immediateRender=s(o.immediateRender)),o.parent=r,o}function ba(){var t,e,r=ot.length,n=ot.slice(0);for(ut={},t=ot.length=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function ca(t,e,r,n){ot.length&&ba(),t.render(e,r,n),ot.length&&ba()}function da(t){var e=parseFloat(t);return e||0===e?e:t}function ea(t){return t}function fa(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ga(t,e){for(var r in e)r in t||"duration"===r||"ease"===r||(t[r]=e[r])}function ia(t,e){for(var n in e)t[n]=r(e[n])?ia(t[n]||(t[n]={}),e[n]):e[n];return t}function ja(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n}function na(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,a=e._next;i?i._next=a:t[r]===e&&(t[r]=a),a?a._prev=i:t[n]===e&&(t[n]=i),e._dp=t,e._next=e._prev=e.parent=null}function oa(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function pa(t){for(var e=t;e;)e._dirty=1,e=e.parent;return t}function sa(t){return t._repeat?~~(t._tTime/(t=t.duration()+t._rDelay))*t:0}function ta(t,e){return 0<e._ts?(t-e._start)*e._ts:(e._dirty?e.totalDuration():e._tDur)+(t-e._start)*e._ts}function ua(t,e,r){if(e.parent&&oa(e),e._start=r+e._delay,e._end=e._start+(e.totalDuration()/e._ts||0),function _addLinkedListItem(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var a,s=t[n];if(i)for(a=e[i];s&&s[i]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=s,e.parent=t}(t,e,"_first","_last",t._sort?"_start":0),(t._recent=e)._time||!e._dur&&e._initted){var n=(t.rawTime()-e._start)*e._ts;(!e._dur||mt(0,e.totalDuration(),n)-e._tTime>E)&&e.render(n,!0)}if(pa(t),t._dp&&t._time>=t._dur&&t._ts&&t._dur<t.duration())for(var i=t;i._dp;)i.totalTime(i._tTime,!0),i=i._dp;return t}function va(t,e,r,n){return $t(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)?(ot.push(t),t._lazy=[e,n],1):void 0:1}function ya(t){if(t instanceof Rt)return pa(t);var e=t._repeat;return t._tDur=e?e<0?1e20:$(t._dur*(e+1)+t._rDelay*e):t._dur,pa(t.parent),t}function Aa(t,e){var r,i,a=t.labels,s=t._recent||_t,o=t.duration()>=D?s.endTime(!1):t._dur;return n(e)&&(isNaN(e)||e in a)?"<"===(r=e.charAt(0))||">"===r?("<"===r?s._start:s.endTime(0<=s._repeat))+(parseFloat(e.substr(1))||0):(r=e.indexOf("="))<0?(e in a||(a[e]=o),a[e]):(i=+(e.charAt(r-1)+e.substr(r+1)),1<r?Aa(t,e.substr(0,r-1))+i:o+i):null==e?o:+e}function Ba(t,e){return t||0===t?e(t):e}function Da(t){return(t+"").substr((parseFloat(t)+"").length)}function Ga(t){return t&&r(t)&&"length"in t&&t.length-1 in t&&r(t[0])&&!t.nodeType&&t!==i}function Ja(t){if(o(t))return t;var d=r(t)?t:{each:t},_=Dt(d.ease),m=d.from||0,g=parseFloat(d.base)||0,v={},e=0<m&&m<1,y=isNaN(m)||e,b=d.axis,T=m,w=m;return n(m)?T=w={center:.5,edges:.5,end:1}[m]||0:!e&&y&&(T=m[0],w=m[1]),function(t,e,r){var n,i,a,s,o,u,h,l,f,p=(r||d).length,c=v[p];if(!c){if(!(f="auto"===d.grid?0:(d.grid||[1,D])[1])){for(h=-D;h<(h=r[f++].getBoundingClientRect().left)&&f<p;);f--}for(c=v[p]=[],n=y?Math.min(f,p)*T-.5:m%f,i=y?p*w/f-.5:m/f|0,l=D,u=h=0;u<p;u++)a=u%f-n,s=i-(u/f|0),c[u]=o=b?Math.abs("y"===b?s:a):U(a*a+s*s),h<o&&(h=o),o<l&&(l=o);c.max=h-l,c.min=l,c.v=p=(parseFloat(d.amount)||parseFloat(d.each)*(p<f?p-1:b?"y"===b?p/f:f:Math.max(f,p/f))||0)*("edges"===m?-1:1),c.b=p<0?g-p:g,c.u=Da(d.amount||d.each)||0,_=_&&p<0?St(_):_}return p=(c[t]-c.min)/c.max||0,$(c.b+(_?_(p):p)*c.v)+c.u}}function Ka(e){var r=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return~~(Math.round(parseFloat(t)/e)*e*r)/r+(p(t)?0:Da(t))}}function La(u,t){var h,l,e=Q(u);return!e&&r(u)&&(h=e=u.radius||D,u=vt(u.values),(l=!p(u[0]))&&(h*=h)),Ba(t,e?function(t){for(var e,r,n=parseFloat(l?t.x:t),i=parseFloat(l?t.y:0),a=D,s=0,o=u.length;o--;)(e=l?(e=u[o].x-n)*e+(r=u[o].y-i)*r:Math.abs(u[o]-n))<a&&(a=e,s=o);return s=!h||a<=h?u[s]:t,l||s===t||p(t)?s:s+Da(t)}:Ka(u))}function Ma(t,e,r,n){return Ba(Q(t)?!e:!n,function(){return Q(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&~~(Math.round((t+Math.random()*(e-t))/r)*r*n)/n})}function Qa(e,r,t){return Ba(t,function(t){return e[~~r(t)]})}function Ta(t){for(var e,r,n,i,a=0,s="";~(e=t.indexOf("random(",a));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?it:H),s+=t.substr(a,e-a)+Ma(i?r:+r[0],+r[1],+r[2]||1e-5),a=n+1;return s+t.substr(a,t.length-a)}function Wa(t,e,r){var n,i,a,s=t.labels,o=D;for(n in s)(i=s[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(a=n,o=i);return a}function Ya(t){return oa(t),t.progress()<1&&bt(t,"onInterrupt"),t}function bb(t,e,r){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*Tt+.5|0}function cb(t,e){var r,n,i,a,s,o,u,h,l,f,c=t?p(t)?[t>>16,t>>8&Tt,t&Tt]:0:wt.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),wt[t])c=wt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(r=t.charAt(1))+r+(n=t.charAt(2))+n+(i=t.charAt(3))+i),c=[(t=parseInt(t.substr(1),16))>>16,t>>8&Tt,t&Tt];else if("hsl"===t.substr(0,3))if(c=f=t.match(H),e){if(~t.indexOf("="))return t.match(tt)}else a=+c[0]%360/360,s=c[1]/100,r=2*(o=c[2]/100)-(n=o<=.5?o*(s+1):o+s-o*s),3<c.length&&(c[3]*=1),c[0]=bb(a+1/3,r,n),c[1]=bb(a,r,n),c[2]=bb(a-1/3,r,n);else c=t.match(H)||wt.transparent;c=c.map(Number)}return e&&!f&&(r=c[0]/Tt,n=c[1]/Tt,i=c[2]/Tt,o=((u=Math.max(r,n,i))+(h=Math.min(r,n,i)))/2,u===h?a=s=0:(l=u-h,s=.5<o?l/(2-u-h):l/(u+h),a=u===r?(n-i)/l+(n<i?6:0):u===n?(i-r)/l+2:(r-n)/l+4,a*=60),c[0]=a+.5|0,c[1]=100*s+.5|0,c[2]=100*o+.5|0),c}function db(t,e){var r,n,i,a=(t+"").match(xt),s=0,o="";if(!a)return t;for(r=0;r<a.length;r++)n=a[r],s+=(i=t.substr(s,t.indexOf(n,s)-s)).length+n.length,3===(n=cb(n,e)).length&&n.push(1),o+=i+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return o+t.substr(s)}function gb(t){var e,r=t.join(" ");xt.lastIndex=0,xt.test(r)&&(e=kt.test(r),t[0]=db(t[0],e),t[1]=db(t[1],e))}function ob(t){var e=(t+"").split("("),r=Ot[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,n,i={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[s]=isNaN(n)?n.replace(Ct,"").trim():+n,s=r.substr(e+1).trim();return i}(e[1])]:rt.exec(t)[1].split(",").map(da)):Ot._CE&&Pt.test(t)?Ot._CE("",t):r}function rb(t,e,r,n){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===n&&(n=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:r,easeInOut:n};return Z(t,function(t){for(var e in Ot[t]=at[t]=a,Ot[i=t.toLowerCase()]=r,a)Ot[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ot[t+"."+e]=a[e]}),a}function sb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function tb(r,t,e){function uk(t){return 1===t?1:n*Math.pow(2,-10*t)*G((t-a)*i)+1}var n=1<=t?t:1,i=(e||(r?.3:.45))/(t<1?t:1),a=i/F*(Math.asin(1/n)||0),s="out"===r?uk:"in"===r?function(t){return 1-uk(1-t)}:sb(uk);return i=F/i,s.config=function(t,e){return tb(r,t,e)},s}function ub(e,r){function Ck(t){return--t*t*((r+1)*t+r)+1}void 0===r&&(r=1.70158);var t="out"===e?Ck:"in"===e?function(t){return 1-Ck(1-t)}:sb(Ck);return t.config=function(t){return ub(e,t)},t}var z,i,a,h,l,f,c,d,m,g,v,y,b,T,w,x,k,A,O,P,C,S,j={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},R={duration:.5,overwrite:!1,delay:0},D=1e8,E=1/D,F=2*Math.PI,B=F/4,I=0,U=Math.sqrt,V=Math.cos,G=Math.sin,Q=Array.isArray,H=/(?:-?\.?\d|\.)+/gi,tt=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,et=/[-+=\.]*\d+(?:\.|e-|e)*\d*/gi,rt=/\(([^()]+)\)/i,nt=/[\+-]=-?[\.\d]+/,it=/[#\-+\.]*\b[a-z\d-=+%.]+/gi,at={},st={},ot=[],ut={},ht={},lt={},ft=30,pt=[],ct="onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",dt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},_t={_start:0,endTime:N},mt=function _clamp(t,e,r){return r<t?t:e<r?e:r},gt=[].slice,vt=function toArray(t,e){return!n(t)||e||!a&&Mt()?Q(t)?function _flatten(t,r,i){return void 0===i&&(i=[]),t.forEach(function(t){var e;return n(t)&&!r||Ga(t)?(e=i).push.apply(e,vt(t)):i.push(t)})||i}(t,e):Ga(t)?gt.call(t,0):t?[t]:[]:gt.call(h.querySelectorAll(t),0)},yt=function mapRange(e,t,r,n,i){var a=t-e,s=n-r;return Ba(i,function(t){return r+(t-e)/a*s})},bt=function _callback(t,e,r){var n,i,a=t.vars,s=a[e];if(s)return n=a[e+"Params"],i=a.callbackScope||t,r&&ot.length&&ba(),n?s.apply(i,n):s.call(i)},Tt=255,wt={aqua:[0,Tt,Tt],lime:[0,Tt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Tt],navy:[0,0,128],white:[Tt,Tt,Tt],olive:[128,128,0],yellow:[Tt,Tt,0],orange:[Tt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Tt,0,0],pink:[Tt,192,203],cyan:[0,Tt,Tt],transparent:[Tt,Tt,Tt,0]},xt=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in wt)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),kt=/hsl[a]?\(/,At=(b=Date.now,T=500,w=33,x=b(),k=x,O=A=1/60,y={time:0,frame:0,tick:function tick(){Aj(!0)},wake:function wake(){f&&(!a&&t()&&(i=a=window,h=i.document||{},at.gsap=re,(i.gsapVersions||(i.gsapVersions=[])).push(re.version),J(l||i.GreenSockGlobals||!i.gsap&&i||{}),v=i.requestAnimationFrame),m&&y.sleep(),g=v||function(t){return setTimeout(t,1e3*(O-y.time)+1|0)},d=1,Aj(2))},sleep:function sleep(){(v?i.cancelAnimationFrame:clearTimeout)(m),d=0,g=N},lagSmoothing:function lagSmoothing(t,e){T=t||1e8,w=Math.min(e,T,0)},fps:function fps(t){A=1/(t||60),O=y.time+A},add:function add(t){P.indexOf(t)<0&&P.push(t),Mt()},remove:function remove(t){var e;~(e=P.indexOf(t))&&P.splice(e,1)},_listeners:P=[]}),Mt=function _wake(){return!d&&At.wake()},Ot={},Pt=/^[\d.\-M][\d.\-,\s]/,Ct=/["']/g,St=function _invertEase(e){return function(t){return 1-e(1-t)}},Dt=function _parseEase(t,e){return t&&(o(t)?t:Ot[t]||ob(t))||e};function Aj(e){var t,r,n=b()-k,i=!0===e;T<n&&(x+=n-w),k+=n,y.time=(k-x)/1e3,(0<(t=y.time-O)||i)&&(y.frame++,O+=t+(A<=t?.004:A-t),r=1),i||(m=g(Aj)),r&&P.forEach(function(t){return t(y.time,n,y.frame,e)})}function Tk(t){return t<S?C*t*t:t<.7272727272727273?C*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?C*(t-=2.25/2.75)*t+.9375:C*Math.pow(t-2.625/2.75,2)+.984375}Z("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;rb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Ot.Linear.easeNone=Ot.none=Ot.Linear.easeIn,rb("Elastic",tb("in"),tb("out"),tb()),C=7.5625,S=1/2.75,rb("Bounce",function(t){return 1-Tk(1-t)},Tk),rb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),rb("Circ",function(t){return-(U(1-t*t)-1)}),rb("Sine",function(t){return 1-V(t*B)}),rb("Back",ub("in"),ub("out"),ub()),Ot.SteppedEase=Ot.steps=at.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*mt(0,.99999999,t)|0)+i)*r}}},R.ease=Ot["quad.out"];var Ft,Bt=function GSCache(t,e){this.id=I++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:Y,this.set=e?e.getSetter:qt},zt=((Ft=Animation.prototype).delay=function delay(t){return t||0===t?(this._delay=t,this):this._delay},Ft.duration=function duration(t){var e=arguments.length,r=this._repeat,n=0<r?r*((e?t:this._dur)+this._rDelay):0;return e?this.totalDuration(r<0?t:t+n):this.totalDuration()&&this._dur},Ft.totalDuration=function totalDuration(t){if(!arguments.length)return this._tDur;var e=this._repeat,r=(t||this._rDelay)&&e<0;return this._tDur=r?1e20:t,this._dur=r?t:(t-e*this._rDelay)/(e+1),this._dirty=0,pa(this.parent),this},Ft.totalTime=function totalTime(t,e){if(Mt(),!arguments.length)return this._tTime;var r,n=this.parent||this._dp;if(n&&n.smoothChildTiming&&this._ts){for(r=this._start,this._start=n._time-(0<this._ts?t/this._ts:((this._dirty?this.totalDuration():this._tDur)-t)/-this._ts),this._end+=this._start-r,n._dirty||pa(n);n.parent;)n.parent._time!==n._start+(0<n._ts?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;this.parent||ua(this._dp,this,this._start-this._delay)}return this._tTime===t&&this._dur||(this._ts||(this._pTime=t),ca(this,t,e)),this},Ft.time=function time(t,e){return arguments.length?this.totalTime((t+sa(this))%this.duration()||(t?this._dur:0),e):this._time},Ft.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._tTime/this.totalDuration()},Ft.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+sa(this),e):this.duration()?this._time/this._dur:this.ratio},Ft.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?1+~~(this._tTime/r):1},Ft.timeScale=function timeScale(t){var e=this._ts;return arguments.length?e?(this._end=this._start+this._tDur/(this._ts=t||E),function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this).totalTime(this._tTime,!0)):(this._pauseTS=t,this):e||this._pauseTS},Ft.paused=function paused(t){var e=!this._ts;return arguments.length?(e!==t&&(t?(this._pauseTS=this._ts,this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(this._ts=this._pauseTS,t=this._tTime||this._pTime,1===this.progress()&&(this._tTime-=E),this.totalTime(t,!0))),this):e},Ft.startTime=function startTime(t){return arguments.length?(this.parent&&this.parent._sort&&ua(this.parent,this,t-this._delay),this):this._start},Ft.endTime=function endTime(t){return this._start+(s(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},Ft.rawTime=function rawTime(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?ta(e.rawTime(t),this):this._tTime:this._tTime},Ft.repeat=function repeat(t){return arguments.length?(this._repeat=t,ya(this)):this._repeat},Ft.repeatDelay=function repeatDelay(t){return arguments.length?(this._rDelay=t,ya(this)):this._rDelay},Ft.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},Ft.seek=function seek(t,e){return this.totalTime(Aa(this,t),s(e))},Ft.restart=function restart(t,e){return this.play().totalTime(t?-this._delay:0,s(e))},Ft.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},Ft.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},Ft.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},Ft.resume=function resume(){return this.paused(!1)},Ft.reversed=function reversed(t){var e=this._ts||this._pauseTS;return arguments.length?(t!==this.reversed()&&(this[this._ts?"_ts":"_pauseTS"]=Math.abs(e)*(t?-1:1),this.totalTime(this._tTime,!0)),this):e<0},Ft.invalidate=function invalidate(){return this._initted=0,this},Ft.isActive=function isActive(t){var e,r=this.parent||this._dp,n=this._start;return!r||this._ts&&(this._initted||!t)&&r.isActive(t)&&(e=r.rawTime(!0))>=n&&e<this.endTime(!0)-E},Ft.eventCallback=function eventCallback(t,e,r){var n=this.vars;return 1<arguments.length?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},Ft.then=function then(t){var n=this;return new Promise(function(e){function mm(){var t=n.then;n.then=null,(r=r(n))&&(r.then||r===n)&&(n._prom=r,n.then=t),e(r),n.then=t}var r=t||ea;n._initted&&1===n.totalProgress()&&0<=n._ts||!n._tTime&&n._ts<0?mm():n._prom=mm})},Ft.kill=function kill(){Ya(this)},Animation);function Animation(t,e){var r=t.parent||z;this.vars=t,this._dur=this._tDur=+t.duration||0,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase,ya(this)),this._ts=1,this.data=t.data,d||At.wake(),r&&ua(r,this,e||0===e?e:r._time),t.reversed&&this.reversed(!0),t.paused&&this.paused(!0)}fa(zt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:0,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-E,_prom:0});var Rt=function(i){function Timeline(t,e){var r;return void 0===t&&(t={}),(r=i.call(this,t,e)||this).labels={},r.smoothChildTiming=s(t.smoothChildTiming),r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=s(t.sortChildren),r}_inheritsLoose(Timeline,i);var t=Timeline.prototype;return t.to=function to(t,e,r,n){return new Xt(t,aa(arguments,0,this),Aa(this,p(e)?n:r)),this},t.from=function from(t,e,r,n){return new Xt(t,aa(arguments,1,this),Aa(this,p(e)?n:r)),this},t.fromTo=function fromTo(t,e,r,n,i){return new Xt(t,aa(arguments,2,this),Aa(this,p(e)?i:n)),this},t.set=function set(t,e,r){return e.duration=0,e.parent=this,e.repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Xt(t,e,Aa(this,r)),this},t.call=function call(t,e,r){return ua(this,Xt.delayedCall(0,t,e),Aa(this,r))},t.staggerTo=function staggerTo(t,e,r,n,i,a,s){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Xt(t,r,Aa(this,i)),this},t.staggerFrom=function staggerFrom(t,e,r,n,i,a,o){return r.runBackwards=1,r.immediateRender=s(r.immediateRender),this.staggerTo(t,e,r,n,i,a,o)},t.staggerFromTo=function staggerFromTo(t,e,r,n,i,a,o,u){return n.startAt=r,n.immediateRender=s(n.immediateRender),this.staggerTo(t,e,n,i,a,o,u)},t.render=function render(t,e,r){var n,i,a,s,o,u,h,l,f,p,c,d=this._time,_=this._dirty?this.totalDuration():this._tDur,m=this._dur,g=_-E<t&&0<=t&&this!==z?_:t<E?0:t,v=this._zTime<0!=t<0&&(this._initted||!m);if(g!==this._tTime||r||v){if(v&&(m||(d=this._zTime),!t&&e||(this._zTime=t)),n=g,f=this._start,u=0===(l=this._ts),d!==this._time&&m&&(n+=this._time-d),this._repeat&&(c=this._yoyo,o=m+this._rDelay,(m<(n=$(g%o))||_===g)&&(n=m),(s=~~(g/o))&&s===g/o&&(n=m,s--),(p=~~(this._tTime/o))&&p===this._tTime/o&&p--,c&&1&s&&(n=m-n),s!==p&&!this._lock)){var y=c&&1&p,b=y===(c&&1&s);if(s<p&&(y=!y),d=y?0:m,this._lock=1,this.render(d,e,!m)._lock=0,!e&&this.parent&&bt(this,"onRepeat"),d!==this._time||u!=!this._ts)return this;if(b&&(this._lock=2,d=y?m+1e-4:-1e-4,this.render(d,!0)),this._lock=0,!this._ts&&!u)return this}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var n;if(e<r)for(n=t._first;n&&n._start<=r;){if(!n._dur&&"isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if(!n._dur&&"isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,$(d),$(n)))&&(g-=n-(n=h._start)),this._tTime=g,this._time=n,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1),d||!n||e||bt(this,"onStart"),d<=n&&0<=t)for(i=this._first;i;){if(a=i._next,(i._act||n>=i._start)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(0<i._ts?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!u){h=0;break}}i=a}else{i=this._last;for(var T=t<0?t:n;i;){if(a=i._prev,(i._act||T<=i._end)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(0<i._ts?(T-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(T-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!u){h=0;break}}i=a}}if(h&&!e&&(this.pause(),h.render(d<=n?0:-E)._zTime=d<=n?1:-1,this._ts))return this._start=f,this.render(t,e,r);this._onUpdate&&!e&&bt(this,"onUpdate",!0),(g===_||!g&&this._ts<0)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||(!n||_>=this.totalDuration())&&(!t&&m||oa(this,1),e||t<0&&!d||(bt(this,g===_?"onComplete":"onReverseComplete",!0),this._prom&&this._prom())))}return this},t.add=function add(t,e){var r=this;if(p(e)||(e=Aa(this,e)),!(t instanceof zt)){if(Q(t))return t.forEach(function(t){return r.add(t,e)}),pa(this);if(n(t))return this.addLabel(t,e);if(!o(t))return this;t=Xt.delayedCall(0,t)}return this!==t?ua(this,t,e):this},t.getChildren=function getChildren(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-D);for(var i=[],a=this._first;a;)a._start>=n&&(a instanceof Xt?e&&i.push(a):(r&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,r)))),a=a._next;return i},t.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},t.remove=function remove(t){return n(t)?this.removeLabel(t):o(t)?this.killTweensOf(t):(na(this,t),t===this._recent&&(this._recent=this._last),pa(this))},t.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,this.parent||this._dp||!this._ts||(this._start=At.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts)),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},t.addLabel=function addLabel(t,e){return this.labels[t]=Aa(this,e),this},t.removeLabel=function removeLabel(t){return delete this.labels[t],this},t.addPause=function addPause(t,e,r){var n=Xt.delayedCall(0,e||N,r);return n.data="isPause",this._hasPause=1,ua(this,n,Aa(this,t))},t.removePause=function removePause(t){var e=this._first;for(t=Aa(this,t);e;)e._start===t&&"isPause"===e.data&&oa(e),e=e._next},t.killTweensOf=function killTweensOf(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)Et!==n[i]&&n[i].kill(t,e);return this},t.getTweensOf=function getTweensOf(t,e){for(var r,n=[],i=vt(t),a=this._first;a;)a instanceof Xt?!_(a._targets,i)||e&&!a.isActive("started"===e)||n.push(a):(r=a.getTweensOf(i,e)).length&&n.push.apply(n,r),a=a._next;return n},t.tweenTo=function tweenTo(t,e){var r=this,n=Aa(r,t),i=e&&e.startAt,a=Xt.to(r,fa({ease:"none",lazy:!1,time:n,duration:Math.abs(n-(i&&"time"in i?i.time:r._time))/r.timeScale()||E,onStart:function onStart(){r.pause();var t=Math.abs(n-r._time)/r.timeScale();a._dur!==t&&(a._dur=t,a.render(a._time,!0,!0)),e&&e.onStart&&e.onStart.apply(a,e.onStartParams||[])}},e));return a},t.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,fa({startAt:{time:Aa(this,t)}},r))},t.recent=function recent(){return this._recent},t.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),Wa(this,Aa(this,t))},t.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),Wa(this,Aa(this,t),1)},t.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+E)},t.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,a=this.labels;i;)i._start>=r&&(i._start+=t),i=i._next;if(e)for(n in a)a[n]>=r&&(a[n]+=t);return pa(this)},t.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return i.prototype.invalidate.call(this)},t.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._time=this._tTime=0,t&&(this.labels={}),pa(this)},t.totalDuration=function totalDuration(t){var e,r,n=0,i=this,a=i._last,s=D,o=i._repeat,u=o*i._rDelay||0,h=o<0;if(arguments.length)return h?i:i.timeScale(i.totalDuration()/t);if(i._dirty){for(;a;)e=a._prev,a._dirty&&a.totalDuration(),a._start>s&&i._sort&&a._ts&&!i._lock?(i._lock=1,ua(i,a,a._start-a._delay),i._lock=0):s=a._start,a._start<0&&a._ts&&(n-=a._start,(!i.parent&&!i._dp||i.parent&&i.parent.smoothChildTiming)&&(i._start+=a._start/i._ts,i._time-=a._start,i._tTime-=a._start),i.shiftChildren(-a._start,!1,-D),s=0),n<(r=a._end=a._start+a._tDur/Math.abs(a._ts||a._pauseTS))&&a._ts&&(n=$(r)),a=e;i._dur=i===z&&i._time>n?i._time:Math.min(D,n),i._tDur=h&&(i._dur||u)?1e20:Math.min(D,n*(o+1)+u),i._end=i._start+(i._tDur/Math.abs(i._ts||i._pauseTS)||0),i._dirty=0}return i._tDur},Timeline.updateRoot=function updateRoot(t){if(z._ts&&ca(z,ta(t,z)),At.frame>=ft){ft+=j.autoSleep||120;var e=z._first;if((!e||!e._ts)&&j.autoSleep&&At._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||At.sleep()}}},Timeline}(zt);fa(Rt.prototype,{_lock:0,_hasPause:0,_forcing:0});function Bb(t,e,i,a,s,u){var h,l,f,p;if(ht[t]&&!1!==(h=new ht[t]).init(s,h.rawVars?e[t]:function _processVars(t,e,i,a,s){if(o(t)&&(t=It(t,s,e,i,a)),!r(t)||t.style&&t.nodeType||Q(t))return n(t)?It(t,s,e,i,a):t;var u,h={};for(u in t)h[u]=It(t[u],s,e,i,a);return h}(e[t],a,s,u,i),i,a,u)&&(i._pt=l=new te(i._pt,s,t,0,1,h.render,h,0,h.priority),i!==c))for(f=i._ptLookup[i._targets.indexOf(s)],p=h._props.length;p--;)f[h._props[p]]=l;return h}var Et,Lt=function _addPropTween(t,e,r,i,a,s,u,h,l){o(i)&&(i=i(a||0,t,s));var f,p=t[e],c="get"!==r?r:o(p)?l?t[e.indexOf("set")||!o(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():p,d=o(p)?l?Zt:Ut:jt;if(n(i)&&(~i.indexOf("random(")&&(i=Ta(i)),"="===i.charAt(1)&&(i=parseFloat(c)+parseFloat(i.substr(2))*("-"===i.charAt(0)?-1:1)+(Da(c)||0))),c!==i)return isNaN(c+i)?(p||e in t||K(e,i),function _addComplexStringPropTween(t,e,r,n,i,a,s){var o,u,h,l,f,p,c,d,_=new te(this._pt,t,e,0,1,Qt,null,i),m=0,g=0;for(_.b=r,_.e=n,r+="",(c=~(n+="").indexOf("random("))&&(n=Ta(n)),a&&(a(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match(et)||[];o=et.exec(n);)l=o[0],f=n.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(p=parseFloat(u[g-1]),_._pt={_next:_._pt,p:f||1===g?f:",",s:p,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-p,m:h&&h<4?Math.round:0},m=et.lastIndex);return _.c=m<n.length?n.substring(m,n.length):"",_.fp=s,(nt.test(n)||c)&&(_.e=0),this._pt=_}.call(this,t,e,c,i,d,h||j.stringFilter,l)):(f=new te(this._pt,t,e,+c||0,i-(c||0),"boolean"==typeof p?Gt:Vt,0,d),l&&(f.fp=l),u&&f.modifier(u,this,t),this._pt=f)},$t=function _initTween(t,e){var r,n,i,a,o,u,h,l,f,p,c,d,_=t.vars,m=_.ease,g=_.startAt,v=_.immediateRender,y=_.lazy,b=_.onUpdate,T=_.onUpdateParams,w=_.callbackScope,x=_.runBackwards,k=_.yoyoEase,A=_.keyframes,M=_.autoRevert,O=t._dur,P=t._startAt,C=t._targets,S=t.parent,D=S&&"nested"===S.data?S.parent._targets:C,F="auto"===t._overwrite,B=t.timeline;if(!B||A&&m||(m="none"),t._ease=Dt(m,R.ease),t._yEase=k?St(Dt(!0===k?m:k,R.ease)):0,k&&t._yoyo&&!t._repeat&&(k=t._yEase,t._yEase=t._ease,t._ease=k),!B){if(P&&P.render(-1,!0).kill(),g){if(oa(t._startAt=Xt.set(C,fa({data:"isStart",overwrite:!1,parent:S,immediateRender:!0,lazy:s(y),startAt:null,delay:0,onUpdate:b,onUpdateParams:T,callbackScope:w,stagger:0},g))),v)if(0<e)M||(t._startAt=0);else if(O)return}else if(x&&O)if(P)M||(t._startAt=0);else if(e&&(v=!1),oa(t._startAt=Xt.set(C,dt(ja(_,st),{overwrite:!1,data:"isFromStart",lazy:v&&s(y),immediateRender:v,stagger:0,parent:S}))),v){if(!e)return}else _initTween(t._startAt,E);for(r=ja(_,st),d=(l=C[t._pt=0]?X(C[0]).harness:0)&&_[l.prop],y=O&&s(y)||y&&!O,n=0;n<C.length;n++){if(h=(o=C[n])._gsap||W(C)[n]._gsap,t._ptLookup[n]=p={},ut[h.id]&&ba(),c=D===C?n:D.indexOf(o),l&&!1!==(f=new l).init(o,d||r,t,c,D)&&(t._pt=a=new te(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){p[t]=a}),f.priority&&(u=1)),!l||d)for(i in r)ht[i]&&(f=Bb(i,r,t,c,o,D))?f.priority&&(u=1):p[i]=a=Lt.call(t,o,i,"get",r[i],c,D,0,_.stringFilter);t._op&&t._op[n]&&t.kill(o,t._op[n]),F&&(Et=t,z.killTweensOf(o,p,"started"),Et=0),t._pt&&y&&(ut[h.id]=1)}u&&Ht(t),t._onInit&&t._onInit(t)}t._from=!B&&!!_.runBackwards,t._onUpdate=b,t._initted=1},It=function _parseFuncOrString(t,e,r,i,a){return o(t)?t.call(e,r,i,a):n(t)&&~t.indexOf("random(")?Ta(t):t},Yt=ct+",repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Nt=(Yt+",id,stagger,delay,duration,paused").split(","),Xt=function(A){function Tween(t,e,n){var i;"number"==typeof e&&(n.duration=e,e=n,n=null);var a,o,h,l,f,c,d,_,m=(i=A.call(this,function _inheritDefaults(t){var e=t.parent||z,r=t.keyframes?ga:fa;if(s(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent;return t}(e),n)||this).vars,g=m.duration,v=m.delay,y=m.immediateRender,b=m.stagger,T=m.overwrite,w=m.keyframes,x=m.defaults,k=Q(t)&&p(t[0])?[t]:vt(t);if(i._targets=k.length?W(k):L("GSAP target "+t+" not found. https://greensock.com",!j.nullTargetWarn)||[],i._ptLookup=[],i._overwrite=T,w||b||u(g)||u(v)){if(e=i.vars,(a=i.timeline=new Rt({data:"nested",defaults:x||{}})).kill(),a.parent=_assertThisInitialized(i),w)fa(a.vars.defaults,{ease:"none"}),w.forEach(function(t){return a.to(k,t,">")});else{if(l=k.length,d=b?Ja(b):N,r(b))for(f in b)~Yt.indexOf(f)&&((_=_||{})[f]=b[f]);for(o=0;o<l;o++){for(f in h={},e)Nt.indexOf(f)<0&&(h[f]=e[f]);h.stagger=0,_&&dt(h,_),e.yoyoEase&&!e.repeat&&(h.yoyoEase=e.yoyoEase),c=k[o],h.duration=+It(g,_assertThisInitialized(i),o,c,k),h.delay=(+It(v,_assertThisInitialized(i),o,c,k)||0)-i._delay,!b&&1===l&&h.delay&&(i._delay=v=h.delay,i._start+=v,h.delay=0),a.to(c,h,d(o,c,k))}g=v=0}g||i.duration(g=a.duration())}else i.timeline=0;return!0===T&&(Et=_assertThisInitialized(i),z.killTweensOf(k),Et=0),(y||!g&&!w&&i._start===i.parent._time&&s(y)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(i))&&"nested"!==i.parent.data)&&(i._tTime=-E,i.render(Math.max(0,-v))),i}_inheritsLoose(Tween,A);var t=Tween.prototype;return t.render=function render(t,e,r){var n,i,a,s,o,u,h,l,f,p=this._time,c=this._tDur,d=this._dur,_=c-E<t&&0<=t?c:t<E?0:t;if(d){if(_!==this._tTime||!t||r||this._startAt&&this._zTime<0!=t<0){if(n=_,l=this.timeline,this._repeat){if(s=d+this._rDelay,d<(n=$(_%s))&&(n=d),(a=~~(_/s))&&a===_/s&&(n=d,a--),(u=this._yoyo&&1&a)&&(f=this._yEase,n=d-n),(o=~~(this._tTime/s))&&o===this._tTime/s&&o--,n===p&&!r&&this._initted)return this;a!==o&&this.vars.repeatRefresh&&!this._lock&&(this._lock=r=1,this.render(s*a,!0).invalidate()._lock=0)}if(!this._initted&&va(this,n,r,e))return this;for(this._tTime=_,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(n/d),this._from&&(this.ratio=h=1-h),p||!n||e||bt(this,"onStart"),i=this._pt;i;)i.r(h,i.d),i=i._next;l&&l.render(t<0?t:!n&&u?-E:l._dur*h,e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),bt(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&bt(this,"onRepeat"),_!==c&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,r),!t&&d||!(_||this._ts<0)||oa(this,1),e||t<0&&!p||(bt(this,_===c?"onComplete":"onReverseComplete",!0),this._prom&&this._prom()))}}else!function _renderZeroDurationTween(t,e,r,n){var i,a,s,o=t._zTime<0?0:1,u=e<0?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&((a=~~((l=mt(0,t._tDur,e))/h))&&a===l/h&&a--,(s=~~(t._tTime/h))&&s===t._tTime/h&&s--,a!==s&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),(t._initted||!va(t,e,n,r))&&(u!==o||n||t._zTime===E||!e&&t._zTime)){for(t._zTime=e||(r?E:0),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,r||bt(t,"onStart"),i=t._pt;i;)i.r(u,i.d),i=i._next;!u&&t._startAt&&!t._onUpdate&&t._start&&t._startAt.render(e,!0,n),t._onUpdate&&!r&&bt(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&bt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(t.ratio&&oa(t,1),r||(bt(t,t.ratio?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}}(this,t,e,r);return this},t.targets=function targets(){return this._targets},t.invalidate=function invalidate(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),A.prototype.invalidate.call(this)},t.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return Ya(this);if(this.timeline)return this.timeline.killTweensOf(t,e,!!Et),this;var r,i,a,s,o,u,h,l=this._targets,f=t?vt(t):l,p=this._ptLookup,c=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(l,f))return Ya(this);for(r=this._op=this._op||[],"all"!==e&&(n(e)&&(o={},Z(e,function(t){return o[t]=1}),e=o),e=function _addAliasesToVars(t,e){var r,n,i,a,s=t[0]?X(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(n in r=dt({},e),o)if(n in r)for(i=(a=o[n].split(",")).length;i--;)r[a[i]]=r[n];return r}(l,e)),h=l.length;h--;)if(~f.indexOf(l[h]))for(o in i=p[h],"all"===e?(r[h]=e,s=i,a={}):(a=r[h]=r[h]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||(na(this,u,"_pt"),delete i[o])),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&c&&Ya(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return new Tween(t,aa(arguments,1))},Tween.delayedCall=function delayedCall(t,e,r,n){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},Tween.fromTo=function fromTo(t,e,r){return new Tween(t,aa(arguments,2))},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return z.killTweensOf(t,e,r)},Tween}(zt);fa(Xt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Z("staggerTo,staggerFrom,staggerFromTo",function(r){Xt[r]=function(){var t=new Rt,e=vt(arguments);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function Mb(t,e,r){return t.setAttribute(e,r)}function Ub(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)}var jt=function _setterPlain(t,e,r){return t[e]=r},Ut=function _setterFunc(t,e,r){return t[e](r)},Zt=function _setterFuncWithParam(t,e,r,n){return t[e](n.fp,r)},qt=function _getSetter(t,e){return o(t[e])?Ut:q(t[e])&&t.setAttribute?Mb:jt},Vt=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Gt=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Qt=function _renderComplexString(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},Wt=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Kt=function _addPluginModifier(t,e,r,n){for(var i,a=this._pt;a;)i=a._next,a.p===n&&a.modifier(t,e,r),a=i},Jt=function _killPropTweensOf(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?na(this,n,"_pt"):n.dep||(e=1),n=r;return!e},Ht=function _sortPropTweensByPriority(t){for(var e,r,n,i,a=t._pt;a;){for(e=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:i)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:i=a,a=e}t._pt=n},te=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=Ub,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,n,i,a,s,o,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=a||Vt,this.d=s||this,this.set=o||jt,this.pr=u||0,(this._next=t)&&(t._prev=this)}Z(ct+",parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert",function(t){st[t]=1,"on"===t.substr(0,2)&&(st[t+"Params"]=1)}),at.TweenMax=at.TweenLite=Xt,at.TimelineLite=at.TimelineMax=Rt,z=new Rt({sortChildren:!1,defaults:R,autoRemoveChildren:!0,id:"root"}),j.stringFilter=gb;var ee={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=o(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:N,render:Wt,add:Lt,kill:Jt,modifier:Kt,rawVars:0},a={targetTest:0,get:0,getSetter:qt,aliases:{},register:0};if(Mt(),t!==n){if(ht[e])return;fa(n,fa(ja(t,i),a)),dt(n.prototype,dt(i,ja(t,a))),ht[n.prop=e]=n,t.targetTest&&(pt.push(n),st[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}M(e,n),t.register&&t.register(re,n,te)}(t)})},timeline:function timeline(t){return new Rt(t)},getTweensOf:function getTweensOf(t,e){return z.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,r){n(i)&&(i=vt(i)[0]);var a=X(i||{}).get,s=e?ea:da;return"native"===e&&(e=""),i?t?s((ht[t]&&ht[t].get||a)(i,t,e,r)):function(t,e,r){return s((ht[t]&&ht[t].get||a)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,n){if(1<(r=vt(r)).length){var i=r.map(function(t){return re.quickSetter(t,e,n)}),a=i.length;return function(t){for(var e=a;e--;)i[e](t)}}r=r[0]||{};var s=ht[e],o=X(r),u=s?function(t){var e=new s;c._pt=0,e.init(r,n?t+n:t,c,0,[r]),e.render(1,e),c._pt&&Wt(1,c)}:o.set(r,e);return s?u:function(t){return u(r,e,n?t+n:t,o,1)}},isTweening:function isTweening(t){return 0<z.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=Dt(t.ease,R.ease)),ia(R,t||{})},config:function config(t){return ia(j,t||{})},registerEffect:function registerEffect(t){var i=t.name,n=t.effect,e=t.plugins,a=t.defaults,s=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!ht[t]&&!at[t]&&L(i+" effect requires "+t+" plugin.")}),lt[i]=function(t,e){return n(vt(t),fa(e||{},a))},s&&(Rt.prototype[i]=function(t,e,n){return this.add(lt[i](t,r(e)?e:(n=e)&&{}),n)})},registerEase:function registerEase(t,e){Ot[t]=Dt(e)},parseEase:function parseEase(t,e){return arguments.length?Dt(t,e):Ot},getById:function getById(t){return z.getById(t)},exportRoot:function exportRoot(t,e){void 0===t&&(t={});var r,n,i=new Rt(t);for(i.smoothChildTiming=s(t.smoothChildTiming),z.remove(i),i._dp=0,i._time=i._tTime=z._time,r=z._first;r;)n=r._next,!e&&!r._dur&&r instanceof Xt&&r.vars.onComplete===r._targets[0]||ua(i,r,r._start-r._delay),r=n;return ua(z,i,0),i},utils:{wrap:function wrap(e,t,r){var n=t-e;return Q(e)?Qa(e,wrap(0,e.length),t):Ba(r,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function wrapYoyo(e,t,r){var n=t-e,i=2*n;return Q(e)?Qa(e,wrapYoyo(0,e.length-1),t):Ba(r,function(t){return e+(n<(t=(i+(t-e)%i)%i)?i-t:t)})},distribute:Ja,random:Ma,snap:La,normalize:function normalize(t,e,r){return yt(t,e,0,1,r)},getUnit:Da,clamp:function clamp(e,r,t){return Ba(t,function(t){return mt(e,r,t)})},splitColor:cb,toArray:vt,mapRange:yt,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Da(t))}},interpolate:function interpolate(e,r,t,i){var a=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!a){var s,o,u,h,l,f=n(e),p={};if(!0===t&&(i=1)&&(t=null),f)e={p:e},r={p:r};else if(Q(e)&&!Q(r)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(interpolate(e[o-1],e[o]));h--,a=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=r}else i||(e=dt(Q(e)?[]:{},e));if(!u){for(s in r)Lt.call(p,e,s,"get",r[s]);a=function func(t){return Wt(t,p)||(f?e.p:e)}}}return Ba(t,a)}},install:J,effects:lt,ticker:At,updateRoot:Rt.updateRoot,plugins:ht,globalTimeline:z,core:{PropTween:te,globals:M,Tween:Xt,Timeline:Rt,Animation:zt,getCache:X}};Z("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return ee[t]=Xt[t]}),At.add(Rt.updateRoot),c=ee.to({},{duration:0});function Yb(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function $b(t,a){return{name:t,rawVars:1,init:function init(t,i,e){e._onInit=function(t){var e,r;if(n(i)&&(e={},Z(i,function(t){return e[t]=1}),i=e),a){for(r in e={},i)e[r]=a(i[r]);i=e}!function _addModifiers(t,e){var r,n,i,a=t._targets;for(r in e)for(n=a.length;n--;)(i=(i=t._ptLookup[n][r])&&i.d)&&(i._pt&&(i=Yb(i,r)),i&&i.modifier&&i.modifier(e[r],t,a[n],r))}(t,i)}}}}var re=ee.registerPlugin({name:"attr",init:function init(t,e,r,n,i){for(var a in e)this.add(t,"setAttribute",(t.getAttribute(a)||0)+"",e[a],n,i,0,0,a),this._props.push(a)}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},$b("roundProps",Ka),$b("modifiers"),$b("snap",La))||ee;Xt.version=Rt.version=re.version="3.0.2",f=1,t()&&Mt();function Kc(t,e){return e.set(e.t,e.p,~~(1e3*(e.s+e.c*t))/1e3+e.u,e)}function Lc(t,e){return e.set(e.t,e.p,1===t?e.e:~~(1e3*(e.s+e.c*t))/1e3+e.u,e)}function Mc(t,e){return e.set(e.t,e.p,t?~~(1e3*(e.s+e.c*t))/1e3+e.u:e.b,e)}function Nc(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function Oc(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Pc(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function Qc(t,e,r){return t.style[e]=r}function Rc(t,e,r){return t.style.setProperty(e,r)}function Sc(t,e,r){return t._gsap[e]=r}function Tc(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function Uc(t,e,r,n,i){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(i,a)}function Vc(t,e,r,n,i){var a=t._gsap;a[e]=r,a.renderTransform(i,a)}function Zc(t,e){var r=ie.createElementNS?ie.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ie.createElement(t);return r.style?r:ie.createElement(t)}function $c(t,e,r){var n=getComputedStyle(t);return n[e]||n.getPropertyValue(e.replace(Ee,"-$1").toLowerCase())||n.getPropertyValue(e)||!r&&$c(t,Ue(e)||e,1)||""}function bd(){!function _windowExists(){return"undefined"!=typeof window}()||(ne=window,ie=ne.document,ae=ie.documentElement,oe=Zc("div")||{style:{}},ue=Zc("div"),Ne=Ue(Ne),Xe=Ue(Xe),oe.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",le=!!Ue("perspective"),se=1)}function dd(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function ed(e){var r;try{r=e.getBBox()}catch(t){r=function _getBBoxHack(t){var e,r=Zc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,a=this.style.cssText;if(ae.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=_getBBoxHack}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i?n.insertBefore(this,i):n.appendChild(this),ae.removeChild(r),this.style.cssText=a,e}.call(e,!0)}return!r||r.width||r.x||r.y?r:{x:+dd(e,["x","cx","x1"])||0,y:+dd(e,["y","cy","y1"])||0,width:0,height:0}}function fd(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ed(t))}function gd(t,e){if(e){var r=t.style;e in Fe&&(e=Ne),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(Ee,"-$1").toLowerCase())):r.removeAttribute(e)}}function hd(t,e,r,n,i,a){var s=new te(t._pt,e,r,0,1,a?Pc:Oc);return(t._pt=s).b=n,s.e=i,t._props.push(r),s}function jd(t,e,r,n){var i,a,s,o,u=parseFloat(r),h=(r+"").substr((u+"").length)||"px",l=oe.style,f=$e.test(e),p="svg"===t.tagName.toLowerCase(),c=(p?"client":"offset")+(f?"Width":"Height"),d="px"===n;return n===h||Ze[n]||Ze[h]?u:(o=t.getCTM&&fd(t),"%"===n&&Fe[e]?$(u/(o?t.getBBox()[f?"width":"height"]:t[c])*100):(l[f?"width":"height"]=100+(d?h:n),a="em"===n&&t.appendChild&&!p?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==ie&&a.appendChild||(a=ie.body),(s=a._gsap)&&"%"===n&&s.width&&f&&s.time===At.time?i=s.width*u/100:(a.appendChild(oe),i=oe[c],a.removeChild(oe),f&&"%"===n&&((s=X(a)).time=At.time,s.width=i/u*100)),$(d?i*u/100:100/i*u)))}function kd(t,e,r,n){var i;return se||bd(),e in Ye&&~(e=Ye[e]).indexOf(",")&&(e=e.split(",")[0]),Fe[e]?(i=We(t,n),i="transformOrigin"!==e?i[e]:Ke($c(t,Xe))+i.zOrigin+"px"):(i=t.style[e])&&"auto"!==i&&!n&&!~i.indexOf("calc(")||(i=$c(t,e)||Y(t,e)),r?jd(t,e,i,r)+r:i}function ld(t,e,r,n){var i,a,s,o,u,h,l,f,p,c,d,_,m=new te(this._pt,t.style,e,0,1,Qt),g=0,v=0;if(m.b=r,m.e=n,r+="","auto"===(n+="")&&(t.style[e]=n,n=$c(t,e)||n,t.style[e]=r),gb(i=[r,n]),n=i[1],s=(r=i[0]).match(Le)||[],(n.match(Le)||[]).length){for(;a=Le.exec(n);)l=a[0],p=n.substring(g,a.index),u?u=(u+1)%5:"rgba("===p.substr(-5)&&(u=1),l!==(h=s[v++]||"")&&(o=parseFloat(h)||0,d=h.substr((o+"").length),(_="="===l.charAt(1)?+(l.charAt(0)+"1"):0)&&(l=l.substr(2)),f=parseFloat(l),c=l.substr((f+"").length),g=Le.lastIndex-c.length,c||(c=c||j.units[e]||d,g===n.length&&(n+=c,m.e+=c)),d!==c&&(o=jd(t,e,h,c)||0),m._pt={_next:m._pt,p:p||1===v?p:",",s:o,c:_?_*f:f-o,m:u&&u<4?Math.round:0});m.c=g<n.length?n.substring(g,n.length):""}else m.r="display"===e&&"none"===n?Pc:Oc;return nt.test(n)&&(m.e=0),this._pt=m}function nd(t){var e=t.split(" "),r=e[0],n=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==n&&"right"!==n||(t=r,r=n,n=t),e[0]=qe[r]||r,e[1]=qe[n]||n,e.join(" ")}function od(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,a=e.t,s=a.style,o=e.u;if("all"===o||!0===o)s.cssText="",n=1;else for(i=(o=o.split(",")).length;-1<--i;)r=o[i],Fe[r]&&(n=1,r="transformOrigin"===r?Xe:Ne),gd(a,r);n&&(gd(a,Ne),(n=a._gsap)&&(n.svg&&a.removeAttribute("transform"),n.uncache=1))}}function sd(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function td(t){var e=$c(t,Ne);return sd(e)?Ge:e.substr(7).match(tt).map($)}function ud(t,e){var r,n,i,a,s=t._gsap,o=t.style,u=td(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Ge:u:(u!==Ge||t.offsetParent||t===ae||s.svg||(i=o.display,o.display="block",(r=t.parentNode)&&t.offsetParent||(a=1,n=t.nextSibling,ae.appendChild(t)),u=td(t),i?o.display=i:gd(t,"display"),a&&(n?r.insertBefore(t,n):r?r.appendChild(t):ae.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function vd(t,e,r,n,i,a){var s,o,u,h=t._gsap,l=i||ud(t,!0),f=h.xOrigin||0,p=h.yOrigin||0,c=h.xOffset||0,d=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],b=l[5],T=e.split(" "),w=parseFloat(T[0])||0,x=parseFloat(T[1])||0;r?l!==Ge&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*b-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*b-v*y)/o,x=u):(w=(s=ed(t)).x+(~T[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(T[1]||T[0]).indexOf("%")?x/100*s.height:x)),n||!1!==n&&h.smooth?(y=w-f,b=x-p,h.xOffset=c+(y*_+b*g)-y,h.yOffset=d+(y*m+b*v)-b):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!n,h.origin=e,h.originIsAbsolute=!!r,t.style[Xe]="0px 0px",a&&(hd(a,h,"xOrigin",f,w),hd(a,h,"yOrigin",p,x),hd(a,h,"xOffset",c,h.xOffset),hd(a,h,"yOffset",d,h.yOffset))}function yd(t,e,r){var n=Da(e);return $(parseFloat(e)+parseFloat(jd(t,"x",r+"px",n)))+n}function Fd(t,e,r,i,a,s){var o,u,h=360,l=n(a),f=parseFloat(a)*(l&&~a.indexOf("rad")?Be:1),p=s?f*s:f-i,c=i+p+"deg";return l&&("short"===(o=a.split("_")[1])&&(p%=h)!==p%180&&(p+=p<0?h:-h),"cw"===o&&p<0?p=(p+36e9)%h-~~(p/h)*h:"ccw"===o&&0<p&&(p=(p-36e9)%h-~~(p/h)*h)),t._pt=u=new te(t._pt,e,r,i,p,Lc),u.e=c,u.u="deg",t._props.push(r),u}function Gd(t,e,r){var n,i,a,s,o,u,h,l=ue.style,f=r._gsap;for(i in l.cssText=getComputedStyle(r).cssText+";position:absolute;display:block;",l[Ne]=e,ie.body.appendChild(ue),n=We(ue,1),Fe)(a=f[i])!==(s=n[i])&&"perspective"!==i&&(o=Da(a)!==(h=Da(s))?jd(r,i,a,h):parseFloat(a),u=parseFloat(s),t._pt=new te(t._pt,f,i,o,u-o,Kc),t._pt.u=h,t._props.push(i));ie.body.removeChild(ue)}var ne,ie,ae,se,oe,ue,he,le,fe,pe,ce,de=Ot.Power0,_e=Ot.Power1,me=Ot.Power2,ge=Ot.Power3,ve=Ot.Power4,ye=Ot.Linear,be=Ot.Quad,Te=Ot.Cubic,we=Ot.Quart,xe=Ot.Quint,ke=Ot.Strong,Ae=Ot.Elastic,Me=Ot.Back,Oe=Ot.SteppedEase,Pe=Ot.Bounce,Ce=Ot.Sine,Se=Ot.Expo,De=Ot.Circ,Fe={},Be=180/Math.PI,ze=Math.PI/180,Re=Math.atan2,Ee=/([A-Z])/g,Le=/[-+=\.]*\d+[\.e-]*\d*[a-z%]*/g,$e=/(?:left|right|width|margin|padding|x)/i,Ie=/[\s,\(]\S/,Ye={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ne="transform",Xe=Ne+"Origin",je="O,Moz,ms,Ms,Webkit".split(","),Ue=function _checkPropPrefix(t,e){var r=(e||oe).style,n=5;if(t in r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(je[n]+t in r););return n<0?null:(3===n?"ms":0<=n?je[n]:"")+t},Ze={deg:1,rad:1,turn:1},qe={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ve={clearProps:function clearProps(t,e,r,n,i){if("isFromStart"!==i.data){var a=t._pt=new te(t._pt,e,r,0,0,od);return a.u=n,a.pr=-10,a.tween=i,t._props.push(r),1}}},Ge=[1,0,0,1,0,0],Qe={},We=function _parseTransform(t,e){var r=t._gsap||new Bt(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,a,s,o,u,h,l,f,p,c,d,_,m,g,v,y,b,T,w,x,k,A,M,O,P,C,S,D,F,B=t.style,z=r.scaleX<0,R=r.xOrigin||0,E=r.yOrigin||0,L="deg",I=$c(t,Xe)||"0";return n=i=a=u=h=l=f=p=c=0,s=o=1,r.svg=!(!t.getCTM||!fd(t)),d=ud(t,r.svg),r.svg&&vd(t,I,r.originIsAbsolute,!1!==r.smooth,d),d!==Ge&&(v=d[0],y=d[1],b=d[2],T=d[3],n=w=d[4],i=x=d[5],6===d.length?(s=Math.sqrt(v*v+y*y),o=Math.sqrt(T*T+b*b),u=v||y?Re(y,v)*Be:r.rotation||0,f=b||T?Re(b,T)*Be+u:r.skewX||0,r.svg&&(n-=R-(R*v+E*b),i-=E-(R*y+E*T))):(F=d[6],S=d[7],O=d[8],P=d[9],C=d[10],D=d[11],n=d[12],i=d[13],a=d[14],h=(_=Re(F,C))*Be,_&&(k=w*(m=Math.cos(-_))+O*(g=Math.sin(-_)),A=x*m+P*g,M=F*m+C*g,O=w*-g+O*m,P=x*-g+P*m,C=F*-g+C*m,D=S*-g+D*m,w=k,x=A,F=M),l=(_=Re(-b,C))*Be,_&&(m=Math.cos(-_),D=T*(g=Math.sin(-_))+D*m,v=k=v*m-O*g,y=A=y*m-P*g,b=M=b*m-C*g),u=(_=Re(y,v))*Be,_&&(k=v*(m=Math.cos(_))+y*(g=Math.sin(_)),A=w*m+x*g,y=y*m-v*g,x=x*m-w*g,v=k,w=A),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=$(Math.sqrt(v*v+y*y+b*b)),o=$(Math.sqrt(x*x+F*F)),_=Re(w,x),f=2e-4<Math.abs(_)?_*Be:0,c=D?1/(D<0?-D:D):0),r.svg&&(d=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!sd($c(t,Ne)),d&&t.setAttribute("transform",d))),90<Math.abs(f)&&Math.abs(f)<270&&(z?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),r.x=((r.xPercent=n&&Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)?0:n)+"px",r.y=((r.yPercent=i&&Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)?0:i)+"px",r.z=a+"px",r.scaleX=$(s),r.scaleY=$(o),r.rotation=$(u)+L,r.rotationX=$(h)+L,r.rotationY=$(l)+L,r.skewX=f+L,r.skewY=p+L,r.transformPerspective=c+"px",(r.zOrigin=parseFloat(I.split(" ")[2])||0)&&(B[Xe]=Ke(I)),r.xOffset=r.yOffset=0,r.force3D=j.force3D,r.renderTransform=r.svg?nr:le?rr:Je,r.uncache=0,r},Ke=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},Je=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,rr(t,e)},He="0deg",tr="0px",er=") ",rr=function _renderCSSTransforms(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,p=r.skewY,c=r.scaleX,d=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",b="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==He||h!==He)){var T,w=parseFloat(h)*ze,x=Math.sin(w),k=Math.cos(w);w=parseFloat(l)*ze,T=Math.cos(w),a=yd(g,a,x*T*-v),s=yd(g,s,-Math.sin(w)*-v),o=yd(g,o,k*T*-v+v)}(n||i)&&(y="translate("+n+"%, "+i+"%) "),!b&&a===tr&&s===tr&&o===tr||(y+=o!==tr||b?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+er),_!==tr&&(y+="perspective("+_+er),u!==He&&(y+="rotate("+u+er),h!==He&&(y+="rotateY("+h+er),l!==He&&(y+="rotateX("+l+er),f===He&&p===He||(y+="skew("+f+", "+p+er),1===c&&1===d||(y+="scale("+c+", "+d+er),g.style[Ne]=y||"translate(0, 0)"},nr=function _renderSVGTransforms(t,e){var r,n,i,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,p=o.rotation,c=o.skewX,d=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,b=o.xOffset,T=o.yOffset,w=o.forceCSS,x=parseFloat(l),k=parseFloat(f);p=parseFloat(p),c=parseFloat(c),(d=parseFloat(d))&&(c+=d=parseFloat(d),p+=d),p||c?(p*=ze,c*=ze,r=Math.cos(p)*_,n=Math.sin(p)*_,i=Math.sin(p-c)*-m,a=Math.cos(p-c)*m,c&&(d*=ze,s=Math.tan(c-d),i*=s=Math.sqrt(1+s*s),a*=s,d&&(s=Math.tan(d),r*=s=Math.sqrt(1+s*s),n*=s)),r=$(r),n=$(n),i=$(i),a=$(a)):(r=_,a=m,n=i=0),(x&&!~(l+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(x=jd(g,"x",l,"px"),k=jd(g,"y",f,"px")),(v||y||b||T)&&(x=$(x+v-(v*r+y*i)+b),k=$(k+y-(v*n+y*a)+T)),(u||h)&&(s=g.getBBox(),x=$(x+u/100*s.width),k=$(k+h/100*s.height)),s="matrix("+r+","+n+","+i+","+a+","+x+","+k+")",g.setAttribute("transform",s),w&&(g.style[Ne]=s)},ir={name:"css",register:bd,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,r,n,i){var a,s,o,u,h,l,f,p,c,d,_,m,g,v,y,b=this._props,T=t.style;for(f in se||bd(),e)if("autoRound"!==f&&(s=e[f],!ht[f]||!Bb(f,e,r,n,t,i)))if(l=Ve[f],"function"===(h=typeof s)&&(h=typeof(s=s.call(r,n,t,i))),"string"===h&&~s.indexOf("random(")&&(s=Ta(s)),l)l(this,t,f,s,r)&&(y=1);else if("--"===f.substr(0,2))this.add(T,"setProperty",getComputedStyle(t).getPropertyValue(f)+"",s+"",n,i,0,0,f);else{if(a=kd(t,f),u=parseFloat(a),(d="string"===h&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),o=parseFloat(s),f in Ye&&("autoAlpha"===f&&(1===u&&"hidden"===kd(t,"visibility")&&o&&(u=0),hd(this,T,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&~(f=Ye[f]).indexOf(",")&&(f=f.split(",")[0])),_=f in Fe)if(m||(g=t._gsap,v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new te(this._pt,T,Ne,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===f)this._pt=new te(this._pt,g,"scaleY",g.scaleY,d?d*o:o-g.scaleY),b.push("scaleY",f),f+="X";else{if("transformOrigin"===f){s=nd(s),g.svg?vd(t,s,0,v,0,this):((c=parseFloat(s.split(" ")[2]))!==g.zOrigin&&hd(this,g,"zOrigin",g.zOrigin,c),hd(this,T,f,Ke(a),Ke(s)));continue}if("svgOrigin"===f){vd(t,s,1,v,0,this);continue}if(f in Qe){Fd(this,g,f,u,s,d);continue}if("smoothOrigin"===f){hd(this,g,"smooth",g.smooth,s);continue}if("force3D"===f){g[f]=s;continue}if("transform"===f){Gd(this,s,t);continue}}else f in T||(f=Ue(f)||f);if(_||(o||0===o)&&(u||0===u)&&!Ie.test(s)&&f in T)(p=(a+"").substr((u+"").length))!==(c=(s+"").substr((o+"").length)||(f in j.units?j.units[f]:p))&&(u=jd(t,f,a,c)),this._pt=new te(this._pt,_?g:T,f,u,d?d*o:o-u,"px"!==c||!1===e.autoRound||_?Kc:Nc),this._pt.u=c||0,p!==c&&(this._pt.b=a,this._pt.r=Mc);else if(f in T)ld.call(this,t,f,a,s);else{if(!(f in t)){K(f,s);continue}this.add(t,f,t[f],s,n,i)}b.push(f)}y&&Ht(this)},get:kd,aliases:Ye,getSetter:function getSetter(t,e,r){return e in Fe&&e!==Xe&&(t._gsap.x||kd(t,"x"))?r&&he===r?"scale"===e?Tc:Sc:(he=r||{})&&("scale"===e?Uc:Vc):t.style&&!q(t.style[e])?Qc:~e.indexOf("-")?Rc:qt(t,e)}};re.utils.checkPrefix=Ue,ce=Z((fe="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(pe="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Fe[t]=1}),Z(pe,function(t){j.units[t]="deg",Qe[t]=1}),Ye[ce[13]]=fe+","+pe,Z("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Ye[e[1]]=ce[e[0]]}),Z("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){j.units[t]="px"}),re.registerPlugin(ir);var ar=re.registerPlugin(ir)||re;e.Back=Me,e.Bounce=Pe,e.CSSPlugin=ir,e.Circ=De,e.Cubic=Te,e.Elastic=Ae,e.Expo=Se,e.Linear=ye,e.Power0=de,e.Power1=_e,e.Power2=me,e.Power3=ge,e.Power4=ve,e.Quad=be,e.Quart=we,e.Quint=xe,e.Sine=Ce,e.SteppedEase=Oe,e.Strong=ke,e.TimelineLite=Rt,e.TimelineMax=Rt,e.TweenLite=Xt,e.TweenMax=Xt,e.default=ar,e.gsap=ar,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=gsap.min.js.map
diff --git a/dist/gsap.min.js.map b/dist/gsap.min.js.map
index 81a0bf1..70dd49f 100644
--- a/dist/gsap.min.js.map
+++ b/dist/gsap.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"gsap.min.js","sources":["../src/gsap-core.js","../src/CSSPlugin.js","../src/index.js"],"sourcesContent":["/*!\n * GSAP 3.0.1\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _config = {\n\t\tautoSleep: 120,\n\t\tforce3D: \"auto\",\n\t\tnullTargetWarn: 1,\n\t\tunits: {lineHeight:\"\"}\n\t},\n\t_defaults = {\n\t\tduration: .5,\n\t\toverwrite: false,\n\t\tdelay: 0\n\t},\n\t_bigNum = 1e8,\n\t_tinyNum = 1 / _bigNum,\n\t_2PI = Math.PI * 2,\n\t_HALF_PI = _2PI / 4,\n\t_gsID = 0,\n\t_sqrt = Math.sqrt,\n\t_cos = Math.cos,\n\t_sin = Math.sin,\n\t_isString = value => typeof(value) === \"string\",\n\t_isFunction = value => typeof(value) === \"function\",\n\t_isNumber = value => typeof(value) === \"number\",\n\t_isUndefined = value => typeof(value) === \"undefined\",\n\t_isObject = value => typeof(value) === \"object\",\n\t_isNotFalse = value => value !== false,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_isFuncOrString = value => _isFunction(value) || _isString(value),\n\t_isArray = Array.isArray,\n\t_strictNumExp = /(?:-?\\.?\\d|\\.)+/gi, //only numbers (including negatives and decimals) but NOT relative values.\n\t_numExp = /[-+=\\.]*\\d+[\\.e\\-\\+]*\\d*[e\\-\\+]*\\d*/gi, //finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.\n\t_complexStringNumExp = /[-+=\\.]*\\d+(?:\\.|e-|e)*\\d*/gi, //duplicate so that while we're looping through matches from exec(), it doesn't contaminate the lastIndex of _numExp which we use to search for colors too.\n\t_parenthesesExp = /\\(([^()]+)\\)/i, //finds the string between parentheses.\n\t_relExp = /[\\+-]=-?[\\.\\d]+/,\n\t_delimitedValueExp = /[#\\-+\\.]*\\b[a-z\\d-=+%.]+/gi,\n\t_globalTimeline, _win, _coreInitted, _doc,\n\t_globals = {},\n\t_installScope = {},\n\t_coreReady,\n\t_install = scope => (_installScope = _merge(scope, _globals)) && gsap,\n\t_missingPlugin = (property, value) => console.warn(\"Invalid\", property, \"tween of\", value, \"Missing plugin? gsap.registerPlugin()\"),\n\t_warn = (message, suppress) => !suppress && console.warn(message),\n\t_addGlobal = (name, obj) => (name && (_globals[name] = obj) && (_installScope && (_installScope[name] = obj))) || _globals,\n\t_emptyFunc = () => 0,\n\t_reservedProps = {},\n\t_lazyTweens = [],\n\t_lazyLookup = {},\n\t_plugins = {},\n\t_effects = {},\n\t_nextGCFrame = 30,\n\t_harnessPlugins = [],\n\t_callbackNames = \"onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt\",\n\t_harness = targets => {\n\t\tlet target = targets[0],\n\t\t\tharnessPlugin, i;\n\t\tif (!_isObject(target) && !_isFunction(target)) {\n\t\t\treturn _isArray(targets) ? targets : [targets];\n\t\t}\n\t\tif (!(harnessPlugin = (target._gsap || {}).harness)) {\n\t\t\ti = _harnessPlugins.length;\n\t\t\twhile (i-- && !_harnessPlugins[i].targetTest(target)) {\t}\n\t\t\tharnessPlugin = _harnessPlugins[i];\n\t\t}\n\t\ti = targets.length;\n\t\twhile (i--) {\n\t\t\ttargets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin));\n\t\t}\n\t\treturn targets;\n\t},\n\t_getCache = target => target._gsap || _harness(toArray(target))[0]._gsap,\n\t_getProperty = (target, property) => {\n\t\tlet currentValue = target[property];\n\t\treturn _isFunction(currentValue) ? target[property]() : (_isUndefined(currentValue) && target.getAttribute(property)) || currentValue;\n\t},\n\t_forEachName = (names, func) => ((names = names.split(\",\")).forEach(func)) || names, //split a comma-delimited list of names into an array, then run a forEach() function and return the split array (this is just a way to consolidate/shorten some code).\n\t_round = value => Math.round(value * 10000) / 10000,\n\t_arrayContainsAny = (toSearch, toFind) => { //searches one array to find matches for any of the items in the toFind array. As soon as one is found, it returns true. It does NOT return all the matches; it's simply a boolean search.\n\t\tlet l = toFind.length,\n\t\t\ti = 0;\n\t\tfor (; toSearch.indexOf(toFind[i]) < 0 && ++i < l;) { }\n\t\treturn (i < l);\n\t},\n\t_parseVars = (params, type, parent) => { //reads the arguments passed to one of the key methods and figures out if the user is defining things with the OLD/legacy syntax where the duration is the 2nd parameter, and then it adjusts things accordingly and spits back the corrected vars object (with the duration added if necessary, as well as runBackwards or startAt or immediateRender). type 0 = to()/staggerTo(), 1 = from()/staggerFrom(), 2 = fromTo()/staggerFromTo()\n\t\tlet isLegacy = _isNumber(params[1]),\n\t\t\tvarsIndex = (isLegacy ? 2 : 1) + (type < 2 ? 0 : 1),\n\t\t\tvars = params[varsIndex],\n\t\t\ti;\n\t\tif (isLegacy) {\n\t\t\tvars.duration = params[1];\n\t\t}\n\t\tif (type === 1) {\n\t\t\tvars.runBackwards = 1;\n\t\t\tvars.immediateRender = _isNotFalse(vars.immediateRender);\n\t\t} else if (type === 2) {\n\t\t\ti = params[varsIndex - 1]; //\"from\" vars\n\t\t\tvars.startAt = i;\n\t\t\tvars.immediateRender = _isNotFalse(vars.immediateRender);\n\t\t}\n\t\tvars.parent = parent;\n\t\treturn vars;\n\t},\n\t_lazyRender = () => {\n\t\tlet l = _lazyTweens.length,\n\t\t\ta = _lazyTweens.slice(0),\n\t\t\ti, tween;\n\t\t_lazyLookup = {};\n\t\t_lazyTweens.length = 0;\n\t\tfor (i = 0; i < l; i++) {\n\t\t\ttween = a[i];\n\t\t\tif (tween && tween._lazy) {\n\t\t\t\ttween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0;\n\t\t\t}\n\t\t}\n\t},\n\t_lazySafeRender = (animation, time, suppressEvents, force) => {\n\t\tif (_lazyTweens.length) {\n\t\t\t_lazyRender();\n\t\t}\n\t\tanimation.render(time, suppressEvents, force);\n\t\tif (_lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.\n\t\t\t_lazyRender();\n\t\t}\n\t},\n\t_numericIfPossible = value => {\n\t\tlet n = parseFloat(value);\n\t\treturn n || n === 0 ? n : value;\n\t},\n\t_passThrough = p => p,\n\t_setDefaults = (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\tif (!(p in obj)) {\n\t\t\t\tobj[p] = defaults[p];\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t},\n\t_setKeyframeDefaults = (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\tif (!(p in obj) && p !== \"duration\" && p !== \"ease\") {\n\t\t\t\tobj[p] = defaults[p];\n\t\t\t}\n\t\t}\n\t},\n\t_merge = (base, toMerge) => {\n\t\tfor (let p in toMerge) {\n\t\t\tbase[p] = toMerge[p];\n\t\t}\n\t\treturn base;\n\t},\n\t_mergeDeep = (base, toMerge) => {\n\t\tfor (let p in toMerge) {\n\t\t\tbase[p] = _isObject(toMerge[p]) ? _mergeDeep(base[p] || (base[p] = {}), toMerge[p]) : toMerge[p];\n\t\t}\n\t\treturn base;\n\t},\n\t_copyExcluding = (obj, excluding) => {\n\t\tlet copy = {},\n\t\t\tp;\n\t\tfor (p in obj) {\n\t\t\tif (!(p in excluding)) {\n\t\t\t\tcopy[p] = obj[p];\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t},\n\t_inheritDefaults = vars => {\n\t\tlet parent = vars.parent || _globalTimeline,\n\t\t\tfunc = vars.keyframes ? _setKeyframeDefaults : _setDefaults;\n\t\tif (_isNotFalse(vars.inherit)) {\n\t\t\twhile (parent) {\n\t\t\t\tfunc(vars, parent.vars.defaults);\n\t\t\t\tparent = parent.parent;\n\t\t\t}\n\t\t}\n\t\treturn vars;\n\t},\n\t_arraysMatch = (a1, a2) => {\n\t\tlet i = a1.length,\n\t\t\tmatch = i === a2.length;\n\t\twhile (match && i-- && a1[i] === a2[i]) { }\n\t\treturn i < 0;\n\t},\n\t_addLinkedListItem = (parent, child, firstProp = \"_first\", lastProp = \"_last\", sortBy) => {\n\t\tlet prev = parent[lastProp],\n\t\t\tt;\n\t\tif (sortBy) {\n\t\t\tt = child[sortBy];\n\t\t\twhile (prev && prev[sortBy] > t) {\n\t\t\t\tprev = prev._prev;\n\t\t\t}\n\t\t}\n\t\tif (prev) {\n\t\t\tchild._next = prev._next;\n\t\t\tprev._next = child;\n\t\t} else {\n\t\t\tchild._next = parent[firstProp];\n\t\t\tparent[firstProp] = child;\n\t\t}\n\t\tif (child._next) {\n\t\t\tchild._next._prev = child;\n\t\t} else {\n\t\t\tparent[lastProp] = child;\n\t\t}\n\t\tchild._prev = prev;\n\t\tchild.parent = parent;\n\t\treturn child;\n\t},\n\t_removeLinkedListItem = (parent, child, firstProp = \"_first\", lastProp = \"_last\") => {\n\t\tlet prev = child._prev,\n\t\t\tnext = child._next;\n\t\tif (prev) {\n\t\t\tprev._next = next;\n\t\t} else if (parent[firstProp] === child) {\n\t\t\tparent[firstProp] = next;\n\t\t}\n\t\tif (next) {\n\t\t\tnext._prev = prev;\n\t\t} else if (parent[lastProp] === child) {\n\t\t\tparent[lastProp] = prev;\n\t\t}\n\t\tchild._dp = parent; //record the parent as _dp just so we can revert if necessary. But parent should be null to indicate the item isn't in a linked list.\n\t\tchild._next = child._prev = child.parent = null;\n\t},\n\t_removeFromParent = (child, onlyIfParentHasAutoRemove) => {\n\t\tif (child.parent && (!onlyIfParentHasAutoRemove || child.parent.autoRemoveChildren)) {\n\t\t\tchild.parent.remove(child);\n\t\t}\n\t\tchild._act = 0;\n\t},\n\t_uncache = animation => {\n\t\tlet a = animation;\n\t\twhile (a) {\n\t\t\ta._dirty = 1;\n\t\t\ta = a.parent;\n\t\t}\n\t\treturn animation;\n\t},\n\t_recacheAncestors = animation => {\n\t\tlet parent = animation.parent;\n\t\twhile (parent && parent.parent) { //sometimes we must force a re-sort of all children and update the duration/totalDuration of all ancestor timelines immediately in case, for example, in the middle of a render loop, one tween alters another tween's timeScale which shoves its startTime before 0, forcing the parent timeline to shift around and shiftChildren() which could affect that next tween's render (startTime). Doesn't matter for the root timeline though.\n\t\t\tparent._dirty = 1;\n\t\t\tparent.totalDuration();\n\t\t\tparent = parent.parent;\n\t\t}\n\t\treturn animation;\n\t},\n\t_hasNoPausedAncestors = animation => !animation || (animation._ts && _hasNoPausedAncestors(animation.parent)),\n\t_elapsedCycleDuration = animation => {\n\t\tlet cycleDuration;\n\t\treturn animation._repeat ? (cycleDuration = animation.duration() + animation._rDelay) * ~~(animation._tTime / cycleDuration) : 0;\n\t},\n\t_parentToChildTotalTime = (parentTime, child) => child._ts > 0 ? (parentTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (parentTime - child._start) * child._ts,\n\t/*\n\t_totalTimeToTime = (clampedTotalTime, duration, repeat, repeatDelay, yoyo) => {\n\t\tlet cycleDuration = duration + repeatDelay,\n\t\t\ttime = _round(clampedTotalTime % cycleDuration);\n\t\tif (time > duration) {\n\t\t\ttime = duration;\n\t\t}\n\t\treturn (yoyo && (~~(clampedTotalTime / cycleDuration) & 1)) ? duration - time : time;\n\t},\n\t*/\n\t_addToTimeline = (timeline, child, position) => {\n\t\tchild.parent && _removeFromParent(child);\n\t\tchild._start = position + child._delay;\n\t\tchild._end = child._start + ((child.totalDuration() / child._ts) || 0);\n\t\t_addLinkedListItem(timeline, child, \"_first\", \"_last\", timeline._sort ? \"_start\" : 0);\n\t\ttimeline._recent = child;\n\n\t\tif (child._time || (!child._dur && child._initted)) { //in case, for example, the _start is moved on a tween that has already rendered. Imagine it's at its end state, then the startTime is moved WAY later (after the end of this timeline), it should render at its beginning.\n\t\t\tlet curTime = (timeline.rawTime() - child._start) * child._ts;\n\t\t\tif (!child._dur || _clamp(0, child.totalDuration(), curTime) - child._tTime > _tinyNum) {\n\t\t\t\tchild.render(curTime, true);\n\t\t\t}\n\t\t}\n\t\t_uncache(timeline);\n\t\t//if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.\n\t\tif (timeline._dp && timeline._time >= timeline._dur && timeline._ts && timeline._dur < timeline.duration()) {\n\t\t\t//in case any of the ancestors had completed but should now be enabled...\n\t\t\tlet tl = timeline;\n\t\t\twhile (tl._dp) {\n\t\t\t\ttl.totalTime(tl._tTime, true); //moves the timeline (shifts its startTime) if necessary, and also enables it.\n\t\t\t\ttl = tl._dp;\n\t\t\t}\n\t\t}\n\t\treturn timeline;\n\t},\n\t_attemptInitTween = (tween, totalTime, force, suppressEvents) => {\n\t\t_initTween(tween, totalTime);\n\t\tif (!tween._initted) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (!force && tween._pt && tween.vars.lazy) {\n\t\t\t_lazyTweens.push(tween);\n\t\t\ttween._lazy = [totalTime, suppressEvents];\n\t\t\treturn 1;\n\t\t}\n\t},\n\t_renderZeroDurationTween = (tween, totalTime, suppressEvents, force) => {\n\t\tlet prevRatio = tween._zTime < 0 ? 0 : 1,\n\t\t\tratio = totalTime < 0 ? 0 : 1,\n\t\t\trepeatDelay = tween._rDelay,\n\t\t\ttTime = 0,\n\t\t\tpt, iteration, prevIteration;\n\t\tif (repeatDelay && tween._repeat) { //in case there's a zero-duration tween that has a repeat with a repeatDelay\n\t\t\ttTime = _clamp(0, tween._tDur, totalTime);\n\t\t\titeration = ~~(tTime / repeatDelay);\n\t\t\tif (iteration && iteration === tTime / repeatDelay) {\n\t\t\t\titeration--;\n\t\t\t}\n\t\t\tprevIteration = ~~(tween._tTime / repeatDelay);\n\t\t\tif (prevIteration && prevIteration === tween._tTime / repeatDelay) {\n\t\t\t\tprevIteration--;\n\t\t\t}\n\t\t\tif (iteration !== prevIteration) {\n\t\t\t\tprevRatio = 1 - ratio;\n\t\t\t\tif (tween.vars.repeatRefresh) {\n\t\t\t\t\ttween.invalidate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!tween._initted && _attemptInitTween(tween, totalTime, force, suppressEvents)) { //if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.\n\t\t\treturn;\n\t\t}\n\t\tif (ratio !== prevRatio || force) {\n\t\t\tif (!suppressEvents || totalTime) { //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\t\t\t\ttween._zTime = totalTime;\n\t\t\t}\n\t\t\ttween.ratio = ratio;\n\t\t\tif (tween._from) {\n\t\t\t\tratio = 1 - ratio;\n\t\t\t}\n\t\t\ttween._time = 0;\n\t\t\ttween._tTime = tTime;\n\t\t\tif (!suppressEvents) {\n\t\t\t\t_callback(tween, \"onStart\");\n\t\t\t}\n\t\t\tpt = tween._pt;\n\t\t\twhile (pt) {\n\t\t\t\tpt.r(ratio, pt.d);\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t\tif (!ratio && tween._startAt && !tween._onUpdate && tween._start) { //if the tween is positioned at the VERY beginning (_start 0) of its parent timeline, it's illegal for the playhead to go back further, so we should not render the recorded startAt values.\n\t\t\t\ttween._startAt.render(totalTime, true, force);\n\t\t\t}\n\t\t\tif (tween._onUpdate && !suppressEvents) {\n\t\t\t\t_callback(tween, \"onUpdate\");\n\t\t\t}\n\t\t\tif (tTime && tween._repeat && !suppressEvents && tween.parent) {\n\t\t\t\t_callback(tween, \"onRepeat\");\n\t\t\t}\n\t\t\tif ((totalTime >= tween._tDur || totalTime < 0) && tween.ratio === ratio) {\n\t\t\t\ttween.ratio && _removeFromParent(tween, 1);\n\t\t\t\tif (!suppressEvents) {\n\t\t\t\t\t_callback(tween, (tween.ratio ? \"onComplete\" : \"onReverseComplete\"), true);\n\t\t\t\t\ttween._prom && tween.ratio && tween._prom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t_findNextPauseTween = (animation, prevTime, time) => {\n\t\tlet child;\n\t\tif (time > prevTime) {\n\t\t\tchild = animation._first;\n\t\t\twhile (child && child._start <= time) {\n\t\t\t\tif (!child._dur && child.data === \"isPause\" && child._start > prevTime) {\n\t\t\t\t\treturn child;\n\t\t\t\t}\n\t\t\t\tchild = child._next;\n\t\t\t}\n\t\t} else {\n\t\t\tchild = animation._last;\n\t\t\twhile (child && child._start >= time) {\n\t\t\t\tif (!child._dur && child.data === \"isPause\" && child._start < prevTime) {\n\t\t\t\t\treturn child;\n\t\t\t\t}\n\t\t\t\tchild = child._prev;\n\t\t\t}\n\t\t}\n\t},\n\t_onUpdateTotalDuration = animation => {\n\t\tif (animation instanceof Timeline) {\n\t\t\treturn _uncache(animation);\n\t\t}\n\t\tlet repeat = animation._repeat;\n\t\tanimation._tDur = !repeat ? animation._dur : repeat < 0 ? 1e20 : _round(animation._dur * (repeat + 1) + (animation._rDelay * repeat));\n\t\t_uncache(animation.parent); //if the tween's duration changed, the parent timeline's duration may have changed, so flag it as \"dirty\"\n\t\treturn animation;\n\t},\n\t_zeroPosition = {_start:0, endTime:_emptyFunc},\n\t_parsePosition = (animation, position, useBuildFrom) => {\n\t\tlet labels = animation.labels,\n\t\t\trecent = animation._recent || _zeroPosition,\n\t\t\tclippedDuration = animation.duration() >= _bigNum ? recent.endTime(false) : animation._dur, //in case there's a child that infinitely repeats, users almost never intend for the insertion point of a new child to be based on a SUPER long value like that so we clip it and assume the most recently-added child's endTime should be used instead.\n\t\t\t//buildFrom = useBuildFrom ? animation._build : \"auto\",\n\t\t\ti, offset;\n\t\tif (_isString(position) && (isNaN(position) || (position in labels))) { //if the string is a number like \"1\", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).\n\t\t\ti = position.charAt(0);\n\t\t\tif (i === \"<\" || i === \">\") {\n\t\t\t\treturn (i === \"<\" ? recent._start : recent.endTime(recent._repeat >= 0)) + (parseFloat(position.substr(1)) || 0);\n\t\t\t}\n\t\t\ti = position.indexOf(\"=\");\n\t\t\tif (i < 0) {\n\t\t\t\tif (!(position in labels)) {\n\t\t\t\t\tlabels[position] = clippedDuration;\n\t\t\t\t}\n\t\t\t\treturn labels[position];\n\t\t\t}\n\t\t\toffset = +(position.charAt(i-1) + position.substr(i+1));\n\t\t\treturn (i > 1) ? _parsePosition(animation, position.substr(0, i-1)) + offset : clippedDuration + offset;\n\t\t}\n\t\treturn (position == null) ? clippedDuration : +position;\n\t\t//return (position == null) ? (isNaN(buildFrom) ? clippedDuration : buildFrom) : (buildFrom === \">>\" ? clippedDuration : +buildFrom || 0) + (+position);\n\t},\n\t_conditionalReturn = (value, func) => value || value === 0 ? func(value) : func,\n\t_clamp = (min, max, value) => value < min ? min : value > max ? max : value,\n\tgetUnit = value => (value + \"\").substr((parseFloat(value) + \"\").length),\n\tclamp = (min, max, value) => _conditionalReturn(value, v => _clamp(min, max, v)),\n\t_slice = [].slice,\n\t_isArrayLike = value => (_isObject(value) && \"length\" in value && (value.length - 1) in value && _isObject(value[0]) && value !== _win),\n\t_flatten = (ar, leaveStrings, accumulator = []) => ar.forEach(value => (_isString(value) && !leaveStrings) || _isArrayLike(value) ? accumulator.push(...toArray(value)) : accumulator.push(value)) || accumulator,\n\ttoArray = (value, leaveStrings) => { //takes any value and returns an array. If it's a string (and leaveStrings isn't true), it'll use document.querySelectorAll() and convert that to an array. It'll also accept iterables like jQuery objects.\n\t\treturn _isString(value) && !leaveStrings && (_coreInitted || !_wake()) ? _slice.call(_doc.querySelectorAll(value), 0) : _isArray(value) ? _flatten(value, leaveStrings) : _isArrayLike(value) ? _slice.call(value, 0) : value ? [value] : [];\n\t},\n\t//for distributing values across an array. Can accept a number, a function or (most commonly) a function which can contain the following properties: {base, amount, from, ease, grid, axis, length, each}. Returns a function that expects the following parameters: index, target, array. Recognizes the following\n\tdistribute = v => {\n\t\tif (_isFunction(v)) {\n\t\t\treturn v;\n\t\t}\n\t\tlet vars = _isObject(v) ? v : {each:v}, //n:1 is just to indicate v was a number; we leverage that later to set v according to the length we get. If a number is passed in, we treat it like the old stagger value where 0.1, for example, would mean that things would be distributed with 0.1 between each element in the array rather than a total \"amount\" that's chunked out among them all.\n\t\t\tease = _parseEase(vars.ease),\n\t\t\tfrom = vars.from || 0,\n\t\t\tbase = parseFloat(vars.base) || 0,\n\t\t\tcache = {},\n\t\t\tisDecimal = (from > 0 && from < 1),\n\t\t\tratios = isNaN(from) || isDecimal,\n\t\t\taxis = vars.axis,\n\t\t\tratioX = from,\n\t\t\tratioY = from;\n\t\tif (_isString(from)) {\n\t\t\tratioX = ratioY = {center:.5, edges:.5, end:1}[from] || 0;\n\t\t} else if (!isDecimal && ratios) {\n\t\t\tratioX = from[0];\n\t\t\tratioY = from[1];\n\t\t}\n\t\treturn (i, target, a) => {\n\t\t\tlet l = (a || vars).length,\n\t\t\t\tdistances = cache[l],\n\t\t\t\toriginX, originY, x, y, d, j, max, min, wrapAt;\n\t\t\tif (!distances) {\n\t\t\t\twrapAt = (vars.grid === \"auto\") ? 0 : (vars.grid || [1, _bigNum])[1];\n\t\t\t\tif (!wrapAt) {\n\t\t\t\t\tmax = -_bigNum;\n\t\t\t\t\twhile (max < (max = a[wrapAt++].getBoundingClientRect().left) && wrapAt < l) { }\n\t\t\t\t\twrapAt--;\n\t\t\t\t}\n\t\t\t\tdistances = cache[l] = [];\n\t\t\t\toriginX = ratios ? (Math.min(wrapAt, l) * ratioX) - .5 : from % wrapAt;\n\t\t\t\toriginY = ratios ? l * ratioY / wrapAt - .5 : (from / wrapAt) | 0;\n\t\t\t\tmax = 0;\n\t\t\t\tmin = _bigNum;\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tx = (j % wrapAt) - originX;\n\t\t\t\t\ty = originY - ((j / wrapAt) | 0);\n\t\t\t\t\tdistances[j] = d = !axis ? _sqrt(x * x + y * y) : Math.abs((axis === \"y\") ? y : x);\n\t\t\t\t\tif (d > max) {\n\t\t\t\t\t\tmax = d;\n\t\t\t\t\t}\n\t\t\t\t\tif (d < min) {\n\t\t\t\t\t\tmin = d;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdistances.max = max - min;\n\t\t\t\tdistances.min = min;\n\t\t\t\tdistances.v = l = (parseFloat(vars.amount) || (parseFloat(vars.each) * (wrapAt > l ? l - 1 : !axis ? Math.max(wrapAt, l / wrapAt) : axis === \"y\" ? l / wrapAt : wrapAt)) || 0) * (from === \"edges\" ? -1 : 1);\n\t\t\t\tdistances.b = (l < 0) ? base - l : base;\n\t\t\t\tdistances.u = getUnit(vars.amount || vars.each) || 0; //unit\n\t\t\t\tease = (ease && l < 0) ? _invertEase(ease) : ease;\n\t\t\t}\n\t\t\tl = ((distances[i] - distances.min) / distances.max) || 0;\n\t\t\treturn _round(distances.b + (ease ? ease(l) : l) * distances.v) + distances.u; //round in order to work around floating point errors\n\t\t};\n\t},\n\t_roundModifier = v => { //pass in 0.1 get a function that'll round to the nearest tenth, or 5 to round to the closest 5, or 0.001 to the closest 1000th, etc.\n\t\tlet p = v < 1 ? Math.pow(10, (v + \"\").length - 2) : 1; //to avoid floating point math errors (like 24 * 0.1 == 2.4000000000000004), we chop off at a specific number of decimal places (much faster than toFixed()\n\t\treturn raw => ~~(Math.round(parseFloat(raw) / v) * v * p) / p + (_isNumber(raw) ? 0 : getUnit(raw));\n\t},\n\tsnap = (snapTo, value) => {\n\t\tlet isArray = _isArray(snapTo),\n\t\t\tradius, is2D;\n\t\tif (!isArray && _isObject(snapTo)) {\n\t\t\tradius = isArray = snapTo.radius || _bigNum;\n\t\t\tsnapTo = toArray(snapTo.values);\n\t\t\tif ((is2D = !_isNumber(snapTo[0]))) {\n\t\t\t\tradius *= radius; //performance optimization so we don't have to Math.sqrt() in the loop.\n\t\t\t}\n\t\t}\n\t\treturn _conditionalReturn(value, !isArray ? _roundModifier(snapTo) : raw => {\n\t\t\tlet x = parseFloat(is2D ? raw.x : raw),\n\t\t\t\ty = parseFloat(is2D ? raw.y : 0),\n\t\t\t\tmin = _bigNum,\n\t\t\t\tclosest = 0,\n\t\t\t\ti = snapTo.length,\n\t\t\t\tdx, dy;\n\t\t\twhile (i--) {\n\t\t\t\tif (is2D) {\n\t\t\t\t\tdx = snapTo[i].x - x;\n\t\t\t\t\tdy = snapTo[i].y - y;\n\t\t\t\t\tdx = dx * dx + dy * dy;\n\t\t\t\t} else {\n\t\t\t\t\tdx = Math.abs(snapTo[i] - x);\n\t\t\t\t}\n\t\t\t\tif (dx < min) {\n\t\t\t\t\tmin = dx;\n\t\t\t\t\tclosest = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosest = (!radius || min <= radius) ? snapTo[closest] : raw;\n\t\t\treturn (is2D || closest === raw || _isNumber(raw)) ? closest : closest + getUnit(raw);\n\t\t});\n\t},\n\trandom = (min, max, roundingIncrement, returnFunction) => _conditionalReturn(_isArray(min) ? !max : !returnFunction, () => _isArray(min) ? min[~~(Math.random() * min.length)] : (roundingIncrement = roundingIncrement || 1e-5) && (returnFunction = roundingIncrement < 1 ? 10 ** ((roundingIncrement + \"\").length - 2) : 1) && (~~(Math.round((min + Math.random() * (max - min)) / roundingIncrement) * roundingIncrement * returnFunction) / returnFunction)),\n\tpipe = (...functions) => value => functions.reduce((v, f) => f(v), value),\n\tunitize = (func, unit) => value => func(parseFloat(value)) + (unit || getUnit(value)),\n\tnormalize = (min, max, value) => mapRange(min, max, 0, 1, value),\n\t_wrapArray = (a, wrapper, value) => _conditionalReturn(value, index => a[~~wrapper(index)]),\n\twrap = function(min, max, value) { // NOTE: wrap() CANNOT be an arrow function! A very odd compiling bug causes problems (unrelated to GSAP).\n\t\tlet range = max - min;\n\t\treturn _isArray(min) ? _wrapArray(min, wrap(0, min.length), max) : _conditionalReturn(value, value => ((range + (value - min) % range) % range) + min);\n\t},\n\twrapYoyo = (min, max, value) => {\n\t\tlet range = max - min,\n\t\t\ttotal = range * 2;\n\t\treturn _isArray(min) ? _wrapArray(min, wrapYoyo(0, min.length - 1), max) : _conditionalReturn(value, value => {\n\t\t\tvalue = (total + (value - min) % total) % total;\n\t\t\treturn min + ((value > range) ? (total - value) : value);\n\t\t});\n\t},\n\t_replaceRandom = value => { //replaces all occurrences of random(...) in a string with the calculated random value. can be a range like random(-100, 100, 5) or an array like random([0, 100, 500])\n\t\tlet prev = 0,\n\t\t\ts = \"\",\n\t\t\ti, nums, end, isArray;\n\t\twhile (~(i = value.indexOf(\"random(\", prev))) {\n\t\t\tend = value.indexOf(\")\", i);\n\t\t\tisArray = value.charAt(i + 7) === \"[\";\n\t\t\tnums = value.substr(i + 7, end - i - 7).match(isArray ? _delimitedValueExp : _strictNumExp);\n\t\t\ts += value.substr(prev, i - prev) + random(isArray ? nums : +nums[0], +nums[1], +nums[2] || 1e-5);\n\t\t\tprev = end + 1;\n\t\t}\n\t\treturn s + value.substr(prev, value.length - prev);\n\t},\n\tmapRange = (inMin, inMax, outMin, outMax, value) => {\n\t\tlet inRange = inMax - inMin,\n\t\t\toutRange = outMax - outMin;\n\t\treturn _conditionalReturn(value, value => outMin + ((value - inMin) / inRange) * outRange);\n\t},\n\tinterpolate = (start, end, progress, mutate) => {\n\t\tlet func = isNaN(start + end) ? 0 : p => (1 - p) * start + p * end;\n\t\tif (!func) {\n\t\t\tlet isString = _isString(start),\n\t\t\t\tmaster = {},\n\t\t\t\tp, i, interpolators, l, il;\n\t\t\tprogress === true && (mutate = 1) && (progress = null);\n\t\t\tif (isString) {\n\t\t\t\tstart = {p: start};\n\t\t\t\tend = {p: end};\n\n\t\t\t} else if (_isArray(start) && !_isArray(end)) {\n\t\t\t\tinterpolators = [];\n\t\t\t\tl = start.length;\n\t\t\t\til = l - 2;\n\t\t\t\tfor (i = 1; i < l; i++) {\n\t\t\t\t\tinterpolators.push(interpolate(start[i-1], start[i])); //build the interpolators up front as a performance optimization so that when the function is called many times, it can just reuse them.\n\t\t\t\t}\n\t\t\t\tl--;\n\t\t\t\tfunc = p => {\n\t\t\t\t\tp *= l;\n\t\t\t\t\tlet i = Math.min(il, ~~p);\n\t\t\t\t\treturn interpolators[i](p - i);\n\t\t\t\t};\n\t\t\t\tprogress = end;\n\t\t\t} else if (!mutate) {\n\t\t\t\tstart = _merge(_isArray(start) ? [] : {}, start);\n\t\t\t}\n\t\t\tif (!interpolators) {\n\t\t\t\tfor (p in end) {\n\t\t\t\t\t_addPropTween.call(master, start, p, \"get\", end[p]);\n\t\t\t\t}\n\t\t\t\tfunc = p => _renderPropTweens(p, master) || (isString ? start.p : start);\n\t\t\t}\n\t\t}\n\t\treturn _conditionalReturn(progress, func);\n\t},\n\t_getLabelInDirection = (timeline, fromTime, backward) => { //used for nextLabel() and previousLabel()\n\t\tlet labels = timeline.labels,\n\t\t\tmin = _bigNum,\n\t\t\tp, distance, label;\n\t\tfor (p in labels) {\n\t\t\tdistance = labels[p] - fromTime;\n\t\t\tif ((distance < 0) === !!backward && distance && min > (distance = Math.abs(distance))) {\n\t\t\t\tlabel = p;\n\t\t\t\tmin = distance;\n\t\t\t}\n\t\t}\n\t\treturn label;\n\t},\n\t_callback = (animation, type, executeLazyFirst) => {\n\t\tlet v = animation.vars,\n\t\t\tcallback = v[type],\n\t\t\tparams, scope;\n\t\tif (!callback) {\n\t\t\treturn;\n\t\t}\n\t\tparams = v[type + \"Params\"];\n\t\tscope = v.callbackScope || animation;\n\t\tif (executeLazyFirst && _lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.\n\t\t\t_lazyRender();\n\t\t}\n\t\treturn params ? callback.apply(scope, params) : callback.call(scope, animation);\n\t},\n\t_interrupt = animation => {\n\t\t_removeFromParent(animation);\n\t\tif (animation.progress() < 1) {\n\t\t\t_callback(animation, \"onInterrupt\");\n\t\t}\n\t\treturn animation;\n\t},\n\t_quickTween,\n\t_createPlugin = config => {\n\t\tconfig = !config.name && config.default || config; //UMD packaging wraps things oddly, so for example MotionPathHelper becomes {MotionPathHelper:MotionPathHelper, default:MotionPathHelper}.\n\t\tlet name = config.name,\n\t\t\tisFunc = _isFunction(config),\n\t\t\tPlugin = (name && !isFunc && config.init) ? function() { this._props = []; } : config, //in case someone passes in an object that's not a plugin, like CustomEase\n\t\t\tinstanceDefaults = {init:_emptyFunc, render:_renderPropTweens, add:_addPropTween, kill:_killPropTweensOf, modifier:_addPluginModifier, rawVars:0},\n\t\t\tstatics = {targetTest:0, get:0, getSetter:_getSetter, aliases:{}, register:0};\n\t\t_wake();\n\t\tif (config !== Plugin) {\n\t\t\tif (_plugins[name]) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t_setDefaults(Plugin, _setDefaults(_copyExcluding(config, instanceDefaults), statics)); //static methods\n\t\t\t_merge(Plugin.prototype, _merge(instanceDefaults, _copyExcluding(config, statics))); //instance methods\n\t\t\t_plugins[(Plugin.prop = name)] = Plugin;\n\t\t\tif (config.targetTest) {\n\t\t\t\t_harnessPlugins.push(Plugin);\n\t\t\t\t_reservedProps[name] = 1;\n\t\t\t}\n\t\t\tname = (name === \"css\" ? \"CSS\" : name.charAt(0).toUpperCase() + name.substr(1)) + \"Plugin\"; //for the global name. \"motionPath\" should become MotionPathPlugin\n\t\t}\n\t\t_addGlobal(name, Plugin);\n\t\tif (config.register) {\n\t\t\tconfig.register(gsap, Plugin, PropTween);\n\t\t}\n\t},\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * COLORS\n * --------------------------------------------------------------------------------------\n */\n\n\t_255 = 255,\n\t_colorLookup = {\n\t\taqua:[0,_255,_255],\n\t\tlime:[0,_255,0],\n\t\tsilver:[192,192,192],\n\t\tblack:[0,0,0],\n\t\tmaroon:[128,0,0],\n\t\tteal:[0,128,128],\n\t\tblue:[0,0,_255],\n\t\tnavy:[0,0,128],\n\t\twhite:[_255,_255,_255],\n\t\tolive:[128,128,0],\n\t\tyellow:[_255,_255,0],\n\t\torange:[_255,165,0],\n\t\tgray:[128,128,128],\n\t\tpurple:[128,0,128],\n\t\tgreen:[0,128,0],\n\t\tred:[_255,0,0],\n\t\tpink:[_255,192,203],\n\t\tcyan:[0,_255,_255],\n\t\ttransparent:[_255,_255,_255,0]\n\t},\n\t_hue = (h, m1, m2) => {\n\t\th = (h < 0) ? h + 1 : (h > 1) ? h - 1 : h;\n\t\treturn ((((h * 6 < 1) ? m1 + (m2 - m1) * h * 6 : (h < .5) ? m2 : (h * 3 < 2) ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1) * _255) + .5) | 0;\n\t},\n\tsplitColor = (v, toHSL) => {\n\t\tlet a = !v ? _colorLookup.black : _isNumber(v) ? [v >> 16, (v >> 8) & _255, v & _255] : 0,\n\t\t\tr, g, b, h, s, l, max, min, d, wasHSL;\n\t\tif (!a) {\n\t\t\tif (v.substr(-1) === \",\") { //sometimes a trailing comma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:\"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)\" - in this example \"blue,\" has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.\n\t\t\t\tv = v.substr(0, v.length - 1);\n\t\t\t}\n\t\t\tif (_colorLookup[v]) {\n\t\t\t\ta = _colorLookup[v];\n\t\t\t} else if (v.charAt(0) === \"#\") {\n\t\t\t\tif (v.length === 4) { //for shorthand like #9F0\n\t\t\t\t\tr = v.charAt(1);\n\t\t\t\t\tg = v.charAt(2);\n\t\t\t\t\tb = v.charAt(3);\n\t\t\t\t\tv = \"#\" + r + r + g + g + b + b;\n\t\t\t\t}\n\t\t\t\tv = parseInt(v.substr(1), 16);\n\t\t\t\ta = [v >> 16, (v >> 8) & _255, v & _255];\n\t\t\t} else if (v.substr(0, 3) === \"hsl\") {\n\t\t\t\ta = wasHSL = v.match(_strictNumExp);\n\t\t\t\tif (!toHSL) {\n\t\t\t\t\th = (+a[0] % 360) / 360;\n\t\t\t\t\ts = +a[1] / 100;\n\t\t\t\t\tl = +a[2] / 100;\n\t\t\t\t\tg = (l <= .5) ? l * (s + 1) : l + s - l * s;\n\t\t\t\t\tr = l * 2 - g;\n\t\t\t\t\tif (a.length > 3) {\n\t\t\t\t\t\ta[3] *= 1; //cast as number\n\t\t\t\t\t}\n\t\t\t\t\ta[0] = _hue(h + 1 / 3, r, g);\n\t\t\t\t\ta[1] = _hue(h, r, g);\n\t\t\t\t\ta[2] = _hue(h - 1 / 3, r, g);\n\t\t\t\t} else if (~v.indexOf(\"=\")) { //if relative values are found, just return the raw strings with the relative prefixes in place.\n\t\t\t\t\treturn v.match(_numExp);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ta = v.match(_strictNumExp) || _colorLookup.transparent;\n\t\t\t}\n\t\t\ta = a.map(Number);\n\t\t}\n\t\tif (toHSL && !wasHSL) {\n\t\t\tr = a[0] / _255;\n\t\t\tg = a[1] / _255;\n\t\t\tb = a[2] / _255;\n\t\t\tmax = Math.max(r, g, b);\n\t\t\tmin = Math.min(r, g, b);\n\t\t\tl = (max + min) / 2;\n\t\t\tif (max === min) {\n\t\t\t\th = s = 0;\n\t\t\t} else {\n\t\t\t\td = max - min;\n\t\t\t\ts = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\t\t\t\th = (max === r) ? (g - b) / d + (g < b ? 6 : 0) : (max === g) ? (b - r) / d + 2 : (r - g) / d + 4;\n\t\t\t\th *= 60;\n\t\t\t}\n\t\t\ta[0] = (h + .5) | 0;\n\t\t\ta[1] = (s * 100 + .5) | 0;\n\t\t\ta[2] = (l * 100 + .5) | 0;\n\t\t}\n\t\treturn a;\n\t},\n\t_formatColors = (s, toHSL) => {\n\t\tlet colors = (s + \"\").match(_colorExp),\n\t\t\tcharIndex = 0,\n\t\t\tparsed = \"\",\n\t\t\ti, color, temp;\n\t\tif (!colors) {\n\t\t\treturn s;\n\t\t}\n\t\tfor (i = 0; i < colors.length; i++) {\n\t\t\tcolor = colors[i];\n\t\t\ttemp = s.substr(charIndex, s.indexOf(color, charIndex)-charIndex);\n\t\t\tcharIndex += temp.length + color.length;\n\t\t\tcolor = splitColor(color, toHSL);\n\t\t\tif (color.length === 3) {\n\t\t\t\tcolor.push(1);\n\t\t\t}\n\t\t\tparsed += temp + (toHSL ? \"hsla(\" + color[0] + \",\" + color[1] + \"%,\" + color[2] + \"%,\" + color[3] : \"rgba(\" + color.join(\",\")) + \")\";\n\t\t}\n\t\treturn parsed + s.substr(charIndex);\n\t},\n\t_colorExp = (function() {\n\t\tlet s = \"(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3}){1,2}\\\\b\", //we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.,\n\t\t\tp;\n\t\tfor (p in _colorLookup) {\n\t\t\ts += \"|\" + p + \"\\\\b\";\n\t\t}\n\t\treturn new RegExp(s + \")\", \"gi\");\n\t})(),\n\t_hslExp = /hsl[a]?\\(/,\n\t_colorStringFilter = a => {\n\t\tlet combined = a.join(\" \"),\n\t\t\ttoHSL;\n\t\t_colorExp.lastIndex = 0;\n\t\tif (_colorExp.test(combined)) {\n\t\t\ttoHSL = _hslExp.test(combined);\n\t\t\ta[0] = _formatColors(a[0], toHSL);\n\t\t\ta[1] = _formatColors(a[1], toHSL);\n\t\t}\n\t},\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * TICKER\n * --------------------------------------------------------------------------------------\n */\n\t_tickerActive,\n\t_ticker = (function() {\n\t\tlet _getTime = Date.now,\n\t\t\t_lagThreshold = 500,\n\t\t\t_adjustedLag = 33,\n\t\t\t_startTime = _getTime(),\n\t\t\t_lastUpdate = _startTime,\n\t\t\t_gap = 1 / 60,\n\t\t\t_nextTime = _gap,\n\t\t\t_listeners = [],\n\t\t\t_id, _req, _raf, _self,\n\t\t\t_tick = v => {\n\t\t\t\tlet elapsed = _getTime() - _lastUpdate,\n\t\t\t\t\tmanual = (v === true),\n\t\t\t\t\toverlap, dispatch;\n\t\t\t\tif (elapsed > _lagThreshold) {\n\t\t\t\t\t_startTime += elapsed - _adjustedLag;\n\t\t\t\t}\n\t\t\t\t_lastUpdate += elapsed;\n\t\t\t\t_self.time = (_lastUpdate - _startTime) / 1000;\n\t\t\t\toverlap = _self.time - _nextTime;\n\t\t\t\tif (overlap > 0 || manual) {\n\t\t\t\t\t_self.frame++;\n\t\t\t\t\t_nextTime += overlap + (overlap >= _gap ? 0.004 : _gap - overlap);\n\t\t\t\t\tdispatch = 1;\n\t\t\t\t}\n\t\t\t\tif (!manual) { //make sure the request is made before we dispatch the \"tick\" event so that timing is maintained. Otherwise, if processing the \"tick\" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.\n\t\t\t\t\t_id = _req(_tick);\n\t\t\t\t}\n\t\t\t\tif (dispatch) {\n\t\t\t\t\t_listeners.forEach(l => l(_self.time, elapsed, _self.frame, v));\n\t\t\t\t}\n\t\t\t};\n\t\t_self = {\n\t\t\ttime:0,\n\t\t\tframe:0,\n\t\t\ttick() {\n\t\t\t\t_tick(true);\n\t\t\t},\n\t\t\twake() {\n\t\t\t\tif (_coreReady) {\n\t\t\t\t\tif (!_coreInitted && _windowExists()) {\n\t\t\t\t\t\t_win = _coreInitted = window;\n\t\t\t\t\t\t_doc = _win.document || {};\n\t\t\t\t\t\t_globals.gsap = gsap;\n\t\t\t\t\t\t(_win.gsapVersions || (_win.gsapVersions = [])).push(gsap.version);\n\t\t\t\t\t\t_install(_installScope || _win.GreenSockGlobals || (!_win.gsap && _win) || {});\n\t\t\t\t\t\t_raf = _win.requestAnimationFrame;\n\t\t\t\t\t}\n\t\t\t\t\t_id && _self.sleep();\n\t\t\t\t\t_req = _raf || (f => setTimeout(f, ((_nextTime - _self.time) * 1000 + 1) | 0));\n\t\t\t\t\t_tickerActive = 1;\n\t\t\t\t\t_tick(2);\n\t\t\t\t}\n\t\t\t},\n\t\t\tsleep() {\n\t\t\t\t(_raf ? _win.cancelAnimationFrame : clearTimeout)(_id);\n\t\t\t\t_tickerActive = 0;\n\t\t\t\t_req = _emptyFunc;\n\t\t\t},\n\t\t\tlagSmoothing(threshold, adjustedLag) {\n\t\t\t\t_lagThreshold = threshold || (1 / _tinyNum); //zero should be interpreted as basically unlimited\n\t\t\t\t_adjustedLag = Math.min(adjustedLag, _lagThreshold, 0);\n\t\t\t},\n\t\t\tfps(fps) {\n\t\t\t\t_gap = 1 / (fps || 60);\n\t\t\t\t_nextTime = _self.time + _gap;\n\t\t\t},\n\t\t\tadd(callback) {\n\t\t\t\t_listeners.indexOf(callback) < 0 && _listeners.push(callback);\n\t\t\t\t_wake();\n\t\t\t},\n\t\t\tremove(callback) {\n\t\t\t\tlet i;\n\t\t\t\t~(i = _listeners.indexOf(callback)) && _listeners.splice(i, 1);\n\t\t\t},\n\t\t\t_listeners:_listeners\n\t\t};\n\t\treturn _self;\n\t})(),\n\t_wake = () => !_tickerActive && _ticker.wake(), //also ensures the core classes are initialized.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n* -------------------------------------------------\n* EASING\n* -------------------------------------------------\n*/\n\t_easeMap = {},\n\t_customEaseExp = /^[\\d.\\-M][\\d.\\-,\\s]/,\n\t_quotesExp = /[\"']/g,\n\t_parseObjectInString = value => { //takes a string like \"{wiggles:10, type:anticipate})\" and turns it into a real object. Notice it ends in \")\" and includes the {} wrappers. This is because we only use this function for parsing ease configs and prioritized optimization rather than reusability.\n\t\tlet obj = {},\n\t\t\tsplit = value.substr(1, value.length-3).split(\":\"),\n\t\t\tkey = split[0],\n\t\t\ti = 1,\n\t\t\tl = split.length,\n\t\t\tindex, val, parsedVal;\n\t\tfor (; i < l; i++) {\n\t\t\tval = split[i];\n\t\t\tindex = i !== l-1 ? val.lastIndexOf(\",\") : val.length;\n\t\t\tparsedVal = val.substr(0, index);\n\t\t\tobj[key] = isNaN(parsedVal) ? parsedVal.replace(_quotesExp, \"\").trim() : +parsedVal;\n\t\t\tkey = val.substr(index+1).trim();\n\t\t}\n\t\treturn obj;\n\t},\n\t_configEaseFromString = name => { //name can be a string like \"elastic.out(1,0.5)\", and pass in _easeMap as obj and it'll parse it out and call the actual function like _easeMap.Elastic.easeOut.config(1,0.5). It will also parse custom ease strings as long as CustomEase is loaded and registered (internally as _easeMap._CE).\n\t\tlet split = (name + \"\").split(\"(\"),\n\t\t\tease = _easeMap[split[0]];\n\t\treturn (ease && split.length > 1 && ease.config) ? ease.config.apply(null, ~name.indexOf(\"{\") ? [_parseObjectInString(split[1])] : _parenthesesExp.exec(name)[1].split(\",\").map(_numericIfPossible)) : (_easeMap._CE && _customEaseExp.test(name)) ? _easeMap._CE(\"\", name) : ease;\n\t},\n\t_invertEase = ease => p => 1 - ease(1 - p),\n\t// potential future feature - allow yoyoEase to be set in children and have those affected when the parent/ancestor timeline yoyos. Not sure it's worth the kb.\n\t// _propagateYoyoEase = (timeline, isYoyo) => {\n\t// \tlet child = timeline._first, ease;\n\t// \twhile (child) {\n\t// \t\tif (child instanceof Timeline) {\n\t// \t\t\t_propagateYoyoEase(child, isYoyo);\n\t// \t\t} else if (child.vars.yoyoEase && (!child._yoyo || !child._repeat) && child._yoyo !== isYoyo) {\n\t// \t\t\tif (child.timeline) {\n\t// \t\t\t\t_propagateYoyoEase(child.timeline, isYoyo);\n\t// \t\t\t} else {\n\t// \t\t\t\tease = child._ease;\n\t// \t\t\t\tchild._ease = child._yEase;\n\t// \t\t\t\tchild._yEase = ease;\n\t// \t\t\t\tchild._yoyo = isYoyo;\n\t// \t\t\t}\n\t// \t\t}\n\t// \t\tchild = child._next;\n\t// \t}\n\t// },\n\t_parseEase = (ease, defaultEase) => !ease ? defaultEase : (_isFunction(ease) ? ease : _easeMap[ease] || _configEaseFromString(ease)) || defaultEase,\n\t_insertEase = (names, easeIn, easeOut = p => 1 - easeIn(1 - p), easeInOut = (p => p < .5 ? easeIn(p * 2) / 2 : 1 - easeIn((1 - p) * 2) / 2)) => {\n\t\tlet ease = {easeIn, easeOut, easeInOut},\n\t\t\tlowercaseName;\n\t\t_forEachName(names, name => {\n\t\t\t_easeMap[name] = _globals[name] = ease;\n\t\t\t_easeMap[(lowercaseName = name.toLowerCase())] = easeOut;\n\t\t\tfor (let p in ease) {\n\t\t\t\t_easeMap[lowercaseName + (p === \"easeIn\" ? \".in\" : p === \"easeOut\" ? \".out\" : \".inOut\")] = _easeMap[name + \".\" + p] = ease[p];\n\t\t\t}\n\t\t});\n\t\treturn ease;\n\t},\n\t_easeInOutFromOut = easeOut => (p => p < .5 ? (1 - easeOut(1 - (p * 2))) / 2 : .5 + easeOut((p - .5) * 2) / 2),\n\t_configElastic = (type, amplitude, period) => {\n\t\tlet p1 = (amplitude >= 1) ? amplitude : 1, //note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1.\n\t\t\tp2 = (period || (type ? .3 : .45)) / (amplitude < 1 ? amplitude : 1),\n\t\t\tp3 = p2 / _2PI * (Math.asin(1 / p1) || 0),\n\t\t\teaseOut = p => p === 1 ? 1 : p1 * (2 ** (-10 * p)) * _sin((p - p3) * p2) + 1,\n\t\t\tease = (type === \"out\") ? easeOut : (type === \"in\") ? p => 1 - easeOut(1 - p) : _easeInOutFromOut(easeOut);\n\t\tp2 = _2PI / p2; //precalculate to optimize\n\t\tease.config = (amplitude, period) => _configElastic(type, amplitude, period);\n\t\treturn ease;\n\t},\n\t_configBack = (type, overshoot = 1.70158) => {\n\t\tlet easeOut = p => ((--p) * p * ((overshoot + 1) * p + overshoot) + 1),\n\t\t\tease = (type === \"out\") ? easeOut : (type === \"in\") ? p => 1 - easeOut(1 - p) : _easeInOutFromOut(easeOut);\n\t\tease.config = overshoot => _configBack(type, overshoot);\n\t\treturn ease;\n\t};\n\t// a cheaper (kb and cpu) but more mild way to get a parameterized weighted ease by feeding in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n\t// _weightedEase = ratio => {\n\t// \tlet y = 0.5 + ratio / 2;\n\t// \treturn p => (2 * (1 - p) * p * y + p * p);\n\t// },\n\t// a stronger (but more expensive kb/cpu) parameterized weighted ease that lets you feed in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n\t// _weightedEaseStrong = ratio => {\n\t// \tratio = .5 + ratio / 2;\n\t// \tlet o = 1 / 3 * (ratio < .5 ? ratio : 1 - ratio),\n\t// \t\tb = ratio - o,\n\t// \t\tc = ratio + o;\n\t// \treturn p => p === 1 ? p : 3 * b * (1 - p) * (1 - p) * p + 3 * c * (1 - p) * p * p + p * p * p;\n\t// };\n\n_forEachName(\"Linear,Quad,Cubic,Quart,Quint,Strong\", (name, i) => {\n\tlet power = i < 5 ? i + 1 : i;\n\t_insertEase(name + \",Power\" + (power - 1), i ? p => p ** power : p => p, p => 1 - (1 - p) ** power, p => p < .5 ? (p * 2) ** power / 2 : 1 - ((1 - p) * 2) ** power / 2);\n});\n_easeMap.Linear.easeNone = _easeMap.none = _easeMap.Linear.easeIn;\n_insertEase(\"Elastic\", _configElastic(\"in\"), _configElastic(\"out\"), _configElastic());\n((n, c) => {\n\tlet n1 = 1 / c,\n\t\tn2 = 2 * n1,\n\t\tn3 = 2.5 * n1,\n\t\teaseOut = p => (p < n1) ? n * p * p : (p < n2) ? n * (p - 1.5 / c) ** 2 + .75 : (p < n3) ? n * (p -= 2.25 / c) * p + .9375 : n * (p - 2.625 / c) ** 2 + .984375;\n\t_insertEase(\"Bounce\", p => 1 - easeOut(1 - p), easeOut);\n})(7.5625, 2.75);\n_insertEase(\"Expo\", p => p ? 2 ** (10 * (p - 1)) : 0);\n_insertEase(\"Circ\", p => -(_sqrt(1 - (p * p)) - 1));\n_insertEase(\"Sine\", p => -_cos(p * _HALF_PI) + 1);\n_insertEase(\"Back\", _configBack(\"in\"), _configBack(\"out\"), _configBack());\n_easeMap.SteppedEase = _easeMap.steps = _globals.SteppedEase = {\n\tconfig(steps = 1, immediateStart) {\n\t\tlet p1 = 1 / steps,\n\t\t\tp2 = steps + (immediateStart ? 0 : 1),\n\t\t\tp3 = immediateStart ? 1 : 0,\n\t\t\tmax = 1 - _tinyNum;\n\t\treturn p => (((p2 * _clamp(0, max, p)) | 0) + p3) * p1;\n\t}\n};\n_defaults.ease = _easeMap[\"quad.out\"];\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * CACHE\n * --------------------------------------------------------------------------------------\n */\nexport class GSCache {\n\n\tconstructor(target, harness) {\n\t\tthis.id = _gsID++;\n\t\ttarget._gsap = this;\n\t\tthis.target = target;\n\t\tthis.harness = harness;\n\t\tthis.get = harness ? harness.get : _getProperty;\n\t\tthis.set = harness ? harness.getSetter : _getSetter;\n\t}\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * ANIMATION\n * --------------------------------------------------------------------------------------\n */\n\nexport class Animation {\n\n\tconstructor(vars, time) {\n\t\tlet parent = vars.parent || _globalTimeline;\n\t\tthis.vars = vars;\n\t\tthis._dur = this._tDur = +vars.duration || 0;\n\t\tthis._delay = +vars.delay || 0;\n\t\tif ((this._repeat = vars.repeat || 0)) {\n\t\t\tthis._rDelay = vars.repeatDelay || 0;\n\t\t\tthis._yoyo = !!vars.yoyo || !!vars.yoyoEase;\n\t\t\t_onUpdateTotalDuration(this);\n\t\t}\n\t\tthis._ts = 1;\n\t\tthis.data = vars.data;\n\n\t\tif (!_tickerActive) {\n\t\t\t_ticker.wake();\n\t\t}\n\t\tif (parent) {\n\t\t\t_addToTimeline(parent, this, (time || time === 0) ? time : parent._time);\n\t\t}\n\t\tif (vars.reversed) {\n\t\t\tthis.reversed(true);\n\t\t}\n\t\tif (vars.paused) {\n\t\t\tthis.paused(true);\n\t\t}\n\t}\n\n\tdelay(value) {\n\t\tif (value || value === 0) {\n\t\t\tthis._delay = value;\n\t\t\treturn this;\n\t\t}\n\t\treturn this._delay;\n\t}\n\n\tduration(value) {\n\t\tlet isSetter = arguments.length,\n\t\t\trepeat = this._repeat,\n\t\t\trepeatCycles = repeat > 0 ? repeat * ((isSetter ? value : this._dur) + this._rDelay) : 0;\n\t\treturn isSetter ? this.totalDuration( (repeat < 0) ? value : value + repeatCycles ) : this.totalDuration() && this._dur;\n\t}\n\n\ttotalDuration(value) {\n\t\tif (!arguments.length) {\n\t\t\treturn this._tDur;\n\t\t}\n\t\tlet repeat = this._repeat,\n\t\t\tisInfinite = (value || this._rDelay) && repeat < 0;\n\t\tthis._tDur = isInfinite ? 1e20 : value;\n\t\tthis._dur = isInfinite ? value : (value - (repeat * this._rDelay)) / (repeat + 1);\n\t\tthis._dirty = 0;\n\t\t_uncache(this.parent);\n\t\treturn this;\n\t}\n\n\ttotalTime(totalTime, suppressEvents) {\n\t\t_wake();\n\t\tif (!arguments.length) {\n\t\t\treturn this._tTime;\n\t\t}\n\t\tlet parent = this.parent || this._dp,\n\t\t\tstart;\n\t\tif (parent && parent.smoothChildTiming && this._ts) {\n\t\t\tstart = this._start;\n\t\t\t// if (!parent._dp && parent._time === parent._dur) { // if a root timeline completes...and then a while later one of its children resumes, we must shoot the playhead forward to where it should be raw-wise, otherwise the child will jump to the end. Down side: this assumes it's using the _ticker.time as a reference.\n\t\t\t// \tparent._time = _ticker.time - parent._start;\n\t\t\t// }\n\t\t\tthis._start = parent._time - (this._ts > 0 ? totalTime / this._ts : ((this._dirty ? this.totalDuration() : this._tDur) - totalTime) / -this._ts);\n\t\t\tthis._end += this._start - start;\n\t\t\tif (!parent._dirty) { //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.\n\t\t\t\t_uncache(parent);\n\t\t\t}\n\t\t\t//in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The start of that child would get pushed out, but one of the ancestors may have completed.\n\t\t\twhile (parent.parent) {\n\t\t\t\tif (parent.parent._time !== parent._start + (parent._ts > 0 ? parent._tTime / parent._ts : (parent.totalDuration() - parent._tTime) / -parent._ts)) {\n\t\t\t\t\tparent.totalTime(parent._tTime, true);\n\t\t\t\t}\n\t\t\t\tparent = parent.parent;\n\t\t\t}\n\t\t\tif (!this.parent) { //if the animation doesn't have a parent, put it back into its last parent (recorded as _dp for exactly cases like this).\n\t\t\t\t_addToTimeline(this._dp, this, this._start - this._delay);\n\t\t\t}\n\t\t}\n\t\tif (this._tTime !== totalTime || !this._dur) {\n\t\t\t_lazySafeRender(this, totalTime, suppressEvents);\n\t\t}\n\t\treturn this;\n\t}\n\n\ttime(value, suppressEvents) {\n\t\treturn arguments.length ? this.totalTime(value + _elapsedCycleDuration(this), suppressEvents) : this._time;\n\t}\n\n\ttotalProgress(value, suppressEvents) {\n\t\treturn arguments.length ? this.totalTime( this.totalDuration() * value, suppressEvents) : this._tTime / this.totalDuration();\n\t}\n\n\tprogress(value, suppressEvents) {\n\t\treturn arguments.length ? this.totalTime( this.duration() * value + _elapsedCycleDuration(this), suppressEvents) : (this.duration() ? this._time / this._dur : this.ratio);\n\t}\n\n\titeration(value, suppressEvents) {\n\t\tlet cycleDuration = this.duration() + this._rDelay;\n\t\treturn arguments.length ? this.totalTime(this._time + (value - 1) * cycleDuration, suppressEvents) : this._repeat ? ~~(this._tTime / cycleDuration) + 1 : 1;\n\t}\n\n\ttimeScale(value) {\n\t\tlet prevTS = this._ts;\n\t\tif (!arguments.length) {\n\t\t\treturn prevTS || this._pauseTS;\n\t\t}\n\t\tif (!prevTS) {\n\t\t\tthis._pauseTS = value;\n\t\t\treturn this;\n\t\t}\n\t\t//don't allow a zero _ts, otherwise we can't resume() properly. For example, gsap.fromTo(tween, {timeScale:0}, {timeScale:1}) wouldn't work because the timeScale:0 would of course pause, and we'd record _pauseTS as 0...and then when resuming we'd copy that back to _ts...which would still keep it paused.\n\t\tthis._end = this._start + this._tDur / (this._ts = value || _tinyNum);\n\t\treturn _recacheAncestors(this).totalTime(this._tTime, true);\n\t}\n\n\tpaused(value) {\n\t\tlet isPaused = !this._ts;\n\t\tif (!arguments.length) {\n\t\t\treturn isPaused;\n\t\t}\n\t\tif (isPaused !== value) {\n\t\t\tif (value) {\n\t\t\t\tthis._pauseTS = this._ts;\n\t\t\t\tthis._pTime = this._tTime || Math.max(-this._delay, this.rawTime()); // if the pause occurs during the delay phase, make sure that's factored in when resuming.\n\t\t\t\tthis._ts = this._act = 0; //we use a timeScale of 0 to indicate a paused state, but we record the old \"real\" timeScale as _pauseTS so we can revert when unpaused.\n\t\t\t} else {\n\t\t\t\tthis._ts = this._pauseTS;\n\t\t\t\tvalue = this._tTime || this._pTime; //only defer to _pTime (pauseTime) if tTime is zero. Remember, someone could pause() an animation, then scrub the playhead and resume().\n\t\t\t\tif (this.progress() === 1) { // edge case: animation.progress(1).pause().play() wouldn't render again because the playhead is already at the end, but the call to totalTime() below will add it back to its parent...and not remove it again (since removing only happens upon rendering at a new time). Offsetting the _tTime slightly is done simply to cause the final render in totalTime() that'll pop it off its timeline (if autoRemoveChildren is true, of course).\n\t\t\t\t\tthis._tTime -= _tinyNum;\n\t\t\t\t}\n\t\t\t\tthis.totalTime(value, true);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\tstartTime(value) {\n\t\tif (arguments.length) {\n\t\t\tif (this.parent && this.parent._sort) {\n\t\t\t\t_addToTimeline(this.parent, this, value - this._delay);\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\treturn this._start;\n\t}\n\n\tendTime(includeRepeats) {\n\t\treturn this._start + (_isNotFalse(includeRepeats) ? this.totalDuration() : this.duration()) / Math.abs(this._ts);\n\t}\n\n\trawTime(wrapRepeats) {\n\t\tlet parent = this.parent || this._dp; // _dp = detatched parent\n\t\treturn !parent ? this._tTime : (wrapRepeats && (!this._ts || (this._repeat && this._time && this.totalProgress() < 1))) ? this._tTime % (this._dur + this._rDelay) : !this._ts ? this._tTime : _parentToChildTotalTime(parent.rawTime(wrapRepeats), this);\n\t}\n\n\t// globalTime(rawTime) {\n\t// \tlet animation = this,\n\t// \t\ttime = arguments.length ? rawTime : animation.rawTime();\n\t// \twhile (animation) {\n\t// \t\ttime = animation._start + time / (animation._ts || 1);\n\t// \t\tanimation = animation.parent;\n\t// \t}\n\t// \treturn time;\n\t// }\n\n\trepeat(value) {\n\t\tif (arguments.length) {\n\t\t\tthis._repeat = value;\n\t\t\treturn _onUpdateTotalDuration(this);\n\t\t}\n\t\treturn this._repeat;\n\t}\n\n\trepeatDelay(value) {\n\t\tif (arguments.length) {\n\t\t\tthis._rDelay = value;\n\t\t\treturn _onUpdateTotalDuration(this);\n\t\t}\n\t\treturn this._rDelay;\n\t}\n\n\tyoyo(value) {\n\t\tif (arguments.length) {\n\t\t\tthis._yoyo = value;\n\t\t\treturn this;\n\t\t}\n\t\treturn this._yoyo;\n\t}\n\n\tseek(position, suppressEvents) {\n\t\treturn this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));\n\t}\n\n\trestart(includeDelay, suppressEvents) {\n\t\treturn this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));\n\t}\n\n\tplay(from, suppressEvents) {\n\t\tif (from != null) {\n\t\t\tthis.seek(from, suppressEvents);\n\t\t}\n\t\treturn this.reversed(false).paused(false);\n\t}\n\n\treverse(from, suppressEvents) {\n\t\tif (from != null) {\n\t\t\tthis.seek(from || this.totalDuration(), suppressEvents);\n\t\t}\n\t\treturn this.reversed(true).paused(false);\n\t}\n\n\tpause(atTime, suppressEvents) {\n\t\tif (atTime != null) {\n\t\t\tthis.seek(atTime, suppressEvents);\n\t\t}\n\t\treturn this.paused(true);\n\t}\n\n\tresume() {\n\t\treturn this.paused(false);\n\t}\n\n\treversed(value) {\n\t\tlet ts = this._ts || this._pauseTS;\n\t\tif (arguments.length) {\n\t\t\tif (value !== this.reversed()) {\n\t\t\t\tthis[this._ts ? \"_ts\" : \"_pauseTS\"] = Math.abs(ts) * (value ? -1 : 1);\n\t\t\t\tthis.totalTime(this._tTime, true);\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\treturn ts < 0;\n\t}\n\n\tinvalidate() {\n\t\tthis._initted = 0;\n\t\treturn this;\n\t}\n\n\tisActive() {\n\t\tlet parent = this.parent || this._dp,\n\t\t\tstart = this._start,\n\t\t\trawTime;\n\t\treturn !parent || (this._ts && this._initted && parent.isActive() && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum);\n\t}\n\n\teventCallback(type, callback, params) {\n\t\tlet vars = this.vars;\n\t\tif (arguments.length > 1) {\n\t\t\tif (!callback) {\n\t\t\t\tdelete vars[type];\n\t\t\t} else {\n\t\t\t\tvars[type] = callback;\n\t\t\t\tif (params) {\n\t\t\t\t\tvars[type + \"Params\"] = params;\n\t\t\t\t}\n\t\t\t\tif (type === \"onUpdate\") {\n\t\t\t\t\tthis._onUpdate = callback;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\treturn vars[type];\n\t}\n\n\tthen(onFulfilled = _emptyFunc) {\n\t\treturn new Promise(resolve => {\n\t\t\tthis._prom = () => {\n\t\t\t\tonFulfilled(this);\n\t\t\t\tresolve();\n\t\t\t}\n\t\t});\n\t}\n\n\tkill() {\n\t\t_interrupt(this);\n\t}\n\n}\n\n_setDefaults(Animation.prototype, {_time:0, _start:0, _end:0, _tTime:0, _tDur:0, _dirty:0, _repeat:0, _yoyo:false, parent:0, _rDelay:0, _ts:1, _dp:0, ratio:0, _zTime:-_tinyNum, _prom:0});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * -------------------------------------------------\n * TIMELINE\n * -------------------------------------------------\n */\n\nexport class Timeline extends Animation {\n\n\tconstructor(vars = {}, time) {\n\t\tsuper(vars, time);\n\t\tthis.labels = {};\n\t\tthis.smoothChildTiming = _isNotFalse(vars.smoothChildTiming);\n\t\tthis.autoRemoveChildren = !!vars.autoRemoveChildren;\n\t\tthis._sort = _isNotFalse(vars.sortChildren);\n\t}\n\n\tto(targets, vars, position) {\n\t\tnew Tween(targets, _parseVars(arguments, 0, this), _parsePosition(this, _isNumber(vars) ? arguments[3] : position));\n\t\treturn this;\n\t}\n\n\tfrom(targets, vars, position) {\n\t\tnew Tween(targets, _parseVars(arguments, 1, this), _parsePosition(this, _isNumber(vars) ? arguments[3] : position));\n\t\treturn this;\n\t}\n\n\tfromTo(targets, fromVars, toVars, position) {\n\t\tnew Tween(targets, _parseVars(arguments, 2, this), _parsePosition(this, _isNumber(fromVars) ? arguments[4] : position));\n\t\treturn this;\n\t}\n\n\tset(targets, vars, position) {\n\t\tvars.duration = 0;\n\t\tvars.parent = this;\n\t\tif (!vars.repeatDelay) {\n\t\t\tvars.repeat = 0;\n\t\t}\n\t\tvars.immediateRender = !!vars.immediateRender;\n\t\tnew Tween(targets, vars, _parsePosition(this, position));\n\t\treturn this;\n\t}\n\n\tcall(callback, params, position) {\n\t\treturn _addToTimeline(this, Tween.delayedCall(0, callback, params), _parsePosition(this, position));\n\t}\n\n\t//ONLY for backward compatibility! Maybe delete?\n\tstaggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n\t\tvars.duration = duration;\n\t\tvars.stagger = vars.stagger || stagger;\n\t\tvars.onComplete = onCompleteAll;\n\t\tvars.onCompleteParams = onCompleteAllParams;\n\t\tvars.parent = this;\n\t\tnew Tween(targets, vars, _parsePosition(this, position));\n\t\treturn this;\n\t}\n\n\tstaggerFrom(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n\t\tvars.runBackwards = 1;\n\t\tvars.immediateRender = _isNotFalse(vars.immediateRender);\n\t\treturn this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams);\n\t}\n\n\tstaggerFromTo(targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams) {\n\t\ttoVars.startAt = fromVars;\n\t\ttoVars.immediateRender = _isNotFalse(toVars.immediateRender);\n\t\treturn this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams);\n\t}\n\n\trender(totalTime, suppressEvents, force) {\n\t\tlet prevTime = this._time,\n\t\t\ttDur = this._dirty ? this.totalDuration() : this._tDur,\n\t\t\tdur = this._dur,\n\t\t\ttTime = (totalTime > tDur - _tinyNum && totalTime >= 0 && this !== _globalTimeline) ? tDur : (totalTime < _tinyNum) ? 0 : totalTime,\n\t\t\tcrossingStart = (this._zTime < 0) !== (totalTime < 0) && this._initted,\n\t\t\ttime, child, next, iteration, cycleDuration, prevPaused, pauseTween, timeScale, prevStart, prevIteration, yoyo, isYoyo;\n\t\tif (tTime !== this._tTime || force || crossingStart) {\n\t\t\tif (crossingStart) {\n\t\t\t\tif (!dur) {\n\t\t\t\t\tprevTime = this._zTime;\n\t\t\t\t}\n\t\t\t\tif (totalTime || !suppressEvents) { //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\t\t\t\t\tthis._zTime = totalTime;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttime = tTime;\n\t\t\tprevStart = this._start;\n\t\t\ttimeScale = this._ts;\n\t\t\tprevPaused = (timeScale === 0);\n\t\t\tif (prevTime !== this._time && dur) { //if totalDuration() finds a child with a negative startTime and smoothChildTiming is true, things get shifted around internally so we need to adjust the time accordingly. For example, if a tween starts at -30 we must shift EVERYTHING forward 30 seconds and move this timeline's startTime backward by 30 seconds so that things align with the playhead (no jump).\n\t\t\t\ttime += this._time - prevTime;\n\t\t\t}\n\t\t\tif (this._repeat) { //adjust the time for repeats and yoyos\n\t\t\t\tyoyo = this._yoyo;\n\t\t\t\tcycleDuration = dur + this._rDelay;\n\t\t\t\ttime = _round(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\t\t\t\tif (time > dur || tDur === tTime) {\n\t\t\t\t\ttime = dur;\n\t\t\t\t}\n\t\t\t\titeration = ~~(tTime / cycleDuration);\n\t\t\t\tif (iteration && iteration === tTime / cycleDuration) {\n\t\t\t\t\ttime = dur;\n\t\t\t\t\titeration--;\n\t\t\t\t}\n\t\t\t\tprevIteration = ~~(this._tTime / cycleDuration);\n\t\t\t\tif (prevIteration && prevIteration === this._tTime / cycleDuration) {\n\t\t\t\t\tprevIteration--;\n\t\t\t\t}\n\t\t\t\tif (yoyo && (iteration & 1)) {\n\t\t\t\t\ttime = dur - time;\n\t\t\t\t\tisYoyo = 1;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tmake sure children at the end/beginning of the timeline are rendered properly. If, for example,\n\t\t\t\ta 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which\n\t\t\t\twould get translated to 2.8 seconds if the timeline yoyos or 0.2 seconds if it just repeats), there\n\t\t\t\tcould be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So\n\t\t\t\twe need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must\n\t\t\t\tensure that zero-duration tweens at the very beginning or end of the Timeline work.\n\t\t\t\t*/\n\t\t\t\tif (iteration !== prevIteration && !this._lock) {\n\t\t\t\t\tlet rewinding = (yoyo && (prevIteration & 1)),\n\t\t\t\t\t\tdoesWrap = (rewinding === (yoyo && (iteration & 1)));\n\t\t\t\t\tif (iteration < prevIteration) {\n\t\t\t\t\t\trewinding = !rewinding;\n\t\t\t\t\t}\n\t\t\t\t\tprevTime = rewinding ? 0 : dur;\n\t\t\t\t\tthis._lock = 1;\n\t\t\t\t\tthis.render(prevTime, suppressEvents, !dur)._lock = 0;\n\t\t\t\t\tif (!suppressEvents && this.parent) {\n\t\t\t\t\t\t_callback(this, \"onRepeat\");\n\t\t\t\t\t}\n\t\t\t\t\tif (prevTime !== this._time || prevPaused !== !this._ts) {\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t\tif (doesWrap) {\n\t\t\t\t\t\tthis._lock = 2;\n\t\t\t\t\t\tprevTime = rewinding ? dur + 0.0001 : -0.0001;\n\t\t\t\t\t\tthis.render(prevTime, true);\n\t\t\t\t\t}\n\t\t\t\t\tthis._lock = 0;\n\t\t\t\t\tif (!this._ts && !prevPaused) {\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t\t//in order for yoyoEase to work properly when there's a stagger, we must swap out the ease in each sub-tween.\n\t\t\t\t\t//_propagateYoyoEase(this, isYoyo);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this._hasPause && !this._forcing && this._lock < 2) {\n\t\t\t\tpauseTween = _findNextPauseTween(this, _round(prevTime), _round(time));\n\t\t\t\tif (pauseTween) {\n\t\t\t\t\ttTime -= time - (time = pauseTween._start);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis._tTime = tTime;\n\t\t\tthis._time = time;\n\t\t\tthis._act = !timeScale; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\n\t\t\tif (!this._initted) {\n\t\t\t\tthis._onUpdate = this.vars.onUpdate;\n\t\t\t\tthis._initted = 1;\n\t\t\t}\n\t\t\tif (!prevTime && time && !suppressEvents) {\n\t\t\t\t_callback(this, \"onStart\");\n\t\t\t}\n\t\t\tif (time >= prevTime && totalTime >= 0) {\n\t\t\t\tchild = this._first;\n\t\t\t\twhile (child) {\n\t\t\t\t\tnext = child._next;\n\t\t\t\t\tif ((child._act || time >= child._start) && child._ts && pauseTween !== child) {\n\t\t\t\t\t\tif (child.parent !== this) { // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n\t\t\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchild.render(child._ts > 0 ? (time - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (time - child._start) * child._ts, suppressEvents, force);\n\t\t\t\t\t\tif (time !== this._time || (!this._ts && !prevPaused)) { //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n\t\t\t\t\t\t\tpauseTween = 0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tchild = next;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tchild = this._last;\n\t\t\t\tlet adjustedTime = totalTime < 0 ? totalTime : time; //when the playhead goes backward beyond the start of this timeline, we must pass that information down to the child animations so that zero-duration tweens know whether to render their starting or ending values.\n\t\t\t\twhile (child) {\n\t\t\t\t\tnext = child._prev;\n\t\t\t\t\tif ((child._act || adjustedTime <= child._end) && child._ts && pauseTween !== child) {\n\t\t\t\t\t\tif (child.parent !== this) { // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n\t\t\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchild.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force);\n\t\t\t\t\t\tif (time !== this._time || (!this._ts && !prevPaused)) { //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n\t\t\t\t\t\t\tpauseTween = 0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tchild = next;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pauseTween && !suppressEvents) {\n\t\t\t\tthis.pause();\n\t\t\t\tpauseTween.render(time >= prevTime ? 0 : -_tinyNum)._zTime = time >= prevTime ? 1 : -1;\n\t\t\t\tif (this._ts) { //the callback resumed playback! So since we may have held back the playhead due to where the pause is positioned, go ahead and jump to where it's SUPPOSED to be (if no pause happened).\n\t\t\t\t\tthis._start = prevStart; //if the pause was at an earlier time and the user resumed in the callback, it could reposition the timeline (changing its startTime), throwing things off slightly, so we make sure the _start doesn't shift.\n\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this._onUpdate && !suppressEvents) {\n\t\t\t\t_callback(this, \"onUpdate\", true);\n\t\t\t}\n\t\t\tif (tTime === tDur || (!tTime && this._ts < 0)) if (prevStart === this._start || Math.abs(timeScale) !== Math.abs(this._ts)) if (!time || tDur >= this.totalDuration()) {\n\t\t\t\t(totalTime || !dur) && _removeFromParent(this, 1);\n\t\t\t\tif (!suppressEvents && !(totalTime < 0 && !prevTime)) {\n\t\t\t\t\t_callback(this, (tTime === tDur ? \"onComplete\" : \"onReverseComplete\"), true);\n\t\t\t\t\tthis._prom && (tTime === tDur) && this._prom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\tadd(child, position) {\n\t\tif (!_isNumber(position)) {\n\t\t\tposition = _parsePosition(this, position);\n\t\t}\n\t\tif (!(child instanceof Animation)) {\n\t\t\tif (_isArray(child)) {\n\t\t\t\tchild.forEach(obj => this.add(obj, position));\n\t\t\t\treturn _uncache(this);\n\t\t\t}\n\t\t\tif (_isString(child)) {\n\t\t\t\treturn this.addLabel(child, position);\n\t\t\t}\n\t\t\tif (_isFunction(child)) {\n\t\t\t\tchild = Tween.delayedCall(0, child);\n\t\t\t} else {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t\treturn this !== child ? _addToTimeline(this, child, position) : this; //don't allow a timeline to be added to itself as a child!\n\t}\n\n\t// buildFrom(position, absolute) {\n\t// \tthis._build = (position === \">>\" || position === \"auto\") ? position : (position === \"<<\") ? 0 : _parsePosition(this, position, !absolute);\n\t// \treturn this;\n\t// }\n\n\tgetChildren(nested = true, tweens = true, timelines = true, ignoreBeforeTime = -_bigNum) {\n\t\tlet a = [],\n\t\t\tchild = this._first;\n\t\twhile (child) {\n\t\t\tif (child._start >= ignoreBeforeTime) {\n\t\t\t\tif (child instanceof Tween) {\n\t\t\t\t\tif (tweens) {\n\t\t\t\t\t\ta.push(child);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (timelines) {\n\t\t\t\t\t\ta.push(child);\n\t\t\t\t\t}\n\t\t\t\t\tif (nested) {\n\t\t\t\t\t\ta.push(...child.getChildren(true, tweens, timelines));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t\treturn a;\n\t}\n\n\tgetById(id) {\n\t\tlet animations = this.getChildren(1, 1, 1),\n\t\t\ti = animations.length;\n\t\twhile(i--) {\n\t\t\tif (animations[i].vars.id === id) {\n\t\t\t\treturn animations[i];\n\t\t\t}\n\t\t}\n\t}\n\n\tremove(child) {\n\t\tif (_isString(child)) {\n\t\t\treturn this.removeLabel(child);\n\t\t}\n\t\tif (_isFunction(child)) {\n\t\t\treturn this.killTweensOf(child);\n\t\t}\n\t\t_removeLinkedListItem(this, child);\n\t\tif (child === this._recent) {\n\t\t\tthis._recent = this._last;\n\t\t}\n\t\treturn _uncache(this);\n\t}\n\n\ttotalTime(totalTime, suppressEvents) {\n\t\tif (!arguments.length) {\n\t\t\treturn this._tTime;\n\t\t}\n\t\tthis._forcing = 1;\n\t\tif (!this.parent && !this._dp && this._ts) { //special case for the global timeline (or any other that has no parent or detached parent).\n\t\t\tthis._start = _ticker.time - (this._ts > 0 ? totalTime / this._ts : (this.totalDuration() - totalTime) / -this._ts);\n\t\t}\n\t\tsuper.totalTime(totalTime, suppressEvents);\n\t\tthis._forcing = 0;\n\t\treturn this;\n\t}\n\n\taddLabel(label, position) {\n\t\tthis.labels[label] = _parsePosition(this, position);\n\t\treturn this;\n\t}\n\n\tremoveLabel(label) {\n\t\tdelete this.labels[label];\n\t\treturn this;\n\t}\n\n\taddPause(position, callback, params) {\n\t\tlet t = Tween.delayedCall(0, callback || _emptyFunc, params);\n\t\tt.data = \"isPause\";\n\t\tthis._hasPause = 1;\n\t\treturn _addToTimeline(this, t, _parsePosition(this, position));\n\t}\n\n\tremovePause(position) {\n\t\tlet child = this._first;\n\t\tposition = _parsePosition(this, position);\n\t\twhile (child) {\n\t\t\tif (child._start === position && child.data === \"isPause\") {\n\t\t\t\t_removeFromParent(child);\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t}\n\n\tkillTweensOf(targets, props, onlyActive) {\n\t\tlet tweens = this.getTweensOf(targets, onlyActive),\n\t\t\ti = tweens.length;\n\t\twhile (i--) {\n\t\t\ttweens[i].kill(targets, props);\n\t\t}\n\t\treturn this;\n\t}\n\n\tgetTweensOf(targets, onlyActive) {\n\t\tlet a = [],\n\t\t\tparsedTargets = toArray(targets),\n\t\t\tchild = this._first,\n\t\t\tchildren;\n\t\twhile (child) {\n\t\t\tif (child instanceof Tween) {\n\t\t\t\tif (_arrayContainsAny(child._targets, parsedTargets) && (!onlyActive || child.isActive())) {\n\t\t\t\t\ta.push(child);\n\t\t\t\t}\n\t\t\t} else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) {\n\t\t\t\ta.push(...children);\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t\treturn a;\n\t}\n\n\ttweenTo(position, vars) {\n\t\tlet tl = this,\n\t\t\tendTime = _parsePosition(tl, position),\n\t\t\tstartAt = (vars && vars.startAt),\n\t\t\ttween = Tween.to(tl, _setDefaults({\n\t\t\t\tease:\"none\",\n\t\t\t\tlazy:false,\n\t\t\t\ttime:endTime,\n\t\t\t\tduration: (Math.abs(endTime - ((startAt && \"time\" in startAt) ? startAt.time : tl._time)) / tl.timeScale()) || _tinyNum,\n\t\t\t\tonStart: () => {\n\t\t\t\t\ttl.pause();\n\t\t\t\t\tlet duration = Math.abs(endTime - tl._time) / tl.timeScale();\n\t\t\t\t\tif (tween._dur !== duration) {\n\t\t\t\t\t\ttween._dur = duration;\n\t\t\t\t\t\ttween.render(tween._time, true, true);\n\t\t\t\t\t}\n\t\t\t\t\tif (vars && vars.onStart) { //in case the user had an onStart in the vars - we don't want to overwrite it.\n\t\t\t\t\t\tvars.onStart.apply(tween, vars.onStartParams || []);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, vars));\n\t\treturn tween;\n\t}\n\n\ttweenFromTo(fromPosition, toPosition, vars) {\n\t\treturn this.tweenTo(toPosition, _setDefaults({startAt:{time:_parsePosition(this, fromPosition)}}, vars));\n\t}\n\n\trecent() {\n\t\treturn this._recent;\n\t}\n\n\tnextLabel(afterTime = this._time) {\n\t\treturn _getLabelInDirection(this, _parsePosition(this, afterTime));\n\t}\n\n\tpreviousLabel(beforeTime = this._time) {\n\t\treturn _getLabelInDirection(this, _parsePosition(this, beforeTime), 1);\n\t}\n\n\tcurrentLabel(value) {\n\t\treturn arguments.length ? this.seek(value, true) : this.previousLabel(this._time + _tinyNum);\n\t}\n\n\tshiftChildren(amount, adjustLabels, ignoreBeforeTime = 0) {\n\t\tlet child = this._first,\n\t\t\tlabels = this.labels,\n\t\t\tp;\n\t\twhile (child) {\n\t\t\tif (child._start >= ignoreBeforeTime) {\n\t\t\t\tchild._start += amount;\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t\tif (adjustLabels) {\n\t\t\tfor (p in labels) {\n\t\t\t\tif (labels[p] >= ignoreBeforeTime) {\n\t\t\t\t\tlabels[p] += amount;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _uncache(this);\n\t}\n\n\tinvalidate() {\n\t\tlet child = this._first;\n\t\tthis._lock = 0;\n\t\twhile (child) {\n\t\t\tchild.invalidate();\n\t\t\tchild = child._next;\n\t\t}\n\t\treturn super.invalidate();\n\t}\n\n\tclear(includeLabels = true) {\n\t\tlet child = this._first,\n\t\t\tnext;\n\t\twhile (child) {\n\t\t\tnext = child._next;\n\t\t\tthis.remove(child);\n\t\t\tchild = next;\n\t\t}\n\t\tthis._time = this._tTime = 0;\n\t\tif (includeLabels) {\n\t\t\tthis.labels = {};\n\t\t}\n\t\treturn _uncache(this);\n\t}\n\n\ttotalDuration(value) {\n\t\tlet max = 0,\n\t\t\tself = this,\n\t\t\tchild = self._last,\n\t\t\tprevStart = _bigNum,\n\t\t\trepeat = self._repeat,\n\t\t\trepeatCycles = repeat * self._rDelay || 0,\n\t\t\tisInfinite = (repeat < 0),\n\t\t\tprev, end;\n\t\tif (!arguments.length) {\n\t\t\tif (self._dirty) {\n\t\t\t\twhile (child) {\n\t\t\t\t\tprev = child._prev; //record it here in case the tween changes position in the sequence...\n\t\t\t\t\tif (child._dirty) {\n\t\t\t\t\t\tchild.totalDuration(); //could change the tween._startTime, so make sure the animation's cache is clean before analyzing it.\n\t\t\t\t\t}\n\t\t\t\t\tif (child._start > prevStart && self._sort && child._ts && !self._lock) { //in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence\n\t\t\t\t\t\tself._lock = 1; //prevent endless recursive calls - there are methods that get triggered that check duration/totalDuration when we add().\n\t\t\t\t\t\t_addToTimeline(self, child, child._start - child._delay);\n\t\t\t\t\t\tself._lock = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevStart = child._start;\n\t\t\t\t\t}\n\t\t\t\t\tif (child._start < 0 && child._ts) { //children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.\n\t\t\t\t\t\tmax -= child._start;\n\t\t\t\t\t\tif ((!self.parent && !self._dp) || (self.parent && self.parent.smoothChildTiming)) {\n\t\t\t\t\t\t\tself._start += child._start / self._ts;\n\t\t\t\t\t\t\tself._time -= child._start;\n\t\t\t\t\t\t\tself._tTime -= child._start;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tself.shiftChildren(-child._start, false, -_bigNum);\n\t\t\t\t\t\tprevStart = 0;\n\t\t\t\t\t}\n\t\t\t\t\tend = child._end = child._start + child._tDur / Math.abs(child._ts || child._pauseTS);\n\t\t\t\t\tif (end > max && child._ts) {\n\t\t\t\t\t\tmax = _round(end);\n\t\t\t\t\t}\n\t\t\t\t\tchild = prev;\n\t\t\t\t}\n\t\t\t\tself._dur = (self === _globalTimeline && self._time > max) ? self._time : Math.min(_bigNum, max);\n\t\t\t\tself._tDur = isInfinite && (self._dur || repeatCycles) ? 1e20 : Math.min(_bigNum, max * (repeat + 1) + repeatCycles);\n\t\t\t\tself._end = self._start + ((self._tDur / Math.abs(self._ts || self._pauseTS)) || 0);\n\t\t\t\tself._dirty = 0;\n\t\t\t}\n\t\t\treturn self._tDur;\n\t\t}\n\t\treturn isInfinite ? self : self.timeScale(self.totalDuration() / value);\n\t}\n\n\tstatic updateRoot(time) {\n\t\tif (_globalTimeline._ts) {\n\t\t\t_lazySafeRender(_globalTimeline, _parentToChildTotalTime(time, _globalTimeline));\n\t\t}\n\t\tif (_ticker.frame >= _nextGCFrame) {\n\t\t\t_nextGCFrame += _config.autoSleep || 120;\n\t\t\tlet child = _globalTimeline._first;\n\t\t\tif (!child || !child._ts) if (_config.autoSleep && _ticker._listeners.length < 2) {\n\t\t\t\twhile (child && !child._ts) {\n\t\t\t\t\tchild = child._next;\n\t\t\t\t}\n\t\t\t\tif (!child) {\n\t\t\t\t\t_ticker.sleep();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}\n\n_setDefaults(Timeline.prototype, {_lock:0, _hasPause:0, _forcing:0});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nlet _addComplexStringPropTween = function(target, prop, start, end, setter, stringFilter, funcParam) { //note: we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\t\tlet pt = new PropTween(this._pt, target, prop, 0, 1, _renderComplexString, null, setter),\n\t\t\tindex = 0,\n\t\t\tmatchIndex = 0,\n\t\t\tresult,\tstartNums, color, endNum, chunk, startNum, hasRandom, a;\n\t\tpt.b = start;\n\t\tpt.e = end;\n\t\tstart += \"\"; //ensure values are strings\n\t\tend += \"\";\n\t\tif ((hasRandom = ~end.indexOf(\"random(\"))) {\n\t\t\tend = _replaceRandom(end);\n\t\t}\n\t\tif (stringFilter) {\n\t\t\ta = [start, end];\n\t\t\tstringFilter(a, target, prop); //pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n\t\t\tstart = a[0];\n\t\t\tend = a[1];\n\t\t}\n\t\tstartNums = start.match(_complexStringNumExp) || [];\n\t\twhile ((result = _complexStringNumExp.exec(end))) {\n\t\t\tendNum = result[0];\n\t\t\tchunk = end.substring(index, result.index);\n\t\t\tif (color) {\n\t\t\t\tcolor = (color + 1) % 5;\n\t\t\t} else if (chunk.substr(-5) === \"rgba(\") {\n\t\t\t\tcolor = 1;\n\t\t\t}\n\t\t\tif (endNum !== startNums[matchIndex++]) {\n\t\t\t\tstartNum = parseFloat(startNums[matchIndex-1]);\n\t\t\t\t//these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\t\t\t\tpt._pt = {\n\t\t\t\t\t_next:pt._pt,\n\t\t\t\t\tp:(chunk || matchIndex === 1) ? chunk : \",\", //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n\t\t\t\t\ts:startNum,\n\t\t\t\t\tc:endNum.charAt(1) === \"=\" ? parseFloat(endNum.substr(2)) * (endNum.charAt(0) === \"-\" ? -1 : 1) : parseFloat(endNum) - startNum,\n\t\t\t\t\tm:(color && color < 4) ? Math.round : 0\n\t\t\t\t};\n\t\t\t\tindex = _complexStringNumExp.lastIndex;\n\t\t\t}\n\t\t}\n\t\tpt.c = (index < end.length) ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n\t\tpt.fp = funcParam;\n\t\tif (_relExp.test(end) || hasRandom) {\n\t\t\tpt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n\t\t}\n\t\tthis._pt = pt; //start the linked list with this new PropTween. Remember, we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\t\treturn pt;\n\t},\n\t_addPropTween = function(target, prop, start, end, index, targets, modifier, stringFilter, funcParam) {\n\t\tif (_isFunction(end)) {\n\t\t\tend = end(index || 0, target, targets);\n\t\t}\n\t\tlet currentValue = target[prop],\n\t\t\tparsedStart = (start !== \"get\") ? start : !_isFunction(currentValue) ? currentValue : (funcParam ? target[(prop.indexOf(\"set\") || !_isFunction(target[\"get\" + prop.substr(3)])) ? prop : \"get\" + prop.substr(3)](funcParam) : target[prop]()),\n\t\t\tsetter = !_isFunction(currentValue) ? _setterPlain : funcParam ? _setterFuncWithParam : _setterFunc,\n\t\t\tpt;\n\t\tif (_isString(end)) {\n\t\t\tif (~end.indexOf(\"random(\")) {\n\t\t\t\tend = _replaceRandom(end);\n\t\t\t}\n\t\t\tif (end.charAt(1) === \"=\") {\n\t\t\t\tend = parseFloat(parsedStart) + parseFloat(end.substr(2)) * (end.charAt(0) === \"-\" ? -1 : 1) + getUnit(parsedStart);\n\t\t\t}\n\t\t}\n\t\tif (parsedStart !== end) {\n\t\t\tif (!isNaN(parsedStart + end)) {\n\t\t\t\tpt = new PropTween(this._pt, target, prop, +parsedStart || 0, end - (parsedStart || 0), typeof(currentValue) === \"boolean\" ? _renderBoolean : _renderPlain, 0, setter);\n\t\t\t\tif (funcParam) {\n\t\t\t\t\tpt.fp = funcParam;\n\t\t\t\t}\n\t\t\t\tif (modifier) {\n\t\t\t\t\tpt.modifier(modifier, this, target);\n\t\t\t\t}\n\t\t\t\treturn (this._pt = pt);\n\t\t\t}\n\t\t\t!currentValue && !(prop in target) && _missingPlugin(prop, end);\n\t\t\treturn _addComplexStringPropTween.call(this, target, prop, parsedStart, end, setter, stringFilter || _config.stringFilter, funcParam);\n\t\t}\n\t},\n\t//creates a copy of the vars object and processes any function-based values (putting the resulting values directly into the copy) as well as strings with \"random()\" in them. It does NOT process relative values.\n\t_processVars = (vars, index, target, targets, tween) => {\n\t\tif (_isFunction(vars)) {\n\t\t\tvars = _parseFuncOrString(vars, tween, index, target, targets);\n\t\t}\n\t\tif (!_isObject(vars) || (vars.style && vars.nodeType) || _isArray(vars)) {\n\t\t\treturn _isString(vars) ? _parseFuncOrString(vars, tween, index, target, targets) : vars;\n\t\t}\n\t\tlet copy = {},\n\t\t\tp;\n\t\tfor (p in vars) {\n\t\t\tcopy[p] = _parseFuncOrString(vars[p], tween, index, target, targets);\n\t\t}\n\t\treturn copy;\n\t},\n\t_checkPlugin = (property, vars, tween, index, target, targets) => {\n\t\tlet plugin, pt, ptLookup, i;\n\t\tif (_plugins[property] && (plugin = new _plugins[property]()).init(target, plugin.rawVars ? vars[property] : _processVars(vars[property], index, target, targets, tween), tween, index, targets) !== false) {\n\t\t\ttween._pt = pt = new PropTween(tween._pt, target, property, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\t\t\tif (tween !== _quickTween) {\n\t\t\t\tptLookup = tween._ptLookup[tween._targets.indexOf(target)]; //note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.\n\t\t\t\ti = plugin._props.length;\n\t\t\t\twhile (i--) {\n\t\t\t\t\tptLookup[plugin._props[i]] = pt;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn plugin;\n\t},\n\t_overwritingTween, //store a reference temporarily so we can avoid overwriting itself.\n\t_initTween = (tween, time) => {\n\t\tlet vars = tween.vars,\n\t\t\t{ ease, startAt, immediateRender, lazy, onUpdate, onUpdateParams, callbackScope, runBackwards, yoyoEase, keyframes, autoRevert } = vars,\n\t\t\tdur = tween._dur,\n\t\t\tprevStartAt = tween._startAt,\n\t\t\ttargets = tween._targets,\n\t\t\tparent = tween.parent,\n\t\t\t//when a stagger (or function-based duration/delay) is on a Tween instance, we create a nested timeline which means that the \"targets\" of that tween don't reflect the parent. This function allows us to discern when it's a nested tween and in that case, return the full targets array so that function-based values get calculated properly.\n\t\t\tfullTargets = (parent && parent.data === \"nested\") ? parent.parent._targets : targets,\n\t\t\tautoOverwrite = (tween._overwrite === \"auto\"),\n\t\t\ttl = tween.timeline,\n\t\t\tcleanVars, i, p, pt, target, hasPriority, gsData, harness, plugin, ptLookup, index, harnessVars;\n\t\tif (tl && (!keyframes || !ease)) {\n\t\t\tease = \"none\";\n\t\t}\n\t\ttween._ease = _parseEase(ease, _defaults.ease);\n\t\ttween._yEase = yoyoEase ? _invertEase(_parseEase(yoyoEase === true ? ease : yoyoEase, _defaults.ease)) : 0;\n\t\tif (yoyoEase && tween._yoyo && !tween._repeat) { //there must have been a parent timeline with yoyo:true that is currently in its yoyo phase, so flip the eases.\n\t\t\tyoyoEase = tween._yEase;\n\t\t\ttween._yEase = tween._ease;\n\t\t\ttween._ease = yoyoEase;\n\t\t}\n\t\tif (!tl) { //if there's an internal timeline, skip all the parsing because we passed that task down the chain.\n\t\t\tif (prevStartAt) {\n\t\t\t\tprevStartAt.render(-1, true).kill();\n\t\t\t}\n\t\t\tif (startAt) {\n\t\t\t\t_removeFromParent(tween._startAt = Tween.set(targets, _setDefaults({data: \"isStart\", overwrite: false, parent: parent, immediateRender: true, lazy: _isNotFalse(lazy), startAt: null, delay: 0, onUpdate: onUpdate, onUpdateParams: onUpdateParams, callbackScope: callbackScope, stagger: 0}, startAt))); //copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, from, to).fromTo(e, to, from);\n\t\t\t\tif (immediateRender) {\n\t\t\t\t\tif (time > 0) {\n\t\t\t\t\t\t!autoRevert && (tween._startAt = 0); //tweens that render immediately (like most from() and fromTo() tweens) shouldn't revert when their parent timeline's playhead goes backward past the startTime because the initial render could have happened anytime and it shouldn't be directly correlated to this tween's startTime. Imagine setting up a complex animation where the beginning states of various objects are rendered immediately but the tween doesn't happen for quite some time - if we revert to the starting values as soon as the playhead goes backward past the tween's startTime, it will throw things off visually. Reversion should only happen in Timeline instances where immediateRender was false or when autoRevert is explicitly set to true.\n\t\t\t\t\t} else if (dur) {\n\t\t\t\t\t\treturn; //we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a Timeline, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (runBackwards && dur) {\n\t\t\t\t//from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)\n\t\t\t\tif (prevStartAt) {\n\t\t\t\t\t!autoRevert && (tween._startAt = 0);\n\t\t\t\t} else {\n\t\t\t\t\tif (time) { //in rare cases (like if a from() tween runs and then is invalidate()-ed), immediateRender could be true but the initial forced-render gets skipped, so there's no need to force the render in this context when the _time is greater than 0\n\t\t\t\t\t\timmediateRender = false;\n\t\t\t\t\t}\n\t\t\t\t\t_removeFromParent(tween._startAt = Tween.set(targets, _merge(_copyExcluding(vars, _reservedProps), {\n\t\t\t\t\t\toverwrite: false,\n\t\t\t\t\t\tdata: \"isFromStart\", //we tag the tween with as \"isFromStart\" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a \"from()\" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:\"height\", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.\n\t\t\t\t\t\tlazy: (immediateRender && _isNotFalse(lazy)),\n\t\t\t\t\t\timmediateRender: immediateRender, //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)\n\t\t\t\t\t\tstagger: 0,\n\t\t\t\t\t\tparent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(\".class\", {y:gsap.utils.cycle([-100,100])})\n\t\t\t\t\t})));\n\t\t\t\t\tif (!immediateRender) {\n\t\t\t\t\t\t_initTween(tween._startAt, time); //ensures that the initial values are recorded\n\t\t\t\t\t\tif (immediateRender) {\n\t\t\t\t\t\t\t!autoRevert && (tween._startAt = 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (!time) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcleanVars = _copyExcluding(vars, _reservedProps);\n\t\t\ttween._pt = 0;\n\t\t\tharness = targets[0] ? _getCache(targets[0]).harness : 0;\n\t\t\tharnessVars = harness && vars[harness.prop]; //someone may need to specify CSS-specific values AND non-CSS values, like if the element has an \"x\" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.\n\t\t\tfor (i = 0; i < targets.length; i++) {\n\t\t\t\ttarget = targets[i];\n\t\t\t\tgsData = target._gsap || _harness(targets)[i]._gsap;\n\t\t\t\ttween._ptLookup[i] = ptLookup = {};\n\t\t\t\tif (_lazyLookup[gsData.id]) {\n\t\t\t\t\t_lazyRender(); //if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)\n\t\t\t\t}\n\t\t\t\tindex = fullTargets === targets ? i : fullTargets.indexOf(target);\n\t\t\t\tif (harness && (plugin = new harness()).init(target, harnessVars || cleanVars, tween, index, fullTargets) !== false) {\n\t\t\t\t\ttween._pt = pt = new PropTween(tween._pt, target, plugin.name, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\t\t\t\t\tplugin._props.forEach(name => {ptLookup[name] = pt;});\n\t\t\t\t\tif (plugin.priority) {\n\t\t\t\t\t\thasPriority = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!harness || harnessVars) {\n\t\t\t\t\tfor (p in cleanVars) {\n\t\t\t\t\t\tif (_plugins[p] && (plugin = _checkPlugin(p, cleanVars, tween, index, target, fullTargets))) {\n\t\t\t\t\t\t\tif (plugin.priority) {\n\t\t\t\t\t\t\t\thasPriority = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tptLookup[p] = pt = _addPropTween.call(tween, target, p, \"get\", cleanVars[p], index, fullTargets, 0, vars.stringFilter);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (tween._op && tween._op[i]) {\n\t\t\t\t\ttween.kill(target, tween._op[i]);\n\t\t\t\t}\n\t\t\t\tif (autoOverwrite) {\n\t\t\t\t\t_overwritingTween = tween;\n\t\t\t\t\t_globalTimeline.killTweensOf(target, ptLookup, true); //Also make sure the overwriting doesn't overwrite THIS tween!!!\n\t\t\t\t\t_overwritingTween = 0;\n\t\t\t\t}\n\t\t\t\tif (tween._pt && ((_isNotFalse(lazy) && dur) || (lazy && !dur))) {\n\t\t\t\t\t_lazyLookup[gsData.id] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (hasPriority) {\n\t\t\t\t_sortPropTweensByPriority(tween);\n\t\t\t}\n\t\t\tif (tween._onInit) { //plugins like RoundProps must wait until ALL of the PropTweens are instantiated. In the plugin's init() function, it sets the _onInit on the tween instance. May not be pretty/intuitive, but it's fast and keeps file size down.\n\t\t\t\ttween._onInit(tween);\n\t\t\t}\n\t\t}\n\t\ttween._from = !tl && !!vars.runBackwards; //nested timelines should never run backwards - the backwards-ness is in the child tweens.\n\t\ttween._onUpdate = onUpdate;\n\t\ttween._initted = 1;\n\t},\n\t_addAliasesToVars = (targets, vars) => {\n\t\tlet harness = targets[0] ? _getCache(targets[0]).harness : 0,\n\t\t\tpropertyAliases = (harness && harness.aliases),\n\t\t\tcopy, p, i, aliases;\n\t\tif (!propertyAliases) {\n\t\t\treturn vars;\n\t\t}\n\t\tcopy = _merge({}, vars);\n\t\tfor (p in propertyAliases) {\n\t\t\tif (p in copy) {\n\t\t\t\taliases = propertyAliases[p].split(\",\");\n\t\t\t\ti = aliases.length;\n\t\t\t\twhile(i--) {\n\t\t\t\t\tcopy[aliases[i]] = copy[p];\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn copy;\n\t},\n\t_parseFuncOrString = (value, tween, i, target, targets) => (_isFunction(value) ? value.call(tween, i, target, targets) : (_isString(value) && ~value.indexOf(\"random(\")) ? _replaceRandom(value) : value),\n\t_staggerTweenProps = _callbackNames + \",repeat,repeatDelay,yoyo,yoyoEase\",\n\t_staggerPropsToSkip = (_staggerTweenProps + \",id,stagger,delay,duration\").split(\",\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * TWEEN\n * --------------------------------------------------------------------------------------\n */\n\nexport class Tween extends Animation {\n\n\tconstructor(targets, vars, time) {\n\t\tif (typeof(vars) === \"number\") {\n\t\t\ttime.duration = vars;\n\t\t\tvars = time;\n\t\t\ttime = null;\n\t\t}\n\t\tsuper(_inheritDefaults(vars), time);\n\t\tlet { duration, delay, immediateRender, stagger, overwrite, keyframes, defaults } = this.vars,\n\t\t\tparsedTargets = toArray(targets),\n\t\t\ttl, i, copy, l, p, curTarget, staggerFunc, staggerVarsToMerge;\n\t\tthis._targets = parsedTargets.length ? _harness(parsedTargets) : _warn(\"GSAP target \" + targets + \" not found. https://greensock.com\", !_config.nullTargetWarn) || [{}];\n\t\tthis._ptLookup = []; //PropTween lookup. An array containing an object for each target, having keys for each tweening property\n\t\tthis._overwrite = overwrite;\n\t\tif (keyframes || stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {\n\t\t\tvars = this.vars;\n\t\t\ttl = this.timeline = new Timeline({data:\"nested\", defaults:defaults || {}});\n\t\t\ttl.kill();\n\t\t\ttl.parent = this;\n\t\t\tif (keyframes) {\n\t\t\t\t_setDefaults(tl.vars.defaults, {ease:\"none\"});\n\t\t\t\tkeyframes.forEach(frame => tl.to(parsedTargets, frame, \">\"));\n\n\t\t\t} else {\n\t\t\t\tl = parsedTargets.length;\n\t\t\t\tstaggerFunc = stagger ? distribute(stagger) : _emptyFunc;\n\t\t\t\tif (_isObject(stagger)) { //users can pass in callbacks like onStart/onComplete in the stagger object. These should fire with each individual tween.\n\t\t\t\t\tfor (p in stagger) {\n\t\t\t\t\t\tif (~_staggerTweenProps.indexOf(p)) {\n\t\t\t\t\t\t\tif (!staggerVarsToMerge) {\n\t\t\t\t\t\t\t\tstaggerVarsToMerge = {};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstaggerVarsToMerge[p] = stagger[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t\tcopy = {};\n\t\t\t\t\tfor (p in vars) {\n\t\t\t\t\t\tif (_staggerPropsToSkip.indexOf(p) < 0) {\n\t\t\t\t\t\t\tcopy[p] = vars[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcopy.stagger = 0;\n\t\t\t\t\tif (staggerVarsToMerge) {\n\t\t\t\t\t\t_merge(copy, staggerVarsToMerge);\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.yoyoEase && !vars.repeat) { //so that propagation works properly when a ancestor timeline yoyos\n\t\t\t\t\t\tcopy.yoyoEase = vars.yoyoEase;\n\t\t\t\t\t}\n\t\t\t\t\tcurTarget = parsedTargets[i];\n\t\t\t\t\t//don't just copy duration or delay because if they're a string or function, we'd end up in an infinite loop because _isFuncOrString() would evaluate as true in the child tweens, entering this loop, etc. So we parse the value straight from vars and default to 0.\n\t\t\t\t\tcopy.duration = +_parseFuncOrString(duration, this, i, curTarget, parsedTargets);\n\t\t\t\t\tcopy.delay = (+_parseFuncOrString(delay, this, i, curTarget, parsedTargets) || 0) - this._delay;\n\t\t\t\t\tif (!stagger && l === 1 && copy.delay) { // if someone does delay:\"random(1, 5)\", repeat:-1, for example, the delay shouldn't be inside the repeat.\n\t\t\t\t\t\tthis._delay = delay = copy.delay;\n\t\t\t\t\t\tthis._start += delay;\n\t\t\t\t\t\tcopy.delay = 0;\n\t\t\t\t\t}\n\t\t\t\t\ttl.to(curTarget, copy, staggerFunc(i, curTarget, parsedTargets));\n\t\t\t\t}\n\t\t\t\tduration = delay = 0;\n\t\t\t}\n\t\t\tduration || this.duration((duration = tl.duration()));\n\n\t\t} else {\n\t\t\tthis.timeline = 0; //speed optimization, faster lookups (no going up the prototype chain)\n\t\t}\n\n\t\tif (overwrite === true) {\n\t\t\t_overwritingTween = this;\n\t\t\t_globalTimeline.killTweensOf(parsedTargets);\n\t\t\t_overwritingTween = 0;\n\t\t}\n\n\t\tif (immediateRender || (!duration && !keyframes && this._start === this.parent._time && _isNotFalse(immediateRender) && _hasNoPausedAncestors(this) && this.parent.data !== \"nested\")) {\n\t\t\tthis._tTime = -_tinyNum; //forces a render without having to set the render() \"force\" parameter to true because we want to allow lazying by default (using the \"force\" parameter always forces an immediate full render)\n\t\t\tthis.render(Math.max(0, -delay)); //in case delay is negative\n\t\t}\n\t}\n\n\trender(totalTime, suppressEvents, force) {\n\t\tlet prevTime = this._time,\n\t\t\ttDur = this._tDur,\n\t\t\tdur = this._dur,\n\t\t\ttTime = (totalTime > tDur - _tinyNum && totalTime >= 0) ? tDur : (totalTime < _tinyNum) ? 0 : totalTime,\n\t\t\ttime, pt, iteration, cycleDuration, prevIteration, isYoyo, ratio, timeline, yoyoEase;\n\t\tif (!dur) {\n\t\t\t_renderZeroDurationTween(this, totalTime, suppressEvents, force);\n\t\t} else if (tTime !== this._tTime || force || (this._startAt && (this._zTime < 0) !== (totalTime < 0))) { //this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)\n\t\t\ttime = tTime;\n\t\t\ttimeline = this.timeline;\n\t\t\tif (this._repeat) { //adjust the time for repeats and yoyos\n\t\t\t\tcycleDuration = dur + this._rDelay;\n\t\t\t\ttime = _round(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\t\t\t\tif (time > dur) {\n\t\t\t\t\ttime = dur;\n\t\t\t\t}\n\t\t\t\titeration = ~~(tTime / cycleDuration);\n\t\t\t\tif (iteration && iteration === tTime / cycleDuration) {\n\t\t\t\t\ttime = dur;\n\t\t\t\t\titeration--;\n\t\t\t\t}\n\t\t\t\tisYoyo = this._yoyo && (iteration & 1);\n\t\t\t\tif (isYoyo) {\n\t\t\t\t\tyoyoEase = this._yEase;\n\t\t\t\t\ttime = dur - time;\n\t\t\t\t}\n\t\t\t\tprevIteration = ~~(this._tTime / cycleDuration);\n\t\t\t\tif (prevIteration && prevIteration === this._tTime / cycleDuration) {\n\t\t\t\t\tprevIteration--;\n\t\t\t\t}\n\t\t\t\tif (time === prevTime && !force) {\n\t\t\t\t\t//could be during the repeatDelay part. No need to render and fire callbacks.\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tif (iteration !== prevIteration) {\n\t\t\t\t\t//timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);\n\t\t\t\t\t//repeatRefresh functionality\n\t\t\t\t\tif (this.vars.repeatRefresh && !this._lock) {\n\t\t\t\t\t\tthis._lock = 1;\n\t\t\t\t\t\tthis.render(cycleDuration * iteration, true).invalidate()._lock = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!this._initted && _attemptInitTween(this, time, force, suppressEvents)) {\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\tthis._tTime = tTime;\n\t\t\tthis._time = time;\n\n\t\t\tif (!this._act && this._ts) {\n\t\t\t\tthis._act = 1; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\t\t\t\tthis._lazy = 0;\n\t\t\t}\n\n\t\t\tthis.ratio = ratio = (yoyoEase || this._ease)(time / dur);\n\t\t\tif (this._from) {\n\t\t\t\tthis.ratio = ratio = 1 - ratio;\n\t\t\t}\n\n\t\t\tif (!prevTime && time && !suppressEvents) {\n\t\t\t\t_callback(this, \"onStart\");\n\t\t\t}\n\n\t\t\tpt = this._pt;\n\t\t\twhile (pt) {\n\t\t\t\tpt.r(ratio, pt.d);\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\n\t\t\t(timeline && timeline.render(totalTime < 0 ? totalTime : !time && isYoyo ? -_tinyNum : timeline._dur * ratio, suppressEvents, force)) || (this._startAt && (this._zTime = totalTime));\n\n\t\t\tif (this._onUpdate && !suppressEvents) {\n\t\t\t\tif (totalTime < 0 && this._startAt) {\n\t\t\t\t\tthis._startAt.render(totalTime, true, force); //note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.\n\t\t\t\t}\n\t\t\t\t_callback(this, \"onUpdate\");\n\t\t\t}\n\n\t\t\tif (this._repeat) if (iteration !== prevIteration && this.vars.onRepeat && !suppressEvents && this.parent) {\n\t\t\t\t_callback(this, \"onRepeat\");\n\t\t\t}\n\t\t\tif ((tTime === tDur || !tTime) && this._tTime === tTime) {\n\t\t\t\tif (totalTime < 0 && this._startAt && !this._onUpdate) {\n\t\t\t\t\tthis._startAt.render(totalTime, true, force);\n\t\t\t\t}\n\t\t\t\t(totalTime || !dur) && (tTime || this._ts < 0) && _removeFromParent(this, 1); // don't remove if we're rendering at exactly a time of 0, as there could be autoRevert values that should get set on the next tick (if the playhead goes backward beyond the startTime, negative totalTime).\n\t\t\t\tif (!suppressEvents && !(totalTime < 0 && !prevTime)) {\n\t\t\t\t\t_callback(this, (tTime === tDur ? \"onComplete\" : \"onReverseComplete\"), true);\n\t\t\t\t\tthis._prom && (tTime === tDur) && this._prom();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn this;\n\t}\n\n\ttargets() {\n\t\treturn this._targets;\n\t}\n\n\tinvalidate() {\n\t\tthis._pt = this._op = this._startAt = this._onUpdate = this._act = this._lazy = 0;\n\t\tthis._ptLookup = [];\n\t\tif (this.timeline) {\n\t\t\tthis.timeline.invalidate();\n\t\t}\n\t\treturn super.invalidate();\n\t}\n\n\tkill(targets, vars = \"all\") {\n\t\tif (_overwritingTween === this) {\n\t\t\treturn _overwritingTween;\n\t\t}\n\t\tif (!targets && (!vars || vars === \"all\")) {\n\t\t\tif (this.parent) {\n\t\t\t\tthis._lazy = 0;\n\t\t\t\treturn _interrupt(this);\n\t\t\t}\n\t\t}\n\t\tif (this.timeline) {\n\t\t\tthis.timeline.killTweensOf(targets, vars);\n\t\t\treturn this;\n\t\t}\n\t\tlet parsedTargets = this._targets,\n\t\t\tkillingTargets = targets ? toArray(targets) : parsedTargets,\n\t\t\tpropTweenLookup = this._ptLookup,\n\t\t\tfirstPT = this._pt,\n\t\t\toverwrittenProps, curLookup, curOverwriteProps, props, p, pt, i;\n\t\tif ((!vars || vars === \"all\") && _arraysMatch(parsedTargets, killingTargets)) {\n\t\t\treturn _interrupt(this);\n\t\t}\n\t\toverwrittenProps = this._op = this._op || [];\n\t\tif (vars !== \"all\") { //so people can pass in a comma-delimited list of property names\n\t\t\tif (_isString(vars)) {\n\t\t\t\tp = {};\n\t\t\t\t_forEachName(vars, name => p[name] = 1);\n\t\t\t\tvars = p;\n\t\t\t}\n\t\t\tvars = _addAliasesToVars(parsedTargets, vars);\n\t\t}\n\t\ti = parsedTargets.length;\n\t\twhile (i--) {\n\t\t\tif (~killingTargets.indexOf(parsedTargets[i])) {\n\t\t\t\tcurLookup = propTweenLookup[i];\n\t\t\t\tif (vars === \"all\") {\n\t\t\t\t\toverwrittenProps[i] = vars;\n\t\t\t\t\tprops = curLookup;\n\t\t\t\t\tcurOverwriteProps = {};\n\t\t\t\t} else {\n\t\t\t\t\tcurOverwriteProps = overwrittenProps[i] = overwrittenProps[i] || {};\n\t\t\t\t\tprops = vars;\n\t\t\t\t}\n\t\t\t\tfor (p in props) {\n\t\t\t\t\tpt = curLookup && curLookup[p];\n\t\t\t\t\tif (pt) {\n\t\t\t\t\t\tif (!(\"kill\" in pt.d) || pt.d.kill(p) === true) {\n\t\t\t\t\t\t\t_removeLinkedListItem(this, pt, \"_pt\");\n\t\t\t\t\t\t\tdelete curLookup[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (curOverwriteProps !== \"all\") {\n\t\t\t\t\t\tcurOverwriteProps[p] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this._initted && !this._pt && firstPT) { //if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.\n\t\t\t_interrupt(this);\n\t\t}\n\t\treturn this;\n\t}\n\n\n\tstatic to(targets, vars) {\n\t\treturn new Tween(targets, vars, arguments[2]);\n\t}\n\n\tstatic from(targets, vars) {\n\t\treturn new Tween(targets, _parseVars(arguments, 1));\n\t}\n\n\tstatic delayedCall(delay, callback, params, scope) {\n\t\treturn new Tween(callback, 0, {immediateRender:false, lazy:false, overwrite:false, delay:delay, onComplete:callback, onReverseComplete:callback, onCompleteParams:params, onReverseCompleteParams:params, callbackScope:scope});\n\t}\n\n\tstatic fromTo(targets, fromVars, toVars) {\n\t\treturn new Tween(targets, _parseVars(arguments, 2));\n\t}\n\n\tstatic set(targets, vars) {\n\t\tvars.duration = 0;\n\t\tif (!vars.repeatDelay) {\n\t\t\tvars.repeat = 0;\n\t\t}\n\t\treturn new Tween(targets, vars);\n\t}\n\n\tstatic killTweensOf(targets, props, onlyActive) {\n\t\treturn _globalTimeline.killTweensOf(targets, props, onlyActive);\n\t}\n}\n\n_setDefaults(Tween.prototype, {_targets:[], _initted:0, _lazy:0, _startAt:0, _op:0, _onInit:0});\n\n//add the pertinent timeline methods to Tween instances so that users can chain conveniently and create a timeline automatically. (removed due to concerns that it'd ultimately add to more confusion especially for beginners)\n// _forEachName(\"to,from,fromTo,set,call,add,addLabel,addPause\", name => {\n// \tTween.prototype[name] = function() {\n// \t\tlet tl = new Timeline();\n// \t\treturn _addToTimeline(tl, this)[name].apply(tl, toArray(arguments));\n// \t}\n// });\n\n//for backward compatibility. Leverage the timeline calls.\n_forEachName(\"staggerTo,staggerFrom,staggerFromTo\", name => {\n\tTween[name] = function() {\n\t\tlet tl = new Timeline(),\n\t\t\tparams = toArray(arguments);\n\t\tparams.splice(name === \"staggerFromTo\" ? 5 : 4, 0, 0);\n\t\treturn tl[name].apply(tl, params);\n\t}\n});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * PROPTWEEN\n * --------------------------------------------------------------------------------------\n */\nlet _setterPlain = (target, property, value) => target[property] = value,\n\t_setterFunc = (target, property, value) => target[property](value),\n\t_setterFuncWithParam = (target, property, value, data) => target[property](data.fp, value),\n\t_setterAttribute = (target, property, value) => target.setAttribute(property, value),\n\t_getSetter = (target, property) => _isFunction(target[property]) ? _setterFunc : _isUndefined(target[property]) && target.setAttribute ? _setterAttribute : _setterPlain,\n\t_renderPlain = (ratio, data) => data.set(data.t, data.p, ~~((data.s + data.c * ratio) * 10000) / 10000, data),\n\t_renderBoolean = (ratio, data) => data.set(data.t, data.p, !!(data.s + data.c * ratio), data),\n\t_renderComplexString = function(ratio, data) {\n\t\tlet pt = data._pt,\n\t\t\ts = \"\";\n\t\tif (!ratio && data.b) { //b = beginning string\n\t\t\ts = data.b;\n\t\t} else if (ratio === 1 && data.e) { //e = ending string\n\t\t\ts = data.e;\n\t\t} else {\n\t\t\twhile (pt) {\n\t\t\t\ts = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : (~~((pt.s + pt.c * ratio) * 10000) / 10000)) + s; //we use the \"p\" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t\ts += data.c; //we use the \"c\" of the PropTween to store the final chunk of non-numeric text.\n\t\t}\n\t\tdata.set(data.t, data.p, s, data);\n\t},\n\t_renderPropTweens = function(ratio, data) {\n\t\tlet pt = data._pt;\n\t\twhile (pt) {\n\t\t\tpt.r(ratio, pt.d);\n\t\t\tpt = pt._next;\n\t\t}\n\t},\n\t_addPluginModifier = function(modifier, tween, target, property) {\n\t\tlet pt = this._pt,\n\t\t\tnext;\n\t\twhile (pt) {\n\t\t\tnext = pt._next;\n\t\t\tif (pt.p === property) {\n\t\t\t\tpt.modifier(modifier, tween, target);\n\t\t\t}\n\t\t\tpt = next;\n\t\t}\n\t},\n\t_killPropTweensOf = function(property) {\n\t\tlet pt = this._pt,\n\t\t\thasNonDependentRemaining, next;\n\t\twhile (pt) {\n\t\t\tnext = pt._next;\n\t\t\tif ((pt.p === property && !pt.op) || pt.op === property) {\n\t\t\t\t_removeLinkedListItem(this, pt, \"_pt\");\n\t\t\t} else if (!pt.dep) {\n\t\t\t\thasNonDependentRemaining = 1;\n\t\t\t}\n\t\t\tpt = next;\n\t\t}\n\t\treturn !hasNonDependentRemaining;\n\t},\n\t_setterWithModifier = function(target, property, value, data) {\n\t\tdata.mSet(target, property, data.m.call(data.tween, value, data.mt), data);\n\t},\n\t_sortPropTweensByPriority = (parent) => {\n\t\tlet pt = parent._pt,\n\t\t\tnext, pt2, first, last;\n\t\t//sorts the PropTween linked list in order of priority because some plugins need to do their work after ALL of the PropTweens were created (like RoundPropsPlugin and ModifiersPlugin)\n\t\twhile (pt) {\n\t\t\tnext = pt._next;\n\t\t\tpt2 = first;\n\t\t\twhile (pt2 && pt2.pr > pt.pr) {\n\t\t\t\tpt2 = pt2._next;\n\t\t\t}\n\t\t\tif ((pt._prev = pt2 ? pt2._prev : last)) {\n\t\t\t\tpt._prev._next = pt;\n\t\t\t} else {\n\t\t\t\tfirst = pt;\n\t\t\t}\n\t\t\tif ((pt._next = pt2)) {\n\t\t\t\tpt2._prev = pt;\n\t\t\t} else {\n\t\t\t\tlast = pt;\n\t\t\t}\n\t\t\tpt = next;\n\t\t}\n\t\tparent._pt = first;\n\t};\n\n//PropTween key: t = target, p = prop, r = renderer, d = data, s = start, c = change, op = overwriteProperty (ONLY populated when it's different than p), pr = priority, _next/_prev for the linked list siblings, set = setter, m = modifier, mSet = modifierSetter (the original setter, before a modifier was added)\nexport class PropTween {\n\n\tconstructor(next, target, prop, start, change, renderer, data, setter, priority) {\n\t\tthis.t = target;\n\t\tthis.s = start;\n\t\tthis.c = change;\n\t\tthis.p = prop;\n\t\tthis.r = renderer || _renderPlain;\n\t\tthis.d = data || this;\n\t\tthis.set = setter || _setterPlain;\n\t\tthis.pr = priority || 0;\n\t\tthis._next = next;\n\t\tif (next) {\n\t\t\tnext._prev = this;\n\t\t}\n\t}\n\n\tmodifier(func, tween, target) {\n\t\tthis.mSet = this.mSet || this.set; //in case it was already set (a PropTween can only have one modifier)\n\t\tthis.set = _setterWithModifier;\n\t\tthis.m = func;\n\t\tthis.mt = target; //modifier target\n\t\tthis.tween = tween;\n\t}\n}\n\n\n\n//Initialization tasks\n_forEachName(_callbackNames + \",parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert\", name => {_reservedProps[name] = 1; if (name.substr(0,2) === \"on\") _reservedProps[name + \"Params\"] = 1});\n_globals.TweenMax = _globals.TweenLite = Tween;\n_globals.TimelineLite = _globals.TimelineMax = Timeline;\n_globalTimeline = new Timeline({sortChildren: false, defaults: _defaults, autoRemoveChildren: true, id:\"root\"});\n_config.stringFilter = _colorStringFilter;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * GSAP\n * --------------------------------------------------------------------------------------\n */\nexport const gsap = {\n\tregisterPlugin(...args) {\n\t\targs.forEach(config => _createPlugin(config));\n\t},\n\ttimeline(vars) {\n\t\treturn new Timeline(vars);\n\t},\n\tgetTweensOf(targets, onlyActive) {\n\t\treturn _globalTimeline.getTweensOf(targets, onlyActive);\n\t},\n\tgetProperty(target, property, unit, uncache) {\n\t\tif (_isString(target)) { //in case selector text or an array is passed in\n\t\t\ttarget = toArray(target)[0];\n\t\t}\n\t\tlet getter = _getCache(target || {}).get,\n\t\t\tformat = unit ? _passThrough : _numericIfPossible;\n\t\tif (unit === \"native\") {\n\t\t\tunit = \"\";\n\t\t}\n\t\treturn !target ? target : !property ? (property, unit, uncache) => format(((_plugins[property] && _plugins[property].get) || getter)(target, property, unit, uncache)) : format(((_plugins[property] && _plugins[property].get) || getter)(target, property, unit, uncache));\n\t},\n\tquickSetter(target, property, unit) {\n\t\ttarget = toArray(target);\n\t\tif (target.length > 1) {\n\t\t\tlet setters = target.map(t => gsap.quickSetter(t, property, unit)),\n\t\t\t\tl = setters.length;\n\t\t\treturn value => {\n\t\t\t\tlet i = l;\n\t\t\t\twhile(i--) {\n\t\t\t\t\tsetters[i](value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttarget = target[0] || {};\n\t\tlet Plugin = _plugins[property],\n\t\t\tcache = _getCache(target),\n\t\t\tsetter = Plugin ? value => {\n\t\t\t\tlet p = new Plugin();\n\t\t\t\t_quickTween._pt = 0;\n\t\t\t\tp.init(target, unit ? value + unit : value, _quickTween, 0, [target]);\n\t\t\t\tp.render(1, p);\n\t\t\t\t_quickTween._pt && _renderPropTweens(1, _quickTween);\n\t\t\t} : cache.set(target, property);\n\t\treturn Plugin ? setter : value => setter(target, property, unit ? value + unit : value, cache, 1);\n\t},\n\tisTweening(targets) {\n\t\treturn _globalTimeline.getTweensOf(targets, true).length > 0;\n\t},\n\tdefaults(value) {\n\t\tif (value && value.ease) {\n\t\t\tvalue.ease = _parseEase(value.ease, _defaults.ease);\n\t\t}\n\t\treturn _mergeDeep(_defaults, value || {});\n\t},\n\tconfig(value) {\n\t\treturn _mergeDeep(_config, value || {});\n\t},\n\tregisterEffect({name, effect, plugins, defaults, extendTimeline}) {\n\t\t(plugins || \"\").split(\",\").forEach(pluginName => pluginName && !_plugins[pluginName] && !_globals[pluginName] && _warn(name + \" effect requires \" + pluginName + \" plugin.\"));\n\t\t_effects[name] = (targets, vars) => effect(toArray(targets), _setDefaults(vars || {}, defaults));\n\t\tif (extendTimeline) {\n\t\t\tTimeline.prototype[name] = function(targets, vars, position) {\n\t\t\t\treturn this.add(_effects[name](targets, _isObject(vars) ? vars : (position = vars) && {}), position);\n\t\t\t};\n\t\t}\n\t},\n\tregisterEase(name, ease) {\n\t\t_easeMap[name] = _parseEase(ease);\n\t},\n\tparseEase(ease, defaultEase) {\n\t\treturn arguments.length ? _parseEase(ease, defaultEase) : _easeMap;\n\t},\n\tgetById(id) {\n\t\treturn _globalTimeline.getById(id);\n\t},\n\texportRoot(vars = {}, includeDelayedCalls) {\n\t\tlet tl = new Timeline(vars),\n\t\t\tchild, next;\n\t\ttl.smoothChildTiming = _isNotFalse(vars.smoothChildTiming);\n\t\t_globalTimeline.remove(tl);\n\t\ttl._dp = 0; //otherwise it'll get re-activated when adding children and be re-introduced into _globalTimeline's linked list (then added to itself).\n\t\ttl._time = tl._tTime = _globalTimeline._time;\n\t\tchild = _globalTimeline._first;\n\t\twhile (child) {\n\t\t\tnext = child._next;\n\t\t\tif (includeDelayedCalls || !(!child._dur && child instanceof Tween && child.vars.onComplete === child._targets[0])) {\n\t\t\t\t_addToTimeline(tl, child, child._start - child._delay);\n\t\t\t}\n\t\t\tchild = next;\n\t\t}\n\t\t_addToTimeline(_globalTimeline, tl, 0);\n\t\treturn tl;\n\t},\n\tutils: { wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, mapRange, pipe, unitize, interpolate },\n\tinstall: _install,\n\teffects: _effects,\n\tticker: _ticker,\n\tupdateRoot: Timeline.updateRoot,\n\tplugins: _plugins,\n\tglobalTimeline: _globalTimeline,\n\tcore: {PropTween: PropTween, globals: _addGlobal, Tween: Tween, Timeline: Timeline, Animation: Animation, getCache: _getCache}\n};\n\n_forEachName(\"to,from,fromTo,delayedCall,set,killTweensOf\", name => gsap[name] = Tween[name]);\n_ticker.add(Timeline.updateRoot);\n_quickTween = gsap.to({}, {duration:0});\n\n\n\n\n// ---- EXTRA PLUGINS --------------------------------------------------------\n\n\nlet _addModifiers = (tween, modifiers) => {\n\t\tlet\ttargets = tween._targets,\n\t\t\tp, i, pt;\n\t\tfor (p in modifiers) {\n\t\t\ti = targets.length;\n\t\t\twhile (i--) {\n\t\t\t\tpt = tween._ptLookup[i][p];\n\t\t\t\tif (pt) {\n\t\t\t\t\tif (pt.d.modifier) {\n\t\t\t\t\t\tpt.d.modifier(modifiers[p], tween, targets[i], p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t_buildModifierPlugin = (name, modifier) => {\n\t\treturn {\n\t\t\tname:name,\n\t\t\trawVars:1, //don't pre-process function-based values or \"random()\" strings.\n\t\t\tinit(target, vars, tween) {\n\t\t\t\ttween._onInit = tween => {\n\t\t\t\t\tlet temp, p;\n\t\t\t\t\tif (_isString(vars)) {\n\t\t\t\t\t\ttemp = {};\n\t\t\t\t\t\t_forEachName(vars, name => temp[name] = 1); //if the user passes in a comma-delimited list of property names to roundProps, like \"x,y\", we round to whole numbers.\n\t\t\t\t\t\tvars = temp;\n\t\t\t\t\t}\n\t\t\t\t\tif (modifier) {\n\t\t\t\t\t\ttemp = {};\n\t\t\t\t\t\tfor (p in vars) {\n\t\t\t\t\t\t\ttemp[p] = modifier(vars[p]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvars = temp;\n\t\t\t\t\t}\n\t\t\t\t\t_addModifiers(tween, vars);\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t};\n\n//register core plugins\ngsap.registerPlugin({\n\t\tname:\"attr\",\n\t\tinit(target, vars, tween, index, targets) {\n\t\t\tfor (let p in vars) {\n\t\t\t\tthis.add(target, \"setAttribute\", (target.getAttribute(p) || 0) + \"\", vars[p], index, targets, 0, 0, p);\n\t\t\t\t//this.add(target, \"setAttribute\", (target.getAttribute((p in target.dataset ? (p = \"data-\" + p) : p)) || 0) + \"\", vars[p], index, targets, 0, 0, p);\n\t\t\t\tthis._props.push(p);\n\t\t\t}\n\t\t}\n\t}, {\n\t\tname:\"endArray\",\n\t\tinit(target, value) {\n\t\t\tlet i = value.length;\n\t\t\twhile (i--) {\n\t\t\t\tthis.add(target, i, target[i], value[i]);\n\t\t\t}\n\t\t}\n\t},\n\t_buildModifierPlugin(\"roundProps\", _roundModifier),\n\t_buildModifierPlugin(\"modifiers\"),\n\t_buildModifierPlugin(\"snap\", snap)\n);\n\nTween.version = Timeline.version = gsap.version = \"3.0.1\";\n_coreReady = 1;\nif (_windowExists()) {\n\t_wake();\n}\n\nexport const { Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ } = _easeMap;\nexport { Tween as TweenMax, Tween as TweenLite, Timeline as TimelineMax, Timeline as TimelineLite, gsap as default, wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, mapRange, pipe, unitize, interpolate };\n//export some internal methods/orojects for use in CSSPlugin so that we can externalize that file and allow custom builds that exclude it.\nexport { _getProperty, _numExp, _isString, _isUndefined, _renderComplexString, _relExp, _setDefaults, _removeLinkedListItem, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _replaceRandom, _checkPlugin, _plugins, _ticker, _config, _roundModifier, _round, _missingPlugin, _getSetter, _getCache }","/*!\n * CSSPlugin 3.0.1\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nimport {gsap, _getProperty, _numExp, getUnit, _isString, _isUndefined, _renderComplexString, _relExp, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _checkPlugin, _replaceRandom, _plugins, GSCache, PropTween, _config, _ticker, _round, _missingPlugin, _getSetter, _getCache,\n\t_setDefaults, _removeLinkedListItem //for the commented-out className feature.\n} from \"./gsap-core.js\";\n\nlet _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSetterPlugin,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_transformProps = {},\n\t_RAD2DEG = 180 / Math.PI,\n\t_DEG2RAD = Math.PI / 180,\n\t_atan2 = Math.atan2,\n\t_bigNum = 1e8,\n\t_capsExp = /([A-Z])/g,\n\t_numWithUnitExp = /[-+=\\.]*\\d+[\\.e-]*\\d*[a-z%]*/g,\n\t_horizontalExp = /(?:left|right|width|margin|padding|x)/i,\n\t_complexExp = /[\\s,\\(]\\S/,\n\t_propertyAliases = {autoAlpha:\"opacity,visibility\", scale:\"scaleX,scaleY\", alpha:\"opacity\"},\n\t_renderCSSProp = (ratio, data) => data.set(data.t, data.p, (~~((data.s + data.c * ratio) * 10000) / 10000) + data.u, data),\n\t_renderPropWithEnd = (ratio, data) => data.set(data.t, data.p, ratio === 1 ? data.e : (~~((data.s + data.c * ratio) * 10000) / 10000) + data.u, data),\n\t_renderCSSPropWithBeginning = (ratio, data) => data.set(data.t, data.p, ratio ? (~~((data.s + data.c * ratio) * 10000) / 10000) + data.u : data.b, data), //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)\n\t_renderRoundedCSSProp = (ratio, data) => {\n\t\tlet value = data.s + data.c * ratio;\n\t\tdata.set(data.t, data.p, ~~(value + (value < 0 ? -.5 : .5)) + data.u, data);\n\t},\n\t_renderNonTweeningValue = (ratio, data) => data.set(data.t, data.p, ratio ? data.e : data.b, data),\n\t_renderNonTweeningValueOnlyAtEnd = (ratio, data) => data.set(data.t, data.p, ratio !== 1 ? data.b : data.e, data),\n\t_setterCSSStyle = (target, property, value) => target.style[property] = value,\n\t_setterCSSProp = (target, property, value) => target.style.setProperty(property, value),\n\t_setterTransform = (target, property, value) => target._gsap[property] = value,\n\t_setterScale = (target, property, value) => target._gsap.scaleX = target._gsap.scaleY = value,\n\t_setterScaleWithRender = (target, property, value, data, ratio) => {\n\t\tlet cache = target._gsap;\n\t\tcache.scaleX = cache.scaleY = value;\n\t\tcache.renderTransform(ratio, cache);\n\t},\n\t_setterTransformWithRender = (target, property, value, data, ratio) => {\n\t\tlet cache = target._gsap;\n\t\tcache[property] = value;\n\t\tcache.renderTransform(ratio, cache);\n\t},\n\t_transformProp = \"transform\",\n\t_transformOriginProp = _transformProp + \"Origin\",\n\t_supports3D,\n\t_createElement = (type, ns) => {\n\t\tlet e = _doc.createElementNS ? _doc.createElementNS((ns || \"http://www.w3.org/1999/xhtml\").replace(/^https/, \"http\"), type) : _doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making \"style\" inaccessible.\n\t\treturn e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://greensock.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).\n\t},\n\t_getComputedProperty = (target, property) => {\n\t\tlet cs = getComputedStyle(target);\n\t\treturn cs[property] || cs.getPropertyValue(property.replace(_capsExp, \"-$1\").toLowerCase()) || cs.getPropertyValue(property); //css variables may not need caps swapped out for dashes and lowercase.\n\t},\n\t_checkPropPrefix = (property, element) => {\n\t\tlet e = element || _tempDiv,\n\t\t\ts = e.style,\n\t\t\ti = 5,\n\t\t\ta = \"O,Moz,ms,Ms,Webkit\".split(\",\");\n\t\tif (property in s) {\n\t\t\treturn property;\n\t\t}\n\t\tproperty = property.charAt(0).toUpperCase() + property.substr(1);\n\t\twhile (i-- && !((a[i]+property) in s)) { }\n\t\treturn (i < 0) ? null : ((i === 3) ? \"ms\" : (i >= 0) ? a[i] : \"\") + property;\n\t},\n\t_initCore = () => {\n\t\tif (_windowExists()) {\n\t\t\t_win = window;\n\t\t\t_doc = _win.document;\n\t\t\t_docElement = _doc.documentElement;\n\t\t\t_tempDiv = _createElement(\"div\") || {style:{}};\n\t\t\t_tempDivStyler = _createElement(\"div\");\n\t\t\t_transformProp = _checkPropPrefix(_transformProp);\n\t\t\t_transformOriginProp = _checkPropPrefix(_transformOriginProp);\n\t\t\t_tempDiv.style.cssText = \"border-width:0;line-height:0;position:absolute;padding:0\"; //make sure to override certain properties that may contaminate measurements, in case the user has overreaching style sheets.\n\t\t\t_supports3D = !!_checkPropPrefix(\"perspective\");\n\t\t\t_pluginInitted = 1;\n\t\t}\n\t},\n\t_getBBoxHack = function(swapIfPossible) { //works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a <defs> element and/or <mask>. We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).\n\t\tlet svg = _createElement(\"svg\", (this.ownerSVGElement && this.ownerSVGElement.getAttribute(\"xmlns\")) || \"http://www.w3.org/2000/svg\"),\n\t\t\toldParent = this.parentNode,\n\t\t\toldSibling = this.nextSibling,\n\t\t\toldCSS = this.style.cssText,\n\t\t\tbbox;\n\t\t_docElement.appendChild(svg);\n\t\tsvg.appendChild(this);\n\t\tthis.style.display = \"block\";\n\t\tif (swapIfPossible) {\n\t\t\ttry {\n\t\t\t\tbbox = this.getBBox();\n\t\t\t\tthis._gsapBBox = this.getBBox; //store the original\n\t\t\t\tthis.getBBox = _getBBoxHack;\n\t\t\t} catch (e) { }\n\t\t} else if (this._gsapBBox) {\n\t\t\tbbox = this._gsapBBox();\n\t\t}\n\t\tif (oldSibling) {\n\t\t\toldParent.insertBefore(this, oldSibling);\n\t\t} else {\n\t\t\toldParent.appendChild(this);\n\t\t}\n\t\t_docElement.removeChild(svg);\n\t\tthis.style.cssText = oldCSS;\n\t\treturn bbox;\n\t},\n\t_getAttributeFallbacks = (target, attributesArray) => {\n\t\tlet i = attributesArray.length;\n\t\twhile (i--) {\n\t\t\tif (target.hasAttribute(attributesArray[i])) {\n\t\t\t\treturn target.getAttribute(attributesArray[i]);\n\t\t\t}\n\t\t}\n\t},\n\t_getBBox = target => {\n\t\tlet bounds;\n\t\ttry {\n\t\t\tbounds = target.getBBox(); //Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a <symbol> or <defs>). https://bugzilla.mozilla.org/show_bug.cgi?id=612118\n\t\t} catch (error) {\n\t\t\tbounds = _getBBoxHack.call(target, true);\n\t\t}\n\t\t//some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.\n\t\treturn (bounds && !bounds.width && !bounds.x && !bounds.y) ? {x: +_getAttributeFallbacks(target, [\"x\",\"cx\",\"x1\"]), y:+_getAttributeFallbacks(target, [\"y\",\"cy\",\"y1\"]), width:0, height:0} : bounds;\n\t},\n\t_isSVG = e => !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && _getBBox(e)), //reports if the element is an SVG on which getBBox() actually works\n\t_removeProperty = (target, property) => {\n\t\tif (property) {\n\t\t\tlet style = target.style;\n\t\t\tif (property in _transformProps) {\n\t\t\t\tproperty = _transformProp;\n\t\t\t}\n\t\t\tif (style.removeProperty) {\n\t\t\t\tif (property.substr(0,2) === \"ms\" || property.substr(0,6) === \"webkit\") { //Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be \"ms-transform\" instead of \"-ms-transform\" for IE9, for example)\n\t\t\t\t\tproperty = \"-\" + property;\n\t\t\t\t}\n\t\t\t\tstyle.removeProperty(property.replace(_capsExp, \"-$1\").toLowerCase());\n\t\t\t} else { //note: old versions of IE use \"removeAttribute()\" instead of \"removeProperty()\"\n\t\t\t\tstyle.removeAttribute(property);\n\t\t\t}\n\t\t}\n\t},\n\t_addNonTweeningPT = (plugin, target, property, beginning, end, onlySetAtEnd) => {\n\t\tlet pt = new PropTween(plugin._pt, target, property, 0, 1, onlySetAtEnd ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue);\n\t\tplugin._pt = pt;\n\t\tpt.b = beginning;\n\t\tpt.e = end;\n\t\tplugin._props.push(property);\n\t\treturn pt;\n\t},\n\t_nonConvertibleUnits = {deg:1, rad:1, turn:1},\n\t//takes a single value like 20px and converts it to the unit specified, like \"%\", returning only the numeric amount.\n\t_convertToUnit = (target, property, value, unit) => {\n\t\tlet curValue = parseFloat(value),\n\t\t\tcurUnit = (value + \"\").substr((curValue + \"\").length) || \"px\",\n\t\t\tstyle = _tempDiv.style,\n\t\t\thorizontal = _horizontalExp.test(property),\n\t\t\tisRootSVG = target.tagName.toLowerCase() === \"svg\",\n\t\t\tmeasureProperty = (isRootSVG ? \"client\" : \"offset\") + (horizontal ? \"Width\" : \"Height\"),\n\t\t\tamount = 100,\n\t\t\ttoPixels = unit === \"px\",\n\t\t\tpx, parent, cache, isSVG;\n\t\tif (unit === curUnit || _nonConvertibleUnits[unit] || _nonConvertibleUnits[curUnit]) {\n\t\t\treturn curValue;\n\t\t}\n\t\tisSVG = target.getCTM && _isSVG(target);\n\t\tif (unit === \"%\" && _transformProps[property]) { //transforms are relative to the size of the element itself!\n\t\t\treturn _round(curValue / (isSVG ? target.getBBox()[horizontal ? \"width\" : \"height\"] : target[measureProperty]) * amount);\n\t\t}\n\t\tstyle[horizontal ? \"width\" : \"height\"] = amount + (toPixels ? curUnit : unit);\n\t\tparent = (unit === \"em\" && target.appendChild && !isRootSVG) ? target : target.parentNode;\n\t\tif (isSVG) {\n\t\t\tparent = (target.ownerSVGElement || {}).parentNode;\n\t\t}\n\t\tif (!parent || parent === _doc || !parent.appendChild) {\n\t\t\tparent = _doc.body;\n\t\t}\n\t\tcache = parent._gsap;\n\t\tif (cache && unit === \"%\" && cache.width && horizontal && cache.time === _ticker.time) {\n\t\t\tpx = cache.width * curValue / amount;\n\t\t} else {\n\t\t\tparent.appendChild(_tempDiv);\n\t\t\tpx = _tempDiv[measureProperty];\n\t\t\tparent.removeChild(_tempDiv);\n\t\t\tif (horizontal && unit === \"%\") {\n\t\t\t\tcache = _getCache(parent);\n\t\t\t\tcache.time = _ticker.time;\n\t\t\t\tcache.width = px / curValue * amount;\n\t\t\t}\n\t\t}\n\t\treturn _round(toPixels ? px * curValue / amount : amount / px * curValue);\n\t},\n\t_get = (target, property, unit, uncache) => {\n\t\tlet value;\n\t\tif (!_pluginInitted) {\n\t\t\t_initCore();\n\t\t}\n\t\tif (property in _propertyAliases) {\n\t\t\tproperty = _propertyAliases[property];\n\t\t\tif (~property.indexOf(\",\")) {\n\t\t\t\tproperty = property.split(\",\")[0];\n\t\t\t}\n\t\t}\n\t\tif (_transformProps[property]) {\n\t\t\tvalue = _parseTransform(target, uncache);\n\t\t\tvalue = (property !== \"transformOrigin\") ? value[property] : _firstTwoOnly(_getComputedProperty(target, _transformOriginProp)) + value.zOrigin + \"px\";\n\t\t} else {\n\t\t\tvalue = target.style[property];\n\t\t\tif (!value || value === \"auto\" || uncache) {\n\t\t\t\tvalue = _getComputedProperty(target, property) || _getProperty(target, property);\n\t\t\t}\n\t\t}\n\t\treturn unit ? _convertToUnit(target, property, value, unit) + unit : value;\n\n\t},\n\t_tweenComplexCSSString = function(target, prop, start, end) { //note: we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\t\tlet pt = new PropTween(this._pt, target.style, prop, 0, 1, _renderComplexString),\n\t\t\tindex = 0,\n\t\t\tmatchIndex = 0,\n\t\t\ta, result,\tstartValues, startNum, color, startValue, endValue, endNum, chunk, endUnit, startUnit, relative, endValues;\n\t\tpt.b = start;\n\t\tpt.e = end;\n\t\tstart += \"\"; //ensure values are strings\n\t\tend += \"\";\n\t\tif (end === \"auto\") {\n\t\t\ttarget.style[prop] = end;\n\t\t\tend = _getComputedProperty(target, prop) || end;\n\t\t\ttarget.style[prop] = start;\n\t\t}\n\t\ta = [start, end];\n\t\t_colorStringFilter(a); //pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n\t\tstart = a[0];\n\t\tend = a[1];\n\t\tstartValues = start.match(_numWithUnitExp) || [];\n\t\tendValues = end.match(_numWithUnitExp) || [];\n\t\tif (endValues.length) {\n\t\t\twhile ((result = _numWithUnitExp.exec(end))) {\n\t\t\t\tendValue = result[0];\n\t\t\t\tchunk = end.substring(index, result.index);\n\t\t\t\tif (color) {\n\t\t\t\t\tcolor = (color + 1) % 5;\n\t\t\t\t} else if (chunk.substr(-5) === \"rgba(\") {\n\t\t\t\t\tcolor = 1;\n\t\t\t\t}\n\t\t\t\tif (endValue !== (startValue = startValues[matchIndex++] || \"\")) {\n\t\t\t\t\tstartNum = parseFloat(startValue) || 0;\n\t\t\t\t\tstartUnit = startValue.substr((startNum + \"\").length);\n\t\t\t\t\trelative = (endValue.charAt(1) === \"=\") ? +(endValue.charAt(0) + \"1\") : 0;\n\t\t\t\t\tif (relative) {\n\t\t\t\t\t\tendValue = endValue.substr(2);\n\t\t\t\t\t}\n\t\t\t\t\tendNum = parseFloat(endValue);\n\t\t\t\t\tendUnit = endValue.substr((endNum + \"\").length);\n\t\t\t\t\tindex = _numWithUnitExp.lastIndex - endUnit.length;\n\t\t\t\t\tif (!endUnit) { //if something like \"perspective:300\" is passed in and we must add a unit to the end\n\t\t\t\t\t\tendUnit = endUnit || _config.units[prop] || startUnit;\n\t\t\t\t\t\tif (index === end.length) {\n\t\t\t\t\t\t\tend += endUnit;\n\t\t\t\t\t\t\tpt.e += endUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (startUnit !== endUnit) {\n\t\t\t\t\t\tstartNum = _convertToUnit(target, prop, startValue, endUnit);\n\t\t\t\t\t}\n\t\t\t\t\t//these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\t\t\t\t\tpt._pt = {\n\t\t\t\t\t\t_next:pt._pt,\n\t\t\t\t\t\tp:(chunk || (matchIndex === 1)) ? chunk : \",\", //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n\t\t\t\t\t\ts:startNum,\n\t\t\t\t\t\tc:relative ? relative * endNum : endNum - startNum,\n\t\t\t\t\t\tm:(color && color < 4) ? Math.round : 0\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t\tpt.c = (index < end.length) ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n\t\t} else {\n\t\t\tpt.r = prop === \"display\" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;\n\t\t}\n\t\tif (_relExp.test(end)) {\n\t\t\tpt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n\t\t}\n\t\tthis._pt = pt; //start the linked list with this new PropTween. Remember, we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within another plugin too, thus \"this\" would refer to the plugin.\n\t\treturn pt;\n\t},\n\t_keywordToPercent = {top:\"0%\", bottom:\"100%\", left:\"0%\", right:\"100%\", center:\"50%\"},\n\t_convertKeywordsToPercentages = value => {\n\t\tlet split = value.split(\" \"),\n\t\t\tx = split[0],\n\t\t\ty = split[1] || \"50%\";\n\t\tif (x === \"top\" || x === \"bottom\" || y === \"left\" || y === \"right\") { //the user provided them in the wrong order, so flip them\n\t\t\tsplit = x;\n\t\t\tx = y;\n\t\t\ty = split;\n\t\t}\n\t\tsplit[0] = _keywordToPercent[x] || x;\n\t\tsplit[1] = _keywordToPercent[y] || y;\n\t\treturn split.join(\" \");\n\t},\n\t_renderClearProps = (ratio, data) => {\n\t\tif (data.tween && data.tween._time === data.tween._dur) {\n\t\t\tlet target = data.t,\n\t\t\t\tstyle = target.style,\n\t\t\t\tprops = data.u,\n\t\t\t\tprop, clearTransforms, i;\n\t\t\tif (props === \"all\" || props === true) {\n\t\t\t\tstyle.cssText = \"\";\n\t\t\t\tclearTransforms = 1;\n\t\t\t} else {\n\t\t\t\tprops = props.split(\",\");\n\t\t\t\ti = props.length;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\tprop = props[i];\n\t\t\t\t\tif (_transformProps[prop]) {\n\t\t\t\t\t\tclearTransforms = 1;\n\t\t\t\t\t\tprop = (prop === \"transformOrigin\") ? _transformOriginProp : _transformProp;\n\t\t\t\t\t}\n\t\t\t\t\t_removeProperty(target, prop);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (clearTransforms) {\n\t\t\t\t_removeProperty(target, _transformProp);\n\t\t\t\tclearTransforms = target._gsap;\n\t\t\t\tif (clearTransforms) {\n\t\t\t\t\tif (clearTransforms.svg) {\n\t\t\t\t\t\ttarget.removeAttribute(\"transform\");\n\t\t\t\t\t}\n\t\t\t\t\tdelete clearTransforms.x;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t// note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.\n\t_specialProps = {\n\t\tclearProps(plugin, target, property, endValue, tween) {\n\t\t\tlet pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);\n\t\t\tpt.u = endValue;\n\t\t\tpt.pr = -10;\n\t\t\tpt.tween = tween;\n\t\t\tplugin._props.push(property);\n\t\t\treturn 1;\n\t\t}\n\t\t/* className feature (about 0.4kb gzipped).\n\t\t, className(plugin, target, property, endValue, tween) {\n\t\t\tlet _renderClassName = (ratio, data) => {\n\t\t\t\t\tdata.css.render(ratio, data.css);\n\t\t\t\t\tif (!ratio || ratio === 1) {\n\t\t\t\t\t\tlet inline = data.rmv,\n\t\t\t\t\t\t\ttarget = data.t,\n\t\t\t\t\t\t\tp;\n\t\t\t\t\t\ttarget.setAttribute(\"class\", ratio ? data.e : data.b);\n\t\t\t\t\t\tfor (p in inline) {\n\t\t\t\t\t\t\t_removeProperty(target, p);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t_getAllStyles = (target) => {\n\t\t\t\t\tlet styles = {},\n\t\t\t\t\t\tcomputed = getComputedStyle(target),\n\t\t\t\t\t\tp;\n\t\t\t\t\tfor (p in computed) {\n\t\t\t\t\t\tif (isNaN(p) && p !== \"cssText\" && p !== \"length\") {\n\t\t\t\t\t\t\tstyles[p] = computed[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t_setDefaults(styles, _parseTransform(target, 1));\n\t\t\t\t\treturn styles;\n\t\t\t\t},\n\t\t\t\tstartClassList = target.getAttribute(\"class\"),\n\t\t\t\tstyle = target.style,\n\t\t\t\tcssText = style.cssText,\n\t\t\t\tcache = target._gsap,\n\t\t\t\tclassPT = cache.classPT,\n\t\t\t\tinlineToRemoveAtEnd = {},\n\t\t\t\tdata = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== \"=\") ? endValue : startClassList.replace(new RegExp(\"(?:\\\\s|^)\" + endValue.substr(2) + \"(?![\\\\w-])\"), \"\") + ((endValue.charAt(0) === \"+\") ? \" \" + endValue.substr(2) : \"\")},\n\t\t\t\tchangingVars = {},\n\t\t\t\tstartVars = _getAllStyles(target),\n\t\t\t\ttransformRelated = /(transform|perspective)/i,\n\t\t\t\tendVars, p;\n\t\t\tif (classPT) {\n\t\t\t\tclassPT.r(1, classPT.d);\n\t\t\t\t_removeLinkedListItem(classPT.d.plugin, classPT, \"_pt\");\n\t\t\t}\n\t\t\ttarget.setAttribute(\"class\", data.e);\n\t\t\tendVars = _getAllStyles(target, true);\n\t\t\ttarget.setAttribute(\"class\", startClassList);\n\t\t\tfor (p in endVars) {\n\t\t\t\tif (endVars[p] !== startVars[p] && !transformRelated.test(p)) {\n\t\t\t\t\tchangingVars[p] = endVars[p];\n\t\t\t\t\tif (!style[p] && style[p] !== \"0\") {\n\t\t\t\t\t\tinlineToRemoveAtEnd[p] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcache.classPT = plugin._pt = new PropTween(plugin._pt, target, \"className\", 0, 0, _renderClassName, data, 0, -11);\n\t\t\tif (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://greensock.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.\n\t\t\t\tstyle.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).\n\t\t\t}\n\t\t\t_parseTransform(target, true); //to clear the caching of transforms\n\t\t\tdata.css = new gsap.plugins.css();\n\t\t\tdata.css.init(target, changingVars, tween);\n\t\t\tplugin._props.push(...data.css._props);\n\t\t\treturn 1;\n\t\t}\n\t\t*/\n\t},\n\n\n\n\n\n\t/*\n\t * --------------------------------------------------------------------------------------\n\t * TRANSFORMS\n\t * --------------------------------------------------------------------------------------\n\t */\n\t_identity2DMatrix = [1,0,0,1,0,0],\n\t_rotationalProperties = {},\n\t_isNullTransform = value => (value === \"matrix(1, 0, 0, 1, 0, 0)\" || value === \"none\" || !value),\n\t_getComputedTransformMatrixAsArray = target => {\n\t\tlet matrixString = _getComputedProperty(target, _transformProp);\n\t\treturn _isNullTransform(matrixString) ? _identity2DMatrix : matrixString.substr(7).match(_numExp).map(_round);\n\t},\n\t_getMatrix = (target, force2D) => {\n\t\tlet cache = target._gsap,\n\t\t\tstyle = target.style,\n\t\t\tmatrix = _getComputedTransformMatrixAsArray(target),\n\t\t\tparent, nextSibling, temp, addedToDOM;\n\t\tif (cache.svg && target.getAttribute(\"transform\")) {\n\t\t\ttemp = target.transform.baseVal.consolidate().matrix; //ensures that even complex values like \"translate(50,60) rotate(135,0,0)\" are parsed because it mashes it into a matrix.\n\t\t\tmatrix = [temp.a, temp.b, temp.c, temp.d, temp.e, temp.f];\n\t\t\treturn (matrix.join(\",\") === \"1,0,0,1,0,0\") ? _identity2DMatrix : matrix;\n\t\t} else if (matrix === _identity2DMatrix && !target.offsetParent && target !== _docElement && !cache.svg) { //note: if offsetParent is null, that means the element isn't in the normal document flow, like if it has display:none or one of its ancestors has display:none). Firefox returns null for getComputedStyle() if the element is in an iframe that has display:none. https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n\t\t\t//browsers don't report transforms accurately unless the element is in the DOM and has a display value that's not \"none\". Firefox and Microsoft browsers have a partial bug where they'll report transforms even if display:none BUT not any percentage-based values like translate(-50%, 8px) will be reported as if it's translate(0, 8px).\n\t\t\ttemp = style.display;\n\t\t\tstyle.display = \"block\";\n\t\t\tparent = target.parentNode;\n\t\t\tif (!parent || !target.offsetParent) {\n\t\t\t\taddedToDOM = 1; //flag\n\t\t\t\tnextSibling = target.nextSibling;\n\t\t\t\t_docElement.appendChild(target); //we must add it to the DOM in order to get values properly\n\t\t\t}\n\t\t\tmatrix = _getComputedTransformMatrixAsArray(target);\n\t\t\tif (temp) {\n\t\t\t\tstyle.display = temp;\n\t\t\t} else {\n\t\t\t\t_removeProperty(target, \"display\");\n\t\t\t}\n\t\t\tif (addedToDOM) {\n\t\t\t\tif (nextSibling) {\n\t\t\t\t\tparent.insertBefore(target, nextSibling);\n\t\t\t\t} else if (parent) {\n\t\t\t\t\tparent.appendChild(target);\n\t\t\t\t} else {\n\t\t\t\t\t_docElement.removeChild(target);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (force2D && matrix.length > 6) ? [matrix[0], matrix[1], matrix[4], matrix[5], matrix[12], matrix[13]] : matrix;\n\t},\n\t_applySVGOrigin = (target, origin, originIsAbsolute, smooth, matrixArray, pluginToAddPropTweensTo) => {\n\t\tlet cache = target._gsap,\n\t\t\tmatrix = matrixArray || _getMatrix(target, true),\n\t\t\txOriginOld = cache.xOrigin || 0,\n\t\t\tyOriginOld = cache.yOrigin || 0,\n\t\t\txOffsetOld = cache.xOffset || 0,\n\t\t\tyOffsetOld = cache.yOffset || 0,\n\t\t\ta = matrix[0],\n\t\t\tb = matrix[1],\n\t\t\tc = matrix[2],\n\t\t\td = matrix[3],\n\t\t\ttx = matrix[4],\n\t\t\tty = matrix[5],\n\t\t\toriginSplit = origin.split(\" \"),\n\t\t\txOrigin = parseFloat(originSplit[0]) || 0,\n\t\t\tyOrigin = parseFloat(originSplit[1]) || 0,\n\t\t\tbounds, determinant, x, y;\n\t\tif (!originIsAbsolute) {\n\t\t\tbounds = _getBBox(target);\n\t\t\txOrigin = bounds.x + (~originSplit[0].indexOf(\"%\") ? xOrigin / 100 * bounds.width : xOrigin);\n\t\t\tyOrigin = bounds.y + (~((originSplit[1] || originSplit[0]).indexOf(\"%\")) ? yOrigin / 100 * bounds.height : yOrigin);\n\t\t} else if (matrix !== _identity2DMatrix && (determinant = (a * d - b * c))) { //if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.\n\t\t\tx = xOrigin * (d / determinant) + yOrigin * (-c / determinant) + ((c * ty - d * tx) / determinant);\n\t\t\ty = xOrigin * (-b / determinant) + yOrigin * (a / determinant) - ((a * ty - b * tx) / determinant);\n\t\t\txOrigin = x;\n\t\t\tyOrigin = y;\n\t\t}\n\t\tif (smooth || (smooth !== false && cache.smooth)) {\n\t\t\ttx = xOrigin - xOriginOld;\n\t\t\tty = yOrigin - yOriginOld;\n\t\t\tcache.xOffset += (tx * a + ty * c) - tx;\n\t\t\tcache.yOffset += (tx * b + ty * d) - ty;\n\t\t} else {\n\t\t\tcache.xOffset = cache.yOffset = 0;\n\t\t}\n\t\tcache.xOrigin = xOrigin;\n\t\tcache.yOrigin = yOrigin;\n\t\tcache.smooth = !!smooth;\n\t\tcache.origin = origin;\n\t\tcache.originIsAbsolute = !!originIsAbsolute;\n\t\tif (pluginToAddPropTweensTo) {\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOrigin\", xOriginOld, xOrigin);\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOrigin\", yOriginOld, yOrigin);\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOffset\", xOffsetOld, cache.xOffset);\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOffset\", yOffsetOld, cache.yOffset);\n\t\t}\n\t},\n\t_parseTransform = (target, uncache) => {\n\t\tlet cache = target._gsap || new GSCache(target);\n\t\tif (\"x\" in cache && !uncache) {\n\t\t\treturn cache;\n\t\t}\n\t\tlet style = target.style,\n\t\t\tinvertedScaleX = cache.scaleX < 0,\n\t\t\txOrigin = cache.xOrigin || 0,\n\t\t\tyOrigin = cache.yOrigin || 0,\n\t\t\tpx = \"px\",\n\t\t\tdeg = \"deg\",\n\t\t\torigin = _getComputedProperty(target, _transformOriginProp) || \"0\",\n\t\t\tx, y, z, scaleX, scaleY, rotation, rotationX, rotationY, skewX, skewY, perspective,\n\t\t\tmatrix, angle, cos, sin, a, b, c, d, a12, a22, t1, t2, t3, a13, a23, a33, a42, a43, a32;\n\t\tx = y = z = rotation = rotationX = rotationY = skewX = skewY = perspective = 0;\n\t\tscaleX = scaleY = 1;\n\t\tcache.svg = !!(target.getCTM && _isSVG(target));\n\t\tmatrix = _getMatrix(target, cache.svg);\n\t\tif (cache.svg) {\n\t\t\t_applySVGOrigin(target, origin, cache.originIsAbsolute, cache.smooth !== false, matrix);\n\t\t}\n\t\tif (matrix !== _identity2DMatrix) {\n\t\t\ta = matrix[0]; //a11\n\t\t\tb = matrix[1]; //a21\n\t\t\tc = matrix[2]; //a31\n\t\t\td = matrix[3]; //a41\n\t\t\tx = a12 = matrix[4];\n\t\t\ty = a22 = matrix[5];\n\n\t\t\t//2D matrix\n\t\t\tif (matrix.length === 6) {\n\t\t\t\tscaleX = Math.sqrt(a * a + b * b);\n\t\t\t\tscaleY = Math.sqrt(d * d + c * c);\n\t\t\t\trotation = (a || b) ? _atan2(b, a) * _RAD2DEG : cache.rotation || 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).\n\t\t\t\tskewX = (c || d) ? _atan2(c, d) * _RAD2DEG + rotation : cache.skewX || 0;\n\t\t\t\tif (cache.svg) {\n\t\t\t\t\tx -= xOrigin - (xOrigin * a + yOrigin * c);\n\t\t\t\t\ty -= yOrigin - (xOrigin * b + yOrigin * d);\n\t\t\t\t}\n\n\t\t\t\t//3D matrix\n\t\t\t} else {\n\t\t\t\ta32 = matrix[6];\n\t\t\t\ta42 = matrix[7];\n\t\t\t\ta13 = matrix[8];\n\t\t\t\ta23 = matrix[9];\n\t\t\t\ta33 = matrix[10];\n\t\t\t\ta43 = matrix[11];\n\t\t\t\tx = matrix[12];\n\t\t\t\ty = matrix[13];\n\t\t\t\tz = matrix[14];\n\n\t\t\t\tangle = _atan2(a32, a33);\n\t\t\t\trotationX = angle * _RAD2DEG;\n\t\t\t\t//rotationX\n\t\t\t\tif (angle) {\n\t\t\t\t\tcos = Math.cos(-angle);\n\t\t\t\t\tsin = Math.sin(-angle);\n\t\t\t\t\tt1 = a12*cos+a13*sin;\n\t\t\t\t\tt2 = a22*cos+a23*sin;\n\t\t\t\t\tt3 = a32*cos+a33*sin;\n\t\t\t\t\ta13 = a12*-sin+a13*cos;\n\t\t\t\t\ta23 = a22*-sin+a23*cos;\n\t\t\t\t\ta33 = a32*-sin+a33*cos;\n\t\t\t\t\ta43 = a42*-sin+a43*cos;\n\t\t\t\t\ta12 = t1;\n\t\t\t\t\ta22 = t2;\n\t\t\t\t\ta32 = t3;\n\t\t\t\t}\n\t\t\t\t//rotationY\n\t\t\t\tangle = _atan2(-c, a33);\n\t\t\t\trotationY = angle * _RAD2DEG;\n\t\t\t\tif (angle) {\n\t\t\t\t\tcos = Math.cos(-angle);\n\t\t\t\t\tsin = Math.sin(-angle);\n\t\t\t\t\tt1 = a*cos-a13*sin;\n\t\t\t\t\tt2 = b*cos-a23*sin;\n\t\t\t\t\tt3 = c*cos-a33*sin;\n\t\t\t\t\ta43 = d*sin+a43*cos;\n\t\t\t\t\ta = t1;\n\t\t\t\t\tb = t2;\n\t\t\t\t\tc = t3;\n\t\t\t\t}\n\t\t\t\t//rotationZ\n\t\t\t\tangle = _atan2(b, a);\n\t\t\t\trotation = angle * _RAD2DEG;\n\t\t\t\tif (angle) {\n\t\t\t\t\tcos = Math.cos(angle);\n\t\t\t\t\tsin = Math.sin(angle);\n\t\t\t\t\tt1 = a*cos+b*sin;\n\t\t\t\t\tt2 = a12*cos+a22*sin;\n\t\t\t\t\tb = b*cos-a*sin;\n\t\t\t\t\ta22 = a22*cos-a12*sin;\n\t\t\t\t\ta = t1;\n\t\t\t\t\ta12 = t2;\n\t\t\t\t}\n\n\t\t\t\tif (rotationX && Math.abs(rotationX) + Math.abs(rotation) > 359.9) { //when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.\n\t\t\t\t\trotationX = rotation = 0;\n\t\t\t\t\trotationY = 180 - rotationY;\n\t\t\t\t}\n\t\t\t\tscaleX = _round(Math.sqrt(a * a + b * b + c * c));\n\t\t\t\tscaleY = _round(Math.sqrt(a22 * a22 + a32 * a32));\n\t\t\t\tangle = _atan2(a12, a22);\n\t\t\t\tskewX = (Math.abs(angle) > 0.0002) ? angle * _RAD2DEG : 0;\n\t\t\t\tperspective = a43 ? 1 / ((a43 < 0) ? -a43 : a43) : 0;\n\t\t\t}\n\n\t\t\tif (cache.svg) { //sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).\n\t\t\t\tmatrix = target.getAttribute(\"transform\");\n\t\t\t\tcache.forceCSS = target.setAttribute(\"transform\", \"\") || (!_isNullTransform(_getComputedProperty(target, _transformProp)));\n\t\t\t\tmatrix && target.setAttribute(\"transform\", matrix);\n\t\t\t}\n\t\t}\n\n\t\tif (Math.abs(skewX) > 90 && Math.abs(skewX) < 270) {\n\t\t\tif (invertedScaleX) {\n\t\t\t\tscaleX *= -1;\n\t\t\t\tskewX += (rotation <= 0) ? 180 : -180;\n\t\t\t\trotation += (rotation <= 0) ? 180 : -180;\n\t\t\t} else {\n\t\t\t\tscaleY *= -1;\n\t\t\t\tskewX += (skewX <= 0) ? 180 : -180;\n\t\t\t}\n\t\t}\n\n\t\tcache.x = ((cache.xPercent = (x && Math.round(target.offsetWidth / 2) === Math.round(-x)) ? -50 : 0) ? 0 : x) + px;\n\t\tcache.y = ((cache.yPercent = (y && Math.round(target.offsetHeight / 2) === Math.round(-y)) ? -50 : 0) ? 0 : y) + px;\n\t\tcache.z = z + px;\n\t\tcache.scaleX = _round(scaleX);\n\t\tcache.scaleY = _round(scaleY);\n\t\tcache.rotation = _round(rotation) + deg;\n\t\tcache.rotationX = _round(rotationX) + deg;\n\t\tcache.rotationY = _round(rotationY) + deg;\n\t\tcache.skewX = skewX + deg;\n\t\tcache.skewY = skewY + deg;\n\t\tcache.transformPerspective = perspective + px;\n\t\tif ((cache.zOrigin = parseFloat(origin.split(\" \")[2]) || 0)) {\n\t\t\tstyle[_transformOriginProp] = _firstTwoOnly(origin);\n\t\t}\n\t\tcache.xOffset = cache.yOffset = 0;\n\t\tcache.force3D = _config.force3D;\n\t\tcache.renderTransform = cache.svg ? _renderSVGTransforms : _supports3D ? _renderCSSTransforms : _renderNon3DTransforms;\n\t\treturn cache;\n\t},\n\t_firstTwoOnly = value => (value = value.split(\" \"))[0] + \" \" + value[1], //for handling transformOrigin values, stripping out the 3rd dimension\n\t_addPxTranslate = (target, start, value) => {\n\t\tlet unit = getUnit(start);\n\t\treturn _round(parseFloat(start) + parseFloat(_convertToUnit(target, \"x\", value + \"px\", unit))) + unit;\n\t},\n\t_renderNon3DTransforms = (ratio, cache) => {\n\t\tcache.z = \"0px\";\n\t\tcache.rotationY = cache.rotationX = \"0deg\";\n\t\tcache.force3D = 0;\n\t\t_renderCSSTransforms(ratio, cache);\n\t},\n\t_zeroDeg = \"0deg\",\n\t_zeroPx = \"0px\",\n\t_endParenthesis = \") \",\n\t_renderCSSTransforms = function(ratio, cache) {\n\t\tlet {xPercent, yPercent, x, y, z, rotation, rotationY, rotationX, skewX, skewY, scaleX, scaleY, transformPerspective, force3D, target, zOrigin} = cache || this,\n\t\t\ttransforms = \"\",\n\t\t\tuse3D = (force3D === \"auto\" && ratio && ratio !== 1) || force3D === true;\n\n\t\t// Safari has a bug that causes it not to render 3D transform-origin values properly, so we force the z origin to 0, record it in the cache, and then do the math here to offset the translate values accordingly (basically do the 3D transform-origin part manually)\n\t\tif (zOrigin && (rotationX !== _zeroDeg || rotationY !== _zeroDeg)) {\n\t\t\tlet angle = parseFloat(rotationY) * _DEG2RAD,\n\t\t\t\ta13 = Math.sin(angle),\n\t\t\t\ta33 = Math.cos(angle),\n\t\t\t\tcos;\n\t\t\tangle = parseFloat(rotationX) * _DEG2RAD;\n\t\t\tcos = Math.cos(angle);\n\t\t\tx = _addPxTranslate(target, x, a13 * cos * -zOrigin);\n\t\t\ty = _addPxTranslate(target, y, -Math.sin(angle) * -zOrigin);\n\t\t\tz = _addPxTranslate(target, z, a33 * cos * -zOrigin + zOrigin);\n\t\t}\n\n\t\tif (xPercent || yPercent) {\n\t\t\ttransforms = \"translate(\" + xPercent + \"%, \" + yPercent + \"%) \";\n\t\t}\n\t\tif (use3D || x !== _zeroPx || y !== _zeroPx || z !== _zeroPx) {\n\t\t\ttransforms += (z !== _zeroPx || use3D) ? \"translate3d(\" + x + \", \" + y + \", \" + z + \") \" : \"translate(\" + x + \", \" + y + _endParenthesis;\n\t\t}\n\t\tif (transformPerspective !== _zeroPx) {\n\t\t\ttransforms += \"perspective(\" + transformPerspective + _endParenthesis;\n\t\t}\n\t\tif (rotation !== _zeroDeg) {\n\t\t\ttransforms += \"rotate(\" + rotation + _endParenthesis;\n\t\t}\n\t\tif (rotationY !== _zeroDeg) {\n\t\t\ttransforms += \"rotateY(\" + rotationY + _endParenthesis;\n\t\t}\n\t\tif (rotationX !== _zeroDeg) {\n\t\t\ttransforms += \"rotateX(\" + rotationX + _endParenthesis;\n\t\t}\n\t\tif (skewX !== _zeroDeg || skewY !== _zeroDeg) {\n\t\t\ttransforms += \"skew(\" + skewX + \", \" + skewY + _endParenthesis;\n\t\t}\n\t\tif (scaleX !== 1 || scaleY !== 1) {\n\t\t\ttransforms += \"scale(\" + scaleX + \", \" + scaleY + _endParenthesis;\n\t\t}\n\t\ttarget.style[_transformProp] = transforms || \"translate(0, 0)\";\n\t},\n\t_renderSVGTransforms = function(ratio, cache) {\n\t\tlet {xPercent, yPercent, x, y, rotation, skewX, skewY, scaleX, scaleY, target, xOrigin, yOrigin, xOffset, yOffset, forceCSS} = cache || this,\n\t\t\ttx = parseFloat(x),\n\t\t\tty = parseFloat(y),\n\t\t\ta11, a21, a12, a22, temp;\n\t\trotation = parseFloat(rotation);\n\t\tskewX = parseFloat(skewX);\n\t\tskewY = parseFloat(skewY);\n\t\tif (skewY) { //for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.\n\t\t\tskewY = parseFloat(skewY);\n\t\t\tskewX += skewY;\n\t\t\trotation += skewY;\n\t\t}\n\t\tif (rotation || skewX) {\n\t\t\trotation *= _DEG2RAD;\n\t\t\tskewX *= _DEG2RAD;\n\t\t\ta11 = Math.cos(rotation) * scaleX;\n\t\t\ta21 = Math.sin(rotation) * scaleX;\n\t\t\ta12 = Math.sin(rotation - skewX) * -scaleY;\n\t\t\ta22 = Math.cos(rotation - skewX) * scaleY;\n\t\t\tif (skewX) {\n\t\t\t\tskewY *= _DEG2RAD;\n\t\t\t\ttemp = Math.tan(skewX - skewY);\n\t\t\t\ttemp = Math.sqrt(1 + temp * temp);\n\t\t\t\ta12 *= temp;\n\t\t\t\ta22 *= temp;\n\t\t\t\tif (skewY) {\n\t\t\t\t\ttemp = Math.tan(skewY);\n\t\t\t\t\ttemp = Math.sqrt(1 + temp * temp);\n\t\t\t\t\ta11 *= temp;\n\t\t\t\t\ta21 *= temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\ta11 = _round(a11);\n\t\t\ta21 = _round(a21);\n\t\t\ta12 = _round(a12);\n\t\t\ta22 = _round(a22);\n\t\t} else {\n\t\t\ta11 = scaleX;\n\t\t\ta22 = scaleY;\n\t\t\ta21 = a12 = 0;\n\t\t}\n\t\tif ((tx && !~(x + \"\").indexOf(\"px\")) || (ty && !~(y + \"\").indexOf(\"px\"))) {\n\t\t\ttx = _convertToUnit(target, \"x\", x, \"px\");\n\t\t\tty = _convertToUnit(target, \"y\", y, \"px\");\n\t\t}\n\t\tif (xOrigin || yOrigin || xOffset || yOffset) {\n\t\t\ttx = _round(tx + xOrigin - (xOrigin * a11 + yOrigin * a12) + xOffset);\n\t\t\tty = _round(ty + yOrigin - (xOrigin * a21 + yOrigin * a22) + yOffset);\n\t\t}\n\t\tif (xPercent || yPercent) {\n\t\t\t//The SVG spec doesn't support percentage-based translation in the \"transform\" attribute, so we merge it into the translation to simulate it.\n\t\t\ttemp = target.getBBox();\n\t\t\ttx = _round(tx + xPercent / 100 * temp.width);\n\t\t\tty = _round(ty + yPercent / 100 * temp.height);\n\t\t}\n\t\ttemp = \"matrix(\" + a11 + \",\" + a21 + \",\" + a12 + \",\" + a22 + \",\" + tx + \",\" + ty + \")\";\n\t\ttarget.setAttribute(\"transform\", temp);\n\t\tif (forceCSS) { //some browsers prioritize CSS transforms over the transform attribute. When we sense that the user has CSS transforms applied, we must overwrite them this way (otherwise some browser simply won't render the transform attribute changes!)\n\t\t\ttarget.style[_transformProp] = temp;\n\t\t}\n\t},\n\t_addRotationalPropTween = function(plugin, target, property, startNum, endValue, relative) {\n\t\tlet cap = 360,\n\t\t\tisString = _isString(endValue),\n\t\t\tendNum = parseFloat(endValue) * ((isString && ~endValue.indexOf(\"rad\")) ? _RAD2DEG : 1),\n\t\t\tchange = relative ? endNum * relative : endNum - startNum,\n\t\t\tfinalValue = (startNum + change) + \"deg\",\n\t\t\tdirection, pt;\n\t\tif (isString) {\n\t\t\tdirection = endValue.split(\"_\")[1];\n\t\t\tif (direction === \"short\") {\n\t\t\t\tchange %= cap;\n\t\t\t\tif (change !== change % (cap / 2)) {\n\t\t\t\t\tchange += (change < 0) ? cap : -cap;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (direction === \"cw\" && change < 0) {\n\t\t\t\tchange = ((change + cap * _bigNum) % cap) - ~~(change / cap) * cap;\n\t\t\t} else if (direction === \"ccw\" && change > 0) {\n\t\t\t\tchange = ((change - cap * _bigNum) % cap) - ~~(change / cap) * cap;\n\t\t\t}\n\t\t}\n\t\tplugin._pt = pt = new PropTween(plugin._pt, target, property, startNum, change, _renderPropWithEnd);\n\t\tpt.e = finalValue;\n\t\tpt.u = \"deg\";\n\t\tplugin._props.push(property);\n\t\treturn pt;\n\t},\n\t_addRawTransformPTs = (plugin, transforms, target) => { //for handling cases where someone passes in a whole transform string, like transform: \"scale(2, 3) rotate(20deg) translateY(30em)\"\n\t\tlet style = _tempDivStyler.style,\n\t\t\tstartCache = target._gsap,\n\t\t\tendCache, p, startValue, endValue, startNum, endNum, startUnit, endUnit;\n\t\tstyle.cssText = getComputedStyle(target).cssText + \";position:absolute;display:block;\"; //%-based translations will fail unless we set the width/height to match the original target (and padding/borders can affect it)\n\t\tstyle[_transformProp] = transforms;\n\t\t_doc.body.appendChild(_tempDivStyler);\n\t\tendCache = _parseTransform(_tempDivStyler, 1);\n\t\tfor (p in _transformProps) {\n\t\t\tstartValue = startCache[p];\n\t\t\tendValue = endCache[p];\n\t\t\tif (startValue !== endValue && p !== \"perspective\") { //tweening to no perspective gives very unintuitive results - just keep the same perspective in that case.\n\t\t\t\tstartUnit = getUnit(startValue);\n\t\t\t\tendUnit = getUnit(endValue);\n\t\t\t\tstartNum = (startUnit !== endUnit) ?_convertToUnit(target, p, startValue, endUnit) : parseFloat(startValue);\n\t\t\t\tendNum = parseFloat(endValue);\n\t\t\t\tplugin._pt = new PropTween(plugin._pt, startCache, p, startNum, endNum - startNum, _renderCSSProp);\n\t\t\t\tplugin._pt.u = endUnit;\n\t\t\t\tplugin._props.push(p);\n\t\t\t}\n\t\t}\n\t\t_doc.body.removeChild(_tempDivStyler);\n\t};\n\n\n\n\nexport const CSSPlugin = {\n\tname:\"css\",\n\tregister:_initCore,\n\ttargetTest(target) {\n\t\treturn target.style && target.nodeType;\n\t},\n\tinit(target, vars, tween, index, targets) {\n\t\tlet props = this._props,\n\t\t\tstyle = target.style,\n\t\t\tstartValue, endValue, endNum, startNum, type, specialProp, p, startUnit, endUnit, relative, isTransformRelated, transformPropTween, cache, smooth, hasPriority;\n\t\tif (!_pluginInitted) {\n\t\t\t_initCore();\n\t\t}\n\t\tfor (p in vars) {\n\t\t\tif (p === \"autoRound\") {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tendValue = vars[p];\n\t\t\tif (_plugins[p] && _checkPlugin(p, vars, tween, index, target, targets)) { //plugins\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttype = typeof(endValue);\n\t\t\tspecialProp = _specialProps[p];\n\t\t\tif (type === \"function\") {\n\t\t\t\tendValue = endValue.call(tween, index, target, targets);\n\t\t\t\ttype = typeof(endValue);\n\t\t\t}\n\t\t\tif (type === \"string\" && ~endValue.indexOf(\"random(\")) {\n\t\t\t\tendValue = _replaceRandom(endValue);\n\t\t\t}\n\t\t\tif (specialProp) {\n\t\t\t\tif (specialProp(this, target, p, endValue, tween)) {\n\t\t\t\t\thasPriority = 1;\n\t\t\t\t}\n\t\t\t} else if (p.substr(0,2) === \"--\") { //CSS variable\n\t\t\t\tthis.add(style, \"setProperty\", getComputedStyle(target).getPropertyValue(p) + \"\", endValue + \"\", index, targets, 0, 0, p);\n\t\t\t} else {\n\t\t\t\tstartValue = _get(target, p);\n\t\t\t\tstartNum = parseFloat(startValue);\n\t\t\t\trelative = (type === \"string\" && endValue.charAt(1) === \"=\") ? +(endValue.charAt(0) + \"1\") : 0;\n\t\t\t\tif (relative) {\n\t\t\t\t\tendValue = endValue.substr(2);\n\t\t\t\t}\n\t\t\t\tendNum = parseFloat(endValue);\n\t\t\t\tif (p in _propertyAliases) {\n\t\t\t\t\tif (p === \"autoAlpha\") { //special case where we control the visibility along with opacity. We still allow the opacity value to pass through and get tweened.\n\t\t\t\t\t\tif (startNum === 1 && _get(target, \"visibility\") === \"hidden\" && endNum) { //if visibility is initially set to \"hidden\", we should interpret that as intent to make opacity 0 (a convenience)\n\t\t\t\t\t\t\tstartNum = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_addNonTweeningPT(this, style, \"visibility\", startNum ? \"inherit\" : \"hidden\", endNum ? \"inherit\" : \"hidden\", !endNum);\n\t\t\t\t\t}\n\t\t\t\t\tif (p !== \"scale\") {\n\t\t\t\t\t\tp = _propertyAliases[p];\n\t\t\t\t\t\tif (~p.indexOf(\",\")) {\n\t\t\t\t\t\t\tp = p.split(\",\")[0];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tisTransformRelated = (p in _transformProps);\n\n\t\t\t\t//--- TRANSFORM-RELATED ---\n\t\t\t\tif (isTransformRelated) {\n\t\t\t\t\tif (!transformPropTween) {\n\t\t\t\t\t\tcache = target._gsap;\n\t\t\t\t\t\tsmooth = (vars.smoothOrigin !== false && cache.smooth);\n\t\t\t\t\t\ttransformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)\n\t\t\t\t\t\ttransformPropTween.dep = 1; //flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.\n\t\t\t\t\t}\n\t\t\t\t\tif (p === \"scale\") {\n\t\t\t\t\t\tthis._pt = new PropTween(this._pt, target, \"scale\", startNum, relative ? relative * endNum : endNum - startNum, 0, 0, _setterScale);\n\t\t\t\t\t\tprops.push(\"scale\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"transformOrigin\") {\n\t\t\t\t\t\tendValue = _convertKeywordsToPercentages(endValue); //in case something like \"left top\" or \"bottom right\" is passed in. Convert to percentages.\n\t\t\t\t\t\tif (cache.svg) {\n\t\t\t\t\t\t\t_applySVGOrigin(target, endValue, 0, smooth, 0, this);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tendUnit = parseFloat(endValue.split(\" \")[2]); //handle the zOrigin separately!\n\t\t\t\t\t\t\tif (endUnit !== cache.zOrigin) {\n\t\t\t\t\t\t\t\t_addNonTweeningPT(this, cache, \"zOrigin\", cache.zOrigin, endUnit);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_addNonTweeningPT(this, style, p, _firstTwoOnly(startValue), _firstTwoOnly(endValue));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"svgOrigin\") {\n\t\t\t\t\t\t_applySVGOrigin(target, endValue, 1, smooth, 0, this);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p in _rotationalProperties) {\n\t\t\t\t\t\t_addRotationalPropTween(this, cache, p, startNum, endValue, relative);\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t} else if (p === \"smoothOrigin\") {\n\t\t\t\t\t\t_addNonTweeningPT(this, cache, \"smooth\", cache.smooth, endValue);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"force3D\") {\n\t\t\t\t\t\tcache[p] = endValue;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"transform\") {\n\t\t\t\t\t\t_addRawTransformPTs(this, endValue, target);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (isTransformRelated || ((endNum || endNum === 0) && (startNum || startNum === 0) && !_complexExp.test(endValue) && (p in style))) {\n\t\t\t\t\tstartUnit = (startValue + \"\").substr((startNum + \"\").length);\n\t\t\t\t\tendUnit = (endValue + \"\").substr((endNum + \"\").length) || ((p in _config.units) ? _config.units[p] : startUnit);\n\t\t\t\t\tif (startUnit !== endUnit) {\n\t\t\t\t\t\tstartNum = _convertToUnit(target, p, startValue, endUnit);\n\t\t\t\t\t}\n\t\t\t\t\tthis._pt = new PropTween(this._pt, isTransformRelated ? cache : style, p, startNum, relative ? relative * endNum : endNum - startNum, (endUnit === \"px\" && vars.autoRound !== false && !isTransformRelated) ? _renderRoundedCSSProp : _renderCSSProp);\n\t\t\t\t\tthis._pt.u = endUnit || 0;\n\t\t\t\t\tif (startUnit !== endUnit) { //when the tween goes all the way back to the beginning, we need to revert it to the OLD/ORIGINAL value (with those units). We record that as a \"b\" (beginning) property and point to a render method that handles that. (performance optimization)\n\t\t\t\t\t\tthis._pt.b = startValue;\n\t\t\t\t\t\tthis._pt.r = _renderCSSPropWithBeginning;\n\t\t\t\t\t}\n\t\t\t\t} else if (!(p in style)) {\n\t\t\t\t\tif (p in target) { //maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.\n\t\t\t\t\t\tthis.add(target, p, target[p], endValue, index, targets);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_missingPlugin(\"Invalid \" + p + \" tween \" + endValue + \". Missing plugin? gsap.registerPlugin()\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t_tweenComplexCSSString.call(this, target, p, startValue, endValue);\n\t\t\t\t}\n\t\t\t\tprops.push(p);\n\t\t\t}\n\t\t}\n\t\tif (hasPriority) {\n\t\t\t_sortPropTweensByPriority(this);\n\t\t}\n\n\t},\n\tget:_get,\n\taliases:_propertyAliases,\n\tgetSetter(target, property, plugin) { //returns a setter function that accepts target, property, value and applies it accordingly. Remember, properties like \"x\" aren't as simple as target.style.property = value because they've got to be applied to a proxy object and then merged into a transform string in a renderer.\n\t\treturn (property in _transformProps && property !== _transformOriginProp && (target._gsap.x || _get(target, \"x\"))) ? (plugin && _recentSetterPlugin === plugin ? (property === \"scale\" ? _setterScale : _setterTransform) : (_recentSetterPlugin = plugin || {}) && (property === \"scale\" ? _setterScaleWithRender : _setterTransformWithRender)) : target.style && !_isUndefined(target.style[property]) ? _setterCSSStyle : ~property.indexOf(\"-\") ? _setterCSSProp : _getSetter(target, property);\n\t}\n\n};\n\ngsap.utils.checkPrefix = _checkPropPrefix;\n(function(positionAndScale, rotation, others, aliases) {\n\tlet all = _forEachName(positionAndScale + \",\" + rotation + \",\" + others, name => {_transformProps[name] = 1});\n\t_forEachName(rotation, name => {_config.units[name] = \"deg\"; _rotationalProperties[name] = 1});\n\t_propertyAliases[all[13]] = positionAndScale + \",\" + rotation;\n\t_forEachName(aliases, name => {\n\t\tlet split = name.split(\":\");\n\t\t_propertyAliases[split[1]] = all[split[0]];\n\t});\n})(\"x,y,z,scale,scaleX,scaleY,xPercent,yPercent\", \"rotation,rotationX,rotationY,skewX,skewY\", \"transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective\", \"0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,9:rotateX,10:rotateY\");\n_forEachName(\"x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective\", name => {_config.units[name] = \"px\"});\n\ngsap.registerPlugin(CSSPlugin);\n\nexport { CSSPlugin as default, _getBBox, _createElement, _checkPropPrefix as checkPrefix };","import { gsap, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ, TweenMax, TweenLite, TimelineLite, TimelineMax } from \"./gsap-core.js\";\nimport { CSSPlugin } from \"./CSSPlugin.js\";\n\nconst gsapWithCSS = gsap.registerPlugin(CSSPlugin) || gsap; // to protect from tree shaking\n\nexport {\n\tgsapWithCSS as gsap,\n\tgsapWithCSS as default,\n\tCSSPlugin,\n\tTweenMax,\n\tTweenLite,\n\tTimelineMax,\n\tTimelineLite,\n\tPower0,\n\tPower1,\n\tPower2,\n\tPower3,\n\tPower4,\n\tLinear,\n\tQuad,\n\tCubic,\n\tQuart,\n\tQuint,\n\tStrong,\n\tElastic,\n\tBack,\n\tSteppedEase,\n\tBounce,\n\tSine,\n\tExpo,\n\tCirc\n};"],"names":["_isString","value","_isFunction","_isNumber","_isUndefined","_isObject","_isNotFalse","_windowExists","window","_isFuncOrString","_install","scope","_installScope","_merge","_globals","gsap","_missingPlugin","property","console","warn","_warn","message","suppress","_addGlobal","name","obj","_emptyFunc","_harness","targets","harnessPlugin","i","target","_isArray","_gsap","harness","_harnessPlugins","length","targetTest","GSCache","_getCache","toArray","_getProperty","currentValue","getAttribute","_forEachName","names","func","split","forEach","_round","Math","round","_arrayContainsAny","toSearch","toFind","l","indexOf","_parseVars","params","type","parent","isLegacy","varsIndex","vars","duration","runBackwards","immediateRender","startAt","_lazyRender","tween","_lazyTweens","a","slice","_lazyLookup","_lazy","render","_lazySafeRender","animation","time","suppressEvents","force","_numericIfPossible","n","parseFloat","_passThrough","p","_setDefaults","defaults","_setKeyframeDefaults","_mergeDeep","base","toMerge","_copyExcluding","excluding","copy","_removeLinkedListItem","child","firstProp","lastProp","prev","_prev","next","_next","_dp","_removeFromParent","onlyIfParentHasAutoRemove","autoRemoveChildren","remove","_act","_uncache","_dirty","_elapsedCycleDuration","cycleDuration","_repeat","_rDelay","_tTime","_parentToChildTotalTime","parentTime","_ts","_start","totalDuration","_tDur","_addToTimeline","timeline","position","_delay","_end","_addLinkedListItem","sortBy","t","_sort","_recent","_time","_dur","_initted","curTime","rawTime","_clamp","_tinyNum","tl","totalTime","_attemptInitTween","_initTween","_pt","lazy","push","_onUpdateTotalDuration","Timeline","repeat","_parsePosition","offset","labels","recent","_zeroPosition","clippedDuration","_bigNum","endTime","isNaN","charAt","substr","_conditionalReturn","getUnit","_isArrayLike","_win","distribute","v","each","ease","_parseEase","from","cache","isDecimal","ratios","axis","ratioX","ratioY","center","edges","end","originX","originY","x","y","d","j","max","min","wrapAt","distances","grid","getBoundingClientRect","left","abs","_sqrt","amount","b","u","_invertEase","_roundModifier","pow","raw","snap","snapTo","radius","is2D","isArray","values","dx","dy","closest","random","roundingIncrement","returnFunction","_wrapArray","wrapper","index","_replaceRandom","nums","s","match","_delimitedValueExp","_strictNumExp","_getLabelInDirection","fromTime","backward","distance","label","_interrupt","progress","_callback","_hue","h","m1","m2","_255","splitColor","toHSL","r","g","wasHSL","_colorLookup","black","parseInt","_numExp","transparent","map","Number","_formatColors","color","temp","colors","_colorExp","charIndex","parsed","join","_colorStringFilter","combined","lastIndex","test","_hslExp","_configEaseFromString","_easeMap","config","apply","_parseObjectInString","val","parsedVal","key","lastIndexOf","replace","_quotesExp","trim","_parenthesesExp","exec","_CE","_customEaseExp","_insertEase","easeIn","easeOut","easeInOut","lowercaseName","toLowerCase","_easeInOutFromOut","_configElastic","amplitude","period","p1","_sin","p3","p2","_2PI","asin","_configBack","overshoot","_globalTimeline","_coreInitted","_doc","_coreReady","_quickTween","_tickerActive","_id","_req","_raf","_self","_getTime","_lagThreshold","_adjustedLag","_startTime","_lastUpdate","_gap","_nextTime","_listeners","n1","_config","autoSleep","force3D","nullTargetWarn","units","lineHeight","_defaults","overwrite","delay","PI","_HALF_PI","_gsID","sqrt","_cos","cos","sin","Array","_complexStringNumExp","_relExp","_reservedProps","_plugins","_effects","_nextGCFrame","_callbackNames","_slice","leaveStrings","_wake","_flatten","ar","accumulator","call","querySelectorAll","mapRange","inMin","inMax","outMin","outMax","inRange","outRange","executeLazyFirst","callback","callbackScope","aqua","lime","silver","maroon","teal","blue","navy","white","olive","yellow","orange","gray","purple","green","red","pink","cyan","RegExp","_ticker","Date","now","frame","tick","_tick","wake","document","gsapVersions","version","GreenSockGlobals","requestAnimationFrame","sleep","f","setTimeout","cancelAnimationFrame","clearTimeout","lagSmoothing","threshold","adjustedLag","fps","add","splice","defaultEase","overlap","dispatch","elapsed","manual","power","Linear","easeNone","none","SteppedEase","steps","immediateStart","id","this","get","set","getSetter","_getSetter","Animation","isSetter","arguments","repeatCycles","isInfinite","start","smoothChildTiming","totalProgress","ratio","iteration","timeScale","prevTS","_recacheAncestors","_pauseTS","paused","isPaused","_pTime","startTime","includeRepeats","wrapRepeats","repeatDelay","yoyo","_yoyo","seek","restart","includeDelay","play","reversed","reverse","pause","atTime","resume","ts","invalidate","isActive","eventCallback","_onUpdate","then","onFulfilled","Promise","resolve","_this","_prom","kill","yoyoEase","data","prototype","_zTime","sortChildren","to","Tween","fromTo","fromVars","toVars","delayedCall","staggerTo","stagger","onCompleteAll","onCompleteAllParams","onComplete","onCompleteParams","staggerFrom","staggerFromTo","prevPaused","pauseTween","prevStart","prevIteration","prevTime","tDur","dur","tTime","crossingStart","_lock","rewinding","doesWrap","_hasPause","_forcing","_findNextPauseTween","_first","_last","onUpdate","adjustedTime","_this3","addLabel","getChildren","nested","tweens","timelines","ignoreBeforeTime","getById","animations","removeLabel","killTweensOf","addPause","removePause","props","onlyActive","getTweensOf","children","parsedTargets","_targets","tweenTo","onStart","onStartParams","tweenFromTo","fromPosition","toPosition","nextLabel","afterTime","previousLabel","beforeTime","currentLabel","shiftChildren","adjustLabels","clear","includeLabels","self","updateRoot","_checkPlugin","plugin","pt","ptLookup","init","rawVars","_processVars","_parseFuncOrString","style","nodeType","PropTween","priority","_ptLookup","_props","_overwritingTween","_addPropTween","prop","modifier","stringFilter","funcParam","parsedStart","setter","_setterFuncWithParam","_setterFunc","_setterPlain","_addComplexStringPropTween","result","startNums","endNum","chunk","startNum","hasRandom","_renderComplexString","matchIndex","e","substring","c","m","fp","_renderBoolean","_renderPlain","cleanVars","hasPriority","gsData","harnessVars","onUpdateParams","keyframes","autoRevert","prevStartAt","_startAt","fullTargets","autoOverwrite","_overwrite","_ease","_yEase","_op","_sortPropTweensByPriority","_onInit","_from","_staggerTweenProps","_staggerPropsToSkip","curTarget","staggerFunc","staggerVarsToMerge","_inheritDefaults","inherit","_this4","_hasNoPausedAncestors","isYoyo","repeatRefresh","onRepeat","_renderZeroDurationTween","prevRatio","overwrittenProps","curLookup","curOverwriteProps","killingTargets","propTweenLookup","firstPT","_arraysMatch","a1","a2","_addAliasesToVars","aliases","propertyAliases","onReverseComplete","onReverseCompleteParams","_setterAttribute","setAttribute","_setterWithModifier","mSet","mt","_renderPropTweens","_addPluginModifier","_killPropTweensOf","hasNonDependentRemaining","op","dep","pt2","first","last","pr","change","renderer","TweenMax","TweenLite","TimelineLite","TimelineMax","registerPlugin","args","_createPlugin","isFunc","Plugin","instanceDefaults","statics","register","toUpperCase","getProperty","unit","uncache","getter","format","quickSetter","setters","isTweening","registerEffect","effect","plugins","extendTimeline","pluginName","registerEase","parseEase","exportRoot","includeDelayedCalls","utils","wrap","range","wrapYoyo","total","normalize","clamp","pipe","functions","reduce","unitize","interpolate","mutate","interpolators","il","isString","master","install","effects","ticker","globalTimeline","core","globals","getCache","_buildModifierPlugin","_addModifiers","modifiers","_renderCSSProp","_renderPropWithEnd","_renderCSSPropWithBeginning","_renderRoundedCSSProp","_renderNonTweeningValue","_renderNonTweeningValueOnlyAtEnd","_setterCSSStyle","_setterCSSProp","setProperty","_setterTransform","_setterScale","scaleX","scaleY","_setterScaleWithRender","renderTransform","_setterTransformWithRender","_createElement","ns","createElementNS","createElement","_getComputedProperty","cs","getComputedStyle","getPropertyValue","_capsExp","_checkPropPrefix","element","_tempDiv","_initCore","_docElement","documentElement","_tempDivStyler","_transformProp","_transformOriginProp","cssText","_supports3D","_pluginInitted","_getAttributeFallbacks","attributesArray","hasAttribute","_getBBox","bounds","getBBox","error","_getBBoxHack","swapIfPossible","bbox","svg","ownerSVGElement","oldParent","parentNode","oldSibling","nextSibling","oldCSS","appendChild","display","_gsapBBox","insertBefore","removeChild","width","height","_isSVG","getCTM","_removeProperty","_transformProps","removeProperty","removeAttribute","_addNonTweeningPT","beginning","onlySetAtEnd","_convertToUnit","px","isSVG","curValue","curUnit","horizontal","_horizontalExp","isRootSVG","tagName","measureProperty","toPixels","_nonConvertibleUnits","body","_get","_propertyAliases","_parseTransform","_firstTwoOnly","zOrigin","_tweenComplexCSSString","startValues","startValue","endValue","endUnit","startUnit","relative","_numWithUnitExp","_convertKeywordsToPercentages","_keywordToPercent","_renderClearProps","clearTransforms","_isNullTransform","_getComputedTransformMatrixAsArray","matrixString","_identity2DMatrix","_getMatrix","force2D","addedToDOM","matrix","transform","baseVal","consolidate","offsetParent","_applySVGOrigin","origin","originIsAbsolute","smooth","matrixArray","pluginToAddPropTweensTo","determinant","xOriginOld","xOrigin","yOriginOld","yOrigin","xOffsetOld","xOffset","yOffsetOld","yOffset","tx","ty","originSplit","_addPxTranslate","_addRotationalPropTween","direction","cap","_RAD2DEG","finalValue","_addRawTransformPTs","transforms","endCache","startCache","_recentSetterPlugin","positionAndScale","rotation","all","Power0","Power1","Power2","Power3","Power4","Quad","Cubic","Quart","Quint","Strong","Elastic","Back","Bounce","Sine","Expo","Circ","_DEG2RAD","_atan2","atan2","_complexExp","autoAlpha","scale","alpha","deg","rad","turn","top","bottom","right","_specialProps","clearProps","_rotationalProperties","z","rotationX","rotationY","skewX","skewY","perspective","angle","a12","a22","t1","t2","t3","a13","a23","a33","a42","a43","a32","invertedScaleX","forceCSS","xPercent","offsetWidth","yPercent","offsetHeight","transformPerspective","_renderSVGTransforms","_renderCSSTransforms","_renderNon3DTransforms","_zeroDeg","_zeroPx","_endParenthesis","use3D","a11","a21","tan","CSSPlugin","specialProp","isTransformRelated","transformPropTween","smoothOrigin","autoRound","checkPrefix","gsapWithCSS"],"mappings":";;;;;;;;;IA8Ba,SAAZA,EAAYC,SAA2B,iBAAXA,EACd,SAAdC,EAAcD,SAA2B,mBAAXA,EAClB,SAAZE,EAAYF,SAA2B,iBAAXA,EACb,SAAfG,EAAeH,eAA2B,IAAXA,EACnB,SAAZI,EAAYJ,SAA2B,iBAAXA,EACd,SAAdK,EAAcL,UAAmB,IAAVA,EACP,SAAhBM,UAAyC,oBAAZC,OACX,SAAlBC,EAAkBR,UAASC,EAAYD,IAAUD,EAAUC,GAYhD,SAAXS,EAAWC,UAAUC,EAAgBC,GAAOF,EAAOG,MAAcC,GAChD,SAAjBC,EAAkBC,EAAUhB,UAAUiB,QAAQC,KAAK,UAAWF,EAAU,WAAYhB,EAAO,yCACnF,SAARmB,EAASC,EAASC,UAAcA,GAAYJ,QAAQC,KAAKE,GAC5C,SAAbE,EAAcC,EAAMC,UAASD,IAASV,GAASU,GAAQC,IAASb,IAAkBA,EAAcY,GAAQC,IAAUX,GACrG,SAAbY,WAAmB,EASR,SAAXC,EAAWC,OAETC,EAAeC,EADZC,EAASH,EAAQ,OAEhBvB,EAAU0B,KAAY7B,EAAY6B,UAC/BC,EAASJ,GAAWA,EAAU,CAACA,QAEjCC,GAAiBE,EAAOE,OAAS,IAAIC,SAAU,KACpDJ,EAAIK,GAAgBC,OACbN,MAAQK,GAAgBL,GAAGO,WAAWN,KAC7CF,EAAgBM,GAA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T,GAAKinB,eAAewQ,QCv9BdO,GAAch4B,GAAKinB,eAAewQ,KAAcz3B"}
\ No newline at end of file
+{"version":3,"file":"gsap.min.js","sources":["../src/gsap-core.js","../src/CSSPlugin.js","../src/index.js"],"sourcesContent":["/*!\n * GSAP 3.0.2\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nlet _config = {\n\t\tautoSleep: 120,\n\t\tforce3D: \"auto\",\n\t\tnullTargetWarn: 1,\n\t\tunits: {lineHeight:\"\"}\n\t},\n\t_defaults = {\n\t\tduration: .5,\n\t\toverwrite: false,\n\t\tdelay: 0\n\t},\n\t_bigNum = 1e8,\n\t_tinyNum = 1 / _bigNum,\n\t_2PI = Math.PI * 2,\n\t_HALF_PI = _2PI / 4,\n\t_gsID = 0,\n\t_sqrt = Math.sqrt,\n\t_cos = Math.cos,\n\t_sin = Math.sin,\n\t_isString = value => typeof(value) === \"string\",\n\t_isFunction = value => typeof(value) === \"function\",\n\t_isNumber = value => typeof(value) === \"number\",\n\t_isUndefined = value => typeof(value) === \"undefined\",\n\t_isObject = value => typeof(value) === \"object\",\n\t_isNotFalse = value => value !== false,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_isFuncOrString = value => _isFunction(value) || _isString(value),\n\t_isArray = Array.isArray,\n\t_strictNumExp = /(?:-?\\.?\\d|\\.)+/gi, //only numbers (including negatives and decimals) but NOT relative values.\n\t_numExp = /[-+=\\.]*\\d+[\\.e\\-\\+]*\\d*[e\\-\\+]*\\d*/gi, //finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.\n\t_complexStringNumExp = /[-+=\\.]*\\d+(?:\\.|e-|e)*\\d*/gi, //duplicate so that while we're looping through matches from exec(), it doesn't contaminate the lastIndex of _numExp which we use to search for colors too.\n\t_parenthesesExp = /\\(([^()]+)\\)/i, //finds the string between parentheses.\n\t_relExp = /[\\+-]=-?[\\.\\d]+/,\n\t_delimitedValueExp = /[#\\-+\\.]*\\b[a-z\\d-=+%.]+/gi,\n\t_globalTimeline, _win, _coreInitted, _doc,\n\t_globals = {},\n\t_installScope = {},\n\t_coreReady,\n\t_install = scope => (_installScope = _merge(scope, _globals)) && gsap,\n\t_missingPlugin = (property, value) => console.warn(\"Invalid property\", property, \"set to\", value, \"Missing plugin? gsap.registerPlugin()\"),\n\t_warn = (message, suppress) => !suppress && console.warn(message),\n\t_addGlobal = (name, obj) => (name && (_globals[name] = obj) && (_installScope && (_installScope[name] = obj))) || _globals,\n\t_emptyFunc = () => 0,\n\t_reservedProps = {},\n\t_lazyTweens = [],\n\t_lazyLookup = {},\n\t_plugins = {},\n\t_effects = {},\n\t_nextGCFrame = 30,\n\t_harnessPlugins = [],\n\t_callbackNames = \"onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt\",\n\t_harness = targets => {\n\t\tlet target = targets[0],\n\t\t\tharnessPlugin, i;\n\t\tif (!_isObject(target) && !_isFunction(target)) {\n\t\t\ttargets = [targets];\n\t\t}\n\t\tif (!(harnessPlugin = (target._gsap || {}).harness)) {\n\t\t\ti = _harnessPlugins.length;\n\t\t\twhile (i-- && !_harnessPlugins[i].targetTest(target)) {\t}\n\t\t\tharnessPlugin = _harnessPlugins[i];\n\t\t}\n\t\ti = targets.length;\n\t\twhile (i--) {\n\t\t\t(targets[i] && (targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin)))) || targets.splice(i, 1);\n\t\t}\n\t\treturn targets;\n\t},\n\t_getCache = target => target._gsap || _harness(toArray(target))[0]._gsap,\n\t_getProperty = (target, property) => {\n\t\tlet currentValue = target[property];\n\t\treturn _isFunction(currentValue) ? target[property]() : (_isUndefined(currentValue) && target.getAttribute(property)) || currentValue;\n\t},\n\t_forEachName = (names, func) => ((names = names.split(\",\")).forEach(func)) || names, //split a comma-delimited list of names into an array, then run a forEach() function and return the split array (this is just a way to consolidate/shorten some code).\n\t_round = value => Math.round(value * 10000) / 10000,\n\t_arrayContainsAny = (toSearch, toFind) => { //searches one array to find matches for any of the items in the toFind array. As soon as one is found, it returns true. It does NOT return all the matches; it's simply a boolean search.\n\t\tlet l = toFind.length,\n\t\t\ti = 0;\n\t\tfor (; toSearch.indexOf(toFind[i]) < 0 && ++i < l;) { }\n\t\treturn (i < l);\n\t},\n\t_parseVars = (params, type, parent) => { //reads the arguments passed to one of the key methods and figures out if the user is defining things with the OLD/legacy syntax where the duration is the 2nd parameter, and then it adjusts things accordingly and spits back the corrected vars object (with the duration added if necessary, as well as runBackwards or startAt or immediateRender). type 0 = to()/staggerTo(), 1 = from()/staggerFrom(), 2 = fromTo()/staggerFromTo()\n\t\tlet isLegacy = _isNumber(params[1]),\n\t\t\tvarsIndex = (isLegacy ? 2 : 1) + (type < 2 ? 0 : 1),\n\t\t\tvars = params[varsIndex],\n\t\t\ti;\n\t\tif (isLegacy) {\n\t\t\tvars.duration = params[1];\n\t\t}\n\t\tif (type === 1) {\n\t\t\tvars.runBackwards = 1;\n\t\t\tvars.immediateRender = _isNotFalse(vars.immediateRender);\n\t\t} else if (type === 2) {\n\t\t\ti = params[varsIndex - 1]; //\"from\" vars\n\t\t\tvars.startAt = i;\n\t\t\tvars.immediateRender = _isNotFalse(vars.immediateRender);\n\t\t}\n\t\tvars.parent = parent;\n\t\treturn vars;\n\t},\n\t_lazyRender = () => {\n\t\tlet l = _lazyTweens.length,\n\t\t\ta = _lazyTweens.slice(0),\n\t\t\ti, tween;\n\t\t_lazyLookup = {};\n\t\t_lazyTweens.length = 0;\n\t\tfor (i = 0; i < l; i++) {\n\t\t\ttween = a[i];\n\t\t\tif (tween && tween._lazy) {\n\t\t\t\ttween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0;\n\t\t\t}\n\t\t}\n\t},\n\t_lazySafeRender = (animation, time, suppressEvents, force) => {\n\t\tif (_lazyTweens.length) {\n\t\t\t_lazyRender();\n\t\t}\n\t\tanimation.render(time, suppressEvents, force);\n\t\tif (_lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.\n\t\t\t_lazyRender();\n\t\t}\n\t},\n\t_numericIfPossible = value => {\n\t\tlet n = parseFloat(value);\n\t\treturn n || n === 0 ? n : value;\n\t},\n\t_passThrough = p => p,\n\t_setDefaults = (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\tif (!(p in obj)) {\n\t\t\t\tobj[p] = defaults[p];\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t},\n\t_setKeyframeDefaults = (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\tif (!(p in obj) && p !== \"duration\" && p !== \"ease\") {\n\t\t\t\tobj[p] = defaults[p];\n\t\t\t}\n\t\t}\n\t},\n\t_merge = (base, toMerge) => {\n\t\tfor (let p in toMerge) {\n\t\t\tbase[p] = toMerge[p];\n\t\t}\n\t\treturn base;\n\t},\n\t_mergeDeep = (base, toMerge) => {\n\t\tfor (let p in toMerge) {\n\t\t\tbase[p] = _isObject(toMerge[p]) ? _mergeDeep(base[p] || (base[p] = {}), toMerge[p]) : toMerge[p];\n\t\t}\n\t\treturn base;\n\t},\n\t_copyExcluding = (obj, excluding) => {\n\t\tlet copy = {},\n\t\t\tp;\n\t\tfor (p in obj) {\n\t\t\tif (!(p in excluding)) {\n\t\t\t\tcopy[p] = obj[p];\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t},\n\t_inheritDefaults = vars => {\n\t\tlet parent = vars.parent || _globalTimeline,\n\t\t\tfunc = vars.keyframes ? _setKeyframeDefaults : _setDefaults;\n\t\tif (_isNotFalse(vars.inherit)) {\n\t\t\twhile (parent) {\n\t\t\t\tfunc(vars, parent.vars.defaults);\n\t\t\t\tparent = parent.parent;\n\t\t\t}\n\t\t}\n\t\treturn vars;\n\t},\n\t_arraysMatch = (a1, a2) => {\n\t\tlet i = a1.length,\n\t\t\tmatch = i === a2.length;\n\t\twhile (match && i-- && a1[i] === a2[i]) { }\n\t\treturn i < 0;\n\t},\n\t_addLinkedListItem = (parent, child, firstProp = \"_first\", lastProp = \"_last\", sortBy) => {\n\t\tlet prev = parent[lastProp],\n\t\t\tt;\n\t\tif (sortBy) {\n\t\t\tt = child[sortBy];\n\t\t\twhile (prev && prev[sortBy] > t) {\n\t\t\t\tprev = prev._prev;\n\t\t\t}\n\t\t}\n\t\tif (prev) {\n\t\t\tchild._next = prev._next;\n\t\t\tprev._next = child;\n\t\t} else {\n\t\t\tchild._next = parent[firstProp];\n\t\t\tparent[firstProp] = child;\n\t\t}\n\t\tif (child._next) {\n\t\t\tchild._next._prev = child;\n\t\t} else {\n\t\t\tparent[lastProp] = child;\n\t\t}\n\t\tchild._prev = prev;\n\t\tchild.parent = parent;\n\t\treturn child;\n\t},\n\t_removeLinkedListItem = (parent, child, firstProp = \"_first\", lastProp = \"_last\") => {\n\t\tlet prev = child._prev,\n\t\t\tnext = child._next;\n\t\tif (prev) {\n\t\t\tprev._next = next;\n\t\t} else if (parent[firstProp] === child) {\n\t\t\tparent[firstProp] = next;\n\t\t}\n\t\tif (next) {\n\t\t\tnext._prev = prev;\n\t\t} else if (parent[lastProp] === child) {\n\t\t\tparent[lastProp] = prev;\n\t\t}\n\t\tchild._dp = parent; //record the parent as _dp just so we can revert if necessary. But parent should be null to indicate the item isn't in a linked list.\n\t\tchild._next = child._prev = child.parent = null;\n\t},\n\t_removeFromParent = (child, onlyIfParentHasAutoRemove) => {\n\t\tif (child.parent && (!onlyIfParentHasAutoRemove || child.parent.autoRemoveChildren)) {\n\t\t\tchild.parent.remove(child);\n\t\t}\n\t\tchild._act = 0;\n\t},\n\t_uncache = animation => {\n\t\tlet a = animation;\n\t\twhile (a) {\n\t\t\ta._dirty = 1;\n\t\t\ta = a.parent;\n\t\t}\n\t\treturn animation;\n\t},\n\t_recacheAncestors = animation => {\n\t\tlet parent = animation.parent;\n\t\twhile (parent && parent.parent) { //sometimes we must force a re-sort of all children and update the duration/totalDuration of all ancestor timelines immediately in case, for example, in the middle of a render loop, one tween alters another tween's timeScale which shoves its startTime before 0, forcing the parent timeline to shift around and shiftChildren() which could affect that next tween's render (startTime). Doesn't matter for the root timeline though.\n\t\t\tparent._dirty = 1;\n\t\t\tparent.totalDuration();\n\t\t\tparent = parent.parent;\n\t\t}\n\t\treturn animation;\n\t},\n\t_hasNoPausedAncestors = animation => !animation || (animation._ts && _hasNoPausedAncestors(animation.parent)),\n\t_elapsedCycleDuration = animation => animation._repeat ? ~~(animation._tTime / (animation = animation.duration() + animation._rDelay)) * animation : 0,\n\t_parentToChildTotalTime = (parentTime, child) => child._ts > 0 ? (parentTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (parentTime - child._start) * child._ts,\n\t/*\n\t_totalTimeToTime = (clampedTotalTime, duration, repeat, repeatDelay, yoyo) => {\n\t\tlet cycleDuration = duration + repeatDelay,\n\t\t\ttime = _round(clampedTotalTime % cycleDuration);\n\t\tif (time > duration) {\n\t\t\ttime = duration;\n\t\t}\n\t\treturn (yoyo && (~~(clampedTotalTime / cycleDuration) & 1)) ? duration - time : time;\n\t},\n\t*/\n\t_addToTimeline = (timeline, child, position) => {\n\t\tchild.parent && _removeFromParent(child);\n\t\tchild._start = position + child._delay;\n\t\tchild._end = child._start + ((child.totalDuration() / child._ts) || 0);\n\t\t_addLinkedListItem(timeline, child, \"_first\", \"_last\", timeline._sort ? \"_start\" : 0);\n\t\ttimeline._recent = child;\n\n\t\tif (child._time || (!child._dur && child._initted)) { //in case, for example, the _start is moved on a tween that has already rendered. Imagine it's at its end state, then the startTime is moved WAY later (after the end of this timeline), it should render at its beginning.\n\t\t\tlet curTime = (timeline.rawTime() - child._start) * child._ts;\n\t\t\tif (!child._dur || _clamp(0, child.totalDuration(), curTime) - child._tTime > _tinyNum) {\n\t\t\t\tchild.render(curTime, true);\n\t\t\t}\n\t\t}\n\t\t_uncache(timeline);\n\t\t//if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.\n\t\tif (timeline._dp && timeline._time >= timeline._dur && timeline._ts && timeline._dur < timeline.duration()) {\n\t\t\t//in case any of the ancestors had completed but should now be enabled...\n\t\t\tlet tl = timeline;\n\t\t\twhile (tl._dp) {\n\t\t\t\ttl.totalTime(tl._tTime, true); //moves the timeline (shifts its startTime) if necessary, and also enables it.\n\t\t\t\ttl = tl._dp;\n\t\t\t}\n\t\t}\n\t\treturn timeline;\n\t},\n\t_attemptInitTween = (tween, totalTime, force, suppressEvents) => {\n\t\t_initTween(tween, totalTime);\n\t\tif (!tween._initted) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (!force && tween._pt && ((tween._dur && tween.vars.lazy !== false) || (!tween._dur && tween.vars.lazy))) {\n\t\t\t_lazyTweens.push(tween);\n\t\t\ttween._lazy = [totalTime, suppressEvents];\n\t\t\treturn 1;\n\t\t}\n\t},\n\t_renderZeroDurationTween = (tween, totalTime, suppressEvents, force) => {\n\t\tlet prevRatio = tween._zTime < 0 ? 0 : 1,\n\t\t\tratio = totalTime < 0 ? 0 : 1,\n\t\t\trepeatDelay = tween._rDelay,\n\t\t\ttTime = 0,\n\t\t\tpt, iteration, prevIteration;\n\t\tif (repeatDelay && tween._repeat) { //in case there's a zero-duration tween that has a repeat with a repeatDelay\n\t\t\ttTime = _clamp(0, tween._tDur, totalTime);\n\t\t\titeration = ~~(tTime / repeatDelay);\n\t\t\tif (iteration && iteration === tTime / repeatDelay) {\n\t\t\t\titeration--;\n\t\t\t}\n\t\t\tprevIteration = ~~(tween._tTime / repeatDelay);\n\t\t\tif (prevIteration && prevIteration === tween._tTime / repeatDelay) {\n\t\t\t\tprevIteration--;\n\t\t\t}\n\t\t\tif (iteration !== prevIteration) {\n\t\t\t\tprevRatio = 1 - ratio;\n\t\t\t\tif (tween.vars.repeatRefresh && tween._initted) {\n\t\t\t\t\ttween.invalidate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!tween._initted && _attemptInitTween(tween, totalTime, force, suppressEvents)) { //if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.\n\t\t\treturn;\n\t\t}\n\t\tif (ratio !== prevRatio || force || tween._zTime === _tinyNum || (!totalTime && tween._zTime)) {\n\t\t\ttween._zTime = totalTime || (suppressEvents ? _tinyNum : 0); //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\t\t\ttween.ratio = ratio;\n\t\t\tif (tween._from) {\n\t\t\t\tratio = 1 - ratio;\n\t\t\t}\n\t\t\ttween._time = 0;\n\t\t\ttween._tTime = tTime;\n\t\t\tif (!suppressEvents) {\n\t\t\t\t_callback(tween, \"onStart\");\n\t\t\t}\n\t\t\tpt = tween._pt;\n\t\t\twhile (pt) {\n\t\t\t\tpt.r(ratio, pt.d);\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t\tif (!ratio && tween._startAt && !tween._onUpdate && tween._start) { //if the tween is positioned at the VERY beginning (_start 0) of its parent timeline, it's illegal for the playhead to go back further, so we should not render the recorded startAt values.\n\t\t\t\ttween._startAt.render(totalTime, true, force);\n\t\t\t}\n\t\t\tif (tween._onUpdate && !suppressEvents) {\n\t\t\t\t_callback(tween, \"onUpdate\");\n\t\t\t}\n\t\t\tif (tTime && tween._repeat && !suppressEvents && tween.parent) {\n\t\t\t\t_callback(tween, \"onRepeat\");\n\t\t\t}\n\t\t\tif ((totalTime >= tween._tDur || totalTime < 0) && tween.ratio === ratio) {\n\t\t\t\ttween.ratio && _removeFromParent(tween, 1);\n\t\t\t\tif (!suppressEvents) {\n\t\t\t\t\t_callback(tween, (tween.ratio ? \"onComplete\" : \"onReverseComplete\"), true);\n\t\t\t\t\ttween._prom && tween._prom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t_findNextPauseTween = (animation, prevTime, time) => {\n\t\tlet child;\n\t\tif (time > prevTime) {\n\t\t\tchild = animation._first;\n\t\t\twhile (child && child._start <= time) {\n\t\t\t\tif (!child._dur && child.data === \"isPause\" && child._start > prevTime) {\n\t\t\t\t\treturn child;\n\t\t\t\t}\n\t\t\t\tchild = child._next;\n\t\t\t}\n\t\t} else {\n\t\t\tchild = animation._last;\n\t\t\twhile (child && child._start >= time) {\n\t\t\t\tif (!child._dur && child.data === \"isPause\" && child._start < prevTime) {\n\t\t\t\t\treturn child;\n\t\t\t\t}\n\t\t\t\tchild = child._prev;\n\t\t\t}\n\t\t}\n\t},\n\t_onUpdateTotalDuration = animation => {\n\t\tif (animation instanceof Timeline) {\n\t\t\treturn _uncache(animation);\n\t\t}\n\t\tlet repeat = animation._repeat;\n\t\tanimation._tDur = !repeat ? animation._dur : repeat < 0 ? 1e20 : _round(animation._dur * (repeat + 1) + (animation._rDelay * repeat));\n\t\t_uncache(animation.parent); //if the tween's duration changed, the parent timeline's duration may have changed, so flag it as \"dirty\"\n\t\treturn animation;\n\t},\n\t_zeroPosition = {_start:0, endTime:_emptyFunc},\n\t_parsePosition = (animation, position, useBuildFrom) => {\n\t\tlet labels = animation.labels,\n\t\t\trecent = animation._recent || _zeroPosition,\n\t\t\tclippedDuration = animation.duration() >= _bigNum ? recent.endTime(false) : animation._dur, //in case there's a child that infinitely repeats, users almost never intend for the insertion point of a new child to be based on a SUPER long value like that so we clip it and assume the most recently-added child's endTime should be used instead.\n\t\t\t//buildFrom = useBuildFrom ? animation._build : \"auto\",\n\t\t\ti, offset;\n\t\tif (_isString(position) && (isNaN(position) || (position in labels))) { //if the string is a number like \"1\", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).\n\t\t\ti = position.charAt(0);\n\t\t\tif (i === \"<\" || i === \">\") {\n\t\t\t\treturn (i === \"<\" ? recent._start : recent.endTime(recent._repeat >= 0)) + (parseFloat(position.substr(1)) || 0);\n\t\t\t}\n\t\t\ti = position.indexOf(\"=\");\n\t\t\tif (i < 0) {\n\t\t\t\tif (!(position in labels)) {\n\t\t\t\t\tlabels[position] = clippedDuration;\n\t\t\t\t}\n\t\t\t\treturn labels[position];\n\t\t\t}\n\t\t\toffset = +(position.charAt(i-1) + position.substr(i+1));\n\t\t\treturn (i > 1) ? _parsePosition(animation, position.substr(0, i-1)) + offset : clippedDuration + offset;\n\t\t}\n\t\treturn (position == null) ? clippedDuration : +position;\n\t\t//return (position == null) ? (isNaN(buildFrom) ? clippedDuration : buildFrom) : (buildFrom === \">>\" ? clippedDuration : +buildFrom || 0) + (+position);\n\t},\n\t_conditionalReturn = (value, func) => value || value === 0 ? func(value) : func,\n\t_clamp = (min, max, value) => value < min ? min : value > max ? max : value,\n\tgetUnit = value => (value + \"\").substr((parseFloat(value) + \"\").length),\n\tclamp = (min, max, value) => _conditionalReturn(value, v => _clamp(min, max, v)),\n\t_slice = [].slice,\n\t_isArrayLike = value => value && (_isObject(value) && \"length\" in value && (value.length - 1) in value && _isObject(value[0]) && !value.nodeType && value !== _win),\n\t_flatten = (ar, leaveStrings, accumulator = []) => ar.forEach(value => (_isString(value) && !leaveStrings) || _isArrayLike(value) ? accumulator.push(...toArray(value)) : accumulator.push(value)) || accumulator,\n\ttoArray = (value, leaveStrings) => { //takes any value and returns an array. If it's a string (and leaveStrings isn't true), it'll use document.querySelectorAll() and convert that to an array. It'll also accept iterables like jQuery objects.\n\t\treturn _isString(value) && !leaveStrings && (_coreInitted || !_wake()) ? _slice.call(_doc.querySelectorAll(value), 0) : _isArray(value) ? _flatten(value, leaveStrings) : _isArrayLike(value) ? _slice.call(value, 0) : value ? [value] : [];\n\t},\n\t//for distributing values across an array. Can accept a number, a function or (most commonly) a function which can contain the following properties: {base, amount, from, ease, grid, axis, length, each}. Returns a function that expects the following parameters: index, target, array. Recognizes the following\n\tdistribute = v => {\n\t\tif (_isFunction(v)) {\n\t\t\treturn v;\n\t\t}\n\t\tlet vars = _isObject(v) ? v : {each:v}, //n:1 is just to indicate v was a number; we leverage that later to set v according to the length we get. If a number is passed in, we treat it like the old stagger value where 0.1, for example, would mean that things would be distributed with 0.1 between each element in the array rather than a total \"amount\" that's chunked out among them all.\n\t\t\tease = _parseEase(vars.ease),\n\t\t\tfrom = vars.from || 0,\n\t\t\tbase = parseFloat(vars.base) || 0,\n\t\t\tcache = {},\n\t\t\tisDecimal = (from > 0 && from < 1),\n\t\t\tratios = isNaN(from) || isDecimal,\n\t\t\taxis = vars.axis,\n\t\t\tratioX = from,\n\t\t\tratioY = from;\n\t\tif (_isString(from)) {\n\t\t\tratioX = ratioY = {center:.5, edges:.5, end:1}[from] || 0;\n\t\t} else if (!isDecimal && ratios) {\n\t\t\tratioX = from[0];\n\t\t\tratioY = from[1];\n\t\t}\n\t\treturn (i, target, a) => {\n\t\t\tlet l = (a || vars).length,\n\t\t\t\tdistances = cache[l],\n\t\t\t\toriginX, originY, x, y, d, j, max, min, wrapAt;\n\t\t\tif (!distances) {\n\t\t\t\twrapAt = (vars.grid === \"auto\") ? 0 : (vars.grid || [1, _bigNum])[1];\n\t\t\t\tif (!wrapAt) {\n\t\t\t\t\tmax = -_bigNum;\n\t\t\t\t\twhile (max < (max = a[wrapAt++].getBoundingClientRect().left) && wrapAt < l) { }\n\t\t\t\t\twrapAt--;\n\t\t\t\t}\n\t\t\t\tdistances = cache[l] = [];\n\t\t\t\toriginX = ratios ? (Math.min(wrapAt, l) * ratioX) - .5 : from % wrapAt;\n\t\t\t\toriginY = ratios ? l * ratioY / wrapAt - .5 : (from / wrapAt) | 0;\n\t\t\t\tmax = 0;\n\t\t\t\tmin = _bigNum;\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tx = (j % wrapAt) - originX;\n\t\t\t\t\ty = originY - ((j / wrapAt) | 0);\n\t\t\t\t\tdistances[j] = d = !axis ? _sqrt(x * x + y * y) : Math.abs((axis === \"y\") ? y : x);\n\t\t\t\t\tif (d > max) {\n\t\t\t\t\t\tmax = d;\n\t\t\t\t\t}\n\t\t\t\t\tif (d < min) {\n\t\t\t\t\t\tmin = d;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdistances.max = max - min;\n\t\t\t\tdistances.min = min;\n\t\t\t\tdistances.v = l = (parseFloat(vars.amount) || (parseFloat(vars.each) * (wrapAt > l ? l - 1 : !axis ? Math.max(wrapAt, l / wrapAt) : axis === \"y\" ? l / wrapAt : wrapAt)) || 0) * (from === \"edges\" ? -1 : 1);\n\t\t\t\tdistances.b = (l < 0) ? base - l : base;\n\t\t\t\tdistances.u = getUnit(vars.amount || vars.each) || 0; //unit\n\t\t\t\tease = (ease && l < 0) ? _invertEase(ease) : ease;\n\t\t\t}\n\t\t\tl = ((distances[i] - distances.min) / distances.max) || 0;\n\t\t\treturn _round(distances.b + (ease ? ease(l) : l) * distances.v) + distances.u; //round in order to work around floating point errors\n\t\t};\n\t},\n\t_roundModifier = v => { //pass in 0.1 get a function that'll round to the nearest tenth, or 5 to round to the closest 5, or 0.001 to the closest 1000th, etc.\n\t\tlet p = v < 1 ? Math.pow(10, (v + \"\").length - 2) : 1; //to avoid floating point math errors (like 24 * 0.1 == 2.4000000000000004), we chop off at a specific number of decimal places (much faster than toFixed()\n\t\treturn raw => ~~(Math.round(parseFloat(raw) / v) * v * p) / p + (_isNumber(raw) ? 0 : getUnit(raw));\n\t},\n\tsnap = (snapTo, value) => {\n\t\tlet isArray = _isArray(snapTo),\n\t\t\tradius, is2D;\n\t\tif (!isArray && _isObject(snapTo)) {\n\t\t\tradius = isArray = snapTo.radius || _bigNum;\n\t\t\tsnapTo = toArray(snapTo.values);\n\t\t\tif ((is2D = !_isNumber(snapTo[0]))) {\n\t\t\t\tradius *= radius; //performance optimization so we don't have to Math.sqrt() in the loop.\n\t\t\t}\n\t\t}\n\t\treturn _conditionalReturn(value, !isArray ? _roundModifier(snapTo) : raw => {\n\t\t\tlet x = parseFloat(is2D ? raw.x : raw),\n\t\t\t\ty = parseFloat(is2D ? raw.y : 0),\n\t\t\t\tmin = _bigNum,\n\t\t\t\tclosest = 0,\n\t\t\t\ti = snapTo.length,\n\t\t\t\tdx, dy;\n\t\t\twhile (i--) {\n\t\t\t\tif (is2D) {\n\t\t\t\t\tdx = snapTo[i].x - x;\n\t\t\t\t\tdy = snapTo[i].y - y;\n\t\t\t\t\tdx = dx * dx + dy * dy;\n\t\t\t\t} else {\n\t\t\t\t\tdx = Math.abs(snapTo[i] - x);\n\t\t\t\t}\n\t\t\t\tif (dx < min) {\n\t\t\t\t\tmin = dx;\n\t\t\t\t\tclosest = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosest = (!radius || min <= radius) ? snapTo[closest] : raw;\n\t\t\treturn (is2D || closest === raw || _isNumber(raw)) ? closest : closest + getUnit(raw);\n\t\t});\n\t},\n\trandom = (min, max, roundingIncrement, returnFunction) => _conditionalReturn(_isArray(min) ? !max : !returnFunction, () => _isArray(min) ? min[~~(Math.random() * min.length)] : (roundingIncrement = roundingIncrement || 1e-5) && (returnFunction = roundingIncrement < 1 ? 10 ** ((roundingIncrement + \"\").length - 2) : 1) && (~~(Math.round((min + Math.random() * (max - min)) / roundingIncrement) * roundingIncrement * returnFunction) / returnFunction)),\n\tpipe = (...functions) => value => functions.reduce((v, f) => f(v), value),\n\tunitize = (func, unit) => value => func(parseFloat(value)) + (unit || getUnit(value)),\n\tnormalize = (min, max, value) => mapRange(min, max, 0, 1, value),\n\t_wrapArray = (a, wrapper, value) => _conditionalReturn(value, index => a[~~wrapper(index)]),\n\twrap = function(min, max, value) { // NOTE: wrap() CANNOT be an arrow function! A very odd compiling bug causes problems (unrelated to GSAP).\n\t\tlet range = max - min;\n\t\treturn _isArray(min) ? _wrapArray(min, wrap(0, min.length), max) : _conditionalReturn(value, value => ((range + (value - min) % range) % range) + min);\n\t},\n\twrapYoyo = (min, max, value) => {\n\t\tlet range = max - min,\n\t\t\ttotal = range * 2;\n\t\treturn _isArray(min) ? _wrapArray(min, wrapYoyo(0, min.length - 1), max) : _conditionalReturn(value, value => {\n\t\t\tvalue = (total + (value - min) % total) % total;\n\t\t\treturn min + ((value > range) ? (total - value) : value);\n\t\t});\n\t},\n\t_replaceRandom = value => { //replaces all occurrences of random(...) in a string with the calculated random value. can be a range like random(-100, 100, 5) or an array like random([0, 100, 500])\n\t\tlet prev = 0,\n\t\t\ts = \"\",\n\t\t\ti, nums, end, isArray;\n\t\twhile (~(i = value.indexOf(\"random(\", prev))) {\n\t\t\tend = value.indexOf(\")\", i);\n\t\t\tisArray = value.charAt(i + 7) === \"[\";\n\t\t\tnums = value.substr(i + 7, end - i - 7).match(isArray ? _delimitedValueExp : _strictNumExp);\n\t\t\ts += value.substr(prev, i - prev) + random(isArray ? nums : +nums[0], +nums[1], +nums[2] || 1e-5);\n\t\t\tprev = end + 1;\n\t\t}\n\t\treturn s + value.substr(prev, value.length - prev);\n\t},\n\tmapRange = (inMin, inMax, outMin, outMax, value) => {\n\t\tlet inRange = inMax - inMin,\n\t\t\toutRange = outMax - outMin;\n\t\treturn _conditionalReturn(value, value => outMin + ((value - inMin) / inRange) * outRange);\n\t},\n\tinterpolate = (start, end, progress, mutate) => {\n\t\tlet func = isNaN(start + end) ? 0 : p => (1 - p) * start + p * end;\n\t\tif (!func) {\n\t\t\tlet isString = _isString(start),\n\t\t\t\tmaster = {},\n\t\t\t\tp, i, interpolators, l, il;\n\t\t\tprogress === true && (mutate = 1) && (progress = null);\n\t\t\tif (isString) {\n\t\t\t\tstart = {p: start};\n\t\t\t\tend = {p: end};\n\n\t\t\t} else if (_isArray(start) && !_isArray(end)) {\n\t\t\t\tinterpolators = [];\n\t\t\t\tl = start.length;\n\t\t\t\til = l - 2;\n\t\t\t\tfor (i = 1; i < l; i++) {\n\t\t\t\t\tinterpolators.push(interpolate(start[i-1], start[i])); //build the interpolators up front as a performance optimization so that when the function is called many times, it can just reuse them.\n\t\t\t\t}\n\t\t\t\tl--;\n\t\t\t\tfunc = p => {\n\t\t\t\t\tp *= l;\n\t\t\t\t\tlet i = Math.min(il, ~~p);\n\t\t\t\t\treturn interpolators[i](p - i);\n\t\t\t\t};\n\t\t\t\tprogress = end;\n\t\t\t} else if (!mutate) {\n\t\t\t\tstart = _merge(_isArray(start) ? [] : {}, start);\n\t\t\t}\n\t\t\tif (!interpolators) {\n\t\t\t\tfor (p in end) {\n\t\t\t\t\t_addPropTween.call(master, start, p, \"get\", end[p]);\n\t\t\t\t}\n\t\t\t\tfunc = p => _renderPropTweens(p, master) || (isString ? start.p : start);\n\t\t\t}\n\t\t}\n\t\treturn _conditionalReturn(progress, func);\n\t},\n\t_getLabelInDirection = (timeline, fromTime, backward) => { //used for nextLabel() and previousLabel()\n\t\tlet labels = timeline.labels,\n\t\t\tmin = _bigNum,\n\t\t\tp, distance, label;\n\t\tfor (p in labels) {\n\t\t\tdistance = labels[p] - fromTime;\n\t\t\tif ((distance < 0) === !!backward && distance && min > (distance = Math.abs(distance))) {\n\t\t\t\tlabel = p;\n\t\t\t\tmin = distance;\n\t\t\t}\n\t\t}\n\t\treturn label;\n\t},\n\t_callback = (animation, type, executeLazyFirst) => {\n\t\tlet v = animation.vars,\n\t\t\tcallback = v[type],\n\t\t\tparams, scope;\n\t\tif (!callback) {\n\t\t\treturn;\n\t\t}\n\t\tparams = v[type + \"Params\"];\n\t\tscope = v.callbackScope || animation;\n\t\tif (executeLazyFirst && _lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.\n\t\t\t_lazyRender();\n\t\t}\n\t\treturn params ? callback.apply(scope, params) : callback.call(scope);\n\t},\n\t_interrupt = animation => {\n\t\t_removeFromParent(animation);\n\t\tif (animation.progress() < 1) {\n\t\t\t_callback(animation, \"onInterrupt\");\n\t\t}\n\t\treturn animation;\n\t},\n\t_quickTween,\n\t_createPlugin = config => {\n\t\tconfig = !config.name && config.default || config; //UMD packaging wraps things oddly, so for example MotionPathHelper becomes {MotionPathHelper:MotionPathHelper, default:MotionPathHelper}.\n\t\tlet name = config.name,\n\t\t\tisFunc = _isFunction(config),\n\t\t\tPlugin = (name && !isFunc && config.init) ? function() { this._props = []; } : config, //in case someone passes in an object that's not a plugin, like CustomEase\n\t\t\tinstanceDefaults = {init:_emptyFunc, render:_renderPropTweens, add:_addPropTween, kill:_killPropTweensOf, modifier:_addPluginModifier, rawVars:0},\n\t\t\tstatics = {targetTest:0, get:0, getSetter:_getSetter, aliases:{}, register:0};\n\t\t_wake();\n\t\tif (config !== Plugin) {\n\t\t\tif (_plugins[name]) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t_setDefaults(Plugin, _setDefaults(_copyExcluding(config, instanceDefaults), statics)); //static methods\n\t\t\t_merge(Plugin.prototype, _merge(instanceDefaults, _copyExcluding(config, statics))); //instance methods\n\t\t\t_plugins[(Plugin.prop = name)] = Plugin;\n\t\t\tif (config.targetTest) {\n\t\t\t\t_harnessPlugins.push(Plugin);\n\t\t\t\t_reservedProps[name] = 1;\n\t\t\t}\n\t\t\tname = (name === \"css\" ? \"CSS\" : name.charAt(0).toUpperCase() + name.substr(1)) + \"Plugin\"; //for the global name. \"motionPath\" should become MotionPathPlugin\n\t\t}\n\t\t_addGlobal(name, Plugin);\n\t\tif (config.register) {\n\t\t\tconfig.register(gsap, Plugin, PropTween);\n\t\t}\n\t},\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * COLORS\n * --------------------------------------------------------------------------------------\n */\n\n\t_255 = 255,\n\t_colorLookup = {\n\t\taqua:[0,_255,_255],\n\t\tlime:[0,_255,0],\n\t\tsilver:[192,192,192],\n\t\tblack:[0,0,0],\n\t\tmaroon:[128,0,0],\n\t\tteal:[0,128,128],\n\t\tblue:[0,0,_255],\n\t\tnavy:[0,0,128],\n\t\twhite:[_255,_255,_255],\n\t\tolive:[128,128,0],\n\t\tyellow:[_255,_255,0],\n\t\torange:[_255,165,0],\n\t\tgray:[128,128,128],\n\t\tpurple:[128,0,128],\n\t\tgreen:[0,128,0],\n\t\tred:[_255,0,0],\n\t\tpink:[_255,192,203],\n\t\tcyan:[0,_255,_255],\n\t\ttransparent:[_255,_255,_255,0]\n\t},\n\t_hue = (h, m1, m2) => {\n\t\th = (h < 0) ? h + 1 : (h > 1) ? h - 1 : h;\n\t\treturn ((((h * 6 < 1) ? m1 + (m2 - m1) * h * 6 : (h < .5) ? m2 : (h * 3 < 2) ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1) * _255) + .5) | 0;\n\t},\n\tsplitColor = (v, toHSL) => {\n\t\tlet a = !v ? _colorLookup.black : _isNumber(v) ? [v >> 16, (v >> 8) & _255, v & _255] : 0,\n\t\t\tr, g, b, h, s, l, max, min, d, wasHSL;\n\t\tif (!a) {\n\t\t\tif (v.substr(-1) === \",\") { //sometimes a trailing comma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:\"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)\" - in this example \"blue,\" has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.\n\t\t\t\tv = v.substr(0, v.length - 1);\n\t\t\t}\n\t\t\tif (_colorLookup[v]) {\n\t\t\t\ta = _colorLookup[v];\n\t\t\t} else if (v.charAt(0) === \"#\") {\n\t\t\t\tif (v.length === 4) { //for shorthand like #9F0\n\t\t\t\t\tr = v.charAt(1);\n\t\t\t\t\tg = v.charAt(2);\n\t\t\t\t\tb = v.charAt(3);\n\t\t\t\t\tv = \"#\" + r + r + g + g + b + b;\n\t\t\t\t}\n\t\t\t\tv = parseInt(v.substr(1), 16);\n\t\t\t\ta = [v >> 16, (v >> 8) & _255, v & _255];\n\t\t\t} else if (v.substr(0, 3) === \"hsl\") {\n\t\t\t\ta = wasHSL = v.match(_strictNumExp);\n\t\t\t\tif (!toHSL) {\n\t\t\t\t\th = (+a[0] % 360) / 360;\n\t\t\t\t\ts = +a[1] / 100;\n\t\t\t\t\tl = +a[2] / 100;\n\t\t\t\t\tg = (l <= .5) ? l * (s + 1) : l + s - l * s;\n\t\t\t\t\tr = l * 2 - g;\n\t\t\t\t\tif (a.length > 3) {\n\t\t\t\t\t\ta[3] *= 1; //cast as number\n\t\t\t\t\t}\n\t\t\t\t\ta[0] = _hue(h + 1 / 3, r, g);\n\t\t\t\t\ta[1] = _hue(h, r, g);\n\t\t\t\t\ta[2] = _hue(h - 1 / 3, r, g);\n\t\t\t\t} else if (~v.indexOf(\"=\")) { //if relative values are found, just return the raw strings with the relative prefixes in place.\n\t\t\t\t\treturn v.match(_numExp);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ta = v.match(_strictNumExp) || _colorLookup.transparent;\n\t\t\t}\n\t\t\ta = a.map(Number);\n\t\t}\n\t\tif (toHSL && !wasHSL) {\n\t\t\tr = a[0] / _255;\n\t\t\tg = a[1] / _255;\n\t\t\tb = a[2] / _255;\n\t\t\tmax = Math.max(r, g, b);\n\t\t\tmin = Math.min(r, g, b);\n\t\t\tl = (max + min) / 2;\n\t\t\tif (max === min) {\n\t\t\t\th = s = 0;\n\t\t\t} else {\n\t\t\t\td = max - min;\n\t\t\t\ts = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\t\t\t\th = (max === r) ? (g - b) / d + (g < b ? 6 : 0) : (max === g) ? (b - r) / d + 2 : (r - g) / d + 4;\n\t\t\t\th *= 60;\n\t\t\t}\n\t\t\ta[0] = (h + .5) | 0;\n\t\t\ta[1] = (s * 100 + .5) | 0;\n\t\t\ta[2] = (l * 100 + .5) | 0;\n\t\t}\n\t\treturn a;\n\t},\n\t_formatColors = (s, toHSL) => {\n\t\tlet colors = (s + \"\").match(_colorExp),\n\t\t\tcharIndex = 0,\n\t\t\tparsed = \"\",\n\t\t\ti, color, temp;\n\t\tif (!colors) {\n\t\t\treturn s;\n\t\t}\n\t\tfor (i = 0; i < colors.length; i++) {\n\t\t\tcolor = colors[i];\n\t\t\ttemp = s.substr(charIndex, s.indexOf(color, charIndex)-charIndex);\n\t\t\tcharIndex += temp.length + color.length;\n\t\t\tcolor = splitColor(color, toHSL);\n\t\t\tif (color.length === 3) {\n\t\t\t\tcolor.push(1);\n\t\t\t}\n\t\t\tparsed += temp + (toHSL ? \"hsla(\" + color[0] + \",\" + color[1] + \"%,\" + color[2] + \"%,\" + color[3] : \"rgba(\" + color.join(\",\")) + \")\";\n\t\t}\n\t\treturn parsed + s.substr(charIndex);\n\t},\n\t_colorExp = (function() {\n\t\tlet s = \"(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3}){1,2}\\\\b\", //we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.,\n\t\t\tp;\n\t\tfor (p in _colorLookup) {\n\t\t\ts += \"|\" + p + \"\\\\b\";\n\t\t}\n\t\treturn new RegExp(s + \")\", \"gi\");\n\t})(),\n\t_hslExp = /hsl[a]?\\(/,\n\t_colorStringFilter = a => {\n\t\tlet combined = a.join(\" \"),\n\t\t\ttoHSL;\n\t\t_colorExp.lastIndex = 0;\n\t\tif (_colorExp.test(combined)) {\n\t\t\ttoHSL = _hslExp.test(combined);\n\t\t\ta[0] = _formatColors(a[0], toHSL);\n\t\t\ta[1] = _formatColors(a[1], toHSL);\n\t\t}\n\t},\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * TICKER\n * --------------------------------------------------------------------------------------\n */\n\t_tickerActive,\n\t_ticker = (function() {\n\t\tlet _getTime = Date.now,\n\t\t\t_lagThreshold = 500,\n\t\t\t_adjustedLag = 33,\n\t\t\t_startTime = _getTime(),\n\t\t\t_lastUpdate = _startTime,\n\t\t\t_gap = 1 / 60,\n\t\t\t_nextTime = _gap,\n\t\t\t_listeners = [],\n\t\t\t_id, _req, _raf, _self,\n\t\t\t_tick = v => {\n\t\t\t\tlet elapsed = _getTime() - _lastUpdate,\n\t\t\t\t\tmanual = (v === true),\n\t\t\t\t\toverlap, dispatch;\n\t\t\t\tif (elapsed > _lagThreshold) {\n\t\t\t\t\t_startTime += elapsed - _adjustedLag;\n\t\t\t\t}\n\t\t\t\t_lastUpdate += elapsed;\n\t\t\t\t_self.time = (_lastUpdate - _startTime) / 1000;\n\t\t\t\toverlap = _self.time - _nextTime;\n\t\t\t\tif (overlap > 0 || manual) {\n\t\t\t\t\t_self.frame++;\n\t\t\t\t\t_nextTime += overlap + (overlap >= _gap ? 0.004 : _gap - overlap);\n\t\t\t\t\tdispatch = 1;\n\t\t\t\t}\n\t\t\t\tif (!manual) { //make sure the request is made before we dispatch the \"tick\" event so that timing is maintained. Otherwise, if processing the \"tick\" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.\n\t\t\t\t\t_id = _req(_tick);\n\t\t\t\t}\n\t\t\t\tif (dispatch) {\n\t\t\t\t\t_listeners.forEach(l => l(_self.time, elapsed, _self.frame, v));\n\t\t\t\t}\n\t\t\t};\n\t\t_self = {\n\t\t\ttime:0,\n\t\t\tframe:0,\n\t\t\ttick() {\n\t\t\t\t_tick(true);\n\t\t\t},\n\t\t\twake() {\n\t\t\t\tif (_coreReady) {\n\t\t\t\t\tif (!_coreInitted && _windowExists()) {\n\t\t\t\t\t\t_win = _coreInitted = window;\n\t\t\t\t\t\t_doc = _win.document || {};\n\t\t\t\t\t\t_globals.gsap = gsap;\n\t\t\t\t\t\t(_win.gsapVersions || (_win.gsapVersions = [])).push(gsap.version);\n\t\t\t\t\t\t_install(_installScope || _win.GreenSockGlobals || (!_win.gsap && _win) || {});\n\t\t\t\t\t\t_raf = _win.requestAnimationFrame;\n\t\t\t\t\t}\n\t\t\t\t\t_id && _self.sleep();\n\t\t\t\t\t_req = _raf || (f => setTimeout(f, ((_nextTime - _self.time) * 1000 + 1) | 0));\n\t\t\t\t\t_tickerActive = 1;\n\t\t\t\t\t_tick(2);\n\t\t\t\t}\n\t\t\t},\n\t\t\tsleep() {\n\t\t\t\t(_raf ? _win.cancelAnimationFrame : clearTimeout)(_id);\n\t\t\t\t_tickerActive = 0;\n\t\t\t\t_req = _emptyFunc;\n\t\t\t},\n\t\t\tlagSmoothing(threshold, adjustedLag) {\n\t\t\t\t_lagThreshold = threshold || (1 / _tinyNum); //zero should be interpreted as basically unlimited\n\t\t\t\t_adjustedLag = Math.min(adjustedLag, _lagThreshold, 0);\n\t\t\t},\n\t\t\tfps(fps) {\n\t\t\t\t_gap = 1 / (fps || 60);\n\t\t\t\t_nextTime = _self.time + _gap;\n\t\t\t},\n\t\t\tadd(callback) {\n\t\t\t\t_listeners.indexOf(callback) < 0 && _listeners.push(callback);\n\t\t\t\t_wake();\n\t\t\t},\n\t\t\tremove(callback) {\n\t\t\t\tlet i;\n\t\t\t\t~(i = _listeners.indexOf(callback)) && _listeners.splice(i, 1);\n\t\t\t},\n\t\t\t_listeners:_listeners\n\t\t};\n\t\treturn _self;\n\t})(),\n\t_wake = () => !_tickerActive && _ticker.wake(), //also ensures the core classes are initialized.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n* -------------------------------------------------\n* EASING\n* -------------------------------------------------\n*/\n\t_easeMap = {},\n\t_customEaseExp = /^[\\d.\\-M][\\d.\\-,\\s]/,\n\t_quotesExp = /[\"']/g,\n\t_parseObjectInString = value => { //takes a string like \"{wiggles:10, type:anticipate})\" and turns it into a real object. Notice it ends in \")\" and includes the {} wrappers. This is because we only use this function for parsing ease configs and prioritized optimization rather than reusability.\n\t\tlet obj = {},\n\t\t\tsplit = value.substr(1, value.length-3).split(\":\"),\n\t\t\tkey = split[0],\n\t\t\ti = 1,\n\t\t\tl = split.length,\n\t\t\tindex, val, parsedVal;\n\t\tfor (; i < l; i++) {\n\t\t\tval = split[i];\n\t\t\tindex = i !== l-1 ? val.lastIndexOf(\",\") : val.length;\n\t\t\tparsedVal = val.substr(0, index);\n\t\t\tobj[key] = isNaN(parsedVal) ? parsedVal.replace(_quotesExp, \"\").trim() : +parsedVal;\n\t\t\tkey = val.substr(index+1).trim();\n\t\t}\n\t\treturn obj;\n\t},\n\t_configEaseFromString = name => { //name can be a string like \"elastic.out(1,0.5)\", and pass in _easeMap as obj and it'll parse it out and call the actual function like _easeMap.Elastic.easeOut.config(1,0.5). It will also parse custom ease strings as long as CustomEase is loaded and registered (internally as _easeMap._CE).\n\t\tlet split = (name + \"\").split(\"(\"),\n\t\t\tease = _easeMap[split[0]];\n\t\treturn (ease && split.length > 1 && ease.config) ? ease.config.apply(null, ~name.indexOf(\"{\") ? [_parseObjectInString(split[1])] : _parenthesesExp.exec(name)[1].split(\",\").map(_numericIfPossible)) : (_easeMap._CE && _customEaseExp.test(name)) ? _easeMap._CE(\"\", name) : ease;\n\t},\n\t_invertEase = ease => p => 1 - ease(1 - p),\n\t// potential future feature - allow yoyoEase to be set in children and have those affected when the parent/ancestor timeline yoyos. Not sure it's worth the kb.\n\t// _propagateYoyoEase = (timeline, isYoyo) => {\n\t// \tlet child = timeline._first, ease;\n\t// \twhile (child) {\n\t// \t\tif (child instanceof Timeline) {\n\t// \t\t\t_propagateYoyoEase(child, isYoyo);\n\t// \t\t} else if (child.vars.yoyoEase && (!child._yoyo || !child._repeat) && child._yoyo !== isYoyo) {\n\t// \t\t\tif (child.timeline) {\n\t// \t\t\t\t_propagateYoyoEase(child.timeline, isYoyo);\n\t// \t\t\t} else {\n\t// \t\t\t\tease = child._ease;\n\t// \t\t\t\tchild._ease = child._yEase;\n\t// \t\t\t\tchild._yEase = ease;\n\t// \t\t\t\tchild._yoyo = isYoyo;\n\t// \t\t\t}\n\t// \t\t}\n\t// \t\tchild = child._next;\n\t// \t}\n\t// },\n\t_parseEase = (ease, defaultEase) => !ease ? defaultEase : (_isFunction(ease) ? ease : _easeMap[ease] || _configEaseFromString(ease)) || defaultEase,\n\t_insertEase = (names, easeIn, easeOut = p => 1 - easeIn(1 - p), easeInOut = (p => p < .5 ? easeIn(p * 2) / 2 : 1 - easeIn((1 - p) * 2) / 2)) => {\n\t\tlet ease = {easeIn, easeOut, easeInOut},\n\t\t\tlowercaseName;\n\t\t_forEachName(names, name => {\n\t\t\t_easeMap[name] = _globals[name] = ease;\n\t\t\t_easeMap[(lowercaseName = name.toLowerCase())] = easeOut;\n\t\t\tfor (let p in ease) {\n\t\t\t\t_easeMap[lowercaseName + (p === \"easeIn\" ? \".in\" : p === \"easeOut\" ? \".out\" : \".inOut\")] = _easeMap[name + \".\" + p] = ease[p];\n\t\t\t}\n\t\t});\n\t\treturn ease;\n\t},\n\t_easeInOutFromOut = easeOut => (p => p < .5 ? (1 - easeOut(1 - (p * 2))) / 2 : .5 + easeOut((p - .5) * 2) / 2),\n\t_configElastic = (type, amplitude, period) => {\n\t\tlet p1 = (amplitude >= 1) ? amplitude : 1, //note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1.\n\t\t\tp2 = (period || (type ? .3 : .45)) / (amplitude < 1 ? amplitude : 1),\n\t\t\tp3 = p2 / _2PI * (Math.asin(1 / p1) || 0),\n\t\t\teaseOut = p => p === 1 ? 1 : p1 * (2 ** (-10 * p)) * _sin((p - p3) * p2) + 1,\n\t\t\tease = (type === \"out\") ? easeOut : (type === \"in\") ? p => 1 - easeOut(1 - p) : _easeInOutFromOut(easeOut);\n\t\tp2 = _2PI / p2; //precalculate to optimize\n\t\tease.config = (amplitude, period) => _configElastic(type, amplitude, period);\n\t\treturn ease;\n\t},\n\t_configBack = (type, overshoot = 1.70158) => {\n\t\tlet easeOut = p => ((--p) * p * ((overshoot + 1) * p + overshoot) + 1),\n\t\t\tease = (type === \"out\") ? easeOut : (type === \"in\") ? p => 1 - easeOut(1 - p) : _easeInOutFromOut(easeOut);\n\t\tease.config = overshoot => _configBack(type, overshoot);\n\t\treturn ease;\n\t};\n\t// a cheaper (kb and cpu) but more mild way to get a parameterized weighted ease by feeding in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n\t// _weightedEase = ratio => {\n\t// \tlet y = 0.5 + ratio / 2;\n\t// \treturn p => (2 * (1 - p) * p * y + p * p);\n\t// },\n\t// a stronger (but more expensive kb/cpu) parameterized weighted ease that lets you feed in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n\t// _weightedEaseStrong = ratio => {\n\t// \tratio = .5 + ratio / 2;\n\t// \tlet o = 1 / 3 * (ratio < .5 ? ratio : 1 - ratio),\n\t// \t\tb = ratio - o,\n\t// \t\tc = ratio + o;\n\t// \treturn p => p === 1 ? p : 3 * b * (1 - p) * (1 - p) * p + 3 * c * (1 - p) * p * p + p * p * p;\n\t// };\n\n_forEachName(\"Linear,Quad,Cubic,Quart,Quint,Strong\", (name, i) => {\n\tlet power = i < 5 ? i + 1 : i;\n\t_insertEase(name + \",Power\" + (power - 1), i ? p => p ** power : p => p, p => 1 - (1 - p) ** power, p => p < .5 ? (p * 2) ** power / 2 : 1 - ((1 - p) * 2) ** power / 2);\n});\n_easeMap.Linear.easeNone = _easeMap.none = _easeMap.Linear.easeIn;\n_insertEase(\"Elastic\", _configElastic(\"in\"), _configElastic(\"out\"), _configElastic());\n((n, c) => {\n\tlet n1 = 1 / c,\n\t\tn2 = 2 * n1,\n\t\tn3 = 2.5 * n1,\n\t\teaseOut = p => (p < n1) ? n * p * p : (p < n2) ? n * (p - 1.5 / c) ** 2 + .75 : (p < n3) ? n * (p -= 2.25 / c) * p + .9375 : n * (p - 2.625 / c) ** 2 + .984375;\n\t_insertEase(\"Bounce\", p => 1 - easeOut(1 - p), easeOut);\n})(7.5625, 2.75);\n_insertEase(\"Expo\", p => p ? 2 ** (10 * (p - 1)) : 0);\n_insertEase(\"Circ\", p => -(_sqrt(1 - (p * p)) - 1));\n_insertEase(\"Sine\", p => -_cos(p * _HALF_PI) + 1);\n_insertEase(\"Back\", _configBack(\"in\"), _configBack(\"out\"), _configBack());\n_easeMap.SteppedEase = _easeMap.steps = _globals.SteppedEase = {\n\tconfig(steps = 1, immediateStart) {\n\t\tlet p1 = 1 / steps,\n\t\t\tp2 = steps + (immediateStart ? 0 : 1),\n\t\t\tp3 = immediateStart ? 1 : 0,\n\t\t\tmax = 1 - _tinyNum;\n\t\treturn p => (((p2 * _clamp(0, max, p)) | 0) + p3) * p1;\n\t}\n};\n_defaults.ease = _easeMap[\"quad.out\"];\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * CACHE\n * --------------------------------------------------------------------------------------\n */\nexport class GSCache {\n\n\tconstructor(target, harness) {\n\t\tthis.id = _gsID++;\n\t\ttarget._gsap = this;\n\t\tthis.target = target;\n\t\tthis.harness = harness;\n\t\tthis.get = harness ? harness.get : _getProperty;\n\t\tthis.set = harness ? harness.getSetter : _getSetter;\n\t}\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * ANIMATION\n * --------------------------------------------------------------------------------------\n */\n\nexport class Animation {\n\n\tconstructor(vars, time) {\n\t\tlet parent = vars.parent || _globalTimeline;\n\t\tthis.vars = vars;\n\t\tthis._dur = this._tDur = +vars.duration || 0;\n\t\tthis._delay = +vars.delay || 0;\n\t\tif ((this._repeat = vars.repeat || 0)) {\n\t\t\tthis._rDelay = vars.repeatDelay || 0;\n\t\t\tthis._yoyo = !!vars.yoyo || !!vars.yoyoEase;\n\t\t\t_onUpdateTotalDuration(this);\n\t\t}\n\t\tthis._ts = 1;\n\t\tthis.data = vars.data;\n\n\t\tif (!_tickerActive) {\n\t\t\t_ticker.wake();\n\t\t}\n\t\tif (parent) {\n\t\t\t_addToTimeline(parent, this, (time || time === 0) ? time : parent._time);\n\t\t}\n\t\tif (vars.reversed) {\n\t\t\tthis.reversed(true);\n\t\t}\n\t\tif (vars.paused) {\n\t\t\tthis.paused(true);\n\t\t}\n\t}\n\n\tdelay(value) {\n\t\tif (value || value === 0) {\n\t\t\tthis._delay = value;\n\t\t\treturn this;\n\t\t}\n\t\treturn this._delay;\n\t}\n\n\tduration(value) {\n\t\tlet isSetter = arguments.length,\n\t\t\trepeat = this._repeat,\n\t\t\trepeatCycles = repeat > 0 ? repeat * ((isSetter ? value : this._dur) + this._rDelay) : 0;\n\t\treturn isSetter ? this.totalDuration( (repeat < 0) ? value : value + repeatCycles ) : this.totalDuration() && this._dur;\n\t}\n\n\ttotalDuration(value) {\n\t\tif (!arguments.length) {\n\t\t\treturn this._tDur;\n\t\t}\n\t\tlet repeat = this._repeat,\n\t\t\tisInfinite = (value || this._rDelay) && repeat < 0;\n\t\tthis._tDur = isInfinite ? 1e20 : value;\n\t\tthis._dur = isInfinite ? value : (value - (repeat * this._rDelay)) / (repeat + 1);\n\t\tthis._dirty = 0;\n\t\t_uncache(this.parent);\n\t\treturn this;\n\t}\n\n\ttotalTime(totalTime, suppressEvents) {\n\t\t_wake();\n\t\tif (!arguments.length) {\n\t\t\treturn this._tTime;\n\t\t}\n\t\tlet parent = this.parent || this._dp,\n\t\t\tstart;\n\t\tif (parent && parent.smoothChildTiming && this._ts) {\n\t\t\tstart = this._start;\n\t\t\t// if (!parent._dp && parent._time === parent._dur) { // if a root timeline completes...and then a while later one of its children resumes, we must shoot the playhead forward to where it should be raw-wise, otherwise the child will jump to the end. Down side: this assumes it's using the _ticker.time as a reference.\n\t\t\t// \tparent._time = _ticker.time - parent._start;\n\t\t\t// }\n\t\t\tthis._start = parent._time - (this._ts > 0 ? totalTime / this._ts : ((this._dirty ? this.totalDuration() : this._tDur) - totalTime) / -this._ts);\n\t\t\tthis._end += this._start - start;\n\t\t\tif (!parent._dirty) { //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.\n\t\t\t\t_uncache(parent);\n\t\t\t}\n\t\t\t//in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The start of that child would get pushed out, but one of the ancestors may have completed.\n\t\t\twhile (parent.parent) {\n\t\t\t\tif (parent.parent._time !== parent._start + (parent._ts > 0 ? parent._tTime / parent._ts : (parent.totalDuration() - parent._tTime) / -parent._ts)) {\n\t\t\t\t\tparent.totalTime(parent._tTime, true);\n\t\t\t\t}\n\t\t\t\tparent = parent.parent;\n\t\t\t}\n\t\t\tif (!this.parent) { //if the animation doesn't have a parent, put it back into its last parent (recorded as _dp for exactly cases like this).\n\t\t\t\t_addToTimeline(this._dp, this, this._start - this._delay);\n\t\t\t}\n\t\t}\n\t\tif (this._tTime !== totalTime || !this._dur) {\n\t\t\tthis._ts || (this._pTime = totalTime); // otherwise, if an animation is paused, then the playhead is moved back to zero, then resumed, it'd revert back to the original time at the pause\n\t\t\t_lazySafeRender(this, totalTime, suppressEvents);\n\t\t}\n\t\treturn this;\n\t}\n\n\ttime(value, suppressEvents) {\n\t\treturn arguments.length ? this.totalTime(((value + _elapsedCycleDuration(this)) % this.duration()) || (value ? this._dur : 0), suppressEvents) : this._time; // note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!\n\t}\n\n\ttotalProgress(value, suppressEvents) {\n\t\treturn arguments.length ? this.totalTime( this.totalDuration() * value, suppressEvents) : this._tTime / this.totalDuration();\n\t}\n\n\tprogress(value, suppressEvents) {\n\t\treturn arguments.length ? this.totalTime( this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : (this.duration() ? this._time / this._dur : this.ratio);\n\t}\n\n\titeration(value, suppressEvents) {\n\t\tlet cycleDuration = this.duration() + this._rDelay;\n\t\treturn arguments.length ? this.totalTime(this._time + (value - 1) * cycleDuration, suppressEvents) : this._repeat ? ~~(this._tTime / cycleDuration) + 1 : 1;\n\t}\n\n\ttimeScale(value) {\n\t\tlet prevTS = this._ts;\n\t\tif (!arguments.length) {\n\t\t\treturn prevTS || this._pauseTS;\n\t\t}\n\t\tif (!prevTS) {\n\t\t\tthis._pauseTS = value;\n\t\t\treturn this;\n\t\t}\n\t\t//don't allow a zero _ts, otherwise we can't resume() properly. For example, gsap.fromTo(tween, {timeScale:0}, {timeScale:1}) wouldn't work because the timeScale:0 would of course pause, and we'd record _pauseTS as 0...and then when resuming we'd copy that back to _ts...which would still keep it paused.\n\t\tthis._end = this._start + this._tDur / (this._ts = value || _tinyNum);\n\t\treturn _recacheAncestors(this).totalTime(this._tTime, true);\n\t}\n\n\tpaused(value) {\n\t\tlet isPaused = !this._ts;\n\t\tif (!arguments.length) {\n\t\t\treturn isPaused;\n\t\t}\n\t\tif (isPaused !== value) {\n\t\t\tif (value) {\n\t\t\t\tthis._pauseTS = this._ts;\n\t\t\t\tthis._pTime = this._tTime || Math.max(-this._delay, this.rawTime()); // if the pause occurs during the delay phase, make sure that's factored in when resuming.\n\t\t\t\tthis._ts = this._act = 0; //we use a timeScale of 0 to indicate a paused state, but we record the old \"real\" timeScale as _pauseTS so we can revert when unpaused.\n\t\t\t} else {\n\t\t\t\tthis._ts = this._pauseTS;\n\t\t\t\tvalue = this._tTime || this._pTime; //only defer to _pTime (pauseTime) if tTime is zero. Remember, someone could pause() an animation, then scrub the playhead and resume().\n\t\t\t\tif (this.progress() === 1) { // edge case: animation.progress(1).pause().play() wouldn't render again because the playhead is already at the end, but the call to totalTime() below will add it back to its parent...and not remove it again (since removing only happens upon rendering at a new time). Offsetting the _tTime slightly is done simply to cause the final render in totalTime() that'll pop it off its timeline (if autoRemoveChildren is true, of course).\n\t\t\t\t\tthis._tTime -= _tinyNum;\n\t\t\t\t}\n\t\t\t\tthis.totalTime(value, true);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\tstartTime(value) {\n\t\tif (arguments.length) {\n\t\t\tif (this.parent && this.parent._sort) {\n\t\t\t\t_addToTimeline(this.parent, this, value - this._delay);\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\treturn this._start;\n\t}\n\n\tendTime(includeRepeats) {\n\t\treturn this._start + (_isNotFalse(includeRepeats) ? this.totalDuration() : this.duration()) / Math.abs(this._ts);\n\t}\n\n\trawTime(wrapRepeats) {\n\t\tlet parent = this.parent || this._dp; // _dp = detatched parent\n\t\treturn !parent ? this._tTime : (wrapRepeats && (!this._ts || (this._repeat && this._time && this.totalProgress() < 1))) ? this._tTime % (this._dur + this._rDelay) : !this._ts ? this._tTime : _parentToChildTotalTime(parent.rawTime(wrapRepeats), this);\n\t}\n\n\t// globalTime(rawTime) {\n\t// \tlet animation = this,\n\t// \t\ttime = arguments.length ? rawTime : animation.rawTime();\n\t// \twhile (animation) {\n\t// \t\ttime = animation._start + time / (animation._ts || 1);\n\t// \t\tanimation = animation.parent;\n\t// \t}\n\t// \treturn time;\n\t// }\n\n\trepeat(value) {\n\t\tif (arguments.length) {\n\t\t\tthis._repeat = value;\n\t\t\treturn _onUpdateTotalDuration(this);\n\t\t}\n\t\treturn this._repeat;\n\t}\n\n\trepeatDelay(value) {\n\t\tif (arguments.length) {\n\t\t\tthis._rDelay = value;\n\t\t\treturn _onUpdateTotalDuration(this);\n\t\t}\n\t\treturn this._rDelay;\n\t}\n\n\tyoyo(value) {\n\t\tif (arguments.length) {\n\t\t\tthis._yoyo = value;\n\t\t\treturn this;\n\t\t}\n\t\treturn this._yoyo;\n\t}\n\n\tseek(position, suppressEvents) {\n\t\treturn this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));\n\t}\n\n\trestart(includeDelay, suppressEvents) {\n\t\treturn this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));\n\t}\n\n\tplay(from, suppressEvents) {\n\t\tif (from != null) {\n\t\t\tthis.seek(from, suppressEvents);\n\t\t}\n\t\treturn this.reversed(false).paused(false);\n\t}\n\n\treverse(from, suppressEvents) {\n\t\tif (from != null) {\n\t\t\tthis.seek(from || this.totalDuration(), suppressEvents);\n\t\t}\n\t\treturn this.reversed(true).paused(false);\n\t}\n\n\tpause(atTime, suppressEvents) {\n\t\tif (atTime != null) {\n\t\t\tthis.seek(atTime, suppressEvents);\n\t\t}\n\t\treturn this.paused(true);\n\t}\n\n\tresume() {\n\t\treturn this.paused(false);\n\t}\n\n\treversed(value) {\n\t\tlet ts = this._ts || this._pauseTS;\n\t\tif (arguments.length) {\n\t\t\tif (value !== this.reversed()) {\n\t\t\t\tthis[this._ts ? \"_ts\" : \"_pauseTS\"] = Math.abs(ts) * (value ? -1 : 1);\n\t\t\t\tthis.totalTime(this._tTime, true);\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\treturn ts < 0;\n\t}\n\n\tinvalidate() {\n\t\tthis._initted = 0;\n\t\treturn this;\n\t}\n\n\tisActive(hasStarted) {\n\t\tlet parent = this.parent || this._dp,\n\t\t\tstart = this._start,\n\t\t\trawTime;\n\t\treturn !parent || (this._ts && (this._initted || !hasStarted) && parent.isActive(hasStarted) && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum);\n\t}\n\n\teventCallback(type, callback, params) {\n\t\tlet vars = this.vars;\n\t\tif (arguments.length > 1) {\n\t\t\tif (!callback) {\n\t\t\t\tdelete vars[type];\n\t\t\t} else {\n\t\t\t\tvars[type] = callback;\n\t\t\t\tif (params) {\n\t\t\t\t\tvars[type + \"Params\"] = params;\n\t\t\t\t}\n\t\t\t\tif (type === \"onUpdate\") {\n\t\t\t\t\tthis._onUpdate = callback;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\treturn vars[type];\n\t}\n\n\tthen(onFulfilled) {\n\t\treturn new Promise(resolve => {\n\t\t\tlet f = onFulfilled || _passThrough,\n\t\t\t\t_resolve = () => {\n\t\t\t\t\tlet _then = this.then;\n\t\t\t\t\tthis.then = null; // temporarily null the then() method to avoid an infinite loop (see https://github.com/greensock/GSAP/issues/322)\n\t\t\t\t\tf = f(this);\n\t\t\t\t\tif (f && (f.then || f === this)) {\n\t\t\t\t\t\tthis._prom = f;\n\t\t\t\t\t\tthis.then = _then;\n\t\t\t\t\t}\n\t\t\t\t\tresolve(f);\n\t\t\t\t\tthis.then = _then;\n\t\t\t\t};\n\t\t\tif (this._initted && (this.totalProgress() === 1 && this._ts >= 0) || (!this._tTime && this._ts < 0)) {\n\t\t\t\t_resolve();\n\t\t\t} else {\n\t\t\t\tthis._prom = _resolve;\n\t\t\t}\n\t\t});\n\t}\n\n\tkill() {\n\t\t_interrupt(this);\n\t}\n\n}\n\n_setDefaults(Animation.prototype, {_time:0, _start:0, _end:0, _tTime:0, _tDur:0, _dirty:0, _repeat:0, _yoyo:false, parent:0, _initted:false, _rDelay:0, _ts:1, _dp:0, ratio:0, _zTime:-_tinyNum, _prom:0});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * -------------------------------------------------\n * TIMELINE\n * -------------------------------------------------\n */\n\nexport class Timeline extends Animation {\n\n\tconstructor(vars = {}, time) {\n\t\tsuper(vars, time);\n\t\tthis.labels = {};\n\t\tthis.smoothChildTiming = _isNotFalse(vars.smoothChildTiming);\n\t\tthis.autoRemoveChildren = !!vars.autoRemoveChildren;\n\t\tthis._sort = _isNotFalse(vars.sortChildren);\n\t}\n\n\tto(targets, vars, position) {\n\t\tnew Tween(targets, _parseVars(arguments, 0, this), _parsePosition(this, _isNumber(vars) ? arguments[3] : position));\n\t\treturn this;\n\t}\n\n\tfrom(targets, vars, position) {\n\t\tnew Tween(targets, _parseVars(arguments, 1, this), _parsePosition(this, _isNumber(vars) ? arguments[3] : position));\n\t\treturn this;\n\t}\n\n\tfromTo(targets, fromVars, toVars, position) {\n\t\tnew Tween(targets, _parseVars(arguments, 2, this), _parsePosition(this, _isNumber(fromVars) ? arguments[4] : position));\n\t\treturn this;\n\t}\n\n\tset(targets, vars, position) {\n\t\tvars.duration = 0;\n\t\tvars.parent = this;\n\t\tif (!vars.repeatDelay) {\n\t\t\tvars.repeat = 0;\n\t\t}\n\t\tvars.immediateRender = !!vars.immediateRender;\n\t\tnew Tween(targets, vars, _parsePosition(this, position));\n\t\treturn this;\n\t}\n\n\tcall(callback, params, position) {\n\t\treturn _addToTimeline(this, Tween.delayedCall(0, callback, params), _parsePosition(this, position));\n\t}\n\n\t//ONLY for backward compatibility! Maybe delete?\n\tstaggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n\t\tvars.duration = duration;\n\t\tvars.stagger = vars.stagger || stagger;\n\t\tvars.onComplete = onCompleteAll;\n\t\tvars.onCompleteParams = onCompleteAllParams;\n\t\tvars.parent = this;\n\t\tnew Tween(targets, vars, _parsePosition(this, position));\n\t\treturn this;\n\t}\n\n\tstaggerFrom(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n\t\tvars.runBackwards = 1;\n\t\tvars.immediateRender = _isNotFalse(vars.immediateRender);\n\t\treturn this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams);\n\t}\n\n\tstaggerFromTo(targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams) {\n\t\ttoVars.startAt = fromVars;\n\t\ttoVars.immediateRender = _isNotFalse(toVars.immediateRender);\n\t\treturn this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams);\n\t}\n\n\trender(totalTime, suppressEvents, force) {\n\t\tlet prevTime = this._time,\n\t\t\ttDur = this._dirty ? this.totalDuration() : this._tDur,\n\t\t\tdur = this._dur,\n\t\t\ttTime = (totalTime > tDur - _tinyNum && totalTime >= 0 && this !== _globalTimeline) ? tDur : (totalTime < _tinyNum) ? 0 : totalTime,\n\t\t\tcrossingStart = (this._zTime < 0) !== (totalTime < 0) && (this._initted || !dur),\n\t\t\ttime, child, next, iteration, cycleDuration, prevPaused, pauseTween, timeScale, prevStart, prevIteration, yoyo, isYoyo;\n\t\tif (tTime !== this._tTime || force || crossingStart) {\n\t\t\tif (crossingStart) {\n\t\t\t\tif (!dur) {\n\t\t\t\t\tprevTime = this._zTime;\n\t\t\t\t}\n\t\t\t\tif (totalTime || !suppressEvents) { //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\t\t\t\t\tthis._zTime = totalTime;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttime = tTime;\n\t\t\tprevStart = this._start;\n\t\t\ttimeScale = this._ts;\n\t\t\tprevPaused = (timeScale === 0);\n\t\t\tif (prevTime !== this._time && dur) { //if totalDuration() finds a child with a negative startTime and smoothChildTiming is true, things get shifted around internally so we need to adjust the time accordingly. For example, if a tween starts at -30 we must shift EVERYTHING forward 30 seconds and move this timeline's startTime backward by 30 seconds so that things align with the playhead (no jump).\n\t\t\t\ttime += this._time - prevTime;\n\t\t\t}\n\t\t\tif (this._repeat) { //adjust the time for repeats and yoyos\n\t\t\t\tyoyo = this._yoyo;\n\t\t\t\tcycleDuration = dur + this._rDelay;\n\t\t\t\ttime = _round(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\t\t\t\tif (time > dur || tDur === tTime) {\n\t\t\t\t\ttime = dur;\n\t\t\t\t}\n\t\t\t\titeration = ~~(tTime / cycleDuration);\n\t\t\t\tif (iteration && iteration === tTime / cycleDuration) {\n\t\t\t\t\ttime = dur;\n\t\t\t\t\titeration--;\n\t\t\t\t}\n\t\t\t\tprevIteration = ~~(this._tTime / cycleDuration);\n\t\t\t\tif (prevIteration && prevIteration === this._tTime / cycleDuration) {\n\t\t\t\t\tprevIteration--;\n\t\t\t\t}\n\t\t\t\tif (yoyo && (iteration & 1)) {\n\t\t\t\t\ttime = dur - time;\n\t\t\t\t\tisYoyo = 1;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tmake sure children at the end/beginning of the timeline are rendered properly. If, for example,\n\t\t\t\ta 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which\n\t\t\t\twould get translated to 2.8 seconds if the timeline yoyos or 0.2 seconds if it just repeats), there\n\t\t\t\tcould be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So\n\t\t\t\twe need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must\n\t\t\t\tensure that zero-duration tweens at the very beginning or end of the Timeline work.\n\t\t\t\t*/\n\t\t\t\tif (iteration !== prevIteration && !this._lock) {\n\t\t\t\t\tlet rewinding = (yoyo && (prevIteration & 1)),\n\t\t\t\t\t\tdoesWrap = (rewinding === (yoyo && (iteration & 1)));\n\t\t\t\t\tif (iteration < prevIteration) {\n\t\t\t\t\t\trewinding = !rewinding;\n\t\t\t\t\t}\n\t\t\t\t\tprevTime = rewinding ? 0 : dur;\n\t\t\t\t\tthis._lock = 1;\n\t\t\t\t\tthis.render(prevTime, suppressEvents, !dur)._lock = 0;\n\t\t\t\t\tif (!suppressEvents && this.parent) {\n\t\t\t\t\t\t_callback(this, \"onRepeat\");\n\t\t\t\t\t}\n\t\t\t\t\tif (prevTime !== this._time || prevPaused !== !this._ts) {\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t\tif (doesWrap) {\n\t\t\t\t\t\tthis._lock = 2;\n\t\t\t\t\t\tprevTime = rewinding ? dur + 0.0001 : -0.0001;\n\t\t\t\t\t\tthis.render(prevTime, true);\n\t\t\t\t\t}\n\t\t\t\t\tthis._lock = 0;\n\t\t\t\t\tif (!this._ts && !prevPaused) {\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t\t//in order for yoyoEase to work properly when there's a stagger, we must swap out the ease in each sub-tween.\n\t\t\t\t\t//_propagateYoyoEase(this, isYoyo);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this._hasPause && !this._forcing && this._lock < 2) {\n\t\t\t\tpauseTween = _findNextPauseTween(this, _round(prevTime), _round(time));\n\t\t\t\tif (pauseTween) {\n\t\t\t\t\ttTime -= time - (time = pauseTween._start);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis._tTime = tTime;\n\t\t\tthis._time = time;\n\t\t\tthis._act = !timeScale; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\n\t\t\tif (!this._initted) {\n\t\t\t\tthis._onUpdate = this.vars.onUpdate;\n\t\t\t\tthis._initted = 1;\n\t\t\t}\n\t\t\tif (!prevTime && time && !suppressEvents) {\n\t\t\t\t_callback(this, \"onStart\");\n\t\t\t}\n\t\t\tif (time >= prevTime && totalTime >= 0) {\n\t\t\t\tchild = this._first;\n\t\t\t\twhile (child) {\n\t\t\t\t\tnext = child._next;\n\t\t\t\t\tif ((child._act || time >= child._start) && child._ts && pauseTween !== child) {\n\t\t\t\t\t\tif (child.parent !== this) { // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n\t\t\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchild.render(child._ts > 0 ? (time - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (time - child._start) * child._ts, suppressEvents, force);\n\t\t\t\t\t\tif (time !== this._time || (!this._ts && !prevPaused)) { //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n\t\t\t\t\t\t\tpauseTween = 0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tchild = next;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tchild = this._last;\n\t\t\t\tlet adjustedTime = totalTime < 0 ? totalTime : time; //when the playhead goes backward beyond the start of this timeline, we must pass that information down to the child animations so that zero-duration tweens know whether to render their starting or ending values.\n\t\t\t\twhile (child) {\n\t\t\t\t\tnext = child._prev;\n\t\t\t\t\tif ((child._act || adjustedTime <= child._end) && child._ts && pauseTween !== child) {\n\t\t\t\t\t\tif (child.parent !== this) { // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n\t\t\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchild.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force);\n\t\t\t\t\t\tif (time !== this._time || (!this._ts && !prevPaused)) { //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n\t\t\t\t\t\t\tpauseTween = 0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tchild = next;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pauseTween && !suppressEvents) {\n\t\t\t\tthis.pause();\n\t\t\t\tpauseTween.render(time >= prevTime ? 0 : -_tinyNum)._zTime = time >= prevTime ? 1 : -1;\n\t\t\t\tif (this._ts) { //the callback resumed playback! So since we may have held back the playhead due to where the pause is positioned, go ahead and jump to where it's SUPPOSED to be (if no pause happened).\n\t\t\t\t\tthis._start = prevStart; //if the pause was at an earlier time and the user resumed in the callback, it could reposition the timeline (changing its startTime), throwing things off slightly, so we make sure the _start doesn't shift.\n\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this._onUpdate && !suppressEvents) {\n\t\t\t\t_callback(this, \"onUpdate\", true);\n\t\t\t}\n\t\t\tif (tTime === tDur || (!tTime && this._ts < 0)) if (prevStart === this._start || Math.abs(timeScale) !== Math.abs(this._ts)) if (!time || tDur >= this.totalDuration()) {\n\t\t\t\t(totalTime || !dur) && _removeFromParent(this, 1);\n\t\t\t\tif (!suppressEvents && !(totalTime < 0 && !prevTime)) {\n\t\t\t\t\t_callback(this, (tTime === tDur ? \"onComplete\" : \"onReverseComplete\"), true);\n\t\t\t\t\tthis._prom && this._prom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\tadd(child, position) {\n\t\tif (!_isNumber(position)) {\n\t\t\tposition = _parsePosition(this, position);\n\t\t}\n\t\tif (!(child instanceof Animation)) {\n\t\t\tif (_isArray(child)) {\n\t\t\t\tchild.forEach(obj => this.add(obj, position));\n\t\t\t\treturn _uncache(this);\n\t\t\t}\n\t\t\tif (_isString(child)) {\n\t\t\t\treturn this.addLabel(child, position);\n\t\t\t}\n\t\t\tif (_isFunction(child)) {\n\t\t\t\tchild = Tween.delayedCall(0, child);\n\t\t\t} else {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t\treturn this !== child ? _addToTimeline(this, child, position) : this; //don't allow a timeline to be added to itself as a child!\n\t}\n\n\t// buildFrom(position, absolute) {\n\t// \tthis._build = (position === \">>\" || position === \"auto\") ? position : (position === \"<<\") ? 0 : _parsePosition(this, position, !absolute);\n\t// \treturn this;\n\t// }\n\n\tgetChildren(nested = true, tweens = true, timelines = true, ignoreBeforeTime = -_bigNum) {\n\t\tlet a = [],\n\t\t\tchild = this._first;\n\t\twhile (child) {\n\t\t\tif (child._start >= ignoreBeforeTime) {\n\t\t\t\tif (child instanceof Tween) {\n\t\t\t\t\tif (tweens) {\n\t\t\t\t\t\ta.push(child);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (timelines) {\n\t\t\t\t\t\ta.push(child);\n\t\t\t\t\t}\n\t\t\t\t\tif (nested) {\n\t\t\t\t\t\ta.push(...child.getChildren(true, tweens, timelines));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t\treturn a;\n\t}\n\n\tgetById(id) {\n\t\tlet animations = this.getChildren(1, 1, 1),\n\t\t\ti = animations.length;\n\t\twhile(i--) {\n\t\t\tif (animations[i].vars.id === id) {\n\t\t\t\treturn animations[i];\n\t\t\t}\n\t\t}\n\t}\n\n\tremove(child) {\n\t\tif (_isString(child)) {\n\t\t\treturn this.removeLabel(child);\n\t\t}\n\t\tif (_isFunction(child)) {\n\t\t\treturn this.killTweensOf(child);\n\t\t}\n\t\t_removeLinkedListItem(this, child);\n\t\tif (child === this._recent) {\n\t\t\tthis._recent = this._last;\n\t\t}\n\t\treturn _uncache(this);\n\t}\n\n\ttotalTime(totalTime, suppressEvents) {\n\t\tif (!arguments.length) {\n\t\t\treturn this._tTime;\n\t\t}\n\t\tthis._forcing = 1;\n\t\tif (!this.parent && !this._dp && this._ts) { //special case for the global timeline (or any other that has no parent or detached parent).\n\t\t\tthis._start = _ticker.time - (this._ts > 0 ? totalTime / this._ts : (this.totalDuration() - totalTime) / -this._ts);\n\t\t}\n\t\tsuper.totalTime(totalTime, suppressEvents);\n\t\tthis._forcing = 0;\n\t\treturn this;\n\t}\n\n\taddLabel(label, position) {\n\t\tthis.labels[label] = _parsePosition(this, position);\n\t\treturn this;\n\t}\n\n\tremoveLabel(label) {\n\t\tdelete this.labels[label];\n\t\treturn this;\n\t}\n\n\taddPause(position, callback, params) {\n\t\tlet t = Tween.delayedCall(0, callback || _emptyFunc, params);\n\t\tt.data = \"isPause\";\n\t\tthis._hasPause = 1;\n\t\treturn _addToTimeline(this, t, _parsePosition(this, position));\n\t}\n\n\tremovePause(position) {\n\t\tlet child = this._first;\n\t\tposition = _parsePosition(this, position);\n\t\twhile (child) {\n\t\t\tif (child._start === position && child.data === \"isPause\") {\n\t\t\t\t_removeFromParent(child);\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t}\n\n\tkillTweensOf(targets, props, onlyActive) {\n\t\tlet tweens = this.getTweensOf(targets, onlyActive),\n\t\t\ti = tweens.length;\n\t\twhile (i--) {\n\t\t\t(_overwritingTween !== tweens[i]) && tweens[i].kill(targets, props);\n\t\t}\n\t\treturn this;\n\t}\n\n\tgetTweensOf(targets, onlyActive) {\n\t\tlet a = [],\n\t\t\tparsedTargets = toArray(targets),\n\t\t\tchild = this._first,\n\t\t\tchildren;\n\t\twhile (child) {\n\t\t\tif (child instanceof Tween) {\n\t\t\t\tif (_arrayContainsAny(child._targets, parsedTargets) && (!onlyActive || child.isActive(onlyActive === \"started\"))) {\n\t\t\t\t\ta.push(child);\n\t\t\t\t}\n\t\t\t} else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) {\n\t\t\t\ta.push(...children);\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t\treturn a;\n\t}\n\n\ttweenTo(position, vars) {\n\t\tlet tl = this,\n\t\t\tendTime = _parsePosition(tl, position),\n\t\t\tstartAt = (vars && vars.startAt),\n\t\t\ttween = Tween.to(tl, _setDefaults({\n\t\t\t\tease:\"none\",\n\t\t\t\tlazy:false,\n\t\t\t\ttime:endTime,\n\t\t\t\tduration: (Math.abs(endTime - ((startAt && \"time\" in startAt) ? startAt.time : tl._time)) / tl.timeScale()) || _tinyNum,\n\t\t\t\tonStart: () => {\n\t\t\t\t\ttl.pause();\n\t\t\t\t\tlet duration = Math.abs(endTime - tl._time) / tl.timeScale();\n\t\t\t\t\tif (tween._dur !== duration) {\n\t\t\t\t\t\ttween._dur = duration;\n\t\t\t\t\t\ttween.render(tween._time, true, true);\n\t\t\t\t\t}\n\t\t\t\t\tif (vars && vars.onStart) { //in case the user had an onStart in the vars - we don't want to overwrite it.\n\t\t\t\t\t\tvars.onStart.apply(tween, vars.onStartParams || []);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, vars));\n\t\treturn tween;\n\t}\n\n\ttweenFromTo(fromPosition, toPosition, vars) {\n\t\treturn this.tweenTo(toPosition, _setDefaults({startAt:{time:_parsePosition(this, fromPosition)}}, vars));\n\t}\n\n\trecent() {\n\t\treturn this._recent;\n\t}\n\n\tnextLabel(afterTime = this._time) {\n\t\treturn _getLabelInDirection(this, _parsePosition(this, afterTime));\n\t}\n\n\tpreviousLabel(beforeTime = this._time) {\n\t\treturn _getLabelInDirection(this, _parsePosition(this, beforeTime), 1);\n\t}\n\n\tcurrentLabel(value) {\n\t\treturn arguments.length ? this.seek(value, true) : this.previousLabel(this._time + _tinyNum);\n\t}\n\n\tshiftChildren(amount, adjustLabels, ignoreBeforeTime = 0) {\n\t\tlet child = this._first,\n\t\t\tlabels = this.labels,\n\t\t\tp;\n\t\twhile (child) {\n\t\t\tif (child._start >= ignoreBeforeTime) {\n\t\t\t\tchild._start += amount;\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t\tif (adjustLabels) {\n\t\t\tfor (p in labels) {\n\t\t\t\tif (labels[p] >= ignoreBeforeTime) {\n\t\t\t\t\tlabels[p] += amount;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _uncache(this);\n\t}\n\n\tinvalidate() {\n\t\tlet child = this._first;\n\t\tthis._lock = 0;\n\t\twhile (child) {\n\t\t\tchild.invalidate();\n\t\t\tchild = child._next;\n\t\t}\n\t\treturn super.invalidate();\n\t}\n\n\tclear(includeLabels = true) {\n\t\tlet child = this._first,\n\t\t\tnext;\n\t\twhile (child) {\n\t\t\tnext = child._next;\n\t\t\tthis.remove(child);\n\t\t\tchild = next;\n\t\t}\n\t\tthis._time = this._tTime = 0;\n\t\tif (includeLabels) {\n\t\t\tthis.labels = {};\n\t\t}\n\t\treturn _uncache(this);\n\t}\n\n\ttotalDuration(value) {\n\t\tlet max = 0,\n\t\t\tself = this,\n\t\t\tchild = self._last,\n\t\t\tprevStart = _bigNum,\n\t\t\trepeat = self._repeat,\n\t\t\trepeatCycles = repeat * self._rDelay || 0,\n\t\t\tisInfinite = (repeat < 0),\n\t\t\tprev, end;\n\t\tif (!arguments.length) {\n\t\t\tif (self._dirty) {\n\t\t\t\twhile (child) {\n\t\t\t\t\tprev = child._prev; //record it here in case the tween changes position in the sequence...\n\t\t\t\t\tif (child._dirty) {\n\t\t\t\t\t\tchild.totalDuration(); //could change the tween._startTime, so make sure the animation's cache is clean before analyzing it.\n\t\t\t\t\t}\n\t\t\t\t\tif (child._start > prevStart && self._sort && child._ts && !self._lock) { //in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence\n\t\t\t\t\t\tself._lock = 1; //prevent endless recursive calls - there are methods that get triggered that check duration/totalDuration when we add().\n\t\t\t\t\t\t_addToTimeline(self, child, child._start - child._delay);\n\t\t\t\t\t\tself._lock = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevStart = child._start;\n\t\t\t\t\t}\n\t\t\t\t\tif (child._start < 0 && child._ts) { //children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.\n\t\t\t\t\t\tmax -= child._start;\n\t\t\t\t\t\tif ((!self.parent && !self._dp) || (self.parent && self.parent.smoothChildTiming)) {\n\t\t\t\t\t\t\tself._start += child._start / self._ts;\n\t\t\t\t\t\t\tself._time -= child._start;\n\t\t\t\t\t\t\tself._tTime -= child._start;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tself.shiftChildren(-child._start, false, -_bigNum);\n\t\t\t\t\t\tprevStart = 0;\n\t\t\t\t\t}\n\t\t\t\t\tend = child._end = child._start + child._tDur / Math.abs(child._ts || child._pauseTS);\n\t\t\t\t\tif (end > max && child._ts) {\n\t\t\t\t\t\tmax = _round(end);\n\t\t\t\t\t}\n\t\t\t\t\tchild = prev;\n\t\t\t\t}\n\t\t\t\tself._dur = (self === _globalTimeline && self._time > max) ? self._time : Math.min(_bigNum, max);\n\t\t\t\tself._tDur = isInfinite && (self._dur || repeatCycles) ? 1e20 : Math.min(_bigNum, max * (repeat + 1) + repeatCycles);\n\t\t\t\tself._end = self._start + ((self._tDur / Math.abs(self._ts || self._pauseTS)) || 0);\n\t\t\t\tself._dirty = 0;\n\t\t\t}\n\t\t\treturn self._tDur;\n\t\t}\n\t\treturn isInfinite ? self : self.timeScale(self.totalDuration() / value);\n\t}\n\n\tstatic updateRoot(time) {\n\t\tif (_globalTimeline._ts) {\n\t\t\t_lazySafeRender(_globalTimeline, _parentToChildTotalTime(time, _globalTimeline));\n\t\t}\n\t\tif (_ticker.frame >= _nextGCFrame) {\n\t\t\t_nextGCFrame += _config.autoSleep || 120;\n\t\t\tlet child = _globalTimeline._first;\n\t\t\tif (!child || !child._ts) if (_config.autoSleep && _ticker._listeners.length < 2) {\n\t\t\t\twhile (child && !child._ts) {\n\t\t\t\t\tchild = child._next;\n\t\t\t\t}\n\t\t\t\tif (!child) {\n\t\t\t\t\t_ticker.sleep();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}\n\n_setDefaults(Timeline.prototype, {_lock:0, _hasPause:0, _forcing:0});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nlet _addComplexStringPropTween = function(target, prop, start, end, setter, stringFilter, funcParam) { //note: we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\t\tlet pt = new PropTween(this._pt, target, prop, 0, 1, _renderComplexString, null, setter),\n\t\t\tindex = 0,\n\t\t\tmatchIndex = 0,\n\t\t\tresult,\tstartNums, color, endNum, chunk, startNum, hasRandom, a;\n\t\tpt.b = start;\n\t\tpt.e = end;\n\t\tstart += \"\"; //ensure values are strings\n\t\tend += \"\";\n\t\tif ((hasRandom = ~end.indexOf(\"random(\"))) {\n\t\t\tend = _replaceRandom(end);\n\t\t}\n\t\tif (stringFilter) {\n\t\t\ta = [start, end];\n\t\t\tstringFilter(a, target, prop); //pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n\t\t\tstart = a[0];\n\t\t\tend = a[1];\n\t\t}\n\t\tstartNums = start.match(_complexStringNumExp) || [];\n\t\twhile ((result = _complexStringNumExp.exec(end))) {\n\t\t\tendNum = result[0];\n\t\t\tchunk = end.substring(index, result.index);\n\t\t\tif (color) {\n\t\t\t\tcolor = (color + 1) % 5;\n\t\t\t} else if (chunk.substr(-5) === \"rgba(\") {\n\t\t\t\tcolor = 1;\n\t\t\t}\n\t\t\tif (endNum !== startNums[matchIndex++]) {\n\t\t\t\tstartNum = parseFloat(startNums[matchIndex-1]);\n\t\t\t\t//these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\t\t\t\tpt._pt = {\n\t\t\t\t\t_next:pt._pt,\n\t\t\t\t\tp:(chunk || matchIndex === 1) ? chunk : \",\", //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n\t\t\t\t\ts:startNum,\n\t\t\t\t\tc:endNum.charAt(1) === \"=\" ? parseFloat(endNum.substr(2)) * (endNum.charAt(0) === \"-\" ? -1 : 1) : parseFloat(endNum) - startNum,\n\t\t\t\t\tm:(color && color < 4) ? Math.round : 0\n\t\t\t\t};\n\t\t\t\tindex = _complexStringNumExp.lastIndex;\n\t\t\t}\n\t\t}\n\t\tpt.c = (index < end.length) ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n\t\tpt.fp = funcParam;\n\t\tif (_relExp.test(end) || hasRandom) {\n\t\t\tpt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n\t\t}\n\t\tthis._pt = pt; //start the linked list with this new PropTween. Remember, we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\t\treturn pt;\n\t},\n\t_addPropTween = function(target, prop, start, end, index, targets, modifier, stringFilter, funcParam) {\n\t\tif (_isFunction(end)) {\n\t\t\tend = end(index || 0, target, targets);\n\t\t}\n\t\tlet currentValue = target[prop],\n\t\t\tparsedStart = (start !== \"get\") ? start : !_isFunction(currentValue) ? currentValue : (funcParam ? target[(prop.indexOf(\"set\") || !_isFunction(target[\"get\" + prop.substr(3)])) ? prop : \"get\" + prop.substr(3)](funcParam) : target[prop]()),\n\t\t\tsetter = !_isFunction(currentValue) ? _setterPlain : funcParam ? _setterFuncWithParam : _setterFunc,\n\t\t\tpt;\n\t\tif (_isString(end)) {\n\t\t\tif (~end.indexOf(\"random(\")) {\n\t\t\t\tend = _replaceRandom(end);\n\t\t\t}\n\t\t\tif (end.charAt(1) === \"=\") {\n\t\t\t\tend = parseFloat(parsedStart) + parseFloat(end.substr(2)) * (end.charAt(0) === \"-\" ? -1 : 1) + (getUnit(parsedStart) || 0);\n\t\t\t}\n\t\t}\n\t\tif (parsedStart !== end) {\n\t\t\tif (!isNaN(parsedStart + end)) {\n\t\t\t\tpt = new PropTween(this._pt, target, prop, +parsedStart || 0, end - (parsedStart || 0), typeof(currentValue) === \"boolean\" ? _renderBoolean : _renderPlain, 0, setter);\n\t\t\t\tif (funcParam) {\n\t\t\t\t\tpt.fp = funcParam;\n\t\t\t\t}\n\t\t\t\tif (modifier) {\n\t\t\t\t\tpt.modifier(modifier, this, target);\n\t\t\t\t}\n\t\t\t\treturn (this._pt = pt);\n\t\t\t}\n\t\t\t!currentValue && !(prop in target) && _missingPlugin(prop, end);\n\t\t\treturn _addComplexStringPropTween.call(this, target, prop, parsedStart, end, setter, stringFilter || _config.stringFilter, funcParam);\n\t\t}\n\t},\n\t//creates a copy of the vars object and processes any function-based values (putting the resulting values directly into the copy) as well as strings with \"random()\" in them. It does NOT process relative values.\n\t_processVars = (vars, index, target, targets, tween) => {\n\t\tif (_isFunction(vars)) {\n\t\t\tvars = _parseFuncOrString(vars, tween, index, target, targets);\n\t\t}\n\t\tif (!_isObject(vars) || (vars.style && vars.nodeType) || _isArray(vars)) {\n\t\t\treturn _isString(vars) ? _parseFuncOrString(vars, tween, index, target, targets) : vars;\n\t\t}\n\t\tlet copy = {},\n\t\t\tp;\n\t\tfor (p in vars) {\n\t\t\tcopy[p] = _parseFuncOrString(vars[p], tween, index, target, targets);\n\t\t}\n\t\treturn copy;\n\t},\n\t_checkPlugin = (property, vars, tween, index, target, targets) => {\n\t\tlet plugin, pt, ptLookup, i;\n\t\tif (_plugins[property] && (plugin = new _plugins[property]()).init(target, plugin.rawVars ? vars[property] : _processVars(vars[property], index, target, targets, tween), tween, index, targets) !== false) {\n\t\t\ttween._pt = pt = new PropTween(tween._pt, target, property, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\t\t\tif (tween !== _quickTween) {\n\t\t\t\tptLookup = tween._ptLookup[tween._targets.indexOf(target)]; //note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.\n\t\t\t\ti = plugin._props.length;\n\t\t\t\twhile (i--) {\n\t\t\t\t\tptLookup[plugin._props[i]] = pt;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn plugin;\n\t},\n\t_overwritingTween, //store a reference temporarily so we can avoid overwriting itself.\n\t_initTween = (tween, time) => {\n\t\tlet vars = tween.vars,\n\t\t\t{ ease, startAt, immediateRender, lazy, onUpdate, onUpdateParams, callbackScope, runBackwards, yoyoEase, keyframes, autoRevert } = vars,\n\t\t\tdur = tween._dur,\n\t\t\tprevStartAt = tween._startAt,\n\t\t\ttargets = tween._targets,\n\t\t\tparent = tween.parent,\n\t\t\t//when a stagger (or function-based duration/delay) is on a Tween instance, we create a nested timeline which means that the \"targets\" of that tween don't reflect the parent. This function allows us to discern when it's a nested tween and in that case, return the full targets array so that function-based values get calculated properly.\n\t\t\tfullTargets = (parent && parent.data === \"nested\") ? parent.parent._targets : targets,\n\t\t\tautoOverwrite = (tween._overwrite === \"auto\"),\n\t\t\ttl = tween.timeline,\n\t\t\tcleanVars, i, p, pt, target, hasPriority, gsData, harness, plugin, ptLookup, index, harnessVars;\n\t\tif (tl && (!keyframes || !ease)) {\n\t\t\tease = \"none\";\n\t\t}\n\t\ttween._ease = _parseEase(ease, _defaults.ease);\n\t\ttween._yEase = yoyoEase ? _invertEase(_parseEase(yoyoEase === true ? ease : yoyoEase, _defaults.ease)) : 0;\n\t\tif (yoyoEase && tween._yoyo && !tween._repeat) { //there must have been a parent timeline with yoyo:true that is currently in its yoyo phase, so flip the eases.\n\t\t\tyoyoEase = tween._yEase;\n\t\t\ttween._yEase = tween._ease;\n\t\t\ttween._ease = yoyoEase;\n\t\t}\n\t\tif (!tl) { //if there's an internal timeline, skip all the parsing because we passed that task down the chain.\n\t\t\tif (prevStartAt) {\n\t\t\t\tprevStartAt.render(-1, true).kill();\n\t\t\t}\n\t\t\tif (startAt) {\n\t\t\t\t_removeFromParent(tween._startAt = Tween.set(targets, _setDefaults({data: \"isStart\", overwrite: false, parent: parent, immediateRender: true, lazy: _isNotFalse(lazy), startAt: null, delay: 0, onUpdate: onUpdate, onUpdateParams: onUpdateParams, callbackScope: callbackScope, stagger: 0}, startAt))); //copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, from, to).fromTo(e, to, from);\n\t\t\t\tif (immediateRender) {\n\t\t\t\t\tif (time > 0) {\n\t\t\t\t\t\t!autoRevert && (tween._startAt = 0); //tweens that render immediately (like most from() and fromTo() tweens) shouldn't revert when their parent timeline's playhead goes backward past the startTime because the initial render could have happened anytime and it shouldn't be directly correlated to this tween's startTime. Imagine setting up a complex animation where the beginning states of various objects are rendered immediately but the tween doesn't happen for quite some time - if we revert to the starting values as soon as the playhead goes backward past the tween's startTime, it will throw things off visually. Reversion should only happen in Timeline instances where immediateRender was false or when autoRevert is explicitly set to true.\n\t\t\t\t\t} else if (dur) {\n\t\t\t\t\t\treturn; //we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a Timeline, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (runBackwards && dur) {\n\t\t\t\t//from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)\n\t\t\t\tif (prevStartAt) {\n\t\t\t\t\t!autoRevert && (tween._startAt = 0);\n\t\t\t\t} else {\n\t\t\t\t\tif (time) { //in rare cases (like if a from() tween runs and then is invalidate()-ed), immediateRender could be true but the initial forced-render gets skipped, so there's no need to force the render in this context when the _time is greater than 0\n\t\t\t\t\t\timmediateRender = false;\n\t\t\t\t\t}\n\t\t\t\t\t_removeFromParent(tween._startAt = Tween.set(targets, _merge(_copyExcluding(vars, _reservedProps), {\n\t\t\t\t\t\toverwrite: false,\n\t\t\t\t\t\tdata: \"isFromStart\", //we tag the tween with as \"isFromStart\" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a \"from()\" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:\"height\", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.\n\t\t\t\t\t\tlazy: (immediateRender && _isNotFalse(lazy)),\n\t\t\t\t\t\timmediateRender: immediateRender, //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)\n\t\t\t\t\t\tstagger: 0,\n\t\t\t\t\t\tparent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(\".class\", {y:gsap.utils.wrap([-100,100])})\n\t\t\t\t\t})));\n\t\t\t\t\tif (!immediateRender) {\n\t\t\t\t\t\t_initTween(tween._startAt, _tinyNum); //ensures that the initial values are recorded\n\t\t\t\t\t} else if (!time) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcleanVars = _copyExcluding(vars, _reservedProps);\n\t\t\ttween._pt = 0;\n\t\t\tharness = targets[0] ? _getCache(targets[0]).harness : 0;\n\t\t\tharnessVars = harness && vars[harness.prop]; //someone may need to specify CSS-specific values AND non-CSS values, like if the element has an \"x\" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.\n\t\t\tlazy = (dur && _isNotFalse(lazy)) || (lazy && !dur);\n\t\t\tfor (i = 0; i < targets.length; i++) {\n\t\t\t\ttarget = targets[i];\n\t\t\t\tgsData = target._gsap || _harness(targets)[i]._gsap;\n\t\t\t\ttween._ptLookup[i] = ptLookup = {};\n\t\t\t\tif (_lazyLookup[gsData.id]) {\n\t\t\t\t\t_lazyRender(); //if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)\n\t\t\t\t}\n\t\t\t\tindex = fullTargets === targets ? i : fullTargets.indexOf(target);\n\t\t\t\tif (harness && (plugin = new harness()).init(target, harnessVars || cleanVars, tween, index, fullTargets) !== false) {\n\t\t\t\t\ttween._pt = pt = new PropTween(tween._pt, target, plugin.name, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\t\t\t\t\tplugin._props.forEach(name => {ptLookup[name] = pt;});\n\t\t\t\t\tif (plugin.priority) {\n\t\t\t\t\t\thasPriority = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!harness || harnessVars) {\n\t\t\t\t\tfor (p in cleanVars) {\n\t\t\t\t\t\tif (_plugins[p] && (plugin = _checkPlugin(p, cleanVars, tween, index, target, fullTargets))) {\n\t\t\t\t\t\t\tif (plugin.priority) {\n\t\t\t\t\t\t\t\thasPriority = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tptLookup[p] = pt = _addPropTween.call(tween, target, p, \"get\", cleanVars[p], index, fullTargets, 0, vars.stringFilter);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (tween._op && tween._op[i]) {\n\t\t\t\t\ttween.kill(target, tween._op[i]);\n\t\t\t\t}\n\t\t\t\tif (autoOverwrite) {\n\t\t\t\t\t_overwritingTween = tween;\n\t\t\t\t\t_globalTimeline.killTweensOf(target, ptLookup, \"started\"); //Also make sure the overwriting doesn't overwrite THIS tween!!!\n\t\t\t\t\t_overwritingTween = 0;\n\t\t\t\t}\n\t\t\t\tif (tween._pt && lazy) {\n\t\t\t\t\t_lazyLookup[gsData.id] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (hasPriority) {\n\t\t\t\t_sortPropTweensByPriority(tween);\n\t\t\t}\n\t\t\tif (tween._onInit) { //plugins like RoundProps must wait until ALL of the PropTweens are instantiated. In the plugin's init() function, it sets the _onInit on the tween instance. May not be pretty/intuitive, but it's fast and keeps file size down.\n\t\t\t\ttween._onInit(tween);\n\t\t\t}\n\t\t}\n\t\ttween._from = !tl && !!vars.runBackwards; //nested timelines should never run backwards - the backwards-ness is in the child tweens.\n\t\ttween._onUpdate = onUpdate;\n\t\ttween._initted = 1;\n\t},\n\t_addAliasesToVars = (targets, vars) => {\n\t\tlet harness = targets[0] ? _getCache(targets[0]).harness : 0,\n\t\t\tpropertyAliases = (harness && harness.aliases),\n\t\t\tcopy, p, i, aliases;\n\t\tif (!propertyAliases) {\n\t\t\treturn vars;\n\t\t}\n\t\tcopy = _merge({}, vars);\n\t\tfor (p in propertyAliases) {\n\t\t\tif (p in copy) {\n\t\t\t\taliases = propertyAliases[p].split(\",\");\n\t\t\t\ti = aliases.length;\n\t\t\t\twhile(i--) {\n\t\t\t\t\tcopy[aliases[i]] = copy[p];\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn copy;\n\t},\n\t_parseFuncOrString = (value, tween, i, target, targets) => (_isFunction(value) ? value.call(tween, i, target, targets) : (_isString(value) && ~value.indexOf(\"random(\")) ? _replaceRandom(value) : value),\n\t_staggerTweenProps = _callbackNames + \",repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase\",\n\t_staggerPropsToSkip = (_staggerTweenProps + \",id,stagger,delay,duration,paused\").split(\",\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * TWEEN\n * --------------------------------------------------------------------------------------\n */\n\nexport class Tween extends Animation {\n\n\tconstructor(targets, vars, time) {\n\t\tif (typeof(vars) === \"number\") {\n\t\t\ttime.duration = vars;\n\t\t\tvars = time;\n\t\t\ttime = null;\n\t\t}\n\t\tsuper(_inheritDefaults(vars), time);\n\t\tlet { duration, delay, immediateRender, stagger, overwrite, keyframes, defaults } = this.vars,\n\t\t\tparsedTargets = _isArray(targets) && _isNumber(targets[0]) ? [targets] : toArray(targets),\n\t\t\ttl, i, copy, l, p, curTarget, staggerFunc, staggerVarsToMerge;\n\t\tthis._targets = parsedTargets.length ? _harness(parsedTargets) : _warn(\"GSAP target \" + targets + \" not found. https://greensock.com\", !_config.nullTargetWarn) || [];\n\t\tthis._ptLookup = []; //PropTween lookup. An array containing an object for each target, having keys for each tweening property\n\t\tthis._overwrite = overwrite;\n\t\tif (keyframes || stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {\n\t\t\tvars = this.vars;\n\t\t\ttl = this.timeline = new Timeline({data:\"nested\", defaults:defaults || {}});\n\t\t\ttl.kill();\n\t\t\ttl.parent = this;\n\t\t\tif (keyframes) {\n\t\t\t\t_setDefaults(tl.vars.defaults, {ease:\"none\"});\n\t\t\t\tkeyframes.forEach(frame => tl.to(parsedTargets, frame, \">\"));\n\n\t\t\t} else {\n\t\t\t\tl = parsedTargets.length;\n\t\t\t\tstaggerFunc = stagger ? distribute(stagger) : _emptyFunc;\n\t\t\t\tif (_isObject(stagger)) { //users can pass in callbacks like onStart/onComplete in the stagger object. These should fire with each individual tween.\n\t\t\t\t\tfor (p in stagger) {\n\t\t\t\t\t\tif (~_staggerTweenProps.indexOf(p)) {\n\t\t\t\t\t\t\tif (!staggerVarsToMerge) {\n\t\t\t\t\t\t\t\tstaggerVarsToMerge = {};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstaggerVarsToMerge[p] = stagger[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t\tcopy = {};\n\t\t\t\t\tfor (p in vars) {\n\t\t\t\t\t\tif (_staggerPropsToSkip.indexOf(p) < 0) {\n\t\t\t\t\t\t\tcopy[p] = vars[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcopy.stagger = 0;\n\t\t\t\t\tif (staggerVarsToMerge) {\n\t\t\t\t\t\t_merge(copy, staggerVarsToMerge);\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.yoyoEase && !vars.repeat) { //so that propagation works properly when a ancestor timeline yoyos\n\t\t\t\t\t\tcopy.yoyoEase = vars.yoyoEase;\n\t\t\t\t\t}\n\t\t\t\t\tcurTarget = parsedTargets[i];\n\t\t\t\t\t//don't just copy duration or delay because if they're a string or function, we'd end up in an infinite loop because _isFuncOrString() would evaluate as true in the child tweens, entering this loop, etc. So we parse the value straight from vars and default to 0.\n\t\t\t\t\tcopy.duration = +_parseFuncOrString(duration, this, i, curTarget, parsedTargets);\n\t\t\t\t\tcopy.delay = (+_parseFuncOrString(delay, this, i, curTarget, parsedTargets) || 0) - this._delay;\n\t\t\t\t\tif (!stagger && l === 1 && copy.delay) { // if someone does delay:\"random(1, 5)\", repeat:-1, for example, the delay shouldn't be inside the repeat.\n\t\t\t\t\t\tthis._delay = delay = copy.delay;\n\t\t\t\t\t\tthis._start += delay;\n\t\t\t\t\t\tcopy.delay = 0;\n\t\t\t\t\t}\n\t\t\t\t\ttl.to(curTarget, copy, staggerFunc(i, curTarget, parsedTargets));\n\t\t\t\t}\n\t\t\t\tduration = delay = 0;\n\t\t\t}\n\t\t\tduration || this.duration((duration = tl.duration()));\n\n\t\t} else {\n\t\t\tthis.timeline = 0; //speed optimization, faster lookups (no going up the prototype chain)\n\t\t}\n\n\t\tif (overwrite === true) {\n\t\t\t_overwritingTween = this;\n\t\t\t_globalTimeline.killTweensOf(parsedTargets);\n\t\t\t_overwritingTween = 0;\n\t\t}\n\n\t\tif (immediateRender || (!duration && !keyframes && this._start === this.parent._time && _isNotFalse(immediateRender) && _hasNoPausedAncestors(this) && this.parent.data !== \"nested\")) {\n\t\t\tthis._tTime = -_tinyNum; //forces a render without having to set the render() \"force\" parameter to true because we want to allow lazying by default (using the \"force\" parameter always forces an immediate full render)\n\t\t\tthis.render(Math.max(0, -delay)); //in case delay is negative\n\t\t}\n\t}\n\n\trender(totalTime, suppressEvents, force) {\n\t\tlet prevTime = this._time,\n\t\t\ttDur = this._tDur,\n\t\t\tdur = this._dur,\n\t\t\ttTime = (totalTime > tDur - _tinyNum && totalTime >= 0) ? tDur : (totalTime < _tinyNum) ? 0 : totalTime,\n\t\t\ttime, pt, iteration, cycleDuration, prevIteration, isYoyo, ratio, timeline, yoyoEase;\n\t\tif (!dur) {\n\t\t\t_renderZeroDurationTween(this, totalTime, suppressEvents, force);\n\t\t} else if (tTime !== this._tTime || !totalTime || force || (this._startAt && (this._zTime < 0) !== (totalTime < 0))) { //this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)\n\t\t\ttime = tTime;\n\t\t\ttimeline = this.timeline;\n\t\t\tif (this._repeat) { //adjust the time for repeats and yoyos\n\t\t\t\tcycleDuration = dur + this._rDelay;\n\t\t\t\ttime = _round(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\t\t\t\tif (time > dur) {\n\t\t\t\t\ttime = dur;\n\t\t\t\t}\n\t\t\t\titeration = ~~(tTime / cycleDuration);\n\t\t\t\tif (iteration && iteration === tTime / cycleDuration) {\n\t\t\t\t\ttime = dur;\n\t\t\t\t\titeration--;\n\t\t\t\t}\n\t\t\t\tisYoyo = this._yoyo && (iteration & 1);\n\t\t\t\tif (isYoyo) {\n\t\t\t\t\tyoyoEase = this._yEase;\n\t\t\t\t\ttime = dur - time;\n\t\t\t\t}\n\t\t\t\tprevIteration = ~~(this._tTime / cycleDuration);\n\t\t\t\tif (prevIteration && prevIteration === this._tTime / cycleDuration) {\n\t\t\t\t\tprevIteration--;\n\t\t\t\t}\n\t\t\t\tif (time === prevTime && !force && this._initted) {\n\t\t\t\t\t//could be during the repeatDelay part. No need to render and fire callbacks.\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tif (iteration !== prevIteration) {\n\t\t\t\t\t//timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);\n\t\t\t\t\t//repeatRefresh functionality\n\t\t\t\t\tif (this.vars.repeatRefresh && !this._lock) {\n\t\t\t\t\t\tthis._lock = force = 1; //force, otherwise if lazy is true, the _attemptInitTween() will return and we'll jump out and get caught bouncing on each tick.\n\t\t\t\t\t\tthis.render(cycleDuration * iteration, true).invalidate()._lock = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!this._initted && _attemptInitTween(this, time, force, suppressEvents)) {\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\tthis._tTime = tTime;\n\t\t\tthis._time = time;\n\n\t\t\tif (!this._act && this._ts) {\n\t\t\t\tthis._act = 1; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\t\t\t\tthis._lazy = 0;\n\t\t\t}\n\n\t\t\tthis.ratio = ratio = (yoyoEase || this._ease)(time / dur);\n\t\t\tif (this._from) {\n\t\t\t\tthis.ratio = ratio = 1 - ratio;\n\t\t\t}\n\n\t\t\tif (!prevTime && time && !suppressEvents) {\n\t\t\t\t_callback(this, \"onStart\");\n\t\t\t}\n\n\t\t\tpt = this._pt;\n\t\t\twhile (pt) {\n\t\t\t\tpt.r(ratio, pt.d);\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\n\t\t\t(timeline && timeline.render(totalTime < 0 ? totalTime : !time && isYoyo ? -_tinyNum : timeline._dur * ratio, suppressEvents, force)) || (this._startAt && (this._zTime = totalTime));\n\n\t\t\tif (this._onUpdate && !suppressEvents) {\n\t\t\t\tif (totalTime < 0 && this._startAt) {\n\t\t\t\t\tthis._startAt.render(totalTime, true, force); //note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.\n\t\t\t\t}\n\t\t\t\t_callback(this, \"onUpdate\");\n\t\t\t}\n\n\t\t\tif (this._repeat) if (iteration !== prevIteration && this.vars.onRepeat && !suppressEvents && this.parent) {\n\t\t\t\t_callback(this, \"onRepeat\");\n\t\t\t}\n\t\t\tif ((tTime === tDur || !tTime) && this._tTime === tTime) {\n\t\t\t\tif (totalTime < 0 && this._startAt && !this._onUpdate) {\n\t\t\t\t\tthis._startAt.render(totalTime, true, force);\n\t\t\t\t}\n\t\t\t\t(totalTime || !dur) && (tTime || this._ts < 0) && _removeFromParent(this, 1); // don't remove if we're rendering at exactly a time of 0, as there could be autoRevert values that should get set on the next tick (if the playhead goes backward beyond the startTime, negative totalTime).\n\t\t\t\tif (!suppressEvents && !(totalTime < 0 && !prevTime)) {\n\t\t\t\t\t_callback(this, (tTime === tDur ? \"onComplete\" : \"onReverseComplete\"), true);\n\t\t\t\t\tthis._prom && this._prom();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn this;\n\t}\n\n\ttargets() {\n\t\treturn this._targets;\n\t}\n\n\tinvalidate() {\n\t\tthis._pt = this._op = this._startAt = this._onUpdate = this._act = this._lazy = 0;\n\t\tthis._ptLookup = [];\n\t\tif (this.timeline) {\n\t\t\tthis.timeline.invalidate();\n\t\t}\n\t\treturn super.invalidate();\n\t}\n\n\tkill(targets, vars = \"all\") {\n\t\tif (!targets && (!vars || vars === \"all\")) {\n\t\t\tthis._lazy = 0;\n\t\t\tif (this.parent) {\n\t\t\t\treturn _interrupt(this);\n\t\t\t}\n\t\t}\n\t\tif (this.timeline) {\n\t\t\tthis.timeline.killTweensOf(targets, vars, !!_overwritingTween);\n\t\t\treturn this;\n\t\t}\n\t\tlet parsedTargets = this._targets,\n\t\t\tkillingTargets = targets ? toArray(targets) : parsedTargets,\n\t\t\tpropTweenLookup = this._ptLookup,\n\t\t\tfirstPT = this._pt,\n\t\t\toverwrittenProps, curLookup, curOverwriteProps, props, p, pt, i;\n\t\tif ((!vars || vars === \"all\") && _arraysMatch(parsedTargets, killingTargets)) {\n\t\t\treturn _interrupt(this);\n\t\t}\n\t\toverwrittenProps = this._op = this._op || [];\n\t\tif (vars !== \"all\") { //so people can pass in a comma-delimited list of property names\n\t\t\tif (_isString(vars)) {\n\t\t\t\tp = {};\n\t\t\t\t_forEachName(vars, name => p[name] = 1);\n\t\t\t\tvars = p;\n\t\t\t}\n\t\t\tvars = _addAliasesToVars(parsedTargets, vars);\n\t\t}\n\t\ti = parsedTargets.length;\n\t\twhile (i--) {\n\t\t\tif (~killingTargets.indexOf(parsedTargets[i])) {\n\t\t\t\tcurLookup = propTweenLookup[i];\n\t\t\t\tif (vars === \"all\") {\n\t\t\t\t\toverwrittenProps[i] = vars;\n\t\t\t\t\tprops = curLookup;\n\t\t\t\t\tcurOverwriteProps = {};\n\t\t\t\t} else {\n\t\t\t\t\tcurOverwriteProps = overwrittenProps[i] = overwrittenProps[i] || {};\n\t\t\t\t\tprops = vars;\n\t\t\t\t}\n\t\t\t\tfor (p in props) {\n\t\t\t\t\tpt = curLookup && curLookup[p];\n\t\t\t\t\tif (pt) {\n\t\t\t\t\t\tif (!(\"kill\" in pt.d) || pt.d.kill(p) === true) {\n\t\t\t\t\t\t\t_removeLinkedListItem(this, pt, \"_pt\");\n\t\t\t\t\t\t\tdelete curLookup[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (curOverwriteProps !== \"all\") {\n\t\t\t\t\t\tcurOverwriteProps[p] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this._initted && !this._pt && firstPT) { //if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.\n\t\t\t_interrupt(this);\n\t\t}\n\t\treturn this;\n\t}\n\n\n\tstatic to(targets, vars) {\n\t\treturn new Tween(targets, vars, arguments[2]);\n\t}\n\n\tstatic from(targets, vars) {\n\t\treturn new Tween(targets, _parseVars(arguments, 1));\n\t}\n\n\tstatic delayedCall(delay, callback, params, scope) {\n\t\treturn new Tween(callback, 0, {immediateRender:false, lazy:false, overwrite:false, delay:delay, onComplete:callback, onReverseComplete:callback, onCompleteParams:params, onReverseCompleteParams:params, callbackScope:scope});\n\t}\n\n\tstatic fromTo(targets, fromVars, toVars) {\n\t\treturn new Tween(targets, _parseVars(arguments, 2));\n\t}\n\n\tstatic set(targets, vars) {\n\t\tvars.duration = 0;\n\t\tif (!vars.repeatDelay) {\n\t\t\tvars.repeat = 0;\n\t\t}\n\t\treturn new Tween(targets, vars);\n\t}\n\n\tstatic killTweensOf(targets, props, onlyActive) {\n\t\treturn _globalTimeline.killTweensOf(targets, props, onlyActive);\n\t}\n}\n\n_setDefaults(Tween.prototype, {_targets:[], _lazy:0, _startAt:0, _op:0, _onInit:0});\n\n//add the pertinent timeline methods to Tween instances so that users can chain conveniently and create a timeline automatically. (removed due to concerns that it'd ultimately add to more confusion especially for beginners)\n// _forEachName(\"to,from,fromTo,set,call,add,addLabel,addPause\", name => {\n// \tTween.prototype[name] = function() {\n// \t\tlet tl = new Timeline();\n// \t\treturn _addToTimeline(tl, this)[name].apply(tl, toArray(arguments));\n// \t}\n// });\n\n//for backward compatibility. Leverage the timeline calls.\n_forEachName(\"staggerTo,staggerFrom,staggerFromTo\", name => {\n\tTween[name] = function() {\n\t\tlet tl = new Timeline(),\n\t\t\tparams = toArray(arguments);\n\t\tparams.splice(name === \"staggerFromTo\" ? 5 : 4, 0, 0);\n\t\treturn tl[name].apply(tl, params);\n\t}\n});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * PROPTWEEN\n * --------------------------------------------------------------------------------------\n */\nlet _setterPlain = (target, property, value) => target[property] = value,\n\t_setterFunc = (target, property, value) => target[property](value),\n\t_setterFuncWithParam = (target, property, value, data) => target[property](data.fp, value),\n\t_setterAttribute = (target, property, value) => target.setAttribute(property, value),\n\t_getSetter = (target, property) => _isFunction(target[property]) ? _setterFunc : _isUndefined(target[property]) && target.setAttribute ? _setterAttribute : _setterPlain,\n\t_renderPlain = (ratio, data) => data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 10000) / 10000, data),\n\t_renderBoolean = (ratio, data) => data.set(data.t, data.p, !!(data.s + data.c * ratio), data),\n\t_renderComplexString = function(ratio, data) {\n\t\tlet pt = data._pt,\n\t\t\ts = \"\";\n\t\tif (!ratio && data.b) { //b = beginning string\n\t\t\ts = data.b;\n\t\t} else if (ratio === 1 && data.e) { //e = ending string\n\t\t\ts = data.e;\n\t\t} else {\n\t\t\twhile (pt) {\n\t\t\t\ts = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : (Math.round((pt.s + pt.c * ratio) * 10000) / 10000)) + s; //we use the \"p\" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t\ts += data.c; //we use the \"c\" of the PropTween to store the final chunk of non-numeric text.\n\t\t}\n\t\tdata.set(data.t, data.p, s, data);\n\t},\n\t_renderPropTweens = function(ratio, data) {\n\t\tlet pt = data._pt;\n\t\twhile (pt) {\n\t\t\tpt.r(ratio, pt.d);\n\t\t\tpt = pt._next;\n\t\t}\n\t},\n\t_addPluginModifier = function(modifier, tween, target, property) {\n\t\tlet pt = this._pt,\n\t\t\tnext;\n\t\twhile (pt) {\n\t\t\tnext = pt._next;\n\t\t\tif (pt.p === property) {\n\t\t\t\tpt.modifier(modifier, tween, target);\n\t\t\t}\n\t\t\tpt = next;\n\t\t}\n\t},\n\t_killPropTweensOf = function(property) {\n\t\tlet pt = this._pt,\n\t\t\thasNonDependentRemaining, next;\n\t\twhile (pt) {\n\t\t\tnext = pt._next;\n\t\t\tif ((pt.p === property && !pt.op) || pt.op === property) {\n\t\t\t\t_removeLinkedListItem(this, pt, \"_pt\");\n\t\t\t} else if (!pt.dep) {\n\t\t\t\thasNonDependentRemaining = 1;\n\t\t\t}\n\t\t\tpt = next;\n\t\t}\n\t\treturn !hasNonDependentRemaining;\n\t},\n\t_setterWithModifier = (target, property, value, data) => {\n\t\tdata.mSet(target, property, data.m.call(data.tween, value, data.mt), data);\n\t},\n\t_sortPropTweensByPriority = parent => {\n\t\tlet pt = parent._pt,\n\t\t\tnext, pt2, first, last;\n\t\t//sorts the PropTween linked list in order of priority because some plugins need to do their work after ALL of the PropTweens were created (like RoundPropsPlugin and ModifiersPlugin)\n\t\twhile (pt) {\n\t\t\tnext = pt._next;\n\t\t\tpt2 = first;\n\t\t\twhile (pt2 && pt2.pr > pt.pr) {\n\t\t\t\tpt2 = pt2._next;\n\t\t\t}\n\t\t\tif ((pt._prev = pt2 ? pt2._prev : last)) {\n\t\t\t\tpt._prev._next = pt;\n\t\t\t} else {\n\t\t\t\tfirst = pt;\n\t\t\t}\n\t\t\tif ((pt._next = pt2)) {\n\t\t\t\tpt2._prev = pt;\n\t\t\t} else {\n\t\t\t\tlast = pt;\n\t\t\t}\n\t\t\tpt = next;\n\t\t}\n\t\tparent._pt = first;\n\t};\n\n//PropTween key: t = target, p = prop, r = renderer, d = data, s = start, c = change, op = overwriteProperty (ONLY populated when it's different than p), pr = priority, _next/_prev for the linked list siblings, set = setter, m = modifier, mSet = modifierSetter (the original setter, before a modifier was added)\nexport class PropTween {\n\n\tconstructor(next, target, prop, start, change, renderer, data, setter, priority) {\n\t\tthis.t = target;\n\t\tthis.s = start;\n\t\tthis.c = change;\n\t\tthis.p = prop;\n\t\tthis.r = renderer || _renderPlain;\n\t\tthis.d = data || this;\n\t\tthis.set = setter || _setterPlain;\n\t\tthis.pr = priority || 0;\n\t\tthis._next = next;\n\t\tif (next) {\n\t\t\tnext._prev = this;\n\t\t}\n\t}\n\n\tmodifier(func, tween, target) {\n\t\tthis.mSet = this.mSet || this.set; //in case it was already set (a PropTween can only have one modifier)\n\t\tthis.set = _setterWithModifier;\n\t\tthis.m = func;\n\t\tthis.mt = target; //modifier target\n\t\tthis.tween = tween;\n\t}\n}\n\n\n\n//Initialization tasks\n_forEachName(_callbackNames + \",parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert\", name => {_reservedProps[name] = 1; if (name.substr(0,2) === \"on\") _reservedProps[name + \"Params\"] = 1});\n_globals.TweenMax = _globals.TweenLite = Tween;\n_globals.TimelineLite = _globals.TimelineMax = Timeline;\n_globalTimeline = new Timeline({sortChildren: false, defaults: _defaults, autoRemoveChildren: true, id:\"root\"});\n_config.stringFilter = _colorStringFilter;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * GSAP\n * --------------------------------------------------------------------------------------\n */\nconst _gsap = {\n\tregisterPlugin(...args) {\n\t\targs.forEach(config => _createPlugin(config));\n\t},\n\ttimeline(vars) {\n\t\treturn new Timeline(vars);\n\t},\n\tgetTweensOf(targets, onlyActive) {\n\t\treturn _globalTimeline.getTweensOf(targets, onlyActive);\n\t},\n\tgetProperty(target, property, unit, uncache) {\n\t\tif (_isString(target)) { //in case selector text or an array is passed in\n\t\t\ttarget = toArray(target)[0];\n\t\t}\n\t\tlet getter = _getCache(target || {}).get,\n\t\t\tformat = unit ? _passThrough : _numericIfPossible;\n\t\tif (unit === \"native\") {\n\t\t\tunit = \"\";\n\t\t}\n\t\treturn !target ? target : !property ? (property, unit, uncache) => format(((_plugins[property] && _plugins[property].get) || getter)(target, property, unit, uncache)) : format(((_plugins[property] && _plugins[property].get) || getter)(target, property, unit, uncache));\n\t},\n\tquickSetter(target, property, unit) {\n\t\ttarget = toArray(target);\n\t\tif (target.length > 1) {\n\t\t\tlet setters = target.map(t => gsap.quickSetter(t, property, unit)),\n\t\t\t\tl = setters.length;\n\t\t\treturn value => {\n\t\t\t\tlet i = l;\n\t\t\t\twhile(i--) {\n\t\t\t\t\tsetters[i](value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttarget = target[0] || {};\n\t\tlet Plugin = _plugins[property],\n\t\t\tcache = _getCache(target),\n\t\t\tsetter = Plugin ? value => {\n\t\t\t\tlet p = new Plugin();\n\t\t\t\t_quickTween._pt = 0;\n\t\t\t\tp.init(target, unit ? value + unit : value, _quickTween, 0, [target]);\n\t\t\t\tp.render(1, p);\n\t\t\t\t_quickTween._pt && _renderPropTweens(1, _quickTween);\n\t\t\t} : cache.set(target, property);\n\t\treturn Plugin ? setter : value => setter(target, property, unit ? value + unit : value, cache, 1);\n\t},\n\tisTweening(targets) {\n\t\treturn _globalTimeline.getTweensOf(targets, true).length > 0;\n\t},\n\tdefaults(value) {\n\t\tif (value && value.ease) {\n\t\t\tvalue.ease = _parseEase(value.ease, _defaults.ease);\n\t\t}\n\t\treturn _mergeDeep(_defaults, value || {});\n\t},\n\tconfig(value) {\n\t\treturn _mergeDeep(_config, value || {});\n\t},\n\tregisterEffect({name, effect, plugins, defaults, extendTimeline}) {\n\t\t(plugins || \"\").split(\",\").forEach(pluginName => pluginName && !_plugins[pluginName] && !_globals[pluginName] && _warn(name + \" effect requires \" + pluginName + \" plugin.\"));\n\t\t_effects[name] = (targets, vars) => effect(toArray(targets), _setDefaults(vars || {}, defaults));\n\t\tif (extendTimeline) {\n\t\t\tTimeline.prototype[name] = function(targets, vars, position) {\n\t\t\t\treturn this.add(_effects[name](targets, _isObject(vars) ? vars : (position = vars) && {}), position);\n\t\t\t};\n\t\t}\n\t},\n\tregisterEase(name, ease) {\n\t\t_easeMap[name] = _parseEase(ease);\n\t},\n\tparseEase(ease, defaultEase) {\n\t\treturn arguments.length ? _parseEase(ease, defaultEase) : _easeMap;\n\t},\n\tgetById(id) {\n\t\treturn _globalTimeline.getById(id);\n\t},\n\texportRoot(vars = {}, includeDelayedCalls) {\n\t\tlet tl = new Timeline(vars),\n\t\t\tchild, next;\n\t\ttl.smoothChildTiming = _isNotFalse(vars.smoothChildTiming);\n\t\t_globalTimeline.remove(tl);\n\t\ttl._dp = 0; //otherwise it'll get re-activated when adding children and be re-introduced into _globalTimeline's linked list (then added to itself).\n\t\ttl._time = tl._tTime = _globalTimeline._time;\n\t\tchild = _globalTimeline._first;\n\t\twhile (child) {\n\t\t\tnext = child._next;\n\t\t\tif (includeDelayedCalls || !(!child._dur && child instanceof Tween && child.vars.onComplete === child._targets[0])) {\n\t\t\t\t_addToTimeline(tl, child, child._start - child._delay);\n\t\t\t}\n\t\t\tchild = next;\n\t\t}\n\t\t_addToTimeline(_globalTimeline, tl, 0);\n\t\treturn tl;\n\t},\n\tutils: { wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, mapRange, pipe, unitize, interpolate },\n\tinstall: _install,\n\teffects: _effects,\n\tticker: _ticker,\n\tupdateRoot: Timeline.updateRoot,\n\tplugins: _plugins,\n\tglobalTimeline: _globalTimeline,\n\tcore: {PropTween: PropTween, globals: _addGlobal, Tween: Tween, Timeline: Timeline, Animation: Animation, getCache: _getCache}\n};\n\n_forEachName(\"to,from,fromTo,delayedCall,set,killTweensOf\", name => _gsap[name] = Tween[name]);\n_ticker.add(Timeline.updateRoot);\n_quickTween = _gsap.to({}, {duration:0});\n\n\n\n\n// ---- EXTRA PLUGINS --------------------------------------------------------\n\n\nlet _getPluginPropTween = (plugin, prop) => {\n\t\tlet pt = plugin._pt;\n\t\twhile (pt && pt.p !== prop && pt.op !== prop && pt.fp !== prop) {\n\t\t\tpt = pt._next;\n\t\t}\n\t\treturn pt;\n\t},\n\t_addModifiers = (tween, modifiers) => {\n\t\t\tlet\ttargets = tween._targets,\n\t\t\t\tp, i, pt;\n\t\t\tfor (p in modifiers) {\n\t\t\t\ti = targets.length;\n\t\t\t\twhile (i--) {\n\t\t\t\t\tpt = tween._ptLookup[i][p];\n\t\t\t\t\tif (pt && (pt = pt.d)) {\n\t\t\t\t\t\tif (pt._pt) { // is a plugin\n\t\t\t\t\t\t\tpt = _getPluginPropTween(pt, p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpt && pt.modifier && pt.modifier(modifiers[p], tween, targets[i], p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t},\n\t_buildModifierPlugin = (name, modifier) => {\n\t\treturn {\n\t\t\tname:name,\n\t\t\trawVars:1, //don't pre-process function-based values or \"random()\" strings.\n\t\t\tinit(target, vars, tween) {\n\t\t\t\ttween._onInit = tween => {\n\t\t\t\t\tlet temp, p;\n\t\t\t\t\tif (_isString(vars)) {\n\t\t\t\t\t\ttemp = {};\n\t\t\t\t\t\t_forEachName(vars, name => temp[name] = 1); //if the user passes in a comma-delimited list of property names to roundProps, like \"x,y\", we round to whole numbers.\n\t\t\t\t\t\tvars = temp;\n\t\t\t\t\t}\n\t\t\t\t\tif (modifier) {\n\t\t\t\t\t\ttemp = {};\n\t\t\t\t\t\tfor (p in vars) {\n\t\t\t\t\t\t\ttemp[p] = modifier(vars[p]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvars = temp;\n\t\t\t\t\t}\n\t\t\t\t\t_addModifiers(tween, vars);\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t};\n\n//register core plugins\nexport const gsap = _gsap.registerPlugin({\n\t\tname:\"attr\",\n\t\tinit(target, vars, tween, index, targets) {\n\t\t\tfor (let p in vars) {\n\t\t\t\tthis.add(target, \"setAttribute\", (target.getAttribute(p) || 0) + \"\", vars[p], index, targets, 0, 0, p);\n\t\t\t\t//this.add(target, \"setAttribute\", (target.getAttribute((p in target.dataset ? (p = \"data-\" + p) : p)) || 0) + \"\", vars[p], index, targets, 0, 0, p);\n\t\t\t\tthis._props.push(p);\n\t\t\t}\n\t\t}\n\t}, {\n\t\tname:\"endArray\",\n\t\tinit(target, value) {\n\t\t\tlet i = value.length;\n\t\t\twhile (i--) {\n\t\t\t\tthis.add(target, i, target[i] || 0, value[i]);\n\t\t\t}\n\t\t}\n\t},\n\t_buildModifierPlugin(\"roundProps\", _roundModifier),\n\t_buildModifierPlugin(\"modifiers\"),\n\t_buildModifierPlugin(\"snap\", snap)\n) || _gsap; //to prevent the core plugins from being dropped via aggressive tree shaking, we must include them in the variable declaration in this way.\n\nTween.version = Timeline.version = gsap.version = \"3.0.2\";\n_coreReady = 1;\nif (_windowExists()) {\n\t_wake();\n}\n\nexport const { Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ } = _easeMap;\nexport { Tween as TweenMax, Tween as TweenLite, Timeline as TimelineMax, Timeline as TimelineLite, gsap as default, wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, mapRange, pipe, unitize, interpolate };\n//export some internal methods/orojects for use in CSSPlugin so that we can externalize that file and allow custom builds that exclude it.\nexport { _getProperty, _numExp, _isString, _isUndefined, _renderComplexString, _relExp, _setDefaults, _removeLinkedListItem, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _replaceRandom, _checkPlugin, _plugins, _ticker, _config, _roundModifier, _round, _missingPlugin, _getSetter, _getCache }","/*!\n * CSSPlugin 3.0.2\n * https://greensock.com\n *\n * Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n*/\n/* eslint-disable */\n\nimport {gsap, _getProperty, _numExp, getUnit, _isString, _isUndefined, _renderComplexString, _relExp, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _checkPlugin, _replaceRandom, _plugins, GSCache, PropTween, _config, _ticker, _round, _missingPlugin, _getSetter, _getCache,\n\t_setDefaults, _removeLinkedListItem //for the commented-out className feature.\n} from \"./gsap-core.js\";\n\nlet _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSetterPlugin,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_transformProps = {},\n\t_RAD2DEG = 180 / Math.PI,\n\t_DEG2RAD = Math.PI / 180,\n\t_atan2 = Math.atan2,\n\t_bigNum = 1e8,\n\t_capsExp = /([A-Z])/g,\n\t_numWithUnitExp = /[-+=\\.]*\\d+[\\.e-]*\\d*[a-z%]*/g,\n\t_horizontalExp = /(?:left|right|width|margin|padding|x)/i,\n\t_complexExp = /[\\s,\\(]\\S/,\n\t_propertyAliases = {autoAlpha:\"opacity,visibility\", scale:\"scaleX,scaleY\", alpha:\"opacity\"},\n\t_renderCSSProp = (ratio, data) => data.set(data.t, data.p, (~~((data.s + data.c * ratio) * 1000) / 1000) + data.u, data),\n\t_renderPropWithEnd = (ratio, data) => data.set(data.t, data.p, ratio === 1 ? data.e : (~~((data.s + data.c * ratio) * 1000) / 1000) + data.u, data),\n\t_renderCSSPropWithBeginning = (ratio, data) => data.set(data.t, data.p, ratio ? (~~((data.s + data.c * ratio) * 1000) / 1000) + data.u : data.b, data), //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)\n\t_renderRoundedCSSProp = (ratio, data) => {\n\t\tlet value = data.s + data.c * ratio;\n\t\tdata.set(data.t, data.p, ~~(value + (value < 0 ? -.5 : .5)) + data.u, data);\n\t},\n\t_renderNonTweeningValue = (ratio, data) => data.set(data.t, data.p, ratio ? data.e : data.b, data),\n\t_renderNonTweeningValueOnlyAtEnd = (ratio, data) => data.set(data.t, data.p, ratio !== 1 ? data.b : data.e, data),\n\t_setterCSSStyle = (target, property, value) => target.style[property] = value,\n\t_setterCSSProp = (target, property, value) => target.style.setProperty(property, value),\n\t_setterTransform = (target, property, value) => target._gsap[property] = value,\n\t_setterScale = (target, property, value) => target._gsap.scaleX = target._gsap.scaleY = value,\n\t_setterScaleWithRender = (target, property, value, data, ratio) => {\n\t\tlet cache = target._gsap;\n\t\tcache.scaleX = cache.scaleY = value;\n\t\tcache.renderTransform(ratio, cache);\n\t},\n\t_setterTransformWithRender = (target, property, value, data, ratio) => {\n\t\tlet cache = target._gsap;\n\t\tcache[property] = value;\n\t\tcache.renderTransform(ratio, cache);\n\t},\n\t_transformProp = \"transform\",\n\t_transformOriginProp = _transformProp + \"Origin\",\n\t_supports3D,\n\t_createElement = (type, ns) => {\n\t\tlet e = _doc.createElementNS ? _doc.createElementNS((ns || \"http://www.w3.org/1999/xhtml\").replace(/^https/, \"http\"), type) : _doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making \"style\" inaccessible.\n\t\treturn e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://greensock.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).\n\t},\n\t_getComputedProperty = (target, property, skipPrefixFallback) => {\n\t\tlet cs = getComputedStyle(target);\n\t\treturn cs[property] || cs.getPropertyValue(property.replace(_capsExp, \"-$1\").toLowerCase()) || cs.getPropertyValue(property) || (!skipPrefixFallback && _getComputedProperty(target, _checkPropPrefix(property) || property, 1)) || \"\"; //css variables may not need caps swapped out for dashes and lowercase.\n\t},\n\t_prefixes = \"O,Moz,ms,Ms,Webkit\".split(\",\"),\n\t_checkPropPrefix = (property, element) => {\n\t\tlet e = element || _tempDiv,\n\t\t\ts = e.style,\n\t\t\ti = 5;\n\t\tif (property in s) {\n\t\t\treturn property;\n\t\t}\n\t\tproperty = property.charAt(0).toUpperCase() + property.substr(1);\n\t\twhile (i-- && !((_prefixes[i]+property) in s)) { }\n\t\treturn (i < 0) ? null : ((i === 3) ? \"ms\" : (i >= 0) ? _prefixes[i] : \"\") + property;\n\t},\n\t_initCore = () => {\n\t\tif (_windowExists()) {\n\t\t\t_win = window;\n\t\t\t_doc = _win.document;\n\t\t\t_docElement = _doc.documentElement;\n\t\t\t_tempDiv = _createElement(\"div\") || {style:{}};\n\t\t\t_tempDivStyler = _createElement(\"div\");\n\t\t\t_transformProp = _checkPropPrefix(_transformProp);\n\t\t\t_transformOriginProp = _checkPropPrefix(_transformOriginProp);\n\t\t\t_tempDiv.style.cssText = \"border-width:0;line-height:0;position:absolute;padding:0\"; //make sure to override certain properties that may contaminate measurements, in case the user has overreaching style sheets.\n\t\t\t_supports3D = !!_checkPropPrefix(\"perspective\");\n\t\t\t_pluginInitted = 1;\n\t\t}\n\t},\n\t_getBBoxHack = function(swapIfPossible) { //works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a <defs> element and/or <mask>. We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).\n\t\tlet svg = _createElement(\"svg\", (this.ownerSVGElement && this.ownerSVGElement.getAttribute(\"xmlns\")) || \"http://www.w3.org/2000/svg\"),\n\t\t\toldParent = this.parentNode,\n\t\t\toldSibling = this.nextSibling,\n\t\t\toldCSS = this.style.cssText,\n\t\t\tbbox;\n\t\t_docElement.appendChild(svg);\n\t\tsvg.appendChild(this);\n\t\tthis.style.display = \"block\";\n\t\tif (swapIfPossible) {\n\t\t\ttry {\n\t\t\t\tbbox = this.getBBox();\n\t\t\t\tthis._gsapBBox = this.getBBox; //store the original\n\t\t\t\tthis.getBBox = _getBBoxHack;\n\t\t\t} catch (e) { }\n\t\t} else if (this._gsapBBox) {\n\t\t\tbbox = this._gsapBBox();\n\t\t}\n\t\tif (oldSibling) {\n\t\t\toldParent.insertBefore(this, oldSibling);\n\t\t} else {\n\t\t\toldParent.appendChild(this);\n\t\t}\n\t\t_docElement.removeChild(svg);\n\t\tthis.style.cssText = oldCSS;\n\t\treturn bbox;\n\t},\n\t_getAttributeFallbacks = (target, attributesArray) => {\n\t\tlet i = attributesArray.length;\n\t\twhile (i--) {\n\t\t\tif (target.hasAttribute(attributesArray[i])) {\n\t\t\t\treturn target.getAttribute(attributesArray[i]);\n\t\t\t}\n\t\t}\n\t},\n\t_getBBox = target => {\n\t\tlet bounds;\n\t\ttry {\n\t\t\tbounds = target.getBBox(); //Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a <symbol> or <defs>). https://bugzilla.mozilla.org/show_bug.cgi?id=612118\n\t\t} catch (error) {\n\t\t\tbounds = _getBBoxHack.call(target, true);\n\t\t}\n\t\t//some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.\n\t\treturn (bounds && !bounds.width && !bounds.x && !bounds.y) ? {x: +_getAttributeFallbacks(target, [\"x\",\"cx\",\"x1\"]) || 0, y:+_getAttributeFallbacks(target, [\"y\",\"cy\",\"y1\"]) || 0, width:0, height:0} : bounds;\n\t},\n\t_isSVG = e => !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && _getBBox(e)), //reports if the element is an SVG on which getBBox() actually works\n\t_removeProperty = (target, property) => {\n\t\tif (property) {\n\t\t\tlet style = target.style;\n\t\t\tif (property in _transformProps) {\n\t\t\t\tproperty = _transformProp;\n\t\t\t}\n\t\t\tif (style.removeProperty) {\n\t\t\t\tif (property.substr(0,2) === \"ms\" || property.substr(0,6) === \"webkit\") { //Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be \"ms-transform\" instead of \"-ms-transform\" for IE9, for example)\n\t\t\t\t\tproperty = \"-\" + property;\n\t\t\t\t}\n\t\t\t\tstyle.removeProperty(property.replace(_capsExp, \"-$1\").toLowerCase());\n\t\t\t} else { //note: old versions of IE use \"removeAttribute()\" instead of \"removeProperty()\"\n\t\t\t\tstyle.removeAttribute(property);\n\t\t\t}\n\t\t}\n\t},\n\t_addNonTweeningPT = (plugin, target, property, beginning, end, onlySetAtEnd) => {\n\t\tlet pt = new PropTween(plugin._pt, target, property, 0, 1, onlySetAtEnd ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue);\n\t\tplugin._pt = pt;\n\t\tpt.b = beginning;\n\t\tpt.e = end;\n\t\tplugin._props.push(property);\n\t\treturn pt;\n\t},\n\t_nonConvertibleUnits = {deg:1, rad:1, turn:1},\n\t//takes a single value like 20px and converts it to the unit specified, like \"%\", returning only the numeric amount.\n\t_convertToUnit = (target, property, value, unit) => {\n\t\tlet curValue = parseFloat(value),\n\t\t\tcurUnit = (value + \"\").substr((curValue + \"\").length) || \"px\",\n\t\t\tstyle = _tempDiv.style,\n\t\t\thorizontal = _horizontalExp.test(property),\n\t\t\tisRootSVG = target.tagName.toLowerCase() === \"svg\",\n\t\t\tmeasureProperty = (isRootSVG ? \"client\" : \"offset\") + (horizontal ? \"Width\" : \"Height\"),\n\t\t\tamount = 100,\n\t\t\ttoPixels = unit === \"px\",\n\t\t\tpx, parent, cache, isSVG;\n\t\tif (unit === curUnit || _nonConvertibleUnits[unit] || _nonConvertibleUnits[curUnit]) {\n\t\t\treturn curValue;\n\t\t}\n\t\tisSVG = target.getCTM && _isSVG(target);\n\t\tif (unit === \"%\" && _transformProps[property]) { //transforms are relative to the size of the element itself!\n\t\t\treturn _round(curValue / (isSVG ? target.getBBox()[horizontal ? \"width\" : \"height\"] : target[measureProperty]) * amount);\n\t\t}\n\t\tstyle[horizontal ? \"width\" : \"height\"] = amount + (toPixels ? curUnit : unit);\n\t\tparent = (unit === \"em\" && target.appendChild && !isRootSVG) ? target : target.parentNode;\n\t\tif (isSVG) {\n\t\t\tparent = (target.ownerSVGElement || {}).parentNode;\n\t\t}\n\t\tif (!parent || parent === _doc || !parent.appendChild) {\n\t\t\tparent = _doc.body;\n\t\t}\n\t\tcache = parent._gsap;\n\t\tif (cache && unit === \"%\" && cache.width && horizontal && cache.time === _ticker.time) {\n\t\t\tpx = cache.width * curValue / amount;\n\t\t} else {\n\t\t\tparent.appendChild(_tempDiv);\n\t\t\tpx = _tempDiv[measureProperty];\n\t\t\tparent.removeChild(_tempDiv);\n\t\t\tif (horizontal && unit === \"%\") {\n\t\t\t\tcache = _getCache(parent);\n\t\t\t\tcache.time = _ticker.time;\n\t\t\t\tcache.width = px / curValue * amount;\n\t\t\t}\n\t\t}\n\t\treturn _round(toPixels ? px * curValue / amount : amount / px * curValue);\n\t},\n\t_get = (target, property, unit, uncache) => {\n\t\tlet value;\n\t\tif (!_pluginInitted) {\n\t\t\t_initCore();\n\t\t}\n\t\tif (property in _propertyAliases) {\n\t\t\tproperty = _propertyAliases[property];\n\t\t\tif (~property.indexOf(\",\")) {\n\t\t\t\tproperty = property.split(\",\")[0];\n\t\t\t}\n\t\t}\n\t\tif (_transformProps[property]) {\n\t\t\tvalue = _parseTransform(target, uncache);\n\t\t\tvalue = (property !== \"transformOrigin\") ? value[property] : _firstTwoOnly(_getComputedProperty(target, _transformOriginProp)) + value.zOrigin + \"px\";\n\t\t} else {\n\t\t\tvalue = target.style[property];\n\t\t\tif (!value || value === \"auto\" || uncache || ~value.indexOf(\"calc(\")) {\n\t\t\t\tvalue = _getComputedProperty(target, property) || _getProperty(target, property);\n\t\t\t}\n\t\t}\n\t\treturn unit ? _convertToUnit(target, property, value, unit) + unit : value;\n\n\t},\n\t_tweenComplexCSSString = function(target, prop, start, end) { //note: we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\t\tlet pt = new PropTween(this._pt, target.style, prop, 0, 1, _renderComplexString),\n\t\t\tindex = 0,\n\t\t\tmatchIndex = 0,\n\t\t\ta, result,\tstartValues, startNum, color, startValue, endValue, endNum, chunk, endUnit, startUnit, relative, endValues;\n\t\tpt.b = start;\n\t\tpt.e = end;\n\t\tstart += \"\"; //ensure values are strings\n\t\tend += \"\";\n\t\tif (end === \"auto\") {\n\t\t\ttarget.style[prop] = end;\n\t\t\tend = _getComputedProperty(target, prop) || end;\n\t\t\ttarget.style[prop] = start;\n\t\t}\n\t\ta = [start, end];\n\t\t_colorStringFilter(a); //pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n\t\tstart = a[0];\n\t\tend = a[1];\n\t\tstartValues = start.match(_numWithUnitExp) || [];\n\t\tendValues = end.match(_numWithUnitExp) || [];\n\t\tif (endValues.length) {\n\t\t\twhile ((result = _numWithUnitExp.exec(end))) {\n\t\t\t\tendValue = result[0];\n\t\t\t\tchunk = end.substring(index, result.index);\n\t\t\t\tif (color) {\n\t\t\t\t\tcolor = (color + 1) % 5;\n\t\t\t\t} else if (chunk.substr(-5) === \"rgba(\") {\n\t\t\t\t\tcolor = 1;\n\t\t\t\t}\n\t\t\t\tif (endValue !== (startValue = startValues[matchIndex++] || \"\")) {\n\t\t\t\t\tstartNum = parseFloat(startValue) || 0;\n\t\t\t\t\tstartUnit = startValue.substr((startNum + \"\").length);\n\t\t\t\t\trelative = (endValue.charAt(1) === \"=\") ? +(endValue.charAt(0) + \"1\") : 0;\n\t\t\t\t\tif (relative) {\n\t\t\t\t\t\tendValue = endValue.substr(2);\n\t\t\t\t\t}\n\t\t\t\t\tendNum = parseFloat(endValue);\n\t\t\t\t\tendUnit = endValue.substr((endNum + \"\").length);\n\t\t\t\t\tindex = _numWithUnitExp.lastIndex - endUnit.length;\n\t\t\t\t\tif (!endUnit) { //if something like \"perspective:300\" is passed in and we must add a unit to the end\n\t\t\t\t\t\tendUnit = endUnit || _config.units[prop] || startUnit;\n\t\t\t\t\t\tif (index === end.length) {\n\t\t\t\t\t\t\tend += endUnit;\n\t\t\t\t\t\t\tpt.e += endUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (startUnit !== endUnit) {\n\t\t\t\t\t\tstartNum = _convertToUnit(target, prop, startValue, endUnit) || 0;\n\t\t\t\t\t}\n\t\t\t\t\t//these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\t\t\t\t\tpt._pt = {\n\t\t\t\t\t\t_next:pt._pt,\n\t\t\t\t\t\tp:(chunk || (matchIndex === 1)) ? chunk : \",\", //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n\t\t\t\t\t\ts:startNum,\n\t\t\t\t\t\tc:relative ? relative * endNum : endNum - startNum,\n\t\t\t\t\t\tm:(color && color < 4) ? Math.round : 0\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t\tpt.c = (index < end.length) ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n\t\t} else {\n\t\t\tpt.r = prop === \"display\" && end === \"none\" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;\n\t\t}\n\t\tif (_relExp.test(end)) {\n\t\t\tpt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n\t\t}\n\t\tthis._pt = pt; //start the linked list with this new PropTween. Remember, we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within another plugin too, thus \"this\" would refer to the plugin.\n\t\treturn pt;\n\t},\n\t_keywordToPercent = {top:\"0%\", bottom:\"100%\", left:\"0%\", right:\"100%\", center:\"50%\"},\n\t_convertKeywordsToPercentages = value => {\n\t\tlet split = value.split(\" \"),\n\t\t\tx = split[0],\n\t\t\ty = split[1] || \"50%\";\n\t\tif (x === \"top\" || x === \"bottom\" || y === \"left\" || y === \"right\") { //the user provided them in the wrong order, so flip them\n\t\t\tvalue = x;\n\t\t\tx = y;\n\t\t\ty = value;\n\t\t}\n\t\tsplit[0] = _keywordToPercent[x] || x;\n\t\tsplit[1] = _keywordToPercent[y] || y;\n\t\treturn split.join(\" \");\n\t},\n\t_renderClearProps = (ratio, data) => {\n\t\tif (data.tween && data.tween._time === data.tween._dur) {\n\t\t\tlet target = data.t,\n\t\t\t\tstyle = target.style,\n\t\t\t\tprops = data.u,\n\t\t\t\tprop, clearTransforms, i;\n\t\t\tif (props === \"all\" || props === true) {\n\t\t\t\tstyle.cssText = \"\";\n\t\t\t\tclearTransforms = 1;\n\t\t\t} else {\n\t\t\t\tprops = props.split(\",\");\n\t\t\t\ti = props.length;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\tprop = props[i];\n\t\t\t\t\tif (_transformProps[prop]) {\n\t\t\t\t\t\tclearTransforms = 1;\n\t\t\t\t\t\tprop = (prop === \"transformOrigin\") ? _transformOriginProp : _transformProp;\n\t\t\t\t\t}\n\t\t\t\t\t_removeProperty(target, prop);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (clearTransforms) {\n\t\t\t\t_removeProperty(target, _transformProp);\n\t\t\t\tclearTransforms = target._gsap;\n\t\t\t\tif (clearTransforms) {\n\t\t\t\t\tif (clearTransforms.svg) {\n\t\t\t\t\t\ttarget.removeAttribute(\"transform\");\n\t\t\t\t\t}\n\t\t\t\t\tclearTransforms.uncache = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t// note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.\n\t_specialProps = {\n\t\tclearProps(plugin, target, property, endValue, tween) {\n\t\t\tif (tween.data !== \"isFromStart\") {\n\t\t\t\tlet pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);\n\t\t\t\tpt.u = endValue;\n\t\t\t\tpt.pr = -10;\n\t\t\t\tpt.tween = tween;\n\t\t\t\tplugin._props.push(property);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\t/* className feature (about 0.4kb gzipped).\n\t\t, className(plugin, target, property, endValue, tween) {\n\t\t\tlet _renderClassName = (ratio, data) => {\n\t\t\t\t\tdata.css.render(ratio, data.css);\n\t\t\t\t\tif (!ratio || ratio === 1) {\n\t\t\t\t\t\tlet inline = data.rmv,\n\t\t\t\t\t\t\ttarget = data.t,\n\t\t\t\t\t\t\tp;\n\t\t\t\t\t\ttarget.setAttribute(\"class\", ratio ? data.e : data.b);\n\t\t\t\t\t\tfor (p in inline) {\n\t\t\t\t\t\t\t_removeProperty(target, p);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t_getAllStyles = (target) => {\n\t\t\t\t\tlet styles = {},\n\t\t\t\t\t\tcomputed = getComputedStyle(target),\n\t\t\t\t\t\tp;\n\t\t\t\t\tfor (p in computed) {\n\t\t\t\t\t\tif (isNaN(p) && p !== \"cssText\" && p !== \"length\") {\n\t\t\t\t\t\t\tstyles[p] = computed[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t_setDefaults(styles, _parseTransform(target, 1));\n\t\t\t\t\treturn styles;\n\t\t\t\t},\n\t\t\t\tstartClassList = target.getAttribute(\"class\"),\n\t\t\t\tstyle = target.style,\n\t\t\t\tcssText = style.cssText,\n\t\t\t\tcache = target._gsap,\n\t\t\t\tclassPT = cache.classPT,\n\t\t\t\tinlineToRemoveAtEnd = {},\n\t\t\t\tdata = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== \"=\") ? endValue : startClassList.replace(new RegExp(\"(?:\\\\s|^)\" + endValue.substr(2) + \"(?![\\\\w-])\"), \"\") + ((endValue.charAt(0) === \"+\") ? \" \" + endValue.substr(2) : \"\")},\n\t\t\t\tchangingVars = {},\n\t\t\t\tstartVars = _getAllStyles(target),\n\t\t\t\ttransformRelated = /(transform|perspective)/i,\n\t\t\t\tendVars, p;\n\t\t\tif (classPT) {\n\t\t\t\tclassPT.r(1, classPT.d);\n\t\t\t\t_removeLinkedListItem(classPT.d.plugin, classPT, \"_pt\");\n\t\t\t}\n\t\t\ttarget.setAttribute(\"class\", data.e);\n\t\t\tendVars = _getAllStyles(target, true);\n\t\t\ttarget.setAttribute(\"class\", startClassList);\n\t\t\tfor (p in endVars) {\n\t\t\t\tif (endVars[p] !== startVars[p] && !transformRelated.test(p)) {\n\t\t\t\t\tchangingVars[p] = endVars[p];\n\t\t\t\t\tif (!style[p] && style[p] !== \"0\") {\n\t\t\t\t\t\tinlineToRemoveAtEnd[p] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcache.classPT = plugin._pt = new PropTween(plugin._pt, target, \"className\", 0, 0, _renderClassName, data, 0, -11);\n\t\t\tif (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://greensock.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.\n\t\t\t\tstyle.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).\n\t\t\t}\n\t\t\t_parseTransform(target, true); //to clear the caching of transforms\n\t\t\tdata.css = new gsap.plugins.css();\n\t\t\tdata.css.init(target, changingVars, tween);\n\t\t\tplugin._props.push(...data.css._props);\n\t\t\treturn 1;\n\t\t}\n\t\t*/\n\t},\n\n\n\n\n\n\t/*\n\t * --------------------------------------------------------------------------------------\n\t * TRANSFORMS\n\t * --------------------------------------------------------------------------------------\n\t */\n\t_identity2DMatrix = [1,0,0,1,0,0],\n\t_rotationalProperties = {},\n\t_isNullTransform = value => (value === \"matrix(1, 0, 0, 1, 0, 0)\" || value === \"none\" || !value),\n\t_getComputedTransformMatrixAsArray = target => {\n\t\tlet matrixString = _getComputedProperty(target, _transformProp);\n\t\treturn _isNullTransform(matrixString) ? _identity2DMatrix : matrixString.substr(7).match(_numExp).map(_round);\n\t},\n\t_getMatrix = (target, force2D) => {\n\t\tlet cache = target._gsap,\n\t\t\tstyle = target.style,\n\t\t\tmatrix = _getComputedTransformMatrixAsArray(target),\n\t\t\tparent, nextSibling, temp, addedToDOM;\n\t\tif (cache.svg && target.getAttribute(\"transform\")) {\n\t\t\ttemp = target.transform.baseVal.consolidate().matrix; //ensures that even complex values like \"translate(50,60) rotate(135,0,0)\" are parsed because it mashes it into a matrix.\n\t\t\tmatrix = [temp.a, temp.b, temp.c, temp.d, temp.e, temp.f];\n\t\t\treturn (matrix.join(\",\") === \"1,0,0,1,0,0\") ? _identity2DMatrix : matrix;\n\t\t} else if (matrix === _identity2DMatrix && !target.offsetParent && target !== _docElement && !cache.svg) { //note: if offsetParent is null, that means the element isn't in the normal document flow, like if it has display:none or one of its ancestors has display:none). Firefox returns null for getComputedStyle() if the element is in an iframe that has display:none. https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n\t\t\t//browsers don't report transforms accurately unless the element is in the DOM and has a display value that's not \"none\". Firefox and Microsoft browsers have a partial bug where they'll report transforms even if display:none BUT not any percentage-based values like translate(-50%, 8px) will be reported as if it's translate(0, 8px).\n\t\t\ttemp = style.display;\n\t\t\tstyle.display = \"block\";\n\t\t\tparent = target.parentNode;\n\t\t\tif (!parent || !target.offsetParent) {\n\t\t\t\taddedToDOM = 1; //flag\n\t\t\t\tnextSibling = target.nextSibling;\n\t\t\t\t_docElement.appendChild(target); //we must add it to the DOM in order to get values properly\n\t\t\t}\n\t\t\tmatrix = _getComputedTransformMatrixAsArray(target);\n\t\t\tif (temp) {\n\t\t\t\tstyle.display = temp;\n\t\t\t} else {\n\t\t\t\t_removeProperty(target, \"display\");\n\t\t\t}\n\t\t\tif (addedToDOM) {\n\t\t\t\tif (nextSibling) {\n\t\t\t\t\tparent.insertBefore(target, nextSibling);\n\t\t\t\t} else if (parent) {\n\t\t\t\t\tparent.appendChild(target);\n\t\t\t\t} else {\n\t\t\t\t\t_docElement.removeChild(target);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (force2D && matrix.length > 6) ? [matrix[0], matrix[1], matrix[4], matrix[5], matrix[12], matrix[13]] : matrix;\n\t},\n\t_applySVGOrigin = (target, origin, originIsAbsolute, smooth, matrixArray, pluginToAddPropTweensTo) => {\n\t\tlet cache = target._gsap,\n\t\t\tmatrix = matrixArray || _getMatrix(target, true),\n\t\t\txOriginOld = cache.xOrigin || 0,\n\t\t\tyOriginOld = cache.yOrigin || 0,\n\t\t\txOffsetOld = cache.xOffset || 0,\n\t\t\tyOffsetOld = cache.yOffset || 0,\n\t\t\ta = matrix[0],\n\t\t\tb = matrix[1],\n\t\t\tc = matrix[2],\n\t\t\td = matrix[3],\n\t\t\ttx = matrix[4],\n\t\t\tty = matrix[5],\n\t\t\toriginSplit = origin.split(\" \"),\n\t\t\txOrigin = parseFloat(originSplit[0]) || 0,\n\t\t\tyOrigin = parseFloat(originSplit[1]) || 0,\n\t\t\tbounds, determinant, x, y;\n\t\tif (!originIsAbsolute) {\n\t\t\tbounds = _getBBox(target);\n\t\t\txOrigin = bounds.x + (~originSplit[0].indexOf(\"%\") ? xOrigin / 100 * bounds.width : xOrigin);\n\t\t\tyOrigin = bounds.y + (~((originSplit[1] || originSplit[0]).indexOf(\"%\")) ? yOrigin / 100 * bounds.height : yOrigin);\n\t\t} else if (matrix !== _identity2DMatrix && (determinant = (a * d - b * c))) { //if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.\n\t\t\tx = xOrigin * (d / determinant) + yOrigin * (-c / determinant) + ((c * ty - d * tx) / determinant);\n\t\t\ty = xOrigin * (-b / determinant) + yOrigin * (a / determinant) - ((a * ty - b * tx) / determinant);\n\t\t\txOrigin = x;\n\t\t\tyOrigin = y;\n\t\t}\n\t\tif (smooth || (smooth !== false && cache.smooth)) {\n\t\t\ttx = xOrigin - xOriginOld;\n\t\t\tty = yOrigin - yOriginOld;\n\t\t\tcache.xOffset = xOffsetOld + (tx * a + ty * c) - tx;\n\t\t\tcache.yOffset = yOffsetOld + (tx * b + ty * d) - ty;\n\t\t} else {\n\t\t\tcache.xOffset = cache.yOffset = 0;\n\t\t}\n\t\tcache.xOrigin = xOrigin;\n\t\tcache.yOrigin = yOrigin;\n\t\tcache.smooth = !!smooth;\n\t\tcache.origin = origin;\n\t\tcache.originIsAbsolute = !!originIsAbsolute;\n\t\ttarget.style[_transformOriginProp] = \"0px 0px\"; //otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).\n\t\tif (pluginToAddPropTweensTo) {\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOrigin\", xOriginOld, xOrigin);\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOrigin\", yOriginOld, yOrigin);\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOffset\", xOffsetOld, cache.xOffset);\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOffset\", yOffsetOld, cache.yOffset);\n\t\t}\n\t},\n\t_parseTransform = (target, uncache) => {\n\t\tlet cache = target._gsap || new GSCache(target);\n\t\tif (\"x\" in cache && !uncache && !cache.uncache) {\n\t\t\treturn cache;\n\t\t}\n\t\tlet style = target.style,\n\t\t\tinvertedScaleX = cache.scaleX < 0,\n\t\t\txOrigin = cache.xOrigin || 0,\n\t\t\tyOrigin = cache.yOrigin || 0,\n\t\t\tpx = \"px\",\n\t\t\tdeg = \"deg\",\n\t\t\torigin = _getComputedProperty(target, _transformOriginProp) || \"0\",\n\t\t\tx, y, z, scaleX, scaleY, rotation, rotationX, rotationY, skewX, skewY, perspective,\n\t\t\tmatrix, angle, cos, sin, a, b, c, d, a12, a22, t1, t2, t3, a13, a23, a33, a42, a43, a32;\n\t\tx = y = z = rotation = rotationX = rotationY = skewX = skewY = perspective = 0;\n\t\tscaleX = scaleY = 1;\n\t\tcache.svg = !!(target.getCTM && _isSVG(target));\n\t\tmatrix = _getMatrix(target, cache.svg);\n\t\tif (cache.svg) {\n\t\t\t_applySVGOrigin(target, origin, cache.originIsAbsolute, cache.smooth !== false, matrix);\n\t\t}\n\t\tif (matrix !== _identity2DMatrix) {\n\t\t\ta = matrix[0]; //a11\n\t\t\tb = matrix[1]; //a21\n\t\t\tc = matrix[2]; //a31\n\t\t\td = matrix[3]; //a41\n\t\t\tx = a12 = matrix[4];\n\t\t\ty = a22 = matrix[5];\n\n\t\t\t//2D matrix\n\t\t\tif (matrix.length === 6) {\n\t\t\t\tscaleX = Math.sqrt(a * a + b * b);\n\t\t\t\tscaleY = Math.sqrt(d * d + c * c);\n\t\t\t\trotation = (a || b) ? _atan2(b, a) * _RAD2DEG : cache.rotation || 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).\n\t\t\t\tskewX = (c || d) ? _atan2(c, d) * _RAD2DEG + rotation : cache.skewX || 0;\n\t\t\t\tif (cache.svg) {\n\t\t\t\t\tx -= xOrigin - (xOrigin * a + yOrigin * c);\n\t\t\t\t\ty -= yOrigin - (xOrigin * b + yOrigin * d);\n\t\t\t\t}\n\n\t\t\t\t//3D matrix\n\t\t\t} else {\n\t\t\t\ta32 = matrix[6];\n\t\t\t\ta42 = matrix[7];\n\t\t\t\ta13 = matrix[8];\n\t\t\t\ta23 = matrix[9];\n\t\t\t\ta33 = matrix[10];\n\t\t\t\ta43 = matrix[11];\n\t\t\t\tx = matrix[12];\n\t\t\t\ty = matrix[13];\n\t\t\t\tz = matrix[14];\n\n\t\t\t\tangle = _atan2(a32, a33);\n\t\t\t\trotationX = angle * _RAD2DEG;\n\t\t\t\t//rotationX\n\t\t\t\tif (angle) {\n\t\t\t\t\tcos = Math.cos(-angle);\n\t\t\t\t\tsin = Math.sin(-angle);\n\t\t\t\t\tt1 = a12*cos+a13*sin;\n\t\t\t\t\tt2 = a22*cos+a23*sin;\n\t\t\t\t\tt3 = a32*cos+a33*sin;\n\t\t\t\t\ta13 = a12*-sin+a13*cos;\n\t\t\t\t\ta23 = a22*-sin+a23*cos;\n\t\t\t\t\ta33 = a32*-sin+a33*cos;\n\t\t\t\t\ta43 = a42*-sin+a43*cos;\n\t\t\t\t\ta12 = t1;\n\t\t\t\t\ta22 = t2;\n\t\t\t\t\ta32 = t3;\n\t\t\t\t}\n\t\t\t\t//rotationY\n\t\t\t\tangle = _atan2(-c, a33);\n\t\t\t\trotationY = angle * _RAD2DEG;\n\t\t\t\tif (angle) {\n\t\t\t\t\tcos = Math.cos(-angle);\n\t\t\t\t\tsin = Math.sin(-angle);\n\t\t\t\t\tt1 = a*cos-a13*sin;\n\t\t\t\t\tt2 = b*cos-a23*sin;\n\t\t\t\t\tt3 = c*cos-a33*sin;\n\t\t\t\t\ta43 = d*sin+a43*cos;\n\t\t\t\t\ta = t1;\n\t\t\t\t\tb = t2;\n\t\t\t\t\tc = t3;\n\t\t\t\t}\n\t\t\t\t//rotationZ\n\t\t\t\tangle = _atan2(b, a);\n\t\t\t\trotation = angle * _RAD2DEG;\n\t\t\t\tif (angle) {\n\t\t\t\t\tcos = Math.cos(angle);\n\t\t\t\t\tsin = Math.sin(angle);\n\t\t\t\t\tt1 = a*cos+b*sin;\n\t\t\t\t\tt2 = a12*cos+a22*sin;\n\t\t\t\t\tb = b*cos-a*sin;\n\t\t\t\t\ta22 = a22*cos-a12*sin;\n\t\t\t\t\ta = t1;\n\t\t\t\t\ta12 = t2;\n\t\t\t\t}\n\n\t\t\t\tif (rotationX && Math.abs(rotationX) + Math.abs(rotation) > 359.9) { //when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.\n\t\t\t\t\trotationX = rotation = 0;\n\t\t\t\t\trotationY = 180 - rotationY;\n\t\t\t\t}\n\t\t\t\tscaleX = _round(Math.sqrt(a * a + b * b + c * c));\n\t\t\t\tscaleY = _round(Math.sqrt(a22 * a22 + a32 * a32));\n\t\t\t\tangle = _atan2(a12, a22);\n\t\t\t\tskewX = (Math.abs(angle) > 0.0002) ? angle * _RAD2DEG : 0;\n\t\t\t\tperspective = a43 ? 1 / ((a43 < 0) ? -a43 : a43) : 0;\n\t\t\t}\n\n\t\t\tif (cache.svg) { //sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).\n\t\t\t\tmatrix = target.getAttribute(\"transform\");\n\t\t\t\tcache.forceCSS = target.setAttribute(\"transform\", \"\") || (!_isNullTransform(_getComputedProperty(target, _transformProp)));\n\t\t\t\tmatrix && target.setAttribute(\"transform\", matrix);\n\t\t\t}\n\t\t}\n\n\t\tif (Math.abs(skewX) > 90 && Math.abs(skewX) < 270) {\n\t\t\tif (invertedScaleX) {\n\t\t\t\tscaleX *= -1;\n\t\t\t\tskewX += (rotation <= 0) ? 180 : -180;\n\t\t\t\trotation += (rotation <= 0) ? 180 : -180;\n\t\t\t} else {\n\t\t\t\tscaleY *= -1;\n\t\t\t\tskewX += (skewX <= 0) ? 180 : -180;\n\t\t\t}\n\t\t}\n\n\t\tcache.x = ((cache.xPercent = (x && Math.round(target.offsetWidth / 2) === Math.round(-x)) ? -50 : 0) ? 0 : x) + px;\n\t\tcache.y = ((cache.yPercent = (y && Math.round(target.offsetHeight / 2) === Math.round(-y)) ? -50 : 0) ? 0 : y) + px;\n\t\tcache.z = z + px;\n\t\tcache.scaleX = _round(scaleX);\n\t\tcache.scaleY = _round(scaleY);\n\t\tcache.rotation = _round(rotation) + deg;\n\t\tcache.rotationX = _round(rotationX) + deg;\n\t\tcache.rotationY = _round(rotationY) + deg;\n\t\tcache.skewX = skewX + deg;\n\t\tcache.skewY = skewY + deg;\n\t\tcache.transformPerspective = perspective + px;\n\t\tif ((cache.zOrigin = parseFloat(origin.split(\" \")[2]) || 0)) {\n\t\t\tstyle[_transformOriginProp] = _firstTwoOnly(origin);\n\t\t}\n\t\tcache.xOffset = cache.yOffset = 0;\n\t\tcache.force3D = _config.force3D;\n\t\tcache.renderTransform = cache.svg ? _renderSVGTransforms : _supports3D ? _renderCSSTransforms : _renderNon3DTransforms;\n\t\tcache.uncache = 0;\n\t\treturn cache;\n\t},\n\t_firstTwoOnly = value => (value = value.split(\" \"))[0] + \" \" + value[1], //for handling transformOrigin values, stripping out the 3rd dimension\n\t_addPxTranslate = (target, start, value) => {\n\t\tlet unit = getUnit(start);\n\t\treturn _round(parseFloat(start) + parseFloat(_convertToUnit(target, \"x\", value + \"px\", unit))) + unit;\n\t},\n\t_renderNon3DTransforms = (ratio, cache) => {\n\t\tcache.z = \"0px\";\n\t\tcache.rotationY = cache.rotationX = \"0deg\";\n\t\tcache.force3D = 0;\n\t\t_renderCSSTransforms(ratio, cache);\n\t},\n\t_zeroDeg = \"0deg\",\n\t_zeroPx = \"0px\",\n\t_endParenthesis = \") \",\n\t_renderCSSTransforms = function(ratio, cache) {\n\t\tlet {xPercent, yPercent, x, y, z, rotation, rotationY, rotationX, skewX, skewY, scaleX, scaleY, transformPerspective, force3D, target, zOrigin} = cache || this,\n\t\t\ttransforms = \"\",\n\t\t\tuse3D = (force3D === \"auto\" && ratio && ratio !== 1) || force3D === true;\n\n\t\t// Safari has a bug that causes it not to render 3D transform-origin values properly, so we force the z origin to 0, record it in the cache, and then do the math here to offset the translate values accordingly (basically do the 3D transform-origin part manually)\n\t\tif (zOrigin && (rotationX !== _zeroDeg || rotationY !== _zeroDeg)) {\n\t\t\tlet angle = parseFloat(rotationY) * _DEG2RAD,\n\t\t\t\ta13 = Math.sin(angle),\n\t\t\t\ta33 = Math.cos(angle),\n\t\t\t\tcos;\n\t\t\tangle = parseFloat(rotationX) * _DEG2RAD;\n\t\t\tcos = Math.cos(angle);\n\t\t\tx = _addPxTranslate(target, x, a13 * cos * -zOrigin);\n\t\t\ty = _addPxTranslate(target, y, -Math.sin(angle) * -zOrigin);\n\t\t\tz = _addPxTranslate(target, z, a33 * cos * -zOrigin + zOrigin);\n\t\t}\n\n\t\tif (xPercent || yPercent) {\n\t\t\ttransforms = \"translate(\" + xPercent + \"%, \" + yPercent + \"%) \";\n\t\t}\n\t\tif (use3D || x !== _zeroPx || y !== _zeroPx || z !== _zeroPx) {\n\t\t\ttransforms += (z !== _zeroPx || use3D) ? \"translate3d(\" + x + \", \" + y + \", \" + z + \") \" : \"translate(\" + x + \", \" + y + _endParenthesis;\n\t\t}\n\t\tif (transformPerspective !== _zeroPx) {\n\t\t\ttransforms += \"perspective(\" + transformPerspective + _endParenthesis;\n\t\t}\n\t\tif (rotation !== _zeroDeg) {\n\t\t\ttransforms += \"rotate(\" + rotation + _endParenthesis;\n\t\t}\n\t\tif (rotationY !== _zeroDeg) {\n\t\t\ttransforms += \"rotateY(\" + rotationY + _endParenthesis;\n\t\t}\n\t\tif (rotationX !== _zeroDeg) {\n\t\t\ttransforms += \"rotateX(\" + rotationX + _endParenthesis;\n\t\t}\n\t\tif (skewX !== _zeroDeg || skewY !== _zeroDeg) {\n\t\t\ttransforms += \"skew(\" + skewX + \", \" + skewY + _endParenthesis;\n\t\t}\n\t\tif (scaleX !== 1 || scaleY !== 1) {\n\t\t\ttransforms += \"scale(\" + scaleX + \", \" + scaleY + _endParenthesis;\n\t\t}\n\t\ttarget.style[_transformProp] = transforms || \"translate(0, 0)\";\n\t},\n\t_renderSVGTransforms = function(ratio, cache) {\n\t\tlet {xPercent, yPercent, x, y, rotation, skewX, skewY, scaleX, scaleY, target, xOrigin, yOrigin, xOffset, yOffset, forceCSS} = cache || this,\n\t\t\ttx = parseFloat(x),\n\t\t\tty = parseFloat(y),\n\t\t\ta11, a21, a12, a22, temp;\n\t\trotation = parseFloat(rotation);\n\t\tskewX = parseFloat(skewX);\n\t\tskewY = parseFloat(skewY);\n\t\tif (skewY) { //for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.\n\t\t\tskewY = parseFloat(skewY);\n\t\t\tskewX += skewY;\n\t\t\trotation += skewY;\n\t\t}\n\t\tif (rotation || skewX) {\n\t\t\trotation *= _DEG2RAD;\n\t\t\tskewX *= _DEG2RAD;\n\t\t\ta11 = Math.cos(rotation) * scaleX;\n\t\t\ta21 = Math.sin(rotation) * scaleX;\n\t\t\ta12 = Math.sin(rotation - skewX) * -scaleY;\n\t\t\ta22 = Math.cos(rotation - skewX) * scaleY;\n\t\t\tif (skewX) {\n\t\t\t\tskewY *= _DEG2RAD;\n\t\t\t\ttemp = Math.tan(skewX - skewY);\n\t\t\t\ttemp = Math.sqrt(1 + temp * temp);\n\t\t\t\ta12 *= temp;\n\t\t\t\ta22 *= temp;\n\t\t\t\tif (skewY) {\n\t\t\t\t\ttemp = Math.tan(skewY);\n\t\t\t\t\ttemp = Math.sqrt(1 + temp * temp);\n\t\t\t\t\ta11 *= temp;\n\t\t\t\t\ta21 *= temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\ta11 = _round(a11);\n\t\t\ta21 = _round(a21);\n\t\t\ta12 = _round(a12);\n\t\t\ta22 = _round(a22);\n\t\t} else {\n\t\t\ta11 = scaleX;\n\t\t\ta22 = scaleY;\n\t\t\ta21 = a12 = 0;\n\t\t}\n\t\tif ((tx && !~(x + \"\").indexOf(\"px\")) || (ty && !~(y + \"\").indexOf(\"px\"))) {\n\t\t\ttx = _convertToUnit(target, \"x\", x, \"px\");\n\t\t\tty = _convertToUnit(target, \"y\", y, \"px\");\n\t\t}\n\t\tif (xOrigin || yOrigin || xOffset || yOffset) {\n\t\t\ttx = _round(tx + xOrigin - (xOrigin * a11 + yOrigin * a12) + xOffset);\n\t\t\tty = _round(ty + yOrigin - (xOrigin * a21 + yOrigin * a22) + yOffset);\n\t\t}\n\t\tif (xPercent || yPercent) {\n\t\t\t//The SVG spec doesn't support percentage-based translation in the \"transform\" attribute, so we merge it into the translation to simulate it.\n\t\t\ttemp = target.getBBox();\n\t\t\ttx = _round(tx + xPercent / 100 * temp.width);\n\t\t\tty = _round(ty + yPercent / 100 * temp.height);\n\t\t}\n\t\ttemp = \"matrix(\" + a11 + \",\" + a21 + \",\" + a12 + \",\" + a22 + \",\" + tx + \",\" + ty + \")\";\n\t\ttarget.setAttribute(\"transform\", temp);\n\t\tif (forceCSS) { //some browsers prioritize CSS transforms over the transform attribute. When we sense that the user has CSS transforms applied, we must overwrite them this way (otherwise some browser simply won't render the transform attribute changes!)\n\t\t\ttarget.style[_transformProp] = temp;\n\t\t}\n\t},\n\t_addRotationalPropTween = function(plugin, target, property, startNum, endValue, relative) {\n\t\tlet cap = 360,\n\t\t\tisString = _isString(endValue),\n\t\t\tendNum = parseFloat(endValue) * ((isString && ~endValue.indexOf(\"rad\")) ? _RAD2DEG : 1),\n\t\t\tchange = relative ? endNum * relative : endNum - startNum,\n\t\t\tfinalValue = (startNum + change) + \"deg\",\n\t\t\tdirection, pt;\n\t\tif (isString) {\n\t\t\tdirection = endValue.split(\"_\")[1];\n\t\t\tif (direction === \"short\") {\n\t\t\t\tchange %= cap;\n\t\t\t\tif (change !== change % (cap / 2)) {\n\t\t\t\t\tchange += (change < 0) ? cap : -cap;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (direction === \"cw\" && change < 0) {\n\t\t\t\tchange = ((change + cap * _bigNum) % cap) - ~~(change / cap) * cap;\n\t\t\t} else if (direction === \"ccw\" && change > 0) {\n\t\t\t\tchange = ((change - cap * _bigNum) % cap) - ~~(change / cap) * cap;\n\t\t\t}\n\t\t}\n\t\tplugin._pt = pt = new PropTween(plugin._pt, target, property, startNum, change, _renderPropWithEnd);\n\t\tpt.e = finalValue;\n\t\tpt.u = \"deg\";\n\t\tplugin._props.push(property);\n\t\treturn pt;\n\t},\n\t_addRawTransformPTs = (plugin, transforms, target) => { //for handling cases where someone passes in a whole transform string, like transform: \"scale(2, 3) rotate(20deg) translateY(30em)\"\n\t\tlet style = _tempDivStyler.style,\n\t\t\tstartCache = target._gsap,\n\t\t\tendCache, p, startValue, endValue, startNum, endNum, startUnit, endUnit;\n\t\tstyle.cssText = getComputedStyle(target).cssText + \";position:absolute;display:block;\"; //%-based translations will fail unless we set the width/height to match the original target (and padding/borders can affect it)\n\t\tstyle[_transformProp] = transforms;\n\t\t_doc.body.appendChild(_tempDivStyler);\n\t\tendCache = _parseTransform(_tempDivStyler, 1);\n\t\tfor (p in _transformProps) {\n\t\t\tstartValue = startCache[p];\n\t\t\tendValue = endCache[p];\n\t\t\tif (startValue !== endValue && p !== \"perspective\") { //tweening to no perspective gives very unintuitive results - just keep the same perspective in that case.\n\t\t\t\tstartUnit = getUnit(startValue);\n\t\t\t\tendUnit = getUnit(endValue);\n\t\t\t\tstartNum = (startUnit !== endUnit) ?_convertToUnit(target, p, startValue, endUnit) : parseFloat(startValue);\n\t\t\t\tendNum = parseFloat(endValue);\n\t\t\t\tplugin._pt = new PropTween(plugin._pt, startCache, p, startNum, endNum - startNum, _renderCSSProp);\n\t\t\t\tplugin._pt.u = endUnit;\n\t\t\t\tplugin._props.push(p);\n\t\t\t}\n\t\t}\n\t\t_doc.body.removeChild(_tempDivStyler);\n\t};\n\n\n\n\nexport const CSSPlugin = {\n\tname:\"css\",\n\tregister:_initCore,\n\ttargetTest(target) {\n\t\treturn target.style && target.nodeType;\n\t},\n\tinit(target, vars, tween, index, targets) {\n\t\tlet props = this._props,\n\t\t\tstyle = target.style,\n\t\t\tstartValue, endValue, endNum, startNum, type, specialProp, p, startUnit, endUnit, relative, isTransformRelated, transformPropTween, cache, smooth, hasPriority;\n\t\tif (!_pluginInitted) {\n\t\t\t_initCore();\n\t\t}\n\t\tfor (p in vars) {\n\t\t\tif (p === \"autoRound\") {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tendValue = vars[p];\n\t\t\tif (_plugins[p] && _checkPlugin(p, vars, tween, index, target, targets)) { //plugins\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttype = typeof(endValue);\n\t\t\tspecialProp = _specialProps[p];\n\t\t\tif (type === \"function\") {\n\t\t\t\tendValue = endValue.call(tween, index, target, targets);\n\t\t\t\ttype = typeof(endValue);\n\t\t\t}\n\t\t\tif (type === \"string\" && ~endValue.indexOf(\"random(\")) {\n\t\t\t\tendValue = _replaceRandom(endValue);\n\t\t\t}\n\t\t\tif (specialProp) {\n\t\t\t\tif (specialProp(this, target, p, endValue, tween)) {\n\t\t\t\t\thasPriority = 1;\n\t\t\t\t}\n\t\t\t} else if (p.substr(0,2) === \"--\") { //CSS variable\n\t\t\t\tthis.add(style, \"setProperty\", getComputedStyle(target).getPropertyValue(p) + \"\", endValue + \"\", index, targets, 0, 0, p);\n\t\t\t} else {\n\t\t\t\tstartValue = _get(target, p);\n\t\t\t\tstartNum = parseFloat(startValue);\n\t\t\t\trelative = (type === \"string\" && endValue.charAt(1) === \"=\") ? +(endValue.charAt(0) + \"1\") : 0;\n\t\t\t\tif (relative) {\n\t\t\t\t\tendValue = endValue.substr(2);\n\t\t\t\t}\n\t\t\t\tendNum = parseFloat(endValue);\n\t\t\t\tif (p in _propertyAliases) {\n\t\t\t\t\tif (p === \"autoAlpha\") { //special case where we control the visibility along with opacity. We still allow the opacity value to pass through and get tweened.\n\t\t\t\t\t\tif (startNum === 1 && _get(target, \"visibility\") === \"hidden\" && endNum) { //if visibility is initially set to \"hidden\", we should interpret that as intent to make opacity 0 (a convenience)\n\t\t\t\t\t\t\tstartNum = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_addNonTweeningPT(this, style, \"visibility\", startNum ? \"inherit\" : \"hidden\", endNum ? \"inherit\" : \"hidden\", !endNum);\n\t\t\t\t\t}\n\t\t\t\t\tif (p !== \"scale\") {\n\t\t\t\t\t\tp = _propertyAliases[p];\n\t\t\t\t\t\tif (~p.indexOf(\",\")) {\n\t\t\t\t\t\t\tp = p.split(\",\")[0];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tisTransformRelated = (p in _transformProps);\n\n\t\t\t\t//--- TRANSFORM-RELATED ---\n\t\t\t\tif (isTransformRelated) {\n\t\t\t\t\tif (!transformPropTween) {\n\t\t\t\t\t\tcache = target._gsap;\n\t\t\t\t\t\tsmooth = (vars.smoothOrigin !== false && cache.smooth);\n\t\t\t\t\t\ttransformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache, 0, -1); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)\n\t\t\t\t\t\ttransformPropTween.dep = 1; //flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.\n\t\t\t\t\t}\n\t\t\t\t\tif (p === \"scale\") {\n\t\t\t\t\t\tthis._pt = new PropTween(this._pt, cache, \"scaleY\", cache.scaleY, relative ? relative * endNum : endNum - cache.scaleY);\n\t\t\t\t\t\tprops.push(\"scaleY\", p);\n\t\t\t\t\t\tp += \"X\";\n\t\t\t\t\t} else if (p === \"transformOrigin\") {\n\t\t\t\t\t\tendValue = _convertKeywordsToPercentages(endValue); //in case something like \"left top\" or \"bottom right\" is passed in. Convert to percentages.\n\t\t\t\t\t\tif (cache.svg) {\n\t\t\t\t\t\t\t_applySVGOrigin(target, endValue, 0, smooth, 0, this);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tendUnit = parseFloat(endValue.split(\" \")[2]); //handle the zOrigin separately!\n\t\t\t\t\t\t\tif (endUnit !== cache.zOrigin) {\n\t\t\t\t\t\t\t\t_addNonTweeningPT(this, cache, \"zOrigin\", cache.zOrigin, endUnit);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_addNonTweeningPT(this, style, p, _firstTwoOnly(startValue), _firstTwoOnly(endValue));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"svgOrigin\") {\n\t\t\t\t\t\t_applySVGOrigin(target, endValue, 1, smooth, 0, this);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p in _rotationalProperties) {\n\t\t\t\t\t\t_addRotationalPropTween(this, cache, p, startNum, endValue, relative);\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t} else if (p === \"smoothOrigin\") {\n\t\t\t\t\t\t_addNonTweeningPT(this, cache, \"smooth\", cache.smooth, endValue);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"force3D\") {\n\t\t\t\t\t\tcache[p] = endValue;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"transform\") {\n\t\t\t\t\t\t_addRawTransformPTs(this, endValue, target);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t} else if (!(p in style)) {\n\t\t\t\t\tp = _checkPropPrefix(p) || p;\n\t\t\t\t}\n\n\t\t\t\tif (isTransformRelated || ((endNum || endNum === 0) && (startNum || startNum === 0) && !_complexExp.test(endValue) && (p in style))) {\n\t\t\t\t\tstartUnit = (startValue + \"\").substr((startNum + \"\").length);\n\t\t\t\t\tendUnit = (endValue + \"\").substr((endNum + \"\").length) || ((p in _config.units) ? _config.units[p] : startUnit);\n\t\t\t\t\tif (startUnit !== endUnit) {\n\t\t\t\t\t\tstartNum = _convertToUnit(target, p, startValue, endUnit);\n\t\t\t\t\t}\n\t\t\t\t\tthis._pt = new PropTween(this._pt, isTransformRelated ? cache : style, p, startNum, relative ? relative * endNum : endNum - startNum, (endUnit === \"px\" && vars.autoRound !== false && !isTransformRelated) ? _renderRoundedCSSProp : _renderCSSProp);\n\t\t\t\t\tthis._pt.u = endUnit || 0;\n\t\t\t\t\tif (startUnit !== endUnit) { //when the tween goes all the way back to the beginning, we need to revert it to the OLD/ORIGINAL value (with those units). We record that as a \"b\" (beginning) property and point to a render method that handles that. (performance optimization)\n\t\t\t\t\t\tthis._pt.b = startValue;\n\t\t\t\t\t\tthis._pt.r = _renderCSSPropWithBeginning;\n\t\t\t\t\t}\n\t\t\t\t} else if (!(p in style)) {\n\t\t\t\t\tif (p in target) { //maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.\n\t\t\t\t\t\tthis.add(target, p, target[p], endValue, index, targets);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_missingPlugin(p, endValue);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t_tweenComplexCSSString.call(this, target, p, startValue, endValue);\n\t\t\t\t}\n\t\t\t\tprops.push(p);\n\t\t\t}\n\t\t}\n\t\tif (hasPriority) {\n\t\t\t_sortPropTweensByPriority(this);\n\t\t}\n\n\t},\n\tget:_get,\n\taliases:_propertyAliases,\n\tgetSetter(target, property, plugin) { //returns a setter function that accepts target, property, value and applies it accordingly. Remember, properties like \"x\" aren't as simple as target.style.property = value because they've got to be applied to a proxy object and then merged into a transform string in a renderer.\n\t\treturn (property in _transformProps && property !== _transformOriginProp && (target._gsap.x || _get(target, \"x\"))) ? (plugin && _recentSetterPlugin === plugin ? (property === \"scale\" ? _setterScale : _setterTransform) : (_recentSetterPlugin = plugin || {}) && (property === \"scale\" ? _setterScaleWithRender : _setterTransformWithRender)) : target.style && !_isUndefined(target.style[property]) ? _setterCSSStyle : ~property.indexOf(\"-\") ? _setterCSSProp : _getSetter(target, property);\n\t}\n\n};\n\ngsap.utils.checkPrefix = _checkPropPrefix;\n(function(positionAndScale, rotation, others, aliases) {\n\tlet all = _forEachName(positionAndScale + \",\" + rotation + \",\" + others, name => {_transformProps[name] = 1});\n\t_forEachName(rotation, name => {_config.units[name] = \"deg\"; _rotationalProperties[name] = 1});\n\t_propertyAliases[all[13]] = positionAndScale + \",\" + rotation;\n\t_forEachName(aliases, name => {\n\t\tlet split = name.split(\":\");\n\t\t_propertyAliases[split[1]] = all[split[0]];\n\t});\n})(\"x,y,z,scale,scaleX,scaleY,xPercent,yPercent\", \"rotation,rotationX,rotationY,skewX,skewY\", \"transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective\", \"0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,9:rotateX,10:rotateY\");\n_forEachName(\"x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective\", name => {_config.units[name] = \"px\"});\n\ngsap.registerPlugin(CSSPlugin);\n\nexport { CSSPlugin as default, _getBBox, _createElement, _checkPropPrefix as checkPrefix };","import { gsap, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ, TweenMax, TweenLite, TimelineLite, TimelineMax } from \"./gsap-core.js\";\nimport { CSSPlugin } from \"./CSSPlugin.js\";\n\nconst gsapWithCSS = gsap.registerPlugin(CSSPlugin) || gsap; // to protect from tree shaking\n\nexport {\n\tgsapWithCSS as gsap,\n\tgsapWithCSS as default,\n\tCSSPlugin,\n\tTweenMax,\n\tTweenLite,\n\tTimelineMax,\n\tTimelineLite,\n\tPower0,\n\tPower1,\n\tPower2,\n\tPower3,\n\tPower4,\n\tLinear,\n\tQuad,\n\tCubic,\n\tQuart,\n\tQuint,\n\tStrong,\n\tElastic,\n\tBack,\n\tSteppedEase,\n\tBounce,\n\tSine,\n\tExpo,\n\tCirc\n};"],"names":["_isString","value","_isFunction","_isNumber","_isUndefined","_isObject","_isNotFalse","_windowExists","window","_isFuncOrString","_install","scope","_installScope","_merge","_globals","gsap","_missingPlugin","property","console","warn","_warn","message","suppress","_addGlobal","name","obj","_emptyFunc","_harness","targets","harnessPlugin","i","target","_gsap","harness","_harnessPlugins","length","targetTest","GSCache","splice","_getCache","toArray","_getProperty","currentValue","getAttribute","_forEachName","names","func","split","forEach","_round","Math","round","_arrayContainsAny","toSearch","toFind","l","indexOf","_parseVars","params","type","parent","isLegacy","varsIndex","vars","duration","runBackwards","immediateRender","startAt","_lazyRender","tween","_lazyTweens","a","slice","_lazyLookup","_lazy","render","_lazySafeRender","animation","time","suppressEvents","force","_numericIfPossible","n","parseFloat","_passThrough","p","_setDefaults","defaults","_setKeyframeDefaults","_mergeDeep","base","toMerge","_copyExcluding","excluding","copy","_removeLinkedListItem","child","firstProp","lastProp","prev","_prev","next","_next","_dp","_removeFromParent","onlyIfParentHasAutoRemove","autoRemoveChildren","remove","_act","_uncache","_dirty","_elapsedCycleDuration","_repeat","_tTime","_rDelay","_parentToChildTotalTime","parentTime","_ts","_start","totalDuration","_tDur","_addToTimeline","timeline","position","_delay","_end","_addLinkedListItem","sortBy","t","_sort","_recent","_time","_dur","_initted","curTime","rawTime","_clamp","_tinyNum","tl","totalTime","_attemptInitTween","_initTween","_pt","lazy","push","_onUpdateTotalDuration","Timeline","repeat","_parsePosition","offset","labels","recent","_zeroPosition","clippedDuration","_bigNum","endTime","isNaN","charAt","substr","_conditionalReturn","getUnit","_isArrayLike","nodeType","_win","distribute","v","each","ease","_parseEase","from","cache","isDecimal","ratios","axis","ratioX","ratioY","center","edges","end","originX","originY","x","y","d","j","max","min","wrapAt","distances","grid","getBoundingClientRect","left","abs","_sqrt","amount","b","u","_invertEase","_roundModifier","pow","raw","snap","snapTo","radius","is2D","isArray","_isArray","values","dx","dy","closest","random","roundingIncrement","returnFunction","_wrapArray","wrapper","index","_replaceRandom","nums","s","match","_delimitedValueExp","_strictNumExp","_getLabelInDirection","fromTime","backward","distance","label","_interrupt","progress","_callback","_hue","h","m1","m2","_255","splitColor","toHSL","r","g","wasHSL","_colorLookup","black","parseInt","_numExp","transparent","map","Number","_formatColors","color","temp","colors","_colorExp","charIndex","parsed","join","_colorStringFilter","combined","lastIndex","test","_hslExp","_configEaseFromString","_easeMap","config","apply","_parseObjectInString","val","parsedVal","key","lastIndexOf","replace","_quotesExp","trim","_parenthesesExp","exec","_CE","_customEaseExp","_insertEase","easeIn","easeOut","easeInOut","lowercaseName","toLowerCase","_easeInOutFromOut","_configElastic","amplitude","period","p1","_sin","p3","p2","_2PI","asin","_configBack","overshoot","_globalTimeline","_coreInitted","_doc","_coreReady","_quickTween","_tickerActive","_id","_req","_raf","_self","_getTime","_lagThreshold","_adjustedLag","_startTime","_lastUpdate","_gap","_nextTime","_listeners","n1","_config","autoSleep","force3D","nullTargetWarn","units","lineHeight","_defaults","overwrite","delay","PI","_HALF_PI","_gsID","sqrt","_cos","cos","sin","Array","_complexStringNumExp","_relExp","_reservedProps","_plugins","_effects","_nextGCFrame","_callbackNames","_slice","leaveStrings","_wake","_flatten","ar","accumulator","call","querySelectorAll","mapRange","inMin","inMax","outMin","outMax","inRange","outRange","executeLazyFirst","callback","callbackScope","aqua","lime","silver","maroon","teal","blue","navy","white","olive","yellow","orange","gray","purple","green","red","pink","cyan","RegExp","_ticker","Date","now","frame","tick","_tick","wake","document","gsapVersions","version","GreenSockGlobals","requestAnimationFrame","sleep","f","setTimeout","cancelAnimationFrame","clearTimeout","lagSmoothing","threshold","adjustedLag","fps","add","defaultEase","overlap","dispatch","elapsed","manual","power","Linear","easeNone","none","SteppedEase","steps","immediateStart","id","this","get","set","getSetter","_getSetter","Animation","isSetter","arguments","repeatCycles","isInfinite","start","smoothChildTiming","_pTime","totalProgress","_yoyo","iteration","ratio","cycleDuration","timeScale","prevTS","_recacheAncestors","_pauseTS","paused","isPaused","startTime","includeRepeats","wrapRepeats","repeatDelay","yoyo","seek","restart","includeDelay","play","reversed","reverse","pause","atTime","resume","ts","invalidate","isActive","hasStarted","eventCallback","_onUpdate","then","onFulfilled","Promise","resolve","_resolve","_then","_this","_prom","kill","yoyoEase","data","prototype","_zTime","sortChildren","to","Tween","fromTo","fromVars","toVars","delayedCall","staggerTo","stagger","onCompleteAll","onCompleteAllParams","onComplete","onCompleteParams","staggerFrom","staggerFromTo","prevPaused","pauseTween","prevStart","prevIteration","prevTime","tDur","dur","tTime","crossingStart","_lock","rewinding","doesWrap","_hasPause","_forcing","_findNextPauseTween","_first","_last","onUpdate","adjustedTime","_this3","addLabel","getChildren","nested","tweens","timelines","ignoreBeforeTime","getById","animations","removeLabel","killTweensOf","addPause","removePause","props","onlyActive","getTweensOf","_overwritingTween","children","parsedTargets","_targets","tweenTo","onStart","onStartParams","tweenFromTo","fromPosition","toPosition","nextLabel","afterTime","previousLabel","beforeTime","currentLabel","shiftChildren","adjustLabels","clear","includeLabels","self","updateRoot","_checkPlugin","plugin","pt","ptLookup","init","rawVars","_processVars","_parseFuncOrString","style","PropTween","priority","_ptLookup","_props","_addPropTween","prop","modifier","stringFilter","funcParam","parsedStart","setter","_setterFuncWithParam","_setterFunc","_setterPlain","_addComplexStringPropTween","result","startNums","endNum","chunk","startNum","hasRandom","_renderComplexString","matchIndex","e","substring","c","m","fp","_renderBoolean","_renderPlain","cleanVars","hasPriority","gsData","harnessVars","onUpdateParams","keyframes","autoRevert","prevStartAt","_startAt","fullTargets","autoOverwrite","_overwrite","_ease","_yEase","_op","_sortPropTweensByPriority","_onInit","_from","_staggerTweenProps","_staggerPropsToSkip","curTarget","staggerFunc","staggerVarsToMerge","_inheritDefaults","inherit","_this4","_hasNoPausedAncestors","isYoyo","repeatRefresh","onRepeat","_renderZeroDurationTween","prevRatio","overwrittenProps","curLookup","curOverwriteProps","killingTargets","propTweenLookup","firstPT","_arraysMatch","a1","a2","_addAliasesToVars","aliases","propertyAliases","onReverseComplete","onReverseCompleteParams","_setterAttribute","setAttribute","_setterWithModifier","mSet","mt","_renderPropTweens","_addPluginModifier","_killPropTweensOf","hasNonDependentRemaining","op","dep","pt2","first","last","pr","change","renderer","TweenMax","TweenLite","TimelineLite","TimelineMax","registerPlugin","args","_createPlugin","isFunc","Plugin","instanceDefaults","statics","register","toUpperCase","getProperty","unit","uncache","getter","format","quickSetter","setters","isTweening","registerEffect","effect","plugins","extendTimeline","pluginName","registerEase","parseEase","exportRoot","includeDelayedCalls","utils","wrap","range","wrapYoyo","total","normalize","clamp","pipe","functions","reduce","unitize","interpolate","mutate","interpolators","il","isString","master","install","effects","ticker","globalTimeline","core","globals","getCache","_getPluginPropTween","_buildModifierPlugin","_addModifiers","modifiers","_renderCSSProp","_renderPropWithEnd","_renderCSSPropWithBeginning","_renderRoundedCSSProp","_renderNonTweeningValue","_renderNonTweeningValueOnlyAtEnd","_setterCSSStyle","_setterCSSProp","setProperty","_setterTransform","_setterScale","scaleX","scaleY","_setterScaleWithRender","renderTransform","_setterTransformWithRender","_createElement","ns","createElementNS","createElement","_getComputedProperty","skipPrefixFallback","cs","getComputedStyle","getPropertyValue","_capsExp","_checkPropPrefix","_initCore","_docElement","documentElement","_tempDiv","_tempDivStyler","_transformProp","_transformOriginProp","cssText","_supports3D","_pluginInitted","_getAttributeFallbacks","attributesArray","hasAttribute","_getBBox","bounds","getBBox","error","_getBBoxHack","swapIfPossible","bbox","svg","ownerSVGElement","oldParent","parentNode","oldSibling","nextSibling","oldCSS","appendChild","display","_gsapBBox","insertBefore","removeChild","width","height","_isSVG","getCTM","_removeProperty","_transformProps","removeProperty","removeAttribute","_addNonTweeningPT","beginning","onlySetAtEnd","_convertToUnit","px","isSVG","curValue","curUnit","horizontal","_horizontalExp","isRootSVG","tagName","measureProperty","toPixels","_nonConvertibleUnits","body","_get","_propertyAliases","_parseTransform","_firstTwoOnly","zOrigin","_tweenComplexCSSString","startValues","startValue","endValue","endUnit","startUnit","relative","_numWithUnitExp","_convertKeywordsToPercentages","_keywordToPercent","_renderClearProps","clearTransforms","_isNullTransform","_getComputedTransformMatrixAsArray","matrixString","_identity2DMatrix","_getMatrix","force2D","addedToDOM","matrix","transform","baseVal","consolidate","offsetParent","_applySVGOrigin","origin","originIsAbsolute","smooth","matrixArray","pluginToAddPropTweensTo","determinant","xOriginOld","xOrigin","yOriginOld","yOrigin","xOffsetOld","xOffset","yOffsetOld","yOffset","tx","ty","originSplit","_addPxTranslate","_addRotationalPropTween","direction","cap","_RAD2DEG","finalValue","_addRawTransformPTs","transforms","endCache","startCache","_recentSetterPlugin","positionAndScale","rotation","all","Power0","Power1","Power2","Power3","Power4","Quad","Cubic","Quart","Quint","Strong","Elastic","Back","Bounce","Sine","Expo","Circ","_DEG2RAD","_atan2","atan2","_complexExp","autoAlpha","scale","alpha","_prefixes","element","deg","rad","turn","top","bottom","right","_specialProps","clearProps","_rotationalProperties","z","rotationX","rotationY","skewX","skewY","perspective","angle","a12","a22","t1","t2","t3","a13","a23","a33","a42","a43","a32","invertedScaleX","forceCSS","xPercent","offsetWidth","yPercent","offsetHeight","transformPerspective","_renderSVGTransforms","_renderCSSTransforms","_renderNon3DTransforms","_zeroDeg","_zeroPx","_endParenthesis","use3D","a11","a21","tan","CSSPlugin","specialProp","isTransformRelated","transformPropTween","smoothOrigin","autoRound","checkPrefix","gsapWithCSS"],"mappings":";;;;;;;;;ycA8Ba,SAAZA,EAAYC,SAA2B,iBAAXA,EACd,SAAdC,EAAcD,SAA2B,mBAAXA,EAClB,SAAZE,EAAYF,SAA2B,iBAAXA,EACb,SAAfG,EAAeH,eAA2B,IAAXA,EACnB,SAAZI,EAAYJ,SAA2B,iBAAXA,EACd,SAAdK,EAAcL,UAAmB,IAAVA,EACP,SAAhBM,UAAyC,oBAAZC,OACX,SAAlBC,EAAkBR,UAASC,EAAYD,IAAUD,EAAUC,GAYhD,SAAXS,EAAWC,UAAUC,EAAgBC,GAAOF,EAAOG,MAAcC,GAChD,SAAjBC,EAAkBC,EAAUhB,UAAUiB,QAAQC,KAAK,mBAAoBF,EAAU,SAAUhB,EAAO,yCAC1F,SAARmB,EAASC,EAASC,UAAcA,GAAYJ,QAAQC,KAAKE,GAC5C,SAAbE,EAAcC,EAAMC,UAASD,IAASV,GAASU,GAAQC,IAASb,IAAkBA,EAAcY,GAAQC,IAAUX,GACrG,SAAbY,WAAmB,EASR,SAAXC,EAAWC,OAETC,EAAeC,EADZC,EAASH,EAAQ,MAEhBvB,EAAU0B,IAAY7B,EAAY6B,KACtCH,EAAU,CAACA,MAENC,GAAiBE,EAAOC,OAAS,IAAIC,SAAU,KACpDH,EAAII,GAAgBC,OACbL,MAAQI,GAAgBJ,GAAGM,WAAWL,KAC7CF,EAAgBK,GAAgBJ,OAEjCA,EAAIF,EAAQO,OACLL,KACLF,EAAQE,KAAOF,EAAQE,GAAGE,QAAUJ,EAAQE,GAAG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GAASkS,EAAQI,MAAMtS,GAAQ,OAE5HT,GAAKonB,eAAe2Q,QC79BdO,GAAct4B,GAAKonB,eAAe2Q,KAAc/3B"}
\ No newline at end of file
diff --git a/esm/CSSPlugin.js b/esm/CSSPlugin.js
index ae5e5a9..dd5aafb 100644
--- a/esm/CSSPlugin.js
+++ b/esm/CSSPlugin.js
@@ -1,5 +1,5 @@
/*!
- * CSSPlugin 3.0.1
+ * CSSPlugin 3.0.2
* https://greensock.com
*
* Copyright 2008-2019, GreenSock. All rights reserved.
@@ -37,13 +37,13 @@ var _win,
alpha: "opacity"
},
_renderCSSProp = function _renderCSSProp(ratio, data) {
- return data.set(data.t, data.p, ~~((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);
+ return data.set(data.t, data.p, ~~((data.s + data.c * ratio) * 1000) / 1000 + data.u, data);
},
_renderPropWithEnd = function _renderPropWithEnd(ratio, data) {
- return data.set(data.t, data.p, ratio === 1 ? data.e : ~~((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);
+ return data.set(data.t, data.p, ratio === 1 ? data.e : ~~((data.s + data.c * ratio) * 1000) / 1000 + data.u, data);
},
_renderCSSPropWithBeginning = function _renderCSSPropWithBeginning(ratio, data) {
- return data.set(data.t, data.p, ratio ? ~~((data.s + data.c * ratio) * 10000) / 10000 + data.u : data.b, data);
+ return data.set(data.t, data.p, ratio ? ~~((data.s + data.c * ratio) * 1000) / 1000 + data.u : data.b, data);
},
//if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)
_renderRoundedCSSProp = function _renderRoundedCSSProp(ratio, data) {
@@ -86,15 +86,15 @@ _renderRoundedCSSProp = function _renderRoundedCSSProp(ratio, data) {
return e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://greensock.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).
},
- _getComputedProperty = function _getComputedProperty(target, property) {
+ _getComputedProperty = function _getComputedProperty(target, property, skipPrefixFallback) {
var cs = getComputedStyle(target);
- return cs[property] || cs.getPropertyValue(property.replace(_capsExp, "-$1").toLowerCase()) || cs.getPropertyValue(property); //css variables may not need caps swapped out for dashes and lowercase.
+ return cs[property] || cs.getPropertyValue(property.replace(_capsExp, "-$1").toLowerCase()) || cs.getPropertyValue(property) || !skipPrefixFallback && _getComputedProperty(target, _checkPropPrefix(property) || property, 1) || ""; //css variables may not need caps swapped out for dashes and lowercase.
},
+ _prefixes = "O,Moz,ms,Ms,Webkit".split(","),
_checkPropPrefix = function _checkPropPrefix(property, element) {
var e = element || _tempDiv,
s = e.style,
- i = 5,
- a = "O,Moz,ms,Ms,Webkit".split(",");
+ i = 5;
if (property in s) {
return property;
@@ -102,9 +102,9 @@ _renderRoundedCSSProp = function _renderRoundedCSSProp(ratio, data) {
property = property.charAt(0).toUpperCase() + property.substr(1);
- while (i-- && !(a[i] + property in s)) {}
+ while (i-- && !(_prefixes[i] + property in s)) {}
- return i < 0 ? null : (i === 3 ? "ms" : i >= 0 ? a[i] : "") + property;
+ return i < 0 ? null : (i === 3 ? "ms" : i >= 0 ? _prefixes[i] : "") + property;
},
_initCore = function _initCore() {
if (_windowExists()) {
@@ -178,8 +178,8 @@ _renderRoundedCSSProp = function _renderRoundedCSSProp(ratio, data) {
return bounds && !bounds.width && !bounds.x && !bounds.y ? {
- x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]),
- y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]),
+ x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]) || 0,
+ y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]) || 0,
width: 0,
height: 0
} : bounds;
@@ -300,7 +300,7 @@ _convertToUnit = function _convertToUnit(target, property, value, unit) {
} else {
value = target.style[property];
- if (!value || value === "auto" || uncache) {
+ if (!value || value === "auto" || uncache || ~value.indexOf("calc(")) {
value = _getComputedProperty(target, property) || _getProperty(target, property);
}
}
@@ -382,7 +382,7 @@ _convertToUnit = function _convertToUnit(target, property, value, unit) {
}
if (startUnit !== endUnit) {
- startNum = _convertToUnit(target, prop, startValue, endUnit);
+ startNum = _convertToUnit(target, prop, startValue, endUnit) || 0;
} //these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.
@@ -399,7 +399,7 @@ _convertToUnit = function _convertToUnit(target, property, value, unit) {
pt.c = index < end.length ? end.substring(index, end.length) : ""; //we use the "c" of the PropTween to store the final part of the string (after the last number)
} else {
- pt.r = prop === "display" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;
+ pt.r = prop === "display" && end === "none" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;
}
if (_relExp.test(end)) {
@@ -424,9 +424,9 @@ _convertToUnit = function _convertToUnit(target, property, value, unit) {
if (x === "top" || x === "bottom" || y === "left" || y === "right") {
//the user provided them in the wrong order, so flip them
- split = x;
+ value = x;
x = y;
- y = split;
+ y = value;
}
split[0] = _keywordToPercent[x] || x;
@@ -471,7 +471,7 @@ _convertToUnit = function _convertToUnit(target, property, value, unit) {
target.removeAttribute("transform");
}
- delete clearTransforms.x;
+ clearTransforms.uncache = 1;
}
}
}
@@ -479,14 +479,16 @@ _convertToUnit = function _convertToUnit(target, property, value, unit) {
// note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.
_specialProps = {
clearProps: function clearProps(plugin, target, property, endValue, tween) {
- var pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);
- pt.u = endValue;
- pt.pr = -10;
- pt.tween = tween;
+ if (tween.data !== "isFromStart") {
+ var pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);
+ pt.u = endValue;
+ pt.pr = -10;
+ pt.tween = tween;
- plugin._props.push(property);
+ plugin._props.push(property);
- return 1;
+ return 1;
+ }
}
/* className feature (about 0.4kb gzipped).
, className(plugin, target, property, endValue, tween) {
@@ -656,8 +658,8 @@ _identity2DMatrix = [1, 0, 0, 1, 0, 0],
if (smooth || smooth !== false && cache.smooth) {
tx = xOrigin - xOriginOld;
ty = yOrigin - yOriginOld;
- cache.xOffset += tx * a + ty * c - tx;
- cache.yOffset += tx * b + ty * d - ty;
+ cache.xOffset = xOffsetOld + (tx * a + ty * c) - tx;
+ cache.yOffset = yOffsetOld + (tx * b + ty * d) - ty;
} else {
cache.xOffset = cache.yOffset = 0;
}
@@ -667,6 +669,7 @@ _identity2DMatrix = [1, 0, 0, 1, 0, 0],
cache.smooth = !!smooth;
cache.origin = origin;
cache.originIsAbsolute = !!originIsAbsolute;
+ target.style[_transformOriginProp] = "0px 0px"; //otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).
if (pluginToAddPropTweensTo) {
_addNonTweeningPT(pluginToAddPropTweensTo, cache, "xOrigin", xOriginOld, xOrigin);
@@ -681,7 +684,7 @@ _identity2DMatrix = [1, 0, 0, 1, 0, 0],
_parseTransform = function _parseTransform(target, uncache) {
var cache = target._gsap || new GSCache(target);
- if ("x" in cache && !uncache) {
+ if ("x" in cache && !uncache && !cache.uncache) {
return cache;
}
@@ -865,6 +868,7 @@ _identity2DMatrix = [1, 0, 0, 1, 0, 0],
cache.xOffset = cache.yOffset = 0;
cache.force3D = _config.force3D;
cache.renderTransform = cache.svg ? _renderSVGTransforms : _supports3D ? _renderCSSTransforms : _renderNon3DTransforms;
+ cache.uncache = 0;
return cache;
},
_firstTwoOnly = function _firstTwoOnly(value) {
@@ -1220,15 +1224,15 @@ export var CSSPlugin = {
if (!transformPropTween) {
cache = target._gsap;
smooth = vars.smoothOrigin !== false && cache.smooth;
- transformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)
+ transformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache, 0, -1); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)
transformPropTween.dep = 1; //flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.
}
if (p === "scale") {
- this._pt = new PropTween(this._pt, target, "scale", startNum, relative ? relative * endNum : endNum - startNum, 0, 0, _setterScale);
- props.push("scale");
- continue;
+ this._pt = new PropTween(this._pt, cache, "scaleY", cache.scaleY, relative ? relative * endNum : endNum - cache.scaleY);
+ props.push("scaleY", p);
+ p += "X";
} else if (p === "transformOrigin") {
endValue = _convertKeywordsToPercentages(endValue); //in case something like "left top" or "bottom right" is passed in. Convert to percentages.
@@ -1265,6 +1269,8 @@ export var CSSPlugin = {
continue;
}
+ } else if (!(p in style)) {
+ p = _checkPropPrefix(p) || p;
}
if (isTransformRelated || (endNum || endNum === 0) && (startNum || startNum === 0) && !_complexExp.test(endValue) && p in style) {
@@ -1288,7 +1294,7 @@ export var CSSPlugin = {
//maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.
this.add(target, p, target[p], endValue, index, targets);
} else {
- _missingPlugin("Invalid " + p + " tween " + endValue + ". Missing plugin? gsap.registerPlugin()");
+ _missingPlugin(p, endValue);
continue;
}
diff --git a/esm/CSSRulePlugin.js b/esm/CSSRulePlugin.js
index c59ffc1..71d2b81 100644
--- a/esm/CSSRulePlugin.js
+++ b/esm/CSSRulePlugin.js
@@ -1,5 +1,5 @@
/*!
- * CSSRulePlugin 3.0.0
+ * CSSRulePlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -49,7 +49,7 @@ var gsap,
};
export var CSSRulePlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "cssRule",
init: function init(target, value, tween, index, targets) {
if (!_checkRegister() || typeof target.cssText === "undefined") {
diff --git a/esm/Draggable.js b/esm/Draggable.js
index 6d2fcc2..89253fe 100644
--- a/esm/Draggable.js
+++ b/esm/Draggable.js
@@ -3,7 +3,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/*!
- * Draggable 3.0.0
+ * Draggable 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -88,6 +88,15 @@ _copy = function _copy(obj, factor) {
}
return copy;
+},
+ _extend = function _extend(obj, defaults) {
+ for (var p in defaults) {
+ if (!(p in obj)) {
+ obj[p] = defaults[p];
+ }
+ }
+
+ return obj;
},
_renderQueueTick = function _renderQueueTick() {
return _renderQueue.forEach(function (func) {
@@ -182,11 +191,11 @@ _copy = function _copy(obj, factor) {
_addListener(event.target, "touchend", _onMultiTouchDocumentEnd);
},
- _getDocScrollTop = function _getDocScrollTop() {
- return _win.pageYOffset || _doc.scrollTop || _docElement.scrollTop || _body.scrollTop || 0;
+ _getDocScrollTop = function _getDocScrollTop(doc) {
+ return _win.pageYOffset || doc.scrollTop || doc.documentElement.scrollTop || doc.body.scrollTop || 0;
},
- _getDocScrollLeft = function _getDocScrollLeft() {
- return _win.pageXOffset || _doc.scrollLeft || _docElement.scrollLeft || _body.scrollLeft || 0;
+ _getDocScrollLeft = function _getDocScrollLeft(doc) {
+ return _win.pageXOffset || doc.scrollLeft || doc.documentElement.scrollLeft || doc.body.scrollLeft || 0;
},
_addScrollListener = function _addScrollListener(e, callback) {
_addListener(e, "scroll", callback);
@@ -203,7 +212,7 @@ _copy = function _copy(obj, factor) {
}
},
_isRoot = function _isRoot(e) {
- return !!(!e || e === _docElement || e === _doc || e === _doc.body || e === _win || !e.nodeType || !e.parentNode);
+ return !!(!e || e === _docElement || e.nodeType === 9 || e === _doc.body || e === _win || !e.nodeType || !e.parentNode);
},
_getMaxScroll = function _getMaxScroll(element, axis) {
var dim = axis === "x" ? "Width" : "Height",
@@ -259,11 +268,12 @@ _parseRect = function _parseRect(e) {
return _tempRect;
}
- var r = !_isUndefined(e.pageX) ? {
- left: e.pageX - _getDocScrollLeft(),
- top: e.pageY - _getDocScrollTop(),
- right: e.pageX - _getDocScrollLeft() + 1,
- bottom: e.pageY - _getDocScrollTop() + 1
+ var doc = e.ownerDocument || _doc,
+ r = !_isUndefined(e.pageX) ? {
+ left: e.pageX - _getDocScrollLeft(doc),
+ top: e.pageY - _getDocScrollTop(doc),
+ right: e.pageX - _getDocScrollLeft(doc) + 1,
+ bottom: e.pageY - _getDocScrollTop(doc) + 1
} : !e.nodeType && !_isUndefined(e.left) && !_isUndefined(e.top) ? e : _toArray(e)[0].getBoundingClientRect();
if (_isUndefined(r.right) && !_isUndefined(r.width)) {
@@ -338,6 +348,7 @@ _parseRect = function _parseRect(e) {
_getElementBounds = function _getElementBounds(element, context) {
context = _toArray(context)[0];
var isSVG = element.getBBox && element.ownerSVGElement,
+ doc = element.ownerDocument || _doc,
left,
right,
top,
@@ -354,10 +365,10 @@ _getElementBounds = function _getElementBounds(element, context) {
contextParent;
if (element === _win) {
- top = _getDocScrollTop();
- left = _getDocScrollLeft();
- right = left + (_docElement.clientWidth || element.innerWidth || _doc.body.clientWidth || 0);
- bottom = top + ((element.innerHeight || 0) - 20 < _docElement.clientHeight ? _docElement.clientHeight : element.innerHeight || _body.clientHeight || 0); //some browsers (like Firefox) ignore absolutely positioned elements, and collapse the height of the documentElement, so it could be 8px, for example, if you have just an absolutely positioned div. In that case, we use the innerHeight to resolve this.
+ top = _getDocScrollTop(doc);
+ left = _getDocScrollLeft(doc);
+ right = left + (doc.documentElement.clientWidth || element.innerWidth || doc.body.clientWidth || 0);
+ bottom = top + ((element.innerHeight || 0) - 20 < doc.documentElement.clientHeight ? doc.documentElement.clientHeight : element.innerHeight || doc.body.clientHeight || 0); //some browsers (like Firefox) ignore absolutely positioned elements, and collapse the height of the documentElement, so it could be 8px, for example, if you have just an absolutely positioned div. In that case, we use the innerHeight to resolve this.
} else if (context === _win || _isUndefined(context)) {
return element.getBoundingClientRect();
} else {
@@ -367,15 +378,19 @@ _getElementBounds = function _getElementBounds(element, context) {
bbox = element.getBBox();
width = bbox.width;
height = bbox.height;
- } else if (element.viewBox && (bbox = element.viewBox.baseVal)) {
- left = bbox.x || 0;
- top = bbox.y || 0;
- width = bbox.width;
- height = bbox.height;
} else {
- cs = _getComputedStyle(element);
- width = parseFloat(cs.width) || element.clientWidth || 0;
- height = parseFloat(cs.height) || element.clientHeight || 0;
+ if (element.viewBox && (bbox = element.viewBox.baseVal)) {
+ left = bbox.x || 0;
+ top = bbox.y || 0;
+ width = bbox.width;
+ height = bbox.height;
+ }
+
+ if (!width) {
+ cs = _getComputedStyle(element);
+ width = (parseFloat(cs.width) || element.clientWidth || 0) + parseFloat(cs.borderLeftWidth) + parseFloat(cs.borderRightWidth);
+ height = (parseFloat(cs.height) || element.clientHeight || 0) + parseFloat(cs.borderTopWidth) + parseFloat(cs.borderBottomWidth);
+ }
}
right = width;
@@ -496,9 +511,12 @@ _getElementBounds = function _getElementBounds(element, context) {
while (i--) {
e = elements[i];
- e.ondragstart = e.onselectstart = selectable ? null : _emptyFunc;
+ e.ondragstart = e.onselectstart = selectable ? null : _emptyFunc; //setStyle(e, "userSelect", (selectable ? "text" : "none"));
- _setStyle(e, "userSelect", selectable ? "text" : "none");
+ gsap.set(e, {
+ lazy: true,
+ userSelect: selectable ? "text" : "none"
+ });
}
},
_isFixed = function _isFixed(element) {
@@ -508,25 +526,294 @@ _getElementBounds = function _getElementBounds(element, context) {
element = element.parentNode;
- if (element && element !== _docElement) {
+ if (element && element.nodeType === 1) {
+ // avoid document fragments which will throw an error.
return _isFixed(element);
}
+},
+ _supports3D,
+ _addPaddingBR,
+ //The ScrollProxy class wraps an element's contents into another div (we call it "content") that we either add padding when necessary or apply a translate3d() transform in order to overscroll (scroll past the boundaries). This allows us to simply set the scrollTop/scrollLeft (or top/left for easier reverse-axis orientation, which is what we do in Draggable) and it'll do all the work for us. For example, if we tried setting scrollTop to -100 on a normal DOM element, it wouldn't work - it'd look the same as setting it to 0, but if we set scrollTop of a ScrollProxy to -100, it'll give the correct appearance by either setting paddingTop of the wrapper to 100 or applying a 100-pixel translateY.
+ScrollProxy = function ScrollProxy(element, vars) {
+ element = gsap.utils.toArray(element)[0];
+ vars = vars || {};
+ var content = document.createElement("div"),
+ style = content.style,
+ node = element.firstChild,
+ offsetTop = 0,
+ offsetLeft = 0,
+ prevTop = element.scrollTop,
+ prevLeft = element.scrollLeft,
+ scrollWidth = element.scrollWidth,
+ scrollHeight = element.scrollHeight,
+ extraPadRight = 0,
+ maxLeft = 0,
+ maxTop = 0,
+ elementWidth,
+ elementHeight,
+ contentHeight,
+ nextNode,
+ transformStart,
+ transformEnd;
+
+ if (_supports3D && vars.force3D !== false) {
+ transformStart = "translate3d(";
+ transformEnd = "px,0px)";
+ } else if (_transformProp) {
+ transformStart = "translate(";
+ transformEnd = "px)";
+ }
+
+ this.scrollTop = function (value, force) {
+ if (!arguments.length) {
+ return -this.top();
+ }
+
+ this.top(-value, force);
+ };
+
+ this.scrollLeft = function (value, force) {
+ if (!arguments.length) {
+ return -this.left();
+ }
+
+ this.left(-value, force);
+ };
+
+ this.left = function (value, force) {
+ if (!arguments.length) {
+ return -(element.scrollLeft + offsetLeft);
+ }
+
+ var dif = element.scrollLeft - prevLeft,
+ oldOffset = offsetLeft;
+
+ if ((dif > 2 || dif < -2) && !force) {
+ //if the user interacts with the scrollbar (or something else scrolls it, like the mouse wheel), we should kill any tweens of the ScrollProxy.
+ prevLeft = element.scrollLeft;
+ gsap.killTweensOf(this, {
+ left: 1,
+ scrollLeft: 1
+ });
+ this.left(-prevLeft);
+
+ if (vars.onKill) {
+ vars.onKill();
+ }
+
+ return;
+ }
+
+ value = -value; //invert because scrolling works in the opposite direction
+
+ if (value < 0) {
+ offsetLeft = value - 0.5 | 0;
+ value = 0;
+ } else if (value > maxLeft) {
+ offsetLeft = value - maxLeft | 0;
+ value = maxLeft;
+ } else {
+ offsetLeft = 0;
+ }
+
+ if (offsetLeft || oldOffset) {
+ if (!this._skip) {
+ style[_transformProp] = transformStart + -offsetLeft + "px," + -offsetTop + transformEnd;
+ }
+
+ if (offsetLeft + extraPadRight >= 0) {
+ style.paddingRight = offsetLeft + extraPadRight + "px";
+ }
+ }
+
+ element.scrollLeft = value | 0;
+ prevLeft = element.scrollLeft; //don't merge this with the line above because some browsers adjust the scrollLeft after it's set, so in order to be 100% accurate in tracking it, we need to ask the browser to report it.
+ };
+
+ this.top = function (value, force) {
+ if (!arguments.length) {
+ return -(element.scrollTop + offsetTop);
+ }
+
+ var dif = element.scrollTop - prevTop,
+ oldOffset = offsetTop;
+
+ if ((dif > 2 || dif < -2) && !force) {
+ //if the user interacts with the scrollbar (or something else scrolls it, like the mouse wheel), we should kill any tweens of the ScrollProxy.
+ prevTop = element.scrollTop;
+ gsap.killTweensOf(this, {
+ top: 1,
+ scrollTop: 1
+ });
+ this.top(-prevTop);
+
+ if (vars.onKill) {
+ vars.onKill();
+ }
+
+ return;
+ }
+
+ value = -value; //invert because scrolling works in the opposite direction
+
+ if (value < 0) {
+ offsetTop = value - 0.5 | 0;
+ value = 0;
+ } else if (value > maxTop) {
+ offsetTop = value - maxTop | 0;
+ value = maxTop;
+ } else {
+ offsetTop = 0;
+ }
+
+ if (offsetTop || oldOffset) {
+ if (!this._skip) {
+ style[_transformProp] = transformStart + -offsetLeft + "px," + -offsetTop + transformEnd;
+ }
+ }
+
+ element.scrollTop = value | 0;
+ prevTop = element.scrollTop;
+ };
+
+ this.maxScrollTop = function () {
+ return maxTop;
+ };
+
+ this.maxScrollLeft = function () {
+ return maxLeft;
+ };
+
+ this.disable = function () {
+ node = content.firstChild;
+
+ while (node) {
+ nextNode = node.nextSibling;
+ element.appendChild(node);
+ node = nextNode;
+ }
+
+ if (element === content.parentNode) {
+ //in case disable() is called when it's already disabled.
+ element.removeChild(content);
+ }
+ };
+
+ this.enable = function () {
+ node = element.firstChild;
+
+ if (node === content) {
+ return;
+ }
+
+ while (node) {
+ nextNode = node.nextSibling;
+ content.appendChild(node);
+ node = nextNode;
+ }
+
+ element.appendChild(content);
+ this.calibrate();
+ };
+
+ this.calibrate = function (force) {
+ var widthMatches = element.clientWidth === elementWidth,
+ cs,
+ x,
+ y;
+ prevTop = element.scrollTop;
+ prevLeft = element.scrollLeft;
+
+ if (widthMatches && element.clientHeight === elementHeight && content.offsetHeight === contentHeight && scrollWidth === element.scrollWidth && scrollHeight === element.scrollHeight && !force) {
+ return; //no need to recalculate things if the width and height haven't changed.
+ }
+
+ if (offsetTop || offsetLeft) {
+ x = this.left();
+ y = this.top();
+ this.left(-element.scrollLeft);
+ this.top(-element.scrollTop);
+ }
+
+ cs = _getComputedStyle(element); //first, we need to remove any width constraints to see how the content naturally flows so that we can see if it's wider than the containing element. If so, we've got to record the amount of overage so that we can apply that as padding in order for browsers to correctly handle things. Then we switch back to a width of 100% (without that, some browsers don't flow the content correctly)
+
+ if (!widthMatches || force) {
+ style.display = "block";
+ style.width = "auto";
+ style.paddingRight = "0px";
+ extraPadRight = Math.max(0, element.scrollWidth - element.clientWidth); //if the content is wider than the container, we need to add the paddingLeft and paddingRight in order for things to behave correctly.
+
+ if (extraPadRight) {
+ extraPadRight += parseFloat(cs.paddingLeft) + (_addPaddingBR ? parseFloat(cs.paddingRight) : 0);
+ }
+ }
+
+ style.display = "inline-block";
+ style.position = "relative";
+ style.overflow = "visible";
+ style.verticalAlign = "top";
+ style.boxSizing = "content-box";
+ style.width = "100%";
+ style.paddingRight = extraPadRight + "px"; //some browsers neglect to factor in the bottom padding when calculating the scrollHeight, so we need to add that padding to the content when that happens. Allow a 2px margin for error
+
+ if (_addPaddingBR) {
+ style.paddingBottom = cs.paddingBottom;
+ }
+
+ elementWidth = element.clientWidth;
+ elementHeight = element.clientHeight;
+ scrollWidth = element.scrollWidth;
+ scrollHeight = element.scrollHeight;
+ maxLeft = element.scrollWidth - elementWidth;
+ maxTop = element.scrollHeight - elementHeight;
+ contentHeight = content.offsetHeight;
+ style.display = "block";
+
+ if (x || y) {
+ this.left(x);
+ this.top(y);
+ }
+ };
+
+ this.content = content;
+ this.element = element;
+ this._skip = false;
+ this.enable();
},
_initCore = function _initCore(required) {
- if (_windowExists()) {
+ if (_windowExists() && document.body) {
_win = window;
_doc = document;
_docElement = _doc.documentElement;
_body = _doc.body;
_tempDiv = _createElement("div");
_supportsPointer = !!window.PointerEvent;
- _placeholderDiv = _doc.createElement("div");
+ _placeholderDiv = _createElement("div");
_placeholderDiv.style.cssText = "visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab";
_defaultCursor = _placeholderDiv.style.cursor === "grab" ? "grab" : "move";
_isAndroid = _win.navigator && _win.navigator.userAgent.toLowerCase().indexOf("android") !== -1; //Android handles touch events in an odd way and it's virtually impossible to "feature test" so we resort to UA sniffing
_isTouchDevice = "ontouchstart" in _docElement && "orientation" in _win;
+ _addPaddingBR = function () {
+ //this function is in charge of analyzing browser behavior related to padding. It sets the _addPaddingBR to true if the browser doesn't normally factor in the bottom or right padding on the element inside the scrolling area, and it sets _addPaddingLeft to true if it's a browser that requires the extra offset (offsetLeft) to be added to the paddingRight (like Opera).
+ var div = _createElement("div"),
+ child = _createElement("div"),
+ childStyle = child.style,
+ parent = _body,
+ val;
+
+ childStyle.display = "inline-block";
+ childStyle.position = "relative";
+ div.style.cssText = child.innerHTML = "width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden";
+ div.appendChild(child);
+ parent.appendChild(div);
+ val = child.offsetHeight + 18 > div.scrollHeight; //div.scrollHeight should be child.offsetHeight + 20 because of the 10px of padding on each side, but some browsers ignore one side. We allow a 2px margin of error.
+
+ parent.removeChild(div);
+ return val;
+ }();
+
_touchEventLookup = function (types) {
//we create an object that makes it easy to translate touch event types into their "pointer" counterparts if we're in a browser that uses those instead. Like IE10 uses "MSPointerDown" instead of "touchstart", for example.
var standard = types.split(","),
@@ -576,6 +863,7 @@ _getElementBounds = function _getElementBounds(element, context) {
_transformProp = _checkPrefix(_transformProp);
_transformOriginProp = _checkPrefix(_transformOriginProp);
_toArray = gsap.utils.toArray;
+ _supports3D = !!_checkPrefix("perspective");
} else if (required) {
console.warn("Please gsap.registerPlugin(Draggable)");
}
@@ -650,17 +938,15 @@ function (_EventDispatcher) {
_this2.autoScroll = vars.autoScroll || 0;
_this2.lockedAxis = null;
_this2.allowEventDefault = !!vars.allowEventDefault;
- gsap.set(target, {
- x: "+=0"
- }); // to ensure that transforms are instantiated.
+ gsap.getProperty(target, "x"); // to ensure that transforms are instantiated.
var type = (vars.type || "x,y").toLowerCase(),
xyMode = ~type.indexOf("x") || ~type.indexOf("y"),
rotationMode = type.indexOf("rotation") !== -1,
xProp = rotationMode ? "rotation" : xyMode ? "x" : "left",
yProp = xyMode ? "y" : "top",
- allowX = !!(~type.indexOf("x") || ~type.indexOf("left")),
- allowY = !!(~type.indexOf("y") || ~type.indexOf("top")),
+ allowX = !!(~type.indexOf("x") || ~type.indexOf("left") || type === "scroll"),
+ allowY = !!(~type.indexOf("y") || ~type.indexOf("top") || type === "scroll"),
minimumMovement = vars.minimumMovement || 2,
self = _assertThisInitialized(_this2),
triggers = _toArray(vars.trigger || vars.handle || target),
@@ -678,7 +964,9 @@ function (_EventDispatcher) {
getPropAsNum = function getPropAsNum(property, unit) {
return parseFloat(gsCache.get(target, property, unit));
},
+ ownerDoc = target.ownerDocument || _doc,
enabled,
+ scrollProxy,
startPointerX,
startPointerY,
startElementX,
@@ -735,8 +1023,8 @@ function (_EventDispatcher) {
changeY,
gap;
checkAutoScrollBounds = false;
- _windowProxy.scrollTop = _win.pageYOffset != null ? _win.pageYOffset : _docElement.scrollTop != null ? _docElement.scrollTop : _body.scrollTop;
- _windowProxy.scrollLeft = _win.pageXOffset != null ? _win.pageXOffset : _docElement.scrollLeft != null ? _docElement.scrollLeft : _body.scrollLeft;
+ _windowProxy.scrollTop = _win.pageYOffset != null ? _win.pageYOffset : ownerDoc.documentElement.scrollTop != null ? ownerDoc.documentElement.scrollTop : ownerDoc.body.scrollTop;
+ _windowProxy.scrollLeft = _win.pageXOffset != null ? _win.pageXOffset : ownerDoc.documentElement.scrollLeft != null ? ownerDoc.documentElement.scrollLeft : ownerDoc.body.scrollLeft;
pointerX = self.pointerX - _windowProxy.scrollLeft;
pointerY = self.pointerY - _windowProxy.scrollTop;
@@ -808,7 +1096,17 @@ function (_EventDispatcher) {
gsCache.rotation = x + "deg";
gsCache.renderTransform(1, gsCache);
} else {
- if (xyMode) {
+ if (scrollProxy) {
+ if (allowY) {
+ self.deltaY = y - scrollProxy.top();
+ scrollProxy.top(y);
+ }
+
+ if (allowX) {
+ self.deltaX = x - scrollProxy.left();
+ scrollProxy.left(x);
+ }
+ } else if (xyMode) {
if (allowY) {
self.deltaY = y - parseFloat(gsCache.y);
gsCache.y = y + "px";
@@ -871,6 +1169,9 @@ function (_EventDispatcher) {
self.y = parseFloat(gsCache.y);
} else if (rotationMode) {
self.x = self.rotation = parseFloat(gsCache.rotation);
+ } else if (scrollProxy) {
+ self.y = scrollProxy.top();
+ self.x = scrollProxy.left();
} else {
self.y = parseInt(target.style.top || (cs = _getComputedStyle(target)) && cs.top, 10) || 0;
self.x = parseInt(target.style.left || (cs || {}).left, 10) || 0;
@@ -1052,7 +1353,13 @@ function (_EventDispatcher) {
var bounds, targetBounds, snap, snapIsRaw;
hasBounds = false;
- if (!!vars.bounds) {
+ if (scrollProxy) {
+ scrollProxy.calibrate();
+ self.minX = minX = -scrollProxy.maxScrollLeft();
+ self.minY = minY = -scrollProxy.maxScrollTop();
+ self.maxX = maxX = self.maxY = maxY = 0;
+ hasBounds = true;
+ } else if (!!vars.bounds) {
bounds = _getBounds(vars.bounds, target.parentNode); //could be a selector/jQuery object or a DOM element or a generic object like {top:0, left:100, width:1000, height:800} or {minX:100, maxX:1100, minY:0, maxY:800}
if (rotationMode) {
@@ -1067,10 +1374,10 @@ function (_EventDispatcher) {
self.maxY = maxY = bounds.maxY;
} else {
targetBounds = _getBounds(target, target.parentNode);
- self.minX = minX = getPropAsNum(xProp) + bounds.left - targetBounds.left;
- self.minY = minY = getPropAsNum(yProp) + bounds.top - targetBounds.top;
- self.maxX = maxX = minX + (bounds.width - targetBounds.width);
- self.maxY = maxY = minY + (bounds.height - targetBounds.height);
+ self.minX = minX = Math.round(getPropAsNum(xProp, "px") + bounds.left - targetBounds.left);
+ self.minY = minY = Math.round(getPropAsNum(yProp, "px") + bounds.top - targetBounds.top);
+ self.maxX = maxX = Math.round(minX + (bounds.width - targetBounds.width));
+ self.maxY = maxY = Math.round(minY + (bounds.height - targetBounds.height));
}
if (minX > maxX) {
@@ -1102,14 +1409,14 @@ function (_EventDispatcher) {
snapY = null;
} else {
if (snap.points) {
- snapXY = buildPointSnapFunc(snapIsRaw ? snap : snap.points, minX, maxX, minY, maxY, snap.radius, 1);
+ snapXY = buildPointSnapFunc(snapIsRaw ? snap : snap.points, minX, maxX, minY, maxY, snap.radius, scrollProxy ? -1 : 1);
} else {
if (allowX) {
- snapX = buildSnapFunc(snapIsRaw ? snap : snap.x || snap.left || snap.scrollLeft, minX, maxX, 1);
+ snapX = buildSnapFunc(snapIsRaw ? snap : snap.x || snap.left || snap.scrollLeft, minX, maxX, scrollProxy ? -1 : 1);
}
if (allowY) {
- snapY = buildSnapFunc(snapIsRaw ? snap : snap.y || snap.top || snap.scrollTop, minY, maxY, 1);
+ snapY = buildSnapFunc(snapIsRaw ? snap : snap.y || snap.top || snap.scrollTop, minY, maxY, scrollProxy ? -1 : 1);
}
}
}
@@ -1138,11 +1445,11 @@ function (_EventDispatcher) {
inertia.rotation = _parseInertia(self, snapIsRaw ? snap : snap.rotation, maxX, minX, 1, forceZeroVelocity);
} else {
if (allowX) {
- inertia[xProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.x || snap.left, maxX, minX, 1, forceZeroVelocity || self.lockedAxis === "x");
+ inertia[xProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.x || snap.left, maxX, minX, scrollProxy ? -1 : 1, forceZeroVelocity || self.lockedAxis === "x");
}
if (allowY) {
- inertia[yProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.y || snap.top, maxY, minY, 1, forceZeroVelocity || self.lockedAxis === "y");
+ inertia[yProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.y || snap.top, maxY, minY, scrollProxy ? -1 : 1, forceZeroVelocity || self.lockedAxis === "y");
}
if (snap.points || _isArray(snap) && _isObject(snap[0])) {
@@ -1154,12 +1461,16 @@ function (_EventDispatcher) {
self.isThrowing = true;
overshootTolerance = !isNaN(vars.overshootTolerance) ? vars.overshootTolerance : vars.edgeResistance === 1 ? 0 : 1 - self.edgeResistance + 0.2;
- inertia.duration = {
- max: Math.max(vars.minDuration || 0, vars.maxDuration || 0) || 2,
- min: !isNaN(vars.minDuration) ? vars.minDuration : overshootTolerance === 0 || _isObject(inertia) && inertia.resistance > 1000 ? 0 : 0.5,
- overshoot: overshootTolerance
- };
- self.tween = tween = gsap.to(target, {
+
+ if (!inertia.duration) {
+ inertia.duration = {
+ max: Math.max(vars.minDuration || 0, "maxDuration" in vars ? vars.maxDuration : 2),
+ min: !isNaN(vars.minDuration) ? vars.minDuration : overshootTolerance === 0 || _isObject(inertia) && inertia.resistance > 1000 ? 0 : 0.5,
+ overshoot: overshootTolerance
+ };
+ }
+
+ self.tween = tween = gsap.to(scrollProxy || target, {
inertia: inertia,
data: "_draggable",
onComplete: onThrowComplete,
@@ -1169,6 +1480,10 @@ function (_EventDispatcher) {
});
if (!vars.fastMode) {
+ if (scrollProxy) {
+ scrollProxy._skip = true; //Microsoft browsers have a bug that causes them to briefly render the position incorrectly (it flashes to the end state when we seek() the tween even though we jump right back to the current position, and this only seems to happen when we're affecting both top and left), so we set a _suspendTransforms flag to prevent it from actually applying the values in the ScrollProxy.
+ }
+
tween.render(tween.duration(), true, true);
syncXY(true, true);
self.endX = self.x;
@@ -1180,17 +1495,21 @@ function (_EventDispatcher) {
tween.play(0);
syncXY(true, true);
+
+ if (scrollProxy) {
+ scrollProxy._skip = false; //Microsoft browsers have a bug that causes them to briefly render the position incorrectly (it flashes to the end state when we seek() the tween even though we jump right back to the current position, and this only seems to happen when we're affecting both top and left), so we set a _suspendTransforms flag to prevent it from actually applying the values in the ScrollProxy.
+ }
}
} else if (hasBounds) {
self.applyBounds();
}
},
updateMatrix = function updateMatrix(shiftStart) {
- var start = matrix || new Matrix2D(),
+ var start = matrix,
p;
matrix = getGlobalMatrix(target.parentNode, true);
- if (shiftStart && self.isPressed && !matrix.equals(start)) {
+ if (shiftStart && self.isPressed && !matrix.equals(start || new Matrix2D())) {
//if the matrix changes WHILE the element is pressed, we must adjust the startPointerX and startPointerY accordingly, so we invert the original matrix and figure out where the pointerX and pointerY were in the global space, then apply the new matrix to get the updated coordinates.
p = start.inverse().apply({
x: startPointerX,
@@ -1209,7 +1528,9 @@ function (_EventDispatcher) {
recordStartPositions = function recordStartPositions() {
var edgeTolerance = 1 - self.edgeResistance,
parsedOrigin,
- parent;
+ parent,
+ x,
+ y;
updateMatrix(false);
if (matrix) {
@@ -1224,33 +1545,47 @@ function (_EventDispatcher) {
if (dirty) {
setPointerPosition(self.pointerX, self.pointerY);
render(true);
- } //if the element is in the process of tweening, don't force snapping to occur because it could make it jump. Imagine the user throwing, then before it's done, clicking on the element in its inbetween state.
-
+ }
- if (isTweening()) {
- syncXY(true, true);
+ if (scrollProxy) {
calculateBounds();
+ startElementY = scrollProxy.top();
+ startElementX = scrollProxy.left();
} else {
- self.applyBounds();
- }
+ //if the element is in the process of tweening, don't force snapping to occur because it could make it jump. Imagine the user throwing, then before it's done, clicking on the element in its inbetween state.
+ if (isTweening()) {
+ syncXY(true, true);
+ calculateBounds();
+ } else {
+ self.applyBounds();
+ }
- if (rotationMode) {
- parsedOrigin = target.ownerSVGElement ? [gsCache.xOrigin - target.getBBox().x, gsCache.yOrigin - target.getBBox().y] : (_getComputedStyle(target)[_transformOriginProp] || "0 0").split(" ");
- rotationOrigin = self.rotationOrigin = getGlobalMatrix(target).apply({
- x: parseFloat(parsedOrigin[0]) || 0,
- y: parseFloat(parsedOrigin[1]) || 0
- });
- syncXY(true, true);
- startElementX = self.x; //starting rotation (x always refers to rotation in type:"rotation", measured in degrees)
+ if (rotationMode) {
+ parsedOrigin = target.ownerSVGElement ? [gsCache.xOrigin - target.getBBox().x, gsCache.yOrigin - target.getBBox().y] : (_getComputedStyle(target)[_transformOriginProp] || "0 0").split(" ");
+ rotationOrigin = self.rotationOrigin = getGlobalMatrix(target).apply({
+ x: parseFloat(parsedOrigin[0]) || 0,
+ y: parseFloat(parsedOrigin[1]) || 0
+ });
+ syncXY(true, true);
+ x = self.pointerX - rotationOrigin.x;
+ y = rotationOrigin.y - self.pointerY;
- startElementY = self.y = Math.atan2(rotationOrigin.y - self.pointerY, self.pointerX - rotationOrigin.x) * _RAD2DEG;
- } else {
- parent = !isFixed && target.parentNode;
- startScrollTop = parent ? parent.scrollTop || 0 : 0;
- startScrollLeft = parent ? parent.scrollLeft || 0 : 0;
- startElementY = getPropAsNum(yProp); //record the starting top and left values so that we can just add the mouse's movement to them later.
+ if (isFixed) {
+ x -= _getDocScrollLeft(ownerDoc);
+ y += _getDocScrollTop(ownerDoc);
+ }
+
+ startElementX = self.x; //starting rotation (x always refers to rotation in type:"rotation", measured in degrees)
+
+ startElementY = self.y = Math.atan2(y, x) * _RAD2DEG;
+ } else {
+ parent = !isFixed && target.parentNode;
+ startScrollTop = parent ? parent.scrollTop || 0 : 0;
+ startScrollLeft = parent ? parent.scrollLeft || 0 : 0;
+ startElementY = getPropAsNum(yProp, "px"); //record the starting top and left values so that we can just add the mouse's movement to them later.
- startElementX = getPropAsNum(xProp);
+ startElementX = getPropAsNum(xProp, "px");
+ }
}
if (hasBounds && edgeTolerance) {
@@ -1295,7 +1630,7 @@ function (_EventDispatcher) {
if (_touchEventLookup[e.type]) {
//note: on iOS, BOTH touchmove and mousemove are dispatched, but the mousemove has pageY and pageX of 0 which would mess up the calculations and needlessly hurt performance.
- touchEventTarget = ~e.type.indexOf("touch") ? e.currentTarget || e.target : _doc; //pointer-based touches (for Microsoft browsers) don't remain locked to the original target like other browsers, so we must use the document instead. The event type would be "MSPointerDown" or "pointerdown".
+ touchEventTarget = ~e.type.indexOf("touch") ? e.currentTarget || e.target : ownerDoc; //pointer-based touches (for Microsoft browsers) don't remain locked to the original target like other browsers, so we must use the document instead. The event type would be "MSPointerDown" or "pointerdown".
_addListener(touchEventTarget, "touchend", onRelease);
@@ -1303,18 +1638,18 @@ function (_EventDispatcher) {
_addListener(touchEventTarget, "touchcancel", onRelease);
- _addListener(_doc, "touchstart", _onMultiTouchDocument);
+ _addListener(ownerDoc, "touchstart", _onMultiTouchDocument);
} else {
touchEventTarget = null;
- _addListener(_doc, "mousemove", onMove); //attach these to the document instead of the box itself so that if the user's mouse moves too quickly (and off of the box), things still work.
+ _addListener(ownerDoc, "mousemove", onMove); //attach these to the document instead of the box itself so that if the user's mouse moves too quickly (and off of the box), things still work.
}
touchDragAxis = null;
if (!_supportsPointer) {
- _addListener(_doc, "mouseup", onRelease);
+ _addListener(ownerDoc, "mouseup", onRelease);
if (e && e.target) {
_addListener(e.target, "mouseup", onRelease); //we also have to listen directly on the element because some browsers don't bubble up the event to the _doc on elements with contentEditable="true"
@@ -1372,7 +1707,7 @@ function (_EventDispatcher) {
_recordMaxScrolls(target.parentNode);
}
- if (target.parentNode && self.autoScroll && !rotationMode && target.parentNode._gsMaxScrollX && !_placeholderDiv.parentNode && !target.getBBox) {
+ if (target.parentNode && self.autoScroll && !scrollProxy && !rotationMode && target.parentNode._gsMaxScrollX && !_placeholderDiv.parentNode && !target.getBBox) {
//add a placeholder div to prevent the parent container from collapsing when the user drags the element left.
_placeholderDiv.style.width = target.parentNode.scrollWidth + "px";
target.parentNode.appendChild(_placeholderDiv);
@@ -1385,11 +1720,17 @@ function (_EventDispatcher) {
}
self.isThrowing = false;
- gsap.killTweensOf(target, killProps, true); //in case the user tries to drag it before the last tween is done.
+ gsap.killTweensOf(scrollProxy || target, killProps, true); //in case the user tries to drag it before the last tween is done.
+
+ if (scrollProxy) {
+ gsap.killTweensOf(target, {
+ scrollTo: 1
+ }, true); //just in case the original target's scroll position is being tweened somewhere else.
+ }
self.tween = self.lockedAxis = null;
- if (vars.zIndexBoost || !rotationMode && vars.zIndexBoost !== false) {
+ if (vars.zIndexBoost || !rotationMode && !scrollProxy && vars.zIndexBoost !== false) {
target.style.zIndex = Draggable.zIndex++;
}
@@ -1401,7 +1742,10 @@ function (_EventDispatcher) {
i = triggers.length;
while (--i > -1) {
- _setStyle(triggers[i], "cursor", vars.activeCursor || vars.cursor || (_defaultCursor === "grab" ? "grabbing" : _defaultCursor));
+ //_setStyle(triggers[i], "cursor", vars.activeCursor || vars.cursor || (_defaultCursor === "grab" ? "grabbing" : _defaultCursor));
+ gsap.set(triggers[i], {
+ cursor: vars.activeCursor || vars.cursor || (_defaultCursor === "grab" ? "grabbing" : _defaultCursor)
+ });
}
}
@@ -1488,7 +1832,7 @@ function (_EventDispatcher) {
checkAutoScrollBounds = true;
}
- setPointerPosition(e.pageX - (isFixed ? _getDocScrollLeft() : 0), e.pageY - (isFixed ? _getDocScrollTop() : 0), hasMoveCallback);
+ setPointerPosition(e.pageX - (isFixed ? _getDocScrollLeft(ownerDoc) : 0), e.pageY - (isFixed ? _getDocScrollTop(ownerDoc) : 0), hasMoveCallback);
},
setPointerPosition = function setPointerPosition(pointerX, pointerY, invokeOnMove) {
var dragTolerance = 1 - self.dragResistance,
@@ -1662,15 +2006,15 @@ function (_EventDispatcher) {
_removeListener(touchEventTarget, "touchcancel", onRelease);
- _removeListener(_doc, "touchstart", _onMultiTouchDocument);
+ _removeListener(ownerDoc, "touchstart", _onMultiTouchDocument);
} else {
- _removeListener(_doc, "mousemove", onMove);
+ _removeListener(ownerDoc, "mousemove", onMove);
}
_removeListener(_win, "touchforcechange", _preventDefault);
if (!_supportsPointer) {
- _removeListener(_doc, "mouseup", onRelease);
+ _removeListener(ownerDoc, "mouseup", onRelease);
if (e && e.target) {
_removeListener(e.target, "mouseup", onRelease);
@@ -1767,8 +2111,8 @@ function (_EventDispatcher) {
if (eventTarget.click) {
//some browsers (like mobile Safari) don't properly trigger the click event
eventTarget.click();
- } else if (_doc.createEvent) {
- syntheticEvent = _doc.createEvent("MouseEvents");
+ } else if (ownerDoc.createEvent) {
+ syntheticEvent = ownerDoc.createEvent("MouseEvents");
syntheticEvent.initMouseEvent("click", true, true, _win, 1, self.pointerEvent.screenX, self.pointerEvent.screenY, self.pointerX, self.pointerY, false, false, false, false, 0, null);
eventTarget.dispatchEvent(syntheticEvent);
}
@@ -1801,7 +2145,7 @@ function (_EventDispatcher) {
return true;
},
updateScroll = function updateScroll(e) {
- if (e && self.isDragging) {
+ if (e && self.isDragging && !scrollProxy) {
var parent = e.target || target.parentNode,
deltaX = parent.scrollLeft - parent._gsScrollX,
deltaY = parent.scrollTop - parent._gsScrollY;
@@ -1950,18 +2294,18 @@ function (_EventDispatcher) {
return direction;
};
- _this2.applyBounds = function (newBounds) {
+ _this2.applyBounds = function (newBounds, sticky) {
var x, y, forceZeroVelocity, e, parent, isRoot;
if (newBounds && vars.bounds !== newBounds) {
vars.bounds = newBounds;
- return self.update(true);
+ return self.update(true, sticky);
}
syncXY(true);
calculateBounds();
- if (hasBounds) {
+ if (hasBounds && !isTweening()) {
x = self.x;
y = self.y;
@@ -1994,8 +2338,8 @@ function (_EventDispatcher) {
_recordMaxScrolls(target.parentNode);
e = target;
- _windowProxy.scrollTop = _win.pageYOffset != null ? _win.pageYOffset : _docElement.scrollTop != null ? _docElement.scrollTop : _body.scrollTop;
- _windowProxy.scrollLeft = _win.pageXOffset != null ? _win.pageXOffset : _docElement.scrollLeft != null ? _docElement.scrollLeft : _body.scrollLeft;
+ _windowProxy.scrollTop = _win.pageYOffset != null ? _win.pageYOffset : ownerDoc.documentElement.scrollTop != null ? ownerDoc.documentElement.scrollTop : ownerDoc.body.scrollTop;
+ _windowProxy.scrollLeft = _win.pageXOffset != null ? _win.pageXOffset : ownerDoc.documentElement.scrollLeft != null ? ownerDoc.documentElement.scrollLeft : ownerDoc.body.scrollLeft;
while (e && !isRoot) {
//walk up the chain and sense wherever the scrollTop/scrollLeft exceeds the maximum.
@@ -2054,11 +2398,8 @@ function (_EventDispatcher) {
_recordMaxScrolls(target.parentNode);
checkAutoScrollBounds = self.isDragging;
- render(true);
- }
+ render(true); //in case reparenting occurred.
- if (self.autoScroll) {
- //in case reparenting occurred.
_removeScrollListener(target, updateScroll);
_addScrollListener(target, updateScroll);
@@ -2068,7 +2409,12 @@ function (_EventDispatcher) {
};
_this2.enable = function (type) {
- var id, i, trigger;
+ var vars = {
+ lazy: true
+ },
+ id,
+ i,
+ trigger;
if (type !== "soft") {
i = triggers.length;
@@ -2086,16 +2432,21 @@ function (_EventDispatcher) {
if (!rotationMode && vars.cursor !== false) {
- _setStyle(trigger, "cursor", vars.cursor || _defaultCursor);
+ vars.cursor = vars.cursor || _defaultCursor;
}
- _setStyle(trigger, "touchCallout", "none");
+ if (gsap.utils.checkPrefix("touchCallout")) {
+ vars.touchCallout = "none";
+ }
- _setStyle(trigger, "touchAction", allowX === allowY ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x");
+ vars.touchAction = allowX === allowY ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x";
+ gsap.set(trigger, vars);
if (trigger.getBBox && trigger.ownerSVGElement) {
// a bug in chrome doesn't respect touch-action on SVG elements - it only works if we set it on the parent SVG.
- _setStyle(trigger.ownerSVGElement, "touchAction", allowX === allowY ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x");
+ gsap.set(trigger.ownerSVGElement, {
+ touchAction: allowX === allowY ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x"
+ });
}
if (!self.vars.allowContextMenu) {
@@ -2111,14 +2462,22 @@ function (_EventDispatcher) {
enabled = true;
if (InertiaPlugin && type !== "soft") {
- InertiaPlugin.track(target, xyMode ? "x,y" : rotationMode ? "rotation" : "top,left");
+ InertiaPlugin.track(scrollProxy || target, xyMode ? "x,y" : rotationMode ? "rotation" : "top,left");
}
target._gsDragID = id = "d" + _lookupCount++;
- _lookup[id] = self; //syncXY();
+ _lookup[id] = self;
+
+ if (scrollProxy) {
+ scrollProxy.enable();
+ scrollProxy.element._gsDragID = id;
+ }
+
+ if (vars.bounds) {
+ recordStartPositions();
+ self.applyBounds();
+ }
- recordStartPositions();
- self.update(true);
return self;
};
@@ -2164,9 +2523,9 @@ function (_EventDispatcher) {
_removeListener(touchEventTarget, "touchmove", onMove);
}
- _removeListener(_doc, "mouseup", onRelease);
+ _removeListener(ownerDoc, "mouseup", onRelease);
- _removeListener(_doc, "mousemove", onMove);
+ _removeListener(ownerDoc, "mousemove", onMove);
}
_removeScrollListener(target, updateScroll);
@@ -2174,7 +2533,11 @@ function (_EventDispatcher) {
enabled = false;
if (InertiaPlugin && type !== "soft") {
- InertiaPlugin.untrack(target, xyMode ? "x,y" : rotationMode ? "rotation" : "top,left");
+ InertiaPlugin.untrack(scrollProxy || target, xyMode ? "x,y" : rotationMode ? "rotation" : "top,left");
+ }
+
+ if (scrollProxy) {
+ scrollProxy.disable();
}
_removeFromRenderQueue(render);
@@ -2194,7 +2557,7 @@ function (_EventDispatcher) {
_this2.kill = function () {
self.isThrowing = false;
- gsap.killTweensOf(target, killProps, true);
+ gsap.killTweensOf(scrollProxy || target, killProps, true);
self.disable();
gsap.set(triggers, {
clearProps: "userSelect"
@@ -2203,6 +2566,21 @@ function (_EventDispatcher) {
return self;
};
+ if (~type.indexOf("scroll")) {
+ scrollProxy = _this2.scrollProxy = new ScrollProxy(target, _extend({
+ onKill: function onKill() {
+ //ScrollProxy's onKill() gets called if/when the ScrollProxy senses that the user interacted with the scroll position manually (like using the scrollbar). IE9 doesn't fire the "mouseup" properly when users drag the scrollbar of an element, so this works around that issue.
+ if (self.isPressed) {
+ onRelease(null);
+ }
+ }
+ }, vars)); //a bug in many Android devices' stock browser causes scrollTop to get forced back to 0 after it is altered via JS, so we set overflow to "hidden" on mobile/touch devices (they hide the scroll bar anyway). That works around the bug. (This bug is discussed at https://code.google.com/p/android/issues/detail?id=19625)
+
+ target.style.overflowY = allowY && !_isTouchDevice ? "auto" : "hidden";
+ target.style.overflowX = allowX && !_isTouchDevice ? "auto" : "hidden";
+ target = scrollProxy.content;
+ }
+
if (rotationMode) {
killProps.rotation = 1;
} else {
@@ -2303,6 +2681,6 @@ _setDefaults(Draggable.prototype, {
});
Draggable.zIndex = 1000;
-Draggable.version = "3.0.0";
+Draggable.version = "3.0.2";
_getGSAP() && gsap.registerPlugin(Draggable);
export { Draggable as default };
\ No newline at end of file
diff --git a/esm/EasePack.js b/esm/EasePack.js
index 97fbeac..598a2df 100644
--- a/esm/EasePack.js
+++ b/esm/EasePack.js
@@ -1,5 +1,5 @@
/*!
- * EasePack 3.0.0
+ * EasePack 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -205,7 +205,7 @@ export var EasePack = {
for (var p in EasePack) {
EasePack[p].register = _initCore;
- EasePack[p].version = "3.0.0";
+ EasePack[p].version = "3.0.2";
}
_getGSAP() && gsap.registerPlugin(SlowMo);
diff --git a/esm/EaselPlugin.js b/esm/EaselPlugin.js
index bf3de7e..31856b7 100644
--- a/esm/EaselPlugin.js
+++ b/esm/EaselPlugin.js
@@ -1,5 +1,5 @@
/*!
- * EaselPlugin 3.0.0
+ * EaselPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -259,7 +259,7 @@ var gsap,
};
export var EaselPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "easel",
init: function init(target, value, tween, index, targets) {
if (!_coreInitted) {
diff --git a/esm/MotionPathPlugin.js b/esm/MotionPathPlugin.js
index 0b9f871..dd37404 100644
--- a/esm/MotionPathPlugin.js
+++ b/esm/MotionPathPlugin.js
@@ -1,5 +1,5 @@
/*!
- * MotionPathPlugin 3.0.0
+ * MotionPathPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -153,7 +153,7 @@ var _xProps = ["x", "translateX", "left", "marginLeft"],
};
export var MotionPathPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "motionPath",
register: function register(core, Plugin, propTween) {
gsap = core;
@@ -267,6 +267,8 @@ export var MotionPathPlugin = {
});
},
getGlobalMatrix: getGlobalMatrix,
+ getPositionOnPath: getPositionOnPath,
+ cacheRawPathMeasurements: cacheRawPathMeasurements,
arrayToRawPath: function arrayToRawPath(value, vars) {
vars = vars || {};
diff --git a/esm/PixiPlugin.js b/esm/PixiPlugin.js
index 7c5eeb2..0ee506a 100644
--- a/esm/PixiPlugin.js
+++ b/esm/PixiPlugin.js
@@ -1,5 +1,5 @@
/*!
- * PixiPlugin 3.0.0
+ * PixiPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -327,7 +327,7 @@ for (i = 0; i < _xyContexts.length; i++) {
}
export var PixiPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "pixi",
register: function register(core, Plugin, propTween) {
gsap = core;
diff --git a/esm/ScrollToPlugin.js b/esm/ScrollToPlugin.js
index 0fdde87..3d82ede 100644
--- a/esm/ScrollToPlugin.js
+++ b/esm/ScrollToPlugin.js
@@ -1,5 +1,5 @@
/*!
- * ScrollToPlugin 3.0.0
+ * ScrollToPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -73,7 +73,7 @@ var gsap,
_initCore = function _initCore() {
gsap = _getGSAP();
- if (_windowExists() && gsap) {
+ if (_windowExists() && gsap && document.body) {
_window = window;
_body = document.body;
_docEl = document.documentElement;
@@ -87,9 +87,10 @@ var gsap,
};
export var ScrollToPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "scrollTo",
- register: function register(core, Plugin, propTween) {
+ rawVars: 1,
+ register: function register(core) {
gsap = core;
_initCore();
diff --git a/esm/TextPlugin.js b/esm/TextPlugin.js
index 9baf6ba..3770332 100644
--- a/esm/TextPlugin.js
+++ b/esm/TextPlugin.js
@@ -1,5 +1,5 @@
/*!
- * TextPlugin 3.0.0
+ * TextPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -17,7 +17,7 @@ var gsap,
};
export var TextPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "text",
init: function init(target, value, tween) {
var i = target.nodeName.toUpperCase(),
diff --git a/esm/gsap-core.js b/esm/gsap-core.js
index 490ae4b..45c3db7 100644
--- a/esm/gsap-core.js
+++ b/esm/gsap-core.js
@@ -3,7 +3,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/*!
- * GSAP 3.0.1
+ * GSAP 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -80,7 +80,7 @@ _relExp = /[\+-]=-?[\.\d]+/,
return (_installScope = _merge(scope, _globals)) && gsap;
},
_missingPlugin = function _missingPlugin(property, value) {
- return console.warn("Invalid", property, "tween of", value, "Missing plugin? gsap.registerPlugin()");
+ return console.warn("Invalid property", property, "set to", value, "Missing plugin? gsap.registerPlugin()");
},
_warn = function _warn(message, suppress) {
return !suppress && console.warn(message);
@@ -105,7 +105,7 @@ _relExp = /[\+-]=-?[\.\d]+/,
i;
if (!_isObject(target) && !_isFunction(target)) {
- return _isArray(targets) ? targets : [targets];
+ targets = [targets];
}
if (!(harnessPlugin = (target._gsap || {}).harness)) {
@@ -119,7 +119,7 @@ _relExp = /[\+-]=-?[\.\d]+/,
i = targets.length;
while (i--) {
- targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin));
+ targets[i] && (targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin))) || targets.splice(i, 1);
}
return targets;
@@ -369,8 +369,7 @@ _round = function _round(value) {
return !animation || animation._ts && _hasNoPausedAncestors(animation.parent);
},
_elapsedCycleDuration = function _elapsedCycleDuration(animation) {
- var cycleDuration;
- return animation._repeat ? (cycleDuration = animation.duration() + animation._rDelay) * ~~(animation._tTime / cycleDuration) : 0;
+ return animation._repeat ? ~~(animation._tTime / (animation = animation.duration() + animation._rDelay)) * animation : 0;
},
_parentToChildTotalTime = function _parentToChildTotalTime(parentTime, child) {
return child._ts > 0 ? (parentTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (parentTime - child._start) * child._ts;
@@ -427,7 +426,7 @@ _addToTimeline = function _addToTimeline(timeline, child, position) {
return 1;
}
- if (!force && tween._pt && tween.vars.lazy) {
+ if (!force && tween._pt && (tween._dur && tween.vars.lazy !== false || !tween._dur && tween.vars.lazy)) {
_lazyTweens.push(tween);
tween._lazy = [totalTime, suppressEvents];
@@ -461,7 +460,7 @@ _addToTimeline = function _addToTimeline(timeline, child, position) {
if (iteration !== prevIteration) {
prevRatio = 1 - ratio;
- if (tween.vars.repeatRefresh) {
+ if (tween.vars.repeatRefresh && tween._initted) {
tween.invalidate();
}
}
@@ -472,11 +471,8 @@ _addToTimeline = function _addToTimeline(timeline, child, position) {
return;
}
- if (ratio !== prevRatio || force) {
- if (!suppressEvents || totalTime) {
- //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.
- tween._zTime = totalTime;
- }
+ if (ratio !== prevRatio || force || tween._zTime === _tinyNum || !totalTime && tween._zTime) {
+ tween._zTime = totalTime || (suppressEvents ? _tinyNum : 0); //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.
tween.ratio = ratio;
@@ -517,7 +513,7 @@ _addToTimeline = function _addToTimeline(timeline, child, position) {
if (!suppressEvents) {
_callback(tween, tween.ratio ? "onComplete" : "onReverseComplete", true);
- tween._prom && tween.ratio && tween._prom();
+ tween._prom && tween._prom();
}
}
}
@@ -613,7 +609,7 @@ _addToTimeline = function _addToTimeline(timeline, child, position) {
},
_slice = [].slice,
_isArrayLike = function _isArrayLike(value) {
- return _isObject(value) && "length" in value && value.length - 1 in value && _isObject(value[0]) && value !== _win;
+ return value && _isObject(value) && "length" in value && value.length - 1 in value && _isObject(value[0]) && !value.nodeType && value !== _win;
},
_flatten = function _flatten(ar, leaveStrings, accumulator) {
if (accumulator === void 0) {
@@ -933,7 +929,7 @@ distribute = function distribute(v) {
_lazyRender();
}
- return params ? callback.apply(scope, params) : callback.call(scope, animation);
+ return params ? callback.apply(scope, params) : callback.call(scope);
},
_interrupt = function _interrupt(animation) {
_removeFromParent(animation);
@@ -1620,6 +1616,8 @@ function () {
}
if (this._tTime !== _totalTime || !this._dur) {
+ this._ts || (this._pTime = _totalTime); // otherwise, if an animation is paused, then the playhead is moved back to zero, then resumed, it'd revert back to the original time at the pause
+
_lazySafeRender(this, _totalTime, suppressEvents);
}
@@ -1627,7 +1625,7 @@ function () {
};
_proto.time = function time(value, suppressEvents) {
- return arguments.length ? this.totalTime(value + _elapsedCycleDuration(this), suppressEvents) : this._time;
+ return arguments.length ? this.totalTime((value + _elapsedCycleDuration(this)) % this.duration() || (value ? this._dur : 0), suppressEvents) : this._time; // note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!
};
_proto.totalProgress = function totalProgress(value, suppressEvents) {
@@ -1635,7 +1633,7 @@ function () {
};
_proto.progress = function progress(value, suppressEvents) {
- return arguments.length ? this.totalTime(this.duration() * value + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? this._time / this._dur : this.ratio;
+ return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? this._time / this._dur : this.ratio;
};
_proto.iteration = function iteration(value, suppressEvents) {
@@ -1804,11 +1802,11 @@ function () {
return this;
};
- _proto.isActive = function isActive() {
+ _proto.isActive = function isActive(hasStarted) {
var parent = this.parent || this._dp,
start = this._start,
rawTime;
- return !parent || this._ts && this._initted && parent.isActive() && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum;
+ return !parent || this._ts && (this._initted || !hasStarted) && parent.isActive(hasStarted) && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum;
};
_proto.eventCallback = function eventCallback(type, callback, params) {
@@ -1838,15 +1836,28 @@ function () {
_proto.then = function then(onFulfilled) {
var _this = this;
- if (onFulfilled === void 0) {
- onFulfilled = _emptyFunc;
- }
-
return new Promise(function (resolve) {
- _this._prom = function () {
- onFulfilled(_this);
- resolve();
+ var f = onFulfilled || _passThrough,
+ _resolve = function _resolve() {
+ var _then = _this.then;
+ _this.then = null; // temporarily null the then() method to avoid an infinite loop (see https://github.com/greensock/GSAP/issues/322)
+
+ f = f(_this);
+
+ if (f && (f.then || f === _this)) {
+ _this._prom = f;
+ _this.then = _then;
+ }
+
+ resolve(f);
+ _this.then = _then;
};
+
+ if (_this._initted && _this.totalProgress() === 1 && _this._ts >= 0 || !_this._tTime && _this._ts < 0) {
+ _resolve();
+ } else {
+ _this._prom = _resolve;
+ }
});
};
@@ -1867,6 +1878,7 @@ _setDefaults(Animation.prototype, {
_repeat: 0,
_yoyo: false,
parent: 0,
+ _initted: false,
_rDelay: 0,
_ts: 1,
_dp: 0,
@@ -1963,7 +1975,7 @@ function (_Animation) {
tDur = this._dirty ? this.totalDuration() : this._tDur,
dur = this._dur,
tTime = totalTime > tDur - _tinyNum && totalTime >= 0 && this !== _globalTimeline ? tDur : totalTime < _tinyNum ? 0 : totalTime,
- crossingStart = this._zTime < 0 !== totalTime < 0 && this._initted,
+ crossingStart = this._zTime < 0 !== totalTime < 0 && (this._initted || !dur),
time,
child,
next,
@@ -2164,7 +2176,7 @@ function (_Animation) {
if (!suppressEvents && !(totalTime < 0 && !prevTime)) {
_callback(this, tTime === tDur ? "onComplete" : "onReverseComplete", true);
- this._prom && tTime === tDur && this._prom();
+ this._prom && this._prom();
}
}
}
@@ -2330,7 +2342,7 @@ function (_Animation) {
i = tweens.length;
while (i--) {
- tweens[i].kill(targets, props);
+ _overwritingTween !== tweens[i] && tweens[i].kill(targets, props);
}
return this;
@@ -2344,7 +2356,7 @@ function (_Animation) {
while (child) {
if (child instanceof Tween) {
- if (_arrayContainsAny(child._targets, parsedTargets) && (!onlyActive || child.isActive())) {
+ if (_arrayContainsAny(child._targets, parsedTargets) && (!onlyActive || child.isActive(onlyActive === "started"))) {
a.push(child);
}
} else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) {
@@ -2661,7 +2673,7 @@ var _addComplexStringPropTween = function _addComplexStringPropTween(target, pro
}
if (end.charAt(1) === "=") {
- end = parseFloat(parsedStart) + parseFloat(end.substr(2)) * (end.charAt(0) === "-" ? -1 : 1) + getUnit(parsedStart);
+ end = parseFloat(parsedStart) + parseFloat(end.substr(2)) * (end.charAt(0) === "-" ? -1 : 1) + (getUnit(parsedStart) || 0);
}
}
@@ -2818,17 +2830,13 @@ _initTween = function _initTween(tween, time) {
immediateRender: immediateRender,
//zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
stagger: 0,
- parent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y:gsap.utils.cycle([-100,100])})
+ parent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y:gsap.utils.wrap([-100,100])})
})));
if (!immediateRender) {
- _initTween(tween._startAt, time); //ensures that the initial values are recorded
+ _initTween(tween._startAt, _tinyNum); //ensures that the initial values are recorded
-
- if (immediateRender) {
- !autoRevert && (tween._startAt = 0);
- }
} else if (!time) {
return;
}
@@ -2840,6 +2848,8 @@ _initTween = function _initTween(tween, time) {
harness = targets[0] ? _getCache(targets[0]).harness : 0;
harnessVars = harness && vars[harness.prop]; //someone may need to specify CSS-specific values AND non-CSS values, like if the element has an "x" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.
+ lazy = dur && _isNotFalse(lazy) || lazy && !dur;
+
for (i = 0; i < targets.length; i++) {
target = targets[i];
gsData = target._gsap || _harness(targets)[i]._gsap;
@@ -2883,13 +2893,13 @@ _initTween = function _initTween(tween, time) {
if (autoOverwrite) {
_overwritingTween = tween;
- _globalTimeline.killTweensOf(target, ptLookup, true); //Also make sure the overwriting doesn't overwrite THIS tween!!!
+ _globalTimeline.killTweensOf(target, ptLookup, "started"); //Also make sure the overwriting doesn't overwrite THIS tween!!!
_overwritingTween = 0;
}
- if (tween._pt && (_isNotFalse(lazy) && dur || lazy && !dur)) {
+ if (tween._pt && lazy) {
_lazyLookup[gsData.id] = 1;
}
}
@@ -2939,8 +2949,8 @@ _initTween = function _initTween(tween, time) {
_parseFuncOrString = function _parseFuncOrString(value, tween, i, target, targets) {
return _isFunction(value) ? value.call(tween, i, target, targets) : _isString(value) && ~value.indexOf("random(") ? _replaceRandom(value) : value;
},
- _staggerTweenProps = _callbackNames + ",repeat,repeatDelay,yoyo,yoyoEase",
- _staggerPropsToSkip = (_staggerTweenProps + ",id,stagger,delay,duration").split(",");
+ _staggerTweenProps = _callbackNames + ",repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",
+ _staggerPropsToSkip = (_staggerTweenProps + ",id,stagger,delay,duration,paused").split(",");
/*
* --------------------------------------------------------------------------------------
* TWEEN
@@ -2971,7 +2981,7 @@ function (_Animation2) {
overwrite = _this4$vars.overwrite,
keyframes = _this4$vars.keyframes,
defaults = _this4$vars.defaults,
- parsedTargets = toArray(targets),
+ parsedTargets = _isArray(targets) && _isNumber(targets[0]) ? [targets] : toArray(targets),
tl,
i,
copy,
@@ -2980,7 +2990,7 @@ function (_Animation2) {
curTarget,
staggerFunc,
staggerVarsToMerge;
- _this4._targets = parsedTargets.length ? _harness(parsedTargets) : _warn("GSAP target " + targets + " not found. https://greensock.com", !_config.nullTargetWarn) || [{}];
+ _this4._targets = parsedTargets.length ? _harness(parsedTargets) : _warn("GSAP target " + targets + " not found. https://greensock.com", !_config.nullTargetWarn) || [];
_this4._ptLookup = []; //PropTween lookup. An array containing an object for each target, having keys for each tweening property
_this4._overwrite = overwrite;
@@ -3099,7 +3109,7 @@ function (_Animation2) {
if (!dur) {
_renderZeroDurationTween(this, totalTime, suppressEvents, force);
- } else if (tTime !== this._tTime || force || this._startAt && this._zTime < 0 !== totalTime < 0) {
+ } else if (tTime !== this._tTime || !totalTime || force || this._startAt && this._zTime < 0 !== totalTime < 0) {
//this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)
time = tTime;
timeline = this.timeline;
@@ -3133,7 +3143,7 @@ function (_Animation2) {
prevIteration--;
}
- if (time === prevTime && !force) {
+ if (time === prevTime && !force && this._initted) {
//could be during the repeatDelay part. No need to render and fire callbacks.
return this;
}
@@ -3142,7 +3152,8 @@ function (_Animation2) {
//timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);
//repeatRefresh functionality
if (this.vars.repeatRefresh && !this._lock) {
- this._lock = 1;
+ this._lock = force = 1; //force, otherwise if lazy is true, the _attemptInitTween() will return and we'll jump out and get caught bouncing on each tick.
+
this.render(cycleDuration * iteration, true).invalidate()._lock = 0;
}
}
@@ -3203,7 +3214,7 @@ function (_Animation2) {
if (!suppressEvents && !(totalTime < 0 && !prevTime)) {
_callback(this, tTime === tDur ? "onComplete" : "onReverseComplete", true);
- this._prom && tTime === tDur && this._prom();
+ this._prom && this._prom();
}
}
}
@@ -3231,19 +3242,16 @@ function (_Animation2) {
vars = "all";
}
- if (_overwritingTween === this) {
- return _overwritingTween;
- }
-
if (!targets && (!vars || vars === "all")) {
+ this._lazy = 0;
+
if (this.parent) {
- this._lazy = 0;
return _interrupt(this);
}
}
if (this.timeline) {
- this.timeline.killTweensOf(targets, vars);
+ this.timeline.killTweensOf(targets, vars, !!_overwritingTween);
return this;
}
@@ -3366,7 +3374,6 @@ function (_Animation2) {
_setDefaults(Tween.prototype, {
_targets: [],
- _initted: 0,
_lazy: 0,
_startAt: 0,
_op: 0,
@@ -3412,7 +3419,7 @@ var _setterPlain = function _setterPlain(target, property, value) {
return _isFunction(target[property]) ? _setterFunc : _isUndefined(target[property]) && target.setAttribute ? _setterAttribute : _setterPlain;
},
_renderPlain = function _renderPlain(ratio, data) {
- return data.set(data.t, data.p, ~~((data.s + data.c * ratio) * 10000) / 10000, data);
+ return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 10000) / 10000, data);
},
_renderBoolean = function _renderBoolean(ratio, data) {
return data.set(data.t, data.p, !!(data.s + data.c * ratio), data);
@@ -3429,7 +3436,7 @@ var _setterPlain = function _setterPlain(target, property, value) {
s = data.e;
} else {
while (pt) {
- s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : ~~((pt.s + pt.c * ratio) * 10000) / 10000) + s; //we use the "p" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.
+ s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : Math.round((pt.s + pt.c * ratio) * 10000) / 10000) + s; //we use the "p" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.
pt = pt._next;
}
@@ -3571,7 +3578,7 @@ _config.stringFilter = _colorStringFilter;
* --------------------------------------------------------------------------------------
*/
-export var gsap = {
+var _gsap = {
registerPlugin: function registerPlugin() {
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
@@ -3743,16 +3750,25 @@ export var gsap = {
};
_forEachName("to,from,fromTo,delayedCall,set,killTweensOf", function (name) {
- return gsap[name] = Tween[name];
+ return _gsap[name] = Tween[name];
});
_ticker.add(Timeline.updateRoot);
-_quickTween = gsap.to({}, {
+_quickTween = _gsap.to({}, {
duration: 0
}); // ---- EXTRA PLUGINS --------------------------------------------------------
-var _addModifiers = function _addModifiers(tween, modifiers) {
+var _getPluginPropTween = function _getPluginPropTween(plugin, prop) {
+ var pt = plugin._pt;
+
+ while (pt && pt.p !== prop && pt.op !== prop && pt.fp !== prop) {
+ pt = pt._next;
+ }
+
+ return pt;
+},
+ _addModifiers = function _addModifiers(tween, modifiers) {
var targets = tween._targets,
p,
i,
@@ -3764,10 +3780,13 @@ var _addModifiers = function _addModifiers(tween, modifiers) {
while (i--) {
pt = tween._ptLookup[i][p];
- if (pt) {
- if (pt.d.modifier) {
- pt.d.modifier(modifiers[p], tween, targets[i], p);
+ if (pt && (pt = pt.d)) {
+ if (pt._pt) {
+ // is a plugin
+ pt = _getPluginPropTween(pt, p);
}
+
+ pt && pt.modifier && pt.modifier(modifiers[p], tween, targets[i], p);
}
}
}
@@ -3809,7 +3828,7 @@ var _addModifiers = function _addModifiers(tween, modifiers) {
}; //register core plugins
-gsap.registerPlugin({
+export var gsap = _gsap.registerPlugin({
name: "attr",
init: function init(target, vars, tween, index, targets) {
for (var p in vars) {
@@ -3824,11 +3843,12 @@ gsap.registerPlugin({
var i = value.length;
while (i--) {
- this.add(target, i, target[i], value[i]);
+ this.add(target, i, target[i] || 0, value[i]);
}
}
-}, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap));
-Tween.version = Timeline.version = gsap.version = "3.0.1";
+}, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap)) || _gsap; //to prevent the core plugins from being dropped via aggressive tree shaking, we must include them in the variable declaration in this way.
+
+Tween.version = Timeline.version = gsap.version = "3.0.2";
_coreReady = 1;
if (_windowExists()) {
diff --git a/esm/utils/matrix.js b/esm/utils/matrix.js
index eec3baa..95c5c79 100644
--- a/esm/utils/matrix.js
+++ b/esm/utils/matrix.js
@@ -1,5 +1,5 @@
/*!
- * matrix 3.0.0
+ * matrix 3.0.2
* https://greensock.com
*
* Copyright 2008-2019, GreenSock. All rights reserved.
@@ -51,6 +51,18 @@ _divTemps = [],
},
_svgOwner = function _svgOwner(element) {
return element.ownerSVGElement || ((element.tagName + "").toLowerCase() === "svg" ? element : null);
+},
+ _isFixed = function _isFixed(element) {
+ if (_win.getComputedStyle(element).position === "fixed") {
+ return true;
+ }
+
+ element = element.parentNode;
+
+ if (element && element.nodeType === 1) {
+ // avoid document fragments which will throw an error.
+ return _isFixed(element);
+ }
},
_createSibling = function _createSibling(element, i) {
if (element.parentNode && (_doc || _setDoc(element))) {
@@ -115,7 +127,7 @@ _divTemps = [],
x: 0,
y: 0
} : element.getBBox();
- m = element.transform.baseVal;
+ m = element.transform ? element.transform.baseVal : []; // IE11 doesn't follow the spec.
if (m.length) {
m = m.consolidate().matrix;
@@ -140,6 +152,7 @@ _divTemps = [],
m = _win.getComputedStyle(element);
container.style[_transformProp] = m[_transformProp];
container.style[_transformOriginProp] = m[_transformOriginProp];
+ container.style.position = m.position === "fixed" ? "fixed" : "absolute";
element.parentNode.appendChild(container);
}
@@ -253,7 +266,7 @@ function () {
// ty = m.b * x + m.d * y + m.f
export function getGlobalMatrix(element, inverse) {
- if (!element.parentNode) {
+ if (!element || !element.parentNode) {
return new Matrix2D();
}
@@ -264,7 +277,8 @@ export function getGlobalMatrix(element, inverse) {
b2 = temps[1].getBoundingClientRect(),
b3 = temps[2].getBoundingClientRect(),
parent = container.parentNode,
- m = new Matrix2D((b2.left - b1.left) / 100, (b2.top - b1.top) / 100, (b3.left - b1.left) / 100, (b3.top - b1.top) / 100, b1.left + _getDocScrollLeft(), b1.top + _getDocScrollTop());
+ isFixed = _isFixed(element),
+ m = new Matrix2D((b2.left - b1.left) / 100, (b2.top - b1.top) / 100, (b3.left - b1.left) / 100, (b3.top - b1.top) / 100, b1.left + (isFixed ? 0 : _getDocScrollLeft()), b1.top + (isFixed ? 0 : _getDocScrollTop()));
parent.removeChild(container);
return inverse ? m.inverse() : m;
diff --git a/esm/utils/paths.js b/esm/utils/paths.js
index edf113e..647862e 100644
--- a/esm/utils/paths.js
+++ b/esm/utils/paths.js
@@ -1,5 +1,5 @@
/*!
- * paths 3.0.0
+ * paths 3.0.2
* https://greensock.com
*
* Copyright 2008-2019, GreenSock. All rights reserved.
@@ -493,19 +493,28 @@ function measureSegment(segment, startIndex, bezierQty) {
y2 = segment[j + 1] - y1;
xd = xd1 = yd = yd1 = 0;
- for (i = 1; i <= resolution; i++) {
- t = inc * i;
- inv = 1 - t;
- xd = xd1 - (xd1 = (t * t * x4 + 3 * inv * (t * x3 + inv * x2)) * t);
- yd = yd1 - (yd1 = (t * t * y4 + 3 * inv * (t * y3 + inv * y2)) * t);
- l = _sqrt(yd * yd + xd * xd);
-
- if (l < min) {
- min = l;
+ if (_abs(x4) < 1e-5 && _abs(y4) < 1e-5 && _abs(x2) + _abs(y2) < 1e-5) {
+ //dump points that are sufficiently close (basically right on top of each other, making a bezier super tiny or 0 length)
+ if (segment.length > 8) {
+ segment.splice(j, 6);
+ j -= 6;
+ endIndex -= 6;
}
+ } else {
+ for (i = 1; i <= resolution; i++) {
+ t = inc * i;
+ inv = 1 - t;
+ xd = xd1 - (xd1 = (t * t * x4 + 3 * inv * (t * x3 + inv * x2)) * t);
+ yd = yd1 - (yd1 = (t * t * y4 + 3 * inv * (t * y3 + inv * y2)) * t);
+ l = _sqrt(yd * yd + xd * xd);
+
+ if (l < min) {
+ min = l;
+ }
- length += l;
- samples[samplesIndex++] = length;
+ length += l;
+ samples[samplesIndex++] = length;
+ }
}
x1 += x4;
diff --git a/esm/utils/strings.js b/esm/utils/strings.js
index 913c101..937cae8 100644
--- a/esm/utils/strings.js
+++ b/esm/utils/strings.js
@@ -1,5 +1,5 @@
/*!
- * strings: 3.0.0
+ * strings: 3.0.2
* https://greensock.com
*
* Copyright 2008-2019, GreenSock. All rights reserved.
diff --git a/gsap.d.ts b/gsap.d.ts
deleted file mode 100644
index 121eb34..0000000
--- a/gsap.d.ts
+++ /dev/null
@@ -1,856 +0,0 @@
-// Type definitions for GSAP v3.0
-// Project: https://github.com/greensock/GSAP
-// Definitions by:
-// Blake Bowen <https://github.com/OSUblake>
-// Pedro Tavares <https://github.com/dipscom>
-// Zach Saucier <https://github.com/ZachSaucier>
-
-interface arrayType {
- length: number
-}
-
-
-
-declare namespace GSAPStatic {
- /*
- type easeStrings = 'power0.none'
- | 'power1.in'
- | 'power1.out'
- | 'power1.inOut'
- | 'power1.inOut'
- | 'power2.out'
- | 'power2.inOut'
- | 'power2.inOut'
- | 'power3.out'
- | 'power3.inOut'
- | 'power3.inOut'
- | 'power4.out'
- | 'power4.inOut'
- | 'power4.inOut'
- | 'back.out'
- | 'back.inOut'
- | 'back.inOut'
- | 'elastic.out'
- | 'elastic.inOut'
- | 'elastic.inOut'
- | 'bounce.out'
- | 'bounce.inOut'
- | 'bounce.inOut'
- | 'rough ({ template: string, strength: number, points: number, taper: none|in|out|both, randomize: boolean, clamp: boolean })' /* Not in GSAP core || TODO: this has a config string object *-/
- | 'slow (linearRatio: number, power: number, yoyoMode: boolean)' /* Not in GSAP core || TODO: this has a config string object *-/
- | `steps (numSteps: number)` /* TODO: this has a config string object *-/
- | `custom (numSteps)` /* Not in GSAP core || TODO: this has a config string object *-/
- | 'circ.out'
- | 'circ.inOut'
- | 'circ.inOut'
- | 'expo.out' /* Not in GSAP core *-/
- | 'expo.inOut' /* Not in GSAP core *-/
- | 'expo.inOut' /* Not in GSAP core *-/
- | 'sine.out'
- | 'sine.inOut'
- | 'sine.inOut'
- */
-
- type attrPlugin = {};
- type cssPlugin = {};
- // continue from here
- type modifiersPlugin = {
- [key: string]: (value: number | string, target?: object) => number | string;
- }
-
- type obj2D = { x: number, y: number };
- type callbackFn = (...args: any) => any;
- type callbackType = 'onComplete' | 'onUpdate' | 'onStart' | 'onReverseComplete' | 'onRepeat';
- type positionType = number | string;
- type validTargets = string | object | string[] | object[];
- type tweenVars = {
- attr?: attrPlugin;
- css?: cssPlugin;
- data?: object;
- delay?: number;
- duration?: number;
- ease?: string | object;
- id?: string;
- immediateRender?: boolean;
- inherit?: boolean;
- keyframes?: object; // TODO review this object as it might need extra properties, like 'duration', definitions
- lazy?: boolean;
- modifiers?: modifiersPlugin;
- onComplete?: callbackFn;
- onCompleteParams?: any[];
- onInterrupt?: callbackFn;
- onInterruptParams?: any[];
- onRepeat?: callbackFn;
- onRepeatParams?: any[];
- onReverseComplete?: callbackFn;
- onReverseCompleteParams?: any[];
- onStart?: callbackFn;
- onStartParams?: any[];
- onUpdate?: callbackFn;
- onUpdateParams?: any[];
- overwrite?: 'auto' | boolean;
- paused?: boolean;
- repeat?: number;
- repeatDelay?: number;
- repeatRefresh?: boolean;
- reversed?: boolean;
- runBackwards?: boolean;
- stagger?: number | object | callbackFn; // TODO list the object option properties and the function option
- startAt?: object;
- yoyo?: boolean;
- yoyoEase?: string // TODO is this the same as the ease property?
- [key: string]: any; // so TypeScript does not prevent the user from adding their own properties
- }
-
- /**
- * Base class for Tween and Timeline classes.
- *
- * @class Animation
- */
- class Animation {
-
- /**
- * A place to store any data you want (initially populated with vars.data if it exists)
- *
- * @member {Animation}
- * @default undefined
- */
- data: object;
-
-
-
-
- /**
- * Creates an instance of Animation.
- *
- * @param {object} vars
- * @param {number} [time]
- * @memberof Animation
- */
- constructor(vars?: object, time?: number);
-
-
-
-
-
- /**
- * Sets the animation's initial delay which is the length of time in seconds before the animation should begin.
- *
- * @param {number} value - Delay value
- * @returns {this} Returns self, useful for chaining.
- * @memberof Animation
- */
- delay(value: number): this;
-
- /**
- * Gets the animation's initial delay which is the length of time in seconds before the animation should begin.
- *
- * @returns {number} The progress value
- * @memberof Animation
- */
- delay(): number;
-
-
-
-
-
- /**
- * Adjusts the animation's timeScale to fit it within the specified duration.
- *
- * @param {number} value - Duration value
- * @returns {this} Returns self, useful for chaining.
- * @memberof Animation
- */
- duration(value: number): this;
-
- /**
- * Gets the animation's duration.
- *
- * @returns {number}
- * @memberof Animation
- */
- duration(): number;
-
-
-
-
-
- endTime(includeRepeats?: boolean): number;
-
-
-
- eventCallback(type: callbackType, callback: callbackFn, params?: any[], scope?: object): this;
-
- eventCallback(type: callbackType): callbackFn;
-
-
-
-
- invalidate(): this;
-
-
-
-
- isActive(): boolean;
-
-
-
-
- iteration(value: number, supressEvents?: boolean): this;
-
- iteration(): number;
-
-
-
-
- kill(vars?: object, targets?: object | object[] ): this;
-
-
-
-
- pause(atTime?: number, supressEvents?: boolean): this;
-
-
-
-
- paused(value: boolean): this;
-
- paused(): boolean;
-
-
-
-
- play(from?: number, supressEvents?: boolean): this;
-
-
-
-
- /**
- * Sets the animation's progress which is a value between 0 and 1 indicating the position of the virtual
- * playhead (excluding repeats) where 0 is at the beginning, 0.5 is halfway complete, and 1 is complete.
- *
- * @param {number} value - Progress value
- * @param {boolean} [supressEvents=false] - (default = false) If true, no events or callbacks will be triggered when the playhead moves to the new position.
- * @returns {this} Returns self, useful for chaining.
- * @memberof Animation
- */
- progress(value: number, supressEvents?: boolean): this;
-
- /**
- * Gets the animation's progress which is a value between 0 and 1 indicating the position of the virtual
- * playhead (excluding repeats) where 0 is at the beginning, 0.5 is halfway complete, and 1 is complete.
- *
- * @returns {number} The progress value
- * @memberof Animation
- */
- progress(): number;
-
-
-
-
- rawTime(wrapRepeats: boolean): number;
-
-
-
-
- repeat(value: number): this;
-
- repeat(): number;
-
-
-
-
- repeatDelay(value: number): this
-
- repeatDelay(): number;
-
-
-
-
- restart(includeDelay?: boolean, supressEvents?: boolean): this;
-
-
-
-
- resume(from?: number, supressEvents?: boolean): this;
-
-
-
-
- reverse(from?: number, supressEvents?: boolean): this;
-
-
-
-
- reversed(value: boolean): this;
-
- reversed(): boolean
-
-
-
-
- startTime(value: number): this;
-
- startTime(): number;
-
-
-
- seek(time: number, supressEvents?: boolean): this;
-
-
-
-
- then(callback: callbackFn): Promise<any>;
-
-
-
-
- time(value: number, supressEvents?: boolean): this;
-
- time(): number;
-
-
-
-
- timeScale(value: number): this;
-
- timeScale(): number;
-
-
-
-
- totalDuration(value: number): this;
-
- totalDuration(): number;
-
-
-
-
- totalProgress(value: number, supressEvents?: boolean): this;
-
- totalProgress(): number;
-
-
-
-
- totalTime(value: number, supressEvents?: boolean): this;
-
- totalTime(): number;
-
-
- yoyo(value: boolean): this
-
- yoyo(): boolean;
- }
-
-
-
-
-
-
-
-
-
-
- /**
- * Tween description
- *
- * @class Tween
- * @extends {Animation}
- */
- class Tween extends Animation {
-
-
- data: object;
-
- /**
- * The vars object passed into the constructor
- *
- * @member {Tween}
- * @default {duration: 0.5, overwrite: false, delay: 0, ease: "power2.out"}
- */
- vars: object;
-
-
-
-
- static to(targets: validTargets, duration: number, vars: tweenVars): Tween;
-
- /**
- * Creates a Tween animating to destination values that are set.
- *
- * @static
- * @returns {Tween}
- * @memberof Tween
- */
- static to(targets: validTargets, vars: tweenVars): Tween;
-
-
-
-
- static from(targets: validTargets, duration: number, vars: tweenVars): Tween;
-
- static from(targets: validTargets, vars: tweenVars): Tween;
-
-
-
-
- static fromTo(targets: validTargets, duration: number, fromVars: tweenVars, toVars: tweenVars): Tween;
-
- static fromTo(targets: validTargets, fromVars: tweenVars, toVars: tweenVars): Tween;
- }
-
-
-
-
-
-
-
-
-
-
-
- /**
- * Timelines are essentially chains of tweens (.to, from, fromTo, etc.) calls. They are the ultimate
- * sequencing tool that acts like a container for tweens and other timelines, making it simple to control
- * them as a whole and precisely manage their timing.
- *
- * @class Timeline
- * @extends {Animation}
- */
- class Timeline extends Animation {
-
- /**
- * If true, child tweens and timelines will be removed as soon as they complete
- *
- * @member {Timeline}
- * @default false, except on the root timeline(s)
- */
- autoRemoveChildren: boolean;
-
-
-
-
- data: object;
-
-
-
-
- /**
- * Stores any labels that have been added to the timeline.
- *
- * @member {Timeline}
- * @default {}
- */
- labels: object;
-
-
-
-
- /**
- * Controls whether or not child tweens and timelines are repositioned automatically (changing their startTime) in order to maintain smooth playback when properties are changed on-the-fly.
- *
- * @member {Timeline}
- * @default false, except on the root timeline(s)
- */
- smoothChildTiming: boolean;
-
-
-
-
- /**
- * Adds a tween, timeline, callback, or label (or an array of them) to the timeline.
- * TODO: missing function() value param
- *
- * @returns {Timeline}
- * @memberof Timeline
- */
- add(value: Tween | Timeline | string | string[], position?: positionType, align?: string, stagger?: number | string): this;
-
-
-
-
- /**
- * Adds a label to the timeline, making it easy to mark important positions/times.
- *
- * @returns {Timeline}
- * @memberof Timeline
- */
- addLabel(label: string, position?: positionType): this;
-
-
-
-
- /**
- * Inserts a special callback that pauses playback of the timeline at a particular time or label.
- *
- * @returns {Timeline}
- * @memberof Timeline
- */
- addPause(position?: positionType, callback?: callbackFn, params?: any[]): this;
-
-
-
-
- call(callback: callbackFn, params?: any[], position?: positionType): this;
-
-
-
-
- clear(labels: boolean): this;
-
-
-
-
- currentLabel(value: string): this;
-
- currentLabel(): string;
-
-
-
-
- from(targets: validTargets, duration: number, vars: tweenVars, position?: positionType): this;
-
- from(targets: validTargets, vars: tweenVars, position?: positionType): this;
-
-
-
-
- fromTo(targets: validTargets, duration: number, fromVars: tweenVars, toVars: tweenVars, position?: positionType): this;
-
- fromTo(targets: validTargets, fromVars: tweenVars, toVars: tweenVars, position?: positionType): this;
-
-
-
-
- getChildren(nested?: boolean, tweens?: boolean, timelines?: boolean, ignoreBeforeTime?: number): object[]; // This should be an array of Tweens AND Timelines
-
-
-
-
- getTweensOf(target: object, nested?: boolean): Tween[];
-
-
-
-
- nextLabel(time?: number): string;
-
-
-
-
- previousLabel(time?: number): string;
-
-
-
-
- recent(): Tween | Timeline | callbackFn;
-
-
-
-
- remove(value: Tween | Timeline | callbackFn | string): this;
-
-
-
-
- removeLabel(label: string): number;
-
-
-
-
- removePause(position: positionType): this
-
-
-
-
- set(target: validTargets, vars: tweenVars, position?: positionType): this;
-
-
-
- shiftChildren(amount: number, adjustLabels?:boolean, ignoreBeforeTime?: number): this;
-
-
-
-
- /**
- * Creates a Tween animating to destination values that are set.
- *
- * @returns {Timeline}
- * @memberof Timeline
- */
- to(targets: validTargets, duration: number, vars: tweenVars, position?: positionType): this;
-
- to(targets: validTargets, vars: tweenVars, position?: positionType): this;
-
-
-
-
- tweenFromTo(fromPosition: positionType, toPosition: positionType, vars: tweenVars): this;
-
-
-
-
- tweenTo(position: positionType, vars: tweenVars): this;
- }
-
-
-
-
-
-
-
-
-
-
- interface gsap {
-
- effects: object;
-
-
-
-
- globalTimeline: Timeline;
-
-
-
-
- ticker: {
- add(callback: callbackFn): void;
- fps(fps: number): void;
- frame: number;
- lagSmoothing(threshold: number, adjustedLag: number): void;
- remove(callback: callbackFn): void;
- sleep(): void;
- tick(): void;
- time: number;
- wake(): void;
- };
-
-
-
-
- utils: {
- checkPrefix(value: string): string;
- clamp(min: number, max: number, value: number): number;
- clamp(min: number, max: number): (value: number) => number;
- distribute(config: {
- base: number,
- amount: number,
- from: number | string | any[],
- grid: 'auto' | [number, number],
- axis: 'x' | 'y',
- ease: string // TODO: ease declaration
- }): callbackFn;
- getUnit(value: string): string;
- interpolate<T>(min: T, max: T, progress: number): T;
- interpolate<T>(min: T, max: T): (progress: number) => T;
- interpolate<T>(array: T[]): (progress: number) => T;
- mapRange(inMin: number, inMax: number, outMin: number, outMax: number, value: number): number;
- mapRange(inMin: number, inMax: number, outMin: number, outMax: number): (value: number) => number;
- normalize(inMin: number, inMax: number, value: number): number;
- normalize(inMin: number, inMax: number): (value: number) => number;
- random<T extends arrayType>(values1: T, values2?: null, progress?: number): T; // this is not working, when array, values2 should not be provided or has to be null
- random<T>(values1: T, values2: T, progress?: number, returnFunction?: boolean): () => T;
- random<T>(values1: T, values2: T, progress?: number): T;
- snap(snap: {values: obj2D[], radius: number}, value: obj2D): obj2D
- snap(snap: {values: number[], radius: number}, value: number): number
- snap(snap: obj2D[], value: obj2D): obj2D;
- snap(snap: number | number[], value: number): number;
- snap(snap: number | number[] | obj2D[]): callbackFn;
- snap(snap: {values: obj2D[], radius: number}): callbackFn;
- snap(snap: {values: number[], radius: number}): callbackFn;
- splitColor(color: string, hsl?: boolean): [number, number, number] | [number, number, number, number];
- toArray(value: string | object | NodeList, leaveStrings?: boolean): any[];
- unitize(fn: callbackFn, unit: string): string;
- wrap(value1: number, value2: number, index?: number): number;
- wrap(value1: number[] | string[] | object[], index?: number): number;
- wrap(value1: number[] | string[] | object[]): callbackFn;
- wrapYoyo(value1: number, value2: number, index?: number): number;
- wrapYoyo(value1: number[] | string[] | object[], index?: number): number;
- wrapYoyo(value1: number[] | string[] | object[]): callbackFn;
- }
-
-
-
-
- version: string;
-
-
-
-
- /**
- * gsap.config() lets you configure GSAP’s settings that aren't Tween-specific, like autoSleep, force3D, and units.
- *
- * @param {} value
- * @returns {gsap}
- * @memberof gsap
- */
- config(value: {
- autoSleep?: number;
- force3D?: boolean | 'auto';
- units?: { }; // TODO: need to be able to specify key/value pair type here
- }): object;
-
-
-
- defaults(value: object): object;
-
-
-
-
- delayedCall(delay: number, callback: callbackFn, params?: string[], scope?: any): Tween; // TODO: investigate scope, try to eliminate 'any'
-
-
-
-
- exportRoot(vars?: tweenVars, includeDelayedCalls?: boolean): Timeline;
-
-
-
-
- from(targets: validTargets, vars: tweenVars): Tween;
-
- from(targets: validTargets, duration: number, vars:tweenVars): Tween;
-
-
-
-
- fromTo(targets: validTargets, fromVars: tweenVars, toVars: tweenVars): Tween;
-
- fromTo(targets: validTargets, duration: number, fromVars: tweenVars, toVars: tweenVars): Tween;
-
-
-
-
- getById(id: string): Tween | Timeline | undefined;
-
-
-
-
- getProperty(target: validTargets, property: string, unit?: string): string | number | null;
-
-
-
-
- getTweensOf(targets: object | object[], onlyActive?: boolean): Tween[];
-
-
-
-
- isTweening(): Boolean;
-
-
-
-
- killTweensOf(targets: validTargets, properties?: object): void;
-
- killTweensOf(delayedCallback: callbackFn): void;
-
-
-
-
- parseEase(ease: string): void;
-
-
-
-
- registerEase(config: { name: string, ease: callbackFn }): void
-
-
-
-
- // registerEffect()
-
-
-
-
- // registerPlugin()
-
-
-
-
- set(targets: validTargets, vars: tweenVars): Tween;
-
-
-
-
- /**
- *
- *
- * @param {object} [vars]
- * @returns {Timeline} Timeline instance
- * @memberof gsap
- */
- timeline(vars?: tweenVars): Timeline;
-
-
-
-
- /**
- * **Deprecated method signature.** Use the `duration` property instead.
- * ```js
- * tl.to(".class", { duration: 1, x: 100 });
- * ```
- * @deprecated since version 2
- * @param {*} targets
- * @param {number} duration - The duration parameter is deprecated. Use the `duration`
- * property instead.
- * @param {tweenVars} vars
- */
- to(targets: validTargets, duration: number, vars: tweenVars): Tween;
-
- /**
- * Creates an animation
- *
- * ```js
- * var tween = gsap.to(".class", { x: 100 });
- * ```
- *
- * @param {*} targets
- * @param {object} vars
- * @returns {Tween} Tween instance
- * @memberof gsap
- */
- to(targets: validTargets, vars: tweenVars): Tween;
-
-
-
-
- updateRoot(time: number): void;
- }
-
- const gsap: gsap;
-}
-
-
-
-
-
-
-
-
-
-
-declare const gsap: GSAPStatic.gsap;
-declare const TweenLite: typeof GSAPStatic.Tween;
-declare const TweenMax: typeof GSAPStatic.Tween;
-declare const TimelineLite: typeof GSAPStatic.Timeline;
-declare const TimelineMax: typeof GSAPStatic.Timeline;
-
-declare module "gsap" {
-
- const gsap: GSAPStatic.gsap;
- const TweenLite: typeof GSAPStatic.Tween;
- const TweenMax: typeof GSAPStatic.Tween;
- const TimelineLite: typeof GSAPStatic.Timeline;
- const TimelineMax: typeof GSAPStatic.Timeline;
-
- export {
- gsap,
- gsap as default,
- TweenLite,
- TweenMax,
- TimelineLite,
- TimelineMax
- }
-}
diff --git a/package.json b/package.json
index f1cb28e..92f82c4 100644
--- a/package.json
+++ b/package.json
@@ -1,11 +1,11 @@
{
"name": "gsap",
- "version": "3.0.1",
+ "version": "3.0.2",
"description": "GSAP is a JavaScript library for building high-performance animations that work in **every** major browser. Animate CSS, SVG, canvas, React, Vue, WebGL, colors, strings, motion paths, generic objects...anything JavaScript can touch! No other library delivers such advanced sequencing, reliability, and tight control while solving real-world problems on millions of sites. GSAP works around countless browser inconsistencies; your animations **just work**. At its core, GSAP is a high-speed property manipulator, updating values over time with extreme accuracy. It's up to 20x faster than jQuery! See https://greensock.com/why-gsap/ for what makes GSAP so special.",
"homepage": "https://greensock.com",
- "module": "./esm/index.js",
- "main": "./dist/gsap.js",
- "types": "gsap.d.ts",
+ "module": "esm/index.js",
+ "main": "dist/gsap.js",
+ "types": "types/index.d.ts",
"filename": "gsap.min.js",
"sideEffects": false,
"keywords": [
diff --git a/src/CSSPlugin.js b/src/CSSPlugin.js
index 8d04fa2..6f21abb 100644
--- a/src/CSSPlugin.js
+++ b/src/CSSPlugin.js
@@ -1,5 +1,5 @@
/*!
- * CSSPlugin 3.0.1
+ * CSSPlugin 3.0.2
* https://greensock.com
*
* Copyright 2008-2019, GreenSock. All rights reserved.
@@ -25,9 +25,9 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
_horizontalExp = /(?:left|right|width|margin|padding|x)/i,
_complexExp = /[\s,\(]\S/,
_propertyAliases = {autoAlpha:"opacity,visibility", scale:"scaleX,scaleY", alpha:"opacity"},
- _renderCSSProp = (ratio, data) => data.set(data.t, data.p, (~~((data.s + data.c * ratio) * 10000) / 10000) + data.u, data),
- _renderPropWithEnd = (ratio, data) => data.set(data.t, data.p, ratio === 1 ? data.e : (~~((data.s + data.c * ratio) * 10000) / 10000) + data.u, data),
- _renderCSSPropWithBeginning = (ratio, data) => data.set(data.t, data.p, ratio ? (~~((data.s + data.c * ratio) * 10000) / 10000) + data.u : data.b, data), //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)
+ _renderCSSProp = (ratio, data) => data.set(data.t, data.p, (~~((data.s + data.c * ratio) * 1000) / 1000) + data.u, data),
+ _renderPropWithEnd = (ratio, data) => data.set(data.t, data.p, ratio === 1 ? data.e : (~~((data.s + data.c * ratio) * 1000) / 1000) + data.u, data),
+ _renderCSSPropWithBeginning = (ratio, data) => data.set(data.t, data.p, ratio ? (~~((data.s + data.c * ratio) * 1000) / 1000) + data.u : data.b, data), //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)
_renderRoundedCSSProp = (ratio, data) => {
let value = data.s + data.c * ratio;
data.set(data.t, data.p, ~~(value + (value < 0 ? -.5 : .5)) + data.u, data);
@@ -55,21 +55,21 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
let e = _doc.createElementNS ? _doc.createElementNS((ns || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), type) : _doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making "style" inaccessible.
return e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://greensock.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).
},
- _getComputedProperty = (target, property) => {
+ _getComputedProperty = (target, property, skipPrefixFallback) => {
let cs = getComputedStyle(target);
- return cs[property] || cs.getPropertyValue(property.replace(_capsExp, "-$1").toLowerCase()) || cs.getPropertyValue(property); //css variables may not need caps swapped out for dashes and lowercase.
+ return cs[property] || cs.getPropertyValue(property.replace(_capsExp, "-$1").toLowerCase()) || cs.getPropertyValue(property) || (!skipPrefixFallback && _getComputedProperty(target, _checkPropPrefix(property) || property, 1)) || ""; //css variables may not need caps swapped out for dashes and lowercase.
},
+ _prefixes = "O,Moz,ms,Ms,Webkit".split(","),
_checkPropPrefix = (property, element) => {
let e = element || _tempDiv,
s = e.style,
- i = 5,
- a = "O,Moz,ms,Ms,Webkit".split(",");
+ i = 5;
if (property in s) {
return property;
}
property = property.charAt(0).toUpperCase() + property.substr(1);
- while (i-- && !((a[i]+property) in s)) { }
- return (i < 0) ? null : ((i === 3) ? "ms" : (i >= 0) ? a[i] : "") + property;
+ while (i-- && !((_prefixes[i]+property) in s)) { }
+ return (i < 0) ? null : ((i === 3) ? "ms" : (i >= 0) ? _prefixes[i] : "") + property;
},
_initCore = () => {
if (_windowExists()) {
@@ -128,7 +128,7 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
bounds = _getBBoxHack.call(target, true);
}
//some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.
- return (bounds && !bounds.width && !bounds.x && !bounds.y) ? {x: +_getAttributeFallbacks(target, ["x","cx","x1"]), y:+_getAttributeFallbacks(target, ["y","cy","y1"]), width:0, height:0} : bounds;
+ return (bounds && !bounds.width && !bounds.x && !bounds.y) ? {x: +_getAttributeFallbacks(target, ["x","cx","x1"]) || 0, y:+_getAttributeFallbacks(target, ["y","cy","y1"]) || 0, width:0, height:0} : bounds;
},
_isSVG = e => !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && _getBBox(e)), //reports if the element is an SVG on which getBBox() actually works
_removeProperty = (target, property) => {
@@ -213,7 +213,7 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
value = (property !== "transformOrigin") ? value[property] : _firstTwoOnly(_getComputedProperty(target, _transformOriginProp)) + value.zOrigin + "px";
} else {
value = target.style[property];
- if (!value || value === "auto" || uncache) {
+ if (!value || value === "auto" || uncache || ~value.indexOf("calc(")) {
value = _getComputedProperty(target, property) || _getProperty(target, property);
}
}
@@ -267,7 +267,7 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
}
}
if (startUnit !== endUnit) {
- startNum = _convertToUnit(target, prop, startValue, endUnit);
+ startNum = _convertToUnit(target, prop, startValue, endUnit) || 0;
}
//these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.
pt._pt = {
@@ -281,7 +281,7 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
}
pt.c = (index < end.length) ? end.substring(index, end.length) : ""; //we use the "c" of the PropTween to store the final part of the string (after the last number)
} else {
- pt.r = prop === "display" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;
+ pt.r = prop === "display" && end === "none" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;
}
if (_relExp.test(end)) {
pt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).
@@ -295,9 +295,9 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
x = split[0],
y = split[1] || "50%";
if (x === "top" || x === "bottom" || y === "left" || y === "right") { //the user provided them in the wrong order, so flip them
- split = x;
+ value = x;
x = y;
- y = split;
+ y = value;
}
split[0] = _keywordToPercent[x] || x;
split[1] = _keywordToPercent[y] || y;
@@ -331,7 +331,7 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
if (clearTransforms.svg) {
target.removeAttribute("transform");
}
- delete clearTransforms.x;
+ clearTransforms.uncache = 1;
}
}
}
@@ -339,12 +339,14 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
// note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.
_specialProps = {
clearProps(plugin, target, property, endValue, tween) {
- let pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);
- pt.u = endValue;
- pt.pr = -10;
- pt.tween = tween;
- plugin._props.push(property);
- return 1;
+ if (tween.data !== "isFromStart") {
+ let pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);
+ pt.u = endValue;
+ pt.pr = -10;
+ pt.tween = tween;
+ plugin._props.push(property);
+ return 1;
+ }
}
/* className feature (about 0.4kb gzipped).
, className(plugin, target, property, endValue, tween) {
@@ -494,8 +496,8 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
if (smooth || (smooth !== false && cache.smooth)) {
tx = xOrigin - xOriginOld;
ty = yOrigin - yOriginOld;
- cache.xOffset += (tx * a + ty * c) - tx;
- cache.yOffset += (tx * b + ty * d) - ty;
+ cache.xOffset = xOffsetOld + (tx * a + ty * c) - tx;
+ cache.yOffset = yOffsetOld + (tx * b + ty * d) - ty;
} else {
cache.xOffset = cache.yOffset = 0;
}
@@ -504,6 +506,7 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
cache.smooth = !!smooth;
cache.origin = origin;
cache.originIsAbsolute = !!originIsAbsolute;
+ target.style[_transformOriginProp] = "0px 0px"; //otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).
if (pluginToAddPropTweensTo) {
_addNonTweeningPT(pluginToAddPropTweensTo, cache, "xOrigin", xOriginOld, xOrigin);
_addNonTweeningPT(pluginToAddPropTweensTo, cache, "yOrigin", yOriginOld, yOrigin);
@@ -513,7 +516,7 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
},
_parseTransform = (target, uncache) => {
let cache = target._gsap || new GSCache(target);
- if ("x" in cache && !uncache) {
+ if ("x" in cache && !uncache && !cache.uncache) {
return cache;
}
let style = target.style,
@@ -654,6 +657,7 @@ let _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSe
cache.xOffset = cache.yOffset = 0;
cache.force3D = _config.force3D;
cache.renderTransform = cache.svg ? _renderSVGTransforms : _supports3D ? _renderCSSTransforms : _renderNon3DTransforms;
+ cache.uncache = 0;
return cache;
},
_firstTwoOnly = value => (value = value.split(" "))[0] + " " + value[1], //for handling transformOrigin values, stripping out the 3rd dimension
@@ -896,13 +900,13 @@ export const CSSPlugin = {
if (!transformPropTween) {
cache = target._gsap;
smooth = (vars.smoothOrigin !== false && cache.smooth);
- transformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)
+ transformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache, 0, -1); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)
transformPropTween.dep = 1; //flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.
}
if (p === "scale") {
- this._pt = new PropTween(this._pt, target, "scale", startNum, relative ? relative * endNum : endNum - startNum, 0, 0, _setterScale);
- props.push("scale");
- continue;
+ this._pt = new PropTween(this._pt, cache, "scaleY", cache.scaleY, relative ? relative * endNum : endNum - cache.scaleY);
+ props.push("scaleY", p);
+ p += "X";
} else if (p === "transformOrigin") {
endValue = _convertKeywordsToPercentages(endValue); //in case something like "left top" or "bottom right" is passed in. Convert to percentages.
if (cache.svg) {
@@ -932,6 +936,8 @@ export const CSSPlugin = {
_addRawTransformPTs(this, endValue, target);
continue;
}
+ } else if (!(p in style)) {
+ p = _checkPropPrefix(p) || p;
}
if (isTransformRelated || ((endNum || endNum === 0) && (startNum || startNum === 0) && !_complexExp.test(endValue) && (p in style))) {
@@ -950,7 +956,7 @@ export const CSSPlugin = {
if (p in target) { //maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.
this.add(target, p, target[p], endValue, index, targets);
} else {
- _missingPlugin("Invalid " + p + " tween " + endValue + ". Missing plugin? gsap.registerPlugin()");
+ _missingPlugin(p, endValue);
continue;
}
} else {
diff --git a/src/CSSRulePlugin.js b/src/CSSRulePlugin.js
index 7581431..bb743f4 100644
--- a/src/CSSRulePlugin.js
+++ b/src/CSSRulePlugin.js
@@ -1,5 +1,5 @@
/*!
- * CSSRulePlugin 3.0.0
+ * CSSRulePlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -37,7 +37,7 @@ let gsap, _coreInitted, _win, _doc, CSSPlugin,
export const CSSRulePlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "cssRule",
init(target, value, tween, index, targets) {
if (!_checkRegister() || typeof(target.cssText) === "undefined") {
diff --git a/src/Draggable.js b/src/Draggable.js
index 9eedcd1..6644026 100644
--- a/src/Draggable.js
+++ b/src/Draggable.js
@@ -1,5 +1,5 @@
/*!
- * Draggable 3.0.0
+ * Draggable 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -44,6 +44,14 @@ let gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitte
}
return copy;
},
+ _extend = (obj, defaults) => {
+ for (let p in defaults) {
+ if (!(p in obj)) {
+ obj[p] = defaults[p];
+ }
+ }
+ return obj;
+ },
_renderQueueTick = () => _renderQueue.forEach(func => func()),
_addToRenderQueue = func => {
_renderQueue.push(func);
@@ -113,8 +121,8 @@ let gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitte
_isMultiTouching = (event.touches && _dragCount < event.touches.length);
_addListener(event.target, "touchend", _onMultiTouchDocumentEnd);
},
- _getDocScrollTop = () => _win.pageYOffset || _doc.scrollTop || _docElement.scrollTop || _body.scrollTop || 0,
- _getDocScrollLeft = () => _win.pageXOffset || _doc.scrollLeft || _docElement.scrollLeft || _body.scrollLeft || 0,
+ _getDocScrollTop = doc => _win.pageYOffset || doc.scrollTop || doc.documentElement.scrollTop || doc.body.scrollTop || 0,
+ _getDocScrollLeft = doc => _win.pageXOffset || doc.scrollLeft || doc.documentElement.scrollLeft || doc.body.scrollLeft || 0,
_addScrollListener = (e, callback) => {
_addListener(e, "scroll", callback);
if (!_isRoot(e.parentNode)) {
@@ -127,7 +135,7 @@ let gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitte
_removeScrollListener(e.parentNode, callback);
}
},
- _isRoot = e => !!(!e || e === _docElement || e === _doc || e === _doc.body || e === _win || !e.nodeType || !e.parentNode),
+ _isRoot = e => !!(!e || e === _docElement || e.nodeType === 9 || e === _doc.body || e === _win || !e.nodeType || !e.parentNode),
_getMaxScroll = (element, axis) => {
let dim = (axis === "x") ? "Width" : "Height",
scroll = "scroll" + dim,
@@ -171,7 +179,8 @@ let gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitte
_tempRect.height = _tempRect.bottom = ((e.innerHeight || 0) - 20 < _docElement.clientHeight) ? _docElement.clientHeight : e.innerHeight || _body.clientHeight || 0;
return _tempRect;
}
- let r = !_isUndefined(e.pageX) ? {left: e.pageX - _getDocScrollLeft(), top: e.pageY - _getDocScrollTop(), right: e.pageX - _getDocScrollLeft() + 1, bottom: e.pageY - _getDocScrollTop() + 1} : (!e.nodeType && !_isUndefined(e.left) && !_isUndefined(e.top)) ? e : _toArray(e)[0].getBoundingClientRect();
+ let doc = e.ownerDocument || _doc,
+ r = !_isUndefined(e.pageX) ? {left: e.pageX - _getDocScrollLeft(doc), top: e.pageY - _getDocScrollTop(doc), right: e.pageX - _getDocScrollLeft(doc) + 1, bottom: e.pageY - _getDocScrollTop(doc) + 1} : (!e.nodeType && !_isUndefined(e.left) && !_isUndefined(e.top)) ? e : _toArray(e)[0].getBoundingClientRect();
if (_isUndefined(r.right) && !_isUndefined(r.width)) {
r.right = r.left + r.width;
r.bottom = r.top + r.height;
@@ -212,12 +221,13 @@ let gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitte
_getElementBounds = (element, context) => {
context = _toArray(context)[0];
let isSVG = (element.getBBox && element.ownerSVGElement),
+ doc = element.ownerDocument || _doc,
left, right, top, bottom, matrix, p1, p2, p3, p4, bbox, width, height, cs, contextParent;
if (element === _win) {
- top = _getDocScrollTop();
- left = _getDocScrollLeft();
- right = left + (_docElement.clientWidth || element.innerWidth || _doc.body.clientWidth || 0);
- bottom = top + (((element.innerHeight || 0) - 20 < _docElement.clientHeight) ? _docElement.clientHeight : element.innerHeight || _body.clientHeight || 0); //some browsers (like Firefox) ignore absolutely positioned elements, and collapse the height of the documentElement, so it could be 8px, for example, if you have just an absolutely positioned div. In that case, we use the innerHeight to resolve this.
+ top = _getDocScrollTop(doc);
+ left = _getDocScrollLeft(doc);
+ right = left + (doc.documentElement.clientWidth || element.innerWidth || doc.body.clientWidth || 0);
+ bottom = top + (((element.innerHeight || 0) - 20 < doc.documentElement.clientHeight) ? doc.documentElement.clientHeight : element.innerHeight || doc.body.clientHeight || 0); //some browsers (like Firefox) ignore absolutely positioned elements, and collapse the height of the documentElement, so it could be 8px, for example, if you have just an absolutely positioned div. In that case, we use the innerHeight to resolve this.
} else if (context === _win || _isUndefined(context)) {
return element.getBoundingClientRect();
} else {
@@ -226,15 +236,18 @@ let gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitte
bbox = element.getBBox();
width = bbox.width;
height = bbox.height;
- } else if (element.viewBox && (bbox = element.viewBox.baseVal)) {
- left = bbox.x || 0;
- top = bbox.y || 0;
- width = bbox.width;
- height = bbox.height;
} else {
- cs = _getComputedStyle(element);
- width = parseFloat(cs.width) || element.clientWidth || 0;
- height = parseFloat(cs.height) || element.clientHeight || 0;
+ if (element.viewBox && (bbox = element.viewBox.baseVal)) {
+ left = bbox.x || 0;
+ top = bbox.y || 0;
+ width = bbox.width;
+ height = bbox.height;
+ }
+ if (!width) {
+ cs = _getComputedStyle(element);
+ width = (parseFloat(cs.width) || element.clientWidth || 0) + parseFloat(cs.borderLeftWidth) + parseFloat(cs.borderRightWidth);
+ height = (parseFloat(cs.height) || element.clientHeight || 0) + parseFloat(cs.borderTopWidth) + parseFloat(cs.borderBottomWidth);
+ }
}
right = width;
bottom = height;
@@ -312,7 +325,8 @@ let gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitte
while (i--) {
e = elements[i];
e.ondragstart = e.onselectstart = selectable ? null : _emptyFunc;
- _setStyle(e, "userSelect", (selectable ? "text" : "none"));
+ //setStyle(e, "userSelect", (selectable ? "text" : "none"));
+ gsap.set(e, {lazy:true, userSelect: (selectable ? "text" : "none")});
}
},
_isFixed = element => {
@@ -320,23 +334,228 @@ let gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitte
return true;
}
element = element.parentNode;
- if (element && element !== _docElement) {
+ if (element && element.nodeType === 1) { // avoid document fragments which will throw an error.
return _isFixed(element);
}
},
+ _supports3D, _addPaddingBR,
+
+ //The ScrollProxy class wraps an element's contents into another div (we call it "content") that we either add padding when necessary or apply a translate3d() transform in order to overscroll (scroll past the boundaries). This allows us to simply set the scrollTop/scrollLeft (or top/left for easier reverse-axis orientation, which is what we do in Draggable) and it'll do all the work for us. For example, if we tried setting scrollTop to -100 on a normal DOM element, it wouldn't work - it'd look the same as setting it to 0, but if we set scrollTop of a ScrollProxy to -100, it'll give the correct appearance by either setting paddingTop of the wrapper to 100 or applying a 100-pixel translateY.
+ ScrollProxy = function(element, vars) {
+ element = gsap.utils.toArray(element)[0];
+ vars = vars || {};
+ let content = document.createElement("div"),
+ style = content.style,
+ node = element.firstChild,
+ offsetTop = 0,
+ offsetLeft = 0,
+ prevTop = element.scrollTop,
+ prevLeft = element.scrollLeft,
+ scrollWidth = element.scrollWidth,
+ scrollHeight = element.scrollHeight,
+ extraPadRight = 0,
+ maxLeft = 0,
+ maxTop = 0,
+ elementWidth, elementHeight, contentHeight, nextNode, transformStart, transformEnd;
+ if (_supports3D && vars.force3D !== false) {
+ transformStart = "translate3d(";
+ transformEnd = "px,0px)";
+ } else if (_transformProp) {
+ transformStart = "translate(";
+ transformEnd = "px)";
+ }
+ this.scrollTop = function(value, force) {
+ if (!arguments.length) {
+ return -this.top();
+ }
+ this.top(-value, force);
+ };
+ this.scrollLeft = function(value, force) {
+ if (!arguments.length) {
+ return -this.left();
+ }
+ this.left(-value, force);
+ };
+ this.left = function(value, force) {
+ if (!arguments.length) {
+ return -(element.scrollLeft + offsetLeft);
+ }
+ let dif = element.scrollLeft - prevLeft,
+ oldOffset = offsetLeft;
+ if ((dif > 2 || dif < -2) && !force) { //if the user interacts with the scrollbar (or something else scrolls it, like the mouse wheel), we should kill any tweens of the ScrollProxy.
+ prevLeft = element.scrollLeft;
+ gsap.killTweensOf(this, {left:1, scrollLeft:1});
+ this.left(-prevLeft);
+ if (vars.onKill) {
+ vars.onKill();
+ }
+ return;
+ }
+ value = -value; //invert because scrolling works in the opposite direction
+ if (value < 0) {
+ offsetLeft = (value - 0.5) | 0;
+ value = 0;
+ } else if (value > maxLeft) {
+ offsetLeft = (value - maxLeft) | 0;
+ value = maxLeft;
+ } else {
+ offsetLeft = 0;
+ }
+ if (offsetLeft || oldOffset) {
+ if (!this._skip) {
+ style[_transformProp] = transformStart + -offsetLeft + "px," + -offsetTop + transformEnd;
+ }
+ if (offsetLeft + extraPadRight >= 0) {
+ style.paddingRight = offsetLeft + extraPadRight + "px";
+ }
+ }
+ element.scrollLeft = value | 0;
+ prevLeft = element.scrollLeft; //don't merge this with the line above because some browsers adjust the scrollLeft after it's set, so in order to be 100% accurate in tracking it, we need to ask the browser to report it.
+ };
+ this.top = function(value, force) {
+ if (!arguments.length) {
+ return -(element.scrollTop + offsetTop);
+ }
+ let dif = element.scrollTop - prevTop,
+ oldOffset = offsetTop;
+ if ((dif > 2 || dif < -2) && !force) { //if the user interacts with the scrollbar (or something else scrolls it, like the mouse wheel), we should kill any tweens of the ScrollProxy.
+ prevTop = element.scrollTop;
+ gsap.killTweensOf(this, {top:1, scrollTop:1});
+ this.top(-prevTop);
+ if (vars.onKill) {
+ vars.onKill();
+ }
+ return;
+ }
+ value = -value; //invert because scrolling works in the opposite direction
+ if (value < 0) {
+ offsetTop = (value - 0.5) | 0;
+ value = 0;
+ } else if (value > maxTop) {
+ offsetTop = (value - maxTop) | 0;
+ value = maxTop;
+ } else {
+ offsetTop = 0;
+ }
+ if (offsetTop || oldOffset) {
+ if (!this._skip) {
+ style[_transformProp] = transformStart + -offsetLeft + "px," + -offsetTop + transformEnd;
+ }
+ }
+ element.scrollTop = value | 0;
+ prevTop = element.scrollTop;
+ };
+
+ this.maxScrollTop = () => maxTop;
+ this.maxScrollLeft = () => maxLeft;
+
+ this.disable = function() {
+ node = content.firstChild;
+ while (node) {
+ nextNode = node.nextSibling;
+ element.appendChild(node);
+ node = nextNode;
+ }
+ if (element === content.parentNode) { //in case disable() is called when it's already disabled.
+ element.removeChild(content);
+ }
+ };
+ this.enable = function() {
+ node = element.firstChild;
+ if (node === content) {
+ return;
+ }
+ while (node) {
+ nextNode = node.nextSibling;
+ content.appendChild(node);
+ node = nextNode;
+ }
+ element.appendChild(content);
+ this.calibrate();
+ };
+ this.calibrate = function(force) {
+ let widthMatches = (element.clientWidth === elementWidth),
+ cs, x, y;
+ prevTop = element.scrollTop;
+ prevLeft = element.scrollLeft;
+ if (widthMatches && element.clientHeight === elementHeight && content.offsetHeight === contentHeight && scrollWidth === element.scrollWidth && scrollHeight === element.scrollHeight && !force) {
+ return; //no need to recalculate things if the width and height haven't changed.
+ }
+ if (offsetTop || offsetLeft) {
+ x = this.left();
+ y = this.top();
+ this.left(-element.scrollLeft);
+ this.top(-element.scrollTop);
+ }
+ cs = _getComputedStyle(element);
+ //first, we need to remove any width constraints to see how the content naturally flows so that we can see if it's wider than the containing element. If so, we've got to record the amount of overage so that we can apply that as padding in order for browsers to correctly handle things. Then we switch back to a width of 100% (without that, some browsers don't flow the content correctly)
+ if (!widthMatches || force) {
+ style.display = "block";
+ style.width = "auto";
+ style.paddingRight = "0px";
+ extraPadRight = Math.max(0, element.scrollWidth - element.clientWidth);
+ //if the content is wider than the container, we need to add the paddingLeft and paddingRight in order for things to behave correctly.
+ if (extraPadRight) {
+ extraPadRight += parseFloat(cs.paddingLeft) + (_addPaddingBR ? parseFloat(cs.paddingRight) : 0);
+ }
+ }
+ style.display = "inline-block";
+ style.position = "relative";
+ style.overflow = "visible";
+ style.verticalAlign = "top";
+ style.boxSizing = "content-box";
+ style.width = "100%";
+ style.paddingRight = extraPadRight + "px";
+ //some browsers neglect to factor in the bottom padding when calculating the scrollHeight, so we need to add that padding to the content when that happens. Allow a 2px margin for error
+ if (_addPaddingBR) {
+ style.paddingBottom = cs.paddingBottom;
+ }
+ elementWidth = element.clientWidth;
+ elementHeight = element.clientHeight;
+ scrollWidth = element.scrollWidth;
+ scrollHeight = element.scrollHeight;
+ maxLeft = element.scrollWidth - elementWidth;
+ maxTop = element.scrollHeight - elementHeight;
+ contentHeight = content.offsetHeight;
+ style.display = "block";
+ if (x || y) {
+ this.left(x);
+ this.top(y);
+ }
+ };
+ this.content = content;
+ this.element = element;
+ this._skip = false;
+ this.enable();
+ },
_initCore = required => {
- if (_windowExists()) {
+ if (_windowExists() && document.body) {
_win = window;
_doc = document;
_docElement = _doc.documentElement;
_body = _doc.body;
_tempDiv = _createElement("div");
_supportsPointer = !!window.PointerEvent;
- _placeholderDiv = _doc.createElement("div");
+ _placeholderDiv = _createElement("div");
_placeholderDiv.style.cssText = "visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab";
_defaultCursor = _placeholderDiv.style.cursor === "grab" ? "grab" : "move";
_isAndroid = (_win.navigator && _win.navigator.userAgent.toLowerCase().indexOf("android") !== -1); //Android handles touch events in an odd way and it's virtually impossible to "feature test" so we resort to UA sniffing
_isTouchDevice = ("ontouchstart" in _docElement) && ("orientation" in _win);
+ _addPaddingBR = (function() { //this function is in charge of analyzing browser behavior related to padding. It sets the _addPaddingBR to true if the browser doesn't normally factor in the bottom or right padding on the element inside the scrolling area, and it sets _addPaddingLeft to true if it's a browser that requires the extra offset (offsetLeft) to be added to the paddingRight (like Opera).
+ let div = _createElement("div"),
+ child = _createElement("div"),
+ childStyle = child.style,
+ parent = _body,
+ val;
+ childStyle.display = "inline-block";
+ childStyle.position = "relative";
+ div.style.cssText = child.innerHTML = "width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden";
+ div.appendChild(child);
+ parent.appendChild(div);
+ val = (child.offsetHeight + 18 > div.scrollHeight); //div.scrollHeight should be child.offsetHeight + 20 because of the 10px of padding on each side, but some browsers ignore one side. We allow a 2px margin of error.
+ parent.removeChild(div);
+ return val;
+ }());
_touchEventLookup = (function(types) { //we create an object that makes it easy to translate touch event types into their "pointer" counterparts if we're in a browser that uses those instead. Like IE10 uses "MSPointerDown" instead of "touchstart", for example.
let standard = types.split(","),
converted = (!_isUndefined(_tempDiv.onpointerdown) ? "pointerdown,pointermove,pointerup,pointercancel" : !_isUndefined(_tempDiv.onmspointerdown) ? "MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel" : types).split(","),
@@ -374,6 +593,7 @@ let gsap, _win, _doc, _docElement, _body, _tempDiv, _placeholderDiv, _coreInitte
_transformProp = _checkPrefix(_transformProp);
_transformOriginProp = _checkPrefix(_transformOriginProp);
_toArray = gsap.utils.toArray;
+ _supports3D = !!_checkPrefix("perspective");
} else if (required) {
console.warn("Please gsap.registerPlugin(Draggable)");
}
@@ -440,15 +660,15 @@ export class Draggable extends EventDispatcher {
this.lockedAxis = null;
this.allowEventDefault = !!vars.allowEventDefault;
- gsap.set(target, {x:"+=0"}); // to ensure that transforms are instantiated.
+ gsap.getProperty(target, "x"); // to ensure that transforms are instantiated.
let type = (vars.type || "x,y").toLowerCase(),
xyMode = (~type.indexOf("x") || ~type.indexOf("y")),
rotationMode = (type.indexOf("rotation") !== -1),
xProp = rotationMode ? "rotation" : xyMode ? "x" : "left",
yProp = xyMode ? "y" : "top",
- allowX = !!(~type.indexOf("x") || ~type.indexOf("left")),
- allowY = !!(~type.indexOf("y") || ~type.indexOf("top")),
+ allowX = !!(~type.indexOf("x") || ~type.indexOf("left") || type === "scroll"),
+ allowY = !!(~type.indexOf("y") || ~type.indexOf("top") || type === "scroll"),
minimumMovement = vars.minimumMovement || 2,
self = this,
triggers = _toArray(vars.trigger || vars.handle || target),
@@ -464,7 +684,8 @@ export class Draggable extends EventDispatcher {
gsCache = target._gsap || gsap.core.getCache(target),
isFixed = _isFixed(target),
getPropAsNum = (property, unit) => parseFloat(gsCache.get(target, property, unit)),
- enabled, startPointerX, startPointerY, startElementX, startElementY, hasBounds, hasDragCallback, hasMoveCallback, maxX, minX, maxY, minY, touch, touchID, rotationOrigin, dirty, old, snapX, snapY, snapXY, isClicking, touchEventTarget, matrix, interrupted, startScrollTop, startScrollLeft, allowNativeTouchScrolling, touchDragAxis, isDispatching, clickDispatch, trustedClickDispatch,
+ ownerDoc = target.ownerDocument || _doc,
+ enabled, scrollProxy, startPointerX, startPointerY, startElementX, startElementY, hasBounds, hasDragCallback, hasMoveCallback, maxX, minX, maxY, minY, touch, touchID, rotationOrigin, dirty, old, snapX, snapY, snapXY, isClicking, touchEventTarget, matrix, interrupted, startScrollTop, startScrollLeft, allowNativeTouchScrolling, touchDragAxis, isDispatching, clickDispatch, trustedClickDispatch,
onContextMenu = e => { //used to prevent long-touch from triggering a context menu.
if (self.isPressed && e.which < 2) {
@@ -483,8 +704,8 @@ export class Draggable extends EventDispatcher {
autoScrollFactor = self.autoScroll * 15, //multiplying by 15 just gives us a better "feel" speed-wise.
parent, isRoot, rect, pointerX, pointerY, changeX, changeY, gap;
checkAutoScrollBounds = false;
- _windowProxy.scrollTop = ((_win.pageYOffset != null) ? _win.pageYOffset : (_docElement.scrollTop != null) ? _docElement.scrollTop : _body.scrollTop);
- _windowProxy.scrollLeft = ((_win.pageXOffset != null) ? _win.pageXOffset : (_docElement.scrollLeft != null) ? _docElement.scrollLeft : _body.scrollLeft);
+ _windowProxy.scrollTop = ((_win.pageYOffset != null) ? _win.pageYOffset : (ownerDoc.documentElement.scrollTop != null) ? ownerDoc.documentElement.scrollTop : ownerDoc.body.scrollTop);
+ _windowProxy.scrollLeft = ((_win.pageXOffset != null) ? _win.pageXOffset : (ownerDoc.documentElement.scrollLeft != null) ? ownerDoc.documentElement.scrollLeft : ownerDoc.body.scrollLeft);
pointerX = self.pointerX - _windowProxy.scrollLeft;
pointerY = self.pointerY - _windowProxy.scrollTop;
while (e && !isRoot) { //walk up the chain and sense wherever the pointer is within 40px of an edge that's scrollable.
@@ -538,7 +759,16 @@ export class Draggable extends EventDispatcher {
gsCache.rotation = x + "deg";
gsCache.renderTransform(1, gsCache);
} else {
- if (xyMode) {
+ if (scrollProxy) {
+ if (allowY) {
+ self.deltaY = y - scrollProxy.top();
+ scrollProxy.top(y);
+ }
+ if (allowX) {
+ self.deltaX = x - scrollProxy.left();
+ scrollProxy.left(x);
+ }
+ } else if (xyMode) {
if (allowY) {
self.deltaY = y - parseFloat(gsCache.y);
gsCache.y = y + "px";
@@ -588,6 +818,9 @@ export class Draggable extends EventDispatcher {
self.y = parseFloat(gsCache.y);
} else if (rotationMode) {
self.x = self.rotation = parseFloat(gsCache.rotation);
+ } else if (scrollProxy) {
+ self.y = scrollProxy.top();
+ self.x = scrollProxy.left();
} else {
self.y = parseInt(target.style.top || ((cs = _getComputedStyle(target)) && cs.top), 10) || 0;
self.x = parseInt(target.style.left || (cs || {}).left, 10) || 0;
@@ -725,7 +958,13 @@ export class Draggable extends EventDispatcher {
calculateBounds = () => {
let bounds, targetBounds, snap, snapIsRaw;
hasBounds = false;
- if (!!vars.bounds) {
+ if (scrollProxy) {
+ scrollProxy.calibrate();
+ self.minX = minX = -scrollProxy.maxScrollLeft();
+ self.minY = minY = -scrollProxy.maxScrollTop();
+ self.maxX = maxX = self.maxY = maxY = 0;
+ hasBounds = true;
+ } else if (!!vars.bounds) {
bounds = _getBounds(vars.bounds, target.parentNode); //could be a selector/jQuery object or a DOM element or a generic object like {top:0, left:100, width:1000, height:800} or {minX:100, maxX:1100, minY:0, maxY:800}
if (rotationMode) {
self.minX = minX = bounds.left;
@@ -739,10 +978,10 @@ export class Draggable extends EventDispatcher {
self.maxY = maxY = bounds.maxY;
} else {
targetBounds = _getBounds(target, target.parentNode);
- self.minX = minX = getPropAsNum(xProp) + bounds.left - targetBounds.left;
- self.minY = minY = getPropAsNum(yProp) + bounds.top - targetBounds.top;
- self.maxX = maxX = minX + (bounds.width - targetBounds.width);
- self.maxY = maxY = minY + (bounds.height - targetBounds.height);
+ self.minX = minX = Math.round(getPropAsNum(xProp, "px") + bounds.left - targetBounds.left);
+ self.minY = minY = Math.round(getPropAsNum(yProp, "px") + bounds.top - targetBounds.top);
+ self.maxX = maxX = Math.round(minX + (bounds.width - targetBounds.width));
+ self.maxY = maxY = Math.round(minY + (bounds.height - targetBounds.height));
}
if (minX > maxX) {
self.minX = maxX;
@@ -768,13 +1007,13 @@ export class Draggable extends EventDispatcher {
snapY = null;
} else {
if (snap.points) {
- snapXY = buildPointSnapFunc((snapIsRaw ? snap : snap.points), minX, maxX, minY, maxY, snap.radius, 1);
+ snapXY = buildPointSnapFunc((snapIsRaw ? snap : snap.points), minX, maxX, minY, maxY, snap.radius, scrollProxy ? -1 : 1);
} else {
if (allowX) {
- snapX = buildSnapFunc((snapIsRaw ? snap : snap.x || snap.left || snap.scrollLeft), minX, maxX, 1);
+ snapX = buildSnapFunc((snapIsRaw ? snap : snap.x || snap.left || snap.scrollLeft), minX, maxX, scrollProxy ? -1 : 1);
}
if (allowY) {
- snapY = buildSnapFunc((snapIsRaw ? snap : snap.y || snap.top || snap.scrollTop), minY, maxY, 1);
+ snapY = buildSnapFunc((snapIsRaw ? snap : snap.y || snap.top || snap.scrollTop), minY, maxY, scrollProxy ? -1 : 1);
}
}
}
@@ -800,10 +1039,10 @@ export class Draggable extends EventDispatcher {
inertia.rotation = _parseInertia(self, snapIsRaw ? snap : snap.rotation, maxX, minX, 1, forceZeroVelocity);
} else {
if (allowX) {
- inertia[xProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.x || snap.left, maxX, minX, 1, forceZeroVelocity || (self.lockedAxis === "x"));
+ inertia[xProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.x || snap.left, maxX, minX, scrollProxy ? -1 : 1, forceZeroVelocity || (self.lockedAxis === "x"));
}
if (allowY) {
- inertia[yProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.y || snap.top, maxY, minY, 1, forceZeroVelocity || (self.lockedAxis === "y"));
+ inertia[yProp] = _parseInertia(self, snapIsRaw ? snap : snap.points || snap.y || snap.top, maxY, minY, scrollProxy ? -1 : 1, forceZeroVelocity || (self.lockedAxis === "y"));
}
if (snap.points || (_isArray(snap) && _isObject(snap[0]))) {
inertia.linkedProps = xProp + "," + yProp;
@@ -813,9 +1052,21 @@ export class Draggable extends EventDispatcher {
}
self.isThrowing = true;
overshootTolerance = (!isNaN(vars.overshootTolerance)) ? vars.overshootTolerance : (vars.edgeResistance === 1) ? 0 : (1 - self.edgeResistance) + 0.2;
- inertia.duration = {max:Math.max(vars.minDuration || 0, vars.maxDuration || 0) || 2, min:(!isNaN(vars.minDuration) ? vars.minDuration : (overshootTolerance === 0 || (_isObject(inertia) && inertia.resistance > 1000)) ? 0 : 0.5), overshoot:overshootTolerance};
- self.tween = tween = gsap.to(target, {inertia:inertia, data:"_draggable", onComplete:onThrowComplete, onInterrupt:onThrowInterrupt, onUpdate:(vars.fastMode ? _dispatchEvent : syncXY), onUpdateParams:(vars.fastMode ? [self, "onthrowupdate", "onThrowUpdate"] : (snap && snap.radius) ? [false, true] : [])});
+ if (!inertia.duration) {
+ inertia.duration = {max:Math.max(vars.minDuration || 0, ("maxDuration" in vars) ? vars.maxDuration : 2), min:(!isNaN(vars.minDuration) ? vars.minDuration : (overshootTolerance === 0 || (_isObject(inertia) && inertia.resistance > 1000)) ? 0 : 0.5), overshoot:overshootTolerance};
+ }
+ self.tween = tween = gsap.to(scrollProxy || target, {
+ inertia: inertia,
+ data: "_draggable",
+ onComplete: onThrowComplete,
+ onInterrupt: onThrowInterrupt,
+ onUpdate: (vars.fastMode ? _dispatchEvent : syncXY),
+ onUpdateParams: (vars.fastMode ? [self, "onthrowupdate", "onThrowUpdate"] : (snap && snap.radius) ? [false, true] : [])
+ });
if (!vars.fastMode) {
+ if (scrollProxy) {
+ scrollProxy._skip = true; //Microsoft browsers have a bug that causes them to briefly render the position incorrectly (it flashes to the end state when we seek() the tween even though we jump right back to the current position, and this only seems to happen when we're affecting both top and left), so we set a _suspendTransforms flag to prevent it from actually applying the values in the ScrollProxy.
+ }
tween.render(tween.duration(), true, true);
syncXY(true, true);
self.endX = self.x;
@@ -825,6 +1076,9 @@ export class Draggable extends EventDispatcher {
}
tween.play(0);
syncXY(true, true);
+ if (scrollProxy) {
+ scrollProxy._skip = false; //Microsoft browsers have a bug that causes them to briefly render the position incorrectly (it flashes to the end state when we seek() the tween even though we jump right back to the current position, and this only seems to happen when we're affecting both top and left), so we set a _suspendTransforms flag to prevent it from actually applying the values in the ScrollProxy.
+ }
}
} else if (hasBounds) {
self.applyBounds();
@@ -832,10 +1086,10 @@ export class Draggable extends EventDispatcher {
},
updateMatrix = shiftStart => {
- let start = matrix || new Matrix2D(),
+ let start = matrix,
p;
matrix = getGlobalMatrix(target.parentNode, true);
- if (shiftStart && self.isPressed && !matrix.equals(start)) { //if the matrix changes WHILE the element is pressed, we must adjust the startPointerX and startPointerY accordingly, so we invert the original matrix and figure out where the pointerX and pointerY were in the global space, then apply the new matrix to get the updated coordinates.
+ if (shiftStart && self.isPressed && !matrix.equals(start || new Matrix2D())) { //if the matrix changes WHILE the element is pressed, we must adjust the startPointerX and startPointerY accordingly, so we invert the original matrix and figure out where the pointerX and pointerY were in the global space, then apply the new matrix to get the updated coordinates.
p = start.inverse().apply({x:startPointerX, y:startPointerY});
matrix.apply(p, p);
startPointerX = p.x;
@@ -848,7 +1102,7 @@ export class Draggable extends EventDispatcher {
recordStartPositions = () => {
let edgeTolerance = 1 - self.edgeResistance,
- parsedOrigin, parent;
+ parsedOrigin, parent, x, y;
updateMatrix(false);
if (matrix) {
_point1.x = self.pointerX;
@@ -861,26 +1115,37 @@ export class Draggable extends EventDispatcher {
setPointerPosition(self.pointerX, self.pointerY);
render(true);
}
-
- //if the element is in the process of tweening, don't force snapping to occur because it could make it jump. Imagine the user throwing, then before it's done, clicking on the element in its inbetween state.
- if (isTweening()) {
- syncXY(true, true);
+ if (scrollProxy) {
calculateBounds();
+ startElementY = scrollProxy.top();
+ startElementX = scrollProxy.left();
} else {
- self.applyBounds();
- }
- if (rotationMode) {
- parsedOrigin = target.ownerSVGElement ? [gsCache.xOrigin - target.getBBox().x, gsCache.yOrigin - target.getBBox().y] : (_getComputedStyle(target)[_transformOriginProp] || "0 0").split(" ");
- rotationOrigin = self.rotationOrigin = getGlobalMatrix(target).apply({x:parseFloat(parsedOrigin[0]) || 0, y:parseFloat(parsedOrigin[1]) || 0});
- syncXY(true, true);
- startElementX = self.x; //starting rotation (x always refers to rotation in type:"rotation", measured in degrees)
- startElementY = self.y = Math.atan2(rotationOrigin.y - self.pointerY, self.pointerX - rotationOrigin.x) * _RAD2DEG;
- } else {
- parent = !isFixed && target.parentNode;
- startScrollTop = parent ? parent.scrollTop || 0 : 0;
- startScrollLeft = parent ? parent.scrollLeft || 0 : 0;
- startElementY = getPropAsNum(yProp); //record the starting top and left values so that we can just add the mouse's movement to them later.
- startElementX = getPropAsNum(xProp);
+ //if the element is in the process of tweening, don't force snapping to occur because it could make it jump. Imagine the user throwing, then before it's done, clicking on the element in its inbetween state.
+ if (isTweening()) {
+ syncXY(true, true);
+ calculateBounds();
+ } else {
+ self.applyBounds();
+ }
+ if (rotationMode) {
+ parsedOrigin = target.ownerSVGElement ? [gsCache.xOrigin - target.getBBox().x, gsCache.yOrigin - target.getBBox().y] : (_getComputedStyle(target)[_transformOriginProp] || "0 0").split(" ");
+ rotationOrigin = self.rotationOrigin = getGlobalMatrix(target).apply({x: parseFloat(parsedOrigin[0]) || 0, y: parseFloat(parsedOrigin[1]) || 0});
+ syncXY(true, true);
+ x = self.pointerX - rotationOrigin.x;
+ y = rotationOrigin.y - self.pointerY;
+ if (isFixed) {
+ x -= _getDocScrollLeft(ownerDoc);
+ y += _getDocScrollTop(ownerDoc);
+ }
+ startElementX = self.x; //starting rotation (x always refers to rotation in type:"rotation", measured in degrees)
+ startElementY = self.y = Math.atan2(y, x) * _RAD2DEG;
+ } else {
+ parent = !isFixed && target.parentNode;
+ startScrollTop = parent ? parent.scrollTop || 0 : 0;
+ startScrollLeft = parent ? parent.scrollLeft || 0 : 0;
+ startElementY = getPropAsNum(yProp, "px"); //record the starting top and left values so that we can just add the mouse's movement to them later.
+ startElementX = getPropAsNum(xProp, "px");
+ }
}
if (hasBounds && edgeTolerance) {
@@ -918,18 +1183,18 @@ export class Draggable extends EventDispatcher {
interrupted = isTweening();
self.pointerEvent = e;
if (_touchEventLookup[e.type]) { //note: on iOS, BOTH touchmove and mousemove are dispatched, but the mousemove has pageY and pageX of 0 which would mess up the calculations and needlessly hurt performance.
- touchEventTarget = ~e.type.indexOf("touch") ? (e.currentTarget || e.target) : _doc; //pointer-based touches (for Microsoft browsers) don't remain locked to the original target like other browsers, so we must use the document instead. The event type would be "MSPointerDown" or "pointerdown".
+ touchEventTarget = ~e.type.indexOf("touch") ? (e.currentTarget || e.target) : ownerDoc; //pointer-based touches (for Microsoft browsers) don't remain locked to the original target like other browsers, so we must use the document instead. The event type would be "MSPointerDown" or "pointerdown".
_addListener(touchEventTarget, "touchend", onRelease);
_addListener(touchEventTarget, "touchmove", onMove);
_addListener(touchEventTarget, "touchcancel", onRelease);
- _addListener(_doc, "touchstart", _onMultiTouchDocument);
+ _addListener(ownerDoc, "touchstart", _onMultiTouchDocument);
} else {
touchEventTarget = null;
- _addListener(_doc, "mousemove", onMove); //attach these to the document instead of the box itself so that if the user's mouse moves too quickly (and off of the box), things still work.
+ _addListener(ownerDoc, "mousemove", onMove); //attach these to the document instead of the box itself so that if the user's mouse moves too quickly (and off of the box), things still work.
}
touchDragAxis = null;
if (!_supportsPointer) {
- _addListener(_doc, "mouseup", onRelease);
+ _addListener(ownerDoc, "mouseup", onRelease);
if (e && e.target) {
_addListener(e.target, "mouseup", onRelease); //we also have to listen directly on the element because some browsers don't bubble up the event to the _doc on elements with contentEditable="true"
}
@@ -963,7 +1228,7 @@ export class Draggable extends EventDispatcher {
if (allowNativeTouchScrolling || self.autoScroll) {
_recordMaxScrolls(target.parentNode);
}
- if (target.parentNode && self.autoScroll && !rotationMode && target.parentNode._gsMaxScrollX && !_placeholderDiv.parentNode && !target.getBBox) { //add a placeholder div to prevent the parent container from collapsing when the user drags the element left.
+ if (target.parentNode && self.autoScroll && !scrollProxy && !rotationMode && target.parentNode._gsMaxScrollX && !_placeholderDiv.parentNode && !target.getBBox) { //add a placeholder div to prevent the parent container from collapsing when the user drags the element left.
_placeholderDiv.style.width = target.parentNode.scrollWidth + "px";
target.parentNode.appendChild(_placeholderDiv);
}
@@ -972,9 +1237,12 @@ export class Draggable extends EventDispatcher {
self.tween.kill();
}
self.isThrowing = false;
- gsap.killTweensOf(target, killProps, true); //in case the user tries to drag it before the last tween is done.
+ gsap.killTweensOf(scrollProxy || target, killProps, true); //in case the user tries to drag it before the last tween is done.
+ if (scrollProxy) {
+ gsap.killTweensOf(target, {scrollTo:1}, true); //just in case the original target's scroll position is being tweened somewhere else.
+ }
self.tween = self.lockedAxis = null;
- if (vars.zIndexBoost || (!rotationMode && vars.zIndexBoost !== false)) {
+ if (vars.zIndexBoost || (!rotationMode && !scrollProxy && vars.zIndexBoost !== false)) {
target.style.zIndex = Draggable.zIndex++;
}
self.isPressed = true;
@@ -983,7 +1251,8 @@ export class Draggable extends EventDispatcher {
if (!rotationMode && (vars.cursor !== false || vars.activeCursor)) {
i = triggers.length;
while (--i > -1) {
- _setStyle(triggers[i], "cursor", vars.activeCursor || vars.cursor || (_defaultCursor === "grab" ? "grabbing" : _defaultCursor));
+ //_setStyle(triggers[i], "cursor", vars.activeCursor || vars.cursor || (_defaultCursor === "grab" ? "grabbing" : _defaultCursor));
+ gsap.set(triggers[i], {cursor: vars.activeCursor || vars.cursor || (_defaultCursor === "grab" ? "grabbing" : _defaultCursor)});
}
}
_dispatchEvent(self, "press", "onPress");
@@ -1045,7 +1314,7 @@ export class Draggable extends EventDispatcher {
if (self.autoScroll) {
checkAutoScrollBounds = true;
}
- setPointerPosition(e.pageX - (isFixed ? _getDocScrollLeft() : 0), e.pageY - (isFixed ? _getDocScrollTop() : 0), hasMoveCallback);
+ setPointerPosition(e.pageX - (isFixed ? _getDocScrollLeft(ownerDoc) : 0), e.pageY - (isFixed ? _getDocScrollTop(ownerDoc) : 0), hasMoveCallback);
},
setPointerPosition = (pointerX, pointerY, invokeOnMove) => {
@@ -1188,13 +1457,13 @@ export class Draggable extends EventDispatcher {
_removeListener(touchEventTarget, "touchend", onRelease);
_removeListener(touchEventTarget, "touchmove", onMove);
_removeListener(touchEventTarget, "touchcancel", onRelease);
- _removeListener(_doc, "touchstart", _onMultiTouchDocument);
+ _removeListener(ownerDoc, "touchstart", _onMultiTouchDocument);
} else {
- _removeListener(_doc, "mousemove", onMove);
+ _removeListener(ownerDoc, "mousemove", onMove);
}
_removeListener(_win, "touchforcechange", _preventDefault);
if (!_supportsPointer) {
- _removeListener(_doc, "mouseup", onRelease);
+ _removeListener(ownerDoc, "mouseup", onRelease);
if (e && e.target) {
_removeListener(e.target, "mouseup", onRelease);
}
@@ -1258,8 +1527,8 @@ export class Draggable extends EventDispatcher {
if (clickTime !== clickDispatch && self.enabled() && !self.isPressed && !originalEvent.defaultPrevented) {
if (eventTarget.click) { //some browsers (like mobile Safari) don't properly trigger the click event
eventTarget.click();
- } else if (_doc.createEvent) {
- syntheticEvent = _doc.createEvent("MouseEvents");
+ } else if (ownerDoc.createEvent) {
+ syntheticEvent = ownerDoc.createEvent("MouseEvents");
syntheticEvent.initMouseEvent("click", true, true, _win, 1, self.pointerEvent.screenX, self.pointerEvent.screenY, self.pointerX, self.pointerY, false, false, false, false, 0, null);
eventTarget.dispatchEvent(syntheticEvent);
}
@@ -1286,7 +1555,7 @@ export class Draggable extends EventDispatcher {
},
updateScroll = e => {
- if (e && self.isDragging) {
+ if (e && self.isDragging && !scrollProxy) {
let parent = e.target || target.parentNode,
deltaX = parent.scrollLeft - parent._gsScrollX,
deltaY = parent.scrollTop - parent._gsScrollY;
@@ -1386,15 +1655,15 @@ export class Draggable extends EventDispatcher {
return direction;
};
- this.applyBounds = newBounds => {
+ this.applyBounds = (newBounds, sticky) => {
let x, y, forceZeroVelocity, e, parent, isRoot;
if (newBounds && vars.bounds !== newBounds) {
vars.bounds = newBounds;
- return self.update(true);
+ return self.update(true, sticky);
}
syncXY(true);
calculateBounds();
- if (hasBounds) {
+ if (hasBounds && !isTweening()) {
x = self.x;
y = self.y;
if (x > maxX) {
@@ -1420,8 +1689,8 @@ export class Draggable extends EventDispatcher {
if (self.autoScroll && !self.isDragging) {
_recordMaxScrolls(target.parentNode);
e = target;
- _windowProxy.scrollTop = ((_win.pageYOffset != null) ? _win.pageYOffset : (_docElement.scrollTop != null) ? _docElement.scrollTop : _body.scrollTop);
- _windowProxy.scrollLeft = ((_win.pageXOffset != null) ? _win.pageXOffset : (_docElement.scrollLeft != null) ? _docElement.scrollLeft : _body.scrollLeft);
+ _windowProxy.scrollTop = ((_win.pageYOffset != null) ? _win.pageYOffset : (ownerDoc.documentElement.scrollTop != null) ? ownerDoc.documentElement.scrollTop : ownerDoc.body.scrollTop);
+ _windowProxy.scrollLeft = ((_win.pageXOffset != null) ? _win.pageXOffset : (ownerDoc.documentElement.scrollLeft != null) ? ownerDoc.documentElement.scrollLeft : ownerDoc.body.scrollLeft);
while (e && !isRoot) { //walk up the chain and sense wherever the scrollTop/scrollLeft exceeds the maximum.
isRoot = _isRoot(e.parentNode);
parent = isRoot ? _windowProxy : e.parentNode;
@@ -1466,8 +1735,7 @@ export class Draggable extends EventDispatcher {
_recordMaxScrolls(target.parentNode);
checkAutoScrollBounds = self.isDragging;
render(true);
- }
- if (self.autoScroll) { //in case reparenting occurred.
+ //in case reparenting occurred.
_removeScrollListener(target, updateScroll);
_addScrollListener(target, updateScroll);
}
@@ -1475,7 +1743,8 @@ export class Draggable extends EventDispatcher {
};
this.enable = type => {
- let id, i, trigger;
+ let vars = {lazy: true},
+ id, i, trigger;
if (type !== "soft") {
i = triggers.length;
while (--i > -1) {
@@ -1486,12 +1755,15 @@ export class Draggable extends EventDispatcher {
_addListener(trigger, "touchstart", onPress);
_addListener(trigger, "click", onClick, true); //note: used to pass true for capture but it prevented click-to-play-video functionality in Firefox.
if (!rotationMode && vars.cursor !== false) {
- _setStyle(trigger, "cursor", vars.cursor || _defaultCursor);
+ vars.cursor = vars.cursor || _defaultCursor;
+ }
+ if (gsap.utils.checkPrefix("touchCallout")) {
+ vars.touchCallout = "none";
}
- _setStyle(trigger, "touchCallout", "none");
- _setStyle(trigger, "touchAction", (allowX === allowY) ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x");
+ vars.touchAction = (allowX === allowY) ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x";
+ gsap.set(trigger, vars);
if (trigger.getBBox && trigger.ownerSVGElement) { // a bug in chrome doesn't respect touch-action on SVG elements - it only works if we set it on the parent SVG.
- _setStyle(trigger.ownerSVGElement, "touchAction", (allowX === allowY) ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x");
+ gsap.set(trigger.ownerSVGElement, {touchAction: (allowX === allowY) ? "none" : vars.allowNativeTouchScrolling || vars.allowEventDefault ? "manipulation" : allowX ? "pan-y" : "pan-x"});
}
if (!self.vars.allowContextMenu) {
_addListener(trigger, "contextmenu", onContextMenu);
@@ -1502,13 +1774,18 @@ export class Draggable extends EventDispatcher {
_addScrollListener(target, updateScroll);
enabled = true;
if (InertiaPlugin && type !== "soft") {
- InertiaPlugin.track(target, (xyMode ? "x,y" : rotationMode ? "rotation" : "top,left"));
+ InertiaPlugin.track(scrollProxy || target, (xyMode ? "x,y" : rotationMode ? "rotation" : "top,left"));
}
target._gsDragID = id = "d" + (_lookupCount++);
_lookup[id] = self;
- //syncXY();
- recordStartPositions();
- self.update(true);
+ if (scrollProxy) {
+ scrollProxy.enable();
+ scrollProxy.element._gsDragID = id;
+ }
+ if (vars.bounds) {
+ recordStartPositions();
+ self.applyBounds();
+ }
return self;
};
@@ -1538,13 +1815,16 @@ export class Draggable extends EventDispatcher {
_removeListener(touchEventTarget, "touchend", onRelease);
_removeListener(touchEventTarget, "touchmove", onMove);
}
- _removeListener(_doc, "mouseup", onRelease);
- _removeListener(_doc, "mousemove", onMove);
+ _removeListener(ownerDoc, "mouseup", onRelease);
+ _removeListener(ownerDoc, "mousemove", onMove);
}
_removeScrollListener(target, updateScroll);
enabled = false;
if (InertiaPlugin && type !== "soft") {
- InertiaPlugin.untrack(target, (xyMode ? "x,y" : rotationMode ? "rotation" : "top,left"));
+ InertiaPlugin.untrack(scrollProxy || target, (xyMode ? "x,y" : rotationMode ? "rotation" : "top,left"));
+ }
+ if (scrollProxy) {
+ scrollProxy.disable();
}
_removeFromRenderQueue(render);
self.isDragging = self.isPressed = isClicking = false;
@@ -1560,13 +1840,24 @@ export class Draggable extends EventDispatcher {
this.kill = function() {
self.isThrowing = false;
- gsap.killTweensOf(target, killProps, true);
+ gsap.killTweensOf(scrollProxy || target, killProps, true);
self.disable();
gsap.set(triggers, {clearProps:"userSelect"});
delete _lookup[target._gsDragID];
return self;
};
+ if (~type.indexOf("scroll")) {
+ scrollProxy = this.scrollProxy = new ScrollProxy(target, _extend({onKill:function() { //ScrollProxy's onKill() gets called if/when the ScrollProxy senses that the user interacted with the scroll position manually (like using the scrollbar). IE9 doesn't fire the "mouseup" properly when users drag the scrollbar of an element, so this works around that issue.
+ if (self.isPressed) {
+ onRelease(null);
+ }}}, vars));
+ //a bug in many Android devices' stock browser causes scrollTop to get forced back to 0 after it is altered via JS, so we set overflow to "hidden" on mobile/touch devices (they hide the scroll bar anyway). That works around the bug. (This bug is discussed at https://code.google.com/p/android/issues/detail?id=19625)
+ target.style.overflowY = (allowY && !_isTouchDevice) ? "auto" : "hidden";
+ target.style.overflowX = (allowX && !_isTouchDevice) ? "auto" : "hidden";
+ target = scrollProxy.content;
+ }
+
if (rotationMode) {
killProps.rotation = 1;
} else {
@@ -1637,7 +1928,7 @@ export class Draggable extends EventDispatcher {
_setDefaults(Draggable.prototype, {pointerX:0, pointerY: 0, startX: 0, startY: 0, deltaX: 0, deltaY: 0, isDragging: false, isPressed: false});
Draggable.zIndex = 1000;
-Draggable.version = "3.0.0";
+Draggable.version = "3.0.2";
_getGSAP() && gsap.registerPlugin(Draggable);
diff --git a/src/EasePack.js b/src/EasePack.js
index b641072..05a6d48 100644
--- a/src/EasePack.js
+++ b/src/EasePack.js
@@ -1,5 +1,5 @@
/*!
- * EasePack 3.0.0
+ * EasePack 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -155,7 +155,7 @@ export const EasePack = {
for (let p in EasePack) {
EasePack[p].register = _initCore;
- EasePack[p].version = "3.0.0";
+ EasePack[p].version = "3.0.2";
}
_getGSAP() && gsap.registerPlugin(SlowMo);
diff --git a/src/EaselPlugin.js b/src/EaselPlugin.js
index 0eb301a..36115b7 100644
--- a/src/EaselPlugin.js
+++ b/src/EaselPlugin.js
@@ -1,5 +1,5 @@
/*!
- * EaselPlugin 3.0.0
+ * EaselPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -211,7 +211,7 @@ let gsap, _coreInitted, _win, _createJS, _ColorFilter, _ColorMatrixFilter,
export const EaselPlugin = {
- version: "3.0.0",
+ version: "3.0.2",
name: "easel",
init(target, value, tween, index, targets) {
if (!_coreInitted) {
diff --git a/src/MotionPathPlugin.js b/src/MotionPathPlugin.js
index c5cea81..14231f2 100644
--- a/src/MotionPathPlugin.js
+++ b/src/MotionPathPlugin.js
@@ -1,5 +1,5 @@
/*!
- * MotionPathPlugin 3.0.0
+ * MotionPathPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -112,7 +112,7 @@ let _xProps = ["x","translateX","left","marginLeft"],
export const MotionPathPlugin = {
- version:"3.0.0",
+ version:"3.0.2",
name:"motionPath",
register(core, Plugin, propTween) {
gsap = core;
@@ -200,6 +200,8 @@ export const MotionPathPlugin = {
transformRawPath: transformRawPath,
convertToPath: (targets, swap) => _toArray(targets).map(target => convertToPath(target, swap !== false)),
getGlobalMatrix: getGlobalMatrix,
+ getPositionOnPath: getPositionOnPath,
+ cacheRawPathMeasurements: cacheRawPathMeasurements,
arrayToRawPath(value, vars) {
vars = vars || {};
let segment = _populateSegmentFromArray(_populateSegmentFromArray([], value, vars.x || "x", 0), value, vars.y || "y", 1);
diff --git a/src/PixiPlugin.js b/src/PixiPlugin.js
index 17be62f..583cefa 100644
--- a/src/PixiPlugin.js
+++ b/src/PixiPlugin.js
@@ -1,5 +1,5 @@
/*!
- * PixiPlugin 3.0.0
+ * PixiPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -232,7 +232,7 @@ for (i = 0; i < _xyContexts.length; i++) {
export const PixiPlugin = {
- version:"3.0.0",
+ version:"3.0.2",
name:"pixi",
register(core, Plugin, propTween) {
gsap = core;
diff --git a/src/ScrollToPlugin.js b/src/ScrollToPlugin.js
index 191b432..a1a2b81 100644
--- a/src/ScrollToPlugin.js
+++ b/src/ScrollToPlugin.js
@@ -1,5 +1,5 @@
/*!
- * ScrollToPlugin 3.0.0
+ * ScrollToPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -44,7 +44,7 @@ let gsap, _coreInitted, _window, _docEl, _body, _toArray, _config,
_parseVal = (value, target, axis, currentVal) => !isNaN(value) ? parseFloat(value) : (_isString(value) && value.charAt(1) === "=") ? parseFloat(value.substr(2)) * (value.charAt(0) === "-" ? -1 : 1) + currentVal : (value === "max") ? _max(target, axis) : Math.min(_max(target, axis), _getOffset(value, target)[axis]),
_initCore = () => {
gsap = _getGSAP();
- if (_windowExists() && gsap) {
+ if (_windowExists() && gsap && document.body) {
_window = window;
_body = document.body;
_docEl = document.documentElement;
@@ -57,9 +57,10 @@ let gsap, _coreInitted, _window, _docEl, _body, _toArray, _config,
export const ScrollToPlugin = {
- version:"3.0.0",
+ version:"3.0.2",
name:"scrollTo",
- register(core, Plugin, propTween) {
+ rawVars:1,
+ register(core) {
gsap = core;
_initCore();
},
diff --git a/src/TextPlugin.js b/src/TextPlugin.js
index c20c701..4476fcc 100644
--- a/src/TextPlugin.js
+++ b/src/TextPlugin.js
@@ -1,5 +1,5 @@
/*!
- * TextPlugin 3.0.0
+ * TextPlugin 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -16,7 +16,7 @@ let gsap,
export const TextPlugin = {
- version:"3.0.0",
+ version:"3.0.2",
name:"text",
init(target, value, tween) {
let i = target.nodeName.toUpperCase(),
diff --git a/src/gsap-core.js b/src/gsap-core.js
index 7ecbe6c..7a14016 100644
--- a/src/gsap-core.js
+++ b/src/gsap-core.js
@@ -1,5 +1,5 @@
/*!
- * GSAP 3.0.1
+ * GSAP 3.0.2
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
@@ -48,7 +48,7 @@ let _config = {
_installScope = {},
_coreReady,
_install = scope => (_installScope = _merge(scope, _globals)) && gsap,
- _missingPlugin = (property, value) => console.warn("Invalid", property, "tween of", value, "Missing plugin? gsap.registerPlugin()"),
+ _missingPlugin = (property, value) => console.warn("Invalid property", property, "set to", value, "Missing plugin? gsap.registerPlugin()"),
_warn = (message, suppress) => !suppress && console.warn(message),
_addGlobal = (name, obj) => (name && (_globals[name] = obj) && (_installScope && (_installScope[name] = obj))) || _globals,
_emptyFunc = () => 0,
@@ -64,7 +64,7 @@ let _config = {
let target = targets[0],
harnessPlugin, i;
if (!_isObject(target) && !_isFunction(target)) {
- return _isArray(targets) ? targets : [targets];
+ targets = [targets];
}
if (!(harnessPlugin = (target._gsap || {}).harness)) {
i = _harnessPlugins.length;
@@ -73,7 +73,7 @@ let _config = {
}
i = targets.length;
while (i--) {
- targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin));
+ (targets[i] && (targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin)))) || targets.splice(i, 1);
}
return targets;
},
@@ -255,10 +255,7 @@ let _config = {
return animation;
},
_hasNoPausedAncestors = animation => !animation || (animation._ts && _hasNoPausedAncestors(animation.parent)),
- _elapsedCycleDuration = animation => {
- let cycleDuration;
- return animation._repeat ? (cycleDuration = animation.duration() + animation._rDelay) * ~~(animation._tTime / cycleDuration) : 0;
- },
+ _elapsedCycleDuration = animation => animation._repeat ? ~~(animation._tTime / (animation = animation.duration() + animation._rDelay)) * animation : 0,
_parentToChildTotalTime = (parentTime, child) => child._ts > 0 ? (parentTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (parentTime - child._start) * child._ts,
/*
_totalTimeToTime = (clampedTotalTime, duration, repeat, repeatDelay, yoyo) => {
@@ -300,7 +297,7 @@ let _config = {
if (!tween._initted) {
return 1;
}
- if (!force && tween._pt && tween.vars.lazy) {
+ if (!force && tween._pt && ((tween._dur && tween.vars.lazy !== false) || (!tween._dur && tween.vars.lazy))) {
_lazyTweens.push(tween);
tween._lazy = [totalTime, suppressEvents];
return 1;
@@ -324,7 +321,7 @@ let _config = {
}
if (iteration !== prevIteration) {
prevRatio = 1 - ratio;
- if (tween.vars.repeatRefresh) {
+ if (tween.vars.repeatRefresh && tween._initted) {
tween.invalidate();
}
}
@@ -332,10 +329,8 @@ let _config = {
if (!tween._initted && _attemptInitTween(tween, totalTime, force, suppressEvents)) { //if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.
return;
}
- if (ratio !== prevRatio || force) {
- if (!suppressEvents || totalTime) { //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.
- tween._zTime = totalTime;
- }
+ if (ratio !== prevRatio || force || tween._zTime === _tinyNum || (!totalTime && tween._zTime)) {
+ tween._zTime = totalTime || (suppressEvents ? _tinyNum : 0); //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.
tween.ratio = ratio;
if (tween._from) {
ratio = 1 - ratio;
@@ -363,7 +358,7 @@ let _config = {
tween.ratio && _removeFromParent(tween, 1);
if (!suppressEvents) {
_callback(tween, (tween.ratio ? "onComplete" : "onReverseComplete"), true);
- tween._prom && tween.ratio && tween._prom();
+ tween._prom && tween._prom();
}
}
}
@@ -427,7 +422,7 @@ let _config = {
getUnit = value => (value + "").substr((parseFloat(value) + "").length),
clamp = (min, max, value) => _conditionalReturn(value, v => _clamp(min, max, v)),
_slice = [].slice,
- _isArrayLike = value => (_isObject(value) && "length" in value && (value.length - 1) in value && _isObject(value[0]) && value !== _win),
+ _isArrayLike = value => value && (_isObject(value) && "length" in value && (value.length - 1) in value && _isObject(value[0]) && !value.nodeType && value !== _win),
_flatten = (ar, leaveStrings, accumulator = []) => ar.forEach(value => (_isString(value) && !leaveStrings) || _isArrayLike(value) ? accumulator.push(...toArray(value)) : accumulator.push(value)) || accumulator,
toArray = (value, leaveStrings) => { //takes any value and returns an array. If it's a string (and leaveStrings isn't true), it'll use document.querySelectorAll() and convert that to an array. It'll also accept iterables like jQuery objects.
return _isString(value) && !leaveStrings && (_coreInitted || !_wake()) ? _slice.call(_doc.querySelectorAll(value), 0) : _isArray(value) ? _flatten(value, leaveStrings) : _isArrayLike(value) ? _slice.call(value, 0) : value ? [value] : [];
@@ -626,7 +621,7 @@ let _config = {
if (executeLazyFirst && _lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.
_lazyRender();
}
- return params ? callback.apply(scope, params) : callback.call(scope, animation);
+ return params ? callback.apply(scope, params) : callback.call(scope);
},
_interrupt = animation => {
_removeFromParent(animation);
@@ -1186,13 +1181,14 @@ export class Animation {
}
}
if (this._tTime !== totalTime || !this._dur) {
+ this._ts || (this._pTime = totalTime); // otherwise, if an animation is paused, then the playhead is moved back to zero, then resumed, it'd revert back to the original time at the pause
_lazySafeRender(this, totalTime, suppressEvents);
}
return this;
}
time(value, suppressEvents) {
- return arguments.length ? this.totalTime(value + _elapsedCycleDuration(this), suppressEvents) : this._time;
+ return arguments.length ? this.totalTime(((value + _elapsedCycleDuration(this)) % this.duration()) || (value ? this._dur : 0), suppressEvents) : this._time; // note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!
}
totalProgress(value, suppressEvents) {
@@ -1200,7 +1196,7 @@ export class Animation {
}
progress(value, suppressEvents) {
- return arguments.length ? this.totalTime( this.duration() * value + _elapsedCycleDuration(this), suppressEvents) : (this.duration() ? this._time / this._dur : this.ratio);
+ return arguments.length ? this.totalTime( this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : (this.duration() ? this._time / this._dur : this.ratio);
}
iteration(value, suppressEvents) {
@@ -1347,11 +1343,11 @@ export class Animation {
return this;
}
- isActive() {
+ isActive(hasStarted) {
let parent = this.parent || this._dp,
start = this._start,
rawTime;
- return !parent || (this._ts && this._initted && parent.isActive() && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum);
+ return !parent || (this._ts && (this._initted || !hasStarted) && parent.isActive(hasStarted) && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum);
}
eventCallback(type, callback, params) {
@@ -1373,11 +1369,24 @@ export class Animation {
return vars[type];
}
- then(onFulfilled = _emptyFunc) {
+ then(onFulfilled) {
return new Promise(resolve => {
- this._prom = () => {
- onFulfilled(this);
- resolve();
+ let f = onFulfilled || _passThrough,
+ _resolve = () => {
+ let _then = this.then;
+ this.then = null; // temporarily null the then() method to avoid an infinite loop (see https://github.com/greensock/GSAP/issues/322)
+ f = f(this);
+ if (f && (f.then || f === this)) {
+ this._prom = f;
+ this.then = _then;
+ }
+ resolve(f);
+ this.then = _then;
+ };
+ if (this._initted && (this.totalProgress() === 1 && this._ts >= 0) || (!this._tTime && this._ts < 0)) {
+ _resolve();
+ } else {
+ this._prom = _resolve;
}
});
}
@@ -1388,7 +1397,7 @@ export class Animation {
}
-_setDefaults(Animation.prototype, {_time:0, _start:0, _end:0, _tTime:0, _tDur:0, _dirty:0, _repeat:0, _yoyo:false, parent:0, _rDelay:0, _ts:1, _dp:0, ratio:0, _zTime:-_tinyNum, _prom:0});
+_setDefaults(Animation.prototype, {_time:0, _start:0, _end:0, _tTime:0, _tDur:0, _dirty:0, _repeat:0, _yoyo:false, parent:0, _initted:false, _rDelay:0, _ts:1, _dp:0, ratio:0, _zTime:-_tinyNum, _prom:0});
@@ -1481,7 +1490,7 @@ export class Timeline extends Animation {
tDur = this._dirty ? this.totalDuration() : this._tDur,
dur = this._dur,
tTime = (totalTime > tDur - _tinyNum && totalTime >= 0 && this !== _globalTimeline) ? tDur : (totalTime < _tinyNum) ? 0 : totalTime,
- crossingStart = (this._zTime < 0) !== (totalTime < 0) && this._initted,
+ crossingStart = (this._zTime < 0) !== (totalTime < 0) && (this._initted || !dur),
time, child, next, iteration, cycleDuration, prevPaused, pauseTween, timeScale, prevStart, prevIteration, yoyo, isYoyo;
if (tTime !== this._tTime || force || crossingStart) {
if (crossingStart) {
@@ -1622,7 +1631,7 @@ export class Timeline extends Animation {
(totalTime || !dur) && _removeFromParent(this, 1);
if (!suppressEvents && !(totalTime < 0 && !prevTime)) {
_callback(this, (tTime === tDur ? "onComplete" : "onReverseComplete"), true);
- this._prom && (tTime === tDur) && this._prom();
+ this._prom && this._prom();
}
}
}
@@ -1747,7 +1756,7 @@ export class Timeline extends Animation {
let tweens = this.getTweensOf(targets, onlyActive),
i = tweens.length;
while (i--) {
- tweens[i].kill(targets, props);
+ (_overwritingTween !== tweens[i]) && tweens[i].kill(targets, props);
}
return this;
}
@@ -1759,7 +1768,7 @@ export class Timeline extends Animation {
children;
while (child) {
if (child instanceof Tween) {
- if (_arrayContainsAny(child._targets, parsedTargets) && (!onlyActive || child.isActive())) {
+ if (_arrayContainsAny(child._targets, parsedTargets) && (!onlyActive || child.isActive(onlyActive === "started"))) {
a.push(child);
}
} else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) {
@@ -2010,7 +2019,7 @@ let _addComplexStringPropTween = function(target, prop, start, end, setter, stri
end = _replaceRandom(end);
}
if (end.charAt(1) === "=") {
- end = parseFloat(parsedStart) + parseFloat(end.substr(2)) * (end.charAt(0) === "-" ? -1 : 1) + getUnit(parsedStart);
+ end = parseFloat(parsedStart) + parseFloat(end.substr(2)) * (end.charAt(0) === "-" ? -1 : 1) + (getUnit(parsedStart) || 0);
}
}
if (parsedStart !== end) {
@@ -2107,13 +2116,10 @@ let _addComplexStringPropTween = function(target, prop, start, end, setter, stri
lazy: (immediateRender && _isNotFalse(lazy)),
immediateRender: immediateRender, //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
stagger: 0,
- parent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y:gsap.utils.cycle([-100,100])})
+ parent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y:gsap.utils.wrap([-100,100])})
})));
if (!immediateRender) {
- _initTween(tween._startAt, time); //ensures that the initial values are recorded
- if (immediateRender) {
- !autoRevert && (tween._startAt = 0);
- }
+ _initTween(tween._startAt, _tinyNum); //ensures that the initial values are recorded
} else if (!time) {
return;
}
@@ -2123,6 +2129,7 @@ let _addComplexStringPropTween = function(target, prop, start, end, setter, stri
tween._pt = 0;
harness = targets[0] ? _getCache(targets[0]).harness : 0;
harnessVars = harness && vars[harness.prop]; //someone may need to specify CSS-specific values AND non-CSS values, like if the element has an "x" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.
+ lazy = (dur && _isNotFalse(lazy)) || (lazy && !dur);
for (i = 0; i < targets.length; i++) {
target = targets[i];
gsData = target._gsap || _harness(targets)[i]._gsap;
@@ -2154,10 +2161,10 @@ let _addComplexStringPropTween = function(target, prop, start, end, setter, stri
}
if (autoOverwrite) {
_overwritingTween = tween;
- _globalTimeline.killTweensOf(target, ptLookup, true); //Also make sure the overwriting doesn't overwrite THIS tween!!!
+ _globalTimeline.killTweensOf(target, ptLookup, "started"); //Also make sure the overwriting doesn't overwrite THIS tween!!!
_overwritingTween = 0;
}
- if (tween._pt && ((_isNotFalse(lazy) && dur) || (lazy && !dur))) {
+ if (tween._pt && lazy) {
_lazyLookup[gsData.id] = 1;
}
}
@@ -2193,8 +2200,8 @@ let _addComplexStringPropTween = function(target, prop, start, end, setter, stri
return copy;
},
_parseFuncOrString = (value, tween, i, target, targets) => (_isFunction(value) ? value.call(tween, i, target, targets) : (_isString(value) && ~value.indexOf("random(")) ? _replaceRandom(value) : value),
- _staggerTweenProps = _callbackNames + ",repeat,repeatDelay,yoyo,yoyoEase",
- _staggerPropsToSkip = (_staggerTweenProps + ",id,stagger,delay,duration").split(",");
+ _staggerTweenProps = _callbackNames + ",repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",
+ _staggerPropsToSkip = (_staggerTweenProps + ",id,stagger,delay,duration,paused").split(",");
@@ -2234,9 +2241,9 @@ export class Tween extends Animation {
}
super(_inheritDefaults(vars), time);
let { duration, delay, immediateRender, stagger, overwrite, keyframes, defaults } = this.vars,
- parsedTargets = toArray(targets),
+ parsedTargets = _isArray(targets) && _isNumber(targets[0]) ? [targets] : toArray(targets),
tl, i, copy, l, p, curTarget, staggerFunc, staggerVarsToMerge;
- this._targets = parsedTargets.length ? _harness(parsedTargets) : _warn("GSAP target " + targets + " not found. https://greensock.com", !_config.nullTargetWarn) || [{}];
+ this._targets = parsedTargets.length ? _harness(parsedTargets) : _warn("GSAP target " + targets + " not found. https://greensock.com", !_config.nullTargetWarn) || [];
this._ptLookup = []; //PropTween lookup. An array containing an object for each target, having keys for each tweening property
this._overwrite = overwrite;
if (keyframes || stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {
@@ -2314,7 +2321,7 @@ export class Tween extends Animation {
time, pt, iteration, cycleDuration, prevIteration, isYoyo, ratio, timeline, yoyoEase;
if (!dur) {
_renderZeroDurationTween(this, totalTime, suppressEvents, force);
- } else if (tTime !== this._tTime || force || (this._startAt && (this._zTime < 0) !== (totalTime < 0))) { //this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)
+ } else if (tTime !== this._tTime || !totalTime || force || (this._startAt && (this._zTime < 0) !== (totalTime < 0))) { //this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)
time = tTime;
timeline = this.timeline;
if (this._repeat) { //adjust the time for repeats and yoyos
@@ -2337,7 +2344,7 @@ export class Tween extends Animation {
if (prevIteration && prevIteration === this._tTime / cycleDuration) {
prevIteration--;
}
- if (time === prevTime && !force) {
+ if (time === prevTime && !force && this._initted) {
//could be during the repeatDelay part. No need to render and fire callbacks.
return this;
}
@@ -2345,7 +2352,7 @@ export class Tween extends Animation {
//timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);
//repeatRefresh functionality
if (this.vars.repeatRefresh && !this._lock) {
- this._lock = 1;
+ this._lock = force = 1; //force, otherwise if lazy is true, the _attemptInitTween() will return and we'll jump out and get caught bouncing on each tick.
this.render(cycleDuration * iteration, true).invalidate()._lock = 0;
}
}
@@ -2397,7 +2404,7 @@ export class Tween extends Animation {
(totalTime || !dur) && (tTime || this._ts < 0) && _removeFromParent(this, 1); // don't remove if we're rendering at exactly a time of 0, as there could be autoRevert values that should get set on the next tick (if the playhead goes backward beyond the startTime, negative totalTime).
if (!suppressEvents && !(totalTime < 0 && !prevTime)) {
_callback(this, (tTime === tDur ? "onComplete" : "onReverseComplete"), true);
- this._prom && (tTime === tDur) && this._prom();
+ this._prom && this._prom();
}
}
@@ -2419,17 +2426,14 @@ export class Tween extends Animation {
}
kill(targets, vars = "all") {
- if (_overwritingTween === this) {
- return _overwritingTween;
- }
if (!targets && (!vars || vars === "all")) {
+ this._lazy = 0;
if (this.parent) {
- this._lazy = 0;
return _interrupt(this);
}
}
if (this.timeline) {
- this.timeline.killTweensOf(targets, vars);
+ this.timeline.killTweensOf(targets, vars, !!_overwritingTween);
return this;
}
let parsedTargets = this._targets,
@@ -2511,7 +2515,7 @@ export class Tween extends Animation {
}
}
-_setDefaults(Tween.prototype, {_targets:[], _initted:0, _lazy:0, _startAt:0, _op:0, _onInit:0});
+_setDefaults(Tween.prototype, {_targets:[], _lazy:0, _startAt:0, _op:0, _onInit:0});
//add the pertinent timeline methods to Tween instances so that users can chain conveniently and create a timeline automatically. (removed due to concerns that it'd ultimately add to more confusion especially for beginners)
// _forEachName("to,from,fromTo,set,call,add,addLabel,addPause", name => {
@@ -2556,7 +2560,7 @@ let _setterPlain = (target, property, value) => target[property] = value,
_setterFuncWithParam = (target, property, value, data) => target[property](data.fp, value),
_setterAttribute = (target, property, value) => target.setAttribute(property, value),
_getSetter = (target, property) => _isFunction(target[property]) ? _setterFunc : _isUndefined(target[property]) && target.setAttribute ? _setterAttribute : _setterPlain,
- _renderPlain = (ratio, data) => data.set(data.t, data.p, ~~((data.s + data.c * ratio) * 10000) / 10000, data),
+ _renderPlain = (ratio, data) => data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 10000) / 10000, data),
_renderBoolean = (ratio, data) => data.set(data.t, data.p, !!(data.s + data.c * ratio), data),
_renderComplexString = function(ratio, data) {
let pt = data._pt,
@@ -2567,7 +2571,7 @@ let _setterPlain = (target, property, value) => target[property] = value,
s = data.e;
} else {
while (pt) {
- s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : (~~((pt.s + pt.c * ratio) * 10000) / 10000)) + s; //we use the "p" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.
+ s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : (Math.round((pt.s + pt.c * ratio) * 10000) / 10000)) + s; //we use the "p" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.
pt = pt._next;
}
s += data.c; //we use the "c" of the PropTween to store the final chunk of non-numeric text.
@@ -2606,10 +2610,10 @@ let _setterPlain = (target, property, value) => target[property] = value,
}
return !hasNonDependentRemaining;
},
- _setterWithModifier = function(target, property, value, data) {
+ _setterWithModifier = (target, property, value, data) => {
data.mSet(target, property, data.m.call(data.tween, value, data.mt), data);
},
- _sortPropTweensByPriority = (parent) => {
+ _sortPropTweensByPriority = parent => {
let pt = parent._pt,
next, pt2, first, last;
//sorts the PropTween linked list in order of priority because some plugins need to do their work after ALL of the PropTweens were created (like RoundPropsPlugin and ModifiersPlugin)
@@ -2691,7 +2695,7 @@ _config.stringFilter = _colorStringFilter;
* GSAP
* --------------------------------------------------------------------------------------
*/
-export const gsap = {
+const _gsap = {
registerPlugin(...args) {
args.forEach(config => _createPlugin(config));
},
@@ -2794,9 +2798,9 @@ export const gsap = {
core: {PropTween: PropTween, globals: _addGlobal, Tween: Tween, Timeline: Timeline, Animation: Animation, getCache: _getCache}
};
-_forEachName("to,from,fromTo,delayedCall,set,killTweensOf", name => gsap[name] = Tween[name]);
+_forEachName("to,from,fromTo,delayedCall,set,killTweensOf", name => _gsap[name] = Tween[name]);
_ticker.add(Timeline.updateRoot);
-_quickTween = gsap.to({}, {duration:0});
+_quickTween = _gsap.to({}, {duration:0});
@@ -2804,20 +2808,28 @@ _quickTween = gsap.to({}, {duration:0});
// ---- EXTRA PLUGINS --------------------------------------------------------
-let _addModifiers = (tween, modifiers) => {
- let targets = tween._targets,
- p, i, pt;
- for (p in modifiers) {
- i = targets.length;
- while (i--) {
- pt = tween._ptLookup[i][p];
- if (pt) {
- if (pt.d.modifier) {
- pt.d.modifier(modifiers[p], tween, targets[i], p);
+let _getPluginPropTween = (plugin, prop) => {
+ let pt = plugin._pt;
+ while (pt && pt.p !== prop && pt.op !== prop && pt.fp !== prop) {
+ pt = pt._next;
+ }
+ return pt;
+ },
+ _addModifiers = (tween, modifiers) => {
+ let targets = tween._targets,
+ p, i, pt;
+ for (p in modifiers) {
+ i = targets.length;
+ while (i--) {
+ pt = tween._ptLookup[i][p];
+ if (pt && (pt = pt.d)) {
+ if (pt._pt) { // is a plugin
+ pt = _getPluginPropTween(pt, p);
+ }
+ pt && pt.modifier && pt.modifier(modifiers[p], tween, targets[i], p);
}
}
}
- }
},
_buildModifierPlugin = (name, modifier) => {
return {
@@ -2845,7 +2857,7 @@ let _addModifiers = (tween, modifiers) => {
};
//register core plugins
-gsap.registerPlugin({
+export const gsap = _gsap.registerPlugin({
name:"attr",
init(target, vars, tween, index, targets) {
for (let p in vars) {
@@ -2859,16 +2871,16 @@ gsap.registerPlugin({
init(target, value) {
let i = value.length;
while (i--) {
- this.add(target, i, target[i], value[i]);
+ this.add(target, i, target[i] || 0, value[i]);
}
}
},
_buildModifierPlugin("roundProps", _roundModifier),
_buildModifierPlugin("modifiers"),
_buildModifierPlugin("snap", snap)
-);
+) || _gsap; //to prevent the core plugins from being dropped via aggressive tree shaking, we must include them in the variable declaration in this way.
-Tween.version = Timeline.version = gsap.version = "3.0.1";
+Tween.version = Timeline.version = gsap.version = "3.0.2";
_coreReady = 1;
if (_windowExists()) {
_wake();
diff --git a/src/utils/matrix.js b/src/utils/matrix.js
index 7a90f8b..1c57ab0 100644
--- a/src/utils/matrix.js
+++ b/src/utils/matrix.js
@@ -1,5 +1,5 @@
/*!
- * matrix 3.0.0
+ * matrix 3.0.2
* https://greensock.com
*
* Copyright 2008-2019, GreenSock. All rights reserved.
@@ -33,6 +33,15 @@ let _doc, _win, _docElement, _body, _divContainer, _svgContainer, _identityMatri
_getDocScrollTop = () => _win.pageYOffset || _doc.scrollTop || _docElement.scrollTop || _body.scrollTop || 0,
_getDocScrollLeft = () => _win.pageXOffset || _doc.scrollLeft || _docElement.scrollLeft || _body.scrollLeft || 0,
_svgOwner = element => element.ownerSVGElement || ((element.tagName + "").toLowerCase() === "svg" ? element : null),
+ _isFixed = element => {
+ if (_win.getComputedStyle(element).position === "fixed") {
+ return true;
+ }
+ element = element.parentNode;
+ if (element && element.nodeType === 1) { // avoid document fragments which will throw an error.
+ return _isFixed(element);
+ }
+ },
_createSibling = (element, i) => {
if (element.parentNode && (_doc || _setDoc(element))) {
let svg = _svgOwner(element),
@@ -79,7 +88,7 @@ let _doc, _win, _docElement, _body, _divContainer, _svgContainer, _identityMatri
container = svg ? _svgContainer : _divContainer;
if (svg) {
b = isRootSVG ? {x:0, y:0} : element.getBBox();
- m = element.transform.baseVal;
+ m = element.transform ? element.transform.baseVal : []; // IE11 doesn't follow the spec.
if (m.length) {
m = m.consolidate().matrix;
x = m.a * b.x + m.c * b.y;
@@ -101,6 +110,7 @@ let _doc, _win, _docElement, _body, _divContainer, _svgContainer, _identityMatri
m = _win.getComputedStyle(element);
container.style[_transformProp] = m[_transformProp];
container.style[_transformOriginProp] = m[_transformOriginProp];
+ container.style.position = m.position === "fixed" ? "fixed" : "absolute";
element.parentNode.appendChild(container);
}
return container;
@@ -174,7 +184,7 @@ export class Matrix2D {
// tx = m.a * x + m.c * y + m.e
// ty = m.b * x + m.d * y + m.f
export function getGlobalMatrix(element, inverse) {
- if (!element.parentNode) {
+ if (!element || !element.parentNode) {
return new Matrix2D();
}
let svg = _svgOwner(element),
@@ -184,13 +194,14 @@ export function getGlobalMatrix(element, inverse) {
b2 = temps[1].getBoundingClientRect(),
b3 = temps[2].getBoundingClientRect(),
parent = container.parentNode,
+ isFixed = _isFixed(element),
m = new Matrix2D(
(b2.left - b1.left) / 100,
(b2.top - b1.top) / 100,
(b3.left - b1.left) / 100,
(b3.top - b1.top) / 100,
- b1.left + _getDocScrollLeft(),
- b1.top + _getDocScrollTop()
+ b1.left + (isFixed ? 0 : _getDocScrollLeft()),
+ b1.top + (isFixed ? 0 : _getDocScrollTop())
);
parent.removeChild(container);
return inverse ? m.inverse() : m;
diff --git a/src/utils/paths.js b/src/utils/paths.js
index a745789..d8d905a 100644
--- a/src/utils/paths.js
+++ b/src/utils/paths.js
@@ -1,5 +1,5 @@
/*!
- * paths 3.0.0
+ * paths 3.0.2
* https://greensock.com
*
* Copyright 2008-2019, GreenSock. All rights reserved.
@@ -388,17 +388,25 @@ function measureSegment(segment, startIndex, bezierQty) {
y3 = segment[j + 3] - y1;
y2 = segment[j + 1] - y1;
xd = xd1 = yd = yd1 = 0;
- for (i = 1; i <= resolution; i++) {
- t = inc * i;
- inv = 1 - t;
- xd = xd1 - (xd1 = (t * t * x4 + 3 * inv * (t * x3 + inv * x2)) * t);
- yd = yd1 - (yd1 = (t * t * y4 + 3 * inv * (t * y3 + inv * y2)) * t);
- l = _sqrt(yd * yd + xd * xd);
- if (l < min) {
- min = l;
+ if (_abs(x4) < 1e-5 && _abs(y4) < 1e-5 && _abs(x2) + _abs(y2) < 1e-5) { //dump points that are sufficiently close (basically right on top of each other, making a bezier super tiny or 0 length)
+ if (segment.length > 8) {
+ segment.splice(j, 6);
+ j -= 6;
+ endIndex -= 6;
+ }
+ } else {
+ for (i = 1; i <= resolution; i++) {
+ t = inc * i;
+ inv = 1 - t;
+ xd = xd1 - (xd1 = (t * t * x4 + 3 * inv * (t * x3 + inv * x2)) * t);
+ yd = yd1 - (yd1 = (t * t * y4 + 3 * inv * (t * y3 + inv * y2)) * t);
+ l = _sqrt(yd * yd + xd * xd);
+ if (l < min) {
+ min = l;
+ }
+ length += l;
+ samples[samplesIndex++] = length;
}
- length += l;
- samples[samplesIndex++] = length;
}
x1 += x4;
y1 += y4;
diff --git a/src/utils/strings.js b/src/utils/strings.js
index 2971c80..7c36d16 100644
--- a/src/utils/strings.js
+++ b/src/utils/strings.js
@@ -1,5 +1,5 @@
/*!
- * strings: 3.0.0
+ * strings: 3.0.2
* https://greensock.com
*
* Copyright 2008-2019, GreenSock. All rights reserved.
diff --git a/types/animation.d.ts b/types/animation.d.ts
new file mode 100644
index 0000000..41a65ad
--- /dev/null
+++ b/types/animation.d.ts
@@ -0,0 +1,56 @@
+declare namespace gsap.core {
+
+ class Animation {
+
+ static readonly version: string;
+
+ data: any;
+
+ constructor(vars?: object, time?: number);
+
+ delay(value: number): this;
+ delay(): number;
+ duration(value: number): this;
+ duration(): number;
+ endTime(includeRepeats?: boolean): number;
+ eventCallback(type: CallbackType, callback: Callback, params?: any[], scope?: object): this;
+ eventCallback(type: CallbackType): Callback;
+ invalidate(): this;
+ isActive(): boolean;
+ iteration(value: number, supressEvents?: boolean): this;
+ iteration(): number;
+ kill(): this;
+ pause(atTime?: number, supressEvents?: boolean): this;
+ paused(value: boolean): this;
+ paused(): boolean;
+ play(from?: number, supressEvents?: boolean): this;
+ progress(value: number, supressEvents?: boolean): this;
+ progress(): number;
+ rawTime(wrapRepeats?: boolean): number;
+ repeat(value: number): this;
+ repeat(): number;
+ repeatDelay(value: number): this;
+ repeatDelay(): number;
+ restart(includeDelay?: boolean, supressEvents?: boolean): this;
+ resume(from?: number, supressEvents?: boolean): this;
+ reverse(from?: number, supressEvents?: boolean): this;
+ reversed(value: boolean): this;
+ reversed(): boolean;
+ startTime(value: number): this;
+ startTime(): number;
+ seek(time: number, supressEvents?: boolean): this;
+ then(onFulfilled?: (result: Omit<this, "then">) => any): Promise<this>;
+ time(value: number, supressEvents?: boolean): this;
+ time(): number;
+ timeScale(value: number): this;
+ timeScale(): number;
+ totalDuration(value: number): this;
+ totalDuration(): number;
+ totalProgress(value: number, supressEvents?: boolean): this;
+ totalProgress(): number;
+ totalTime(value: number, supressEvents?: boolean): this;
+ totalTime(): number;
+ yoyo(value: boolean): this;
+ yoyo(): boolean;
+ }
+}
diff --git a/types/css-plugin.d.ts b/types/css-plugin.d.ts
new file mode 100644
index 0000000..0ac1983
--- /dev/null
+++ b/types/css-plugin.d.ts
@@ -0,0 +1,569 @@
+declare namespace gsap {
+
+ // GSAP specific
+ interface CSSProperties {
+ [key: string]: any;
+ alpha: TweenValue;
+ autoAlpha: TweenValue;
+ rotate: TweenValue;
+ rotateX: TweenValue;
+ rotateY: TweenValue;
+ rotateZ: TweenValue;
+ rotation: TweenValue;
+ rotationX: TweenValue;
+ rotationY: TweenValue;
+ rotationZ: TweenValue;
+ scale: TweenValue;
+ scaleX: TweenValue;
+ scaleY: TweenValue;
+ skew: TweenValue;
+ skewX: TweenValue;
+ skewY: TweenValue;
+ translateX: TweenValue;
+ translateY: TweenValue;
+ translateZ: TweenValue;
+ x: TweenValue;
+ xPercent: TweenValue;
+ y: TweenValue;
+ yPercent: TweenValue;
+ z: TweenValue;
+ }
+
+ interface CSSProperties {
+ alignContent: TweenValue;
+ alignItems: TweenValue;
+ alignSelf: TweenValue;
+ alignmentBaseline: TweenValue;
+ animation: TweenValue;
+ animationDelay: TweenValue;
+ animationDirection: TweenValue;
+ animationDuration: TweenValue;
+ animationFillMode: TweenValue;
+ animationIterationCount: TweenValue;
+ animationName: TweenValue;
+ animationPlayState: TweenValue;
+ animationTimingFunction: TweenValue;
+ backfaceVisibility: TweenValue;
+ background: TweenValue;
+ backgroundAttachment: TweenValue;
+ backgroundClip: TweenValue;
+ backgroundColor: TweenValue;
+ backgroundImage: TweenValue;
+ backgroundOrigin: TweenValue;
+ backgroundPosition: TweenValue;
+ backgroundPositionX: TweenValue;
+ backgroundPositionY: TweenValue;
+ backgroundRepeat: TweenValue;
+ backgroundSize: TweenValue;
+ baselineShift: TweenValue;
+ border: TweenValue;
+ borderBottom: TweenValue;
+ borderBottomColor: TweenValue;
+ borderBottomLeftRadius: TweenValue;
+ borderBottomRightRadius: TweenValue;
+ borderBottomStyle: TweenValue;
+ borderBottomWidth: TweenValue;
+ borderCollapse: TweenValue;
+ borderColor: TweenValue;
+ borderImage: TweenValue;
+ borderImageOutset: TweenValue;
+ borderImageRepeat: TweenValue;
+ borderImageSlice: TweenValue;
+ borderImageSource: TweenValue;
+ borderImageWidth: TweenValue;
+ borderLeft: TweenValue;
+ borderLeftColor: TweenValue;
+ borderLeftStyle: TweenValue;
+ borderLeftWidth: TweenValue;
+ borderRadius: TweenValue;
+ borderRight: TweenValue;
+ borderRightColor: TweenValue;
+ borderRightStyle: TweenValue;
+ borderRightWidth: TweenValue;
+ borderSpacing: TweenValue;
+ borderStyle: TweenValue;
+ borderTop: TweenValue;
+ borderTopColor: TweenValue;
+ borderTopLeftRadius: TweenValue;
+ borderTopRightRadius: TweenValue;
+ borderTopStyle: TweenValue;
+ borderTopWidth: TweenValue;
+ borderWidth: TweenValue;
+ bottom: TweenValue;
+ boxShadow: TweenValue;
+ boxSizing: TweenValue;
+ breakAfter: TweenValue;
+ breakBefore: TweenValue;
+ breakInside: TweenValue;
+ captionSide: TweenValue;
+ caretColor: TweenValue;
+ clear: TweenValue;
+ clip: TweenValue;
+ clipPath: TweenValue;
+ clipRule: TweenValue;
+ color: TweenValue;
+ colorInterpolationFilters: TweenValue;
+ columnCount: TweenValue;
+ columnFill: TweenValue;
+ columnGap: TweenValue;
+ columnRule: TweenValue;
+ columnRuleColor: TweenValue;
+ columnRuleStyle: TweenValue;
+ columnRuleWidth: TweenValue;
+ columnSpan: TweenValue;
+ columnWidth: TweenValue;
+ columns: TweenValue;
+ content: TweenValue;
+ counterIncrement: TweenValue;
+ counterReset: TweenValue;
+ cssFloat: TweenValue;
+ cssText: TweenValue;
+ cursor: TweenValue;
+ direction: TweenValue;
+ display: TweenValue;
+ dominantBaseline: TweenValue;
+ emptyCells: TweenValue;
+ enableBackground: TweenValue;
+ fill: TweenValue;
+ fillOpacity: TweenValue;
+ fillRule: TweenValue;
+ filter: TweenValue;
+ flex: TweenValue;
+ flexBasis: TweenValue;
+ flexDirection: TweenValue;
+ flexFlow: TweenValue;
+ flexGrow: TweenValue;
+ flexShrink: TweenValue;
+ flexWrap: TweenValue;
+ floodColor: TweenValue;
+ floodOpacity: TweenValue;
+ font: TweenValue;
+ fontFamily: TweenValue;
+ fontFeatureSettings: TweenValue;
+ fontKerning: TweenValue;
+ fontSize: TweenValue;
+ fontSizeAdjust: TweenValue;
+ fontStretch: TweenValue;
+ fontStyle: TweenValue;
+ fontSynthesis: TweenValue;
+ fontVariant: TweenValue;
+ fontVariantCaps: TweenValue;
+ fontVariantEastAsian: TweenValue;
+ fontVariantLigatures: TweenValue;
+ fontVariantNumeric: TweenValue;
+ fontVariantPosition: TweenValue;
+ fontWeight: TweenValue;
+ gap: TweenValue;
+ glyphOrientationHorizontal: TweenValue;
+ glyphOrientationVertical: TweenValue;
+ grid: TweenValue;
+ gridArea: TweenValue;
+ gridAutoColumns: TweenValue;
+ gridAutoFlow: TweenValue;
+ gridAutoRows: TweenValue;
+ gridColumn: TweenValue;
+ gridColumnEnd: TweenValue;
+ gridColumnGap: TweenValue;
+ gridColumnStart: TweenValue;
+ gridGap: TweenValue;
+ gridRow: TweenValue;
+ gridRowEnd: TweenValue;
+ gridRowGap: TweenValue;
+ gridRowStart: TweenValue;
+ gridTemplate: TweenValue;
+ gridTemplateAreas: TweenValue;
+ gridTemplateColumns: TweenValue;
+ gridTemplateRows: TweenValue;
+ height: TweenValue;
+ hyphens: TweenValue;
+ imageOrientation: TweenValue;
+ imageRendering: TweenValue;
+ imeMode: TweenValue;
+ justifyContent: TweenValue;
+ justifyItems: TweenValue;
+ justifySelf: TweenValue;
+ kerning: TweenValue;
+ layoutGrid: TweenValue;
+ layoutGridChar: TweenValue;
+ layoutGridLine: TweenValue;
+ layoutGridMode: TweenValue;
+ layoutGridType: TweenValue;
+ left: TweenValue;
+ letterSpacing: TweenValue;
+ lightingColor: TweenValue;
+ lineBreak: TweenValue;
+ lineHeight: TweenValue;
+ listStyle: TweenValue;
+ listStyleImage: TweenValue;
+ listStylePosition: TweenValue;
+ listStyleType: TweenValue;
+ margin: TweenValue;
+ marginBottom: TweenValue;
+ marginLeft: TweenValue;
+ marginRight: TweenValue;
+ marginTop: TweenValue;
+ marker: TweenValue;
+ markerEnd: TweenValue;
+ markerMid: TweenValue;
+ markerStart: TweenValue;
+ mask: TweenValue;
+ maskComposite: TweenValue;
+ maskImage: TweenValue;
+ maskPosition: TweenValue;
+ maskRepeat: TweenValue;
+ maskSize: TweenValue;
+ maskType: TweenValue;
+ maxHeight: TweenValue;
+ maxWidth: TweenValue;
+ minHeight: TweenValue;
+ minWidth: TweenValue;
+ msContentZoomChaining: TweenValue;
+ msContentZoomLimit: TweenValue;
+ msContentZoomLimitMax: any;
+ msContentZoomLimitMin: any;
+ msContentZoomSnap: TweenValue;
+ msContentZoomSnapPoints: TweenValue;
+ msContentZoomSnapType: TweenValue;
+ msContentZooming: TweenValue;
+ msFlowFrom: TweenValue;
+ msFlowInto: TweenValue;
+ msFontFeatureSettings: TweenValue;
+ msGridColumn: any;
+ msGridColumnAlign: TweenValue;
+ msGridColumnSpan: any;
+ msGridColumns: TweenValue;
+ msGridRow: any;
+ msGridRowAlign: TweenValue;
+ msGridRowSpan: any;
+ msGridRows: TweenValue;
+ msHighContrastAdjust: TweenValue;
+ msHyphenateLimitChars: TweenValue;
+ msHyphenateLimitLines: any;
+ msHyphenateLimitZone: any;
+ msHyphens: TweenValue;
+ msImeAlign: TweenValue;
+ msOverflowStyle: TweenValue;
+ msScrollChaining: TweenValue;
+ msScrollLimit: TweenValue;
+ msScrollLimitXMax: any;
+ msScrollLimitXMin: any;
+ msScrollLimitYMax: any;
+ msScrollLimitYMin: any;
+ msScrollRails: TweenValue;
+ msScrollSnapPointsX: TweenValue;
+ msScrollSnapPointsY: TweenValue;
+ msScrollSnapType: TweenValue;
+ msScrollSnapX: TweenValue;
+ msScrollSnapY: TweenValue;
+ msScrollTranslation: TweenValue;
+ msTextCombineHorizontal: TweenValue;
+ msTextSizeAdjust: any;
+ msTouchAction: TweenValue;
+ msTouchSelect: TweenValue;
+ msUserSelect: TweenValue;
+ msWrapFlow: TweenValue;
+ msWrapMargin: any;
+ msWrapThrough: TweenValue;
+ objectFit: TweenValue;
+ objectPosition: TweenValue;
+ opacity: TweenValue;
+ order: TweenValue;
+ orphans: TweenValue;
+ outline: TweenValue;
+ outlineColor: TweenValue;
+ outlineOffset: TweenValue;
+ outlineStyle: TweenValue;
+ outlineWidth: TweenValue;
+ overflow: TweenValue;
+ overflowAnchor: TweenValue;
+ overflowWrap: TweenValue;
+ overflowX: TweenValue;
+ overflowY: TweenValue;
+ padding: TweenValue;
+ paddingBottom: TweenValue;
+ paddingLeft: TweenValue;
+ paddingRight: TweenValue;
+ paddingTop: TweenValue;
+ pageBreakAfter: TweenValue;
+ pageBreakBefore: TweenValue;
+ pageBreakInside: TweenValue;
+ penAction: TweenValue;
+ perspective: TweenValue;
+ perspectiveOrigin: TweenValue;
+ placeContent: TweenValue;
+ placeItems: TweenValue;
+ placeSelf: TweenValue;
+ pointerEvents: TweenValue;
+ position: TweenValue;
+ quotes: TweenValue;
+ resize: TweenValue;
+ right: TweenValue;
+ rotate: TweenValue;
+ rowGap: TweenValue;
+ rubyAlign: TweenValue;
+ rubyOverhang: TweenValue;
+ rubyPosition: TweenValue;
+ scale: TweenValue;
+ scrollBehavior: TweenValue;
+ stopColor: TweenValue;
+ stopOpacity: TweenValue;
+ stroke: TweenValue;
+ strokeDasharray: TweenValue;
+ strokeDashoffset: TweenValue;
+ strokeLinecap: TweenValue;
+ strokeLinejoin: TweenValue;
+ strokeMiterlimit: TweenValue;
+ strokeOpacity: TweenValue;
+ strokeWidth: TweenValue;
+ tabSize: TweenValue;
+ tableLayout: TweenValue;
+ textAlign: TweenValue;
+ textAlignLast: TweenValue;
+ textAnchor: TweenValue;
+ textCombineUpright: TweenValue;
+ textDecoration: TweenValue;
+ textDecorationColor: TweenValue;
+ textDecorationLine: TweenValue;
+ textDecorationStyle: TweenValue;
+ textEmphasis: TweenValue;
+ textEmphasisColor: TweenValue;
+ textEmphasisPosition: TweenValue;
+ textEmphasisStyle: TweenValue;
+ textIndent: TweenValue;
+ textJustify: TweenValue;
+ textKashida: TweenValue;
+ textKashidaSpace: TweenValue;
+ textOrientation: TweenValue;
+ textOverflow: TweenValue;
+ textShadow: TweenValue;
+ textTransform: TweenValue;
+ textUnderlinePosition: TweenValue;
+ top: TweenValue;
+ touchAction: TweenValue;
+ transform: TweenValue;
+ transformBox: TweenValue;
+ transformOrigin: TweenValue;
+ transformStyle: TweenValue;
+ transition: TweenValue;
+ transitionDelay: TweenValue;
+ transitionDuration: TweenValue;
+ transitionProperty: TweenValue;
+ transitionTimingFunction: TweenValue;
+ translate: TweenValue;
+ unicodeBidi: TweenValue;
+ userSelect: TweenValue;
+ verticalAlign: TweenValue;
+ visibility: TweenValue;
+ /** @deprecated */
+ webkitAlignContent: TweenValue;
+ /** @deprecated */
+ webkitAlignItems: TweenValue;
+ /** @deprecated */
+ webkitAlignSelf: TweenValue;
+ /** @deprecated */
+ webkitAnimation: TweenValue;
+ /** @deprecated */
+ webkitAnimationDelay: TweenValue;
+ /** @deprecated */
+ webkitAnimationDirection: TweenValue;
+ /** @deprecated */
+ webkitAnimationDuration: TweenValue;
+ /** @deprecated */
+ webkitAnimationFillMode: TweenValue;
+ /** @deprecated */
+ webkitAnimationIterationCount: TweenValue;
+ /** @deprecated */
+ webkitAnimationName: TweenValue;
+ /** @deprecated */
+ webkitAnimationPlayState: TweenValue;
+ /** @deprecated */
+ webkitAnimationTimingFunction: TweenValue;
+ /** @deprecated */
+ webkitAppearance: TweenValue;
+ /** @deprecated */
+ webkitBackfaceVisibility: TweenValue;
+ /** @deprecated */
+ webkitBackgroundClip: TweenValue;
+ /** @deprecated */
+ webkitBackgroundOrigin: TweenValue;
+ /** @deprecated */
+ webkitBackgroundSize: TweenValue;
+ /** @deprecated */
+ webkitBorderBottomLeftRadius: TweenValue;
+ /** @deprecated */
+ webkitBorderBottomRightRadius: TweenValue;
+ webkitBorderImage: TweenValue;
+ /** @deprecated */
+ webkitBorderRadius: TweenValue;
+ /** @deprecated */
+ webkitBorderTopLeftRadius: TweenValue;
+ /** @deprecated */
+ webkitBorderTopRightRadius: TweenValue;
+ /** @deprecated */
+ webkitBoxAlign: TweenValue;
+ webkitBoxDirection: TweenValue;
+ /** @deprecated */
+ webkitBoxFlex: TweenValue;
+ /** @deprecated */
+ webkitBoxOrdinalGroup: TweenValue;
+ webkitBoxOrient: TweenValue;
+ /** @deprecated */
+ webkitBoxPack: TweenValue;
+ /** @deprecated */
+ webkitBoxShadow: TweenValue;
+ /** @deprecated */
+ webkitBoxSizing: TweenValue;
+ webkitColumnBreakAfter: TweenValue;
+ webkitColumnBreakBefore: TweenValue;
+ webkitColumnBreakInside: TweenValue;
+ webkitColumnCount: any;
+ webkitColumnGap: any;
+ webkitColumnRule: TweenValue;
+ webkitColumnRuleColor: any;
+ webkitColumnRuleStyle: TweenValue;
+ webkitColumnRuleWidth: any;
+ webkitColumnSpan: TweenValue;
+ webkitColumnWidth: any;
+ webkitColumns: TweenValue;
+ /** @deprecated */
+ webkitFilter: TweenValue;
+ /** @deprecated */
+ webkitFlex: TweenValue;
+ /** @deprecated */
+ webkitFlexBasis: TweenValue;
+ /** @deprecated */
+ webkitFlexDirection: TweenValue;
+ /** @deprecated */
+ webkitFlexFlow: TweenValue;
+ /** @deprecated */
+ webkitFlexGrow: TweenValue;
+ /** @deprecated */
+ webkitFlexShrink: TweenValue;
+ /** @deprecated */
+ webkitFlexWrap: TweenValue;
+ /** @deprecated */
+ webkitJustifyContent: TweenValue;
+ webkitLineClamp: TweenValue;
+ /** @deprecated */
+ webkitMask: TweenValue;
+ /** @deprecated */
+ webkitMaskBoxImage: TweenValue;
+ /** @deprecated */
+ webkitMaskBoxImageOutset: TweenValue;
+ /** @deprecated */
+ webkitMaskBoxImageRepeat: TweenValue;
+ /** @deprecated */
+ webkitMaskBoxImageSlice: TweenValue;
+ /** @deprecated */
+ webkitMaskBoxImageSource: TweenValue;
+ /** @deprecated */
+ webkitMaskBoxImageWidth: TweenValue;
+ /** @deprecated */
+ webkitMaskClip: TweenValue;
+ /** @deprecated */
+ webkitMaskComposite: TweenValue;
+ /** @deprecated */
+ webkitMaskImage: TweenValue;
+ /** @deprecated */
+ webkitMaskOrigin: TweenValue;
+ /** @deprecated */
+ webkitMaskPosition: TweenValue;
+ /** @deprecated */
+ webkitMaskRepeat: TweenValue;
+ /** @deprecated */
+ webkitMaskSize: TweenValue;
+ /** @deprecated */
+ webkitOrder: TweenValue;
+ /** @deprecated */
+ webkitPerspective: TweenValue;
+ /** @deprecated */
+ webkitPerspectiveOrigin: TweenValue;
+ webkitTapHighlightColor: TweenValue;
+ /** @deprecated */
+ webkitTextFillColor: TweenValue;
+ /** @deprecated */
+ webkitTextSizeAdjust: TweenValue;
+ /** @deprecated */
+ webkitTextStroke: TweenValue;
+ /** @deprecated */
+ webkitTextStrokeColor: TweenValue;
+ /** @deprecated */
+ webkitTextStrokeWidth: TweenValue;
+ /** @deprecated */
+ webkitTransform: TweenValue;
+ /** @deprecated */
+ webkitTransformOrigin: TweenValue;
+ /** @deprecated */
+ webkitTransformStyle: TweenValue;
+ /** @deprecated */
+ webkitTransition: TweenValue;
+ /** @deprecated */
+ webkitTransitionDelay: TweenValue;
+ /** @deprecated */
+ webkitTransitionDuration: TweenValue;
+ /** @deprecated */
+ webkitTransitionProperty: TweenValue;
+ /** @deprecated */
+ webkitTransitionTimingFunction: TweenValue;
+ webkitUserModify: TweenValue;
+ webkitUserSelect: TweenValue;
+ webkitWritingMode: TweenValue;
+ whiteSpace: TweenValue;
+ widows: TweenValue;
+ width: TweenValue;
+ willChange: TweenValue;
+ wordBreak: TweenValue;
+ wordSpacing: TweenValue;
+ wordWrap: TweenValue;
+ writingMode: TweenValue;
+ zIndex: TweenValue;
+ zoom: TweenValue;
+ }
+
+ interface CSSVars extends Partial<CSSProperties> { }
+
+ interface TweenVars extends CSSVars {
+ css?: CSSVars;
+ }
+
+ // TODO: Add types
+ interface GSCache {
+ [key: string]: any;
+ }
+}
+
+declare namespace gsap.plugins {
+
+ interface CSSPlugin extends Plugin {}
+
+ interface CSSPluginClass extends CSSPlugin {
+ new(): PluginScope & CSSPlugin;
+ prototype: PluginScope & CSSPlugin;
+ }
+
+ const css: CSSPluginClass;
+}
+
+interface Element {
+ _gsap: gsap.GSCache;
+}
+
+declare const CSSPlugin: gsap.plugins.CSSPlugin;
+
+declare module "gsap/CSSPlugin" {
+ export const CSSPlugin: gsap.plugins.CSSPlugin;
+ export { CSSPlugin as default };
+}
+
+declare module "gsap/src/CSSPlugin" {
+ export * from "gsap/CSSPlugin";
+ export { CSSPlugin as default } from "gsap/CSSPlugin";
+}
+
+declare module "gsap" {
+ export * from "gsap/CSSPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/CSSPlugin";
+}
diff --git a/types/css-rule-plugin.d.ts b/types/css-rule-plugin.d.ts
new file mode 100644
index 0000000..84bb67a
--- /dev/null
+++ b/types/css-rule-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const CSSRulePlugin: any;
+
+declare module "gsap/CSSRulePlugin" {
+
+ // TODO
+ export const CSSRulePlugin: any;
+ export { CSSRulePlugin as default };
+}
+
+declare module "gsap/dist/CSSRulePlugin" {
+ export * from "gsap/CSSRulePlugin";
+ export { CSSRulePlugin as default } from "gsap/CSSRulePlugin";
+}
+
+declare module "gsap/src/CSSRulePlugin" {
+ export * from "gsap/CSSRulePlugin";
+ export { CSSRulePlugin as default } from "gsap/CSSRulePlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/CSSRulePlugin";
+}
diff --git a/types/custom-bounce.d.ts b/types/custom-bounce.d.ts
new file mode 100644
index 0000000..8932294
--- /dev/null
+++ b/types/custom-bounce.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const CustomBounce: any;
+
+declare module "gsap/CustomBounce" {
+
+ // TODO
+ export const CustomBounce: any;
+ export { CustomBounce as default };
+}
+
+declare module "gsap/dist/CustomBounce" {
+ export * from "gsap/CustomBounce";
+ export { CustomBounce as default } from "gsap/CustomBounce";
+}
+
+declare module "gsap/src/CustomBounce" {
+ export * from "gsap/CustomBounce";
+ export { CustomBounce as default } from "gsap/CustomBounce";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/CustomBounce";
+}
diff --git a/types/custom-ease.d.ts b/types/custom-ease.d.ts
new file mode 100644
index 0000000..e83e425
--- /dev/null
+++ b/types/custom-ease.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const CustomEase: any;
+
+declare module "gsap/CustomEase" {
+
+ // TODO
+ export const CustomEase: any;
+ export { CustomEase as default };
+}
+
+declare module "gsap/dist/CustomEase" {
+ export * from "gsap/CustomEase";
+ export { CustomEase as default } from "gsap/CustomEase";
+}
+
+declare module "gsap/src/CustomEase" {
+ export * from "gsap/CustomEase";
+ export { CustomEase as default } from "gsap/CustomEase";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/CustomEase";
+}
diff --git a/types/custom-wiggle.d.ts b/types/custom-wiggle.d.ts
new file mode 100644
index 0000000..c69666a
--- /dev/null
+++ b/types/custom-wiggle.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const CustomWiggle: any;
+
+declare module "gsap/CustomWiggle" {
+
+ // TODO
+ export const CustomWiggle: any;
+ export { CustomWiggle as default };
+}
+
+declare module "gsap/dist/CustomWiggle" {
+ export * from "gsap/CustomWiggle";
+ export { CustomWiggle as default } from "gsap/CustomWiggle";
+}
+
+declare module "gsap/src/CustomWiggle" {
+ export * from "gsap/CustomWiggle";
+ export { CustomWiggle as default } from "gsap/CustomWiggle";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/CustomWiggle";
+}
diff --git a/types/draggable.d.ts b/types/draggable.d.ts
new file mode 100644
index 0000000..d779615
--- /dev/null
+++ b/types/draggable.d.ts
@@ -0,0 +1,200 @@
+declare class Draggable {
+
+ static version: string;
+ static zIndex: number;
+
+ readonly autoScroll: number;
+ readonly deltaX: number;
+ readonly deltaY: number;
+ readonly endRotation: number;
+ readonly endX: number;
+ readonly endY: number;
+ readonly isThrowing: boolean;
+ readonly lockAxis: boolean;
+ readonly maxRotation: number;
+ readonly maxX: number;
+ readonly maxY: number;
+ readonly minRotation: number;
+ readonly pointerEvent: TouchEvent | PointerEvent;
+ readonly pointerX: number;
+ readonly pointerY: number;
+ readonly rotation: number;
+ readonly scrollProxy: any; // TODO: Create interface
+ readonly target: HTMLElement | SVGElement;
+ readonly tween: gsap.core.Tween;
+ readonly vars: Draggable.Vars;
+ readonly x: number;
+ readonly y: number;
+
+ constructor(target: gsap.DOMTarget, vars?: Draggable.Vars);
+
+ static create(target: gsap.DOMTarget, vars?: Draggable.Vars): Draggable[];
+ static get(target: gsap.DOMTarget): Draggable;
+ static hitTest(testObject1: Draggable.TestObject, testObject2: Draggable.TestObject, threshold?: number | string): boolean;
+ static timeSinceDrag(): number;
+
+ addEventListener(type: Draggable.CallbackType, callback: gsap.Callback): void;
+ disable(): this;
+ dispatchEvent(type: Draggable.CallbackType): boolean;
+ enable(): this;
+ enabled(): boolean;
+ endDrag(event: Event): void;
+ getDirection(from: "start" | "velocity" | gsap.DOMTarget): Draggable.Direction;
+ hitTest(testObject1: Draggable.TestObject, threshold?: number | string): boolean;
+ kill(): this;
+ removeEventListener(type: Draggable.CallbackType, callback: gsap.Callback): void;
+ startDrag(event: Event): void;
+ timeSinceDrag(): number;
+ update(applyBounds?: boolean, sticky?: boolean): this;
+}
+
+declare namespace Draggable {
+
+ type CallbackType =
+ | "click"
+ | "drag"
+ | "dragend"
+ | "dragstart"
+ | "move"
+ | "press"
+ | "release"
+ | "throwcomplete"
+ | "throwupdate";
+
+ type Direction =
+ | "down"
+ | "left"
+ | "left-down"
+ | "left-up"
+ | "up"
+ | "right"
+ | "right-down"
+ | "right-up";
+
+ type DraggableType =
+ | "left"
+ | "left,top"
+ | "rotation"
+ | "scroll"
+ | "scrollLeft"
+ | "scrollTop"
+ | "top"
+ | "top,left"
+ | "x"
+ | "x,y"
+ | "y"
+ | "y,x";
+
+ type SnapValue = number[] | ((value: number) => number);
+ type TestObject = gsap.DOMTarget | Event | Rectangle;
+
+ interface BoundsMinMax {
+ minX: number;
+ minY: number;
+ maxX: number;
+ maxY: number;
+ }
+
+ interface BoundsRectangle {
+ height: number;
+ left: number;
+ top: number;
+ width: number;
+ }
+
+ interface BoundsRotation {
+ minRotation: number;
+ maxRotation: number;
+ }
+
+ interface Rectangle {
+ bottom: number;
+ left: number;
+ right: number;
+ top: number;
+ }
+
+ interface SnapObject {
+ left?: SnapValue;
+ points?: gsap.Point2D[] | ((point: gsap.Point2D) => gsap.Point2D);
+ radius?: number;
+ rotation?: SnapValue;
+ top?: SnapValue;
+ x?: SnapValue;
+ y?: SnapValue;
+ }
+
+ interface Vars {
+ [key: string]: any;
+ activeCursor?: string;
+ allowContextMenu?: boolean;
+ allowEventDefault?: boolean;
+ allowNativeTouchScrolling?: boolean;
+ autoScroll?: number;
+ bounds?: gsap.DOMTarget | BoundsMinMax | BoundsRectangle | BoundsRotation;
+ callbackScope?: object;
+ clickableTest?: (this: Draggable, element: HTMLElement | SVGElement) => void;
+ cursor?: string;
+ dragClickables?: boolean;
+ dragResistance?: number;
+ edgeResistance?: number;
+ force3D?: "auto" | boolean;
+ inertia?: boolean | gsap.InertiaVars;
+ liveSnap?: boolean | SnapValue | SnapObject;
+ lockAxis?: boolean;
+ maxDuration?: number;
+ minDuration?: number;
+ minimumMovement?: number;
+ onClick?: gsap.Callback;
+ onClickParams?: any[];
+ onDrag?: gsap.Callback;
+ onDragParams?: any[];
+ onDragStart?: gsap.Callback;
+ onDragStartParams?: any[];
+ onDragEnd?: gsap.Callback;
+ onDragEndParams?: any[];
+ onLockAxis?: (this: Draggable, event: Event) => void;
+ onMove?: gsap.Callback;
+ onMoveParams?: any[];
+ onPress?: gsap.Callback;
+ onPressParams?: any[];
+ onPressInit?: gsap.Callback;
+ onPressInitParams?: any[];
+ onRelease?: gsap.Callback;
+ onReleaseParams?: any[];
+ onThrowComplete?: gsap.Callback;
+ onThrowCompleteParams?: any[];
+ onThrowUpdate?: gsap.Callback;
+ onThrowUpdateParams?: any[];
+ overshootTolerance?: number;
+ resistance?: number;
+ snap?: SnapValue | SnapObject;
+ throwProps?: boolean | gsap.InertiaVars;
+ throwResistance?: number;
+ trigger?: gsap.DOMTarget;
+ type?: DraggableType;
+ zIndexBoost?: boolean;
+ }
+}
+
+declare module "gsap/Draggable" {
+ class _Draggable extends Draggable {}
+ export {
+ _Draggable as Draggable,
+ _Draggable as default
+ }
+}
+
+declare module "gsap/src/Draggable" {
+ export * from "gsap/Draggable";
+ export { Draggable as default } from "gsap/Draggable";
+}
+
+declare module "gsap/dist/Draggable" {
+ export * from "gsap/Draggable";
+ export { Draggable as default } from "gsap/Draggable";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/Draggable";
+}
diff --git a/types/draw-svg-plugin.d.ts b/types/draw-svg-plugin.d.ts
new file mode 100644
index 0000000..9c90de1
--- /dev/null
+++ b/types/draw-svg-plugin.d.ts
@@ -0,0 +1,42 @@
+declare namespace gsap {
+
+ interface TweenVars {
+ drawSVG?: BooleanValue | TweenValue;
+ }
+}
+
+declare namespace gsap.plugins {
+
+ interface DrawSVGPlugin extends Plugin {
+ getLength(element: DOMTarget): number;
+ getPosition(element: DOMTarget): number;
+ }
+
+ interface DrawSVGPluginClass extends DrawSVGPlugin {
+ new(): PluginScope & DrawSVGPlugin;
+ prototype: PluginScope & DrawSVGPlugin;
+ }
+
+ const drawSVG: DrawSVGPluginClass;
+}
+
+declare const DrawSVGPlugin: gsap.plugins.DrawSVGPlugin;
+
+declare module "gsap/DrawSVGPlugin" {
+ export const DrawSVGPlugin: gsap.plugins.DrawSVGPlugin;
+ export { DrawSVGPlugin as default };
+}
+
+declare module "gsap/src/DrawSVGPlugin" {
+ export * from "gsap/DrawSVGPlugin";
+ export { DrawSVGPlugin as default } from "gsap/DrawSVGPlugin";
+}
+
+declare module "gsap/dist/DrawSVGPlugin" {
+ export * from "gsap/DrawSVGPlugin";
+ export { DrawSVGPlugin as default } from "gsap/DrawSVGPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/DrawSVGPlugin";
+}
diff --git a/types/ease.d.ts b/types/ease.d.ts
new file mode 100644
index 0000000..2714ef3
--- /dev/null
+++ b/types/ease.d.ts
@@ -0,0 +1,152 @@
+declare namespace gsap {
+
+ interface EaseFunction {
+ (progress: number): number;
+ }
+
+ interface Ease {
+ easeIn: EaseFunction;
+ easeOut: EaseFunction;
+ easeInOut: EaseFunction;
+ }
+
+ interface BackConfig extends EaseFunction {
+ config(overshoot: number): EaseFunction;
+ }
+
+ interface Back {
+ easeIn: BackConfig;
+ easeOut: BackConfig;
+ easeInOut: BackConfig;
+ }
+
+ interface EasePack {
+ SlowMo: gsap.SlowMo;
+ ExpoScaleEase: gsap.ExpoScaleEase;
+ RoughEase: gsap.RoughEase;
+ }
+
+ interface ElasticConfig extends EaseFunction {
+ config(amplitude: number, period?: number): EaseFunction;
+ }
+
+ interface Elastic {
+ easeIn: ElasticConfig;
+ easeOut: ElasticConfig;
+ easeInOut: ElasticConfig;
+ }
+
+ interface ExpoScaleEase {
+ config(startingScale: number, endingScale: number, ease?: string | EaseFunction): EaseFunction;
+ }
+
+ interface Linear extends Ease {
+ easeNone: EaseFunction;
+ }
+
+ interface RoughEaseVars {
+ clamp?: boolean;
+ points?: number;
+ randomize?: boolean;
+ strength?: number;
+ taper?: "in" | "out" | "both" | "none";
+ template?: string | EaseFunction
+ }
+
+ interface RoughEaseEase extends EaseFunction {
+ config: RoughEaseConfig;
+ }
+
+ interface RoughEaseConfig extends EaseFunction {
+ (config?: RoughEaseVars): EaseFunction;
+ }
+
+ interface RoughEase extends EaseFunction {
+ config: RoughEaseConfig;
+ ease: RoughEaseEase;
+ }
+
+ interface SlowMoEase extends EaseFunction {
+ config: SlowMoConfig;
+ }
+
+ interface SlowMoConfig extends EaseFunction {
+ (linearRatio: number, power?: number, yoyoMode?: boolean): EaseFunction;
+ }
+
+ interface SlowMo extends EaseFunction {
+ config: SlowMoConfig;
+ ease: SlowMoEase;
+ }
+
+ interface SteppedEase {
+ config(steps: number): EaseFunction;
+ }
+}
+
+declare const Back: gsap.Back;
+declare const Bounce: gsap.Ease;
+declare const Circ: gsap.Ease;
+declare const Cubic: gsap.Ease;
+declare const Elastic: gsap.Elastic;
+declare const Expo: gsap.Ease;
+declare const Linear: gsap.Linear;
+declare const Power0: gsap.Linear;
+declare const Power1: gsap.Ease;
+declare const Power2: gsap.Ease;
+declare const Power3: gsap.Ease;
+declare const Power4: gsap.Ease;
+declare const Quad: gsap.Ease;
+declare const Quart: gsap.Ease;
+declare const Quint: gsap.Ease;
+declare const Sine: gsap.Ease;
+declare const SteppedEase: gsap.SteppedEase;
+declare const Strong: gsap.Ease;
+
+declare const EasePack: gsap.EasePack;
+declare const ExpoScaleEase: gsap.ExpoScaleEase;
+declare const RoughEase: gsap.RoughEase;
+declare const SlowMo: gsap.SlowMo;
+
+declare module "gsap/gsap-core" {
+ export const Back: gsap.Back;
+ export const Bounce: gsap.Ease;
+ export const Circ: gsap.Ease;
+ export const Cubic: gsap.Ease;
+ export const Elastic: gsap.Elastic;
+ export const Expo: gsap.Ease;
+ export const Linear: gsap.Linear;
+ export const Power0: gsap.Linear;
+ export const Power1: gsap.Ease;
+ export const Power2: gsap.Ease;
+ export const Power3: gsap.Ease;
+ export const Power4: gsap.Ease;
+ export const Quad: gsap.Ease;
+ export const Quart: gsap.Ease;
+ export const Quint: gsap.Ease;
+ export const Sine: gsap.Ease;
+ export const SteppedEase: gsap.SteppedEase;
+ export const Strong: gsap.Ease;
+}
+
+declare module "gsap/EasePack" {
+ export const EasePack: gsap.EasePack;
+ export const ExpoScaleEase: gsap.ExpoScaleEase;
+ export const SlowMo: gsap.SlowMo;
+ export const RoughEase: gsap.RoughEase;
+ export { EasePack as default };
+}
+
+declare module "gsap/src/EasePack" {
+ export * from "gsap/EasePack";
+ export { EasePack as default } from "gsap/EasePack";
+}
+
+declare module "gsap/dist/EasePack" {
+ export * from "gsap/EasePack";
+ export { EasePack as default } from "gsap/EasePack";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/EasePack";
+}
diff --git a/types/easel-plugin.d.ts b/types/easel-plugin.d.ts
new file mode 100644
index 0000000..892d1ae
--- /dev/null
+++ b/types/easel-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const EaselPlugin: any;
+
+declare module "gsap/EaselPlugin" {
+
+ // TODO
+ export const EaselPlugin: any;
+ export { EaselPlugin as default };
+}
+
+declare module "gsap/dist/EaselPlugin" {
+ export * from "gsap/EaselPlugin";
+ export { EaselPlugin as default } from "gsap/EaselPlugin";
+}
+
+declare module "gsap/src/EaselPlugin" {
+ export * from "gsap/EaselPlugin";
+ export { EaselPlugin as default } from "gsap/EaselPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/EaselPlugin";
+}
diff --git a/types/gs-dev-tools.d.ts b/types/gs-dev-tools.d.ts
new file mode 100644
index 0000000..6c29ec6
--- /dev/null
+++ b/types/gs-dev-tools.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const GSDevTools: any;
+
+declare module "gsap/GSDevTools" {
+
+ // TODO
+ export const GSDevTools: any;
+ export { GSDevTools as default };
+}
+
+declare module "gsap/dist/GSDevTools" {
+ export * from "gsap/GSDevTools";
+ export { GSDevTools as default } from "gsap/GSDevTools";
+}
+
+declare module "gsap/src/GSDevTools" {
+ export * from "gsap/GSDevTools";
+ export { GSDevTools as default } from "gsap/GSDevTools";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/GSDevTools";
+}
diff --git a/types/gsap-core.d.ts b/types/gsap-core.d.ts
new file mode 100644
index 0000000..6d1e1dd
--- /dev/null
+++ b/types/gsap-core.d.ts
@@ -0,0 +1,253 @@
+declare namespace gsap {
+
+ type RegisterablePlugins =
+ | Ease
+ | EasePack
+ | ExpoScaleEase
+ | Plugin
+ | RoughEase
+ | SteppedEase
+ | VelocityTracker
+ | typeof core.Animation
+ | typeof core.Tween
+ | typeof core.Timeline
+ | typeof Draggable;
+
+ // querySelector returns type Element | null
+ type DOMTarget = Element | string | null | ArrayLike<Element | string | null>;
+ type TweenTarget = string | object | null;
+
+ type Callback = (...args: any[]) => void;
+ type CallbackType = "onComplete" | "onRepeat" | "onReverseComplete" | "onStart" | "onUpdate";
+ type TickerCallback = (time: number, deltaTime: number, frame: number, elapsed: number) => void;
+
+ type Point2D = { x: number, y: number };
+ type Position = number | string;
+
+ type FunctionBasedValue<T> = (index: number, target: object, targets: object[]) => T;
+ type ArrayValue = any[] | FunctionBasedValue<any[]>;
+ type BooleanValue = boolean | FunctionBasedValue<boolean>;
+ type NumberValue = number | FunctionBasedValue<number>;
+ type StringValue = string | FunctionBasedValue<string>;
+ type TweenValue = NumberValue | StringValue;
+
+ interface AnimationVars extends CallbackVars {
+ [key: string]: any;
+ data?: any;
+ id?: string | number;
+ inherit?: boolean;
+ paused?: boolean;
+ repeat?: number;
+ repeatDelay?: number;
+ reversed?: boolean;
+ yoyo?: boolean;
+ }
+
+ interface CallbackVars {
+ callbackScope?: object;
+ onComplete?: Callback;
+ onCompleteParams?: any[];
+ onRepeat?: Callback;
+ onRepeatParams?: any[];
+ onReverseComplete?: Callback;
+ onReverseCompleteParams?: any[];
+ onStart?: Callback;
+ onStartParams?: any[];
+ onUpdate?: Callback;
+ onUpdateParams?: any[];
+ }
+
+ interface EaseMap {
+ [key: string]: EaseFunction;
+ }
+
+ interface EffectsMap {
+ [key: string]: any;
+ }
+
+ interface GSAPConfig {
+ autoSleep?: number;
+ force3D?: "auto" | boolean;
+ nullTargetWarn?: boolean;
+ stringFilter?: Callback; // TODO: Find out signature
+ units?: GSAPUnits
+ }
+
+ interface GSAPUnits {
+ [key: string]: string;
+ bottom?: string;
+ fontSize?: string;
+ height?: string;
+ left?: string;
+ lineHeight?: string;
+ margin?: string;
+ padding?: string;
+ perspective?: string;
+ right?: string;
+ rotation?: string;
+ rotationX?: string;
+ rotationY?: string;
+ skewX?: string;
+ skewY?: string;
+ top?: string;
+ width?: string;
+ x?: string;
+ y?: string;
+ z?: string;
+ }
+
+ interface StaggerVars extends CallbackVars, utils.DistributeConfig {
+ repeat?: number;
+ repeatDelay?: number;
+ yoyo?: boolean;
+ yoyoEase?: boolean | string | EaseFunction;
+ }
+
+ interface Ticker {
+ add(callback: TickerCallback): void;
+ fps(fps: number): void;
+ frame: number;
+ lagSmoothing(threshold: number, adjustedLag?: number): void;
+ remove(callback: Callback): void;
+ sleep(): void;
+ tick(): void;
+ time: number;
+ wake(): void;
+ }
+
+ interface TimelineVars extends AnimationVars {
+ autoRemoveChildren?: boolean;
+ defaults?: TweenVars;
+ delay?: number;
+ smoothChildTiming?: boolean;
+ }
+
+ interface TweenVars extends AnimationVars {
+ delay?: TweenValue;
+ duration?: TweenValue;
+ ease?: string | EaseFunction;
+ immediateRender?: boolean;
+ lazy?: boolean;
+ keyframes?: TweenVars[];
+ onInterrupt?: Callback;
+ onInterruptParams?: any[];
+ overwrite?: "auto" | boolean;
+ repeatRefresh?: boolean;
+ runBackwards?: boolean;
+ stagger?: NumberValue | StaggerVars;
+ startAt?: TweenVars;
+ yoyoEase?: boolean | string | EaseFunction;
+ }
+
+ const effects: EffectsMap;
+
+ const globalTimeline: core.Timeline;
+
+ const ticker: Ticker;
+
+ const version: string;
+
+ function config(config: GSAPConfig): GSAPConfig;
+
+ function defaults(defauts: TweenVars): TweenVars;
+
+ function delayedCall(delay: number, callback: Callback, params?: any[], scope?: object): core.Tween;
+
+ function exportRoot(vars?: TimelineVars, includeDelayedCalls?: boolean): core.Timeline;
+
+ function from(targets: TweenTarget, vars: TweenVars): core.Tween;
+ function from(targets: TweenTarget, duration: number, vars:TweenVars): core.Tween;
+
+ function fromTo(targets: TweenTarget, fromVars: TweenVars, toVars: TweenVars): core.Tween;
+ function fromTo(targets: TweenTarget, duration: number, fromVars: TweenVars, toVars: TweenVars): core.Tween;
+
+ function getById<T extends core.Animation>(id: string | number): T;
+
+ function getProperty(targets: TweenTarget, property: string, unit?: string): string | number;
+ function getProperty(targets: TweenTarget): (property: string, unit?: string) => string | number;
+
+ function getTweensOf(targets: TweenTarget, onlyActive?: boolean): core.Tween[];
+
+ function install(targets: object): typeof gsap;
+
+ function isTweening(targets: TweenTarget): boolean;
+
+ function killTweensOf(targets: TweenTarget, properties?: object | string, onlyActive?: boolean): void;
+
+ function parseEase(ease: string | EaseFunction): EaseFunction;
+ function parseEase(): EaseMap;
+
+ function registerEase(config: { name: string, ease: EaseFunction }): void;
+
+ // TODO: Create interface for effect
+ function registerEffect(effect: object): void;
+
+ function registerPlugin(...args: RegisterablePlugins[]): void;
+
+ function set(targets: TweenTarget, vars: TweenVars): core.Tween;
+
+ /**
+ *
+ *
+ * @param {object} [vars]
+ * @returns {Timeline} Timeline instance
+ * @memberof gsap
+ */
+ function timeline(vars?: TimelineVars): core.Timeline;
+
+ /**
+ * Creates an animation
+ *
+ * ```js
+ * var tween = gsap.to(".class", { x: 100 });
+ * ```
+ *
+ * @param {*} targets
+ * @param {object} vars
+ * @returns {Tween} Tween instance
+ * @memberof gsap
+ */
+ function to(targets: TweenTarget, vars: TweenVars): core.Tween;
+
+ /**
+ * **Deprecated method signature.** Use the `duration` property instead.
+ * ```js
+ * tl.to(".class", { duration: 1, x: 100 });
+ * ```
+ * @deprecated since version 2
+ * @param {*} targets
+ * @param {number} duration - The duration parameter is deprecated. Use the `duration`
+ * property instead.
+ * @param {TweenVars} vars
+ */
+ function to(targets: TweenTarget, duration: number, vars: TweenVars): core.Tween;
+
+ function updateRoot(time: number): void;
+}
+
+// TODO: Move to files where declared
+declare class TweenLite extends gsap.core.Tween {}
+declare class TweenMax extends gsap.core.Tween {}
+declare class TimelineLite extends gsap.core.Timeline {}
+declare class TimelineMax extends gsap.core.Timeline {}
+
+declare module "gsap/gsap-core" {
+
+ const _gsap: typeof gsap;
+
+ // TODO: Move to files where declared
+ export class TweenLite extends gsap.core.Tween {}
+ export class TweenMax extends gsap.core.Tween {}
+ export class TimelineLite extends gsap.core.Timeline {}
+ export class TimelineMax extends gsap.core.Timeline {}
+
+ export {
+ _gsap as gsap,
+ _gsap as default
+ }
+}
+
+declare module "gsap/src/gsap-core" {
+ export * from "gsap/gsap-core";
+ export { gsap as default } from "gsap/gsap-core";
+}
diff --git a/types/gsap-plugins.d.ts b/types/gsap-plugins.d.ts
new file mode 100644
index 0000000..6db4635
--- /dev/null
+++ b/types/gsap-plugins.d.ts
@@ -0,0 +1,104 @@
+declare namespace gsap {
+
+ type PluginInit = (
+ this: PluginScope,
+ target: object,
+ endValue: any,
+ tween: core.Tween,
+ index: number,
+ targets: object[]
+ ) => void;
+
+ type PluginRender = (this: PropTween, progress: number, data: PluginScope) => void;
+ type PluginKill = (this: PluginScope) => void;
+
+ interface PluginAliases {
+ [key: string]: string;
+ }
+
+ // TODO: Incomplete
+ interface PropTween {
+ _next: PropTween;
+ _prev: PropTween;
+ d: PluginScope;
+ r: PluginRender;
+ t: object;
+ modifier(...args: any[]): any; // TODO: Add signature
+ }
+
+ interface PluginScope {
+ [key: string]: any;
+ _props: string[];
+ _pt: PropTween;
+ add(...args: any[]): PropTween; // TODO: Add signature
+ name: string;
+ init: PluginInit;
+ kill: PluginKill;
+ render: PluginRender;
+ }
+
+ interface PluginStatic {
+ [key: string]: any;
+ targetTest(...args: any[]): any; // TODO: Add signature
+ get(target: object, prop: string): any; // TODO: Add signature
+ getSetter(...args: any[]): any; // TODO: Add signature
+ aliases: PluginAliases;
+ register(core: typeof gsap): void;
+ }
+
+ // interface Plugin extends Partial<PluginStatic>, Partial<PluginScope> {
+ interface Plugin extends Partial<PluginStatic> {
+ name: string;
+ init: PluginInit;
+ kill?: PluginKill;
+ render?: PluginRender;
+ }
+
+ interface AttrVars {
+ [key: string]: ArrayValue | TweenValue;
+ }
+
+ interface ModifiersVars {
+ [key: string]: (value: any, target: object) => any;
+ }
+
+ interface SnapVars {
+ [key: string]: number | number[] | { values: number[], radius?: number };
+ }
+
+ interface TweenVars {
+ attr?: AttrVars;
+ modifiers?: ModifiersVars;
+ snap?: SnapVars;
+ }
+}
+
+declare namespace gsap.plugins {
+
+ interface AttrPlugin extends Plugin {}
+ interface ModifiersPlugin extends Plugin {}
+ interface SnapPlugin extends Plugin {}
+
+ interface AttrPluginClass extends AttrPlugin {
+ new(): PluginScope & AttrPlugin;
+ prototype: PluginScope & AttrPlugin;
+ }
+
+ interface ModifiersPluginClass extends ModifiersPlugin {
+ new(): PluginScope & ModifiersPlugin;
+ prototype: PluginScope & ModifiersPlugin;
+ }
+
+ interface SnapPluginClass extends SnapPlugin {
+ new(): PluginScope & SnapPlugin;
+ prototype: PluginScope & SnapPlugin;
+ }
+
+ const attr: AttrPluginClass;
+ const modifiers: ModifiersPluginClass;
+ const snap: SnapPluginClass;
+}
+
+declare const AttrPlugin: gsap.plugins.AttrPlugin;
+declare const ModifiersPlugin: gsap.plugins.ModifiersPlugin;
+declare const SnapPlugin: gsap.plugins.SnapPlugin;
diff --git a/types/gsap-utils.d.ts b/types/gsap-utils.d.ts
new file mode 100644
index 0000000..f3387b5
--- /dev/null
+++ b/types/gsap-utils.d.ts
@@ -0,0 +1,142 @@
+declare namespace gsap.utils {
+
+ interface DistributeConfig {
+ amount?: number;
+ axis?: "x" | "y";
+ base?: number;
+ each?: number;
+ ease?: string | EaseFunction;
+ from?: "start" | "center" | "end" | "edges" | number | [number, number];
+ grid?: "auto" | [number, number];
+ }
+
+ function checkPrefix(value: string): string;
+
+ function clamp(minimum: number, maximum: number, valueToClamp: number): number;
+ function clamp(minimum: number, maximum: number): (valueToClamp: number) => number;
+
+ function distribute(config: DistributeConfig): FunctionBasedValue<number>;
+
+ function getUnit(value: string): string;
+
+ function interpolate<T>(startValue: T, endValue: T, progress: number): T;
+ function interpolate<T>(startValue: T, endValue: T): (progress: number) => T;
+ function interpolate<T>(array: T[], progress: number): T;
+ function interpolate<T>(array: T[]): (progress: number) => T;
+
+ function mapRange(inMin: number, inMax: number, outMin: number, outMax: number, value: number): number;
+ function mapRange(inMin: number, inMax: number, outMin: number, outMax: number): (value: number) => number;
+
+ function normalize(inMin: number, inMax: number, value: number): number;
+ function normalize(inMin: number, inMax: number): (value: number) => number;
+
+ function pipe<A extends Array<unknown>, B>(
+ ab: (...a: A) => B
+ ): (...a: A) => B;
+ function pipe<A extends Array<unknown>, B, C>(
+ ab: (...a: A) => B,
+ bc: (b: B) => C
+ ): (...a: A) => C
+ function pipe<A extends Array<unknown>, B, C, D>(
+ ab: (...a: A) => B,
+ bc: (b: B) => C,
+ cd: (c: C) => D
+ ): (...a: A) => D;
+ function pipe<A extends Array<unknown>, B, C, D, E>(
+ ab: (...a: A) => B,
+ bc: (b: B) => C,
+ cd: (c: C) => D,
+ de: (d: D) => E
+ ): (...a: A) => E;
+ function pipe<A extends Array<unknown>, B, C, D, E, F>(
+ ab: (...a: A) => B,
+ bc: (b: B) => C,
+ cd: (c: C) => D,
+ de: (d: D) => E,
+ ef: (e: E) => F
+ ): (...a: A) => F;
+ function pipe<A extends Array<unknown>, B, C, D, E, F, G>(
+ ab: (...a: A) => B,
+ bc: (b: B) => C,
+ cd: (c: C) => D,
+ de: (d: D) => E,
+ ef: (e: E) => F,
+ fg: (f: F) => G
+ ): (...a: A) => G;
+ function pipe<A extends Array<unknown>, B, C, D, E, F, G, H>(
+ ab: (...a: A) => B,
+ bc: (b: B) => C,
+ cd: (c: C) => D,
+ de: (d: D) => E,
+ ef: (e: E) => F,
+ fg: (f: F) => G,
+ gh: (g: G) => H
+ ): (...a: A) => H;
+ function pipe<A extends Array<unknown>, B, C, D, E, F, G, H, I>(
+ ab: (...a: A) => B,
+ bc: (b: B) => C,
+ cd: (c: C) => D,
+ de: (d: D) => E,
+ ef: (e: E) => F,
+ fg: (f: F) => G,
+ gh: (g: G) => H,
+ hi: (h: H) => I
+ ): (...a: A) => I;
+ function pipe<A extends Array<unknown>, B, C, D, E, F, G, H, I, J>(
+ ab: (...a: A) => B,
+ bc: (b: B) => C,
+ cd: (c: C) => D,
+ de: (d: D) => E,
+ ef: (e: E) => F,
+ fg: (f: F) => G,
+ gh: (g: G) => H,
+ hi: (h: H) => I,
+ ij: (i: I) => J
+ ): (...a: A) => J;
+
+ function random<T>(array: T[]): T;
+ function random<T, U extends boolean>(array: T[], returnFunction?: U): U extends true ? () => T : T;
+ function random(minValue: number, maxValue: number, snapIncrement?: number): number;
+ function random<T extends boolean>(minValue: number, maxValue: number, returnFunction?: T): T extends true ? () => number : number;
+ function random<T extends boolean>(minValue: number, maxValue: number, snapIncrement: number, returnFunction?: T): T extends true ? () => number : number;
+
+ function snap(snapIncrement: number | number[], valueToSnap: number): number;
+ function snap(snapIncrement: number | number[]): (valueToSnap: number) => number;
+ function snap(snapValues: { values: number[], radius?: number }, valueToSnap: number): number;
+ function snap(snapValues: { values: number[], radius?: number }): (valueToSnap: number) => number;
+ function snap(snapValues: { values: Point2D[], radius?: number }, valueToSnap: Point2D): Point2D;
+ function snap(snapValues: { values: Point2D[], radius?: number }): (valueToSnap: Point2D) => Point2D;
+
+ function splitColor(color: string, hsl?: boolean): [number, number, number] | [number, number, number, number];
+
+ function toArray<T>(value: string | object, leaveStrings?: boolean): T[];
+
+ function unitize<T extends Array<unknown>>(fn: (...args: T) => unknown, unit?: string): (...args: T) => string;
+
+ function wrap(value1: number, value2: number, index: number): number;
+ function wrap(value1: number, value2: number): (index: number) => number;
+ function wrap<T>(values: T[], index: number): T;
+ function wrap<T>(values: T[]): (index: number) => T;
+
+ function wrapYoyo(value1: number, value2: number, index: number): number;
+ function wrapYoyo(value1: number, value2: number): (index: number) => number;
+ function wrapYoyo<T>(values: T[], index: number): T;
+ function wrapYoyo<T>(values: T[]): (index: number) => T;
+}
+
+declare module "gsap/gsap-core" {
+ export const clamp: typeof gsap.utils.clamp;
+ export const distribute: typeof gsap.utils.distribute;
+ export const getUnit: typeof gsap.utils.getUnit;
+ export const interpolate: typeof gsap.utils.interpolate;
+ export const mapRange: typeof gsap.utils.mapRange;
+ export const normalize: typeof gsap.utils.normalize;
+ export const pipe: typeof gsap.utils.pipe;
+ export const random: typeof gsap.utils.random;
+ export const snap: typeof gsap.utils.snap;
+ export const splitColor: typeof gsap.utils.splitColor;
+ export const toArray: typeof gsap.utils.toArray;
+ export const unitize: typeof gsap.utils.unitize;
+ export const wrap: typeof gsap.utils.wrap;
+ export const wrapYoyo: typeof gsap.utils.wrapYoyo;
+}
diff --git a/types/index.d.ts b/types/index.d.ts
new file mode 100644
index 0000000..6f234fd
--- /dev/null
+++ b/types/index.d.ts
@@ -0,0 +1,88 @@
+// Type definitions for gsap 3.0
+// Project: https://greensock.com/
+// Definitions by: Blake Bowen <https://github.com/OSUblake>
+// Pedro Tavares <https://github.com/dipscom>
+// Zach Saucier <https://github.com/ZachSaucier>
+// Definitions: https://github.com/greensock/GSAP
+
+/// <reference path="animation.d.ts"/>
+/// <reference path="custom-bounce.d.ts"/>
+/// <reference path="custom-ease.d.ts"/>
+/// <reference path="custom-wiggle.d.ts"/>
+/// <reference path="css-plugin.d.ts"/>
+/// <reference path="css-rule-plugin.d.ts"/>
+/// <reference path="draggable.d.ts"/>
+/// <reference path="draw-svg-plugin.d.ts"/>
+/// <reference path="ease.d.ts"/>
+/// <reference path="easel-plugin.d.ts"/>
+/// <reference path="gs-dev-tools.d.ts"/>
+/// <reference path="gsap-plugins.d.ts"/>
+/// <reference path="gsap-utils.d.ts"/>
+/// <reference path="inertia-plugin.d.ts"/>
+/// <reference path="morph-svg-plugin.d.ts"/>
+/// <reference path="motion-path-plugin.d.ts"/>
+/// <reference path="motion-path-helper.d.ts"/>
+/// <reference path="physics-2d-plugin.d.ts"/>
+/// <reference path="physics-props-plugin.d.ts"/>
+/// <reference path="pixi-plugin.d.ts"/>
+/// <reference path="scramble-text-plugin.d.ts"/>
+/// <reference path="scroll-to-plugin.d.ts"/>
+/// <reference path="split-text.d.ts"/>
+/// <reference path="text-plugin.d.ts"/>
+/// <reference path="timeline.d.ts"/>
+/// <reference path="tween.d.ts"/>
+/// <reference path="utils/velocity-tracker.d.ts"/>
+/// <reference path="gsap-core.d.ts"/>
+
+// Global types
+type GSAPDraggableVars = Draggable.Vars;
+type GSAPAnimation = gsap.core.Animation;
+type GSAPCallback = gsap.Callback;
+type GSAPDistributeConfig = gsap.utils.DistributeConfig;
+type GSAPPlugin = gsap.Plugin;
+type GSAPPluginScope = gsap.PluginScope;
+type GSAPPluginStatic = gsap.PluginStatic;
+type GSAPStaggerVars = gsap.StaggerVars;
+type GSAPTickerCallback = gsap.TickerCallback;
+type GSAPTimeline = gsap.core.Timeline;
+type GSAPTimelineVars = gsap.TimelineVars;
+type GSAPTween = gsap.core.Tween;
+type GSAPTweenTarget = gsap.TweenTarget;
+type GSAPTweenVars = gsap.TweenVars;
+
+type GSAP = typeof gsap;
+
+declare module "gsap" {
+ export * from "gsap/gsap-core";
+ export { gsap as default } from "gsap/gsap-core";
+}
+
+declare module "gsap/src" {
+ export * from "gsap";
+ export { gsap as default } from "gsap";
+}
+
+declare module "gsap/src/index" {
+ export * from "gsap";
+ export { gsap as default } from "gsap";
+}
+
+declare module "gsap/dist" {
+ export * from "gsap";
+ export { gsap as default } from "gsap";
+}
+
+declare module "gsap/dist/gsap" {
+ export * from "gsap";
+ export { gsap as default } from "gsap";
+}
+
+declare module "gsap/all" {
+ export * from "gsap";
+ export { gsap as default } from "gsap";
+}
+
+declare module "gsap/src/all" {
+ export * from "gsap/all";
+ export { gsap as default } from "gsap/all";
+}
diff --git a/types/inertia-plugin.d.ts b/types/inertia-plugin.d.ts
new file mode 100644
index 0000000..d1dcd3d
--- /dev/null
+++ b/types/inertia-plugin.d.ts
@@ -0,0 +1,66 @@
+declare namespace gsap {
+
+ type InertiaEndFunction<T> = (value: T) => T;
+
+ interface InertiaDuration {
+ min?: number;
+ max?: number;
+ overshoot?: number;
+ }
+
+ interface InertiaLinkedProps {
+ [key: string]: number;
+ }
+
+ interface InertiaObject {
+ velocity?: number | "auto";
+ min?: number;
+ max?: number;
+ end?: number | number[] | InertiaEndFunction<number> | InertiaEndFunction<InertiaLinkedProps>;
+ }
+
+ interface InertiaVars {
+ [key: string]: TweenValue | InertiaObject | InertiaDuration;
+ duration?: number | InertiaDuration;
+ linkedProps?: string;
+ resistance?: number;
+ }
+
+ interface TweenVars {
+ inertia?: InertiaVars;
+ }
+}
+
+declare namespace gsap.plugins {
+
+ interface InertiaPlugin extends Plugin, VelocityTrackerStatic { }
+
+ interface InertiaPluginClass extends InertiaPlugin {
+ new(): PluginScope & InertiaPlugin;
+ prototype: PluginScope & InertiaPlugin;
+ }
+
+ const inertia: InertiaPluginClass;
+}
+
+declare const InertiaPlugin: gsap.plugins.InertiaPlugin;
+
+declare module "gsap/InertiaPlugin" {
+ export * from "gsap/utils/VelocityTracker";
+ export const InertiaPlugin: gsap.plugins.InertiaPlugin;
+ export { InertiaPlugin as default };
+}
+
+declare module "gsap/dist/InertiaPlugin" {
+ export * from "gsap/InertiaPlugin";
+ export { InertiaPlugin as default } from "gsap/InertiaPlugin";
+}
+
+declare module "gsap/src/InertiaPlugin" {
+ export * from "gsap/InertiaPlugin";
+ export { InertiaPlugin as default } from "gsap/InertiaPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/InertiaPlugin";
+}
diff --git a/types/morph-svg-plugin.d.ts b/types/morph-svg-plugin.d.ts
new file mode 100644
index 0000000..22586a6
--- /dev/null
+++ b/types/morph-svg-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const MorphSVGPlugin: any;
+
+declare module "gsap/MorphSVGPlugin" {
+
+ // TODO
+ export const MorphSVGPlugin: any;
+ export { MorphSVGPlugin as default };
+}
+
+declare module "gsap/dist/MorphSVGPlugin" {
+ export * from "gsap/MorphSVGPlugin";
+ export { MorphSVGPlugin as default } from "gsap/MorphSVGPlugin";
+}
+
+declare module "gsap/src/MorphSVGPlugin" {
+ export * from "gsap/MorphSVGPlugin";
+ export { MorphSVGPlugin as default } from "gsap/MorphSVGPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/MorphSVGPlugin";
+}
diff --git a/types/motion-path-helper.d.ts b/types/motion-path-helper.d.ts
new file mode 100644
index 0000000..ddc7f5d
--- /dev/null
+++ b/types/motion-path-helper.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const MotionPathHelper: any;
+
+declare module "gsap/MotionPathHelper" {
+
+ // TODO
+ export const MotionPathHelper: any;
+ export { MotionPathHelper as default };
+}
+
+declare module "gsap/dist/MotionPathHelper" {
+ export * from "gsap/MotionPathHelper";
+ export { MotionPathHelper as default } from "gsap/MotionPathHelper";
+}
+
+declare module "gsap/src/MotionPathHelper" {
+ export * from "gsap/MotionPathHelper";
+ export { MotionPathHelper as default } from "gsap/MotionPathHelper";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/MotionPathHelper";
+}
diff --git a/types/motion-path-plugin.d.ts b/types/motion-path-plugin.d.ts
new file mode 100644
index 0000000..6947f18
--- /dev/null
+++ b/types/motion-path-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const MotionPathPlugin: any;
+
+declare module "gsap/MotionPathPlugin" {
+
+ // TODO
+ export const MotionPathPlugin: any;
+ export { MotionPathPlugin as default };
+}
+
+declare module "gsap/dist/MotionPathPlugin" {
+ export * from "gsap/MotionPathPlugin";
+ export { MotionPathPlugin as default } from "gsap/MotionPathPlugin";
+}
+
+declare module "gsap/src/MotionPathPlugin" {
+ export * from "gsap/MotionPathPlugin";
+ export { MotionPathPlugin as default } from "gsap/MotionPathPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/MotionPathPlugin";
+}
diff --git a/types/physics-2d-plugin.d.ts b/types/physics-2d-plugin.d.ts
new file mode 100644
index 0000000..b876836
--- /dev/null
+++ b/types/physics-2d-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const Physics2DPlugin: any;
+
+declare module "gsap/Physics2DPlugin" {
+
+ // TODO
+ export const Physics2DPlugin: any;
+ export { Physics2DPlugin as default };
+}
+
+declare module "gsap/dist/Physics2DPlugin" {
+ export * from "gsap/Physics2DPlugin";
+ export { Physics2DPlugin as default } from "gsap/Physics2DPlugin";
+}
+
+declare module "gsap/src/Physics2DPlugin" {
+ export * from "gsap/Physics2DPlugin";
+ export { Physics2DPlugin as default } from "gsap/Physics2DPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/Physics2DPlugin";
+}
diff --git a/types/physics-props-plugin.d.ts b/types/physics-props-plugin.d.ts
new file mode 100644
index 0000000..6a5b75a
--- /dev/null
+++ b/types/physics-props-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const Physics2PropsPlugin: any;
+
+declare module "gsap/PhysicsPropsPlugin" {
+
+ // TODO
+ export const PhysicsPropsPlugin: any;
+ export { PhysicsPropsPlugin as default };
+}
+
+declare module "gsap/dist/PhysicsPropsPlugin" {
+ export * from "gsap/PhysicsPropsPlugin";
+ export { PhysicsPropsPlugin as default } from "gsap/PhysicsPropsPlugin";
+}
+
+declare module "gsap/src/PhysicsPropsPlugin" {
+ export * from "gsap/PhysicsPropsPlugin";
+ export { PhysicsPropsPlugin as default } from "gsap/PhysicsPropsPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/PhysicsPropsPlugin";
+}
diff --git a/types/pixi-plugin.d.ts b/types/pixi-plugin.d.ts
new file mode 100644
index 0000000..aadb788
--- /dev/null
+++ b/types/pixi-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const PixiPlugin: any;
+
+declare module "gsap/PixiPlugin" {
+
+ // TODO
+ export const PixiPlugin: any;
+ export { PixiPlugin as default };
+}
+
+declare module "gsap/dist/PixiPlugin" {
+ export * from "gsap/PixiPlugin";
+ export { PixiPlugin as default } from "gsap/PixiPlugin";
+}
+
+declare module "gsap/src/PixiPlugin" {
+ export * from "gsap/PixiPlugin";
+ export { PixiPlugin as default } from "gsap/PixiPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/PixiPlugin";
+}
diff --git a/types/scramble-text-plugin.d.ts b/types/scramble-text-plugin.d.ts
new file mode 100644
index 0000000..5ca7d9d
--- /dev/null
+++ b/types/scramble-text-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const ScrambleTextPlugin: any;
+
+declare module "gsap/ScrambleTextPlugin" {
+
+ // TODO
+ export const ScrambleTextPlugin: any;
+ export { ScrambleTextPlugin as default };
+}
+
+declare module "gsap/dist/ScrambleTextPlugin" {
+ export * from "gsap/ScrambleTextPlugin";
+ export { ScrambleTextPlugin as default } from "gsap/ScrambleTextPlugin";
+}
+
+declare module "gsap/src/ScrambleTextPlugin" {
+ export * from "gsap/ScrambleTextPlugin";
+ export { ScrambleTextPlugin as default } from "gsap/ScrambleTextPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/ScrambleTextPlugin";
+}
diff --git a/types/scroll-to-plugin.d.ts b/types/scroll-to-plugin.d.ts
new file mode 100644
index 0000000..3b9bebd
--- /dev/null
+++ b/types/scroll-to-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const ScrollToPlugin: any;
+
+declare module "gsap/ScrollToPlugin" {
+
+ // TODO
+ export const ScrollToPlugin: any;
+ export { ScrollToPlugin as default };
+}
+
+declare module "gsap/dist/ScrollToPlugin" {
+ export * from "gsap/ScrollToPlugin";
+ export { ScrollToPlugin as default } from "gsap/ScrollToPlugin";
+}
+
+declare module "gsap/src/ScrollToPlugin" {
+ export * from "gsap/ScrollToPlugin";
+ export { ScrollToPlugin as default } from "gsap/ScrollToPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/ScrollToPlugin";
+}
diff --git a/types/split-text.d.ts b/types/split-text.d.ts
new file mode 100644
index 0000000..498530e
--- /dev/null
+++ b/types/split-text.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const SplitText: any;
+
+declare module "gsap/SplitText" {
+
+ // TODO
+ export const SplitText: any;
+ export { SplitText as default };
+}
+
+declare module "gsap/dist/SplitText" {
+ export * from "gsap/SplitText";
+ export { SplitText as default } from "gsap/SplitText";
+}
+
+declare module "gsap/src/SplitText" {
+ export * from "gsap/SplitText";
+ export { SplitText as default } from "gsap/SplitText";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/SplitText";
+}
diff --git a/types/text-plugin.d.ts b/types/text-plugin.d.ts
new file mode 100644
index 0000000..69a3484
--- /dev/null
+++ b/types/text-plugin.d.ts
@@ -0,0 +1,23 @@
+// TODO
+declare const TextPlugin: any;
+
+declare module "gsap/TextPlugin" {
+
+ // TODO
+ export const TextPlugin: any;
+ export { TextPlugin as default };
+}
+
+declare module "gsap/dist/TextPlugin" {
+ export * from "gsap/TextPlugin";
+ export { TextPlugin as default } from "gsap/TextPlugin";
+}
+
+declare module "gsap/src/TextPlugin" {
+ export * from "gsap/TextPlugin";
+ export { TextPlugin as default } from "gsap/TextPlugin";
+}
+
+declare module "gsap/all" {
+ export * from "gsap/TextPlugin";
+}
diff --git a/types/timeline.d.ts b/types/timeline.d.ts
new file mode 100644
index 0000000..7b6dec2
--- /dev/null
+++ b/types/timeline.d.ts
@@ -0,0 +1,46 @@
+declare namespace gsap.core {
+
+ type TimelineChild = string | Animation | Callback | Array<string | Animation | Callback>;
+
+ interface Labels {
+ [key: string]: number;
+ }
+
+ class Timeline extends Animation {
+
+ autoRemoveChildren: boolean;
+ labels: Labels;
+ smoothChildTiming: boolean;
+ vars: TimelineVars;
+
+ constructor(vars?: TimelineVars, time?: number);
+
+ static updateRoot(time: number): void;
+
+ add(child: TimelineChild, position?: Position): this;
+ addLabel(label: string, position?: Position): this;
+ addPause(position?: Position, callback?: Callback, params?: any[]): this;
+ call(callback: Callback, params?: any[], position?: Position): this;
+ clear(labels?: boolean): this;
+ currentLabel(value: string): this;
+ currentLabel(): string;
+ from(targets: TweenTarget, vars: TweenVars, position?: Position): this;
+ from(targets: TweenTarget, duration: number, vars: TweenVars, position?: Position): this;
+ fromTo(targets: TweenTarget, fromVars: TweenVars, toVars: TweenVars, position?: Position): this;
+ fromTo(targets: TweenTarget, duration: number, fromVars: TweenVars, toVars: TweenVars, position?: Position): this;
+ getChildren(nested?: boolean, tweens?: boolean, timelines?: boolean, ignoreBeforeTime?: number): Tween[] | Timeline[];
+ getTweensOf(targets: TweenTarget, onlyActive?: boolean): Tween[];
+ nextLabel(time?: number): string;
+ previousLabel(time?: number): string;
+ recent<T extends Tween | Timeline>(): T;
+ remove(value: TimelineChild): this;
+ removeLabel(label: string): number;
+ removePause(position: Position): this;
+ set(target: TweenTarget, vars: TweenVars, position?: Position): this;
+ shiftChildren(amount: number, adjustLabels?:boolean, ignoreBeforeTime?: number): this;
+ to(targets: TweenTarget, vars: TweenVars, position?: Position): this;
+ to(targets: TweenTarget, duration: number, vars: TweenVars, position?: Position): this;
+ tweenFromTo(fromPosition: Position, toPosition: Position, vars?: TweenVars): Tween;
+ tweenTo(position: Position, vars?: TweenVars): Tween;
+ }
+}
diff --git a/types/tween.d.ts b/types/tween.d.ts
new file mode 100644
index 0000000..b406ac2
--- /dev/null
+++ b/types/tween.d.ts
@@ -0,0 +1,21 @@
+declare namespace gsap.core {
+
+ class Tween extends Animation {
+
+ data: any;
+ vars: TweenVars;
+
+ constructor(targets: TweenTarget, vars: TweenVars, time?: number);
+ constructor(targets: TweenTarget, duration: number, vars: TweenVars);
+
+ static to(targets: TweenTarget, duration: number, vars: TweenVars): Tween;
+ static to(targets: TweenTarget, vars: TweenVars): Tween;
+ static from(targets: TweenTarget, duration: number, vars: TweenVars): Tween;
+ static from(targets: TweenTarget, vars: TweenVars): Tween;
+ static fromTo(targets: TweenTarget, duration: number, fromVars: TweenVars, toVars: TweenVars): Tween;
+ static fromTo(targets: TweenTarget, fromVars: TweenVars, toVars: TweenVars): Tween;
+
+ kill(target?: object, propertiesList?: string): this;
+ targets<T>(): T[];
+ }
+}
diff --git a/types/utils/velocity-tracker.d.ts b/types/utils/velocity-tracker.d.ts
new file mode 100644
index 0000000..8c0370f
--- /dev/null
+++ b/types/utils/velocity-tracker.d.ts
@@ -0,0 +1,43 @@
+declare namespace gsap {
+
+ type VelocityType = "num" | "deg" | "rad";
+
+ interface VelocityMap {
+ [key: string]: number;
+ }
+
+ interface VelocityTrackerInstance {
+ readonly target: object;
+ add(property: string, type?: VelocityType): void;
+ kill(shallow?: boolean): void;
+ remove(property: string): void;
+ getAll(): VelocityMap;
+ get(property: string): number;
+ }
+
+ interface VelocityTrackerStatic {
+ getByTarget(target: TweenTarget): VelocityTrackerInstance;
+ getVelocity(target: TweenTarget, property: string): number;
+ isTracking(target: TweenTarget, property?: string): boolean;
+ track(target: TweenTarget, properties: string, type?: VelocityType): VelocityTrackerInstance[];
+ untrack(target: TweenTarget, properties?: string): void;
+ }
+
+ interface VelocityTracker extends VelocityTrackerStatic {
+ new(target: TweenTarget, properties?: string, type?: VelocityType, next?: VelocityTrackerInstance): VelocityTrackerInstance;
+ prototype: VelocityTrackerInstance;
+ register(core: typeof gsap): void;
+ }
+}
+
+declare const VelocityTracker: gsap.VelocityTracker;
+
+declare module "gsap/utils/VelocityTracker" {
+ export const VelocityTracker: gsap.VelocityTracker;
+ export { VelocityTracker as default };
+}
+
+declare module "gsap/src/utils/VelocityTracker" {
+ export * from "gsap/utils/VelocityTracker";
+ export { VelocityTracker as default } from "gsap/utils/VelocityTracker";
+}