@algorisys/tinyfly 0.116.0 → 0.117.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.
@@ -1772,8 +1772,20 @@ function uS(t, e) {
1772
1772
  if (e.length !== 0)
1773
1773
  return e[Math.floor(t.next() * e.length)];
1774
1774
  }
1775
+ function dS(t, e = 0, n = 1) {
1776
+ const s = 1 - t.next(), o = t.next();
1777
+ return e + n * Math.sqrt(-2 * Math.log(s)) * Math.cos(2 * Math.PI * o);
1778
+ }
1779
+ function fS(t, e) {
1780
+ const n = [...e];
1781
+ for (let s = n.length - 1; s > 0; s--) {
1782
+ const o = Math.floor(t.next() * (s + 1));
1783
+ [n[s], n[o]] = [n[o], n[s]];
1784
+ }
1785
+ return n;
1786
+ }
1775
1787
  const Wu = /^([+\-*/])=\s*(-?[\d.]+)$/, Nu = /^random\(\s*(-?[\d.]+)\s*,\s*(-?[\d.]+)\s*(?:,\s*(-?[\d.]+)\s*)?\)$/i;
1776
- function dS(t) {
1788
+ function gS(t) {
1777
1789
  return typeof t != "string" ? !1 : Wu.test(t.trim()) || Nu.test(t.trim());
1778
1790
  }
1779
1791
  function Du(t, e = {}) {
@@ -1812,7 +1824,7 @@ function Jp(t, e = 0, n) {
1812
1824
  }
1813
1825
  return s;
1814
1826
  }
1815
- class fS {
1827
+ class pS {
1816
1828
  random;
1817
1829
  constructor(e) {
1818
1830
  this.random = Mn(e);
@@ -1918,7 +1930,7 @@ function Tc(t, e, n, s) {
1918
1930
  };
1919
1931
  }
1920
1932
  const om = 350, rm = 300, im = 550;
1921
- function gS(t, e = {}) {
1933
+ function mS(t, e = {}) {
1922
1934
  const n = e.lead ?? om, s = e.gap ?? rm, o = e.tail ?? im, r = [];
1923
1935
  let i = 0;
1924
1936
  return t.forEach((a, l) => {
@@ -1940,10 +1952,10 @@ function gS(t, e = {}) {
1940
1952
  r.push({ id: a.id ?? `s${l}`, start: i, duration: u - i, cues: c }), i = u;
1941
1953
  }), { duration: i, scenes: r, cues: r.flatMap((a) => a.cues) };
1942
1954
  }
1943
- function pS(t) {
1955
+ function yS(t) {
1944
1956
  return t.cues.map((e) => ({ id: e.id, time: e.start, label: e.text }));
1945
1957
  }
1946
- function mS(t, e) {
1958
+ function bS(t, e) {
1947
1959
  let n = t.scenes[0];
1948
1960
  for (const s of t.scenes)
1949
1961
  if (e >= s.start) n = s;
@@ -1957,13 +1969,13 @@ function dl(t, e) {
1957
1969
  function Rr(t, e) {
1958
1970
  return (e - t.offset) / Hr(t);
1959
1971
  }
1960
- function yS(t, e) {
1972
+ function wS(t, e) {
1961
1973
  return dl(t, Math.round(Rr(t, e)));
1962
1974
  }
1963
- function bS(t, e) {
1975
+ function kS(t, e) {
1964
1976
  return dl(t, Math.ceil(Rr(t, e) - 1e-9));
1965
1977
  }
1966
- function wS(t, e, n) {
1978
+ function vS(t, e, n) {
1967
1979
  const s = Math.max(1, Math.round(t.beatsPerBar ?? 4)), o = [];
1968
1980
  if (!(t.bpm > 0) || n < e) return o;
1969
1981
  for (let r = Math.ceil(Rr(t, e) - 1e-9); ; r++) {
@@ -1974,7 +1986,7 @@ function wS(t, e, n) {
1974
1986
  return o;
1975
1987
  }
1976
1988
  const $n = 100;
1977
- function kS(t, e, n = {}) {
1989
+ function MS(t, e, n = {}) {
1978
1990
  const s = n.minBpm ?? 70, o = n.maxBpm ?? 180, r = Math.max(1, Math.round(e / $n)), i = Math.min(t.length, Math.round((n.maxSeconds ?? 60) * e)), a = Math.floor(i / r);
1979
1991
  if (a < 4) return { bpm: 120, offset: 0, confidence: 0 };
1980
1992
  const l = new Float64Array(a);
@@ -2021,7 +2033,7 @@ function kS(t, e, n = {}) {
2021
2033
  return { bpm: Math.round(E * 100) / 100, offset: Math.round(x % (6e4 / E)), confidence: v };
2022
2034
  }
2023
2035
  const am = 600, lm = 250, Ec = 1;
2024
- function vS(t, e) {
2036
+ function xS(t, e) {
2025
2037
  const n = e.target ?? "Camera", s = { x: e.stage.width / 2, y: e.stage.height / 2 }, o = {}, r = (u, d, f, p) => {
2026
2038
  const g = o[u] ??= [];
2027
2039
  for (; g.length > 0 && g[g.length - 1].time >= d; ) g.pop();
@@ -2121,7 +2133,7 @@ function Bu(t) {
2121
2133
  const e = t - Math.floor(t);
2122
2134
  return 1 - Math.abs(e * 2 - 1);
2123
2135
  }
2124
- function MS(t, e) {
2136
+ function SS(t, e) {
2125
2137
  const n = Math.max(1, Math.round(e.cycles ?? 1)), s = e.amplitude ?? 1, o = rs(t, e.period, n) + (e.phase ?? 0), r = o - Math.floor(o);
2126
2138
  switch (e.shape ?? "sine") {
2127
2139
  case "triangle":
@@ -2132,15 +2144,15 @@ function MS(t, e) {
2132
2144
  return s * Math.sin(r * Math.PI * 2);
2133
2145
  }
2134
2146
  }
2135
- function xS(t, e) {
2147
+ function TS(t, e) {
2136
2148
  const n = Math.max(1, Math.round(e.cycles ?? 1)), s = typeof e.easing == "function" ? e.easing : zt(e.easing ?? "ease-in-out"), o = rs(t, e.period, n) + (e.phase ?? 0);
2137
2149
  return s(Bu(o));
2138
2150
  }
2139
- function SS(t, e) {
2151
+ function ES(t, e) {
2140
2152
  const n = zu(e.seed), s = Math.max(1, Math.round(e.cycles ?? 1)), o = (rs(t, e.period, 1) + (e.phase ?? 0)) * Math.PI * 2, r = s / Math.PI;
2141
2153
  return qu([Math.cos(o) * r + 7.31, Math.sin(o) * r + 3.17], n, e.octaves ?? 1);
2142
2154
  }
2143
- function TS(t, e, n) {
2155
+ function AS(t, e, n) {
2144
2156
  const s = zu(n.seed), o = Math.max(1, Math.round(n.cycles ?? 1)), r = Math.max(1, Math.round(n.cyclesAlong ?? 1)), i = rs(t, n.period, 1) * Math.PI * 2, a = rs(e, n.periodAlong, 1) * Math.PI * 2, l = o / Math.PI, c = r / Math.PI;
2145
2157
  return qu([Math.cos(i) * l + 5.13, Math.sin(i) * l + 9.47, Math.cos(a) * c + 2.71, Math.sin(a) * c + 6.29], s, n.octaves ?? 1);
2146
2158
  }
@@ -2174,25 +2186,25 @@ function um(t, e) {
2174
2186
  n = Math.imul(n ^ (s | 0), 2246822507) >>> 0, n = (n ^ n >>> 13) >>> 0, n = Math.imul(n, 3266489909) >>> 0, n = (n ^ n >>> 16) >>> 0;
2175
2187
  return n / 4294967296 * 2 - 1;
2176
2188
  }
2177
- function ES(t, e = {}) {
2189
+ function $S(t, e = {}) {
2178
2190
  if (t.length === 0) throw new Error("curve: needs at least one key");
2179
2191
  const s = { id: "curve", target: "curve", property: "value", keyframes: t.map((r) => ({ time: r.at, value: r.value, easing: r.easing })).sort((r, i) => r.time - i.time), interpolation: e.interpolation }, o = new dn(s);
2180
2192
  return (r) => o.getValueAtTime(r);
2181
2193
  }
2182
- function AS(t, e) {
2194
+ function PS(t, e) {
2183
2195
  return e * Hr({ bpm: t.bpm });
2184
2196
  }
2185
- function $S(t, e) {
2197
+ function OS(t, e) {
2186
2198
  const n = Math.max(1, Math.round(t / Hr(e)));
2187
2199
  return { beats: n, grid: { ...e, bpm: n * 6e4 / t } };
2188
2200
  }
2189
- function PS(t, e, n = {}) {
2201
+ function IS(t, e, n = {}) {
2190
2202
  const s = Math.max(1e-6, n.attack ?? 0.05), o = Math.max(1e-6, n.decay ?? 0.4), r = Rr(e, t), i = r - Math.floor(r), a = i < s ? i / s : Math.max(0, 1 - (i - s) / o), l = n.barAccent ?? 0;
2191
2203
  if (l <= 0) return a;
2192
2204
  const c = Math.max(1, Math.round(e.beatsPerBar ?? 4)), u = (Math.floor(r) % c + c) % c === 0;
2193
2205
  return a * (u ? 1 + l : 1) / (1 + l);
2194
2206
  }
2195
- function OS(t, e, n = {}) {
2207
+ function _S(t, e, n = {}) {
2196
2208
  const s = n.fps ?? 30, o = Math.max(1, Math.round(e / s)), r = Math.max(1, Math.ceil(t.length / o)), i = new Float32Array(r), a = Math.min(0.99, Math.max(0, n.smoothing ?? 0.5));
2197
2209
  let l = 0, c = 0;
2198
2210
  for (let h = 0; h < r; h++) {
@@ -2205,7 +2217,7 @@ function OS(t, e, n = {}) {
2205
2217
  if (n.normalize !== !1 && c > 0) for (let h = 0; h < r; h++) i[h] /= c;
2206
2218
  return i;
2207
2219
  }
2208
- function IS(t, e, n = 30, s) {
2220
+ function CS(t, e, n = 30, s) {
2209
2221
  if (t.length === 0) return 0;
2210
2222
  const r = (s ? rs(e, s) * s : e) * n / 1e3, i = Math.floor(r), a = t[Math.min(t.length - 1, Math.max(0, i))], l = t[Math.min(t.length - 1, Math.max(0, i + 1))];
2211
2223
  return a + (l - a) * (r - i);
@@ -2218,7 +2230,7 @@ const dm = {
2218
2230
  "9:16": 9 / 16,
2219
2231
  "4:5": 4 / 5
2220
2232
  }, ju = (t) => typeof t == "number" ? t : dm[t];
2221
- function _S(t, e) {
2233
+ function HS(t, e) {
2222
2234
  const n = ju(e), s = t.width / t.height;
2223
2235
  if (n >= s) {
2224
2236
  const r = t.width / n;
@@ -2227,11 +2239,11 @@ function _S(t, e) {
2227
2239
  const o = t.height * n;
2228
2240
  return { x: (t.width - o) / 2, y: 0, width: o, height: t.height };
2229
2241
  }
2230
- function CS(t, e) {
2242
+ function RS(t, e) {
2231
2243
  const n = ju(t), s = (o) => Math.max(2, Math.round(o / 2) * 2);
2232
2244
  return "width" in e ? { width: s(e.width), height: s(e.width / n) } : { width: s(e.height * n), height: s(e.height) };
2233
2245
  }
2234
- function HS(t, e = {}) {
2246
+ function FS(t, e = {}) {
2235
2247
  const n = (s) => ({
2236
2248
  x: t.x + t.width * (1 - s) / 2,
2237
2249
  y: t.y + t.height * (1 - s) / 2,
@@ -2295,7 +2307,7 @@ function fl(t) {
2295
2307
  return null;
2296
2308
  }
2297
2309
  }
2298
- function RS(t, e, n) {
2310
+ function LS(t, e, n) {
2299
2311
  const s = Math.max(2, Math.round(n.samples ?? 32)), o = Math.max(0, n.length), r = n.since !== void 0 ? Math.max(e - o, n.since) : e - o;
2300
2312
  if (r >= e) return [];
2301
2313
  const i = n.period, a = [];
@@ -2335,8 +2347,8 @@ function ym(t) {
2335
2347
  }
2336
2348
  return null;
2337
2349
  }
2338
- const FS = { scale: 1, turn: 0, x: 0, y: 0 };
2339
- function LS(t = {}) {
2350
+ const WS = { scale: 1, turn: 0, x: 0, y: 0 };
2351
+ function NS(t = {}) {
2340
2352
  return { scale: t.scale ?? 1, turn: t.turn ?? 0, x: t.x ?? 0, y: t.y ?? 0 };
2341
2353
  }
2342
2354
  function bm(t, e, n) {
@@ -2347,11 +2359,11 @@ function Yu(t, e) {
2347
2359
  const { ax: n, ay: s } = Fr(t.scale, t.turn);
2348
2360
  return { x: n * e.x - s * e.y + t.x, y: s * e.x + n * e.y + t.y };
2349
2361
  }
2350
- function WS(t, e) {
2362
+ function DS(t, e) {
2351
2363
  const n = Yu(e, { x: t.x, y: t.y });
2352
2364
  return { scale: t.scale * e.scale, turn: t.turn + e.turn, x: n.x, y: n.y };
2353
2365
  }
2354
- function NS(t) {
2366
+ function BS(t) {
2355
2367
  if (t.scale === 0) throw new Error("invertSimilarity: a scale of 0 cannot be undone");
2356
2368
  const e = { scale: 1 / t.scale, turn: -t.turn, x: 0, y: 0 }, n = Yu(e, { x: t.x, y: t.y });
2357
2369
  return { ...e, x: -n.x, y: -n.y };
@@ -2360,12 +2372,12 @@ function wm(t) {
2360
2372
  const { ax: e, ay: n } = Fr(t.scale, t.turn), s = 1 - e, o = -n, r = s * s + o * o;
2361
2373
  return r < 1e-18 ? null : { x: (t.x * s + t.y * o) / r, y: (t.y * s - t.x * o) / r };
2362
2374
  }
2363
- function DS(t, e) {
2375
+ function zS(t, e) {
2364
2376
  if (t.scale <= 0) throw new Error("powSimilarity: the scale must be positive");
2365
2377
  const n = Math.pow(t.scale, e), s = t.turn * e, o = wm(t);
2366
2378
  return o ? bm(n, s, o) : { scale: n, turn: s, x: t.x * e, y: t.y * e };
2367
2379
  }
2368
- function BS(t) {
2380
+ function qS(t) {
2369
2381
  const { ax: e, ay: n } = Fr(t.scale, t.turn);
2370
2382
  return [e, n, -n, e, t.x, t.y];
2371
2383
  }
@@ -2389,7 +2401,7 @@ function Xu(t, e = {}) {
2389
2401
  function Uu(t, e = {}) {
2390
2402
  return t.map((n) => ({ box: n, depth: Ku([(n.min[0] + n.max[0]) / 2, (n.min[1] + n.max[1]) / 2, (n.min[2] + n.max[2]) / 2]) })).sort((n, s) => n.depth - s.depth).flatMap(({ box: n }) => Xu(n, e));
2391
2403
  }
2392
- function zS(t = {}) {
2404
+ function jS(t = {}) {
2393
2405
  const e = t.size ?? 10, s = (t.thickness ?? 2) / 2, o = [
2394
2406
  { tag: 0, min: [-s, -s, -s], max: [e - s, s, s] },
2395
2407
  { tag: 1, min: [e - s, -s, -s], max: [e + s, e - s, s] },
@@ -2397,7 +2409,7 @@ function zS(t = {}) {
2397
2409
  ], r = t.centre ?? { x: 0, y: 0 }, i = gl([2 * e / 3, e / 3, e / 3], { scale: t.scale }), a = { centre: { x: r.x - i.x, y: r.y - i.y }, scale: t.scale };
2398
2410
  return { boxes: o, faces: [...Uu(o, a), ...Xu({ ...o[0], hide: ["right"] }, a)] };
2399
2411
  }
2400
- function qS(t = {}) {
2412
+ function YS(t = {}) {
2401
2413
  const e = Math.max(2, Math.round(t.steps ?? 8)), n = t.tread ?? 1.5, s = t.rise ?? 0.25, o = t.width ?? 3, r = t.base ?? 1.5, i = Math.max(1, Math.round(e * (n - 2 * s) / (n + 2 * s))), a = 2 * (e + i), l = n * (e - i) / a, c = [
2402
2414
  { dir: [1, 0, 0], across: [0, 1, 0], count: e },
2403
2415
  { dir: [0, 1, 0], across: [-1, 0, 0], count: e },
@@ -2427,7 +2439,7 @@ function km(t, e, n) {
2427
2439
  }
2428
2440
  return s;
2429
2441
  }
2430
- function jS(t, e = {}) {
2442
+ function KS(t, e = {}) {
2431
2443
  if (t.length === 0) return [];
2432
2444
  const n = e.threshold ?? 1, s = Math.max(0.5, e.cell ?? 4), o = Math.sqrt(1 / n) * 1.6, r = e.bounds ?? {
2433
2445
  x: Math.min(...t.map((f) => f.x - f.r * o)),
@@ -2515,7 +2527,7 @@ function Ac(t) {
2515
2527
  }
2516
2528
  return e;
2517
2529
  }
2518
- function YS(t) {
2530
+ function XS(t) {
2519
2531
  const e = Math.min(1, Math.max(0, t.progress));
2520
2532
  if (e <= 0) return [];
2521
2533
  const n = t.width / 2, s = n * (0.55 + 0.75 * e), o = Math.max(t.length * e, s * 1.2), r = t.x, i = t.y + o - s, a = Math.max(0.1, n * (0.35 - 0.3 * e)), l = i - Math.sqrt(Math.max(0, s * s - a * a)), c = Math.max(0, l - t.y), h = 8, u = [], d = [];
@@ -2530,7 +2542,7 @@ function YS(t) {
2530
2542
  }
2531
2543
  return [...d, ...y, ...u.reverse()];
2532
2544
  }
2533
- function KS(t) {
2545
+ function US(t) {
2534
2546
  const e = Math.min(1, Math.max(0, t.grow ?? 1)), n = e >= 1 ? 1 : 1 - Math.pow(1 - e, 3) + 0.08 * Math.sin(e * Math.PI) * e, s = t.r * Math.max(0, n);
2535
2547
  if (s <= 0) return [];
2536
2548
  const o = Math.max(12, Math.round(t.segments ?? 48)), r = t.wobble ?? 0.05, i = t.time ?? 0, a = t.period ? i / t.period : i / 2500, l = (a - Math.floor(a)) * Math.PI * 2, c = t.seed ?? 0, h = [];
@@ -2540,7 +2552,7 @@ function KS(t) {
2540
2552
  }
2541
2553
  return h;
2542
2554
  }
2543
- function XS(t) {
2555
+ function GS(t) {
2544
2556
  const e = t.progress;
2545
2557
  if (e <= 0 || e >= 1) return [];
2546
2558
  const n = Math.max(3, Math.round(t.pieces ?? 8)), s = [], o = t.r * (1 + 1.2 * e), r = Math.PI * 2 / n * 0.6 * (1 - e);
@@ -2554,11 +2566,11 @@ function XS(t) {
2554
2566
  }
2555
2567
  return s;
2556
2568
  }
2557
- function US(t, e = {}) {
2569
+ function VS(t, e = {}) {
2558
2570
  const n = Math.max(0.05, 1 + t);
2559
2571
  return { sx: e.keep === "volume" ? 1 / Math.sqrt(n) : 1 / n, sy: n };
2560
2572
  }
2561
- function GS(t, e, n = { x: 0, y: 0 }) {
2573
+ function JS(t, e, n = { x: 0, y: 0 }) {
2562
2574
  return t.map((s) => ({ x: n.x + (s.x - n.x) * e.sx, y: n.y + (s.y - n.y) * e.sy }));
2563
2575
  }
2564
2576
  function Hs(t, e) {
@@ -2589,7 +2601,7 @@ function Zt(t) {
2589
2601
  function sn(t, e, n) {
2590
2602
  return [t[0] + (e[0] - t[0]) * n, t[1] + (e[1] - t[1]) * n, t[2] + (e[2] - t[2]) * n];
2591
2603
  }
2592
- const VS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2604
+ const ZS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2593
2605
  __proto__: null,
2594
2606
  add: Hs,
2595
2607
  cross: qs,
@@ -2708,7 +2720,7 @@ function se(t, e) {
2708
2720
  const n = t[0] * e[0] + t[4] * e[1] + t[8] * e[2] + t[12], s = t[1] * e[0] + t[5] * e[1] + t[9] * e[2] + t[13], o = t[2] * e[0] + t[6] * e[1] + t[10] * e[2] + t[14], r = t[3] * e[0] + t[7] * e[1] + t[11] * e[2] + t[15];
2709
2721
  return r === 1 || r === 0 ? [n, s, o] : [n / r, s / r, o / r];
2710
2722
  }
2711
- const JS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2723
+ const QS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2712
2724
  __proto__: null,
2713
2725
  compose: pl,
2714
2726
  fromQuat: me,
@@ -4341,7 +4353,7 @@ class sd {
4341
4353
  function My(t) {
4342
4354
  return t < 0 ? 0 : t > 1 ? 1 : t;
4343
4355
  }
4344
- function ZS(t) {
4356
+ function t4(t) {
4345
4357
  const e = new sd(t);
4346
4358
  return e.start(), e;
4347
4359
  }
@@ -4733,7 +4745,7 @@ function js(t, e, n) {
4733
4745
  const s = id(n), o = s.absolutePx !== void 0 ? t.top + s.absolutePx : t.top + t.height * s.elementFraction, r = e * s.viewportFraction;
4734
4746
  return o - r + s.offsetPx;
4735
4747
  }
4736
- function QS(t, e, n, s) {
4748
+ function e4(t, e, n, s) {
4737
4749
  const o = js(t, e, n), i = js(t, e, s) - o;
4738
4750
  return i <= 0 ? o <= 0 ? 1 : 0 : ad(-o / i);
4739
4751
  }
@@ -4803,7 +4815,7 @@ class Ry {
4803
4815
  this.options.onLeave?.(), this.behaviour === "reset" && this.timeline.stop();
4804
4816
  }
4805
4817
  }
4806
- function t4(t) {
4818
+ function n4(t) {
4807
4819
  const e = new Ry(t);
4808
4820
  return e.start(), e;
4809
4821
  }
@@ -5194,7 +5206,7 @@ class Nr {
5194
5206
  function ks(t) {
5195
5207
  return typeof t == "function" ? t() : t;
5196
5208
  }
5197
- function e4(t) {
5209
+ function s4(t) {
5198
5210
  const e = new Nr(t);
5199
5211
  return e.start(), e;
5200
5212
  }
@@ -6851,11 +6863,11 @@ class vl {
6851
6863
  }
6852
6864
  }
6853
6865
  }
6854
- async function n4(t, e, n = {}) {
6866
+ async function o4(t, e, n = {}) {
6855
6867
  const s = new vl(t, { ...n, autoplay: !0 });
6856
6868
  return await s.load(e), s;
6857
6869
  }
6858
- function s4(t, e = {}) {
6870
+ function r4(t, e = {}) {
6859
6871
  return new vl(t, e);
6860
6872
  }
6861
6873
  const b1 = {
@@ -7239,7 +7251,7 @@ async function H1(t = document, e = {}) {
7239
7251
  const n = Array.from(t.querySelectorAll("[data-tinyfly-embed]"));
7240
7252
  return (await Promise.all(n.map((o) => I1(o, e)))).filter((o) => o !== void 0);
7241
7253
  }
7242
- function o4(t) {
7254
+ function i4(t) {
7243
7255
  const e = ar.get(t);
7244
7256
  e && (Sa.get(t)?.(), Sa.delete(t), e.controls?.destroy(), e.player.destroy(), ar.delete(t), t.removeAttribute("data-tinyfly-mounted"));
7245
7257
  }
@@ -7525,11 +7537,11 @@ class L1 {
7525
7537
  this.animationFrameId !== void 0 && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = void 0);
7526
7538
  }
7527
7539
  }
7528
- async function r4(t, e, n = {}) {
7540
+ async function a4(t, e, n = {}) {
7529
7541
  const s = new L1(t, { ...n, autoplay: !0 });
7530
7542
  return await s.load(e), s;
7531
7543
  }
7532
- const i4 = { type: "none", duration: 0 }, Ct = (t) => ({ description: t, unit: "degrees" }), At = (t, e = 0, n = 1) => ({ description: t, unit: `${e}..${n}`, min: e, max: n }), dd = {
7544
+ const l4 = { type: "none", duration: 0 }, Ct = (t) => ({ description: t, unit: "degrees" }), At = (t, e = 0, n = 1) => ({ description: t, unit: `${e}..${n}`, min: e, max: n }), dd = {
7533
7545
  lean: Ct("Upper body tipped about the hips (+ toward the way it faces)"),
7534
7546
  bend: Ct("Line of action: the spine curved (+ curls forward, − arches back)"),
7535
7547
  headTilt: Ct("Head tilt"),
@@ -8538,7 +8550,7 @@ function xb(t) {
8538
8550
  return e * n;
8539
8551
  }
8540
8552
  const Td = 0.12, lh = 0.46, Sb = 1 - 2 * Td, Tb = 0.1, Eb = 0.21, Ab = 0.19, Ia = 0.24, hr = 0.22, Ed = 0.12, $b = 0.14, Ad = 0.33, ch = 0.7, hh = 0.3, Pb = 0.35, Ob = [1.7, 1.05], Ib = [1.3, 0.75], uh = [1.45, 0.85], _b = [1.15, 0.75], dh = 0.06, Cb = 0.7, Hb = 0.65, $d = 0.075, Rb = 0.3, Fb = 0.02, Lb = 0.012, Wb = 12, Nb = 0.25, Mo = 90, Db = 0.25, Bb = 0.04, Pd = 0.01, an = (t) => Math.min(1, Math.max(0, t ?? 0));
8541
- function a4(t, e = 1) {
8553
+ function c4(t, e = 1) {
8542
8554
  return hr * t * e;
8543
8555
  }
8544
8556
  const _a = -0.12, Od = 0.4, le = (t) => t * Math.PI / 180, zb = (t, e) => ({ x: e * Math.sin(le(t)), y: Math.cos(le(t)) }), Id = (t, e) => Math.max(0, t) * (1 - Math.min(1, Math.max(0, e))), _d = (t, e, n, s) => t - 0.3 * e - n * 0.14 * e - Math.max(0, s - 1) * 0.12 * e;
@@ -8750,7 +8762,7 @@ function Kb(t, e) {
8750
8762
  function ke(t, e = {}) {
8751
8763
  return Hd(Cd(t, e), t);
8752
8764
  }
8753
- function l4(t, e, n) {
8765
+ function h4(t, e, n) {
8754
8766
  return Us({ x: t.center.x + e * t.rx, y: t.center.y + n * t.ry }, t.center, t.angle);
8755
8767
  }
8756
8768
  function Xb(t, e, n) {
@@ -8942,7 +8954,7 @@ function Sl(t) {
8942
8954
  e.push(n.expression ? rn(r, n.expression) : r);
8943
8955
  }), e;
8944
8956
  }
8945
- function c4(t, e) {
8957
+ function u4(t, e) {
8946
8958
  const n = Sl(e);
8947
8959
  return Sd.filter((s) => n.some((o) => o[s] !== ht[s])).map((s) => ({
8948
8960
  id: `${t}-${s}`,
@@ -9069,7 +9081,7 @@ function El(t, e, n = {}) {
9069
9081
  }
9070
9082
  return { ...o, pose: rw(o.pose, s.groove, e) };
9071
9083
  }
9072
- function h4(t, e, n = {}) {
9084
+ function d4(t, e, n = {}) {
9073
9085
  return El(t, e, n).pose;
9074
9086
  }
9075
9087
  function Al(t) {
@@ -9084,7 +9096,7 @@ function ph(t, e, n, s, o, r, i) {
9084
9096
  for (const u of l.taps ?? []) o.push({ beat: h, tap: s ? iw[u] : u });
9085
9097
  }
9086
9098
  }
9087
- function u4(t, e, n, s = {}) {
9099
+ function f4(t, e, n, s = {}) {
9088
9100
  const o = typeof t == "string" ? xn[t] : t, r = [];
9089
9101
  if (n <= e) return r;
9090
9102
  if (s.move) {
@@ -9148,13 +9160,13 @@ function cw(t, e, n) {
9148
9160
  keyframes: p.map((y) => ({ time: g + y.beat * 6e4 / o, value: m + n.height * y.travel, easing: "linear" }))
9149
9161
  };
9150
9162
  }
9151
- function d4(t, e, n = 0) {
9163
+ function g4(t, e, n = 0) {
9152
9164
  return (t - n) * e / 6e4;
9153
9165
  }
9154
- function f4(t, e = {}) {
9166
+ function p4(t, e = {}) {
9155
9167
  return (n) => El(t, n, e);
9156
9168
  }
9157
- function g4(t, e) {
9169
+ function m4(t, e) {
9158
9170
  const n = e.start ?? 0, s = 6e4 / e.bpm, o = n + e.beats * s, r = Math.min((e.fade ?? 1) * s, (o - n) / 2);
9159
9171
  return [
9160
9172
  {
@@ -9179,7 +9191,7 @@ function g4(t, e) {
9179
9191
  }
9180
9192
  ];
9181
9193
  }
9182
- function p4(t, e, n = {}) {
9194
+ function y4(t, e, n = {}) {
9183
9195
  const s = typeof e == "string" ? xn[e] : e, o = n.bpm ?? s.bpm, r = n.beats ?? (n.move ? s.moves[n.move].beats : Al(s)), i = n.samplesPerBeat ?? 4, a = n.start ?? 0, l = Math.round(r * i), c = Array.from({ length: l + 1 }, (g, m) => {
9184
9196
  const y = m / i;
9185
9197
  return { time: a + y * 6e4 / o, frame: El(s, y, n) };
@@ -10058,7 +10070,7 @@ function qd(t = {}) {
10058
10070
  }
10059
10071
  };
10060
10072
  }
10061
- function m4(t) {
10073
+ function b4(t) {
10062
10074
  const e = t.split(".");
10063
10075
  if (e[0] === "hand" && e.length >= 3) {
10064
10076
  const s = `${e[1] === "left" ? "Left" : "Right"} hand`, o = { spread: "finger spread", turn: "wrist turn", bend: "wrist bend", tilt: "wrist tilt", roll: "roll" }, r = e.slice(2).join(".");
@@ -10381,7 +10393,7 @@ function pr(t, e, n = at) {
10381
10393
  const d = Math.floor(e), f = e - d, p = f <= 0.6 ? 1 : 1 - wh((f - 0.6) / 0.4), g = Math.max(0, ...s.strikes.map((m) => 1 - Math.min(Un(o - m, s.beats), Un(m - o, s.beats)) / 0.25));
10382
10394
  return { pose: u, contact: { side: Un(d, 2) === 0 ? "left" : "right", start: d, weight: p }, strike: g };
10383
10395
  }
10384
- function y4(t, e) {
10396
+ function w4(t, e) {
10385
10397
  const n = Yd(e.style), s = e.bpm ?? n.bpm, o = e.beats ?? n.beats, r = e.samplesPerBeat ?? 16;
10386
10398
  if (![s, o, r].every((l) => Number.isFinite(l) && l > 0)) throw new Error("humanDanceTracks: bpm, beats and samplesPerBeat must be positive and finite");
10387
10399
  if (!Number.isFinite(e.start ?? 0)) throw new Error("humanDanceTracks: start must be finite");
@@ -12021,7 +12033,7 @@ function J2(t, e = at) {
12021
12033
  };
12022
12034
  }
12023
12035
  const Dh = { sweeping: V2, brushing: J2 };
12024
- function b4(t, e, n = at) {
12036
+ function k4(t, e, n = at) {
12025
12037
  const s = Dh[t];
12026
12038
  if (!s) throw new Error(`humanCyclePose: ${dt("cycle", t, Object.keys(Dh))}`);
12027
12039
  return s(e, n);
@@ -12548,7 +12560,7 @@ function ho(t = {}) {
12548
12560
  face: { ...a ? { style: "anime", projection: "volume", iris: "#66422e", nose: !0 } : {}, ...t.face, teeth: t.face?.teeth ?? !1, tongue: t.face?.tongue ?? !1 }
12549
12561
  };
12550
12562
  }
12551
- function w4(t, e, n, s) {
12563
+ function v4(t, e, n, s) {
12552
12564
  const { point: o, facing: r } = ls(t, [e, n, s]);
12553
12565
  return { point: o, facing: r };
12554
12566
  }
@@ -12691,11 +12703,11 @@ function Kr(t, e) {
12691
12703
  const n = e / t.height;
12692
12704
  return { ...t, height: e, lineWidth: t.lineWidth * n };
12693
12705
  }
12694
- function k4(t, e, n, s) {
12706
+ function M4(t, e, n, s) {
12695
12707
  const o = t.plan.id === "human" ? { ...at, ...e } : e, r = Ol(t.plan, o, { height: s.height, contact: t.contact }, n);
12696
12708
  return Yr(Kr(t, r.height), o, r).joints;
12697
12709
  }
12698
- function v4(t, e, n, s, o) {
12710
+ function x4(t, e, n, s, o) {
12699
12711
  const r = e.plan.id === "human" ? { ...at, ...n } : n, i = Ol(e.plan, r, { height: o.height, contact: e.contact }, s), a = Kr(e, i.height);
12700
12712
  Nl(t, a, r, Yr(a, r, i), o.time ?? 0);
12701
12713
  }
@@ -12734,7 +12746,7 @@ function Nl(t, e, n, s, o, r) {
12734
12746
  }
12735
12747
  xf(t, l, e.head, i.head, n, { lineWidth: e.lineWidth, skin: e.skin }), r || c(e.layers.front), t.restore();
12736
12748
  }
12737
- function M4(t, e, n, s) {
12749
+ function S4(t, e, n, s) {
12738
12750
  const o = e.plan.id === "human" ? { ...at, ...n } : n, r = Zs(e, o).joints.head.rx, i = Kr(e, e.height * s.radius / Math.max(1e-6, r)), a = Zs(i, o);
12739
12751
  t.save(), t.translate(s.x - a.joints.head.center.x, s.y - a.joints.head.center.y), Nl(t, i, o, a, s.time ?? 0, /* @__PURE__ */ new Set(["head"])), t.restore();
12740
12752
  }
@@ -12769,7 +12781,7 @@ function Dl(t, e = at, n) {
12769
12781
  }
12770
12782
  return s;
12771
12783
  }
12772
- function x4(t) {
12784
+ function T4(t) {
12773
12785
  const { character: e } = t, n = e.height * 0.8, s = e.height, o = e.plan.id === "human" ? at : {};
12774
12786
  return {
12775
12787
  type: "custom",
@@ -12801,7 +12813,7 @@ function dk(t, e, n) {
12801
12813
  groundY: t.groundY + n
12802
12814
  };
12803
12815
  }
12804
- function S4(t, e, n) {
12816
+ function E4(t, e, n) {
12805
12817
  const s = t.character;
12806
12818
  if (!s) throw new Error("characterAt: the target was not made by characterTarget");
12807
12819
  const o = { ...t.props };
@@ -12818,7 +12830,7 @@ function If(t, e = at) {
12818
12830
  n.push(i ? { ...i, turn: r.turn ?? 0 } : { ...r, ...s.pose });
12819
12831
  }), n;
12820
12832
  }
12821
- function T4(t, e, n = at) {
12833
+ function A4(t, e, n = at) {
12822
12834
  const s = If(e, n);
12823
12835
  return Object.keys(n).filter((r) => s.some((i) => (i[r] ?? n[r]) !== n[r])).map((r) => ({
12824
12836
  id: `${t}-${r}`,
@@ -12855,7 +12867,7 @@ function Jh(t, e) {
12855
12867
  const n = hs(t, `arm.${e}`, 2), s = hs(t, `arm.${e}`, 1);
12856
12868
  return Xr(n, wr(_f(Se(n, s)), t.character.lineWidth * 0.5));
12857
12869
  }
12858
- function E4(t, e, n = {}) {
12870
+ function $4(t, e, n = {}) {
12859
12871
  const s = Math.min(t.character.height, e.character.height), o = n.length ?? s * 0.22;
12860
12872
  if (!(o > 0) || !Number.isFinite(o)) throw new Error("meetDandiya: stick length must be positive and finite");
12861
12873
  const r = n.point ?? [(t.position[0] + e.position[0]) / 2, Math.max(t.position[1], e.position[1]) + s * 0.62, (t.position[2] + e.position[2]) / 2], i = (c, h) => {
@@ -12898,7 +12910,7 @@ function gk(t, e) {
12898
12910
  };
12899
12911
  });
12900
12912
  }
12901
- function A4(t, e) {
12913
+ function P4(t, e) {
12902
12914
  if (e.count !== void 0 && e.count !== t.length) throw new Error("danceCircleTracks: count must match targets.length");
12903
12915
  const n = e.bpm ?? 120, s = e.samplesPerBeat ?? 16;
12904
12916
  if (!t.length || ![n, e.beats, s].every((l) => Number.isFinite(l) && l > 0)) throw new Error("danceCircleTracks: targets and positive finite bpm, beats and samplesPerBeat are required");
@@ -12949,7 +12961,7 @@ function kk(t, e, n) {
12949
12961
  const s = typeof t == "string" ? Gr[t] : t, o = kr(e), r = kr((o - s.takeoff) / (s.landing - s.takeoff));
12950
12962
  return s.travel * n * r;
12951
12963
  }
12952
- function $4(t, e, n = {}) {
12964
+ function O4(t, e, n = {}) {
12953
12965
  const s = typeof e == "string" ? Gr[e] : e, o = n.start ?? 0, r = n.duration ?? s.duration, i = n.samples ?? 48, a = Array.from({ length: i + 1 }, (h, u) => {
12954
12966
  const d = u / i;
12955
12967
  return { time: o + d * r, progress: d, pose: wk(s, d) };
@@ -13293,7 +13305,7 @@ function Lf(t, e = {}) {
13293
13305
  function Wf(t, e, n = {}) {
13294
13306
  e.shadow.opacity <= 0 || e.shadow.points.length < 3 || (t.save(), t.globalAlpha = e.shadow.opacity, Vr(t, e.shadow.points, n.ink ?? "#26262b", !1), t.restore());
13295
13307
  }
13296
- function P4(t, e, n, s = {}) {
13308
+ function I4(t, e, n, s = {}) {
13297
13309
  t.save(), Ka(t, e, n, s), t.restore();
13298
13310
  }
13299
13311
  function Ik(t, e, n, s = {}) {
@@ -13477,7 +13489,7 @@ function Dk(t, e, n, s, o) {
13477
13489
  }
13478
13490
  return u;
13479
13491
  }
13480
- const O4 = {
13492
+ const _4 = {
13481
13493
  kind: "character",
13482
13494
  validate(t) {
13483
13495
  const e = t;
@@ -13622,7 +13634,7 @@ function zf(t, e = {}) {
13622
13634
  }
13623
13635
  return t.end > i[i.length - 1].time && (i.push({ time: t.end, value: en.rest.mouth, easing: "ease-in-out" }), a.push({ time: t.end, value: en.rest.mouthWidth, easing: "ease-in-out" })), { [n]: i, [s]: a };
13624
13636
  }
13625
- function I4(t, e, n = {}) {
13637
+ function C4(t, e, n = {}) {
13626
13638
  const s = {};
13627
13639
  for (const o of [...e].sort((r, i) => r.start - i.start))
13628
13640
  for (const [r, i] of Object.entries(zf(o, n))) {
@@ -13874,7 +13886,7 @@ function i5(t) {
13874
13886
  i.do === "pose" && !(typeof i.pose == "object" && i.pose !== null) && !zi.includes(i.pose) && r(dt("pose", i.pose, zi)), i.do === "gag" && !qi.includes(i.gag) && r(dt("gag", i.gag, qi));
13875
13887
  }), n;
13876
13888
  }
13877
- function _4(t, e, n) {
13889
+ function H4(t, e, n) {
13878
13890
  const s = i5(e);
13879
13891
  if (s.length > 0) throw new Error(`characterScript3D: ${s.length} problem(s) in the beats:
13880
13892
  ${s.map((v) => ` beat ${v.beat}: ${v.message}`).join(`
@@ -13984,7 +13996,7 @@ function g0(t, e, n = [0, 0, 0]) {
13984
13996
  return [l("x", n[0]), l("y", n[1]), l("z", n[2])];
13985
13997
  };
13986
13998
  }
13987
- function C4(t, e) {
13999
+ function R4(t, e) {
13988
14000
  const n = `${e.scene}/${e.character}`, s = e.height ?? 1.7, o = Math.max(1, e.every ?? 66), r = e.objects?.[e.character] ?? [0, 0, 0], i = new Ft({ id: `${n}-own`, tracks: t.filter((u) => u.target === n) }), a = e.at, l = typeof a == "function" ? a : Array.isArray(a) ? () => a : "camera" in a ? g0(t, `${e.scene}/${a.camera}`, e.objects?.[a.camera] ?? [0, 1.6, 8]) : (() => {
13989
14001
  const u = g0(t, `${e.scene}/${a.object}`, e.objects?.[a.object] ?? [0, 0, 0]), d = a.eyeHeight ?? s * 0.9;
13990
14002
  return (f) => {
@@ -14002,7 +14014,7 @@ function C4(t, e) {
14002
14014
  }
14003
14015
  return c.map((u) => ({ id: `${n}-lookAt-${u}`, target: n, property: u, keyframes: h[u] }));
14004
14016
  }
14005
- function H4(t) {
14017
+ function F4(t) {
14006
14018
  const e = Math.max(1, Math.round(t.count)), [n, s] = t.centre ?? [0, 0], o = t.spacing ?? 1.2, r = t.shape ?? "line", i = [];
14007
14019
  if (r === "circle") {
14008
14020
  const h = e < 2 ? 0 : Math.max(o, o * e / (Math.PI * 2));
@@ -14038,7 +14050,7 @@ function H4(t) {
14038
14050
  return i;
14039
14051
  }
14040
14052
  const a5 = { x: 0, y: 0, scale: 1, rotate: 0, shakeX: 0, shakeY: 0, shakeRotate: 0 };
14041
- function R4(t) {
14053
+ function L4(t) {
14042
14054
  const e = (n) => {
14043
14055
  const s = t?.get(n);
14044
14056
  return typeof s == "number" ? s : a5[n];
@@ -14053,11 +14065,11 @@ function R4(t) {
14053
14065
  shakeRotate: e("shakeRotate")
14054
14066
  };
14055
14067
  }
14056
- function F4(t, e, n) {
14068
+ function W4(t, e, n) {
14057
14069
  const s = n.width / 2, o = n.height / 2, i = 1 + 2 * Math.max(Math.abs(e.shakeX), Math.abs(e.shakeY)) / Math.max(1, Math.min(n.width, n.height));
14058
14070
  t.translate(s + e.x + e.shakeX, o + e.y + e.shakeY), t.rotate((e.rotate + e.shakeRotate) * Math.PI / 180), t.scale(e.scale * i, e.scale * i), t.translate(-s, -o);
14059
14071
  }
14060
- function L4(t, e, n) {
14072
+ function N4(t, e, n) {
14061
14073
  const s = e.width / 2, o = e.height / 2, r = (t.rotate + t.shakeRotate) * Math.PI / 180, i = (n.x - s) * t.scale, a = (n.y - o) * t.scale;
14062
14074
  return {
14063
14075
  x: s + t.x + t.shakeX + i * Math.cos(r) - a * Math.sin(r),
@@ -14135,7 +14147,7 @@ function h5(t, e, n, s, o, r, i, a) {
14135
14147
  const p = [h(f, -1, c * 1.3), h(o, -1, c * 1.5), h(o, 1, c * 1.5), h(f, 1, c * 1.3)];
14136
14148
  t.beginPath(), p.forEach((g, m) => m ? t.lineTo(g.x, g.y) : t.moveTo(g.x, g.y)), t.closePath(), t.fillStyle = d(i), t.fill(), t.strokeStyle = d(a), t.beginPath(), t.moveTo(p[1].x, p[1].y), t.lineTo(p[0].x, p[0].y), t.lineTo(p[3].x, p[3].y), t.lineTo(p[2].x, p[2].y), t.stroke(), t.restore();
14137
14149
  }
14138
- function W4(t, e, n = {}) {
14150
+ function D4(t, e, n = {}) {
14139
14151
  const s = n.offstage ?? { x: 2e3, y: 1400 }, o = n.enter ?? 450, r = n.exit ?? 450, i = n.linger ?? 1500, a = [...t].filter((g) => g.path.length > 0).sort((g, m) => g.start - m.start), l = (g) => g.tool ?? "pencil", c = (g) => {
14140
14152
  const m = Math.min(1, Math.max(0, g));
14141
14153
  return m * m * (3 - 2 * m);
@@ -14159,7 +14171,7 @@ function W4(t, e, n = {}) {
14159
14171
  }
14160
14172
  return null;
14161
14173
  }
14162
- function N4(t, e, n, s = 0.08, o = 32) {
14174
+ function B4(t, e, n, s = 0.08, o = 32) {
14163
14175
  const r = Math.PI * 2 * (1 + s), i = [];
14164
14176
  for (let a = 0; a <= o; a++) {
14165
14177
  const l = -Math.PI / 2 + r * a / o;
@@ -14167,7 +14179,7 @@ function N4(t, e, n, s = 0.08, o = 32) {
14167
14179
  }
14168
14180
  return i;
14169
14181
  }
14170
- function D4(t) {
14182
+ function z4(t) {
14171
14183
  const { path: e } = t, n = e.map((a) => a.x), s = e.map((a) => a.y), o = Math.min(...n), r = Math.min(...s), i = t.hand === !1 ? void 0 : t.hand === !0 || t.hand === void 0 ? {} : t.hand;
14172
14184
  return {
14173
14185
  type: "custom",
@@ -14199,7 +14211,7 @@ function Zf(t, e, n) {
14199
14211
  }
14200
14212
  }
14201
14213
  const Io = 1e5;
14202
- function B4(t, e, n, s, o = 6) {
14214
+ function q4(t, e, n, s, o = 6) {
14203
14215
  const r = [], i = Math.max(1, Math.round(o));
14204
14216
  for (let a = 0; a <= i; a++)
14205
14217
  r.push({ x: a % 2 === 0 ? t : t + n, y: e + s * a / i });
@@ -14223,10 +14235,10 @@ function Qf(t, e, n, s) {
14223
14235
  });
14224
14236
  }
14225
14237
  }
14226
- function z4(t, e, n, s, o) {
14238
+ function j4(t, e, n, s, o) {
14227
14239
  t.save(), Qf(t, e, n, s), o(), t.restore();
14228
14240
  }
14229
- function q4(t, e) {
14241
+ function Y4(t, e) {
14230
14242
  const n = e.width ?? 40, s = e.hand === !0 ? {} : e.hand || void 0, o = e.eraser === !1 ? void 0 : e.eraser === !0 || e.eraser === void 0 ? {} : e.eraser;
14231
14243
  return {
14232
14244
  ...t,
@@ -14397,7 +14409,7 @@ const p5 = {
14397
14409
  fling: "a token; { at, velocity?, spin?, gravity?, duration? }: throw or kick the word away on a spinning arc"
14398
14410
  }
14399
14411
  }, m5 = 0.9, y5 = 8;
14400
- function j4(t) {
14412
+ function K4(t) {
14401
14413
  const e = { ...p5, ...t.theme }, n = t.code.replace(/\t/g, " ").replace(/\n$/, "").split(`
14402
14414
  `), s = t.fontSize ?? 16, o = (t.lineHeight ?? 1.6) * s, r = (t.charWidth ?? 0.6) * s, i = t.padding ?? 12, a = t.lineNumbers === !1 ? 0 : (String(n.length).length + 2) * r, l = Math.max(1, ...n.map((R) => R.length)), c = t.width ?? i * 2 + a + l * r, h = i * 2 + n.length * o, u = t.x + i + a, d = new Set(t.hidden ?? []), f = t.language ?? "plain";
14403
14415
  if (!Ga.includes(f)) throw new Error(`codePanel: ${dt("language", f, Ga)}`);
@@ -14793,7 +14805,7 @@ const ji = '"Patrick Hand", "Segoe Print", "Bradley Hand", "Comic Sans MS", "Cha
14793
14805
  fling: "a term; { at, velocity?, spin?, gravity?, duration? }: throw or knock the term off on a spinning arc"
14794
14806
  }
14795
14807
  }, b0 = 90, w0 = 300, M5 = 0.3;
14796
- function Y4(t) {
14808
+ function X4(t) {
14797
14809
  const e = typeof t.theme == "string" ? t.theme : "whiteboard";
14798
14810
  if (!(e in _o)) throw new Error(`whiteboard: ${dt("theme", e, Object.keys(_o))}`);
14799
14811
  const n = typeof t.theme == "object" ? { ..._o.whiteboard, ...t.theme } : _o[e], s = t.fontSize ?? 28, o = t.charWidth ?? 0.55, r = (b) => b === void 0 ? n.ink : n.colors[b] ?? b, i = (b) => kt(t.x + b.left, t.y + b.top, b.width, b.height), a = uo(), l = Jr(a), c = {}, h = /* @__PURE__ */ new Map(), u = [], d = [], f = (b, S, E, v) => {
@@ -15149,7 +15161,7 @@ const x0 = ["bar", "line", "pie", "donut"], S0 = 'system-ui, -apple-system, "Seg
15149
15161
  pull: "slice anchors; { at, duration?, on? }: pull the slice out from the centre (on: false puts it back)"
15150
15162
  }
15151
15163
  }, $5 = 600, P5 = 500, O5 = 200, I5 = 400, _5 = 0.14, C5 = Math.PI * 2;
15152
- function K4(t) {
15164
+ function U4(t) {
15153
15165
  if (!x0.includes(t.kind)) throw new Error(`chart: ${dt("kind", t.kind, x0)}`);
15154
15166
  const e = typeof t.theme == "string" ? t.theme : "light";
15155
15167
  if (!(e in Co)) throw new Error(`chart: ${dt("theme", e, Object.keys(Co))}`);
@@ -15492,7 +15504,7 @@ const Sr = {
15492
15504
  outfit: { shirt: "#ae7396", trousers: "#648769", sleeves: "short", bottom: "skirt" }
15493
15505
  }
15494
15506
  };
15495
- function X4(t, e = {}) {
15507
+ function G4(t, e = {}) {
15496
15508
  if (!Object.prototype.hasOwnProperty.call(Sr, t)) throw new Error(`softCartoonCharacter: unknown actor '${t}'`);
15497
15509
  const n = Sr[t], s = { ...n.body };
15498
15510
  return e.body?.measurements !== void 0 && delete s.torso, ho({ ...n, ...e, body: { ...s, ...e.body }, face: { ...n.face, ...e.face } });
@@ -15839,7 +15851,7 @@ const W5 = {
15839
15851
  ...W5,
15840
15852
  ...N5
15841
15853
  };
15842
- function U4(t, e = 300, n = {}) {
15854
+ function V4(t, e = 300, n = {}) {
15843
15855
  const s = eg[t];
15844
15856
  if (!s) throw new Error(`castMember: unknown cast member '${t}'`);
15845
15857
  return { ...s.options, height: Math.round(e * s.scale), ...n };
@@ -15850,11 +15862,11 @@ const Tr = {
15850
15862
  fistBump: { height: 0.55, spacing: 0.44, lean: 6 },
15851
15863
  handOver: { height: 0.52, spacing: 0.46, lean: 8 }
15852
15864
  };
15853
- function G4(t, e, n) {
15865
+ function J4(t, e, n) {
15854
15866
  return Tr[t].spacing * Math.min(e.height, n.height);
15855
15867
  }
15856
15868
  const A0 = 0.075;
15857
- function V4(t, e, n, s = {}) {
15869
+ function Z4(t, e, n, s = {}) {
15858
15870
  const o = Tr[t];
15859
15871
  if (!o) throw new Error(`meetHands: unknown meeting '${t}' (one of ${Object.keys(Tr).join(", ")})`);
15860
15872
  const [r, i] = e.x <= n.x ? [e, n] : [n, e], a = s.view === "side", l = Math.min(r.character.height, i.character.height), c = { x: (r.x + i.x) / 2, y: -(s.height ?? o.height) * l }, h = (m, y) => {
@@ -15876,10 +15888,10 @@ function V4(t, e, n, s = {}) {
15876
15888
  return e.x <= n.x ? { a: u, b: d, point: c, reached: g } : { a: d, b: u, point: c, reached: g };
15877
15889
  }
15878
15890
  const Va = { spacing: 0.3, lean: 10, tilt: 8 };
15879
- function J4(t, e) {
15891
+ function Q4(t, e) {
15880
15892
  return Va.spacing * Math.min(t.height, e.height);
15881
15893
  }
15882
- function Z4(t, e, n = {}) {
15894
+ function tT(t, e, n = {}) {
15883
15895
  const [s, o] = t.x <= e.x ? [t, e] : [e, t], r = n.view === "side", i = Math.min(s.character.height, o.character.height), a = (p, g, m) => ({
15884
15896
  over: { x: g.x - m * 0.02 * i - p.x, y: -0.72 * i, depth: -0.08 * i },
15885
15897
  round: { x: g.x - m * 0.04 * i - p.x, y: -0.5 * i, depth: 0.06 * i }
@@ -15895,10 +15907,10 @@ function Z4(t, e, n = {}) {
15895
15907
  return t.x <= e.x ? { a: c, b: h, reached: f } : { a: h, b: c, reached: f };
15896
15908
  }
15897
15909
  const Yn = { spacing: 0.32, low: 0.3, high: 0.5, helperLean: 40, helperBend: 16 };
15898
- function Q4(t, e) {
15910
+ function eT(t, e) {
15899
15911
  return Yn.spacing * Math.min(t.height, e.height);
15900
15912
  }
15901
- function tT(t, e, n, s = {}) {
15913
+ function nT(t, e, n, s = {}) {
15902
15914
  const o = Math.max(0, Math.min(1, n)), r = s.view === "side", i = t.x <= e.x, a = Math.min(t.character.height, e.character.height), l = { x: (t.x + e.x) / 2, y: -(Yn.low + (Yn.high - Yn.low) * o) * a }, c = (m) => m ? r ? 1 : 0.62 : r ? 3 : 3.38;
15903
15915
  let h = { ...at, ...t.pose, turn: c(i), lean: (t.pose?.lean ?? 0) + Yn.helperLean * (1 - o) + 4, bend: (t.pose?.bend ?? 0) + Yn.helperBend * (1 - o), "head.nod": 18 * (1 - o) };
15904
15916
  h = Ue(t.character, h, "arm.right", { x: l.x - t.x, y: l.y });
@@ -15939,7 +15951,7 @@ function V5(t, e) {
15939
15951
  };
15940
15952
  });
15941
15953
  }
15942
- function eT(t, e) {
15954
+ function sT(t, e) {
15943
15955
  if (t.length === 0) return { "hair.swing": 0, "hair.trail": 0, "hair.lift": 0 };
15944
15956
  if (e <= t[0].time) return P0(t[0]);
15945
15957
  if (e >= t[t.length - 1].time) return P0(t[t.length - 1]);
@@ -15956,7 +15968,7 @@ function eT(t, e) {
15956
15968
  };
15957
15969
  }
15958
15970
  const P0 = (t) => ({ "hair.swing": t.swing, "hair.trail": t.trail, "hair.lift": t.lift }), Rn = 16, J5 = 1500;
15959
- function nT(t, e, n, s = {}) {
15971
+ function oT(t, e, n, s = {}) {
15960
15972
  const o = n.head.hair;
15961
15973
  if (!o || !b2(o)) return [];
15962
15974
  const r = e.filter((k) => k.target === t), i = r.reduce((k, w) => w.keyframes.reduce((b, S) => Math.max(b, S.time), k), 0), a = at, l = /* @__PURE__ */ new Set(["x", "y", "turn", "head.turn"]), c = new Ft({ id: `${t}-hair-follow`, tracks: r.filter((k) => l.has(k.property)) }), h = (k, w, b) => {
@@ -16373,7 +16385,7 @@ const dv = {
16373
16385
  { name: "neck", at: (t) => t.neck }
16374
16386
  ]
16375
16387
  };
16376
- function sT(t, e, n, s, o = {}) {
16388
+ function rT(t, e, n, s, o = {}) {
16377
16389
  const r = n.stateAt;
16378
16390
  if (!r) return;
16379
16391
  const i = o.length ?? 120, a = Math.max(2, Math.round(o.samples ?? 8)), l = Math.max(0, n.time - i);
@@ -16404,7 +16416,7 @@ function fv(t, e, n, s = {}) {
16404
16416
  }
16405
16417
  t.restore();
16406
16418
  }
16407
- function oT(t, e, n, s = {}) {
16419
+ function iT(t, e, n, s = {}) {
16408
16420
  if (n <= 0 || n >= 1) return;
16409
16421
  const o = s.size ?? 40, r = 5, i = 1 - (1 - n) ** 2;
16410
16422
  t.save(), t.strokeStyle = s.color ?? "#222", t.lineWidth = Math.max(1, o * 0.035), t.lineJoin = "round", t.globalAlpha = n < 0.7 ? 1 : (1 - n) / 0.3;
@@ -16550,13 +16562,13 @@ ${s.map((o) => ` ${o.beat >= 0 ? `beat ${o.beat}: ` : ""}${o.message}`).join(`
16550
16562
  `)}`);
16551
16563
  }
16552
16564
  W1(ag);
16553
- function rT(t) {
16565
+ function aT(t) {
16554
16566
  const e = "steps" in t && typeof t.steps == "function", n = "beats" in t && typeof t.beats == "function";
16555
16567
  if (e === n) throw new Error("defineAction: give either `steps: (from, beat) => [...]` or `beats: (beat) => [...]`");
16556
16568
  if (!t.summary) throw new Error("defineAction: give a `summary`: one line on what the figure does");
16557
16569
  return t;
16558
16570
  }
16559
- function iT(t) {
16571
+ function lT(t) {
16560
16572
  for (const e of ["swing", "knee", "arm", "elbow", "lean"])
16561
16573
  if (typeof t[e] != "number") throw new Error(`defineGait: \`${e}\` must be a number (degrees)`);
16562
16574
  if (t.cycle !== void 0 && !(t.cycle > 0)) throw new Error("defineGait: `cycle` is ms per two steps, above 0");
@@ -16797,7 +16809,7 @@ function lg(t, e, n) {
16797
16809
  return a;
16798
16810
  }
16799
16811
  const Ds = ["start", "contact", "release", "end"], jv = ["surface", "edit", "anchor", "at", "until"], Yv = ["carry"], Vo = (t) => !!t && typeof t == "object" && !Array.isArray(t) && "surface" in t && "anchor" in t, Kv = (t) => t.then === void 0 ? [] : Array.isArray(t.then) ? t.then : [t.then];
16800
- function aT(t, e, n, s = {}) {
16812
+ function cT(t, e, n, s = {}) {
16801
16813
  const o = Xv(n, e, s).filter((d) => d.level === "error");
16802
16814
  if (o.length > 0)
16803
16815
  throw new Error(`surfaceScript: ${o.length} problem(s) in the beats:
@@ -16914,7 +16926,7 @@ function Uv(t, e, n) {
16914
16926
  };
16915
16927
  });
16916
16928
  }
16917
- function lT(t) {
16929
+ function hT(t) {
16918
16930
  const e = { actions: t.actions, gaits: t.gaits }, n = ig(e);
16919
16931
  if (n.length > 0) throw new Error(`persona "${t.name}": ${n.join(" ")}`);
16920
16932
  const s = [...Object.keys(Qt), ...Object.keys(t.gaits ?? {})], o = t.gait ?? "walk";
@@ -16965,7 +16977,7 @@ function Vv(t, e, n = 1) {
16965
16977
  const { points: s } = ye(t, at), o = s["hip.left"], r = s["knee.left"], i = s["ankle.left"], a = o && r && i ? Math.hypot(r.x - o.x, r.y - o.y) + Math.hypot(i.x - r.x, i.y - r.y) : G0 * t.height;
16966
16978
  return Ll(e, a / G0, n);
16967
16979
  }
16968
- function cT(t, e, n, s = {}) {
16980
+ function uT(t, e, n, s = {}) {
16969
16981
  const o = Ql(t, n, { ...s, height: e.height, reach: s.reach ?? Jv(e) }), r = o.tracks.find((y) => y.property === "facing")?.keyframes ?? [], i = (y) => {
16970
16982
  let k = s.facing ?? 1;
16971
16983
  for (const w of r) w.time <= y && (k = w.value);
@@ -17122,7 +17134,7 @@ function hM(t) {
17122
17134
  const e = cM(t).properties.map((n) => n.name);
17123
17135
  return [...e, ...Object.keys(Qa).filter((n) => e.includes(Qa[n]))];
17124
17136
  }
17125
- function hT(t, e) {
17137
+ function dT(t, e) {
17126
17138
  const n = [], s = Object.keys(e);
17127
17139
  for (const o of t) {
17128
17140
  const r = (d) => n.push({ level: "error", track: o.id, message: d }), i = e[o.target];
@@ -17589,7 +17601,7 @@ function sc(t, e, n) {
17589
17601
  }
17590
17602
  };
17591
17603
  }
17592
- function uT(t, e, n, s, o = {}) {
17604
+ function fT(t, e, n, s, o = {}) {
17593
17605
  const r = sc(e, n, s);
17594
17606
  return t.save(), t.translate(r.origin.x, r.origin.y), Ff(t, r.solved, {
17595
17607
  ...e.propDraw,
@@ -17617,7 +17629,7 @@ const Cs = {
17617
17629
  fling: "a part; { at, velocity?, spin?, gravity?, duration? }: knock the part off on a spinning arc"
17618
17630
  }
17619
17631
  }, OM = 400, IM = 0.2;
17620
- function dT(t, e = {}) {
17632
+ function gT(t, e = {}) {
17621
17633
  const { prop: n } = t, s = mg(n), o = Object.keys(s), r = Object.keys(n.rig.anchors ?? {}), i = n.rig.parts.map((E) => E.id), a = uo(), l = Jr(a), c = e.tracks?.length ? new Ft({ id: `${n.kind}-surface`, tracks: e.tracks }) : void 0, h = Math.max(0, ...(e.tracks ?? []).flatMap((E) => E.keyframes.map((v) => v.time))), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
17622
17634
  t.loose = d;
17623
17635
  const f = t.props, p = (E) => {
@@ -18908,7 +18920,7 @@ function dx() {
18908
18920
  }
18909
18921
  };
18910
18922
  }
18911
- const po = ["walk", "trot", "canter", "gallop"], fT = po, kg = ["fl", "fr", "hl", "hr"], ti = {
18923
+ const po = ["walk", "trot", "canter", "gallop"], pT = po, kg = ["fl", "fr", "hl", "hr"], ti = {
18912
18924
  walk: { offsets: { hl: 0, fl: 0.25, hr: 0.5, fr: 0.75 }, swing: 16, lift: 45, bob: 0.02, rock: 0, cycle: 1100 },
18913
18925
  trot: { offsets: { fl: 0, hr: 0, fr: 0.5, hl: 0.5 }, swing: 22, lift: 75, bob: 0.05, rock: 0, cycle: 640 },
18914
18926
  canter: { offsets: { hr: 0, hl: 0.33, fr: 0.33, fl: 0.66 }, swing: 30, lift: 70, bob: 0.08, rock: 5, cycle: 560 },
@@ -19068,7 +19080,7 @@ const vg = {
19068
19080
  eyes: [],
19069
19081
  headTurns: {},
19070
19082
  drift: []
19071
- }, gT = vg;
19083
+ }, mT = vg;
19072
19084
  function mx(t) {
19073
19085
  const e = (t.upper + t.lower) * 0.32, n = Math.asin(Math.min(1, e / (t.upper + t.lower + t.foot))) / Ke, s = {
19074
19086
  pitch: 0,
@@ -19332,7 +19344,7 @@ function vx(t = {}) {
19332
19344
  grazes: !0
19333
19345
  });
19334
19346
  }
19335
- function pT(t) {
19347
+ function yT(t) {
19336
19348
  return oc(1, t);
19337
19349
  }
19338
19350
  function Mx(t = {}) {
@@ -20050,7 +20062,7 @@ function Ig(t) {
20050
20062
  if (Re(t.from, "ballFlight.from"), Re(t.to, "ballFlight.to"), !Number.isFinite(t.start) || !Number.isFinite(t.end) || t.start < 0 || t.end <= t.start) throw new Error("ballFlight: end must be greater than start, both finite and nonnegative");
20051
20063
  if (!Number.isFinite(t.arc ?? 0) || (t.arc ?? 0) < 0 || !Number.isFinite(t.curve ?? 0)) throw new Error("ballFlight: arc must be finite and nonnegative; curve must be finite");
20052
20064
  }
20053
- function mT(t) {
20065
+ function bT(t) {
20054
20066
  Ig(t);
20055
20067
  const e = Pg(t.start, t.end, t.every), n = e.map((s) => Og(t, s));
20056
20068
  return ["x", "y", "z"].map((s, o) => ({
@@ -20098,7 +20110,7 @@ function Cg(t, e) {
20098
20110
  const n = e === "striker-crease" ? "striker" : "bowler", s = t.landmarks[n + "-crease"];
20099
20111
  return Re(s, "cricketCamera.crease"), [...s];
20100
20112
  }
20101
- function yT(t, e) {
20113
+ function wT(t, e) {
20102
20114
  if (!ac(e)) return [];
20103
20115
  const n = Cg(t, e), s = e === "front-foot" ? _g(t).point[0] : 0;
20104
20116
  return [{
@@ -20186,7 +20198,7 @@ function Gx(t, e = "pitch") {
20186
20198
  function ha(t, e, n, s) {
20187
20199
  if (t !== void 0 && (!Number.isFinite(t) || t < e || t > n)) throw new Error("cricketCamera: " + s + " must be between " + e + " and " + n);
20188
20200
  }
20189
- function bT(t, e = {}) {
20201
+ function kT(t, e = {}) {
20190
20202
  const n = ce(lc, e.view ?? "pitch", "cricketCamera.view"), s = e.yaw ?? ca[n];
20191
20203
  if (!Number.isFinite(s)) throw new Error("cricketCamera: yaw must be finite");
20192
20204
  const o = (s % 360 + 360) % 360, r = e.zoom ?? 1;
@@ -20257,7 +20269,7 @@ function Zx(t) {
20257
20269
  return [{ id: e, name: n.name ?? no[e], position: s, inside: Jx(t, s) }];
20258
20270
  });
20259
20271
  }
20260
- function wT(t) {
20272
+ function vT(t) {
20261
20273
  return t.fieldingArea ? Zx(t).map((e) => ({
20262
20274
  id: `fielding-review-${e.id}`,
20263
20275
  name: `${e.name}: ${e.inside ? "inside" : "outside"} restriction area`,
@@ -20598,11 +20610,11 @@ function Rg(t, e, n) {
20598
20610
  }
20599
20611
  return { action: s, duration: l, events: R, result: a, timeline: { id: `${c}-${s}`, formatVersion: 2, name: Y, config: { duration: l, markers: R.map(($) => ({ id: $.id, time: $.time, label: $.label })) }, captions: { en: Object.fromEntries(R.map(($) => [$.id, $.caption])) }, tracks: nt } };
20600
20612
  }
20601
- function kT(t = {}) {
20613
+ function MT(t = {}) {
20602
20614
  const e = Hg(t);
20603
20615
  return { ...e, ...s3(e, t) };
20604
20616
  }
20605
- function vT(t, e) {
20617
+ function xT(t, e) {
20606
20618
  if (!Number.isFinite(e)) throw new Error("cricketEventAt: time must be finite");
20607
20619
  let n;
20608
20620
  for (const s of t) {
@@ -20691,7 +20703,7 @@ function a3(t, e = {}) {
20691
20703
  };
20692
20704
  return { ...Rg(t, { action: o, duration: e.duration, every: e.every }, { delivery: s.delivery, result: a, ruling: r, freeHit: s.context.freeHit }), play: s, ruling: r };
20693
20705
  }
20694
- function MT(t = {}) {
20706
+ function ST(t = {}) {
20695
20707
  const e = Hg(t);
20696
20708
  return { ...e, ...a3(e, t) };
20697
20709
  }
@@ -20881,6 +20893,8 @@ function h3(t, e = {}) {
20881
20893
  "linearMapFigure, determinantFigure, eigenFigure, vectorSumFigure, spanFigure": "ready linear algebra figures; the matrix is the value M",
20882
20894
  "tangentFigure, secantFigure, riemannFigure, areaFigure, taylorFigure, limitFigure": "ready calculus figures; their moving parts are number values (a, h, n, b, order, p)",
20883
20895
  "differentiate / compileDerivative / integrate": "exact symbolic derivatives of expressions; Simpson integration",
20896
+ "normalFigure, binomialFigure, cltFigure, galtonFigure, monteCarloPiFigure, regressionFigure, bayesFigure": "ready probability and statistics figures",
20897
+ distributions: "{ kind: normal | uniform | exponential | binomial | poisson | dice | mean, …numbers or value names }; density, meanOf, sdOf, samples (seeded)",
20884
20898
  "layoutTex(tex) / morphEquation(a, b, t)": "the built-in TeX subset, and term-by-term transitions",
20885
20899
  "vec2, mat2": "2D vectors and 2×2 matrices (apply, multiply, determinant, inverse, eigen)"
20886
20900
  },
@@ -20899,7 +20913,12 @@ function h3(t, e = {}) {
20899
20913
  tangent: "{ expr, at, h? (secant), label? }: \\val{ID.slope} is the exact slope",
20900
20914
  riemann: "{ expr, from, to, n, rule?: left | right | midpoint | trapezoid }: \\val{ID.sum}, \\val{ID.exact}",
20901
20915
  area: "{ expr, from, to, lower? }: signed, coloured by sign; \\val{ID.value}",
20902
- taylor: "{ expr, at, order }: exact Taylor polynomials; a fractional order grows the next term in"
20916
+ taylor: "{ expr, at, order }: exact Taylor polynomials; a fractional order grows the next term in",
20917
+ histogram: "{ distribution, count, bins?, scale?, curve?, seed? }: seeded samples, binned; fills as count grows",
20918
+ distribution: "{ distribution, shade?: [a, b] }: a density curve (bars when discrete); \\val{ID.p}",
20919
+ galton: "{ rows?, balls, spacing?, top?, seed? }: a Galton board; fractional balls = the next one falling",
20920
+ scatter: "{ points: uniform | linear, count, inside?, fit?, seed? }: Monte Carlo and regression; \\val{ID.ratio}, \\val{ID.r}",
20921
+ bayes: "{ prior, truePositive, falsePositive }: Bayes as areas; \\val{ID.posterior}"
20903
20922
  },
20904
20923
  props: {
20905
20924
  NAME: "a value: a number, [x, y] vector or [a, b, c, d] matrix (row by row; columns are where î and ĵ land)",
@@ -20921,7 +20940,7 @@ function h3(t, e = {}) {
20921
20940
  }
20922
20941
  const pt = (t) => t.map((e) => `\`${e}\``).join(", "), cu = (t) => Object.entries(t).map(([e, n]) => `| \`${e}\` | ${n.unit ?? n.kind ?? ""} | ${n.description} |`).join(`
20923
20942
  `);
20924
- function xT(t, e = {}) {
20943
+ function TT(t, e = {}) {
20925
20944
  const n = h3(t, e), s = n.stickFigure;
20926
20945
  return [
20927
20946
  `# tinyfly capabilities${n.version ? ` (v${n.version})` : ""}`,
@@ -21129,7 +21148,7 @@ function xT(t, e = {}) {
21129
21148
  ].join(`
21130
21149
  `);
21131
21150
  }
21132
- function ST(t, e, n, s = {}) {
21151
+ function ET(t, e, n, s = {}) {
21133
21152
  const o = s.color ?? "#555", r = s.size ?? 60;
21134
21153
  for (const i of e) {
21135
21154
  const a = (n - i.time) / i.length;
@@ -21186,7 +21205,7 @@ function p3(t, e, n, s, o) {
21186
21205
  }
21187
21206
  t.restore();
21188
21207
  }
21189
- function TT(t) {
21208
+ function AT(t) {
21190
21209
  const e = new Ft({ id: `${t.propId}-ride`, tracks: t.propTracks.filter((h) => h.target === t.propId) }), n = t.every ?? 33, s = [], o = [], r = [], i = [];
21191
21210
  let a = 1;
21192
21211
  for (let h = t.start; ; h = Math.min(t.end, h + n)) {
@@ -21209,7 +21228,7 @@ function m3(t) {
21209
21228
  }
21210
21229
  return e;
21211
21230
  }
21212
- function ET(t, e, n) {
21231
+ function $T(t, e, n) {
21213
21232
  const s = (i) => `${i.target}\0${i.property}`, o = new Map(e.map((i) => [s(i), i]));
21214
21233
  return [...t.map((i) => {
21215
21234
  const a = o.get(s(i));
@@ -21219,7 +21238,7 @@ function ET(t, e, n) {
21219
21238
  return { ...i, keyframes: c };
21220
21239
  }), ...o.values()];
21221
21240
  }
21222
- function AT(t) {
21241
+ function PT(t) {
21223
21242
  const e = new Ft({ id: `${t.leaderId}-tow`, tracks: t.leaderTracks.filter((f) => f.target === t.leaderId) }), n = t.every ?? 33, s = t.towed, o = s.x + s.width / 2, r = s.props, i = s.prop.wheelRadius, a = [], l = [], c = [];
21224
21243
  let h = r.wheelSpin ?? 0, u;
21225
21244
  for (let f = t.start; ; f = Math.min(t.end, f + n)) {
@@ -21303,7 +21322,7 @@ const M3 = /* @__PURE__ */ new Set([
21303
21322
  "visible",
21304
21323
  "opacity",
21305
21324
  "color"
21306
- ]), x3 = 1, $T = {
21325
+ ]), x3 = 1, OT = {
21307
21326
  kind: "prop",
21308
21327
  validate(t) {
21309
21328
  const e = t, n = typeof e.prop == "string" && e.prop in eo ? [] : [dt("prop preset", e.prop, Object.keys(eo))];
@@ -21370,7 +21389,7 @@ function O3(t, e) {
21370
21389
  n.includes(c.do) && (c.to === void 0 && c.through === void 0 && l(`\`${c.do}\` needs \`to\` ([x, z] metres) or \`through\` (a list of them).`), c.to !== void 0 && !ln(c.to) && l(`\`to\` is a point on the ground, [x, z] metres (got ${JSON.stringify(c.to)}).`), c.through !== void 0 && !(Array.isArray(c.through) && c.through.length > 0 && c.through.every(ln)) && l("`through` is a list of points on the ground, each [x, z] metres.")), c.do === "face" && !(ln(c.toward) || typeof c.toward == "number") && l("`face` needs `toward`: a point [x, z] or a heading in degrees.");
21371
21390
  }), r;
21372
21391
  }
21373
- function PT(t, e, n, s) {
21392
+ function IT(t, e, n, s) {
21374
21393
  const o = O3(n, e);
21375
21394
  if (o.length > 0) throw new Error(`propScript3D (${e.kind}): ${o.length} problem(s) in the beats:
21376
21395
  ${o.map((w) => ` beat ${w.beat}: ${w.message}`).join(`
@@ -21462,7 +21481,7 @@ function fu(t, e = Fg.cycling) {
21462
21481
  "leg.right.ankle": r.ankle
21463
21482
  };
21464
21483
  }
21465
- function OT(t) {
21484
+ function _T(t) {
21466
21485
  const e = t.cadence ?? 1.2, n = Math.max(2, t.samplesPerTurn ?? 8), s = 1e3 / e / n, o = [];
21467
21486
  for (let r = t.start, i = 0; r < t.end; r += s, i++)
21468
21487
  o.push({ time: Math.round(r), pose: fu((r - t.start) / 1e3 * e, t.base), ...i > 0 ? { act: !1 } : {} });
@@ -21472,7 +21491,7 @@ const gu = (t, e) => {
21472
21491
  const n = e * Math.PI / 180;
21473
21492
  return [t[0] * Math.cos(n) + t[2] * Math.sin(n), t[1], -t[0] * Math.sin(n) + t[2] * Math.cos(n)];
21474
21493
  };
21475
- function IT(t) {
21494
+ function CT(t) {
21476
21495
  const e = `${t.scene}/${t.propId}`, n = new Ft({ id: `${t.propId}-ride-3d`, tracks: t.propTracks.filter((m) => m.target === e) }), s = t.placement ?? {}, [o, r, i] = s.position ?? [0, 0, 0], a = t.prop.rig, l = ho({ ...t.character, height: 1 }), c = { ...at, ...t.pose ?? Fg.seated }, h = Tn(l.plan, c, { height: t.height ?? 1.7, contact: l.contact }).hip, u = t.facing ?? 0, d = t.every ?? 33, f = { x: [], y: [], z: [], rotateY: [] };
21477
21496
  for (let m = t.start; ; m = Math.min(t.end, m + d)) {
21478
21497
  const y = n.getStateAtTime(m).values.get(e) ?? /* @__PURE__ */ new Map(), k = (C, W) => {
@@ -21707,11 +21726,11 @@ function q3(t, e) {
21707
21726
  throw new Error(dt("scene preset", t, ["park", "street", "office", "home"]));
21708
21727
  }
21709
21728
  }
21710
- function _T(t, e) {
21729
+ function HT(t, e) {
21711
21730
  const n = q3(t, e), s = B3(n.scenery), o = n.props.map((r) => PM({ x: r.x, y: s.ground, prop: xg(r.preset), scale: r.scale, values: { turn: r.turn ?? 0, ...r.values } }));
21712
21731
  return { scenery: s, props: o, ground: s.ground };
21713
21732
  }
21714
- function CT(t) {
21733
+ function RT(t) {
21715
21734
  const { timeline: e } = t, n = new pn();
21716
21735
  for (const [c, h] of Object.entries(t.targets)) {
21717
21736
  const u = typeof h == "string" ? document.querySelector(h) : h;
@@ -21752,7 +21771,7 @@ function CT(t) {
21752
21771
  }
21753
21772
  };
21754
21773
  }
21755
- const HT = {
21774
+ const FT = {
21756
21775
  timeline: Um,
21757
21776
  to(t, e, n) {
21758
21777
  const s = new Xn(n);
@@ -21815,7 +21834,7 @@ function mu(t, e, n, s) {
21815
21834
  r = pu(r, e, n, o, !0), r = pu(r, e, n, o, !1);
21816
21835
  return r;
21817
21836
  }
21818
- function RT(t, e = {}) {
21837
+ function LT(t, e = {}) {
21819
21838
  const n = t.canvas, s = n.width, o = n.height;
21820
21839
  if (!(s > 0 && o > 0)) return;
21821
21840
  const r = Math.max(1, Math.round(e.downsample ?? 4)), i = Math.max(1, Math.ceil(s / r)), a = Math.max(1, Math.ceil(o / r)), l = Lg(t, i, a), c = l?.getContext("2d");
@@ -21828,7 +21847,7 @@ function RT(t, e = {}) {
21828
21847
  }
21829
21848
  c.putImageData(g, 0, 0), t.save(), t.setTransform(1, 0, 0, 1, 0, 0), t.globalCompositeOperation = "lighter", t.globalAlpha = Math.max(0, e.strength ?? 0.9), t.imageSmoothingEnabled = !0, t.drawImage(l, 0, 0, s, o), t.restore();
21830
21849
  }
21831
- function FT(t, e, n) {
21850
+ function WT(t, e, n) {
21832
21851
  const s = n.width ?? 6, o = n.taper ?? 1, r = n.fade ?? 1, i = n.opacity ?? 1, a = n.blend === "add";
21833
21852
  if (t.save(), e.length >= 2) {
21834
21853
  const c = K3(e, s, o, r, i);
@@ -21886,7 +21905,7 @@ function X3(t, e, n) {
21886
21905
  }
21887
21906
  p.translate(-u, -d), p.globalCompositeOperation = "lighter", ll(p, i, n), t.save(), t.setTransform(1, 0, 0, 1, 0, 0), t.globalAlpha = 1, t.drawImage(f, u, d), t.restore();
21888
21907
  }
21889
- const LT = de.to, WT = de.from, NT = de.fromTo, DT = de.set, BT = de.timeline, zT = de.ticker, qT = de.splitText, jT = de.context, YT = de.matchMedia, KT = de.quickTo, XT = de.imageSequence, UT = de.pageTransition;
21908
+ const NT = de.to, DT = de.from, BT = de.fromTo, zT = de.set, qT = de.timeline, jT = de.ticker, YT = de.splitText, KT = de.context, XT = de.matchMedia, UT = de.quickTo, GT = de.imageSequence, VT = de.pageTransition;
21890
21909
  F1();
21891
21910
  export {
21892
21911
  ts as ACTING_STYLES,
@@ -21933,7 +21952,7 @@ export {
21933
21952
  hc as DEFAULT_INERTIA_FRICTION,
21934
21953
  b1 as DEFAULT_LABELS,
21935
21954
  ge as DEFAULT_SPRING,
21936
- i4 as DEFAULT_TRANSITION,
21955
+ l4 as DEFAULT_TRANSITION,
21937
21956
  QM as DESK_ACTING,
21938
21957
  sx as DOOR_ACTING,
21939
21958
  sd as Draggable,
@@ -21958,8 +21977,8 @@ export {
21958
21977
  Rl as HAT_STYLES,
21959
21978
  Ef as HELD_ITEMS,
21960
21979
  Yn as HELP_UP,
21961
- gT as HORSE_ACTING,
21962
- fT as HORSE_GAITS,
21980
+ mT as HORSE_ACTING,
21981
+ pT as HORSE_GAITS,
21963
21982
  XM as HOUSE_ACTING,
21964
21983
  av as HUMAN_ACTING_RIG,
21965
21984
  Ra as HUMAN_BUILDS,
@@ -21970,7 +21989,7 @@ export {
21970
21989
  Me as HUMAN_POSES,
21971
21990
  at as HUMAN_REST,
21972
21991
  a5 as IDENTITY_CAMERA,
21973
- FS as IDENTITY_SIMILARITY,
21992
+ WS as IDENTITY_SIMILARITY,
21974
21993
  Yg as INERTIA_MAX_DURATION_MS,
21975
21994
  Bp as InertiaTrackPlayer,
21976
21995
  _e as LiveTimeline,
@@ -22015,7 +22034,7 @@ export {
22015
22034
  dn as TrackPlayer,
22016
22035
  CM as VEHICLE_ACTING,
22017
22036
  en as VISEMES,
22018
- fS as ValueResolver,
22037
+ pS as ValueResolver,
22019
22038
  Ry as VisibilityDriver,
22020
22039
  ix as WHEELCHAIR_ACTING,
22021
22040
  Ne as WHITEBOARD_SURFACE,
@@ -22027,28 +22046,28 @@ export {
22027
22046
  hn as anchorError,
22028
22047
  oc as animalStrideLength,
22029
22048
  hM as animatableProperties,
22030
- RT as applyBloom,
22031
- F4 as applyCamera,
22049
+ LT as applyBloom,
22050
+ W4 as applyCamera,
22032
22051
  rw as applyGroove,
22033
22052
  Yu as applySimilarity,
22034
22053
  ju as aspectOf,
22035
22054
  _0 as assertBeats,
22036
- OS as audioEnvelope,
22055
+ _S as audioEnvelope,
22037
22056
  sp as backOut,
22038
- p4 as bakeDanceTracks,
22057
+ y4 as bakeDanceTracks,
22039
22058
  Cu as bakeEasing,
22040
22059
  Iu as bakeInertiaTrack,
22041
22060
  Ou as bakeSpringTrack,
22042
22061
  Og as ballFlightPoint,
22043
- mT as ballFlightTracks,
22062
+ bT as ballFlightTracks,
22044
22063
  sk as basicOutfit,
22045
- d4 as beatAt,
22064
+ g4 as beatAt,
22046
22065
  Rr as beatAtTime,
22047
22066
  Hr as beatLength,
22048
- AS as beatPeriod,
22049
- PS as beatPulse,
22067
+ PS as beatPeriod,
22068
+ IS as beatPulse,
22050
22069
  dl as beatTime,
22051
- wS as beatsBetween,
22070
+ vS as beatsBetween,
22052
22071
  tx as bed,
22053
22072
  BM as bike,
22054
22073
  P1 as bindChoiceHotspots,
@@ -22060,59 +22079,59 @@ export {
22060
22079
  np as bounceOut,
22061
22080
  Kk as boxMesh,
22062
22081
  J2 as brushingPose,
22063
- KS as bubblePath,
22064
- XS as bubblePop,
22065
- _T as buildScene,
22082
+ US as bubblePath,
22083
+ GS as bubblePop,
22084
+ HT as buildScene,
22066
22085
  LM as bus,
22067
- R4 as cameraFromValues,
22068
- L4 as cameraPoint,
22069
- vS as cameraTracks,
22086
+ L4 as cameraFromValues,
22087
+ N4 as cameraPoint,
22088
+ xS as cameraTracks,
22070
22089
  h3 as capabilities,
22071
- xT as capabilitiesMarkdown,
22090
+ TT as capabilitiesMarkdown,
22072
22091
  RM as car,
22073
22092
  NM as cart,
22074
- U4 as castMember,
22093
+ V4 as castMember,
22075
22094
  kx as cat,
22076
22095
  GM as chair,
22077
22096
  Qs as changingWindows,
22078
22097
  ho as character,
22079
- S4 as characterAt,
22098
+ E4 as characterAt,
22080
22099
  ck as characterHandPose,
22081
22100
  ye as characterJoints,
22082
- k4 as characterJointsInView,
22083
- C4 as characterLookAtTracks,
22084
- O4 as characterObjects,
22101
+ M4 as characterJointsInView,
22102
+ R4 as characterLookAtTracks,
22103
+ _4 as characterObjects,
22085
22104
  uk as characterPartsInView,
22086
22105
  Dl as characterPoseOf,
22087
- T4 as characterPoseTracks,
22088
- cT as characterScript,
22089
- _4 as characterScript3D,
22106
+ A4 as characterPoseTracks,
22107
+ uT as characterScript,
22108
+ H4 as characterScript3D,
22090
22109
  Vv as characterStrideLength,
22091
- x4 as characterTarget,
22110
+ T4 as characterTarget,
22092
22111
  qp as charactersFor,
22093
- K4 as chart,
22112
+ U4 as chart,
22094
22113
  Ar as checkBeats,
22095
22114
  ig as checkCast,
22096
22115
  i5 as checkCharacterBeats3D,
22097
22116
  Fx as checkPropBeats,
22098
22117
  O3 as checkPropBeats3D,
22099
22118
  Xv as checkSurfaceBeats,
22100
- hT as checkTracks,
22119
+ dT as checkTracks,
22101
22120
  Ox as chicken,
22102
- N4 as circlePath,
22121
+ B4 as circlePath,
22103
22122
  ad as clamp01,
22104
22123
  oS as clearMorphCache,
22105
22124
  eS as clearPathCache,
22106
22125
  Qf as clipErased,
22107
22126
  sr as closestName,
22108
- j4 as codePanel,
22127
+ K4 as codePanel,
22109
22128
  v5 as codeTokens,
22110
- WS as composeSimilarity,
22129
+ DS as composeSimilarity,
22111
22130
  Bc as containerProgressAt,
22112
- jT as context,
22131
+ KT as context,
22113
22132
  Ot as controlValue,
22114
22133
  vx as cow,
22115
- s4 as create,
22134
+ r4 as create,
22116
22135
  M1 as createControls,
22117
22136
  tp as createCubicBezier,
22118
22137
  d1 as createLive,
@@ -22122,67 +22141,67 @@ export {
22122
22141
  s3 as cricketAction,
22123
22142
  Gx as cricketCameraFraming,
22124
22143
  il as cricketCameraReview,
22125
- bT as cricketCameraTracks,
22126
- kT as cricketClip,
22127
- yT as cricketDecisionOverlay,
22128
- vT as cricketEventAt,
22144
+ kT as cricketCameraTracks,
22145
+ MT as cricketClip,
22146
+ wT as cricketDecisionOverlay,
22147
+ xT as cricketEventAt,
22129
22148
  Hg as cricketField,
22130
22149
  Jx as cricketFieldingAreaContains,
22131
- wT as cricketFieldingOverlay,
22150
+ vT as cricketFieldingOverlay,
22132
22151
  Zx as cricketFieldingPositions,
22133
22152
  a3 as cricketPlay,
22134
- MT as cricketPlayClip,
22153
+ ST as cricketPlayClip,
22135
22154
  Qx as cricketPlayer,
22136
22155
  Q3 as criticalDamping,
22137
22156
  Px as crow,
22138
- ES as curve,
22157
+ $S as curve,
22139
22158
  tm as customBounce,
22140
22159
  Qp as customEase,
22141
22160
  em as customWiggle,
22142
22161
  Xk as cylinderMesh,
22143
22162
  gk as danceCircleAt,
22144
- A4 as danceCircleTracks,
22163
+ P4 as danceCircleTracks,
22145
22164
  El as danceFrame,
22146
22165
  hs as danceJoint,
22147
- h4 as dancePose,
22166
+ d4 as dancePose,
22148
22167
  Ha as danceStance,
22149
- u4 as danceTaps,
22150
- g4 as danceTracks,
22168
+ f4 as danceTaps,
22169
+ m4 as danceTracks,
22151
22170
  Ai as danceTravel,
22152
22171
  cw as danceTravelTrack,
22153
- f4 as dancer,
22154
- rT as defineAction,
22155
- iT as defineGait,
22172
+ p4 as dancer,
22173
+ aT as defineAction,
22174
+ lT as defineGait,
22156
22175
  cM as describeTarget,
22157
22176
  zs as deserializeTimeline,
22158
22177
  Up as deserializeTrack,
22159
22178
  ZM as desk,
22160
- kS as detectTempo,
22179
+ MS as detectTempo,
22161
22180
  wx as dog,
22162
22181
  nx as door,
22163
- ZS as draggable,
22182
+ t4 as draggable,
22164
22183
  xl as drawCartoonHand,
22165
22184
  hk as drawCharacter,
22166
- M4 as drawCharacterHead,
22167
- v4 as drawCharacterInView,
22185
+ S4 as drawCharacterHead,
22186
+ x4 as drawCharacterInView,
22168
22187
  fv as drawDustPuff,
22169
22188
  Gf as drawEraser,
22170
22189
  Jf as drawHand,
22171
22190
  Xh as drawHeldItem,
22172
- oT as drawImpactStars,
22191
+ iT as drawImpactStars,
22173
22192
  l5 as drawPencil,
22174
- uT as drawProp,
22175
- ST as drawPropEffects,
22193
+ fT as drawProp,
22194
+ ET as drawPropEffects,
22176
22195
  Wf as drawPropShadow,
22177
22196
  Ik as drawSolvedFaces,
22178
- P4 as drawSolvedPart,
22197
+ I4 as drawSolvedPart,
22179
22198
  Ff as drawSolvedProp,
22180
22199
  uv as drawSpeedLines,
22181
22200
  Ub as drawStickFigure,
22182
- sT as drawStickSmear,
22183
- FT as drawTrail,
22184
- D4 as drawnPathTarget,
22185
- YS as dripPath,
22201
+ rT as drawStickSmear,
22202
+ WT as drawTrail,
22203
+ z4 as drawnPathTarget,
22204
+ XS as dripPath,
22186
22205
  _x as duck,
22187
22206
  Vg as easeIn,
22188
22207
  Mu as easeInCubic,
@@ -22199,22 +22218,22 @@ export {
22199
22218
  ep as elasticOut,
22200
22219
  lr as ellipsePoints,
22201
22220
  Uk as ellipsoidMesh,
22202
- Z4 as embrace,
22203
- J4 as embraceSpacing,
22204
- IS as envelopeAt,
22205
- q4 as erasable,
22221
+ tT as embrace,
22222
+ Q4 as embraceSpacing,
22223
+ CS as envelopeAt,
22224
+ Y4 as erasable,
22206
22225
  Zl as expandBeats,
22207
22226
  Wp as expandParametricEasings,
22208
22227
  Vk as extrudeMesh,
22209
22228
  wk as flipPose,
22210
- $4 as flipTracks,
22229
+ O4 as flipTracks,
22211
22230
  kk as flipTravel,
22212
22231
  yu as formatVersionFor,
22213
- _S as frameRect,
22214
- CS as frameSize,
22215
- WT as from,
22232
+ HS as frameRect,
22233
+ RS as frameSize,
22234
+ DT as from,
22216
22235
  hS as fromJSON,
22217
- NT as fromTo,
22236
+ BT as fromTo,
22218
22237
  I0 as gag,
22219
22238
  Er as gagDuration,
22220
22239
  wb as gaitPose,
@@ -22227,12 +22246,12 @@ export {
22227
22246
  Mx as goat,
22228
22247
  vy as gridLinesFor,
22229
22248
  V5 as hairFollow,
22230
- nT as hairFollowTracks,
22249
+ oT as hairFollowTracks,
22231
22250
  b2 as hairHangs,
22232
- eT as hairMotionAt,
22251
+ sT as hairMotionAt,
22233
22252
  yr as hairMotionOf,
22234
22253
  br as hairlineAt,
22235
- W4 as handAt,
22254
+ D4 as handAt,
22236
22255
  Di as handGrip,
22237
22256
  $a as handJoints,
22238
22257
  hb as handJointsAt,
@@ -22241,26 +22260,26 @@ export {
22241
22260
  ur as handProp,
22242
22261
  Dg as hasKeyframes,
22243
22262
  ue as hashSeed,
22244
- l4 as headPoint,
22263
+ h4 as headPoint,
22245
22264
  Bg as heldTime,
22246
22265
  lx as helicopter,
22247
- tT as helpUp,
22248
- Q4 as helpUpSpacing,
22266
+ nT as helpUp,
22267
+ eT as helpUpSpacing,
22249
22268
  rk as holdingLayers,
22250
22269
  bx as horse,
22251
- pT as horseStrideLength,
22270
+ yT as horseStrideLength,
22252
22271
  KM as house,
22253
- b4 as humanCyclePose,
22272
+ k4 as humanCyclePose,
22254
22273
  pr as humanDanceFrame,
22255
- y4 as humanDanceTracks,
22256
- m4 as humanFieldLabel,
22274
+ w4 as humanDanceTracks,
22275
+ b4 as humanFieldLabel,
22257
22276
  G2 as humanGag,
22258
22277
  Fl as humanGaitPose,
22259
22278
  Ll as humanGaitStrideLength,
22260
22279
  qd as humanPlan,
22261
22280
  wt as humanPose,
22262
22281
  kd as illustrationTones,
22263
- XT as imageSequence,
22282
+ GT as imageSequence,
22264
22283
  ro as inertiaDuration,
22265
22284
  oo as inertiaRest,
22266
22285
  ga as inertiaValueAt,
@@ -22272,7 +22291,7 @@ export {
22272
22291
  Lp as interpolatePathString,
22273
22292
  Fp as interpolateQuaternion,
22274
22293
  Sc as interpolateString,
22275
- NS as invertSimilarity,
22294
+ BS as invertSimilarity,
22276
22295
  Ng as isCubicBezierEasing,
22277
22296
  Uh as isHeld,
22278
22297
  wn as isInertiaTrack,
@@ -22283,7 +22302,7 @@ export {
22283
22302
  kn as isSpringTrack,
22284
22303
  cl as isTextTrack,
22285
22304
  Z3 as isUnderdamped,
22286
- dS as isUnresolved,
22305
+ gS as isUnresolved,
22287
22306
  Ku as isoDepth,
22288
22307
  Xu as isometricBoxFaces,
22289
22308
  Uu as isometricFaces,
@@ -22294,24 +22313,24 @@ export {
22294
22313
  pa as linear,
22295
22314
  zf as lipSyncKeyframes,
22296
22315
  Ul as lipSyncOver,
22297
- I4 as lipSyncTracks,
22316
+ C4 as lipSyncTracks,
22298
22317
  Df as lit,
22299
22318
  de as live,
22300
22319
  Uf as lookFields,
22301
- $S as loopBeats,
22302
- xS as loopEase,
22303
- SS as loopNoise,
22320
+ OS as loopBeats,
22321
+ TS as loopEase,
22322
+ ES as loopNoise,
22304
22323
  pg as loosePartsOf,
22305
22324
  mx as lyingPose,
22306
22325
  or as mapEase,
22307
- JS as mat4,
22308
- YT as matchMedia,
22326
+ QS as mat4,
22327
+ XT as matchMedia,
22309
22328
  ku as maxStaggerDistance,
22310
22329
  qw as measuredHipWidth,
22311
- E4 as meetDandiya,
22312
- V4 as meetHands,
22313
- G4 as meetingSpacing,
22314
- jS as metaballContours,
22330
+ $4 as meetDandiya,
22331
+ Z4 as meetHands,
22332
+ J4 as meetingSpacing,
22333
+ KS as metaballContours,
22315
22334
  km as metaballField,
22316
22335
  Iw as mirrorHumanPose,
22317
22336
  sw as mirrorPose,
@@ -22322,18 +22341,18 @@ export {
22322
22341
  zM as motorbike,
22323
22342
  I1 as mount,
22324
22343
  H1 as mountAll,
22325
- pS as narrationMarkers,
22326
- mS as narrationSceneAt,
22344
+ yS as narrationMarkers,
22345
+ bS as narrationSceneAt,
22327
22346
  er as naturalRest,
22328
- yS as nearestBeat,
22329
- bS as nextBeat,
22347
+ wS as nearestBeat,
22348
+ kS as nextBeat,
22330
22349
  H5 as niceCeiling,
22331
22350
  g0 as objectPositionAt,
22332
22351
  Xw as organicBodyContours,
22333
22352
  Ao as organicCenterLine,
22334
22353
  D5 as outfitPreset,
22335
22354
  Cx as owl,
22336
- UT as pageTransition,
22355
+ VT as pageTransition,
22337
22356
  Jk as panelMesh,
22338
22357
  rp as parametricEasing,
22339
22358
  Hx as parrot,
@@ -22343,53 +22362,54 @@ export {
22343
22362
  id as parseTrigger,
22344
22363
  Ys as partialPath,
22345
22364
  D1 as pathLength,
22346
- OT as pedallingKeys,
22365
+ _T as pedallingKeys,
22347
22366
  fu as pedallingPose,
22348
- qS as penroseStairs,
22349
- zS as penroseTriangle,
22350
- lT as persona,
22367
+ YS as penroseStairs,
22368
+ jS as penroseTriangle,
22369
+ hT as persona,
22351
22370
  rs as phaseOf,
22352
22371
  Jr as pieceMotion,
22353
22372
  Ix as pigeon,
22354
22373
  Bu as pingPong,
22355
- gS as planNarration,
22374
+ mS as planNarration,
22356
22375
  fk as plantDanceFoot,
22357
- n4 as play,
22358
- r4 as playSequence,
22359
- t4 as playWhenVisible,
22376
+ o4 as play,
22377
+ a4 as playSequence,
22378
+ n4 as playWhenVisible,
22360
22379
  Ru as playheadCrossings,
22361
22380
  Ml as pointAlong,
22362
22381
  Su as pointAtDistance,
22363
- w4 as pointOnHead,
22382
+ v4 as pointOnHead,
22364
22383
  fm as pointsToPath,
22365
22384
  Dt as pose,
22366
- c4 as poseTracks,
22367
- DS as powSimilarity,
22385
+ u4 as poseTracks,
22386
+ zS as powSimilarity,
22368
22387
  gl as projectIsometric,
22369
22388
  rc as propActions,
22370
22389
  TM as propAnchors3D,
22371
22390
  sc as propAt,
22372
22391
  mg as propControls,
22373
22392
  Lf as propLineWidth,
22374
- $T as propObjects,
22393
+ OT as propObjects,
22375
22394
  SM as propPartsInSpace,
22376
22395
  xg as propPreset,
22377
- TT as propRide,
22378
- IT as propRide3D,
22396
+ AT as propRide,
22397
+ CT as propRide3D,
22379
22398
  Lx as propScript,
22380
- PT as propScript3D,
22399
+ IT as propScript3D,
22381
22400
  $r as propShapeMesh,
22382
- dT as propSurface,
22401
+ gT as propSurface,
22383
22402
  PM as propTarget,
22384
- AT as propTow,
22403
+ PT as propTow,
22385
22404
  vM as propView,
22386
22405
  En as quadruped,
22387
22406
  rS as quat,
22388
- CT as quickPlay,
22389
- KT as quickTo,
22407
+ RT as quickPlay,
22408
+ UT as quickTo,
22390
22409
  xx as rabbit,
22391
22410
  Lu as randomBetween,
22392
22411
  uS as randomChoice,
22412
+ dS as randomNormal,
22393
22413
  Vp as randomSnapped,
22394
22414
  Ue as reachCharacter,
22395
22415
  Jv as reachOf,
@@ -22416,26 +22436,27 @@ export {
22416
22436
  mn as rotateAbout,
22417
22437
  Al as routineBeats,
22418
22438
  as as rubberLimb,
22419
- HS as safeAreas,
22420
- GS as scalePoints,
22439
+ FS as safeAreas,
22440
+ JS as scalePoints,
22421
22441
  q3 as scenePreset,
22422
22442
  B3 as scenery,
22423
22443
  ag as scriptActionSummaries,
22424
22444
  Ql as scriptTracks,
22425
- QS as scrollProgress,
22426
- e4 as scrubOnScroll,
22427
- B4 as scrubPath,
22428
- a4 as seatHeight,
22445
+ e4 as scrollProgress,
22446
+ s4 as scrubOnScroll,
22447
+ q4 as scrubPath,
22448
+ c4 as seatHeight,
22429
22449
  Gp as serializeTimeline,
22430
22450
  Xp as serializeTrack,
22431
- DT as set,
22451
+ zT as set,
22432
22452
  Xl as shade,
22433
22453
  Qk as shapeMesh,
22434
22454
  fl as shapeToPathData,
22435
- LS as similarity,
22455
+ fS as shuffled,
22456
+ NS as similarity,
22436
22457
  bm as similarityAbout,
22437
22458
  wm as similarityFixedPoint,
22438
- BS as similarityMatrix,
22459
+ qS as similarityMatrix,
22439
22460
  Np as simplifyKeyframes,
22440
22461
  au as sittingPose,
22441
22462
  Ol as skeletonInView,
@@ -22447,7 +22468,7 @@ export {
22447
22468
  Wy as snapConfig,
22448
22469
  Dy as snapDuration,
22449
22470
  Ny as snapProgress,
22450
- X4 as softCartoonCharacter,
22471
+ G4 as softCartoonCharacter,
22451
22472
  go as solveAt,
22452
22473
  co as solvePlanSpace,
22453
22474
  gg as solveProp,
@@ -22455,15 +22476,15 @@ export {
22455
22476
  Yk as soundsOf,
22456
22477
  Nv as speechDuration,
22457
22478
  t5 as speechLength,
22458
- ET as spliceTracks,
22459
- qT as splitText,
22479
+ $T as spliceTracks,
22480
+ YT as splitText,
22460
22481
  zg as springDuration,
22461
22482
  zo as springFollow,
22462
22483
  J3 as springValueAt,
22463
- US as squashStretch,
22484
+ VS as squashStretch,
22464
22485
  Sx as squirrel,
22465
22486
  Tn as stagePlanSpace,
22466
- H4 as stageSpots,
22487
+ F4 as stageSpots,
22467
22488
  wu as staggerDistance,
22468
22489
  hl as staggerOffset,
22469
22490
  fa as staggerOffsets,
@@ -22477,38 +22498,38 @@ export {
22477
22498
  Tk as stickToHuman,
22478
22499
  Mb as strideLength,
22479
22500
  kt as surfaceBox,
22480
- aT as surfaceScript,
22501
+ cT as surfaceScript,
22481
22502
  V2 as sweepingPose,
22482
22503
  y1 as syncMediaElement,
22483
22504
  xb as talkingMouth,
22484
22505
  Dr as taperedLine,
22485
22506
  jt as taperedOutline,
22486
22507
  Yp as textAt,
22487
- HT as tf,
22488
- zT as ticker,
22489
- BT as timeline,
22490
- LT as to,
22508
+ FT as tf,
22509
+ jT as ticker,
22510
+ qT as timeline,
22511
+ NT as to,
22491
22512
  cS as toJSON,
22492
22513
  iS as toKeyframedTrack,
22493
22514
  aS as toKeyframedTracks,
22494
- TS as torusNoise,
22515
+ AS as torusNoise,
22495
22516
  nn as trackTargets,
22496
22517
  WM as tractor,
22497
- RS as trailSamples,
22518
+ LS as trailSamples,
22498
22519
  DM as trainCar,
22499
22520
  qM as tree,
22500
22521
  js as triggerDistance,
22501
22522
  FM as truck,
22502
22523
  Zk as tubeMesh,
22503
22524
  dt as unknownName,
22504
- o4 as unmount,
22525
+ i4 as unmount,
22505
22526
  Gl as valueAt,
22506
- VS as vec3,
22527
+ ZS as vec3,
22507
22528
  Ve as vehicle,
22508
22529
  vb as walkPose,
22509
22530
  rx as wheelchair,
22510
- Y4 as whiteboard,
22511
- z4 as withErased,
22531
+ X4 as whiteboard,
22532
+ j4 as withErased,
22512
22533
  rn as withExpression,
22513
- MS as wobble
22534
+ SS as wobble
22514
22535
  };