@nethesis/phone-island 0.7.63 → 0.7.65

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 (281) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/App.js.map +1 -1
  3. package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
  4. package/dist/_virtual/index2.js +1 -1
  5. package/dist/_virtual/index3.js +1 -1
  6. package/dist/_virtual/index4.js +1 -1
  7. package/dist/_virtual/index5.js +1 -1
  8. package/dist/_virtual/index6.js +1 -1
  9. package/dist/_virtual/index8.js +1 -1
  10. package/dist/components/AlertGuard.js +1 -1
  11. package/dist/components/AlertGuard.js.map +1 -1
  12. package/dist/components/AlertView/index.js +1 -1
  13. package/dist/components/AlertView/index.js.map +1 -1
  14. package/dist/components/CallView/Actions.js +1 -1
  15. package/dist/components/CallView/Actions.js.map +1 -1
  16. package/dist/components/CallView/BackCall.js +1 -1
  17. package/dist/components/CallView/BackCall.js.map +1 -1
  18. package/dist/components/CallView/Timer.d.ts +1 -0
  19. package/dist/components/CallView/Timer.js +1 -1
  20. package/dist/components/CallView/Timer.js.map +1 -1
  21. package/dist/components/CallView/index.js +1 -1
  22. package/dist/components/CallView/index.js.map +1 -1
  23. package/dist/components/Hangup.d.ts +10 -0
  24. package/dist/components/Hangup.js +2 -0
  25. package/dist/components/Hangup.js.map +1 -0
  26. package/dist/components/Island.js +1 -1
  27. package/dist/components/Island.js.map +1 -1
  28. package/dist/components/KeypadView/Actions.js +1 -1
  29. package/dist/components/KeypadView/Actions.js.map +1 -1
  30. package/dist/components/KeypadView/index.js +1 -1
  31. package/dist/components/KeypadView/index.js.map +1 -1
  32. package/dist/components/RestAPI.js +1 -1
  33. package/dist/components/RestAPI.js.map +1 -1
  34. package/dist/components/Socket.js +1 -1
  35. package/dist/components/Socket.js.map +1 -1
  36. package/dist/components/TransferView/ListAvatar.d.ts +7 -0
  37. package/dist/components/TransferView/ListAvatar.js +2 -0
  38. package/dist/components/TransferView/ListAvatar.js.map +1 -0
  39. package/dist/components/TransferView/TransferActions.d.ts +5 -0
  40. package/dist/components/TransferView/TransferActions.js +2 -0
  41. package/dist/components/TransferView/TransferActions.js.map +1 -0
  42. package/dist/components/TransferView/TransferList.d.ts +5 -0
  43. package/dist/components/TransferView/TransferList.js +2 -0
  44. package/dist/components/TransferView/TransferList.js.map +1 -0
  45. package/dist/components/TransferView/index.d.ts +2 -0
  46. package/dist/components/TransferView/index.js +2 -0
  47. package/dist/components/TransferView/index.js.map +1 -0
  48. package/dist/components/ViewsTransition.js +1 -1
  49. package/dist/components/ViewsTransition.js.map +1 -1
  50. package/dist/components/WebRTC.js +1 -1
  51. package/dist/components/WebRTC.js.map +1 -1
  52. package/dist/events/CallEvents.js +1 -1
  53. package/dist/events/CallEvents.js.map +1 -1
  54. package/dist/index.css +1 -1
  55. package/dist/lib/devices/devices.js +1 -1
  56. package/dist/lib/island/island.d.ts +4 -0
  57. package/dist/lib/island/island.js +1 -1
  58. package/dist/lib/island/island.js.map +1 -1
  59. package/dist/lib/phone/call.d.ts +19 -2
  60. package/dist/lib/phone/call.js +1 -1
  61. package/dist/lib/phone/call.js.map +1 -1
  62. package/dist/lib/user/extensions.d.ts +4 -0
  63. package/dist/lib/user/extensions.js.map +1 -1
  64. package/dist/models/alerts.js +1 -1
  65. package/dist/models/alerts.js.map +1 -1
  66. package/dist/models/animations.d.ts +466 -12
  67. package/dist/models/animations.js +1 -1
  68. package/dist/models/animations.js.map +1 -1
  69. package/dist/models/currentCall.d.ts +142 -0
  70. package/dist/models/currentCall.js +1 -1
  71. package/dist/models/currentCall.js.map +1 -1
  72. package/dist/models/currentUser.d.ts +2 -42
  73. package/dist/models/fetchDefaults.js +1 -1
  74. package/dist/models/fetchDefaults.js.map +1 -1
  75. package/dist/models/island.d.ts +1 -1
  76. package/dist/models/island.js.map +1 -1
  77. package/dist/models/users.d.ts +23 -5
  78. package/dist/models/users.js +1 -1
  79. package/dist/models/users.js.map +1 -1
  80. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +1 -1
  81. package/dist/node_modules/@nethesis/nethesis-light-svg-icons/index.mjs.js +1 -1
  82. package/dist/node_modules/@nethesis/nethesis-light-svg-icons/index.mjs.js.map +1 -1
  83. package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js +1 -1
  84. package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js.map +1 -1
  85. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
  86. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  87. package/dist/node_modules/mic-check/lib/index.js +1 -1
  88. package/dist/node_modules/prop-types/index.js +1 -1
  89. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  90. package/dist/node_modules/react-moment/dist/index.js +1 -1
  91. package/dist/node_modules/react-redux/node_modules/react-is/index.js +1 -1
  92. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +1 -1
  93. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +1 -1
  94. package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
  95. package/dist/services/astproxy.d.ts +13 -0
  96. package/dist/services/astproxy.js +2 -0
  97. package/dist/services/astproxy.js.map +1 -0
  98. package/dist/services/user.d.ts +5 -1
  99. package/dist/services/user.js +1 -1
  100. package/dist/services/user.js.map +1 -1
  101. package/dist/types/call.d.ts +5 -0
  102. package/dist/types/endpoints.d.ts +36 -0
  103. package/dist/types/index.d.ts +2 -0
  104. package/dist/types/user.d.ts +2 -21
  105. package/dist/utils/genericFunctions/timestamp.d.ts +4 -0
  106. package/dist/utils/genericFunctions/timestamp.js +2 -0
  107. package/dist/utils/genericFunctions/timestamp.js.map +1 -0
  108. package/package.json +1 -1
  109. package/dist/_virtual/framesync.cjs.js +0 -2
  110. package/dist/_virtual/framesync.cjs.js.map +0 -1
  111. package/dist/_virtual/hey-listen.es.js +0 -2
  112. package/dist/_virtual/hey-listen.es.js.map +0 -1
  113. package/dist/_virtual/index.es.js +0 -2
  114. package/dist/_virtual/index.es.js.map +0 -1
  115. package/dist/_virtual/index9.js +0 -2
  116. package/dist/_virtual/index9.js.map +0 -1
  117. package/dist/_virtual/valueTypes.cjs.js +0 -2
  118. package/dist/_virtual/valueTypes.cjs.js.map +0 -1
  119. package/dist/node_modules/@motionone/animation/dist/Animation.es.js +0 -2
  120. package/dist/node_modules/@motionone/animation/dist/Animation.es.js.map +0 -1
  121. package/dist/node_modules/@motionone/animation/dist/utils/easing.es.js +0 -2
  122. package/dist/node_modules/@motionone/animation/dist/utils/easing.es.js.map +0 -1
  123. package/dist/node_modules/@motionone/dom/dist/animate/animate-style.es.js +0 -2
  124. package/dist/node_modules/@motionone/dom/dist/animate/animate-style.es.js.map +0 -1
  125. package/dist/node_modules/@motionone/dom/dist/animate/data.es.js +0 -2
  126. package/dist/node_modules/@motionone/dom/dist/animate/data.es.js.map +0 -1
  127. package/dist/node_modules/@motionone/dom/dist/animate/index.es.js +0 -2
  128. package/dist/node_modules/@motionone/dom/dist/animate/index.es.js.map +0 -1
  129. package/dist/node_modules/@motionone/dom/dist/animate/style.es.js +0 -2
  130. package/dist/node_modules/@motionone/dom/dist/animate/style.es.js.map +0 -1
  131. package/dist/node_modules/@motionone/dom/dist/animate/utils/controls.es.js +0 -2
  132. package/dist/node_modules/@motionone/dom/dist/animate/utils/controls.es.js.map +0 -1
  133. package/dist/node_modules/@motionone/dom/dist/animate/utils/css-var.es.js +0 -2
  134. package/dist/node_modules/@motionone/dom/dist/animate/utils/css-var.es.js.map +0 -1
  135. package/dist/node_modules/@motionone/dom/dist/animate/utils/easing.es.js +0 -2
  136. package/dist/node_modules/@motionone/dom/dist/animate/utils/easing.es.js.map +0 -1
  137. package/dist/node_modules/@motionone/dom/dist/animate/utils/feature-detection.es.js +0 -2
  138. package/dist/node_modules/@motionone/dom/dist/animate/utils/feature-detection.es.js.map +0 -1
  139. package/dist/node_modules/@motionone/dom/dist/animate/utils/get-style-name.es.js +0 -2
  140. package/dist/node_modules/@motionone/dom/dist/animate/utils/get-style-name.es.js.map +0 -1
  141. package/dist/node_modules/@motionone/dom/dist/animate/utils/keyframes.es.js +0 -2
  142. package/dist/node_modules/@motionone/dom/dist/animate/utils/keyframes.es.js.map +0 -1
  143. package/dist/node_modules/@motionone/dom/dist/animate/utils/options.es.js +0 -2
  144. package/dist/node_modules/@motionone/dom/dist/animate/utils/options.es.js.map +0 -1
  145. package/dist/node_modules/@motionone/dom/dist/animate/utils/stop-animation.es.js +0 -2
  146. package/dist/node_modules/@motionone/dom/dist/animate/utils/stop-animation.es.js.map +0 -1
  147. package/dist/node_modules/@motionone/dom/dist/animate/utils/style-object.es.js +0 -2
  148. package/dist/node_modules/@motionone/dom/dist/animate/utils/style-object.es.js.map +0 -1
  149. package/dist/node_modules/@motionone/dom/dist/animate/utils/style-string.es.js +0 -2
  150. package/dist/node_modules/@motionone/dom/dist/animate/utils/style-string.es.js.map +0 -1
  151. package/dist/node_modules/@motionone/dom/dist/animate/utils/transforms.es.js +0 -2
  152. package/dist/node_modules/@motionone/dom/dist/animate/utils/transforms.es.js.map +0 -1
  153. package/dist/node_modules/@motionone/dom/dist/easing/create-generator-easing.es.js +0 -2
  154. package/dist/node_modules/@motionone/dom/dist/easing/create-generator-easing.es.js.map +0 -1
  155. package/dist/node_modules/@motionone/dom/dist/easing/glide/index.es.js +0 -2
  156. package/dist/node_modules/@motionone/dom/dist/easing/glide/index.es.js.map +0 -1
  157. package/dist/node_modules/@motionone/dom/dist/easing/spring/index.es.js +0 -2
  158. package/dist/node_modules/@motionone/dom/dist/easing/spring/index.es.js.map +0 -1
  159. package/dist/node_modules/@motionone/dom/dist/gestures/in-view.es.js +0 -2
  160. package/dist/node_modules/@motionone/dom/dist/gestures/in-view.es.js.map +0 -1
  161. package/dist/node_modules/@motionone/dom/dist/gestures/resize/handle-element.es.js +0 -2
  162. package/dist/node_modules/@motionone/dom/dist/gestures/resize/handle-element.es.js.map +0 -1
  163. package/dist/node_modules/@motionone/dom/dist/gestures/resize/handle-window.es.js +0 -2
  164. package/dist/node_modules/@motionone/dom/dist/gestures/resize/handle-window.es.js.map +0 -1
  165. package/dist/node_modules/@motionone/dom/dist/gestures/resize/index.es.js +0 -2
  166. package/dist/node_modules/@motionone/dom/dist/gestures/resize/index.es.js.map +0 -1
  167. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/index.es.js +0 -2
  168. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/index.es.js.map +0 -1
  169. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/info.es.js +0 -2
  170. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/info.es.js.map +0 -1
  171. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/edge.es.js +0 -2
  172. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/edge.es.js.map +0 -1
  173. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/index.es.js +0 -2
  174. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/index.es.js.map +0 -1
  175. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/inset.es.js +0 -2
  176. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/inset.es.js.map +0 -1
  177. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/offset.es.js +0 -2
  178. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/offset.es.js.map +0 -1
  179. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/presets.es.js +0 -2
  180. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/presets.es.js.map +0 -1
  181. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/on-scroll-handler.es.js +0 -2
  182. package/dist/node_modules/@motionone/dom/dist/gestures/scroll/on-scroll-handler.es.js.map +0 -1
  183. package/dist/node_modules/@motionone/dom/dist/index.es.js +0 -2
  184. package/dist/node_modules/@motionone/dom/dist/index.es.js.map +0 -1
  185. package/dist/node_modules/@motionone/dom/dist/state/gestures/hover.es.js +0 -2
  186. package/dist/node_modules/@motionone/dom/dist/state/gestures/hover.es.js.map +0 -1
  187. package/dist/node_modules/@motionone/dom/dist/state/gestures/in-view.es.js +0 -2
  188. package/dist/node_modules/@motionone/dom/dist/state/gestures/in-view.es.js.map +0 -1
  189. package/dist/node_modules/@motionone/dom/dist/state/gestures/press.es.js +0 -2
  190. package/dist/node_modules/@motionone/dom/dist/state/gestures/press.es.js.map +0 -1
  191. package/dist/node_modules/@motionone/dom/dist/state/index.es.js +0 -2
  192. package/dist/node_modules/@motionone/dom/dist/state/index.es.js.map +0 -1
  193. package/dist/node_modules/@motionone/dom/dist/state/utils/events.es.js +0 -2
  194. package/dist/node_modules/@motionone/dom/dist/state/utils/events.es.js.map +0 -1
  195. package/dist/node_modules/@motionone/dom/dist/state/utils/has-changed.es.js +0 -2
  196. package/dist/node_modules/@motionone/dom/dist/state/utils/has-changed.es.js.map +0 -1
  197. package/dist/node_modules/@motionone/dom/dist/state/utils/is-variant.es.js +0 -2
  198. package/dist/node_modules/@motionone/dom/dist/state/utils/is-variant.es.js.map +0 -1
  199. package/dist/node_modules/@motionone/dom/dist/state/utils/resolve-variant.es.js +0 -2
  200. package/dist/node_modules/@motionone/dom/dist/state/utils/resolve-variant.es.js.map +0 -1
  201. package/dist/node_modules/@motionone/dom/dist/state/utils/schedule.es.js +0 -2
  202. package/dist/node_modules/@motionone/dom/dist/state/utils/schedule.es.js.map +0 -1
  203. package/dist/node_modules/@motionone/dom/dist/timeline/index.es.js +0 -2
  204. package/dist/node_modules/@motionone/dom/dist/timeline/index.es.js.map +0 -1
  205. package/dist/node_modules/@motionone/dom/dist/timeline/utils/calc-time.es.js +0 -2
  206. package/dist/node_modules/@motionone/dom/dist/timeline/utils/calc-time.es.js.map +0 -1
  207. package/dist/node_modules/@motionone/dom/dist/timeline/utils/edit.es.js +0 -2
  208. package/dist/node_modules/@motionone/dom/dist/timeline/utils/edit.es.js.map +0 -1
  209. package/dist/node_modules/@motionone/dom/dist/timeline/utils/sort.es.js +0 -2
  210. package/dist/node_modules/@motionone/dom/dist/timeline/utils/sort.es.js.map +0 -1
  211. package/dist/node_modules/@motionone/dom/dist/utils/resolve-elements.es.js +0 -2
  212. package/dist/node_modules/@motionone/dom/dist/utils/resolve-elements.es.js.map +0 -1
  213. package/dist/node_modules/@motionone/dom/dist/utils/stagger.es.js +0 -2
  214. package/dist/node_modules/@motionone/dom/dist/utils/stagger.es.js.map +0 -1
  215. package/dist/node_modules/@motionone/easing/dist/cubic-bezier.es.js +0 -2
  216. package/dist/node_modules/@motionone/easing/dist/cubic-bezier.es.js.map +0 -1
  217. package/dist/node_modules/@motionone/easing/dist/steps.es.js +0 -2
  218. package/dist/node_modules/@motionone/easing/dist/steps.es.js.map +0 -1
  219. package/dist/node_modules/@motionone/generators/dist/glide/index.es.js +0 -2
  220. package/dist/node_modules/@motionone/generators/dist/glide/index.es.js.map +0 -1
  221. package/dist/node_modules/@motionone/generators/dist/spring/defaults.es.js +0 -2
  222. package/dist/node_modules/@motionone/generators/dist/spring/defaults.es.js.map +0 -1
  223. package/dist/node_modules/@motionone/generators/dist/spring/index.es.js +0 -2
  224. package/dist/node_modules/@motionone/generators/dist/spring/index.es.js.map +0 -1
  225. package/dist/node_modules/@motionone/generators/dist/spring/utils.es.js +0 -2
  226. package/dist/node_modules/@motionone/generators/dist/spring/utils.es.js.map +0 -1
  227. package/dist/node_modules/@motionone/generators/dist/utils/has-reached-target.es.js +0 -2
  228. package/dist/node_modules/@motionone/generators/dist/utils/has-reached-target.es.js.map +0 -1
  229. package/dist/node_modules/@motionone/generators/dist/utils/pregenerate-keyframes.es.js +0 -2
  230. package/dist/node_modules/@motionone/generators/dist/utils/pregenerate-keyframes.es.js.map +0 -1
  231. package/dist/node_modules/@motionone/generators/dist/utils/velocity.es.js +0 -2
  232. package/dist/node_modules/@motionone/generators/dist/utils/velocity.es.js.map +0 -1
  233. package/dist/node_modules/@motionone/types/dist/MotionValue.es.js +0 -2
  234. package/dist/node_modules/@motionone/types/dist/MotionValue.es.js.map +0 -1
  235. package/dist/node_modules/@motionone/utils/dist/array.es.js +0 -2
  236. package/dist/node_modules/@motionone/utils/dist/array.es.js.map +0 -1
  237. package/dist/node_modules/@motionone/utils/dist/clamp.es.js +0 -2
  238. package/dist/node_modules/@motionone/utils/dist/clamp.es.js.map +0 -1
  239. package/dist/node_modules/@motionone/utils/dist/defaults.es.js +0 -2
  240. package/dist/node_modules/@motionone/utils/dist/defaults.es.js.map +0 -1
  241. package/dist/node_modules/@motionone/utils/dist/easing.es.js +0 -2
  242. package/dist/node_modules/@motionone/utils/dist/easing.es.js.map +0 -1
  243. package/dist/node_modules/@motionone/utils/dist/interpolate.es.js +0 -2
  244. package/dist/node_modules/@motionone/utils/dist/interpolate.es.js.map +0 -1
  245. package/dist/node_modules/@motionone/utils/dist/is-cubic-bezier.es.js +0 -2
  246. package/dist/node_modules/@motionone/utils/dist/is-cubic-bezier.es.js.map +0 -1
  247. package/dist/node_modules/@motionone/utils/dist/is-easing-generator.es.js +0 -2
  248. package/dist/node_modules/@motionone/utils/dist/is-easing-generator.es.js.map +0 -1
  249. package/dist/node_modules/@motionone/utils/dist/is-easing-list.es.js +0 -2
  250. package/dist/node_modules/@motionone/utils/dist/is-easing-list.es.js.map +0 -1
  251. package/dist/node_modules/@motionone/utils/dist/is-function.es.js +0 -2
  252. package/dist/node_modules/@motionone/utils/dist/is-function.es.js.map +0 -1
  253. package/dist/node_modules/@motionone/utils/dist/is-number.es.js +0 -2
  254. package/dist/node_modules/@motionone/utils/dist/is-number.es.js.map +0 -1
  255. package/dist/node_modules/@motionone/utils/dist/is-string.es.js +0 -2
  256. package/dist/node_modules/@motionone/utils/dist/is-string.es.js.map +0 -1
  257. package/dist/node_modules/@motionone/utils/dist/mix.es.js +0 -2
  258. package/dist/node_modules/@motionone/utils/dist/mix.es.js.map +0 -1
  259. package/dist/node_modules/@motionone/utils/dist/noop.es.js +0 -2
  260. package/dist/node_modules/@motionone/utils/dist/noop.es.js.map +0 -1
  261. package/dist/node_modules/@motionone/utils/dist/offset.es.js +0 -2
  262. package/dist/node_modules/@motionone/utils/dist/offset.es.js.map +0 -1
  263. package/dist/node_modules/@motionone/utils/dist/progress.es.js +0 -2
  264. package/dist/node_modules/@motionone/utils/dist/progress.es.js.map +0 -1
  265. package/dist/node_modules/@motionone/utils/dist/time.es.js +0 -2
  266. package/dist/node_modules/@motionone/utils/dist/time.es.js.map +0 -1
  267. package/dist/node_modules/@motionone/utils/dist/velocity.es.js +0 -2
  268. package/dist/node_modules/@motionone/utils/dist/velocity.es.js.map +0 -1
  269. package/dist/node_modules/@motionone/utils/dist/wrap.es.js +0 -2
  270. package/dist/node_modules/@motionone/utils/dist/wrap.es.js.map +0 -1
  271. package/dist/node_modules/framer-motion/dist/cjs/index.js +0 -2
  272. package/dist/node_modules/framer-motion/dist/cjs/index.js.map +0 -1
  273. package/dist/node_modules/framesync/dist/framesync.cjs.js +0 -2
  274. package/dist/node_modules/framesync/dist/framesync.cjs.js.map +0 -1
  275. package/dist/node_modules/hey-listen/dist/hey-listen.es.js +0 -2
  276. package/dist/node_modules/hey-listen/dist/hey-listen.es.js.map +0 -1
  277. package/dist/node_modules/style-value-types/dist/valueTypes.cjs.js +0 -2
  278. package/dist/node_modules/style-value-types/dist/valueTypes.cjs.js.map +0 -1
  279. package/dist/services/extensions.d.ts +0 -4
  280. package/dist/services/extensions.js +0 -2
  281. package/dist/services/extensions.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"style-string.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/animate/utils/style-string.es.js"],"sourcesContent":["import { createStyles } from './style-object.es.js';\n\nconst camelLetterToPipeLetter = (letter) => `-${letter.toLowerCase()}`;\nconst camelToPipeCase = (str) => str.replace(/[A-Z]/g, camelLetterToPipeLetter);\nfunction createStyleString(target = {}) {\n const styles = createStyles(target);\n let style = \"\";\n for (const key in styles) {\n style += key.startsWith(\"--\") ? key : camelToPipeCase(key);\n style += `: ${styles[key]}; `;\n }\n return style;\n}\n\nexport { createStyleString };\n"],"names":["camelLetterToPipeLetter","letter","toLowerCase","camelToPipeCase","str","replace","target","arguments","length","undefined","styles","createStyles","style","key","startsWith"],"mappings":"0GAEMA,EAA0B,SAACC,GAAM,MAASA,IAAAA,OAAAA,EAAOC,cAAa,EAC9DC,EAAkB,SAACC,GAAG,OAAKA,EAAIC,QAAQ,SAAUL,EAAwB,4BAC/E,WAAwC,IAAbM,EAASC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAA,CAAA,EAC1BG,EAASC,eAAaL,GACxBM,EAAQ,GACZ,IAAK,IAAMC,KAAOH,EACdE,GAASC,EAAIC,WAAW,MAAQD,EAAMV,EAAgBU,GACtDD,GAAcF,KAAAA,OAAAA,EAAOG,GAAQ,MAEjC,OAAOD,CACX"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../utils/dist/array.es.js"),e=require("../../../../utils/dist/noop.es.js"),r=require("../data.es.js"),n=["","X","Y","Z"],a={x:"translateX",y:"translateY",z:"translateZ"},s={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:function(t){return t+"deg"}},o={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:function(t){return t+"px"}},rotate:s,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:e.noopReturn},skew:s},i=new Map,u=function(t){return"--motion-".concat(t)},f=["x","y","z"];["translate","scale","rotate","skew"].forEach((function(t){n.forEach((function(e){f.push(t+e),i.set(u(t+e),o[t])}))}));var c=function(t,e){return f.indexOf(t)-f.indexOf(e)},l=new Set(f),p=function(t){return t.sort(c).reduce(x,"").trim()},x=function(t,e){return"".concat(t," ").concat(e,"(var(").concat(u(e),"))")};exports.addTransformToElement=function(e,n){a[n]&&(n=a[n]);var s=r.getAnimationData(e).transforms;t.addUniqueItem(s,n),e.style.transform=p(s)},exports.asTransformCssVar=u,exports.axes=n,exports.buildTransformTemplate=p,exports.compareTransformOrder=c,exports.isTransform=function(t){return l.has(t)},exports.transformAlias=a,exports.transformDefinitions=i;
2
- //# sourceMappingURL=transforms.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transforms.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/animate/utils/transforms.es.js"],"sourcesContent":["import { noopReturn, addUniqueItem } from '@motionone/utils';\nimport { getAnimationData } from '../data.es.js';\n\n/**\n * A list of all transformable axes. We'll use this list to generated a version\n * of each axes for each transform.\n */\nconst axes = [\"\", \"X\", \"Y\", \"Z\"];\n/**\n * An ordered array of each transformable value. By default, transform values\n * will be sorted to this order.\n */\nconst order = [\"translate\", \"scale\", \"rotate\", \"skew\"];\nconst transformAlias = {\n x: \"translateX\",\n y: \"translateY\",\n z: \"translateZ\",\n};\nconst rotation = {\n syntax: \"<angle>\",\n initialValue: \"0deg\",\n toDefaultUnit: (v) => v + \"deg\",\n};\nconst baseTransformProperties = {\n translate: {\n syntax: \"<length-percentage>\",\n initialValue: \"0px\",\n toDefaultUnit: (v) => v + \"px\",\n },\n rotate: rotation,\n scale: {\n syntax: \"<number>\",\n initialValue: 1,\n toDefaultUnit: noopReturn,\n },\n skew: rotation,\n};\nconst transformDefinitions = new Map();\nconst asTransformCssVar = (name) => `--motion-${name}`;\n/**\n * Generate a list of every possible transform key\n */\nconst transforms = [\"x\", \"y\", \"z\"];\norder.forEach((name) => {\n axes.forEach((axis) => {\n transforms.push(name + axis);\n transformDefinitions.set(asTransformCssVar(name + axis), baseTransformProperties[name]);\n });\n});\n/**\n * A function to use with Array.sort to sort transform keys by their default order.\n */\nconst compareTransformOrder = (a, b) => transforms.indexOf(a) - transforms.indexOf(b);\n/**\n * Provide a quick way to check if a string is the name of a transform\n */\nconst transformLookup = new Set(transforms);\nconst isTransform = (name) => transformLookup.has(name);\nconst addTransformToElement = (element, name) => {\n // Map x to translateX etc\n if (transformAlias[name])\n name = transformAlias[name];\n const { transforms } = getAnimationData(element);\n addUniqueItem(transforms, name);\n /**\n * TODO: An optimisation here could be to cache the transform in element data\n * and only update if this has changed.\n */\n element.style.transform = buildTransformTemplate(transforms);\n};\nconst buildTransformTemplate = (transforms) => transforms\n .sort(compareTransformOrder)\n .reduce(transformListToString, \"\")\n .trim();\nconst transformListToString = (template, name) => `${template} ${name}(var(${asTransformCssVar(name)}))`;\n\nexport { addTransformToElement, asTransformCssVar, axes, buildTransformTemplate, compareTransformOrder, isTransform, transformAlias, transformDefinitions };\n"],"names":["axes","transformAlias","x","y","z","rotation","syntax","initialValue","toDefaultUnit","v","baseTransformProperties","translate","rotate","scale","noopReturn","skew","transformDefinitions","Map","asTransformCssVar","name","concat","transforms","forEach","axis","push","set","compareTransformOrder","a","b","indexOf","transformLookup","Set","buildTransformTemplate","sort","reduce","transformListToString","trim","template","element","getAnimationData","addUniqueItem","style","transform","has"],"mappings":"kMAOMA,EAAO,CAAC,GAAI,IAAK,IAAK,KAMtBC,EAAiB,CACnBC,EAAG,aACHC,EAAG,aACHC,EAAG,cAEDC,EAAW,CACbC,OAAQ,UACRC,aAAc,OACdC,cAAe,SAACC,GAAC,OAAKA,EAAI,KAAK,GAE7BC,EAA0B,CAC5BC,UAAW,CACPL,OAAQ,sBACRC,aAAc,MACdC,cAAe,SAACC,GAAC,OAAKA,EAAI,IAAI,GAElCG,OAAQP,EACRQ,MAAO,CACHP,OAAQ,WACRC,aAAc,EACdC,cAAeM,EAAAA,YAEnBC,KAAMV,GAEJW,EAAuB,IAAIC,IAC3BC,EAAoB,SAACC,GAAI,MAAA,YAAAC,OAAiBD,EAAI,EAI9CE,EAAa,CAAC,IAAK,IAAK,KA9BhB,CAAC,YAAa,QAAS,SAAU,QA+BzCC,SAAQ,SAACH,GACXnB,EAAKsB,SAAQ,SAACC,GACVF,EAAWG,KAAKL,EAAOI,GACvBP,EAAqBS,IAAIP,EAAkBC,EAAOI,GAAOb,EAAwBS,GACrF,GACJ,IAIA,IAAMO,EAAwB,SAACC,EAAGC,GAAC,OAAKP,EAAWQ,QAAQF,GAAKN,EAAWQ,QAAQD,EAAE,EAI/EE,EAAkB,IAAIC,IAAIV,GAc1BW,EAAyB,SAACX,GAAU,OAAKA,EAC1CY,KAAKP,GACLQ,OAAOC,EAAuB,IAC9BC,MAAM,EACLD,EAAwB,SAACE,EAAUlB,GAAI,MAAA,GAAAC,OAAQiB,EAAYlB,KAAAA,OAAAA,kBAAYD,EAAkBC,GAAK,KAAA,gCAhBtE,SAACmB,EAASnB,GAEhClB,EAAekB,KACfA,EAAOlB,EAAekB,IAC1B,IAAQE,EAAekB,EAAgBA,iBAACD,GAAhCjB,WACRmB,gBAAcnB,EAAYF,GAK1BmB,EAAQG,MAAMC,UAAYV,EAAuBX,EACrD,kIAZoB,SAACF,GAAI,OAAKW,EAAgBa,IAAIxB,EAAK"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../generators/dist/utils/velocity.es.js"),r=require("../../../generators/dist/utils/pregenerate-keyframes.es.js");var t=function(e){return"string"!=typeof e};exports.createGeneratorEasing=function(n){var a=new WeakMap;return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=new Map,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s="".concat(e,"-").concat(r,"-").concat(t,"-").concat(a);return i.has(s)||i.set(s,n(Object.assign({from:e,to:r,velocity:t,restSpeed:a?.05:2,restDistance:a?.01:.5},o))),i.get(s)},l=function(e){return a.has(e)||a.set(e,r.pregenerateKeyframes(e)),a.get(e)};return{createAnimation:function(r,n,a,o,i){var c,u,v,g=r.length;if(a&&g<=2&&r.every(t)){var d=r[g-1],f=1===g?null:r[0],p=0,m=0,h=null==i?void 0:i.generator;if(h){var y=i.animation,j=i.generatorStartTime,b=(null==y?void 0:y.startTime)||j||0,w=(null==y?void 0:y.currentTime)||performance.now()-b,O=h(w).current;m=null!==(c=f)&&void 0!==c?c:O,(1===g||2===g&&null===r[0])&&(p=e.calcGeneratorVelocity((function(e){return h(e).current}),w,O))}else m=null!==(u=f)&&void 0!==u?u:parseFloat(n());var T=s(m,d,p,null==o?void 0:o.includes("scale")),M=l(T);v=Object.assign(Object.assign({},M),{easing:"linear"}),i&&(i.generator=T,i.generatorStartTime=performance.now())}else{v={easing:"ease",duration:l(s(0,100)).overshootDuration}}return v}}}};
2
- //# sourceMappingURL=create-generator-easing.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-generator-easing.es.js","sources":["../../../../../../node_modules/@motionone/dom/dist/easing/create-generator-easing.es.js"],"sourcesContent":["import { calcGeneratorVelocity, pregenerateKeyframes } from '@motionone/generators';\n\nfunction createGeneratorEasing(createGenerator) {\n const keyframesCache = new WeakMap();\n return (options = {}) => {\n const generatorCache = new Map();\n const getGenerator = (from = 0, to = 100, velocity = 0, isScale = false) => {\n const key = `${from}-${to}-${velocity}-${isScale}`;\n if (!generatorCache.has(key)) {\n generatorCache.set(key, createGenerator(Object.assign({ from,\n to,\n velocity, restSpeed: isScale ? 0.05 : 2, restDistance: isScale ? 0.01 : 0.5 }, options)));\n }\n return generatorCache.get(key);\n };\n const getKeyframes = (generator) => {\n if (!keyframesCache.has(generator)) {\n keyframesCache.set(generator, pregenerateKeyframes(generator));\n }\n return keyframesCache.get(generator);\n };\n return {\n createAnimation: (keyframes, getOrigin, canUseGenerator, name, motionValue) => {\n var _a, _b;\n let settings;\n const numKeyframes = keyframes.length;\n let shouldUseGenerator = canUseGenerator &&\n numKeyframes <= 2 &&\n keyframes.every(isNumberOrNull);\n if (shouldUseGenerator) {\n const target = keyframes[numKeyframes - 1];\n const unresolvedOrigin = numKeyframes === 1 ? null : keyframes[0];\n let velocity = 0;\n let origin = 0;\n const prevGenerator = motionValue === null || motionValue === void 0 ? void 0 : motionValue.generator;\n if (prevGenerator) {\n /**\n * If we have a generator for this value we can use it to resolve\n * the animations's current value and velocity.\n */\n const { animation, generatorStartTime } = motionValue;\n const startTime = (animation === null || animation === void 0 ? void 0 : animation.startTime) || generatorStartTime || 0;\n const currentTime = (animation === null || animation === void 0 ? void 0 : animation.currentTime) || performance.now() - startTime;\n const prevGeneratorCurrent = prevGenerator(currentTime).current;\n origin = (_a = unresolvedOrigin) !== null && _a !== void 0 ? _a : prevGeneratorCurrent;\n if (numKeyframes === 1 ||\n (numKeyframes === 2 && keyframes[0] === null)) {\n velocity = calcGeneratorVelocity((t) => prevGenerator(t).current, currentTime, prevGeneratorCurrent);\n }\n }\n else {\n origin = (_b = unresolvedOrigin) !== null && _b !== void 0 ? _b : parseFloat(getOrigin());\n }\n const generator = getGenerator(origin, target, velocity, name === null || name === void 0 ? void 0 : name.includes(\"scale\"));\n const keyframesMetadata = getKeyframes(generator);\n settings = Object.assign(Object.assign({}, keyframesMetadata), { easing: \"linear\" });\n // TODO Add test for this\n if (motionValue) {\n motionValue.generator = generator;\n motionValue.generatorStartTime = performance.now();\n }\n }\n else {\n const keyframesMetadata = getKeyframes(getGenerator(0, 100));\n settings = {\n easing: \"ease\",\n duration: keyframesMetadata.overshootDuration,\n };\n }\n return settings;\n },\n };\n };\n}\nconst isNumberOrNull = (value) => typeof value !== \"string\";\n\nexport { createGeneratorEasing };\n"],"names":["isNumberOrNull","value","createGenerator","keyframesCache","WeakMap","options","arguments","length","undefined","generatorCache","Map","getGenerator","from","to","velocity","isScale","key","concat","has","set","Object","assign","restSpeed","restDistance","get","getKeyframes","generator","pregenerateKeyframes","createAnimation","keyframes","getOrigin","canUseGenerator","name","motionValue","_a","_b","settings","numKeyframes","every","target","unresolvedOrigin","origin","prevGenerator","animation","generatorStartTime","startTime","currentTime","performance","now","prevGeneratorCurrent","current","calcGeneratorVelocity","t","parseFloat","includes","ke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nHI,EAAuBP,EAAcI,GAAaI,QACxDT,EAAqC,QAA3BP,EAAKM,SAAqC,IAAPN,EAAgBA,EAAKe,GAC7C,IAAjBZ,GACkB,IAAjBA,GAAuC,OAAjBR,EAAU,MACjCf,EAAWqC,EAAAA,uBAAsB,SAACC,GAAC,OAAKV,EAAcU,GAAGF,UAASJ,EAAaG,GAEvF,MAEIR,EAAqC,QAA3BN,EAAKK,SAAqC,IAAPL,EAAgBA,EAAKkB,WAAWvB,KAEjF,IAAMJ,EAAYf,EAAa8B,EAAQF,EAAQzB,EAAUkB,aAAmC,EAASA,EAAKsB,SAAS,UAC7GC,EAAoB9B,EAAaC,GACvCU,EAAWhB,OAAOC,OAAOD,OAAOC,OAAO,CAAA,EAAIkC,GAAoB,CAAEC,OAAQ,WAErEvB,IACAA,EAAYP,UAAYA,EACxBO,EAAYW,mBAAqBG,YAAYC,MAErD,KACK,CAEDZ,EAAW,CACPoB,OAAQ,OACRC,SAHsBhC,EAAad,EAAa,EAAG,MAGvB+C,kBAEpC,CACA,OAAOtB,CACX,GAGZ"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../generators/dist/glide/index.es.js"),r=require("../create-generator-easing.es.js").createGeneratorEasing(e.glide);exports.glide=r;
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/easing/glide/index.es.js"],"sourcesContent":["import { glide as glide$1 } from '@motionone/generators';\nimport { createGeneratorEasing } from '../create-generator-easing.es.js';\n\nconst glide = createGeneratorEasing(glide$1);\n\nexport { glide };\n"],"names":["glide","createGeneratorEasing","glide$1"],"mappings":"mIAGMA,8CAA6BC,sBAACC,EAAOF"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../generators/dist/spring/index.es.js"),r=require("../create-generator-easing.es.js").createGeneratorEasing(e.spring);exports.spring=r;
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/easing/spring/index.es.js"],"sourcesContent":["import { spring as spring$1 } from '@motionone/generators';\nimport { createGeneratorEasing } from '../create-generator-easing.es.js';\n\nconst spring = createGeneratorEasing(spring$1);\n\nexport { spring };\n"],"names":["spring","createGeneratorEasing","spring$1"],"mappings":"oIAGMA,8CAA8BC,sBAACC,EAAQF"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/resolve-elements.es.js"),t=require("../../../utils/dist/is-function.es.js"),n={any:0,all:1};exports.inView=function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i.root,u=i.margin,a=i.amount,c=void 0===a?"any":a;if("undefined"==typeof IntersectionObserver)return function(){};var f=e.resolveElements(r),l=new WeakMap,v=function(e){e.forEach((function(e){var n=l.get(e.target);if(e.isIntersecting!==Boolean(n))if(e.isIntersecting){var r=o(e);t.isFunction(r)?l.set(e.target,r):d.unobserve(e.target)}else n&&(n(e),l.delete(e.target))}))},d=new IntersectionObserver(v,{root:s,rootMargin:u,threshold:"number"==typeof c?c:n[c]});return f.forEach((function(e){return d.observe(e)})),function(){return d.disconnect()}};
2
- //# sourceMappingURL=in-view.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"in-view.es.js","sources":["../../../../../../node_modules/@motionone/dom/dist/gestures/in-view.es.js"],"sourcesContent":["import { resolveElements } from '../utils/resolve-elements.es.js';\nimport { isFunction } from '@motionone/utils';\n\nconst thresholds = {\n any: 0,\n all: 1,\n};\nfunction inView(elementOrSelector, onStart, { root, margin: rootMargin, amount = \"any\" } = {}) {\n /**\n * If this browser doesn't support IntersectionObserver, return a dummy stop function.\n * Default triggering of onStart is tricky - it could be used for starting/stopping\n * videos, lazy loading content etc. We could provide an option to enable a fallback, or\n * provide a fallback callback option.\n */\n if (typeof IntersectionObserver === \"undefined\") {\n return () => { };\n }\n const elements = resolveElements(elementOrSelector);\n const activeIntersections = new WeakMap();\n const onIntersectionChange = (entries) => {\n entries.forEach((entry) => {\n const onEnd = activeIntersections.get(entry.target);\n /**\n * If there's no change to the intersection, we don't need to\n * do anything here.\n */\n if (entry.isIntersecting === Boolean(onEnd))\n return;\n if (entry.isIntersecting) {\n const newOnEnd = onStart(entry);\n if (isFunction(newOnEnd)) {\n activeIntersections.set(entry.target, newOnEnd);\n }\n else {\n observer.unobserve(entry.target);\n }\n }\n else if (onEnd) {\n onEnd(entry);\n activeIntersections.delete(entry.target);\n }\n });\n };\n const observer = new IntersectionObserver(onIntersectionChange, {\n root,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholds[amount],\n });\n elements.forEach((element) => observer.observe(element));\n return () => observer.disconnect();\n}\n\nexport { inView };\n"],"names":["thresholds","any","all","elementOrSelector","onStart","_ref","arguments","length","undefined","root","rootMargin","margin","_ref$amount","amount","IntersectionObserver","elements","resolveElements","activeIntersections","WeakMap","onIntersectionChange","entries","forEach","entry","onEnd","get","target","isIntersecting","Boolean","newOnEnd","isFunction","set","observer","unobserve","delete","threshold","element","observe","disconnect"],"mappings":"wKAGMA,EAAa,CACfC,IAAK,EACLC,IAAK,kBAET,SAAgBC,EAAmBC,GAA4D,IAAAC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAJ,CAAE,EAA/CG,IAAAA,KAAcC,IAARC,OAAMC,EAAAP,EAAcQ,OAAAA,aAAS,MAAKD,EAOlF,GAAoC,oBAAzBE,qBACP,OAAO,WAAM,EAEjB,IAAMC,EAAWC,kBAAgBb,GAC3Bc,EAAsB,IAAIC,QAC1BC,EAAuB,SAACC,GAC1BA,EAAQC,SAAQ,SAACC,GACb,IAAMC,EAAQN,EAAoBO,IAAIF,EAAMG,QAK5C,GAAIH,EAAMI,iBAAmBC,QAAQJ,GAErC,GAAID,EAAMI,eAAgB,CACtB,IAAME,EAAWxB,EAAQkB,GACrBO,EAAAA,WAAWD,GACXX,EAAoBa,IAAIR,EAAMG,OAAQG,GAGtCG,EAASC,UAAUV,EAAMG,OAEhC,MACQF,IACLA,EAAMD,GACNL,EAAoBgB,OAAOX,EAAMG,QAEzC,KAEEM,EAAW,IAAIjB,qBAAqBK,EAAsB,CAC5DV,KAAAA,EACAC,WAAAA,EACAwB,UAA6B,iBAAXrB,EAAsBA,EAASb,EAAWa,KAGhE,OADAE,EAASM,SAAQ,SAACc,GAAO,OAAKJ,EAASK,QAAQD,MACxC,WAAA,OAAMJ,EAASM,YAAY,CACtC"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("../../utils/resolve-elements.es.js"),n=new WeakMap;function r(e){var t,r=e.target,i=e.contentRect,o=e.borderBoxSize;null===(t=n.get(r))||void 0===t||t.forEach((function(e){e({target:r,contentSize:i,get size(){return function(e,t){if(t){var n=t[0];return{width:n.inlineSize,height:n.blockSize}}return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}(r,o)}})}))}function i(e){e.forEach(r)}exports.resizeElement=function(r,o){e||"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(i));var s=t.resolveElements(r);return s.forEach((function(t){var r=n.get(t);r||(r=new Set,n.set(t,r)),r.add(o),null==e||e.observe(t)})),function(){s.forEach((function(t){var r=n.get(t);null==r||r.delete(o),(null==r?void 0:r.size)||null==e||e.unobserve(t)}))}};
2
- //# sourceMappingURL=handle-element.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handle-element.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/gestures/resize/handle-element.es.js"],"sourcesContent":["import { resolveElements } from '../../utils/resolve-elements.es.js';\n\nconst resizeHandlers = new WeakMap();\nlet observer;\nfunction getElementSize(target, borderBoxSize) {\n if (borderBoxSize) {\n const { inlineSize, blockSize } = borderBoxSize[0];\n return { width: inlineSize, height: blockSize };\n }\n else if (target instanceof SVGElement && \"getBBox\" in target) {\n return target.getBBox();\n }\n else {\n return {\n width: target.offsetWidth,\n height: target.offsetHeight,\n };\n }\n}\nfunction notifyTarget({ target, contentRect, borderBoxSize, }) {\n var _a;\n (_a = resizeHandlers.get(target)) === null || _a === void 0 ? void 0 : _a.forEach((handler) => {\n handler({\n target,\n contentSize: contentRect,\n get size() {\n return getElementSize(target, borderBoxSize);\n },\n });\n });\n}\nfunction notifyAll(entries) {\n entries.forEach(notifyTarget);\n}\nfunction createResizeObserver() {\n if (typeof ResizeObserver === \"undefined\")\n return;\n observer = new ResizeObserver(notifyAll);\n}\nfunction resizeElement(target, handler) {\n if (!observer)\n createResizeObserver();\n const elements = resolveElements(target);\n elements.forEach((element) => {\n let elementHandlers = resizeHandlers.get(element);\n if (!elementHandlers) {\n elementHandlers = new Set();\n resizeHandlers.set(element, elementHandlers);\n }\n elementHandlers.add(handler);\n observer === null || observer === void 0 ? void 0 : observer.observe(element);\n });\n return () => {\n elements.forEach((element) => {\n const elementHandlers = resizeHandlers.get(element);\n elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.delete(handler);\n if (!(elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.size)) {\n observer === null || observer === void 0 ? void 0 : observer.unobserve(element);\n }\n });\n };\n}\n\nexport { resizeElement };\n"],"names":["observer","resizeHandlers","WeakMap","notifyTarget","_ref","_a","target","contentRect","borderBoxSize","get","forEach","handler","contentSize","size","width","inlineSize","height","blockSize","SVGElement","getBBox","offsetWidth","offsetHeight","getElementSize","notifyAll","entries","ResizeObserver","elements","resolveElements","element","elementHandlers","Set","set","add","observe","delete","unobserve"],"mappings":"wEAGIA,kDADEC,EAAiB,IAAIC,QAiB3B,SAASC,EAAsDC,GAAA,IACvDC,EADgBC,IAAAA,OAAQC,IAAAA,YAAaC,IAAAA,cAEH,QAArCH,EAAKJ,EAAeQ,IAAIH,UAA4B,IAAPD,GAAyBA,EAAGK,SAAQ,SAACC,GAC/EA,EAAQ,CACJL,OAAAA,EACAM,YAAaL,EACTM,WACA,OAtBhB,SAAwBP,EAAQE,GAC5B,GAAIA,EAAe,CACf,IAAkCA,EAAAA,EAAc,GAChD,MAAO,CAAEM,QADDC,WACoBC,SADRC,UAEvB,CACI,OAAIX,aAAkBY,YAAc,YAAaZ,EAC3CA,EAAOa,UAGP,CACHL,MAAOR,EAAOc,YACdJ,OAAQV,EAAOe,aAG3B,CAQuBC,CAAehB,EAAQE,EAClC,GAER,GACJ,CACA,SAASe,EAAUC,GACfA,EAAQd,QAAQP,EACpB,uBAMA,SAAuBG,EAAQK,GACtBX,GALyB,oBAAnByB,iBAEXzB,EAAW,IAAIyB,eAAeF,IAK9B,IAAMG,EAAWC,kBAAgBrB,GAUjC,OATAoB,EAAShB,SAAQ,SAACkB,GACd,IAAIC,EAAkB5B,EAAeQ,IAAImB,GACpCC,IACDA,EAAkB,IAAIC,IACtB7B,EAAe8B,IAAIH,EAASC,IAEhCA,EAAgBG,IAAIrB,GACpBX,SAAoDA,EAASiC,QAAQL,EACzE,IACO,WACHF,EAAShB,SAAQ,SAACkB,GACd,IAAMC,EAAkB5B,EAAeQ,IAAImB,GAC3CC,SAAkEA,EAAgBK,OAAOvB,IACnFkB,aAAyD,EAASA,EAAgBhB,OACpFb,SAAoDA,EAASmC,UAAUP,EAE/E,IAER"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n=new Set;exports.resizeWindow=function(i){return n.add(i),e||(e=function(){var e={width:window.innerWidth,height:window.innerHeight},i={target:window,size:e,contentSize:e};n.forEach((function(e){return e(i)}))},window.addEventListener("resize",e)),function(){n.delete(i),!n.size&&e&&(e=void 0)}};
2
- //# sourceMappingURL=handle-window.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handle-window.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/gestures/resize/handle-window.es.js"],"sourcesContent":["const windowCallbacks = new Set();\nlet windowResizeHandler;\nfunction createWindowResizeHandler() {\n windowResizeHandler = () => {\n const size = {\n width: window.innerWidth,\n height: window.innerHeight,\n };\n const info = {\n target: window,\n size,\n contentSize: size,\n };\n windowCallbacks.forEach((callback) => callback(info));\n };\n window.addEventListener(\"resize\", windowResizeHandler);\n}\nfunction resizeWindow(callback) {\n windowCallbacks.add(callback);\n if (!windowResizeHandler)\n createWindowResizeHandler();\n return () => {\n windowCallbacks.delete(callback);\n if (!windowCallbacks.size && windowResizeHandler) {\n windowResizeHandler = undefined;\n }\n };\n}\n\nexport { resizeWindow };\n"],"names":["windowResizeHandler","windowCallbacks","Set","callback","add","size","width","window","innerWidth","height","innerHeight","info","target","contentSize","forEach","addEventListener","delete","undefined"],"mappings":"oEAAA,IACIA,EADEC,EAAkB,IAAIC,yBAiB5B,SAAsBC,GAIlB,OAHAF,EAAgBG,IAAID,GACfH,IAhBLA,EAAsB,WAClB,IAAMK,EAAO,CACTC,MAAOC,OAAOC,WACdC,OAAQF,OAAOG,aAEbC,EAAO,CACTC,OAAQL,OACRF,KAAAA,EACAQ,YAAaR,GAEjBJ,EAAgBa,SAAQ,SAACX,GAAQ,OAAKA,EAASQ,OAEnDJ,OAAOQ,iBAAiB,SAAUf,IAM3B,WACHC,EAAgBe,OAAOb,IAClBF,EAAgBI,MAAQL,IACzBA,OAAsBiB,GAGlC"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./handle-element.es.js"),s=require("./handle-window.es.js"),i=require("../../../../utils/dist/is-function.es.js");exports.resize=function(r,n){return i.isFunction(r)?s.resizeWindow(r):e.resizeElement(r,n)};
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/gestures/resize/index.es.js"],"sourcesContent":["import { resizeElement } from './handle-element.es.js';\nimport { resizeWindow } from './handle-window.es.js';\nimport { isFunction } from '@motionone/utils';\n\nfunction resize(a, b) {\n return isFunction(a) ? resizeWindow(a) : resizeElement(a, b);\n}\n\nexport { resize };\n"],"names":["a","b","isFunction","resizeWindow","resizeElement"],"mappings":"oNAIA,SAAgBA,EAAGC,GACf,OAAOC,EAAUA,WAACF,GAAKG,EAAYA,aAACH,GAAKI,EAAaA,cAACJ,EAAGC,EAC9D"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../../_virtual/_rollupPluginBabelHelpers.js"),r=require("../../../../../tslib/tslib.es6.js"),t=require("../resize/index.es.js"),n=require("./info.es.js"),a=require("./on-scroll-handler.es.js"),o=new WeakMap,i=new WeakMap,l=new WeakMap,s=function(e){return e===document.documentElement?window:e};exports.scroll=function(c){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=u.container,v=void 0===d?document.documentElement:d,f=r.__rest(u,["container"]),m=l.get(v);m||(m=new Set,l.set(v,m));var p=n.createScrollInfo(),w=a.createOnScrollHandler(v,c,p,f);if(m.add(w),!o.has(v)){var y=function(){var r,t=performance.now(),n=e.createForOfIteratorHelper(m);try{for(n.s();!(r=n.n()).done;){r.value.measure()}}catch(e){n.e(e)}finally{n.f()}var a,o=e.createForOfIteratorHelper(m);try{for(o.s();!(a=o.n()).done;){a.value.update(t)}}catch(e){o.e(e)}finally{o.f()}var i,l=e.createForOfIteratorHelper(m);try{for(l.s();!(i=l.n()).done;){i.value.notify()}}catch(e){l.e(e)}finally{l.f()}};o.set(v,y);var g=s(v);window.addEventListener("resize",y,{passive:!0}),v!==document.documentElement&&i.set(v,t.resize(v,y)),g.addEventListener("scroll",y,{passive:!0})}var E=o.get(v),h=requestAnimationFrame(E);return function(){var e;"function"!=typeof c&&c.stop(),cancelAnimationFrame(h);var r=l.get(v);if(r&&(r.delete(w),!r.size)){var t=o.get(v);o.delete(v),t&&(s(v).removeEventListener("scroll",t),null===(e=i.get(v))||void 0===e||e(),window.removeEventListener("resize",t))}}};
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/gestures/scroll/index.es.js"],"sourcesContent":["import { __rest } from 'tslib';\nimport { resize } from '../resize/index.es.js';\nimport { createScrollInfo } from './info.es.js';\nimport { createOnScrollHandler } from './on-scroll-handler.es.js';\n\nconst scrollListeners = new WeakMap();\nconst resizeListeners = new WeakMap();\nconst onScrollHandlers = new WeakMap();\nconst getEventTarget = (element) => element === document.documentElement ? window : element;\nfunction scroll(onScroll, _a = {}) {\n var { container = document.documentElement } = _a, options = __rest(_a, [\"container\"]);\n let containerHandlers = onScrollHandlers.get(container);\n /**\n * Get the onScroll handlers for this container.\n * If one isn't found, create a new one.\n */\n if (!containerHandlers) {\n containerHandlers = new Set();\n onScrollHandlers.set(container, containerHandlers);\n }\n /**\n * Create a new onScroll handler for the provided callback.\n */\n const info = createScrollInfo();\n const containerHandler = createOnScrollHandler(container, onScroll, info, options);\n containerHandlers.add(containerHandler);\n /**\n * Check if there's a scroll event listener for this container.\n * If not, create one.\n */\n if (!scrollListeners.has(container)) {\n const listener = () => {\n const time = performance.now();\n for (const handler of containerHandlers)\n handler.measure();\n for (const handler of containerHandlers)\n handler.update(time);\n for (const handler of containerHandlers)\n handler.notify();\n };\n scrollListeners.set(container, listener);\n const target = getEventTarget(container);\n window.addEventListener(\"resize\", listener, { passive: true });\n if (container !== document.documentElement) {\n resizeListeners.set(container, resize(container, listener));\n }\n target.addEventListener(\"scroll\", listener, { passive: true });\n }\n const listener = scrollListeners.get(container);\n const onLoadProcesss = requestAnimationFrame(listener);\n return () => {\n var _a;\n if (typeof onScroll !== \"function\")\n onScroll.stop();\n cancelAnimationFrame(onLoadProcesss);\n /**\n * Check if we even have any handlers for this container.\n */\n const containerHandlers = onScrollHandlers.get(container);\n if (!containerHandlers)\n return;\n containerHandlers.delete(containerHandler);\n if (containerHandlers.size)\n return;\n /**\n * If no more handlers, remove the scroll listener too.\n */\n const listener = scrollListeners.get(container);\n scrollListeners.delete(container);\n if (listener) {\n getEventTarget(container).removeEventListener(\"scroll\", listener);\n (_a = resizeListeners.get(container)) === null || _a === void 0 ? void 0 : _a();\n window.removeEventListener(\"resize\", listener);\n }\n };\n}\n\nexport { scroll };\n"],"names":["scrollListeners","WeakMap","resizeListeners","onScrollHandlers","getEventTarget","element","document","documentElement","window","onScroll","_a","arguments","length","undefined","container","_a$container","options","__rest","containerHandlers","get","Set","set","info","createScrollInfo","containerHandler","createOnScrollHandler","add","has","listener","_step","time","performance","now","_iterator","_createForOfIteratorHelper","createForOfIteratorHelper","s","n","done","value","measure","err","e","f","_step2","_iterator2","update","_step3","_iterator3","notify","target","addEventListener","passive","resize","onLoadProcesss","requestAnimationFrame","stop","cancelAnimationFrame","delete","size","removeEventListener"],"mappings":"gSAKMA,EAAkB,IAAIC,QACtBC,EAAkB,IAAID,QACtBE,EAAmB,IAAIF,QACvBG,EAAiB,SAACC,GAAO,OAAKA,IAAYC,SAASC,gBAAkBC,OAASH,CAAO,iBAC3F,SAAgBI,GAAmB,IAATC,EAAKC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAA,CAAA,EACoBD,EAAAA,EAAzCI,UAAAA,OAAS,IAAAC,EAAGT,SAASC,gBAAeQ,EAASC,EAAUC,EAAAA,OAAOP,EAAI,CAAC,cACrEQ,EAAoBf,EAAiBgB,IAAIL,GAKxCI,IACDA,EAAoB,IAAIE,IACxBjB,EAAiBkB,IAAIP,EAAWI,IAKpC,IAAMI,EAAOC,EAAAA,mBACPC,EAAmBC,EAAAA,sBAAsBX,EAAWL,EAAUa,EAAMN,GAM1E,GALAE,EAAkBQ,IAAIF,IAKjBxB,EAAgB2B,IAAIb,GAAY,CACjC,IAAMc,EAAW,WACb,IACuCC,EADjCC,EAAOC,YAAYC,MAAMC,EAAAC,EAAAC,0BACTjB,GAAiB,IAAvC,IACIe,EAAAG,MAAAP,EAAAI,EAAAI,KAAAC,MAAA,CADcT,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
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../utils/dist/progress.es.js"),t=require("../../../../utils/dist/velocity.es.js"),r={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function o(o,s,n,l){var c=n[s],i=r[s],g=i.length,f=i.position,u=c.current,h=n.time;c.current=o["scroll"+f],c.scrollLength=o["scroll"+g]-o["client"+g],c.offset.length=0,c.offset[0]=0,c.offset[1]=c.scrollLength,c.progress=e.progress(0,c.scrollLength,c.current);var p=l-h;c.velocity=p>50?0:t.velocityPerSecond(c.current-u,p)}exports.createScrollInfo=function(){return{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}},exports.updateScrollInfo=function(e,t,r){o(e,"x",t,r),o(e,"y",t,r),t.time=r};
2
- //# sourceMappingURL=info.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/gestures/scroll/info.es.js"],"sourcesContent":["import { progress, velocityPerSecond } from '@motionone/utils';\n\n/**\n * A time in milliseconds, beyond which we consider the scroll velocity to be 0.\n */\nconst maxElapsed = 50;\nconst createAxisInfo = () => ({\n current: 0,\n offset: [],\n progress: 0,\n scrollLength: 0,\n targetOffset: 0,\n targetLength: 0,\n containerLength: 0,\n velocity: 0,\n});\nconst createScrollInfo = () => ({\n time: 0,\n x: createAxisInfo(),\n y: createAxisInfo(),\n});\nconst keys = {\n x: {\n length: \"Width\",\n position: \"Left\",\n },\n y: {\n length: \"Height\",\n position: \"Top\",\n },\n};\nfunction updateAxisInfo(element, axisName, info, time) {\n const axis = info[axisName];\n const { length, position } = keys[axisName];\n const prev = axis.current;\n const prevTime = info.time;\n axis.current = element[\"scroll\" + position];\n axis.scrollLength = element[\"scroll\" + length] - element[\"client\" + length];\n axis.offset.length = 0;\n axis.offset[0] = 0;\n axis.offset[1] = axis.scrollLength;\n axis.progress = progress(0, axis.scrollLength, axis.current);\n const elapsed = time - prevTime;\n axis.velocity =\n elapsed > maxElapsed ? 0 : velocityPerSecond(axis.current - prev, elapsed);\n}\nfunction updateScrollInfo(element, info, time) {\n updateAxisInfo(element, \"x\", info, time);\n updateAxisInfo(element, \"y\", info, time);\n info.time = time;\n}\n\nexport { createScrollInfo, updateScrollInfo };\n"],"names":["keys","x","length","position","y","updateAxisInfo","element","axisName","info","time","axis","prev","current","prevTime","scrollLength","offset","progress","elapsed","velocity","velocityPerSecond","targetOffset","targetLength","containerLength"],"mappings":"8KAqBMA,EAAO,CACTC,EAAG,CACCC,OAAQ,QACRC,SAAU,QAEdC,EAAG,CACCF,OAAQ,SACRC,SAAU,QAGlB,SAASE,EAAeC,EAASC,EAAUC,EAAMC,GAC7C,IAAMC,EAAOF,EAAKD,GACWP,EAAAA,EAAKO,GAA1BL,IAAAA,OAAQC,IAAAA,SACVQ,EAAOD,EAAKE,QACZC,EAAWL,EAAKC,KACtBC,EAAKE,QAAUN,EAAQ,SAAWH,GAClCO,EAAKI,aAAeR,EAAQ,SAAWJ,GAAUI,EAAQ,SAAWJ,GACpEQ,EAAKK,OAAOb,OAAS,EACrBQ,EAAKK,OAAO,GAAK,EACjBL,EAAKK,OAAO,GAAKL,EAAKI,aACtBJ,EAAKM,SAAWA,EAAAA,SAAS,EAAGN,EAAKI,aAAcJ,EAAKE,SACpD,IAAMK,EAAUR,EAAOI,EACvBH,EAAKQ,SACDD,EAvCW,GAuCY,EAAIE,oBAAkBT,EAAKE,QAAUD,EAAMM,EAC1E,0BA7ByB,WAAH,MAAU,CAC5BR,KAAM,EACNR,EAZ0B,CAC1BW,QAAS,EACTG,OAAQ,GACRC,SAAU,EACVF,aAAc,EACdM,aAAc,EACdC,aAAc,EACdC,gBAAiB,EACjBJ,SAAU,GAKVd,EAb0B,CAC1BQ,QAAS,EACTG,OAAQ,GACRC,SAAU,EACVF,aAAc,EACdM,aAAc,EACdC,aAAc,EACdC,gBAAiB,EACjBJ,SAAU,GAMb,2BA0BD,SAA0BZ,EAASE,EAAMC,GACrCJ,EAAeC,EAAS,IAAKE,EAAMC,GACnCJ,EAAeC,EAAS,IAAKE,EAAMC,GACnCD,EAAKC,KAAOA,CAChB"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../utils/dist/is-number.es.js"),t=require("../../../../../utils/dist/is-string.es.js"),s={start:0,center:.5,end:1};exports.namedEdges=s,exports.resolveEdge=function(i,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,d=0;if(void 0!==s[i]&&(i=s[i]),t.isString(i)){var u=parseFloat(i);i.endsWith("px")?d=u:i.endsWith("%")?i=u/100:i.endsWith("vw")?d=u/100*document.documentElement.clientWidth:i.endsWith("vh")?d=u/100*document.documentElement.clientHeight:i=u}return e.isNumber(i)&&(d=n*i),r+d};
2
- //# sourceMappingURL=edge.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edge.es.js","sources":["../../../../../../../../node_modules/@motionone/dom/dist/gestures/scroll/offsets/edge.es.js"],"sourcesContent":["import { isString, isNumber } from '@motionone/utils';\n\nconst namedEdges = {\n start: 0,\n center: 0.5,\n end: 1,\n};\nfunction resolveEdge(edge, length, inset = 0) {\n let delta = 0;\n /**\n * If we have this edge defined as a preset, replace the definition\n * with the numerical value.\n */\n if (namedEdges[edge] !== undefined) {\n edge = namedEdges[edge];\n }\n /**\n * Handle unit values\n */\n if (isString(edge)) {\n const asNumber = parseFloat(edge);\n if (edge.endsWith(\"px\")) {\n delta = asNumber;\n }\n else if (edge.endsWith(\"%\")) {\n edge = asNumber / 100;\n }\n else if (edge.endsWith(\"vw\")) {\n delta = (asNumber / 100) * document.documentElement.clientWidth;\n }\n else if (edge.endsWith(\"vh\")) {\n delta = (asNumber / 100) * document.documentElement.clientHeight;\n }\n else {\n edge = asNumber;\n }\n }\n /**\n * If the edge is defined as a number, handle as a progress value.\n */\n if (isNumber(edge)) {\n delta = length * edge;\n }\n return inset + delta;\n}\n\nexport { namedEdges, resolveEdge };\n"],"names":["namedEdges","start","center","end","edge","length","inset","delta","undefined","isString","asNumber","parseFloat","endsWith","document","documentElement","clientWidth","clientHeight","isNumber"],"mappings":"sLAEMA,EAAa,CACfC,MAAO,EACPC,OAAQ,GACRC,IAAK,4CAET,SAAqBC,EAAMC,GAAmB,IAAXC,yDAAQ,EACnCC,EAAQ,EAWZ,QANyBC,IAArBR,EAAWI,KACXA,EAAOJ,EAAWI,IAKlBK,EAAAA,SAASL,GAAO,CAChB,IAAMM,EAAWC,WAAWP,GACxBA,EAAKQ,SAAS,MACdL,EAAQG,EAEHN,EAAKQ,SAAS,KACnBR,EAAOM,EAAW,IAEbN,EAAKQ,SAAS,MACnBL,EAASG,EAAW,IAAOG,SAASC,gBAAgBC,YAE/CX,EAAKQ,SAAS,MACnBL,EAASG,EAAW,IAAOG,SAASC,gBAAgBE,aAGpDZ,EAAOM,CAEf,CAOA,OAHIO,EAAAA,SAASb,KACTG,EAAQF,EAASD,GAEdE,EAAQC,CACnB"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("../../../../../utils/dist/interpolate.es.js"),s=require("../../../../../utils/dist/offset.es.js"),r=require("./inset.es.js"),i=require("./presets.es.js"),l=require("./offset.es.js"),o={x:0,y:0};exports.resolveOffsets=function(f,n,a){var h=a.offset,u=void 0===h?i.ScrollOffset.All:h,d=a.target,p=void 0===d?f:d,c=a.axis,g=void 0===c?"y":c,v="y"===g?"height":"width",j=p!==f?r.calcInset(p,f):o,O=p===f?{width:f.scrollWidth,height:f.scrollHeight}:{width:p.clientWidth,height:p.clientHeight},q={width:f.clientWidth,height:f.clientHeight};n[g].offset.length=0;for(var y=!n[g].interpolate,w=u.length,x=0;x<w;x++){var H=l.resolveOffset(u[x],q[v],O[v],j[g]);y||H===n[g].interpolatorOffsets[x]||(y=!0),n[g].offset[x]=H}y&&(n[g].interpolate=t.interpolate(s.defaultOffset(w),n[g].offset),n[g].interpolatorOffsets=e.toConsumableArray(n[g].offset)),n[g].progress=n[g].interpolate(n[g].current)};
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../../../node_modules/@motionone/dom/dist/gestures/scroll/offsets/index.es.js"],"sourcesContent":["import { interpolate, defaultOffset } from '@motionone/utils';\nimport { calcInset } from './inset.es.js';\nimport { ScrollOffset } from './presets.es.js';\nimport { resolveOffset } from './offset.es.js';\n\nconst point = { x: 0, y: 0 };\nfunction resolveOffsets(container, info, options) {\n let { offset: offsetDefinition = ScrollOffset.All } = options;\n const { target = container, axis = \"y\" } = options;\n const lengthLabel = axis === \"y\" ? \"height\" : \"width\";\n const inset = target !== container ? calcInset(target, container) : point;\n /**\n * Measure the target and container. If they're the same thing then we\n * use the container's scrollWidth/Height as the target, from there\n * all other calculations can remain the same.\n */\n const targetSize = target === container\n ? { width: container.scrollWidth, height: container.scrollHeight }\n : { width: target.clientWidth, height: target.clientHeight };\n const containerSize = {\n width: container.clientWidth,\n height: container.clientHeight,\n };\n /**\n * Reset the length of the resolved offset array rather than creating a new one.\n * TODO: More reusable data structures for targetSize/containerSize would also be good.\n */\n info[axis].offset.length = 0;\n /**\n * Populate the offset array by resolving the user's offset definition into\n * a list of pixel scroll offets.\n */\n let hasChanged = !info[axis].interpolate;\n const numOffsets = offsetDefinition.length;\n for (let i = 0; i < numOffsets; i++) {\n const offset = resolveOffset(offsetDefinition[i], containerSize[lengthLabel], targetSize[lengthLabel], inset[axis]);\n if (!hasChanged && offset !== info[axis].interpolatorOffsets[i]) {\n hasChanged = true;\n }\n info[axis].offset[i] = offset;\n }\n /**\n * If the pixel scroll offsets have changed, create a new interpolator function\n * to map scroll value into a progress.\n */\n if (hasChanged) {\n info[axis].interpolate = interpolate(defaultOffset(numOffsets), info[axis].offset);\n info[axis].interpolatorOffsets = [...info[axis].offset];\n }\n info[axis].progress = info[axis].interpolate(info[axis].current);\n}\n\nexport { resolveOffsets };\n"],"names":["point","x","y","container","info","options","offset","offsetDefinition","_options$offset","ScrollOffset","All","target","_options$target","_options$axis","axis","lengthLabel","inset","calcInset","targetSize","width","scrollWidth","height","scrollHeight","clientWidth","clientHeight","containerSize","length","hasChanged","interpolate","numOffsets","i","resolveOffset","interpolatorOffsets","defaultOffset","_toConsumableArray","progress","current"],"mappings":"iVAKMA,EAAQ,CAAEC,EAAG,EAAGC,EAAG,0BACzB,SAAwBC,EAAWC,EAAMC,GACrC,IAAsDA,EAAAA,EAAhDC,OAAQC,OAAgB,IAAAC,EAAGC,EAAAA,aAAaC,IAAGF,EACNH,EAAAA,EAAnCM,OAAAA,aAASR,EAASS,EAAAC,EAAiBR,EAAfS,KAAAA,aAAO,IAAGD,EAChCE,EAAuB,MAATD,EAAe,SAAW,QACxCE,EAAQL,IAAWR,EAAYc,EAASA,UAACN,EAAQR,GAAaH,EAM9DkB,EAAaP,IAAWR,EACxB,CAAEgB,MAAOhB,EAAUiB,YAAaC,OAAQlB,EAAUmB,cAClD,CAAEH,MAAOR,EAAOY,YAAaF,OAAQV,EAAOa,cAC5CC,EAAgB,CAClBN,MAAOhB,EAAUoB,YACjBF,OAAQlB,EAAUqB,cAMtBpB,EAAKU,GAAMR,OAAOoB,OAAS,EAO3B,IAFA,IAAIC,GAAcvB,EAAKU,GAAMc,YACvBC,EAAatB,EAAiBmB,OAC3BI,EAAI,EAAGA,EAAID,EAAYC,IAAK,CACjC,IAAMxB,EAASyB,EAAaA,cAACxB,EAAiBuB,GAAIL,EAAcV,GAAcG,EAAWH,GAAcC,EAAMF,IACxGa,GAAcrB,IAAWF,EAAKU,GAAMkB,oBAAoBF,KACzDH,GAAa,GAEjBvB,EAAKU,GAAMR,OAAOwB,GAAKxB,CAC3B,CAKIqB,IACAvB,EAAKU,GAAMc,YAAcA,cAAYK,EAAAA,cAAcJ,GAAazB,EAAKU,GAAMR,QAC3EF,EAAKU,GAAMkB,oBAAmBE,EAAAA,kBAAO9B,EAAKU,GAAMR,SAEpDF,EAAKU,GAAMqB,SAAW/B,EAAKU,GAAMc,YAAYxB,EAAKU,GAAMsB,QAC5D"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.calcInset=function(e,t){for(var o={x:0,y:0},f=e;f&&f!==t;)if(f instanceof HTMLElement)o.x+=f.offsetLeft,o.y+=f.offsetTop,f=f.offsetParent;else if(f instanceof SVGGraphicsElement&&"getBBox"in f){var n=f.getBBox(),r=n.top,s=n.left;for(o.x+=s,o.y+=r;f&&"svg"!==f.tagName;)f=f.parentNode}return o};
2
- //# sourceMappingURL=inset.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inset.es.js","sources":["../../../../../../../../node_modules/@motionone/dom/dist/gestures/scroll/offsets/inset.es.js"],"sourcesContent":["function calcInset(element, container) {\n let inset = { x: 0, y: 0 };\n let current = element;\n while (current && current !== container) {\n if (current instanceof HTMLElement) {\n inset.x += current.offsetLeft;\n inset.y += current.offsetTop;\n current = current.offsetParent;\n }\n else if (current instanceof SVGGraphicsElement && \"getBBox\" in current) {\n const { top, left } = current.getBBox();\n inset.x += left;\n inset.y += top;\n /**\n * Assign the next parent element as the <svg /> tag.\n */\n while (current && current.tagName !== \"svg\") {\n current = current.parentNode;\n }\n }\n }\n return inset;\n}\n\nexport { calcInset };\n"],"names":["element","container","inset","x","y","current","HTMLElement","offsetLeft","offsetTop","offsetParent","SVGGraphicsElement","getBBox","top","left","tagName","parentNode"],"mappings":"sFAAA,SAAmBA,EAASC,GAGxB,IAFA,IAAIC,EAAQ,CAAEC,EAAG,EAAGC,EAAG,GACnBC,EAAUL,EACPK,GAAWA,IAAYJ,GAC1B,GAAII,aAAmBC,YACnBJ,EAAMC,GAAKE,EAAQE,WACnBL,EAAME,GAAKC,EAAQG,UACnBH,EAAUA,EAAQI,kBAEjB,GAAIJ,aAAmBK,oBAAsB,YAAaL,EAAS,CACpE,IAAsBA,EAAAA,EAAQM,UAAtBC,IAAAA,IAAKC,IAAAA,KAMb,IALAX,EAAMC,GAAKU,EACXX,EAAME,GAAKQ,EAIJP,GAA+B,QAApBA,EAAQS,SACtBT,EAAUA,EAAQU,UAE1B,CAEJ,OAAOb,CACX"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../utils/dist/is-number.es.js"),s=require("../../../../../utils/dist/is-string.es.js"),r=require("./edge.es.js"),i=[0,0];exports.resolveOffset=function(t,u,d,l){var n=Array.isArray(t)?t:i;return e.isNumber(t)?n=[t,t]:s.isString(t)&&(n=(t=t.trim()).includes(" ")?t.split(" "):[t,r.namedEdges[t]?t:"0"]),r.resolveEdge(n[0],d,l)-r.resolveEdge(n[1],u)};
2
- //# sourceMappingURL=offset.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"offset.es.js","sources":["../../../../../../../../node_modules/@motionone/dom/dist/gestures/scroll/offsets/offset.es.js"],"sourcesContent":["import { isNumber, isString } from '@motionone/utils';\nimport { resolveEdge, namedEdges } from './edge.es.js';\n\nconst defaultOffset = [0, 0];\nfunction resolveOffset(offset, containerLength, targetLength, targetInset) {\n let offsetDefinition = Array.isArray(offset) ? offset : defaultOffset;\n let targetPoint = 0;\n let containerPoint = 0;\n if (isNumber(offset)) {\n /**\n * If we're provided offset: [0, 0.5, 1] then each number x should become\n * [x, x], so we default to the behaviour of mapping 0 => 0 of both target\n * and container etc.\n */\n offsetDefinition = [offset, offset];\n }\n else if (isString(offset)) {\n offset = offset.trim();\n if (offset.includes(\" \")) {\n offsetDefinition = offset.split(\" \");\n }\n else {\n /**\n * If we're provided a definition like \"100px\" then we want to apply\n * that only to the top of the target point, leaving the container at 0.\n * Whereas a named offset like \"end\" should be applied to both.\n */\n offsetDefinition = [offset, namedEdges[offset] ? offset : `0`];\n }\n }\n targetPoint = resolveEdge(offsetDefinition[0], targetLength, targetInset);\n containerPoint = resolveEdge(offsetDefinition[1], containerLength);\n return targetPoint - containerPoint;\n}\n\nexport { resolveOffset };\n"],"names":["defaultOffset","offset","containerLength","targetLength","targetInset","offsetDefinition","Array","isArray","isNumber","isString","trim","includes","split","namedEdges","resolveEdge"],"mappings":"gNAGMA,EAAgB,CAAC,EAAG,yBAC1B,SAAuBC,EAAQC,EAAiBC,EAAcC,GAC1D,IAAIC,EAAmBC,MAAMC,QAAQN,GAAUA,EAASD,EA2BxD,OAxBIQ,EAAAA,SAASP,GAMTI,EAAmB,CAACJ,EAAQA,GAEvBQ,EAAAA,SAASR,KAGVI,GAFJJ,EAASA,EAAOS,QACLC,SAAS,KACGV,EAAOW,MAAM,KAQb,CAACX,EAAQY,EAAUA,WAACZ,GAAUA,EAAM,MAGjDa,EAAWA,YAACT,EAAiB,GAAIF,EAAcC,GAC5CU,EAAAA,YAAYT,EAAiB,GAAIH,EAEtD"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ScrollOffset={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};
2
- //# sourceMappingURL=presets.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"presets.es.js","sources":["../../../../../../../../node_modules/@motionone/dom/dist/gestures/scroll/offsets/presets.es.js"],"sourcesContent":["const ScrollOffset = {\n Enter: [\n [0, 1],\n [1, 1],\n ],\n Exit: [\n [0, 0],\n [1, 0],\n ],\n Any: [\n [1, 0],\n [0, 1],\n ],\n All: [\n [0, 0],\n [1, 1],\n ],\n};\n\nexport { ScrollOffset };\n"],"names":["Enter","Exit","Any","All"],"mappings":"yFAAqB,CACjBA,MAAO,CACH,CAAC,EAAG,GACJ,CAAC,EAAG,IAERC,KAAM,CACF,CAAC,EAAG,GACJ,CAAC,EAAG,IAERC,IAAK,CACD,CAAC,EAAG,GACJ,CAAC,EAAG,IAERC,IAAK,CACD,CAAC,EAAG,GACJ,CAAC,EAAG"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../utils/dist/noop.es.js"),t=require("../../../../utils/dist/is-function.es.js"),n=require("./info.es.js"),i=require("./offsets/index.es.js");function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e)for(var i=t;i&&i!=e;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent;n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function o(t,n){return t.pause(),t.forEachNative((function(t,n){var i,r,o=n.easing;if(t.updateDuration)o||(t.easing=e.noopReturn),t.updateDuration(1);else{var s={duration:1e3};o||(s.easing="linear"),null===(r=null===(i=t.effect)||void 0===i?void 0:i.updateTiming)||void 0===r||r.call(i,s)}})),function(){t.currentTime=n.progress}}exports.createOnScrollHandler=function(e,s,f){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=a.axis||"y";return{measure:function(){return r(e,a.target,f)},update:function(t){n.updateScrollInfo(e,f,t),(a.offset||a.target)&&i.resolveOffsets(e,f,a)},notify:t.isFunction(s)?function(){return s(f)}:o(s,f[u])}};
2
- //# sourceMappingURL=on-scroll-handler.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"on-scroll-handler.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/gestures/scroll/on-scroll-handler.es.js"],"sourcesContent":["import { isFunction, noopReturn } from '@motionone/utils';\nimport { updateScrollInfo } from './info.es.js';\nimport { resolveOffsets } from './offsets/index.es.js';\n\nfunction measure(container, target = container, info) {\n /**\n * Find inset of target within scrollable container\n */\n info.x.targetOffset = 0;\n info.y.targetOffset = 0;\n if (target !== container) {\n let node = target;\n while (node && node != container) {\n info.x.targetOffset += node.offsetLeft;\n info.y.targetOffset += node.offsetTop;\n node = node.offsetParent;\n }\n }\n info.x.targetLength =\n target === container ? target.scrollWidth : target.clientWidth;\n info.y.targetLength =\n target === container ? target.scrollHeight : target.clientHeight;\n info.x.containerLength = container.clientWidth;\n info.y.containerLength = container.clientHeight;\n}\nfunction createOnScrollHandler(element, onScroll, info, options = {}) {\n const axis = options.axis || \"y\";\n return {\n measure: () => measure(element, options.target, info),\n update: (time) => {\n updateScrollInfo(element, info, time);\n if (options.offset || options.target) {\n resolveOffsets(element, info, options);\n }\n },\n notify: isFunction(onScroll)\n ? () => onScroll(info)\n : scrubAnimation(onScroll, info[axis]),\n };\n}\nfunction scrubAnimation(controls, axisInfo) {\n controls.pause();\n controls.forEachNative((animation, { easing }) => {\n var _a, _b;\n if (animation.updateDuration) {\n if (!easing)\n animation.easing = noopReturn;\n animation.updateDuration(1);\n }\n else {\n const timingOptions = { duration: 1000 };\n if (!easing)\n timingOptions.easing = \"linear\";\n (_b = (_a = animation.effect) === null || _a === void 0 ? void 0 : _a.updateTiming) === null || _b === void 0 ? void 0 : _b.call(_a, timingOptions);\n }\n });\n return () => {\n controls.currentTime = axisInfo.progress;\n };\n}\n\nexport { createOnScrollHandler };\n"],"names":["measure","container","target","info","arguments","length","undefined","x","targetOffset","y","node","offsetLeft","offsetTop","offsetParent","targetLength","scrollWidth","clientWidth","scrollHeight","clientHeight","containerLength","scrubAnimation","controls","axisInfo","pause","forEachNative","animation","_ref","_a","_b","easing","updateDuration","noopReturn","timingOptions","duration","effect","updateTiming","call","currentTime","progress","element","onScroll","options","axis","update","time","updateScrollInfo","offset","resolveOffsets","notify","isFunction"],"mappings":"0OAIA,SAASA,EAAQC,GAAqC,IAA1BC,yDAASD,EAAWE,EAAIC,UAAAC,OAAA,EAAAD,UAAA,QAAAE,EAMhD,GAFAH,EAAKI,EAAEC,aAAe,EACtBL,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OAAMA,EAASrC,EAAK,EACpBiB,EAAeoB,EAAUrC,EAAKuC,IAE5C"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./animate/index.es.js"),t=require("./animate/animate-style.es.js"),s=require("./timeline/index.es.js"),r=require("./utils/stagger.es.js"),i=require("./easing/spring/index.es.js"),a=require("./easing/glide/index.es.js"),n=require("./animate/style.es.js"),l=require("./gestures/in-view.es.js"),o=require("./gestures/resize/index.es.js"),u=require("./gestures/scroll/index.es.js"),g=require("./gestures/scroll/offsets/presets.es.js"),x=require("./animate/utils/controls.es.js"),p=require("./animate/data.es.js"),m=require("./animate/utils/get-style-name.es.js"),j=require("./state/index.es.js"),q=require("./animate/utils/style-object.es.js"),c=require("./animate/utils/style-string.es.js");exports.animate=e.animate,exports.animateStyle=t.animateStyle,exports.timeline=s.timeline,exports.stagger=r.stagger,exports.spring=i.spring,exports.glide=a.glide,exports.style=n.style,exports.inView=l.inView,exports.resize=o.resize,exports.scroll=u.scroll,exports.ScrollOffset=g.ScrollOffset,exports.withControls=x.withControls,exports.getAnimationData=p.getAnimationData,exports.getStyleName=m.getStyleName,exports.createMotionState=j.createMotionState,exports.mountedStates=j.mountedStates,exports.createStyles=q.createStyles,exports.createStyleString=c.createStyleString;
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/events.es.js"),t=function(t,n,r){return function(i){i.pointerType&&"mouse"!==i.pointerType||(r(),e.dispatchPointerEvent(t,n,i))}},n={isActive:function(e){return Boolean(e.hover)},subscribe:function(e,n){var r=n.enable,i=n.disable,o=t(e,"hoverstart",r),s=t(e,"hoverend",i);return e.addEventListener("pointerenter",o),e.addEventListener("pointerleave",s),function(){e.removeEventListener("pointerenter",o),e.removeEventListener("pointerleave",s)}}};exports.hover=n;
2
- //# sourceMappingURL=hover.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hover.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/state/gestures/hover.es.js"],"sourcesContent":["import { dispatchPointerEvent } from '../utils/events.es.js';\n\nconst mouseEvent = (element, name, action) => (event) => {\n if (event.pointerType && event.pointerType !== \"mouse\")\n return;\n action();\n dispatchPointerEvent(element, name, event);\n};\nconst hover = {\n isActive: (options) => Boolean(options.hover),\n subscribe: (element, { enable, disable }) => {\n const onEnter = mouseEvent(element, \"hoverstart\", enable);\n const onLeave = mouseEvent(element, \"hoverend\", disable);\n element.addEventListener(\"pointerenter\", onEnter);\n element.addEventListener(\"pointerleave\", onLeave);\n return () => {\n element.removeEventListener(\"pointerenter\", onEnter);\n element.removeEventListener(\"pointerleave\", onLeave);\n };\n },\n};\n\nexport { hover };\n"],"names":["mouseEvent","element","name","action","event","pointerType","dispatchPointerEvent","hover","isActive","options","Boolean","subscribe","_ref","enable","disable","onEnter","onLeave","addEventListener","removeEventListener"],"mappings":"2GAEMA,EAAa,SAACC,EAASC,EAAMC,GAAM,OAAK,SAACC,GACvCA,EAAMC,aAAqC,UAAtBD,EAAMC,cAE/BF,IACAG,EAAAA,qBAAqBL,EAASC,EAAME,IACvC,EACKG,EAAQ,CACVC,SAAU,SAACC,GAAO,OAAKC,QAAQD,EAAQF,MAAM,EAC7CI,UAAW,SAACV,EAAiCW,GAAA,IAAtBC,IAAAA,OAAQC,IAAAA,QACrBC,EAAUf,EAAWC,EAAS,aAAcY,GAC5CG,EAAUhB,EAAWC,EAAS,WAAYa,GAGhD,OAFAb,EAAQgB,iBAAiB,eAAgBF,GACzCd,EAAQgB,iBAAiB,eAAgBD,GAClC,WACHf,EAAQiB,oBAAoB,eAAgBH,GAC5Cd,EAAQiB,oBAAoB,eAAgBF,GAEpD"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../tslib/tslib.es6.js"),i=require("../utils/events.es.js"),n=require("../../gestures/in-view.es.js"),t={isActive:function(e){return Boolean(e.inView)},subscribe:function(t,s,r){var u=s.enable,o=s.disable,c=r.inViewOptions,v=void 0===c?{}:c,a=v.once,l=e.__rest(v,["once"]);return n.inView(t,(function(e){if(u(),i.dispatchViewEvent(t,"viewenter",e),!a)return function(e){o(),i.dispatchViewEvent(t,"viewleave",e)}}),l)}};exports.inView=t;
2
- //# sourceMappingURL=in-view.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"in-view.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/state/gestures/in-view.es.js"],"sourcesContent":["import { __rest } from 'tslib';\nimport { dispatchViewEvent } from '../utils/events.es.js';\nimport { inView as inView$1 } from '../../gestures/in-view.es.js';\n\nconst inView = {\n isActive: (options) => Boolean(options.inView),\n subscribe: (element, { enable, disable }, { inViewOptions = {} }) => {\n const { once } = inViewOptions, viewOptions = __rest(inViewOptions, [\"once\"]);\n return inView$1(element, (enterEntry) => {\n enable();\n dispatchViewEvent(element, \"viewenter\", enterEntry);\n if (!once) {\n return (leaveEntry) => {\n disable();\n dispatchViewEvent(element, \"viewleave\", leaveEntry);\n };\n }\n }, viewOptions);\n },\n};\n\nexport { inView };\n"],"names":["inView","isActive","options","Boolean","subscribe","element","_ref","_ref2","enable","disable","_ref2$inViewOptions","inViewOptions","once","viewOptions","__rest","inView$1","enterEntry","dispatchViewEvent","leaveEntry"],"mappings":"oMAIMA,EAAS,CACXC,SAAU,SAACC,GAAO,OAAKC,QAAQD,EAAQF,OAAO,EAC9CI,UAAW,SAACC,EAAyDC,EAAAC,GAAA,IAA9CC,IAAAA,OAAQC,IAAAA,QAAOC,EAAAH,EAAMI,cAAAA,OAAa,IAAAD,EAAG,CAAA,EAAEA,EAClDE,EAASD,EAATC,KAAwBC,EAAcC,EAAAA,OAAOH,EAAe,CAAC,SACrE,OAAOI,EAAQf,OAACK,GAAS,SAACW,GAGtB,GAFAR,IACAS,EAAAA,kBAAkBZ,EAAS,YAAaW,IACnCJ,EACD,OAAO,SAACM,GACJT,IACAQ,EAAAA,kBAAkBZ,EAAS,YAAaa,GAGnD,GAAEL,EACP"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/events.es.js"),n={isActive:function(e){return Boolean(e.press)},subscribe:function(n,t){var r=t.enable,i=t.disable,s=function t(r){i(),e.dispatchPointerEvent(n,"pressend",r),window.removeEventListener("pointerup",t)},o=function(t){r(),e.dispatchPointerEvent(n,"pressstart",t),window.addEventListener("pointerup",s)};return n.addEventListener("pointerdown",o),function(){n.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",s)}}};exports.press=n;
2
- //# sourceMappingURL=press.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"press.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/state/gestures/press.es.js"],"sourcesContent":["import { dispatchPointerEvent } from '../utils/events.es.js';\n\nconst press = {\n isActive: (options) => Boolean(options.press),\n subscribe: (element, { enable, disable }) => {\n const onPointerUp = (event) => {\n disable();\n dispatchPointerEvent(element, \"pressend\", event);\n window.removeEventListener(\"pointerup\", onPointerUp);\n };\n const onPointerDown = (event) => {\n enable();\n dispatchPointerEvent(element, \"pressstart\", event);\n window.addEventListener(\"pointerup\", onPointerUp);\n };\n element.addEventListener(\"pointerdown\", onPointerDown);\n return () => {\n element.removeEventListener(\"pointerdown\", onPointerDown);\n window.removeEventListener(\"pointerup\", onPointerUp);\n };\n },\n};\n\nexport { press };\n"],"names":["press","isActive","options","Boolean","subscribe","element","_ref","enable","disable","onPointerUp","event","dispatchPointerEvent","window","removeEventListener","onPointerDown","addEventListener"],"mappings":"2GAEMA,EAAQ,CACVC,SAAU,SAACC,GAAO,OAAKC,QAAQD,EAAQF,MAAM,EAC7CI,UAAW,SAACC,EAAiCC,GAAA,IAAtBC,IAAAA,OAAQC,IAAAA,QACrBC,EAAc,SAAdA,EAAeC,GACjBF,IACAG,EAAAA,qBAAqBN,EAAS,WAAYK,GAC1CE,OAAOC,oBAAoB,YAAaJ,IAEtCK,EAAgB,SAACJ,GACnBH,IACAI,EAAAA,qBAAqBN,EAAS,aAAcK,GAC5CE,OAAOG,iBAAiB,YAAaN,IAGzC,OADAJ,EAAQU,iBAAiB,cAAeD,GACjC,WACHT,EAAQQ,oBAAoB,cAAeC,GAC3CF,OAAOC,oBAAoB,YAAaJ,GAEhD"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("../../../../tslib/tslib.es6.js"),n=require("../../../../hey-listen/dist/hey-listen.es.js"),r=require("../../../utils/dist/noop.es.js"),i=require("../animate/animate-style.es.js"),a=require("../animate/style.es.js"),s=require("../animate/utils/options.es.js"),o=require("./utils/has-changed.es.js"),u=require("./utils/resolve-variant.es.js"),c=require("./utils/schedule.es.js"),l=require("./gestures/in-view.es.js"),v=require("./gestures/hover.es.js"),f=require("./gestures/press.es.js"),p=require("./utils/events.es.js"),d={inView:l.inView,hover:v.hover,press:f.press},m=["initial","animate"].concat(e.toConsumableArray(Object.keys(d)),["exit"]),h=new WeakMap;exports.createMotionState=function(){var l,v,f=e.regeneratorRuntime().mark(_),b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0,j=g?g.getDepth()+1:0,x={initial:!0,animate:!0},y={},k={},q=e.createForOfIteratorHelper(m);try{for(q.s();!(v=q.n()).done;){var A=v.value;k[A]="string"==typeof b[A]?b[A]:null==g?void 0:g.getContext()[A]}}catch(e){q.e(e)}finally{q.f()}var O=!1===b.initial?"animate":"initial",w=u.resolveVariant(b[O]||k[O],b.variants)||{},C=t.__rest(w,["transition"]),E=Object.assign({},C);function _(){var t,n,c,v,d,h,g,j,y,k,q,A,O;return e.regeneratorRuntime().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:c=C,C={},v={},d=e.createForOfIteratorHelper(m),f.prev=4,d.s();case 6:if((h=d.n()).done){f.next=24;break}if(g=h.value,x[g]){f.next=10;break}return f.abrupt("continue",22);case 10:if(j=u.resolveVariant(b[g])){f.next=13;break}return f.abrupt("continue",22);case 13:f.t0=e.regeneratorRuntime().keys(j);case 14:if((f.t1=f.t0()).done){f.next=22;break}if("transition"!==(y=f.t1.value)){f.next=18;break}return f.abrupt("continue",14);case 18:C[y]=j[y],v[y]=s.getOptions(null!==(n=null!==(t=j.transition)&&void 0!==t?t:b.transition)&&void 0!==n?n:{},y),f.next=14;break;case 22:f.next=6;break;case 24:f.next=29;break;case 26:f.prev=26,f.t2=f.catch(4),d.e(f.t2);case 29:return f.prev=29,d.f(),f.finish(29);case 32:return k=new Set([].concat(e.toConsumableArray(Object.keys(C)),e.toConsumableArray(Object.keys(c)))),q=[],k.forEach((function(e){var t;void 0===C[e]&&(C[e]=E[e]),o.hasChanged(c[e],C[e])&&(null!==(t=E[e])&&void 0!==t||(E[e]=a.style.get(l,e)),q.push(i.animateStyle(l,e,C[e],v[e])))})),void(f.next=37);case 37:if((A=q.map((function(e){return e()})).filter(Boolean)).length){f.next=40;break}return f.abrupt("return");case 40:O=C,l.dispatchEvent(p.motionEvent("motionstart",O)),Promise.all(A.map((function(e){return e.finished}))).then((function(){l.dispatchEvent(p.motionEvent("motioncomplete",O))})).catch(r.noop);case 43:case"end":return f.stop()}}),f,null,[[4,26,29,32]])}var B=function(e,t){return function(){x[e]=t,c.scheduleAnimation(S)}},M=function(){for(var e in d){var t=d[e].isActive(b),n=y[e];t&&!n?y[e]=d[e].subscribe(l,{enable:B(e,!0),disable:B(e,!1)},b):!t&&n&&(n(),delete y[e])}},S={update:function(e){l&&(b=e,M(),c.scheduleAnimation(S))},setActive:function(e,t){l&&(x[e]=t,c.scheduleAnimation(S))},animateUpdates:_,getDepth:function(){return j},getTarget:function(){return C},getOptions:function(){return b},getContext:function(){return k},mount:function(e){return n.invariant(Boolean(e),"Animation state must be mounted with valid Element"),l=e,h.set(l,S),M(),function(){for(var e in h.delete(l),c.unscheduleAnimation(S),y)y[e]()}},isMounted:function(){return Boolean(l)}};return S},exports.mountedStates=h;
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../node_modules/@motionone/dom/dist/state/index.es.js"],"sourcesContent":["import { __rest } from 'tslib';\nimport { invariant } from 'hey-listen';\nimport { noop } from '@motionone/utils';\nimport { animateStyle } from '../animate/animate-style.es.js';\nimport { style } from '../animate/style.es.js';\nimport { getOptions } from '../animate/utils/options.es.js';\nimport { hasChanged } from './utils/has-changed.es.js';\nimport { resolveVariant } from './utils/resolve-variant.es.js';\nimport { scheduleAnimation, unscheduleAnimation } from './utils/schedule.es.js';\nimport { inView } from './gestures/in-view.es.js';\nimport { hover } from './gestures/hover.es.js';\nimport { press } from './gestures/press.es.js';\nimport { motionEvent } from './utils/events.es.js';\n\nconst gestures = { inView, hover, press };\n/**\n * A list of state types, in priority order. If a value is defined in\n * a righter-most type, it will override any definition in a lefter-most.\n */\nconst stateTypes = [\"initial\", \"animate\", ...Object.keys(gestures), \"exit\"];\n/**\n * A global store of all generated motion states. This can be used to lookup\n * a motion state for a given Element.\n */\nconst mountedStates = new WeakMap();\nfunction createMotionState(options = {}, parent) {\n /**\n * The element represented by the motion state. This is an empty reference\n * when we create the state to support SSR and allow for later mounting\n * in view libraries.\n *\n * @ts-ignore\n */\n let element;\n /**\n * Calculate a depth that we can use to order motion states by tree depth.\n */\n let depth = parent ? parent.getDepth() + 1 : 0;\n /**\n * Track which states are currently active.\n */\n const activeStates = { initial: true, animate: true };\n /**\n * A map of functions that, when called, will remove event listeners for\n * a given gesture.\n */\n const gestureSubscriptions = {};\n /**\n * Initialise a context to share through motion states. This\n * will be populated by variant names (if any).\n */\n const context = {};\n for (const name of stateTypes) {\n context[name] =\n typeof options[name] === \"string\"\n ? options[name]\n : parent === null || parent === void 0 ? void 0 : parent.getContext()[name];\n }\n /**\n * If initial is set to false we use the animate prop as the initial\n * animation state.\n */\n const initialVariantSource = options.initial === false ? \"animate\" : \"initial\";\n /**\n * Destructure an initial target out from the resolved initial variant.\n */\n let _a = resolveVariant(options[initialVariantSource] || context[initialVariantSource], options.variants) || {}, target = __rest(_a, [\"transition\"]);\n /**\n * The base target is a cached map of values that we'll use to animate\n * back to if a value is removed from all active state types. This\n * is usually the initial value as read from the DOM, for instance if\n * it hasn't been defined in initial.\n */\n const baseTarget = Object.assign({}, target);\n /**\n * A generator that will be processed by the global animation scheduler.\n * This yeilds when it switches from reading the DOM to writing to it\n * to prevent layout thrashing.\n */\n function* animateUpdates() {\n var _a, _b;\n const prevTarget = target;\n target = {};\n const animationOptions = {};\n for (const name of stateTypes) {\n if (!activeStates[name])\n continue;\n const variant = resolveVariant(options[name]);\n if (!variant)\n continue;\n for (const key in variant) {\n if (key === \"transition\")\n continue;\n target[key] = variant[key];\n animationOptions[key] = getOptions((_b = (_a = variant.transition) !== null && _a !== void 0 ? _a : options.transition) !== null && _b !== void 0 ? _b : {}, key);\n }\n }\n const allTargetKeys = new Set([\n ...Object.keys(target),\n ...Object.keys(prevTarget),\n ]);\n const animationFactories = [];\n allTargetKeys.forEach((key) => {\n var _a;\n if (target[key] === undefined) {\n target[key] = baseTarget[key];\n }\n if (hasChanged(prevTarget[key], target[key])) {\n (_a = baseTarget[key]) !== null && _a !== void 0 ? _a : (baseTarget[key] = style.get(element, key));\n animationFactories.push(animateStyle(element, key, target[key], animationOptions[key]));\n }\n });\n // Wait for all animation states to read from the DOM\n yield;\n const animations = animationFactories\n .map((factory) => factory())\n .filter(Boolean);\n if (!animations.length)\n return;\n const animationTarget = target;\n element.dispatchEvent(motionEvent(\"motionstart\", animationTarget));\n Promise.all(animations.map((animation) => animation.finished))\n .then(() => {\n element.dispatchEvent(motionEvent(\"motioncomplete\", animationTarget));\n })\n .catch(noop);\n }\n const setGesture = (name, isActive) => () => {\n activeStates[name] = isActive;\n scheduleAnimation(state);\n };\n const updateGestureSubscriptions = () => {\n for (const name in gestures) {\n const isGestureActive = gestures[name].isActive(options);\n const remove = gestureSubscriptions[name];\n if (isGestureActive && !remove) {\n gestureSubscriptions[name] = gestures[name].subscribe(element, {\n enable: setGesture(name, true),\n disable: setGesture(name, false),\n }, options);\n }\n else if (!isGestureActive && remove) {\n remove();\n delete gestureSubscriptions[name];\n }\n }\n };\n const state = {\n update: (newOptions) => {\n if (!element)\n return;\n options = newOptions;\n updateGestureSubscriptions();\n scheduleAnimation(state);\n },\n setActive: (name, isActive) => {\n if (!element)\n return;\n activeStates[name] = isActive;\n scheduleAnimation(state);\n },\n animateUpdates,\n getDepth: () => depth,\n getTarget: () => target,\n getOptions: () => options,\n getContext: () => context,\n mount: (newElement) => {\n invariant(Boolean(newElement), \"Animation state must be mounted with valid Element\");\n element = newElement;\n mountedStates.set(element, state);\n updateGestureSubscriptions();\n return () => {\n mountedStates.delete(element);\n unscheduleAnimation(state);\n for (const key in gestureSubscriptions) {\n gestureSubscriptions[key]();\n }\n };\n },\n isMounted: () => Boolean(element),\n };\n return state;\n}\n\nexport { createMotionState, mountedStates };\n"],"names":["gestures","inView","hover","press","stateTypes","Object","keys","mountedStates","WeakMap","element","_step","_marked","_regeneratorRuntime","regeneratorRuntime","mark","animateUpdates","options","arguments","length","undefined","parent","depth","getDepth","activeStates","initial","animate","gestureSubscriptions","context","_iterator","_createForOfIteratorHelper","createForOfIteratorHelper","s","n","done","name","value","getContext","err","e","f","initialVariantSource","_a","resolveVariant","variants","target","__rest","baseTarget","assign","_b","prevTarget","animationOptions","_iterator2","_step2","variant","key","allTargetKeys","animationFactories","animations","animationTarget","wrap","_context","prev","next","abrupt","t0","t1","getOptions","transition","t2","finish","Set","forEach","hasChanged","style","get","push","animateStyle","map","factory","filter","Boolean","dispatchEvent","motionEvent","Promise","all","animation","finished","then","catch","noop","stop","setGesture","isActive","scheduleAnimation","state","updateGestureSubscriptions","isGestureActive","remove","subscribe","enable","disable","update","newOptions","setActive","get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EAAqBQ,GAChC8D,IAAoBC,EACpBvE,EAAqBQ,GAAQlC,EAASkC,GAAMgE,UAAUzF,EAAS,CAC3D0F,OAAQR,EAAWzD,GAAM,GACzBkE,QAAST,EAAWzD,GAAM,IAC3BlB,IAEGgF,GAAmBC,IACzBA,WACOvE,EAAqBQ,GAEpC,GAEE4D,EAAQ,CACVO,OAAQ,SAACC,GACA7F,IAELO,EAAUsF,EACVP,IACAF,EAAiBA,kBAACC,GACrB,EACDS,UAAW,SAACrE,EAAM0D,GACTnF,IAELc,EAAaW,GAAQ0D,EACrBC,EAAiBA,kBAACC,GACrB,EACD/E,eAAAA,EACAO,SAAU,WAAA,OAAMD,CAAK,EACrBmF,UAAW,WAAA,OAAM5D,CAAM,EACvBsB,WAAY,WAAA,OAAMlD,CAAO,EACzBoB,WAAY,WAAA,OAAMT,CAAO,EACzB8E,MAAO,SAACC,GAKJ,OAJAC,EAAAA,UAAU3B,QAAQ0B,GAAa,sDAC/BjG,EAAUiG,EACVnG,EAAcqG,IAAInG,EAASqF,GAC3BC,IACO,WAGH,IAAK,IAAMzC,KAFX/C,EAAcsG,OAAOpG,GACrBqG,EAAmBA,oBAAChB,GACFpE,EACdA,EAAqB4B,KAGhC,EACDyD,UAAW,WAAA,OAAM/B,QAAQvE,EAAQ,GAErC,OAAOqF,CACX"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.dispatchPointerEvent=function(t,e,n){t.dispatchEvent(new CustomEvent(e,{detail:{originalEvent:n}}))},exports.dispatchViewEvent=function(t,e,n){t.dispatchEvent(new CustomEvent(e,{detail:{originalEntry:n}}))},exports.motionEvent=function(t,e){return new CustomEvent(t,{detail:{target:e}})};
2
- //# sourceMappingURL=events.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/state/utils/events.es.js"],"sourcesContent":["const motionEvent = (name, target) => new CustomEvent(name, { detail: { target } });\nfunction dispatchPointerEvent(element, name, event) {\n element.dispatchEvent(new CustomEvent(name, { detail: { originalEvent: event } }));\n}\nfunction dispatchViewEvent(element, name, entry) {\n element.dispatchEvent(new CustomEvent(name, { detail: { originalEntry: entry } }));\n}\n\nexport { dispatchPointerEvent, dispatchViewEvent, motionEvent };\n"],"names":["element","name","event","dispatchEvent","CustomEvent","detail","originalEvent","entry","originalEntry","target"],"mappings":"iGACA,SAA8BA,EAASC,EAAMC,GACzCF,EAAQG,cAAc,IAAIC,YAAYH,EAAM,CAAEI,OAAQ,CAAEC,cAAeJ,KAC3E,4BACA,SAA2BF,EAASC,EAAMM,GACtCP,EAAQG,cAAc,IAAIC,YAAYH,EAAM,CAAEI,OAAQ,CAAEG,cAAeD,KAC3E,sBANoB,SAACN,EAAMQ,GAAM,OAAK,IAAIL,YAAYH,EAAM,CAAEI,OAAQ,CAAEI,OAAAA,IAAW"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../../../../../../_virtual/_rollupPluginBabelHelpers.js");function e(r,e){var t=e.length;if(t!==r.length)return!1;for(var a=0;a<t;a++)if(e[a]!==r[a])return!1;return!0}exports.hasChanged=function(t,a){return r.typeof(t)!==r.typeof(a)||(Array.isArray(t)&&Array.isArray(a)?!e(t,a):t!==a)},exports.shallowCompare=e;
2
- //# sourceMappingURL=has-changed.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"has-changed.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/state/utils/has-changed.es.js"],"sourcesContent":["function hasChanged(a, b) {\n if (typeof a !== typeof b)\n return true;\n if (Array.isArray(a) && Array.isArray(b))\n return !shallowCompare(a, b);\n return a !== b;\n}\nfunction shallowCompare(next, prev) {\n const prevLength = prev.length;\n if (prevLength !== next.length)\n return false;\n for (let i = 0; i < prevLength; i++) {\n if (prev[i] !== next[i])\n return false;\n }\n return true;\n}\n\nexport { hasChanged, shallowCompare };\n"],"names":["shallowCompare","next","prev","prevLength","length","i","a","b","_typeof","Array","isArray"],"mappings":"6IAOA,SAASA,EAAeC,EAAMC,GAC1B,IAAMC,EAAaD,EAAKE,OACxB,GAAID,IAAeF,EAAKG,OACpB,OAAO,EACX,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAYE,IAC5B,GAAIH,EAAKG,KAAOJ,EAAKI,GACjB,OAAO,EAEf,OAAO,CACX,oBAhBA,SAAoBC,EAAGC,GACnB,OAAIC,EAAAA,OAAOF,KAACE,EAAA,OAAYD,KAEpBE,MAAMC,QAAQJ,IAAMG,MAAMC,QAAQH,IAC1BP,EAAeM,EAAGC,GACvBD,IAAMC,EACjB"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../../_virtual/_rollupPluginBabelHelpers.js");exports.isVariant=function(r){return"object"===e.typeof(r)};
2
- //# sourceMappingURL=is-variant.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-variant.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/state/utils/is-variant.es.js"],"sourcesContent":["function isVariant(definition) {\n return typeof definition === \"object\";\n}\n\nexport { isVariant };\n"],"names":["definition","_typeof"],"mappings":"+JAAA,SAAmBA,GACf,MAA6B,WAAtBC,EAAA,OAAOD,EAClB"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./is-variant.es.js");exports.resolveVariant=function(r,t){return e.isVariant(r)?r:r&&t?t[r]:void 0};
2
- //# sourceMappingURL=resolve-variant.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-variant.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/state/utils/resolve-variant.es.js"],"sourcesContent":["import { isVariant } from './is-variant.es.js';\n\nfunction resolveVariant(definition, variants) {\n if (isVariant(definition)) {\n return definition;\n }\n else if (definition && variants) {\n return variants[definition];\n }\n}\n\nexport { resolveVariant };\n"],"names":["definition","variants","isVariant"],"mappings":"+HAEA,SAAwBA,EAAYC,GAChC,OAAIC,EAAAA,UAAUF,GACHA,EAEFA,GAAcC,EACZA,EAASD,QADf,CAGT"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../utils/dist/array.es.js"),t=void 0;function n(){if(t){var e=t.sort(r).map(i);e.forEach(o),e.forEach(o),t=void 0}}var r=function(e,t){return e.getDepth()-t.getDepth()},i=function(e){return e.animateUpdates()},o=function(e){return e.next()};exports.scheduleAnimation=function(r){t?e.addUniqueItem(t,r):(t=[r],requestAnimationFrame(n))},exports.unscheduleAnimation=function(n){t&&e.removeItem(t,n)};
2
- //# sourceMappingURL=schedule.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedule.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/state/utils/schedule.es.js"],"sourcesContent":["import { addUniqueItem, removeItem } from '@motionone/utils';\n\nlet scheduled = undefined;\nfunction processScheduledAnimations() {\n if (!scheduled)\n return;\n const generators = scheduled.sort(compareByDepth).map(fireAnimateUpdates);\n generators.forEach(fireNext);\n generators.forEach(fireNext);\n scheduled = undefined;\n}\nfunction scheduleAnimation(state) {\n if (!scheduled) {\n scheduled = [state];\n requestAnimationFrame(processScheduledAnimations);\n }\n else {\n addUniqueItem(scheduled, state);\n }\n}\nfunction unscheduleAnimation(state) {\n scheduled && removeItem(scheduled, state);\n}\nconst compareByDepth = (a, b) => a.getDepth() - b.getDepth();\nconst fireAnimateUpdates = (state) => state.animateUpdates();\nconst fireNext = (iterator) => iterator.next();\n\nexport { scheduleAnimation, unscheduleAnimation };\n"],"names":["scheduled","undefined","processScheduledAnimations","generators","sort","compareByDepth","map","fireAnimateUpdates","forEach","fireNext","a","b","getDepth","state","animateUpdates","iterator","next","addUniqueItem","requestAnimationFrame","removeItem"],"mappings":"wHAEIA,OAAYC,EAChB,SAASC,IACL,GAAKF,EAAL,CAEA,IAAMG,EAAaH,EAAUI,KAAKC,GAAgBC,IAAIC,GACtDJ,EAAWK,QAAQC,GACnBN,EAAWK,QAAQC,GACnBT,OAAYC,CAJR,CAKR,CAaA,IAAMI,EAAiB,SAACK,EAAGC,GAAC,OAAKD,EAAEE,WAAaD,EAAEC,UAAU,EACtDL,EAAqB,SAACM,GAAK,OAAKA,EAAMC,gBAAgB,EACtDL,EAAW,SAACM,GAAQ,OAAKA,EAASC,MAAM,4BAd9C,SAA2BH,GAClBb,EAKDiB,gBAAcjB,EAAWa,IAJzBb,EAAY,CAACa,GACbK,sBAAsBhB,GAK9B,8BACA,SAA6BW,GACzBb,GAAamB,EAAUA,WAACnB,EAAWa,EACvC"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_rollupPluginBabelHelpers.js"),s=require("../../../../tslib/tslib.es6.js"),i=require("../../../../hey-listen/dist/hey-listen.es.js"),t=require("../../../utils/dist/defaults.es.js"),r=require("../../../utils/dist/offset.es.js"),a=require("../../../utils/dist/progress.es.js"),n=require("../../../utils/dist/is-easing-generator.es.js"),u=require("../../../utils/dist/is-string.es.js"),l=require("../utils/stagger.es.js"),o=require("../animate/animate-style.es.js"),f=require("../animate/utils/controls.es.js"),d=require("../animate/utils/keyframes.es.js"),v=require("../animate/utils/options.es.js"),g=require("../utils/resolve-elements.es.js"),m=require("../animate/utils/transforms.es.js"),h=require("./utils/calc-time.es.js"),p=require("./utils/edit.es.js"),c=require("./utils/sort.es.js");function j(o){for(var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},j=f.defaultOptions,O=void 0===j?{}:j,b=s.__rest(f,["defaultOptions"]),x=[],A=new Map,T={},_=new Map,k=0,M=0,w=0,B=0;B<o.length;B++){var E=o[B];if(u.isString(E))_.set(E,M);else if(Array.isArray(E)){var C=e.slicedToArray(E,3),N=C[0],P=C[1],S=C[2],F=void 0===S?{}:S;void 0!==F.at&&(M=h.calcNextTime(M,F.at,k,_));for(var G=0,H=g.resolveElements(N,T),K=H.length,L=0;L<K;L++){var z=H[L],D=q(z,A);for(var I in P){var J=y(I,D),Q=d.keyframesList(P[I]),R=v.getOptions(F,I),U=R.duration,V=void 0===U?O.duration||t.defaults.duration:U,W=R.easing,X=void 0===W?O.easing||t.defaults.easing:W;if(n.isEasingGenerator(X)){var Y=m.isTransform(I);i.invariant(2===Q.length||!Y,"spring must be provided 2 keyframes within timeline");var Z=X.createAnimation(Q,(function(){return"0"}),Y);X=Z.easing,void 0!==Z.keyframes&&(Q=Z.keyframes),void 0!==Z.duration&&(V=Z.duration)}var $=l.resolveOption(F.delay,L,K)||0,ee=M+$,se=ee+V,ie=R,te=ie.offset,re=void 0===te?r.defaultOffset(Q.length):te;1===re.length&&0===re[0]&&(re[1]=1);var ae=length-Q.length;ae>0&&r.fillOffset(re,ae),1===Q.length&&Q.unshift(null),p.addKeyframes(J,Q,X,re,ee,se),G=Math.max($+V,G),w=Math.max(se,w)}}k=M,M+=G}else _.set(E.name,h.calcNextTime(M,E.at,k,_))}return A.forEach((function(e,s){for(var i in e){var r=e[i];r.sort(c.compareByTime);for(var n=[],u=[],l=[],o=0;o<r.length;o++){var f=r[o],d=f.at,v=f.value,g=f.easing;n.push(v),u.push(a.progress(0,w,d)),l.push(g||t.defaults.easing)}0!==u[0]&&(u.unshift(0),n.unshift(n[0]),l.unshift("linear")),1!==u[u.length-1]&&(u.push(1),n.push(null)),x.push([s,i,n,Object.assign(Object.assign(Object.assign({},O),{duration:w,easing:l,offset:u}),b)])}})),x}function q(e,s){return!s.has(e)&&s.set(e,{}),s.get(e)}function y(e,s){return s[e]||(s[e]=[]),s[e]}exports.createAnimationsFromTimeline=j,exports.timeline=function(s){var i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=j(s,t),a=r.map((function(s){return o.animateStyle.apply(void 0,e.toConsumableArray(s))})).filter(Boolean);return f.withControls(a,t,null===(i=r[0])||void 0===i?void 0:i[3].duration)};
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../node_modules/@motionone/dom/dist/timeline/index.es.js"],"sourcesContent":["import { __rest } from 'tslib';\nimport { invariant } from 'hey-listen';\nimport { isString, defaults, isEasingGenerator, defaultOffset, fillOffset, progress } from '@motionone/utils';\nimport { resolveOption } from '../utils/stagger.es.js';\nimport { animateStyle } from '../animate/animate-style.es.js';\nimport { withControls } from '../animate/utils/controls.es.js';\nimport { keyframesList } from '../animate/utils/keyframes.es.js';\nimport { getOptions } from '../animate/utils/options.es.js';\nimport { resolveElements } from '../utils/resolve-elements.es.js';\nimport { isTransform } from '../animate/utils/transforms.es.js';\nimport { calcNextTime } from './utils/calc-time.es.js';\nimport { addKeyframes } from './utils/edit.es.js';\nimport { compareByTime } from './utils/sort.es.js';\n\nfunction timeline(definition, options = {}) {\n var _a;\n const animationDefinitions = createAnimationsFromTimeline(definition, options);\n /**\n * Create and start animations\n */\n const animationFactories = animationDefinitions\n .map((definition) => animateStyle(...definition))\n .filter(Boolean);\n return withControls(animationFactories, options, \n // Get the duration from the first animation definition\n (_a = animationDefinitions[0]) === null || _a === void 0 ? void 0 : _a[3].duration);\n}\nfunction createAnimationsFromTimeline(definition, _a = {}) {\n var { defaultOptions = {} } = _a, timelineOptions = __rest(_a, [\"defaultOptions\"]);\n const animationDefinitions = [];\n const elementSequences = new Map();\n const elementCache = {};\n const timeLabels = new Map();\n let prevTime = 0;\n let currentTime = 0;\n let totalDuration = 0;\n /**\n * Build the timeline by mapping over the definition array and converting\n * the definitions into keyframes and offsets with absolute time values.\n * These will later get converted into relative offsets in a second pass.\n */\n for (let i = 0; i < definition.length; i++) {\n const segment = definition[i];\n /**\n * If this is a timeline label, mark it and skip the rest of this iteration.\n */\n if (isString(segment)) {\n timeLabels.set(segment, currentTime);\n continue;\n }\n else if (!Array.isArray(segment)) {\n timeLabels.set(segment.name, calcNextTime(currentTime, segment.at, prevTime, timeLabels));\n continue;\n }\n const [elementDefinition, keyframes, options = {}] = segment;\n /**\n * If a relative or absolute time value has been specified we need to resolve\n * it in relation to the currentTime.\n */\n if (options.at !== undefined) {\n currentTime = calcNextTime(currentTime, options.at, prevTime, timeLabels);\n }\n /**\n * Keep track of the maximum duration in this definition. This will be\n * applied to currentTime once the definition has been parsed.\n */\n let maxDuration = 0;\n /**\n * Find all the elements specified in the definition and parse value\n * keyframes from their timeline definitions.\n */\n const elements = resolveElements(elementDefinition, elementCache);\n const numElements = elements.length;\n for (let elementIndex = 0; elementIndex < numElements; elementIndex++) {\n const element = elements[elementIndex];\n const elementSequence = getElementSequence(element, elementSequences);\n for (const key in keyframes) {\n const valueSequence = getValueSequence(key, elementSequence);\n let valueKeyframes = keyframesList(keyframes[key]);\n const valueOptions = getOptions(options, key);\n let { duration = defaultOptions.duration || defaults.duration, easing = defaultOptions.easing || defaults.easing, } = valueOptions;\n if (isEasingGenerator(easing)) {\n const valueIsTransform = isTransform(key);\n invariant(valueKeyframes.length === 2 || !valueIsTransform, \"spring must be provided 2 keyframes within timeline\");\n const custom = easing.createAnimation(valueKeyframes, \n // TODO We currently only support explicit keyframes\n // so this doesn't currently read from the DOM\n () => \"0\", valueIsTransform);\n easing = custom.easing;\n if (custom.keyframes !== undefined)\n valueKeyframes = custom.keyframes;\n if (custom.duration !== undefined)\n duration = custom.duration;\n }\n const delay = resolveOption(options.delay, elementIndex, numElements) || 0;\n const startTime = currentTime + delay;\n const targetTime = startTime + duration;\n /**\n *\n */\n let { offset = defaultOffset(valueKeyframes.length) } = valueOptions;\n /**\n * If there's only one offset of 0, fill in a second with length 1\n *\n * TODO: Ensure there's a test that covers this removal\n */\n if (offset.length === 1 && offset[0] === 0) {\n offset[1] = 1;\n }\n /**\n * Fill out if offset if fewer offsets than keyframes\n */\n const remainder = length - valueKeyframes.length;\n remainder > 0 && fillOffset(offset, remainder);\n /**\n * If only one value has been set, ie [1], push a null to the start of\n * the keyframe array. This will let us mark a keyframe at this point\n * that will later be hydrated with the previous value.\n */\n valueKeyframes.length === 1 && valueKeyframes.unshift(null);\n /**\n * Add keyframes, mapping offsets to absolute time.\n */\n addKeyframes(valueSequence, valueKeyframes, easing, offset, startTime, targetTime);\n maxDuration = Math.max(delay + duration, maxDuration);\n totalDuration = Math.max(targetTime, totalDuration);\n }\n }\n prevTime = currentTime;\n currentTime += maxDuration;\n }\n /**\n * For every element and value combination create a new animation.\n */\n elementSequences.forEach((valueSequences, element) => {\n for (const key in valueSequences) {\n const valueSequence = valueSequences[key];\n /**\n * Arrange all the keyframes in ascending time order.\n */\n valueSequence.sort(compareByTime);\n const keyframes = [];\n const valueOffset = [];\n const valueEasing = [];\n /**\n * For each keyframe, translate absolute times into\n * relative offsets based on the total duration of the timeline.\n */\n for (let i = 0; i < valueSequence.length; i++) {\n const { at, value, easing } = valueSequence[i];\n keyframes.push(value);\n valueOffset.push(progress(0, totalDuration, at));\n valueEasing.push(easing || defaults.easing);\n }\n /**\n * If the first keyframe doesn't land on offset: 0\n * provide one by duplicating the initial keyframe. This ensures\n * it snaps to the first keyframe when the animation starts.\n */\n if (valueOffset[0] !== 0) {\n valueOffset.unshift(0);\n keyframes.unshift(keyframes[0]);\n valueEasing.unshift(\"linear\");\n }\n /**\n * If the last keyframe doesn't land on offset: 1\n * provide one with a null wildcard value. This will ensure it\n * stays static until the end of the animation.\n */\n if (valueOffset[valueOffset.length - 1] !== 1) {\n valueOffset.push(1);\n keyframes.push(null);\n }\n animationDefinitions.push([\n element,\n key,\n keyframes,\n Object.assign(Object.assign(Object.assign({}, defaultOptions), { duration: totalDuration, easing: valueEasing, offset: valueOffset }), timelineOptions),\n ]);\n }\n });\n return animationDefinitions;\n}\nfunction getElementSequence(element, sequences) {\n !sequences.has(element) && sequences.set(element, {});\n return sequences.get(element);\n}\nfunction getValueSequence(name, sequences) {\n if (!sequences[name])\n sequences[name] = [];\n return sequences[name];\n}\n\nexport { createAnimationsFromTimeline, timeline };\n"],"names":["createAnimationsFromTimeline","definition","_a","arguments","length","undefined","defaultOptions","_a$defaultOptions","timelineOptions","__rest","animationDefinitions","elementSequences","Map","elementCache","timeLabels","prevTime","currentTime","totalDuration","i","segment","isString","set","Array","isArray","_segment","_slicedToArray","elementDefinition","keyframes","_segment$","options","at","calcNextTime","maxDuration","elements","resolveElements","numElements","elementIndex","element","elementSequence","getElementSequence","key","valueSequence","getValueSequence","valueKeyframes","keyframesList","valueOptions","getOptions","duration","defaults","_valueOptions$duratio","_valueOptions$easing","easing","isEasingGenerator","valueIsTransform","isTransform","invariant","custom","createAnimation","delay","resolveOption","startTime","targetTime","_valueOptions","_valueOptions$offset","offset","defaultOffset","remainder","fillOffset","unshift","addKeyframes","Math","max","name","forEach","valueSequences","sort","compareByTime","valueOffset","valueEasing","value","push","progress","Object","assign","sequences","has","get","animationFactories","map","animateStyle","filter","Boolean","withControls"],"mappings":"k4BA2BA,SAASA,EAA6BC,GAclC,IAduD,IAATC,EAAKC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAA,CAAA,EACrBD,EAAAA,EAAxBI,eAAAA,OAAc,IAAAC,EAAG,CAAE,EAAAA,EAASC,EAAkBC,EAAAA,OAAOP,EAAI,CAAC,mBAC1DQ,EAAuB,GACvBC,EAAmB,IAAIC,IACvBC,EAAe,CAAA,EACfC,EAAa,IAAIF,IACnBG,EAAW,EACXC,EAAc,EACdC,EAAgB,EAMXC,EAAI,EAAGA,EAAIjB,EAAWG,OAAQc,IAAK,CACxC,IAAMC,EAAUlB,EAAWiB,GAI3B,GAAIE,EAAAA,SAASD,GACTL,EAAWO,IAAIF,EAASH,QAGvB,GAAKM,MAAMC,QAAQJ,GAAnB,CAIL,IAAAK,EAAAC,EAAAA,cAAqDN,EAAO,GAArDO,EAAiBF,EAAA,GAAEG,EAASH,EAAA,GAAAI,EAAAJ,EAAA,GAAEK,OAAO,IAAAD,EAAG,CAAA,EAAEA,OAK9BvB,IAAfwB,EAAQC,KACRd,EAAce,EAAYA,aAACf,EAAaa,EAAQC,GAAIf,EAAUD,IAalE,IAPA,IAAI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EAAUZ,KACXY,EAAUZ,GAAQ,IACfY,EAAUZ,EACrB,yDAjLA,SAAkBvE,GAA0B,IACpCC,EADsB2B,EAAU1B,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAA,CAAA,EAE9BO,EAAuBV,EAA6BC,EAAY4B,GAIhE0D,EAAqB7E,EACtB8E,KAAI,SAACvF,GAAU,OAAKwF,EAAAA,aAAgBxF,WAAAA,EAAAA,EAAAA,kBAAAA,GAAW,IAC/CyF,OAAOC,SACZ,OAAOC,EAAAA,aAAaL,EAAoB1D,EAEL,QAAlC3B,EAAKQ,EAAqB,UAAuB,IAAPR,OAAgB,EAASA,EAAG,GAAG6C,SAC9E"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../utils/dist/is-number.es.js");exports.calcNextTime=function(t,r,s,i){var a;return e.isNumber(r)?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,t+parseFloat(r)):"<"===r?s:null!==(a=i.get(r))&&void 0!==a?a:t};
2
- //# sourceMappingURL=calc-time.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calc-time.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/timeline/utils/calc-time.es.js"],"sourcesContent":["import { isNumber } from '@motionone/utils';\n\nfunction calcNextTime(current, next, prev, labels) {\n var _a;\n if (isNumber(next)) {\n return next;\n }\n else if (next.startsWith(\"-\") || next.startsWith(\"+\")) {\n return Math.max(0, current + parseFloat(next));\n }\n else if (next === \"<\") {\n return prev;\n }\n else {\n return (_a = labels.get(next)) !== null && _a !== void 0 ? _a : current;\n }\n}\n\nexport { calcNextTime };\n"],"names":["current","next","prev","labels","_a","isNumber","startsWith","Math","max","parseFloat","get"],"mappings":"iJAEA,SAAsBA,EAASC,EAAMC,EAAMC,GACvC,IAAIC,EACJ,OAAIC,EAAAA,SAASJ,GACFA,EAEFA,EAAKK,WAAW,MAAQL,EAAKK,WAAW,KACtCC,KAAKC,IAAI,EAAGR,EAAUS,WAAWR,IAE1B,MAATA,EACEC,EAG4B,QAA3BE,EAAKD,EAAOO,IAAIT,UAA0B,IAAPG,EAAgBA,EAAKJ,CAExE"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../utils/dist/array.es.js"),r=require("../../../../utils/dist/easing.es.js"),s=require("../../../../utils/dist/mix.es.js");function t(r,s,t){for(var a=0;a<r.length;a++){var i=r[a];i.at>s&&i.at<t&&(e.removeItem(r,i),a--)}}exports.addKeyframes=function(e,a,i,u,n,o){t(e,n,o);for(var l=0;l<a.length;l++)e.push({value:a[l],at:s.mix(n,o,u[l]),easing:r.getEasingForSegment(i,l)})},exports.eraseKeyframes=t;
2
- //# sourceMappingURL=edit.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edit.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/timeline/utils/edit.es.js"],"sourcesContent":["import { mix, getEasingForSegment, removeItem } from '@motionone/utils';\n\nfunction eraseKeyframes(sequence, startTime, endTime) {\n for (let i = 0; i < sequence.length; i++) {\n const keyframe = sequence[i];\n if (keyframe.at > startTime && keyframe.at < endTime) {\n removeItem(sequence, keyframe);\n // If we remove this item we have to push the pointer back one\n i--;\n }\n }\n}\nfunction addKeyframes(sequence, keyframes, easing, offset, startTime, endTime) {\n /**\n * Erase every existing value between currentTime and targetTime,\n * this will essentially splice this timeline into any currently\n * defined ones.\n */\n eraseKeyframes(sequence, startTime, endTime);\n for (let i = 0; i < keyframes.length; i++) {\n sequence.push({\n value: keyframes[i],\n at: mix(startTime, endTime, offset[i]),\n easing: getEasingForSegment(easing, i),\n });\n }\n}\n\nexport { addKeyframes, eraseKeyframes };\n"],"names":["eraseKeyframes","sequence","startTime","endTime","i","length","keyframe","at","removeItem","keyframes","easing","offset","push","value","mix","getEasingForSegment"],"mappings":"uNAEA,SAASA,EAAeC,EAAUC,EAAWC,GACzC,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAAK,CACtC,IAAME,EAAWL,EAASG,GACtBE,EAASC,GAAKL,GAAaI,EAASC,GAAKJ,IACzCK,aAAWP,EAAUK,GAErBF,IAER,CACJ,sBACA,SAAsBH,EAAUQ,EAAWC,EAAQC,EAAQT,EAAWC,GAMlEH,EAAeC,EAAUC,EAAWC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIK,EAAUJ,OAAQD,IAClCH,EAASW,KAAK,CACVC,MAAOJ,EAAUL,GACjBG,GAAIO,EAAGA,IAACZ,EAAWC,EAASQ,EAAOP,IACnCM,OAAQK,EAAAA,oBAAoBL,EAAQN,IAGhD"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareByTime=function(e,t){return e.at===t.at?null===e.value?1:-1:e.at-t.at};
2
- //# sourceMappingURL=sort.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort.es.js","sources":["../../../../../../../node_modules/@motionone/dom/dist/timeline/utils/sort.es.js"],"sourcesContent":["function compareByTime(a, b) {\n if (a.at === b.at) {\n return a.value === null ? 1 : -1;\n }\n else {\n return a.at - b.at;\n }\n}\n\nexport { compareByTime };\n"],"names":["a","b","at","value"],"mappings":"0FAAA,SAAuBA,EAAGC,GACtB,OAAID,EAAEE,KAAOD,EAAEC,GACQ,OAAZF,EAAEG,MAAiB,GAAK,EAGxBH,EAAEE,GAAKD,EAAEC,EAExB"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveElements=function(e,r){var t;return"string"==typeof e?r?(null!==(t=r[e])&&void 0!==t||(r[e]=document.querySelectorAll(e)),e=r[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])};
2
- //# sourceMappingURL=resolve-elements.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-elements.es.js","sources":["../../../../../../node_modules/@motionone/dom/dist/utils/resolve-elements.es.js"],"sourcesContent":["function resolveElements(elements, selectorCache) {\n var _a;\n if (typeof elements === \"string\") {\n if (selectorCache) {\n (_a = selectorCache[elements]) !== null && _a !== void 0 ? _a : (selectorCache[elements] = document.querySelectorAll(elements));\n elements = selectorCache[elements];\n }\n else {\n elements = document.querySelectorAll(elements);\n }\n }\n else if (elements instanceof Element) {\n elements = [elements];\n }\n /**\n * Return an empty array\n */\n return Array.from(elements || []);\n}\n\nexport { resolveElements };\n"],"names":["elements","selectorCache","_a","document","querySelectorAll","Element","Array","from"],"mappings":"4FAAA,SAAyBA,EAAUC,GAC/B,IAAIC,EAgBJ,MAfwB,iBAAbF,EACHC,GACmC,QAAlCC,EAAKD,EAAcD,UAA8B,IAAPE,IAAsBD,EAAcD,GAAYG,SAASC,iBAAiBJ,IACrHA,EAAWC,EAAcD,IAGzBA,EAAWG,SAASC,iBAAiBJ,GAGpCA,aAAoBK,UACzBL,EAAW,CAACA,IAKTM,MAAMC,KAAKP,GAAY,GAClC"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../utils/dist/is-number.es.js"),t=require("../../../utils/dist/is-function.es.js"),r=require("../../../animation/dist/utils/easing.es.js");function i(e,t){if("first"===e)return 0;var r=t-1;return"last"===e?r:r/2}exports.getFromIndex=i,exports.resolveOption=function(e,r,i){return t.isFunction(e)?e(r,i):e},exports.stagger=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s.start,u=void 0===n?0:n,o=s.from,a=void 0===o?0:o,v=s.easing;return function(s,n){var o=e.isNumber(a)?a:i(a,n),d=Math.abs(o-s),f=t*d;if(v){var c=n*t;f=r.getEasingFunction(v)(f/c)*c}return u+f}};
2
- //# sourceMappingURL=stagger.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stagger.es.js","sources":["../../../../../../node_modules/@motionone/dom/dist/utils/stagger.es.js"],"sourcesContent":["import { isNumber, isFunction } from '@motionone/utils';\nimport { getEasingFunction } from '@motionone/animation';\n\nfunction stagger(duration = 0.1, { start = 0, from = 0, easing } = {}) {\n return (i, total) => {\n const fromIndex = isNumber(from) ? from : getFromIndex(from, total);\n const distance = Math.abs(fromIndex - i);\n let delay = duration * distance;\n if (easing) {\n const maxDelay = total * duration;\n const easingFunction = getEasingFunction(easing);\n delay = easingFunction(delay / maxDelay) * maxDelay;\n }\n return start + delay;\n };\n}\nfunction getFromIndex(from, total) {\n if (from === \"first\") {\n return 0;\n }\n else {\n const lastIndex = total - 1;\n return from === \"last\" ? lastIndex : lastIndex / 2;\n }\n}\nfunction resolveOption(option, i, total) {\n return isFunction(option) ? option(i, total) : option;\n}\n\nexport { getFromIndex, resolveOption, stagger };\n"],"names":["getFromIndex","from","total","lastIndex","option","i","isFunction","duration","_ref","arguments","length","undefined","_ref$start","start","_ref$from","easing","fromIndex","isNumber","distance","Math","abs","delay","maxDelay","getEasingFunction","easingFunction"],"mappings":"oOAgBA,SAASA,EAAaC,EAAMC,GACxB,GAAa,UAATD,EACA,OAAO,EAGP,IAAME,EAAYD,EAAQ,EAC1B,MAAgB,SAATD,EAAkBE,EAAYA,EAAY,CAEzD,8CACA,SAAuBC,EAAQC,EAAGH,GAC9B,OAAOI,EAAAA,WAAWF,GAAUA,EAAOC,EAAGH,GAASE,CACnD,kBAxBA,WAAuE,IAAtDG,yDAAW,GAAGC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAoC,CAAE,EAAAG,EAAAJ,EAAlCK,MAAAA,aAAQ,EAACD,EAAAE,EAAAN,EAAEP,KAAAA,aAAO,EAACa,EAAEC,IAAAA,OACpD,OAAO,SAACV,EAAGH,GACP,IAAMc,EAAYC,EAAQA,SAAChB,GAAQA,EAAOD,EAAaC,EAAMC,GACvDgB,EAAWC,KAAKC,IAAIJ,EAAYX,GAClCgB,EAAQd,EAAWW,EACvB,GAAIH,EAAQ,CACR,IAAMO,EAAWpB,EAAQK,EAEzBc,EADuBE,oBAAkBR,EACjCS,CAAeH,EAAQC,GAAYA,CAC/C,CACA,OAAOT,EAAQQ,EAEvB"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../utils/dist/noop.es.js"),r=function(e,r,t){return(((1-3*t+3*r)*e+(3*t-6*r))*e+3*r)*e};exports.cubicBezier=function(t,n,u,i){if(t===n&&u===i)return e.noopReturn;var o=function(e){return function(e,t,n,u,i){var o,s,c=0;do{(o=r(s=t+(n-t)/2,u,i)-e)>0?n=s:t=s}while(Math.abs(o)>1e-7&&++c<12);return s}(e,0,1,t,u)};return function(e){return 0===e||1===e?e:r(o(e),n,i)}};
2
- //# sourceMappingURL=cubic-bezier.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cubic-bezier.es.js","sources":["../../../../../node_modules/@motionone/easing/dist/cubic-bezier.es.js"],"sourcesContent":["import { noopReturn } from '@motionone/utils';\n\n/*\n Bezier function generator\n\n This has been modified from Gaëtan Renaudeau's BezierEasing\n https://github.com/gre/bezier-easing/blob/master/src/index.js\n https://github.com/gre/bezier-easing/blob/master/LICENSE\n \n I've removed the newtonRaphsonIterate algo because in benchmarking it\n wasn't noticiably faster than binarySubdivision, indeed removing it\n usually improved times, depending on the curve.\n\n I also removed the lookup table, as for the added bundle size and loop we're\n only cutting ~4 or so subdivision iterations. I bumped the max iterations up\n to 12 to compensate and this still tended to be faster for no perceivable\n loss in accuracy.\n\n Usage\n const easeOut = cubicBezier(.17,.67,.83,.67);\n const x = easeOut(0.5); // returns 0.627...\n*/\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nconst calcBezier = (t, a1, a2) => (((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) * t;\nconst subdivisionPrecision = 0.0000001;\nconst subdivisionMaxIterations = 12;\nfunction binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {\n let currentX;\n let currentT;\n let i = 0;\n do {\n currentT = lowerBound + (upperBound - lowerBound) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - x;\n if (currentX > 0.0) {\n upperBound = currentT;\n }\n else {\n lowerBound = currentT;\n }\n } while (Math.abs(currentX) > subdivisionPrecision &&\n ++i < subdivisionMaxIterations);\n return currentT;\n}\nfunction cubicBezier(mX1, mY1, mX2, mY2) {\n // If this is a linear gradient, return linear easing\n if (mX1 === mY1 && mX2 === mY2)\n return noopReturn;\n const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);\n // If animation is at start/end, return t without easing\n return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);\n}\n\nexport { cubicBezier };\n"],"names":["calcBezier","t","a1","a2","mX1","mY1","mX2","mY2","noopReturn","getTForX","aX","x","lowerBound","upperBound","currentX","currentT","i","Math","abs","binarySubdivide"],"mappings":"iHAuBMA,EAAa,SAACC,EAAGC,EAAIC,GAAE,SAAQ,EAAM,EAAMA,EAAK,EAAMD,GAAMD,GAAK,EAAME,EAAK,EAAMD,IAAOD,EAAI,EAAMC,GAAMD,CAAC,sBAoBhH,SAAqBG,EAAKC,EAAKC,EAAKC,GAEhC,GAAIH,IAAQC,GAAOC,IAAQC,EACvB,OAAOC,EAAAA,WACX,IAAMC,EAAW,SAACC,GAAE,OArBxB,SAAyBC,EAAGC,EAAYC,EAAYT,EAAKE,GACrD,IAAIQ,EACAC,EACAC,EAAI,EACR,IAEIF,EAAWd,EADXe,EAAWH,GAAcC,EAAaD,GAAc,EACpBR,EAAKE,GAAOK,GAC7B,EACXE,EAAaE,EAGbH,EAAaG,QAEZE,KAAKC,IAAIJ,GAfO,QAgBnBE,EAfuB,IAgB7B,OAAOD,CACX,CAK6BI,CAAgBT,EAAI,EAAG,EAAGN,EAAKE,EAAI,EAE5D,OAAO,SAACL,GAAC,OAAW,IAANA,GAAiB,IAANA,EAAUA,EAAID,EAAWS,EAASR,GAAII,EAAKE,EAAI,CAC5E"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../utils/dist/clamp.es.js");exports.steps=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return function(n){var a=(n="end"===r?Math.min(n,.999):Math.max(n,.001))*t,s="end"===r?Math.floor(a):Math.ceil(a);return e.clamp(0,1,s/t)}};
2
- //# sourceMappingURL=steps.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"steps.es.js","sources":["../../../../../node_modules/@motionone/easing/dist/steps.es.js"],"sourcesContent":["import { clamp } from '@motionone/utils';\n\nconst steps = (steps, direction = \"end\") => (progress) => {\n progress =\n direction === \"end\"\n ? Math.min(progress, 0.999)\n : Math.max(progress, 0.001);\n const expanded = progress * steps;\n const rounded = direction === \"end\" ? Math.floor(expanded) : Math.ceil(expanded);\n return clamp(0, 1, rounded / steps);\n};\n\nexport { steps };\n"],"names":["steps","direction","progress","expanded","Math","min","max","rounded","floor","ceil","clamp"],"mappings":"gIAEc,SAACA,GAAK,IAAEC,yDAAY,MAAK,OAAK,SAACC,GAKzC,IAAMC,GAJND,EACkB,QAAdD,EACMG,KAAKC,IAAIH,EAAU,MACnBE,KAAKE,IAAIJ,EAAU,OACDF,EACtBO,EAAwB,QAAdN,EAAsBG,KAAKI,MAAML,GAAYC,KAAKK,KAAKN,GACvE,OAAOO,EAAKA,MAAC,EAAG,EAAGH,EAAUP,GAChC"}