popost 4.6.0 → 4.6.6

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 (1280) hide show
  1. package/LICENSE +59 -3
  2. package/README.md +25 -10
  3. package/SKILL.md +48 -131
  4. package/THIRD_PARTY_NOTICES +524 -0
  5. package/agents/openai.yaml +2 -2
  6. package/assets/canvas/assets/{dist-Ag5yM9-G.js → dist-BmD8AP0A.js} +1 -1
  7. package/assets/canvas/assets/{es-DzkTYs_E.js → es-CC29Cabv.js} +1 -1
  8. package/assets/canvas/assets/{index-DjfLTPyx.js → index-DhwyFpu2.js} +6 -6
  9. package/assets/canvas/assets/{jszip.min-Cw2BF2G0.js → jszip.min-Bwf_yCrF.js} +1 -1
  10. package/assets/canvas/build-info.json +5 -5
  11. package/assets/canvas/index.html +1 -1
  12. package/assets/video/examples/audio-bars.html +125 -0
  13. package/assets/video/examples/bouncing-ball.html +182 -0
  14. package/assets/video/examples/card-flip.html +92 -0
  15. package/assets/video/examples/catalogue.json +16221 -0
  16. package/assets/video/examples/counter-stat.html +155 -0
  17. package/assets/video/examples/folding-doors.html +94 -0
  18. package/assets/video/examples/glitch-title.html +120 -0
  19. package/assets/video/examples/goo-blobs.html +127 -0
  20. package/assets/video/examples/grid-reveal.html +151 -0
  21. package/assets/video/examples/hf/agent-cursor.html +781 -0
  22. package/assets/video/examples/hf/ai-answer-rank.html +767 -0
  23. package/assets/video/examples/hf/ai-chat-reveal.html +1260 -0
  24. package/assets/video/examples/hf/animated-bar-chart.html +312 -0
  25. package/assets/video/examples/hf/app-showcase.html +1115 -0
  26. package/assets/video/examples/hf/apple-money-count.html +453 -0
  27. package/assets/video/examples/hf/arc-motion-path.html +303 -0
  28. package/assets/video/examples/hf/ascii-render-pass.html +728 -0
  29. package/assets/video/examples/hf/ascii-trail-reveal.html +595 -0
  30. package/assets/video/examples/hf/aurora-drift.html +439 -0
  31. package/assets/video/examples/hf/aurora.html +258 -0
  32. package/assets/video/examples/hf/avatar-cloud.html +667 -0
  33. package/assets/video/examples/hf/avatar-group-hover.html +342 -0
  34. package/assets/video/examples/hf/badge-pop.html +400 -0
  35. package/assets/video/examples/hf/bar-chart-race.html +795 -0
  36. package/assets/video/examples/hf/beat-accent.html +507 -0
  37. package/assets/video/examples/hf/beat-freeze-cut.html +1050 -0
  38. package/assets/video/examples/hf/beat-pulse-background.html +422 -0
  39. package/assets/video/examples/hf/beat-timeline.html +488 -0
  40. package/assets/video/examples/hf/before-after-wipe.html +681 -0
  41. package/assets/video/examples/hf/blob.html +258 -0
  42. package/assets/video/examples/hf/blue-sweater-intro-video.html +1656 -0
  43. package/assets/video/examples/hf/blur-in.html +624 -0
  44. package/assets/video/examples/hf/blur-out-up.html +350 -0
  45. package/assets/video/examples/hf/bottom-up-letters.html +335 -0
  46. package/assets/video/examples/hf/browser-device-stage.html +847 -0
  47. package/assets/video/examples/hf/camcorder-hud.html +371 -0
  48. package/assets/video/examples/hf/camera-dolly-zoom.html +485 -0
  49. package/assets/video/examples/hf/camera-rig-depth-stack.html +246 -0
  50. package/assets/video/examples/hf/camera-scan-gate.html +708 -0
  51. package/assets/video/examples/hf/camera-shake.html +989 -0
  52. package/assets/video/examples/hf/canopy-part-title.html +2549 -0
  53. package/assets/video/examples/hf/caption-blend-difference.html +247 -0
  54. package/assets/video/examples/hf/caption-camera-follow.html +537 -0
  55. package/assets/video/examples/hf/caption-clip-wipe.html +363 -0
  56. package/assets/video/examples/hf/caption-editorial-emphasis.html +615 -0
  57. package/assets/video/examples/hf/caption-emoji-pop.html +623 -0
  58. package/assets/video/examples/hf/caption-glitch-rgb.html +475 -0
  59. package/assets/video/examples/hf/caption-gradient-fill.html +392 -0
  60. package/assets/video/examples/hf/caption-highlight.html +433 -0
  61. package/assets/video/examples/hf/caption-kinetic-slam.html +334 -0
  62. package/assets/video/examples/hf/caption-matrix-decode.html +399 -0
  63. package/assets/video/examples/hf/caption-neon-accent.html +684 -0
  64. package/assets/video/examples/hf/caption-neon-glow.html +373 -0
  65. package/assets/video/examples/hf/caption-parallax-layers.html +530 -0
  66. package/assets/video/examples/hf/caption-particle-burst.html +454 -0
  67. package/assets/video/examples/hf/caption-pill-karaoke.html +517 -0
  68. package/assets/video/examples/hf/caption-texture.html +368 -0
  69. package/assets/video/examples/hf/caption-weight-shift.html +566 -0
  70. package/assets/video/examples/hf/card-resize.html +435 -0
  71. package/assets/video/examples/hf/caret-swap.html +601 -0
  72. package/assets/video/examples/hf/carousel-circle-1.html +1175 -0
  73. package/assets/video/examples/hf/carousel-circle-2.html +1175 -0
  74. package/assets/video/examples/hf/carousel-circle-3.html +1175 -0
  75. package/assets/video/examples/hf/carousel-circle-4.html +1175 -0
  76. package/assets/video/examples/hf/carousel-circle-5.html +1175 -0
  77. package/assets/video/examples/hf/carousel-orbit-1.html +1198 -0
  78. package/assets/video/examples/hf/carousel-orbit-2.html +1198 -0
  79. package/assets/video/examples/hf/carousel-orbit-3.html +1198 -0
  80. package/assets/video/examples/hf/carousel-orbit-4.html +1214 -0
  81. package/assets/video/examples/hf/carousel-orbit-5.html +1198 -0
  82. package/assets/video/examples/hf/carousel-path-1.html +1219 -0
  83. package/assets/video/examples/hf/carousel-path-2.html +1176 -0
  84. package/assets/video/examples/hf/carousel-path-3.html +1190 -0
  85. package/assets/video/examples/hf/carousel-path-4.html +1219 -0
  86. package/assets/video/examples/hf/carousel-path-5.html +1218 -0
  87. package/assets/video/examples/hf/carousel-vision-1.html +1180 -0
  88. package/assets/video/examples/hf/carousel-vision-2.html +1180 -0
  89. package/assets/video/examples/hf/carousel-vision-3.html +1180 -0
  90. package/assets/video/examples/hf/carousel-vision-4.html +1187 -0
  91. package/assets/video/examples/hf/carousel-vision-5.html +1180 -0
  92. package/assets/video/examples/hf/char-slam-explode.html +546 -0
  93. package/assets/video/examples/hf/chart-story.html +973 -0
  94. package/assets/video/examples/hf/chat-message.html +635 -0
  95. package/assets/video/examples/hf/chat-thread.html +953 -0
  96. package/assets/video/examples/hf/chatgpt-exchange.html +1620 -0
  97. package/assets/video/examples/hf/chromatic-radial-split.html +613 -0
  98. package/assets/video/examples/hf/chrome-orb.html +258 -0
  99. package/assets/video/examples/hf/cinemagraph.html +422 -0
  100. package/assets/video/examples/hf/cinematic-zoom.html +613 -0
  101. package/assets/video/examples/hf/claude-exchange.html +1845 -0
  102. package/assets/video/examples/hf/code-3d-extrude.html +755 -0
  103. package/assets/video/examples/hf/code-diff.html +956 -0
  104. package/assets/video/examples/hf/code-highlight.html +885 -0
  105. package/assets/video/examples/hf/code-morph.html +1357 -0
  106. package/assets/video/examples/hf/code-particle-assemble.html +622 -0
  107. package/assets/video/examples/hf/code-scroll.html +1700 -0
  108. package/assets/video/examples/hf/code-shader-dissolve.html +677 -0
  109. package/assets/video/examples/hf/code-slice-hero.html +1276 -0
  110. package/assets/video/examples/hf/code-snippet-apple-terminal-pro.html +388 -0
  111. package/assets/video/examples/hf/code-snippet-dark-2026.html +1231 -0
  112. package/assets/video/examples/hf/code-snippet-dark-modern.html +1227 -0
  113. package/assets/video/examples/hf/code-terminal-run.html +766 -0
  114. package/assets/video/examples/hf/code-typing.html +903 -0
  115. package/assets/video/examples/hf/color-wheel.html +258 -0
  116. package/assets/video/examples/hf/colorama-wipe.html +503 -0
  117. package/assets/video/examples/hf/comparison-split.html +657 -0
  118. package/assets/video/examples/hf/confetti.html +349 -0
  119. package/assets/video/examples/hf/conic-progress-ring.html +441 -0
  120. package/assets/video/examples/hf/constellation-hub.html +662 -0
  121. package/assets/video/examples/hf/cosmic-orb.html +643 -0
  122. package/assets/video/examples/hf/count-up.html +552 -0
  123. package/assets/video/examples/hf/cross-warp-morph.html +624 -0
  124. package/assets/video/examples/hf/cta-close.html +492 -0
  125. package/assets/video/examples/hf/cta-lockup.html +470 -0
  126. package/assets/video/examples/hf/cuboid-carousel.html +2385 -0
  127. package/assets/video/examples/hf/cursor-annotate.html +827 -0
  128. package/assets/video/examples/hf/cursor-context-menu.html +757 -0
  129. package/assets/video/examples/hf/cursor-drag-drop.html +656 -0
  130. package/assets/video/examples/hf/cursor-glyph-trail.html +904 -0
  131. package/assets/video/examples/hf/cursor-marquee-select.html +1266 -0
  132. package/assets/video/examples/hf/cursor-text-select.html +638 -0
  133. package/assets/video/examples/hf/cursor-zoom-follow.html +973 -0
  134. package/assets/video/examples/hf/curtain-reveal.html +590 -0
  135. package/assets/video/examples/hf/cut-the-curve.html +715 -0
  136. package/assets/video/examples/hf/dart-cursor.html +863 -0
  137. package/assets/video/examples/hf/data-chart.html +666 -0
  138. package/assets/video/examples/hf/decision-tree.html +655 -0
  139. package/assets/video/examples/hf/decline-chart.html +485 -0
  140. package/assets/video/examples/hf/device-frame-stage.html +661 -0
  141. package/assets/video/examples/hf/domain-warp-dissolve.html +627 -0
  142. package/assets/video/examples/hf/drift-hold.html +392 -0
  143. package/assets/video/examples/hf/dynamic-grid.html +336 -0
  144. package/assets/video/examples/hf/echo-smear.html +994 -0
  145. package/assets/video/examples/hf/echo-trail.html +557 -0
  146. package/assets/video/examples/hf/editorial-flash-overlay.html +337 -0
  147. package/assets/video/examples/hf/exploded-stack.html +761 -0
  148. package/assets/video/examples/hf/extended-keyframe.html +715 -0
  149. package/assets/video/examples/hf/extruded-logo.html +757 -0
  150. package/assets/video/examples/hf/facet-morph.html +746 -0
  151. package/assets/video/examples/hf/fade-through.html +443 -0
  152. package/assets/video/examples/hf/falling-lines.html +259 -0
  153. package/assets/video/examples/hf/filmed-screen.html +1065 -0
  154. package/assets/video/examples/hf/flash-through-white.html +613 -0
  155. package/assets/video/examples/hf/flowchart-vertical.html +631 -0
  156. package/assets/video/examples/hf/flowchart.html +630 -0
  157. package/assets/video/examples/hf/flowing-gradient.html +258 -0
  158. package/assets/video/examples/hf/focus-blur-resolve.html +321 -0
  159. package/assets/video/examples/hf/focus-rack.html +542 -0
  160. package/assets/video/examples/hf/focus-swap.html +496 -0
  161. package/assets/video/examples/hf/fractal-noise.html +258 -0
  162. package/assets/video/examples/hf/freeze-frame-dressing.html +357 -0
  163. package/assets/video/examples/hf/frost.html +258 -0
  164. package/assets/video/examples/hf/gabor-noise.html +258 -0
  165. package/assets/video/examples/hf/gallery-tunnel.html +652 -0
  166. package/assets/video/examples/hf/gesture-tap.html +604 -0
  167. package/assets/video/examples/hf/glass-hero.html +505 -0
  168. package/assets/video/examples/hf/glass-shard-title.html +1618 -0
  169. package/assets/video/examples/hf/glitch.html +613 -0
  170. package/assets/video/examples/hf/gloss-sweep.html +418 -0
  171. package/assets/video/examples/hf/godrays.html +257 -0
  172. package/assets/video/examples/hf/goo.html +258 -0
  173. package/assets/video/examples/hf/gooey-split.html +1092 -0
  174. package/assets/video/examples/hf/grain-field.html +377 -0
  175. package/assets/video/examples/hf/grain-overlay.html +295 -0
  176. package/assets/video/examples/hf/gravitational-lens.html +612 -0
  177. package/assets/video/examples/hf/grid-card-assemble.html +671 -0
  178. package/assets/video/examples/hf/grid-pixelate-wipe.html +314 -0
  179. package/assets/video/examples/hf/halftone-dissolve.html +696 -0
  180. package/assets/video/examples/hf/halftone-field.html +598 -0
  181. package/assets/video/examples/hf/headline-slam.html +455 -0
  182. package/assets/video/examples/hf/heatmap.html +258 -0
  183. package/assets/video/examples/hf/heygen-avatar-promo-card.html +627 -0
  184. package/assets/video/examples/hf/hologram.html +258 -0
  185. package/assets/video/examples/hf/holographic.html +258 -0
  186. package/assets/video/examples/hf/hw-arrow.html +835 -0
  187. package/assets/video/examples/hf/hw-boil.html +632 -0
  188. package/assets/video/examples/hf/hw-box-label.html +741 -0
  189. package/assets/video/examples/hf/hw-callout-circle.html +820 -0
  190. package/assets/video/examples/hf/hw-frame.html +455 -0
  191. package/assets/video/examples/hf/hw-path-text.html +349 -0
  192. package/assets/video/examples/hf/hw-pipeline.html +472 -0
  193. package/assets/video/examples/hf/hw-scribble-transition.html +291 -0
  194. package/assets/video/examples/hf/hw-text-cloud.html +439 -0
  195. package/assets/video/examples/hf/hw-title.html +412 -0
  196. package/assets/video/examples/hf/hw-underline.html +403 -0
  197. package/assets/video/examples/hf/hw-write-title.html +1389 -0
  198. package/assets/video/examples/hf/icon-morph-beat.html +463 -0
  199. package/assets/video/examples/hf/icon-swap.html +380 -0
  200. package/assets/video/examples/hf/ink-bleed-reveal.html +659 -0
  201. package/assets/video/examples/hf/inline-highlight.html +322 -0
  202. package/assets/video/examples/hf/input-feedback.html +419 -0
  203. package/assets/video/examples/hf/instagram-follow.html +460 -0
  204. package/assets/video/examples/hf/ios26-liquid-glass.html +1597 -0
  205. package/assets/video/examples/hf/iris-reveal.html +684 -0
  206. package/assets/video/examples/hf/keyframe-scrub-stack.html +326 -0
  207. package/assets/video/examples/hf/kinetic-center-build.html +538 -0
  208. package/assets/video/examples/hf/kinetic-type-swap.html +610 -0
  209. package/assets/video/examples/hf/kinetic-type.html +862 -0
  210. package/assets/video/examples/hf/lens-flare.html +258 -0
  211. package/assets/video/examples/hf/light-edge.html +259 -0
  212. package/assets/video/examples/hf/light-leak.html +612 -0
  213. package/assets/video/examples/hf/light-sweep-pass.html +684 -0
  214. package/assets/video/examples/hf/line-by-line-slide.html +345 -0
  215. package/assets/video/examples/hf/line-swap.html +526 -0
  216. package/assets/video/examples/hf/liquid-glass-notification.html +1898 -0
  217. package/assets/video/examples/hf/liquid-glass-widgets.html +2175 -0
  218. package/assets/video/examples/hf/liquid-metal.html +259 -0
  219. package/assets/video/examples/hf/locked-nucleus-orbit.html +564 -0
  220. package/assets/video/examples/hf/logo-brand-close.html +598 -0
  221. package/assets/video/examples/hf/logo-outro.html +397 -0
  222. package/assets/video/examples/hf/logo-sting.html +378 -0
  223. package/assets/video/examples/hf/logo-wall.html +502 -0
  224. package/assets/video/examples/hf/lottie-character-walk.html +407 -0
  225. package/assets/video/examples/hf/lt-accent-underline.html +247 -0
  226. package/assets/video/examples/hf/lt-bold-block.html +249 -0
  227. package/assets/video/examples/hf/lt-clean-bar.html +251 -0
  228. package/assets/video/examples/hf/lt-color-block.html +241 -0
  229. package/assets/video/examples/hf/lt-dark-card.html +251 -0
  230. package/assets/video/examples/hf/lt-kicker-name.html +254 -0
  231. package/assets/video/examples/hf/lt-mask-reveal.html +260 -0
  232. package/assets/video/examples/hf/lt-neon-border.html +604 -0
  233. package/assets/video/examples/hf/lt-side-rule.html +254 -0
  234. package/assets/video/examples/hf/lt-soft-pill.html +259 -0
  235. package/assets/video/examples/hf/lt-stack-bars.html +249 -0
  236. package/assets/video/examples/hf/macos-notification.html +372 -0
  237. package/assets/video/examples/hf/macos-tahoe-liquid-glass.html +1701 -0
  238. package/assets/video/examples/hf/magnetic-cursor.html +684 -0
  239. package/assets/video/examples/hf/marble.html +257 -0
  240. package/assets/video/examples/hf/marker-checklist-card.html +727 -0
  241. package/assets/video/examples/hf/marker-highlight.html +589 -0
  242. package/assets/video/examples/hf/match-cut.html +505 -0
  243. package/assets/video/examples/hf/matrix-decode.html +363 -0
  244. package/assets/video/examples/hf/menu-morph.html +420 -0
  245. package/assets/video/examples/hf/mesh-gradient-bg.html +329 -0
  246. package/assets/video/examples/hf/mesh-gradient.html +257 -0
  247. package/assets/video/examples/hf/message-thread-reveal.html +1913 -0
  248. package/assets/video/examples/hf/micro-transitions.html +631 -0
  249. package/assets/video/examples/hf/mk-background.html +376 -0
  250. package/assets/video/examples/hf/mk-callout-highlight.html +322 -0
  251. package/assets/video/examples/hf/mk-clone-wall-transition.html +364 -0
  252. package/assets/video/examples/hf/mk-emphasis-type.html +235 -0
  253. package/assets/video/examples/hf/mk-line-graph.html +432 -0
  254. package/assets/video/examples/hf/mk-placeholder-grid.html +373 -0
  255. package/assets/video/examples/hf/mk-progress-stat.html +324 -0
  256. package/assets/video/examples/hf/mk-specs-list.html +362 -0
  257. package/assets/video/examples/hf/mk-usage-arc.html +297 -0
  258. package/assets/video/examples/hf/modal-morph.html +727 -0
  259. package/assets/video/examples/hf/morph-swap.html +590 -0
  260. package/assets/video/examples/hf/morph-text.html +409 -0
  261. package/assets/video/examples/hf/multi-device-splay.html +934 -0
  262. package/assets/video/examples/hf/multiplayer-cursors.html +642 -0
  263. package/assets/video/examples/hf/native-notification-pop.html +670 -0
  264. package/assets/video/examples/hf/nebula.html +258 -0
  265. package/assets/video/examples/hf/news-ticker.html +548 -0
  266. package/assets/video/examples/hf/north-korea-locked-down.html +447 -0
  267. package/assets/video/examples/hf/notes-reveal.html +2028 -0
  268. package/assets/video/examples/hf/notes-typing.html +631 -0
  269. package/assets/video/examples/hf/notification-cascade.html +740 -0
  270. package/assets/video/examples/hf/notification-pileup.html +667 -0
  271. package/assets/video/examples/hf/notification-stack.html +610 -0
  272. package/assets/video/examples/hf/number-pop-in.html +362 -0
  273. package/assets/video/examples/hf/number-wheel.html +378 -0
  274. package/assets/video/examples/hf/nyc-paris-flight.html +659 -0
  275. package/assets/video/examples/hf/nyt-graph.html +715 -0
  276. package/assets/video/examples/hf/obsidian.html +258 -0
  277. package/assets/video/examples/hf/offset-path-traveler.html +511 -0
  278. package/assets/video/examples/hf/onboarding-stepper-flow.html +292 -0
  279. package/assets/video/examples/hf/orbit-card.html +2457 -0
  280. package/assets/video/examples/hf/ordered-dither-pass.html +753 -0
  281. package/assets/video/examples/hf/organic-light-leak-overlay.html +336 -0
  282. package/assets/video/examples/hf/oscilloscope-trace.html +718 -0
  283. package/assets/video/examples/hf/outline-draw.html +394 -0
  284. package/assets/video/examples/hf/oversized-cursor.html +851 -0
  285. package/assets/video/examples/hf/overwhelm-surround.html +557 -0
  286. package/assets/video/examples/hf/page-slide.html +377 -0
  287. package/assets/video/examples/hf/pan-stations.html +555 -0
  288. package/assets/video/examples/hf/panel-reveal.html +370 -0
  289. package/assets/video/examples/hf/paper-collage-reveal.html +737 -0
  290. package/assets/video/examples/hf/parallax-device-dive.html +647 -0
  291. package/assets/video/examples/hf/parallax-unzoom.html +499 -0
  292. package/assets/video/examples/hf/parallax-zoom.html +515 -0
  293. package/assets/video/examples/hf/particle-image-reveal.html +595 -0
  294. package/assets/video/examples/hf/particle-text-dissolve.html +615 -0
  295. package/assets/video/examples/hf/path-traced-3d.html +508 -0
  296. package/assets/video/examples/hf/pendulum-swing.html +364 -0
  297. package/assets/video/examples/hf/per-word-crossfade.html +398 -0
  298. package/assets/video/examples/hf/per-word-rise.html +556 -0
  299. package/assets/video/examples/hf/perspective-marquee.html +366 -0
  300. package/assets/video/examples/hf/physical-exit.html +459 -0
  301. package/assets/video/examples/hf/plasma.html +258 -0
  302. package/assets/video/examples/hf/plastic.html +258 -0
  303. package/assets/video/examples/hf/play-mode.html +1035 -0
  304. package/assets/video/examples/hf/press-ripple.html +675 -0
  305. package/assets/video/examples/hf/prism.html +258 -0
  306. package/assets/video/examples/hf/product-promo.html +1311 -0
  307. package/assets/video/examples/hf/product-turntable.html +4569 -0
  308. package/assets/video/examples/hf/pull-back-reveal.html +546 -0
  309. package/assets/video/examples/hf/pull-to-refresh.html +861 -0
  310. package/assets/video/examples/hf/push-in.html +379 -0
  311. package/assets/video/examples/hf/rack-focus.html +779 -0
  312. package/assets/video/examples/hf/radial-surround.html +653 -0
  313. package/assets/video/examples/hf/reddit-post.html +515 -0
  314. package/assets/video/examples/hf/rgb-glitch-text.html +353 -0
  315. package/assets/video/examples/hf/ridged-burn.html +624 -0
  316. package/assets/video/examples/hf/ripple-waves.html +613 -0
  317. package/assets/video/examples/hf/ripples.html +259 -0
  318. package/assets/video/examples/hf/rubber-band-bumper.html +534 -0
  319. package/assets/video/examples/hf/scan-band.html +415 -0
  320. package/assets/video/examples/hf/scramble-reveal.html +510 -0
  321. package/assets/video/examples/hf/screen-flow-carousel.html +779 -0
  322. package/assets/video/examples/hf/scroll-camera-story.html +988 -0
  323. package/assets/video/examples/hf/scroll-feed.html +602 -0
  324. package/assets/video/examples/hf/sdf-iris.html +613 -0
  325. package/assets/video/examples/hf/segmentation-flood.html +748 -0
  326. package/assets/video/examples/hf/separator.html +620 -0
  327. package/assets/video/examples/hf/settings-toggle-flow.html +286 -0
  328. package/assets/video/examples/hf/share-sheet-carousel.html +591 -0
  329. package/assets/video/examples/hf/shared-axis-y.html +370 -0
  330. package/assets/video/examples/hf/shared-axis-z.html +514 -0
  331. package/assets/video/examples/hf/sheet-spring-up.html +681 -0
  332. package/assets/video/examples/hf/shimmer-sweep.html +301 -0
  333. package/assets/video/examples/hf/signup-flow.html +276 -0
  334. package/assets/video/examples/hf/sine-wave.html +258 -0
  335. package/assets/video/examples/hf/skeleton-reveal.html +373 -0
  336. package/assets/video/examples/hf/slack-notification-ad.html +901 -0
  337. package/assets/video/examples/hf/slit-scan-reveal.html +540 -0
  338. package/assets/video/examples/hf/slot-machine-roll.html +391 -0
  339. package/assets/video/examples/hf/snow.html +499 -0
  340. package/assets/video/examples/hf/social-proof-card.html +534 -0
  341. package/assets/video/examples/hf/soft-blur-in.html +322 -0
  342. package/assets/video/examples/hf/spain-map.html +583 -0
  343. package/assets/video/examples/hf/spiral-galaxy.html +507 -0
  344. package/assets/video/examples/hf/spiral.html +258 -0
  345. package/assets/video/examples/hf/split-flap-board.html +537 -0
  346. package/assets/video/examples/hf/split-tilt-cards.html +775 -0
  347. package/assets/video/examples/hf/spotify-card.html +470 -0
  348. package/assets/video/examples/hf/spotlight-card.html +328 -0
  349. package/assets/video/examples/hf/spring-pop.html +406 -0
  350. package/assets/video/examples/hf/spring-stack-shuffle.html +791 -0
  351. package/assets/video/examples/hf/stagger-cascade.html +465 -0
  352. package/assets/video/examples/hf/stagger-lattice.html +278 -0
  353. package/assets/video/examples/hf/staggered-fade-up.html +368 -0
  354. package/assets/video/examples/hf/star-rating-fill.html +511 -0
  355. package/assets/video/examples/hf/starfield.html +450 -0
  356. package/assets/video/examples/hf/state-chip-rail.html +585 -0
  357. package/assets/video/examples/hf/sticky-mock-swap.html +664 -0
  358. package/assets/video/examples/hf/stitched-text-draw.html +1053 -0
  359. package/assets/video/examples/hf/stop-motion-cadence.html +670 -0
  360. package/assets/video/examples/hf/store-badge-lockup.html +521 -0
  361. package/assets/video/examples/hf/strands.html +258 -0
  362. package/assets/video/examples/hf/streaming-text.html +581 -0
  363. package/assets/video/examples/hf/strikethrough-replace.html +356 -0
  364. package/assets/video/examples/hf/stripes.html +258 -0
  365. package/assets/video/examples/hf/success-check.html +390 -0
  366. package/assets/video/examples/hf/sun-burst.html +258 -0
  367. package/assets/video/examples/hf/svg-line-draw-loader.html +257 -0
  368. package/assets/video/examples/hf/svg-mask-reveal.html +523 -0
  369. package/assets/video/examples/hf/svg-stroke-trace.html +465 -0
  370. package/assets/video/examples/hf/swipe-rail.html +564 -0
  371. package/assets/video/examples/hf/swirl-vortex.html +623 -0
  372. package/assets/video/examples/hf/swirl.html +258 -0
  373. package/assets/video/examples/hf/swiss-grid.html +837 -0
  374. package/assets/video/examples/hf/tabs-slide-indicator.html +424 -0
  375. package/assets/video/examples/hf/telemetry-hud.html +760 -0
  376. package/assets/video/examples/hf/terminal-simulator.html +293 -0
  377. package/assets/video/examples/hf/testimonial-card.html +545 -0
  378. package/assets/video/examples/hf/testimonial-proof-card.html +720 -0
  379. package/assets/video/examples/hf/text-match-cut.html +1345 -0
  380. package/assets/video/examples/hf/text-shimmer.html +394 -0
  381. package/assets/video/examples/hf/text-stagger.html +373 -0
  382. package/assets/video/examples/hf/text-state-swap.html +421 -0
  383. package/assets/video/examples/hf/thermal-distortion.html +624 -0
  384. package/assets/video/examples/hf/thin-film.html +258 -0
  385. package/assets/video/examples/hf/thread-message-stack.html +377 -0
  386. package/assets/video/examples/hf/three-orbiting-cards.html +322 -0
  387. package/assets/video/examples/hf/ticker-takeover.html +534 -0
  388. package/assets/video/examples/hf/tiktok-follow.html +435 -0
  389. package/assets/video/examples/hf/tilt-card.html +406 -0
  390. package/assets/video/examples/hf/titlecard-calm.html +388 -0
  391. package/assets/video/examples/hf/titlecard-lockup.html +546 -0
  392. package/assets/video/examples/hf/toggle-flip.html +601 -0
  393. package/assets/video/examples/hf/top-down-letters.html +326 -0
  394. package/assets/video/examples/hf/torn-paper-rip.html +762 -0
  395. package/assets/video/examples/hf/touch-indicator.html +777 -0
  396. package/assets/video/examples/hf/tracing-beam.html +608 -0
  397. package/assets/video/examples/hf/tracking-in.html +317 -0
  398. package/assets/video/examples/hf/transitions-3d.html +434 -0
  399. package/assets/video/examples/hf/transitions-blur.html +524 -0
  400. package/assets/video/examples/hf/transitions-cover.html +508 -0
  401. package/assets/video/examples/hf/transitions-destruction.html +551 -0
  402. package/assets/video/examples/hf/transitions-dissolve.html +529 -0
  403. package/assets/video/examples/hf/transitions-distortion.html +522 -0
  404. package/assets/video/examples/hf/transitions-grid.html +442 -0
  405. package/assets/video/examples/hf/transitions-light.html +528 -0
  406. package/assets/video/examples/hf/transitions-mechanical.html +560 -0
  407. package/assets/video/examples/hf/transitions-other.html +532 -0
  408. package/assets/video/examples/hf/transitions-push.html +520 -0
  409. package/assets/video/examples/hf/transitions-radial.html +492 -0
  410. package/assets/video/examples/hf/transitions-scale.html +487 -0
  411. package/assets/video/examples/hf/trust-strip.html +445 -0
  412. package/assets/video/examples/hf/typed-prompt.html +619 -0
  413. package/assets/video/examples/hf/typewriter.html +350 -0
  414. package/assets/video/examples/hf/typing-indicator.html +702 -0
  415. package/assets/video/examples/hf/ui-3d-reveal.html +2929 -0
  416. package/assets/video/examples/hf/ui-focus-zoom.html +786 -0
  417. package/assets/video/examples/hf/us-map-bubble.html +669 -0
  418. package/assets/video/examples/hf/us-map-flow.html +621 -0
  419. package/assets/video/examples/hf/us-map-hex.html +733 -0
  420. package/assets/video/examples/hf/us-map.html +591 -0
  421. package/assets/video/examples/hf/variable-font-flex.html +538 -0
  422. package/assets/video/examples/hf/vector-editor-rig.html +977 -0
  423. package/assets/video/examples/hf/vfx-anamorphic-flare.html +572 -0
  424. package/assets/video/examples/hf/vfx-iphone-device.html +1089 -0
  425. package/assets/video/examples/hf/vfx-liquid-background.html +1479 -0
  426. package/assets/video/examples/hf/vfx-liquid-glass.html +2054 -0
  427. package/assets/video/examples/hf/vfx-magnetic.html +660 -0
  428. package/assets/video/examples/hf/vfx-portal.html +1090 -0
  429. package/assets/video/examples/hf/vfx-shatter.html +1382 -0
  430. package/assets/video/examples/hf/vignette.html +385 -0
  431. package/assets/video/examples/hf/voronoi.html +258 -0
  432. package/assets/video/examples/hf/vox-annotate.html +707 -0
  433. package/assets/video/examples/hf/vpn-youtube-spot.html +1118 -0
  434. package/assets/video/examples/hf/water.html +258 -0
  435. package/assets/video/examples/hf/waveform.html +258 -0
  436. package/assets/video/examples/hf/week-in-merges.html +673 -0
  437. package/assets/video/examples/hf/weight-wave.html +531 -0
  438. package/assets/video/examples/hf/whip-pan-cut.html +668 -0
  439. package/assets/video/examples/hf/whip-pan.html +613 -0
  440. package/assets/video/examples/hf/whiteboard-ink.html +763 -0
  441. package/assets/video/examples/hf/wireframe-portal-title.html +3840 -0
  442. package/assets/video/examples/hf/wordmark-tiles.html +559 -0
  443. package/assets/video/examples/hf/world-map.html +623 -0
  444. package/assets/video/examples/hf/worley-noise.html +259 -0
  445. package/assets/video/examples/hf/x-follow-card.html +286 -0
  446. package/assets/video/examples/hf/x-post.html +611 -0
  447. package/assets/video/examples/hf/yt-camera-move.html +308 -0
  448. package/assets/video/examples/hf/yt-circle-pointer.html +301 -0
  449. package/assets/video/examples/hf/yt-comment-card.html +458 -0
  450. package/assets/video/examples/hf/yt-feather-highlight.html +279 -0
  451. package/assets/video/examples/hf/yt-lcd-background.html +446 -0
  452. package/assets/video/examples/hf/yt-logo-intro.html +390 -0
  453. package/assets/video/examples/hf/yt-lower-third.html +414 -0
  454. package/assets/video/examples/hf/yt-prism-title.html +343 -0
  455. package/assets/video/examples/hf/yt-screen-warp.html +257 -0
  456. package/assets/video/examples/hf/yt-vertical-fill.html +367 -0
  457. package/assets/video/examples/kinetic-type.html +137 -0
  458. package/assets/video/examples/motion-blur-streak.html +119 -0
  459. package/assets/video/examples/object-reveal.html +107 -0
  460. package/assets/video/examples/parallax-layers.html +130 -0
  461. package/assets/video/examples/particle-burst.html +157 -0
  462. package/assets/video/examples/pen-draw.html +146 -0
  463. package/assets/video/examples/shape-morph.html +151 -0
  464. package/assets/video/examples/slam-title.html +125 -0
  465. package/assets/video/examples/speed-lines.html +123 -0
  466. package/assets/video/examples/spring-pop.html +129 -0
  467. package/assets/video/examples/streak-wipe.html +78 -0
  468. package/assets/video/examples/three-chrome-knot.html +155 -0
  469. package/assets/video/examples/three-clay.html +138 -0
  470. package/assets/video/examples/three-cube-wave.html +140 -0
  471. package/assets/video/examples/three-extruded-shape.html +148 -0
  472. package/assets/video/examples/type-on.html +128 -0
  473. package/assets/video/motion.js +991 -0
  474. package/assets/video/screen.js +298 -0
  475. package/assets/video/sfx/catalogue.json +2283 -0
  476. package/dist/cli.js +38185 -3485
  477. package/dist/index.js +37910 -3428
  478. package/dist/types/args.d.ts +2 -0
  479. package/dist/types/broken-pipe.d.ts +13 -0
  480. package/dist/types/cloud/service.d.ts +13 -0
  481. package/dist/types/commands/usage.d.ts +2 -0
  482. package/dist/types/commands/video.d.ts +10 -0
  483. package/dist/types/core/error-text.d.ts +26 -0
  484. package/dist/types/core/errors.d.ts +5 -3
  485. package/dist/types/core/image-info.d.ts +1 -1
  486. package/dist/types/core/image.d.ts +3 -5
  487. package/dist/types/core/project.d.ts +8 -7
  488. package/dist/types/core/util.d.ts +1 -2
  489. package/dist/types/cpu-budget.d.ts +43 -0
  490. package/dist/types/credentials.d.ts +0 -10
  491. package/dist/types/editor/http-types.d.ts +1 -0
  492. package/dist/types/i18n.d.ts +11 -0
  493. package/dist/types/images/batch-jobs.d.ts +2 -0
  494. package/dist/types/images/batch-run.d.ts +2 -1
  495. package/dist/types/images/jobs.d.ts +7 -0
  496. package/dist/types/images/pending.d.ts +40 -0
  497. package/dist/types/images/retry.d.ts +4 -1
  498. package/dist/types/images/run.d.ts +9 -1
  499. package/dist/types/main.d.ts +4 -1
  500. package/dist/types/node-runtime.d.ts +6 -1
  501. package/dist/types/profile.d.ts +2 -0
  502. package/dist/types/providers/api-errors.d.ts +2 -2
  503. package/dist/types/providers/api.d.ts +13 -5
  504. package/dist/types/providers/base.d.ts +2 -0
  505. package/dist/types/providers/cli-generate.d.ts +5 -1
  506. package/dist/types/providers/cli-pending.d.ts +24 -0
  507. package/dist/types/providers/errors.d.ts +7 -2
  508. package/dist/types/providers/ledger.d.ts +10 -6
  509. package/dist/types/providers/popost-async.d.ts +35 -0
  510. package/dist/types/providers/popost-tasks.d.ts +16 -5
  511. package/dist/types/providers/popost-validate.d.ts +0 -1
  512. package/dist/types/providers/popost.d.ts +16 -1
  513. package/dist/types/providers/task.d.ts +43 -0
  514. package/dist/types/render/audit-script.d.ts +2 -1
  515. package/dist/types/render/audit.d.ts +2 -0
  516. package/dist/types/render/browser.d.ts +16 -2
  517. package/dist/types/runtime.d.ts +73 -2
  518. package/dist/types/version.d.ts +1 -1
  519. package/dist/types/video/align/index.d.ts +43 -0
  520. package/dist/types/video/capture/director.d.ts +70 -0
  521. package/dist/types/video/capture/index.d.ts +141 -0
  522. package/dist/types/video/capture/stage.d.ts +99 -0
  523. package/dist/types/video/capture/steps.d.ts +138 -0
  524. package/dist/types/video/commands/cast.d.ts +3 -0
  525. package/dist/types/video/commands/clips.d.ts +2 -0
  526. package/dist/types/video/commands/compare-scope.d.ts +7 -0
  527. package/dist/types/video/commands/credits.d.ts +19 -0
  528. package/dist/types/video/commands/elements.d.ts +22 -0
  529. package/dist/types/video/commands/eval.d.ts +2 -0
  530. package/dist/types/video/commands/example.d.ts +1 -0
  531. package/dist/types/video/commands/generate.d.ts +14 -0
  532. package/dist/types/video/commands/loop-shared.d.ts +12 -0
  533. package/dist/types/video/commands/loop.d.ts +4 -0
  534. package/dist/types/video/commands/make.d.ts +9 -0
  535. package/dist/types/video/commands/materials.d.ts +1 -0
  536. package/dist/types/video/commands/measure.d.ts +2 -0
  537. package/dist/types/video/commands/media.d.ts +2 -0
  538. package/dist/types/video/commands/music-plan.d.ts +1 -0
  539. package/dist/types/video/commands/music.d.ts +2 -0
  540. package/dist/types/video/commands/read.d.ts +19 -0
  541. package/dist/types/video/commands/replication.d.ts +2 -0
  542. package/dist/types/video/commands/sfx-extract.d.ts +2 -0
  543. package/dist/types/video/commands/sfx-place.d.ts +3 -0
  544. package/dist/types/video/commands/sfx.d.ts +2 -0
  545. package/dist/types/video/commands/shared.d.ts +39 -0
  546. package/dist/types/video/commands/source.d.ts +2 -0
  547. package/dist/types/video/commands/speech-check.d.ts +1 -0
  548. package/dist/types/video/commands/speech-kind.d.ts +6 -0
  549. package/dist/types/video/commands/template.d.ts +10 -0
  550. package/dist/types/video/commands/voice-profile.d.ts +2 -0
  551. package/dist/types/video/commands/voice-sample.d.ts +1 -0
  552. package/dist/types/video/compile/footage.d.ts +36 -0
  553. package/dist/types/video/compile/index.d.ts +30 -0
  554. package/dist/types/video/compile/page-bundle.d.ts +1 -0
  555. package/dist/types/video/compile/page.d.ts +10 -0
  556. package/dist/types/video/compile/words.d.ts +9 -0
  557. package/dist/types/video/describe/aim.d.ts +20 -0
  558. package/dist/types/video/describe/beats.d.ts +53 -0
  559. package/dist/types/video/describe/curves.d.ts +27 -0
  560. package/dist/types/video/describe/frames.d.ts +62 -0
  561. package/dist/types/video/describe/index.d.ts +34 -0
  562. package/dist/types/video/describe/inset.d.ts +83 -0
  563. package/dist/types/video/describe/kind.d.ts +29 -0
  564. package/dist/types/video/describe/known.d.ts +31 -0
  565. package/dist/types/video/describe/movement.d.ts +17 -0
  566. package/dist/types/video/describe/parts.d.ts +50 -0
  567. package/dist/types/video/describe/paths.d.ts +21 -0
  568. package/dist/types/video/describe/speech-kind.d.ts +144 -0
  569. package/dist/types/video/describe/unrecovered.d.ts +29 -0
  570. package/dist/types/video/draft/build.d.ts +34 -0
  571. package/dist/types/video/draft/export.d.ts +19 -0
  572. package/dist/types/video/draft/lifecycle.d.ts +9 -0
  573. package/dist/types/video/draft/native.d.ts +27 -0
  574. package/dist/types/video/draft/schema.d.ts +316 -0
  575. package/dist/types/video/draft/targets.d.ts +19 -0
  576. package/dist/types/video/elements/caption-reading.d.ts +9 -0
  577. package/dist/types/video/elements/caption-roles.d.ts +6 -0
  578. package/dist/types/video/elements/carry.d.ts +45 -0
  579. package/dist/types/video/elements/check.d.ts +14 -0
  580. package/dist/types/video/elements/findings.d.ts +49 -0
  581. package/dist/types/video/elements/main.d.ts +54 -0
  582. package/dist/types/video/elements/picture.d.ts +31 -0
  583. package/dist/types/video/elements/questions.d.ts +35 -0
  584. package/dist/types/video/elements/read.d.ts +14 -0
  585. package/dist/types/video/elements/status.d.ts +23 -0
  586. package/dist/types/video/elements/types.d.ts +120 -0
  587. package/dist/types/video/eval/contrast.d.ts +136 -0
  588. package/dist/types/video/eval/dataset.d.ts +21 -0
  589. package/dist/types/video/eval/floor.d.ts +27 -0
  590. package/dist/types/video/eval/ledger.d.ts +27 -0
  591. package/dist/types/video/eval/legibility.d.ts +33 -0
  592. package/dist/types/video/eval/readback-frames.d.ts +41 -0
  593. package/dist/types/video/eval/readback-run.d.ts +54 -0
  594. package/dist/types/video/eval/readback.d.ts +48 -0
  595. package/dist/types/video/eval/roundtrip.d.ts +71 -0
  596. package/dist/types/video/generate/approved.d.ts +74 -0
  597. package/dist/types/video/generate/cast.d.ts +56 -0
  598. package/dist/types/video/generate/character.d.ts +14 -0
  599. package/dist/types/video/generate/clip-sound.d.ts +63 -0
  600. package/dist/types/video/generate/cloud-image.d.ts +12 -0
  601. package/dist/types/video/generate/cloud.d.ts +67 -0
  602. package/dist/types/video/generate/dialogue.d.ts +116 -0
  603. package/dist/types/video/generate/index.d.ts +265 -0
  604. package/dist/types/video/generate/provenance.d.ts +11 -0
  605. package/dist/types/video/generate/speech-lock.d.ts +4 -0
  606. package/dist/types/video/generate/speech.d.ts +20 -0
  607. package/dist/types/video/host.d.ts +42 -0
  608. package/dist/types/video/hosted-api.d.ts +161 -0
  609. package/dist/types/video/look/index.d.ts +67 -0
  610. package/dist/types/video/look/like.d.ts +18 -0
  611. package/dist/types/video/look/sheets.d.ts +58 -0
  612. package/dist/types/video/measure/align.d.ts +33 -0
  613. package/dist/types/video/measure/amount.d.ts +52 -0
  614. package/dist/types/video/measure/bars.d.ts +22 -0
  615. package/dist/types/video/measure/boundaries.d.ts +18 -0
  616. package/dist/types/video/measure/cache.d.ts +6 -0
  617. package/dist/types/video/measure/camera.d.ts +21 -0
  618. package/dist/types/video/measure/colour.d.ts +12 -0
  619. package/dist/types/video/measure/curve.d.ts +29 -0
  620. package/dist/types/video/measure/cuts.d.ts +17 -0
  621. package/dist/types/video/measure/easing.d.ts +52 -0
  622. package/dist/types/video/measure/fill.d.ts +20 -0
  623. package/dist/types/video/measure/fits.d.ts +80 -0
  624. package/dist/types/video/measure/gradual.d.ts +23 -0
  625. package/dist/types/video/measure/index.d.ts +28 -0
  626. package/dist/types/video/measure/kinds.d.ts +71 -0
  627. package/dist/types/video/measure/motion.d.ts +26 -0
  628. package/dist/types/video/measure/move.d.ts +90 -0
  629. package/dist/types/video/measure/moves.d.ts +22 -0
  630. package/dist/types/video/measure/orientation.d.ts +11 -0
  631. package/dist/types/video/measure/pixels.d.ts +41 -0
  632. package/dist/types/video/measure/profile.d.ts +53 -0
  633. package/dist/types/video/measure/reveal.d.ts +48 -0
  634. package/dist/types/video/measure/rhythm.d.ts +7 -0
  635. package/dist/types/video/measure/robust.d.ts +18 -0
  636. package/dist/types/video/measure/signals.d.ts +48 -0
  637. package/dist/types/video/measure/signature.d.ts +10 -0
  638. package/dist/types/video/measure/span.d.ts +28 -0
  639. package/dist/types/video/measure/still-shots.d.ts +40 -0
  640. package/dist/types/video/measure/switch.d.ts +101 -0
  641. package/dist/types/video/measure/tracks.d.ts +20 -0
  642. package/dist/types/video/measure/unmix.d.ts +20 -0
  643. package/dist/types/video/media/decode.d.ts +59 -0
  644. package/dist/types/video/media/ffmpeg.d.ts +48 -0
  645. package/dist/types/video/media/footage.d.ts +53 -0
  646. package/dist/types/video/media/screenshot.d.ts +26 -0
  647. package/dist/types/video/media/selection.d.ts +4 -0
  648. package/dist/types/video/media/wav.d.ts +26 -0
  649. package/dist/types/video/music/hosted.d.ts +110 -0
  650. package/dist/types/video/music/plan.d.ts +103 -0
  651. package/dist/types/video/music/provenance.d.ts +86 -0
  652. package/dist/types/video/page/apply.d.ts +9 -0
  653. package/dist/types/video/page/contract.d.ts +150 -0
  654. package/dist/types/video/page/css.d.ts +9 -0
  655. package/dist/types/video/page/dom.d.ts +51 -0
  656. package/dist/types/video/page/fit.d.ts +13 -0
  657. package/dist/types/video/page/layout.d.ts +8 -0
  658. package/dist/types/video/page/main.d.ts +1 -0
  659. package/dist/types/video/page/scene.d.ts +38 -0
  660. package/dist/types/video/page/texts.d.ts +10 -0
  661. package/dist/types/video/page/words.d.ts +39 -0
  662. package/dist/types/video/paid-download.d.ts +19 -0
  663. package/dist/types/video/plan/ask.d.ts +77 -0
  664. package/dist/types/video/plan/generated.d.ts +29 -0
  665. package/dist/types/video/plan/index.d.ts +6 -0
  666. package/dist/types/video/plan/materials.d.ts +22 -0
  667. package/dist/types/video/plan/model.d.ts +59 -0
  668. package/dist/types/video/plan/prompt.d.ts +41 -0
  669. package/dist/types/video/plan/see.d.ts +35 -0
  670. package/dist/types/video/presets/camera.d.ts +27 -0
  671. package/dist/types/video/presets/easing.d.ts +11 -0
  672. package/dist/types/video/presets/fill.d.ts +16 -0
  673. package/dist/types/video/presets/loop.d.ts +20 -0
  674. package/dist/types/video/presets/motion.d.ts +47 -0
  675. package/dist/types/video/presets/spoken.d.ts +35 -0
  676. package/dist/types/video/presets/text-styles.d.ts +44 -0
  677. package/dist/types/video/presets/transition.d.ts +66 -0
  678. package/dist/types/video/preview/cloud.d.ts +13 -0
  679. package/dist/types/video/preview/edit/check.d.ts +15 -0
  680. package/dist/types/video/preview/edit/editor.d.ts +52 -0
  681. package/dist/types/video/preview/edit/ops.d.ts +52 -0
  682. package/dist/types/video/preview/edit/render.d.ts +11 -0
  683. package/dist/types/video/preview/edit/retime.d.ts +2 -0
  684. package/dist/types/video/preview/edit/routes.d.ts +1106 -0
  685. package/dist/types/video/preview/export-settings.d.ts +25 -0
  686. package/dist/types/video/preview/files.d.ts +25 -0
  687. package/dist/types/video/preview/html.d.ts +9 -0
  688. package/dist/types/video/preview/index.d.ts +20 -0
  689. package/dist/types/video/preview/project.d.ts +48 -0
  690. package/dist/types/video/preview/protocol.d.ts +91 -0
  691. package/dist/types/video/preview/server.d.ts +21 -0
  692. package/dist/types/video/preview/shell/app.d.ts +81 -0
  693. package/dist/types/video/preview/shell/dom.d.ts +40 -0
  694. package/dist/types/video/preview/shell/edit/controller.d.ts +32 -0
  695. package/dist/types/video/preview/shell/edit/fields.d.ts +49 -0
  696. package/dist/types/video/preview/shell/edit/form-parts.d.ts +17 -0
  697. package/dist/types/video/preview/shell/edit/form.d.ts +17 -0
  698. package/dist/types/video/preview/shell/edit/inline.d.ts +4 -0
  699. package/dist/types/video/preview/shell/edit/lanes-edit.d.ts +31 -0
  700. package/dist/types/video/preview/shell/edit/layer-order.d.ts +4 -0
  701. package/dist/types/video/preview/shell/edit/remove.d.ts +4 -0
  702. package/dist/types/video/preview/shell/edit/reveal.d.ts +4 -0
  703. package/dist/types/video/preview/shell/edit/scenes.d.ts +7 -0
  704. package/dist/types/video/preview/shell/edit/schema.d.ts +30 -0
  705. package/dist/types/video/preview/shell/edit/source.d.ts +83 -0
  706. package/dist/types/video/preview/shell/edit/split.d.ts +8 -0
  707. package/dist/types/video/preview/shell/edit/stage-edit.d.ts +21 -0
  708. package/dist/types/video/preview/shell/edit/text-fit.d.ts +4 -0
  709. package/dist/types/video/preview/shell/edit/toolbar.d.ts +14 -0
  710. package/dist/types/video/preview/shell/footage.d.ts +6 -0
  711. package/dist/types/video/preview/shell/i18n.d.ts +176 -0
  712. package/dist/types/video/preview/shell/lanes.d.ts +2 -0
  713. package/dist/types/video/preview/shell/main.d.ts +1 -0
  714. package/dist/types/video/preview/shell/model.d.ts +85 -0
  715. package/dist/types/video/preview/shell/panel.d.ts +3 -0
  716. package/dist/types/video/preview/shell/readonly.d.ts +1 -0
  717. package/dist/types/video/preview/shell/stage.d.ts +7 -0
  718. package/dist/types/video/preview/shell/studio/audio.d.ts +3 -0
  719. package/dist/types/video/preview/shell/studio/cloud.d.ts +3 -0
  720. package/dist/types/video/preview/shell/studio/code.d.ts +6 -0
  721. package/dist/types/video/preview/shell/studio/copy.d.ts +159 -0
  722. package/dist/types/video/preview/shell/studio/draft-result.d.ts +3 -0
  723. package/dist/types/video/preview/shell/studio/export.d.ts +3 -0
  724. package/dist/types/video/preview/shell/studio/scene-selection.d.ts +19 -0
  725. package/dist/types/video/preview/shell/studio/sidebar.d.ts +27 -0
  726. package/dist/types/video/preview/shell/studio/style.d.ts +2 -0
  727. package/dist/types/video/preview/shell/studio/timeline.d.ts +3 -0
  728. package/dist/types/video/preview/shell/studio/ui.d.ts +16 -0
  729. package/dist/types/video/preview/shell/studio/workspace.d.ts +11 -0
  730. package/dist/types/video/preview/shell/style.d.ts +5 -0
  731. package/dist/types/video/preview/shell/transport.d.ts +6 -0
  732. package/dist/types/video/preview/shell-bundle.d.ts +1 -0
  733. package/dist/types/video/preview/studio-actions.d.ts +4 -0
  734. package/dist/types/video/preview/studio-data.d.ts +32 -0
  735. package/dist/types/video/preview/thumbnails.d.ts +5 -0
  736. package/dist/types/video/preview/watch.d.ts +23 -0
  737. package/dist/types/video/progress.d.ts +28 -0
  738. package/dist/types/video/project/check-camera.d.ts +8 -0
  739. package/dist/types/video/project/check-caption.d.ts +8 -0
  740. package/dist/types/video/project/check-common.d.ts +25 -0
  741. package/dist/types/video/project/check-footage.d.ts +22 -0
  742. package/dist/types/video/project/check-look.d.ts +19 -0
  743. package/dist/types/video/project/check-sound.d.ts +54 -0
  744. package/dist/types/video/project/check-span.d.ts +11 -0
  745. package/dist/types/video/project/check-tracks.d.ts +8 -0
  746. package/dist/types/video/project/check-transition.d.ts +11 -0
  747. package/dist/types/video/project/check-words.d.ts +32 -0
  748. package/dist/types/video/project/check.d.ts +42 -0
  749. package/dist/types/video/project/issues.d.ts +43 -0
  750. package/dist/types/video/project/schema.d.ts +2074 -0
  751. package/dist/types/video/project/suggest.d.ts +4 -0
  752. package/dist/types/video/project/words.d.ts +6 -0
  753. package/dist/types/video/render/browser-step.d.ts +5 -0
  754. package/dist/types/video/render/encode.d.ts +49 -0
  755. package/dist/types/video/render/index.d.ts +90 -0
  756. package/dist/types/video/render/layout.d.ts +26 -0
  757. package/dist/types/video/render/record.d.ts +80 -0
  758. package/dist/types/video/render/session.d.ts +64 -0
  759. package/dist/types/video/render/verify.d.ts +16 -0
  760. package/dist/types/video/replication/audio-provenance.d.ts +36 -0
  761. package/dist/types/video/replication/browser.d.ts +1 -0
  762. package/dist/types/video/replication/check.d.ts +19 -0
  763. package/dist/types/video/replication/contract.d.ts +683 -0
  764. package/dist/types/video/replication/io.d.ts +22 -0
  765. package/dist/types/video/replication/motion-bundle.d.ts +1 -0
  766. package/dist/types/video/replication/motion.d.ts +109 -0
  767. package/dist/types/video/replication/pairs.d.ts +69 -0
  768. package/dist/types/video/replication/prefill.d.ts +34 -0
  769. package/dist/types/video/replication/production.d.ts +163 -0
  770. package/dist/types/video/replication/revision.d.ts +2 -0
  771. package/dist/types/video/replication/schema.d.ts +56 -0
  772. package/dist/types/video/replication/source-clock.d.ts +24 -0
  773. package/dist/types/video/replication/speech-observed.d.ts +121 -0
  774. package/dist/types/video/replication/voice-spans.d.ts +3 -0
  775. package/dist/types/video/retarget/caption-look.d.ts +14 -0
  776. package/dist/types/video/retarget/fps.d.ts +7 -0
  777. package/dist/types/video/retarget/index.d.ts +248 -0
  778. package/dist/types/video/retarget/items.d.ts +44 -0
  779. package/dist/types/video/retarget/marks.d.ts +12 -0
  780. package/dist/types/video/retarget/pace.d.ts +36 -0
  781. package/dist/types/video/retarget/speak.d.ts +41 -0
  782. package/dist/types/video/retarget/tempo.d.ts +40 -0
  783. package/dist/types/video/retarget/titles.d.ts +76 -0
  784. package/dist/types/video/retarget/words.d.ts +39 -0
  785. package/dist/types/video/scene/author.d.ts +74 -0
  786. package/dist/types/video/scene/check.d.ts +64 -0
  787. package/dist/types/video/scene/copied.d.ts +30 -0
  788. package/dist/types/video/scene/cues.d.ts +40 -0
  789. package/dist/types/video/scene/examples.d.ts +129 -0
  790. package/dist/types/video/scene/findings.d.ts +71 -0
  791. package/dist/types/video/scene/fonts.d.ts +19 -0
  792. package/dist/types/video/scene/items.d.ts +23 -0
  793. package/dist/types/video/scene/library.d.ts +41 -0
  794. package/dist/types/video/scene/lint.d.ts +15 -0
  795. package/dist/types/video/scene/numbers.d.ts +39 -0
  796. package/dist/types/video/scene/pictures.d.ts +12 -0
  797. package/dist/types/video/scene/write.d.ts +41 -0
  798. package/dist/types/video/score/index.d.ts +13 -0
  799. package/dist/types/video/score/pair.d.ts +43 -0
  800. package/dist/types/video/score/picture.d.ts +14 -0
  801. package/dist/types/video/score/project-windows.d.ts +9 -0
  802. package/dist/types/video/score/shot-transition.d.ts +62 -0
  803. package/dist/types/video/score/shots.d.ts +101 -0
  804. package/dist/types/video/score/time.d.ts +22 -0
  805. package/dist/types/video/score/tracks.d.ts +42 -0
  806. package/dist/types/video/score/weights.d.ts +19 -0
  807. package/dist/types/video/sfx/cache.d.ts +16 -0
  808. package/dist/types/video/sfx/catalogue.d.ts +64 -0
  809. package/dist/types/video/sfx/extract.d.ts +65 -0
  810. package/dist/types/video/sfx/levels.d.ts +39 -0
  811. package/dist/types/video/sfx/library.d.ts +26 -0
  812. package/dist/types/video/sfx/place.d.ts +82 -0
  813. package/dist/types/video/sfx/project.d.ts +36 -0
  814. package/dist/types/video/sound/analysis.d.ts +46 -0
  815. package/dist/types/video/sound/breaks.d.ts +84 -0
  816. package/dist/types/video/sound/measure.d.ts +106 -0
  817. package/dist/types/video/sound/modes.d.ts +75 -0
  818. package/dist/types/video/sound/pcm.d.ts +21 -0
  819. package/dist/types/video/sound/reading.d.ts +124 -0
  820. package/dist/types/video/sound/speech-check.d.ts +76 -0
  821. package/dist/types/video/source/collect.d.ts +64 -0
  822. package/dist/types/video/source/read.d.ts +57 -0
  823. package/dist/types/video/source/used.d.ts +4 -0
  824. package/dist/types/video/speech/hosted.d.ts +36 -0
  825. package/dist/types/video/speech/index.d.ts +83 -0
  826. package/dist/types/video/speech/types.d.ts +41 -0
  827. package/dist/types/video/submit-retry.d.ts +15 -0
  828. package/dist/types/video/synth/generate.d.ts +53 -0
  829. package/dist/types/video/synth/truth.d.ts +8 -0
  830. package/dist/types/video/synth/write.d.ts +13 -0
  831. package/dist/types/video/template/capacity.d.ts +37 -0
  832. package/dist/types/video/template/card-elements.d.ts +17 -0
  833. package/dist/types/video/template/card.d.ts +22 -0
  834. package/dist/types/video/template/check-captions.d.ts +11 -0
  835. package/dist/types/video/template/check.d.ts +40 -0
  836. package/dist/types/video/template/facts.d.ts +90 -0
  837. package/dist/types/video/template/fill.d.ts +51 -0
  838. package/dist/types/video/template/fingerprint.d.ts +2 -0
  839. package/dist/types/video/template/fit.d.ts +60 -0
  840. package/dist/types/video/template/index.d.ts +8 -0
  841. package/dist/types/video/template/project.d.ts +21 -0
  842. package/dist/types/video/template/save.d.ts +52 -0
  843. package/dist/types/video/template/slots.d.ts +26 -0
  844. package/dist/types/video/template/speech-rules.d.ts +61 -0
  845. package/dist/types/video/template/split.d.ts +10 -0
  846. package/dist/types/video/template/structure.d.ts +81 -0
  847. package/dist/types/video/template/swap.d.ts +33 -0
  848. package/dist/types/video/template/types.d.ts +387 -0
  849. package/dist/types/video/text/bar.d.ts +63 -0
  850. package/dist/types/video/text/change.d.ts +19 -0
  851. package/dist/types/video/text/core.d.ts +25 -0
  852. package/dist/types/video/text/cues.d.ts +26 -0
  853. package/dist/types/video/text/fold.d.ts +9 -0
  854. package/dist/types/video/text/frame.d.ts +41 -0
  855. package/dist/types/video/text/highlight.d.ts +19 -0
  856. package/dist/types/video/text/index.d.ts +67 -0
  857. package/dist/types/video/text/letters.d.ts +85 -0
  858. package/dist/types/video/text/look.d.ts +53 -0
  859. package/dist/types/video/text/reader-command.d.ts +26 -0
  860. package/dist/types/video/text/reveal.d.ts +37 -0
  861. package/dist/types/video/text/rings.d.ts +39 -0
  862. package/dist/types/video/text/shadow.d.ts +44 -0
  863. package/dist/types/video/text/share.d.ts +2 -0
  864. package/dist/types/video/text/speech.d.ts +15 -0
  865. package/dist/types/video/text/strokes.d.ts +30 -0
  866. package/dist/types/video/text/types.d.ts +147 -0
  867. package/dist/types/video/timeline/cue-words.d.ts +27 -0
  868. package/dist/types/video/timeline/footage.d.ts +25 -0
  869. package/dist/types/video/timeline/frame.d.ts +55 -0
  870. package/dist/types/video/timeline/items.d.ts +28 -0
  871. package/dist/types/video/timeline/mix.d.ts +67 -0
  872. package/dist/types/video/timeline/resolve.d.ts +20 -0
  873. package/dist/types/video/timeline/spans.d.ts +32 -0
  874. package/dist/types/video/timeline/words.d.ts +64 -0
  875. package/dist/types/video/tool.d.ts +29 -0
  876. package/dist/types/video/types.d.ts +1057 -0
  877. package/dist/types/video/voice/create.d.ts +43 -0
  878. package/dist/types/video/voice/hosted.d.ts +36 -0
  879. package/dist/types/video/voice/index.d.ts +61 -0
  880. package/dist/types/video/voice/pace.d.ts +37 -0
  881. package/dist/types/video/voice/profile.d.ts +26 -0
  882. package/dist/types/video/voice/sample.d.ts +46 -0
  883. package/dist/types/video/wallet.d.ts +38 -0
  884. package/dist/types/video/work.d.ts +10 -0
  885. package/dist/types/workflow/build.d.ts +1 -1
  886. package/dist/types/workflow/errors.d.ts +1 -1
  887. package/dist/types/workflow/io.d.ts +1 -1
  888. package/dist/types/workflow/post-bundle.d.ts +8 -3
  889. package/dist/types/workflow/series-plan.d.ts +5 -2
  890. package/dist/types/workflow/template-plugins.d.ts +0 -8
  891. package/package.json +13 -4
  892. package/references/image-workflow.md +111 -0
  893. package/references/onboarding.md +50 -19
  894. package/references/post-bundle.md +2 -2
  895. package/references/providers.md +6 -3
  896. package/references/video-draft-export.md +13 -0
  897. package/references/video-editing.md +43 -0
  898. package/references/video-effects.md +605 -0
  899. package/references/video-elements.md +199 -0
  900. package/references/video-examples/showcase/assets/pattern.svg +18 -0
  901. package/references/video-examples/showcase/assets/voice.sbg +4 -0
  902. package/references/video-examples/showcase/assets/voice.words.json +68 -0
  903. package/references/video-examples/showcase/video.json +550 -0
  904. package/references/video-examples/template-demo/TEMPLATE.md +30 -0
  905. package/references/video-examples/template-demo/fill.json +29 -0
  906. package/references/video-examples/template-demo/slots.json +210 -0
  907. package/references/video-examples/template-demo/template.json +105 -0
  908. package/references/video-motion.md +315 -0
  909. package/references/video-native-observation.md +37 -0
  910. package/references/video-performers.md +86 -0
  911. package/references/video-project.md +63 -0
  912. package/references/video-replication.md +276 -0
  913. package/references/video-scenes.md +366 -0
  914. package/references/video-sfx.md +109 -0
  915. package/references/video-sound.md +207 -0
  916. package/references/video-templates.md +177 -0
  917. package/references/video-tools.md +560 -0
  918. package/references/video.md +756 -0
  919. package/templates/community/README.md +274 -1
  920. package/templates/community/index.json +3829 -0
  921. package/templates/community/instagram-age-expectations/README.md +14 -0
  922. package/templates/community/instagram-age-expectations/SKILL.md +52 -0
  923. package/templates/community/instagram-age-expectations/source.json +9 -0
  924. package/templates/community/instagram-age-expectations/template.json +53 -0
  925. package/templates/community/instagram-artwork-detail/README.md +19 -0
  926. package/templates/community/instagram-artwork-detail/SKILL.md +53 -0
  927. package/templates/community/instagram-artwork-detail/source.json +9 -0
  928. package/templates/community/instagram-artwork-detail/template.json +61 -0
  929. package/templates/community/instagram-balanced-traits/README.md +12 -0
  930. package/templates/community/instagram-balanced-traits/SKILL.md +52 -0
  931. package/templates/community/instagram-balanced-traits/source.json +9 -0
  932. package/templates/community/instagram-balanced-traits/template.json +53 -0
  933. package/templates/community/instagram-behind-the-scenes/README.md +12 -0
  934. package/templates/community/instagram-behind-the-scenes/SKILL.md +53 -0
  935. package/templates/community/instagram-behind-the-scenes/source.json +9 -0
  936. package/templates/community/instagram-behind-the-scenes/template.json +52 -0
  937. package/templates/community/instagram-brand-personification/README.md +26 -0
  938. package/templates/community/instagram-brand-personification/SKILL.md +53 -0
  939. package/templates/community/instagram-brand-personification/source.json +9 -0
  940. package/templates/community/instagram-brand-personification/template.json +66 -0
  941. package/templates/community/instagram-brand-system/README.md +17 -0
  942. package/templates/community/instagram-brand-system/SKILL.md +53 -0
  943. package/templates/community/instagram-brand-system/source.json +9 -0
  944. package/templates/community/instagram-brand-system/template.json +60 -0
  945. package/templates/community/instagram-calendar-cheat-sheet/README.md +8 -0
  946. package/templates/community/instagram-calendar-cheat-sheet/SKILL.md +53 -0
  947. package/templates/community/instagram-calendar-cheat-sheet/source.json +9 -0
  948. package/templates/community/instagram-calendar-cheat-sheet/template.json +47 -0
  949. package/templates/community/instagram-capacity-planning/README.md +12 -0
  950. package/templates/community/instagram-capacity-planning/SKILL.md +53 -0
  951. package/templates/community/instagram-capacity-planning/source.json +9 -0
  952. package/templates/community/instagram-capacity-planning/template.json +55 -0
  953. package/templates/community/instagram-category-use-guide/README.md +14 -0
  954. package/templates/community/instagram-category-use-guide/SKILL.md +53 -0
  955. package/templates/community/instagram-category-use-guide/source.json +9 -0
  956. package/templates/community/instagram-category-use-guide/template.json +55 -0
  957. package/templates/community/instagram-character-led-tour/README.md +17 -0
  958. package/templates/community/instagram-character-led-tour/SKILL.md +53 -0
  959. package/templates/community/instagram-character-led-tour/source.json +9 -0
  960. package/templates/community/instagram-character-led-tour/template.json +56 -0
  961. package/templates/community/instagram-comic-dialogue/README.md +16 -0
  962. package/templates/community/instagram-comic-dialogue/SKILL.md +53 -0
  963. package/templates/community/instagram-comic-dialogue/source.json +9 -0
  964. package/templates/community/instagram-comic-dialogue/template.json +59 -0
  965. package/templates/community/instagram-command-shortcuts/README.md +13 -0
  966. package/templates/community/instagram-command-shortcuts/SKILL.md +53 -0
  967. package/templates/community/instagram-command-shortcuts/source.json +9 -0
  968. package/templates/community/instagram-command-shortcuts/template.json +52 -0
  969. package/templates/community/instagram-context-changes-meaning/README.md +11 -0
  970. package/templates/community/instagram-context-changes-meaning/SKILL.md +53 -0
  971. package/templates/community/instagram-context-changes-meaning/source.json +9 -0
  972. package/templates/community/instagram-context-changes-meaning/template.json +54 -0
  973. package/templates/community/instagram-continuous-canvas/README.md +16 -0
  974. package/templates/community/instagram-continuous-canvas/SKILL.md +52 -0
  975. package/templates/community/instagram-continuous-canvas/source.json +9 -0
  976. package/templates/community/instagram-continuous-canvas/template.json +59 -0
  977. package/templates/community/instagram-conversation-questions/README.md +12 -0
  978. package/templates/community/instagram-conversation-questions/SKILL.md +52 -0
  979. package/templates/community/instagram-conversation-questions/source.json +9 -0
  980. package/templates/community/instagram-conversation-questions/template.json +51 -0
  981. package/templates/community/instagram-copy-alternatives/README.md +11 -0
  982. package/templates/community/instagram-copy-alternatives/SKILL.md +53 -0
  983. package/templates/community/instagram-copy-alternatives/source.json +9 -0
  984. package/templates/community/instagram-copy-alternatives/template.json +50 -0
  985. package/templates/community/instagram-copyable-notes/README.md +13 -0
  986. package/templates/community/instagram-copyable-notes/SKILL.md +52 -0
  987. package/templates/community/instagram-copyable-notes/source.json +9 -0
  988. package/templates/community/instagram-copyable-notes/template.json +51 -0
  989. package/templates/community/instagram-curated-resources/README.md +13 -0
  990. package/templates/community/instagram-curated-resources/SKILL.md +52 -0
  991. package/templates/community/instagram-curated-resources/source.json +9 -0
  992. package/templates/community/instagram-curated-resources/template.json +54 -0
  993. package/templates/community/instagram-destination-costs/README.md +17 -0
  994. package/templates/community/instagram-destination-costs/SKILL.md +52 -0
  995. package/templates/community/instagram-destination-costs/source.json +9 -0
  996. package/templates/community/instagram-destination-costs/template.json +56 -0
  997. package/templates/community/instagram-diagram-reference/README.md +10 -0
  998. package/templates/community/instagram-diagram-reference/SKILL.md +53 -0
  999. package/templates/community/instagram-diagram-reference/source.json +9 -0
  1000. package/templates/community/instagram-diagram-reference/template.json +52 -0
  1001. package/templates/community/instagram-different-perspectives/README.md +15 -0
  1002. package/templates/community/instagram-different-perspectives/SKILL.md +53 -0
  1003. package/templates/community/instagram-different-perspectives/source.json +9 -0
  1004. package/templates/community/instagram-different-perspectives/template.json +55 -0
  1005. package/templates/community/instagram-document-reveal/README.md +8 -0
  1006. package/templates/community/instagram-document-reveal/SKILL.md +53 -0
  1007. package/templates/community/instagram-document-reveal/source.json +9 -0
  1008. package/templates/community/instagram-document-reveal/template.json +46 -0
  1009. package/templates/community/instagram-effect-breakdown/README.md +14 -0
  1010. package/templates/community/instagram-effect-breakdown/SKILL.md +53 -0
  1011. package/templates/community/instagram-effect-breakdown/source.json +9 -0
  1012. package/templates/community/instagram-effect-breakdown/template.json +55 -0
  1013. package/templates/community/instagram-effort-and-outcome/README.md +13 -0
  1014. package/templates/community/instagram-effort-and-outcome/SKILL.md +52 -0
  1015. package/templates/community/instagram-effort-and-outcome/source.json +9 -0
  1016. package/templates/community/instagram-effort-and-outcome/template.json +54 -0
  1017. package/templates/community/instagram-emotion-and-meaning/README.md +16 -0
  1018. package/templates/community/instagram-emotion-and-meaning/SKILL.md +52 -0
  1019. package/templates/community/instagram-emotion-and-meaning/source.json +9 -0
  1020. package/templates/community/instagram-emotion-and-meaning/template.json +56 -0
  1021. package/templates/community/instagram-everyday-interface-story/README.md +12 -0
  1022. package/templates/community/instagram-everyday-interface-story/SKILL.md +53 -0
  1023. package/templates/community/instagram-everyday-interface-story/source.json +9 -0
  1024. package/templates/community/instagram-everyday-interface-story/template.json +51 -0
  1025. package/templates/community/instagram-everyday-photo-diary/README.md +16 -0
  1026. package/templates/community/instagram-everyday-photo-diary/SKILL.md +52 -0
  1027. package/templates/community/instagram-everyday-photo-diary/source.json +9 -0
  1028. package/templates/community/instagram-everyday-photo-diary/template.json +61 -0
  1029. package/templates/community/instagram-evidence-to-method/README.md +13 -0
  1030. package/templates/community/instagram-evidence-to-method/SKILL.md +53 -0
  1031. package/templates/community/instagram-evidence-to-method/source.json +9 -0
  1032. package/templates/community/instagram-evidence-to-method/template.json +56 -0
  1033. package/templates/community/instagram-expectation-reality-review/README.md +18 -0
  1034. package/templates/community/instagram-expectation-reality-review/SKILL.md +53 -0
  1035. package/templates/community/instagram-expectation-reality-review/source.json +9 -0
  1036. package/templates/community/instagram-expectation-reality-review/template.json +57 -0
  1037. package/templates/community/instagram-experiment-story/README.md +20 -0
  1038. package/templates/community/instagram-experiment-story/SKILL.md +54 -0
  1039. package/templates/community/instagram-experiment-story/source.json +9 -0
  1040. package/templates/community/instagram-experiment-story/template.json +58 -0
  1041. package/templates/community/instagram-fill-in-speech/README.md +14 -0
  1042. package/templates/community/instagram-fill-in-speech/SKILL.md +53 -0
  1043. package/templates/community/instagram-fill-in-speech/source.json +9 -0
  1044. package/templates/community/instagram-fill-in-speech/template.json +53 -0
  1045. package/templates/community/instagram-fill-in-workbook/README.md +16 -0
  1046. package/templates/community/instagram-fill-in-workbook/SKILL.md +53 -0
  1047. package/templates/community/instagram-fill-in-workbook/source.json +9 -0
  1048. package/templates/community/instagram-fill-in-workbook/template.json +57 -0
  1049. package/templates/community/instagram-font-pairing/README.md +14 -0
  1050. package/templates/community/instagram-font-pairing/SKILL.md +52 -0
  1051. package/templates/community/instagram-font-pairing/source.json +9 -0
  1052. package/templates/community/instagram-font-pairing/template.json +53 -0
  1053. package/templates/community/instagram-goal-benchmarks/README.md +12 -0
  1054. package/templates/community/instagram-goal-benchmarks/SKILL.md +53 -0
  1055. package/templates/community/instagram-goal-benchmarks/source.json +9 -0
  1056. package/templates/community/instagram-goal-benchmarks/template.json +51 -0
  1057. package/templates/community/instagram-identity-match/README.md +19 -0
  1058. package/templates/community/instagram-identity-match/SKILL.md +52 -0
  1059. package/templates/community/instagram-identity-match/source.json +9 -0
  1060. package/templates/community/instagram-identity-match/template.json +64 -0
  1061. package/templates/community/instagram-illustrated-opinion/README.md +16 -0
  1062. package/templates/community/instagram-illustrated-opinion/SKILL.md +52 -0
  1063. package/templates/community/instagram-illustrated-opinion/source.json +9 -0
  1064. package/templates/community/instagram-illustrated-opinion/template.json +56 -0
  1065. package/templates/community/instagram-illustrated-story-explainer/README.md +14 -0
  1066. package/templates/community/instagram-illustrated-story-explainer/SKILL.md +53 -0
  1067. package/templates/community/instagram-illustrated-story-explainer/source.json +9 -0
  1068. package/templates/community/instagram-illustrated-story-explainer/template.json +55 -0
  1069. package/templates/community/instagram-image-to-palette/README.md +17 -0
  1070. package/templates/community/instagram-image-to-palette/SKILL.md +53 -0
  1071. package/templates/community/instagram-image-to-palette/source.json +9 -0
  1072. package/templates/community/instagram-image-to-palette/template.json +58 -0
  1073. package/templates/community/instagram-incremental-assembly/README.md +15 -0
  1074. package/templates/community/instagram-incremental-assembly/SKILL.md +52 -0
  1075. package/templates/community/instagram-incremental-assembly/source.json +9 -0
  1076. package/templates/community/instagram-incremental-assembly/template.json +55 -0
  1077. package/templates/community/instagram-interview-storyboard/README.md +25 -0
  1078. package/templates/community/instagram-interview-storyboard/SKILL.md +53 -0
  1079. package/templates/community/instagram-interview-storyboard/source.json +9 -0
  1080. package/templates/community/instagram-interview-storyboard/template.json +65 -0
  1081. package/templates/community/instagram-launch-news/README.md +9 -0
  1082. package/templates/community/instagram-launch-news/SKILL.md +53 -0
  1083. package/templates/community/instagram-launch-news/source.json +9 -0
  1084. package/templates/community/instagram-launch-news/template.json +55 -0
  1085. package/templates/community/instagram-layout-anatomy/README.md +12 -0
  1086. package/templates/community/instagram-layout-anatomy/SKILL.md +53 -0
  1087. package/templates/community/instagram-layout-anatomy/source.json +9 -0
  1088. package/templates/community/instagram-layout-anatomy/template.json +54 -0
  1089. package/templates/community/instagram-learning-path/README.md +14 -0
  1090. package/templates/community/instagram-learning-path/SKILL.md +53 -0
  1091. package/templates/community/instagram-learning-path/source.json +9 -0
  1092. package/templates/community/instagram-learning-path/template.json +55 -0
  1093. package/templates/community/instagram-local-picks/README.md +16 -0
  1094. package/templates/community/instagram-local-picks/SKILL.md +52 -0
  1095. package/templates/community/instagram-local-picks/source.json +9 -0
  1096. package/templates/community/instagram-local-picks/template.json +55 -0
  1097. package/templates/community/instagram-matched-test/README.md +10 -0
  1098. package/templates/community/instagram-matched-test/SKILL.md +53 -0
  1099. package/templates/community/instagram-matched-test/source.json +9 -0
  1100. package/templates/community/instagram-matched-test/template.json +49 -0
  1101. package/templates/community/instagram-metric-formulas/README.md +15 -0
  1102. package/templates/community/instagram-metric-formulas/SKILL.md +53 -0
  1103. package/templates/community/instagram-metric-formulas/source.json +9 -0
  1104. package/templates/community/instagram-metric-formulas/template.json +55 -0
  1105. package/templates/community/instagram-milestones-and-feelings/README.md +13 -0
  1106. package/templates/community/instagram-milestones-and-feelings/SKILL.md +52 -0
  1107. package/templates/community/instagram-milestones-and-feelings/source.json +9 -0
  1108. package/templates/community/instagram-milestones-and-feelings/template.json +56 -0
  1109. package/templates/community/instagram-mistakes-and-alternatives/README.md +12 -0
  1110. package/templates/community/instagram-mistakes-and-alternatives/SKILL.md +52 -0
  1111. package/templates/community/instagram-mistakes-and-alternatives/source.json +9 -0
  1112. package/templates/community/instagram-mistakes-and-alternatives/template.json +53 -0
  1113. package/templates/community/instagram-myth-and-fact/README.md +12 -0
  1114. package/templates/community/instagram-myth-and-fact/SKILL.md +53 -0
  1115. package/templates/community/instagram-myth-and-fact/source.json +9 -0
  1116. package/templates/community/instagram-myth-and-fact/template.json +51 -0
  1117. package/templates/community/instagram-news-digest/README.md +13 -0
  1118. package/templates/community/instagram-news-digest/SKILL.md +53 -0
  1119. package/templates/community/instagram-news-digest/source.json +9 -0
  1120. package/templates/community/instagram-news-digest/template.json +52 -0
  1121. package/templates/community/instagram-numbers-at-human-scale/README.md +12 -0
  1122. package/templates/community/instagram-numbers-at-human-scale/SKILL.md +53 -0
  1123. package/templates/community/instagram-numbers-at-human-scale/source.json +9 -0
  1124. package/templates/community/instagram-numbers-at-human-scale/template.json +52 -0
  1125. package/templates/community/instagram-object-led-activities/README.md +16 -0
  1126. package/templates/community/instagram-object-led-activities/SKILL.md +53 -0
  1127. package/templates/community/instagram-object-led-activities/source.json +9 -0
  1128. package/templates/community/instagram-object-led-activities/template.json +56 -0
  1129. package/templates/community/instagram-object-name-origins/README.md +11 -0
  1130. package/templates/community/instagram-object-name-origins/SKILL.md +52 -0
  1131. package/templates/community/instagram-object-name-origins/source.json +9 -0
  1132. package/templates/community/instagram-object-name-origins/template.json +52 -0
  1133. package/templates/community/instagram-one-input-many-results/README.md +14 -0
  1134. package/templates/community/instagram-one-input-many-results/SKILL.md +53 -0
  1135. package/templates/community/instagram-one-input-many-results/source.json +9 -0
  1136. package/templates/community/instagram-one-input-many-results/template.json +52 -0
  1137. package/templates/community/instagram-one-variable-comparison/README.md +11 -0
  1138. package/templates/community/instagram-one-variable-comparison/SKILL.md +53 -0
  1139. package/templates/community/instagram-one-variable-comparison/source.json +9 -0
  1140. package/templates/community/instagram-one-variable-comparison/template.json +52 -0
  1141. package/templates/community/instagram-opportunity-guide/README.md +18 -0
  1142. package/templates/community/instagram-opportunity-guide/SKILL.md +53 -0
  1143. package/templates/community/instagram-opportunity-guide/source.json +9 -0
  1144. package/templates/community/instagram-opportunity-guide/template.json +57 -0
  1145. package/templates/community/instagram-palette-application-board/README.md +11 -0
  1146. package/templates/community/instagram-palette-application-board/SKILL.md +52 -0
  1147. package/templates/community/instagram-palette-application-board/source.json +9 -0
  1148. package/templates/community/instagram-palette-application-board/template.json +52 -0
  1149. package/templates/community/instagram-personal-budget-case/README.md +14 -0
  1150. package/templates/community/instagram-personal-budget-case/SKILL.md +53 -0
  1151. package/templates/community/instagram-personal-budget-case/source.json +9 -0
  1152. package/templates/community/instagram-personal-budget-case/template.json +53 -0
  1153. package/templates/community/instagram-personal-experiment/README.md +11 -0
  1154. package/templates/community/instagram-personal-experiment/SKILL.md +53 -0
  1155. package/templates/community/instagram-personal-experiment/source.json +9 -0
  1156. package/templates/community/instagram-personal-experiment/template.json +52 -0
  1157. package/templates/community/instagram-photo-and-technical-sketch/README.md +10 -0
  1158. package/templates/community/instagram-photo-and-technical-sketch/SKILL.md +53 -0
  1159. package/templates/community/instagram-photo-and-technical-sketch/source.json +9 -0
  1160. package/templates/community/instagram-photo-and-technical-sketch/template.json +49 -0
  1161. package/templates/community/instagram-photo-moment-story/README.md +12 -0
  1162. package/templates/community/instagram-photo-moment-story/SKILL.md +53 -0
  1163. package/templates/community/instagram-photo-moment-story/source.json +9 -0
  1164. package/templates/community/instagram-photo-moment-story/template.json +53 -0
  1165. package/templates/community/instagram-product-change/README.md +9 -0
  1166. package/templates/community/instagram-product-change/SKILL.md +53 -0
  1167. package/templates/community/instagram-product-change/source.json +10 -0
  1168. package/templates/community/instagram-product-change/template.json +53 -0
  1169. package/templates/community/instagram-prompt-result-reference/README.md +26 -0
  1170. package/templates/community/instagram-prompt-result-reference/SKILL.md +53 -0
  1171. package/templates/community/instagram-prompt-result-reference/source.json +9 -0
  1172. package/templates/community/instagram-prompt-result-reference/template.json +68 -0
  1173. package/templates/community/instagram-public-follow-up/README.md +15 -0
  1174. package/templates/community/instagram-public-follow-up/SKILL.md +53 -0
  1175. package/templates/community/instagram-public-follow-up/source.json +9 -0
  1176. package/templates/community/instagram-public-follow-up/template.json +54 -0
  1177. package/templates/community/instagram-reader-question-answer/README.md +10 -0
  1178. package/templates/community/instagram-reader-question-answer/SKILL.md +53 -0
  1179. package/templates/community/instagram-reader-question-answer/source.json +9 -0
  1180. package/templates/community/instagram-reader-question-answer/template.json +48 -0
  1181. package/templates/community/instagram-remaining-capacity/README.md +11 -0
  1182. package/templates/community/instagram-remaining-capacity/SKILL.md +52 -0
  1183. package/templates/community/instagram-remaining-capacity/source.json +9 -0
  1184. package/templates/community/instagram-remaining-capacity/template.json +52 -0
  1185. package/templates/community/instagram-research-brief/README.md +16 -0
  1186. package/templates/community/instagram-research-brief/SKILL.md +53 -0
  1187. package/templates/community/instagram-research-brief/source.json +9 -0
  1188. package/templates/community/instagram-research-brief/template.json +54 -0
  1189. package/templates/community/instagram-result-and-recipe/README.md +17 -0
  1190. package/templates/community/instagram-result-and-recipe/SKILL.md +53 -0
  1191. package/templates/community/instagram-result-and-recipe/source.json +9 -0
  1192. package/templates/community/instagram-result-and-recipe/template.json +56 -0
  1193. package/templates/community/instagram-result-to-steps/README.md +13 -0
  1194. package/templates/community/instagram-result-to-steps/SKILL.md +53 -0
  1195. package/templates/community/instagram-result-to-steps/source.json +9 -0
  1196. package/templates/community/instagram-result-to-steps/template.json +51 -0
  1197. package/templates/community/instagram-reverse-instruction/README.md +15 -0
  1198. package/templates/community/instagram-reverse-instruction/SKILL.md +53 -0
  1199. package/templates/community/instagram-reverse-instruction/source.json +9 -0
  1200. package/templates/community/instagram-reverse-instruction/template.json +54 -0
  1201. package/templates/community/instagram-said-and-meant/README.md +9 -0
  1202. package/templates/community/instagram-said-and-meant/SKILL.md +52 -0
  1203. package/templates/community/instagram-said-and-meant/source.json +10 -0
  1204. package/templates/community/instagram-said-and-meant/template.json +46 -0
  1205. package/templates/community/instagram-same-budget-choices/README.md +12 -0
  1206. package/templates/community/instagram-same-budget-choices/SKILL.md +53 -0
  1207. package/templates/community/instagram-same-budget-choices/source.json +9 -0
  1208. package/templates/community/instagram-same-budget-choices/template.json +52 -0
  1209. package/templates/community/instagram-screenshot-walkthrough/README.md +12 -0
  1210. package/templates/community/instagram-screenshot-walkthrough/SKILL.md +53 -0
  1211. package/templates/community/instagram-screenshot-walkthrough/source.json +9 -0
  1212. package/templates/community/instagram-screenshot-walkthrough/template.json +58 -0
  1213. package/templates/community/instagram-searchable-asset-index/README.md +13 -0
  1214. package/templates/community/instagram-searchable-asset-index/SKILL.md +52 -0
  1215. package/templates/community/instagram-searchable-asset-index/source.json +9 -0
  1216. package/templates/community/instagram-searchable-asset-index/template.json +53 -0
  1217. package/templates/community/instagram-similar-concepts/README.md +15 -0
  1218. package/templates/community/instagram-similar-concepts/SKILL.md +52 -0
  1219. package/templates/community/instagram-similar-concepts/source.json +9 -0
  1220. package/templates/community/instagram-similar-concepts/template.json +54 -0
  1221. package/templates/community/instagram-single-event-news/README.md +14 -0
  1222. package/templates/community/instagram-single-event-news/SKILL.md +53 -0
  1223. package/templates/community/instagram-single-event-news/source.json +9 -0
  1224. package/templates/community/instagram-single-event-news/template.json +56 -0
  1225. package/templates/community/instagram-style-assembly/README.md +13 -0
  1226. package/templates/community/instagram-style-assembly/SKILL.md +53 -0
  1227. package/templates/community/instagram-style-assembly/source.json +9 -0
  1228. package/templates/community/instagram-style-assembly/template.json +53 -0
  1229. package/templates/community/instagram-style-choice/README.md +14 -0
  1230. package/templates/community/instagram-style-choice/SKILL.md +53 -0
  1231. package/templates/community/instagram-style-choice/source.json +9 -0
  1232. package/templates/community/instagram-style-choice/template.json +58 -0
  1233. package/templates/community/instagram-symbolism-in-artifact/README.md +9 -0
  1234. package/templates/community/instagram-symbolism-in-artifact/SKILL.md +52 -0
  1235. package/templates/community/instagram-symbolism-in-artifact/source.json +9 -0
  1236. package/templates/community/instagram-symbolism-in-artifact/template.json +47 -0
  1237. package/templates/community/instagram-taste-matched-recommendations/README.md +17 -0
  1238. package/templates/community/instagram-taste-matched-recommendations/SKILL.md +52 -0
  1239. package/templates/community/instagram-taste-matched-recommendations/source.json +9 -0
  1240. package/templates/community/instagram-taste-matched-recommendations/template.json +56 -0
  1241. package/templates/community/instagram-then-now-pairs/README.md +14 -0
  1242. package/templates/community/instagram-then-now-pairs/SKILL.md +52 -0
  1243. package/templates/community/instagram-then-now-pairs/source.json +9 -0
  1244. package/templates/community/instagram-then-now-pairs/template.json +52 -0
  1245. package/templates/community/instagram-timed-action-plan/README.md +15 -0
  1246. package/templates/community/instagram-timed-action-plan/SKILL.md +53 -0
  1247. package/templates/community/instagram-timed-action-plan/source.json +9 -0
  1248. package/templates/community/instagram-timed-action-plan/template.json +60 -0
  1249. package/templates/community/instagram-tools-by-task/README.md +13 -0
  1250. package/templates/community/instagram-tools-by-task/SKILL.md +53 -0
  1251. package/templates/community/instagram-tools-by-task/source.json +9 -0
  1252. package/templates/community/instagram-tools-by-task/template.json +57 -0
  1253. package/templates/community/instagram-two-perspectives/README.md +8 -0
  1254. package/templates/community/instagram-two-perspectives/SKILL.md +52 -0
  1255. package/templates/community/instagram-two-perspectives/source.json +9 -0
  1256. package/templates/community/instagram-two-perspectives/template.json +47 -0
  1257. package/templates/community/instagram-two-views-one-dataset/README.md +8 -0
  1258. package/templates/community/instagram-two-views-one-dataset/SKILL.md +53 -0
  1259. package/templates/community/instagram-two-views-one-dataset/source.json +9 -0
  1260. package/templates/community/instagram-two-views-one-dataset/template.json +51 -0
  1261. package/templates/community/instagram-version-change-audit/README.md +10 -0
  1262. package/templates/community/instagram-version-change-audit/SKILL.md +53 -0
  1263. package/templates/community/instagram-version-change-audit/source.json +9 -0
  1264. package/templates/community/instagram-version-change-audit/template.json +51 -0
  1265. package/templates/community/instagram-visual-analogy/README.md +13 -0
  1266. package/templates/community/instagram-visual-analogy/SKILL.md +53 -0
  1267. package/templates/community/instagram-visual-analogy/source.json +9 -0
  1268. package/templates/community/instagram-visual-analogy/template.json +53 -0
  1269. package/templates/community/instagram-visual-guess/README.md +15 -0
  1270. package/templates/community/instagram-visual-guess/SKILL.md +53 -0
  1271. package/templates/community/instagram-visual-guess/source.json +9 -0
  1272. package/templates/community/instagram-visual-guess/template.json +54 -0
  1273. package/templates/community/instagram-visual-technique-reference/README.md +18 -0
  1274. package/templates/community/instagram-visual-technique-reference/SKILL.md +53 -0
  1275. package/templates/community/instagram-visual-technique-reference/source.json +9 -0
  1276. package/templates/community/instagram-visual-technique-reference/template.json +60 -0
  1277. package/templates/community/instagram-worked-examples/README.md +13 -0
  1278. package/templates/community/instagram-worked-examples/SKILL.md +52 -0
  1279. package/templates/community/instagram-worked-examples/source.json +9 -0
  1280. package/templates/community/instagram-worked-examples/template.json +57 -0
@@ -0,0 +1,1618 @@
1
+ <!doctype html>
2
+ <!--
3
+ Adapted from HyperFrames (https://github.com/heygen-com/hyperframes), registry/blocks/glass-shard-title, commit a8332860c396e9224d42b7ea2a9cc8f42918c961.
4
+ Copyright 2026 HeyGen, Inc. Licensed under the Apache License, Version 2.0; the licence text is in the popost
5
+ Skill's THIRD_PARTY_NOTICES. Changed for the popost Skill (tools/video/port-hyperframes.mjs): its comments removed; its fonts drawn by roles of the Skill's font library, linked from the project (../css/<role>.css); fixed for the scene's clock by hand (tools/video/hyperframes-patches.mjs): run from its module source (assets/glass-main.mjs) instead of its 0.5 MB bundle of a later three.js; its studio environment (an .hdr file) and matcap picture, which it read from preload links, drawn as stand-ins; libraries it loaded from a CDN put into the page from tools/video/hyperframes-vendor/ (d3-delaunay 6.0.4 (ISC License)); three.js modules replaced by the project's three.js (../lib/three.min.js, r147), set up as later releases are; three.js addons (loaders/HDRLoader) put into the page from three.js r147 (MIT); the root composition given the size of its data-width and data-height, as the HyperFrames runtime gives it; pictures its script loads replaced by drawn stand-ins that the first frame waits for; comments that name what the scene lint looks for (a timer, the network, a transition) removed; its deferred calls (setTimeout) run when the page has loaded, before the first frame; GSAP loaded from the project (../lib/gsap.min.js) instead of a CDN; its other links and imports removed; the 1920x1080 composition scaled into the scene's canvas (parameter "fit"); HyperFrames variables declared as parameters; its root-level clips laid out as HyperFrames lays them out; its clips shown and hidden from the scene's time; sound cues derived from its tweens.
6
+ -->
7
+ <html
8
+ lang="en"
9
+ data-composition-variables='[{"id":"headline","type":"string","label":"Headline","default":"Designed in glass","maxLength":40},{"id":"tileCount","type":"number","label":"Tiles","default":8,"min":1,"max":400,"step":1},{"id":"roundness","type":"number","label":"Roundness (0-1)","default":0.4,"min":0,"max":1,"step":0.01},{"id":"bevel","type":"number","label":"Bevel (0-1)","default":0.35,"min":0,"max":1,"step":0.01},{"id":"meshSmooth","type":"number","label":"Surface smoothness (0-1)","default":0.6,"min":0,"max":1,"step":0.01},{"id":"flyInTime","type":"number","label":"Fly-in time (s)","default":2.3,"min":0.2,"max":6,"step":0.05},{"id":"flyOutTime","type":"number","label":"Fly-out time (s)","default":2.4,"min":0.2,"max":6,"step":0.05},{"id":"stagger","type":"number","label":"Stagger (0-1)","default":0.27,"min":0,"max":1,"step":0.01},{"id":"flyInRotation","type":"number","label":"Fly-in rotation (0-60)","description":"Amount of inbound tumbling over the entire flight. 0 disables flight rotation; final orientation lands with each shard position.","default":5,"min":0,"max":60,"step":0.1},{"id":"flyOutRotation","type":"number","label":"Fly-out rotation (0-6)","default":6,"min":0,"max":6,"step":0.1},{"id":"chaos","type":"number","label":"Outline chaos (0-1)","default":0.25,"min":0,"max":1,"step":0.01},{"id":"padding","type":"number","label":"Edge padding (0-1)","default":1,"min":0,"max":1,"step":0.01},{"id":"sizeVariance","type":"number","label":"Size variance (0-1)","default":0.35,"min":0,"max":1,"step":0.01},{"id":"gap","type":"number","label":"Tile gap","default":0.03,"min":0,"max":0.3,"step":0.002},{"id":"easePow","type":"number","label":"Fly-in position ease (1-10)","description":"Shapes lateral and depth travel. Rotation uses the same staggered flight window with a gentle settle through arrival.","default":10,"min":1,"max":10,"step":0.1},{"id":"sideDist","type":"number","label":"Side fly distance","default":3,"min":0,"max":60,"step":0.5},{"id":"zDist","type":"number","label":"Z fly-from (negative)","default":-42,"min":-400,"max":0,"step":2},{"id":"zOut","type":"number","label":"Z fly-out to (+ = past camera)","default":14,"min":-400,"max":60,"step":2},{"id":"fog","type":"number","label":"Fog distance (0 = off)","default":36,"min":0,"max":400,"step":2}]'
10
+ >
11
+ <head>
12
+ <script>
13
+ /* popost: deferred calls (setTimeout) run in order when the page has loaded, before the first frame. */
14
+ (function () {
15
+ var queue = [], n = 0, done = false;
16
+ var flush = function () { for (var k = 0; queue.length && k < 100000; k++) { var c = queue.shift(); if (!c.cancelled) c.f.apply(null, c.args); } };
17
+ window.__popostLater = function (f, ms) { var c = { f: typeof f === 'function' ? f : function () {}, args: Array.prototype.slice.call(arguments, 2), id: ++n }; queue.push(c); if (done) flush(); return c.id; };
18
+ window.__popostCancel = function (id) { queue.forEach(function (c) { if (c.id === id) c.cancelled = true; }); };
19
+ window.addEventListener('load', function () { done = true; flush(); });
20
+ })();
21
+ </script>
22
+ <script>
23
+ /* popost: pictures a script loads are held in the page, so the first frame waits for them. */
24
+ (function () {
25
+ var d = Object.getOwnPropertyDescriptor(HTMLImageElement.prototype, 'src'), holder;
26
+ Object.defineProperty(HTMLImageElement.prototype, 'src', { configurable: true, enumerable: true, get: d.get, set: function (v) {
27
+ d.set.call(this, v);
28
+ if (this.isConnected || !document.body) return;
29
+ holder = holder || document.body.appendChild(Object.assign(document.createElement('div'), { hidden: true, id: 'popost-held' }));
30
+ holder.appendChild(this);
31
+ } });
32
+ })();
33
+ </script>
34
+ <meta charset="UTF-8" />
35
+ <meta name="viewport" content="width=1920, height=1080" />
36
+ <title>Glass Shard Title</title>
37
+ <script src="../lib/gsap.min.js"></script>
38
+ <script>
39
+ // https://github.com/d3/d3-delaunay v6.0.4 Copyright 2018-2021 Observable, Inc., 2021 Mapbox
40
+ !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";const i=134217729;function e(t,i,e,n,s){let l,h,r,o,a=i[0],c=n[0],u=0,f=0;c>a==c>-a?(l=a,a=i[++u]):(l=c,c=n[++f]);let _=0;if(u<t&&f<e)for(c>a==c>-a?(h=a+l,r=l-(h-a),a=i[++u]):(h=c+l,r=l-(h-c),c=n[++f]),l=h,0!==r&&(s[_++]=r);u<t&&f<e;)c>a==c>-a?(h=l+a,o=h-l,r=l-(h-o)+(a-o),a=i[++u]):(h=l+c,o=h-l,r=l-(h-o)+(c-o),c=n[++f]),l=h,0!==r&&(s[_++]=r);for(;u<t;)h=l+a,o=h-l,r=l-(h-o)+(a-o),a=i[++u],l=h,0!==r&&(s[_++]=r);for(;f<e;)h=l+c,o=h-l,r=l-(h-o)+(c-o),c=n[++f],l=h,0!==r&&(s[_++]=r);return 0===l&&0!==_||(s[_++]=l),_}function n(t){return new Float64Array(t)}const s=n(4),l=n(8),h=n(12),r=n(16),o=n(4);function a(t,n,a,c,u,f){const _=(n-f)*(a-u),d=(t-u)*(c-f),g=_-d;if(0===_||0===d||_>0!=d>0)return g;const y=Math.abs(_+d);return Math.abs(g)>=33306690738754716e-32*y?g:-function(t,n,a,c,u,f,_){let d,g,y,m,x,p,w,v,b,T,M,A,k,$,P,S,I,z;const F=t-u,U=a-u,K=n-f,L=c-f;$=F*L,p=i*F,w=p-(p-F),v=F-w,p=i*L,b=p-(p-L),T=L-b,P=v*T-($-w*b-v*b-w*T),S=K*U,p=i*K,w=p-(p-K),v=K-w,p=i*U,b=p-(p-U),T=U-b,I=v*T-(S-w*b-v*b-w*T),M=P-I,x=P-M,s[0]=P-(M+x)+(x-I),A=$+M,x=A-$,k=$-(A-x)+(M-x),M=k-S,x=k-M,s[1]=k-(M+x)+(x-S),z=A+M,x=z-A,s[2]=A-(z-x)+(M-x),s[3]=z;let j=function(t,i){let e=i[0];for(let n=1;n<t;n++)e+=i[n];return e}(4,s),H=22204460492503146e-32*_;if(j>=H||-j>=H)return j;if(x=t-F,d=t-(F+x)+(x-u),x=a-U,y=a-(U+x)+(x-u),x=n-K,g=n-(K+x)+(x-f),x=c-L,m=c-(L+x)+(x-f),0===d&&0===g&&0===y&&0===m)return j;if(H=11093356479670487e-47*_+33306690738754706e-32*Math.abs(j),j+=F*m+L*d-(K*y+U*g),j>=H||-j>=H)return j;$=d*L,p=i*d,w=p-(p-d),v=d-w,p=i*L,b=p-(p-L),T=L-b,P=v*T-($-w*b-v*b-w*T),S=g*U,p=i*g,w=p-(p-g),v=g-w,p=i*U,b=p-(p-U),T=U-b,I=v*T-(S-w*b-v*b-w*T),M=P-I,x=P-M,o[0]=P-(M+x)+(x-I),A=$+M,x=A-$,k=$-(A-x)+(M-x),M=k-S,x=k-M,o[1]=k-(M+x)+(x-S),z=A+M,x=z-A,o[2]=A-(z-x)+(M-x),o[3]=z;const E=e(4,s,4,o,l);$=F*m,p=i*F,w=p-(p-F),v=F-w,p=i*m,b=p-(p-m),T=m-b,P=v*T-($-w*b-v*b-w*T),S=K*y,p=i*K,w=p-(p-K),v=K-w,p=i*y,b=p-(p-y),T=y-b,I=v*T-(S-w*b-v*b-w*T),M=P-I,x=P-M,o[0]=P-(M+x)+(x-I),A=$+M,x=A-$,k=$-(A-x)+(M-x),M=k-S,x=k-M,o[1]=k-(M+x)+(x-S),z=A+M,x=z-A,o[2]=A-(z-x)+(M-x),o[3]=z;const C=e(E,l,4,o,h);$=d*m,p=i*d,w=p-(p-d),v=d-w,p=i*m,b=p-(p-m),T=m-b,P=v*T-($-w*b-v*b-w*T),S=g*y,p=i*g,w=p-(p-g),v=g-w,p=i*y,b=p-(p-y),T=y-b,I=v*T-(S-w*b-v*b-w*T),M=P-I,x=P-M,o[0]=P-(M+x)+(x-I),A=$+M,x=A-$,k=$-(A-x)+(M-x),M=k-S,x=k-M,o[1]=k-(M+x)+(x-S),z=A+M,x=z-A,o[2]=A-(z-x)+(M-x),o[3]=z;const N=e(C,h,4,o,r);return r[N-1]}(t,n,a,c,u,f,y)}const c=Math.pow(2,-52),u=new Uint32Array(512);class f{static from(t,i=x,e=p){const n=t.length,s=new Float64Array(2*n);for(let l=0;l<n;l++){const n=t[l];s[2*l]=i(n),s[2*l+1]=e(n)}return new f(s)}constructor(t){const i=t.length>>1;if(i>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const e=Math.max(2*i-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(i)),this._hullPrev=new Uint32Array(i),this._hullNext=new Uint32Array(i),this._hullTri=new Uint32Array(i),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(i),this._dists=new Float64Array(i),this.update()}update(){const{coords:t,_hullPrev:i,_hullNext:e,_hullTri:n,_hullHash:s}=this,l=t.length>>1;let h=1/0,r=1/0,o=-1/0,u=-1/0;for(let i=0;i<l;i++){const e=t[2*i],n=t[2*i+1];e<h&&(h=e),n<r&&(r=n),e>o&&(o=e),n>u&&(u=n),this._ids[i]=i}const f=(h+o)/2,d=(r+u)/2;let m,x,p,w=1/0;for(let i=0;i<l;i++){const e=_(f,d,t[2*i],t[2*i+1]);e<w&&(m=i,w=e)}const v=t[2*m],b=t[2*m+1];w=1/0;for(let i=0;i<l;i++){if(i===m)continue;const e=_(v,b,t[2*i],t[2*i+1]);e<w&&e>0&&(x=i,w=e)}let T=t[2*x],M=t[2*x+1],A=1/0;for(let i=0;i<l;i++){if(i===m||i===x)continue;const e=g(v,b,T,M,t[2*i],t[2*i+1]);e<A&&(p=i,A=e)}let k=t[2*p],$=t[2*p+1];if(A===1/0){for(let i=0;i<l;i++)this._dists[i]=t[2*i]-t[0]||t[2*i+1]-t[1];y(this._ids,this._dists,0,l-1);const i=new Uint32Array(l);let e=0;for(let t=0,n=-1/0;t<l;t++){const s=this._ids[t];this._dists[s]>n&&(i[e++]=s,n=this._dists[s])}return this.hull=i.subarray(0,e),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(a(v,b,T,M,k,$)<0){const t=x,i=T,e=M;x=p,T=k,M=$,p=t,k=i,$=e}const P=function(t,i,e,n,s,l){const h=e-t,r=n-i,o=s-t,a=l-i,c=h*h+r*r,u=o*o+a*a,f=.5/(h*a-r*o);return{x:t+(a*c-r*u)*f,y:i+(h*u-o*c)*f}}(v,b,T,M,k,$);this._cx=P.x,this._cy=P.y;for(let i=0;i<l;i++)this._dists[i]=_(t[2*i],t[2*i+1],P.x,P.y);y(this._ids,this._dists,0,l-1),this._hullStart=m;let S=3;e[m]=i[p]=x,e[x]=i[m]=p,e[p]=i[x]=m,n[m]=0,n[x]=1,n[p]=2,s.fill(-1),s[this._hashKey(v,b)]=m,s[this._hashKey(T,M)]=x,s[this._hashKey(k,$)]=p,this.trianglesLen=0,this._addTriangle(m,x,p,-1,-1,-1);for(let l,h,r=0;r<this._ids.length;r++){const o=this._ids[r],u=t[2*o],f=t[2*o+1];if(r>0&&Math.abs(u-l)<=c&&Math.abs(f-h)<=c)continue;if(l=u,h=f,o===m||o===x||o===p)continue;let _=0;for(let t=0,i=this._hashKey(u,f);t<this._hashSize&&(_=s[(i+t)%this._hashSize],-1===_||_===e[_]);t++);_=i[_];let d,g=_;for(;d=e[g],a(u,f,t[2*g],t[2*g+1],t[2*d],t[2*d+1])>=0;)if(g=d,g===_){g=-1;break}if(-1===g)continue;let y=this._addTriangle(g,o,e[g],-1,-1,n[g]);n[o]=this._legalize(y+2),n[g]=y,S++;let w=e[g];for(;d=e[w],a(u,f,t[2*w],t[2*w+1],t[2*d],t[2*d+1])<0;)y=this._addTriangle(w,o,d,n[o],-1,n[w]),n[o]=this._legalize(y+2),e[w]=w,S--,w=d;if(g===_)for(;d=i[g],a(u,f,t[2*d],t[2*d+1],t[2*g],t[2*g+1])<0;)y=this._addTriangle(d,o,g,-1,n[g],n[d]),this._legalize(y+2),n[d]=y,e[g]=g,S--,g=d;this._hullStart=i[o]=g,e[g]=i[w]=o,e[o]=w,s[this._hashKey(u,f)]=o,s[this._hashKey(t[2*g],t[2*g+1])]=g}this.hull=new Uint32Array(S);for(let t=0,i=this._hullStart;t<S;t++)this.hull[t]=i,i=e[i];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,i){return Math.floor(function(t,i){const e=t/(Math.abs(t)+Math.abs(i));return(i>0?3-e:1+e)/4}(t-this._cx,i-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:i,_halfedges:e,coords:n}=this;let s=0,l=0;for(;;){const h=e[t],r=t-t%3;if(l=r+(t+2)%3,-1===h){if(0===s)break;t=u[--s];continue}const o=h-h%3,a=r+(t+1)%3,c=o+(h+2)%3,f=i[l],_=i[t],g=i[a],y=i[c];if(d(n[2*f],n[2*f+1],n[2*_],n[2*_+1],n[2*g],n[2*g+1],n[2*y],n[2*y+1])){i[t]=y,i[h]=f;const n=e[c];if(-1===n){let i=this._hullStart;do{if(this._hullTri[i]===c){this._hullTri[i]=t;break}i=this._hullPrev[i]}while(i!==this._hullStart)}this._link(t,n),this._link(h,e[l]),this._link(l,c);const r=o+(h+1)%3;s<u.length&&(u[s++]=r)}else{if(0===s)break;t=u[--s]}}return l}_link(t,i){this._halfedges[t]=i,-1!==i&&(this._halfedges[i]=t)}_addTriangle(t,i,e,n,s,l){const h=this.trianglesLen;return this._triangles[h]=t,this._triangles[h+1]=i,this._triangles[h+2]=e,this._link(h,n),this._link(h+1,s),this._link(h+2,l),this.trianglesLen+=3,h}}function _(t,i,e,n){const s=t-e,l=i-n;return s*s+l*l}function d(t,i,e,n,s,l,h,r){const o=t-h,a=i-r,c=e-h,u=n-r,f=s-h,_=l-r,d=c*c+u*u,g=f*f+_*_;return o*(u*g-d*_)-a*(c*g-d*f)+(o*o+a*a)*(c*_-u*f)<0}function g(t,i,e,n,s,l){const h=e-t,r=n-i,o=s-t,a=l-i,c=h*h+r*r,u=o*o+a*a,f=.5/(h*a-r*o),_=(a*c-r*u)*f,d=(h*u-o*c)*f;return _*_+d*d}function y(t,i,e,n){if(n-e<=20)for(let s=e+1;s<=n;s++){const n=t[s],l=i[n];let h=s-1;for(;h>=e&&i[t[h]]>l;)t[h+1]=t[h--];t[h+1]=n}else{let s=e+1,l=n;m(t,e+n>>1,s),i[t[e]]>i[t[n]]&&m(t,e,n),i[t[s]]>i[t[n]]&&m(t,s,n),i[t[e]]>i[t[s]]&&m(t,e,s);const h=t[s],r=i[h];for(;;){do{s++}while(i[t[s]]<r);do{l--}while(i[t[l]]>r);if(l<s)break;m(t,s,l)}t[e+1]=t[l],t[l]=h,n-s+1>=l-e?(y(t,i,s,n),y(t,i,e,l-1)):(y(t,i,e,l-1),y(t,i,s,n))}}function m(t,i,e){const n=t[i];t[i]=t[e],t[e]=n}function x(t){return t[0]}function p(t){return t[1]}const w=1e-6;class v{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,i){this._+=`L${this._x1=+t},${this._y1=+i}`}arc(t,i,e){const n=(t=+t)+(e=+e),s=i=+i;if(e<0)throw new Error("negative radius");null===this._x1?this._+=`M${n},${s}`:(Math.abs(this._x1-n)>w||Math.abs(this._y1-s)>w)&&(this._+="L"+n+","+s),e&&(this._+=`A${e},${e},0,1,1,${t-e},${i}A${e},${e},0,1,1,${this._x1=n},${this._y1=s}`)}rect(t,i,e,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}h${+e}v${+n}h${-e}Z`}value(){return this._||null}}class b{constructor(){this._=[]}moveTo(t,i){this._.push([t,i])}closePath(){this._.push(this._[0].slice())}lineTo(t,i){this._.push([t,i])}value(){return this._.length?this._:null}}class T{constructor(t,[i,e,n,s]=[0,0,960,500]){if(!((n=+n)>=(i=+i)&&(s=+s)>=(e=+e)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=n,this.xmin=i,this.ymax=s,this.ymin=e,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:i,triangles:e},vectors:n}=this;let s,l;const h=this.circumcenters=this._circumcenters.subarray(0,e.length/3*2);for(let n,r,o=0,a=0,c=e.length;o<c;o+=3,a+=2){const c=2*e[o],u=2*e[o+1],f=2*e[o+2],_=t[c],d=t[c+1],g=t[u],y=t[u+1],m=t[f],x=t[f+1],p=g-_,w=y-d,v=m-_,b=x-d,T=2*(p*b-w*v);if(Math.abs(T)<1e-9){if(void 0===s){s=l=0;for(const e of i)s+=t[2*e],l+=t[2*e+1];s/=i.length,l/=i.length}const e=1e9*Math.sign((s-_)*b-(l-d)*v);n=(_+m)/2-e*b,r=(d+x)/2+e*v}else{const t=1/T,i=p*p+w*w,e=v*v+b*b;n=_+(b*i-w*e)*t,r=d+(p*e-v*i)*t}h[a]=n,h[a+1]=r}let r,o,a,c=i[i.length-1],u=4*c,f=t[2*c],_=t[2*c+1];n.fill(0);for(let e=0;e<i.length;++e)c=i[e],r=u,o=f,a=_,u=4*c,f=t[2*c],_=t[2*c+1],n[r+2]=n[u]=a-_,n[r+3]=n[u+1]=f-o}render(t){const i=null==t?t=new v:void 0,{delaunay:{halfedges:e,inedges:n,hull:s},circumcenters:l,vectors:h}=this;if(s.length<=1)return null;for(let i=0,n=e.length;i<n;++i){const n=e[i];if(n<i)continue;const s=2*Math.floor(i/3),h=2*Math.floor(n/3),r=l[s],o=l[s+1],a=l[h],c=l[h+1];this._renderSegment(r,o,a,c,t)}let r,o=s[s.length-1];for(let i=0;i<s.length;++i){r=o,o=s[i];const e=2*Math.floor(n[o]/3),a=l[e],c=l[e+1],u=4*r,f=this._project(a,c,h[u+2],h[u+3]);f&&this._renderSegment(a,c,f[0],f[1],t)}return i&&i.value()}renderBounds(t){const i=null==t?t=new v:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),i&&i.value()}renderCell(t,i){const e=null==i?i=new v:void 0,n=this._clip(t);if(null===n||!n.length)return;i.moveTo(n[0],n[1]);let s=n.length;for(;n[0]===n[s-2]&&n[1]===n[s-1]&&s>1;)s-=2;for(let t=2;t<s;t+=2)n[t]===n[t-2]&&n[t+1]===n[t-1]||i.lineTo(n[t],n[t+1]);return i.closePath(),e&&e.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let i=0,e=t.length/2;i<e;++i){const t=this.cellPolygon(i);t&&(t.index=i,yield t)}}cellPolygon(t){const i=new b;return this.renderCell(t,i),i.value()}_renderSegment(t,i,e,n,s){let l;const h=this._regioncode(t,i),r=this._regioncode(e,n);0===h&&0===r?(s.moveTo(t,i),s.lineTo(e,n)):(l=this._clipSegment(t,i,e,n,h,r))&&(s.moveTo(l[0],l[1]),s.lineTo(l[2],l[3]))}contains(t,i,e){return(i=+i)==i&&(e=+e)==e&&this.delaunay._step(t,i,e)===t}*neighbors(t){const i=this._clip(t);if(i)for(const e of this.delaunay.neighbors(t)){const t=this._clip(e);if(t)t:for(let n=0,s=i.length;n<s;n+=2)for(let l=0,h=t.length;l<h;l+=2)if(i[n]===t[l]&&i[n+1]===t[l+1]&&i[(n+2)%s]===t[(l+h-2)%h]&&i[(n+3)%s]===t[(l+h-1)%h]){yield e;break t}}}_cell(t){const{circumcenters:i,delaunay:{inedges:e,halfedges:n,triangles:s}}=this,l=e[t];if(-1===l)return null;const h=[];let r=l;do{const e=Math.floor(r/3);if(h.push(i[2*e],i[2*e+1]),r=r%3==2?r-2:r+1,s[r]!==t)break;r=n[r]}while(r!==l&&-1!==r);return h}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const i=this._cell(t);if(null===i)return null;const{vectors:e}=this,n=4*t;return this._simplify(e[n]||e[n+1]?this._clipInfinite(t,i,e[n],e[n+1],e[n+2],e[n+3]):this._clipFinite(t,i))}_clipFinite(t,i){const e=i.length;let n,s,l,h,r=null,o=i[e-2],a=i[e-1],c=this._regioncode(o,a),u=0;for(let f=0;f<e;f+=2)if(n=o,s=a,o=i[f],a=i[f+1],l=c,c=this._regioncode(o,a),0===l&&0===c)h=u,u=0,r?r.push(o,a):r=[o,a];else{let i,e,f,_,d;if(0===l){if(null===(i=this._clipSegment(n,s,o,a,l,c)))continue;[e,f,_,d]=i}else{if(null===(i=this._clipSegment(o,a,n,s,c,l)))continue;[_,d,e,f]=i,h=u,u=this._edgecode(e,f),h&&u&&this._edge(t,h,u,r,r.length),r?r.push(e,f):r=[e,f]}h=u,u=this._edgecode(_,d),h&&u&&this._edge(t,h,u,r,r.length),r?r.push(_,d):r=[_,d]}if(r)h=u,u=this._edgecode(r[0],r[1]),h&&u&&this._edge(t,h,u,r,r.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return r}_clipSegment(t,i,e,n,s,l){const h=s<l;for(h&&([t,i,e,n,s,l]=[e,n,t,i,l,s]);;){if(0===s&&0===l)return h?[e,n,t,i]:[t,i,e,n];if(s&l)return null;let r,o,a=s||l;8&a?(r=t+(e-t)*(this.ymax-i)/(n-i),o=this.ymax):4&a?(r=t+(e-t)*(this.ymin-i)/(n-i),o=this.ymin):2&a?(o=i+(n-i)*(this.xmax-t)/(e-t),r=this.xmax):(o=i+(n-i)*(this.xmin-t)/(e-t),r=this.xmin),s?(t=r,i=o,s=this._regioncode(t,i)):(e=r,n=o,l=this._regioncode(e,n))}}_clipInfinite(t,i,e,n,s,l){let h,r=Array.from(i);if((h=this._project(r[0],r[1],e,n))&&r.unshift(h[0],h[1]),(h=this._project(r[r.length-2],r[r.length-1],s,l))&&r.push(h[0],h[1]),r=this._clipFinite(t,r))for(let i,e=0,n=r.length,s=this._edgecode(r[n-2],r[n-1]);e<n;e+=2)i=s,s=this._edgecode(r[e],r[e+1]),i&&s&&(e=this._edge(t,i,s,r,e),n=r.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(r=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return r}_edge(t,i,e,n,s){for(;i!==e;){let e,l;switch(i){case 5:i=4;continue;case 4:i=6,e=this.xmax,l=this.ymin;break;case 6:i=2;continue;case 2:i=10,e=this.xmax,l=this.ymax;break;case 10:i=8;continue;case 8:i=9,e=this.xmin,l=this.ymax;break;case 9:i=1;continue;case 1:i=5,e=this.xmin,l=this.ymin}n[s]===e&&n[s+1]===l||!this.contains(t,e,l)||(n.splice(s,0,e,l),s+=2)}return s}_project(t,i,e,n){let s,l,h,r=1/0;if(n<0){if(i<=this.ymin)return null;(s=(this.ymin-i)/n)<r&&(h=this.ymin,l=t+(r=s)*e)}else if(n>0){if(i>=this.ymax)return null;(s=(this.ymax-i)/n)<r&&(h=this.ymax,l=t+(r=s)*e)}if(e>0){if(t>=this.xmax)return null;(s=(this.xmax-t)/e)<r&&(l=this.xmax,h=i+(r=s)*n)}else if(e<0){if(t<=this.xmin)return null;(s=(this.xmin-t)/e)<r&&(l=this.xmin,h=i+(r=s)*n)}return[l,h]}_edgecode(t,i){return(t===this.xmin?1:t===this.xmax?2:0)|(i===this.ymin?4:i===this.ymax?8:0)}_regioncode(t,i){return(t<this.xmin?1:t>this.xmax?2:0)|(i<this.ymin?4:i>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let i=0;i<t.length;i+=2){const e=(i+2)%t.length,n=(i+4)%t.length;(t[i]===t[e]&&t[e]===t[n]||t[i+1]===t[e+1]&&t[e+1]===t[n+1])&&(t.splice(e,2),i-=2)}t.length||(t=null)}return t}}const M=2*Math.PI,A=Math.pow;function k(t){return t[0]}function $(t){return t[1]}function P(t,i,e){return[t+Math.sin(t+i)*e,i+Math.cos(t-i)*e]}class S{static from(t,i=k,e=$,n){return new S("length"in t?function(t,i,e,n){const s=t.length,l=new Float64Array(2*s);for(let h=0;h<s;++h){const s=t[h];l[2*h]=i.call(n,s,h,t),l[2*h+1]=e.call(n,s,h,t)}return l}(t,i,e,n):Float64Array.from(function*(t,i,e,n){let s=0;for(const l of t)yield i.call(n,l,s,t),yield e.call(n,l,s,t),++s}(t,i,e,n)))}constructor(t){this._delaunator=new f(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,i=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:i,coords:e}=t;for(let t=0;t<i.length;t+=3){const n=2*i[t],s=2*i[t+1],l=2*i[t+2];if((e[l]-e[n])*(e[s+1]-e[n+1])-(e[s]-e[n])*(e[l+1]-e[n+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:i.length/2},((t,i)=>i)).sort(((t,e)=>i[2*t]-i[2*e]||i[2*t+1]-i[2*e+1]));const t=this.collinear[0],e=this.collinear[this.collinear.length-1],n=[i[2*t],i[2*t+1],i[2*e],i[2*e+1]],s=1e-8*Math.hypot(n[3]-n[1],n[2]-n[0]);for(let t=0,e=i.length/2;t<e;++t){const e=P(i[2*t],i[2*t+1],s);i[2*t]=e[0],i[2*t+1]=e[1]}this._delaunator=new f(i)}else delete this.collinear;const e=this.halfedges=this._delaunator.halfedges,n=this.hull=this._delaunator.hull,s=this.triangles=this._delaunator.triangles,l=this.inedges.fill(-1),h=this._hullIndex.fill(-1);for(let t=0,i=e.length;t<i;++t){const i=s[t%3==2?t-2:t+1];-1!==e[t]&&-1!==l[i]||(l[i]=t)}for(let t=0,i=n.length;t<i;++t)h[n[t]]=t;n.length<=2&&n.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=n[0],l[n[0]]=1,2===n.length&&(l[n[1]]=0,this.triangles[1]=n[1],this.triangles[2]=n[1]))}voronoi(t){return new T(this,t)}*neighbors(t){const{inedges:i,hull:e,_hullIndex:n,halfedges:s,triangles:l,collinear:h}=this;if(h){const i=h.indexOf(t);return i>0&&(yield h[i-1]),void(i<h.length-1&&(yield h[i+1]))}const r=i[t];if(-1===r)return;let o=r,a=-1;do{if(yield a=l[o],o=o%3==2?o-2:o+1,l[o]!==t)return;if(o=s[o],-1===o){const i=e[(n[t]+1)%e.length];return void(i!==a&&(yield i))}}while(o!==r)}find(t,i,e=0){if((t=+t)!=t||(i=+i)!=i)return-1;const n=e;let s;for(;(s=this._step(e,t,i))>=0&&s!==e&&s!==n;)e=s;return s}_step(t,i,e){const{inedges:n,hull:s,_hullIndex:l,halfedges:h,triangles:r,points:o}=this;if(-1===n[t]||!o.length)return(t+1)%(o.length>>1);let a=t,c=A(i-o[2*t],2)+A(e-o[2*t+1],2);const u=n[t];let f=u;do{let n=r[f];const u=A(i-o[2*n],2)+A(e-o[2*n+1],2);if(u<c&&(c=u,a=n),f=f%3==2?f-2:f+1,r[f]!==t)break;if(f=h[f],-1===f){if(f=s[(l[t]+1)%s.length],f!==n&&A(i-o[2*f],2)+A(e-o[2*f+1],2)<c)return f;break}}while(f!==u);return a}render(t){const i=null==t?t=new v:void 0,{points:e,halfedges:n,triangles:s}=this;for(let i=0,l=n.length;i<l;++i){const l=n[i];if(l<i)continue;const h=2*s[i],r=2*s[l];t.moveTo(e[h],e[h+1]),t.lineTo(e[r],e[r+1])}return this.renderHull(t),i&&i.value()}renderPoints(t,i){void 0!==i||t&&"function"==typeof t.moveTo||(i=t,t=null),i=null==i?2:+i;const e=null==t?t=new v:void 0,{points:n}=this;for(let e=0,s=n.length;e<s;e+=2){const s=n[e],l=n[e+1];t.moveTo(s+i,l),t.arc(s,l,i,0,M)}return e&&e.value()}renderHull(t){const i=null==t?t=new v:void 0,{hull:e,points:n}=this,s=2*e[0],l=e.length;t.moveTo(n[s],n[s+1]);for(let i=1;i<l;++i){const s=2*e[i];t.lineTo(n[s],n[s+1])}return t.closePath(),i&&i.value()}hullPolygon(){const t=new b;return this.renderHull(t),t.value()}renderTriangle(t,i){const e=null==i?i=new v:void 0,{points:n,triangles:s}=this,l=2*s[t*=3],h=2*s[t+1],r=2*s[t+2];return i.moveTo(n[l],n[l+1]),i.lineTo(n[h],n[h+1]),i.lineTo(n[r],n[r+1]),i.closePath(),e&&e.value()}*trianglePolygons(){const{triangles:t}=this;for(let i=0,e=t.length/3;i<e;++i)yield this.trianglePolygon(i)}trianglePolygon(t){const i=new b;return this.renderTriangle(t,i),i.value()}}t.Delaunay=S,t.Voronoi=T,Object.defineProperty(t,"__esModule",{value:!0})}));
41
+
42
+ </script>
43
+ <style>
44
+
45
+
46
+
47
+ * {
48
+ margin: 0;
49
+ padding: 0;
50
+ box-sizing: border-box;
51
+ }
52
+ html,
53
+ body {
54
+ width: 1920px;
55
+ height: 1080px;
56
+ overflow: hidden;
57
+ background: #0a0a0f;
58
+ }
59
+ body {
60
+ font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
61
+ }
62
+ #gst-root {
63
+ position: relative;
64
+ width: 1920px;
65
+ height: 1080px;
66
+ overflow: hidden;
67
+ background: #0a0a0f; /* flat — no gradients, no glow */
68
+ }
69
+ .clip {
70
+ position: absolute;
71
+ inset: 0;
72
+ }
73
+ #gst-canvas {
74
+ display: block;
75
+ width: 100%;
76
+ height: 100%;
77
+ }
78
+ #gst-fontload {
79
+ position: absolute;
80
+ opacity: 0;
81
+ pointer-events: none;
82
+ }
83
+ </style>
84
+ <link rel="stylesheet" href="../css/latin-inter.css" />
85
+ <style id="popost-fonts">
86
+ @font-face {
87
+ font-family: "Geist";
88
+ size-adjust: 97.4%;
89
+ font-style: normal;
90
+ font-display: swap;
91
+ font-weight: 100 900;
92
+ src: url("../fonts/latin-inter/inter-latin-ext-wght-normal.woff2") format('woff2-variations');
93
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
94
+ }
95
+ @font-face {
96
+ font-family: "Geist";
97
+ size-adjust: 97.4%;
98
+ font-style: normal;
99
+ font-display: swap;
100
+ font-weight: 100 900;
101
+ src: url("../fonts/latin-inter/inter-latin-wght-normal.woff2") format('woff2-variations');
102
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
103
+ }
104
+ @font-face {
105
+ font-family: "Geist";
106
+ size-adjust: 97.4%;
107
+ font-style: italic;
108
+ font-display: swap;
109
+ font-weight: 100 900;
110
+ src: url("../fonts/latin-inter/inter-latin-ext-wght-italic.woff2") format('woff2-variations');
111
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
112
+ }
113
+ @font-face {
114
+ font-family: "Geist";
115
+ size-adjust: 97.4%;
116
+ font-style: italic;
117
+ font-display: swap;
118
+ font-weight: 100 900;
119
+ src: url("../fonts/latin-inter/inter-latin-wght-italic.woff2") format('woff2-variations');
120
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
121
+ }
122
+ </style>
123
+ <script src="../lib/three.min.js"></script>
124
+ <script>
125
+ /* popost: three.js r147 set up as later releases are by default (sRGB output, colour management, physical lights). */
126
+ (function () {
127
+ if (!window.THREE || THREE.__popostCompat) return;
128
+ THREE.__popostCompat = true;
129
+ THREE.SRGBColorSpace = THREE.SRGBColorSpace || 'srgb';
130
+ THREE.LinearSRGBColorSpace = THREE.LinearSRGBColorSpace || 'srgb-linear';
131
+ THREE.NoColorSpace = THREE.NoColorSpace || '';
132
+ if (THREE.ColorManagement) THREE.ColorManagement.legacyMode = false;
133
+ var R = THREE.WebGLRenderer;
134
+ THREE.WebGLRenderer = function (p) { R.call(this, Object.assign({ preserveDrawingBuffer: true }, p || {})); this.outputEncoding = THREE.sRGBEncoding; this.physicallyCorrectLights = true; };
135
+ THREE.WebGLRenderer.prototype = R.prototype;
136
+ Object.defineProperty(R.prototype, 'outputColorSpace', { configurable: true, get: function () { return this.outputEncoding === THREE.sRGBEncoding ? 'srgb' : 'srgb-linear'; }, set: function (v) { this.outputEncoding = v === 'srgb' ? THREE.sRGBEncoding : THREE.LinearEncoding; } });
137
+ Object.defineProperty(THREE.Texture.prototype, 'colorSpace', { configurable: true, get: function () { return this.encoding === THREE.sRGBEncoding ? 'srgb' : ''; }, set: function (v) { this.encoding = v === 'srgb' ? THREE.sRGBEncoding : THREE.LinearEncoding; } });
138
+ R.prototype.compileAsync = R.prototype.compileAsync || function (scene, camera) { this.compile(scene, camera); return Promise.resolve(); };
139
+ /* the texture coordinates of later releases' shader chunks (vMapUv, ...), for code that onBeforeCompile adds */
140
+ THREE.ShaderChunk.common = ['Map', 'AlphaMap', 'NormalMap', 'BumpMap', 'RoughnessMap', 'MetalnessMap', 'EmissiveMap', 'SpecularMap', 'ClearcoatMap', 'ClearcoatNormalMap', 'ClearcoatRoughnessMap', 'SheenColorMap', 'SheenRoughnessMap', 'TransmissionMap', 'ThicknessMap', 'DisplacementMap'].map(function (k) { return '#define v' + k + 'Uv vUv\n'; }).join('') + '#define vAoMapUv vUv2\n#define vLightMapUv vUv2\n' + THREE.ShaderChunk.common;
141
+ /* scene.environmentIntensity (later releases) as every material's envMapIntensity */
142
+ var render = R.prototype.render;
143
+ R.prototype.render = function (scene, camera) {
144
+ if (scene && typeof scene.environmentIntensity === 'number') scene.traverse(function (o) { [].concat(o.material || []).forEach(function (m) { if ('envMapIntensity' in m) m.envMapIntensity = scene.environmentIntensity; }); });
145
+ return render.apply(this, arguments);
146
+ };
147
+ /* point and spot lights fall off with the square of the distance (decay 2), as later releases default to */
148
+ var P = THREE.PointLight, S = THREE.SpotLight;
149
+ THREE.PointLight = function (color, intensity, distance, decay) { return new P(color, intensity, distance, decay === undefined ? 2 : decay); };
150
+ THREE.PointLight.prototype = P.prototype;
151
+ THREE.SpotLight = function (color, intensity, distance, angle, penumbra, decay) { return new S(color, intensity, distance, angle, penumbra, decay === undefined ? 2 : decay); };
152
+ THREE.SpotLight.prototype = S.prototype;
153
+ })();
154
+ </script>
155
+ <style id="popost-fit">
156
+ html, body { margin: 0 !important; width: 1280px; height: 720px; overflow: hidden !important; }
157
+ :where(html, body) { background: #000000; }
158
+ #popost-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
159
+ </style>
160
+ <script type="application/json" id="popost-params">
161
+ {
162
+ "about": "Glass shards fly in through fog and tile themselves into the headline.",
163
+ "class": "text",
164
+ "tags": [
165
+ "3d-motion",
166
+ "title-card",
167
+ "glass",
168
+ "voronoi",
169
+ "shards",
170
+ "fog",
171
+ "hdr"
172
+ ],
173
+ "placeholders": "Geist drawn in Inter; 1 picture its script loads drawn as stand-ins",
174
+ "seconds": 9,
175
+ "params": [
176
+ {
177
+ "name": "fit",
178
+ "type": "choice",
179
+ "default": "contain",
180
+ "options": [
181
+ "contain",
182
+ "cover"
183
+ ],
184
+ "what": "how the 1920x1080 composition is fitted into the canvas: whole with bars, or filling it and cropped"
185
+ }
186
+ ],
187
+ "values": {}
188
+ }
189
+ </script>
190
+ <script>
191
+ /* popost: the scene's parameters stand in for HyperFrames variables; random numbers are seeded; the composition is
192
+ scaled into the canvas; clips are shown and hidden from the scene's time. */
193
+ (function () {
194
+ var block = document.getElementById('popost-params');
195
+ var values = block ? (JSON.parse(block.textContent).values || {}) : {};
196
+ var vars = {};
197
+ Object.keys(values).forEach(function (k) { if (k !== 'fit') vars[k] = values[k] === 'true' ? true : values[k] === 'false' ? false : values[k]; });
198
+ window.__hyperframes = { getVariables: function () { return vars; } };
199
+ var seed = 20240229;
200
+ window.__popostRandom = function () { seed = (seed + 0x6d2b79f5) >>> 0; var t = seed; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296; };
201
+ // HyperFrames variables as CSS custom properties (runtime/getVariables.ts, compositionLoader.ts). A mounted
202
+ // composition's host lists its variables (data-popost-variables, written by the port): before the composition's
203
+ // scripts run it gets those no rule gives it yet (an inherited value counts), and after them the rest; a value given
204
+ // by a parameter always wins.
205
+ var cssName = function (id) { return '--' + (String(id).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'node'); };
206
+ var givenId = function (n) { return Object.keys(values).filter(function (id) { return id !== 'fit' && cssName(id) === n; })[0]; };
207
+ var hostVars = function (h, early) {
208
+ (h.getAttribute('data-popost-variables') || '').split(';').forEach(function (d) {
209
+ var i = d.indexOf(':'), n = d.slice(0, i).trim(), k = givenId(n);
210
+ if (i < 0 || !n) return;
211
+ if (k !== undefined) h.style.setProperty(n, String(vars[k]));
212
+ else if (!(h.style.getPropertyValue(n) || (early ? getComputedStyle(h).getPropertyValue(n) : '')).trim()) h.style.setProperty(n, d.slice(i + 1).trim());
213
+ });
214
+ };
215
+ // Root-level clips laid out as HyperFrames lays them out (runtime/init.ts, applyCompositionSizing and applyClipLayout):
216
+ // its root composition (one marked data-root="true", else the first element with a data-composition-id, which is the
217
+ // page's <html> when that has one) gets its declared size, a position and overflow hidden; each child of it with a
218
+ // data-start is placed absolute unless it is absolute or fixed already, and given its declared size, or 100% where it
219
+ // measures 0. A composition box deeper in the page keeps the position its page gives it.
220
+ var layout = function () {
221
+ var hroot = document.querySelector('[data-composition-id][data-root="true"]') || document.querySelector('[data-composition-id]');
222
+ if (!hroot) return;
223
+ var px = function (v) { var n = parseFloat(v); return isFinite(n) && n > 0 ? n + 'px' : null; };
224
+ var rw = px(hroot.getAttribute('data-width')), rh = px(hroot.getAttribute('data-height'));
225
+ if (rw) { hroot.style.width = rw; hroot.style.setProperty('--comp-width', rw); }
226
+ if (rh) { hroot.style.height = rh; hroot.style.setProperty('--comp-height', rh); }
227
+ if (!hroot.style.position) hroot.style.position = 'relative';
228
+ hroot.style.overflow = 'hidden';
229
+ Array.prototype.forEach.call(hroot.children, function (el) {
230
+ if (/^(SCRIPT|STYLE|LINK|META)$/.test(el.tagName) || !el.hasAttribute('data-start')) return;
231
+ var none = el.style.getPropertyValue('display') === 'none', priority = el.style.getPropertyPriority('display');
232
+ if (none) el.style.removeProperty('display');
233
+ var cs = getComputedStyle(el);
234
+ if (cs.position !== 'absolute' && cs.position !== 'fixed') el.style.position = 'absolute';
235
+ if (el.tagName !== 'AUDIO') {
236
+ var byFile = /^(IMG|VIDEO)$/.test(el.tagName), fw = px(el.getAttribute('data-width')), fh = px(el.getAttribute('data-height'));
237
+ if (fw) { if (!el.style.width && (cs.width === '0px' || cs.width === 'auto')) el.style.width = fw; } else if (!byFile && !el.style.width && cs.width === '0px') el.style.width = '100%';
238
+ if (fh) { if (!el.style.height && (cs.height === '0px' || cs.height === 'auto')) el.style.height = fh; } else if (!byFile && !el.style.height && cs.height === '0px') el.style.height = '100%';
239
+ }
240
+ if (none) el.style.setProperty('display', 'none', priority);
241
+ });
242
+ };
243
+ // HyperFrames loads a mounted composition after it has laid out the page, so its scripts see the host placed: each
244
+ // script of a mounted composition calls this first (the port puts the call there).
245
+ window.__popostMount = function (script) {
246
+ var h = script && script.closest ? script.closest('[data-popost-host]') : null;
247
+ if (!h || h.__popostMounted) return;
248
+ h.__popostMounted = true;
249
+ layout();
250
+ hostVars(h, true);
251
+ };
252
+ window.__popostFit = function () {
253
+ // The canvas, from the size this file declares: a scene of a later shot loads in a layer that is not displayed, where the page measures 0.
254
+ var size = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
255
+ var W = 1920, H = 1080, s = document.getElementById('popost-stage'), cw = Number(size[1]), ch = Number(size[2]);
256
+ var k = (values.fit === 'cover' ? Math.max : Math.min)(cw / W, ch / H);
257
+ s.style.transform = 'translate(' + (cw - W * k) / 2 + 'px,' + (ch - H * k) / 2 + 'px) scale(' + k + ')';
258
+ // The page's own declared variables on its root element (runtime/getVariables.ts, injectCompositionCssVariables):
259
+ // each default where no rule defines its property, a value given by a parameter always.
260
+ var de = document.documentElement, declared = [];
261
+ try { declared = JSON.parse(de.getAttribute('data-composition-variables') || '[]'); } catch (e) {}
262
+ declared.forEach(function (d) {
263
+ var n = cssName(d.id), given = Object.prototype.hasOwnProperty.call(values, d.id), v = given ? vars[d.id] : d.default;
264
+ if (!((typeof v === 'string' && v !== '') || typeof v === 'number')) return;
265
+ if (!given && (de.style.getPropertyValue(n) || getComputedStyle(de).getPropertyValue(n)).trim()) return;
266
+ de.style.setProperty(n, String(v));
267
+ });
268
+ Array.prototype.forEach.call(document.querySelectorAll('[data-popost-host]'), function (h) { hostVars(h, false); });
269
+ layout();
270
+ // Timed elements as HyperFrames has them (runtime/clipTree.ts, clipWindow.ts): every element with a data-start but the
271
+ // root composition, from its start plus the starts of the compositions it sits in, for its data-duration (a
272
+ // composition without one: its timeline's length); one that runs to the end of the root keeps its last frame.
273
+ var root = s.querySelector('[data-composition-id]');
274
+ var clips = Array.prototype.slice.call(s.querySelectorAll('[data-start]')).filter(function (c) { return (root ? c !== root : c.parentNode !== s) && !/^(SCRIPT|STYLE|LINK|META|TEMPLATE|NOSCRIPT)$/.test(c.tagName) && isFinite(parseFloat(c.getAttribute('data-start'))); });
275
+ var windows = clips.map(function (c) {
276
+ var a = parseFloat(c.getAttribute('data-start')), d = parseFloat(c.getAttribute('data-duration')), id = c.getAttribute('data-composition-id');
277
+ for (var p = c.parentElement; p && p !== s; p = p.parentElement) if (p !== root && p.hasAttribute('data-composition-id') && isFinite(parseFloat(p.getAttribute('data-start')))) a += parseFloat(p.getAttribute('data-start'));
278
+ var tl = !(d > 0) && id && window.__timelines && window.__timelines[id];
279
+ return [a, d > 0 ? d : tl && tl.duration ? tl.duration() : Infinity];
280
+ });
281
+ var rootLength = parseFloat(root && root.getAttribute('data-duration'));
282
+ // A mounted composition that starts later in its host runs on its own time.
283
+ [].forEach(function (m) {
284
+ var tl = window.__timelines && window.__timelines[m.id];
285
+ if (tl) window.__timelines[m.id] = { pause: function () { tl.pause(); }, seek: function (t) { tl.seek(Math.max(0, t - m.start)); }, duration: function () { return tl.duration() + m.start; } };
286
+ });
287
+ var scene = (window.__popostScene = window.__popostScene || {}), before = scene.render;
288
+ scene.render = function (seconds, fps) {
289
+ if (before) before(seconds, fps);
290
+ // A page that draws on the HyperFrames seek event gets it for every frame; what it waits for resolves before the frame is taken.
291
+ window.dispatchEvent(new CustomEvent('hf-seek', { detail: { time: seconds, waitUntil: function () {} } }));
292
+ for (var i = 0; i < clips.length; i++) {
293
+ var a = windows[i][0], end = a + windows[i][1];
294
+ clips[i].style.visibility = seconds >= a - 1e-6 && (seconds < end - 1e-6 || end >= rootLength - 1e-6) ? 'visible' : 'hidden';
295
+ }
296
+ };
297
+ };
298
+ })();
299
+ </script>
300
+ <script type="application/json" id="popost-cues">[{"at":0.733,"cue":"tick","gain":0.3}]</script>
301
+ </head>
302
+ <body>
303
+ <div id="popost-stage">
304
+ <div
305
+ data-hf-id="hf-51pv"
306
+ id="gst-root"
307
+ data-composition-id="glass-shard-title"
308
+ data-start="0"
309
+ data-duration="12.16"
310
+ data-width="1920"
311
+ data-height="1080"
312
+ style="width: 1920px; height: 1080px;">
313
+ <div
314
+ data-hf-id="hf-lsju"
315
+ id="gst-canvas-clip"
316
+ class="clip"
317
+ data-start="0"
318
+ data-duration="12.16"
319
+ data-track-index="1"
320
+ data-media-start="0"
321
+ ></div>
322
+ <div
323
+ data-hf-id="hf-uo1i"
324
+ id="gst-fontload"
325
+ aria-hidden="true"
326
+ data-start="0"
327
+ data-duration="12.16"
328
+ data-media-start="0"
329
+ >
330
+ <span data-hf-id="hf-kqtg" style="font-weight: 400">Aa</span
331
+ ><span data-hf-id="hf-7bxm" style="font-weight: 600">Aa</span>
332
+ </div>
333
+
334
+ </div>
335
+
336
+ <script>
337
+ window.__timelines = window.__timelines || {};
338
+ /* Studio's variables/SDK parser fails on any composition with a <canvas>
339
+ in its MARKUP (verified by bisection) — so the canvas is created at
340
+ runtime instead. Identical for preview/render; invisible to the parser.
341
+
342
+ Guarded: if this script is evaluated twice in one document a second
343
+ <canvas id="gst-canvas"> would be appended, getElementById would keep
344
+ returning the FIRST one, and the second three.js renderer would be
345
+ built on a canvas that already owns a live WebGL context. */
346
+ (function () {
347
+ if (document.getElementById("gst-canvas")) return;
348
+ var c = document.createElement("canvas");
349
+ c.id = "gst-canvas";
350
+ c.width = 1920;
351
+ c.height = 1080;
352
+ document.getElementById("gst-canvas-clip").appendChild(c);
353
+ })();
354
+
355
+ window.gstMulberry32 = gstMulberry32;
356
+ function gstMulberry32(seed) {
357
+ return function () {
358
+ var s = (seed = (seed + 0x6d2b79f5) | 0);
359
+ var t = Math.imul(s ^ (s >>> 15), 1 | s);
360
+ t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
361
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
362
+ };
363
+ }
364
+
365
+ (function () {
366
+ var DUR = 9;
367
+
368
+ /* ---- Studio variables ---- */
369
+ var vars = {
370
+ headline: "Designed in glass",
371
+ tileCount: 8,
372
+ roundness: 0.4,
373
+ bevel: 0.35,
374
+ meshSmooth: 0.6,
375
+ flyInTime: 2.3,
376
+ flyOutTime: 2.4,
377
+ stagger: 0.27,
378
+ flyInRotation: 5,
379
+ flyOutRotation: 6,
380
+ chaos: 0.25,
381
+ padding: 1,
382
+ sizeVariance: 0.35,
383
+ gap: 0.03,
384
+ easePow: 10,
385
+ sideDist: 3,
386
+ zDist: -42,
387
+ zOut: 14,
388
+ fog: 36,
389
+ };
390
+ try {
391
+ if (window.__hyperframes && window.__hyperframes.getVariables) {
392
+ var v = window.__hyperframes.getVariables() || {};
393
+ if (v.headline) vars.headline = String(v.headline);
394
+ if (v.title) vars.headline = String(v.title); /* legacy id */
395
+ if (v.tileCount !== undefined && isFinite(Number(v.tileCount)))
396
+ vars.tileCount = Number(v.tileCount);
397
+ if (v.roundness !== undefined && isFinite(Number(v.roundness)))
398
+ vars.roundness = Number(v.roundness);
399
+ if (v.bevel !== undefined && isFinite(Number(v.bevel))) vars.bevel = Number(v.bevel);
400
+ if (v.meshSmooth !== undefined && isFinite(Number(v.meshSmooth)))
401
+ vars.meshSmooth = Number(v.meshSmooth);
402
+ if (v.flyInTime !== undefined && isFinite(Number(v.flyInTime)))
403
+ vars.flyInTime = Number(v.flyInTime);
404
+ if (v.flyOutTime !== undefined && isFinite(Number(v.flyOutTime)))
405
+ vars.flyOutTime = Number(v.flyOutTime);
406
+ if (v.stagger !== undefined && isFinite(Number(v.stagger)))
407
+ vars.stagger = Number(v.stagger);
408
+ /* Legacy callers may still provide spin. New controls override it
409
+ independently; the old multiplier/default keeps its meaning. */
410
+ if (v.spin !== undefined && isFinite(Number(v.spin))) {
411
+ vars.flyInRotation = vars.flyOutRotation = Math.max(0, Math.min(6, Number(v.spin)));
412
+ }
413
+ if (v.flyInRotation !== undefined && isFinite(Number(v.flyInRotation)))
414
+ vars.flyInRotation = Number(v.flyInRotation);
415
+ if (v.flyOutRotation !== undefined && isFinite(Number(v.flyOutRotation)))
416
+ vars.flyOutRotation = Number(v.flyOutRotation);
417
+ if (v.zOut !== undefined && isFinite(Number(v.zOut))) vars.zOut = Number(v.zOut);
418
+ if (v.chaos !== undefined && isFinite(Number(v.chaos))) vars.chaos = Number(v.chaos);
419
+ if (v.padding !== undefined && isFinite(Number(v.padding)))
420
+ vars.padding = Number(v.padding);
421
+ if (v.sizeVariance !== undefined && isFinite(Number(v.sizeVariance)))
422
+ vars.sizeVariance = Number(v.sizeVariance);
423
+ if (v.gap !== undefined && isFinite(Number(v.gap))) vars.gap = Number(v.gap);
424
+ if (v.easePow !== undefined && isFinite(Number(v.easePow)))
425
+ vars.easePow = Number(v.easePow);
426
+ if (v.sideDist !== undefined && isFinite(Number(v.sideDist)))
427
+ vars.sideDist = Number(v.sideDist);
428
+ if (v.zDist !== undefined && isFinite(Number(v.zDist))) vars.zDist = Number(v.zDist);
429
+ if (v.fog !== undefined && isFinite(Number(v.fog))) vars.fog = Number(v.fog);
430
+ }
431
+ } catch (e) {
432
+ /* keep defaults */
433
+ }
434
+ vars.tileCount = Math.max(1, Math.min(400, Math.round(vars.tileCount)));
435
+ vars.roundness = Math.max(0, Math.min(1, vars.roundness));
436
+ vars.bevel = Math.max(0, Math.min(1, vars.bevel));
437
+ vars.meshSmooth = Math.max(0, Math.min(1, vars.meshSmooth));
438
+ vars.flyInTime = Math.max(0.2, Math.min(6, vars.flyInTime));
439
+ vars.flyOutTime = Math.max(0.2, Math.min(6, vars.flyOutTime));
440
+ vars.stagger = Math.max(0, Math.min(1, vars.stagger));
441
+ vars.flyInRotation = Math.max(0, Math.min(60, vars.flyInRotation));
442
+ vars.flyOutRotation = Math.max(0, Math.min(6, vars.flyOutRotation));
443
+ vars.zOut = Math.max(-400, Math.min(60, vars.zOut));
444
+ vars.chaos = Math.max(0, Math.min(1, vars.chaos));
445
+ vars.padding = Math.max(0, Math.min(1, vars.padding));
446
+ vars.sizeVariance = Math.max(0, Math.min(1, vars.sizeVariance));
447
+ vars.gap = Math.max(0, Math.min(0.3, vars.gap));
448
+ vars.easePow = Math.max(1, Math.min(10, vars.easePow));
449
+ vars.sideDist = Math.max(0, Math.min(60, vars.sideDist));
450
+ /* zDist is a coordinate: accept "-200" style input, clamp behind pane. */
451
+ vars.zDist = Math.min(0, Math.max(-400, vars.zDist > 0 ? -vars.zDist : vars.zDist));
452
+ vars.fog = Math.max(0, Math.min(400, vars.fog));
453
+
454
+ /* ---- Phase windows (speed compresses fly phases, hold absorbs) ---- */
455
+ var IN_START = 0.12;
456
+ var OUT_END = DUR - 0.35;
457
+ /* Explicit flight durations; if in + out + a minimum hold exceed the
458
+ composition, both scale down proportionally. */
459
+ var MIN_HOLD = 0.5;
460
+ var avail = OUT_END - IN_START - MIN_HOLD;
461
+ var tIn = vars.flyInTime,
462
+ tOut = vars.flyOutTime;
463
+ if (tIn + tOut > avail) {
464
+ var k = avail / (tIn + tOut);
465
+ tIn *= k;
466
+ tOut *= k;
467
+ }
468
+ var IN_WINDOW = tIn;
469
+ var OUT_WINDOW = tOut;
470
+ var OUT_START = OUT_END - OUT_WINDOW;
471
+
472
+ /* Scripted state read by renderScene. */
473
+ var st = {
474
+ time: 0,
475
+ tin: 0 /* master fly-in progress 0..1 */,
476
+ tout: 0 /* master fly-out progress 0..1 */,
477
+ thickness: 0.5,
478
+ roughness: 0.07,
479
+ ior: 1.52,
480
+ };
481
+
482
+ window.__GST = { DUR: DUR, st: st, vars: vars };
483
+
484
+ /* ---- Timeline: paused, registered, hf-seek wired ---- */
485
+ var tl = gsap.timeline({ paused: true });
486
+ tl.eventCallback("onUpdate", function () {
487
+ if (window.__gstRender) window.__gstRender();
488
+ });
489
+ /* Studio's player seeks with GSAP events suppressed and dispatches an
490
+ hf-seek CustomEvent instead — re-sync and repaint so the stage follows. */
491
+ /* Exactly one listener and one live timeline per document. A second
492
+ evaluation of this script would otherwise stack another hf-seek
493
+ listener and leave the previous paused timeline registered, so every
494
+ seek would drive N timelines and repaint N times. Declared as a
495
+ named function (not an arrow) so the reference read back off window
496
+ is identical and removeEventListener actually matches. */
497
+ function gstOnSeek(event) {
498
+ var d = event && event.detail;
499
+ if (d && typeof d.time === "number")
500
+ tl.totalTime(Math.min(d.time, tl.totalDuration()), true);
501
+ var fn = tl.eventCallback("onUpdate");
502
+ if (fn) fn();
503
+ }
504
+ if (window.__gstSeekHandler) window.removeEventListener("hf-seek", window.__gstSeekHandler);
505
+ if (window.__gstTimeline && window.__gstTimeline !== tl) {
506
+ try {
507
+ window.__gstTimeline.kill();
508
+ } catch (e) {
509
+ /* best effort */
510
+ }
511
+ }
512
+ window.__gstSeekHandler = gstOnSeek;
513
+ window.__gstTimeline = tl;
514
+ window.addEventListener("hf-seek", gstOnSeek);
515
+ /* Release the listener and the timeline with the document. Skipped for
516
+ a bfcache'd page, which is coming back with this stage still live. */
517
+ window.addEventListener("pagehide", function (event) {
518
+ if (event && event.persisted === true) return;
519
+ window.removeEventListener("hf-seek", gstOnSeek);
520
+ window.__gstSeekHandler = null;
521
+ window.__gstTimeline = null;
522
+ try {
523
+ tl.kill();
524
+ } catch (e) {
525
+ /* best effort */
526
+ }
527
+ });
528
+
529
+ tl.to(st, { time: DUR, duration: DUR, ease: "none" }, 0);
530
+ tl.to(st, { tin: 1, duration: IN_WINDOW, ease: "none" }, IN_START);
531
+ tl.to(st, { tout: 1, duration: OUT_WINDOW, ease: "none" }, OUT_START);
532
+
533
+ /* Glass stays clear throughout. The old frosted->clear resolve made
534
+ still-flying shards transmit a BLURRED copy of the already-seated
535
+ text — the ghost headline — so it is gone. */
536
+
537
+ window.__timelines["glass-shard-title"] = tl;
538
+ })();
539
+ </script>
540
+
541
+ <script>
542
+
543
+ /* popost: a drawn studio (a grey sweep with three soft boxes) as an equirectangular HDR picture, standing in for an .hdr
544
+ file the Skill does not ship; loaded at once. */
545
+ THREE.HDRLoader = class {
546
+ setDataType() { return this; }
547
+ setPath() { return this; }
548
+ studio() {
549
+ var w = 256, h = 128, data = new Float32Array(w * h * 4);
550
+ var boxes = [[0.25, 0.32, 0.16, 0.10, 7], [0.62, 0.28, 0.10, 0.16, 5], [0.9, 0.45, 0.06, 0.05, 3]];
551
+ for (var y = 0; y < h; y++) for (var x = 0; x < w; x++) {
552
+ var u = x / w, v = y / h, k = (y * w + x) * 4, sky = 0.04 + 0.5 * Math.pow(1 - v, 2), light = 0;
553
+ for (var i = 0; i < boxes.length; i++) {
554
+ var b = boxes[i], du = Math.abs(u - b[0]), dv = Math.abs(v - b[1]);
555
+ du = Math.min(du, 1 - du);
556
+ var e = Math.max(du / b[2], dv / b[3]);
557
+ if (e < 1.4) light += b[4] * Math.max(0, Math.min(1, (1.4 - e) / 0.4));
558
+ }
559
+ data[k] = data[k + 1] = sky + light; data[k + 2] = sky * 1.05 + light; data[k + 3] = 1;
560
+ }
561
+ var t = new THREE.DataTexture(data, w, h, THREE.RGBAFormat, THREE.FloatType);
562
+ t.mapping = THREE.EquirectangularReflectionMapping;
563
+ t.magFilter = t.minFilter = THREE.LinearFilter;
564
+ t.needsUpdate = true;
565
+ return t;
566
+ }
567
+ load(url, onLoad) { var t = this.studio(); if (onLoad) onLoad(t); return t; }
568
+ loadAsync() { return Promise.resolve(this.studio()); }
569
+ };
570
+ </script><script>
571
+ (async function () {
572
+ /* ================================================================
573
+ Three.js module: rasterise the headline, break its footprint into
574
+ seeded Voronoi glass shards, and render purely from scripted state.
575
+ ================================================================ */
576
+
577
+ var HDRLoader = THREE.HDRLoader;
578
+
579
+ const G = window.__GST;
580
+ const st = G.st;
581
+
582
+ /* ---- One instance per document -------------------------------------
583
+ This composition is mounted in short-lived documents all over the
584
+ place: Studio's preview stage, the sidebar's hover previews, a
585
+ composition-stack push, the gallery's per-block tiles. One live
586
+ instance costs roughly 350 MB (a 1920x1080 WebGL context with
587
+ antialias + preserveDrawingBuffer, a 4096x2304 headline raster with
588
+ mipmaps, a PMREM environment, a transmission render target and 34
589
+ extruded shard geometries), so a stale one is not a rounding error.
590
+ Never build two on the same document, and always hand the host an
591
+ explicit way to release one. */
592
+ if (window.__gstInstance && window.__gstInstance.dispose) {
593
+ try {
594
+ window.__gstInstance.dispose();
595
+ } catch (e) {
596
+ /* best effort */
597
+ }
598
+ }
599
+
600
+ const canvas = document.getElementById("gst-canvas");
601
+ const renderer = new THREE.WebGLRenderer({
602
+ canvas,
603
+ alpha: true,
604
+ antialias: true,
605
+ preserveDrawingBuffer: true,
606
+ });
607
+ renderer.setSize(1920, 1080, false);
608
+ renderer.setPixelRatio(1);
609
+ renderer.setClearColor(0x0a0a0f, 1); /* flat dark — no gradient wash */
610
+ renderer.toneMapping = THREE.ACESFilmicToneMapping;
611
+
612
+ const FOV = 42;
613
+ const CAM_Z = 5.2;
614
+ const PANE_Z = 0.6;
615
+ const scene = new THREE.Scene();
616
+ /* Include the full configured flight, 15% seeded depth jitter, lateral
617
+ offsets rotated by the pane group, and shard extents. The old fixed
618
+ far=60 clipped distant starts even with fog disabled. */
619
+ const FAR = Math.max(
620
+ 60,
621
+ CAM_Z + Math.max(-G.vars.zDist, -G.vars.zOut, 0) * 1.15 + G.vars.sideDist * 1.5 + 12,
622
+ );
623
+ const camera = new THREE.PerspectiveCamera(FOV, 1920 / 1080, 0.1, FAR);
624
+ camera.position.set(0, 0, CAM_Z);
625
+
626
+ /* Frustum size at the shard plane: world <-> texture mapping basis. */
627
+ const distPane = CAM_Z - PANE_Z;
628
+ const VH = 2 * distPane * Math.tan((FOV * Math.PI) / 360);
629
+ const VW = VH * (1920 / 1080);
630
+
631
+ /* ---- Lights ---- */
632
+ scene.add(new THREE.AmbientLight(0xffffff, 0.6));
633
+ const spot = new THREE.SpotLight(0xffffff, 7, 0, Math.PI / 4, 0.5, 1);
634
+ spot.position.set(0, 7.1, 2);
635
+ scene.add(spot);
636
+ const point = new THREE.PointLight(0xccddff, 4, 0, 1);
637
+ point.position.set(0, -3, 1);
638
+ scene.add(point);
639
+
640
+ /* ---- Environment + matcap (glass look) ---- */
641
+ const hdrTex = await new HDRLoader().loadAsync("stand-in studio");
642
+ const pmrem = new THREE.PMREMGenerator(renderer);
643
+ const envRT = pmrem.fromEquirectangular(hdrTex);
644
+ scene.environment = envRT.texture;
645
+ scene.environmentRotation = new THREE.Euler(0, 0.6, 0);
646
+ hdrTex.dispose();
647
+ pmrem.dispose();
648
+
649
+ const matcapTex = await new THREE.TextureLoader().loadAsync(
650
+ "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221280%22%20height%3D%22720%22%20viewBox%3D%220%200%201280%20720%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233d5a80%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2398c1d9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%221280%22%20height%3D%22720%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%221280%22%20height%3D%22720%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22640%22%20cy%3D%22360%22%20r%3D%22210%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2228%22%2F%3E%3Ctext%20x%3D%22640%22%20y%3D%22440%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22240%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EA%3C%2Ftext%3E%3C%2Fsvg%3E",
651
+ );
652
+ matcapTex.colorSpace = THREE.SRGBColorSpace;
653
+ matcapTex.wrapS = matcapTex.wrapT = THREE.RepeatWrapping;
654
+ const mk = 1 / 0.2;
655
+ matcapTex.repeat.set(mk, mk);
656
+ matcapTex.offset.set((1 - mk) * 0.5, (1 - mk) * 0.5);
657
+
658
+ /* Fonts must be resident BEFORE rasterising: shard selection samples
659
+ the text pixels. */
660
+ try {
661
+ await Promise.all([
662
+ document.fonts.load('600 100px "Geist"'),
663
+ document.fonts.load('400 100px "Geist"'),
664
+ ]);
665
+ await document.fonts.ready;
666
+ } catch (e) {
667
+ /* system fallback */
668
+ }
669
+
670
+ /* ---- Headline raster (the ONLY content). Canvas spans the camera
671
+ frustum at the shard plane: world (x,y) -> px via VW/VH. ---- */
672
+ const TEXW = 4096;
673
+ const TEXH = Math.round(TEXW * (VH / VW));
674
+ const headCanvas = document.createElement("canvas");
675
+ headCanvas.width = TEXW;
676
+ headCanvas.height = TEXH;
677
+ const hctx = headCanvas.getContext("2d");
678
+ {
679
+ hctx.clearRect(0, 0, TEXW, TEXH);
680
+ hctx.textAlign = "center";
681
+ hctx.textBaseline = "middle";
682
+ /* Fit headline to 70% of frame width so the blob silhouette + padding stays inside frame. */
683
+ let fpx = 300;
684
+ hctx.font = `600 ${fpx}px "Geist", ui-sans-serif, sans-serif`;
685
+ hctx.letterSpacing = `${-0.035 * fpx}px`;
686
+ const w0 = hctx.measureText(G.vars.headline).width;
687
+ const maxW = TEXW * 0.7;
688
+ if (w0 > maxW) fpx = Math.floor((fpx * maxW) / w0);
689
+ hctx.font = `600 ${fpx}px "Geist", ui-sans-serif, sans-serif`;
690
+ hctx.letterSpacing = `${-0.035 * fpx}px`;
691
+ hctx.fillStyle = "#f4f4f8";
692
+ hctx.fillText(G.vars.headline, TEXW / 2, TEXH / 2);
693
+ G.fontPx = fpx;
694
+ }
695
+ const headTex = new THREE.CanvasTexture(headCanvas);
696
+ headTex.colorSpace = THREE.SRGBColorSpace;
697
+ headTex.anisotropy = 16;
698
+
699
+ /* ---- Fattened mask for cell selection (thick stroke = keep shards
700
+ that hug the letterforms, not just ones dead-centre on strokes) ---- */
701
+ const maskCanvas = document.createElement("canvas");
702
+ maskCanvas.width = 1280;
703
+ maskCanvas.height = Math.round(1280 * (VH / VW));
704
+ const mctx = maskCanvas.getContext("2d", { willReadFrequently: true });
705
+ {
706
+ const ms = maskCanvas.width / TEXW;
707
+ mctx.clearRect(0, 0, maskCanvas.width, maskCanvas.height);
708
+ mctx.textAlign = "center";
709
+ mctx.textBaseline = "middle";
710
+ mctx.font = `600 ${G.fontPx * ms}px "Geist", ui-sans-serif, sans-serif`;
711
+ mctx.letterSpacing = `${-0.035 * G.fontPx * ms}px`;
712
+ mctx.fillStyle = "#fff";
713
+ mctx.strokeStyle = "#fff";
714
+ mctx.lineWidth = G.fontPx * ms * 0.22;
715
+ mctx.lineJoin = "round";
716
+ mctx.strokeText(G.vars.headline, maskCanvas.width / 2, maskCanvas.height / 2);
717
+ mctx.fillText(G.vars.headline, maskCanvas.width / 2, maskCanvas.height / 2);
718
+ }
719
+ /* Setup-only: released the moment the shard set is final (see below). */
720
+ let maskData = mctx.getImageData(0, 0, maskCanvas.width, maskCanvas.height).data;
721
+ let maskW = maskCanvas.width,
722
+ maskH = maskCanvas.height;
723
+ function maskHit(wx, wy) {
724
+ if (!maskData) return false;
725
+ const px = Math.round((wx / VW + 0.5) * (maskW - 1));
726
+ const py = Math.round((0.5 - wy / VH) * (maskH - 1));
727
+ if (px < 0 || py < 0 || px >= maskW || py >= maskH) return false;
728
+ return maskData[(py * maskW + px) * 4 + 3] > 24;
729
+ }
730
+
731
+ /* ---- Headline band in world units (from the raster metrics) ---- */
732
+ {
733
+ hctx.font = `600 ${G.fontPx}px "Geist", ui-sans-serif, sans-serif`;
734
+ hctx.letterSpacing = `${-0.035 * G.fontPx}px`;
735
+ const m = hctx.measureText(G.vars.headline);
736
+ G.bandW = ((m.width + G.fontPx * 0.2) / TEXW) * VW;
737
+ G.bandH =
738
+ ((m.actualBoundingBoxAscent + m.actualBoundingBoxDescent + G.fontPx * 0.34) / TEXH) * VH;
739
+ }
740
+
741
+ /* ---- Organic silhouette: the assembled cluster reads as one shard of
742
+ a larger broken pane, not a rounded rectangle. A seeded harmonic blob
743
+ around the headline defines the region; chaos scales the noise,
744
+ padding sets how far the glass extends past the glyphs. The jagged
745
+ outer edge comes from natural Voronoi cell borders against a ring of
746
+ sacrificial outside sites (never rectangle clipping). ---- */
747
+ const SEED = 11;
748
+ const rnd = gstMulberry32(SEED);
749
+ const HW = G.bandW / 2,
750
+ HH = G.bandH / 2;
751
+
752
+ const PADW = G.bandH * (0.18 + G.vars.padding * 0.85);
753
+ const A0 = HW + PADW,
754
+ B0 = HH + PADW;
755
+ const randBlob = gstMulberry32(SEED * 511 + 3);
756
+ const HARM = [];
757
+ for (let k = 2; k <= 9; k++)
758
+ HARM.push({ k, amp: (randBlob() * 2 - 1) / Math.sqrt(k), ph: randBlob() * Math.PI * 2 });
759
+ function ellipseR(a, b, th) {
760
+ return (a * b) / Math.hypot(b * Math.cos(th), a * Math.sin(th));
761
+ }
762
+ function blobR(th) {
763
+ let n = 0;
764
+ for (const h of HARM) n += h.amp * Math.sin(h.k * th + h.ph);
765
+ /* chaos is deliberately violent at the top end — 1.0 is ~10x the old
766
+ deformation, so the outline can go properly feral. */
767
+ let r = ellipseR(A0, B0, th) * (1 + G.vars.chaos * 2.4 * n);
768
+ /* Floor on the text band RECT (not an ellipse): the whole headline plus
769
+ a padding margin is always inside the blob, so tiling the blob always
770
+ covers the text — at any tile count. */
771
+ const rc = Math.abs(Math.cos(th)),
772
+ rs = Math.abs(Math.sin(th));
773
+ const rectR = Math.min(
774
+ rc > 1e-6 ? (HW + PADW * 0.3) / rc : 1e9,
775
+ rs > 1e-6 ? (HH + PADW * 0.3) / rs : 1e9,
776
+ );
777
+ r = Math.max(r, rectR);
778
+ /* Hard frustum cap: whatever the sliders say, the silhouette never
779
+ spills past the frame and gets viewport-cut. */
780
+ const acx = Math.abs(Math.cos(th)),
781
+ asy = Math.abs(Math.sin(th));
782
+ const lim = Math.min(acx > 1e-6 ? (VW * 0.44) / acx : 1e9, asy > 1e-6 ? (VH * 0.43) / asy : 1e9);
783
+ return Math.min(r, lim);
784
+ }
785
+ function inBlob(x, y) {
786
+ return Math.hypot(x, y) <= blobR(Math.atan2(y, x));
787
+ }
788
+
789
+ /* Domain + density: keep tileCount as shard density over the blob. */
790
+ let blobArea = 0,
791
+ maxRX = 0,
792
+ maxRY = 0;
793
+ for (let i = 0; i < 96; i++) {
794
+ const th = (i / 96) * Math.PI * 2;
795
+ const r = blobR(th);
796
+ blobArea += 0.5 * r * r * ((Math.PI * 2) / 96);
797
+ maxRX = Math.max(maxRX, Math.abs(r * Math.cos(th)));
798
+ maxRY = Math.max(maxRY, Math.abs(r * Math.sin(th)));
799
+ }
800
+ /* tileCount is the exact number of pieces — no density inflation, no
801
+ minimum. tileCount 1 = the whole silhouette as one pane of glass. */
802
+ const N_INT = Math.max(1, Math.min(400, Math.round(G.vars.tileCount)));
803
+ void blobArea;
804
+ const bounds = [-maxRX * 1.3, -maxRY * 1.3, maxRX * 1.3, maxRY * 1.3];
805
+
806
+ /* Size variance: 0 = uniform cells (full Lloyd relaxation, even spread);
807
+ 1 = chaotic — sites cluster around seeded attractors (dense regions =
808
+ small shards, sparse = huge ones) and relaxation is skipped. */
809
+ const VAR = G.vars.sizeVariance;
810
+ const randVar = gstMulberry32(SEED * 977 + 5);
811
+ const centres = [];
812
+ let cGuard = 0;
813
+ while (centres.length < 4 && cGuard++ < 400) {
814
+ const x = (randVar() * 2 - 1) * maxRX;
815
+ const y = (randVar() * 2 - 1) * maxRY;
816
+ if (inBlob(x, y)) centres.push([x, y]);
817
+ }
818
+ function gauss(r) {
819
+ /* Box-Muller from the seeded stream */
820
+ const u = Math.max(1e-9, r()),
821
+ v = r();
822
+ return Math.sqrt(-2 * Math.log(u)) * Math.cos(2 * Math.PI * v);
823
+ }
824
+ let points = [];
825
+ let guard = 0;
826
+ const sigma = Math.max(maxRX, maxRY) * 0.14;
827
+ while (points.length < N_INT && guard++ < N_INT * 200) {
828
+ let x, y;
829
+ if (centres.length && rnd() < 0.85 * VAR) {
830
+ const c = centres[Math.floor(rnd() * centres.length) % centres.length];
831
+ x = c[0] + gauss(rnd) * sigma;
832
+ y = c[1] + gauss(rnd) * sigma;
833
+ } else {
834
+ x = (rnd() * 2 - 1) * maxRX;
835
+ y = (rnd() * 2 - 1) * maxRY;
836
+ }
837
+ if (inBlob(x, y)) points.push([x, y]);
838
+ }
839
+ const interiorCount = points.length;
840
+ /* The blob polygon itself is the outer boundary — every cell is clipped
841
+ against it, so the union of pieces IS the silhouette at any count. */
842
+ /* The silhouette polygon is COARSE and jittered on purpose: broken
843
+ glass has straight facet edges meeting at sharp vertices. A smooth
844
+ densely-sampled outline gave the boundary shards melted, scooped
845
+ edges — nothing like the experiment's fragments. */
846
+ const randEdge = gstMulberry32(SEED * 733 + 9);
847
+ const BLOB_VERTS = 22;
848
+ const blobPoly = [];
849
+ for (let j = 0; j < BLOB_VERTS; j++) {
850
+ const th = ((j + (randEdge() - 0.5) * 0.72) / BLOB_VERTS) * Math.PI * 2;
851
+ const r = blobR(th) * (1 + (randEdge() - 0.5) * 0.09);
852
+ blobPoly.push([r * Math.cos(th), r * Math.sin(th)]);
853
+ }
854
+ const RELAX = Math.round(3 * (1 - VAR));
855
+ for (let iter = 0; iter < RELAX; iter++) {
856
+ const vorR = d3.Delaunay.from(points).voronoi(bounds);
857
+ points = points.map((p, idx) => {
858
+ const cell = vorR.cellPolygon(idx);
859
+ if (!cell || cell.length < 3) return p;
860
+ let cx = 0,
861
+ cy = 0;
862
+ for (const pt of cell) {
863
+ cx += pt[0];
864
+ cy += pt[1];
865
+ }
866
+ return [cx / cell.length, cy / cell.length];
867
+ });
868
+ }
869
+
870
+ /* Polygon inset (seams between shards). */
871
+ function lineIntersect(p1, p2, p3, p4) {
872
+ const d = (p1[0] - p2[0]) * (p3[1] - p4[1]) - (p1[1] - p2[1]) * (p3[0] - p4[0]);
873
+ if (Math.abs(d) < 1e-9) return null;
874
+ const t = ((p1[0] - p3[0]) * (p3[1] - p4[1]) - (p1[1] - p3[1]) * (p3[0] - p4[0])) / d;
875
+ return [p1[0] + t * (p2[0] - p1[0]), p1[1] + t * (p2[1] - p1[1])];
876
+ }
877
+ function insetPolygon(poly, inset) {
878
+ if (inset <= 0) return poly;
879
+ const n = poly.length;
880
+ if (n < 3) return null;
881
+ const edges = [];
882
+ for (let i = 0; i < n; i++) {
883
+ const a = poly[i],
884
+ b = poly[(i + 1) % n];
885
+ const dx = b[0] - a[0],
886
+ dy = b[1] - a[1];
887
+ const len = Math.hypot(dx, dy);
888
+ if (len < 1e-9) continue;
889
+ const nx = -dy / len,
890
+ ny = dx / len;
891
+ edges.push({
892
+ p1: [a[0] + nx * inset, a[1] + ny * inset],
893
+ p2: [b[0] + nx * inset, b[1] + ny * inset],
894
+ });
895
+ }
896
+ const m = edges.length;
897
+ if (m < 3) return null;
898
+ const out = [];
899
+ for (let k = 0; k < m; k++) {
900
+ const e1 = edges[(k + m - 1) % m],
901
+ e2 = edges[k];
902
+ out.push(lineIntersect(e1.p1, e1.p2, e2.p1, e2.p2) || e2.p1);
903
+ }
904
+ let area = 0;
905
+ for (let q = 0; q < out.length; q++) {
906
+ const [x1, y1] = out[q];
907
+ const [x2, y2] = out[(q + 1) % out.length];
908
+ area += x1 * y2 - x2 * y1;
909
+ }
910
+ return Math.abs(area) < 1e-6 ? null : out;
911
+ }
912
+
913
+ function pointInPoly(x, y, poly) {
914
+ let inside = false;
915
+ for (let i = 0, j = poly.length - 1; i < poly.length; j = i++) {
916
+ const [xi, yi] = poly[i],
917
+ [xj, yj] = poly[j];
918
+ if (yi > y !== yj > y && x < ((xj - xi) * (y - yi)) / (yj - yi) + xi) inside = !inside;
919
+ }
920
+ return inside;
921
+ }
922
+ function cellTouchesText(poly) {
923
+ let minX = 1e9,
924
+ minY = 1e9,
925
+ maxX = -1e9,
926
+ maxY = -1e9;
927
+ for (const [x, y] of poly) {
928
+ if (x < minX) minX = x;
929
+ if (x > maxX) maxX = x;
930
+ if (y < minY) minY = y;
931
+ if (y > maxY) maxY = y;
932
+ }
933
+ const N = 7;
934
+ for (let i = 0; i < N; i++) {
935
+ for (let j = 0; j < N; j++) {
936
+ const x = minX + ((i + 0.5) / N) * (maxX - minX);
937
+ const y = minY + ((j + 0.5) / N) * (maxY - minY);
938
+ if (pointInPoly(x, y, poly) && maskHit(x, y)) return true;
939
+ }
940
+ }
941
+ return false;
942
+ }
943
+
944
+ /* ---- Cells -> shard descriptors (seeded choreography per shard) ---- */
945
+ const GAP = Math.max(0, G.vars.gap);
946
+ const CORNER_R = 0.01 + G.vars.roundness * 0.16;
947
+ const PANE_DEPTH = 0.09;
948
+
949
+ function polyArea2(poly) {
950
+ let a = 0;
951
+ for (let i = 0; i < poly.length; i++) {
952
+ const [x1, y1] = poly[i],
953
+ [x2, y2] = poly[(i + 1) % poly.length];
954
+ a += x1 * y2 - x2 * y1;
955
+ }
956
+ return a / 2;
957
+ }
958
+ /* Sutherland-Hodgman: clip any polygon against a CONVEX Voronoi cell. */
959
+ function clipToConvex(subject, clip) {
960
+ const ccw = polyArea2(clip) > 0 ? 1 : -1;
961
+ let out = subject;
962
+ for (let i = 0; i < clip.length && out.length; i++) {
963
+ const a = clip[i],
964
+ b = clip[(i + 1) % clip.length];
965
+ const input = out;
966
+ out = [];
967
+ const inside = (pt) =>
968
+ ccw * ((b[0] - a[0]) * (pt[1] - a[1]) - (b[1] - a[1]) * (pt[0] - a[0])) >= -1e-9;
969
+ for (let j = 0; j < input.length; j++) {
970
+ const P = input[j],
971
+ Q = input[(j + 1) % input.length];
972
+ const Pin = inside(P),
973
+ Qin = inside(Q);
974
+ if (Pin) {
975
+ out.push(P);
976
+ if (!Qin) out.push(lineIntersect(P, Q, a, b) || Q);
977
+ } else if (Qin) {
978
+ out.push(lineIntersect(P, Q, a, b) || P);
979
+ }
980
+ }
981
+ }
982
+ return out;
983
+ }
984
+ /* Merge near-collinear boundary samples so corner rounding keeps scale. */
985
+ function simplifyPoly(poly, angTol) {
986
+ let out = poly;
987
+ for (let pass = 0; pass < 3 && out.length > 6; pass++) {
988
+ const next = [];
989
+ let dropped = false;
990
+ for (let i = 0; i < out.length; i++) {
991
+ const A = out[(i + out.length - 1) % out.length];
992
+ const B = out[i];
993
+ const C = out[(i + 1) % out.length];
994
+ const v1x = B[0] - A[0],
995
+ v1y = B[1] - A[1];
996
+ const v2x = C[0] - B[0],
997
+ v2y = C[1] - B[1];
998
+ const ang = Math.abs(Math.atan2(v1x * v2y - v1y * v2x, v1x * v2x + v1y * v2y));
999
+ if (ang < angTol && !dropped && out.length - 1 > 5) {
1000
+ dropped = true;
1001
+ continue;
1002
+ }
1003
+ dropped = false;
1004
+ next.push(B);
1005
+ }
1006
+ if (next.length === out.length) break;
1007
+ out = next;
1008
+ }
1009
+ return out;
1010
+ }
1011
+
1012
+ const vor = d3.Delaunay.from(points).voronoi(bounds);
1013
+ /* ---- polygon hygiene: the blob clip can emit degenerate results
1014
+ (duplicate points, collinear runs, self-intersecting "bowties").
1015
+ Those extrude into folded shards with broken reflections, so every
1016
+ piece is sanitised and must be a simple polygon before it becomes
1017
+ geometry. ---- */
1018
+ function sanitizePoly(poly) {
1019
+ if (!poly || poly.length < 3) return null;
1020
+ let out = [];
1021
+ for (const pt of poly) {
1022
+ const last = out[out.length - 1];
1023
+ if (last && Math.hypot(pt[0] - last[0], pt[1] - last[1]) < 1e-4) continue;
1024
+ out.push(pt);
1025
+ }
1026
+ while (
1027
+ out.length > 1 &&
1028
+ Math.hypot(out[0][0] - out[out.length - 1][0], out[0][1] - out[out.length - 1][1]) < 1e-4
1029
+ )
1030
+ out.pop();
1031
+ if (out.length < 3) return null;
1032
+ /* drop collinear vertices */
1033
+ const clean = [];
1034
+ for (let i = 0; i < out.length; i++) {
1035
+ const a = out[(i + out.length - 1) % out.length];
1036
+ const b = out[i];
1037
+ const c = out[(i + 1) % out.length];
1038
+ const cr = (b[0] - a[0]) * (c[1] - b[1]) - (b[1] - a[1]) * (c[0] - b[0]);
1039
+ const l1 = Math.hypot(b[0] - a[0], b[1] - a[1]);
1040
+ const l2 = Math.hypot(c[0] - b[0], c[1] - b[1]);
1041
+ if (Math.abs(cr) < 1e-6 * Math.max(1e-6, l1 * l2)) continue;
1042
+ clean.push(b);
1043
+ }
1044
+ if (clean.length < 3) return null;
1045
+ /* enforce CCW (the source inset assumes it) */
1046
+ if (polyArea2(clean) < 0) clean.reverse();
1047
+ return clean;
1048
+ }
1049
+ function segsIntersect(a, b, c, d) {
1050
+ const o = (p, q, r) => Math.sign((q[0] - p[0]) * (r[1] - p[1]) - (q[1] - p[1]) * (r[0] - p[0]));
1051
+ const o1 = o(a, b, c),
1052
+ o2 = o(a, b, d),
1053
+ o3 = o(c, d, a),
1054
+ o4 = o(c, d, b);
1055
+ return o1 !== o2 && o3 !== o4 && o1 !== 0 && o2 !== 0 && o3 !== 0 && o4 !== 0;
1056
+ }
1057
+ function isSimplePolygon(poly) {
1058
+ const n = poly.length;
1059
+ for (let i = 0; i < n; i++) {
1060
+ const a = poly[i],
1061
+ b = poly[(i + 1) % n];
1062
+ for (let j = i + 1; j < n; j++) {
1063
+ if (j === i || (j + 1) % n === i || j === (i + 1) % n) continue;
1064
+ const c = poly[j],
1065
+ d = poly[(j + 1) % n];
1066
+ if (segsIntersect(a, b, c, d)) return false;
1067
+ }
1068
+ }
1069
+ return true;
1070
+ }
1071
+ function goodPoly(poly, minArea) {
1072
+ const sp = sanitizePoly(poly);
1073
+ if (!sp) return null;
1074
+ if (polyArea2(sp) < minArea) return null;
1075
+ if (!isSimplePolygon(sp)) return null;
1076
+ return sp;
1077
+ }
1078
+
1079
+ const randFly = gstMulberry32(SEED * 31337 + 7);
1080
+ const randTilt = gstMulberry32(SEED * 9973 + 1);
1081
+ let cells = [];
1082
+ let globalMinEdge = Infinity;
1083
+ for (let ci = 0; ci < interiorCount; ci++) {
1084
+ const cellPoly = vor.cellPolygon(ci);
1085
+ if (!cellPoly) continue;
1086
+ const cell = cellPoly.slice(0, -1);
1087
+ /* The piece is the blob ∩ this cell: pieces always tile the whole
1088
+ silhouette, so the text is always fully covered — tileCount only
1089
+ decides how many pieces share the job. */
1090
+ let raw = goodPoly(simplifyPoly(clipToConvex(blobPoly, cell), 0.14), 3e-4);
1091
+ if (!raw) {
1092
+ /* Degenerate clip. A text-bearing cell must not vanish (that is a
1093
+ hole in a letter) — fall back to the unclipped Voronoi cell;
1094
+ a non-text sliver is simply dropped. */
1095
+ const fallback = goodPoly(cell, 3e-4);
1096
+ if (!fallback || !cellTouchesText(fallback)) continue;
1097
+ raw = fallback;
1098
+ }
1099
+ let off = insetPolygon(raw, GAP / 2);
1100
+ off = (off && goodPoly(off, 2e-4)) || raw;
1101
+ let cellMinEdge = Infinity;
1102
+ for (let ei = 0; ei < off.length; ei++) {
1103
+ const pa = off[ei],
1104
+ pb = off[(ei + 1) % off.length];
1105
+ const el = Math.hypot(pb[0] - pa[0], pb[1] - pa[1]);
1106
+ if (el > 1e-6 && el < cellMinEdge) cellMinEdge = el;
1107
+ }
1108
+ let ccx = 0,
1109
+ ccy = 0;
1110
+ for (const pt of off) {
1111
+ ccx += pt[0];
1112
+ ccy += pt[1];
1113
+ }
1114
+ ccx /= off.length;
1115
+ ccy /= off.length;
1116
+ /* Per-corner clamping happens inside buildPieceGeometry (each corner
1117
+ is limited by its own adjacent edges), so the radius is passed
1118
+ through — a single short edge no longer disables rounding for the
1119
+ whole shard. */
1120
+ cells.push({
1121
+ cx: ccx,
1122
+ cy: ccy,
1123
+ radius: CORNER_R,
1124
+ local: off.map((pt) => [pt[0] - ccx, pt[1] - ccy]),
1125
+ });
1126
+ void cellMinEdge;
1127
+ }
1128
+ void globalMinEdge;
1129
+
1130
+ /* The fattened text mask has done its only job (cell selection). Drop
1131
+ the 1280x720 RGBA readback and its backing canvas now instead of
1132
+ keeping ~7 MB alive for the whole life of the instance. */
1133
+ maskData = null;
1134
+ maskCanvas.width = maskCanvas.height = 1;
1135
+
1136
+ const shards = cells.map((c) => {
1137
+ const sign = c.cx >= 0 ? 1 : -1;
1138
+ /* Direct fly coordinates: sideDist is how far to the side (world
1139
+ units, 0 = no sideways motion at all), zDist is the z coordinate
1140
+ the shards come from (negative = behind the pane). Both jittered
1141
+ slightly per shard so the swarm doesn't move as one block. */
1142
+ const inOff = [
1143
+ sign * G.vars.sideDist * (0.7 + randFly() * 0.6),
1144
+ G.vars.sideDist === 0 && G.vars.zDist === 0 ? 0 : (randFly() - 0.5) * 1.7,
1145
+ G.vars.zDist * (0.85 + randFly() * 0.3),
1146
+ ];
1147
+ const inSpin = [
1148
+ (randFly() - 0.5) * Math.PI * 1.0 * G.vars.flyInRotation,
1149
+ (randFly() - 0.5) * Math.PI * 1.3 * G.vars.flyInRotation,
1150
+ (randFly() - 0.5) * Math.PI * 0.5 * G.vars.flyInRotation,
1151
+ ];
1152
+ /* Fly-out: mirror of the fly-in — back out the same side and back
1153
+ into the same depth, faster, spinning harder. */
1154
+ const outOff = [
1155
+ sign * G.vars.sideDist * (0.8 + randFly() * 0.7),
1156
+ G.vars.sideDist === 0 && G.vars.zOut === 0 ? 0 : (randFly() - 0.5) * 2.2,
1157
+ G.vars.zOut * (0.85 + randFly() * 0.3),
1158
+ ];
1159
+ const outSpin = [
1160
+ (randFly() - 0.5) * Math.PI * 1.6 * G.vars.flyOutRotation,
1161
+ (randFly() - 0.5) * Math.PI * 2.0 * G.vars.flyOutRotation,
1162
+ (randFly() - 0.5) * Math.PI * 0.8 * G.vars.flyOutRotation,
1163
+ ];
1164
+ return {
1165
+ cx: c.cx,
1166
+ cy: c.cy,
1167
+ local: c.local,
1168
+ radius: c.radius,
1169
+ baseRot: [(randTilt() - 0.5) * 0.08, (randTilt() - 0.5) * 0.08, (randTilt() - 0.5) * 0.03],
1170
+ wobPhase: randTilt() * Math.PI * 2,
1171
+ wobFreq: 0.45 + randTilt() * 0.5,
1172
+ inOff,
1173
+ inSpin,
1174
+ outOff,
1175
+ outSpin,
1176
+ rIn: randFly(),
1177
+ rOut: randFly(),
1178
+ };
1179
+ });
1180
+ const n1 = Math.max(1, shards.length - 1);
1181
+ /* IN: centre shards knit first. OUT: edges peel first. */
1182
+ const inRank = shards.map((s, i) => [Math.abs(s.cx), i]).sort((a, b) => a[0] - b[0]);
1183
+ const STG = G.vars.stagger;
1184
+ inRank.forEach((pair, rank) => {
1185
+ const s = shards[pair[1]];
1186
+ s.inDelay = STG * 0.85 * (rank / n1) + s.rIn * 0.05 * STG;
1187
+ /* The delay is bounded below 0.9, so at least 10% remains. A 0.12
1188
+ duration floor pushed the last shards past tin=1 at high stagger,
1189
+ leaving residual flight rotation throughout the hold and exit. */
1190
+ s.inDur = 1 - s.inDelay;
1191
+ });
1192
+ const outRank = shards.map((s, i) => [Math.abs(s.cx), i]).sort((a, b) => b[0] - a[0]);
1193
+ outRank.forEach((pair, rank) => {
1194
+ const s = shards[pair[1]];
1195
+ s.outDelay = STG * 0.85 * (rank / n1) + s.rOut * 0.05 * STG;
1196
+ s.outDur = Math.max(0.12, 1 - s.outDelay);
1197
+ });
1198
+
1199
+ /* ---- Materials: iridescent glass carrying its slice of the headline
1200
+ (planar UVs + emissive map — no Chrome HTML-in-canvas API) ---- */
1201
+ function makeIridescenceThicknessMap(size) {
1202
+ const c = document.createElement("canvas");
1203
+ c.width = size;
1204
+ c.height = size;
1205
+ const ctx = c.getContext("2d");
1206
+ const grad = ctx.createLinearGradient(0, 0, size, size);
1207
+ grad.addColorStop(0.0, "#202020");
1208
+ grad.addColorStop(0.5, "#a0a0a0");
1209
+ grad.addColorStop(1.0, "#f0f0f0");
1210
+ ctx.fillStyle = grad;
1211
+ ctx.fillRect(0, 0, size, size);
1212
+ const radial = ctx.createRadialGradient(
1213
+ size * 0.3,
1214
+ size * 0.4,
1215
+ 0,
1216
+ size * 0.3,
1217
+ size * 0.4,
1218
+ size * 0.9,
1219
+ );
1220
+ radial.addColorStop(0, "rgba(255,255,255,0.4)");
1221
+ radial.addColorStop(1, "rgba(0,0,0,0)");
1222
+ ctx.fillStyle = radial;
1223
+ ctx.fillRect(0, 0, size, size);
1224
+ const tex = new THREE.CanvasTexture(c);
1225
+ tex.wrapS = tex.wrapT = THREE.RepeatWrapping;
1226
+ return tex;
1227
+ }
1228
+
1229
+ /* Flat dark transmission target, painted before all shards WITHOUT
1230
+ occupying depth. Writing depth here hid every shard behind z=-3.5:
1231
+ neither increasing fog distance nor disabling fog could reveal it.
1232
+ Keep the original shading/color, including in the transmission pass. */
1233
+ {
1234
+ const d = CAM_Z + 3.5;
1235
+ const bh2 = 2 * d * Math.tan((FOV * Math.PI) / 360);
1236
+ const back = new THREE.Mesh(
1237
+ new THREE.PlaneGeometry(bh2 * (1920 / 1080) * 1.05, bh2 * 1.05),
1238
+ new THREE.MeshBasicMaterial({ color: 0x0a0a0f, depthWrite: false, depthTest: false }),
1239
+ );
1240
+ back.position.z = -3.5;
1241
+ back.renderOrder = -1;
1242
+ scene.add(back);
1243
+ }
1244
+
1245
+ /* Manual per-FRAGMENT fog (three's scene.fog is bypassed entirely):
1246
+ each fragment's own view depth drives an exp2 mix toward the
1247
+ background, starting just behind the seated plane — so a tumbling
1248
+ shard's near edge resolves before its far edge, like flying through
1249
+ real fog. Applied to the glass shading and, as a pure fade, to the
1250
+ additive matcap sheen (otherwise the sheen ghosts through the fog). */
1251
+ const FOG_START = CAM_Z - PANE_Z + 0.28;
1252
+ const FOG_RHO = G.vars.fog > 0 ? 4.6 / Math.max(2, G.vars.fog) : 0.0;
1253
+
1254
+ /* The headline belongs on the FRONT cap only — not mirrored on the back
1255
+ cap, not smeared down the side walls. Masked by the object-space
1256
+ normal. The same patch pushes the fog start just past the seated
1257
+ plane so resting shards are fog-free. */
1258
+ function addManualFog(shader, additive) {
1259
+ shader.uniforms.uGstFogStart = { value: FOG_START };
1260
+ shader.uniforms.uGstFogRho = { value: FOG_RHO };
1261
+ shader.uniforms.uGstFogColor = { value: new THREE.Color(0x0a0a0f) };
1262
+ shader.vertexShader = shader.vertexShader
1263
+ .replace("#include <common>", "#include <common>\nvarying float vGstDep;")
1264
+ .replace("#include <project_vertex>", "#include <project_vertex>\nvGstDep = -mvPosition.z;");
1265
+ shader.fragmentShader = shader.fragmentShader
1266
+ .replace(
1267
+ "#include <common>",
1268
+ "#include <common>\nvarying float vGstDep;\nuniform float uGstFogStart;\nuniform float uGstFogRho;\nuniform vec3 uGstFogColor;",
1269
+ )
1270
+ .replace(
1271
+ "#include <dithering_fragment>",
1272
+ (additive
1273
+ ? "gl_FragColor.rgb *= exp(-pow(max(0.0, vGstDep - uGstFogStart) * uGstFogRho, 2.0));\n"
1274
+ : "gl_FragColor.rgb = mix(gl_FragColor.rgb, uGstFogColor, 1.0 - exp(-pow(max(0.0, vGstDep - uGstFogStart) * uGstFogRho, 2.0)));\n") +
1275
+ "#include <dithering_fragment>",
1276
+ );
1277
+ }
1278
+ function patchGlass(shader) {
1279
+ shader.vertexShader = shader.vertexShader
1280
+ .replace("#include <common>", "#include <common>\nvarying float vNzObj;")
1281
+ .replace("#include <beginnormal_vertex>", "#include <beginnormal_vertex>\nvNzObj = normal.z;");
1282
+ shader.fragmentShader = shader.fragmentShader
1283
+ .replace("#include <common>", "#include <common>\nvarying float vNzObj;")
1284
+ .replace(
1285
+ "#include <emissivemap_fragment>",
1286
+ "#include <emissivemap_fragment>\ntotalEmissiveRadiance *= smoothstep(0.5, 0.78, vNzObj);",
1287
+ );
1288
+ addManualFog(shader, false);
1289
+ }
1290
+
1291
+ const glassMat = new THREE.MeshPhysicalMaterial({
1292
+ color: 0xffffff,
1293
+ transmission: 1,
1294
+ thickness: st.thickness,
1295
+ ior: st.ior,
1296
+ dispersion: 0.24,
1297
+ roughness: st.roughness,
1298
+ metalness: 0,
1299
+ clearcoat: 1,
1300
+ clearcoatRoughness: 0.59,
1301
+ specularIntensity: 1,
1302
+ specularColor: 0xffffff,
1303
+ attenuationDistance: 4.7,
1304
+ attenuationColor: 0xffffff,
1305
+ envMapIntensity: 1.1,
1306
+ iridescence: 1,
1307
+ iridescenceIOR: 2.34,
1308
+ iridescenceThicknessRange: [80, 500],
1309
+ iridescenceThicknessMap: makeIridescenceThicknessMap(256),
1310
+ side: THREE.DoubleSide,
1311
+ emissive: 0xffffff,
1312
+ emissiveMap: headTex,
1313
+ emissiveIntensity: 0.95,
1314
+ });
1315
+ glassMat.onBeforeCompile = patchGlass;
1316
+ const matcapMat = new THREE.MeshMatcapMaterial({
1317
+ fog: false,
1318
+ matcap: matcapTex,
1319
+ transparent: true,
1320
+ opacity: 0.11,
1321
+ blending: THREE.AdditiveBlending,
1322
+ depthWrite: false,
1323
+ side: THREE.DoubleSide,
1324
+ });
1325
+ matcapMat.onBeforeCompile = (sh) => addManualFog(sh, true);
1326
+
1327
+ /* ---- Shard geometry (rounded Voronoi cells, extruded + beveled) ---- */
1328
+ function softMin3(a, b, c, k) {
1329
+ if (k <= 0) return Math.min(a, b, c);
1330
+ const m = Math.min(a, b, c);
1331
+ return m - k * Math.log(Math.exp(-(a - m) / k) + Math.exp(-(b - m) / k) + Math.exp(-(c - m) / k));
1332
+ }
1333
+ function buildPieceGeometry(
1334
+ poly,
1335
+ cornerRadius,
1336
+ depth,
1337
+ clampSmoothness,
1338
+ smoothChamferDist,
1339
+ smoothChamferAngle,
1340
+ ) {
1341
+ const shape = new THREE.Shape();
1342
+ const n = poly.length;
1343
+ for (let i = 0; i < n; i++) {
1344
+ const prev = poly[(i + n - 1) % n];
1345
+ const curr = poly[i];
1346
+ const next = poly[(i + 1) % n];
1347
+ const v1x = curr[0] - prev[0],
1348
+ v1y = curr[1] - prev[1];
1349
+ const v2x = next[0] - curr[0],
1350
+ v2y = next[1] - curr[1];
1351
+ const len1 = Math.hypot(v1x, v1y),
1352
+ len2 = Math.hypot(v2x, v2y);
1353
+ if (len1 < 1e-6 || len2 < 1e-6) continue;
1354
+ const u1x = v1x / len1,
1355
+ u1y = v1y / len1;
1356
+ const u2x = v2x / len2,
1357
+ u2y = v2y / len2;
1358
+ const cosI = Math.max(-1, Math.min(1, -u1x * u2x - u1y * u2y));
1359
+ const sinI = Math.sqrt(Math.max(0, 1 - cosI * cosI));
1360
+ const oneCosI = 1 + cosI;
1361
+ const tanHalf = oneCosI > 1e-6 ? sinI / oneCosI : 0;
1362
+ let d = 0;
1363
+ if (tanHalf > 1e-4) {
1364
+ const dRaw = cornerRadius / tanHalf;
1365
+ const lim1 = len1 * 0.49,
1366
+ lim2 = len2 * 0.49;
1367
+ let dTarget = dRaw;
1368
+ if (smoothChamferDist > 0 && smoothChamferAngle > 0) {
1369
+ const interior = Math.acos(cosI);
1370
+ if (interior < smoothChamferAngle) {
1371
+ const tLin = Math.min(1, (smoothChamferAngle - interior) / smoothChamferAngle);
1372
+ const tEased = tLin * tLin * (3 - 2 * tLin);
1373
+ dTarget = Math.max(dRaw, smoothChamferDist * tEased);
1374
+ }
1375
+ }
1376
+ d = Math.max(0, softMin3(dTarget, lim1, lim2, clampSmoothness));
1377
+ }
1378
+ const startX = curr[0] - u1x * d,
1379
+ startY = curr[1] - u1y * d;
1380
+ const endX = curr[0] + u2x * d,
1381
+ endY = curr[1] + u2y * d;
1382
+ if (i === 0) shape.moveTo(startX, startY);
1383
+ else shape.lineTo(startX, startY);
1384
+ if (d > 1e-4) {
1385
+ const kappa = 0.5523;
1386
+ shape.bezierCurveTo(
1387
+ startX + u1x * d * kappa,
1388
+ startY + u1y * d * kappa,
1389
+ endX - u2x * d * kappa,
1390
+ endY - u2y * d * kappa,
1391
+ endX,
1392
+ endY,
1393
+ );
1394
+ } else {
1395
+ shape.lineTo(curr[0], curr[1]);
1396
+ }
1397
+ }
1398
+ shape.closePath();
1399
+ /* Source: bevelThickness = bevelSize = depth*0.25,
1400
+ bevelSegments 6, curveSegments 24. The vars scale those constants:
1401
+ bevel 0.35 and meshSmooth 0.6 reproduce the source exactly, and a
1402
+ near-zero bevel disables bevelling outright — clean flat-sided
1403
+ tiles instead of a micro-sliver bevel. */
1404
+ const bev = depth * G.vars.bevel * 0.714;
1405
+ const bevelOn = G.vars.bevel > 0.02;
1406
+ return new THREE.ExtrudeGeometry(shape, {
1407
+ depth,
1408
+ bevelEnabled: bevelOn,
1409
+ bevelThickness: bevelOn ? bev : 0,
1410
+ bevelSize: bevelOn ? bev : 0,
1411
+ bevelSegments: Math.max(1, Math.round((G.vars.meshSmooth / 0.6) * 6)),
1412
+ curveSegments: Math.max(4, Math.round((G.vars.meshSmooth / 0.6) * 24)),
1413
+ });
1414
+ }
1415
+
1416
+ const paneGroup = new THREE.Group();
1417
+ paneGroup.position.z = PANE_Z;
1418
+ scene.add(paneGroup);
1419
+
1420
+ const chamferAngle = (28 * Math.PI) / 180;
1421
+ const shardGroups = [];
1422
+ for (const sh of shards) {
1423
+ const chamferDist = Math.max(GAP / 2, sh.radius * 1.5);
1424
+ const geom = buildPieceGeometry(sh.local, sh.radius, PANE_DEPTH, 0, chamferDist, chamferAngle);
1425
+ geom.translate(0, 0, -PANE_DEPTH / 2);
1426
+ /* Planar frustum-space UVs: each shard samples its slice of the
1427
+ headline raster, so the assembled shards read as the text. */
1428
+ const pos = geom.attributes.position;
1429
+ const uvs = new Float32Array(pos.count * 2);
1430
+ for (let v = 0; v < pos.count; v++) {
1431
+ uvs[v * 2] = (pos.getX(v) + sh.cx) / VW + 0.5;
1432
+ uvs[v * 2 + 1] = (pos.getY(v) + sh.cy) / VH + 0.5;
1433
+ }
1434
+ geom.setAttribute("uv", new THREE.BufferAttribute(uvs, 2));
1435
+ const grp = new THREE.Group();
1436
+ grp.add(new THREE.Mesh(geom, glassMat));
1437
+ grp.add(new THREE.Mesh(geom, matcapMat));
1438
+ grp.position.set(sh.cx, sh.cy, 0);
1439
+ paneGroup.add(grp);
1440
+ shardGroups.push(grp);
1441
+ }
1442
+
1443
+ /* ---- Closed-form easings for per-shard local progress ---- */
1444
+ /* Position-only power ease-out — never overshoots. Rotation has its
1445
+ own gentle curve below, but shares position's local flight clock. */
1446
+ function powOut(x) {
1447
+ return 1 - Math.pow(1 - x, G.vars.easePow);
1448
+ }
1449
+ function clamp01(x) {
1450
+ return x < 0 ? 0 : x > 1 ? 1 : x;
1451
+ }
1452
+
1453
+ function renderScene() {
1454
+ const t = st.time;
1455
+ glassMat.thickness = st.thickness;
1456
+ glassMat.roughness = st.roughness;
1457
+ glassMat.ior = st.ior;
1458
+
1459
+ /* Whole-cluster idle drift (the "all rotate slightly" hold motion). */
1460
+ paneGroup.rotation.x = 0.02 * Math.sin(t * 0.5 + 0.7);
1461
+ paneGroup.rotation.y = 0.045 * Math.sin(t * 0.33 + 2.1);
1462
+ paneGroup.position.z = PANE_Z + 0.02 * Math.sin(t * 0.5);
1463
+ scene.environmentRotation.y = 0.6 + t * 0.04;
1464
+
1465
+ for (let i = 0; i < shards.length; i++) {
1466
+ const sh = shards[i];
1467
+ const grp = shardGroups[i];
1468
+
1469
+ /* Local fly-in progress from the master, staggered + eased. */
1470
+ const ui = clamp01((st.tin - sh.inDelay) / sh.inDur);
1471
+ const p = 1 - powOut(ui); /* 1 = out at edge, 0 = seated */
1472
+ /* Depth travels near-linearly: with the full ease-out applied to z
1473
+ the shard crossed the whole fog zone in the first frames and
1474
+ arrived already clear — the fog had nothing to act on. */
1475
+ const pz = 1 - (1 - Math.pow(1 - ui, Math.max(1.15, G.vars.easePow * 0.38)));
1476
+ /* Keep tumbling through the FULL staggered flight window. Using p
1477
+ here consumed 99.9% of the spin halfway through an easePow=10
1478
+ entrance, long before depth arrived. A gentle, seeded ease-out
1479
+ retains visible rotation late in transit and reaches exactly
1480
+ zero only at this shard's position-arrival (ui=1), with zero
1481
+ terminal angular velocity. Reuse rIn so the exit's seeded random
1482
+ stream, all positions, and the arrival schedule stay unchanged.
1483
+ flyInRotation remains a linear amplitude, including true zero. */
1484
+ const pr = Math.pow(1 - ui, 1.15 + sh.rIn * 0.2);
1485
+ const uo = clamp01((st.tout - sh.outDelay) / sh.outDur);
1486
+ const q = uo * uo; /* power2.in departure */
1487
+ const qz = Math.pow(uo, 1.35); /* gentler depth exit too */
1488
+
1489
+ let x = sh.cx,
1490
+ y = sh.cy,
1491
+ z = 0;
1492
+ let rx = sh.baseRot[0],
1493
+ ry = sh.baseRot[1],
1494
+ rz = sh.baseRot[2];
1495
+
1496
+ if (p !== 0 || pz !== 0 || pr !== 0) {
1497
+ x += sh.inOff[0] * p;
1498
+ y += sh.inOff[1] * p;
1499
+ z += sh.inOff[2] * pz;
1500
+ rx += sh.inSpin[0] * pr;
1501
+ ry += sh.inSpin[1] * pr;
1502
+ rz += sh.inSpin[2] * pr;
1503
+ }
1504
+ /* Idle wobble: only when seated, fades in as p settles, out as q rises. */
1505
+ const seated = Math.max(0, 1 - Math.abs(p) * 3) * Math.max(0, 1 - q * 3);
1506
+ if (seated > 0.001) {
1507
+ const w = sh.wobFreq;
1508
+ rx += 0.03 * Math.sin(t * w + sh.wobPhase) * seated;
1509
+ ry += 0.045 * Math.sin(t * w * 0.83 + sh.wobPhase * 2.1) * seated;
1510
+ rz += 0.012 * Math.sin(t * w * 1.31 + sh.wobPhase * 0.7) * seated;
1511
+ z += 0.018 * Math.sin(t * 0.9 + sh.wobPhase) * seated;
1512
+ }
1513
+ if (uo > 0) {
1514
+ x += sh.outOff[0] * q;
1515
+ y += sh.outOff[1] * q;
1516
+ z += sh.outOff[2] * qz;
1517
+ rx += sh.outSpin[0] * q;
1518
+ ry += sh.outSpin[1] * q;
1519
+ rz += sh.outSpin[2] * q;
1520
+ }
1521
+ grp.position.set(x, y, z);
1522
+ grp.rotation.set(rx, ry, rz);
1523
+ }
1524
+
1525
+ renderer.render(scene, camera);
1526
+ }
1527
+
1528
+ window.__gstRender = renderScene;
1529
+ renderScene();
1530
+
1531
+ /* ---- Teardown ------------------------------------------------------
1532
+ Nothing above this line was ever released. Every host that mounts
1533
+ this block does so in a document it later throws away (Studio detaches
1534
+ its preview iframes; the gallery keeps one per tile), and until the
1535
+ collector happens to run, a discarded instance still owns its WebGL
1536
+ context, its render targets, its 4096x2304 headline raster and 34
1537
+ extruded shard geometries. Release all of it the moment the document
1538
+ goes away, and expose the same call so a host can do it on demand.
1539
+
1540
+ `pagehide` is the reliable frame-detach signal in current Chrome;
1541
+ `unload` is kept as a fallback for older engines. Deliberately NOT
1542
+ wired to `visibilitychange` — a backgrounded Studio tab must come
1543
+ back with a working stage. */
1544
+ let gstDisposed = false;
1545
+ function gstDispose(event) {
1546
+ /* A bfcache'd page is coming back with this canvas still on screen —
1547
+ tearing the context down here would restore a dead stage. */
1548
+ if (event && event.persisted === true) return;
1549
+ if (gstDisposed) return;
1550
+ gstDisposed = true;
1551
+ try {
1552
+ window.removeEventListener("pagehide", gstDispose);
1553
+ window.removeEventListener("unload", gstDispose);
1554
+ if (window.__gstRender === renderScene) window.__gstRender = null;
1555
+ if (window.__gstInstance && window.__gstInstance.dispose === gstDispose)
1556
+ window.__gstInstance = null;
1557
+
1558
+ scene.traverse(function (obj) {
1559
+ if (obj.geometry) obj.geometry.dispose();
1560
+ const mats = Array.isArray(obj.material) ? obj.material : obj.material ? [obj.material] : [];
1561
+ for (const m of mats) {
1562
+ for (const key in m) {
1563
+ const v = m[key];
1564
+ if (v && v.isTexture) v.dispose();
1565
+ }
1566
+ m.dispose();
1567
+ }
1568
+ });
1569
+ headTex.dispose();
1570
+ matcapTex.dispose();
1571
+ envRT.dispose();
1572
+ scene.environment = null;
1573
+ scene.clear();
1574
+ shardGroups.length = 0;
1575
+ shards.length = 0;
1576
+ /* Free the 2D backing stores as well — the headline raster alone is
1577
+ 4096 x 2304 x 4 B. */
1578
+ headCanvas.width = headCanvas.height = 1;
1579
+ maskCanvas.width = maskCanvas.height = 1;
1580
+ renderer.dispose();
1581
+ /* Hands the context back immediately instead of waiting for the
1582
+ canvas to be collected; Chrome only allows a small number of live
1583
+ WebGL contexts per renderer process. */
1584
+ renderer.forceContextLoss();
1585
+ } catch (e) {
1586
+ /* teardown is best-effort */
1587
+ }
1588
+ }
1589
+ window.__gstInstance = { dispose: gstDispose };
1590
+ window.addEventListener("pagehide", gstDispose);
1591
+ window.addEventListener("unload", gstDispose);
1592
+
1593
+ })();
1594
+ </script>
1595
+ <script>
1596
+ /* Standalone playback: open this file with ?play (add &loop to repeat).
1597
+ Inert without the param — Studio and the renderer never add it, so
1598
+ editing and deterministic renders are unaffected. */
1599
+ (function () {
1600
+ var q = new URLSearchParams(location.search);
1601
+ if (!q.has("play")) return;
1602
+ var tick = window.__popostLater(function () {
1603
+ var map = window.__timelines || {};
1604
+ var ids = Object.keys(map);
1605
+ if (!ids.length) return;
1606
+ window.__popostCancel(tick);
1607
+ for (var i = 0; i < ids.length; i++) {
1608
+ var tl = map[ids[i]];
1609
+ if (q.has("loop")) tl.repeat(-1);
1610
+ tl.play(0);
1611
+ }
1612
+ }, 100);
1613
+ })();
1614
+ </script>
1615
+ </div>
1616
+ <script>window.__popostFit();</script>
1617
+ </body>
1618
+ </html>