hyperframes 0.9.9 → 0.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-FQX5F6PC.js → add-AFD3HNXB.js} +5 -5
- package/dist/api.js +4 -4
- package/dist/{asset-X5GG5TTP.js → asset-P6SF46UX.js} +2 -2
- package/dist/{audio-DDTYFS23.js → audio-DFQXEAEE.js} +5 -5
- package/dist/{auth-OAWLDT3A.js → auth-T62ANGDQ.js} +2 -2
- package/dist/{autoUpdate-BWIPXW2W.js → autoUpdate-3IT56KGL.js} +2 -2
- package/dist/{backgroundChecks-YJ5NRMBA.js → backgroundChecks-UKBVUYML.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{beats-Q2TIAA7S.js → beats-7UFMDXBY.js} +4 -4
- package/dist/{benchmark-I3GRHFIN.js → benchmark-LCSHBJJF.js} +6 -6
- package/dist/billing-5YSYJJ2V.js +142 -0
- package/dist/{browser-F24WMZ52.js → browser-5DZHA4EW.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-K5CQPNIZ.js → bundleWithLocalizedFonts-TJL2JWRD.js} +1 -1
- package/dist/{catalog-H7SOITD6.js → catalog-F2XB4VPP.js} +5 -5
- package/dist/{catch-up-YRGPVEM6.js → catch-up-HCBA3MIP.js} +4 -4
- package/dist/{check-BPQZZ2MO.js → check-E2RQCELF.js} +14 -14
- package/dist/{checkAudio-4NRQ3WGS.js → checkAudio-R4DRK3VG.js} +2 -2
- package/dist/{checkBrowser-S66AHKW3.js → checkBrowser-NGY225IO.js} +10 -8
- package/dist/{chunk-BBP5KGYS.js → chunk-2CKL2FUJ.js} +2 -2
- package/dist/{chunk-63GTSNMY.js → chunk-2WNIF4YT.js} +1 -1
- package/dist/{chunk-DIKIN4BA.js → chunk-3XHWHH5A.js} +44 -28
- package/dist/{chunk-2ROPUTCS.js → chunk-5CDTGHED.js} +1 -1
- package/dist/{chunk-CNX3WKQ5.js → chunk-6VKYITOR.js} +1 -1
- package/dist/{chunk-AH6MUQQC.js → chunk-7VGM5TLZ.js} +2 -2
- package/dist/{chunk-6DKWOG7L.js → chunk-7VOLQUA2.js} +1 -1
- package/dist/{chunk-CBPBTQBH.js → chunk-7VU4RBHC.js} +5 -4
- package/dist/chunk-AHLDGEH5.js +158 -0
- package/dist/{chunk-5YIZRU2L.js → chunk-CBTBVRXB.js} +2 -2
- package/dist/{chunk-NX2X326Z.js → chunk-CDSTLOB7.js} +2 -2
- package/dist/{chunk-4W5X4S47.js → chunk-DKROJ3GJ.js} +8 -8
- package/dist/{chunk-BXYB5NGT.js → chunk-GRUI2S2F.js} +1 -1
- package/dist/{chunk-BX2JB24X.js → chunk-MHZ7NSL5.js} +1 -1
- package/dist/{chunk-TZBJEKKU.js → chunk-NBWYATVA.js} +1 -1
- package/dist/{chunk-62ATHBDS.js → chunk-NVYVI4FR.js} +1 -1
- package/dist/{chunk-MY4PAH7C.js → chunk-P4WYY52Y.js} +1 -1
- package/dist/{chunk-V74HSKGY.js → chunk-PO7LSMN5.js} +1 -1
- package/dist/{chunk-UWYHZCEQ.js → chunk-PYUS627M.js} +1 -1
- package/dist/{chunk-2NGBIAUF.js → chunk-Q3W7TDQX.js} +217 -174
- package/dist/{chunk-H534266X.js → chunk-QBPZHOEJ.js} +1 -1
- package/dist/{chunk-2Y575PWJ.js → chunk-QPEDM2ZR.js} +1 -1
- package/dist/{chunk-322AG75G.js → chunk-RZFW7FBA.js} +2 -2
- package/dist/{chunk-NNF6G2UH.js → chunk-UDBNPVUR.js} +1 -1
- package/dist/{chunk-VZ5O7A77.js → chunk-V6HV2IDT.js} +5 -2
- package/dist/{chunk-HBHLCMOQ.js → chunk-W4Q6VYPZ.js} +2 -2
- package/dist/{chunk-VNR7LSN4.js → chunk-WCETVN3N.js} +17 -5
- package/dist/{chunk-A2NFFVWH.js → chunk-WP5QHNXN.js} +3 -3
- package/dist/{chunk-TJ2USKCK.js → chunk-WWPOGMNX.js} +1 -1
- package/dist/{chunk-OYAZODSP.js → chunk-YXSM33UC.js} +11 -6
- package/dist/{chunk-HUJMTTKR.js → chunk-ZMXFRRQR.js} +42 -26
- package/dist/{clean-RCXKQNFM.js → clean-BXHJEVVO.js} +5 -5
- package/dist/cli.js +54 -54
- package/dist/{cloud-TQPQZRC5.js → cloud-ISWLTHGP.js} +4 -4
- package/dist/{compare-EO32AASM.js → compare-MLZYDSZD.js} +4 -4
- package/dist/{component-S3TYNVCR.js → component-MMBTCMY3.js} +3 -3
- package/dist/{compositions-4TXRLZ3M.js → compositions-WT2577NJ.js} +5 -5
- package/dist/{curve-HGLOP2GY.js → curve-HHKVZ6LX.js} +3 -3
- package/dist/{cuts-VNFIISLL.js → cuts-66GBRT5P.js} +3 -3
- package/dist/{delete-TIWI3G7X.js → delete-P3WYOC7I.js} +2 -2
- package/dist/{deploy-EHPNOGSY.js → deploy-OJ3M7QJQ.js} +1 -1
- package/dist/{diff-46JK5ZCL.js → diff-R74KQXXN.js} +9 -7
- package/dist/{doctor-LD23DW4N.js → doctor-DT52W4UE.js} +4 -4
- package/dist/{energy-YZ3DB6AI.js → energy-WOMDOOLC.js} +3 -3
- package/dist/{events-DRTMYSQ6.js → events-PCK4AIN5.js} +2 -2
- package/dist/{events-MQIKCKA5.js → events-WEVZ2ELP.js} +3 -3
- package/dist/{events-3OWNDNJX.js → events-YVQJLQWG.js} +3 -3
- package/dist/{extract-F3NBE3X5.js → extract-CNXA3DWB.js} +4 -4
- package/dist/{face-ZU7ZDYGO.js → face-2WNBW74C.js} +3 -3
- package/dist/{feedback-37M37Y4F.js → feedback-ADMM2XDS.js} +4 -4
- package/dist/{figma-55AG42NN.js → figma-5MMN5JUU.js} +3 -3
- package/dist/fontLocalizeCli.js +2 -2
- package/dist/{frames-DJA3CFSY.js → frames-7CQGHRWT.js} +3 -3
- package/dist/{generate-BVJ5XNWP.js → generate-XOR4UJDW.js} +8 -6
- package/dist/{get-PGLCWEBG.js → get-5K6ALHBS.js} +2 -2
- package/dist/{grade-compare-R6Q6G6WP.js → grade-compare-DK63C776.js} +4 -4
- package/dist/{help-4SNDXHWQ.js → help-AUF2KA6D.js} +1 -1
- package/dist/{history-NKRHKIE2.js → history-G3FXVX4A.js} +6 -6
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-U4VDKU2Y.js → info-DGU3CIU5.js} +5 -5
- package/dist/{init-2RUVBHQO.js → init-LYZI2WCS.js} +6 -6
- package/dist/{ink-TX3USU7X.js → ink-DYZG4BST.js} +3 -3
- package/dist/{inspect-MAGHXEWS.js → inspect-BYQSCRKT.js} +6 -6
- package/dist/{keyframes-2TDECIQZ.js → keyframes-XX2DIYPI.js} +5 -5
- package/dist/{lambda-CRVYDETX.js → lambda-RKI7KKWW.js} +1 -1
- package/dist/{layout-I3VNHWJH.js → layout-RQFOMQRO.js} +6 -6
- package/dist/{lint-MCVWXDJX.js → lint-LFCMCDEG.js} +6 -6
- package/dist/{list-FJJNWPM6.js → list-V4TGMQ3Y.js} +2 -2
- package/dist/{login-YAZZWYFK.js → login-EXCG7PEH.js} +4 -4
- package/dist/{look-U5UHXPUQ.js → look-RBHKHGMF.js} +3 -3
- package/dist/{measure-JAPDVQ5X.js → measure-SAV5K4WT.js} +11 -11
- package/dist/{media-treatment-A4Z32NGP.js → media-treatment-2BVHRXJS.js} +5 -5
- package/dist/{media-use-6HX7JHRD.js → media-use-YEBYLITF.js} +1 -1
- package/dist/{normalize-audio-45CHOWKY.js → normalize-audio-ILLUZPTO.js} +4 -4
- package/dist/{open-RSTNLDYI.js → open-GTNLU7UF.js} +4 -4
- package/dist/{play-BYIEIRQQ.js → play-F2HIXJKH.js} +4 -4
- package/dist/{preflight-TC6ZW3GB.js → preflight-QMXCKE5P.js} +1 -1
- package/dist/{present-5B5VQKT5.js → present-GDR6LCKE.js} +4 -4
- package/dist/{preview-5O2HT2WF.js → preview-4TV5426Q.js} +5 -5
- package/dist/{probe-ZGK6DBAR.js → probe-TYM7WKX2.js} +4 -4
- package/dist/{producer-RFTB2APL.js → producer-NHQXKH7Y.js} +1 -1
- package/dist/{render-ETZ3WAJO.js → render-GEAO2HAV.js} +6 -6
- package/dist/{render-7HIEI7QP.js → render-YLAS7GVD.js} +12 -12
- package/dist/{reverse-VPBNBP2Q.js → reverse-3KAZZXB2.js} +1 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +1 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +1 -1
- package/dist/skills/media-use/references/heygen.md +1 -1
- package/dist/{skills-EBVQSIK4.js → skills-T5XCP3RC.js} +27 -12
- package/dist/{skillsUpdateCheck-7VXK4R4J.js → skillsUpdateCheck-IG7KLWIA.js} +3 -3
- package/dist/{snapshot-PJUNSMDS.js → snapshot-RULSIRM6.js} +8 -8
- package/dist/{src-SMIMKSHZ.js → src-DHBRQZFZ.js} +1 -1
- package/dist/{start-5ZDH643Z.js → start-GF3JCTGF.js} +29 -17
- package/dist/{status-4LLUW5YT.js → status-SUK4I7TS.js} +8 -5
- package/dist/studio/assets/{hyperframes-player-CcNGHTev.js → hyperframes-player-BcELSci_.js} +1 -1
- package/dist/studio/assets/{index-D9uDed3x.js → index-2SLNyxZG.js} +1 -1
- package/dist/studio/assets/{index-DSRgrCDX.js → index-DR2eua-L.js} +22 -22
- package/dist/studio/index.html +1 -1
- package/dist/{studioServer-2WIQBEQC.js → studioServer-DOTRPHS3.js} +9 -9
- package/dist/{sync-P3O3WZWT.js → sync-XQPBXGGX.js} +3 -3
- package/dist/{telemetry-267LV4SC.js → telemetry-7TIIOBVB.js} +3 -3
- package/dist/{templates-MQ742KVZ.js → templates-7DIQ52Y4.js} +40 -11
- package/dist/{timeline-WP7AZAQC.js → timeline-4JIUAUIP.js} +5 -5
- package/dist/{tokens-ROFKR7AE.js → tokens-4PQU4LVQ.js} +2 -2
- package/dist/{transcribe-WS2STSCJ.js → transcribe-IKUPC2R3.js} +6 -6
- package/dist/{updateCheck-M2SMSDIO.js → updateCheck-LBPTWEZV.js} +2 -2
- package/dist/{upgrade-ZUWFB2QM.js → upgrade-2FS4AMCA.js} +2 -2
- package/dist/{validate-M2M37G47.js → validate-MLVDUEK7.js} +6 -6
- package/dist/warmCheck.js +14 -14
- package/package.json +1 -1
- package/dist/billing-W224NIAM.js +0 -96
- package/dist/chunk-ASGRVFQ3.js +0 -59
|
@@ -6,16 +6,16 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
probeReport
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QPEDM2ZR.js";
|
|
10
10
|
import {
|
|
11
11
|
jsonArg,
|
|
12
12
|
runMeasure,
|
|
13
13
|
videoArg
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GRUI2S2F.js";
|
|
15
15
|
import {
|
|
16
16
|
pageUrl,
|
|
17
17
|
readPlan
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AHLDGEH5.js";
|
|
19
19
|
import {
|
|
20
20
|
Fix
|
|
21
21
|
} from "./chunk-A33GFLPY.js";
|
|
@@ -82,7 +82,7 @@ import "./chunk-EPQC3FGZ.js";
|
|
|
82
82
|
import "./chunk-WC4MTXGN.js";
|
|
83
83
|
import "./chunk-FBN2M2HK.js";
|
|
84
84
|
import "./chunk-766MOTIZ.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-NBWYATVA.js";
|
|
86
86
|
import "./chunk-BR2JQQC5.js";
|
|
87
87
|
import "./chunk-BLBMPEBX.js";
|
|
88
88
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -90,7 +90,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
90
90
|
import "./chunk-66W5IWLO.js";
|
|
91
91
|
import "./chunk-J3RXEDR2.js";
|
|
92
92
|
import "./chunk-QBXDU24O.js";
|
|
93
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-7VGM5TLZ.js";
|
|
94
94
|
import "./chunk-E63BDV4Z.js";
|
|
95
95
|
import "./chunk-G7VEYUZ2.js";
|
|
96
96
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -118,7 +118,8 @@ function parseSession(body) {
|
|
|
118
118
|
const plan = oneOf(data.plan, PLANS);
|
|
119
119
|
const gate = oneOf(data.gate, GATES);
|
|
120
120
|
if (!sessionId || !plan || !gate) return void 0;
|
|
121
|
-
const
|
|
121
|
+
const url = data.upgrade_url;
|
|
122
|
+
const upgradeUrl = typeof url === "string" || url === null ? { upgradeUrl: url } : {};
|
|
122
123
|
return { sessionId, plan, gate, ...upgradeUrl };
|
|
123
124
|
}
|
|
124
125
|
async function fallbackPlan() {
|
|
@@ -126,8 +127,9 @@ async function fallbackPlan() {
|
|
|
126
127
|
if (!plan) return void 0;
|
|
127
128
|
return plan.plan === "none" ? "free" : "pro";
|
|
128
129
|
}
|
|
129
|
-
function reverseUpgradeUrl(session) {
|
|
130
|
-
|
|
130
|
+
async function reverseUpgradeUrl(session) {
|
|
131
|
+
if (session?.upgradeUrl === null) return null;
|
|
132
|
+
return session?.upgradeUrl ?? await pageUrl("plans", { feature: "reverse", rs: session?.sessionId });
|
|
131
133
|
}
|
|
132
134
|
async function startReverseSession(opts = {}) {
|
|
133
135
|
let headers;
|
|
@@ -166,13 +168,20 @@ var SKILL = "reverse-any-video";
|
|
|
166
168
|
function subscribeCommand(sessionId) {
|
|
167
169
|
return `npx hyperframes billing subscribe --feature reverse${sessionId ? ` --session ${sessionId}` : ""}`;
|
|
168
170
|
}
|
|
169
|
-
function
|
|
171
|
+
async function freeFields(session) {
|
|
172
|
+
const link = await reverseUpgradeUrl(session);
|
|
173
|
+
return {
|
|
174
|
+
upgrade_url: link,
|
|
175
|
+
subscribe_command: link === null ? null : subscribeCommand(session.sessionId)
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
async function summary(started, savedTo) {
|
|
170
179
|
if (!started.recorded) {
|
|
171
180
|
return {
|
|
172
181
|
signed_in: started.reason !== "not_signed_in",
|
|
173
182
|
plan: started.plan ?? null,
|
|
174
183
|
recorded: false,
|
|
175
|
-
...started.plan === "free" ? { upgrade_url: reverseUpgradeUrl(), subscribe_command: subscribeCommand() } : {}
|
|
184
|
+
...started.plan === "free" ? { upgrade_url: await reverseUpgradeUrl(), subscribe_command: subscribeCommand() } : {}
|
|
176
185
|
};
|
|
177
186
|
}
|
|
178
187
|
const { session } = started;
|
|
@@ -183,14 +192,17 @@ function summary(started, savedTo) {
|
|
|
183
192
|
session_id: session.sessionId,
|
|
184
193
|
gate: session.gate,
|
|
185
194
|
saved_to: savedTo ?? null,
|
|
186
|
-
...session.plan === "free" ? {
|
|
187
|
-
upgrade_url: reverseUpgradeUrl(session),
|
|
188
|
-
subscribe_command: subscribeCommand(session.sessionId)
|
|
189
|
-
} : {}
|
|
195
|
+
...session.plan === "free" ? await freeFields(session) : {}
|
|
190
196
|
};
|
|
191
197
|
}
|
|
192
|
-
function refusalWhenServerBlocksFree(session) {
|
|
198
|
+
async function refusalWhenServerBlocksFree(session) {
|
|
193
199
|
if (session.gate !== "block" || session.plan !== "free") return void 0;
|
|
200
|
+
if (await reverseUpgradeUrl(session) === null) {
|
|
201
|
+
return new Fix(
|
|
202
|
+
"Reverse is part of HyperFrames Pro, and a plan can't be purchased right now.",
|
|
203
|
+
"Run reverse start again once this account is on Pro."
|
|
204
|
+
);
|
|
205
|
+
}
|
|
194
206
|
const command = subscribeCommand(session.sessionId);
|
|
195
207
|
return new Fix(
|
|
196
208
|
`Reverse is part of HyperFrames Pro. Run \`${command}\`, then run reverse start again.`,
|
|
@@ -220,9 +232,9 @@ var start_default = defineCommand({
|
|
|
220
232
|
});
|
|
221
233
|
const save = started.recorded && (dir !== void 0 || existsSync(projectConfigPath(".")));
|
|
222
234
|
const savedTo = save ? recordProjectReverseSession(projectDir, started.session.sessionId, SKILL) : void 0;
|
|
223
|
-
const refused = started.recorded ? refusalWhenServerBlocksFree(started.session) : void 0;
|
|
235
|
+
const refused = started.recorded ? await refusalWhenServerBlocksFree(started.session) : void 0;
|
|
224
236
|
if (refused) throw refused;
|
|
225
|
-
return { reverse: summary(started, savedTo), ...probe };
|
|
237
|
+
return { reverse: await summary(started, savedTo), ...probe };
|
|
226
238
|
});
|
|
227
239
|
}
|
|
228
240
|
});
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
pageUrl,
|
|
18
18
|
readPlan
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AHLDGEH5.js";
|
|
20
20
|
import {
|
|
21
21
|
refreshIfNeeded
|
|
22
22
|
} from "./chunk-TSQZ3DSC.js";
|
|
@@ -152,7 +152,7 @@ var status_default = defineCommand({
|
|
|
152
152
|
const resolved = credential;
|
|
153
153
|
const status = await verify(await refreshIfNeeded(resolved).catch(() => resolved));
|
|
154
154
|
if (asJson) printJsonStatus(status);
|
|
155
|
-
else printHumanStatus(status);
|
|
155
|
+
else await printHumanStatus(status);
|
|
156
156
|
setCommandExitCode(status.apiError ? 1 : 0);
|
|
157
157
|
}
|
|
158
158
|
});
|
|
@@ -260,8 +260,11 @@ function persistedUserJson(u) {
|
|
|
260
260
|
display_name: display ?? null
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
function printHumanStatus(s) {
|
|
264
|
-
const rows = collectStatusRows(
|
|
263
|
+
async function printHumanStatus(s) {
|
|
264
|
+
const rows = collectStatusRows({
|
|
265
|
+
...s,
|
|
266
|
+
...s.plan?.plan === "none" ? { upgradeUrl: await pageUrl("plans") } : {}
|
|
267
|
+
});
|
|
265
268
|
for (const [label, value] of rows) console.log(`${c.bold(label)} ${value}`);
|
|
266
269
|
}
|
|
267
270
|
function collectStatusRows(s) {
|
|
@@ -282,7 +285,7 @@ function collectStatusRows(s) {
|
|
|
282
285
|
const tag = plan.mock ? ` ${c.dim("(mock)")}` : "";
|
|
283
286
|
rows.push([
|
|
284
287
|
"HyperFrames:",
|
|
285
|
-
plan.plan === "none" ? `Free \xB7 Upgrade to Pro: ${
|
|
288
|
+
plan.plan === "none" ? `Free \xB7 Upgrade to Pro: ${s.upgradeUrl}${tag}` : `${plan.plan} plan, ${plan.credits.toLocaleString("en-US")} credits${tag}`
|
|
286
289
|
]);
|
|
287
290
|
}
|
|
288
291
|
return rows;
|
package/dist/studio/assets/{hyperframes-player-CcNGHTev.js → hyperframes-player-BcELSci_.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var je=Object.defineProperty;var Be=(r,t,e)=>t in r?je(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var h=(r,t,e)=>Be(r,typeof t!="symbol"?t+"":t,e);import{S as qe,r as Ge,P as Ye,i as Xe,a as be,b as we,c as Ke,m as Ue,s as Ze,d as A,e as Ae,p as Je,f as Qe,g as et,h as tt,j as it,k as Se,F as Te}from"./index-
|
|
1
|
+
var je=Object.defineProperty;var Be=(r,t,e)=>t in r?je(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var h=(r,t,e)=>Be(r,typeof t!="symbol"?t+"":t,e);import{S as qe,r as Ge,P as Ye,i as Xe,a as be,b as we,c as Ke,m as Ue,s as Ze,d as A,e as Ae,p as Je,f as Qe,g as et,h as tt,j as it,k as Se,F as Te}from"./index-DR2eua-L.js";function st(r){return r.hasRuntime||r.runtimeInjected?!1:!!(r.hasNestedCompositions||r.hasTimelines&&r.attempts>=5)}function F(r){return typeof r=="object"&&r!==null}function rt(r){return F(r)&&typeof r.getDuration=="function"}function nt(r){return F(r)&&typeof r.duration=="function"&&typeof r.time=="function"&&typeof r.seek=="function"&&typeof r.play=="function"&&typeof r.pause=="function"}function ot(r){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(r))throw new Error(`Invalid HyperFrames runtime version: ${r}`);return`https://cdn.jsdelivr.net/npm/@hyperframes/core@${r}/dist/hyperframe.runtime.iife.js`}const B=typeof __HYPERFRAMES_RUNTIME_CDN_URL__=="string"?__HYPERFRAMES_RUNTIME_CDN_URL__:ot("0.0.0-dev");function Y(r){if(r===null)return null;const t=Number.parseInt(r,10);return Number.isFinite(t)&&t>0?t:null}function at(r){const t=(r==null?void 0:r.querySelector("[data-composition-id][data-width][data-height]"))??(r==null?void 0:r.querySelector("[data-width][data-height]"));if(!t)return null;const e=Y(t.getAttribute("data-width")),i=Y(t.getAttribute("data-height"));return e!==null&&i!==null?{width:e,height:i}:null}function dt(r){return Array.isArray(r)?r.find(t=>typeof t=="string"&&t.trim()!==""&&t!=="[object Event]")??null:null}class ht{constructor(t,e){h(this,"_interval",null);h(this,"_runtimeInjected",!1);h(this,"_runtimeScript",null);h(this,"_failure",null);this._iframe=t,this._callbacks=e}get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let t=0;this._interval=setInterval(()=>{t++;let e=null;try{e=this._poll(t)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(e={kind:"error",message:i instanceof Error?i.message:String(i)})}e??(e=this._deadlineOutcome(t)),e&&(this.stop(),e.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(e.message)):this._callbacks.onReady(e.result))},200)}_deadlineOutcome(t){var e,i;return t<40||(i=(e=this._callbacks).hostOwnsDeadline)!=null&&i.call(e)?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(t){const e=this._iframe.contentWindow;if(!e)return null;const i=dt(Reflect.get(e,qe));if(i!==null)return{kind:"error",message:i};const s=this._iframe.contentDocument,n=Reflect.get(e,"__timelines"),o=this.hasRuntimeBridge(e);if(st({hasRuntime:o,hasTimelines:F(n)&&Object.keys(n).length>0,hasNestedCompositions:!!(s!=null&&s.querySelector("[data-composition-src]")),runtimeInjected:this._runtimeInjected,attempts:t}))return this._injectRuntime(),null;if(this._runtimeInjected&&!o)return null;const a=this._resolveReadyResult(e,s);return a?{kind:"ready",result:a}:null}_resolveReadyResult(t,e){var n;const i=this._resolvePlaybackDurationAdapter(t)??{kind:"document",getDuration:()=>0};let s=i.getDuration();if(!Number.isFinite(s)||s<=0){if(i.kind==="direct-timeline")return null;s=e?((n=Ge(e))==null?void 0:n.durationSeconds)??0:0}return s<=0?null:{duration:s,adapter:{...i,getDuration:()=>s},compositionSize:at(e)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{const t=this._iframe.contentWindow;return t?this._resolveDirectTimelineAdapterFromWindow(t):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(t){return this._resolveDirectTimelineAdapterFromWindow(t)}hasRuntimeBridge(t){return F(Reflect.get(t,"__player"))}_injectRuntime(){var t,e,i,s;this._runtimeInjected=!0;try{const n=this._iframe.contentDocument;if(!n)return;const o=n.createElement("script");o.src=((e=(t=this._callbacks).resolveRuntimeUrl)==null?void 0:e.call(t))??B,this._runtimeScript=o,o.onerror=()=>{this._runtimeScript!==o||this._iframe.contentDocument!==n||(this.stop(),this._failure={document:n},this._callbacks.onError("HyperFrames runtime failed to load from "+o.src))},(n.head||n.documentElement).appendChild(o),(s=(i=this._callbacks).onRuntimeInjected)==null||s.call(i)}catch{}}_resolveDirectTimelineAdapterFromWindow(t){var a,c;if(this.hasRuntimeBridge(t))return null;const e=Reflect.get(t,"__timelines");if(!F(e))return null;const i=Object.keys(e);if(i.length===0)return null;const s=(c=(a=this._iframe.contentDocument)==null?void 0:a.querySelector("[data-composition-id]"))==null?void 0:c.getAttribute("data-composition-id"),n=s&&s in e?s:i[i.length-1],o=e[n];return nt(o)?o:null}_resolvePlaybackDurationAdapter(t){const e=Reflect.get(t,"__player");if(rt(e))return{kind:"runtime",getDuration:()=>e.getDuration()};const i=this._resolveDirectTimelineAdapterFromWindow(t);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}}const lt=`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|