@lalalic/markcut 2.2.1 → 2.2.2
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/package.json +2 -2
- package/src/player/bundle/player.js +545 -793
|
@@ -522,9 +522,9 @@ var require_scheduler_production = __commonJS({
|
|
|
522
522
|
}
|
|
523
523
|
return first;
|
|
524
524
|
}
|
|
525
|
-
function compare(
|
|
526
|
-
var diff =
|
|
527
|
-
return 0 !== diff ? diff :
|
|
525
|
+
function compare(a2, b3) {
|
|
526
|
+
var diff = a2.sortIndex - b3.sortIndex;
|
|
527
|
+
return 0 !== diff ? diff : a2.id - b3.id;
|
|
528
528
|
}
|
|
529
529
|
exports.unstable_now = void 0;
|
|
530
530
|
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
@@ -910,8 +910,8 @@ var require_react_dom_production = __commonJS({
|
|
|
910
910
|
exports.requestFormReset = function(form) {
|
|
911
911
|
Internals2.d.r(form);
|
|
912
912
|
};
|
|
913
|
-
exports.unstable_batchedUpdates = function(fn,
|
|
914
|
-
return fn(
|
|
913
|
+
exports.unstable_batchedUpdates = function(fn, a2) {
|
|
914
|
+
return fn(a2);
|
|
915
915
|
};
|
|
916
916
|
exports.useFormState = function(action, initialState, permalink) {
|
|
917
917
|
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|
@@ -1006,55 +1006,55 @@ var require_react_dom_client_production = __commonJS({
|
|
|
1006
1006
|
if (null === alternate) throw Error(formatProdErrorMessage(188));
|
|
1007
1007
|
return alternate !== fiber ? null : fiber;
|
|
1008
1008
|
}
|
|
1009
|
-
for (var
|
|
1010
|
-
var parentA =
|
|
1009
|
+
for (var a2 = fiber, b3 = alternate; ; ) {
|
|
1010
|
+
var parentA = a2.return;
|
|
1011
1011
|
if (null === parentA) break;
|
|
1012
1012
|
var parentB = parentA.alternate;
|
|
1013
1013
|
if (null === parentB) {
|
|
1014
1014
|
b3 = parentA.return;
|
|
1015
1015
|
if (null !== b3) {
|
|
1016
|
-
|
|
1016
|
+
a2 = b3;
|
|
1017
1017
|
continue;
|
|
1018
1018
|
}
|
|
1019
1019
|
break;
|
|
1020
1020
|
}
|
|
1021
1021
|
if (parentA.child === parentB.child) {
|
|
1022
1022
|
for (parentB = parentA.child; parentB; ) {
|
|
1023
|
-
if (parentB ===
|
|
1023
|
+
if (parentB === a2) return assertIsMounted(parentA), fiber;
|
|
1024
1024
|
if (parentB === b3) return assertIsMounted(parentA), alternate;
|
|
1025
1025
|
parentB = parentB.sibling;
|
|
1026
1026
|
}
|
|
1027
1027
|
throw Error(formatProdErrorMessage(188));
|
|
1028
1028
|
}
|
|
1029
|
-
if (
|
|
1029
|
+
if (a2.return !== b3.return) a2 = parentA, b3 = parentB;
|
|
1030
1030
|
else {
|
|
1031
1031
|
for (var didFindChild = false, child$0 = parentA.child; child$0; ) {
|
|
1032
|
-
if (child$0 ===
|
|
1032
|
+
if (child$0 === a2) {
|
|
1033
1033
|
didFindChild = true;
|
|
1034
|
-
|
|
1034
|
+
a2 = parentA;
|
|
1035
1035
|
b3 = parentB;
|
|
1036
1036
|
break;
|
|
1037
1037
|
}
|
|
1038
1038
|
if (child$0 === b3) {
|
|
1039
1039
|
didFindChild = true;
|
|
1040
1040
|
b3 = parentA;
|
|
1041
|
-
|
|
1041
|
+
a2 = parentB;
|
|
1042
1042
|
break;
|
|
1043
1043
|
}
|
|
1044
1044
|
child$0 = child$0.sibling;
|
|
1045
1045
|
}
|
|
1046
1046
|
if (!didFindChild) {
|
|
1047
1047
|
for (child$0 = parentB.child; child$0; ) {
|
|
1048
|
-
if (child$0 ===
|
|
1048
|
+
if (child$0 === a2) {
|
|
1049
1049
|
didFindChild = true;
|
|
1050
|
-
|
|
1050
|
+
a2 = parentB;
|
|
1051
1051
|
b3 = parentA;
|
|
1052
1052
|
break;
|
|
1053
1053
|
}
|
|
1054
1054
|
if (child$0 === b3) {
|
|
1055
1055
|
didFindChild = true;
|
|
1056
1056
|
b3 = parentB;
|
|
1057
|
-
|
|
1057
|
+
a2 = parentA;
|
|
1058
1058
|
break;
|
|
1059
1059
|
}
|
|
1060
1060
|
child$0 = child$0.sibling;
|
|
@@ -1062,10 +1062,10 @@ var require_react_dom_client_production = __commonJS({
|
|
|
1062
1062
|
if (!didFindChild) throw Error(formatProdErrorMessage(189));
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
if (
|
|
1065
|
+
if (a2.alternate !== b3) throw Error(formatProdErrorMessage(190));
|
|
1066
1066
|
}
|
|
1067
|
-
if (3 !==
|
|
1068
|
-
return
|
|
1067
|
+
if (3 !== a2.tag) throw Error(formatProdErrorMessage(188));
|
|
1068
|
+
return a2.stateNode.current === a2 ? fiber : alternate;
|
|
1069
1069
|
}
|
|
1070
1070
|
function findCurrentHostFiberImpl(node) {
|
|
1071
1071
|
var tag = node.tag;
|
|
@@ -2111,16 +2111,16 @@ var require_react_dom_client_production = __commonJS({
|
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
2113
|
var isInsideEventHandler = false;
|
|
2114
|
-
function batchedUpdates$1(fn,
|
|
2115
|
-
if (isInsideEventHandler) return fn(
|
|
2114
|
+
function batchedUpdates$1(fn, a2, b3) {
|
|
2115
|
+
if (isInsideEventHandler) return fn(a2, b3);
|
|
2116
2116
|
isInsideEventHandler = true;
|
|
2117
2117
|
try {
|
|
2118
|
-
var JSCompiler_inline_result = fn(
|
|
2118
|
+
var JSCompiler_inline_result = fn(a2);
|
|
2119
2119
|
return JSCompiler_inline_result;
|
|
2120
2120
|
} finally {
|
|
2121
2121
|
if (isInsideEventHandler = false, null !== restoreTarget || null !== restoreQueue) {
|
|
2122
|
-
if (flushSyncWork$1(), restoreTarget && (
|
|
2123
|
-
for (
|
|
2122
|
+
if (flushSyncWork$1(), restoreTarget && (a2 = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(a2), fn))
|
|
2123
|
+
for (a2 = 0; a2 < fn.length; a2++) restoreStateOfTarget(fn[a2]);
|
|
2124
2124
|
}
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
@@ -12050,8 +12050,8 @@ var require_react_dom_client_production = __commonJS({
|
|
|
12050
12050
|
function markRetryLaneImpl(fiber, retryLane) {
|
|
12051
12051
|
fiber = fiber.memoizedState;
|
|
12052
12052
|
if (null !== fiber && null !== fiber.dehydrated) {
|
|
12053
|
-
var
|
|
12054
|
-
fiber.retryLane = 0 !==
|
|
12053
|
+
var a2 = fiber.retryLane;
|
|
12054
|
+
fiber.retryLane = 0 !== a2 && a2 < retryLane ? a2 : retryLane;
|
|
12055
12055
|
}
|
|
12056
12056
|
}
|
|
12057
12057
|
function markRetryLaneIfNotHydrated(fiber, retryLane) {
|
|
@@ -12762,33 +12762,33 @@ var require_jsx_runtime = __commonJS({
|
|
|
12762
12762
|
var require_fast_deep_equal = __commonJS({
|
|
12763
12763
|
"node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
12764
12764
|
"use strict";
|
|
12765
|
-
module.exports = function equal(
|
|
12766
|
-
if (
|
|
12767
|
-
if (
|
|
12768
|
-
if (
|
|
12765
|
+
module.exports = function equal(a2, b3) {
|
|
12766
|
+
if (a2 === b3) return true;
|
|
12767
|
+
if (a2 && b3 && typeof a2 == "object" && typeof b3 == "object") {
|
|
12768
|
+
if (a2.constructor !== b3.constructor) return false;
|
|
12769
12769
|
var length2, i3, keys;
|
|
12770
|
-
if (Array.isArray(
|
|
12771
|
-
length2 =
|
|
12770
|
+
if (Array.isArray(a2)) {
|
|
12771
|
+
length2 = a2.length;
|
|
12772
12772
|
if (length2 != b3.length) return false;
|
|
12773
12773
|
for (i3 = length2; i3-- !== 0; )
|
|
12774
|
-
if (!equal(
|
|
12774
|
+
if (!equal(a2[i3], b3[i3])) return false;
|
|
12775
12775
|
return true;
|
|
12776
12776
|
}
|
|
12777
|
-
if (
|
|
12778
|
-
if (
|
|
12779
|
-
if (
|
|
12780
|
-
keys = Object.keys(
|
|
12777
|
+
if (a2.constructor === RegExp) return a2.source === b3.source && a2.flags === b3.flags;
|
|
12778
|
+
if (a2.valueOf !== Object.prototype.valueOf) return a2.valueOf() === b3.valueOf();
|
|
12779
|
+
if (a2.toString !== Object.prototype.toString) return a2.toString() === b3.toString();
|
|
12780
|
+
keys = Object.keys(a2);
|
|
12781
12781
|
length2 = keys.length;
|
|
12782
12782
|
if (length2 !== Object.keys(b3).length) return false;
|
|
12783
12783
|
for (i3 = length2; i3-- !== 0; )
|
|
12784
12784
|
if (!Object.prototype.hasOwnProperty.call(b3, keys[i3])) return false;
|
|
12785
12785
|
for (i3 = length2; i3-- !== 0; ) {
|
|
12786
12786
|
var key = keys[i3];
|
|
12787
|
-
if (!equal(
|
|
12787
|
+
if (!equal(a2[key], b3[key])) return false;
|
|
12788
12788
|
}
|
|
12789
12789
|
return true;
|
|
12790
12790
|
}
|
|
12791
|
-
return
|
|
12791
|
+
return a2 !== a2 && b3 !== b3;
|
|
12792
12792
|
};
|
|
12793
12793
|
}
|
|
12794
12794
|
});
|
|
@@ -13258,7 +13258,7 @@ var serializeJSONWithSpecialTypes = ({
|
|
|
13258
13258
|
}
|
|
13259
13259
|
};
|
|
13260
13260
|
var deserializeJSONWithSpecialTypes = (data2) => {
|
|
13261
|
-
return JSON.parse(data2, (
|
|
13261
|
+
return JSON.parse(data2, (_, value) => {
|
|
13262
13262
|
if (typeof value === "string" && value.startsWith(DATE_TOKEN)) {
|
|
13263
13263
|
return new Date(value.replace(DATE_TOKEN, ""));
|
|
13264
13264
|
}
|
|
@@ -14204,8 +14204,8 @@ __export2(exports_timeline_position_state, {
|
|
|
14204
14204
|
getInitialFrameState: () => getInitialFrameState,
|
|
14205
14205
|
getFrameForComposition: () => getFrameForComposition
|
|
14206
14206
|
});
|
|
14207
|
-
function mulberry32(
|
|
14208
|
-
let t =
|
|
14207
|
+
function mulberry32(a2) {
|
|
14208
|
+
let t = a2 + 1831565813;
|
|
14209
14209
|
t = Math.imul(t ^ t >>> 15, t | 1);
|
|
14210
14210
|
t ^= t + Math.imul(t ^ t >>> 7, t | 61);
|
|
14211
14211
|
return ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
@@ -15721,8 +15721,8 @@ var runEffectChain = async ({
|
|
|
15721
15721
|
let flipWebGLSourceY = true;
|
|
15722
15722
|
for (let runIndex = 0; runIndex < runs.length; runIndex++) {
|
|
15723
15723
|
const run = runs[runIndex];
|
|
15724
|
-
const [
|
|
15725
|
-
let dst =
|
|
15724
|
+
const [a2, b3] = state.pool.getPair(run.backend);
|
|
15725
|
+
let dst = a2;
|
|
15726
15726
|
for (const eff of run.effects) {
|
|
15727
15727
|
const def = eff.definition;
|
|
15728
15728
|
const setupState = ensureSetup(state, def, dst);
|
|
@@ -15741,7 +15741,7 @@ var runEffectChain = async ({
|
|
|
15741
15741
|
state.pool.assertContextNotLost(dst);
|
|
15742
15742
|
}
|
|
15743
15743
|
currentImage = dst;
|
|
15744
|
-
dst = dst ===
|
|
15744
|
+
dst = dst === a2 ? b3 : a2;
|
|
15745
15745
|
}
|
|
15746
15746
|
lastTarget = currentImage ?? lastTarget;
|
|
15747
15747
|
const nextRun = runs[runIndex + 1];
|
|
@@ -15923,8 +15923,8 @@ var decodeImage = async ({
|
|
|
15923
15923
|
};
|
|
15924
15924
|
const clearCache = (closeToTimeInSec) => {
|
|
15925
15925
|
const itemsInCache = cache2.filter((c3) => c3.frame);
|
|
15926
|
-
const sortByClosestToCurrentTime = itemsInCache.sort((
|
|
15927
|
-
const aDiff = Math.abs(
|
|
15926
|
+
const sortByClosestToCurrentTime = itemsInCache.sort((a2, b3) => {
|
|
15927
|
+
const aDiff = Math.abs(a2.timeInSeconds - closeToTimeInSec);
|
|
15928
15928
|
const bDiff = Math.abs(b3.timeInSeconds - closeToTimeInSec);
|
|
15929
15929
|
return aDiff - bDiff;
|
|
15930
15930
|
});
|
|
@@ -15946,7 +15946,7 @@ var decodeImage = async ({
|
|
|
15946
15946
|
timeInSec
|
|
15947
15947
|
});
|
|
15948
15948
|
const framesBefore = cache2.filter((c3) => c3.timeInSeconds <= actualTimeInSec);
|
|
15949
|
-
const biggestIndex = framesBefore.map((c3) => c3.frameIndex).reduce((
|
|
15949
|
+
const biggestIndex = framesBefore.map((c3) => c3.frameIndex).reduce((a2, b3) => Math.max(a2, b3), 0);
|
|
15950
15950
|
let i3 = biggestIndex;
|
|
15951
15951
|
while (true) {
|
|
15952
15952
|
const f2 = await getFrameByIndex(i3);
|
|
@@ -15989,10 +15989,10 @@ var decodeImage = async ({
|
|
|
15989
15989
|
});
|
|
15990
15990
|
await ensureFrameBeforeAndAfter({ timeInSec: actualTimeInSec, loopBehavior });
|
|
15991
15991
|
const itemsInCache = cache2.filter((c3) => c3.frame);
|
|
15992
|
-
const closest = itemsInCache.reduce((
|
|
15993
|
-
const aDiff = Math.abs(
|
|
15992
|
+
const closest = itemsInCache.reduce((a2, b3) => {
|
|
15993
|
+
const aDiff = Math.abs(a2.timeInSeconds - actualTimeInSec);
|
|
15994
15994
|
const bDiff = Math.abs(b3.timeInSeconds - actualTimeInSec);
|
|
15995
|
-
return aDiff < bDiff ?
|
|
15995
|
+
return aDiff < bDiff ? a2 : b3;
|
|
15996
15996
|
});
|
|
15997
15997
|
if (!closest.frame) {
|
|
15998
15998
|
throw new Error("No frame found");
|
|
@@ -16670,7 +16670,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
|
|
|
16670
16670
|
}, []);
|
|
16671
16671
|
}
|
|
16672
16672
|
const unregisterRenderAsset = (0, import_react38.useCallback)((id) => {
|
|
16673
|
-
renderAssetsRef.current = renderAssetsRef.current.filter((
|
|
16673
|
+
renderAssetsRef.current = renderAssetsRef.current.filter((a2) => a2.id !== id);
|
|
16674
16674
|
setRenderAssets(renderAssetsRef.current);
|
|
16675
16675
|
}, []);
|
|
16676
16676
|
(0, import_react38.useLayoutEffect)(() => {
|
|
@@ -17623,7 +17623,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
17623
17623
|
const takenAudios = (0, import_react47.useRef)(new Array(numberOfAudioTags).fill(false));
|
|
17624
17624
|
const rerenderAudios = (0, import_react47.useCallback)(() => {
|
|
17625
17625
|
refs.forEach(({ ref: ref2, id }) => {
|
|
17626
|
-
const data2 = audios.current?.find((
|
|
17626
|
+
const data2 = audios.current?.find((a2) => a2.id === id);
|
|
17627
17627
|
const { current: current2 } = ref2;
|
|
17628
17628
|
if (!current2) {
|
|
17629
17629
|
return;
|
|
@@ -17644,11 +17644,11 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
17644
17644
|
}, [refs]);
|
|
17645
17645
|
const registerAudio = (0, import_react47.useCallback)((options) => {
|
|
17646
17646
|
const { aud, audioId, premounting, postmounting } = options;
|
|
17647
|
-
const found = audios.current?.find((
|
|
17647
|
+
const found = audios.current?.find((a2) => a2.audioId === audioId);
|
|
17648
17648
|
if (found) {
|
|
17649
17649
|
return found;
|
|
17650
17650
|
}
|
|
17651
|
-
const firstFreeAudio = takenAudios.current.findIndex((
|
|
17651
|
+
const firstFreeAudio = takenAudios.current.findIndex((a2) => a2 === false);
|
|
17652
17652
|
if (firstFreeAudio === -1) {
|
|
17653
17653
|
throw new Error(`Tried to simultaneously mount ${numberOfAudioTags + 1} <Html5Audio /> tags at the same time. With the current settings, the maximum amount of <Html5Audio /> tags is limited to ${numberOfAudioTags} at the same time. Remotion pre-mounts silent audio tags to help avoid browser autoplay restrictions. See https://remotion.dev/docs/player/autoplay#using-the-numberofsharedaudiotags-prop for more information on how to increase this limit.`);
|
|
17654
17654
|
}
|
|
@@ -17680,7 +17680,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
17680
17680
|
}
|
|
17681
17681
|
cloned[index] = false;
|
|
17682
17682
|
takenAudios.current = cloned;
|
|
17683
|
-
audios.current = audios.current?.filter((
|
|
17683
|
+
audios.current = audios.current?.filter((a2) => a2.id !== id);
|
|
17684
17684
|
rerenderAudios();
|
|
17685
17685
|
}, [refs, rerenderAudios]);
|
|
17686
17686
|
const updateAudio = (0, import_react47.useCallback)(({
|
|
@@ -17719,7 +17719,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
17719
17719
|
}, [rerenderAudios]);
|
|
17720
17720
|
const playAllAudios = (0, import_react47.useCallback)(() => {
|
|
17721
17721
|
refs.forEach((ref2) => {
|
|
17722
|
-
const audio2 = audios.current.find((
|
|
17722
|
+
const audio2 = audios.current.find((a2) => a2.el === ref2.ref);
|
|
17723
17723
|
if (audio2?.premounting) {
|
|
17724
17724
|
return;
|
|
17725
17725
|
}
|
|
@@ -18118,7 +18118,7 @@ var useBasicMediaInTimeline = ({
|
|
|
18118
18118
|
if (typeof volume === "number") {
|
|
18119
18119
|
return volume;
|
|
18120
18120
|
}
|
|
18121
|
-
return new Array(Math.floor(Math.max(0, duration3 + mediaStartsAt))).fill(true).map((
|
|
18121
|
+
return new Array(Math.floor(Math.max(0, duration3 + mediaStartsAt))).fill(true).map((_, i3) => {
|
|
18122
18122
|
return evaluateVolume({
|
|
18123
18123
|
frame: i3 + mediaStartsAt,
|
|
18124
18124
|
volume,
|
|
@@ -18462,7 +18462,7 @@ var useBufferUntilFirstFrame = ({
|
|
|
18462
18462
|
const onEndedOrPauseOrCanPlay = () => {
|
|
18463
18463
|
unblock();
|
|
18464
18464
|
};
|
|
18465
|
-
current2.requestVideoFrameCallback((
|
|
18465
|
+
current2.requestVideoFrameCallback((_, info2) => {
|
|
18466
18466
|
const differenceFromRequested = Math.abs(info2.mediaTime - requestedTime);
|
|
18467
18467
|
if (differenceFromRequested > 0.5) {
|
|
18468
18468
|
onVariableFpsVideoDetected();
|
|
@@ -18691,7 +18691,7 @@ var useRequestVideoCallbackTime = ({
|
|
|
18691
18691
|
if (!videoTag) {
|
|
18692
18692
|
return;
|
|
18693
18693
|
}
|
|
18694
|
-
const cb = videoTag.requestVideoFrameCallback((
|
|
18694
|
+
const cb = videoTag.requestVideoFrameCallback((_, info2) => {
|
|
18695
18695
|
if (currentTime.current !== null) {
|
|
18696
18696
|
const difference = Math.abs(currentTime.current.time - info2.mediaTime);
|
|
18697
18697
|
const differenceToLastSeek = Math.abs(lastSeek.current === null ? Infinity : info2.mediaTime - lastSeek.current);
|
|
@@ -19185,7 +19185,7 @@ var useMediaTag = ({
|
|
|
19185
19185
|
};
|
|
19186
19186
|
audioAndVideoTags.current.push(tag);
|
|
19187
19187
|
return () => {
|
|
19188
|
-
audioAndVideoTags.current = audioAndVideoTags.current.filter((
|
|
19188
|
+
audioAndVideoTags.current = audioAndVideoTags.current.filter((a2) => a2.id !== id);
|
|
19189
19189
|
};
|
|
19190
19190
|
}, [
|
|
19191
19191
|
audioAndVideoTags,
|
|
@@ -21991,7 +21991,7 @@ function getMatchers() {
|
|
|
21991
21991
|
}
|
|
21992
21992
|
return cachedMatchers;
|
|
21993
21993
|
}
|
|
21994
|
-
function hue2rgb(p2,
|
|
21994
|
+
function hue2rgb(p2, q, t) {
|
|
21995
21995
|
if (t < 0) {
|
|
21996
21996
|
t += 1;
|
|
21997
21997
|
}
|
|
@@ -21999,22 +21999,22 @@ function hue2rgb(p2, q2, t) {
|
|
|
21999
21999
|
t -= 1;
|
|
22000
22000
|
}
|
|
22001
22001
|
if (t < 1 / 6) {
|
|
22002
|
-
return p2 + (
|
|
22002
|
+
return p2 + (q - p2) * 6 * t;
|
|
22003
22003
|
}
|
|
22004
22004
|
if (t < 1 / 2) {
|
|
22005
|
-
return
|
|
22005
|
+
return q;
|
|
22006
22006
|
}
|
|
22007
22007
|
if (t < 2 / 3) {
|
|
22008
|
-
return p2 + (
|
|
22008
|
+
return p2 + (q - p2) * (2 / 3 - t) * 6;
|
|
22009
22009
|
}
|
|
22010
22010
|
return p2;
|
|
22011
22011
|
}
|
|
22012
22012
|
function hslToRgb(h2, s2, l2) {
|
|
22013
|
-
const
|
|
22014
|
-
const p2 = 2 * l2 -
|
|
22015
|
-
const r = hue2rgb(p2,
|
|
22016
|
-
const g2 = hue2rgb(p2,
|
|
22017
|
-
const b22 = hue2rgb(p2,
|
|
22013
|
+
const q = l2 < 0.5 ? l2 * (1 + s2) : l2 + s2 - l2 * s2;
|
|
22014
|
+
const p2 = 2 * l2 - q;
|
|
22015
|
+
const r = hue2rgb(p2, q, h2 + 1 / 3);
|
|
22016
|
+
const g2 = hue2rgb(p2, q, h2);
|
|
22017
|
+
const b22 = hue2rgb(p2, q, h2 - 1 / 3);
|
|
22018
22018
|
return Math.round(r * 255) << 24 | Math.round(g2 * 255) << 16 | Math.round(b22 * 255) << 8;
|
|
22019
22019
|
}
|
|
22020
22020
|
function parse255(str) {
|
|
@@ -22094,10 +22094,10 @@ function rgbFloatToInt(r, g2, b22, alpha) {
|
|
|
22094
22094
|
const ai = Math.round(clamp01(alpha) * 255);
|
|
22095
22095
|
return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
|
|
22096
22096
|
}
|
|
22097
|
-
function oklabToSrgb(
|
|
22098
|
-
const l_ =
|
|
22099
|
-
const m_ =
|
|
22100
|
-
const s_ =
|
|
22097
|
+
function oklabToSrgb(L, a2, b22) {
|
|
22098
|
+
const l_ = L + 0.3963377774 * a2 + 0.2158037573 * b22;
|
|
22099
|
+
const m_ = L - 0.1055613458 * a2 - 0.0638541728 * b22;
|
|
22100
|
+
const s_ = L - 0.0894841775 * a2 - 1.291485548 * b22;
|
|
22101
22101
|
const l2 = l_ * l_ * l_;
|
|
22102
22102
|
const m2 = m_ * m_ * m_;
|
|
22103
22103
|
const s2 = s_ * s_ * s_;
|
|
@@ -22106,26 +22106,26 @@ function oklabToSrgb(L2, a22, b22) {
|
|
|
22106
22106
|
const bLin = -0.0041960863 * l2 - 0.7034186147 * m2 + 1.707614701 * s2;
|
|
22107
22107
|
return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
|
|
22108
22108
|
}
|
|
22109
|
-
function labToSrgb(
|
|
22109
|
+
function labToSrgb(L, a2, b22) {
|
|
22110
22110
|
const epsilon3 = 216 / 24389;
|
|
22111
22111
|
const kappa = 24389 / 27;
|
|
22112
22112
|
const Xn = 0.95047;
|
|
22113
22113
|
const Yn = 1;
|
|
22114
22114
|
const Zn = 1.08883;
|
|
22115
|
-
const fy = (
|
|
22116
|
-
const fx =
|
|
22115
|
+
const fy = (L + 16) / 116;
|
|
22116
|
+
const fx = a2 / 500 + fy;
|
|
22117
22117
|
const fz = fy - b22 / 200;
|
|
22118
22118
|
const fx3 = fx * fx * fx;
|
|
22119
22119
|
const fz3 = fz * fz * fz;
|
|
22120
22120
|
const xr = fx3 > epsilon3 ? fx3 : (116 * fx - 16) / kappa;
|
|
22121
|
-
const yr =
|
|
22121
|
+
const yr = L > kappa * epsilon3 ? ((L + 16) / 116) ** 3 : L / kappa;
|
|
22122
22122
|
const zr = fz3 > epsilon3 ? fz3 : (116 * fz - 16) / kappa;
|
|
22123
|
-
const
|
|
22124
|
-
const
|
|
22125
|
-
const
|
|
22126
|
-
const rLin = 3.2404542 *
|
|
22127
|
-
const gLin = -0.969266 *
|
|
22128
|
-
const bLin = 0.0556434 *
|
|
22123
|
+
const X = xr * Xn;
|
|
22124
|
+
const Y = yr * Yn;
|
|
22125
|
+
const Z = zr * Zn;
|
|
22126
|
+
const rLin = 3.2404542 * X - 1.5371385 * Y - 0.4985314 * Z;
|
|
22127
|
+
const gLin = -0.969266 * X + 1.8760108 * Y + 0.041556 * Z;
|
|
22128
|
+
const bLin = 0.0556434 * X - 0.2040259 * Y + 1.0572252 * Z;
|
|
22129
22129
|
return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
|
|
22130
22130
|
}
|
|
22131
22131
|
function hwbToSrgb(h2, w2, bk) {
|
|
@@ -22133,11 +22133,11 @@ function hwbToSrgb(h2, w2, bk) {
|
|
|
22133
22133
|
const gray = w2 / (w2 + bk);
|
|
22134
22134
|
return [gray, gray, gray];
|
|
22135
22135
|
}
|
|
22136
|
-
const
|
|
22136
|
+
const q = 1;
|
|
22137
22137
|
const p2 = 0;
|
|
22138
|
-
const r = hue2rgb(p2,
|
|
22139
|
-
const g2 = hue2rgb(p2,
|
|
22140
|
-
const bl = hue2rgb(p2,
|
|
22138
|
+
const r = hue2rgb(p2, q, h2 + 1 / 3);
|
|
22139
|
+
const g2 = hue2rgb(p2, q, h2);
|
|
22140
|
+
const bl = hue2rgb(p2, q, h2 - 1 / 3);
|
|
22141
22141
|
const factor = 1 - w2 - bk;
|
|
22142
22142
|
return [r * factor + w2, g2 * factor + w2, bl * factor + w2];
|
|
22143
22143
|
}
|
|
@@ -22341,53 +22341,53 @@ function normalizeColor(color) {
|
|
|
22341
22341
|
}
|
|
22342
22342
|
if (matchers.oklch) {
|
|
22343
22343
|
if (match = matchers.oklch.exec(color)) {
|
|
22344
|
-
const
|
|
22345
|
-
const
|
|
22346
|
-
const
|
|
22344
|
+
const L = parseModernComponent(match[1], 1);
|
|
22345
|
+
const C = parseModernComponent(match[2], 0.4);
|
|
22346
|
+
const H = parseHueAngle(match[3]);
|
|
22347
22347
|
const alpha = parseModernAlpha(match[4]);
|
|
22348
|
-
const hRad =
|
|
22349
|
-
const [r, g2, b22] = oklabToSrgb(
|
|
22348
|
+
const hRad = H * Math.PI / 180;
|
|
22349
|
+
const [r, g2, b22] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
|
|
22350
22350
|
return rgbFloatToInt(r, g2, b22, alpha);
|
|
22351
22351
|
}
|
|
22352
22352
|
}
|
|
22353
22353
|
if (matchers.oklab) {
|
|
22354
22354
|
if (match = matchers.oklab.exec(color)) {
|
|
22355
|
-
const
|
|
22356
|
-
const
|
|
22355
|
+
const L = parseModernComponent(match[1], 1);
|
|
22356
|
+
const a2 = parseModernComponent(match[2], 0.4);
|
|
22357
22357
|
const b22 = parseModernComponent(match[3], 0.4);
|
|
22358
22358
|
const alpha = parseModernAlpha(match[4]);
|
|
22359
|
-
const [r, g2, bl] = oklabToSrgb(
|
|
22359
|
+
const [r, g2, bl] = oklabToSrgb(L, a2, b22);
|
|
22360
22360
|
return rgbFloatToInt(r, g2, bl, alpha);
|
|
22361
22361
|
}
|
|
22362
22362
|
}
|
|
22363
22363
|
if (matchers.lab) {
|
|
22364
22364
|
if (match = matchers.lab.exec(color)) {
|
|
22365
|
-
const
|
|
22366
|
-
const
|
|
22365
|
+
const L = parseModernComponent(match[1], 100);
|
|
22366
|
+
const a2 = parseModernComponent(match[2], 125);
|
|
22367
22367
|
const b22 = parseModernComponent(match[3], 125);
|
|
22368
22368
|
const alpha = parseModernAlpha(match[4]);
|
|
22369
|
-
const [r, g2, bl] = labToSrgb(
|
|
22369
|
+
const [r, g2, bl] = labToSrgb(L, a2, b22);
|
|
22370
22370
|
return rgbFloatToInt(r, g2, bl, alpha);
|
|
22371
22371
|
}
|
|
22372
22372
|
}
|
|
22373
22373
|
if (matchers.lch) {
|
|
22374
22374
|
if (match = matchers.lch.exec(color)) {
|
|
22375
|
-
const
|
|
22376
|
-
const
|
|
22377
|
-
const
|
|
22375
|
+
const L = parseModernComponent(match[1], 100);
|
|
22376
|
+
const C = parseModernComponent(match[2], 150);
|
|
22377
|
+
const H = parseHueAngle(match[3]);
|
|
22378
22378
|
const alpha = parseModernAlpha(match[4]);
|
|
22379
|
-
const hRad =
|
|
22380
|
-
const [r, g2, bl] = labToSrgb(
|
|
22379
|
+
const hRad = H * Math.PI / 180;
|
|
22380
|
+
const [r, g2, bl] = labToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
|
|
22381
22381
|
return rgbFloatToInt(r, g2, bl, alpha);
|
|
22382
22382
|
}
|
|
22383
22383
|
}
|
|
22384
22384
|
if (matchers.hwb) {
|
|
22385
22385
|
if (match = matchers.hwb.exec(color)) {
|
|
22386
|
-
const
|
|
22387
|
-
const
|
|
22388
|
-
const
|
|
22386
|
+
const H = parseHueAngle(match[1]);
|
|
22387
|
+
const W = parseModernComponent(match[2], 1);
|
|
22388
|
+
const B = parseModernComponent(match[3], 1);
|
|
22389
22389
|
const alpha = parseModernAlpha(match[4]);
|
|
22390
|
-
const [r, g2, bl] = hwbToSrgb(
|
|
22390
|
+
const [r, g2, bl] = hwbToSrgb(H / 360, W, B);
|
|
22391
22391
|
return rgbFloatToInt(r, g2, bl, alpha);
|
|
22392
22392
|
}
|
|
22393
22393
|
}
|
|
@@ -22413,7 +22413,7 @@ function processColor(color) {
|
|
|
22413
22413
|
return (normalizedColor << 24 | normalizedColor >>> 8) >>> 0;
|
|
22414
22414
|
}
|
|
22415
22415
|
var interpolateColorsRGB = (value, inputRange, colors) => {
|
|
22416
|
-
const [r, g2, b22,
|
|
22416
|
+
const [r, g2, b22, a2] = [red, green, blue, opacity].map((f2) => {
|
|
22417
22417
|
const unrounded = interpolate(value, inputRange, colors.map((c22) => f2(c22)), {
|
|
22418
22418
|
extrapolateLeft: "clamp",
|
|
22419
22419
|
extrapolateRight: "clamp"
|
|
@@ -22423,7 +22423,7 @@ var interpolateColorsRGB = (value, inputRange, colors) => {
|
|
|
22423
22423
|
}
|
|
22424
22424
|
return Math.round(unrounded);
|
|
22425
22425
|
});
|
|
22426
|
-
return rgbaColor(r, g2, b22,
|
|
22426
|
+
return rgbaColor(r, g2, b22, a2);
|
|
22427
22427
|
};
|
|
22428
22428
|
var interpolateColors = (input, inputRange, outputRange) => {
|
|
22429
22429
|
if (typeof input === "undefined") {
|
|
@@ -23362,7 +23362,7 @@ var Experimental = {
|
|
|
23362
23362
|
};
|
|
23363
23363
|
var proxyObj = {};
|
|
23364
23364
|
var Config = new Proxy(proxyObj, {
|
|
23365
|
-
get(
|
|
23365
|
+
get(_, prop) {
|
|
23366
23366
|
if (prop === "Bundling" || prop === "Rendering" || prop === "Log" || prop === "Puppeteer" || prop === "Output") {
|
|
23367
23367
|
return Config;
|
|
23368
23368
|
}
|
|
@@ -23641,7 +23641,7 @@ var serializeJSONWithSpecialTypes2 = ({
|
|
|
23641
23641
|
}
|
|
23642
23642
|
};
|
|
23643
23643
|
var deserializeJSONWithSpecialTypes2 = (data2) => {
|
|
23644
|
-
return JSON.parse(data2, (
|
|
23644
|
+
return JSON.parse(data2, (_, value) => {
|
|
23645
23645
|
if (typeof value === "string" && value.startsWith(DATE_TOKEN2)) {
|
|
23646
23646
|
return new Date(value.replace(DATE_TOKEN2, ""));
|
|
23647
23647
|
}
|
|
@@ -23694,7 +23694,7 @@ function getMatchers2() {
|
|
|
23694
23694
|
}
|
|
23695
23695
|
return cachedMatchers;
|
|
23696
23696
|
}
|
|
23697
|
-
function hue2rgb2(p2,
|
|
23697
|
+
function hue2rgb2(p2, q, t) {
|
|
23698
23698
|
if (t < 0) {
|
|
23699
23699
|
t += 1;
|
|
23700
23700
|
}
|
|
@@ -23702,22 +23702,22 @@ function hue2rgb2(p2, q2, t) {
|
|
|
23702
23702
|
t -= 1;
|
|
23703
23703
|
}
|
|
23704
23704
|
if (t < 1 / 6) {
|
|
23705
|
-
return p2 + (
|
|
23705
|
+
return p2 + (q - p2) * 6 * t;
|
|
23706
23706
|
}
|
|
23707
23707
|
if (t < 1 / 2) {
|
|
23708
|
-
return
|
|
23708
|
+
return q;
|
|
23709
23709
|
}
|
|
23710
23710
|
if (t < 2 / 3) {
|
|
23711
|
-
return p2 + (
|
|
23711
|
+
return p2 + (q - p2) * (2 / 3 - t) * 6;
|
|
23712
23712
|
}
|
|
23713
23713
|
return p2;
|
|
23714
23714
|
}
|
|
23715
23715
|
function hslToRgb2(h2, s2, l2) {
|
|
23716
|
-
const
|
|
23717
|
-
const p2 = 2 * l2 -
|
|
23718
|
-
const r = hue2rgb2(p2,
|
|
23719
|
-
const g2 = hue2rgb2(p2,
|
|
23720
|
-
const b3 = hue2rgb2(p2,
|
|
23716
|
+
const q = l2 < 0.5 ? l2 * (1 + s2) : l2 + s2 - l2 * s2;
|
|
23717
|
+
const p2 = 2 * l2 - q;
|
|
23718
|
+
const r = hue2rgb2(p2, q, h2 + 1 / 3);
|
|
23719
|
+
const g2 = hue2rgb2(p2, q, h2);
|
|
23720
|
+
const b3 = hue2rgb2(p2, q, h2 - 1 / 3);
|
|
23721
23721
|
return Math.round(r * 255) << 24 | Math.round(g2 * 255) << 16 | Math.round(b3 * 255) << 8;
|
|
23722
23722
|
}
|
|
23723
23723
|
function parse2552(str) {
|
|
@@ -23797,10 +23797,10 @@ function rgbFloatToInt2(r, g2, b3, alpha) {
|
|
|
23797
23797
|
const ai = Math.round(clamp012(alpha) * 255);
|
|
23798
23798
|
return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
|
|
23799
23799
|
}
|
|
23800
|
-
function oklabToSrgb2(
|
|
23801
|
-
const l_ =
|
|
23802
|
-
const m_ =
|
|
23803
|
-
const s_ =
|
|
23800
|
+
function oklabToSrgb2(L, a2, b3) {
|
|
23801
|
+
const l_ = L + 0.3963377774 * a2 + 0.2158037573 * b3;
|
|
23802
|
+
const m_ = L - 0.1055613458 * a2 - 0.0638541728 * b3;
|
|
23803
|
+
const s_ = L - 0.0894841775 * a2 - 1.291485548 * b3;
|
|
23804
23804
|
const l2 = l_ * l_ * l_;
|
|
23805
23805
|
const m2 = m_ * m_ * m_;
|
|
23806
23806
|
const s2 = s_ * s_ * s_;
|
|
@@ -23809,26 +23809,26 @@ function oklabToSrgb2(L2, a3, b3) {
|
|
|
23809
23809
|
const bLin = -0.0041960863 * l2 - 0.7034186147 * m2 + 1.707614701 * s2;
|
|
23810
23810
|
return [linearToSrgb2(rLin), linearToSrgb2(gLin), linearToSrgb2(bLin)];
|
|
23811
23811
|
}
|
|
23812
|
-
function labToSrgb2(
|
|
23812
|
+
function labToSrgb2(L, a2, b3) {
|
|
23813
23813
|
const epsilon3 = 216 / 24389;
|
|
23814
23814
|
const kappa = 24389 / 27;
|
|
23815
23815
|
const Xn = 0.95047;
|
|
23816
23816
|
const Yn = 1;
|
|
23817
23817
|
const Zn = 1.08883;
|
|
23818
|
-
const fy = (
|
|
23819
|
-
const fx =
|
|
23818
|
+
const fy = (L + 16) / 116;
|
|
23819
|
+
const fx = a2 / 500 + fy;
|
|
23820
23820
|
const fz = fy - b3 / 200;
|
|
23821
23821
|
const fx3 = fx * fx * fx;
|
|
23822
23822
|
const fz3 = fz * fz * fz;
|
|
23823
23823
|
const xr = fx3 > epsilon3 ? fx3 : (116 * fx - 16) / kappa;
|
|
23824
|
-
const yr =
|
|
23824
|
+
const yr = L > kappa * epsilon3 ? ((L + 16) / 116) ** 3 : L / kappa;
|
|
23825
23825
|
const zr = fz3 > epsilon3 ? fz3 : (116 * fz - 16) / kappa;
|
|
23826
|
-
const
|
|
23827
|
-
const
|
|
23828
|
-
const
|
|
23829
|
-
const rLin = 3.2404542 *
|
|
23830
|
-
const gLin = -0.969266 *
|
|
23831
|
-
const bLin = 0.0556434 *
|
|
23826
|
+
const X = xr * Xn;
|
|
23827
|
+
const Y = yr * Yn;
|
|
23828
|
+
const Z = zr * Zn;
|
|
23829
|
+
const rLin = 3.2404542 * X - 1.5371385 * Y - 0.4985314 * Z;
|
|
23830
|
+
const gLin = -0.969266 * X + 1.8760108 * Y + 0.041556 * Z;
|
|
23831
|
+
const bLin = 0.0556434 * X - 0.2040259 * Y + 1.0572252 * Z;
|
|
23832
23832
|
return [linearToSrgb2(rLin), linearToSrgb2(gLin), linearToSrgb2(bLin)];
|
|
23833
23833
|
}
|
|
23834
23834
|
function hwbToSrgb2(h2, w2, bk) {
|
|
@@ -23836,11 +23836,11 @@ function hwbToSrgb2(h2, w2, bk) {
|
|
|
23836
23836
|
const gray = w2 / (w2 + bk);
|
|
23837
23837
|
return [gray, gray, gray];
|
|
23838
23838
|
}
|
|
23839
|
-
const
|
|
23839
|
+
const q = 1;
|
|
23840
23840
|
const p2 = 0;
|
|
23841
|
-
const r = hue2rgb2(p2,
|
|
23842
|
-
const g2 = hue2rgb2(p2,
|
|
23843
|
-
const bl = hue2rgb2(p2,
|
|
23841
|
+
const r = hue2rgb2(p2, q, h2 + 1 / 3);
|
|
23842
|
+
const g2 = hue2rgb2(p2, q, h2);
|
|
23843
|
+
const bl = hue2rgb2(p2, q, h2 - 1 / 3);
|
|
23844
23844
|
const factor = 1 - w2 - bk;
|
|
23845
23845
|
return [r * factor + w2, g2 * factor + w2, bl * factor + w2];
|
|
23846
23846
|
}
|
|
@@ -24044,53 +24044,53 @@ function normalizeColor2(color) {
|
|
|
24044
24044
|
}
|
|
24045
24045
|
if (matchers.oklch) {
|
|
24046
24046
|
if (match = matchers.oklch.exec(color)) {
|
|
24047
|
-
const
|
|
24048
|
-
const
|
|
24049
|
-
const
|
|
24047
|
+
const L = parseModernComponent2(match[1], 1);
|
|
24048
|
+
const C = parseModernComponent2(match[2], 0.4);
|
|
24049
|
+
const H = parseHueAngle2(match[3]);
|
|
24050
24050
|
const alpha = parseModernAlpha2(match[4]);
|
|
24051
|
-
const hRad =
|
|
24052
|
-
const [r, g2, b3] = oklabToSrgb2(
|
|
24051
|
+
const hRad = H * Math.PI / 180;
|
|
24052
|
+
const [r, g2, b3] = oklabToSrgb2(L, C * Math.cos(hRad), C * Math.sin(hRad));
|
|
24053
24053
|
return rgbFloatToInt2(r, g2, b3, alpha);
|
|
24054
24054
|
}
|
|
24055
24055
|
}
|
|
24056
24056
|
if (matchers.oklab) {
|
|
24057
24057
|
if (match = matchers.oklab.exec(color)) {
|
|
24058
|
-
const
|
|
24059
|
-
const
|
|
24058
|
+
const L = parseModernComponent2(match[1], 1);
|
|
24059
|
+
const a2 = parseModernComponent2(match[2], 0.4);
|
|
24060
24060
|
const b3 = parseModernComponent2(match[3], 0.4);
|
|
24061
24061
|
const alpha = parseModernAlpha2(match[4]);
|
|
24062
|
-
const [r, g2, bl] = oklabToSrgb2(
|
|
24062
|
+
const [r, g2, bl] = oklabToSrgb2(L, a2, b3);
|
|
24063
24063
|
return rgbFloatToInt2(r, g2, bl, alpha);
|
|
24064
24064
|
}
|
|
24065
24065
|
}
|
|
24066
24066
|
if (matchers.lab) {
|
|
24067
24067
|
if (match = matchers.lab.exec(color)) {
|
|
24068
|
-
const
|
|
24069
|
-
const
|
|
24068
|
+
const L = parseModernComponent2(match[1], 100);
|
|
24069
|
+
const a2 = parseModernComponent2(match[2], 125);
|
|
24070
24070
|
const b3 = parseModernComponent2(match[3], 125);
|
|
24071
24071
|
const alpha = parseModernAlpha2(match[4]);
|
|
24072
|
-
const [r, g2, bl] = labToSrgb2(
|
|
24072
|
+
const [r, g2, bl] = labToSrgb2(L, a2, b3);
|
|
24073
24073
|
return rgbFloatToInt2(r, g2, bl, alpha);
|
|
24074
24074
|
}
|
|
24075
24075
|
}
|
|
24076
24076
|
if (matchers.lch) {
|
|
24077
24077
|
if (match = matchers.lch.exec(color)) {
|
|
24078
|
-
const
|
|
24079
|
-
const
|
|
24080
|
-
const
|
|
24078
|
+
const L = parseModernComponent2(match[1], 100);
|
|
24079
|
+
const C = parseModernComponent2(match[2], 150);
|
|
24080
|
+
const H = parseHueAngle2(match[3]);
|
|
24081
24081
|
const alpha = parseModernAlpha2(match[4]);
|
|
24082
|
-
const hRad =
|
|
24083
|
-
const [r, g2, bl] = labToSrgb2(
|
|
24082
|
+
const hRad = H * Math.PI / 180;
|
|
24083
|
+
const [r, g2, bl] = labToSrgb2(L, C * Math.cos(hRad), C * Math.sin(hRad));
|
|
24084
24084
|
return rgbFloatToInt2(r, g2, bl, alpha);
|
|
24085
24085
|
}
|
|
24086
24086
|
}
|
|
24087
24087
|
if (matchers.hwb) {
|
|
24088
24088
|
if (match = matchers.hwb.exec(color)) {
|
|
24089
|
-
const
|
|
24090
|
-
const
|
|
24091
|
-
const
|
|
24089
|
+
const H = parseHueAngle2(match[1]);
|
|
24090
|
+
const W = parseModernComponent2(match[2], 1);
|
|
24091
|
+
const B = parseModernComponent2(match[3], 1);
|
|
24092
24092
|
const alpha = parseModernAlpha2(match[4]);
|
|
24093
|
-
const [r, g2, bl] = hwbToSrgb2(
|
|
24093
|
+
const [r, g2, bl] = hwbToSrgb2(H / 360, W, B);
|
|
24094
24094
|
return rgbFloatToInt2(r, g2, bl, alpha);
|
|
24095
24095
|
}
|
|
24096
24096
|
}
|
|
@@ -24928,7 +24928,7 @@ var usePlayer = () => {
|
|
|
24928
24928
|
if (audioTagsContext && audioTagsContext.numberOfAudioTags > 0 && e) {
|
|
24929
24929
|
audioTagsContext.playAllAudios();
|
|
24930
24930
|
}
|
|
24931
|
-
audioAndVideoTags.current.forEach((
|
|
24931
|
+
audioAndVideoTags.current.forEach((a2) => a2.play("player play() was called and playing audio from a click"));
|
|
24932
24932
|
imperativePlaying.current = true;
|
|
24933
24933
|
setPlaying(true);
|
|
24934
24934
|
playStart.current = frameRef.current;
|
|
@@ -30380,7 +30380,7 @@ function cssJS(css) {
|
|
|
30380
30380
|
const k2 = decl.slice(0, i3).trim();
|
|
30381
30381
|
const v2 = decl.slice(i3 + 1).trim();
|
|
30382
30382
|
if (!k2) continue;
|
|
30383
|
-
const camel = k2.replace(/-([a-z])/g, (
|
|
30383
|
+
const camel = k2.replace(/-([a-z])/g, (_, c3) => c3.toUpperCase());
|
|
30384
30384
|
out[camel] = v2;
|
|
30385
30385
|
}
|
|
30386
30386
|
return out;
|
|
@@ -30458,10 +30458,10 @@ function parseVTT(src) {
|
|
|
30458
30458
|
const lines = b3.split("\n").filter(Boolean);
|
|
30459
30459
|
const tline = lines.find((l2) => l2.includes("-->"));
|
|
30460
30460
|
if (!tline) continue;
|
|
30461
|
-
const [
|
|
30462
|
-
if (!
|
|
30461
|
+
const [a2, z2] = tline.split("-->").map((s2) => s2.trim());
|
|
30462
|
+
if (!a2 || !z2) continue;
|
|
30463
30463
|
const text = lines.slice(lines.indexOf(tline) + 1).join("\n").trim();
|
|
30464
|
-
cues.push({ startFrom: vttSecond(
|
|
30464
|
+
cues.push({ startFrom: vttSecond(a2), endAt: vttSecond(z2), text });
|
|
30465
30465
|
}
|
|
30466
30466
|
return cues;
|
|
30467
30467
|
}
|
|
@@ -33839,8 +33839,8 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
33839
33839
|
if (this.options.ecmaVersion < 6 && this.input.slice(start, end).indexOf("\\") !== -1) {
|
|
33840
33840
|
return;
|
|
33841
33841
|
}
|
|
33842
|
-
var
|
|
33843
|
-
if (
|
|
33842
|
+
var re = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
33843
|
+
if (re.test(name)) {
|
|
33844
33844
|
if (!this.inAsync && name === "await") {
|
|
33845
33845
|
this.raiseRecoverable(start, "Cannot use keyword 'await' outside an async function");
|
|
33846
33846
|
}
|
|
@@ -34265,7 +34265,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
34265
34265
|
}
|
|
34266
34266
|
};
|
|
34267
34267
|
function hasProp2(obj) {
|
|
34268
|
-
for (var
|
|
34268
|
+
for (var _ in obj) {
|
|
34269
34269
|
return true;
|
|
34270
34270
|
}
|
|
34271
34271
|
return false;
|
|
@@ -39383,8 +39383,8 @@ pp$5.checkUnreserved = function(ref2) {
|
|
|
39383
39383
|
if (this.options.ecmaVersion < 6 && this.input.slice(start, end).indexOf("\\") !== -1) {
|
|
39384
39384
|
return;
|
|
39385
39385
|
}
|
|
39386
|
-
var
|
|
39387
|
-
if (
|
|
39386
|
+
var re = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
39387
|
+
if (re.test(name)) {
|
|
39388
39388
|
if (!this.inAsync && name === "await") {
|
|
39389
39389
|
this.raiseRecoverable(start, "Cannot use keyword 'await' outside an async function");
|
|
39390
39390
|
}
|
|
@@ -39812,7 +39812,7 @@ pp$1.validateRegExpFlags = function(state) {
|
|
|
39812
39812
|
}
|
|
39813
39813
|
};
|
|
39814
39814
|
function hasProp(obj) {
|
|
39815
|
-
for (var
|
|
39815
|
+
for (var _ in obj) {
|
|
39816
39816
|
return true;
|
|
39817
39817
|
}
|
|
39818
39818
|
return false;
|
|
@@ -41818,8 +41818,8 @@ var JsxParser = class extends import_react125.default.Component {
|
|
|
41818
41818
|
case "TemplateElement":
|
|
41819
41819
|
return expression.value.cooked;
|
|
41820
41820
|
case "TemplateLiteral":
|
|
41821
|
-
return [...expression.expressions, ...expression.quasis].sort((
|
|
41822
|
-
if (
|
|
41821
|
+
return [...expression.expressions, ...expression.quasis].sort((a2, b3) => {
|
|
41822
|
+
if (a2.start < b3.start)
|
|
41823
41823
|
return -1;
|
|
41824
41824
|
return 1;
|
|
41825
41825
|
}).map((item) => __privateGet(this, _parseExpression).call(this, item, scope)).join("");
|
|
@@ -41954,7 +41954,7 @@ var JsxParser = class extends import_react125.default.Component {
|
|
|
41954
41954
|
const rawName = expr.name.name;
|
|
41955
41955
|
const attributeName = attributeNames_default[rawName] || rawName;
|
|
41956
41956
|
const value = __privateGet(this, _parseExpression).call(this, expr, scope);
|
|
41957
|
-
const matches = blacklistedAttrs.filter((
|
|
41957
|
+
const matches = blacklistedAttrs.filter((re) => re.test(attributeName));
|
|
41958
41958
|
if (matches.length === 0) {
|
|
41959
41959
|
props[attributeName] = value;
|
|
41960
41960
|
}
|
|
@@ -41963,7 +41963,7 @@ var JsxParser = class extends import_react125.default.Component {
|
|
|
41963
41963
|
if (typeof value === "object") {
|
|
41964
41964
|
Object.keys(value).forEach((rawName) => {
|
|
41965
41965
|
const attributeName = attributeNames_default[rawName] || rawName;
|
|
41966
|
-
const matches = blacklistedAttrs.filter((
|
|
41966
|
+
const matches = blacklistedAttrs.filter((re) => re.test(attributeName));
|
|
41967
41967
|
if (matches.length === 0) {
|
|
41968
41968
|
props[attributeName] = value[rawName];
|
|
41969
41969
|
}
|
|
@@ -42037,8 +42037,8 @@ function hexToNumber(hex3) {
|
|
|
42037
42037
|
}
|
|
42038
42038
|
return parseInt(s2, 16);
|
|
42039
42039
|
}
|
|
42040
|
-
function lerp(
|
|
42041
|
-
return
|
|
42040
|
+
function lerp(a2, b3, t) {
|
|
42041
|
+
return a2 + (b3 - a2) * t;
|
|
42042
42042
|
}
|
|
42043
42043
|
function useTweenBindings(action) {
|
|
42044
42044
|
const frame = useCurrentFrame();
|
|
@@ -42753,12 +42753,12 @@ function isLatLngLiteral(obj) {
|
|
|
42753
42753
|
return false;
|
|
42754
42754
|
return Number.isFinite(obj.lat) && Number.isFinite(obj.lng);
|
|
42755
42755
|
}
|
|
42756
|
-
function latLngEquals(
|
|
42757
|
-
if (!
|
|
42756
|
+
function latLngEquals(a2, b3) {
|
|
42757
|
+
if (!a2 || !b3)
|
|
42758
42758
|
return false;
|
|
42759
|
-
const A2 = toLatLngLiteral(
|
|
42760
|
-
const
|
|
42761
|
-
if (A2.lat !==
|
|
42759
|
+
const A2 = toLatLngLiteral(a2);
|
|
42760
|
+
const B = toLatLngLiteral(b3);
|
|
42761
|
+
if (A2.lat !== B.lat || A2.lng !== B.lng)
|
|
42762
42762
|
return false;
|
|
42763
42763
|
return true;
|
|
42764
42764
|
}
|
|
@@ -42771,42 +42771,42 @@ function toLatLngBoundsLiteral(obj) {
|
|
|
42771
42771
|
if ("north" in obj && "south" in obj && "east" in obj && "west" in obj) {
|
|
42772
42772
|
return obj;
|
|
42773
42773
|
}
|
|
42774
|
-
const
|
|
42774
|
+
const ne = obj.getNorthEast().toJSON();
|
|
42775
42775
|
const sw = obj.getSouthWest().toJSON();
|
|
42776
42776
|
return {
|
|
42777
|
-
north:
|
|
42778
|
-
east:
|
|
42777
|
+
north: ne.lat,
|
|
42778
|
+
east: ne.lng,
|
|
42779
42779
|
south: sw.lat,
|
|
42780
42780
|
west: sw.lng
|
|
42781
42781
|
};
|
|
42782
42782
|
}
|
|
42783
|
-
function boundsEquals(
|
|
42784
|
-
if (!
|
|
42783
|
+
function boundsEquals(a2, b3) {
|
|
42784
|
+
if (!a2 || !b3)
|
|
42785
42785
|
return false;
|
|
42786
|
-
const A2 = toLatLngBoundsLiteral(
|
|
42787
|
-
const
|
|
42788
|
-
return A2.north ===
|
|
42786
|
+
const A2 = toLatLngBoundsLiteral(a2);
|
|
42787
|
+
const B = toLatLngBoundsLiteral(b3);
|
|
42788
|
+
return A2.north === B.north && A2.south === B.south && A2.east === B.east && A2.west === B.west;
|
|
42789
42789
|
}
|
|
42790
|
-
function pathEquals(
|
|
42791
|
-
if (!
|
|
42792
|
-
return
|
|
42790
|
+
function pathEquals(a2, b3) {
|
|
42791
|
+
if (!a2 || !b3)
|
|
42792
|
+
return a2 === b3;
|
|
42793
42793
|
const arrayB = "getArray" in b3 ? b3.getArray() : b3;
|
|
42794
|
-
if (
|
|
42794
|
+
if (a2.length !== arrayB.length)
|
|
42795
42795
|
return false;
|
|
42796
|
-
for (let i3 = 0; i3 <
|
|
42797
|
-
if (!latLngEquals(
|
|
42796
|
+
for (let i3 = 0; i3 < a2.length; i3++) {
|
|
42797
|
+
if (!latLngEquals(a2[i3], arrayB[i3]))
|
|
42798
42798
|
return false;
|
|
42799
42799
|
}
|
|
42800
42800
|
return true;
|
|
42801
42801
|
}
|
|
42802
|
-
function pathsEquals(
|
|
42803
|
-
if (!
|
|
42804
|
-
return
|
|
42802
|
+
function pathsEquals(a2, b3) {
|
|
42803
|
+
if (!a2 || !b3)
|
|
42804
|
+
return a2 === b3;
|
|
42805
42805
|
const arrayB = "getArray" in b3 ? b3.getArray().map((inner2) => inner2.getArray()) : b3;
|
|
42806
|
-
if (
|
|
42806
|
+
if (a2.length !== arrayB.length)
|
|
42807
42807
|
return false;
|
|
42808
|
-
for (let i3 = 0; i3 <
|
|
42809
|
-
if (!pathEquals(
|
|
42808
|
+
for (let i3 = 0; i3 < a2.length; i3++) {
|
|
42809
|
+
if (!pathEquals(a2[i3], arrayB[i3]))
|
|
42810
42810
|
return false;
|
|
42811
42811
|
}
|
|
42812
42812
|
return true;
|
|
@@ -44662,12 +44662,12 @@ function useAnimatedPosition({
|
|
|
44662
44662
|
const total = waypoints.length - 1;
|
|
44663
44663
|
const segI = Math.min(Math.floor(t * total), total - 1);
|
|
44664
44664
|
const segT = t * total - segI;
|
|
44665
|
-
const
|
|
44665
|
+
const a2 = waypoints[segI];
|
|
44666
44666
|
const b3 = waypoints[segI + 1];
|
|
44667
|
-
if (!
|
|
44667
|
+
if (!a2 || !b3) return null;
|
|
44668
44668
|
return {
|
|
44669
|
-
lat:
|
|
44670
|
-
lng:
|
|
44669
|
+
lat: a2.lat + (b3.lat - a2.lat) * segT,
|
|
44670
|
+
lng: a2.lng + (b3.lng - a2.lng) * segT
|
|
44671
44671
|
};
|
|
44672
44672
|
}
|
|
44673
44673
|
const currentInSecond = frame / fps * (leg.duration.value / actionDuration);
|
|
@@ -44677,12 +44677,12 @@ function useAnimatedPosition({
|
|
|
44677
44677
|
const total = waypoints.length - 1;
|
|
44678
44678
|
const segI = Math.min(Math.floor(t * total), total - 1);
|
|
44679
44679
|
const segT = t * total - segI;
|
|
44680
|
-
const
|
|
44680
|
+
const a2 = waypoints[segI];
|
|
44681
44681
|
const b3 = waypoints[segI + 1];
|
|
44682
|
-
if (!
|
|
44682
|
+
if (!a2 || !b3) return null;
|
|
44683
44683
|
return {
|
|
44684
|
-
lat:
|
|
44685
|
-
lng:
|
|
44684
|
+
lat: a2.lat + (b3.lat - a2.lat) * segT,
|
|
44685
|
+
lng: a2.lng + (b3.lng - a2.lng) * segT
|
|
44686
44686
|
};
|
|
44687
44687
|
}
|
|
44688
44688
|
const stepElapsed = currentInSecond - elapsedInSeconds;
|
|
@@ -45028,7 +45028,7 @@ function parseKeyframeData(data2) {
|
|
|
45028
45028
|
styles[String(perc)] = style2;
|
|
45029
45029
|
if (!steps.includes(perc)) steps.push(perc);
|
|
45030
45030
|
}
|
|
45031
|
-
steps.sort((
|
|
45031
|
+
steps.sort((a2, b3) => b3 - a2);
|
|
45032
45032
|
return { steps, styles };
|
|
45033
45033
|
}
|
|
45034
45034
|
function getEasing(timing) {
|
|
@@ -45578,480 +45578,250 @@ var React46 = __toESM(require_react(), 1);
|
|
|
45578
45578
|
// node_modules/remotion-subtitle/dist/index.esm.js
|
|
45579
45579
|
var index_esm_exports = {};
|
|
45580
45580
|
__export(index_esm_exports, {
|
|
45581
|
-
BounceCaption: () =>
|
|
45582
|
-
Caption: () =>
|
|
45583
|
-
ColorfulCaption: () =>
|
|
45584
|
-
ExplosiveCaption: () =>
|
|
45585
|
-
FadeCaption: () =>
|
|
45586
|
-
FireCaption: () =>
|
|
45587
|
-
GlitchCaption: () =>
|
|
45588
|
-
GlowingCaption: () =>
|
|
45589
|
-
LightningCaption: () =>
|
|
45590
|
-
NeonCaption: () =>
|
|
45591
|
-
RotatingCaption: () =>
|
|
45592
|
-
ShakeCaption: () =>
|
|
45593
|
-
SubtitleSequence: () =>
|
|
45594
|
-
ThreeDishCaption: () =>
|
|
45595
|
-
TiltShiftCaption: () =>
|
|
45596
|
-
TypewriterCaption: () =>
|
|
45597
|
-
WavingCaption: () =>
|
|
45598
|
-
ZoomCaption: () =>
|
|
45581
|
+
BounceCaption: () => h,
|
|
45582
|
+
Caption: () => x,
|
|
45583
|
+
ColorfulCaption: () => g,
|
|
45584
|
+
ExplosiveCaption: () => d,
|
|
45585
|
+
FadeCaption: () => y,
|
|
45586
|
+
FireCaption: () => b2,
|
|
45587
|
+
GlitchCaption: () => v,
|
|
45588
|
+
GlowingCaption: () => S,
|
|
45589
|
+
LightningCaption: () => w,
|
|
45590
|
+
NeonCaption: () => R,
|
|
45591
|
+
RotatingCaption: () => F,
|
|
45592
|
+
ShakeCaption: () => E,
|
|
45593
|
+
SubtitleSequence: () => u,
|
|
45594
|
+
ThreeDishCaption: () => A,
|
|
45595
|
+
TiltShiftCaption: () => O,
|
|
45596
|
+
TypewriterCaption: () => j,
|
|
45597
|
+
WavingCaption: () => k,
|
|
45598
|
+
ZoomCaption: () => P
|
|
45599
45599
|
});
|
|
45600
|
-
|
|
45601
|
-
|
|
45600
|
+
var import_react128 = __toESM(require_react());
|
|
45601
|
+
function i2(t, e) {
|
|
45602
|
+
var r = Object.keys(t);
|
|
45602
45603
|
if (Object.getOwnPropertySymbols) {
|
|
45603
|
-
var
|
|
45604
|
-
|
|
45605
|
-
return Object.getOwnPropertyDescriptor(
|
|
45606
|
-
}))), r.push.apply(r,
|
|
45604
|
+
var a2 = Object.getOwnPropertySymbols(t);
|
|
45605
|
+
e && (a2 = a2.filter((function(e2) {
|
|
45606
|
+
return Object.getOwnPropertyDescriptor(t, e2).enumerable;
|
|
45607
|
+
}))), r.push.apply(r, a2);
|
|
45607
45608
|
}
|
|
45608
45609
|
return r;
|
|
45609
45610
|
}
|
|
45610
|
-
function
|
|
45611
|
-
for (var
|
|
45612
|
-
var r = null != arguments[
|
|
45613
|
-
|
|
45614
|
-
|
|
45615
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
45616
|
-
Object.defineProperty(
|
|
45611
|
+
function l(t) {
|
|
45612
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
45613
|
+
var r = null != arguments[e] ? arguments[e] : {};
|
|
45614
|
+
e % 2 ? i2(Object(r), true).forEach((function(e2) {
|
|
45615
|
+
p(t, e2, r[e2]);
|
|
45616
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : i2(Object(r)).forEach((function(e2) {
|
|
45617
|
+
Object.defineProperty(t, e2, Object.getOwnPropertyDescriptor(r, e2));
|
|
45617
45618
|
}));
|
|
45618
45619
|
}
|
|
45619
|
-
return
|
|
45620
|
+
return t;
|
|
45620
45621
|
}
|
|
45621
|
-
function c2(
|
|
45622
|
-
var
|
|
45623
|
-
if ("object" != typeof
|
|
45624
|
-
var r =
|
|
45622
|
+
function c2(t) {
|
|
45623
|
+
var e = (function(t2, e2) {
|
|
45624
|
+
if ("object" != typeof t2 || !t2) return t2;
|
|
45625
|
+
var r = t2[Symbol.toPrimitive];
|
|
45625
45626
|
if (void 0 !== r) {
|
|
45626
|
-
var
|
|
45627
|
-
if ("object" != typeof
|
|
45627
|
+
var a2 = r.call(t2, e2 || "default");
|
|
45628
|
+
if ("object" != typeof a2) return a2;
|
|
45628
45629
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45629
45630
|
}
|
|
45630
|
-
return ("string" ===
|
|
45631
|
-
})(
|
|
45632
|
-
return "symbol" == typeof
|
|
45631
|
+
return ("string" === e2 ? String : Number)(t2);
|
|
45632
|
+
})(t, "string");
|
|
45633
|
+
return "symbol" == typeof e ? e : e + "";
|
|
45633
45634
|
}
|
|
45634
|
-
function
|
|
45635
|
-
for (var r = 0; r <
|
|
45636
|
-
var
|
|
45637
|
-
|
|
45635
|
+
function s(t, e) {
|
|
45636
|
+
for (var r = 0; r < e.length; r++) {
|
|
45637
|
+
var a2 = e[r];
|
|
45638
|
+
a2.enumerable = a2.enumerable || false, a2.configurable = true, "value" in a2 && (a2.writable = true), Object.defineProperty(t, c2(a2.key), a2);
|
|
45638
45639
|
}
|
|
45639
45640
|
}
|
|
45640
|
-
function
|
|
45641
|
-
return (
|
|
45641
|
+
function p(t, e, r) {
|
|
45642
|
+
return (e = c2(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: true, configurable: true, writable: true }) : t[e] = r, t;
|
|
45642
45643
|
}
|
|
45643
|
-
function
|
|
45644
|
-
return (function(
|
|
45645
|
-
if (Array.isArray(
|
|
45646
|
-
})(
|
|
45647
|
-
var r = null ==
|
|
45644
|
+
function f(t, e) {
|
|
45645
|
+
return (function(t2) {
|
|
45646
|
+
if (Array.isArray(t2)) return t2;
|
|
45647
|
+
})(t) || (function(t2, e2) {
|
|
45648
|
+
var r = null == t2 ? null : "undefined" != typeof Symbol && t2[Symbol.iterator] || t2["@@iterator"];
|
|
45648
45649
|
if (null != r) {
|
|
45649
|
-
var
|
|
45650
|
+
var a2, n, o2, i3, l2 = [], c3 = true, s2 = false;
|
|
45650
45651
|
try {
|
|
45651
|
-
if (
|
|
45652
|
+
if (o2 = (r = r.call(t2)).next, 0 === e2) {
|
|
45652
45653
|
if (Object(r) !== r) return;
|
|
45653
|
-
|
|
45654
|
-
} else for (; !(
|
|
45655
|
-
} catch (
|
|
45656
|
-
|
|
45654
|
+
c3 = false;
|
|
45655
|
+
} else for (; !(c3 = (a2 = o2.call(r)).done) && (l2.push(a2.value), l2.length !== e2); c3 = true) ;
|
|
45656
|
+
} catch (t3) {
|
|
45657
|
+
s2 = true, n = t3;
|
|
45657
45658
|
} finally {
|
|
45658
45659
|
try {
|
|
45659
|
-
if (!
|
|
45660
|
+
if (!c3 && null != r.return && (i3 = r.return(), Object(i3) !== i3)) return;
|
|
45660
45661
|
} finally {
|
|
45661
|
-
if (
|
|
45662
|
+
if (s2) throw n;
|
|
45662
45663
|
}
|
|
45663
45664
|
}
|
|
45664
|
-
return
|
|
45665
|
+
return l2;
|
|
45665
45666
|
}
|
|
45666
|
-
})(
|
|
45667
|
-
if (!
|
|
45668
|
-
if ("string" == typeof
|
|
45669
|
-
var r = Object.prototype.toString.call(
|
|
45670
|
-
"Object" === r &&
|
|
45671
|
-
if ("Map" === r || "Set" === r) return Array.from(
|
|
45672
|
-
if ("Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return
|
|
45673
|
-
})(
|
|
45667
|
+
})(t, e) || (function(t2, e2) {
|
|
45668
|
+
if (!t2) return;
|
|
45669
|
+
if ("string" == typeof t2) return m(t2, e2);
|
|
45670
|
+
var r = Object.prototype.toString.call(t2).slice(8, -1);
|
|
45671
|
+
"Object" === r && t2.constructor && (r = t2.constructor.name);
|
|
45672
|
+
if ("Map" === r || "Set" === r) return Array.from(t2);
|
|
45673
|
+
if ("Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return m(t2, e2);
|
|
45674
|
+
})(t, e) || (function() {
|
|
45674
45675
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45675
45676
|
})();
|
|
45676
45677
|
}
|
|
45677
|
-
function
|
|
45678
|
-
(null ==
|
|
45679
|
-
for (var r = 0,
|
|
45680
|
-
return
|
|
45681
|
-
}
|
|
45682
|
-
var
|
|
45683
|
-
|
|
45684
|
-
var
|
|
45685
|
-
|
|
45686
|
-
|
|
45687
|
-
|
|
45688
|
-
|
|
45689
|
-
|
|
45690
|
-
|
|
45691
|
-
|
|
45692
|
-
|
|
45693
|
-
|
|
45694
|
-
return t[e2];
|
|
45695
|
-
}));
|
|
45696
|
-
if ("0123456789" !== n.join("")) return false;
|
|
45697
|
-
var o = {};
|
|
45698
|
-
return "abcdefghijklmnopqrst".split("").forEach((function(e2) {
|
|
45699
|
-
o[e2] = e2;
|
|
45700
|
-
})), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, o)).join("");
|
|
45701
|
-
} catch (e2) {
|
|
45702
|
-
return false;
|
|
45703
|
-
}
|
|
45704
|
-
})() ? Object.assign : function(e, t) {
|
|
45705
|
-
for (var r, n, o = (function(e2) {
|
|
45706
|
-
if (null == e2) throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
45707
|
-
return Object(e2);
|
|
45708
|
-
})(e), a3 = 1; a3 < arguments.length; a3++) {
|
|
45709
|
-
for (var i3 in r = Object(arguments[a3])) m.call(r, i3) && (o[i3] = r[i3]);
|
|
45710
|
-
if (y) {
|
|
45711
|
-
n = y(r);
|
|
45712
|
-
for (var c3 = 0; c3 < n.length; c3++) h.call(r, n[c3]) && (o[n[c3]] = r[n[c3]]);
|
|
45713
|
-
}
|
|
45714
|
-
}
|
|
45715
|
-
return o;
|
|
45716
|
-
};
|
|
45717
|
-
var g = v;
|
|
45718
|
-
var b2 = 60103;
|
|
45719
|
-
var x = 60106;
|
|
45720
|
-
d.Fragment = 60107, d.StrictMode = 60108, d.Profiler = 60114;
|
|
45721
|
-
var w = 60109;
|
|
45722
|
-
var _ = 60110;
|
|
45723
|
-
var S = 60112;
|
|
45724
|
-
d.Suspense = 60113;
|
|
45725
|
-
var R = 60115;
|
|
45726
|
-
var k = 60116;
|
|
45727
|
-
if ("function" == typeof Symbol && Symbol.for) {
|
|
45728
|
-
j = Symbol.for;
|
|
45729
|
-
b2 = j("react.element"), x = j("react.portal"), d.Fragment = j("react.fragment"), d.StrictMode = j("react.strict_mode"), d.Profiler = j("react.profiler"), w = j("react.provider"), _ = j("react.context"), S = j("react.forward_ref"), d.Suspense = j("react.suspense"), R = j("react.memo"), k = j("react.lazy");
|
|
45730
|
-
}
|
|
45731
|
-
var j;
|
|
45732
|
-
var C = "function" == typeof Symbol && Symbol.iterator;
|
|
45733
|
-
function O(e) {
|
|
45734
|
-
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, r = 1; r < arguments.length; r++) t += "&args[]=" + encodeURIComponent(arguments[r]);
|
|
45735
|
-
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
45736
|
-
}
|
|
45737
|
-
var E = { isMounted: function() {
|
|
45738
|
-
return false;
|
|
45739
|
-
}, enqueueForceUpdate: function() {
|
|
45740
|
-
}, enqueueReplaceState: function() {
|
|
45741
|
-
}, enqueueSetState: function() {
|
|
45742
|
-
} };
|
|
45743
|
-
var P = {};
|
|
45744
|
-
function F(e, t, r) {
|
|
45745
|
-
this.props = e, this.context = t, this.refs = P, this.updater = r || E;
|
|
45746
|
-
}
|
|
45747
|
-
function $() {
|
|
45748
|
-
}
|
|
45749
|
-
function A(e, t, r) {
|
|
45750
|
-
this.props = e, this.context = t, this.refs = P, this.updater = r || E;
|
|
45751
|
-
}
|
|
45752
|
-
F.prototype.isReactComponent = {}, F.prototype.setState = function(e, t) {
|
|
45753
|
-
if ("object" != typeof e && "function" != typeof e && null != e) throw Error(O(85));
|
|
45754
|
-
this.updater.enqueueSetState(this, e, t, "setState");
|
|
45755
|
-
}, F.prototype.forceUpdate = function(e) {
|
|
45756
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
45757
|
-
}, $.prototype = F.prototype;
|
|
45758
|
-
var I = A.prototype = new $();
|
|
45759
|
-
I.constructor = A, g(I, F.prototype), I.isPureReactComponent = true;
|
|
45760
|
-
var T = { current: null };
|
|
45761
|
-
var D = Object.prototype.hasOwnProperty;
|
|
45762
|
-
var N = { key: true, ref: true, __self: true, __source: true };
|
|
45763
|
-
function z(e, t, r) {
|
|
45764
|
-
var n, o = {}, a3 = null, i3 = null;
|
|
45765
|
-
if (null != t) for (n in void 0 !== t.ref && (i3 = t.ref), void 0 !== t.key && (a3 = "" + t.key), t) D.call(t, n) && !N.hasOwnProperty(n) && (o[n] = t[n]);
|
|
45766
|
-
var c3 = arguments.length - 2;
|
|
45767
|
-
if (1 === c3) o.children = r;
|
|
45768
|
-
else if (1 < c3) {
|
|
45769
|
-
for (var l2 = Array(c3), u2 = 0; u2 < c3; u2++) l2[u2] = arguments[u2 + 2];
|
|
45770
|
-
o.children = l2;
|
|
45771
|
-
}
|
|
45772
|
-
if (e && e.defaultProps) for (n in c3 = e.defaultProps) void 0 === o[n] && (o[n] = c3[n]);
|
|
45773
|
-
return { $$typeof: b2, type: e, key: a3, ref: i3, props: o, _owner: T.current };
|
|
45774
|
-
}
|
|
45775
|
-
function M(e) {
|
|
45776
|
-
return "object" == typeof e && null !== e && e.$$typeof === b2;
|
|
45777
|
-
}
|
|
45778
|
-
var W = /\/+/g;
|
|
45779
|
-
function U(e, t) {
|
|
45780
|
-
return "object" == typeof e && null !== e && null != e.key ? (function(e2) {
|
|
45781
|
-
var t2 = { "=": "=0", ":": "=2" };
|
|
45782
|
-
return "$" + e2.replace(/[=:]/g, (function(e3) {
|
|
45783
|
-
return t2[e3];
|
|
45784
|
-
}));
|
|
45785
|
-
})("" + e.key) : t.toString(36);
|
|
45786
|
-
}
|
|
45787
|
-
function V(e, t, r, n, o) {
|
|
45788
|
-
var a3 = typeof e;
|
|
45789
|
-
"undefined" !== a3 && "boolean" !== a3 || (e = null);
|
|
45790
|
-
var i3 = false;
|
|
45791
|
-
if (null === e) i3 = true;
|
|
45792
|
-
else switch (a3) {
|
|
45793
|
-
case "string":
|
|
45794
|
-
case "number":
|
|
45795
|
-
i3 = true;
|
|
45796
|
-
break;
|
|
45797
|
-
case "object":
|
|
45798
|
-
switch (e.$$typeof) {
|
|
45799
|
-
case b2:
|
|
45800
|
-
case x:
|
|
45801
|
-
i3 = true;
|
|
45802
|
-
}
|
|
45803
|
-
}
|
|
45804
|
-
if (i3) return o = o(i3 = e), e = "" === n ? "." + U(i3, 0) : n, Array.isArray(o) ? (r = "", null != e && (r = e.replace(W, "$&/") + "/"), V(o, t, r, "", (function(e2) {
|
|
45805
|
-
return e2;
|
|
45806
|
-
}))) : null != o && (M(o) && (o = (function(e2, t2) {
|
|
45807
|
-
return { $$typeof: b2, type: e2.type, key: t2, ref: e2.ref, props: e2.props, _owner: e2._owner };
|
|
45808
|
-
})(o, r + (!o.key || i3 && i3.key === o.key ? "" : ("" + o.key).replace(W, "$&/") + "/") + e)), t.push(o)), 1;
|
|
45809
|
-
if (i3 = 0, n = "" === n ? "." : n + ":", Array.isArray(e)) for (var c3 = 0; c3 < e.length; c3++) {
|
|
45810
|
-
var l2 = n + U(a3 = e[c3], c3);
|
|
45811
|
-
i3 += V(a3, t, r, l2, o);
|
|
45812
|
-
}
|
|
45813
|
-
else if (l2 = (function(e2) {
|
|
45814
|
-
return null === e2 || "object" != typeof e2 ? null : "function" == typeof (e2 = C && e2[C] || e2["@@iterator"]) ? e2 : null;
|
|
45815
|
-
})(e), "function" == typeof l2) for (e = l2.call(e), c3 = 0; !(a3 = e.next()).done; ) i3 += V(a3 = a3.value, t, r, l2 = n + U(a3, c3++), o);
|
|
45816
|
-
else if ("object" === a3) throw t = "" + e, Error(O(31, "[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t));
|
|
45817
|
-
return i3;
|
|
45818
|
-
}
|
|
45819
|
-
function X(e, t, r) {
|
|
45820
|
-
if (null == e) return e;
|
|
45821
|
-
var n = [], o = 0;
|
|
45822
|
-
return V(e, n, "", "", (function(e2) {
|
|
45823
|
-
return t.call(r, e2, o++);
|
|
45824
|
-
})), n;
|
|
45825
|
-
}
|
|
45826
|
-
function q(e) {
|
|
45827
|
-
if (-1 === e._status) {
|
|
45828
|
-
var t = e._result;
|
|
45829
|
-
t = t(), e._status = 0, e._result = t, t.then((function(t2) {
|
|
45830
|
-
0 === e._status && (t2 = t2.default, e._status = 1, e._result = t2);
|
|
45831
|
-
}), (function(t2) {
|
|
45832
|
-
0 === e._status && (e._status = 2, e._result = t2);
|
|
45833
|
-
}));
|
|
45834
|
-
}
|
|
45835
|
-
if (1 === e._status) return e._result;
|
|
45836
|
-
throw e._result;
|
|
45837
|
-
}
|
|
45838
|
-
var L = { current: null };
|
|
45839
|
-
function Y() {
|
|
45840
|
-
var e = L.current;
|
|
45841
|
-
if (null === e) throw Error(O(321));
|
|
45842
|
-
return e;
|
|
45843
|
-
}
|
|
45844
|
-
var B = { ReactCurrentDispatcher: L, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: T, IsSomeRendererActing: { current: false }, assign: g };
|
|
45845
|
-
d.Children = { map: X, forEach: function(e, t, r) {
|
|
45846
|
-
X(e, (function() {
|
|
45847
|
-
t.apply(this, arguments);
|
|
45848
|
-
}), r);
|
|
45849
|
-
}, count: function(e) {
|
|
45850
|
-
var t = 0;
|
|
45851
|
-
return X(e, (function() {
|
|
45852
|
-
t++;
|
|
45853
|
-
})), t;
|
|
45854
|
-
}, toArray: function(e) {
|
|
45855
|
-
return X(e, (function(e2) {
|
|
45856
|
-
return e2;
|
|
45857
|
-
})) || [];
|
|
45858
|
-
}, only: function(e) {
|
|
45859
|
-
if (!M(e)) throw Error(O(143));
|
|
45860
|
-
return e;
|
|
45861
|
-
} }, d.Component = F, d.PureComponent = A, d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = B, d.cloneElement = function(e, t, r) {
|
|
45862
|
-
if (null == e) throw Error(O(267, e));
|
|
45863
|
-
var n = g({}, e.props), o = e.key, a3 = e.ref, i3 = e._owner;
|
|
45864
|
-
if (null != t) {
|
|
45865
|
-
if (void 0 !== t.ref && (a3 = t.ref, i3 = T.current), void 0 !== t.key && (o = "" + t.key), e.type && e.type.defaultProps) var c3 = e.type.defaultProps;
|
|
45866
|
-
for (l2 in t) D.call(t, l2) && !N.hasOwnProperty(l2) && (n[l2] = void 0 === t[l2] && void 0 !== c3 ? c3[l2] : t[l2]);
|
|
45867
|
-
}
|
|
45868
|
-
var l2 = arguments.length - 2;
|
|
45869
|
-
if (1 === l2) n.children = r;
|
|
45870
|
-
else if (1 < l2) {
|
|
45871
|
-
c3 = Array(l2);
|
|
45872
|
-
for (var u2 = 0; u2 < l2; u2++) c3[u2] = arguments[u2 + 2];
|
|
45873
|
-
n.children = c3;
|
|
45874
|
-
}
|
|
45875
|
-
return { $$typeof: b2, type: e.type, key: o, ref: a3, props: n, _owner: i3 };
|
|
45876
|
-
}, d.createContext = function(e, t) {
|
|
45877
|
-
return void 0 === t && (t = null), (e = { $$typeof: _, _calculateChangedBits: t, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: w, _context: e }, e.Consumer = e;
|
|
45878
|
-
}, d.createElement = z, d.createFactory = function(e) {
|
|
45879
|
-
var t = z.bind(null, e);
|
|
45880
|
-
return t.type = e, t;
|
|
45881
|
-
}, d.createRef = function() {
|
|
45882
|
-
return { current: null };
|
|
45883
|
-
}, d.forwardRef = function(e) {
|
|
45884
|
-
return { $$typeof: S, render: e };
|
|
45885
|
-
}, d.isValidElement = M, d.lazy = function(e) {
|
|
45886
|
-
return { $$typeof: k, _payload: { _status: -1, _result: e }, _init: q };
|
|
45887
|
-
}, d.memo = function(e, t) {
|
|
45888
|
-
return { $$typeof: R, type: e, compare: void 0 === t ? null : t };
|
|
45889
|
-
}, d.useCallback = function(e, t) {
|
|
45890
|
-
return Y().useCallback(e, t);
|
|
45891
|
-
}, d.useContext = function(e, t) {
|
|
45892
|
-
return Y().useContext(e, t);
|
|
45893
|
-
}, d.useDebugValue = function() {
|
|
45894
|
-
}, d.useEffect = function(e, t) {
|
|
45895
|
-
return Y().useEffect(e, t);
|
|
45896
|
-
}, d.useImperativeHandle = function(e, t, r) {
|
|
45897
|
-
return Y().useImperativeHandle(e, t, r);
|
|
45898
|
-
}, d.useLayoutEffect = function(e, t) {
|
|
45899
|
-
return Y().useLayoutEffect(e, t);
|
|
45900
|
-
}, d.useMemo = function(e, t) {
|
|
45901
|
-
return Y().useMemo(e, t);
|
|
45902
|
-
}, d.useReducer = function(e, t, r) {
|
|
45903
|
-
return Y().useReducer(e, t, r);
|
|
45904
|
-
}, d.useRef = function(e) {
|
|
45905
|
-
return Y().useRef(e);
|
|
45906
|
-
}, d.useState = function(e) {
|
|
45907
|
-
return Y().useState(e);
|
|
45908
|
-
}, d.version = "17.0.2";
|
|
45909
|
-
var H;
|
|
45910
|
-
var G = {};
|
|
45911
|
-
H = G, false, true ? p.exports = d : p.exports = G;
|
|
45912
|
-
var J = p.exports;
|
|
45913
|
-
var K = (function() {
|
|
45914
|
-
return r = function e(r2) {
|
|
45915
|
-
var n2 = this;
|
|
45916
|
-
!(function(e2, t) {
|
|
45917
|
-
if (!(e2 instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
45918
|
-
})(this, e), u(this, "seperator", ","), this.promise = new Promise((function(e2, o2) {
|
|
45919
|
-
fetch(staticFile(r2)).then((function(e3) {
|
|
45920
|
-
return e3.text();
|
|
45921
|
-
})).then((function(t) {
|
|
45922
|
-
n2.text = t, e2();
|
|
45923
|
-
})).catch((function(e3) {
|
|
45924
|
-
console.log("Error fetching subtitles", e3), o2(e3);
|
|
45678
|
+
function m(t, e) {
|
|
45679
|
+
(null == e || e > t.length) && (e = t.length);
|
|
45680
|
+
for (var r = 0, a2 = new Array(e); r < e; r++) a2[r] = t[r];
|
|
45681
|
+
return a2;
|
|
45682
|
+
}
|
|
45683
|
+
var u = (function() {
|
|
45684
|
+
return r = function t(r2) {
|
|
45685
|
+
var a3 = this;
|
|
45686
|
+
!(function(t2, e) {
|
|
45687
|
+
if (!(t2 instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
45688
|
+
})(this, t), p(this, "seperator", ","), this.promise = new Promise((function(t2, n2) {
|
|
45689
|
+
fetch(staticFile(r2)).then((function(t3) {
|
|
45690
|
+
return t3.text();
|
|
45691
|
+
})).then((function(e) {
|
|
45692
|
+
a3.text = e, t2();
|
|
45693
|
+
})).catch((function(t3) {
|
|
45694
|
+
console.log("Error fetching subtitles", t3), n2(t3);
|
|
45925
45695
|
}));
|
|
45926
45696
|
}));
|
|
45927
|
-
},
|
|
45697
|
+
}, a2 = [{ key: "ready", value: function() {
|
|
45928
45698
|
return this.promise;
|
|
45929
|
-
} }, { key: "timestampToSeconds", value: function(
|
|
45930
|
-
var
|
|
45931
|
-
return parseInt(
|
|
45932
|
-
})),
|
|
45933
|
-
return Math.round(1e3 *
|
|
45934
|
-
} }, { key: "correctFormat", value: function(
|
|
45935
|
-
var
|
|
45936
|
-
|
|
45937
|
-
var
|
|
45938
|
-
return
|
|
45939
|
-
} }, { key: "fixed_str_digit", value: function(
|
|
45699
|
+
} }, { key: "timestampToSeconds", value: function(t) {
|
|
45700
|
+
var e = f(t.split(","), 2), r2 = e[0], a3 = e[1], n2 = parseInt(a3), o2 = f(r2.split(":").map((function(t2) {
|
|
45701
|
+
return parseInt(t2);
|
|
45702
|
+
})), 3), i3 = o2[0], l2 = o2[1], c3 = 1e-3 * n2 + o2[2] + 60 * l2 + 3600 * i3;
|
|
45703
|
+
return Math.round(1e3 * c3) / 1e3;
|
|
45704
|
+
} }, { key: "correctFormat", value: function(t) {
|
|
45705
|
+
var e, r2, a3, n2, o2 = f(t.replace(".", ",").split(","), 2), i3 = o2[0], l2 = o2[1];
|
|
45706
|
+
n2 = this.fixed_str_digit(3, l2);
|
|
45707
|
+
var c3 = f(i3.split(":"), 3), s2 = c3[0], p2 = c3[1], m2 = c3[2];
|
|
45708
|
+
return e = this.fixed_str_digit(2, s2, false), r2 = this.fixed_str_digit(2, p2, false), a3 = this.fixed_str_digit(2, m2, false), "".concat(e, ":").concat(r2, ":").concat(a3, ",").concat(n2);
|
|
45709
|
+
} }, { key: "fixed_str_digit", value: function(t, e) {
|
|
45940
45710
|
var r2 = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2];
|
|
45941
|
-
return
|
|
45942
|
-
} }, { key: "commaParser", value: function(
|
|
45943
|
-
var
|
|
45944
|
-
return
|
|
45945
|
-
} }, { key: "dotParser", value: function(
|
|
45946
|
-
var
|
|
45947
|
-
return
|
|
45948
|
-
} }, { key: "fromSrt", value: function(
|
|
45949
|
-
var
|
|
45950
|
-
0 == r2.length && (r2 = this.dotParser(
|
|
45951
|
-
for (var
|
|
45952
|
-
var
|
|
45953
|
-
|
|
45954
|
-
}
|
|
45955
|
-
return
|
|
45956
|
-
} }, { key: "toSrt", value: function(
|
|
45957
|
-
for (var
|
|
45958
|
-
var
|
|
45959
|
-
|
|
45960
|
-
}
|
|
45961
|
-
return
|
|
45711
|
+
return e.length == t ? e : e.length > t ? e.slice(0, t) : e.length < t ? r2 ? e.padEnd(t, "0") : e.padStart(t, "0") : void 0;
|
|
45712
|
+
} }, { key: "commaParser", value: function(t) {
|
|
45713
|
+
var e = (t = t.replace(/\r/g, "")).split(/(\d+)\n(\d{1,2}:\d{2}:\d{2},\d{1,3}) --> (\d{1,2}:\d{2}:\d{2},\d{1,3})/g);
|
|
45714
|
+
return e.shift(), e;
|
|
45715
|
+
} }, { key: "dotParser", value: function(t) {
|
|
45716
|
+
var e = (t = t.replace(/\r/g, "")).split(/(\d+)\n(\d{1,2}:\d{2}:\d{2}\.\d{1,3}) --> (\d{1,2}:\d{2}:\d{2}\.\d{1,3})/g);
|
|
45717
|
+
return e.shift(), this.seperator = ".", e;
|
|
45718
|
+
} }, { key: "fromSrt", value: function(t) {
|
|
45719
|
+
var e = t, r2 = this.commaParser(e);
|
|
45720
|
+
0 == r2.length && (r2 = this.dotParser(e));
|
|
45721
|
+
for (var a3 = [], n2 = 0; n2 < r2.length; n2 += 4) {
|
|
45722
|
+
var o2 = this.correctFormat(r2[n2 + 1].trim()), i3 = this.correctFormat(r2[n2 + 2].trim()), l2 = { id: r2[n2].trim(), startTime: o2, startSeconds: this.timestampToSeconds(o2), endTime: i3, endSeconds: this.timestampToSeconds(i3), text: r2[n2 + 3].trim() };
|
|
45723
|
+
a3.push(l2);
|
|
45724
|
+
}
|
|
45725
|
+
return a3;
|
|
45726
|
+
} }, { key: "toSrt", value: function(t) {
|
|
45727
|
+
for (var e = "", r2 = "\r\n", a3 = 0; a3 < t.length; a3++) {
|
|
45728
|
+
var n2 = t[a3];
|
|
45729
|
+
e += n2.id + r2, e += n2.startTime + " --> " + n2.endTime + r2, e += n2.text.replace("\n", r2) + r2 + r2;
|
|
45730
|
+
}
|
|
45731
|
+
return e;
|
|
45962
45732
|
} }, { key: "getSequences", value: function() {
|
|
45963
|
-
var
|
|
45964
|
-
return this.getArray(r2).map((function(r3,
|
|
45965
|
-
return
|
|
45733
|
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null, r2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 30;
|
|
45734
|
+
return this.getArray(r2).map((function(r3, a3) {
|
|
45735
|
+
return import_react128.default.createElement(Sequence, { key: a3, durationInFrames: r3.endFrame - r3.startFrame, from: r3.startFrame }, e && import_react128.default.isValidElement(e) ? import_react128.default.createElement(e.type, l(l({}, e.props), {}, { text: r3.text }), e.props.children) : import_react128.default.createElement("h1", null, r3.text));
|
|
45966
45736
|
}));
|
|
45967
|
-
} }, { key: "setData", value: function(
|
|
45968
|
-
this.text =
|
|
45969
|
-
} }, { key: "getArray", value: function(
|
|
45970
|
-
return this.fromSrt(this.text).map((function(
|
|
45971
|
-
return { text:
|
|
45737
|
+
} }, { key: "setData", value: function(t) {
|
|
45738
|
+
this.text = t;
|
|
45739
|
+
} }, { key: "getArray", value: function(t) {
|
|
45740
|
+
return this.fromSrt(this.text).map((function(e) {
|
|
45741
|
+
return { text: e.text, startFrame: e.startSeconds * t, endFrame: e.endSeconds * t };
|
|
45972
45742
|
}));
|
|
45973
|
-
} }],
|
|
45974
|
-
var r,
|
|
45743
|
+
} }], a2 && s(r.prototype, a2), n && s(r, n), Object.defineProperty(r, "prototype", { writable: false }), r;
|
|
45744
|
+
var r, a2, n;
|
|
45975
45745
|
})();
|
|
45976
|
-
var
|
|
45977
|
-
var
|
|
45746
|
+
var x = function(t) {
|
|
45747
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame();
|
|
45978
45748
|
useVideoConfig().fps;
|
|
45979
|
-
var
|
|
45980
|
-
return
|
|
45749
|
+
var s2 = l({ fontFamily: "Arial", fontSize: "11vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "-1px 1px 10px rgba(1, 1, 1, 0.95)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", opacity: interpolate(c3, [0, 5], [0, 1], { extrapolateRight: "clamp" }) }, i3);
|
|
45750
|
+
return import_react128.default.createElement("span", { style: s2 }, e);
|
|
45981
45751
|
};
|
|
45982
|
-
var
|
|
45983
|
-
var
|
|
45984
|
-
return
|
|
45752
|
+
var h = function(t) {
|
|
45753
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig().durationInFrames, p2 = interpolate(c3, [0, 0.1 * s2, 0.2 * s2, 0.3 * s2, 0.4 * s2, 0.8 * s2, 0.9 * s2, s2], [0, 20, 13, 0, 0, 13, 20, 0], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.2 * s2, 0.8 * s2, s2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), m2 = l({ fontFamily: "Consolas, monospace", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "".concat(p2, "px"), left: "50%", transform: "translateX(-50%)", opacity: f2 }, i3);
|
|
45754
|
+
return import_react128.default.createElement("span", { style: m2 }, e);
|
|
45985
45755
|
};
|
|
45986
|
-
var
|
|
45987
|
-
var
|
|
45988
|
-
return
|
|
45756
|
+
var g = function(t) {
|
|
45757
|
+
var e = t.text, a2 = t.style, i3 = useCurrentFrame(), c3 = l({ fontFamily: "Arial", fontSize: "11vmin", textAlign: "center", fontWeight: "bold", color: "rgb(".concat(interpolate(i3, [0, 10], [255, 0], { extrapolateRight: "clamp" }), ", ").concat(interpolate(i3, [0, 10], [0, 255], { extrapolateRight: "clamp" }), ", ").concat(interpolate(i3, [0, 10], [0, 255], { extrapolateRight: "clamp" }), ")"), textShadow: "-1px 1px 10px rgba(1, 1, 1, 0.95)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)" }, a2);
|
|
45758
|
+
return import_react128.default.createElement("span", { style: c3 }, e);
|
|
45989
45759
|
};
|
|
45990
|
-
var
|
|
45991
|
-
var
|
|
45992
|
-
return
|
|
45760
|
+
var d = function(t) {
|
|
45761
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig().durationInFrames, f2 = interpolate(c3, [0, 0.2 * s2, 0.6 * s2, s2], [0.5, 1.2, 1, 0.5], { extrapolateRight: "clamp" }), m2 = interpolate(c3, [0, 0.2 * s2, 0.6 * s2, s2], [0, 10, -10, 0], { extrapolateRight: "clamp" }), u2 = interpolate(c3, [0, 0.2 * s2, 0.6 * s2, s2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), x2 = "rgba(255, 255, 0, ".concat(interpolate(c3, [0, 0.2 * s2, 0.6 * s2, s2], [0, 0.8, 0.8, 0], { extrapolateRight: "clamp" }), ")"), h2 = l(p(p({ fontFamily: "Verdana, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 20px ".concat(x2, ", 0 0 40px ").concat(x2), transform: "scale(".concat(f2, ") rotate(").concat(m2, "deg)"), position: "absolute", bottom: "20px", left: "50%" }, "transform", "translateX(-50%)"), "opacity", u2), i3);
|
|
45762
|
+
return import_react128.default.createElement("span", { style: h2 }, e);
|
|
45993
45763
|
};
|
|
45994
|
-
var
|
|
45995
|
-
var
|
|
45996
|
-
return
|
|
45764
|
+
var y = function(t) {
|
|
45765
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig().durationInFrames, p2 = l({ fontFamily: "Georgia, serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", opacity: interpolate(c3, [0, 0.2 * s2, 0.8 * s2, s2], [0, 1, 1, 0], { extrapolateRight: "clamp" }) }, i3);
|
|
45766
|
+
return import_react128.default.createElement("span", { style: p2 }, e);
|
|
45997
45767
|
};
|
|
45998
|
-
var
|
|
45999
|
-
var
|
|
46000
|
-
return
|
|
45768
|
+
var b2 = function(t) {
|
|
45769
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig().durationInFrames, p2 = interpolate(c3, [0, 0.1 * s2, 0.2 * s2, 0.3 * s2, s2], [0, 10, -10, 10, 0], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.2 * s2, 0.6 * s2, s2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), m2 = l({ fontFamily: "Cinzel, serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "transparent", WebkitBackgroundClip: "text", backgroundImage: "linear-gradient(to right, \n hsl(".concat(interpolate(c3, [0, 0.5 * s2, s2], [0, 20, 20], { extrapolateRight: "clamp" }), ", 100%, 50%), \n hsl(").concat(interpolate(c3, [0, 0.5 * s2, s2], [30, 50, 50], { extrapolateRight: "clamp" }), ", 100%, 50%), \n hsl(").concat(interpolate(c3, [0, 0.5 * s2, s2], [60, 80, 80], { extrapolateRight: "clamp" }), ", 100%, 50%))"), backgroundSize: "200% 200%", backgroundPosition: "center", transform: "translateX(-50%) translateY(".concat(p2, "px)"), position: "absolute", bottom: "20px", left: "50%", opacity: f2 }, i3);
|
|
45770
|
+
return import_react128.default.createElement("span", { style: m2 }, e);
|
|
46001
45771
|
};
|
|
46002
|
-
var
|
|
46003
|
-
var
|
|
45772
|
+
var v = function(t) {
|
|
45773
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame();
|
|
46004
45774
|
useVideoConfig().fps;
|
|
46005
|
-
var
|
|
46006
|
-
return
|
|
45775
|
+
var s2 = interpolate(c3, [0, 5], [0, 1], { extrapolateRight: "clamp" }), p2 = interpolate(c3, [0, 2, 4, 6, 8], [0, 10, -10, 5, 0], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 3, 5, 7, 9], [0, 5, -5, 3, 0], { extrapolateRight: "clamp" }), m2 = l({ fontFamily: "VT323, monospace", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%) translateX(".concat(p2, "px) translateY(").concat(f2, "px)"), opacity: s2 }, i3);
|
|
45776
|
+
return import_react128.default.createElement("span", { style: m2 }, e);
|
|
46007
45777
|
};
|
|
46008
|
-
var
|
|
46009
|
-
var
|
|
46010
|
-
return
|
|
45778
|
+
var S = function(t) {
|
|
45779
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig().durationInFrames, f2 = interpolate(c3, [0, 0.2 * s2, 0.8 * s2, s2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), m2 = interpolate(c3, [0, 0.5 * s2, s2], [1, 1.2, 1], { extrapolateRight: "clamp" }), u2 = l(p({ fontFamily: "Helvetica, Arial, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 20px rgba(255, 255, 255, ".concat(f2, "), 0 0 50px rgba(255, 255, 255, ").concat(f2, ")"), transform: "scale(".concat(m2, ")"), position: "absolute", bottom: "20px", left: "50%" }, "transform", "translateX(-50%)"), i3);
|
|
45780
|
+
return import_react128.default.createElement("span", { style: u2 }, e);
|
|
46011
45781
|
};
|
|
46012
|
-
var
|
|
46013
|
-
var
|
|
46014
|
-
return
|
|
45782
|
+
var w = function(t) {
|
|
45783
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig().durationInFrames, p2 = interpolate(c3, [0, 0.1 * s2, 0.2 * s2, 0.3 * s2, s2], [0, 10, -10, 10, 0], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.1 * s2, 0.2 * s2, 0.3 * s2, s2], [0, 20, -20, 20, 0], { extrapolateRight: "clamp" }), m2 = interpolate(c3, [0, 0.2 * s2, 0.6 * s2, s2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), u2 = "rgba(255, 255, 255, ".concat(interpolate(c3, [0, 0.2 * s2, 0.6 * s2, s2], [0, 0.8, 0.8, 0], { extrapolateRight: "clamp" }), ")"), x2 = l({ fontFamily: "Bungee, cursive", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 20px ".concat(u2, ", 0 0 40px ").concat(u2), transform: "translateX(-50%) translateX(".concat(f2, "px) translateY(").concat(p2, "px)"), position: "absolute", bottom: "20px", left: "50%", opacity: m2 }, i3);
|
|
45784
|
+
return import_react128.default.createElement("span", { style: x2 }, e);
|
|
46015
45785
|
};
|
|
46016
|
-
var
|
|
46017
|
-
var
|
|
45786
|
+
var R = function(t) {
|
|
45787
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame();
|
|
46018
45788
|
useVideoConfig().fps;
|
|
46019
|
-
var
|
|
46020
|
-
return
|
|
45789
|
+
var s2 = interpolate(c3, [0, 5], [0, 1], { extrapolateRight: "clamp" }), p2 = "rgba(".concat(interpolate(c3, [0, 10], [255, 0], { extrapolateRight: "clamp" }), ", ").concat(interpolate(c3, [0, 10], [255, 255], { extrapolateRight: "clamp" }), ", ").concat(interpolate(c3, [0, 10], [0, 0], { extrapolateRight: "clamp" }), ", ").concat(s2, ")"), f2 = l({ fontFamily: "Neon Glow, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px ".concat(p2, ", 0 0 20px ").concat(p2, ", 0 0 30px ").concat(p2, ", 0 0 40px ").concat(p2), position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", opacity: s2 }, i3);
|
|
45790
|
+
return import_react128.default.createElement("span", { style: f2 }, e);
|
|
46021
45791
|
};
|
|
46022
|
-
var
|
|
46023
|
-
var
|
|
46024
|
-
return
|
|
45792
|
+
var F = function(t) {
|
|
45793
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig().durationInFrames, p2 = interpolate(c3, [0, 0.2 * s2, s2], [0, 360, 360], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.2 * s2, 0.8 * s2, s2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), m2 = l({ fontFamily: "Verdana, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%) rotate(".concat(p2, "deg)"), opacity: f2 }, i3);
|
|
45794
|
+
return import_react128.default.createElement("span", { style: m2 }, e);
|
|
46025
45795
|
};
|
|
46026
|
-
var
|
|
46027
|
-
var
|
|
46028
|
-
return
|
|
45796
|
+
var E = function(t) {
|
|
45797
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig().durationInFrames, p2 = interpolate(c3, [0, 0.1 * s2, 0.2 * s2, 0.3 * s2, 0.4 * s2, s2], [-15, 15, -15, 15, -15, 0], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.1 * s2, 0.2 * s2, 0.3 * s2, 0.4 * s2, s2], [0, 5, -5, 5, -5, 0], { extrapolateRight: "clamp" }), m2 = interpolate(c3, [0, 0.2 * s2, 0.8 * s2, s2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), u2 = interpolate(c3, [0, 0.3 * s2, 0.7 * s2, s2], [14, 0, 0, 14], { extrapolateRight: "clamp" }), x2 = l({ fontFamily: "Tahoma, sans-serif", fontSize: "10vmin", filter: "blur(".concat(u2, "px)"), textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(0, 0, 0, 0.9)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%) translateX(".concat(p2, "px) translateY(").concat(f2, "px)"), opacity: m2 }, i3);
|
|
45798
|
+
return import_react128.default.createElement("span", { style: x2 }, e);
|
|
46029
45799
|
};
|
|
46030
|
-
var
|
|
46031
|
-
var
|
|
46032
|
-
return
|
|
45800
|
+
var A = function(t) {
|
|
45801
|
+
var e = t.text, r = l({ fontFamily: '"Helvetica Neue", sans-serif', fontSize: "6em", color: "#22313F", textAlign: "center", textTransform: "uppercase", letterSpacing: "0.03em", textShadow: "-0.09em 0 0 #F22613, 0.09em 0 0 #00FFFF", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)" }, t.style);
|
|
45802
|
+
return import_react128.default.createElement("div", { style: r }, e);
|
|
46033
45803
|
};
|
|
46034
|
-
var
|
|
46035
|
-
var
|
|
45804
|
+
var O = function(t) {
|
|
45805
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame();
|
|
46036
45806
|
useVideoConfig().fps;
|
|
46037
|
-
var
|
|
46038
|
-
return
|
|
46039
|
-
};
|
|
46040
|
-
var
|
|
46041
|
-
var
|
|
46042
|
-
return
|
|
46043
|
-
};
|
|
46044
|
-
var
|
|
46045
|
-
var
|
|
46046
|
-
|
|
46047
|
-
var
|
|
46048
|
-
return
|
|
46049
|
-
return
|
|
45807
|
+
var s2 = interpolate(c3, [0, 5], [0, 1], { extrapolateRight: "clamp" }), p2 = interpolate(c3, [0, 5], [10, 0], { extrapolateRight: "clamp" }), f2 = l({ fontFamily: "Roboto, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", opacity: s2, filter: "blur(".concat(p2, "px)") }, i3);
|
|
45808
|
+
return import_react128.default.createElement("span", { style: f2 }, e);
|
|
45809
|
+
};
|
|
45810
|
+
var j = function(t) {
|
|
45811
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig(), p2 = s2.durationInFrames, f2 = s2.fps, m2 = interpolate(c3, [0, 0.5 * p2], [0, e.length], { extrapolateRight: "clamp" }), u2 = l({ fontFamily: "Courier New, monospace", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", overflow: "hidden", whiteSpace: "nowrap", width: "100%" }, i3);
|
|
45812
|
+
return import_react128.default.createElement("span", { style: u2 }, e.slice(0, Math.floor(m2)), import_react128.default.createElement("span", { style: { opacity: interpolate(c3 % (0.5 * f2), [0, 0.5 * f2], [0, 1], { extrapolateRight: "clamp" }) } }, "|"));
|
|
45813
|
+
};
|
|
45814
|
+
var k = function(t) {
|
|
45815
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig(), p2 = s2.durationInFrames;
|
|
45816
|
+
s2.fps;
|
|
45817
|
+
var f2 = interpolate(c3, [0, p2], [0, 2 * Math.PI], { extrapolateRight: "clamp" }), m2 = l({ fontFamily: "Georgia, serif", fontSize: "10vmin", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", display: "flex", flexDirection: "row", justifyContent: "center" }, i3);
|
|
45818
|
+
return import_react128.default.createElement("span", { style: m2 }, e.split("").map((function(t2, e2) {
|
|
45819
|
+
return import_react128.default.createElement("span", { key: e2, style: { transform: "translateY(".concat(20 * Math.sin(f2 + 0.5 * e2), "px)"), display: "inline-block", marginRight: "0.2em" } }, t2);
|
|
46050
45820
|
})));
|
|
46051
45821
|
};
|
|
46052
|
-
var
|
|
46053
|
-
var
|
|
46054
|
-
return
|
|
45822
|
+
var P = function(t) {
|
|
45823
|
+
var e = t.text, i3 = t.style, c3 = useCurrentFrame(), s2 = useVideoConfig().durationInFrames, p2 = interpolate(c3, [0, 0.1 * s2, 0.9 * s2, s2], [0.5, 1, 1, 0.5], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.1 * s2, 0.9 * s2, s2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), m2 = l({ fontFamily: "Roboto, Arial, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%) scale(".concat(p2, ")"), opacity: f2 }, i3);
|
|
45824
|
+
return import_react128.default.createElement("span", { style: m2 }, e);
|
|
46055
45825
|
};
|
|
46056
45826
|
|
|
46057
45827
|
// src/types/Subtitle.tsx
|
|
@@ -46727,7 +46497,7 @@ function $constructor(name, initializer3, params) {
|
|
|
46727
46497
|
Object.defineProperty(inst, "_zod", {
|
|
46728
46498
|
value: {
|
|
46729
46499
|
def,
|
|
46730
|
-
constr:
|
|
46500
|
+
constr: _,
|
|
46731
46501
|
traits: /* @__PURE__ */ new Set()
|
|
46732
46502
|
},
|
|
46733
46503
|
enumerable: false
|
|
@@ -46738,7 +46508,7 @@ function $constructor(name, initializer3, params) {
|
|
|
46738
46508
|
}
|
|
46739
46509
|
inst._zod.traits.add(name);
|
|
46740
46510
|
initializer3(inst, def);
|
|
46741
|
-
const proto =
|
|
46511
|
+
const proto = _.prototype;
|
|
46742
46512
|
const keys = Object.keys(proto);
|
|
46743
46513
|
for (let i3 = 0; i3 < keys.length; i3++) {
|
|
46744
46514
|
const k2 = keys[i3];
|
|
@@ -46751,7 +46521,7 @@ function $constructor(name, initializer3, params) {
|
|
|
46751
46521
|
class Definition extends Parent {
|
|
46752
46522
|
}
|
|
46753
46523
|
Object.defineProperty(Definition, "name", { value: name });
|
|
46754
|
-
function
|
|
46524
|
+
function _(def) {
|
|
46755
46525
|
var _a3;
|
|
46756
46526
|
const inst = params?.Parent ? new Definition() : this;
|
|
46757
46527
|
init(inst, def);
|
|
@@ -46761,16 +46531,16 @@ function $constructor(name, initializer3, params) {
|
|
|
46761
46531
|
}
|
|
46762
46532
|
return inst;
|
|
46763
46533
|
}
|
|
46764
|
-
Object.defineProperty(
|
|
46765
|
-
Object.defineProperty(
|
|
46534
|
+
Object.defineProperty(_, "init", { value: init });
|
|
46535
|
+
Object.defineProperty(_, Symbol.hasInstance, {
|
|
46766
46536
|
value: (inst) => {
|
|
46767
46537
|
if (params?.Parent && inst instanceof params.Parent)
|
|
46768
46538
|
return true;
|
|
46769
46539
|
return inst?._zod?.traits?.has(name);
|
|
46770
46540
|
}
|
|
46771
46541
|
});
|
|
46772
|
-
Object.defineProperty(
|
|
46773
|
-
return
|
|
46542
|
+
Object.defineProperty(_, "name", { value: name });
|
|
46543
|
+
return _;
|
|
46774
46544
|
}
|
|
46775
46545
|
var $brand = /* @__PURE__ */ Symbol("zod_brand");
|
|
46776
46546
|
var $ZodAsyncError = class extends Error {
|
|
@@ -46868,17 +46638,17 @@ function assertIs(_arg) {
|
|
|
46868
46638
|
function assertNever(_x) {
|
|
46869
46639
|
throw new Error("Unexpected value in exhaustive check");
|
|
46870
46640
|
}
|
|
46871
|
-
function assert(
|
|
46641
|
+
function assert(_) {
|
|
46872
46642
|
}
|
|
46873
46643
|
function getEnumValues(entries) {
|
|
46874
46644
|
const numericValues = Object.values(entries).filter((v2) => typeof v2 === "number");
|
|
46875
|
-
const values = Object.entries(entries).filter(([k2,
|
|
46645
|
+
const values = Object.entries(entries).filter(([k2, _]) => numericValues.indexOf(+k2) === -1).map(([_, v2]) => v2);
|
|
46876
46646
|
return values;
|
|
46877
46647
|
}
|
|
46878
46648
|
function joinValues(array2, separator = "|") {
|
|
46879
46649
|
return array2.map((val) => stringifyPrimitive(val)).join(separator);
|
|
46880
46650
|
}
|
|
46881
|
-
function jsonStringifyReplacer(
|
|
46651
|
+
function jsonStringifyReplacer(_, value) {
|
|
46882
46652
|
if (typeof value === "bigint")
|
|
46883
46653
|
return value.toString();
|
|
46884
46654
|
return value;
|
|
@@ -47007,14 +46777,14 @@ var allowsEval = cached(() => {
|
|
|
47007
46777
|
const F2 = Function;
|
|
47008
46778
|
new F2("");
|
|
47009
46779
|
return true;
|
|
47010
|
-
} catch (
|
|
46780
|
+
} catch (_) {
|
|
47011
46781
|
return false;
|
|
47012
46782
|
}
|
|
47013
46783
|
});
|
|
47014
|
-
function isPlainObject(
|
|
47015
|
-
if (isObject(
|
|
46784
|
+
function isPlainObject(o2) {
|
|
46785
|
+
if (isObject(o2) === false)
|
|
47016
46786
|
return false;
|
|
47017
|
-
const ctor =
|
|
46787
|
+
const ctor = o2.constructor;
|
|
47018
46788
|
if (ctor === void 0)
|
|
47019
46789
|
return true;
|
|
47020
46790
|
if (typeof ctor !== "function")
|
|
@@ -47027,12 +46797,12 @@ function isPlainObject(o) {
|
|
|
47027
46797
|
}
|
|
47028
46798
|
return true;
|
|
47029
46799
|
}
|
|
47030
|
-
function shallowClone(
|
|
47031
|
-
if (isPlainObject(
|
|
47032
|
-
return { ...
|
|
47033
|
-
if (Array.isArray(
|
|
47034
|
-
return [...
|
|
47035
|
-
return
|
|
46800
|
+
function shallowClone(o2) {
|
|
46801
|
+
if (isPlainObject(o2))
|
|
46802
|
+
return { ...o2 };
|
|
46803
|
+
if (Array.isArray(o2))
|
|
46804
|
+
return [...o2];
|
|
46805
|
+
return o2;
|
|
47036
46806
|
}
|
|
47037
46807
|
function numKeys(data2) {
|
|
47038
46808
|
let keyCount = 0;
|
|
@@ -47117,31 +46887,31 @@ function normalizeParams(_params) {
|
|
|
47117
46887
|
function createTransparentProxy(getter) {
|
|
47118
46888
|
let target;
|
|
47119
46889
|
return new Proxy({}, {
|
|
47120
|
-
get(
|
|
46890
|
+
get(_, prop, receiver) {
|
|
47121
46891
|
target ?? (target = getter());
|
|
47122
46892
|
return Reflect.get(target, prop, receiver);
|
|
47123
46893
|
},
|
|
47124
|
-
set(
|
|
46894
|
+
set(_, prop, value, receiver) {
|
|
47125
46895
|
target ?? (target = getter());
|
|
47126
46896
|
return Reflect.set(target, prop, value, receiver);
|
|
47127
46897
|
},
|
|
47128
|
-
has(
|
|
46898
|
+
has(_, prop) {
|
|
47129
46899
|
target ?? (target = getter());
|
|
47130
46900
|
return Reflect.has(target, prop);
|
|
47131
46901
|
},
|
|
47132
|
-
deleteProperty(
|
|
46902
|
+
deleteProperty(_, prop) {
|
|
47133
46903
|
target ?? (target = getter());
|
|
47134
46904
|
return Reflect.deleteProperty(target, prop);
|
|
47135
46905
|
},
|
|
47136
|
-
ownKeys(
|
|
46906
|
+
ownKeys(_) {
|
|
47137
46907
|
target ?? (target = getter());
|
|
47138
46908
|
return Reflect.ownKeys(target);
|
|
47139
46909
|
},
|
|
47140
|
-
getOwnPropertyDescriptor(
|
|
46910
|
+
getOwnPropertyDescriptor(_, prop) {
|
|
47141
46911
|
target ?? (target = getter());
|
|
47142
46912
|
return Reflect.getOwnPropertyDescriptor(target, prop);
|
|
47143
46913
|
},
|
|
47144
|
-
defineProperty(
|
|
46914
|
+
defineProperty(_, prop, descriptor) {
|
|
47145
46915
|
target ?? (target = getter());
|
|
47146
46916
|
return Reflect.defineProperty(target, prop, descriptor);
|
|
47147
46917
|
}
|
|
@@ -47256,10 +47026,10 @@ function safeExtend(schema, shape) {
|
|
|
47256
47026
|
});
|
|
47257
47027
|
return clone(schema, def);
|
|
47258
47028
|
}
|
|
47259
|
-
function merge(
|
|
47260
|
-
const def = mergeDefs(
|
|
47029
|
+
function merge(a2, b3) {
|
|
47030
|
+
const def = mergeDefs(a2._zod.def, {
|
|
47261
47031
|
get shape() {
|
|
47262
|
-
const _shape = { ...
|
|
47032
|
+
const _shape = { ...a2._zod.def.shape, ...b3._zod.def.shape };
|
|
47263
47033
|
assignProp(this, "shape", _shape);
|
|
47264
47034
|
return _shape;
|
|
47265
47035
|
},
|
|
@@ -47269,7 +47039,7 @@ function merge(a3, b3) {
|
|
|
47269
47039
|
checks: []
|
|
47270
47040
|
// delete existing checks
|
|
47271
47041
|
});
|
|
47272
|
-
return clone(
|
|
47042
|
+
return clone(a2, def);
|
|
47273
47043
|
}
|
|
47274
47044
|
function partial(Class2, schema, mask) {
|
|
47275
47045
|
const currDef = schema._zod.def;
|
|
@@ -47424,7 +47194,7 @@ function issue(...args) {
|
|
|
47424
47194
|
return { ...iss };
|
|
47425
47195
|
}
|
|
47426
47196
|
function cleanEnum(obj) {
|
|
47427
|
-
return Object.entries(obj).filter(([k2,
|
|
47197
|
+
return Object.entries(obj).filter(([k2, _]) => {
|
|
47428
47198
|
return Number.isNaN(Number.parseInt(k2, 10));
|
|
47429
47199
|
}).map((el) => el[1]);
|
|
47430
47200
|
}
|
|
@@ -47597,7 +47367,7 @@ function toDotPath(_path) {
|
|
|
47597
47367
|
}
|
|
47598
47368
|
function prettifyError(error49) {
|
|
47599
47369
|
const lines = [];
|
|
47600
|
-
const issues = [...error49.issues].sort((
|
|
47370
|
+
const issues = [...error49.issues].sort((a2, b3) => (a2.path ?? []).length - (b3.path ?? []).length);
|
|
47601
47371
|
for (const issue2 of issues) {
|
|
47602
47372
|
lines.push(`\u2716 ${issue2.message}`);
|
|
47603
47373
|
if (issue2.path?.length)
|
|
@@ -48476,13 +48246,13 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
48476
48246
|
continue;
|
|
48477
48247
|
}
|
|
48478
48248
|
const currLen = payload.issues.length;
|
|
48479
|
-
const
|
|
48480
|
-
if (
|
|
48249
|
+
const _ = ch._zod.check(payload);
|
|
48250
|
+
if (_ instanceof Promise && ctx?.async === false) {
|
|
48481
48251
|
throw new $ZodAsyncError();
|
|
48482
48252
|
}
|
|
48483
|
-
if (asyncResult ||
|
|
48253
|
+
if (asyncResult || _ instanceof Promise) {
|
|
48484
48254
|
asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
|
|
48485
|
-
await
|
|
48255
|
+
await _;
|
|
48486
48256
|
const nextLen = payload.issues.length;
|
|
48487
48257
|
if (nextLen === currLen)
|
|
48488
48258
|
return;
|
|
@@ -48544,7 +48314,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
48544
48314
|
try {
|
|
48545
48315
|
const r = safeParse(inst, value);
|
|
48546
48316
|
return r.success ? { value: r.data } : { issues: r.error?.issues };
|
|
48547
|
-
} catch (
|
|
48317
|
+
} catch (_) {
|
|
48548
48318
|
return safeParseAsync(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
|
|
48549
48319
|
}
|
|
48550
48320
|
},
|
|
@@ -48555,11 +48325,11 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
48555
48325
|
var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
48556
48326
|
$ZodType.init(inst, def);
|
|
48557
48327
|
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string(inst._zod.bag);
|
|
48558
|
-
inst._zod.parse = (payload,
|
|
48328
|
+
inst._zod.parse = (payload, _) => {
|
|
48559
48329
|
if (def.coerce)
|
|
48560
48330
|
try {
|
|
48561
48331
|
payload.value = String(payload.value);
|
|
48562
|
-
} catch (
|
|
48332
|
+
} catch (_2) {
|
|
48563
48333
|
}
|
|
48564
48334
|
if (typeof payload.value === "string")
|
|
48565
48335
|
return payload;
|
|
@@ -48644,7 +48414,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
48644
48414
|
payload.value = trimmed;
|
|
48645
48415
|
}
|
|
48646
48416
|
return;
|
|
48647
|
-
} catch (
|
|
48417
|
+
} catch (_) {
|
|
48648
48418
|
payload.issues.push({
|
|
48649
48419
|
code: "invalid_format",
|
|
48650
48420
|
format: "url",
|
|
@@ -48869,7 +48639,7 @@ var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
48869
48639
|
if (def.coerce)
|
|
48870
48640
|
try {
|
|
48871
48641
|
payload.value = Number(payload.value);
|
|
48872
|
-
} catch (
|
|
48642
|
+
} catch (_) {
|
|
48873
48643
|
}
|
|
48874
48644
|
const input = payload.value;
|
|
48875
48645
|
if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
|
|
@@ -48897,7 +48667,7 @@ var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
|
48897
48667
|
if (def.coerce)
|
|
48898
48668
|
try {
|
|
48899
48669
|
payload.value = Boolean(payload.value);
|
|
48900
|
-
} catch (
|
|
48670
|
+
} catch (_) {
|
|
48901
48671
|
}
|
|
48902
48672
|
const input = payload.value;
|
|
48903
48673
|
if (typeof input === "boolean")
|
|
@@ -48918,7 +48688,7 @@ var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
48918
48688
|
if (def.coerce)
|
|
48919
48689
|
try {
|
|
48920
48690
|
payload.value = BigInt(payload.value);
|
|
48921
|
-
} catch (
|
|
48691
|
+
} catch (_) {
|
|
48922
48692
|
}
|
|
48923
48693
|
if (typeof payload.value === "bigint")
|
|
48924
48694
|
return payload;
|
|
@@ -49333,17 +49103,17 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
49333
49103
|
}
|
|
49334
49104
|
var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
49335
49105
|
$ZodType.init(inst, def);
|
|
49336
|
-
defineLazy(inst._zod, "optin", () => def.options.some((
|
|
49337
|
-
defineLazy(inst._zod, "optout", () => def.options.some((
|
|
49106
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o2) => o2._zod.optin === "optional") ? "optional" : void 0);
|
|
49107
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o2) => o2._zod.optout === "optional") ? "optional" : void 0);
|
|
49338
49108
|
defineLazy(inst._zod, "values", () => {
|
|
49339
|
-
if (def.options.every((
|
|
49109
|
+
if (def.options.every((o2) => o2._zod.values)) {
|
|
49340
49110
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
49341
49111
|
}
|
|
49342
49112
|
return void 0;
|
|
49343
49113
|
});
|
|
49344
49114
|
defineLazy(inst._zod, "pattern", () => {
|
|
49345
|
-
if (def.options.every((
|
|
49346
|
-
const patterns = def.options.map((
|
|
49115
|
+
if (def.options.every((o2) => o2._zod.pattern)) {
|
|
49116
|
+
const patterns = def.options.map((o2) => o2._zod.pattern);
|
|
49347
49117
|
return new RegExp(`^(${patterns.map((p2) => cleanRegex(p2.source)).join("|")})$`);
|
|
49348
49118
|
}
|
|
49349
49119
|
return void 0;
|
|
@@ -49454,15 +49224,15 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
49454
49224
|
const disc = cached(() => {
|
|
49455
49225
|
const opts = def.options;
|
|
49456
49226
|
const map2 = /* @__PURE__ */ new Map();
|
|
49457
|
-
for (const
|
|
49458
|
-
const values =
|
|
49227
|
+
for (const o2 of opts) {
|
|
49228
|
+
const values = o2._zod.propValues?.[def.discriminator];
|
|
49459
49229
|
if (!values || values.size === 0)
|
|
49460
|
-
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(
|
|
49230
|
+
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o2)}"`);
|
|
49461
49231
|
for (const v2 of values) {
|
|
49462
49232
|
if (map2.has(v2)) {
|
|
49463
49233
|
throw new Error(`Duplicate discriminator value "${String(v2)}"`);
|
|
49464
49234
|
}
|
|
49465
|
-
map2.set(v2,
|
|
49235
|
+
map2.set(v2, o2);
|
|
49466
49236
|
}
|
|
49467
49237
|
}
|
|
49468
49238
|
return map2;
|
|
@@ -49512,19 +49282,19 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
|
|
|
49512
49282
|
return handleIntersectionResults(payload, left, right);
|
|
49513
49283
|
};
|
|
49514
49284
|
});
|
|
49515
|
-
function mergeValues2(
|
|
49516
|
-
if (
|
|
49517
|
-
return { valid: true, data:
|
|
49285
|
+
function mergeValues2(a2, b3) {
|
|
49286
|
+
if (a2 === b3) {
|
|
49287
|
+
return { valid: true, data: a2 };
|
|
49518
49288
|
}
|
|
49519
|
-
if (
|
|
49520
|
-
return { valid: true, data:
|
|
49289
|
+
if (a2 instanceof Date && b3 instanceof Date && +a2 === +b3) {
|
|
49290
|
+
return { valid: true, data: a2 };
|
|
49521
49291
|
}
|
|
49522
|
-
if (isPlainObject(
|
|
49292
|
+
if (isPlainObject(a2) && isPlainObject(b3)) {
|
|
49523
49293
|
const bKeys = Object.keys(b3);
|
|
49524
|
-
const sharedKeys = Object.keys(
|
|
49525
|
-
const newObj = { ...
|
|
49294
|
+
const sharedKeys = Object.keys(a2).filter((key) => bKeys.indexOf(key) !== -1);
|
|
49295
|
+
const newObj = { ...a2, ...b3 };
|
|
49526
49296
|
for (const key of sharedKeys) {
|
|
49527
|
-
const sharedValue = mergeValues2(
|
|
49297
|
+
const sharedValue = mergeValues2(a2[key], b3[key]);
|
|
49528
49298
|
if (!sharedValue.valid) {
|
|
49529
49299
|
return {
|
|
49530
49300
|
valid: false,
|
|
@@ -49535,13 +49305,13 @@ function mergeValues2(a3, b3) {
|
|
|
49535
49305
|
}
|
|
49536
49306
|
return { valid: true, data: newObj };
|
|
49537
49307
|
}
|
|
49538
|
-
if (Array.isArray(
|
|
49539
|
-
if (
|
|
49308
|
+
if (Array.isArray(a2) && Array.isArray(b3)) {
|
|
49309
|
+
if (a2.length !== b3.length) {
|
|
49540
49310
|
return { valid: false, mergeErrorPath: [] };
|
|
49541
49311
|
}
|
|
49542
49312
|
const newArray = [];
|
|
49543
|
-
for (let index = 0; index <
|
|
49544
|
-
const itemA =
|
|
49313
|
+
for (let index = 0; index < a2.length; index++) {
|
|
49314
|
+
const itemA = a2[index];
|
|
49545
49315
|
const itemB = b3[index];
|
|
49546
49316
|
const sharedValue = mergeValues2(itemA, itemB);
|
|
49547
49317
|
if (!sharedValue.valid) {
|
|
@@ -49876,7 +49646,7 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
49876
49646
|
const values = getEnumValues(def.entries);
|
|
49877
49647
|
const valuesSet = new Set(values);
|
|
49878
49648
|
inst._zod.values = valuesSet;
|
|
49879
|
-
inst._zod.pattern = new RegExp(`^(${values.filter((k2) => propertyKeyTypes.has(typeof k2)).map((
|
|
49649
|
+
inst._zod.pattern = new RegExp(`^(${values.filter((k2) => propertyKeyTypes.has(typeof k2)).map((o2) => typeof o2 === "string" ? escapeRegex(o2) : o2.toString()).join("|")})$`);
|
|
49880
49650
|
inst._zod.parse = (payload, _ctx) => {
|
|
49881
49651
|
const input = payload.value;
|
|
49882
49652
|
if (valuesSet.has(input)) {
|
|
@@ -49898,7 +49668,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
49898
49668
|
}
|
|
49899
49669
|
const values = new Set(def.values);
|
|
49900
49670
|
inst._zod.values = values;
|
|
49901
|
-
inst._zod.pattern = new RegExp(`^(${def.values.map((
|
|
49671
|
+
inst._zod.pattern = new RegExp(`^(${def.values.map((o2) => typeof o2 === "string" ? escapeRegex(o2) : o2 ? escapeRegex(o2.toString()) : String(o2)).join("|")})$`);
|
|
49902
49672
|
inst._zod.parse = (payload, _ctx) => {
|
|
49903
49673
|
const input = payload.value;
|
|
49904
49674
|
if (values.has(input)) {
|
|
@@ -50382,7 +50152,7 @@ var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
|
50382
50152
|
var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
|
|
50383
50153
|
$ZodCheck.init(inst, def);
|
|
50384
50154
|
$ZodType.init(inst, def);
|
|
50385
|
-
inst._zod.parse = (payload,
|
|
50155
|
+
inst._zod.parse = (payload, _) => {
|
|
50386
50156
|
return payload;
|
|
50387
50157
|
};
|
|
50388
50158
|
inst._zod.check = (payload) => {
|
|
@@ -57736,7 +57506,7 @@ var unionProcessor = (schema, ctx, json2, params) => {
|
|
|
57736
57506
|
};
|
|
57737
57507
|
var intersectionProcessor = (schema, ctx, json2, params) => {
|
|
57738
57508
|
const def = schema._zod.def;
|
|
57739
|
-
const
|
|
57509
|
+
const a2 = process2(def.left, ctx, {
|
|
57740
57510
|
...params,
|
|
57741
57511
|
path: [...params.path, "allOf", 0]
|
|
57742
57512
|
});
|
|
@@ -57746,7 +57516,7 @@ var intersectionProcessor = (schema, ctx, json2, params) => {
|
|
|
57746
57516
|
});
|
|
57747
57517
|
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
57748
57518
|
const allOf = [
|
|
57749
|
-
...isSimpleIntersection(
|
|
57519
|
+
...isSimpleIntersection(a2) ? a2.allOf : [a2],
|
|
57750
57520
|
...isSimpleIntersection(b3) ? b3.allOf : [b3]
|
|
57751
57521
|
];
|
|
57752
57522
|
json2.allOf = allOf;
|
|
@@ -57953,7 +57723,7 @@ function toJSONSchema(input, params) {
|
|
|
57953
57723
|
const ctx2 = initializeContext({ ...params, processors: allProcessors });
|
|
57954
57724
|
const defs = {};
|
|
57955
57725
|
for (const entry of registry2._idmap.entries()) {
|
|
57956
|
-
const [
|
|
57726
|
+
const [_, schema] = entry;
|
|
57957
57727
|
process2(schema, ctx2);
|
|
57958
57728
|
}
|
|
57959
57729
|
const schemas = {};
|
|
@@ -58052,7 +57822,7 @@ var JSONSchemaGenerator = class {
|
|
|
58052
57822
|
}
|
|
58053
57823
|
extractDefs(this.ctx, schema);
|
|
58054
57824
|
const result = finalize(this.ctx, schema);
|
|
58055
|
-
const { "~standard":
|
|
57825
|
+
const { "~standard": _, ...plainResult } = result;
|
|
58056
57826
|
return plainResult;
|
|
58057
57827
|
}
|
|
58058
57828
|
};
|
|
@@ -59464,7 +59234,7 @@ var ZodFirstPartyTypeKind;
|
|
|
59464
59234
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
59465
59235
|
|
|
59466
59236
|
// node_modules/zod/v4/classic/from-json-schema.js
|
|
59467
|
-
var
|
|
59237
|
+
var z = {
|
|
59468
59238
|
...schemas_exports2,
|
|
59469
59239
|
...checks_exports2,
|
|
59470
59240
|
iso: iso_exports
|
|
@@ -59574,7 +59344,7 @@ function resolveRef(ref2, ctx) {
|
|
|
59574
59344
|
function convertBaseSchema(schema, ctx) {
|
|
59575
59345
|
if (schema.not !== void 0) {
|
|
59576
59346
|
if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) {
|
|
59577
|
-
return
|
|
59347
|
+
return z.never();
|
|
59578
59348
|
}
|
|
59579
59349
|
throw new Error("not is not supported in Zod (except { not: {} } for never)");
|
|
59580
59350
|
}
|
|
@@ -59596,7 +59366,7 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59596
59366
|
return ctx.refs.get(refPath);
|
|
59597
59367
|
}
|
|
59598
59368
|
if (ctx.processing.has(refPath)) {
|
|
59599
|
-
return
|
|
59369
|
+
return z.lazy(() => {
|
|
59600
59370
|
if (!ctx.refs.has(refPath)) {
|
|
59601
59371
|
throw new Error(`Circular reference not resolved: ${refPath}`);
|
|
59602
59372
|
}
|
|
@@ -59613,25 +59383,25 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59613
59383
|
if (schema.enum !== void 0) {
|
|
59614
59384
|
const enumValues = schema.enum;
|
|
59615
59385
|
if (ctx.version === "openapi-3.0" && schema.nullable === true && enumValues.length === 1 && enumValues[0] === null) {
|
|
59616
|
-
return
|
|
59386
|
+
return z.null();
|
|
59617
59387
|
}
|
|
59618
59388
|
if (enumValues.length === 0) {
|
|
59619
|
-
return
|
|
59389
|
+
return z.never();
|
|
59620
59390
|
}
|
|
59621
59391
|
if (enumValues.length === 1) {
|
|
59622
|
-
return
|
|
59392
|
+
return z.literal(enumValues[0]);
|
|
59623
59393
|
}
|
|
59624
59394
|
if (enumValues.every((v2) => typeof v2 === "string")) {
|
|
59625
|
-
return
|
|
59395
|
+
return z.enum(enumValues);
|
|
59626
59396
|
}
|
|
59627
|
-
const literalSchemas = enumValues.map((v2) =>
|
|
59397
|
+
const literalSchemas = enumValues.map((v2) => z.literal(v2));
|
|
59628
59398
|
if (literalSchemas.length < 2) {
|
|
59629
59399
|
return literalSchemas[0];
|
|
59630
59400
|
}
|
|
59631
|
-
return
|
|
59401
|
+
return z.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
|
|
59632
59402
|
}
|
|
59633
59403
|
if (schema.const !== void 0) {
|
|
59634
|
-
return
|
|
59404
|
+
return z.literal(schema.const);
|
|
59635
59405
|
}
|
|
59636
59406
|
const type = schema.type;
|
|
59637
59407
|
if (Array.isArray(type)) {
|
|
@@ -59640,68 +59410,68 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59640
59410
|
return convertBaseSchema(typeSchema, ctx);
|
|
59641
59411
|
});
|
|
59642
59412
|
if (typeSchemas.length === 0) {
|
|
59643
|
-
return
|
|
59413
|
+
return z.never();
|
|
59644
59414
|
}
|
|
59645
59415
|
if (typeSchemas.length === 1) {
|
|
59646
59416
|
return typeSchemas[0];
|
|
59647
59417
|
}
|
|
59648
|
-
return
|
|
59418
|
+
return z.union(typeSchemas);
|
|
59649
59419
|
}
|
|
59650
59420
|
if (!type) {
|
|
59651
|
-
return
|
|
59421
|
+
return z.any();
|
|
59652
59422
|
}
|
|
59653
59423
|
let zodSchema;
|
|
59654
59424
|
switch (type) {
|
|
59655
59425
|
case "string": {
|
|
59656
|
-
let stringSchema =
|
|
59426
|
+
let stringSchema = z.string();
|
|
59657
59427
|
if (schema.format) {
|
|
59658
59428
|
const format = schema.format;
|
|
59659
59429
|
if (format === "email") {
|
|
59660
|
-
stringSchema = stringSchema.check(
|
|
59430
|
+
stringSchema = stringSchema.check(z.email());
|
|
59661
59431
|
} else if (format === "uri" || format === "uri-reference") {
|
|
59662
|
-
stringSchema = stringSchema.check(
|
|
59432
|
+
stringSchema = stringSchema.check(z.url());
|
|
59663
59433
|
} else if (format === "uuid" || format === "guid") {
|
|
59664
|
-
stringSchema = stringSchema.check(
|
|
59434
|
+
stringSchema = stringSchema.check(z.uuid());
|
|
59665
59435
|
} else if (format === "date-time") {
|
|
59666
|
-
stringSchema = stringSchema.check(
|
|
59436
|
+
stringSchema = stringSchema.check(z.iso.datetime());
|
|
59667
59437
|
} else if (format === "date") {
|
|
59668
|
-
stringSchema = stringSchema.check(
|
|
59438
|
+
stringSchema = stringSchema.check(z.iso.date());
|
|
59669
59439
|
} else if (format === "time") {
|
|
59670
|
-
stringSchema = stringSchema.check(
|
|
59440
|
+
stringSchema = stringSchema.check(z.iso.time());
|
|
59671
59441
|
} else if (format === "duration") {
|
|
59672
|
-
stringSchema = stringSchema.check(
|
|
59442
|
+
stringSchema = stringSchema.check(z.iso.duration());
|
|
59673
59443
|
} else if (format === "ipv4") {
|
|
59674
|
-
stringSchema = stringSchema.check(
|
|
59444
|
+
stringSchema = stringSchema.check(z.ipv4());
|
|
59675
59445
|
} else if (format === "ipv6") {
|
|
59676
|
-
stringSchema = stringSchema.check(
|
|
59446
|
+
stringSchema = stringSchema.check(z.ipv6());
|
|
59677
59447
|
} else if (format === "mac") {
|
|
59678
|
-
stringSchema = stringSchema.check(
|
|
59448
|
+
stringSchema = stringSchema.check(z.mac());
|
|
59679
59449
|
} else if (format === "cidr") {
|
|
59680
|
-
stringSchema = stringSchema.check(
|
|
59450
|
+
stringSchema = stringSchema.check(z.cidrv4());
|
|
59681
59451
|
} else if (format === "cidr-v6") {
|
|
59682
|
-
stringSchema = stringSchema.check(
|
|
59452
|
+
stringSchema = stringSchema.check(z.cidrv6());
|
|
59683
59453
|
} else if (format === "base64") {
|
|
59684
|
-
stringSchema = stringSchema.check(
|
|
59454
|
+
stringSchema = stringSchema.check(z.base64());
|
|
59685
59455
|
} else if (format === "base64url") {
|
|
59686
|
-
stringSchema = stringSchema.check(
|
|
59456
|
+
stringSchema = stringSchema.check(z.base64url());
|
|
59687
59457
|
} else if (format === "e164") {
|
|
59688
|
-
stringSchema = stringSchema.check(
|
|
59458
|
+
stringSchema = stringSchema.check(z.e164());
|
|
59689
59459
|
} else if (format === "jwt") {
|
|
59690
|
-
stringSchema = stringSchema.check(
|
|
59460
|
+
stringSchema = stringSchema.check(z.jwt());
|
|
59691
59461
|
} else if (format === "emoji") {
|
|
59692
|
-
stringSchema = stringSchema.check(
|
|
59462
|
+
stringSchema = stringSchema.check(z.emoji());
|
|
59693
59463
|
} else if (format === "nanoid") {
|
|
59694
|
-
stringSchema = stringSchema.check(
|
|
59464
|
+
stringSchema = stringSchema.check(z.nanoid());
|
|
59695
59465
|
} else if (format === "cuid") {
|
|
59696
|
-
stringSchema = stringSchema.check(
|
|
59466
|
+
stringSchema = stringSchema.check(z.cuid());
|
|
59697
59467
|
} else if (format === "cuid2") {
|
|
59698
|
-
stringSchema = stringSchema.check(
|
|
59468
|
+
stringSchema = stringSchema.check(z.cuid2());
|
|
59699
59469
|
} else if (format === "ulid") {
|
|
59700
|
-
stringSchema = stringSchema.check(
|
|
59470
|
+
stringSchema = stringSchema.check(z.ulid());
|
|
59701
59471
|
} else if (format === "xid") {
|
|
59702
|
-
stringSchema = stringSchema.check(
|
|
59472
|
+
stringSchema = stringSchema.check(z.xid());
|
|
59703
59473
|
} else if (format === "ksuid") {
|
|
59704
|
-
stringSchema = stringSchema.check(
|
|
59474
|
+
stringSchema = stringSchema.check(z.ksuid());
|
|
59705
59475
|
}
|
|
59706
59476
|
}
|
|
59707
59477
|
if (typeof schema.minLength === "number") {
|
|
@@ -59718,7 +59488,7 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59718
59488
|
}
|
|
59719
59489
|
case "number":
|
|
59720
59490
|
case "integer": {
|
|
59721
|
-
let numberSchema = type === "integer" ?
|
|
59491
|
+
let numberSchema = type === "integer" ? z.number().int() : z.number();
|
|
59722
59492
|
if (typeof schema.minimum === "number") {
|
|
59723
59493
|
numberSchema = numberSchema.min(schema.minimum);
|
|
59724
59494
|
}
|
|
@@ -59742,11 +59512,11 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59742
59512
|
break;
|
|
59743
59513
|
}
|
|
59744
59514
|
case "boolean": {
|
|
59745
|
-
zodSchema =
|
|
59515
|
+
zodSchema = z.boolean();
|
|
59746
59516
|
break;
|
|
59747
59517
|
}
|
|
59748
59518
|
case "null": {
|
|
59749
|
-
zodSchema =
|
|
59519
|
+
zodSchema = z.null();
|
|
59750
59520
|
break;
|
|
59751
59521
|
}
|
|
59752
59522
|
case "object": {
|
|
@@ -59759,14 +59529,14 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59759
59529
|
}
|
|
59760
59530
|
if (schema.propertyNames) {
|
|
59761
59531
|
const keySchema = convertSchema(schema.propertyNames, ctx);
|
|
59762
|
-
const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) :
|
|
59532
|
+
const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : z.any();
|
|
59763
59533
|
if (Object.keys(shape).length === 0) {
|
|
59764
|
-
zodSchema =
|
|
59534
|
+
zodSchema = z.record(keySchema, valueSchema);
|
|
59765
59535
|
break;
|
|
59766
59536
|
}
|
|
59767
|
-
const objectSchema2 =
|
|
59768
|
-
const recordSchema =
|
|
59769
|
-
zodSchema =
|
|
59537
|
+
const objectSchema2 = z.object(shape).passthrough();
|
|
59538
|
+
const recordSchema = z.looseRecord(keySchema, valueSchema);
|
|
59539
|
+
zodSchema = z.intersection(objectSchema2, recordSchema);
|
|
59770
59540
|
break;
|
|
59771
59541
|
}
|
|
59772
59542
|
if (schema.patternProperties) {
|
|
@@ -59775,28 +59545,28 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59775
59545
|
const looseRecords = [];
|
|
59776
59546
|
for (const pattern of patternKeys) {
|
|
59777
59547
|
const patternValue = convertSchema(patternProps[pattern], ctx);
|
|
59778
|
-
const keySchema =
|
|
59779
|
-
looseRecords.push(
|
|
59548
|
+
const keySchema = z.string().regex(new RegExp(pattern));
|
|
59549
|
+
looseRecords.push(z.looseRecord(keySchema, patternValue));
|
|
59780
59550
|
}
|
|
59781
59551
|
const schemasToIntersect = [];
|
|
59782
59552
|
if (Object.keys(shape).length > 0) {
|
|
59783
|
-
schemasToIntersect.push(
|
|
59553
|
+
schemasToIntersect.push(z.object(shape).passthrough());
|
|
59784
59554
|
}
|
|
59785
59555
|
schemasToIntersect.push(...looseRecords);
|
|
59786
59556
|
if (schemasToIntersect.length === 0) {
|
|
59787
|
-
zodSchema =
|
|
59557
|
+
zodSchema = z.object({}).passthrough();
|
|
59788
59558
|
} else if (schemasToIntersect.length === 1) {
|
|
59789
59559
|
zodSchema = schemasToIntersect[0];
|
|
59790
59560
|
} else {
|
|
59791
|
-
let result =
|
|
59561
|
+
let result = z.intersection(schemasToIntersect[0], schemasToIntersect[1]);
|
|
59792
59562
|
for (let i3 = 2; i3 < schemasToIntersect.length; i3++) {
|
|
59793
|
-
result =
|
|
59563
|
+
result = z.intersection(result, schemasToIntersect[i3]);
|
|
59794
59564
|
}
|
|
59795
59565
|
zodSchema = result;
|
|
59796
59566
|
}
|
|
59797
59567
|
break;
|
|
59798
59568
|
}
|
|
59799
|
-
const objectSchema =
|
|
59569
|
+
const objectSchema = z.object(shape);
|
|
59800
59570
|
if (schema.additionalProperties === false) {
|
|
59801
59571
|
zodSchema = objectSchema.strict();
|
|
59802
59572
|
} else if (typeof schema.additionalProperties === "object") {
|
|
@@ -59813,33 +59583,33 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59813
59583
|
const tupleItems = prefixItems.map((item) => convertSchema(item, ctx));
|
|
59814
59584
|
const rest = items && typeof items === "object" && !Array.isArray(items) ? convertSchema(items, ctx) : void 0;
|
|
59815
59585
|
if (rest) {
|
|
59816
|
-
zodSchema =
|
|
59586
|
+
zodSchema = z.tuple(tupleItems).rest(rest);
|
|
59817
59587
|
} else {
|
|
59818
|
-
zodSchema =
|
|
59588
|
+
zodSchema = z.tuple(tupleItems);
|
|
59819
59589
|
}
|
|
59820
59590
|
if (typeof schema.minItems === "number") {
|
|
59821
|
-
zodSchema = zodSchema.check(
|
|
59591
|
+
zodSchema = zodSchema.check(z.minLength(schema.minItems));
|
|
59822
59592
|
}
|
|
59823
59593
|
if (typeof schema.maxItems === "number") {
|
|
59824
|
-
zodSchema = zodSchema.check(
|
|
59594
|
+
zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
|
|
59825
59595
|
}
|
|
59826
59596
|
} else if (Array.isArray(items)) {
|
|
59827
59597
|
const tupleItems = items.map((item) => convertSchema(item, ctx));
|
|
59828
59598
|
const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema(schema.additionalItems, ctx) : void 0;
|
|
59829
59599
|
if (rest) {
|
|
59830
|
-
zodSchema =
|
|
59600
|
+
zodSchema = z.tuple(tupleItems).rest(rest);
|
|
59831
59601
|
} else {
|
|
59832
|
-
zodSchema =
|
|
59602
|
+
zodSchema = z.tuple(tupleItems);
|
|
59833
59603
|
}
|
|
59834
59604
|
if (typeof schema.minItems === "number") {
|
|
59835
|
-
zodSchema = zodSchema.check(
|
|
59605
|
+
zodSchema = zodSchema.check(z.minLength(schema.minItems));
|
|
59836
59606
|
}
|
|
59837
59607
|
if (typeof schema.maxItems === "number") {
|
|
59838
|
-
zodSchema = zodSchema.check(
|
|
59608
|
+
zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
|
|
59839
59609
|
}
|
|
59840
59610
|
} else if (items !== void 0) {
|
|
59841
59611
|
const element = convertSchema(items, ctx);
|
|
59842
|
-
let arraySchema =
|
|
59612
|
+
let arraySchema = z.array(element);
|
|
59843
59613
|
if (typeof schema.minItems === "number") {
|
|
59844
59614
|
arraySchema = arraySchema.min(schema.minItems);
|
|
59845
59615
|
}
|
|
@@ -59848,7 +59618,7 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59848
59618
|
}
|
|
59849
59619
|
zodSchema = arraySchema;
|
|
59850
59620
|
} else {
|
|
59851
|
-
zodSchema =
|
|
59621
|
+
zodSchema = z.array(z.any());
|
|
59852
59622
|
}
|
|
59853
59623
|
break;
|
|
59854
59624
|
}
|
|
@@ -59865,37 +59635,37 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59865
59635
|
}
|
|
59866
59636
|
function convertSchema(schema, ctx) {
|
|
59867
59637
|
if (typeof schema === "boolean") {
|
|
59868
|
-
return schema ?
|
|
59638
|
+
return schema ? z.any() : z.never();
|
|
59869
59639
|
}
|
|
59870
59640
|
let baseSchema = convertBaseSchema(schema, ctx);
|
|
59871
59641
|
const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0;
|
|
59872
59642
|
if (schema.anyOf && Array.isArray(schema.anyOf)) {
|
|
59873
59643
|
const options = schema.anyOf.map((s2) => convertSchema(s2, ctx));
|
|
59874
|
-
const anyOfUnion =
|
|
59875
|
-
baseSchema = hasExplicitType ?
|
|
59644
|
+
const anyOfUnion = z.union(options);
|
|
59645
|
+
baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion;
|
|
59876
59646
|
}
|
|
59877
59647
|
if (schema.oneOf && Array.isArray(schema.oneOf)) {
|
|
59878
59648
|
const options = schema.oneOf.map((s2) => convertSchema(s2, ctx));
|
|
59879
|
-
const oneOfUnion =
|
|
59880
|
-
baseSchema = hasExplicitType ?
|
|
59649
|
+
const oneOfUnion = z.xor(options);
|
|
59650
|
+
baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion;
|
|
59881
59651
|
}
|
|
59882
59652
|
if (schema.allOf && Array.isArray(schema.allOf)) {
|
|
59883
59653
|
if (schema.allOf.length === 0) {
|
|
59884
|
-
baseSchema = hasExplicitType ? baseSchema :
|
|
59654
|
+
baseSchema = hasExplicitType ? baseSchema : z.any();
|
|
59885
59655
|
} else {
|
|
59886
59656
|
let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
|
|
59887
59657
|
const startIdx = hasExplicitType ? 0 : 1;
|
|
59888
59658
|
for (let i3 = startIdx; i3 < schema.allOf.length; i3++) {
|
|
59889
|
-
result =
|
|
59659
|
+
result = z.intersection(result, convertSchema(schema.allOf[i3], ctx));
|
|
59890
59660
|
}
|
|
59891
59661
|
baseSchema = result;
|
|
59892
59662
|
}
|
|
59893
59663
|
}
|
|
59894
59664
|
if (schema.nullable === true && ctx.version === "openapi-3.0") {
|
|
59895
|
-
baseSchema =
|
|
59665
|
+
baseSchema = z.nullable(baseSchema);
|
|
59896
59666
|
}
|
|
59897
59667
|
if (schema.readOnly === true) {
|
|
59898
|
-
baseSchema =
|
|
59668
|
+
baseSchema = z.readonly(baseSchema);
|
|
59899
59669
|
}
|
|
59900
59670
|
const extraMeta = {};
|
|
59901
59671
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
@@ -59922,7 +59692,7 @@ function convertSchema(schema, ctx) {
|
|
|
59922
59692
|
}
|
|
59923
59693
|
function fromJSONSchema(schema, params) {
|
|
59924
59694
|
if (typeof schema === "boolean") {
|
|
59925
|
-
return schema ?
|
|
59695
|
+
return schema ? z.any() : z.never();
|
|
59926
59696
|
}
|
|
59927
59697
|
const version4 = detectVersion(schema, params?.defaultTarget);
|
|
59928
59698
|
const defs = schema.$defs || schema.definitions || {};
|
|
@@ -61069,22 +60839,4 @@ react/cjs/react-jsx-runtime.production.js:
|
|
|
61069
60839
|
* This source code is licensed under the MIT license found in the
|
|
61070
60840
|
* LICENSE file in the root directory of this source tree.
|
|
61071
60841
|
*)
|
|
61072
|
-
|
|
61073
|
-
remotion-subtitle/dist/index.esm.js:
|
|
61074
|
-
(** @license React v17.0.2
|
|
61075
|
-
* react.production.min.js
|
|
61076
|
-
*
|
|
61077
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
61078
|
-
*
|
|
61079
|
-
* This source code is licensed under the MIT license found in the
|
|
61080
|
-
* LICENSE file in the root directory of this source tree.
|
|
61081
|
-
*)
|
|
61082
|
-
(** @license React v17.0.2
|
|
61083
|
-
* react.development.js
|
|
61084
|
-
*
|
|
61085
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
61086
|
-
*
|
|
61087
|
-
* This source code is licensed under the MIT license found in the
|
|
61088
|
-
* LICENSE file in the root directory of this source tree.
|
|
61089
|
-
*)
|
|
61090
60842
|
*/
|