@undp/data-viz 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. package/dist/AreaChart.cjs +2 -0
  2. package/dist/AreaChart.cjs.map +1 -0
  3. package/dist/AreaChart.js +530 -1
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/Axis-DE7dSn1_.cjs +2 -0
  6. package/dist/{Axis-BlyBRMNw.cjs.map → Axis-DE7dSn1_.cjs.map} +1 -1
  7. package/dist/{Axis-CvK-w3E2.js → Axis-Ddg-seDi.js} +10 -11
  8. package/dist/{Axis-CvK-w3E2.js.map → Axis-Ddg-seDi.js.map} +1 -1
  9. package/dist/AxisTitle-BmHLMRJZ.js +20 -0
  10. package/dist/{AxisTitle-BeMxcw5I.js.map → AxisTitle-BmHLMRJZ.js.map} +1 -1
  11. package/dist/AxisTitle-CK9YeovX.cjs +2 -0
  12. package/dist/{AxisTitle-BY8MI9jC.cjs.map → AxisTitle-CK9YeovX.cjs.map} +1 -1
  13. package/dist/BarGraph.cjs +2 -0
  14. package/dist/BarGraph.cjs.map +1 -0
  15. package/dist/BarGraph.js +4043 -1
  16. package/dist/BarGraph.js.map +1 -1
  17. package/dist/BasicStatCard.cjs +2 -0
  18. package/dist/BasicStatCard.cjs.map +1 -0
  19. package/dist/BasicStatCard.js +190 -1
  20. package/dist/BasicStatCard.js.map +1 -1
  21. package/dist/BeeSwarmChart.cjs +2 -0
  22. package/dist/BeeSwarmChart.cjs.map +1 -0
  23. package/dist/BeeSwarmChart.d.ts +0 -8
  24. package/dist/BeeSwarmChart.js +1042 -1
  25. package/dist/BeeSwarmChart.js.map +1 -1
  26. package/dist/BiVariateChoroplethMap.cjs +2 -0
  27. package/dist/BiVariateChoroplethMap.cjs.map +1 -0
  28. package/dist/BiVariateChoroplethMap.js +720 -1
  29. package/dist/BiVariateChoroplethMap.js.map +1 -1
  30. package/dist/BulletChart.cjs +2 -0
  31. package/dist/BulletChart.cjs.map +1 -0
  32. package/dist/BulletChart.js +1431 -1
  33. package/dist/BulletChart.js.map +1 -1
  34. package/dist/ButterflyChart.cjs +2 -0
  35. package/dist/ButterflyChart.cjs.map +1 -0
  36. package/dist/ButterflyChart.js +692 -1
  37. package/dist/ButterflyChart.js.map +1 -1
  38. package/dist/ChoroplethMap.cjs +2 -0
  39. package/dist/ChoroplethMap.cjs.map +1 -0
  40. package/dist/ChoroplethMap.js +745 -1
  41. package/dist/ChoroplethMap.js.map +1 -1
  42. package/dist/CirclePackingGraph.cjs +2 -0
  43. package/dist/CirclePackingGraph.cjs.map +1 -0
  44. package/dist/CirclePackingGraph.d.ts +0 -8
  45. package/dist/CirclePackingGraph.js +14 -1
  46. package/dist/CirclePackingGraph.js.map +1 -1
  47. package/dist/ColorLegend.cjs +2 -0
  48. package/dist/ColorLegend.cjs.map +1 -0
  49. package/dist/ColorLegend.js +47 -1
  50. package/dist/ColorLegend.js.map +1 -1
  51. package/dist/ColorLegendWithMouseOver.cjs +2 -0
  52. package/dist/ColorLegendWithMouseOver.cjs.map +1 -0
  53. package/dist/ColorLegendWithMouseOver.js +70 -1
  54. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  55. package/dist/Colors.cjs +2 -0
  56. package/dist/Colors.cjs.map +1 -0
  57. package/dist/Colors.js +561 -1
  58. package/dist/Colors.js.map +1 -1
  59. package/dist/CopyTextButton.cjs +17 -0
  60. package/dist/CopyTextButton.cjs.map +1 -0
  61. package/dist/CopyTextButton.js +698 -16
  62. package/dist/CopyTextButton.js.map +1 -1
  63. package/dist/CsvDownloadButton.cjs +23 -0
  64. package/dist/CsvDownloadButton.cjs.map +1 -0
  65. package/dist/CsvDownloadButton.js +852 -7
  66. package/dist/CsvDownloadButton.js.map +1 -1
  67. package/dist/DataCards.cjs +2 -0
  68. package/dist/DataCards.cjs.map +1 -0
  69. package/dist/DataCards.js +14 -1
  70. package/dist/DataCards.js.map +1 -1
  71. package/dist/DataTable.cjs +2 -0
  72. package/dist/DataTable.cjs.map +1 -0
  73. package/dist/DataTable.js +331 -1
  74. package/dist/DataTable.js.map +1 -1
  75. package/dist/DifferenceLineChart.cjs +2 -0
  76. package/dist/DifferenceLineChart.cjs.map +1 -0
  77. package/dist/DifferenceLineChart.js +805 -1
  78. package/dist/DifferenceLineChart.js.map +1 -1
  79. package/dist/DonutChart.cjs +2 -0
  80. package/dist/DonutChart.cjs.map +1 -0
  81. package/dist/DonutChart.js +478 -1
  82. package/dist/DonutChart.js.map +1 -1
  83. package/dist/DotDensityMap.cjs +2 -0
  84. package/dist/DotDensityMap.cjs.map +1 -0
  85. package/dist/DotDensityMap.js +600 -1
  86. package/dist/DotDensityMap.js.map +1 -1
  87. package/dist/DropdownSelect-0I2QxaVy.cjs +29 -0
  88. package/dist/DropdownSelect-0I2QxaVy.cjs.map +1 -0
  89. package/dist/DropdownSelect-CDC9lEqU.js +4193 -0
  90. package/dist/DropdownSelect-CDC9lEqU.js.map +1 -0
  91. package/dist/DualAxisLineChart.cjs +2 -0
  92. package/dist/DualAxisLineChart.cjs.map +1 -0
  93. package/dist/DualAxisLineChart.js +699 -1
  94. package/dist/DualAxisLineChart.js.map +1 -1
  95. package/dist/DumbbellChart.cjs +2 -0
  96. package/dist/DumbbellChart.cjs.map +1 -0
  97. package/dist/DumbbellChart.js +1510 -1
  98. package/dist/DumbbellChart.js.map +1 -1
  99. package/dist/{EmptyState-b2Ln487i.js → EmptyState-DdTp-Mdn.js} +8 -8
  100. package/dist/{EmptyState-b2Ln487i.js.map → EmptyState-DdTp-Mdn.js.map} +1 -1
  101. package/dist/EmptyState-d8_8SxeW.cjs +2 -0
  102. package/dist/{EmptyState-BQguKAp5.cjs.map → EmptyState-d8_8SxeW.cjs.map} +1 -1
  103. package/dist/ExcelDownloadButton.cjs +2 -0
  104. package/dist/ExcelDownloadButton.cjs.map +1 -0
  105. package/dist/ExcelDownloadButton.js +29 -1
  106. package/dist/ExcelDownloadButton.js.map +1 -1
  107. package/dist/FootNote.cjs +2 -0
  108. package/dist/FootNote.cjs.map +1 -0
  109. package/dist/FootNote.js +20 -1
  110. package/dist/FootNote.js.map +1 -1
  111. package/dist/GeoHubCompareMaps.cjs +2 -0
  112. package/dist/GeoHubCompareMaps.cjs.map +1 -0
  113. package/dist/GeoHubCompareMaps.js +370 -1
  114. package/dist/GeoHubCompareMaps.js.map +1 -1
  115. package/dist/GeoHubMap.cjs +2 -0
  116. package/dist/GeoHubMap.cjs.map +1 -0
  117. package/dist/GeoHubMap.js +429 -1
  118. package/dist/GeoHubMap.js.map +1 -1
  119. package/dist/GeoHubMapWithLayerSelection.cjs +2 -0
  120. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -0
  121. package/dist/GeoHubMapWithLayerSelection.js +307 -1
  122. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  123. package/dist/GraphDescription.cjs +2 -0
  124. package/dist/GraphDescription.cjs.map +1 -0
  125. package/dist/GraphDescription.js +20 -1
  126. package/dist/GraphDescription.js.map +1 -1
  127. package/dist/GraphFooter.cjs +2 -0
  128. package/dist/GraphFooter.cjs.map +1 -0
  129. package/dist/GraphFooter.js +21 -1
  130. package/dist/GraphFooter.js.map +1 -1
  131. package/dist/GraphHeader.cjs +2 -0
  132. package/dist/GraphHeader.cjs.map +1 -0
  133. package/dist/GraphHeader.js +63 -1
  134. package/dist/GraphHeader.js.map +1 -1
  135. package/dist/GraphTitle.cjs +2 -0
  136. package/dist/GraphTitle.cjs.map +1 -0
  137. package/dist/GraphTitle.js +28 -1
  138. package/dist/GraphTitle.js.map +1 -1
  139. package/dist/GriddedGraphs.cjs +2 -0
  140. package/dist/GriddedGraphs.cjs.map +1 -0
  141. package/dist/GriddedGraphs.js +482 -1
  142. package/dist/GriddedGraphs.js.map +1 -1
  143. package/dist/GriddedGraphsFromConfig.cjs +2 -0
  144. package/dist/GriddedGraphsFromConfig.cjs.map +1 -0
  145. package/dist/GriddedGraphsFromConfig.js +42 -1
  146. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  147. package/dist/HeatMap.cjs +2 -0
  148. package/dist/HeatMap.cjs.map +1 -0
  149. package/dist/HeatMap.js +451 -1
  150. package/dist/HeatMap.js.map +1 -1
  151. package/dist/Histogram.cjs +2 -0
  152. package/dist/Histogram.cjs.map +1 -0
  153. package/dist/Histogram.js +287 -1
  154. package/dist/Histogram.js.map +1 -1
  155. package/dist/ImageDownloadButton.cjs +2 -0
  156. package/dist/ImageDownloadButton.cjs.map +1 -0
  157. package/dist/ImageDownloadButton.js +28 -1
  158. package/dist/ImageDownloadButton.js.map +1 -1
  159. package/dist/LineChartWithConfidenceInterval.cjs +2 -0
  160. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -0
  161. package/dist/LineChartWithConfidenceInterval.js +818 -1
  162. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  163. package/dist/LinearColorLegend.cjs +2 -0
  164. package/dist/LinearColorLegend.cjs.map +1 -0
  165. package/dist/LinearColorLegend.js +33 -1
  166. package/dist/LinearColorLegend.js.map +1 -1
  167. package/dist/Modal-CUU6ZK3U.js +1019 -0
  168. package/dist/Modal-CUU6ZK3U.js.map +1 -0
  169. package/dist/Modal-C_dl0EtQ.cjs +46 -0
  170. package/dist/Modal-C_dl0EtQ.cjs.map +1 -0
  171. package/dist/MultiGraphDashboard.cjs +2 -0
  172. package/dist/MultiGraphDashboard.cjs.map +1 -0
  173. package/dist/MultiGraphDashboard.js +303 -1
  174. package/dist/MultiGraphDashboard.js.map +1 -1
  175. package/dist/MultiGraphDashboardFromConfig.cjs +2 -0
  176. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -0
  177. package/dist/MultiGraphDashboardFromConfig.js +37 -1
  178. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  179. package/dist/MultiGraphDashboardWideToLongFormat.cjs +2 -0
  180. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -0
  181. package/dist/MultiGraphDashboardWideToLongFormat.js +243 -1
  182. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  183. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +2 -0
  184. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -0
  185. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +30 -1
  186. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  187. package/dist/MultiLineAltChart.cjs +2 -0
  188. package/dist/MultiLineAltChart.cjs.map +1 -0
  189. package/dist/MultiLineAltChart.js +689 -1
  190. package/dist/MultiLineAltChart.js.map +1 -1
  191. package/dist/MultiLineChart.cjs +2 -0
  192. package/dist/MultiLineChart.cjs.map +1 -0
  193. package/dist/MultiLineChart.js +722 -1
  194. package/dist/MultiLineChart.js.map +1 -1
  195. package/dist/ParetoChart.cjs +2 -0
  196. package/dist/ParetoChart.cjs.map +1 -0
  197. package/dist/ParetoChart.js +636 -1
  198. package/dist/ParetoChart.js.map +1 -1
  199. package/dist/RadarChart.cjs +2 -0
  200. package/dist/RadarChart.cjs.map +1 -0
  201. package/dist/RadarChart.js +677 -1
  202. package/dist/RadarChart.js.map +1 -1
  203. package/dist/{ReferenceLine-BgDdQbDI.js → ReferenceLine-C1GpoG9d.js} +33 -34
  204. package/dist/ReferenceLine-C1GpoG9d.js.map +1 -0
  205. package/dist/ReferenceLine-CuFMk0cI.cjs +2 -0
  206. package/dist/ReferenceLine-CuFMk0cI.cjs.map +1 -0
  207. package/dist/RegressionLine-7_rKTHN_.cjs +2 -0
  208. package/dist/{RegressionLine-BfpCuD7B.cjs.map → RegressionLine-7_rKTHN_.cjs.map} +1 -1
  209. package/dist/{RegressionLine-cSljpHaE.js → RegressionLine-BFwDCTUU.js} +17 -18
  210. package/dist/{RegressionLine-cSljpHaE.js.map → RegressionLine-BFwDCTUU.js.map} +1 -1
  211. package/dist/SVGDownloadButton.cjs +2 -0
  212. package/dist/SVGDownloadButton.cjs.map +1 -0
  213. package/dist/SVGDownloadButton.js +28 -1
  214. package/dist/SVGDownloadButton.js.map +1 -1
  215. package/dist/SankeyChart.cjs +2 -0
  216. package/dist/SankeyChart.cjs.map +1 -0
  217. package/dist/SankeyChart.js +989 -1
  218. package/dist/SankeyChart.js.map +1 -1
  219. package/dist/ScatterPlot.cjs +2 -0
  220. package/dist/ScatterPlot.cjs.map +1 -0
  221. package/dist/ScatterPlot.js +828 -1
  222. package/dist/ScatterPlot.js.map +1 -1
  223. package/dist/ScrollStory.cjs +2 -0
  224. package/dist/ScrollStory.cjs.map +1 -0
  225. package/dist/ScrollStory.js +105 -1
  226. package/dist/ScrollStory.js.map +1 -1
  227. package/dist/SimpleLineChart.cjs +2 -0
  228. package/dist/SimpleLineChart.cjs.map +1 -0
  229. package/dist/SimpleLineChart.js +619 -1
  230. package/dist/SimpleLineChart.js.map +1 -1
  231. package/dist/SingleGraphDashboard.cjs +2 -0
  232. package/dist/SingleGraphDashboard.cjs.map +1 -0
  233. package/dist/SingleGraphDashboard.js +522 -1
  234. package/dist/SingleGraphDashboard.js.map +1 -1
  235. package/dist/SingleGraphDashboardFromConfig.cjs +2 -0
  236. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -0
  237. package/dist/SingleGraphDashboardFromConfig.js +34 -1
  238. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  239. package/dist/SlopeChart.cjs +2 -0
  240. package/dist/SlopeChart.cjs.map +1 -0
  241. package/dist/SlopeChart.js +582 -1
  242. package/dist/SlopeChart.js.map +1 -1
  243. package/dist/Source.cjs +2 -0
  244. package/dist/Source.cjs.map +1 -0
  245. package/dist/Source.js +40 -1
  246. package/dist/Source.js.map +1 -1
  247. package/dist/SparkLine.cjs +2 -0
  248. package/dist/SparkLine.cjs.map +1 -0
  249. package/dist/SparkLine.js +320 -1
  250. package/dist/SparkLine.js.map +1 -1
  251. package/dist/Spinner-C85UF28E.js +30 -0
  252. package/dist/Spinner-C85UF28E.js.map +1 -0
  253. package/dist/Spinner-DA6Z5E4n.cjs +2 -0
  254. package/dist/Spinner-DA6Z5E4n.cjs.map +1 -0
  255. package/dist/StatCardFromData.cjs +2 -0
  256. package/dist/StatCardFromData.cjs.map +1 -0
  257. package/dist/StatCardFromData.js +249 -1
  258. package/dist/StatCardFromData.js.map +1 -1
  259. package/dist/StripChart.cjs +2 -0
  260. package/dist/StripChart.cjs.map +1 -0
  261. package/dist/StripChart.js +988 -1
  262. package/dist/StripChart.js.map +1 -1
  263. package/dist/ThreeDGlobe.cjs +2 -0
  264. package/dist/ThreeDGlobe.cjs.map +1 -0
  265. package/dist/ThreeDGlobe.js +451 -1
  266. package/dist/ThreeDGlobe.js.map +1 -1
  267. package/dist/ThresholdColorLegendWithMouseOver.cjs +2 -0
  268. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -0
  269. package/dist/ThresholdColorLegendWithMouseOver.js +130 -1
  270. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  271. package/dist/{Tooltip-CzZ1wFyF.js → Tooltip-DyM5snqx.js} +15 -16
  272. package/dist/{Tooltip-CzZ1wFyF.js.map → Tooltip-DyM5snqx.js.map} +1 -1
  273. package/dist/Tooltip-n8z5bfav.cjs +2 -0
  274. package/dist/{Tooltip-BM18N_3l.cjs.map → Tooltip-n8z5bfav.cjs.map} +1 -1
  275. package/dist/TreeMapGraph.cjs +2 -0
  276. package/dist/TreeMapGraph.cjs.map +1 -0
  277. package/dist/TreeMapGraph.js +760 -1
  278. package/dist/TreeMapGraph.js.map +1 -1
  279. package/dist/Types.cjs +2 -0
  280. package/dist/Types.cjs.map +1 -0
  281. package/dist/Types.js +1 -1
  282. package/dist/Typography-Ctgfl1J5.js +140 -0
  283. package/dist/Typography-Ctgfl1J5.js.map +1 -0
  284. package/dist/Typography-k-kOjICQ.cjs +2 -0
  285. package/dist/Typography-k-kOjICQ.cjs.map +1 -0
  286. package/dist/UnitChart.cjs +2 -0
  287. package/dist/UnitChart.cjs.map +1 -0
  288. package/dist/UnitChart.js +216 -1
  289. package/dist/UnitChart.js.map +1 -1
  290. package/dist/XAxesLabels-CJMQbfVy.cjs +2 -0
  291. package/dist/{XAxesLabels-C9REbQQs.cjs.map → XAxesLabels-CJMQbfVy.cjs.map} +1 -1
  292. package/dist/{XAxesLabels-DVw7Lvuz.js → XAxesLabels-DQFo_z2R.js} +21 -22
  293. package/dist/{XAxesLabels-DVw7Lvuz.js.map → XAxesLabels-DQFo_z2R.js.map} +1 -1
  294. package/dist/{XTicksAndGridLines-CUefTINd.js → XTicksAndGridLines-Bn9u5gOM.js} +19 -20
  295. package/dist/{XTicksAndGridLines-CUefTINd.js.map → XTicksAndGridLines-Bn9u5gOM.js.map} +1 -1
  296. package/dist/XTicksAndGridLines-CCzXIV8d.cjs +2 -0
  297. package/dist/{XTicksAndGridLines-DuK35ROS.cjs.map → XTicksAndGridLines-CCzXIV8d.cjs.map} +1 -1
  298. package/dist/YAxesLabels-BXLTX7AI.cjs +2 -0
  299. package/dist/{YAxesLabels-DhBdLk3Z.cjs.map → YAxesLabels-BXLTX7AI.cjs.map} +1 -1
  300. package/dist/{YAxesLabels-CYVY053X.js → YAxesLabels-H5-002X5.js} +11 -12
  301. package/dist/{YAxesLabels-CYVY053X.js.map → YAxesLabels-H5-002X5.js.map} +1 -1
  302. package/dist/{YTicksAndGridLines-BJRXuBdC.js → YTicksAndGridLines-B6ah7CRf.js} +14 -15
  303. package/dist/{YTicksAndGridLines-BJRXuBdC.js.map → YTicksAndGridLines-B6ah7CRf.js.map} +1 -1
  304. package/dist/YTicksAndGridLines-DBDuz6vb.cjs +2 -0
  305. package/dist/{YTicksAndGridLines-CtLvzExe.cjs.map → YTicksAndGridLines-DBDuz6vb.cjs.map} +1 -1
  306. package/dist/{checkIfMultiple-CaefP4X2.js → checkIfMultiple-BB7PlCNh.js} +1013 -518
  307. package/dist/checkIfMultiple-BB7PlCNh.js.map +1 -0
  308. package/dist/checkIfMultiple-D5ysrI7G.cjs +12 -0
  309. package/dist/checkIfMultiple-D5ysrI7G.cjs.map +1 -0
  310. package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs +2 -0
  311. package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs.map +1 -0
  312. package/dist/checkIfNullOrUndefined-DmfiKkNw.js +7 -0
  313. package/dist/checkIfNullOrUndefined-DmfiKkNw.js.map +1 -0
  314. package/dist/customArea-BYNyxAkm.cjs +2 -0
  315. package/dist/{customArea-B47Ew5cT.cjs.map → customArea-BYNyxAkm.cjs.map} +1 -1
  316. package/dist/{customArea-I3MsoqIl.js → customArea-CaxScFmW.js} +29 -30
  317. package/dist/{customArea-I3MsoqIl.js.map → customArea-CaxScFmW.js.map} +1 -1
  318. package/dist/excelDownload-BOA-lskf.js +19 -0
  319. package/dist/excelDownload-BOA-lskf.js.map +1 -0
  320. package/dist/excelDownload-BQpsCa62.cjs +2 -0
  321. package/dist/excelDownload-BQpsCa62.cjs.map +1 -0
  322. package/dist/fetchAndParseData-Bcmr659B.js +1196 -0
  323. package/dist/fetchAndParseData-Bcmr659B.js.map +1 -0
  324. package/dist/fetchAndParseData-DmgQtB9n.cjs +16 -0
  325. package/dist/fetchAndParseData-DmgQtB9n.cjs.map +1 -0
  326. package/dist/fetchAndParseData.cjs +2 -0
  327. package/dist/fetchAndParseData.cjs.map +1 -0
  328. package/dist/fetchAndParseData.js +9 -15
  329. package/dist/fetchAndParseData.js.map +1 -1
  330. package/dist/getGraphList-DuColTJM.js +265 -0
  331. package/dist/getGraphList-DuColTJM.js.map +1 -0
  332. package/dist/getGraphList-gf02xgT2.cjs +2 -0
  333. package/dist/getGraphList-gf02xgT2.cjs.map +1 -0
  334. package/dist/getJenks-TWQvbuOz.cjs +2 -0
  335. package/dist/getJenks-TWQvbuOz.cjs.map +1 -0
  336. package/dist/getJenks-VhM3GIoC.js +23 -0
  337. package/dist/getJenks-VhM3GIoC.js.map +1 -0
  338. package/dist/getSchema.cjs +2 -0
  339. package/dist/getSchema.cjs.map +1 -0
  340. package/dist/getSchema.js +910 -1
  341. package/dist/getSchema.js.map +1 -1
  342. package/dist/getSliderMarks-C0jptXeP.js +1054 -0
  343. package/dist/getSliderMarks-C0jptXeP.js.map +1 -0
  344. package/dist/getSliderMarks-CtsEXiLV.cjs +6 -0
  345. package/dist/getSliderMarks-CtsEXiLV.cjs.map +1 -0
  346. package/dist/getTextColorBasedOnBgColor-B6Nk2WBf.js +28 -0
  347. package/dist/getTextColorBasedOnBgColor-B6Nk2WBf.js.map +1 -0
  348. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs +2 -0
  349. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -0
  350. package/dist/getUniqValue-BtUENB2H.js +20 -0
  351. package/dist/getUniqValue-BtUENB2H.js.map +1 -0
  352. package/dist/getUniqValue-CHqgSss5.cjs +2 -0
  353. package/dist/getUniqValue-CHqgSss5.cjs.map +1 -0
  354. package/dist/imageDownload-CgDcm1Sj.cjs +3 -0
  355. package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -0
  356. package/dist/imageDownload-Dcci2LEy.js +495 -0
  357. package/dist/imageDownload-Dcci2LEy.js.map +1 -0
  358. package/dist/index-BVnYktl4.js +435 -0
  359. package/dist/index-BVnYktl4.js.map +1 -0
  360. package/dist/index-BW_-wD2k.cjs +2 -0
  361. package/dist/index-BW_-wD2k.cjs.map +1 -0
  362. package/dist/{index-DXmF_0ez.js → index-BmCqpO1B.js} +74 -40
  363. package/dist/index-BmCqpO1B.js.map +1 -0
  364. package/dist/{index-Db-Yg_Ud.js → index-BxAUvrua.js} +19 -19
  365. package/dist/{index-Db-Yg_Ud.js.map → index-BxAUvrua.js.map} +1 -1
  366. package/dist/index-CHPV5EwG-BPSP-7Jg.js +3341 -0
  367. package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +1 -0
  368. package/dist/index-CHPV5EwG-DDoeWRVt.cjs +44 -0
  369. package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +1 -0
  370. package/dist/index-CylX-pWB.cjs +2 -0
  371. package/dist/{index-BYroABPm.cjs.map → index-CylX-pWB.cjs.map} +1 -1
  372. package/dist/index-D9h2WYDS.cjs +22 -0
  373. package/dist/index-D9h2WYDS.cjs.map +1 -0
  374. package/dist/index-DG3YrCr5-D3FrrXj8.js +459 -0
  375. package/dist/index-DG3YrCr5-D3FrrXj8.js.map +1 -0
  376. package/dist/index-DG3YrCr5-v7rayV3N.cjs +2 -0
  377. package/dist/index-DG3YrCr5-v7rayV3N.cjs.map +1 -0
  378. package/dist/index-DVOJ7vxH.cjs +10 -0
  379. package/dist/{index-a2C2Bqn2.cjs.map → index-DVOJ7vxH.cjs.map} +1 -1
  380. package/dist/index-D_n8aamX.cjs +2 -0
  381. package/dist/index-D_n8aamX.cjs.map +1 -0
  382. package/dist/index-OCoyy1wG.js +635 -0
  383. package/dist/index-OCoyy1wG.js.map +1 -0
  384. package/dist/{index-DzdwZ2OA.js → index-n_RI8T0n.js} +3 -3
  385. package/dist/{index-DzdwZ2OA.js.map → index-n_RI8T0n.js.map} +1 -1
  386. package/dist/index-tvAyXPPW-DBlMKnNB.js +47 -0
  387. package/dist/index-tvAyXPPW-DBlMKnNB.js.map +1 -0
  388. package/dist/index-tvAyXPPW-DPOG-C2i.cjs +2 -0
  389. package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +1 -0
  390. package/dist/index.cjs +2 -0
  391. package/dist/index.cjs.map +1 -0
  392. package/dist/index.d.ts +1 -5
  393. package/dist/index.js +180 -1
  394. package/dist/index.js.map +1 -1
  395. package/dist/numberFormattingFunction-02t-wJta.cjs +2 -0
  396. package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -0
  397. package/dist/numberFormattingFunction-14YCbkN2.js +13 -0
  398. package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -0
  399. package/dist/{use-in-view-CZPXmTZM.js → proxy-DJxJg1kD.js} +699 -732
  400. package/dist/proxy-DJxJg1kD.js.map +1 -0
  401. package/dist/{use-in-view-Dl1CsAIo.cjs → proxy-PQd2AItT.cjs} +2 -2
  402. package/dist/proxy-PQd2AItT.cjs.map +1 -0
  403. package/dist/removeOutliers-DR48e-18.js +57 -0
  404. package/dist/removeOutliers-DR48e-18.js.map +1 -0
  405. package/dist/removeOutliers-WELHHqiI.cjs +2 -0
  406. package/dist/removeOutliers-WELHHqiI.cjs.map +1 -0
  407. package/dist/{string2HTML-BX0oNw83.js → string2HTML-CWHGfz_d.js} +2 -2
  408. package/dist/{string2HTML-BX0oNw83.js.map → string2HTML-CWHGfz_d.js.map} +1 -1
  409. package/dist/{string2HTML-X4ZYX5jI.cjs → string2HTML-D2Avudmb.cjs} +2 -2
  410. package/dist/{string2HTML-X4ZYX5jI.cjs.map → string2HTML-D2Avudmb.cjs.map} +1 -1
  411. package/dist/svgDownload-C2-E3yf2.js +9 -0
  412. package/dist/svgDownload-C2-E3yf2.js.map +1 -0
  413. package/dist/svgDownload-D9zEGjTF.cjs +2 -0
  414. package/dist/svgDownload-D9zEGjTF.cjs.map +1 -0
  415. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs +4 -0
  416. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs.map +1 -0
  417. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js +145 -0
  418. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js.map +1 -0
  419. package/dist/transformData.cjs +2 -0
  420. package/dist/transformData.cjs.map +1 -0
  421. package/dist/transformData.d.ts +170 -0
  422. package/dist/transformData.js +10 -0
  423. package/dist/transformData.js.map +1 -0
  424. package/dist/transformDataForAggregation-BUGJnson.cjs +2 -0
  425. package/dist/transformDataForAggregation-BUGJnson.cjs.map +1 -0
  426. package/dist/transformDataForAggregation-DAQJWGNL.js +759 -0
  427. package/dist/transformDataForAggregation-DAQJWGNL.js.map +1 -0
  428. package/dist/transformDataForGraphFromFile-CrntpaMU.cjs +2 -0
  429. package/dist/transformDataForGraphFromFile-CrntpaMU.cjs.map +1 -0
  430. package/dist/transformDataForGraphFromFile-DdNiOWeC.js +24 -0
  431. package/dist/transformDataForGraphFromFile-DdNiOWeC.js.map +1 -0
  432. package/dist/use-in-view-BAHrBy6b.js +40 -0
  433. package/dist/use-in-view-BAHrBy6b.js.map +1 -0
  434. package/dist/use-in-view-BCmzDU2O.cjs +2 -0
  435. package/dist/use-in-view-BCmzDU2O.cjs.map +1 -0
  436. package/dist/utils.cjs +2 -0
  437. package/dist/utils.cjs.map +1 -0
  438. package/dist/utils.d.ts +217 -0
  439. package/dist/utils.js +27 -0
  440. package/dist/utils.js.map +1 -0
  441. package/dist/validateSchema.cjs +2 -0
  442. package/dist/validateSchema.cjs.map +1 -0
  443. package/dist/validateSchema.js +104 -1
  444. package/dist/validateSchema.js.map +1 -1
  445. package/dist/x-CnsEH4Ox-CGGXQl4M.cjs +27 -0
  446. package/dist/x-CnsEH4Ox-CGGXQl4M.cjs.map +1 -0
  447. package/dist/x-CnsEH4Ox-DDvAJndW.js +101 -0
  448. package/dist/x-CnsEH4Ox-DDvAJndW.js.map +1 -0
  449. package/package.json +15 -90
  450. package/dist/Axis-BlyBRMNw.cjs +0 -2
  451. package/dist/AxisTitle-BY8MI9jC.cjs +0 -2
  452. package/dist/AxisTitle-BeMxcw5I.js +0 -21
  453. package/dist/DropdownSelect-CuzV7gdj.cjs +0 -29
  454. package/dist/DropdownSelect-CuzV7gdj.cjs.map +0 -1
  455. package/dist/DropdownSelect-DmZsXrhY.js +0 -2698
  456. package/dist/DropdownSelect-DmZsXrhY.js.map +0 -1
  457. package/dist/EmptyState-BQguKAp5.cjs +0 -2
  458. package/dist/Modal-C9txyGOk.js +0 -723
  459. package/dist/Modal-C9txyGOk.js.map +0 -1
  460. package/dist/Modal-cQF2UQIa.cjs +0 -46
  461. package/dist/Modal-cQF2UQIa.cjs.map +0 -1
  462. package/dist/ReferenceLine-BgDdQbDI.js.map +0 -1
  463. package/dist/ReferenceLine-Bsb5jeE4.cjs +0 -2
  464. package/dist/ReferenceLine-Bsb5jeE4.cjs.map +0 -1
  465. package/dist/RegressionLine-BfpCuD7B.cjs +0 -2
  466. package/dist/Spinner-DN3s4S0H.js +0 -17
  467. package/dist/Spinner-DN3s4S0H.js.map +0 -1
  468. package/dist/Spinner-UmN-KPe9.cjs +0 -2
  469. package/dist/Spinner-UmN-KPe9.cjs.map +0 -1
  470. package/dist/Tooltip-BM18N_3l.cjs +0 -2
  471. package/dist/Typography-CDR-DAHH.cjs +0 -2
  472. package/dist/Typography-CDR-DAHH.cjs.map +0 -1
  473. package/dist/Typography-XJoSE-By.js +0 -58
  474. package/dist/Typography-XJoSE-By.js.map +0 -1
  475. package/dist/XAxesLabels-C9REbQQs.cjs +0 -2
  476. package/dist/XTicksAndGridLines-DuK35ROS.cjs +0 -2
  477. package/dist/YAxesLabels-DhBdLk3Z.cjs +0 -2
  478. package/dist/YTicksAndGridLines-CtLvzExe.cjs +0 -2
  479. package/dist/checkIfMultiple-CaefP4X2.js.map +0 -1
  480. package/dist/checkIfMultiple-D3h8to1T.cjs +0 -12
  481. package/dist/checkIfMultiple-D3h8to1T.cjs.map +0 -1
  482. package/dist/checkIfNullOrUndefined.d.ts +0 -15
  483. package/dist/checkIfNullOrUndefined.js +0 -2
  484. package/dist/checkIfNullOrUndefined.js.map +0 -1
  485. package/dist/customArea-B47Ew5cT.cjs +0 -2
  486. package/dist/excelDownload.d.ts +0 -31
  487. package/dist/excelDownload.js +0 -2
  488. package/dist/excelDownload.js.map +0 -1
  489. package/dist/generateCodes.d.ts +0 -25
  490. package/dist/generateCodes.js +0 -2
  491. package/dist/generateCodes.js.map +0 -1
  492. package/dist/getJenks.d.ts +0 -17
  493. package/dist/getJenks.js +0 -2
  494. package/dist/getJenks.js.map +0 -1
  495. package/dist/getPercentileValue.d.ts +0 -13
  496. package/dist/getPercentileValue.js +0 -2
  497. package/dist/getPercentileValue.js.map +0 -1
  498. package/dist/getQueryParamsFromLink.d.ts +0 -18
  499. package/dist/getQueryParamsFromLink.js +0 -2
  500. package/dist/getQueryParamsFromLink.js.map +0 -1
  501. package/dist/getSliderMarks-CWajGCGq.js +0 -719
  502. package/dist/getSliderMarks-CWajGCGq.js.map +0 -1
  503. package/dist/getSliderMarks-DDJ1CdhL.cjs +0 -6
  504. package/dist/getSliderMarks-DDJ1CdhL.cjs.map +0 -1
  505. package/dist/getTextColorBasedOnBgColor.d.ts +0 -13
  506. package/dist/getTextColorBasedOnBgColor.js +0 -2
  507. package/dist/getTextColorBasedOnBgColor.js.map +0 -1
  508. package/dist/getUniqValue.d.ts +0 -18
  509. package/dist/getUniqValue.js +0 -2
  510. package/dist/getUniqValue.js.map +0 -1
  511. package/dist/graphList.d.ts +0 -9
  512. package/dist/graphList.js +0 -2
  513. package/dist/graphList.js.map +0 -1
  514. package/dist/imageDownload.d.ts +0 -16
  515. package/dist/imageDownload.js +0 -3
  516. package/dist/imageDownload.js.map +0 -1
  517. package/dist/index-01r5X3Gr-9jE0ObrK.cjs +0 -2
  518. package/dist/index-01r5X3Gr-9jE0ObrK.cjs.map +0 -1
  519. package/dist/index-01r5X3Gr-kH7FxQ7P.js +0 -451
  520. package/dist/index-01r5X3Gr-kH7FxQ7P.js.map +0 -1
  521. package/dist/index-BGMGC-HN.cjs +0 -22
  522. package/dist/index-BGMGC-HN.cjs.map +0 -1
  523. package/dist/index-BHm2KTjD-2e-Fu8L-.js +0 -702
  524. package/dist/index-BHm2KTjD-2e-Fu8L-.js.map +0 -1
  525. package/dist/index-BHm2KTjD-D8FylaKc.cjs +0 -44
  526. package/dist/index-BHm2KTjD-D8FylaKc.cjs.map +0 -1
  527. package/dist/index-BIPNFFja.js +0 -506
  528. package/dist/index-BIPNFFja.js.map +0 -1
  529. package/dist/index-BYroABPm.cjs +0 -2
  530. package/dist/index-CEc_9zWy.cjs +0 -2
  531. package/dist/index-CEc_9zWy.cjs.map +0 -1
  532. package/dist/index-CbVeVrla.cjs +0 -2
  533. package/dist/index-CbVeVrla.cjs.map +0 -1
  534. package/dist/index-CqzhBPuO-CfQywbdq.js +0 -41
  535. package/dist/index-CqzhBPuO-CfQywbdq.js.map +0 -1
  536. package/dist/index-CqzhBPuO-raKZqS7l.cjs +0 -2
  537. package/dist/index-CqzhBPuO-raKZqS7l.cjs.map +0 -1
  538. package/dist/index-DSnvdkHZ.js +0 -495
  539. package/dist/index-DSnvdkHZ.js.map +0 -1
  540. package/dist/index-DXmF_0ez.js.map +0 -1
  541. package/dist/index-a2C2Bqn2.cjs +0 -10
  542. package/dist/numberFormattingFunction.d.ts +0 -22
  543. package/dist/numberFormattingFunction.js +0 -2
  544. package/dist/numberFormattingFunction.js.map +0 -1
  545. package/dist/removeOutliers.d.ts +0 -16
  546. package/dist/removeOutliers.js +0 -2
  547. package/dist/removeOutliers.js.map +0 -1
  548. package/dist/svgDownload.d.ts +0 -16
  549. package/dist/svgDownload.js +0 -2
  550. package/dist/svgDownload.js.map +0 -1
  551. package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js +0 -139
  552. package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js.map +0 -1
  553. package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs +0 -4
  554. package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs.map +0 -1
  555. package/dist/transformColumnsToArray.d.ts +0 -38
  556. package/dist/transformColumnsToArray.js +0 -2
  557. package/dist/transformColumnsToArray.js.map +0 -1
  558. package/dist/transformDataForAggregation.d.ts +0 -38
  559. package/dist/transformDataForAggregation.js +0 -2
  560. package/dist/transformDataForAggregation.js.map +0 -1
  561. package/dist/transformDataForGraph.d.ts +0 -47
  562. package/dist/transformDataForGraph.js +0 -2
  563. package/dist/transformDataForGraph.js.map +0 -1
  564. package/dist/transformDataForGraphFromFile.d.ts +0 -66
  565. package/dist/transformDataForGraphFromFile.js +0 -2
  566. package/dist/transformDataForGraphFromFile.js.map +0 -1
  567. package/dist/use-in-view-CZPXmTZM.js.map +0 -1
  568. package/dist/use-in-view-Dl1CsAIo.cjs.map +0 -1
  569. package/dist/x-Dft9NVe_-DcB7wtv5.js +0 -61
  570. package/dist/x-Dft9NVe_-DcB7wtv5.js.map +0 -1
  571. package/dist/x-Dft9NVe_-LeyJu02C.cjs +0 -27
  572. package/dist/x-Dft9NVe_-LeyJu02C.cjs.map +0 -1
@@ -1,21 +1,21 @@
1
- import { j as ge } from "./index-BHm2KTjD-2e-Fu8L-.js";
2
- import { createContext as pt, useRef as Ut, useLayoutEffect as ur, useEffect as qt, useContext as O, useId as cr, useCallback as Rs, useMemo as Zt, useInsertionEffect as hr, forwardRef as fr, Fragment as Ls, createElement as dr, Component as mr, useState as pr } from "react";
1
+ import { j as pe } from "./index-CHPV5EwG-BPSP-7Jg.js";
2
+ import { createContext as pt, useRef as Ut, useLayoutEffect as lr, useEffect as Oe, useContext as O, useId as ur, useCallback as Rs, useMemo as qt, useInsertionEffect as cr, forwardRef as hr, Fragment as Ls, createElement as fr, Component as dr } from "react";
3
3
  const ks = pt({});
4
- function gr(t) {
4
+ function mr(t) {
5
5
  const e = Ut(null);
6
6
  return e.current === null && (e.current = t()), e.current;
7
7
  }
8
- const Ie = typeof window < "u", yr = Ie ? ur : qt, je = /* @__PURE__ */ pt(null), Bs = pt({
8
+ const Ie = typeof window < "u", pr = Ie ? lr : Oe, je = /* @__PURE__ */ pt(null), Fs = pt({
9
9
  transformPagePoint: (t) => t,
10
10
  isStatic: !1,
11
11
  reducedMotion: "never"
12
12
  });
13
- function vr(t = !0) {
13
+ function gr(t = !0) {
14
14
  const e = O(je);
15
15
  if (e === null)
16
16
  return [!0, null];
17
- const { isPresent: n, onExitComplete: s, register: i } = e, o = cr();
18
- qt(() => {
17
+ const { isPresent: n, onExitComplete: s, register: i } = e, o = ur();
18
+ Oe(() => {
19
19
  if (t)
20
20
  return i(o);
21
21
  }, [t]);
@@ -42,7 +42,7 @@ const It = [
42
42
  ], vn = {
43
43
  value: null
44
44
  };
45
- function Tr(t, e) {
45
+ function yr(t, e) {
46
46
  let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = !1, o = !1;
47
47
  const r = /* @__PURE__ */ new WeakSet();
48
48
  let a = {
@@ -80,16 +80,16 @@ function Tr(t, e) {
80
80
  };
81
81
  return u;
82
82
  }
83
- const z = {}, xr = 40;
84
- function Fs(t, e) {
83
+ const z = {}, vr = 40;
84
+ function Bs(t, e) {
85
85
  let n = !1, s = !0;
86
86
  const i = {
87
87
  delta: 0,
88
88
  timestamp: 0,
89
89
  isProcessing: !1
90
- }, o = () => n = !0, r = It.reduce((p, b) => (p[b] = Tr(o, e ? b : void 0), p), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: d, postRender: m } = r, y = () => {
90
+ }, o = () => n = !0, r = It.reduce((p, b) => (p[b] = yr(o, e ? b : void 0), p), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: d, postRender: m } = r, y = () => {
91
91
  const p = z.useManualTiming ? i.timestamp : performance.now();
92
- n = !1, z.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(p - i.timestamp, xr), 1)), i.timestamp = p, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), h.process(i), f.process(i), d.process(i), m.process(i), i.isProcessing = !1, n && e && (s = !1, t(y));
92
+ n = !1, z.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(p - i.timestamp, vr), 1)), i.timestamp = p, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), h.process(i), f.process(i), d.process(i), m.process(i), i.isProcessing = !1, n && e && (s = !1, t(y));
93
93
  }, v = () => {
94
94
  n = !0, s = !0, i.isProcessing || t(y);
95
95
  };
@@ -101,7 +101,7 @@ function Fs(t, e) {
101
101
  r[It[b]].cancel(p);
102
102
  }, state: i, steps: r };
103
103
  }
104
- const K = /* @__NO_SIDE_EFFECTS__ */ (t) => t, { schedule: M, cancel: Z, state: E, steps: se } = /* @__PURE__ */ Fs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0), Os = pt({ strict: !1 }), Tn = {
104
+ const K = /* @__NO_SIDE_EFFECTS__ */ (t) => t, { schedule: D, cancel: Z, state: E, steps: ne } = /* @__PURE__ */ Bs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0), Os = pt({ strict: !1 }), Tn = {
105
105
  animation: [
106
106
  "animate",
107
107
  "variants",
@@ -125,14 +125,14 @@ for (const t in Tn)
125
125
  dt[t] = {
126
126
  isEnabled: (e) => Tn[t].some((n) => !!e[n])
127
127
  };
128
- function Pr(t) {
128
+ function Tr(t) {
129
129
  for (const e in t)
130
130
  dt[e] = {
131
131
  ...dt[e],
132
132
  ...t[e]
133
133
  };
134
134
  }
135
- const Sr = /* @__PURE__ */ new Set([
135
+ const xr = /* @__PURE__ */ new Set([
136
136
  "animate",
137
137
  "exit",
138
138
  "variants",
@@ -165,17 +165,17 @@ const Sr = /* @__PURE__ */ new Set([
165
165
  "viewport"
166
166
  ]);
167
167
  function Gt(t) {
168
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Sr.has(t);
168
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || xr.has(t);
169
169
  }
170
170
  let Is = (t) => !Gt(t);
171
- function br(t) {
171
+ function Pr(t) {
172
172
  t && (Is = (e) => e.startsWith("on") ? !Gt(e) : t(e));
173
173
  }
174
174
  try {
175
- br(require("@emotion/is-prop-valid").default);
175
+ Pr(require("@emotion/is-prop-valid").default);
176
176
  } catch {
177
177
  }
178
- function wr(t, e, n) {
178
+ function Sr(t, e, n) {
179
179
  const s = {};
180
180
  for (const i in t)
181
181
  i === "values" && typeof t.values == "object" || (Is(i) || n === !0 && Gt(i) || !e && !Gt(i) || // If trying to use native HTML drag events, forward drag listeners
@@ -186,7 +186,7 @@ const xn = /* @__PURE__ */ new Set();
186
186
  function Ne(t, e, n) {
187
187
  t || xn.has(e) || (console.warn(e), xn.add(e));
188
188
  }
189
- function Ar(t) {
189
+ function br(t) {
190
190
  if (typeof Proxy > "u")
191
191
  return t;
192
192
  const e = /* @__PURE__ */ new Map(), n = (...s) => (process.env.NODE_ENV !== "production" && Ne(!1, "motion() is deprecated. Use motion.create() instead."), t(...s));
@@ -199,8 +199,8 @@ function Ar(t) {
199
199
  get: (s, i) => i === "create" ? t : (e.has(i) || e.set(i, t(i)), e.get(i))
200
200
  });
201
201
  }
202
- const Jt = /* @__PURE__ */ pt({});
203
- function Qt(t) {
202
+ const Zt = /* @__PURE__ */ pt({});
203
+ function Jt(t) {
204
204
  return t !== null && typeof t == "object" && typeof t.start == "function";
205
205
  }
206
206
  function Vt(t) {
@@ -215,14 +215,14 @@ const Ue = [
215
215
  "whileDrag",
216
216
  "exit"
217
217
  ], Ke = ["initial", ...Ue];
218
- function te(t) {
219
- return Qt(t.animate) || Ke.some((e) => Vt(t[e]));
218
+ function Qt(t) {
219
+ return Jt(t.animate) || Ke.some((e) => Vt(t[e]));
220
220
  }
221
221
  function js(t) {
222
- return !!(te(t) || t.variants);
222
+ return !!(Qt(t) || t.variants);
223
223
  }
224
- function Vr(t, e) {
225
- if (te(t)) {
224
+ function wr(t, e) {
225
+ if (Qt(t)) {
226
226
  const { initial: n, animate: s } = t;
227
227
  return {
228
228
  initial: n === !1 || Vt(n) ? n : void 0,
@@ -231,18 +231,18 @@ function Vr(t, e) {
231
231
  }
232
232
  return t.inherit !== !1 ? e : {};
233
233
  }
234
- function Mr(t) {
235
- const { initial: e, animate: n } = Vr(t, O(Jt));
236
- return Zt(() => ({ initial: e, animate: n }), [Pn(e), Pn(n)]);
234
+ function Ar(t) {
235
+ const { initial: e, animate: n } = wr(t, O(Zt));
236
+ return qt(() => ({ initial: e, animate: n }), [Pn(e), Pn(n)]);
237
237
  }
238
238
  function Pn(t) {
239
239
  return Array.isArray(t) ? t.join(" ") : t;
240
240
  }
241
- const Dr = Symbol.for("motionComponentSymbol");
241
+ const Vr = Symbol.for("motionComponentSymbol");
242
242
  function at(t) {
243
243
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
244
244
  }
245
- function Cr(t, e, n) {
245
+ function Dr(t, e, n) {
246
246
  return Rs(
247
247
  (s) => {
248
248
  s && t.onMount && t.onMount(s), e && (s ? e.mount(s) : e.unmount()), n && (typeof n == "function" ? n(s) : at(n) && (n.current = s));
@@ -255,9 +255,9 @@ function Cr(t, e, n) {
255
255
  [e]
256
256
  );
257
257
  }
258
- const We = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Er = "framerAppearId", Ns = "data-" + We(Er), Us = pt({}), { schedule: $e } = /* @__PURE__ */ Fs(queueMicrotask, !1);
259
- function Rr(t, e, n, s, i) {
260
- const { visualElement: o } = O(Jt), r = O(Os), a = O(je), l = O(Bs).reducedMotion, c = Ut(null);
258
+ const $e = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Mr = "framerAppearId", Ns = "data-" + $e(Mr), Us = pt({}), { schedule: We } = /* @__PURE__ */ Bs(queueMicrotask, !1);
259
+ function Cr(t, e, n, s, i) {
260
+ const { visualElement: o } = O(Zt), r = O(Os), a = O(je), l = O(Fs).reducedMotion, c = Ut(null);
261
261
  s = s || r.renderer, !c.current && s && (c.current = s(t, {
262
262
  visualState: e,
263
263
  parent: o,
@@ -267,21 +267,21 @@ function Rr(t, e, n, s, i) {
267
267
  reducedMotionConfig: l
268
268
  }));
269
269
  const u = c.current, h = O(Us);
270
- u && !u.projection && i && (u.type === "html" || u.type === "svg") && Lr(c.current, n, i, h);
270
+ u && !u.projection && i && (u.type === "html" || u.type === "svg") && Er(c.current, n, i, h);
271
271
  const f = Ut(!1);
272
- hr(() => {
272
+ cr(() => {
273
273
  u && f.current && u.update(n, a);
274
274
  });
275
275
  const d = n[Ns], m = Ut(!!d && !window.MotionHandoffIsComplete?.(d) && window.MotionHasOptimisedAnimation?.(d));
276
- return yr(() => {
277
- u && (f.current = !0, window.MotionIsMounted = !0, u.updateFeatures(), $e.render(u.render), m.current && u.animationState && u.animationState.animateChanges());
278
- }), qt(() => {
276
+ return pr(() => {
277
+ u && (f.current = !0, window.MotionIsMounted = !0, u.updateFeatures(), We.render(u.render), m.current && u.animationState && u.animationState.animateChanges());
278
+ }), Oe(() => {
279
279
  u && (!m.current && u.animationState && u.animationState.animateChanges(), m.current && (queueMicrotask(() => {
280
280
  window.MotionHandoffMarkAsComplete?.(d);
281
281
  }), m.current = !1));
282
282
  }), u;
283
283
  }
284
- function Lr(t, e, n, s) {
284
+ function Er(t, e, n, s) {
285
285
  const { layoutId: i, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c, layoutCrossfade: u } = e;
286
286
  t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Ks(t.parent)), t.projection.setOptions({
287
287
  layoutId: i,
@@ -315,38 +315,38 @@ process.env.NODE_ENV !== "production" && (gt = (t, e) => {
315
315
  if (!t)
316
316
  throw new Error(e);
317
317
  });
318
- function kr({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: s, Component: i }) {
319
- t && Pr(t);
318
+ function Rr({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: s, Component: i }) {
319
+ t && Tr(t);
320
320
  function o(a, l) {
321
321
  let c;
322
322
  const u = {
323
- ...O(Bs),
323
+ ...O(Fs),
324
324
  ...a,
325
- layoutId: Br(a)
326
- }, { isStatic: h } = u, f = Mr(a), d = s(a, h);
325
+ layoutId: Lr(a)
326
+ }, { isStatic: h } = u, f = Ar(a), d = s(a, h);
327
327
  if (!h && Ie) {
328
- Fr(u, t);
329
- const m = Or(u);
330
- c = m.MeasureLayout, f.visualElement = Rr(i, d, u, e, m.ProjectionNode);
328
+ kr(u, t);
329
+ const m = Fr(u);
330
+ c = m.MeasureLayout, f.visualElement = Cr(i, d, u, e, m.ProjectionNode);
331
331
  }
332
- return ge.jsxs(Jt.Provider, { value: f, children: [c && f.visualElement ? ge.jsx(c, { visualElement: f.visualElement, ...u }) : null, n(i, a, Cr(d, f.visualElement, l), d, h, f.visualElement)] });
332
+ return pe.jsxs(Zt.Provider, { value: f, children: [c && f.visualElement ? pe.jsx(c, { visualElement: f.visualElement, ...u }) : null, n(i, a, Dr(d, f.visualElement, l), d, h, f.visualElement)] });
333
333
  }
334
334
  o.displayName = `motion.${typeof i == "string" ? i : `create(${i.displayName ?? i.name ?? ""})`}`;
335
- const r = fr(o);
336
- return r[Dr] = i, r;
335
+ const r = hr(o);
336
+ return r[Vr] = i, r;
337
337
  }
338
- function Br({ layoutId: t }) {
338
+ function Lr({ layoutId: t }) {
339
339
  const e = O(ks).id;
340
340
  return e && t !== void 0 ? e + "-" + t : t;
341
341
  }
342
- function Fr(t, e) {
342
+ function kr(t, e) {
343
343
  const n = O(Os).strict;
344
344
  if (process.env.NODE_ENV !== "production" && e && n) {
345
345
  const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
346
346
  t.ignoreStrict ? gt(!1, s) : Y(!1, s);
347
347
  }
348
348
  }
349
- function Or(t) {
349
+ function Fr(t) {
350
350
  const { drag: e, layout: n } = dt;
351
351
  if (!e && !n)
352
352
  return {};
@@ -356,10 +356,10 @@ function Or(t) {
356
356
  ProjectionNode: s.ProjectionNode
357
357
  };
358
358
  }
359
- const Ws = (t) => (e) => typeof e == "string" && e.startsWith(t), _e = /* @__PURE__ */ Ws("--"), Ir = /* @__PURE__ */ Ws("var(--"), Ge = (t) => Ir(t) ? jr.test(t.split("/*")[0].trim()) : !1, jr = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Mt = {};
360
- function Nr(t) {
359
+ const $s = (t) => (e) => typeof e == "string" && e.startsWith(t), _e = /* @__PURE__ */ $s("--"), Br = /* @__PURE__ */ $s("var(--"), Ge = (t) => Br(t) ? Or.test(t.split("/*")[0].trim()) : !1, Or = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Dt = {};
360
+ function Ir(t) {
361
361
  for (const e in t)
362
- Mt[e] = t[e], _e(e) && (Mt[e].isCSSVariable = !0);
362
+ Dt[e] = t[e], _e(e) && (Dt[e].isCSSVariable = !0);
363
363
  }
364
364
  const yt = [
365
365
  "transformPerspective",
@@ -380,14 +380,14 @@ const yt = [
380
380
  "skewX",
381
381
  "skewY"
382
382
  ], vt = new Set(yt);
383
- function $s(t, { layout: e, layoutId: n }) {
384
- return vt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Mt[t] || t === "opacity");
383
+ function Ws(t, { layout: e, layoutId: n }) {
384
+ return vt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Dt[t] || t === "opacity");
385
385
  }
386
386
  const _s = (t, e) => e && typeof t == "number" ? e.transform(t) : t, X = (t, e, n) => n > e ? e : n < t ? t : n, Tt = {
387
387
  test: (t) => typeof t == "number",
388
388
  parse: parseFloat,
389
389
  transform: (t) => t
390
- }, Dt = {
390
+ }, Mt = {
391
391
  ...Tt,
392
392
  transform: (t) => X(0, 1, t)
393
393
  }, jt = {
@@ -400,11 +400,11 @@ const _s = (t, e) => e && typeof t == "number" ? e.transform(t) : t, X = (t, e,
400
400
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
401
401
  parse: parseFloat,
402
402
  transform: (e) => `${e}${t}`
403
- }), q = /* @__PURE__ */ kt("deg"), _ = /* @__PURE__ */ kt("%"), T = /* @__PURE__ */ kt("px"), Ur = /* @__PURE__ */ kt("vh"), Kr = /* @__PURE__ */ kt("vw"), bn = {
403
+ }), q = /* @__PURE__ */ kt("deg"), _ = /* @__PURE__ */ kt("%"), T = /* @__PURE__ */ kt("px"), jr = /* @__PURE__ */ kt("vh"), Nr = /* @__PURE__ */ kt("vw"), bn = {
404
404
  ..._,
405
405
  parse: (t) => _.parse(t) / 100,
406
406
  transform: (t) => _.transform(t * 100)
407
- }, Wr = {
407
+ }, Ur = {
408
408
  rotate: q,
409
409
  rotateX: q,
410
410
  rotateY: q,
@@ -425,7 +425,7 @@ const _s = (t, e) => e && typeof t == "number" ? e.transform(t) : t, X = (t, e,
425
425
  z: T,
426
426
  perspective: T,
427
427
  transformPerspective: T,
428
- opacity: Dt,
428
+ opacity: Mt,
429
429
  originX: bn,
430
430
  originY: bn,
431
431
  originZ: T
@@ -465,21 +465,21 @@ const _s = (t, e) => e && typeof t == "number" ? e.transform(t) : t, X = (t, e,
465
465
  // Misc
466
466
  backgroundPositionX: T,
467
467
  backgroundPositionY: T,
468
- ...Wr,
468
+ ...Ur,
469
469
  zIndex: Sn,
470
470
  // SVG
471
- fillOpacity: Dt,
472
- strokeOpacity: Dt,
471
+ fillOpacity: Mt,
472
+ strokeOpacity: Mt,
473
473
  numOctaves: Sn
474
- }, $r = {
474
+ }, Kr = {
475
475
  x: "translateX",
476
476
  y: "translateY",
477
477
  z: "translateZ",
478
478
  transformPerspective: "perspective"
479
- }, _r = yt.length;
480
- function Gr(t, e, n) {
479
+ }, $r = yt.length;
480
+ function Wr(t, e, n) {
481
481
  let s = "", i = !0;
482
- for (let o = 0; o < _r; o++) {
482
+ for (let o = 0; o < $r; o++) {
483
483
  const r = yt[o], a = t[r];
484
484
  if (a === void 0)
485
485
  continue;
@@ -488,7 +488,7 @@ function Gr(t, e, n) {
488
488
  const c = _s(a, He[r]);
489
489
  if (!l) {
490
490
  i = !1;
491
- const u = $r[r] || r;
491
+ const u = Kr[r] || r;
492
492
  s += `${u}(${c}) `;
493
493
  }
494
494
  n && (e[r] = c);
@@ -512,7 +512,7 @@ function ze(t, e, n) {
512
512
  l.startsWith("origin") ? (a = !0, o[l] = u) : s[l] = u;
513
513
  }
514
514
  }
515
- if (e.transform || (r || n ? s.transform = Gr(e, t.transform, n) : s.transform && (s.transform = "none")), a) {
515
+ if (e.transform || (r || n ? s.transform = Wr(e, t.transform, n) : s.transform && (s.transform = "none")), a) {
516
516
  const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
517
517
  s.transformOrigin = `${l} ${c} ${u}`;
518
518
  }
@@ -525,32 +525,32 @@ const Ye = () => ({
525
525
  }), L = (t) => !!(t && t.getVelocity);
526
526
  function Gs(t, e, n) {
527
527
  for (const s in e)
528
- !L(e[s]) && !$s(s, n) && (t[s] = e[s]);
528
+ !L(e[s]) && !Ws(s, n) && (t[s] = e[s]);
529
529
  }
530
- function Hr({ transformTemplate: t }, e) {
531
- return Zt(() => {
530
+ function _r({ transformTemplate: t }, e) {
531
+ return qt(() => {
532
532
  const n = Ye();
533
533
  return ze(n, e, t), Object.assign({}, n.vars, n.style);
534
534
  }, [e]);
535
535
  }
536
- function zr(t, e) {
536
+ function Gr(t, e) {
537
537
  const n = t.style || {}, s = {};
538
- return Gs(s, n, t), Object.assign(s, Hr(t, e)), s;
538
+ return Gs(s, n, t), Object.assign(s, _r(t, e)), s;
539
539
  }
540
- function Yr(t, e) {
541
- const n = {}, s = zr(t, e);
540
+ function Hr(t, e) {
541
+ const n = {}, s = Gr(t, e);
542
542
  return t.drag && t.dragListener !== !1 && (n.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = s, n;
543
543
  }
544
- const Xr = {
544
+ const zr = {
545
545
  offset: "stroke-dashoffset",
546
546
  array: "stroke-dasharray"
547
- }, qr = {
547
+ }, Yr = {
548
548
  offset: "strokeDashoffset",
549
549
  array: "strokeDasharray"
550
550
  };
551
- function Zr(t, e, n = 1, s = 0, i = !0) {
551
+ function Xr(t, e, n = 1, s = 0, i = !0) {
552
552
  t.pathLength = 1;
553
- const o = i ? Xr : qr;
553
+ const o = i ? zr : Yr;
554
554
  t[o.offset] = T.transform(-s);
555
555
  const r = T.transform(e), a = T.transform(n);
556
556
  t[o.array] = `${r} ${a}`;
@@ -571,14 +571,14 @@ function Hs(t, {
571
571
  }
572
572
  t.attrs = t.style, t.style = {};
573
573
  const { attrs: h, style: f } = t;
574
- h.transform && (f.transform = h.transform, delete h.transform), (f.transform || h.transformOrigin) && (f.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete h.transformBox), e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), s !== void 0 && (h.scale = s), i !== void 0 && Zr(h, i, o, r, !1);
574
+ h.transform && (f.transform = h.transform, delete h.transform), (f.transform || h.transformOrigin) && (f.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete h.transformBox), e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), s !== void 0 && (h.scale = s), i !== void 0 && Xr(h, i, o, r, !1);
575
575
  }
576
576
  const zs = () => ({
577
577
  ...Ye(),
578
578
  attrs: {}
579
579
  }), Ys = (t) => typeof t == "string" && t.toLowerCase() === "svg";
580
- function Jr(t, e, n, s) {
581
- const i = Zt(() => {
580
+ function qr(t, e, n, s) {
581
+ const i = qt(() => {
582
582
  const o = zs();
583
583
  return Hs(o, e, Ys(s), t.transformTemplate, t.style), {
584
584
  ...o.attrs,
@@ -591,7 +591,7 @@ function Jr(t, e, n, s) {
591
591
  }
592
592
  return i;
593
593
  }
594
- const Qr = [
594
+ const Zr = [
595
595
  "animate",
596
596
  "circle",
597
597
  "defs",
@@ -631,17 +631,17 @@ function Xe(t) {
631
631
  /**
632
632
  * If it's in our list of lowercase SVG tags, it's an SVG component
633
633
  */
634
- !!(Qr.indexOf(t) > -1 || /**
634
+ !!(Zr.indexOf(t) > -1 || /**
635
635
  * If it contains a capital letter, it's an SVG component
636
636
  */
637
637
  /[A-Z]/u.test(t))
638
638
  )
639
639
  );
640
640
  }
641
- function to(t = !1) {
641
+ function Jr(t = !1) {
642
642
  return (n, s, i, { latestValues: o }, r) => {
643
- const l = (Xe(n) ? Jr : Yr)(s, o, r, n), c = wr(s, typeof n == "string", t), u = n !== Ls ? { ...c, ...l, ref: i } : {}, { children: h } = s, f = Zt(() => L(h) ? h.get() : h, [h]);
644
- return dr(n, {
643
+ const l = (Xe(n) ? qr : Hr)(s, o, r, n), c = Sr(s, typeof n == "string", t), u = n !== Ls ? { ...c, ...l, ref: i } : {}, { children: h } = s, f = qt(() => L(h) ? h.get() : h, [h]);
644
+ return fr(n, {
645
645
  ...u,
646
646
  children: f
647
647
  });
@@ -667,27 +667,27 @@ function qe(t, e, n, s) {
667
667
  function Kt(t) {
668
668
  return L(t) ? t.get() : t;
669
669
  }
670
- function eo({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
670
+ function Qr({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
671
671
  return {
672
- latestValues: no(n, s, i, t),
672
+ latestValues: to(n, s, i, t),
673
673
  renderState: e()
674
674
  };
675
675
  }
676
676
  const Xs = (t) => (e, n) => {
677
- const s = O(Jt), i = O(je), o = () => eo(t, e, s, i);
678
- return n ? o() : gr(o);
677
+ const s = O(Zt), i = O(je), o = () => Qr(t, e, s, i);
678
+ return n ? o() : mr(o);
679
679
  };
680
- function no(t, e, n, s) {
680
+ function to(t, e, n, s) {
681
681
  const i = {}, o = s(t, {});
682
682
  for (const f in o)
683
683
  i[f] = Kt(o[f]);
684
684
  let { initial: r, animate: a } = t;
685
- const l = te(t), c = js(t);
685
+ const l = Qt(t), c = js(t);
686
686
  e && c && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
687
687
  let u = n ? n.initial === !1 : !1;
688
688
  u = u || r === !1;
689
689
  const h = u ? a : r;
690
- if (h && typeof h != "boolean" && !Qt(h)) {
690
+ if (h && typeof h != "boolean" && !Jt(h)) {
691
691
  const f = Array.isArray(h) ? h : [h];
692
692
  for (let d = 0; d < f.length; d++) {
693
693
  const m = qe(t, f[d]);
@@ -711,10 +711,10 @@ function no(t, e, n, s) {
711
711
  function Ze(t, e, n) {
712
712
  const { style: s } = t, i = {};
713
713
  for (const o in s)
714
- (L(s[o]) || e.style && L(e.style[o]) || $s(o, t) || n?.getValue(o)?.liveStyle !== void 0) && (i[o] = s[o]);
714
+ (L(s[o]) || e.style && L(e.style[o]) || Ws(o, t) || n?.getValue(o)?.liveStyle !== void 0) && (i[o] = s[o]);
715
715
  return i;
716
716
  }
717
- const so = {
717
+ const eo = {
718
718
  useVisualState: Xs({
719
719
  scrapeMotionValuesFromProps: Ze,
720
720
  createRenderState: Ye
@@ -729,37 +729,37 @@ function qs(t, e, n) {
729
729
  }
730
730
  return s;
731
731
  }
732
- const io = {
732
+ const no = {
733
733
  useVisualState: Xs({
734
734
  scrapeMotionValuesFromProps: qs,
735
735
  createRenderState: zs
736
736
  })
737
737
  };
738
- function ro(t, e) {
738
+ function so(t, e) {
739
739
  return function(s, { forwardMotionProps: i } = { forwardMotionProps: !1 }) {
740
740
  const r = {
741
- ...Xe(s) ? io : so,
741
+ ...Xe(s) ? no : eo,
742
742
  preloadedFeatures: t,
743
- useRender: to(i),
743
+ useRender: Jr(i),
744
744
  createVisualElement: e,
745
745
  Component: s
746
746
  };
747
- return kr(r);
747
+ return Rr(r);
748
748
  };
749
749
  }
750
750
  function Ct(t, e, n) {
751
751
  const s = t.getProps();
752
752
  return qe(s, e, n !== void 0 ? n : s.custom, t);
753
753
  }
754
- const ye = (t) => Array.isArray(t);
755
- let Wt;
756
- function oo() {
757
- Wt = void 0;
754
+ const ge = (t) => Array.isArray(t);
755
+ let $t;
756
+ function io() {
757
+ $t = void 0;
758
758
  }
759
759
  const I = {
760
- now: () => (Wt === void 0 && I.set(E.isProcessing || z.useManualTiming ? E.timestamp : performance.now()), Wt),
760
+ now: () => ($t === void 0 && I.set(E.isProcessing || z.useManualTiming ? E.timestamp : performance.now()), $t),
761
761
  set: (t) => {
762
- Wt = t, queueMicrotask(oo);
762
+ $t = t, queueMicrotask(io);
763
763
  }
764
764
  };
765
765
  function Je(t, e) {
@@ -797,8 +797,8 @@ class tn {
797
797
  function Zs(t, e) {
798
798
  return e ? t * (1e3 / e) : 0;
799
799
  }
800
- const An = 30, ao = (t) => !isNaN(parseFloat(t));
801
- class lo {
800
+ const An = 30, ro = (t) => !isNaN(parseFloat(t));
801
+ class oo {
802
802
  /**
803
803
  * @param init - The initiating value
804
804
  * @param config - Optional configuration options
@@ -815,7 +815,7 @@ class lo {
815
815
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
816
816
  }
817
817
  setCurrent(e) {
818
- this.current = e, this.updatedAt = I.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = ao(this.current));
818
+ this.current = e, this.updatedAt = I.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = ro(this.current));
819
819
  }
820
820
  setPrevFrameValue(e = this.current) {
821
821
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -867,7 +867,7 @@ class lo {
867
867
  this.events[e] || (this.events[e] = new tn());
868
868
  const s = this.events[e].add(n);
869
869
  return e === "change" ? () => {
870
- s(), M.read(() => {
870
+ s(), D.read(() => {
871
871
  this.events.change.getSize() || this.stop();
872
872
  });
873
873
  } : s;
@@ -999,29 +999,29 @@ class lo {
999
999
  }
1000
1000
  }
1001
1001
  function mt(t, e) {
1002
- return new lo(t, e);
1002
+ return new oo(t, e);
1003
1003
  }
1004
- function uo(t, e, n) {
1004
+ function ao(t, e, n) {
1005
1005
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, mt(n));
1006
1006
  }
1007
- function co(t) {
1008
- return ye(t) ? t[t.length - 1] || 0 : t;
1007
+ function lo(t) {
1008
+ return ge(t) ? t[t.length - 1] || 0 : t;
1009
1009
  }
1010
- function ho(t, e) {
1010
+ function uo(t, e) {
1011
1011
  const n = Ct(t, e);
1012
1012
  let { transitionEnd: s = {}, transition: i = {}, ...o } = n || {};
1013
1013
  o = { ...o, ...s };
1014
1014
  for (const r in o) {
1015
- const a = co(o[r]);
1016
- uo(t, r, a);
1015
+ const a = lo(o[r]);
1016
+ ao(t, r, a);
1017
1017
  }
1018
1018
  }
1019
- function fo(t) {
1019
+ function co(t) {
1020
1020
  return !!(L(t) && t.add);
1021
1021
  }
1022
- function ve(t, e) {
1022
+ function ye(t, e) {
1023
1023
  const n = t.getValue("willChange");
1024
- if (fo(n))
1024
+ if (co(n))
1025
1025
  return n.add(e);
1026
1026
  if (!n && z.WillChange) {
1027
1027
  const s = new z.WillChange("auto");
@@ -1031,40 +1031,40 @@ function ve(t, e) {
1031
1031
  function Js(t) {
1032
1032
  return t.props[Ns];
1033
1033
  }
1034
- const mo = (t) => t !== null;
1035
- function po(t, { repeat: e, repeatType: n = "loop" }, s) {
1036
- const i = t.filter(mo), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
1034
+ const ho = (t) => t !== null;
1035
+ function fo(t, { repeat: e, repeatType: n = "loop" }, s) {
1036
+ const i = t.filter(ho), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
1037
1037
  return i[o];
1038
1038
  }
1039
- const go = {
1039
+ const mo = {
1040
1040
  type: "spring",
1041
1041
  stiffness: 500,
1042
1042
  damping: 25,
1043
1043
  restSpeed: 10
1044
- }, yo = (t) => ({
1044
+ }, po = (t) => ({
1045
1045
  type: "spring",
1046
1046
  stiffness: 550,
1047
1047
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
1048
1048
  restSpeed: 10
1049
- }), vo = {
1049
+ }), go = {
1050
1050
  type: "keyframes",
1051
1051
  duration: 0.8
1052
- }, To = {
1052
+ }, yo = {
1053
1053
  type: "keyframes",
1054
1054
  ease: [0.25, 0.1, 0.35, 1],
1055
1055
  duration: 0.3
1056
- }, xo = (t, { keyframes: e }) => e.length > 2 ? vo : vt.has(t) ? t.startsWith("scale") ? yo(e[1]) : go : To;
1057
- function Po({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1056
+ }, vo = (t, { keyframes: e }) => e.length > 2 ? go : vt.has(t) ? t.startsWith("scale") ? po(e[1]) : mo : yo;
1057
+ function To({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1058
1058
  return !!Object.keys(u).length;
1059
1059
  }
1060
1060
  function en(t, e) {
1061
1061
  return t?.[e] ?? t?.default ?? t;
1062
1062
  }
1063
- const $ = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, G = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, St = (t) => Math.round(t * 1e5) / 1e5, nn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
1064
- function So(t) {
1063
+ const W = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, G = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, St = (t) => Math.round(t * 1e5) / 1e5, nn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
1064
+ function xo(t) {
1065
1065
  return t == null;
1066
1066
  }
1067
- const bo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, sn = (t, e) => (n) => !!(typeof n == "string" && bo.test(n) && n.startsWith(t) || e && !So(n) && Object.prototype.hasOwnProperty.call(n, e)), Qs = (t, e, n) => (s) => {
1067
+ const Po = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, sn = (t, e) => (n) => !!(typeof n == "string" && Po.test(n) && n.startsWith(t) || e && !xo(n) && Object.prototype.hasOwnProperty.call(n, e)), Qs = (t, e, n) => (s) => {
1068
1068
  if (typeof s != "string")
1069
1069
  return s;
1070
1070
  const [i, o, r, a] = s.match(nn);
@@ -1074,15 +1074,15 @@ const bo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
1074
1074
  [n]: parseFloat(r),
1075
1075
  alpha: a !== void 0 ? parseFloat(a) : 1
1076
1076
  };
1077
- }, wo = (t) => X(0, 255, t), ie = {
1077
+ }, So = (t) => X(0, 255, t), se = {
1078
1078
  ...Tt,
1079
- transform: (t) => Math.round(wo(t))
1079
+ transform: (t) => Math.round(So(t))
1080
1080
  }, nt = {
1081
1081
  test: /* @__PURE__ */ sn("rgb", "red"),
1082
1082
  parse: /* @__PURE__ */ Qs("red", "green", "blue"),
1083
- transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + ie.transform(t) + ", " + ie.transform(e) + ", " + ie.transform(n) + ", " + St(Dt.transform(s)) + ")"
1083
+ transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + se.transform(t) + ", " + se.transform(e) + ", " + se.transform(n) + ", " + St(Mt.transform(s)) + ")"
1084
1084
  };
1085
- function Ao(t) {
1085
+ function bo(t) {
1086
1086
  let e = "", n = "", s = "", i = "";
1087
1087
  return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), s = t.substring(5, 7), i = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), s = t.substring(3, 4), i = t.substring(4, 5), e += e, n += n, s += s, i += i), {
1088
1088
  red: parseInt(e, 16),
@@ -1091,23 +1091,23 @@ function Ao(t) {
1091
1091
  alpha: i ? parseInt(i, 16) / 255 : 1
1092
1092
  };
1093
1093
  }
1094
- const Te = {
1094
+ const ve = {
1095
1095
  test: /* @__PURE__ */ sn("#"),
1096
- parse: Ao,
1096
+ parse: bo,
1097
1097
  transform: nt.transform
1098
1098
  }, lt = {
1099
1099
  test: /* @__PURE__ */ sn("hsl", "hue"),
1100
1100
  parse: /* @__PURE__ */ Qs("hue", "saturation", "lightness"),
1101
- transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + _.transform(St(e)) + ", " + _.transform(St(n)) + ", " + St(Dt.transform(s)) + ")"
1101
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + _.transform(St(e)) + ", " + _.transform(St(n)) + ", " + St(Mt.transform(s)) + ")"
1102
1102
  }, R = {
1103
- test: (t) => nt.test(t) || Te.test(t) || lt.test(t),
1104
- parse: (t) => nt.test(t) ? nt.parse(t) : lt.test(t) ? lt.parse(t) : Te.parse(t),
1103
+ test: (t) => nt.test(t) || ve.test(t) || lt.test(t),
1104
+ parse: (t) => nt.test(t) ? nt.parse(t) : lt.test(t) ? lt.parse(t) : ve.parse(t),
1105
1105
  transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? nt.transform(t) : lt.transform(t)
1106
- }, Vo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
1107
- function Mo(t) {
1108
- return isNaN(t) && typeof t == "string" && (t.match(nn)?.length || 0) + (t.match(Vo)?.length || 0) > 0;
1106
+ }, wo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
1107
+ function Ao(t) {
1108
+ return isNaN(t) && typeof t == "string" && (t.match(nn)?.length || 0) + (t.match(wo)?.length || 0) > 0;
1109
1109
  }
1110
- const ti = "number", ei = "color", Do = "var", Co = "var(", Vn = "${}", Eo = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
1110
+ const ti = "number", ei = "color", Vo = "var", Do = "var(", Vn = "${}", Mo = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
1111
1111
  function Et(t) {
1112
1112
  const e = t.toString(), n = [], s = {
1113
1113
  color: [],
@@ -1115,7 +1115,7 @@ function Et(t) {
1115
1115
  var: []
1116
1116
  }, i = [];
1117
1117
  let o = 0;
1118
- const a = e.replace(Eo, (l) => (R.test(l) ? (s.color.push(o), i.push(ei), n.push(R.parse(l))) : l.startsWith(Co) ? (s.var.push(o), i.push(Do), n.push(l)) : (s.number.push(o), i.push(ti), n.push(parseFloat(l))), ++o, Vn)).split(Vn);
1118
+ const a = e.replace(Mo, (l) => (R.test(l) ? (s.color.push(o), i.push(ei), n.push(R.parse(l))) : l.startsWith(Do) ? (s.var.push(o), i.push(Vo), n.push(l)) : (s.number.push(o), i.push(ti), n.push(parseFloat(l))), ++o, Vn)).split(Vn);
1119
1119
  return { values: n, split: a, indexes: s, types: i };
1120
1120
  }
1121
1121
  function ni(t) {
@@ -1133,28 +1133,28 @@ function si(t) {
1133
1133
  return o;
1134
1134
  };
1135
1135
  }
1136
- const Ro = (t) => typeof t == "number" ? 0 : t;
1137
- function Lo(t) {
1136
+ const Co = (t) => typeof t == "number" ? 0 : t;
1137
+ function Eo(t) {
1138
1138
  const e = ni(t);
1139
- return si(t)(e.map(Ro));
1139
+ return si(t)(e.map(Co));
1140
1140
  }
1141
1141
  const J = {
1142
- test: Mo,
1142
+ test: Ao,
1143
1143
  parse: ni,
1144
1144
  createTransformer: si,
1145
- getAnimatableNone: Lo
1145
+ getAnimatableNone: Eo
1146
1146
  };
1147
- function re(t, e, n) {
1147
+ function ie(t, e, n) {
1148
1148
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
1149
1149
  }
1150
- function ko({ hue: t, saturation: e, lightness: n, alpha: s }) {
1150
+ function Ro({ hue: t, saturation: e, lightness: n, alpha: s }) {
1151
1151
  t /= 360, e /= 100, n /= 100;
1152
1152
  let i = 0, o = 0, r = 0;
1153
1153
  if (!e)
1154
1154
  i = o = r = n;
1155
1155
  else {
1156
1156
  const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
1157
- i = re(l, a, t + 1 / 3), o = re(l, a, t), r = re(l, a, t - 1 / 3);
1157
+ i = ie(l, a, t + 1 / 3), o = ie(l, a, t), r = ie(l, a, t - 1 / 3);
1158
1158
  }
1159
1159
  return {
1160
1160
  red: Math.round(i * 255),
@@ -1166,33 +1166,33 @@ function ko({ hue: t, saturation: e, lightness: n, alpha: s }) {
1166
1166
  function Ht(t, e) {
1167
1167
  return (n) => n > 0 ? e : t;
1168
1168
  }
1169
- const V = (t, e, n) => t + (e - t) * n, oe = (t, e, n) => {
1169
+ const V = (t, e, n) => t + (e - t) * n, re = (t, e, n) => {
1170
1170
  const s = t * t, i = n * (e * e - s) + s;
1171
1171
  return i < 0 ? 0 : Math.sqrt(i);
1172
- }, Bo = [Te, nt, lt], Fo = (t) => Bo.find((e) => e.test(t));
1173
- function Mn(t) {
1174
- const e = Fo(t);
1172
+ }, Lo = [ve, nt, lt], ko = (t) => Lo.find((e) => e.test(t));
1173
+ function Dn(t) {
1174
+ const e = ko(t);
1175
1175
  if (gt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
1176
1176
  return !1;
1177
1177
  let n = e.parse(t);
1178
- return e === lt && (n = ko(n)), n;
1178
+ return e === lt && (n = Ro(n)), n;
1179
1179
  }
1180
- const Dn = (t, e) => {
1181
- const n = Mn(t), s = Mn(e);
1180
+ const Mn = (t, e) => {
1181
+ const n = Dn(t), s = Dn(e);
1182
1182
  if (!n || !s)
1183
1183
  return Ht(t, e);
1184
1184
  const i = { ...n };
1185
- return (o) => (i.red = oe(n.red, s.red, o), i.green = oe(n.green, s.green, o), i.blue = oe(n.blue, s.blue, o), i.alpha = V(n.alpha, s.alpha, o), nt.transform(i));
1186
- }, xe = /* @__PURE__ */ new Set(["none", "hidden"]);
1187
- function Oo(t, e) {
1188
- return xe.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
1185
+ return (o) => (i.red = re(n.red, s.red, o), i.green = re(n.green, s.green, o), i.blue = re(n.blue, s.blue, o), i.alpha = V(n.alpha, s.alpha, o), nt.transform(i));
1186
+ }, Te = /* @__PURE__ */ new Set(["none", "hidden"]);
1187
+ function Fo(t, e) {
1188
+ return Te.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
1189
1189
  }
1190
- const Io = (t, e) => (n) => e(t(n)), Bt = (...t) => t.reduce(Io);
1191
- function jo(t, e) {
1190
+ const Bo = (t, e) => (n) => e(t(n)), Ft = (...t) => t.reduce(Bo);
1191
+ function Oo(t, e) {
1192
1192
  return (n) => V(t, e, n);
1193
1193
  }
1194
1194
  function rn(t) {
1195
- return typeof t == "number" ? jo : typeof t == "string" ? Ge(t) ? Ht : R.test(t) ? Dn : Ko : Array.isArray(t) ? ii : typeof t == "object" ? R.test(t) ? Dn : No : Ht;
1195
+ return typeof t == "number" ? Oo : typeof t == "string" ? Ge(t) ? Ht : R.test(t) ? Mn : No : Array.isArray(t) ? ii : typeof t == "object" ? R.test(t) ? Mn : Io : Ht;
1196
1196
  }
1197
1197
  function ii(t, e) {
1198
1198
  const n = [...t], s = n.length, i = t.map((o, r) => rn(o)(o, e[r]));
@@ -1202,7 +1202,7 @@ function ii(t, e) {
1202
1202
  return n;
1203
1203
  };
1204
1204
  }
1205
- function No(t, e) {
1205
+ function Io(t, e) {
1206
1206
  const n = { ...t, ...e }, s = {};
1207
1207
  for (const i in n)
1208
1208
  t[i] !== void 0 && e[i] !== void 0 && (s[i] = rn(t[i])(t[i], e[i]));
@@ -1212,7 +1212,7 @@ function No(t, e) {
1212
1212
  return n;
1213
1213
  };
1214
1214
  }
1215
- function Uo(t, e) {
1215
+ function jo(t, e) {
1216
1216
  const n = [], s = { color: 0, var: 0, number: 0 };
1217
1217
  for (let i = 0; i < e.values.length; i++) {
1218
1218
  const o = e.types[i], r = t.indexes[o][s[o]], a = t.values[r] ?? 0;
@@ -1220,17 +1220,17 @@ function Uo(t, e) {
1220
1220
  }
1221
1221
  return n;
1222
1222
  }
1223
- const Ko = (t, e) => {
1223
+ const No = (t, e) => {
1224
1224
  const n = J.createTransformer(e), s = Et(t), i = Et(e);
1225
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? xe.has(t) && !i.values.length || xe.has(e) && !s.values.length ? Oo(t, e) : Bt(ii(Uo(s, i), i.values), n) : (gt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ht(t, e));
1225
+ return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Te.has(t) && !i.values.length || Te.has(e) && !s.values.length ? Fo(t, e) : Ft(ii(jo(s, i), i.values), n) : (gt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ht(t, e));
1226
1226
  };
1227
1227
  function ri(t, e, n) {
1228
1228
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? V(t, e, n) : rn(t)(t, e);
1229
1229
  }
1230
- const Wo = (t) => {
1230
+ const Uo = (t) => {
1231
1231
  const e = ({ timestamp: n }) => t(n);
1232
1232
  return {
1233
- start: (n = !0) => M.update(e, n),
1233
+ start: (n = !0) => D.update(e, n),
1234
1234
  stop: () => Z(e),
1235
1235
  /**
1236
1236
  * If we're processing this frame we can use the
@@ -1253,7 +1253,7 @@ function on(t) {
1253
1253
  e += n, s = t.next(e);
1254
1254
  return e >= zt ? 1 / 0 : e;
1255
1255
  }
1256
- function $o(t, e = 100, n) {
1256
+ function Ko(t, e = 100, n) {
1257
1257
  const s = n({ ...t, keyframes: [0, e] }), i = Math.min(on(s), zt);
1258
1258
  return {
1259
1259
  type: "keyframes",
@@ -1261,9 +1261,9 @@ function $o(t, e = 100, n) {
1261
1261
  duration: /* @__PURE__ */ G(i)
1262
1262
  };
1263
1263
  }
1264
- const _o = 5;
1264
+ const $o = 5;
1265
1265
  function ai(t, e, n) {
1266
- const s = Math.max(e - _o, 0);
1266
+ const s = Math.max(e - $o, 0);
1267
1267
  return Zs(n - t(s), e - s);
1268
1268
  }
1269
1269
  const A = {
@@ -1294,26 +1294,26 @@ const A = {
1294
1294
  // in seconds
1295
1295
  minDamping: 0.05,
1296
1296
  maxDamping: 1
1297
- }, ae = 1e-3;
1298
- function Go({ duration: t = A.duration, bounce: e = A.bounce, velocity: n = A.velocity, mass: s = A.mass }) {
1297
+ }, oe = 1e-3;
1298
+ function Wo({ duration: t = A.duration, bounce: e = A.bounce, velocity: n = A.velocity, mass: s = A.mass }) {
1299
1299
  let i, o;
1300
- gt(t <= /* @__PURE__ */ $(A.maxDuration), "Spring duration must be 10 seconds or less");
1300
+ gt(t <= /* @__PURE__ */ W(A.maxDuration), "Spring duration must be 10 seconds or less");
1301
1301
  let r = 1 - e;
1302
1302
  r = X(A.minDamping, A.maxDamping, r), t = X(A.minDuration, A.maxDuration, /* @__PURE__ */ G(t)), r < 1 ? (i = (c) => {
1303
- const u = c * r, h = u * t, f = u - n, d = Pe(c, r), m = Math.exp(-h);
1304
- return ae - f / d * m;
1303
+ const u = c * r, h = u * t, f = u - n, d = xe(c, r), m = Math.exp(-h);
1304
+ return oe - f / d * m;
1305
1305
  }, o = (c) => {
1306
- const h = c * r * t, f = h * n + n, d = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), y = Pe(Math.pow(c, 2), r);
1307
- return (-i(c) + ae > 0 ? -1 : 1) * ((f - d) * m) / y;
1306
+ const h = c * r * t, f = h * n + n, d = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), y = xe(Math.pow(c, 2), r);
1307
+ return (-i(c) + oe > 0 ? -1 : 1) * ((f - d) * m) / y;
1308
1308
  }) : (i = (c) => {
1309
1309
  const u = Math.exp(-c * t), h = (c - n) * t + 1;
1310
- return -ae + u * h;
1310
+ return -oe + u * h;
1311
1311
  }, o = (c) => {
1312
1312
  const u = Math.exp(-c * t), h = (n - c) * (t * t);
1313
1313
  return u * h;
1314
1314
  });
1315
- const a = 5 / t, l = zo(i, o, a);
1316
- if (t = /* @__PURE__ */ $(t), isNaN(l))
1315
+ const a = 5 / t, l = Go(i, o, a);
1316
+ if (t = /* @__PURE__ */ W(t), isNaN(l))
1317
1317
  return {
1318
1318
  stiffness: A.stiffness,
1319
1319
  damping: A.damping,
@@ -1328,21 +1328,21 @@ function Go({ duration: t = A.duration, bounce: e = A.bounce, velocity: n = A.ve
1328
1328
  };
1329
1329
  }
1330
1330
  }
1331
- const Ho = 12;
1332
- function zo(t, e, n) {
1331
+ const _o = 12;
1332
+ function Go(t, e, n) {
1333
1333
  let s = n;
1334
- for (let i = 1; i < Ho; i++)
1334
+ for (let i = 1; i < _o; i++)
1335
1335
  s = s - t(s) / e(s);
1336
1336
  return s;
1337
1337
  }
1338
- function Pe(t, e) {
1338
+ function xe(t, e) {
1339
1339
  return t * Math.sqrt(1 - e * e);
1340
1340
  }
1341
- const Yo = ["duration", "bounce"], Xo = ["stiffness", "damping", "mass"];
1341
+ const Ho = ["duration", "bounce"], zo = ["stiffness", "damping", "mass"];
1342
1342
  function Cn(t, e) {
1343
1343
  return e.some((n) => t[n] !== void 0);
1344
1344
  }
1345
- function qo(t) {
1345
+ function Yo(t) {
1346
1346
  let e = {
1347
1347
  velocity: A.velocity,
1348
1348
  stiffness: A.stiffness,
@@ -1351,7 +1351,7 @@ function qo(t) {
1351
1351
  isResolvedFromDuration: !1,
1352
1352
  ...t
1353
1353
  };
1354
- if (!Cn(t, Xo) && Cn(t, Yo))
1354
+ if (!Cn(t, zo) && Cn(t, Ho))
1355
1355
  if (t.visualDuration) {
1356
1356
  const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * X(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
1357
1357
  e = {
@@ -1361,7 +1361,7 @@ function qo(t) {
1361
1361
  damping: o
1362
1362
  };
1363
1363
  } else {
1364
- const n = Go(t);
1364
+ const n = Wo(t);
1365
1365
  e = {
1366
1366
  ...e,
1367
1367
  ...n,
@@ -1377,14 +1377,14 @@ function Yt(t = A.visualDuration, e = A.bounce) {
1377
1377
  bounce: e
1378
1378
  } : t;
1379
1379
  let { restSpeed: s, restDelta: i } = n;
1380
- const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity: f, isResolvedFromDuration: d } = qo({
1380
+ const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity: f, isResolvedFromDuration: d } = Yo({
1381
1381
  ...n,
1382
1382
  velocity: -/* @__PURE__ */ G(n.velocity || 0)
1383
1383
  }), m = f || 0, y = c / (2 * Math.sqrt(l * u)), v = r - o, g = /* @__PURE__ */ G(Math.sqrt(l / u)), P = Math.abs(v) < 5;
1384
1384
  s || (s = P ? A.restSpeed.granular : A.restSpeed.default), i || (i = P ? A.restDelta.granular : A.restDelta.default);
1385
1385
  let p;
1386
1386
  if (y < 1) {
1387
- const x = Pe(g, y);
1387
+ const x = xe(g, y);
1388
1388
  p = (w) => {
1389
1389
  const C = Math.exp(-y * g * w);
1390
1390
  return r - C * ((m + y * g * v) / x * Math.sin(x * w) + v * Math.cos(x * w));
@@ -1406,9 +1406,9 @@ function Yt(t = A.visualDuration, e = A.bounce) {
1406
1406
  a.done = x >= h;
1407
1407
  else {
1408
1408
  let C = x === 0 ? m : 0;
1409
- y < 1 && (C = x === 0 ? /* @__PURE__ */ $(m) : ai(p, x, w));
1410
- const S = Math.abs(C) <= s, F = Math.abs(r - w) <= i;
1411
- a.done = S && F;
1409
+ y < 1 && (C = x === 0 ? /* @__PURE__ */ W(m) : ai(p, x, w));
1410
+ const S = Math.abs(C) <= s, B = Math.abs(r - w) <= i;
1411
+ a.done = S && B;
1412
1412
  }
1413
1413
  return a.value = a.done ? r : w, a;
1414
1414
  },
@@ -1422,10 +1422,10 @@ function Yt(t = A.visualDuration, e = A.bounce) {
1422
1422
  return b;
1423
1423
  }
1424
1424
  Yt.applyToOptions = (t) => {
1425
- const e = $o(t, 100, Yt);
1426
- return t.ease = e.ease, t.duration = /* @__PURE__ */ $(e.duration), t.type = "keyframes", t;
1425
+ const e = Ko(t, 100, Yt);
1426
+ return t.ease = e.ease, t.duration = /* @__PURE__ */ W(e.duration), t.type = "keyframes", t;
1427
1427
  };
1428
- function Se({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
1428
+ function Pe({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
1429
1429
  const h = t[0], f = {
1430
1430
  done: !1,
1431
1431
  value: h
@@ -1434,8 +1434,8 @@ function Se({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
1434
1434
  const v = h + y, g = r === void 0 ? v : r(v);
1435
1435
  g !== v && (y = g - h);
1436
1436
  const P = (S) => -y * Math.exp(-S / s), p = (S) => g + P(S), b = (S) => {
1437
- const F = P(S), j = p(S);
1438
- f.done = Math.abs(F) <= c, f.value = f.done ? g : j;
1437
+ const B = P(S), j = p(S);
1438
+ f.done = Math.abs(B) <= c, f.value = f.done ? g : j;
1439
1439
  };
1440
1440
  let x, w;
1441
1441
  const C = (S) => {
@@ -1452,8 +1452,8 @@ function Se({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
1452
1452
  return C(0), {
1453
1453
  calculatedDuration: null,
1454
1454
  next: (S) => {
1455
- let F = !1;
1456
- return !w && x === void 0 && (F = !0, b(S), C(S)), x !== void 0 && S >= x ? w.next(S - x) : (!F && b(S), f);
1455
+ let B = !1;
1456
+ return !w && x === void 0 && (B = !0, b(S), C(S)), x !== void 0 && S >= x ? w.next(S - x) : (!B && b(S), f);
1457
1457
  }
1458
1458
  };
1459
1459
  }
@@ -1461,19 +1461,19 @@ const Rt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
1461
1461
  const s = e - t;
1462
1462
  return s === 0 ? 1 : (n - t) / s;
1463
1463
  };
1464
- function Zo(t, e, n) {
1464
+ function Xo(t, e, n) {
1465
1465
  const s = [], i = n || z.mix || ri, o = t.length - 1;
1466
1466
  for (let r = 0; r < o; r++) {
1467
1467
  let a = i(t[r], t[r + 1]);
1468
1468
  if (e) {
1469
1469
  const l = Array.isArray(e) ? e[r] || K : e;
1470
- a = Bt(l, a);
1470
+ a = Ft(l, a);
1471
1471
  }
1472
1472
  s.push(a);
1473
1473
  }
1474
1474
  return s;
1475
1475
  }
1476
- function Jo(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1476
+ function qo(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1477
1477
  const o = t.length;
1478
1478
  if (Y(o === e.length, "Both input and output ranges must be the same length"), o === 1)
1479
1479
  return () => e[0];
@@ -1481,7 +1481,7 @@ function Jo(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1481
1481
  return () => e[1];
1482
1482
  const r = t[0] === t[1];
1483
1483
  t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
1484
- const a = Zo(e, s, i), l = a.length, c = (u) => {
1484
+ const a = Xo(e, s, i), l = a.length, c = (u) => {
1485
1485
  if (r && u < t[0])
1486
1486
  return e[0];
1487
1487
  let h = 0;
@@ -1493,39 +1493,39 @@ function Jo(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1493
1493
  };
1494
1494
  return n ? (u) => c(X(t[0], t[o - 1], u)) : c;
1495
1495
  }
1496
- function Qo(t, e) {
1496
+ function Zo(t, e) {
1497
1497
  const n = t[t.length - 1];
1498
1498
  for (let s = 1; s <= e; s++) {
1499
1499
  const i = /* @__PURE__ */ Rt(0, e, s);
1500
1500
  t.push(V(n, 1, i));
1501
1501
  }
1502
1502
  }
1503
- function ta(t) {
1503
+ function Jo(t) {
1504
1504
  const e = [0];
1505
- return Qo(e, t.length - 1), e;
1505
+ return Zo(e, t.length - 1), e;
1506
1506
  }
1507
- function ea(t, e) {
1507
+ function Qo(t, e) {
1508
1508
  return t.map((n) => n * e);
1509
1509
  }
1510
- const li = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, na = 1e-7, sa = 12;
1511
- function ia(t, e, n, s, i) {
1510
+ const li = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, ta = 1e-7, ea = 12;
1511
+ function na(t, e, n, s, i) {
1512
1512
  let o, r, a = 0;
1513
1513
  do
1514
1514
  r = e + (n - e) / 2, o = li(r, s, i) - t, o > 0 ? n = r : e = r;
1515
- while (Math.abs(o) > na && ++a < sa);
1515
+ while (Math.abs(o) > ta && ++a < ea);
1516
1516
  return r;
1517
1517
  }
1518
- function Ft(t, e, n, s) {
1518
+ function Bt(t, e, n, s) {
1519
1519
  if (t === e && n === s)
1520
1520
  return K;
1521
- const i = (o) => ia(o, 0, 1, t, n);
1521
+ const i = (o) => na(o, 0, 1, t, n);
1522
1522
  return (o) => o === 0 || o === 1 ? o : li(i(o), e, s);
1523
1523
  }
1524
- const ra = /* @__PURE__ */ Ft(0.42, 0, 1, 1), oa = /* @__PURE__ */ Ft(0, 0, 0.58, 1), ui = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), aa = (t) => Array.isArray(t) && typeof t[0] != "number", ci = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, hi = (t) => (e) => 1 - t(1 - e), fi = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), an = /* @__PURE__ */ hi(fi), di = /* @__PURE__ */ ci(an), mi = (t) => (t *= 2) < 1 ? 0.5 * an(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ln = (t) => 1 - Math.sin(Math.acos(t)), pi = hi(ln), gi = ci(ln), yi = (t) => Array.isArray(t) && typeof t[0] == "number", En = {
1524
+ const sa = /* @__PURE__ */ Bt(0.42, 0, 1, 1), ia = /* @__PURE__ */ Bt(0, 0, 0.58, 1), ui = /* @__PURE__ */ Bt(0.42, 0, 0.58, 1), ra = (t) => Array.isArray(t) && typeof t[0] != "number", ci = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, hi = (t) => (e) => 1 - t(1 - e), fi = /* @__PURE__ */ Bt(0.33, 1.53, 0.69, 0.99), an = /* @__PURE__ */ hi(fi), di = /* @__PURE__ */ ci(an), mi = (t) => (t *= 2) < 1 ? 0.5 * an(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ln = (t) => 1 - Math.sin(Math.acos(t)), pi = hi(ln), gi = ci(ln), yi = (t) => Array.isArray(t) && typeof t[0] == "number", En = {
1525
1525
  linear: K,
1526
- easeIn: ra,
1526
+ easeIn: sa,
1527
1527
  easeInOut: ui,
1528
- easeOut: oa,
1528
+ easeOut: ia,
1529
1529
  circIn: ln,
1530
1530
  circInOut: gi,
1531
1531
  circOut: pi,
@@ -1533,49 +1533,49 @@ const ra = /* @__PURE__ */ Ft(0.42, 0, 1, 1), oa = /* @__PURE__ */ Ft(0, 0, 0.58
1533
1533
  backInOut: di,
1534
1534
  backOut: fi,
1535
1535
  anticipate: mi
1536
- }, la = (t) => typeof t == "string", Rn = (t) => {
1536
+ }, oa = (t) => typeof t == "string", Rn = (t) => {
1537
1537
  if (yi(t)) {
1538
1538
  Y(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
1539
1539
  const [e, n, s, i] = t;
1540
- return Ft(e, n, s, i);
1541
- } else if (la(t))
1540
+ return Bt(e, n, s, i);
1541
+ } else if (oa(t))
1542
1542
  return Y(En[t] !== void 0, `Invalid easing type '${t}'`), En[t];
1543
1543
  return t;
1544
1544
  };
1545
- function ua(t, e) {
1545
+ function aa(t, e) {
1546
1546
  return t.map(() => e || ui).splice(0, t.length - 1);
1547
1547
  }
1548
1548
  function ut({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
1549
- const i = aa(s) ? s.map(Rn) : Rn(s), o = {
1549
+ const i = ra(s) ? s.map(Rn) : Rn(s), o = {
1550
1550
  done: !1,
1551
1551
  value: e[0]
1552
- }, r = ea(
1552
+ }, r = Qo(
1553
1553
  // Only use the provided offsets if they're the correct length
1554
1554
  // TODO Maybe we should warn here if there's a length mismatch
1555
- n && n.length === e.length ? n : ta(e),
1555
+ n && n.length === e.length ? n : Jo(e),
1556
1556
  t
1557
- ), a = Jo(r, e, {
1558
- ease: Array.isArray(i) ? i : ua(e, i)
1557
+ ), a = qo(r, e, {
1558
+ ease: Array.isArray(i) ? i : aa(e, i)
1559
1559
  });
1560
1560
  return {
1561
1561
  calculatedDuration: t,
1562
1562
  next: (l) => (o.value = a(l), o.done = l >= t, o)
1563
1563
  };
1564
1564
  }
1565
- const ca = (t) => t !== null;
1565
+ const la = (t) => t !== null;
1566
1566
  function un(t, { repeat: e, repeatType: n = "loop" }, s, i = 1) {
1567
- const o = t.filter(ca), a = i < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
1567
+ const o = t.filter(la), a = i < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
1568
1568
  return !a || s === void 0 ? o[a] : s;
1569
1569
  }
1570
- const ha = {
1571
- decay: Se,
1572
- inertia: Se,
1570
+ const ua = {
1571
+ decay: Pe,
1572
+ inertia: Pe,
1573
1573
  tween: ut,
1574
1574
  keyframes: ut,
1575
1575
  spring: Yt
1576
1576
  };
1577
1577
  function vi(t) {
1578
- typeof t.type == "string" && (t.type = ha[t.type]);
1578
+ typeof t.type == "string" && (t.type = ua[t.type]);
1579
1579
  }
1580
1580
  class cn {
1581
1581
  constructor() {
@@ -1601,7 +1601,7 @@ class cn {
1601
1601
  return this.finished.then(e, n);
1602
1602
  }
1603
1603
  }
1604
- const fa = (t) => t / 100;
1604
+ const ca = (t) => t / 100;
1605
1605
  class hn extends cn {
1606
1606
  constructor(e) {
1607
1607
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = (n = !0) => {
@@ -1618,7 +1618,7 @@ class hn extends cn {
1618
1618
  const { type: n = ut, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
1619
1619
  let { keyframes: a } = e;
1620
1620
  const l = n || ut;
1621
- process.env.NODE_ENV !== "production" && l !== ut && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`), l !== ut && typeof a[0] != "number" && (this.mixKeyframes = Bt(fa, ri(a[0], a[1])), a = [0, 100]);
1621
+ process.env.NODE_ENV !== "production" && l !== ut && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`), l !== ut && typeof a[0] != "number" && (this.mixKeyframes = Ft(ca, ri(a[0], a[1])), a = [0, 100]);
1622
1622
  const c = l({ ...e, keyframes: a });
1623
1623
  o === "mirror" && (this.mirroredGenerator = l({
1624
1624
  ...e,
@@ -1643,15 +1643,15 @@ class hn extends cn {
1643
1643
  let p = this.currentTime, b = s;
1644
1644
  if (h) {
1645
1645
  const S = Math.min(this.currentTime, i) / a;
1646
- let F = Math.floor(S), j = S % 1;
1647
- !j && S >= 1 && (j = 1), j === 1 && F--, F = Math.min(F, h + 1), !!(F % 2) && (f === "reverse" ? (j = 1 - j, d && (j -= d / a)) : f === "mirror" && (b = r)), p = X(0, 1, j) * a;
1646
+ let B = Math.floor(S), j = S % 1;
1647
+ !j && S >= 1 && (j = 1), j === 1 && B--, B = Math.min(B, h + 1), !!(B % 2) && (f === "reverse" ? (j = 1 - j, d && (j -= d / a)) : f === "mirror" && (b = r)), p = X(0, 1, j) * a;
1648
1648
  }
1649
1649
  const x = P ? { done: !1, value: u[0] } : b.next(p);
1650
1650
  o && (x.value = o(x.value));
1651
1651
  let { done: w } = x;
1652
1652
  !P && l !== null && (w = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
1653
1653
  const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && w);
1654
- return C && m !== Se && (x.value = un(u, this.options, v, this.speed)), y && y(x.value), C && this.finish(), x;
1654
+ return C && m !== Pe && (x.value = un(u, this.options, v, this.speed)), y && y(x.value), C && this.finish(), x;
1655
1655
  }
1656
1656
  /**
1657
1657
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -1668,7 +1668,7 @@ class hn extends cn {
1668
1668
  return /* @__PURE__ */ G(this.currentTime);
1669
1669
  }
1670
1670
  set time(e) {
1671
- e = /* @__PURE__ */ $(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
1671
+ e = /* @__PURE__ */ W(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
1672
1672
  }
1673
1673
  get speed() {
1674
1674
  return this.playbackSpeed;
@@ -1681,7 +1681,7 @@ class hn extends cn {
1681
1681
  play() {
1682
1682
  if (this.isStopped)
1683
1683
  return;
1684
- const { driver: e = Wo, startTime: n } = this.options;
1684
+ const { driver: e = Uo, startTime: n } = this.options;
1685
1685
  this.driver || (this.driver = e((i) => this.tick(i))), this.options.onPlay?.();
1686
1686
  const s = this.driver.now();
1687
1687
  this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -1711,14 +1711,14 @@ class hn extends cn {
1711
1711
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
1712
1712
  }
1713
1713
  }
1714
- function da(t) {
1714
+ function ha(t) {
1715
1715
  for (let e = 1; e < t.length; e++)
1716
1716
  t[e] ?? (t[e] = t[e - 1]);
1717
1717
  }
1718
- const st = (t) => t * 180 / Math.PI, be = (t) => {
1718
+ const st = (t) => t * 180 / Math.PI, Se = (t) => {
1719
1719
  const e = st(Math.atan2(t[1], t[0]));
1720
- return we(e);
1721
- }, ma = {
1720
+ return be(e);
1721
+ }, fa = {
1722
1722
  x: 4,
1723
1723
  y: 5,
1724
1724
  translateX: 4,
@@ -1726,12 +1726,12 @@ const st = (t) => t * 180 / Math.PI, be = (t) => {
1726
1726
  scaleX: 0,
1727
1727
  scaleY: 3,
1728
1728
  scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
1729
- rotate: be,
1730
- rotateZ: be,
1729
+ rotate: Se,
1730
+ rotateZ: Se,
1731
1731
  skewX: (t) => st(Math.atan(t[1])),
1732
1732
  skewY: (t) => st(Math.atan(t[2])),
1733
1733
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
1734
- }, we = (t) => (t = t % 360, t < 0 && (t += 360), t), Ln = be, kn = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Bn = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), pa = {
1734
+ }, be = (t) => (t = t % 360, t < 0 && (t += 360), t), Ln = Se, kn = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Fn = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), da = {
1735
1735
  x: 12,
1736
1736
  y: 13,
1737
1737
  z: 14,
@@ -1739,46 +1739,46 @@ const st = (t) => t * 180 / Math.PI, be = (t) => {
1739
1739
  translateY: 13,
1740
1740
  translateZ: 14,
1741
1741
  scaleX: kn,
1742
- scaleY: Bn,
1743
- scale: (t) => (kn(t) + Bn(t)) / 2,
1744
- rotateX: (t) => we(st(Math.atan2(t[6], t[5]))),
1745
- rotateY: (t) => we(st(Math.atan2(-t[2], t[0]))),
1742
+ scaleY: Fn,
1743
+ scale: (t) => (kn(t) + Fn(t)) / 2,
1744
+ rotateX: (t) => be(st(Math.atan2(t[6], t[5]))),
1745
+ rotateY: (t) => be(st(Math.atan2(-t[2], t[0]))),
1746
1746
  rotateZ: Ln,
1747
1747
  rotate: Ln,
1748
1748
  skewX: (t) => st(Math.atan(t[4])),
1749
1749
  skewY: (t) => st(Math.atan(t[1])),
1750
1750
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
1751
1751
  };
1752
- function Ae(t) {
1752
+ function we(t) {
1753
1753
  return t.includes("scale") ? 1 : 0;
1754
1754
  }
1755
- function Ve(t, e) {
1755
+ function Ae(t, e) {
1756
1756
  if (!t || t === "none")
1757
- return Ae(e);
1757
+ return we(e);
1758
1758
  const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
1759
1759
  let s, i;
1760
1760
  if (n)
1761
- s = pa, i = n;
1761
+ s = da, i = n;
1762
1762
  else {
1763
1763
  const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
1764
- s = ma, i = a;
1764
+ s = fa, i = a;
1765
1765
  }
1766
1766
  if (!i)
1767
- return Ae(e);
1768
- const o = s[e], r = i[1].split(",").map(ya);
1767
+ return we(e);
1768
+ const o = s[e], r = i[1].split(",").map(pa);
1769
1769
  return typeof o == "function" ? o(r) : r[o];
1770
1770
  }
1771
- const ga = (t, e) => {
1771
+ const ma = (t, e) => {
1772
1772
  const { transform: n = "none" } = getComputedStyle(t);
1773
- return Ve(n, e);
1773
+ return Ae(n, e);
1774
1774
  };
1775
- function ya(t) {
1775
+ function pa(t) {
1776
1776
  return parseFloat(t.trim());
1777
1777
  }
1778
- const Fn = (t) => t === Tt || t === T, va = /* @__PURE__ */ new Set(["x", "y", "z"]), Ta = yt.filter((t) => !va.has(t));
1779
- function xa(t) {
1778
+ const Bn = (t) => t === Tt || t === T, ga = /* @__PURE__ */ new Set(["x", "y", "z"]), ya = yt.filter((t) => !ga.has(t));
1779
+ function va(t) {
1780
1780
  const e = [];
1781
- return Ta.forEach((n) => {
1781
+ return ya.forEach((n) => {
1782
1782
  const s = t.getValue(n);
1783
1783
  s !== void 0 && (e.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
1784
1784
  }), e;
@@ -1792,18 +1792,18 @@ const it = {
1792
1792
  bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
1793
1793
  right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
1794
1794
  // Transform
1795
- x: (t, { transform: e }) => Ve(e, "x"),
1796
- y: (t, { transform: e }) => Ve(e, "y")
1795
+ x: (t, { transform: e }) => Ae(e, "x"),
1796
+ y: (t, { transform: e }) => Ae(e, "y")
1797
1797
  };
1798
1798
  it.translateX = it.x;
1799
1799
  it.translateY = it.y;
1800
1800
  const rt = /* @__PURE__ */ new Set();
1801
- let Me = !1, De = !1, Ce = !1;
1801
+ let Ve = !1, De = !1, Me = !1;
1802
1802
  function Ti() {
1803
1803
  if (De) {
1804
1804
  const t = Array.from(rt).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1805
1805
  e.forEach((s) => {
1806
- const i = xa(s);
1806
+ const i = va(s);
1807
1807
  i.length && (n.set(s, i), s.render());
1808
1808
  }), t.forEach((s) => s.measureInitialState()), e.forEach((s) => {
1809
1809
  s.render();
@@ -1815,22 +1815,22 @@ function Ti() {
1815
1815
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
1816
1816
  });
1817
1817
  }
1818
- De = !1, Me = !1, rt.forEach((t) => t.complete(Ce)), rt.clear();
1818
+ De = !1, Ve = !1, rt.forEach((t) => t.complete(Me)), rt.clear();
1819
1819
  }
1820
1820
  function xi() {
1821
1821
  rt.forEach((t) => {
1822
1822
  t.readKeyframes(), t.needsMeasurement && (De = !0);
1823
1823
  });
1824
1824
  }
1825
- function Pa() {
1826
- Ce = !0, xi(), Ti(), Ce = !1;
1825
+ function Ta() {
1826
+ Me = !0, xi(), Ti(), Me = !1;
1827
1827
  }
1828
1828
  class fn {
1829
1829
  constructor(e, n, s, i, o, r = !1) {
1830
1830
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = o, this.isAsync = r;
1831
1831
  }
1832
1832
  scheduleResolve() {
1833
- this.state = "scheduled", this.isAsync ? (rt.add(this), Me || (Me = !0, M.read(xi), M.resolveKeyframes(Ti))) : (this.readKeyframes(), this.complete());
1833
+ this.state = "scheduled", this.isAsync ? (rt.add(this), Ve || (Ve = !0, D.read(xi), D.resolveKeyframes(Ti))) : (this.readKeyframes(), this.complete());
1834
1834
  }
1835
1835
  readKeyframes() {
1836
1836
  const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
@@ -1844,7 +1844,7 @@ class fn {
1844
1844
  }
1845
1845
  e[0] === void 0 && (e[0] = r), i && o === void 0 && i.set(e[0]);
1846
1846
  }
1847
- da(e);
1847
+ ha(e);
1848
1848
  }
1849
1849
  setFinalKeyframe() {
1850
1850
  }
@@ -1864,21 +1864,21 @@ class fn {
1864
1864
  this.state === "pending" && this.scheduleResolve();
1865
1865
  }
1866
1866
  }
1867
- const Sa = (t) => t.startsWith("--");
1868
- function ba(t, e, n) {
1869
- Sa(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1867
+ const xa = (t) => t.startsWith("--");
1868
+ function Pa(t, e, n) {
1869
+ xa(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1870
1870
  }
1871
1871
  // @__NO_SIDE_EFFECTS__
1872
1872
  function dn(t) {
1873
1873
  let e;
1874
1874
  return () => (e === void 0 && (e = t()), e);
1875
1875
  }
1876
- const wa = /* @__PURE__ */ dn(() => window.ScrollTimeline !== void 0), Aa = {};
1877
- function Va(t, e) {
1876
+ const Sa = /* @__PURE__ */ dn(() => window.ScrollTimeline !== void 0), ba = {};
1877
+ function wa(t, e) {
1878
1878
  const n = /* @__PURE__ */ dn(t);
1879
- return () => Aa[e] ?? n();
1879
+ return () => ba[e] ?? n();
1880
1880
  }
1881
- const Pi = /* @__PURE__ */ Va(() => {
1881
+ const Pi = /* @__PURE__ */ wa(() => {
1882
1882
  try {
1883
1883
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1884
1884
  } catch {
@@ -1900,7 +1900,7 @@ function Si(t, e) {
1900
1900
  if (t)
1901
1901
  return typeof t == "function" ? Pi() ? oi(t, e) : "ease-out" : yi(t) ? Pt(t) : Array.isArray(t) ? t.map((n) => Si(n, e) || On.easeOut) : On[t];
1902
1902
  }
1903
- function Ma(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1903
+ function Aa(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1904
1904
  const u = {
1905
1905
  [e]: n
1906
1906
  };
@@ -1920,20 +1920,20 @@ function Ma(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatTyp
1920
1920
  function bi(t) {
1921
1921
  return typeof t == "function" && "applyToOptions" in t;
1922
1922
  }
1923
- function Da({ type: t, ...e }) {
1923
+ function Va({ type: t, ...e }) {
1924
1924
  return bi(t) && Pi() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1925
1925
  }
1926
- class Ca extends cn {
1926
+ class Da extends cn {
1927
1927
  constructor(e) {
1928
1928
  if (super(), this.finishedTime = null, this.isStopped = !1, !e)
1929
1929
  return;
1930
1930
  const { element: n, name: s, keyframes: i, pseudoElement: o, allowFlatten: r = !1, finalKeyframe: a, onComplete: l } = e;
1931
1931
  this.isPseudoElement = !!o, this.allowFlatten = r, this.options = e, Y(typeof e.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1932
- const c = Da(e);
1933
- this.animation = Ma(n, s, i, c, o), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1932
+ const c = Va(e);
1933
+ this.animation = Aa(n, s, i, c, o), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1934
1934
  if (this.finishedTime = this.time, !o) {
1935
1935
  const u = un(i, this.options, a, this.speed);
1936
- this.updateMotionValue ? this.updateMotionValue(u) : ba(n, s, u), this.animation.cancel();
1936
+ this.updateMotionValue ? this.updateMotionValue(u) : Pa(n, s, u), this.animation.cancel();
1937
1937
  }
1938
1938
  l?.(), this.notifyFinished();
1939
1939
  };
@@ -1983,7 +1983,7 @@ class Ca extends cn {
1983
1983
  return /* @__PURE__ */ G(Number(this.animation.currentTime) || 0);
1984
1984
  }
1985
1985
  set time(e) {
1986
- this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ $(e);
1986
+ this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ W(e);
1987
1987
  }
1988
1988
  /**
1989
1989
  * The playback speed of the animation.
@@ -2008,7 +2008,7 @@ class Ca extends cn {
2008
2008
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
2009
2009
  */
2010
2010
  attachTimeline({ timeline: e, observe: n }) {
2011
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && wa() ? (this.animation.timeline = e, K) : n(this);
2011
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Sa() ? (this.animation.timeline = e, K) : n(this);
2012
2012
  }
2013
2013
  }
2014
2014
  const wi = {
@@ -2016,16 +2016,16 @@ const wi = {
2016
2016
  backInOut: di,
2017
2017
  circInOut: gi
2018
2018
  };
2019
- function Ea(t) {
2019
+ function Ma(t) {
2020
2020
  return t in wi;
2021
2021
  }
2022
- function Ra(t) {
2023
- typeof t.ease == "string" && Ea(t.ease) && (t.ease = wi[t.ease]);
2022
+ function Ca(t) {
2023
+ typeof t.ease == "string" && Ma(t.ease) && (t.ease = wi[t.ease]);
2024
2024
  }
2025
2025
  const In = 10;
2026
- class La extends Ca {
2026
+ class Ea extends Da {
2027
2027
  constructor(e) {
2028
- Ra(e), vi(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
2028
+ Ca(e), vi(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
2029
2029
  }
2030
2030
  /**
2031
2031
  * WAAPI doesn't natively have any interruption capabilities.
@@ -2046,14 +2046,14 @@ class La extends Ca {
2046
2046
  const a = new hn({
2047
2047
  ...r,
2048
2048
  autoplay: !1
2049
- }), l = /* @__PURE__ */ $(this.finishedTime ?? this.time);
2049
+ }), l = /* @__PURE__ */ W(this.finishedTime ?? this.time);
2050
2050
  n.setWithVelocity(a.sample(l - In).value, a.sample(l).value, In), a.stop();
2051
2051
  }
2052
2052
  }
2053
2053
  const jn = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2054
2054
  (J.test(t) || t === "0") && // And it contains numbers and/or colors
2055
2055
  !t.startsWith("url("));
2056
- function ka(t) {
2056
+ function Ra(t) {
2057
2057
  const e = t[0];
2058
2058
  if (t.length === 1)
2059
2059
  return !0;
@@ -2061,16 +2061,16 @@ function ka(t) {
2061
2061
  if (t[n] !== e)
2062
2062
  return !0;
2063
2063
  }
2064
- function Ba(t, e, n, s) {
2064
+ function La(t, e, n, s) {
2065
2065
  const i = t[0];
2066
2066
  if (i === null)
2067
2067
  return !1;
2068
2068
  if (e === "display" || e === "visibility")
2069
2069
  return !0;
2070
2070
  const o = t[t.length - 1], r = jn(i, e), a = jn(o, e);
2071
- return gt(r === a, `You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : ka(t) || (n === "spring" || bi(n)) && s;
2071
+ return gt(r === a, `You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : Ra(t) || (n === "spring" || bi(n)) && s;
2072
2072
  }
2073
- const Fa = /* @__PURE__ */ new Set([
2073
+ const ka = /* @__PURE__ */ new Set([
2074
2074
  "opacity",
2075
2075
  "clipPath",
2076
2076
  "filter",
@@ -2078,20 +2078,20 @@ const Fa = /* @__PURE__ */ new Set([
2078
2078
  // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
2079
2079
  // or until we implement support for linear() easing.
2080
2080
  // "background-color"
2081
- ]), Oa = /* @__PURE__ */ dn(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
2082
- function Ia(t) {
2081
+ ]), Fa = /* @__PURE__ */ dn(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
2082
+ function Ba(t) {
2083
2083
  const { motionValue: e, name: n, repeatDelay: s, repeatType: i, damping: o, type: r } = t;
2084
2084
  if (!e || !e.owner || !(e.owner.current instanceof HTMLElement))
2085
2085
  return !1;
2086
2086
  const { onUpdate: a, transformTemplate: l } = e.owner.getProps();
2087
- return Oa() && n && Fa.has(n) && (n !== "transform" || !l) && /**
2087
+ return Fa() && n && ka.has(n) && (n !== "transform" || !l) && /**
2088
2088
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
2089
2089
  * no way to read the value from WAAPI every frame.
2090
2090
  */
2091
2091
  !a && !s && i !== "mirror" && o !== 0 && r !== "inertia";
2092
2092
  }
2093
- const ja = 40;
2094
- class Na extends cn {
2093
+ const Oa = 40;
2094
+ class Ia extends cn {
2095
2095
  constructor({ autoplay: e = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: a, name: l, motionValue: c, element: u, ...h }) {
2096
2096
  super(), this.stop = () => {
2097
2097
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -2113,13 +2113,13 @@ class Na extends cn {
2113
2113
  onKeyframesResolved(e, n, s, i) {
2114
2114
  this.keyframeResolver = void 0;
2115
2115
  const { name: o, type: r, velocity: a, delay: l, isHandoff: c, onUpdate: u } = s;
2116
- this.resolvedAt = I.now(), Ba(e, o, r, a) || ((z.instantAnimations || !l) && u?.(un(e, s, n)), e[0] = e[e.length - 1], s.duration = 0, s.repeat = 0);
2116
+ this.resolvedAt = I.now(), La(e, o, r, a) || ((z.instantAnimations || !l) && u?.(un(e, s, n)), e[0] = e[e.length - 1], s.duration = 0, s.repeat = 0);
2117
2117
  const f = {
2118
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > ja ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
2118
+ startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Oa ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
2119
2119
  finalKeyframe: n,
2120
2120
  ...s,
2121
2121
  keyframes: e
2122
- }, d = !c && Ia(f) ? new La({
2122
+ }, d = !c && Ba(f) ? new Ea({
2123
2123
  ...f,
2124
2124
  element: f.motionValue.owner.current
2125
2125
  }) : new hn(f);
@@ -2133,7 +2133,7 @@ class Na extends cn {
2133
2133
  });
2134
2134
  }
2135
2135
  get animation() {
2136
- return this._animation || (this.keyframeResolver?.resume(), Pa()), this._animation;
2136
+ return this._animation || (this.keyframeResolver?.resume(), Ta()), this._animation;
2137
2137
  }
2138
2138
  get duration() {
2139
2139
  return this.animation.duration;
@@ -2175,7 +2175,7 @@ class Na extends cn {
2175
2175
  const mn = (t, e, n, s = {}, i, o) => (r) => {
2176
2176
  const a = en(s, t) || {}, l = a.delay || s.delay || 0;
2177
2177
  let { elapsed: c = 0 } = s;
2178
- c = c - /* @__PURE__ */ $(l);
2178
+ c = c - /* @__PURE__ */ W(l);
2179
2179
  const u = {
2180
2180
  keyframes: Array.isArray(n) ? n : [null, n],
2181
2181
  ease: "easeOut",
@@ -2192,18 +2192,18 @@ const mn = (t, e, n, s = {}, i, o) => (r) => {
2192
2192
  motionValue: e,
2193
2193
  element: o ? void 0 : i
2194
2194
  };
2195
- Po(a) || Object.assign(u, xo(t, u)), u.duration && (u.duration = /* @__PURE__ */ $(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ $(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
2195
+ To(a) || Object.assign(u, vo(t, u)), u.duration && (u.duration = /* @__PURE__ */ W(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ W(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
2196
2196
  let h = !1;
2197
2197
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (h = !0)), (z.instantAnimations || z.skipAnimations) && (h = !0, u.duration = 0, u.delay = 0), u.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
2198
- const f = po(u.keyframes, a);
2198
+ const f = fo(u.keyframes, a);
2199
2199
  if (f !== void 0) {
2200
- M.update(() => {
2200
+ D.update(() => {
2201
2201
  u.onUpdate(f), u.onComplete();
2202
2202
  });
2203
2203
  return;
2204
2204
  }
2205
2205
  }
2206
- return a.isSync ? new hn(u) : new Na(u);
2206
+ return a.isSync ? new hn(u) : new Ia(u);
2207
2207
  }, Ai = /* @__PURE__ */ new Set([
2208
2208
  "width",
2209
2209
  "height",
@@ -2213,7 +2213,7 @@ const mn = (t, e, n, s = {}, i, o) => (r) => {
2213
2213
  "bottom",
2214
2214
  ...yt
2215
2215
  ]);
2216
- function Ua({ protectedKeys: t, needsAnimating: e }, n) {
2216
+ function ja({ protectedKeys: t, needsAnimating: e }, n) {
2217
2217
  const s = t.hasOwnProperty(n) && e[n] !== !0;
2218
2218
  return e[n] = !1, s;
2219
2219
  }
@@ -2223,7 +2223,7 @@ function Vi(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2223
2223
  const l = [], c = i && t.animationState && t.animationState.getState()[i];
2224
2224
  for (const u in a) {
2225
2225
  const h = t.getValue(u, t.latestValues[u] ?? null), f = a[u];
2226
- if (f === void 0 || c && Ua(c, u))
2226
+ if (f === void 0 || c && ja(c, u))
2227
2227
  continue;
2228
2228
  const d = {
2229
2229
  delay: n,
@@ -2235,27 +2235,27 @@ function Vi(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2235
2235
  if (window.MotionHandoffAnimation) {
2236
2236
  const g = Js(t);
2237
2237
  if (g) {
2238
- const P = window.MotionHandoffAnimation(g, u, M);
2238
+ const P = window.MotionHandoffAnimation(g, u, D);
2239
2239
  P !== null && (d.startTime = P, y = !0);
2240
2240
  }
2241
2241
  }
2242
- ve(t, u), h.start(mn(u, h, f, t.shouldReduceMotion && Ai.has(u) ? { type: !1 } : d, t, y));
2242
+ ye(t, u), h.start(mn(u, h, f, t.shouldReduceMotion && Ai.has(u) ? { type: !1 } : d, t, y));
2243
2243
  const v = h.animation;
2244
2244
  v && l.push(v);
2245
2245
  }
2246
2246
  return r && Promise.all(l).then(() => {
2247
- M.update(() => {
2248
- r && ho(t, r);
2247
+ D.update(() => {
2248
+ r && uo(t, r);
2249
2249
  });
2250
2250
  }), l;
2251
2251
  }
2252
- function Ee(t, e, n = {}) {
2252
+ function Ce(t, e, n = {}) {
2253
2253
  const s = Ct(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
2254
2254
  let { transition: i = t.getDefaultTransition() || {} } = s || {};
2255
2255
  n.transitionOverride && (i = n.transitionOverride);
2256
2256
  const o = s ? () => Promise.all(Vi(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
2257
2257
  const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = i;
2258
- return Ka(t, e, c + l, u, h, n);
2258
+ return Na(t, e, c + l, u, h, n);
2259
2259
  } : () => Promise.resolve(), { when: a } = i;
2260
2260
  if (a) {
2261
2261
  const [l, c] = a === "beforeChildren" ? [o, r] : [r, o];
@@ -2263,26 +2263,26 @@ function Ee(t, e, n = {}) {
2263
2263
  } else
2264
2264
  return Promise.all([o(), r(n.delay)]);
2265
2265
  }
2266
- function Ka(t, e, n = 0, s = 0, i = 1, o) {
2266
+ function Na(t, e, n = 0, s = 0, i = 1, o) {
2267
2267
  const r = [], a = (t.variantChildren.size - 1) * s, l = i === 1 ? (c = 0) => c * s : (c = 0) => a - c * s;
2268
- return Array.from(t.variantChildren).sort(Wa).forEach((c, u) => {
2269
- c.notify("AnimationStart", e), r.push(Ee(c, e, {
2268
+ return Array.from(t.variantChildren).sort(Ua).forEach((c, u) => {
2269
+ c.notify("AnimationStart", e), r.push(Ce(c, e, {
2270
2270
  ...o,
2271
2271
  delay: n + l(u)
2272
2272
  }).then(() => c.notify("AnimationComplete", e)));
2273
2273
  }), Promise.all(r);
2274
2274
  }
2275
- function Wa(t, e) {
2275
+ function Ua(t, e) {
2276
2276
  return t.sortNodePosition(e);
2277
2277
  }
2278
- function $a(t, e, n = {}) {
2278
+ function Ka(t, e, n = {}) {
2279
2279
  t.notify("AnimationStart", e);
2280
2280
  let s;
2281
2281
  if (Array.isArray(e)) {
2282
- const i = e.map((o) => Ee(t, o, n));
2282
+ const i = e.map((o) => Ce(t, o, n));
2283
2283
  s = Promise.all(i);
2284
2284
  } else if (typeof e == "string")
2285
- s = Ee(t, e, n);
2285
+ s = Ce(t, e, n);
2286
2286
  else {
2287
2287
  const i = typeof e == "function" ? Ct(t, e, n.custom) : e;
2288
2288
  s = Promise.all(Vi(t, i, n));
@@ -2291,7 +2291,7 @@ function $a(t, e, n = {}) {
2291
2291
  t.notify("AnimationComplete", e);
2292
2292
  });
2293
2293
  }
2294
- function Mi(t, e) {
2294
+ function Di(t, e) {
2295
2295
  if (!Array.isArray(e))
2296
2296
  return !1;
2297
2297
  const n = e.length;
@@ -2302,27 +2302,27 @@ function Mi(t, e) {
2302
2302
  return !1;
2303
2303
  return !0;
2304
2304
  }
2305
- const _a = Ke.length;
2306
- function Di(t) {
2305
+ const $a = Ke.length;
2306
+ function Mi(t) {
2307
2307
  if (!t)
2308
2308
  return;
2309
2309
  if (!t.isControllingVariants) {
2310
- const n = t.parent ? Di(t.parent) || {} : {};
2310
+ const n = t.parent ? Mi(t.parent) || {} : {};
2311
2311
  return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
2312
2312
  }
2313
2313
  const e = {};
2314
- for (let n = 0; n < _a; n++) {
2314
+ for (let n = 0; n < $a; n++) {
2315
2315
  const s = Ke[n], i = t.props[s];
2316
2316
  (Vt(i) || i === !1) && (e[s] = i);
2317
2317
  }
2318
2318
  return e;
2319
2319
  }
2320
- const Ga = [...Ue].reverse(), Ha = Ue.length;
2321
- function za(t) {
2322
- return (e) => Promise.all(e.map(({ animation: n, options: s }) => $a(t, n, s)));
2320
+ const Wa = [...Ue].reverse(), _a = Ue.length;
2321
+ function Ga(t) {
2322
+ return (e) => Promise.all(e.map(({ animation: n, options: s }) => Ka(t, n, s)));
2323
2323
  }
2324
- function Ya(t) {
2325
- let e = za(t), n = Nn(), s = !0;
2324
+ function Ha(t) {
2325
+ let e = Ga(t), n = Nn(), s = !0;
2326
2326
  const i = (l) => (c, u) => {
2327
2327
  const h = Ct(t, u, l === "exit" ? t.presenceContext?.custom : void 0);
2328
2328
  if (h) {
@@ -2335,40 +2335,40 @@ function Ya(t) {
2335
2335
  e = l(t);
2336
2336
  }
2337
2337
  function r(l) {
2338
- const { props: c } = t, u = Di(t.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
2338
+ const { props: c } = t, u = Mi(t.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
2339
2339
  let d = {}, m = 1 / 0;
2340
- for (let v = 0; v < Ha; v++) {
2341
- const g = Ga[v], P = n[g], p = c[g] !== void 0 ? c[g] : u[g], b = Vt(p), x = g === l ? P.isActive : null;
2340
+ for (let v = 0; v < _a; v++) {
2341
+ const g = Wa[v], P = n[g], p = c[g] !== void 0 ? c[g] : u[g], b = Vt(p), x = g === l ? P.isActive : null;
2342
2342
  x === !1 && (m = v);
2343
2343
  let w = p === u[g] && p !== c[g] && b;
2344
2344
  if (w && s && t.manuallyAnimateOnMount && (w = !1), P.protectedKeys = { ...d }, // If it isn't active and hasn't *just* been set as inactive
2345
2345
  !P.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
2346
2346
  !p && !P.prevProp || // Or if the prop doesn't define an animation
2347
- Qt(p) || typeof p == "boolean")
2347
+ Jt(p) || typeof p == "boolean")
2348
2348
  continue;
2349
- const C = Xa(P.prevProp, p);
2349
+ const C = za(P.prevProp, p);
2350
2350
  let S = C || // If we're making this variant active, we want to always make it active
2351
2351
  g === l && P.isActive && !w && b || // If we removed a higher-priority variant (i is in reverse order)
2352
- v > m && b, F = !1;
2352
+ v > m && b, B = !1;
2353
2353
  const j = Array.isArray(p) ? p : [p];
2354
2354
  let ot = j.reduce(i(g), {});
2355
2355
  x === !1 && (ot = {});
2356
- const { prevResolvedValues: gn = {} } = P, lr = {
2356
+ const { prevResolvedValues: gn = {} } = P, ar = {
2357
2357
  ...gn,
2358
2358
  ...ot
2359
2359
  }, yn = (k) => {
2360
- S = !0, f.has(k) && (F = !0, f.delete(k)), P.needsAnimating[k] = !0;
2360
+ S = !0, f.has(k) && (B = !0, f.delete(k)), P.needsAnimating[k] = !0;
2361
2361
  const H = t.getValue(k);
2362
2362
  H && (H.liveStyle = !1);
2363
2363
  };
2364
- for (const k in lr) {
2365
- const H = ot[k], ee = gn[k];
2364
+ for (const k in ar) {
2365
+ const H = ot[k], te = gn[k];
2366
2366
  if (d.hasOwnProperty(k))
2367
2367
  continue;
2368
- let ne = !1;
2369
- ye(H) && ye(ee) ? ne = !Mi(H, ee) : ne = H !== ee, ne ? H != null ? yn(k) : f.add(k) : H !== void 0 && f.has(k) ? yn(k) : P.protectedKeys[k] = !0;
2368
+ let ee = !1;
2369
+ ge(H) && ge(te) ? ee = !Di(H, te) : ee = H !== te, ee ? H != null ? yn(k) : f.add(k) : H !== void 0 && f.has(k) ? yn(k) : P.protectedKeys[k] = !0;
2370
2370
  }
2371
- P.prevProp = p, P.prevResolvedValues = ot, P.isActive && (d = { ...d, ...ot }), s && t.blockInitialAnimation && (S = !1), S && (!(w && C) || F) && h.push(...j.map((k) => ({
2371
+ P.prevProp = p, P.prevResolvedValues = ot, P.isActive && (d = { ...d, ...ot }), s && t.blockInitialAnimation && (S = !1), S && (!(w && C) || B) && h.push(...j.map((k) => ({
2372
2372
  animation: k,
2373
2373
  options: { type: g }
2374
2374
  })));
@@ -2406,8 +2406,8 @@ function Ya(t) {
2406
2406
  }
2407
2407
  };
2408
2408
  }
2409
- function Xa(t, e) {
2410
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !Mi(e, t) : !1;
2409
+ function za(t, e) {
2410
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !Di(e, t) : !1;
2411
2411
  }
2412
2412
  function tt(t = !1) {
2413
2413
  return {
@@ -2435,18 +2435,18 @@ class Q {
2435
2435
  update() {
2436
2436
  }
2437
2437
  }
2438
- class qa extends Q {
2438
+ class Ya extends Q {
2439
2439
  /**
2440
2440
  * We dynamically generate the AnimationState manager as it contains a reference
2441
2441
  * to the underlying animation library. We only want to load that if we load this,
2442
2442
  * so people can optionally code split it out using the `m` component.
2443
2443
  */
2444
2444
  constructor(e) {
2445
- super(e), e.animationState || (e.animationState = Ya(e));
2445
+ super(e), e.animationState || (e.animationState = Ha(e));
2446
2446
  }
2447
2447
  updateAnimationControlsSubscription() {
2448
2448
  const { animate: e } = this.node.getProps();
2449
- Qt(e) && (this.unmountControls = e.subscribe(this.node));
2449
+ Jt(e) && (this.unmountControls = e.subscribe(this.node));
2450
2450
  }
2451
2451
  /**
2452
2452
  * Subscribe any provided AnimationControls to the component's VisualElement
@@ -2462,10 +2462,10 @@ class qa extends Q {
2462
2462
  this.node.animationState.reset(), this.unmountControls?.();
2463
2463
  }
2464
2464
  }
2465
- let Za = 0;
2466
- class Ja extends Q {
2465
+ let Xa = 0;
2466
+ class qa extends Q {
2467
2467
  constructor() {
2468
- super(...arguments), this.id = Za++;
2468
+ super(...arguments), this.id = Xa++;
2469
2469
  }
2470
2470
  update() {
2471
2471
  if (!this.node.presenceContext)
@@ -2485,12 +2485,12 @@ class Ja extends Q {
2485
2485
  unmount() {
2486
2486
  }
2487
2487
  }
2488
- const Qa = {
2488
+ const Za = {
2489
2489
  animation: {
2490
- Feature: qa
2490
+ Feature: Ya
2491
2491
  },
2492
2492
  exit: {
2493
- Feature: Ja
2493
+ Feature: qa
2494
2494
  }
2495
2495
  };
2496
2496
  function Lt(t, e, n, s = { passive: !0 }) {
@@ -2505,9 +2505,9 @@ function Ot(t) {
2505
2505
  }
2506
2506
  };
2507
2507
  }
2508
- const tl = (t) => (e) => pn(e) && t(e, Ot(e));
2508
+ const Ja = (t) => (e) => pn(e) && t(e, Ot(e));
2509
2509
  function bt(t, e, n, s) {
2510
- return Lt(t, e, tl(n), s);
2510
+ return Lt(t, e, Ja(n), s);
2511
2511
  }
2512
2512
  function Ci({ top: t, left: e, right: n, bottom: s }) {
2513
2513
  return {
@@ -2515,10 +2515,10 @@ function Ci({ top: t, left: e, right: n, bottom: s }) {
2515
2515
  y: { min: t, max: s }
2516
2516
  };
2517
2517
  }
2518
- function el({ x: t, y: e }) {
2518
+ function Qa({ x: t, y: e }) {
2519
2519
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
2520
2520
  }
2521
- function nl(t, e) {
2521
+ function tl(t, e) {
2522
2522
  if (!e)
2523
2523
  return t;
2524
2524
  const n = e({ x: t.left, y: t.top }), s = e({ x: t.right, y: t.bottom });
@@ -2529,54 +2529,54 @@ function nl(t, e) {
2529
2529
  right: s.x
2530
2530
  };
2531
2531
  }
2532
- const Ei = 1e-4, sl = 1 - Ei, il = 1 + Ei, Ri = 0.01, rl = 0 - Ri, ol = 0 + Ri;
2533
- function B(t) {
2532
+ const Ei = 1e-4, el = 1 - Ei, nl = 1 + Ei, Ri = 0.01, sl = 0 - Ri, il = 0 + Ri;
2533
+ function F(t) {
2534
2534
  return t.max - t.min;
2535
2535
  }
2536
- function al(t, e, n) {
2536
+ function rl(t, e, n) {
2537
2537
  return Math.abs(t - e) <= n;
2538
2538
  }
2539
2539
  function Un(t, e, n, s = 0.5) {
2540
- t.origin = s, t.originPoint = V(e.min, e.max, t.origin), t.scale = B(n) / B(e), t.translate = V(n.min, n.max, t.origin) - t.originPoint, (t.scale >= sl && t.scale <= il || isNaN(t.scale)) && (t.scale = 1), (t.translate >= rl && t.translate <= ol || isNaN(t.translate)) && (t.translate = 0);
2540
+ t.origin = s, t.originPoint = V(e.min, e.max, t.origin), t.scale = F(n) / F(e), t.translate = V(n.min, n.max, t.origin) - t.originPoint, (t.scale >= el && t.scale <= nl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= sl && t.translate <= il || isNaN(t.translate)) && (t.translate = 0);
2541
2541
  }
2542
2542
  function wt(t, e, n, s) {
2543
2543
  Un(t.x, e.x, n.x, s ? s.originX : void 0), Un(t.y, e.y, n.y, s ? s.originY : void 0);
2544
2544
  }
2545
2545
  function Kn(t, e, n) {
2546
- t.min = n.min + e.min, t.max = t.min + B(e);
2546
+ t.min = n.min + e.min, t.max = t.min + F(e);
2547
2547
  }
2548
- function ll(t, e, n) {
2548
+ function ol(t, e, n) {
2549
2549
  Kn(t.x, e.x, n.x), Kn(t.y, e.y, n.y);
2550
2550
  }
2551
- function Wn(t, e, n) {
2552
- t.min = e.min - n.min, t.max = t.min + B(e);
2551
+ function $n(t, e, n) {
2552
+ t.min = e.min - n.min, t.max = t.min + F(e);
2553
2553
  }
2554
2554
  function At(t, e, n) {
2555
- Wn(t.x, e.x, n.x), Wn(t.y, e.y, n.y);
2555
+ $n(t.x, e.x, n.x), $n(t.y, e.y, n.y);
2556
2556
  }
2557
- const $n = () => ({
2557
+ const Wn = () => ({
2558
2558
  translate: 0,
2559
2559
  scale: 1,
2560
2560
  origin: 0,
2561
2561
  originPoint: 0
2562
2562
  }), ct = () => ({
2563
- x: $n(),
2564
- y: $n()
2565
- }), _n = () => ({ min: 0, max: 0 }), D = () => ({
2563
+ x: Wn(),
2564
+ y: Wn()
2565
+ }), _n = () => ({ min: 0, max: 0 }), M = () => ({
2566
2566
  x: _n(),
2567
2567
  y: _n()
2568
2568
  });
2569
2569
  function U(t) {
2570
2570
  return [t("x"), t("y")];
2571
2571
  }
2572
- function le(t) {
2572
+ function ae(t) {
2573
2573
  return t === void 0 || t === 1;
2574
2574
  }
2575
- function Re({ scale: t, scaleX: e, scaleY: n }) {
2576
- return !le(t) || !le(e) || !le(n);
2575
+ function Ee({ scale: t, scaleX: e, scaleY: n }) {
2576
+ return !ae(t) || !ae(e) || !ae(n);
2577
2577
  }
2578
2578
  function et(t) {
2579
- return Re(t) || Li(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2579
+ return Ee(t) || Li(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2580
2580
  }
2581
2581
  function Li(t) {
2582
2582
  return Gn(t.x) || Gn(t.y);
@@ -2591,14 +2591,14 @@ function Xt(t, e, n) {
2591
2591
  function Hn(t, e, n, s, i) {
2592
2592
  return i !== void 0 && (t = Xt(t, i, s)), Xt(t, n, s) + e;
2593
2593
  }
2594
- function Le(t, e = 0, n = 1, s, i) {
2594
+ function Re(t, e = 0, n = 1, s, i) {
2595
2595
  t.min = Hn(t.min, e, n, s, i), t.max = Hn(t.max, e, n, s, i);
2596
2596
  }
2597
2597
  function ki(t, { x: e, y: n }) {
2598
- Le(t.x, e.translate, e.scale, e.originPoint), Le(t.y, n.translate, n.scale, n.originPoint);
2598
+ Re(t.x, e.translate, e.scale, e.originPoint), Re(t.y, n.translate, n.scale, n.originPoint);
2599
2599
  }
2600
2600
  const zn = 0.999999999999, Yn = 1.0000000000001;
2601
- function ul(t, e, n, s = !1) {
2601
+ function al(t, e, n, s = !1) {
2602
2602
  const i = n.length;
2603
2603
  if (!i)
2604
2604
  return;
@@ -2619,20 +2619,20 @@ function ht(t, e) {
2619
2619
  }
2620
2620
  function Xn(t, e, n, s, i = 0.5) {
2621
2621
  const o = V(t.min, t.max, i);
2622
- Le(t, e, n, o, s);
2622
+ Re(t, e, n, o, s);
2623
2623
  }
2624
2624
  function ft(t, e) {
2625
2625
  Xn(t.x, e.x, e.scaleX, e.scale, e.originX), Xn(t.y, e.y, e.scaleY, e.scale, e.originY);
2626
2626
  }
2627
- function Bi(t, e) {
2628
- return Ci(nl(t.getBoundingClientRect(), e));
2627
+ function Fi(t, e) {
2628
+ return Ci(tl(t.getBoundingClientRect(), e));
2629
2629
  }
2630
- function cl(t, e, n) {
2631
- const s = Bi(t, n), { scroll: i } = e;
2630
+ function ll(t, e, n) {
2631
+ const s = Fi(t, n), { scroll: i } = e;
2632
2632
  return i && (ht(s.x, i.offset.x), ht(s.y, i.offset.y)), s;
2633
2633
  }
2634
- const Fi = ({ current: t }) => t ? t.ownerDocument.defaultView : null, qn = (t, e) => Math.abs(t - e);
2635
- function hl(t, e) {
2634
+ const Bi = ({ current: t }) => t ? t.ownerDocument.defaultView : null, qn = (t, e) => Math.abs(t - e);
2635
+ function ul(t, e) {
2636
2636
  const n = qn(t.x, e.x), s = qn(t.y, e.y);
2637
2637
  return Math.sqrt(n ** 2 + s ** 2);
2638
2638
  }
@@ -2641,7 +2641,7 @@ class Oi {
2641
2641
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
2642
2642
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
2643
2643
  return;
2644
- const h = ce(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, d = hl(h.offset, { x: 0, y: 0 }) >= 3;
2644
+ const h = ue(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, d = ul(h.offset, { x: 0, y: 0 }) >= 3;
2645
2645
  if (!f && !d)
2646
2646
  return;
2647
2647
  const { point: m } = h, { timestamp: y } = E;
@@ -2649,21 +2649,21 @@ class Oi {
2649
2649
  const { onStart: v, onMove: g } = this.handlers;
2650
2650
  f || (v && v(this.lastMoveEvent, h), this.startEvent = this.lastMoveEvent), g && g(this.lastMoveEvent, h);
2651
2651
  }, this.handlePointerMove = (h, f) => {
2652
- this.lastMoveEvent = h, this.lastMoveEventInfo = ue(f, this.transformPagePoint), M.update(this.updatePoint, !0);
2652
+ this.lastMoveEvent = h, this.lastMoveEventInfo = le(f, this.transformPagePoint), D.update(this.updatePoint, !0);
2653
2653
  }, this.handlePointerUp = (h, f) => {
2654
2654
  this.end();
2655
2655
  const { onEnd: d, onSessionEnd: m, resumeAnimation: y } = this.handlers;
2656
2656
  if (this.dragSnapToOrigin && y && y(), !(this.lastMoveEvent && this.lastMoveEventInfo))
2657
2657
  return;
2658
- const v = ce(h.type === "pointercancel" ? this.lastMoveEventInfo : ue(f, this.transformPagePoint), this.history);
2658
+ const v = ue(h.type === "pointercancel" ? this.lastMoveEventInfo : le(f, this.transformPagePoint), this.history);
2659
2659
  this.startEvent && d && d(h, v), m && m(h, v);
2660
2660
  }, !pn(e))
2661
2661
  return;
2662
2662
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = s, this.contextWindow = i || window;
2663
- const r = Ot(e), a = ue(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = E;
2663
+ const r = Ot(e), a = le(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = E;
2664
2664
  this.history = [{ ...l, timestamp: c }];
2665
2665
  const { onSessionStart: u } = n;
2666
- u && u(e, ce(a, this.history)), this.removeListeners = Bt(bt(this.contextWindow, "pointermove", this.handlePointerMove), bt(this.contextWindow, "pointerup", this.handlePointerUp), bt(this.contextWindow, "pointercancel", this.handlePointerUp));
2666
+ u && u(e, ue(a, this.history)), this.removeListeners = Ft(bt(this.contextWindow, "pointermove", this.handlePointerMove), bt(this.contextWindow, "pointerup", this.handlePointerUp), bt(this.contextWindow, "pointercancel", this.handlePointerUp));
2667
2667
  }
2668
2668
  updateHandlers(e) {
2669
2669
  this.handlers = e;
@@ -2672,32 +2672,32 @@ class Oi {
2672
2672
  this.removeListeners && this.removeListeners(), Z(this.updatePoint);
2673
2673
  }
2674
2674
  }
2675
- function ue(t, e) {
2675
+ function le(t, e) {
2676
2676
  return e ? { point: e(t.point) } : t;
2677
2677
  }
2678
2678
  function Zn(t, e) {
2679
2679
  return { x: t.x - e.x, y: t.y - e.y };
2680
2680
  }
2681
- function ce({ point: t }, e) {
2681
+ function ue({ point: t }, e) {
2682
2682
  return {
2683
2683
  point: t,
2684
2684
  delta: Zn(t, Ii(e)),
2685
- offset: Zn(t, fl(e)),
2686
- velocity: dl(e, 0.1)
2685
+ offset: Zn(t, cl(e)),
2686
+ velocity: hl(e, 0.1)
2687
2687
  };
2688
2688
  }
2689
- function fl(t) {
2689
+ function cl(t) {
2690
2690
  return t[0];
2691
2691
  }
2692
2692
  function Ii(t) {
2693
2693
  return t[t.length - 1];
2694
2694
  }
2695
- function dl(t, e) {
2695
+ function hl(t, e) {
2696
2696
  if (t.length < 2)
2697
2697
  return { x: 0, y: 0 };
2698
2698
  let n = t.length - 1, s = null;
2699
2699
  const i = Ii(t);
2700
- for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ $(e))); )
2700
+ for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ W(e))); )
2701
2701
  n--;
2702
2702
  if (!s)
2703
2703
  return { x: 0, y: 0 };
@@ -2710,7 +2710,7 @@ function dl(t, e) {
2710
2710
  };
2711
2711
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
2712
2712
  }
2713
- function ml(t, { min: e, max: n }, s) {
2713
+ function fl(t, { min: e, max: n }, s) {
2714
2714
  return e !== void 0 && t < e ? t = s ? V(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? V(n, t, s.max) : Math.min(t, n)), t;
2715
2715
  }
2716
2716
  function Jn(t, e, n) {
@@ -2719,7 +2719,7 @@ function Jn(t, e, n) {
2719
2719
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
2720
2720
  };
2721
2721
  }
2722
- function pl(t, { top: e, left: n, bottom: s, right: i }) {
2722
+ function dl(t, { top: e, left: n, bottom: s, right: i }) {
2723
2723
  return {
2724
2724
  x: Jn(t.x, n, i),
2725
2725
  y: Jn(t.y, e, s)
@@ -2729,24 +2729,24 @@ function Qn(t, e) {
2729
2729
  let n = e.min - t.min, s = e.max - t.max;
2730
2730
  return e.max - e.min < t.max - t.min && ([n, s] = [s, n]), { min: n, max: s };
2731
2731
  }
2732
- function gl(t, e) {
2732
+ function ml(t, e) {
2733
2733
  return {
2734
2734
  x: Qn(t.x, e.x),
2735
2735
  y: Qn(t.y, e.y)
2736
2736
  };
2737
2737
  }
2738
- function yl(t, e) {
2738
+ function pl(t, e) {
2739
2739
  let n = 0.5;
2740
- const s = B(t), i = B(e);
2740
+ const s = F(t), i = F(e);
2741
2741
  return i > s ? n = /* @__PURE__ */ Rt(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ Rt(t.min, t.max - i, e.min)), X(0, 1, n);
2742
2742
  }
2743
- function vl(t, e) {
2743
+ function gl(t, e) {
2744
2744
  const n = {};
2745
2745
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
2746
2746
  }
2747
- const ke = 0.35;
2748
- function Tl(t = ke) {
2749
- return t === !1 ? t = 0 : t === !0 && (t = ke), {
2747
+ const Le = 0.35;
2748
+ function yl(t = Le) {
2749
+ return t === !1 ? t = 0 : t === !0 && (t = Le), {
2750
2750
  x: ts(t, "left", "right"),
2751
2751
  y: ts(t, "top", "bottom")
2752
2752
  };
@@ -2760,24 +2760,24 @@ function ts(t, e, n) {
2760
2760
  function es(t, e) {
2761
2761
  return typeof t == "number" ? t : t[e] || 0;
2762
2762
  }
2763
- const W = {
2763
+ const $ = {
2764
2764
  x: !1,
2765
2765
  y: !1
2766
2766
  };
2767
2767
  function ji() {
2768
- return W.x || W.y;
2768
+ return $.x || $.y;
2769
2769
  }
2770
- function xl(t) {
2771
- return t === "x" || t === "y" ? W[t] ? null : (W[t] = !0, () => {
2772
- W[t] = !1;
2773
- }) : W.x || W.y ? null : (W.x = W.y = !0, () => {
2774
- W.x = W.y = !1;
2770
+ function vl(t) {
2771
+ return t === "x" || t === "y" ? $[t] ? null : ($[t] = !0, () => {
2772
+ $[t] = !1;
2773
+ }) : $.x || $.y ? null : ($.x = $.y = !0, () => {
2774
+ $.x = $.y = !1;
2775
2775
  });
2776
2776
  }
2777
- const Pl = /* @__PURE__ */ new WeakMap();
2778
- class Sl {
2777
+ const Tl = /* @__PURE__ */ new WeakMap();
2778
+ class xl {
2779
2779
  constructor(e) {
2780
- this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = D(), this.visualElement = e;
2780
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = M(), this.visualElement = e;
2781
2781
  }
2782
2782
  start(e, { snapToCursor: n = !1 } = {}) {
2783
2783
  const { presenceContext: s } = this.visualElement;
@@ -2788,7 +2788,7 @@ class Sl {
2788
2788
  h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ot(u).point);
2789
2789
  }, o = (u, h) => {
2790
2790
  const { drag: f, dragPropagation: d, onDragStart: m } = this.getProps();
2791
- if (f && !d && (this.openDragLock && this.openDragLock(), this.openDragLock = xl(f), !this.openDragLock))
2791
+ if (f && !d && (this.openDragLock && this.openDragLock(), this.openDragLock = vl(f), !this.openDragLock))
2792
2792
  return;
2793
2793
  this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), U((v) => {
2794
2794
  let g = this.getAxisMotionValue(v).get() || 0;
@@ -2796,11 +2796,11 @@ class Sl {
2796
2796
  const { projection: P } = this.visualElement;
2797
2797
  if (P && P.layout) {
2798
2798
  const p = P.layout.layoutBox[v];
2799
- p && (g = B(p) * (parseFloat(g) / 100));
2799
+ p && (g = F(p) * (parseFloat(g) / 100));
2800
2800
  }
2801
2801
  }
2802
2802
  this.originPoint[v] = g;
2803
- }), m && M.postRender(() => m(u, h)), ve(this.visualElement, "transform");
2803
+ }), m && D.postRender(() => m(u, h)), ye(this.visualElement, "transform");
2804
2804
  const { animationState: y } = this.visualElement;
2805
2805
  y && y.setActive("whileDrag", !0);
2806
2806
  }, r = (u, h) => {
@@ -2809,7 +2809,7 @@ class Sl {
2809
2809
  return;
2810
2810
  const { offset: v } = h;
2811
2811
  if (d && this.currentDirection === null) {
2812
- this.currentDirection = bl(v), this.currentDirection !== null && m && m(this.currentDirection);
2812
+ this.currentDirection = Pl(v), this.currentDirection !== null && m && m(this.currentDirection);
2813
2813
  return;
2814
2814
  }
2815
2815
  this.updateAxis("x", h.point, v), this.updateAxis("y", h.point, v), this.visualElement.render(), y && y(u, h);
@@ -2823,7 +2823,7 @@ class Sl {
2823
2823
  }, {
2824
2824
  transformPagePoint: this.visualElement.getTransformPagePoint(),
2825
2825
  dragSnapToOrigin: c,
2826
- contextWindow: Fi(this.visualElement)
2826
+ contextWindow: Bi(this.visualElement)
2827
2827
  });
2828
2828
  }
2829
2829
  stop(e, n) {
@@ -2833,7 +2833,7 @@ class Sl {
2833
2833
  const { velocity: i } = n;
2834
2834
  this.startAnimation(i);
2835
2835
  const { onDragEnd: o } = this.getProps();
2836
- o && M.postRender(() => o(e, n));
2836
+ o && D.postRender(() => o(e, n));
2837
2837
  }
2838
2838
  cancel() {
2839
2839
  this.isDragging = !1;
@@ -2848,12 +2848,12 @@ class Sl {
2848
2848
  return;
2849
2849
  const o = this.getAxisMotionValue(e);
2850
2850
  let r = this.originPoint[e] + s[e];
2851
- this.constraints && this.constraints[e] && (r = ml(r, this.constraints[e], this.elastic[e])), o.set(r);
2851
+ this.constraints && this.constraints[e] && (r = fl(r, this.constraints[e], this.elastic[e])), o.set(r);
2852
2852
  }
2853
2853
  resolveConstraints() {
2854
2854
  const { dragConstraints: e, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, i = this.constraints;
2855
- e && at(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = pl(s.layoutBox, e) : this.constraints = !1, this.elastic = Tl(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && U((o) => {
2856
- this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = vl(s.layoutBox[o], this.constraints[o]));
2855
+ e && at(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = dl(s.layoutBox, e) : this.constraints = !1, this.elastic = yl(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && U((o) => {
2856
+ this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = gl(s.layoutBox[o], this.constraints[o]));
2857
2857
  });
2858
2858
  }
2859
2859
  resolveRefConstraints() {
@@ -2865,10 +2865,10 @@ class Sl {
2865
2865
  const { projection: i } = this.visualElement;
2866
2866
  if (!i || !i.layout)
2867
2867
  return !1;
2868
- const o = cl(s, i.root, this.visualElement.getTransformPagePoint());
2869
- let r = gl(i.layout.layoutBox, o);
2868
+ const o = ll(s, i.root, this.visualElement.getTransformPagePoint());
2869
+ let r = ml(i.layout.layoutBox, o);
2870
2870
  if (n) {
2871
- const a = n(el(r));
2871
+ const a = n(Qa(r));
2872
2872
  this.hasMutatedConstraints = !!a, a && (r = Ci(a));
2873
2873
  }
2874
2874
  return r;
@@ -2896,7 +2896,7 @@ class Sl {
2896
2896
  }
2897
2897
  startAxisValueAnimation(e, n) {
2898
2898
  const s = this.getAxisMotionValue(e);
2899
- return ve(this.visualElement, e), s.start(mn(e, s, 0, n, this.visualElement, !1));
2899
+ return ye(this.visualElement, e), s.start(mn(e, s, 0, n, this.visualElement, !1));
2900
2900
  }
2901
2901
  stopAnimation() {
2902
2902
  U((e) => this.getAxisMotionValue(e).stop());
@@ -2946,7 +2946,7 @@ class Sl {
2946
2946
  const a = this.getAxisMotionValue(r);
2947
2947
  if (a && this.constraints !== !1) {
2948
2948
  const l = a.get();
2949
- i[r] = yl({ min: l, max: l }, this.constraints[r]);
2949
+ i[r] = pl({ min: l, max: l }, this.constraints[r]);
2950
2950
  }
2951
2951
  });
2952
2952
  const { transformTemplate: o } = this.visualElement.getProps();
@@ -2960,7 +2960,7 @@ class Sl {
2960
2960
  addListeners() {
2961
2961
  if (!this.visualElement.current)
2962
2962
  return;
2963
- Pl.set(this.visualElement, this);
2963
+ Tl.set(this.visualElement, this);
2964
2964
  const e = this.visualElement.current, n = bt(e, "pointerdown", (l) => {
2965
2965
  const { drag: c, dragListener: u = !0 } = this.getProps();
2966
2966
  c && u && this.start(l);
@@ -2968,7 +2968,7 @@ class Sl {
2968
2968
  const { dragConstraints: l } = this.getProps();
2969
2969
  at(l) && l.current && (this.constraints = this.resolveRefConstraints());
2970
2970
  }, { projection: i } = this.visualElement, o = i.addEventListener("measure", s);
2971
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), M.read(s);
2971
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), D.read(s);
2972
2972
  const r = Lt(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
2973
2973
  this.isDragging && c && (U((u) => {
2974
2974
  const h = this.getAxisMotionValue(u);
@@ -2980,7 +2980,7 @@ class Sl {
2980
2980
  };
2981
2981
  }
2982
2982
  getProps() {
2983
- const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: r = ke, dragMomentum: a = !0 } = e;
2983
+ const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: r = Le, dragMomentum: a = !0 } = e;
2984
2984
  return {
2985
2985
  ...e,
2986
2986
  drag: n,
@@ -2995,13 +2995,13 @@ class Sl {
2995
2995
  function Nt(t, e, n) {
2996
2996
  return (e === !0 || e === t) && (n === null || n === t);
2997
2997
  }
2998
- function bl(t, e = 10) {
2998
+ function Pl(t, e = 10) {
2999
2999
  let n = null;
3000
3000
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
3001
3001
  }
3002
- class wl extends Q {
3002
+ class Sl extends Q {
3003
3003
  constructor(e) {
3004
- super(e), this.removeGroupControls = K, this.removeListeners = K, this.controls = new Sl(e);
3004
+ super(e), this.removeGroupControls = K, this.removeListeners = K, this.controls = new xl(e);
3005
3005
  }
3006
3006
  mount() {
3007
3007
  const { dragControls: e } = this.node.getProps();
@@ -3012,16 +3012,16 @@ class wl extends Q {
3012
3012
  }
3013
3013
  }
3014
3014
  const ns = (t) => (e, n) => {
3015
- t && M.postRender(() => t(e, n));
3015
+ t && D.postRender(() => t(e, n));
3016
3016
  };
3017
- class Al extends Q {
3017
+ class bl extends Q {
3018
3018
  constructor() {
3019
3019
  super(...arguments), this.removePointerDownListener = K;
3020
3020
  }
3021
3021
  onPointerDown(e) {
3022
3022
  this.session = new Oi(e, this.createPanHandlers(), {
3023
3023
  transformPagePoint: this.node.getTransformPagePoint(),
3024
- contextWindow: Fi(this.node)
3024
+ contextWindow: Bi(this.node)
3025
3025
  });
3026
3026
  }
3027
3027
  createPanHandlers() {
@@ -3031,7 +3031,7 @@ class Al extends Q {
3031
3031
  onStart: ns(n),
3032
3032
  onMove: s,
3033
3033
  onEnd: (o, r) => {
3034
- delete this.session, i && M.postRender(() => i(o, r));
3034
+ delete this.session, i && D.postRender(() => i(o, r));
3035
3035
  }
3036
3036
  };
3037
3037
  }
@@ -3045,7 +3045,7 @@ class Al extends Q {
3045
3045
  this.removePointerDownListener(), this.session && this.session.end();
3046
3046
  }
3047
3047
  }
3048
- const $t = {
3048
+ const Wt = {
3049
3049
  /**
3050
3050
  * Global flag as to whether the tree has animated since the last time
3051
3051
  * we resized the window
@@ -3072,7 +3072,7 @@ const xt = {
3072
3072
  const n = ss(t, e.target.x), s = ss(t, e.target.y);
3073
3073
  return `${n}% ${s}%`;
3074
3074
  }
3075
- }, Vl = {
3075
+ }, wl = {
3076
3076
  correct: (t, { treeScale: e, projectionDelta: n }) => {
3077
3077
  const s = t, i = J.parse(t);
3078
3078
  if (i.length > 5)
@@ -3083,7 +3083,7 @@ const xt = {
3083
3083
  return typeof i[2 + r] == "number" && (i[2 + r] /= c), typeof i[3 + r] == "number" && (i[3 + r] /= c), o(i);
3084
3084
  }
3085
3085
  };
3086
- class Ml extends mr {
3086
+ class Al extends dr {
3087
3087
  /**
3088
3088
  * This only mounts projection nodes for components that
3089
3089
  * need measuring, we might want to do it for all components
@@ -3091,23 +3091,23 @@ class Ml extends mr {
3091
3091
  */
3092
3092
  componentDidMount() {
3093
3093
  const { visualElement: e, layoutGroup: n, switchLayoutGroup: s, layoutId: i } = this.props, { projection: o } = e;
3094
- Nr(Dl), o && (n.group && n.group.add(o), s && s.register && i && s.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
3094
+ Ir(Vl), o && (n.group && n.group.add(o), s && s.register && i && s.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
3095
3095
  this.safeToRemove();
3096
3096
  }), o.setOptions({
3097
3097
  ...o.options,
3098
3098
  onExitComplete: () => this.safeToRemove()
3099
- })), $t.hasEverUpdated = !0;
3099
+ })), Wt.hasEverUpdated = !0;
3100
3100
  }
3101
3101
  getSnapshotBeforeUpdate(e) {
3102
3102
  const { layoutDependency: n, visualElement: s, drag: i, isPresent: o } = this.props, { projection: r } = s;
3103
- return r && (r.isPresent = o, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== o ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || M.postRender(() => {
3103
+ return r && (r.isPresent = o, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== o ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || D.postRender(() => {
3104
3104
  const a = r.getStack();
3105
3105
  (!a || !a.members.length) && this.safeToRemove();
3106
3106
  }))), null;
3107
3107
  }
3108
3108
  componentDidUpdate() {
3109
3109
  const { projection: e } = this.props.visualElement;
3110
- e && (e.root.didUpdate(), $e.postRender(() => {
3110
+ e && (e.root.didUpdate(), We.postRender(() => {
3111
3111
  !e.currentAnimation && e.isLead() && this.safeToRemove();
3112
3112
  }));
3113
3113
  }
@@ -3124,10 +3124,10 @@ class Ml extends mr {
3124
3124
  }
3125
3125
  }
3126
3126
  function Ni(t) {
3127
- const [e, n] = vr(), s = O(ks);
3128
- return ge.jsx(Ml, { ...t, layoutGroup: s, switchLayoutGroup: O(Us), isPresent: e, safeToRemove: n });
3127
+ const [e, n] = gr(), s = O(ks);
3128
+ return pe.jsx(Al, { ...t, layoutGroup: s, switchLayoutGroup: O(Us), isPresent: e, safeToRemove: n });
3129
3129
  }
3130
- const Dl = {
3130
+ const Vl = {
3131
3131
  borderRadius: {
3132
3132
  ...xt,
3133
3133
  applyTo: [
@@ -3141,17 +3141,17 @@ const Dl = {
3141
3141
  borderTopRightRadius: xt,
3142
3142
  borderBottomLeftRadius: xt,
3143
3143
  borderBottomRightRadius: xt,
3144
- boxShadow: Vl
3144
+ boxShadow: wl
3145
3145
  };
3146
- function Cl(t, e, n) {
3146
+ function Dl(t, e, n) {
3147
3147
  const s = L(t) ? t : mt(t);
3148
3148
  return s.start(mn("", s, e, n)), s.animation;
3149
3149
  }
3150
- function El(t) {
3150
+ function Ml(t) {
3151
3151
  return t instanceof SVGElement && t.tagName !== "svg";
3152
3152
  }
3153
- const Rl = (t, e) => t.depth - e.depth;
3154
- class Ll {
3153
+ const Cl = (t, e) => t.depth - e.depth;
3154
+ class El {
3155
3155
  constructor() {
3156
3156
  this.children = [], this.isDirty = !1;
3157
3157
  }
@@ -3162,20 +3162,20 @@ class Ll {
3162
3162
  Qe(this.children, e), this.isDirty = !0;
3163
3163
  }
3164
3164
  forEach(e) {
3165
- this.isDirty && this.children.sort(Rl), this.isDirty = !1, this.children.forEach(e);
3165
+ this.isDirty && this.children.sort(Cl), this.isDirty = !1, this.children.forEach(e);
3166
3166
  }
3167
3167
  }
3168
- function kl(t, e) {
3168
+ function Rl(t, e) {
3169
3169
  const n = I.now(), s = ({ timestamp: i }) => {
3170
3170
  const o = i - n;
3171
3171
  o >= e && (Z(s), t(o - e));
3172
3172
  };
3173
- return M.setup(s, !0), () => Z(s);
3173
+ return D.setup(s, !0), () => Z(s);
3174
3174
  }
3175
- const Ui = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Bl = Ui.length, is = (t) => typeof t == "string" ? parseFloat(t) : t, rs = (t) => typeof t == "number" || T.test(t);
3176
- function Fl(t, e, n, s, i, o) {
3177
- i ? (t.opacity = V(0, n.opacity ?? 1, Ol(s)), t.opacityExit = V(e.opacity ?? 1, 0, Il(s))) : o && (t.opacity = V(e.opacity ?? 1, n.opacity ?? 1, s));
3178
- for (let r = 0; r < Bl; r++) {
3175
+ const Ui = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Ll = Ui.length, is = (t) => typeof t == "string" ? parseFloat(t) : t, rs = (t) => typeof t == "number" || T.test(t);
3176
+ function kl(t, e, n, s, i, o) {
3177
+ i ? (t.opacity = V(0, n.opacity ?? 1, Fl(s)), t.opacityExit = V(e.opacity ?? 1, 0, Bl(s))) : o && (t.opacity = V(e.opacity ?? 1, n.opacity ?? 1, s));
3178
+ for (let r = 0; r < Ll; r++) {
3179
3179
  const a = `border${Ui[r]}Radius`;
3180
3180
  let l = os(e, a), c = os(n, a);
3181
3181
  if (l === void 0 && c === void 0)
@@ -3187,7 +3187,7 @@ function Fl(t, e, n, s, i, o) {
3187
3187
  function os(t, e) {
3188
3188
  return t[e] !== void 0 ? t[e] : t.borderRadius;
3189
3189
  }
3190
- const Ol = /* @__PURE__ */ Ki(0, 0.5, pi), Il = /* @__PURE__ */ Ki(0.5, 0.95, K);
3190
+ const Fl = /* @__PURE__ */ Ki(0, 0.5, pi), Bl = /* @__PURE__ */ Ki(0.5, 0.95, K);
3191
3191
  function Ki(t, e, n) {
3192
3192
  return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Rt(t, e, s));
3193
3193
  }
@@ -3203,44 +3203,44 @@ function ls(t, e) {
3203
3203
  function us(t, e, n, s, i) {
3204
3204
  return t -= e, t = Xt(t, 1 / n, s), i !== void 0 && (t = Xt(t, 1 / i, s)), t;
3205
3205
  }
3206
- function jl(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
3206
+ function Ol(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
3207
3207
  if (_.test(e) && (e = parseFloat(e), e = V(r.min, r.max, e / 100) - r.min), typeof e != "number")
3208
3208
  return;
3209
3209
  let a = V(o.min, o.max, s);
3210
3210
  t === o && (a -= e), t.min = us(t.min, e, n, a, i), t.max = us(t.max, e, n, a, i);
3211
3211
  }
3212
3212
  function cs(t, e, [n, s, i], o, r) {
3213
- jl(t, e[n], e[s], e[i], e.scale, o, r);
3213
+ Ol(t, e[n], e[s], e[i], e.scale, o, r);
3214
3214
  }
3215
- const Nl = ["x", "scaleX", "originX"], Ul = ["y", "scaleY", "originY"];
3215
+ const Il = ["x", "scaleX", "originX"], jl = ["y", "scaleY", "originY"];
3216
3216
  function hs(t, e, n, s) {
3217
- cs(t.x, e, Nl, n ? n.x : void 0, s ? s.x : void 0), cs(t.y, e, Ul, n ? n.y : void 0, s ? s.y : void 0);
3217
+ cs(t.x, e, Il, n ? n.x : void 0, s ? s.x : void 0), cs(t.y, e, jl, n ? n.y : void 0, s ? s.y : void 0);
3218
3218
  }
3219
3219
  function fs(t) {
3220
3220
  return t.translate === 0 && t.scale === 1;
3221
3221
  }
3222
- function Wi(t) {
3222
+ function $i(t) {
3223
3223
  return fs(t.x) && fs(t.y);
3224
3224
  }
3225
3225
  function ds(t, e) {
3226
3226
  return t.min === e.min && t.max === e.max;
3227
3227
  }
3228
- function Kl(t, e) {
3228
+ function Nl(t, e) {
3229
3229
  return ds(t.x, e.x) && ds(t.y, e.y);
3230
3230
  }
3231
3231
  function ms(t, e) {
3232
3232
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
3233
3233
  }
3234
- function $i(t, e) {
3234
+ function Wi(t, e) {
3235
3235
  return ms(t.x, e.x) && ms(t.y, e.y);
3236
3236
  }
3237
3237
  function ps(t) {
3238
- return B(t.x) / B(t.y);
3238
+ return F(t.x) / F(t.y);
3239
3239
  }
3240
3240
  function gs(t, e) {
3241
3241
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
3242
3242
  }
3243
- class Wl {
3243
+ class Ul {
3244
3244
  constructor() {
3245
3245
  this.members = [];
3246
3246
  }
@@ -3294,7 +3294,7 @@ class Wl {
3294
3294
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
3295
3295
  }
3296
3296
  }
3297
- function $l(t, e, n) {
3297
+ function Kl(t, e, n) {
3298
3298
  let s = "";
3299
3299
  const i = t.x.translate / e.x, o = t.y.translate / e.y, r = n?.z || 0;
3300
3300
  if ((i || o || r) && (s = `translate3d(${i}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (s += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
@@ -3304,9 +3304,9 @@ function $l(t, e, n) {
3304
3304
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
3305
3305
  return (a !== 1 || l !== 1) && (s += `scale(${a}, ${l})`), s || "none";
3306
3306
  }
3307
- const he = ["", "X", "Y", "Z"], _l = { visibility: "hidden" }, Gl = 1e3;
3308
- let Hl = 0;
3309
- function fe(t, e, n, s) {
3307
+ const ce = ["", "X", "Y", "Z"], $l = { visibility: "hidden" }, Wl = 1e3;
3308
+ let _l = 0;
3309
+ function he(t, e, n, s) {
3310
3310
  const { latestValues: i } = e;
3311
3311
  i[t] && (n[t] = i[t], e.setStaticValue(t, 0), s && (s[t] = 0));
3312
3312
  }
@@ -3319,7 +3319,7 @@ function _i(t) {
3319
3319
  const n = Js(e);
3320
3320
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
3321
3321
  const { layout: i, layoutId: o } = t.options;
3322
- window.MotionCancelOptimisedAnimation(n, "transform", M, !(i || o));
3322
+ window.MotionCancelOptimisedAnimation(n, "transform", D, !(i || o));
3323
3323
  }
3324
3324
  const { parent: s } = t;
3325
3325
  s && !s.hasCheckedOptimisedAppear && _i(s);
@@ -3327,14 +3327,14 @@ function _i(t) {
3327
3327
  function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
3328
3328
  return class {
3329
3329
  constructor(r = {}, a = e?.()) {
3330
- this.id = Hl++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3330
+ this.id = _l++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3331
3331
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3332
3332
  }, this.updateProjection = () => {
3333
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Xl), this.nodes.forEach(tu), this.nodes.forEach(eu), this.nodes.forEach(ql);
3333
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(zl), this.nodes.forEach(Jl), this.nodes.forEach(Ql), this.nodes.forEach(Yl);
3334
3334
  }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3335
3335
  for (let l = 0; l < this.path.length; l++)
3336
3336
  this.path[l].shouldResetTransform = !0;
3337
- this.root === this && (this.nodes = new Ll());
3337
+ this.root === this && (this.nodes = new El());
3338
3338
  }
3339
3339
  addEventListener(r, a) {
3340
3340
  return this.eventHandlers.has(r) || this.eventHandlers.set(r, new tn()), this.eventHandlers.get(r).add(a);
@@ -3352,13 +3352,13 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3352
3352
  mount(r) {
3353
3353
  if (this.instance)
3354
3354
  return;
3355
- this.isSVG = El(r), this.instance = r;
3355
+ this.isSVG = Ml(r), this.instance = r;
3356
3356
  const { layoutId: a, layout: l, visualElement: c } = this.options;
3357
3357
  if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
3358
3358
  let u;
3359
3359
  const h = () => this.root.updateBlockedByResize = !1;
3360
3360
  t(r, () => {
3361
- this.root.updateBlockedByResize = !0, u && u(), u = kl(h, 250), $t.hasAnimatedSinceResize && ($t.hasAnimatedSinceResize = !1, this.nodes.forEach(vs));
3361
+ this.root.updateBlockedByResize = !0, u && u(), u = Rl(h, 250), Wt.hasAnimatedSinceResize && (Wt.hasAnimatedSinceResize = !1, this.nodes.forEach(vs));
3362
3362
  });
3363
3363
  }
3364
3364
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: d }) => {
@@ -3366,7 +3366,7 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3366
3366
  this.target = void 0, this.relativeTarget = void 0;
3367
3367
  return;
3368
3368
  }
3369
- const m = this.options.transition || c.getDefaultTransition() || ou, { onLayoutAnimationStart: y, onLayoutAnimationComplete: v } = c.getProps(), g = !this.targetLayout || !$i(this.targetLayout, d), P = !h && f;
3369
+ const m = this.options.transition || c.getDefaultTransition() || iu, { onLayoutAnimationStart: y, onLayoutAnimationComplete: v } = c.getProps(), g = !this.targetLayout || !Wi(this.targetLayout, d), P = !h && f;
3370
3370
  if (this.options.layoutRoot || this.resumeFrom || P || h && (g || !this.currentAnimation)) {
3371
3371
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(u, P);
3372
3372
  const p = {
@@ -3400,7 +3400,7 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3400
3400
  }
3401
3401
  // Note: currently only running on root node
3402
3402
  startUpdate() {
3403
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(nu), this.animationId++);
3403
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(tu), this.animationId++);
3404
3404
  }
3405
3405
  getTransformTemplate() {
3406
3406
  const { visualElement: r } = this.options;
@@ -3429,21 +3429,21 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3429
3429
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(ys);
3430
3430
  return;
3431
3431
  }
3432
- this.isUpdating || this.nodes.forEach(Jl), this.isUpdating = !1, this.nodes.forEach(Ql), this.nodes.forEach(zl), this.nodes.forEach(Yl), this.clearAllSnapshots();
3432
+ this.isUpdating || this.nodes.forEach(ql), this.isUpdating = !1, this.nodes.forEach(Zl), this.nodes.forEach(Gl), this.nodes.forEach(Hl), this.clearAllSnapshots();
3433
3433
  const a = I.now();
3434
- E.delta = X(0, 1e3 / 60, a - E.timestamp), E.timestamp = a, E.isProcessing = !0, se.update.process(E), se.preRender.process(E), se.render.process(E), E.isProcessing = !1;
3434
+ E.delta = X(0, 1e3 / 60, a - E.timestamp), E.timestamp = a, E.isProcessing = !0, ne.update.process(E), ne.preRender.process(E), ne.render.process(E), E.isProcessing = !1;
3435
3435
  }
3436
3436
  didUpdate() {
3437
- this.updateScheduled || (this.updateScheduled = !0, $e.read(this.scheduleUpdate));
3437
+ this.updateScheduled || (this.updateScheduled = !0, We.read(this.scheduleUpdate));
3438
3438
  }
3439
3439
  clearAllSnapshots() {
3440
- this.nodes.forEach(Zl), this.sharedNodes.forEach(su);
3440
+ this.nodes.forEach(Xl), this.sharedNodes.forEach(eu);
3441
3441
  }
3442
3442
  scheduleUpdateProjection() {
3443
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, M.preRender(this.updateProjection, !1, !0));
3443
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, D.preRender(this.updateProjection, !1, !0));
3444
3444
  }
3445
3445
  scheduleCheckAfterUnmount() {
3446
- M.postRender(() => {
3446
+ D.postRender(() => {
3447
3447
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
3448
3448
  });
3449
3449
  }
@@ -3451,7 +3451,7 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3451
3451
  * Update measurements
3452
3452
  */
3453
3453
  updateSnapshot() {
3454
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !B(this.snapshot.measuredBox.x) && !B(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
3454
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !F(this.snapshot.measuredBox.x) && !F(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
3455
3455
  }
3456
3456
  updateLayout() {
3457
3457
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -3460,7 +3460,7 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3460
3460
  for (let l = 0; l < this.path.length; l++)
3461
3461
  this.path[l].updateScroll();
3462
3462
  const r = this.layout;
3463
- this.layout = this.measure(!1), this.layoutCorrected = D(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3463
+ this.layout = this.measure(!1), this.layoutCorrected = M(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3464
3464
  const { visualElement: a } = this.options;
3465
3465
  a && a.notify("LayoutMeasure", this.layout.layoutBox, r ? r.layoutBox : void 0);
3466
3466
  }
@@ -3480,13 +3480,13 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3480
3480
  resetTransform() {
3481
3481
  if (!i)
3482
3482
  return;
3483
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !Wi(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3483
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !$i(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3484
3484
  r && this.instance && (a || et(this.latestValues) || u) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
3485
3485
  }
3486
3486
  measure(r = !0) {
3487
3487
  const a = this.measurePageBox();
3488
3488
  let l = this.removeElementScroll(a);
3489
- return r && (l = this.removeTransform(l)), au(l), {
3489
+ return r && (l = this.removeTransform(l)), ru(l), {
3490
3490
  animationId: this.root.animationId,
3491
3491
  measuredBox: a,
3492
3492
  layoutBox: l,
@@ -3497,16 +3497,16 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3497
3497
  measurePageBox() {
3498
3498
  const { visualElement: r } = this.options;
3499
3499
  if (!r)
3500
- return D();
3500
+ return M();
3501
3501
  const a = r.measureViewportBox();
3502
- if (!(this.scroll?.wasRoot || this.path.some(lu))) {
3502
+ if (!(this.scroll?.wasRoot || this.path.some(ou))) {
3503
3503
  const { scroll: c } = this.root;
3504
3504
  c && (ht(a.x, c.offset.x), ht(a.y, c.offset.y));
3505
3505
  }
3506
3506
  return a;
3507
3507
  }
3508
3508
  removeElementScroll(r) {
3509
- const a = D();
3509
+ const a = M();
3510
3510
  if (N(a, r), this.scroll?.wasRoot)
3511
3511
  return a;
3512
3512
  for (let l = 0; l < this.path.length; l++) {
@@ -3516,7 +3516,7 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3516
3516
  return a;
3517
3517
  }
3518
3518
  applyTransform(r, a = !1) {
3519
- const l = D();
3519
+ const l = M();
3520
3520
  N(l, r);
3521
3521
  for (let c = 0; c < this.path.length; c++) {
3522
3522
  const u = this.path[c];
@@ -3528,14 +3528,14 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3528
3528
  return et(this.latestValues) && ft(l, this.latestValues), l;
3529
3529
  }
3530
3530
  removeTransform(r) {
3531
- const a = D();
3531
+ const a = M();
3532
3532
  N(a, r);
3533
3533
  for (let l = 0; l < this.path.length; l++) {
3534
3534
  const c = this.path[l];
3535
3535
  if (!c.instance || !et(c.latestValues))
3536
3536
  continue;
3537
- Re(c.latestValues) && c.updateSnapshot();
3538
- const u = D(), h = c.measurePageBox();
3537
+ Ee(c.latestValues) && c.updateSnapshot();
3538
+ const u = M(), h = c.measurePageBox();
3539
3539
  N(u, h), hs(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
3540
3540
  }
3541
3541
  return et(this.latestValues) && hs(a, this.latestValues), a;
@@ -3566,17 +3566,17 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3566
3566
  if (!(!this.layout || !(u || h))) {
3567
3567
  if (this.resolvedRelativeTargetAt = E.timestamp, !this.targetDelta && !this.relativeTarget) {
3568
3568
  const f = this.getClosestProjectingParent();
3569
- f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = D(), this.relativeTargetOrigin = D(), At(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), N(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
3569
+ f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = M(), this.relativeTargetOrigin = M(), At(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), N(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
3570
3570
  }
3571
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = D(), this.targetWithTransforms = D()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), ll(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : N(this.target, this.layout.layoutBox), ki(this.target, this.targetDelta)) : N(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
3571
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = M(), this.targetWithTransforms = M()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), ol(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : N(this.target, this.layout.layoutBox), ki(this.target, this.targetDelta)) : N(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
3572
3572
  this.attemptToResolveRelativeTarget = !1;
3573
3573
  const f = this.getClosestProjectingParent();
3574
- f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = D(), this.relativeTargetOrigin = D(), At(this.relativeTargetOrigin, this.target, f.target), N(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
3574
+ f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = M(), this.relativeTargetOrigin = M(), At(this.relativeTargetOrigin, this.target, f.target), N(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
3575
3575
  }
3576
3576
  }
3577
3577
  }
3578
3578
  getClosestProjectingParent() {
3579
- if (!(!this.parent || Re(this.parent.latestValues) || Li(this.parent.latestValues)))
3579
+ if (!(!this.parent || Ee(this.parent.latestValues) || Li(this.parent.latestValues)))
3580
3580
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
3581
3581
  }
3582
3582
  isProjecting() {
@@ -3592,7 +3592,7 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3592
3592
  return;
3593
3593
  N(this.layoutCorrected, this.layout.layoutBox);
3594
3594
  const h = this.treeScale.x, f = this.treeScale.y;
3595
- ul(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = D());
3595
+ al(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = M());
3596
3596
  const { target: d } = r;
3597
3597
  if (!d) {
3598
3598
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -3619,17 +3619,17 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3619
3619
  setAnimationOrigin(r, a = !1) {
3620
3620
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, h = ct();
3621
3621
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
3622
- const f = D(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, y = d !== m, v = this.getStack(), g = !v || v.members.length <= 1, P = !!(y && !g && this.options.crossfade === !0 && !this.path.some(ru));
3622
+ const f = M(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, y = d !== m, v = this.getStack(), g = !v || v.members.length <= 1, P = !!(y && !g && this.options.crossfade === !0 && !this.path.some(su));
3623
3623
  this.animationProgress = 0;
3624
3624
  let p;
3625
3625
  this.mixTargetDelta = (b) => {
3626
3626
  const x = b / 1e3;
3627
- Ts(h.x, r.x, x), Ts(h.y, r.y, x), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (At(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), iu(this.relativeTarget, this.relativeTargetOrigin, f, x), p && Kl(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = D()), N(p, this.relativeTarget)), y && (this.animationValues = u, Fl(u, c, this.latestValues, x, P, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
3627
+ Ts(h.x, r.x, x), Ts(h.y, r.y, x), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (At(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), nu(this.relativeTarget, this.relativeTargetOrigin, f, x), p && Nl(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = M()), N(p, this.relativeTarget)), y && (this.animationValues = u, kl(u, c, this.latestValues, x, P, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
3628
3628
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3629
3629
  }
3630
3630
  startAnimation(r) {
3631
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(!1), this.resumingFrom?.currentAnimation?.stop(!1), this.pendingAnimation && (Z(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
3632
- $t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = mt(0)), this.currentAnimation = Cl(this.motionValue, [0, 1e3], {
3631
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(!1), this.resumingFrom?.currentAnimation?.stop(!1), this.pendingAnimation && (Z(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = D.update(() => {
3632
+ Wt.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = mt(0)), this.currentAnimation = Dl(this.motionValue, [0, 1e3], {
3633
3633
  ...r,
3634
3634
  isSync: !0,
3635
3635
  onUpdate: (a) => {
@@ -3649,24 +3649,24 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3649
3649
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
3650
3650
  }
3651
3651
  finishAnimation() {
3652
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Gl), this.currentAnimation.stop(!1)), this.completeAnimation();
3652
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Wl), this.currentAnimation.stop(!1)), this.completeAnimation();
3653
3653
  }
3654
3654
  applyTransformsToTarget() {
3655
3655
  const r = this.getLead();
3656
3656
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
3657
3657
  if (!(!a || !l || !c)) {
3658
3658
  if (this !== r && this.layout && c && Hi(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
3659
- l = this.target || D();
3660
- const h = B(this.layout.layoutBox.x);
3659
+ l = this.target || M();
3660
+ const h = F(this.layout.layoutBox.x);
3661
3661
  l.x.min = r.target.x.min, l.x.max = l.x.min + h;
3662
- const f = B(this.layout.layoutBox.y);
3662
+ const f = F(this.layout.layoutBox.y);
3663
3663
  l.y.min = r.target.y.min, l.y.max = l.y.min + f;
3664
3664
  }
3665
3665
  N(a, l), ft(a, u), wt(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
3666
3666
  }
3667
3667
  }
3668
3668
  registerSharedNode(r, a) {
3669
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new Wl()), this.sharedNodes.get(r).add(a);
3669
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new Ul()), this.sharedNodes.get(r).add(a);
3670
3670
  const c = a.options.initialPromotionConfig;
3671
3671
  a.promote({
3672
3672
  transition: c ? c.transition : void 0,
@@ -3707,9 +3707,9 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3707
3707
  if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
3708
3708
  return;
3709
3709
  const c = {};
3710
- l.z && fe("z", r, c, this.animationValues);
3711
- for (let u = 0; u < he.length; u++)
3712
- fe(`rotate${he[u]}`, r, c, this.animationValues), fe(`skew${he[u]}`, r, c, this.animationValues);
3710
+ l.z && he("z", r, c, this.animationValues);
3711
+ for (let u = 0; u < ce.length; u++)
3712
+ he(`rotate${ce[u]}`, r, c, this.animationValues), he(`skew${ce[u]}`, r, c, this.animationValues);
3713
3713
  r.render();
3714
3714
  for (const u in c)
3715
3715
  r.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
@@ -3719,7 +3719,7 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3719
3719
  if (!this.instance || this.isSVG)
3720
3720
  return;
3721
3721
  if (!this.isVisible)
3722
- return _l;
3722
+ return $l;
3723
3723
  const a = {
3724
3724
  visibility: ""
3725
3725
  }, l = this.getTransformTemplate();
@@ -3731,13 +3731,13 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3731
3731
  return this.options.layoutId && (d.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, d.pointerEvents = Kt(r?.pointerEvents) || ""), this.hasProjected && !et(this.latestValues) && (d.transform = l ? l({}, "") : "none", this.hasProjected = !1), d;
3732
3732
  }
3733
3733
  const u = c.animationValues || c.latestValues;
3734
- this.applyTransformsToTarget(), a.transform = $l(this.projectionDeltaWithTransform, this.treeScale, u), l && (a.transform = l(u, a.transform));
3734
+ this.applyTransformsToTarget(), a.transform = Kl(this.projectionDeltaWithTransform, this.treeScale, u), l && (a.transform = l(u, a.transform));
3735
3735
  const { x: h, y: f } = this.projectionDelta;
3736
3736
  a.transformOrigin = `${h.origin * 100}% ${f.origin * 100}% 0`, c.animationValues ? a.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : a.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
3737
- for (const d in Mt) {
3737
+ for (const d in Dt) {
3738
3738
  if (u[d] === void 0)
3739
3739
  continue;
3740
- const { correct: m, applyTo: y, isCSSVariable: v } = Mt[d], g = a.transform === "none" ? u[d] : m(u[d], c);
3740
+ const { correct: m, applyTo: y, isCSSVariable: v } = Dt[d], g = a.transform === "none" ? u[d] : m(u[d], c);
3741
3741
  if (y) {
3742
3742
  const P = y.length;
3743
3743
  for (let p = 0; p < P; p++)
@@ -3756,35 +3756,35 @@ function Gi({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3756
3756
  }
3757
3757
  };
3758
3758
  }
3759
- function zl(t) {
3759
+ function Gl(t) {
3760
3760
  t.updateLayout();
3761
3761
  }
3762
- function Yl(t) {
3762
+ function Hl(t) {
3763
3763
  const e = t.resumeFrom?.snapshot || t.snapshot;
3764
3764
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
3765
3765
  const { layoutBox: n, measuredBox: s } = t.layout, { animationType: i } = t.options, o = e.source !== t.layout.source;
3766
3766
  i === "size" ? U((u) => {
3767
- const h = o ? e.measuredBox[u] : e.layoutBox[u], f = B(h);
3767
+ const h = o ? e.measuredBox[u] : e.layoutBox[u], f = F(h);
3768
3768
  h.min = n[u].min, h.max = h.min + f;
3769
3769
  }) : Hi(i, e.layoutBox, n) && U((u) => {
3770
- const h = o ? e.measuredBox[u] : e.layoutBox[u], f = B(n[u]);
3770
+ const h = o ? e.measuredBox[u] : e.layoutBox[u], f = F(n[u]);
3771
3771
  h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[u].max = t.relativeTarget[u].min + f);
3772
3772
  });
3773
3773
  const r = ct();
3774
3774
  wt(r, n, e.layoutBox);
3775
3775
  const a = ct();
3776
3776
  o ? wt(a, t.applyTransform(s, !0), e.measuredBox) : wt(a, n, e.layoutBox);
3777
- const l = !Wi(r);
3777
+ const l = !$i(r);
3778
3778
  let c = !1;
3779
3779
  if (!t.resumeFrom) {
3780
3780
  const u = t.getClosestProjectingParent();
3781
3781
  if (u && !u.resumeFrom) {
3782
3782
  const { snapshot: h, layout: f } = u;
3783
3783
  if (h && f) {
3784
- const d = D();
3784
+ const d = M();
3785
3785
  At(d, e.layoutBox, h.layoutBox);
3786
- const m = D();
3787
- At(m, n, f.layoutBox), $i(d, m) || (c = !0), u.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = u);
3786
+ const m = M();
3787
+ At(m, n, f.layoutBox), Wi(d, m) || (c = !0), u.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = u);
3788
3788
  }
3789
3789
  }
3790
3790
  }
@@ -3802,38 +3802,38 @@ function Yl(t) {
3802
3802
  }
3803
3803
  t.options.transition = void 0;
3804
3804
  }
3805
- function Xl(t) {
3805
+ function zl(t) {
3806
3806
  t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
3807
3807
  }
3808
- function ql(t) {
3808
+ function Yl(t) {
3809
3809
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
3810
3810
  }
3811
- function Zl(t) {
3811
+ function Xl(t) {
3812
3812
  t.clearSnapshot();
3813
3813
  }
3814
3814
  function ys(t) {
3815
3815
  t.clearMeasurements();
3816
3816
  }
3817
- function Jl(t) {
3817
+ function ql(t) {
3818
3818
  t.isLayoutDirty = !1;
3819
3819
  }
3820
- function Ql(t) {
3820
+ function Zl(t) {
3821
3821
  const { visualElement: e } = t.options;
3822
3822
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
3823
3823
  }
3824
3824
  function vs(t) {
3825
3825
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
3826
3826
  }
3827
- function tu(t) {
3827
+ function Jl(t) {
3828
3828
  t.resolveTargetDelta();
3829
3829
  }
3830
- function eu(t) {
3830
+ function Ql(t) {
3831
3831
  t.calcProjection();
3832
3832
  }
3833
- function nu(t) {
3833
+ function tu(t) {
3834
3834
  t.resetSkewAndRotation();
3835
3835
  }
3836
- function su(t) {
3836
+ function eu(t) {
3837
3837
  t.removeLeadSnapshot();
3838
3838
  }
3839
3839
  function Ts(t, e, n) {
@@ -3842,36 +3842,36 @@ function Ts(t, e, n) {
3842
3842
  function xs(t, e, n, s) {
3843
3843
  t.min = V(e.min, n.min, s), t.max = V(e.max, n.max, s);
3844
3844
  }
3845
- function iu(t, e, n, s) {
3845
+ function nu(t, e, n, s) {
3846
3846
  xs(t.x, e.x, n.x, s), xs(t.y, e.y, n.y, s);
3847
3847
  }
3848
- function ru(t) {
3848
+ function su(t) {
3849
3849
  return t.animationValues && t.animationValues.opacityExit !== void 0;
3850
3850
  }
3851
- const ou = {
3851
+ const iu = {
3852
3852
  duration: 0.45,
3853
3853
  ease: [0.4, 0, 0.1, 1]
3854
3854
  }, Ps = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ss = Ps("applewebkit/") && !Ps("chrome/") ? Math.round : K;
3855
3855
  function bs(t) {
3856
3856
  t.min = Ss(t.min), t.max = Ss(t.max);
3857
3857
  }
3858
- function au(t) {
3858
+ function ru(t) {
3859
3859
  bs(t.x), bs(t.y);
3860
3860
  }
3861
3861
  function Hi(t, e, n) {
3862
- return t === "position" || t === "preserve-aspect" && !al(ps(e), ps(n), 0.2);
3862
+ return t === "position" || t === "preserve-aspect" && !rl(ps(e), ps(n), 0.2);
3863
3863
  }
3864
- function lu(t) {
3864
+ function ou(t) {
3865
3865
  return t !== t.root && t.scroll?.wasRoot;
3866
3866
  }
3867
- const uu = Gi({
3867
+ const au = Gi({
3868
3868
  attachResizeListener: (t, e) => Lt(t, "resize", e),
3869
3869
  measureScroll: () => ({
3870
3870
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
3871
3871
  y: document.documentElement.scrollTop || document.body.scrollTop
3872
3872
  }),
3873
3873
  checkIsScrollRoot: () => !0
3874
- }), de = {
3874
+ }), fe = {
3875
3875
  current: void 0
3876
3876
  }, zi = Gi({
3877
3877
  measureScroll: (t) => ({
@@ -3879,27 +3879,27 @@ const uu = Gi({
3879
3879
  y: t.scrollTop
3880
3880
  }),
3881
3881
  defaultParent: () => {
3882
- if (!de.current) {
3883
- const t = new uu({});
3884
- t.mount(window), t.setOptions({ layoutScroll: !0 }), de.current = t;
3882
+ if (!fe.current) {
3883
+ const t = new au({});
3884
+ t.mount(window), t.setOptions({ layoutScroll: !0 }), fe.current = t;
3885
3885
  }
3886
- return de.current;
3886
+ return fe.current;
3887
3887
  },
3888
3888
  resetTransform: (t, e) => {
3889
3889
  t.style.transform = e !== void 0 ? e : "none";
3890
3890
  },
3891
3891
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
3892
- }), cu = {
3892
+ }), lu = {
3893
3893
  pan: {
3894
- Feature: Al
3894
+ Feature: bl
3895
3895
  },
3896
3896
  drag: {
3897
- Feature: wl,
3897
+ Feature: Sl,
3898
3898
  ProjectionNode: zi,
3899
3899
  MeasureLayout: Ni
3900
3900
  }
3901
3901
  };
3902
- function Yi(t, e, n) {
3902
+ function uu(t, e, n) {
3903
3903
  if (t instanceof EventTarget)
3904
3904
  return [t];
3905
3905
  if (typeof t == "string") {
@@ -3908,8 +3908,8 @@ function Yi(t, e, n) {
3908
3908
  }
3909
3909
  return Array.from(t);
3910
3910
  }
3911
- function Xi(t, e) {
3912
- const n = Yi(t), s = new AbortController(), i = {
3911
+ function Yi(t, e) {
3912
+ const n = uu(t), s = new AbortController(), i = {
3913
3913
  passive: !0,
3914
3914
  ...e,
3915
3915
  signal: s.signal
@@ -3919,8 +3919,8 @@ function Xi(t, e) {
3919
3919
  function ws(t) {
3920
3920
  return !(t.pointerType === "touch" || ji());
3921
3921
  }
3922
- function hu(t, e, n = {}) {
3923
- const [s, i, o] = Xi(t, n), r = (a) => {
3922
+ function cu(t, e, n = {}) {
3923
+ const [s, i, o] = Yi(t, n), r = (a) => {
3924
3924
  if (!ws(a))
3925
3925
  return;
3926
3926
  const { target: l } = a, c = e(l, a);
@@ -3939,17 +3939,17 @@ function As(t, e, n) {
3939
3939
  const { props: s } = t;
3940
3940
  t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
3941
3941
  const i = "onHover" + n, o = s[i];
3942
- o && M.postRender(() => o(e, Ot(e)));
3942
+ o && D.postRender(() => o(e, Ot(e)));
3943
3943
  }
3944
- class fu extends Q {
3944
+ class hu extends Q {
3945
3945
  mount() {
3946
3946
  const { current: e } = this.node;
3947
- e && (this.unmount = hu(e, (n, s) => (As(this.node, s, "Start"), (i) => As(this.node, i, "End"))));
3947
+ e && (this.unmount = cu(e, (n, s) => (As(this.node, s, "Start"), (i) => As(this.node, i, "End"))));
3948
3948
  }
3949
3949
  unmount() {
3950
3950
  }
3951
3951
  }
3952
- class du extends Q {
3952
+ class fu extends Q {
3953
3953
  constructor() {
3954
3954
  super(...arguments), this.isActive = !1;
3955
3955
  }
@@ -3966,20 +3966,20 @@ class du extends Q {
3966
3966
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
3967
3967
  }
3968
3968
  mount() {
3969
- this.unmount = Bt(Lt(this.node.current, "focus", () => this.onFocus()), Lt(this.node.current, "blur", () => this.onBlur()));
3969
+ this.unmount = Ft(Lt(this.node.current, "focus", () => this.onFocus()), Lt(this.node.current, "blur", () => this.onBlur()));
3970
3970
  }
3971
3971
  unmount() {
3972
3972
  }
3973
3973
  }
3974
- const qi = (t, e) => e ? t === e ? !0 : qi(t, e.parentElement) : !1, mu = /* @__PURE__ */ new Set([
3974
+ const Xi = (t, e) => e ? t === e ? !0 : Xi(t, e.parentElement) : !1, du = /* @__PURE__ */ new Set([
3975
3975
  "BUTTON",
3976
3976
  "INPUT",
3977
3977
  "SELECT",
3978
3978
  "TEXTAREA",
3979
3979
  "A"
3980
3980
  ]);
3981
- function pu(t) {
3982
- return mu.has(t.tagName) || t.tabIndex !== -1;
3981
+ function mu(t) {
3982
+ return du.has(t.tagName) || t.tabIndex !== -1;
3983
3983
  }
3984
3984
  const _t = /* @__PURE__ */ new WeakSet();
3985
3985
  function Vs(t) {
@@ -3987,85 +3987,85 @@ function Vs(t) {
3987
3987
  e.key === "Enter" && t(e);
3988
3988
  };
3989
3989
  }
3990
- function me(t, e) {
3990
+ function de(t, e) {
3991
3991
  t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
3992
3992
  }
3993
- const gu = (t, e) => {
3993
+ const pu = (t, e) => {
3994
3994
  const n = t.currentTarget;
3995
3995
  if (!n)
3996
3996
  return;
3997
3997
  const s = Vs(() => {
3998
3998
  if (_t.has(n))
3999
3999
  return;
4000
- me(n, "down");
4000
+ de(n, "down");
4001
4001
  const i = Vs(() => {
4002
- me(n, "up");
4003
- }), o = () => me(n, "cancel");
4002
+ de(n, "up");
4003
+ }), o = () => de(n, "cancel");
4004
4004
  n.addEventListener("keyup", i, e), n.addEventListener("blur", o, e);
4005
4005
  });
4006
4006
  n.addEventListener("keydown", s, e), n.addEventListener("blur", () => n.removeEventListener("keydown", s), e);
4007
4007
  };
4008
- function Ms(t) {
4008
+ function Ds(t) {
4009
4009
  return pn(t) && !ji();
4010
4010
  }
4011
- function yu(t, e, n = {}) {
4012
- const [s, i, o] = Xi(t, n), r = (a) => {
4011
+ function gu(t, e, n = {}) {
4012
+ const [s, i, o] = Yi(t, n), r = (a) => {
4013
4013
  const l = a.currentTarget;
4014
- if (!Ms(a))
4014
+ if (!Ds(a))
4015
4015
  return;
4016
4016
  _t.add(l);
4017
4017
  const c = e(l, a), u = (d, m) => {
4018
- window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), _t.has(l) && _t.delete(l), Ms(d) && typeof c == "function" && c(d, { success: m });
4018
+ window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), _t.has(l) && _t.delete(l), Ds(d) && typeof c == "function" && c(d, { success: m });
4019
4019
  }, h = (d) => {
4020
- u(d, l === window || l === document || n.useGlobalTarget || qi(l, d.target));
4020
+ u(d, l === window || l === document || n.useGlobalTarget || Xi(l, d.target));
4021
4021
  }, f = (d) => {
4022
4022
  u(d, !1);
4023
4023
  };
4024
4024
  window.addEventListener("pointerup", h, i), window.addEventListener("pointercancel", f, i);
4025
4025
  };
4026
4026
  return s.forEach((a) => {
4027
- (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), a instanceof HTMLElement && (a.addEventListener("focus", (c) => gu(c, i)), !pu(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
4027
+ (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), a instanceof HTMLElement && (a.addEventListener("focus", (c) => pu(c, i)), !mu(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
4028
4028
  }), o;
4029
4029
  }
4030
- function Ds(t, e, n) {
4030
+ function Ms(t, e, n) {
4031
4031
  const { props: s } = t;
4032
4032
  if (t.current instanceof HTMLButtonElement && t.current.disabled)
4033
4033
  return;
4034
4034
  t.animationState && s.whileTap && t.animationState.setActive("whileTap", n === "Start");
4035
4035
  const i = "onTap" + (n === "End" ? "" : n), o = s[i];
4036
- o && M.postRender(() => o(e, Ot(e)));
4036
+ o && D.postRender(() => o(e, Ot(e)));
4037
4037
  }
4038
- class vu extends Q {
4038
+ class yu extends Q {
4039
4039
  mount() {
4040
4040
  const { current: e } = this.node;
4041
- e && (this.unmount = yu(e, (n, s) => (Ds(this.node, s, "Start"), (i, { success: o }) => Ds(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
4041
+ e && (this.unmount = gu(e, (n, s) => (Ms(this.node, s, "Start"), (i, { success: o }) => Ms(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
4042
4042
  }
4043
4043
  unmount() {
4044
4044
  }
4045
4045
  }
4046
- const Be = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), Tu = (t) => {
4047
- const e = Be.get(t.target);
4046
+ const ke = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), vu = (t) => {
4047
+ const e = ke.get(t.target);
4048
4048
  e && e(t);
4049
- }, xu = (t) => {
4050
- t.forEach(Tu);
4049
+ }, Tu = (t) => {
4050
+ t.forEach(vu);
4051
4051
  };
4052
- function Pu({ root: t, ...e }) {
4052
+ function xu({ root: t, ...e }) {
4053
4053
  const n = t || document;
4054
- pe.has(n) || pe.set(n, {});
4055
- const s = pe.get(n), i = JSON.stringify(e);
4056
- return s[i] || (s[i] = new IntersectionObserver(xu, { root: t, ...e })), s[i];
4057
- }
4058
- function Su(t, e, n) {
4059
- const s = Pu(e);
4060
- return Be.set(t, n), s.observe(t), () => {
4061
- Be.delete(t), s.unobserve(t);
4054
+ me.has(n) || me.set(n, {});
4055
+ const s = me.get(n), i = JSON.stringify(e);
4056
+ return s[i] || (s[i] = new IntersectionObserver(Tu, { root: t, ...e })), s[i];
4057
+ }
4058
+ function Pu(t, e, n) {
4059
+ const s = xu(e);
4060
+ return ke.set(t, n), s.observe(t), () => {
4061
+ ke.delete(t), s.unobserve(t);
4062
4062
  };
4063
4063
  }
4064
- const bu = {
4064
+ const Su = {
4065
4065
  some: 0,
4066
4066
  all: 1
4067
4067
  };
4068
- class wu extends Q {
4068
+ class bu extends Q {
4069
4069
  constructor() {
4070
4070
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4071
4071
  }
@@ -4074,7 +4074,7 @@ class wu extends Q {
4074
4074
  const { viewport: e = {} } = this.node.getProps(), { root: n, margin: s, amount: i = "some", once: o } = e, r = {
4075
4075
  root: n ? n.current : void 0,
4076
4076
  rootMargin: s,
4077
- threshold: typeof i == "number" ? i : bu[i]
4077
+ threshold: typeof i == "number" ? i : Su[i]
4078
4078
  }, a = (l) => {
4079
4079
  const { isIntersecting: c } = l;
4080
4080
  if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
@@ -4083,7 +4083,7 @@ class wu extends Q {
4083
4083
  const { onViewportEnter: u, onViewportLeave: h } = this.node.getProps(), f = c ? u : h;
4084
4084
  f && f(l);
4085
4085
  };
4086
- return Su(this.node.current, r, a);
4086
+ return Pu(this.node.current, r, a);
4087
4087
  }
4088
4088
  mount() {
4089
4089
  this.startObserver();
@@ -4092,43 +4092,43 @@ class wu extends Q {
4092
4092
  if (typeof IntersectionObserver > "u")
4093
4093
  return;
4094
4094
  const { props: e, prevProps: n } = this.node;
4095
- ["amount", "margin", "root"].some(Au(e, n)) && this.startObserver();
4095
+ ["amount", "margin", "root"].some(wu(e, n)) && this.startObserver();
4096
4096
  }
4097
4097
  unmount() {
4098
4098
  }
4099
4099
  }
4100
- function Au({ viewport: t = {} }, { viewport: e = {} } = {}) {
4100
+ function wu({ viewport: t = {} }, { viewport: e = {} } = {}) {
4101
4101
  return (n) => t[n] !== e[n];
4102
4102
  }
4103
- const Vu = {
4103
+ const Au = {
4104
4104
  inView: {
4105
- Feature: wu
4105
+ Feature: bu
4106
4106
  },
4107
4107
  tap: {
4108
- Feature: vu
4108
+ Feature: yu
4109
4109
  },
4110
4110
  focus: {
4111
- Feature: du
4111
+ Feature: fu
4112
4112
  },
4113
4113
  hover: {
4114
- Feature: fu
4114
+ Feature: hu
4115
4115
  }
4116
- }, Mu = {
4116
+ }, Vu = {
4117
4117
  layout: {
4118
4118
  ProjectionNode: zi,
4119
4119
  MeasureLayout: Ni
4120
4120
  }
4121
- }, Fe = { current: null }, Zi = { current: !1 };
4121
+ }, Fe = { current: null }, qi = { current: !1 };
4122
4122
  function Du() {
4123
- if (Zi.current = !0, !!Ie)
4123
+ if (qi.current = !0, !!Ie)
4124
4124
  if (window.matchMedia) {
4125
4125
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Fe.current = t.matches;
4126
4126
  t.addListener(e), e();
4127
4127
  } else
4128
4128
  Fe.current = !1;
4129
4129
  }
4130
- const Cu = /* @__PURE__ */ new WeakMap();
4131
- function Eu(t, e, n) {
4130
+ const Mu = /* @__PURE__ */ new WeakMap();
4131
+ function Cu(t, e, n) {
4132
4132
  for (const s in e) {
4133
4133
  const i = e[s], o = n[s];
4134
4134
  if (L(i))
@@ -4148,10 +4148,10 @@ function Eu(t, e, n) {
4148
4148
  e[s] === void 0 && t.removeValue(s);
4149
4149
  return e;
4150
4150
  }
4151
- const Ji = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Qi = (t) => /^0[^.\s]+$/u.test(t), Ru = {
4151
+ const Zi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Ji = (t) => /^0[^.\s]+$/u.test(t), Eu = {
4152
4152
  test: (t) => t === "auto",
4153
4153
  parse: (t) => t
4154
- }, tr = (t) => (e) => e.test(t), er = [Tt, T, _, q, Kr, Ur, Ru], Cs = (t) => er.find(tr(t)), Lu = [...er, R, J], ku = (t) => Lu.find(tr(t)), Bu = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
4154
+ }, Qi = (t) => (e) => e.test(t), tr = [Tt, T, _, q, Nr, jr, Eu], Cs = (t) => tr.find(Qi(t)), Ru = [...tr, R, J], Lu = (t) => Ru.find(Qi(t)), ku = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
4155
4155
  function Fu(t) {
4156
4156
  const [e, n] = t.slice(0, -1).split("(");
4157
4157
  if (e === "drop-shadow")
@@ -4160,16 +4160,16 @@ function Fu(t) {
4160
4160
  if (!s)
4161
4161
  return t;
4162
4162
  const i = n.replace(s, "");
4163
- let o = Bu.has(e) ? 1 : 0;
4163
+ let o = ku.has(e) ? 1 : 0;
4164
4164
  return s !== n && (o *= 100), e + "(" + o + i + ")";
4165
4165
  }
4166
- const Ou = /\b([a-z-]*)\(.*?\)/gu, Oe = {
4166
+ const Bu = /\b([a-z-]*)\(.*?\)/gu, Be = {
4167
4167
  ...J,
4168
4168
  getAnimatableNone: (t) => {
4169
- const e = t.match(Ou);
4169
+ const e = t.match(Bu);
4170
4170
  return e ? e.map(Fu).join(" ") : t;
4171
4171
  }
4172
- }, Iu = {
4172
+ }, Ou = {
4173
4173
  ...He,
4174
4174
  // Color props
4175
4175
  color: R,
@@ -4183,12 +4183,12 @@ const Ou = /\b([a-z-]*)\(.*?\)/gu, Oe = {
4183
4183
  borderRightColor: R,
4184
4184
  borderBottomColor: R,
4185
4185
  borderLeftColor: R,
4186
- filter: Oe,
4187
- WebkitFilter: Oe
4188
- }, nr = (t) => Iu[t];
4189
- function sr(t, e) {
4190
- let n = nr(t);
4191
- return n !== Oe && (n = J), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
4186
+ filter: Be,
4187
+ WebkitFilter: Be
4188
+ }, er = (t) => Ou[t];
4189
+ function nr(t, e) {
4190
+ let n = er(t);
4191
+ return n !== Be && (n = J), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
4192
4192
  }
4193
4193
  const Es = [
4194
4194
  "AnimationStart",
@@ -4199,7 +4199,7 @@ const Es = [
4199
4199
  "LayoutAnimationStart",
4200
4200
  "LayoutAnimationComplete"
4201
4201
  ];
4202
- class ju {
4202
+ class Iu {
4203
4203
  /**
4204
4204
  * This method takes React props and returns found MotionValues. For example, HTML
4205
4205
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -4215,10 +4215,10 @@ class ju {
4215
4215
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
4216
4216
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
4217
4217
  const f = I.now();
4218
- this.renderScheduledAt < f && (this.renderScheduledAt = f, M.render(this.render, !1, !0));
4218
+ this.renderScheduledAt < f && (this.renderScheduledAt = f, D.render(this.render, !1, !0));
4219
4219
  };
4220
4220
  const { latestValues: l, renderState: c } = r;
4221
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = te(n), this.isVariantNode = js(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4221
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Qt(n), this.isVariantNode = js(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4222
4222
  const { willChange: u, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
4223
4223
  for (const f in h) {
4224
4224
  const d = h[f];
@@ -4226,7 +4226,7 @@ class ju {
4226
4226
  }
4227
4227
  }
4228
4228
  mount(e) {
4229
- this.current = e, Cu.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), Zi.current || Du(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Fe.current, process.env.NODE_ENV !== "production" && Ne(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4229
+ this.current = e, Mu.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), qi.current || Du(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Fe.current, process.env.NODE_ENV !== "production" && Ne(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4230
4230
  }
4231
4231
  unmount() {
4232
4232
  this.projection && this.projection.unmount(), Z(this.notifyUpdate), Z(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -4243,7 +4243,7 @@ class ju {
4243
4243
  const s = vt.has(e);
4244
4244
  s && this.onBindTransform && this.onBindTransform();
4245
4245
  const i = n.on("change", (a) => {
4246
- this.latestValues[e] = a, this.props.onUpdate && M.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0);
4246
+ this.latestValues[e] = a, this.props.onUpdate && D.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0);
4247
4247
  }), o = n.on("renderRequest", this.scheduleRender);
4248
4248
  let r;
4249
4249
  window.MotionCheckAppearSync && (r = window.MotionCheckAppearSync(this, e, n)), this.valueSubscriptions.set(e, () => {
@@ -4275,7 +4275,7 @@ class ju {
4275
4275
  * removed with a re-render to work.
4276
4276
  */
4277
4277
  measureViewportBox() {
4278
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : D();
4278
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : M();
4279
4279
  }
4280
4280
  getStaticValue(e) {
4281
4281
  return this.latestValues[e];
@@ -4295,7 +4295,7 @@ class ju {
4295
4295
  const o = "on" + i, r = e[o];
4296
4296
  r && (this.propEventSubscriptions[i] = this.on(i, r));
4297
4297
  }
4298
- this.prevMotionValues = Eu(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
4298
+ this.prevMotionValues = Cu(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
4299
4299
  }
4300
4300
  getProps() {
4301
4301
  return this.props;
@@ -4360,7 +4360,7 @@ class ju {
4360
4360
  */
4361
4361
  readValue(e, n) {
4362
4362
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
4363
- return s != null && (typeof s == "string" && (Ji(s) || Qi(s)) ? s = parseFloat(s) : !ku(s) && J.test(n) && (s = sr(e, n)), this.setBaseTarget(e, L(s) ? s.get() : s)), L(s) ? s.get() : s;
4363
+ return s != null && (typeof s == "string" && (Zi(s) || Ji(s)) ? s = parseFloat(s) : !Lu(s) && J.test(n) && (s = nr(e, n)), this.setBaseTarget(e, L(s) ? s.get() : s)), L(s) ? s.get() : s;
4364
4364
  }
4365
4365
  /**
4366
4366
  * Set the base target to later animate back to. This is currently
@@ -4392,35 +4392,35 @@ class ju {
4392
4392
  this.events[e] && this.events[e].notify(...n);
4393
4393
  }
4394
4394
  }
4395
- const Nu = (
4395
+ const ju = (
4396
4396
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
4397
4397
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
4398
4398
  );
4399
- function Uu(t) {
4400
- const e = Nu.exec(t);
4399
+ function Nu(t) {
4400
+ const e = ju.exec(t);
4401
4401
  if (!e)
4402
4402
  return [,];
4403
4403
  const [, n, s, i] = e;
4404
4404
  return [`--${n ?? s}`, i];
4405
4405
  }
4406
- const Ku = 4;
4407
- function ir(t, e, n = 1) {
4408
- Y(n <= Ku, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
4409
- const [s, i] = Uu(t);
4406
+ const Uu = 4;
4407
+ function sr(t, e, n = 1) {
4408
+ Y(n <= Uu, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
4409
+ const [s, i] = Nu(t);
4410
4410
  if (!s)
4411
4411
  return;
4412
4412
  const o = window.getComputedStyle(e).getPropertyValue(s);
4413
4413
  if (o) {
4414
4414
  const r = o.trim();
4415
- return Ji(r) ? parseFloat(r) : r;
4415
+ return Zi(r) ? parseFloat(r) : r;
4416
4416
  }
4417
- return Ge(i) ? ir(i, e, n + 1) : i;
4417
+ return Ge(i) ? sr(i, e, n + 1) : i;
4418
4418
  }
4419
- function Wu(t) {
4420
- return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Qi(t) : !0;
4419
+ function Ku(t) {
4420
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Ji(t) : !0;
4421
4421
  }
4422
4422
  const $u = /* @__PURE__ */ new Set(["auto", "none", "0"]);
4423
- function _u(t, e, n) {
4423
+ function Wu(t, e, n) {
4424
4424
  let s = 0, i;
4425
4425
  for (; s < t.length && !i; ) {
4426
4426
  const o = t[s];
@@ -4428,9 +4428,9 @@ function _u(t, e, n) {
4428
4428
  }
4429
4429
  if (i && n)
4430
4430
  for (const o of e)
4431
- t[o] = sr(n, i);
4431
+ t[o] = nr(n, i);
4432
4432
  }
4433
- class Gu extends fn {
4433
+ class _u extends fn {
4434
4434
  constructor(e, n, s, i, o) {
4435
4435
  super(e, n, s, i, o, !0);
4436
4436
  }
@@ -4442,7 +4442,7 @@ class Gu extends fn {
4442
4442
  for (let l = 0; l < e.length; l++) {
4443
4443
  let c = e[l];
4444
4444
  if (typeof c == "string" && (c = c.trim(), Ge(c))) {
4445
- const u = ir(c, n.current);
4445
+ const u = sr(c, n.current);
4446
4446
  u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
4447
4447
  }
4448
4448
  }
@@ -4450,7 +4450,7 @@ class Gu extends fn {
4450
4450
  return;
4451
4451
  const [i, o] = e, r = Cs(i), a = Cs(o);
4452
4452
  if (r !== a)
4453
- if (Fn(r) && Fn(a))
4453
+ if (Bn(r) && Bn(a))
4454
4454
  for (let l = 0; l < e.length; l++) {
4455
4455
  const c = e[l];
4456
4456
  typeof c == "string" && (e[l] = parseFloat(c));
@@ -4460,8 +4460,8 @@ class Gu extends fn {
4460
4460
  resolveNoneKeyframes() {
4461
4461
  const { unresolvedKeyframes: e, name: n } = this, s = [];
4462
4462
  for (let i = 0; i < e.length; i++)
4463
- (e[i] === null || Wu(e[i])) && s.push(i);
4464
- s.length && _u(e, s, n);
4463
+ (e[i] === null || Ku(e[i])) && s.push(i);
4464
+ s.length && Wu(e, s, n);
4465
4465
  }
4466
4466
  measureInitialState() {
4467
4467
  const { element: e, unresolvedKeyframes: n, name: s } = this;
@@ -4483,9 +4483,9 @@ class Gu extends fn {
4483
4483
  }), this.resolveNoneKeyframes();
4484
4484
  }
4485
4485
  }
4486
- class rr extends ju {
4486
+ class ir extends Iu {
4487
4487
  constructor() {
4488
- super(...arguments), this.KeyframeResolver = Gu;
4488
+ super(...arguments), this.KeyframeResolver = _u;
4489
4489
  }
4490
4490
  sortInstanceNodePosition(e, n) {
4491
4491
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -4504,28 +4504,28 @@ class rr extends ju {
4504
4504
  }));
4505
4505
  }
4506
4506
  }
4507
- function or(t, { style: e, vars: n }, s, i) {
4507
+ function rr(t, { style: e, vars: n }, s, i) {
4508
4508
  Object.assign(t.style, e, i && i.getProjectionStyles(s));
4509
4509
  for (const o in n)
4510
4510
  t.style.setProperty(o, n[o]);
4511
4511
  }
4512
- function Hu(t) {
4512
+ function Gu(t) {
4513
4513
  return window.getComputedStyle(t);
4514
4514
  }
4515
- class zu extends rr {
4515
+ class Hu extends ir {
4516
4516
  constructor() {
4517
- super(...arguments), this.type = "html", this.renderInstance = or;
4517
+ super(...arguments), this.type = "html", this.renderInstance = rr;
4518
4518
  }
4519
4519
  readValueFromInstance(e, n) {
4520
4520
  if (vt.has(n))
4521
- return this.projection?.isProjecting ? Ae(n) : ga(e, n);
4521
+ return this.projection?.isProjecting ? we(n) : ma(e, n);
4522
4522
  {
4523
- const s = Hu(e), i = (_e(n) ? s.getPropertyValue(n) : s[n]) || 0;
4523
+ const s = Gu(e), i = (_e(n) ? s.getPropertyValue(n) : s[n]) || 0;
4524
4524
  return typeof i == "string" ? i.trim() : i;
4525
4525
  }
4526
4526
  }
4527
4527
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
4528
- return Bi(e, n);
4528
+ return Fi(e, n);
4529
4529
  }
4530
4530
  build(e, n, s) {
4531
4531
  ze(e, n, s.transformTemplate);
@@ -4534,7 +4534,7 @@ class zu extends rr {
4534
4534
  return Ze(e, n, s);
4535
4535
  }
4536
4536
  }
4537
- const ar = /* @__PURE__ */ new Set([
4537
+ const or = /* @__PURE__ */ new Set([
4538
4538
  "baseFrequency",
4539
4539
  "diffuseConstant",
4540
4540
  "kernelMatrix",
@@ -4559,24 +4559,24 @@ const ar = /* @__PURE__ */ new Set([
4559
4559
  "textLength",
4560
4560
  "lengthAdjust"
4561
4561
  ]);
4562
- function Yu(t, e, n, s) {
4563
- or(t, e, void 0, s);
4562
+ function zu(t, e, n, s) {
4563
+ rr(t, e, void 0, s);
4564
4564
  for (const i in e.attrs)
4565
- t.setAttribute(ar.has(i) ? i : We(i), e.attrs[i]);
4565
+ t.setAttribute(or.has(i) ? i : $e(i), e.attrs[i]);
4566
4566
  }
4567
- class Xu extends rr {
4567
+ class Yu extends ir {
4568
4568
  constructor() {
4569
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = D;
4569
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = M;
4570
4570
  }
4571
4571
  getBaseTargetFromProps(e, n) {
4572
4572
  return e[n];
4573
4573
  }
4574
4574
  readValueFromInstance(e, n) {
4575
4575
  if (vt.has(n)) {
4576
- const s = nr(n);
4576
+ const s = er(n);
4577
4577
  return s && s.default || 0;
4578
4578
  }
4579
- return n = ar.has(n) ? n : We(n), e.getAttribute(n);
4579
+ return n = or.has(n) ? n : $e(n), e.getAttribute(n);
4580
4580
  }
4581
4581
  scrapeMotionValuesFromProps(e, n, s) {
4582
4582
  return qs(e, n, s);
@@ -4585,61 +4585,28 @@ class Xu extends rr {
4585
4585
  Hs(e, n, this.isSVGTag, s.transformTemplate, s.style);
4586
4586
  }
4587
4587
  renderInstance(e, n, s, i) {
4588
- Yu(e, n, s, i);
4588
+ zu(e, n, s, i);
4589
4589
  }
4590
4590
  mount(e) {
4591
4591
  this.isSVGTag = Ys(e.tagName), super.mount(e);
4592
4592
  }
4593
4593
  }
4594
- const qu = (t, e) => Xe(t) ? new Xu(e) : new zu(e, {
4594
+ const Xu = (t, e) => Xe(t) ? new Yu(e) : new Hu(e, {
4595
4595
  allowProjection: t !== Ls
4596
- }), Zu = /* @__PURE__ */ ro({
4597
- ...Qa,
4598
- ...Vu,
4599
- ...cu,
4600
- ...Mu
4601
- }, qu), rc = /* @__PURE__ */ Ar(Zu), Ju = {
4602
- some: 0,
4603
- all: 1
4604
- };
4605
- function Qu(t, e, { root: n, margin: s, amount: i = "some" } = {}) {
4606
- const o = Yi(t), r = /* @__PURE__ */ new WeakMap(), a = (c) => {
4607
- c.forEach((u) => {
4608
- const h = r.get(u.target);
4609
- if (u.isIntersecting !== !!h)
4610
- if (u.isIntersecting) {
4611
- const f = e(u.target, u);
4612
- typeof f == "function" ? r.set(u.target, f) : l.unobserve(u.target);
4613
- } else typeof h == "function" && (h(u), r.delete(u.target));
4614
- });
4615
- }, l = new IntersectionObserver(a, {
4616
- root: n,
4617
- rootMargin: s,
4618
- threshold: typeof i == "number" ? i : Ju[i]
4619
- });
4620
- return o.forEach((c) => l.observe(c)), () => l.disconnect();
4621
- }
4622
- function oc(t, { root: e, margin: n, amount: s, once: i = !1, initial: o = !1 } = {}) {
4623
- const [r, a] = pr(o);
4624
- return qt(() => {
4625
- if (!t.current || i && r)
4626
- return;
4627
- const l = () => (a(!0), i ? void 0 : () => a(!1)), c = {
4628
- root: e && e.current || void 0,
4629
- margin: n,
4630
- amount: s
4631
- };
4632
- return Qu(t.current, l, c);
4633
- }, [e, t, n, i, s]), r;
4634
- }
4596
+ }), qu = /* @__PURE__ */ so({
4597
+ ...Za,
4598
+ ...Au,
4599
+ ...lu,
4600
+ ...Vu
4601
+ }, Xu), nc = /* @__PURE__ */ br(qu);
4635
4602
  export {
4636
4603
  ks as L,
4637
- Bs as M,
4604
+ Fs as M,
4638
4605
  je as P,
4639
4606
  gr as a,
4640
- vr as b,
4641
- yr as c,
4642
- rc as m,
4643
- oc as u
4607
+ pr as b,
4608
+ nc as m,
4609
+ uu as r,
4610
+ mr as u
4644
4611
  };
4645
- //# sourceMappingURL=use-in-view-CZPXmTZM.js.map
4612
+ //# sourceMappingURL=proxy-DJxJg1kD.js.map