@orangelogic/design-system 2.47.0 → 2.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/amazon_s3.BB3xCgkt.js +36 -0
- package/library/chunks/{button.DrU92LJQ.js → button.DQ1SyxmK.js} +2 -2
- package/library/chunks/{color-swatch-group.D25TleOW.js → color-swatch-group.DN7t4a6b.js} +4 -4
- package/library/chunks/{color-swatch.C2-EzrL8.js → color-swatch.CyN0Rfwc.js} +2 -2
- package/library/chunks/{confirm-popover.DZEKwSER.js → confirm-popover.CFrckJqd.js} +3 -3
- package/library/chunks/{cropper.3qRm5dEe.js → cropper.CfSeVI5y.js} +1 -1
- package/library/chunks/{dialog.DJooAubs.js → dialog.B1-k8d10.js} +2 -2
- package/library/chunks/{dot-pagination.BAYd2LHU.js → dot-pagination.Ci2f-RDI.js} +1 -1
- package/library/chunks/{file-on-demand.Da51rS_0.js → file-on-demand.DKBPqNSf.js} +10 -10
- package/library/chunks/{folder-select.XvnsKaxl.js → folder-select.BY9NfYq8.js} +5 -5
- package/library/chunks/{header.CS8blIMq.js → header.55H9vN7t.js} +1 -1
- package/library/chunks/{i18n.D33BKrRs.js → i18n.CXUGdxzx.js} +1 -0
- package/library/chunks/{iframe.Ad6DPhUL.js → iframe.BYMxR3Sc.js} +1 -1
- package/library/chunks/{image.B0y0mQS7.js → image.qBD2O7kA.js} +2 -2
- package/library/chunks/{list-editor.Cp7uimYS.js → list-editor.BT8jyXOn.js} +6 -6
- package/library/chunks/{number.eX2EGPvy.js → number.CjNxU7Xs.js} +26 -16
- package/library/chunks/{option.C4nNbxye.js → option.DrGgLWa5.js} +1 -1
- package/library/chunks/orangelogic.B9VE3Ocx.js +22 -0
- package/library/chunks/parse.Cu5nBDTb.js +28 -0
- package/library/chunks/{popup.DSpLrBM-.js → popup.dmeEbJcf.js} +5 -5
- package/library/chunks/{select.q95lVGWn.js → select.Bc4UXmFy.js} +3 -3
- package/library/chunks/{tab-group.BBZDkdIX.js → tab-group.BHNXl1XO.js} +601 -581
- package/library/chunks/{table.Bz0thu3_.js → table.CNDxXSQ-.js} +1100 -1078
- package/library/chunks/{timecode.BOz71Ho5.js → timecode.DYwU2oVN.js} +18 -16
- package/library/chunks/{tree.Dqx2HC5u.js → tree.CwqbM4ad.js} +1 -1
- package/library/components/alert.js +1 -1
- package/library/components/asset-link-format.js +6 -6
- package/library/components/atoms.js +120 -118
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/cropper.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/divider.js +37 -16
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +5 -5
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +11 -11
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.d.ts +3 -0
- package/library/components/format-time.js +223 -0
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +1 -1
- package/library/components/icon.js +3 -1
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +3 -3
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +2 -2
- package/library/components/list-editor.js +6 -6
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +5 -5
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +38 -62
- package/library/components/pagination.js +4 -4
- package/library/components/popup.js +2 -2
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +4 -4
- package/library/components/share-option-list.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +5 -4
- package/library/components/tab.js +3 -2
- package/library/components/table.js +56 -55
- package/library/components/tag.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +624 -619
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/divider/divider.d.ts +6 -0
- package/library/packages/atoms/src/components/format-time/format-time.d.ts +40 -0
- package/library/packages/atoms/src/components/format-time/format-time.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/icon/custom-icons/amazon_s3.d.ts +4 -0
- package/library/packages/atoms/src/components/icon/custom-icons/orangelogic.d.ts +4 -0
- package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +3 -1
- package/library/packages/atoms/src/components/table/table.d.ts +6 -3
- package/library/packages/atoms/src/components/table/tabulator-tables/core/RowManager.d.ts +14 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +0 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +6 -0
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/events.d.ts +0 -1
- package/library/packages/molecules/src/timeline/timeline.d.ts +4 -2
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -0
- package/library/packages/types/src/table.d.ts +0 -7
- package/library/packages/types/src/time.d.ts +44 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/packages/utils/src/number/number.d.ts +1 -0
- package/library/packages/utils/src/time/index.d.ts +1 -0
- package/library/packages/utils/src/time/time.d.ts +11 -0
- package/library/react-web-component.d.ts +62 -4
- package/package.json +1 -1
- package/library/packages/events/src/cx-tab-group-pagination-change.d.ts +0 -8
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { i as Fn, n as
|
|
1
|
+
import In from "../components/resize-observer.js";
|
|
2
|
+
import { i as Fn, n as wt, C as Ln, x as $t, c as $n } from "./custom-element.fmLrnDZr.js";
|
|
3
3
|
import { c as Nn } from "./component.styles.DtouHn2g.js";
|
|
4
|
-
import { L as Bn } from "./i18n.
|
|
4
|
+
import { L as Bn } from "./i18n.CXUGdxzx.js";
|
|
5
5
|
import { s as Zi } from "./scroll.DwPiX2Ox.js";
|
|
6
|
-
import { w as
|
|
7
|
-
import { i as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { w as ft } from "./watch.BCJD77bD.js";
|
|
7
|
+
import { i as Wn } from "./dom.DDszM5Cy.js";
|
|
8
|
+
import { s as Vn } from "./parse.Cu5nBDTb.js";
|
|
9
|
+
import { r as at } from "./state.Dt9F_SuS.js";
|
|
10
|
+
import { t as Un } from "./event-options.CYHYGOd8.js";
|
|
11
|
+
import { e as It } from "./query.BBf1UFkC.js";
|
|
12
|
+
import { r as Hn } from "./query-all.i3PyvTUQ.js";
|
|
12
13
|
import { e as Nt } from "./class-map.DqNfBvJI.js";
|
|
13
14
|
import { i as Ji } from "./guard.L-Ctqt3S.js";
|
|
14
15
|
import { o as tr } from "./map.D8heArFD.js";
|
|
15
|
-
import { o as
|
|
16
|
-
import { n as
|
|
17
|
-
import { C as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
var bi = /* @__PURE__ */ ((o) => (o.Bottom = "bottom", o.End = "end", o.Start = "start", o.Top = "top", o))(bi || {}),
|
|
16
|
+
import { o as Ue } from "./style-map.lEJHEwk3.js";
|
|
17
|
+
import { n as Pe } from "./when.Dr1es41R.js";
|
|
18
|
+
import { C as Yn } from "./button.DQ1SyxmK.js";
|
|
19
|
+
import Xn from "../components/dropdown.js";
|
|
20
|
+
import qn from "../components/icon-button.js";
|
|
21
|
+
import Gn from "../components/menu.js";
|
|
22
|
+
import Kn from "../components/menu-item.js";
|
|
23
|
+
import jn from "../components/tab.js";
|
|
24
|
+
var bi = /* @__PURE__ */ ((o) => (o.Bottom = "bottom", o.End = "end", o.Start = "start", o.Top = "top", o))(bi || {}), Ke = /* @__PURE__ */ ((o) => (o.Center = "center", o.End = "flex-end", o.Start = "flex-start", o))(Ke || {}), wr = /* @__PURE__ */ ((o) => (o.Auto = "auto", o.Manual = "manual", o))(wr || {}), ue = /* @__PURE__ */ ((o) => (o.Button = "button", o.Default = "default", o.Timeline = "timeline", o))(ue || {}), Tt = /* @__PURE__ */ ((o) => (o.Dropdown = "dropdown", o.Pagination = "pagination", o.Scroll = "scroll", o))(Tt || {}), Wt = /* @__PURE__ */ ((o) => (o.Absolute = "absolute", o.DisplayNone = "display-none", o))(Wt || {});
|
|
24
25
|
function Dt(o) {
|
|
25
26
|
if (o === void 0)
|
|
26
27
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -37,24 +38,24 @@ function Tr(o, t) {
|
|
|
37
38
|
* Subject to the terms at https://gsap.com/standard-license
|
|
38
39
|
* @author: Jack Doyle, jack@greensock.com
|
|
39
40
|
*/
|
|
40
|
-
var
|
|
41
|
+
var dt = {
|
|
41
42
|
autoSleep: 120,
|
|
42
43
|
force3D: "auto",
|
|
43
44
|
nullTargetWarn: 1,
|
|
44
45
|
units: {
|
|
45
46
|
lineHeight: ""
|
|
46
47
|
}
|
|
47
|
-
},
|
|
48
|
+
}, be = {
|
|
48
49
|
duration: 0.5,
|
|
49
50
|
overwrite: !1,
|
|
50
51
|
delay: 0
|
|
51
|
-
},
|
|
52
|
+
}, Ei, q, L, vt = 1e8, F = 1 / vt, mi = Math.PI * 2, Qn = mi / 4, Zn = 0, Pr = Math.sqrt, Jn = Math.cos, ts = Math.sin, X = function(t) {
|
|
52
53
|
return typeof t == "string";
|
|
53
|
-
},
|
|
54
|
+
}, W = function(t) {
|
|
54
55
|
return typeof t == "function";
|
|
55
56
|
}, zt = function(t) {
|
|
56
57
|
return typeof t == "number";
|
|
57
|
-
},
|
|
58
|
+
}, Ii = function(t) {
|
|
58
59
|
return typeof t > "u";
|
|
59
60
|
}, Ot = function(t) {
|
|
60
61
|
return typeof t == "object";
|
|
@@ -62,31 +63,31 @@ var ct = {
|
|
|
62
63
|
return t !== !1;
|
|
63
64
|
}, Fi = function() {
|
|
64
65
|
return typeof window < "u";
|
|
65
|
-
},
|
|
66
|
-
return
|
|
66
|
+
}, He = function(t) {
|
|
67
|
+
return W(t) || X(t);
|
|
67
68
|
}, Sr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
68
|
-
}, Q = Array.isArray, vi = /(?:-?\.?\d|\.)+/gi, Ar = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,
|
|
69
|
-
return (Je =
|
|
69
|
+
}, Q = Array.isArray, vi = /(?:-?\.?\d|\.)+/gi, Ar = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, ce = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, hi = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Cr = /[+-]=-?[.\d]+/, kr = /[^,'"\[\]\s]+/gi, es = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, N, St, yi, Li, _t = {}, Je = {}, Or, Dr = function(t) {
|
|
70
|
+
return (Je = me(t, _t)) && ot;
|
|
70
71
|
}, $i = function(t, e) {
|
|
71
72
|
return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
|
|
72
|
-
},
|
|
73
|
+
}, ze = function(t, e) {
|
|
73
74
|
return !e && console.warn(t);
|
|
74
75
|
}, Mr = function(t, e) {
|
|
75
|
-
return t && (
|
|
76
|
-
},
|
|
76
|
+
return t && (_t[t] = e) && Je && (Je[t] = e) || _t;
|
|
77
|
+
}, Ee = function() {
|
|
77
78
|
return 0;
|
|
78
|
-
},
|
|
79
|
+
}, is = {
|
|
79
80
|
suppressEvents: !0,
|
|
80
81
|
isStart: !0,
|
|
81
82
|
kill: !1
|
|
82
83
|
}, je = {
|
|
83
84
|
suppressEvents: !0,
|
|
84
85
|
kill: !1
|
|
85
|
-
},
|
|
86
|
+
}, rs = {
|
|
86
87
|
suppressEvents: !0
|
|
87
|
-
}, Ni = {}, Yt = [],
|
|
88
|
+
}, Ni = {}, Yt = [], xi = {}, Rr, ht = {}, ui = {}, er = 30, Qe = [], Bi = "", Wi = function(t) {
|
|
88
89
|
var e = t[0], i, r;
|
|
89
|
-
if (Ot(e) ||
|
|
90
|
+
if (Ot(e) || W(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
|
|
90
91
|
for (r = Qe.length; r-- && !Qe[r].targetTest(e); )
|
|
91
92
|
;
|
|
92
93
|
i = Qe[r];
|
|
@@ -95,45 +96,45 @@ var ct = {
|
|
|
95
96
|
t[r] && (t[r]._gsap || (t[r]._gsap = new rn(t[r], i))) || t.splice(r, 1);
|
|
96
97
|
return t;
|
|
97
98
|
}, re = function(t) {
|
|
98
|
-
return t._gsap ||
|
|
99
|
+
return t._gsap || Wi(yt(t))[0]._gsap;
|
|
99
100
|
}, zr = function(t, e, i) {
|
|
100
|
-
return (i = t[e]) &&
|
|
101
|
+
return (i = t[e]) && W(i) ? t[e]() : Ii(i) && t.getAttribute && t.getAttribute(e) || i;
|
|
101
102
|
}, rt = function(t, e) {
|
|
102
103
|
return (t = t.split(",")).forEach(e) || t;
|
|
103
|
-
},
|
|
104
|
+
}, V = function(t) {
|
|
104
105
|
return Math.round(t * 1e5) / 1e5 || 0;
|
|
105
106
|
}, H = function(t) {
|
|
106
107
|
return Math.round(t * 1e7) / 1e7 || 0;
|
|
107
|
-
},
|
|
108
|
+
}, de = function(t, e) {
|
|
108
109
|
var i = e.charAt(0), r = parseFloat(e.substr(2));
|
|
109
110
|
return t = parseFloat(t), i === "+" ? t + r : i === "-" ? t - r : i === "*" ? t * r : t / r;
|
|
110
|
-
},
|
|
111
|
+
}, ns = function(t, e) {
|
|
111
112
|
for (var i = e.length, r = 0; t.indexOf(e[r]) < 0 && ++r < i; )
|
|
112
113
|
;
|
|
113
114
|
return r < i;
|
|
114
115
|
}, ti = function() {
|
|
115
116
|
var t = Yt.length, e = Yt.slice(0), i, r;
|
|
116
|
-
for (
|
|
117
|
+
for (xi = {}, Yt.length = 0, i = 0; i < t; i++)
|
|
117
118
|
r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
|
|
118
|
-
},
|
|
119
|
+
}, Vi = function(t) {
|
|
119
120
|
return !!(t._initted || t._startAt || t.add);
|
|
120
|
-
},
|
|
121
|
-
Yt.length && !q && ti(), t.render(e, i, !!(q && e < 0 &&
|
|
122
|
-
},
|
|
121
|
+
}, Er = function(t, e, i, r) {
|
|
122
|
+
Yt.length && !q && ti(), t.render(e, i, !!(q && e < 0 && Vi(t))), Yt.length && !q && ti();
|
|
123
|
+
}, Ir = function(t) {
|
|
123
124
|
var e = parseFloat(t);
|
|
124
125
|
return (e || e === 0) && (t + "").match(kr).length < 2 ? e : X(t) ? t.trim() : t;
|
|
125
126
|
}, Fr = function(t) {
|
|
126
127
|
return t;
|
|
127
|
-
},
|
|
128
|
+
}, pt = function(t, e) {
|
|
128
129
|
for (var i in e)
|
|
129
130
|
i in t || (t[i] = e[i]);
|
|
130
131
|
return t;
|
|
131
|
-
},
|
|
132
|
+
}, ss = function(t) {
|
|
132
133
|
return function(e, i) {
|
|
133
134
|
for (var r in i)
|
|
134
135
|
r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
|
|
135
136
|
};
|
|
136
|
-
},
|
|
137
|
+
}, me = function(t, e) {
|
|
137
138
|
for (var i in e)
|
|
138
139
|
t[i] = e[i];
|
|
139
140
|
return t;
|
|
@@ -146,13 +147,13 @@ var ct = {
|
|
|
146
147
|
for (r in t)
|
|
147
148
|
r in e || (i[r] = t[r]);
|
|
148
149
|
return i;
|
|
149
|
-
},
|
|
150
|
-
var e = t.parent || N, i = t.keyframes ?
|
|
150
|
+
}, Oe = function(t) {
|
|
151
|
+
var e = t.parent || N, i = t.keyframes ? ss(Q(t.keyframes)) : pt;
|
|
151
152
|
if (it(t.inherit))
|
|
152
153
|
for (; e; )
|
|
153
154
|
i(t, e.vars.defaults), e = e.parent || e._dp;
|
|
154
155
|
return t;
|
|
155
|
-
},
|
|
156
|
+
}, os = function(t, e) {
|
|
156
157
|
for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
|
|
157
158
|
;
|
|
158
159
|
return i < 0;
|
|
@@ -173,17 +174,17 @@ var ct = {
|
|
|
173
174
|
for (var i = t; i; )
|
|
174
175
|
i._dirty = 1, i = i.parent;
|
|
175
176
|
return t;
|
|
176
|
-
},
|
|
177
|
+
}, as = function(t) {
|
|
177
178
|
for (var e = t.parent; e && e.parent; )
|
|
178
179
|
e._dirty = 1, e.totalDuration(), e = e.parent;
|
|
179
180
|
return t;
|
|
180
181
|
}, wi = function(t, e, i, r) {
|
|
181
182
|
return t._startAt && (q ? t._startAt.revert(je) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
|
|
182
|
-
},
|
|
183
|
+
}, ls = function o(t) {
|
|
183
184
|
return !t || t._ts && o(t.parent);
|
|
184
185
|
}, rr = function(t) {
|
|
185
|
-
return t._repeat ?
|
|
186
|
-
},
|
|
186
|
+
return t._repeat ? ve(t._tTime, t = t.duration() + t._rDelay) * t : 0;
|
|
187
|
+
}, ve = function(t, e) {
|
|
187
188
|
var i = Math.floor(t = H(t / e));
|
|
188
189
|
return t && i === t ? i - 1 : i;
|
|
189
190
|
}, ii = function(t, e) {
|
|
@@ -202,30 +203,30 @@ var ct = {
|
|
|
202
203
|
t._zTime = -F;
|
|
203
204
|
}
|
|
204
205
|
}, At = function(t, e, i, r) {
|
|
205
|
-
return e.parent && Gt(e), e._start = H((zt(i) ? i : i || t !== N ?
|
|
206
|
+
return e.parent && Gt(e), e._start = H((zt(i) ? i : i || t !== N ? mt(t, i, e) : t._time) + e._delay), e._end = H(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), Lr(t, e, "_first", "_last", t._sort ? "_start" : 0), Ti(e) || (t._recent = e), r || $r(t, e), t._ts < 0 && li(t, t._tTime), t;
|
|
206
207
|
}, Nr = function(t, e) {
|
|
207
|
-
return (
|
|
208
|
+
return (_t.ScrollTrigger || $i("scrollTrigger", e)) && _t.ScrollTrigger.create(e, t);
|
|
208
209
|
}, Br = function(t, e, i, r, n) {
|
|
209
210
|
if (Hi(t, e, n), !t._initted)
|
|
210
211
|
return 1;
|
|
211
|
-
if (!i && t._pt && !q && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Rr !==
|
|
212
|
+
if (!i && t._pt && !q && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Rr !== ut.frame)
|
|
212
213
|
return Yt.push(t), t._lazy = [n, r], 1;
|
|
213
|
-
},
|
|
214
|
+
}, hs = function o(t) {
|
|
214
215
|
var e = t.parent;
|
|
215
216
|
return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || o(e));
|
|
216
217
|
}, Ti = function(t) {
|
|
217
218
|
var e = t.data;
|
|
218
219
|
return e === "isFromStart" || e === "isStart";
|
|
219
|
-
},
|
|
220
|
-
var n = t.ratio, s = e < 0 || !e && (!t._start &&
|
|
221
|
-
if (a && t._repeat && (l = Ve(0, t._tDur, e), u =
|
|
220
|
+
}, us = function(t, e, i, r) {
|
|
221
|
+
var n = t.ratio, s = e < 0 || !e && (!t._start && hs(t) && !(!t._initted && Ti(t)) || (t._ts < 0 || t._dp._ts < 0) && !Ti(t)) ? 0 : 1, a = t._rDelay, l = 0, h, u, f;
|
|
222
|
+
if (a && t._repeat && (l = Ve(0, t._tDur, e), u = ve(l, a), t._yoyo && u & 1 && (s = 1 - s), u !== ve(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || q || r || t._zTime === F || !e && t._zTime) {
|
|
222
223
|
if (!t._initted && Br(t, e, r, i, l))
|
|
223
224
|
return;
|
|
224
225
|
for (f = t._zTime, t._zTime = e || (i ? F : 0), i || (i = e && !f), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = l, h = t._pt; h; )
|
|
225
226
|
h.r(s, h.d), h = h._next;
|
|
226
|
-
e < 0 && wi(t, e, i, !0), t._onUpdate && !i &&
|
|
227
|
+
e < 0 && wi(t, e, i, !0), t._onUpdate && !i && ct(t, "onUpdate"), l && t._repeat && !i && t.parent && ct(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Gt(t, 1), !i && !q && (ct(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
|
|
227
228
|
} else t._zTime || (t._zTime = e);
|
|
228
|
-
},
|
|
229
|
+
}, cs = function(t, e, i) {
|
|
229
230
|
var r;
|
|
230
231
|
if (i > e)
|
|
231
232
|
for (r = t._first; r && r._start <= i; ) {
|
|
@@ -239,19 +240,19 @@ var ct = {
|
|
|
239
240
|
return r;
|
|
240
241
|
r = r._prev;
|
|
241
242
|
}
|
|
242
|
-
},
|
|
243
|
+
}, ye = function(t, e, i, r) {
|
|
243
244
|
var n = t._repeat, s = H(e) || 0, a = t._tTime / t._tDur;
|
|
244
245
|
return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : H(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r && li(t, t._tTime = t._tDur * a), t.parent && ai(t), i || ne(t.parent, t), t;
|
|
245
246
|
}, nr = function(t) {
|
|
246
|
-
return t instanceof J ? ne(t) :
|
|
247
|
-
},
|
|
247
|
+
return t instanceof J ? ne(t) : ye(t, t._dur);
|
|
248
|
+
}, fs = {
|
|
248
249
|
_start: 0,
|
|
249
|
-
endTime:
|
|
250
|
-
totalDuration:
|
|
251
|
-
},
|
|
252
|
-
var r = t.labels, n = t._recent ||
|
|
250
|
+
endTime: Ee,
|
|
251
|
+
totalDuration: Ee
|
|
252
|
+
}, mt = function o(t, e, i) {
|
|
253
|
+
var r = t.labels, n = t._recent || fs, s = t.duration() >= vt ? n.endTime(!1) : t._dur, a, l, h;
|
|
253
254
|
return X(e) && (isNaN(e) || e in r) ? (l = e.charAt(0), h = e.substr(-1) === "%", a = e.indexOf("="), l === "<" || l === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (l === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (h ? (a < 0 ? n : i).totalDuration() / 100 : 1)) : a < 0 ? (e in r || (r[e] = s), r[e]) : (l = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), h && i && (l = l / 100 * (Q(i) ? i[0] : i).totalDuration()), a > 1 ? o(t, e.substr(0, a - 1), i) + l : s + l)) : e == null ? s : +e;
|
|
254
|
-
},
|
|
255
|
+
}, De = function(t, e, i) {
|
|
255
256
|
var r = zt(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, l;
|
|
256
257
|
if (r && (s.duration = e[1]), s.parent = i, t) {
|
|
257
258
|
for (a = s, l = i; l && !("immediateRender" in a); )
|
|
@@ -264,31 +265,31 @@ var ct = {
|
|
|
264
265
|
}, Ve = function(t, e, i) {
|
|
265
266
|
return i < t ? t : i > e ? e : i;
|
|
266
267
|
}, K = function(t, e) {
|
|
267
|
-
return !X(t) || !(e =
|
|
268
|
-
},
|
|
268
|
+
return !X(t) || !(e = es.exec(t)) ? "" : e[1];
|
|
269
|
+
}, ds = function(t, e, i) {
|
|
269
270
|
return jt(i, function(r) {
|
|
270
271
|
return Ve(t, e, r);
|
|
271
272
|
});
|
|
272
|
-
}, Pi = [].slice,
|
|
273
|
+
}, Pi = [].slice, Wr = function(t, e) {
|
|
273
274
|
return t && Ot(t) && "length" in t && (!e && !t.length || t.length - 1 in t && Ot(t[0])) && !t.nodeType && t !== St;
|
|
274
|
-
},
|
|
275
|
+
}, _s = function(t, e, i) {
|
|
275
276
|
return i === void 0 && (i = []), t.forEach(function(r) {
|
|
276
277
|
var n;
|
|
277
|
-
return X(r) && !e ||
|
|
278
|
+
return X(r) && !e || Wr(r, 1) ? (n = i).push.apply(n, yt(r)) : i.push(r);
|
|
278
279
|
}) || i;
|
|
279
|
-
},
|
|
280
|
-
return L && !e && L.selector ? L.selector(t) : X(t) && !i && (
|
|
280
|
+
}, yt = function(t, e, i) {
|
|
281
|
+
return L && !e && L.selector ? L.selector(t) : X(t) && !i && (yi || !xe()) ? Pi.call((e || Li).querySelectorAll(t), 0) : Q(t) ? _s(t, i) : Wr(t) ? Pi.call(t, 0) : t ? [t] : [];
|
|
281
282
|
}, Si = function(t) {
|
|
282
|
-
return t =
|
|
283
|
+
return t = yt(t)[0] || ze("Invalid scope") || {}, function(e) {
|
|
283
284
|
var i = t.current || t.nativeElement || t;
|
|
284
|
-
return
|
|
285
|
+
return yt(e, i.querySelectorAll ? i : i === t ? ze("Invalid scope") || Li.createElement("div") : t);
|
|
285
286
|
};
|
|
286
|
-
},
|
|
287
|
+
}, Vr = function(t) {
|
|
287
288
|
return t.sort(function() {
|
|
288
289
|
return 0.5 - Math.random();
|
|
289
290
|
});
|
|
290
291
|
}, Ur = function(t) {
|
|
291
|
-
if (
|
|
292
|
+
if (W(t))
|
|
292
293
|
return t;
|
|
293
294
|
var e = Ot(t) ? t : {
|
|
294
295
|
each: t
|
|
@@ -298,16 +299,16 @@ var ct = {
|
|
|
298
299
|
edges: 0.5,
|
|
299
300
|
end: 1
|
|
300
301
|
}[r] || 0 : !a && l && (u = r[0], f = r[1]), function(d, _, p) {
|
|
301
|
-
var c = (p || e).length, g = s[c], m, b, v,
|
|
302
|
+
var c = (p || e).length, g = s[c], m, b, v, x, y, T, P, S, w;
|
|
302
303
|
if (!g) {
|
|
303
|
-
if (w = e.grid === "auto" ? 0 : (e.grid || [1,
|
|
304
|
-
for (P = -
|
|
304
|
+
if (w = e.grid === "auto" ? 0 : (e.grid || [1, vt])[1], !w) {
|
|
305
|
+
for (P = -vt; P < (P = p[w++].getBoundingClientRect().left) && w < c; )
|
|
305
306
|
;
|
|
306
307
|
w < c && w--;
|
|
307
308
|
}
|
|
308
|
-
for (g = s[c] = [], m = l ? Math.min(w, c) * u - 0.5 : r % w, b = w ===
|
|
309
|
-
v = T % w - m,
|
|
310
|
-
r === "random" &&
|
|
309
|
+
for (g = s[c] = [], m = l ? Math.min(w, c) * u - 0.5 : r % w, b = w === vt ? 0 : l ? c * f / w - 0.5 : r / w | 0, P = 0, S = vt, T = 0; T < c; T++)
|
|
310
|
+
v = T % w - m, x = b - (T / w | 0), g[T] = y = h ? Math.abs(h === "y" ? x : v) : Pr(v * v + x * x), y > P && (P = y), y < S && (S = y);
|
|
311
|
+
r === "random" && Vr(g), g.max = P - S, g.min = S, g.v = c = (parseFloat(e.amount) || parseFloat(e.each) * (w > c ? c - 1 : h ? h === "y" ? c / w : w : Math.max(w, c / w)) || 0) * (r === "edges" ? -1 : 1), g.b = c < 0 ? n - c : n, g.u = K(e.amount || e.each) || 0, i = i && c < 0 ? Jr(i) : i;
|
|
311
312
|
}
|
|
312
313
|
return c = (g[d] - g.min) / g.max || 0, H(g.b + (i ? i(c) : c) * g.v) + g.u;
|
|
313
314
|
};
|
|
@@ -319,10 +320,10 @@ var ct = {
|
|
|
319
320
|
};
|
|
320
321
|
}, Hr = function(t, e) {
|
|
321
322
|
var i = Q(t), r, n;
|
|
322
|
-
return !i && Ot(t) && (r = i = t.radius ||
|
|
323
|
+
return !i && Ot(t) && (r = i = t.radius || vt, t.values ? (t = yt(t.values), (n = !zt(t[0])) && (r *= r)) : t = Ai(t.increment)), jt(e, i ? W(t) ? function(s) {
|
|
323
324
|
return n = t(s), Math.abs(n - s) <= r ? n : s;
|
|
324
325
|
} : function(s) {
|
|
325
|
-
for (var a = parseFloat(n ? s.x : s), l = parseFloat(n ? s.y : 0), h =
|
|
326
|
+
for (var a = parseFloat(n ? s.x : s), l = parseFloat(n ? s.y : 0), h = vt, u = 0, f = t.length, d, _; f--; )
|
|
326
327
|
n ? (d = t[f].x - a, _ = t[f].y - l, d = d * d + _ * _) : d = Math.abs(t[f] - a), d < h && (h = d, u = f);
|
|
327
328
|
return u = !r || h <= r ? t[u] : s, n || u === s || zt(s) ? u : u + K(s);
|
|
328
329
|
} : Ai(t));
|
|
@@ -330,7 +331,7 @@ var ct = {
|
|
|
330
331
|
return jt(Q(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
|
|
331
332
|
return Q(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
|
|
332
333
|
});
|
|
333
|
-
},
|
|
334
|
+
}, ps = function() {
|
|
334
335
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
335
336
|
e[i] = arguments[i];
|
|
336
337
|
return function(r) {
|
|
@@ -338,22 +339,22 @@ var ct = {
|
|
|
338
339
|
return s(n);
|
|
339
340
|
}, r);
|
|
340
341
|
};
|
|
341
|
-
},
|
|
342
|
+
}, gs = function(t, e) {
|
|
342
343
|
return function(i) {
|
|
343
344
|
return t(parseFloat(i)) + (e || K(i));
|
|
344
345
|
};
|
|
345
|
-
},
|
|
346
|
+
}, bs = function(t, e, i) {
|
|
346
347
|
return qr(t, e, 0, 1, i);
|
|
347
348
|
}, Xr = function(t, e, i) {
|
|
348
349
|
return jt(i, function(r) {
|
|
349
350
|
return t[~~e(r)];
|
|
350
351
|
});
|
|
351
|
-
},
|
|
352
|
+
}, ms = function o(t, e, i) {
|
|
352
353
|
var r = e - t;
|
|
353
354
|
return Q(t) ? Xr(t, o(0, t.length), e) : jt(i, function(n) {
|
|
354
355
|
return (r + (n - t) % r) % r + t;
|
|
355
356
|
});
|
|
356
|
-
},
|
|
357
|
+
}, vs = function o(t, e, i) {
|
|
357
358
|
var r = e - t, n = r * 2;
|
|
358
359
|
return Q(t) ? Xr(t, o(0, t.length - 1), e) : jt(i, function(s) {
|
|
359
360
|
return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
|
|
@@ -367,7 +368,7 @@ var ct = {
|
|
|
367
368
|
return jt(n, function(l) {
|
|
368
369
|
return i + ((l - t) / s * a || 0);
|
|
369
370
|
});
|
|
370
|
-
},
|
|
371
|
+
}, ys = function o(t, e, i, r) {
|
|
371
372
|
var n = isNaN(t + e) ? 0 : function(_) {
|
|
372
373
|
return (1 - _) * t + _ * e;
|
|
373
374
|
};
|
|
@@ -387,7 +388,7 @@ var ct = {
|
|
|
387
388
|
var c = Math.min(d, ~~p);
|
|
388
389
|
return u[c](p - c);
|
|
389
390
|
}, i = e;
|
|
390
|
-
} else r || (t =
|
|
391
|
+
} else r || (t = me(Q(t) ? [] : {}, t));
|
|
391
392
|
if (!u) {
|
|
392
393
|
for (l in e)
|
|
393
394
|
Ui.call(a, t, l, "get", e[l]);
|
|
@@ -398,26 +399,26 @@ var ct = {
|
|
|
398
399
|
}
|
|
399
400
|
return jt(i, n);
|
|
400
401
|
}, sr = function(t, e, i) {
|
|
401
|
-
var r = t.labels, n =
|
|
402
|
+
var r = t.labels, n = vt, s, a, l;
|
|
402
403
|
for (s in r)
|
|
403
404
|
a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (l = s, n = a);
|
|
404
405
|
return l;
|
|
405
|
-
},
|
|
406
|
+
}, ct = function(t, e, i) {
|
|
406
407
|
var r = t.vars, n = r[e], s = L, a = t._ctx, l, h, u;
|
|
407
408
|
if (n)
|
|
408
409
|
return l = r[e + "Params"], h = r.callbackScope || t, i && Yt.length && ti(), a && (L = a), u = l ? n.apply(h, l) : n.call(h), L = s, u;
|
|
409
|
-
},
|
|
410
|
-
return Gt(t), t.scrollTrigger && t.scrollTrigger.kill(!!q), t.progress() < 1 &&
|
|
411
|
-
},
|
|
410
|
+
}, Ce = function(t) {
|
|
411
|
+
return Gt(t), t.scrollTrigger && t.scrollTrigger.kill(!!q), t.progress() < 1 && ct(t, "onInterrupt"), t;
|
|
412
|
+
}, fe, Gr = [], Kr = function(t) {
|
|
412
413
|
if (t)
|
|
413
414
|
if (t = !t.name && t.default || t, Fi() || t.headless) {
|
|
414
|
-
var e = t.name, i =
|
|
415
|
+
var e = t.name, i = W(t), r = e && !i && t.init ? function() {
|
|
415
416
|
this._props = [];
|
|
416
417
|
} : t, n = {
|
|
417
|
-
init:
|
|
418
|
+
init: Ee,
|
|
418
419
|
render: qi,
|
|
419
420
|
add: Ui,
|
|
420
|
-
kill:
|
|
421
|
+
kill: Fs,
|
|
421
422
|
modifier: Is,
|
|
422
423
|
rawVars: 0
|
|
423
424
|
}, s = {
|
|
@@ -428,58 +429,58 @@ var ct = {
|
|
|
428
429
|
register: 0
|
|
429
430
|
};
|
|
430
431
|
if (xe(), t !== r) {
|
|
431
|
-
if (
|
|
432
|
+
if (ht[e])
|
|
432
433
|
return;
|
|
433
|
-
|
|
434
|
+
pt(r, pt(ei(t, n), s)), me(r.prototype, me(n, ei(t, s))), ht[r.prop = e] = r, t.targetTest && (Qe.push(r), Ni[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
|
|
434
435
|
}
|
|
435
436
|
Mr(e, r), t.register && t.register(ot, r, nt);
|
|
436
437
|
} else
|
|
437
438
|
Gr.push(t);
|
|
438
|
-
},
|
|
439
|
-
aqua: [0,
|
|
440
|
-
lime: [0,
|
|
439
|
+
}, I = 255, ke = {
|
|
440
|
+
aqua: [0, I, I],
|
|
441
|
+
lime: [0, I, 0],
|
|
441
442
|
silver: [192, 192, 192],
|
|
442
443
|
black: [0, 0, 0],
|
|
443
444
|
maroon: [128, 0, 0],
|
|
444
445
|
teal: [0, 128, 128],
|
|
445
|
-
blue: [0, 0,
|
|
446
|
+
blue: [0, 0, I],
|
|
446
447
|
navy: [0, 0, 128],
|
|
447
|
-
white: [
|
|
448
|
+
white: [I, I, I],
|
|
448
449
|
olive: [128, 128, 0],
|
|
449
|
-
yellow: [
|
|
450
|
-
orange: [
|
|
450
|
+
yellow: [I, I, 0],
|
|
451
|
+
orange: [I, 165, 0],
|
|
451
452
|
gray: [128, 128, 128],
|
|
452
453
|
purple: [128, 0, 128],
|
|
453
454
|
green: [0, 128, 0],
|
|
454
|
-
red: [
|
|
455
|
-
pink: [
|
|
456
|
-
cyan: [0,
|
|
457
|
-
transparent: [
|
|
455
|
+
red: [I, 0, 0],
|
|
456
|
+
pink: [I, 192, 203],
|
|
457
|
+
cyan: [0, I, I],
|
|
458
|
+
transparent: [I, I, I, 0]
|
|
458
459
|
}, ci = function(t, e, i) {
|
|
459
|
-
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) *
|
|
460
|
+
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * I + 0.5 | 0;
|
|
460
461
|
}, jr = function(t, e, i) {
|
|
461
|
-
var r = t ? zt(t) ? [t >> 16, t >> 8 &
|
|
462
|
+
var r = t ? zt(t) ? [t >> 16, t >> 8 & I, t & I] : 0 : ke.black, n, s, a, l, h, u, f, d, _, p;
|
|
462
463
|
if (!r) {
|
|
463
|
-
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)),
|
|
464
|
-
r =
|
|
464
|
+
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ke[t])
|
|
465
|
+
r = ke[t];
|
|
465
466
|
else if (t.charAt(0) === "#") {
|
|
466
467
|
if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), a = t.charAt(3), t = "#" + n + n + s + s + a + a + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
|
|
467
|
-
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 &
|
|
468
|
-
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 &
|
|
468
|
+
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & I, r & I, parseInt(t.substr(7), 16) / 255];
|
|
469
|
+
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & I, t & I];
|
|
469
470
|
} else if (t.substr(0, 3) === "hsl") {
|
|
470
471
|
if (r = p = t.match(vi), !e)
|
|
471
472
|
l = +r[0] % 360 / 360, h = +r[1] / 100, u = +r[2] / 100, s = u <= 0.5 ? u * (h + 1) : u + h - u * h, n = u * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = ci(l + 1 / 3, n, s), r[1] = ci(l, n, s), r[2] = ci(l - 1 / 3, n, s);
|
|
472
473
|
else if (~t.indexOf("="))
|
|
473
474
|
return r = t.match(Ar), i && r.length < 4 && (r[3] = 1), r;
|
|
474
475
|
} else
|
|
475
|
-
r = t.match(vi) ||
|
|
476
|
+
r = t.match(vi) || ke.transparent;
|
|
476
477
|
r = r.map(Number);
|
|
477
478
|
}
|
|
478
|
-
return e && !p && (n = r[0] /
|
|
479
|
+
return e && !p && (n = r[0] / I, s = r[1] / I, a = r[2] / I, f = Math.max(n, s, a), d = Math.min(n, s, a), u = (f + d) / 2, f === d ? l = h = 0 : (_ = f - d, h = u > 0.5 ? _ / (2 - f - d) : _ / (f + d), l = f === n ? (s - a) / _ + (s < a ? 6 : 0) : f === s ? (a - n) / _ + 2 : (n - s) / _ + 4, l *= 60), r[0] = ~~(l + 0.5), r[1] = ~~(h * 100 + 0.5), r[2] = ~~(u * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
|
|
479
480
|
}, Qr = function(t) {
|
|
480
481
|
var e = [], i = [], r = -1;
|
|
481
482
|
return t.split(Xt).forEach(function(n) {
|
|
482
|
-
var s = n.match(
|
|
483
|
+
var s = n.match(ce) || [];
|
|
483
484
|
e.push.apply(e, s), i.push(r += s.length + 1);
|
|
484
485
|
}), e.c = i, e;
|
|
485
486
|
}, or = function(t, e, i) {
|
|
@@ -489,7 +490,7 @@ var ct = {
|
|
|
489
490
|
if (n = n.map(function(d) {
|
|
490
491
|
return (d = jr(d, e, 1)) && s + (e ? d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : d.join(",")) + ")";
|
|
491
492
|
}), i && (u = Qr(t), l = i.c, l.join(r) !== u.c.join(r)))
|
|
492
|
-
for (h = t.replace(Xt, "1").split(
|
|
493
|
+
for (h = t.replace(Xt, "1").split(ce), f = h.length - 1; a < f; a++)
|
|
493
494
|
r += h[a] + (~l.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (u.length ? u : n.length ? n : i).shift());
|
|
494
495
|
if (!h)
|
|
495
496
|
for (h = t.split(Xt), f = h.length - 1; a < f; a++)
|
|
@@ -497,19 +498,19 @@ var ct = {
|
|
|
497
498
|
return r + h[f];
|
|
498
499
|
}, Xt = function() {
|
|
499
500
|
var o = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
|
|
500
|
-
for (t in
|
|
501
|
+
for (t in ke)
|
|
501
502
|
o += "|" + t + "\\b";
|
|
502
503
|
return new RegExp(o + ")", "gi");
|
|
503
504
|
}(), xs = /hsl[a]?\(/, Zr = function(t) {
|
|
504
505
|
var e = t.join(" "), i;
|
|
505
506
|
if (Xt.lastIndex = 0, Xt.test(e))
|
|
506
507
|
return i = xs.test(e), t[1] = or(t[1], i), t[0] = or(t[0], i, Qr(t[1])), !0;
|
|
507
|
-
},
|
|
508
|
+
}, Fe, ut = function() {
|
|
508
509
|
var o = Date.now, t = 500, e = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [], l, h, u, f, d, _, p = function c(g) {
|
|
509
|
-
var m = o() - r, b = g === !0, v,
|
|
510
|
-
if ((m > t || m < 0) && (i += m - e), r += m,
|
|
510
|
+
var m = o() - r, b = g === !0, v, x, y, T;
|
|
511
|
+
if ((m > t || m < 0) && (i += m - e), r += m, y = r - i, v = y - s, (v > 0 || b) && (T = ++f.frame, d = y - f.time * 1e3, f.time = y = y / 1e3, s += v + (v >= n ? 4 : n - v), x = 1), b || (l = h(c)), x)
|
|
511
512
|
for (_ = 0; _ < a.length; _++)
|
|
512
|
-
a[_](
|
|
513
|
+
a[_](y, d, T, g);
|
|
513
514
|
};
|
|
514
515
|
return f = {
|
|
515
516
|
time: 0,
|
|
@@ -521,12 +522,12 @@ var ct = {
|
|
|
521
522
|
return d / (1e3 / (g || 60));
|
|
522
523
|
},
|
|
523
524
|
wake: function() {
|
|
524
|
-
Or && (!
|
|
525
|
+
Or && (!yi && Fi() && (St = yi = window, Li = St.document || {}, _t.gsap = ot, (St.gsapVersions || (St.gsapVersions = [])).push(ot.version), Dr(Je || St.GreenSockGlobals || !St.gsap && St || {}), Gr.forEach(Kr)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && f.sleep(), h = u || function(g) {
|
|
525
526
|
return setTimeout(g, s - f.time * 1e3 + 1 | 0);
|
|
526
|
-
},
|
|
527
|
+
}, Fe = 1, p(2));
|
|
527
528
|
},
|
|
528
529
|
sleep: function() {
|
|
529
|
-
(u ? cancelAnimationFrame : clearTimeout)(l),
|
|
530
|
+
(u ? cancelAnimationFrame : clearTimeout)(l), Fe = 0, h = Ee;
|
|
530
531
|
},
|
|
531
532
|
lagSmoothing: function(g, m) {
|
|
532
533
|
t = g || 1 / 0, e = Math.min(m || 33, t);
|
|
@@ -535,8 +536,8 @@ var ct = {
|
|
|
535
536
|
n = 1e3 / (g || 240), s = f.time * 1e3 + n;
|
|
536
537
|
},
|
|
537
538
|
add: function(g, m, b) {
|
|
538
|
-
var v = m ? function(
|
|
539
|
-
g(
|
|
539
|
+
var v = m ? function(x, y, T, P) {
|
|
540
|
+
g(x, y, T, P), f.remove(v);
|
|
540
541
|
} : g;
|
|
541
542
|
return f.remove(g), a[b ? "unshift" : "push"](v), xe(), v;
|
|
542
543
|
},
|
|
@@ -546,17 +547,17 @@ var ct = {
|
|
|
546
547
|
_listeners: a
|
|
547
548
|
}, f;
|
|
548
549
|
}(), xe = function() {
|
|
549
|
-
return !
|
|
550
|
-
}, D = {},
|
|
550
|
+
return !Fe && ut.wake();
|
|
551
|
+
}, D = {}, ws = /^[\d.\-M][\d.\-,\s]/, Ts = /["']/g, Ps = function(t) {
|
|
551
552
|
for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, l, h; n < s; n++)
|
|
552
|
-
l = i[n], a = n !== s - 1 ? l.lastIndexOf(",") : l.length, h = l.substr(0, a), e[r] = isNaN(h) ? h.replace(
|
|
553
|
+
l = i[n], a = n !== s - 1 ? l.lastIndexOf(",") : l.length, h = l.substr(0, a), e[r] = isNaN(h) ? h.replace(Ts, "").trim() : +h, r = l.substr(a + 1).trim();
|
|
553
554
|
return e;
|
|
554
|
-
},
|
|
555
|
+
}, Ss = function(t) {
|
|
555
556
|
var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
|
|
556
557
|
return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
|
|
557
|
-
},
|
|
558
|
+
}, As = function(t) {
|
|
558
559
|
var e = (t + "").split("("), i = D[e[0]];
|
|
559
|
-
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [
|
|
560
|
+
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Ps(e[1])] : Ss(t).split(",").map(Ir)) : D._CE && ws.test(t) ? D._CE("", t) : i;
|
|
560
561
|
}, Jr = function(t) {
|
|
561
562
|
return function(e) {
|
|
562
563
|
return 1 - t(1 - e);
|
|
@@ -565,7 +566,7 @@ var ct = {
|
|
|
565
566
|
for (var i = t._first, r; i; )
|
|
566
567
|
i instanceof J ? o(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? o(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
|
|
567
568
|
}, se = function(t, e) {
|
|
568
|
-
return t && (
|
|
569
|
+
return t && (W(t) ? t : D[t] || As(t)) || e;
|
|
569
570
|
}, le = function(t, e, i, r) {
|
|
570
571
|
i === void 0 && (i = function(l) {
|
|
571
572
|
return 1 - e(1 - l);
|
|
@@ -578,7 +579,7 @@ var ct = {
|
|
|
578
579
|
easeInOut: r
|
|
579
580
|
}, s;
|
|
580
581
|
return rt(t, function(a) {
|
|
581
|
-
D[a] =
|
|
582
|
+
D[a] = _t[a] = n, D[s = a.toLowerCase()] = i;
|
|
582
583
|
for (var l in n)
|
|
583
584
|
D[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = D[a + "." + l] = n[l];
|
|
584
585
|
}), n;
|
|
@@ -588,7 +589,7 @@ var ct = {
|
|
|
588
589
|
};
|
|
589
590
|
}, fi = function o(t, e, i) {
|
|
590
591
|
var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / mi * (Math.asin(1 / r) || 0), a = function(u) {
|
|
591
|
-
return u === 1 ? 1 : r * Math.pow(2, -10 * u) *
|
|
592
|
+
return u === 1 ? 1 : r * Math.pow(2, -10 * u) * ts((u - s) * n) + 1;
|
|
592
593
|
}, l = t === "out" ? a : t === "in" ? function(h) {
|
|
593
594
|
return 1 - a(1 - h);
|
|
594
595
|
} : en(a);
|
|
@@ -635,10 +636,10 @@ le("Circ", function(o) {
|
|
|
635
636
|
return -(Pr(1 - o * o) - 1);
|
|
636
637
|
});
|
|
637
638
|
le("Sine", function(o) {
|
|
638
|
-
return o === 1 ? 1 : -
|
|
639
|
+
return o === 1 ? 1 : -Jn(o * Qn) + 1;
|
|
639
640
|
});
|
|
640
641
|
le("Back", di("in"), di("out"), di());
|
|
641
|
-
D.SteppedEase = D.steps =
|
|
642
|
+
D.SteppedEase = D.steps = _t.SteppedEase = {
|
|
642
643
|
config: function(t, e) {
|
|
643
644
|
t === void 0 && (t = 1);
|
|
644
645
|
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - F;
|
|
@@ -647,15 +648,15 @@ D.SteppedEase = D.steps = ft.SteppedEase = {
|
|
|
647
648
|
};
|
|
648
649
|
}
|
|
649
650
|
};
|
|
650
|
-
|
|
651
|
+
be.ease = D["quad.out"];
|
|
651
652
|
rt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(o) {
|
|
652
653
|
return Bi += o + "," + o + "Params,";
|
|
653
654
|
});
|
|
654
655
|
var rn = function(t, e) {
|
|
655
|
-
this.id =
|
|
656
|
-
},
|
|
656
|
+
this.id = Zn++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : zr, this.set = e ? e.getSetter : Xi;
|
|
657
|
+
}, Le = /* @__PURE__ */ function() {
|
|
657
658
|
function o(e) {
|
|
658
|
-
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1,
|
|
659
|
+
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, ye(this, +e.duration, 1, 1), this.data = e.data, L && (this._ctx = L, L.data.push(this)), Fe || ut.wake();
|
|
659
660
|
}
|
|
660
661
|
var t = o.prototype;
|
|
661
662
|
return t.delay = function(i) {
|
|
@@ -663,7 +664,7 @@ var rn = function(t, e) {
|
|
|
663
664
|
}, t.duration = function(i) {
|
|
664
665
|
return arguments.length ? this.totalDuration(this._repeat > 0 ? i + (i + this._rDelay) * this._repeat : i) : this.totalDuration() && this._dur;
|
|
665
666
|
}, t.totalDuration = function(i) {
|
|
666
|
-
return arguments.length ? (this._dirty = 0,
|
|
667
|
+
return arguments.length ? (this._dirty = 0, ye(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
|
|
667
668
|
}, t.totalTime = function(i, r) {
|
|
668
669
|
if (xe(), !arguments.length)
|
|
669
670
|
return this._tTime;
|
|
@@ -673,7 +674,7 @@ var rn = function(t, e) {
|
|
|
673
674
|
n.parent._time !== n._start + (n._ts >= 0 ? n._tTime / n._ts : (n.totalDuration() - n._tTime) / -n._ts) && n.totalTime(n._tTime, !0), n = n.parent;
|
|
674
675
|
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && At(this._dp, this, this._start - this._delay);
|
|
675
676
|
}
|
|
676
|
-
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === F || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i),
|
|
677
|
+
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === F || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), Er(this, i, r)), this;
|
|
677
678
|
}, t.time = function(i, r) {
|
|
678
679
|
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + rr(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
|
|
679
680
|
}, t.totalProgress = function(i, r) {
|
|
@@ -682,14 +683,14 @@ var rn = function(t, e) {
|
|
|
682
683
|
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + rr(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
|
|
683
684
|
}, t.iteration = function(i, r) {
|
|
684
685
|
var n = this.duration() + this._rDelay;
|
|
685
|
-
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ?
|
|
686
|
+
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? ve(this._tTime, n) + 1 : 1;
|
|
686
687
|
}, t.timeScale = function(i, r) {
|
|
687
688
|
if (!arguments.length)
|
|
688
689
|
return this._rts === -F ? 0 : this._rts;
|
|
689
690
|
if (this._rts === i)
|
|
690
691
|
return this;
|
|
691
692
|
var n = this.parent && this._ts ? ii(this.parent._time, this) : this._tTime;
|
|
692
|
-
return this._rts = +i || 0, this._ts = this._ps || i === -F ? 0 : this._rts, this.totalTime(Ve(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), ai(this),
|
|
693
|
+
return this._rts = +i || 0, this._ts = this._ps || i === -F ? 0 : this._rts, this.totalTime(Ve(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), ai(this), as(this);
|
|
693
694
|
}, t.paused = function(i) {
|
|
694
695
|
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (xe(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== F && (this._tTime -= F)))), this) : this._ps;
|
|
695
696
|
}, t.startTime = function(i) {
|
|
@@ -705,9 +706,9 @@ var rn = function(t, e) {
|
|
|
705
706
|
var r = this.parent || this._dp;
|
|
706
707
|
return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? ii(r.rawTime(i), this) : this._tTime : this._tTime;
|
|
707
708
|
}, t.revert = function(i) {
|
|
708
|
-
i === void 0 && (i =
|
|
709
|
+
i === void 0 && (i = rs);
|
|
709
710
|
var r = q;
|
|
710
|
-
return q = i,
|
|
711
|
+
return q = i, Vi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), q = r, this;
|
|
711
712
|
}, t.globalTime = function(i) {
|
|
712
713
|
for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
|
|
713
714
|
n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
|
|
@@ -723,7 +724,7 @@ var rn = function(t, e) {
|
|
|
723
724
|
}, t.yoyo = function(i) {
|
|
724
725
|
return arguments.length ? (this._yoyo = i, this) : this._yoyo;
|
|
725
726
|
}, t.seek = function(i, r) {
|
|
726
|
-
return this.totalTime(
|
|
727
|
+
return this.totalTime(mt(this, i), it(r));
|
|
727
728
|
}, t.restart = function(i, r) {
|
|
728
729
|
return this.play().totalTime(i ? -this._delay : 0, it(r)), this._dur || (this._zTime = -F), this;
|
|
729
730
|
}, t.play = function(i, r) {
|
|
@@ -747,17 +748,17 @@ var rn = function(t, e) {
|
|
|
747
748
|
}, t.then = function(i) {
|
|
748
749
|
var r = this;
|
|
749
750
|
return new Promise(function(n) {
|
|
750
|
-
var s =
|
|
751
|
+
var s = W(i) ? i : Fr, a = function() {
|
|
751
752
|
var h = r.then;
|
|
752
|
-
r.then = null,
|
|
753
|
+
r.then = null, W(s) && (s = s(r)) && (s.then || s === r) && (r.then = h), n(s), r.then = h;
|
|
753
754
|
};
|
|
754
755
|
r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? a() : r._prom = a;
|
|
755
756
|
});
|
|
756
757
|
}, t.kill = function() {
|
|
757
|
-
|
|
758
|
+
Ce(this);
|
|
758
759
|
}, o;
|
|
759
760
|
}();
|
|
760
|
-
|
|
761
|
+
pt(Le.prototype, {
|
|
761
762
|
_time: 0,
|
|
762
763
|
_start: 0,
|
|
763
764
|
_end: 0,
|
|
@@ -785,37 +786,37 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
785
786
|
}
|
|
786
787
|
var e = t.prototype;
|
|
787
788
|
return e.to = function(r, n, s) {
|
|
788
|
-
return
|
|
789
|
+
return De(0, arguments, this), this;
|
|
789
790
|
}, e.from = function(r, n, s) {
|
|
790
|
-
return
|
|
791
|
+
return De(1, arguments, this), this;
|
|
791
792
|
}, e.fromTo = function(r, n, s, a) {
|
|
792
|
-
return
|
|
793
|
+
return De(2, arguments, this), this;
|
|
793
794
|
}, e.set = function(r, n, s) {
|
|
794
|
-
return n.duration = 0, n.parent = this,
|
|
795
|
+
return n.duration = 0, n.parent = this, Oe(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new U(r, n, mt(this, s), 1), this;
|
|
795
796
|
}, e.call = function(r, n, s) {
|
|
796
797
|
return At(this, U.delayedCall(0, r, n), s);
|
|
797
798
|
}, e.staggerTo = function(r, n, s, a, l, h, u) {
|
|
798
|
-
return s.duration = n, s.stagger = s.stagger || a, s.onComplete = h, s.onCompleteParams = u, s.parent = this, new U(r, s,
|
|
799
|
+
return s.duration = n, s.stagger = s.stagger || a, s.onComplete = h, s.onCompleteParams = u, s.parent = this, new U(r, s, mt(this, l)), this;
|
|
799
800
|
}, e.staggerFrom = function(r, n, s, a, l, h, u) {
|
|
800
|
-
return s.runBackwards = 1,
|
|
801
|
+
return s.runBackwards = 1, Oe(s).immediateRender = it(s.immediateRender), this.staggerTo(r, n, s, a, l, h, u);
|
|
801
802
|
}, e.staggerFromTo = function(r, n, s, a, l, h, u, f) {
|
|
802
|
-
return a.startAt = s,
|
|
803
|
+
return a.startAt = s, Oe(a).immediateRender = it(a.immediateRender), this.staggerTo(r, n, a, l, h, u, f);
|
|
803
804
|
}, e.render = function(r, n, s) {
|
|
804
|
-
var a = this._time, l = this._dirty ? this.totalDuration() : this._tDur, h = this._dur, u = r <= 0 ? 0 : H(r), f = this._zTime < 0 != r < 0 && (this._initted || !h), d, _, p, c, g, m, b, v,
|
|
805
|
+
var a = this._time, l = this._dirty ? this.totalDuration() : this._tDur, h = this._dur, u = r <= 0 ? 0 : H(r), f = this._zTime < 0 != r < 0 && (this._initted || !h), d, _, p, c, g, m, b, v, x, y, T, P;
|
|
805
806
|
if (this !== N && u > l && r >= 0 && (u = l), u !== this._tTime || s || f) {
|
|
806
|
-
if (a !== this._time && h && (u += this._time - a, r += this._time - a), d = u,
|
|
807
|
+
if (a !== this._time && h && (u += this._time - a, r += this._time - a), d = u, x = this._start, v = this._ts, m = !v, f && (h || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
|
|
807
808
|
if (T = this._yoyo, g = h + this._rDelay, this._repeat < -1 && r < 0)
|
|
808
809
|
return this.totalTime(g * 100 + r, n, s);
|
|
809
|
-
if (d = H(u % g), u === l ? (c = this._repeat, d = h) : (
|
|
810
|
-
var S = T &&
|
|
811
|
-
if (c <
|
|
810
|
+
if (d = H(u % g), u === l ? (c = this._repeat, d = h) : (y = H(u / g), c = ~~y, c && c === y && (d = h, c--), d > h && (d = h)), y = ve(this._tTime, g), !a && this._tTime && y !== c && this._tTime - y * g - this._dur <= 0 && (y = c), T && c & 1 && (d = h - d, P = 1), c !== y && !this._lock) {
|
|
811
|
+
var S = T && y & 1, w = S === (T && c & 1);
|
|
812
|
+
if (c < y && (S = !S), a = S ? 0 : u % h ? h : u, this._lock = 1, this.render(a || (P ? 0 : H(c * g)), n, !h)._lock = 0, this._tTime = u, !n && this.parent && ct(this, "onRepeat"), this.vars.repeatRefresh && !P && (this.invalidate()._lock = 1), a && a !== this._time || m !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
812
813
|
return this;
|
|
813
814
|
if (h = this._dur, l = this._tDur, w && (this._lock = 2, a = S ? h : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !P && this.invalidate()), this._lock = 0, !this._ts && !m)
|
|
814
815
|
return this;
|
|
815
816
|
tn(this, P);
|
|
816
817
|
}
|
|
817
818
|
}
|
|
818
|
-
if (this._hasPause && !this._forcing && this._lock < 2 && (b =
|
|
819
|
+
if (this._hasPause && !this._forcing && this._lock < 2 && (b = cs(this, H(a), H(d)), b && (u -= d - (d = b._start))), this._tTime = u, this._time = d, this._act = !v, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && u && !n && !y && (ct(this, "onStart"), this._tTime !== u))
|
|
819
820
|
return this;
|
|
820
821
|
if (d >= a && r >= 0)
|
|
821
822
|
for (_ = this._first; _; ) {
|
|
@@ -835,7 +836,7 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
835
836
|
if (p = _._prev, (_._act || C <= _._end) && _._ts && b !== _) {
|
|
836
837
|
if (_.parent !== this)
|
|
837
838
|
return this.render(r, n, s);
|
|
838
|
-
if (_.render(_._ts > 0 ? (C - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (C - _._start) * _._ts, n, s || q &&
|
|
839
|
+
if (_.render(_._ts > 0 ? (C - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (C - _._start) * _._ts, n, s || q && Vi(_)), d !== this._time || !this._ts && !m) {
|
|
839
840
|
b = 0, p && (u += this._zTime = C ? -F : F);
|
|
840
841
|
break;
|
|
841
842
|
}
|
|
@@ -844,27 +845,27 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
844
845
|
}
|
|
845
846
|
}
|
|
846
847
|
if (b && !n && (this.pause(), b.render(d >= a ? 0 : -F)._zTime = d >= a ? 1 : -1, this._ts))
|
|
847
|
-
return this._start =
|
|
848
|
-
this._onUpdate && !n &&
|
|
848
|
+
return this._start = x, ai(this), this.render(r, n, s);
|
|
849
|
+
this._onUpdate && !n && ct(this, "onUpdate", !0), (u === l && this._tTime >= this.totalDuration() || !u && a) && (x === this._start || Math.abs(v) !== Math.abs(this._ts)) && (this._lock || ((r || !h) && (u === l && this._ts > 0 || !u && this._ts < 0) && Gt(this, 1), !n && !(r < 0 && !a) && (u || a || !l) && (ct(this, u === l && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(u < l && this.timeScale() > 0) && this._prom())));
|
|
849
850
|
}
|
|
850
851
|
return this;
|
|
851
852
|
}, e.add = function(r, n) {
|
|
852
853
|
var s = this;
|
|
853
|
-
if (zt(n) || (n =
|
|
854
|
+
if (zt(n) || (n = mt(this, n, r)), !(r instanceof Le)) {
|
|
854
855
|
if (Q(r))
|
|
855
856
|
return r.forEach(function(a) {
|
|
856
857
|
return s.add(a, n);
|
|
857
858
|
}), this;
|
|
858
859
|
if (X(r))
|
|
859
860
|
return this.addLabel(r, n);
|
|
860
|
-
if (
|
|
861
|
+
if (W(r))
|
|
861
862
|
r = U.delayedCall(0, r);
|
|
862
863
|
else
|
|
863
864
|
return this;
|
|
864
865
|
}
|
|
865
866
|
return this !== r ? At(this, r, n) : this;
|
|
866
867
|
}, e.getChildren = function(r, n, s, a) {
|
|
867
|
-
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -
|
|
868
|
+
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -vt);
|
|
868
869
|
for (var l = [], h = this._first; h; )
|
|
869
870
|
h._start >= a && (h instanceof U ? n && l.push(h) : (s && l.push(h), r && l.push.apply(l, h.getChildren(!0, n, s)))), h = h._next;
|
|
870
871
|
return l;
|
|
@@ -873,31 +874,31 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
873
874
|
if (n[s].vars.id === r)
|
|
874
875
|
return n[s];
|
|
875
876
|
}, e.remove = function(r) {
|
|
876
|
-
return X(r) ? this.removeLabel(r) :
|
|
877
|
+
return X(r) ? this.removeLabel(r) : W(r) ? this.killTweensOf(r) : (r.parent === this && oi(this, r), r === this._recent && (this._recent = this._last), ne(this));
|
|
877
878
|
}, e.totalTime = function(r, n) {
|
|
878
|
-
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = H(
|
|
879
|
+
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = H(ut.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), o.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
|
|
879
880
|
}, e.addLabel = function(r, n) {
|
|
880
|
-
return this.labels[r] =
|
|
881
|
+
return this.labels[r] = mt(this, n), this;
|
|
881
882
|
}, e.removeLabel = function(r) {
|
|
882
883
|
return delete this.labels[r], this;
|
|
883
884
|
}, e.addPause = function(r, n, s) {
|
|
884
|
-
var a = U.delayedCall(0, n ||
|
|
885
|
-
return a.data = "isPause", this._hasPause = 1, At(this, a,
|
|
885
|
+
var a = U.delayedCall(0, n || Ee, s);
|
|
886
|
+
return a.data = "isPause", this._hasPause = 1, At(this, a, mt(this, r));
|
|
886
887
|
}, e.removePause = function(r) {
|
|
887
888
|
var n = this._first;
|
|
888
|
-
for (r =
|
|
889
|
+
for (r = mt(this, r); n; )
|
|
889
890
|
n._start === r && n.data === "isPause" && Gt(n), n = n._next;
|
|
890
891
|
}, e.killTweensOf = function(r, n, s) {
|
|
891
892
|
for (var a = this.getTweensOf(r, s), l = a.length; l--; )
|
|
892
|
-
|
|
893
|
+
Vt !== a[l] && a[l].kill(r, n);
|
|
893
894
|
return this;
|
|
894
895
|
}, e.getTweensOf = function(r, n) {
|
|
895
|
-
for (var s = [], a =
|
|
896
|
-
l instanceof U ?
|
|
896
|
+
for (var s = [], a = yt(r), l = this._first, h = zt(n), u; l; )
|
|
897
|
+
l instanceof U ? ns(l._targets, a) && (h ? (!Vt || l._initted && l._ts) && l.globalTime(0) <= n && l.globalTime(l.totalDuration()) > n : !n || l.isActive()) && s.push(l) : (u = l.getTweensOf(a, n)).length && s.push.apply(s, u), l = l._next;
|
|
897
898
|
return s;
|
|
898
899
|
}, e.tweenTo = function(r, n) {
|
|
899
900
|
n = n || {};
|
|
900
|
-
var s = this, a =
|
|
901
|
+
var s = this, a = mt(s, r), l = n, h = l.startAt, u = l.onStart, f = l.onStartParams, d = l.immediateRender, _, p = U.to(s, pt({
|
|
901
902
|
ease: n.ease || "none",
|
|
902
903
|
lazy: !1,
|
|
903
904
|
immediateRender: !1,
|
|
@@ -907,24 +908,24 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
907
908
|
onStart: function() {
|
|
908
909
|
if (s.pause(), !_) {
|
|
909
910
|
var g = n.duration || Math.abs((a - (h && "time" in h ? h.time : s._time)) / s.timeScale());
|
|
910
|
-
p._dur !== g &&
|
|
911
|
+
p._dur !== g && ye(p, g, 0, 1).render(p._time, !0, !0), _ = 1;
|
|
911
912
|
}
|
|
912
913
|
u && u.apply(p, f || []);
|
|
913
914
|
}
|
|
914
915
|
}, n));
|
|
915
916
|
return d ? p.render(0) : p;
|
|
916
917
|
}, e.tweenFromTo = function(r, n, s) {
|
|
917
|
-
return this.tweenTo(n,
|
|
918
|
+
return this.tweenTo(n, pt({
|
|
918
919
|
startAt: {
|
|
919
|
-
time:
|
|
920
|
+
time: mt(this, r)
|
|
920
921
|
}
|
|
921
922
|
}, s));
|
|
922
923
|
}, e.recent = function() {
|
|
923
924
|
return this._recent;
|
|
924
925
|
}, e.nextLabel = function(r) {
|
|
925
|
-
return r === void 0 && (r = this._time), sr(this,
|
|
926
|
+
return r === void 0 && (r = this._time), sr(this, mt(this, r));
|
|
926
927
|
}, e.previousLabel = function(r) {
|
|
927
|
-
return r === void 0 && (r = this._time), sr(this,
|
|
928
|
+
return r === void 0 && (r = this._time), sr(this, mt(this, r), 1);
|
|
928
929
|
}, e.currentLabel = function(r) {
|
|
929
930
|
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + F);
|
|
930
931
|
}, e.shiftChildren = function(r, n, s) {
|
|
@@ -946,33 +947,33 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
946
947
|
s = n._next, this.remove(n), n = s;
|
|
947
948
|
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), ne(this);
|
|
948
949
|
}, e.totalDuration = function(r) {
|
|
949
|
-
var n = 0, s = this, a = s._last, l =
|
|
950
|
+
var n = 0, s = this, a = s._last, l = vt, h, u, f;
|
|
950
951
|
if (arguments.length)
|
|
951
952
|
return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
|
|
952
953
|
if (s._dirty) {
|
|
953
954
|
for (f = s.parent; a; )
|
|
954
955
|
h = a._prev, a._dirty && a.totalDuration(), u = a._start, u > l && s._sort && a._ts && !s._lock ? (s._lock = 1, At(s, a, u - a._delay, 1)._lock = 0) : l = u, u < 0 && a._ts && (n -= u, (!f && !s._dp || f && f.smoothChildTiming) && (s._start += u / s._ts, s._time -= u, s._tTime -= u), s.shiftChildren(-u, !1, -1 / 0), l = 0), a._end > n && a._ts && (n = a._end), a = h;
|
|
955
|
-
|
|
956
|
+
ye(s, s === N && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
|
|
956
957
|
}
|
|
957
958
|
return s._tDur;
|
|
958
959
|
}, t.updateRoot = function(r) {
|
|
959
|
-
if (N._ts && (
|
|
960
|
-
er +=
|
|
960
|
+
if (N._ts && (Er(N, ii(r, N)), Rr = ut.frame), ut.frame >= er) {
|
|
961
|
+
er += dt.autoSleep || 120;
|
|
961
962
|
var n = N._first;
|
|
962
|
-
if ((!n || !n._ts) &&
|
|
963
|
+
if ((!n || !n._ts) && dt.autoSleep && ut._listeners.length < 2) {
|
|
963
964
|
for (; n && !n._ts; )
|
|
964
965
|
n = n._next;
|
|
965
|
-
n ||
|
|
966
|
+
n || ut.sleep();
|
|
966
967
|
}
|
|
967
968
|
}
|
|
968
969
|
}, t;
|
|
969
|
-
}(
|
|
970
|
-
|
|
970
|
+
}(Le);
|
|
971
|
+
pt(J.prototype, {
|
|
971
972
|
_lock: 0,
|
|
972
973
|
_hasPause: 0,
|
|
973
974
|
_forcing: 0
|
|
974
975
|
});
|
|
975
|
-
var
|
|
976
|
+
var Cs = function(t, e, i, r, n, s, a) {
|
|
976
977
|
var l = new nt(this._pt, t, e, 0, 1, hn, null, n), h = 0, u = 0, f, d, _, p, c, g, m, b;
|
|
977
978
|
for (l.b = i, l.e = r, i += "", r += "", (m = ~r.indexOf("random(")) && (r = Ie(r)), s && (b = [i, r], s(b, t, e), i = b[0], r = b[1]), d = i.match(hi) || []; f = hi.exec(r); )
|
|
978
979
|
p = f[0], c = r.substring(h, f.index), _ ? _ = (_ + 1) % 5 : c.substr(-5) === "rgba(" && (_ = 1), p !== d[u++] && (g = parseFloat(d[u - 1]) || 0, l._pt = {
|
|
@@ -980,33 +981,33 @@ var As = function(t, e, i, r, n, s, a) {
|
|
|
980
981
|
p: c || u === 1 ? c : ",",
|
|
981
982
|
//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.
|
|
982
983
|
s: g,
|
|
983
|
-
c: p.charAt(1) === "=" ?
|
|
984
|
+
c: p.charAt(1) === "=" ? de(g, p) - g : parseFloat(p) - g,
|
|
984
985
|
m: _ && _ < 4 ? Math.round : 0
|
|
985
986
|
}, h = hi.lastIndex);
|
|
986
987
|
return l.c = h < r.length ? r.substring(h, r.length) : "", l.fp = a, (Cr.test(r) || m) && (l.e = 0), this._pt = l, l;
|
|
987
988
|
}, Ui = function(t, e, i, r, n, s, a, l, h, u) {
|
|
988
|
-
|
|
989
|
-
var f = t[e], d = i !== "get" ? i :
|
|
990
|
-
if (X(r) && (~r.indexOf("random(") && (r = Ie(r)), r.charAt(1) === "=" && (p =
|
|
991
|
-
return !isNaN(d * r) && r !== "" ? (p = new nt(this._pt, t, e, +d || 0, r - (d || 0), typeof f == "boolean" ?
|
|
992
|
-
},
|
|
993
|
-
if (
|
|
994
|
-
return X(t) ?
|
|
989
|
+
W(r) && (r = r(n || 0, t, s));
|
|
990
|
+
var f = t[e], d = i !== "get" ? i : W(f) ? h ? t[e.indexOf("set") || !W(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](h) : t[e]() : f, _ = W(f) ? h ? Rs : an : Yi, p;
|
|
991
|
+
if (X(r) && (~r.indexOf("random(") && (r = Ie(r)), r.charAt(1) === "=" && (p = de(d, r) + (K(d) || 0), (p || p === 0) && (r = p))), !u || d !== r || Ci)
|
|
992
|
+
return !isNaN(d * r) && r !== "" ? (p = new nt(this._pt, t, e, +d || 0, r - (d || 0), typeof f == "boolean" ? Es : ln, 0, _), h && (p.fp = h), a && p.modifier(a, this, t), this._pt = p) : (!f && !(e in t) && $i(e, r), Cs.call(this, t, e, d, r, _, l || dt.stringFilter, h));
|
|
993
|
+
}, ks = function(t, e, i, r, n) {
|
|
994
|
+
if (W(t) && (t = Me(t, n, e, i, r)), !Ot(t) || t.style && t.nodeType || Q(t) || Sr(t))
|
|
995
|
+
return X(t) ? Me(t, n, e, i, r) : t;
|
|
995
996
|
var s = {}, a;
|
|
996
997
|
for (a in t)
|
|
997
|
-
s[a] =
|
|
998
|
+
s[a] = Me(t[a], n, e, i, r);
|
|
998
999
|
return s;
|
|
999
1000
|
}, nn = function(t, e, i, r, n, s) {
|
|
1000
1001
|
var a, l, h, u;
|
|
1001
|
-
if (
|
|
1002
|
+
if (ht[t] && (a = new ht[t]()).init(n, a.rawVars ? e[t] : ks(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = l = new nt(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== fe))
|
|
1002
1003
|
for (h = i._ptLookup[i._targets.indexOf(n)], u = a._props.length; u--; )
|
|
1003
1004
|
h[a._props[u]] = l;
|
|
1004
1005
|
return a;
|
|
1005
|
-
},
|
|
1006
|
-
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, h = r.onUpdate, u = r.runBackwards, f = r.yoyoEase, d = r.keyframes, _ = r.autoRevert, p = t._dur, c = t._startAt, g = t._targets, m = t.parent, b = m && m.data === "nested" ? m.vars.targets : g, v = t._overwrite === "auto" && !
|
|
1007
|
-
if (
|
|
1008
|
-
if (O = g[0] ? re(g[0]).harness : 0, z = O && r[O.prop],
|
|
1009
|
-
if (Gt(t._startAt = U.set(g,
|
|
1006
|
+
}, Vt, Ci, Hi = function o(t, e, i) {
|
|
1007
|
+
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, h = r.onUpdate, u = r.runBackwards, f = r.yoyoEase, d = r.keyframes, _ = r.autoRevert, p = t._dur, c = t._startAt, g = t._targets, m = t.parent, b = m && m.data === "nested" ? m.vars.targets : g, v = t._overwrite === "auto" && !Ei, x = t.timeline, y, T, P, S, w, C, M, O, R, Y, E, z, $;
|
|
1008
|
+
if (x && (!d || !n) && (n = "none"), t._ease = se(n, be.ease), t._yEase = f ? Jr(se(f === !0 ? n : f, be.ease)) : 0, f && t._yoyo && !t._repeat && (f = t._yEase, t._yEase = t._ease, t._ease = f), t._from = !x && !!r.runBackwards, !x || d && !r.stagger) {
|
|
1009
|
+
if (O = g[0] ? re(g[0]).harness : 0, z = O && r[O.prop], y = ei(r, Ni), c && (c._zTime < 0 && c.progress(1), e < 0 && u && a && !_ ? c.render(-1, !0) : c.revert(u && p ? je : is), c._lazy = 0), s) {
|
|
1010
|
+
if (Gt(t._startAt = U.set(g, pt({
|
|
1010
1011
|
data: "isStart",
|
|
1011
1012
|
overwrite: !1,
|
|
1012
1013
|
parent: m,
|
|
@@ -1015,7 +1016,7 @@ var As = function(t, e, i, r, n, s, a) {
|
|
|
1015
1016
|
startAt: null,
|
|
1016
1017
|
delay: 0,
|
|
1017
1018
|
onUpdate: h && function() {
|
|
1018
|
-
return
|
|
1019
|
+
return ct(t, "onUpdate");
|
|
1019
1020
|
},
|
|
1020
1021
|
stagger: 0
|
|
1021
1022
|
}, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (q || !a && !_) && t._startAt.revert(je), a && p && e <= 0 && i <= 0) {
|
|
@@ -1023,7 +1024,7 @@ var As = function(t, e, i, r, n, s, a) {
|
|
|
1023
1024
|
return;
|
|
1024
1025
|
}
|
|
1025
1026
|
} else if (u && p && !c) {
|
|
1026
|
-
if (e && (a = !1), P =
|
|
1027
|
+
if (e && (a = !1), P = pt({
|
|
1027
1028
|
overwrite: !1,
|
|
1028
1029
|
data: "isFromStart",
|
|
1029
1030
|
//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.
|
|
@@ -1033,23 +1034,23 @@ var As = function(t, e, i, r, n, s, a) {
|
|
|
1033
1034
|
stagger: 0,
|
|
1034
1035
|
parent: m
|
|
1035
1036
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1036
|
-
},
|
|
1037
|
+
}, y), z && (P[O.prop] = z), Gt(t._startAt = U.set(g, P)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (q ? t._startAt.revert(je) : t._startAt.render(-1, !0)), t._zTime = e, !a)
|
|
1037
1038
|
o(t._startAt, F, F);
|
|
1038
1039
|
else if (!e)
|
|
1039
1040
|
return;
|
|
1040
1041
|
}
|
|
1041
1042
|
for (t._pt = t._ptCache = 0, l = p && it(l) || l && !p, T = 0; T < g.length; T++) {
|
|
1042
|
-
if (w = g[T], M = w._gsap ||
|
|
1043
|
+
if (w = g[T], M = w._gsap || Wi(g)[T]._gsap, t._ptLookup[T] = Y = {}, xi[M.id] && Yt.length && ti(), E = b === g ? T : b.indexOf(w), O && (R = new O()).init(w, z || y, t, E, b) !== !1 && (t._pt = S = new nt(t._pt, w, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(G) {
|
|
1043
1044
|
Y[G] = S;
|
|
1044
1045
|
}), R.priority && (C = 1)), !O || z)
|
|
1045
|
-
for (P in
|
|
1046
|
-
|
|
1047
|
-
t._op && t._op[T] && t.kill(w, t._op[T]), v && t._pt && (
|
|
1046
|
+
for (P in y)
|
|
1047
|
+
ht[P] && (R = nn(P, y, t, E, w, b)) ? R.priority && (C = 1) : Y[P] = S = Ui.call(t, w, P, "get", y[P], E, b, 0, r.stringFilter);
|
|
1048
|
+
t._op && t._op[T] && t.kill(w, t._op[T]), v && t._pt && (Vt = t, N.killTweensOf(w, Y, t.globalTime(e)), $ = !t.parent, Vt = 0), t._pt && l && (xi[M.id] = 1);
|
|
1048
1049
|
}
|
|
1049
1050
|
C && un(t), t._onInit && t._onInit(t);
|
|
1050
1051
|
}
|
|
1051
|
-
t._onUpdate = h, t._initted = (!t._op || t._pt) && !$, d && e <= 0 &&
|
|
1052
|
-
},
|
|
1052
|
+
t._onUpdate = h, t._initted = (!t._op || t._pt) && !$, d && e <= 0 && x.render(vt, !0, !0);
|
|
1053
|
+
}, Os = function(t, e, i, r, n, s, a, l) {
|
|
1053
1054
|
var h = (t._pt && t._ptCache || (t._ptCache = {}))[e], u, f, d, _;
|
|
1054
1055
|
if (!h)
|
|
1055
1056
|
for (h = t._ptCache[e] = [], d = t._ptLookup, _ = t._targets.length; _--; ) {
|
|
@@ -1057,22 +1058,22 @@ var As = function(t, e, i, r, n, s, a) {
|
|
|
1057
1058
|
for (u = u.d._pt; u && u.p !== e && u.fp !== e; )
|
|
1058
1059
|
u = u._next;
|
|
1059
1060
|
if (!u)
|
|
1060
|
-
return Ci = 1, t.vars[e] = "+=0", Hi(t, a), Ci = 0, l ?
|
|
1061
|
+
return Ci = 1, t.vars[e] = "+=0", Hi(t, a), Ci = 0, l ? ze(e + " not eligible for reset") : 1;
|
|
1061
1062
|
h.push(u);
|
|
1062
1063
|
}
|
|
1063
1064
|
for (_ = h.length; _--; )
|
|
1064
|
-
f = h[_], u = f._pt || f, u.s = (r || r === 0) && !n ? r : u.s + (r || 0) + s * u.c, u.c = i - u.s, f.e && (f.e =
|
|
1065
|
-
},
|
|
1065
|
+
f = h[_], u = f._pt || f, u.s = (r || r === 0) && !n ? r : u.s + (r || 0) + s * u.c, u.c = i - u.s, f.e && (f.e = V(i) + K(f.e)), f.b && (f.b = u.s + K(f.b));
|
|
1066
|
+
}, Ds = function(t, e) {
|
|
1066
1067
|
var i = t[0] ? re(t[0]).harness : 0, r = i && i.aliases, n, s, a, l;
|
|
1067
1068
|
if (!r)
|
|
1068
1069
|
return e;
|
|
1069
|
-
n =
|
|
1070
|
+
n = me({}, e);
|
|
1070
1071
|
for (s in r)
|
|
1071
1072
|
if (s in n)
|
|
1072
1073
|
for (l = r[s].split(","), a = l.length; a--; )
|
|
1073
1074
|
n[l[a]] = n[s];
|
|
1074
1075
|
return n;
|
|
1075
|
-
},
|
|
1076
|
+
}, Ms = function(t, e, i, r) {
|
|
1076
1077
|
var n = e.ease || r || "power1.inOut", s, a;
|
|
1077
1078
|
if (Q(e))
|
|
1078
1079
|
a = i[t] || (i[t] = []), e.forEach(function(l, h) {
|
|
@@ -1089,8 +1090,8 @@ var As = function(t, e, i, r, n, s, a) {
|
|
|
1089
1090
|
v: e[s],
|
|
1090
1091
|
e: n
|
|
1091
1092
|
});
|
|
1092
|
-
},
|
|
1093
|
-
return
|
|
1093
|
+
}, Me = function(t, e, i, r, n) {
|
|
1094
|
+
return W(t) ? t.call(e, i, r, n) : X(t) && ~t.indexOf("random(") ? Ie(t) : t;
|
|
1094
1095
|
}, sn = Bi + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", on = {};
|
|
1095
1096
|
rt(sn + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
|
|
1096
1097
|
return on[o] = 1;
|
|
@@ -1099,61 +1100,61 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
1099
1100
|
Tr(t, o);
|
|
1100
1101
|
function t(i, r, n, s) {
|
|
1101
1102
|
var a;
|
|
1102
|
-
typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r :
|
|
1103
|
-
var l = a.vars, h = l.duration, u = l.delay, f = l.immediateRender, d = l.stagger, _ = l.overwrite, p = l.keyframes, c = l.defaults, g = l.scrollTrigger, m = l.yoyoEase, b = r.parent || N, v = (Q(i) || Sr(i) ? zt(i[0]) : "length" in r) ? [i] :
|
|
1104
|
-
if (a._targets = v.length ?
|
|
1105
|
-
if (r = a.vars,
|
|
1103
|
+
typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r : Oe(r)) || this;
|
|
1104
|
+
var l = a.vars, h = l.duration, u = l.delay, f = l.immediateRender, d = l.stagger, _ = l.overwrite, p = l.keyframes, c = l.defaults, g = l.scrollTrigger, m = l.yoyoEase, b = r.parent || N, v = (Q(i) || Sr(i) ? zt(i[0]) : "length" in r) ? [i] : yt(i), x, y, T, P, S, w, C, M;
|
|
1105
|
+
if (a._targets = v.length ? Wi(v) : ze("GSAP target " + i + " not found. https://gsap.com", !dt.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = _, p || d || He(h) || He(u)) {
|
|
1106
|
+
if (r = a.vars, x = a.timeline = new J({
|
|
1106
1107
|
data: "nested",
|
|
1107
1108
|
defaults: c || {},
|
|
1108
1109
|
targets: b && b.data === "nested" ? b.vars.targets : v
|
|
1109
|
-
}),
|
|
1110
|
+
}), x.kill(), x.parent = x._dp = Dt(a), x._start = 0, d || He(h) || He(u)) {
|
|
1110
1111
|
if (P = v.length, C = d && Ur(d), Ot(d))
|
|
1111
1112
|
for (S in d)
|
|
1112
1113
|
~sn.indexOf(S) && (M || (M = {}), M[S] = d[S]);
|
|
1113
|
-
for (
|
|
1114
|
-
T = ei(r, on), T.stagger = 0, m && (T.yoyoEase = m), M &&
|
|
1115
|
-
|
|
1114
|
+
for (y = 0; y < P; y++)
|
|
1115
|
+
T = ei(r, on), T.stagger = 0, m && (T.yoyoEase = m), M && me(T, M), w = v[y], T.duration = +Me(h, Dt(a), y, w, v), T.delay = (+Me(u, Dt(a), y, w, v) || 0) - a._delay, !d && P === 1 && T.delay && (a._delay = u = T.delay, a._start += u, T.delay = 0), x.to(w, T, C ? C(y, w, v) : 0), x._ease = D.none;
|
|
1116
|
+
x.duration() ? h = u = 0 : a.timeline = 0;
|
|
1116
1117
|
} else if (p) {
|
|
1117
|
-
|
|
1118
|
+
Oe(pt(x.vars.defaults, {
|
|
1118
1119
|
ease: "none"
|
|
1119
|
-
})),
|
|
1120
|
-
var O = 0, R, Y,
|
|
1120
|
+
})), x._ease = se(p.ease || r.ease || "none");
|
|
1121
|
+
var O = 0, R, Y, E;
|
|
1121
1122
|
if (Q(p))
|
|
1122
1123
|
p.forEach(function(z) {
|
|
1123
|
-
return
|
|
1124
|
-
}),
|
|
1124
|
+
return x.to(v, z, ">");
|
|
1125
|
+
}), x.duration();
|
|
1125
1126
|
else {
|
|
1126
1127
|
T = {};
|
|
1127
1128
|
for (S in p)
|
|
1128
|
-
S === "ease" || S === "easeEach" ||
|
|
1129
|
+
S === "ease" || S === "easeEach" || Ms(S, p[S], T, p.easeEach);
|
|
1129
1130
|
for (S in T)
|
|
1130
1131
|
for (R = T[S].sort(function(z, $) {
|
|
1131
1132
|
return z.t - $.t;
|
|
1132
|
-
}), O = 0,
|
|
1133
|
-
Y = R[
|
|
1133
|
+
}), O = 0, y = 0; y < R.length; y++)
|
|
1134
|
+
Y = R[y], E = {
|
|
1134
1135
|
ease: Y.e,
|
|
1135
|
-
duration: (Y.t - (
|
|
1136
|
-
},
|
|
1137
|
-
|
|
1138
|
-
duration: h -
|
|
1136
|
+
duration: (Y.t - (y ? R[y - 1].t : 0)) / 100 * h
|
|
1137
|
+
}, E[S] = Y.v, x.to(v, E, O), O += E.duration;
|
|
1138
|
+
x.duration() < h && x.to({}, {
|
|
1139
|
+
duration: h - x.duration()
|
|
1139
1140
|
});
|
|
1140
1141
|
}
|
|
1141
1142
|
}
|
|
1142
|
-
h || a.duration(h =
|
|
1143
|
+
h || a.duration(h = x.duration());
|
|
1143
1144
|
} else
|
|
1144
1145
|
a.timeline = 0;
|
|
1145
|
-
return _ === !0 && !
|
|
1146
|
+
return _ === !0 && !Ei && (Vt = Dt(a), N.killTweensOf(v), Vt = 0), At(b, Dt(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (f || !h && !p && a._start === H(b._time) && it(f) && ls(Dt(a)) && b.data !== "nested") && (a._tTime = -F, a.render(Math.max(0, -u) || 0)), g && Nr(Dt(a), g), a;
|
|
1146
1147
|
}
|
|
1147
1148
|
var e = t.prototype;
|
|
1148
1149
|
return e.render = function(r, n, s) {
|
|
1149
|
-
var a = this._time, l = this._tDur, h = this._dur, u = r < 0, f = r > l - F && !u ? l : r < F ? 0 : r, d, _, p, c, g, m, b, v,
|
|
1150
|
+
var a = this._time, l = this._tDur, h = this._dur, u = r < 0, f = r > l - F && !u ? l : r < F ? 0 : r, d, _, p, c, g, m, b, v, x;
|
|
1150
1151
|
if (!h)
|
|
1151
|
-
|
|
1152
|
+
us(this, r, n, s);
|
|
1152
1153
|
else if (f !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== u || this._lazy) {
|
|
1153
1154
|
if (d = f, v = this.timeline, this._repeat) {
|
|
1154
1155
|
if (c = h + this._rDelay, this._repeat < -1 && u)
|
|
1155
1156
|
return this.totalTime(c * 100 + r, n, s);
|
|
1156
|
-
if (d = H(f % c), f === l ? (p = this._repeat, d = h) : (g = H(f / c), p = ~~g, p && p === g ? (d = h, p--) : d > h && (d = h)), m = this._yoyo && p & 1, m && (
|
|
1157
|
+
if (d = H(f % c), f === l ? (p = this._repeat, d = h) : (g = H(f / c), p = ~~g, p && p === g ? (d = h, p--) : d > h && (d = h)), m = this._yoyo && p & 1, m && (x = this._yEase, d = h - d), g = ve(this._tTime, c), d === a && !s && this._initted && p === g)
|
|
1157
1158
|
return this._tTime = f, this;
|
|
1158
1159
|
p !== g && (v && this._yEase && tn(v, m), this.vars.repeatRefresh && !m && !this._lock && d !== c && this._initted && (this._lock = s = 1, this.render(H(c * p), !0).invalidate()._lock = 0));
|
|
1159
1160
|
}
|
|
@@ -1165,11 +1166,11 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
1165
1166
|
if (h !== this._dur)
|
|
1166
1167
|
return this.render(r, n, s);
|
|
1167
1168
|
}
|
|
1168
|
-
if (this._tTime = f, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = b = (
|
|
1169
|
+
if (this._tTime = f, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = b = (x || this._ease)(d / h), this._from && (this.ratio = b = 1 - b), !a && f && !n && !g && (ct(this, "onStart"), this._tTime !== f))
|
|
1169
1170
|
return this;
|
|
1170
1171
|
for (_ = this._pt; _; )
|
|
1171
1172
|
_.r(b, _.d), _ = _._next;
|
|
1172
|
-
v && v.render(r < 0 ? r : v._dur * v._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (u && wi(this, r, n, s),
|
|
1173
|
+
v && v.render(r < 0 ? r : v._dur * v._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (u && wi(this, r, n, s), ct(this, "onUpdate")), this._repeat && p !== g && this.vars.onRepeat && !n && this.parent && ct(this, "onRepeat"), (f === this._tDur || !f) && this._tTime === f && (u && !this._onUpdate && wi(this, r, !0, !0), (r || !h) && (f === this._tDur && this._ts > 0 || !f && this._ts < 0) && Gt(this, 1), !n && !(u && !a) && (f || a || m) && (ct(this, f === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(f < l && this.timeScale() > 0) && this._prom()));
|
|
1173
1174
|
}
|
|
1174
1175
|
return this;
|
|
1175
1176
|
}, e.targets = function() {
|
|
@@ -1177,32 +1178,32 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
1177
1178
|
}, e.invalidate = function(r) {
|
|
1178
1179
|
return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), o.prototype.invalidate.call(this, r);
|
|
1179
1180
|
}, e.resetTo = function(r, n, s, a, l) {
|
|
1180
|
-
|
|
1181
|
+
Fe || ut.wake(), this._ts || this.play();
|
|
1181
1182
|
var h = Math.min(this._dur, (this._dp._time - this._start) * this._ts), u;
|
|
1182
|
-
return this._initted || Hi(this, h), u = this._ease(h / this._dur),
|
|
1183
|
+
return this._initted || Hi(this, h), u = this._ease(h / this._dur), Os(this, r, n, s, a, u, h, l) ? this.resetTo(r, n, s, a, 1) : (li(this, 0), this.parent || Lr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
1183
1184
|
}, e.kill = function(r, n) {
|
|
1184
1185
|
if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
|
|
1185
|
-
return this._lazy = this._pt = 0, this.parent ?
|
|
1186
|
+
return this._lazy = this._pt = 0, this.parent ? Ce(this) : this.scrollTrigger && this.scrollTrigger.kill(!!q), this;
|
|
1186
1187
|
if (this.timeline) {
|
|
1187
1188
|
var s = this.timeline.totalDuration();
|
|
1188
|
-
return this.timeline.killTweensOf(r, n,
|
|
1189
|
+
return this.timeline.killTweensOf(r, n, Vt && Vt.vars.overwrite !== !0)._first || Ce(this), this.parent && s !== this.timeline.totalDuration() && ye(this, this._dur * this.timeline._tDur / s, 0, 1), this;
|
|
1189
1190
|
}
|
|
1190
|
-
var a = this._targets, l = r ?
|
|
1191
|
-
if ((!n || n === "all") &&
|
|
1192
|
-
return n === "all" && (this._pt = 0),
|
|
1191
|
+
var a = this._targets, l = r ? yt(r) : a, h = this._ptLookup, u = this._pt, f, d, _, p, c, g, m;
|
|
1192
|
+
if ((!n || n === "all") && os(a, l))
|
|
1193
|
+
return n === "all" && (this._pt = 0), Ce(this);
|
|
1193
1194
|
for (f = this._op = this._op || [], n !== "all" && (X(n) && (c = {}, rt(n, function(b) {
|
|
1194
1195
|
return c[b] = 1;
|
|
1195
|
-
}), n = c), n =
|
|
1196
|
+
}), n = c), n = Ds(a, n)), m = a.length; m--; )
|
|
1196
1197
|
if (~l.indexOf(a[m])) {
|
|
1197
1198
|
d = h[m], n === "all" ? (f[m] = n, p = d, _ = {}) : (_ = f[m] = f[m] || {}, p = n);
|
|
1198
1199
|
for (c in p)
|
|
1199
1200
|
g = d && d[c], g && ((!("kill" in g.d) || g.d.kill(c) === !0) && oi(this, g, "_pt"), delete d[c]), _ !== "all" && (_[c] = 1);
|
|
1200
1201
|
}
|
|
1201
|
-
return this._initted && !this._pt && u &&
|
|
1202
|
+
return this._initted && !this._pt && u && Ce(this), this;
|
|
1202
1203
|
}, t.to = function(r, n) {
|
|
1203
1204
|
return new t(r, n, arguments[2]);
|
|
1204
1205
|
}, t.from = function(r, n) {
|
|
1205
|
-
return
|
|
1206
|
+
return De(1, arguments);
|
|
1206
1207
|
}, t.delayedCall = function(r, n, s, a) {
|
|
1207
1208
|
return new t(n, 0, {
|
|
1208
1209
|
immediateRender: !1,
|
|
@@ -1216,14 +1217,14 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
1216
1217
|
callbackScope: a
|
|
1217
1218
|
});
|
|
1218
1219
|
}, t.fromTo = function(r, n, s) {
|
|
1219
|
-
return
|
|
1220
|
+
return De(2, arguments);
|
|
1220
1221
|
}, t.set = function(r, n) {
|
|
1221
1222
|
return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
|
|
1222
1223
|
}, t.killTweensOf = function(r, n, s) {
|
|
1223
1224
|
return N.killTweensOf(r, n, s);
|
|
1224
1225
|
}, t;
|
|
1225
|
-
}(
|
|
1226
|
-
|
|
1226
|
+
}(Le);
|
|
1227
|
+
pt(U.prototype, {
|
|
1227
1228
|
_targets: [],
|
|
1228
1229
|
_lazy: 0,
|
|
1229
1230
|
_startAt: 0,
|
|
@@ -1240,15 +1241,15 @@ var Yi = function(t, e, i) {
|
|
|
1240
1241
|
return t[e] = i;
|
|
1241
1242
|
}, an = function(t, e, i) {
|
|
1242
1243
|
return t[e](i);
|
|
1243
|
-
},
|
|
1244
|
+
}, Rs = function(t, e, i, r) {
|
|
1244
1245
|
return t[e](r.fp, i);
|
|
1245
|
-
},
|
|
1246
|
+
}, zs = function(t, e, i) {
|
|
1246
1247
|
return t.setAttribute(e, i);
|
|
1247
1248
|
}, Xi = function(t, e) {
|
|
1248
|
-
return
|
|
1249
|
+
return W(t[e]) ? an : Ii(t[e]) && t.setAttribute ? zs : Yi;
|
|
1249
1250
|
}, ln = function(t, e) {
|
|
1250
1251
|
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
|
|
1251
|
-
},
|
|
1252
|
+
}, Es = function(t, e) {
|
|
1252
1253
|
return e.set(e.t, e.p, !!(e.s + e.c * t), e);
|
|
1253
1254
|
}, hn = function(t, e) {
|
|
1254
1255
|
var i = e._pt, r = "";
|
|
@@ -1268,11 +1269,11 @@ var Yi = function(t, e, i) {
|
|
|
1268
1269
|
}, Is = function(t, e, i, r) {
|
|
1269
1270
|
for (var n = this._pt, s; n; )
|
|
1270
1271
|
s = n._next, n.p === r && n.modifier(t, e, i), n = s;
|
|
1271
|
-
},
|
|
1272
|
+
}, Fs = function(t) {
|
|
1272
1273
|
for (var e = this._pt, i, r; e; )
|
|
1273
1274
|
r = e._next, e.p === t && !e.op || e.op === t ? oi(this, e, "_pt") : e.dep || (i = 1), e = r;
|
|
1274
1275
|
return !i;
|
|
1275
|
-
},
|
|
1276
|
+
}, Ls = function(t, e, i, r) {
|
|
1276
1277
|
r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
|
|
1277
1278
|
}, un = function(t) {
|
|
1278
1279
|
for (var e = t._pt, i, r, n, s; e; ) {
|
|
@@ -1287,24 +1288,24 @@ var Yi = function(t, e, i) {
|
|
|
1287
1288
|
}
|
|
1288
1289
|
var t = o.prototype;
|
|
1289
1290
|
return t.modifier = function(i, r, n) {
|
|
1290
|
-
this.mSet = this.mSet || this.set, this.set =
|
|
1291
|
+
this.mSet = this.mSet || this.set, this.set = Ls, this.m = i, this.mt = n, this.tween = r;
|
|
1291
1292
|
}, o;
|
|
1292
1293
|
}();
|
|
1293
1294
|
rt(Bi + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(o) {
|
|
1294
1295
|
return Ni[o] = 1;
|
|
1295
1296
|
});
|
|
1296
|
-
|
|
1297
|
-
|
|
1297
|
+
_t.TweenMax = _t.TweenLite = U;
|
|
1298
|
+
_t.TimelineLite = _t.TimelineMax = J;
|
|
1298
1299
|
N = new J({
|
|
1299
1300
|
sortChildren: !1,
|
|
1300
|
-
defaults:
|
|
1301
|
+
defaults: be,
|
|
1301
1302
|
autoRemoveChildren: !0,
|
|
1302
1303
|
id: "root",
|
|
1303
1304
|
smoothChildTiming: !0
|
|
1304
1305
|
});
|
|
1305
|
-
|
|
1306
|
-
var oe = [], Ze = {},
|
|
1307
|
-
return (Ze[t] ||
|
|
1306
|
+
dt.stringFilter = Zr;
|
|
1307
|
+
var oe = [], Ze = {}, $s = [], ar = 0, Ns = 0, _i = function(t) {
|
|
1308
|
+
return (Ze[t] || $s).map(function(e) {
|
|
1308
1309
|
return e();
|
|
1309
1310
|
});
|
|
1310
1311
|
}, ki = function() {
|
|
@@ -1321,16 +1322,16 @@ var oe = [], Ze = {}, Ls = [], ar = 0, $s = 0, _i = function(t) {
|
|
|
1321
1322
|
}), ar = t, _i("matchMedia"));
|
|
1322
1323
|
}, cn = /* @__PURE__ */ function() {
|
|
1323
1324
|
function o(e, i) {
|
|
1324
|
-
this.selector = i && Si(i), this.data = [], this._r = [], this.isReverted = !1, this.id =
|
|
1325
|
+
this.selector = i && Si(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Ns++, e && this.add(e);
|
|
1325
1326
|
}
|
|
1326
1327
|
var t = o.prototype;
|
|
1327
1328
|
return t.add = function(i, r, n) {
|
|
1328
|
-
|
|
1329
|
+
W(i) && (n = r, r = i, i = W);
|
|
1329
1330
|
var s = this, a = function() {
|
|
1330
1331
|
var h = L, u = s.selector, f;
|
|
1331
|
-
return h && h !== s && h.data.push(s), n && (s.selector = Si(n)), L = s, f = r.apply(s, arguments),
|
|
1332
|
+
return h && h !== s && h.data.push(s), n && (s.selector = Si(n)), L = s, f = r.apply(s, arguments), W(f) && s._r.push(f), L = h, s.selector = u, s.isReverted = !1, f;
|
|
1332
1333
|
};
|
|
1333
|
-
return s.last = a, i ===
|
|
1334
|
+
return s.last = a, i === W ? a(s, function(l) {
|
|
1334
1335
|
return s.add(null, l);
|
|
1335
1336
|
}) : i ? s[i] = a : a;
|
|
1336
1337
|
}, t.ignore = function(i) {
|
|
@@ -1372,7 +1373,7 @@ var oe = [], Ze = {}, Ls = [], ar = 0, $s = 0, _i = function(t) {
|
|
|
1372
1373
|
}, t.revert = function(i) {
|
|
1373
1374
|
this.kill(i || {});
|
|
1374
1375
|
}, o;
|
|
1375
|
-
}(),
|
|
1376
|
+
}(), Bs = /* @__PURE__ */ function() {
|
|
1376
1377
|
function o(e) {
|
|
1377
1378
|
this.contexts = [], this.scope = e, L && L.data.push(this);
|
|
1378
1379
|
}
|
|
@@ -1410,14 +1411,14 @@ var oe = [], Ze = {}, Ls = [], ar = 0, $s = 0, _i = function(t) {
|
|
|
1410
1411
|
return N.getTweensOf(t, e);
|
|
1411
1412
|
},
|
|
1412
1413
|
getProperty: function(t, e, i, r) {
|
|
1413
|
-
X(t) && (t =
|
|
1414
|
-
var n = re(t || {}).get, s = i ? Fr :
|
|
1415
|
-
return i === "native" && (i = ""), t && (e ? s((
|
|
1416
|
-
return s((
|
|
1414
|
+
X(t) && (t = yt(t)[0]);
|
|
1415
|
+
var n = re(t || {}).get, s = i ? Fr : Ir;
|
|
1416
|
+
return i === "native" && (i = ""), t && (e ? s((ht[e] && ht[e].get || n)(t, e, i, r)) : function(a, l, h) {
|
|
1417
|
+
return s((ht[a] && ht[a].get || n)(t, a, l, h));
|
|
1417
1418
|
});
|
|
1418
1419
|
},
|
|
1419
1420
|
quickSetter: function(t, e, i) {
|
|
1420
|
-
if (t =
|
|
1421
|
+
if (t = yt(t), t.length > 1) {
|
|
1421
1422
|
var r = t.map(function(u) {
|
|
1422
1423
|
return ot.quickSetter(u, e, i);
|
|
1423
1424
|
}), n = r.length;
|
|
@@ -1427,16 +1428,16 @@ var oe = [], Ze = {}, Ls = [], ar = 0, $s = 0, _i = function(t) {
|
|
|
1427
1428
|
};
|
|
1428
1429
|
}
|
|
1429
1430
|
t = t[0] || {};
|
|
1430
|
-
var s =
|
|
1431
|
+
var s = ht[e], a = re(t), l = a.harness && (a.harness.aliases || {})[e] || e, h = s ? function(u) {
|
|
1431
1432
|
var f = new s();
|
|
1432
|
-
|
|
1433
|
+
fe._pt = 0, f.init(t, i ? u + i : u, fe, 0, [t]), f.render(1, f), fe._pt && qi(1, fe);
|
|
1433
1434
|
} : a.set(t, l);
|
|
1434
1435
|
return s ? h : function(u) {
|
|
1435
1436
|
return h(t, l, i ? u + i : u, a, 1);
|
|
1436
1437
|
};
|
|
1437
1438
|
},
|
|
1438
1439
|
quickTo: function(t, e, i) {
|
|
1439
|
-
var r, n = ot.to(t,
|
|
1440
|
+
var r, n = ot.to(t, pt((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(l, h, u) {
|
|
1440
1441
|
return n.resetTo(e, l, h, u);
|
|
1441
1442
|
};
|
|
1442
1443
|
return s.tween = n, s;
|
|
@@ -1445,17 +1446,17 @@ var oe = [], Ze = {}, Ls = [], ar = 0, $s = 0, _i = function(t) {
|
|
|
1445
1446
|
return N.getTweensOf(t, !0).length > 0;
|
|
1446
1447
|
},
|
|
1447
1448
|
defaults: function(t) {
|
|
1448
|
-
return t && t.ease && (t.ease = se(t.ease,
|
|
1449
|
+
return t && t.ease && (t.ease = se(t.ease, be.ease)), ir(be, t || {});
|
|
1449
1450
|
},
|
|
1450
1451
|
config: function(t) {
|
|
1451
|
-
return ir(
|
|
1452
|
+
return ir(dt, t || {});
|
|
1452
1453
|
},
|
|
1453
1454
|
registerEffect: function(t) {
|
|
1454
1455
|
var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
|
|
1455
1456
|
(r || "").split(",").forEach(function(a) {
|
|
1456
|
-
return a && !
|
|
1457
|
+
return a && !ht[a] && !_t[a] && ze(e + " effect requires " + a + " plugin.");
|
|
1457
1458
|
}), ui[e] = function(a, l, h) {
|
|
1458
|
-
return i(
|
|
1459
|
+
return i(yt(a), pt(l || {}, n), h);
|
|
1459
1460
|
}, s && (J.prototype[e] = function(a, l, h) {
|
|
1460
1461
|
return this.add(ui[e](a, Ot(l) ? l : (h = l) && {}, this), h);
|
|
1461
1462
|
});
|
|
@@ -1480,7 +1481,7 @@ var oe = [], Ze = {}, Ls = [], ar = 0, $s = 0, _i = function(t) {
|
|
|
1480
1481
|
return t ? new cn(t, e) : L;
|
|
1481
1482
|
},
|
|
1482
1483
|
matchMedia: function(t) {
|
|
1483
|
-
return new
|
|
1484
|
+
return new Bs(t);
|
|
1484
1485
|
},
|
|
1485
1486
|
matchMediaRefresh: function() {
|
|
1486
1487
|
return oe.forEach(function(t) {
|
|
@@ -1499,35 +1500,35 @@ var oe = [], Ze = {}, Ls = [], ar = 0, $s = 0, _i = function(t) {
|
|
|
1499
1500
|
r >= 0 && i.splice(r, 1);
|
|
1500
1501
|
},
|
|
1501
1502
|
utils: {
|
|
1502
|
-
wrap:
|
|
1503
|
-
wrapYoyo:
|
|
1503
|
+
wrap: ms,
|
|
1504
|
+
wrapYoyo: vs,
|
|
1504
1505
|
distribute: Ur,
|
|
1505
1506
|
random: Yr,
|
|
1506
1507
|
snap: Hr,
|
|
1507
|
-
normalize:
|
|
1508
|
+
normalize: bs,
|
|
1508
1509
|
getUnit: K,
|
|
1509
|
-
clamp:
|
|
1510
|
+
clamp: ds,
|
|
1510
1511
|
splitColor: jr,
|
|
1511
|
-
toArray:
|
|
1512
|
+
toArray: yt,
|
|
1512
1513
|
selector: Si,
|
|
1513
1514
|
mapRange: qr,
|
|
1514
|
-
pipe:
|
|
1515
|
-
unitize:
|
|
1516
|
-
interpolate:
|
|
1517
|
-
shuffle:
|
|
1515
|
+
pipe: ps,
|
|
1516
|
+
unitize: gs,
|
|
1517
|
+
interpolate: ys,
|
|
1518
|
+
shuffle: Vr
|
|
1518
1519
|
},
|
|
1519
1520
|
install: Dr,
|
|
1520
1521
|
effects: ui,
|
|
1521
|
-
ticker:
|
|
1522
|
+
ticker: ut,
|
|
1522
1523
|
updateRoot: J.updateRoot,
|
|
1523
|
-
plugins:
|
|
1524
|
+
plugins: ht,
|
|
1524
1525
|
globalTimeline: N,
|
|
1525
1526
|
core: {
|
|
1526
1527
|
PropTween: nt,
|
|
1527
1528
|
globals: Mr,
|
|
1528
1529
|
Tween: U,
|
|
1529
1530
|
Timeline: J,
|
|
1530
|
-
Animation:
|
|
1531
|
+
Animation: Le,
|
|
1531
1532
|
getCache: re,
|
|
1532
1533
|
_removeLinkedListItem: oi,
|
|
1533
1534
|
reverting: function() {
|
|
@@ -1537,18 +1538,18 @@ var oe = [], Ze = {}, Ls = [], ar = 0, $s = 0, _i = function(t) {
|
|
|
1537
1538
|
return t && L && (L.data.push(t), t._ctx = L), L;
|
|
1538
1539
|
},
|
|
1539
1540
|
suppressOverwrites: function(t) {
|
|
1540
|
-
return
|
|
1541
|
+
return Ei = t;
|
|
1541
1542
|
}
|
|
1542
1543
|
}
|
|
1543
1544
|
};
|
|
1544
1545
|
rt("to,from,fromTo,delayedCall,set,killTweensOf", function(o) {
|
|
1545
1546
|
return ri[o] = U[o];
|
|
1546
1547
|
});
|
|
1547
|
-
|
|
1548
|
-
|
|
1548
|
+
ut.add(J.updateRoot);
|
|
1549
|
+
fe = ri.to({}, {
|
|
1549
1550
|
duration: 0
|
|
1550
1551
|
});
|
|
1551
|
-
var
|
|
1552
|
+
var Ws = function(t, e) {
|
|
1552
1553
|
for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
|
|
1553
1554
|
i = i._next;
|
|
1554
1555
|
return i;
|
|
@@ -1556,7 +1557,7 @@ var Bs = function(t, e) {
|
|
|
1556
1557
|
var i = t._targets, r, n, s;
|
|
1557
1558
|
for (r in e)
|
|
1558
1559
|
for (n = i.length; n--; )
|
|
1559
|
-
s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s =
|
|
1560
|
+
s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = Ws(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
|
|
1560
1561
|
}, pi = function(t, e) {
|
|
1561
1562
|
return {
|
|
1562
1563
|
name: t,
|
|
@@ -1627,42 +1628,42 @@ D.Circ;
|
|
|
1627
1628
|
* Subject to the terms at https://gsap.com/standard-license
|
|
1628
1629
|
* @author: Jack Doyle, jack@greensock.com
|
|
1629
1630
|
*/
|
|
1630
|
-
var lr, Ut,
|
|
1631
|
+
var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
1631
1632
|
return typeof window < "u";
|
|
1632
|
-
},
|
|
1633
|
+
}, Et = {}, te = 180 / Math.PI, pe = Math.PI / 180, he = Math.atan2, ur = 1e8, ji = /([A-Z])/g, Hs = /(left|right|width|margin|padding|x)/i, Ys = /[\s,\(]\S/, Ct = {
|
|
1633
1634
|
autoAlpha: "opacity,visibility",
|
|
1634
1635
|
scale: "scaleX,scaleY",
|
|
1635
1636
|
alpha: "opacity"
|
|
1636
1637
|
}, Oi = function(t, e) {
|
|
1637
1638
|
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1638
|
-
}, Ys = function(t, e) {
|
|
1639
|
-
return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1640
1639
|
}, Xs = function(t, e) {
|
|
1641
|
-
return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u
|
|
1640
|
+
return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1642
1641
|
}, qs = function(t, e) {
|
|
1642
|
+
return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
|
|
1643
|
+
}, Gs = function(t, e) {
|
|
1643
1644
|
var i = e.s + e.c * t;
|
|
1644
1645
|
e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
|
|
1645
1646
|
}, fn = function(t, e) {
|
|
1646
1647
|
return e.set(e.t, e.p, t ? e.e : e.b, e);
|
|
1647
1648
|
}, dn = function(t, e) {
|
|
1648
1649
|
return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
|
|
1649
|
-
}, Gs = function(t, e, i) {
|
|
1650
|
-
return t.style[e] = i;
|
|
1651
1650
|
}, Ks = function(t, e, i) {
|
|
1652
|
-
return t.style
|
|
1651
|
+
return t.style[e] = i;
|
|
1653
1652
|
}, js = function(t, e, i) {
|
|
1654
|
-
return t.
|
|
1653
|
+
return t.style.setProperty(e, i);
|
|
1655
1654
|
}, Qs = function(t, e, i) {
|
|
1655
|
+
return t._gsap[e] = i;
|
|
1656
|
+
}, Zs = function(t, e, i) {
|
|
1656
1657
|
return t._gsap.scaleX = t._gsap.scaleY = i;
|
|
1657
|
-
},
|
|
1658
|
+
}, Js = function(t, e, i, r, n) {
|
|
1658
1659
|
var s = t._gsap;
|
|
1659
1660
|
s.scaleX = s.scaleY = i, s.renderTransform(n, s);
|
|
1660
|
-
},
|
|
1661
|
+
}, to = function(t, e, i, r, n) {
|
|
1661
1662
|
var s = t._gsap;
|
|
1662
1663
|
s[e] = i, s.renderTransform(n, s);
|
|
1663
|
-
}, B = "transform", st = B + "Origin",
|
|
1664
|
+
}, B = "transform", st = B + "Origin", eo = function o(t, e) {
|
|
1664
1665
|
var i = this, r = this.target, n = r.style, s = r._gsap;
|
|
1665
|
-
if (t in
|
|
1666
|
+
if (t in Et && n) {
|
|
1666
1667
|
if (this.tfm = this.tfm || {}, t !== "transform")
|
|
1667
1668
|
t = Ct[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
|
|
1668
1669
|
return i.tfm[a] = Mt(r, a);
|
|
@@ -1678,7 +1679,7 @@ var lr, Ut, de, Gi, ee, hr, Ki, Ws = function() {
|
|
|
1678
1679
|
(n || e) && this.props.push(t, e, n[t]);
|
|
1679
1680
|
}, _n = function(t) {
|
|
1680
1681
|
t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
|
|
1681
|
-
},
|
|
1682
|
+
}, io = function() {
|
|
1682
1683
|
var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
|
|
1683
1684
|
for (n = 0; n < t.length; n += 3)
|
|
1684
1685
|
t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(ji, "-$1").toLowerCase());
|
|
@@ -1691,8 +1692,8 @@ var lr, Ut, de, Gi, ee, hr, Ki, Ws = function() {
|
|
|
1691
1692
|
var i = {
|
|
1692
1693
|
target: t,
|
|
1693
1694
|
props: [],
|
|
1694
|
-
revert:
|
|
1695
|
-
save:
|
|
1695
|
+
revert: io,
|
|
1696
|
+
save: eo
|
|
1696
1697
|
};
|
|
1697
1698
|
return t._gsap || ot.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
|
|
1698
1699
|
return i.save(r);
|
|
@@ -1702,8 +1703,8 @@ var lr, Ut, de, Gi, ee, hr, Ki, Ws = function() {
|
|
|
1702
1703
|
return i && i.style ? i : Ut.createElement(t);
|
|
1703
1704
|
}, xt = function o(t, e, i) {
|
|
1704
1705
|
var r = getComputedStyle(t);
|
|
1705
|
-
return r[e] || r.getPropertyValue(e.replace(ji, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && o(t,
|
|
1706
|
-
}, cr = "O,Moz,ms,Ms,Webkit".split(","),
|
|
1706
|
+
return r[e] || r.getPropertyValue(e.replace(ji, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && o(t, we(e) || e, 1) || "";
|
|
1707
|
+
}, cr = "O,Moz,ms,Ms,Webkit".split(","), we = function(t, e, i) {
|
|
1707
1708
|
var r = e || ee, n = r.style, s = 5;
|
|
1708
1709
|
if (t in n && !i)
|
|
1709
1710
|
return t;
|
|
@@ -1711,17 +1712,17 @@ var lr, Ut, de, Gi, ee, hr, Ki, Ws = function() {
|
|
|
1711
1712
|
;
|
|
1712
1713
|
return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? cr[s] : "") + t;
|
|
1713
1714
|
}, Mi = function() {
|
|
1714
|
-
|
|
1715
|
+
Us() && window.document && (lr = window, Ut = lr.document, _e = Ut.documentElement, ee = Di("div") || {
|
|
1715
1716
|
style: {}
|
|
1716
|
-
}, Di("div"), B =
|
|
1717
|
+
}, Di("div"), B = we(B), st = B + "Origin", ee.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", gn = !!we("perspective"), Ki = ot.core.reverting, Gi = 1);
|
|
1717
1718
|
}, fr = function(t) {
|
|
1718
1719
|
var e = t.ownerSVGElement, i = Di("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
|
|
1719
|
-
r.style.display = "block", i.appendChild(r),
|
|
1720
|
+
r.style.display = "block", i.appendChild(r), _e.appendChild(i);
|
|
1720
1721
|
try {
|
|
1721
1722
|
n = r.getBBox();
|
|
1722
1723
|
} catch {
|
|
1723
1724
|
}
|
|
1724
|
-
return i.removeChild(r),
|
|
1725
|
+
return i.removeChild(r), _e.removeChild(i), n;
|
|
1725
1726
|
}, dr = function(t, e) {
|
|
1726
1727
|
for (var i = e.length; i--; )
|
|
1727
1728
|
if (t.hasAttribute(e[i]))
|
|
@@ -1744,7 +1745,7 @@ var lr, Ut, de, Gi, ee, hr, Ki, Ws = function() {
|
|
|
1744
1745
|
}, ae = function(t, e) {
|
|
1745
1746
|
if (e) {
|
|
1746
1747
|
var i = t.style, r;
|
|
1747
|
-
e in
|
|
1748
|
+
e in Et && e !== st && (e = B), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(ji, "-$1").toLowerCase())) : i.removeAttribute(e);
|
|
1748
1749
|
}
|
|
1749
1750
|
}, Ht = function(t, e, i, r, n, s) {
|
|
1750
1751
|
var a = new nt(t._pt, e, i, 0, 1, s ? dn : fn);
|
|
@@ -1753,35 +1754,35 @@ var lr, Ut, de, Gi, ee, hr, Ki, Ws = function() {
|
|
|
1753
1754
|
deg: 1,
|
|
1754
1755
|
rad: 1,
|
|
1755
1756
|
turn: 1
|
|
1756
|
-
},
|
|
1757
|
+
}, ro = {
|
|
1757
1758
|
grid: 1,
|
|
1758
1759
|
flex: 1
|
|
1759
1760
|
}, Kt = function o(t, e, i, r) {
|
|
1760
|
-
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = ee.style, l =
|
|
1761
|
+
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = ee.style, l = Hs.test(e), h = t.tagName.toLowerCase() === "svg", u = (h ? "client" : "offset") + (l ? "Width" : "Height"), f = 100, d = r === "px", _ = r === "%", p, c, g, m;
|
|
1761
1762
|
if (r === s || !n || _r[r] || _r[s])
|
|
1762
1763
|
return n;
|
|
1763
|
-
if (s !== "px" && !d && (n = o(t, e, i, "px")), m = t.getCTM && mn(t), (_ || s === "%") && (
|
|
1764
|
-
return p = m ? t.getBBox()[l ? "width" : "height"] : t[u],
|
|
1765
|
-
if (a[l ? "width" : "height"] = f + (d ? s : r), c = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !h ? t : t.parentNode, m && (c = (t.ownerSVGElement || {}).parentNode), (!c || c === Ut || !c.appendChild) && (c = Ut.body), g = c._gsap, g && _ && g.width && l && g.time ===
|
|
1766
|
-
return
|
|
1764
|
+
if (s !== "px" && !d && (n = o(t, e, i, "px")), m = t.getCTM && mn(t), (_ || s === "%") && (Et[e] || ~e.indexOf("adius")))
|
|
1765
|
+
return p = m ? t.getBBox()[l ? "width" : "height"] : t[u], V(_ ? n / p * f : n / 100 * p);
|
|
1766
|
+
if (a[l ? "width" : "height"] = f + (d ? s : r), c = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !h ? t : t.parentNode, m && (c = (t.ownerSVGElement || {}).parentNode), (!c || c === Ut || !c.appendChild) && (c = Ut.body), g = c._gsap, g && _ && g.width && l && g.time === ut.time && !g.uncache)
|
|
1767
|
+
return V(n / g.width * f);
|
|
1767
1768
|
if (_ && (e === "height" || e === "width")) {
|
|
1768
1769
|
var b = t.style[e];
|
|
1769
1770
|
t.style[e] = f + r, p = t[u], b ? t.style[e] = b : ae(t, e);
|
|
1770
1771
|
} else
|
|
1771
|
-
(_ || s === "%") && !
|
|
1772
|
-
return l && _ && (g = re(c), g.time =
|
|
1772
|
+
(_ || s === "%") && !ro[xt(c, "display")] && (a.position = xt(t, "position")), c === t && (a.position = "static"), c.appendChild(ee), p = ee[u], c.removeChild(ee), a.position = "absolute";
|
|
1773
|
+
return l && _ && (g = re(c), g.time = ut.time, g.width = c[u]), V(d ? p * n / f : p && n ? f / p * n : 0);
|
|
1773
1774
|
}, Mt = function(t, e, i, r) {
|
|
1774
1775
|
var n;
|
|
1775
|
-
return Gi || Mi(), e in Ct && e !== "transform" && (e = Ct[e], ~e.indexOf(",") && (e = e.split(",")[0])),
|
|
1776
|
-
},
|
|
1776
|
+
return Gi || Mi(), e in Ct && e !== "transform" && (e = Ct[e], ~e.indexOf(",") && (e = e.split(",")[0])), Et[e] && e !== "transform" ? (n = Ne(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : si(xt(t, st)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = ni[e] && ni[e](t, e, i) || xt(t, e) || zr(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Kt(t, e, n, i) + i : n;
|
|
1777
|
+
}, no = function(t, e, i, r) {
|
|
1777
1778
|
if (!i || i === "none") {
|
|
1778
|
-
var n =
|
|
1779
|
+
var n = we(e, t, 1), s = n && xt(t, n, 1);
|
|
1779
1780
|
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = xt(t, "borderTopColor"));
|
|
1780
1781
|
}
|
|
1781
|
-
var a = new nt(this._pt, t.style, e, 0, 1, hn), l = 0, h = 0, u, f, d, _, p, c, g, m, b, v,
|
|
1782
|
-
if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = xt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (c = t.style[e], t.style[e] = r, r = xt(t, e) || r, c ? t.style[e] = c : ae(t, e)), u = [i, r], Zr(u), i = u[0], r = u[1], d = i.match(
|
|
1783
|
-
for (; f =
|
|
1784
|
-
g = f[0], b = r.substring(l, f.index), p ? p = (p + 1) % 5 : (b.substr(-5) === "rgba(" || b.substr(-5) === "hsla(") && (p = 1), g !== (c = d[h++] || "") && (_ = parseFloat(c) || 0,
|
|
1782
|
+
var a = new nt(this._pt, t.style, e, 0, 1, hn), l = 0, h = 0, u, f, d, _, p, c, g, m, b, v, x, y;
|
|
1783
|
+
if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = xt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (c = t.style[e], t.style[e] = r, r = xt(t, e) || r, c ? t.style[e] = c : ae(t, e)), u = [i, r], Zr(u), i = u[0], r = u[1], d = i.match(ce) || [], y = r.match(ce) || [], y.length) {
|
|
1784
|
+
for (; f = ce.exec(r); )
|
|
1785
|
+
g = f[0], b = r.substring(l, f.index), p ? p = (p + 1) % 5 : (b.substr(-5) === "rgba(" || b.substr(-5) === "hsla(") && (p = 1), g !== (c = d[h++] || "") && (_ = parseFloat(c) || 0, x = c.substr((_ + "").length), g.charAt(1) === "=" && (g = de(_, g) + x), m = parseFloat(g), v = g.substr((m + "").length), l = ce.lastIndex - v.length, v || (v = v || dt.units[e] || x, l === r.length && (r += v, a.e += v)), x !== v && (_ = Kt(t, e, c, v) || 0), a._pt = {
|
|
1785
1786
|
_next: a._pt,
|
|
1786
1787
|
p: b || h === 1 ? b : ",",
|
|
1787
1788
|
//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.
|
|
@@ -1799,23 +1800,23 @@ var lr, Ut, de, Gi, ee, hr, Ki, Ws = function() {
|
|
|
1799
1800
|
left: "0%",
|
|
1800
1801
|
right: "100%",
|
|
1801
1802
|
center: "50%"
|
|
1802
|
-
},
|
|
1803
|
+
}, so = function(t) {
|
|
1803
1804
|
var e = t.split(" "), i = e[0], r = e[1] || "50%";
|
|
1804
1805
|
return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = pr[i] || i, e[1] = pr[r] || r, e.join(" ");
|
|
1805
|
-
},
|
|
1806
|
+
}, oo = function(t, e) {
|
|
1806
1807
|
if (e.tween && e.tween._time === e.tween._dur) {
|
|
1807
1808
|
var i = e.t, r = i.style, n = e.u, s = i._gsap, a, l, h;
|
|
1808
1809
|
if (n === "all" || n === !0)
|
|
1809
1810
|
r.cssText = "", l = 1;
|
|
1810
1811
|
else
|
|
1811
1812
|
for (n = n.split(","), h = n.length; --h > -1; )
|
|
1812
|
-
a = n[h],
|
|
1813
|
-
l && (ae(i, B), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none",
|
|
1813
|
+
a = n[h], Et[a] && (l = 1, a = a === "transformOrigin" ? st : B), ae(i, a);
|
|
1814
|
+
l && (ae(i, B), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Ne(i, 1), s.uncache = 1, _n(r)));
|
|
1814
1815
|
}
|
|
1815
1816
|
}, ni = {
|
|
1816
1817
|
clearProps: function(t, e, i, r, n) {
|
|
1817
1818
|
if (n.data !== "isFromStart") {
|
|
1818
|
-
var s = t._pt = new nt(t._pt, e, i, 0, 0,
|
|
1819
|
+
var s = t._pt = new nt(t._pt, e, i, 0, 0, oo);
|
|
1819
1820
|
return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
|
|
1820
1821
|
}
|
|
1821
1822
|
}
|
|
@@ -1882,51 +1883,51 @@ var lr, Ut, de, Gi, ee, hr, Ki, Ws = function() {
|
|
|
1882
1883
|
return 1;
|
|
1883
1884
|
}
|
|
1884
1885
|
*/
|
|
1885
|
-
},
|
|
1886
|
+
}, $e = [1, 0, 0, 1, 0, 0], vn = {}, yn = function(t) {
|
|
1886
1887
|
return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
|
|
1887
1888
|
}, gr = function(t) {
|
|
1888
1889
|
var e = xt(t, B);
|
|
1889
|
-
return
|
|
1890
|
+
return yn(e) ? $e : e.substr(7).match(Ar).map(V);
|
|
1890
1891
|
}, Qi = function(t, e) {
|
|
1891
1892
|
var i = t._gsap || re(t), r = t.style, n = gr(t), s, a, l, h;
|
|
1892
|
-
return i.svg && t.getAttribute("transform") ? (l = t.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ?
|
|
1893
|
+
return i.svg && t.getAttribute("transform") ? (l = t.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ? $e : n) : (n === $e && !t.offsetParent && t !== _e && !i.svg && (l = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (h = 1, a = t.nextElementSibling, _e.appendChild(t)), n = gr(t), l ? r.display = l : ae(t, "display"), h && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : _e.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
|
|
1893
1894
|
}, Ri = function(t, e, i, r, n, s) {
|
|
1894
|
-
var a = t._gsap, l = n || Qi(t, !0), h = a.xOrigin || 0, u = a.yOrigin || 0, f = a.xOffset || 0, d = a.yOffset || 0, _ = l[0], p = l[1], c = l[2], g = l[3], m = l[4], b = l[5], v = e.split(" "),
|
|
1895
|
-
i ? l !==
|
|
1896
|
-
},
|
|
1895
|
+
var a = t._gsap, l = n || Qi(t, !0), h = a.xOrigin || 0, u = a.yOrigin || 0, f = a.xOffset || 0, d = a.yOffset || 0, _ = l[0], p = l[1], c = l[2], g = l[3], m = l[4], b = l[5], v = e.split(" "), x = parseFloat(v[0]) || 0, y = parseFloat(v[1]) || 0, T, P, S, w;
|
|
1896
|
+
i ? l !== $e && (P = _ * g - p * c) && (S = x * (g / P) + y * (-c / P) + (c * b - g * m) / P, w = x * (-p / P) + y * (_ / P) - (_ * b - p * m) / P, x = S, y = w) : (T = bn(t), x = T.x + (~v[0].indexOf("%") ? x / 100 * T.width : x), y = T.y + (~(v[1] || v[0]).indexOf("%") ? y / 100 * T.height : y)), r || r !== !1 && a.smooth ? (m = x - h, b = y - u, a.xOffset = f + (m * _ + b * c) - m, a.yOffset = d + (m * p + b * g) - b) : a.xOffset = a.yOffset = 0, a.xOrigin = x, a.yOrigin = y, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[st] = "0px 0px", s && (Ht(s, a, "xOrigin", h, x), Ht(s, a, "yOrigin", u, y), Ht(s, a, "xOffset", f, a.xOffset), Ht(s, a, "yOffset", d, a.yOffset)), t.setAttribute("data-svg-origin", x + " " + y);
|
|
1897
|
+
}, Ne = function(t, e) {
|
|
1897
1898
|
var i = t._gsap || new rn(t);
|
|
1898
1899
|
if ("x" in i && !e && !i.uncache)
|
|
1899
1900
|
return i;
|
|
1900
|
-
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(t), h = xt(t, st) || "0", u, f, d, _, p, c, g, m, b, v,
|
|
1901
|
-
return u = f = d = c = g = m = b = v =
|
|
1901
|
+
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(t), h = xt(t, st) || "0", u, f, d, _, p, c, g, m, b, v, x, y, T, P, S, w, C, M, O, R, Y, E, z, $, G, Qt, Lt, Z, Pt, gt, tt, bt;
|
|
1902
|
+
return u = f = d = c = g = m = b = v = x = 0, _ = p = 1, i.svg = !!(t.getCTM && mn(t)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[B] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[B] !== "none" ? l[B] : "")), r.scale = r.rotate = r.translate = "none"), P = Qi(t, i.svg), i.svg && (i.uncache ? (G = t.getBBox(), h = i.xOrigin - G.x + "px " + (i.yOrigin - G.y) + "px", $ = "") : $ = !e && t.getAttribute("data-svg-origin"), Ri(t, $ || h, !!$ || i.originIsAbsolute, i.smooth !== !1, P)), y = i.xOrigin || 0, T = i.yOrigin || 0, P !== $e && (M = P[0], O = P[1], R = P[2], Y = P[3], u = E = P[4], f = z = P[5], P.length === 6 ? (_ = Math.sqrt(M * M + O * O), p = Math.sqrt(Y * Y + R * R), c = M || O ? he(O, M) * te : 0, b = R || Y ? he(R, Y) * te + c : 0, b && (p *= Math.abs(Math.cos(b * pe))), i.svg && (u -= y - (y * M + T * R), f -= T - (y * O + T * Y))) : (bt = P[6], gt = P[7], Lt = P[8], Z = P[9], Pt = P[10], tt = P[11], u = P[12], f = P[13], d = P[14], S = he(bt, Pt), g = S * te, S && (w = Math.cos(-S), C = Math.sin(-S), $ = E * w + Lt * C, G = z * w + Z * C, Qt = bt * w + Pt * C, Lt = E * -C + Lt * w, Z = z * -C + Z * w, Pt = bt * -C + Pt * w, tt = gt * -C + tt * w, E = $, z = G, bt = Qt), S = he(-R, Pt), m = S * te, S && (w = Math.cos(-S), C = Math.sin(-S), $ = M * w - Lt * C, G = O * w - Z * C, Qt = R * w - Pt * C, tt = Y * C + tt * w, M = $, O = G, R = Qt), S = he(O, M), c = S * te, S && (w = Math.cos(S), C = Math.sin(S), $ = M * w + O * C, G = E * w + z * C, O = O * w - M * C, z = z * w - E * C, M = $, E = G), g && Math.abs(g) + Math.abs(c) > 359.9 && (g = c = 0, m = 180 - m), _ = V(Math.sqrt(M * M + O * O + R * R)), p = V(Math.sqrt(z * z + bt * bt)), S = he(E, z), b = Math.abs(S) > 2e-4 ? S * te : 0, x = tt ? 1 / (tt < 0 ? -tt : tt) : 0), i.svg && ($ = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !yn(xt(t, B)), $ && t.setAttribute("transform", $))), Math.abs(b) > 90 && Math.abs(b) < 270 && (n ? (_ *= -1, b += c <= 0 ? 180 : -180, c += c <= 0 ? 180 : -180) : (p *= -1, b += b <= 0 ? 180 : -180)), e = e || i.uncache, i.x = u - ((i.xPercent = u && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = f - ((i.yPercent = f && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-f) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = d + s, i.scaleX = V(_), i.scaleY = V(p), i.rotation = V(c) + a, i.rotationX = V(g) + a, i.rotationY = V(m) + a, i.skewX = b + a, i.skewY = v + a, i.transformPerspective = x + s, (i.zOrigin = parseFloat(h.split(" ")[2]) || !e && i.zOrigin || 0) && (r[st] = si(h)), i.xOffset = i.yOffset = 0, i.force3D = dt.force3D, i.renderTransform = i.svg ? lo : gn ? xn : ao, i.uncache = 0, i;
|
|
1902
1903
|
}, si = function(t) {
|
|
1903
1904
|
return (t = t.split(" "))[0] + " " + t[1];
|
|
1904
1905
|
}, gi = function(t, e, i) {
|
|
1905
1906
|
var r = K(e);
|
|
1906
|
-
return
|
|
1907
|
-
}, oo = function(t, e) {
|
|
1908
|
-
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, yn(t, e);
|
|
1909
|
-
}, Zt = "0deg", Pe = "0px", Jt = ") ", yn = function(t, e) {
|
|
1910
|
-
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.z, h = i.rotation, u = i.rotationY, f = i.rotationX, d = i.skewX, _ = i.skewY, p = i.scaleX, c = i.scaleY, g = i.transformPerspective, m = i.force3D, b = i.target, v = i.zOrigin, y = "", x = m === "auto" && t && t !== 1 || m === !0;
|
|
1911
|
-
if (v && (f !== Zt || u !== Zt)) {
|
|
1912
|
-
var T = parseFloat(u) * _e, P = Math.sin(T), S = Math.cos(T), w;
|
|
1913
|
-
T = parseFloat(f) * _e, w = Math.cos(T), s = gi(b, s, P * w * -v), a = gi(b, a, -Math.sin(T) * -v), l = gi(b, l, S * w * -v + v);
|
|
1914
|
-
}
|
|
1915
|
-
g !== Pe && (y += "perspective(" + g + Jt), (r || n) && (y += "translate(" + r + "%, " + n + "%) "), (x || s !== Pe || a !== Pe || l !== Pe) && (y += l !== Pe || x ? "translate3d(" + s + ", " + a + ", " + l + ") " : "translate(" + s + ", " + a + Jt), h !== Zt && (y += "rotate(" + h + Jt), u !== Zt && (y += "rotateY(" + u + Jt), f !== Zt && (y += "rotateX(" + f + Jt), (d !== Zt || _ !== Zt) && (y += "skew(" + d + ", " + _ + Jt), (p !== 1 || c !== 1) && (y += "scale(" + p + ", " + c + Jt), b.style[B] = y || "translate(0, 0)";
|
|
1907
|
+
return V(parseFloat(e) + parseFloat(Kt(t, "x", i + "px", r))) + r;
|
|
1916
1908
|
}, ao = function(t, e) {
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1909
|
+
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, xn(t, e);
|
|
1910
|
+
}, Zt = "0deg", Se = "0px", Jt = ") ", xn = function(t, e) {
|
|
1911
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.z, h = i.rotation, u = i.rotationY, f = i.rotationX, d = i.skewX, _ = i.skewY, p = i.scaleX, c = i.scaleY, g = i.transformPerspective, m = i.force3D, b = i.target, v = i.zOrigin, x = "", y = m === "auto" && t && t !== 1 || m === !0;
|
|
1912
|
+
if (v && (f !== Zt || u !== Zt)) {
|
|
1913
|
+
var T = parseFloat(u) * pe, P = Math.sin(T), S = Math.cos(T), w;
|
|
1914
|
+
T = parseFloat(f) * pe, w = Math.cos(T), s = gi(b, s, P * w * -v), a = gi(b, a, -Math.sin(T) * -v), l = gi(b, l, S * w * -v + v);
|
|
1915
|
+
}
|
|
1916
|
+
g !== Se && (x += "perspective(" + g + Jt), (r || n) && (x += "translate(" + r + "%, " + n + "%) "), (y || s !== Se || a !== Se || l !== Se) && (x += l !== Se || y ? "translate3d(" + s + ", " + a + ", " + l + ") " : "translate(" + s + ", " + a + Jt), h !== Zt && (x += "rotate(" + h + Jt), u !== Zt && (x += "rotateY(" + u + Jt), f !== Zt && (x += "rotateX(" + f + Jt), (d !== Zt || _ !== Zt) && (x += "skew(" + d + ", " + _ + Jt), (p !== 1 || c !== 1) && (x += "scale(" + p + ", " + c + Jt), b.style[B] = x || "translate(0, 0)";
|
|
1917
|
+
}, lo = function(t, e) {
|
|
1918
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.rotation, h = i.skewX, u = i.skewY, f = i.scaleX, d = i.scaleY, _ = i.target, p = i.xOrigin, c = i.yOrigin, g = i.xOffset, m = i.yOffset, b = i.forceCSS, v = parseFloat(s), x = parseFloat(a), y, T, P, S, w;
|
|
1919
|
+
l = parseFloat(l), h = parseFloat(h), u = parseFloat(u), u && (u = parseFloat(u), h += u, l += u), l || h ? (l *= pe, h *= pe, y = Math.cos(l) * f, T = Math.sin(l) * f, P = Math.sin(l - h) * -d, S = Math.cos(l - h) * d, h && (u *= pe, w = Math.tan(h - u), w = Math.sqrt(1 + w * w), P *= w, S *= w, u && (w = Math.tan(u), w = Math.sqrt(1 + w * w), y *= w, T *= w)), y = V(y), T = V(T), P = V(P), S = V(S)) : (y = f, S = d, T = P = 0), (v && !~(s + "").indexOf("px") || x && !~(a + "").indexOf("px")) && (v = Kt(_, "x", s, "px"), x = Kt(_, "y", a, "px")), (p || c || g || m) && (v = V(v + p - (p * y + c * P) + g), x = V(x + c - (p * T + c * S) + m)), (r || n) && (w = _.getBBox(), v = V(v + r / 100 * w.width), x = V(x + n / 100 * w.height)), w = "matrix(" + y + "," + T + "," + P + "," + S + "," + v + "," + x + ")", _.setAttribute("transform", w), b && (_.style[B] = w);
|
|
1920
|
+
}, ho = function(t, e, i, r, n) {
|
|
1920
1921
|
var s = 360, a = X(n), l = parseFloat(n) * (a && ~n.indexOf("rad") ? te : 1), h = l - r, u = r + h + "deg", f, d;
|
|
1921
|
-
return a && (f = n.split("_")[1], f === "short" && (h %= s, h !== h % (s / 2) && (h += h < 0 ? s : -s)), f === "cw" && h < 0 ? h = (h + s * ur) % s - ~~(h / s) * s : f === "ccw" && h > 0 && (h = (h - s * ur) % s - ~~(h / s) * s)), t._pt = d = new nt(t._pt, e, i, r, h,
|
|
1922
|
+
return a && (f = n.split("_")[1], f === "short" && (h %= s, h !== h % (s / 2) && (h += h < 0 ? s : -s)), f === "cw" && h < 0 ? h = (h + s * ur) % s - ~~(h / s) * s : f === "ccw" && h > 0 && (h = (h - s * ur) % s - ~~(h / s) * s)), t._pt = d = new nt(t._pt, e, i, r, h, Xs), d.e = u, d.u = "deg", t._props.push(i), d;
|
|
1922
1923
|
}, br = function(t, e) {
|
|
1923
1924
|
for (var i in e)
|
|
1924
1925
|
t[i] = e[i];
|
|
1925
1926
|
return t;
|
|
1926
|
-
},
|
|
1927
|
+
}, uo = function(t, e, i) {
|
|
1927
1928
|
var r = br({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, l, h, u, f, d, _, p;
|
|
1928
|
-
r.svg ? (h = i.getAttribute("transform"), i.setAttribute("transform", ""), s[B] = e, a =
|
|
1929
|
-
for (l in
|
|
1929
|
+
r.svg ? (h = i.getAttribute("transform"), i.setAttribute("transform", ""), s[B] = e, a = Ne(i, 1), ae(i, B), i.setAttribute("transform", h)) : (h = getComputedStyle(i)[B], s[B] = e, a = Ne(i, 1), s[B] = h);
|
|
1930
|
+
for (l in Et)
|
|
1930
1931
|
h = r[l], u = a[l], h !== u && n.indexOf(l) < 0 && (_ = K(h), p = K(u), f = _ !== p ? Kt(i, l, h, p) : parseFloat(h), d = parseFloat(u), t._pt = new nt(t._pt, a, l, f, d - f, Oi), t._pt.u = p || 0, t._props.push(l));
|
|
1931
1932
|
br(a, r);
|
|
1932
1933
|
};
|
|
@@ -1952,42 +1953,42 @@ var wn = {
|
|
|
1952
1953
|
return t.style && t.nodeType;
|
|
1953
1954
|
},
|
|
1954
1955
|
init: function(t, e, i, r, n) {
|
|
1955
|
-
var s = this._props, a = t.style, l = i.vars.startAt, h, u, f, d, _, p, c, g, m, b, v,
|
|
1956
|
+
var s = this._props, a = t.style, l = i.vars.startAt, h, u, f, d, _, p, c, g, m, b, v, x, y, T, P, S;
|
|
1956
1957
|
Gi || Mi(), this.styles = this.styles || pn(t), S = this.styles.props, this.tween = i;
|
|
1957
1958
|
for (c in e)
|
|
1958
|
-
if (c !== "autoRound" && (u = e[c], !(
|
|
1959
|
+
if (c !== "autoRound" && (u = e[c], !(ht[c] && nn(c, e, i, r, t, n)))) {
|
|
1959
1960
|
if (_ = typeof u, p = ni[c], _ === "function" && (u = u.call(i, r, t, n), _ = typeof u), _ === "string" && ~u.indexOf("random(") && (u = Ie(u)), p)
|
|
1960
1961
|
p(this, t, c, u, i) && (P = 1);
|
|
1961
1962
|
else if (c.substr(0, 2) === "--")
|
|
1962
1963
|
h = (getComputedStyle(t).getPropertyValue(c) + "").trim(), u += "", Xt.lastIndex = 0, Xt.test(h) || (g = K(h), m = K(u)), m ? g !== m && (h = Kt(t, c, h, m) + m) : g && (u += g), this.add(a, "setProperty", h, u, r, n, 0, 0, c), s.push(c), S.push(c, 0, a[c]);
|
|
1963
1964
|
else if (_ !== "undefined") {
|
|
1964
|
-
if (l && c in l ? (h = typeof l[c] == "function" ? l[c].call(i, r, t, n) : l[c], X(h) && ~h.indexOf("random(") && (h = Ie(h)), K(h + "") || h === "auto" || (h +=
|
|
1965
|
-
if (this.styles.save(c), _ === "string" && u.substring(0, 6) === "var(--" && (u = xt(t, u.substring(4, u.indexOf(")"))), f = parseFloat(u)),
|
|
1966
|
-
this._pt = new nt(this._pt,
|
|
1965
|
+
if (l && c in l ? (h = typeof l[c] == "function" ? l[c].call(i, r, t, n) : l[c], X(h) && ~h.indexOf("random(") && (h = Ie(h)), K(h + "") || h === "auto" || (h += dt.units[c] || K(Mt(t, c)) || ""), (h + "").charAt(1) === "=" && (h = Mt(t, c))) : h = Mt(t, c), d = parseFloat(h), b = _ === "string" && u.charAt(1) === "=" && u.substr(0, 2), b && (u = u.substr(2)), f = parseFloat(u), c in Ct && (c === "autoAlpha" && (d === 1 && Mt(t, "visibility") === "hidden" && f && (d = 0), S.push("visibility", 0, a.visibility), Ht(this, a, "visibility", d ? "inherit" : "hidden", f ? "inherit" : "hidden", !f)), c !== "scale" && c !== "transform" && (c = Ct[c], ~c.indexOf(",") && (c = c.split(",")[0]))), v = c in Et, v) {
|
|
1966
|
+
if (this.styles.save(c), _ === "string" && u.substring(0, 6) === "var(--" && (u = xt(t, u.substring(4, u.indexOf(")"))), f = parseFloat(u)), x || (y = t._gsap, y.renderTransform && !e.parseTransform || Ne(t, e.parseTransform), T = e.smoothOrigin !== !1 && y.smooth, x = this._pt = new nt(this._pt, a, B, 0, 1, y.renderTransform, y, 0, -1), x.dep = 1), c === "scale")
|
|
1967
|
+
this._pt = new nt(this._pt, y, "scaleY", y.scaleY, (b ? de(y.scaleY, b + f) : f) - y.scaleY || 0, Oi), this._pt.u = 0, s.push("scaleY", c), c += "X";
|
|
1967
1968
|
else if (c === "transformOrigin") {
|
|
1968
|
-
S.push(st, 0, a[st]), u =
|
|
1969
|
+
S.push(st, 0, a[st]), u = so(u), y.svg ? Ri(t, u, 0, T, 0, this) : (m = parseFloat(u.split(" ")[2]) || 0, m !== y.zOrigin && Ht(this, y, "zOrigin", y.zOrigin, m), Ht(this, a, c, si(h), si(u)));
|
|
1969
1970
|
continue;
|
|
1970
1971
|
} else if (c === "svgOrigin") {
|
|
1971
1972
|
Ri(t, u, 1, T, 0, this);
|
|
1972
1973
|
continue;
|
|
1973
1974
|
} else if (c in vn) {
|
|
1974
|
-
|
|
1975
|
+
ho(this, y, c, d, b ? de(d, b + u) : u);
|
|
1975
1976
|
continue;
|
|
1976
1977
|
} else if (c === "smoothOrigin") {
|
|
1977
|
-
Ht(this,
|
|
1978
|
+
Ht(this, y, "smooth", y.smooth, u);
|
|
1978
1979
|
continue;
|
|
1979
1980
|
} else if (c === "force3D") {
|
|
1980
|
-
|
|
1981
|
+
y[c] = u;
|
|
1981
1982
|
continue;
|
|
1982
1983
|
} else if (c === "transform") {
|
|
1983
|
-
|
|
1984
|
+
uo(this, u, t);
|
|
1984
1985
|
continue;
|
|
1985
1986
|
}
|
|
1986
|
-
} else c in a || (c =
|
|
1987
|
-
if (v || (f || f === 0) && (d || d === 0) && !
|
|
1988
|
-
g = (h + "").substr((d + "").length), f || (f = 0), m = K(u) || (c in
|
|
1987
|
+
} else c in a || (c = we(c) || c);
|
|
1988
|
+
if (v || (f || f === 0) && (d || d === 0) && !Ys.test(u) && c in a)
|
|
1989
|
+
g = (h + "").substr((d + "").length), f || (f = 0), m = K(u) || (c in dt.units ? dt.units[c] : g), g !== m && (d = Kt(t, c, h, m)), this._pt = new nt(this._pt, v ? y : a, c, d, (b ? de(d, b + f) : f) - d, !v && (m === "px" || c === "zIndex") && e.autoRound !== !1 ? Gs : Oi), this._pt.u = m || 0, g !== m && m !== "%" && (this._pt.b = h, this._pt.r = qs);
|
|
1989
1990
|
else if (c in a)
|
|
1990
|
-
|
|
1991
|
+
no.call(this, t, c, h, b ? b + u : u);
|
|
1991
1992
|
else if (c in t)
|
|
1992
1993
|
this.add(t, c, h || t[c], b ? b + u : u, r, n);
|
|
1993
1994
|
else if (c !== "parseTransform") {
|
|
@@ -2010,28 +2011,28 @@ var wn = {
|
|
|
2010
2011
|
aliases: Ct,
|
|
2011
2012
|
getSetter: function(t, e, i) {
|
|
2012
2013
|
var r = Ct[e];
|
|
2013
|
-
return r && r.indexOf(",") < 0 && (e = r), e in
|
|
2014
|
+
return r && r.indexOf(",") < 0 && (e = r), e in Et && e !== st && (t._gsap.x || Mt(t, "x")) ? i && hr === i ? e === "scale" ? Zs : Qs : (hr = i || {}) && (e === "scale" ? Js : to) : t.style && !Ii(t.style[e]) ? Ks : ~e.indexOf("-") ? js : Xi(t, e);
|
|
2014
2015
|
},
|
|
2015
2016
|
core: {
|
|
2016
2017
|
_removeProperty: ae,
|
|
2017
2018
|
_getMatrix: Qi
|
|
2018
2019
|
}
|
|
2019
2020
|
};
|
|
2020
|
-
ot.utils.checkPrefix =
|
|
2021
|
+
ot.utils.checkPrefix = we;
|
|
2021
2022
|
ot.core.getStyleSaver = pn;
|
|
2022
2023
|
(function(o, t, e, i) {
|
|
2023
2024
|
var r = rt(o + "," + t + "," + e, function(n) {
|
|
2024
|
-
|
|
2025
|
+
Et[n] = 1;
|
|
2025
2026
|
});
|
|
2026
2027
|
rt(t, function(n) {
|
|
2027
|
-
|
|
2028
|
+
dt.units[n] = "deg", vn[n] = 1;
|
|
2028
2029
|
}), Ct[r[13]] = o + "," + t, rt(i, function(n) {
|
|
2029
2030
|
var s = n.split(":");
|
|
2030
2031
|
Ct[s[1]] = r[s[0]];
|
|
2031
2032
|
});
|
|
2032
2033
|
})("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,8:rotateZ,9:rotateX,10:rotateY");
|
|
2033
2034
|
rt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(o) {
|
|
2034
|
-
|
|
2035
|
+
dt.units[o] = "px";
|
|
2035
2036
|
});
|
|
2036
2037
|
ot.registerPlugin(wn);
|
|
2037
2038
|
var ie = ot.registerPlugin(wn) || ot;
|
|
@@ -2044,50 +2045,50 @@ ie.core.Tween;
|
|
|
2044
2045
|
* Subject to the terms at https://gsap.com/standard-license
|
|
2045
2046
|
* @author: Jack Doyle, jack@greensock.com
|
|
2046
2047
|
*/
|
|
2047
|
-
var
|
|
2048
|
+
var co = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, fo = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, _o = Math.PI / 180, Ye = Math.sin, Xe = Math.cos, Re = Math.abs, Ae = Math.sqrt, po = function(t) {
|
|
2048
2049
|
return typeof t == "number";
|
|
2049
2050
|
}, mr = 1e5, Bt = function(t) {
|
|
2050
2051
|
return Math.round(t * mr) / mr || 0;
|
|
2051
2052
|
};
|
|
2052
|
-
function
|
|
2053
|
+
function go(o, t, e, i, r, n, s) {
|
|
2053
2054
|
for (var a = o.length, l, h, u, f, d; --a > -1; )
|
|
2054
2055
|
for (l = o[a], h = l.length, u = 0; u < h; u += 2)
|
|
2055
2056
|
f = l[u], d = l[u + 1], l[u] = f * t + d * i + n, l[u + 1] = f * e + d * r + s;
|
|
2056
2057
|
return o._dirty = 1, o;
|
|
2057
2058
|
}
|
|
2058
|
-
function
|
|
2059
|
+
function bo(o, t, e, i, r, n, s, a, l) {
|
|
2059
2060
|
if (!(o === a && t === l)) {
|
|
2060
|
-
e =
|
|
2061
|
-
var h = r % 360 *
|
|
2062
|
-
|
|
2063
|
-
var
|
|
2061
|
+
e = Re(e), i = Re(i);
|
|
2062
|
+
var h = r % 360 * _o, u = Xe(h), f = Ye(h), d = Math.PI, _ = d * 2, p = (o - a) / 2, c = (t - l) / 2, g = u * p + f * c, m = -f * p + u * c, b = g * g, v = m * m, x = b / (e * e) + v / (i * i);
|
|
2063
|
+
x > 1 && (e = Ae(x) * e, i = Ae(x) * i);
|
|
2064
|
+
var y = e * e, T = i * i, P = (y * T - y * v - T * b) / (y * v + T * b);
|
|
2064
2065
|
P < 0 && (P = 0);
|
|
2065
|
-
var S = (n === s ? -1 : 1) *
|
|
2066
|
+
var S = (n === s ? -1 : 1) * Ae(P), w = S * (e * m / i), C = S * -(i * g / e), M = (o + a) / 2, O = (t + l) / 2, R = M + (u * w - f * C), Y = O + (f * w + u * C), E = (g - w) / e, z = (m - C) / i, $ = (-g - w) / e, G = (-m - C) / i, Qt = E * E + z * z, Lt = (z < 0 ? -1 : 1) * Math.acos(E / Ae(Qt)), Z = (E * G - z * $ < 0 ? -1 : 1) * Math.acos((E * $ + z * G) / Ae(Qt * ($ * $ + G * G)));
|
|
2066
2067
|
isNaN(Z) && (Z = d), !s && Z > 0 ? Z -= _ : s && Z < 0 && (Z += _), Lt %= _, Z %= _;
|
|
2067
|
-
var Pt = Math.ceil(
|
|
2068
|
-
for (
|
|
2069
|
-
r = Lt +
|
|
2070
|
-
for (
|
|
2071
|
-
g =
|
|
2072
|
-
return
|
|
2068
|
+
var Pt = Math.ceil(Re(Z) / (_ / 4)), gt = [], tt = Z / Pt, bt = 4 / 3 * Ye(tt / 2) / (1 + Xe(tt / 2)), Mn = u * e, Rn = f * e, zn = f * -i, En = u * i, lt;
|
|
2069
|
+
for (lt = 0; lt < Pt; lt++)
|
|
2070
|
+
r = Lt + lt * tt, g = Xe(r), m = Ye(r), E = Xe(r += tt), z = Ye(r), gt.push(g - bt * m, m + bt * g, E + bt * z, z - bt * E, E, z);
|
|
2071
|
+
for (lt = 0; lt < gt.length; lt += 2)
|
|
2072
|
+
g = gt[lt], m = gt[lt + 1], gt[lt] = g * Mn + m * zn + R, gt[lt + 1] = g * Rn + m * En + Y;
|
|
2073
|
+
return gt[lt - 2] = a, gt[lt - 1] = l, gt;
|
|
2073
2074
|
}
|
|
2074
2075
|
}
|
|
2075
|
-
function
|
|
2076
|
-
var t = (o + "").replace(
|
|
2076
|
+
function mo(o) {
|
|
2077
|
+
var t = (o + "").replace(fo, function(w) {
|
|
2077
2078
|
var C = +w;
|
|
2078
2079
|
return C < 1e-4 && C > -1e-4 ? 0 : C;
|
|
2079
|
-
}).match(
|
|
2080
|
+
}).match(co) || [], e = [], i = 0, r = 0, n = 2 / 3, s = t.length, a = 0, l = "ERROR: malformed path: " + o, h, u, f, d, _, p, c, g, m, b, v, x, y, T, P, S = function(C, M, O, R) {
|
|
2080
2081
|
b = (O - C) / 3, v = (R - M) / 3, c.push(C + b, M + v, O - b, R - v, O, R);
|
|
2081
2082
|
};
|
|
2082
2083
|
if (!o || !isNaN(t[0]) || isNaN(t[1]))
|
|
2083
2084
|
return console.log(l), e;
|
|
2084
2085
|
for (h = 0; h < s; h++)
|
|
2085
|
-
if (
|
|
2086
|
+
if (y = _, isNaN(t[h]) ? (_ = t[h].toUpperCase(), p = _ !== t[h]) : h--, f = +t[h + 1], d = +t[h + 2], p && (f += i, d += r), h || (g = f, m = d), _ === "M")
|
|
2086
2087
|
c && (c.length < 8 ? e.length -= 1 : a += c.length), i = g = f, r = m = d, c = [f, d], e.push(c), h += 2, _ = "L";
|
|
2087
2088
|
else if (_ === "C")
|
|
2088
2089
|
c || (c = [0, 0]), p || (i = r = 0), c.push(f, d, i + t[h + 3] * 1, r + t[h + 4] * 1, i += t[h + 5] * 1, r += t[h + 6] * 1), h += 6;
|
|
2089
2090
|
else if (_ === "S")
|
|
2090
|
-
b = i, v = r, (
|
|
2091
|
+
b = i, v = r, (y === "C" || y === "S") && (b += i - c[c.length - 4], v += r - c[c.length - 3]), p || (i = r = 0), c.push(b, v, f, d, i += t[h + 3] * 1, r += t[h + 4] * 1), h += 4;
|
|
2091
2092
|
else if (_ === "Q")
|
|
2092
2093
|
b = i + (f - i) * n, v = r + (d - r) * n, p || (i = r = 0), i += t[h + 3] * 1, r += t[h + 4] * 1, c.push(b, v, i + (f - i) * n, r + (d - r) * n, i, r), h += 4;
|
|
2093
2094
|
else if (_ === "T")
|
|
@@ -2097,18 +2098,18 @@ function bo(o) {
|
|
|
2097
2098
|
else if (_ === "V")
|
|
2098
2099
|
S(i, r, i, r = f + (p ? r - i : 0)), h += 1;
|
|
2099
2100
|
else if (_ === "L" || _ === "Z")
|
|
2100
|
-
_ === "Z" && (f = g, d = m, c.closed = !0), (_ === "L" ||
|
|
2101
|
+
_ === "Z" && (f = g, d = m, c.closed = !0), (_ === "L" || Re(i - f) > 0.5 || Re(r - d) > 0.5) && (S(i, r, f, d), _ === "L" && (h += 2)), i = f, r = d;
|
|
2101
2102
|
else if (_ === "A") {
|
|
2102
|
-
if (T = t[h + 4], P = t[h + 5], b = t[h + 6], v = t[h + 7], u = 7, T.length > 1 && (T.length < 3 ? (v = b, b = P, u--) : (v = P, b = T.substr(2), u -= 2), P = T.charAt(1), T = T.charAt(0)),
|
|
2103
|
-
for (u = 0; u <
|
|
2104
|
-
c.push(
|
|
2103
|
+
if (T = t[h + 4], P = t[h + 5], b = t[h + 6], v = t[h + 7], u = 7, T.length > 1 && (T.length < 3 ? (v = b, b = P, u--) : (v = P, b = T.substr(2), u -= 2), P = T.charAt(1), T = T.charAt(0)), x = bo(i, r, +t[h + 1], +t[h + 2], +t[h + 3], +T, +P, (p ? i : 0) + b * 1, (p ? r : 0) + v * 1), h += u, x)
|
|
2104
|
+
for (u = 0; u < x.length; u++)
|
|
2105
|
+
c.push(x[u]);
|
|
2105
2106
|
i = c[c.length - 2], r = c[c.length - 1];
|
|
2106
2107
|
} else
|
|
2107
2108
|
console.log(l);
|
|
2108
2109
|
return h = c.length, h < 6 ? (e.pop(), h = 0) : c[0] === c[h - 2] && c[1] === c[h - 1] && (c.closed = !0), e.totalPoints = a + h, e;
|
|
2109
2110
|
}
|
|
2110
|
-
function
|
|
2111
|
-
|
|
2111
|
+
function vo(o) {
|
|
2112
|
+
po(o[0]) && (o = [o]);
|
|
2112
2113
|
var t = "", e = o.length, i, r, n, s;
|
|
2113
2114
|
for (r = 0; r < e; r++) {
|
|
2114
2115
|
for (s = o[r], t += "M" + Bt(s[0]) + "," + Bt(s[1]) + " C", i = s.length, n = 2; n < i; n++)
|
|
@@ -2129,20 +2130,20 @@ var et, Tn, Pn = function() {
|
|
|
2129
2130
|
return et || typeof window < "u" && (et = window.gsap) && et.registerPlugin && et;
|
|
2130
2131
|
}, vr = function() {
|
|
2131
2132
|
et = Pn(), et ? (et.registerEase("_CE", Ft.create), Tn = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
|
|
2132
|
-
},
|
|
2133
|
+
}, yo = 1e20, qe = function(t) {
|
|
2133
2134
|
return ~~(t * 1e3 + (t < 0 ? -0.5 : 0.5)) / 1e3;
|
|
2134
|
-
}, xo = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,
|
|
2135
|
-
var e = t.length, i =
|
|
2135
|
+
}, xo = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi, wo = /[cLlsSaAhHvVtTqQ]/g, To = function(t) {
|
|
2136
|
+
var e = t.length, i = yo, r;
|
|
2136
2137
|
for (r = 1; r < e; r += 6)
|
|
2137
2138
|
+t[r] < i && (i = +t[r]);
|
|
2138
2139
|
return i;
|
|
2139
|
-
},
|
|
2140
|
+
}, Po = function(t, e, i) {
|
|
2140
2141
|
!i && i !== 0 && (i = Math.max(+t[t.length - 1], +t[1]));
|
|
2141
|
-
var r = +t[0] * -1, n = -i, s = t.length, a = 1 / (+t[s - 2] + r), l = -e || (Math.abs(+t[s - 1] - +t[1]) < 0.01 * (+t[s - 2] - +t[0]) ?
|
|
2142
|
+
var r = +t[0] * -1, n = -i, s = t.length, a = 1 / (+t[s - 2] + r), l = -e || (Math.abs(+t[s - 1] - +t[1]) < 0.01 * (+t[s - 2] - +t[0]) ? To(t) + n : +t[s - 1] + n), h;
|
|
2142
2143
|
for (l ? l = 1 / l : l = -a, h = 0; h < s; h += 2)
|
|
2143
2144
|
t[h] = (+t[h] + r) * a, t[h + 1] = (+t[h + 1] + n) * l;
|
|
2144
|
-
},
|
|
2145
|
-
var d = (t + i) / 2, _ = (e + r) / 2, p = (i + n) / 2, c = (r + s) / 2, g = (n + a) / 2, m = (s + l) / 2, b = (d + p) / 2, v = (_ + c) / 2,
|
|
2145
|
+
}, So = function o(t, e, i, r, n, s, a, l, h, u, f) {
|
|
2146
|
+
var d = (t + i) / 2, _ = (e + r) / 2, p = (i + n) / 2, c = (r + s) / 2, g = (n + a) / 2, m = (s + l) / 2, b = (d + p) / 2, v = (_ + c) / 2, x = (p + g) / 2, y = (c + m) / 2, T = (b + x) / 2, P = (v + y) / 2, S = a - t, w = l - e, C = Math.abs((i - a) * w - (r - l) * S), M = Math.abs((n - a) * w - (s - l) * S), O;
|
|
2146
2147
|
return u || (u = [{
|
|
2147
2148
|
x: t,
|
|
2148
2149
|
y: e
|
|
@@ -2152,7 +2153,7 @@ var et, Tn, Pn = function() {
|
|
|
2152
2153
|
}], f = 1), u.splice(f || u.length - 1, 0, {
|
|
2153
2154
|
x: T,
|
|
2154
2155
|
y: P
|
|
2155
|
-
}), (C + M) * (C + M) > h * (S * S + w * w) && (O = u.length, o(t, e, d, _, b, v, T, P, h, u, f), o(T, P,
|
|
2156
|
+
}), (C + M) * (C + M) > h * (S * S + w * w) && (O = u.length, o(t, e, d, _, b, v, T, P, h, u, f), o(T, P, x, y, g, m, a, l, h, u, f + 1 + (u.length - O))), u;
|
|
2156
2157
|
}, Ft = /* @__PURE__ */ function() {
|
|
2157
2158
|
function o(e, i, r) {
|
|
2158
2159
|
Tn || vr(), this.id = e, this.setData(i, r);
|
|
@@ -2161,18 +2162,18 @@ var et, Tn, Pn = function() {
|
|
|
2161
2162
|
return t.setData = function(i, r) {
|
|
2162
2163
|
r = r || {}, i = i || "0,0,1,1";
|
|
2163
2164
|
var n = i.match(xo), s = 1, a = [], l = [], h = r.precision || 1, u = h <= 1, f, d, _, p, c, g, m, b, v;
|
|
2164
|
-
if (this.data = i, (
|
|
2165
|
+
if (this.data = i, (wo.test(i) || ~i.indexOf("M") && i.indexOf("C") < 0) && (n = mo(i)[0]), f = n.length, f === 4)
|
|
2165
2166
|
n.unshift(0, 0), n.push(1, 1), f = 8;
|
|
2166
2167
|
else if ((f - 2) % 6)
|
|
2167
2168
|
throw "Invalid CustomEase";
|
|
2168
|
-
for ((+n[0] != 0 || +n[f - 2] != 1) &&
|
|
2169
|
+
for ((+n[0] != 0 || +n[f - 2] != 1) && Po(n, r.height, r.originY), this.segment = n, p = 2; p < f; p += 6)
|
|
2169
2170
|
d = {
|
|
2170
2171
|
x: +n[p - 2],
|
|
2171
2172
|
y: +n[p - 1]
|
|
2172
2173
|
}, _ = {
|
|
2173
2174
|
x: +n[p + 4],
|
|
2174
2175
|
y: +n[p + 5]
|
|
2175
|
-
}, a.push(d, _),
|
|
2176
|
+
}, a.push(d, _), So(d.x, d.y, +n[p], +n[p + 1], +n[p + 2], +n[p + 3], _.x, _.y, 1 / (h * 2e5), a, a.length - 1);
|
|
2176
2177
|
for (f = a.length, p = 0; p < f; p++)
|
|
2177
2178
|
m = a[p], b = a[p - 1] || m, (m.x > b.x || b.y !== m.y && b.x === m.x || m === b) && m.x <= 1 ? (b.cx = m.x - b.x, b.cy = m.y - b.y, b.n = m, b.nx = m.x, u && p > 1 && Math.abs(b.cy / b.cx - a[p - 2].cy / a[p - 2].cx) > 2 && (u = 0), b.cx < s && (b.cx ? s = b.cx : (b.cx = 1e-3, p === f - 1 && (b.x -= 1e-3, s = Math.min(s, 1e-3), u = 0)))) : (a.splice(p--, 1), f--);
|
|
2178
2179
|
if (f = 1 / s + 1 | 0, c = 1 / f, g = 0, m = a[0], u) {
|
|
@@ -2190,9 +2191,9 @@ var et, Tn, Pn = function() {
|
|
|
2190
2191
|
m.nx < p * c && (m = a[++g]), l[p] = m;
|
|
2191
2192
|
g < a.length - 1 && (l[p - 1] = a[a.length - 2]);
|
|
2192
2193
|
}
|
|
2193
|
-
return this.ease = function(
|
|
2194
|
-
var
|
|
2195
|
-
return
|
|
2194
|
+
return this.ease = function(x) {
|
|
2195
|
+
var y = l[x * f | 0] || l[f - 1];
|
|
2196
|
+
return y.nx < x && (y = y.n), y.y + (x - y.x) / y.cx * y.cy;
|
|
2196
2197
|
}, this.ease.custom = this, this.id && et && et.registerEase(this.id, this.ease), this;
|
|
2197
2198
|
}, t.getSVGData = function(i) {
|
|
2198
2199
|
return o.getSVGData(this, i);
|
|
@@ -2206,10 +2207,10 @@ var et, Tn, Pn = function() {
|
|
|
2206
2207
|
r = r || {};
|
|
2207
2208
|
var n = r.width || 100, s = r.height || 100, a = r.x || 0, l = (r.y || 0) + s, h = et.utils.toArray(r.path)[0], u, f, d, _, p, c, g, m, b, v;
|
|
2208
2209
|
if (r.invert && (s = -s, l = 0), typeof i == "string" && (i = et.parseEase(i)), i.custom && (i = i.custom), i instanceof o)
|
|
2209
|
-
u =
|
|
2210
|
+
u = vo(go([i.segment], n, 0, 0, -s, a, l));
|
|
2210
2211
|
else {
|
|
2211
|
-
for (u = [a, l], g = Math.max(5, (r.precision || 1) * 200), _ = 1 / g, g += 2, m = 5 / g, b =
|
|
2212
|
-
p =
|
|
2212
|
+
for (u = [a, l], g = Math.max(5, (r.precision || 1) * 200), _ = 1 / g, g += 2, m = 5 / g, b = qe(a + _ * n), v = qe(l + i(_) * -s), f = (v - l) / (b - a), d = 2; d < g; d++)
|
|
2213
|
+
p = qe(a + d * _ * n), c = qe(l + i(d * _) * -s), (Math.abs((c - v) / (p - b) - f) > m || d === g - 1) && (u.push(b, v), f = (c - v) / (p - b)), b = p, v = c;
|
|
2213
2214
|
u = "M" + u.join(",");
|
|
2214
2215
|
}
|
|
2215
2216
|
return h && h.setAttribute("d", u), u;
|
|
@@ -2226,24 +2227,24 @@ Pn() && et.registerPlugin(Ft);
|
|
|
2226
2227
|
* Subject to the terms at https://gsap.com/standard-license
|
|
2227
2228
|
* @author: Jack Doyle, jack@greensock.com
|
|
2228
2229
|
*/
|
|
2229
|
-
var j, Sn, Rt, kt, qt, An,
|
|
2230
|
+
var j, Sn, Rt, kt, qt, An, ge, Ge, Cn = function() {
|
|
2230
2231
|
return typeof window < "u";
|
|
2231
2232
|
}, kn = function() {
|
|
2232
2233
|
return j || Cn() && (j = window.gsap) && j.registerPlugin && j;
|
|
2233
2234
|
}, On = function(t) {
|
|
2234
2235
|
return typeof t == "string";
|
|
2235
|
-
},
|
|
2236
|
+
}, yr = function(t) {
|
|
2236
2237
|
return typeof t == "function";
|
|
2237
|
-
},
|
|
2238
|
+
}, Be = function(t, e) {
|
|
2238
2239
|
var i = e === "x" ? "Width" : "Height", r = "scroll" + i, n = "client" + i;
|
|
2239
2240
|
return t === Rt || t === kt || t === qt ? Math.max(kt[r], qt[r]) - (Rt["inner" + i] || kt[n] || qt[n]) : t[r] - t["offset" + i];
|
|
2240
|
-
},
|
|
2241
|
+
}, We = function(t, e) {
|
|
2241
2242
|
var i = "scroll" + (e === "x" ? "Left" : "Top");
|
|
2242
2243
|
return t === Rt && (t.pageXOffset != null ? i = "page" + e.toUpperCase() + "Offset" : t = kt[i] != null ? kt : qt), function() {
|
|
2243
2244
|
return t[i];
|
|
2244
2245
|
};
|
|
2245
|
-
},
|
|
2246
|
-
if (
|
|
2246
|
+
}, Ao = function(t, e, i, r) {
|
|
2247
|
+
if (yr(t) && (t = t(e, i, r)), typeof t != "object")
|
|
2247
2248
|
return On(t) && t !== "max" && t.charAt(1) !== "=" ? {
|
|
2248
2249
|
x: t,
|
|
2249
2250
|
y: t
|
|
@@ -2257,7 +2258,7 @@ var j, Sn, Rt, kt, qt, An, pe, qe, Cn = function() {
|
|
|
2257
2258
|
};
|
|
2258
2259
|
var n = {}, s;
|
|
2259
2260
|
for (s in t)
|
|
2260
|
-
n[s] = s !== "onAutoKill" &&
|
|
2261
|
+
n[s] = s !== "onAutoKill" && yr(t[s]) ? t[s](e, i, r) : t[s];
|
|
2261
2262
|
return n;
|
|
2262
2263
|
}, Dn = function(t, e) {
|
|
2263
2264
|
if (t = An(t)[0], !t || !t.getBoundingClientRect)
|
|
@@ -2272,14 +2273,14 @@ var j, Sn, Rt, kt, qt, An, pe, qe, Cn = function() {
|
|
|
2272
2273
|
x: i.left - n.left,
|
|
2273
2274
|
y: i.top - n.top
|
|
2274
2275
|
};
|
|
2275
|
-
return !r && e && (s.x +=
|
|
2276
|
-
},
|
|
2277
|
-
return !isNaN(t) && typeof t != "object" ? parseFloat(t) - n : On(t) && t.charAt(1) === "=" ? parseFloat(t.substr(2)) * (t.charAt(0) === "-" ? -1 : 1) + r - n : t === "max" ?
|
|
2276
|
+
return !r && e && (s.x += We(e, "x")(), s.y += We(e, "y")()), s;
|
|
2277
|
+
}, xr = function(t, e, i, r, n) {
|
|
2278
|
+
return !isNaN(t) && typeof t != "object" ? parseFloat(t) - n : On(t) && t.charAt(1) === "=" ? parseFloat(t.substr(2)) * (t.charAt(0) === "-" ? -1 : 1) + r - n : t === "max" ? Be(e, i) - n : Math.min(Be(e, i), Dn(t, e)[i] - n);
|
|
2278
2279
|
}, zi = function() {
|
|
2279
2280
|
j = kn(), Cn() && j && typeof document < "u" && document.body && (Rt = window, qt = document.body, kt = document.documentElement, An = j.utils.toArray, j.config({
|
|
2280
2281
|
autoKillThreshold: 7
|
|
2281
|
-
}),
|
|
2282
|
-
},
|
|
2282
|
+
}), ge = j.config(), Sn = 1);
|
|
2283
|
+
}, Te = {
|
|
2283
2284
|
version: "3.13.0",
|
|
2284
2285
|
name: "scrollTo",
|
|
2285
2286
|
rawVars: 1,
|
|
@@ -2289,36 +2290,36 @@ var j, Sn, Rt, kt, qt, An, pe, qe, Cn = function() {
|
|
|
2289
2290
|
init: function(t, e, i, r, n) {
|
|
2290
2291
|
Sn || zi();
|
|
2291
2292
|
var s = this, a = j.getProperty(t, "scrollSnapType");
|
|
2292
|
-
s.isWin = t === Rt, s.target = t, s.tween = i, e =
|
|
2293
|
+
s.isWin = t === Rt, s.target = t, s.tween = i, e = Ao(e, r, t, n), s.vars = e, s.autoKill = !!("autoKill" in e ? e : ge).autoKill, s.getX = We(t, "x"), s.getY = We(t, "y"), s.x = s.xPrev = s.getX(), s.y = s.yPrev = s.getY(), Ge || (Ge = j.core.globals().ScrollTrigger), j.getProperty(t, "scrollBehavior") === "smooth" && j.set(t, {
|
|
2293
2294
|
scrollBehavior: "auto"
|
|
2294
|
-
}), a && a !== "none" && (s.snap = 1, s.snapInline = t.style.scrollSnapType, t.style.scrollSnapType = "none"), e.x != null ? (s.add(s, "x", s.x,
|
|
2295
|
+
}), a && a !== "none" && (s.snap = 1, s.snapInline = t.style.scrollSnapType, t.style.scrollSnapType = "none"), e.x != null ? (s.add(s, "x", s.x, xr(e.x, t, "x", s.x, e.offsetX || 0), r, n), s._props.push("scrollTo_x")) : s.skipX = 1, e.y != null ? (s.add(s, "y", s.y, xr(e.y, t, "y", s.y, e.offsetY || 0), r, n), s._props.push("scrollTo_y")) : s.skipY = 1;
|
|
2295
2296
|
},
|
|
2296
2297
|
render: function(t, e) {
|
|
2297
2298
|
for (var i = e._pt, r = e.target, n = e.tween, s = e.autoKill, a = e.xPrev, l = e.yPrev, h = e.isWin, u = e.snap, f = e.snapInline, d, _, p, c, g; i; )
|
|
2298
2299
|
i.r(t, i.d), i = i._next;
|
|
2299
|
-
d = h || !e.skipX ? e.getX() : a, _ = h || !e.skipY ? e.getY() : l, p = _ - l, c = d - a, g =
|
|
2300
|
+
d = h || !e.skipX ? e.getX() : a, _ = h || !e.skipY ? e.getY() : l, p = _ - l, c = d - a, g = ge.autoKillThreshold, e.x < 0 && (e.x = 0), e.y < 0 && (e.y = 0), s && (!e.skipX && (c > g || c < -g) && d < Be(r, "x") && (e.skipX = 1), !e.skipY && (p > g || p < -g) && _ < Be(r, "y") && (e.skipY = 1), e.skipX && e.skipY && (n.kill(), e.vars.onAutoKill && e.vars.onAutoKill.apply(n, e.vars.onAutoKillParams || []))), h ? Rt.scrollTo(e.skipX ? d : e.x, e.skipY ? _ : e.y) : (e.skipY || (r.scrollTop = e.y), e.skipX || (r.scrollLeft = e.x)), u && (t === 1 || t === 0) && (_ = r.scrollTop, d = r.scrollLeft, f ? r.style.scrollSnapType = f : r.style.removeProperty("scroll-snap-type"), r.scrollTop = _ + 1, r.scrollLeft = d + 1, r.scrollTop = _, r.scrollLeft = d), e.xPrev = e.x, e.yPrev = e.y, Ge && Ge.update();
|
|
2300
2301
|
},
|
|
2301
2302
|
kill: function(t) {
|
|
2302
2303
|
var e = t === "scrollTo", i = this._props.indexOf(t);
|
|
2303
2304
|
return (e || t === "scrollTo_x") && (this.skipX = 1), (e || t === "scrollTo_y") && (this.skipY = 1), i > -1 && this._props.splice(i, 1), !this._props.length;
|
|
2304
2305
|
}
|
|
2305
2306
|
};
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2307
|
+
Te.max = Be;
|
|
2308
|
+
Te.getOffset = Dn;
|
|
2309
|
+
Te.buildGetter = We;
|
|
2310
|
+
Te.config = function(o) {
|
|
2311
|
+
ge || zi() || (ge = j.config());
|
|
2311
2312
|
for (var t in o)
|
|
2312
|
-
|
|
2313
|
+
ge[t] = o[t];
|
|
2313
2314
|
};
|
|
2314
|
-
kn() && j.registerPlugin(
|
|
2315
|
-
ie.registerPlugin(
|
|
2315
|
+
kn() && j.registerPlugin(Te);
|
|
2316
|
+
ie.registerPlugin(Te);
|
|
2316
2317
|
ie.registerPlugin(Ft);
|
|
2317
2318
|
Ft.create("cubic", "0.65, 0, 0.35, 1");
|
|
2318
2319
|
Ft.create("expo", "0.87, 0, 0.13, 1");
|
|
2319
2320
|
Ft.create("quad", "0.45, 0, 0.55, 1");
|
|
2320
2321
|
Ft.create("linear", "0.42, 0, 0.58, 1");
|
|
2321
|
-
const
|
|
2322
|
+
const Co = Fn`
|
|
2322
2323
|
:host {
|
|
2323
2324
|
--indicator-color: var(--cx-color-primary);
|
|
2324
2325
|
--indicator-width: 2px;
|
|
@@ -2351,6 +2352,10 @@ const Ao = Fn`
|
|
|
2351
2352
|
flex: 0 0 auto;
|
|
2352
2353
|
}
|
|
2353
2354
|
|
|
2355
|
+
.tab-group--button .tab-group__indicator {
|
|
2356
|
+
--indicator-width: 0;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2354
2359
|
.tab-group__indicator {
|
|
2355
2360
|
position: absolute;
|
|
2356
2361
|
transition:
|
|
@@ -2730,8 +2735,8 @@ const Ao = Fn`
|
|
|
2730
2735
|
}
|
|
2731
2736
|
|
|
2732
2737
|
.timeline-line {
|
|
2733
|
-
|
|
2734
|
-
|
|
2738
|
+
--offset: var(--min-tab-width);
|
|
2739
|
+
--horizontal-padding: var(--cx-spacing-small);
|
|
2735
2740
|
|
|
2736
2741
|
position: absolute;
|
|
2737
2742
|
top: 18px;
|
|
@@ -2743,14 +2748,14 @@ const Ao = Fn`
|
|
|
2743
2748
|
display: block;
|
|
2744
2749
|
}
|
|
2745
2750
|
`;
|
|
2746
|
-
var
|
|
2747
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
2751
|
+
var ko = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, k = (o, t, e, i) => {
|
|
2752
|
+
for (var r = i > 1 ? void 0 : i ? Oo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2748
2753
|
(s = o[n]) && (r = (i ? s(t, e, r) : s(r)) || r);
|
|
2749
|
-
return i && r &&
|
|
2754
|
+
return i && r && ko(t, e, r), r;
|
|
2750
2755
|
};
|
|
2751
2756
|
let A = class extends Ln {
|
|
2752
2757
|
constructor() {
|
|
2753
|
-
super(...arguments), this.localize = new Bn(this), this.tabs = [], this.focusableTabs = [], this.panels = [], this.hasScrollControls = !1, this.shouldHideScrollStartButton = !1, this.shouldHideScrollEndButton = !1, this.dropdownOffset = 0, this.tabPanelHeight = 0, this.tabAlignmentIndent = 0, this.shouldIgnoreAlignment = !1, this.shouldShowDropdown = !1, this.isActiveTabHidden = !1, this.paginationCount = 0, this.activePaginationIndex = 0, this.tabWidth = 0, this.placement = bi.Top, this.activation = wr.Auto, this.noScrollControls = !1, this.fixedScrollControls = !1, this.useMaxPanelHeight = !1, this.variant =
|
|
2758
|
+
super(...arguments), this.localize = new Bn(this), this.tabs = [], this.focusableTabs = [], this.panels = [], this.hasScrollControls = !1, this.shouldHideScrollStartButton = !1, this.shouldHideScrollEndButton = !1, this.dropdownOffset = 0, this.tabPanelHeight = 0, this.tabAlignmentIndent = 0, this.shouldIgnoreAlignment = !1, this.shouldShowDropdown = !1, this.isActiveTabHidden = !1, this.paginationCount = 0, this.activePaginationIndex = 0, this.tabWidth = 0, this.clampedTabsPerPage = 0, this.placement = bi.Top, this.activation = wr.Auto, this.noScrollControls = !1, this.fixedScrollControls = !1, this.useMaxPanelHeight = !1, this.variant = ue.Default, this.overflowVariant = Tt.Scroll, this.hidePanelVariant = Wt.DisplayNone, this.tabAlignment = Ke.Start, this.dropdownLabel = "", this.tabsPerPage = 0, this.minTabWidth = 120, this.scrollOffset = 1;
|
|
2754
2759
|
}
|
|
2755
2760
|
connectedCallback() {
|
|
2756
2761
|
const o = Promise.all([
|
|
@@ -2768,7 +2773,7 @@ let A = class extends Ln {
|
|
|
2768
2773
|
attributes: !0,
|
|
2769
2774
|
childList: !0,
|
|
2770
2775
|
subtree: !0
|
|
2771
|
-
}), this.resizeObserver.observe(this.nav), this.hidePanelVariant ===
|
|
2776
|
+
}), this.resizeObserver.observe(this.nav), this.hidePanelVariant === Wt.Absolute && (this.setupPanelResizeObserver(), this.calculateTabPanelHeight()), o.then(() => {
|
|
2772
2777
|
new IntersectionObserver(
|
|
2773
2778
|
(e, i) => {
|
|
2774
2779
|
e[0].intersectionRatio > 0 && (this.setAriaLabels(), this.setActiveTab(this.getActiveTab() ?? this.tabs[0], {
|
|
@@ -2817,13 +2822,13 @@ let A = class extends Ln {
|
|
|
2817
2822
|
* If dropdown overflow but placement is start and end, count as scroll overflow
|
|
2818
2823
|
*/
|
|
2819
2824
|
get allowDropdownOverflow() {
|
|
2820
|
-
return this.overflowVariant ===
|
|
2825
|
+
return this.overflowVariant === Tt.Dropdown && !["start", "end"].includes(this.placement);
|
|
2821
2826
|
}
|
|
2822
2827
|
/**
|
|
2823
2828
|
* Get the height of the body
|
|
2824
2829
|
*/
|
|
2825
2830
|
get bodyHeight() {
|
|
2826
|
-
return this.hidePanelVariant ===
|
|
2831
|
+
return this.hidePanelVariant === Wt.Absolute && this.tabPanelHeight > 0 ? `${this.tabPanelHeight}px` : "";
|
|
2827
2832
|
}
|
|
2828
2833
|
/**
|
|
2829
2834
|
* Get caret direction based on placement
|
|
@@ -2954,9 +2959,9 @@ let A = class extends Ln {
|
|
|
2954
2959
|
for (const i of this.tabs)
|
|
2955
2960
|
i.active = i === this.activeTab, i.tabIndex = i === this.activeTab ? 0 : -1;
|
|
2956
2961
|
for (const i of this.panels)
|
|
2957
|
-
i.active = i.name === this.activeTab?.panel, this.hidePanelVariant ===
|
|
2962
|
+
i.active = i.name === this.activeTab?.panel, this.hidePanelVariant === Wt.Absolute && (i.inert = i.name !== this.activeTab?.panel);
|
|
2958
2963
|
if (this.syncIndicator(), this.calculateTabPanelHeight(), !this.activeTab?.hasAttribute("data-hidden") && ["top", "bottom"].includes(this.placement)) {
|
|
2959
|
-
if (
|
|
2964
|
+
if (Wn(this.nav, this.activeTab, 10) || !t.paginate)
|
|
2960
2965
|
Zi(
|
|
2961
2966
|
this.activeTab,
|
|
2962
2967
|
this.nav,
|
|
@@ -2978,7 +2983,7 @@ let A = class extends Ln {
|
|
|
2978
2983
|
});
|
|
2979
2984
|
}
|
|
2980
2985
|
}
|
|
2981
|
-
t.emitEvents && (e && this.emit("cx-tab-hide", { detail: { name: e.panel } }), this.emit("cx-tab-show", { detail: { name: this.activeTab.panel } }));
|
|
2986
|
+
t.emitEvents && (e && this.emit("cx-tab-hide", { detail: { name: e.panel } }), this.emit("cx-tab-show", { detail: { name: this.activeTab.panel } })), this.variant === ue.Timeline && this.handleVariantChange();
|
|
2982
2987
|
}
|
|
2983
2988
|
}
|
|
2984
2989
|
setAriaLabels() {
|
|
@@ -3014,7 +3019,7 @@ let A = class extends Ln {
|
|
|
3014
3019
|
*/
|
|
3015
3020
|
syncTabsAndPanels() {
|
|
3016
3021
|
if (this.tabs = this.getAllTabs(), this.focusableTabs = this.tabs.filter((o) => !o.disabled), this.panels = this.getAllPanels(), this.syncIndicator(), this.updateComplete.then(() => {
|
|
3017
|
-
this.updateScrollControls(), this.updatePagination(), this.hidePanelVariant ===
|
|
3022
|
+
this.updateScrollControls(), this.updatePagination(), this.variant === ue.Timeline && this.handleVariantChange(), this.hidePanelVariant === Wt.Absolute && (this.setupPanelResizeObserver(), this.calculateTabPanelHeight());
|
|
3018
3023
|
}), this.allowDropdownOverflow) {
|
|
3019
3024
|
const o = new IntersectionObserver(
|
|
3020
3025
|
(t) => {
|
|
@@ -3045,7 +3050,7 @@ let A = class extends Ln {
|
|
|
3045
3050
|
}
|
|
3046
3051
|
this.shouldShowDropdown || d > _ ? (u.active && (this.isActiveTabHidden = !0), u.setAttribute("data-hidden", ""), this.shouldShowDropdown = !0) : (u.removeAttribute("data-hidden"), this.dropdownOffset += u.getBoundingClientRect().width);
|
|
3047
3052
|
}
|
|
3048
|
-
this.dropdownOffset = Math.floor(this.dropdownOffset), this.dropdownOffset + s > r && (this.dropdownOffset = r - s), this.tabAlignment !==
|
|
3053
|
+
this.dropdownOffset = Math.floor(this.dropdownOffset), this.dropdownOffset + s > r && (this.dropdownOffset = r - s), this.tabAlignment !== Ke.Start ? (this.tabAlignmentIndent = r - this.dropdownOffset - (this.shouldShowDropdown ? s : 0), this.tabAlignment === Ke.Center && (this.tabAlignmentIndent = Math.floor(this.tabAlignmentIndent / 2))) : this.tabAlignmentIndent = 0;
|
|
3049
3054
|
},
|
|
3050
3055
|
{
|
|
3051
3056
|
root: this.nav,
|
|
@@ -3077,14 +3082,21 @@ let A = class extends Ln {
|
|
|
3077
3082
|
}
|
|
3078
3083
|
this.paginationCount = Math.ceil(this.tabButtons.scrollWidth / t);
|
|
3079
3084
|
let e = Math.round(o / t);
|
|
3080
|
-
Math.ceil(o + t) >= Math.round(this.tabButtons.scrollWidth) && e < this.paginationCount - 1 && (e = this.paginationCount - 1), this.activePaginationIndex = e, this.tabsPerPage > 0
|
|
3085
|
+
if (Math.ceil(o + t) >= Math.round(this.tabButtons.scrollWidth) && e < this.paginationCount - 1 && (e = this.paginationCount - 1), this.activePaginationIndex = e, this.tabsPerPage > 0) {
|
|
3086
|
+
const i = getComputedStyle(this.tabButtons).getPropertyValue("--tab-padding"), [, r, , n] = Vn(i), s = t / this.tabsPerPage, a = this.minTabWidth + Number.parseFloat(r) + Number.parseFloat(n);
|
|
3087
|
+
s < a ? (this.tabWidth = a, this.clampedTabsPerPage = Math.max(
|
|
3088
|
+
1,
|
|
3089
|
+
Math.floor(t / this.tabWidth)
|
|
3090
|
+
)) : (this.tabWidth = s, this.clampedTabsPerPage = this.tabsPerPage);
|
|
3091
|
+
} else
|
|
3092
|
+
this.tabWidth = 0, this.clampedTabsPerPage = 0;
|
|
3081
3093
|
}
|
|
3082
3094
|
/**
|
|
3083
3095
|
* Sync the scroll position to the rightmost tab when:
|
|
3084
3096
|
* overflow variant is dropdown and the direction is rtl
|
|
3085
3097
|
*/
|
|
3086
3098
|
syncScrollPosition() {
|
|
3087
|
-
this.overflowVariant ===
|
|
3099
|
+
this.overflowVariant === Tt.Dropdown && this.nav && (this.localize.dir() === "rtl" ? this.nav.scrollLeft = this.nav.scrollWidth : this.nav.scrollLeft = 0);
|
|
3088
3100
|
}
|
|
3089
3101
|
findNextFocusableTab(o, t) {
|
|
3090
3102
|
let e = null;
|
|
@@ -3121,8 +3133,16 @@ let A = class extends Ln {
|
|
|
3121
3133
|
}
|
|
3122
3134
|
async handleVariantChange() {
|
|
3123
3135
|
await this.updateComplete;
|
|
3124
|
-
|
|
3125
|
-
|
|
3136
|
+
const o = this.clampedTabsPerPage > 0 ? this.clampedTabsPerPage : this.tabsPerPage, t = this.tabs.length - this.activePaginationIndex * o;
|
|
3137
|
+
this.tabs.forEach((e, i) => {
|
|
3138
|
+
this.variant === ue.Timeline && o === 1 ? e.single = !0 : e.single = !1, i === 0 ? e.first = !0 : e.first = !1, i === this.tabs.length - 1 ? e.last = !0 : e.last = !1;
|
|
3139
|
+
let r = o > 0 ? i % o : i;
|
|
3140
|
+
if (o > 0 && t < o) {
|
|
3141
|
+
const n = o - t;
|
|
3142
|
+
r = (i + n) % o;
|
|
3143
|
+
}
|
|
3144
|
+
e.style.setProperty("--i", r.toString()), e.style.setProperty("--n", o.toString()), e.requestUpdate();
|
|
3145
|
+
});
|
|
3126
3146
|
}
|
|
3127
3147
|
handleOverflowVariantChange() {
|
|
3128
3148
|
this.tabAlignmentIndent = 0, this.syncTabsAndPanels();
|
|
@@ -3131,7 +3151,7 @@ let A = class extends Ln {
|
|
|
3131
3151
|
this.syncTabsAndPanels();
|
|
3132
3152
|
}
|
|
3133
3153
|
handleAbsoluteHeightChange() {
|
|
3134
|
-
if (this.hidePanelVariant ===
|
|
3154
|
+
if (this.hidePanelVariant === Wt.Absolute)
|
|
3135
3155
|
this.setupPanelResizeObserver(), this.calculateTabPanelHeight();
|
|
3136
3156
|
else {
|
|
3137
3157
|
this.cleanupPanelResizeObserver(), this.tabPanelHeight = 0;
|
|
@@ -3145,18 +3165,11 @@ let A = class extends Ln {
|
|
|
3145
3165
|
async handleTabsPerPageChange() {
|
|
3146
3166
|
await this.updateComplete, this.updatePagination();
|
|
3147
3167
|
}
|
|
3148
|
-
handleActivePaginationIndexChange() {
|
|
3149
|
-
this.emit("cx-tab-group-pagination-change", {
|
|
3150
|
-
detail: {
|
|
3151
|
-
index: this.activePaginationIndex
|
|
3152
|
-
}
|
|
3153
|
-
});
|
|
3154
|
-
}
|
|
3155
3168
|
/**
|
|
3156
3169
|
* Setup ResizeObserver for all panels when keepHiddenHeight is enabled
|
|
3157
3170
|
*/
|
|
3158
3171
|
setupPanelResizeObserver() {
|
|
3159
|
-
if (this.hidePanelVariant !==
|
|
3172
|
+
if (this.hidePanelVariant !== Wt.Absolute) {
|
|
3160
3173
|
this.cleanupPanelResizeObserver();
|
|
3161
3174
|
return;
|
|
3162
3175
|
}
|
|
@@ -3179,7 +3192,7 @@ let A = class extends Ln {
|
|
|
3179
3192
|
}
|
|
3180
3193
|
handleNavContainerResize() {
|
|
3181
3194
|
const o = this.container.clientWidth, t = this.tabButtons.clientWidth;
|
|
3182
|
-
this.shouldIgnoreAlignment = o < t, this.overflowVariant ===
|
|
3195
|
+
this.shouldIgnoreAlignment = o < t, this.overflowVariant === Tt.Dropdown && (this.syncTabsAndPanels(), this.syncScrollPosition()), this.overflowVariant === Tt.Pagination && this.updatePagination();
|
|
3183
3196
|
}
|
|
3184
3197
|
handleIndicatorResize(o) {
|
|
3185
3198
|
o.stopPropagation(), this.syncIndicator(), this.updatePagination();
|
|
@@ -3187,7 +3200,7 @@ let A = class extends Ln {
|
|
|
3187
3200
|
/** Guard for dropdown variant */
|
|
3188
3201
|
getDropdownStyle() {
|
|
3189
3202
|
const o = this.localize.dir() === "rtl";
|
|
3190
|
-
return
|
|
3203
|
+
return Ue({
|
|
3191
3204
|
[o ? "right" : "left"]: `${this.dropdownOffset}px`
|
|
3192
3205
|
});
|
|
3193
3206
|
}
|
|
@@ -3242,7 +3255,7 @@ let A = class extends Ln {
|
|
|
3242
3255
|
`;
|
|
3243
3256
|
}
|
|
3244
3257
|
render() {
|
|
3245
|
-
const o = this.localize.dir() === "rtl", t = this.allowDropdownOverflow && this.isActiveTabHidden, e = this.overflowVariant ===
|
|
3258
|
+
const o = this.localize.dir() === "rtl", t = this.allowDropdownOverflow && this.isActiveTabHidden, e = this.overflowVariant === Tt.Pagination && this.paginationCount > 1 && Number.isFinite(this.paginationCount);
|
|
3246
3259
|
return $t`
|
|
3247
3260
|
<div
|
|
3248
3261
|
part="base"
|
|
@@ -3251,7 +3264,7 @@ let A = class extends Ln {
|
|
|
3251
3264
|
"tab-group--bottom": this.placement === "bottom",
|
|
3252
3265
|
"tab-group--end": this.placement === "end",
|
|
3253
3266
|
"tab-group--has-hidden-tabs": this.allowDropdownOverflow && this.shouldShowDropdown,
|
|
3254
|
-
"tab-group--has-scroll-controls": this.hasScrollControls && this.overflowVariant !==
|
|
3267
|
+
"tab-group--has-scroll-controls": this.hasScrollControls && this.overflowVariant !== Tt.Dropdown,
|
|
3255
3268
|
"tab-group--rtl": o,
|
|
3256
3269
|
"tab-group--start": this.placement === "start",
|
|
3257
3270
|
"tab-group--top": this.placement === "top",
|
|
@@ -3262,8 +3275,8 @@ let A = class extends Ln {
|
|
|
3262
3275
|
>
|
|
3263
3276
|
<cx-resize-observer @cx-resize=${this.handleNavContainerResize}>
|
|
3264
3277
|
<div class="tab-group__nav-container" part="nav">
|
|
3265
|
-
${
|
|
3266
|
-
this.overflowVariant ===
|
|
3278
|
+
${Pe(
|
|
3279
|
+
this.overflowVariant === Tt.Scroll && this.hasScrollControls,
|
|
3267
3280
|
() => $t`
|
|
3268
3281
|
<cx-icon-button
|
|
3269
3282
|
part="scroll-button scroll-button--start"
|
|
@@ -3284,8 +3297,9 @@ let A = class extends Ln {
|
|
|
3284
3297
|
<div
|
|
3285
3298
|
part="tab-group"
|
|
3286
3299
|
class="tab-group__nav"
|
|
3287
|
-
style=${
|
|
3288
|
-
|
|
3300
|
+
style=${Ue({
|
|
3301
|
+
"--min-tab-width": `${this.minTabWidth}px`,
|
|
3302
|
+
justifyContent: this.overflowVariant === Tt.Dropdown || this.shouldIgnoreAlignment ? "flex-start" : this.tabAlignment,
|
|
3289
3303
|
transform: `translateX(${this.tabAlignmentIndent}px)`
|
|
3290
3304
|
})}
|
|
3291
3305
|
@scrollend=${this.handleScrollEnd}
|
|
@@ -3295,19 +3309,19 @@ let A = class extends Ln {
|
|
|
3295
3309
|
part="active-tab-indicator"
|
|
3296
3310
|
class="tab-group__indicator"
|
|
3297
3311
|
></div>
|
|
3298
|
-
${
|
|
3299
|
-
this.variant ===
|
|
3312
|
+
${Pe(
|
|
3313
|
+
this.variant === ue.Timeline && this.clampedTabsPerPage > 1,
|
|
3300
3314
|
() => $t`<div class="timeline-line"></div>`
|
|
3301
3315
|
)}
|
|
3302
3316
|
<cx-resize-observer @cx-resize=${this.handleIndicatorResize}>
|
|
3303
3317
|
<slot
|
|
3304
3318
|
name="nav"
|
|
3305
3319
|
@slotchange=${this.syncTabsAndPanels}
|
|
3306
|
-
style=${
|
|
3320
|
+
style=${Ue(this.tabWidth > 0 ? {
|
|
3307
3321
|
"--width": `${this.tabWidth}px`
|
|
3308
3322
|
} : {})}
|
|
3309
3323
|
></slot>
|
|
3310
|
-
${
|
|
3324
|
+
${Pe(
|
|
3311
3325
|
this.allowDropdownOverflow,
|
|
3312
3326
|
() => $t`
|
|
3313
3327
|
<cx-dropdown
|
|
@@ -3376,8 +3390,8 @@ let A = class extends Ln {
|
|
|
3376
3390
|
</cx-resize-observer>
|
|
3377
3391
|
</div>
|
|
3378
3392
|
</div>
|
|
3379
|
-
${
|
|
3380
|
-
this.overflowVariant ===
|
|
3393
|
+
${Pe(
|
|
3394
|
+
this.overflowVariant === Tt.Scroll && this.hasScrollControls,
|
|
3381
3395
|
() => $t`
|
|
3382
3396
|
<cx-icon-button
|
|
3383
3397
|
part="scroll-button scroll-button--end"
|
|
@@ -3401,12 +3415,12 @@ let A = class extends Ln {
|
|
|
3401
3415
|
<slot
|
|
3402
3416
|
part="body"
|
|
3403
3417
|
class="tab-group__body"
|
|
3404
|
-
style=${
|
|
3418
|
+
style=${Ue({ height: this.bodyHeight })}
|
|
3405
3419
|
@slotchange=${this.syncTabsAndPanels}
|
|
3406
3420
|
></slot>
|
|
3407
3421
|
|
|
3408
3422
|
|
|
3409
|
-
${
|
|
3423
|
+
${Pe(
|
|
3410
3424
|
e,
|
|
3411
3425
|
() => $t`
|
|
3412
3426
|
<div class="tab-pagination">
|
|
@@ -3424,158 +3438,164 @@ let A = class extends Ln {
|
|
|
3424
3438
|
`;
|
|
3425
3439
|
}
|
|
3426
3440
|
};
|
|
3427
|
-
A.styles = [Nn,
|
|
3441
|
+
A.styles = [Nn, Co];
|
|
3428
3442
|
A.dependencies = {
|
|
3429
|
-
"cx-button":
|
|
3430
|
-
"cx-dropdown":
|
|
3431
|
-
"cx-icon-button":
|
|
3432
|
-
"cx-menu":
|
|
3433
|
-
"cx-menu-item":
|
|
3434
|
-
"cx-resize-observer":
|
|
3435
|
-
"cx-tab":
|
|
3443
|
+
"cx-button": Yn,
|
|
3444
|
+
"cx-dropdown": Xn,
|
|
3445
|
+
"cx-icon-button": qn,
|
|
3446
|
+
"cx-menu": Gn,
|
|
3447
|
+
"cx-menu-item": Kn,
|
|
3448
|
+
"cx-resize-observer": In,
|
|
3449
|
+
"cx-tab": jn
|
|
3436
3450
|
};
|
|
3437
3451
|
A.MIN_CLAMP_WIDTH = 100;
|
|
3438
3452
|
k([
|
|
3439
|
-
|
|
3453
|
+
It(".tab-group")
|
|
3440
3454
|
], A.prototype, "tabGroup", 2);
|
|
3441
3455
|
k([
|
|
3442
|
-
|
|
3456
|
+
It(".tab-group__body")
|
|
3443
3457
|
], A.prototype, "body", 2);
|
|
3444
3458
|
k([
|
|
3445
|
-
|
|
3459
|
+
It(".tab-group__nav-container")
|
|
3446
3460
|
], A.prototype, "container", 2);
|
|
3447
3461
|
k([
|
|
3448
|
-
|
|
3462
|
+
It(".tab-group__nav")
|
|
3449
3463
|
], A.prototype, "nav", 2);
|
|
3450
3464
|
k([
|
|
3451
|
-
|
|
3465
|
+
It(".tab-group__indicator")
|
|
3452
3466
|
], A.prototype, "indicator", 2);
|
|
3453
3467
|
k([
|
|
3454
|
-
|
|
3468
|
+
It(".tab-group__dropdown")
|
|
3455
3469
|
], A.prototype, "dropdown", 2);
|
|
3456
3470
|
k([
|
|
3457
|
-
|
|
3471
|
+
It(".tab-group__dropdown__menu")
|
|
3458
3472
|
], A.prototype, "menu", 2);
|
|
3459
3473
|
k([
|
|
3460
|
-
|
|
3474
|
+
It(".tab-group__tabs")
|
|
3461
3475
|
], A.prototype, "tabButtons", 2);
|
|
3462
3476
|
k([
|
|
3463
|
-
|
|
3477
|
+
It(".tab-group__dropdown__trigger")
|
|
3464
3478
|
], A.prototype, "dropdownTrigger", 2);
|
|
3465
3479
|
k([
|
|
3466
|
-
|
|
3480
|
+
Hn(".tab-pagination__dot")
|
|
3467
3481
|
], A.prototype, "allDots", 2);
|
|
3468
3482
|
k([
|
|
3469
|
-
|
|
3483
|
+
at()
|
|
3470
3484
|
], A.prototype, "activeTab", 2);
|
|
3471
3485
|
k([
|
|
3472
|
-
|
|
3486
|
+
at()
|
|
3473
3487
|
], A.prototype, "hasScrollControls", 2);
|
|
3474
3488
|
k([
|
|
3475
|
-
|
|
3489
|
+
at()
|
|
3476
3490
|
], A.prototype, "shouldHideScrollStartButton", 2);
|
|
3477
3491
|
k([
|
|
3478
|
-
|
|
3492
|
+
at()
|
|
3479
3493
|
], A.prototype, "shouldHideScrollEndButton", 2);
|
|
3480
3494
|
k([
|
|
3481
|
-
|
|
3495
|
+
at()
|
|
3482
3496
|
], A.prototype, "dropdownOffset", 2);
|
|
3483
3497
|
k([
|
|
3484
|
-
|
|
3498
|
+
at()
|
|
3485
3499
|
], A.prototype, "tabPanelHeight", 2);
|
|
3486
3500
|
k([
|
|
3487
|
-
|
|
3501
|
+
at()
|
|
3488
3502
|
], A.prototype, "tabAlignmentIndent", 2);
|
|
3489
3503
|
k([
|
|
3490
|
-
|
|
3504
|
+
at()
|
|
3491
3505
|
], A.prototype, "shouldIgnoreAlignment", 2);
|
|
3492
3506
|
k([
|
|
3493
|
-
|
|
3507
|
+
at()
|
|
3494
3508
|
], A.prototype, "shouldShowDropdown", 2);
|
|
3495
3509
|
k([
|
|
3496
|
-
|
|
3510
|
+
at()
|
|
3497
3511
|
], A.prototype, "isActiveTabHidden", 2);
|
|
3498
3512
|
k([
|
|
3499
|
-
|
|
3513
|
+
at()
|
|
3500
3514
|
], A.prototype, "paginationCount", 2);
|
|
3501
3515
|
k([
|
|
3502
|
-
|
|
3516
|
+
at()
|
|
3503
3517
|
], A.prototype, "activePaginationIndex", 2);
|
|
3504
3518
|
k([
|
|
3505
|
-
|
|
3519
|
+
at()
|
|
3506
3520
|
], A.prototype, "tabWidth", 2);
|
|
3507
3521
|
k([
|
|
3508
|
-
|
|
3522
|
+
at()
|
|
3523
|
+
], A.prototype, "clampedTabsPerPage", 2);
|
|
3524
|
+
k([
|
|
3525
|
+
wt()
|
|
3509
3526
|
], A.prototype, "placement", 2);
|
|
3510
3527
|
k([
|
|
3511
|
-
|
|
3528
|
+
wt()
|
|
3512
3529
|
], A.prototype, "activation", 2);
|
|
3513
3530
|
k([
|
|
3514
|
-
|
|
3531
|
+
wt({ attribute: "no-scroll-controls", type: Boolean })
|
|
3515
3532
|
], A.prototype, "noScrollControls", 2);
|
|
3516
3533
|
k([
|
|
3517
|
-
|
|
3534
|
+
wt({ attribute: "fixed-scroll-controls", type: Boolean })
|
|
3518
3535
|
], A.prototype, "fixedScrollControls", 2);
|
|
3519
3536
|
k([
|
|
3520
|
-
|
|
3537
|
+
wt({ attribute: "use-max-panel-height", type: Boolean })
|
|
3521
3538
|
], A.prototype, "useMaxPanelHeight", 2);
|
|
3522
3539
|
k([
|
|
3523
|
-
|
|
3540
|
+
wt({ reflect: !0, type: String })
|
|
3524
3541
|
], A.prototype, "variant", 2);
|
|
3525
3542
|
k([
|
|
3526
|
-
|
|
3543
|
+
wt({ attribute: "overflow-variant", reflect: !0, type: String })
|
|
3527
3544
|
], A.prototype, "overflowVariant", 2);
|
|
3528
3545
|
k([
|
|
3529
|
-
|
|
3546
|
+
wt({ attribute: "hide-panel-variant", reflect: !0, type: String })
|
|
3530
3547
|
], A.prototype, "hidePanelVariant", 2);
|
|
3531
3548
|
k([
|
|
3532
|
-
|
|
3549
|
+
wt({ attribute: "tab-alignment", reflect: !0, type: String })
|
|
3533
3550
|
], A.prototype, "tabAlignment", 2);
|
|
3534
3551
|
k([
|
|
3535
|
-
|
|
3552
|
+
wt({ attribute: "dropdown-label", type: String })
|
|
3536
3553
|
], A.prototype, "dropdownLabel", 2);
|
|
3537
3554
|
k([
|
|
3538
|
-
|
|
3555
|
+
wt({ attribute: "tabs-per-page", type: Number })
|
|
3539
3556
|
], A.prototype, "tabsPerPage", 2);
|
|
3540
3557
|
k([
|
|
3541
|
-
|
|
3558
|
+
wt({ attribute: "min-tab-width", type: Number })
|
|
3559
|
+
], A.prototype, "minTabWidth", 2);
|
|
3560
|
+
k([
|
|
3561
|
+
Un({ passive: !0 })
|
|
3542
3562
|
], A.prototype, "handleScrollEnd", 1);
|
|
3543
3563
|
k([
|
|
3544
|
-
|
|
3564
|
+
ft("noScrollControls", { waitUntilFirstUpdate: !0 })
|
|
3545
3565
|
], A.prototype, "updateScrollControls", 1);
|
|
3546
3566
|
k([
|
|
3547
|
-
|
|
3567
|
+
ft("placement", { waitUntilFirstUpdate: !0 })
|
|
3548
3568
|
], A.prototype, "syncIndicator", 1);
|
|
3549
3569
|
k([
|
|
3550
|
-
|
|
3551
|
-
|
|
3570
|
+
ft("variant", { waitUntilFirstUpdate: !0 }),
|
|
3571
|
+
ft("activePaginationIndex", { waitUntilFirstUpdate: !0 }),
|
|
3572
|
+
ft("clampedTabsPerPage")
|
|
3552
3573
|
], A.prototype, "handleVariantChange", 1);
|
|
3553
3574
|
k([
|
|
3554
|
-
|
|
3575
|
+
ft("overflowVariant", { waitUntilFirstUpdate: !0 })
|
|
3555
3576
|
], A.prototype, "handleOverflowVariantChange", 1);
|
|
3556
3577
|
k([
|
|
3557
|
-
|
|
3578
|
+
ft("dropdownLabel", { waitUntilFirstUpdate: !0 })
|
|
3558
3579
|
], A.prototype, "handleDropdownLabelChange", 1);
|
|
3559
3580
|
k([
|
|
3560
|
-
|
|
3561
|
-
|
|
3581
|
+
ft("hidePanelVariant", { waitUntilFirstUpdate: !0 }),
|
|
3582
|
+
ft("useMaxPanelHeight", { waitUntilFirstUpdate: !0 })
|
|
3562
3583
|
], A.prototype, "handleAbsoluteHeightChange", 1);
|
|
3563
3584
|
k([
|
|
3564
|
-
|
|
3585
|
+
ft("tabAlignment", { waitUntilFirstUpdate: !0 })
|
|
3565
3586
|
], A.prototype, "handleTabAlignmentChange", 1);
|
|
3566
3587
|
k([
|
|
3567
|
-
|
|
3588
|
+
ft("tabsPerPage", { waitUntilFirstUpdate: !0 }),
|
|
3589
|
+
ft("clampedTabsPerPage", { waitUntilFirstUpdate: !0 }),
|
|
3590
|
+
ft("minTabWidth", { waitUntilFirstUpdate: !0 })
|
|
3568
3591
|
], A.prototype, "handleTabsPerPageChange", 1);
|
|
3569
|
-
k([
|
|
3570
|
-
wt("activePaginationIndex", { waitUntilFirstUpdate: !0 })
|
|
3571
|
-
], A.prototype, "handleActivePaginationIndexChange", 1);
|
|
3572
3592
|
A = k([
|
|
3573
3593
|
$n("cx-tab-group")
|
|
3574
3594
|
], A);
|
|
3575
3595
|
export {
|
|
3576
3596
|
A as C,
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3597
|
+
Ke as T,
|
|
3598
|
+
Tt as a,
|
|
3599
|
+
Wt as b,
|
|
3580
3600
|
ie as g
|
|
3581
3601
|
};
|