@nethesis/phone-island 1.0.12-dev.3 → 1.0.12-dev.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 (626) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/App.js.map +1 -1
  3. package/dist/_virtual/index6.js +1 -1
  4. package/dist/_virtual/index8.js +1 -1
  5. package/dist/components/CallView/index.js +1 -1
  6. package/dist/components/CallView/index.js.map +1 -1
  7. package/dist/components/RecorderView/Actions.js +1 -1
  8. package/dist/components/RecorderView/Actions.js.map +1 -1
  9. package/dist/components/RestAPI.js +1 -1
  10. package/dist/components/RestAPI.js.map +1 -1
  11. package/dist/components/SideView/hooks/useSideViewLogic.js +1 -1
  12. package/dist/components/SideView/hooks/useSideViewLogic.js.map +1 -1
  13. package/dist/components/VideoView/index.js +1 -1
  14. package/dist/components/VideoView/index.js.map +1 -1
  15. package/dist/events/PlayerEvents.js +1 -1
  16. package/dist/events/PlayerEvents.js.map +1 -1
  17. package/dist/lib/devices/devices.js +1 -1
  18. package/dist/lib/phone/call.js +1 -1
  19. package/dist/lib/phone/call.js.map +1 -1
  20. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.mjs.js +1 -7
  21. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.mjs.js.map +1 -1
  22. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js +1 -1
  23. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js.map +1 -1
  24. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +1 -1
  25. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.mjs.js +2 -0
  26. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.mjs.js.map +1 -0
  27. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js +2 -0
  28. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js.map +1 -0
  29. package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs.js +1 -1
  30. package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs.js.map +1 -1
  31. package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs.js +1 -1
  32. package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs.js.map +1 -1
  33. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js +2 -0
  34. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js.map +1 -0
  35. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js +2 -0
  36. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js.map +1 -0
  37. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js +2 -0
  38. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +1 -0
  39. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js.map +1 -0
  40. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs.js.map +1 -0
  41. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs.js.map +1 -0
  42. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js +2 -0
  43. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js.map +1 -0
  44. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs.js.map +1 -0
  45. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs.js.map +1 -0
  46. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js +2 -0
  47. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js.map +1 -0
  48. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +1 -1
  49. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +1 -1
  50. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +1 -1
  51. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +1 -1
  52. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +1 -1
  53. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +1 -1
  54. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js.map +1 -1
  55. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs.js.map +1 -1
  56. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs.js.map +1 -1
  57. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.mjs.js.map +1 -1
  58. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs.js.map +1 -1
  59. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs.js.map +1 -1
  60. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs.js.map +1 -1
  61. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs.js +1 -1
  62. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs.js.map +1 -1
  63. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.mjs.js.map +1 -1
  64. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs.js.map +1 -1
  65. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js.map +1 -0
  66. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js +1 -1
  67. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js.map +1 -1
  68. package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js.map +1 -1
  69. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +1 -1
  70. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +1 -1
  71. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js +1 -1
  72. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js.map +1 -1
  73. package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js +1 -1
  74. package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js.map +1 -1
  75. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +1 -1
  76. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +1 -1
  77. package/dist/node_modules/framer-motion/dist/es/gestures/focus.mjs.js +1 -1
  78. package/dist/node_modules/framer-motion/dist/es/gestures/focus.mjs.js.map +1 -1
  79. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js +1 -1
  80. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js.map +1 -1
  81. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +1 -1
  82. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +1 -1
  83. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js +1 -1
  84. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js.map +1 -1
  85. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +1 -1
  86. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +1 -1
  87. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.mjs.js.map +1 -0
  88. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js +1 -1
  89. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js.map +1 -1
  90. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs.js +1 -1
  91. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs.js.map +1 -1
  92. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.mjs.js.map +1 -1
  93. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.mjs.js +1 -1
  94. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.mjs.js.map +1 -1
  95. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.mjs.js +1 -1
  96. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.mjs.js.map +1 -1
  97. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.mjs.js.map +1 -1
  98. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js +1 -1
  99. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js.map +1 -1
  100. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.mjs.js +1 -1
  101. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.mjs.js.map +1 -1
  102. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.mjs.js +1 -1
  103. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.mjs.js.map +1 -1
  104. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js +1 -1
  105. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js.map +1 -1
  106. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js.map +1 -1
  107. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +1 -1
  108. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +1 -1
  109. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js +2 -0
  110. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js.map +1 -0
  111. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs.js.map +1 -1
  112. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs.js +1 -1
  113. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs.js.map +1 -1
  114. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js +1 -1
  115. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js.map +1 -1
  116. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js +1 -1
  117. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js.map +1 -1
  118. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js +1 -1
  119. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js.map +1 -1
  120. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs.js +2 -0
  121. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs.js.map +1 -0
  122. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js.map +1 -0
  123. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs.js.map +1 -0
  124. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js +2 -0
  125. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js.map +1 -0
  126. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js +2 -0
  127. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js.map +1 -0
  128. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js +2 -0
  129. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js.map +1 -0
  130. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.mjs.js.map +1 -0
  131. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs.js.map +1 -0
  132. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs.js +2 -0
  133. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs.js.map +1 -0
  134. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs.js.map +1 -0
  135. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js +2 -0
  136. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js.map +1 -0
  137. package/dist/node_modules/framer-motion/dist/es/projection/node/state.mjs.js.map +1 -0
  138. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.mjs.js +2 -0
  139. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.mjs.js.map +1 -0
  140. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs.js +2 -0
  141. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs.js.map +1 -0
  142. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js +2 -0
  143. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js.map +1 -0
  144. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs.js +2 -0
  145. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs.js.map +1 -0
  146. package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/styles/transform.mjs.js +1 -1
  147. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.mjs.js.map +1 -0
  148. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs.js.map +1 -0
  149. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js.map +1 -0
  150. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.mjs.js.map +1 -0
  151. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js +2 -0
  152. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js.map +1 -0
  153. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js +2 -0
  154. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js.map +1 -0
  155. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js +1 -1
  156. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js.map +1 -1
  157. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.mjs.js +2 -0
  158. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.mjs.js.map +1 -0
  159. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs.js +1 -1
  160. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs.js.map +1 -1
  161. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js +2 -0
  162. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js.map +1 -0
  163. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs.js +1 -1
  164. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs.js.map +1 -1
  165. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +1 -1
  166. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +1 -1
  167. package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/dom/utils/camel-to-dash.mjs.js +1 -1
  168. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs.js.map +1 -0
  169. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js +1 -1
  170. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js.map +1 -1
  171. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs.js.map +1 -1
  172. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs.js +2 -0
  173. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs.js.map +1 -0
  174. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js +2 -0
  175. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js.map +1 -0
  176. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.mjs.js +2 -0
  177. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.mjs.js.map +1 -0
  178. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js +1 -1
  179. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js.map +1 -1
  180. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs.js +2 -0
  181. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs.js.map +1 -0
  182. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs.js +2 -0
  183. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs.js.map +1 -0
  184. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs.js.map +1 -1
  185. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js +2 -0
  186. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js.map +1 -0
  187. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs.js +2 -0
  188. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs.js.map +1 -0
  189. package/dist/node_modules/framer-motion/dist/es/render/store.mjs.js.map +1 -0
  190. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs.js +2 -0
  191. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs.js.map +1 -0
  192. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs.js +2 -0
  193. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs.js.map +1 -0
  194. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs.js.map +1 -1
  195. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js +1 -1
  196. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js.map +1 -1
  197. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js +2 -0
  198. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js.map +1 -0
  199. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs.js.map +1 -0
  200. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs.js.map +1 -1
  201. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs.js.map +1 -0
  202. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js +2 -0
  203. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js.map +1 -0
  204. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs.js.map +1 -0
  205. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs.js +2 -0
  206. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs.js.map +1 -0
  207. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js +2 -0
  208. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js.map +1 -0
  209. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs.js.map +1 -0
  210. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs.js.map +1 -0
  211. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.mjs.js.map +1 -0
  212. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs.js +2 -0
  213. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs.js.map +1 -0
  214. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs.js.map +1 -0
  215. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs.js +2 -0
  216. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs.js.map +1 -0
  217. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs.js.map +1 -0
  218. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs.js.map +1 -0
  219. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.mjs.js +2 -0
  220. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.mjs.js.map +1 -0
  221. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs.js.map +1 -0
  222. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js +2 -0
  223. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js.map +1 -0
  224. package/dist/node_modules/framer-motion/dist/es/utils/distance.mjs.js.map +1 -1
  225. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js.map +1 -1
  226. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.mjs.js.map +1 -1
  227. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs.js.map +1 -1
  228. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs.js +2 -0
  229. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs.js.map +1 -0
  230. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs.js.map +1 -0
  231. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs.js.map +1 -0
  232. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.mjs.js.map +1 -1
  233. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs.js.map +1 -1
  234. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.mjs.js.map +1 -0
  235. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs.js.map +1 -0
  236. package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs.js.map +1 -0
  237. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs.js.map +1 -0
  238. package/dist/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js +1 -1
  239. package/dist/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js.map +1 -1
  240. package/dist/node_modules/mic-check/lib/index.js +1 -1
  241. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +1 -1
  242. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +1 -1
  243. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +1 -1
  244. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +1 -1
  245. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +1 -1
  246. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +1 -1
  247. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js +1 -1
  248. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js.map +1 -1
  249. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js +2 -0
  250. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js.map +1 -0
  251. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +1 -1
  252. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +1 -1
  253. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +1 -1
  254. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs.js +2 -0
  255. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs.js.map +1 -0
  256. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js +2 -0
  257. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js.map +1 -0
  258. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js +2 -0
  259. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js.map +1 -0
  260. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js.map +1 -1
  261. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +1 -1
  262. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs.js.map +1 -1
  263. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js +1 -1
  264. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js.map +1 -1
  265. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +1 -1
  266. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +1 -1
  267. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +1 -1
  268. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +1 -1
  269. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js.map +1 -1
  270. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs.js.map +1 -1
  271. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs.js.map +1 -1
  272. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs.js.map +1 -1
  273. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs.js.map +1 -1
  274. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs.js.map +1 -1
  275. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js.map +1 -1
  276. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +1 -1
  277. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +1 -1
  278. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js +1 -1
  279. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js.map +1 -1
  280. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js +1 -1
  281. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js.map +1 -1
  282. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js +1 -1
  283. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js.map +1 -1
  284. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs.js +1 -1
  285. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs.js.map +1 -1
  286. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs.js.map +1 -1
  287. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs.js +1 -1
  288. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs.js.map +1 -1
  289. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs.js +1 -1
  290. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs.js.map +1 -1
  291. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js.map +1 -1
  292. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs.js.map +1 -1
  293. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs.js.map +1 -1
  294. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js.map +1 -1
  295. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js +1 -1
  296. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js.map +1 -1
  297. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js.map +1 -1
  298. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js +1 -1
  299. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js.map +1 -1
  300. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs.js.map +1 -1
  301. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +1 -1
  302. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +1 -1
  303. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js.map +1 -1
  304. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.mjs.js.map +1 -1
  305. package/dist/node_modules/motion-dom/dist/es/frameloop/order.mjs.js.map +1 -1
  306. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +1 -1
  307. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +1 -1
  308. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js.map +1 -1
  309. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs.js.map +1 -1
  310. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs.js.map +1 -1
  311. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +1 -1
  312. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +1 -1
  313. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +1 -1
  314. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +1 -1
  315. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs.js +1 -1
  316. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs.js.map +1 -1
  317. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js.map +1 -1
  318. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs.js.map +1 -1
  319. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs.js.map +1 -1
  320. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs.js.map +1 -1
  321. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js.map +1 -1
  322. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs.js.map +1 -1
  323. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js +1 -1
  324. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js.map +1 -1
  325. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.mjs.js.map +1 -1
  326. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs.js.map +1 -1
  327. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js +1 -1
  328. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js.map +1 -1
  329. package/dist/node_modules/motion-dom/dist/es/stats/buffer.mjs.js.map +1 -1
  330. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js +1 -1
  331. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js.map +1 -1
  332. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js +1 -1
  333. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js.map +1 -1
  334. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.mjs.js +1 -1
  335. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.mjs.js.map +1 -1
  336. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs.js.map +1 -1
  337. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js.map +1 -1
  338. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.mjs.js.map +1 -1
  339. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.mjs.js.map +1 -1
  340. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js +1 -1
  341. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js.map +1 -1
  342. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.mjs.js.map +1 -1
  343. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs.js.map +1 -1
  344. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.mjs.js.map +1 -1
  345. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs.js +1 -1
  346. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs.js.map +1 -1
  347. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +1 -1
  348. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +1 -1
  349. package/dist/node_modules/motion-dom/dist/es/value/types/auto.mjs.js.map +1 -1
  350. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.mjs.js.map +1 -1
  351. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js.map +1 -1
  352. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js.map +1 -1
  353. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.mjs.js +1 -1
  354. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.mjs.js.map +1 -1
  355. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js.map +1 -1
  356. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.mjs.js.map +1 -1
  357. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs.js.map +1 -1
  358. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js +1 -1
  359. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js.map +1 -1
  360. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.mjs.js.map +1 -1
  361. package/dist/node_modules/motion-dom/dist/es/value/types/int.mjs.js.map +1 -1
  362. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs.js +1 -1
  363. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs.js.map +1 -1
  364. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.mjs.js +1 -1
  365. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.mjs.js.map +1 -1
  366. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs.js +1 -1
  367. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs.js.map +1 -1
  368. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs.js.map +1 -1
  369. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.mjs.js.map +1 -1
  370. package/dist/node_modules/motion-dom/dist/es/value/types/test.mjs.js.map +1 -1
  371. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs.js +1 -1
  372. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs.js.map +1 -1
  373. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs.js.map +1 -1
  374. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js.map +1 -1
  375. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs.js.map +1 -1
  376. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs.js.map +1 -1
  377. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs.js.map +1 -1
  378. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs.js.map +1 -1
  379. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs.js.map +1 -1
  380. package/dist/node_modules/motion-utils/dist/es/array.mjs.js.map +1 -1
  381. package/dist/node_modules/motion-utils/dist/es/clamp.mjs.js.map +1 -1
  382. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.mjs.js +1 -1
  383. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.mjs.js.map +1 -1
  384. package/dist/node_modules/motion-utils/dist/es/easing/back.mjs.js.map +1 -1
  385. package/dist/node_modules/motion-utils/dist/es/easing/circ.mjs.js.map +1 -1
  386. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js.map +1 -1
  387. package/dist/node_modules/motion-utils/dist/es/easing/ease.mjs.js.map +1 -1
  388. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs.js.map +1 -1
  389. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs.js.map +1 -1
  390. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs.js.map +1 -1
  391. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs.js.map +1 -1
  392. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.mjs.js +1 -1
  393. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.mjs.js.map +1 -1
  394. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js +1 -1
  395. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js.map +1 -1
  396. package/dist/node_modules/motion-utils/dist/es/global-config.mjs.js.map +1 -1
  397. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.mjs.js.map +1 -1
  398. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.mjs.js.map +1 -1
  399. package/dist/node_modules/motion-utils/dist/es/memo.mjs.js.map +1 -1
  400. package/dist/node_modules/motion-utils/dist/es/noop.mjs.js.map +1 -1
  401. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js +1 -1
  402. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js.map +1 -1
  403. package/dist/node_modules/motion-utils/dist/es/progress.mjs.js +1 -1
  404. package/dist/node_modules/motion-utils/dist/es/progress.mjs.js.map +1 -1
  405. package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js.map +1 -1
  406. package/dist/node_modules/motion-utils/dist/es/time-conversion.mjs.js.map +1 -1
  407. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.mjs.js +1 -1
  408. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.mjs.js.map +1 -1
  409. package/dist/node_modules/motion-utils/dist/es/warn-once.mjs.js +1 -1
  410. package/dist/node_modules/motion-utils/dist/es/warn-once.mjs.js.map +1 -1
  411. package/dist/node_modules/prop-types/index.js +1 -1
  412. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  413. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1 -1
  414. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
  415. package/dist/node_modules/react-moment/dist/index.js +1 -11
  416. package/dist/node_modules/react-moment/dist/index.js.map +1 -1
  417. package/dist/node_modules/react-redux/es/components/Context.js +1 -1
  418. package/dist/node_modules/react-redux/es/components/Context.js.map +1 -1
  419. package/dist/node_modules/react-redux/es/components/Provider.js +1 -1
  420. package/dist/node_modules/react-redux/es/components/Provider.js.map +1 -1
  421. package/dist/node_modules/react-redux/es/hooks/useReduxContext.js +1 -1
  422. package/dist/node_modules/react-redux/es/hooks/useReduxContext.js.map +1 -1
  423. package/dist/node_modules/react-redux/es/hooks/useSelector.js +1 -1
  424. package/dist/node_modules/react-redux/es/hooks/useSelector.js.map +1 -1
  425. package/dist/node_modules/react-redux/es/hooks/useStore.js +1 -1
  426. package/dist/node_modules/react-redux/es/hooks/useStore.js.map +1 -1
  427. package/dist/node_modules/react-redux/es/index.js +1 -1
  428. package/dist/node_modules/react-redux/es/index.js.map +1 -1
  429. package/dist/node_modules/react-redux/es/utils/Subscription.js +1 -1
  430. package/dist/node_modules/react-redux/es/utils/Subscription.js.map +1 -1
  431. package/dist/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js +1 -1
  432. package/dist/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js.map +1 -1
  433. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js +1 -1
  434. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js.map +1 -1
  435. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js +1 -1
  436. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js.map +1 -1
  437. package/dist/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js +1 -1
  438. package/dist/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js.map +1 -1
  439. package/dist/node_modules/webrtc-adapter/src/js/common_shim.js +1 -1
  440. package/dist/node_modules/webrtc-adapter/src/js/common_shim.js.map +1 -1
  441. package/dist/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js +1 -1
  442. package/dist/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js.map +1 -1
  443. package/dist/node_modules/webrtc-adapter/src/js/firefox/getdisplaymedia.js +1 -1
  444. package/dist/node_modules/webrtc-adapter/src/js/firefox/getdisplaymedia.js.map +1 -1
  445. package/dist/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js +1 -1
  446. package/dist/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js.map +1 -1
  447. package/dist/node_modules/webrtc-adapter/src/js/utils.js +1 -1
  448. package/dist/node_modules/webrtc-adapter/src/js/utils.js.map +1 -1
  449. package/dist/package.json.js +1 -1
  450. package/package.json +1 -1
  451. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs.js +0 -2
  452. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs.js.map +0 -1
  453. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs.js +0 -2
  454. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs.js.map +0 -1
  455. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.mjs.js +0 -2
  456. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.mjs.js.map +0 -1
  457. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs.js +0 -2
  458. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs.js.map +0 -1
  459. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs.js +0 -2
  460. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs.js.map +0 -1
  461. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js +0 -2
  462. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js.map +0 -1
  463. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js +0 -2
  464. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js.map +0 -1
  465. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js +0 -2
  466. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js.map +0 -1
  467. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js +0 -2
  468. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js.map +0 -1
  469. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js +0 -2
  470. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +0 -1
  471. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs.js.map +0 -1
  472. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs.js.map +0 -1
  473. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs.js.map +0 -1
  474. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs.js +0 -2
  475. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs.js.map +0 -1
  476. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs.js +0 -2
  477. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs.js.map +0 -1
  478. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs.js +0 -2
  479. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs.js.map +0 -1
  480. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs.js +0 -2
  481. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs.js.map +0 -1
  482. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs.js +0 -2
  483. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs.js.map +0 -1
  484. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs.js +0 -2
  485. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs.js.map +0 -1
  486. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.mjs.js +0 -2
  487. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.mjs.js.map +0 -1
  488. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.mjs.js.map +0 -1
  489. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs.js +0 -2
  490. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs.js.map +0 -1
  491. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs.js.map +0 -1
  492. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.mjs.js.map +0 -1
  493. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs.js +0 -2
  494. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs.js.map +0 -1
  495. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs.js +0 -2
  496. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs.js.map +0 -1
  497. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs.js +0 -2
  498. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs.js.map +0 -1
  499. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.mjs.js.map +0 -1
  500. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.mjs.js.map +0 -1
  501. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs.js +0 -2
  502. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs.js.map +0 -1
  503. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs.js.map +0 -1
  504. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js +0 -2
  505. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js.map +0 -1
  506. package/dist/node_modules/motion-dom/dist/es/projection/node/state.mjs.js.map +0 -1
  507. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.mjs.js +0 -2
  508. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.mjs.js.map +0 -1
  509. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs.js +0 -2
  510. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs.js.map +0 -1
  511. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs.js +0 -2
  512. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs.js.map +0 -1
  513. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs.js +0 -2
  514. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs.js.map +0 -1
  515. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.mjs.js.map +0 -1
  516. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs.js.map +0 -1
  517. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs.js.map +0 -1
  518. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.mjs.js.map +0 -1
  519. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs.js.map +0 -1
  520. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.mjs.js.map +0 -1
  521. package/dist/node_modules/motion-dom/dist/es/render/Feature.mjs.js.map +0 -1
  522. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js +0 -2
  523. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js.map +0 -1
  524. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs.js +0 -2
  525. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs.js.map +0 -1
  526. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs.js.map +0 -1
  527. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs.js +0 -2
  528. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs.js.map +0 -1
  529. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs.js +0 -2
  530. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs.js.map +0 -1
  531. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs.js +0 -2
  532. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs.js.map +0 -1
  533. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.mjs.js +0 -2
  534. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.mjs.js.map +0 -1
  535. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs.js +0 -2
  536. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs.js.map +0 -1
  537. package/dist/node_modules/motion-dom/dist/es/render/store.mjs.js.map +0 -1
  538. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs.js +0 -2
  539. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs.js.map +0 -1
  540. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js +0 -2
  541. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js.map +0 -1
  542. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs.js.map +0 -1
  543. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.mjs.js.map +0 -1
  544. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.mjs.js +0 -2
  545. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.mjs.js.map +0 -1
  546. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.mjs.js.map +0 -1
  547. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs.js +0 -2
  548. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs.js.map +0 -1
  549. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js +0 -2
  550. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js.map +0 -1
  551. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs.js.map +0 -1
  552. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs.js.map +0 -1
  553. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs.js +0 -2
  554. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs.js.map +0 -1
  555. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs.js +0 -2
  556. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs.js.map +0 -1
  557. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs.js.map +0 -1
  558. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs.js.map +0 -1
  559. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.mjs.js +0 -2
  560. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.mjs.js.map +0 -1
  561. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.mjs.js +0 -2
  562. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.mjs.js.map +0 -1
  563. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs.js.map +0 -1
  564. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs.js.map +0 -1
  565. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs.js.map +0 -1
  566. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.mjs.js +0 -2
  567. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.mjs.js.map +0 -1
  568. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs.js.map +0 -1
  569. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs.js.map +0 -1
  570. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.mjs.js +0 -2
  571. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.mjs.js.map +0 -1
  572. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.mjs.js +0 -2
  573. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.mjs.js.map +0 -1
  574. package/dist/node_modules/motion-dom/dist/es/resize/index.mjs.js +0 -2
  575. package/dist/node_modules/motion-dom/dist/es/resize/index.mjs.js.map +0 -1
  576. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js +0 -2
  577. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js.map +0 -1
  578. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.mjs.js +0 -2
  579. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.mjs.js.map +0 -1
  580. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs.js +0 -2
  581. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs.js.map +0 -1
  582. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs.js +0 -2
  583. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs.js.map +0 -1
  584. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.mjs.js +0 -2
  585. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.mjs.js.map +0 -1
  586. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs.js.map +0 -1
  587. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs.js.map +0 -1
  588. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs.js.map +0 -1
  589. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.mjs.js.map +0 -1
  590. package/dist/node_modules/motion-utils/dist/es/format-error-message.mjs.js +0 -2
  591. package/dist/node_modules/motion-utils/dist/es/format-error-message.mjs.js.map +0 -1
  592. package/dist/node_modules/motion-utils/dist/es/is-object.mjs.js +0 -2
  593. package/dist/node_modules/motion-utils/dist/es/is-object.mjs.js.map +0 -1
  594. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/animation/interfaces/visual-element.mjs.js +0 -0
  595. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/animation/optimized-appear/data-id.mjs.js +0 -0
  596. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/animation/optimized-appear/get-appear-id.mjs.js +0 -0
  597. /package/dist/node_modules/{motion-dom/dist/es/render → framer-motion/dist/es/animation}/utils/is-animation-controls.mjs.js +0 -0
  598. /package/dist/node_modules/{motion-dom/dist/es/render → framer-motion/dist/es/animation}/utils/is-keyframes-target.mjs.js +0 -0
  599. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/events/add-dom-event.mjs.js +0 -0
  600. /package/dist/node_modules/{motion-dom/dist/es/render → framer-motion/dist/es/motion/features}/Feature.mjs.js +0 -0
  601. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/geometry/conversion.mjs.js +0 -0
  602. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/geometry/copy.mjs.js +0 -0
  603. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/geometry/models.mjs.js +0 -0
  604. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/geometry/utils.mjs.js +0 -0
  605. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/node/HTMLProjectionNode.mjs.js +0 -0
  606. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/node/state.mjs.js +0 -0
  607. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/utils/each-axis.mjs.js +0 -0
  608. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/utils/has-transform.mjs.js +0 -0
  609. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/projection/utils/measure.mjs.js +0 -0
  610. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/store.mjs.js +0 -0
  611. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/svg/utils/camel-case-attrs.mjs.js +0 -0
  612. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/svg/utils/is-svg-tag.mjs.js +0 -0
  613. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/svg/utils/render.mjs.js +0 -0
  614. /package/dist/node_modules/{motion-dom/dist/es/projection → framer-motion/dist/es/render}/utils/compare-by-depth.mjs.js +0 -0
  615. /package/dist/node_modules/{motion-dom/dist/es/projection → framer-motion/dist/es/render}/utils/flat-tree.mjs.js +0 -0
  616. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/utils/get-variant-context.mjs.js +0 -0
  617. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/utils/is-variant-label.mjs.js +0 -0
  618. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/utils/resolve-dynamic-variants.mjs.js +0 -0
  619. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/utils/resolve-variants.mjs.js +0 -0
  620. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/render/utils/variant-props.mjs.js +0 -0
  621. /package/dist/node_modules/{motion-dom/dist/es/render → framer-motion/dist/es}/utils/reduced-motion/state.mjs.js +0 -0
  622. /package/dist/node_modules/{motion-dom/dist/es/render → framer-motion/dist/es}/utils/shallow-compare.mjs.js +0 -0
  623. /package/dist/node_modules/{motion-dom/dist/es/value/will-change → framer-motion/dist/es/value/use-will-change}/add-will-change.mjs.js +0 -0
  624. /package/dist/node_modules/{motion-dom/dist/es/value/will-change → framer-motion/dist/es/value/use-will-change}/is.mjs.js +0 -0
  625. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/value/utils/is-motion-value.mjs.js +0 -0
  626. /package/dist/node_modules/{motion-dom → framer-motion}/dist/es/value/utils/resolve-motion-value.mjs.js +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../frameloop/sync-time.mjs.js"),e=require("../utils/mix/index.mjs.js"),i=require("./drivers/frame.mjs.js"),s=require("./generators/inertia.mjs.js"),r=require("./generators/keyframes.mjs.js"),n=require("./generators/utils/calc-duration.mjs.js"),a=require("./generators/utils/velocity.mjs.js"),o=require("./keyframes/get-final.mjs.js"),h=require("./utils/replace-transition-type.mjs.js"),l=require("./utils/WithPromise.mjs.js"),m=require("../../../../motion-utils/dist/es/errors.mjs.js"),d=require("../../../../motion-utils/dist/es/pipe.mjs.js"),u=require("../../../../motion-utils/dist/es/time-conversion.mjs.js"),c=require("../../../../motion-utils/dist/es/clamp.mjs.js");const p=t=>t/100;class T extends l.WithPromise{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==t.time.now()&&this.tick(t.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:t}=this;h.replaceTransitionType(t);const{type:i=r.keyframes,repeat:s=0,repeatDelay:a=0,repeatType:o,velocity:l=0}=t;let{keyframes:u}=t;const c=i||r.keyframes;"production"!==process.env.NODE_ENV&&c!==r.keyframes&&m.invariant(u.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${u}`,"spring-two-frames"),c!==r.keyframes&&"number"!=typeof u[0]&&(this.mixKeyframes=d.pipe(p,e.mix(u[0],u[1])),u=[0,100]);const T=c({...t,keyframes:u});"mirror"===o&&(this.mirroredGenerator=c({...t,keyframes:[...u].reverse(),velocity:-l})),null===T.calculatedDuration&&(T.calculatedDuration=n.calcGeneratorDuration(T));const{calculatedDuration:y}=T;this.calculatedDuration=y,this.resolvedDuration=y+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=T}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{generator:i,totalDuration:r,mixKeyframes:n,mirroredGenerator:a,resolvedDuration:h,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);const{delay:m=0,keyframes:d,repeat:u,repeatType:p,repeatDelay:T,type:y,onUpdate:v,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const j=this.currentTime-m*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?j<0:j>r;this.currentTime=Math.max(j,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let g,S=this.currentTime,D=i;if(u){const t=Math.min(this.currentTime,r)/h;let e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,u+1);Boolean(e%2)&&("reverse"===p?(i=1-i,T&&(i-=T/h)):"mirror"===p&&(D=a)),S=c.clamp(0,1,i)*h}k?(this.delayState.value=d[0],g=this.delayState):g=D.next(S),n&&!k&&(g.value=n(g.value));let{done:q}=g;k||null===l||(q=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&q);return w&&y!==s.inertia&&(g.value=o.getFinalKeyframe(d,this.options,f,this.speed)),v&&v(g.value),w&&this.finish(),g}then(t,e){return this.finished.then(t,e)}get duration(){return u.millisecondsToSeconds(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+u.millisecondsToSeconds(t)}get time(){return u.millisecondsToSeconds(this.currentTime)}set time(t){t=u.secondsToMilliseconds(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const e=this.generator.next(t).value;return a.getGeneratorVelocity((t=>this.generator.next(t).value),t,e)}get speed(){return this.playbackSpeed}set speed(e){const i=this.playbackSpeed!==e;i&&this.driver&&this.updateTime(t.time.now()),this.playbackSpeed=e,i&&this.driver&&(this.time=u.millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=i.frameloopDriver,startTime:e}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),this.options.onPlay?.();const s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=e??s),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}exports.JSAnimation=T;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../frameloop/sync-time.mjs.js"),e=require("../utils/mix/index.mjs.js"),i=require("./drivers/driver-frameloop.mjs.js"),s=require("./generators/inertia.mjs.js"),r=require("./generators/keyframes.mjs.js"),n=require("./generators/utils/calc-duration.mjs.js"),a=require("./keyframes/get-final.mjs.js"),o=require("./utils/replace-transition-type.mjs.js"),h=require("./utils/WithPromise.mjs.js"),l=require("../../../../motion-utils/dist/es/errors.mjs.js"),m=require("../../../../motion-utils/dist/es/pipe.mjs.js"),u=require("../../../../motion-utils/dist/es/clamp.mjs.js"),d=require("../../../../motion-utils/dist/es/time-conversion.mjs.js");const p=t=>t/100;class c extends h.WithPromise{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:e}=this.options;if(e&&e.updatedAt!==t.time.now()&&this.tick(t.time.now()),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:i}=this.options;i&&i()},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:t}=this;o.replaceTransitionType(t);const{type:i=r.keyframes,repeat:s=0,repeatDelay:a=0,repeatType:h,velocity:u=0}=t;let{keyframes:d}=t;const c=i||r.keyframes;"production"!==process.env.NODE_ENV&&c!==r.keyframes&&l.invariant(d.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${d}`),c!==r.keyframes&&"number"!=typeof d[0]&&(this.mixKeyframes=m.pipe(p,e.mix(d[0],d[1])),d=[0,100]);const T=c({...t,keyframes:d});"mirror"===h&&(this.mirroredGenerator=c({...t,keyframes:[...d].reverse(),velocity:-u})),null===T.calculatedDuration&&(T.calculatedDuration=n.calcGeneratorDuration(T));const{calculatedDuration:y}=T;this.calculatedDuration=y,this.resolvedDuration=y+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=T}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{generator:i,totalDuration:r,mixKeyframes:n,mirroredGenerator:o,resolvedDuration:h,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);const{delay:m=0,keyframes:d,repeat:p,repeatType:c,repeatDelay:T,type:y,onUpdate:f,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const j=this.currentTime-m*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?j<0:j>r;this.currentTime=Math.max(j,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let D=this.currentTime,S=i;if(p){const t=Math.min(this.currentTime,r)/h;let e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,p+1);Boolean(e%2)&&("reverse"===c?(i=1-i,T&&(i-=T/h)):"mirror"===c&&(S=o)),D=u.clamp(0,1,i)*h}const g=k?{done:!1,value:d[0]}:S.next(D);n&&(g.value=n(g.value));let{done:b}=g;k||null===l||(b=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const q=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return q&&y!==s.inertia&&(g.value=a.getFinalKeyframe(d,this.options,v,this.speed)),f&&f(g.value),q&&this.finish(),g}then(t,e){return this.finished.then(t,e)}get duration(){return d.millisecondsToSeconds(this.calculatedDuration)}get time(){return d.millisecondsToSeconds(this.currentTime)}set time(t){t=d.secondsToMilliseconds(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(t.time.now());const i=this.playbackSpeed!==e;this.playbackSpeed=e,i&&(this.time=d.millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=i.frameloopDriver,onPlay:e,startTime:s}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=s??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),t.observe(this)}}exports.JSAnimation=c;
2
2
  //# sourceMappingURL=JSAnimation.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"JSAnimation.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/animation/JSAnimation.mjs"],"sourcesContent":["import { invariant, pipe, clamp, millisecondsToSeconds, secondsToMilliseconds } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { activeAnimations } from '../stats/animation-count.mjs';\nimport { mix } from '../utils/mix/index.mjs';\nimport { frameloopDriver } from './drivers/frame.mjs';\nimport { inertia } from './generators/inertia.mjs';\nimport { keyframes } from './generators/keyframes.mjs';\nimport { calcGeneratorDuration } from './generators/utils/calc-duration.mjs';\nimport { getGeneratorVelocity } from './generators/utils/velocity.mjs';\nimport { getFinalKeyframe } from './keyframes/get-final.mjs';\nimport { replaceTransitionType } from './utils/replace-transition-type.mjs';\nimport { WithPromise } from './utils/WithPromise.mjs';\n\nconst percentToProgress = (percent) => percent / 100;\nclass JSAnimation extends WithPromise {\n constructor(options) {\n super();\n this.state = \"idle\";\n this.startTime = null;\n this.isStopped = false;\n /**\n * The current time of the animation.\n */\n this.currentTime = 0;\n /**\n * The time at which the animation was paused.\n */\n this.holdTime = null;\n /**\n * Playback speed as a factor. 0 would be stopped, -1 reverse and 2 double speed.\n */\n this.playbackSpeed = 1;\n /**\n * Reusable state object for the delay phase to avoid\n * allocating a new object every frame.\n */\n this.delayState = {\n done: false,\n value: undefined,\n };\n /**\n * This method is bound to the instance to fix a pattern where\n * animation.stop is returned as a reference from a useEffect.\n */\n this.stop = () => {\n const { motionValue } = this.options;\n if (motionValue && motionValue.updatedAt !== time.now()) {\n this.tick(time.now());\n }\n this.isStopped = true;\n if (this.state === \"idle\")\n return;\n this.teardown();\n this.options.onStop?.();\n };\n activeAnimations.mainThread++;\n this.options = options;\n this.initAnimation();\n this.play();\n if (options.autoplay === false)\n this.pause();\n }\n initAnimation() {\n const { options } = this;\n replaceTransitionType(options);\n const { type = keyframes, repeat = 0, repeatDelay = 0, repeatType, velocity = 0, } = options;\n let { keyframes: keyframes$1 } = options;\n const generatorFactory = type || keyframes;\n if (process.env.NODE_ENV !== \"production\" &&\n generatorFactory !== keyframes) {\n invariant(keyframes$1.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${keyframes$1}`, \"spring-two-frames\");\n }\n if (generatorFactory !== keyframes &&\n typeof keyframes$1[0] !== \"number\") {\n this.mixKeyframes = pipe(percentToProgress, mix(keyframes$1[0], keyframes$1[1]));\n keyframes$1 = [0, 100];\n }\n const generator = generatorFactory({ ...options, keyframes: keyframes$1 });\n /**\n * If we have a mirror repeat type we need to create a second generator that outputs the\n * mirrored (not reversed) animation and later ping pong between the two generators.\n */\n if (repeatType === \"mirror\") {\n this.mirroredGenerator = generatorFactory({\n ...options,\n keyframes: [...keyframes$1].reverse(),\n velocity: -velocity,\n });\n }\n /**\n * If duration is undefined and we have repeat options,\n * we need to calculate a duration from the generator.\n *\n * We set it to the generator itself to cache the duration.\n * Any timeline resolver will need to have already precalculated\n * the duration by this step.\n */\n if (generator.calculatedDuration === null) {\n generator.calculatedDuration = calcGeneratorDuration(generator);\n }\n const { calculatedDuration } = generator;\n this.calculatedDuration = calculatedDuration;\n this.resolvedDuration = calculatedDuration + repeatDelay;\n this.totalDuration = this.resolvedDuration * (repeat + 1) - repeatDelay;\n this.generator = generator;\n }\n updateTime(timestamp) {\n const animationTime = Math.round(timestamp - this.startTime) * this.playbackSpeed;\n // Update currentTime\n if (this.holdTime !== null) {\n this.currentTime = this.holdTime;\n }\n else {\n // Rounding the time because floating point arithmetic is not always accurate, e.g. 3000.367 - 1000.367 =\n // 2000.0000000000002. This is a problem when we are comparing the currentTime with the duration, for\n // example.\n this.currentTime = animationTime;\n }\n }\n tick(timestamp, sample = false) {\n const { generator, totalDuration, mixKeyframes, mirroredGenerator, resolvedDuration, calculatedDuration, } = this;\n if (this.startTime === null)\n return generator.next(0);\n const { delay = 0, keyframes, repeat, repeatType, repeatDelay, type, onUpdate, finalKeyframe, } = this.options;\n /**\n * requestAnimationFrame timestamps can come through as lower than\n * the startTime as set by performance.now(). Here we prevent this,\n * though in the future it could be possible to make setting startTime\n * a pending operation that gets resolved here.\n */\n if (this.speed > 0) {\n this.startTime = Math.min(this.startTime, timestamp);\n }\n else if (this.speed < 0) {\n this.startTime = Math.min(timestamp - totalDuration / this.speed, this.startTime);\n }\n if (sample) {\n this.currentTime = timestamp;\n }\n else {\n this.updateTime(timestamp);\n }\n // Rebase on delay\n const timeWithoutDelay = this.currentTime - delay * (this.playbackSpeed >= 0 ? 1 : -1);\n const isInDelayPhase = this.playbackSpeed >= 0\n ? timeWithoutDelay < 0\n : timeWithoutDelay > totalDuration;\n this.currentTime = Math.max(timeWithoutDelay, 0);\n // If this animation has finished, set the current time to the total duration.\n if (this.state === \"finished\" && this.holdTime === null) {\n this.currentTime = totalDuration;\n }\n let elapsed = this.currentTime;\n let frameGenerator = generator;\n if (repeat) {\n /**\n * Get the current progress (0-1) of the animation. If t is >\n * than duration we'll get values like 2.5 (midway through the\n * third iteration)\n */\n const progress = Math.min(this.currentTime, totalDuration) / resolvedDuration;\n /**\n * Get the current iteration (0 indexed). For instance the floor of\n * 2.5 is 2.\n */\n let currentIteration = Math.floor(progress);\n /**\n * Get the current progress of the iteration by taking the remainder\n * so 2.5 is 0.5 through iteration 2\n */\n let iterationProgress = progress % 1.0;\n /**\n * If iteration progress is 1 we count that as the end\n * of the previous iteration.\n */\n if (!iterationProgress && progress >= 1) {\n iterationProgress = 1;\n }\n iterationProgress === 1 && currentIteration--;\n currentIteration = Math.min(currentIteration, repeat + 1);\n /**\n * Reverse progress if we're not running in \"normal\" direction\n */\n const isOddIteration = Boolean(currentIteration % 2);\n if (isOddIteration) {\n if (repeatType === \"reverse\") {\n iterationProgress = 1 - iterationProgress;\n if (repeatDelay) {\n iterationProgress -= repeatDelay / resolvedDuration;\n }\n }\n else if (repeatType === \"mirror\") {\n frameGenerator = mirroredGenerator;\n }\n }\n elapsed = clamp(0, 1, iterationProgress) * resolvedDuration;\n }\n /**\n * If we're in negative time, set state as the initial keyframe.\n * This prevents delay: x, duration: 0 animations from finishing\n * instantly.\n */\n let state;\n if (isInDelayPhase) {\n this.delayState.value = keyframes[0];\n state = this.delayState;\n }\n else {\n state = frameGenerator.next(elapsed);\n }\n if (mixKeyframes && !isInDelayPhase) {\n state.value = mixKeyframes(state.value);\n }\n let { done } = state;\n if (!isInDelayPhase && calculatedDuration !== null) {\n done =\n this.playbackSpeed >= 0\n ? this.currentTime >= totalDuration\n : this.currentTime <= 0;\n }\n const isAnimationFinished = this.holdTime === null &&\n (this.state === \"finished\" || (this.state === \"running\" && done));\n // TODO: The exception for inertia could be cleaner here\n if (isAnimationFinished && type !== inertia) {\n state.value = getFinalKeyframe(keyframes, this.options, finalKeyframe, this.speed);\n }\n if (onUpdate) {\n onUpdate(state.value);\n }\n if (isAnimationFinished) {\n this.finish();\n }\n return state;\n }\n /**\n * Allows the returned animation to be awaited or promise-chained. Currently\n * resolves when the animation finishes at all but in a future update could/should\n * reject if its cancels.\n */\n then(resolve, reject) {\n return this.finished.then(resolve, reject);\n }\n get duration() {\n return millisecondsToSeconds(this.calculatedDuration);\n }\n get iterationDuration() {\n const { delay = 0 } = this.options || {};\n return this.duration + millisecondsToSeconds(delay);\n }\n get time() {\n return millisecondsToSeconds(this.currentTime);\n }\n set time(newTime) {\n newTime = secondsToMilliseconds(newTime);\n this.currentTime = newTime;\n if (this.startTime === null ||\n this.holdTime !== null ||\n this.playbackSpeed === 0) {\n this.holdTime = newTime;\n }\n else if (this.driver) {\n this.startTime = this.driver.now() - newTime / this.playbackSpeed;\n }\n if (this.driver) {\n this.driver.start(false);\n }\n else {\n this.startTime = 0;\n this.state = \"paused\";\n this.holdTime = newTime;\n this.tick(newTime);\n }\n }\n /**\n * Returns the generator's velocity at the current time in units/second.\n * Uses the analytical derivative when available (springs), avoiding\n * the MotionValue's frame-dependent velocity estimation.\n */\n getGeneratorVelocity() {\n const t = this.currentTime;\n if (t <= 0)\n return this.options.velocity || 0;\n if (this.generator.velocity) {\n return this.generator.velocity(t);\n }\n // Fallback: finite difference\n const current = this.generator.next(t).value;\n return getGeneratorVelocity((s) => this.generator.next(s).value, t, current);\n }\n get speed() {\n return this.playbackSpeed;\n }\n set speed(newSpeed) {\n const hasChanged = this.playbackSpeed !== newSpeed;\n if (hasChanged && this.driver) {\n this.updateTime(time.now());\n }\n this.playbackSpeed = newSpeed;\n if (hasChanged && this.driver) {\n this.time = millisecondsToSeconds(this.currentTime);\n }\n }\n play() {\n if (this.isStopped)\n return;\n const { driver = frameloopDriver, startTime } = this.options;\n if (!this.driver) {\n this.driver = driver((timestamp) => this.tick(timestamp));\n }\n this.options.onPlay?.();\n const now = this.driver.now();\n if (this.state === \"finished\") {\n this.updateFinished();\n this.startTime = now;\n }\n else if (this.holdTime !== null) {\n this.startTime = now - this.holdTime;\n }\n else if (!this.startTime) {\n this.startTime = startTime ?? now;\n }\n if (this.state === \"finished\" && this.speed < 0) {\n this.startTime += this.calculatedDuration;\n }\n this.holdTime = null;\n /**\n * Set playState to running only after we've used it in\n * the previous logic.\n */\n this.state = \"running\";\n this.driver.start();\n }\n pause() {\n this.state = \"paused\";\n this.updateTime(time.now());\n this.holdTime = this.currentTime;\n }\n complete() {\n if (this.state !== \"running\") {\n this.play();\n }\n this.state = \"finished\";\n this.holdTime = null;\n }\n finish() {\n this.notifyFinished();\n this.teardown();\n this.state = \"finished\";\n this.options.onComplete?.();\n }\n cancel() {\n this.holdTime = null;\n this.startTime = 0;\n this.tick(0);\n this.teardown();\n this.options.onCancel?.();\n }\n teardown() {\n this.state = \"idle\";\n this.stopDriver();\n this.startTime = this.holdTime = null;\n activeAnimations.mainThread--;\n }\n stopDriver() {\n if (!this.driver)\n return;\n this.driver.stop();\n this.driver = undefined;\n }\n sample(sampleTime) {\n this.startTime = 0;\n return this.tick(sampleTime, true);\n }\n attachTimeline(timeline) {\n if (this.options.allowFlatten) {\n this.options.type = \"keyframes\";\n this.options.ease = \"linear\";\n this.initAnimation();\n }\n this.driver?.stop();\n return timeline.observe(this);\n }\n}\n// Legacy function support\nfunction animateValue(options) {\n return new JSAnimation(options);\n}\n\nexport { JSAnimation, animateValue };\n//# sourceMappingURL=JSAnimation.mjs.map\n"],"names":["percentToProgress","percent","JSAnimation","WithPromise","constructor","options","super","this","state","startTime","isStopped","currentTime","holdTime","playbackSpeed","delayState","done","value","undefined","stop","motionValue","updatedAt","time","now","tick","teardown","onStop","initAnimation","play","autoplay","pause","replaceTransitionType","type","keyframes","repeat","repeatDelay","repeatType","velocity","keyframes$1","generatorFactory","process","env","NODE_ENV","keyframesGenerator","invariant","length","mixKeyframes","pipe","mix","generator","mirroredGenerator","reverse","calculatedDuration","calcGeneratorDuration","resolvedDuration","totalDuration","updateTime","timestamp","animationTime","Math","round","sample","arguments","next","delay","onUpdate","finalKeyframe","speed","min","timeWithoutDelay","isInDelayPhase","max","elapsed","frameGenerator","progress","currentIteration","floor","iterationProgress","Boolean","clamp","isAnimationFinished","inertia","getFinalKeyframe","finish","then","resolve","reject","finished","duration","millisecondsToSeconds","iterationDuration","newTime","secondsToMilliseconds","driver","start","getGeneratorVelocity","t","current","s","newSpeed","hasChanged","frameloopDriver","onPlay","updateFinished","complete","notifyFinished","onComplete","cancel","onCancel","stopDriver","sampleTime","attachTimeline","timeline","allowFlatten","ease","observe"],"mappings":"mvBA6BA,MAAMA,EAAqBC,GAAoBA,EAAU,IAEnD,MAAOC,UACDC,EAAAA,YA2DRC,WAAAA,CAAYC,GACRC,QAzDJC,KAAAC,MAA4B,OAE5BD,KAAAE,UAA2B,KAQnBF,KAAAG,W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node_modules/motion-dom/dist/es/animation/JSAnimation.mjs"],"sourcesContent":["import { invariant, pipe, clamp, millisecondsToSeconds, secondsToMilliseconds } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { activeAnimations } from '../stats/animation-count.mjs';\nimport { mix } from '../utils/mix/index.mjs';\nimport { frameloopDriver } from './drivers/driver-frameloop.mjs';\nimport { inertia } from './generators/inertia.mjs';\nimport { keyframes } from './generators/keyframes.mjs';\nimport { calcGeneratorDuration } from './generators/utils/calc-duration.mjs';\nimport { getFinalKeyframe } from './keyframes/get-final.mjs';\nimport { replaceTransitionType } from './utils/replace-transition-type.mjs';\nimport { WithPromise } from './utils/WithPromise.mjs';\n\nconst percentToProgress = (percent) => percent / 100;\nclass JSAnimation extends WithPromise {\n constructor(options) {\n super();\n this.state = \"idle\";\n this.startTime = null;\n this.isStopped = false;\n /**\n * The current time of the animation.\n */\n this.currentTime = 0;\n /**\n * The time at which the animation was paused.\n */\n this.holdTime = null;\n /**\n * Playback speed as a factor. 0 would be stopped, -1 reverse and 2 double speed.\n */\n this.playbackSpeed = 1;\n /**\n * This method is bound to the instance to fix a pattern where\n * animation.stop is returned as a reference from a useEffect.\n */\n this.stop = () => {\n const { motionValue } = this.options;\n if (motionValue && motionValue.updatedAt !== time.now()) {\n this.tick(time.now());\n }\n this.isStopped = true;\n if (this.state === \"idle\")\n return;\n this.teardown();\n const { onStop } = this.options;\n onStop && onStop();\n };\n activeAnimations.mainThread++;\n this.options = options;\n this.initAnimation();\n this.play();\n if (options.autoplay === false)\n this.pause();\n }\n initAnimation() {\n const { options } = this;\n replaceTransitionType(options);\n const { type = keyframes, repeat = 0, repeatDelay = 0, repeatType, velocity = 0, } = options;\n let { keyframes: keyframes$1 } = options;\n const generatorFactory = type || keyframes;\n if (process.env.NODE_ENV !== \"production\" &&\n generatorFactory !== keyframes) {\n invariant(keyframes$1.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${keyframes$1}`);\n }\n if (generatorFactory !== keyframes &&\n typeof keyframes$1[0] !== \"number\") {\n this.mixKeyframes = pipe(percentToProgress, mix(keyframes$1[0], keyframes$1[1]));\n keyframes$1 = [0, 100];\n }\n const generator = generatorFactory({ ...options, keyframes: keyframes$1 });\n /**\n * If we have a mirror repeat type we need to create a second generator that outputs the\n * mirrored (not reversed) animation and later ping pong between the two generators.\n */\n if (repeatType === \"mirror\") {\n this.mirroredGenerator = generatorFactory({\n ...options,\n keyframes: [...keyframes$1].reverse(),\n velocity: -velocity,\n });\n }\n /**\n * If duration is undefined and we have repeat options,\n * we need to calculate a duration from the generator.\n *\n * We set it to the generator itself to cache the duration.\n * Any timeline resolver will need to have already precalculated\n * the duration by this step.\n */\n if (generator.calculatedDuration === null) {\n generator.calculatedDuration = calcGeneratorDuration(generator);\n }\n const { calculatedDuration } = generator;\n this.calculatedDuration = calculatedDuration;\n this.resolvedDuration = calculatedDuration + repeatDelay;\n this.totalDuration = this.resolvedDuration * (repeat + 1) - repeatDelay;\n this.generator = generator;\n }\n updateTime(timestamp) {\n const animationTime = Math.round(timestamp - this.startTime) * this.playbackSpeed;\n // Update currentTime\n if (this.holdTime !== null) {\n this.currentTime = this.holdTime;\n }\n else {\n // Rounding the time because floating point arithmetic is not always accurate, e.g. 3000.367 - 1000.367 =\n // 2000.0000000000002. This is a problem when we are comparing the currentTime with the duration, for\n // example.\n this.currentTime = animationTime;\n }\n }\n tick(timestamp, sample = false) {\n const { generator, totalDuration, mixKeyframes, mirroredGenerator, resolvedDuration, calculatedDuration, } = this;\n if (this.startTime === null)\n return generator.next(0);\n const { delay = 0, keyframes, repeat, repeatType, repeatDelay, type, onUpdate, finalKeyframe, } = this.options;\n /**\n * requestAnimationFrame timestamps can come through as lower than\n * the startTime as set by performance.now(). Here we prevent this,\n * though in the future it could be possible to make setting startTime\n * a pending operation that gets resolved here.\n */\n if (this.speed > 0) {\n this.startTime = Math.min(this.startTime, timestamp);\n }\n else if (this.speed < 0) {\n this.startTime = Math.min(timestamp - totalDuration / this.speed, this.startTime);\n }\n if (sample) {\n this.currentTime = timestamp;\n }\n else {\n this.updateTime(timestamp);\n }\n // Rebase on delay\n const timeWithoutDelay = this.currentTime - delay * (this.playbackSpeed >= 0 ? 1 : -1);\n const isInDelayPhase = this.playbackSpeed >= 0\n ? timeWithoutDelay < 0\n : timeWithoutDelay > totalDuration;\n this.currentTime = Math.max(timeWithoutDelay, 0);\n // If this animation has finished, set the current time to the total duration.\n if (this.state === \"finished\" && this.holdTime === null) {\n this.currentTime = totalDuration;\n }\n let elapsed = this.currentTime;\n let frameGenerator = generator;\n if (repeat) {\n /**\n * Get the current progress (0-1) of the animation. If t is >\n * than duration we'll get values like 2.5 (midway through the\n * third iteration)\n */\n const progress = Math.min(this.currentTime, totalDuration) / resolvedDuration;\n /**\n * Get the current iteration (0 indexed). For instance the floor of\n * 2.5 is 2.\n */\n let currentIteration = Math.floor(progress);\n /**\n * Get the current progress of the iteration by taking the remainder\n * so 2.5 is 0.5 through iteration 2\n */\n let iterationProgress = progress % 1.0;\n /**\n * If iteration progress is 1 we count that as the end\n * of the previous iteration.\n */\n if (!iterationProgress && progress >= 1) {\n iterationProgress = 1;\n }\n iterationProgress === 1 && currentIteration--;\n currentIteration = Math.min(currentIteration, repeat + 1);\n /**\n * Reverse progress if we're not running in \"normal\" direction\n */\n const isOddIteration = Boolean(currentIteration % 2);\n if (isOddIteration) {\n if (repeatType === \"reverse\") {\n iterationProgress = 1 - iterationProgress;\n if (repeatDelay) {\n iterationProgress -= repeatDelay / resolvedDuration;\n }\n }\n else if (repeatType === \"mirror\") {\n frameGenerator = mirroredGenerator;\n }\n }\n elapsed = clamp(0, 1, iterationProgress) * resolvedDuration;\n }\n /**\n * If we're in negative time, set state as the initial keyframe.\n * This prevents delay: x, duration: 0 animations from finishing\n * instantly.\n */\n const state = isInDelayPhase\n ? { done: false, value: keyframes[0] }\n : frameGenerator.next(elapsed);\n if (mixKeyframes) {\n state.value = mixKeyframes(state.value);\n }\n let { done } = state;\n if (!isInDelayPhase && calculatedDuration !== null) {\n done =\n this.playbackSpeed >= 0\n ? this.currentTime >= totalDuration\n : this.currentTime <= 0;\n }\n const isAnimationFinished = this.holdTime === null &&\n (this.state === \"finished\" || (this.state === \"running\" && done));\n // TODO: The exception for inertia could be cleaner here\n if (isAnimationFinished && type !== inertia) {\n state.value = getFinalKeyframe(keyframes, this.options, finalKeyframe, this.speed);\n }\n if (onUpdate) {\n onUpdate(state.value);\n }\n if (isAnimationFinished) {\n this.finish();\n }\n return state;\n }\n /**\n * Allows the returned animation to be awaited or promise-chained. Currently\n * resolves when the animation finishes at all but in a future update could/should\n * reject if its cancels.\n */\n then(resolve, reject) {\n return this.finished.then(resolve, reject);\n }\n get duration() {\n return millisecondsToSeconds(this.calculatedDuration);\n }\n get time() {\n return millisecondsToSeconds(this.currentTime);\n }\n set time(newTime) {\n newTime = secondsToMilliseconds(newTime);\n this.currentTime = newTime;\n if (this.startTime === null ||\n this.holdTime !== null ||\n this.playbackSpeed === 0) {\n this.holdTime = newTime;\n }\n else if (this.driver) {\n this.startTime = this.driver.now() - newTime / this.playbackSpeed;\n }\n }\n get speed() {\n return this.playbackSpeed;\n }\n set speed(newSpeed) {\n this.updateTime(time.now());\n const hasChanged = this.playbackSpeed !== newSpeed;\n this.playbackSpeed = newSpeed;\n if (hasChanged) {\n this.time = millisecondsToSeconds(this.currentTime);\n }\n }\n play() {\n if (this.isStopped)\n return;\n const { driver = frameloopDriver, onPlay, startTime } = this.options;\n if (!this.driver) {\n this.driver = driver((timestamp) => this.tick(timestamp));\n }\n onPlay && onPlay();\n const now = this.driver.now();\n if (this.state === \"finished\") {\n this.updateFinished();\n this.startTime = now;\n }\n else if (this.holdTime !== null) {\n this.startTime = now - this.holdTime;\n }\n else if (!this.startTime) {\n this.startTime = startTime ?? now;\n }\n if (this.state === \"finished\" && this.speed < 0) {\n this.startTime += this.calculatedDuration;\n }\n this.holdTime = null;\n /**\n * Set playState to running only after we've used it in\n * the previous logic.\n */\n this.state = \"running\";\n this.driver.start();\n }\n pause() {\n this.state = \"paused\";\n this.updateTime(time.now());\n this.holdTime = this.currentTime;\n }\n complete() {\n if (this.state !== \"running\") {\n this.play();\n }\n this.state = \"finished\";\n this.holdTime = null;\n }\n finish() {\n this.teardown();\n this.state = \"finished\";\n const { onComplete } = this.options;\n onComplete && onComplete();\n }\n cancel() {\n this.holdTime = null;\n this.startTime = 0;\n this.tick(0);\n this.teardown();\n }\n teardown() {\n this.notifyFinished();\n this.state = \"idle\";\n this.stopDriver();\n this.startTime = this.holdTime = null;\n activeAnimations.mainThread--;\n }\n stopDriver() {\n if (!this.driver)\n return;\n this.driver.stop();\n this.driver = undefined;\n }\n sample(sampleTime) {\n this.startTime = 0;\n return this.tick(sampleTime, true);\n }\n attachTimeline(timeline) {\n if (this.options.allowFlatten) {\n this.options.type = \"keyframes\";\n this.options.ease = \"linear\";\n this.initAnimation();\n }\n return timeline.observe(this);\n }\n}\n// Legacy function support\nfunction animateValue(options) {\n return new JSAnimation(options);\n}\n\nexport { JSAnimation, animateValue };\n"],"names":["percentToProgress","percent","JSAnimation","WithPromise","constructor","options","super","this","state","startTime","isStopped","currentTime","holdTime","playbackSpeed","stop","motionValue","updatedAt","time","now","tick","teardown","onStop","initAnimation","play","autoplay","pause","replaceTransitionType","type","keyframes","repeat","repeatDelay","repeatType","velocity","keyframes$1","generatorFactory","process","env","NODE_ENV","invariant","length","mixKeyframes","pipe","mix","generator","mirroredGenerator","reverse","calculatedDuration","calcGeneratorDuration","resolvedDuration","totalDuration","updateTime","timestamp","animationTime","Math","round","sample","arguments","undefined","next","delay","onUpdate","finalKeyframe","speed","min","timeWithoutDelay","isInDelayPhase","max","elapsed","frameGenerator","progress","currentIteration","floor","iterationProgress","Boolean","clamp","done","value","isAnimationFinished","inertia","getFinalKeyframe","finish","then","resolve","reject","finished","duration","millisecondsToSeconds","newTime","secondsToMilliseconds","driver","newSpeed","hasChanged","frameloopDriver","onPlay","updateFinished","start","complete","onComplete","cancel","notifyFinished","stopDriver","sampleTime","attachTimeline","timeline","allowFlatten","ease","observe"],"mappings":"8sBAYA,MAAMA,EAAqBC,GAAYA,EAAU,IACjD,MAAMC,UAAoBC,EAAAA,YACtBC,WAAAA,CAAYC,GACRC,QACAC,KAAKC,MAAQ,OACbD,KAAKE,UAAY,KACjBF,KAAKG,WAAY,EAIjBH,KAAKI,YAAc,EAInBJ,KAAKK,SAAW,KAIhBL,KAAKM,cAAgB,EAKrBN,KAAKO,KAAO,KACR,MAAMC,YAAEA,GAAgBR,KAAKF,QAK7B,GAJIU,GAAeA,EAAYC,YAAcC,EAAIA,KAACC,OAC9CX,KAAKY,KAAKF,OAAKC,OAEnBX,KAAKG,WAAY,EACE,SAAfH,KAAKC,MACL,OACJD,KAAKa,WACL,MAAMC,OAAEA,GAAWd,KAAKF,QACxBgB,GAAUA,GAAQ,EAGtBd,KAAKF,QAAUA,EACfE,KAAKe,gBACLf,KAAKgB,QACoB,IAArBlB,EAAQmB,UACRjB,KAAKkB,OACb,CACAH,aAAAA,GACI,MAAMjB,QAAEA,GAAYE,KACpBmB,EAAqBA,sBAACrB,GACtB,MAAMsB,KAAEA,EAAOC,EAASA,UAAAC,OAAEA,EAAS,EAACC,YAAEA,EAAc,EAACC,WAAEA,EAAUC,SAAEA,EAAW,GAAO3B,EACrF,IAAMuB,UAAWK,GAAgB5B,EACjC,MAAM6B,EAAmBP,GAAQC,YACJ,eAAzBO,QAAQC,IAAIC,UACZH,IAAqBN,EAAAA,WACrBU,EAASA,UAACL,EAAYM,QAAU,EAAG,gGAAgGN,KAEnIC,IAAqBN,EAAAA,WACK,iBAAnBK,EAAY,KACnB1B,KAAKiC,aAAeC,OAAKzC,EAAmB0C,EAAGA,IAACT,EAAY,GAAIA,EAAY,KAC5EA,EAAc,CAAC,EAAG,MAEtB,MAAMU,EAAYT,EAAiB,IAAK7B,EAASuB,UAAWK,IAKzC,WAAfF,IACAxB,KAAKqC,kBAAoBV,EAAiB,IACnC7B,EACHuB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,KAAKC,OACLD,KAAKgB,OAEThB,KAAKC,MAAQ,WACbD,KAAKK,SAAW,IACpB,CACAoE,MAAAA,GACIzE,KAAKa,WACLb,KAAKC,MAAQ,WACb,MAAMyF,WAAEA,GAAe1F,KAAKF,QAC5B4F,GAAcA,GAClB,CACAC,MAAAA,GACI3F,KAAKK,SAAW,KAChBL,KAAKE,UAAY,EACjBF,KAAKY,KAAK,GACVZ,KAAKa,UACT,CACAA,QAAAA,GACIb,KAAK4F,iBACL5F,KAAKC,MAAQ,OACbD,KAAK6F,aACL7F,KAAKE,UAAYF,KAAKK,SAAW,IAErC,CACAwF,UAAAA,GACS7F,KAAKkF,SAEVlF,KAAKkF,OAAO3E,OACZP,KAAKkF,YAAShC,EAClB,CACAF,MAAAA,CAAO8C,GAEH,OADA9F,KAAKE,UAAY,EACVF,KAAKY,KAAKkF,GAAY,EACjC,CACAC,cAAAA,CAAeC,GAMX,OALIhG,KAAKF,QAAQmG,eACbjG,KAAKF,QAAQsB,KAAO,YACpBpB,KAAKF,QAAQoG,KAAO,SACpBlG,KAAKe,iBAEFiF,EAASG,QAAQnG,KAC5B"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../render/dom/style-set.mjs.js"),t=require("../utils/supports/scroll-timeline.mjs.js"),e=require("./keyframes/get-final.mjs.js"),s=require("./utils/WithPromise.mjs.js"),n=require("./waapi/start-waapi-animation.mjs.js"),a=require("./waapi/utils/apply-generator.mjs.js"),o=require("../../../../motion-utils/dist/es/errors.mjs.js"),m=require("../../../../motion-utils/dist/es/time-conversion.mjs.js"),r=require("../../../../motion-utils/dist/es/noop.mjs.js");class l extends s.WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:s,name:m,keyframes:r,pseudoElement:l,allowFlatten:h=!1,finalKeyframe:u,onComplete:p}=t;this.isPseudoElement=Boolean(l),this.allowFlatten=h,this.options=t,o.invariant("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const d=a.applyGeneratorOptions(t);this.animation=n.startWaapiAnimation(s,m,r,d,l),!1===d.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const t=e.getFinalKeyframe(r,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(t),i.setStyle(s,m,t),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(i){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;"idle"!==i&&"finished"!==i&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return m.millisecondsToSeconds(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+m.millisecondsToSeconds(i)}get time(){return m.millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(i){const t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=m.secondsToMilliseconds(i),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline(i){let{timeline:e,rangeStart:s,rangeEnd:n,observe:a}=i;return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&t.supportsScrollTimeline()?(this.animation.timeline=e,s&&(this.animation.rangeStart=s),n&&(this.animation.rangeEnd=n),r.noop):a(this)}}exports.NativeAnimation=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../render/dom/style-set.mjs.js"),t=require("../utils/supports/scroll-timeline.mjs.js"),e=require("./keyframes/get-final.mjs.js"),s=require("./utils/WithPromise.mjs.js"),n=require("./waapi/start-waapi-animation.mjs.js"),a=require("./waapi/utils/apply-generator.mjs.js"),o=require("../../../../motion-utils/dist/es/errors.mjs.js"),m=require("../../../../motion-utils/dist/es/time-conversion.mjs.js"),r=require("../../../../motion-utils/dist/es/noop.mjs.js");class l extends s.WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:s,name:m,keyframes:r,pseudoElement:l,allowFlatten:h=!1,finalKeyframe:u,onComplete:p}=t;this.isPseudoElement=Boolean(l),this.allowFlatten=h,this.options=t,o.invariant("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');const d=a.applyGeneratorOptions(t);this.animation=n.startWaapiAnimation(s,m,r,d,l),!1===d.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const t=e.getFinalKeyframe(r,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.setStyle(s,m,t),this.animation.cancel()}p?.(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(i){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;"idle"!==i&&"finished"!==i&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return m.millisecondsToSeconds(Number(i))}get time(){return m.millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=m.secondsToMilliseconds(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline(i){let{timeline:e,observe:s}=i;return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&t.supportsScrollTimeline()?(this.animation.timeline=e,r.noop):s(this)}}exports.NativeAnimation=l;
2
2
  //# sourceMappingURL=NativeAnimation.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAnimation.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs"],"sourcesContent":["import { invariant, millisecondsToSeconds, secondsToMilliseconds, noop } from 'motion-utils';\nimport { setStyle } from '../render/dom/style-set.mjs';\nimport { supportsScrollTimeline } from '../utils/supports/scroll-timeline.mjs';\nimport { getFinalKeyframe } from './keyframes/get-final.mjs';\nimport { WithPromise } from './utils/WithPromise.mjs';\nimport { startWaapiAnimation } from './waapi/start-waapi-animation.mjs';\nimport { applyGeneratorOptions } from './waapi/utils/apply-generator.mjs';\n\n/**\n * NativeAnimation implements AnimationPlaybackControls for the browser's Web Animations API.\n */\nclass NativeAnimation extends WithPromise {\n constructor(options) {\n super();\n this.finishedTime = null;\n this.isStopped = false;\n /**\n * Tracks a manually-set start time that takes precedence over WAAPI's\n * dynamic startTime. This is cleared when play() or time setter is called,\n * allowing WAAPI to take over timing.\n */\n this.manualStartTime = null;\n if (!options)\n return;\n const { element, name, keyframes, pseudoElement, allowFlatten = false, finalKeyframe, onComplete, } = options;\n this.isPseudoElement = Boolean(pseudoElement);\n this.allowFlatten = allowFlatten;\n this.options = options;\n invariant(typeof options.type !== \"string\", `Mini animate() doesn't support \"type\" as a string.`, \"mini-spring\");\n const transition = applyGeneratorOptions(options);\n this.animation = startWaapiAnimation(element, name, keyframes, transition, pseudoElement);\n if (transition.autoplay === false) {\n this.animation.pause();\n }\n this.animation.onfinish = () => {\n this.finishedTime = this.time;\n if (!pseudoElement) {\n const keyframe = getFinalKeyframe(keyframes, this.options, finalKeyframe, this.speed);\n if (this.updateMotionValue) {\n this.updateMotionValue(keyframe);\n }\n /**\n * If we can, we want to commit the final style as set by the user,\n * rather than the computed keyframe value supplied by the animation.\n * We always do this, even when a motion value is present, to prevent\n * a visual flash in Firefox where the WAAPI animation's fill is removed\n * during cancel() before the scheduled render can apply the correct value.\n */\n setStyle(element, name, keyframe);\n this.animation.cancel();\n }\n onComplete?.();\n this.notifyFinished();\n };\n }\n play() {\n if (this.isStopped)\n return;\n this.manualStartTime = null;\n this.animation.play();\n if (this.state === \"finished\") {\n this.updateFinished();\n }\n }\n pause() {\n this.animation.pause();\n }\n complete() {\n this.animation.finish?.();\n }\n cancel() {\n try {\n this.animation.cancel();\n }\n catch (e) { }\n }\n stop() {\n if (this.isStopped)\n return;\n this.isStopped = true;\n const { state } = this;\n if (state === \"idle\" || state === \"finished\") {\n return;\n }\n if (this.updateMotionValue) {\n this.updateMotionValue();\n }\n else {\n this.commitStyles();\n }\n if (!this.isPseudoElement)\n this.cancel();\n }\n /**\n * WAAPI doesn't natively have any interruption capabilities.\n *\n * In this method, we commit styles back to the DOM before cancelling\n * the animation.\n *\n * This is designed to be overridden by NativeAnimationExtended, which\n * will create a renderless JS animation and sample it twice to calculate\n * its current value, \"previous\" value, and therefore allow\n * Motion to also correctly calculate velocity for any subsequent animation\n * while deferring the commit until the next animation frame.\n */\n commitStyles() {\n const element = this.options?.element;\n if (!this.isPseudoElement && element?.isConnected) {\n this.animation.commitStyles?.();\n }\n }\n get duration() {\n const duration = this.animation.effect?.getComputedTiming?.().duration || 0;\n return millisecondsToSeconds(Number(duration));\n }\n get iterationDuration() {\n const { delay = 0 } = this.options || {};\n return this.duration + millisecondsToSeconds(delay);\n }\n get time() {\n return millisecondsToSeconds(Number(this.animation.currentTime) || 0);\n }\n set time(newTime) {\n const wasFinished = this.finishedTime !== null;\n this.manualStartTime = null;\n this.finishedTime = null;\n this.animation.currentTime = secondsToMilliseconds(newTime);\n if (wasFinished) {\n this.animation.pause();\n }\n }\n /**\n * The playback speed of the animation.\n * 1 = normal speed, 2 = double speed, 0.5 = half speed.\n */\n get speed() {\n return this.animation.playbackRate;\n }\n set speed(newSpeed) {\n // Allow backwards playback after finishing\n if (newSpeed < 0)\n this.finishedTime = null;\n this.animation.playbackRate = newSpeed;\n }\n get state() {\n return this.finishedTime !== null\n ? \"finished\"\n : this.animation.playState;\n }\n get startTime() {\n return this.manualStartTime ?? Number(this.animation.startTime);\n }\n set startTime(newStartTime) {\n this.manualStartTime = this.animation.startTime = newStartTime;\n }\n /**\n * Attaches a timeline to the animation, for instance the `ScrollTimeline`.\n */\n attachTimeline({ timeline, rangeStart, rangeEnd, observe, }) {\n if (this.allowFlatten) {\n this.animation.effect?.updateTiming({ easing: \"linear\" });\n }\n this.animation.onfinish = null;\n if (timeline && supportsScrollTimeline()) {\n this.animation.timeline = timeline;\n if (rangeStart)\n this.animation.rangeStart = rangeStart;\n if (rangeEnd)\n this.animation.rangeEnd = rangeEnd;\n return noop;\n }\n else {\n return observe(this);\n }\n }\n}\n\nexport { NativeAnimation };\n//# sourceMappingURL=NativeAnimation.mjs.map\n"],"names":["NativeAnimation","WithPromise","constructor","options","super","this","finishedTime","isStopped","manualStartTime","element","name","keyframes","pseudoElement","allowFlatten","finalKeyframe","onComplete","isPseudoElement","Boolean","invariant","type","transition","applyGeneratorOptions","animation","startWaapiAnimation","autoplay","pause","onfinish","time","keyframe","getFinalKeyframe","speed","updateMotionValue","setStyle","cancel","notifyFinished","play","state","updateFinished","complete","finish","e","stop","commitStyles","isConnected","duration","effect","getComputedTiming","millisecondsToSeconds","Number","iterationDuration","delay","currentTime","newTime","wasFinished","secondsToMilliseconds","playbackRate","newSpeed","playState","startTime","newStartTime","attachTimeline","_ref","timeline","rangeStart","rangeEnd","observe","updateTiming","easing","supportsScrollTimeline","noop"],"mappings":"2hBA4BM,MAAOA,UACDC,EAAAA,YAyBRC,WAAAA,CAAYC,GAGR,GAF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ACZ/D,KAAKiB,UAAUwC,SAAWA,EAEtBC,IAAa1D,KAAKiB,UAAkByC,WAAaA,GACjDC,IAAW3D,KAAKiB,UAAkB0C,SAAWA,GAE1CK,QAEAJ,EAAQ5D,KAEvB"}
1
+ {"version":3,"file":"NativeAnimation.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs"],"sourcesContent":["import { invariant, millisecondsToSeconds, secondsToMilliseconds, noop } from 'motion-utils';\nimport { setStyle } from '../render/dom/style-set.mjs';\nimport { supportsScrollTimeline } from '../utils/supports/scroll-timeline.mjs';\nimport { getFinalKeyframe } from './keyframes/get-final.mjs';\nimport { WithPromise } from './utils/WithPromise.mjs';\nimport { startWaapiAnimation } from './waapi/start-waapi-animation.mjs';\nimport { applyGeneratorOptions } from './waapi/utils/apply-generator.mjs';\n\n/**\n * NativeAnimation implements AnimationPlaybackControls for the browser's Web Animations API.\n */\nclass NativeAnimation extends WithPromise {\n constructor(options) {\n super();\n this.finishedTime = null;\n this.isStopped = false;\n if (!options)\n return;\n const { element, name, keyframes, pseudoElement, allowFlatten = false, finalKeyframe, onComplete, } = options;\n this.isPseudoElement = Boolean(pseudoElement);\n this.allowFlatten = allowFlatten;\n this.options = options;\n invariant(typeof options.type !== \"string\", `animateMini doesn't support \"type\" as a string. Did you mean to import { spring } from \"motion\"?`);\n const transition = applyGeneratorOptions(options);\n this.animation = startWaapiAnimation(element, name, keyframes, transition, pseudoElement);\n if (transition.autoplay === false) {\n this.animation.pause();\n }\n this.animation.onfinish = () => {\n this.finishedTime = this.time;\n if (!pseudoElement) {\n const keyframe = getFinalKeyframe(keyframes, this.options, finalKeyframe, this.speed);\n if (this.updateMotionValue) {\n this.updateMotionValue(keyframe);\n }\n else {\n /**\n * If we can, we want to commit the final style as set by the user,\n * rather than the computed keyframe value supplied by the animation.\n */\n setStyle(element, name, keyframe);\n }\n this.animation.cancel();\n }\n onComplete?.();\n this.notifyFinished();\n };\n /**\n * TODO: In a breaking change, we should replace this with `.notifyCancel()`\n */\n this.animation.oncancel = () => this.notifyFinished();\n }\n play() {\n if (this.isStopped)\n return;\n this.animation.play();\n if (this.state === \"finished\") {\n this.updateFinished();\n }\n }\n pause() {\n this.animation.pause();\n }\n complete() {\n this.animation.finish?.();\n }\n cancel() {\n try {\n this.animation.cancel();\n }\n catch (e) { }\n }\n stop() {\n if (this.isStopped)\n return;\n this.isStopped = true;\n const { state } = this;\n if (state === \"idle\" || state === \"finished\") {\n return;\n }\n if (this.updateMotionValue) {\n this.updateMotionValue();\n }\n else {\n this.commitStyles();\n }\n if (!this.isPseudoElement)\n this.cancel();\n }\n /**\n * WAAPI doesn't natively have any interruption capabilities.\n *\n * In this method, we commit styles back to the DOM before cancelling\n * the animation.\n *\n * This is designed to be overridden by NativeAnimationExtended, which\n * will create a renderless JS animation and sample it twice to calculate\n * its current value, \"previous\" value, and therefore allow\n * Motion to also correctly calculate velocity for any subsequent animation\n * while deferring the commit until the next animation frame.\n */\n commitStyles() {\n if (!this.isPseudoElement) {\n this.animation.commitStyles?.();\n }\n }\n get duration() {\n const duration = this.animation.effect?.getComputedTiming?.().duration || 0;\n return millisecondsToSeconds(Number(duration));\n }\n get time() {\n return millisecondsToSeconds(Number(this.animation.currentTime) || 0);\n }\n set time(newTime) {\n this.finishedTime = null;\n this.animation.currentTime = secondsToMilliseconds(newTime);\n }\n /**\n * The playback speed of the animation.\n * 1 = normal speed, 2 = double speed, 0.5 = half speed.\n */\n get speed() {\n return this.animation.playbackRate;\n }\n set speed(newSpeed) {\n // Allow backwards playback after finishing\n if (newSpeed < 0)\n this.finishedTime = null;\n this.animation.playbackRate = newSpeed;\n }\n get state() {\n return this.finishedTime !== null\n ? \"finished\"\n : this.animation.playState;\n }\n get startTime() {\n return Number(this.animation.startTime);\n }\n set startTime(newStartTime) {\n this.animation.startTime = newStartTime;\n }\n /**\n * Attaches a timeline to the animation, for instance the `ScrollTimeline`.\n */\n attachTimeline({ timeline, observe }) {\n if (this.allowFlatten) {\n this.animation.effect?.updateTiming({ easing: \"linear\" });\n }\n this.animation.onfinish = null;\n if (timeline && supportsScrollTimeline()) {\n this.animation.timeline = timeline;\n return noop;\n }\n else {\n return observe(this);\n }\n }\n}\n\nexport { NativeAnimation };\n"],"names":["NativeAnimation","WithPromise","constructor","options","super","this","finishedTime","isStopped","element","name","keyframes","pseudoElement","allowFlatten","finalKeyframe","onComplete","isPseudoElement","Boolean","invariant","type","transition","applyGeneratorOptions","animation","startWaapiAnimation","autoplay","pause","onfinish","time","keyframe","getFinalKeyframe","speed","updateMotionValue","setStyle","cancel","notifyFinished","oncancel","play","state","updateFinished","complete","finish","e","stop","commitStyles","duration","effect","getComputedTiming","millisecondsToSeconds","Number","currentTime","newTime","secondsToMilliseconds","playbackRate","newSpeed","playState","startTime","newStartTime","attachTimeline","_ref","timeline","observe","updateTiming","easing","supportsScrollTimeline","noop"],"mappings":"2hBAWA,MAAMA,UAAwBC,EAAAA,YAC1BC,WAAAA,CAAYC,GAIR,GAHAC,QACAC,KAAKC,aAAe,KACpBD,KAAKE,WAAY,GACZJ,EACD,OACJ,MAAMK,QAAEA,EAAOC,KAAEA,EAAIC,UAAEA,EAASC,cAAEA,EAAaC,aAAEA,GAAe,EAAKC,cAAEA,EAAaC,WAAEA,GAAgBX,EACtGE,KAAKU,gBAAkBC,QAAQL,GAC/BN,KAAKO,aAAeA,EACpBP,KAAKF,QAAUA,EACfc,EAASA,UAAyB,iBAAjBd,EAAQe,KAAmB,qGAC5C,MAAMC,EAAaC,wBAAsBjB,GACzCE,KAAKgB,UAAYC,EAAAA,oBAAoBd,EAASC,EAAMC,EAAWS,EAAYR,IAC/C,IAAxBQ,EAAWI,UACXlB,KAAKgB,UAAUG,QAEnBnB,KAAKgB,UAAUI,SAAW,KAEtB,GADApB,KAAKC,aAAeD,KAAKqB,MACpBf,EAAe,CAChB,MAAMgB,EAAWC,EAAgBA,iBAAClB,EAAWL,KAAKF,QAASU,EAAeR,KAAKwB,OAC3ExB,KAA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,OAAO1C,KAAKgB,UAAUiC,UACjC,CACA,aAAIA,CAAUC,GACVlD,KAAKgB,UAAUiC,UAAYC,CAC/B,CAIAC,cAAAA,CAAcC,GAAwB,IAAvBC,SAAEA,EAAQC,QAAEA,GAASF,EAKhC,OAJIpD,KAAKO,cACLP,KAAKgB,UAAUuB,QAAQgB,aAAa,CAAEC,OAAQ,WAElDxD,KAAKgB,UAAUI,SAAW,KACtBiC,GAAYI,EAAAA,0BACZzD,KAAKgB,UAAUqC,SAAWA,EACnBK,QAGAJ,EAAQtD,KAEvB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../frameloop/sync-time.mjs.js"),t=require("../render/dom/style-set.mjs.js"),i=require("./JSAnimation.mjs.js"),s=require("./NativeAnimation.mjs.js"),a=require("./utils/replace-transition-type.mjs.js"),o=require("./waapi/utils/unsupported-easing.mjs.js"),r=require("../../../../motion-utils/dist/es/clamp.mjs.js");class n extends s.NativeAnimation{constructor(e){o.replaceStringEasing(e),a.replaceTransitionType(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(s){const{motionValue:a,onUpdate:o,onComplete:n,element:m,...p}=this.options;if(!a)return;if(void 0!==s)return void a.set(s);const u=new i.JSAnimation({...p,autoplay:!1}),l=Math.max(10,e.time.now()-this.startTime),j=r.clamp(0,10,l-10),c=u.sample(l).value,{name:d}=this.options;m&&d&&t.setStyle(m,d,c),a.setWithVelocity(u.sample(Math.max(0,l-j)).value,c,j),u.stop()}}exports.NativeAnimationExtended=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./JSAnimation.mjs.js"),t=require("./NativeAnimation.mjs.js"),i=require("./utils/replace-transition-type.mjs.js"),s=require("./waapi/utils/unsupported-easing.mjs.js"),n=require("../../../../motion-utils/dist/es/time-conversion.mjs.js");class o extends t.NativeAnimation{constructor(e){s.replaceStringEasing(e),i.replaceTransitionType(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(t){const{motionValue:i,onUpdate:s,onComplete:o,element:r,...a}=this.options;if(!i)return;if(void 0!==t)return void i.set(t);const u=new e.JSAnimation({...a,autoplay:!1}),m=n.secondsToMilliseconds(this.finishedTime??this.time);i.setWithVelocity(u.sample(m-10).value,u.sample(m).value,10),u.stop()}}exports.NativeAnimationExtended=o;
2
2
  //# sourceMappingURL=NativeAnimationExtended.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAnimationExtended.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs"],"sourcesContent":["import { clamp } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { setStyle } from '../render/dom/style-set.mjs';\nimport { JSAnimation } from './JSAnimation.mjs';\nimport { NativeAnimation } from './NativeAnimation.mjs';\nimport { replaceTransitionType } from './utils/replace-transition-type.mjs';\nimport { replaceStringEasing } from './waapi/utils/unsupported-easing.mjs';\n\n/**\n * 10ms is chosen here as it strikes a balance between smooth\n * results (more than one keyframe per frame at 60fps) and\n * keyframe quantity.\n */\nconst sampleDelta = 10; //ms\nclass NativeAnimationExtended extends NativeAnimation {\n constructor(options) {\n /**\n * The base NativeAnimation function only supports a subset\n * of Motion easings, and WAAPI also only supports some\n * easing functions via string/cubic-bezier definitions.\n *\n * This function replaces those unsupported easing functions\n * with a JS easing function. This will later get compiled\n * to a linear() easing function.\n */\n replaceStringEasing(options);\n /**\n * Ensure we replace the transition type with a generator function\n * before passing to WAAPI.\n *\n * TODO: Does this have a better home? It could be shared with\n * JSAnimation.\n */\n replaceTransitionType(options);\n super(options);\n /**\n * Only set startTime when the animation should autoplay.\n * Setting startTime on a paused WAAPI animation unpauses it\n * (per the WAAPI spec), which breaks autoplay: false.\n */\n if (options.startTime !== undefined && options.autoplay !== false) {\n this.startTime = options.startTime;\n }\n this.options = options;\n }\n /**\n * WAAPI doesn't natively have any interruption capabilities.\n *\n * Rather than read committed styles back out of the DOM, we can\n * create a renderless JS animation and sample it twice to calculate\n * its current value, \"previous\" value, and therefore allow\n * Motion to calculate velocity for any subsequent animation.\n */\n updateMotionValue(value) {\n const { motionValue, onUpdate, onComplete, element, ...options } = this.options;\n if (!motionValue)\n return;\n if (value !== undefined) {\n motionValue.set(value);\n return;\n }\n const sampleAnimation = new JSAnimation({\n ...options,\n autoplay: false,\n });\n /**\n * Use wall-clock elapsed time for sampling.\n * Under CPU load, WAAPI's currentTime may not reflect actual\n * elapsed time, causing incorrect sampling and visual jumps.\n */\n const sampleTime = Math.max(sampleDelta, time.now() - this.startTime);\n const delta = clamp(0, sampleDelta, sampleTime - sampleDelta);\n const current = sampleAnimation.sample(sampleTime).value;\n /**\n * Write the estimated value to inline style so it persists\n * after cancel(), covering the async gap before the next\n * animation starts.\n */\n const { name } = this.options;\n if (element && name)\n setStyle(element, name, current);\n motionValue.setWithVelocity(sampleAnimation.sample(Math.max(0, sampleTime - delta)).value, current, delta);\n sampleAnimation.stop();\n }\n}\n\nexport { NativeAnimationExtended };\n//# sourceMappingURL=NativeAnimationExtended.mjs.map\n"],"names":["NativeAnimationExtended","NativeAnimation","constructor","options","replaceStringEasing","replaceTransitionType","super","undefined","startTime","autoplay","this","updateMotionValue","value","motionValue","onUpdate","onComplete","element","set","sampleAnimation","JSAnimation","sampleTime","Math","max","time","now","delta","clamp","current","sample","name","setStyle","setWithVelocity","stop"],"mappings":"2YAmBM,MAAOA,UAEHC,EAAAA,gBAGNC,WAAAA,CAAYC,GAURC,EAAmBA,oBAACD,GASpBE,EAAqBA,sBAACF,GAEtBG,MAAMH,QAOoBI,IAAtBJ,EAAQK,YAAgD,IAArBL,EAAQM,WAC3CC,KAAKF,UAAYL,EAAQK,WAG7BE,KAAKP,QAAUA,CACnB,CAUAQ,iBAAAA,CAAkBC,GACd,MAAMC,YAAEA,EAAWC,SAAEA,EAAQC,WAAEA,EAAUC,QAAEA,KAAYb,GACnDO,KAAKP,QAET,IAAKU,EAAa,OAElB,QAAcN,IAAVK,EAEA,YADAC,EAAYI,IAAIL,GAIpB,MAAMM,EAAkB,IAAIC,cAAY,IACjChB,EACHM,UAAU,IAQRW,EAAaC,KAAKC,IAvEZ,GAuE6BC,EAAIA,KAACC,MAAQd,KAAKF,WACrDiB,EAAQC,EAAAA,MAAM,EAxER,GAwEwBN,EAxExB,IAyENO,EAAUT,EAAgBU,OAAOR,GAAYR,OAO7CiB,KAAEA,GAASnB,KAAKP,QAClBa,GAAWa,GAAMC,EAAAA,SAASd,EAASa,EAAMF,GAE7Cd,EAAYkB,gBACRb,EAAgBU,OAAOP,KAAKC,IAAI,EAAGF,EAAaK,IAAQb,MACxDe,EACAF,GAGJP,EAAgBc,MACpB"}
1
+ {"version":3,"file":"NativeAnimationExtended.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs"],"sourcesContent":["import { secondsToMilliseconds } from 'motion-utils';\nimport { JSAnimation } from './JSAnimation.mjs';\nimport { NativeAnimation } from './NativeAnimation.mjs';\nimport { replaceTransitionType } from './utils/replace-transition-type.mjs';\nimport { replaceStringEasing } from './waapi/utils/unsupported-easing.mjs';\n\n/**\n * 10ms is chosen here as it strikes a balance between smooth\n * results (more than one keyframe per frame at 60fps) and\n * keyframe quantity.\n */\nconst sampleDelta = 10; //ms\nclass NativeAnimationExtended extends NativeAnimation {\n constructor(options) {\n /**\n * The base NativeAnimation function only supports a subset\n * of Motion easings, and WAAPI also only supports some\n * easing functions via string/cubic-bezier definitions.\n *\n * This function replaces those unsupported easing functions\n * with a JS easing function. This will later get compiled\n * to a linear() easing function.\n */\n replaceStringEasing(options);\n /**\n * Ensure we replace the transition type with a generator function\n * before passing to WAAPI.\n *\n * TODO: Does this have a better home? It could be shared with\n * JSAnimation.\n */\n replaceTransitionType(options);\n super(options);\n if (options.startTime) {\n this.startTime = options.startTime;\n }\n this.options = options;\n }\n /**\n * WAAPI doesn't natively have any interruption capabilities.\n *\n * Rather than read commited styles back out of the DOM, we can\n * create a renderless JS animation and sample it twice to calculate\n * its current value, \"previous\" value, and therefore allow\n * Motion to calculate velocity for any subsequent animation.\n */\n updateMotionValue(value) {\n const { motionValue, onUpdate, onComplete, element, ...options } = this.options;\n if (!motionValue)\n return;\n if (value !== undefined) {\n motionValue.set(value);\n return;\n }\n const sampleAnimation = new JSAnimation({\n ...options,\n autoplay: false,\n });\n const sampleTime = secondsToMilliseconds(this.finishedTime ?? this.time);\n motionValue.setWithVelocity(sampleAnimation.sample(sampleTime - sampleDelta).value, sampleAnimation.sample(sampleTime).value, sampleDelta);\n sampleAnimation.stop();\n }\n}\n\nexport { NativeAnimationExtended };\n"],"names":["NativeAnimationExtended","NativeAnimation","constructor","options","replaceStringEasing","replaceTransitionType","super","startTime","this","updateMotionValue","value","motionValue","onUpdate","onComplete","element","undefined","set","sampleAnimation","JSAnimation","autoplay","sampleTime","secondsToMilliseconds","finishedTime","time","setWithVelocity","sample","stop"],"mappings":"8TAYA,MAAMA,UAAgCC,EAAAA,gBAClCC,WAAAA,CAAYC,GAURC,EAAmBA,oBAACD,GAQpBE,EAAqBA,sBAACF,GACtBG,MAAMH,GACFA,EAAQI,YACRC,KAAKD,UAAYJ,EAAQI,WAE7BC,KAAKL,QAAUA,CACnB,CASAM,iBAAAA,CAAkBC,GACd,MAAMC,YAAEA,EAAWC,SAAEA,EAAQC,WAAEA,EAAUC,QAAEA,KAAYX,GAAYK,KAAKL,QACxE,IAAKQ,EACD,OACJ,QAAcI,IAAVL,EAEA,YADAC,EAAYK,IAAIN,GAGpB,MAAMO,EAAkB,IAAIC,cAAY,IACjCf,EACHgB,UAAU,IAERC,EAAaC,EAAAA,sBAAsBb,KAAKc,cAAgBd,KAAKe,MACnEZ,EAAYa,gBAAgBP,EAAgBQ,OAAOL,EAhDvC,IAgDiEV,MAAOO,EAAgBQ,OAAOL,GAAYV,MAhD3G,IAiDZO,EAAgBS,MACpB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../frameloop/sync-time.mjs.js"),r=require("../../frameloop/frame.mjs.js");exports.frameloopDriver=t=>{const a=e=>{let{timestamp:r}=e;return t(r)};return{start:()=>r.frame.update(a,!0),stop:()=>r.cancelFrame(a),now:()=>r.frameData.isProcessing?r.frameData.timestamp:e.time.now()}};
2
+ //# sourceMappingURL=driver-frameloop.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"driver-frameloop.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs"],"sourcesContent":["import { time } from '../../frameloop/sync-time.mjs';\nimport { frame, cancelFrame, frameData } from '../../frameloop/frame.mjs';\n\nconst frameloopDriver = (update) => {\n const passTimestamp = ({ timestamp }) => update(timestamp);\n return {\n start: () => frame.update(passTimestamp, true),\n stop: () => cancelFrame(passTimestamp),\n /**\n * If we're processing this frame we can use the\n * framelocked timestamp to keep things in sync.\n */\n now: () => (frameData.isProcessing ? frameData.timestamp : time.now()),\n };\n};\n\nexport { frameloopDriver };\n"],"names":["update","passTimestamp","_ref","timestamp","start","frame","stop","cancelFrame","now","frameData","isProcessing","time"],"mappings":"wLAGyBA,IACrB,MAAMC,EAAgBC,IAAA,IAACC,UAAEA,GAAWD,EAAA,OAAKF,EAAOG,EAAU,EAC1D,MAAO,CACHC,MAAOA,IAAMC,EAAKA,MAACL,OAAOC,GAAe,GACzCK,KAAMA,IAAMC,EAAWA,YAACN,GAKxBO,IAAKA,IAAOC,EAAAA,UAAUC,aAAeD,EAASA,UAACN,UAAYQ,EAAIA,KAACH,MACnE"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./spring.mjs.js"),t=require("./utils/velocity.mjs.js");exports.inertia=function(s){let{keyframes:o,velocity:a=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:l=500,modifyTarget:u,min:v,max:d,restDelta:c=.5,restSpeed:p}=s;const m=o[0],f={done:!1,value:m},y=e=>void 0===v?d:void 0===d||Math.abs(v-e)<Math.abs(d-e)?v:d;let b=n*a;const g=m+b,x=void 0===u?g:u(g);x!==g&&(b=x-m);const j=e=>-b*Math.exp(-e/i),M=e=>x+j(e),h=e=>{const t=j(e),s=M(e);f.done=Math.abs(t)<=c,f.value=f.done?x:s};let D,S;const k=s=>{var o;(o=f.value,void 0!==v&&o<v||void 0!==d&&o>d)&&(D=s,S=e.spring({keyframes:[f.value,y(f.value)],velocity:t.getGeneratorVelocity(M,s,f.value),damping:r,stiffness:l,restDelta:c,restSpeed:p}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return S||void 0!==D||(t=!0,h(e),k(e)),void 0!==D&&e>=D?S.next(e-D):(!t&&h(e),f)}}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./spring/index.mjs.js"),t=require("./utils/velocity.mjs.js");exports.inertia=function(s){let{keyframes:a,velocity:n=0,power:o=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:l=500,modifyTarget:u,min:v,max:c,restDelta:d=.5,restSpeed:p}=s;const m=a[0],f={done:!1,value:m},y=e=>void 0===v?c:void 0===c||Math.abs(v-e)<Math.abs(c-e)?v:c;let x=o*n;const b=m+x,g=void 0===u?b:u(b);g!==b&&(x=g-m);const j=e=>-x*Math.exp(-e/i),M=e=>g+j(e),h=e=>{const t=j(e),s=M(e);f.done=Math.abs(t)<=d,f.value=f.done?g:s};let D,S;const k=s=>{var a;(a=f.value,void 0!==v&&a<v||void 0!==c&&a>c)&&(D=s,S=e.spring({keyframes:[f.value,y(f.value)],velocity:t.calcGeneratorVelocity(M,s,f.value),damping:r,stiffness:l,restDelta:d,restSpeed:p}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return S||void 0!==D||(t=!0,h(e),k(e)),void 0!==D&&e>=D?S.next(e-D):(!t&&h(e),f)}}};
2
2
  //# sourceMappingURL=inertia.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"inertia.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/generators/inertia.mjs"],"sourcesContent":["import { spring } from './spring.mjs';\nimport { getGeneratorVelocity } from './utils/velocity.mjs';\n\nfunction inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed, }) {\n const origin = keyframes[0];\n const state = {\n done: false,\n value: origin,\n };\n const isOutOfBounds = (v) => (min !== undefined && v < min) || (max !== undefined && v > max);\n const nearestBoundary = (v) => {\n if (min === undefined)\n return max;\n if (max === undefined)\n return min;\n return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n };\n let amplitude = power * velocity;\n const ideal = origin + amplitude;\n const target = modifyTarget === undefined ? ideal : modifyTarget(ideal);\n /**\n * If the target has changed we need to re-calculate the amplitude, otherwise\n * the animation will start from the wrong position.\n */\n if (target !== ideal)\n amplitude = target - origin;\n const calcDelta = (t) => -amplitude * Math.exp(-t / timeConstant);\n const calcLatest = (t) => target + calcDelta(t);\n const applyFriction = (t) => {\n const delta = calcDelta(t);\n const latest = calcLatest(t);\n state.done = Math.abs(delta) <= restDelta;\n state.value = state.done ? target : latest;\n };\n /**\n * Ideally this would resolve for t in a stateless way, we could\n * do that by always precalculating the animation but as we know\n * this will be done anyway we can assume that spring will\n * be discovered during that.\n */\n let timeReachedBoundary;\n let spring$1;\n const checkCatchBoundary = (t) => {\n if (!isOutOfBounds(state.value))\n return;\n timeReachedBoundary = t;\n spring$1 = spring({\n keyframes: [state.value, nearestBoundary(state.value)],\n velocity: getGeneratorVelocity(calcLatest, t, state.value), // TODO: This should be passing * 1000\n damping: bounceDamping,\n stiffness: bounceStiffness,\n restDelta,\n restSpeed,\n });\n };\n checkCatchBoundary(0);\n return {\n calculatedDuration: null,\n next: (t) => {\n /**\n * We need to resolve the friction to figure out if we need a\n * spring but we don't want to do this twice per frame. So here\n * we flag if we updated for this frame and later if we did\n * we can skip doing it again.\n */\n let hasUpdatedFrame = false;\n if (!spring$1 && timeReachedBoundary === undefined) {\n hasUpdatedFrame = true;\n applyFriction(t);\n checkCatchBoundary(t);\n }\n /**\n * If we have a spring and the provided t is beyond the moment the friction\n * animation crossed the min/max boundary, use the spring.\n */\n if (timeReachedBoundary !== undefined && t >= timeReachedBoundary) {\n return spring$1.next(t - timeReachedBoundary);\n }\n else {\n !hasUpdatedFrame && applyFriction(t);\n return state;\n }\n },\n };\n}\n\nexport { inertia };\n//# sourceMappingURL=inertia.mjs.map\n"],"names":["_ref","keyframes","velocity","power","timeConstant","bounceDamping","bounceStiffness","modifyTarget","min","max","restDelta","restSpeed","origin","state","done","value","nearestBoundary","v","undefined","Math","abs","amplitude","ideal","target","calcDelta","t","exp","calcLatest","applyFriction","delta","latest","timeReachedBoundary","spring","checkCatchBoundary","getGeneratorVelocity","damping","stiffness","calculatedDuration","next","hasUpdatedFrame"],"mappings":"mKAQuBA,GAYS,IAZRC,UACpBA,EACAC,SAAAA,EAAW,EAAGC,MACdA,EAAQ,GAAGC,aACXA,EAAe,IAAGC,cAClBA,EAAgB,GAAEC,gBAClBA,EAAkB,IAAGC,aACrBA,EAAYC,IACZA,EAAGC,IACHA,EAAGC,UACHA,EAAY,GAAGC,UACfA,GAC4BX,EAC5B,MAAMY,EAASX,EAAU,GAEnBY,EAAgC,CAClCC,MAAM,EACNC,MAAOH,GAMLI,EAAmBC,QACTC,IAARV,EAA0BC,OAClBS,IAART,GAEGU,KAAKC,IAAIZ,EAAMS,GAAKE,KAAKC,IAAIX,EAAMQ,GAFZT,EAEuBC,EAGzD,IAAIY,EAAYlB,EAAQD,EACxB,MAAMoB,EAAQV,EAASS,EACjBE,OAA0BL,IAAjBX,EAA6Be,EAAQf,EAAae,GAM7DC,IAAWD,IAAOD,EAAYE,EAASX,GAE3C,MAAMY,EAAaC,IAAeJ,EAAYF,KAAKO,KAAKD,EAAIrB,GAEtDuB,EAAcF,GAAcF,EAASC,EAAUC,GAE/CG,EAAiBH,IACnB,MAAMI,EAAQL,EAAUC,GAClBK,EAASH,EAAWF,GAC1BZ,EAAMC,KAAOK,KAAKC,IAAIS,IAAUnB,EAChCG,EAAME,MAAQF,EAAMC,KAAOS,EAASO,CAAM,EAS9C,IAAIC,EACAC,EAEJ,MAAMC,EAAsBR,IAxCLR,SAyCAJ,EAAME,WAxChBG,IAARV,GAAqBS,EAAIT,QAAiBU,IAART,GAAqBQ,EAAIR,KA0C5DsB,EAAsBN,EAEtBO,EAASA,EAAAA,OAAa,CAClB/B,UAAW,CAACY,EAAME,MAAOC,EAAgBH,EAAME,QAC/Cb,SAAUgC,EAAAA,qBAAqBP,EAAYF,EAAGZ,EAAME,OACpDoB,QAAS9B,EACT+B,UAAW9B,EACXI,YACAC,cACF,EAKN,OAFAsB,EAAmB,GAEZ,CACHI,mBAAoB,KACpBC,KAAOb,IAOH,IAAIc,GAAkB,EAWtB,OAVKP,QAAkCd,IAAxBa,IACXQ,GAAkB,EAClBX,EAAcH,GACdQ,EAAmBR,SAOKP,IAAxBa,GAAqCN,GAAKM,EACnCC,EAAQM,KAAKb,EAAIM,KAEvBQ,GAAmBX,EAAcH,GAC3BZ,EACX,EAGZ"}
1
+ {"version":3,"file":"inertia.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/generators/inertia.mjs"],"sourcesContent":["import { spring } from './spring/index.mjs';\nimport { calcGeneratorVelocity } from './utils/velocity.mjs';\n\nfunction inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed, }) {\n const origin = keyframes[0];\n const state = {\n done: false,\n value: origin,\n };\n const isOutOfBounds = (v) => (min !== undefined && v < min) || (max !== undefined && v > max);\n const nearestBoundary = (v) => {\n if (min === undefined)\n return max;\n if (max === undefined)\n return min;\n return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n };\n let amplitude = power * velocity;\n const ideal = origin + amplitude;\n const target = modifyTarget === undefined ? ideal : modifyTarget(ideal);\n /**\n * If the target has changed we need to re-calculate the amplitude, otherwise\n * the animation will start from the wrong position.\n */\n if (target !== ideal)\n amplitude = target - origin;\n const calcDelta = (t) => -amplitude * Math.exp(-t / timeConstant);\n const calcLatest = (t) => target + calcDelta(t);\n const applyFriction = (t) => {\n const delta = calcDelta(t);\n const latest = calcLatest(t);\n state.done = Math.abs(delta) <= restDelta;\n state.value = state.done ? target : latest;\n };\n /**\n * Ideally this would resolve for t in a stateless way, we could\n * do that by always precalculating the animation but as we know\n * this will be done anyway we can assume that spring will\n * be discovered during that.\n */\n let timeReachedBoundary;\n let spring$1;\n const checkCatchBoundary = (t) => {\n if (!isOutOfBounds(state.value))\n return;\n timeReachedBoundary = t;\n spring$1 = spring({\n keyframes: [state.value, nearestBoundary(state.value)],\n velocity: calcGeneratorVelocity(calcLatest, t, state.value), // TODO: This should be passing * 1000\n damping: bounceDamping,\n stiffness: bounceStiffness,\n restDelta,\n restSpeed,\n });\n };\n checkCatchBoundary(0);\n return {\n calculatedDuration: null,\n next: (t) => {\n /**\n * We need to resolve the friction to figure out if we need a\n * spring but we don't want to do this twice per frame. So here\n * we flag if we updated for this frame and later if we did\n * we can skip doing it again.\n */\n let hasUpdatedFrame = false;\n if (!spring$1 && timeReachedBoundary === undefined) {\n hasUpdatedFrame = true;\n applyFriction(t);\n checkCatchBoundary(t);\n }\n /**\n * If we have a spring and the provided t is beyond the moment the friction\n * animation crossed the min/max boundary, use the spring.\n */\n if (timeReachedBoundary !== undefined && t >= timeReachedBoundary) {\n return spring$1.next(t - timeReachedBoundary);\n }\n else {\n !hasUpdatedFrame && applyFriction(t);\n return state;\n }\n },\n };\n}\n\nexport { inertia };\n"],"names":["_ref","keyframes","velocity","power","timeConstant","bounceDamping","bounceStiffness","modifyTarget","min","max","restDelta","restSpeed","origin","state","done","value","nearestBoundary","v","undefined","Math","abs","amplitude","ideal","target","calcDelta","t","exp","calcLatest","applyFriction","delta","latest","timeReachedBoundary","spring$1","checkCatchBoundary","spring","calcGeneratorVelocity","damping","stiffness","calculatedDuration","next","hasUpdatedFrame"],"mappings":"gKAGA,SAAgBA,GAAiK,IAAhKC,UAAEA,EAAWC,SAAAA,EAAW,EAAGC,MAAEA,EAAQ,GAAGC,aAAEA,EAAe,IAAGC,cAAEA,EAAgB,GAAEC,gBAAEA,EAAkB,IAAGC,aAAEA,EAAYC,IAAEA,EAAGC,IAAEA,EAAGC,UAAEA,EAAY,GAAGC,UAAEA,GAAYX,EAC3K,MAAMY,EAASX,EAAU,GACnBY,EAAQ,CACVC,MAAM,EACNC,MAAOH,GAGLI,EAAmBC,QACTC,IAARV,EACOC,OACCS,IAART,GAEGU,KAAKC,IAAIZ,EAAMS,GAAKE,KAAKC,IAAIX,EAAMQ,GAD/BT,EAC0CC,EAEzD,IAAIY,EAAYlB,EAAQD,EACxB,MAAMoB,EAAQV,EAASS,EACjBE,OAA0BL,IAAjBX,EAA6Be,EAAQf,EAAae,GAK7DC,IAAWD,IACXD,EAAYE,EAASX,GACzB,MAAMY,EAAaC,IAAOJ,EAAYF,KAAKO,KAAKD,EAAIrB,GAC9CuB,EAAcF,GAAMF,EAASC,EAAUC,GACvCG,EAAiBH,IACnB,MAAMI,EAAQL,EAAUC,GAClBK,EAASH,EAAWF,GAC1BZ,EAAMC,KAAOK,KAAKC,IAAIS,IAAUnB,EAChCG,EAAME,MAAQF,EAAMC,KAAOS,EAASO,CAAM,EAQ9C,IAAIC,EACAC,EACJ,MAAMC,EAAsBR,IAjCLR,SAkCAJ,EAAME,WAlCSG,IAARV,GAAqBS,EAAIT,QAAiBU,IAART,GAAqBQ,EAAIR,KAoCrFsB,EAAsBN,EACtBO,EAAWE,EAAAA,OAAO,CACdjC,UAAW,CAACY,EAAME,MAAOC,EAAgBH,EAAME,QAC/Cb,SAAUiC,EAAAA,sBAAsBR,EAAYF,EAAGZ,EAAME,OACrDqB,QAAS/B,EACTgC,UAAW/B,EACXI,YACAC,cACF,EAGN,OADAsB,EAAmB,GACZ,CACHK,mBAAoB,KACpBC,KAAOd,IAOH,IAAIe,GAAkB,EAUtB,OATKR,QAAoCd,IAAxBa,IACbS,GAAkB,EAClBZ,EAAcH,GACdQ,EAAmBR,SAMKP,IAAxBa,GAAqCN,GAAKM,EACnCC,EAASO,KAAKd,EAAIM,KAGxBS,GAAmBZ,EAAcH,GAC3BZ,EACX,EAGZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"keyframes.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs"],"sourcesContent":["import { easeInOut, isEasingArray, easingDefinitionToFunction } from 'motion-utils';\nimport { interpolate } from '../../utils/interpolate.mjs';\nimport { defaultOffset } from '../keyframes/offsets/default.mjs';\nimport { convertOffsetToTimes } from '../keyframes/offsets/time.mjs';\n\nfunction defaultEasing(values, easing) {\n return values.map(() => easing || easeInOut).splice(0, values.length - 1);\n}\nfunction keyframes({ duration = 300, keyframes: keyframeValues, times, ease = \"easeInOut\", }) {\n /**\n * Easing functions can be externally defined as strings. Here we convert them\n * into actual functions.\n */\n const easingFunctions = isEasingArray(ease)\n ? ease.map(easingDefinitionToFunction)\n : easingDefinitionToFunction(ease);\n /**\n * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n * to reduce GC during animation.\n */\n const state = {\n done: false,\n value: keyframeValues[0],\n };\n /**\n * Create a times array based on the provided 0-1 offsets\n */\n const absoluteTimes = convertOffsetToTimes(\n // Only use the provided offsets if they're the correct length\n // TODO Maybe we should warn here if there's a length mismatch\n times && times.length === keyframeValues.length\n ? times\n : defaultOffset(keyframeValues), duration);\n const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {\n ease: Array.isArray(easingFunctions)\n ? easingFunctions\n : defaultEasing(keyframeValues, easingFunctions),\n });\n return {\n calculatedDuration: duration,\n next: (t) => {\n state.value = mapTimeToKeyframe(t);\n state.done = t >= duration;\n return state;\n },\n };\n}\n\nexport { defaultEasing, keyframes };\n//# sourceMappingURL=keyframes.mjs.map\n"],"names":["defaultEasing","values","easing","map","easeInOut","splice","length","_ref","duration","keyframes","keyframeValues","times","ease","easingFunctions","isEasingArray","easingDefinitionToFunction","state","done","value","absoluteTimes","convertOffsetToTimes","defaultOffset","mapTimeToKeyframe","interpolate","Array","isArray","calculatedDuration","next","t"],"mappings":"qbAgBM,SAAUA,EACZC,EACAC,GAEA,OAAOD,EAAOE,KAAI,IAAMD,GAAUE,EAASA,YAAEC,OAAO,EAAGJ,EAAOK,OAAS,EAC3E,oDAEyBC,GAKE,IAL8BC,SACrDA,EAAW,IACXC,UAAWC,EAAcC,MACzBA,EAAKC,KACLA,EAAO,aACgBL,EAKvB,MAAMM,EAAkBC,gBAAcF,GAChCA,EAAKT,IAAIY,8BACTA,6BAA2BH,GAM3BI,EAA2B,CAC7BC,MAAM,EACNC,MAAOR,EAAe,IAMpBS,EAAgBC,EAAoBA,qBAGtCT,GAASA,EAAML,SAAWI,EAAeJ,OACnCK,EACAU,gBAAcX,GACpBF,GAGEc,EAAoBC,EAAAA,YAAeJ,EAAeT,EAAgB,CACpEE,KAAMY,MAAMC,QAAQZ,GACdA,EACAb,EAAcU,EAAgBG,KAGxC,MAAO,CACHa,mBAAoBlB,EACpBmB,KAAOC,IACHZ,EAAME,MAAQI,EAAkBM,GAChCZ,EAAMC,KAAOW,GAAKpB,EACXQ,GAGnB"}
1
+ {"version":3,"file":"keyframes.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs"],"sourcesContent":["import { easeInOut, isEasingArray, easingDefinitionToFunction } from 'motion-utils';\nimport { interpolate } from '../../utils/interpolate.mjs';\nimport { defaultOffset } from '../keyframes/offsets/default.mjs';\nimport { convertOffsetToTimes } from '../keyframes/offsets/time.mjs';\n\nfunction defaultEasing(values, easing) {\n return values.map(() => easing || easeInOut).splice(0, values.length - 1);\n}\nfunction keyframes({ duration = 300, keyframes: keyframeValues, times, ease = \"easeInOut\", }) {\n /**\n * Easing functions can be externally defined as strings. Here we convert them\n * into actual functions.\n */\n const easingFunctions = isEasingArray(ease)\n ? ease.map(easingDefinitionToFunction)\n : easingDefinitionToFunction(ease);\n /**\n * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n * to reduce GC during animation.\n */\n const state = {\n done: false,\n value: keyframeValues[0],\n };\n /**\n * Create a times array based on the provided 0-1 offsets\n */\n const absoluteTimes = convertOffsetToTimes(\n // Only use the provided offsets if they're the correct length\n // TODO Maybe we should warn here if there's a length mismatch\n times && times.length === keyframeValues.length\n ? times\n : defaultOffset(keyframeValues), duration);\n const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {\n ease: Array.isArray(easingFunctions)\n ? easingFunctions\n : defaultEasing(keyframeValues, easingFunctions),\n });\n return {\n calculatedDuration: duration,\n next: (t) => {\n state.value = mapTimeToKeyframe(t);\n state.done = t >= duration;\n return state;\n },\n };\n}\n\nexport { defaultEasing, keyframes };\n"],"names":["defaultEasing","values","easing","map","easeInOut","splice","length","_ref","duration","keyframes","keyframeValues","times","ease","easingFunctions","isEasingArray","easingDefinitionToFunction","state","done","value","absoluteTimes","convertOffsetToTimes","defaultOffset","mapTimeToKeyframe","interpolate","Array","isArray","calculatedDuration","next","t"],"mappings":"qbAKA,SAASA,EAAcC,EAAQC,GAC3B,OAAOD,EAAOE,KAAI,IAAMD,GAAUE,EAASA,YAAEC,OAAO,EAAGJ,EAAOK,OAAS,EAC3E,2CACA,SAAkBC,GAA4E,IAA3EC,SAAEA,EAAW,IAAKC,UAAWC,EAAcC,MAAEA,EAAKC,KAAEA,EAAO,aAAcL,EAKxF,MAAMM,EAAkBC,gBAAcF,GAChCA,EAAKT,IAAIY,8BACTA,6BAA2BH,GAK3BI,EAAQ,CACVC,MAAM,EACNC,MAAOR,EAAe,IAKpBS,EAAgBC,EAAoBA,qBAG1CT,GAASA,EAAML,SAAWI,EAAeJ,OACnCK,EACAU,gBAAcX,GAAiBF,GAC/Bc,EAAoBC,EAAAA,YAAYJ,EAAeT,EAAgB,CACjEE,KAAMY,MAAMC,QAAQZ,GACdA,EACAb,EAAcU,EAAgBG,KAExC,MAAO,CACHa,mBAAoBlB,EACpBmB,KAAOC,IACHZ,EAAME,MAAQI,EAAkBM,GAChCZ,EAAMC,KAAOW,GAAKpB,EACXQ,GAGnB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.springDefaults={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};
2
+ //# sourceMappingURL=defaults.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs"],"sourcesContent":["const springDefaults = {\n // Default spring physics\n stiffness: 100,\n damping: 10,\n mass: 1.0,\n velocity: 0.0,\n // Default duration/bounce-based options\n duration: 800, // in ms\n bounce: 0.3,\n visualDuration: 0.3, // in seconds\n // Rest thresholds\n restSpeed: {\n granular: 0.01,\n default: 2,\n },\n restDelta: {\n granular: 0.005,\n default: 0.5,\n },\n // Limits\n minDuration: 0.01, // in seconds\n maxDuration: 10.0, // in seconds\n minDamping: 0.05,\n maxDamping: 1,\n};\n\nexport { springDefaults };\n"],"names":["stiffness","damping","mass","velocity","duration","bounce","visualDuration","restSpeed","granular","default","restDelta","minDuration","maxDuration","minDamping","maxDamping"],"mappings":"2FAAuB,CAEnBA,UAAW,IACXC,QAAS,GACTC,KAAM,EACNC,SAAU,EAEVC,SAAU,IACVC,OAAQ,GACRC,eAAgB,GAEhBC,UAAW,CACPC,SAAU,IACVC,QAAS,GAEbC,UAAW,CACPF,SAAU,KACVC,QAAS,IAGbE,YAAa,IACbC,YAAa,GACbC,WAAY,IACZC,WAAY"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("./defaults.mjs.js"),t=require("../../../../../../motion-utils/dist/es/errors.mjs.js"),e=require("../../../../../../motion-utils/dist/es/time-conversion.mjs.js"),n=require("../../../../../../motion-utils/dist/es/clamp.mjs.js");const i=.001;const r=12;function o(s,t){return s*Math.sqrt(1-t*t)}exports.calcAngularFreq=o,exports.findSpring=function(a){let u,l,{duration:p=s.springDefaults.duration,bounce:c=s.springDefaults.bounce,velocity:f=s.springDefaults.velocity,mass:m=s.springDefaults.mass}=a;t.warning(p<=e.secondsToMilliseconds(s.springDefaults.maxDuration),"Spring duration must be 10 seconds or less");let d=1-c;d=n.clamp(s.springDefaults.minDamping,s.springDefaults.maxDamping,d),p=n.clamp(s.springDefaults.minDuration,s.springDefaults.maxDuration,e.millisecondsToSeconds(p)),d<1?(u=s=>{const t=s*d,e=t*p,n=t-f,r=o(s,d),a=Math.exp(-e);return i-n/r*a},l=s=>{const t=s*d*p,e=t*f+f,n=Math.pow(d,2)*Math.pow(s,2)*p,r=Math.exp(-t),a=o(Math.pow(s,2),d);return(-u(s)+i>0?-1:1)*((e-n)*r)/a}):(u=s=>Math.exp(-s*p)*((s-f)*p+1)-.001,l=s=>Math.exp(-s*p)*(p*p*(f-s)));const g=function(s,t,e){let n=e;for(let e=1;e<r;e++)n-=s(n)/t(n);return n}(u,l,5/p);if(p=e.secondsToMilliseconds(p),isNaN(g))return{stiffness:s.springDefaults.stiffness,damping:s.springDefaults.damping,duration:p};{const s=Math.pow(g,2)*m;return{stiffness:s,damping:2*d*Math.sqrt(m*s),duration:p}}};
2
+ //# sourceMappingURL=find.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs"],"sourcesContent":["import { warning, secondsToMilliseconds, clamp, millisecondsToSeconds } from 'motion-utils';\nimport { springDefaults } from './defaults.mjs';\n\nconst safeMin = 0.001;\nfunction findSpring({ duration = springDefaults.duration, bounce = springDefaults.bounce, velocity = springDefaults.velocity, mass = springDefaults.mass, }) {\n let envelope;\n let derivative;\n warning(duration <= secondsToMilliseconds(springDefaults.maxDuration), \"Spring duration must be 10 seconds or less\");\n let dampingRatio = 1 - bounce;\n /**\n * Restrict dampingRatio and duration to within acceptable ranges.\n */\n dampingRatio = clamp(springDefaults.minDamping, springDefaults.maxDamping, dampingRatio);\n duration = clamp(springDefaults.minDuration, springDefaults.maxDuration, millisecondsToSeconds(duration));\n if (dampingRatio < 1) {\n /**\n * Underdamped spring\n */\n envelope = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const a = exponentialDecay - velocity;\n const b = calcAngularFreq(undampedFreq, dampingRatio);\n const c = Math.exp(-delta);\n return safeMin - (a / b) * c;\n };\n derivative = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const d = delta * velocity + velocity;\n const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;\n const f = Math.exp(-delta);\n const g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);\n const factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;\n return (factor * ((d - e) * f)) / g;\n };\n }\n else {\n /**\n * Critically-damped spring\n */\n envelope = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (undampedFreq - velocity) * duration + 1;\n return -safeMin + a * b;\n };\n derivative = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (velocity - undampedFreq) * (duration * duration);\n return a * b;\n };\n }\n const initialGuess = 5 / duration;\n const undampedFreq = approximateRoot(envelope, derivative, initialGuess);\n duration = secondsToMilliseconds(duration);\n if (isNaN(undampedFreq)) {\n return {\n stiffness: springDefaults.stiffness,\n damping: springDefaults.damping,\n duration,\n };\n }\n else {\n const stiffness = Math.pow(undampedFreq, 2) * mass;\n return {\n stiffness,\n damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),\n duration,\n };\n }\n}\nconst rootIterations = 12;\nfunction approximateRoot(envelope, derivative, initialGuess) {\n let result = initialGuess;\n for (let i = 1; i < rootIterations; i++) {\n result = result - envelope(result) / derivative(result);\n }\n return result;\n}\nfunction calcAngularFreq(undampedFreq, dampingRatio) {\n return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);\n}\n\nexport { calcAngularFreq, findSpring };\n"],"names":["safeMin","rootIterations","calcAngularFreq","undampedFreq","dampingRatio","Math","sqrt","_ref","envelope","derivative","duration","springDefaults","bounce","velocity","mass","warning","secondsToMilliseconds","maxDuration","clamp","minDamping","maxDamping","minDuration","millisecondsToSeconds","exponentialDecay","delta","a","b","c","exp","d","e","pow","f","g","initialGuess","result","i","approximateRoot","isNaN","stiffness","damping"],"mappings":"qTAGA,MAAMA,EAAU,KAoEhB,MAAMC,EAAiB,GAQvB,SAASC,EAAgBC,EAAcC,GACnC,OAAOD,EAAeE,KAAKC,KAAK,EAAIF,EAAeA,EACvD,8CA7EA,SAAmBG,GAA0I,IACrJC,EACAC,GAFYC,SAAEA,EAAWC,EAAcA,eAACD,SAAQE,OAAEA,EAASD,EAAcA,eAACC,OAAMC,SAAEA,EAAWF,EAAcA,eAACE,SAAQC,KAAEA,EAAOH,EAAcA,eAACG,MAAOP,EAGvJQ,EAAOA,QAACL,GAAYM,EAAqBA,sBAACL,EAAcA,eAACM,aAAc,8CACvE,IAAIb,EAAe,EAAIQ,EAIvBR,EAAec,EAAKA,MAACP,iBAAeQ,WAAYR,EAAAA,eAAeS,WAAYhB,GAC3EM,EAAWQ,EAAAA,MAAMP,EAAAA,eAAeU,YAAaV,EAAcA,eAACM,YAAaK,EAAAA,sBAAsBZ,IAC3FN,EAAe,GAIfI,EAAYL,IACR,MAAMoB,EAAmBpB,EAAeC,EAClCoB,EAAQD,EAAmBb,EAC3Be,EAAIF,EAAmBV,EACvBa,EAAIxB,EAAgBC,EAAcC,GAClCuB,EAAItB,KAAKuB,KAAKJ,GACpB,OAAOxB,EAAWyB,EAAIC,EAAKC,CAAC,EAEhClB,EAAcN,IACV,MACMqB,EADmBrB,EAAeC,EACPM,EAC3BmB,EAAIL,EAAQX,EAAWA,EACvBiB,EAAIzB,KAAK0B,IAAI3B,EAAc,GAAKC,KAAK0B,IAAI5B,EAAc,GAAKO,EAC5DsB,EAAI3B,KAAKuB,KAAKJ,GACdS,EAAI/B,EAAgBG,KAAK0B,IAAI5B,EAAc,GAAIC,GAErD,QADgBI,EAASL,GAAgBH,EAAU,GAAK,EAAI,KACzC6B,EAAIC,GAAKE,GAAMC,CAAC,IAOvCzB,EAAYL,GACEE,KAAKuB,KAAKzB,EAAeO,KACxBP,EAAeU,GAAYH,EAAW,GAC1C,KAEXD,EAAcN,GACAE,KAAKuB,KAAKzB,EAAeO,IACIA,EAAWA,GAAvCG,EAAWV,KAI9B,MACMA,EAmBV,SAAyBK,EAAUC,EAAYyB,GAC3C,IAAIC,EAASD,EACb,IAAK,IAAIE,EAAI,EAAGA,EAAInC,EAAgBmC,IAChCD,GAAkB3B,EAAS2B,GAAU1B,EAAW0B,GAEpD,OAAOA,CACX,CAzByBE,CAAgB7B,EAAUC,EAD1B,EAAIC,GAGzB,GADAA,EAAWM,EAAAA,sBAAsBN,GAC7B4B,MAAMnC,GACN,MAAO,CACHoC,UAAW5B,EAAcA,eAAC4B,UAC1BC,QAAS7B,EAAcA,eAAC6B,QACxB9B,YAGH,CACD,MAAM6B,EAAYlC,KAAK0B,IAAI5B,EAAc,GAAKW,EAC9C,MAAO,CACHyB,YACAC,QAAwB,EAAfpC,EAAmBC,KAAKC,KAAKQ,EAAOyB,GAC7C7B,WAER,CACJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../waapi/utils/linear.mjs.js"),s=require("../utils/calc-duration.mjs.js"),t=require("../utils/create-generator-easing.mjs.js"),n=require("../utils/velocity.mjs.js"),a=require("./defaults.mjs.js"),i=require("./find.mjs.js"),r=require("../../../../../../motion-utils/dist/es/time-conversion.mjs.js"),o=require("../../../../../../motion-utils/dist/es/clamp.mjs.js");const l=["duration","bounce"],u=["stiffness","damping","mass"];function c(e,s){return s.some((s=>void 0!==e[s]))}function f(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.springDefaults.visualDuration,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.springDefaults.bounce;const d="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:f}:t;let{restSpeed:m,restDelta:p}=d;const g=d.keyframes[0],D=d.keyframes[d.keyframes.length-1],h={done:!1,value:g},{stiffness:v,damping:M,mass:j,duration:y,velocity:q,isResolvedFromDuration:b}=function(e){let s={velocity:a.springDefaults.velocity,stiffness:a.springDefaults.stiffness,damping:a.springDefaults.damping,mass:a.springDefaults.mass,isResolvedFromDuration:!1,...e};if(!c(e,u)&&c(e,l))if(e.visualDuration){const t=e.visualDuration,n=2*Math.PI/(1.2*t),i=n*n,r=2*o.clamp(.05,1,1-(e.bounce||0))*Math.sqrt(i);s={...s,mass:a.springDefaults.mass,stiffness:i,damping:r}}else{const t=i.findSpring(e);s={...s,...t,mass:a.springDefaults.mass},s.isResolvedFromDuration=!0}return s}({...d,velocity:-r.millisecondsToSeconds(d.velocity||0)}),x=q||0,S=M/(2*Math.sqrt(v*j)),T=D-g,k=r.millisecondsToSeconds(Math.sqrt(v/j)),F=Math.abs(T)<5;let G;if(m||(m=F?a.springDefaults.restSpeed.granular:a.springDefaults.restSpeed.default),p||(p=F?a.springDefaults.restDelta.granular:a.springDefaults.restDelta.default),S<1){const e=i.calcAngularFreq(k,S);G=s=>{const t=Math.exp(-S*k*s);return D-t*((x+S*k*T)/e*Math.sin(e*s)+T*Math.cos(e*s))}}else if(1===S)G=e=>D-Math.exp(-k*e)*(T+(x+k*T)*e);else{const e=k*Math.sqrt(S*S-1);G=s=>{const t=Math.exp(-S*k*s),n=Math.min(e*s,300);return D-t*((x+S*k*T)*Math.sinh(n)+e*T*Math.cosh(n))/e}}const R={calculatedDuration:b&&y||null,next:e=>{const s=G(e);if(b)h.done=e>=y;else{let t=0===e?x:0;S<1&&(t=0===e?r.secondsToMilliseconds(x):n.calcGeneratorVelocity(G,e,s));const a=Math.abs(t)<=m,i=Math.abs(D-s)<=p;h.done=a&&i}return h.value=h.done?D:s,h},toString:()=>{const t=Math.min(s.calcGeneratorDuration(R),s.maxGeneratorDuration),n=e.generateLinearEasing((e=>R.next(t*e).value),t,30);return t+"ms "+n},toTransition:()=>{}};return R}f.applyToOptions=e=>{const s=t.createGeneratorEasing(e,100,f);return e.ease=s.ease,e.duration=r.secondsToMilliseconds(s.duration),e.type="keyframes",e},exports.spring=f;
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs"],"sourcesContent":["import { millisecondsToSeconds, secondsToMilliseconds, clamp } from 'motion-utils';\nimport { generateLinearEasing } from '../../waapi/utils/linear.mjs';\nimport { calcGeneratorDuration, maxGeneratorDuration } from '../utils/calc-duration.mjs';\nimport { createGeneratorEasing } from '../utils/create-generator-easing.mjs';\nimport { calcGeneratorVelocity } from '../utils/velocity.mjs';\nimport { springDefaults } from './defaults.mjs';\nimport { findSpring, calcAngularFreq } from './find.mjs';\n\nconst durationKeys = [\"duration\", \"bounce\"];\nconst physicsKeys = [\"stiffness\", \"damping\", \"mass\"];\nfunction isSpringType(options, keys) {\n return keys.some((key) => options[key] !== undefined);\n}\nfunction getSpringOptions(options) {\n let springOptions = {\n velocity: springDefaults.velocity,\n stiffness: springDefaults.stiffness,\n damping: springDefaults.damping,\n mass: springDefaults.mass,\n isResolvedFromDuration: false,\n ...options,\n };\n // stiffness/damping/mass overrides duration/bounce\n if (!isSpringType(options, physicsKeys) &&\n isSpringType(options, durationKeys)) {\n if (options.visualDuration) {\n const visualDuration = options.visualDuration;\n const root = (2 * Math.PI) / (visualDuration * 1.2);\n const stiffness = root * root;\n const damping = 2 *\n clamp(0.05, 1, 1 - (options.bounce || 0)) *\n Math.sqrt(stiffness);\n springOptions = {\n ...springOptions,\n mass: springDefaults.mass,\n stiffness,\n damping,\n };\n }\n else {\n const derived = findSpring(options);\n springOptions = {\n ...springOptions,\n ...derived,\n mass: springDefaults.mass,\n };\n springOptions.isResolvedFromDuration = true;\n }\n }\n return springOptions;\n}\nfunction spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce = springDefaults.bounce) {\n const options = typeof optionsOrVisualDuration !== \"object\"\n ? {\n visualDuration: optionsOrVisualDuration,\n keyframes: [0, 1],\n bounce,\n }\n : optionsOrVisualDuration;\n let { restSpeed, restDelta } = options;\n const origin = options.keyframes[0];\n const target = options.keyframes[options.keyframes.length - 1];\n /**\n * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n * to reduce GC during animation.\n */\n const state = { done: false, value: origin };\n const { stiffness, damping, mass, duration, velocity, isResolvedFromDuration, } = getSpringOptions({\n ...options,\n velocity: -millisecondsToSeconds(options.velocity || 0),\n });\n const initialVelocity = velocity || 0.0;\n const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));\n const initialDelta = target - origin;\n const undampedAngularFreq = millisecondsToSeconds(Math.sqrt(stiffness / mass));\n /**\n * If we're working on a granular scale, use smaller defaults for determining\n * when the spring is finished.\n *\n * These defaults have been selected emprically based on what strikes a good\n * ratio between feeling good and finishing as soon as changes are imperceptible.\n */\n const isGranularScale = Math.abs(initialDelta) < 5;\n restSpeed || (restSpeed = isGranularScale\n ? springDefaults.restSpeed.granular\n : springDefaults.restSpeed.default);\n restDelta || (restDelta = isGranularScale\n ? springDefaults.restDelta.granular\n : springDefaults.restDelta.default);\n let resolveSpring;\n if (dampingRatio < 1) {\n const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);\n // Underdamped spring\n resolveSpring = (t) => {\n const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n return (target -\n envelope *\n (((initialVelocity +\n dampingRatio * undampedAngularFreq * initialDelta) /\n angularFreq) *\n Math.sin(angularFreq * t) +\n initialDelta * Math.cos(angularFreq * t)));\n };\n }\n else if (dampingRatio === 1) {\n // Critically damped spring\n resolveSpring = (t) => target -\n Math.exp(-undampedAngularFreq * t) *\n (initialDelta +\n (initialVelocity + undampedAngularFreq * initialDelta) * t);\n }\n else {\n // Overdamped spring\n const dampedAngularFreq = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);\n resolveSpring = (t) => {\n const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n // When performing sinh or cosh values can hit Infinity so we cap them here\n const freqForT = Math.min(dampedAngularFreq * t, 300);\n return (target -\n (envelope *\n ((initialVelocity +\n dampingRatio * undampedAngularFreq * initialDelta) *\n Math.sinh(freqForT) +\n dampedAngularFreq *\n initialDelta *\n Math.cosh(freqForT))) /\n dampedAngularFreq);\n };\n }\n const generator = {\n calculatedDuration: isResolvedFromDuration ? duration || null : null,\n next: (t) => {\n const current = resolveSpring(t);\n if (!isResolvedFromDuration) {\n let currentVelocity = t === 0 ? initialVelocity : 0.0;\n /**\n * We only need to calculate velocity for under-damped springs\n * as over- and critically-damped springs can't overshoot, so\n * checking only for displacement is enough.\n */\n if (dampingRatio < 1) {\n currentVelocity =\n t === 0\n ? secondsToMilliseconds(initialVelocity)\n : calcGeneratorVelocity(resolveSpring, t, current);\n }\n const isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;\n const isBelowDisplacementThreshold = Math.abs(target - current) <= restDelta;\n state.done =\n isBelowVelocityThreshold && isBelowDisplacementThreshold;\n }\n else {\n state.done = t >= duration;\n }\n state.value = state.done ? target : current;\n return state;\n },\n toString: () => {\n const calculatedDuration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);\n const easing = generateLinearEasing((progress) => generator.next(calculatedDuration * progress).value, calculatedDuration, 30);\n return calculatedDuration + \"ms \" + easing;\n },\n toTransition: () => { },\n };\n return generator;\n}\nspring.applyToOptions = (options) => {\n const generatorOptions = createGeneratorEasing(options, 100, spring);\n options.ease = generatorOptions.ease;\n options.duration = secondsToMilliseconds(generatorOptions.duration);\n options.type = \"keyframes\";\n return options;\n};\n\nexport { spring };\n"],"names":["durationKeys","physicsKeys","isSpringType","options","keys","some","key","undefined","spring","optionsOrVisualDuration","arguments","length","springDefaults","visualDuration","bounce","keyframes","restSpeed","restDelta","origin","target","state","done","value","stiffness","damping","mass","duration","velocity","isResolvedFromDuration","springOptions","root","Math","PI","clamp","sqrt","derived","findSpring","getSpringOptions","millisecondsToSeconds","initialVelocity","dampingRatio","initialDelta","undampedAngularFreq","isGranularScale","abs","resolveSpring","granular","default","angularFreq","calcAngularFreq","t","envelope","exp","sin","cos","dampedAngularFreq","freqForT","min","sinh","cosh","generator","calculatedDuration","next","current","currentVelocity","secondsToMilliseconds","calcGeneratorVelocity","isBelowVelocityThreshold","isBelowDisplacementThreshold","toString","calcGeneratorDuration","maxGeneratorDuration","easing","generateLinearEasing","progress","toTransition","applyToOptions","generatorOptions","createGeneratorEasing","ease","type"],"mappings":"icAQA,MAAMA,EAAe,CAAC,WAAY,UAC5BC,EAAc,CAAC,YAAa,UAAW,QAC7C,SAASC,EAAaC,EAASC,GAC3B,OAAOA,EAAKC,MAAMC,QAAyBC,IAAjBJ,EAAQG,IACtC,CAuCA,SAASE,IAAgG,IAAzFC,EAAuBC,UAAAC,OAAAD,QAAAH,IAAAG,UAAAH,GAAAG,UAAGE,GAAAA,EAAAA,eAAeC,eAAgBC,EAAMJ,UAAAC,OAAAD,QAAAH,IAAAG,UAAAH,GAAAG,UAAGE,GAAAA,EAAAA,eAAeE,OAC7F,MAAMX,EAA6C,iBAA5BM,EACjB,CACEI,eAAgBJ,EAChBM,UAAW,CAAC,EAAG,GACfD,UAEFL,EACN,IAAIO,UAAEA,EAASC,UAAEA,GAAcd,EAC/B,MAAMe,EAASf,EAAQY,UAAU,GAC3BI,EAAShB,EAAQY,UAAUZ,EAAQY,UAAUJ,OAAS,GAKtDS,EAAQ,CAAEC,MAA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C,EAASC,EAAAA,sBAAsBC,GAAad,EAAUE,KAAKD,EAAqBa,GAAUpD,OAAOuC,EAAoB,IAC3H,OAAOA,EAAqB,MAAQW,CAAM,EAE9CG,aAAcA,QAElB,OAAOf,CACX,CACApD,EAAOoE,eAAkBzE,IACrB,MAAM0E,EAAmBC,EAAqBA,sBAAC3E,EAAS,IAAKK,GAI7D,OAHAL,EAAQ4E,KAAOF,EAAiBE,KAChC5E,EAAQuB,SAAWuC,EAAAA,sBAAsBY,EAAiBnD,UAC1DvB,EAAQ6E,KAAO,YACR7E,CAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"calc-duration.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs"],"sourcesContent":["/**\n * Implement a practical max duration for keyframe generation\n * to prevent infinite loops\n */\nconst maxGeneratorDuration = 20000;\nfunction calcGeneratorDuration(generator) {\n let duration = 0;\n const timeStep = 50;\n let state = generator.next(duration);\n while (!state.done && duration < maxGeneratorDuration) {\n duration += timeStep;\n state = generator.next(duration);\n }\n return duration >= maxGeneratorDuration ? Infinity : duration;\n}\n\nexport { calcGeneratorDuration, maxGeneratorDuration };\n//# sourceMappingURL=calc-duration.mjs.map\n"],"names":["maxGeneratorDuration","generator","duration","state","next","done","Infinity"],"mappings":"oEAMO,MAAMA,EAAuB,kCAC9B,SACFC,GAEA,IAAIC,EAAW,EAEXC,EAAQF,EAAUG,KAAKF,GAC3B,MAAQC,EAAME,MAAQH,EAAWF,GAC7BE,GAHa,GAIbC,EAAQF,EAAUG,KAAKF,GAG3B,OAAOA,GAAYF,EAAuBM,IAAWJ,CACzD"}
1
+ {"version":3,"file":"calc-duration.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs"],"sourcesContent":["/**\n * Implement a practical max duration for keyframe generation\n * to prevent infinite loops\n */\nconst maxGeneratorDuration = 20000;\nfunction calcGeneratorDuration(generator) {\n let duration = 0;\n const timeStep = 50;\n let state = generator.next(duration);\n while (!state.done && duration < maxGeneratorDuration) {\n duration += timeStep;\n state = generator.next(duration);\n }\n return duration >= maxGeneratorDuration ? Infinity : duration;\n}\n\nexport { calcGeneratorDuration, maxGeneratorDuration };\n"],"names":["maxGeneratorDuration","generator","duration","state","next","done","Infinity"],"mappings":"oEAIMA,MAAAA,EAAuB,kCAC7B,SAA+BC,GAC3B,IAAIC,EAAW,EAEXC,EAAQF,EAAUG,KAAKF,GAC3B,MAAQC,EAAME,MAAQH,EAAWF,GAC7BE,GAHa,GAIbC,EAAQF,EAAUG,KAAKF,GAE3B,OAAOA,GAAYF,EAAuBM,IAAWJ,CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-generator-easing.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs"],"sourcesContent":["import { millisecondsToSeconds } from 'motion-utils';\nimport { calcGeneratorDuration, maxGeneratorDuration } from './calc-duration.mjs';\n\n/**\n * Create a progress => progress easing function from a generator.\n */\nfunction createGeneratorEasing(options, scale = 100, createGenerator) {\n const generator = createGenerator({ ...options, keyframes: [0, scale] });\n const duration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);\n return {\n type: \"keyframes\",\n ease: (progress) => {\n return generator.next(duration * progress).value / scale;\n },\n duration: millisecondsToSeconds(duration),\n };\n}\n\nexport { createGeneratorEasing };\n//# sourceMappingURL=create-generator-easing.mjs.map\n"],"names":["options","scale","arguments","length","undefined","generator","keyframes","duration","Math","min","calcGeneratorDuration","maxGeneratorDuration","type","ease","progress","next","value","millisecondsToSeconds"],"mappings":"qNAOM,SACFA,GAEiC,IADjCC,EAAKC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAGR,MAAMG,GAF2BH,UAAAC,OAAAD,EAAAA,kBAAAE,GAEC,IAAKJ,EAASM,UAAW,CAAC,EAAGL,KACzDM,EAAWC,KAAKC,IAClBC,EAAqBA,sBAACL,GACtBM,EAAAA,sBAGJ,MAAO,CACHC,KAAM,YACNC,KAAOC,GACIT,EAAUU,KAAKR,EAAWO,GAAUE,MAAQf,EAEvDM,SAAUU,EAAqBA,sBAACV,GAExC"}
1
+ {"version":3,"file":"create-generator-easing.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs"],"sourcesContent":["import { millisecondsToSeconds } from 'motion-utils';\nimport { calcGeneratorDuration, maxGeneratorDuration } from './calc-duration.mjs';\n\n/**\n * Create a progress => progress easing function from a generator.\n */\nfunction createGeneratorEasing(options, scale = 100, createGenerator) {\n const generator = createGenerator({ ...options, keyframes: [0, scale] });\n const duration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);\n return {\n type: \"keyframes\",\n ease: (progress) => {\n return generator.next(duration * progress).value / scale;\n },\n duration: millisecondsToSeconds(duration),\n };\n}\n\nexport { createGeneratorEasing };\n"],"names":["options","scale","arguments","length","undefined","generator","keyframes","duration","Math","min","calcGeneratorDuration","maxGeneratorDuration","type","ease","progress","next","value","millisecondsToSeconds"],"mappings":"qNAMA,SAA+BA,GAAuC,IAA9BC,EAAKC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAC5C,MAAMG,GAD0DH,UAAAC,OAAAD,EAAAA,kBAAAE,GAC9B,IAAKJ,EAASM,UAAW,CAAC,EAAGL,KACzDM,EAAWC,KAAKC,IAAIC,EAAqBA,sBAACL,GAAYM,EAAAA,sBAC5D,MAAO,CACHC,KAAM,YACNC,KAAOC,GACIT,EAAUU,KAAKR,EAAWO,GAAUE,MAAQf,EAEvDM,SAAUU,EAAqBA,sBAACV,GAExC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-generator.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs"],"sourcesContent":["function isGenerator(type) {\n return typeof type === \"function\" && \"applyToOptions\" in type;\n}\n\nexport { isGenerator };\n//# sourceMappingURL=is-generator.mjs.map\n"],"names":["type"],"mappings":"wFAEM,SACFA,GAEA,MAAuB,mBAATA,GAAuB,mBAAoBA,CAC7D"}
1
+ {"version":3,"file":"is-generator.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs"],"sourcesContent":["function isGenerator(type) {\n return typeof type === \"function\" && \"applyToOptions\" in type;\n}\n\nexport { isGenerator };\n"],"names":["type"],"mappings":"wFAAA,SAAqBA,GACjB,MAAuB,mBAATA,GAAuB,mBAAoBA,CAC7D"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../../motion-utils/dist/es/velocity-per-second.mjs.js");exports.getGeneratorVelocity=function(t,o,r){const s=Math.max(o-5,0);return e.velocityPerSecond(r-t(s),o-s)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../../motion-utils/dist/es/velocity-per-second.mjs.js");exports.calcGeneratorVelocity=function(t,o,r){const s=Math.max(o-5,0);return e.velocityPerSecond(r-t(s),o-s)};
2
2
  //# sourceMappingURL=velocity.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"velocity.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs"],"sourcesContent":["import { velocityPerSecond } from 'motion-utils';\n\nconst velocitySampleDuration = 5; // ms\nfunction getGeneratorVelocity(resolveValue, t, current) {\n const prevT = Math.max(t - velocitySampleDuration, 0);\n return velocityPerSecond(current - resolveValue(prevT), t - prevT);\n}\n\nexport { getGeneratorVelocity };\n//# sourceMappingURL=velocity.mjs.map\n"],"names":["getGeneratorVelocity","resolveValue","t","current","prevT","Math","max","velocityPerSecond"],"mappings":"oLAIgBA,SACZC,EACAC,EACAC,GAEA,MAAMC,EAAQC,KAAKC,IAAIJ,EAPI,EAOwB,GACnD,OAAOK,EAAAA,kBAAkBJ,EAAUF,EAAaG,GAAQF,EAAIE,EAChE"}
1
+ {"version":3,"file":"velocity.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs"],"sourcesContent":["import { velocityPerSecond } from 'motion-utils';\n\nconst velocitySampleDuration = 5; // ms\nfunction calcGeneratorVelocity(resolveValue, t, current) {\n const prevT = Math.max(t - velocitySampleDuration, 0);\n return velocityPerSecond(current - resolveValue(prevT), t - prevT);\n}\n\nexport { calcGeneratorVelocity };\n"],"names":["resolveValue","t","current","prevT","Math","max","velocityPerSecond"],"mappings":"qLAGA,SAA+BA,EAAcC,EAAGC,GAC5C,MAAMC,EAAQC,KAAKC,IAAIJ,EAFI,EAEwB,GACnD,OAAOK,EAAAA,kBAAkBJ,EAAUF,EAAaG,GAAQF,EAAIE,EAChE"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/keys-position.mjs.js"),s=require("../../value/types/dimensions.mjs.js"),r=require("../utils/css-variables-conversion.mjs.js"),t=require("../utils/is-css-variable.mjs.js"),i=require("./KeyframesResolver.mjs.js"),n=require("./utils/is-none.mjs.js"),a=require("./utils/make-none-animatable.mjs.js"),o=require("./utils/unit-conversion.mjs.js");class l extends i.KeyframeResolver{constructor(e,s,r,t,i){super(e,s,r,t,i,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let e=0;e<i.length;e++){let s=i[e];if("string"==typeof s&&(s=s.trim(),t.isCSSVariableToken(s))){const t=r.getVariableValue(s,n.current);void 0!==t&&(i[e]=t),e===i.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!e.positionalKeys.has(a)||2!==i.length)return;const[l,u]=i,m=s.findDimensionValueType(l),f=s.findDimensionValueType(u);if(t.containsCSSVariable(l)!==t.containsCSSVariable(u)&&o.positionalValues[a])this.needsMeasurement=!0;else if(m!==f)if(o.isNumOrPxType(m)&&o.isNumOrPxType(f))for(let e=0;e<i.length;e++){const s=i[e];"string"==typeof s&&(i[e]=parseFloat(s))}else o.positionalValues[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,r=[];for(let s=0;s<e.length;s++)(null===e[s]||n.isNone(e[s]))&&r.push(s);r.length&&a.makeNoneKeyframesAnimatable(e,r,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=o.positionalValues[r](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const t=s[s.length-1];void 0!==t&&e.getValue(r,t).jump(t,!1)}measureEndState(){const{element:e,name:s,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const t=e.getValue(s);t&&t.jump(this.measuredOrigin,!1);const i=r.length-1,n=r[i];r[i]=o.positionalValues[s](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEach((s=>{let[r,t]=s;e.getValue(r).set(t)})),this.resolveNoneKeyframes()}}exports.DOMKeyframesResolver=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/keys-position.mjs.js"),s=require("../../value/types/dimensions.mjs.js"),r=require("../utils/css-variables-conversion.mjs.js"),t=require("../utils/is-css-variable.mjs.js"),i=require("./KeyframesResolver.mjs.js"),n=require("./utils/is-none.mjs.js"),a=require("./utils/make-none-animatable.mjs.js"),o=require("./utils/unit-conversion.mjs.js");class l extends i.KeyframeResolver{constructor(e,s,r,t,i){super(e,s,r,t,i,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let e=0;e<i.length;e++){let s=i[e];if("string"==typeof s&&(s=s.trim(),t.isCSSVariableToken(s))){const t=r.getVariableValue(s,n.current);void 0!==t&&(i[e]=t),e===i.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!e.positionalKeys.has(a)||2!==i.length)return;const[l,u]=i,m=s.findDimensionValueType(l),f=s.findDimensionValueType(u);if(m!==f)if(o.isNumOrPxType(m)&&o.isNumOrPxType(f))for(let e=0;e<i.length;e++){const s=i[e];"string"==typeof s&&(i[e]=parseFloat(s))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,r=[];for(let s=0;s<e.length;s++)(null===e[s]||n.isNone(e[s]))&&r.push(s);r.length&&a.makeNoneKeyframesAnimatable(e,r,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=o.positionalValues[r](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const t=s[s.length-1];void 0!==t&&e.getValue(r,t).jump(t,!1)}measureEndState(){const{element:e,name:s,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const t=e.getValue(s);t&&t.jump(this.measuredOrigin,!1);const i=r.length-1,n=r[i];r[i]=o.positionalValues[s](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEach((s=>{let[r,t]=s;e.getValue(r).set(t)})),this.resolveNoneKeyframes()}}exports.DOMKeyframesResolver=l;
2
2
  //# sourceMappingURL=DOMKeyframesResolver.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DOMKeyframesResolver.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs"],"sourcesContent":["import { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { findDimensionValueType } from '../../value/types/dimensions.mjs';\nimport { getVariableValue } from '../utils/css-variables-conversion.mjs';\nimport { isCSSVariableToken, containsCSSVariable } from '../utils/is-css-variable.mjs';\nimport { KeyframeResolver } from './KeyframesResolver.mjs';\nimport { isNone } from './utils/is-none.mjs';\nimport { makeNoneKeyframesAnimatable } from './utils/make-none-animatable.mjs';\nimport { positionalValues, isNumOrPxType } from './utils/unit-conversion.mjs';\n\nclass DOMKeyframesResolver extends KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {\n super(unresolvedKeyframes, onComplete, name, motionValue, element, true);\n }\n readKeyframes() {\n const { unresolvedKeyframes, element, name } = this;\n if (!element || !element.current)\n return;\n super.readKeyframes();\n /**\n * If any keyframe is a CSS variable, we need to find its value by sampling the element\n */\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n let keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\") {\n keyframe = keyframe.trim();\n if (isCSSVariableToken(keyframe)) {\n const resolved = getVariableValue(keyframe, element.current);\n if (resolved !== undefined) {\n unresolvedKeyframes[i] = resolved;\n }\n if (i === unresolvedKeyframes.length - 1) {\n this.finalKeyframe = keyframe;\n }\n }\n }\n }\n /**\n * Resolve \"none\" values. We do this potentially twice - once before and once after measuring keyframes.\n * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which\n * have a far bigger performance impact.\n */\n this.resolveNoneKeyframes();\n /**\n * Check to see if unit type has changed. If so schedule jobs that will\n * temporarily set styles to the destination keyframes.\n * Skip if we have more than two keyframes or this isn't a positional value.\n * TODO: We can throw if there are multiple keyframes and the value type changes.\n */\n if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n return;\n }\n const [origin, target] = unresolvedKeyframes;\n const originType = findDimensionValueType(origin);\n const targetType = findDimensionValueType(target);\n /**\n * If one keyframe contains embedded CSS variables (e.g. in calc()) and the other\n * doesn't, we need to measure to convert to pixels. This handles GitHub issue #3410.\n */\n const originHasVar = containsCSSVariable(origin);\n const targetHasVar = containsCSSVariable(target);\n if (originHasVar !== targetHasVar && positionalValues[name]) {\n this.needsMeasurement = true;\n return;\n }\n /**\n * Either we don't recognise these value types or we can animate between them.\n */\n if (originType === targetType)\n return;\n /**\n * If both values are numbers or pixels, we can animate between them by\n * converting them to numbers.\n */\n if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n const value = unresolvedKeyframes[i];\n if (typeof value === \"string\") {\n unresolvedKeyframes[i] = parseFloat(value);\n }\n }\n }\n else if (positionalValues[name]) {\n /**\n * Else, the only way to resolve this is by measuring the element.\n */\n this.needsMeasurement = true;\n }\n }\n resolveNoneKeyframes() {\n const { unresolvedKeyframes, name } = this;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n if (unresolvedKeyframes[i] === null ||\n isNone(unresolvedKeyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n }\n if (noneKeyframeIndexes.length) {\n makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n }\n }\n measureInitialState() {\n const { element, unresolvedKeyframes, name } = this;\n if (!element || !element.current)\n return;\n if (name === \"height\") {\n this.suspendedScrollY = window.pageYOffset;\n }\n this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n unresolvedKeyframes[0] = this.measuredOrigin;\n // Set final key frame to measure after next render\n const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (measureKeyframe !== undefined) {\n element.getValue(name, measureKeyframe).jump(measureKeyframe, false);\n }\n }\n measureEndState() {\n const { element, name, unresolvedKeyframes } = this;\n if (!element || !element.current)\n return;\n const value = element.getValue(name);\n value && value.jump(this.measuredOrigin, false);\n const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n if (finalKeyframe !== null && this.finalKeyframe === undefined) {\n this.finalKeyframe = finalKeyframe;\n }\n // If we removed transform values, reapply them before the next render\n if (this.removedTransforms?.length) {\n this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {\n element\n .getValue(unsetTransformName)\n .set(unsetTransformValue);\n });\n }\n this.resolveNoneKeyframes();\n }\n}\n\nexport { DOMKeyframesResolver };\n//# sourceMappingURL=DOMKeyframesResolver.mjs.map\n"],"names":["DOMKeyframesResolver","KeyframeResolver","constructor","unresolvedKeyframes","onComplete","name","motionValue","element","super","readKeyframes","this","current","i","length","keyframe","trim","isCSSVariableToken","resolved","getVariableValue","undefined","finalKeyframe","resolveNoneKeyframes","positionalKeys","has","origin","target","originType","findDimensionValueType","targetType","containsCSSVariable","positionalValues","needsMeasurement","isNumOrPxType","value","parseFloat","noneKeyframeIndexes","isNone","push","makeNoneKeyframesAnimatable","measureInitialState","suspendedScrollY","window","pageYOffset","measuredOrigin","measureViewportBox","getComputedStyle","measureKeyframe","getValue","jump","measureEndState","finalKeyframeIndex","removedTransforms","forEach","_ref","unsetTransformName","unsetTransformValue","set"],"mappings":"0bAmBM,MAAOA,UAEHC,EAAAA,iBAONC,WAAAA,CACIC,EACAC,EACAC,EACAC,EACAC,GAEAC,MAAML,EAAqBC,EAAYC,EAAMC,EAAaC,GAAS,EACvE,CAEAE,aAAAA,GACI,MAAMN,oBAAEA,EAAmBI,QAAEA,EAAOF,KAAEA,GAASK,KAE/C,IAAKH,IAAYA,EAAQI,QAAS,OAElCH,MAAMC,gBAKN,IAAK,IAAIG,EAAI,EAAGA,EAAIT,EAAoBU,OAAQD,IAAK,CACjD,IAAIE,EAAWX,EAAoBS,GAEnC,GAAwB,iBAAbE,IACPA,EAAWA,EAASC,OAEhBC,EAAAA,mBAAmBF,IAAW,CAC9B,MAAMG,EAAWC,EAAgBA,iBAACJ,EAAUP,EAAQI,cAEnCQ,IAAbF,IACAd,EAAoBS,GAAKK,GAGzBL,IAAMT,EAAoBU,OAAS,IACnCH,KAAKU,cAAgBN,EAE7B,CAER,CAeA,GARAJ,KAAKW,wBAQAC,EAAcA,eAACC,IAAIlB,IAAwC,IAA/BF,EAAoBU,OACjD,OAGJ,MAAOW,EAAQC,GAAUtB,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1C,GAC/B4B,GAASA,EAAMe,KAAKtC,KAAKiC,gBAAgB,GAEzC,MAAMO,EAAqB/C,EAAoBU,OAAS,EAClDO,EAAgBjB,EAAoB+C,GAE1C/C,EAAoB+C,GAAsBpB,mBAAiBzB,GACvDE,EAAQqC,qBACRH,OAAOI,iBAAiBtC,EAAQI,UAGd,OAAlBS,QAAiDD,IAAvBT,KAAKU,gBAC/BV,KAAKU,cAAgBA,GAIrBV,KAAKyC,mBAAmBtC,QACxBH,KAAKyC,kBAAkBC,SACnBC,IAA8C,IAA5CC,EAAoBC,GAAoBF,EACtC9C,EACKwC,SAASO,GACTE,IAAID,EAAoB,IAKzC7C,KAAKW,sBACT"}
1
+ {"version":3,"file":"DOMKeyframesResolver.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs"],"sourcesContent":["import { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { findDimensionValueType } from '../../value/types/dimensions.mjs';\nimport { getVariableValue } from '../utils/css-variables-conversion.mjs';\nimport { isCSSVariableToken } from '../utils/is-css-variable.mjs';\nimport { KeyframeResolver } from './KeyframesResolver.mjs';\nimport { isNone } from './utils/is-none.mjs';\nimport { makeNoneKeyframesAnimatable } from './utils/make-none-animatable.mjs';\nimport { isNumOrPxType, positionalValues } from './utils/unit-conversion.mjs';\n\nclass DOMKeyframesResolver extends KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {\n super(unresolvedKeyframes, onComplete, name, motionValue, element, true);\n }\n readKeyframes() {\n const { unresolvedKeyframes, element, name } = this;\n if (!element || !element.current)\n return;\n super.readKeyframes();\n /**\n * If any keyframe is a CSS variable, we need to find its value by sampling the element\n */\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n let keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\") {\n keyframe = keyframe.trim();\n if (isCSSVariableToken(keyframe)) {\n const resolved = getVariableValue(keyframe, element.current);\n if (resolved !== undefined) {\n unresolvedKeyframes[i] = resolved;\n }\n if (i === unresolvedKeyframes.length - 1) {\n this.finalKeyframe = keyframe;\n }\n }\n }\n }\n /**\n * Resolve \"none\" values. We do this potentially twice - once before and once after measuring keyframes.\n * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which\n * have a far bigger performance impact.\n */\n this.resolveNoneKeyframes();\n /**\n * Check to see if unit type has changed. If so schedule jobs that will\n * temporarily set styles to the destination keyframes.\n * Skip if we have more than two keyframes or this isn't a positional value.\n * TODO: We can throw if there are multiple keyframes and the value type changes.\n */\n if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n return;\n }\n const [origin, target] = unresolvedKeyframes;\n const originType = findDimensionValueType(origin);\n const targetType = findDimensionValueType(target);\n /**\n * Either we don't recognise these value types or we can animate between them.\n */\n if (originType === targetType)\n return;\n /**\n * If both values are numbers or pixels, we can animate between them by\n * converting them to numbers.\n */\n if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n const value = unresolvedKeyframes[i];\n if (typeof value === \"string\") {\n unresolvedKeyframes[i] = parseFloat(value);\n }\n }\n }\n else {\n /**\n * Else, the only way to resolve this is by measuring the element.\n */\n this.needsMeasurement = true;\n }\n }\n resolveNoneKeyframes() {\n const { unresolvedKeyframes, name } = this;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n if (unresolvedKeyframes[i] === null ||\n isNone(unresolvedKeyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n }\n if (noneKeyframeIndexes.length) {\n makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n }\n }\n measureInitialState() {\n const { element, unresolvedKeyframes, name } = this;\n if (!element || !element.current)\n return;\n if (name === \"height\") {\n this.suspendedScrollY = window.pageYOffset;\n }\n this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n unresolvedKeyframes[0] = this.measuredOrigin;\n // Set final key frame to measure after next render\n const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (measureKeyframe !== undefined) {\n element.getValue(name, measureKeyframe).jump(measureKeyframe, false);\n }\n }\n measureEndState() {\n const { element, name, unresolvedKeyframes } = this;\n if (!element || !element.current)\n return;\n const value = element.getValue(name);\n value && value.jump(this.measuredOrigin, false);\n const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n if (finalKeyframe !== null && this.finalKeyframe === undefined) {\n this.finalKeyframe = finalKeyframe;\n }\n // If we removed transform values, reapply them before the next render\n if (this.removedTransforms?.length) {\n this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {\n element\n .getValue(unsetTransformName)\n .set(unsetTransformValue);\n });\n }\n this.resolveNoneKeyframes();\n }\n}\n\nexport { DOMKeyframesResolver };\n"],"names":["DOMKeyframesResolver","KeyframeResolver","constructor","unresolvedKeyframes","onComplete","name","motionValue","element","super","readKeyframes","this","current","i","length","keyframe","trim","isCSSVariableToken","resolved","getVariableValue","undefined","finalKeyframe","resolveNoneKeyframes","positionalKeys","has","origin","target","originType","findDimensionValueType","targetType","isNumOrPxType","value","parseFloat","needsMeasurement","noneKeyframeIndexes","isNone","push","makeNoneKeyframesAnimatable","measureInitialState","suspendedScrollY","window","pageYOffset","measuredOrigin","positionalValues","measureViewportBox","getComputedStyle","measureKeyframe","getValue","jump","measureEndState","finalKeyframeIndex","removedTransforms","forEach","_ref","unsetTransformName","unsetTransformValue","set"],"mappings":"0bASA,MAAMA,UAA6BC,EAAAA,iBAC/BC,WAAAA,CAAYC,EAAqBC,EAAYC,EAAMC,EAAaC,GAC5DC,MAAML,EAAqBC,EAAYC,EAAMC,EAAaC,GAAS,EACvE,CACAE,aAAAA,GACI,MAAMN,oBAAEA,EAAmBI,QAAEA,EAAOF,KAAEA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AK+B,eAAiBC,mBAAiBrC,GAAME,EAAQoC,qBAAsBJ,OAAOK,iBAAiBrC,EAAQI,UAC3GR,EAAoB,GAAKO,KAAK+B,eAE9B,MAAMI,EAAkB1C,EAAoBA,EAAoBU,OAAS,QACjDM,IAApB0B,GACAtC,EAAQuC,SAASzC,EAAMwC,GAAiBE,KAAKF,GAAiB,EAEtE,CACAG,eAAAA,GACI,MAAMzC,QAAEA,EAAOF,KAAEA,EAAIF,oBAAEA,GAAwBO,KAC/C,IAAKH,IAAYA,EAAQI,QACrB,OACJ,MAAMmB,EAAQvB,EAAQuC,SAASzC,GAC/ByB,GAASA,EAAMiB,KAAKrC,KAAK+B,gBAAgB,GACzC,MAAMQ,EAAqB9C,EAAoBU,OAAS,EAClDO,EAAgBjB,EAAoB8C,GAC1C9C,EAAoB8C,GAAsBP,mBAAiBrC,GAAME,EAAQoC,qBAAsBJ,OAAOK,iBAAiBrC,EAAQI,UACzG,OAAlBS,QAAiDD,IAAvBT,KAAKU,gBAC/BV,KAAKU,cAAgBA,GAGrBV,KAAKwC,mBAAmBrC,QACxBH,KAAKwC,kBAAkBC,SAAQC,IAA+C,IAA7CC,EAAoBC,GAAoBF,EACrE7C,EACKuC,SAASO,GACTE,IAAID,EAAoB,IAGrC5C,KAAKW,sBACT"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/fill-wildcards.mjs.js"),s=require("./utils/unit-conversion.mjs.js"),t=require("../../frameloop/frame.mjs.js");const r=new Set;let n=!1,a=!1,l=!1;function i(){if(a){const e=Array.from(r).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=s.removeNonTranslationalTransform(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const s=n.get(e);s&&s.forEach((s=>{let[t,r]=s;e.getValue(t)?.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}a=!1,n=!1,r.forEach((e=>e.complete(l))),r.clear()}function o(){r.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(a=!0)}))}exports.KeyframeResolver=class{constructor(e,s,t,r,n){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=t,this.motionValue=r,this.element=n,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(r.add(this),n||(n=!0,t.frame.read(o),t.frame.resolveKeyframes(i))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:t,element:r,motionValue:n}=this;if(null===s[0]){const e=n?.get(),a=s[s.length-1];if(void 0!==e)s[0]=e;else if(r&&t){const e=r.readValue(t,a);null!=e&&(s[0]=e)}void 0===s[0]&&(s[0]=a),n&&void 0===e&&n.set(s[0])}e.fillWildcards(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),r.delete(this)}cancel(){"scheduled"===this.state&&(r.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}},exports.flushKeyframeResolvers=function(){l=!0,o(),i(),l=!1};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/fill-wildcards.mjs.js"),s=require("./utils/unit-conversion.mjs.js"),t=require("../../frameloop/frame.mjs.js");const r=new Set;let i=!1,l=!1,o=!1;function n(){if(l){const e=Array.from(r).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),i=new Map;t.forEach((e=>{const t=s.removeNonTranslationalTransform(e);t.length&&(i.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const s=i.get(e);s&&s.forEach((s=>{let[t,r]=s;e.getValue(t)?.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}l=!1,i=!1,r.forEach((e=>e.complete(o))),r.clear()}function a(){r.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(l=!0)}))}exports.KeyframeResolver=class{constructor(e,s,t,r,i){let l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=t,this.motionValue=r,this.element=i,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(r.add(this),i||(i=!0,t.frame.read(a),t.frame.resolveKeyframes(n))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:t,element:r,motionValue:i}=this;if(null===s[0]){const e=i?.get(),l=s[s.length-1];if(void 0!==e)s[0]=e;else if(r&&t){const e=r.readValue(t,l);null!=e&&(s[0]=e)}void 0===s[0]&&(s[0]=l),i&&void 0===e&&i.set(s[0])}e.fillWildcards(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),r.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,r.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},exports.flushKeyframeResolvers=function(){o=!0,a(),n(),o=!1};
2
2
  //# sourceMappingURL=KeyframesResolver.mjs.js.map