motionary 13.6.0 → 13.7.0

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 (955) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/bin/mcp-browser.mjs +167 -0
  3. package/bin/mcp-tools-2.mjs +187 -0
  4. package/bin/motionary-mcp.mjs +140 -34
  5. package/dist/chunks/{anim-image-DQH_CWkF.cjs → anim-image-CI1zz699.cjs} +2 -2
  6. package/dist/chunks/{anim-image-D8KZlriS.js → anim-image-DbZ01u7s.js} +2 -2
  7. package/dist/chunks/audio-CZgCXg1t.js +1 -1
  8. package/dist/chunks/audio-D0LwPShE.cjs +1 -1
  9. package/dist/chunks/badge-wall-C0gJ_Kck.js +1 -1
  10. package/dist/chunks/badge-wall-CITexuW7.cjs +1 -1
  11. package/dist/chunks/base-BvH4nAcv.cjs +1 -1
  12. package/dist/chunks/base-C9CJrhL3.js +1 -1
  13. package/dist/chunks/bg-generator-CML8tPN8.cjs +1 -1
  14. package/dist/chunks/bg-generator-oRwfTA5B.js +1 -1
  15. package/dist/chunks/bind-B_CTL6Qn.js +1 -1
  16. package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
  17. package/dist/chunks/builtins-DweCp29Z.cjs +1 -1
  18. package/dist/chunks/builtins-SwWQKzb-.js +1 -1
  19. package/dist/chunks/carousel-DU3rHTq0.cjs +1 -1
  20. package/dist/chunks/carousel-u6rqMqGu.js +1 -1
  21. package/dist/chunks/cart-drawer-CEIZfCw8.js +1 -1
  22. package/dist/chunks/cart-drawer-CkFMKMhx.cjs +1 -1
  23. package/dist/chunks/code-export-PdGSl9WE.cjs +1 -1
  24. package/dist/chunks/code-export-wdrBIWRv.js +1 -1
  25. package/dist/chunks/color-picker-B_xWVH8H.cjs +1 -1
  26. package/dist/chunks/color-picker-CN8ThZfh.js +1 -1
  27. package/dist/chunks/command-palette-IJuNiXhv.js +1 -1
  28. package/dist/chunks/command-palette-ISetAeX1.cjs +1 -1
  29. package/dist/chunks/core-B9Sjd4AV.js +1 -1
  30. package/dist/chunks/core-BZhM_0Zh.js +1 -1
  31. package/dist/chunks/core-BjcOCpJt.cjs +1 -1
  32. package/dist/chunks/core-DbAYRKnS.cjs +1 -1
  33. package/dist/chunks/core-Dj6iomdc.js +1 -1
  34. package/dist/chunks/core-DjjKLmZ6.cjs +1 -1
  35. package/dist/chunks/countdown-RQViryt7.cjs +1 -1
  36. package/dist/chunks/countdown-WDZxXQz7.js +1 -1
  37. package/dist/chunks/date-picker-BgApzPNn.cjs +1 -1
  38. package/dist/chunks/date-picker-D4yqKTMJ.js +1 -1
  39. package/dist/chunks/ease-HwYZnZat.cjs +1 -1
  40. package/dist/chunks/ease-XN8_0sXu.js +1 -1
  41. package/dist/chunks/equalizer-CwGL1sD8.js +1 -1
  42. package/dist/chunks/equalizer-_eD_ZdCl.cjs +1 -1
  43. package/dist/chunks/festival-banner-Bs18K0MJ.cjs +1 -1
  44. package/dist/chunks/festival-banner-Dslu8K1g.js +1 -1
  45. package/dist/chunks/field-DALTalya.js +1 -1
  46. package/dist/chunks/field-Dwq8-CLN.cjs +1 -1
  47. package/dist/chunks/fx-DaVuB89C.cjs +1 -1
  48. package/dist/chunks/fx-Dc1sMyNg.js +1 -1
  49. package/dist/chunks/generative-BKoxWOSP.cjs +1 -1
  50. package/dist/chunks/generative-DWdAwxYB.js +1 -1
  51. package/dist/chunks/{gl-scene-D1o7L7cK.cjs → gl-scene-CZHMOsiS.cjs} +2 -2
  52. package/dist/chunks/{gl-scene-3qV6ttUD.js → gl-scene-Cz74D0PJ.js} +2 -2
  53. package/dist/chunks/globe-D56xlOmk.js +1 -1
  54. package/dist/chunks/globe-DA0jyb6s.cjs +1 -1
  55. package/dist/chunks/gpu-7AY-uzNc.js +1 -1
  56. package/dist/chunks/gpu-DTO3JmAF.cjs +1 -1
  57. package/dist/chunks/gpu-particles-4DBj91f-.js +1 -1
  58. package/dist/chunks/gpu-particles-wEO_rds1.cjs +1 -1
  59. package/dist/chunks/index-tags-B-JBecYg.js +1 -1
  60. package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
  61. package/dist/chunks/key-click-BLm3BI8_.js +1 -1
  62. package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
  63. package/dist/chunks/{keyframes-a7rG1heL.js → keyframes-Cy-Ya5VG.js} +2 -2
  64. package/dist/chunks/{keyframes-DLTJgjYx.cjs → keyframes-DgqHSGbC.cjs} +2 -2
  65. package/dist/chunks/leaderboard-DvSSQ8o3.cjs +1 -1
  66. package/dist/chunks/leaderboard-_UPi0KQX.js +1 -1
  67. package/dist/chunks/location-card-Bq596aK5.js +1 -1
  68. package/dist/chunks/location-card-DSPTApUe.cjs +1 -1
  69. package/dist/chunks/lottie-icon-BoxkukMd.cjs +1 -1
  70. package/dist/chunks/lottie-icon-pqBgCV0y.js +1 -1
  71. package/dist/chunks/{lottie-player-BKBOn96y.cjs → lottie-player-0-dmhjY3.cjs} +2 -2
  72. package/dist/chunks/{lottie-player-DwQIRZKy.js → lottie-player-cHCLzYaM.js} +2 -2
  73. package/dist/chunks/lyrics-CRB7dA1j.cjs +1 -1
  74. package/dist/chunks/lyrics-D7mzxVIq.js +1 -1
  75. package/dist/chunks/manifest-CqfKtjeL.js +1 -1
  76. package/dist/chunks/manifest-xr3WET80.cjs +1 -1
  77. package/dist/chunks/menu-CZ1zHTT9.cjs +1 -1
  78. package/dist/chunks/menu-XcdMtcfw.js +1 -1
  79. package/dist/chunks/menu-toggle-DGXN4VsN.cjs +1 -1
  80. package/dist/chunks/menu-toggle-RD6Fu1Gm.js +1 -1
  81. package/dist/chunks/nav-morph-C4rD3wrU.cjs +1 -1
  82. package/dist/chunks/nav-morph-F6qzM20K.js +1 -1
  83. package/dist/chunks/otp-BJKyY7I3.js +1 -1
  84. package/dist/chunks/otp-DUyEWYMi.cjs +1 -1
  85. package/dist/chunks/pagination-D6iMBStU.js +1 -1
  86. package/dist/chunks/pagination-DHmYZZU9.cjs +1 -1
  87. package/dist/chunks/{physics-playground-DOL3NxuS.cjs → physics-playground-11Y_zOVT.cjs} +2 -2
  88. package/dist/chunks/{physics-playground-CS1nX_IJ.js → physics-playground-C5U58CX8.js} +2 -2
  89. package/dist/chunks/player-BTaPvK8G.js +1 -1
  90. package/dist/chunks/player-BZOkQbZ9.cjs +1 -1
  91. package/dist/chunks/presence-6eQ9t5vX.js +1 -1
  92. package/dist/chunks/presence-DAthlALi.cjs +1 -1
  93. package/dist/chunks/presets-BYBVJVeP.js +1 -1
  94. package/dist/chunks/presets-CUHys3sK.cjs +1 -1
  95. package/dist/chunks/prize-wheel-CpGVo8QG.js +1 -1
  96. package/dist/chunks/prize-wheel-emDopI5c.cjs +1 -1
  97. package/dist/chunks/product-gallery-BmnYLKAQ.js +1 -1
  98. package/dist/chunks/product-gallery-CKtSVhZk.cjs +1 -1
  99. package/dist/chunks/progress-ring-C75O4MUi.cjs +1 -1
  100. package/dist/chunks/progress-ring-CKgR1GRB.js +1 -1
  101. package/dist/chunks/prop-panel-BjbCiPAB.js +1 -1
  102. package/dist/chunks/prop-panel-DFqga6H5.cjs +1 -1
  103. package/dist/chunks/radar-D-bZRrgs.cjs +1 -1
  104. package/dist/chunks/radar-rBQT1BFh.js +1 -1
  105. package/dist/chunks/reactions-BL2iO8iy.cjs +1 -1
  106. package/dist/chunks/reactions-CsdP0Su5.js +1 -1
  107. package/dist/chunks/{registry-DU4Fqojq.js → registry-CX6Esj3Z.js} +2 -2
  108. package/dist/chunks/registry-CibnX7Ui.cjs +1 -1
  109. package/dist/chunks/registry-DKs_BiEo.js +1 -1
  110. package/dist/chunks/{registry-KZcxpR09.cjs → registry-DlT6mFCX.cjs} +2 -2
  111. package/dist/chunks/retro-button-Bw4sqAkl.js +1 -1
  112. package/dist/chunks/retro-button-DrrBZ6w8.cjs +1 -1
  113. package/dist/chunks/rive-D6X4J0Mi.cjs +1 -1
  114. package/dist/chunks/rive-FjeW9KDl.js +1 -1
  115. package/dist/chunks/{runtime-link-BpG2gXG5.cjs → runtime-link-CZme1oj-.cjs} +2 -2
  116. package/dist/chunks/{runtime-link-y2y-NiI-.js → runtime-link-DycKZ8ru.js} +2 -2
  117. package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
  118. package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
  119. package/dist/chunks/{scroll-scene-COHX5SV0.cjs → scroll-scene-RCH_NMdX.cjs} +3 -3
  120. package/dist/chunks/{scroll-scene-Cpky_0Ka.js → scroll-scene-nnC31K0L.js} +3 -3
  121. package/dist/chunks/segmented-BEep92iW.js +1 -1
  122. package/dist/chunks/segmented-CpB4mKIn.cjs +1 -1
  123. package/dist/chunks/shader-backdrop-C4UhepvI.cjs +1 -1
  124. package/dist/chunks/shader-backdrop-DC0ZvVMV.js +1 -1
  125. package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
  126. package/dist/chunks/shared-CkKHWrtJ.js +1 -1
  127. package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
  128. package/dist/chunks/shared-o9CtwHmi.js +1 -1
  129. package/dist/chunks/sheet-B38ylIEW.cjs +1 -1
  130. package/dist/chunks/sheet-BHTMF8qx.js +1 -1
  131. package/dist/chunks/sign-DvZ1jHxE.js +1 -1
  132. package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
  133. package/dist/chunks/skeleton-reveal-BMrbmru6.js +1 -1
  134. package/dist/chunks/skeleton-reveal-Dsd3Wp0n.cjs +1 -1
  135. package/dist/chunks/sparkline-DeKhZpVo.cjs +1 -1
  136. package/dist/chunks/sparkline-htTaTcgs.js +1 -1
  137. package/dist/chunks/spring-DBCejV_z.js +1 -1
  138. package/dist/chunks/spring-XEl_diDJ.cjs +1 -1
  139. package/dist/chunks/stagger-B9sKPwQB.js +1 -1
  140. package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
  141. package/dist/chunks/suggestion-chips-CAcbFTr4.cjs +1 -1
  142. package/dist/chunks/suggestion-chips-Cj70JCtZ.js +1 -1
  143. package/dist/chunks/switch-CnSs8nDn.js +1 -1
  144. package/dist/chunks/switch-DiTlApGd.cjs +1 -1
  145. package/dist/chunks/tab-bar-B7hFB974.js +1 -1
  146. package/dist/chunks/tab-bar-BBlVAqbq.cjs +1 -1
  147. package/dist/chunks/{ticker-CxIkYDct.js → ticker-B4Xe-qCg.js} +2 -2
  148. package/dist/chunks/{ticker-Bb9msR-6.cjs → ticker-BP_jd4sz.cjs} +2 -2
  149. package/dist/chunks/tip-VGS3qAUm.cjs +1 -1
  150. package/dist/chunks/tip-ylGHoOIf.js +1 -1
  151. package/dist/chunks/toast-stack-DprisNp_.cjs +1 -1
  152. package/dist/chunks/toast-stack-Z_5cS1Nz.js +1 -1
  153. package/dist/chunks/{tween-ClexTL2D.js → tween-bb-hNM7p.js} +2 -2
  154. package/dist/chunks/{tween-Cj4u9V7o.cjs → tween-qF0Mcf3-.cjs} +2 -2
  155. package/dist/chunks/upload-progress-CEAWkP-p.cjs +1 -1
  156. package/dist/chunks/upload-progress-y7N0eaM4.js +1 -1
  157. package/dist/chunks/variants-BtqEJuki.cjs +1 -1
  158. package/dist/chunks/variants-MxfB3UVB.js +1 -1
  159. package/dist/chunks/viewport-BAXHhZLV.js +1 -1
  160. package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
  161. package/dist/chunks/voice-button-9UauxvT9.cjs +1 -1
  162. package/dist/chunks/voice-button-DFEoNe24.js +1 -1
  163. package/dist/chunks/weather-card-4Eg6e43D.cjs +1 -1
  164. package/dist/chunks/weather-card-NR0i507J.js +1 -1
  165. package/dist/chunks/worker-canvas-BMBXAFWp.cjs +1 -1
  166. package/dist/chunks/worker-canvas-CPZvzrWQ.js +1 -1
  167. package/dist/chunks/xp-bar-DAbx1LZ_.js +1 -1
  168. package/dist/chunks/xp-bar-DkWfCTfB.cjs +1 -1
  169. package/dist/components/a11y.cjs +1 -1
  170. package/dist/components/a11y.js +1 -1
  171. package/dist/components/ai.cjs +1 -1
  172. package/dist/components/ai.js +1 -1
  173. package/dist/components/angular.cjs +1 -1
  174. package/dist/components/angular.js +1 -1
  175. package/dist/components/background.cjs +1 -1
  176. package/dist/components/background.js +1 -1
  177. package/dist/components/bridge.cjs +1 -1
  178. package/dist/components/bridge.js +1 -1
  179. package/dist/components/cards.cjs +1 -1
  180. package/dist/components/cards.js +1 -1
  181. package/dist/components/click.cjs +1 -1
  182. package/dist/components/click.js +1 -1
  183. package/dist/components/core.cjs +1 -1
  184. package/dist/components/core.js +1 -1
  185. package/dist/components/depth.cjs +1 -1
  186. package/dist/components/depth.js +1 -1
  187. package/dist/components/design.cjs +1 -1
  188. package/dist/components/design.js +1 -1
  189. package/dist/components/dotlottie.cjs +3 -3
  190. package/dist/components/dotlottie.js +3 -3
  191. package/dist/components/dsl.cjs +1 -1
  192. package/dist/components/dsl.js +1 -1
  193. package/dist/components/effects.cjs +1 -1
  194. package/dist/components/effects.js +1 -1
  195. package/dist/components/engine.cjs +1 -1
  196. package/dist/components/engine.js +1 -1
  197. package/dist/components/feedback.cjs +1 -1
  198. package/dist/components/feedback.js +1 -1
  199. package/dist/components/fx-3d.cjs +1 -1
  200. package/dist/components/fx-3d.js +1 -1
  201. package/dist/components/fx-ai.cjs +1 -1
  202. package/dist/components/fx-ai.js +1 -1
  203. package/dist/components/fx-chart.cjs +1 -1
  204. package/dist/components/fx-chart.js +1 -1
  205. package/dist/components/fx-cinema.cjs +1 -1
  206. package/dist/components/fx-cinema.js +1 -1
  207. package/dist/components/fx-cyber.cjs +1 -1
  208. package/dist/components/fx-cyber.js +1 -1
  209. package/dist/components/fx-festival.cjs +1 -1
  210. package/dist/components/fx-festival.js +1 -1
  211. package/dist/components/fx-focus.cjs +1 -1
  212. package/dist/components/fx-focus.js +1 -1
  213. package/dist/components/fx-form.cjs +1 -1
  214. package/dist/components/fx-form.js +1 -1
  215. package/dist/components/fx-game.cjs +1 -1
  216. package/dist/components/fx-game.js +1 -1
  217. package/dist/components/fx-genart.cjs +1 -1
  218. package/dist/components/fx-genart.js +1 -1
  219. package/dist/components/fx-geo.cjs +1 -1
  220. package/dist/components/fx-geo.js +1 -1
  221. package/dist/components/fx-gesture.cjs +1 -1
  222. package/dist/components/fx-gesture.js +1 -1
  223. package/dist/components/fx-gpu.cjs +1 -1
  224. package/dist/components/fx-gpu.js +1 -1
  225. package/dist/components/fx-light.cjs +1 -1
  226. package/dist/components/fx-light.js +1 -1
  227. package/dist/components/fx-lottie.cjs +1 -1
  228. package/dist/components/fx-lottie.js +1 -1
  229. package/dist/components/fx-morph.cjs +1 -1
  230. package/dist/components/fx-morph.js +1 -1
  231. package/dist/components/fx-music.cjs +1 -1
  232. package/dist/components/fx-music.js +1 -1
  233. package/dist/components/fx-organic.cjs +1 -1
  234. package/dist/components/fx-organic.js +1 -1
  235. package/dist/components/fx-paper.cjs +1 -1
  236. package/dist/components/fx-paper.js +1 -1
  237. package/dist/components/fx-perf.cjs +1 -1
  238. package/dist/components/fx-perf.js +1 -1
  239. package/dist/components/fx-physics.cjs +1 -1
  240. package/dist/components/fx-physics.js +1 -1
  241. package/dist/components/fx-retro.cjs +1 -1
  242. package/dist/components/fx-retro.js +1 -1
  243. package/dist/components/fx-safe.cjs +1 -1
  244. package/dist/components/fx-safe.js +1 -1
  245. package/dist/components/fx-shop.cjs +1 -1
  246. package/dist/components/fx-shop.js +1 -1
  247. package/dist/components/fx-social.cjs +1 -1
  248. package/dist/components/fx-social.js +1 -1
  249. package/dist/components/fx-spatial.cjs +1 -1
  250. package/dist/components/fx-spatial.js +1 -1
  251. package/dist/components/fx-surface.cjs +1 -1
  252. package/dist/components/fx-surface.js +1 -1
  253. package/dist/components/fx-text.cjs +1 -1
  254. package/dist/components/fx-text.js +1 -1
  255. package/dist/components/fx-transitions.cjs +1 -1
  256. package/dist/components/fx-transitions.js +1 -1
  257. package/dist/components/fx-video.cjs +1 -1
  258. package/dist/components/fx-video.js +1 -1
  259. package/dist/components/fx-weather.cjs +1 -1
  260. package/dist/components/fx-weather.js +1 -1
  261. package/dist/components/fx.cjs +1 -1
  262. package/dist/components/fx.js +1 -1
  263. package/dist/components/fx2.cjs +1 -1
  264. package/dist/components/fx2.js +1 -1
  265. package/dist/components/gesture.cjs +1 -1
  266. package/dist/components/gesture.js +1 -1
  267. package/dist/components/gl-model.cjs +3 -3
  268. package/dist/components/gl-model.js +3 -3
  269. package/dist/components/interaction.cjs +1 -1
  270. package/dist/components/interaction.js +1 -1
  271. package/dist/components/jsx.cjs +1 -1
  272. package/dist/components/jsx.js +1 -1
  273. package/dist/components/layout.cjs +1 -1
  274. package/dist/components/layout.js +1 -1
  275. package/dist/components/lazy.cjs +1 -1
  276. package/dist/components/lazy.js +1 -1
  277. package/dist/components/lite.cjs +1 -1
  278. package/dist/components/lite.js +1 -1
  279. package/dist/components/marketplace.cjs +1 -1
  280. package/dist/components/marketplace.js +1 -1
  281. package/dist/components/native.cjs +1 -1
  282. package/dist/components/native.js +1 -1
  283. package/dist/components/offscreen.cjs +1 -1
  284. package/dist/components/offscreen.js +1 -1
  285. package/dist/components/packs.cjs +1 -1
  286. package/dist/components/packs.js +1 -1
  287. package/dist/components/page.cjs +1 -1
  288. package/dist/components/page.js +1 -1
  289. package/dist/components/perf-tasks.cjs +1 -1
  290. package/dist/components/perf-tasks.js +1 -1
  291. package/dist/components/perf.cjs +1 -1
  292. package/dist/components/perf.js +1 -1
  293. package/dist/components/physics.cjs +1 -1
  294. package/dist/components/physics.js +1 -1
  295. package/dist/components/plugins.cjs +1 -1
  296. package/dist/components/plugins.js +1 -1
  297. package/dist/components/react.cjs +1 -1
  298. package/dist/components/react.js +1 -1
  299. package/dist/components/reveal.cjs +1 -1
  300. package/dist/components/reveal.js +1 -1
  301. package/dist/components/snap-carousel.cjs +2 -2
  302. package/dist/components/snap-carousel.js +2 -2
  303. package/dist/components/solid.cjs +1 -1
  304. package/dist/components/solid.js +1 -1
  305. package/dist/components/svelte.cjs +1 -1
  306. package/dist/components/svelte.js +1 -1
  307. package/dist/components/svg.cjs +1 -1
  308. package/dist/components/svg.js +1 -1
  309. package/dist/components/text.cjs +1 -1
  310. package/dist/components/text.js +1 -1
  311. package/dist/components/timeline-editor.cjs +1 -1
  312. package/dist/components/timeline-editor.js +1 -1
  313. package/dist/components/timeline.cjs +1 -1
  314. package/dist/components/timeline.js +1 -1
  315. package/dist/components/tokens.cjs +1 -1
  316. package/dist/components/tokens.js +1 -1
  317. package/dist/components/transitions.cjs +1 -1
  318. package/dist/components/transitions.js +1 -1
  319. package/dist/components/ui.cjs +1 -1
  320. package/dist/components/ui.js +1 -1
  321. package/dist/components/vue.cjs +1 -1
  322. package/dist/components/vue.js +1 -1
  323. package/dist/components/webgl.cjs +1 -1
  324. package/dist/components/webgl.js +1 -1
  325. package/dist/components/widgets.cjs +5 -5
  326. package/dist/components/widgets.js +7 -7
  327. package/dist/components.cjs +1 -1
  328. package/dist/components.js +1 -1
  329. package/dist/components.umd.js +1 -1
  330. package/dist/effects/achievement-unlock.cjs +1 -1
  331. package/dist/effects/achievement-unlock.js +1 -1
  332. package/dist/effects/aurora-veil.cjs +1 -1
  333. package/dist/effects/aurora-veil.js +1 -1
  334. package/dist/effects/badge-pop.cjs +1 -1
  335. package/dist/effects/badge-pop.js +1 -1
  336. package/dist/effects/bars-grow.cjs +1 -1
  337. package/dist/effects/bars-grow.js +1 -1
  338. package/dist/effects/beat-bounce.cjs +1 -1
  339. package/dist/effects/beat-bounce.js +1 -1
  340. package/dist/effects/blob-button.cjs +1 -1
  341. package/dist/effects/blob-button.js +1 -1
  342. package/dist/effects/bloom.cjs +1 -1
  343. package/dist/effects/bloom.js +1 -1
  344. package/dist/effects/breathe.cjs +1 -1
  345. package/dist/effects/breathe.js +1 -1
  346. package/dist/effects/brushed-metal.cjs +1 -1
  347. package/dist/effects/brushed-metal.js +1 -1
  348. package/dist/effects/camera-dolly.cjs +1 -1
  349. package/dist/effects/camera-dolly.js +1 -1
  350. package/dist/effects/card-flip-3d.cjs +1 -1
  351. package/dist/effects/card-flip-3d.js +1 -1
  352. package/dist/effects/chest-open.cjs +1 -1
  353. package/dist/effects/chest-open.js +1 -1
  354. package/dist/effects/cloth.cjs +1 -1
  355. package/dist/effects/cloth.js +1 -1
  356. package/dist/effects/coin-burst.cjs +1 -1
  357. package/dist/effects/coin-burst.js +1 -1
  358. package/dist/effects/color-pulse.cjs +1 -1
  359. package/dist/effects/color-pulse.js +1 -1
  360. package/dist/effects/crt-power.cjs +1 -1
  361. package/dist/effects/crt-power.js +1 -1
  362. package/dist/effects/crumple.cjs +1 -1
  363. package/dist/effects/crumple.js +1 -1
  364. package/dist/effects/data-decode.cjs +1 -1
  365. package/dist/effects/data-decode.js +1 -1
  366. package/dist/effects/day-cycle.cjs +1 -1
  367. package/dist/effects/day-cycle.js +1 -1
  368. package/dist/effects/depth-in.cjs +1 -1
  369. package/dist/effects/depth-in.js +1 -1
  370. package/dist/effects/depth-pop.cjs +1 -1
  371. package/dist/effects/depth-pop.js +1 -1
  372. package/dist/effects/depth-stack.cjs +1 -1
  373. package/dist/effects/depth-stack.js +1 -1
  374. package/dist/effects/dolly-in.cjs +1 -1
  375. package/dist/effects/dolly-in.js +1 -1
  376. package/dist/effects/dots-pop.cjs +1 -1
  377. package/dist/effects/dots-pop.js +1 -1
  378. package/dist/effects/field-shake.cjs +1 -1
  379. package/dist/effects/field-shake.js +1 -1
  380. package/dist/effects/field-success.cjs +1 -1
  381. package/dist/effects/field-success.js +1 -1
  382. package/dist/effects/film-burn.cjs +1 -1
  383. package/dist/effects/film-burn.js +1 -1
  384. package/dist/effects/fire.cjs +1 -1
  385. package/dist/effects/fire.js +1 -1
  386. package/dist/effects/fireflies.cjs +1 -1
  387. package/dist/effects/fireflies.js +1 -1
  388. package/dist/effects/firework-burst.cjs +1 -1
  389. package/dist/effects/firework-burst.js +1 -1
  390. package/dist/effects/flip-chars.cjs +1 -1
  391. package/dist/effects/flip-chars.js +1 -1
  392. package/dist/effects/fluid.cjs +1 -1
  393. package/dist/effects/fluid.js +1 -1
  394. package/dist/effects/fly-to-cart.cjs +1 -1
  395. package/dist/effects/fly-to-cart.js +1 -1
  396. package/dist/effects/focus-draw.cjs +1 -1
  397. package/dist/effects/focus-draw.js +1 -1
  398. package/dist/effects/focus-glow.cjs +1 -1
  399. package/dist/effects/focus-glow.js +1 -1
  400. package/dist/effects/fog.cjs +1 -1
  401. package/dist/effects/fog.js +1 -1
  402. package/dist/effects/font-breathe.cjs +1 -1
  403. package/dist/effects/font-breathe.js +1 -1
  404. package/dist/effects/form-cascade.cjs +1 -1
  405. package/dist/effects/form-cascade.js +1 -1
  406. package/dist/effects/gen-skeleton.cjs +1 -1
  407. package/dist/effects/gen-skeleton.js +1 -1
  408. package/dist/effects/glass-frost.cjs +1 -1
  409. package/dist/effects/glass-frost.js +1 -1
  410. package/dist/effects/glitch-text.cjs +1 -1
  411. package/dist/effects/glitch-text.js +1 -1
  412. package/dist/effects/globe-spin.cjs +1 -1
  413. package/dist/effects/globe-spin.js +1 -1
  414. package/dist/effects/god-rays.cjs +1 -1
  415. package/dist/effects/god-rays.js +1 -1
  416. package/dist/effects/gpu-lift.cjs +1 -1
  417. package/dist/effects/gpu-lift.js +1 -1
  418. package/dist/effects/grain-flicker.cjs +1 -1
  419. package/dist/effects/grain-flicker.js +1 -1
  420. package/dist/effects/halftone-in.cjs +1 -1
  421. package/dist/effects/halftone-in.js +1 -1
  422. package/dist/effects/highlight-sweep.cjs +1 -1
  423. package/dist/effects/highlight-sweep.js +1 -1
  424. package/dist/effects/hologram.cjs +1 -1
  425. package/dist/effects/hologram.js +1 -1
  426. package/dist/effects/hud-frame.cjs +1 -1
  427. package/dist/effects/hud-frame.js +1 -1
  428. package/dist/effects/icon-pop.cjs +1 -1
  429. package/dist/effects/icon-pop.js +1 -1
  430. package/dist/effects/icon-swap.cjs +1 -1
  431. package/dist/effects/icon-swap.js +1 -1
  432. package/dist/effects/idle-reveal.cjs +1 -1
  433. package/dist/effects/idle-reveal.js +1 -1
  434. package/dist/effects/ink.cjs +1 -1
  435. package/dist/effects/ink.js +1 -1
  436. package/dist/effects/jump-cut.cjs +1 -1
  437. package/dist/effects/jump-cut.js +1 -1
  438. package/dist/effects/kaleido.cjs +1 -1
  439. package/dist/effects/kaleido.js +1 -1
  440. package/dist/effects/label-float.cjs +1 -1
  441. package/dist/effects/label-float.js +1 -1
  442. package/dist/effects/lantern-rise.cjs +1 -1
  443. package/dist/effects/lantern-rise.js +1 -1
  444. package/dist/effects/leaves.cjs +1 -1
  445. package/dist/effects/leaves.js +1 -1
  446. package/dist/effects/letterbox.cjs +1 -1
  447. package/dist/effects/letterbox.js +1 -1
  448. package/dist/effects/level-up.cjs +1 -1
  449. package/dist/effects/level-up.js +1 -1
  450. package/dist/effects/light-follow.cjs +1 -1
  451. package/dist/effects/light-follow.js +1 -1
  452. package/dist/effects/lightning.cjs +1 -1
  453. package/dist/effects/lightning.js +1 -1
  454. package/dist/effects/line-draw.cjs +1 -1
  455. package/dist/effects/line-draw.js +1 -1
  456. package/dist/effects/liquid-text.cjs +1 -1
  457. package/dist/effects/liquid-text.js +1 -1
  458. package/dist/effects/liquid-wipe.cjs +1 -1
  459. package/dist/effects/liquid-wipe.js +1 -1
  460. package/dist/effects/lottie-play.cjs +1 -1
  461. package/dist/effects/lottie-play.js +1 -1
  462. package/dist/effects/magnet.cjs +1 -1
  463. package/dist/effects/magnet.js +1 -1
  464. package/dist/effects/marching-ants.cjs +1 -1
  465. package/dist/effects/marching-ants.js +1 -1
  466. package/dist/effects/marker-pulse.cjs +1 -1
  467. package/dist/effects/marker-pulse.js +1 -1
  468. package/dist/effects/mention-glow.cjs +1 -1
  469. package/dist/effects/mention-glow.js +1 -1
  470. package/dist/effects/mesh-drift.cjs +1 -1
  471. package/dist/effects/mesh-drift.js +1 -1
  472. package/dist/effects/message-in.cjs +1 -1
  473. package/dist/effects/message-in.js +1 -1
  474. package/dist/effects/mosaic-flip.cjs +1 -1
  475. package/dist/effects/mosaic-flip.js +1 -1
  476. package/dist/effects/neon-ignite.cjs +1 -1
  477. package/dist/effects/neon-ignite.js +1 -1
  478. package/dist/effects/neon-pulse.cjs +1 -1
  479. package/dist/effects/neon-pulse.js +1 -1
  480. package/dist/effects/neon-write.cjs +1 -1
  481. package/dist/effects/neon-write.js +1 -1
  482. package/dist/effects/neu-press.cjs +1 -1
  483. package/dist/effects/neu-press.js +1 -1
  484. package/dist/effects/noise-reveal.cjs +1 -1
  485. package/dist/effects/noise-reveal.js +1 -1
  486. package/dist/effects/number-roll.cjs +1 -1
  487. package/dist/effects/number-roll.js +1 -1
  488. package/dist/effects/orbit-camera.cjs +1 -1
  489. package/dist/effects/orbit-camera.js +1 -1
  490. package/dist/effects/orbit-in.cjs +1 -1
  491. package/dist/effects/orbit-in.js +1 -1
  492. package/dist/effects/origami.cjs +1 -1
  493. package/dist/effects/origami.js +1 -1
  494. package/dist/effects/page-curl.cjs +1 -1
  495. package/dist/effects/page-curl.js +1 -1
  496. package/dist/effects/pan-reveal.cjs +1 -1
  497. package/dist/effects/pan-reveal.js +1 -1
  498. package/dist/effects/paper-unfold.cjs +1 -1
  499. package/dist/effects/paper-unfold.js +1 -1
  500. package/dist/effects/particle-text.cjs +1 -1
  501. package/dist/effects/particle-text.js +1 -1
  502. package/dist/effects/path-morph.cjs +1 -1
  503. package/dist/effects/path-morph.js +1 -1
  504. package/dist/effects/pearlescent.cjs +1 -1
  505. package/dist/effects/pearlescent.js +1 -1
  506. package/dist/effects/pencil-sketch.cjs +1 -1
  507. package/dist/effects/pencil-sketch.js +1 -1
  508. package/dist/effects/pin-drop.cjs +1 -1
  509. package/dist/effects/pin-drop.js +1 -1
  510. package/dist/effects/pinball.cjs +1 -1
  511. package/dist/effects/pinball.js +1 -1
  512. package/dist/effects/pinch-hint.cjs +1 -1
  513. package/dist/effects/pinch-hint.js +1 -1
  514. package/dist/effects/pixelate-in.cjs +1 -1
  515. package/dist/effects/pixelate-in.js +1 -1
  516. package/dist/effects/pointer-shadow.cjs +1 -1
  517. package/dist/effects/pointer-shadow.js +1 -1
  518. package/dist/effects/portal-open.cjs +1 -1
  519. package/dist/effects/portal-open.js +1 -1
  520. package/dist/effects/price-flip.cjs +1 -1
  521. package/dist/effects/price-flip.js +1 -1
  522. package/dist/effects/product-spin.cjs +1 -1
  523. package/dist/effects/product-spin.js +1 -1
  524. package/dist/effects/rack-focus.cjs +1 -1
  525. package/dist/effects/rack-focus.js +1 -1
  526. package/dist/effects/radial-spectrum.cjs +1 -1
  527. package/dist/effects/radial-spectrum.js +1 -1
  528. package/dist/effects/rain-glass.cjs +1 -1
  529. package/dist/effects/rain-glass.js +1 -1
  530. package/dist/effects/reaction-burst.cjs +1 -1
  531. package/dist/effects/reaction-burst.js +1 -1
  532. package/dist/effects/read-receipt.cjs +1 -1
  533. package/dist/effects/read-receipt.js +1 -1
  534. package/dist/effects/refraction.cjs +1 -1
  535. package/dist/effects/refraction.js +1 -1
  536. package/dist/effects/ring-sweep.cjs +1 -1
  537. package/dist/effects/ring-sweep.js +1 -1
  538. package/dist/effects/ripple-dissolve.cjs +1 -1
  539. package/dist/effects/ripple-dissolve.js +1 -1
  540. package/dist/effects/rope.cjs +1 -1
  541. package/dist/effects/rope.js +1 -1
  542. package/dist/effects/route-draw.cjs +1 -1
  543. package/dist/effects/route-draw.js +1 -1
  544. package/dist/effects/safe-fade.cjs +1 -1
  545. package/dist/effects/safe-fade.js +1 -1
  546. package/dist/effects/sakura.cjs +1 -1
  547. package/dist/effects/sakura.js +1 -1
  548. package/dist/effects/sale-shine.cjs +1 -1
  549. package/dist/effects/sale-shine.js +1 -1
  550. package/dist/effects/sankey-flow.cjs +1 -1
  551. package/dist/effects/sankey-flow.js +1 -1
  552. package/dist/effects/scanline-sweep.cjs +1 -1
  553. package/dist/effects/scanline-sweep.js +1 -1
  554. package/dist/effects/shatter.cjs +1 -1
  555. package/dist/effects/shatter.js +1 -1
  556. package/dist/effects/smoke.cjs +1 -1
  557. package/dist/effects/smoke.js +1 -1
  558. package/dist/effects/snowfall.cjs +1 -1
  559. package/dist/effects/snowfall.js +1 -1
  560. package/dist/effects/soft-body.cjs +1 -1
  561. package/dist/effects/soft-body.js +1 -1
  562. package/dist/effects/sound-particles.cjs +1 -1
  563. package/dist/effects/sound-particles.js +1 -1
  564. package/dist/effects/spatial-float.cjs +1 -1
  565. package/dist/effects/spatial-float.js +1 -1
  566. package/dist/effects/spectrum-mirror.cjs +1 -1
  567. package/dist/effects/spectrum-mirror.js +1 -1
  568. package/dist/effects/splash.cjs +1 -1
  569. package/dist/effects/splash.js +1 -1
  570. package/dist/effects/spooky-float.cjs +1 -1
  571. package/dist/effects/spooky-float.js +1 -1
  572. package/dist/effects/stock-pulse.cjs +1 -1
  573. package/dist/effects/stock-pulse.js +1 -1
  574. package/dist/effects/stream-text.cjs +1 -1
  575. package/dist/effects/stream-text.js +1 -1
  576. package/dist/effects/stroke-draw.cjs +1 -1
  577. package/dist/effects/stroke-draw.js +1 -1
  578. package/dist/effects/success-check.cjs +1 -1
  579. package/dist/effects/success-check.js +1 -1
  580. package/dist/effects/swipe-hint.cjs +1 -1
  581. package/dist/effects/swipe-hint.js +1 -1
  582. package/dist/effects/text-trail.cjs +1 -1
  583. package/dist/effects/text-trail.js +1 -1
  584. package/dist/effects/thinking-glow.cjs +1 -1
  585. package/dist/effects/thinking-glow.js +1 -1
  586. package/dist/effects/tilt-wobble.cjs +1 -1
  587. package/dist/effects/tilt-wobble.js +1 -1
  588. package/dist/effects/typing-dots.cjs +1 -1
  589. package/dist/effects/typing-dots.js +1 -1
  590. package/dist/effects/underline-sweep.cjs +1 -1
  591. package/dist/effects/underline-sweep.js +1 -1
  592. package/dist/effects/vhs-glitch.cjs +1 -1
  593. package/dist/effects/vhs-glitch.js +1 -1
  594. package/dist/effects/vine-grow.cjs +1 -1
  595. package/dist/effects/vine-grow.js +1 -1
  596. package/dist/effects/vinyl-spin.cjs +1 -1
  597. package/dist/effects/vinyl-spin.js +1 -1
  598. package/dist/effects/voice-wave.cjs +1 -1
  599. package/dist/effects/voice-wave.js +1 -1
  600. package/dist/effects/water-drop.cjs +1 -1
  601. package/dist/effects/water-drop.js +1 -1
  602. package/dist/effects/watercolor.cjs +1 -1
  603. package/dist/effects/watercolor.js +1 -1
  604. package/dist/effects/waveform-scope.cjs +1 -1
  605. package/dist/effects/waveform-scope.js +1 -1
  606. package/dist/effects/xmas-snow.cjs +1 -1
  607. package/dist/effects/xmas-snow.js +1 -1
  608. package/dist/effects/xp-gain.cjs +1 -1
  609. package/dist/effects/xp-gain.js +1 -1
  610. package/dist/effects/y2k-shine.cjs +1 -1
  611. package/dist/effects/y2k-shine.js +1 -1
  612. package/dist/element.cjs +1 -1
  613. package/dist/element.js +1 -1
  614. package/dist/element.umd.js +1 -1
  615. package/dist/index.cjs +1 -1
  616. package/dist/index.js +1 -1
  617. package/dist/index.umd.js +1 -1
  618. package/dist/llms-full.txt +24 -18
  619. package/dist/llms.txt +1 -1
  620. package/dist/manifest.json +28 -26
  621. package/dist/presets/extended.cjs +1 -1
  622. package/dist/presets/extended.js +1 -1
  623. package/dist/presets-extended.umd.js +1 -1
  624. package/dist/react.cjs +1 -1
  625. package/dist/react.js +1 -1
  626. package/dist/runtime/drag-snap.cjs +2 -2
  627. package/dist/runtime/drag-snap.iife.js +1 -1
  628. package/dist/runtime/drag-snap.js +2 -2
  629. package/dist/runtime/format-apng.cjs +3 -3
  630. package/dist/runtime/format-apng.iife.js +1 -1
  631. package/dist/runtime/format-apng.js +3 -3
  632. package/dist/runtime/format-css.cjs +3 -3
  633. package/dist/runtime/format-css.iife.js +1 -1
  634. package/dist/runtime/format-css.js +3 -3
  635. package/dist/runtime/format-gif.cjs +3 -3
  636. package/dist/runtime/format-gif.iife.js +1 -1
  637. package/dist/runtime/format-gif.js +3 -3
  638. package/dist/runtime/format-gltf.cjs +2 -2
  639. package/dist/runtime/format-gltf.iife.js +1 -1
  640. package/dist/runtime/format-gltf.js +2 -2
  641. package/dist/runtime/format-motion.cjs +4 -4
  642. package/dist/runtime/format-motion.iife.js +1 -1
  643. package/dist/runtime/format-motion.js +4 -4
  644. package/dist/runtime/format-obj.cjs +2 -2
  645. package/dist/runtime/format-obj.iife.js +1 -1
  646. package/dist/runtime/format-obj.js +2 -2
  647. package/dist/runtime/format-scene.cjs +2 -2
  648. package/dist/runtime/format-scene.iife.js +1 -1
  649. package/dist/runtime/format-scene.js +2 -2
  650. package/dist/runtime/format-sprite.cjs +3 -3
  651. package/dist/runtime/format-sprite.iife.js +1 -1
  652. package/dist/runtime/format-sprite.js +3 -3
  653. package/dist/runtime/format-svg.cjs +3 -3
  654. package/dist/runtime/format-svg.iife.js +1 -1
  655. package/dist/runtime/format-svg.js +3 -3
  656. package/dist/runtime/format-webp.cjs +3 -3
  657. package/dist/runtime/format-webp.iife.js +1 -1
  658. package/dist/runtime/format-webp.js +3 -3
  659. package/dist/runtime/gl.cjs +2 -2
  660. package/dist/runtime/gl.iife.js +1 -1
  661. package/dist/runtime/gl.js +2 -2
  662. package/dist/runtime/gltf-anim.cjs +2 -2
  663. package/dist/runtime/gltf-anim.iife.js +1 -1
  664. package/dist/runtime/gltf-anim.js +2 -2
  665. package/dist/runtime/gltf-decoders.cjs +2 -2
  666. package/dist/runtime/gltf-decoders.iife.js +1 -1
  667. package/dist/runtime/gltf-decoders.js +2 -2
  668. package/dist/runtime/lottie-state.cjs +2 -2
  669. package/dist/runtime/lottie-state.iife.js +1 -1
  670. package/dist/runtime/lottie-state.js +2 -2
  671. package/dist/runtime/physics.cjs +2 -2
  672. package/dist/runtime/physics.iife.js +1 -1
  673. package/dist/runtime/physics.js +2 -2
  674. package/dist/runtime/scroll.cjs +3 -3
  675. package/dist/runtime/scroll.iife.js +1 -1
  676. package/dist/runtime/scroll.js +3 -3
  677. package/dist/runtime/smooth.cjs +2 -2
  678. package/dist/runtime/smooth.iife.js +1 -1
  679. package/dist/runtime/smooth.js +2 -2
  680. package/dist/runtime/text.cjs +2 -2
  681. package/dist/runtime/text.iife.js +1 -1
  682. package/dist/runtime/text.js +2 -2
  683. package/dist/runtime/vector.cjs +3 -3
  684. package/dist/runtime/vector.iife.js +1 -1
  685. package/dist/runtime/vector.js +3 -3
  686. package/dist/runtime.cjs +4 -4
  687. package/dist/runtime.d.cts +1 -1
  688. package/dist/runtime.d.ts +1 -1
  689. package/dist/runtime.iife.js +2 -2
  690. package/dist/runtime.js +6 -6
  691. package/dist/solid.cjs +1 -1
  692. package/dist/solid.js +1 -1
  693. package/dist/svelte.cjs +1 -1
  694. package/dist/svelte.js +1 -1
  695. package/dist/vue.cjs +1 -1
  696. package/dist/vue.js +1 -1
  697. package/dist/widgets/add-to-cart.cjs +1 -1
  698. package/dist/widgets/add-to-cart.js +1 -1
  699. package/dist/widgets/badge-wall.cjs +1 -1
  700. package/dist/widgets/badge-wall.js +1 -1
  701. package/dist/widgets/bar-chart.cjs +1 -1
  702. package/dist/widgets/bar-chart.js +1 -1
  703. package/dist/widgets/bg-generator.cjs +1 -1
  704. package/dist/widgets/bg-generator.js +1 -1
  705. package/dist/widgets/carousel.cjs +1 -1
  706. package/dist/widgets/carousel.js +1 -1
  707. package/dist/widgets/cart-drawer.cjs +1 -1
  708. package/dist/widgets/cart-drawer.js +1 -1
  709. package/dist/widgets/chapter-nav.cjs +1 -1
  710. package/dist/widgets/chapter-nav.js +1 -1
  711. package/dist/widgets/chat-composer.cjs +1 -1
  712. package/dist/widgets/chat-composer.js +1 -1
  713. package/dist/widgets/clock-control.cjs +1 -1
  714. package/dist/widgets/clock-control.js +1 -1
  715. package/dist/widgets/code-export.cjs +1 -1
  716. package/dist/widgets/code-export.js +1 -1
  717. package/dist/widgets/color-picker.cjs +1 -1
  718. package/dist/widgets/color-picker.js +1 -1
  719. package/dist/widgets/command-palette.cjs +1 -1
  720. package/dist/widgets/command-palette.js +1 -1
  721. package/dist/widgets/compare.cjs +1 -1
  722. package/dist/widgets/compare.js +1 -1
  723. package/dist/widgets/countdown.cjs +1 -1
  724. package/dist/widgets/countdown.js +1 -1
  725. package/dist/widgets/cube-gallery.cjs +1 -1
  726. package/dist/widgets/cube-gallery.js +1 -1
  727. package/dist/widgets/date-picker.cjs +1 -1
  728. package/dist/widgets/date-picker.js +1 -1
  729. package/dist/widgets/disclosure.cjs +1 -1
  730. package/dist/widgets/disclosure.js +1 -1
  731. package/dist/widgets/dock.cjs +1 -1
  732. package/dist/widgets/dock.js +1 -1
  733. package/dist/widgets/dotlottie.cjs +1 -1
  734. package/dist/widgets/dotlottie.js +1 -1
  735. package/dist/widgets/equalizer.cjs +1 -1
  736. package/dist/widgets/equalizer.js +1 -1
  737. package/dist/widgets/festival-banner.cjs +1 -1
  738. package/dist/widgets/festival-banner.js +1 -1
  739. package/dist/widgets/field.cjs +1 -1
  740. package/dist/widgets/field.js +1 -1
  741. package/dist/widgets/file-drop.cjs +1 -1
  742. package/dist/widgets/file-drop.js +1 -1
  743. package/dist/widgets/gauge.cjs +1 -1
  744. package/dist/widgets/gauge.js +1 -1
  745. package/dist/widgets/gen-art.cjs +1 -1
  746. package/dist/widgets/gen-art.js +1 -1
  747. package/dist/widgets/gesture-sticker.cjs +1 -1
  748. package/dist/widgets/gesture-sticker.js +1 -1
  749. package/dist/widgets/gl-model.cjs +1 -1
  750. package/dist/widgets/gl-model.js +1 -1
  751. package/dist/widgets/gl-scene.cjs +2 -2
  752. package/dist/widgets/gl-scene.js +2 -2
  753. package/dist/widgets/globe.cjs +1 -1
  754. package/dist/widgets/globe.js +1 -1
  755. package/dist/widgets/gpu-particles.cjs +1 -1
  756. package/dist/widgets/gpu-particles.js +1 -1
  757. package/dist/widgets/gyro-card.cjs +1 -1
  758. package/dist/widgets/gyro-card.js +1 -1
  759. package/dist/widgets/hero-video.cjs +1 -1
  760. package/dist/widgets/hero-video.js +1 -1
  761. package/dist/widgets/hud-panel.cjs +1 -1
  762. package/dist/widgets/hud-panel.js +1 -1
  763. package/dist/widgets/hydrate.cjs +1 -1
  764. package/dist/widgets/hydrate.js +1 -1
  765. package/dist/widgets/install-button.cjs +1 -1
  766. package/dist/widgets/install-button.js +1 -1
  767. package/dist/widgets/kanban.cjs +1 -1
  768. package/dist/widgets/kanban.js +1 -1
  769. package/dist/widgets/keyframe-editor.cjs +1 -1
  770. package/dist/widgets/keyframe-editor.js +1 -1
  771. package/dist/widgets/kpi.cjs +1 -1
  772. package/dist/widgets/kpi.js +1 -1
  773. package/dist/widgets/leaderboard.cjs +1 -1
  774. package/dist/widgets/leaderboard.js +1 -1
  775. package/dist/widgets/liquid-nav.cjs +1 -1
  776. package/dist/widgets/liquid-nav.js +1 -1
  777. package/dist/widgets/location-card.cjs +1 -1
  778. package/dist/widgets/location-card.js +1 -1
  779. package/dist/widgets/lottie-icon.cjs +1 -1
  780. package/dist/widgets/lottie-icon.js +1 -1
  781. package/dist/widgets/lottie-player.cjs +2 -2
  782. package/dist/widgets/lottie-player.js +2 -2
  783. package/dist/widgets/lottie.cjs +1 -1
  784. package/dist/widgets/lottie.js +1 -1
  785. package/dist/widgets/lyrics.cjs +1 -1
  786. package/dist/widgets/lyrics.js +1 -1
  787. package/dist/widgets/masonry-flow.cjs +1 -1
  788. package/dist/widgets/masonry-flow.js +1 -1
  789. package/dist/widgets/menu-toggle.cjs +1 -1
  790. package/dist/widgets/menu-toggle.js +1 -1
  791. package/dist/widgets/menu.cjs +1 -1
  792. package/dist/widgets/menu.js +1 -1
  793. package/dist/widgets/message-list.cjs +1 -1
  794. package/dist/widgets/message-list.js +1 -1
  795. package/dist/widgets/milestones.cjs +1 -1
  796. package/dist/widgets/milestones.js +1 -1
  797. package/dist/widgets/modal.cjs +1 -1
  798. package/dist/widgets/modal.js +1 -1
  799. package/dist/widgets/motion-inspector.cjs +2 -2
  800. package/dist/widgets/motion-inspector.js +2 -2
  801. package/dist/widgets/motion-prefs.cjs +1 -1
  802. package/dist/widgets/motion-prefs.js +1 -1
  803. package/dist/widgets/motion-prompt.cjs +1 -1
  804. package/dist/widgets/motion-prompt.js +1 -1
  805. package/dist/widgets/motion-spec.cjs +1 -1
  806. package/dist/widgets/motion-spec.js +1 -1
  807. package/dist/widgets/motion.cjs +1 -1
  808. package/dist/widgets/motion.js +1 -1
  809. package/dist/widgets/music-player.cjs +1 -1
  810. package/dist/widgets/music-player.js +1 -1
  811. package/dist/widgets/native-preview.cjs +1 -1
  812. package/dist/widgets/native-preview.js +1 -1
  813. package/dist/widgets/nav-morph.cjs +1 -1
  814. package/dist/widgets/nav-morph.js +1 -1
  815. package/dist/widgets/notification-bell.cjs +1 -1
  816. package/dist/widgets/notification-bell.js +1 -1
  817. package/dist/widgets/odometer.cjs +1 -1
  818. package/dist/widgets/odometer.js +1 -1
  819. package/dist/widgets/organic-card.cjs +1 -1
  820. package/dist/widgets/organic-card.js +1 -1
  821. package/dist/widgets/otp.cjs +1 -1
  822. package/dist/widgets/otp.js +1 -1
  823. package/dist/widgets/pagination.cjs +1 -1
  824. package/dist/widgets/pagination.js +1 -1
  825. package/dist/widgets/panorama.cjs +1 -1
  826. package/dist/widgets/panorama.js +1 -1
  827. package/dist/widgets/parallax-layers.cjs +1 -1
  828. package/dist/widgets/parallax-layers.js +1 -1
  829. package/dist/widgets/pause-all.cjs +1 -1
  830. package/dist/widgets/pause-all.js +1 -1
  831. package/dist/widgets/perf-monitor.cjs +1 -1
  832. package/dist/widgets/perf-monitor.js +1 -1
  833. package/dist/widgets/physics-playground.cjs +2 -2
  834. package/dist/widgets/physics-playground.js +2 -2
  835. package/dist/widgets/plugin-card.cjs +3 -3
  836. package/dist/widgets/plugin-card.js +3 -3
  837. package/dist/widgets/plugin-store.cjs +1 -1
  838. package/dist/widgets/plugin-store.js +1 -1
  839. package/dist/widgets/presence.cjs +1 -1
  840. package/dist/widgets/presence.js +1 -1
  841. package/dist/widgets/prize-wheel.cjs +1 -1
  842. package/dist/widgets/prize-wheel.js +1 -1
  843. package/dist/widgets/product-gallery.cjs +1 -1
  844. package/dist/widgets/product-gallery.js +1 -1
  845. package/dist/widgets/progress-ring.cjs +1 -1
  846. package/dist/widgets/progress-ring.js +1 -1
  847. package/dist/widgets/prop-panel.cjs +1 -1
  848. package/dist/widgets/prop-panel.js +1 -1
  849. package/dist/widgets/pull-cord.cjs +1 -1
  850. package/dist/widgets/pull-cord.js +1 -1
  851. package/dist/widgets/radar.cjs +1 -1
  852. package/dist/widgets/radar.js +1 -1
  853. package/dist/widgets/reactions.cjs +1 -1
  854. package/dist/widgets/reactions.js +1 -1
  855. package/dist/widgets/red-envelope.cjs +1 -1
  856. package/dist/widgets/red-envelope.js +1 -1
  857. package/dist/widgets/retro-button.cjs +1 -1
  858. package/dist/widgets/retro-button.js +1 -1
  859. package/dist/widgets/rive.cjs +1 -1
  860. package/dist/widgets/rive.js +1 -1
  861. package/dist/widgets/route-transition.cjs +1 -1
  862. package/dist/widgets/route-transition.js +1 -1
  863. package/dist/widgets/scene.cjs +1 -1
  864. package/dist/widgets/scene.js +1 -1
  865. package/dist/widgets/scroll-ring.cjs +1 -1
  866. package/dist/widgets/scroll-ring.js +1 -1
  867. package/dist/widgets/scroll-scene.cjs +2 -2
  868. package/dist/widgets/scroll-scene.js +2 -2
  869. package/dist/widgets/segmented.cjs +1 -1
  870. package/dist/widgets/segmented.js +1 -1
  871. package/dist/widgets/shader-backdrop.cjs +1 -1
  872. package/dist/widgets/shader-backdrop.js +1 -1
  873. package/dist/widgets/sheet.cjs +1 -1
  874. package/dist/widgets/sheet.js +1 -1
  875. package/dist/widgets/shortcut.cjs +1 -1
  876. package/dist/widgets/shortcut.js +1 -1
  877. package/dist/widgets/skeleton-reveal.cjs +1 -1
  878. package/dist/widgets/skeleton-reveal.js +1 -1
  879. package/dist/widgets/sketch-chart.cjs +1 -1
  880. package/dist/widgets/sketch-chart.js +1 -1
  881. package/dist/widgets/smooth-scroll.cjs +2 -2
  882. package/dist/widgets/smooth-scroll.js +2 -2
  883. package/dist/widgets/snap-carousel.cjs +1 -1
  884. package/dist/widgets/snap-carousel.js +1 -1
  885. package/dist/widgets/sparkline.cjs +1 -1
  886. package/dist/widgets/sparkline.js +1 -1
  887. package/dist/widgets/spatial-card.cjs +1 -1
  888. package/dist/widgets/spatial-card.js +1 -1
  889. package/dist/widgets/star-rating.cjs +1 -1
  890. package/dist/widgets/star-rating.js +1 -1
  891. package/dist/widgets/stepper.cjs +1 -1
  892. package/dist/widgets/stepper.js +1 -1
  893. package/dist/widgets/sticky-wall.cjs +1 -1
  894. package/dist/widgets/sticky-wall.js +1 -1
  895. package/dist/widgets/stories.cjs +1 -1
  896. package/dist/widgets/stories.js +1 -1
  897. package/dist/widgets/suggestion-chips.cjs +1 -1
  898. package/dist/widgets/suggestion-chips.js +1 -1
  899. package/dist/widgets/swipe-deck.cjs +1 -1
  900. package/dist/widgets/swipe-deck.js +1 -1
  901. package/dist/widgets/switch.cjs +1 -1
  902. package/dist/widgets/switch.js +1 -1
  903. package/dist/widgets/tab-bar.cjs +1 -1
  904. package/dist/widgets/tab-bar.js +1 -1
  905. package/dist/widgets/terminal.cjs +1 -1
  906. package/dist/widgets/terminal.js +1 -1
  907. package/dist/widgets/text-splitter.cjs +3 -3
  908. package/dist/widgets/text-splitter.js +3 -3
  909. package/dist/widgets/theme-surface.cjs +1 -1
  910. package/dist/widgets/theme-surface.js +1 -1
  911. package/dist/widgets/theme-switcher.cjs +1 -1
  912. package/dist/widgets/theme-switcher.js +1 -1
  913. package/dist/widgets/tip.cjs +1 -1
  914. package/dist/widgets/tip.js +1 -1
  915. package/dist/widgets/toast-stack.cjs +1 -1
  916. package/dist/widgets/toast-stack.js +1 -1
  917. package/dist/widgets/token-editor.cjs +1 -1
  918. package/dist/widgets/token-editor.js +1 -1
  919. package/dist/widgets/upload-progress.cjs +1 -1
  920. package/dist/widgets/upload-progress.js +1 -1
  921. package/dist/widgets/video-card.cjs +1 -1
  922. package/dist/widgets/video-card.js +1 -1
  923. package/dist/widgets/voice-button.cjs +1 -1
  924. package/dist/widgets/voice-button.js +1 -1
  925. package/dist/widgets/volume-knob.cjs +1 -1
  926. package/dist/widgets/volume-knob.js +1 -1
  927. package/dist/widgets/weather-card.cjs +1 -1
  928. package/dist/widgets/weather-card.js +1 -1
  929. package/dist/widgets/worker-canvas.cjs +1 -1
  930. package/dist/widgets/worker-canvas.js +1 -1
  931. package/dist/widgets/xp-bar.cjs +1 -1
  932. package/dist/widgets/xp-bar.js +1 -1
  933. package/dist/widgets.umd.js +2 -2
  934. package/docs/components/usa-auto-animate.md +4 -2
  935. package/docs/components/usa-badge-wall.md +1 -1
  936. package/docs/components/usa-bar-chart.md +1 -1
  937. package/docs/components/usa-cart-drawer.md +1 -1
  938. package/docs/components/usa-chat-composer.md +1 -1
  939. package/docs/components/usa-clock-control.md +3 -0
  940. package/docs/components/usa-command-palette.md +1 -1
  941. package/docs/components/usa-equalizer.md +1 -1
  942. package/docs/components/usa-file-drop.md +1 -0
  943. package/docs/components/usa-globe.md +1 -1
  944. package/docs/components/usa-keyframe-editor.md +1 -0
  945. package/docs/components/usa-leaderboard.md +1 -1
  946. package/docs/components/usa-loading-bar.md +1 -1
  947. package/docs/components/usa-message-list.md +1 -1
  948. package/docs/components/usa-notification-bell.md +1 -1
  949. package/docs/components/usa-otp.md +1 -1
  950. package/docs/components/usa-pull-refresh.md +1 -1
  951. package/docs/components/usa-upload-progress.md +1 -1
  952. package/docs/components/usa-voice-button.md +1 -1
  953. package/docs/components/usa-xp-bar.md +3 -1
  954. package/docs/mcp-gateway-interop.md +77 -0
  955. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DU4Fqojq.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CX6Esj3Z.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/gl` (10.5) — a small WebGL2 scene renderer written for
@@ -750,4 +750,4 @@ const gl = {
750
750
  };
751
751
 
752
752
  export { Camera, GlNode, Scene, bounds, box, color, computeNormals, createRenderer, frameNode, gl, mat4, orbitControls, plane, quatFromEuler, quatMultiply, quatSlerp, scrubVideo, shaderMaterial, sphere, standardMaterial, texture, torus, unlitMaterial };
753
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/gl.js.map
753
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/gl.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-KZcxpR09.cjs');
3
+ var registry = require('../chunks/registry-DlT6mFCX.cjs');
4
4
  var runtime_gl = require('./gl.cjs');
5
5
 
6
6
  /**
@@ -248,4 +248,4 @@ exports.gltfAnim = gltfAnim;
248
248
  exports.gltfAnimator = gltfAnimator;
249
249
  exports.gltfClips = gltfClips;
250
250
  exports.sampleChannel = sampleChannel;
251
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/gltf-anim.cjs.map
251
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/gltf-anim.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(t,n){"use strict";const e={identity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),multiply(t,n,e=new Float32Array(16)){for(let o=0;o<4;o++)for(let r=0;r<4;r++)e[4*o+r]=t[r]*n[4*o]+t[4+r]*n[4*o+1]+t[8+r]*n[4*o+2]+t[12+r]*n[4*o+3];return e},perspective(t,n,e,o){const r=1/Math.tan(t/2),i=1/(e-o);return new Float32Array([r/n,0,0,0,0,r,0,0,0,0,(o+e)*i,-1,0,0,2*o*e*i,0])},lookAt(t,n,e=[0,1,0]){let a=o(t,n);a=s(a.some(t=>t)?a:[0,0,1]);let l=i(e,a);l.some(t=>Math.abs(t)>1e-9)||(l=i([0,0,1],a)),l=s(l);const m=i(a,l);return new Float32Array([l[0],m[0],a[0],0,l[1],m[1],a[1],0,l[2],m[2],a[2],0,-r(l,t),-r(m,t),-r(a,t),1])},compose(t,n,e){const[o,r,i,s]=n,a=o+o,l=r+r,m=i+i,c=o*a,p=o*l,u=o*m,f=r*l,h=r*m,g=i*m,d=s*a,y=s*l,M=s*m;return new Float32Array([(1-(f+g))*e[0],(p+M)*e[0],(u-y)*e[0],0,(p-M)*e[1],(1-(c+g))*e[1],(h+d)*e[1],0,(u+y)*e[2],(h-d)*e[2],(1-(c+f))*e[2],0,t[0],t[1],t[2],1])},invert(t){const n=new Float32Array(16),[e,o,r,i,s,a,l,m,c,p,u,f,h,g,d,y]=t,M=e*a-o*s,w=e*l-r*s,A=e*m-i*s,v=o*l-r*a,C=o*m-i*a,F=r*m-i*l,b=c*g-p*h,k=c*d-u*h,x=c*y-f*h,E=p*d-u*g,I=p*y-f*g,N=u*y-f*d;let j=M*N-w*I+A*E+v*x-C*k+F*b;return j?(j=1/j,n[0]=(a*N-l*I+m*E)*j,n[1]=(r*I-o*N-i*E)*j,n[2]=(g*F-d*C+y*v)*j,n[3]=(u*C-p*F-f*v)*j,n[4]=(l*x-s*N-m*k)*j,n[5]=(e*N-r*x+i*k)*j,n[6]=(d*A-h*F-y*w)*j,n[7]=(c*F-u*A+f*w)*j,n[8]=(s*I-a*x+m*b)*j,n[9]=(o*x-e*I-i*b)*j,n[10]=(h*C-g*A+y*M)*j,n[11]=(p*A-c*C-f*M)*j,n[12]=(a*k-s*E-l*b)*j,n[13]=(e*E-o*k+r*b)*j,n[14]=(g*w-h*v-d*M)*j,n[15]=(c*v-p*w+u*M)*j,n):null},normal(t){const n=e.invert(t)||e.identity();return new Float32Array([n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]])},transformPoint(t,n){const e=t[3]*n[0]+t[7]*n[1]+t[11]*n[2]+t[15]||1;return[(t[0]*n[0]+t[4]*n[1]+t[8]*n[2]+t[12])/e,(t[1]*n[0]+t[5]*n[1]+t[9]*n[2]+t[13])/e,(t[2]*n[0]+t[6]*n[1]+t[10]*n[2]+t[14])/e]}},o=(t,n)=>[t[0]-n[0],t[1]-n[1],t[2]-n[2]],r=(t,n)=>t[0]*n[0]+t[1]*n[1]+t[2]*n[2],i=(t,n)=>[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]],s=t=>{const n=Math.hypot(t[0],t[1],t[2])||1;return[t[0]/n,t[1]/n,t[2]/n]};const a=t=>{const n=t.extras;if(!n?.gltf||!n.read)throw new Error("[motionary] gltf-anim: pass the node returned by loadGltf() / gltfToNode() (motionary/runtime/format-gltf 10.8+)");return n};function l(t){const{gltf:n,nodes:e,read:o}=a(t);return(n.animations||[]).map((t,n)=>{let r=0;const i=[];for(const n of t.channels||[]){const s=e[n.target?.node],a=t.samplers?.[n.sampler];if(!s||!a||!["translation","rotation","scale","weights"].includes(n.target.path))continue;const l=o(a.input),m=o(a.output),c=a.interpolation||"LINEAR",p=m.length/l.length/("CUBICSPLINE"===c?3:1);r=Math.max(r,l[l.length-1]||0),i.push({node:s,path:n.target.path,interpolation:c,times:l,values:m,size:p})}return{name:t.name||`animation${n}`,duration:r,channels:i}})}function m(t,n){const{times:e,values:o,size:r}=t,i="CUBICSPLINE"===t.interpolation,s=t=>Array.from(o.subarray((i?3*t+1:t)*r,(i?3*t+1:t)*r+r)),a=e.length-1;if(n<=e[0]||0===a)return s(0);if(n>=e[a])return s(a);let l=0;for(;l<a-1&&e[l+1]<=n;)l++;const m=e[l+1]-e[l],c=(n-e[l])/m;let p;if("STEP"===t.interpolation)return s(l);if(i){const n=c*c,e=n*c,i=2*e-3*n+1,s=e-2*n+c,a=-2*e+3*n,u=e-n,f=3*l*r,h=3*(l+1)*r;if(p=Array.from({length:r},(t,n)=>i*o[f+r+n]+s*m*o[f+2*r+n]+a*o[h+r+n]+u*m*o[h+n]),"rotation"===t.path){const t=Math.hypot(...p)||1;p=p.map(n=>n/t)}return p}const u=s(l),f=s(l+1);return"rotation"===t.path?function(t,n,e){let o=t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3];const r=o<0?n.map(t=>-t):n;if(o=Math.abs(o),o>.9995){const n=t.map((t,n)=>t+(r[n]-t)*e),o=Math.hypot(...n)||1;return n.map(t=>t/o)}const i=Math.acos(o),s=Math.sin(i),a=Math.sin((1-e)*i)/s,l=Math.sin(e*i)/s;return t.map((t,n)=>t*a+r[n]*l)}(u,f,c):u.map((t,n)=>t+(f[n]-t)*c)}function c(t,n){for(const e of t.channels){const t=m(e,n),o=e.node;"weights"===e.path?o.extras.weights=t:(o.matrix=null,"translation"===e.path?o.position=t:"rotation"===e.path?o.rotation=t:o.scale=t)}}const p=t=>t.mesh?Array.isArray(t.mesh)?t.mesh:[t.mesh]:[];function u(t){var n;const{gltf:o,nodes:r,read:i}=a(t);t.updateWorld();let s=0;const l=(n=t.extras).skinCache||(n.skinCache={});for(const t of r){const n=p(t);if(!n.length)continue;const a=t.extras.skin;let m=null;if(void 0!==a&&o.skins?.[a]){const n=o.skins[a],s=l[a]||(l[a]={joints:n.joints.map(t=>r[t]),ibm:n.joints.map((t,o)=>void 0!==n.inverseBindMatrices?new Float32Array(i(n.inverseBindMatrices).subarray(16*o,16*o+16)):e.identity())}),c=e.invert(t.world)||e.identity();m=s.joints.map((t,n)=>e.multiply(c,e.multiply(t.world,s.ibm[n])))}const c=t.extras.weights||[];for(const t of n){const n=t.geometry,e=n.deform;e&&(m||e.targets?.length)&&(f(n,e,c,m),s++)}}return s}function f(t,n,e,o){const r=n.positions,i=n.normals,s=r.length/3,a=t.positions!==r&&t.positions.length===r.length?t.positions:t.positions=new Float32Array(r.length),l=i?t.normals&&t.normals!==i&&t.normals.length===i.length?t.normals:t.normals=new Float32Array(i.length):null;if(a.set(r),l&&i&&l.set(i),(n.targets||[]).forEach((t,n)=>{const o=e[n]||0;if(o){if(t.positions)for(let n=0;n<a.length;n++)a[n]+=o*t.positions[n];if(t.normals&&l)for(let n=0;n<l.length;n++)l[n]+=o*t.normals[n]}}),o&&n.joints&&n.weights){const t=n.joints,e=n.weights,r=new Float32Array(16);for(let n=0;n<s;n++){r.fill(0);let i=0;for(let s=0;s<4;s++){const a=e[4*n+s];if(!a)continue;const l=o[t[4*n+s]];if(l){i+=a;for(let t=0;t<16;t++)r[t]+=a*l[t]}}if(!i)continue;const s=a[3*n],m=a[3*n+1],c=a[3*n+2];if(a[3*n]=r[0]*s+r[4]*m+r[8]*c+r[12],a[3*n+1]=r[1]*s+r[5]*m+r[9]*c+r[13],a[3*n+2]=r[2]*s+r[6]*m+r[10]*c+r[14],l){const t=l[3*n],e=l[3*n+1],o=l[3*n+2],i=r[0]*t+r[4]*e+r[8]*o,s=r[1]*t+r[5]*e+r[9]*o,a=r[2]*t+r[6]*e+r[10]*o,m=Math.hypot(i,s,a)||1;l[3*n]=i/m,l[3*n+1]=s/m,l[3*n+2]=a/m}}}t.version=(t.version||0)+1}function h(t,e={}){const o=l(t);let r=null,i=null;const s=t=>("number"==typeof t?o[t]:o.find(n=>n.name===t)||o[Number(t)])||null,a=()=>{r&&c(r,m.time),u(t)},m={clips:o,get clip(){return r},time:0,speed:e.speed??1,loop:e.loop??!0,get playing(){return!!i},use(t){r=s(t),m.time=0,a()},seek(t){const n=r?.duration||0;m.time=n?m.loop?(t%n+n)%n:Math.min(n,Math.max(0,t)):0,a()},update(t){m.seek(m.time+t*m.speed)},play(){i||(i=n.requireModule("core","motionary/runtime/gltf-anim").getTicker().add((t,n)=>m.update(Math.min(n,100)/1e3)))},pause(){i?.(),i=null},dispose(){m.pause()}};return r=s(e.clip??0),a(),m}const g={id:"gltf-anim",version:n.RUNTIME_VERSION,tier:"advanced",requires:["core","gl","format-gltf"],api:{gltfClips:l,sampleChannel:m,applyClip:c,deformModel:u,deformGeometry:f,gltfAnimator:h}};n.register(g),t.applyClip=c,t.deformGeometry=f,t.deformModel=u,t.gltfAnim=g,t.gltfAnimator=h,t.gltfClips=l,t.sampleChannel=m}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/gltf-anim.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/gltf-anim.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-DU4Fqojq.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-CX6Esj3Z.js';
2
2
  import { mat4, quatSlerp } from './gl.js';
3
3
 
4
4
  /**
@@ -240,4 +240,4 @@ function gltfAnimator(root, o = {}) {
240
240
  const gltfAnim = { id: 'gltf-anim', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl', 'format-gltf'], api: { gltfClips, sampleChannel, applyClip, deformModel, deformGeometry, gltfAnimator } };
241
241
 
242
242
  export { applyClip, deformGeometry, deformModel, gltfAnim, gltfAnimator, gltfClips, sampleChannel };
243
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/gltf-anim.js.map
243
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/gltf-anim.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-KZcxpR09.cjs');
3
+ var registry = require('../chunks/registry-DlT6mFCX.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/gltf-decoders` (10.9) — hooks that let
@@ -156,4 +156,4 @@ exports.prepareGltf = prepareGltf;
156
156
  exports.provideGltfDecoder = provideGltfDecoder;
157
157
  exports.providedDecoders = providedDecoders;
158
158
  exports.transcodeKtx2 = transcodeKtx2;
159
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/gltf-decoders.cjs.map
159
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/gltf-decoders.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(e,t){"use strict";const r={},o={},s={KHR_draco_mesh_compression:"draco",KHR_texture_basisu:"ktx2"},n={draco:"npm i draco3d — then provideGltfDecoder('draco', () => import('draco3d')) (CDN: https://www.gstatic.com/draco/versioned/decoders/1.5.7/draco_decoder.js)",ktx2:"copy basis_transcoder.js + basis_transcoder.wasm from https://github.com/BinomialLLC/basis_universal (webgl/transcoder/build) — then provideGltfDecoder('ktx2', () => import('/vendor/basis_transcoder.js'))"};function i(e,t){r[e]=t,delete o[e]}const a=()=>Object.keys(r),c=(e,t)=>{const s=r[e];if(!s)throw new Error(`[motionary] gltf-decoders: this file uses ${t}, which needs the official decoder — ${n[e]}`);return o[e]||(o[e]=Promise.resolve(s()).then(async t=>{const r=t?.default??t;if("draco"===e)return r.createDecoderModule?r.createDecoderModule({}):"function"==typeof r?r({}):r;const o="function"==typeof r?await r():r;return o.initializeBasis?.(),o}))};function d(e,t,r){const o=new e.Decoder,s=new e.DecoderBuffer,n=new e.Mesh;try{s.Init(new Int8Array(t.buffer,t.byteOffset,t.byteLength),t.byteLength);const i=o.DecodeBufferToMesh(s,n);if(!i.ok()||!n.ptr)throw new Error("[motionary] gltf-decoders: Draco decode failed — "+i.error_msg());const a=n.num_points(),c=n.num_faces(),d={};for(const[t,s]of Object.entries(r)){const r=o.GetAttributeByUniqueId(n,s),i=r.num_components(),c=a*i*4,f=e._malloc(c);o.GetAttributeDataArrayForAllPoints(n,r,e.DT_FLOAT32,c,f),d[t]={data:new Float32Array(e.HEAPF32.buffer,f,a*i).slice(),size:i},e._free(f)}const f=12*c,u=e._malloc(f);o.GetTrianglesUInt32Array(n,f,u);const l=new Uint32Array(e.HEAPU32.buffer,u,3*c).slice();return e._free(u),{attributes:d,indices:l,count:a}}finally{e.destroy(n),e.destroy(s),e.destroy(o)}}function f(e,t){const r=new e.KTX2File(new Uint8Array(t));try{if(!r.isValid())throw new Error("[motionary] gltf-decoders: not a valid KTX2 file");const t=r.getWidth(),o=r.getHeight();if(!r.startTranscoding())throw new Error("[motionary] gltf-decoders: KTX2 startTranscoding failed");const s=e.transcoder_texture_format?.cTFRGBA32?.value??e.transcoder_texture_format?.cTFRGBA32??13,n=new Uint8Array(r.getImageTranscodedSizeInBytes(0,0,0,s));if(!r.transcodeImage(n,0,0,0,s,0,-1,-1))throw new Error("[motionary] gltf-decoders: KTX2 transcode failed");return{width:t,height:o,data:n}}finally{r.close?.(),r.delete?.()}}async function u(e,t){if(![...e.extensionsUsed||[],...e.extensionsRequired||[]].some(e=>e in s))return{json:e,buffers:t,images:{}};const r=JSON.parse(JSON.stringify(e)),o=t.slice(),n={},i=(e,t,s)=>(o.push(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),(r.bufferViews||(r.bufferViews=[])).push({buffer:o.length-1,byteLength:e.byteLength}),(r.accessors||(r.accessors=[])).push({bufferView:r.bufferViews.length-1,componentType:e instanceof Uint32Array?5125:5126,count:s,type:t}),r.accessors.length-1),a=e=>{const t=r.bufferViews[e];return o[t.buffer].subarray(t.byteOffset||0,(t.byteOffset||0)+t.byteLength)};for(const e of r.meshes||[])for(const t of e.primitives||[]){const e=t.extensions?.KHR_draco_mesh_compression;if(!e)continue;const r=d(await c("draco","KHR_draco_mesh_compression"),a(e.bufferView),e.attributes);for(const[e,o]of Object.entries(r.attributes))t.attributes[e]=i(o.data,["SCALAR","VEC2","VEC3","VEC4"][o.size-1],r.count);t.indices=i(r.indices,"SCALAR",r.indices.length),delete t.extensions.KHR_draco_mesh_compression}for(const e of r.textures||[]){const t=e.extensions?.KHR_texture_basisu?.source;if(void 0===t)continue;const o=await c("ktx2","KHR_texture_basisu"),s=r.images[t],i=void 0!==s.bufferView?a(s.bufferView):new Uint8Array(await(await fetch(s.uri)).arrayBuffer()),{width:d,height:u,data:l}=f(o,i);n[t]="undefined"!=typeof ImageData?new ImageData(new Uint8ClampedArray(l),d,u):{width:d,height:u,data:l},e.source=t,delete e.extensions.KHR_texture_basisu}const u=e=>e?.filter(e=>!(e in s));return r.extensionsRequired=u(r.extensionsRequired),r.extensionsUsed=u(r.extensionsUsed),{json:r,buffers:o,images:n}}const l={id:"gltf-decoders",version:t.RUNTIME_VERSION,tier:"advanced",requires:["core","gl","format-gltf"],api:{provideGltfDecoder:i,providedDecoders:a,prepareGltf:u,decodeDraco:d,transcodeKtx2:f,DECODER_EXTENSIONS:s}};t.register(l),e.DECODER_EXTENSIONS=s,e.DECODER_HELP=n,e.decodeDraco=d,e.gltfDecoders=l,e.prepareGltf=u,e.provideGltfDecoder=i,e.providedDecoders=a,e.transcodeKtx2=f}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/gltf-decoders.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/gltf-decoders.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DU4Fqojq.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CX6Esj3Z.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/gltf-decoders` (10.9) — hooks that let
@@ -147,4 +147,4 @@ async function prepareGltf(json, buffers) {
147
147
  const gltfDecoders = { id: 'gltf-decoders', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl', 'format-gltf'], api: { provideGltfDecoder, providedDecoders, prepareGltf, decodeDraco, transcodeKtx2, DECODER_EXTENSIONS } };
148
148
 
149
149
  export { DECODER_EXTENSIONS, DECODER_HELP, decodeDraco, gltfDecoders, prepareGltf, provideGltfDecoder, providedDecoders, transcodeKtx2 };
150
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/gltf-decoders.js.map
150
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/gltf-decoders.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-KZcxpR09.cjs');
3
+ var registry = require('../chunks/registry-DlT6mFCX.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/lottie-state` (10.9) — dotLottie **themes** (slots) and a
@@ -243,4 +243,4 @@ exports.createStateMachine = createStateMachine;
243
243
  exports.inspectStateMachine = inspectStateMachine;
244
244
  exports.lottieState = lottieState;
245
245
  exports.ruleProp = ruleProp;
246
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/lottie-state.cjs.map
246
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/lottie-state.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(e,t){"use strict";const n=e=>JSON.parse(JSON.stringify(e));function a(e){return"Text"===e.type?null:e.keyframes?.length?{a:1,k:e.keyframes.map((t,n)=>{return{t:t.frame,s:(a=t.value,Array.isArray(a)?a:[a]),...t.hold?{h:1}:{},...n<e.keyframes.length-1?{o:t.outTangent||{x:[0],y:[0]},i:e.keyframes[n+1].inTangent||{x:[1],y:[1]}}:{}};var a}),...e.expression?{x:e.expression}:{}}:{a:0,k:"Scalar"===e.type&&Array.isArray(e.value)?e.value[0]:e.value,...e.expression?{x:e.expression}:{}}}function r(e,t,r){const s=n(e),o={};for(const[e,t]of Object.entries(s.slots||{}))o[e]=t?.p??t;const i={};for(const e of t?.rules||[])e.animations?.length&&r&&!e.animations.includes(r)||("Text"===e.type?i[e.id]=e.value:"Image"!==e.type&&(o[e.id]=a(e)));const c=e=>{if(e&&"object"==typeof e){if(Array.isArray(e))return e.forEach(c);if("string"==typeof e.sid)if(void 0!==i[e.sid]&&e.k?.[0]?.s)for(const t of e.k)t.s={...t.s,..."string"==typeof i[e.sid]?{t:i[e.sid]}:i[e.sid]};else if(o[e.sid]){const t=o[e.sid];delete e.a,delete e.k,delete e.x,Object.assign(e,n(t))}for(const t in e)"slots"!==t&&c(e[t])}};return c(s.layers),(s.assets||[]).forEach(e=>c(e.layers)),s}const s=["Fire","SetNumeric","SetString","SetBoolean","Toggle","Increment","Decrement","Reset","SetTheme","SetFrame","SetProgress","FireCustomEvent"],o=["PointerDown","PointerUp","PointerEnter","PointerExit","PointerMove","Click","OnComplete","OnLoopComplete"];function i(e){const t=new Set;e?.states?.length||t.add("no states");for(const n of e?.states||[]){n.type&&!["PlaybackState","GlobalState"].includes(n.type)&&t.add(`state type ${n.type}`);for(const e of[...n.entryActions||[],...n.exitActions||[]])s.includes(e.type)||t.add(`action ${e.type}`)}for(const n of e?.interactions||[]){o.includes(n.type)||t.add(`interaction ${n.type}`);for(const e of n.actions||[])s.includes(e.type)||t.add(`action ${e.type}`)}return[...t]}function c(e,t="Equal",n){switch(t){case"NotEqual":return e!==n;case"GreaterThan":return e>n;case"GreaterThanOrEqual":return e>=n;case"LessThan":return e<n;case"LessThanOrEqual":return e<=n;default:return e===n}}function l(e,t={}){const n=new Map(e.states.map(e=>[e.name,e])),a=()=>Object.fromEntries((e.inputs||[]).filter(e=>"Event"!==e.type).map(e=>[e.name,e.value??("Numeric"===e.type?0:"Boolean"!==e.type&&"")]));let r=a(),s=n.get(e.initial)||e.states[0],o=null;const i=e.states.filter(e=>"GlobalState"===e.type),l=e=>"Event"===e.type?o===e.inputName:c(r[e.inputName],e.conditionType,e.compareTo),u=n=>{for(const a of n||[]){const n=a.inputName||"";switch(a.type){case"Fire":y(n);break;case"SetNumeric":case"SetString":case"SetBoolean":d(n,a.value);break;case"Toggle":d(n,!r[n]);break;case"Increment":d(n,(r[n]||0)+(a.value??1));break;case"Decrement":d(n,(r[n]||0)-(a.value??1));break;case"Reset":d(n,(e.inputs||[]).find(e=>e.name===n)?.value);break;case"SetTheme":t.onTheme?.(a.themeId||a.value);break;case"SetFrame":t.onFrame?.(Number(a.value)||0);break;case"SetProgress":t.onProgress?.(Math.min(1,Math.max(0,Number(a.value)||0)));break;case"FireCustomEvent":t.onCustomEvent?.(String(a.value??n))}}};let f=0;const m=e=>{const n=s;u(n.exitActions),s=e,t.onState?.(e,n),u(e.entryActions)},p=()=>{if(!(f>16)){f++;for(const t of(t=>[...t.transitions||[],...(e.transitions||[]).filter(e=>e.fromState===t.name||"*"===e.fromState||void 0===e.fromState),...i.flatMap(e=>e===t?[]:e.transitions||[])])(s)){const e=n.get(t.toState);if(e&&e!==s&&((t.guards||[]).every(l)&&(t.guards?.length||null===o))){o=null,m(e),p();break}}f--}};function y(e){o=e,p(),o=null}function d(e,t){r={...r,[e]:t},p()}const S={get state(){return s},get inputs(){return r},fire:y,set:d,interact(t,n){for(const a of e.interactions||[])a.type===t&&(a.layerName&&void 0!==n&&a.layerName!==n||a.stateName&&a.stateName!==s.name||u(a.actions))},reset(){r=a(),m(n.get(e.initial)||e.states[0])}};return t.onState?.(s,null),u(s.entryActions),S}const u={id:"lottie-state",version:t.RUNTIME_VERSION,tier:"standard",requires:["core","vector"],api:{applyTheme:r,ruleProp:a,createStateMachine:l,inspectStateMachine:i,compare:c}};t.register(u),e.applyTheme=r,e.compare=c,e.createStateMachine=l,e.inspectStateMachine=i,e.lottieState=u,e.ruleProp=a}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/lottie-state.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/lottie-state.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DU4Fqojq.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CX6Esj3Z.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/lottie-state` (10.9) — dotLottie **themes** (slots) and a
@@ -236,4 +236,4 @@ function createStateMachine(def, hooks = {}) {
236
236
  const lottieState = { id: 'lottie-state', version: RUNTIME_VERSION, tier: 'standard', requires: ['core', 'vector'], api: { applyTheme, ruleProp, createStateMachine, inspectStateMachine, compare } };
237
237
 
238
238
  export { applyTheme, compare, createStateMachine, inspectStateMachine, lottieState, ruleProp };
239
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/lottie-state.js.map
239
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/lottie-state.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-KZcxpR09.cjs');
3
+ var registry = require('../chunks/registry-DlT6mFCX.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/physics` (10.7) — a small 2D rigid-body engine written
@@ -736,4 +736,4 @@ exports.collide = collide;
736
736
  exports.createWorld = createWorld;
737
737
  exports.dragConstraint = dragConstraint;
738
738
  exports.physics = physics;
739
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/physics.cjs.map
739
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/physics.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(t,i){"use strict";const s=(t=0,i=0)=>({x:t,y:i}),n=(t,i)=>t.x*i.x+t.y*i.y,e=(t,i)=>t.x*i.y-t.y*i.x,o=(t,i)=>s(t.x-i.x,t.y-i.y),a=(t,i)=>s(t.x+i.x,t.y+i.y),r=(t,i)=>s(t.x*i,t.y*i),h=t=>Math.hypot(t.x,t.y),l=(t,i)=>s(-t*i.y,t*i.x),c=(t,i,n)=>s(t.x*i-t.y*n,t.x*n+t.y*i);let p=1;class f{constructor(t={}){this.id=p++,this.force=s(),this.torque=0,this.radius=0,this.verts=[],this.normals=[],this.mass=0,this.invMass=0,this.inertia=0,this.invInertia=0,this.sleeping=!1,this.sleepTime=0,this.aabb={minX:0,minY:0,maxX:0,maxY:0},this.wv=[],this.wvAngle=NaN,this.wvPos=s(NaN,NaN),this.shape=t.shape||(t.vertices?"polygon":null!=t.radius&&null==t.width?"circle":"box"),this.type=t.type||"dynamic",this.label=t.label||this.shape,this.position=s(t.x||0,t.y||0),this.velocity=s(t.vx||0,t.vy||0),this.angle=t.angle||0,this.angularVelocity=t.angularVelocity||0,this.restitution=t.restitution??.2,this.friction=t.friction??.4,this.damping=t.damping??0,this.angularDamping=t.angularDamping??.01,this.sensor=!!t.sensor,this.category=t.category??1,this.mask=t.mask??4294967295,this.data=t.data;const i=t.density??.001;let a=0,l=0;if("circle"===this.shape)this.radius=t.radius??20,a=Math.PI*this.radius**2,l=.5*this.radius**2;else{const i="box"===this.shape?(c=t.width??40,f=t.height??40,[s(-c/2,-f/2),s(c/2,-f/2),s(c/2,f/2),s(-c/2,f/2)]):function(t){const i=t.slice().sort((t,i)=>t.x-i.x||t.y-i.y);if(i.length<3)return i;const s=[],n=[],a=(t,i,s)=>e(o(i,t),o(s,t));for(const t of i){for(;s.length>=2&&a(s[s.length-2],s[s.length-1],t)<=0;)s.pop();s.push(t)}for(let t=i.length-1;t>=0;t--){const s=i[t];for(;n.length>=2&&a(n[n.length-2],n[n.length-1],s)<=0;)n.pop();n.push(s)}return s.slice(0,-1).concat(n.slice(0,-1))}((t.vertices||[]).map(([t,i])=>s(t,i)));if(i.length<3)throw new Error("[motionary] physics: a polygon needs at least 3 non-collinear vertices");const{c:p,a:u,i:y}=function(t){let i=0,o=0,a=0,r=0;for(let s=0;s<t.length;s++){const h=t[s],l=t[(s+1)%t.length],c=e(h,l);i+=c,o+=(h.x+l.x)*c,a+=(h.y+l.y)*c,r+=c*(n(h,h)+n(h,l)+n(l,l))}i/=2;const h=s(o/(6*i),a/(6*i)),l=r/12,c=l/i-n(h,h);return{a:Math.abs(i),c:h,i:Math.abs(c)}}(i);this.verts=i.map(t=>o(t,p)),a=u,l=y,this.radius=Math.max(...this.verts.map(h)),this.normals=this.verts.map((t,i)=>{const n=this.verts[(i+1)%this.verts.length],e=o(n,t),a=s(e.y,-e.x);return r(a,1/h(a))})}var c,f;"dynamic"===this.type&&(this.mass=t.mass??i*a,this.invMass=this.mass>0?1/this.mass:0,this.inertia=t.fixedRotation?1/0:this.mass*l,this.invInertia=t.fixedRotation||!this.inertia?0:1/this.inertia)}get isStatic(){return"static"===this.type}worldVerts(){if(this.wvAngle!==this.angle||this.wvPos.x!==this.position.x||this.wvPos.y!==this.position.y){const t=Math.cos(this.angle),i=Math.sin(this.angle);this.wv=this.verts.map(s=>a(c(s,t,i),this.position)),this.wvAngle=this.angle,this.wvPos=s(this.position.x,this.position.y)}return this.wv}worldNormal(t){return c(this.normals[t],Math.cos(this.angle),Math.sin(this.angle))}updateAabb(){if("circle"===this.shape){const t=this.radius,i=this.position;return void(this.aabb={minX:i.x-t,minY:i.y-t,maxX:i.x+t,maxY:i.y+t})}let t=1/0,i=1/0,s=-1/0,n=-1/0;for(const e of this.worldVerts())e.x<t&&(t=e.x),e.y<i&&(i=e.y),e.x>s&&(s=e.x),e.y>n&&(n=e.y);this.aabb={minX:t,minY:i,maxX:s,maxY:n}}applyImpulse(t,i){"dynamic"===this.type&&(this.wake(),this.velocity=a(this.velocity,r(t,this.invMass)),i&&(this.angularVelocity+=e(o(i,this.position),t)*this.invInertia))}applyForce(t,i){"dynamic"===this.type&&(this.wake(),this.force=a(this.force,t),i&&(this.torque+=e(o(i,this.position),t)))}wake(){this.sleeping=!1,this.sleepTime=0}contains(t,i){const e=s(t,i);if("circle"===this.shape)return h(o(e,this.position))<=this.radius;const a=this.worldVerts();for(let t=0;t<a.length;t++)if(n(this.worldNormal(t),o(e,a[t]))>0)return!1;return!0}}const u=t=>"dynamic"!==t.type||t.sleeping?0:t.invMass,y=t=>"dynamic"!==t.type||t.sleeping?0:t.invInertia,d=t=>n(t.velocity,t.velocity)+(t.angularVelocity*t.radius)**2;function m(t,i){const s=t.worldVerts();let e=-1/0,l=0;for(let a=0;a<s.length;a++){const r=n(t.worldNormal(a),o(i.position,s[a]));if(r>i.radius)return null;r>e&&(e=r,l=a)}if(e<1e-9){const s=t.worldNormal(l);return{a:t,b:i,normal:s,contacts:[{point:o(i.position,r(s,i.radius)),depth:i.radius-e}]}}let c=s[0],p=1/0;for(let t=0;t<s.length;t++){const e=s[t],l=s[(t+1)%s.length],f=o(l,e),u=Math.max(0,Math.min(1,n(o(i.position,e),f)/n(f,f))),y=a(e,r(f,u)),d=h(o(i.position,y));d<p&&(p=d,c=y)}if(p>=i.radius)return null;const f=p>1e-9?r(o(i.position,c),1/p):t.worldNormal(l);return{a:t,b:i,normal:f,contacts:[{point:c,depth:i.radius-p}]}}function g(t,i){const s=t.worldVerts(),e=i.worldVerts();let a=-1/0,r=0;for(let i=0;i<s.length;i++){const h=t.worldNormal(i);let l=1/0;for(const t of e)l=Math.min(l,n(h,o(t,s[i])));l>a&&(a=l,r=i)}return{s:a,i:r}}function b(t,i){if("circle"===t.shape&&"circle"===i.shape)return function(t,i){const n=o(i.position,t.position),e=h(n),l=t.radius+i.radius;if(e>=l)return null;const c=e>1e-9?r(n,1/e):s(0,1);return{a:t,b:i,normal:c,contacts:[{point:a(t.position,r(c,t.radius-(l-e)/2)),depth:l-e}]}}(t,i);if("circle"!==t.shape&&"circle"===i.shape)return m(t,i);if("circle"===t.shape&&"circle"!==i.shape){const s=m(i,t);return s&&{a:t,b:i,normal:r(s.normal,-1),contacts:s.contacts}}return function(t,i){const s=g(t,i);if(s.s>0)return null;const e=g(i,t);if(e.s>0)return null;let l=t,c=i,p=s.i,f=!1;e.s>.95*s.s+.01&&(l=i,c=t,p=e.i,f=!0);const u=l.worldVerts(),y=c.worldVerts(),d=l.worldNormal(p);let m=0,b=1/0;for(let t=0;t<y.length;t++){const i=n(c.worldNormal(t),d);i<b&&(b=i,m=t)}let v=[y[m],y[(m+1)%y.length]];const w=u[p],x=u[(p+1)%u.length],M=r(o(x,w),1/h(o(x,w))),V=(t,i,s)=>{const e=[],h=n(i,t[0])-s,l=n(i,t[1])-s;return h<=0&&e.push(t[0]),l<=0&&e.push(t[1]),h*l<0&&e.push(a(t[0],r(o(t[1],t[0]),h/(h-l)))),e};if(v=V(v,r(M,-1),-n(M,w)),v.length<2)return null;if(v=V(v,M,n(M,x)),v.length<2)return null;const k=[];for(const t of v){const i=n(d,o(t,w));i<=1&&k.push({point:t,depth:-i})}return k.some(t=>t.depth>=0)?f?{a:t,b:i,normal:r(d,-1),contacts:k}:{a:t,b:i,normal:d,contacts:k}:null}(t,i)}class v{constructor(t){this.type=t.type,this.a=t.a,this.b=t.b||null,this.anchorA=s(...t.anchorA||[0,0]),this.anchorB=s(...t.anchorB||[0,0]),this.point=s(...t.point||[t.a.position.x,t.a.position.y]),this.stiffness=t.stiffness??1,this.damping=t.damping??.1,this.label=t.label||t.type,this.length=t.length??h(o(this.worldB(),this.worldA()))}worldA(){return a(this.a.position,c(this.anchorA,Math.cos(this.a.angle),Math.sin(this.a.angle)))}worldB(){return this.b?a(this.b.position,c(this.anchorB,Math.cos(this.b.angle),Math.sin(this.b.angle))):this.point}solve(t){const i=this.a,c=this.b,p=this.worldA(),f=this.worldB(),u=o(f,p),y=h(u);if(y<1e-9&&this.length<1e-9&&"distance"===this.type)return;const d=y>1e-9?r(u,1/y):s(1,0),m=o(p,i.position),g=c?o(f,c.position):s(),b=a(i.velocity,l(i.angularVelocity,m)),v=c?a(c.velocity,l(c.angularVelocity,g)):s(),w=n(o(v,b),d),x=y-this.length,M=i.invMass+(c?c.invMass:0)+e(m,d)**2*i.invInertia+(c?e(g,d)**2*c.invInertia:0);if(M<=0)return;const V=this.stiffness>=1?.2:.2*this.stiffness;let k=-(w*(this.stiffness>=1?1:this.damping+this.stiffness)+V/t*x)/M;this.stiffness<1&&(k*=this.stiffness);const N=r(d,k);i.applyImpulse(r(N,-1),p),c?.applyImpulse(N,f)}}class w{constructor(t={}){this.bodies=[],this.constraints=[],this.contacts=[],this.time=0,this.steps=0,this.acc=0,this.warm=new Map,this.listeners=new Set,this.stop=null,this.gravity=s(...t.gravity||[0,980]),this.iterations=t.iterations??10,this.fixedStep=t.step??1/60,this.sleeping=t.sleeping??!0}add(...t){for(const i of t)i instanceof f?this.bodies.push(i):this.constraints.push(i);return t[0]}body(t){return this.add(new f(t))}constraint(t){return this.add(new v(t))}remove(...t){for(const i of t)i instanceof f?(this.bodies=this.bodies.filter(t=>t!==i),this.constraints=this.constraints.filter(t=>t.a!==i&&t.b!==i)):this.constraints=this.constraints.filter(t=>t!==i)}clear(){this.bodies=[],this.constraints=[],this.contacts=[]}bounds(t,i,s=50,n={}){const e=[new f({type:"static",x:t/2,y:i+s/2,width:t+2*s,height:s,label:"floor"}),new f({type:"static",x:-s/2,y:i/2,width:s,height:i+2*s,label:"wall-left"}),new f({type:"static",x:t+s/2,y:i/2,width:s,height:i+2*s,label:"wall-right"})];!1!==n.top&&e.push(new f({type:"static",x:t/2,y:-s/2,width:t+2*s,height:s,label:"ceiling"}));for(const t of e)this.add(t);return e}onCollision(t){return this.listeners.add(t),()=>this.listeners.delete(t)}query(t,i){return this.bodies.filter(s=>s.contains(t,i)).reverse()}update(t){this.acc=Math.min(this.acc+t,8*this.fixedStep);let i=0;for(;this.acc>=this.fixedStep;)this.step(this.fixedStep),this.acc-=this.fixedStep,i++;return i}step(t=this.fixedStep){const i=this.bodies;for(const s of i)"dynamic"!==s.type||s.sleeping||(s.velocity=a(s.velocity,r(a(this.gravity,r(s.force,s.invMass)),t)),s.angularVelocity+=s.torque*s.invInertia*t,s.damping&&(s.velocity=r(s.velocity,Math.max(0,1-s.damping*t))),s.angularDamping&&(s.angularVelocity*=Math.max(0,1-s.angularDamping*t)));for(const t of i)t.updateAabb();const n=i.slice().sort((t,i)=>t.aabb.minX-i.aabb.minX),e=[];for(let t=0;t<n.length;t++){const i=n[t];for(let s=t+1;s<n.length;s++){const t=n[s];if(t.aabb.minX>i.aabb.maxX)break;if(t.aabb.minY>i.aabb.maxY||t.aabb.maxY<i.aabb.minY)continue;if("dynamic"!==i.type&&"dynamic"!==t.type)continue;if(!(i.category&t.mask&&t.category&i.mask))continue;if((i.sleeping||"dynamic"!==i.type)&&(t.sleeping||"dynamic"!==t.type))continue;const o=i.id<t.id?b(i,t):b(t,i);o&&e.push(o)}}this.contacts=e;const o=e.filter(t=>!t.a.sensor&&!t.b.sensor);for(const t of o)t.a.sleeping&&!t.b.sleeping&&"dynamic"===t.b.type&&d(t.b)>144&&t.a.wake(),t.b.sleeping&&!t.a.sleeping&&"dynamic"===t.a.type&&d(t.a)>144&&t.b.wake();const h=t=>t.a.id+":"+t.b.id;for(const i of o)x(i,t,this.warm.get(h(i)));for(let i=0;i<this.iterations;i++){for(const t of o)M(t);for(const i of this.constraints)i.solve(t)}this.warm=new Map(o.map(t=>[h(t),{pts:t.contacts.map(t=>t.point),pn:t.contacts.map(t=>t.pn),pt:t.contacts.map(t=>t.pt)}]));for(const n of i)"static"===n.type||n.sleeping||(n.position=a(n.position,r(n.velocity,t)),n.angle+=n.angularVelocity*t,n.force=s(),n.torque=0);if(this.sleeping){const n=new Map,e=t=>{let i=t;for(;n.get(i)!==i;)i=n.get(i);return n.set(t,i),i},a=t=>!!t&&"dynamic"===t.type;for(const t of i)a(t)&&n.set(t,t);const r=(t,i)=>{a(t)&&a(i)&&n.set(e(t),e(i))};for(const t of o)r(t.a,t.b);for(const t of this.constraints)r(t.a,t.b);const h=new Set(this.constraints.filter(t=>"drag"===t.label).map(t=>t.a));for(const i of n.keys())i.sleeping||(d(i)<36&&!h.has(i)?i.sleepTime+=t:i.sleepTime=0);const l=new Map;for(const t of n.keys()){const i=e(t);l.set(i,[...l.get(i)||[],t])}for(const t of l.values())if(t.some(t=>!t.sleeping&&t.sleepTime<=.6)){if(t.some(t=>t.sleeping)&&t.some(t=>!t.sleeping&&0===t.sleepTime))for(const i of t)i.wake()}else for(const i of t)i.sleeping=!0,i.velocity=s(),i.angularVelocity=0}if(this.time+=t,this.steps++,this.listeners.size)for(const t of e)for(const i of this.listeners)i(t)}run(){if(this.stop)return this.stop;const t=i.requireModule("core","motionary/runtime/physics").getTicker().add((t,i)=>this.update(Math.min(i,100)/1e3));return this.stop=()=>{t(),this.stop=null},this.stop}get running(){return!!this.stop}energy(){return this.bodies.reduce((t,i)=>t+("dynamic"===i.type?.5*i.mass*n(i.velocity,i.velocity)+.5*(isFinite(i.inertia)?i.inertia:0)*i.angularVelocity**2:0),0)}}function x(t,i,c){const{a:p,b:f,normal:d}=t,m=s(d.y,-d.x),g=Math.max(p.restitution,f.restitution);for(const s of t.contacts){s.ra=o(s.point,p.position),s.rb=o(s.point,f.position);const t=u(p)+u(f)+e(s.ra,d)**2*y(p)+e(s.rb,d)**2*y(f),r=u(p)+u(f)+e(s.ra,m)**2*y(p)+e(s.rb,m)**2*y(f);s.mn=t>0?1/t:0,s.mt=r>0?1/r:0;const h=o(a(f.velocity,l(f.angularVelocity,s.rb)),a(p.velocity,l(p.angularVelocity,s.ra))),c=n(h,d);s.bias=s.depth<0?s.depth/i:Math.max(.2/i*Math.max(0,s.depth-.25),c<-150?-g*c:0),s.pn=0,s.pt=0}c&&t.contacts.forEach(t=>{if(t.depth<0)return;let i=-1,s=2;c.pts.forEach((n,e)=>{const a=h(o(t.point,n));a<s&&(s=a,i=e)}),i<0||(t.pn=c.pn[i],t.pt=c.pt[i],V(p,f,a(r(d,t.pn),r(m,t.pt)),t.ra,t.rb))})}function M(t){const{a:i,b:h,normal:c}=t,p=s(c.y,-c.x),f=Math.sqrt(i.friction*h.friction),d=t.contacts,m=t=>o(a(h.velocity,l(h.angularVelocity,t.rb)),a(i.velocity,l(i.angularVelocity,t.ra)));for(const t of d){let s=-t.mt*n(m(t),p);const e=t.pt,o=f*t.pn;t.pt=Math.max(-o,Math.min(o,e+s)),s=t.pt-e,V(i,h,r(p,s),t.ra,t.rb)}if(2===d.length){const[t,s]=d,o=u,a=y,l=e(t.ra,c),p=e(t.rb,c),f=e(s.ra,c),g=e(s.rb,c),b=o(i)+o(h)+a(i)*l*l+a(h)*p*p,v=o(i)+o(h)+a(i)*f*f+a(h)*g*g,w=o(i)+o(h)+a(i)*l*f+a(h)*p*g,x=b*v-w*w;if(b*b<1e3*x){const e=t.pn,o=s.pn,a=n(m(t),c)-t.bias-(b*e+w*o),l=n(m(s),c)-s.bias-(w*e+v*o);let p=0,f=0;if((()=>(p=-(v*a-w*l)/x,f=-(b*l-w*a)/x,p>=0&&f>=0||(p=-a/b,f=0,p>=0&&w*p+l>=0||(p=0,f=-l/v,f>=0&&w*f+a>=0||(p=f=0,a>=0&&l>=0)))))())return V(i,h,r(c,p-e),t.ra,t.rb),V(i,h,r(c,f-o),s.ra,s.rb),t.pn=p,void(s.pn=f)}}for(const t of d){let s=t.mn*(-n(m(t),c)+t.bias);const e=t.pn;t.pn=Math.max(e+s,0),s=t.pn-e,V(i,h,r(c,s),t.ra,t.rb)}}function V(t,i,s,n,h){"dynamic"!==t.type||t.sleeping||(t.velocity=o(t.velocity,r(s,t.invMass)),t.angularVelocity-=e(n,s)*t.invInertia),"dynamic"!==i.type||i.sleeping||(i.velocity=a(i.velocity,r(s,i.invMass)),i.angularVelocity+=e(h,s)*i.invInertia)}function k(t={}){return new w(t)}function N(t,i,n,e,a=.6){const r=i.angle,h=c(o(s(n,e),i.position),Math.cos(-r),Math.sin(-r)),l=t.constraint({type:"pin",a:i,anchorA:[h.x,h.y],point:[n,e],length:0,stiffness:a,damping:.3,label:"drag"});return i.wake(),{constraint:l,move(t,n){l.point=s(t,n),i.wake()},release(){t.remove(l)}}}const I={id:"physics",version:i.RUNTIME_VERSION,tier:"advanced",requires:["core"],api:{createWorld:k,World:w,Body:f,Constraint:v,collide:b,dragConstraint:N}};i.register(I),t.Body=f,t.Constraint=v,t.World=w,t.collide=b,t.createWorld=k,t.dragConstraint=N,t.physics=I}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/physics.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/physics.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-DU4Fqojq.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-CX6Esj3Z.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/physics` (10.7) — a small 2D rigid-body engine written
@@ -728,4 +728,4 @@ function dragConstraint(world, body, x, y, stiffness = 0.6) {
728
728
  const physics = { id: 'physics', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core'], api: { createWorld, World, Body, Constraint, collide, dragConstraint } };
729
729
 
730
730
  export { Body, Constraint, World, collide, createWorld, dragConstraint, physics };
731
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/physics.js.map
731
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/physics.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-KZcxpR09.cjs');
4
- var ticker = require('../chunks/ticker-Bb9msR-6.cjs');
3
+ var registry = require('../chunks/registry-DlT6mFCX.cjs');
4
+ var ticker = require('../chunks/ticker-BP_jd4sz.cjs');
5
5
 
6
6
  /**
7
7
  * `motionary/runtime/scroll` (10.2) — scroll-linked scenes, an original
@@ -304,4 +304,4 @@ exports.refreshScenes = refreshScenes;
304
304
  exports.resolveRule = resolveRule;
305
305
  exports.scroll = scroll;
306
306
  exports.scrollScene = scrollScene;
307
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/scroll.cjs.map
307
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/scroll.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(t,s,e){"use strict";const i={top:0,left:0,center:.5,bottom:1,right:1};function o(t,s){const e=/^([a-z]+|-?[\d.]+%|-?[\d.]+(?:px)?)?\s*(?:([+-])=\s*(-?[\d.]+)(px|%)?)?$/.exec(t.trim());if(!e)throw new Error(`[motionary] scroll: bad edge "${t}"`);let o=0;const r=e[1]||"0";if(r in i)o=i[r]*s;else if(r.endsWith("%"))o=parseFloat(r)/100*s;else{if(!/^-?[\d.]/.test(r))throw new Error(`[motionary] scroll: bad edge "${t}"`);o=parseFloat(r)}if(e[2]){const t="%"===e[4]?parseFloat(e[3])/100*s:parseFloat(e[3]);o+="+"===e[2]?t:-t}return o}function r(t,s,e,i){const r=t.trim().split(/\s+(?![+-]=)/),n=r[0]??"top",h=r[1]??"bottom";return s+o(n,e)-o(h,i)}const n=new Set,h=t=>{const s="string"==typeof t?document.querySelector(t):t;if(!s)throw new Error(`[motionary] scroll: element "${t}" not found`);return s};class l{constructor(t){if(this.start=0,this.end=0,this.progress=0,this.direction=1,this.isActive=!1,this.shown=0,this.last=-1,this.offs=[],this.pinEl=null,this.spacer=null,this.marks=[],this.killed=!1,this.refreshBound=()=>this.refresh(),"undefined"==typeof window)throw new Error("[motionary] scroll scenes need a browser window");this.options=t,this.trigger=h(t.trigger),t.start&&r(t.start,0,0,0),t.end&&!/^\+=/.test(t.end.trim())&&r(t.end,0,0,0),this.scroller=t.scroller?h(t.scroller):window,t.pin&&this.setupPin(!0===t.pin?this.trigger:h(t.pin));const s=this.scroller,i=()=>this.update();s.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",this.refreshBound),this.offs.push(()=>s.removeEventListener("scroll",i),()=>window.removeEventListener("resize",this.refreshBound)),t.scrub&&"number"==typeof t.scrub&&this.offs.push(e.getTicker().add((t,s)=>this.smooth(s))),n.add(this),this.refresh()}pos(){const t=this.scroller;return t===window?this.options.horizontal?window.scrollX:window.scrollY:this.options.horizontal?t.scrollLeft:t.scrollTop}viewport(){const t=this.scroller;return t===window?this.options.horizontal?window.innerWidth:window.innerHeight:this.options.horizontal?t.clientWidth:t.clientHeight}refresh(){if(this.killed)return;const t=!!this.options.horizontal,s=(this.spacer||this.trigger).getBoundingClientRect(),e=this.scroller===window?{top:0,left:0}:this.scroller.getBoundingClientRect(),i=(t?s.left-e.left:s.top-e.top)+this.pos(),o=(this.pinEl?t?this.pinEl.offsetWidth:this.pinEl.offsetHeight:t?s.width:s.height)||0,n=this.viewport();this.start=r(this.options.start||(t?"left right":"top bottom"),i,o,n);const h=this.options.end||(t?"right left":"bottom top");this.end=/^\+=/.test(h.trim())?this.start+parseFloat(h.trim().slice(2)):r(h,i,o,n),this.end<=this.start&&(this.end=this.start+1),this.spacer&&this.pinEl&&(this.spacer.style[t?"paddingRight":"paddingBottom"]=this.end-this.start+"px"),this.drawMarkers(n),this.last=-1,this.update()}update(){if(this.killed)return;const t=this.pos(),s=Math.min(1,Math.max(0,(t-this.start)/(this.end-this.start)));t!==this.last&&this.last>=0&&(this.direction=t>this.last?1:-1);const e=this.progress,i=this.isActive;this.progress=s,this.isActive=t>this.start&&t<this.end,this.last=t;const o=this.options;if(this.isActive!==i||0===e&&1===s||1===e&&0===s){const t=[];s>0&&0===e&&t.push(["onEnter",0]),1===s&&e<1&&t.push(["onLeave",1]),s<1&&1===e&&t.push(["onEnterBack",2]),0===s&&e>0&&t.push(["onLeaveBack",3]);for(const[s,e]of t)o[s]?.(this),o.scrub||this.act(e);if(o.toggleClass&&this.trigger.classList.toggle(o.toggleClass,this.isActive),o.onToggle?.(this),o.once&&1===s)return this.applyPin(1),void this.kill(!0)}this.applyPin(s),!0===o.scrub&&o.animation&&(o.animation.progress=s),o.onUpdate?.(this)}smooth(t){const s=this.options.animation;if(!s)return;const e=1-Math.exp(-t/Math.max(1,this.options.scrub));this.shown+=(this.progress-this.shown)*e,Math.abs(this.progress-this.shown)<5e-4&&(this.shown=this.progress),s.progress=this.shown}act(t){const s=this.options.animation;if(!s)return;const e=(this.options.actions||"play none none reverse").split(/\s+/)[t]||"none";"play"===e?s.play():"pause"===e?s.pause():"resume"===e?s.play():"reverse"===e?s.reverse():"restart"===e?s.restart():"reset"===e?(s.pause(),s.seek(0)):"complete"===e&&(s.pause(),s.progress=1)}setupPin(t){this.pinEl=t;const s=document.createElement("div");s.className="usa-pin-spacer",s.style.boxSizing="content-box",t.parentNode?.insertBefore(s,t),s.appendChild(t),this.spacer=s,this.offs.push(()=>{t.style.position=t.style.top=t.style.left=t.style.width=t.style.transform="",s.parentNode?.insertBefore(t,s),s.remove()})}applyPin(t){const s=this.pinEl,e=this.spacer;if(!s||!e)return;const i=!!this.options.horizontal;if(t>0&&t<1&&this.scroller===window){const t=e.getBoundingClientRect(),o=this.start-(i?t.left+window.scrollX:t.top+window.scrollY);s.style.position="fixed",s.style.width=`${t.width}px`,s.style.left=i?-o+"px":`${t.left}px`,s.style.top=i?`${t.top}px`:-o+"px",s.style.transform=""}else{s.style.position=s.style.top=s.style.left=s.style.width="";const e=t>=1?this.end-this.start:t>0?this.pos()-this.start:0;s.style.transform=e?i?`translateX(${e}px)`:`translateY(${e}px)`:""}}drawMarkers(t){this.marks.forEach(t=>t.remove()),this.marks=[];const s=this.options.markers;if(!s)return;const e="object"==typeof s&&s.color||"#e11d48",i=!!this.options.horizontal,r=this.scroller===window?document.body:this.scroller,n=(t,s,e,o)=>{const n=document.createElement("div");n.className="usa-scroll-marker",n.textContent=t,n.setAttribute("aria-hidden","true"),Object.assign(n.style,{position:e?"fixed":"absolute",[i?"left":"top"]:`${s}px`,[i?"top":"right"]:"0",[i?"height":"width"]:"80px",[i?"borderLeft":"borderTop"]:`2px solid ${o}`,color:o,font:"600 11px/1.2 ui-monospace,monospace",padding:"2px 4px",zIndex:"2147483646",pointerEvents:"none",background:"rgba(255,255,255,.7)"}),(e?document.body:r).appendChild(n),this.marks.push(n)},h=(t,s)=>(t||s).trim().split(/\s+(?![+-]=)/)[1]??"bottom";n("start "+(0|this.start),this.start,!1,e),n("end "+(0|this.end),this.end,!1,e),n("scroller-start",o(h(this.options.start,"top bottom"),t),!0,"#16a34a"),/^\+=/.test((this.options.end||"").trim())||n("scroller-end",o(h(this.options.end,"bottom top"),t),!0,"#2563eb")}kill(t=!1){this.killed||(this.killed=!0,t||this.options.animation?.pause(),this.offs.splice(0).forEach(t=>t()),this.marks.forEach(t=>t.remove()),n.delete(this))}}function a(t){return new l(t)}function p(){n.forEach(t=>t.refresh())}function c(){Array.from(n).forEach(t=>t.kill())}const d=()=>Array.from(n),f={id:"scroll",version:s.RUNTIME_VERSION,tier:"basic",requires:["core"],api:{scrollScene:a,refreshScenes:p,killScenes:c,allScenes:d,parseEdge:o,resolveRule:r,ScrollScene:l}};s.register(f),t.ScrollScene=l,t.allScenes=d,t.killScenes=c,t.parseEdge=o,t.refreshScenes=p,t.resolveRule=r,t.scroll=f,t.scrollScene=a}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/scroll.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/scroll.iife.js.map
@@ -1,5 +1,5 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DU4Fqojq.js';
2
- import { g as getTicker } from '../chunks/ticker-CxIkYDct.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CX6Esj3Z.js';
2
+ import { g as getTicker } from '../chunks/ticker-B4Xe-qCg.js';
3
3
 
4
4
  /**
5
5
  * `motionary/runtime/scroll` (10.2) — scroll-linked scenes, an original
@@ -295,4 +295,4 @@ const allScenes = () => Array.from(scenes);
295
295
  const scroll = { id: 'scroll', version: RUNTIME_VERSION, tier: 'basic', requires: ['core'], api: { scrollScene, refreshScenes, killScenes, allScenes, parseEdge, resolveRule, ScrollScene } };
296
296
 
297
297
  export { ScrollScene, allScenes, killScenes, parseEdge, refreshScenes, resolveRule, scroll, scrollScene };
298
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/scroll.js.map
298
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/scroll.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-KZcxpR09.cjs');
3
+ var registry = require('../chunks/registry-DlT6mFCX.cjs');
4
4
  var ease = require('../chunks/ease-HwYZnZat.cjs');
5
5
 
6
6
  /**
@@ -281,4 +281,4 @@ exports.SmoothScroll = SmoothScroll;
281
281
  exports.allSmooth = allSmooth;
282
282
  exports.smooth = smooth;
283
283
  exports.smoothScroll = smoothScroll;
284
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/smooth.cjs.map
284
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/smooth.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(t,e,i){"use strict";const s=(t,e,i)=>Math.min(i,Math.max(e,t)),h=new Set;class o{constructor(t={}){if(this.current=0,this.target=0,this.velocity=0,this.isScrolling=!1,this.stopped=!1,this.reduced=!1,this.off=[],this.tickOff=null,this.written=NaN,this.glide=null,this.listeners=new Set,this.touchY=0,"undefined"==typeof window)throw new Error("[motionary] smoothScroll() needs a browser (call it on the client)");this.o=t;const e=t.wrapper||window;this.win=e===window,this.el=this.win?document.scrollingElement||document.documentElement:e,t.onScroll&&this.listeners.add(t.onScroll),this.current=this.target=this.native;const i="function"==typeof matchMedia?matchMedia("(prefers-reduced-motion: reduce)"):null,s=()=>{this.reduced=!!i?.matches&&!t.force,this.el.classList.toggle("usa-smooth",!this.reduced&&!this.stopped)};s(),i&&this.on(i,"change",s);const o=this.win?window:this.el;this.on(o,"wheel",t=>this.wheel(t),{passive:!1}),t.touch&&(this.on(o,"touchstart",t=>this.touchY=this.axis(t.touches[0].clientX,t.touches[0].clientY),{passive:!0}),this.on(o,"touchmove",e=>{if(!this.active||1!==e.touches.length)return;const i=this.axis(e.touches[0].clientX,e.touches[0].clientY);e.preventDefault(),this.push((this.touchY-i)*(t.touchMultiplier??1.5)),this.touchY=i},{passive:!1})),this.on(o,"scroll",()=>{Math.abs(this.native-this.written)<=1||(this.halt(),this.glide=null,this.current=this.target=this.native)},{passive:!0}),!1!==t.anchors&&this.on(this.win?document:this.el,"click",t=>this.anchor(t)),h.add(this)}on(t,e,i,s){t.addEventListener(e,i,s),this.off.push(()=>t.removeEventListener(e,i,s))}get horizontal(){return"horizontal"===this.o.orientation}axis(t,e){return this.horizontal?t:e}get native(){return this.horizontal?this.el.scrollLeft:this.el.scrollTop}get limit(){return this.horizontal?this.el.scrollWidth-this.el.clientWidth:this.el.scrollHeight-this.el.clientHeight}get progress(){return this.limit?this.current/this.limit:0}get active(){return!this.stopped&&!this.reduced}wheel(t){if(!this.active||t.ctrlKey)return;for(let e=t.target;e&&e!==this.el;e=e.parentElement){if(e.hasAttribute?.("data-smooth-ignore"))return;if(e!==document.body&&e.scrollHeight>e.clientHeight+1&&/(auto|scroll)/.test(getComputedStyle(e).overflowY))return}const e=1===t.deltaMode?40:2===t.deltaMode?this.horizontal?this.el.clientWidth:this.el.clientHeight:1,i=(this.horizontal&&t.deltaX||t.deltaY)*e*(this.o.wheelMultiplier??1);s(this.target+i,0,this.limit)===this.target&&(this.target<=0||this.target>=this.limit)||(t.preventDefault(),this.push(i))}push(t){this.glide=null,this.target=s(this.target+t,0,this.limit),this.start()}start(){this.tickOff||(this.isScrolling=!0,this.tickOff=e.requireModule("core","motionary/runtime/smooth").getTicker().add((t,e)=>this.tick(e)))}tick(t){const e=this.current;if(this.glide){const e=this.glide;e.t=Math.min(e.d,e.t+t),this.current=e.from+(e.to-e.from)*e.ease(e.d?e.t/e.d:1),e.t>=e.d&&(this.current=this.target=e.to,this.glide=null,e.done?.())}else{if(this.o.duration)return this.glide={from:this.current,to:this.target,t:0,d:this.o.duration,ease:this.easeOf(this.o.ease)},this.tick(t);{const e=1-Math.pow(1-s(this.o.lerp??.1,.001,1),t/(1e3/60));this.current+=(this.target-this.current)*e,Math.abs(this.target-this.current)<.5&&(this.current=this.target)}}this.velocity=this.current-e,this.write(this.current),this.listeners.forEach(t=>t(this)),this.current!==this.target||this.glide||this.halt()}easeOf(t){return"function"==typeof t?t:i.parseEase(t||"expo-out")}write(t){const e=Math.round(100*t)/100;Math.abs(this.native-e)<.5||(this.horizontal?this.el.scrollLeft=e:this.el.scrollTop=e,this.written=this.native)}halt(){this.tickOff?.(),this.tickOff=null,this.isScrolling=!1,this.velocity=0}anchor(t){if(t.defaultPrevented||t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const e=t.target.closest?.('a[href*="#"]');if(!e||"_blank"===e.target)return;const i=new URL(e.href,location.href);if(i.origin!==location.origin||i.pathname!==location.pathname||!i.hash)return;const s=decodeURIComponent(i.hash.slice(1)),h="top"===s?null:document.getElementById(s);if("top"!==s&&!h)return;if(!this.win&&h&&!this.el.contains(h))return;t.preventDefault();const o="object"==typeof this.o.anchors&&this.o.anchors.offset||0;this.scrollTo(h||0,{offset:o,onComplete:()=>{h&&(h.hasAttribute("tabindex")||/^(a|button|input|select|textarea)$/i.test(h.tagName)||h.setAttribute("tabindex","-1"),h.focus({preventScroll:!0}))}}),history.pushState&&history.pushState(null,"",i.hash)}scrollTo(t,e={}){let i;if("number"==typeof t)i=t;else{const e="string"==typeof t?document.querySelector(t):t;if(!e)return;const s=e.getBoundingClientRect(),h=this.win?0:this.axis(this.el.getBoundingClientRect().left,this.el.getBoundingClientRect().top);i=this.native+this.axis(s.left,s.top)-h}if(i=s(i+(e.offset||0),0,this.limit),e.immediate||!this.active)return this.halt(),this.glide=null,this.current=this.target=i,this.write(i),void e.onComplete?.();this.target=i,this.glide={from:this.current,to:i,t:0,d:e.duration??this.o.duration??Math.min(1200,400+.4*Math.abs(i-this.current)),ease:this.easeOf(e.ease??this.o.ease),done:e.onComplete},this.start()}stop(){this.stopped=!0,this.halt(),this.el.classList.remove("usa-smooth")}resume(){this.stopped=!1,this.current=this.target=this.native,this.el.classList.toggle("usa-smooth",!this.reduced)}onScroll(t){return this.listeners.add(t),()=>this.listeners.delete(t)}destroy(){this.halt(),this.off.forEach(t=>t()),this.off=[],this.listeners.clear(),this.el.classList.remove("usa-smooth"),h.delete(this)}}function r(t={}){return new o(t)}const n=()=>Array.from(h),l={id:"smooth",version:e.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{smoothScroll:r,allSmooth:n,SmoothScroll:o}};e.register(l),t.SmoothScroll=o,t.allSmooth=n,t.smooth=l,t.smoothScroll=r}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/smooth.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/smooth.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-DU4Fqojq.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-CX6Esj3Z.js';
2
2
  import { p as parseEase } from '../chunks/ease-XN8_0sXu.js';
3
3
 
4
4
  /**
@@ -276,4 +276,4 @@ const allSmooth = () => Array.from(instances);
276
276
  const smooth = { id: 'smooth', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { smoothScroll, allSmooth, SmoothScroll } };
277
277
 
278
278
  export { SmoothScroll, allSmooth, smooth, smoothScroll };
279
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/smooth.js.map
279
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/smooth.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-KZcxpR09.cjs');
3
+ var registry = require('../chunks/registry-DlT6mFCX.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/text` (10.3) — split text into characters, words and
@@ -144,4 +144,4 @@ const text = { id: 'text', version: registry.RUNTIME_VERSION, tier: 'basic', req
144
144
  exports.segment = segment;
145
145
  exports.splitText = splitText;
146
146
  exports.text = text;
147
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/text.cjs.map
147
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/text.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(e,t){"use strict";function n(e,t="chars"){const n=Intl.Segmenter;return"chars"===t?n?Array.from(new n(void 0,{granularity:"grapheme"}).segment(e),e=>e.segment):Array.from(e):e.split(/(\s+)/).filter(e=>""!==e)}function r(e,t={}){if("undefined"==typeof document)throw new Error("[motionary] splitText needs a DOM — use segment() on the server");const s=(o=t.type,new Set((o||"chars,words").split(/[\s,]+/).filter(Boolean)));var o;const i=t.className||"usa-split",a=e.innerHTML,l=e.getAttribute("aria-label"),c=(e.textContent||"").replace(/\s+/g," ").trim(),d=[],h=[],p=(e,t)=>{const n=document.createElement("span");return n.className=e,n.setAttribute("aria-hidden","true"),n.style.display="inline-block",void 0!==t&&(n.textContent=t),n},u=s.has("words")||s.has("lines"),f=e=>{for(const t of Array.from(e.childNodes))if(3===t.nodeType){const e=document.createDocumentFragment();for(const r of n(t.textContent||"","words")){if(/^\s+$/.test(r)){e.appendChild(document.createTextNode(" "));continue}const t=u?p(`${i}-word`):null;if(s.has("chars"))for(const s of n(r,"chars")){const n=p(`${i}-char`,s);d.push(n),(t||e).appendChild(n)}else t?t.textContent=r:e.appendChild(document.createTextNode(r));t&&(h.push(t),e.appendChild(t))}t.replaceWith(e)}else 1!==t.nodeType||t.classList.contains(`${i}-word`)||f(t)};f(e),c&&null===l&&e.setAttribute("aria-label",c),e.setAttribute("data-split",Array.from(s).join(" "));const m=[];if(s.has("lines")&&h.length){let t=NaN,n=[];const r=[];for(const e of h){const s=Math.round(e.offsetTop);n.length&&Math.abs(s-t)>2&&(r.push(n),n=[]),n.length||(t=s),n.push(e)}n.length&&r.push(n);if(h.every(t=>t.parentElement===e)){e.textContent="";for(const t of r){const n=p(`${i}-line`);n.style.display="block",t.forEach((e,t)=>{t&&n.appendChild(document.createTextNode(" ")),n.appendChild(e)}),m.push(n),e.appendChild(n)}}else r.forEach((e,t)=>e.forEach(e=>e.setAttribute("data-line",String(t))))}if(!1!==t.indexVar)for(const e of[d,h,m])e.forEach((e,t)=>e.style.setProperty("--i",String(t)));const y={chars:d,words:s.has("words")?h:[],lines:m,revert(){e.innerHTML=a,e.removeAttribute("data-split"),null===l&&e.removeAttribute("aria-label")},resplit:()=>(y.revert(),r(e,t))};return y}const s={id:"text",version:t.RUNTIME_VERSION,tier:"basic",requires:["core"],api:{segment:n,splitText:r}};t.register(s),e.segment=n,e.splitText=r,e.text=s}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/text.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/text.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DU4Fqojq.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CX6Esj3Z.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/text` (10.3) — split text into characters, words and
@@ -140,4 +140,4 @@ function splitText(el, o = {}) {
140
140
  const text = { id: 'text', version: RUNTIME_VERSION, tier: 'basic', requires: ['core'], api: { segment, splitText } };
141
141
 
142
142
  export { segment, splitText, text };
143
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/text.js.map
143
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/text.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-KZcxpR09.cjs');
4
- var tween = require('../chunks/tween-Cj4u9V7o.cjs');
3
+ var registry = require('../chunks/registry-DlT6mFCX.cjs');
4
+ var tween = require('../chunks/tween-qF0Mcf3-.cjs');
5
5
 
6
6
  const ALLOWED = /*#__PURE__*/ new Set(['time', 'value', 'thisComp', 'thisLayer', 'thisProperty', 'Math', 'wiggle', 'loopOut', 'loopIn', 'loopOutDuration', 'loopInDuration', 'linear', 'ease', 'easeIn', 'easeOut', 'clamp', 'valueAtTime', 'framesToTime', 'timeToFrames', 'degreesToRadians', 'radiansToDegrees', 'add', 'sub', 'mul', 'div', 'length', 'true', 'false', '$bm_rt', 'index']);
7
7
  function lex(src) {
@@ -1158,4 +1158,4 @@ exports.transformAt = transformAt;
1158
1158
  exports.trimContours = trimContours;
1159
1159
  exports.unzipEntries = unzipEntries;
1160
1160
  exports.vector = vector;
1161
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/vector.cjs.map
1161
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/vector.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(t,e,n){"use strict";const r=new Set(["time","value","thisComp","thisLayer","thisProperty","Math","wiggle","loopOut","loopIn","loopOutDuration","loopInDuration","linear","ease","easeIn","easeOut","clamp","valueAtTime","framesToTime","timeToFrames","degreesToRadians","radiansToDegrees","add","sub","mul","div","length","true","false","$bm_rt","index"]);function s(t){const e=function(t){const e=[],n=/\s*(?:(\/\/[^\n]*|\/\*[\s\S]*?\*\/)|(\d+\.?\d*(?:e[+-]?\d+)?|\.\d+)|("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')|([A-Za-z_$][\w$]*)|(===|!==|==|!=|<=|>=|&&|\|\||[-+*/%()[\],.;=<>!?:{}]))/gy;let r,s=0;for(;s<t.length&&(n.lastIndex=s,r=n.exec(t));){if(s=n.lastIndex,r[1])continue;const t=r[2]||r[3]||r[4]||r[5];t&&e.push(r[2]?"#"+t:r[3]?'"'+r[3].slice(1,-1):t)}if(t.slice(s).trim())throw new Error("expr: unexpected "+t.slice(s,s+10));return e}(t);let n=0;const s=()=>e[n],o=()=>e[n++],a=t=>{if(e[n]!==t)throw new Error(`expr: expected ${t} got ${e[n]}`);n++},i=new Set,c=()=>{let t=(()=>{const t=o();if(void 0===t)throw new Error("expr: unexpected end");if("#"===t[0])return["n",+t.slice(1)];if('"'===t[0])return["s",t.slice(1)];if("("===t){const t=y();return a(")"),t}if("["===t){const t=[];for(;"]"!==s();)t.push(y()),","===s()&&o();return a("]"),["arr",t]}if(/^[A-Za-z_$]/.test(t)){if(!r.has(t)&&!i.has(t))throw new Error("expr: unsupported "+t);return["id",t]}throw new Error("expr: unexpected "+t)})();for(;;)if("."===s())o(),t=["get",t,["s",o()]];else if("["===s())o(),t=["get",t,y()],a("]");else{if("("!==s())return t;{o();const e=[];for(;")"!==s();)e.push(y()),","===s()&&o();a(")"),t=["call",t,e]}}},l=()=>"-"===s()||"+"===s()||"!"===s()?["un",o(),l()]:c(),f=(t,e)=>()=>{let n=e();for(;t.includes(s());)n=["bin",o(),n,e()];return n},h=f(["*","/","%"],l),u=f(["+","-"],h),m=f(["<",">","<=",">="],u),p=f(["==","!=","===","!=="],m),d=f(["&&"],p),g=f(["||"],d),y=()=>{const t=g();if("?"!==s())return t;o();const e=y();return a(":"),["if",t,e,y()]},w=[];for(;n<e.length;)if(";"!==s())if(["var","let","const"].includes(s())){o();const t=o();i.add(t),a("="),w.push(["set",t,y()])}else if(/^[A-Za-z_$]/.test(s()||"")&&"="===e[n+1]){const t=o();o(),i.add(t),w.push(["set",t,y()])}else w.push(y());else o();if(!w.length)throw new Error("expr: empty");return["prog",w]}const o=Array.isArray,a=(t,e,n)=>o(t)&&o(e)?Array.from({length:Math.max(t.length,e.length)},(r,s)=>n(t[s]??0,e[s]??0)):o(t)?t.map(t=>n(t,e)):o(e)?e.map(e=>n(t,e)):n(t,e),i=(t,e)=>"string"==typeof t||"string"==typeof e?String(t)+String(e):a(t,e,(t,e)=>t+e),c=(t,e)=>a(t,e,(t,e)=>t-e),l=(t,e)=>a(t,e,(t,e)=>t*e),f=(t,e)=>a(t,e,(t,e)=>t/e),h=t=>{const e=43758.5453*Math.sin(127.1*t+311.7);return 2*(e-Math.floor(e))-1},u=t=>{const e=Math.floor(t),n=t-e,r=n*n*(3-2*n);return h(e)*(1-r)+h(e+1)*r};function m(t,e){const[n,r,s,o,a]=e;let f,h,u=0,m=1;e.length>=5?(u=r,m=s,f=o,h=a):(f=r,h=s);const p=m===u?n>=m?1:0:Math.min(1,Math.max(0,(n-u)/(m-u)));return((t,e,n)=>i(t,l(c(e,t),n)))(f,h,t(m<u?1-p:p))}function p(t,e,n="cycle",r=0,s=0){const o=t.keys,a=t.time*t.fr;if(o.length<2)return t.value;const f=o[0],h=o[o.length-1];let u=e&&r>0?o[Math.max(0,o.length-1-r)]:f,m=e?h:r>0?o[Math.min(o.length-1,r)]:h;if(s>0&&(e?u=h-s*t.fr:m=f+s*t.fr),e?a<=m:a>=u)return t.value;const p=m-u||1;if("continue"===n){const n=e?m:u,r=t.at(n),s=e?c(r,t.at(n-1)):c(t.at(n+1),r);return i(r,l(s,a-n))}const d=e?a-m:u-a,g=Math.floor(d/p),y=d-g*p;if("pingpong"===n)return t.at(e?g%2?u+y:m-y:g%2?m-y:u+y);const w=t.at(e?u+y:m-y);return"offset"===n?i(w,l(c(t.at(m),t.at(u)),e?g+1:-(g+1))):w}function d(t,e){const n={},r=e.fr,s={Math:Math,thisComp:{frameDuration:1/r},thisLayer:{},thisProperty:{value:e.value},index:1,true:!0,false:!1,wiggle:(t,n,r=1,s=.5,a=e.time)=>{const i=n=>{let o=0,i=1,c=t,l=0;for(let t=0;t<Math.max(1,r);t++)o+=i*u(a*c+13.7*e.seed+101.3*n),l+=i,i*=s,c*=2;return o/l};return o(e.value)?e.value.map((t,e)=>t+(o(n)?n[e]??0:n)*i(e)):e.value+n*i(0)},loopOut:(t,n)=>p(e,!0,t,n),loopIn:(t,n)=>p(e,!1,t,n),loopOutDuration:(t,n)=>p(e,!0,t,0,n),loopInDuration:(t,n)=>p(e,!1,t,0,n),linear:(...t)=>m(t=>t,t),ease:(...t)=>m(t=>t*t*(3-2*t),t),easeIn:(...t)=>m(t=>t*t,t),easeOut:(...t)=>m(t=>1-(1-t)*(1-t),t),clamp:(t,e,n)=>a(a(t,e,Math.max),n,Math.min),valueAtTime:t=>e.at(t*r),framesToTime:t=>t/r,timeToFrames:(t=e.time)=>t*r,degreesToRadians:t=>t*Math.PI/180,radiansToDegrees:t=>180*t/Math.PI,add:i,sub:c,mul:l,div:f,length:(t,e)=>{const n=void 0===e?t:c(t,e);return o(n)?Math.hypot(...n):Math.abs(n)}},h=t=>{switch(t[0]){case"n":case"s":return t[1];case"arr":return t[1].map(h);case"id":{const r=t[1];return r in n?n[r]:"time"===r?e.time:"value"===r?e.value:s[r]}case"get":{const e=h(t[1]),n=h(t[2]);if(null==e||"string"==typeof n&&/^(__proto__|constructor|prototype)$/.test(n))throw new Error("expr: bad member");if(e===Math&&"string"==typeof n&&!(n in Math))throw new Error("expr: Math."+n);return e[n]}case"call":{const e=h(t[1]);if("function"!=typeof e)throw new Error("expr: not a function");return e(...t[2].map(h))}case"un":{const e=h(t[2]);return"-"===t[1]?l(e,-1):"!"===t[1]?!e:e}case"bin":{const e=h(t[2]),n=h(t[3]);switch(t[1]){case"+":return i(e,n);case"-":return c(e,n);case"*":return l(e,n);case"/":return f(e,n);case"%":return a(e,n,(t,e)=>t%e);case"<":return e<n;case">":return e>n;case"<=":return e<=n;case">=":return e>=n;case"==":case"===":return e===n;case"!=":case"!==":return e!==n;case"&&":return e&&n;default:return e||n}}case"if":return h(t[1])?h(t[2]):h(t[3]);case"set":return n[t[1]]=h(t[2]);default:{let e;for(const n of t[1])e=h(n);return"$bm_rt"in n?n.$bm_rt:e}}};return h(t)}const g=new Map;function y(t){if(!g.has(t)){let e=null;try{e=s(t)}catch{e=null}g.set(t,e)}return g.get(t)}function w(t,e,n,r,s){if(s<=0)return 0;if(s>=1)return 1;let o=s;for(let e=0;e<8;e++){const e=3*t*o*(1-o)**2+3*n*o*o*(1-o)+o**3-s,r=3*t*(1-o)**2+6*(n-t)*o*(1-o)+3*(1-n)*o*o;if(Math.abs(e)<1e-5)break;if(Math.abs(r)<1e-6)break;o-=e/r}return o=Math.min(1,Math.max(0,o)),3*e*o*(1-o)**2+3*r*o*o*(1-o)+o**3}const x=(t,e,n)=>Array.isArray(t)?t[Math.min(e,t.length-1)]??n:t??n,v=(t,e,n)=>"number"==typeof t?t+(e-t)*(Array.isArray(n)?n[0]:n):Array.isArray(t)?t.map((t,r)=>"number"==typeof t?t+((e?.[r]??t)-t)*(Array.isArray(n)?x(n,r,0):n):v(t,e?.[r],n)):t&&"object"==typeof t&&t.v?{c:t.c,v:v(t.v,e.v,n),i:v(t.i,e.i,n),o:v(t.o,e.o,n)}:t;let b=30;const M=t=>Array.from(t).reduce((t,e)=>(31*t+e.charCodeAt(0))%9973,7),k=t=>!!(t.a||Array.isArray(t.k)&&t.k.length&&"object"==typeof t.k[0]&&"t"in t.k[0]);function T(t,e,n){const r="string"==typeof t.x?y(t.x):null;if(!r)return n;try{const s=d(r,{time:e/b,value:n,fr:b,at:e=>$(t,e),keys:k(t)?t.k.map(t=>t.t):[],seed:M(t.x)});return void 0===s||"number"==typeof s&&!isFinite(s)?n:s}catch{return n}}function E(t,e,n){return t?T(t,e,$(t,e)):n}function $(t,e){if(!(t.a||Array.isArray(t.k)&&t.k.length&&"object"==typeof t.k[0]&&"t"in t.k[0]))return t.k;const n=t.k;if(e<=n[0].t)return A(n[0].s);for(let t=0;t<n.length-1;t++){const r=n[t],s=n[t+1];if(e>=s.t)continue;const o=A(r.s),a=A(void 0!==r.e?r.e:s.s);if(1===r.h||void 0===a)return o;const i=(e-r.t)/(s.t-r.t||1),c=Array.isArray(o)?o.length:1,l=Array.from({length:c},(t,e)=>w(x(r.o?.x,e,0),x(r.o?.y,e,0),x(r.i?.x,e,1),x(r.i?.y,e,1),i));if(r.to&&r.ti&&Array.isArray(o)&&(r.to.some(Boolean)||r.ti.some(Boolean))){const t=l[0],e=1-t;return o.map((n,s)=>e*e*e*n+3*e*e*t*(n+(r.to[s]||0))+3*e*t*t*(a[s]+(r.ti[s]||0))+t*t*t*a[s])}return v(o,a,c>1?l:l[0])}const r=n[n.length-1];return A(void 0!==r.s?r.s:n[n.length-2]?.e)}const A=t=>Array.isArray(t)&&1===t.length&&"object"==typeof t[0]?t[0]:t,S=[1,0,0,1,0,0],I=(t,e)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]],O=(t,e,n)=>[t[0]*e+t[2]*n+t[4],t[1]*e+t[3]*n+t[5]],L=Math.PI/180;function j(t,e){if(!t)return{m:S,o:1};const n=E(t.a,e,[0,0])||[0,0];let r;r=t.p?.s?[E(t.p.x,e,0),E(t.p.y,e,0)]:E(t.p,e,[0,0])||[0,0];const s=E(t.s,e,[100,100])||[100,100],o=E(t.r??t.rz,e,0)||0,a=E(t.sk,e,0)||0,i=E(t.sa,e,0)||0;let c=[1,0,0,1,r[0],r[1]];if(o&&(c=I(c,[Math.cos(o*L),Math.sin(o*L),-Math.sin(o*L),Math.cos(o*L),0,0])),a){const t=Math.cos(i*L),e=Math.sin(i*L),n=Math.tan(-a*L);c=I(c,I([t,-e,e,t,0,0],I([1,0,n,1,0,0],[t,e,-e,t,0,0])))}c=I(c,[s[0]/100,0,0,(s[1]??s[0])/100,0,0]),c=I(c,[1,0,0,1,-n[0],-(n[1]||0)]);return{m:c,o:(E(t.o,e,100)??100)/100}}const P=.5519150244935105;function U(t,e){switch(t.ty){case"sh":{const n=E(t.ks,e);if(!n?.v?.length)return[];const r=[n.v[0][0],n.v[0][1]],s=n.v.length;for(let t=1;t<s+(n.c?1:0);t++){const e=n.v[(t-1)%s],o=n.v[t%s],a=n.o[(t-1)%s]||[0,0],i=n.i[t%s]||[0,0];r.push(e[0]+a[0],e[1]+a[1],o[0]+i[0],o[1]+i[1],o[0],o[1])}return[{pts:r,closed:!!n.c}]}case"rc":{const[n,r]=E(t.p,e,[0,0]),[s,o]=E(t.s,e,[0,0]),a=Math.min(E(t.r,e,0)||0,s/2,o/2),i=n-s/2,c=r-o/2;if(!a)return[{pts:[i+s,c,i+s,c,i+s,c+o,i+s,c+o,i+s,c+o,i,c+o,i,c+o,i,c+o,i,c,i,c,i,c,i+s,c],closed:!0}];const l=a*P;return[{pts:[i+s-a,c,i+s-a+l,c,i+s,c+a-l,i+s,c+a,i+s,c+a,i+s,c+o-a,i+s,c+o-a,i+s,c+o-a+l,i+s-a+l,c+o,i+s-a,c+o,i+s-a,c+o,i+a,c+o,i+a,c+o,i+a-l,c+o,i,c+o-a+l,i,c+o-a,i,c+o-a,i,c+a,i,c+a,i,c+a-l,i+a-l,c,i+a,c,i+a,c,i+s-a,c],closed:!0}]}case"el":{const[n,r]=E(t.p,e,[0,0]),[s,o]=E(t.s,e,[0,0]),a=s/2,i=o/2,c=a*P,l=i*P;return[{pts:[n,r-i,n+c,r-i,n+a,r-l,n+a,r,n+a,r+l,n+c,r+i,n,r+i,n-c,r+i,n-a,r+l,n-a,r,n-a,r-l,n-c,r-i,n,r-i],closed:!0}]}case"sr":{const[n,r]=E(t.p,e,[0,0]),s=Math.round(E(t.pt,e,5)),o=(E(t.r,e,0)||0)*L,a=E(t.or,e,50),i=1===t.sy?E(t.ir,e,25):a,c=1===t.sy?2*s:s,l=[];for(let e=0;e<=c;e++){const s=o-Math.PI/2+2*e*Math.PI/c,f=1===t.sy&&e%2?i:a,h=n+Math.cos(s)*f,u=r+Math.sin(s)*f;e?l.push(l[l.length-2],l[l.length-1],h,u,h,u):l.push(h,u)}return[{pts:l,closed:!0}]}}return[]}const D=(t,e)=>{const n=t.pts.slice();for(let t=0;t<n.length;t+=2)[n[t],n[t+1]]=O(e,n[t],n[t+1]);return{pts:n,closed:t.closed}};function R(t){const e=[t.pts[0],t.pts[1]];for(let n=2;n<t.pts.length;n+=6){const r=t.pts[n-2],s=t.pts[n-1],[o,a,i,c,l,f]=t.pts.slice(n,n+6),h=o===r&&a===s&&i===l&&c===f?1:16;for(let t=1;t<=h;t++){const n=t/h,u=1-n;e.push(u*u*u*r+3*u*u*n*o+3*u*n*n*i+n*n*n*l,u*u*u*s+3*u*u*n*a+3*u*n*n*c+n*n*n*f)}}return e}const C=t=>{let e=0;for(let n=2;n<t.length;n+=2)e+=Math.hypot(t[n]-t[n-2],t[n+1]-t[n-1]);return e};function B(t,e,n){const r=[];let s=0;for(let o=2;o<t.length;o+=2){const a=t[o-2],i=t[o-1],c=t[o],l=t[o+1],f=Math.hypot(c-a,l-i),h=Math.max(e,s),u=Math.min(n,s+f);if(u>h&&f){const t=(h-s)/f,e=(u-s)/f,n=a+(c-a)*t,o=i+(l-i)*t,m=a+(c-a)*e,p=i+(l-i)*e;r.length||r.push(n,o),r.push(n,o,m,p,m,p)}s+=f}return r.length?[{pts:r,closed:!1}]:[]}function z(t,e,n,r,s){let o=e/100,a=n/100;o>a&&([o,a]=[a,o]);const i=(r%360+360)%360/360;if(a-o>=1)return t;if(a-o<=0)return[];const c=t.map(R),l=c.map(C);if(2===s){const t=l.reduce((t,e)=>t+e,0),e=[];let n=0;return c.forEach((r,s)=>{const c=(o+i)%1*t,f=c+(a-o)*t;for(const s of[0,1])e.push(...B(r,c-n+s*-t,f-n+s*-t));n+=l[s]}),e}return c.flatMap((t,e)=>((t,e,n,r)=>{n+=i,r+=i;const s=[];for(const o of[-1,0,1])s.push(...B(t,(n+o)*e,(r+o)*e));return s})(t,l[e],o,a))}function F(t){const e=new Path2D;for(const n of t){e.moveTo(n.pts[0],n.pts[1]);for(let t=2;t<n.pts.length;t+=6)e.bezierCurveTo(n.pts[t],n.pts[t+1],n.pts[t+2],n.pts[t+3],n.pts[t+4],n.pts[t+5]);n.closed&&e.closePath()}return e}const _=(t,e=1)=>{if(!t)return"transparent";const n=t.some(t=>t>1),r=t.map(t=>Math.round(255*Math.min(1,Math.max(0,n?t/255:t))));return`rgba(${r[0]},${r[1]},${r[2]},${Math.max(0,Math.min(1,(t[3]??1)*e))})`};function N(t,e,n,r,s){const o=t.find(t=>"tr"===t.ty),{m:a,o:i}=j(o,e),c=I(n,a),l=r*i,f=[],h=[];for(const n of t)if(!n.hd)if("gr"===n.ty){const t=[];f.push(...N(n.it||[],e,c,l,t)),h.push(...t)}else if("sh"===n.ty||"rc"===n.ty||"el"===n.ty||"sr"===n.ty)f.push({c:U(n,e).map(t=>D(t,c))});else if("tm"===n.ty){const t=E(n.s,e,0),r=E(n.e,e,100),s=E(n.o,e,0);if(2===n.m){const e=z(f.flatMap(t=>t.c),t,r,s,2);f.forEach((t,n)=>t.c=n?[]:e)}else f.forEach(e=>e.c=z(e.c,t,r,s,1))}else"fl"===n.ty||"gf"===n.ty?h.push({kind:"fill",it:n,shapes:f.slice(),m:c,o:l}):"st"!==n.ty&&"gs"!==n.ty||h.push({kind:"stroke",it:n,shapes:f.slice(),m:c,o:l});return s.push(...h.reverse()),f}function J(t,e,n){const r=e.it,s=e.shapes.flatMap(t=>t.c);if(!s.length)return;const o=E(r.o,n,100)/100*e.o;let a;if("gf"===r.ty||"gs"===r.ty){const s=O(e.m,...E(r.s,n,[0,0])),o=O(e.m,...E(r.e,n,[0,0])),i=2===r.t?t.createRadialGradient(s[0],s[1],0,s[0],s[1],Math.hypot(o[0]-s[0],o[1]-s[1])):t.createLinearGradient(s[0],s[1],o[0],o[1]),c=r.g?.p||0,l=E(r.g?.k,n,[])||[],f=l.length>=4*c+2?l.slice(4*c):null;for(let t=0;t<c;t++){let e=1;if(f){let n=1,r=1/0;for(let e=0;e+1<f.length;e+=2){const s=Math.abs(f[e]-l[4*t]);s<r&&([r,n]=[s,f[e+1]])}e=n}i.addColorStop(Math.min(1,Math.max(0,l[4*t])),_([l[4*t+1],l[4*t+2],l[4*t+3],e]))}a=i}else a=_(E(r.c,n,[0,0,0]));t.save(),t.globalAlpha*=Math.max(0,Math.min(1,o));const i=F(s);if("fill"===e.kind)t.fillStyle=a,t.fill(i,2===r.r?"evenodd":"nonzero");else{const s=Math.sqrt(Math.abs(e.m[0]*e.m[3]-e.m[1]*e.m[2]))||1;if(t.strokeStyle=a,t.lineWidth=E(r.w,n,1)*s,t.lineCap=["butt","round","square"][(r.lc||2)-1]||"round",t.lineJoin=["miter","round","bevel"][(r.lj||2)-1]||"round",t.miterLimit=r.ml||4,r.d?.length){const e=r.d.filter(t=>"d"===t.n||"g"===t.n).map(t=>E(t.v,n,0)*s),o=r.d.find(t=>"o"===t.n);e.length&&e.some(t=>t>0)&&t.setLineDash(e.length%2?[...e,...e]:e),o&&(t.lineDashOffset=-E(o.v,n,0)*s)}t.stroke(i)}t.restore()}const W=(t,e)=>{const n=globalThis,r="function"==typeof n.OffscreenCanvas?new n.OffscreenCanvas(t,e):Object.assign(document.createElement("canvas"),{width:t,height:e});return{c:r,x:r.getContext("2d")}},Z=(t,e)=>(e-(t.st||0))/(t.sr||1);function q(t,e,n,r=0){const s=j(t.ks,Z(t,n)).m;if(void 0===t.parent||r>50)return s;const o=e.find(e=>e.ind===t.parent);return o?I(q(o,e,n,r+1),s):s}function V(t,e,n,r,s,o){const a=(t.masksProperties||[]).filter(t=>"n"!==t.mode);if(!a.length)return;const{c:i,x:c}=W(s,o);c.setTransform(r.getTransform()),a.forEach((t,r)=>{const a=E(t.pt,e);if(!a?.v)return;const i=F(U({ty:"sh",ks:{k:a}},e).map(t=>D(t,n))),l=(E(t.o,e,100)??100)/100;c.save(),c.fillStyle=`rgba(0,0,0,${l})`;const f=t.mode;if(t.inv){const t=new Path2D;t.rect(-1e5,-1e5,2e5,2e5),t.addPath(i),c.globalCompositeOperation="s"===f?"destination-out":"i"===f?"destination-in":"source-over",c.fill(t,"evenodd")}else c.globalCompositeOperation="s"===f?"destination-out":"i"===f&&r?"destination-in":"source-over","s"!==f||r||(c.save(),c.setTransform(1,0,0,1,0,0),c.globalCompositeOperation="source-over",c.fillRect(0,0,s,o),c.restore(),c.globalCompositeOperation="destination-out"),c.fill(i);c.restore()}),r.save(),r.setTransform(1,0,0,1,0,0),r.globalCompositeOperation="destination-in",r.drawImage(i,0,0),r.restore()}function G(t,e,n,r,s,o,a,i,c=0){if(!(c>16))for(let l=n.length-1;l>=0;l--){const f=n[l];if(f.td||f.hd||3===f.ty||r<f.ip||r>=f.op)continue;const h=f.tt?n[l-1]:void 0,u=!!(h||f.masksProperties&&f.masksProperties.length)?W(a,i):null,m=u?u.x:t;m.save(),m.setTransform(t.getTransform());const p=I(o,q(f,n,r)),d=Z(f,r);if(m.globalAlpha*=j(f.ks,d).o,4===f.ty){const t=[];N(f.shapes||[],d,p,1,t);for(const e of t)J(m,e,d)}else if(5===f.ty)H(m,e,f,d,p);else if(1===f.ty)m.transform(p[0],p[1],p[2],p[3],p[4],p[5]),m.fillStyle=f.sc||"#000",m.fillRect(0,0,f.sw||0,f.sh||0);else if(2===f.ty){const t=s.images?.[f.refId||""];t&&(m.transform(p[0],p[1],p[2],p[3],p[4],p[5]),m.drawImage(t,0,0))}else if(0===f.ty){const t=e.assets?.find(t=>t.id===f.refId);if(t?.layers){let n=d;f.tm&&(n=E(f.tm,r,0)*e.fr),m.save(),m.transform(p[0],p[1],p[2],p[3],p[4],p[5]),f.w&&f.h&&(m.beginPath(),m.rect(0,0,f.w,f.h),m.clip()),G(m,e,t.layers,n,s,S,a,i,c+1),m.restore()}}if(f.masksProperties?.length&&V(f,d,p,m,a,i),m.restore(),u){if(h){const n=W(a,i);n.x.setTransform(t.getTransform());const l={...h,td:0};G(n.x,e,[l],r,s,o,a,i,c+1),u.x.save(),u.x.setTransform(1,0,0,1,0,0),u.x.globalCompositeOperation=2===f.tt||4===f.tt?"destination-out":"destination-in",u.x.drawImage(n.c,0,0),u.x.restore()}t.save(),t.setTransform(1,0,0,1,0,0),t.drawImage(u.c,0,0),t.restore()}}}function H(t,e,n,r,s){const o=function(t,e){const n=t.t?.d;let r=n?.k?.[0]?.s;for(const t of n?.k||[])t.t<=e&&(r=t.s);return r&&"string"==typeof n.x&&(r={...r,t:String(T({k:r.t,x:n.x},e,r.t))}),r}(n,r);if(!o)return;t.transform(s[0],s[1],s[2],s[3],s[4],s[5]);const a=e.fonts?.list?.find(t=>t.fName===o.f),i=(a?.fStyle||o.f||"").toLowerCase(),c=/black|heavy/.test(i)?900:/extra ?bold/.test(i)?800:/semi ?bold|demi/.test(i)?600:/bold/.test(i)?700:/medium/.test(i)?500:/light/.test(i)?300:/thin/.test(i)?100:400;t.font=`${/italic|oblique/.test(i)?"italic ":""}${c} ${o.s}px ${a?.fFamily?`"${a.fFamily}", `:""}sans-serif`,t.textAlign=1===o.j?"right":2===o.j?"center":"left",t.textBaseline="alphabetic","letterSpacing"in t&&(t.letterSpacing=(o.tr||0)*o.s/1e3+"px");const l=o.lh||1.2*o.s;let f=String(o.t??"").split(/\r\n|\r|\n|\u0003/),h=0,u=0;if(o.sz){const e=o.sz[0],[n,r]=o.ps||[0,0];f=f.flatMap(n=>{const r=[];let s="";for(const o of n.split(" ")){const n=s?s+" "+o:o;s&&t.measureText(n).width>e?(r.push(s),s=o):s=n}return r.concat(s)}),h=n+(1===o.j?e:2===o.j?e/2:0),u=r+o.s}const m=o.fc?_(o.fc):null,p=o.sc&&o.sw?_(o.sc):null;f.forEach((e,n)=>{const r=u+n*l,s=()=>m&&(t.fillStyle=m,t.fillText(e,h,r)),a=()=>p&&(t.strokeStyle=p,t.lineWidth=o.sw,t.lineJoin="round",t.strokeText(e,h,r));o.of?(s(),a()):(a(),s())})}function K(t,e,n,r={}){const s=r.width??t.canvas.width,o=r.height??t.canvas.height;b=e.fr||30,t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,s,o),r.background&&(t.fillStyle=r.background,t.fillRect(0,0,s,o));const a=s/e.w,i=o/e.h,c="cover"===r.fit?Math.max(a,i):Math.min(a,i);"fill"===r.fit?t.setTransform(a,0,0,i,0,0):t.setTransform(c,0,0,c,(s-e.w*c)/2,(o-e.h*c)/2),t.beginPath(),t.rect(0,0,e.w,e.h),t.clip(),G(t,e,e.layers,n,r,S,s,o),t.restore()}function Q(t){const e=new Set,n=t=>t?.forEach(t=>{"gr"===t.ty&&n(t.it),"mm"===t.ty&&e.add("merge paths"),"rp"===t.ty&&e.add("repeaters"),"rd"===t.ty&&e.add("round corners"),"pb"===t.ty&&e.add("pucker / bloat"),"tw"===t.ty&&e.add("twist")}),r=t=>t.forEach(t=>{t.ddd&&e.add("3D layers"),t.ef?.length&&e.add("effects"),5===t.ty&&t.t?.a?.length&&e.add("text animators (range selectors)"),3!==t.tt&&4!==t.tt||e.add("luma mattes (approximated by alpha)"),JSON.stringify([t.ks,t.t,t.shapes],(t,n)=>("x"!==t||"string"!=typeof n||y(n)||e.add("expressions outside the supported subset"),n)),n(t.shapes||[])});return r(t.layers),t.assets?.forEach(t=>t.layers&&r(t.layers)),t.chars?.length&&e.add("glyph outlines (chars): drawn with system fonts"),{layers:t.layers.length,unsupported:[...e]}}const X={maxEntries:1e3,maxEntryBytes:32<<20,maxTotalBytes:64<<20,maxRatio:100},Y=t=>new Error(`[motionary] vector: zip limit exceeded — ${t} (see ZipLimits)`);function tt(t,e={}){const n={...X,...e},r=t instanceof Uint8Array?t:new Uint8Array(t),s=new DataView(r.buffer,r.byteOffset,r.byteLength);let o=r.length-22;for(;o>=0&&101010256!==s.getUint32(o,!0);)o--;if(o<0)throw new Error("[motionary] vector: not a zip / .lottie file");const a=s.getUint16(o+10,!0);if(a>n.maxEntries)throw Y(`${a} entries > maxEntries ${n.maxEntries}`);let i=s.getUint32(o+16,!0);const c=[];for(let t=0;t<a&&i+46<=r.length&&33639248===s.getUint32(i,!0);t++){const t=s.getUint16(i+10,!0),e=s.getUint32(i+20,!0),o=s.getUint32(i+24,!0),a=s.getUint16(i+28,!0),l=s.getUint16(i+30,!0),f=s.getUint16(i+32,!0),h=s.getUint32(i+42,!0),u=(new TextDecoder).decode(r.subarray(i+46,i+46+a));if(o>n.maxEntryBytes)throw Y(`${u}: ${o} bytes > maxEntryBytes ${n.maxEntryBytes}`);if(h+30>r.length)throw new Error("[motionary] vector: corrupt zip ("+u+")");const m=h+30+s.getUint16(h+26,!0)+s.getUint16(h+28,!0);c.push({name:u,method:t,size:o,data:r.subarray(m,m+e)}),i+=46+a+l+f}return c}async function et(t,e={},n={total:0}){const r={...X,...e},s=e=>{if(e>r.maxEntryBytes)throw Y(`${t.name}: > maxEntryBytes ${r.maxEntryBytes}`);if(n.total+e>r.maxTotalBytes)throw Y(`archive > maxTotalBytes ${r.maxTotalBytes}`);if(e>1<<20&&e>Math.max(1,t.data.length)*r.maxRatio)throw Y(`${t.name}: compression ratio > maxRatio ${r.maxRatio}`)};if(0===t.method)return s(t.data.length),n.total+=t.data.length,t.data;if(8!==t.method)throw new Error(`[motionary] vector: zip method ${t.method} unsupported (${t.name})`);const o=globalThis.DecompressionStream;if(!o)throw new Error("[motionary] vector: DecompressionStream is missing — cannot inflate .lottie entries here");const a=new Response(t.data).body.pipeThrough(new o("deflate-raw")).getReader(),i=[];let c=0;for(;;){const{done:t,value:e}=await a.read();if(t)break;c+=e.length;try{s(c)}catch(t){throw a.cancel().catch(()=>{}),t}i.push(e)}n.total+=c;const l=new Uint8Array(c);let f=0;for(const t of i)l.set(t,(f+=t.length)-t.length);return l}async function nt(t,e={}){const n=tt(t,e.limits),r={},s={total:0};for(const t of n)t.name.endsWith("/")||(r[t.name.replace(/^\.?\//,"")]=await et(t,e.limits,s));const o=new TextDecoder,a=r["manifest.json"]?(i="manifest.json",JSON.parse(o.decode(r[i]))):{animations:[]};var i;const c={},l={},f={},h={};for(const[t,e]of Object.entries(r)){const n=/^(animations|a)\/(.+)\.json$/.exec(t);n?c[n[2]]=JSON.parse(o.decode(e)):/^(images|i)\//.test(t)?l[t.replace(/^(images|i)\//,"")]=e:/^(themes|t)\/(.+)\.json$/.test(t)?f[t.replace(/^(themes|t)\/|\.json$/g,"")]=JSON.parse(o.decode(e)):/^(states|s)\/(.+)\.json$/.test(t)&&(h[t.replace(/^(states|s)\/|\.json$/g,"")]=JSON.parse(o.decode(e)))}return{manifest:a,animations:c,images:l,themes:f,stateMachines:h}}async function rt(t,e={}){const n={};return await Promise.all((t.assets||[]).filter(t=>t.p&&!t.layers).map(async t=>{let r=null;if(t.p.startsWith("data:"))r=await(await fetch(t.p)).blob();else{const n=Object.keys(e.files||{}).find(e=>e.endsWith("/"+t.p)||e===t.p);n?r=new Blob([e.files[n]],{type:/\.jpe?g$/i.test(n)?"image/jpeg":/\.webp$/i.test(n)?"image/webp":"image/png"}):e.base&&(r=await(await fetch(new URL((t.u||"")+t.p,e.base).href)).blob())}r&&(n[t.id]=await createImageBitmap(r))})),n}async function st(t,e={}){let n;const r=e.base||("string"==typeof t&&"undefined"!=typeof location?new URL(t,location.href).href:void 0);if("string"==typeof t){const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] vector: could not load ${t} (${e.status})`);n=new Uint8Array(await e.arrayBuffer())}else n=t instanceof Uint8Array?t:new Uint8Array(t);if(80===n[0]&&75===n[1]){const t=await nt(n,{limits:e.limits}),r=Object.keys(t.animations),s=e.animation||t.manifest.activeAnimationId||t.manifest.animations?.[0]?.id||r[0],o=t.animations[s]||t.animations[r[0]];if(!o)throw new Error("[motionary] vector: the .lottie file has no animations");const a={};for(const[e,n]of Object.entries(t.images))a[e]=n;return{animation:o,images:await rt(o,{files:a}),dotLottie:t}}const s=JSON.parse((new TextDecoder).decode(n));return{animation:s,images:await rt(s,{base:r}),dotLottie:null}}class ot extends n.Playable{constructor(t,e,n){super({repeat:!0===n.loop||void 0===n.loop?-1:"number"==typeof n.loop?n.loop:0,yoyo:!!n.bounce}),this.canvas=t,this.animation=e,this.o=n,this.frame=0,this.markers={},this.timeScale=n.speed||1;const r=t.getContext("2d");if(!r)throw new Error("[motionary] vector: no 2D canvas context");this.ctx=r;for(const t of e.markers||[])this.markers[t.cm]=[t.tm,t.tm+t.dr];this.seg=[e.ip,e.op],this.setSegment(n.segment||null),this.goToFrame(this.seg[0]),!1!==n.autoplay&&this.play()}get totalFrames(){return this.seg[1]-this.seg[0]}get duration(){return this.totalFrames/this.animation.fr*1e3}setSegment(t){this.seg=t?"string"==typeof t?this.markers[t]||[this.animation.ip,this.animation.op]:t:[this.animation.ip,this.animation.op]}goToFrame(t){this.frame=t,K(this.ctx,this.animation,t,this.o)}renderLocal(t){const e=Math.min(this.seg[0]+t/1e3*this.animation.fr,this.seg[1]-.001);Math.abs(e-this.frame)<.01||this.goToFrame(e)}}function at(t,e,n={}){return new ot(t,e,n)}function it(t,e,n=0,r=30){const s=y(t);try{return s?d(s,{time:n,value:e,fr:r,at:()=>e,keys:[],seed:M(t)}):void 0}catch{return}}const ct={id:"vector",version:e.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{evalExpression:it,loadLottie:st,parseDotLottie:nt,unzipEntries:tt,lottiePlayer:at,renderLottieFrame:K,inspectLottie:Q,propValue:E,transformAt:j,trimContours:z,loadLottieImages:rt}};e.register(ct),t.ZIP_LIMITS=X,t.evalExpression=it,t.inflateEntry=et,t.inspectLottie=Q,t.loadLottie=st,t.loadLottieImages=rt,t.lottiePlayer=at,t.parseDotLottie=nt,t.propValue=E,t.renderLottieFrame=K,t.transformAt=j,t.trimContours=z,t.unzipEntries=tt,t.vector=ct}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/vector.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/vector.iife.js.map
@@ -1,5 +1,5 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DU4Fqojq.js';
2
- import { P as Playable } from '../chunks/tween-ClexTL2D.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CX6Esj3Z.js';
2
+ import { P as Playable } from '../chunks/tween-bb-hNM7p.js';
3
3
 
4
4
  const ALLOWED = /*#__PURE__*/ new Set(['time', 'value', 'thisComp', 'thisLayer', 'thisProperty', 'Math', 'wiggle', 'loopOut', 'loopIn', 'loopOutDuration', 'loopInDuration', 'linear', 'ease', 'easeIn', 'easeOut', 'clamp', 'valueAtTime', 'framesToTime', 'timeToFrames', 'degreesToRadians', 'radiansToDegrees', 'add', 'sub', 'mul', 'div', 'length', 'true', 'false', '$bm_rt', 'index']);
5
5
  function lex(src) {
@@ -1143,4 +1143,4 @@ function evalExpression(src, value, time = 0, fr = 30) {
1143
1143
  const vector = { id: 'vector', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { evalExpression, loadLottie, parseDotLottie, unzipEntries, lottiePlayer, renderLottieFrame, inspectLottie, propValue, transformAt, trimContours, loadLottieImages } };
1144
1144
 
1145
1145
  export { ZIP_LIMITS, evalExpression, inflateEntry, inspectLottie, loadLottie, loadLottieImages, lottiePlayer, parseDotLottie, propValue, renderLottieFrame, transformAt, trimContours, unzipEntries, vector };
1146
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime/vector.js.map
1146
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime/vector.js.map
package/dist/runtime.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('./chunks/registry-KZcxpR09.cjs');
4
- var ticker = require('./chunks/ticker-Bb9msR-6.cjs');
5
- var tween$1 = require('./chunks/tween-Cj4u9V7o.cjs');
3
+ var registry = require('./chunks/registry-DlT6mFCX.cjs');
4
+ var ticker = require('./chunks/ticker-BP_jd4sz.cjs');
5
+ var tween$1 = require('./chunks/tween-qF0Mcf3-.cjs');
6
6
  var ease = require('./chunks/ease-HwYZnZat.cjs');
7
7
 
8
8
  /**
@@ -82,4 +82,4 @@ exports.core = core;
82
82
  exports.resolveTargets = resolveTargets;
83
83
  exports.tween = tween;
84
84
  exports.use = use;
85
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime.cjs.map
85
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime.cjs.map
@@ -150,7 +150,7 @@ declare function timeline(o?: TimelineOptions): Timeline;
150
150
  * inside Web Workers.
151
151
  */
152
152
  /** Runtime version (kept in sync with the package version by the release script). */
153
- declare const RUNTIME_VERSION = "13.6.0";
153
+ declare const RUNTIME_VERSION = "13.7.0";
154
154
  /** Where the CDN builds live (major-pinned). */
155
155
  declare const RUNTIME_CDN = "https://cdn.jsdelivr.net/npm/motionary@13/dist/";
156
156
  /**
package/dist/runtime.d.ts CHANGED
@@ -150,7 +150,7 @@ declare function timeline(o?: TimelineOptions): Timeline;
150
150
  * inside Web Workers.
151
151
  */
152
152
  /** Runtime version (kept in sync with the package version by the release script). */
153
- declare const RUNTIME_VERSION = "13.6.0";
153
+ declare const RUNTIME_VERSION = "13.7.0";
154
154
  /** Where the CDN builds live (major-pinned). */
155
155
  declare const RUNTIME_CDN = "https://cdn.jsdelivr.net/npm/motionary@13/dist/";
156
156
  /**
@@ -1,2 +1,2 @@
1
- !function(t){"use strict";const e="13.6.0",r="https://cdn.jsdelivr.net/npm/motionary@13/dist/",s=["basic","standard","advanced"],i={core:"basic",scroll:"basic",text:"basic","format-css":"basic","format-motion":"basic",smooth:"standard","drag-snap":"standard","format-svg":"standard","format-sprite":"standard","format-gif":"standard","format-apng":"standard","format-webp":"standard",vector:"standard","lottie-state":"standard",rive:"standard",gl:"advanced","format-gltf":"advanced","format-obj":"advanced","gltf-anim":"advanced","gltf-decoders":"advanced","basis-transcoder":"advanced",draco3d:"advanced",physics:"advanced","format-scene":"advanced"};const n=Symbol.for("motionary.runtime");function o(){const t=globalThis;return t[n]||(t[n]={version:e,modules:new Map,slots:{}})}const a=t=>"core"===t?"motionary/runtime":`motionary/runtime/${t}`,u=t=>r+("core"===t?"runtime.iife.js":`runtime/${t}.iife.js`);function c(t,e="This feature"){const r=a(t);return`[motionary] ${e} requires ${r}. Install once: npm i motionary — then register it before the component mounts: ${"core"===t?"import { use } from 'motionary/runtime'; use();":`import { use } from 'motionary/runtime'; import { ${l(t)} } from '${r}'; use(${l(t)});`} Or from a CDN (core first): ${"core"===t?`<script src="${u("core")}"><\/script>`:`<script src="${u("core")}"><\/script><script src="${u(t)}"><\/script>`} Docs: https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/${t}.md`}const l=t=>t.replace(/-(\w)/g,(t,e)=>e.toUpperCase());class h extends Error{constructor(t,e){super(c(t,e)),this.name="RuntimeModuleError",this.module=t}}function d(...t){const e=o();for(const r of t){if(!r||"string"!=typeof r.id)throw new TypeError("[motionary] use(): not a runtime module");if(!e.modules.has(r.id)){for(const t of r.requires||[])if(!e.modules.has(t))throw new h(t,`motionary/runtime/${r.id}`);e.modules.set(r.id,r),r.setup?.(e)}}return e}function m(){const t=new Set;let e=0,r=-1,s=60,i=100,n=null;const o=globalThis,a=()=>o.performance?.now?o.performance.now():Date.now(),u=t=>"function"==typeof o.requestAnimationFrame?o.requestAnimationFrame(t):setTimeout(()=>t(a()),16),c=(r,s=!0)=>{const n=(s?Math.min(r,i):r)*h.timeScale;e+=n;for(const r of Array.from(t))r(e,n)},l=e=>{if(n=null,!t.size)return;const i="number"==typeof e&&e>0?e:a(),o=r<0?0:i-r;r=i,o>0&&(s=.9*s+1e3/o*.1),c(o),t.size&&(n=u(l))},h={add:e=>(t.add(e),null===n&&t.size&&(r=-1,n=u(l)),()=>h.remove(e)),remove(e){var r;t.delete(e),t.size||null===n||(r=n,"function"==typeof o.cancelAnimationFrame?o.cancelAnimationFrame(r):clearTimeout(r),n=null)},get time(){return e},get fps(){return Math.round(s)},get size(){return t.size},lagSmoothing(t){i=t>0?t:1/0},timeScale:1,step(t){c(t,!1)}};return h}function f(){const t=o().slots;return t.ticker||(t.ticker=m())}const p=t=>e=>1-t(1-e),y=t=>e=>e<.5?t(2*e)/2:1-t(2*(1-e))/2,g=t=>e=>Math.pow(e,t);function v(t,e,r,s){const i=(t,e)=>1-3*e+3*t,n=(t,e)=>3*e-6*t,o=t=>3*t,a=(t,e,r)=>((i(e,r)*t+n(e,r))*t+o(e))*t,u=(t,e,r)=>3*i(e,r)*t*t+2*n(e,r)*t+o(e);return i=>{if(i<=0||i>=1)return i<=0?0:1;let n=i;for(let e=0;e<6;e++){const e=u(n,t,r);if(Math.abs(e)<1e-6)break;n-=(a(n,t,r)-i)/e}if(n<0||n>1||Math.abs(a(n,t,r)-i)>1e-4){let e=0,s=1;n=i;for(let o=0;o<30;o++){const o=a(n,t,r);if(Math.abs(o-i)<1e-6)break;o<i?e=n:s=n,n=(e+s)/2}}return a(n,e,s)}}const b=(t,e="end")=>r=>{const s="start"===e?Math.ceil(r*t):Math.floor(r*t);return Math.min(1,Math.max(0,s/t))},k={quad:g(2),cubic:g(3),quart:g(4),quint:g(5),sine:t=>1-Math.cos(t*Math.PI/2),expo:t=>0===t?0:Math.pow(2,10*t-10),circ:t=>1-Math.sqrt(1-t*t),back:((t=1.70158)=>e=>e*e*((t+1)*e-t))(),elastic:t=>0===t||1===t?t:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*(2*Math.PI/3)),bounce:p(t=>{const e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375})},w={linear:t=>t,ease:v(.25,.1,.25,1),"ease-in":v(.42,0,1,1),"ease-out":v(0,0,.58,1),"ease-in-out":v(.42,0,.58,1),smooth:v(.22,1,.36,1)};for(const[t,e]of Object.entries(k))w[`${t}-in`]=e,w[`${t}-out`]=p(e),w[`${t}-in-out`]=y(e);function $(t){if("function"==typeof t)return t;if(!t)return w["cubic-out"];const e=t.trim();if(w[e])return w[e];let r=/^cubic-bezier\(\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*\)$/.exec(e);if(r)return v(+r[1],+r[2],+r[3],+r[4]);if(r=/^steps\(\s*(\d+)\s*(?:,\s*(jump-)?(start|end)\s*)?\)$/.exec(e),r)return b(+r[1],r[3]||"end");if("step-start"===e)return b(1,"start");if("step-end"===e)return b(1,"end");throw new Error(`[motionary] unknown ease "${e}" — use a name from EASES, cubic-bezier(…) or steps(…)`)}const _=["x","y","rotate","scale","scaleX","scaleY","skewX","skewY"],M={x:"px",y:"px",rotate:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},x=new WeakMap,E=t=>"undefined"!=typeof Element&&t instanceof Element,S=/-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?/gi;function T(t){if("number"==typeof t)return{kind:"num",v:t,u:""};const e=t.trim();let r=/^#([0-9a-f]{3,8})$/i.exec(e);if(r){let t=r[1];t.length<=4&&(t=t.split("").map(t=>t+t).join(""));const e=e=>parseInt(t.slice(e,e+2),16);return{kind:"col",c:[e(0),e(2),e(4),8===t.length?e(6)/255:1]}}if(r=/^rgba?\(([^)]+)\)$/i.exec(e),r){const t=r[1].split(/[\s,/]+/).filter(Boolean).map(t=>t.endsWith("%")?parseFloat(t)/100*255:parseFloat(t));return{kind:"col",c:[t[0],t[1],t[2],void 0===t[3]?1:t[3]>1?t[3]/255:t[3]]}}return"transparent"===e?{kind:"col",c:[0,0,0,0]}:(r=/^(-?[\d.]+(?:e-?\d+)?)([a-z%]*)$/i.exec(e),r?{kind:"num",v:parseFloat(r[1]),u:r[2]}:{kind:"str",s:e,parts:e.split(S),nums:(e.match(S)||[]).map(Number)})}const D=(t,e,r)=>{if("str"===t.kind||"str"===e.kind){if("str"===t.kind&&"str"===e.kind&&t.parts.join("\0")===e.parts.join("\0")&&t.nums.length===e.nums.length)return t.parts.map((s,i)=>s+(i<t.nums.length?+(t.nums[i]+(e.nums[i]-t.nums[i])*r).toFixed(4):"")).join("");const s=r<.5?t:e;return"str"===s.kind?s.s:"num"===s.kind?s.u?s.v+s.u:s.v:`rgba(${s.c.join(", ")})`}if("col"===t.kind||"col"===e.kind){const s="col"===t.kind?t.c:[0,0,0,0],i="col"===e.kind?e.c:[0,0,0,0],n=s.map((t,e)=>t+(i[e]-t)*r);return`rgba(${Math.round(n[0])}, ${Math.round(n[1])}, ${Math.round(n[2])}, ${+n[3].toFixed(3)})`}const s=t.v+(e.v-t.v)*r,i=e.u||t.u;return i?`${+s.toFixed(4)}${i}`:+s.toFixed(6)},A=t=>t.startsWith("--")?t:t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase());function P(t,e){if(!E(t))return t[e]??0;if(_.includes(e)){const r=x.get(t)?.[e];return r?r.v+r.u:e.startsWith("scale")?1:0}const r=t.style.getPropertyValue(A(e));if(r)return r;return("function"==typeof getComputedStyle?getComputedStyle(t).getPropertyValue(A(e)):"")||("opacity"===e?1:0)}function j(t,e,r){if(E(t)){if(_.includes(e)){const s=T(r);if("num"!==s.kind)throw new Error(`[motionary] ${e} needs a number (got "${r}")`);const i=x.get(t)||{};return i[e]={v:s.v,u:s.u},void x.set(t,i)}t.style.setProperty(A(e),"number"!=typeof r||["opacity","zIndex","z-index"].includes(e)||e.startsWith("--")?String(r):r+"px")}else t[e]="string"==typeof r&&"number"==typeof t[e]?parseFloat(r):r}class C{constructor(t){this.timeScale=1,this._t=0,this._dir=1,this._off=null,this._done=!1,this.parent=null,this.delay=t.delay||0,this.repeat=t.repeat||0,this.yoyo=!!t.yoyo,this.onUpdate=t.onUpdate,this.onComplete=t.onComplete,this.finished=new Promise(t=>this._resolve=t)}get totalDuration(){return this.repeat<0?1/0:this.delay+this.duration*(this.repeat+1)}get time(){return this._t}get progress(){const t=this.totalDuration;return t===1/0?(this._t-this.delay)%this.duration/this.duration:t?this._t/t:1}set progress(t){this.seek(t*(this.totalDuration===1/0?this.delay+this.duration:this.totalDuration))}get isActive(){return!!this._off}get reversed(){return this._dir<0}seek(t){const e=this.totalDuration;this._t=Math.max(0,Math.min(t,e));const r=this._t-this.delay,s=this.duration||0;if(r<0)this.renderLocal(0,!1);else if(s){let t=s===1/0?0:Math.floor(r/s),i=s===1/0?r:r-t*s;r>=e-this.delay&&e!==1/0&&(t=this.repeat,i=s);const n=this.yoyo&&t%2==1;this.renderLocal(n?s-i:i,i===s)}else this.renderLocal(0,!0);return this.onUpdate?.(this.progress),this}play(){return this._dir=1,this._t>=this.totalDuration&&(this._t=0),this.attach()}pause(){return this._off?.(),this._off=null,this}reverse(){return this._dir=-1,this._t<=0&&(this._t=this.totalDuration===1/0?this.delay+this.duration:this.totalDuration),this.attach()}restart(){return this._done=!1,this.seek(0),this.play()}kill(){this.pause(),this.parent?.remove(this)}then(t,e){return this.finished.then(t,e)}attach(){return this.parent||this._off||(this._done=!1,this._off=f().add((t,e)=>this.advance(e))),this}advance(t){const e=this.totalDuration;this.seek(this._t+t*this._dir*this.timeScale),(this._dir>0&&this._t>=e||this._dir<0&&this._t<=0)&&this.complete()}complete(){this.pause(),this._done||(this._done=!0,this.onComplete?.(),this._resolve())}}class R extends C{constructor(t,e){super(e),this.tracks=null,this.target=t,this._dur=e.duration??600,this.ease=$(e.ease),this.toProps=e.to||{},this.fromProps=e.from||{}}get duration(){return this._dur}init(){return Array.from(new Set([...Object.keys(this.fromProps),...Object.keys(this.toProps)])).map(t=>{const e=t in this.fromProps?this.fromProps[t]:P(this.target,t),r=t in this.toProps?this.toProps[t]:P(this.target,t);return{k:t,fromRaw:e,toRaw:r,from:T(e),to:T(r)}})}renderLocal(t,e){this.tracks||(this.tracks=this.init());const r=this._dur?e?this.ease(t>=this._dur?1:0):this.ease(t/this._dur):1;let s=!1;for(const t of this.tracks)j(this.target,t.k,D(t.from,t.to,r)),_.includes(t.k)&&(s=!0);s&&E(this.target)&&function(t){const e=x.get(t),r=(t,r)=>e[t]?e[t].v:r,s=t=>e[t]?.u??M[t],i=[];(e.x||e.y)&&i.push(`translate(${r("x",0)}${s("x")||"px"}, ${r("y",0)}${s("y")||"px"})`),e.rotate&&i.push(`rotate(${r("rotate",0)}${s("rotate")||"deg"})`),e.scale&&i.push(`scale(${r("scale",1)})`),(e.scaleX||e.scaleY)&&i.push(`scale(${r("scaleX",1)}, ${r("scaleY",1)})`),e.skewX&&i.push(`skewX(${r("skewX",0)}${s("skewX")||"deg"})`),e.skewY&&i.push(`skewY(${r("skewY",0)}${s("skewY")||"deg"})`),t.style.transform=i.join(" ")}(this.target)}}class z extends C{constructor(t={}){super(t),this.children=[],this.labels={},this.prevStart=0,this.prevEnd=0,this.lastLocal=0,this.defaults=t.defaults}get duration(){let t=0;for(const e of this.children)t=Math.max(t,e.start+("function"==typeof e.item?0:e.item.totalDuration));return t}resolve(t){if(void 0===t||">"===t)return this.prevEnd;if("number"==typeof t)return Math.max(0,t);const e=/^([<>]|[\w-]+)?\s*(?:([+-])=\s*([\d.]+))?$/.exec(t.trim());if(!e)throw new Error(`[motionary] bad timeline position "${t}"`);let r=this.prevEnd;if("<"===e[1])r=this.prevStart;else if(e[1]&&">"!==e[1]){if(!(e[1]in this.labels))throw new Error(`[motionary] unknown timeline label "${e[1]}"`);r=this.labels[e[1]]}const s=e[2]?("+"===e[2]?1:-1)*parseFloat(e[3]):0;return Math.max(0,r+s)}add(t,e){const r=this.resolve(e);return"function"!=typeof t&&(t.pause(),t.parent=this),this.children.push({item:t,start:r}),this.prevStart=r,this.prevEnd=r+("function"==typeof t?0:t.totalDuration),this}to(t,e,r){const s=F(t),i=this.resolve(r);let n=i;return s.forEach((t,r)=>{const s=new R(t,{...this.defaults,...e,delay:(e.delay||0)+(e.stagger||0)*r,paused:!0});s.parent=this,this.children.push({item:s,start:i}),n=Math.max(n,i+s.totalDuration)}),this.prevStart=i,this.prevEnd=n,this}call(t,e){return this.add(t,e)}label(t,e){return this.labels[t]=this.resolve(e),this}labelTime(t){return this.labels[t]}remove(t){this.children=this.children.filter(e=>e.item!==t)}getChildren(){return this.children.filter(t=>"function"!=typeof t.item).map(t=>t.item)}renderLocal(t){const e=t>=this.lastLocal,r=[...this.children].sort((t,r)=>e?t.start-r.start:r.start-t.start);for(const s of r){if("function"==typeof s.item){e&&!s.fired&&t>=s.start&&this.lastLocal<=s.start?(s.fired=!0,s.item()):!e&&t<s.start&&(s.fired=!1);continue}const r=t-s.start,i=s.item;r<0?i._started&&i.seek(0):(i._started=!0,i.seek(Math.min(r,i.totalDuration)))}this.lastLocal=t}}function F(t){return Array.isArray(t)?t:t&&"number"==typeof t.length&&!E(t)?Array.from(t):[t]}function I(t={}){const e=new z(t);return t.paused||e.play(),e}const q={id:"core",version:e,tier:"basic",api:{version:e,getTicker:f,tween:L,timeline:I,Tween:R,Timeline:z,EASES:w,parseEase:$,cubicBezier:v,steps:b}};function L(t,e){return function(t,e){const r=F(t);let s;if(1===r.length)s=new R(r[0],e);else{const t=new z({repeat:e.repeat,yoyo:e.yoyo,onUpdate:e.onUpdate,onComplete:e.onComplete,delay:e.delay});t.to(r,{...e,delay:0,repeat:0,yoyo:!1,onUpdate:void 0,onComplete:void 0},0),s=t}return e.paused||s.play(),s}(U(t),e)}function U(t){if("string"==typeof t){if("undefined"==typeof document)throw new Error("[motionary] selector targets need a document — pass objects or elements instead");return Array.from(document.querySelectorAll(t))}return t}function X(...t){return d(q,...t)}X(),t.EASES=w,t.Playable=C,t.RUNTIME_CDN=r,t.RUNTIME_TIERS=i,t.RUNTIME_VERSION=e,t.RuntimeModuleError=h,t.TIER_ORDER=s,t.Timeline=z,t.Tween=R,t.core=q,t.cubicBezier=v,t.getTicker=f,t.hasModule=t=>o().modules.has(t),t.maxTier=function(t=[]){let e=0;for(const r of t)e=Math.max(e,s.indexOf(i[r]??"basic"));return s[e]},t.missingMessage=c,t.moduleCdn=u,t.modulePath=a,t.parseEase=$,t.parseValue=T,t.register=d,t.registeredModules=()=>Array.from(o().modules.keys()),t.registry=o,t.requireModule=function(t,e){const r=o().modules.get(t);if(!r)throw new h(t,e);return r.api},t.resolveTargets=U,t.steps=b,t.tierOf=t=>i[t],t.timeline=I,t.tween=L,t.use=X}(this.MotionaryRuntime=this.MotionaryRuntime||{});
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.6.0/dist/runtime.iife.js.map
1
+ !function(t){"use strict";const e="13.7.0",r="https://cdn.jsdelivr.net/npm/motionary@13/dist/",s=["basic","standard","advanced"],i={core:"basic",scroll:"basic",text:"basic","format-css":"basic","format-motion":"basic",smooth:"standard","drag-snap":"standard","format-svg":"standard","format-sprite":"standard","format-gif":"standard","format-apng":"standard","format-webp":"standard",vector:"standard","lottie-state":"standard",rive:"standard",gl:"advanced","format-gltf":"advanced","format-obj":"advanced","gltf-anim":"advanced","gltf-decoders":"advanced","basis-transcoder":"advanced",draco3d:"advanced",physics:"advanced","format-scene":"advanced"};const n=Symbol.for("motionary.runtime");function o(){const t=globalThis;return t[n]||(t[n]={version:e,modules:new Map,slots:{}})}const a=t=>"core"===t?"motionary/runtime":`motionary/runtime/${t}`,u=t=>r+("core"===t?"runtime.iife.js":`runtime/${t}.iife.js`);function c(t,e="This feature"){const r=a(t);return`[motionary] ${e} requires ${r}. Install once: npm i motionary — then register it before the component mounts: ${"core"===t?"import { use } from 'motionary/runtime'; use();":`import { use } from 'motionary/runtime'; import { ${l(t)} } from '${r}'; use(${l(t)});`} Or from a CDN (core first): ${"core"===t?`<script src="${u("core")}"><\/script>`:`<script src="${u("core")}"><\/script><script src="${u(t)}"><\/script>`} Docs: https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/${t}.md`}const l=t=>t.replace(/-(\w)/g,(t,e)=>e.toUpperCase());class h extends Error{constructor(t,e){super(c(t,e)),this.name="RuntimeModuleError",this.module=t}}function d(...t){const e=o();for(const r of t){if(!r||"string"!=typeof r.id)throw new TypeError("[motionary] use(): not a runtime module");if(!e.modules.has(r.id)){for(const t of r.requires||[])if(!e.modules.has(t))throw new h(t,`motionary/runtime/${r.id}`);e.modules.set(r.id,r),r.setup?.(e)}}return e}function m(){const t=new Set;let e=0,r=-1,s=60,i=100,n=null;const o=globalThis,a=()=>o.performance?.now?o.performance.now():Date.now(),u=t=>"function"==typeof o.requestAnimationFrame?o.requestAnimationFrame(t):setTimeout(()=>t(a()),16),c=(r,s=!0)=>{const n=(s?Math.min(r,i):r)*h.timeScale;e+=n;for(const r of Array.from(t))r(e,n)},l=e=>{if(n=null,!t.size)return;const i="number"==typeof e&&e>0?e:a(),o=r<0?0:i-r;r=i,o>0&&(s=.9*s+1e3/o*.1),c(o),t.size&&(n=u(l))},h={add:e=>(t.add(e),null===n&&t.size&&(r=-1,n=u(l)),()=>h.remove(e)),remove(e){var r;t.delete(e),t.size||null===n||(r=n,"function"==typeof o.cancelAnimationFrame?o.cancelAnimationFrame(r):clearTimeout(r),n=null)},get time(){return e},get fps(){return Math.round(s)},get size(){return t.size},lagSmoothing(t){i=t>0?t:1/0},timeScale:1,step(t){c(t,!1)}};return h}function f(){const t=o().slots;return t.ticker||(t.ticker=m())}const p=t=>e=>1-t(1-e),y=t=>e=>e<.5?t(2*e)/2:1-t(2*(1-e))/2,g=t=>e=>Math.pow(e,t);function v(t,e,r,s){const i=(t,e)=>1-3*e+3*t,n=(t,e)=>3*e-6*t,o=t=>3*t,a=(t,e,r)=>((i(e,r)*t+n(e,r))*t+o(e))*t,u=(t,e,r)=>3*i(e,r)*t*t+2*n(e,r)*t+o(e);return i=>{if(i<=0||i>=1)return i<=0?0:1;let n=i;for(let e=0;e<6;e++){const e=u(n,t,r);if(Math.abs(e)<1e-6)break;n-=(a(n,t,r)-i)/e}if(n<0||n>1||Math.abs(a(n,t,r)-i)>1e-4){let e=0,s=1;n=i;for(let o=0;o<30;o++){const o=a(n,t,r);if(Math.abs(o-i)<1e-6)break;o<i?e=n:s=n,n=(e+s)/2}}return a(n,e,s)}}const b=(t,e="end")=>r=>{const s="start"===e?Math.ceil(r*t):Math.floor(r*t);return Math.min(1,Math.max(0,s/t))},k={quad:g(2),cubic:g(3),quart:g(4),quint:g(5),sine:t=>1-Math.cos(t*Math.PI/2),expo:t=>0===t?0:Math.pow(2,10*t-10),circ:t=>1-Math.sqrt(1-t*t),back:((t=1.70158)=>e=>e*e*((t+1)*e-t))(),elastic:t=>0===t||1===t?t:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*(2*Math.PI/3)),bounce:p(t=>{const e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375})},w={linear:t=>t,ease:v(.25,.1,.25,1),"ease-in":v(.42,0,1,1),"ease-out":v(0,0,.58,1),"ease-in-out":v(.42,0,.58,1),smooth:v(.22,1,.36,1)};for(const[t,e]of Object.entries(k))w[`${t}-in`]=e,w[`${t}-out`]=p(e),w[`${t}-in-out`]=y(e);function $(t){if("function"==typeof t)return t;if(!t)return w["cubic-out"];const e=t.trim();if(w[e])return w[e];let r=/^cubic-bezier\(\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*\)$/.exec(e);if(r)return v(+r[1],+r[2],+r[3],+r[4]);if(r=/^steps\(\s*(\d+)\s*(?:,\s*(jump-)?(start|end)\s*)?\)$/.exec(e),r)return b(+r[1],r[3]||"end");if("step-start"===e)return b(1,"start");if("step-end"===e)return b(1,"end");throw new Error(`[motionary] unknown ease "${e}" — use a name from EASES, cubic-bezier(…) or steps(…)`)}const _=["x","y","rotate","scale","scaleX","scaleY","skewX","skewY"],M={x:"px",y:"px",rotate:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},x=new WeakMap,E=t=>"undefined"!=typeof Element&&t instanceof Element,S=/-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?/gi;function T(t){if("number"==typeof t)return{kind:"num",v:t,u:""};const e=t.trim();let r=/^#([0-9a-f]{3,8})$/i.exec(e);if(r){let t=r[1];t.length<=4&&(t=t.split("").map(t=>t+t).join(""));const e=e=>parseInt(t.slice(e,e+2),16);return{kind:"col",c:[e(0),e(2),e(4),8===t.length?e(6)/255:1]}}if(r=/^rgba?\(([^)]+)\)$/i.exec(e),r){const t=r[1].split(/[\s,/]+/).filter(Boolean).map(t=>t.endsWith("%")?parseFloat(t)/100*255:parseFloat(t));return{kind:"col",c:[t[0],t[1],t[2],void 0===t[3]?1:t[3]>1?t[3]/255:t[3]]}}return"transparent"===e?{kind:"col",c:[0,0,0,0]}:(r=/^(-?[\d.]+(?:e-?\d+)?)([a-z%]*)$/i.exec(e),r?{kind:"num",v:parseFloat(r[1]),u:r[2]}:{kind:"str",s:e,parts:e.split(S),nums:(e.match(S)||[]).map(Number)})}const D=(t,e,r)=>{if("str"===t.kind||"str"===e.kind){if("str"===t.kind&&"str"===e.kind&&t.parts.join("\0")===e.parts.join("\0")&&t.nums.length===e.nums.length)return t.parts.map((s,i)=>s+(i<t.nums.length?+(t.nums[i]+(e.nums[i]-t.nums[i])*r).toFixed(4):"")).join("");const s=r<.5?t:e;return"str"===s.kind?s.s:"num"===s.kind?s.u?s.v+s.u:s.v:`rgba(${s.c.join(", ")})`}if("col"===t.kind||"col"===e.kind){const s="col"===t.kind?t.c:[0,0,0,0],i="col"===e.kind?e.c:[0,0,0,0],n=s.map((t,e)=>t+(i[e]-t)*r);return`rgba(${Math.round(n[0])}, ${Math.round(n[1])}, ${Math.round(n[2])}, ${+n[3].toFixed(3)})`}const s=t.v+(e.v-t.v)*r,i=e.u||t.u;return i?`${+s.toFixed(4)}${i}`:+s.toFixed(6)},A=t=>t.startsWith("--")?t:t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase());function P(t,e){if(!E(t))return t[e]??0;if(_.includes(e)){const r=x.get(t)?.[e];return r?r.v+r.u:e.startsWith("scale")?1:0}const r=t.style.getPropertyValue(A(e));if(r)return r;return("function"==typeof getComputedStyle?getComputedStyle(t).getPropertyValue(A(e)):"")||("opacity"===e?1:0)}function j(t,e,r){if(E(t)){if(_.includes(e)){const s=T(r);if("num"!==s.kind)throw new Error(`[motionary] ${e} needs a number (got "${r}")`);const i=x.get(t)||{};return i[e]={v:s.v,u:s.u},void x.set(t,i)}t.style.setProperty(A(e),"number"!=typeof r||["opacity","zIndex","z-index"].includes(e)||e.startsWith("--")?String(r):r+"px")}else t[e]="string"==typeof r&&"number"==typeof t[e]?parseFloat(r):r}class C{constructor(t){this.timeScale=1,this._t=0,this._dir=1,this._off=null,this._done=!1,this.parent=null,this.delay=t.delay||0,this.repeat=t.repeat||0,this.yoyo=!!t.yoyo,this.onUpdate=t.onUpdate,this.onComplete=t.onComplete,this.finished=new Promise(t=>this._resolve=t)}get totalDuration(){return this.repeat<0?1/0:this.delay+this.duration*(this.repeat+1)}get time(){return this._t}get progress(){const t=this.totalDuration;return t===1/0?(this._t-this.delay)%this.duration/this.duration:t?this._t/t:1}set progress(t){this.seek(t*(this.totalDuration===1/0?this.delay+this.duration:this.totalDuration))}get isActive(){return!!this._off}get reversed(){return this._dir<0}seek(t){const e=this.totalDuration;this._t=Math.max(0,Math.min(t,e));const r=this._t-this.delay,s=this.duration||0;if(r<0)this.renderLocal(0,!1);else if(s){let t=s===1/0?0:Math.floor(r/s),i=s===1/0?r:r-t*s;r>=e-this.delay&&e!==1/0&&(t=this.repeat,i=s);const n=this.yoyo&&t%2==1;this.renderLocal(n?s-i:i,i===s)}else this.renderLocal(0,!0);return this.onUpdate?.(this.progress),this}play(){return this._dir=1,this._t>=this.totalDuration&&(this._t=0),this.attach()}pause(){return this._off?.(),this._off=null,this}reverse(){return this._dir=-1,this._t<=0&&(this._t=this.totalDuration===1/0?this.delay+this.duration:this.totalDuration),this.attach()}restart(){return this._done=!1,this.seek(0),this.play()}kill(){this.pause(),this.parent?.remove(this)}then(t,e){return this.finished.then(t,e)}attach(){return this.parent||this._off||(this._done=!1,this._off=f().add((t,e)=>this.advance(e))),this}advance(t){const e=this.totalDuration;this.seek(this._t+t*this._dir*this.timeScale),(this._dir>0&&this._t>=e||this._dir<0&&this._t<=0)&&this.complete()}complete(){this.pause(),this._done||(this._done=!0,this.onComplete?.(),this._resolve())}}class R extends C{constructor(t,e){super(e),this.tracks=null,this.target=t,this._dur=e.duration??600,this.ease=$(e.ease),this.toProps=e.to||{},this.fromProps=e.from||{}}get duration(){return this._dur}init(){return Array.from(new Set([...Object.keys(this.fromProps),...Object.keys(this.toProps)])).map(t=>{const e=t in this.fromProps?this.fromProps[t]:P(this.target,t),r=t in this.toProps?this.toProps[t]:P(this.target,t);return{k:t,fromRaw:e,toRaw:r,from:T(e),to:T(r)}})}renderLocal(t,e){this.tracks||(this.tracks=this.init());const r=this._dur?e?this.ease(t>=this._dur?1:0):this.ease(t/this._dur):1;let s=!1;for(const t of this.tracks)j(this.target,t.k,D(t.from,t.to,r)),_.includes(t.k)&&(s=!0);s&&E(this.target)&&function(t){const e=x.get(t),r=(t,r)=>e[t]?e[t].v:r,s=t=>e[t]?.u??M[t],i=[];(e.x||e.y)&&i.push(`translate(${r("x",0)}${s("x")||"px"}, ${r("y",0)}${s("y")||"px"})`),e.rotate&&i.push(`rotate(${r("rotate",0)}${s("rotate")||"deg"})`),e.scale&&i.push(`scale(${r("scale",1)})`),(e.scaleX||e.scaleY)&&i.push(`scale(${r("scaleX",1)}, ${r("scaleY",1)})`),e.skewX&&i.push(`skewX(${r("skewX",0)}${s("skewX")||"deg"})`),e.skewY&&i.push(`skewY(${r("skewY",0)}${s("skewY")||"deg"})`),t.style.transform=i.join(" ")}(this.target)}}class z extends C{constructor(t={}){super(t),this.children=[],this.labels={},this.prevStart=0,this.prevEnd=0,this.lastLocal=0,this.defaults=t.defaults}get duration(){let t=0;for(const e of this.children)t=Math.max(t,e.start+("function"==typeof e.item?0:e.item.totalDuration));return t}resolve(t){if(void 0===t||">"===t)return this.prevEnd;if("number"==typeof t)return Math.max(0,t);const e=/^([<>]|[\w-]+)?\s*(?:([+-])=\s*([\d.]+))?$/.exec(t.trim());if(!e)throw new Error(`[motionary] bad timeline position "${t}"`);let r=this.prevEnd;if("<"===e[1])r=this.prevStart;else if(e[1]&&">"!==e[1]){if(!(e[1]in this.labels))throw new Error(`[motionary] unknown timeline label "${e[1]}"`);r=this.labels[e[1]]}const s=e[2]?("+"===e[2]?1:-1)*parseFloat(e[3]):0;return Math.max(0,r+s)}add(t,e){const r=this.resolve(e);return"function"!=typeof t&&(t.pause(),t.parent=this),this.children.push({item:t,start:r}),this.prevStart=r,this.prevEnd=r+("function"==typeof t?0:t.totalDuration),this}to(t,e,r){const s=F(t),i=this.resolve(r);let n=i;return s.forEach((t,r)=>{const s=new R(t,{...this.defaults,...e,delay:(e.delay||0)+(e.stagger||0)*r,paused:!0});s.parent=this,this.children.push({item:s,start:i}),n=Math.max(n,i+s.totalDuration)}),this.prevStart=i,this.prevEnd=n,this}call(t,e){return this.add(t,e)}label(t,e){return this.labels[t]=this.resolve(e),this}labelTime(t){return this.labels[t]}remove(t){this.children=this.children.filter(e=>e.item!==t)}getChildren(){return this.children.filter(t=>"function"!=typeof t.item).map(t=>t.item)}renderLocal(t){const e=t>=this.lastLocal,r=[...this.children].sort((t,r)=>e?t.start-r.start:r.start-t.start);for(const s of r){if("function"==typeof s.item){e&&!s.fired&&t>=s.start&&this.lastLocal<=s.start?(s.fired=!0,s.item()):!e&&t<s.start&&(s.fired=!1);continue}const r=t-s.start,i=s.item;r<0?i._started&&i.seek(0):(i._started=!0,i.seek(Math.min(r,i.totalDuration)))}this.lastLocal=t}}function F(t){return Array.isArray(t)?t:t&&"number"==typeof t.length&&!E(t)?Array.from(t):[t]}function I(t={}){const e=new z(t);return t.paused||e.play(),e}const q={id:"core",version:e,tier:"basic",api:{version:e,getTicker:f,tween:L,timeline:I,Tween:R,Timeline:z,EASES:w,parseEase:$,cubicBezier:v,steps:b}};function L(t,e){return function(t,e){const r=F(t);let s;if(1===r.length)s=new R(r[0],e);else{const t=new z({repeat:e.repeat,yoyo:e.yoyo,onUpdate:e.onUpdate,onComplete:e.onComplete,delay:e.delay});t.to(r,{...e,delay:0,repeat:0,yoyo:!1,onUpdate:void 0,onComplete:void 0},0),s=t}return e.paused||s.play(),s}(U(t),e)}function U(t){if("string"==typeof t){if("undefined"==typeof document)throw new Error("[motionary] selector targets need a document — pass objects or elements instead");return Array.from(document.querySelectorAll(t))}return t}function X(...t){return d(q,...t)}X(),t.EASES=w,t.Playable=C,t.RUNTIME_CDN=r,t.RUNTIME_TIERS=i,t.RUNTIME_VERSION=e,t.RuntimeModuleError=h,t.TIER_ORDER=s,t.Timeline=z,t.Tween=R,t.core=q,t.cubicBezier=v,t.getTicker=f,t.hasModule=t=>o().modules.has(t),t.maxTier=function(t=[]){let e=0;for(const r of t)e=Math.max(e,s.indexOf(i[r]??"basic"));return s[e]},t.missingMessage=c,t.moduleCdn=u,t.modulePath=a,t.parseEase=$,t.parseValue=T,t.register=d,t.registeredModules=()=>Array.from(o().modules.keys()),t.registry=o,t.requireModule=function(t,e){const r=o().modules.get(t);if(!r)throw new h(t,e);return r.api},t.resolveTargets=U,t.steps=b,t.tierOf=t=>i[t],t.timeline=I,t.tween=L,t.use=X}(this.MotionaryRuntime=this.MotionaryRuntime||{});
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.7.0/dist/runtime.iife.js.map