@remotion/promo-pages 4.0.373 → 4.0.374

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Homepage.js CHANGED
@@ -25,7 +25,7 @@ import { createContext as createContext2, useContext } from "react";
25
25
  import { jsx as jsx10 } from "react/jsx-runtime";
26
26
  import {
27
27
  forwardRef as forwardRef2,
28
- useContext as useContext12,
28
+ useContext as useContext13,
29
29
  useEffect as useEffect3,
30
30
  useMemo as useMemo10,
31
31
  useState as useState6
@@ -36,7 +36,7 @@ import { createContext as createContext3 } from "react";
36
36
  import React3, { useCallback, useMemo as useMemo22, useState } from "react";
37
37
  import { jsx as jsx32 } from "react/jsx-runtime";
38
38
  import {
39
- createContext as createContext9,
39
+ createContext as createContext10,
40
40
  useLayoutEffect,
41
41
  useMemo as useMemo7,
42
42
  useRef as useRef2,
@@ -66,14 +66,16 @@ import React5, {
66
66
  import { jsx as jsx42 } from "react/jsx-runtime";
67
67
  import { createContext as createContext6, useContext as useContext3, useEffect, useRef, useState as useState3 } from "react";
68
68
  import { jsx as jsx52 } from "react/jsx-runtime";
69
- import { createContext as createContext8, useCallback as useCallback4, useContext as useContext7 } from "react";
69
+ import { createContext as createContext9, useCallback as useCallback4, useContext as useContext8 } from "react";
70
+ import { createContext as createContext8 } from "react";
71
+ import * as React6 from "react";
70
72
  import { jsx as jsx62 } from "react/jsx-runtime";
71
- import { useContext as useContext9 } from "react";
72
- import { createContext as createContext10 } from "react";
73
- import { jsx as jsx72 } from "react/jsx-runtime";
74
- import { useContext as useContext8, useMemo as useMemo8 } from "react";
75
- import { useContext as useContext11, useMemo as useMemo9 } from "react";
76
73
  import { useContext as useContext10 } from "react";
74
+ import { createContext as createContext11 } from "react";
75
+ import { jsx as jsx72 } from "react/jsx-runtime";
76
+ import { useContext as useContext9, useMemo as useMemo8 } from "react";
77
+ import { useContext as useContext12, useMemo as useMemo9 } from "react";
78
+ import { useContext as useContext11 } from "react";
77
79
  import { jsx as jsx82 } from "react/jsx-runtime";
78
80
  import { jsx as jsx92 } from "react/jsx-runtime";
79
81
  import {
@@ -84,12 +86,12 @@ import {
84
86
  useRef as useRef4,
85
87
  useState as useState7
86
88
  } from "react";
87
- import React10, { useCallback as useCallback5, useImperativeHandle as useImperativeHandle3, useRef as useRef3 } from "react";
89
+ import React11, { useCallback as useCallback5, useImperativeHandle as useImperativeHandle3, useRef as useRef3 } from "react";
88
90
  import { jsx as jsx102 } from "react/jsx-runtime";
89
91
  import { jsx as jsx11 } from "react/jsx-runtime";
90
- import { useContext as useContext13, useEffect as useEffect5, useState as useState9 } from "react";
92
+ import { useContext as useContext14, useEffect as useEffect5, useState as useState9 } from "react";
91
93
  import {
92
- createContext as createContext11,
94
+ createContext as createContext12,
93
95
  useCallback as useCallback6,
94
96
  useLayoutEffect as useLayoutEffect3,
95
97
  useMemo as useMemo11,
@@ -97,12 +99,12 @@ import {
97
99
  } from "react";
98
100
  import { jsx as jsx12 } from "react/jsx-runtime";
99
101
  import { forwardRef as forwardRef6, useCallback as useCallback11, useContext as useContext27 } from "react";
100
- import React11, { createContext as createContext12, useMemo as useMemo12 } from "react";
102
+ import React12, { createContext as createContext13, useMemo as useMemo12 } from "react";
101
103
  import { jsx as jsx13 } from "react/jsx-runtime";
102
- import { useContext as useContext14 } from "react";
103
- import { createContext as createContext13, useEffect as useEffect6, useState as useState10 } from "react";
104
+ import { useContext as useContext15 } from "react";
105
+ import { createContext as createContext14, useEffect as useEffect6, useState as useState10 } from "react";
104
106
  import { jsx as jsx14 } from "react/jsx-runtime";
105
- import { createContext as createContext14, useMemo as useMemo13, useReducer } from "react";
107
+ import { createContext as createContext15, useMemo as useMemo13, useReducer } from "react";
106
108
  import { jsx as jsx15 } from "react/jsx-runtime";
107
109
  import {
108
110
  forwardRef as forwardRef4,
@@ -113,8 +115,6 @@ import {
113
115
  useRef as useRef12,
114
116
  useState as useState15
115
117
  } from "react";
116
- import { createContext as createContext15 } from "react";
117
- import * as React14 from "react";
118
118
  import { useContext as useContext17, useLayoutEffect as useLayoutEffect4, useRef as useRef7 } from "react";
119
119
  import React15, {
120
120
  createContext as createContext16,
@@ -328,7 +328,7 @@ function validateFps(fps, location, isGif) {
328
328
  throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --every-nth-frame option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
329
329
  }
330
330
  }
331
- function cancelRender(err) {
331
+ function cancelRenderInternal(scope, err) {
332
332
  let error;
333
333
  if (isErrorLike(err)) {
334
334
  error = err;
@@ -340,9 +340,14 @@ function cancelRender(err) {
340
340
  } else {
341
341
  error = Error("Rendering was cancelled");
342
342
  }
343
- window.remotion_cancelledError = error.stack;
343
+ if (scope) {
344
+ scope.remotion_cancelledError = error.stack;
345
+ }
344
346
  throw error;
345
347
  }
348
+ function cancelRender(err) {
349
+ return cancelRenderInternal(typeof window !== "undefined" ? window : undefined, err);
350
+ }
346
351
  function interpolateFunction(input, inputRange, outputRange, options) {
347
352
  const { extrapolateLeft, extrapolateRight, easing } = options;
348
353
  let result = input;
@@ -748,7 +753,7 @@ var __defProp2, __export2 = (target, all) => {
748
753
  });
749
754
  }, useIsPlayer = () => {
750
755
  return useContext(IsPlayerContext);
751
- }, VERSION = "4.0.373", checkMultipleRemotionVersions = () => {
756
+ }, VERSION = "4.0.374", checkMultipleRemotionVersions = () => {
752
757
  if (typeof globalThis === "undefined") {
753
758
  return;
754
759
  }
@@ -1634,8 +1639,13 @@ Check that all your Remotion packages are on the same version. If your dependenc
1634
1639
  }
1635
1640
  }, error = (options, ...args) => {
1636
1641
  return console.error(...transformArgs({ args, logLevel: "error", tag: options.tag }));
1637
- }, Log, handles, DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:", DELAY_RENDER_RETRIES_LEFT = "Retries left: ", DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.", DELAY_RENDER_CLEAR_TOKEN = "handle was cleared after", defaultTimeout = 30000, delayRenderInternal = (scope, environment, label, options) => {
1638
- if (typeof label !== "string" && typeof label !== "undefined") {
1642
+ }, Log, handles, DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:", DELAY_RENDER_RETRIES_LEFT = "Retries left: ", DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.", DELAY_RENDER_CLEAR_TOKEN = "handle was cleared after", defaultTimeout = 30000, delayRenderInternal = ({
1643
+ scope,
1644
+ environment,
1645
+ label,
1646
+ options
1647
+ }) => {
1648
+ if (typeof label !== "string" && label !== null) {
1639
1649
  throw new Error("The label parameter of delayRender() must be a string or undefined, got: " + JSON.stringify(label));
1640
1650
  }
1641
1651
  const handle = Math.random();
@@ -1658,7 +1668,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1658
1668
  DELAY_RENDER_CALLSTACK_TOKEN,
1659
1669
  called
1660
1670
  ].filter(truthy2).join(" ");
1661
- cancelRender(Error(message));
1671
+ cancelRenderInternal(scope, Error(message));
1662
1672
  }, timeoutToUse)
1663
1673
  };
1664
1674
  }
@@ -1667,7 +1677,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
1667
1677
  scope.remotion_renderReady = false;
1668
1678
  }
1669
1679
  return handle;
1670
- }, continueRenderInternal = (scope, handle, environment) => {
1680
+ }, continueRenderInternal = ({
1681
+ scope,
1682
+ handle,
1683
+ environment,
1684
+ logLevel
1685
+ }) => {
1671
1686
  if (typeof handle === "undefined") {
1672
1687
  throw new TypeError("The continueRender() method must be called with a parameter that is the return value of delayRender(). No value was passed.");
1673
1688
  }
@@ -1687,7 +1702,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1687
1702
  DELAY_RENDER_CLEAR_TOKEN,
1688
1703
  `${Date.now() - startTime}ms`
1689
1704
  ].filter(truthy2).join(" ");
1690
- Log.verbose({ logLevel: window.remotion_logLevel, tag: "delayRender()" }, message);
1705
+ Log.verbose({ logLevel, tag: "delayRender()" }, message);
1691
1706
  delete scope.remotion_delayRenderTimeouts[handle];
1692
1707
  }
1693
1708
  return false;
@@ -1697,16 +1712,42 @@ Check that all your Remotion packages are on the same version. If your dependenc
1697
1712
  if (handles.length === 0 && typeof scope !== "undefined") {
1698
1713
  scope.remotion_renderReady = true;
1699
1714
  }
1715
+ }, LogLevelContext, useLogLevel = () => {
1716
+ const { logLevel } = React6.useContext(LogLevelContext);
1717
+ if (logLevel === null) {
1718
+ throw new Error("useLogLevel must be used within a LogLevelProvider");
1719
+ }
1720
+ return logLevel;
1721
+ }, useMountTime = () => {
1722
+ const { mountTime } = React6.useContext(LogLevelContext);
1723
+ if (mountTime === null) {
1724
+ throw new Error("useMountTime must be used within a LogLevelProvider");
1725
+ }
1726
+ return mountTime;
1700
1727
  }, DelayRenderContextType, useDelayRender = () => {
1701
1728
  const environment = useRemotionEnvironment();
1702
- const scope = useContext7(DelayRenderContextType);
1729
+ const scope = useContext8(DelayRenderContextType);
1730
+ const logLevel = useLogLevel();
1703
1731
  const delayRender2 = useCallback4((label, options) => {
1704
- return delayRenderInternal(scope ?? (typeof window !== "undefined" ? window : undefined), environment, label, options);
1732
+ return delayRenderInternal({
1733
+ scope: scope ?? (typeof window !== "undefined" ? window : undefined),
1734
+ environment,
1735
+ label: label ?? null,
1736
+ options: options ?? {}
1737
+ });
1705
1738
  }, [environment, scope]);
1706
1739
  const continueRender2 = useCallback4((handle) => {
1707
- continueRenderInternal(scope ?? (typeof window !== "undefined" ? window : undefined), handle, environment);
1708
- }, [environment, scope]);
1709
- return { delayRender: delayRender2, continueRender: continueRender2 };
1740
+ continueRenderInternal({
1741
+ scope: scope ?? (typeof window !== "undefined" ? window : undefined),
1742
+ handle,
1743
+ environment,
1744
+ logLevel
1745
+ });
1746
+ }, [environment, logLevel, scope]);
1747
+ const cancelRender2 = useCallback4((err) => {
1748
+ return cancelRenderInternal(scope ?? (typeof window !== "undefined" ? window : undefined), err);
1749
+ }, [scope]);
1750
+ return { delayRender: delayRender2, continueRender: continueRender2, cancelRender: cancelRender2 };
1710
1751
  }, SetTimelineContext, TimelineContext, TimelineContextProvider = ({ children, frameState }) => {
1711
1752
  const [playing, setPlaying] = useState5(false);
1712
1753
  const imperativePlaying = useRef2(false);
@@ -1772,7 +1813,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1772
1813
  children
1773
1814
  });
1774
1815
  }, useUnsafeVideoConfig = () => {
1775
- const context = useContext8(SequenceContext);
1816
+ const context = useContext9(SequenceContext);
1776
1817
  const ctxWidth = context?.width ?? null;
1777
1818
  const ctxHeight = context?.height ?? null;
1778
1819
  const ctxDuration = context?.durationInFrames ?? null;
@@ -1812,7 +1853,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1812
1853
  }, [ctxDuration, ctxHeight, ctxWidth, video]);
1813
1854
  }, useVideoConfig = () => {
1814
1855
  const videoConfig = useUnsafeVideoConfig();
1815
- const context = useContext9(CanUseRemotionHooks);
1856
+ const context = useContext10(CanUseRemotionHooks);
1816
1857
  const isPlayer = useIsPlayer();
1817
1858
  if (!videoConfig) {
1818
1859
  if (typeof window !== "undefined" && window.remotion_isPlayer || isPlayer) {
@@ -1829,7 +1870,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1829
1870
  }
1830
1871
  return videoConfig;
1831
1872
  }, useCurrentFrame = () => {
1832
- const canUseRemotionHooks = useContext10(CanUseRemotionHooks);
1873
+ const canUseRemotionHooks = useContext11(CanUseRemotionHooks);
1833
1874
  const env = useRemotionEnvironment();
1834
1875
  if (!canUseRemotionHooks) {
1835
1876
  if (env.isPlayer) {
@@ -1838,7 +1879,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1838
1879
  throw new Error(`useCurrentFrame() can only be called inside a component that was registered as a composition. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions`);
1839
1880
  }
1840
1881
  const frame = useTimelinePosition();
1841
- const context = useContext10(SequenceContext);
1882
+ const context = useContext11(SequenceContext);
1842
1883
  const contextOffset = context ? context.cumulatedFrom + context.relativeFrom : 0;
1843
1884
  return frame - contextOffset;
1844
1885
  }, Freeze = ({
@@ -1868,8 +1909,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
1868
1909
  return active(frame);
1869
1910
  }
1870
1911
  }, [active, frame]);
1871
- const timelineContext = useContext11(TimelineContext);
1872
- const sequenceContext = useContext11(SequenceContext);
1912
+ const timelineContext = useContext12(TimelineContext);
1913
+ const sequenceContext = useContext12(SequenceContext);
1873
1914
  const relativeFrom = sequenceContext?.relativeFrom ?? 0;
1874
1915
  const timelineValue = useMemo9(() => {
1875
1916
  if (!isActive) {
@@ -1922,8 +1963,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
1922
1963
  }, ref) => {
1923
1964
  const { layout = "absolute-fill" } = other;
1924
1965
  const [id] = useState6(() => String(Math.random()));
1925
- const parentSequence = useContext12(SequenceContext);
1926
- const { rootId } = useContext12(TimelineContext);
1966
+ const parentSequence = useContext13(SequenceContext);
1967
+ const { rootId } = useContext13(TimelineContext);
1927
1968
  const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
1928
1969
  const nonce = useNonce();
1929
1970
  if (layout !== "absolute-fill" && layout !== "none") {
@@ -1948,8 +1989,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
1948
1989
  const videoConfig = useVideoConfig();
1949
1990
  const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - from, durationInFrames) : durationInFrames;
1950
1991
  const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
1951
- const { registerSequence, unregisterSequence } = useContext12(SequenceManager);
1952
- const { hidden } = useContext12(SequenceVisibilityToggleContext);
1992
+ const { registerSequence, unregisterSequence } = useContext13(SequenceManager);
1993
+ const { hidden } = useContext13(SequenceVisibilityToggleContext);
1953
1994
  const premounting = useMemo10(() => {
1954
1995
  return parentSequence?.premounting || Boolean(other._remotionInternalIsPremounting);
1955
1996
  }, [other._remotionInternalIsPremounting, parentSequence?.premounting]);
@@ -2413,7 +2454,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
2413
2454
  children
2414
2455
  });
2415
2456
  }, ArtifactThumbnail, Artifact = ({ filename, content, downloadBehavior }) => {
2416
- const { registerRenderAsset, unregisterRenderAsset } = useContext13(RenderAssetManager);
2457
+ const { registerRenderAsset, unregisterRenderAsset } = useContext14(RenderAssetManager);
2417
2458
  const env = useRemotionEnvironment();
2418
2459
  const frame = useCurrentFrame();
2419
2460
  const [id] = useState9(() => {
@@ -2491,7 +2532,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
2491
2532
  const actualDuration = duration / playbackRate;
2492
2533
  return Math.floor(actualDuration);
2493
2534
  }, LoopContext, useLoop = () => {
2494
- return React11.useContext(LoopContext);
2535
+ return React12.useContext(LoopContext);
2495
2536
  }, Loop = ({ durationInFrames, times = Infinity, children, name, ...props }) => {
2496
2537
  const currentFrame = useCurrentFrame();
2497
2538
  const { durationInFrames: compDuration } = useVideoConfig();
@@ -2579,7 +2620,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
2579
2620
  }
2580
2621
  return src.slice(0, hashIndex);
2581
2622
  }, usePreload = (src) => {
2582
- const preloads2 = useContext14(PreloadContext);
2623
+ const preloads2 = useContext15(PreloadContext);
2583
2624
  const hashFragmentIndex = removeAndGetHashFragment(src);
2584
2625
  const withoutHashFragment = getSrcWithoutHash(src);
2585
2626
  if (!preloads2[withoutHashFragment]) {
@@ -2875,18 +2916,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
2875
2916
  return "anonymous";
2876
2917
  }
2877
2918
  return;
2878
- }, LogLevelContext, useLogLevel = () => {
2879
- const { logLevel } = React14.useContext(LogLevelContext);
2880
- if (logLevel === null) {
2881
- throw new Error("useLogLevel must be used within a LogLevelProvider");
2882
- }
2883
- return logLevel;
2884
- }, useMountTime = () => {
2885
- const { mountTime } = React14.useContext(LogLevelContext);
2886
- if (mountTime === null) {
2887
- throw new Error("useMountTime must be used within a LogLevelProvider");
2888
- }
2889
- return mountTime;
2890
2919
  }, playAndHandleNotAllowedError = ({
2891
2920
  mediaRef,
2892
2921
  mediaType,
@@ -6823,8 +6852,12 @@ var init_esm = __esm(() => {
6823
6852
  window.remotion_delayRenderTimeouts = {};
6824
6853
  }
6825
6854
  }
6826
- DelayRenderContextType = createContext8(null);
6827
- SetTimelineContext = createContext9({
6855
+ LogLevelContext = createContext8({
6856
+ logLevel: "info",
6857
+ mountTime: 0
6858
+ });
6859
+ DelayRenderContextType = createContext9(null);
6860
+ SetTimelineContext = createContext10({
6828
6861
  setFrame: () => {
6829
6862
  throw new Error("default");
6830
6863
  },
@@ -6832,7 +6865,7 @@ var init_esm = __esm(() => {
6832
6865
  throw new Error("default");
6833
6866
  }
6834
6867
  });
6835
- TimelineContext = createContext9({
6868
+ TimelineContext = createContext10({
6836
6869
  frame: {},
6837
6870
  playing: false,
6838
6871
  playbackRate: 1,
@@ -6845,11 +6878,11 @@ var init_esm = __esm(() => {
6845
6878
  },
6846
6879
  audioAndVideoTags: { current: [] }
6847
6880
  });
6848
- CanUseRemotionHooks = createContext10(false);
6881
+ CanUseRemotionHooks = createContext11(false);
6849
6882
  RegularSequence = forwardRef2(RegularSequenceRefForwardingFunction);
6850
6883
  PremountedPostmountedSequence = forwardRef2(PremountedPostmountedSequenceRefForwardingFunction);
6851
6884
  Sequence = forwardRef2(SequenceRefForwardingFunction);
6852
- Canvas = React10.forwardRef(CanvasRefForwardingFunction);
6885
+ Canvas = React11.forwardRef(CanvasRefForwardingFunction);
6853
6886
  AnimatedImage = forwardRef3(({
6854
6887
  src,
6855
6888
  width,
@@ -6957,7 +6990,7 @@ var init_esm = __esm(() => {
6957
6990
  ...props
6958
6991
  });
6959
6992
  });
6960
- RenderAssetManager = createContext11({
6993
+ RenderAssetManager = createContext12({
6961
6994
  registerRenderAsset: () => {
6962
6995
  return;
6963
6996
  },
@@ -6968,21 +7001,17 @@ var init_esm = __esm(() => {
6968
7001
  });
6969
7002
  ArtifactThumbnail = Symbol("Thumbnail");
6970
7003
  Artifact.Thumbnail = ArtifactThumbnail;
6971
- LoopContext = createContext12(null);
7004
+ LoopContext = createContext13(null);
6972
7005
  Loop.useLoop = useLoop;
6973
- PreloadContext = createContext13({});
7006
+ PreloadContext = createContext14({});
6974
7007
  preloads = {};
6975
7008
  updaters = [];
6976
- DurationsContext = createContext14({
7009
+ DurationsContext = createContext15({
6977
7010
  durations: {},
6978
7011
  setDurations: () => {
6979
7012
  throw new Error("context missing");
6980
7013
  }
6981
7014
  });
6982
- LogLevelContext = createContext15({
6983
- logLevel: "info",
6984
- mountTime: 0
6985
- });
6986
7015
  SharedAudioContext = createContext16(null);
6987
7016
  didWarn = {};
6988
7017
  BufferingContextReact = React16.createContext(null);
@@ -7207,7 +7236,7 @@ __export(exports_esm, {
7207
7236
  Lottie: () => Lottie
7208
7237
  });
7209
7238
  import lottie from "lottie-web";
7210
- import { useEffect as useEffect40, useRef as useRef33, useState as useState37 } from "react";
7239
+ import { useEffect as useEffect40, useRef as useRef36, useState as useState37 } from "react";
7211
7240
  import { jsx as jsx59 } from "react/jsx-runtime";
7212
7241
  var getLottieMetadata = (animationData) => {
7213
7242
  const width2 = animationData.w;
@@ -7272,10 +7301,10 @@ var getLottieMetadata = (animationData) => {
7272
7301
  }
7273
7302
  validatePlaybackRate2(playbackRate);
7274
7303
  validateLoop(loop);
7275
- const animationRef = useRef33(null);
7276
- const currentFrameRef = useRef33(null);
7277
- const containerRef = useRef33(null);
7278
- const onAnimationLoadedRef = useRef33(onAnimationLoaded);
7304
+ const animationRef = useRef36(null);
7305
+ const currentFrameRef = useRef36(null);
7306
+ const containerRef = useRef36(null);
7307
+ const onAnimationLoadedRef = useRef36(onAnimationLoaded);
7279
7308
  onAnimationLoadedRef.current = onAnimationLoaded;
7280
7309
  const { delayRender, continueRender } = useDelayRender();
7281
7310
  const [handle] = useState37(() => delayRender("Waiting for Lottie animation to load"));
@@ -7377,7 +7406,7 @@ var init_esm2 = __esm(() => {
7377
7406
  });
7378
7407
 
7379
7408
  // ../design/dist/esm/index.mjs
7380
- import { useCallback as useCallback18, useRef as useRef18, useState as useState22 } from "react";
7409
+ import { useCallback as useCallback18, useRef as useRef22, useState as useState22 } from "react";
7381
7410
 
7382
7411
  // ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
7383
7412
  function r(e) {
@@ -8718,7 +8747,7 @@ var getDefaultConfig = () => {
8718
8747
  var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
8719
8748
 
8720
8749
  // ../design/dist/esm/index.mjs
8721
- import React6, { useEffect as useEffect23, useMemo as useMemo33, useState as useState21 } from "react";
8750
+ import React7, { useEffect as useEffect23, useMemo as useMemo33, useState as useState21 } from "react";
8722
8751
 
8723
8752
  // ../paths/dist/esm/index.mjs
8724
8753
  var cutLInstruction = ({
@@ -12859,65 +12888,69 @@ var extrudeAndTransformElement = (options) => {
12859
12888
  init_esm();
12860
12889
  import { jsx as jsx37, Fragment } from "react/jsx-runtime";
12861
12890
  import { jsx as jsx210, jsxs as jsxs3 } from "react/jsx-runtime";
12891
+ import { useEffect as useEffect24, useMemo as useMemo210, useRef as useRef18 } from "react";
12862
12892
  import { jsx as jsx38 } from "react/jsx-runtime";
12863
- import React34 from "react";
12864
- import { jsx as jsx43 } from "react/jsx-runtime";
12893
+ import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
12894
+ import React42 from "react";
12865
12895
  import { jsx as jsx53 } from "react/jsx-runtime";
12866
- import { jsx as jsx63, jsxs as jsxs23 } from "react/jsx-runtime";
12867
- import { jsx as jsx73 } from "react/jsx-runtime";
12868
- import * as React322 from "react";
12869
- import * as ReactDOM4 from "react-dom";
12870
- import React7 from "react";
12871
- import * as React42 from "react";
12896
+ import { jsx as jsx63 } from "react/jsx-runtime";
12897
+ import { jsx as jsx73, jsxs as jsxs32 } from "react/jsx-runtime";
12898
+ import React52 from "react";
12872
12899
  import { jsx as jsx83 } from "react/jsx-runtime";
12873
- import * as React52 from "react";
12900
+ import { jsx as jsx93 } from "react/jsx-runtime";
12901
+ import * as React34 from "react";
12902
+ import * as ReactDOM4 from "react-dom";
12903
+ import React9 from "react";
12874
12904
  import * as React62 from "react";
12875
- import { Fragment as Fragment2, jsx as jsx93 } from "react/jsx-runtime";
12876
12905
  import { jsx as jsx103 } from "react/jsx-runtime";
12906
+ import * as React72 from "react";
12877
12907
  import * as React8 from "react";
12878
- import { jsx as jsx112 } from "react/jsx-runtime";
12879
- import * as React12 from "react";
12880
- import * as React9 from "react";
12881
- import * as ReactDOM from "react-dom";
12908
+ import { Fragment as Fragment2, jsx as jsx112 } from "react/jsx-runtime";
12882
12909
  import { jsx as jsx122 } from "react/jsx-runtime";
12883
- import * as React102 from "react";
12884
- import * as React112 from "react";
12910
+ import * as React10 from "react";
12885
12911
  import { jsx as jsx132 } from "react/jsx-runtime";
12886
- import * as React13 from "react";
12887
- import * as React142 from "react";
12912
+ import * as React14 from "react";
12913
+ import * as React112 from "react";
12914
+ import * as ReactDOM from "react-dom";
12888
12915
  import { jsx as jsx142 } from "react/jsx-runtime";
12889
- import * as React162 from "react";
12916
+ import * as React122 from "react";
12917
+ import * as React13 from "react";
12918
+ import { jsx as jsx152 } from "react/jsx-runtime";
12890
12919
  import * as React152 from "react";
12891
- import * as React20 from "react";
12892
- import * as React172 from "react";
12893
- import { useLayoutEffect as useLayoutEffect32, useEffect as useEffect72 } from "react";
12894
- import * as ReactDOM2 from "react-dom";
12920
+ import * as React162 from "react";
12921
+ import { jsx as jsx162 } from "react/jsx-runtime";
12895
12922
  import * as React18 from "react";
12896
- import { jsx as jsx152 } from "react/jsx-runtime";
12923
+ import * as React172 from "react";
12924
+ import * as React22 from "react";
12897
12925
  import * as React19 from "react";
12898
- import { jsx as jsx162 } from "react/jsx-runtime";
12899
- import * as React212 from "react";
12900
- import ReactDOM3 from "react-dom";
12926
+ import { useLayoutEffect as useLayoutEffect32, useEffect as useEffect82 } from "react";
12927
+ import * as ReactDOM2 from "react-dom";
12928
+ import * as React20 from "react";
12901
12929
  import { jsx as jsx172 } from "react/jsx-runtime";
12902
- import * as React22 from "react";
12930
+ import * as React212 from "react";
12931
+ import { jsx as jsx182 } from "react/jsx-runtime";
12903
12932
  import * as React23 from "react";
12933
+ import ReactDOM3 from "react-dom";
12934
+ import { jsx as jsx192 } from "react/jsx-runtime";
12904
12935
  import * as React24 from "react";
12905
- import { jsx as jsx182 } from "react/jsx-runtime";
12906
- import * as React312 from "react";
12907
- import * as React272 from "react";
12908
- import { useState as useState112 } from "react";
12909
12936
  import * as React252 from "react";
12910
12937
  import * as React26 from "react";
12911
- import * as React30 from "react";
12938
+ import { jsx as jsx202 } from "react/jsx-runtime";
12939
+ import * as React332 from "react";
12912
12940
  import * as React29 from "react";
12941
+ import { useState as useState112 } from "react";
12942
+ import * as React272 from "react";
12913
12943
  import * as React28 from "react";
12914
- import { Fragment as Fragment52, jsx as jsx192, jsxs as jsxs32 } from "react/jsx-runtime";
12944
+ import * as React322 from "react";
12945
+ import * as React312 from "react";
12946
+ import * as React30 from "react";
12947
+ import { Fragment as Fragment52, jsx as jsx212, jsxs as jsxs4 } from "react/jsx-runtime";
12915
12948
  import { forwardRef as forwardRef132, createElement as createElement7 } from "react";
12916
12949
  import { forwardRef as forwardRef122, createElement as createElement6 } from "react";
12917
- import * as React332 from "react";
12918
- import { jsx as jsx202, jsxs as jsxs4 } from "react/jsx-runtime";
12919
- import { jsx as jsx212 } from "react/jsx-runtime";
12920
- import { jsx as jsx223 } from "react/jsx-runtime";
12950
+ import * as React352 from "react";
12951
+ import { jsx as jsx223, jsxs as jsxs5 } from "react/jsx-runtime";
12952
+ import { jsx as jsx232 } from "react/jsx-runtime";
12953
+ import { jsx as jsx242 } from "react/jsx-runtime";
12921
12954
  function cn(...inputs) {
12922
12955
  return twMerge(clsx(inputs));
12923
12956
  }
@@ -12936,7 +12969,7 @@ var getChildNodeFrom = (htmlElement) => {
12936
12969
  return childNode;
12937
12970
  };
12938
12971
  var useHoverTransforms = (ref, disabled) => {
12939
- const [state, setState] = React6.useState({
12972
+ const [state, setState] = React7.useState({
12940
12973
  progress: 0,
12941
12974
  isActive: false
12942
12975
  });
@@ -12948,7 +12981,7 @@ var useHoverTransforms = (ref, disabled) => {
12948
12981
  eventTarget.dispatchEvent(new Event("enabled"));
12949
12982
  }
12950
12983
  }, [disabled, eventTarget]);
12951
- React6.useEffect(() => {
12984
+ React7.useEffect(() => {
12952
12985
  const element = ref.current;
12953
12986
  if (!element)
12954
12987
  return;
@@ -13023,8 +13056,8 @@ var useHoverTransforms = (ref, disabled) => {
13023
13056
  return state;
13024
13057
  };
13025
13058
  var useClickTransforms = (ref) => {
13026
- const [hoverProgress, setHoverProgress] = React6.useState(0);
13027
- React6.useEffect(() => {
13059
+ const [hoverProgress, setHoverProgress] = React7.useState(0);
13060
+ React7.useEffect(() => {
13028
13061
  const element = getChildNodeFrom(ref.current);
13029
13062
  if (!element) {
13030
13063
  return;
@@ -13197,10 +13230,56 @@ var Outer = ({
13197
13230
  ]
13198
13231
  });
13199
13232
  };
13200
- var Button = ({ children, className, disabled, depth, ...buttonProps }) => {
13233
+ var viewBox = 100;
13234
+ var lines = 8;
13235
+ var translated2 = "M 44 0 L 50 0 a 6 6 0 0 1 6 6 L 56 26 a 6 6 0 0 1 -6 6 L 50 32 a 6 6 0 0 1 -6 -6 L 44 6 a 6 6 0 0 1 6 -6 Z";
13236
+ var Spinner = ({ size, duration }) => {
13237
+ const style = useMemo210(() => {
13238
+ return {
13239
+ width: size,
13240
+ height: size
13241
+ };
13242
+ }, [size]);
13243
+ const pathsRef = useRef18([]);
13244
+ useEffect24(() => {
13245
+ const animate = () => {
13246
+ const now = performance.now();
13247
+ for (let index = 0;index < lines; index++) {
13248
+ const path = pathsRef.current[index];
13249
+ if (!path)
13250
+ continue;
13251
+ const progress = (now / 1000 - index * (duration / lines)) % duration / duration;
13252
+ const opacity = 1 - 0.85 * progress;
13253
+ path.style.opacity = opacity.toString();
13254
+ }
13255
+ requestAnimationFrame(animate);
13256
+ };
13257
+ const id = requestAnimationFrame(animate);
13258
+ return () => {
13259
+ cancelAnimationFrame(id);
13260
+ };
13261
+ }, [duration]);
13262
+ return /* @__PURE__ */ jsx38("svg", {
13263
+ style,
13264
+ viewBox: `0 0 ${viewBox} ${viewBox}`,
13265
+ children: new Array(lines).fill(true).map((_, index) => {
13266
+ return /* @__PURE__ */ jsx38("path", {
13267
+ ref: (el) => pathsRef.current[index] = el,
13268
+ style: {
13269
+ rotate: `${index * Math.PI * 2 / lines}rad`,
13270
+ transformOrigin: "center center",
13271
+ opacity: 1
13272
+ },
13273
+ d: translated2,
13274
+ fill: "currentColor"
13275
+ }, index);
13276
+ })
13277
+ });
13278
+ };
13279
+ var Button = ({ children, className, disabled, depth, loading, ...buttonProps }) => {
13201
13280
  const [dimensions, setDimensions] = useState22(null);
13202
- const ref = useRef18(null);
13203
- const { isActive, progress } = useHoverTransforms(ref, Boolean(disabled));
13281
+ const ref = useRef22(null);
13282
+ const { isActive, progress } = useHoverTransforms(ref, Boolean(disabled || loading));
13204
13283
  const onPointerEnter = useCallback18((e) => {
13205
13284
  if (e.pointerType !== "mouse") {
13206
13285
  return;
@@ -13235,18 +13314,30 @@ var Button = ({ children, className, disabled, depth, ...buttonProps }) => {
13235
13314
  };
13236
13315
  });
13237
13316
  }, []);
13238
- const content = /* @__PURE__ */ jsx38("button", {
13317
+ const content = /* @__PURE__ */ jsxs23("button", {
13239
13318
  type: "button",
13240
- disabled,
13241
- className: cn("text-text", "flex", "justify-center", "bg-button-bg", "items-center", "font-brand", "border-solid", "text-[1em]", "rounded-lg", "border-black", "border-2", "border-b-4", "cursor-pointer", "px-4", "h-12", "flex", "flex-row", "items-center", "disabled:cursor-default", "disabled:border-gray-500", "disabled:text-gray-500", className),
13319
+ disabled: disabled || loading,
13320
+ className: cn("text-text", "flex", "justify-center", "bg-button-bg", "items-center", "font-brand", "border-solid", "text-[1em]", "rounded-lg", "border-black", "border-2", "border-b-4", "cursor-pointer", "px-4", "h-12", "flex", "flex-row", "items-center", "disabled:cursor-default", "disabled:opacity-50", "relative", "overflow-hidden", className),
13242
13321
  ...buttonProps,
13243
- children
13322
+ children: [
13323
+ /* @__PURE__ */ jsx43("div", {
13324
+ className: cn(loading && "invisible"),
13325
+ children
13326
+ }),
13327
+ loading ? /* @__PURE__ */ jsx43("div", {
13328
+ className: cn("absolute w-full h-full flex inset-0 items-center justify-center text-inherit bg-inherit"),
13329
+ children: /* @__PURE__ */ jsx43(Spinner, {
13330
+ size: 20,
13331
+ duration: 1
13332
+ })
13333
+ }) : null
13334
+ ]
13244
13335
  });
13245
- return /* @__PURE__ */ jsx38("div", {
13336
+ return /* @__PURE__ */ jsx43("div", {
13246
13337
  ref,
13247
13338
  className: "contents",
13248
13339
  onPointerEnter,
13249
- children: dimensions && (isActive || progress > 0) ? /* @__PURE__ */ jsx38(Outer, {
13340
+ children: dimensions && (isActive || progress > 0) ? /* @__PURE__ */ jsx43(Outer, {
13250
13341
  parentRef: ref,
13251
13342
  width: dimensions.width,
13252
13343
  height: dimensions.height,
@@ -13257,8 +13348,8 @@ var Button = ({ children, className, disabled, depth, ...buttonProps }) => {
13257
13348
  }) : content
13258
13349
  });
13259
13350
  };
13260
- var Card = React34.forwardRef(({ children, className, ...rest }, ref) => {
13261
- return /* @__PURE__ */ jsx43("div", {
13351
+ var Card = React42.forwardRef(({ children, className, ...rest }, ref) => {
13352
+ return /* @__PURE__ */ jsx53("div", {
13262
13353
  ref,
13263
13354
  className: cn("rounded-lg border-2 border-black bg-card-bg text-text border-b-4", className),
13264
13355
  ...rest,
@@ -13268,18 +13359,18 @@ var Card = React34.forwardRef(({ children, className, ...rest }, ref) => {
13268
13359
  Card.displayName = "Card";
13269
13360
  var d = "M143.056 81.4934C147.25 77.2994 147.25 70.4506 143.056 66.2566C138.862 62.0627 132.013 62.0627 127.819 66.2566L86.1875 107.888L69.1809 90.8816C64.9869 86.6877 58.1381 86.6877 53.9441 90.8816C49.7502 95.0756 49.7502 101.924 53.9441 106.118L78.5691 130.743C82.7631 134.937 89.6119 134.937 93.8059 130.743L143.056 81.4934Z";
13270
13361
  var CheckIcon = (props) => {
13271
- return /* @__PURE__ */ jsx53("svg", {
13362
+ return /* @__PURE__ */ jsx63("svg", {
13272
13363
  ...props,
13273
13364
  viewBox: "50.79867500000001 63.11117499999997 95.40282500000015 70.77732499999999",
13274
13365
  fill: "none",
13275
13366
  xmlns: "http://www.w3.org/2000/svg",
13276
- children: /* @__PURE__ */ jsx53("path", {
13367
+ children: /* @__PURE__ */ jsx63("path", {
13277
13368
  d,
13278
13369
  fill: "currentcolor"
13279
13370
  })
13280
13371
  });
13281
13372
  };
13282
- var Triangle = ({ rotated: rotated2 }) => /* @__PURE__ */ jsx63("svg", {
13373
+ var Triangle = ({ rotated: rotated2 }) => /* @__PURE__ */ jsx73("svg", {
13283
13374
  width: "12px",
13284
13375
  height: "7px",
13285
13376
  viewBox: "0 0 12 7",
@@ -13287,7 +13378,7 @@ var Triangle = ({ rotated: rotated2 }) => /* @__PURE__ */ jsx63("svg", {
13287
13378
  style: {
13288
13379
  transform: rotated2 ? "rotate(180deg)" : "rotate(0deg)"
13289
13380
  },
13290
- children: /* @__PURE__ */ jsx63("path", {
13381
+ children: /* @__PURE__ */ jsx73("path", {
13291
13382
  className: "fill-text",
13292
13383
  d: "M7.17096 0.475588C6.73198 0.0764969 6.01906 0.0764969 5.58007 0.475588L1.08483 4.56228C0.761737 4.85601 0.666915 5.29341 0.84251 5.67654C1.01811 6.05966 1.42549 6.3087 1.88203 6.3087H10.8725C11.3255 6.3087 11.7364 6.05966 11.912 5.67654C12.0876 5.29341 11.9893 4.85601 11.6697 4.56228L7.17448 0.475588H7.17096Z"
13293
13384
  })
@@ -13322,11 +13413,11 @@ var Counter = ({
13322
13413
  const increment = () => {
13323
13414
  setCount(count + step);
13324
13415
  };
13325
- return /* @__PURE__ */ jsxs23(Card, {
13416
+ return /* @__PURE__ */ jsxs32(Card, {
13326
13417
  style: container2,
13327
13418
  className: cn("w-[140px] flex flex-row overflow-hidden"),
13328
13419
  children: [
13329
- /* @__PURE__ */ jsx63("input", {
13420
+ /* @__PURE__ */ jsx73("input", {
13330
13421
  className: "fontbrand text-2xl font-medium min-w-[80px] border-0 text-end outline-0 text-text overflow-hidden flex-1 px-0 py-0 pr-2 w-full h-full tabular-nums",
13331
13422
  type: "number",
13332
13423
  onClick: (e) => e.currentTarget.select(),
@@ -13346,28 +13437,28 @@ var Counter = ({
13346
13437
  }
13347
13438
  }
13348
13439
  }),
13349
- /* @__PURE__ */ jsxs23("div", {
13440
+ /* @__PURE__ */ jsxs32("div", {
13350
13441
  className: "flex flex-col h-full",
13351
13442
  children: [
13352
- /* @__PURE__ */ jsx63("button", {
13443
+ /* @__PURE__ */ jsx73("button", {
13353
13444
  type: "button",
13354
13445
  className: "border-0 flex-1 p-0 pt-[5px] bg-transparent",
13355
13446
  style: {
13356
13447
  ...buttonContainer
13357
13448
  },
13358
13449
  onClick: increment,
13359
- children: /* @__PURE__ */ jsx63(Triangle, {
13450
+ children: /* @__PURE__ */ jsx73(Triangle, {
13360
13451
  rotated: false
13361
13452
  })
13362
13453
  }),
13363
- /* @__PURE__ */ jsx63("button", {
13454
+ /* @__PURE__ */ jsx73("button", {
13364
13455
  type: "button",
13365
13456
  className: "border-0 flex-1 p-0 bg-transparent pb-[5px] pl-[1px]",
13366
13457
  style: {
13367
13458
  ...buttonContainer
13368
13459
  },
13369
13460
  onClick: decrement,
13370
- children: /* @__PURE__ */ jsx63(Triangle, {
13461
+ children: /* @__PURE__ */ jsx73(Triangle, {
13371
13462
  rotated: true
13372
13463
  })
13373
13464
  })
@@ -13376,12 +13467,20 @@ var Counter = ({
13376
13467
  ]
13377
13468
  });
13378
13469
  };
13470
+ var Input = React52.forwardRef(({ className, ...props }, ref) => {
13471
+ return /* @__PURE__ */ jsx83("input", {
13472
+ ref,
13473
+ className: cn("w-full dark:bg-[#121212] rounded-lg border-2 border-b-4 border-black outline-none h-14 px-3 fontbrand text-lg box-border", className),
13474
+ ...props
13475
+ });
13476
+ });
13477
+ Input.displayName = "Input";
13379
13478
  var PlanePaperIcon = (props) => {
13380
- return /* @__PURE__ */ jsx73("svg", {
13479
+ return /* @__PURE__ */ jsx93("svg", {
13381
13480
  xmlns: "http://www.w3.org/2000/svg",
13382
13481
  ...props,
13383
13482
  viewBox: "0 0 576 512",
13384
- children: /* @__PURE__ */ jsx73("path", {
13483
+ children: /* @__PURE__ */ jsx93("path", {
13385
13484
  fill: "currentcolor",
13386
13485
  d: "M169.9 280L94.9 448.6 461.2 280 169.9 280zm291.3-48L94.9 63.4 169.9 232 461.2 232zM34.8 465.6L128 256 34.8 46.4C33 42.2 32 37.6 32 33 32 14.8 46.7 0 64.8 0 69.5 0 74.2 1 78.5 3L554.2 222c13.3 6.1 21.8 19.4 21.8 34s-8.5 27.9-21.8 34L78.5 509c-4.3 2-9 3-13.7 3-18.1 0-32.8-14.8-32.8-33 0-4.6 1-9.2 2.8-13.4z"
13387
13486
  })
@@ -13401,18 +13500,18 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
13401
13500
  function createContextScope(scopeName, createContextScopeDeps = []) {
13402
13501
  let defaultContexts = [];
13403
13502
  function createContext32(rootComponentName, defaultContext) {
13404
- const BaseContext = React42.createContext(defaultContext);
13503
+ const BaseContext = React62.createContext(defaultContext);
13405
13504
  const index = defaultContexts.length;
13406
13505
  defaultContexts = [...defaultContexts, defaultContext];
13407
13506
  function Provider(props) {
13408
13507
  const { scope, children, ...context } = props;
13409
13508
  const Context = scope?.[scopeName][index] || BaseContext;
13410
- const value = React42.useMemo(() => context, Object.values(context));
13411
- return /* @__PURE__ */ jsx83(Context.Provider, { value, children });
13509
+ const value = React62.useMemo(() => context, Object.values(context));
13510
+ return /* @__PURE__ */ jsx103(Context.Provider, { value, children });
13412
13511
  }
13413
13512
  function useContext210(consumerName, scope) {
13414
13513
  const Context = scope?.[scopeName][index] || BaseContext;
13415
- const context = React42.useContext(Context);
13514
+ const context = React62.useContext(Context);
13416
13515
  if (context)
13417
13516
  return context;
13418
13517
  if (defaultContext !== undefined)
@@ -13424,11 +13523,11 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
13424
13523
  }
13425
13524
  const createScope = () => {
13426
13525
  const scopeContexts = defaultContexts.map((defaultContext) => {
13427
- return React42.createContext(defaultContext);
13526
+ return React62.createContext(defaultContext);
13428
13527
  });
13429
13528
  return function useScope(scope) {
13430
13529
  const contexts = scope?.[scopeName] || scopeContexts;
13431
- return React42.useMemo(() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }), [scope, contexts]);
13530
+ return React62.useMemo(() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }), [scope, contexts]);
13432
13531
  };
13433
13532
  };
13434
13533
  createScope.scopeName = scopeName;
@@ -13449,7 +13548,7 @@ function composeContextScopes(...scopes) {
13449
13548
  const currentScope = scopeProps[`__scope${scopeName}`];
13450
13549
  return { ...nextScopes2, ...currentScope };
13451
13550
  }, {});
13452
- return React42.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
13551
+ return React62.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
13453
13552
  };
13454
13553
  };
13455
13554
  createScope.scopeName = baseScope.scopeName;
@@ -13466,45 +13565,45 @@ function composeRefs(...refs) {
13466
13565
  return (node) => refs.forEach((ref) => setRef(ref, node));
13467
13566
  }
13468
13567
  function useComposedRefs(...refs) {
13469
- return React52.useCallback(composeRefs(...refs), refs);
13568
+ return React72.useCallback(composeRefs(...refs), refs);
13470
13569
  }
13471
- var Slot = React62.forwardRef((props, forwardedRef) => {
13570
+ var Slot = React8.forwardRef((props, forwardedRef) => {
13472
13571
  const { children, ...slotProps } = props;
13473
- const childrenArray = React62.Children.toArray(children);
13572
+ const childrenArray = React8.Children.toArray(children);
13474
13573
  const slottable = childrenArray.find(isSlottable);
13475
13574
  if (slottable) {
13476
13575
  const newElement = slottable.props.children;
13477
13576
  const newChildren = childrenArray.map((child) => {
13478
13577
  if (child === slottable) {
13479
- if (React62.Children.count(newElement) > 1)
13480
- return React62.Children.only(null);
13481
- return React62.isValidElement(newElement) ? newElement.props.children : null;
13578
+ if (React8.Children.count(newElement) > 1)
13579
+ return React8.Children.only(null);
13580
+ return React8.isValidElement(newElement) ? newElement.props.children : null;
13482
13581
  } else {
13483
13582
  return child;
13484
13583
  }
13485
13584
  });
13486
- return /* @__PURE__ */ jsx93(SlotClone, { ...slotProps, ref: forwardedRef, children: React62.isValidElement(newElement) ? React62.cloneElement(newElement, undefined, newChildren) : null });
13585
+ return /* @__PURE__ */ jsx112(SlotClone, { ...slotProps, ref: forwardedRef, children: React8.isValidElement(newElement) ? React8.cloneElement(newElement, undefined, newChildren) : null });
13487
13586
  }
13488
- return /* @__PURE__ */ jsx93(SlotClone, { ...slotProps, ref: forwardedRef, children });
13587
+ return /* @__PURE__ */ jsx112(SlotClone, { ...slotProps, ref: forwardedRef, children });
13489
13588
  });
13490
13589
  Slot.displayName = "Slot";
13491
- var SlotClone = React62.forwardRef((props, forwardedRef) => {
13590
+ var SlotClone = React8.forwardRef((props, forwardedRef) => {
13492
13591
  const { children, ...slotProps } = props;
13493
- if (React62.isValidElement(children)) {
13592
+ if (React8.isValidElement(children)) {
13494
13593
  const childrenRef = getElementRef(children);
13495
- return React62.cloneElement(children, {
13594
+ return React8.cloneElement(children, {
13496
13595
  ...mergeProps(slotProps, children.props),
13497
13596
  ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
13498
13597
  });
13499
13598
  }
13500
- return React62.Children.count(children) > 1 ? React62.Children.only(null) : null;
13599
+ return React8.Children.count(children) > 1 ? React8.Children.only(null) : null;
13501
13600
  });
13502
13601
  SlotClone.displayName = "SlotClone";
13503
13602
  var Slottable = ({ children }) => {
13504
- return /* @__PURE__ */ jsx93(Fragment2, { children });
13603
+ return /* @__PURE__ */ jsx112(Fragment2, { children });
13505
13604
  };
13506
13605
  function isSlottable(child) {
13507
- return React62.isValidElement(child) && child.type === Slottable;
13606
+ return React8.isValidElement(child) && child.type === Slottable;
13508
13607
  }
13509
13608
  function mergeProps(slotProps, childProps) {
13510
13609
  const overrideProps = { ...childProps };
@@ -13548,36 +13647,36 @@ function createCollection(name) {
13548
13647
  const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map });
13549
13648
  const CollectionProvider = (props) => {
13550
13649
  const { scope, children } = props;
13551
- const ref = React7.useRef(null);
13552
- const itemMap = React7.useRef(/* @__PURE__ */ new Map).current;
13553
- return /* @__PURE__ */ jsx103(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
13650
+ const ref = React9.useRef(null);
13651
+ const itemMap = React9.useRef(/* @__PURE__ */ new Map).current;
13652
+ return /* @__PURE__ */ jsx122(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
13554
13653
  };
13555
13654
  CollectionProvider.displayName = PROVIDER_NAME;
13556
13655
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
13557
- const CollectionSlot = React7.forwardRef((props, forwardedRef) => {
13656
+ const CollectionSlot = React9.forwardRef((props, forwardedRef) => {
13558
13657
  const { scope, children } = props;
13559
13658
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
13560
13659
  const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
13561
- return /* @__PURE__ */ jsx103(Slot, { ref: composedRefs, children });
13660
+ return /* @__PURE__ */ jsx122(Slot, { ref: composedRefs, children });
13562
13661
  });
13563
13662
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
13564
13663
  const ITEM_SLOT_NAME = name + "CollectionItemSlot";
13565
13664
  const ITEM_DATA_ATTR = "data-radix-collection-item";
13566
- const CollectionItemSlot = React7.forwardRef((props, forwardedRef) => {
13665
+ const CollectionItemSlot = React9.forwardRef((props, forwardedRef) => {
13567
13666
  const { scope, children, ...itemData } = props;
13568
- const ref = React7.useRef(null);
13667
+ const ref = React9.useRef(null);
13569
13668
  const composedRefs = useComposedRefs(forwardedRef, ref);
13570
13669
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
13571
- React7.useEffect(() => {
13670
+ React9.useEffect(() => {
13572
13671
  context.itemMap.set(ref, { ref, ...itemData });
13573
13672
  return () => void context.itemMap.delete(ref);
13574
13673
  });
13575
- return /* @__PURE__ */ jsx103(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
13674
+ return /* @__PURE__ */ jsx122(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
13576
13675
  });
13577
13676
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
13578
13677
  function useCollection(scope) {
13579
13678
  const context = useCollectionContext(name + "CollectionConsumer", scope);
13580
- const getItems = React7.useCallback(() => {
13679
+ const getItems = React9.useCallback(() => {
13581
13680
  const collectionNode = context.collectionRef.current;
13582
13681
  if (!collectionNode)
13583
13682
  return [];
@@ -13594,9 +13693,9 @@ function createCollection(name) {
13594
13693
  createCollectionScope
13595
13694
  ];
13596
13695
  }
13597
- var DirectionContext = React8.createContext(undefined);
13696
+ var DirectionContext = React10.createContext(undefined);
13598
13697
  function useDirection(localDir) {
13599
- const globalDir = React8.useContext(DirectionContext);
13698
+ const globalDir = React10.useContext(DirectionContext);
13600
13699
  return localDir || globalDir || "ltr";
13601
13700
  }
13602
13701
  var NODES = [
@@ -13618,13 +13717,13 @@ var NODES = [
13618
13717
  "ul"
13619
13718
  ];
13620
13719
  var Primitive = NODES.reduce((primitive, node) => {
13621
- const Node2 = React9.forwardRef((props, forwardedRef) => {
13720
+ const Node2 = React112.forwardRef((props, forwardedRef) => {
13622
13721
  const { asChild, ...primitiveProps } = props;
13623
13722
  const Comp = asChild ? Slot : node;
13624
13723
  if (typeof window !== "undefined") {
13625
13724
  window[Symbol.for("radix-ui")] = true;
13626
13725
  }
13627
- return /* @__PURE__ */ jsx122(Comp, { ...primitiveProps, ref: forwardedRef });
13726
+ return /* @__PURE__ */ jsx142(Comp, { ...primitiveProps, ref: forwardedRef });
13628
13727
  });
13629
13728
  Node2.displayName = `Primitive.${node}`;
13630
13729
  return { ...primitive, [node]: Node2 };
@@ -13634,15 +13733,15 @@ function dispatchDiscreteCustomEvent(target, event) {
13634
13733
  ReactDOM.flushSync(() => target.dispatchEvent(event));
13635
13734
  }
13636
13735
  function useCallbackRef(callback) {
13637
- const callbackRef = React102.useRef(callback);
13638
- React102.useEffect(() => {
13736
+ const callbackRef = React122.useRef(callback);
13737
+ React122.useEffect(() => {
13639
13738
  callbackRef.current = callback;
13640
13739
  });
13641
- return React102.useMemo(() => (...args) => callbackRef.current?.(...args), []);
13740
+ return React122.useMemo(() => (...args) => callbackRef.current?.(...args), []);
13642
13741
  }
13643
13742
  function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
13644
13743
  const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
13645
- React112.useEffect(() => {
13744
+ React13.useEffect(() => {
13646
13745
  const handleKeyDown = (event) => {
13647
13746
  if (event.key === "Escape") {
13648
13747
  onEscapeKeyDown(event);
@@ -13657,12 +13756,12 @@ var CONTEXT_UPDATE = "dismissableLayer.update";
13657
13756
  var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
13658
13757
  var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
13659
13758
  var originalBodyPointerEvents;
13660
- var DismissableLayerContext = React12.createContext({
13759
+ var DismissableLayerContext = React14.createContext({
13661
13760
  layers: /* @__PURE__ */ new Set,
13662
13761
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set,
13663
13762
  branches: /* @__PURE__ */ new Set
13664
13763
  });
13665
- var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13764
+ var DismissableLayer = React14.forwardRef((props, forwardedRef) => {
13666
13765
  const {
13667
13766
  disableOutsidePointerEvents = false,
13668
13767
  onEscapeKeyDown,
@@ -13672,10 +13771,10 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13672
13771
  onDismiss,
13673
13772
  ...layerProps
13674
13773
  } = props;
13675
- const context = React12.useContext(DismissableLayerContext);
13676
- const [node, setNode] = React12.useState(null);
13774
+ const context = React14.useContext(DismissableLayerContext);
13775
+ const [node, setNode] = React14.useState(null);
13677
13776
  const ownerDocument = node?.ownerDocument ?? globalThis?.document;
13678
- const [, force] = React12.useState({});
13777
+ const [, force] = React14.useState({});
13679
13778
  const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
13680
13779
  const layers = Array.from(context.layers);
13681
13780
  const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
@@ -13713,7 +13812,7 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13713
13812
  onDismiss();
13714
13813
  }
13715
13814
  }, ownerDocument);
13716
- React12.useEffect(() => {
13815
+ React14.useEffect(() => {
13717
13816
  if (!node)
13718
13817
  return;
13719
13818
  if (disableOutsidePointerEvents) {
@@ -13731,7 +13830,7 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13731
13830
  }
13732
13831
  };
13733
13832
  }, [node, ownerDocument, disableOutsidePointerEvents, context]);
13734
- React12.useEffect(() => {
13833
+ React14.useEffect(() => {
13735
13834
  return () => {
13736
13835
  if (!node)
13737
13836
  return;
@@ -13740,12 +13839,12 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13740
13839
  dispatchUpdate();
13741
13840
  };
13742
13841
  }, [node, context]);
13743
- React12.useEffect(() => {
13842
+ React14.useEffect(() => {
13744
13843
  const handleUpdate = () => force({});
13745
13844
  document.addEventListener(CONTEXT_UPDATE, handleUpdate);
13746
13845
  return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
13747
13846
  }, []);
13748
- return /* @__PURE__ */ jsx132(Primitive.div, {
13847
+ return /* @__PURE__ */ jsx152(Primitive.div, {
13749
13848
  ...layerProps,
13750
13849
  ref: composedRefs,
13751
13850
  style: {
@@ -13759,11 +13858,11 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13759
13858
  });
13760
13859
  DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
13761
13860
  var BRANCH_NAME = "DismissableLayerBranch";
13762
- var DismissableLayerBranch = React12.forwardRef((props, forwardedRef) => {
13763
- const context = React12.useContext(DismissableLayerContext);
13764
- const ref = React12.useRef(null);
13861
+ var DismissableLayerBranch = React14.forwardRef((props, forwardedRef) => {
13862
+ const context = React14.useContext(DismissableLayerContext);
13863
+ const ref = React14.useRef(null);
13765
13864
  const composedRefs = useComposedRefs(forwardedRef, ref);
13766
- React12.useEffect(() => {
13865
+ React14.useEffect(() => {
13767
13866
  const node = ref.current;
13768
13867
  if (node) {
13769
13868
  context.branches.add(node);
@@ -13772,14 +13871,14 @@ var DismissableLayerBranch = React12.forwardRef((props, forwardedRef) => {
13772
13871
  };
13773
13872
  }
13774
13873
  }, [context.branches]);
13775
- return /* @__PURE__ */ jsx132(Primitive.div, { ...props, ref: composedRefs });
13874
+ return /* @__PURE__ */ jsx152(Primitive.div, { ...props, ref: composedRefs });
13776
13875
  });
13777
13876
  DismissableLayerBranch.displayName = BRANCH_NAME;
13778
13877
  function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
13779
13878
  const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
13780
- const isPointerInsideReactTreeRef = React12.useRef(false);
13781
- const handleClickRef = React12.useRef(() => {});
13782
- React12.useEffect(() => {
13879
+ const isPointerInsideReactTreeRef = React14.useRef(false);
13880
+ const handleClickRef = React14.useRef(() => {});
13881
+ React14.useEffect(() => {
13783
13882
  const handlePointerDown = (event) => {
13784
13883
  if (event.target && !isPointerInsideReactTreeRef.current) {
13785
13884
  let handleAndDispatchPointerDownOutsideEvent2 = function() {
@@ -13814,8 +13913,8 @@ function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?
13814
13913
  }
13815
13914
  function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
13816
13915
  const handleFocusOutside = useCallbackRef(onFocusOutside);
13817
- const isFocusInsideReactTreeRef = React12.useRef(false);
13818
- React12.useEffect(() => {
13916
+ const isFocusInsideReactTreeRef = React14.useRef(false);
13917
+ React14.useEffect(() => {
13819
13918
  const handleFocus = (event) => {
13820
13919
  if (event.target && !isFocusInsideReactTreeRef.current) {
13821
13920
  const eventDetail = { originalEvent: event };
@@ -13849,7 +13948,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
13849
13948
  }
13850
13949
  var count = 0;
13851
13950
  function useFocusGuards() {
13852
- React13.useEffect(() => {
13951
+ React152.useEffect(() => {
13853
13952
  const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
13854
13953
  document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
13855
13954
  document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
@@ -13873,7 +13972,7 @@ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
13873
13972
  var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
13874
13973
  var EVENT_OPTIONS = { bubbles: false, cancelable: true };
13875
13974
  var FOCUS_SCOPE_NAME = "FocusScope";
13876
- var FocusScope = React142.forwardRef((props, forwardedRef) => {
13975
+ var FocusScope = React162.forwardRef((props, forwardedRef) => {
13877
13976
  const {
13878
13977
  loop = false,
13879
13978
  trapped = false,
@@ -13881,12 +13980,12 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13881
13980
  onUnmountAutoFocus: onUnmountAutoFocusProp,
13882
13981
  ...scopeProps
13883
13982
  } = props;
13884
- const [container22, setContainer] = React142.useState(null);
13983
+ const [container22, setContainer] = React162.useState(null);
13885
13984
  const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
13886
13985
  const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
13887
- const lastFocusedElementRef = React142.useRef(null);
13986
+ const lastFocusedElementRef = React162.useRef(null);
13888
13987
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
13889
- const focusScope = React142.useRef({
13988
+ const focusScope = React162.useRef({
13890
13989
  paused: false,
13891
13990
  pause() {
13892
13991
  this.paused = true;
@@ -13895,7 +13994,7 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13895
13994
  this.paused = false;
13896
13995
  }
13897
13996
  }).current;
13898
- React142.useEffect(() => {
13997
+ React162.useEffect(() => {
13899
13998
  if (trapped) {
13900
13999
  let handleFocusIn2 = function(event) {
13901
14000
  if (focusScope.paused || !container22)
@@ -13937,7 +14036,7 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13937
14036
  };
13938
14037
  }
13939
14038
  }, [trapped, container22, focusScope.paused]);
13940
- React142.useEffect(() => {
14039
+ React162.useEffect(() => {
13941
14040
  if (container22) {
13942
14041
  focusScopesStack.add(focusScope);
13943
14042
  const previouslyFocusedElement = document.activeElement;
@@ -13968,7 +14067,7 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13968
14067
  };
13969
14068
  }
13970
14069
  }, [container22, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
13971
- const handleKeyDown = React142.useCallback((event) => {
14070
+ const handleKeyDown = React162.useCallback((event) => {
13972
14071
  if (!loop && !trapped)
13973
14072
  return;
13974
14073
  if (focusScope.paused)
@@ -13995,7 +14094,7 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13995
14094
  }
13996
14095
  }
13997
14096
  }, [loop, trapped, focusScope.paused]);
13998
- return /* @__PURE__ */ jsx142(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
14097
+ return /* @__PURE__ */ jsx162(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
13999
14098
  });
14000
14099
  FocusScope.displayName = FOCUS_SCOPE_NAME;
14001
14100
  function focusFirst(candidates, { select = false } = {}) {
@@ -14084,13 +14183,13 @@ function arrayRemove(array, item) {
14084
14183
  function removeLinks(items) {
14085
14184
  return items.filter((item) => item.tagName !== "A");
14086
14185
  }
14087
- var useLayoutEffect22 = Boolean(globalThis?.document) ? React152.useLayoutEffect : () => {};
14088
- var useReactId = React162["useId".toString()] || (() => {
14186
+ var useLayoutEffect22 = Boolean(globalThis?.document) ? React172.useLayoutEffect : () => {};
14187
+ var useReactId = React18["useId".toString()] || (() => {
14089
14188
  return;
14090
14189
  });
14091
14190
  var count2 = 0;
14092
14191
  function useId(deterministicId) {
14093
- const [id, setId] = React162.useState(useReactId());
14192
+ const [id, setId] = React18.useState(useReactId());
14094
14193
  useLayoutEffect22(() => {
14095
14194
  if (!deterministicId)
14096
14195
  setId((reactId) => reactId ?? String(count2++));
@@ -15608,7 +15707,7 @@ var computePosition2 = (reference, floating, options) => {
15608
15707
  platform: platformWithCache
15609
15708
  });
15610
15709
  };
15611
- var index = typeof document !== "undefined" ? useLayoutEffect32 : useEffect72;
15710
+ var index = typeof document !== "undefined" ? useLayoutEffect32 : useEffect82;
15612
15711
  function deepEqual(a, b) {
15613
15712
  if (a === b) {
15614
15713
  return true;
@@ -15669,7 +15768,7 @@ function roundByDPR(element, value) {
15669
15768
  return Math.round(value * dpr) / dpr;
15670
15769
  }
15671
15770
  function useLatestRef(value) {
15672
- const ref = React172.useRef(value);
15771
+ const ref = React19.useRef(value);
15673
15772
  index(() => {
15674
15773
  ref.current = value;
15675
15774
  });
@@ -15692,7 +15791,7 @@ function useFloating(options) {
15692
15791
  whileElementsMounted,
15693
15792
  open
15694
15793
  } = options;
15695
- const [data, setData] = React172.useState({
15794
+ const [data, setData] = React19.useState({
15696
15795
  x: 0,
15697
15796
  y: 0,
15698
15797
  strategy,
@@ -15700,19 +15799,19 @@ function useFloating(options) {
15700
15799
  middlewareData: {},
15701
15800
  isPositioned: false
15702
15801
  });
15703
- const [latestMiddleware, setLatestMiddleware] = React172.useState(middleware);
15802
+ const [latestMiddleware, setLatestMiddleware] = React19.useState(middleware);
15704
15803
  if (!deepEqual(latestMiddleware, middleware)) {
15705
15804
  setLatestMiddleware(middleware);
15706
15805
  }
15707
- const [_reference, _setReference] = React172.useState(null);
15708
- const [_floating, _setFloating] = React172.useState(null);
15709
- const setReference = React172.useCallback((node) => {
15806
+ const [_reference, _setReference] = React19.useState(null);
15807
+ const [_floating, _setFloating] = React19.useState(null);
15808
+ const setReference = React19.useCallback((node) => {
15710
15809
  if (node !== referenceRef.current) {
15711
15810
  referenceRef.current = node;
15712
15811
  _setReference(node);
15713
15812
  }
15714
15813
  }, []);
15715
- const setFloating = React172.useCallback((node) => {
15814
+ const setFloating = React19.useCallback((node) => {
15716
15815
  if (node !== floatingRef.current) {
15717
15816
  floatingRef.current = node;
15718
15817
  _setFloating(node);
@@ -15720,13 +15819,13 @@ function useFloating(options) {
15720
15819
  }, []);
15721
15820
  const referenceEl = externalReference || _reference;
15722
15821
  const floatingEl = externalFloating || _floating;
15723
- const referenceRef = React172.useRef(null);
15724
- const floatingRef = React172.useRef(null);
15725
- const dataRef = React172.useRef(data);
15822
+ const referenceRef = React19.useRef(null);
15823
+ const floatingRef = React19.useRef(null);
15824
+ const dataRef = React19.useRef(data);
15726
15825
  const hasWhileElementsMounted = whileElementsMounted != null;
15727
15826
  const whileElementsMountedRef = useLatestRef(whileElementsMounted);
15728
15827
  const platformRef = useLatestRef(platform2);
15729
- const update = React172.useCallback(() => {
15828
+ const update = React19.useCallback(() => {
15730
15829
  if (!referenceRef.current || !floatingRef.current) {
15731
15830
  return;
15732
15831
  }
@@ -15760,7 +15859,7 @@ function useFloating(options) {
15760
15859
  }));
15761
15860
  }
15762
15861
  }, [open]);
15763
- const isMountedRef = React172.useRef(false);
15862
+ const isMountedRef = React19.useRef(false);
15764
15863
  index(() => {
15765
15864
  isMountedRef.current = true;
15766
15865
  return () => {
@@ -15779,17 +15878,17 @@ function useFloating(options) {
15779
15878
  update();
15780
15879
  }
15781
15880
  }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
15782
- const refs = React172.useMemo(() => ({
15881
+ const refs = React19.useMemo(() => ({
15783
15882
  reference: referenceRef,
15784
15883
  floating: floatingRef,
15785
15884
  setReference,
15786
15885
  setFloating
15787
15886
  }), [setReference, setFloating]);
15788
- const elements = React172.useMemo(() => ({
15887
+ const elements = React19.useMemo(() => ({
15789
15888
  reference: referenceEl,
15790
15889
  floating: floatingEl
15791
15890
  }), [referenceEl, floatingEl]);
15792
- const floatingStyles = React172.useMemo(() => {
15891
+ const floatingStyles = React19.useMemo(() => {
15793
15892
  const initialStyles = {
15794
15893
  position: strategy,
15795
15894
  left: 0,
@@ -15815,7 +15914,7 @@ function useFloating(options) {
15815
15914
  top: y
15816
15915
  };
15817
15916
  }, [strategy, transform, elements.floating, data.x, data.y]);
15818
- return React172.useMemo(() => ({
15917
+ return React19.useMemo(() => ({
15819
15918
  ...data,
15820
15919
  update,
15821
15920
  refs,
@@ -15883,22 +15982,22 @@ var arrow3 = (options, deps) => ({
15883
15982
  options: [options, deps]
15884
15983
  });
15885
15984
  var NAME = "Arrow";
15886
- var Arrow = React18.forwardRef((props, forwardedRef) => {
15985
+ var Arrow = React20.forwardRef((props, forwardedRef) => {
15887
15986
  const { children, width = 10, height = 5, ...arrowProps } = props;
15888
- return /* @__PURE__ */ jsx152(Primitive.svg, {
15987
+ return /* @__PURE__ */ jsx172(Primitive.svg, {
15889
15988
  ...arrowProps,
15890
15989
  ref: forwardedRef,
15891
15990
  width,
15892
15991
  height,
15893
15992
  viewBox: "0 0 30 10",
15894
15993
  preserveAspectRatio: "none",
15895
- children: props.asChild ? children : /* @__PURE__ */ jsx152("polygon", { points: "0,0 30,0 15,10" })
15994
+ children: props.asChild ? children : /* @__PURE__ */ jsx172("polygon", { points: "0,0 30,0 15,10" })
15896
15995
  });
15897
15996
  });
15898
15997
  Arrow.displayName = NAME;
15899
15998
  var Root2 = Arrow;
15900
15999
  function useSize(element) {
15901
- const [size4, setSize] = React19.useState(undefined);
16000
+ const [size4, setSize] = React212.useState(undefined);
15902
16001
  useLayoutEffect22(() => {
15903
16002
  if (element) {
15904
16003
  setSize({ width: element.offsetWidth, height: element.offsetHeight });
@@ -15936,25 +16035,25 @@ var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
15936
16035
  var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
15937
16036
  var Popper = (props) => {
15938
16037
  const { __scopePopper, children } = props;
15939
- const [anchor, setAnchor] = React20.useState(null);
15940
- return /* @__PURE__ */ jsx162(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
16038
+ const [anchor, setAnchor] = React22.useState(null);
16039
+ return /* @__PURE__ */ jsx182(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
15941
16040
  };
15942
16041
  Popper.displayName = POPPER_NAME;
15943
16042
  var ANCHOR_NAME = "PopperAnchor";
15944
- var PopperAnchor = React20.forwardRef((props, forwardedRef) => {
16043
+ var PopperAnchor = React22.forwardRef((props, forwardedRef) => {
15945
16044
  const { __scopePopper, virtualRef, ...anchorProps } = props;
15946
16045
  const context = usePopperContext(ANCHOR_NAME, __scopePopper);
15947
- const ref = React20.useRef(null);
16046
+ const ref = React22.useRef(null);
15948
16047
  const composedRefs = useComposedRefs(forwardedRef, ref);
15949
- React20.useEffect(() => {
16048
+ React22.useEffect(() => {
15950
16049
  context.onAnchorChange(virtualRef?.current || ref.current);
15951
16050
  });
15952
- return virtualRef ? null : /* @__PURE__ */ jsx162(Primitive.div, { ...anchorProps, ref: composedRefs });
16051
+ return virtualRef ? null : /* @__PURE__ */ jsx182(Primitive.div, { ...anchorProps, ref: composedRefs });
15953
16052
  });
15954
16053
  PopperAnchor.displayName = ANCHOR_NAME;
15955
16054
  var CONTENT_NAME = "PopperContent";
15956
16055
  var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
15957
- var PopperContent = React20.forwardRef((props, forwardedRef) => {
16056
+ var PopperContent = React22.forwardRef((props, forwardedRef) => {
15958
16057
  const {
15959
16058
  __scopePopper,
15960
16059
  side = "bottom",
@@ -15972,9 +16071,9 @@ var PopperContent = React20.forwardRef((props, forwardedRef) => {
15972
16071
  ...contentProps
15973
16072
  } = props;
15974
16073
  const context = usePopperContext(CONTENT_NAME, __scopePopper);
15975
- const [content, setContent] = React20.useState(null);
16074
+ const [content, setContent] = React22.useState(null);
15976
16075
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
15977
- const [arrow4, setArrow] = React20.useState(null);
16076
+ const [arrow4, setArrow] = React22.useState(null);
15978
16077
  const arrowSize = useSize(arrow4);
15979
16078
  const arrowWidth = arrowSize?.width ?? 0;
15980
16079
  const arrowHeight = arrowSize?.height ?? 0;
@@ -16034,12 +16133,12 @@ var PopperContent = React20.forwardRef((props, forwardedRef) => {
16034
16133
  const arrowX = middlewareData.arrow?.x;
16035
16134
  const arrowY = middlewareData.arrow?.y;
16036
16135
  const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
16037
- const [contentZIndex, setContentZIndex] = React20.useState();
16136
+ const [contentZIndex, setContentZIndex] = React22.useState();
16038
16137
  useLayoutEffect22(() => {
16039
16138
  if (content)
16040
16139
  setContentZIndex(window.getComputedStyle(content).zIndex);
16041
16140
  }, [content]);
16042
- return /* @__PURE__ */ jsx162("div", {
16141
+ return /* @__PURE__ */ jsx182("div", {
16043
16142
  ref: refs.setFloating,
16044
16143
  "data-radix-popper-content-wrapper": "",
16045
16144
  style: {
@@ -16057,14 +16156,14 @@ var PopperContent = React20.forwardRef((props, forwardedRef) => {
16057
16156
  }
16058
16157
  },
16059
16158
  dir: props.dir,
16060
- children: /* @__PURE__ */ jsx162(PopperContentProvider, {
16159
+ children: /* @__PURE__ */ jsx182(PopperContentProvider, {
16061
16160
  scope: __scopePopper,
16062
16161
  placedSide,
16063
16162
  onArrowChange: setArrow,
16064
16163
  arrowX,
16065
16164
  arrowY,
16066
16165
  shouldHideArrow: cannotCenterArrow,
16067
- children: /* @__PURE__ */ jsx162(Primitive.div, {
16166
+ children: /* @__PURE__ */ jsx182(Primitive.div, {
16068
16167
  "data-side": placedSide,
16069
16168
  "data-align": placedAlign,
16070
16169
  ...contentProps,
@@ -16085,11 +16184,11 @@ var OPPOSITE_SIDE = {
16085
16184
  bottom: "top",
16086
16185
  left: "right"
16087
16186
  };
16088
- var PopperArrow = React20.forwardRef(function PopperArrow2(props, forwardedRef) {
16187
+ var PopperArrow = React22.forwardRef(function PopperArrow2(props, forwardedRef) {
16089
16188
  const { __scopePopper, ...arrowProps } = props;
16090
16189
  const contentContext = useContentContext(ARROW_NAME, __scopePopper);
16091
16190
  const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
16092
- return /* @__PURE__ */ jsx162("span", {
16191
+ return /* @__PURE__ */ jsx182("span", {
16093
16192
  ref: contentContext.onArrowChange,
16094
16193
  style: {
16095
16194
  position: "absolute",
@@ -16110,7 +16209,7 @@ var PopperArrow = React20.forwardRef(function PopperArrow2(props, forwardedRef)
16110
16209
  }[contentContext.placedSide],
16111
16210
  visibility: contentContext.shouldHideArrow ? "hidden" : undefined
16112
16211
  },
16113
- children: /* @__PURE__ */ jsx162(Root2, {
16212
+ children: /* @__PURE__ */ jsx182(Root2, {
16114
16213
  ...arrowProps,
16115
16214
  ref: forwardedRef,
16116
16215
  style: {
@@ -16164,12 +16263,12 @@ var Anchor = PopperAnchor;
16164
16263
  var Content = PopperContent;
16165
16264
  var Arrow2 = PopperArrow;
16166
16265
  var PORTAL_NAME = "Portal";
16167
- var Portal = React212.forwardRef((props, forwardedRef) => {
16266
+ var Portal = React23.forwardRef((props, forwardedRef) => {
16168
16267
  const { container: containerProp, ...portalProps } = props;
16169
- const [mounted, setMounted] = React212.useState(false);
16268
+ const [mounted, setMounted] = React23.useState(false);
16170
16269
  useLayoutEffect22(() => setMounted(true), []);
16171
16270
  const container22 = containerProp || mounted && globalThis?.document?.body;
16172
- return container22 ? ReactDOM3.createPortal(/* @__PURE__ */ jsx172(Primitive.div, { ...portalProps, ref: forwardedRef }), container22) : null;
16271
+ return container22 ? ReactDOM3.createPortal(/* @__PURE__ */ jsx192(Primitive.div, { ...portalProps, ref: forwardedRef }), container22) : null;
16173
16272
  });
16174
16273
  Portal.displayName = PORTAL_NAME;
16175
16274
  function useControllableState({
@@ -16181,7 +16280,7 @@ function useControllableState({
16181
16280
  const isControlled = prop !== undefined;
16182
16281
  const value = isControlled ? prop : uncontrolledProp;
16183
16282
  const handleChange = useCallbackRef(onChange);
16184
- const setValue = React22.useCallback((nextValue) => {
16283
+ const setValue = React24.useCallback((nextValue) => {
16185
16284
  if (isControlled) {
16186
16285
  const setter = nextValue;
16187
16286
  const value2 = typeof nextValue === "function" ? setter(prop) : nextValue;
@@ -16197,11 +16296,11 @@ function useUncontrolledState({
16197
16296
  defaultProp,
16198
16297
  onChange
16199
16298
  }) {
16200
- const uncontrolledState = React22.useState(defaultProp);
16299
+ const uncontrolledState = React24.useState(defaultProp);
16201
16300
  const [value] = uncontrolledState;
16202
- const prevValueRef = React22.useRef(value);
16301
+ const prevValueRef = React24.useRef(value);
16203
16302
  const handleChange = useCallbackRef(onChange);
16204
- React22.useEffect(() => {
16303
+ React24.useEffect(() => {
16205
16304
  if (prevValueRef.current !== value) {
16206
16305
  handleChange(value);
16207
16306
  prevValueRef.current = value;
@@ -16210,8 +16309,8 @@ function useUncontrolledState({
16210
16309
  return uncontrolledState;
16211
16310
  }
16212
16311
  function usePrevious(value) {
16213
- const ref = React23.useRef({ value, previous: value });
16214
- return React23.useMemo(() => {
16312
+ const ref = React252.useRef({ value, previous: value });
16313
+ return React252.useMemo(() => {
16215
16314
  if (ref.current.value !== value) {
16216
16315
  ref.current.previous = ref.current.value;
16217
16316
  ref.current.value = value;
@@ -16220,8 +16319,8 @@ function usePrevious(value) {
16220
16319
  }, [value]);
16221
16320
  }
16222
16321
  var NAME2 = "VisuallyHidden";
16223
- var VisuallyHidden = React24.forwardRef((props, forwardedRef) => {
16224
- return /* @__PURE__ */ jsx182(Primitive.span, {
16322
+ var VisuallyHidden = React26.forwardRef((props, forwardedRef) => {
16323
+ return /* @__PURE__ */ jsx202(Primitive.span, {
16225
16324
  ...props,
16226
16325
  ref: forwardedRef,
16227
16326
  style: {
@@ -16428,7 +16527,7 @@ function useCallbackRef2(initialValue, callback) {
16428
16527
  ref.callback = callback;
16429
16528
  return ref.facade;
16430
16529
  }
16431
- var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React252.useLayoutEffect : React252.useEffect;
16530
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React272.useLayoutEffect : React272.useEffect;
16432
16531
  var currentValues = new WeakMap;
16433
16532
  function useMergeRefs(refs, defaultValue) {
16434
16533
  var callbackRef = useCallbackRef2(defaultValue || null, function(newValue) {
@@ -16550,7 +16649,7 @@ var SideCar = function(_a) {
16550
16649
  if (!Target) {
16551
16650
  throw new Error("Sidecar medium not found");
16552
16651
  }
16553
- return React26.createElement(Target, __assign({}, rest));
16652
+ return React28.createElement(Target, __assign({}, rest));
16554
16653
  };
16555
16654
  SideCar.isSideCarExport = true;
16556
16655
  function exportSidecar(medium, exported) {
@@ -16561,9 +16660,9 @@ var effectCar = createSidecarMedium();
16561
16660
  var nothing = function() {
16562
16661
  return;
16563
16662
  };
16564
- var RemoveScroll = React272.forwardRef(function(props, parentRef) {
16565
- var ref = React272.useRef(null);
16566
- var _a = React272.useState({
16663
+ var RemoveScroll = React29.forwardRef(function(props, parentRef) {
16664
+ var ref = React29.useRef(null);
16665
+ var _a = React29.useState({
16567
16666
  onScrollCapture: nothing,
16568
16667
  onWheelCapture: nothing,
16569
16668
  onTouchMoveCapture: nothing
@@ -16572,7 +16671,7 @@ var RemoveScroll = React272.forwardRef(function(props, parentRef) {
16572
16671
  var SideCar2 = sideCar;
16573
16672
  var containerRef = useMergeRefs([ref, parentRef]);
16574
16673
  var containerProps = __assign(__assign({}, rest), callbacks);
16575
- return React272.createElement(React272.Fragment, null, enabled && React272.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }), forwardProps ? React272.cloneElement(React272.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React272.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children));
16674
+ return React29.createElement(React29.Fragment, null, enabled && React29.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }), forwardProps ? React29.cloneElement(React29.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React29.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children));
16576
16675
  });
16577
16676
  RemoveScroll.defaultProps = {
16578
16677
  enabled: true,
@@ -16640,7 +16739,7 @@ var stylesheetSingleton = function() {
16640
16739
  var styleHookSingleton = function() {
16641
16740
  var sheet = stylesheetSingleton();
16642
16741
  return function(styles, isDynamic) {
16643
- React28.useEffect(function() {
16742
+ React30.useEffect(function() {
16644
16743
  sheet.add(styles);
16645
16744
  return function() {
16646
16745
  sheet.remove();
@@ -16745,7 +16844,7 @@ var getCurrentUseCounter = function() {
16745
16844
  return isFinite(counter) ? counter : 0;
16746
16845
  };
16747
16846
  var useLockAttribute = function() {
16748
- React29.useEffect(function() {
16847
+ React312.useEffect(function() {
16749
16848
  document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
16750
16849
  return function() {
16751
16850
  var newCounter = getCurrentUseCounter() - 1;
@@ -16760,10 +16859,10 @@ var useLockAttribute = function() {
16760
16859
  var RemoveScrollBar = function(_a) {
16761
16860
  var { noRelative, noImportant, gapMode: _b } = _a, gapMode = _b === undefined ? "margin" : _b;
16762
16861
  useLockAttribute();
16763
- var gap = React29.useMemo(function() {
16862
+ var gap = React312.useMemo(function() {
16764
16863
  return getGapWidth(gapMode);
16765
16864
  }, [gapMode]);
16766
- return React29.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
16865
+ return React312.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
16767
16866
  };
16768
16867
  var passiveSupported = false;
16769
16868
  if (typeof window !== "undefined") {
@@ -16890,16 +16989,16 @@ var generateStyle = function(id) {
16890
16989
  var idCounter = 0;
16891
16990
  var lockStack = [];
16892
16991
  function RemoveScrollSideCar(props) {
16893
- var shouldPreventQueue = React30.useRef([]);
16894
- var touchStartRef = React30.useRef([0, 0]);
16895
- var activeAxis = React30.useRef();
16896
- var id = React30.useState(idCounter++)[0];
16897
- var Style2 = React30.useState(styleSingleton)[0];
16898
- var lastProps = React30.useRef(props);
16899
- React30.useEffect(function() {
16992
+ var shouldPreventQueue = React322.useRef([]);
16993
+ var touchStartRef = React322.useRef([0, 0]);
16994
+ var activeAxis = React322.useRef();
16995
+ var id = React322.useState(idCounter++)[0];
16996
+ var Style2 = React322.useState(styleSingleton)[0];
16997
+ var lastProps = React322.useRef(props);
16998
+ React322.useEffect(function() {
16900
16999
  lastProps.current = props;
16901
17000
  }, [props]);
16902
- React30.useEffect(function() {
17001
+ React322.useEffect(function() {
16903
17002
  if (props.inert) {
16904
17003
  document.body.classList.add("block-interactivity-".concat(id));
16905
17004
  var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
@@ -16915,7 +17014,7 @@ function RemoveScrollSideCar(props) {
16915
17014
  }
16916
17015
  return;
16917
17016
  }, [props.inert, props.lockRef.current, props.shards]);
16918
- var shouldCancelEvent = React30.useCallback(function(event, parent) {
17017
+ var shouldCancelEvent = React322.useCallback(function(event, parent) {
16919
17018
  if ("touches" in event && event.touches.length === 2) {
16920
17019
  return !lastProps.current.allowPinchZoom;
16921
17020
  }
@@ -16951,7 +17050,7 @@ function RemoveScrollSideCar(props) {
16951
17050
  var cancelingAxis = activeAxis.current || currentAxis;
16952
17051
  return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
16953
17052
  }, []);
16954
- var shouldPrevent = React30.useCallback(function(_event) {
17053
+ var shouldPrevent = React322.useCallback(function(_event) {
16955
17054
  var event = _event;
16956
17055
  if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
16957
17056
  return;
@@ -16978,7 +17077,7 @@ function RemoveScrollSideCar(props) {
16978
17077
  }
16979
17078
  }
16980
17079
  }, []);
16981
- var shouldCancel = React30.useCallback(function(name, delta, target, should) {
17080
+ var shouldCancel = React322.useCallback(function(name, delta, target, should) {
16982
17081
  var event = { name, delta, target, should, shadowParent: getOutermostShadowParent(target) };
16983
17082
  shouldPreventQueue.current.push(event);
16984
17083
  setTimeout(function() {
@@ -16987,17 +17086,17 @@ function RemoveScrollSideCar(props) {
16987
17086
  });
16988
17087
  }, 1);
16989
17088
  }, []);
16990
- var scrollTouchStart = React30.useCallback(function(event) {
17089
+ var scrollTouchStart = React322.useCallback(function(event) {
16991
17090
  touchStartRef.current = getTouchXY(event);
16992
17091
  activeAxis.current = undefined;
16993
17092
  }, []);
16994
- var scrollWheel = React30.useCallback(function(event) {
17093
+ var scrollWheel = React322.useCallback(function(event) {
16995
17094
  shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
16996
17095
  }, []);
16997
- var scrollTouchMove = React30.useCallback(function(event) {
17096
+ var scrollTouchMove = React322.useCallback(function(event) {
16998
17097
  shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
16999
17098
  }, []);
17000
- React30.useEffect(function() {
17099
+ React322.useEffect(function() {
17001
17100
  lockStack.push(Style2);
17002
17101
  props.setCallbacks({
17003
17102
  onScrollCapture: scrollWheel,
@@ -17017,7 +17116,7 @@ function RemoveScrollSideCar(props) {
17017
17116
  };
17018
17117
  }, []);
17019
17118
  var { removeScrollBar, inert } = props;
17020
- return React30.createElement(React30.Fragment, null, inert ? React30.createElement(Style2, { styles: generateStyle(id) }) : null, removeScrollBar ? React30.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null);
17119
+ return React322.createElement(React322.Fragment, null, inert ? React322.createElement(Style2, { styles: generateStyle(id) }) : null, removeScrollBar ? React322.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null);
17021
17120
  }
17022
17121
  function getOutermostShadowParent(node) {
17023
17122
  var shadowParent = null;
@@ -17031,8 +17130,8 @@ function getOutermostShadowParent(node) {
17031
17130
  return shadowParent;
17032
17131
  }
17033
17132
  var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
17034
- var ReactRemoveScroll = React312.forwardRef(function(props, ref) {
17035
- return React312.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
17133
+ var ReactRemoveScroll = React332.forwardRef(function(props, ref) {
17134
+ return React332.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
17036
17135
  });
17037
17136
  ReactRemoveScroll.classNames = RemoveScroll.classNames;
17038
17137
  var Combination_default = ReactRemoveScroll;
@@ -17064,9 +17163,9 @@ var Select = (props) => {
17064
17163
  required
17065
17164
  } = props;
17066
17165
  const popperScope = usePopperScope(__scopeSelect);
17067
- const [trigger, setTrigger] = React322.useState(null);
17068
- const [valueNode, setValueNode] = React322.useState(null);
17069
- const [valueNodeHasChildren, setValueNodeHasChildren] = React322.useState(false);
17166
+ const [trigger, setTrigger] = React34.useState(null);
17167
+ const [valueNode, setValueNode] = React34.useState(null);
17168
+ const [valueNodeHasChildren, setValueNodeHasChildren] = React34.useState(false);
17070
17169
  const direction = useDirection(dir);
17071
17170
  const [open = false, setOpen] = useControllableState({
17072
17171
  prop: openProp,
@@ -17078,11 +17177,11 @@ var Select = (props) => {
17078
17177
  defaultProp: defaultValue,
17079
17178
  onChange: onValueChange
17080
17179
  });
17081
- const triggerPointerDownPosRef = React322.useRef(null);
17180
+ const triggerPointerDownPosRef = React34.useRef(null);
17082
17181
  const isFormControl = trigger ? Boolean(trigger.closest("form")) : true;
17083
- const [nativeOptionsSet, setNativeOptionsSet] = React322.useState(/* @__PURE__ */ new Set);
17182
+ const [nativeOptionsSet, setNativeOptionsSet] = React34.useState(/* @__PURE__ */ new Set);
17084
17183
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
17085
- return /* @__PURE__ */ jsx192(Root22, { ...popperScope, children: /* @__PURE__ */ jsxs32(SelectProvider, {
17184
+ return /* @__PURE__ */ jsx212(Root22, { ...popperScope, children: /* @__PURE__ */ jsxs4(SelectProvider, {
17086
17185
  required,
17087
17186
  scope: __scopeSelect,
17088
17187
  trigger,
@@ -17100,12 +17199,12 @@ var Select = (props) => {
17100
17199
  triggerPointerDownPosRef,
17101
17200
  disabled,
17102
17201
  children: [
17103
- /* @__PURE__ */ jsx192(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx192(SelectNativeOptionsProvider, {
17202
+ /* @__PURE__ */ jsx212(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx212(SelectNativeOptionsProvider, {
17104
17203
  scope: props.__scopeSelect,
17105
- onNativeOptionAdd: React322.useCallback((option) => {
17204
+ onNativeOptionAdd: React34.useCallback((option) => {
17106
17205
  setNativeOptionsSet((prev) => new Set(prev).add(option));
17107
17206
  }, []),
17108
- onNativeOptionRemove: React322.useCallback((option) => {
17207
+ onNativeOptionRemove: React34.useCallback((option) => {
17109
17208
  setNativeOptionsSet((prev) => {
17110
17209
  const optionsSet = new Set(prev);
17111
17210
  optionsSet.delete(option);
@@ -17114,7 +17213,7 @@ var Select = (props) => {
17114
17213
  }, []),
17115
17214
  children
17116
17215
  }) }),
17117
- isFormControl ? /* @__PURE__ */ jsxs32(BubbleSelect, {
17216
+ isFormControl ? /* @__PURE__ */ jsxs4(BubbleSelect, {
17118
17217
  "aria-hidden": true,
17119
17218
  required,
17120
17219
  tabIndex: -1,
@@ -17124,7 +17223,7 @@ var Select = (props) => {
17124
17223
  onChange: (event) => setValue(event.target.value),
17125
17224
  disabled,
17126
17225
  children: [
17127
- value === undefined ? /* @__PURE__ */ jsx192("option", { value: "" }) : null,
17226
+ value === undefined ? /* @__PURE__ */ jsx212("option", { value: "" }) : null,
17128
17227
  Array.from(nativeOptionsSet)
17129
17228
  ]
17130
17229
  }, nativeSelectKey) : null
@@ -17133,7 +17232,7 @@ var Select = (props) => {
17133
17232
  };
17134
17233
  Select.displayName = SELECT_NAME;
17135
17234
  var TRIGGER_NAME = "SelectTrigger";
17136
- var SelectTrigger = React322.forwardRef((props, forwardedRef) => {
17235
+ var SelectTrigger = React34.forwardRef((props, forwardedRef) => {
17137
17236
  const { __scopeSelect, disabled = false, ...triggerProps } = props;
17138
17237
  const popperScope = usePopperScope(__scopeSelect);
17139
17238
  const context = useSelectContext(TRIGGER_NAME, __scopeSelect);
@@ -17154,7 +17253,7 @@ var SelectTrigger = React322.forwardRef((props, forwardedRef) => {
17154
17253
  resetTypeahead();
17155
17254
  }
17156
17255
  };
17157
- return /* @__PURE__ */ jsx192(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx192(Primitive.button, {
17256
+ return /* @__PURE__ */ jsx212(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx212(Primitive.button, {
17158
17257
  type: "button",
17159
17258
  role: "combobox",
17160
17259
  "aria-controls": context.contentId,
@@ -17201,7 +17300,7 @@ var SelectTrigger = React322.forwardRef((props, forwardedRef) => {
17201
17300
  });
17202
17301
  SelectTrigger.displayName = TRIGGER_NAME;
17203
17302
  var VALUE_NAME = "SelectValue";
17204
- var SelectValue = React322.forwardRef((props, forwardedRef) => {
17303
+ var SelectValue = React34.forwardRef((props, forwardedRef) => {
17205
17304
  const { __scopeSelect, className, style, children, placeholder = "", ...valueProps } = props;
17206
17305
  const context = useSelectContext(VALUE_NAME, __scopeSelect);
17207
17306
  const { onValueNodeHasChildrenChange } = context;
@@ -17210,43 +17309,43 @@ var SelectValue = React322.forwardRef((props, forwardedRef) => {
17210
17309
  useLayoutEffect22(() => {
17211
17310
  onValueNodeHasChildrenChange(hasChildren);
17212
17311
  }, [onValueNodeHasChildrenChange, hasChildren]);
17213
- return /* @__PURE__ */ jsx192(Primitive.span, {
17312
+ return /* @__PURE__ */ jsx212(Primitive.span, {
17214
17313
  ...valueProps,
17215
17314
  ref: composedRefs,
17216
17315
  style: { pointerEvents: "none" },
17217
- children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx192(Fragment52, { children: placeholder }) : children
17316
+ children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx212(Fragment52, { children: placeholder }) : children
17218
17317
  });
17219
17318
  });
17220
17319
  SelectValue.displayName = VALUE_NAME;
17221
17320
  var ICON_NAME = "SelectIcon";
17222
- var SelectIcon = React322.forwardRef((props, forwardedRef) => {
17321
+ var SelectIcon = React34.forwardRef((props, forwardedRef) => {
17223
17322
  const { __scopeSelect, children, ...iconProps } = props;
17224
- return /* @__PURE__ */ jsx192(Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "▼" });
17323
+ return /* @__PURE__ */ jsx212(Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "▼" });
17225
17324
  });
17226
17325
  SelectIcon.displayName = ICON_NAME;
17227
17326
  var PORTAL_NAME2 = "SelectPortal";
17228
17327
  var SelectPortal = (props) => {
17229
- return /* @__PURE__ */ jsx192(Portal, { asChild: true, ...props });
17328
+ return /* @__PURE__ */ jsx212(Portal, { asChild: true, ...props });
17230
17329
  };
17231
17330
  SelectPortal.displayName = PORTAL_NAME2;
17232
17331
  var CONTENT_NAME2 = "SelectContent";
17233
- var SelectContent = React322.forwardRef((props, forwardedRef) => {
17332
+ var SelectContent = React34.forwardRef((props, forwardedRef) => {
17234
17333
  const context = useSelectContext(CONTENT_NAME2, props.__scopeSelect);
17235
- const [fragment, setFragment] = React322.useState();
17334
+ const [fragment, setFragment] = React34.useState();
17236
17335
  useLayoutEffect22(() => {
17237
17336
  setFragment(new DocumentFragment);
17238
17337
  }, []);
17239
17338
  if (!context.open) {
17240
17339
  const frag = fragment;
17241
- return frag ? ReactDOM4.createPortal(/* @__PURE__ */ jsx192(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx192(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx192("div", { children: props.children }) }) }), frag) : null;
17340
+ return frag ? ReactDOM4.createPortal(/* @__PURE__ */ jsx212(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx212(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx212("div", { children: props.children }) }) }), frag) : null;
17242
17341
  }
17243
- return /* @__PURE__ */ jsx192(SelectContentImpl, { ...props, ref: forwardedRef });
17342
+ return /* @__PURE__ */ jsx212(SelectContentImpl, { ...props, ref: forwardedRef });
17244
17343
  });
17245
17344
  SelectContent.displayName = CONTENT_NAME2;
17246
17345
  var CONTENT_MARGIN = 10;
17247
17346
  var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME2);
17248
17347
  var CONTENT_IMPL_NAME = "SelectContentImpl";
17249
- var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17348
+ var SelectContentImpl = React34.forwardRef((props, forwardedRef) => {
17250
17349
  const {
17251
17350
  __scopeSelect,
17252
17351
  position = "item-aligned",
@@ -17266,20 +17365,20 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17266
17365
  ...contentProps
17267
17366
  } = props;
17268
17367
  const context = useSelectContext(CONTENT_NAME2, __scopeSelect);
17269
- const [content, setContent] = React322.useState(null);
17270
- const [viewport, setViewport] = React322.useState(null);
17368
+ const [content, setContent] = React34.useState(null);
17369
+ const [viewport, setViewport] = React34.useState(null);
17271
17370
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
17272
- const [selectedItem, setSelectedItem] = React322.useState(null);
17273
- const [selectedItemText, setSelectedItemText] = React322.useState(null);
17371
+ const [selectedItem, setSelectedItem] = React34.useState(null);
17372
+ const [selectedItemText, setSelectedItemText] = React34.useState(null);
17274
17373
  const getItems = useCollection(__scopeSelect);
17275
- const [isPositioned, setIsPositioned] = React322.useState(false);
17276
- const firstValidItemFoundRef = React322.useRef(false);
17277
- React322.useEffect(() => {
17374
+ const [isPositioned, setIsPositioned] = React34.useState(false);
17375
+ const firstValidItemFoundRef = React34.useRef(false);
17376
+ React34.useEffect(() => {
17278
17377
  if (content)
17279
17378
  return hideOthers(content);
17280
17379
  }, [content]);
17281
17380
  useFocusGuards();
17282
- const focusFirst2 = React322.useCallback((candidates) => {
17381
+ const focusFirst2 = React34.useCallback((candidates) => {
17283
17382
  const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);
17284
17383
  const [lastItem] = restItems.slice(-1);
17285
17384
  const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
@@ -17296,14 +17395,14 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17296
17395
  return;
17297
17396
  }
17298
17397
  }, [getItems, viewport]);
17299
- const focusSelectedItem = React322.useCallback(() => focusFirst2([selectedItem, content]), [focusFirst2, selectedItem, content]);
17300
- React322.useEffect(() => {
17398
+ const focusSelectedItem = React34.useCallback(() => focusFirst2([selectedItem, content]), [focusFirst2, selectedItem, content]);
17399
+ React34.useEffect(() => {
17301
17400
  if (isPositioned) {
17302
17401
  focusSelectedItem();
17303
17402
  }
17304
17403
  }, [isPositioned, focusSelectedItem]);
17305
17404
  const { onOpenChange, triggerPointerDownPosRef } = context;
17306
- React322.useEffect(() => {
17405
+ React34.useEffect(() => {
17307
17406
  if (content) {
17308
17407
  let pointerMoveDelta = { x: 0, y: 0 };
17309
17408
  const handlePointerMove = (event) => {
@@ -17333,7 +17432,7 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17333
17432
  };
17334
17433
  }
17335
17434
  }, [content, onOpenChange, triggerPointerDownPosRef]);
17336
- React322.useEffect(() => {
17435
+ React34.useEffect(() => {
17337
17436
  const close = () => onOpenChange(false);
17338
17437
  window.addEventListener("blur", close);
17339
17438
  window.addEventListener("resize", close);
@@ -17350,7 +17449,7 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17350
17449
  setTimeout(() => nextItem.ref.current.focus());
17351
17450
  }
17352
17451
  });
17353
- const itemRefCallback = React322.useCallback((node, value, disabled) => {
17452
+ const itemRefCallback = React34.useCallback((node, value, disabled) => {
17354
17453
  const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
17355
17454
  const isSelectedItem = context.value !== undefined && context.value === value;
17356
17455
  if (isSelectedItem || isFirstValidItem) {
@@ -17359,8 +17458,8 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17359
17458
  firstValidItemFoundRef.current = true;
17360
17459
  }
17361
17460
  }, [context.value]);
17362
- const handleItemLeave = React322.useCallback(() => content?.focus(), [content]);
17363
- const itemTextRefCallback = React322.useCallback((node, value, disabled) => {
17461
+ const handleItemLeave = React34.useCallback(() => content?.focus(), [content]);
17462
+ const itemTextRefCallback = React34.useCallback((node, value, disabled) => {
17364
17463
  const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
17365
17464
  const isSelectedItem = context.value !== undefined && context.value === value;
17366
17465
  if (isSelectedItem || isFirstValidItem) {
@@ -17380,7 +17479,7 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17380
17479
  hideWhenDetached,
17381
17480
  avoidCollisions
17382
17481
  } : {};
17383
- return /* @__PURE__ */ jsx192(SelectContentProvider, {
17482
+ return /* @__PURE__ */ jsx212(SelectContentProvider, {
17384
17483
  scope: __scopeSelect,
17385
17484
  content,
17386
17485
  viewport,
@@ -17394,7 +17493,7 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17394
17493
  position,
17395
17494
  isPositioned,
17396
17495
  searchRef,
17397
- children: /* @__PURE__ */ jsx192(Combination_default, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx192(FocusScope, {
17496
+ children: /* @__PURE__ */ jsx212(Combination_default, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx212(FocusScope, {
17398
17497
  asChild: true,
17399
17498
  trapped: context.open,
17400
17499
  onMountAutoFocus: (event) => {
@@ -17404,14 +17503,14 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17404
17503
  context.trigger?.focus({ preventScroll: true });
17405
17504
  event.preventDefault();
17406
17505
  }),
17407
- children: /* @__PURE__ */ jsx192(DismissableLayer, {
17506
+ children: /* @__PURE__ */ jsx212(DismissableLayer, {
17408
17507
  asChild: true,
17409
17508
  disableOutsidePointerEvents: true,
17410
17509
  onEscapeKeyDown,
17411
17510
  onPointerDownOutside,
17412
17511
  onFocusOutside: (event) => event.preventDefault(),
17413
17512
  onDismiss: () => context.onOpenChange(false),
17414
- children: /* @__PURE__ */ jsx192(SelectPosition, {
17513
+ children: /* @__PURE__ */ jsx212(SelectPosition, {
17415
17514
  role: "listbox",
17416
17515
  id: context.contentId,
17417
17516
  "data-state": context.open ? "open" : "closed",
@@ -17455,18 +17554,18 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17455
17554
  });
17456
17555
  SelectContentImpl.displayName = CONTENT_IMPL_NAME;
17457
17556
  var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition";
17458
- var SelectItemAlignedPosition = React322.forwardRef((props, forwardedRef) => {
17557
+ var SelectItemAlignedPosition = React34.forwardRef((props, forwardedRef) => {
17459
17558
  const { __scopeSelect, onPlaced, ...popperProps } = props;
17460
17559
  const context = useSelectContext(CONTENT_NAME2, __scopeSelect);
17461
17560
  const contentContext = useSelectContentContext(CONTENT_NAME2, __scopeSelect);
17462
- const [contentWrapper, setContentWrapper] = React322.useState(null);
17463
- const [content, setContent] = React322.useState(null);
17561
+ const [contentWrapper, setContentWrapper] = React34.useState(null);
17562
+ const [content, setContent] = React34.useState(null);
17464
17563
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
17465
17564
  const getItems = useCollection(__scopeSelect);
17466
- const shouldExpandOnScrollRef = React322.useRef(false);
17467
- const shouldRepositionRef = React322.useRef(true);
17565
+ const shouldExpandOnScrollRef = React34.useRef(false);
17566
+ const shouldRepositionRef = React34.useRef(true);
17468
17567
  const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
17469
- const position = React322.useCallback(() => {
17568
+ const position = React34.useCallback(() => {
17470
17569
  if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {
17471
17570
  const triggerRect = context.trigger.getBoundingClientRect();
17472
17571
  const contentRect = content.getBoundingClientRect();
@@ -17547,24 +17646,24 @@ var SelectItemAlignedPosition = React322.forwardRef((props, forwardedRef) => {
17547
17646
  onPlaced
17548
17647
  ]);
17549
17648
  useLayoutEffect22(() => position(), [position]);
17550
- const [contentZIndex, setContentZIndex] = React322.useState();
17649
+ const [contentZIndex, setContentZIndex] = React34.useState();
17551
17650
  useLayoutEffect22(() => {
17552
17651
  if (content)
17553
17652
  setContentZIndex(window.getComputedStyle(content).zIndex);
17554
17653
  }, [content]);
17555
- const handleScrollButtonChange = React322.useCallback((node) => {
17654
+ const handleScrollButtonChange = React34.useCallback((node) => {
17556
17655
  if (node && shouldRepositionRef.current === true) {
17557
17656
  position();
17558
17657
  focusSelectedItem?.();
17559
17658
  shouldRepositionRef.current = false;
17560
17659
  }
17561
17660
  }, [position, focusSelectedItem]);
17562
- return /* @__PURE__ */ jsx192(SelectViewportProvider, {
17661
+ return /* @__PURE__ */ jsx212(SelectViewportProvider, {
17563
17662
  scope: __scopeSelect,
17564
17663
  contentWrapper,
17565
17664
  shouldExpandOnScrollRef,
17566
17665
  onScrollButtonChange: handleScrollButtonChange,
17567
- children: /* @__PURE__ */ jsx192("div", {
17666
+ children: /* @__PURE__ */ jsx212("div", {
17568
17667
  ref: setContentWrapper,
17569
17668
  style: {
17570
17669
  display: "flex",
@@ -17572,7 +17671,7 @@ var SelectItemAlignedPosition = React322.forwardRef((props, forwardedRef) => {
17572
17671
  position: "fixed",
17573
17672
  zIndex: contentZIndex
17574
17673
  },
17575
- children: /* @__PURE__ */ jsx192(Primitive.div, {
17674
+ children: /* @__PURE__ */ jsx212(Primitive.div, {
17576
17675
  ...popperProps,
17577
17676
  ref: composedRefs,
17578
17677
  style: {
@@ -17586,7 +17685,7 @@ var SelectItemAlignedPosition = React322.forwardRef((props, forwardedRef) => {
17586
17685
  });
17587
17686
  SelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;
17588
17687
  var POPPER_POSITION_NAME = "SelectPopperPosition";
17589
- var SelectPopperPosition = React322.forwardRef((props, forwardedRef) => {
17688
+ var SelectPopperPosition = React34.forwardRef((props, forwardedRef) => {
17590
17689
  const {
17591
17690
  __scopeSelect,
17592
17691
  align = "start",
@@ -17594,7 +17693,7 @@ var SelectPopperPosition = React322.forwardRef((props, forwardedRef) => {
17594
17693
  ...popperProps
17595
17694
  } = props;
17596
17695
  const popperScope = usePopperScope(__scopeSelect);
17597
- return /* @__PURE__ */ jsx192(Content, {
17696
+ return /* @__PURE__ */ jsx212(Content, {
17598
17697
  ...popperScope,
17599
17698
  ...popperProps,
17600
17699
  ref: forwardedRef,
@@ -17616,20 +17715,20 @@ var SelectPopperPosition = React322.forwardRef((props, forwardedRef) => {
17616
17715
  SelectPopperPosition.displayName = POPPER_POSITION_NAME;
17617
17716
  var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME2, {});
17618
17717
  var VIEWPORT_NAME = "SelectViewport";
17619
- var SelectViewport = React322.forwardRef((props, forwardedRef) => {
17718
+ var SelectViewport = React34.forwardRef((props, forwardedRef) => {
17620
17719
  const { __scopeSelect, nonce, ...viewportProps } = props;
17621
17720
  const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);
17622
17721
  const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
17623
17722
  const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);
17624
- const prevScrollTopRef = React322.useRef(0);
17625
- return /* @__PURE__ */ jsxs32(Fragment52, { children: [
17626
- /* @__PURE__ */ jsx192("style", {
17723
+ const prevScrollTopRef = React34.useRef(0);
17724
+ return /* @__PURE__ */ jsxs4(Fragment52, { children: [
17725
+ /* @__PURE__ */ jsx212("style", {
17627
17726
  dangerouslySetInnerHTML: {
17628
17727
  __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`
17629
17728
  },
17630
17729
  nonce
17631
17730
  }),
17632
- /* @__PURE__ */ jsx192(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx192(Primitive.div, {
17731
+ /* @__PURE__ */ jsx212(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx212(Primitive.div, {
17633
17732
  "data-radix-select-viewport": "",
17634
17733
  role: "presentation",
17635
17734
  ...viewportProps,
@@ -17670,22 +17769,22 @@ var SelectViewport = React322.forwardRef((props, forwardedRef) => {
17670
17769
  SelectViewport.displayName = VIEWPORT_NAME;
17671
17770
  var GROUP_NAME = "SelectGroup";
17672
17771
  var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);
17673
- var SelectGroup = React322.forwardRef((props, forwardedRef) => {
17772
+ var SelectGroup = React34.forwardRef((props, forwardedRef) => {
17674
17773
  const { __scopeSelect, ...groupProps } = props;
17675
17774
  const groupId = useId();
17676
- return /* @__PURE__ */ jsx192(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx192(Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
17775
+ return /* @__PURE__ */ jsx212(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx212(Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
17677
17776
  });
17678
17777
  SelectGroup.displayName = GROUP_NAME;
17679
17778
  var LABEL_NAME = "SelectLabel";
17680
- var SelectLabel = React322.forwardRef((props, forwardedRef) => {
17779
+ var SelectLabel = React34.forwardRef((props, forwardedRef) => {
17681
17780
  const { __scopeSelect, ...labelProps } = props;
17682
17781
  const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
17683
- return /* @__PURE__ */ jsx192(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
17782
+ return /* @__PURE__ */ jsx212(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
17684
17783
  });
17685
17784
  SelectLabel.displayName = LABEL_NAME;
17686
17785
  var ITEM_NAME = "SelectItem";
17687
17786
  var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);
17688
- var SelectItem = React322.forwardRef((props, forwardedRef) => {
17787
+ var SelectItem = React34.forwardRef((props, forwardedRef) => {
17689
17788
  const {
17690
17789
  __scopeSelect,
17691
17790
  value,
@@ -17696,8 +17795,8 @@ var SelectItem = React322.forwardRef((props, forwardedRef) => {
17696
17795
  const context = useSelectContext(ITEM_NAME, __scopeSelect);
17697
17796
  const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);
17698
17797
  const isSelected = context.value === value;
17699
- const [textValue, setTextValue] = React322.useState(textValueProp ?? "");
17700
- const [isFocused, setIsFocused] = React322.useState(false);
17798
+ const [textValue, setTextValue] = React34.useState(textValueProp ?? "");
17799
+ const [isFocused, setIsFocused] = React34.useState(false);
17701
17800
  const composedRefs = useComposedRefs(forwardedRef, (node) => contentContext.itemRefCallback?.(node, value, disabled));
17702
17801
  const textId = useId();
17703
17802
  const handleSelect = () => {
@@ -17709,21 +17808,21 @@ var SelectItem = React322.forwardRef((props, forwardedRef) => {
17709
17808
  if (value === "") {
17710
17809
  throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
17711
17810
  }
17712
- return /* @__PURE__ */ jsx192(SelectItemContextProvider, {
17811
+ return /* @__PURE__ */ jsx212(SelectItemContextProvider, {
17713
17812
  scope: __scopeSelect,
17714
17813
  value,
17715
17814
  disabled,
17716
17815
  textId,
17717
17816
  isSelected,
17718
- onItemTextChange: React322.useCallback((node) => {
17817
+ onItemTextChange: React34.useCallback((node) => {
17719
17818
  setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
17720
17819
  }, []),
17721
- children: /* @__PURE__ */ jsx192(Collection.ItemSlot, {
17820
+ children: /* @__PURE__ */ jsx212(Collection.ItemSlot, {
17722
17821
  scope: __scopeSelect,
17723
17822
  value,
17724
17823
  disabled,
17725
17824
  textValue,
17726
- children: /* @__PURE__ */ jsx192(Primitive.div, {
17825
+ children: /* @__PURE__ */ jsx212(Primitive.div, {
17727
17826
  role: "option",
17728
17827
  "aria-labelledby": textId,
17729
17828
  "data-highlighted": isFocused ? "" : undefined,
@@ -17764,39 +17863,39 @@ var SelectItem = React322.forwardRef((props, forwardedRef) => {
17764
17863
  });
17765
17864
  SelectItem.displayName = ITEM_NAME;
17766
17865
  var ITEM_TEXT_NAME = "SelectItemText";
17767
- var SelectItemText = React322.forwardRef((props, forwardedRef) => {
17866
+ var SelectItemText = React34.forwardRef((props, forwardedRef) => {
17768
17867
  const { __scopeSelect, className, style, ...itemTextProps } = props;
17769
17868
  const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);
17770
17869
  const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);
17771
17870
  const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);
17772
17871
  const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);
17773
- const [itemTextNode, setItemTextNode] = React322.useState(null);
17872
+ const [itemTextNode, setItemTextNode] = React34.useState(null);
17774
17873
  const composedRefs = useComposedRefs(forwardedRef, (node) => setItemTextNode(node), itemContext.onItemTextChange, (node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled));
17775
17874
  const textContent = itemTextNode?.textContent;
17776
- const nativeOption = React322.useMemo(() => /* @__PURE__ */ jsx192("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value), [itemContext.disabled, itemContext.value, textContent]);
17875
+ const nativeOption = React34.useMemo(() => /* @__PURE__ */ jsx212("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value), [itemContext.disabled, itemContext.value, textContent]);
17777
17876
  const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
17778
17877
  useLayoutEffect22(() => {
17779
17878
  onNativeOptionAdd(nativeOption);
17780
17879
  return () => onNativeOptionRemove(nativeOption);
17781
17880
  }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
17782
- return /* @__PURE__ */ jsxs32(Fragment52, { children: [
17783
- /* @__PURE__ */ jsx192(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
17881
+ return /* @__PURE__ */ jsxs4(Fragment52, { children: [
17882
+ /* @__PURE__ */ jsx212(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
17784
17883
  itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM4.createPortal(itemTextProps.children, context.valueNode) : null
17785
17884
  ] });
17786
17885
  });
17787
17886
  SelectItemText.displayName = ITEM_TEXT_NAME;
17788
17887
  var ITEM_INDICATOR_NAME = "SelectItemIndicator";
17789
- var SelectItemIndicator = React322.forwardRef((props, forwardedRef) => {
17888
+ var SelectItemIndicator = React34.forwardRef((props, forwardedRef) => {
17790
17889
  const { __scopeSelect, ...itemIndicatorProps } = props;
17791
17890
  const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
17792
- return itemContext.isSelected ? /* @__PURE__ */ jsx192(Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
17891
+ return itemContext.isSelected ? /* @__PURE__ */ jsx212(Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
17793
17892
  });
17794
17893
  SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
17795
17894
  var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton";
17796
- var SelectScrollUpButton = React322.forwardRef((props, forwardedRef) => {
17895
+ var SelectScrollUpButton = React34.forwardRef((props, forwardedRef) => {
17797
17896
  const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
17798
17897
  const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
17799
- const [canScrollUp, setCanScrollUp] = React322.useState(false);
17898
+ const [canScrollUp, setCanScrollUp] = React34.useState(false);
17800
17899
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
17801
17900
  useLayoutEffect22(() => {
17802
17901
  if (contentContext.viewport && contentContext.isPositioned) {
@@ -17811,7 +17910,7 @@ var SelectScrollUpButton = React322.forwardRef((props, forwardedRef) => {
17811
17910
  return () => viewport.removeEventListener("scroll", handleScroll22);
17812
17911
  }
17813
17912
  }, [contentContext.viewport, contentContext.isPositioned]);
17814
- return canScrollUp ? /* @__PURE__ */ jsx192(SelectScrollButtonImpl, {
17913
+ return canScrollUp ? /* @__PURE__ */ jsx212(SelectScrollButtonImpl, {
17815
17914
  ...props,
17816
17915
  ref: composedRefs,
17817
17916
  onAutoScroll: () => {
@@ -17824,10 +17923,10 @@ var SelectScrollUpButton = React322.forwardRef((props, forwardedRef) => {
17824
17923
  });
17825
17924
  SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
17826
17925
  var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton";
17827
- var SelectScrollDownButton = React322.forwardRef((props, forwardedRef) => {
17926
+ var SelectScrollDownButton = React34.forwardRef((props, forwardedRef) => {
17828
17927
  const contentContext = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
17829
17928
  const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
17830
- const [canScrollDown, setCanScrollDown] = React322.useState(false);
17929
+ const [canScrollDown, setCanScrollDown] = React34.useState(false);
17831
17930
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
17832
17931
  useLayoutEffect22(() => {
17833
17932
  if (contentContext.viewport && contentContext.isPositioned) {
@@ -17843,7 +17942,7 @@ var SelectScrollDownButton = React322.forwardRef((props, forwardedRef) => {
17843
17942
  return () => viewport.removeEventListener("scroll", handleScroll22);
17844
17943
  }
17845
17944
  }, [contentContext.viewport, contentContext.isPositioned]);
17846
- return canScrollDown ? /* @__PURE__ */ jsx192(SelectScrollButtonImpl, {
17945
+ return canScrollDown ? /* @__PURE__ */ jsx212(SelectScrollButtonImpl, {
17847
17946
  ...props,
17848
17947
  ref: composedRefs,
17849
17948
  onAutoScroll: () => {
@@ -17855,25 +17954,25 @@ var SelectScrollDownButton = React322.forwardRef((props, forwardedRef) => {
17855
17954
  }) : null;
17856
17955
  });
17857
17956
  SelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;
17858
- var SelectScrollButtonImpl = React322.forwardRef((props, forwardedRef) => {
17957
+ var SelectScrollButtonImpl = React34.forwardRef((props, forwardedRef) => {
17859
17958
  const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;
17860
17959
  const contentContext = useSelectContentContext("SelectScrollButton", __scopeSelect);
17861
- const autoScrollTimerRef = React322.useRef(null);
17960
+ const autoScrollTimerRef = React34.useRef(null);
17862
17961
  const getItems = useCollection(__scopeSelect);
17863
- const clearAutoScrollTimer = React322.useCallback(() => {
17962
+ const clearAutoScrollTimer = React34.useCallback(() => {
17864
17963
  if (autoScrollTimerRef.current !== null) {
17865
17964
  window.clearInterval(autoScrollTimerRef.current);
17866
17965
  autoScrollTimerRef.current = null;
17867
17966
  }
17868
17967
  }, []);
17869
- React322.useEffect(() => {
17968
+ React34.useEffect(() => {
17870
17969
  return () => clearAutoScrollTimer();
17871
17970
  }, [clearAutoScrollTimer]);
17872
17971
  useLayoutEffect22(() => {
17873
17972
  const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
17874
17973
  activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
17875
17974
  }, [getItems]);
17876
- return /* @__PURE__ */ jsx192(Primitive.div, {
17975
+ return /* @__PURE__ */ jsx212(Primitive.div, {
17877
17976
  "aria-hidden": true,
17878
17977
  ...scrollIndicatorProps,
17879
17978
  ref: forwardedRef,
@@ -17895,29 +17994,29 @@ var SelectScrollButtonImpl = React322.forwardRef((props, forwardedRef) => {
17895
17994
  });
17896
17995
  });
17897
17996
  var SEPARATOR_NAME = "SelectSeparator";
17898
- var SelectSeparator = React322.forwardRef((props, forwardedRef) => {
17997
+ var SelectSeparator = React34.forwardRef((props, forwardedRef) => {
17899
17998
  const { __scopeSelect, ...separatorProps } = props;
17900
- return /* @__PURE__ */ jsx192(Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
17999
+ return /* @__PURE__ */ jsx212(Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
17901
18000
  });
17902
18001
  SelectSeparator.displayName = SEPARATOR_NAME;
17903
18002
  var ARROW_NAME2 = "SelectArrow";
17904
- var SelectArrow = React322.forwardRef((props, forwardedRef) => {
18003
+ var SelectArrow = React34.forwardRef((props, forwardedRef) => {
17905
18004
  const { __scopeSelect, ...arrowProps } = props;
17906
18005
  const popperScope = usePopperScope(__scopeSelect);
17907
18006
  const context = useSelectContext(ARROW_NAME2, __scopeSelect);
17908
18007
  const contentContext = useSelectContentContext(ARROW_NAME2, __scopeSelect);
17909
- return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx192(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
18008
+ return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx212(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
17910
18009
  });
17911
18010
  SelectArrow.displayName = ARROW_NAME2;
17912
18011
  function shouldShowPlaceholder(value) {
17913
18012
  return value === "" || value === undefined;
17914
18013
  }
17915
- var BubbleSelect = React322.forwardRef((props, forwardedRef) => {
18014
+ var BubbleSelect = React34.forwardRef((props, forwardedRef) => {
17916
18015
  const { value, ...selectProps } = props;
17917
- const ref = React322.useRef(null);
18016
+ const ref = React34.useRef(null);
17918
18017
  const composedRefs = useComposedRefs(forwardedRef, ref);
17919
18018
  const prevValue = usePrevious(value);
17920
- React322.useEffect(() => {
18019
+ React34.useEffect(() => {
17921
18020
  const select = ref.current;
17922
18021
  const selectProto = window.HTMLSelectElement.prototype;
17923
18022
  const descriptor = Object.getOwnPropertyDescriptor(selectProto, "value");
@@ -17928,14 +18027,14 @@ var BubbleSelect = React322.forwardRef((props, forwardedRef) => {
17928
18027
  select.dispatchEvent(event);
17929
18028
  }
17930
18029
  }, [prevValue, value]);
17931
- return /* @__PURE__ */ jsx192(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsx192("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
18030
+ return /* @__PURE__ */ jsx212(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsx212("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
17932
18031
  });
17933
18032
  BubbleSelect.displayName = "BubbleSelect";
17934
18033
  function useTypeaheadSearch(onSearchChange) {
17935
18034
  const handleSearchChange = useCallbackRef(onSearchChange);
17936
- const searchRef = React322.useRef("");
17937
- const timerRef = React322.useRef(0);
17938
- const handleTypeaheadSearch = React322.useCallback((key) => {
18035
+ const searchRef = React34.useRef("");
18036
+ const timerRef = React34.useRef(0);
18037
+ const handleTypeaheadSearch = React34.useCallback((key) => {
17939
18038
  const search = searchRef.current + key;
17940
18039
  handleSearchChange(search);
17941
18040
  (function updateSearch(value) {
@@ -17945,11 +18044,11 @@ function useTypeaheadSearch(onSearchChange) {
17945
18044
  timerRef.current = window.setTimeout(() => updateSearch(""), 1000);
17946
18045
  })(search);
17947
18046
  }, [handleSearchChange]);
17948
- const resetTypeahead = React322.useCallback(() => {
18047
+ const resetTypeahead = React34.useCallback(() => {
17949
18048
  searchRef.current = "";
17950
18049
  window.clearTimeout(timerRef.current);
17951
18050
  }, []);
17952
- React322.useEffect(() => {
18051
+ React34.useEffect(() => {
17953
18052
  return () => window.clearTimeout(timerRef.current);
17954
18053
  }, []);
17955
18054
  return [searchRef, handleTypeaheadSearch, resetTypeahead];
@@ -18038,104 +18137,104 @@ var ChevronDown = createLucideIcon("ChevronDown", [
18038
18137
  var ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
18039
18138
  var Select2 = Root222;
18040
18139
  var SelectValue2 = Value;
18041
- var SelectTrigger2 = React332.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(Trigger, {
18140
+ var SelectTrigger2 = React352.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(Trigger, {
18042
18141
  ref,
18043
18142
  className: cn("flex h-10 w-full items-center justify-between rounded-md border-black border-2 border-b-4 bg-card-bg px-3 py-5 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 font-brand", className),
18044
18143
  ...props,
18045
18144
  children: [
18046
18145
  children,
18047
- /* @__PURE__ */ jsx202(Icon, {
18146
+ /* @__PURE__ */ jsx223(Icon, {
18048
18147
  asChild: true,
18049
- children: /* @__PURE__ */ jsx202(ChevronDown, {
18148
+ children: /* @__PURE__ */ jsx223(ChevronDown, {
18050
18149
  className: "h-4 w-4 opacity-50"
18051
18150
  })
18052
18151
  })
18053
18152
  ]
18054
18153
  }));
18055
18154
  SelectTrigger2.displayName = Trigger.displayName;
18056
- var SelectScrollUpButton2 = React332.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx202(ScrollUpButton, {
18155
+ var SelectScrollUpButton2 = React352.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx223(ScrollUpButton, {
18057
18156
  ref,
18058
18157
  className: cn("flex cursor-default items-center justify-center py-1", className),
18059
18158
  ...props,
18060
- children: /* @__PURE__ */ jsx202(ChevronUp, {
18159
+ children: /* @__PURE__ */ jsx223(ChevronUp, {
18061
18160
  className: "h-4 w-4"
18062
18161
  })
18063
18162
  }));
18064
18163
  SelectScrollUpButton2.displayName = ScrollUpButton.displayName;
18065
- var SelectScrollDownButton2 = React332.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx202(ScrollDownButton, {
18164
+ var SelectScrollDownButton2 = React352.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx223(ScrollDownButton, {
18066
18165
  ref,
18067
18166
  className: cn("flex cursor-default items-center justify-center py-1", className),
18068
18167
  ...props,
18069
- children: /* @__PURE__ */ jsx202(ChevronDown, {
18168
+ children: /* @__PURE__ */ jsx223(ChevronDown, {
18070
18169
  className: "h-4 w-4"
18071
18170
  })
18072
18171
  }));
18073
18172
  SelectScrollDownButton2.displayName = ScrollDownButton.displayName;
18074
- var SelectContent2 = React332.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx202(Portal2, {
18075
- children: /* @__PURE__ */ jsxs4(Content2, {
18173
+ var SelectContent2 = React352.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx223(Portal2, {
18174
+ children: /* @__PURE__ */ jsxs5(Content2, {
18076
18175
  ref,
18077
18176
  className: cn(" border-2 border-black relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md font-brand bg-card-bg text-text shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
18078
18177
  position,
18079
18178
  ...props,
18080
18179
  children: [
18081
- /* @__PURE__ */ jsx202(SelectScrollUpButton2, {}),
18082
- /* @__PURE__ */ jsx202(Viewport, {
18180
+ /* @__PURE__ */ jsx223(SelectScrollUpButton2, {}),
18181
+ /* @__PURE__ */ jsx223(Viewport, {
18083
18182
  className: cn("p-1", position === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),
18084
18183
  children
18085
18184
  }),
18086
- /* @__PURE__ */ jsx202(SelectScrollDownButton2, {})
18185
+ /* @__PURE__ */ jsx223(SelectScrollDownButton2, {})
18087
18186
  ]
18088
18187
  })
18089
18188
  }));
18090
18189
  SelectContent2.displayName = Content2.displayName;
18091
- var SelectLabel2 = React332.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx202(Label, {
18190
+ var SelectLabel2 = React352.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx223(Label, {
18092
18191
  ref,
18093
18192
  className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
18094
18193
  ...props
18095
18194
  }));
18096
18195
  SelectLabel2.displayName = Label.displayName;
18097
- var SelectItem2 = React332.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(Item, {
18196
+ var SelectItem2 = React352.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(Item, {
18098
18197
  ref,
18099
18198
  className: cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-slate-200 dark:focus:bg-white/10 data-disabled:pointer-events-none data-disabled:opacity-50 font-brand", className),
18100
18199
  ...props,
18101
18200
  children: [
18102
- /* @__PURE__ */ jsx202("span", {
18201
+ /* @__PURE__ */ jsx223("span", {
18103
18202
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
18104
- children: /* @__PURE__ */ jsx202(ItemIndicator, {
18105
- children: /* @__PURE__ */ jsx202(Check, {
18203
+ children: /* @__PURE__ */ jsx223(ItemIndicator, {
18204
+ children: /* @__PURE__ */ jsx223(Check, {
18106
18205
  className: "h-4 w-4"
18107
18206
  })
18108
18207
  })
18109
18208
  }),
18110
- /* @__PURE__ */ jsx202(ItemText, {
18209
+ /* @__PURE__ */ jsx223(ItemText, {
18111
18210
  children
18112
18211
  })
18113
18212
  ]
18114
18213
  }));
18115
18214
  SelectItem2.displayName = Item.displayName;
18116
- var SelectSeparator2 = React332.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx202(Separator, {
18215
+ var SelectSeparator2 = React352.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx223(Separator, {
18117
18216
  ref,
18118
18217
  className: cn("-mx-1 my-1 h-px bg-muted", className),
18119
18218
  ...props
18120
18219
  }));
18121
18220
  SelectSeparator2.displayName = Separator.displayName;
18122
18221
  var Switch = ({ active, onToggle }) => {
18123
- return /* @__PURE__ */ jsx212("div", {
18222
+ return /* @__PURE__ */ jsx232("div", {
18124
18223
  "data-active": active,
18125
18224
  className: "h-8 transition-all rounded-full w-14 border-2 border-b-4 bg-gray-200 p-[2px] cursor-pointer data-[active=true]:bg-brand border-black relative",
18126
18225
  onClick: onToggle,
18127
- children: /* @__PURE__ */ jsx212("div", {
18226
+ children: /* @__PURE__ */ jsx232("div", {
18128
18227
  "data-active": active,
18129
18228
  className: "h-4 w-4 box-content left-[4px] top-[3px] transition-all rounded-full bg-white border-2 border-black absolute data-[active=true]:left-[calc(100%-24px)]"
18130
18229
  })
18131
18230
  });
18132
18231
  };
18133
18232
  var Triangle2 = (props) => {
18134
- return /* @__PURE__ */ jsx223("svg", {
18233
+ return /* @__PURE__ */ jsx242("svg", {
18135
18234
  viewBox: "0 0 127 131",
18136
18235
  fill: "none",
18137
18236
  ...props,
18138
- children: /* @__PURE__ */ jsx223("path", {
18237
+ children: /* @__PURE__ */ jsx242("path", {
18139
18238
  d: "M28.5644 0.011261C25.8196 0.159241 23.6077 0.591782 21.3786 1.43413C20.2669 1.84959 18.4446 2.75455 17.4418 3.38062C13.2472 5.993 10.0496 9.9201 8.38209 14.4903C8.04973 15.3953 7.15007 18.2809 6.5713 20.2672C2.71476 33.5453 0.525761 48.0643 0.0558711 63.4312C-0.0186237 65.8785 -0.0186237 71.7066 0.0558711 74.1141C0.371041 84.3018 1.35093 93.4992 3.12735 102.879C3.84937 106.675 5.00691 111.774 5.67736 114.091C7.04692 118.798 9.84334 122.805 13.8202 125.741C16.4848 127.711 19.5105 129.031 22.8627 129.68C24.4787 129.993 26.6104 130.135 28.1805 130.033C30.3523 129.89 34.6616 129.316 38.1628 128.695C53.9442 125.901 68.5223 120.898 81.7422 113.738C90.1143 109.202 97.2715 104.29 104.177 98.3312C111.059 92.4007 116.927 86.0206 122.09 78.8608C123.287 77.2045 123.889 76.237 124.491 75.019C126.038 71.8773 126.766 68.7527 126.76 65.2582C126.76 62.0027 126.141 59.1114 124.806 56.1518C124.164 54.7233 123.551 53.6988 122.176 51.7523C117.11 44.5868 111.489 38.3433 104.635 32.2762C94.011 22.8739 81.3927 15.1619 67.3017 9.45339C64.2474 8.21835 61.239 7.13128 57.6174 5.95315C49.9502 3.46598 40.4607 1.30891 32.4324 0.233231C31.1718 0.0624847 29.4584 -0.0342712 28.5644 0.011261Z",
18140
18239
  fill: "currentcolor"
18141
18240
  })
@@ -19463,10 +19562,10 @@ function cn2(...inputs) {
19463
19562
 
19464
19563
  // src/components/homepage/InfoTooltip.tsx
19465
19564
  import { useState as useState34 } from "react";
19466
- import { jsx as jsx39, jsxs as jsxs5 } from "react/jsx-runtime";
19565
+ import { jsx as jsx39, jsxs as jsxs6 } from "react/jsx-runtime";
19467
19566
  var InfoTooltip = ({ text }) => {
19468
19567
  const [isVisible, setIsVisible] = useState34(false);
19469
- return /* @__PURE__ */ jsxs5("span", {
19568
+ return /* @__PURE__ */ jsxs6("span", {
19470
19569
  className: "relative inline-block ml-1 text-gray-600 cursor-default",
19471
19570
  onPointerEnter: () => setIsVisible(true),
19472
19571
  onMouseLeave: () => setIsVisible(false),
@@ -19475,7 +19574,7 @@ var InfoTooltip = ({ text }) => {
19475
19574
  style: { fontSize: "1rem" },
19476
19575
  children: "ⓘ"
19477
19576
  }),
19478
- isVisible && /* @__PURE__ */ jsxs5("span", {
19577
+ isVisible && /* @__PURE__ */ jsxs6("span", {
19479
19578
  className: "absolute bottom-full left-1/2 transform -translate-x-1/2 bg-gray-800 text-white p-2 rounded text-xs whitespace-nowrap z-10 cursor-default",
19480
19579
  children: [
19481
19580
  text,
@@ -19489,7 +19588,7 @@ var InfoTooltip = ({ text }) => {
19489
19588
  };
19490
19589
 
19491
19590
  // src/components/homepage/PricingBulletPoint.tsx
19492
- import { jsx as jsx40, jsxs as jsxs7 } from "react/jsx-runtime";
19591
+ import { jsx as jsx40, jsxs as jsxs8 } from "react/jsx-runtime";
19493
19592
  var container3 = {
19494
19593
  display: "flex",
19495
19594
  flexDirection: "row",
@@ -19503,7 +19602,7 @@ var greyCircle = {
19503
19602
  backgroundColor: "var(--footer-border)"
19504
19603
  };
19505
19604
  var PricingBulletPoint = ({ text, checked, children }) => {
19506
- const checkmarkSVG = /* @__PURE__ */ jsxs7("svg", {
19605
+ const checkmarkSVG = /* @__PURE__ */ jsxs8("svg", {
19507
19606
  width: "20",
19508
19607
  height: "20",
19509
19608
  viewBox: "0 0 20 20",
@@ -19525,13 +19624,13 @@ var PricingBulletPoint = ({ text, checked, children }) => {
19525
19624
  })
19526
19625
  ]
19527
19626
  });
19528
- return /* @__PURE__ */ jsxs7("div", {
19627
+ return /* @__PURE__ */ jsxs8("div", {
19529
19628
  style: container3,
19530
19629
  children: [
19531
19630
  checked ? checkmarkSVG : /* @__PURE__ */ jsx40("div", {
19532
19631
  style: greyCircle
19533
19632
  }),
19534
- /* @__PURE__ */ jsxs7("div", {
19633
+ /* @__PURE__ */ jsxs8("div", {
19535
19634
  className: "fontbrand text-lg\t",
19536
19635
  children: [
19537
19636
  text,
@@ -19543,7 +19642,7 @@ var PricingBulletPoint = ({ text, checked, children }) => {
19543
19642
  };
19544
19643
 
19545
19644
  // src/components/homepage/FreePricing.tsx
19546
- import { jsx as jsx41, jsxs as jsxs8 } from "react/jsx-runtime";
19645
+ import { jsx as jsx41, jsxs as jsxs9 } from "react/jsx-runtime";
19547
19646
  var Container = ({
19548
19647
  children
19549
19648
  }) => {
@@ -19588,7 +19687,7 @@ var SmallPriceTag = ({ children }) => {
19588
19687
  });
19589
19688
  };
19590
19689
  var FreePricing = () => {
19591
- return /* @__PURE__ */ jsxs8(Container, {
19690
+ return /* @__PURE__ */ jsxs9(Container, {
19592
19691
  children: [
19593
19692
  /* @__PURE__ */ jsx41(Audience, {
19594
19693
  children: "For individuals and companies of up to 3 people"
@@ -19620,7 +19719,7 @@ var textUnitWrapper = {
19620
19719
  flexDirection: "column"
19621
19720
  };
19622
19721
  var EnterpriseLicense = () => {
19623
- return /* @__PURE__ */ jsxs8(Container, {
19722
+ return /* @__PURE__ */ jsxs9(Container, {
19624
19723
  children: [
19625
19724
  /* @__PURE__ */ jsx41(Audience, {
19626
19725
  children: "For advanced needs"
@@ -19653,7 +19752,7 @@ var EnterpriseLicense = () => {
19653
19752
  checked: true
19654
19753
  }),
19655
19754
  /* @__PURE__ */ jsx41(PricingBulletPoint, {
19656
- text: /* @__PURE__ */ jsxs8("span", {
19755
+ text: /* @__PURE__ */ jsxs9("span", {
19657
19756
  children: [
19658
19757
  /* @__PURE__ */ jsx41("a", {
19659
19758
  href: "https://www.remotion.dev/editor-starter",
@@ -19671,7 +19770,7 @@ var EnterpriseLicense = () => {
19671
19770
  }),
19672
19771
  /* @__PURE__ */ jsx41("div", {
19673
19772
  className: "flex flex-row justify-end",
19674
- children: /* @__PURE__ */ jsxs8("div", {
19773
+ children: /* @__PURE__ */ jsxs9("div", {
19675
19774
  style: {
19676
19775
  ...textUnitWrapper,
19677
19776
  alignItems: "flex-end"
@@ -19718,7 +19817,7 @@ var CompanyPricing = () => {
19718
19817
  const totalPriceString = useMemo41(() => {
19719
19818
  return formatPrice(totalPrice);
19720
19819
  }, [formatPrice, totalPrice]);
19721
- return /* @__PURE__ */ jsxs8(Container, {
19820
+ return /* @__PURE__ */ jsxs9(Container, {
19722
19821
  children: [
19723
19822
  /* @__PURE__ */ jsx41(Audience, {
19724
19823
  children: "For collaborations and companies of 4+ people"
@@ -19748,10 +19847,10 @@ var CompanyPricing = () => {
19748
19847
  /* @__PURE__ */ jsx41("div", {
19749
19848
  style: { height: 30 }
19750
19849
  }),
19751
- /* @__PURE__ */ jsxs8("div", {
19850
+ /* @__PURE__ */ jsxs9("div", {
19752
19851
  className: "flex flex-col md:flex-row md:items-center",
19753
19852
  children: [
19754
- /* @__PURE__ */ jsxs8("div", {
19853
+ /* @__PURE__ */ jsxs9("div", {
19755
19854
  style: textUnitWrapper,
19756
19855
  children: [
19757
19856
  /* @__PURE__ */ jsx41("div", {
@@ -19768,7 +19867,7 @@ var CompanyPricing = () => {
19768
19867
  style: { flex: 3 },
19769
19868
  className: "hidden md:block"
19770
19869
  }),
19771
- /* @__PURE__ */ jsxs8("div", {
19870
+ /* @__PURE__ */ jsxs9("div", {
19772
19871
  className: "flex flex-row items-center justify-between mt-3 md:mt-0",
19773
19872
  children: [
19774
19873
  /* @__PURE__ */ jsx41(Counter, {
@@ -19776,7 +19875,7 @@ var CompanyPricing = () => {
19776
19875
  setCount: setDevSeatCount,
19777
19876
  minCount: 1
19778
19877
  }),
19779
- /* @__PURE__ */ jsxs8(SmallPriceTag, {
19878
+ /* @__PURE__ */ jsxs9(SmallPriceTag, {
19780
19879
  children: [
19781
19880
  "$",
19782
19881
  new Intl.NumberFormat("en-US", {
@@ -19791,10 +19890,10 @@ var CompanyPricing = () => {
19791
19890
  /* @__PURE__ */ jsx41("div", {
19792
19891
  style: { height: 14 }
19793
19892
  }),
19794
- /* @__PURE__ */ jsxs8("div", {
19893
+ /* @__PURE__ */ jsxs9("div", {
19795
19894
  className: "flex flex-col md:flex-row md:items-center",
19796
19895
  children: [
19797
- /* @__PURE__ */ jsxs8("div", {
19896
+ /* @__PURE__ */ jsxs9("div", {
19798
19897
  style: textUnitWrapper,
19799
19898
  children: [
19800
19899
  /* @__PURE__ */ jsx41("div", {
@@ -19815,7 +19914,7 @@ var CompanyPricing = () => {
19815
19914
  style: { flex: 3 },
19816
19915
  className: "hidden md:block"
19817
19916
  }),
19818
- /* @__PURE__ */ jsxs8("div", {
19917
+ /* @__PURE__ */ jsxs9("div", {
19819
19918
  className: "flex flex-row items-center justify-between mt-3 md:mt-0",
19820
19919
  children: [
19821
19920
  /* @__PURE__ */ jsx41(Counter, {
@@ -19824,7 +19923,7 @@ var CompanyPricing = () => {
19824
19923
  minCount: 0,
19825
19924
  step: 1000
19826
19925
  }),
19827
- /* @__PURE__ */ jsxs8(SmallPriceTag, {
19926
+ /* @__PURE__ */ jsxs9(SmallPriceTag, {
19828
19927
  children: [
19829
19928
  "$",
19830
19929
  new Intl.NumberFormat("en-US", {
@@ -19841,10 +19940,10 @@ var CompanyPricing = () => {
19841
19940
  }),
19842
19941
  /* @__PURE__ */ jsx41("div", {
19843
19942
  className: "flex flex-row justify-end",
19844
- children: /* @__PURE__ */ jsxs8("div", {
19943
+ children: /* @__PURE__ */ jsxs9("div", {
19845
19944
  style: { ...textUnitWrapper, alignItems: "flex-end" },
19846
19945
  children: [
19847
- /* @__PURE__ */ jsxs8(PriceTag, {
19946
+ /* @__PURE__ */ jsxs9(PriceTag, {
19848
19947
  children: [
19849
19948
  totalPriceString,
19850
19949
  "/mo"
@@ -19865,7 +19964,7 @@ var CompanyPricing = () => {
19865
19964
  ...textUnitWrapper,
19866
19965
  alignItems: "flex-end"
19867
19966
  },
19868
- children: /* @__PURE__ */ jsxs8("a", {
19967
+ children: /* @__PURE__ */ jsxs9("a", {
19869
19968
  href: "https://remotion.pro/dashboard",
19870
19969
  className: "font-brand text-brand flex flex-row items-center gap-1 no-underline",
19871
19970
  children: [
@@ -19889,9 +19988,9 @@ var CompanyPricing = () => {
19889
19988
  };
19890
19989
 
19891
19990
  // src/components/homepage/Pricing.tsx
19892
- import { jsx as jsx44, jsxs as jsxs9 } from "react/jsx-runtime";
19991
+ import { jsx as jsx44, jsxs as jsxs10 } from "react/jsx-runtime";
19893
19992
  var Pricing = () => {
19894
- return /* @__PURE__ */ jsxs9("div", {
19993
+ return /* @__PURE__ */ jsxs10("div", {
19895
19994
  style: {
19896
19995
  display: "flex",
19897
19996
  flexDirection: "column",
@@ -19907,7 +20006,7 @@ var Pricing = () => {
19907
20006
  justifyContent: "center",
19908
20007
  display: "flex"
19909
20008
  },
19910
- children: /* @__PURE__ */ jsxs9("div", {
20009
+ children: /* @__PURE__ */ jsxs10("div", {
19911
20010
  style: {
19912
20011
  fontFamily: "GTPlanar"
19913
20012
  },
@@ -19940,7 +20039,7 @@ var Pricing = () => {
19940
20039
 
19941
20040
  // src/components/homepage/BackgroundAnimation.tsx
19942
20041
  import { useEffect as useEffect37 } from "react";
19943
- import { jsx as jsx46, jsxs as jsxs10 } from "react/jsx-runtime";
20042
+ import { jsx as jsx46, jsxs as jsxs11 } from "react/jsx-runtime";
19944
20043
  "use client";
19945
20044
  var rx = 0.2;
19946
20045
  var ry = 0.45;
@@ -19972,7 +20071,7 @@ var BackgroundAnimation = () => {
19972
20071
  }, [css]);
19973
20072
  return /* @__PURE__ */ jsx46("div", {
19974
20073
  className: " w-full h-full min-w-0 m-auto lg:relative lg:min-w-[700px] lg:max-w-[1200px] lg:ml-auto lg:left-auto pointer-events-none",
19975
- children: /* @__PURE__ */ jsxs10("svg", {
20074
+ children: /* @__PURE__ */ jsxs11("svg", {
19976
20075
  className: "translate-y-[-30%] lg:translate-y-[-50%]",
19977
20076
  viewBox: "0 0 1 1",
19978
20077
  style: {
@@ -20027,7 +20126,7 @@ var BackgroundAnimation = () => {
20027
20126
  };
20028
20127
 
20029
20128
  // src/components/homepage/CommunityStatsItems.tsx
20030
- import { jsx as jsx47, jsxs as jsxs11 } from "react/jsx-runtime";
20129
+ import { jsx as jsx47, jsxs as jsxs12 } from "react/jsx-runtime";
20031
20130
  var StatItemContent = ({
20032
20131
  content,
20033
20132
  width,
@@ -20060,10 +20159,10 @@ var Pill = ({ children, className }) => {
20060
20159
  });
20061
20160
  };
20062
20161
  var InstallsPerMonth = () => {
20063
- return /* @__PURE__ */ jsxs11(Pill, {
20162
+ return /* @__PURE__ */ jsxs12(Pill, {
20064
20163
  className: "w-[30%] flex-col",
20065
20164
  children: [
20066
- /* @__PURE__ */ jsxs11("div", {
20165
+ /* @__PURE__ */ jsxs12("div", {
20067
20166
  style: {
20068
20167
  display: "flex",
20069
20168
  alignItems: "center",
@@ -20102,10 +20201,10 @@ var InstallsPerMonth = () => {
20102
20201
  });
20103
20202
  };
20104
20203
  var PagesOfDocs = () => {
20105
- return /* @__PURE__ */ jsxs11(Pill, {
20204
+ return /* @__PURE__ */ jsxs12(Pill, {
20106
20205
  className: "flex-col",
20107
20206
  children: [
20108
- /* @__PURE__ */ jsxs11("div", {
20207
+ /* @__PURE__ */ jsxs12("div", {
20109
20208
  style: { display: "flex", alignItems: "center" },
20110
20209
  children: [
20111
20210
  /* @__PURE__ */ jsx47(StatItemContent, {
@@ -20140,7 +20239,7 @@ var PagesOfDocs = () => {
20140
20239
  ]
20141
20240
  });
20142
20241
  };
20143
- var TemplatesAndExamples = () => /* @__PURE__ */ jsxs11(Pill, {
20242
+ var TemplatesAndExamples = () => /* @__PURE__ */ jsxs12(Pill, {
20144
20243
  className: "w-[30%] flex items-center flex-row",
20145
20244
  children: [
20146
20245
  /* @__PURE__ */ jsx47(StatItemContent, {
@@ -20158,10 +20257,10 @@ var TemplatesAndExamples = () => /* @__PURE__ */ jsxs11(Pill, {
20158
20257
  ]
20159
20258
  });
20160
20259
  var GitHubStars = () => {
20161
- return /* @__PURE__ */ jsxs11(Pill, {
20260
+ return /* @__PURE__ */ jsxs12(Pill, {
20162
20261
  className: "w-[30%] flex-col",
20163
20262
  children: [
20164
- /* @__PURE__ */ jsxs11("div", {
20263
+ /* @__PURE__ */ jsxs12("div", {
20165
20264
  style: { display: "flex", alignItems: "center" },
20166
20265
  children: [
20167
20266
  /* @__PURE__ */ jsx47(StatItemContent, {
@@ -20198,7 +20297,7 @@ var GitHubStars = () => {
20198
20297
  var DiscordMembers = () => {
20199
20298
  return /* @__PURE__ */ jsx47(Pill, {
20200
20299
  className: "w-[30%]",
20201
- children: /* @__PURE__ */ jsxs11("div", {
20300
+ children: /* @__PURE__ */ jsxs12("div", {
20202
20301
  style: {
20203
20302
  width: "80%",
20204
20303
  display: "flex",
@@ -20206,7 +20305,7 @@ var DiscordMembers = () => {
20206
20305
  justifyContent: "center"
20207
20306
  },
20208
20307
  children: [
20209
- /* @__PURE__ */ jsxs11("div", {
20308
+ /* @__PURE__ */ jsxs12("div", {
20210
20309
  style: {
20211
20310
  display: "flex",
20212
20311
  flexDirection: "column",
@@ -20255,7 +20354,7 @@ var DiscordMembers = () => {
20255
20354
  var Contributors = () => {
20256
20355
  return /* @__PURE__ */ jsx47(Pill, {
20257
20356
  className: "w-[30%]",
20258
- children: /* @__PURE__ */ jsxs11("div", {
20357
+ children: /* @__PURE__ */ jsxs12("div", {
20259
20358
  style: { display: "flex", justifyContent: "center" },
20260
20359
  children: [
20261
20360
  /* @__PURE__ */ jsx47("div", {
@@ -20275,7 +20374,7 @@ var Contributors = () => {
20275
20374
  width: "65px"
20276
20375
  })
20277
20376
  }),
20278
- /* @__PURE__ */ jsxs11("div", {
20377
+ /* @__PURE__ */ jsxs12("div", {
20279
20378
  style: {
20280
20379
  display: "flex",
20281
20380
  flexDirection: "column",
@@ -20317,14 +20416,14 @@ var SectionTitle = ({
20317
20416
  };
20318
20417
 
20319
20418
  // src/components/homepage/CommunityStats.tsx
20320
- import { jsx as jsx49, jsxs as jsxs12 } from "react/jsx-runtime";
20419
+ import { jsx as jsx49, jsxs as jsxs13 } from "react/jsx-runtime";
20321
20420
  var SectionLink = ({ href, children }) => /* @__PURE__ */ jsx49("a", {
20322
20421
  target: "_blank",
20323
20422
  href,
20324
20423
  className: "no-underline text-inherit contents",
20325
20424
  children
20326
20425
  });
20327
- var CommunityStats = () => /* @__PURE__ */ jsxs12("div", {
20426
+ var CommunityStats = () => /* @__PURE__ */ jsxs13("div", {
20328
20427
  className: "m-auto max-w-[700px] text-center",
20329
20428
  children: [
20330
20429
  /* @__PURE__ */ jsx49(SectionTitle, {
@@ -20334,7 +20433,7 @@ var CommunityStats = () => /* @__PURE__ */ jsxs12("div", {
20334
20433
  className: "fontbrand text-center mb-10 -mt-4",
20335
20434
  children: "Join a thriving community of developers."
20336
20435
  }),
20337
- /* @__PURE__ */ jsxs12("div", {
20436
+ /* @__PURE__ */ jsxs13("div", {
20338
20437
  className: "flex flex-wrap justify-between gap-4 w-full items-center",
20339
20438
  children: [
20340
20439
  /* @__PURE__ */ jsx49(SectionLink, {
@@ -20384,19 +20483,19 @@ init_esm();
20384
20483
  init_esm();
20385
20484
  init_esm();
20386
20485
  init_esm();
20387
- import { jsx as jsx50, jsxs as jsxs13 } from "react/jsx-runtime";
20486
+ import { jsx as jsx50, jsxs as jsxs14 } from "react/jsx-runtime";
20388
20487
  import { jsx as jsx213, jsxs as jsxs24, Fragment as Fragment6 } from "react/jsx-runtime";
20389
20488
  import React40 from "react";
20390
- import { useContext as useContext210, useEffect as useEffect24, useState as useState35 } from "react";
20489
+ import { useContext as useContext210, useEffect as useEffect210, useState as useState35 } from "react";
20391
20490
  import { useContext as useContext40, useEffect as useEffect38 } from "react";
20392
20491
  import { jsx as jsx310 } from "react/jsx-runtime";
20393
- import { useCallback as useCallback27, useRef as useRef30 } from "react";
20492
+ import { useCallback as useCallback27, useRef as useRef32 } from "react";
20394
20493
  import { useEffect as useEffect39, useState as useState210 } from "react";
20395
20494
  import { useContext as useContext42, useEffect as useEffect62, useRef as useRef42 } from "react";
20396
20495
  import { useEffect as useEffect42 } from "react";
20397
- import { useCallback as useCallback28, useContext as useContext37, useMemo as useMemo42, useRef as useRef210, useState as useState36 } from "react";
20398
- import { useEffect as useEffect52, useRef as useRef32 } from "react";
20399
- import { useCallback as useCallback32, useEffect as useEffect73, useMemo as useMemo210, useState as useState42 } from "react";
20496
+ import { useCallback as useCallback28, useContext as useContext37, useMemo as useMemo42, useRef as useRef24, useState as useState36 } from "react";
20497
+ import { useEffect as useEffect52, useRef as useRef33 } from "react";
20498
+ import { useCallback as useCallback32, useEffect as useEffect72, useMemo as useMemo212, useState as useState42 } from "react";
20400
20499
  import {
20401
20500
  forwardRef as forwardRef26,
20402
20501
  useEffect as useEffect142,
@@ -20406,7 +20505,7 @@ import {
20406
20505
  useRef as useRef112,
20407
20506
  useState as useState132
20408
20507
  } from "react";
20409
- import React103, {
20508
+ import React102, {
20410
20509
  Suspense as Suspense2,
20411
20510
  forwardRef as forwardRef27,
20412
20511
  useCallback as useCallback112,
@@ -20430,12 +20529,12 @@ import {
20430
20529
  useMemo as useMemo52,
20431
20530
  useState as useState82
20432
20531
  } from "react";
20433
- import { useEffect as useEffect82, useRef as useRef62, useState as useState72 } from "react";
20532
+ import { useEffect as useEffect83, useRef as useRef62, useState as useState72 } from "react";
20434
20533
  import { jsx as jsx74, jsxs as jsxs52 } from "react/jsx-runtime";
20435
20534
  import { useCallback as useCallback72, useEffect as useEffect102, useMemo as useMemo62, useRef as useRef72, useState as useState92 } from "react";
20436
- import { jsx as jsx84, jsxs as jsxs6 } from "react/jsx-runtime";
20535
+ import { jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
20437
20536
  import { useMemo as useMemo72 } from "react";
20438
- import { jsxs as jsxs72 } from "react/jsx-runtime";
20537
+ import { jsxs as jsxs7 } from "react/jsx-runtime";
20439
20538
  import { useMemo as useMemo82 } from "react";
20440
20539
  import { jsx as jsx94, jsxs as jsxs82, Fragment as Fragment22 } from "react/jsx-runtime";
20441
20540
  import React82 from "react";
@@ -21116,7 +21215,7 @@ var PlayIcon = () => {
21116
21215
  });
21117
21216
  };
21118
21217
  var PauseIcon = () => {
21119
- return /* @__PURE__ */ jsxs13("svg", {
21218
+ return /* @__PURE__ */ jsxs14("svg", {
21120
21219
  viewBox: "0 0 100 100",
21121
21220
  width: ICON_SIZE2,
21122
21221
  height: ICON_SIZE2,
@@ -21150,7 +21249,7 @@ var FullscreenIcon = ({
21150
21249
  const out = isFullscreen ? 0 : strokeWidth2 / 2;
21151
21250
  const middleInset = isFullscreen ? strokeWidth2 * 1.6 : strokeWidth2 / 2;
21152
21251
  const inset = isFullscreen ? strokeWidth2 * 1.6 : strokeWidth2 * 2;
21153
- return /* @__PURE__ */ jsxs13("svg", {
21252
+ return /* @__PURE__ */ jsxs14("svg", {
21154
21253
  viewBox: `0 0 ${viewSize} ${viewSize}`,
21155
21254
  height: fullscreenIconSize,
21156
21255
  width: fullscreenIconSize,
@@ -21555,7 +21654,7 @@ var PlayerEmitterProvider = ({ children, currentPlaybackRate }) => {
21555
21654
  if (!bufferManager) {
21556
21655
  throw new Error("BufferingContextReact not found");
21557
21656
  }
21558
- useEffect24(() => {
21657
+ useEffect210(() => {
21559
21658
  if (currentPlaybackRate) {
21560
21659
  emitter.dispatchRateChange(currentPlaybackRate);
21561
21660
  }
@@ -21610,12 +21709,12 @@ var usePlayer = () => {
21610
21709
  const [playing, setPlaying, imperativePlaying] = Internals.Timeline.usePlayingState();
21611
21710
  const [hasPlayed, setHasPlayed] = useState36(false);
21612
21711
  const frame = Internals.Timeline.useTimelinePosition();
21613
- const playStart = useRef210(frame);
21712
+ const playStart = useRef24(frame);
21614
21713
  const setFrame = Internals.Timeline.useTimelineSetFrame();
21615
21714
  const setTimelinePosition = Internals.Timeline.useTimelineSetFrame();
21616
21715
  const audioContext = useContext37(Internals.SharedAudioContext);
21617
21716
  const { audioAndVideoTags } = useContext37(Internals.TimelineContext);
21618
- const frameRef = useRef210(frame);
21717
+ const frameRef = useRef24(frame);
21619
21718
  frameRef.current = frame;
21620
21719
  const video = Internals.useVideo();
21621
21720
  const config = Internals.useUnsafeVideoConfig();
@@ -21910,7 +22009,7 @@ var getIsBackgrounded = () => {
21910
22009
  return document.visibilityState === "hidden";
21911
22010
  };
21912
22011
  var useIsBackgrounded = () => {
21913
- const isBackgrounded = useRef32(getIsBackgrounded());
22012
+ const isBackgrounded = useRef33(getIsBackgrounded());
21914
22013
  useEffect52(() => {
21915
22014
  const onVisibilityChange = () => {
21916
22015
  isBackgrounded.current = getIsBackgrounded();
@@ -22082,7 +22181,7 @@ var useElementSize = (ref, options2) => {
22082
22181
  }
22083
22182
  };
22084
22183
  });
22085
- const observer = useMemo210(() => {
22184
+ const observer = useMemo212(() => {
22086
22185
  if (typeof ResizeObserver === "undefined") {
22087
22186
  return null;
22088
22187
  }
@@ -22140,7 +22239,7 @@ var useElementSize = (ref, options2) => {
22140
22239
  };
22141
22240
  });
22142
22241
  }, [ref]);
22143
- useEffect73(() => {
22242
+ useEffect72(() => {
22144
22243
  if (!observer) {
22145
22244
  return;
22146
22245
  }
@@ -22154,7 +22253,7 @@ var useElementSize = (ref, options2) => {
22154
22253
  }
22155
22254
  };
22156
22255
  }, [observer, ref, updateSize]);
22157
- useEffect73(() => {
22256
+ useEffect72(() => {
22158
22257
  if (!options2.triggerOnWindowResize) {
22159
22258
  return;
22160
22259
  }
@@ -22163,13 +22262,13 @@ var useElementSize = (ref, options2) => {
22163
22262
  window.removeEventListener("resize", updateSize);
22164
22263
  };
22165
22264
  }, [options2.triggerOnWindowResize, updateSize]);
22166
- useEffect73(() => {
22265
+ useEffect72(() => {
22167
22266
  elementSizeHooks.push(updateSize);
22168
22267
  return () => {
22169
22268
  elementSizeHooks = elementSizeHooks.filter((e) => e !== updateSize);
22170
22269
  };
22171
22270
  }, [updateSize]);
22172
- return useMemo210(() => {
22271
+ return useMemo212(() => {
22173
22272
  if (!size4) {
22174
22273
  return null;
22175
22274
  }
@@ -22382,7 +22481,7 @@ var MediaVolumeSlider = ({ displayVerticalVolumeSlider, renderMuteButton, render
22382
22481
  function useComponentVisible(initialIsVisible) {
22383
22482
  const [isComponentVisible, setIsComponentVisible] = useState72(initialIsVisible);
22384
22483
  const ref = useRef62(null);
22385
- useEffect82(() => {
22484
+ useEffect83(() => {
22386
22485
  const handleClickOutside = (event) => {
22387
22486
  if (ref.current && !ref.current.contains(event.target)) {
22388
22487
  setIsComponentVisible(false);
@@ -22726,12 +22825,12 @@ var PlayerSeekBar = ({ durationInFrames, onSeekEnd, onSeekStart, inFrame, outFra
22726
22825
  position: "absolute"
22727
22826
  };
22728
22827
  }, [durationInFrames, inFrame, outFrame]);
22729
- return /* @__PURE__ */ jsxs6("div", {
22828
+ return /* @__PURE__ */ jsxs62("div", {
22730
22829
  ref: containerRef,
22731
22830
  onPointerDown,
22732
22831
  style: containerStyle,
22733
22832
  children: [
22734
- /* @__PURE__ */ jsxs6("div", {
22833
+ /* @__PURE__ */ jsxs62("div", {
22735
22834
  style: barBackground,
22736
22835
  children: [
22737
22836
  /* @__PURE__ */ jsx84("div", {
@@ -22767,7 +22866,7 @@ var PlayerTimeLabel = ({ durationInFrames, maxTimeLabelWidth, fps }) => {
22767
22866
  }, [maxTimeLabelWidth]);
22768
22867
  const isLastFrame = frame === durationInFrames - 1;
22769
22868
  const frameToDisplay = isLastFrame ? frame + 1 : frame;
22770
- return /* @__PURE__ */ jsxs72("div", {
22869
+ return /* @__PURE__ */ jsxs7("div", {
22771
22870
  style: timeLabel,
22772
22871
  children: [
22773
22872
  formatTime(frameToDisplay / fps),
@@ -23285,7 +23384,7 @@ var useClickPreventionOnDoubleClick = (onClick, onDoubleClick, doubleClickToFull
23285
23384
  }, [doubleClickToFullscreen, handleDoubleClick, handlePointerDown, onClick]);
23286
23385
  return returnValue;
23287
23386
  };
23288
- var reactVersion = React103.version.split(".")[0];
23387
+ var reactVersion = React102.version.split(".")[0];
23289
23388
  if (reactVersion === "0") {
23290
23389
  throw new Error(`Version ${reactVersion} of "react" is not supported by Remotion`);
23291
23390
  }
@@ -24451,7 +24550,7 @@ import {
24451
24550
  useCallback as useCallback43,
24452
24551
  useEffect as useEffect55,
24453
24552
  useMemo as useMemo53,
24454
- useRef as useRef39,
24553
+ useRef as useRef41,
24455
24554
  useState as useState47
24456
24555
  } from "react";
24457
24556
 
@@ -25235,13 +25334,13 @@ import {
25235
25334
  createRef as createRef4,
25236
25335
  useCallback as useCallback35,
25237
25336
  useEffect as useEffect46,
25238
- useRef as useRef36,
25337
+ useRef as useRef38,
25239
25338
  useState as useState40
25240
25339
  } from "react";
25241
25340
 
25242
25341
  // src/components/homepage/Demo/Card.tsx
25243
25342
  init_esm();
25244
- import { useCallback as useCallback31, useRef as useRef31 } from "react";
25343
+ import { useCallback as useCallback31, useRef as useRef34 } from "react";
25245
25344
 
25246
25345
  // src/components/homepage/Demo/math.ts
25247
25346
  var paddingAndMargin = 20;
@@ -25276,7 +25375,7 @@ var getIndexFromPosition = (clientX, clientY) => {
25276
25375
 
25277
25376
  // src/components/homepage/Demo/Switcher.tsx
25278
25377
  import { useCallback as useCallback29 } from "react";
25279
- import { jsx as jsx55, jsxs as jsxs14 } from "react/jsx-runtime";
25378
+ import { jsx as jsx55, jsxs as jsxs15 } from "react/jsx-runtime";
25280
25379
  var Switcher = ({ type, theme, onTap }) => {
25281
25380
  const onPointerDown = useCallback29((e) => {
25282
25381
  e.stopPropagation();
@@ -25301,7 +25400,7 @@ var Switcher = ({ type, theme, onTap }) => {
25301
25400
  alignItems: "center",
25302
25401
  display: "flex"
25303
25402
  },
25304
- children: /* @__PURE__ */ jsxs14("svg", {
25403
+ children: /* @__PURE__ */ jsxs15("svg", {
25305
25404
  style: { height: switcherSize / 2 },
25306
25405
  viewBox: "0 0 320 512",
25307
25406
  children: [
@@ -25319,7 +25418,7 @@ var Switcher = ({ type, theme, onTap }) => {
25319
25418
  };
25320
25419
 
25321
25420
  // src/components/homepage/Demo/Card.tsx
25322
- import { jsx as jsx57, jsxs as jsxs15, Fragment as Fragment7 } from "react/jsx-runtime";
25421
+ import { jsx as jsx57, jsxs as jsxs16, Fragment as Fragment7 } from "react/jsx-runtime";
25323
25422
  var arePositionsEqual = (a, b) => {
25324
25423
  return a.every((pos, i) => {
25325
25424
  return pos.x === b[i].x && pos.y === b[i].y;
@@ -25339,7 +25438,7 @@ var Card2 = ({
25339
25438
  onClickRight
25340
25439
  }) => {
25341
25440
  const refToUse = refsToUse[index2];
25342
- const stopPrevious = useRef31([]);
25441
+ const stopPrevious = useRef34([]);
25343
25442
  let newIndices = [...indices];
25344
25443
  const applyPositions = useCallback31((except) => {
25345
25444
  let stopped = false;
@@ -25496,7 +25595,7 @@ var Card2 = ({
25496
25595
  borderRadius: 13,
25497
25596
  cursor: "grab"
25498
25597
  },
25499
- children: /* @__PURE__ */ jsxs15(AbsoluteFill, {
25598
+ children: /* @__PURE__ */ jsxs16(AbsoluteFill, {
25500
25599
  style: {
25501
25600
  backgroundColor: color,
25502
25601
  borderRadius: 12
@@ -25504,7 +25603,7 @@ var Card2 = ({
25504
25603
  className: "transition-opacity duration-200",
25505
25604
  children: [
25506
25605
  content,
25507
- withSwitcher ? /* @__PURE__ */ jsxs15(Fragment7, {
25606
+ withSwitcher ? /* @__PURE__ */ jsxs16(Fragment7, {
25508
25607
  children: [
25509
25608
  /* @__PURE__ */ jsx57(Switcher, {
25510
25609
  onTap: onClickLeft,
@@ -25525,7 +25624,7 @@ var Card2 = ({
25525
25624
 
25526
25625
  // src/components/homepage/Demo/CurrentCountry.tsx
25527
25626
  init_esm();
25528
- import { jsx as jsx58, jsxs as jsxs16 } from "react/jsx-runtime";
25627
+ import { jsx as jsx58, jsxs as jsxs17 } from "react/jsx-runtime";
25529
25628
  var CurrentCountry = ({ theme, countryPaths, countryLabel }) => {
25530
25629
  const { fps } = useVideoConfig();
25531
25630
  const frame = useCurrentFrame();
@@ -25540,7 +25639,7 @@ var CurrentCountry = ({ theme, countryPaths, countryLabel }) => {
25540
25639
  frame,
25541
25640
  delay: 10
25542
25641
  });
25543
- return /* @__PURE__ */ jsxs16(AbsoluteFill, {
25642
+ return /* @__PURE__ */ jsxs17(AbsoluteFill, {
25544
25643
  style: { overflow: "hidden" },
25545
25644
  children: [
25546
25645
  /* @__PURE__ */ jsx58(AbsoluteFill, {
@@ -25558,7 +25657,7 @@ var CurrentCountry = ({ theme, countryPaths, countryLabel }) => {
25558
25657
  })
25559
25658
  })
25560
25659
  }),
25561
- /* @__PURE__ */ jsxs16(AbsoluteFill, {
25660
+ /* @__PURE__ */ jsxs17(AbsoluteFill, {
25562
25661
  style: {
25563
25662
  alignItems: "center",
25564
25663
  justifyContent: "center"
@@ -25607,7 +25706,7 @@ import {
25607
25706
  useCallback as useCallback33,
25608
25707
  useEffect as useEffect45,
25609
25708
  useImperativeHandle as useImperativeHandle13,
25610
- useRef as useRef35
25709
+ useRef as useRef37
25611
25710
  } from "react";
25612
25711
 
25613
25712
  // src/components/homepage/Demo/DisplayedEmoji.tsx
@@ -25679,7 +25778,7 @@ var DisplayedEmoji = ({ emoji }) => {
25679
25778
  };
25680
25779
 
25681
25780
  // src/components/homepage/Demo/EmojiCard.tsx
25682
- import { jsx as jsx61, jsxs as jsxs17, Fragment as Fragment8 } from "react/jsx-runtime";
25781
+ import { jsx as jsx61, jsxs as jsxs18, Fragment as Fragment8 } from "react/jsx-runtime";
25683
25782
  var applyTransforms = ({ ref1, ref2, ref3, transforms }) => {
25684
25783
  ref1.style.transform = `translateX(${transforms[0]}%)`;
25685
25784
  ref2.style.transform = `translateX(${transforms[1]}%)`;
@@ -25720,10 +25819,10 @@ var emojiStyle = {
25720
25819
  top: "calc(50% - 50px)"
25721
25820
  };
25722
25821
  var EmojiCardRefFn = ({ emojiIndex }, ref) => {
25723
- const ref1 = useRef35(null);
25724
- const ref2 = useRef35(null);
25725
- const ref3 = useRef35(null);
25726
- const transforms = useRef35([-100, 0, 100]);
25822
+ const ref1 = useRef37(null);
25823
+ const ref2 = useRef37(null);
25824
+ const ref3 = useRef37(null);
25825
+ const transforms = useRef37([-100, 0, 100]);
25727
25826
  const onLeft = useCallback33(() => {
25728
25827
  if (!ref1.current || !ref2.current || !ref3.current) {
25729
25828
  return;
@@ -25775,7 +25874,7 @@ var EmojiCardRefFn = ({ emojiIndex }, ref) => {
25775
25874
  });
25776
25875
  }, []);
25777
25876
  const env = useRemotionEnvironment();
25778
- return /* @__PURE__ */ jsxs17(AbsoluteFill, {
25877
+ return /* @__PURE__ */ jsxs18(AbsoluteFill, {
25779
25878
  style: {
25780
25879
  justifyContent: "center",
25781
25880
  alignItems: "center",
@@ -25807,7 +25906,7 @@ var EmojiCardRefFn = ({ emojiIndex }, ref) => {
25807
25906
  children: /* @__PURE__ */ jsx61(DisplayedEmoji, {
25808
25907
  emoji: emojiIndex
25809
25908
  })
25810
- }) : /* @__PURE__ */ jsxs17(Fragment8, {
25909
+ }) : /* @__PURE__ */ jsxs18(Fragment8, {
25811
25910
  children: [
25812
25911
  /* @__PURE__ */ jsx61("div", {
25813
25912
  ref: ref1,
@@ -25861,7 +25960,7 @@ var Minus = ({ leftOffset, minusSignOpacity }) => {
25861
25960
  };
25862
25961
 
25863
25962
  // src/components/homepage/Demo/DigitWheel.tsx
25864
- import { jsx as jsx67, jsxs as jsxs18 } from "react/jsx-runtime";
25963
+ import { jsx as jsx67, jsxs as jsxs19 } from "react/jsx-runtime";
25865
25964
  var DURATION = 25;
25866
25965
  var items = 10;
25867
25966
  var NUM_WIDTH = 36;
@@ -25905,7 +26004,7 @@ var Wheel = ({ delay: delay2, digits, renderDigit, isLeadingDigit, isNegative })
25905
26004
  const rotation = progresses.map((p, i) => {
25906
26005
  return p * offsets[i];
25907
26006
  }).reduce((a, b) => a + b, 0) + rotations[0];
25908
- return /* @__PURE__ */ jsxs18("div", {
26007
+ return /* @__PURE__ */ jsxs19("div", {
25909
26008
  style: {
25910
26009
  position: "relative",
25911
26010
  width: NUM_WIDTH,
@@ -25966,14 +26065,14 @@ var Wheel = ({ delay: delay2, digits, renderDigit, isLeadingDigit, isNegative })
25966
26065
  };
25967
26066
 
25968
26067
  // src/components/homepage/Demo/TemperatureNumber.tsx
25969
- import { jsx as jsx68, jsxs as jsxs19 } from "react/jsx-runtime";
26068
+ import { jsx as jsx68, jsxs as jsxs20 } from "react/jsx-runtime";
25970
26069
  var TemperatureNumber = ({ theme, temperatureInCelsius }) => {
25971
26070
  const temperatureInFahrenheit = temperatureInCelsius * 9 / 5 + 32;
25972
26071
  const celsiusDegree = Math.abs(temperatureInCelsius);
25973
26072
  const fahrenheitDegree = Math.abs(temperatureInFahrenheit);
25974
26073
  const paddedCelsiusDegree = String(celsiusDegree).padStart(fahrenheitDegree.toFixed(0).length, "0").split("");
25975
26074
  const paddedFahrenheitDegree = fahrenheitDegree.toFixed(0).padStart(paddedCelsiusDegree.length, "0").split("");
25976
- return /* @__PURE__ */ jsxs19("div", {
26075
+ return /* @__PURE__ */ jsxs20("div", {
25977
26076
  style: {
25978
26077
  lineHeight: 1.1,
25979
26078
  fontFamily: "GTPlanar",
@@ -26021,13 +26120,13 @@ var TemperatureNumber = ({ theme, temperatureInCelsius }) => {
26021
26120
  };
26022
26121
 
26023
26122
  // src/components/homepage/Demo/Temperature.tsx
26024
- import { jsx as jsx69, jsxs as jsxs20 } from "react/jsx-runtime";
26123
+ import { jsx as jsx69, jsxs as jsxs21 } from "react/jsx-runtime";
26025
26124
  var Temperature = ({ theme, city, temperatureInCelsius }) => {
26026
26125
  if (temperatureInCelsius === null) {
26027
26126
  return null;
26028
26127
  }
26029
26128
  return /* @__PURE__ */ jsx69(AbsoluteFill, {
26030
- children: /* @__PURE__ */ jsxs20(AbsoluteFill, {
26129
+ children: /* @__PURE__ */ jsxs21(AbsoluteFill, {
26031
26130
  style: {
26032
26131
  alignItems: "center",
26033
26132
  justifyContent: "center",
@@ -26035,7 +26134,7 @@ var Temperature = ({ theme, city, temperatureInCelsius }) => {
26035
26134
  paddingRight: 20
26036
26135
  },
26037
26136
  children: [
26038
- /* @__PURE__ */ jsxs20("div", {
26137
+ /* @__PURE__ */ jsxs21("div", {
26039
26138
  style: {
26040
26139
  color: "#0b84f3",
26041
26140
  fontFamily: "GTPlanar",
@@ -26061,7 +26160,7 @@ var Temperature = ({ theme, city, temperatureInCelsius }) => {
26061
26160
  // src/components/homepage/Demo/TrendingRepos.tsx
26062
26161
  init_esm();
26063
26162
  import { useMemo as useMemo47 } from "react";
26064
- import { jsx as jsx70, jsxs as jsxs21 } from "react/jsx-runtime";
26163
+ import { jsx as jsx70, jsxs as jsxs25 } from "react/jsx-runtime";
26065
26164
  var TrendingRepoItem = ({ repo, theme, number }) => {
26066
26165
  const frame = useCurrentFrame();
26067
26166
  const { fps } = useVideoConfig();
@@ -26083,7 +26182,7 @@ var TrendingRepoItem = ({ repo, theme, number }) => {
26083
26182
  opacity: progress
26084
26183
  };
26085
26184
  }, [progress, theme]);
26086
- return /* @__PURE__ */ jsxs21("div", {
26185
+ return /* @__PURE__ */ jsxs25("div", {
26087
26186
  style: item,
26088
26187
  children: [
26089
26188
  number,
@@ -26114,7 +26213,7 @@ var TrendingRepos = ({ theme, trending }) => {
26114
26213
  paddingLeft: 20,
26115
26214
  paddingRight: 20
26116
26215
  },
26117
- children: /* @__PURE__ */ jsxs21("div", {
26216
+ children: /* @__PURE__ */ jsxs25("div", {
26118
26217
  children: [
26119
26218
  /* @__PURE__ */ jsx70("div", {
26120
26219
  style: {
@@ -26176,14 +26275,14 @@ var Cards = ({
26176
26275
  location,
26177
26276
  trending
26178
26277
  }) => {
26179
- const container4 = useRef36(null);
26278
+ const container4 = useRef38(null);
26180
26279
  const [refs] = useState40(() => {
26181
26280
  return new Array(4).fill(true).map(() => {
26182
26281
  return createRef4();
26183
26282
  });
26184
26283
  });
26185
- const positions = useRef36(getInitialPositions());
26186
- const shouldBePositions = useRef36(getInitialPositions());
26284
+ const positions = useRef38(getInitialPositions());
26285
+ const shouldBePositions = useRef38(getInitialPositions());
26187
26286
  const { isRendering } = useRemotionEnvironment();
26188
26287
  useEffect46(() => {
26189
26288
  const { current } = container4;
@@ -26201,7 +26300,7 @@ var Cards = ({
26201
26300
  current.removeEventListener("click", onClick);
26202
26301
  };
26203
26302
  }, [onToggle]);
26204
- const ref = useRef36(null);
26303
+ const ref = useRef38(null);
26205
26304
  const onLeft = useCallback35(() => {
26206
26305
  ref.current?.onRight();
26207
26306
  onRightPress();
@@ -26247,7 +26346,7 @@ var Cards = ({
26247
26346
  };
26248
26347
 
26249
26348
  // src/components/homepage/Demo/Comp.tsx
26250
- import { jsx as jsx75, jsxs as jsxs25 } from "react/jsx-runtime";
26349
+ import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
26251
26350
  var getDataAndProps = async () => {
26252
26351
  const location = await fetch("https://bugs-git-homepage-player-remotion.vercel.app/api/location").then((res) => res.json());
26253
26352
  const trending = await fetch(`https://bugs.remotion.dev/trending?lat=${location.latitude}&lng=${location.longitude}&country=${location.country}`).then((res) => res.json()).then((data) => {
@@ -26308,7 +26407,7 @@ var HomepageVideoComp = ({
26308
26407
  c.free();
26309
26408
  };
26310
26409
  }, []);
26311
- return /* @__PURE__ */ jsxs25(AbsoluteFill, {
26410
+ return /* @__PURE__ */ jsxs27(AbsoluteFill, {
26312
26411
  style: {
26313
26412
  backgroundColor: theme === "dark" ? "#222" : "#fafafa"
26314
26413
  },
@@ -26378,7 +26477,7 @@ var DemoErrorIcon = () => {
26378
26477
  };
26379
26478
 
26380
26479
  // src/components/homepage/Demo/DoneCheckmark.tsx
26381
- import { jsx as jsx79, jsxs as jsxs27 } from "react/jsx-runtime";
26480
+ import { jsx as jsx79, jsxs as jsxs28 } from "react/jsx-runtime";
26382
26481
  var DoneCheckmark = () => {
26383
26482
  return /* @__PURE__ */ jsx79("div", {
26384
26483
  style: {
@@ -26391,7 +26490,7 @@ var DoneCheckmark = () => {
26391
26490
  justifyContent: "center",
26392
26491
  animation: "jump 0.2s ease-out"
26393
26492
  },
26394
- children: /* @__PURE__ */ jsxs27("svg", {
26493
+ children: /* @__PURE__ */ jsxs28("svg", {
26395
26494
  viewBox: "0 0 20 20",
26396
26495
  fill: "none",
26397
26496
  xmlns: "http://www.w3.org/2000/svg",
@@ -26420,7 +26519,7 @@ var DoneCheckmark = () => {
26420
26519
  };
26421
26520
 
26422
26521
  // src/components/homepage/Demo/Progress.tsx
26423
- import { jsx as jsx80, jsxs as jsxs28 } from "react/jsx-runtime";
26522
+ import { jsx as jsx80, jsxs as jsxs29 } from "react/jsx-runtime";
26424
26523
  var Progress = ({ progress }) => {
26425
26524
  const inner2 = makeCircle({
26426
26525
  radius: 10
@@ -26430,7 +26529,7 @@ var Progress = ({ progress }) => {
26430
26529
  closePath: false,
26431
26530
  radius: 10
26432
26531
  });
26433
- return /* @__PURE__ */ jsxs28("svg", {
26532
+ return /* @__PURE__ */ jsxs29("svg", {
26434
26533
  viewBox: `0 0 ${inner2.width} ${inner2.height}`,
26435
26534
  style: { overflow: "visible", height: 22 },
26436
26535
  children: [
@@ -26453,20 +26552,20 @@ var Progress = ({ progress }) => {
26453
26552
 
26454
26553
  // src/components/homepage/Demo/Spinner.tsx
26455
26554
  import { useMemo as useMemo49 } from "react";
26456
- import { jsx as jsx81, jsxs as jsxs29, Fragment as Fragment9 } from "react/jsx-runtime";
26457
- var viewBox = 100;
26458
- var lines = 8;
26555
+ import { jsx as jsx81, jsxs as jsxs30, Fragment as Fragment9 } from "react/jsx-runtime";
26556
+ var viewBox2 = 100;
26557
+ var lines2 = 8;
26459
26558
  var className2 = "__remotion_spinner_line";
26460
26559
  var remotionSpinnerAnimation = "__remotion_spinner_animation";
26461
- var translated2 = "M 44 0 L 50 0 a 6 6 0 0 1 6 6 L 56 26 a 6 6 0 0 1 -6 6 L 50 32 a 6 6 0 0 1 -6 -6 L 44 6 a 6 6 0 0 1 6 -6 Z";
26462
- var Spinner = ({ size: size4, duration }) => {
26560
+ var translated3 = "M 44 0 L 50 0 a 6 6 0 0 1 6 6 L 56 26 a 6 6 0 0 1 -6 6 L 50 32 a 6 6 0 0 1 -6 -6 L 44 6 a 6 6 0 0 1 6 -6 Z";
26561
+ var Spinner2 = ({ size: size4, duration }) => {
26463
26562
  const style2 = useMemo49(() => {
26464
26563
  return {
26465
26564
  width: size4,
26466
26565
  height: size4
26467
26566
  };
26468
26567
  }, [size4]);
26469
- return /* @__PURE__ */ jsxs29(Fragment9, {
26568
+ return /* @__PURE__ */ jsxs30(Fragment9, {
26470
26569
  children: [
26471
26570
  /* @__PURE__ */ jsx81("style", {
26472
26571
  type: "text/css",
@@ -26487,16 +26586,16 @@ var Spinner = ({ size: size4, duration }) => {
26487
26586
  }),
26488
26587
  /* @__PURE__ */ jsx81("svg", {
26489
26588
  style: style2,
26490
- viewBox: `0 0 ${viewBox} ${viewBox}`,
26491
- children: new Array(lines).fill(true).map((_, index2) => {
26589
+ viewBox: `0 0 ${viewBox2} ${viewBox2}`,
26590
+ children: new Array(lines2).fill(true).map((_, index2) => {
26492
26591
  return /* @__PURE__ */ jsx81("path", {
26493
26592
  className: className2,
26494
26593
  style: {
26495
- rotate: `${index2 * Math.PI * 2 / lines}rad`,
26594
+ rotate: `${index2 * Math.PI * 2 / lines2}rad`,
26496
26595
  transformOrigin: "center center",
26497
- animationDelay: `${index2 * (duration / lines) - duration}s`
26596
+ animationDelay: `${index2 * (duration / lines2) - duration}s`
26498
26597
  },
26499
- d: translated2,
26598
+ d: translated3,
26500
26599
  fill: PALETTE.TEXT_COLOR
26501
26600
  }, index2);
26502
26601
  })
@@ -26594,7 +26693,7 @@ var RenderButton = ({ renderData, onError }) => {
26594
26693
  disabled: !renderData || state.type !== "idle",
26595
26694
  children: state.type === "error" ? /* @__PURE__ */ jsx85(DemoErrorIcon, {}) : state.type === "done" ? /* @__PURE__ */ jsx85(DoneCheckmark, {}) : state.type === "progress" ? /* @__PURE__ */ jsx85(Progress, {
26596
26695
  progress: state.progress
26597
- }) : state.type === "invoking" ? /* @__PURE__ */ jsx85(Spinner, {
26696
+ }) : state.type === "invoking" ? /* @__PURE__ */ jsx85(Spinner2, {
26598
26697
  size: 20,
26599
26698
  duration: 1
26600
26699
  }) : /* @__PURE__ */ jsx85("svg", {
@@ -26613,7 +26712,7 @@ var RenderButton = ({ renderData, onError }) => {
26613
26712
  };
26614
26713
 
26615
26714
  // src/components/homepage/Demo/DownloadNudge.tsx
26616
- import { jsx as jsx87, jsxs as jsxs30 } from "react/jsx-runtime";
26715
+ import { jsx as jsx87, jsxs as jsxs31 } from "react/jsx-runtime";
26617
26716
  var origWidth = 77;
26618
26717
  var scale = 0.4;
26619
26718
  var Icon3 = () => {
@@ -26643,10 +26742,10 @@ var DownloadNudge = () => {
26643
26742
  paddingRight: 22,
26644
26743
  paddingTop: 20
26645
26744
  },
26646
- children: /* @__PURE__ */ jsxs30("div", {
26745
+ children: /* @__PURE__ */ jsxs31("div", {
26647
26746
  children: [
26648
26747
  /* @__PURE__ */ jsx87(Icon3, {}),
26649
- /* @__PURE__ */ jsxs30("div", {
26748
+ /* @__PURE__ */ jsxs31("div", {
26650
26749
  style: {
26651
26750
  fontFamily: FONTS.GTPLANAR,
26652
26751
  fontSize: 15,
@@ -26673,7 +26772,7 @@ var DownloadNudge = () => {
26673
26772
  };
26674
26773
 
26675
26774
  // src/components/homepage/Demo/DragAndDropNudge.tsx
26676
- import { jsx as jsx88, jsxs as jsxs31 } from "react/jsx-runtime";
26775
+ import { jsx as jsx88, jsxs as jsxs34 } from "react/jsx-runtime";
26677
26776
  var origWidth2 = 37;
26678
26777
  var scale2 = 0.4;
26679
26778
  var Icon5 = () => {
@@ -26703,7 +26802,7 @@ var DragAndDropNudge = () => {
26703
26802
  marginTop: 50
26704
26803
  },
26705
26804
  className: "ml-4 lg:-ml-5",
26706
- children: /* @__PURE__ */ jsxs31("div", {
26805
+ children: /* @__PURE__ */ jsxs34("div", {
26707
26806
  children: [
26708
26807
  /* @__PURE__ */ jsx88("div", {
26709
26808
  style: {
@@ -26724,7 +26823,7 @@ var DragAndDropNudge = () => {
26724
26823
 
26725
26824
  // src/components/homepage/Demo/PlayerSeekBar.tsx
26726
26825
  init_esm();
26727
- import { useCallback as useCallback39, useEffect as useEffect49, useMemo as useMemo51, useRef as useRef37, useState as useState45 } from "react";
26826
+ import { useCallback as useCallback39, useEffect as useEffect49, useMemo as useMemo51, useRef as useRef39, useState as useState45 } from "react";
26728
26827
 
26729
26828
  // src/components/homepage/layout/use-el-size.ts
26730
26829
  import { useCallback as useCallback38, useEffect as useEffect48, useMemo as useMemo50, useState as useState43 } from "react";
@@ -26769,7 +26868,7 @@ var useElementSize2 = (ref) => {
26769
26868
  };
26770
26869
 
26771
26870
  // src/components/homepage/Demo/PlayerSeekBar.tsx
26772
- import { jsx as jsx89, jsxs as jsxs34 } from "react/jsx-runtime";
26871
+ import { jsx as jsx89, jsxs as jsxs36 } from "react/jsx-runtime";
26773
26872
  var getFrameFromX2 = (clientX, durationInFrames, width2) => {
26774
26873
  const pos = clientX;
26775
26874
  const frame = Math.round(interpolate2(pos, [0, width2], [0, durationInFrames - 1], {
@@ -26853,7 +26952,7 @@ var PlayerSeekBar2 = ({
26853
26952
  outFrame,
26854
26953
  playerRef
26855
26954
  }) => {
26856
- const containerRef = useRef37(null);
26955
+ const containerRef = useRef39(null);
26857
26956
  const barHovered = useHoverState2(containerRef, false);
26858
26957
  const size4 = useElementSize2(containerRef.current);
26859
26958
  const [playing, setPlaying] = useState45(false);
@@ -26978,12 +27077,12 @@ var PlayerSeekBar2 = ({
26978
27077
  position: "absolute"
26979
27078
  };
26980
27079
  }, [durationInFrames, inFrame, outFrame]);
26981
- return /* @__PURE__ */ jsxs34("div", {
27080
+ return /* @__PURE__ */ jsxs36("div", {
26982
27081
  ref: containerRef,
26983
27082
  onPointerDown,
26984
27083
  style: containerStyle3,
26985
27084
  children: [
26986
- /* @__PURE__ */ jsxs34("div", {
27085
+ /* @__PURE__ */ jsxs36("div", {
26987
27086
  style: barBackground2,
26988
27087
  children: [
26989
27088
  /* @__PURE__ */ jsx89("div", {
@@ -27002,7 +27101,7 @@ var PlayerSeekBar2 = ({
27002
27101
  };
27003
27102
 
27004
27103
  // src/components/homepage/Demo/PlayerVolume.tsx
27005
- import { useCallback as useCallback40, useEffect as useEffect50, useRef as useRef38, useState as useState46 } from "react";
27104
+ import { useCallback as useCallback40, useEffect as useEffect50, useRef as useRef40, useState as useState46 } from "react";
27006
27105
 
27007
27106
  // src/components/homepage/Demo/icons.tsx
27008
27107
  import { jsx as jsx90 } from "react/jsx-runtime";
@@ -27062,7 +27161,7 @@ import { jsx as jsx91 } from "react/jsx-runtime";
27062
27161
  var PlayerVolume = ({ playerRef }) => {
27063
27162
  const [muted, setIsMuted] = useState46(() => playerRef.current?.isMuted() ?? true);
27064
27163
  const [isHovered, setIsHovered] = useState46(false);
27065
- const timerRef = useRef38(null);
27164
+ const timerRef = useRef40(null);
27066
27165
  useEffect50(() => {
27067
27166
  const { current } = playerRef;
27068
27167
  if (!current) {
@@ -27210,7 +27309,7 @@ var TimeDisplay = ({ fps, playerRef }) => {
27210
27309
  };
27211
27310
 
27212
27311
  // src/components/homepage/Demo/PlayerControls.tsx
27213
- import { jsx as jsx98, jsxs as jsxs36 } from "react/jsx-runtime";
27312
+ import { jsx as jsx98, jsxs as jsxs37 } from "react/jsx-runtime";
27214
27313
  var Separator2 = () => {
27215
27314
  return /* @__PURE__ */ jsx98("div", {
27216
27315
  style: {
@@ -27220,7 +27319,7 @@ var Separator2 = () => {
27220
27319
  });
27221
27320
  };
27222
27321
  var PlayerControls = ({ playerRef, durationInFrames, fps, children }) => {
27223
- return /* @__PURE__ */ jsxs36("div", {
27322
+ return /* @__PURE__ */ jsxs37("div", {
27224
27323
  className: "flex flex-row items-center bg-pane",
27225
27324
  children: [
27226
27325
  /* @__PURE__ */ jsx98(PlayPauseButton, {
@@ -27264,7 +27363,7 @@ var PlayerControls = ({ playerRef, durationInFrames, fps, children }) => {
27264
27363
 
27265
27364
  // src/components/homepage/Demo/ThemeNudge.tsx
27266
27365
  import React59 from "react";
27267
- import { jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
27366
+ import { jsx as jsx99, jsxs as jsxs38 } from "react/jsx-runtime";
27268
27367
  var origWidth3 = 21;
27269
27368
  var scale3 = 0.4;
27270
27369
  var Icon6 = () => {
@@ -27299,9 +27398,9 @@ var ThemeNudge = () => {
27299
27398
  position: "absolute",
27300
27399
  right: 0
27301
27400
  },
27302
- children: /* @__PURE__ */ jsxs37("div", {
27401
+ children: /* @__PURE__ */ jsxs38("div", {
27303
27402
  children: [
27304
- /* @__PURE__ */ jsxs37("div", {
27403
+ /* @__PURE__ */ jsxs38("div", {
27305
27404
  style: {
27306
27405
  fontFamily: FONTS.GTPLANAR,
27307
27406
  fontSize: 15,
@@ -27312,7 +27411,7 @@ var ThemeNudge = () => {
27312
27411
  marginTop: 5
27313
27412
  },
27314
27413
  children: [
27315
- /* @__PURE__ */ jsxs37("a", {
27414
+ /* @__PURE__ */ jsxs38("a", {
27316
27415
  href: "#",
27317
27416
  onClick: toggleTheme,
27318
27417
  className: "bluelink",
@@ -27334,7 +27433,7 @@ var ThemeNudge = () => {
27334
27433
  };
27335
27434
 
27336
27435
  // src/components/homepage/Demo/index.tsx
27337
- import { jsx as jsx100, jsxs as jsxs38 } from "react/jsx-runtime";
27436
+ import { jsx as jsx100, jsxs as jsxs39 } from "react/jsx-runtime";
27338
27437
  var style3 = {
27339
27438
  width: "100%",
27340
27439
  aspectRatio: "640 / 360",
@@ -27351,7 +27450,7 @@ var playerWrapper = {
27351
27450
  var Demo = () => {
27352
27451
  const { colorMode } = useColorMode();
27353
27452
  const [data2, setData] = useState47(null);
27354
- const ref = useRef39(null);
27453
+ const ref = useRef41(null);
27355
27454
  const [isFullscreen, setIsFullscreen] = useState47(false);
27356
27455
  const [cardOrder, setCardOrder] = useState47([0, 1, 2, 3]);
27357
27456
  const [emojiIndex, setEmojiIndex] = useState47(0);
@@ -27402,21 +27501,21 @@ var Demo = () => {
27402
27501
  const onError = useCallback43(() => {
27403
27502
  setError(true);
27404
27503
  }, []);
27405
- return /* @__PURE__ */ jsxs38("div", {
27504
+ return /* @__PURE__ */ jsxs39("div", {
27406
27505
  children: [
27407
27506
  /* @__PURE__ */ jsx100("br", {}),
27408
27507
  /* @__PURE__ */ jsx100("br", {}),
27409
27508
  /* @__PURE__ */ jsx100(SectionTitle, {
27410
27509
  children: "Demo"
27411
27510
  }),
27412
- /* @__PURE__ */ jsxs38("div", {
27511
+ /* @__PURE__ */ jsxs39("div", {
27413
27512
  style: { height: 140, position: "relative" },
27414
27513
  children: [
27415
27514
  /* @__PURE__ */ jsx100(DragAndDropNudge, {}),
27416
27515
  /* @__PURE__ */ jsx100(ThemeNudge, {})
27417
27516
  ]
27418
27517
  }),
27419
- /* @__PURE__ */ jsxs38("div", {
27518
+ /* @__PURE__ */ jsxs39("div", {
27420
27519
  style: playerWrapper,
27421
27520
  children: [
27422
27521
  /* @__PURE__ */ jsx100(Player, {
@@ -27498,15 +27597,15 @@ var ClearButton = (props) => {
27498
27597
 
27499
27598
  // src/components/homepage/MuxVideo.tsx
27500
27599
  import Hls2 from "hls.js";
27501
- import { forwardRef as forwardRef31, useEffect as useEffect57, useImperativeHandle as useImperativeHandle14, useRef as useRef41 } from "react";
27600
+ import { forwardRef as forwardRef31, useEffect as useEffect57, useImperativeHandle as useImperativeHandle14, useRef as useRef45 } from "react";
27502
27601
 
27503
27602
  // src/components/homepage/VideoPlayerWithControls.tsx
27504
27603
  import Hls from "hls.js";
27505
27604
  import"plyr/dist/plyr.css";
27506
- import { forwardRef as forwardRef30, useCallback as useCallback45, useEffect as useEffect56, useRef as useRef40, useState as useState48 } from "react";
27605
+ import { forwardRef as forwardRef30, useCallback as useCallback45, useEffect as useEffect56, useRef as useRef43, useState as useState48 } from "react";
27507
27606
  import { jsx as jsx105 } from "react/jsx-runtime";
27508
27607
  var useCombinedRefs = function(...refs) {
27509
- const targetRef = useRef40(null);
27608
+ const targetRef = useRef43(null);
27510
27609
  useEffect56(() => {
27511
27610
  refs.forEach((ref) => {
27512
27611
  if (!ref)
@@ -27521,9 +27620,9 @@ var useCombinedRefs = function(...refs) {
27521
27620
  return targetRef;
27522
27621
  };
27523
27622
  var VideoPlayerWithControls = forwardRef30(({ playbackId, poster, currentTime, onLoaded, onError, onSize, autoPlay }, ref) => {
27524
- const videoRef = useRef40(null);
27623
+ const videoRef = useRef43(null);
27525
27624
  const metaRef = useCombinedRefs(ref, videoRef);
27526
- const playerRef = useRef40(null);
27625
+ const playerRef = useRef43(null);
27527
27626
  const [playerInitTime] = useState48(Date.now());
27528
27627
  const videoError = useCallback45((event) => onError(event), [onError]);
27529
27628
  const onImageLoad = useCallback45((event) => {
@@ -27608,7 +27707,7 @@ var getVideoToPlayUrl = (muxId) => {
27608
27707
  return `https://stream.mux.com/${muxId}.m3u8`;
27609
27708
  };
27610
27709
  var MuxVideoForward = ({ muxId, ...props }, ref) => {
27611
- const videoRef = useRef41(null);
27710
+ const videoRef = useRef45(null);
27612
27711
  const vidUrl = getVideoToPlayUrl(muxId);
27613
27712
  useImperativeHandle14(ref, () => videoRef.current, []);
27614
27713
  useEffect57(() => {
@@ -27639,9 +27738,9 @@ var MuxVideoForward = ({ muxId, ...props }, ref) => {
27639
27738
  var MuxVideo = forwardRef31(MuxVideoForward);
27640
27739
 
27641
27740
  // src/components/homepage/EditorStarterSection.tsx
27642
- import { jsx as jsx108, jsxs as jsxs39 } from "react/jsx-runtime";
27741
+ import { jsx as jsx108, jsxs as jsxs40 } from "react/jsx-runtime";
27643
27742
  var EditorStarterSection = () => {
27644
- return /* @__PURE__ */ jsxs39("div", {
27743
+ return /* @__PURE__ */ jsxs40("div", {
27645
27744
  children: [
27646
27745
  /* @__PURE__ */ jsx108(SectionTitle, {
27647
27746
  children: "Build your own video editor"
@@ -27649,7 +27748,7 @@ var EditorStarterSection = () => {
27649
27748
  /* @__PURE__ */ jsx108("br", {}),
27650
27749
  /* @__PURE__ */ jsx108("div", {
27651
27750
  className: "card flex p-0 overflow-hidden",
27652
- children: /* @__PURE__ */ jsxs39("div", {
27751
+ children: /* @__PURE__ */ jsxs40("div", {
27653
27752
  className: "flex-1 flex flex-col lg:flex-row justify-center",
27654
27753
  children: [
27655
27754
  /* @__PURE__ */ jsx108("div", {
@@ -27663,7 +27762,7 @@ var EditorStarterSection = () => {
27663
27762
  muted: true
27664
27763
  })
27665
27764
  }),
27666
- /* @__PURE__ */ jsxs39("div", {
27765
+ /* @__PURE__ */ jsxs40("div", {
27667
27766
  className: "p-6 flex-1 flex flex-col h-full",
27668
27767
  children: [
27669
27768
  /* @__PURE__ */ jsx108("div", {
@@ -27677,7 +27776,7 @@ var EditorStarterSection = () => {
27677
27776
  /* @__PURE__ */ jsx108("div", {
27678
27777
  className: "h-5"
27679
27778
  }),
27680
- /* @__PURE__ */ jsxs39("div", {
27779
+ /* @__PURE__ */ jsxs40("div", {
27681
27780
  className: "flex gap-2 items-center",
27682
27781
  children: [
27683
27782
  /* @__PURE__ */ jsx108("a", {
@@ -27725,7 +27824,7 @@ var EditorStarterSection_default = EditorStarterSection;
27725
27824
 
27726
27825
  // src/components/homepage/EvaluateRemotion.tsx
27727
27826
  import { useEffect as useEffect58, useState as useState49 } from "react";
27728
- import { jsx as jsx109, jsxs as jsxs40 } from "react/jsx-runtime";
27827
+ import { jsx as jsx109, jsxs as jsxs41 } from "react/jsx-runtime";
27729
27828
  var EvaluateRemotionSection = () => {
27730
27829
  const [dailyAvatars, setDailyAvatars] = useState49([]);
27731
27830
  useEffect58(() => {
@@ -27755,10 +27854,10 @@ var EvaluateRemotionSection = () => {
27755
27854
  }
27756
27855
  setDailyAvatars(selectedAvatars);
27757
27856
  }, []);
27758
- return /* @__PURE__ */ jsxs40("div", {
27857
+ return /* @__PURE__ */ jsxs41("div", {
27759
27858
  className: "flex flex-col lg:flex-row gap-2",
27760
27859
  children: [
27761
- /* @__PURE__ */ jsxs40("div", {
27860
+ /* @__PURE__ */ jsxs41("div", {
27762
27861
  className: "card flex-1 flex flex-col",
27763
27862
  children: [
27764
27863
  /* @__PURE__ */ jsx109("div", {
@@ -27784,7 +27883,7 @@ var EvaluateRemotionSection = () => {
27784
27883
  })
27785
27884
  ]
27786
27885
  }),
27787
- /* @__PURE__ */ jsxs40("div", {
27886
+ /* @__PURE__ */ jsxs41("div", {
27788
27887
  className: "card flex-1 flex flex-col",
27789
27888
  children: [
27790
27889
  /* @__PURE__ */ jsx109("div", {
@@ -27798,7 +27897,7 @@ var EvaluateRemotionSection = () => {
27798
27897
  /* @__PURE__ */ jsx109("div", {
27799
27898
  className: "flex-1"
27800
27899
  }),
27801
- /* @__PURE__ */ jsxs40("div", {
27900
+ /* @__PURE__ */ jsxs41("div", {
27802
27901
  className: "flex flex-row justify-between",
27803
27902
  children: [
27804
27903
  /* @__PURE__ */ jsx109("a", {
@@ -27828,7 +27927,7 @@ var EvaluateRemotion_default = EvaluateRemotionSection;
27828
27927
 
27829
27928
  // src/components/homepage/IfYouKnowReact.tsx
27830
27929
  import { useEffect as useEffect59, useState as useState50 } from "react";
27831
- import { jsx as jsx110, jsxs as jsxs41 } from "react/jsx-runtime";
27930
+ import { jsx as jsx110, jsxs as jsxs43 } from "react/jsx-runtime";
27832
27931
  var isWebkit = () => {
27833
27932
  if (typeof window === "undefined") {
27834
27933
  return false;
@@ -27848,7 +27947,7 @@ var IfYouKnowReact = () => {
27848
27947
  setVid("/img/compose.mp4");
27849
27948
  }
27850
27949
  }, []);
27851
- return /* @__PURE__ */ jsxs41("div", {
27950
+ return /* @__PURE__ */ jsxs43("div", {
27852
27951
  className: "flex flex-col lg:flex-row text-left justify-start lg:justify-end items-start lg:mb-0 gap-6 mt-8",
27853
27952
  children: [
27854
27953
  /* @__PURE__ */ jsx110("video", {
@@ -27859,9 +27958,9 @@ var IfYouKnowReact = () => {
27859
27958
  loop: true,
27860
27959
  className: "w-[500px] cursor-default! relative lg:-translate-x-8 -mb-40 lg:mt-0 lg:mb-0"
27861
27960
  }),
27862
- /* @__PURE__ */ jsxs41("div", {
27961
+ /* @__PURE__ */ jsxs43("div", {
27863
27962
  children: [
27864
- /* @__PURE__ */ jsxs41("h2", {
27963
+ /* @__PURE__ */ jsxs43("h2", {
27865
27964
  className: "text-4xl fontbrand pt-20",
27866
27965
  children: [
27867
27966
  /* @__PURE__ */ jsx110("span", {
@@ -27878,7 +27977,7 @@ var IfYouKnowReact = () => {
27878
27977
  /* @__PURE__ */ jsx110("div", {
27879
27978
  className: "h-4"
27880
27979
  }),
27881
- /* @__PURE__ */ jsxs41("a", {
27980
+ /* @__PURE__ */ jsxs43("a", {
27882
27981
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
27883
27982
  href: "/docs/the-fundamentals",
27884
27983
  children: [
@@ -27903,7 +28002,7 @@ var IfYouKnowReact = () => {
27903
28002
 
27904
28003
  // src/components/homepage/NewsletterButton.tsx
27905
28004
  import { useCallback as useCallback46, useState as useState51 } from "react";
27906
- import { jsx as jsx111, jsxs as jsxs43 } from "react/jsx-runtime";
28005
+ import { jsx as jsx111, jsxs as jsxs45 } from "react/jsx-runtime";
27907
28006
  var NewsletterButton = () => {
27908
28007
  const [email, setEmail] = useState51("");
27909
28008
  const [submitting, setSubmitting] = useState51(false);
@@ -27935,32 +28034,32 @@ var NewsletterButton = () => {
27935
28034
  className: "flex flex-col",
27936
28035
  children: /* @__PURE__ */ jsx111("div", {
27937
28036
  className: "w-full",
27938
- children: /* @__PURE__ */ jsxs43("div", {
28037
+ children: /* @__PURE__ */ jsxs45("div", {
27939
28038
  className: "flex flex-col flex-1",
27940
28039
  children: [
27941
28040
  /* @__PURE__ */ jsx111(SectionTitle, {
27942
28041
  children: "Newsletter"
27943
28042
  }),
27944
- /* @__PURE__ */ jsxs43("form", {
28043
+ /* @__PURE__ */ jsxs45("form", {
27945
28044
  onSubmit: handleSubmit,
27946
28045
  style: {
27947
28046
  width: "100%"
27948
28047
  },
27949
28048
  children: [
27950
- /* @__PURE__ */ jsxs43("div", {
28049
+ /* @__PURE__ */ jsxs45("div", {
27951
28050
  className: "fontbrand text-center mb-10 -mt-4",
27952
28051
  children: [
27953
28052
  "Read about new features and noteworthy updates we have made on Remotion once in a while.",
27954
28053
  " "
27955
28054
  ]
27956
28055
  }),
27957
- /* @__PURE__ */ jsxs43("div", {
28056
+ /* @__PURE__ */ jsxs45("div", {
27958
28057
  className: "flex flex-col md:flex-row gap-2 justify-center",
27959
28058
  children: [
27960
- /* @__PURE__ */ jsx111("input", {
27961
- className: "w-full dark:bg-[#121212] md:max-w-[400px] rounded-lg border-effect border-black outline-none h-14 px-3 fontbrand text-lg box-border",
28059
+ /* @__PURE__ */ jsx111(Input, {
27962
28060
  disabled: submitting,
27963
28061
  value: email,
28062
+ className: "md:max-w-[400px]",
27964
28063
  onChange: (e) => setEmail(e.target.value),
27965
28064
  type: "email",
27966
28065
  required: true,
@@ -27990,21 +28089,21 @@ var NewsletterButton = () => {
27990
28089
  };
27991
28090
 
27992
28091
  // src/components/homepage/ParameterizeAndEdit.tsx
27993
- import { useEffect as useEffect60, useRef as useRef43, useState as useState53 } from "react";
27994
- import { jsx as jsx114, jsxs as jsxs45 } from "react/jsx-runtime";
28092
+ import { useEffect as useEffect60, useRef as useRef46, useState as useState53 } from "react";
28093
+ import { jsx as jsx114, jsxs as jsxs46 } from "react/jsx-runtime";
27995
28094
  var icon3 = {
27996
28095
  height: 16,
27997
28096
  marginLeft: 10
27998
28097
  };
27999
28098
  var ParameterizeAndEdit = () => {
28000
- const ref = useRef43(null);
28099
+ const ref = useRef46(null);
28001
28100
  const [vid, setVid] = useState53("/img/editing-vp9-chrome.webm");
28002
28101
  useEffect60(() => {
28003
28102
  if (isWebkit()) {
28004
28103
  setVid("/img/editing-safari.mp4");
28005
28104
  }
28006
28105
  }, []);
28007
- return /* @__PURE__ */ jsxs45("div", {
28106
+ return /* @__PURE__ */ jsxs46("div", {
28008
28107
  ref,
28009
28108
  className: "flex flex-col lg:flex-row justify-start lg:justify-end items-start gap-6 mt-20 lg:mt-0",
28010
28109
  children: [
@@ -28023,11 +28122,11 @@ var ParameterizeAndEdit = () => {
28023
28122
  }
28024
28123
  })
28025
28124
  }),
28026
- /* @__PURE__ */ jsxs45("div", {
28125
+ /* @__PURE__ */ jsxs46("div", {
28027
28126
  style: { flex: 1 },
28028
28127
  className: "font-brand pt-4",
28029
28128
  children: [
28030
- /* @__PURE__ */ jsxs45("h2", {
28129
+ /* @__PURE__ */ jsxs46("h2", {
28031
28130
  className: "fontbrand text-4xl",
28032
28131
  children: [
28033
28132
  "Edit ",
@@ -28037,7 +28136,7 @@ var ParameterizeAndEdit = () => {
28037
28136
  })
28038
28137
  ]
28039
28138
  }),
28040
- /* @__PURE__ */ jsxs45("p", {
28139
+ /* @__PURE__ */ jsxs46("p", {
28041
28140
  className: "leading-relaxed",
28042
28141
  children: [
28043
28142
  "Parameterize your video by passing data.",
@@ -28048,10 +28147,10 @@ var ParameterizeAndEdit = () => {
28048
28147
  /* @__PURE__ */ jsx114("div", {
28049
28148
  className: "h-4"
28050
28149
  }),
28051
- /* @__PURE__ */ jsxs45("div", {
28150
+ /* @__PURE__ */ jsxs46("div", {
28052
28151
  className: "leading-6",
28053
28152
  children: [
28054
- /* @__PURE__ */ jsxs45("a", {
28153
+ /* @__PURE__ */ jsxs46("a", {
28055
28154
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28056
28155
  href: "/docs/studio",
28057
28156
  children: [
@@ -28069,7 +28168,7 @@ var ParameterizeAndEdit = () => {
28069
28168
  ]
28070
28169
  }),
28071
28170
  /* @__PURE__ */ jsx114("br", {}),
28072
- /* @__PURE__ */ jsxs45("a", {
28171
+ /* @__PURE__ */ jsxs46("a", {
28073
28172
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28074
28173
  href: "/player",
28075
28174
  children: [
@@ -28087,7 +28186,7 @@ var ParameterizeAndEdit = () => {
28087
28186
  ]
28088
28187
  }),
28089
28188
  /* @__PURE__ */ jsx114("br", {}),
28090
- /* @__PURE__ */ jsxs45("a", {
28189
+ /* @__PURE__ */ jsxs46("a", {
28091
28190
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28092
28191
  href: "/docs/editor-starter",
28093
28192
  children: [
@@ -28113,15 +28212,15 @@ var ParameterizeAndEdit = () => {
28113
28212
  };
28114
28213
 
28115
28214
  // src/components/homepage/RealMp4Videos.tsx
28116
- import { useEffect as useEffect61, useRef as useRef45, useState as useState55 } from "react";
28117
- import { jsx as jsx116, jsxs as jsxs46 } from "react/jsx-runtime";
28215
+ import { useEffect as useEffect61, useRef as useRef47, useState as useState55 } from "react";
28216
+ import { jsx as jsx116, jsxs as jsxs47 } from "react/jsx-runtime";
28118
28217
  var icon4 = {
28119
28218
  height: 16,
28120
28219
  marginLeft: 10
28121
28220
  };
28122
28221
  var RealMP4Videos = () => {
28123
- const ref = useRef45(null);
28124
- const videoRef = useRef45(null);
28222
+ const ref = useRef47(null);
28223
+ const videoRef = useRef47(null);
28125
28224
  const [vid, setVid] = useState55("/img/render-progress.webm");
28126
28225
  useEffect61(() => {
28127
28226
  if (isWebkit()) {
@@ -28145,7 +28244,7 @@ var RealMP4Videos = () => {
28145
28244
  observer.observe(current);
28146
28245
  return () => observer.unobserve(current);
28147
28246
  }, []);
28148
- return /* @__PURE__ */ jsxs46("div", {
28247
+ return /* @__PURE__ */ jsxs47("div", {
28149
28248
  ref,
28150
28249
  className: "flex flex-col lg:flex-row mt-40 lg:mt-30 gap-6",
28151
28250
  children: [
@@ -28168,10 +28267,10 @@ var RealMP4Videos = () => {
28168
28267
  })
28169
28268
  }),
28170
28269
  " ",
28171
- /* @__PURE__ */ jsxs46("div", {
28270
+ /* @__PURE__ */ jsxs47("div", {
28172
28271
  className: "font-brand",
28173
28272
  children: [
28174
- /* @__PURE__ */ jsxs46("h2", {
28273
+ /* @__PURE__ */ jsxs47("h2", {
28175
28274
  className: "text-4xl fontbrand",
28176
28275
  children: [
28177
28276
  /* @__PURE__ */ jsx116("span", {
@@ -28181,7 +28280,7 @@ var RealMP4Videos = () => {
28181
28280
  " rendering"
28182
28281
  ]
28183
28282
  }),
28184
- /* @__PURE__ */ jsxs46("p", {
28283
+ /* @__PURE__ */ jsxs47("p", {
28185
28284
  className: "leading-relaxed",
28186
28285
  children: [
28187
28286
  "Render the video .mp4 or other formats. ",
@@ -28193,10 +28292,10 @@ var RealMP4Videos = () => {
28193
28292
  /* @__PURE__ */ jsx116("div", {
28194
28293
  className: "h-4"
28195
28294
  }),
28196
- /* @__PURE__ */ jsxs46("div", {
28295
+ /* @__PURE__ */ jsxs47("div", {
28197
28296
  className: "leading-6",
28198
28297
  children: [
28199
- /* @__PURE__ */ jsxs46("a", {
28298
+ /* @__PURE__ */ jsxs47("a", {
28200
28299
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28201
28300
  href: "/docs/render",
28202
28301
  children: [
@@ -28214,7 +28313,7 @@ var RealMP4Videos = () => {
28214
28313
  ]
28215
28314
  }),
28216
28315
  /* @__PURE__ */ jsx116("br", {}),
28217
- /* @__PURE__ */ jsxs46("a", {
28316
+ /* @__PURE__ */ jsxs47("a", {
28218
28317
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28219
28318
  href: "/lambda",
28220
28319
  children: [
@@ -28240,7 +28339,7 @@ var RealMP4Videos = () => {
28240
28339
  };
28241
28340
 
28242
28341
  // src/components/homepage/TrustedByBanner.tsx
28243
- import { jsx as jsx117, jsxs as jsxs47, Fragment as Fragment10 } from "react/jsx-runtime";
28342
+ import { jsx as jsx117, jsxs as jsxs48, Fragment as Fragment10 } from "react/jsx-runtime";
28244
28343
  var TrustedByBanner = () => {
28245
28344
  const logos = [
28246
28345
  {
@@ -28260,7 +28359,7 @@ var TrustedByBanner = () => {
28260
28359
  {
28261
28360
  id: "logo2",
28262
28361
  url: "https://www.musixmatch.com/",
28263
- light: /* @__PURE__ */ jsxs47("svg", {
28362
+ light: /* @__PURE__ */ jsxs48("svg", {
28264
28363
  height: "40",
28265
28364
  viewBox: "0 0 229 48",
28266
28365
  fill: "none",
@@ -28320,7 +28419,7 @@ var TrustedByBanner = () => {
28320
28419
  {
28321
28420
  id: "logo3",
28322
28421
  url: "https://www.wistia.com/",
28323
- light: /* @__PURE__ */ jsxs47("svg", {
28422
+ light: /* @__PURE__ */ jsxs48("svg", {
28324
28423
  height: "30",
28325
28424
  viewBox: "0 0 165 36",
28326
28425
  fill: "none",
@@ -28353,7 +28452,7 @@ var TrustedByBanner = () => {
28353
28452
  })
28354
28453
  }
28355
28454
  ];
28356
- return /* @__PURE__ */ jsxs47(Fragment10, {
28455
+ return /* @__PURE__ */ jsxs48(Fragment10, {
28357
28456
  children: [
28358
28457
  /* @__PURE__ */ jsx117("h3", {
28359
28458
  className: "text-center mt-20 mb-10",
@@ -28374,8 +28473,8 @@ var TrustedByBanner = () => {
28374
28473
  var TrustedByBanner_default = TrustedByBanner;
28375
28474
 
28376
28475
  // src/components/homepage/VideoAppsShowcase.tsx
28377
- import { useEffect as useEffect63, useRef as useRef46, useState as useState56 } from "react";
28378
- import { jsx as jsx118, jsxs as jsxs48 } from "react/jsx-runtime";
28476
+ import { useEffect as useEffect63, useRef as useRef48, useState as useState56 } from "react";
28477
+ import { jsx as jsx118, jsxs as jsxs49 } from "react/jsx-runtime";
28379
28478
  var tabs = [
28380
28479
  "Music visualization",
28381
28480
  "Captions",
@@ -28430,8 +28529,8 @@ var VideoAppsShowcase = () => {
28430
28529
  const [activeTab, setActiveTab] = useState56(0);
28431
28530
  const [isMuted, setIsMuted] = useState56(true);
28432
28531
  const [isPlaying, setIsPlaying] = useState56(false);
28433
- const videoRef = useRef46(null);
28434
- const containerRef = useRef46(null);
28532
+ const videoRef = useRef48(null);
28533
+ const containerRef = useRef48(null);
28435
28534
  useEffect63(() => {
28436
28535
  const video = videoRef.current;
28437
28536
  if (video) {
@@ -28466,7 +28565,7 @@ var VideoAppsShowcase = () => {
28466
28565
  setIsMuted(newMutedState);
28467
28566
  }
28468
28567
  };
28469
- return /* @__PURE__ */ jsxs48("div", {
28568
+ return /* @__PURE__ */ jsxs49("div", {
28470
28569
  ref: containerRef,
28471
28570
  children: [
28472
28571
  /* @__PURE__ */ jsx118(SectionTitle, {
@@ -28484,10 +28583,10 @@ var VideoAppsShowcase = () => {
28484
28583
  }),
28485
28584
  /* @__PURE__ */ jsx118("div", {
28486
28585
  className: "card flex p-0 overflow-hidden",
28487
- children: /* @__PURE__ */ jsxs48("div", {
28586
+ children: /* @__PURE__ */ jsxs49("div", {
28488
28587
  className: "flex-1 flex flex-col lg:flex-row justify-center",
28489
28588
  children: [
28490
- /* @__PURE__ */ jsxs48("div", {
28589
+ /* @__PURE__ */ jsxs49("div", {
28491
28590
  className: "w-full max-w-[500px] aspect-square relative overflow-hidden bg-[#eee] cursor-pointer",
28492
28591
  onClick: handlePlayPause,
28493
28592
  children: [
@@ -28545,7 +28644,7 @@ var VideoAppsShowcase = () => {
28545
28644
  })
28546
28645
  ]
28547
28646
  }),
28548
- /* @__PURE__ */ jsxs48("div", {
28647
+ /* @__PURE__ */ jsxs49("div", {
28549
28648
  className: "p-6 flex-1 flex flex-col h-full",
28550
28649
  children: [
28551
28650
  /* @__PURE__ */ jsx118("div", {
@@ -28563,7 +28662,7 @@ var VideoAppsShowcase = () => {
28563
28662
  /* @__PURE__ */ jsx118("div", {
28564
28663
  className: "h-5"
28565
28664
  }),
28566
- /* @__PURE__ */ jsxs48("a", {
28665
+ /* @__PURE__ */ jsxs49("a", {
28567
28666
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28568
28667
  href: videoApps[activeTab].link,
28569
28668
  children: [
@@ -28590,7 +28689,7 @@ var VideoAppsShowcase = () => {
28590
28689
  justifyContent: "center",
28591
28690
  display: "flex"
28592
28691
  },
28593
- children: /* @__PURE__ */ jsxs48("div", {
28692
+ children: /* @__PURE__ */ jsxs49("div", {
28594
28693
  style: {
28595
28694
  fontFamily: "GTPlanar"
28596
28695
  },
@@ -29184,9 +29283,9 @@ var Blank = (props) => {
29184
29283
  };
29185
29284
 
29186
29285
  // src/components/icons/code-hike.tsx
29187
- import { jsx as jsx120, jsxs as jsxs49 } from "react/jsx-runtime";
29286
+ import { jsx as jsx120, jsxs as jsxs50 } from "react/jsx-runtime";
29188
29287
  var CodeHike = (props) => {
29189
- return /* @__PURE__ */ jsxs49("svg", {
29288
+ return /* @__PURE__ */ jsxs50("svg", {
29190
29289
  ...props,
29191
29290
  viewBox: "-100 -100 200 200",
29192
29291
  fill: "currentColor",
@@ -29256,9 +29355,9 @@ var MusicIcon = (props) => {
29256
29355
  };
29257
29356
 
29258
29357
  // src/components/icons/next.tsx
29259
- import { jsx as jsx127, jsxs as jsxs50 } from "react/jsx-runtime";
29358
+ import { jsx as jsx127, jsxs as jsxs51 } from "react/jsx-runtime";
29260
29359
  var NextIcon = ({ style: style4 }) => {
29261
- return /* @__PURE__ */ jsxs50("svg", {
29360
+ return /* @__PURE__ */ jsxs51("svg", {
29262
29361
  fill: "none",
29263
29362
  viewBox: "0 0 180 180",
29264
29363
  style: style4,
@@ -29279,7 +29378,7 @@ var NextIcon = ({ style: style4 }) => {
29279
29378
  r: "90"
29280
29379
  })
29281
29380
  }),
29282
- /* @__PURE__ */ jsxs50("g", {
29381
+ /* @__PURE__ */ jsxs51("g", {
29283
29382
  mask: "url(#mask0_292_250)",
29284
29383
  children: [
29285
29384
  /* @__PURE__ */ jsx127("circle", {
@@ -29301,9 +29400,9 @@ var NextIcon = ({ style: style4 }) => {
29301
29400
  })
29302
29401
  ]
29303
29402
  }),
29304
- /* @__PURE__ */ jsxs50("defs", {
29403
+ /* @__PURE__ */ jsxs51("defs", {
29305
29404
  children: [
29306
- /* @__PURE__ */ jsxs50("linearGradient", {
29405
+ /* @__PURE__ */ jsxs51("linearGradient", {
29307
29406
  gradientUnits: "userSpaceOnUse",
29308
29407
  id: "paint0_linear_292_250",
29309
29408
  x1: "109",
@@ -29321,7 +29420,7 @@ var NextIcon = ({ style: style4 }) => {
29321
29420
  })
29322
29421
  ]
29323
29422
  }),
29324
- /* @__PURE__ */ jsxs50("linearGradient", {
29423
+ /* @__PURE__ */ jsxs51("linearGradient", {
29325
29424
  gradientUnits: "userSpaceOnUse",
29326
29425
  id: "paint1_linear_292_250",
29327
29426
  x1: "121",
@@ -29346,9 +29445,9 @@ var NextIcon = ({ style: style4 }) => {
29346
29445
  };
29347
29446
 
29348
29447
  // src/components/icons/overlay.tsx
29349
- import { jsx as jsx128, jsxs as jsxs51 } from "react/jsx-runtime";
29448
+ import { jsx as jsx128, jsxs as jsxs53 } from "react/jsx-runtime";
29350
29449
  var OverlayIcon = (props) => {
29351
- return /* @__PURE__ */ jsxs51("svg", {
29450
+ return /* @__PURE__ */ jsxs53("svg", {
29352
29451
  viewBox: "0 0 576 512",
29353
29452
  fill: "none",
29354
29453
  xmlns: "http://www.w3.org/2000/svg",
@@ -29383,9 +29482,9 @@ var PromptToVideoIcon = (props) => {
29383
29482
  };
29384
29483
 
29385
29484
  // src/components/icons/recorder.tsx
29386
- import { jsx as jsx130, jsxs as jsxs53 } from "react/jsx-runtime";
29485
+ import { jsx as jsx130, jsxs as jsxs55 } from "react/jsx-runtime";
29387
29486
  var Recorder = (props) => {
29388
- return /* @__PURE__ */ jsxs53("svg", {
29487
+ return /* @__PURE__ */ jsxs55("svg", {
29389
29488
  viewBox: "0 0 700 700",
29390
29489
  ...props,
29391
29490
  children: [
@@ -29408,7 +29507,7 @@ var Recorder = (props) => {
29408
29507
  };
29409
29508
 
29410
29509
  // src/components/icons/remix.tsx
29411
- import { jsx as jsx131, jsxs as jsxs55 } from "react/jsx-runtime";
29510
+ import { jsx as jsx131, jsxs as jsxs56 } from "react/jsx-runtime";
29412
29511
  var ReactRouterIcon = (props) => {
29413
29512
  return /* @__PURE__ */ jsx131("svg", {
29414
29513
  xmlns: "http://www.w3.org/2000/svg",
@@ -29418,7 +29517,7 @@ var ReactRouterIcon = (props) => {
29418
29517
  version: "1.1",
29419
29518
  preserveAspectRatio: "xMidYMid",
29420
29519
  ...props,
29421
- children: /* @__PURE__ */ jsxs55("g", {
29520
+ children: /* @__PURE__ */ jsxs56("g", {
29422
29521
  children: [
29423
29522
  /* @__PURE__ */ jsx131("path", {
29424
29523
  d: "M78.0659341,92.5875806 C90.8837956,92.5875806 101.274726,82.1966508 101.274726,69.3787894 C101.274726,56.5609279 90.8837956,46.1699982 78.0659341,46.1699982 C65.2480726,46.1699982 54.8571429,56.5609279 54.8571429,69.3787894 C54.8571429,82.1966508 65.2480726,92.5875806 78.0659341,92.5875806 Z M23.2087913,139.005163 C36.0266526,139.005163 46.4175825,128.614233 46.4175825,115.796372 C46.4175825,102.97851 36.0266526,92.5875806 23.2087913,92.5875806 C10.3909298,92.5875806 0,102.97851 0,115.796372 C0,128.614233 10.3909298,139.005163 23.2087913,139.005163 Z M232.791209,139.005163 C245.60907,139.005163 256,128.614233 256,115.796372 C256,102.97851 245.60907,92.5875806 232.791209,92.5875806 C219.973347,92.5875806 209.582418,102.97851 209.582418,115.796372 C209.582418,128.614233 219.973347,139.005163 232.791209,139.005163 Z",
@@ -29434,9 +29533,9 @@ var ReactRouterIcon = (props) => {
29434
29533
  };
29435
29534
 
29436
29535
  // src/components/icons/render-server.tsx
29437
- import { jsx as jsx134, jsxs as jsxs56 } from "react/jsx-runtime";
29536
+ import { jsx as jsx134, jsxs as jsxs57 } from "react/jsx-runtime";
29438
29537
  var RenderServerIcon = (props) => {
29439
- return /* @__PURE__ */ jsxs56("svg", {
29538
+ return /* @__PURE__ */ jsxs57("svg", {
29440
29539
  ...props,
29441
29540
  xmlns: "http://www.w3.org/2000/svg",
29442
29541
  viewBox: "0 0 24 24",
@@ -29689,7 +29788,7 @@ var useMobileLayout = () => {
29689
29788
  };
29690
29789
 
29691
29790
  // src/components/homepage/MoreTemplatesButton.tsx
29692
- import { jsx as jsx147, jsxs as jsxs57 } from "react/jsx-runtime";
29791
+ import { jsx as jsx147, jsxs as jsxs58 } from "react/jsx-runtime";
29693
29792
  var icon6 = {
29694
29793
  height: 16,
29695
29794
  marginLeft: 10
@@ -29699,7 +29798,7 @@ var MoreTemplatesButton = () => {
29699
29798
  return /* @__PURE__ */ jsx147("a", {
29700
29799
  href: "/templates",
29701
29800
  className: "no-underline text-inherit",
29702
- children: /* @__PURE__ */ jsxs57(Button, {
29801
+ children: /* @__PURE__ */ jsxs58(Button, {
29703
29802
  className: "right-0 border-2 rounded-full text-inherit px-4 py-2 fontbrand font-semibold text-sm flex flex-row items-center h-10",
29704
29803
  children: [
29705
29804
  mobileLayout ? "Templates" : "Find a template",
@@ -29718,7 +29817,7 @@ var MoreTemplatesButton = () => {
29718
29817
  };
29719
29818
 
29720
29819
  // src/components/homepage/TemplateIcon.tsx
29721
- import { jsx as jsx148, jsxs as jsxs58 } from "react/jsx-runtime";
29820
+ import { jsx as jsx148, jsxs as jsxs59 } from "react/jsx-runtime";
29722
29821
  var icon7 = {
29723
29822
  display: "flex",
29724
29823
  width: 36,
@@ -29739,7 +29838,7 @@ var outer = {
29739
29838
  };
29740
29839
  var TemplateIcon = ({ children, label: label3 }) => {
29741
29840
  const mobileLayout = useMobileLayout();
29742
- return /* @__PURE__ */ jsxs58("span", {
29841
+ return /* @__PURE__ */ jsxs59("span", {
29743
29842
  style: outer,
29744
29843
  children: [
29745
29844
  /* @__PURE__ */ jsx148("div", {
@@ -29755,7 +29854,7 @@ var TemplateIcon = ({ children, label: label3 }) => {
29755
29854
  };
29756
29855
 
29757
29856
  // src/components/homepage/ChooseTemplate.tsx
29758
- import { jsx as jsx149, jsxs as jsxs59 } from "react/jsx-runtime";
29857
+ import { jsx as jsx149, jsxs as jsxs60 } from "react/jsx-runtime";
29759
29858
  var ChooseTemplate = () => {
29760
29859
  return /* @__PURE__ */ jsx149("div", {
29761
29860
  style: {
@@ -29767,7 +29866,7 @@ var ChooseTemplate = () => {
29767
29866
  position: "relative",
29768
29867
  textAlign: "center"
29769
29868
  },
29770
- children: /* @__PURE__ */ jsxs59("div", {
29869
+ children: /* @__PURE__ */ jsxs60("div", {
29771
29870
  className: "no-scroll-bar",
29772
29871
  style: {
29773
29872
  display: "inline-flex",
@@ -29804,7 +29903,7 @@ var ChooseTemplate = () => {
29804
29903
  import { useState as useState57 } from "react";
29805
29904
 
29806
29905
  // src/components/homepage/GitHubButton.tsx
29807
- import { jsx as jsx150, jsxs as jsxs60 } from "react/jsx-runtime";
29906
+ import { jsx as jsx150, jsxs as jsxs61 } from "react/jsx-runtime";
29808
29907
  var GithubIcon = () => {
29809
29908
  return /* @__PURE__ */ jsx150("svg", {
29810
29909
  viewBox: "0 0 496 512",
@@ -29816,7 +29915,7 @@ var GithubIcon = () => {
29816
29915
  });
29817
29916
  };
29818
29917
  var GithubButton = () => {
29819
- return /* @__PURE__ */ jsxs60("div", {
29918
+ return /* @__PURE__ */ jsxs61("div", {
29820
29919
  className: "flex flex-row items-center text-base",
29821
29920
  children: [
29822
29921
  /* @__PURE__ */ jsx150(GithubIcon, {}),
@@ -29834,15 +29933,15 @@ var GithubButton = () => {
29834
29933
  };
29835
29934
 
29836
29935
  // src/components/homepage/GetStartedStrip.tsx
29837
- import { jsx as jsx151, jsxs as jsxs61 } from "react/jsx-runtime";
29936
+ import { jsx as jsx151, jsxs as jsxs63 } from "react/jsx-runtime";
29838
29937
  var GetStarted = () => {
29839
29938
  const [clicked, setClicked] = useState57(null);
29840
- return /* @__PURE__ */ jsxs61("div", {
29939
+ return /* @__PURE__ */ jsxs63("div", {
29841
29940
  className: "flex flex-col lg:flex-row items-center justify-center text-center w-full",
29842
29941
  children: [
29843
29942
  /* @__PURE__ */ jsx151("div", {
29844
29943
  className: "w-full lg:w-auto",
29845
- children: /* @__PURE__ */ jsxs61("div", {
29944
+ children: /* @__PURE__ */ jsxs63("div", {
29846
29945
  className: "flex flex-row w-full relative",
29847
29946
  children: [
29848
29947
  clicked ? /* @__PURE__ */ jsx151("div", {
@@ -29920,9 +30019,9 @@ var GetStarted = () => {
29920
30019
  };
29921
30020
 
29922
30021
  // src/components/homepage/WriteInReact.tsx
29923
- import { jsx as jsx154, jsxs as jsxs62 } from "react/jsx-runtime";
30022
+ import { jsx as jsx154, jsxs as jsxs65 } from "react/jsx-runtime";
29924
30023
  var WriteInReact = () => {
29925
- return /* @__PURE__ */ jsxs62("div", {
30024
+ return /* @__PURE__ */ jsxs65("div", {
29926
30025
  children: [
29927
30026
  /* @__PURE__ */ jsx154("h1", {
29928
30027
  className: "text-5xl lg:text-[5em] text-center fontbrand font-black leading-none ",
@@ -29931,7 +30030,7 @@ var WriteInReact = () => {
29931
30030
  },
29932
30031
  children: "Make videos programmatically."
29933
30032
  }),
29934
- /* @__PURE__ */ jsxs62("p", {
30033
+ /* @__PURE__ */ jsxs65("p", {
29935
30034
  style: {
29936
30035
  textShadow: "0 5px 30px var(--background)"
29937
30036
  },
@@ -29954,7 +30053,7 @@ var WriteInReact = () => {
29954
30053
  };
29955
30054
 
29956
30055
  // src/components/Homepage.tsx
29957
- import { jsx as jsx156, jsxs as jsxs63 } from "react/jsx-runtime";
30056
+ import { jsx as jsx156, jsxs as jsxs66 } from "react/jsx-runtime";
29958
30057
  "use client";
29959
30058
  var NewLanding = ({ colorMode, setColorMode }) => {
29960
30059
  return /* @__PURE__ */ jsx156(ColorModeProvider, {
@@ -29962,7 +30061,7 @@ var NewLanding = ({ colorMode, setColorMode }) => {
29962
30061
  setColorMode,
29963
30062
  children: /* @__PURE__ */ jsx156("div", {
29964
30063
  className: "w-full relative",
29965
- children: /* @__PURE__ */ jsxs63("div", {
30064
+ children: /* @__PURE__ */ jsxs66("div", {
29966
30065
  style: { overflow: "hidden" },
29967
30066
  children: [
29968
30067
  /* @__PURE__ */ jsx156("div", {
@@ -29972,7 +30071,7 @@ var NewLanding = ({ colorMode, setColorMode }) => {
29972
30071
  /* @__PURE__ */ jsx156("br", {}),
29973
30072
  /* @__PURE__ */ jsx156("br", {}),
29974
30073
  /* @__PURE__ */ jsx156("br", {}),
29975
- /* @__PURE__ */ jsxs63("div", {
30074
+ /* @__PURE__ */ jsxs66("div", {
29976
30075
  className: "max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5 overflow-x-clip md:overflow-x-visible relative",
29977
30076
  children: [
29978
30077
  /* @__PURE__ */ jsx156(WriteInReact, {}),