demoman 0.7.0 → 0.7.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.
Files changed (41) hide show
  1. package/README.md +7 -6
  2. package/THIRD_PARTY_NOTICES +155 -29
  3. package/dist/demoman.mjs +2196 -1146
  4. package/dist/page/executor-entry.js +16 -3
  5. package/dist/page/mux-entry.js +192 -81
  6. package/dist/page/render-entry.js +602 -613
  7. package/dist/page/resolve-entry.js +16 -3
  8. package/dist/recipe.md +70 -59
  9. package/dist/studio/assets/confirm-dialog-CN_GqXY_.js +72 -0
  10. package/dist/studio/assets/confirm-dialog-Dd_hs1Bv.css +1 -0
  11. package/dist/studio/assets/editor-Cy1V14-4.js +4 -0
  12. package/dist/studio/assets/{editor-inline-3529c61f.css → editor-inline-7e387eed.css} +65 -1
  13. package/dist/studio/assets/library-CQtDqEvE.js +1 -0
  14. package/dist/studio/assets/settings-C4OPkolR.js +1 -0
  15. package/dist/studio/assets/{settings-inline-081bd3f0.css → settings-inline-ff6d2eee.css} +2 -142
  16. package/dist/studio/assets/topbar-sSUyITjl.js +1 -0
  17. package/dist/studio/assets/view-DsZQo9AJ.js +1 -0
  18. package/dist/studio/editor.html +5 -6
  19. package/dist/studio/icon/32.png +0 -0
  20. package/dist/studio/images/icon.svg +3 -6
  21. package/dist/studio/images/lockup_dark.svg +10 -13
  22. package/dist/studio/images/lockup_light.svg +10 -13
  23. package/dist/studio/images/logomark.svg +2 -8
  24. package/dist/studio/library.html +4 -9
  25. package/dist/studio/settings.html +6 -11
  26. package/dist/studio/studio-build.json +3 -3
  27. package/package.json +10 -1
  28. package/dist/studio/assets/editor-BTGqbeOf.js +0 -4
  29. package/dist/studio/assets/library-BgPfg1Id.js +0 -1
  30. package/dist/studio/assets/settings-Bq1e7Iz8.js +0 -1
  31. package/dist/studio/assets/switch-Bn7Uwnf1.js +0 -1
  32. package/dist/studio/assets/theme-D59pt_a-.js +0 -72
  33. package/dist/studio/assets/theme-D6wPSXx4.css +0 -1
  34. package/dist/studio/assets/topbar-Dq9UrNEm.js +0 -1
  35. package/dist/studio/icon/128.png +0 -0
  36. package/dist/studio/icon/16.png +0 -0
  37. package/dist/studio/icon/48.png +0 -0
  38. package/dist/studio/icon/recording/128.png +0 -0
  39. package/dist/studio/icon/recording/16.png +0 -0
  40. package/dist/studio/icon/recording/32.png +0 -0
  41. package/dist/studio/icon/recording/48.png +0 -0
@@ -884,15 +884,28 @@
884
884
  // Vue scoped styles
885
885
  /^_ngcontent-/i,
886
886
  // Angular
887
- /^:r[0-9a-z]*:$/i,
888
- // React useId
887
+ // React useId — 18 `:r1:`, 19.0 `«r1»`, 19.1 `_r_1_` — anywhere, since
888
+ // libraries wrap it (react-aria: `react-aria544548995-_r_2_`).
889
+ /:r[0-9a-z]*:|«r[0-9a-z]*»|(?:^|[^a-z0-9])_r_[0-9a-z]+_/i,
889
890
  // A bare hash: hex, and mixed — pure digits are a plausible authored id.
890
891
  /^(?=[a-f0-9]*[0-9])(?=[a-f0-9]*[a-f])[a-f0-9]{8,}$/i
891
892
  ];
892
893
  function isAuthoredIdentifier(value) {
893
894
  if (value.length === 0)
894
895
  return false;
895
- return !GENERATED.some((re) => re.test(value));
896
+ return !GENERATED.some((re) => re.test(value)) && !isGuidLike(value);
897
+ }
898
+ function isGuidLike(value) {
899
+ const kinds = Array.from(value).filter((c) => c !== "-" && c !== "_").map((c) => /[a-z]/.test(c) ? "lower" : /[A-Z]/.test(c) ? "upper" : /[0-9]/.test(c) ? "digit" : "other");
900
+ if (kinds.length < 16)
901
+ return false;
902
+ const switched = kinds.map((k, i) => i > 0 && k !== kinds[i - 1] && !(kinds[i - 1] === "upper" && k === "lower"));
903
+ for (let i = 0; i + 21 <= Math.max(kinds.length, 21); i++) {
904
+ const inWindow = switched.slice(i + 1, i + 21).filter(Boolean).length;
905
+ if (inWindow >= 5)
906
+ return true;
907
+ }
908
+ return false;
896
909
  }
897
910
  function readStableId(el) {
898
911
  for (const attr of STABLE_ID_ATTRS) {
@@ -15362,7 +15362,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15362
15362
  type: { cursorTravels: true, approach: "nearest" },
15363
15363
  moveTo: { cursorTravels: true, approach: "nearest" },
15364
15364
  scrollTo: { cursorTravels: false, approach: "landing" },
15365
- waitFor: { cursorTravels: false, approach: "none" }
15365
+ waitFor: { cursorTravels: false, approach: "none" },
15366
+ drag: { cursorTravels: true, approach: "nearest" }
15366
15367
  };
15367
15368
 
15368
15369
  // ../../packages/compositor/dist/bundle.js
@@ -15405,7 +15406,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15405
15406
  var AnchorRectSchema = external_exports.object({
15406
15407
  actionId: external_exports.string().min(1),
15407
15408
  anchorId: external_exports.string().min(1),
15408
- rect: RectSchema
15409
+ rect: RectSchema,
15410
+ /** A drag's end, measured with its start; absent for every other verb. */
15411
+ end: RectSchema.optional()
15412
+ });
15413
+ var HeldPressSchema = external_exports.object({
15414
+ actionId: external_exports.string().min(1),
15415
+ pressMs: external_exports.number().nonnegative(),
15416
+ releaseMs: external_exports.number().nonnegative()
15409
15417
  });
15410
15418
  var ViewportTransformSchema = external_exports.object({
15411
15419
  sourceTimeMs: external_exports.number().nonnegative(),
@@ -15448,7 +15456,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15448
15456
  /** The typed text; null for every verb that types nothing, and for a
15449
15457
  * redacted field whose value was never recorded. */
15450
15458
  text: external_exports.string().nullable(),
15451
- cut: external_exports.boolean()
15459
+ cut: external_exports.boolean().optional()
15452
15460
  });
15453
15461
  var DegradationSchema = external_exports.object({
15454
15462
  startMs: external_exports.number().nonnegative(),
@@ -15523,7 +15531,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15523
15531
  // `buildLaneModel` turns a nonzero count into a capture-lane clip and a
15524
15532
  // lane-label chip under this name. Named here so the two surfaces share
15525
15533
  // one word for one condition.
15526
- "pacingUnplaced"
15534
+ "pacingUnplaced",
15535
+ // A drag whose press and release both arrived and that changed nothing
15536
+ // on screen: no native drag began and the pixels between its ends were
15537
+ // the same after as before. The page ignored it, so the step is listed
15538
+ // as diverged rather than read as done (2026-10-21).
15539
+ "notDragged",
15540
+ // A native drag's picture could not be drawn in the page (the element
15541
+ // the page named for it was gone, or copying it threw). The drag still
15542
+ // ran; the film shows the card jump to its drop instead of travelling.
15543
+ "dragPictureMissing"
15527
15544
  ]),
15528
15545
  note: external_exports.string()
15529
15546
  });
@@ -15579,6 +15596,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15579
15596
  // written without this field, and they are all still readable.
15580
15597
  cursorGaps: external_exports.array(CursorGapSchema).default([]),
15581
15598
  anchorRects: external_exports.array(AnchorRectSchema),
15599
+ // Optional, and absent is none: only a run with a drag writes any.
15600
+ heldPresses: external_exports.array(HeldPressSchema).optional(),
15582
15601
  // Optional, and absent is identity: every bundle written before
15583
15602
  // 2026-10-11 carries none, and identity is what they were drawn as.
15584
15603
  // See `ViewportTransformSchema`.
@@ -15729,7 +15748,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15729
15748
  });
15730
15749
 
15731
15750
  // ../../packages/scene-schema/dist/document.js
15732
- var CURRENT_SCHEMA_VERSION = 10;
15751
+ var CURRENT_SCHEMA_VERSION = 12;
15733
15752
  var Rect = external_exports.object({
15734
15753
  x: external_exports.number(),
15735
15754
  y: external_exports.number(),
@@ -15900,17 +15919,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15900
15919
  kind: external_exports.literal("waitFor"),
15901
15920
  condition: external_exports.enum(["visible", "hidden", "loaded"]).optional()
15902
15921
  });
15922
+ var Spot = external_exports.object({
15923
+ x: external_exports.number().min(0).max(1),
15924
+ y: external_exports.number().min(0).max(1)
15925
+ });
15926
+ var Drag = external_exports.object({
15927
+ ...actionBase,
15928
+ kind: external_exports.literal("drag"),
15929
+ /** Null when the end was an offset, which names no element. */
15930
+ toAnchorId: external_exports.string().min(1).nullable(),
15931
+ toRect: Rect.optional(),
15932
+ fromAt: Spot.optional(),
15933
+ /** Where it pressed when the walk chose the spot itself — a native
15934
+ * range's thumb, where a press at the centre would jump its value — as a
15935
+ * spot in `rect`. Absent: `fromAt`, else the centre. Never written back
15936
+ * into a script: a re-run reads the thumb afresh. */
15937
+ pressedAt: Spot.optional(),
15938
+ to: external_exports.union([
15939
+ external_exports.object({ at: Spot.optional() }).strict(),
15940
+ external_exports.object({ by: external_exports.object({ x: external_exports.number(), y: external_exports.number() }) }).strict()
15941
+ ])
15942
+ });
15903
15943
  var Action = external_exports.discriminatedUnion("kind", [
15904
15944
  MoveTo,
15905
15945
  Click,
15906
15946
  TypeAction,
15907
15947
  ScrollTo,
15908
- WaitFor
15948
+ WaitFor,
15949
+ Drag
15909
15950
  ]);
15910
15951
  var MarkerSchema2 = external_exports.object({
15911
15952
  actionId: external_exports.string().min(1),
15912
15953
  offsetMs: external_exports.number()
15913
15954
  });
15955
+ var SourcePointSchema = external_exports.object({
15956
+ actionId: external_exports.string().min(1),
15957
+ sourceOffsetMs: external_exports.number()
15958
+ });
15914
15959
  var Point = external_exports.object({ x: external_exports.number(), y: external_exports.number() });
15915
15960
  var CameraEvent = external_exports.object({
15916
15961
  id: external_exports.string().min(1),
@@ -15947,12 +15992,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15947
15992
  named.push(["afterActionId", skip.afterActionId]);
15948
15993
  return named;
15949
15994
  }
15950
- var Replacement = external_exports.object({
15951
- id: external_exports.string().min(1),
15952
- targetAnchorId: external_exports.string().min(1).nullable(),
15953
- find: external_exports.string().nullable(),
15954
- replace: external_exports.string()
15955
- });
15956
15995
  var Mask = external_exports.object({
15957
15996
  id: external_exports.string().min(1),
15958
15997
  rect: Rect,
@@ -15972,12 +16011,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15972
16011
  afterActionId: external_exports.string().min(1),
15973
16012
  durationMs: external_exports.number().nonnegative()
15974
16013
  });
15975
- var Cut = external_exports.object({
15976
- id: external_exports.string().min(1),
15977
- actionId: external_exports.string().min(1),
15978
- /** The author chose to keep a jump rather than have export rebuild it. */
15979
- keepJump: external_exports.literal(true).optional()
15980
- });
15981
16014
  var NetworkEntry = external_exports.object({
15982
16015
  id: external_exports.string().min(1),
15983
16016
  method: external_exports.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]),
@@ -16161,8 +16194,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16161
16194
  background: NEUTRAL_BACKGROUND,
16162
16195
  logo: null,
16163
16196
  /**
16164
- * 8%: Screen Studio's margin, near enough (measured 8.4% on 2026-10-05),
16165
- * and the smallest padding that draws the default logo at full size.
16197
+ * 8%: the margin of a polished recording, near enough (8.4% measured on
16198
+ * 2026-10-05), and the smallest padding that draws the default logo at
16199
+ * full size.
16166
16200
  * `placeLogo` keeps a mark 0.02 × short in from the edge and clear of the
16167
16201
  * recording, so a logo of size `s` fits only when the padding is at least
16168
16202
  * `s + 0.02`, and `LOGO_DEFAULTS.size` is 0.06.
@@ -16187,11 +16221,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16187
16221
  /** See `ZoomSkipped`. */
16188
16222
  zoomsSkipped: external_exports.array(ZoomSkipped).optional(),
16189
16223
  edits: external_exports.object({
16190
- replacements: external_exports.array(Replacement),
16191
16224
  masks: external_exports.array(Mask),
16192
16225
  holds: external_exports.array(Hold),
16193
16226
  gaps: external_exports.array(Gap).default([]),
16194
- cuts: external_exports.array(Cut).default([]),
16227
+ /** Where the author split the clip. A split alone removes nothing. */
16228
+ splits: external_exports.array(external_exports.object({ id: external_exports.string().min(1), at: SourcePointSchema })).default([]),
16229
+ /**
16230
+ * Stretches of the frames the author removed. A null side is that end
16231
+ * of the take. Its edits stay in the document; what it removes is
16232
+ * resolved against the frames by the compositor.
16233
+ */
16234
+ removed: external_exports.array(external_exports.object({
16235
+ id: external_exports.string().min(1),
16236
+ start: SourcePointSchema.nullable(),
16237
+ end: SourcePointSchema.nullable()
16238
+ })).default([]),
16195
16239
  /**
16196
16240
  * A cut on the OUTPUT axis, never on the action log: a step outside
16197
16241
  * the trim still exists and a Rebuild still performs it (that is what
@@ -16242,19 +16286,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16242
16286
  unique(doc.edits.holds, "hold", ["edits", "holds"]);
16243
16287
  unique(doc.edits.gaps, "gap", ["edits", "gaps"]);
16244
16288
  unique(doc.edits.gaps.map((g) => ({ id: g.afterActionId })), "gap for an action", ["edits", "gaps"]);
16245
- unique(doc.edits.cuts, "cut", ["edits", "cuts"]);
16246
- unique(doc.edits.cuts.map((c) => ({ id: c.actionId })), "cut for an action", ["edits", "cuts"]);
16289
+ unique(doc.edits.splits, "split", ["edits", "splits"]);
16290
+ unique(doc.edits.removed, "removed piece", ["edits", "removed"]);
16247
16291
  const anchorIds = new Set(doc.anchors.map((a) => a.id));
16248
16292
  const actionIds = new Set(doc.actions.map((a) => a.id));
16249
- doc.edits.cuts.forEach((c, i) => {
16250
- if (!actionIds.has(c.actionId)) {
16251
- ctx.addIssue({
16252
- code: "custom",
16253
- message: `unknown action "${c.actionId}"`,
16254
- path: ["edits", "cuts", i, "actionId"]
16255
- });
16256
- }
16257
- });
16258
16293
  doc.actions.forEach((a, i) => {
16259
16294
  if (a.anchorId !== null && !anchorIds.has(a.anchorId)) {
16260
16295
  ctx.addIssue({
@@ -16344,24 +16379,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16344
16379
  });
16345
16380
  }
16346
16381
  }
16347
- doc.edits.replacements.forEach((r, i) => {
16348
- if (r.targetAnchorId !== null && !anchorIds.has(r.targetAnchorId)) {
16382
+ doc.edits.holds.forEach((h, i) => {
16383
+ if (!actionIds.has(h.marker.actionId)) {
16349
16384
  ctx.addIssue({
16350
16385
  code: "custom",
16351
- message: `unknown anchor "${r.targetAnchorId}"`,
16352
- path: ["edits", "replacements", i, "targetAnchorId"]
16386
+ message: `unknown action "${h.marker.actionId}"`,
16387
+ path: ["edits", "holds", i, "marker", "actionId"]
16353
16388
  });
16354
16389
  }
16355
16390
  });
16356
- doc.edits.holds.forEach((h, i) => {
16357
- if (!actionIds.has(h.marker.actionId)) {
16391
+ (doc.edits.splits ?? []).forEach((split, i) => {
16392
+ if (!actionIds.has(split.at.actionId)) {
16358
16393
  ctx.addIssue({
16359
16394
  code: "custom",
16360
- message: `unknown action "${h.marker.actionId}"`,
16361
- path: ["edits", "holds", i, "marker", "actionId"]
16395
+ message: `unknown action "${split.at.actionId}"`,
16396
+ path: ["edits", "splits", i, "at", "actionId"]
16362
16397
  });
16363
16398
  }
16364
16399
  });
16400
+ (doc.edits.removed ?? []).forEach((range, i) => {
16401
+ for (const side of ["start", "end"]) {
16402
+ const point = range[side];
16403
+ if (point !== null && !actionIds.has(point.actionId)) {
16404
+ ctx.addIssue({
16405
+ code: "custom",
16406
+ message: `unknown action "${point.actionId}"`,
16407
+ path: ["edits", "removed", i, side, "actionId"]
16408
+ });
16409
+ }
16410
+ }
16411
+ });
16365
16412
  doc.edits.gaps.forEach((g, i) => {
16366
16413
  if (!actionIds.has(g.afterActionId)) {
16367
16414
  ctx.addIssue({
@@ -16379,6 +16426,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16379
16426
  var SCRIPT_VERSION_MOTION = 3;
16380
16427
  var SCRIPT_VERSION_DEVICE = 4;
16381
16428
  var SCRIPT_VERSION_ACCOUNT = 5;
16429
+ var SCRIPT_VERSION_DRAG = 6;
16382
16430
  var ACCOUNT_NAME = /^[a-z0-9][a-z0-9_-]{0,63}$/;
16383
16431
  var ACCOUNT_NAME_RULE = 'lower-case letters, digits, "-" and "_", starting with a letter or digit, at most 64 characters';
16384
16432
  var ScriptTargetSchema = external_exports.union([
@@ -16388,6 +16436,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16388
16436
  external_exports.object({ treePath: external_exports.string().min(1) }).strict()
16389
16437
  ]);
16390
16438
  var RecordedSchema = external_exports.string().min(1).optional();
16439
+ var DragSpotSchema = external_exports.object({ x: external_exports.number().min(0).max(1), y: external_exports.number().min(0).max(1) }).strict();
16440
+ var DragFromSchema = external_exports.object({ on: ScriptTargetSchema, at: DragSpotSchema.optional() }).strict();
16441
+ var DragToSchema = external_exports.union([
16442
+ DragFromSchema,
16443
+ external_exports.object({
16444
+ by: external_exports.object({ x: external_exports.number().finite(), y: external_exports.number().finite() }).strict()
16445
+ }).strict()
16446
+ ]);
16391
16447
  var ScriptStepSchema = external_exports.discriminatedUnion("do", [
16392
16448
  external_exports.object({
16393
16449
  do: external_exports.literal("click"),
@@ -16438,6 +16494,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16438
16494
  until: external_exports.enum(["visible", "hidden"]),
16439
16495
  recorded: RecordedSchema
16440
16496
  }).strict(),
16497
+ external_exports.object({
16498
+ do: external_exports.literal("drag"),
16499
+ from: DragFromSchema,
16500
+ to: DragToSchema,
16501
+ recorded: RecordedSchema
16502
+ }).strict(),
16441
16503
  external_exports.object({ do: external_exports.literal("waitForLoad"), recorded: RecordedSchema }).strict(),
16442
16504
  external_exports.object({ do: external_exports.literal("pause"), ms: external_exports.number().positive() }).strict()
16443
16505
  ]);
@@ -16447,6 +16509,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16447
16509
  hover: true,
16448
16510
  scrollTo: true,
16449
16511
  waitFor: true,
16512
+ drag: true,
16450
16513
  waitForLoad: true,
16451
16514
  pause: false
16452
16515
  };
@@ -16459,7 +16522,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16459
16522
  SCRIPT_VERSION_KIT,
16460
16523
  SCRIPT_VERSION_MOTION,
16461
16524
  SCRIPT_VERSION_DEVICE,
16462
- SCRIPT_VERSION_ACCOUNT
16525
+ SCRIPT_VERSION_ACCOUNT,
16526
+ SCRIPT_VERSION_DRAG
16463
16527
  ]),
16464
16528
  name: external_exports.string().min(1),
16465
16529
  target: external_exports.url(),
@@ -16535,17 +16599,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16535
16599
  if (script.device !== void 0 && script.scriptVersion < SCRIPT_VERSION_DEVICE) {
16536
16600
  ctx.addIssue({
16537
16601
  code: "custom",
16538
- message: `a script that names device declares scriptVersion ${SCRIPT_VERSION_DEVICE}: a build from before devices would drop it and film the desktop`,
16602
+ message: `a script that names device declares scriptVersion ${SCRIPT_VERSION_DEVICE}: a build from before devices would drop it and record the desktop`,
16539
16603
  path: ["scriptVersion"]
16540
16604
  });
16541
16605
  }
16542
16606
  if (script.account !== void 0 && script.scriptVersion < SCRIPT_VERSION_ACCOUNT) {
16543
16607
  ctx.addIssue({
16544
16608
  code: "custom",
16545
- message: `a script that names account declares scriptVersion ${SCRIPT_VERSION_ACCOUNT}: a build from before accounts would drop it and film as whoever is signed in`,
16609
+ message: `a script that names account declares scriptVersion ${SCRIPT_VERSION_ACCOUNT}: a build from before accounts would drop it and record as whoever is signed in`,
16546
16610
  path: ["scriptVersion"]
16547
16611
  });
16548
16612
  }
16613
+ script.steps.forEach((step, index) => {
16614
+ if (step.do !== "drag")
16615
+ return;
16616
+ if (script.scriptVersion < SCRIPT_VERSION_DRAG) {
16617
+ ctx.addIssue({
16618
+ code: "custom",
16619
+ message: `a script that uses drag declares scriptVersion ${SCRIPT_VERSION_DRAG}: a build from before drag would refuse the step`,
16620
+ path: ["scriptVersion"]
16621
+ });
16622
+ }
16623
+ const nowhere = "by" in step.to ? step.to.by.x === 0 && step.to.by.y === 0 : JSON.stringify(step.to.on) === JSON.stringify(step.from.on) && (step.to.at?.x ?? 0.5) === (step.from.at?.x ?? 0.5) && (step.to.at?.y ?? 0.5) === (step.from.at?.y ?? 0.5);
16624
+ if (nowhere) {
16625
+ ctx.addIssue({
16626
+ code: "custom",
16627
+ message: `step ${index + 1} is a drag that starts and ends at the same point: give \`to\` another target, spot or offset, or make it a click`,
16628
+ path: ["steps", index, "to"]
16629
+ });
16630
+ }
16631
+ });
16549
16632
  script.steps.forEach((step, index) => {
16550
16633
  if (step.do !== "type" || !/\{secret:/.test(step.text))
16551
16634
  return;
@@ -16594,7 +16677,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16594
16677
  stiffness: lerp(8, 5.5, smoothness),
16595
16678
  zoomInMs: lerp(1e3, 1600, smoothness),
16596
16679
  zoomOutMs: lerp(700, 1150, smoothness),
16597
- followPanMs: lerp(500, 900, smoothness)
16680
+ followRatePerS: lerp(13, 7, smoothness)
16598
16681
  };
16599
16682
  }
16600
16683
  var DEFAULT_TIMINGS = motionTimings(MOTION_DEFAULTS.smoothness);
@@ -16685,42 +16768,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16685
16768
  }
16686
16769
  };
16687
16770
 
16688
- // ../../packages/compositor/dist/render/draw-cursor.js
16689
- var CURSOR_UPRIGHT = Object.freeze({
16690
- press: 1,
16691
- angleRad: 0
16692
- });
16693
- var ARROW = [
16694
- { x: 0, y: 0 },
16695
- { x: 0, y: 0.75 },
16696
- { x: 0.19, y: 0.58 },
16697
- { x: 0.31, y: 0.87 },
16698
- { x: 0.45, y: 0.81 },
16699
- { x: 0.33, y: 0.53 },
16700
- { x: 0.56, y: 0.52 }
16701
- ];
16702
- var TOUCH_RADIUS = 0.42;
16703
- var CURSOR_ART = {
16704
- light: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
16705
- dark: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
16706
- touch: {
16707
- height: 40,
16708
- hotspot: { x: 0.5, y: 0.5 },
16709
- ink: {
16710
- min: { x: 0.5 - TOUCH_RADIUS, y: 0.5 - TOUCH_RADIUS },
16711
- max: { x: 0.5 + TOUCH_RADIUS, y: 0.5 + TOUCH_RADIUS }
16712
- }
16713
- }
16714
- };
16715
- function bounds(points) {
16716
- const xs = points.map((p) => p.x);
16717
- const ys = points.map((p) => p.y);
16718
- return {
16719
- min: { x: Math.min(...xs), y: Math.min(...ys) },
16720
- max: { x: Math.max(...xs), y: Math.max(...ys) }
16721
- };
16722
- }
16723
-
16724
16771
  // ../../node_modules/.pnpm/mediabunny@1.55.2/node_modules/mediabunny/dist/modules/src/misc.js
16725
16772
  function assert2(x) {
16726
16773
  if (!x) {
@@ -26499,6 +26546,42 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
26499
26546
  };
26500
26547
  }
26501
26548
 
26549
+ // ../../packages/compositor/dist/render/draw-cursor.js
26550
+ var CURSOR_UPRIGHT = Object.freeze({
26551
+ press: 1,
26552
+ angleRad: 0
26553
+ });
26554
+ var ARROW = [
26555
+ { x: 0, y: 0 },
26556
+ { x: 0, y: 0.75 },
26557
+ { x: 0.19, y: 0.58 },
26558
+ { x: 0.31, y: 0.87 },
26559
+ { x: 0.45, y: 0.81 },
26560
+ { x: 0.33, y: 0.53 },
26561
+ { x: 0.56, y: 0.52 }
26562
+ ];
26563
+ var TOUCH_RADIUS = 0.42;
26564
+ var CURSOR_ART = {
26565
+ light: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
26566
+ dark: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
26567
+ touch: {
26568
+ height: 40,
26569
+ hotspot: { x: 0.5, y: 0.5 },
26570
+ ink: {
26571
+ min: { x: 0.5 - TOUCH_RADIUS, y: 0.5 - TOUCH_RADIUS },
26572
+ max: { x: 0.5 + TOUCH_RADIUS, y: 0.5 + TOUCH_RADIUS }
26573
+ }
26574
+ }
26575
+ };
26576
+ function bounds(points) {
26577
+ const xs = points.map((p) => p.x);
26578
+ const ys = points.map((p) => p.y);
26579
+ return {
26580
+ min: { x: Math.min(...xs), y: Math.min(...ys) },
26581
+ max: { x: Math.max(...xs), y: Math.max(...ys) }
26582
+ };
26583
+ }
26584
+
26502
26585
  // ../../packages/compositor/dist/render/cursor-pose.js
26503
26586
  var TILT_MAX_RAD = 15 * Math.PI / 180;
26504
26587
  var TILT_VELOCITY_MS = 16;
@@ -26506,6 +26589,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
26506
26589
  var TILT_TAP_MS = 20;
26507
26590
  var TILT_SETTLE_MS = TILT_VELOCITY_MS + (TILT_TAPS - 1) * TILT_TAP_MS;
26508
26591
 
26592
+ // ../../packages/compositor/dist/render/target.js
26593
+ var LANDSCAPE_1440P = {
26594
+ format: "mp4",
26595
+ width: 2560,
26596
+ height: 1440,
26597
+ fps: 60,
26598
+ bitrate: 18e6,
26599
+ cornerRadius: 24,
26600
+ fit: "contain"
26601
+ };
26602
+ var VERTICAL_1080 = {
26603
+ format: "mp4",
26604
+ width: 1080,
26605
+ height: 1920,
26606
+ fps: 60,
26607
+ bitrate: 12e6,
26608
+ cornerRadius: 24,
26609
+ fit: "cover"
26610
+ };
26611
+ var HIGH_LANDSCAPE = {
26612
+ ...LANDSCAPE_1440P,
26613
+ bitrate: 8e6
26614
+ };
26615
+ var HIGH_VERTICAL = {
26616
+ ...VERTICAL_1080,
26617
+ bitrate: HIGH_LANDSCAPE.bitrate
26618
+ };
26619
+
26509
26620
  // dist/entry-globals.js
26510
26621
  var MUX_ENTRY_GLOBAL = "__demomanMux";
26511
26622