@algorisys/tinyfly 0.87.0 → 0.89.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.
Files changed (34) hide show
  1. package/README.md +6 -4
  2. package/lib/addons/adapters.js +370 -310
  3. package/lib/addons/characters.js +1878 -1449
  4. package/lib/addons/load-scene-CQvcFWGJ.js +331 -0
  5. package/lib/addons/scene-3d.js +299 -215
  6. package/lib/browser/tinyfly-scene-3d.iife.js +2 -2
  7. package/lib/browser/tinyfly.iife.js +4 -4
  8. package/lib/browser/tinyfly.js +4395 -3858
  9. package/lib/browser/tinyfly.umd.js +4 -4
  10. package/lib/engine/tinyfly-engine.js +155 -106
  11. package/lib/engine/tinyfly-engine.umd.cjs +2 -2
  12. package/lib/headless/headless.js +8 -4
  13. package/lib/types/adapters/canvas/index.d.ts +1 -0
  14. package/lib/types/adapters/canvas/trail.d.ts +57 -0
  15. package/lib/types/browser/index.d.ts +2 -0
  16. package/lib/types/characters/acting/act-tracks.d.ts +28 -0
  17. package/lib/types/characters/acting/acting.d.ts +187 -0
  18. package/lib/types/characters/acting/effects.d.ts +65 -0
  19. package/lib/types/characters/acting/gags.d.ts +54 -0
  20. package/lib/types/characters/acting/index.d.ts +10 -0
  21. package/lib/types/characters/acting/rigs.d.ts +9 -0
  22. package/lib/types/characters/character.d.ts +7 -0
  23. package/lib/types/characters/index.d.ts +1 -0
  24. package/lib/types/characters/stick-figure.d.ts +7 -0
  25. package/lib/types/engine/core/clock.d.ts +7 -0
  26. package/lib/types/engine/path/index.d.ts +2 -0
  27. package/lib/types/engine/path/trail.d.ts +79 -0
  28. package/lib/types/headless/video-scene.d.ts +9 -0
  29. package/lib/types/scene-3d/resolve-scene.d.ts +6 -0
  30. package/lib/types/scene-3d/scene-3d-adapter.d.ts +9 -1
  31. package/lib/types/scene-3d/scene-types.d.ts +40 -1
  32. package/lib/types/scene-3d/strokes.d.ts +30 -0
  33. package/package.json +1 -1
  34. package/lib/addons/load-scene-vp14_Jj-.js +0 -324
@@ -20,13 +20,13 @@ function j(t) {
20
20
  function re(t) {
21
21
  return t.property === "motionPath" && "motionPathConfig" in t;
22
22
  }
23
- function kr(t) {
23
+ function Sr(t) {
24
24
  return typeof t == "object" && t !== null && "x" in t && "y" in t && "angle" in t;
25
25
  }
26
26
  function Le(t) {
27
27
  return "keyframes" in t;
28
28
  }
29
- class Sr {
29
+ class Ar {
30
30
  _currentTime = 0;
31
31
  _isRunning = !1;
32
32
  onTick = null;
@@ -52,7 +52,7 @@ class Sr {
52
52
  this._currentTime = e;
53
53
  }
54
54
  }
55
- class Ar {
55
+ class wr {
56
56
  _currentTime = 0;
57
57
  _isRunning = !1;
58
58
  _lastFrameTime = null;
@@ -99,6 +99,11 @@ class Ar {
99
99
  }
100
100
  }
101
101
  }
102
+ function vr(t, e) {
103
+ if (!(e > 0)) return t;
104
+ const n = 1e3 / e;
105
+ return Math.floor(t / n + 1e-9) * n;
106
+ }
102
107
  function se(t, e, n = "start") {
103
108
  if (e <= 1) return 0;
104
109
  if (typeof n == "number") {
@@ -145,7 +150,7 @@ const tt = 1, ie = 6e4, st = ie / tt, L = {
145
150
  velocity: 0,
146
151
  restDelta: 0.01,
147
152
  restSpeed: 0.1
148
- }, wr = {
153
+ }, Pr = {
149
154
  gentle: { stiffness: 120, damping: 18, mass: 1 },
150
155
  default: { stiffness: 180, damping: 12, mass: 1 },
151
156
  snappy: { stiffness: 280, damping: 20, mass: 1 },
@@ -225,17 +230,17 @@ class ut {
225
230
  this.samples.length > st && (this.settledStep = st);
226
231
  }
227
232
  }
228
- function vr(t, e) {
233
+ function $r(t, e) {
229
234
  return new ut(t).valueAt(e);
230
235
  }
231
- function Pr(t) {
236
+ function Rr(t) {
232
237
  return new ut(t).settleTime();
233
238
  }
234
- function $r(t) {
239
+ function Dr(t) {
235
240
  const e = t.stiffness ?? L.stiffness, n = t.damping ?? L.damping, r = t.mass ?? L.mass;
236
241
  return n < 2 * Math.sqrt(e * r);
237
242
  }
238
- function Rr(t) {
243
+ function Cr(t) {
239
244
  const e = t.stiffness ?? L.stiffness, n = t.mass ?? L.mass;
240
245
  return 2 * Math.sqrt(e * n);
241
246
  }
@@ -276,7 +281,7 @@ function kt(t, e) {
276
281
  const r = lt(t);
277
282
  return t.from + (n - t.from) * (1 - Math.exp(-r * e / 1e3));
278
283
  }
279
- function Dr(t, e) {
284
+ function Ir(t, e) {
280
285
  const n = lt(t), r = ht(t);
281
286
  return e >= ft(t) ? 0 : (r - t.from) * n * Math.exp(-n * Math.max(0, e) / 1e3);
282
287
  }
@@ -617,13 +622,13 @@ function hn(t, e) {
617
622
  const { segments: n, totalLength: r } = G(t);
618
623
  return he(n, Math.max(0, Math.min(1, e)) * r);
619
624
  }
620
- function Cr() {
625
+ function Er() {
621
626
  W.clear();
622
627
  }
623
- function Ir(t) {
628
+ function Lr(t) {
624
629
  return G(t).totalLength;
625
630
  }
626
- const fn = 24, pn = 320, dn = 2.5, J = 72, Er = 64, gn = 0.2, mn = 128, et = /* @__PURE__ */ new Map();
631
+ const fn = 24, pn = 320, dn = 2.5, J = 72, Or = 64, gn = 0.2, mn = 128, et = /* @__PURE__ */ new Map();
627
632
  let it = 0, X;
628
633
  const Vt = (t) => Math.round(t * 100) / 100;
629
634
  function jt(t, e) {
@@ -755,7 +760,7 @@ function kn(t, e, n, r = {}) {
755
760
  }
756
761
  return i;
757
762
  }
758
- function Lr() {
763
+ function Fr() {
759
764
  et.clear(), it = 0, X = void 0;
760
765
  }
761
766
  function Sn(t) {
@@ -822,7 +827,7 @@ function $n(t, e) {
822
827
  const [n, r, s, o] = Y(t), i = 2 * (r * e[2] - s * e[1]), a = 2 * (s * e[0] - n * e[2]), c = 2 * (n * e[1] - r * e[0]);
823
828
  return [e[0] + o * i + (r * c - s * a), e[1] + o * a + (s * i - n * c), e[2] + o * c + (n * a - r * i)];
824
829
  }
825
- const Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
830
+ const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
826
831
  __proto__: null,
827
832
  conjugate: Pn,
828
833
  dot: fe,
@@ -931,7 +936,7 @@ function On(t, e, n, r = {}) {
931
936
  const u = o(1);
932
937
  return c.push({ ...e, ...u !== 1 && { value: i(t.value, e.value, u) }, easing: "linear" }), c;
933
938
  }
934
- function Fr(t, e) {
939
+ function Xr(t, e) {
935
940
  return j(t) ? Me(t, e) : V(t) ? _e(t, e) : t;
936
941
  }
937
942
  function Fn(t, e = {}) {
@@ -944,7 +949,7 @@ function Fn(t, e = {}) {
944
949
  }
945
950
  return { ...t, keyframes: r };
946
951
  }
947
- function Nr(t, e) {
952
+ function zr(t, e) {
948
953
  return t.filter(Le).map((n) => Fn(n, e)).concat(
949
954
  t.filter(j).map((n) => Me(n, e)),
950
955
  t.filter(V).map((n) => _e(n, e))
@@ -1113,7 +1118,7 @@ function Te(t, e) {
1113
1118
  }
1114
1119
  return t.autoRotate && t.rotateOffset && (n.angle += t.rotateOffset), n;
1115
1120
  }
1116
- function Xr(t, e, n, r) {
1121
+ function Yr(t, e, n, r) {
1117
1122
  const s = e + (n - e) * r;
1118
1123
  return Te(t, s);
1119
1124
  }
@@ -1564,7 +1569,7 @@ class Bn {
1564
1569
  }
1565
1570
  }
1566
1571
  const Wn = 100;
1567
- function zr(t, e, n, r) {
1572
+ function Ur(t, e, n, r) {
1568
1573
  const s = [], o = [], { duration: i, alternate: a } = r, c = (p, M, d, g) => {
1569
1574
  o.push([p, M]);
1570
1575
  const _ = [];
@@ -1724,14 +1729,14 @@ function Zn(t) {
1724
1729
  captions: t.captions
1725
1730
  });
1726
1731
  }
1727
- function Yr(t) {
1732
+ function Vr(t) {
1728
1733
  return JSON.stringify(Kn(t));
1729
1734
  }
1730
- function Ur(t) {
1735
+ function jr(t) {
1731
1736
  const e = JSON.parse(t);
1732
1737
  return Zn(e);
1733
1738
  }
1734
- function Vr(t) {
1739
+ function Hr(t) {
1735
1740
  let e = 2166136261;
1736
1741
  for (let n = 0; n < t.length; n++)
1737
1742
  e ^= t.charCodeAt(n), e = Math.imul(e, 16777619);
@@ -1754,12 +1759,12 @@ function Jn(t, e, n, r) {
1754
1759
  const s = Math.floor((n - e) / r), o = Math.round(t.next() * s);
1755
1760
  return e + o * r;
1756
1761
  }
1757
- function jr(t, e) {
1762
+ function Br(t, e) {
1758
1763
  if (e.length !== 0)
1759
1764
  return e[Math.floor(t.next() * e.length)];
1760
1765
  }
1761
1766
  const Se = /^([+\-*/])=\s*(-?[\d.]+)$/, Ae = /^random\(\s*(-?[\d.]+)\s*,\s*(-?[\d.]+)\s*(?:,\s*(-?[\d.]+)\s*)?\)$/i;
1762
- function Hr(t) {
1767
+ function Wr(t) {
1763
1768
  return typeof t != "string" ? !1 : Se.test(t.trim()) || Ae.test(t.trim());
1764
1769
  }
1765
1770
  function we(t, e = {}) {
@@ -1798,7 +1803,7 @@ function tr(t, e = 0, n) {
1798
1803
  }
1799
1804
  return r;
1800
1805
  }
1801
- class Br {
1806
+ class Qr {
1802
1807
  random;
1803
1808
  constructor(e) {
1804
1809
  this.random = qn(e);
@@ -1815,7 +1820,7 @@ class Br {
1815
1820
  }
1816
1821
  }
1817
1822
  const er = 600;
1818
- function Wr(t) {
1823
+ function Gr(t) {
1819
1824
  if (Array.isArray(t)) {
1820
1825
  const [f, p, M, d] = t;
1821
1826
  return { fn: ee(f, p, M, d), bezier: [f, p, M, d] };
@@ -1837,7 +1842,7 @@ function Wr(t) {
1837
1842
  }
1838
1843
  return { fn: rr(u, l) };
1839
1844
  }
1840
- function Qr(t = {}) {
1845
+ function Kr(t = {}) {
1841
1846
  const n = 0.1 + Math.max(0, Math.min(1, t.strength ?? 0.7)) * 0.7, r = [1];
1842
1847
  for (let o = n; o > 2e-3; o *= n) r.push(2 * Math.sqrt(o));
1843
1848
  const s = r.reduce((o, i) => o + i, 0);
@@ -1856,7 +1861,7 @@ function Qr(t = {}) {
1856
1861
  return 1;
1857
1862
  };
1858
1863
  }
1859
- function Gr(t = {}) {
1864
+ function Zr(t = {}) {
1860
1865
  const e = Math.max(1, t.wiggles ?? 10), n = t.type ?? "easeOut", r = (s) => n === "uniform" ? 1 : n === "easeInOut" ? Math.sin(Math.PI * s) : (1 - s) ** 2;
1861
1866
  return (s) => s <= 0 || s >= 1 ? 0 : Math.sin(s * e * Math.PI * 2) * r(s);
1862
1867
  }
@@ -1904,7 +1909,7 @@ function ee(t, e, n, r) {
1904
1909
  };
1905
1910
  }
1906
1911
  const sr = 350, or = 300, ir = 550;
1907
- function Kr(t, e = {}) {
1912
+ function qr(t, e = {}) {
1908
1913
  const n = e.lead ?? sr, r = e.gap ?? or, s = e.tail ?? ir, o = [];
1909
1914
  let i = 0;
1910
1915
  return t.forEach((a, c) => {
@@ -1926,10 +1931,10 @@ function Kr(t, e = {}) {
1926
1931
  o.push({ id: a.id ?? `s${c}`, start: i, duration: h - i, cues: u }), i = h;
1927
1932
  }), { duration: i, scenes: o, cues: o.flatMap((a) => a.cues) };
1928
1933
  }
1929
- function Zr(t) {
1934
+ function Jr(t) {
1930
1935
  return t.cues.map((e) => ({ id: e.id, time: e.start, label: e.text }));
1931
1936
  }
1932
- function qr(t, e) {
1937
+ function ts(t, e) {
1933
1938
  let n = t.scenes[0];
1934
1939
  for (const r of t.scenes)
1935
1940
  if (e >= r.start) n = r;
@@ -1943,13 +1948,13 @@ function Ct(t, e) {
1943
1948
  function It(t, e) {
1944
1949
  return (e - t.offset) / ve(t);
1945
1950
  }
1946
- function Jr(t, e) {
1951
+ function es(t, e) {
1947
1952
  return Ct(t, Math.round(It(t, e)));
1948
1953
  }
1949
- function ts(t, e) {
1954
+ function ns(t, e) {
1950
1955
  return Ct(t, Math.ceil(It(t, e) - 1e-9));
1951
1956
  }
1952
- function es(t, e, n) {
1957
+ function rs(t, e, n) {
1953
1958
  const r = Math.max(1, Math.round(t.beatsPerBar ?? 4)), s = [];
1954
1959
  if (!(t.bpm > 0) || n < e) return s;
1955
1960
  for (let o = Math.ceil(It(t, e) - 1e-9); ; o++) {
@@ -1960,7 +1965,7 @@ function es(t, e, n) {
1960
1965
  return s;
1961
1966
  }
1962
1967
  const B = 100;
1963
- function ns(t, e, n = {}) {
1968
+ function ss(t, e, n = {}) {
1964
1969
  const r = n.minBpm ?? 70, s = n.maxBpm ?? 180, o = Math.max(1, Math.round(e / B)), i = Math.min(t.length, Math.round((n.maxSeconds ?? 60) * e)), a = Math.floor(i / o);
1965
1970
  if (a < 4) return { bpm: 120, offset: 0, confidence: 0 };
1966
1971
  const c = new Float64Array(a);
@@ -2007,7 +2012,7 @@ function ns(t, e, n = {}) {
2007
2012
  return { bpm: Math.round(v * 100) / 100, offset: Math.round(D % (6e4 / v)), confidence: A };
2008
2013
  }
2009
2014
  const O = (t) => Math.round(t * 1e3) / 1e3;
2010
- function rs(t, e = {}) {
2015
+ function os(t, e = {}) {
2011
2016
  if (t.length === 0) return "";
2012
2017
  const n = e.curviness ?? 1, r = e.closed ?? !1, s = t.length;
2013
2018
  let o = `M${O(t[0].x)} ${O(t[0].y)}`;
@@ -2033,7 +2038,7 @@ function ar(t) {
2033
2038
  for (let r = 0; r + 1 < e.length; r += 2) n.push({ x: e[r], y: e[r + 1] });
2034
2039
  return n;
2035
2040
  }
2036
- function ss(t) {
2041
+ function is(t) {
2037
2042
  const e = t.attributes;
2038
2043
  switch (t.tag.toLowerCase()) {
2039
2044
  case "path":
@@ -2061,7 +2066,47 @@ function ss(t) {
2061
2066
  return null;
2062
2067
  }
2063
2068
  }
2064
- function cr(t, e) {
2069
+ function as(t, e, n) {
2070
+ const r = Math.max(2, Math.round(n.samples ?? 32)), s = Math.max(0, n.length), o = n.since !== void 0 ? Math.max(e - s, n.since) : e - s;
2071
+ if (o >= e) return [];
2072
+ const i = n.period, a = [];
2073
+ for (let c = 0; c < r; c++) {
2074
+ const u = o + (e - o) * c / (r - 1), l = i && i > 0 && c < r - 1 ? (u % i + i) % i : u;
2075
+ a.push({ at: t(l), time: u, age: s > 0 ? (e - u) / s : 0 });
2076
+ }
2077
+ return a;
2078
+ }
2079
+ const cr = 2.5;
2080
+ function cs(t) {
2081
+ const e = [], n = [], r = t.length, s = (o, i) => {
2082
+ for (let a = o + i; a >= 0 && a < r; a += i) {
2083
+ const c = (t[a].x - t[o].x) * i, u = (t[a].y - t[o].y) * i, l = Math.hypot(c, u);
2084
+ if (l > 1e-9) return [c / l, u / l];
2085
+ }
2086
+ return null;
2087
+ };
2088
+ for (let o = 0; o < r; o++) {
2089
+ const i = t[o], a = s(o, -1), c = s(o, 1), u = a ?? c ?? [1, 0], l = c ?? a ?? [1, 0];
2090
+ let h = u[0] + l[0], f = u[1] + l[1];
2091
+ const p = Math.hypot(h, f);
2092
+ p < 1e-9 ? (h = u[0], f = u[1]) : (h /= p, f /= p);
2093
+ const M = h * u[0] + f * u[1], d = Math.min(cr, 1 / Math.max(M, 1e-6)), g = i.width / 2 * d;
2094
+ e.push({ x: i.x - f * g, y: i.y + h * g }), n.push({ x: i.x + f * g, y: i.y - h * g });
2095
+ }
2096
+ return { left: e, right: n };
2097
+ }
2098
+ function us(t) {
2099
+ const e = t.length;
2100
+ if (e < 2) return null;
2101
+ const n = t[e - 1];
2102
+ for (let r = e - 2; r >= 0; r--) {
2103
+ const s = n.x - t[r].x, o = n.y - t[r].y, i = Math.hypot(s, o);
2104
+ if (i > 1e-9)
2105
+ return { x: n.x, y: n.y, radius: n.width / 2, start: Math.atan2(s / i, -o / i) };
2106
+ }
2107
+ return null;
2108
+ }
2109
+ function ur(t, e) {
2065
2110
  return [t[0] + e[0], t[1] + e[1], t[2] + e[2]];
2066
2111
  }
2067
2112
  function Et(t, e) {
@@ -2079,32 +2124,32 @@ function vt(t, e) {
2079
2124
  function Lt(t) {
2080
2125
  return Math.hypot(t[0], t[1], t[2]);
2081
2126
  }
2082
- function ur(t, e) {
2127
+ function lr(t, e) {
2083
2128
  return Lt(Et(t, e));
2084
2129
  }
2085
2130
  function Pt(t) {
2086
2131
  const e = Lt(t);
2087
2132
  return e === 0 ? [0, 0, 0] : Pe(t, 1 / e);
2088
2133
  }
2089
- function lr(t, e, n) {
2134
+ function hr(t, e, n) {
2090
2135
  return [t[0] + (e[0] - t[0]) * n, t[1] + (e[1] - t[1]) * n, t[2] + (e[2] - t[2]) * n];
2091
2136
  }
2092
- const os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2137
+ const ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2093
2138
  __proto__: null,
2094
- add: cr,
2139
+ add: ur,
2095
2140
  cross: vt,
2096
- distance: ur,
2141
+ distance: lr,
2097
2142
  dot: ct,
2098
2143
  length: Lt,
2099
- lerp: lr,
2144
+ lerp: hr,
2100
2145
  normalize: Pt,
2101
2146
  scale: Pe,
2102
2147
  subtract: Et
2103
- }, Symbol.toStringTag, { value: "Module" })), hr = Math.PI / 180;
2104
- function fr() {
2148
+ }, Symbol.toStringTag, { value: "Module" })), fr = Math.PI / 180;
2149
+ function pr() {
2105
2150
  return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
2106
2151
  }
2107
- function pr(t, e) {
2152
+ function dr(t, e) {
2108
2153
  const n = new Array(16);
2109
2154
  for (let r = 0; r < 4; r++)
2110
2155
  for (let s = 0; s < 4; s++) {
@@ -2114,10 +2159,10 @@ function pr(t, e) {
2114
2159
  }
2115
2160
  return n;
2116
2161
  }
2117
- function dr(t) {
2162
+ function gr(t) {
2118
2163
  return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, t[0], t[1], t[2], 1];
2119
2164
  }
2120
- function gr(t) {
2165
+ function mr(t) {
2121
2166
  return [t[0], 0, 0, 0, 0, t[1], 0, 0, 0, 0, t[2], 0, 0, 0, 0, 1];
2122
2167
  }
2123
2168
  function $e(t) {
@@ -2141,18 +2186,18 @@ function $e(t) {
2141
2186
  1
2142
2187
  ];
2143
2188
  }
2144
- function mr(t, e, n) {
2189
+ function yr(t, e, n) {
2145
2190
  const r = $e(e);
2146
2191
  for (let s = 0; s < 3; s++)
2147
2192
  r[s] *= n[0], r[4 + s] *= n[1], r[8 + s] *= n[2];
2148
2193
  return r[12] = t[0], r[13] = t[1], r[14] = t[2], r;
2149
2194
  }
2150
- function yr(t) {
2195
+ function Mr(t) {
2151
2196
  const e = new Array(16);
2152
2197
  for (let n = 0; n < 4; n++) for (let r = 0; r < 4; r++) e[r * 4 + n] = t[n * 4 + r];
2153
2198
  return e;
2154
2199
  }
2155
- function Mr(t) {
2200
+ function _r(t) {
2156
2201
  const [e, n, r, s, o, i, a, c, u, l, h, f, p, M, d, g] = t, _ = e * i - n * o, b = e * a - r * o, k = e * c - s * o, w = n * a - r * i, y = n * c - s * i, v = r * c - s * a, A = u * M - l * p, D = u * d - h * p, m = u * g - f * p, T = l * d - h * M, x = l * g - f * M, S = h * g - f * d, $ = _ * S - b * x + k * T + w * m - y * D + v * A;
2157
2202
  if (Math.abs($) < 1e-12) return null;
2158
2203
  const P = 1 / $;
@@ -2175,15 +2220,15 @@ function Mr(t) {
2175
2220
  (u * w - l * b + h * _) * P
2176
2221
  ];
2177
2222
  }
2178
- function _r(t, e, n, r) {
2179
- const s = 1 / Math.tan(t * hr / 2), o = 1 / (n - r);
2223
+ function br(t, e, n, r) {
2224
+ const s = 1 / Math.tan(t * fr / 2), o = 1 / (n - r);
2180
2225
  return [s / e, 0, 0, 0, 0, s, 0, 0, 0, 0, (r + n) * o, -1, 0, 0, 2 * r * n * o, 0];
2181
2226
  }
2182
- function br(t, e, n, r, s, o) {
2227
+ function Tr(t, e, n, r, s, o) {
2183
2228
  const i = 1 / (e - t), a = 1 / (r - n), c = 1 / (o - s);
2184
2229
  return [2 * i, 0, 0, 0, 0, 2 * a, 0, 0, 0, 0, -2 * c, 0, -(e + t) * i, -(r + n) * a, -(o + s) * c, 1];
2185
2230
  }
2186
- function Tr(t, e, n = [0, 1, 0]) {
2231
+ function xr(t, e, n = [0, 1, 0]) {
2187
2232
  const r = Pt(Et(t, e)), s = Pt(vt(n, r)), o = vt(r, s);
2188
2233
  return [
2189
2234
  s[0],
@@ -2204,43 +2249,43 @@ function Tr(t, e, n = [0, 1, 0]) {
2204
2249
  1
2205
2250
  ];
2206
2251
  }
2207
- function xr(t, e) {
2252
+ function kr(t, e) {
2208
2253
  const n = t[0] * e[0] + t[4] * e[1] + t[8] * e[2] + t[12], r = t[1] * e[0] + t[5] * e[1] + t[9] * e[2] + t[13], s = t[2] * e[0] + t[6] * e[1] + t[10] * e[2] + t[14], o = t[3] * e[0] + t[7] * e[1] + t[11] * e[2] + t[15];
2209
2254
  return o === 1 || o === 0 ? [n, r, s] : [n / o, r / o, s / o];
2210
2255
  }
2211
- const is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2256
+ const hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2212
2257
  __proto__: null,
2213
- compose: mr,
2258
+ compose: yr,
2214
2259
  fromQuat: $e,
2215
- identity: fr,
2216
- invert: Mr,
2217
- lookAt: Tr,
2218
- multiply: pr,
2219
- orthographic: br,
2220
- perspective: _r,
2221
- scaling: gr,
2222
- transformPoint: xr,
2223
- translation: dr,
2224
- transpose: yr
2260
+ identity: pr,
2261
+ invert: _r,
2262
+ lookAt: xr,
2263
+ multiply: dr,
2264
+ orthographic: Tr,
2265
+ perspective: br,
2266
+ scaling: mr,
2267
+ transformPoint: kr,
2268
+ translation: gr,
2269
+ transpose: Mr
2225
2270
  }, Symbol.toStringTag, { value: "Module" }));
2226
2271
  export {
2227
- Ar as Clock,
2272
+ wr as Clock,
2228
2273
  ye as DEFAULT_BAKE_INTERVAL_MS,
2229
2274
  zt as DEFAULT_INERTIA_FRICTION,
2230
2275
  L as DEFAULT_SPRING,
2231
2276
  Xt as FORMAT_VERSION,
2232
2277
  ze as INERTIA_MAX_DURATION_MS,
2233
2278
  Yn as InertiaTrackPlayer,
2234
- Er as MORPH_SAMPLES,
2235
- Sr as ManualClock,
2279
+ Or as MORPH_SAMPLES,
2280
+ Ar as ManualClock,
2236
2281
  ie as SPRING_MAX_DURATION_MS,
2237
- wr as SPRING_PRESETS,
2282
+ Pr as SPRING_PRESETS,
2238
2283
  tt as SPRING_STEP_MS,
2239
2284
  ut as SpringSampler,
2240
2285
  zn as SpringTrackPlayer,
2241
2286
  Bn as Timeline,
2242
2287
  _t as TrackPlayer,
2243
- Br as ValueResolver,
2288
+ Qr as ValueResolver,
2244
2289
  Je as backOut,
2245
2290
  On as bakeEasing,
2246
2291
  _e as bakeInertiaTrack,
@@ -2248,21 +2293,21 @@ export {
2248
2293
  It as beatAtTime,
2249
2294
  ve as beatLength,
2250
2295
  Ct as beatTime,
2251
- es as beatsBetween,
2296
+ rs as beatsBetween,
2252
2297
  qe as bounceOut,
2253
2298
  Vn as charactersFor,
2254
- Lr as clearMorphCache,
2255
- Cr as clearPathCache,
2299
+ Fr as clearMorphCache,
2300
+ Er as clearPathCache,
2256
2301
  Ke as createCubicBezier,
2257
2302
  qn as createRandom,
2258
2303
  Xn as createTrack,
2259
- Rr as criticalDamping,
2260
- Qr as customBounce,
2261
- Wr as customEase,
2262
- Gr as customWiggle,
2304
+ Cr as criticalDamping,
2305
+ Kr as customBounce,
2306
+ Gr as customEase,
2307
+ Zr as customWiggle,
2263
2308
  Zn as deserializeTimeline,
2264
2309
  Gn as deserializeTrack,
2265
- ns as detectTempo,
2310
+ ss as detectTempo,
2266
2311
  Be as easeIn,
2267
2312
  ae as easeInCubic,
2268
2313
  Qe as easeInOut,
@@ -2275,71 +2320,75 @@ export {
2275
2320
  Ze as elasticOut,
2276
2321
  Fn as expandParametricEasings,
2277
2322
  ne as formatVersionFor,
2278
- Ur as fromJSON,
2323
+ jr as fromJSON,
2279
2324
  le as getEasingFunction,
2280
2325
  me as getInterpolator,
2281
2326
  Te as getMotionPathPoint,
2282
- Ir as getPathLength,
2327
+ Lr as getPathLength,
2283
2328
  hn as getPointAtProgress,
2284
2329
  Le as hasKeyframes,
2285
- Vr as hashSeed,
2330
+ Hr as hashSeed,
2331
+ vr as heldTime,
2286
2332
  ft as inertiaDuration,
2287
2333
  ht as inertiaRest,
2288
2334
  kt as inertiaValueAt,
2289
- Dr as inertiaVelocityAt,
2335
+ Ir as inertiaVelocityAt,
2290
2336
  In as interpolateArray,
2291
2337
  Cn as interpolateColor,
2292
- Xr as interpolateMotionPath,
2338
+ Yr as interpolateMotionPath,
2293
2339
  N as interpolateNumber,
2294
2340
  Ln as interpolatePathString,
2295
2341
  En as interpolateQuaternion,
2296
2342
  te as interpolateString,
2297
2343
  Ee as isCubicBezierEasing,
2298
2344
  V as isInertiaTrack,
2299
- kr as isMotionPathPoint,
2345
+ Sr as isMotionPathPoint,
2300
2346
  re as isMotionPathTrack,
2301
2347
  xt as isParametricEasing,
2302
2348
  Sn as isPathData,
2303
2349
  j as isSpringTrack,
2304
2350
  $t as isTextTrack,
2305
- $r as isUnderdamped,
2306
- Hr as isUnresolved,
2351
+ Dr as isUnderdamped,
2352
+ Wr as isUnresolved,
2307
2353
  St as linear,
2308
- is as mat4,
2354
+ hs as mat4,
2309
2355
  Oe as maxStaggerDistance,
2310
2356
  kn as morphPath,
2311
- Zr as narrationMarkers,
2312
- qr as narrationSceneAt,
2357
+ Jr as narrationMarkers,
2358
+ ts as narrationSceneAt,
2313
2359
  Ye as naturalRest,
2314
- Jr as nearestBeat,
2315
- ts as nextBeat,
2360
+ es as nearestBeat,
2361
+ ns as nextBeat,
2316
2362
  en as parametricEasing,
2317
2363
  G as parsePath,
2318
- Kr as planNarration,
2319
- zr as playheadCrossings,
2364
+ qr as planNarration,
2365
+ Ur as playheadCrossings,
2320
2366
  he as pointAtDistance,
2321
- rs as pointsToPath,
2322
- Or as quat,
2367
+ os as pointsToPath,
2368
+ Nr as quat,
2323
2369
  ke as randomBetween,
2324
- jr as randomChoice,
2370
+ Br as randomChoice,
2325
2371
  Jn as randomSnapped,
2326
2372
  tr as resolveSequence,
2327
2373
  we as resolveValue,
2374
+ cs as ribbon,
2375
+ us as ribbonHeadCap,
2328
2376
  Kn as serializeTimeline,
2329
2377
  Qn as serializeTrack,
2330
- ss as shapeToPathData,
2378
+ is as shapeToPathData,
2331
2379
  Nn as simplifyKeyframes,
2332
- Pr as springDuration,
2333
- vr as springValueAt,
2380
+ Rr as springDuration,
2381
+ $r as springValueAt,
2334
2382
  se as staggerDistance,
2335
2383
  oe as staggerOffset,
2336
2384
  Fe as staggerOffsets,
2337
2385
  Rt as staggerSpan,
2338
2386
  tn as stepsEasing,
2339
2387
  Hn as textAt,
2340
- Yr as toJSON,
2341
- Fr as toKeyframedTrack,
2342
- Nr as toKeyframedTracks,
2388
+ Vr as toJSON,
2389
+ Xr as toKeyframedTrack,
2390
+ zr as toKeyframedTracks,
2343
2391
  U as trackTargets,
2344
- os as vec3
2392
+ as as trailSamples,
2393
+ ls as vec3
2345
2394
  };