@remotion/promo-pages 4.0.494 → 4.0.496

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.
@@ -33,7 +33,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
33
33
  });
34
34
 
35
35
  // src/components/homepage/Pricing.tsx
36
- import { useMemo as useMemo52 } from "react";
36
+ import { useMemo as useMemo53 } from "react";
37
37
 
38
38
  // ../design/dist/esm/index.mjs
39
39
  import * as React24 from "react";
@@ -1381,7 +1381,7 @@ var getDefaultConfig = () => {
1381
1381
  var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
1382
1382
 
1383
1383
  // ../design/dist/esm/index.mjs
1384
- import React33, { useEffect as useEffect21, useMemo as useMemo42, useState as useState23 } from "react";
1384
+ import React33, { useEffect as useEffect21, useMemo as useMemo43, useState as useState23 } from "react";
1385
1385
 
1386
1386
  // ../paths/dist/esm/index.mjs
1387
1387
  var cutLInstruction = ({
@@ -4178,9 +4178,9 @@ import React9 from "react";
4178
4178
  import {
4179
4179
  forwardRef as forwardRef3,
4180
4180
  useCallback as useCallback6,
4181
- useContext as useContext17,
4181
+ useContext as useContext18,
4182
4182
  useEffect as useEffect3,
4183
- useMemo as useMemo14,
4183
+ useMemo as useMemo15,
4184
4184
  useRef as useRef6,
4185
4185
  useState as useState5
4186
4186
  } from "react";
@@ -4199,13 +4199,14 @@ import { useContext as useContext11 } from "react";
4199
4199
  import { useContext as useContext13 } from "react";
4200
4200
  import { useContext as useContext12, useMemo as useMemo10 } from "react";
4201
4201
  import { jsx as jsx9 } from "react/jsx-runtime";
4202
- import { createContext as createContext14 } from "react";
4203
4202
  import React12, { useCallback as useCallback5, useMemo as useMemo12, useRef as useRef4, useState as useState3 } from "react";
4204
4203
  import { jsx as jsx10 } from "react/jsx-runtime";
4205
- import React13, { createContext as createContext15 } from "react";
4204
+ import React13, { createContext as createContext14 } from "react";
4206
4205
  import { jsx as jsx11 } from "react/jsx-runtime";
4207
- import React14, { forwardRef as forwardRef2, useContext as useContext16, useMemo as useMemo13, useState as useState4 } from "react";
4208
- import { useContext as useContext15, useRef as useRef5 } from "react";
4206
+ import { useContext as useContext15, useMemo as useMemo13 } from "react";
4207
+ import { createContext as createContext15 } from "react";
4208
+ import React14, { forwardRef as forwardRef2, useContext as useContext17, useMemo as useMemo14, useState as useState4 } from "react";
4209
+ import { useContext as useContext16, useRef as useRef5 } from "react";
4209
4210
  import { createContext as createContext16 } from "react";
4210
4211
  import { jsx as jsx12 } from "react/jsx-runtime";
4211
4212
  import {
@@ -4216,70 +4217,70 @@ import {
4216
4217
  useRef as useRef9,
4217
4218
  useState as useState6
4218
4219
  } from "react";
4219
- import React16, { useCallback as useCallback7, useImperativeHandle, useMemo as useMemo16, useRef as useRef8 } from "react";
4220
- import { useEffect as useEffect4, useMemo as useMemo15, useRef as useRef7 } from "react";
4220
+ import React16, { useCallback as useCallback7, useImperativeHandle, useMemo as useMemo17, useRef as useRef8 } from "react";
4221
+ import { useEffect as useEffect4, useMemo as useMemo16, useRef as useRef7 } from "react";
4221
4222
  import { jsx as jsx13 } from "react/jsx-runtime";
4222
4223
  import { jsx as jsx14 } from "react/jsx-runtime";
4223
- import { useContext as useContext18, useLayoutEffect as useLayoutEffect4, useState as useState8 } from "react";
4224
+ import { useContext as useContext19, useLayoutEffect as useLayoutEffect4, useState as useState8 } from "react";
4224
4225
  import {
4225
4226
  createContext as createContext17,
4226
4227
  useCallback as useCallback8,
4227
4228
  useImperativeHandle as useImperativeHandle3,
4228
4229
  useLayoutEffect as useLayoutEffect3,
4229
- useMemo as useMemo17,
4230
+ useMemo as useMemo18,
4230
4231
  useRef as useRef10,
4231
4232
  useState as useState7
4232
4233
  } from "react";
4233
4234
  import { jsx as jsx15 } from "react/jsx-runtime";
4234
- import { forwardRef as forwardRef7, useCallback as useCallback14, useContext as useContext30 } from "react";
4235
- import React17, { createContext as createContext18, useMemo as useMemo18 } from "react";
4235
+ import { forwardRef as forwardRef7, useCallback as useCallback14, useContext as useContext31 } from "react";
4236
+ import React17, { createContext as createContext18, useMemo as useMemo19 } from "react";
4236
4237
  import { jsx as jsx16 } from "react/jsx-runtime";
4237
- import { useContext as useContext19 } from "react";
4238
+ import { useContext as useContext20 } from "react";
4238
4239
  import { createContext as createContext19, useEffect as useEffect6, useState as useState9 } from "react";
4239
4240
  import { jsx as jsx17 } from "react/jsx-runtime";
4240
- import { createContext as createContext20, useMemo as useMemo19, useReducer } from "react";
4241
+ import { createContext as createContext20, useMemo as useMemo20, useReducer } from "react";
4241
4242
  import { jsx as jsx18 } from "react/jsx-runtime";
4242
4243
  import { useCallback as useCallback13 } from "react";
4243
4244
  import React23, {
4244
4245
  forwardRef as forwardRef5,
4245
- useContext as useContext28,
4246
+ useContext as useContext29,
4246
4247
  useEffect as useEffect14,
4247
4248
  useImperativeHandle as useImperativeHandle4,
4248
- useMemo as useMemo27,
4249
+ useMemo as useMemo28,
4249
4250
  useRef as useRef19,
4250
4251
  useState as useState14
4251
4252
  } from "react";
4252
- import { useContext as useContext21, useLayoutEffect as useLayoutEffect5, useRef as useRef14 } from "react";
4253
+ import { useContext as useContext22, useLayoutEffect as useLayoutEffect5, useRef as useRef14 } from "react";
4253
4254
  import React20, {
4254
4255
  createContext as createContext21,
4255
4256
  createRef as createRef2,
4256
4257
  useCallback as useCallback9,
4257
- useContext as useContext20,
4258
+ useContext as useContext21,
4258
4259
  useEffect as useEffect7,
4259
- useMemo as useMemo21,
4260
+ useMemo as useMemo22,
4260
4261
  useRef as useRef12,
4261
4262
  useState as useState10
4262
4263
  } from "react";
4263
- import { useMemo as useMemo20, useRef as useRef11 } from "react";
4264
+ import { useMemo as useMemo21, useRef as useRef11 } from "react";
4264
4265
  import { jsx as jsx19, jsxs as jsxs2 } from "react/jsx-runtime";
4265
4266
  import { useRef as useRef13 } from "react";
4266
- import { useContext as useContext23, useEffect as useEffect8, useMemo as useMemo22, useState as useState11 } from "react";
4267
- import { useContext as useContext22 } from "react";
4267
+ import { useContext as useContext24, useEffect as useEffect8, useMemo as useMemo23, useState as useState11 } from "react";
4268
+ import { useContext as useContext23 } from "react";
4268
4269
  import {
4269
4270
  useCallback as useCallback12,
4270
- useContext as useContext26,
4271
+ useContext as useContext27,
4271
4272
  useEffect as useEffect12,
4272
4273
  useLayoutEffect as useLayoutEffect7,
4273
4274
  useRef as useRef18
4274
4275
  } from "react";
4275
- import { useCallback as useCallback11, useMemo as useMemo25, useRef as useRef16 } from "react";
4276
- import { useContext as useContext25, useMemo as useMemo24 } from "react";
4276
+ import { useCallback as useCallback11, useMemo as useMemo26, useRef as useRef16 } from "react";
4277
+ import { useContext as useContext26, useMemo as useMemo25 } from "react";
4277
4278
  import React21, {
4278
4279
  useCallback as useCallback10,
4279
- useContext as useContext24,
4280
+ useContext as useContext25,
4280
4281
  useEffect as useEffect9,
4281
4282
  useLayoutEffect as useLayoutEffect6,
4282
- useMemo as useMemo23,
4283
+ useMemo as useMemo24,
4283
4284
  useRef as useRef15,
4284
4285
  useState as useState12
4285
4286
  } from "react";
@@ -4288,15 +4289,15 @@ import React22 from "react";
4288
4289
  import { useEffect as useEffect10, useState as useState13 } from "react";
4289
4290
  import { useEffect as useEffect11, useRef as useRef17 } from "react";
4290
4291
  import { useEffect as useEffect13 } from "react";
4291
- import { createContext as createContext22, useContext as useContext27, useMemo as useMemo26 } from "react";
4292
+ import { createContext as createContext22, useContext as useContext28, useMemo as useMemo27 } from "react";
4292
4293
  import { jsx as jsx21 } from "react/jsx-runtime";
4293
4294
  import {
4294
4295
  forwardRef as forwardRef6,
4295
- useContext as useContext29,
4296
+ useContext as useContext30,
4296
4297
  useEffect as useEffect15,
4297
4298
  useImperativeHandle as useImperativeHandle5,
4298
4299
  useLayoutEffect as useLayoutEffect8,
4299
- useMemo as useMemo28,
4300
+ useMemo as useMemo29,
4300
4301
  useRef as useRef20
4301
4302
  } from "react";
4302
4303
  import { jsx as jsx22 } from "react/jsx-runtime";
@@ -4306,7 +4307,7 @@ import {
4306
4307
  useCallback as useCallback15,
4307
4308
  useEffect as useEffect16,
4308
4309
  useImperativeHandle as useImperativeHandle6,
4309
- useMemo as useMemo29,
4310
+ useMemo as useMemo30,
4310
4311
  useRef as useRef21,
4311
4312
  useState as useState15
4312
4313
  } from "react";
@@ -4315,19 +4316,19 @@ import {
4315
4316
  createContext as createContext23,
4316
4317
  forwardRef as forwardRef9,
4317
4318
  useCallback as useCallback16,
4318
- useContext as useContext31,
4319
+ useContext as useContext32,
4319
4320
  useLayoutEffect as useLayoutEffect9,
4320
- useMemo as useMemo30,
4321
+ useMemo as useMemo31,
4321
4322
  useRef as useRef22
4322
4323
  } from "react";
4323
4324
  import { jsx as jsx25 } from "react/jsx-runtime";
4324
4325
  import {
4325
4326
  forwardRef as forwardRef10,
4326
4327
  useCallback as useCallback17,
4327
- useContext as useContext32,
4328
+ useContext as useContext33,
4328
4329
  useImperativeHandle as useImperativeHandle7,
4329
4330
  useLayoutEffect as useLayoutEffect10,
4330
- useMemo as useMemo31,
4331
+ useMemo as useMemo32,
4331
4332
  useRef as useRef23,
4332
4333
  useState as useState16
4333
4334
  } from "react";
@@ -4336,7 +4337,7 @@ import { forwardRef as forwardRef11, useCallback as useCallback18, useState as u
4336
4337
  import { jsx as jsx27 } from "react/jsx-runtime";
4337
4338
  import {
4338
4339
  useCallback as useCallback19,
4339
- useContext as useContext33,
4340
+ useContext as useContext34,
4340
4341
  useLayoutEffect as useLayoutEffect11,
4341
4342
  useRef as useRef24,
4342
4343
  useState as useState18
@@ -4349,59 +4350,59 @@ import React31 from "react";
4349
4350
  import {
4350
4351
  useCallback as useCallback21,
4351
4352
  useImperativeHandle as useImperativeHandle8,
4352
- useMemo as useMemo32,
4353
+ useMemo as useMemo33,
4353
4354
  useRef as useRef26,
4354
4355
  useState as useState19
4355
4356
  } from "react";
4356
4357
  import { jsx as jsx30 } from "react/jsx-runtime";
4357
4358
  import React32 from "react";
4358
- import { useMemo as useMemo34 } from "react";
4359
- import { createContext as createContext24, useContext as useContext34, useMemo as useMemo33 } from "react";
4359
+ import { useMemo as useMemo35 } from "react";
4360
+ import { createContext as createContext24, useContext as useContext35, useMemo as useMemo34 } from "react";
4360
4361
  import { jsx as jsx31 } from "react/jsx-runtime";
4361
4362
  import { jsx as jsx32 } from "react/jsx-runtime";
4362
4363
  import React34 from "react";
4363
4364
  import React35, { createContext as createContext25 } from "react";
4364
- import React36, { useContext as useContext35 } from "react";
4365
+ import React36, { useContext as useContext36 } from "react";
4365
4366
  import { useCallback as useCallback24 } from "react";
4366
4367
  import {
4367
4368
  useCallback as useCallback22,
4368
- useContext as useContext36,
4369
+ useContext as useContext37,
4369
4370
  useEffect as useEffect17,
4370
4371
  useLayoutEffect as useLayoutEffect12,
4371
- useMemo as useMemo35,
4372
+ useMemo as useMemo36,
4372
4373
  useState as useState20
4373
4374
  } from "react";
4374
4375
  import { jsx as jsx33 } from "react/jsx-runtime";
4375
4376
  import React38, {
4376
4377
  forwardRef as forwardRef13,
4377
4378
  useCallback as useCallback23,
4378
- useContext as useContext37,
4379
+ useContext as useContext38,
4379
4380
  useEffect as useEffect19,
4380
4381
  useImperativeHandle as useImperativeHandle9,
4381
- useMemo as useMemo36,
4382
+ useMemo as useMemo37,
4382
4383
  useRef as useRef27,
4383
4384
  useState as useState21
4384
4385
  } from "react";
4385
4386
  import { useEffect as useEffect18 } from "react";
4386
4387
  import { jsx as jsx34 } from "react/jsx-runtime";
4387
4388
  import { jsx as jsx35 } from "react/jsx-runtime";
4388
- import React40, { useMemo as useMemo37 } from "react";
4389
+ import React40, { useMemo as useMemo38 } from "react";
4389
4390
  import { jsx as jsx36 } from "react/jsx-runtime";
4390
4391
  import React42, {
4391
4392
  forwardRef as forwardRef14,
4392
- useMemo as useMemo38
4393
+ useMemo as useMemo39
4393
4394
  } from "react";
4394
4395
  import React41 from "react";
4395
4396
  import { jsx as jsx37, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
4396
4397
  import React43 from "react";
4397
- import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as useContext39 } from "react";
4398
+ import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as useContext40 } from "react";
4398
4399
  import {
4399
4400
  forwardRef as forwardRef15,
4400
- useContext as useContext38,
4401
+ useContext as useContext39,
4401
4402
  useEffect as useEffect20,
4402
4403
  useImperativeHandle as useImperativeHandle10,
4403
4404
  useLayoutEffect as useLayoutEffect13,
4404
- useMemo as useMemo39,
4405
+ useMemo as useMemo40,
4405
4406
  useRef as useRef28
4406
4407
  } from "react";
4407
4408
  import { jsx as jsx38 } from "react/jsx-runtime";
@@ -5261,17 +5262,6 @@ var delayRenderInternal = ({
5261
5262
  scope.remotion_renderReady = false;
5262
5263
  return handle;
5263
5264
  };
5264
- var delayRender = (label2, options) => {
5265
- if (typeof window === "undefined") {
5266
- return Math.random();
5267
- }
5268
- return delayRenderInternal({
5269
- scope: window,
5270
- environment: getRemotionEnvironment(),
5271
- label: label2 ?? null,
5272
- options: options ?? {}
5273
- });
5274
- };
5275
5265
  var continueRenderInternal = ({
5276
5266
  scope,
5277
5267
  handle,
@@ -5592,7 +5582,7 @@ var getSingleChildComponent = (children) => {
5592
5582
  }
5593
5583
  return child.type;
5594
5584
  };
5595
- var VERSION = "4.0.494";
5585
+ var VERSION = "4.0.496";
5596
5586
  var checkMultipleRemotionVersions = () => {
5597
5587
  if (typeof globalThis === "undefined") {
5598
5588
  return;
@@ -6085,15 +6075,19 @@ var premountSchema = {
6085
6075
  description: "Premount For",
6086
6076
  min: 0,
6087
6077
  step: 1,
6088
- hiddenFromList: false
6078
+ hiddenFromList: false,
6079
+ keyframable: false
6089
6080
  },
6090
6081
  postmountFor: {
6091
6082
  type: "number",
6092
6083
  default: 0,
6093
6084
  min: 0,
6094
6085
  step: 1,
6095
- hiddenFromList: true
6096
- },
6086
+ hiddenFromList: true,
6087
+ keyframable: false
6088
+ }
6089
+ };
6090
+ var premountStyleSchema = {
6097
6091
  styleWhilePremounted: {
6098
6092
  type: "hidden"
6099
6093
  },
@@ -6101,10 +6095,13 @@ var premountSchema = {
6101
6095
  type: "hidden"
6102
6096
  }
6103
6097
  };
6104
- var sequencePremountSchema = premountSchema;
6098
+ var sequencePremountSchema = {
6099
+ ...premountSchema,
6100
+ ...premountStyleSchema
6101
+ };
6105
6102
  var sequenceStyleSchema = {
6106
6103
  ...transformSchema,
6107
- ...premountSchema
6104
+ ...sequencePremountSchema
6108
6105
  };
6109
6106
  var hiddenField = {
6110
6107
  type: "boolean",
@@ -6189,9 +6186,6 @@ var sequenceSchemaDefaultLayoutNone = {
6189
6186
  default: "none"
6190
6187
  }
6191
6188
  };
6192
- var PremountContext = createContext14({
6193
- premountFramesRemaining: 0
6194
- });
6195
6189
  var SequenceManager = React12.createContext({
6196
6190
  registerSequence: () => {
6197
6191
  throw new Error("SequenceManagerContext not initialized");
@@ -6371,7 +6365,7 @@ var SequenceManagerProvider = ({ children }) => {
6371
6365
  })
6372
6366
  });
6373
6367
  };
6374
- var IsInsideSeriesContext = createContext15(false);
6368
+ var IsInsideSeriesContext = createContext14(false);
6375
6369
  var IsInsideSeriesContainer = ({ children }) => {
6376
6370
  return /* @__PURE__ */ jsx11(IsInsideSeriesContext.Provider, {
6377
6371
  value: true,
@@ -6390,7 +6384,61 @@ var useRequireToBeInsideSeries = () => {
6390
6384
  throw new Error("This component must be inside a <Series /> component.");
6391
6385
  }
6392
6386
  };
6387
+ var PremountContext = createContext15({
6388
+ premountFramesRemaining: 0
6389
+ });
6393
6390
  var ENABLE_V5_BREAKING_CHANGES = false;
6391
+ var usePremounting = ({
6392
+ from,
6393
+ durationInFrames,
6394
+ premountFor,
6395
+ postmountFor,
6396
+ style,
6397
+ styleWhilePremounted,
6398
+ styleWhilePostmounted,
6399
+ hideWhilePremounted
6400
+ }) => {
6401
+ const parentPremountContext = useContext15(PremountContext);
6402
+ const frame = useCurrentFrame() - parentPremountContext.premountFramesRemaining;
6403
+ const environment = useRemotionEnvironment();
6404
+ const { fps } = useVideoConfig();
6405
+ const effectivePremountFor = ENABLE_V5_BREAKING_CHANGES ? premountFor ?? fps : premountFor ?? 0;
6406
+ const effectivePostmountFor = postmountFor ?? 0;
6407
+ const endThreshold = Math.ceil(from + durationInFrames - 1);
6408
+ const premountingActive = !environment.isRendering && frame < from && frame >= from - effectivePremountFor;
6409
+ const postmountingActive = !environment.isRendering && frame > endThreshold && frame <= endThreshold + effectivePostmountFor;
6410
+ const isPremountingOrPostmounting = premountingActive || postmountingActive;
6411
+ const freezeFrame = premountingActive ? from : postmountingActive ? from + durationInFrames - 1 : 0;
6412
+ const premountingStyle = useMemo13(() => {
6413
+ if (!isPremountingOrPostmounting) {
6414
+ return style;
6415
+ }
6416
+ return {
6417
+ ...style,
6418
+ ...hideWhilePremounted === "opacity" ? { opacity: 0 } : { display: "none" },
6419
+ pointerEvents: "none",
6420
+ ...premountingActive ? styleWhilePremounted : {},
6421
+ ...postmountingActive ? styleWhilePostmounted : {}
6422
+ };
6423
+ }, [
6424
+ isPremountingOrPostmounting,
6425
+ hideWhilePremounted,
6426
+ postmountingActive,
6427
+ premountingActive,
6428
+ style,
6429
+ styleWhilePostmounted,
6430
+ styleWhilePremounted
6431
+ ]);
6432
+ return {
6433
+ effectivePremountFor,
6434
+ effectivePostmountFor,
6435
+ premountingActive,
6436
+ postmountingActive,
6437
+ isPremountingOrPostmounting,
6438
+ freezeFrame,
6439
+ premountingStyle
6440
+ };
6441
+ };
6394
6442
  var deleteNestedKey = (obj, keysToRemove) => {
6395
6443
  for (const key of keysToRemove) {
6396
6444
  const parts = key.split(".");
@@ -8214,10 +8262,10 @@ var useMemoizedEffects = ({
8214
8262
  overrideId
8215
8263
  }) => {
8216
8264
  const previousRef = useRef5(null);
8217
- const { propStatuses } = useContext15(VisualModePropStatusesContext);
8218
- const { getEffectDragOverrides } = useContext15(VisualModeDragOverridesContext);
8265
+ const { propStatuses } = useContext16(VisualModePropStatusesContext);
8266
+ const { getEffectDragOverrides } = useContext16(VisualModeDragOverridesContext);
8219
8267
  const frame = useCurrentFrame();
8220
- const { overrideIdToNodePathMappings } = useContext15(OverrideIdsToNodePathsGettersContext);
8268
+ const { overrideIdToNodePathMappings } = useContext16(OverrideIdsToNodePathsGettersContext);
8221
8269
  const previous = previousRef.current;
8222
8270
  const nodePath = overrideId ? overrideIdToNodePathMappings[overrideId] ?? null : null;
8223
8271
  const resolved = effects.map((descriptor, index) => {
@@ -8561,9 +8609,9 @@ var withInteractivitySchema = ({
8561
8609
  ref
8562
8610
  });
8563
8611
  }
8564
- const { propStatuses } = useContext16(VisualModePropStatusesContext);
8565
- const { getDragOverrides } = useContext16(VisualModeDragOverridesContext);
8566
- const nodePathMapping = useContext16(OverrideIdsToNodePathsGettersContext);
8612
+ const { propStatuses } = useContext17(VisualModePropStatusesContext);
8613
+ const { getDragOverrides } = useContext17(VisualModeDragOverridesContext);
8614
+ const nodePathMapping = useContext17(OverrideIdsToNodePathsGettersContext);
8567
8615
  const frame = useCurrentFrame();
8568
8616
  if (props.controls) {
8569
8617
  return React14.createElement(Component, {
@@ -8590,8 +8638,8 @@ var withInteractivitySchema = ({
8590
8638
  key,
8591
8639
  props
8592
8640
  }));
8593
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8594
- const controls = useMemo13(() => {
8641
+ const currentRuntimeValueDotNotation = useMemo14(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8642
+ const controls = useMemo14(() => {
8595
8643
  return {
8596
8644
  schema: schemaWithSequenceName,
8597
8645
  currentRuntimeValueDotNotation,
@@ -8601,7 +8649,7 @@ var withInteractivitySchema = ({
8601
8649
  componentName
8602
8650
  };
8603
8651
  }, [currentRuntimeValueDotNotation, overrideId]);
8604
- const { merged: valuesDotNotation, propsToDelete } = useMemo13(() => {
8652
+ const { merged: valuesDotNotation, propsToDelete } = useMemo14(() => {
8605
8653
  return computeEffectiveSchemaValuesDotNotation({
8606
8654
  schema: schemaWithSequenceName,
8607
8655
  currentValue: currentRuntimeValueDotNotation,
@@ -8659,7 +8707,7 @@ var RegularSequenceRefForwardingFunction = ({
8659
8707
  }, ref) => {
8660
8708
  const { layout = "absolute-fill" } = other;
8661
8709
  const [id] = useState5(() => String(Math.random()));
8662
- const parentSequence = useContext17(SequenceContext);
8710
+ const parentSequence = useContext18(SequenceContext);
8663
8711
  const { rootId } = useTimelineContext();
8664
8712
  const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
8665
8713
  const nonce = useNonce();
@@ -8710,13 +8758,13 @@ var RegularSequenceRefForwardingFunction = ({
8710
8758
  const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
8711
8759
  const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
8712
8760
  const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
8713
- const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
8761
+ const { registerSequence, unregisterSequence } = useContext18(SequenceManager);
8714
8762
  const wrapperRefForOutline = useRef6(null);
8715
8763
  const refForOutline = other.layout === "none" ? passedRefForOutline ?? null : passedRefForOutline ?? wrapperRefForOutline;
8716
- const premounting = useMemo14(() => {
8764
+ const premounting = useMemo15(() => {
8717
8765
  return parentSequence?.premounting || Boolean(other._remotionInternalIsPremounting);
8718
8766
  }, [other._remotionInternalIsPremounting, parentSequence?.premounting]);
8719
- const postmounting = useMemo14(() => {
8767
+ const postmounting = useMemo15(() => {
8720
8768
  return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
8721
8769
  }, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
8722
8770
  const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
@@ -8724,7 +8772,7 @@ var RegularSequenceRefForwardingFunction = ({
8724
8772
  const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
8725
8773
  const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
8726
8774
  const cumulatedNegativeFrom = currentSequenceStart - firstFrame;
8727
- const contextValue = useMemo14(() => {
8775
+ const contextValue = useMemo15(() => {
8728
8776
  return {
8729
8777
  absoluteFrom,
8730
8778
  cumulatedFrom,
@@ -8755,12 +8803,12 @@ var RegularSequenceRefForwardingFunction = ({
8755
8803
  postmountDisplay,
8756
8804
  cumulatedNegativeFrom
8757
8805
  ]);
8758
- const timelineClipName = useMemo14(() => {
8806
+ const timelineClipName = useMemo15(() => {
8759
8807
  return name ?? "";
8760
8808
  }, [name]);
8761
8809
  const resolvedDocumentationLink = documentationLink ?? "https://www.remotion.dev/docs/sequence";
8762
8810
  const env = useRemotionEnvironment();
8763
- const isInsideSeries = useContext17(IsInsideSeriesContext);
8811
+ const isInsideSeries = useContext18(IsInsideSeriesContext);
8764
8812
  const inheritedStack = other?.stack ?? null;
8765
8813
  const stackRef = useRef6(null);
8766
8814
  stackRef.current = stack ?? inheritedStack;
@@ -8908,7 +8956,7 @@ var RegularSequenceRefForwardingFunction = ({
8908
8956
  ref.current = node;
8909
8957
  }
8910
8958
  }, [ref]);
8911
- const defaultStyle = useMemo14(() => {
8959
+ const defaultStyle = useMemo15(() => {
8912
8960
  return {
8913
8961
  flexDirection: undefined,
8914
8962
  ...width ? { width } : {},
@@ -8934,8 +8982,6 @@ var RegularSequenceRefForwardingFunction = ({
8934
8982
  };
8935
8983
  var RegularSequence = forwardRef3(RegularSequenceRefForwardingFunction);
8936
8984
  var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8937
- const parentPremountContext = useContext17(PremountContext);
8938
- const frame = useCurrentFrame() - parentPremountContext.premountFramesRemaining;
8939
8985
  if (props.layout === "none") {
8940
8986
  throw new Error('`<Sequence>` with `premountFor` and `postmountFor` props does not support layout="none"');
8941
8987
  }
@@ -8949,34 +8995,30 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8949
8995
  styleWhilePostmounted,
8950
8996
  ...otherProps
8951
8997
  } = props;
8952
- const endThreshold = Math.ceil(from + durationInFrames - 1);
8953
- const premountingActive = frame < from && frame >= from - premountFor;
8954
- const postmountingActive = frame > endThreshold && frame <= endThreshold + postmountFor;
8955
- const freezeFrame = premountingActive ? from : postmountingActive ? from + durationInFrames - 1 : 0;
8956
- const isFreezingActive = premountingActive || postmountingActive;
8957
- const style = useMemo14(() => {
8958
- return {
8959
- ...passedStyle,
8960
- opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
8961
- pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
8962
- ...premountingActive ? styleWhilePremounted : {},
8963
- ...postmountingActive ? styleWhilePostmounted : {}
8964
- };
8965
- }, [
8966
- passedStyle,
8967
- premountingActive,
8998
+ const {
8999
+ freezeFrame,
9000
+ isPremountingOrPostmounting,
8968
9001
  postmountingActive,
8969
- styleWhilePremounted,
8970
- styleWhilePostmounted
8971
- ]);
9002
+ premountingActive,
9003
+ premountingStyle
9004
+ } = usePremounting({
9005
+ from,
9006
+ durationInFrames,
9007
+ premountFor,
9008
+ postmountFor,
9009
+ style: passedStyle ?? null,
9010
+ styleWhilePremounted: styleWhilePremounted ?? null,
9011
+ styleWhilePostmounted: styleWhilePostmounted ?? null,
9012
+ hideWhilePremounted: "opacity"
9013
+ });
8972
9014
  return /* @__PURE__ */ jsx12(Freeze, {
8973
9015
  frame: freezeFrame,
8974
- active: isFreezingActive,
9016
+ active: isPremountingOrPostmounting,
8975
9017
  children: /* @__PURE__ */ jsx12(SequenceInner, {
8976
9018
  ref,
8977
9019
  from,
8978
9020
  durationInFrames,
8979
- style,
9021
+ style: premountingStyle ?? undefined,
8980
9022
  _remotionInternalPremountDisplay: premountFor,
8981
9023
  _remotionInternalPostmountDisplay: postmountFor,
8982
9024
  _remotionInternalIsPremounting: premountingActive,
@@ -9312,7 +9354,7 @@ var useEffectChainState = () => {
9312
9354
  }
9313
9355
  };
9314
9356
  }, []);
9315
- return useMemo15(() => ({
9357
+ return useMemo16(() => ({
9316
9358
  get: (width, height) => {
9317
9359
  if (!sizeRef.current || sizeRef.current.width !== width || sizeRef.current.height !== height) {
9318
9360
  if (chainStateRef.current) {
@@ -9328,7 +9370,7 @@ var useEffectChainState = () => {
9328
9370
  var CanvasRefForwardingFunction = ({ width, height, fit, className, style, effects, ...props }, ref) => {
9329
9371
  const canvasRef = useRef8(null);
9330
9372
  const chainState = useEffectChainState();
9331
- const sourceCanvas = useMemo16(() => {
9373
+ const sourceCanvas = useMemo17(() => {
9332
9374
  if (typeof document === "undefined") {
9333
9375
  return null;
9334
9376
  }
@@ -9885,7 +9927,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
9885
9927
  };
9886
9928
  }
9887
9929
  }, []);
9888
- const contextValue = useMemo17(() => {
9930
+ const contextValue = useMemo18(() => {
9889
9931
  return {
9890
9932
  registerRenderAsset,
9891
9933
  unregisterRenderAsset,
@@ -9899,7 +9941,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
9899
9941
  };
9900
9942
  var ArtifactThumbnail = Symbol("Thumbnail");
9901
9943
  var Artifact = ({ filename, content, downloadBehavior }) => {
9902
- const { registerRenderAsset, unregisterRenderAsset } = useContext18(RenderAssetManager);
9944
+ const { registerRenderAsset, unregisterRenderAsset } = useContext19(RenderAssetManager);
9903
9945
  const env = useRemotionEnvironment();
9904
9946
  const frame = useCurrentFrame();
9905
9947
  const [id] = useState8(() => {
@@ -10014,14 +10056,14 @@ var Loop = ({
10014
10056
  const iteration = Math.floor(currentFrame / durationInFrames);
10015
10057
  const start = iteration * durationInFrames;
10016
10058
  const from = Math.min(start, maxFrame);
10017
- const loopDisplay = useMemo18(() => {
10059
+ const loopDisplay = useMemo19(() => {
10018
10060
  return {
10019
10061
  numberOfTimes: Math.min(compDuration / durationInFrames, times),
10020
10062
  startOffset: -from,
10021
10063
  durationInFrames
10022
10064
  };
10023
10065
  }, [compDuration, durationInFrames, from, times]);
10024
- const loopContext = useMemo18(() => {
10066
+ const loopContext = useMemo19(() => {
10025
10067
  return {
10026
10068
  iteration: Math.floor(currentFrame / durationInFrames),
10027
10069
  durationInFrames
@@ -10090,7 +10132,7 @@ var getSrcWithoutHash = (src) => {
10090
10132
  return src.slice(0, hashIndex);
10091
10133
  };
10092
10134
  var usePreload = (src) => {
10093
- const preloads2 = useContext19(PreloadContext);
10135
+ const preloads2 = useContext20(PreloadContext);
10094
10136
  const hashFragmentIndex = removeAndGetHashFragment(src);
10095
10137
  const withoutHashFragment = getSrcWithoutHash(src);
10096
10138
  if (!preloads2[withoutHashFragment]) {
@@ -10393,7 +10435,7 @@ var DurationsContext = createContext20({
10393
10435
  });
10394
10436
  var DurationsContextProvider = ({ children }) => {
10395
10437
  const [durations, setDurations] = useReducer(durationReducer, {});
10396
- const value = useMemo19(() => {
10438
+ const value = useMemo20(() => {
10397
10439
  return {
10398
10440
  durations,
10399
10441
  setDurations
@@ -10532,7 +10574,7 @@ var useSingletonAudioContext = ({
10532
10574
  if (sampleRate !== initialSampleRate.current) {
10533
10575
  throw new Error(`Changing the AudioContext sample rate dynamically is not supported. The sample rate was initialized with ${initialSampleRate.current} Hz, but ${sampleRate} Hz was passed later.`);
10534
10576
  }
10535
- const context = useMemo20(() => {
10577
+ const context = useMemo21(() => {
10536
10578
  if (env.isRendering) {
10537
10579
  return null;
10538
10580
  }
@@ -10666,9 +10708,9 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
10666
10708
  });
10667
10709
  const audioContextIsPlayingEventually = useRef12(false);
10668
10710
  const isResuming = useRef12(null);
10669
- const audioSyncAnchor = useMemo21(() => ({ value: 0 }), []);
10711
+ const audioSyncAnchor = useMemo22(() => ({ value: 0 }), []);
10670
10712
  const audioSyncAnchorListeners = useRef12([]);
10671
- const audioSyncAnchorEmitter = useMemo21(() => {
10713
+ const audioSyncAnchorEmitter = useMemo22(() => {
10672
10714
  return {
10673
10715
  dispatch: (event) => {
10674
10716
  audioSyncAnchorListeners.current.forEach((l) => l(event));
@@ -10688,7 +10730,7 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
10688
10730
  const unscheduleAudioNode = useCallback9((node) => {
10689
10731
  nodesToResume.current.delete(node);
10690
10732
  }, []);
10691
- const scheduleAudioNode = useMemo21(() => {
10733
+ const scheduleAudioNode = useMemo22(() => {
10692
10734
  return ({
10693
10735
  node,
10694
10736
  mediaTimestamp,
@@ -10780,7 +10822,7 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
10780
10822
  audioContextIsPlayingEventually.current = false;
10781
10823
  return ctxAndGain.suspend();
10782
10824
  }, [ctxAndGain]);
10783
- const audioContextValue = useMemo21(() => {
10825
+ const audioContextValue = useMemo22(() => {
10784
10826
  return {
10785
10827
  audioContext: ctxAndGain?.audioContext ?? null,
10786
10828
  getAudioContextState: () => ctxAndGain?.getState() ?? null,
@@ -10817,10 +10859,10 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
10817
10859
  const logLevel = useLogLevel();
10818
10860
  const mountTime = useMountTime();
10819
10861
  const env = useRemotionEnvironment();
10820
- const audioCtx = useContext20(SharedAudioContext);
10862
+ const audioCtx = useContext21(SharedAudioContext);
10821
10863
  const audioContext = audioCtx?.audioContext ?? null;
10822
10864
  const resume = audioCtx?.resume;
10823
- const refs = useMemo21(() => {
10865
+ const refs = useMemo22(() => {
10824
10866
  return new Array(numberOfAudioTags).fill(true).map(() => {
10825
10867
  const ref = createRef2();
10826
10868
  return {
@@ -10959,7 +11001,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
10959
11001
  });
10960
11002
  resume?.();
10961
11003
  }, [logLevel, mountTime, refs, env.isPlayer, resume]);
10962
- const audioTagsValue = useMemo21(() => {
11004
+ const audioTagsValue = useMemo22(() => {
10963
11005
  return {
10964
11006
  registerAudio,
10965
11007
  unregisterAudio,
@@ -10974,7 +11016,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
10974
11016
  unregisterAudio,
10975
11017
  updateAudio
10976
11018
  ]);
10977
- const sharedAudioTagElements = useMemo21(() => {
11019
+ const sharedAudioTagElements = useMemo22(() => {
10978
11020
  return refs.map(({ id, ref }) => {
10979
11021
  return /* @__PURE__ */ jsx19("audio", {
10980
11022
  ref,
@@ -10997,8 +11039,8 @@ var useSharedAudio = ({
10997
11039
  premounting,
10998
11040
  postmounting
10999
11041
  }) => {
11000
- const audioCtx = useContext20(SharedAudioContext);
11001
- const tagsCtx = useContext20(SharedAudioTagsContext);
11042
+ const audioCtx = useContext21(SharedAudioContext);
11043
+ const tagsCtx = useContext21(SharedAudioTagsContext);
11002
11044
  const [elem] = useState10(() => {
11003
11045
  if (tagsCtx && tagsCtx.numberOfAudioTags > 0) {
11004
11046
  return tagsCtx.registerAudio({ aud, audioId, premounting, postmounting });
@@ -11177,7 +11219,7 @@ var useVolume = ({
11177
11219
  const audioStuffRef = useRef14(null);
11178
11220
  const currentVolumeRef = useRef14(volume);
11179
11221
  currentVolumeRef.current = volume;
11180
- const sharedAudioContext = useContext21(SharedAudioContext);
11222
+ const sharedAudioContext = useContext22(SharedAudioContext);
11181
11223
  if (!sharedAudioContext) {
11182
11224
  throw new Error("useAmplification must be used within a SharedAudioContext");
11183
11225
  }
@@ -11242,7 +11284,7 @@ var useVolume = ({
11242
11284
  return audioStuffRef;
11243
11285
  };
11244
11286
  var useMediaStartsAt = () => {
11245
- const parentSequence = useContext22(SequenceContext);
11287
+ const parentSequence = useContext23(SequenceContext);
11246
11288
  return parentSequence?.cumulatedNegativeFrom ?? 0;
11247
11289
  };
11248
11290
  var useFrameForVolumeProp = (behavior) => {
@@ -11331,7 +11373,7 @@ var useBasicMediaInTimeline = ({
11331
11373
  if (!src) {
11332
11374
  throw new Error("No src passed");
11333
11375
  }
11334
- const parentSequence = useContext23(SequenceContext);
11376
+ const parentSequence = useContext24(SequenceContext);
11335
11377
  const [initialVolume] = useState11(() => volume);
11336
11378
  const duration = getTimelineDuration({
11337
11379
  compositionDurationInFrames: sequenceDurationInFrames,
@@ -11341,7 +11383,7 @@ var useBasicMediaInTimeline = ({
11341
11383
  parentSequenceDurationInFrames: parentSequence?.durationInFrames ?? null,
11342
11384
  loop
11343
11385
  });
11344
- const volumes = useMemo22(() => {
11386
+ const volumes = useMemo23(() => {
11345
11387
  if (typeof volume === "number") {
11346
11388
  return volume;
11347
11389
  }
@@ -11362,7 +11404,7 @@ var useBasicMediaInTimeline = ({
11362
11404
  const nonce = useNonce();
11363
11405
  const { rootId } = useTimelineContext();
11364
11406
  const startMediaFrom = 0 - mediaStartsAt + (trimBefore ?? 0);
11365
- const memoizedResult = useMemo22(() => {
11407
+ const memoizedResult = useMemo23(() => {
11366
11408
  return {
11367
11409
  volumes,
11368
11410
  duration,
@@ -11403,9 +11445,9 @@ var useMediaInTimeline = ({
11403
11445
  documentationLink,
11404
11446
  refForOutline
11405
11447
  }) => {
11406
- const parentSequence = useContext23(SequenceContext);
11448
+ const parentSequence = useContext24(SequenceContext);
11407
11449
  const startsAt = useMediaStartsAt();
11408
- const { registerSequence, unregisterSequence } = useContext23(SequenceManager);
11450
+ const { registerSequence, unregisterSequence } = useContext24(SequenceManager);
11409
11451
  const { durationInFrames } = useVideoConfig();
11410
11452
  const mediaStartsAt = useMediaStartsAt();
11411
11453
  const { volumes, duration, doesVolumeChange, nonce, rootId, finalDisplayName } = useBasicMediaInTimeline({
@@ -11570,13 +11612,13 @@ var useBufferManager = (logLevel, mountTime) => {
11570
11612
  }
11571
11613
  }, [blocks]);
11572
11614
  }
11573
- return useMemo23(() => {
11615
+ return useMemo24(() => {
11574
11616
  return { addBlock, listenForBuffering, listenForResume, buffering };
11575
11617
  }, [addBlock, buffering, listenForBuffering, listenForResume]);
11576
11618
  };
11577
11619
  var BufferingContextReact = React21.createContext(null);
11578
11620
  var BufferingProvider = ({ children }) => {
11579
- const { logLevel, mountTime } = useContext24(LogLevelContext);
11621
+ const { logLevel, mountTime } = useContext25(LogLevelContext);
11580
11622
  const bufferManager = useBufferManager(logLevel ?? "info", mountTime);
11581
11623
  return /* @__PURE__ */ jsx20(BufferingContextReact.Provider, {
11582
11624
  value: bufferManager,
@@ -11602,10 +11644,10 @@ var useIsPlayerBuffering = (bufferManager) => {
11602
11644
  return isBuffering;
11603
11645
  };
11604
11646
  var useBufferState = () => {
11605
- const buffer = useContext25(BufferingContextReact);
11647
+ const buffer = useContext26(BufferingContextReact);
11606
11648
  const logLevel = useLogLevel();
11607
11649
  const addBlock = buffer ? buffer.addBlock : null;
11608
- return useMemo24(() => ({
11650
+ return useMemo25(() => ({
11609
11651
  delayPlayback: () => {
11610
11652
  if (!addBlock) {
11611
11653
  throw new Error("Tried to enable the buffering state, but a Remotion context was not found. This API can only be called in a component that was passed to the Remotion Player or a <Composition>. Or you might have experienced a version mismatch - run `npx remotion versions` and ensure all packages have the same version. This error is thrown by the buffer state https://remotion.dev/docs/player/buffer-state");
@@ -11713,7 +11755,7 @@ var useBufferUntilFirstFrame = ({
11713
11755
  onVariableFpsVideoDetected,
11714
11756
  pauseWhenBuffering
11715
11757
  ]);
11716
- return useMemo25(() => {
11758
+ return useMemo26(() => {
11717
11759
  return {
11718
11760
  isBuffering: () => bufferingRef.current,
11719
11761
  bufferUntilFirstFrame
@@ -12087,7 +12129,7 @@ var useMediaPlayback = ({
12087
12129
  const frame = useCurrentFrame();
12088
12130
  const absoluteFrame = useTimelinePosition();
12089
12131
  const [playing] = usePlayingState();
12090
- const buffering = useContext26(BufferingContextReact);
12132
+ const buffering = useContext27(BufferingContextReact);
12091
12133
  const { fps } = useVideoConfig();
12092
12134
  const mediaStartsAt = useMediaStartsAt();
12093
12135
  const lastSeekDueToShift = useRef18(null);
@@ -12382,16 +12424,16 @@ var SetMediaVolumeContext = createContext22({
12382
12424
  }
12383
12425
  });
12384
12426
  var useMediaVolumeState = () => {
12385
- const { mediaVolume } = useContext27(MediaVolumeContext);
12386
- const { setMediaVolume } = useContext27(SetMediaVolumeContext);
12387
- return useMemo26(() => {
12427
+ const { mediaVolume } = useContext28(MediaVolumeContext);
12428
+ const { setMediaVolume } = useContext28(SetMediaVolumeContext);
12429
+ return useMemo27(() => {
12388
12430
  return [mediaVolume, setMediaVolume];
12389
12431
  }, [mediaVolume, setMediaVolume]);
12390
12432
  };
12391
12433
  var usePlayerMutedState = () => {
12392
- const { playerMuted } = useContext27(MediaVolumeContext);
12393
- const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
12394
- return useMemo26(() => {
12434
+ const { playerMuted } = useContext28(MediaVolumeContext);
12435
+ const { setPlayerMuted } = useContext28(SetMediaVolumeContext);
12436
+ return useMemo27(() => {
12395
12437
  return [playerMuted, setPlayerMuted];
12396
12438
  }, [playerMuted, setPlayerMuted]);
12397
12439
  };
@@ -12445,7 +12487,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
12445
12487
  throw new TypeError("No 'src' was passed to <Html5Audio>.");
12446
12488
  }
12447
12489
  const preloadedSrc = usePreload(src);
12448
- const sequenceContext = useContext28(SequenceContext);
12490
+ const sequenceContext = useContext29(SequenceContext);
12449
12491
  const [timelineId] = useState14(() => String(Math.random()));
12450
12492
  const userPreferredVolume = evaluateVolume({
12451
12493
  frame: volumePropFrame,
@@ -12458,7 +12500,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
12458
12500
  requestsVideoFrame: false,
12459
12501
  isClientSideRendering: false
12460
12502
  });
12461
- const propsToPass = useMemo27(() => {
12503
+ const propsToPass = useMemo28(() => {
12462
12504
  return {
12463
12505
  muted: muted || playerMuted || userPreferredVolume <= 0,
12464
12506
  src: preloadedSrc,
@@ -12475,7 +12517,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
12475
12517
  userPreferredVolume,
12476
12518
  crossOriginValue
12477
12519
  ]);
12478
- const id = useMemo27(() => `audio-${random(src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}-muted:${props.muted}-loop:${props.loop}`, [
12520
+ const id = useMemo28(() => `audio-${random(src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}-muted:${props.muted}-loop:${props.loop}`, [
12479
12521
  src,
12480
12522
  sequenceContext?.relativeFrom,
12481
12523
  sequenceContext?.cumulatedFrom,
@@ -12605,10 +12647,10 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
12605
12647
  const absoluteFrame = useTimelinePosition();
12606
12648
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
12607
12649
  const frame = useCurrentFrame();
12608
- const sequenceContext = useContext29(SequenceContext);
12609
- const { registerRenderAsset, unregisterRenderAsset } = useContext29(RenderAssetManager);
12650
+ const sequenceContext = useContext30(SequenceContext);
12651
+ const { registerRenderAsset, unregisterRenderAsset } = useContext30(RenderAssetManager);
12610
12652
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
12611
- const id = useMemo28(() => `audio-${random(props.src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}`, [
12653
+ const id = useMemo29(() => `audio-${random(props.src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}`, [
12612
12654
  props.src,
12613
12655
  sequenceContext?.relativeFrom,
12614
12656
  sequenceContext?.cumulatedFrom,
@@ -12715,7 +12757,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
12715
12757
  };
12716
12758
  var AudioForRendering = forwardRef6(AudioForRenderingRefForwardingFunction);
12717
12759
  var AudioRefForwardingFunction = (props, ref) => {
12718
- const audioTagsContext = useContext30(SharedAudioTagsContext);
12760
+ const audioTagsContext = useContext31(SharedAudioTagsContext);
12719
12761
  const propsWithFreeze = props;
12720
12762
  const {
12721
12763
  startFrom,
@@ -12739,7 +12781,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12739
12781
  if (typeof freeze !== "undefined") {
12740
12782
  throw new TypeError('The "freeze" prop is not supported on <Html5Audio />. Use <Sequence freeze={...}> to freeze media playback.');
12741
12783
  }
12742
- const { durations, setDurations } = useContext30(DurationsContext);
12784
+ const { durations, setDurations } = useContext31(DurationsContext);
12743
12785
  if (typeof props.src !== "string") {
12744
12786
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
12745
12787
  }
@@ -12901,7 +12943,7 @@ var SolidInner = ({
12901
12943
  effects,
12902
12944
  overrideId: overrideId ?? null
12903
12945
  });
12904
- const sourceCanvas = useMemo29(() => {
12946
+ const sourceCanvas = useMemo30(() => {
12905
12947
  if (typeof document === "undefined") {
12906
12948
  return null;
12907
12949
  }
@@ -12969,7 +13011,7 @@ var SolidInner = ({
12969
13011
  cancelRender2,
12970
13012
  memoizedEffects
12971
13013
  ]);
12972
- const canvasStyle = useMemo29(() => {
13014
+ const canvasStyle = useMemo30(() => {
12973
13015
  return {
12974
13016
  width,
12975
13017
  height,
@@ -13118,12 +13160,12 @@ var HtmlInCanvasContent = forwardRef9(({
13118
13160
  controls,
13119
13161
  style
13120
13162
  }, ref) => {
13121
- const ancestor = useContext31(HtmlInCanvasAncestorContext);
13163
+ const ancestor = useContext32(HtmlInCanvasAncestorContext);
13122
13164
  assertHtmlInCanvasDimensions(width, height);
13123
13165
  const resolvedPixelDensity = resolveHtmlInCanvasPixelDensity(pixelDensity);
13124
13166
  const canvasWidth = Math.ceil(width * resolvedPixelDensity);
13125
13167
  const canvasHeight = Math.ceil(height * resolvedPixelDensity);
13126
- const { continueRender: continueRender2, cancelRender: cancelRender2 } = useDelayRender();
13168
+ const { delayRender: delayRender2, continueRender: continueRender2, cancelRender: cancelRender2 } = useDelayRender();
13127
13169
  const { isClientSideRendering, isRendering } = useRemotionEnvironment();
13128
13170
  const canRetryMissingPaintRecord = !isRendering || isClientSideRendering;
13129
13171
  const usesDirectLayoutCanvas = onPaint === undefined && onInit === undefined;
@@ -13177,7 +13219,7 @@ var HtmlInCanvasContent = forwardRef9(({
13177
13219
  if (!placeholderCanvas) {
13178
13220
  throw new Error("Canvas not found");
13179
13221
  }
13180
- const handle = delayRender("onPaint");
13222
+ const handle = delayRender2("onPaint");
13181
13223
  if (!initializedRef.current) {
13182
13224
  const currentOnInit = onInitRef.current;
13183
13225
  if (!currentOnInit) {
@@ -13278,6 +13320,7 @@ var HtmlInCanvasContent = forwardRef9(({
13278
13320
  chainState,
13279
13321
  continueRender2,
13280
13322
  cancelRender2,
13323
+ delayRender2,
13281
13324
  resolvedPixelDensity,
13282
13325
  canRetryMissingPaintRecord
13283
13326
  ]);
@@ -13329,28 +13372,28 @@ var HtmlInCanvasContent = forwardRef9(({
13329
13372
  if (!canvas) {
13330
13373
  return;
13331
13374
  }
13332
- const handle = delayRender("waiting for first paint after canvas resize");
13375
+ const handle = delayRender2("waiting for first paint after canvas resize");
13333
13376
  canvas.addEventListener("paint", () => {
13334
13377
  continueRender2(handle);
13335
13378
  }, { once: true });
13336
13379
  return () => {
13337
13380
  continueRender2(handle);
13338
13381
  };
13339
- }, [width, height, continueRender2, canvasSizeKey]);
13340
- const innerStyle = useMemo30(() => {
13382
+ }, [width, height, continueRender2, delayRender2, canvasSizeKey]);
13383
+ const innerStyle = useMemo31(() => {
13341
13384
  return {
13342
13385
  width,
13343
13386
  height
13344
13387
  };
13345
13388
  }, [width, height]);
13346
- const canvasStyle = useMemo30(() => {
13389
+ const canvasStyle = useMemo31(() => {
13347
13390
  return {
13348
13391
  width,
13349
13392
  height,
13350
13393
  ...style ?? {}
13351
13394
  };
13352
13395
  }, [height, style, width]);
13353
- const ancestorValue = useMemo30(() => {
13396
+ const ancestorValue = useMemo31(() => {
13354
13397
  return {
13355
13398
  requestParentPaint: () => {
13356
13399
  canvas2dRef.current?.requestPaint?.();
@@ -13564,7 +13607,7 @@ var CanvasImageContent = forwardRef10(({
13564
13607
  effects,
13565
13608
  overrideId: controls?.overrideId ?? null
13566
13609
  });
13567
- const sequenceContext = useContext32(SequenceContext);
13610
+ const sequenceContext = useContext33(SequenceContext);
13568
13611
  const pendingLoadDelayRef = useRef23(null);
13569
13612
  const [isLoadPending, setIsLoadPending] = useState16(false);
13570
13613
  const isPremounting = Boolean(sequenceContext?.premounting);
@@ -13581,7 +13624,7 @@ var CanvasImageContent = forwardRef10(({
13581
13624
  continueRender2(pending.handle);
13582
13625
  pendingLoadDelayRef.current = null;
13583
13626
  }, [continueRender2]);
13584
- const sourceCanvas = useMemo31(() => {
13627
+ const sourceCanvas = useMemo32(() => {
13585
13628
  if (typeof document === "undefined") {
13586
13629
  return null;
13587
13630
  }
@@ -13903,7 +13946,7 @@ var ImgContent = ({
13903
13946
  const imageRef = useRef24(null);
13904
13947
  const errors = useRef24({});
13905
13948
  const { delayPlayback } = useBufferState();
13906
- const sequenceContext = useContext33(SequenceContext);
13949
+ const sequenceContext = useContext34(SequenceContext);
13907
13950
  const [isLoading, setIsLoading] = useState18(false);
13908
13951
  const _propsValid = true;
13909
13952
  if (!_propsValid) {
@@ -14252,7 +14295,10 @@ var makeRemotionComponentIdentity = ({
14252
14295
  };
14253
14296
  var interactiveElementSchema = {
14254
14297
  ...baseSchema,
14255
- ...transformSchema,
14298
+ ...transformSchema
14299
+ };
14300
+ var interactiveTextElementSchema = {
14301
+ ...interactiveElementSchema,
14256
14302
  ...textSchema,
14257
14303
  ...textContentSchema
14258
14304
  };
@@ -14268,7 +14314,7 @@ var withSchema = (options) => {
14268
14314
  addSequenceStackTraces(Wrapped);
14269
14315
  return Wrapped;
14270
14316
  };
14271
- var makeInteractiveElement = (tag, displayName) => {
14317
+ var makeInteractiveElement = (tag, displayName, schema) => {
14272
14318
  const Inner = forwardRef12((propsWithControls, ref) => {
14273
14319
  const {
14274
14320
  durationInFrames,
@@ -14314,12 +14360,18 @@ var makeInteractiveElement = (tag, displayName) => {
14314
14360
  packageName: "remotion",
14315
14361
  componentName: displayName.slice(1, -1)
14316
14362
  }),
14317
- schema: interactiveElementSchema,
14363
+ schema,
14318
14364
  supportsEffects: false
14319
14365
  });
14320
14366
  Wrapped.displayName = displayName;
14321
14367
  return Wrapped;
14322
14368
  };
14369
+ var makeInteractiveTextElement = (tag, displayName) => {
14370
+ return makeInteractiveElement(tag, displayName, interactiveTextElementSchema);
14371
+ };
14372
+ var makeInteractiveNonTextElement = (tag, displayName) => {
14373
+ return makeInteractiveElement(tag, displayName, interactiveElementSchema);
14374
+ };
14323
14375
  var Interactive = {
14324
14376
  baseSchema,
14325
14377
  transformSchema,
@@ -14328,41 +14380,41 @@ var Interactive = {
14328
14380
  sequenceSchema,
14329
14381
  withSchema,
14330
14382
  _internalMakeRemotionComponentIdentity: makeRemotionComponentIdentity,
14331
- A: makeInteractiveElement("a", "<Interactive.A>"),
14332
- Article: makeInteractiveElement("article", "<Interactive.Article>"),
14333
- Aside: makeInteractiveElement("aside", "<Interactive.Aside>"),
14334
- Button: makeInteractiveElement("button", "<Interactive.Button>"),
14335
- Circle: makeInteractiveElement("circle", "<Interactive.Circle>"),
14336
- Code: makeInteractiveElement("code", "<Interactive.Code>"),
14337
- Div: makeInteractiveElement("div", "<Interactive.Div>"),
14338
- Ellipse: makeInteractiveElement("ellipse", "<Interactive.Ellipse>"),
14339
- Em: makeInteractiveElement("em", "<Interactive.Em>"),
14340
- Footer: makeInteractiveElement("footer", "<Interactive.Footer>"),
14341
- G: makeInteractiveElement("g", "<Interactive.G>"),
14342
- H1: makeInteractiveElement("h1", "<Interactive.H1>"),
14343
- H2: makeInteractiveElement("h2", "<Interactive.H2>"),
14344
- H3: makeInteractiveElement("h3", "<Interactive.H3>"),
14345
- H4: makeInteractiveElement("h4", "<Interactive.H4>"),
14346
- H5: makeInteractiveElement("h5", "<Interactive.H5>"),
14347
- H6: makeInteractiveElement("h6", "<Interactive.H6>"),
14348
- Header: makeInteractiveElement("header", "<Interactive.Header>"),
14349
- Label: makeInteractiveElement("label", "<Interactive.Label>"),
14350
- Li: makeInteractiveElement("li", "<Interactive.Li>"),
14351
- Line: makeInteractiveElement("line", "<Interactive.Line>"),
14352
- Main: makeInteractiveElement("main", "<Interactive.Main>"),
14353
- Nav: makeInteractiveElement("nav", "<Interactive.Nav>"),
14354
- Ol: makeInteractiveElement("ol", "<Interactive.Ol>"),
14355
- P: makeInteractiveElement("p", "<Interactive.P>"),
14356
- Path: makeInteractiveElement("path", "<Interactive.Path>"),
14357
- Pre: makeInteractiveElement("pre", "<Interactive.Pre>"),
14358
- Rect: makeInteractiveElement("rect", "<Interactive.Rect>"),
14359
- Section: makeInteractiveElement("section", "<Interactive.Section>"),
14360
- Small: makeInteractiveElement("small", "<Interactive.Small>"),
14361
- Span: makeInteractiveElement("span", "<Interactive.Span>"),
14362
- Strong: makeInteractiveElement("strong", "<Interactive.Strong>"),
14363
- Svg: makeInteractiveElement("svg", "<Interactive.Svg>"),
14364
- Text: makeInteractiveElement("text", "<Interactive.Text>"),
14365
- Ul: makeInteractiveElement("ul", "<Interactive.Ul>")
14383
+ A: makeInteractiveTextElement("a", "<Interactive.A>"),
14384
+ Article: makeInteractiveTextElement("article", "<Interactive.Article>"),
14385
+ Aside: makeInteractiveTextElement("aside", "<Interactive.Aside>"),
14386
+ Button: makeInteractiveTextElement("button", "<Interactive.Button>"),
14387
+ Circle: makeInteractiveNonTextElement("circle", "<Interactive.Circle>"),
14388
+ Code: makeInteractiveTextElement("code", "<Interactive.Code>"),
14389
+ Div: makeInteractiveTextElement("div", "<Interactive.Div>"),
14390
+ Ellipse: makeInteractiveNonTextElement("ellipse", "<Interactive.Ellipse>"),
14391
+ Em: makeInteractiveTextElement("em", "<Interactive.Em>"),
14392
+ Footer: makeInteractiveTextElement("footer", "<Interactive.Footer>"),
14393
+ G: makeInteractiveNonTextElement("g", "<Interactive.G>"),
14394
+ H1: makeInteractiveTextElement("h1", "<Interactive.H1>"),
14395
+ H2: makeInteractiveTextElement("h2", "<Interactive.H2>"),
14396
+ H3: makeInteractiveTextElement("h3", "<Interactive.H3>"),
14397
+ H4: makeInteractiveTextElement("h4", "<Interactive.H4>"),
14398
+ H5: makeInteractiveTextElement("h5", "<Interactive.H5>"),
14399
+ H6: makeInteractiveTextElement("h6", "<Interactive.H6>"),
14400
+ Header: makeInteractiveTextElement("header", "<Interactive.Header>"),
14401
+ Label: makeInteractiveTextElement("label", "<Interactive.Label>"),
14402
+ Li: makeInteractiveTextElement("li", "<Interactive.Li>"),
14403
+ Line: makeInteractiveNonTextElement("line", "<Interactive.Line>"),
14404
+ Main: makeInteractiveTextElement("main", "<Interactive.Main>"),
14405
+ Nav: makeInteractiveTextElement("nav", "<Interactive.Nav>"),
14406
+ Ol: makeInteractiveTextElement("ol", "<Interactive.Ol>"),
14407
+ P: makeInteractiveTextElement("p", "<Interactive.P>"),
14408
+ Path: makeInteractiveNonTextElement("path", "<Interactive.Path>"),
14409
+ Pre: makeInteractiveTextElement("pre", "<Interactive.Pre>"),
14410
+ Rect: makeInteractiveNonTextElement("rect", "<Interactive.Rect>"),
14411
+ Section: makeInteractiveTextElement("section", "<Interactive.Section>"),
14412
+ Small: makeInteractiveTextElement("small", "<Interactive.Small>"),
14413
+ Span: makeInteractiveTextElement("span", "<Interactive.Span>"),
14414
+ Strong: makeInteractiveTextElement("strong", "<Interactive.Strong>"),
14415
+ Svg: makeInteractiveNonTextElement("svg", "<Interactive.Svg>"),
14416
+ Text: makeInteractiveTextElement("text", "<Interactive.Text>"),
14417
+ Ul: makeInteractiveTextElement("ul", "<Interactive.Ul>")
14366
14418
  };
14367
14419
  var compositionsRef = React31.createRef();
14368
14420
  var CompositionManagerProvider = ({
@@ -14419,7 +14471,7 @@ var CompositionManagerProvider = ({
14419
14471
  getCompositions: () => currentcompositionsRef.current
14420
14472
  };
14421
14473
  }, []);
14422
- const compositionManagerSetters = useMemo32(() => {
14474
+ const compositionManagerSetters = useMemo33(() => {
14423
14475
  return {
14424
14476
  registerComposition,
14425
14477
  unregisterComposition,
@@ -14435,7 +14487,7 @@ var CompositionManagerProvider = ({
14435
14487
  unregisterFolder,
14436
14488
  onlyRenderComposition
14437
14489
  ]);
14438
- const compositionManagerContextValue = useMemo32(() => {
14490
+ const compositionManagerContextValue = useMemo33(() => {
14439
14491
  return {
14440
14492
  compositions,
14441
14493
  folders,
@@ -14533,7 +14585,7 @@ var waitForRoot = (fn) => {
14533
14585
  };
14534
14586
  var MediaEnabledContext = createContext24(null);
14535
14587
  var useVideoEnabled = () => {
14536
- const context = useContext34(MediaEnabledContext);
14588
+ const context = useContext35(MediaEnabledContext);
14537
14589
  if (!context) {
14538
14590
  return window.remotion_videoEnabled;
14539
14591
  }
@@ -14543,7 +14595,7 @@ var useVideoEnabled = () => {
14543
14595
  return context.videoEnabled;
14544
14596
  };
14545
14597
  var useAudioEnabled = () => {
14546
- const context = useContext34(MediaEnabledContext);
14598
+ const context = useContext35(MediaEnabledContext);
14547
14599
  if (!context) {
14548
14600
  return window.remotion_audioEnabled;
14549
14601
  }
@@ -14557,7 +14609,7 @@ var MediaEnabledProvider = ({
14557
14609
  videoEnabled,
14558
14610
  audioEnabled
14559
14611
  }) => {
14560
- const value = useMemo33(() => ({ videoEnabled, audioEnabled }), [videoEnabled, audioEnabled]);
14612
+ const value = useMemo34(() => ({ videoEnabled, audioEnabled }), [videoEnabled, audioEnabled]);
14561
14613
  return /* @__PURE__ */ jsx31(MediaEnabledContext.Provider, {
14562
14614
  value,
14563
14615
  children
@@ -14573,13 +14625,13 @@ var RemotionRootContexts = ({
14573
14625
  audioEnabled,
14574
14626
  frameState
14575
14627
  }) => {
14576
- const nonceContext = useMemo34(() => {
14628
+ const nonceContext = useMemo35(() => {
14577
14629
  let counter = 0;
14578
14630
  return {
14579
14631
  getNonce: () => counter++
14580
14632
  };
14581
14633
  }, []);
14582
- const logging = useMemo34(() => {
14634
+ const logging = useMemo35(() => {
14583
14635
  return { logLevel, mountTime: Date.now() };
14584
14636
  }, [logLevel]);
14585
14637
  return /* @__PURE__ */ jsx32(LogLevelContext.Provider, {
@@ -14880,13 +14932,13 @@ var OffthreadVideoForRendering = ({
14880
14932
  const frame = useCurrentFrame();
14881
14933
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
14882
14934
  const videoConfig = useUnsafeVideoConfig();
14883
- const sequenceContext = useContext36(SequenceContext);
14935
+ const sequenceContext = useContext37(SequenceContext);
14884
14936
  const mediaStartsAt = useMediaStartsAt();
14885
- const { registerRenderAsset, unregisterRenderAsset } = useContext36(RenderAssetManager);
14937
+ const { registerRenderAsset, unregisterRenderAsset } = useContext37(RenderAssetManager);
14886
14938
  if (!src) {
14887
14939
  throw new TypeError("No `src` was passed to <OffthreadVideo>.");
14888
14940
  }
14889
- const id = useMemo35(() => `offthreadvideo-${random(src)}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
14941
+ const id = useMemo36(() => `offthreadvideo-${random(src)}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
14890
14942
  src,
14891
14943
  sequenceContext?.cumulatedFrom,
14892
14944
  sequenceContext?.relativeFrom,
@@ -14941,14 +14993,14 @@ var OffthreadVideoForRendering = ({
14941
14993
  sequenceContext?.cumulatedNegativeFrom,
14942
14994
  audioStreamIndex
14943
14995
  ]);
14944
- const currentTime = useMemo35(() => {
14996
+ const currentTime = useMemo36(() => {
14945
14997
  return getExpectedMediaFrameUncorrected({
14946
14998
  frame,
14947
14999
  playbackRate: playbackRate || 1,
14948
15000
  startFrom: -mediaStartsAt
14949
15001
  }) / videoConfig.fps;
14950
15002
  }, [frame, mediaStartsAt, playbackRate, videoConfig.fps]);
14951
- const actualSrc = useMemo35(() => {
15003
+ const actualSrc = useMemo36(() => {
14952
15004
  return getOffthreadVideoSource({
14953
15005
  src,
14954
15006
  currentTime,
@@ -15036,7 +15088,7 @@ var OffthreadVideoForRendering = ({
15036
15088
  cancelRender("Failed to load image with src " + imageSrc);
15037
15089
  }
15038
15090
  }, [imageSrc, onError]);
15039
- const className = useMemo35(() => {
15091
+ const className = useMemo36(() => {
15040
15092
  return [OBJECTFIT_CONTAIN_CLASS_NAME, props2.className].filter(truthy).join(" ");
15041
15093
  }, [props2.className]);
15042
15094
  const onImageFrame = useCallback22((img) => {
@@ -15100,12 +15152,12 @@ class MediaPlaybackError extends Error {
15100
15152
  }
15101
15153
  }
15102
15154
  var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15103
- const context = useContext37(SharedAudioContext);
15155
+ const context = useContext38(SharedAudioContext);
15104
15156
  if (!context) {
15105
15157
  throw new Error("SharedAudioContext not found");
15106
15158
  }
15107
15159
  const videoRef = useRef27(null);
15108
- const sharedSource = useMemo36(() => {
15160
+ const sharedSource = useMemo37(() => {
15109
15161
  if (!context.audioContext) {
15110
15162
  return null;
15111
15163
  }
@@ -15157,7 +15209,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15157
15209
  }
15158
15210
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
15159
15211
  const { fps, durationInFrames } = useVideoConfig();
15160
- const parentSequence = useContext37(SequenceContext);
15212
+ const parentSequence = useContext38(SequenceContext);
15161
15213
  const logLevel = useLogLevel();
15162
15214
  const mountTime = useMountTime();
15163
15215
  const [timelineId] = useState21(() => String(Math.random()));
@@ -15308,7 +15360,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15308
15360
  current.preload = "auto";
15309
15361
  }
15310
15362
  }, []);
15311
- const actualStyle = useMemo36(() => {
15363
+ const actualStyle = useMemo37(() => {
15312
15364
  return {
15313
15365
  ...style
15314
15366
  };
@@ -15504,7 +15556,7 @@ function useRemotionContexts() {
15504
15556
  const visualModePropStatusesRefContext = React40.useContext(VisualModePropStatusesRefContext);
15505
15557
  const bufferManagerContext = React40.useContext(BufferingContextReact);
15506
15558
  const logLevelContext = React40.useContext(LogLevelContext);
15507
- return useMemo37(() => ({
15559
+ return useMemo38(() => ({
15508
15560
  compositionManagerCtx,
15509
15561
  timelineContext,
15510
15562
  setTimelineContext,
@@ -15615,6 +15667,7 @@ var Internals = {
15615
15667
  textSchema,
15616
15668
  transformSchema,
15617
15669
  premountSchema,
15670
+ premountStyleSchema,
15618
15671
  flattenActiveSchema,
15619
15672
  getFlatSchemaWithAllKeys,
15620
15673
  RemotionRootContexts,
@@ -15628,6 +15681,7 @@ var Internals = {
15628
15681
  truthy,
15629
15682
  SequenceContext,
15630
15683
  PremountContext,
15684
+ usePremounting,
15631
15685
  useRemotionContexts,
15632
15686
  RemotionContextProvider,
15633
15687
  CSSUtils: exports_default_css,
@@ -15803,7 +15857,7 @@ var validateSeriesSequenceProps = ({
15803
15857
  return offset;
15804
15858
  };
15805
15859
  var SeriesInner = (props2) => {
15806
- const childrenValue = useMemo38(() => {
15860
+ const childrenValue = useMemo39(() => {
15807
15861
  const flattenedChildren = flattenChildren(props2.children);
15808
15862
  const renderChildren = (i, startFrame) => {
15809
15863
  if (i === flattenedChildren.length) {
@@ -16132,14 +16186,14 @@ var VideoForRenderingForwardFunction = ({
16132
16186
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
16133
16187
  const videoConfig = useUnsafeVideoConfig();
16134
16188
  const videoRef = useRef28(null);
16135
- const sequenceContext = useContext38(SequenceContext);
16189
+ const sequenceContext = useContext39(SequenceContext);
16136
16190
  const mediaStartsAt = useMediaStartsAt();
16137
16191
  const environment = useRemotionEnvironment();
16138
16192
  const logLevel = useLogLevel();
16139
16193
  const mountTime = useMountTime();
16140
16194
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
16141
- const { registerRenderAsset, unregisterRenderAsset } = useContext38(RenderAssetManager);
16142
- const id = useMemo39(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
16195
+ const { registerRenderAsset, unregisterRenderAsset } = useContext39(RenderAssetManager);
16196
+ const id = useMemo40(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
16143
16197
  props2.src,
16144
16198
  sequenceContext?.cumulatedFrom,
16145
16199
  sequenceContext?.relativeFrom,
@@ -16350,7 +16404,7 @@ var VideoForwardingFunction = (props2, ref) => {
16350
16404
  if (environment.isClientSideRendering) {
16351
16405
  throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
16352
16406
  }
16353
- const { durations, setDurations } = useContext39(DurationsContext);
16407
+ const { durations, setDurations } = useContext40(DurationsContext);
16354
16408
  if (typeof ref === "string") {
16355
16409
  throw new Error("string refs are not supported");
16356
16410
  }
@@ -16469,7 +16523,7 @@ addSequenceStackTraces(Composition);
16469
16523
  addSequenceStackTraces(Folder);
16470
16524
 
16471
16525
  // ../shapes/dist/esm/index.mjs
16472
- import React, { useCallback as useCallback26, useMemo as useMemo40, useRef as useRef29 } from "react";
16526
+ import React, { useCallback as useCallback26, useMemo as useMemo41, useRef as useRef29 } from "react";
16473
16527
  import { version } from "react-dom";
16474
16528
  import { jsx as jsx40, jsxs as jsxs4 } from "react/jsx-runtime";
16475
16529
  import { jsx as jsx210 } from "react/jsx-runtime";
@@ -16651,13 +16705,13 @@ var RenderSvg = ({
16651
16705
  stack,
16652
16706
  ...props
16653
16707
  }) => {
16654
- const actualStyle = useMemo40(() => {
16708
+ const actualStyle = useMemo41(() => {
16655
16709
  return {
16656
16710
  overflow: "visible",
16657
16711
  ...style ?? {}
16658
16712
  };
16659
16713
  }, [style]);
16660
- const actualPathStyle = useMemo40(() => {
16714
+ const actualPathStyle = useMemo41(() => {
16661
16715
  return {
16662
16716
  transformBox: "fill-box",
16663
16717
  ...pathStyle ?? {}
@@ -19636,7 +19690,7 @@ var useHoverTransforms = (ref, disabled) => {
19636
19690
  progress: 0,
19637
19691
  isActive: false
19638
19692
  });
19639
- const eventTarget = useMemo42(() => new EventTarget, []);
19693
+ const eventTarget = useMemo43(() => new EventTarget, []);
19640
19694
  useEffect21(() => {
19641
19695
  if (disabled) {
19642
19696
  eventTarget.dispatchEvent(new Event("disabled"));
@@ -26083,7 +26137,7 @@ var Triangle22 = (props) => {
26083
26137
  };
26084
26138
 
26085
26139
  // src/components/homepage/FreePricing.tsx
26086
- import React53, { useCallback as useCallback38, useMemo as useMemo51 } from "react";
26140
+ import React53, { useCallback as useCallback38, useMemo as useMemo52 } from "react";
26087
26141
 
26088
26142
  // ../../node_modules/.bun/tailwind-merge@2.5.2/node_modules/tailwind-merge/dist/bundle-mjs.mjs
26089
26143
  var CLASS_PART_SEPARATOR2 = "-";
@@ -27740,14 +27794,14 @@ var CompanyPricing = () => {
27740
27794
  }, []);
27741
27795
  const creatorsPrice = creatorsSelected ? devSeatCount * SEAT_PRICE : 0;
27742
27796
  const automatorsPrice = automatorsSelected ? Math.ceil(cloudRenders / 1000) * RENDER_UNIT_PRICE : 0;
27743
- const totalPrice = useMemo51(() => {
27797
+ const totalPrice = useMemo52(() => {
27744
27798
  const basePrice = creatorsPrice + automatorsPrice;
27745
27799
  if (automatorsSelected) {
27746
27800
  return Math.max(100, basePrice);
27747
27801
  }
27748
27802
  return basePrice;
27749
27803
  }, [creatorsPrice, automatorsPrice, automatorsSelected]);
27750
- const totalPriceString = useMemo51(() => {
27804
+ const totalPriceString = useMemo52(() => {
27751
27805
  return formatPrice(totalPrice);
27752
27806
  }, [formatPrice, totalPrice]);
27753
27807
  const showMinimumMessage = automatorsSelected && creatorsPrice + automatorsPrice < 100;
@@ -27977,13 +28031,13 @@ var Pricing = ({
27977
28031
  licenseHref = "https://github.com/remotion-dev/remotion/blob/main/LICENSE.md",
27978
28032
  termsHref = "/docs/license/terms"
27979
28033
  }) => {
27980
- const faqLinkTarget = useMemo52(() => {
28034
+ const faqLinkTarget = useMemo53(() => {
27981
28035
  return faqHref.startsWith("http") ? "_blank" : undefined;
27982
28036
  }, [faqHref]);
27983
- const licenseLinkTarget = useMemo52(() => {
28037
+ const licenseLinkTarget = useMemo53(() => {
27984
28038
  return licenseHref.startsWith("http") ? "_blank" : undefined;
27985
28039
  }, [licenseHref]);
27986
- const termsLinkTarget = useMemo52(() => {
28040
+ const termsLinkTarget = useMemo53(() => {
27987
28041
  return termsHref.startsWith("http") ? "_blank" : undefined;
27988
28042
  }, [termsHref]);
27989
28043
  return /* @__PURE__ */ jsxs9("div", {