@remotion/promo-pages 4.0.494 → 4.0.495

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.
@@ -45,7 +45,7 @@ __export(exports_vidstack_CZgUA94N, {
45
45
  useSignal: () => useSignal,
46
46
  useReactScope: () => useReactScope,
47
47
  useReactContext: () => useReactContext,
48
- useContext: () => useContext47,
48
+ useContext: () => useContext48,
49
49
  uppercaseFirstChar: () => uppercaseFirstChar,
50
50
  untrack: () => untrack,
51
51
  toggleClass: () => toggleClass,
@@ -619,7 +619,7 @@ function provideContext(context, value, scope = getScope()) {
619
619
  const hasProvidedValue = !isUndefined(value);
620
620
  setContext(context.id, hasProvidedValue ? value : context.provide?.(), scope);
621
621
  }
622
- function useContext47(context) {
622
+ function useContext48(context) {
623
623
  const value = getContext(context.id);
624
624
  return value;
625
625
  }
@@ -679,7 +679,7 @@ class State {
679
679
  }
680
680
  }
681
681
  function useState44(state) {
682
- return useContext47(state);
682
+ return useContext48(state);
683
683
  }
684
684
  function camelToKebabCase(str) {
685
685
  return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
@@ -7061,7 +7061,7 @@ function boundTime(time, store) {
7061
7061
  return Math.min(Math.max(store.seekableStart() + 0.1, clippedTime), store.seekableEnd() - 0.1);
7062
7062
  }
7063
7063
  function useMediaContext() {
7064
- return useContext47(mediaContext);
7064
+ return useContext48(mediaContext);
7065
7065
  }
7066
7066
 
7067
7067
  class MediaRemoteControl {
@@ -13976,7 +13976,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
13976
13976
  if (!this.connectScope)
13977
13977
  return;
13978
13978
  this.#attach();
13979
- const tooltip = useContext47(tooltipContext);
13979
+ const tooltip = useContext48(tooltipContext);
13980
13980
  onDispose(() => {
13981
13981
  const button = this.#getButton();
13982
13982
  button && tooltip.detachTrigger(button);
@@ -13984,7 +13984,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
13984
13984
  }));
13985
13985
  }
13986
13986
  #attach() {
13987
- const button = this.#getButton(), tooltip = useContext47(tooltipContext);
13987
+ const button = this.#getButton(), tooltip = useContext48(tooltipContext);
13988
13988
  button && tooltip.attachTrigger(button);
13989
13989
  }
13990
13990
  #getButton() {
@@ -14017,7 +14017,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
14017
14017
  }
14018
14018
  onConnect(el) {
14019
14019
  this.#attach(el);
14020
- const tooltip = useContext47(tooltipContext);
14020
+ const tooltip = useContext48(tooltipContext);
14021
14021
  onDispose(() => tooltip.detachContent(el));
14022
14022
  onDispose(requestScopedAnimationFrame(() => {
14023
14023
  if (!this.connectScope)
@@ -14026,11 +14026,11 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
14026
14026
  }));
14027
14027
  }
14028
14028
  #attach(el) {
14029
- const tooltip = useContext47(tooltipContext);
14029
+ const tooltip = useContext48(tooltipContext);
14030
14030
  tooltip.attachContent(el);
14031
14031
  }
14032
14032
  #watchPlacement() {
14033
- const { showing } = useContext47(tooltipContext);
14033
+ const { showing } = useContext48(tooltipContext);
14034
14034
  if (!showing())
14035
14035
  return;
14036
14036
  const { placement, offset: mainOffset, alignOffset } = this.$props;
@@ -14041,7 +14041,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
14041
14041
  });
14042
14042
  }
14043
14043
  #getTrigger() {
14044
- return useContext47(tooltipContext).trigger();
14044
+ return useContext48(tooltipContext).trigger();
14045
14045
  }
14046
14046
  };
14047
14047
  ToggleButtonController = class ToggleButtonController extends ViewController {
@@ -14537,7 +14537,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
14537
14537
  }
14538
14538
  onSetup() {
14539
14539
  if (hasProvidedContext(sliderObserverContext)) {
14540
- this.#observer = useContext47(sliderObserverContext);
14540
+ this.#observer = useContext48(sliderObserverContext);
14541
14541
  }
14542
14542
  }
14543
14543
  onConnect(el) {
@@ -15153,7 +15153,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
15153
15153
  #slider;
15154
15154
  onSetup() {
15155
15155
  this.#slider = useState44(Slider.state);
15156
- this.#format = useContext47(sliderValueFormatContext);
15156
+ this.#format = useContext48(sliderValueFormatContext);
15157
15157
  this.#text = computed(this.getValueText.bind(this));
15158
15158
  }
15159
15159
  getValueText() {
@@ -15192,7 +15192,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
15192
15192
  };
15193
15193
  #slider;
15194
15194
  onSetup() {
15195
- this.#slider = useContext47(sliderContext);
15195
+ this.#slider = useContext48(sliderContext);
15196
15196
  const { active } = useState44(Slider.state);
15197
15197
  this.setAttributes({
15198
15198
  "data-visible": active
@@ -15620,7 +15620,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
15620
15620
  }
15621
15621
  }
15622
15622
  #watchPreviewing() {
15623
- const player = this.#media.player.el, { preview } = useContext47(sliderContext);
15623
+ const player = this.#media.player.el, { preview } = useContext48(sliderContext);
15624
15624
  player && preview() && setAttribute(player, "data-preview", this.$state.active());
15625
15625
  }
15626
15626
  #seeking(time, event2) {
@@ -16058,7 +16058,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
16058
16058
  closeMenu: this.close.bind(this)
16059
16059
  });
16060
16060
  if (hasProvidedContext(menuContext)) {
16061
- this.#parentMenu = useContext47(menuContext);
16061
+ this.#parentMenu = useContext48(menuContext);
16062
16062
  }
16063
16063
  this.#observeSliders();
16064
16064
  this.setAttributes({
@@ -16103,7 +16103,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
16103
16103
  this.#transitionCallbacks.clear();
16104
16104
  }
16105
16105
  #observeSliders() {
16106
- let sliderActiveTimer = -1, parentSliderObserver = hasProvidedContext(sliderObserverContext) ? useContext47(sliderObserverContext) : null;
16106
+ let sliderActiveTimer = -1, parentSliderObserver = hasProvidedContext(sliderObserverContext) ? useContext48(sliderObserverContext) : null;
16107
16107
  provideContext(sliderObserverContext, {
16108
16108
  onDragStart: () => {
16109
16109
  parentSliderObserver?.onDragStart?.();
@@ -16430,7 +16430,7 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
16430
16430
  new FocusVisibleController;
16431
16431
  }
16432
16432
  onSetup() {
16433
- this.#menu = useContext47(menuContext);
16433
+ this.#menu = useContext48(menuContext);
16434
16434
  }
16435
16435
  onAttach(el) {
16436
16436
  this.#menu.attachMenuButton(this);
@@ -16546,10 +16546,10 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
16546
16546
  });
16547
16547
  }
16548
16548
  onAttach(el) {
16549
- this.#menu = useContext47(menuContext);
16549
+ this.#menu = useContext48(menuContext);
16550
16550
  this.#menu.attachMenuItems(this);
16551
16551
  if (hasProvidedContext(menuPortalContext)) {
16552
- const portal = useContext47(menuPortalContext);
16552
+ const portal = useContext48(menuPortalContext);
16553
16553
  if (portal) {
16554
16554
  provideContext(menuPortalContext, null);
16555
16555
  portal.attach(el);
@@ -16724,12 +16724,12 @@ var init_vidstack_D5Pzx_k5 = __esm(() => {
16724
16724
  }
16725
16725
  #onDisconnect() {
16726
16726
  scoped(() => {
16727
- const group = useContext47(radioControllerContext);
16727
+ const group = useContext48(radioControllerContext);
16728
16728
  group.remove(this.#controller);
16729
16729
  }, this.connectScope);
16730
16730
  }
16731
16731
  #addToGroup() {
16732
- const group = useContext47(radioControllerContext);
16732
+ const group = useContext48(radioControllerContext);
16733
16733
  group.add(this.#controller);
16734
16734
  }
16735
16735
  #watchValue() {
@@ -18712,7 +18712,7 @@ var getDefaultConfig = () => {
18712
18712
  var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
18713
18713
 
18714
18714
  // ../design/dist/esm/index.mjs
18715
- import React33, { useEffect as useEffect21, useMemo as useMemo42, useState as useState23 } from "react";
18715
+ import React33, { useEffect as useEffect21, useMemo as useMemo43, useState as useState23 } from "react";
18716
18716
 
18717
18717
  // ../paths/dist/esm/index.mjs
18718
18718
  var cutLInstruction = ({
@@ -21509,9 +21509,9 @@ import React9 from "react";
21509
21509
  import {
21510
21510
  forwardRef as forwardRef3,
21511
21511
  useCallback as useCallback6,
21512
- useContext as useContext17,
21512
+ useContext as useContext18,
21513
21513
  useEffect as useEffect3,
21514
- useMemo as useMemo14,
21514
+ useMemo as useMemo15,
21515
21515
  useRef as useRef6,
21516
21516
  useState as useState5
21517
21517
  } from "react";
@@ -21530,13 +21530,14 @@ import { useContext as useContext11 } from "react";
21530
21530
  import { useContext as useContext13 } from "react";
21531
21531
  import { useContext as useContext12, useMemo as useMemo10 } from "react";
21532
21532
  import { jsx as jsx9 } from "react/jsx-runtime";
21533
- import { createContext as createContext14 } from "react";
21534
21533
  import React12, { useCallback as useCallback5, useMemo as useMemo12, useRef as useRef4, useState as useState3 } from "react";
21535
21534
  import { jsx as jsx10 } from "react/jsx-runtime";
21536
- import React13, { createContext as createContext15 } from "react";
21535
+ import React13, { createContext as createContext14 } from "react";
21537
21536
  import { jsx as jsx11 } from "react/jsx-runtime";
21538
- import React14, { forwardRef as forwardRef2, useContext as useContext16, useMemo as useMemo13, useState as useState4 } from "react";
21539
- import { useContext as useContext15, useRef as useRef5 } from "react";
21537
+ import { useContext as useContext15, useMemo as useMemo13 } from "react";
21538
+ import { createContext as createContext15 } from "react";
21539
+ import React14, { forwardRef as forwardRef2, useContext as useContext17, useMemo as useMemo14, useState as useState4 } from "react";
21540
+ import { useContext as useContext16, useRef as useRef5 } from "react";
21540
21541
  import { createContext as createContext16 } from "react";
21541
21542
  import { jsx as jsx12 } from "react/jsx-runtime";
21542
21543
  import {
@@ -21547,70 +21548,70 @@ import {
21547
21548
  useRef as useRef9,
21548
21549
  useState as useState6
21549
21550
  } from "react";
21550
- import React16, { useCallback as useCallback7, useImperativeHandle, useMemo as useMemo16, useRef as useRef8 } from "react";
21551
- import { useEffect as useEffect4, useMemo as useMemo15, useRef as useRef7 } from "react";
21551
+ import React16, { useCallback as useCallback7, useImperativeHandle, useMemo as useMemo17, useRef as useRef8 } from "react";
21552
+ import { useEffect as useEffect4, useMemo as useMemo16, useRef as useRef7 } from "react";
21552
21553
  import { jsx as jsx13 } from "react/jsx-runtime";
21553
21554
  import { jsx as jsx14 } from "react/jsx-runtime";
21554
- import { useContext as useContext18, useLayoutEffect as useLayoutEffect4, useState as useState8 } from "react";
21555
+ import { useContext as useContext19, useLayoutEffect as useLayoutEffect4, useState as useState8 } from "react";
21555
21556
  import {
21556
21557
  createContext as createContext17,
21557
21558
  useCallback as useCallback8,
21558
21559
  useImperativeHandle as useImperativeHandle3,
21559
21560
  useLayoutEffect as useLayoutEffect3,
21560
- useMemo as useMemo17,
21561
+ useMemo as useMemo18,
21561
21562
  useRef as useRef10,
21562
21563
  useState as useState7
21563
21564
  } from "react";
21564
21565
  import { jsx as jsx15 } from "react/jsx-runtime";
21565
- import { forwardRef as forwardRef7, useCallback as useCallback14, useContext as useContext30 } from "react";
21566
- import React17, { createContext as createContext18, useMemo as useMemo18 } from "react";
21566
+ import { forwardRef as forwardRef7, useCallback as useCallback14, useContext as useContext31 } from "react";
21567
+ import React17, { createContext as createContext18, useMemo as useMemo19 } from "react";
21567
21568
  import { jsx as jsx16 } from "react/jsx-runtime";
21568
- import { useContext as useContext19 } from "react";
21569
+ import { useContext as useContext20 } from "react";
21569
21570
  import { createContext as createContext19, useEffect as useEffect6, useState as useState9 } from "react";
21570
21571
  import { jsx as jsx17 } from "react/jsx-runtime";
21571
- import { createContext as createContext20, useMemo as useMemo19, useReducer } from "react";
21572
+ import { createContext as createContext20, useMemo as useMemo20, useReducer } from "react";
21572
21573
  import { jsx as jsx18 } from "react/jsx-runtime";
21573
21574
  import { useCallback as useCallback13 } from "react";
21574
21575
  import React23, {
21575
21576
  forwardRef as forwardRef5,
21576
- useContext as useContext28,
21577
+ useContext as useContext29,
21577
21578
  useEffect as useEffect14,
21578
21579
  useImperativeHandle as useImperativeHandle4,
21579
- useMemo as useMemo27,
21580
+ useMemo as useMemo28,
21580
21581
  useRef as useRef19,
21581
21582
  useState as useState14
21582
21583
  } from "react";
21583
- import { useContext as useContext21, useLayoutEffect as useLayoutEffect5, useRef as useRef14 } from "react";
21584
+ import { useContext as useContext22, useLayoutEffect as useLayoutEffect5, useRef as useRef14 } from "react";
21584
21585
  import React20, {
21585
21586
  createContext as createContext21,
21586
21587
  createRef as createRef2,
21587
21588
  useCallback as useCallback9,
21588
- useContext as useContext20,
21589
+ useContext as useContext21,
21589
21590
  useEffect as useEffect7,
21590
- useMemo as useMemo21,
21591
+ useMemo as useMemo22,
21591
21592
  useRef as useRef12,
21592
21593
  useState as useState10
21593
21594
  } from "react";
21594
- import { useMemo as useMemo20, useRef as useRef11 } from "react";
21595
+ import { useMemo as useMemo21, useRef as useRef11 } from "react";
21595
21596
  import { jsx as jsx19, jsxs as jsxs2 } from "react/jsx-runtime";
21596
21597
  import { useRef as useRef13 } from "react";
21597
- import { useContext as useContext23, useEffect as useEffect8, useMemo as useMemo22, useState as useState11 } from "react";
21598
- import { useContext as useContext22 } from "react";
21598
+ import { useContext as useContext24, useEffect as useEffect8, useMemo as useMemo23, useState as useState11 } from "react";
21599
+ import { useContext as useContext23 } from "react";
21599
21600
  import {
21600
21601
  useCallback as useCallback12,
21601
- useContext as useContext26,
21602
+ useContext as useContext27,
21602
21603
  useEffect as useEffect12,
21603
21604
  useLayoutEffect as useLayoutEffect7,
21604
21605
  useRef as useRef18
21605
21606
  } from "react";
21606
- import { useCallback as useCallback11, useMemo as useMemo25, useRef as useRef16 } from "react";
21607
- import { useContext as useContext25, useMemo as useMemo24 } from "react";
21607
+ import { useCallback as useCallback11, useMemo as useMemo26, useRef as useRef16 } from "react";
21608
+ import { useContext as useContext26, useMemo as useMemo25 } from "react";
21608
21609
  import React21, {
21609
21610
  useCallback as useCallback10,
21610
- useContext as useContext24,
21611
+ useContext as useContext25,
21611
21612
  useEffect as useEffect9,
21612
21613
  useLayoutEffect as useLayoutEffect6,
21613
- useMemo as useMemo23,
21614
+ useMemo as useMemo24,
21614
21615
  useRef as useRef15,
21615
21616
  useState as useState12
21616
21617
  } from "react";
@@ -21619,15 +21620,15 @@ import React22 from "react";
21619
21620
  import { useEffect as useEffect10, useState as useState13 } from "react";
21620
21621
  import { useEffect as useEffect11, useRef as useRef17 } from "react";
21621
21622
  import { useEffect as useEffect13 } from "react";
21622
- import { createContext as createContext22, useContext as useContext27, useMemo as useMemo26 } from "react";
21623
+ import { createContext as createContext22, useContext as useContext28, useMemo as useMemo27 } from "react";
21623
21624
  import { jsx as jsx21 } from "react/jsx-runtime";
21624
21625
  import {
21625
21626
  forwardRef as forwardRef6,
21626
- useContext as useContext29,
21627
+ useContext as useContext30,
21627
21628
  useEffect as useEffect15,
21628
21629
  useImperativeHandle as useImperativeHandle5,
21629
21630
  useLayoutEffect as useLayoutEffect8,
21630
- useMemo as useMemo28,
21631
+ useMemo as useMemo29,
21631
21632
  useRef as useRef20
21632
21633
  } from "react";
21633
21634
  import { jsx as jsx22 } from "react/jsx-runtime";
@@ -21637,7 +21638,7 @@ import {
21637
21638
  useCallback as useCallback15,
21638
21639
  useEffect as useEffect16,
21639
21640
  useImperativeHandle as useImperativeHandle6,
21640
- useMemo as useMemo29,
21641
+ useMemo as useMemo30,
21641
21642
  useRef as useRef21,
21642
21643
  useState as useState15
21643
21644
  } from "react";
@@ -21646,19 +21647,19 @@ import {
21646
21647
  createContext as createContext23,
21647
21648
  forwardRef as forwardRef9,
21648
21649
  useCallback as useCallback16,
21649
- useContext as useContext31,
21650
+ useContext as useContext32,
21650
21651
  useLayoutEffect as useLayoutEffect9,
21651
- useMemo as useMemo30,
21652
+ useMemo as useMemo31,
21652
21653
  useRef as useRef22
21653
21654
  } from "react";
21654
21655
  import { jsx as jsx25 } from "react/jsx-runtime";
21655
21656
  import {
21656
21657
  forwardRef as forwardRef10,
21657
21658
  useCallback as useCallback17,
21658
- useContext as useContext32,
21659
+ useContext as useContext33,
21659
21660
  useImperativeHandle as useImperativeHandle7,
21660
21661
  useLayoutEffect as useLayoutEffect10,
21661
- useMemo as useMemo31,
21662
+ useMemo as useMemo32,
21662
21663
  useRef as useRef23,
21663
21664
  useState as useState16
21664
21665
  } from "react";
@@ -21667,7 +21668,7 @@ import { forwardRef as forwardRef11, useCallback as useCallback18, useState as u
21667
21668
  import { jsx as jsx27 } from "react/jsx-runtime";
21668
21669
  import {
21669
21670
  useCallback as useCallback19,
21670
- useContext as useContext33,
21671
+ useContext as useContext34,
21671
21672
  useLayoutEffect as useLayoutEffect11,
21672
21673
  useRef as useRef24,
21673
21674
  useState as useState18
@@ -21680,59 +21681,59 @@ import React31 from "react";
21680
21681
  import {
21681
21682
  useCallback as useCallback21,
21682
21683
  useImperativeHandle as useImperativeHandle8,
21683
- useMemo as useMemo32,
21684
+ useMemo as useMemo33,
21684
21685
  useRef as useRef26,
21685
21686
  useState as useState19
21686
21687
  } from "react";
21687
21688
  import { jsx as jsx30 } from "react/jsx-runtime";
21688
21689
  import React32 from "react";
21689
- import { useMemo as useMemo34 } from "react";
21690
- import { createContext as createContext24, useContext as useContext34, useMemo as useMemo33 } from "react";
21690
+ import { useMemo as useMemo35 } from "react";
21691
+ import { createContext as createContext24, useContext as useContext35, useMemo as useMemo34 } from "react";
21691
21692
  import { jsx as jsx31 } from "react/jsx-runtime";
21692
21693
  import { jsx as jsx32 } from "react/jsx-runtime";
21693
21694
  import React34 from "react";
21694
21695
  import React35, { createContext as createContext25 } from "react";
21695
- import React36, { useContext as useContext35 } from "react";
21696
+ import React36, { useContext as useContext36 } from "react";
21696
21697
  import { useCallback as useCallback24 } from "react";
21697
21698
  import {
21698
21699
  useCallback as useCallback22,
21699
- useContext as useContext36,
21700
+ useContext as useContext37,
21700
21701
  useEffect as useEffect17,
21701
21702
  useLayoutEffect as useLayoutEffect12,
21702
- useMemo as useMemo35,
21703
+ useMemo as useMemo36,
21703
21704
  useState as useState20
21704
21705
  } from "react";
21705
21706
  import { jsx as jsx33 } from "react/jsx-runtime";
21706
21707
  import React38, {
21707
21708
  forwardRef as forwardRef13,
21708
21709
  useCallback as useCallback23,
21709
- useContext as useContext37,
21710
+ useContext as useContext38,
21710
21711
  useEffect as useEffect19,
21711
21712
  useImperativeHandle as useImperativeHandle9,
21712
- useMemo as useMemo36,
21713
+ useMemo as useMemo37,
21713
21714
  useRef as useRef27,
21714
21715
  useState as useState21
21715
21716
  } from "react";
21716
21717
  import { useEffect as useEffect18 } from "react";
21717
21718
  import { jsx as jsx34 } from "react/jsx-runtime";
21718
21719
  import { jsx as jsx35 } from "react/jsx-runtime";
21719
- import React40, { useMemo as useMemo37 } from "react";
21720
+ import React40, { useMemo as useMemo38 } from "react";
21720
21721
  import { jsx as jsx36 } from "react/jsx-runtime";
21721
21722
  import React42, {
21722
21723
  forwardRef as forwardRef14,
21723
- useMemo as useMemo38
21724
+ useMemo as useMemo39
21724
21725
  } from "react";
21725
21726
  import React41 from "react";
21726
21727
  import { jsx as jsx37, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
21727
21728
  import React43 from "react";
21728
- import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as useContext39 } from "react";
21729
+ import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as useContext40 } from "react";
21729
21730
  import {
21730
21731
  forwardRef as forwardRef15,
21731
- useContext as useContext38,
21732
+ useContext as useContext39,
21732
21733
  useEffect as useEffect20,
21733
21734
  useImperativeHandle as useImperativeHandle10,
21734
21735
  useLayoutEffect as useLayoutEffect13,
21735
- useMemo as useMemo39,
21736
+ useMemo as useMemo40,
21736
21737
  useRef as useRef28
21737
21738
  } from "react";
21738
21739
  import { jsx as jsx38 } from "react/jsx-runtime";
@@ -22923,7 +22924,7 @@ var getSingleChildComponent = (children) => {
22923
22924
  }
22924
22925
  return child.type;
22925
22926
  };
22926
- var VERSION = "4.0.494";
22927
+ var VERSION = "4.0.495";
22927
22928
  var checkMultipleRemotionVersions = () => {
22928
22929
  if (typeof globalThis === "undefined") {
22929
22930
  return;
@@ -23416,15 +23417,19 @@ var premountSchema = {
23416
23417
  description: "Premount For",
23417
23418
  min: 0,
23418
23419
  step: 1,
23419
- hiddenFromList: false
23420
+ hiddenFromList: false,
23421
+ keyframable: false
23420
23422
  },
23421
23423
  postmountFor: {
23422
23424
  type: "number",
23423
23425
  default: 0,
23424
23426
  min: 0,
23425
23427
  step: 1,
23426
- hiddenFromList: true
23427
- },
23428
+ hiddenFromList: true,
23429
+ keyframable: false
23430
+ }
23431
+ };
23432
+ var premountStyleSchema = {
23428
23433
  styleWhilePremounted: {
23429
23434
  type: "hidden"
23430
23435
  },
@@ -23432,10 +23437,13 @@ var premountSchema = {
23432
23437
  type: "hidden"
23433
23438
  }
23434
23439
  };
23435
- var sequencePremountSchema = premountSchema;
23440
+ var sequencePremountSchema = {
23441
+ ...premountSchema,
23442
+ ...premountStyleSchema
23443
+ };
23436
23444
  var sequenceStyleSchema = {
23437
23445
  ...transformSchema,
23438
- ...premountSchema
23446
+ ...sequencePremountSchema
23439
23447
  };
23440
23448
  var hiddenField = {
23441
23449
  type: "boolean",
@@ -23520,9 +23528,6 @@ var sequenceSchemaDefaultLayoutNone = {
23520
23528
  default: "none"
23521
23529
  }
23522
23530
  };
23523
- var PremountContext = createContext14({
23524
- premountFramesRemaining: 0
23525
- });
23526
23531
  var SequenceManager = React12.createContext({
23527
23532
  registerSequence: () => {
23528
23533
  throw new Error("SequenceManagerContext not initialized");
@@ -23702,7 +23707,7 @@ var SequenceManagerProvider = ({ children }) => {
23702
23707
  })
23703
23708
  });
23704
23709
  };
23705
- var IsInsideSeriesContext = createContext15(false);
23710
+ var IsInsideSeriesContext = createContext14(false);
23706
23711
  var IsInsideSeriesContainer = ({ children }) => {
23707
23712
  return /* @__PURE__ */ jsx11(IsInsideSeriesContext.Provider, {
23708
23713
  value: true,
@@ -23721,7 +23726,61 @@ var useRequireToBeInsideSeries = () => {
23721
23726
  throw new Error("This component must be inside a <Series /> component.");
23722
23727
  }
23723
23728
  };
23729
+ var PremountContext = createContext15({
23730
+ premountFramesRemaining: 0
23731
+ });
23724
23732
  var ENABLE_V5_BREAKING_CHANGES = false;
23733
+ var usePremounting = ({
23734
+ from,
23735
+ durationInFrames,
23736
+ premountFor,
23737
+ postmountFor,
23738
+ style,
23739
+ styleWhilePremounted,
23740
+ styleWhilePostmounted,
23741
+ hideWhilePremounted
23742
+ }) => {
23743
+ const parentPremountContext = useContext15(PremountContext);
23744
+ const frame = useCurrentFrame() - parentPremountContext.premountFramesRemaining;
23745
+ const environment = useRemotionEnvironment();
23746
+ const { fps } = useVideoConfig();
23747
+ const effectivePremountFor = ENABLE_V5_BREAKING_CHANGES ? premountFor ?? fps : premountFor ?? 0;
23748
+ const effectivePostmountFor = postmountFor ?? 0;
23749
+ const endThreshold = Math.ceil(from + durationInFrames - 1);
23750
+ const premountingActive = !environment.isRendering && frame < from && frame >= from - effectivePremountFor;
23751
+ const postmountingActive = !environment.isRendering && frame > endThreshold && frame <= endThreshold + effectivePostmountFor;
23752
+ const isPremountingOrPostmounting = premountingActive || postmountingActive;
23753
+ const freezeFrame = premountingActive ? from : postmountingActive ? from + durationInFrames - 1 : 0;
23754
+ const premountingStyle = useMemo13(() => {
23755
+ if (!isPremountingOrPostmounting) {
23756
+ return style;
23757
+ }
23758
+ return {
23759
+ ...style,
23760
+ ...hideWhilePremounted === "opacity" ? { opacity: 0 } : { display: "none" },
23761
+ pointerEvents: "none",
23762
+ ...premountingActive ? styleWhilePremounted : {},
23763
+ ...postmountingActive ? styleWhilePostmounted : {}
23764
+ };
23765
+ }, [
23766
+ isPremountingOrPostmounting,
23767
+ hideWhilePremounted,
23768
+ postmountingActive,
23769
+ premountingActive,
23770
+ style,
23771
+ styleWhilePostmounted,
23772
+ styleWhilePremounted
23773
+ ]);
23774
+ return {
23775
+ effectivePremountFor,
23776
+ effectivePostmountFor,
23777
+ premountingActive,
23778
+ postmountingActive,
23779
+ isPremountingOrPostmounting,
23780
+ freezeFrame,
23781
+ premountingStyle
23782
+ };
23783
+ };
23725
23784
  var deleteNestedKey = (obj, keysToRemove) => {
23726
23785
  for (const key of keysToRemove) {
23727
23786
  const parts = key.split(".");
@@ -25545,10 +25604,10 @@ var useMemoizedEffects = ({
25545
25604
  overrideId
25546
25605
  }) => {
25547
25606
  const previousRef = useRef5(null);
25548
- const { propStatuses } = useContext15(VisualModePropStatusesContext);
25549
- const { getEffectDragOverrides } = useContext15(VisualModeDragOverridesContext);
25607
+ const { propStatuses } = useContext16(VisualModePropStatusesContext);
25608
+ const { getEffectDragOverrides } = useContext16(VisualModeDragOverridesContext);
25550
25609
  const frame = useCurrentFrame();
25551
- const { overrideIdToNodePathMappings } = useContext15(OverrideIdsToNodePathsGettersContext);
25610
+ const { overrideIdToNodePathMappings } = useContext16(OverrideIdsToNodePathsGettersContext);
25552
25611
  const previous = previousRef.current;
25553
25612
  const nodePath = overrideId ? overrideIdToNodePathMappings[overrideId] ?? null : null;
25554
25613
  const resolved = effects.map((descriptor, index) => {
@@ -25892,9 +25951,9 @@ var withInteractivitySchema = ({
25892
25951
  ref
25893
25952
  });
25894
25953
  }
25895
- const { propStatuses } = useContext16(VisualModePropStatusesContext);
25896
- const { getDragOverrides } = useContext16(VisualModeDragOverridesContext);
25897
- const nodePathMapping = useContext16(OverrideIdsToNodePathsGettersContext);
25954
+ const { propStatuses } = useContext17(VisualModePropStatusesContext);
25955
+ const { getDragOverrides } = useContext17(VisualModeDragOverridesContext);
25956
+ const nodePathMapping = useContext17(OverrideIdsToNodePathsGettersContext);
25898
25957
  const frame = useCurrentFrame();
25899
25958
  if (props.controls) {
25900
25959
  return React14.createElement(Component, {
@@ -25921,8 +25980,8 @@ var withInteractivitySchema = ({
25921
25980
  key,
25922
25981
  props
25923
25982
  }));
25924
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
25925
- const controls = useMemo13(() => {
25983
+ const currentRuntimeValueDotNotation = useMemo14(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
25984
+ const controls = useMemo14(() => {
25926
25985
  return {
25927
25986
  schema: schemaWithSequenceName,
25928
25987
  currentRuntimeValueDotNotation,
@@ -25932,7 +25991,7 @@ var withInteractivitySchema = ({
25932
25991
  componentName
25933
25992
  };
25934
25993
  }, [currentRuntimeValueDotNotation, overrideId]);
25935
- const { merged: valuesDotNotation, propsToDelete } = useMemo13(() => {
25994
+ const { merged: valuesDotNotation, propsToDelete } = useMemo14(() => {
25936
25995
  return computeEffectiveSchemaValuesDotNotation({
25937
25996
  schema: schemaWithSequenceName,
25938
25997
  currentValue: currentRuntimeValueDotNotation,
@@ -25990,7 +26049,7 @@ var RegularSequenceRefForwardingFunction = ({
25990
26049
  }, ref) => {
25991
26050
  const { layout = "absolute-fill" } = other;
25992
26051
  const [id] = useState5(() => String(Math.random()));
25993
- const parentSequence = useContext17(SequenceContext);
26052
+ const parentSequence = useContext18(SequenceContext);
25994
26053
  const { rootId } = useTimelineContext();
25995
26054
  const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
25996
26055
  const nonce = useNonce();
@@ -26041,13 +26100,13 @@ var RegularSequenceRefForwardingFunction = ({
26041
26100
  const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
26042
26101
  const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
26043
26102
  const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
26044
- const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
26103
+ const { registerSequence, unregisterSequence } = useContext18(SequenceManager);
26045
26104
  const wrapperRefForOutline = useRef6(null);
26046
26105
  const refForOutline = other.layout === "none" ? passedRefForOutline ?? null : passedRefForOutline ?? wrapperRefForOutline;
26047
- const premounting = useMemo14(() => {
26106
+ const premounting = useMemo15(() => {
26048
26107
  return parentSequence?.premounting || Boolean(other._remotionInternalIsPremounting);
26049
26108
  }, [other._remotionInternalIsPremounting, parentSequence?.premounting]);
26050
- const postmounting = useMemo14(() => {
26109
+ const postmounting = useMemo15(() => {
26051
26110
  return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
26052
26111
  }, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
26053
26112
  const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
@@ -26055,7 +26114,7 @@ var RegularSequenceRefForwardingFunction = ({
26055
26114
  const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
26056
26115
  const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
26057
26116
  const cumulatedNegativeFrom = currentSequenceStart - firstFrame;
26058
- const contextValue = useMemo14(() => {
26117
+ const contextValue = useMemo15(() => {
26059
26118
  return {
26060
26119
  absoluteFrom,
26061
26120
  cumulatedFrom,
@@ -26086,12 +26145,12 @@ var RegularSequenceRefForwardingFunction = ({
26086
26145
  postmountDisplay,
26087
26146
  cumulatedNegativeFrom
26088
26147
  ]);
26089
- const timelineClipName = useMemo14(() => {
26148
+ const timelineClipName = useMemo15(() => {
26090
26149
  return name ?? "";
26091
26150
  }, [name]);
26092
26151
  const resolvedDocumentationLink = documentationLink ?? "https://www.remotion.dev/docs/sequence";
26093
26152
  const env = useRemotionEnvironment();
26094
- const isInsideSeries = useContext17(IsInsideSeriesContext);
26153
+ const isInsideSeries = useContext18(IsInsideSeriesContext);
26095
26154
  const inheritedStack = other?.stack ?? null;
26096
26155
  const stackRef = useRef6(null);
26097
26156
  stackRef.current = stack ?? inheritedStack;
@@ -26239,7 +26298,7 @@ var RegularSequenceRefForwardingFunction = ({
26239
26298
  ref.current = node;
26240
26299
  }
26241
26300
  }, [ref]);
26242
- const defaultStyle = useMemo14(() => {
26301
+ const defaultStyle = useMemo15(() => {
26243
26302
  return {
26244
26303
  flexDirection: undefined,
26245
26304
  ...width ? { width } : {},
@@ -26265,8 +26324,6 @@ var RegularSequenceRefForwardingFunction = ({
26265
26324
  };
26266
26325
  var RegularSequence = forwardRef3(RegularSequenceRefForwardingFunction);
26267
26326
  var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
26268
- const parentPremountContext = useContext17(PremountContext);
26269
- const frame = useCurrentFrame() - parentPremountContext.premountFramesRemaining;
26270
26327
  if (props.layout === "none") {
26271
26328
  throw new Error('`<Sequence>` with `premountFor` and `postmountFor` props does not support layout="none"');
26272
26329
  }
@@ -26280,34 +26337,30 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
26280
26337
  styleWhilePostmounted,
26281
26338
  ...otherProps
26282
26339
  } = props;
26283
- const endThreshold = Math.ceil(from + durationInFrames - 1);
26284
- const premountingActive = frame < from && frame >= from - premountFor;
26285
- const postmountingActive = frame > endThreshold && frame <= endThreshold + postmountFor;
26286
- const freezeFrame = premountingActive ? from : postmountingActive ? from + durationInFrames - 1 : 0;
26287
- const isFreezingActive = premountingActive || postmountingActive;
26288
- const style = useMemo14(() => {
26289
- return {
26290
- ...passedStyle,
26291
- opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
26292
- pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
26293
- ...premountingActive ? styleWhilePremounted : {},
26294
- ...postmountingActive ? styleWhilePostmounted : {}
26295
- };
26296
- }, [
26297
- passedStyle,
26298
- premountingActive,
26340
+ const {
26341
+ freezeFrame,
26342
+ isPremountingOrPostmounting,
26299
26343
  postmountingActive,
26300
- styleWhilePremounted,
26301
- styleWhilePostmounted
26302
- ]);
26344
+ premountingActive,
26345
+ premountingStyle
26346
+ } = usePremounting({
26347
+ from,
26348
+ durationInFrames,
26349
+ premountFor,
26350
+ postmountFor,
26351
+ style: passedStyle ?? null,
26352
+ styleWhilePremounted: styleWhilePremounted ?? null,
26353
+ styleWhilePostmounted: styleWhilePostmounted ?? null,
26354
+ hideWhilePremounted: "opacity"
26355
+ });
26303
26356
  return /* @__PURE__ */ jsx12(Freeze, {
26304
26357
  frame: freezeFrame,
26305
- active: isFreezingActive,
26358
+ active: isPremountingOrPostmounting,
26306
26359
  children: /* @__PURE__ */ jsx12(SequenceInner, {
26307
26360
  ref,
26308
26361
  from,
26309
26362
  durationInFrames,
26310
- style,
26363
+ style: premountingStyle ?? undefined,
26311
26364
  _remotionInternalPremountDisplay: premountFor,
26312
26365
  _remotionInternalPostmountDisplay: postmountFor,
26313
26366
  _remotionInternalIsPremounting: premountingActive,
@@ -26643,7 +26696,7 @@ var useEffectChainState = () => {
26643
26696
  }
26644
26697
  };
26645
26698
  }, []);
26646
- return useMemo15(() => ({
26699
+ return useMemo16(() => ({
26647
26700
  get: (width, height) => {
26648
26701
  if (!sizeRef.current || sizeRef.current.width !== width || sizeRef.current.height !== height) {
26649
26702
  if (chainStateRef.current) {
@@ -26659,7 +26712,7 @@ var useEffectChainState = () => {
26659
26712
  var CanvasRefForwardingFunction = ({ width, height, fit, className, style, effects, ...props }, ref) => {
26660
26713
  const canvasRef = useRef8(null);
26661
26714
  const chainState = useEffectChainState();
26662
- const sourceCanvas = useMemo16(() => {
26715
+ const sourceCanvas = useMemo17(() => {
26663
26716
  if (typeof document === "undefined") {
26664
26717
  return null;
26665
26718
  }
@@ -27216,7 +27269,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
27216
27269
  };
27217
27270
  }
27218
27271
  }, []);
27219
- const contextValue = useMemo17(() => {
27272
+ const contextValue = useMemo18(() => {
27220
27273
  return {
27221
27274
  registerRenderAsset,
27222
27275
  unregisterRenderAsset,
@@ -27230,7 +27283,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
27230
27283
  };
27231
27284
  var ArtifactThumbnail = Symbol("Thumbnail");
27232
27285
  var Artifact = ({ filename, content, downloadBehavior }) => {
27233
- const { registerRenderAsset, unregisterRenderAsset } = useContext18(RenderAssetManager);
27286
+ const { registerRenderAsset, unregisterRenderAsset } = useContext19(RenderAssetManager);
27234
27287
  const env = useRemotionEnvironment();
27235
27288
  const frame = useCurrentFrame();
27236
27289
  const [id] = useState8(() => {
@@ -27345,14 +27398,14 @@ var Loop = ({
27345
27398
  const iteration = Math.floor(currentFrame / durationInFrames);
27346
27399
  const start = iteration * durationInFrames;
27347
27400
  const from = Math.min(start, maxFrame);
27348
- const loopDisplay = useMemo18(() => {
27401
+ const loopDisplay = useMemo19(() => {
27349
27402
  return {
27350
27403
  numberOfTimes: Math.min(compDuration / durationInFrames, times),
27351
27404
  startOffset: -from,
27352
27405
  durationInFrames
27353
27406
  };
27354
27407
  }, [compDuration, durationInFrames, from, times]);
27355
- const loopContext = useMemo18(() => {
27408
+ const loopContext = useMemo19(() => {
27356
27409
  return {
27357
27410
  iteration: Math.floor(currentFrame / durationInFrames),
27358
27411
  durationInFrames
@@ -27421,7 +27474,7 @@ var getSrcWithoutHash = (src) => {
27421
27474
  return src.slice(0, hashIndex);
27422
27475
  };
27423
27476
  var usePreload = (src) => {
27424
- const preloads2 = useContext19(PreloadContext);
27477
+ const preloads2 = useContext20(PreloadContext);
27425
27478
  const hashFragmentIndex = removeAndGetHashFragment(src);
27426
27479
  const withoutHashFragment = getSrcWithoutHash(src);
27427
27480
  if (!preloads2[withoutHashFragment]) {
@@ -27724,7 +27777,7 @@ var DurationsContext = createContext20({
27724
27777
  });
27725
27778
  var DurationsContextProvider = ({ children }) => {
27726
27779
  const [durations, setDurations] = useReducer(durationReducer, {});
27727
- const value = useMemo19(() => {
27780
+ const value = useMemo20(() => {
27728
27781
  return {
27729
27782
  durations,
27730
27783
  setDurations
@@ -27863,7 +27916,7 @@ var useSingletonAudioContext = ({
27863
27916
  if (sampleRate !== initialSampleRate.current) {
27864
27917
  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.`);
27865
27918
  }
27866
- const context = useMemo20(() => {
27919
+ const context = useMemo21(() => {
27867
27920
  if (env.isRendering) {
27868
27921
  return null;
27869
27922
  }
@@ -27997,9 +28050,9 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
27997
28050
  });
27998
28051
  const audioContextIsPlayingEventually = useRef12(false);
27999
28052
  const isResuming = useRef12(null);
28000
- const audioSyncAnchor = useMemo21(() => ({ value: 0 }), []);
28053
+ const audioSyncAnchor = useMemo22(() => ({ value: 0 }), []);
28001
28054
  const audioSyncAnchorListeners = useRef12([]);
28002
- const audioSyncAnchorEmitter = useMemo21(() => {
28055
+ const audioSyncAnchorEmitter = useMemo22(() => {
28003
28056
  return {
28004
28057
  dispatch: (event2) => {
28005
28058
  audioSyncAnchorListeners.current.forEach((l) => l(event2));
@@ -28019,7 +28072,7 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
28019
28072
  const unscheduleAudioNode = useCallback9((node) => {
28020
28073
  nodesToResume.current.delete(node);
28021
28074
  }, []);
28022
- const scheduleAudioNode = useMemo21(() => {
28075
+ const scheduleAudioNode = useMemo22(() => {
28023
28076
  return ({
28024
28077
  node,
28025
28078
  mediaTimestamp,
@@ -28111,7 +28164,7 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
28111
28164
  audioContextIsPlayingEventually.current = false;
28112
28165
  return ctxAndGain.suspend();
28113
28166
  }, [ctxAndGain]);
28114
- const audioContextValue = useMemo21(() => {
28167
+ const audioContextValue = useMemo22(() => {
28115
28168
  return {
28116
28169
  audioContext: ctxAndGain?.audioContext ?? null,
28117
28170
  getAudioContextState: () => ctxAndGain?.getState() ?? null,
@@ -28148,10 +28201,10 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
28148
28201
  const logLevel = useLogLevel();
28149
28202
  const mountTime = useMountTime();
28150
28203
  const env = useRemotionEnvironment();
28151
- const audioCtx = useContext20(SharedAudioContext);
28204
+ const audioCtx = useContext21(SharedAudioContext);
28152
28205
  const audioContext = audioCtx?.audioContext ?? null;
28153
28206
  const resume = audioCtx?.resume;
28154
- const refs = useMemo21(() => {
28207
+ const refs = useMemo22(() => {
28155
28208
  return new Array(numberOfAudioTags).fill(true).map(() => {
28156
28209
  const ref = createRef2();
28157
28210
  return {
@@ -28290,7 +28343,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
28290
28343
  });
28291
28344
  resume?.();
28292
28345
  }, [logLevel, mountTime, refs, env.isPlayer, resume]);
28293
- const audioTagsValue = useMemo21(() => {
28346
+ const audioTagsValue = useMemo22(() => {
28294
28347
  return {
28295
28348
  registerAudio,
28296
28349
  unregisterAudio,
@@ -28305,7 +28358,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
28305
28358
  unregisterAudio,
28306
28359
  updateAudio
28307
28360
  ]);
28308
- const sharedAudioTagElements = useMemo21(() => {
28361
+ const sharedAudioTagElements = useMemo22(() => {
28309
28362
  return refs.map(({ id, ref }) => {
28310
28363
  return /* @__PURE__ */ jsx19("audio", {
28311
28364
  ref,
@@ -28328,8 +28381,8 @@ var useSharedAudio = ({
28328
28381
  premounting,
28329
28382
  postmounting
28330
28383
  }) => {
28331
- const audioCtx = useContext20(SharedAudioContext);
28332
- const tagsCtx = useContext20(SharedAudioTagsContext);
28384
+ const audioCtx = useContext21(SharedAudioContext);
28385
+ const tagsCtx = useContext21(SharedAudioTagsContext);
28333
28386
  const [elem] = useState10(() => {
28334
28387
  if (tagsCtx && tagsCtx.numberOfAudioTags > 0) {
28335
28388
  return tagsCtx.registerAudio({ aud, audioId, premounting, postmounting });
@@ -28508,7 +28561,7 @@ var useVolume = ({
28508
28561
  const audioStuffRef = useRef14(null);
28509
28562
  const currentVolumeRef = useRef14(volume);
28510
28563
  currentVolumeRef.current = volume;
28511
- const sharedAudioContext = useContext21(SharedAudioContext);
28564
+ const sharedAudioContext = useContext22(SharedAudioContext);
28512
28565
  if (!sharedAudioContext) {
28513
28566
  throw new Error("useAmplification must be used within a SharedAudioContext");
28514
28567
  }
@@ -28573,7 +28626,7 @@ var useVolume = ({
28573
28626
  return audioStuffRef;
28574
28627
  };
28575
28628
  var useMediaStartsAt = () => {
28576
- const parentSequence = useContext22(SequenceContext);
28629
+ const parentSequence = useContext23(SequenceContext);
28577
28630
  return parentSequence?.cumulatedNegativeFrom ?? 0;
28578
28631
  };
28579
28632
  var useFrameForVolumeProp = (behavior) => {
@@ -28662,7 +28715,7 @@ var useBasicMediaInTimeline = ({
28662
28715
  if (!src) {
28663
28716
  throw new Error("No src passed");
28664
28717
  }
28665
- const parentSequence = useContext23(SequenceContext);
28718
+ const parentSequence = useContext24(SequenceContext);
28666
28719
  const [initialVolume] = useState11(() => volume);
28667
28720
  const duration = getTimelineDuration({
28668
28721
  compositionDurationInFrames: sequenceDurationInFrames,
@@ -28672,7 +28725,7 @@ var useBasicMediaInTimeline = ({
28672
28725
  parentSequenceDurationInFrames: parentSequence?.durationInFrames ?? null,
28673
28726
  loop
28674
28727
  });
28675
- const volumes = useMemo22(() => {
28728
+ const volumes = useMemo23(() => {
28676
28729
  if (typeof volume === "number") {
28677
28730
  return volume;
28678
28731
  }
@@ -28693,7 +28746,7 @@ var useBasicMediaInTimeline = ({
28693
28746
  const nonce = useNonce();
28694
28747
  const { rootId } = useTimelineContext();
28695
28748
  const startMediaFrom = 0 - mediaStartsAt + (trimBefore ?? 0);
28696
- const memoizedResult = useMemo22(() => {
28749
+ const memoizedResult = useMemo23(() => {
28697
28750
  return {
28698
28751
  volumes,
28699
28752
  duration,
@@ -28734,9 +28787,9 @@ var useMediaInTimeline = ({
28734
28787
  documentationLink,
28735
28788
  refForOutline
28736
28789
  }) => {
28737
- const parentSequence = useContext23(SequenceContext);
28790
+ const parentSequence = useContext24(SequenceContext);
28738
28791
  const startsAt = useMediaStartsAt();
28739
- const { registerSequence, unregisterSequence } = useContext23(SequenceManager);
28792
+ const { registerSequence, unregisterSequence } = useContext24(SequenceManager);
28740
28793
  const { durationInFrames } = useVideoConfig();
28741
28794
  const mediaStartsAt = useMediaStartsAt();
28742
28795
  const { volumes, duration, doesVolumeChange, nonce, rootId, finalDisplayName } = useBasicMediaInTimeline({
@@ -28901,13 +28954,13 @@ var useBufferManager = (logLevel, mountTime) => {
28901
28954
  }
28902
28955
  }, [blocks]);
28903
28956
  }
28904
- return useMemo23(() => {
28957
+ return useMemo24(() => {
28905
28958
  return { addBlock, listenForBuffering, listenForResume, buffering };
28906
28959
  }, [addBlock, buffering, listenForBuffering, listenForResume]);
28907
28960
  };
28908
28961
  var BufferingContextReact = React21.createContext(null);
28909
28962
  var BufferingProvider = ({ children }) => {
28910
- const { logLevel, mountTime } = useContext24(LogLevelContext);
28963
+ const { logLevel, mountTime } = useContext25(LogLevelContext);
28911
28964
  const bufferManager = useBufferManager(logLevel ?? "info", mountTime);
28912
28965
  return /* @__PURE__ */ jsx20(BufferingContextReact.Provider, {
28913
28966
  value: bufferManager,
@@ -28933,10 +28986,10 @@ var useIsPlayerBuffering = (bufferManager) => {
28933
28986
  return isBuffering;
28934
28987
  };
28935
28988
  var useBufferState = () => {
28936
- const buffer = useContext25(BufferingContextReact);
28989
+ const buffer = useContext26(BufferingContextReact);
28937
28990
  const logLevel = useLogLevel();
28938
28991
  const addBlock = buffer ? buffer.addBlock : null;
28939
- return useMemo24(() => ({
28992
+ return useMemo25(() => ({
28940
28993
  delayPlayback: () => {
28941
28994
  if (!addBlock) {
28942
28995
  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");
@@ -29044,7 +29097,7 @@ var useBufferUntilFirstFrame = ({
29044
29097
  onVariableFpsVideoDetected,
29045
29098
  pauseWhenBuffering
29046
29099
  ]);
29047
- return useMemo25(() => {
29100
+ return useMemo26(() => {
29048
29101
  return {
29049
29102
  isBuffering: () => bufferingRef.current,
29050
29103
  bufferUntilFirstFrame
@@ -29418,7 +29471,7 @@ var useMediaPlayback = ({
29418
29471
  const frame = useCurrentFrame();
29419
29472
  const absoluteFrame = useTimelinePosition();
29420
29473
  const [playing] = usePlayingState();
29421
- const buffering = useContext26(BufferingContextReact);
29474
+ const buffering = useContext27(BufferingContextReact);
29422
29475
  const { fps } = useVideoConfig();
29423
29476
  const mediaStartsAt = useMediaStartsAt();
29424
29477
  const lastSeekDueToShift = useRef18(null);
@@ -29713,16 +29766,16 @@ var SetMediaVolumeContext = createContext22({
29713
29766
  }
29714
29767
  });
29715
29768
  var useMediaVolumeState = () => {
29716
- const { mediaVolume } = useContext27(MediaVolumeContext);
29717
- const { setMediaVolume } = useContext27(SetMediaVolumeContext);
29718
- return useMemo26(() => {
29769
+ const { mediaVolume } = useContext28(MediaVolumeContext);
29770
+ const { setMediaVolume } = useContext28(SetMediaVolumeContext);
29771
+ return useMemo27(() => {
29719
29772
  return [mediaVolume, setMediaVolume];
29720
29773
  }, [mediaVolume, setMediaVolume]);
29721
29774
  };
29722
29775
  var usePlayerMutedState = () => {
29723
- const { playerMuted } = useContext27(MediaVolumeContext);
29724
- const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
29725
- return useMemo26(() => {
29776
+ const { playerMuted } = useContext28(MediaVolumeContext);
29777
+ const { setPlayerMuted } = useContext28(SetMediaVolumeContext);
29778
+ return useMemo27(() => {
29726
29779
  return [playerMuted, setPlayerMuted];
29727
29780
  }, [playerMuted, setPlayerMuted]);
29728
29781
  };
@@ -29776,7 +29829,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
29776
29829
  throw new TypeError("No 'src' was passed to <Html5Audio>.");
29777
29830
  }
29778
29831
  const preloadedSrc = usePreload(src);
29779
- const sequenceContext = useContext28(SequenceContext);
29832
+ const sequenceContext = useContext29(SequenceContext);
29780
29833
  const [timelineId] = useState14(() => String(Math.random()));
29781
29834
  const userPreferredVolume = evaluateVolume({
29782
29835
  frame: volumePropFrame,
@@ -29789,7 +29842,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
29789
29842
  requestsVideoFrame: false,
29790
29843
  isClientSideRendering: false
29791
29844
  });
29792
- const propsToPass = useMemo27(() => {
29845
+ const propsToPass = useMemo28(() => {
29793
29846
  return {
29794
29847
  muted: muted || playerMuted || userPreferredVolume <= 0,
29795
29848
  src: preloadedSrc,
@@ -29806,7 +29859,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
29806
29859
  userPreferredVolume,
29807
29860
  crossOriginValue
29808
29861
  ]);
29809
- const id = useMemo27(() => `audio-${random(src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}-muted:${props.muted}-loop:${props.loop}`, [
29862
+ const id = useMemo28(() => `audio-${random(src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}-muted:${props.muted}-loop:${props.loop}`, [
29810
29863
  src,
29811
29864
  sequenceContext?.relativeFrom,
29812
29865
  sequenceContext?.cumulatedFrom,
@@ -29936,10 +29989,10 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
29936
29989
  const absoluteFrame = useTimelinePosition();
29937
29990
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
29938
29991
  const frame = useCurrentFrame();
29939
- const sequenceContext = useContext29(SequenceContext);
29940
- const { registerRenderAsset, unregisterRenderAsset } = useContext29(RenderAssetManager);
29992
+ const sequenceContext = useContext30(SequenceContext);
29993
+ const { registerRenderAsset, unregisterRenderAsset } = useContext30(RenderAssetManager);
29941
29994
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
29942
- const id = useMemo28(() => `audio-${random(props.src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}`, [
29995
+ const id = useMemo29(() => `audio-${random(props.src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}`, [
29943
29996
  props.src,
29944
29997
  sequenceContext?.relativeFrom,
29945
29998
  sequenceContext?.cumulatedFrom,
@@ -30046,7 +30099,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
30046
30099
  };
30047
30100
  var AudioForRendering = forwardRef6(AudioForRenderingRefForwardingFunction);
30048
30101
  var AudioRefForwardingFunction = (props, ref) => {
30049
- const audioTagsContext = useContext30(SharedAudioTagsContext);
30102
+ const audioTagsContext = useContext31(SharedAudioTagsContext);
30050
30103
  const propsWithFreeze = props;
30051
30104
  const {
30052
30105
  startFrom,
@@ -30070,7 +30123,7 @@ var AudioRefForwardingFunction = (props, ref) => {
30070
30123
  if (typeof freeze !== "undefined") {
30071
30124
  throw new TypeError('The "freeze" prop is not supported on <Html5Audio />. Use <Sequence freeze={...}> to freeze media playback.');
30072
30125
  }
30073
- const { durations, setDurations } = useContext30(DurationsContext);
30126
+ const { durations, setDurations } = useContext31(DurationsContext);
30074
30127
  if (typeof props.src !== "string") {
30075
30128
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
30076
30129
  }
@@ -30232,7 +30285,7 @@ var SolidInner = ({
30232
30285
  effects,
30233
30286
  overrideId: overrideId ?? null
30234
30287
  });
30235
- const sourceCanvas = useMemo29(() => {
30288
+ const sourceCanvas = useMemo30(() => {
30236
30289
  if (typeof document === "undefined") {
30237
30290
  return null;
30238
30291
  }
@@ -30300,7 +30353,7 @@ var SolidInner = ({
30300
30353
  cancelRender2,
30301
30354
  memoizedEffects
30302
30355
  ]);
30303
- const canvasStyle = useMemo29(() => {
30356
+ const canvasStyle = useMemo30(() => {
30304
30357
  return {
30305
30358
  width,
30306
30359
  height,
@@ -30449,7 +30502,7 @@ var HtmlInCanvasContent = forwardRef9(({
30449
30502
  controls,
30450
30503
  style
30451
30504
  }, ref) => {
30452
- const ancestor = useContext31(HtmlInCanvasAncestorContext);
30505
+ const ancestor = useContext32(HtmlInCanvasAncestorContext);
30453
30506
  assertHtmlInCanvasDimensions(width, height);
30454
30507
  const resolvedPixelDensity = resolveHtmlInCanvasPixelDensity(pixelDensity);
30455
30508
  const canvasWidth = Math.ceil(width * resolvedPixelDensity);
@@ -30668,20 +30721,20 @@ var HtmlInCanvasContent = forwardRef9(({
30668
30721
  continueRender2(handle);
30669
30722
  };
30670
30723
  }, [width, height, continueRender2, canvasSizeKey]);
30671
- const innerStyle = useMemo30(() => {
30724
+ const innerStyle = useMemo31(() => {
30672
30725
  return {
30673
30726
  width,
30674
30727
  height
30675
30728
  };
30676
30729
  }, [width, height]);
30677
- const canvasStyle = useMemo30(() => {
30730
+ const canvasStyle = useMemo31(() => {
30678
30731
  return {
30679
30732
  width,
30680
30733
  height,
30681
30734
  ...style ?? {}
30682
30735
  };
30683
30736
  }, [height, style, width]);
30684
- const ancestorValue = useMemo30(() => {
30737
+ const ancestorValue = useMemo31(() => {
30685
30738
  return {
30686
30739
  requestParentPaint: () => {
30687
30740
  canvas2dRef.current?.requestPaint?.();
@@ -30895,7 +30948,7 @@ var CanvasImageContent = forwardRef10(({
30895
30948
  effects,
30896
30949
  overrideId: controls?.overrideId ?? null
30897
30950
  });
30898
- const sequenceContext = useContext32(SequenceContext);
30951
+ const sequenceContext = useContext33(SequenceContext);
30899
30952
  const pendingLoadDelayRef = useRef23(null);
30900
30953
  const [isLoadPending, setIsLoadPending] = useState16(false);
30901
30954
  const isPremounting = Boolean(sequenceContext?.premounting);
@@ -30912,7 +30965,7 @@ var CanvasImageContent = forwardRef10(({
30912
30965
  continueRender2(pending.handle);
30913
30966
  pendingLoadDelayRef.current = null;
30914
30967
  }, [continueRender2]);
30915
- const sourceCanvas = useMemo31(() => {
30968
+ const sourceCanvas = useMemo32(() => {
30916
30969
  if (typeof document === "undefined") {
30917
30970
  return null;
30918
30971
  }
@@ -31234,7 +31287,7 @@ var ImgContent = ({
31234
31287
  const imageRef = useRef24(null);
31235
31288
  const errors = useRef24({});
31236
31289
  const { delayPlayback } = useBufferState();
31237
- const sequenceContext = useContext33(SequenceContext);
31290
+ const sequenceContext = useContext34(SequenceContext);
31238
31291
  const [isLoading, setIsLoading] = useState18(false);
31239
31292
  const _propsValid = true;
31240
31293
  if (!_propsValid) {
@@ -31583,7 +31636,10 @@ var makeRemotionComponentIdentity = ({
31583
31636
  };
31584
31637
  var interactiveElementSchema = {
31585
31638
  ...baseSchema,
31586
- ...transformSchema,
31639
+ ...transformSchema
31640
+ };
31641
+ var interactiveTextElementSchema = {
31642
+ ...interactiveElementSchema,
31587
31643
  ...textSchema,
31588
31644
  ...textContentSchema
31589
31645
  };
@@ -31599,7 +31655,7 @@ var withSchema = (options) => {
31599
31655
  addSequenceStackTraces(Wrapped);
31600
31656
  return Wrapped;
31601
31657
  };
31602
- var makeInteractiveElement = (tag, displayName) => {
31658
+ var makeInteractiveElement = (tag, displayName, schema) => {
31603
31659
  const Inner = forwardRef12((propsWithControls, ref) => {
31604
31660
  const {
31605
31661
  durationInFrames,
@@ -31645,12 +31701,18 @@ var makeInteractiveElement = (tag, displayName) => {
31645
31701
  packageName: "remotion",
31646
31702
  componentName: displayName.slice(1, -1)
31647
31703
  }),
31648
- schema: interactiveElementSchema,
31704
+ schema,
31649
31705
  supportsEffects: false
31650
31706
  });
31651
31707
  Wrapped.displayName = displayName;
31652
31708
  return Wrapped;
31653
31709
  };
31710
+ var makeInteractiveTextElement = (tag, displayName) => {
31711
+ return makeInteractiveElement(tag, displayName, interactiveTextElementSchema);
31712
+ };
31713
+ var makeInteractiveNonTextElement = (tag, displayName) => {
31714
+ return makeInteractiveElement(tag, displayName, interactiveElementSchema);
31715
+ };
31654
31716
  var Interactive = {
31655
31717
  baseSchema,
31656
31718
  transformSchema,
@@ -31659,41 +31721,41 @@ var Interactive = {
31659
31721
  sequenceSchema,
31660
31722
  withSchema,
31661
31723
  _internalMakeRemotionComponentIdentity: makeRemotionComponentIdentity,
31662
- A: makeInteractiveElement("a", "<Interactive.A>"),
31663
- Article: makeInteractiveElement("article", "<Interactive.Article>"),
31664
- Aside: makeInteractiveElement("aside", "<Interactive.Aside>"),
31665
- Button: makeInteractiveElement("button", "<Interactive.Button>"),
31666
- Circle: makeInteractiveElement("circle", "<Interactive.Circle>"),
31667
- Code: makeInteractiveElement("code", "<Interactive.Code>"),
31668
- Div: makeInteractiveElement("div", "<Interactive.Div>"),
31669
- Ellipse: makeInteractiveElement("ellipse", "<Interactive.Ellipse>"),
31670
- Em: makeInteractiveElement("em", "<Interactive.Em>"),
31671
- Footer: makeInteractiveElement("footer", "<Interactive.Footer>"),
31672
- G: makeInteractiveElement("g", "<Interactive.G>"),
31673
- H1: makeInteractiveElement("h1", "<Interactive.H1>"),
31674
- H2: makeInteractiveElement("h2", "<Interactive.H2>"),
31675
- H3: makeInteractiveElement("h3", "<Interactive.H3>"),
31676
- H4: makeInteractiveElement("h4", "<Interactive.H4>"),
31677
- H5: makeInteractiveElement("h5", "<Interactive.H5>"),
31678
- H6: makeInteractiveElement("h6", "<Interactive.H6>"),
31679
- Header: makeInteractiveElement("header", "<Interactive.Header>"),
31680
- Label: makeInteractiveElement("label", "<Interactive.Label>"),
31681
- Li: makeInteractiveElement("li", "<Interactive.Li>"),
31682
- Line: makeInteractiveElement("line", "<Interactive.Line>"),
31683
- Main: makeInteractiveElement("main", "<Interactive.Main>"),
31684
- Nav: makeInteractiveElement("nav", "<Interactive.Nav>"),
31685
- Ol: makeInteractiveElement("ol", "<Interactive.Ol>"),
31686
- P: makeInteractiveElement("p", "<Interactive.P>"),
31687
- Path: makeInteractiveElement("path", "<Interactive.Path>"),
31688
- Pre: makeInteractiveElement("pre", "<Interactive.Pre>"),
31689
- Rect: makeInteractiveElement("rect", "<Interactive.Rect>"),
31690
- Section: makeInteractiveElement("section", "<Interactive.Section>"),
31691
- Small: makeInteractiveElement("small", "<Interactive.Small>"),
31692
- Span: makeInteractiveElement("span", "<Interactive.Span>"),
31693
- Strong: makeInteractiveElement("strong", "<Interactive.Strong>"),
31694
- Svg: makeInteractiveElement("svg", "<Interactive.Svg>"),
31695
- Text: makeInteractiveElement("text", "<Interactive.Text>"),
31696
- Ul: makeInteractiveElement("ul", "<Interactive.Ul>")
31724
+ A: makeInteractiveTextElement("a", "<Interactive.A>"),
31725
+ Article: makeInteractiveTextElement("article", "<Interactive.Article>"),
31726
+ Aside: makeInteractiveTextElement("aside", "<Interactive.Aside>"),
31727
+ Button: makeInteractiveTextElement("button", "<Interactive.Button>"),
31728
+ Circle: makeInteractiveNonTextElement("circle", "<Interactive.Circle>"),
31729
+ Code: makeInteractiveTextElement("code", "<Interactive.Code>"),
31730
+ Div: makeInteractiveTextElement("div", "<Interactive.Div>"),
31731
+ Ellipse: makeInteractiveNonTextElement("ellipse", "<Interactive.Ellipse>"),
31732
+ Em: makeInteractiveTextElement("em", "<Interactive.Em>"),
31733
+ Footer: makeInteractiveTextElement("footer", "<Interactive.Footer>"),
31734
+ G: makeInteractiveNonTextElement("g", "<Interactive.G>"),
31735
+ H1: makeInteractiveTextElement("h1", "<Interactive.H1>"),
31736
+ H2: makeInteractiveTextElement("h2", "<Interactive.H2>"),
31737
+ H3: makeInteractiveTextElement("h3", "<Interactive.H3>"),
31738
+ H4: makeInteractiveTextElement("h4", "<Interactive.H4>"),
31739
+ H5: makeInteractiveTextElement("h5", "<Interactive.H5>"),
31740
+ H6: makeInteractiveTextElement("h6", "<Interactive.H6>"),
31741
+ Header: makeInteractiveTextElement("header", "<Interactive.Header>"),
31742
+ Label: makeInteractiveTextElement("label", "<Interactive.Label>"),
31743
+ Li: makeInteractiveTextElement("li", "<Interactive.Li>"),
31744
+ Line: makeInteractiveNonTextElement("line", "<Interactive.Line>"),
31745
+ Main: makeInteractiveTextElement("main", "<Interactive.Main>"),
31746
+ Nav: makeInteractiveTextElement("nav", "<Interactive.Nav>"),
31747
+ Ol: makeInteractiveTextElement("ol", "<Interactive.Ol>"),
31748
+ P: makeInteractiveTextElement("p", "<Interactive.P>"),
31749
+ Path: makeInteractiveNonTextElement("path", "<Interactive.Path>"),
31750
+ Pre: makeInteractiveTextElement("pre", "<Interactive.Pre>"),
31751
+ Rect: makeInteractiveNonTextElement("rect", "<Interactive.Rect>"),
31752
+ Section: makeInteractiveTextElement("section", "<Interactive.Section>"),
31753
+ Small: makeInteractiveTextElement("small", "<Interactive.Small>"),
31754
+ Span: makeInteractiveTextElement("span", "<Interactive.Span>"),
31755
+ Strong: makeInteractiveTextElement("strong", "<Interactive.Strong>"),
31756
+ Svg: makeInteractiveNonTextElement("svg", "<Interactive.Svg>"),
31757
+ Text: makeInteractiveTextElement("text", "<Interactive.Text>"),
31758
+ Ul: makeInteractiveTextElement("ul", "<Interactive.Ul>")
31697
31759
  };
31698
31760
  var compositionsRef = React31.createRef();
31699
31761
  var CompositionManagerProvider = ({
@@ -31750,7 +31812,7 @@ var CompositionManagerProvider = ({
31750
31812
  getCompositions: () => currentcompositionsRef.current
31751
31813
  };
31752
31814
  }, []);
31753
- const compositionManagerSetters = useMemo32(() => {
31815
+ const compositionManagerSetters = useMemo33(() => {
31754
31816
  return {
31755
31817
  registerComposition,
31756
31818
  unregisterComposition,
@@ -31766,7 +31828,7 @@ var CompositionManagerProvider = ({
31766
31828
  unregisterFolder,
31767
31829
  onlyRenderComposition
31768
31830
  ]);
31769
- const compositionManagerContextValue = useMemo32(() => {
31831
+ const compositionManagerContextValue = useMemo33(() => {
31770
31832
  return {
31771
31833
  compositions,
31772
31834
  folders,
@@ -31864,7 +31926,7 @@ var waitForRoot = (fn) => {
31864
31926
  };
31865
31927
  var MediaEnabledContext = createContext24(null);
31866
31928
  var useVideoEnabled = () => {
31867
- const context = useContext34(MediaEnabledContext);
31929
+ const context = useContext35(MediaEnabledContext);
31868
31930
  if (!context) {
31869
31931
  return window.remotion_videoEnabled;
31870
31932
  }
@@ -31874,7 +31936,7 @@ var useVideoEnabled = () => {
31874
31936
  return context.videoEnabled;
31875
31937
  };
31876
31938
  var useAudioEnabled = () => {
31877
- const context = useContext34(MediaEnabledContext);
31939
+ const context = useContext35(MediaEnabledContext);
31878
31940
  if (!context) {
31879
31941
  return window.remotion_audioEnabled;
31880
31942
  }
@@ -31888,7 +31950,7 @@ var MediaEnabledProvider = ({
31888
31950
  videoEnabled,
31889
31951
  audioEnabled
31890
31952
  }) => {
31891
- const value = useMemo33(() => ({ videoEnabled, audioEnabled }), [videoEnabled, audioEnabled]);
31953
+ const value = useMemo34(() => ({ videoEnabled, audioEnabled }), [videoEnabled, audioEnabled]);
31892
31954
  return /* @__PURE__ */ jsx31(MediaEnabledContext.Provider, {
31893
31955
  value,
31894
31956
  children
@@ -31904,13 +31966,13 @@ var RemotionRootContexts = ({
31904
31966
  audioEnabled,
31905
31967
  frameState
31906
31968
  }) => {
31907
- const nonceContext = useMemo34(() => {
31969
+ const nonceContext = useMemo35(() => {
31908
31970
  let counter = 0;
31909
31971
  return {
31910
31972
  getNonce: () => counter++
31911
31973
  };
31912
31974
  }, []);
31913
- const logging = useMemo34(() => {
31975
+ const logging = useMemo35(() => {
31914
31976
  return { logLevel, mountTime: Date.now() };
31915
31977
  }, [logLevel]);
31916
31978
  return /* @__PURE__ */ jsx32(LogLevelContext.Provider, {
@@ -32211,13 +32273,13 @@ var OffthreadVideoForRendering = ({
32211
32273
  const frame = useCurrentFrame();
32212
32274
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
32213
32275
  const videoConfig = useUnsafeVideoConfig();
32214
- const sequenceContext = useContext36(SequenceContext);
32276
+ const sequenceContext = useContext37(SequenceContext);
32215
32277
  const mediaStartsAt = useMediaStartsAt();
32216
- const { registerRenderAsset, unregisterRenderAsset } = useContext36(RenderAssetManager);
32278
+ const { registerRenderAsset, unregisterRenderAsset } = useContext37(RenderAssetManager);
32217
32279
  if (!src) {
32218
32280
  throw new TypeError("No `src` was passed to <OffthreadVideo>.");
32219
32281
  }
32220
- const id = useMemo35(() => `offthreadvideo-${random(src)}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
32282
+ const id = useMemo36(() => `offthreadvideo-${random(src)}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
32221
32283
  src,
32222
32284
  sequenceContext?.cumulatedFrom,
32223
32285
  sequenceContext?.relativeFrom,
@@ -32272,14 +32334,14 @@ var OffthreadVideoForRendering = ({
32272
32334
  sequenceContext?.cumulatedNegativeFrom,
32273
32335
  audioStreamIndex
32274
32336
  ]);
32275
- const currentTime = useMemo35(() => {
32337
+ const currentTime = useMemo36(() => {
32276
32338
  return getExpectedMediaFrameUncorrected({
32277
32339
  frame,
32278
32340
  playbackRate: playbackRate || 1,
32279
32341
  startFrom: -mediaStartsAt
32280
32342
  }) / videoConfig.fps;
32281
32343
  }, [frame, mediaStartsAt, playbackRate, videoConfig.fps]);
32282
- const actualSrc = useMemo35(() => {
32344
+ const actualSrc = useMemo36(() => {
32283
32345
  return getOffthreadVideoSource({
32284
32346
  src,
32285
32347
  currentTime,
@@ -32367,7 +32429,7 @@ var OffthreadVideoForRendering = ({
32367
32429
  cancelRender("Failed to load image with src " + imageSrc);
32368
32430
  }
32369
32431
  }, [imageSrc, onError]);
32370
- const className = useMemo35(() => {
32432
+ const className = useMemo36(() => {
32371
32433
  return [OBJECTFIT_CONTAIN_CLASS_NAME, props2.className].filter(truthy).join(" ");
32372
32434
  }, [props2.className]);
32373
32435
  const onImageFrame = useCallback22((img) => {
@@ -32431,12 +32493,12 @@ class MediaPlaybackError extends Error {
32431
32493
  }
32432
32494
  }
32433
32495
  var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
32434
- const context = useContext37(SharedAudioContext);
32496
+ const context = useContext38(SharedAudioContext);
32435
32497
  if (!context) {
32436
32498
  throw new Error("SharedAudioContext not found");
32437
32499
  }
32438
32500
  const videoRef = useRef27(null);
32439
- const sharedSource = useMemo36(() => {
32501
+ const sharedSource = useMemo37(() => {
32440
32502
  if (!context.audioContext) {
32441
32503
  return null;
32442
32504
  }
@@ -32488,7 +32550,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
32488
32550
  }
32489
32551
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
32490
32552
  const { fps, durationInFrames } = useVideoConfig();
32491
- const parentSequence = useContext37(SequenceContext);
32553
+ const parentSequence = useContext38(SequenceContext);
32492
32554
  const logLevel = useLogLevel();
32493
32555
  const mountTime = useMountTime();
32494
32556
  const [timelineId] = useState21(() => String(Math.random()));
@@ -32639,7 +32701,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
32639
32701
  current.preload = "auto";
32640
32702
  }
32641
32703
  }, []);
32642
- const actualStyle = useMemo36(() => {
32704
+ const actualStyle = useMemo37(() => {
32643
32705
  return {
32644
32706
  ...style
32645
32707
  };
@@ -32835,7 +32897,7 @@ function useRemotionContexts() {
32835
32897
  const visualModePropStatusesRefContext = React40.useContext(VisualModePropStatusesRefContext);
32836
32898
  const bufferManagerContext = React40.useContext(BufferingContextReact);
32837
32899
  const logLevelContext = React40.useContext(LogLevelContext);
32838
- return useMemo37(() => ({
32900
+ return useMemo38(() => ({
32839
32901
  compositionManagerCtx,
32840
32902
  timelineContext,
32841
32903
  setTimelineContext,
@@ -32946,6 +33008,7 @@ var Internals = {
32946
33008
  textSchema,
32947
33009
  transformSchema,
32948
33010
  premountSchema,
33011
+ premountStyleSchema,
32949
33012
  flattenActiveSchema,
32950
33013
  getFlatSchemaWithAllKeys,
32951
33014
  RemotionRootContexts,
@@ -32959,6 +33022,7 @@ var Internals = {
32959
33022
  truthy,
32960
33023
  SequenceContext,
32961
33024
  PremountContext,
33025
+ usePremounting,
32962
33026
  useRemotionContexts,
32963
33027
  RemotionContextProvider,
32964
33028
  CSSUtils: exports_default_css,
@@ -33134,7 +33198,7 @@ var validateSeriesSequenceProps = ({
33134
33198
  return offset;
33135
33199
  };
33136
33200
  var SeriesInner = (props2) => {
33137
- const childrenValue = useMemo38(() => {
33201
+ const childrenValue = useMemo39(() => {
33138
33202
  const flattenedChildren = flattenChildren(props2.children);
33139
33203
  const renderChildren = (i, startFrame) => {
33140
33204
  if (i === flattenedChildren.length) {
@@ -33463,14 +33527,14 @@ var VideoForRenderingForwardFunction = ({
33463
33527
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
33464
33528
  const videoConfig = useUnsafeVideoConfig();
33465
33529
  const videoRef = useRef28(null);
33466
- const sequenceContext = useContext38(SequenceContext);
33530
+ const sequenceContext = useContext39(SequenceContext);
33467
33531
  const mediaStartsAt = useMediaStartsAt();
33468
33532
  const environment = useRemotionEnvironment();
33469
33533
  const logLevel = useLogLevel();
33470
33534
  const mountTime = useMountTime();
33471
33535
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
33472
- const { registerRenderAsset, unregisterRenderAsset } = useContext38(RenderAssetManager);
33473
- const id = useMemo39(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
33536
+ const { registerRenderAsset, unregisterRenderAsset } = useContext39(RenderAssetManager);
33537
+ const id = useMemo40(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
33474
33538
  props2.src,
33475
33539
  sequenceContext?.cumulatedFrom,
33476
33540
  sequenceContext?.relativeFrom,
@@ -33681,7 +33745,7 @@ var VideoForwardingFunction = (props2, ref) => {
33681
33745
  if (environment.isClientSideRendering) {
33682
33746
  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");
33683
33747
  }
33684
- const { durations, setDurations } = useContext39(DurationsContext);
33748
+ const { durations, setDurations } = useContext40(DurationsContext);
33685
33749
  if (typeof ref === "string") {
33686
33750
  throw new Error("string refs are not supported");
33687
33751
  }
@@ -33800,7 +33864,7 @@ addSequenceStackTraces(Composition);
33800
33864
  addSequenceStackTraces(Folder);
33801
33865
 
33802
33866
  // ../shapes/dist/esm/index.mjs
33803
- import React, { useCallback as useCallback26, useMemo as useMemo40, useRef as useRef29 } from "react";
33867
+ import React, { useCallback as useCallback26, useMemo as useMemo41, useRef as useRef29 } from "react";
33804
33868
  import { version } from "react-dom";
33805
33869
  import { jsx as jsx40, jsxs as jsxs4 } from "react/jsx-runtime";
33806
33870
  import { jsx as jsx210 } from "react/jsx-runtime";
@@ -33982,13 +34046,13 @@ var RenderSvg = ({
33982
34046
  stack,
33983
34047
  ...props
33984
34048
  }) => {
33985
- const actualStyle = useMemo40(() => {
34049
+ const actualStyle = useMemo41(() => {
33986
34050
  return {
33987
34051
  overflow: "visible",
33988
34052
  ...style ?? {}
33989
34053
  };
33990
34054
  }, [style]);
33991
- const actualPathStyle = useMemo40(() => {
34055
+ const actualPathStyle = useMemo41(() => {
33992
34056
  return {
33993
34057
  transformBox: "fill-box",
33994
34058
  ...pathStyle ?? {}
@@ -36967,7 +37031,7 @@ var useHoverTransforms = (ref, disabled) => {
36967
37031
  progress: 0,
36968
37032
  isActive: false
36969
37033
  });
36970
- const eventTarget = useMemo42(() => new EventTarget, []);
37034
+ const eventTarget = useMemo43(() => new EventTarget, []);
36971
37035
  useEffect21(() => {
36972
37036
  if (disabled) {
36973
37037
  eventTarget.dispatchEvent(new Event("disabled"));
@@ -44502,7 +44566,7 @@ class AudioGainRadioGroup extends Component {
44502
44566
  onSetup() {
44503
44567
  this.#media = useMediaContext();
44504
44568
  if (hasProvidedContext(menuContext)) {
44505
- this.#menu = useContext47(menuContext);
44569
+ this.#menu = useContext48(menuContext);
44506
44570
  }
44507
44571
  }
44508
44572
  onConnect(el) {
@@ -45892,7 +45956,7 @@ var DefaultKeyboardDisplay = React65.forwardRef(({ icons: Icons, ...props }, for
45892
45956
  });
45893
45957
  DefaultKeyboardDisplay.displayName = "DefaultKeyboardDisplay";
45894
45958
  function getText() {
45895
- const { $state } = useContext47(mediaContext), action = $state.lastKeyboardAction()?.action, audioGain = $state.audioGain() ?? 1;
45959
+ const { $state } = useContext48(mediaContext), action = $state.lastKeyboardAction()?.action, audioGain = $state.audioGain() ?? 1;
45896
45960
  switch (action) {
45897
45961
  case "toggleMuted":
45898
45962
  return $state.muted() ? "0%" : getVolumeText($state.volume(), audioGain);
@@ -45907,7 +45971,7 @@ function getVolumeText(volume, gain) {
45907
45971
  return `${Math.round(volume * gain * 100)}%`;
45908
45972
  }
45909
45973
  function getIcon(Icons) {
45910
- const { $state } = useContext47(mediaContext), action = $state.lastKeyboardAction()?.action;
45974
+ const { $state } = useContext48(mediaContext), action = $state.lastKeyboardAction()?.action;
45911
45975
  switch (action) {
45912
45976
  case "togglePaused":
45913
45977
  return !$state.paused() ? Icons.Play : Icons.Pause;