motionary 0.0.0-stage → 6.1.1

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 (342) hide show
  1. package/CHANGELOG.md +784 -0
  2. package/LICENSE +21 -0
  3. package/README.md +218 -2
  4. package/README_ja.md +219 -0
  5. package/README_zh.md +219 -0
  6. package/bin/usa-codemod-5.mjs +79 -0
  7. package/bin/usa-codemod-6.mjs +146 -0
  8. package/dist/chunks/base-BaQV-2ha.cjs +436 -0
  9. package/dist/chunks/base-BaQV-2ha.cjs.map +1 -0
  10. package/dist/chunks/base-Yno7N2eC.js +404 -0
  11. package/dist/chunks/base-Yno7N2eC.js.map +1 -0
  12. package/dist/chunks/bind-B_CTL6Qn.js +22 -0
  13. package/dist/chunks/bind-B_CTL6Qn.js.map +1 -0
  14. package/dist/chunks/bind-Ui43-n2d.cjs +25 -0
  15. package/dist/chunks/bind-Ui43-n2d.cjs.map +1 -0
  16. package/dist/chunks/core-B5T0dhFH.cjs +920 -0
  17. package/dist/chunks/core-B5T0dhFH.cjs.map +1 -0
  18. package/dist/chunks/core-BGAyaY6L.cjs +265 -0
  19. package/dist/chunks/core-BGAyaY6L.cjs.map +1 -0
  20. package/dist/chunks/core-BIOaYdgN.js +181 -0
  21. package/dist/chunks/core-BIOaYdgN.js.map +1 -0
  22. package/dist/chunks/core-CUGCsMsJ.js +260 -0
  23. package/dist/chunks/core-CUGCsMsJ.js.map +1 -0
  24. package/dist/chunks/core-D7cVumUu.js +909 -0
  25. package/dist/chunks/core-D7cVumUu.js.map +1 -0
  26. package/dist/chunks/core-zq17EeCI.cjs +185 -0
  27. package/dist/chunks/core-zq17EeCI.cjs.map +1 -0
  28. package/dist/chunks/fx-BqDeFywO.js +109 -0
  29. package/dist/chunks/fx-BqDeFywO.js.map +1 -0
  30. package/dist/chunks/fx-lBGVtQO1.cjs +114 -0
  31. package/dist/chunks/fx-lBGVtQO1.cjs.map +1 -0
  32. package/dist/chunks/index-tags-DucKMQr_.js +26 -0
  33. package/dist/chunks/index-tags-DucKMQr_.js.map +1 -0
  34. package/dist/chunks/index-tags-wv0R_vkO.cjs +28 -0
  35. package/dist/chunks/index-tags-wv0R_vkO.cjs.map +1 -0
  36. package/dist/chunks/presets-BYBVJVeP.js +226 -0
  37. package/dist/chunks/presets-BYBVJVeP.js.map +1 -0
  38. package/dist/chunks/presets-CUHys3sK.cjs +233 -0
  39. package/dist/chunks/presets-CUHys3sK.cjs.map +1 -0
  40. package/dist/chunks/spring-DfQO5USi.js +219 -0
  41. package/dist/chunks/spring-DfQO5USi.js.map +1 -0
  42. package/dist/chunks/spring-Dgx187Vh.cjs +232 -0
  43. package/dist/chunks/spring-Dgx187Vh.cjs.map +1 -0
  44. package/dist/chunks/stagger-CCFyhzSw.cjs +86 -0
  45. package/dist/chunks/stagger-CCFyhzSw.cjs.map +1 -0
  46. package/dist/chunks/stagger-DtMKo2SK.js +84 -0
  47. package/dist/chunks/stagger-DtMKo2SK.js.map +1 -0
  48. package/dist/chunks/variants-BhjyddG8.cjs +39 -0
  49. package/dist/chunks/variants-BhjyddG8.cjs.map +1 -0
  50. package/dist/chunks/variants-VNscPeTD.js +35 -0
  51. package/dist/chunks/variants-VNscPeTD.js.map +1 -0
  52. package/dist/components/a11y.cjs +276 -0
  53. package/dist/components/a11y.cjs.map +1 -0
  54. package/dist/components/a11y.d.cts +131 -0
  55. package/dist/components/a11y.d.ts +131 -0
  56. package/dist/components/a11y.js +259 -0
  57. package/dist/components/a11y.js.map +1 -0
  58. package/dist/components/angular.cjs +75 -0
  59. package/dist/components/angular.cjs.map +1 -0
  60. package/dist/components/angular.d.cts +1734 -0
  61. package/dist/components/angular.d.ts +1734 -0
  62. package/dist/components/angular.js +69 -0
  63. package/dist/components/angular.js.map +1 -0
  64. package/dist/components/background.cjs +659 -0
  65. package/dist/components/background.cjs.map +1 -0
  66. package/dist/components/background.css +9 -0
  67. package/dist/components/background.d.cts +166 -0
  68. package/dist/components/background.d.ts +166 -0
  69. package/dist/components/background.js +647 -0
  70. package/dist/components/background.js.map +1 -0
  71. package/dist/components/bridge.cjs +154 -0
  72. package/dist/components/bridge.cjs.map +1 -0
  73. package/dist/components/bridge.d.cts +63 -0
  74. package/dist/components/bridge.d.ts +63 -0
  75. package/dist/components/bridge.js +147 -0
  76. package/dist/components/bridge.js.map +1 -0
  77. package/dist/components/cards.cjs +561 -0
  78. package/dist/components/cards.cjs.map +1 -0
  79. package/dist/components/cards.css +6 -0
  80. package/dist/components/cards.d.cts +115 -0
  81. package/dist/components/cards.d.ts +115 -0
  82. package/dist/components/cards.js +554 -0
  83. package/dist/components/cards.js.map +1 -0
  84. package/dist/components/click.cjs +877 -0
  85. package/dist/components/click.cjs.map +1 -0
  86. package/dist/components/click.css +9 -0
  87. package/dist/components/click.d.cts +218 -0
  88. package/dist/components/click.d.ts +218 -0
  89. package/dist/components/click.js +863 -0
  90. package/dist/components/click.js.map +1 -0
  91. package/dist/components/depth.cjs +250 -0
  92. package/dist/components/depth.cjs.map +1 -0
  93. package/dist/components/depth.css +3 -0
  94. package/dist/components/depth.d.cts +86 -0
  95. package/dist/components/depth.d.ts +86 -0
  96. package/dist/components/depth.js +242 -0
  97. package/dist/components/depth.js.map +1 -0
  98. package/dist/components/effects.cjs +2590 -0
  99. package/dist/components/effects.cjs.map +1 -0
  100. package/dist/components/effects.d.cts +545 -0
  101. package/dist/components/effects.d.ts +545 -0
  102. package/dist/components/effects.js +2531 -0
  103. package/dist/components/effects.js.map +1 -0
  104. package/dist/components/feedback.cjs +442 -0
  105. package/dist/components/feedback.cjs.map +1 -0
  106. package/dist/components/feedback.css +7 -0
  107. package/dist/components/feedback.d.cts +144 -0
  108. package/dist/components/feedback.d.ts +144 -0
  109. package/dist/components/feedback.js +433 -0
  110. package/dist/components/feedback.js.map +1 -0
  111. package/dist/components/fx.cjs +289 -0
  112. package/dist/components/fx.cjs.map +1 -0
  113. package/dist/components/fx.css +3 -0
  114. package/dist/components/fx.d.cts +114 -0
  115. package/dist/components/fx.d.ts +114 -0
  116. package/dist/components/fx.js +275 -0
  117. package/dist/components/fx.js.map +1 -0
  118. package/dist/components/gesture.cjs +209 -0
  119. package/dist/components/gesture.cjs.map +1 -0
  120. package/dist/components/gesture.css +3 -0
  121. package/dist/components/gesture.d.cts +134 -0
  122. package/dist/components/gesture.d.ts +134 -0
  123. package/dist/components/gesture.js +203 -0
  124. package/dist/components/gesture.js.map +1 -0
  125. package/dist/components/interaction.cjs +424 -0
  126. package/dist/components/interaction.cjs.map +1 -0
  127. package/dist/components/interaction.css +8 -0
  128. package/dist/components/interaction.d.cts +115 -0
  129. package/dist/components/interaction.d.ts +115 -0
  130. package/dist/components/interaction.js +416 -0
  131. package/dist/components/interaction.js.map +1 -0
  132. package/dist/components/jsx.cjs +3 -0
  133. package/dist/components/jsx.cjs.map +1 -0
  134. package/dist/components/jsx.d.cts +53 -0
  135. package/dist/components/jsx.d.ts +53 -0
  136. package/dist/components/jsx.js +2 -0
  137. package/dist/components/jsx.js.map +1 -0
  138. package/dist/components/layout.cjs +257 -0
  139. package/dist/components/layout.cjs.map +1 -0
  140. package/dist/components/layout.css +3 -0
  141. package/dist/components/layout.d.cts +99 -0
  142. package/dist/components/layout.d.ts +99 -0
  143. package/dist/components/layout.js +249 -0
  144. package/dist/components/layout.js.map +1 -0
  145. package/dist/components/lazy.cjs +92 -0
  146. package/dist/components/lazy.cjs.map +1 -0
  147. package/dist/components/lazy.d.cts +48 -0
  148. package/dist/components/lazy.d.ts +48 -0
  149. package/dist/components/lazy.js +87 -0
  150. package/dist/components/lazy.js.map +1 -0
  151. package/dist/components/lite.cjs +11099 -0
  152. package/dist/components/lite.cjs.map +1 -0
  153. package/dist/components/lite.d.cts +4 -0
  154. package/dist/components/lite.d.ts +4 -0
  155. package/dist/components/lite.js +10831 -0
  156. package/dist/components/lite.js.map +1 -0
  157. package/dist/components/packs.cjs +192 -0
  158. package/dist/components/packs.cjs.map +1 -0
  159. package/dist/components/packs.css +3 -0
  160. package/dist/components/packs.d.cts +72 -0
  161. package/dist/components/packs.d.ts +72 -0
  162. package/dist/components/packs.js +184 -0
  163. package/dist/components/packs.js.map +1 -0
  164. package/dist/components/page.cjs +824 -0
  165. package/dist/components/page.cjs.map +1 -0
  166. package/dist/components/page.css +11 -0
  167. package/dist/components/page.d.cts +249 -0
  168. package/dist/components/page.d.ts +249 -0
  169. package/dist/components/page.js +799 -0
  170. package/dist/components/page.js.map +1 -0
  171. package/dist/components/perf.cjs +120 -0
  172. package/dist/components/perf.cjs.map +1 -0
  173. package/dist/components/perf.d.cts +98 -0
  174. package/dist/components/perf.d.ts +98 -0
  175. package/dist/components/perf.js +110 -0
  176. package/dist/components/perf.js.map +1 -0
  177. package/dist/components/physics.cjs +448 -0
  178. package/dist/components/physics.cjs.map +1 -0
  179. package/dist/components/physics.css +5 -0
  180. package/dist/components/physics.d.cts +189 -0
  181. package/dist/components/physics.d.ts +189 -0
  182. package/dist/components/physics.js +430 -0
  183. package/dist/components/physics.js.map +1 -0
  184. package/dist/components/react.cjs +96 -0
  185. package/dist/components/react.cjs.map +1 -0
  186. package/dist/components/react.d.cts +18 -0
  187. package/dist/components/react.d.ts +18 -0
  188. package/dist/components/react.js +91 -0
  189. package/dist/components/react.js.map +1 -0
  190. package/dist/components/reveal.cjs +362 -0
  191. package/dist/components/reveal.cjs.map +1 -0
  192. package/dist/components/reveal.css +5 -0
  193. package/dist/components/reveal.d.cts +105 -0
  194. package/dist/components/reveal.d.ts +105 -0
  195. package/dist/components/reveal.js +353 -0
  196. package/dist/components/reveal.js.map +1 -0
  197. package/dist/components/solid.cjs +85 -0
  198. package/dist/components/solid.cjs.map +1 -0
  199. package/dist/components/solid.d.cts +1751 -0
  200. package/dist/components/solid.d.ts +1751 -0
  201. package/dist/components/solid.js +81 -0
  202. package/dist/components/solid.js.map +1 -0
  203. package/dist/components/svelte.cjs +67 -0
  204. package/dist/components/svelte.cjs.map +1 -0
  205. package/dist/components/svelte.d.cts +1733 -0
  206. package/dist/components/svelte.d.ts +1733 -0
  207. package/dist/components/svelte.js +63 -0
  208. package/dist/components/svelte.js.map +1 -0
  209. package/dist/components/svg.cjs +359 -0
  210. package/dist/components/svg.cjs.map +1 -0
  211. package/dist/components/svg.css +3 -0
  212. package/dist/components/svg.d.cts +113 -0
  213. package/dist/components/svg.d.ts +113 -0
  214. package/dist/components/svg.js +347 -0
  215. package/dist/components/svg.js.map +1 -0
  216. package/dist/components/text.cjs +968 -0
  217. package/dist/components/text.cjs.map +1 -0
  218. package/dist/components/text.css +8 -0
  219. package/dist/components/text.d.cts +342 -0
  220. package/dist/components/text.d.ts +342 -0
  221. package/dist/components/text.js +947 -0
  222. package/dist/components/text.js.map +1 -0
  223. package/dist/components/timeline.cjs +109 -0
  224. package/dist/components/timeline.cjs.map +1 -0
  225. package/dist/components/timeline.css +3 -0
  226. package/dist/components/timeline.d.cts +155 -0
  227. package/dist/components/timeline.d.ts +155 -0
  228. package/dist/components/timeline.js +103 -0
  229. package/dist/components/timeline.js.map +1 -0
  230. package/dist/components/tokens.cjs +226 -0
  231. package/dist/components/tokens.cjs.map +1 -0
  232. package/dist/components/tokens.d.cts +74 -0
  233. package/dist/components/tokens.d.ts +74 -0
  234. package/dist/components/tokens.js +211 -0
  235. package/dist/components/tokens.js.map +1 -0
  236. package/dist/components/transitions.cjs +430 -0
  237. package/dist/components/transitions.cjs.map +1 -0
  238. package/dist/components/transitions.css +5 -0
  239. package/dist/components/transitions.d.cts +126 -0
  240. package/dist/components/transitions.d.ts +126 -0
  241. package/dist/components/transitions.js +423 -0
  242. package/dist/components/transitions.js.map +1 -0
  243. package/dist/components/ui.cjs +1050 -0
  244. package/dist/components/ui.cjs.map +1 -0
  245. package/dist/components/ui.css +14 -0
  246. package/dist/components/ui.d.cts +224 -0
  247. package/dist/components/ui.d.ts +224 -0
  248. package/dist/components/ui.js +1034 -0
  249. package/dist/components/ui.js.map +1 -0
  250. package/dist/components/vue.cjs +66 -0
  251. package/dist/components/vue.cjs.map +1 -0
  252. package/dist/components/vue.d.cts +1722 -0
  253. package/dist/components/vue.d.ts +1722 -0
  254. package/dist/components/vue.js +63 -0
  255. package/dist/components/vue.js.map +1 -0
  256. package/dist/components/webgl.cjs +459 -0
  257. package/dist/components/webgl.cjs.map +1 -0
  258. package/dist/components/webgl.css +3 -0
  259. package/dist/components/webgl.d.cts +133 -0
  260. package/dist/components/webgl.d.ts +133 -0
  261. package/dist/components/webgl.js +442 -0
  262. package/dist/components/webgl.js.map +1 -0
  263. package/dist/components.cjs +350 -0
  264. package/dist/components.cjs.map +1 -0
  265. package/dist/components.css +75 -0
  266. package/dist/components.d.cts +2997 -0
  267. package/dist/components.d.ts +2997 -0
  268. package/dist/components.js +105 -0
  269. package/dist/components.js.map +1 -0
  270. package/dist/components.umd.js +23 -0
  271. package/dist/components.umd.js.map +1 -0
  272. package/dist/element.cjs +97 -0
  273. package/dist/element.cjs.map +1 -0
  274. package/dist/element.d.cts +215 -0
  275. package/dist/element.d.ts +215 -0
  276. package/dist/element.js +95 -0
  277. package/dist/element.js.map +1 -0
  278. package/dist/element.umd.js +2 -0
  279. package/dist/element.umd.js.map +1 -0
  280. package/dist/index.cjs +149 -0
  281. package/dist/index.cjs.map +1 -0
  282. package/dist/index.d.cts +425 -0
  283. package/dist/index.d.ts +425 -0
  284. package/dist/index.js +131 -0
  285. package/dist/index.js.map +1 -0
  286. package/dist/index.umd.js +15 -0
  287. package/dist/index.umd.js.map +1 -0
  288. package/dist/presets/extended.cjs +243 -0
  289. package/dist/presets/extended.cjs.map +1 -0
  290. package/dist/presets/extended.d.cts +37 -0
  291. package/dist/presets/extended.d.ts +37 -0
  292. package/dist/presets/extended.js +239 -0
  293. package/dist/presets/extended.js.map +1 -0
  294. package/dist/presets-extended.umd.js +2 -0
  295. package/dist/presets-extended.umd.js.map +1 -0
  296. package/dist/react.cjs +68 -0
  297. package/dist/react.cjs.map +1 -0
  298. package/dist/react.d.cts +158 -0
  299. package/dist/react.d.ts +158 -0
  300. package/dist/react.js +65 -0
  301. package/dist/react.js.map +1 -0
  302. package/dist/solid.cjs +93 -0
  303. package/dist/solid.cjs.map +1 -0
  304. package/dist/solid.d.cts +249 -0
  305. package/dist/solid.d.ts +249 -0
  306. package/dist/solid.js +89 -0
  307. package/dist/solid.js.map +1 -0
  308. package/dist/svelte.cjs +66 -0
  309. package/dist/svelte.cjs.map +1 -0
  310. package/dist/svelte.d.cts +243 -0
  311. package/dist/svelte.d.ts +243 -0
  312. package/dist/svelte.js +63 -0
  313. package/dist/svelte.js.map +1 -0
  314. package/dist/vue.cjs +62 -0
  315. package/dist/vue.cjs.map +1 -0
  316. package/dist/vue.d.cts +158 -0
  317. package/dist/vue.d.ts +158 -0
  318. package/dist/vue.js +60 -0
  319. package/dist/vue.js.map +1 -0
  320. package/docs/API.md +147 -0
  321. package/docs/ROADMAP.md +15 -0
  322. package/docs/accessibility.md +60 -0
  323. package/docs/components.md +535 -0
  324. package/docs/deprecations.md +30 -0
  325. package/docs/frameworks-ssr.md +100 -0
  326. package/docs/hybrid-apps.md +145 -0
  327. package/docs/images/showcase-detail.png +0 -0
  328. package/docs/images/showcase-grid.png +0 -0
  329. package/docs/images/showcase-mobile.png +0 -0
  330. package/docs/migration-from-aos.md +67 -0
  331. package/docs/migration-from-gsap-scrolltrigger.md +80 -0
  332. package/docs/motion-tokens.css +31 -0
  333. package/docs/motion-tokens.md +46 -0
  334. package/docs/motion.tokens.json +132 -0
  335. package/docs/performance.md +24 -0
  336. package/docs/presets.md +310 -0
  337. package/docs/upgrading-3.md +21 -0
  338. package/docs/upgrading-4.md +65 -0
  339. package/docs/upgrading-5.md +31 -0
  340. package/docs/upgrading-6.md +32 -0
  341. package/docs/windows-apps.md +119 -0
  342. package/package.json +532 -4
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Members shared by every `<usa-*>` element. Attribute helpers, a cleanup
3
+ * bag that is emptied on disconnect, and motion helpers that degrade to the
4
+ * final state without WAAPI or under reduced motion.
5
+ */
6
+ interface UsaElement extends HTMLElement {
7
+ /** `true` while reduced motion applies to this element. */
8
+ readonly reduced: boolean;
9
+ }
10
+
11
+ /**
12
+ * `<usa-cube>` — a CSS 3D cube whose up-to-six element children are its faces
13
+ * (front, right, back, left, top, bottom). Rotate with drag / swipe, arrow
14
+ * keys, `autoplay` (ms) or `show(face | index)`; spring-driven.
15
+ * Attributes: `size` (px, 200), `autoplay`, `perspective` (900).
16
+ * `usa:change` (`{ index, face }`). Reduced motion: instant face switch.
17
+ */
18
+ interface UsaCubeElement extends UsaElement {
19
+ readonly index: number;
20
+ show(face: number | string): void;
21
+ next(): void;
22
+ prev(): void;
23
+ }
24
+ declare function defineCube(tag?: string): CustomElementConstructor | undefined;
25
+
26
+ /**
27
+ * `<usa-depth>` — depth parallax: children with `data-depth` (-1…1, 0 = the
28
+ * screen plane) move and scale by depth as the pointer moves, the device
29
+ * tilts (`orientation`) or the page scrolls (`scroll`).
30
+ * Attributes: `source` (`pointer` default · `orientation` · `scroll` ·
31
+ * space-separated mix), `strength` (px at depth 1, 40), `rotate` (max tilt
32
+ * of the whole scene in deg, 0). `requestPermission()` for iOS motion.
33
+ * Reduced motion: layers stay flat.
34
+ */
35
+ interface UsaDepthElement extends UsaElement {
36
+ /** Current -1…1 input. */
37
+ readonly tilt: {
38
+ x: number;
39
+ y: number;
40
+ };
41
+ requestPermission(): Promise<boolean>;
42
+ }
43
+ declare function defineDepth(tag?: string): CustomElementConstructor | undefined;
44
+
45
+ interface TiltReading {
46
+ /** Left/right tilt, -1…1. */
47
+ x: number;
48
+ /** Front/back tilt, -1…1. */
49
+ y: number;
50
+ }
51
+ /** Map a DeviceOrientation reading (beta/gamma degrees) to -1…1 tilt around a resting pose (pure). */
52
+ declare function orientationToTilt(beta: number | null, gamma: number | null, range?: number, rest?: number): TiltReading;
53
+ /** `true` when DeviceOrientation events exist. */
54
+ declare const supportsOrientation: () => boolean;
55
+ /**
56
+ * Ask for motion-sensor permission where required (iOS 13+; must run inside
57
+ * a user gesture). Resolves `true` when tilt events can be used.
58
+ */
59
+ declare function requestOrientationPermission(): Promise<boolean>;
60
+ /**
61
+ * Listen to device tilt (smoothed); falls back to nothing on desktops.
62
+ * Returns a stop function.
63
+ */
64
+ declare function deviceTilt(cb: (t: TiltReading) => void, o?: {
65
+ range?: number;
66
+ smooth?: number;
67
+ }): () => void;
68
+
69
+ /**
70
+ * motionary/components/depth — 3D (v3.5).
71
+ * `<usa-cube>` (CSS 3D cube), `<usa-depth>` (layered depth parallax driven by
72
+ * pointer, device orientation or scroll) and `deviceTilt()`. The 3D ring
73
+ * carousel is `<usa-carousel-3d>` in `components/cards`.
74
+ */
75
+
76
+ /** Register every component of this category under its default tag. */
77
+ declare function defineDepthComponents(): void;
78
+ declare global {
79
+ interface HTMLElementTagNameMap {
80
+ 'usa-cube': UsaCubeElement;
81
+ 'usa-depth': UsaDepthElement;
82
+ }
83
+ }
84
+
85
+ export { defineCube, defineDepth, defineDepthComponents, deviceTilt, orientationToTilt, requestOrientationPermission, supportsOrientation };
86
+ export type { TiltReading, UsaCubeElement, UsaDepthElement };
@@ -0,0 +1,242 @@
1
+ import { x as defineElement, k as clamp, r as raf, q as caf } from '../chunks/base-Yno7N2eC.js';
2
+ import { c as createSpring } from '../chunks/spring-DfQO5USi.js';
3
+ import { g as gesture } from '../chunks/core-BIOaYdgN.js';
4
+
5
+ var css = "usa-cube{--usa-cube-size:200px;display:block;width:var(--usa-cube-size);height:var(--usa-cube-size);perspective:var(--usa-cube-perspective,900px);touch-action:pan-y;user-select:none;-webkit-user-select:none;position:relative}usa-cube>[data-face]{position:absolute;inset:0;backface-visibility:hidden;transform:translateZ(calc(var(--usa-cube-size) / -2)) rotateX(var(--usa-cube-rx,0deg)) rotateY(var(--usa-cube-ry,0deg)) var(--usa-face) translateZ(calc(var(--usa-cube-size) / 2));transform-origin:50% 50%}usa-cube>[data-face=\"front\"]{--usa-face:rotateY(0deg)}usa-cube>[data-face=\"right\"]{--usa-face:rotateY(90deg)}usa-cube>[data-face=\"back\"]{--usa-face:rotateY(180deg)}usa-cube>[data-face=\"left\"]{--usa-face:rotateY(-90deg)}usa-cube>[data-face=\"top\"]{--usa-face:rotateX(90deg)}usa-cube>[data-face=\"bottom\"]{--usa-face:rotateX(-90deg)}usa-cube:focus-visible{outline:2px solid currentColor;outline-offset:6px}usa-depth{display:block;position:relative;perspective:1000px}usa-depth>*{transform:var(--usa-depth-rot,none);transform-style:preserve-3d}usa-depth [data-depth]{will-change:transform;transition:transform 0.12s linear}@media (prefers-reduced-motion:reduce){usa-depth [data-depth]{transform:none !important}}";
6
+
7
+ const FACES = ['front', 'right', 'back', 'left', 'top', 'bottom'];
8
+ /** Rotation (deg) that brings each face to the front. */
9
+ const ROT = { front: [0, 0], right: [0, -90], back: [0, -180], left: [0, 90], top: [-90, 0], bottom: [90, 0] };
10
+ function defineCube(tag = 'usa-cube') {
11
+ return defineElement(tag, (Base) => class UsaCube extends Base {
12
+ constructor() {
13
+ super(...arguments);
14
+ this._i = 0;
15
+ this._base = [0, 0];
16
+ }
17
+ static get observedAttributes() {
18
+ return ['size', 'autoplay'];
19
+ }
20
+ get index() {
21
+ return this._i;
22
+ }
23
+ faces() {
24
+ return Array.from(this.children).filter((c) => c instanceof HTMLElement && !c.hasAttribute('slot')).slice(0, 6);
25
+ }
26
+ paint() {
27
+ this.style.setProperty('--usa-cube-rx', `${this._rx.value}deg`);
28
+ this.style.setProperty('--usa-cube-ry', `${this._ry.value}deg`);
29
+ }
30
+ show(face) {
31
+ const n = this.faces().length || 1;
32
+ const i = typeof face === 'number' ? ((face % n) + n) % n : Math.max(0, FACES.indexOf(face));
33
+ this._i = i;
34
+ const [rx, ry] = ROT[FACES[i]];
35
+ // take the shortest way round on Y
36
+ const cur = this._ry.target;
37
+ const ty = ry + Math.round((cur - ry) / 360) * 360;
38
+ this._base = [rx, ty];
39
+ if (this.reduced) {
40
+ this._rx.jump(rx);
41
+ this._ry.jump(ty);
42
+ }
43
+ else {
44
+ this._rx.set(rx);
45
+ this._ry.set(ty);
46
+ }
47
+ this.faces().forEach((f, j) => f.setAttribute('aria-hidden', String(j !== i)));
48
+ this.emit('change', { index: i, face: FACES[i] });
49
+ }
50
+ next() {
51
+ this.show(this._i + 1);
52
+ }
53
+ prev() {
54
+ this.show(this._i - 1);
55
+ }
56
+ mount() {
57
+ this.style.setProperty('--usa-cube-size', `${this.num('size', 200)}px`);
58
+ this.style.setProperty('--usa-cube-perspective', `${this.num('perspective', 900)}px`);
59
+ this.faces().forEach((f, j) => f.setAttribute('data-face', FACES[j]));
60
+ if (!this.hasAttribute('tabindex'))
61
+ this.tabIndex = 0;
62
+ if (!this.hasAttribute('role'))
63
+ this.setAttribute('role', 'region');
64
+ if (!this.hasAttribute('aria-roledescription'))
65
+ this.setAttribute('aria-roledescription', 'cube');
66
+ this._rx = createSpring({ spring: 'gentle', onUpdate: () => this.paint() });
67
+ this._ry = createSpring({ spring: 'gentle', onUpdate: () => this.paint() });
68
+ this.show(this._i);
69
+ this.paint();
70
+ this.onCleanup(gesture(this, {
71
+ onPan: ({ dx, dy, last }) => {
72
+ if (this.reduced)
73
+ return;
74
+ if (!last) {
75
+ this._ry.jump(this._base[1] + dx * 0.5);
76
+ this._rx.jump(this._base[0] - dy * 0.5);
77
+ return;
78
+ }
79
+ if (Math.abs(dx) > 40 && Math.abs(dx) >= Math.abs(dy))
80
+ return dx < 0 ? this.next() : this.prev();
81
+ if (Math.abs(dy) > 40 && this.faces().length > 4)
82
+ return this.show(dy < 0 ? 'bottom' : 'top');
83
+ this.show(this._i);
84
+ },
85
+ }));
86
+ this.listen(this, 'keydown', (e) => {
87
+ const k = { ArrowRight: () => this.next(), ArrowLeft: () => this.prev(), ArrowUp: () => this.show('bottom'), ArrowDown: () => this.show('top'), Home: () => this.show(0) };
88
+ if (!k[e.key] || ((e.key === 'ArrowUp' || e.key === 'ArrowDown') && this.faces().length < 6))
89
+ return;
90
+ e.preventDefault();
91
+ k[e.key]();
92
+ });
93
+ const ms = this.num('autoplay', 0);
94
+ if (ms > 0 && !this.reduced) {
95
+ let paused = false;
96
+ const id = setInterval(() => !paused && this.show((this._i + 1) % Math.min(4, this.faces().length || 1)), ms);
97
+ this.listen(this, 'pointerenter', () => (paused = true));
98
+ this.listen(this, 'pointerleave', () => (paused = false));
99
+ this.listen(this, 'focusin', () => (paused = true));
100
+ this.listen(this, 'focusout', () => (paused = false));
101
+ this.onCleanup(() => clearInterval(id));
102
+ }
103
+ }
104
+ unmount() {
105
+ this._rx?.stop();
106
+ this._ry?.stop();
107
+ }
108
+ }, { id: 'depth', text: css });
109
+ }
110
+
111
+ /** Map a DeviceOrientation reading (beta/gamma degrees) to -1…1 tilt around a resting pose (pure). */
112
+ function orientationToTilt(beta, gamma, range = 30, rest = 45) {
113
+ return {
114
+ x: clamp((gamma ?? 0) / range, -1, 1),
115
+ y: clamp(((beta ?? rest) - rest) / range, -1, 1),
116
+ };
117
+ }
118
+ /** `true` when DeviceOrientation events exist. */
119
+ const supportsOrientation = () => typeof window !== 'undefined' && 'DeviceOrientationEvent' in window;
120
+ /**
121
+ * Ask for motion-sensor permission where required (iOS 13+; must run inside
122
+ * a user gesture). Resolves `true` when tilt events can be used.
123
+ */
124
+ async function requestOrientationPermission() {
125
+ if (!supportsOrientation())
126
+ return false;
127
+ const D = window.DeviceOrientationEvent;
128
+ if (typeof D.requestPermission !== 'function')
129
+ return true;
130
+ try {
131
+ return (await D.requestPermission()) === 'granted';
132
+ }
133
+ catch {
134
+ return false;
135
+ }
136
+ }
137
+ /**
138
+ * Listen to device tilt (smoothed); falls back to nothing on desktops.
139
+ * Returns a stop function.
140
+ */
141
+ function deviceTilt(cb, o = {}) {
142
+ if (!supportsOrientation())
143
+ return () => { };
144
+ let cur = { x: 0, y: 0 };
145
+ const k = 1 - clamp(o.smooth ?? 0.2, 0, 0.95);
146
+ const on = (e) => {
147
+ const t = orientationToTilt(e.beta, e.gamma, o.range ?? 30);
148
+ cur = { x: cur.x + (t.x - cur.x) * k, y: cur.y + (t.y - cur.y) * k };
149
+ cb(cur);
150
+ };
151
+ window.addEventListener('deviceorientation', on);
152
+ return () => window.removeEventListener('deviceorientation', on);
153
+ }
154
+
155
+ function defineDepth(tag = 'usa-depth') {
156
+ return defineElement(tag, (Base) => class UsaDepth extends Base {
157
+ constructor() {
158
+ super(...arguments);
159
+ this._t = { x: 0, y: 0 };
160
+ this._id = 0;
161
+ }
162
+ static get observedAttributes() {
163
+ return ['source', 'strength', 'rotate'];
164
+ }
165
+ get tilt() {
166
+ return { ...this._t };
167
+ }
168
+ requestPermission() {
169
+ return requestOrientationPermission().then((ok) => {
170
+ if (ok) {
171
+ this.changed('source');
172
+ }
173
+ return ok;
174
+ });
175
+ }
176
+ apply() {
177
+ this._id = 0;
178
+ const s = this.num('strength', 40);
179
+ const r = this.num('rotate', 0);
180
+ const { x, y } = this._t;
181
+ this.style.setProperty('--usa-depth-x', x.toFixed(4));
182
+ this.style.setProperty('--usa-depth-y', y.toFixed(4));
183
+ if (r)
184
+ this.style.setProperty('--usa-depth-rot', `rotateX(${(-y * r).toFixed(2)}deg) rotateY(${(x * r).toFixed(2)}deg)`);
185
+ this.querySelectorAll('[data-depth]').forEach((el) => {
186
+ const d = clamp(Number(el.dataset.depth) || 0, -1, 1);
187
+ el.style.transform = `translate3d(${(x * d * s).toFixed(2)}px, ${(y * d * s).toFixed(2)}px, 0) scale(${(1 + d * 0.04).toFixed(4)})`;
188
+ });
189
+ }
190
+ set(x, y) {
191
+ this._t = { x: clamp(x, -1, 1), y: clamp(y, -1, 1) };
192
+ if (!this._id)
193
+ this._id = raf(() => this.apply());
194
+ }
195
+ mount() {
196
+ if (this.reduced)
197
+ return;
198
+ const src = this.str('source', 'pointer').split(/\s+/);
199
+ if (src.includes('pointer')) {
200
+ this.listen(this, 'pointermove', (e) => {
201
+ const r = this.getBoundingClientRect();
202
+ this.set(((e.clientX - r.left) / (r.width || 1)) * 2 - 1, ((e.clientY - r.top) / (r.height || 1)) * 2 - 1);
203
+ });
204
+ this.listen(this, 'pointerleave', () => this.set(0, 0));
205
+ }
206
+ if (src.includes('orientation') && supportsOrientation())
207
+ this.onCleanup(deviceTilt((t) => this.set(t.x, t.y)));
208
+ if (src.includes('scroll')) {
209
+ const on = () => {
210
+ const r = this.getBoundingClientRect();
211
+ const vh = window.innerHeight || 1;
212
+ this.set(this._t.x, clamp(((r.top + r.height / 2) / vh) * 2 - 1, -1, 1));
213
+ };
214
+ this.listen(window, 'scroll', on, { passive: true });
215
+ on();
216
+ }
217
+ this.onCleanup(() => {
218
+ caf(this._id);
219
+ this._id = 0;
220
+ });
221
+ }
222
+ unmount() {
223
+ this._t = { x: 0, y: 0 };
224
+ this.querySelectorAll('[data-depth]').forEach((el) => (el.style.transform = ''));
225
+ }
226
+ }, { id: 'depth', text: css });
227
+ }
228
+
229
+ /**
230
+ * motionary/components/depth — 3D (v3.5).
231
+ * `<usa-cube>` (CSS 3D cube), `<usa-depth>` (layered depth parallax driven by
232
+ * pointer, device orientation or scroll) and `deviceTilt()`. The 3D ring
233
+ * carousel is `<usa-carousel-3d>` in `components/cards`.
234
+ */
235
+ /** Register every component of this category under its default tag. */
236
+ function defineDepthComponents() {
237
+ defineCube();
238
+ defineDepth();
239
+ }
240
+
241
+ export { defineCube, defineDepth, defineDepthComponents, deviceTilt, orientationToTilt, requestOrientationPermission, supportsOrientation };
242
+ //# sourceMappingURL=depth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"depth.js","sources":["../../src/components/depth/cube.ts","../../src/components/depth/core.ts","../../src/components/depth/depth-el.ts","../../src/components/depth/index.ts"],"sourcesContent":["import { defineElement, type UsaElement } from '../base';\nimport { createSpring, type SpringValue } from '../physics/spring';\nimport { gesture } from '../gesture/core';\nimport css from './depth.css?raw';\n\nconst FACES = ['front', 'right', 'back', 'left', 'top', 'bottom'] as const;\n/** Rotation (deg) that brings each face to the front. */\nconst ROT: Record<string, [number, number]> = { front: [0, 0], right: [0, -90], back: [0, -180], left: [0, 90], top: [-90, 0], bottom: [90, 0] };\n\n/**\n * `<usa-cube>` — a CSS 3D cube whose up-to-six element children are its faces\n * (front, right, back, left, top, bottom). Rotate with drag / swipe, arrow\n * keys, `autoplay` (ms) or `show(face | index)`; spring-driven.\n * Attributes: `size` (px, 200), `autoplay`, `perspective` (900).\n * `usa:change` (`{ index, face }`). Reduced motion: instant face switch.\n */\nexport interface UsaCubeElement extends UsaElement {\n readonly index: number;\n show(face: number | string): void;\n next(): void;\n prev(): void;\n}\n\nexport function defineCube(tag = 'usa-cube'): CustomElementConstructor | undefined {\n return defineElement(\n tag,\n (Base) =>\n class UsaCube extends Base {\n static get observedAttributes(): string[] {\n return ['size', 'autoplay'];\n }\n private _i = 0;\n private _rx!: SpringValue;\n private _ry!: SpringValue;\n private _base: [number, number] = [0, 0];\n\n get index(): number {\n return this._i;\n }\n\n private faces(): HTMLElement[] {\n return Array.from(this.children).filter((c) => c instanceof HTMLElement && !c.hasAttribute('slot')).slice(0, 6) as HTMLElement[];\n }\n\n private paint(): void {\n this.style.setProperty('--usa-cube-rx', `${this._rx.value}deg`);\n this.style.setProperty('--usa-cube-ry', `${this._ry.value}deg`);\n }\n\n show(face: number | string): void {\n const n = this.faces().length || 1;\n const i = typeof face === 'number' ? ((face % n) + n) % n : Math.max(0, FACES.indexOf(face as any));\n this._i = i;\n const [rx, ry] = ROT[FACES[i]];\n // take the shortest way round on Y\n const cur = this._ry.target;\n const ty = ry + Math.round((cur - ry) / 360) * 360;\n this._base = [rx, ty];\n if (this.reduced) {\n this._rx.jump(rx);\n this._ry.jump(ty);\n } else {\n this._rx.set(rx);\n this._ry.set(ty);\n }\n this.faces().forEach((f, j) => f.setAttribute('aria-hidden', String(j !== i)));\n this.emit('change', { index: i, face: FACES[i] });\n }\n\n next(): void {\n this.show(this._i + 1);\n }\n\n prev(): void {\n this.show(this._i - 1);\n }\n\n mount(): void {\n this.style.setProperty('--usa-cube-size', `${this.num('size', 200)}px`);\n this.style.setProperty('--usa-cube-perspective', `${this.num('perspective', 900)}px`);\n this.faces().forEach((f, j) => f.setAttribute('data-face', FACES[j]));\n if (!this.hasAttribute('tabindex')) this.tabIndex = 0;\n if (!this.hasAttribute('role')) this.setAttribute('role', 'region');\n if (!this.hasAttribute('aria-roledescription')) this.setAttribute('aria-roledescription', 'cube');\n this._rx = createSpring({ spring: 'gentle', onUpdate: () => this.paint() });\n this._ry = createSpring({ spring: 'gentle', onUpdate: () => this.paint() });\n this.show(this._i);\n this.paint();\n this.onCleanup(\n gesture(this, {\n onPan: ({ dx, dy, last }) => {\n if (this.reduced) return;\n if (!last) {\n this._ry.jump(this._base[1] + dx * 0.5);\n this._rx.jump(this._base[0] - dy * 0.5);\n return;\n }\n if (Math.abs(dx) > 40 && Math.abs(dx) >= Math.abs(dy)) return dx < 0 ? this.next() : this.prev();\n if (Math.abs(dy) > 40 && this.faces().length > 4) return this.show(dy < 0 ? 'bottom' : 'top');\n this.show(this._i);\n },\n })\n );\n this.listen(this, 'keydown', (e: KeyboardEvent) => {\n const k: Record<string, () => void> = { ArrowRight: () => this.next(), ArrowLeft: () => this.prev(), ArrowUp: () => this.show('bottom'), ArrowDown: () => this.show('top'), Home: () => this.show(0) };\n if (!k[e.key] || ((e.key === 'ArrowUp' || e.key === 'ArrowDown') && this.faces().length < 6)) return;\n e.preventDefault();\n k[e.key]();\n });\n const ms = this.num('autoplay', 0);\n if (ms > 0 && !this.reduced) {\n let paused = false;\n const id = setInterval(() => !paused && this.show((this._i + 1) % Math.min(4, this.faces().length || 1)), ms);\n this.listen(this, 'pointerenter', () => (paused = true));\n this.listen(this, 'pointerleave', () => (paused = false));\n this.listen(this, 'focusin', () => (paused = true));\n this.listen(this, 'focusout', () => (paused = false));\n this.onCleanup(() => clearInterval(id));\n }\n }\n\n unmount(): void {\n this._rx?.stop();\n this._ry?.stop();\n }\n },\n { id: 'depth', text: css }\n );\n}\n","import { clamp } from '../base';\n\nexport interface TiltReading {\n /** Left/right tilt, -1…1. */\n x: number;\n /** Front/back tilt, -1…1. */\n y: number;\n}\n\n/** Map a DeviceOrientation reading (beta/gamma degrees) to -1…1 tilt around a resting pose (pure). */\nexport function orientationToTilt(beta: number | null, gamma: number | null, range = 30, rest = 45): TiltReading {\n return {\n x: clamp((gamma ?? 0) / range, -1, 1),\n y: clamp(((beta ?? rest) - rest) / range, -1, 1),\n };\n}\n\n/** `true` when DeviceOrientation events exist. */\nexport const supportsOrientation = (): boolean => typeof window !== 'undefined' && 'DeviceOrientationEvent' in window;\n\n/**\n * Ask for motion-sensor permission where required (iOS 13+; must run inside\n * a user gesture). Resolves `true` when tilt events can be used.\n */\nexport async function requestOrientationPermission(): Promise<boolean> {\n if (!supportsOrientation()) return false;\n const D = (window as any).DeviceOrientationEvent;\n if (typeof D.requestPermission !== 'function') return true;\n try {\n return (await D.requestPermission()) === 'granted';\n } catch {\n return false;\n }\n}\n\n/**\n * Listen to device tilt (smoothed); falls back to nothing on desktops.\n * Returns a stop function.\n */\nexport function deviceTilt(cb: (t: TiltReading) => void, o: { range?: number; smooth?: number } = {}): () => void {\n if (!supportsOrientation()) return () => {};\n let cur: TiltReading = { x: 0, y: 0 };\n const k = 1 - clamp(o.smooth ?? 0.2, 0, 0.95);\n const on = (e: DeviceOrientationEvent) => {\n const t = orientationToTilt(e.beta, e.gamma, o.range ?? 30);\n cur = { x: cur.x + (t.x - cur.x) * k, y: cur.y + (t.y - cur.y) * k };\n cb(cur);\n };\n window.addEventListener('deviceorientation', on);\n return () => window.removeEventListener('deviceorientation', on);\n}\n","import { defineElement, raf, caf, clamp, type UsaElement } from '../base';\nimport { deviceTilt, requestOrientationPermission, supportsOrientation } from './core';\nimport css from './depth.css?raw';\n\n/**\n * `<usa-depth>` — depth parallax: children with `data-depth` (-1…1, 0 = the\n * screen plane) move and scale by depth as the pointer moves, the device\n * tilts (`orientation`) or the page scrolls (`scroll`).\n * Attributes: `source` (`pointer` default · `orientation` · `scroll` ·\n * space-separated mix), `strength` (px at depth 1, 40), `rotate` (max tilt\n * of the whole scene in deg, 0). `requestPermission()` for iOS motion.\n * Reduced motion: layers stay flat.\n */\nexport interface UsaDepthElement extends UsaElement {\n /** Current -1…1 input. */\n readonly tilt: { x: number; y: number };\n requestPermission(): Promise<boolean>;\n}\n\nexport function defineDepth(tag = 'usa-depth'): CustomElementConstructor | undefined {\n return defineElement(\n tag,\n (Base) =>\n class UsaDepth extends Base {\n static get observedAttributes(): string[] {\n return ['source', 'strength', 'rotate'];\n }\n private _t = { x: 0, y: 0 };\n private _id = 0;\n\n get tilt(): { x: number; y: number } {\n return { ...this._t };\n }\n\n requestPermission(): Promise<boolean> {\n return requestOrientationPermission().then((ok) => {\n if (ok) {\n this.changed('source');\n }\n return ok;\n });\n }\n\n private apply(): void {\n this._id = 0;\n const s = this.num('strength', 40);\n const r = this.num('rotate', 0);\n const { x, y } = this._t;\n this.style.setProperty('--usa-depth-x', x.toFixed(4));\n this.style.setProperty('--usa-depth-y', y.toFixed(4));\n if (r) this.style.setProperty('--usa-depth-rot', `rotateX(${(-y * r).toFixed(2)}deg) rotateY(${(x * r).toFixed(2)}deg)`);\n this.querySelectorAll<HTMLElement>('[data-depth]').forEach((el) => {\n const d = clamp(Number(el.dataset.depth) || 0, -1, 1);\n el.style.transform = `translate3d(${(x * d * s).toFixed(2)}px, ${(y * d * s).toFixed(2)}px, 0) scale(${(1 + d * 0.04).toFixed(4)})`;\n });\n }\n\n private set(x: number, y: number): void {\n this._t = { x: clamp(x, -1, 1), y: clamp(y, -1, 1) };\n if (!this._id) this._id = raf(() => this.apply());\n }\n\n mount(): void {\n if (this.reduced) return;\n const src = this.str('source', 'pointer').split(/\\s+/);\n if (src.includes('pointer')) {\n this.listen(this, 'pointermove', (e: PointerEvent) => {\n const r = this.getBoundingClientRect();\n this.set(((e.clientX - r.left) / (r.width || 1)) * 2 - 1, ((e.clientY - r.top) / (r.height || 1)) * 2 - 1);\n });\n this.listen(this, 'pointerleave', () => this.set(0, 0));\n }\n if (src.includes('orientation') && supportsOrientation()) this.onCleanup(deviceTilt((t) => this.set(t.x, t.y)));\n if (src.includes('scroll')) {\n const on = () => {\n const r = this.getBoundingClientRect();\n const vh = window.innerHeight || 1;\n this.set(this._t.x, clamp(((r.top + r.height / 2) / vh) * 2 - 1, -1, 1));\n };\n this.listen(window, 'scroll', on, { passive: true });\n on();\n }\n this.onCleanup(() => {\n caf(this._id);\n this._id = 0;\n });\n }\n\n unmount(): void {\n this._t = { x: 0, y: 0 };\n this.querySelectorAll<HTMLElement>('[data-depth]').forEach((el) => (el.style.transform = ''));\n }\n },\n { id: 'depth', text: css }\n );\n}\n","/**\n * motionary/components/depth — 3D (v3.5).\n * `<usa-cube>` (CSS 3D cube), `<usa-depth>` (layered depth parallax driven by\n * pointer, device orientation or scroll) and `deviceTilt()`. The 3D ring\n * carousel is `<usa-carousel-3d>` in `components/cards`.\n */\nimport { defineCube, type UsaCubeElement } from './cube';\nimport { defineDepth, type UsaDepthElement } from './depth-el';\n\nexport { defineCube, defineDepth };\nexport { deviceTilt, orientationToTilt, requestOrientationPermission, supportsOrientation } from './core';\nexport type { TiltReading } from './core';\nexport type { UsaCubeElement, UsaDepthElement };\n\n/** Register every component of this category under its default tag. */\nexport function defineDepthComponents(): void {\n defineCube();\n defineDepth();\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'usa-cube': UsaCubeElement;\n 'usa-depth': UsaDepthElement;\n }\n}\n"],"names":[],"mappings":";;;;;;AAKA,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAU;AAC1E;AACA,MAAM,GAAG,GAAqC,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,G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