@burdenoff/microfe-brainyrich 2026.706.2 → 2026.706.4

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 (543) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +5 -5
  2. package/dist/brainyrich/components/viz.js +155 -156
  3. package/dist/brainyrich/components/viz.js.map +1 -1
  4. package/dist/brainyrich/pages/AccountsPage.js.map +1 -1
  5. package/dist/brainyrich/pages/AiAssistantPage.js.map +1 -1
  6. package/dist/brainyrich/pages/AnalyticsPage.js.map +1 -1
  7. package/dist/brainyrich/pages/DashboardPage.js.map +1 -1
  8. package/dist/brainyrich/pages/FamilyPage.js.map +1 -1
  9. package/dist/brainyrich/pages/GoalsPage.js.map +1 -1
  10. package/dist/brainyrich/pages/InvestmentsPage.js.map +1 -1
  11. package/dist/brainyrich/pages/PortfoliosPage.js.map +1 -1
  12. package/dist/brainyrich/pages/ReportsPage.js +2 -1
  13. package/dist/brainyrich/pages/ReportsPage.js.map +1 -1
  14. package/dist/brainyrich/pages/RiskPage.js.map +1 -1
  15. package/dist/brainyrich/pages/_shared.js +76 -68
  16. package/dist/brainyrich/pages/_shared.js.map +1 -1
  17. package/package.json +3 -4
  18. package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +0 -10
  19. package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js.map +0 -1
  20. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -22
  21. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +0 -1
  22. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -8
  23. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +0 -1
  24. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -8
  25. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +0 -1
  26. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -12
  27. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +0 -1
  28. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -19
  29. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +0 -1
  30. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -8
  31. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +0 -1
  32. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -17
  33. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +0 -1
  34. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -8
  35. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +0 -1
  36. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -8
  37. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +0 -1
  38. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -10
  39. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +0 -1
  40. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -13
  41. package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +0 -1
  42. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -259
  43. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +0 -1
  44. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -24
  45. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +0 -1
  46. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -61
  47. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +0 -1
  48. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -29
  49. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +0 -1
  50. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -22
  51. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +0 -1
  52. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -135
  53. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +0 -1
  54. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -44
  55. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +0 -1
  56. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -28
  57. package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +0 -1
  58. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -41
  59. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +0 -1
  60. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -27
  61. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +0 -1
  62. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -11
  63. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +0 -1
  64. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -53
  65. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +0 -1
  66. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  67. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +0 -1
  68. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -15
  69. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +0 -1
  70. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -63
  71. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +0 -1
  72. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  73. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +0 -1
  74. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -15
  75. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +0 -1
  76. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -48
  77. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +0 -1
  78. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -26
  79. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +0 -1
  80. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -72
  81. package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +0 -1
  82. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -6
  83. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +0 -1
  84. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -24
  85. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +0 -1
  86. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -60
  87. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +0 -1
  88. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
  89. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +0 -1
  90. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -9
  91. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +0 -1
  92. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -12
  93. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +0 -1
  94. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -15
  95. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +0 -1
  96. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -9
  97. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +0 -1
  98. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
  99. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +0 -1
  100. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -23
  101. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +0 -1
  102. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
  103. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +0 -1
  104. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -9
  105. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +0 -1
  106. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -13
  107. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +0 -1
  108. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -28
  109. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +0 -1
  110. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -11
  111. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +0 -1
  112. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -32
  113. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +0 -1
  114. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -28
  115. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +0 -1
  116. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -13
  117. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +0 -1
  118. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -10
  119. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +0 -1
  120. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
  121. package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +0 -1
  122. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -6
  123. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +0 -1
  124. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -6
  125. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +0 -1
  126. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -8
  127. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +0 -1
  128. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -15
  129. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js.map +0 -1
  130. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -11
  131. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +0 -1
  132. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -9
  133. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +0 -1
  134. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -109
  135. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +0 -1
  136. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -132
  137. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +0 -1
  138. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -86
  139. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +0 -1
  140. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -30
  141. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +0 -1
  142. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -12
  143. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +0 -1
  144. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -15
  145. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +0 -1
  146. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -34
  147. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +0 -1
  148. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -24
  149. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +0 -1
  150. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -168
  151. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +0 -1
  152. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -11
  153. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +0 -1
  154. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -18
  155. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +0 -1
  156. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -8
  157. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +0 -1
  158. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -11
  159. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +0 -1
  160. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -47
  161. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +0 -1
  162. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -56
  163. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +0 -1
  164. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -28
  165. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +0 -1
  166. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -23
  167. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +0 -1
  168. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -63
  169. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +0 -1
  170. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -69
  171. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +0 -1
  172. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -10
  173. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +0 -1
  174. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -10
  175. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +0 -1
  176. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -14
  177. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +0 -1
  178. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -8
  179. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +0 -1
  180. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -8
  181. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +0 -1
  182. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -9
  183. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +0 -1
  184. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -20
  185. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +0 -1
  186. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -38
  187. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +0 -1
  188. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
  189. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +0 -1
  190. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -9
  191. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +0 -1
  192. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -24
  193. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +0 -1
  194. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -9
  195. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +0 -1
  196. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -20
  197. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +0 -1
  198. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -27
  199. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +0 -1
  200. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -29
  201. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +0 -1
  202. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -10
  203. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +0 -1
  204. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
  205. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +0 -1
  206. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
  207. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +0 -1
  208. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -21
  209. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +0 -1
  210. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -8
  211. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +0 -1
  212. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -18
  213. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +0 -1
  214. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -15
  215. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +0 -1
  216. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -6
  217. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +0 -1
  218. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -13
  219. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +0 -1
  220. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -37
  221. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +0 -1
  222. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -27
  223. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +0 -1
  224. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -26
  225. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +0 -1
  226. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -11
  227. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +0 -1
  228. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -10
  229. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +0 -1
  230. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -10
  231. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +0 -1
  232. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
  233. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +0 -1
  234. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -19
  235. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +0 -1
  236. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -8
  237. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +0 -1
  238. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -32
  239. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +0 -1
  240. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -8
  241. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +0 -1
  242. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -7
  243. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +0 -1
  244. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -15
  245. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +0 -1
  246. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -35
  247. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +0 -1
  248. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -17
  249. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +0 -1
  250. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
  251. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +0 -1
  252. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -13
  253. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +0 -1
  254. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -38
  255. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +0 -1
  256. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -35
  257. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +0 -1
  258. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -23
  259. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +0 -1
  260. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -30
  261. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +0 -1
  262. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -6
  263. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +0 -1
  264. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -6
  265. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +0 -1
  266. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -6
  267. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +0 -1
  268. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -18
  269. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +0 -1
  270. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -31
  271. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +0 -1
  272. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -41
  273. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +0 -1
  274. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
  275. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +0 -1
  276. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -45
  277. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +0 -1
  278. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -32
  279. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +0 -1
  280. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -31
  281. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +0 -1
  282. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -20
  283. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +0 -1
  284. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -30
  285. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +0 -1
  286. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -15
  287. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +0 -1
  288. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -24
  289. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +0 -1
  290. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -590
  291. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +0 -1
  292. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -9
  293. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +0 -1
  294. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -53
  295. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +0 -1
  296. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -15
  297. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +0 -1
  298. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -15
  299. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +0 -1
  300. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -23
  301. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +0 -1
  302. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -14
  303. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +0 -1
  304. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -6
  305. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +0 -1
  306. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -8
  307. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +0 -1
  308. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -21
  309. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +0 -1
  310. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
  311. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +0 -1
  312. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -14
  313. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +0 -1
  314. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -11
  315. package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +0 -1
  316. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -206
  317. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +0 -1
  318. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -30
  319. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +0 -1
  320. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -6
  321. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +0 -1
  322. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -58
  323. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +0 -1
  324. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -9
  325. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +0 -1
  326. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -8
  327. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +0 -1
  328. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
  329. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +0 -1
  330. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -30
  331. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +0 -1
  332. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -37
  333. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +0 -1
  334. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -10
  335. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +0 -1
  336. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -13
  337. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +0 -1
  338. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -6
  339. package/dist/node_modules/motion-dom/dist/es/render/store.js.map +0 -1
  340. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -42
  341. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +0 -1
  342. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -24
  343. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +0 -1
  344. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -30
  345. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +0 -1
  346. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -6
  347. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +0 -1
  348. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -17
  349. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +0 -1
  350. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -12
  351. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +0 -1
  352. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -16
  353. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +0 -1
  354. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -137
  355. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +0 -1
  356. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -21
  357. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +0 -1
  358. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -8
  359. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +0 -1
  360. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -14
  361. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +0 -1
  362. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -10
  363. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +0 -1
  364. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -6
  365. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +0 -1
  366. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -8
  367. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +0 -1
  368. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -15
  369. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +0 -1
  370. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -24
  371. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +0 -1
  372. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -23
  373. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +0 -1
  374. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -13
  375. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +0 -1
  376. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -6
  377. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +0 -1
  378. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -10
  379. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +0 -1
  380. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -22
  381. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +0 -1
  382. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -22
  383. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +0 -1
  384. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -12
  385. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +0 -1
  386. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -14
  387. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +0 -1
  388. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -39
  389. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +0 -1
  390. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -24
  391. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +0 -1
  392. package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -10
  393. package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +0 -1
  394. package/dist/node_modules/motion-dom/dist/es/stats/animation-count.js +0 -10
  395. package/dist/node_modules/motion-dom/dist/es/stats/animation-count.js.map +0 -1
  396. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +0 -9
  397. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js.map +0 -1
  398. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -14
  399. package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +0 -1
  400. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -35
  401. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +0 -1
  402. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -9
  403. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +0 -1
  404. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -9
  405. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +0 -1
  406. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -9
  407. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +0 -1
  408. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -32
  409. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +0 -1
  410. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -54
  411. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +0 -1
  412. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -8
  413. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +0 -1
  414. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -10
  415. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +0 -1
  416. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -6
  417. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +0 -1
  418. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -9
  419. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +0 -1
  420. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -16
  421. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +0 -1
  422. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -6
  423. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +0 -1
  424. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -14
  425. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +0 -1
  426. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -11
  427. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +0 -1
  428. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -7
  429. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +0 -1
  430. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -94
  431. package/dist/node_modules/motion-dom/dist/es/value/index.js.map +0 -1
  432. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -9
  433. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +0 -1
  434. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -21
  435. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +0 -1
  436. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -23
  437. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +0 -1
  438. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -14
  439. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +0 -1
  440. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -17
  441. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +0 -1
  442. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -17
  443. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +0 -1
  444. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
  445. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +0 -1
  446. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -28
  447. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +0 -1
  448. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -54
  449. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +0 -1
  450. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -16
  451. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +0 -1
  452. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -18
  453. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +0 -1
  454. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -10
  455. package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +0 -1
  456. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -26
  457. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +0 -1
  458. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -66
  459. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +0 -1
  460. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -33
  461. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +0 -1
  462. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
  463. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +0 -1
  464. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -14
  465. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +0 -1
  466. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -6
  467. package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +0 -1
  468. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -14
  469. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +0 -1
  470. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -6
  471. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +0 -1
  472. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -14
  473. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +0 -1
  474. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -6
  475. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +0 -1
  476. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -6
  477. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +0 -1
  478. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -8
  479. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +0 -1
  480. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -6
  481. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +0 -1
  482. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -6
  483. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +0 -1
  484. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -6
  485. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +0 -1
  486. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -9
  487. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +0 -1
  488. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -15
  489. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +0 -1
  490. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -9
  491. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +0 -1
  492. package/dist/node_modules/motion-utils/dist/es/array.js +0 -12
  493. package/dist/node_modules/motion-utils/dist/es/array.js.map +0 -1
  494. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -6
  495. package/dist/node_modules/motion-utils/dist/es/clamp.js.map +0 -1
  496. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -7
  497. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +0 -1
  498. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
  499. package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +0 -1
  500. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
  501. package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +0 -1
  502. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -19
  503. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +0 -1
  504. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
  505. package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +0 -1
  506. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -6
  507. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +0 -1
  508. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -6
  509. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +0 -1
  510. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -6
  511. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +0 -1
  512. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -6
  513. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +0 -1
  514. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -33
  515. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +0 -1
  516. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -12
  517. package/dist/node_modules/motion-utils/dist/es/errors.js.map +0 -1
  518. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -8
  519. package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +0 -1
  520. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -6
  521. package/dist/node_modules/motion-utils/dist/es/global-config.js.map +0 -1
  522. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -6
  523. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +0 -1
  524. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -8
  525. package/dist/node_modules/motion-utils/dist/es/is-object.js.map +0 -1
  526. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -6
  527. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +0 -1
  528. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -10
  529. package/dist/node_modules/motion-utils/dist/es/memo.js.map +0 -1
  530. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -6
  531. package/dist/node_modules/motion-utils/dist/es/noop.js.map +0 -1
  532. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -6
  533. package/dist/node_modules/motion-utils/dist/es/pipe.js.map +0 -1
  534. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -9
  535. package/dist/node_modules/motion-utils/dist/es/progress.js.map +0 -1
  536. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -28
  537. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +0 -1
  538. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -6
  539. package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +0 -1
  540. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -8
  541. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +0 -1
  542. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -10
  543. package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +0 -1
@@ -1 +0,0 @@
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 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, (props.initial\n ? props.initial[axis]\n : undefined) || 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_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;AASA,IAAM,oBAAsB,IAAI,SAAS,EACnC,IAAN,MAAgC;CAC5B,YAAY,GAAe;AAsBvB,EArBA,KAAK,eAAe,MACpB,KAAK,aAAa,IAClB,KA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QANI,KAAK,IAAI,EAAO,EAAE,GAAG,IACrB,IAAY,MAEP,KAAK,IAAI,EAAO,EAAE,GAAG,MAC1B,IAAY,MAET"}
@@ -1,24 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,61 +0,0 @@
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
@@ -1 +0,0 @@
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,QAA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AAM,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"}
@@ -1,29 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,22 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,135 +0,0 @@
1
- import { pipe as e } from "../../../../../motion-utils/dist/es/pipe.js";
2
- import { millisecondsToSeconds as t, secondsToMilliseconds as n } from "../../../../../motion-utils/dist/es/time-conversion.js";
3
- import { cancelFrame as r, frame as i, frameData as a } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
4
- import { isPrimaryPointer as o } from "../../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.js";
5
- import { extractEventInfo as s } from "../../events/event-info.js";
6
- import { addPointerEvent as c } from "../../events/add-pointer-event.js";
7
- import { distance2D as l } from "../../utils/distance.js";
8
- //#region node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
9
- var u = /* @__PURE__ */ new Set(["auto", "scroll"]), d = class {
10
- constructor(t, n, { transformPagePoint: r, contextWindow: u = window, dragSnapToOrigin: d = !1, distanceThreshold: p = 3, element: h } = {}) {
11
- if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
12
- this.handleScroll(e.target);
13
- }, this.onWindowScroll = () => {
14
- this.handleScroll(window);
15
- }, this.updatePoint = () => {
16
- if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
17
- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = f(this.lastRawMoveEventInfo, this.transformPagePoint));
18
- let e = m(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = l(e.offset, {
19
- x: 0,
20
- y: 0
21
- }) >= this.distanceThreshold;
22
- if (!t && !n) return;
23
- let { point: r } = e, { timestamp: i } = a;
24
- this.history.push({
25
- ...r,
26
- timestamp: i
27
- });
28
- let { onStart: o, onMove: s } = this.handlers;
29
- t || (o && o(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), s && s(this.lastMoveEvent, e);
30
- }, this.handlePointerMove = (e, t) => {
31
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = f(t, this.transformPagePoint), i.update(this.updatePoint, !0);
32
- }, this.handlePointerUp = (e, t) => {
33
- this.end();
34
- let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
35
- if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
36
- let a = m(e.type === "pointercancel" ? this.lastMoveEventInfo : f(t, this.transformPagePoint), this.history);
37
- this.startEvent && n && n(e, a), r && r(e, a);
38
- }, !o(t)) return;
39
- this.dragSnapToOrigin = d, this.handlers = n, this.transformPagePoint = r, this.distanceThreshold = p, this.contextWindow = u || window;
40
- let g = f(s(t), this.transformPagePoint), { point: _ } = g, { timestamp: v } = a;
41
- this.history = [{
42
- ..._,
43
- timestamp: v
44
- }];
45
- let { onSessionStart: y } = n;
46
- y && y(t, m(g, this.history)), this.removeListeners = e(c(this.contextWindow, "pointermove", this.handlePointerMove), c(this.contextWindow, "pointerup", this.handlePointerUp), c(this.contextWindow, "pointercancel", this.handlePointerUp)), h && this.startScrollTracking(h);
47
- }
48
- startScrollTracking(e) {
49
- let t = e.parentElement;
50
- for (; t;) {
51
- let e = getComputedStyle(t);
52
- (u.has(e.overflowX) || u.has(e.overflowY)) && this.scrollPositions.set(t, {
53
- x: t.scrollLeft,
54
- y: t.scrollTop
55
- }), t = t.parentElement;
56
- }
57
- this.scrollPositions.set(window, {
58
- x: window.scrollX,
59
- y: window.scrollY
60
- }), window.addEventListener("scroll", this.onElementScroll, { capture: !0 }), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
61
- window.removeEventListener("scroll", this.onElementScroll, { capture: !0 }), window.removeEventListener("scroll", this.onWindowScroll);
62
- };
63
- }
64
- handleScroll(e) {
65
- let t = this.scrollPositions.get(e);
66
- if (!t) return;
67
- let n = e === window, r = n ? {
68
- x: window.scrollX,
69
- y: window.scrollY
70
- } : {
71
- x: e.scrollLeft,
72
- y: e.scrollTop
73
- }, a = {
74
- x: r.x - t.x,
75
- y: r.y - t.y
76
- };
77
- a.x === 0 && a.y === 0 || (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += a.x, this.lastMoveEventInfo.point.y += a.y) : this.history.length > 0 && (this.history[0].x -= a.x, this.history[0].y -= a.y), this.scrollPositions.set(e, r), i.update(this.updatePoint, !0));
78
- }
79
- updateHandlers(e) {
80
- this.handlers = e;
81
- }
82
- end() {
83
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), r(this.updatePoint);
84
- }
85
- };
86
- function f(e, t) {
87
- return t ? { point: t(e.point) } : e;
88
- }
89
- function p(e, t) {
90
- return {
91
- x: e.x - t.x,
92
- y: e.y - t.y
93
- };
94
- }
95
- function m({ point: e }, t) {
96
- return {
97
- point: e,
98
- delta: p(e, g(t)),
99
- offset: p(e, h(t)),
100
- velocity: _(t, .1)
101
- };
102
- }
103
- function h(e) {
104
- return e[0];
105
- }
106
- function g(e) {
107
- return e[e.length - 1];
108
- }
109
- function _(e, r) {
110
- if (e.length < 2) return {
111
- x: 0,
112
- y: 0
113
- };
114
- let i = e.length - 1, a = null, o = g(e);
115
- for (; i >= 0 && (a = e[i], !(o.timestamp - a.timestamp > n(r)));) i--;
116
- if (!a) return {
117
- x: 0,
118
- y: 0
119
- };
120
- a === e[0] && e.length > 2 && o.timestamp - a.timestamp > n(r) * 2 && (a = e[1]);
121
- let s = t(o.timestamp - a.timestamp);
122
- if (s === 0) return {
123
- x: 0,
124
- y: 0
125
- };
126
- let c = {
127
- x: (o.x - a.x) / s,
128
- y: (o.y - a.y) / s
129
- };
130
- return c.x === Infinity && (c.x = 0), c.y === Infinity && (c.y = 0), c;
131
- }
132
- //#endregion
133
- export { d as PanSession };
134
-
135
- //# sourceMappingURL=PanSession.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PanSession.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs"],"sourcesContent":["import { frameData, frame, isPrimaryPointer, cancelFrame } from 'motion-dom';\nimport { pipe, secondsToMilliseconds, millisecondsToSeconds } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { extractEventInfo } from '../../events/event-info.mjs';\nimport { distance2D } from '../../utils/distance.mjs';\n\nconst overflowStyles = /*#__PURE__*/ new Set([\"auto\", \"scroll\"]);\n/**\n * @internal\n */\nclass PanSession {\n constructor(event, handlers, { transformPagePoint, contextWindow = window, dragSnapToOrigin = false, distanceThreshold = 3, element, } = {}) {\n /**\n * @internal\n */\n this.startEvent = null;\n /**\n * @internal\n */\n this.lastMoveEvent = null;\n /**\n * @internal\n */\n this.lastMoveEventInfo = null;\n /**\n * Raw (untransformed) event info, re-transformed each frame\n * so transformPagePoint sees the current parent matrix.\n * @internal\n */\n this.lastRawMoveEventInfo = null;\n /**\n * @internal\n */\n this.handlers = {};\n /**\n * @internal\n */\n this.contextWindow = window;\n /**\n * Scroll positions of scrollable ancestors and window.\n * @internal\n */\n this.scrollPositions = new Map();\n /**\n * Cleanup function for scroll listeners.\n * @internal\n */\n this.removeScrollListeners = null;\n this.onElementScroll = (event) => {\n this.handleScroll(event.target);\n };\n this.onWindowScroll = () => {\n this.handleScroll(window);\n };\n this.updatePoint = () => {\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n // Re-transform raw point through current transformPagePoint so\n // animated parent transforms (e.g. rotation) are picked up each frame\n if (this.lastRawMoveEventInfo) {\n this.lastMoveEventInfo = transformPoint(this.lastRawMoveEventInfo, this.transformPagePoint);\n }\n const info = getPanInfo(this.lastMoveEventInfo, this.history);\n const isPanStarted = this.startEvent !== null;\n // Only start panning if the offset is larger than 3 pixels. If we make it\n // any larger than this we'll want to reset the pointer history\n // on the first update to avoid visual snapping to the cursor.\n const isDistancePastThreshold = distance2D(info.offset, { x: 0, y: 0 }) >= this.distanceThreshold;\n if (!isPanStarted && !isDistancePastThreshold)\n return;\n const { point } = info;\n const { timestamp } = frameData;\n this.history.push({ ...point, timestamp });\n const { onStart, onMove } = this.handlers;\n if (!isPanStarted) {\n onStart && onStart(this.lastMoveEvent, info);\n this.startEvent = this.lastMoveEvent;\n }\n onMove && onMove(this.lastMoveEvent, info);\n };\n this.handlePointerMove = (event, info) => {\n this.lastMoveEvent = event;\n this.lastRawMoveEventInfo = info;\n this.lastMoveEventInfo = transformPoint(info, this.transformPagePoint);\n // Throttle mouse move event to once per frame\n frame.update(this.updatePoint, true);\n };\n this.handlePointerUp = (event, info) => {\n this.end();\n const { onEnd, onSessionEnd, resumeAnimation } = this.handlers;\n // Resume animation if dragSnapToOrigin is set OR if no drag started (user just clicked)\n // This ensures constraint animations continue when interrupted by a click\n if (this.dragSnapToOrigin || !this.startEvent) {\n resumeAnimation && resumeAnimation();\n }\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const panInfo = getPanInfo(event.type === \"pointercancel\"\n ? this.lastMoveEventInfo\n : transformPoint(info, this.transformPagePoint), this.history);\n if (this.startEvent && onEnd) {\n onEnd(event, panInfo);\n }\n onSessionEnd && onSessionEnd(event, panInfo);\n };\n // If we have more than one touch, don't start detecting this gesture\n if (!isPrimaryPointer(event))\n return;\n this.dragSnapToOrigin = dragSnapToOrigin;\n this.handlers = handlers;\n this.transformPagePoint = transformPagePoint;\n this.distanceThreshold = distanceThreshold;\n this.contextWindow = contextWindow || window;\n const info = extractEventInfo(event);\n const initialInfo = transformPoint(info, this.transformPagePoint);\n const { point } = initialInfo;\n const { timestamp } = frameData;\n this.history = [{ ...point, timestamp }];\n const { onSessionStart } = handlers;\n onSessionStart &&\n onSessionStart(event, getPanInfo(initialInfo, this.history));\n this.removeListeners = pipe(addPointerEvent(this.contextWindow, \"pointermove\", this.handlePointerMove), addPointerEvent(this.contextWindow, \"pointerup\", this.handlePointerUp), addPointerEvent(this.contextWindow, \"pointercancel\", this.handlePointerUp));\n // Start scroll tracking if element provided\n if (element) {\n this.startScrollTracking(element);\n }\n }\n /**\n * Start tracking scroll on ancestors and window.\n */\n startScrollTracking(element) {\n // Store initial scroll positions for scrollable ancestors\n let current = element.parentElement;\n while (current) {\n const style = getComputedStyle(current);\n if (overflowStyles.has(style.overflowX) ||\n overflowStyles.has(style.overflowY)) {\n this.scrollPositions.set(current, {\n x: current.scrollLeft,\n y: current.scrollTop,\n });\n }\n current = current.parentElement;\n }\n // Track window scroll\n this.scrollPositions.set(window, {\n x: window.scrollX,\n y: window.scrollY,\n });\n // Capture listener catches element scroll events as they bubble\n window.addEventListener(\"scroll\", this.onElementScroll, {\n capture: true,\n });\n // Direct window scroll listener (window scroll doesn't bubble)\n window.addEventListener(\"scroll\", this.onWindowScroll);\n this.removeScrollListeners = () => {\n window.removeEventListener(\"scroll\", this.onElementScroll, {\n capture: true,\n });\n window.removeEventListener(\"scroll\", this.onWindowScroll);\n };\n }\n /**\n * Handle scroll compensation during drag.\n *\n * For element scroll: adjusts history origin since pageX/pageY doesn't change.\n * For window scroll: adjusts lastMoveEventInfo since pageX/pageY would change.\n */\n handleScroll(target) {\n const initial = this.scrollPositions.get(target);\n if (!initial)\n return;\n const isWindow = target === window;\n const current = isWindow\n ? { x: window.scrollX, y: window.scrollY }\n : {\n x: target.scrollLeft,\n y: target.scrollTop,\n };\n const delta = { x: current.x - initial.x, y: current.y - initial.y };\n if (delta.x === 0 && delta.y === 0)\n return;\n if (isWindow) {\n // Window scroll: pageX/pageY changes, so update lastMoveEventInfo\n if (this.lastMoveEventInfo) {\n this.lastMoveEventInfo.point.x += delta.x;\n this.lastMoveEventInfo.point.y += delta.y;\n }\n }\n else {\n // Element scroll: pageX/pageY unchanged, so adjust history origin\n if (this.history.length > 0) {\n this.history[0].x -= delta.x;\n this.history[0].y -= delta.y;\n }\n }\n this.scrollPositions.set(target, current);\n frame.update(this.updatePoint, true);\n }\n updateHandlers(handlers) {\n this.handlers = handlers;\n }\n end() {\n this.removeListeners && this.removeListeners();\n this.removeScrollListeners && this.removeScrollListeners();\n this.scrollPositions.clear();\n cancelFrame(this.updatePoint);\n }\n}\nfunction transformPoint(info, transformPagePoint) {\n return transformPagePoint ? { point: transformPagePoint(info.point) } : info;\n}\nfunction subtractPoint(a, b) {\n return { x: a.x - b.x, y: a.y - b.y };\n}\nfunction getPanInfo({ point }, history) {\n return {\n point,\n delta: subtractPoint(point, lastDevicePoint(history)),\n offset: subtractPoint(point, startDevicePoint(history)),\n velocity: getVelocity(history, 0.1),\n };\n}\nfunction startDevicePoint(history) {\n return history[0];\n}\nfunction lastDevicePoint(history) {\n return history[history.length - 1];\n}\nfunction getVelocity(history, timeDelta) {\n if (history.length < 2) {\n return { x: 0, y: 0 };\n }\n let i = history.length - 1;\n let timestampedPoint = null;\n const lastPoint = lastDevicePoint(history);\n while (i >= 0) {\n timestampedPoint = history[i];\n if (lastPoint.timestamp - timestampedPoint.timestamp >\n secondsToMilliseconds(timeDelta)) {\n break;\n }\n i--;\n }\n if (!timestampedPoint) {\n return { x: 0, y: 0 };\n }\n /**\n * If the selected point is the pointer-down origin (history[0]),\n * there are better movement points available, and the time gap\n * is suspiciously large (>2x timeDelta), use the next point instead.\n * This prevents stale pointer-down points from diluting velocity\n * in hold-then-flick gestures.\n */\n if (timestampedPoint === history[0] &&\n history.length > 2 &&\n lastPoint.timestamp - timestampedPoint.timestamp >\n secondsToMilliseconds(timeDelta) * 2) {\n timestampedPoint = history[1];\n }\n const time = millisecondsToSeconds(lastPoint.timestamp - timestampedPoint.timestamp);\n if (time === 0) {\n return { x: 0, y: 0 };\n }\n const currentVelocity = {\n x: (lastPoint.x - timestampedPoint.x) / time,\n y: (lastPoint.y - timestampedPoint.y) / time,\n };\n if (currentVelocity.x === Infinity) {\n currentVelocity.x = 0;\n }\n if (currentVelocity.y === Infinity) {\n currentVelocity.y = 0;\n }\n return currentVelocity;\n}\n\nexport { PanSession };\n//# sourceMappingURL=PanSession.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAMA,IAAM,oBAA+B,IAAI,IAAI,CAAC,QAAQ,SAAS,CAAC,EAI1D,IAAN,MAAiB;CACb,YAAY,GAAO,GAAU,EAAE,uBAAoB,mBAAgB,QAAQ,sBAAmB,IAAO,uBAAoB,GAAG,eAAa,EAAE,EAAE;AA+FzI,MA3FA,KAAK,aAAa,MAIlB,KAAK,gBAAgB,MAIrB,KAAK,oBAAoB,MAMzB,KAAK,uBAAuB,MAI5B,KAAK,WAAW,EAAE,EAIlB,KAAK,gBAAgB,QAKrB,KAAK,kCAAkB,IAAI,KAAK,EAKhC,KAAK,wBAAwB,MAC7B,KAAK,mBAAmB,MAAU;AAC9B,QAAK,aAAa,EAAM,OAAO;KAEnC,KAAK,uBAAuB;AACxB,QAAK,aAAa,OAAO;KAE7B,KAAK,oBAAoB;AACrB,OAAI,EAAE,KAAK,iBAAiB,KAAK,mBAC7B;AAGJ,GAAI,KAAK,yBACL,KAAK,oBAAoB,EAAe,KAAK,sBAAsB,KAAK,mBAAmB;GAE/F,IAAM,IAAO,EAAW,KAAK,mBAAmB,KAAK,QAAQ,EACvD,IAAe,KAAK,eAAe,MAInC,IAA0B,EAAW,EAAK,QAAQ;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EAAQ,MAC7B,EAAQ,SAAS,KACjB,EAAU,YAAY,EAAiB,YACnC,EAAsB,EAAU,GAAG,MACvC,IAAmB,EAAQ;CAE/B,IAAM,IAAO,EAAsB,EAAU,YAAY,EAAiB,UAAU;AACpF,KAAI,MAAS,EACT,QAAO;EAAE,GAAG;EAAG,GAAG;EAAG;CAEzB,IAAM,IAAkB;EACpB,IAAI,EAAU,IAAI,EAAiB,KAAK;EACxC,IAAI,EAAU,IAAI,EAAiB,KAAK;EAC3C;AAOD,QANI,EAAgB,MAAM,aACtB,EAAgB,IAAI,IAEpB,EAAgB,MAAM,aACtB,EAAgB,IAAI,IAEjB"}
@@ -1,44 +0,0 @@
1
- import { noop as e } from "../../../../../motion-utils/dist/es/noop.js";
2
- import { frame as t } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
3
- import { Feature as n } from "../../../../../motion-dom/dist/es/render/Feature.js";
4
- import { addPointerEvent as r } from "../../events/add-pointer-event.js";
5
- import { getContextWindow as i } from "../../utils/get-context-window.js";
6
- import { PanSession as a } from "./PanSession.js";
7
- //#region node_modules/framer-motion/dist/es/gestures/pan/index.mjs
8
- var o = (e) => (n, r) => {
9
- e && t.update(() => e(n, r), !1, !0);
10
- }, s = class extends n {
11
- constructor() {
12
- super(...arguments), this.removePointerDownListener = e;
13
- }
14
- onPointerDown(e) {
15
- this.session = new a(e, this.createPanHandlers(), {
16
- transformPagePoint: this.node.getTransformPagePoint(),
17
- contextWindow: i(this.node)
18
- });
19
- }
20
- createPanHandlers() {
21
- let { onPanSessionStart: e, onPanStart: n, onPan: r, onPanEnd: i } = this.node.getProps();
22
- return {
23
- onSessionStart: o(e),
24
- onStart: o(n),
25
- onMove: o(r),
26
- onEnd: (e, n) => {
27
- delete this.session, i && t.postRender(() => i(e, n));
28
- }
29
- };
30
- }
31
- mount() {
32
- this.removePointerDownListener = r(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
33
- }
34
- update() {
35
- this.session && this.session.updateHandlers(this.createPanHandlers());
36
- }
37
- unmount() {
38
- this.removePointerDownListener(), this.session && this.session.end();
39
- }
40
- };
41
- //#endregion
42
- export { s as PanGesture };
43
-
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/pan/index.mjs"],"sourcesContent":["import { Feature, frame } from 'motion-dom';\nimport { noop } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { getContextWindow } from '../../utils/get-context-window.mjs';\nimport { PanSession } from './PanSession.mjs';\n\nconst asyncHandler = (handler) => (event, info) => {\n if (handler) {\n frame.update(() => handler(event, info), false, true);\n }\n};\nclass PanGesture extends Feature {\n constructor() {\n super(...arguments);\n this.removePointerDownListener = noop;\n }\n onPointerDown(pointerDownEvent) {\n this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), {\n transformPagePoint: this.node.getTransformPagePoint(),\n contextWindow: getContextWindow(this.node),\n });\n }\n createPanHandlers() {\n const { onPanSessionStart, onPanStart, onPan, onPanEnd } = this.node.getProps();\n return {\n onSessionStart: asyncHandler(onPanSessionStart),\n onStart: asyncHandler(onPanStart),\n onMove: asyncHandler(onPan),\n onEnd: (event, info) => {\n delete this.session;\n if (onPanEnd) {\n frame.postRender(() => onPanEnd(event, info));\n }\n },\n };\n }\n mount() {\n this.removePointerDownListener = addPointerEvent(this.node.current, \"pointerdown\", (event) => this.onPointerDown(event));\n }\n update() {\n this.session && this.session.updateHandlers(this.createPanHandlers());\n }\n unmount() {\n this.removePointerDownListener();\n this.session && this.session.end();\n }\n}\n\nexport { PanGesture };\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAMA,IAAM,KAAgB,OAAa,GAAO,MAAS;AAC/C,CAAI,KACA,EAAM,aAAa,EAAQ,GAAO,EAAK,EAAE,IAAO,GAAK;GAGvD,IAAN,cAAyB,EAAQ;CAC7B,cAAc;AAEV,EADA,MAAM,GAAG,UAAU,EACnB,KAAK,4BAA4B;;CAErC,cAAc,GAAkB;AAC5B,OAAK,UAAU,IAAI,EAAW,GAAkB,KAAK,mBAAmB,EAAE;GACtE,oBAAoB,KAAK,KAAK,uBAAuB;GACrD,eAAe,EAAiB,KAAK,KAAK;GAC7C,CAAC;;CAEN,oBAAoB;EAChB,IAAM,EAAE,sBAAmB,eAAY,UAAO,gBAAa,KAAK,KAAK,UAAU;AAC/E,SAAO;GACH,gBAAgB,EAAa,EAAkB;GAC/C,SAAS,EAAa,EAAW;GACjC,QAAQ,EAAa,EAAM;GAC3B,QAAQ,GAAO,MAAS;AAEpB,IADA,OAAO,KAAK,SACR,KACA,EAAM,iBAAiB,EAAS,GAAO,EAAK,CAAC;;GAGxD;;CAEL,QAAQ;AACJ,OAAK,4BAA4B,EAAgB,KAAK,KAAK,SAAS,gBAAgB,MAAU,KAAK,cAAc,EAAM,CAAC;;CAE5H,SAAS;AACL,OAAK,WAAW,KAAK,QAAQ,eAAe,KAAK,mBAAmB,CAAC;;CAEzE,UAAU;AAEN,EADA,KAAK,2BAA2B,EAChC,KAAK,WAAW,KAAK,QAAQ,KAAK"}
@@ -1,28 +0,0 @@
1
- import { frame as e } from "../../../../motion-dom/dist/es/frameloop/frame.js";
2
- import { press as t } from "../../../../motion-dom/dist/es/gestures/press/index.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/press.mjs
6
- function i(t, n, i) {
7
- let { props: a } = t;
8
- if (t.current instanceof HTMLButtonElement && t.current.disabled) return;
9
- t.animationState && a.whileTap && t.animationState.setActive("whileTap", i === "Start");
10
- let o = a["onTap" + (i === "End" ? "" : i)];
11
- o && e.postRender(() => o(n, r(n)));
12
- }
13
- var a = class extends n {
14
- mount() {
15
- let { current: e } = this.node;
16
- if (!e) return;
17
- let { globalTapTarget: n, propagate: r } = this.node.props;
18
- this.unmount = t(e, (e, t) => (i(this.node, t, "Start"), (e, { success: t }) => i(this.node, e, t ? "End" : "Cancel")), {
19
- useGlobalTarget: n,
20
- stopPropagation: r?.tap === !1
21
- });
22
- }
23
- unmount() {}
24
- };
25
- //#endregion
26
- export { a as PressGesture };
27
-
28
- //# sourceMappingURL=press.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"press.js","names":[],"sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/press.mjs"],"sourcesContent":["import { Feature, press, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\n\nfunction handlePressEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.current instanceof HTMLButtonElement && node.current.disabled) {\n return;\n }\n if (node.animationState && props.whileTap) {\n node.animationState.setActive(\"whileTap\", lifecycle === \"Start\");\n }\n const eventName = (\"onTap\" + (lifecycle === \"End\" ? \"\" : lifecycle));\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass PressGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n const { globalTapTarget, propagate } = this.node.props;\n this.unmount = press(current, (_element, startEvent) => {\n handlePressEvent(this.node, startEvent, \"Start\");\n return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? \"End\" : \"Cancel\");\n }, {\n useGlobalTarget: globalTapTarget,\n stopPropagation: propagate?.tap === false,\n });\n }\n unmount() { }\n}\n\nexport { PressGesture };\n//# sourceMappingURL=press.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAGA,SAAS,EAAiB,GAAM,GAAO,GAAW;CAC9C,IAAM,EAAE,aAAU;AAClB,KAAI,EAAK,mBAAmB,qBAAqB,EAAK,QAAQ,SAC1D;AAEJ,CAAI,EAAK,kBAAkB,EAAM,YAC7B,EAAK,eAAe,UAAU,YAAY,MAAc,QAAQ;CAGpE,IAAM,IAAW,EADE,WAAW,MAAc,QAAQ,KAAK;AAEzD,CAAI,KACA,EAAM,iBAAiB,EAAS,GAAO,EAAiB,EAAM,CAAC,CAAC;;AAGxE,IAAM,IAAN,cAA2B,EAAQ;CAC/B,QAAQ;EACJ,IAAM,EAAE,eAAY,KAAK;AACzB,MAAI,CAAC,EACD;EACJ,IAAM,EAAE,oBAAiB,iBAAc,KAAK,KAAK;AACjD,OAAK,UAAU,EAAM,IAAU,GAAU,OACrC,EAAiB,KAAK,MAAM,GAAY,QAAQ,GACxC,GAAU,EAAE,iBAAc,EAAiB,KAAK,MAAM,GAAU,IAAU,QAAQ,SAAS,GACpG;GACC,iBAAiB;GACjB,iBAAiB,GAAW,QAAQ;GACvC,CAAC;;CAEN,UAAU"}
@@ -1,41 +0,0 @@
1
- import { resolveVariant as e } from "../../../../../../motion-dom/dist/es/render/utils/resolve-dynamic-variants.js";
2
- import { Feature as t } from "../../../../../../motion-dom/dist/es/render/Feature.js";
3
- //#region node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs
4
- var n = 0, r = class extends t {
5
- constructor() {
6
- super(...arguments), this.id = n++, this.isExitComplete = !1;
7
- }
8
- update() {
9
- if (!this.node.presenceContext) return;
10
- let { isPresent: t, onExitComplete: n } = this.node.presenceContext, { isPresent: r } = this.node.prevPresenceContext || {};
11
- if (!this.node.animationState || t === r) return;
12
- if (t && r === !1) {
13
- if (this.isExitComplete) {
14
- let { initial: t, custom: n } = this.node.getProps();
15
- if (typeof t == "string") {
16
- let r = e(this.node, t, n);
17
- if (r) {
18
- let { transition: e, transitionEnd: t, ...n } = r;
19
- for (let e in n) this.node.getValue(e)?.jump(n[e]);
20
- }
21
- }
22
- this.node.animationState.reset(), this.node.animationState.animateChanges();
23
- } else this.node.animationState.setActive("exit", !1);
24
- this.isExitComplete = !1;
25
- return;
26
- }
27
- let i = this.node.animationState.setActive("exit", !t);
28
- n && !t && i.then(() => {
29
- this.isExitComplete = !0, n(this.id);
30
- });
31
- }
32
- mount() {
33
- let { register: e, onExitComplete: t } = this.node.presenceContext || {};
34
- t && t(this.id), e && (this.unmount = e(this.id));
35
- }
36
- unmount() {}
37
- };
38
- //#endregion
39
- export { r as ExitAnimationFeature };
40
-
41
- //# sourceMappingURL=exit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exit.js","names":[],"sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs"],"sourcesContent":["import { Feature, resolveVariant } from 'motion-dom';\n\nlet id = 0;\nclass ExitAnimationFeature extends Feature {\n constructor() {\n super(...arguments);\n this.id = id++;\n this.isExitComplete = false;\n }\n update() {\n if (!this.node.presenceContext)\n return;\n const { isPresent, onExitComplete } = this.node.presenceContext;\n const { isPresent: prevIsPresent } = this.node.prevPresenceContext || {};\n if (!this.node.animationState || isPresent === prevIsPresent) {\n return;\n }\n if (isPresent && prevIsPresent === false) {\n /**\n * When re-entering, if the exit animation already completed\n * (element is at rest), reset to initial values so the enter\n * animation replays from the correct position.\n */\n if (this.isExitComplete) {\n const { initial, custom } = this.node.getProps();\n if (typeof initial === \"string\") {\n const resolved = resolveVariant(this.node, initial, custom);\n if (resolved) {\n const { transition, transitionEnd, ...target } = resolved;\n for (const key in target) {\n this.node\n .getValue(key)\n ?.jump(target[key]);\n }\n }\n }\n this.node.animationState.reset();\n this.node.animationState.animateChanges();\n }\n else {\n this.node.animationState.setActive(\"exit\", false);\n }\n this.isExitComplete = false;\n return;\n }\n const exitAnimation = this.node.animationState.setActive(\"exit\", !isPresent);\n if (onExitComplete && !isPresent) {\n exitAnimation.then(() => {\n this.isExitComplete = true;\n onExitComplete(this.id);\n });\n }\n }\n mount() {\n const { register, onExitComplete } = this.node.presenceContext || {};\n if (onExitComplete) {\n onExitComplete(this.id);\n }\n if (register) {\n this.unmount = register(this.id);\n }\n }\n unmount() { }\n}\n\nexport { ExitAnimationFeature };\n//# sourceMappingURL=exit.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAI,IAAK,GACH,IAAN,cAAmC,EAAQ;CACvC,cAAc;AAGV,EAFA,MAAM,GAAG,UAAU,EACnB,KAAK,KAAK,KACV,KAAK,iBAAiB;;CAE1B,SAAS;AACL,MAAI,CAAC,KAAK,KAAK,gBACX;EACJ,IAAM,EAAE,cAAW,sBAAmB,KAAK,KAAK,iBAC1C,EAAE,WAAW,MAAkB,KAAK,KAAK,uBAAuB,EAAE;AACxE,MAAI,CAAC,KAAK,KAAK,kBAAkB,MAAc,EAC3C;AAEJ,MAAI,KAAa,MAAkB,IAAO;AAMtC,OAAI,KAAK,gBAAgB;IACrB,IAAM,EAAE,YAAS,cAAW,KAAK,KAAK,UAAU;AAChD,QAAI,OAAO,KAAY,UAAU;KAC7B,IAAM,IAAW,EAAe,KAAK,MAAM,GAAS,EAAO;AAC3D,SAAI,GAAU;MACV,IAAM,EAAE,eAAY,kBAAe,GAAG,MAAW;AACjD,WAAK,IAAM,KAAO,EACd,MAAK,KACA,SAAS,EAAI,EACZ,KAAK,EAAO,GAAK;;;AAKnC,IADA,KAAK,KAAK,eAAe,OAAO,EAChC,KAAK,KAAK,eAAe,gBAAgB;SAGzC,MAAK,KAAK,eAAe,UAAU,QAAQ,GAAM;AAErD,QAAK,iBAAiB;AACtB;;EAEJ,IAAM,IAAgB,KAAK,KAAK,eAAe,UAAU,QAAQ,CAAC,EAAU;AAC5E,EAAI,KAAkB,CAAC,KACnB,EAAc,WAAW;AAErB,GADA,KAAK,iBAAiB,IACtB,EAAe,KAAK,GAAG;IACzB;;CAGV,QAAQ;EACJ,IAAM,EAAE,aAAU,sBAAmB,KAAK,KAAK,mBAAmB,EAAE;AAIpE,EAHI,KACA,EAAe,KAAK,GAAG,EAEvB,MACA,KAAK,UAAU,EAAS,KAAK,GAAG;;CAGxC,UAAU"}
@@ -1,27 +0,0 @@
1
- import { isAnimationControls as e } from "../../../../../../motion-dom/dist/es/render/utils/is-animation-controls.js";
2
- import { Feature as t } from "../../../../../../motion-dom/dist/es/render/Feature.js";
3
- import { createAnimationState as n } from "../../../../../../motion-dom/dist/es/render/utils/animation-state.js";
4
- //#region node_modules/framer-motion/dist/es/motion/features/animation/index.mjs
5
- var r = class extends t {
6
- constructor(e) {
7
- super(e), e.animationState ||= n(e);
8
- }
9
- updateAnimationControlsSubscription() {
10
- let { animate: t } = this.node.getProps();
11
- e(t) && (this.unmountControls = t.subscribe(this.node));
12
- }
13
- mount() {
14
- this.updateAnimationControlsSubscription();
15
- }
16
- update() {
17
- let { animate: e } = this.node.getProps(), { animate: t } = this.node.prevProps || {};
18
- e !== t && this.updateAnimationControlsSubscription();
19
- }
20
- unmount() {
21
- this.node.animationState.reset(), this.unmountControls?.();
22
- }
23
- };
24
- //#endregion
25
- export { r as AnimationFeature };
26
-
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/animation/index.mjs"],"sourcesContent":["import { Feature, createAnimationState, isAnimationControls } from 'motion-dom';\n\nclass AnimationFeature extends Feature {\n /**\n * We dynamically generate the AnimationState manager as it contains a reference\n * to the underlying animation library. We only want to load that if we load this,\n * so people can optionally code split it out using the `m` component.\n */\n constructor(node) {\n super(node);\n node.animationState || (node.animationState = createAnimationState(node));\n }\n updateAnimationControlsSubscription() {\n const { animate } = this.node.getProps();\n if (isAnimationControls(animate)) {\n this.unmountControls = animate.subscribe(this.node);\n }\n }\n /**\n * Subscribe any provided AnimationControls to the component's VisualElement\n */\n mount() {\n this.updateAnimationControlsSubscription();\n }\n update() {\n const { animate } = this.node.getProps();\n const { animate: prevAnimate } = this.node.prevProps || {};\n if (animate !== prevAnimate) {\n this.updateAnimationControlsSubscription();\n }\n }\n unmount() {\n this.node.animationState.reset();\n this.unmountControls?.();\n }\n}\n\nexport { AnimationFeature };\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAEA,IAAM,IAAN,cAA+B,EAAQ;CAMnC,YAAY,GAAM;AAEd,EADA,MAAM,EAAK,EACX,AAAwB,EAAK,mBAAiB,EAAqB,EAAK;;CAE5E,sCAAsC;EAClC,IAAM,EAAE,eAAY,KAAK,KAAK,UAAU;AACxC,EAAI,EAAoB,EAAQ,KAC5B,KAAK,kBAAkB,EAAQ,UAAU,KAAK,KAAK;;CAM3D,QAAQ;AACJ,OAAK,qCAAqC;;CAE9C,SAAS;EACL,IAAM,EAAE,eAAY,KAAK,KAAK,UAAU,EAClC,EAAE,SAAS,MAAgB,KAAK,KAAK,aAAa,EAAE;AAC1D,EAAI,MAAY,KACZ,KAAK,qCAAqC;;CAGlD,UAAU;AAEN,EADA,KAAK,KAAK,eAAe,OAAO,EAChC,KAAK,mBAAmB"}
@@ -1,11 +0,0 @@
1
- import { AnimationFeature as e } from "./animation/index.js";
2
- import { ExitAnimationFeature as t } from "./animation/exit.js";
3
- //#region node_modules/framer-motion/dist/es/motion/features/animations.mjs
4
- var n = {
5
- animation: { Feature: e },
6
- exit: { Feature: t }
7
- };
8
- //#endregion
9
- export { n as animations };
10
-
11
- //# sourceMappingURL=animations.js.map