@burdenoff/microfe-mybodyshield 2026.705.2 → 2026.706.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 (566) hide show
  1. package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +10 -0
  2. package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js.map +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +5 -5
  4. package/dist/mybodyshield/pages/DashboardPage.js +422 -323
  5. package/dist/mybodyshield/pages/DashboardPage.js.map +1 -1
  6. package/dist/mybodyshield/pages/_shared/visuals.js +16 -16
  7. package/dist/mybodyshield/pages/_shared/visuals.js.map +1 -1
  8. package/dist/mybodyshield/pages/coaching/CoachingPage.js +235 -166
  9. package/dist/mybodyshield/pages/coaching/CoachingPage.js.map +1 -1
  10. package/dist/mybodyshield/pages/goals/GoalsPage.js +304 -249
  11. package/dist/mybodyshield/pages/goals/GoalsPage.js.map +1 -1
  12. package/dist/mybodyshield/pages/nutrition/NutritionPage.js +700 -533
  13. package/dist/mybodyshield/pages/nutrition/NutritionPage.js.map +1 -1
  14. package/dist/mybodyshield/pages/programs/ProgramDetailPage.js +518 -454
  15. package/dist/mybodyshield/pages/programs/ProgramDetailPage.js.map +1 -1
  16. package/dist/mybodyshield/pages/programs/ProgramsPage.js +282 -234
  17. package/dist/mybodyshield/pages/programs/ProgramsPage.js.map +1 -1
  18. package/dist/mybodyshield/pages/progress/ProgressPage.js +422 -311
  19. package/dist/mybodyshield/pages/progress/ProgressPage.js.map +1 -1
  20. package/dist/mybodyshield/pages/recovery/RecoveryPage.js +335 -246
  21. package/dist/mybodyshield/pages/recovery/RecoveryPage.js.map +1 -1
  22. package/dist/mybodyshield/pages/train/SessionDetailPage.js +395 -302
  23. package/dist/mybodyshield/pages/train/SessionDetailPage.js.map +1 -1
  24. package/dist/mybodyshield/pages/train/SessionsPage.js +111 -75
  25. package/dist/mybodyshield/pages/train/SessionsPage.js.map +1 -1
  26. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +63 -0
  27. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
  28. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +55 -0
  29. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
  30. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +62 -0
  31. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
  32. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +22 -0
  33. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
  34. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +13 -0
  35. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
  36. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +8 -0
  37. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
  38. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +8 -0
  39. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
  40. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +12 -0
  41. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
  42. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +19 -0
  43. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
  44. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +8 -0
  45. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
  46. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +17 -0
  47. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
  48. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +8 -0
  49. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
  50. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +8 -0
  51. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
  52. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +10 -0
  53. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
  54. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +13 -0
  55. package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
  56. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +260 -0
  57. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
  58. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +24 -0
  59. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
  60. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +61 -0
  61. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
  62. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +29 -0
  63. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
  64. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
  65. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
  66. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +140 -0
  67. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
  68. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
  69. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
  70. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +28 -0
  71. package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
  72. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +41 -0
  73. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
  74. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +27 -0
  75. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
  76. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +11 -0
  77. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
  78. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +53 -0
  79. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
  80. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
  81. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
  82. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +15 -0
  83. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
  84. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +63 -0
  85. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
  86. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
  87. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
  88. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +15 -0
  89. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
  90. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +48 -0
  91. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
  92. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +26 -0
  93. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
  94. package/dist/node_modules/framer-motion/dist/es/motion/index.js +72 -0
  95. package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
  96. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +6 -0
  97. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
  98. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +23 -0
  99. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
  100. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +60 -0
  101. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
  102. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
  103. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
  104. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +9 -0
  105. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
  106. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +12 -0
  107. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
  108. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +15 -0
  109. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +1 -0
  110. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +9 -0
  111. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
  112. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
  113. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
  114. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +23 -0
  115. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
  116. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +21 -0
  117. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
  118. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +9 -0
  119. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
  120. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +13 -0
  121. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +1 -0
  122. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +28 -0
  123. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
  124. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +11 -0
  125. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
  126. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +32 -0
  127. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
  128. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +28 -0
  129. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
  130. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +13 -0
  131. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +1 -0
  132. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +10 -0
  133. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
  134. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
  135. package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
  136. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +6 -0
  137. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
  138. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +6 -0
  139. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
  140. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
  141. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
  142. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +15 -0
  143. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js.map +1 -0
  144. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +27 -0
  145. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js.map +1 -0
  146. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +11 -0
  147. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
  148. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +9 -0
  149. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
  150. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +109 -0
  151. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +1 -0
  152. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +131 -0
  153. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +1 -0
  154. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +86 -0
  155. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +1 -0
  156. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +30 -0
  157. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +1 -0
  158. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +12 -0
  159. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +1 -0
  160. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +15 -0
  161. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +1 -0
  162. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +34 -0
  163. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +1 -0
  164. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +24 -0
  165. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +1 -0
  166. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +168 -0
  167. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +1 -0
  168. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +11 -0
  169. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
  170. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +18 -0
  171. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +1 -0
  172. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +8 -0
  173. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
  174. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +11 -0
  175. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +1 -0
  176. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +47 -0
  177. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +1 -0
  178. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +59 -0
  179. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
  180. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +28 -0
  181. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
  182. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +23 -0
  183. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +1 -0
  184. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +63 -0
  185. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +1 -0
  186. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +69 -0
  187. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +1 -0
  188. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +10 -0
  189. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +1 -0
  190. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +10 -0
  191. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +1 -0
  192. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +14 -0
  193. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +1 -0
  194. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +8 -0
  195. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +1 -0
  196. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +8 -0
  197. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +1 -0
  198. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +9 -0
  199. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +1 -0
  200. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +20 -0
  201. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +1 -0
  202. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +38 -0
  203. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +1 -0
  204. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
  205. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +1 -0
  206. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +9 -0
  207. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
  208. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +24 -0
  209. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +1 -0
  210. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +9 -0
  211. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +1 -0
  212. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +20 -0
  213. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +1 -0
  214. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +27 -0
  215. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +1 -0
  216. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +29 -0
  217. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +1 -0
  218. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +10 -0
  219. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
  220. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
  221. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +1 -0
  222. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
  223. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +1 -0
  224. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +21 -0
  225. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +1 -0
  226. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +8 -0
  227. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +1 -0
  228. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +18 -0
  229. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +1 -0
  230. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +15 -0
  231. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +1 -0
  232. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +6 -0
  233. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +1 -0
  234. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +13 -0
  235. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +1 -0
  236. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +37 -0
  237. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +1 -0
  238. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
  239. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +1 -0
  240. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +26 -0
  241. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +1 -0
  242. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +11 -0
  243. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +1 -0
  244. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +10 -0
  245. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +1 -0
  246. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +10 -0
  247. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +1 -0
  248. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
  249. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
  250. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +19 -0
  251. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +1 -0
  252. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +8 -0
  253. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +1 -0
  254. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +32 -0
  255. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +1 -0
  256. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +8 -0
  257. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +1 -0
  258. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +7 -0
  259. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +1 -0
  260. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +15 -0
  261. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +1 -0
  262. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +34 -0
  263. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +1 -0
  264. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +17 -0
  265. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +1 -0
  266. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +12 -0
  267. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
  268. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +13 -0
  269. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
  270. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +38 -0
  271. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
  272. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +38 -0
  273. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
  274. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +23 -0
  275. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
  276. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +30 -0
  277. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
  278. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +6 -0
  279. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
  280. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +6 -0
  281. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
  282. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +6 -0
  283. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
  284. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +18 -0
  285. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
  286. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +27 -0
  287. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +1 -0
  288. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +41 -0
  289. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +1 -0
  290. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
  291. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +1 -0
  292. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +45 -0
  293. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +1 -0
  294. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +32 -0
  295. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +1 -0
  296. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +31 -0
  297. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +1 -0
  298. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +20 -0
  299. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +1 -0
  300. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +30 -0
  301. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +1 -0
  302. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +15 -0
  303. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
  304. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +24 -0
  305. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
  306. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +586 -0
  307. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +1 -0
  308. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +9 -0
  309. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +1 -0
  310. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +53 -0
  311. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +1 -0
  312. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +15 -0
  313. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +1 -0
  314. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +15 -0
  315. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
  316. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +19 -0
  317. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +1 -0
  318. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +14 -0
  319. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +1 -0
  320. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +6 -0
  321. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +1 -0
  322. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +8 -0
  323. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +1 -0
  324. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +21 -0
  325. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +1 -0
  326. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
  327. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +1 -0
  328. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +14 -0
  329. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +1 -0
  330. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +11 -0
  331. package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +1 -0
  332. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +206 -0
  333. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +1 -0
  334. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +30 -0
  335. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +1 -0
  336. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +6 -0
  337. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +1 -0
  338. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +58 -0
  339. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +1 -0
  340. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +9 -0
  341. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +1 -0
  342. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +8 -0
  343. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
  344. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +37 -0
  345. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +1 -0
  346. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +30 -0
  347. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +1 -0
  348. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +38 -0
  349. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +1 -0
  350. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +10 -0
  351. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +1 -0
  352. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +13 -0
  353. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
  354. package/dist/node_modules/motion-dom/dist/es/render/store.js +6 -0
  355. package/dist/node_modules/motion-dom/dist/es/render/store.js.map +1 -0
  356. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +42 -0
  357. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +1 -0
  358. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +24 -0
  359. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +1 -0
  360. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +30 -0
  361. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
  362. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +6 -0
  363. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
  364. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +17 -0
  365. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +1 -0
  366. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +12 -0
  367. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +1 -0
  368. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +16 -0
  369. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
  370. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +137 -0
  371. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +1 -0
  372. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +21 -0
  373. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +1 -0
  374. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +8 -0
  375. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +1 -0
  376. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +14 -0
  377. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +1 -0
  378. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +10 -0
  379. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +1 -0
  380. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +6 -0
  381. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +1 -0
  382. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +8 -0
  383. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +1 -0
  384. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +15 -0
  385. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +1 -0
  386. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +24 -0
  387. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +1 -0
  388. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +23 -0
  389. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +1 -0
  390. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +13 -0
  391. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +1 -0
  392. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +6 -0
  393. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +1 -0
  394. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +10 -0
  395. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
  396. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +22 -0
  397. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +1 -0
  398. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +22 -0
  399. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +1 -0
  400. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +12 -0
  401. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +1 -0
  402. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +14 -0
  403. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +1 -0
  404. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +39 -0
  405. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +1 -0
  406. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +24 -0
  407. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +1 -0
  408. package/dist/node_modules/motion-dom/dist/es/resize/index.js +10 -0
  409. package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +1 -0
  410. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +9 -0
  411. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js.map +1 -0
  412. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +11 -0
  413. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js.map +1 -0
  414. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +14 -0
  415. package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +1 -0
  416. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +35 -0
  417. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +1 -0
  418. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +9 -0
  419. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +1 -0
  420. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +9 -0
  421. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +1 -0
  422. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +9 -0
  423. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +1 -0
  424. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +32 -0
  425. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +1 -0
  426. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +54 -0
  427. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +1 -0
  428. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +8 -0
  429. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +1 -0
  430. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +10 -0
  431. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +1 -0
  432. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +6 -0
  433. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +1 -0
  434. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +9 -0
  435. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +1 -0
  436. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +16 -0
  437. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
  438. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
  439. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
  440. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +14 -0
  441. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
  442. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
  443. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
  444. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
  445. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
  446. package/dist/node_modules/motion-dom/dist/es/value/index.js +94 -0
  447. package/dist/node_modules/motion-dom/dist/es/value/index.js.map +1 -0
  448. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +9 -0
  449. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +1 -0
  450. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +21 -0
  451. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +1 -0
  452. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +23 -0
  453. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +1 -0
  454. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +14 -0
  455. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +1 -0
  456. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +17 -0
  457. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +1 -0
  458. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +17 -0
  459. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +1 -0
  460. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
  461. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +1 -0
  462. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +28 -0
  463. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +1 -0
  464. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +54 -0
  465. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +1 -0
  466. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +16 -0
  467. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +1 -0
  468. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +18 -0
  469. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +1 -0
  470. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +10 -0
  471. package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +1 -0
  472. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +26 -0
  473. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +1 -0
  474. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +66 -0
  475. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +1 -0
  476. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +34 -0
  477. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +1 -0
  478. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
  479. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +1 -0
  480. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +14 -0
  481. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +1 -0
  482. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +6 -0
  483. package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +1 -0
  484. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +14 -0
  485. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +1 -0
  486. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +6 -0
  487. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +1 -0
  488. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +14 -0
  489. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +1 -0
  490. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +6 -0
  491. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +1 -0
  492. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +6 -0
  493. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +1 -0
  494. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +8 -0
  495. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +1 -0
  496. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +6 -0
  497. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +1 -0
  498. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +6 -0
  499. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +1 -0
  500. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +6 -0
  501. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +1 -0
  502. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +9 -0
  503. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +1 -0
  504. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +15 -0
  505. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +1 -0
  506. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +9 -0
  507. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +1 -0
  508. package/dist/node_modules/motion-utils/dist/es/array.js +12 -0
  509. package/dist/node_modules/motion-utils/dist/es/array.js.map +1 -0
  510. package/dist/node_modules/motion-utils/dist/es/clamp.js +6 -0
  511. package/dist/node_modules/motion-utils/dist/es/clamp.js.map +1 -0
  512. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +7 -0
  513. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +1 -0
  514. package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
  515. package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +1 -0
  516. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
  517. package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +1 -0
  518. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +20 -0
  519. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +1 -0
  520. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
  521. package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +1 -0
  522. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +6 -0
  523. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +1 -0
  524. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +6 -0
  525. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +1 -0
  526. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +6 -0
  527. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +1 -0
  528. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +6 -0
  529. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +1 -0
  530. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +33 -0
  531. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +1 -0
  532. package/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
  533. package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
  534. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +8 -0
  535. package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +1 -0
  536. package/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
  537. package/dist/node_modules/motion-utils/dist/es/global-config.js.map +1 -0
  538. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +6 -0
  539. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +1 -0
  540. package/dist/node_modules/motion-utils/dist/es/is-object.js +6 -0
  541. package/dist/node_modules/motion-utils/dist/es/is-object.js.map +1 -0
  542. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +6 -0
  543. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +1 -0
  544. package/dist/node_modules/motion-utils/dist/es/memo.js +10 -0
  545. package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
  546. package/dist/node_modules/motion-utils/dist/es/noop.js +6 -0
  547. package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
  548. package/dist/node_modules/motion-utils/dist/es/pipe.js +6 -0
  549. package/dist/node_modules/motion-utils/dist/es/pipe.js.map +1 -0
  550. package/dist/node_modules/motion-utils/dist/es/progress.js +9 -0
  551. package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
  552. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +28 -0
  553. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +1 -0
  554. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +6 -0
  555. package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
  556. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
  557. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +1 -0
  558. package/dist/node_modules/motion-utils/dist/es/warn-once.js +10 -0
  559. package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +1 -0
  560. package/dist/node_modules/recharts/es6/cartesian/Area.js +435 -0
  561. package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -0
  562. package/dist/node_modules/recharts/es6/chart/{LineChart.js → AreaChart.js} +5 -5
  563. package/dist/node_modules/recharts/es6/chart/{LineChart.js.map → AreaChart.js.map} +1 -1
  564. package/package.json +1 -1
  565. package/dist/node_modules/recharts/es6/cartesian/Line.js +0 -473
  566. package/dist/node_modules/recharts/es6/cartesian/Line.js.map +0 -1
@@ -0,0 +1,260 @@
1
+ import { invariant as e } from "../../../../../motion-utils/dist/es/errors.js";
2
+ import { frame as t } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
3
+ import { percent as n } from "../../../../../motion-dom/dist/es/value/types/numbers/units.js";
4
+ import { mixNumber as r } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
5
+ import { animateMotionValue as i } from "../../../../../motion-dom/dist/es/animation/interfaces/motion-value.js";
6
+ import { addValueToWillChange as a } from "../../../../../motion-dom/dist/es/value/will-change/add-will-change.js";
7
+ import { setDragLock as o } from "../../../../../motion-dom/dist/es/gestures/drag/state/set-active.js";
8
+ import { isElementTextInput as s } from "../../../../../motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js";
9
+ import { resize as c } from "../../../../../motion-dom/dist/es/resize/index.js";
10
+ import { createBox as l } from "../../../../../motion-dom/dist/es/projection/geometry/models.js";
11
+ import { convertBoundingBoxToBox as u, convertBoxToBoundingBox as d } from "../../../../../motion-dom/dist/es/projection/geometry/conversion.js";
12
+ import { measurePageBox as f } from "../../../../../motion-dom/dist/es/projection/utils/measure.js";
13
+ import { calcLength as p } from "../../../../../motion-dom/dist/es/projection/geometry/delta-calc.js";
14
+ import { eachAxis as m } from "../../../../../motion-dom/dist/es/projection/utils/each-axis.js";
15
+ import { addDomEvent as h } from "../../../../../motion-dom/dist/es/events/add-dom-event.js";
16
+ import { isRefObject as g } from "../../utils/is-ref-object.js";
17
+ import { extractEventInfo as _ } from "../../events/event-info.js";
18
+ import { addPointerEvent as v } from "../../events/add-pointer-event.js";
19
+ import { getContextWindow as y } from "../../utils/get-context-window.js";
20
+ import { PanSession as b } from "../pan/PanSession.js";
21
+ import { applyConstraints as x, calcOrigin as S, calcRelativeConstraints as C, calcViewportConstraints as w, defaultElastic as T, rebaseAxisConstraints as E, resolveDragElastic as D } from "./utils/constraints.js";
22
+ //#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
23
+ var O = /* @__PURE__ */ new WeakMap(), k = class {
24
+ constructor(e) {
25
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
26
+ x: 0,
27
+ y: 0
28
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = l(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
29
+ }
30
+ start(e, { snapToCursor: r = !1, distanceThreshold: i } = {}) {
31
+ let { presenceContext: s } = this.visualElement;
32
+ if (s && s.isPresent === !1) return;
33
+ let c = (e) => {
34
+ r && this.snapToCursor(_(e).point), this.stopAnimation();
35
+ }, l = (e, r) => {
36
+ let { drag: i, dragPropagation: s, onDragStart: c } = this.getProps();
37
+ if (i && !s && (this.openDragLock && this.openDragLock(), this.openDragLock = o(i), !this.openDragLock)) return;
38
+ this.latestPointerEvent = e, this.latestPanInfo = r, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), m((e) => {
39
+ let t = this.getAxisMotionValue(e).get() || 0;
40
+ if (n.test(t)) {
41
+ let { projection: n } = this.visualElement;
42
+ if (n && n.layout) {
43
+ let r = n.layout.layoutBox[e];
44
+ r && (t = p(r) * (parseFloat(t) / 100));
45
+ }
46
+ }
47
+ this.originPoint[e] = t;
48
+ }), c && t.update(() => c(e, r), !1, !0), a(this.visualElement, "transform");
49
+ let { animationState: l } = this.visualElement;
50
+ l && l.setActive("whileDrag", !0);
51
+ }, u = (e, n) => {
52
+ this.latestPointerEvent = e, this.latestPanInfo = n;
53
+ let { dragPropagation: r, dragDirectionLock: i, onDirectionLock: a, onDrag: o } = this.getProps();
54
+ if (!r && !this.openDragLock) return;
55
+ let { offset: s } = n;
56
+ if (i && this.currentDirection === null) {
57
+ this.currentDirection = N(s), this.currentDirection !== null && a && a(this.currentDirection);
58
+ return;
59
+ }
60
+ this.updateAxis("x", n.point, s), this.updateAxis("y", n.point, s), this.visualElement.render(), o && t.update(() => o(e, n), !1, !0);
61
+ }, d = (e, t) => {
62
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
63
+ }, f = () => {
64
+ let { dragSnapToOrigin: e } = this.getProps();
65
+ (e || this.constraints) && this.startAnimation({
66
+ x: 0,
67
+ y: 0
68
+ });
69
+ }, { dragSnapToOrigin: h } = this.getProps();
70
+ this.panSession = new b(e, {
71
+ onSessionStart: c,
72
+ onStart: l,
73
+ onMove: u,
74
+ onSessionEnd: d,
75
+ resumeAnimation: f
76
+ }, {
77
+ transformPagePoint: this.visualElement.getTransformPagePoint(),
78
+ dragSnapToOrigin: h,
79
+ distanceThreshold: i,
80
+ contextWindow: y(this.visualElement),
81
+ element: this.visualElement.current
82
+ });
83
+ }
84
+ stop(e, n) {
85
+ let r = e || this.latestPointerEvent, i = n || this.latestPanInfo, a = this.isDragging;
86
+ if (this.cancel(), !a || !i || !r) return;
87
+ let { velocity: o } = i;
88
+ this.startAnimation(o);
89
+ let { onDragEnd: s } = this.getProps();
90
+ s && t.postRender(() => s(r, i));
91
+ }
92
+ cancel() {
93
+ this.isDragging = !1;
94
+ let { projection: e, animationState: t } = this.visualElement;
95
+ e && (e.isAnimationBlocked = !1), this.endPanSession();
96
+ let { dragPropagation: n } = this.getProps();
97
+ !n && this.openDragLock && (this.openDragLock(), this.openDragLock = null), t && t.setActive("whileDrag", !1);
98
+ }
99
+ endPanSession() {
100
+ this.panSession && this.panSession.end(), this.panSession = void 0;
101
+ }
102
+ updateAxis(e, t, n) {
103
+ let { drag: r } = this.getProps();
104
+ if (!n || !M(e, r, this.currentDirection)) return;
105
+ let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
106
+ this.constraints && this.constraints[e] && (a = x(a, this.constraints[e], this.elastic[e])), i.set(a);
107
+ }
108
+ resolveConstraints() {
109
+ let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
110
+ e && g(e) ? this.constraints ||= this.resolveRefConstraints() : e && n ? this.constraints = C(n.layoutBox, e) : this.constraints = !1, this.elastic = D(t), r !== this.constraints && !g(e) && n && this.constraints && !this.hasMutatedConstraints && m((e) => {
111
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = E(n.layoutBox[e], this.constraints[e]));
112
+ });
113
+ }
114
+ resolveRefConstraints() {
115
+ let { dragConstraints: t, onMeasureDragConstraints: n } = this.getProps();
116
+ if (!t || !g(t)) return !1;
117
+ let r = t.current;
118
+ e(r !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
119
+ let { projection: i } = this.visualElement;
120
+ if (!i || !i.layout) return !1;
121
+ i.root && (i.root.scroll = void 0, i.root.updateScroll());
122
+ let a = f(r, i.root, this.visualElement.getTransformPagePoint()), o = w(i.layout.layoutBox, a);
123
+ if (n) {
124
+ let e = n(d(o));
125
+ this.hasMutatedConstraints = !!e, e && (o = u(e));
126
+ }
127
+ return o;
128
+ }
129
+ startAnimation(e) {
130
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = m((o) => {
131
+ if (!M(o, t, this.currentDirection)) return;
132
+ let c = s && s[o] || {};
133
+ (a === !0 || a === o) && (c = {
134
+ min: 0,
135
+ max: 0
136
+ });
137
+ let l = r ? 200 : 1e6, u = r ? 40 : 1e7, d = {
138
+ type: "inertia",
139
+ velocity: n ? e[o] : 0,
140
+ bounceStiffness: l,
141
+ bounceDamping: u,
142
+ timeConstant: 750,
143
+ restDelta: 1,
144
+ restSpeed: 10,
145
+ ...i,
146
+ ...c
147
+ };
148
+ return this.startAxisValueAnimation(o, d);
149
+ });
150
+ return Promise.all(c).then(o);
151
+ }
152
+ startAxisValueAnimation(e, t) {
153
+ let n = this.getAxisMotionValue(e);
154
+ return a(this.visualElement, e), n.start(i(e, n, 0, t, this.visualElement, !1));
155
+ }
156
+ stopAnimation() {
157
+ m((e) => this.getAxisMotionValue(e).stop());
158
+ }
159
+ getAxisMotionValue(e) {
160
+ let t = `_drag${e.toUpperCase()}`;
161
+ return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
162
+ }
163
+ snapToCursor(e) {
164
+ m((t) => {
165
+ let { drag: n } = this.getProps();
166
+ if (!M(t, n, this.currentDirection)) return;
167
+ let { projection: i } = this.visualElement, a = this.getAxisMotionValue(t);
168
+ if (i && i.layout) {
169
+ let { min: n, max: o } = i.layout.layoutBox[t], s = a.get() || 0;
170
+ a.set(e[t] - r(n, o, .5) + s);
171
+ }
172
+ });
173
+ }
174
+ scalePositionWithinConstraints() {
175
+ if (!this.visualElement.current) return;
176
+ let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
177
+ if (!g(t) || !n || !this.constraints) return;
178
+ this.stopAnimation();
179
+ let i = {
180
+ x: 0,
181
+ y: 0
182
+ };
183
+ m((e) => {
184
+ let t = this.getAxisMotionValue(e);
185
+ if (t && this.constraints !== !1) {
186
+ let n = t.get();
187
+ i[e] = S({
188
+ min: n,
189
+ max: n
190
+ }, this.constraints[e]);
191
+ }
192
+ });
193
+ let { transformTemplate: a } = this.visualElement.getProps();
194
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), m((t) => {
195
+ if (!M(t, e, null)) return;
196
+ let n = this.getAxisMotionValue(t), { min: a, max: o } = this.constraints[t];
197
+ n.set(r(a, o, i[t]));
198
+ }), this.visualElement.render();
199
+ }
200
+ addListeners() {
201
+ if (!this.visualElement.current) return;
202
+ O.set(this.visualElement, this);
203
+ let e = this.visualElement.current, n = v(e, "pointerdown", (t) => {
204
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && s(i);
205
+ n && r && !a && this.start(t);
206
+ }), r, i = () => {
207
+ let { dragConstraints: t } = this.getProps();
208
+ g(t) && t.current && (this.constraints = this.resolveRefConstraints(), r ||= j(e, t.current, () => this.scalePositionWithinConstraints()));
209
+ }, { projection: a } = this.visualElement, o = a.addEventListener("measure", i);
210
+ a && !a.layout && (a.root && a.root.updateScroll(), a.updateLayout()), t.read(i);
211
+ let c = h(window, "resize", () => this.scalePositionWithinConstraints()), l = a.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
212
+ this.isDragging && t && (m((t) => {
213
+ let n = this.getAxisMotionValue(t);
214
+ n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
215
+ }), this.visualElement.render());
216
+ }));
217
+ return () => {
218
+ c(), n(), o(), l && l(), r && r();
219
+ };
220
+ }
221
+ getProps() {
222
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = T, dragMomentum: o = !0 } = e;
223
+ return {
224
+ ...e,
225
+ drag: t,
226
+ dragDirectionLock: n,
227
+ dragPropagation: r,
228
+ dragConstraints: i,
229
+ dragElastic: a,
230
+ dragMomentum: o
231
+ };
232
+ }
233
+ };
234
+ function A(e) {
235
+ let t = !0;
236
+ return () => {
237
+ if (t) {
238
+ t = !1;
239
+ return;
240
+ }
241
+ e();
242
+ };
243
+ }
244
+ function j(e, t, n) {
245
+ let r = c(e, A(n)), i = c(t, A(n));
246
+ return () => {
247
+ r(), i();
248
+ };
249
+ }
250
+ function M(e, t, n) {
251
+ return (t === !0 || t === e) && (n === null || n === e);
252
+ }
253
+ function N(e, t = 10) {
254
+ let n = null;
255
+ return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
256
+ }
257
+ //#endregion
258
+ export { k as VisualElementDragControls };
259
+
260
+ //# sourceMappingURL=VisualElementDragControls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisualElementDragControls.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs"],"sourcesContent":["import { createBox, frame, eachAxis, measurePageBox, convertBoxToBoundingBox, convertBoundingBoxToBox, addValueToWillChange, animateMotionValue, mixNumber, addDomEvent, setDragLock, percent, calcLength, resize, isElementTextInput } from 'motion-dom';\nimport { invariant } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { extractEventInfo } from '../../events/event-info.mjs';\nimport { getContextWindow } from '../../utils/get-context-window.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { PanSession } from '../pan/PanSession.mjs';\nimport { applyConstraints, calcRelativeConstraints, resolveDragElastic, rebaseAxisConstraints, calcViewportConstraints, calcOrigin, defaultElastic } from './utils/constraints.mjs';\n\nconst elementDragControls = new WeakMap();\nclass VisualElementDragControls {\n constructor(visualElement) {\n this.openDragLock = null;\n this.isDragging = false;\n this.currentDirection = null;\n this.originPoint = { x: 0, y: 0 };\n /**\n * The permitted boundaries of travel, in pixels.\n */\n this.constraints = false;\n this.hasMutatedConstraints = false;\n /**\n * The per-axis resolved elastic values.\n */\n this.elastic = createBox();\n /**\n * The latest pointer event. Used as fallback when the `cancel` and `stop` functions are called without arguments.\n */\n this.latestPointerEvent = null;\n /**\n * The latest pan info. Used as fallback when the `cancel` and `stop` functions are called without arguments.\n */\n this.latestPanInfo = null;\n this.visualElement = visualElement;\n }\n start(originEvent, { snapToCursor = false, distanceThreshold } = {}) {\n /**\n * Don't start dragging if this component is exiting\n */\n const { presenceContext } = this.visualElement;\n if (presenceContext && presenceContext.isPresent === false)\n return;\n const onSessionStart = (event) => {\n if (snapToCursor) {\n this.snapToCursor(extractEventInfo(event).point);\n }\n this.stopAnimation();\n };\n const onStart = (event, info) => {\n // Attempt to grab the global drag gesture lock - maybe make this part of PanSession\n const { drag, dragPropagation, onDragStart } = this.getProps();\n if (drag && !dragPropagation) {\n if (this.openDragLock)\n this.openDragLock();\n this.openDragLock = setDragLock(drag);\n // If we don 't have the lock, don't start dragging\n if (!this.openDragLock)\n return;\n }\n this.latestPointerEvent = event;\n this.latestPanInfo = info;\n this.isDragging = true;\n this.currentDirection = null;\n this.resolveConstraints();\n if (this.visualElement.projection) {\n this.visualElement.projection.isAnimationBlocked = true;\n this.visualElement.projection.target = undefined;\n }\n /**\n * Record gesture origin and pointer offset\n */\n eachAxis((axis) => {\n let current = this.getAxisMotionValue(axis).get() || 0;\n /**\n * If the MotionValue is a percentage value convert to px\n */\n if (percent.test(current)) {\n const { projection } = this.visualElement;\n if (projection && projection.layout) {\n const measuredAxis = projection.layout.layoutBox[axis];\n if (measuredAxis) {\n const length = calcLength(measuredAxis);\n current = length * (parseFloat(current) / 100);\n }\n }\n }\n this.originPoint[axis] = current;\n });\n // Fire onDragStart event\n if (onDragStart) {\n frame.update(() => onDragStart(event, info), false, true);\n }\n addValueToWillChange(this.visualElement, \"transform\");\n const { animationState } = this.visualElement;\n animationState && animationState.setActive(\"whileDrag\", true);\n };\n const onMove = (event, info) => {\n this.latestPointerEvent = event;\n this.latestPanInfo = info;\n const { dragPropagation, dragDirectionLock, onDirectionLock, onDrag, } = this.getProps();\n // If we didn't successfully receive the gesture lock, early return.\n if (!dragPropagation && !this.openDragLock)\n return;\n const { offset } = info;\n // Attempt to detect drag direction if directionLock is true\n if (dragDirectionLock && this.currentDirection === null) {\n this.currentDirection = getCurrentDirection(offset);\n // If we've successfully set a direction, notify listener\n if (this.currentDirection !== null) {\n onDirectionLock && onDirectionLock(this.currentDirection);\n }\n return;\n }\n // Update each point with the latest position\n this.updateAxis(\"x\", info.point, offset);\n this.updateAxis(\"y\", info.point, offset);\n /**\n * Ideally we would leave the renderer to fire naturally at the end of\n * this frame but if the element is about to change layout as the result\n * of a re-render we want to ensure the browser can read the latest\n * bounding box to ensure the pointer and element don't fall out of sync.\n */\n this.visualElement.render();\n /**\n * This must fire after the render call as it might trigger a state\n * change which itself might trigger a layout update.\n */\n if (onDrag) {\n frame.update(() => onDrag(event, info), false, true);\n }\n };\n const onSessionEnd = (event, info) => {\n this.latestPointerEvent = event;\n this.latestPanInfo = info;\n this.stop(event, info);\n this.latestPointerEvent = null;\n this.latestPanInfo = null;\n };\n const resumeAnimation = () => {\n const { dragSnapToOrigin: snap } = this.getProps();\n if (snap || this.constraints) {\n this.startAnimation({ x: 0, y: 0 });\n }\n };\n const { dragSnapToOrigin } = this.getProps();\n this.panSession = new PanSession(originEvent, {\n onSessionStart,\n onStart,\n onMove,\n onSessionEnd,\n resumeAnimation,\n }, {\n transformPagePoint: this.visualElement.getTransformPagePoint(),\n dragSnapToOrigin,\n distanceThreshold,\n contextWindow: getContextWindow(this.visualElement),\n element: this.visualElement.current,\n });\n }\n /**\n * @internal\n */\n stop(event, panInfo) {\n const finalEvent = event || this.latestPointerEvent;\n const finalPanInfo = panInfo || this.latestPanInfo;\n const isDragging = this.isDragging;\n this.cancel();\n if (!isDragging || !finalPanInfo || !finalEvent)\n return;\n const { velocity } = finalPanInfo;\n this.startAnimation(velocity);\n const { onDragEnd } = this.getProps();\n if (onDragEnd) {\n frame.postRender(() => onDragEnd(finalEvent, finalPanInfo));\n }\n }\n /**\n * @internal\n */\n cancel() {\n this.isDragging = false;\n const { projection, animationState } = this.visualElement;\n if (projection) {\n projection.isAnimationBlocked = false;\n }\n this.endPanSession();\n const { dragPropagation } = this.getProps();\n if (!dragPropagation && this.openDragLock) {\n this.openDragLock();\n this.openDragLock = null;\n }\n animationState && animationState.setActive(\"whileDrag\", false);\n }\n /**\n * Clean up the pan session without modifying other drag state.\n * This is used during unmount to ensure event listeners are removed\n * without affecting projection animations or drag locks.\n * @internal\n */\n endPanSession() {\n this.panSession && this.panSession.end();\n this.panSession = undefined;\n }\n updateAxis(axis, _point, offset) {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!offset || !shouldDrag(axis, drag, this.currentDirection))\n return;\n const axisValue = this.getAxisMotionValue(axis);\n let next = this.originPoint[axis] + offset[axis];\n // Apply constraints\n if (this.constraints && this.constraints[axis]) {\n next = applyConstraints(next, this.constraints[axis], this.elastic[axis]);\n }\n axisValue.set(next);\n }\n resolveConstraints() {\n const { dragConstraints, dragElastic } = this.getProps();\n const layout = this.visualElement.projection &&\n !this.visualElement.projection.layout\n ? this.visualElement.projection.measure(false)\n : this.visualElement.projection?.layout;\n const prevConstraints = this.constraints;\n if (dragConstraints && isRefObject(dragConstraints)) {\n if (!this.constraints) {\n this.constraints = this.resolveRefConstraints();\n }\n }\n else {\n if (dragConstraints && layout) {\n this.constraints = calcRelativeConstraints(layout.layoutBox, dragConstraints);\n }\n else {\n this.constraints = false;\n }\n }\n this.elastic = resolveDragElastic(dragElastic);\n /**\n * If we're outputting to external MotionValues, we want to rebase the measured constraints\n * from viewport-relative to component-relative. This only applies to relative (non-ref)\n * constraints, as ref-based constraints from calcViewportConstraints are already in the\n * correct coordinate space for the motion value transform offset.\n */\n if (prevConstraints !== this.constraints &&\n !isRefObject(dragConstraints) &&\n layout &&\n this.constraints &&\n !this.hasMutatedConstraints) {\n eachAxis((axis) => {\n if (this.constraints !== false &&\n this.getAxisMotionValue(axis)) {\n this.constraints[axis] = rebaseAxisConstraints(layout.layoutBox[axis], this.constraints[axis]);\n }\n });\n }\n }\n resolveRefConstraints() {\n const { dragConstraints: constraints, onMeasureDragConstraints } = this.getProps();\n if (!constraints || !isRefObject(constraints))\n return false;\n const constraintsElement = constraints.current;\n invariant(constraintsElement !== null, \"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.\", \"drag-constraints-ref\");\n const { projection } = this.visualElement;\n // TODO\n if (!projection || !projection.layout)\n return false;\n /**\n * Refresh the root scroll offset so the constraint's viewport box\n * translates to correct page coordinates. The scroll captured at\n * drag mount can be stale if the document was scrolled afterwards —\n * e.g. via the browser restoring scroll on refresh, or an ancestor\n * layout effect running after this element's mount (#2829).\n *\n * Clear the cached scroll first so `updateScroll` bypasses its\n * per-animationId cache and re-reads the live value.\n */\n if (projection.root) {\n projection.root.scroll = undefined;\n projection.root.updateScroll();\n }\n const constraintsBox = measurePageBox(constraintsElement, projection.root, this.visualElement.getTransformPagePoint());\n let measuredConstraints = calcViewportConstraints(projection.layout.layoutBox, constraintsBox);\n /**\n * If there's an onMeasureDragConstraints listener we call it and\n * if different constraints are returned, set constraints to that\n */\n if (onMeasureDragConstraints) {\n const userConstraints = onMeasureDragConstraints(convertBoxToBoundingBox(measuredConstraints));\n this.hasMutatedConstraints = !!userConstraints;\n if (userConstraints) {\n measuredConstraints = convertBoundingBoxToBox(userConstraints);\n }\n }\n return measuredConstraints;\n }\n startAnimation(velocity) {\n const { drag, dragMomentum, dragElastic, dragTransition, dragSnapToOrigin, onDragTransitionEnd, } = this.getProps();\n const constraints = this.constraints || {};\n const momentumAnimations = eachAxis((axis) => {\n if (!shouldDrag(axis, drag, this.currentDirection)) {\n return;\n }\n let transition = (constraints && constraints[axis]) || {};\n if (dragSnapToOrigin === true ||\n dragSnapToOrigin === axis)\n transition = { min: 0, max: 0 };\n /**\n * Overdamp the boundary spring if `dragElastic` is disabled. There's still a frame\n * of spring animations so we should look into adding a disable spring option to `inertia`.\n * We could do something here where we affect the `bounceStiffness` and `bounceDamping`\n * using the value of `dragElastic`.\n */\n const bounceStiffness = dragElastic ? 200 : 1000000;\n const bounceDamping = dragElastic ? 40 : 10000000;\n const inertia = {\n type: \"inertia\",\n velocity: dragMomentum ? velocity[axis] : 0,\n bounceStiffness,\n bounceDamping,\n timeConstant: 750,\n restDelta: 1,\n restSpeed: 10,\n ...dragTransition,\n ...transition,\n };\n // If we're not animating on an externally-provided `MotionValue` we can use the\n // component's animation controls which will handle interactions with whileHover (etc),\n // otherwise we just have to animate the `MotionValue` itself.\n return this.startAxisValueAnimation(axis, inertia);\n });\n // Run all animations and then resolve the new drag constraints.\n return Promise.all(momentumAnimations).then(onDragTransitionEnd);\n }\n startAxisValueAnimation(axis, transition) {\n const axisValue = this.getAxisMotionValue(axis);\n addValueToWillChange(this.visualElement, axis);\n return axisValue.start(animateMotionValue(axis, axisValue, 0, transition, this.visualElement, false));\n }\n stopAnimation() {\n eachAxis((axis) => this.getAxisMotionValue(axis).stop());\n }\n /**\n * Drag works differently depending on which props are provided.\n *\n * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.\n * - Otherwise, we apply the delta to the x/y motion values.\n */\n getAxisMotionValue(axis) {\n const dragKey = `_drag${axis.toUpperCase()}`;\n const props = this.visualElement.getProps();\n const externalMotionValue = props[dragKey];\n return externalMotionValue\n ? externalMotionValue\n : this.visualElement.getValue(axis, this.visualElement.latestValues[axis] ?? 0);\n }\n snapToCursor(point) {\n eachAxis((axis) => {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!shouldDrag(axis, drag, this.currentDirection))\n return;\n const { projection } = this.visualElement;\n const axisValue = this.getAxisMotionValue(axis);\n if (projection && projection.layout) {\n const { min, max } = projection.layout.layoutBox[axis];\n /**\n * The layout measurement includes the current transform value,\n * so we need to add it back to get the correct snap position.\n * This fixes an issue where elements with initial coordinates\n * would snap to the wrong position on the first drag.\n */\n const current = axisValue.get() || 0;\n axisValue.set(point[axis] - mixNumber(min, max, 0.5) + current);\n }\n });\n }\n /**\n * When the viewport resizes we want to check if the measured constraints\n * have changed and, if so, reposition the element within those new constraints\n * relative to where it was before the resize.\n */\n scalePositionWithinConstraints() {\n if (!this.visualElement.current)\n return;\n const { drag, dragConstraints } = this.getProps();\n const { projection } = this.visualElement;\n if (!isRefObject(dragConstraints) || !projection || !this.constraints)\n return;\n /**\n * Stop current animations as there can be visual glitching if we try to do\n * this mid-animation\n */\n this.stopAnimation();\n /**\n * Record the relative position of the dragged element relative to the\n * constraints box and save as a progress value.\n */\n const boxProgress = { x: 0, y: 0 };\n eachAxis((axis) => {\n const axisValue = this.getAxisMotionValue(axis);\n if (axisValue && this.constraints !== false) {\n const latest = axisValue.get();\n boxProgress[axis] = calcOrigin({ min: latest, max: latest }, this.constraints[axis]);\n }\n });\n /**\n * Update the layout of this element and resolve the latest drag constraints\n */\n const { transformTemplate } = this.visualElement.getProps();\n this.visualElement.current.style.transform = transformTemplate\n ? transformTemplate({}, \"\")\n : \"none\";\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n /**\n * Reset constraints so resolveConstraints() will recalculate them\n * with the freshly measured layout rather than returning the cached value.\n */\n this.constraints = false;\n this.resolveConstraints();\n /**\n * For each axis, calculate the current progress of the layout axis\n * within the new constraints.\n */\n eachAxis((axis) => {\n if (!shouldDrag(axis, drag, null))\n return;\n /**\n * Calculate a new transform based on the previous box progress\n */\n const axisValue = this.getAxisMotionValue(axis);\n const { min, max } = this.constraints[axis];\n axisValue.set(mixNumber(min, max, boxProgress[axis]));\n });\n /**\n * Flush the updated transform to the DOM synchronously to prevent\n * a visual flash at the element's CSS layout position (0,0) when\n * the transform was stripped for measurement.\n */\n this.visualElement.render();\n }\n addListeners() {\n if (!this.visualElement.current)\n return;\n elementDragControls.set(this.visualElement, this);\n const element = this.visualElement.current;\n /**\n * Attach a pointerdown event listener on this DOM element to initiate drag tracking.\n */\n const stopPointerListener = addPointerEvent(element, \"pointerdown\", (event) => {\n const { drag, dragListener = true } = this.getProps();\n const target = event.target;\n /**\n * Only block drag if clicking on a text input child element\n * (input, textarea, select, contenteditable) where users might\n * want to select text or interact with the control.\n *\n * Buttons and links don't block drag since they don't have\n * click-and-move actions of their own.\n */\n const isClickingTextInputChild = target !== element && isElementTextInput(target);\n if (drag && dragListener && !isClickingTextInputChild) {\n this.start(event);\n }\n });\n /**\n * If using ref-based constraints, observe both the draggable element\n * and the constraint container for size changes via ResizeObserver.\n * Setup is deferred because dragConstraints.current is null when\n * addListeners first runs (React hasn't committed the ref yet).\n */\n let stopResizeObservers;\n const measureDragConstraints = () => {\n const { dragConstraints } = this.getProps();\n if (isRefObject(dragConstraints) && dragConstraints.current) {\n this.constraints = this.resolveRefConstraints();\n if (!stopResizeObservers) {\n stopResizeObservers = startResizeObservers(element, dragConstraints.current, () => this.scalePositionWithinConstraints());\n }\n }\n };\n const { projection } = this.visualElement;\n const stopMeasureLayoutListener = projection.addEventListener(\"measure\", measureDragConstraints);\n if (projection && !projection.layout) {\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n }\n frame.read(measureDragConstraints);\n /**\n * Attach a window resize listener to scale the draggable target within its defined\n * constraints as the window resizes.\n */\n const stopResizeListener = addDomEvent(window, \"resize\", () => this.scalePositionWithinConstraints());\n /**\n * If the element's layout changes, calculate the delta and apply that to\n * the drag gesture's origin point.\n */\n const stopLayoutUpdateListener = projection.addEventListener(\"didUpdate\", (({ delta, hasLayoutChanged }) => {\n if (this.isDragging && hasLayoutChanged) {\n eachAxis((axis) => {\n const motionValue = this.getAxisMotionValue(axis);\n if (!motionValue)\n return;\n this.originPoint[axis] += delta[axis].translate;\n motionValue.set(motionValue.get() + delta[axis].translate);\n });\n this.visualElement.render();\n }\n }));\n return () => {\n stopResizeListener();\n stopPointerListener();\n stopMeasureLayoutListener();\n stopLayoutUpdateListener && stopLayoutUpdateListener();\n stopResizeObservers && stopResizeObservers();\n };\n }\n getProps() {\n const props = this.visualElement.getProps();\n const { drag = false, dragDirectionLock = false, dragPropagation = false, dragConstraints = false, dragElastic = defaultElastic, dragMomentum = true, } = props;\n return {\n ...props,\n drag,\n dragDirectionLock,\n dragPropagation,\n dragConstraints,\n dragElastic,\n dragMomentum,\n };\n }\n}\nfunction skipFirstCall(callback) {\n let isFirst = true;\n return () => {\n if (isFirst) {\n isFirst = false;\n return;\n }\n callback();\n };\n}\nfunction startResizeObservers(element, constraintsElement, onResize) {\n const stopElement = resize(element, skipFirstCall(onResize));\n const stopContainer = resize(constraintsElement, skipFirstCall(onResize));\n return () => {\n stopElement();\n stopContainer();\n };\n}\nfunction shouldDrag(direction, drag, currentDirection) {\n return ((drag === true || drag === direction) &&\n (currentDirection === null || currentDirection === direction));\n}\n/**\n * Based on an x/y offset determine the current drag direction. If both axis' offsets are lower\n * than the provided threshold, return `null`.\n *\n * @param offset - The x/y offset from origin.\n * @param lockThreshold - (Optional) - the minimum absolute offset before we can determine a drag direction.\n */\nfunction getCurrentDirection(offset, lockThreshold = 10) {\n let direction = null;\n if (Math.abs(offset.y) > lockThreshold) {\n direction = \"y\";\n }\n else if (Math.abs(offset.x) > lockThreshold) {\n direction = \"x\";\n }\n return direction;\n}\n\nexport { VisualElementDragControls, elementDragControls };\n//# sourceMappingURL=VisualElementDragControls.mjs.map\n"],"x_google_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E,cAAa;AAET,EADA,GAAa,EACb,GAAe;;;AAGvB,SAAS,EAAW,GAAW,GAAM,GAAkB;AACnD,SAAS,MAAS,MAAQ,MAAS,OAC9B,MAAqB,QAAQ,MAAqB;;AAS3D,SAAS,EAAoB,GAAQ,IAAgB,IAAI;CACrD,IAAI,IAAY;AAOhB,QANI,KAAK,IAAI,EAAO,EAAE,GAAG,IACrB,IAAY,MAEP,KAAK,IAAI,EAAO,EAAE,GAAG,MAC1B,IAAY,MAET"}
@@ -0,0 +1,24 @@
1
+ import { noop as e } from "../../../../../motion-utils/dist/es/noop.js";
2
+ import { Feature as t } from "../../../../../motion-dom/dist/es/render/Feature.js";
3
+ import { VisualElementDragControls as n } from "./VisualElementDragControls.js";
4
+ //#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
5
+ var r = class extends t {
6
+ constructor(t) {
7
+ super(t), this.removeGroupControls = e, this.removeListeners = e, this.controls = new n(t);
8
+ }
9
+ mount() {
10
+ let { dragControls: t } = this.node.getProps();
11
+ t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || e;
12
+ }
13
+ update() {
14
+ let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
15
+ e !== t && (this.removeGroupControls(), e && (this.removeGroupControls = e.subscribe(this.controls)));
16
+ }
17
+ unmount() {
18
+ this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
19
+ }
20
+ };
21
+ //#endregion
22
+ export { r as DragGesture };
23
+
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/index.mjs"],"sourcesContent":["import { Feature } from 'motion-dom';\nimport { noop } from 'motion-utils';\nimport { VisualElementDragControls } from './VisualElementDragControls.mjs';\n\nclass DragGesture extends Feature {\n constructor(node) {\n super(node);\n this.removeGroupControls = noop;\n this.removeListeners = noop;\n this.controls = new VisualElementDragControls(node);\n }\n mount() {\n // If we've been provided a DragControls for manual control over the drag gesture,\n // subscribe this component to it on mount.\n const { dragControls } = this.node.getProps();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n this.removeListeners = this.controls.addListeners() || noop;\n }\n update() {\n const { dragControls } = this.node.getProps();\n const { dragControls: prevDragControls } = this.node.prevProps || {};\n if (dragControls !== prevDragControls) {\n this.removeGroupControls();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n }\n }\n unmount() {\n this.removeGroupControls();\n this.removeListeners();\n /**\n * In React 19, during list reorder reconciliation, components may\n * briefly unmount and remount while the drag is still active. If we're\n * actively dragging, we should NOT end the pan session - it will\n * continue tracking pointer events via its window-level listeners.\n *\n * The pan session will be properly cleaned up when:\n * 1. The drag ends naturally (pointerup/pointercancel)\n * 2. The component is truly removed from the DOM\n */\n if (!this.controls.isDragging) {\n this.controls.endPanSession();\n }\n }\n}\n\nexport { DragGesture };\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAM,IAAN,cAA0B,EAAQ;CAC9B,YAAY,GAAM;AAId,EAHA,MAAM,EAAK,EACX,KAAK,sBAAsB,GAC3B,KAAK,kBAAkB,GACvB,KAAK,WAAW,IAAI,EAA0B,EAAK;;CAEvD,QAAQ;EAGJ,IAAM,EAAE,oBAAiB,KAAK,KAAK,UAAU;AAI7C,EAHI,MACA,KAAK,sBAAsB,EAAa,UAAU,KAAK,SAAS,GAEpE,KAAK,kBAAkB,KAAK,SAAS,cAAc,IAAI;;CAE3D,SAAS;EACL,IAAM,EAAE,oBAAiB,KAAK,KAAK,UAAU,EACvC,EAAE,cAAc,MAAqB,KAAK,KAAK,aAAa,EAAE;AACpE,EAAI,MAAiB,MACjB,KAAK,qBAAqB,EACtB,MACA,KAAK,sBAAsB,EAAa,UAAU,KAAK,SAAS;;CAI5E,UAAU;AAaN,EAZA,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EAWjB,KAAK,SAAS,cACf,KAAK,SAAS,eAAe"}
@@ -0,0 +1,61 @@
1
+ import { clamp as e } from "../../../../../../motion-utils/dist/es/clamp.js";
2
+ import { progress as t } from "../../../../../../motion-utils/dist/es/progress.js";
3
+ import { mixNumber as n } from "../../../../../../motion-dom/dist/es/utils/mix/number.js";
4
+ import { calcLength as r } from "../../../../../../motion-dom/dist/es/projection/geometry/delta-calc.js";
5
+ //#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
6
+ function i(e, { min: t, max: r }, i) {
7
+ return t !== void 0 && e < t ? e = i ? n(t, e, i.min) : Math.max(e, t) : r !== void 0 && e > r && (e = i ? n(r, e, i.max) : Math.min(e, r)), e;
8
+ }
9
+ function a(e, t, n) {
10
+ return {
11
+ min: t === void 0 ? void 0 : e.min + t,
12
+ max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
13
+ };
14
+ }
15
+ function o(e, { top: t, left: n, bottom: r, right: i }) {
16
+ return {
17
+ x: a(e.x, n, i),
18
+ y: a(e.y, t, r)
19
+ };
20
+ }
21
+ function s(e, t) {
22
+ let n = t.min - e.min, r = t.max - e.max;
23
+ return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
24
+ min: n,
25
+ max: r
26
+ };
27
+ }
28
+ function c(e, t) {
29
+ return {
30
+ x: s(e.x, t.x),
31
+ y: s(e.y, t.y)
32
+ };
33
+ }
34
+ function l(n, i) {
35
+ let a = .5, o = r(n), s = r(i);
36
+ return s > o ? a = t(i.min, i.max - o, n.min) : o > s && (a = t(n.min, n.max - s, i.min)), e(0, 1, a);
37
+ }
38
+ function u(e, t) {
39
+ let n = {};
40
+ return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
41
+ }
42
+ var d = .35;
43
+ function f(e = d) {
44
+ return e === !1 ? e = 0 : e === !0 && (e = d), {
45
+ x: p(e, "left", "right"),
46
+ y: p(e, "top", "bottom")
47
+ };
48
+ }
49
+ function p(e, t, n) {
50
+ return {
51
+ min: m(e, t),
52
+ max: m(e, n)
53
+ };
54
+ }
55
+ function m(e, t) {
56
+ return typeof e == "number" ? e : e[t] || 0;
57
+ }
58
+ //#endregion
59
+ export { i as applyConstraints, l as calcOrigin, o as calcRelativeConstraints, c as calcViewportConstraints, d as defaultElastic, u as rebaseAxisConstraints, f as resolveDragElastic };
60
+
61
+ //# sourceMappingURL=constraints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constraints.js","names":[],"sources":["../../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs"],"sourcesContent":["import { mixNumber, calcLength } from 'motion-dom';\nimport { progress, clamp } from 'motion-utils';\n\n/**\n * Apply constraints to a point. These constraints are both physical along an\n * axis, and an elastic factor that determines how much to constrain the point\n * by if it does lie outside the defined parameters.\n */\nfunction applyConstraints(point, { min, max }, elastic) {\n if (min !== undefined && point < min) {\n // If we have a min point defined, and this is outside of that, constrain\n point = elastic\n ? mixNumber(min, point, elastic.min)\n : Math.max(point, min);\n }\n else if (max !== undefined && point > max) {\n // If we have a max point defined, and this is outside of that, constrain\n point = elastic\n ? mixNumber(max, point, elastic.max)\n : Math.min(point, max);\n }\n return point;\n}\n/**\n * Calculate constraints in terms of the viewport when defined relatively to the\n * measured axis. This is measured from the nearest edge, so a max constraint of 200\n * on an axis with a max value of 300 would return a constraint of 500 - axis length\n */\nfunction calcRelativeAxisConstraints(axis, min, max) {\n return {\n min: min !== undefined ? axis.min + min : undefined,\n max: max !== undefined\n ? axis.max + max - (axis.max - axis.min)\n : undefined,\n };\n}\n/**\n * Calculate constraints in terms of the viewport when\n * defined relatively to the measured bounding box.\n */\nfunction calcRelativeConstraints(layoutBox, { top, left, bottom, right }) {\n return {\n x: calcRelativeAxisConstraints(layoutBox.x, left, right),\n y: calcRelativeAxisConstraints(layoutBox.y, top, bottom),\n };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative axis\n */\nfunction calcViewportAxisConstraints(layoutAxis, constraintsAxis) {\n let min = constraintsAxis.min - layoutAxis.min;\n let max = constraintsAxis.max - layoutAxis.max;\n // If the constraints axis is actually smaller than the layout axis then we can\n // flip the constraints\n if (constraintsAxis.max - constraintsAxis.min <\n layoutAxis.max - layoutAxis.min) {\n [min, max] = [max, min];\n }\n return { min, max };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative box\n */\nfunction calcViewportConstraints(layoutBox, constraintsBox) {\n return {\n x: calcViewportAxisConstraints(layoutBox.x, constraintsBox.x),\n y: calcViewportAxisConstraints(layoutBox.y, constraintsBox.y),\n };\n}\n/**\n * Calculate a transform origin relative to the source axis, between 0-1, that results\n * in an asthetically pleasing scale/transform needed to project from source to target.\n */\nfunction calcOrigin(source, target) {\n let origin = 0.5;\n const sourceLength = calcLength(source);\n const targetLength = calcLength(target);\n if (targetLength > sourceLength) {\n origin = progress(target.min, target.max - sourceLength, source.min);\n }\n else if (sourceLength > targetLength) {\n origin = progress(source.min, source.max - targetLength, target.min);\n }\n return clamp(0, 1, origin);\n}\n/**\n * Rebase the calculated viewport constraints relative to the layout.min point.\n */\nfunction rebaseAxisConstraints(layout, constraints) {\n const relativeConstraints = {};\n if (constraints.min !== undefined) {\n relativeConstraints.min = constraints.min - layout.min;\n }\n if (constraints.max !== undefined) {\n relativeConstraints.max = constraints.max - layout.min;\n }\n return relativeConstraints;\n}\nconst defaultElastic = 0.35;\n/**\n * Accepts a dragElastic prop and returns resolved elastic values for each axis.\n */\nfunction resolveDragElastic(dragElastic = defaultElastic) {\n if (dragElastic === false) {\n dragElastic = 0;\n }\n else if (dragElastic === true) {\n dragElastic = defaultElastic;\n }\n return {\n x: resolveAxisElastic(dragElastic, \"left\", \"right\"),\n y: resolveAxisElastic(dragElastic, \"top\", \"bottom\"),\n };\n}\nfunction resolveAxisElastic(dragElastic, minLabel, maxLabel) {\n return {\n min: resolvePointElastic(dragElastic, minLabel),\n max: resolvePointElastic(dragElastic, maxLabel),\n };\n}\nfunction resolvePointElastic(dragElastic, label) {\n return typeof dragElastic === \"number\"\n ? dragElastic\n : dragElastic[label] || 0;\n}\n\nexport { applyConstraints, calcOrigin, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic };\n//# sourceMappingURL=constraints.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAQA,SAAS,EAAiB,GAAO,EAAE,QAAK,UAAO,GAAS;AAapD,QAZI,MAAQ,KAAA,KAAa,IAAQ,IAE7B,IAAQ,IACF,EAAU,GAAK,GAAO,EAAQ,IAAI,GAClC,KAAK,IAAI,GAAO,EAAI,GAErB,MAAQ,KAAA,KAAa,IAAQ,MAElC,IAAQ,IACF,EAAU,GAAK,GAAO,EAAQ,IAAI,GAClC,KAAK,IAAI,GAAO,EAAI,GAEvB;;AAOX,SAAS,EAA4B,GAAM,GAAK,GAAK;AACjD,QAAO;EACH,KAAK,MAAQ,KAAA,IAA6B,KAAA,IAAjB,EAAK,MAAM;EACpC,KAAK,MAAQ,KAAA,IAEP,KAAA,IADA,EAAK,MAAM,KAAO,EAAK,MAAM,EAAK;EAE3C;;AAML,SAAS,EAAwB,GAAW,EAAE,QAAK,SAAM,WAAQ,YAAS;AACtE,QAAO;EACH,GAAG,EAA4B,EAAU,GAAG,GAAM,EAAM;EACxD,GAAG,EAA4B,EAAU,GAAG,GAAK,EAAO;EAC3D;;AAKL,SAAS,EAA4B,GAAY,GAAiB;CAC9D,IAAI,IAAM,EAAgB,MAAM,EAAW,KACvC,IAAM,EAAgB,MAAM,EAAW;AAO3C,QAJI,EAAgB,MAAM,EAAgB,MACtC,EAAW,MAAM,EAAW,QAC5B,CAAC,GAAK,KAAO,CAAC,GAAK,EAAI,GAEpB;EAAE;EAAK;EAAK;;AAKvB,SAAS,EAAwB,GAAW,GAAgB;AACxD,QAAO;EACH,GAAG,EAA4B,EAAU,GAAG,EAAe,EAAE;EAC7D,GAAG,EAA4B,EAAU,GAAG,EAAe,EAAE;EAChE;;AAML,SAAS,EAAW,GAAQ,GAAQ;CAChC,IAAI,IAAS,IACP,IAAe,EAAW,EAAO,EACjC,IAAe,EAAW,EAAO;AAOvC,QANI,IAAe,IACf,IAAS,EAAS,EAAO,KAAK,EAAO,MAAM,GAAc,EAAO,IAAI,GAE/D,IAAe,MACpB,IAAS,EAAS,EAAO,KAAK,EAAO,MAAM,GAAc,EAAO,IAAI,GAEjE,EAAM,GAAG,GAAG,EAAO;;AAK9B,SAAS,EAAsB,GAAQ,GAAa;CAChD,IAAM,IAAsB,EAAE;AAO9B,QANI,EAAY,QAAQ,KAAA,MACpB,EAAoB,MAAM,EAAY,MAAM,EAAO,MAEnD,EAAY,QAAQ,KAAA,MACpB,EAAoB,MAAM,EAAY,MAAM,EAAO,MAEhD;;AAEX,IAAM,IAAiB;AAIvB,SAAS,EAAmB,IAAc,GAAgB;AAOtD,QANI,MAAgB,KAChB,IAAc,IAET,MAAgB,OACrB,IAAc,IAEX;EACH,GAAG,EAAmB,GAAa,QAAQ,QAAQ;EACnD,GAAG,EAAmB,GAAa,OAAO,SAAS;EACtD;;AAEL,SAAS,EAAmB,GAAa,GAAU,GAAU;AACzD,QAAO;EACH,KAAK,EAAoB,GAAa,EAAS;EAC/C,KAAK,EAAoB,GAAa,EAAS;EAClD;;AAEL,SAAS,EAAoB,GAAa,GAAO;AAC7C,QAAO,OAAO,KAAgB,WACxB,IACA,EAAY,MAAU"}
@@ -0,0 +1,29 @@
1
+ import { pipe as e } from "../../../../motion-utils/dist/es/pipe.js";
2
+ import { Feature as t } from "../../../../motion-dom/dist/es/render/Feature.js";
3
+ import { addDomEvent as n } from "../../../../motion-dom/dist/es/events/add-dom-event.js";
4
+ //#region node_modules/framer-motion/dist/es/gestures/focus.mjs
5
+ var r = class extends t {
6
+ constructor() {
7
+ super(...arguments), this.isActive = !1;
8
+ }
9
+ onFocus() {
10
+ let e = !1;
11
+ try {
12
+ e = this.node.current.matches(":focus-visible");
13
+ } catch {
14
+ e = !0;
15
+ }
16
+ !e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
17
+ }
18
+ onBlur() {
19
+ !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
20
+ }
21
+ mount() {
22
+ this.unmount = e(n(this.node.current, "focus", () => this.onFocus()), n(this.node.current, "blur", () => this.onBlur()));
23
+ }
24
+ unmount() {}
25
+ };
26
+ //#endregion
27
+ export { r as FocusGesture };
28
+
29
+ //# sourceMappingURL=focus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus.js","names":[],"sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/focus.mjs"],"sourcesContent":["import { Feature, addDomEvent } from 'motion-dom';\nimport { pipe } from 'motion-utils';\n\nclass FocusGesture extends Feature {\n constructor() {\n super(...arguments);\n this.isActive = false;\n }\n onFocus() {\n let isFocusVisible = false;\n /**\n * If this element doesn't match focus-visible then don't\n * apply whileHover. But, if matches throws that focus-visible\n * is not a valid selector then in that browser outline styles will be applied\n * to the element by default and we want to match that behaviour with whileFocus.\n */\n try {\n isFocusVisible = this.node.current.matches(\":focus-visible\");\n }\n catch (e) {\n isFocusVisible = true;\n }\n if (!isFocusVisible || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", true);\n this.isActive = true;\n }\n onBlur() {\n if (!this.isActive || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", false);\n this.isActive = false;\n }\n mount() {\n this.unmount = pipe(addDomEvent(this.node.current, \"focus\", () => this.onFocus()), addDomEvent(this.node.current, \"blur\", () => this.onBlur()));\n }\n unmount() { }\n}\n\nexport { FocusGesture };\n//# sourceMappingURL=focus.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAGA,IAAM,IAAN,cAA2B,EAAQ;CAC/B,cAAc;AAEV,EADA,MAAM,GAAG,UAAU,EACnB,KAAK,WAAW;;CAEpB,UAAU;EACN,IAAI,IAAiB;AAOrB,MAAI;AACA,OAAiB,KAAK,KAAK,QAAQ,QAAQ,iBAAiB;UAEtD;AACN,OAAiB;;AAEjB,GAAC,KAAkB,CAAC,KAAK,KAAK,mBAElC,KAAK,KAAK,eAAe,UAAU,cAAc,GAAK,EACtD,KAAK,WAAW;;CAEpB,SAAS;AACD,GAAC,KAAK,YAAY,CAAC,KAAK,KAAK,mBAEjC,KAAK,KAAK,eAAe,UAAU,cAAc,GAAM,EACvD,KAAK,WAAW;;CAEpB,QAAQ;AACJ,OAAK,UAAU,EAAK,EAAY,KAAK,KAAK,SAAS,eAAe,KAAK,SAAS,CAAC,EAAE,EAAY,KAAK,KAAK,SAAS,cAAc,KAAK,QAAQ,CAAC,CAAC;;CAEnJ,UAAU"}
@@ -0,0 +1,22 @@
1
+ import { frame as e } from "../../../../motion-dom/dist/es/frameloop/frame.js";
2
+ import { hover as t } from "../../../../motion-dom/dist/es/gestures/hover.js";
3
+ import { Feature as n } from "../../../../motion-dom/dist/es/render/Feature.js";
4
+ import { extractEventInfo as r } from "../events/event-info.js";
5
+ //#region node_modules/framer-motion/dist/es/gestures/hover.mjs
6
+ function i(t, n, i) {
7
+ let { props: a } = t;
8
+ t.animationState && a.whileHover && t.animationState.setActive("whileHover", i === "Start");
9
+ let o = a["onHover" + i];
10
+ o && e.postRender(() => o(n, r(n)));
11
+ }
12
+ var a = class extends n {
13
+ mount() {
14
+ let { current: e } = this.node;
15
+ e && (this.unmount = t(e, (e, t) => (i(this.node, t, "Start"), (e) => i(this.node, e, "End"))));
16
+ }
17
+ unmount() {}
18
+ };
19
+ //#endregion
20
+ export { a as HoverGesture };
21
+
22
+ //# sourceMappingURL=hover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hover.js","names":[],"sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/hover.mjs"],"sourcesContent":["import { Feature, hover, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\n\nfunction handleHoverEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.animationState && props.whileHover) {\n node.animationState.setActive(\"whileHover\", lifecycle === \"Start\");\n }\n const eventName = (\"onHover\" + lifecycle);\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass HoverGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n this.unmount = hover(current, (_element, startEvent) => {\n handleHoverEvent(this.node, startEvent, \"Start\");\n return (endEvent) => handleHoverEvent(this.node, endEvent, \"End\");\n });\n }\n unmount() { }\n}\n\nexport { HoverGesture };\n//# sourceMappingURL=hover.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAGA,SAAS,EAAiB,GAAM,GAAO,GAAW;CAC9C,IAAM,EAAE,aAAU;AAClB,CAAI,EAAK,kBAAkB,EAAM,cAC7B,EAAK,eAAe,UAAU,cAAc,MAAc,QAAQ;CAGtE,IAAM,IAAW,EADE,YAAY;AAE/B,CAAI,KACA,EAAM,iBAAiB,EAAS,GAAO,EAAiB,EAAM,CAAC,CAAC;;AAGxE,IAAM,IAAN,cAA2B,EAAQ;CAC/B,QAAQ;EACJ,IAAM,EAAE,eAAY,KAAK;AACpB,QAEL,KAAK,UAAU,EAAM,IAAU,GAAU,OACrC,EAAiB,KAAK,MAAM,GAAY,QAAQ,GACxC,MAAa,EAAiB,KAAK,MAAM,GAAU,MAAM,EACnE;;CAEN,UAAU"}