@remotion/promo-pages 4.0.482 → 4.0.483
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 +279 -64
- package/dist/design.js +180 -46
- package/dist/experts.js +180 -46
- package/dist/homepage/Pricing.js +180 -46
- package/dist/prompts/PromptsGallery.js +180 -46
- package/dist/prompts/PromptsShow.js +180 -46
- package/dist/prompts/PromptsSubmit.js +180 -46
- package/dist/team.js +180 -46
- package/dist/template-modal-content.js +180 -46
- package/dist/templates.js +180 -46
- package/package.json +13 -13
package/dist/Homepage.js
CHANGED
|
@@ -2335,7 +2335,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
|
|
|
2335
2335
|
var addSequenceStackTraces = (component) => {
|
|
2336
2336
|
componentsToAddStacksTo.push(component);
|
|
2337
2337
|
};
|
|
2338
|
-
var VERSION = "4.0.
|
|
2338
|
+
var VERSION = "4.0.483";
|
|
2339
2339
|
var checkMultipleRemotionVersions = () => {
|
|
2340
2340
|
if (typeof globalThis === "undefined") {
|
|
2341
2341
|
return;
|
|
@@ -3551,6 +3551,35 @@ function findRange(input, inputRange) {
|
|
|
3551
3551
|
return i - 1;
|
|
3552
3552
|
}
|
|
3553
3553
|
var defaultEasing = (num) => num;
|
|
3554
|
+
var shouldExtendRightForEasing = (easing) => {
|
|
3555
|
+
return easing.remotionShouldExtendRight === true;
|
|
3556
|
+
};
|
|
3557
|
+
var resolveEasingForSegment = ({
|
|
3558
|
+
easing,
|
|
3559
|
+
segmentIndex
|
|
3560
|
+
}) => {
|
|
3561
|
+
if (easing === undefined) {
|
|
3562
|
+
return defaultEasing;
|
|
3563
|
+
}
|
|
3564
|
+
if (typeof easing === "function") {
|
|
3565
|
+
return easing;
|
|
3566
|
+
}
|
|
3567
|
+
return easing[segmentIndex];
|
|
3568
|
+
};
|
|
3569
|
+
var interpolateSegment = ({
|
|
3570
|
+
input,
|
|
3571
|
+
inputRange,
|
|
3572
|
+
outputRange,
|
|
3573
|
+
easing,
|
|
3574
|
+
extrapolateLeft,
|
|
3575
|
+
extrapolateRight
|
|
3576
|
+
}) => {
|
|
3577
|
+
return interpolateFunction(input, inputRange, outputRange, {
|
|
3578
|
+
easing,
|
|
3579
|
+
extrapolateLeft,
|
|
3580
|
+
extrapolateRight: input > inputRange[1] && extrapolateRight === "clamp" && shouldExtendRightForEasing(easing) ? "extend" : extrapolateRight
|
|
3581
|
+
});
|
|
3582
|
+
};
|
|
3554
3583
|
var interpolateNumber = ({
|
|
3555
3584
|
input,
|
|
3556
3585
|
inputRange,
|
|
@@ -3561,15 +3590,6 @@ var interpolateNumber = ({
|
|
|
3561
3590
|
return outputRange[0];
|
|
3562
3591
|
}
|
|
3563
3592
|
const easingOption = options?.easing;
|
|
3564
|
-
const resolveEasingForSegment = (segmentIndex) => {
|
|
3565
|
-
if (easingOption === undefined) {
|
|
3566
|
-
return defaultEasing;
|
|
3567
|
-
}
|
|
3568
|
-
if (typeof easingOption === "function") {
|
|
3569
|
-
return easingOption;
|
|
3570
|
-
}
|
|
3571
|
-
return easingOption[segmentIndex];
|
|
3572
|
-
};
|
|
3573
3593
|
let extrapolateLeft = "extend";
|
|
3574
3594
|
if (options?.extrapolateLeft !== undefined) {
|
|
3575
3595
|
extrapolateLeft = options.extrapolateLeft;
|
|
@@ -3580,11 +3600,41 @@ var interpolateNumber = ({
|
|
|
3580
3600
|
}
|
|
3581
3601
|
const posterizedInput = options?.posterize === undefined ? input : Math.floor(input / options.posterize) * options.posterize;
|
|
3582
3602
|
const range = findRange(posterizedInput, inputRange);
|
|
3583
|
-
|
|
3584
|
-
easing:
|
|
3603
|
+
const easing = resolveEasingForSegment({
|
|
3604
|
+
easing: easingOption,
|
|
3605
|
+
segmentIndex: range
|
|
3606
|
+
});
|
|
3607
|
+
let result = interpolateSegment({
|
|
3608
|
+
input: posterizedInput,
|
|
3609
|
+
inputRange: [inputRange[range], inputRange[range + 1]],
|
|
3610
|
+
outputRange: [outputRange[range], outputRange[range + 1]],
|
|
3611
|
+
easing,
|
|
3585
3612
|
extrapolateLeft,
|
|
3586
3613
|
extrapolateRight
|
|
3587
3614
|
});
|
|
3615
|
+
for (let segmentIndex = 0;segmentIndex < range; segmentIndex++) {
|
|
3616
|
+
const previousEasing = resolveEasingForSegment({
|
|
3617
|
+
easing: easingOption,
|
|
3618
|
+
segmentIndex
|
|
3619
|
+
});
|
|
3620
|
+
if (!shouldExtendRightForEasing(previousEasing)) {
|
|
3621
|
+
continue;
|
|
3622
|
+
}
|
|
3623
|
+
const previousSegmentEnd = inputRange[segmentIndex + 1];
|
|
3624
|
+
if (posterizedInput <= previousSegmentEnd) {
|
|
3625
|
+
continue;
|
|
3626
|
+
}
|
|
3627
|
+
const continuedSegmentValue = interpolateSegment({
|
|
3628
|
+
input: posterizedInput,
|
|
3629
|
+
inputRange: [inputRange[segmentIndex], previousSegmentEnd],
|
|
3630
|
+
outputRange: [outputRange[segmentIndex], outputRange[segmentIndex + 1]],
|
|
3631
|
+
easing: previousEasing,
|
|
3632
|
+
extrapolateLeft,
|
|
3633
|
+
extrapolateRight: "extend"
|
|
3634
|
+
});
|
|
3635
|
+
result += continuedSegmentValue - outputRange[segmentIndex + 1];
|
|
3636
|
+
}
|
|
3637
|
+
return result;
|
|
3588
3638
|
};
|
|
3589
3639
|
var interpolateString = ({
|
|
3590
3640
|
input,
|
|
@@ -4058,21 +4108,40 @@ class Easing {
|
|
|
4058
4108
|
static back(s = 1.70158) {
|
|
4059
4109
|
return (t) => t * t * ((s + 1) * t - s);
|
|
4060
4110
|
}
|
|
4061
|
-
static spring(
|
|
4062
|
-
|
|
4111
|
+
static spring({
|
|
4112
|
+
allowTail = false,
|
|
4113
|
+
durationRestThreshold,
|
|
4114
|
+
...config
|
|
4115
|
+
} = {}) {
|
|
4116
|
+
const easing = (t) => {
|
|
4063
4117
|
if (t <= 0) {
|
|
4064
4118
|
return 0;
|
|
4065
4119
|
}
|
|
4066
|
-
if (t >= 1) {
|
|
4120
|
+
if (!allowTail && t >= 1) {
|
|
4067
4121
|
return 1;
|
|
4068
4122
|
}
|
|
4123
|
+
if (allowTail) {
|
|
4124
|
+
return spring({
|
|
4125
|
+
fps: springEasingDurationInFrames,
|
|
4126
|
+
frame: t * measureSpring({
|
|
4127
|
+
fps: springEasingDurationInFrames,
|
|
4128
|
+
config,
|
|
4129
|
+
threshold: durationRestThreshold
|
|
4130
|
+
}),
|
|
4131
|
+
config
|
|
4132
|
+
});
|
|
4133
|
+
}
|
|
4069
4134
|
return spring({
|
|
4070
4135
|
fps: springEasingDurationInFrames,
|
|
4071
4136
|
frame: t * springEasingDurationInFrames,
|
|
4072
4137
|
config,
|
|
4073
|
-
durationInFrames: springEasingDurationInFrames
|
|
4138
|
+
durationInFrames: springEasingDurationInFrames,
|
|
4139
|
+
durationRestThreshold
|
|
4074
4140
|
});
|
|
4075
4141
|
};
|
|
4142
|
+
return Object.assign(easing, {
|
|
4143
|
+
remotionShouldExtendRight: allowTail
|
|
4144
|
+
});
|
|
4076
4145
|
}
|
|
4077
4146
|
static bounce(t) {
|
|
4078
4147
|
const u = clampUnit(t);
|
|
@@ -4603,25 +4672,31 @@ var interpolateColors = (input, inputRange, outputRange, options) => {
|
|
|
4603
4672
|
const processedOutputRange = outputRange.map((c2) => processColor(c2));
|
|
4604
4673
|
return interpolateColorsRGB(input, inputRange, processedOutputRange, options);
|
|
4605
4674
|
};
|
|
4606
|
-
var easingToFn = (
|
|
4607
|
-
|
|
4675
|
+
var easingToFn = ({
|
|
4676
|
+
easing,
|
|
4677
|
+
forceSpringAllowTail
|
|
4678
|
+
}) => {
|
|
4679
|
+
switch (easing.type) {
|
|
4608
4680
|
case "linear":
|
|
4609
4681
|
return Easing.linear;
|
|
4610
4682
|
case "spring":
|
|
4611
4683
|
return Easing.spring({
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4684
|
+
allowTail: forceSpringAllowTail ?? easing.allowTail ?? undefined,
|
|
4685
|
+
damping: easing.damping,
|
|
4686
|
+
durationRestThreshold: easing.durationRestThreshold ?? undefined,
|
|
4687
|
+
mass: easing.mass,
|
|
4688
|
+
overshootClamping: easing.overshootClamping,
|
|
4689
|
+
stiffness: easing.stiffness
|
|
4616
4690
|
});
|
|
4617
4691
|
case "bezier":
|
|
4618
|
-
return bezier(
|
|
4692
|
+
return bezier(easing.x1, easing.y1, easing.x2, easing.y2);
|
|
4619
4693
|
default:
|
|
4620
|
-
throw new TypeError(`Unsupported easing: ${JSON.stringify(
|
|
4694
|
+
throw new TypeError(`Unsupported easing: ${JSON.stringify(easing)}`);
|
|
4621
4695
|
}
|
|
4622
4696
|
};
|
|
4623
4697
|
var interpolateKeyframedStatus = ({
|
|
4624
4698
|
frame,
|
|
4699
|
+
forceSpringAllowTail,
|
|
4625
4700
|
status
|
|
4626
4701
|
}) => {
|
|
4627
4702
|
const { keyframes, easing, clamping, interpolationFunction } = status;
|
|
@@ -4640,7 +4715,7 @@ var interpolateKeyframedStatus = ({
|
|
|
4640
4715
|
}
|
|
4641
4716
|
try {
|
|
4642
4717
|
return interpolateColors(frame, inputRange, outputs, {
|
|
4643
|
-
easing: easing.map(easingToFn),
|
|
4718
|
+
easing: easing.map((e) => easingToFn({ easing: e, forceSpringAllowTail })),
|
|
4644
4719
|
posterize: status.posterize
|
|
4645
4720
|
});
|
|
4646
4721
|
} catch {
|
|
@@ -4652,7 +4727,7 @@ var interpolateKeyframedStatus = ({
|
|
|
4652
4727
|
}
|
|
4653
4728
|
try {
|
|
4654
4729
|
return interpolate(frame, inputRange, outputs, {
|
|
4655
|
-
easing: easing.map(easingToFn),
|
|
4730
|
+
easing: easing.map((e) => easingToFn({ easing: e, forceSpringAllowTail })),
|
|
4656
4731
|
extrapolateLeft: clamping.left,
|
|
4657
4732
|
extrapolateRight: clamping.right,
|
|
4658
4733
|
posterize: status.posterize
|
|
@@ -4675,6 +4750,7 @@ var resolveDragOverrideValue = ({
|
|
|
4675
4750
|
return { type: "none" };
|
|
4676
4751
|
}
|
|
4677
4752
|
const interpolated = interpolateKeyframedStatus({
|
|
4753
|
+
forceSpringAllowTail: null,
|
|
4678
4754
|
frame,
|
|
4679
4755
|
status: dragOverrideValue.status
|
|
4680
4756
|
});
|
|
@@ -4700,6 +4776,7 @@ var getEffectiveVisualModeValue = ({
|
|
|
4700
4776
|
if (propStatus.status === "keyframed") {
|
|
4701
4777
|
if (frame !== null) {
|
|
4702
4778
|
return interpolateKeyframedStatus({
|
|
4779
|
+
forceSpringAllowTail: null,
|
|
4703
4780
|
frame,
|
|
4704
4781
|
status: propStatus
|
|
4705
4782
|
});
|
|
@@ -4768,6 +4845,7 @@ var resolvePropStatusOverrides = (propStatus, frame) => {
|
|
|
4768
4845
|
}
|
|
4769
4846
|
if (status.status === "keyframed") {
|
|
4770
4847
|
const value = interpolateKeyframedStatus({
|
|
4848
|
+
forceSpringAllowTail: null,
|
|
4771
4849
|
frame,
|
|
4772
4850
|
status
|
|
4773
4851
|
});
|
|
@@ -4943,6 +5021,17 @@ var findPropsToDelete = ({
|
|
|
4943
5021
|
var DEFAULT_LINEAR_EASING = {
|
|
4944
5022
|
type: "linear"
|
|
4945
5023
|
};
|
|
5024
|
+
var getEasingIndexToDuplicate = ({
|
|
5025
|
+
insertedKeyframeIndex,
|
|
5026
|
+
easingLength,
|
|
5027
|
+
keyframeCount
|
|
5028
|
+
}) => {
|
|
5029
|
+
const isSplittingExistingSegment = insertedKeyframeIndex > 0 && insertedKeyframeIndex < keyframeCount - 1;
|
|
5030
|
+
if (!isSplittingExistingSegment || easingLength === 0) {
|
|
5031
|
+
return null;
|
|
5032
|
+
}
|
|
5033
|
+
return Math.min(insertedKeyframeIndex - 1, easingLength - 1);
|
|
5034
|
+
};
|
|
4946
5035
|
var makeStaticDragOverride = (value) => {
|
|
4947
5036
|
return { type: "static", value };
|
|
4948
5037
|
};
|
|
@@ -4954,6 +5043,16 @@ var makeKeyframedDragOverride = ({
|
|
|
4954
5043
|
const existingIndex = status.keyframes.findIndex((keyframe) => keyframe.frame === frame);
|
|
4955
5044
|
const keyframes = existingIndex === -1 ? [...status.keyframes, { frame, value }].sort((first, second) => first.frame - second.frame) : status.keyframes.map((keyframe, index) => index === existingIndex ? { frame, value } : keyframe);
|
|
4956
5045
|
const easing = [...status.easing];
|
|
5046
|
+
if (existingIndex === -1) {
|
|
5047
|
+
const insertedKeyframeIndex = keyframes.findIndex((keyframe) => keyframe.frame === frame);
|
|
5048
|
+
const easingIndexToDuplicate = getEasingIndexToDuplicate({
|
|
5049
|
+
insertedKeyframeIndex,
|
|
5050
|
+
easingLength: easing.length,
|
|
5051
|
+
keyframeCount: keyframes.length
|
|
5052
|
+
});
|
|
5053
|
+
const easingToDuplicate = easingIndexToDuplicate === null ? DEFAULT_LINEAR_EASING : easing[easingIndexToDuplicate];
|
|
5054
|
+
easing.splice(insertedKeyframeIndex, 0, easingToDuplicate);
|
|
5055
|
+
}
|
|
4957
5056
|
while (easing.length < keyframes.length - 1) {
|
|
4958
5057
|
easing.push(DEFAULT_LINEAR_EASING);
|
|
4959
5058
|
}
|
|
@@ -5025,6 +5124,7 @@ var computeEffectiveSchemaValuesDotNotation = ({
|
|
|
5025
5124
|
value = dragOverride.value;
|
|
5026
5125
|
} else if (frame !== null) {
|
|
5027
5126
|
const interpolated = interpolateKeyframedStatus({
|
|
5127
|
+
forceSpringAllowTail: null,
|
|
5028
5128
|
frame,
|
|
5029
5129
|
status
|
|
5030
5130
|
});
|
|
@@ -9176,6 +9276,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
9176
9276
|
var AudioForRendering = forwardRef6(AudioForRenderingRefForwardingFunction);
|
|
9177
9277
|
var AudioRefForwardingFunction = (props, ref) => {
|
|
9178
9278
|
const audioTagsContext = useContext30(SharedAudioTagsContext);
|
|
9279
|
+
const propsWithFreeze = props;
|
|
9179
9280
|
const {
|
|
9180
9281
|
startFrom,
|
|
9181
9282
|
endAt,
|
|
@@ -9186,14 +9287,18 @@ var AudioRefForwardingFunction = (props, ref) => {
|
|
|
9186
9287
|
pauseWhenBuffering,
|
|
9187
9288
|
showInTimeline,
|
|
9188
9289
|
onError: onRemotionError,
|
|
9290
|
+
freeze,
|
|
9189
9291
|
...otherProps
|
|
9190
|
-
} =
|
|
9191
|
-
const { loop, ...propsOtherThanLoop } =
|
|
9292
|
+
} = propsWithFreeze;
|
|
9293
|
+
const { loop, freeze: _freeze, ...propsOtherThanLoop } = propsWithFreeze;
|
|
9192
9294
|
const { fps } = useVideoConfig();
|
|
9193
9295
|
const environment = useRemotionEnvironment();
|
|
9194
9296
|
if (environment.isClientSideRendering) {
|
|
9195
9297
|
throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
|
|
9196
9298
|
}
|
|
9299
|
+
if (typeof freeze !== "undefined") {
|
|
9300
|
+
throw new TypeError('The "freeze" prop is not supported on <Html5Audio />. Use <Sequence freeze={...}> to freeze media playback.');
|
|
9301
|
+
}
|
|
9197
9302
|
const { durations, setDurations } = useContext30(DurationsContext);
|
|
9198
9303
|
if (typeof props.src !== "string") {
|
|
9199
9304
|
throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
|
|
@@ -9532,6 +9637,10 @@ function resolveHtmlInCanvasPixelDensity(pixelDensity) {
|
|
|
9532
9637
|
}
|
|
9533
9638
|
return pixelDensity;
|
|
9534
9639
|
}
|
|
9640
|
+
var isMissingPaintRecordError = (error2) => {
|
|
9641
|
+
return error2 instanceof DOMException && error2.name === "InvalidStateError";
|
|
9642
|
+
};
|
|
9643
|
+
var missingPaintRecordMessage = "HtmlInCanvas: Expected the element to be inside the viewport during rendering, but Chrome had no cached paint record for it.";
|
|
9535
9644
|
var resizeOffscreenCanvas = ({
|
|
9536
9645
|
offscreen,
|
|
9537
9646
|
width,
|
|
@@ -9575,6 +9684,7 @@ var HtmlInCanvasContent = forwardRef9(({
|
|
|
9575
9684
|
const canvasWidth = Math.ceil(width * resolvedPixelDensity);
|
|
9576
9685
|
const canvasHeight = Math.ceil(height * resolvedPixelDensity);
|
|
9577
9686
|
const { continueRender: continueRender2, cancelRender: cancelRender2 } = useDelayRender();
|
|
9687
|
+
const { isRendering } = useRemotionEnvironment();
|
|
9578
9688
|
if (!isHtmlInCanvasSupported()) {
|
|
9579
9689
|
cancelRender2(new Error(HTML_IN_CANVAS_UNSUPPORTED_MESSAGE));
|
|
9580
9690
|
}
|
|
@@ -9625,28 +9735,51 @@ var HtmlInCanvasContent = forwardRef9(({
|
|
|
9625
9735
|
}
|
|
9626
9736
|
const handle = delayRender("onPaint");
|
|
9627
9737
|
if (!initializedRef.current) {
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
element,
|
|
9635
|
-
elementImage: initImage,
|
|
9636
|
-
pixelDensity: resolvedPixelDensity
|
|
9637
|
-
});
|
|
9638
|
-
if (typeof cleanup !== "function") {
|
|
9639
|
-
throw new Error("HtmlInCanvas: when `onInit` is provided, it must return a cleanup function, or a Promise that resolves to one.");
|
|
9640
|
-
}
|
|
9641
|
-
if (unmountedRef.current) {
|
|
9642
|
-
cleanup();
|
|
9738
|
+
let initImage = null;
|
|
9739
|
+
try {
|
|
9740
|
+
initImage = placeholderCanvas.captureElementImage(element);
|
|
9741
|
+
} catch (error2) {
|
|
9742
|
+
if (isMissingPaintRecordError(error2) && !isRendering) {} else if (isMissingPaintRecordError(error2)) {
|
|
9743
|
+
throw new Error(missingPaintRecordMessage);
|
|
9643
9744
|
} else {
|
|
9644
|
-
|
|
9745
|
+
throw error2;
|
|
9746
|
+
}
|
|
9747
|
+
}
|
|
9748
|
+
if (initImage) {
|
|
9749
|
+
initializedRef.current = true;
|
|
9750
|
+
const currentOnInit = onInitRef.current;
|
|
9751
|
+
if (currentOnInit) {
|
|
9752
|
+
const cleanup = await currentOnInit({
|
|
9753
|
+
canvas: offscreen,
|
|
9754
|
+
element,
|
|
9755
|
+
elementImage: initImage,
|
|
9756
|
+
pixelDensity: resolvedPixelDensity
|
|
9757
|
+
});
|
|
9758
|
+
if (typeof cleanup !== "function") {
|
|
9759
|
+
throw new Error("HtmlInCanvas: when `onInit` is provided, it must return a cleanup function, or a Promise that resolves to one.");
|
|
9760
|
+
}
|
|
9761
|
+
if (unmountedRef.current) {
|
|
9762
|
+
cleanup();
|
|
9763
|
+
} else {
|
|
9764
|
+
onInitCleanupRef.current = cleanup;
|
|
9765
|
+
}
|
|
9645
9766
|
}
|
|
9646
9767
|
}
|
|
9647
9768
|
}
|
|
9648
9769
|
const handler = onPaintRef.current ?? defaultOnPaint;
|
|
9649
|
-
|
|
9770
|
+
let elImage;
|
|
9771
|
+
try {
|
|
9772
|
+
elImage = placeholderCanvas.captureElementImage(element);
|
|
9773
|
+
} catch (error2) {
|
|
9774
|
+
if (isMissingPaintRecordError(error2) && !isRendering) {
|
|
9775
|
+
continueRender2(handle);
|
|
9776
|
+
return;
|
|
9777
|
+
}
|
|
9778
|
+
if (isMissingPaintRecordError(error2)) {
|
|
9779
|
+
throw new Error(missingPaintRecordMessage);
|
|
9780
|
+
}
|
|
9781
|
+
throw error2;
|
|
9782
|
+
}
|
|
9650
9783
|
await handler({
|
|
9651
9784
|
canvas: offscreen,
|
|
9652
9785
|
element,
|
|
@@ -9671,7 +9804,8 @@ var HtmlInCanvasContent = forwardRef9(({
|
|
|
9671
9804
|
chainState,
|
|
9672
9805
|
continueRender2,
|
|
9673
9806
|
cancelRender2,
|
|
9674
|
-
resolvedPixelDensity
|
|
9807
|
+
resolvedPixelDensity,
|
|
9808
|
+
isRendering
|
|
9675
9809
|
]);
|
|
9676
9810
|
useLayoutEffect9(() => {
|
|
9677
9811
|
const placeholder = canvas2dRef.current;
|
|
@@ -29388,7 +29522,7 @@ var GitHubStars = () => {
|
|
|
29388
29522
|
width: "45px"
|
|
29389
29523
|
}),
|
|
29390
29524
|
/* @__PURE__ */ jsx57(StatItemContent, {
|
|
29391
|
-
content: "
|
|
29525
|
+
content: "51K",
|
|
29392
29526
|
width: "80px",
|
|
29393
29527
|
fontSize: "2.5rem",
|
|
29394
29528
|
fontWeight: "bold"
|
|
@@ -29918,6 +30052,35 @@ function findRange2(input, inputRange) {
|
|
|
29918
30052
|
return i - 1;
|
|
29919
30053
|
}
|
|
29920
30054
|
var defaultEasing2 = (num) => num;
|
|
30055
|
+
var shouldExtendRightForEasing2 = (easing) => {
|
|
30056
|
+
return easing.remotionShouldExtendRight === true;
|
|
30057
|
+
};
|
|
30058
|
+
var resolveEasingForSegment2 = ({
|
|
30059
|
+
easing,
|
|
30060
|
+
segmentIndex
|
|
30061
|
+
}) => {
|
|
30062
|
+
if (easing === undefined) {
|
|
30063
|
+
return defaultEasing2;
|
|
30064
|
+
}
|
|
30065
|
+
if (typeof easing === "function") {
|
|
30066
|
+
return easing;
|
|
30067
|
+
}
|
|
30068
|
+
return easing[segmentIndex];
|
|
30069
|
+
};
|
|
30070
|
+
var interpolateSegment2 = ({
|
|
30071
|
+
input,
|
|
30072
|
+
inputRange,
|
|
30073
|
+
outputRange,
|
|
30074
|
+
easing,
|
|
30075
|
+
extrapolateLeft,
|
|
30076
|
+
extrapolateRight
|
|
30077
|
+
}) => {
|
|
30078
|
+
return interpolateFunction2(input, inputRange, outputRange, {
|
|
30079
|
+
easing,
|
|
30080
|
+
extrapolateLeft,
|
|
30081
|
+
extrapolateRight: input > inputRange[1] && extrapolateRight === "clamp" && shouldExtendRightForEasing2(easing) ? "extend" : extrapolateRight
|
|
30082
|
+
});
|
|
30083
|
+
};
|
|
29921
30084
|
var interpolateNumber2 = ({
|
|
29922
30085
|
input,
|
|
29923
30086
|
inputRange,
|
|
@@ -29928,15 +30091,6 @@ var interpolateNumber2 = ({
|
|
|
29928
30091
|
return outputRange[0];
|
|
29929
30092
|
}
|
|
29930
30093
|
const easingOption = options2?.easing;
|
|
29931
|
-
const resolveEasingForSegment = (segmentIndex) => {
|
|
29932
|
-
if (easingOption === undefined) {
|
|
29933
|
-
return defaultEasing2;
|
|
29934
|
-
}
|
|
29935
|
-
if (typeof easingOption === "function") {
|
|
29936
|
-
return easingOption;
|
|
29937
|
-
}
|
|
29938
|
-
return easingOption[segmentIndex];
|
|
29939
|
-
};
|
|
29940
30094
|
let extrapolateLeft = "extend";
|
|
29941
30095
|
if (options2?.extrapolateLeft !== undefined) {
|
|
29942
30096
|
extrapolateLeft = options2.extrapolateLeft;
|
|
@@ -29947,11 +30101,41 @@ var interpolateNumber2 = ({
|
|
|
29947
30101
|
}
|
|
29948
30102
|
const posterizedInput = options2?.posterize === undefined ? input : Math.floor(input / options2.posterize) * options2.posterize;
|
|
29949
30103
|
const range = findRange2(posterizedInput, inputRange);
|
|
29950
|
-
|
|
29951
|
-
easing:
|
|
30104
|
+
const easing = resolveEasingForSegment2({
|
|
30105
|
+
easing: easingOption,
|
|
30106
|
+
segmentIndex: range
|
|
30107
|
+
});
|
|
30108
|
+
let result = interpolateSegment2({
|
|
30109
|
+
input: posterizedInput,
|
|
30110
|
+
inputRange: [inputRange[range], inputRange[range + 1]],
|
|
30111
|
+
outputRange: [outputRange[range], outputRange[range + 1]],
|
|
30112
|
+
easing,
|
|
29952
30113
|
extrapolateLeft,
|
|
29953
30114
|
extrapolateRight
|
|
29954
30115
|
});
|
|
30116
|
+
for (let segmentIndex = 0;segmentIndex < range; segmentIndex++) {
|
|
30117
|
+
const previousEasing = resolveEasingForSegment2({
|
|
30118
|
+
easing: easingOption,
|
|
30119
|
+
segmentIndex
|
|
30120
|
+
});
|
|
30121
|
+
if (!shouldExtendRightForEasing2(previousEasing)) {
|
|
30122
|
+
continue;
|
|
30123
|
+
}
|
|
30124
|
+
const previousSegmentEnd = inputRange[segmentIndex + 1];
|
|
30125
|
+
if (posterizedInput <= previousSegmentEnd) {
|
|
30126
|
+
continue;
|
|
30127
|
+
}
|
|
30128
|
+
const continuedSegmentValue = interpolateSegment2({
|
|
30129
|
+
input: posterizedInput,
|
|
30130
|
+
inputRange: [inputRange[segmentIndex], previousSegmentEnd],
|
|
30131
|
+
outputRange: [outputRange[segmentIndex], outputRange[segmentIndex + 1]],
|
|
30132
|
+
easing: previousEasing,
|
|
30133
|
+
extrapolateLeft,
|
|
30134
|
+
extrapolateRight: "extend"
|
|
30135
|
+
});
|
|
30136
|
+
result += continuedSegmentValue - outputRange[segmentIndex + 1];
|
|
30137
|
+
}
|
|
30138
|
+
return result;
|
|
29955
30139
|
};
|
|
29956
30140
|
var interpolateString2 = ({
|
|
29957
30141
|
input,
|
|
@@ -35773,9 +35957,14 @@ class StaleWaiterError extends Error {
|
|
|
35773
35957
|
var CONCURRENCY = 1;
|
|
35774
35958
|
var waiters = [];
|
|
35775
35959
|
var running = 0;
|
|
35960
|
+
var runningEntry = null;
|
|
35776
35961
|
var processNext = () => {
|
|
35777
35962
|
if (running >= CONCURRENCY) {
|
|
35778
|
-
|
|
35963
|
+
if (runningEntry?.waiter.getPriority() === null) {
|
|
35964
|
+
runningEntry.cancel();
|
|
35965
|
+
} else {
|
|
35966
|
+
return;
|
|
35967
|
+
}
|
|
35779
35968
|
}
|
|
35780
35969
|
const staleWaiters = [];
|
|
35781
35970
|
for (let i = waiters.length - 1;i >= 0; i--) {
|
|
@@ -35810,11 +35999,37 @@ var processNext = () => {
|
|
|
35810
35999
|
}
|
|
35811
36000
|
const [next] = waiters.splice(bestIndex, 1);
|
|
35812
36001
|
running++;
|
|
36002
|
+
let settled = false;
|
|
36003
|
+
let cancelled = false;
|
|
36004
|
+
const entry = {
|
|
36005
|
+
waiter: next,
|
|
36006
|
+
cancel: () => {
|
|
36007
|
+
cancelled = true;
|
|
36008
|
+
entry.settle();
|
|
36009
|
+
},
|
|
36010
|
+
settle: () => {
|
|
36011
|
+
if (settled) {
|
|
36012
|
+
return;
|
|
36013
|
+
}
|
|
36014
|
+
settled = true;
|
|
36015
|
+
running--;
|
|
36016
|
+
if (runningEntry === entry) {
|
|
36017
|
+
runningEntry = null;
|
|
36018
|
+
}
|
|
36019
|
+
}
|
|
36020
|
+
};
|
|
36021
|
+
runningEntry = entry;
|
|
35813
36022
|
next.fn().then((value) => {
|
|
35814
|
-
|
|
36023
|
+
entry.settle();
|
|
36024
|
+
if (cancelled) {
|
|
36025
|
+
return;
|
|
36026
|
+
}
|
|
35815
36027
|
next.onDone(value, processNext);
|
|
35816
36028
|
}, (err) => {
|
|
35817
|
-
|
|
36029
|
+
entry.settle();
|
|
36030
|
+
if (cancelled) {
|
|
36031
|
+
return;
|
|
36032
|
+
}
|
|
35818
36033
|
next.onError(err);
|
|
35819
36034
|
});
|
|
35820
36035
|
};
|
|
@@ -42350,7 +42565,7 @@ import {
|
|
|
42350
42565
|
import { BufferTarget, StreamTarget } from "mediabunny";
|
|
42351
42566
|
|
|
42352
42567
|
// ../core/dist/esm/version.mjs
|
|
42353
|
-
var VERSION2 = "4.0.
|
|
42568
|
+
var VERSION2 = "4.0.483";
|
|
42354
42569
|
|
|
42355
42570
|
// ../web-renderer/dist/esm/index.mjs
|
|
42356
42571
|
import { AudioSample, VideoSample } from "mediabunny";
|
|
@@ -43677,7 +43892,7 @@ var turnSvgIntoDrawable = (svg) => {
|
|
|
43677
43892
|
svg.style.marginBottom = "0";
|
|
43678
43893
|
svg.style.fill = fill;
|
|
43679
43894
|
svg.style.color = color;
|
|
43680
|
-
const svgData = new XMLSerializer().serializeToString(svg);
|
|
43895
|
+
const svgData = new XMLSerializer().serializeToString(svg).replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g, "");
|
|
43681
43896
|
svg.style.marginLeft = originalMarginLeft;
|
|
43682
43897
|
svg.style.marginRight = originalMarginRight;
|
|
43683
43898
|
svg.style.marginTop = originalMarginTop;
|
|
@@ -50543,7 +50758,7 @@ var GithubButton = () => {
|
|
|
50543
50758
|
" ",
|
|
50544
50759
|
/* @__PURE__ */ jsx167("div", {
|
|
50545
50760
|
className: "text-xs inline-block ml-2 leading-none mt-[3px] self-center",
|
|
50546
|
-
children: "
|
|
50761
|
+
children: "51k"
|
|
50547
50762
|
})
|
|
50548
50763
|
]
|
|
50549
50764
|
});
|