@remotion/promo-pages 4.0.503 → 4.0.504

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Homepage.js CHANGED
@@ -2364,7 +2364,7 @@ var getSingleChildComponent = (children) => {
2364
2364
  }
2365
2365
  return child.type;
2366
2366
  };
2367
- var VERSION = "4.0.503";
2367
+ var VERSION = "4.0.504";
2368
2368
  var checkMultipleRemotionVersions = () => {
2369
2369
  if (typeof globalThis === "undefined") {
2370
2370
  return;
@@ -13361,12 +13361,12 @@ var SeriesInner = (props2) => {
13361
13361
  };
13362
13362
  return renderChildren(0, 0);
13363
13363
  }, [props2.children]);
13364
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
13365
- children: /* @__PURE__ */ jsx38(Sequence, {
13366
- layout: "none",
13367
- name: "<Series>",
13368
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
13369
- ...props2,
13364
+ return /* @__PURE__ */ jsx38(Sequence, {
13365
+ layout: "none",
13366
+ name: "<Series>",
13367
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
13368
+ ...props2,
13369
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
13370
13370
  children: childrenValue
13371
13371
  })
13372
13372
  });
@@ -16511,49 +16511,32 @@ var cValues = [
16511
16511
  0.0123412297999872
16512
16512
  ]
16513
16513
  ];
16514
- var binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
16515
16514
  var cubicPoint = (xs, ys, t) => {
16516
16515
  const x = (1 - t) * (1 - t) * (1 - t) * xs[0] + 3 * (1 - t) * (1 - t) * t * xs[1] + 3 * (1 - t) * t * t * xs[2] + t * t * t * xs[3];
16517
16516
  const y = (1 - t) * (1 - t) * (1 - t) * ys[0] + 3 * (1 - t) * (1 - t) * t * ys[1] + 3 * (1 - t) * t * t * ys[2] + t * t * t * ys[3];
16518
16517
  return { x, y };
16519
16518
  };
16520
- var getDerivative = (derivative, t, vs) => {
16521
- const n = vs.length - 1;
16522
- let value;
16523
- if (n === 0) {
16524
- return 0;
16525
- }
16526
- if (derivative === 0) {
16527
- value = 0;
16528
- for (let k = 0;k <= n; k++) {
16529
- value += binomialCoefficients[n][k] * (1 - t) ** (n - k) * t ** k * vs[k];
16530
- }
16531
- return value;
16532
- }
16533
- const _vs = new Array(n);
16534
- for (let k = 0;k < n; k++) {
16535
- _vs[k] = n * (vs[k + 1] - vs[k]);
16536
- }
16537
- return getDerivative(derivative - 1, t, _vs);
16538
- };
16539
- function bFunc(xs, ys, t) {
16540
- const xbase = getDerivative(1, t, xs);
16541
- const ybase = getDerivative(1, t, ys);
16542
- const combined = xbase * xbase + ybase * ybase;
16543
- return Math.sqrt(combined);
16544
- }
16545
16519
  var getCubicArcLength = ({
16546
16520
  sx,
16547
16521
  sy,
16548
16522
  t
16549
16523
  }) => {
16524
+ const v0x = 3 * (sx[1] - sx[0]);
16525
+ const v1x = 3 * (sx[2] - sx[1]);
16526
+ const v2x = 3 * (sx[3] - sx[2]);
16527
+ const v0y = 3 * (sy[1] - sy[0]);
16528
+ const v1y = 3 * (sy[2] - sy[1]);
16529
+ const v2y = 3 * (sy[3] - sy[2]);
16550
16530
  let correctedT;
16551
16531
  const n = 20;
16552
16532
  const z = t / 2;
16553
16533
  let sum = 0;
16554
16534
  for (let i = 0;i < n; i++) {
16555
16535
  correctedT = z * tValues[n][i] + z;
16556
- sum += cValues[n][i] * bFunc(sx, sy, correctedT);
16536
+ const mt = 1 - correctedT;
16537
+ const xbase = mt * mt * v0x + 2 * mt * correctedT * v1x + correctedT * correctedT * v2x;
16538
+ const ybase = mt * mt * v0y + 2 * mt * correctedT * v1y + correctedT * correctedT * v2y;
16539
+ sum += cValues[n][i] * Math.sqrt(xbase * xbase + ybase * ybase);
16557
16540
  }
16558
16541
  return z * sum;
16559
16542
  };
@@ -16563,8 +16546,17 @@ var quadraticPoint = (xs, ys, t) => {
16563
16546
  return { x, y };
16564
16547
  };
16565
16548
  var cubicDerivative = (xs, ys, t) => {
16566
- const derivative = quadraticPoint([3 * (xs[1] - xs[0]), 3 * (xs[2] - xs[1]), 3 * (xs[3] - xs[2])], [3 * (ys[1] - ys[0]), 3 * (ys[2] - ys[1]), 3 * (ys[3] - ys[2])], t);
16567
- return derivative;
16549
+ const v0x = 3 * (xs[1] - xs[0]);
16550
+ const v1x = 3 * (xs[2] - xs[1]);
16551
+ const v2x = 3 * (xs[3] - xs[2]);
16552
+ const v0y = 3 * (ys[1] - ys[0]);
16553
+ const v1y = 3 * (ys[2] - ys[1]);
16554
+ const v2y = 3 * (ys[3] - ys[2]);
16555
+ const mt = 1 - t;
16556
+ return {
16557
+ x: mt * mt * v0x + 2 * mt * t * v1x + t * t * v2x,
16558
+ y: mt * mt * v0y + 2 * mt * t * v1y + t * t * v2y
16559
+ };
16568
16560
  };
16569
16561
  var getQuadraticArcLength = (xs, ys, t) => {
16570
16562
  if (t === undefined) {
@@ -30327,7 +30319,7 @@ var GitHubStars = () => {
30327
30319
  width: "45px"
30328
30320
  }),
30329
30321
  /* @__PURE__ */ jsx56(StatItemContent, {
30330
- content: "54K",
30322
+ content: "55K",
30331
30323
  width: "80px",
30332
30324
  fontSize: "2.5rem",
30333
30325
  fontWeight: "bold"
@@ -32390,7 +32382,7 @@ var studioStyle = {
32390
32382
  lineHeight: "normal",
32391
32383
  fontSize: "inherit"
32392
32384
  };
32393
- var BufferingIndicator = ({ type }) => {
32385
+ var BufferingIndicator = ({ type, color = "white" }) => {
32394
32386
  const style = type === "player" ? playerStyle : studioStyle;
32395
32387
  return /* @__PURE__ */ jsxs24(Fragment12, {
32396
32388
  children: [
@@ -32419,7 +32411,7 @@ var BufferingIndicator = ({ type }) => {
32419
32411
  className,
32420
32412
  children: /* @__PURE__ */ jsx214("path", {
32421
32413
  d: type === "player" ? "M 11 4 A 7 7 0 0 1 15.1145 16.66312" : "M 9 2 A 7 7 0 0 1 13.1145 14.66312",
32422
- stroke: "white",
32414
+ stroke: color,
32423
32415
  strokeLinecap: "round",
32424
32416
  fill: "none",
32425
32417
  strokeWidth: 3
@@ -44016,7 +44008,7 @@ import {
44016
44008
  import { BufferTarget, StreamTarget } from "mediabunny";
44017
44009
 
44018
44010
  // ../core/dist/esm/version.mjs
44019
- var VERSION2 = "4.0.503";
44011
+ var VERSION2 = "4.0.504";
44020
44012
 
44021
44013
  // ../web-renderer/dist/esm/index.mjs
44022
44014
  import { AudioSample, VideoSample } from "mediabunny";
@@ -51808,7 +51800,7 @@ var GithubButton = () => {
51808
51800
  " ",
51809
51801
  /* @__PURE__ */ jsx136("div", {
51810
51802
  className: "text-xs inline-block ml-2 leading-none mt-[3px] self-center",
51811
- children: "54k"
51803
+ children: "55k"
51812
51804
  })
51813
51805
  ]
51814
51806
  });
package/dist/design.js CHANGED
@@ -2140,49 +2140,32 @@ var cValues = [
2140
2140
  0.0123412297999872
2141
2141
  ]
2142
2142
  ];
2143
- var binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
2144
2143
  var cubicPoint = (xs, ys, t) => {
2145
2144
  const x = (1 - t) * (1 - t) * (1 - t) * xs[0] + 3 * (1 - t) * (1 - t) * t * xs[1] + 3 * (1 - t) * t * t * xs[2] + t * t * t * xs[3];
2146
2145
  const y = (1 - t) * (1 - t) * (1 - t) * ys[0] + 3 * (1 - t) * (1 - t) * t * ys[1] + 3 * (1 - t) * t * t * ys[2] + t * t * t * ys[3];
2147
2146
  return { x, y };
2148
2147
  };
2149
- var getDerivative = (derivative, t, vs) => {
2150
- const n = vs.length - 1;
2151
- let value;
2152
- if (n === 0) {
2153
- return 0;
2154
- }
2155
- if (derivative === 0) {
2156
- value = 0;
2157
- for (let k = 0;k <= n; k++) {
2158
- value += binomialCoefficients[n][k] * (1 - t) ** (n - k) * t ** k * vs[k];
2159
- }
2160
- return value;
2161
- }
2162
- const _vs = new Array(n);
2163
- for (let k = 0;k < n; k++) {
2164
- _vs[k] = n * (vs[k + 1] - vs[k]);
2165
- }
2166
- return getDerivative(derivative - 1, t, _vs);
2167
- };
2168
- function bFunc(xs, ys, t) {
2169
- const xbase = getDerivative(1, t, xs);
2170
- const ybase = getDerivative(1, t, ys);
2171
- const combined = xbase * xbase + ybase * ybase;
2172
- return Math.sqrt(combined);
2173
- }
2174
2148
  var getCubicArcLength = ({
2175
2149
  sx,
2176
2150
  sy,
2177
2151
  t
2178
2152
  }) => {
2153
+ const v0x = 3 * (sx[1] - sx[0]);
2154
+ const v1x = 3 * (sx[2] - sx[1]);
2155
+ const v2x = 3 * (sx[3] - sx[2]);
2156
+ const v0y = 3 * (sy[1] - sy[0]);
2157
+ const v1y = 3 * (sy[2] - sy[1]);
2158
+ const v2y = 3 * (sy[3] - sy[2]);
2179
2159
  let correctedT;
2180
2160
  const n = 20;
2181
2161
  const z = t / 2;
2182
2162
  let sum = 0;
2183
2163
  for (let i = 0;i < n; i++) {
2184
2164
  correctedT = z * tValues[n][i] + z;
2185
- sum += cValues[n][i] * bFunc(sx, sy, correctedT);
2165
+ const mt = 1 - correctedT;
2166
+ const xbase = mt * mt * v0x + 2 * mt * correctedT * v1x + correctedT * correctedT * v2x;
2167
+ const ybase = mt * mt * v0y + 2 * mt * correctedT * v1y + correctedT * correctedT * v2y;
2168
+ sum += cValues[n][i] * Math.sqrt(xbase * xbase + ybase * ybase);
2186
2169
  }
2187
2170
  return z * sum;
2188
2171
  };
@@ -2192,8 +2175,17 @@ var quadraticPoint = (xs, ys, t) => {
2192
2175
  return { x, y };
2193
2176
  };
2194
2177
  var cubicDerivative = (xs, ys, t) => {
2195
- const derivative = quadraticPoint([3 * (xs[1] - xs[0]), 3 * (xs[2] - xs[1]), 3 * (xs[3] - xs[2])], [3 * (ys[1] - ys[0]), 3 * (ys[2] - ys[1]), 3 * (ys[3] - ys[2])], t);
2196
- return derivative;
2178
+ const v0x = 3 * (xs[1] - xs[0]);
2179
+ const v1x = 3 * (xs[2] - xs[1]);
2180
+ const v2x = 3 * (xs[3] - xs[2]);
2181
+ const v0y = 3 * (ys[1] - ys[0]);
2182
+ const v1y = 3 * (ys[2] - ys[1]);
2183
+ const v2y = 3 * (ys[3] - ys[2]);
2184
+ const mt = 1 - t;
2185
+ return {
2186
+ x: mt * mt * v0x + 2 * mt * t * v1x + t * t * v2x,
2187
+ y: mt * mt * v0y + 2 * mt * t * v1y + t * t * v2y
2188
+ };
2197
2189
  };
2198
2190
  var getQuadraticArcLength = (xs, ys, t) => {
2199
2191
  if (t === undefined) {
@@ -5594,7 +5586,7 @@ var getSingleChildComponent = (children) => {
5594
5586
  }
5595
5587
  return child.type;
5596
5588
  };
5597
- var VERSION = "4.0.503";
5589
+ var VERSION = "4.0.504";
5598
5590
  var checkMultipleRemotionVersions = () => {
5599
5591
  if (typeof globalThis === "undefined") {
5600
5592
  return;
@@ -16591,12 +16583,12 @@ var SeriesInner = (props2) => {
16591
16583
  };
16592
16584
  return renderChildren(0, 0);
16593
16585
  }, [props2.children]);
16594
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16595
- children: /* @__PURE__ */ jsx38(Sequence, {
16596
- layout: "none",
16597
- name: "<Series>",
16598
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16599
- ...props2,
16586
+ return /* @__PURE__ */ jsx38(Sequence, {
16587
+ layout: "none",
16588
+ name: "<Series>",
16589
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16590
+ ...props2,
16591
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16600
16592
  children: childrenValue
16601
16593
  })
16602
16594
  });
package/dist/experts.js CHANGED
@@ -2364,7 +2364,7 @@ var getSingleChildComponent = (children) => {
2364
2364
  }
2365
2365
  return child.type;
2366
2366
  };
2367
- var VERSION = "4.0.503";
2367
+ var VERSION = "4.0.504";
2368
2368
  var checkMultipleRemotionVersions = () => {
2369
2369
  if (typeof globalThis === "undefined") {
2370
2370
  return;
@@ -13361,12 +13361,12 @@ var SeriesInner = (props2) => {
13361
13361
  };
13362
13362
  return renderChildren(0, 0);
13363
13363
  }, [props2.children]);
13364
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
13365
- children: /* @__PURE__ */ jsx38(Sequence, {
13366
- layout: "none",
13367
- name: "<Series>",
13368
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
13369
- ...props2,
13364
+ return /* @__PURE__ */ jsx38(Sequence, {
13365
+ layout: "none",
13366
+ name: "<Series>",
13367
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
13368
+ ...props2,
13369
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
13370
13370
  children: childrenValue
13371
13371
  })
13372
13372
  });
@@ -2143,49 +2143,32 @@ var cValues = [
2143
2143
  0.0123412297999872
2144
2144
  ]
2145
2145
  ];
2146
- var binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
2147
2146
  var cubicPoint = (xs, ys, t) => {
2148
2147
  const x = (1 - t) * (1 - t) * (1 - t) * xs[0] + 3 * (1 - t) * (1 - t) * t * xs[1] + 3 * (1 - t) * t * t * xs[2] + t * t * t * xs[3];
2149
2148
  const y = (1 - t) * (1 - t) * (1 - t) * ys[0] + 3 * (1 - t) * (1 - t) * t * ys[1] + 3 * (1 - t) * t * t * ys[2] + t * t * t * ys[3];
2150
2149
  return { x, y };
2151
2150
  };
2152
- var getDerivative = (derivative, t, vs) => {
2153
- const n = vs.length - 1;
2154
- let value;
2155
- if (n === 0) {
2156
- return 0;
2157
- }
2158
- if (derivative === 0) {
2159
- value = 0;
2160
- for (let k = 0;k <= n; k++) {
2161
- value += binomialCoefficients[n][k] * (1 - t) ** (n - k) * t ** k * vs[k];
2162
- }
2163
- return value;
2164
- }
2165
- const _vs = new Array(n);
2166
- for (let k = 0;k < n; k++) {
2167
- _vs[k] = n * (vs[k + 1] - vs[k]);
2168
- }
2169
- return getDerivative(derivative - 1, t, _vs);
2170
- };
2171
- function bFunc(xs, ys, t) {
2172
- const xbase = getDerivative(1, t, xs);
2173
- const ybase = getDerivative(1, t, ys);
2174
- const combined = xbase * xbase + ybase * ybase;
2175
- return Math.sqrt(combined);
2176
- }
2177
2151
  var getCubicArcLength = ({
2178
2152
  sx,
2179
2153
  sy,
2180
2154
  t
2181
2155
  }) => {
2156
+ const v0x = 3 * (sx[1] - sx[0]);
2157
+ const v1x = 3 * (sx[2] - sx[1]);
2158
+ const v2x = 3 * (sx[3] - sx[2]);
2159
+ const v0y = 3 * (sy[1] - sy[0]);
2160
+ const v1y = 3 * (sy[2] - sy[1]);
2161
+ const v2y = 3 * (sy[3] - sy[2]);
2182
2162
  let correctedT;
2183
2163
  const n = 20;
2184
2164
  const z = t / 2;
2185
2165
  let sum = 0;
2186
2166
  for (let i = 0;i < n; i++) {
2187
2167
  correctedT = z * tValues[n][i] + z;
2188
- sum += cValues[n][i] * bFunc(sx, sy, correctedT);
2168
+ const mt = 1 - correctedT;
2169
+ const xbase = mt * mt * v0x + 2 * mt * correctedT * v1x + correctedT * correctedT * v2x;
2170
+ const ybase = mt * mt * v0y + 2 * mt * correctedT * v1y + correctedT * correctedT * v2y;
2171
+ sum += cValues[n][i] * Math.sqrt(xbase * xbase + ybase * ybase);
2189
2172
  }
2190
2173
  return z * sum;
2191
2174
  };
@@ -2195,8 +2178,17 @@ var quadraticPoint = (xs, ys, t) => {
2195
2178
  return { x, y };
2196
2179
  };
2197
2180
  var cubicDerivative = (xs, ys, t) => {
2198
- const derivative = quadraticPoint([3 * (xs[1] - xs[0]), 3 * (xs[2] - xs[1]), 3 * (xs[3] - xs[2])], [3 * (ys[1] - ys[0]), 3 * (ys[2] - ys[1]), 3 * (ys[3] - ys[2])], t);
2199
- return derivative;
2181
+ const v0x = 3 * (xs[1] - xs[0]);
2182
+ const v1x = 3 * (xs[2] - xs[1]);
2183
+ const v2x = 3 * (xs[3] - xs[2]);
2184
+ const v0y = 3 * (ys[1] - ys[0]);
2185
+ const v1y = 3 * (ys[2] - ys[1]);
2186
+ const v2y = 3 * (ys[3] - ys[2]);
2187
+ const mt = 1 - t;
2188
+ return {
2189
+ x: mt * mt * v0x + 2 * mt * t * v1x + t * t * v2x,
2190
+ y: mt * mt * v0y + 2 * mt * t * v1y + t * t * v2y
2191
+ };
2200
2192
  };
2201
2193
  var getQuadraticArcLength = (xs, ys, t) => {
2202
2194
  if (t === undefined) {
@@ -5597,7 +5589,7 @@ var getSingleChildComponent = (children) => {
5597
5589
  }
5598
5590
  return child.type;
5599
5591
  };
5600
- var VERSION = "4.0.503";
5592
+ var VERSION = "4.0.504";
5601
5593
  var checkMultipleRemotionVersions = () => {
5602
5594
  if (typeof globalThis === "undefined") {
5603
5595
  return;
@@ -16594,12 +16586,12 @@ var SeriesInner = (props2) => {
16594
16586
  };
16595
16587
  return renderChildren(0, 0);
16596
16588
  }, [props2.children]);
16597
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16598
- children: /* @__PURE__ */ jsx38(Sequence, {
16599
- layout: "none",
16600
- name: "<Series>",
16601
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16602
- ...props2,
16589
+ return /* @__PURE__ */ jsx38(Sequence, {
16590
+ layout: "none",
16591
+ name: "<Series>",
16592
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16593
+ ...props2,
16594
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16603
16595
  children: childrenValue
16604
16596
  })
16605
16597
  });
@@ -2140,49 +2140,32 @@ var cValues = [
2140
2140
  0.0123412297999872
2141
2141
  ]
2142
2142
  ];
2143
- var binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
2144
2143
  var cubicPoint = (xs, ys, t) => {
2145
2144
  const x = (1 - t) * (1 - t) * (1 - t) * xs[0] + 3 * (1 - t) * (1 - t) * t * xs[1] + 3 * (1 - t) * t * t * xs[2] + t * t * t * xs[3];
2146
2145
  const y = (1 - t) * (1 - t) * (1 - t) * ys[0] + 3 * (1 - t) * (1 - t) * t * ys[1] + 3 * (1 - t) * t * t * ys[2] + t * t * t * ys[3];
2147
2146
  return { x, y };
2148
2147
  };
2149
- var getDerivative = (derivative, t, vs) => {
2150
- const n = vs.length - 1;
2151
- let value;
2152
- if (n === 0) {
2153
- return 0;
2154
- }
2155
- if (derivative === 0) {
2156
- value = 0;
2157
- for (let k = 0;k <= n; k++) {
2158
- value += binomialCoefficients[n][k] * (1 - t) ** (n - k) * t ** k * vs[k];
2159
- }
2160
- return value;
2161
- }
2162
- const _vs = new Array(n);
2163
- for (let k = 0;k < n; k++) {
2164
- _vs[k] = n * (vs[k + 1] - vs[k]);
2165
- }
2166
- return getDerivative(derivative - 1, t, _vs);
2167
- };
2168
- function bFunc(xs, ys, t) {
2169
- const xbase = getDerivative(1, t, xs);
2170
- const ybase = getDerivative(1, t, ys);
2171
- const combined = xbase * xbase + ybase * ybase;
2172
- return Math.sqrt(combined);
2173
- }
2174
2148
  var getCubicArcLength = ({
2175
2149
  sx,
2176
2150
  sy,
2177
2151
  t
2178
2152
  }) => {
2153
+ const v0x = 3 * (sx[1] - sx[0]);
2154
+ const v1x = 3 * (sx[2] - sx[1]);
2155
+ const v2x = 3 * (sx[3] - sx[2]);
2156
+ const v0y = 3 * (sy[1] - sy[0]);
2157
+ const v1y = 3 * (sy[2] - sy[1]);
2158
+ const v2y = 3 * (sy[3] - sy[2]);
2179
2159
  let correctedT;
2180
2160
  const n = 20;
2181
2161
  const z = t / 2;
2182
2162
  let sum = 0;
2183
2163
  for (let i = 0;i < n; i++) {
2184
2164
  correctedT = z * tValues[n][i] + z;
2185
- sum += cValues[n][i] * bFunc(sx, sy, correctedT);
2165
+ const mt = 1 - correctedT;
2166
+ const xbase = mt * mt * v0x + 2 * mt * correctedT * v1x + correctedT * correctedT * v2x;
2167
+ const ybase = mt * mt * v0y + 2 * mt * correctedT * v1y + correctedT * correctedT * v2y;
2168
+ sum += cValues[n][i] * Math.sqrt(xbase * xbase + ybase * ybase);
2186
2169
  }
2187
2170
  return z * sum;
2188
2171
  };
@@ -2192,8 +2175,17 @@ var quadraticPoint = (xs, ys, t) => {
2192
2175
  return { x, y };
2193
2176
  };
2194
2177
  var cubicDerivative = (xs, ys, t) => {
2195
- const derivative = quadraticPoint([3 * (xs[1] - xs[0]), 3 * (xs[2] - xs[1]), 3 * (xs[3] - xs[2])], [3 * (ys[1] - ys[0]), 3 * (ys[2] - ys[1]), 3 * (ys[3] - ys[2])], t);
2196
- return derivative;
2178
+ const v0x = 3 * (xs[1] - xs[0]);
2179
+ const v1x = 3 * (xs[2] - xs[1]);
2180
+ const v2x = 3 * (xs[3] - xs[2]);
2181
+ const v0y = 3 * (ys[1] - ys[0]);
2182
+ const v1y = 3 * (ys[2] - ys[1]);
2183
+ const v2y = 3 * (ys[3] - ys[2]);
2184
+ const mt = 1 - t;
2185
+ return {
2186
+ x: mt * mt * v0x + 2 * mt * t * v1x + t * t * v2x,
2187
+ y: mt * mt * v0y + 2 * mt * t * v1y + t * t * v2y
2188
+ };
2197
2189
  };
2198
2190
  var getQuadraticArcLength = (xs, ys, t) => {
2199
2191
  if (t === undefined) {
@@ -5594,7 +5586,7 @@ var getSingleChildComponent = (children) => {
5594
5586
  }
5595
5587
  return child.type;
5596
5588
  };
5597
- var VERSION = "4.0.503";
5589
+ var VERSION = "4.0.504";
5598
5590
  var checkMultipleRemotionVersions = () => {
5599
5591
  if (typeof globalThis === "undefined") {
5600
5592
  return;
@@ -16591,12 +16583,12 @@ var SeriesInner = (props2) => {
16591
16583
  };
16592
16584
  return renderChildren(0, 0);
16593
16585
  }, [props2.children]);
16594
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16595
- children: /* @__PURE__ */ jsx38(Sequence, {
16596
- layout: "none",
16597
- name: "<Series>",
16598
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16599
- ...props2,
16586
+ return /* @__PURE__ */ jsx38(Sequence, {
16587
+ layout: "none",
16588
+ name: "<Series>",
16589
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16590
+ ...props2,
16591
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16600
16592
  children: childrenValue
16601
16593
  })
16602
16594
  });
@@ -19474,49 +19474,32 @@ var cValues = [
19474
19474
  0.0123412297999872
19475
19475
  ]
19476
19476
  ];
19477
- var binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
19478
19477
  var cubicPoint = (xs, ys, t) => {
19479
19478
  const x = (1 - t) * (1 - t) * (1 - t) * xs[0] + 3 * (1 - t) * (1 - t) * t * xs[1] + 3 * (1 - t) * t * t * xs[2] + t * t * t * xs[3];
19480
19479
  const y = (1 - t) * (1 - t) * (1 - t) * ys[0] + 3 * (1 - t) * (1 - t) * t * ys[1] + 3 * (1 - t) * t * t * ys[2] + t * t * t * ys[3];
19481
19480
  return { x, y };
19482
19481
  };
19483
- var getDerivative = (derivative, t, vs) => {
19484
- const n = vs.length - 1;
19485
- let value;
19486
- if (n === 0) {
19487
- return 0;
19488
- }
19489
- if (derivative === 0) {
19490
- value = 0;
19491
- for (let k = 0;k <= n; k++) {
19492
- value += binomialCoefficients[n][k] * (1 - t) ** (n - k) * t ** k * vs[k];
19493
- }
19494
- return value;
19495
- }
19496
- const _vs = new Array(n);
19497
- for (let k = 0;k < n; k++) {
19498
- _vs[k] = n * (vs[k + 1] - vs[k]);
19499
- }
19500
- return getDerivative(derivative - 1, t, _vs);
19501
- };
19502
- function bFunc(xs, ys, t) {
19503
- const xbase = getDerivative(1, t, xs);
19504
- const ybase = getDerivative(1, t, ys);
19505
- const combined = xbase * xbase + ybase * ybase;
19506
- return Math.sqrt(combined);
19507
- }
19508
19482
  var getCubicArcLength = ({
19509
19483
  sx,
19510
19484
  sy,
19511
19485
  t
19512
19486
  }) => {
19487
+ const v0x = 3 * (sx[1] - sx[0]);
19488
+ const v1x = 3 * (sx[2] - sx[1]);
19489
+ const v2x = 3 * (sx[3] - sx[2]);
19490
+ const v0y = 3 * (sy[1] - sy[0]);
19491
+ const v1y = 3 * (sy[2] - sy[1]);
19492
+ const v2y = 3 * (sy[3] - sy[2]);
19513
19493
  let correctedT;
19514
19494
  const n = 20;
19515
19495
  const z = t / 2;
19516
19496
  let sum = 0;
19517
19497
  for (let i = 0;i < n; i++) {
19518
19498
  correctedT = z * tValues[n][i] + z;
19519
- sum += cValues[n][i] * bFunc(sx, sy, correctedT);
19499
+ const mt = 1 - correctedT;
19500
+ const xbase = mt * mt * v0x + 2 * mt * correctedT * v1x + correctedT * correctedT * v2x;
19501
+ const ybase = mt * mt * v0y + 2 * mt * correctedT * v1y + correctedT * correctedT * v2y;
19502
+ sum += cValues[n][i] * Math.sqrt(xbase * xbase + ybase * ybase);
19520
19503
  }
19521
19504
  return z * sum;
19522
19505
  };
@@ -19526,8 +19509,17 @@ var quadraticPoint = (xs, ys, t) => {
19526
19509
  return { x, y };
19527
19510
  };
19528
19511
  var cubicDerivative = (xs, ys, t) => {
19529
- const derivative = quadraticPoint([3 * (xs[1] - xs[0]), 3 * (xs[2] - xs[1]), 3 * (xs[3] - xs[2])], [3 * (ys[1] - ys[0]), 3 * (ys[2] - ys[1]), 3 * (ys[3] - ys[2])], t);
19530
- return derivative;
19512
+ const v0x = 3 * (xs[1] - xs[0]);
19513
+ const v1x = 3 * (xs[2] - xs[1]);
19514
+ const v2x = 3 * (xs[3] - xs[2]);
19515
+ const v0y = 3 * (ys[1] - ys[0]);
19516
+ const v1y = 3 * (ys[2] - ys[1]);
19517
+ const v2y = 3 * (ys[3] - ys[2]);
19518
+ const mt = 1 - t;
19519
+ return {
19520
+ x: mt * mt * v0x + 2 * mt * t * v1x + t * t * v2x,
19521
+ y: mt * mt * v0y + 2 * mt * t * v1y + t * t * v2y
19522
+ };
19531
19523
  };
19532
19524
  var getQuadraticArcLength = (xs, ys, t) => {
19533
19525
  if (t === undefined) {
@@ -22928,7 +22920,7 @@ var getSingleChildComponent = (children) => {
22928
22920
  }
22929
22921
  return child.type;
22930
22922
  };
22931
- var VERSION = "4.0.503";
22923
+ var VERSION = "4.0.504";
22932
22924
  var checkMultipleRemotionVersions = () => {
22933
22925
  if (typeof globalThis === "undefined") {
22934
22926
  return;
@@ -33925,12 +33917,12 @@ var SeriesInner = (props2) => {
33925
33917
  };
33926
33918
  return renderChildren(0, 0);
33927
33919
  }, [props2.children]);
33928
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
33929
- children: /* @__PURE__ */ jsx38(Sequence, {
33930
- layout: "none",
33931
- name: "<Series>",
33932
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
33933
- ...props2,
33920
+ return /* @__PURE__ */ jsx38(Sequence, {
33921
+ layout: "none",
33922
+ name: "<Series>",
33923
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
33924
+ ...props2,
33925
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
33934
33926
  children: childrenValue
33935
33927
  })
33936
33928
  });
@@ -2140,49 +2140,32 @@ var cValues = [
2140
2140
  0.0123412297999872
2141
2141
  ]
2142
2142
  ];
2143
- var binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
2144
2143
  var cubicPoint = (xs, ys, t) => {
2145
2144
  const x = (1 - t) * (1 - t) * (1 - t) * xs[0] + 3 * (1 - t) * (1 - t) * t * xs[1] + 3 * (1 - t) * t * t * xs[2] + t * t * t * xs[3];
2146
2145
  const y = (1 - t) * (1 - t) * (1 - t) * ys[0] + 3 * (1 - t) * (1 - t) * t * ys[1] + 3 * (1 - t) * t * t * ys[2] + t * t * t * ys[3];
2147
2146
  return { x, y };
2148
2147
  };
2149
- var getDerivative = (derivative, t, vs) => {
2150
- const n = vs.length - 1;
2151
- let value;
2152
- if (n === 0) {
2153
- return 0;
2154
- }
2155
- if (derivative === 0) {
2156
- value = 0;
2157
- for (let k = 0;k <= n; k++) {
2158
- value += binomialCoefficients[n][k] * (1 - t) ** (n - k) * t ** k * vs[k];
2159
- }
2160
- return value;
2161
- }
2162
- const _vs = new Array(n);
2163
- for (let k = 0;k < n; k++) {
2164
- _vs[k] = n * (vs[k + 1] - vs[k]);
2165
- }
2166
- return getDerivative(derivative - 1, t, _vs);
2167
- };
2168
- function bFunc(xs, ys, t) {
2169
- const xbase = getDerivative(1, t, xs);
2170
- const ybase = getDerivative(1, t, ys);
2171
- const combined = xbase * xbase + ybase * ybase;
2172
- return Math.sqrt(combined);
2173
- }
2174
2148
  var getCubicArcLength = ({
2175
2149
  sx,
2176
2150
  sy,
2177
2151
  t
2178
2152
  }) => {
2153
+ const v0x = 3 * (sx[1] - sx[0]);
2154
+ const v1x = 3 * (sx[2] - sx[1]);
2155
+ const v2x = 3 * (sx[3] - sx[2]);
2156
+ const v0y = 3 * (sy[1] - sy[0]);
2157
+ const v1y = 3 * (sy[2] - sy[1]);
2158
+ const v2y = 3 * (sy[3] - sy[2]);
2179
2159
  let correctedT;
2180
2160
  const n = 20;
2181
2161
  const z = t / 2;
2182
2162
  let sum = 0;
2183
2163
  for (let i = 0;i < n; i++) {
2184
2164
  correctedT = z * tValues[n][i] + z;
2185
- sum += cValues[n][i] * bFunc(sx, sy, correctedT);
2165
+ const mt = 1 - correctedT;
2166
+ const xbase = mt * mt * v0x + 2 * mt * correctedT * v1x + correctedT * correctedT * v2x;
2167
+ const ybase = mt * mt * v0y + 2 * mt * correctedT * v1y + correctedT * correctedT * v2y;
2168
+ sum += cValues[n][i] * Math.sqrt(xbase * xbase + ybase * ybase);
2186
2169
  }
2187
2170
  return z * sum;
2188
2171
  };
@@ -2192,8 +2175,17 @@ var quadraticPoint = (xs, ys, t) => {
2192
2175
  return { x, y };
2193
2176
  };
2194
2177
  var cubicDerivative = (xs, ys, t) => {
2195
- const derivative = quadraticPoint([3 * (xs[1] - xs[0]), 3 * (xs[2] - xs[1]), 3 * (xs[3] - xs[2])], [3 * (ys[1] - ys[0]), 3 * (ys[2] - ys[1]), 3 * (ys[3] - ys[2])], t);
2196
- return derivative;
2178
+ const v0x = 3 * (xs[1] - xs[0]);
2179
+ const v1x = 3 * (xs[2] - xs[1]);
2180
+ const v2x = 3 * (xs[3] - xs[2]);
2181
+ const v0y = 3 * (ys[1] - ys[0]);
2182
+ const v1y = 3 * (ys[2] - ys[1]);
2183
+ const v2y = 3 * (ys[3] - ys[2]);
2184
+ const mt = 1 - t;
2185
+ return {
2186
+ x: mt * mt * v0x + 2 * mt * t * v1x + t * t * v2x,
2187
+ y: mt * mt * v0y + 2 * mt * t * v1y + t * t * v2y
2188
+ };
2197
2189
  };
2198
2190
  var getQuadraticArcLength = (xs, ys, t) => {
2199
2191
  if (t === undefined) {
@@ -5594,7 +5586,7 @@ var getSingleChildComponent = (children) => {
5594
5586
  }
5595
5587
  return child.type;
5596
5588
  };
5597
- var VERSION = "4.0.503";
5589
+ var VERSION = "4.0.504";
5598
5590
  var checkMultipleRemotionVersions = () => {
5599
5591
  if (typeof globalThis === "undefined") {
5600
5592
  return;
@@ -16591,12 +16583,12 @@ var SeriesInner = (props2) => {
16591
16583
  };
16592
16584
  return renderChildren(0, 0);
16593
16585
  }, [props2.children]);
16594
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16595
- children: /* @__PURE__ */ jsx38(Sequence, {
16596
- layout: "none",
16597
- name: "<Series>",
16598
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16599
- ...props2,
16586
+ return /* @__PURE__ */ jsx38(Sequence, {
16587
+ layout: "none",
16588
+ name: "<Series>",
16589
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16590
+ ...props2,
16591
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16600
16592
  children: childrenValue
16601
16593
  })
16602
16594
  });
package/dist/team.js CHANGED
@@ -2321,49 +2321,32 @@ var cValues = [
2321
2321
  0.0123412297999872
2322
2322
  ]
2323
2323
  ];
2324
- var binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
2325
2324
  var cubicPoint = (xs, ys, t) => {
2326
2325
  const x = (1 - t) * (1 - t) * (1 - t) * xs[0] + 3 * (1 - t) * (1 - t) * t * xs[1] + 3 * (1 - t) * t * t * xs[2] + t * t * t * xs[3];
2327
2326
  const y = (1 - t) * (1 - t) * (1 - t) * ys[0] + 3 * (1 - t) * (1 - t) * t * ys[1] + 3 * (1 - t) * t * t * ys[2] + t * t * t * ys[3];
2328
2327
  return { x, y };
2329
2328
  };
2330
- var getDerivative = (derivative, t, vs) => {
2331
- const n = vs.length - 1;
2332
- let value;
2333
- if (n === 0) {
2334
- return 0;
2335
- }
2336
- if (derivative === 0) {
2337
- value = 0;
2338
- for (let k = 0;k <= n; k++) {
2339
- value += binomialCoefficients[n][k] * (1 - t) ** (n - k) * t ** k * vs[k];
2340
- }
2341
- return value;
2342
- }
2343
- const _vs = new Array(n);
2344
- for (let k = 0;k < n; k++) {
2345
- _vs[k] = n * (vs[k + 1] - vs[k]);
2346
- }
2347
- return getDerivative(derivative - 1, t, _vs);
2348
- };
2349
- function bFunc(xs, ys, t) {
2350
- const xbase = getDerivative(1, t, xs);
2351
- const ybase = getDerivative(1, t, ys);
2352
- const combined = xbase * xbase + ybase * ybase;
2353
- return Math.sqrt(combined);
2354
- }
2355
2329
  var getCubicArcLength = ({
2356
2330
  sx,
2357
2331
  sy,
2358
2332
  t
2359
2333
  }) => {
2334
+ const v0x = 3 * (sx[1] - sx[0]);
2335
+ const v1x = 3 * (sx[2] - sx[1]);
2336
+ const v2x = 3 * (sx[3] - sx[2]);
2337
+ const v0y = 3 * (sy[1] - sy[0]);
2338
+ const v1y = 3 * (sy[2] - sy[1]);
2339
+ const v2y = 3 * (sy[3] - sy[2]);
2360
2340
  let correctedT;
2361
2341
  const n = 20;
2362
2342
  const z = t / 2;
2363
2343
  let sum = 0;
2364
2344
  for (let i = 0;i < n; i++) {
2365
2345
  correctedT = z * tValues[n][i] + z;
2366
- sum += cValues[n][i] * bFunc(sx, sy, correctedT);
2346
+ const mt = 1 - correctedT;
2347
+ const xbase = mt * mt * v0x + 2 * mt * correctedT * v1x + correctedT * correctedT * v2x;
2348
+ const ybase = mt * mt * v0y + 2 * mt * correctedT * v1y + correctedT * correctedT * v2y;
2349
+ sum += cValues[n][i] * Math.sqrt(xbase * xbase + ybase * ybase);
2367
2350
  }
2368
2351
  return z * sum;
2369
2352
  };
@@ -2373,8 +2356,17 @@ var quadraticPoint = (xs, ys, t) => {
2373
2356
  return { x, y };
2374
2357
  };
2375
2358
  var cubicDerivative = (xs, ys, t) => {
2376
- const derivative = quadraticPoint([3 * (xs[1] - xs[0]), 3 * (xs[2] - xs[1]), 3 * (xs[3] - xs[2])], [3 * (ys[1] - ys[0]), 3 * (ys[2] - ys[1]), 3 * (ys[3] - ys[2])], t);
2377
- return derivative;
2359
+ const v0x = 3 * (xs[1] - xs[0]);
2360
+ const v1x = 3 * (xs[2] - xs[1]);
2361
+ const v2x = 3 * (xs[3] - xs[2]);
2362
+ const v0y = 3 * (ys[1] - ys[0]);
2363
+ const v1y = 3 * (ys[2] - ys[1]);
2364
+ const v2y = 3 * (ys[3] - ys[2]);
2365
+ const mt = 1 - t;
2366
+ return {
2367
+ x: mt * mt * v0x + 2 * mt * t * v1x + t * t * v2x,
2368
+ y: mt * mt * v0y + 2 * mt * t * v1y + t * t * v2y
2369
+ };
2378
2370
  };
2379
2371
  var getQuadraticArcLength = (xs, ys, t) => {
2380
2372
  if (t === undefined) {
@@ -5775,7 +5767,7 @@ var getSingleChildComponent = (children) => {
5775
5767
  }
5776
5768
  return child.type;
5777
5769
  };
5778
- var VERSION = "4.0.503";
5770
+ var VERSION = "4.0.504";
5779
5771
  var checkMultipleRemotionVersions = () => {
5780
5772
  if (typeof globalThis === "undefined") {
5781
5773
  return;
@@ -16772,12 +16764,12 @@ var SeriesInner = (props2) => {
16772
16764
  };
16773
16765
  return renderChildren(0, 0);
16774
16766
  }, [props2.children]);
16775
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16776
- children: /* @__PURE__ */ jsx38(Sequence, {
16777
- layout: "none",
16778
- name: "<Series>",
16779
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16780
- ...props2,
16767
+ return /* @__PURE__ */ jsx38(Sequence, {
16768
+ layout: "none",
16769
+ name: "<Series>",
16770
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16771
+ ...props2,
16772
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16781
16773
  children: childrenValue
16782
16774
  })
16783
16775
  });
@@ -2140,49 +2140,32 @@ var cValues = [
2140
2140
  0.0123412297999872
2141
2141
  ]
2142
2142
  ];
2143
- var binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
2144
2143
  var cubicPoint = (xs, ys, t) => {
2145
2144
  const x = (1 - t) * (1 - t) * (1 - t) * xs[0] + 3 * (1 - t) * (1 - t) * t * xs[1] + 3 * (1 - t) * t * t * xs[2] + t * t * t * xs[3];
2146
2145
  const y = (1 - t) * (1 - t) * (1 - t) * ys[0] + 3 * (1 - t) * (1 - t) * t * ys[1] + 3 * (1 - t) * t * t * ys[2] + t * t * t * ys[3];
2147
2146
  return { x, y };
2148
2147
  };
2149
- var getDerivative = (derivative, t, vs) => {
2150
- const n = vs.length - 1;
2151
- let value;
2152
- if (n === 0) {
2153
- return 0;
2154
- }
2155
- if (derivative === 0) {
2156
- value = 0;
2157
- for (let k = 0;k <= n; k++) {
2158
- value += binomialCoefficients[n][k] * (1 - t) ** (n - k) * t ** k * vs[k];
2159
- }
2160
- return value;
2161
- }
2162
- const _vs = new Array(n);
2163
- for (let k = 0;k < n; k++) {
2164
- _vs[k] = n * (vs[k + 1] - vs[k]);
2165
- }
2166
- return getDerivative(derivative - 1, t, _vs);
2167
- };
2168
- function bFunc(xs, ys, t) {
2169
- const xbase = getDerivative(1, t, xs);
2170
- const ybase = getDerivative(1, t, ys);
2171
- const combined = xbase * xbase + ybase * ybase;
2172
- return Math.sqrt(combined);
2173
- }
2174
2148
  var getCubicArcLength = ({
2175
2149
  sx,
2176
2150
  sy,
2177
2151
  t
2178
2152
  }) => {
2153
+ const v0x = 3 * (sx[1] - sx[0]);
2154
+ const v1x = 3 * (sx[2] - sx[1]);
2155
+ const v2x = 3 * (sx[3] - sx[2]);
2156
+ const v0y = 3 * (sy[1] - sy[0]);
2157
+ const v1y = 3 * (sy[2] - sy[1]);
2158
+ const v2y = 3 * (sy[3] - sy[2]);
2179
2159
  let correctedT;
2180
2160
  const n = 20;
2181
2161
  const z = t / 2;
2182
2162
  let sum = 0;
2183
2163
  for (let i = 0;i < n; i++) {
2184
2164
  correctedT = z * tValues[n][i] + z;
2185
- sum += cValues[n][i] * bFunc(sx, sy, correctedT);
2165
+ const mt = 1 - correctedT;
2166
+ const xbase = mt * mt * v0x + 2 * mt * correctedT * v1x + correctedT * correctedT * v2x;
2167
+ const ybase = mt * mt * v0y + 2 * mt * correctedT * v1y + correctedT * correctedT * v2y;
2168
+ sum += cValues[n][i] * Math.sqrt(xbase * xbase + ybase * ybase);
2186
2169
  }
2187
2170
  return z * sum;
2188
2171
  };
@@ -2192,8 +2175,17 @@ var quadraticPoint = (xs, ys, t) => {
2192
2175
  return { x, y };
2193
2176
  };
2194
2177
  var cubicDerivative = (xs, ys, t) => {
2195
- const derivative = quadraticPoint([3 * (xs[1] - xs[0]), 3 * (xs[2] - xs[1]), 3 * (xs[3] - xs[2])], [3 * (ys[1] - ys[0]), 3 * (ys[2] - ys[1]), 3 * (ys[3] - ys[2])], t);
2196
- return derivative;
2178
+ const v0x = 3 * (xs[1] - xs[0]);
2179
+ const v1x = 3 * (xs[2] - xs[1]);
2180
+ const v2x = 3 * (xs[3] - xs[2]);
2181
+ const v0y = 3 * (ys[1] - ys[0]);
2182
+ const v1y = 3 * (ys[2] - ys[1]);
2183
+ const v2y = 3 * (ys[3] - ys[2]);
2184
+ const mt = 1 - t;
2185
+ return {
2186
+ x: mt * mt * v0x + 2 * mt * t * v1x + t * t * v2x,
2187
+ y: mt * mt * v0y + 2 * mt * t * v1y + t * t * v2y
2188
+ };
2197
2189
  };
2198
2190
  var getQuadraticArcLength = (xs, ys, t) => {
2199
2191
  if (t === undefined) {
@@ -5594,7 +5586,7 @@ var getSingleChildComponent = (children) => {
5594
5586
  }
5595
5587
  return child.type;
5596
5588
  };
5597
- var VERSION = "4.0.503";
5589
+ var VERSION = "4.0.504";
5598
5590
  var checkMultipleRemotionVersions = () => {
5599
5591
  if (typeof globalThis === "undefined") {
5600
5592
  return;
@@ -16591,12 +16583,12 @@ var SeriesInner = (props2) => {
16591
16583
  };
16592
16584
  return renderChildren(0, 0);
16593
16585
  }, [props2.children]);
16594
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16595
- children: /* @__PURE__ */ jsx38(Sequence, {
16596
- layout: "none",
16597
- name: "<Series>",
16598
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16599
- ...props2,
16586
+ return /* @__PURE__ */ jsx38(Sequence, {
16587
+ layout: "none",
16588
+ name: "<Series>",
16589
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16590
+ ...props2,
16591
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16600
16592
  children: childrenValue
16601
16593
  })
16602
16594
  });
package/dist/templates.js CHANGED
@@ -2140,49 +2140,32 @@ var cValues = [
2140
2140
  0.0123412297999872
2141
2141
  ]
2142
2142
  ];
2143
- var binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
2144
2143
  var cubicPoint = (xs, ys, t) => {
2145
2144
  const x = (1 - t) * (1 - t) * (1 - t) * xs[0] + 3 * (1 - t) * (1 - t) * t * xs[1] + 3 * (1 - t) * t * t * xs[2] + t * t * t * xs[3];
2146
2145
  const y = (1 - t) * (1 - t) * (1 - t) * ys[0] + 3 * (1 - t) * (1 - t) * t * ys[1] + 3 * (1 - t) * t * t * ys[2] + t * t * t * ys[3];
2147
2146
  return { x, y };
2148
2147
  };
2149
- var getDerivative = (derivative, t, vs) => {
2150
- const n = vs.length - 1;
2151
- let value;
2152
- if (n === 0) {
2153
- return 0;
2154
- }
2155
- if (derivative === 0) {
2156
- value = 0;
2157
- for (let k = 0;k <= n; k++) {
2158
- value += binomialCoefficients[n][k] * (1 - t) ** (n - k) * t ** k * vs[k];
2159
- }
2160
- return value;
2161
- }
2162
- const _vs = new Array(n);
2163
- for (let k = 0;k < n; k++) {
2164
- _vs[k] = n * (vs[k + 1] - vs[k]);
2165
- }
2166
- return getDerivative(derivative - 1, t, _vs);
2167
- };
2168
- function bFunc(xs, ys, t) {
2169
- const xbase = getDerivative(1, t, xs);
2170
- const ybase = getDerivative(1, t, ys);
2171
- const combined = xbase * xbase + ybase * ybase;
2172
- return Math.sqrt(combined);
2173
- }
2174
2148
  var getCubicArcLength = ({
2175
2149
  sx,
2176
2150
  sy,
2177
2151
  t
2178
2152
  }) => {
2153
+ const v0x = 3 * (sx[1] - sx[0]);
2154
+ const v1x = 3 * (sx[2] - sx[1]);
2155
+ const v2x = 3 * (sx[3] - sx[2]);
2156
+ const v0y = 3 * (sy[1] - sy[0]);
2157
+ const v1y = 3 * (sy[2] - sy[1]);
2158
+ const v2y = 3 * (sy[3] - sy[2]);
2179
2159
  let correctedT;
2180
2160
  const n = 20;
2181
2161
  const z = t / 2;
2182
2162
  let sum = 0;
2183
2163
  for (let i = 0;i < n; i++) {
2184
2164
  correctedT = z * tValues[n][i] + z;
2185
- sum += cValues[n][i] * bFunc(sx, sy, correctedT);
2165
+ const mt = 1 - correctedT;
2166
+ const xbase = mt * mt * v0x + 2 * mt * correctedT * v1x + correctedT * correctedT * v2x;
2167
+ const ybase = mt * mt * v0y + 2 * mt * correctedT * v1y + correctedT * correctedT * v2y;
2168
+ sum += cValues[n][i] * Math.sqrt(xbase * xbase + ybase * ybase);
2186
2169
  }
2187
2170
  return z * sum;
2188
2171
  };
@@ -2192,8 +2175,17 @@ var quadraticPoint = (xs, ys, t) => {
2192
2175
  return { x, y };
2193
2176
  };
2194
2177
  var cubicDerivative = (xs, ys, t) => {
2195
- const derivative = quadraticPoint([3 * (xs[1] - xs[0]), 3 * (xs[2] - xs[1]), 3 * (xs[3] - xs[2])], [3 * (ys[1] - ys[0]), 3 * (ys[2] - ys[1]), 3 * (ys[3] - ys[2])], t);
2196
- return derivative;
2178
+ const v0x = 3 * (xs[1] - xs[0]);
2179
+ const v1x = 3 * (xs[2] - xs[1]);
2180
+ const v2x = 3 * (xs[3] - xs[2]);
2181
+ const v0y = 3 * (ys[1] - ys[0]);
2182
+ const v1y = 3 * (ys[2] - ys[1]);
2183
+ const v2y = 3 * (ys[3] - ys[2]);
2184
+ const mt = 1 - t;
2185
+ return {
2186
+ x: mt * mt * v0x + 2 * mt * t * v1x + t * t * v2x,
2187
+ y: mt * mt * v0y + 2 * mt * t * v1y + t * t * v2y
2188
+ };
2197
2189
  };
2198
2190
  var getQuadraticArcLength = (xs, ys, t) => {
2199
2191
  if (t === undefined) {
@@ -5594,7 +5586,7 @@ var getSingleChildComponent = (children) => {
5594
5586
  }
5595
5587
  return child.type;
5596
5588
  };
5597
- var VERSION = "4.0.503";
5589
+ var VERSION = "4.0.504";
5598
5590
  var checkMultipleRemotionVersions = () => {
5599
5591
  if (typeof globalThis === "undefined") {
5600
5592
  return;
@@ -16591,12 +16583,12 @@ var SeriesInner = (props2) => {
16591
16583
  };
16592
16584
  return renderChildren(0, 0);
16593
16585
  }, [props2.children]);
16594
- return /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16595
- children: /* @__PURE__ */ jsx38(Sequence, {
16596
- layout: "none",
16597
- name: "<Series>",
16598
- _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16599
- ...props2,
16586
+ return /* @__PURE__ */ jsx38(Sequence, {
16587
+ layout: "none",
16588
+ name: "<Series>",
16589
+ _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series",
16590
+ ...props2,
16591
+ children: /* @__PURE__ */ jsx38(IsInsideSeriesContainer, {
16600
16592
  children: childrenValue
16601
16593
  })
16602
16594
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.503",
3
+ "version": "4.0.504",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,19 +11,19 @@
11
11
  },
12
12
  "type": "module",
13
13
  "dependencies": {
14
- "@remotion/animated-emoji": "4.0.503",
15
- "@remotion/design": "4.0.503",
16
- "@remotion/web-renderer": "4.0.503",
17
- "@remotion/lottie": "4.0.503",
18
- "@remotion/paths": "4.0.503",
19
- "@remotion/player": "4.0.503",
20
- "@remotion/shapes": "4.0.503",
21
- "@remotion/media": "4.0.503",
22
- "@remotion/svg-3d-engine": "4.0.503",
23
- "create-video": "4.0.503",
14
+ "@remotion/animated-emoji": "4.0.504",
15
+ "@remotion/design": "4.0.504",
16
+ "@remotion/web-renderer": "4.0.504",
17
+ "@remotion/lottie": "4.0.504",
18
+ "@remotion/paths": "4.0.504",
19
+ "@remotion/player": "4.0.504",
20
+ "@remotion/shapes": "4.0.504",
21
+ "@remotion/media": "4.0.504",
22
+ "@remotion/svg-3d-engine": "4.0.504",
23
+ "create-video": "4.0.504",
24
24
  "hls.js": "1.5.19",
25
25
  "polished": "4.3.1",
26
- "remotion": "4.0.503",
26
+ "remotion": "4.0.504",
27
27
  "zod": "4.4.3",
28
28
  "@mux/upchunk": "3.5.0",
29
29
  "@vidstack/react": "1.12.13",
@@ -34,7 +34,7 @@
34
34
  "@mediabunny/mp3-encoder": "1.50.8"
35
35
  },
36
36
  "devDependencies": {
37
- "@remotion/eslint-config-internal": "4.0.503",
37
+ "@remotion/eslint-config-internal": "4.0.504",
38
38
  "@eslint/eslintrc": "3.1.0",
39
39
  "@types/react": "19.2.7",
40
40
  "@types/react-dom": "19.2.3",