@cloudflare/kumo 2.6.0 → 2.7.0

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 (234) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/ai/component-registry.json +18 -14
  3. package/ai/component-registry.md +100 -5
  4. package/ai/schemas.ts +1 -1
  5. package/dist/.build-complete +1 -1
  6. package/dist/ai/schemas.js +1 -1
  7. package/dist/ai/schemas.js.map +1 -1
  8. package/dist/chunks/Maps-fkiyllhs5w0qzw1y.js +2155 -0
  9. package/dist/chunks/Maps-fkiyllhs5w0qzw1y.js.map +1 -0
  10. package/dist/chunks/{autocomplete-hgprlcuf0ixbbo6d.js → autocomplete-a4gvspveibfuod24.js} +5 -5
  11. package/dist/chunks/{autocomplete-hgprlcuf0ixbbo6d.js.map → autocomplete-a4gvspveibfuod24.js.map} +1 -1
  12. package/dist/chunks/{badge-c1th6h6ahz7eu49q.js → badge-dfc1r37osagi3rs4.js} +9 -9
  13. package/dist/chunks/{badge-c1th6h6ahz7eu49q.js.map → badge-dfc1r37osagi3rs4.js.map} +1 -1
  14. package/dist/chunks/{banner-es5iwuk4pf25e29e.js → banner-j52y8l13puk7dybi.js} +2 -2
  15. package/dist/chunks/{banner-es5iwuk4pf25e29e.js.map → banner-j52y8l13puk7dybi.js.map} +1 -1
  16. package/dist/chunks/{breadcrumbs-lyj8ljudrm2owx5y.js → breadcrumbs-js59m7m57bdsveew.js} +4 -4
  17. package/dist/chunks/{breadcrumbs-lyj8ljudrm2owx5y.js.map → breadcrumbs-js59m7m57bdsveew.js.map} +1 -1
  18. package/dist/chunks/{button-gtdhvogt5rlrf1is.js → button-ebfdg9mkhojue36n.js} +80 -80
  19. package/dist/chunks/button-ebfdg9mkhojue36n.js.map +1 -0
  20. package/dist/chunks/{checkbox-byg8t8r9vbmif696.js → checkbox-k355pnfisqt0h4eg.js} +4 -4
  21. package/dist/chunks/{checkbox-byg8t8r9vbmif696.js.map → checkbox-k355pnfisqt0h4eg.js.map} +1 -1
  22. package/dist/chunks/{clipboard-text-lf909phvldd8rfk8.js → clipboard-text-isb05zkg2aox0tp6.js} +5 -5
  23. package/dist/chunks/{clipboard-text-lf909phvldd8rfk8.js.map → clipboard-text-isb05zkg2aox0tp6.js.map} +1 -1
  24. package/dist/chunks/{cloudflare-logo-fya2cd2ljozkzjh8.js → cloudflare-logo-fiuocxdxqrxawjfv.js} +2 -2
  25. package/dist/chunks/{cloudflare-logo-fya2cd2ljozkzjh8.js.map → cloudflare-logo-fiuocxdxqrxawjfv.js.map} +1 -1
  26. package/dist/chunks/{cn-ct4n7r74mh8y0f48.js → cn-bo7ya7641lkickbt.js} +6 -10
  27. package/dist/chunks/cn-bo7ya7641lkickbt.js.map +1 -0
  28. package/dist/chunks/{code-bbnjm8vk9hxl129r.js → code-pbkfdfat0yilg6dx.js} +2 -2
  29. package/dist/chunks/{code-bbnjm8vk9hxl129r.js.map → code-pbkfdfat0yilg6dx.js.map} +1 -1
  30. package/dist/chunks/{collapsible-dl61f8gd4j897hmv.js → collapsible-f9hgtc1u6xvqrgt8.js} +3 -3
  31. package/dist/chunks/{collapsible-dl61f8gd4j897hmv.js.map → collapsible-f9hgtc1u6xvqrgt8.js.map} +1 -1
  32. package/dist/chunks/{combobox-dxff22zxzq846nec.js → combobox-hc9wi9nwsyyli8ur.js} +5 -5
  33. package/dist/chunks/{combobox-dxff22zxzq846nec.js.map → combobox-hc9wi9nwsyyli8ur.js.map} +1 -1
  34. package/dist/chunks/{command-palette-i4r0402b838wiy0j.js → command-palette-c03zze4ayuytwxjg.js} +4 -4
  35. package/dist/chunks/{command-palette-i4r0402b838wiy0j.js.map → command-palette-c03zze4ayuytwxjg.js.map} +1 -1
  36. package/dist/chunks/{date-picker-mjocqqbggb76n8rt.js → date-picker-bffp889exjixmgz3.js} +8 -8
  37. package/dist/chunks/{date-picker-mjocqqbggb76n8rt.js.map → date-picker-bffp889exjixmgz3.js.map} +1 -1
  38. package/dist/chunks/{date-range-picker-o8uyril1kogvhoei.js → date-range-picker-oks2r14lbbukd545.js} +2 -2
  39. package/dist/chunks/{date-range-picker-o8uyril1kogvhoei.js.map → date-range-picker-oks2r14lbbukd545.js.map} +1 -1
  40. package/dist/chunks/{dialog-g1b8161nbyixdit0.js → dialog-ovhmzfuppr5xix0e.js} +15 -15
  41. package/dist/chunks/dialog-ovhmzfuppr5xix0e.js.map +1 -0
  42. package/dist/chunks/{dropdown-irp18txvgz8590e9.js → dropdown-iey8f344rd5dgahz.js} +24 -16
  43. package/dist/chunks/dropdown-iey8f344rd5dgahz.js.map +1 -0
  44. package/dist/chunks/{empty-daa6d7u9oleaw24a.js → empty-k83r53jh5utqvv7w.js} +3 -3
  45. package/dist/chunks/{empty-daa6d7u9oleaw24a.js.map → empty-k83r53jh5utqvv7w.js.map} +1 -1
  46. package/dist/chunks/{field-f1hy08um3jf9jos6.js → field-bmglk138wa8bf3ei.js} +4 -4
  47. package/dist/chunks/{field-f1hy08um3jf9jos6.js.map → field-bmglk138wa8bf3ei.js.map} +1 -1
  48. package/dist/chunks/{grid-do93dv1rjggqxx7p.js → grid-jze04557ljywg3uc.js} +2 -2
  49. package/dist/chunks/{grid-do93dv1rjggqxx7p.js.map → grid-jze04557ljywg3uc.js.map} +1 -1
  50. package/dist/chunks/{input-area-bwyujceeulpfkpxv.js → input-area-ixtj4e8eny58nbf9.js} +12 -12
  51. package/dist/chunks/{input-area-bwyujceeulpfkpxv.js.map → input-area-ixtj4e8eny58nbf9.js.map} +1 -1
  52. package/dist/chunks/{input-f2ct7obgdzypjmp2.js → input-ckl5misj0jd9cu5r.js} +4 -4
  53. package/dist/chunks/{input-f2ct7obgdzypjmp2.js.map → input-ckl5misj0jd9cu5r.js.map} +1 -1
  54. package/dist/chunks/{input-group-kcd3jin5pbdijmw8.js → input-group-bflx1m6ki55e99vf.js} +6 -6
  55. package/dist/chunks/{input-group-kcd3jin5pbdijmw8.js.map → input-group-bflx1m6ki55e99vf.js.map} +1 -1
  56. package/dist/chunks/{label-himqjkdhh0hgfdsa.js → label-i1xbmg8y1n0tbtkx.js} +4 -4
  57. package/dist/chunks/{label-himqjkdhh0hgfdsa.js.map → label-i1xbmg8y1n0tbtkx.js.map} +1 -1
  58. package/dist/chunks/{layer-card-cshi5vydqg3phyfx.js → layer-card-m6h85dpadvee39h2.js} +3 -3
  59. package/dist/chunks/{layer-card-cshi5vydqg3phyfx.js.map → layer-card-m6h85dpadvee39h2.js.map} +1 -1
  60. package/dist/chunks/{link-bw21ofmgg58igq5n.js → link-j93fl5m8zrcfivsr.js} +3 -3
  61. package/dist/chunks/{link-bw21ofmgg58igq5n.js.map → link-j93fl5m8zrcfivsr.js.map} +1 -1
  62. package/dist/chunks/{menubar-m12wcbbucuszspw4.js → menubar-opzxfzylaatfz4nv.js} +8 -8
  63. package/dist/chunks/{menubar-m12wcbbucuszspw4.js.map → menubar-opzxfzylaatfz4nv.js.map} +1 -1
  64. package/dist/chunks/{meter-dn8vgc0smpk0du75.js → meter-6br6z5ekw41trxeh.js} +3 -3
  65. package/dist/chunks/{meter-dn8vgc0smpk0du75.js.map → meter-6br6z5ekw41trxeh.js.map} +1 -1
  66. package/dist/chunks/{pagination-oafyxvdndm9m8250.js → pagination-j33ntwqmm9qskfgv.js} +4 -4
  67. package/dist/chunks/{pagination-oafyxvdndm9m8250.js.map → pagination-j33ntwqmm9qskfgv.js.map} +1 -1
  68. package/dist/chunks/{popover-bbxr39l1lx175hum.js → popover-cqdmpp8i4hg8gzzx.js} +3 -3
  69. package/dist/chunks/{popover-bbxr39l1lx175hum.js.map → popover-cqdmpp8i4hg8gzzx.js.map} +1 -1
  70. package/dist/chunks/{radio-ffx05ih9nc764evh.js → radio-ejey7i6r4tq314av.js} +3 -3
  71. package/dist/chunks/{radio-ffx05ih9nc764evh.js.map → radio-ejey7i6r4tq314av.js.map} +1 -1
  72. package/dist/chunks/{select-kl1skfh3pmwc33rp.js → select-p8adn2tnpom25hpl.js} +8 -8
  73. package/dist/chunks/{select-kl1skfh3pmwc33rp.js.map → select-p8adn2tnpom25hpl.js.map} +1 -1
  74. package/dist/chunks/{sensitive-input-izmbyk1t7r56ciiq.js → sensitive-input-it1hsswlccq3u7g6.js} +5 -5
  75. package/dist/chunks/{sensitive-input-izmbyk1t7r56ciiq.js.map → sensitive-input-it1hsswlccq3u7g6.js.map} +1 -1
  76. package/dist/chunks/{sidebar-ior8rnhsd7gy5am5.js → sidebar-ctd980heycmxsux1.js} +4 -4
  77. package/dist/chunks/{sidebar-ior8rnhsd7gy5am5.js.map → sidebar-ctd980heycmxsux1.js.map} +1 -1
  78. package/dist/chunks/{skeleton-line-epxenksfesr2fkcv.js → skeleton-line-omxgxia23vpav94x.js} +2 -2
  79. package/dist/chunks/{skeleton-line-epxenksfesr2fkcv.js.map → skeleton-line-omxgxia23vpav94x.js.map} +1 -1
  80. package/dist/chunks/{surface-g5a1buofz4erjov2.js → surface-gc2gblserrxcb1eg.js} +5 -5
  81. package/dist/chunks/{surface-g5a1buofz4erjov2.js.map → surface-gc2gblserrxcb1eg.js.map} +1 -1
  82. package/dist/chunks/{switch-kh8a6l3l0hszm9h4.js → switch-ljsq915e0l1a5mjd.js} +4 -4
  83. package/dist/chunks/{switch-kh8a6l3l0hszm9h4.js.map → switch-ljsq915e0l1a5mjd.js.map} +1 -1
  84. package/dist/chunks/{table-of-contents-jco9kvt48d34dwsw.js → table-of-contents-cghjqyk43nj5zmlw.js} +2 -2
  85. package/dist/chunks/{table-of-contents-jco9kvt48d34dwsw.js.map → table-of-contents-cghjqyk43nj5zmlw.js.map} +1 -1
  86. package/dist/chunks/{table-dz2k55oab66h2vi9.js → table-ojjjeqszmt9jgnug.js} +3 -3
  87. package/dist/chunks/{table-dz2k55oab66h2vi9.js.map → table-ojjjeqszmt9jgnug.js.map} +1 -1
  88. package/dist/chunks/{tabs-kcw98wibdz4mhpkc.js → tabs-kemdy19kfesj2xjr.js} +3 -3
  89. package/dist/chunks/{tabs-kcw98wibdz4mhpkc.js.map → tabs-kemdy19kfesj2xjr.js.map} +1 -1
  90. package/dist/chunks/{text-be7ehenoyldhyjma.js → text-oqp48b9m5u6t62b4.js} +2 -2
  91. package/dist/chunks/{text-be7ehenoyldhyjma.js.map → text-oqp48b9m5u6t62b4.js.map} +1 -1
  92. package/dist/chunks/{toast-dkdo1lu72tnefya6.js → toast-ldj9zi940w83ub90.js} +97 -81
  93. package/dist/chunks/toast-ldj9zi940w83ub90.js.map +1 -0
  94. package/dist/chunks/{toolbar-o7xe6pd189evdd53.js → toolbar-lmylyrod70sn0q4i.js} +6 -6
  95. package/dist/chunks/{toolbar-o7xe6pd189evdd53.js.map → toolbar-lmylyrod70sn0q4i.js.map} +1 -1
  96. package/dist/chunks/{tooltip-eqnhjdbvwapy8gj4.js → tooltip-mooldq78tg77ekvv.js} +4 -4
  97. package/dist/chunks/tooltip-mooldq78tg77ekvv.js.map +1 -0
  98. package/dist/chunks/vendor-base-ui-elpbzr8xeffrz4h2.js +25027 -0
  99. package/dist/chunks/vendor-base-ui-elpbzr8xeffrz4h2.js.map +1 -0
  100. package/dist/chunks/{vendor-floating-ui-c4mwmh0xmfzevy9l.js → vendor-floating-ui-k1zjlb8fkwtcw4k5.js} +22 -23
  101. package/dist/chunks/{vendor-floating-ui-c4mwmh0xmfzevy9l.js.map → vendor-floating-ui-k1zjlb8fkwtcw4k5.js.map} +1 -1
  102. package/dist/chunks/vendor-styling-ofvnbcuht98q88oo.js +3252 -0
  103. package/dist/chunks/vendor-styling-ofvnbcuht98q88oo.js.map +1 -0
  104. package/dist/code.js +2 -2
  105. package/dist/components/autocomplete.js +1 -1
  106. package/dist/components/badge.js +1 -1
  107. package/dist/components/banner.js +1 -1
  108. package/dist/components/breadcrumbs.js +1 -1
  109. package/dist/components/button.js +1 -1
  110. package/dist/components/chart.js +6 -4
  111. package/dist/components/checkbox.js +1 -1
  112. package/dist/components/clipboard-text.js +1 -1
  113. package/dist/components/cloudflare-logo.js +1 -1
  114. package/dist/components/code.js +1 -1
  115. package/dist/components/collapsible.js +1 -1
  116. package/dist/components/combobox.js +1 -1
  117. package/dist/components/command-palette.js +1 -1
  118. package/dist/components/date-picker.js +1 -1
  119. package/dist/components/date-range-picker.js +1 -1
  120. package/dist/components/dialog.js +1 -1
  121. package/dist/components/dropdown.js +1 -1
  122. package/dist/components/empty.js +1 -1
  123. package/dist/components/field.js +1 -1
  124. package/dist/components/flow.js +345 -336
  125. package/dist/components/flow.js.map +1 -1
  126. package/dist/components/grid.js +1 -1
  127. package/dist/components/input-group.js +1 -1
  128. package/dist/components/input.js +3 -3
  129. package/dist/components/label.js +1 -1
  130. package/dist/components/layer-card.js +1 -1
  131. package/dist/components/link.js +1 -1
  132. package/dist/components/loader.js +1 -1
  133. package/dist/components/menubar.js +1 -1
  134. package/dist/components/meter.js +1 -1
  135. package/dist/components/pagination.js +1 -1
  136. package/dist/components/popover.js +1 -1
  137. package/dist/components/radio.js +1 -1
  138. package/dist/components/select.js +1 -1
  139. package/dist/components/sensitive-input.js +1 -1
  140. package/dist/components/sidebar.js +1 -1
  141. package/dist/components/surface.js +1 -1
  142. package/dist/components/switch.js +1 -1
  143. package/dist/components/table-of-contents.js +1 -1
  144. package/dist/components/table.js +1 -1
  145. package/dist/components/tabs.js +1 -1
  146. package/dist/components/text.js +1 -1
  147. package/dist/components/toast.js +2 -2
  148. package/dist/components/toolbar.js +1 -1
  149. package/dist/components/tooltip.js +1 -1
  150. package/dist/index.js +128 -126
  151. package/dist/primitives/accordion.js +1 -1
  152. package/dist/primitives/alert-dialog.js +1 -1
  153. package/dist/primitives/autocomplete.js +1 -1
  154. package/dist/primitives/avatar.js +1 -1
  155. package/dist/primitives/button.js +1 -1
  156. package/dist/primitives/checkbox-group.js +1 -1
  157. package/dist/primitives/checkbox.js +1 -1
  158. package/dist/primitives/collapsible.js +1 -1
  159. package/dist/primitives/combobox.js +1 -1
  160. package/dist/primitives/context-menu.js +1 -1
  161. package/dist/primitives/csp-provider.js +1 -1
  162. package/dist/primitives/dialog.js +1 -1
  163. package/dist/primitives/direction-provider.js +1 -1
  164. package/dist/primitives/drawer.js +1 -1
  165. package/dist/primitives/field.js +1 -1
  166. package/dist/primitives/fieldset.js +1 -1
  167. package/dist/primitives/form.js +1 -1
  168. package/dist/primitives/input.js +1 -1
  169. package/dist/primitives/menu.js +1 -1
  170. package/dist/primitives/menubar.js +1 -1
  171. package/dist/primitives/meter.js +1 -1
  172. package/dist/primitives/navigation-menu.js +1 -1
  173. package/dist/primitives/number-field.js +1 -1
  174. package/dist/primitives/otp-field.js +3 -2
  175. package/dist/primitives/popover.js +1 -1
  176. package/dist/primitives/preview-card.js +1 -1
  177. package/dist/primitives/progress.js +1 -1
  178. package/dist/primitives/radio-group.js +1 -1
  179. package/dist/primitives/radio.js +1 -1
  180. package/dist/primitives/scroll-area.js +1 -1
  181. package/dist/primitives/select.js +1 -1
  182. package/dist/primitives/separator.js +1 -1
  183. package/dist/primitives/slider.js +1 -1
  184. package/dist/primitives/switch.js +1 -1
  185. package/dist/primitives/tabs.js +1 -1
  186. package/dist/primitives/toast.js +1 -1
  187. package/dist/primitives/toggle-group.js +1 -1
  188. package/dist/primitives/toggle.js +1 -1
  189. package/dist/primitives/toolbar.js +1 -1
  190. package/dist/primitives/tooltip.js +1 -1
  191. package/dist/primitives.js +27 -26
  192. package/dist/src/components/button/button.d.ts +2 -2
  193. package/dist/src/components/chart/Color.d.ts +16 -0
  194. package/dist/src/components/chart/Color.d.ts.map +1 -1
  195. package/dist/src/components/chart/EChart.d.ts +7 -0
  196. package/dist/src/components/chart/EChart.d.ts.map +1 -1
  197. package/dist/src/components/chart/Maps.d.ts +211 -0
  198. package/dist/src/components/chart/Maps.d.ts.map +1 -0
  199. package/dist/src/components/chart/SankeyChart.d.ts.map +1 -1
  200. package/dist/src/components/chart/index.d.ts +1 -0
  201. package/dist/src/components/chart/index.d.ts.map +1 -1
  202. package/dist/src/components/chart/tooltip-utils.d.ts +4 -0
  203. package/dist/src/components/chart/tooltip-utils.d.ts.map +1 -0
  204. package/dist/src/components/dialog/dialog.d.ts +12 -12
  205. package/dist/src/components/dropdown/dropdown.d.ts.map +1 -1
  206. package/dist/src/components/flow/diagram.d.ts +5 -3
  207. package/dist/src/components/flow/diagram.d.ts.map +1 -1
  208. package/dist/src/components/toast/toast.d.ts +2 -2
  209. package/dist/src/components/toast/toast.d.ts.map +1 -1
  210. package/dist/src/index.d.ts +1 -1
  211. package/dist/src/index.d.ts.map +1 -1
  212. package/dist/src/primitives/index.d.ts +1 -0
  213. package/dist/src/primitives/index.d.ts.map +1 -1
  214. package/dist/src/primitives/otp-field.d.ts +1 -0
  215. package/dist/src/primitives/otp-field.d.ts.map +1 -1
  216. package/dist/src/utils/cn.d.ts +1 -2
  217. package/dist/src/utils/cn.d.ts.map +1 -1
  218. package/dist/styles/kumo-standalone.css +1 -1
  219. package/dist/utils.js +8 -7
  220. package/dist/utils.js.map +1 -1
  221. package/package.json +6 -5
  222. package/scripts/generate-primitives.ts +9 -0
  223. package/dist/chunks/SankeyChart-g1tng405ml2e0qg2.js +0 -890
  224. package/dist/chunks/SankeyChart-g1tng405ml2e0qg2.js.map +0 -1
  225. package/dist/chunks/button-gtdhvogt5rlrf1is.js.map +0 -1
  226. package/dist/chunks/cn-ct4n7r74mh8y0f48.js.map +0 -1
  227. package/dist/chunks/dialog-g1b8161nbyixdit0.js.map +0 -1
  228. package/dist/chunks/dropdown-irp18txvgz8590e9.js.map +0 -1
  229. package/dist/chunks/toast-dkdo1lu72tnefya6.js.map +0 -1
  230. package/dist/chunks/tooltip-eqnhjdbvwapy8gj4.js.map +0 -1
  231. package/dist/chunks/vendor-base-ui-f9z44m829vvptrg0.js +0 -24712
  232. package/dist/chunks/vendor-base-ui-f9z44m829vvptrg0.js.map +0 -1
  233. package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js +0 -2775
  234. package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { jsxs as Bt, jsx as C } from "react/jsx-runtime";
2
+ import { jsxs as Ft, jsx as C } from "react/jsx-runtime";
3
3
  import { createContext as gt, useRef as N, useLayoutEffect as Pt, useEffect as X, useContext as W, useId as Pe, useCallback as ot, useMemo as ct, Fragment as Ti, createElement as Po, useInsertionEffect as bi, forwardRef as Ae, Component as Ao, useState as rt, isValidElement as Si, cloneElement as Pi } from "react";
4
- import { c as me } from "../chunks/cn-ct4n7r74mh8y0f48.js";
4
+ import { c as It } from "../chunks/vendor-styling-ofvnbcuht98q88oo.js";
5
5
  const Ai = gt({});
6
- function _t(t) {
6
+ function Xt(t) {
7
7
  const e = N(null);
8
8
  return e.current === null && (e.current = t()), e.current;
9
9
  }
@@ -19,10 +19,10 @@ const ht = (t, e, n) => n > e ? e : n < t ? t : n;
19
19
  function Ge(t, e) {
20
20
  return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
21
21
  }
22
- let Ft = () => {
22
+ let Ot = () => {
23
23
  }, ft = () => {
24
24
  };
25
- typeof process < "u" && process.env?.NODE_ENV !== "production" && (Ft = (t, e, n) => {
25
+ typeof process < "u" && process.env?.NODE_ENV !== "production" && (Ot = (t, e, n) => {
26
26
  !t && typeof console < "u" && console.warn(Ge(e, n));
27
27
  }, ft = (t, e, n) => {
28
28
  if (!t)
@@ -38,7 +38,7 @@ function Ri(t) {
38
38
  let e;
39
39
  return () => (e === void 0 && (e = t()), e);
40
40
  }
41
- const et = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Vo = (t, e) => (n) => e(t(n)), Qt = (...t) => t.reduce(Vo), Xt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
41
+ const et = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Vo = (t, e) => (n) => e(t(n)), te = (...t) => t.reduce(Vo), Yt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
42
42
  const s = e - t;
43
43
  return s === 0 ? 1 : (n - t) / s;
44
44
  };
@@ -83,13 +83,13 @@ function Do(t, e, n, s, i) {
83
83
  while (Math.abs(o) > Co && ++a < Eo);
84
84
  return r;
85
85
  }
86
- function te(t, e, n, s) {
86
+ function ee(t, e, n, s) {
87
87
  if (t === e && n === s)
88
88
  return et;
89
89
  const i = (o) => Do(o, 0, 1, t, n);
90
90
  return (o) => o === 0 || o === 1 ? o : ki(i(o), e, s);
91
91
  }
92
- const Ii = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Bi = (t) => (e) => 1 - t(1 - e), Fi = /* @__PURE__ */ te(0.33, 1.53, 0.69, 0.99), Sn = /* @__PURE__ */ Bi(Fi), Oi = /* @__PURE__ */ Ii(Sn), Ni = (t) => (t *= 2) < 1 ? 0.5 * Sn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Pn = (t) => 1 - Math.sin(Math.acos(t)), ji = Bi(Pn), $i = Ii(Pn), Mo = /* @__PURE__ */ te(0.42, 0, 1, 1), Ro = /* @__PURE__ */ te(0, 0, 0.58, 1), Ui = /* @__PURE__ */ te(0.42, 0, 0.58, 1), Lo = (t) => Array.isArray(t) && typeof t[0] != "number", Wi = (t) => Array.isArray(t) && typeof t[0] == "number", ts = {
92
+ const Ii = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Bi = (t) => (e) => 1 - t(1 - e), Fi = /* @__PURE__ */ ee(0.33, 1.53, 0.69, 0.99), Sn = /* @__PURE__ */ Bi(Fi), Oi = /* @__PURE__ */ Ii(Sn), Ni = (t) => (t *= 2) < 1 ? 0.5 * Sn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Pn = (t) => 1 - Math.sin(Math.acos(t)), ji = Bi(Pn), $i = Ii(Pn), Mo = /* @__PURE__ */ ee(0.42, 0, 1, 1), Ro = /* @__PURE__ */ ee(0, 0, 0.58, 1), Ui = /* @__PURE__ */ ee(0.42, 0, 0.58, 1), Lo = (t) => Array.isArray(t) && typeof t[0] != "number", Wi = (t) => Array.isArray(t) && typeof t[0] == "number", ts = {
93
93
  linear: et,
94
94
  easeIn: Mo,
95
95
  easeInOut: Ui,
@@ -105,11 +105,11 @@ const Ii = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Bi
105
105
  if (Wi(t)) {
106
106
  ft(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
107
107
  const [e, n, s, i] = t;
108
- return te(e, n, s, i);
108
+ return ee(e, n, s, i);
109
109
  } else if (ko(t))
110
110
  return ft(ts[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), ts[t];
111
111
  return t;
112
- }, se = [
112
+ }, ie = [
113
113
  "setup",
114
114
  // Compute
115
115
  "read",
@@ -172,45 +172,45 @@ function zi(t, e) {
172
172
  delta: 0,
173
173
  timestamp: 0,
174
174
  isProcessing: !1
175
- }, o = () => n = !0, r = se.reduce((p, S) => (p[S] = Io(o), p), {}), { setup: a, read: c, resolveKeyframes: l, preUpdate: u, update: h, preRender: d, render: f, postRender: m } = r, x = () => {
175
+ }, o = () => n = !0, r = ie.reduce((p, P) => (p[P] = Io(o), p), {}), { setup: a, read: c, resolveKeyframes: l, preUpdate: u, update: h, preRender: d, render: f, postRender: m } = r, x = () => {
176
176
  const p = mt.useManualTiming ? i.timestamp : performance.now();
177
177
  n = !1, mt.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(p - i.timestamp, Bo), 1)), i.timestamp = p, i.isProcessing = !0, a.process(i), c.process(i), l.process(i), u.process(i), h.process(i), d.process(i), f.process(i), m.process(i), i.isProcessing = !1, n && e && (s = !1, t(x));
178
178
  }, y = () => {
179
179
  n = !0, s = !0, i.isProcessing || t(x);
180
180
  };
181
- return { schedule: se.reduce((p, S) => {
182
- const w = r[S];
183
- return p[S] = (b, V = !1, P = !1) => (n || y(), w.schedule(b, V, P)), p;
181
+ return { schedule: ie.reduce((p, P) => {
182
+ const v = r[P];
183
+ return p[P] = (b, V = !1, S = !1) => (n || y(), v.schedule(b, V, S)), p;
184
184
  }, {}), cancel: (p) => {
185
- for (let S = 0; S < se.length; S++)
186
- r[se[S]].cancel(p);
185
+ for (let P = 0; P < ie.length; P++)
186
+ r[ie[P]].cancel(p);
187
187
  }, state: i, steps: r };
188
188
  }
189
189
  const { schedule: D, cancel: pt, state: G, steps: De } = /* @__PURE__ */ zi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : et, !0);
190
- let ae;
190
+ let ce;
191
191
  function Fo() {
192
- ae = void 0;
192
+ ce = void 0;
193
193
  }
194
194
  const Y = {
195
- now: () => (ae === void 0 && Y.set(G.isProcessing || mt.useManualTiming ? G.timestamp : performance.now()), ae),
195
+ now: () => (ce === void 0 && Y.set(G.isProcessing || mt.useManualTiming ? G.timestamp : performance.now()), ce),
196
196
  set: (t) => {
197
- ae = t, queueMicrotask(Fo);
197
+ ce = t, queueMicrotask(Fo);
198
198
  }
199
199
  }, Hi = (t) => (e) => typeof e == "string" && e.startsWith(t), Ki = /* @__PURE__ */ Hi("--"), Oo = /* @__PURE__ */ Hi("var(--"), An = (t) => Oo(t) ? No.test(t.split("/*")[0].trim()) : !1, No = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
200
200
  function ns(t) {
201
201
  return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
202
202
  }
203
- const Ot = {
203
+ const Nt = {
204
204
  test: (t) => typeof t == "number",
205
205
  parse: parseFloat,
206
206
  transform: (t) => t
207
- }, Yt = {
208
- ...Ot,
207
+ }, qt = {
208
+ ...Nt,
209
209
  transform: (t) => ht(0, 1, t)
210
- }, ie = {
211
- ...Ot,
210
+ }, re = {
211
+ ...Nt,
212
212
  default: 1
213
- }, zt = (t) => Math.round(t * 1e5) / 1e5, Vn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
213
+ }, Ht = (t) => Math.round(t * 1e5) / 1e5, Vn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
214
214
  function jo(t) {
215
215
  return t == null;
216
216
  }
@@ -225,12 +225,12 @@ const $o = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
225
225
  alpha: a !== void 0 ? parseFloat(a) : 1
226
226
  };
227
227
  }, Uo = (t) => ht(0, 255, t), Me = {
228
- ...Ot,
228
+ ...Nt,
229
229
  transform: (t) => Math.round(Uo(t))
230
230
  }, bt = {
231
231
  test: /* @__PURE__ */ Cn("rgb", "red"),
232
232
  parse: /* @__PURE__ */ Gi("red", "green", "blue"),
233
- transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Me.transform(t) + ", " + Me.transform(e) + ", " + Me.transform(n) + ", " + zt(Yt.transform(s)) + ")"
233
+ transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Me.transform(t) + ", " + Me.transform(e) + ", " + Me.transform(n) + ", " + Ht(qt.transform(s)) + ")"
234
234
  };
235
235
  function Wo(t) {
236
236
  let e = "", n = "", s = "", i = "";
@@ -245,18 +245,18 @@ const _e = {
245
245
  test: /* @__PURE__ */ Cn("#"),
246
246
  parse: Wo,
247
247
  transform: bt.transform
248
- }, ee = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
248
+ }, ne = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
249
249
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
250
250
  parse: parseFloat,
251
251
  transform: (e) => `${e}${t}`
252
- }), yt = /* @__PURE__ */ ee("deg"), ut = /* @__PURE__ */ ee("%"), T = /* @__PURE__ */ ee("px"), zo = /* @__PURE__ */ ee("vh"), Ho = /* @__PURE__ */ ee("vw"), ss = {
252
+ }), yt = /* @__PURE__ */ ne("deg"), ut = /* @__PURE__ */ ne("%"), T = /* @__PURE__ */ ne("px"), zo = /* @__PURE__ */ ne("vh"), Ho = /* @__PURE__ */ ne("vw"), ss = {
253
253
  ...ut,
254
254
  parse: (t) => ut.parse(t) / 100,
255
255
  transform: (t) => ut.transform(t * 100)
256
256
  }, Et = {
257
257
  test: /* @__PURE__ */ Cn("hsl", "hue"),
258
258
  parse: /* @__PURE__ */ Gi("hue", "saturation", "lightness"),
259
- transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + ut.transform(zt(e)) + ", " + ut.transform(zt(n)) + ", " + zt(Yt.transform(s)) + ")"
259
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + ut.transform(Ht(e)) + ", " + ut.transform(Ht(n)) + ", " + Ht(qt.transform(s)) + ")"
260
260
  }, j = {
261
261
  test: (t) => bt.test(t) || _e.test(t) || Et.test(t),
262
262
  parse: (t) => bt.test(t) ? bt.parse(t) : Et.test(t) ? Et.parse(t) : _e.parse(t),
@@ -270,7 +270,7 @@ function Go(t) {
270
270
  return isNaN(t) && typeof t == "string" && (t.match(Vn)?.length || 0) + (t.match(Ko)?.length || 0) > 0;
271
271
  }
272
272
  const _i = "number", Xi = "color", _o = "var", Xo = "var(", is = "${}", Yo = /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;
273
- function qt(t) {
273
+ function Zt(t) {
274
274
  const e = t.toString(), n = [], s = {
275
275
  color: [],
276
276
  number: [],
@@ -281,16 +281,16 @@ function qt(t) {
281
281
  return { values: n, split: a, indexes: s, types: i };
282
282
  }
283
283
  function Yi(t) {
284
- return qt(t).values;
284
+ return Zt(t).values;
285
285
  }
286
286
  function qi(t) {
287
- const { split: e, types: n } = qt(t), s = e.length;
287
+ const { split: e, types: n } = Zt(t), s = e.length;
288
288
  return (i) => {
289
289
  let o = "";
290
290
  for (let r = 0; r < s; r++)
291
291
  if (o += e[r], i[r] !== void 0) {
292
292
  const a = n[r];
293
- a === _i ? o += zt(i[r]) : a === Xi ? o += j.transform(i[r]) : o += i[r];
293
+ a === _i ? o += Ht(i[r]) : a === Xi ? o += j.transform(i[r]) : o += i[r];
294
294
  }
295
295
  return o;
296
296
  };
@@ -334,7 +334,7 @@ const O = (t, e, n) => t + (e - t) * n, Le = (t, e, n) => {
334
334
  }, Qo = [_e, bt, Et], ta = (t) => Qo.find((e) => e.test(t));
335
335
  function rs(t) {
336
336
  const e = ta(t);
337
- if (Ft(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
337
+ if (Ot(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
338
338
  return !1;
339
339
  let n = e.parse(t);
340
340
  return e === Et && (n = Jo(n)), n;
@@ -382,8 +382,8 @@ function ia(t, e) {
382
382
  return n;
383
383
  }
384
384
  const ra = (t, e) => {
385
- const n = at.createTransformer(e), s = qt(t), i = qt(e);
386
- 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 ? ea(t, e) : Qt(Zi(ia(s, i), i.values), n) : (Ft(!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.`, "complex-values-different"), ge(t, e));
385
+ const n = at.createTransformer(e), s = Zt(t), i = Zt(e);
386
+ 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 ? ea(t, e) : te(Zi(ia(s, i), i.values), n) : (Ot(!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.`, "complex-values-different"), ge(t, e));
387
387
  };
388
388
  function Ji(t, e, n) {
389
389
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? O(t, e, n) : En(t)(t, e);
@@ -458,7 +458,7 @@ const F = {
458
458
  }, ke = 1e-3;
459
459
  function la({ duration: t = F.duration, bounce: e = F.bounce, velocity: n = F.velocity, mass: s = F.mass }) {
460
460
  let i, o;
461
- Ft(t <= /* @__PURE__ */ nt(F.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
461
+ Ot(t <= /* @__PURE__ */ nt(F.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
462
462
  let r = 1 - e;
463
463
  r = ht(F.minDamping, F.maxDamping, r), t = ht(F.minDuration, F.maxDuration, /* @__PURE__ */ tt(t)), r < 1 ? (i = (l) => {
464
464
  const u = l * r, h = u * t, d = u - n, f = Ye(l, r), m = Math.exp(-h);
@@ -541,46 +541,46 @@ function ve(t = F.visualDuration, e = F.bounce) {
541
541
  const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: c, damping: l, mass: u, duration: h, velocity: d, isResolvedFromDuration: f } = ma({
542
542
  ...n,
543
543
  velocity: -/* @__PURE__ */ tt(n.velocity || 0)
544
- }), m = d || 0, x = l / (2 * Math.sqrt(c * u)), y = r - o, g = /* @__PURE__ */ tt(Math.sqrt(c / u)), v = Math.abs(y) < 5;
545
- s || (s = v ? F.restSpeed.granular : F.restSpeed.default), i || (i = v ? F.restDelta.granular : F.restDelta.default);
544
+ }), m = d || 0, x = l / (2 * Math.sqrt(c * u)), y = r - o, g = /* @__PURE__ */ tt(Math.sqrt(c / u)), w = Math.abs(y) < 5;
545
+ s || (s = w ? F.restSpeed.granular : F.restSpeed.default), i || (i = w ? F.restDelta.granular : F.restDelta.default);
546
546
  let p;
547
547
  if (x < 1) {
548
- const w = Ye(g, x);
548
+ const v = Ye(g, x);
549
549
  p = (b) => {
550
550
  const V = Math.exp(-x * g * b);
551
- return r - V * ((m + x * g * y) / w * Math.sin(w * b) + y * Math.cos(w * b));
551
+ return r - V * ((m + x * g * y) / v * Math.sin(v * b) + y * Math.cos(v * b));
552
552
  };
553
553
  } else if (x === 1)
554
- p = (w) => r - Math.exp(-g * w) * (y + (m + g * y) * w);
554
+ p = (v) => r - Math.exp(-g * v) * (y + (m + g * y) * v);
555
555
  else {
556
- const w = g * Math.sqrt(x * x - 1);
556
+ const v = g * Math.sqrt(x * x - 1);
557
557
  p = (b) => {
558
- const V = Math.exp(-x * g * b), P = Math.min(w * b, 300);
559
- return r - V * ((m + x * g * y) * Math.sinh(P) + w * y * Math.cosh(P)) / w;
558
+ const V = Math.exp(-x * g * b), S = Math.min(v * b, 300);
559
+ return r - V * ((m + x * g * y) * Math.sinh(S) + v * y * Math.cosh(S)) / v;
560
560
  };
561
561
  }
562
- const S = {
562
+ const P = {
563
563
  calculatedDuration: f && h || null,
564
- next: (w) => {
565
- const b = p(w);
564
+ next: (v) => {
565
+ const b = p(v);
566
566
  if (f)
567
- a.done = w >= h;
567
+ a.done = v >= h;
568
568
  else {
569
- let V = w === 0 ? m : 0;
570
- x < 1 && (V = w === 0 ? /* @__PURE__ */ nt(m) : tr(p, w, b));
571
- const P = Math.abs(V) <= s, k = Math.abs(r - b) <= i;
572
- a.done = P && k;
569
+ let V = v === 0 ? m : 0;
570
+ x < 1 && (V = v === 0 ? /* @__PURE__ */ nt(m) : tr(p, v, b));
571
+ const S = Math.abs(V) <= s, k = Math.abs(r - b) <= i;
572
+ a.done = S && k;
573
573
  }
574
574
  return a.value = a.done ? r : b, a;
575
575
  },
576
576
  toString: () => {
577
- const w = Math.min(Dn(S), ye), b = Qi((V) => S.next(w * V).value, w, 30);
578
- return w + "ms " + b;
577
+ const v = Math.min(Dn(P), ye), b = Qi((V) => P.next(v * V).value, v, 30);
578
+ return v + "ms " + b;
579
579
  },
580
580
  toTransition: () => {
581
581
  }
582
582
  };
583
- return S;
583
+ return P;
584
584
  }
585
585
  ve.applyToOptions = (t) => {
586
586
  const e = aa(t, 100, ve);
@@ -590,19 +590,19 @@ function qe({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
590
590
  const h = t[0], d = {
591
591
  done: !1,
592
592
  value: h
593
- }, f = (P) => a !== void 0 && P < a || c !== void 0 && P > c, m = (P) => a === void 0 ? c : c === void 0 || Math.abs(a - P) < Math.abs(c - P) ? a : c;
593
+ }, f = (S) => a !== void 0 && S < a || c !== void 0 && S > c, m = (S) => a === void 0 ? c : c === void 0 || Math.abs(a - S) < Math.abs(c - S) ? a : c;
594
594
  let x = n * e;
595
595
  const y = h + x, g = r === void 0 ? y : r(y);
596
596
  g !== y && (x = g - h);
597
- const v = (P) => -x * Math.exp(-P / s), p = (P) => g + v(P), S = (P) => {
598
- const k = v(P), L = p(P);
597
+ const w = (S) => -x * Math.exp(-S / s), p = (S) => g + w(S), P = (S) => {
598
+ const k = w(S), L = p(S);
599
599
  d.done = Math.abs(k) <= l, d.value = d.done ? g : L;
600
600
  };
601
- let w, b;
602
- const V = (P) => {
603
- f(d.value) && (w = P, b = ve({
601
+ let v, b;
602
+ const V = (S) => {
603
+ f(d.value) && (v = S, b = ve({
604
604
  keyframes: [d.value, m(d.value)],
605
- velocity: tr(p, P, d.value),
605
+ velocity: tr(p, S, d.value),
606
606
  // TODO: This should be passing * 1000
607
607
  damping: i,
608
608
  stiffness: o,
@@ -612,9 +612,9 @@ function qe({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
612
612
  };
613
613
  return V(0), {
614
614
  calculatedDuration: null,
615
- next: (P) => {
615
+ next: (S) => {
616
616
  let k = !1;
617
- return !b && w === void 0 && (k = !0, S(P), V(P)), w !== void 0 && P >= w ? b.next(P - w) : (!k && S(P), d);
617
+ return !b && v === void 0 && (k = !0, P(S), V(S)), v !== void 0 && S >= v ? b.next(S - v) : (!k && P(S), d);
618
618
  }
619
619
  };
620
620
  }
@@ -624,7 +624,7 @@ function pa(t, e, n) {
624
624
  let a = i(t[r], t[r + 1]);
625
625
  if (e) {
626
626
  const c = Array.isArray(e) ? e[r] || et : e;
627
- a = Qt(c, a);
627
+ a = te(c, a);
628
628
  }
629
629
  s.push(a);
630
630
  }
@@ -645,7 +645,7 @@ function er(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
645
645
  if (c > 1)
646
646
  for (; h < t.length - 2 && !(u < t[h + 1]); h++)
647
647
  ;
648
- const d = /* @__PURE__ */ Xt(t[h], t[h + 1], u);
648
+ const d = /* @__PURE__ */ Yt(t[h], t[h + 1], u);
649
649
  return a[h](d);
650
650
  };
651
651
  return n ? (u) => l(ht(t[0], t[o - 1], u)) : l;
@@ -653,7 +653,7 @@ function er(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
653
653
  function ga(t, e) {
654
654
  const n = t[t.length - 1];
655
655
  for (let s = 1; s <= e; s++) {
656
- const i = /* @__PURE__ */ Xt(0, e, s);
656
+ const i = /* @__PURE__ */ Yt(0, e, s);
657
657
  t.push(O(n, 1, i));
658
658
  }
659
659
  }
@@ -737,7 +737,7 @@ class Ln extends Rn {
737
737
  const { type: n = Dt, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
738
738
  let { keyframes: a } = e;
739
739
  const c = n || Dt;
740
- process.env.NODE_ENV !== "production" && c !== Dt && ft(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), c !== Dt && typeof a[0] != "number" && (this.mixKeyframes = Qt(ba, Ji(a[0], a[1])), a = [0, 100]);
740
+ process.env.NODE_ENV !== "production" && c !== Dt && ft(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), c !== Dt && typeof a[0] != "number" && (this.mixKeyframes = te(ba, Ji(a[0], a[1])), a = [0, 100]);
741
741
  const l = c({ ...e, keyframes: a });
742
742
  o === "mirror" && (this.mirroredGenerator = c({
743
743
  ...e,
@@ -757,20 +757,20 @@ class Ln extends Rn {
757
757
  return s.next(0);
758
758
  const { delay: l = 0, keyframes: u, repeat: h, repeatType: d, repeatDelay: f, type: m, onUpdate: x, finalKeyframe: y } = this.options;
759
759
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - i / this.speed, this.startTime)), n ? this.currentTime = e : this.updateTime(e);
760
- const g = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), v = this.playbackSpeed >= 0 ? g < 0 : g > i;
760
+ const g = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), w = this.playbackSpeed >= 0 ? g < 0 : g > i;
761
761
  this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
762
- let p = this.currentTime, S = s;
762
+ let p = this.currentTime, P = s;
763
763
  if (h) {
764
- const P = Math.min(this.currentTime, i) / a;
765
- let k = Math.floor(P), L = P % 1;
766
- !L && P >= 1 && (L = 1), L === 1 && k--, k = Math.min(k, h + 1), !!(k % 2) && (d === "reverse" ? (L = 1 - L, f && (L -= f / a)) : d === "mirror" && (S = r)), p = ht(0, 1, L) * a;
764
+ const S = Math.min(this.currentTime, i) / a;
765
+ let k = Math.floor(S), L = S % 1;
766
+ !L && S >= 1 && (L = 1), L === 1 && k--, k = Math.min(k, h + 1), !!(k % 2) && (d === "reverse" ? (L = 1 - L, f && (L -= f / a)) : d === "mirror" && (P = r)), p = ht(0, 1, L) * a;
767
767
  }
768
- const w = v ? { done: !1, value: u[0] } : S.next(p);
769
- o && (w.value = o(w.value));
770
- let { done: b } = w;
771
- !v && c !== null && (b = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
768
+ const v = w ? { done: !1, value: u[0] } : P.next(p);
769
+ o && (v.value = o(v.value));
770
+ let { done: b } = v;
771
+ !w && c !== null && (b = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
772
772
  const V = this.holdTime === null && (this.state === "finished" || this.state === "running" && b);
773
- return V && m !== qe && (w.value = Mn(u, this.options, y, this.speed)), x && x(w.value), V && this.finish(), w;
773
+ return V && m !== qe && (v.value = Mn(u, this.options, y, this.speed)), x && x(v.value), V && this.finish(), v;
774
774
  }
775
775
  /**
776
776
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -898,7 +898,7 @@ const Va = (t, e) => {
898
898
  function Ca(t) {
899
899
  return parseFloat(t.trim());
900
900
  }
901
- const Nt = [
901
+ const jt = [
902
902
  "transformPerspective",
903
903
  "x",
904
904
  "y",
@@ -916,7 +916,7 @@ const Nt = [
916
916
  "skew",
917
917
  "skewX",
918
918
  "skewY"
919
- ], jt = new Set(Nt), hs = (t) => t === Ot || t === T, Ea = /* @__PURE__ */ new Set(["x", "y", "z"]), Da = Nt.filter((t) => !Ea.has(t));
919
+ ], $t = new Set(jt), hs = (t) => t === Nt || t === T, Ea = /* @__PURE__ */ new Set(["x", "y", "z"]), Da = jt.filter((t) => !Ea.has(t));
920
920
  function Ma(t) {
921
921
  const e = [];
922
922
  return Da.forEach((n) => {
@@ -1021,20 +1021,20 @@ const Ba = /* @__PURE__ */ rr(() => window.ScrollTimeline !== void 0, "scrollTim
1021
1021
  return !1;
1022
1022
  }
1023
1023
  return !0;
1024
- }, "linearEasing"), Wt = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, ds = {
1024
+ }, "linearEasing"), zt = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, ds = {
1025
1025
  linear: "linear",
1026
1026
  ease: "ease",
1027
1027
  easeIn: "ease-in",
1028
1028
  easeOut: "ease-out",
1029
1029
  easeInOut: "ease-in-out",
1030
- circIn: /* @__PURE__ */ Wt([0, 0.65, 0.55, 1]),
1031
- circOut: /* @__PURE__ */ Wt([0.55, 0, 1, 0.45]),
1032
- backIn: /* @__PURE__ */ Wt([0.31, 0.01, 0.66, -0.59]),
1033
- backOut: /* @__PURE__ */ Wt([0.33, 1.53, 0.69, 0.99])
1030
+ circIn: /* @__PURE__ */ zt([0, 0.65, 0.55, 1]),
1031
+ circOut: /* @__PURE__ */ zt([0.55, 0, 1, 0.45]),
1032
+ backIn: /* @__PURE__ */ zt([0.31, 0.01, 0.66, -0.59]),
1033
+ backOut: /* @__PURE__ */ zt([0.33, 1.53, 0.69, 0.99])
1034
1034
  };
1035
1035
  function ar(t, e) {
1036
1036
  if (t)
1037
- return typeof t == "function" ? or() ? Qi(t, e) : "ease-out" : Wi(t) ? Wt(t) : Array.isArray(t) ? t.map((n) => ar(n, e) || ds.easeOut) : ds[t];
1037
+ return typeof t == "function" ? or() ? Qi(t, e) : "ease-out" : Wi(t) ? zt(t) : Array.isArray(t) ? t.map((n) => ar(n, e) || ds.easeOut) : ds[t];
1038
1038
  }
1039
1039
  function Fa(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: c } = {}, l = void 0) {
1040
1040
  const u = {
@@ -1209,7 +1209,7 @@ function Wa(t, e, n, s) {
1209
1209
  if (e === "display" || e === "visibility")
1210
1210
  return !0;
1211
1211
  const o = t[t.length - 1], r = fs(i, e), a = fs(o, e);
1212
- return Ft(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : Ua(t) || (n === "spring" || cr(n)) && s;
1212
+ return Ot(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : Ua(t) || (n === "spring" || cr(n)) && s;
1213
1213
  }
1214
1214
  function rn(t) {
1215
1215
  t.duration = 0, t.type = "keyframes";
@@ -1365,7 +1365,7 @@ const Za = {
1365
1365
  type: "keyframes",
1366
1366
  ease: [0.25, 0.1, 0.35, 1],
1367
1367
  duration: 0.3
1368
- }, ec = (t, { keyframes: e }) => e.length > 2 ? Qa : jt.has(t) ? t.startsWith("scale") ? Ja(e[1]) : Za : tc, nc = (t) => t !== null;
1368
+ }, ec = (t, { keyframes: e }) => e.length > 2 ? Qa : $t.has(t) ? t.startsWith("scale") ? Ja(e[1]) : Za : tc, nc = (t) => t !== null;
1369
1369
  function sc(t, { repeat: e, repeatType: n = "loop" }, s) {
1370
1370
  const i = t.filter(nc), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
1371
1371
  return i[o];
@@ -1434,7 +1434,7 @@ function Fn(t, e, n, s) {
1434
1434
  }
1435
1435
  return e;
1436
1436
  }
1437
- function It(t, e, n) {
1437
+ function Bt(t, e, n) {
1438
1438
  const s = t.getProps();
1439
1439
  return Fn(s, e, n !== void 0 ? n : s.custom, t);
1440
1440
  }
@@ -1445,8 +1445,8 @@ const mr = /* @__PURE__ */ new Set([
1445
1445
  "left",
1446
1446
  "right",
1447
1447
  "bottom",
1448
- ...Nt
1449
- ]), ps = 30, rc = (t) => !isNaN(parseFloat(t)), Ht = {
1448
+ ...jt
1449
+ ]), ps = 30, rc = (t) => !isNaN(parseFloat(t)), Kt = {
1450
1450
  current: void 0
1451
1451
  };
1452
1452
  class oc {
@@ -1577,7 +1577,7 @@ class oc {
1577
1577
  * @public
1578
1578
  */
1579
1579
  get() {
1580
- return Ht.current && Ht.current.push(this), this.current;
1580
+ return Kt.current && Kt.current.push(this), this.current;
1581
1581
  }
1582
1582
  /**
1583
1583
  * @public
@@ -1659,7 +1659,7 @@ function cc(t) {
1659
1659
  return on(t) ? t[t.length - 1] || 0 : t;
1660
1660
  }
1661
1661
  function lc(t, e) {
1662
- const n = It(t, e);
1662
+ const n = Bt(t, e);
1663
1663
  let { transitionEnd: s = {}, transition: i = {}, ...o } = n || {};
1664
1664
  o = { ...o, ...s };
1665
1665
  for (const r in o) {
@@ -1710,15 +1710,15 @@ function yr(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1710
1710
  continue;
1711
1711
  let g = !1;
1712
1712
  if (window.MotionHandoffAnimation) {
1713
- const S = gr(t);
1714
- if (S) {
1715
- const w = window.MotionHandoffAnimation(S, d, D);
1716
- w !== null && (x.startTime = w, g = !0);
1713
+ const P = gr(t);
1714
+ if (P) {
1715
+ const v = window.MotionHandoffAnimation(P, d, D);
1716
+ v !== null && (x.startTime = v, g = !0);
1717
1717
  }
1718
1718
  }
1719
1719
  an(t, d);
1720
- const v = l ?? t.shouldReduceMotion;
1721
- f.start(Bn(d, f, m, v && mr.has(d) ? { type: !1 } : x, t, g));
1720
+ const w = l ?? t.shouldReduceMotion;
1721
+ f.start(Bn(d, f, m, w && mr.has(d) ? { type: !1 } : x, t, g));
1722
1722
  const p = f.animation;
1723
1723
  p && u.push(p);
1724
1724
  }
@@ -1731,7 +1731,7 @@ function yr(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1731
1731
  return u;
1732
1732
  }
1733
1733
  function cn(t, e, n = {}) {
1734
- const s = It(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
1734
+ const s = Bt(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
1735
1735
  let { transition: i = t.getDefaultTransition() || {} } = s || {};
1736
1736
  n.transitionOverride && (i = n.transitionOverride);
1737
1737
  const o = s ? () => Promise.all(yr(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (c = 0) => {
@@ -1762,7 +1762,7 @@ function mc(t, e, n = {}) {
1762
1762
  } else if (typeof e == "string")
1763
1763
  s = cn(t, e, n);
1764
1764
  else {
1765
- const i = typeof e == "function" ? It(t, e, n.custom) : e;
1765
+ const i = typeof e == "function" ? Bt(t, e, n.custom) : e;
1766
1766
  s = Promise.all(yr(t, i, n));
1767
1767
  }
1768
1768
  return s.then(() => {
@@ -1772,7 +1772,7 @@ function mc(t, e, n = {}) {
1772
1772
  const pc = {
1773
1773
  test: (t) => t === "auto",
1774
1774
  parse: (t) => t
1775
- }, vr = (t) => (e) => e.test(t), wr = [Ot, T, ut, yt, Ho, zo, pc], gs = (t) => wr.find(vr(t));
1775
+ }, vr = (t) => (e) => e.test(t), wr = [Nt, T, ut, yt, Ho, zo, pc], gs = (t) => wr.find(vr(t));
1776
1776
  function gc(t) {
1777
1777
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Mi(t) : !0;
1778
1778
  }
@@ -1801,17 +1801,17 @@ const wc = /\b([a-z-]*)\(.*?\)/gu, ln = {
1801
1801
  return at.createTransformer(t)(e.map((s) => typeof s == "number" ? 0 : typeof s == "object" ? { ...s, alpha: 1 } : s));
1802
1802
  }
1803
1803
  }, ys = {
1804
- ...Ot,
1804
+ ...Nt,
1805
1805
  transform: Math.round
1806
1806
  }, xc = {
1807
1807
  rotate: yt,
1808
1808
  rotateX: yt,
1809
1809
  rotateY: yt,
1810
1810
  rotateZ: yt,
1811
- scale: ie,
1812
- scaleX: ie,
1813
- scaleY: ie,
1814
- scaleZ: ie,
1811
+ scale: re,
1812
+ scaleX: re,
1813
+ scaleY: re,
1814
+ scaleZ: re,
1815
1815
  skew: yt,
1816
1816
  skewX: yt,
1817
1817
  skewY: yt,
@@ -1824,7 +1824,7 @@ const wc = /\b([a-z-]*)\(.*?\)/gu, ln = {
1824
1824
  z: T,
1825
1825
  perspective: T,
1826
1826
  transformPerspective: T,
1827
- opacity: Yt,
1827
+ opacity: qt,
1828
1828
  originX: ss,
1829
1829
  originY: ss,
1830
1830
  originZ: T
@@ -1887,8 +1887,8 @@ const wc = /\b([a-z-]*)\(.*?\)/gu, ln = {
1887
1887
  ...xc,
1888
1888
  zIndex: ys,
1889
1889
  // SVG
1890
- fillOpacity: Yt,
1891
- strokeOpacity: Yt,
1890
+ fillOpacity: qt,
1891
+ strokeOpacity: qt,
1892
1892
  numOctaves: ys
1893
1893
  }, Tc = {
1894
1894
  ...Nn,
@@ -1918,7 +1918,7 @@ function Pc(t, e, n) {
1918
1918
  let s = 0, i;
1919
1919
  for (; s < t.length && !i; ) {
1920
1920
  const o = t[s];
1921
- typeof o == "string" && !Sc.has(o) && qt(o).values.length && (i = t[s]), s++;
1921
+ typeof o == "string" && !Sc.has(o) && Zt(o).values.length && (i = t[s]), s++;
1922
1922
  }
1923
1923
  if (i && n)
1924
1924
  for (const o of e)
@@ -2075,7 +2075,7 @@ const kc = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
2075
2075
  function Ic(t) {
2076
2076
  return kc.has(t.tagName) || t.isContentEditable === !0;
2077
2077
  }
2078
- const ce = /* @__PURE__ */ new WeakSet();
2078
+ const le = /* @__PURE__ */ new WeakSet();
2079
2079
  function vs(t) {
2080
2080
  return (e) => {
2081
2081
  e.key === "Enter" && t(e);
@@ -2089,7 +2089,7 @@ const Bc = (t, e) => {
2089
2089
  if (!n)
2090
2090
  return;
2091
2091
  const s = vs(() => {
2092
- if (ce.has(n))
2092
+ if (le.has(n))
2093
2093
  return;
2094
2094
  Be(n, "down");
2095
2095
  const i = vs(() => {
@@ -2108,9 +2108,9 @@ function Fc(t, e, n = {}) {
2108
2108
  const c = a.currentTarget;
2109
2109
  if (!ws(a) || xs.has(a))
2110
2110
  return;
2111
- ce.add(c), n.stopPropagation && xs.add(a);
2111
+ le.add(c), n.stopPropagation && xs.add(a);
2112
2112
  const l = e(c, a), u = (f, m) => {
2113
- window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), ce.has(c) && ce.delete(c), ws(f) && typeof l == "function" && l(f, { success: m });
2113
+ window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), le.has(c) && le.delete(c), ws(f) && typeof l == "function" && l(f, { success: m });
2114
2114
  }, h = (f) => {
2115
2115
  u(f, c === window || c === document || n.useGlobalTarget || Vr(c, f.target));
2116
2116
  }, d = (f) => {
@@ -2125,11 +2125,11 @@ function Fc(t, e, n = {}) {
2125
2125
  function Un(t) {
2126
2126
  return Di(t) && "ownerSVGElement" in t;
2127
2127
  }
2128
- const le = /* @__PURE__ */ new WeakMap();
2129
- let ue;
2128
+ const ue = /* @__PURE__ */ new WeakMap();
2129
+ let he;
2130
2130
  const Cr = (t, e, n) => (s, i) => i && i[0] ? i[0][t + "Size"] : Un(s) && "getBBox" in s ? s.getBBox()[e] : s[n], Oc = /* @__PURE__ */ Cr("inline", "width", "offsetWidth"), Nc = /* @__PURE__ */ Cr("block", "height", "offsetHeight");
2131
2131
  function jc({ target: t, borderBoxSize: e }) {
2132
- le.get(t)?.forEach((n) => {
2132
+ ue.get(t)?.forEach((n) => {
2133
2133
  n(t, {
2134
2134
  get width() {
2135
2135
  return Oc(t, e);
@@ -2144,22 +2144,22 @@ function $c(t) {
2144
2144
  t.forEach(jc);
2145
2145
  }
2146
2146
  function Uc() {
2147
- typeof ResizeObserver > "u" || (ue = new ResizeObserver($c));
2147
+ typeof ResizeObserver > "u" || (he = new ResizeObserver($c));
2148
2148
  }
2149
2149
  function Wc(t, e) {
2150
- ue || Uc();
2150
+ he || Uc();
2151
2151
  const n = br(t);
2152
2152
  return n.forEach((s) => {
2153
- let i = le.get(s);
2154
- i || (i = /* @__PURE__ */ new Set(), le.set(s, i)), i.add(e), ue?.observe(s);
2153
+ let i = ue.get(s);
2154
+ i || (i = /* @__PURE__ */ new Set(), ue.set(s, i)), i.add(e), he?.observe(s);
2155
2155
  }), () => {
2156
2156
  n.forEach((s) => {
2157
- const i = le.get(s);
2158
- i?.delete(e), i?.size || ue?.unobserve(s);
2157
+ const i = ue.get(s);
2158
+ i?.delete(e), i?.size || he?.unobserve(s);
2159
2159
  });
2160
2160
  };
2161
2161
  }
2162
- const he = /* @__PURE__ */ new Set();
2162
+ const de = /* @__PURE__ */ new Set();
2163
2163
  let Mt;
2164
2164
  function zc() {
2165
2165
  Mt = () => {
@@ -2171,12 +2171,12 @@ function zc() {
2171
2171
  return window.innerHeight;
2172
2172
  }
2173
2173
  };
2174
- he.forEach((e) => e(t));
2174
+ de.forEach((e) => e(t));
2175
2175
  }, window.addEventListener("resize", Mt);
2176
2176
  }
2177
2177
  function Hc(t) {
2178
- return he.add(t), Mt || zc(), () => {
2179
- he.delete(t), !he.size && typeof Mt == "function" && (window.removeEventListener("resize", Mt), Mt = void 0);
2178
+ return de.add(t), Mt || zc(), () => {
2179
+ de.delete(t), !de.size && typeof Mt == "function" && (window.removeEventListener("resize", Mt), Mt = void 0);
2180
2180
  };
2181
2181
  }
2182
2182
  function Ts(t, e) {
@@ -2204,7 +2204,7 @@ const _c = [...wr, j, at], Xc = (t) => _c.find(vr(t)), bs = () => ({
2204
2204
  function Ve(t) {
2205
2205
  return t !== null && typeof t == "object" && typeof t.start == "function";
2206
2206
  }
2207
- function Zt(t) {
2207
+ function Jt(t) {
2208
2208
  return typeof t == "string" || Array.isArray(t);
2209
2209
  }
2210
2210
  const Wn = [
@@ -2217,7 +2217,7 @@ const Wn = [
2217
2217
  "exit"
2218
2218
  ], zn = ["initial", ...Wn];
2219
2219
  function Ce(t) {
2220
- return Ve(t.animate) || zn.some((e) => Zt(t[e]));
2220
+ return Ve(t.animate) || zn.some((e) => Jt(t[e]));
2221
2221
  }
2222
2222
  function Er(t) {
2223
2223
  return !!(Ce(t) || t.variants);
@@ -2330,7 +2330,7 @@ class tl {
2330
2330
  });
2331
2331
  return;
2332
2332
  }
2333
- const s = jt.has(e);
2333
+ const s = $t.has(e);
2334
2334
  s && this.onBindTransform && this.onBindTransform();
2335
2335
  const i = n.on("change", (r) => {
2336
2336
  this.latestValues[e] = r, this.props.onUpdate && D.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
@@ -2601,11 +2601,11 @@ const rl = {
2601
2601
  y: "translateY",
2602
2602
  z: "translateZ",
2603
2603
  transformPerspective: "perspective"
2604
- }, ol = Nt.length;
2604
+ }, ol = jt.length;
2605
2605
  function al(t, e, n) {
2606
2606
  let s = "", i = !0;
2607
2607
  for (let o = 0; o < ol; o++) {
2608
- const r = Nt[o], a = t[r];
2608
+ const r = jt[o], a = t[r];
2609
2609
  if (a === void 0)
2610
2610
  continue;
2611
2611
  let c = !0;
@@ -2632,7 +2632,7 @@ function Hn(t, e, n) {
2632
2632
  let r = !1, a = !1;
2633
2633
  for (const c in e) {
2634
2634
  const l = e[c];
2635
- if (jt.has(c)) {
2635
+ if ($t.has(c)) {
2636
2636
  r = !0;
2637
2637
  continue;
2638
2638
  } else if (Ki(c)) {
@@ -2660,7 +2660,7 @@ function Fr(t, { style: e, vars: n }, s, i) {
2660
2660
  function Ms(t, e) {
2661
2661
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
2662
2662
  }
2663
- const Ut = {
2663
+ const Wt = {
2664
2664
  correct: (t, e) => {
2665
2665
  if (!e.target)
2666
2666
  return t;
@@ -2684,7 +2684,7 @@ const Ut = {
2684
2684
  }
2685
2685
  }, mn = {
2686
2686
  borderRadius: {
2687
- ...Ut,
2687
+ ...Wt,
2688
2688
  applyTo: [
2689
2689
  "borderTopLeftRadius",
2690
2690
  "borderTopRightRadius",
@@ -2692,14 +2692,14 @@ const Ut = {
2692
2692
  "borderBottomRightRadius"
2693
2693
  ]
2694
2694
  },
2695
- borderTopLeftRadius: Ut,
2696
- borderTopRightRadius: Ut,
2697
- borderBottomLeftRadius: Ut,
2698
- borderBottomRightRadius: Ut,
2695
+ borderTopLeftRadius: Wt,
2696
+ borderTopRightRadius: Wt,
2697
+ borderBottomLeftRadius: Wt,
2698
+ borderBottomRightRadius: Wt,
2699
2699
  boxShadow: cl
2700
2700
  };
2701
2701
  function Or(t, { layout: e, layoutId: n }) {
2702
- return jt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!mn[t] || t === "opacity");
2702
+ return $t.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!mn[t] || t === "opacity");
2703
2703
  }
2704
2704
  function Kn(t, e, n) {
2705
2705
  const s = t.style, i = e?.style, o = {};
@@ -2717,7 +2717,7 @@ class ul extends Rr {
2717
2717
  super(...arguments), this.type = "html", this.renderInstance = Fr;
2718
2718
  }
2719
2719
  readValueFromInstance(e, n) {
2720
- if (jt.has(n))
2720
+ if ($t.has(n))
2721
2721
  return this.projection?.isProjecting ? Qe(n) : Va(e, n);
2722
2722
  {
2723
2723
  const s = ll(e), i = (Ki(n) ? s.getPropertyValue(n) : s[n]) || 0;
@@ -2807,7 +2807,7 @@ function Ur(t, e, n) {
2807
2807
  const s = Kn(t, e, n);
2808
2808
  for (const i in t)
2809
2809
  if (H(t[i]) || H(e[i])) {
2810
- const o = Nt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2810
+ const o = jt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2811
2811
  s[o] = t[i];
2812
2812
  }
2813
2813
  return s;
@@ -2820,7 +2820,7 @@ class gl extends Rr {
2820
2820
  return e[n];
2821
2821
  }
2822
2822
  readValueFromInstance(e, n) {
2823
- if (jt.has(n)) {
2823
+ if ($t.has(n)) {
2824
2824
  const s = xr(n);
2825
2825
  return s && s.default || 0;
2826
2826
  }
@@ -2850,7 +2850,7 @@ function Wr(t) {
2850
2850
  const e = {};
2851
2851
  for (let n = 0; n < yl; n++) {
2852
2852
  const s = zn[n], i = t.props[s];
2853
- (Zt(i) || i === !1) && (e[s] = i);
2853
+ (Jt(i) || i === !1) && (e[s] = i);
2854
2854
  }
2855
2855
  return e;
2856
2856
  }
@@ -2872,7 +2872,7 @@ function xl(t) {
2872
2872
  function Tl(t) {
2873
2873
  let e = xl(t), n = Rs(), s = !0;
2874
2874
  const i = (c) => (l, u) => {
2875
- const h = It(t, u, c === "exit" ? t.presenceContext?.custom : void 0);
2875
+ const h = Bt(t, u, c === "exit" ? t.presenceContext?.custom : void 0);
2876
2876
  if (h) {
2877
2877
  const { transition: d, transitionEnd: f, ...m } = h;
2878
2878
  l = { ...l, ...m, ...f };
@@ -2886,33 +2886,33 @@ function Tl(t) {
2886
2886
  const { props: l } = t, u = Wr(t.parent) || {}, h = [], d = /* @__PURE__ */ new Set();
2887
2887
  let f = {}, m = 1 / 0;
2888
2888
  for (let y = 0; y < wl; y++) {
2889
- const g = vl[y], v = n[g], p = l[g] !== void 0 ? l[g] : u[g], S = Zt(p), w = g === c ? v.isActive : null;
2890
- w === !1 && (m = y);
2891
- let b = p === u[g] && p !== l[g] && S;
2892
- if (b && s && t.manuallyAnimateOnMount && (b = !1), v.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
2893
- !v.isActive && w === null || // If we didn't and don't have any defined prop for this animation type
2894
- !p && !v.prevProp || // Or if the prop doesn't define an animation
2889
+ const g = vl[y], w = n[g], p = l[g] !== void 0 ? l[g] : u[g], P = Jt(p), v = g === c ? w.isActive : null;
2890
+ v === !1 && (m = y);
2891
+ let b = p === u[g] && p !== l[g] && P;
2892
+ if (b && s && t.manuallyAnimateOnMount && (b = !1), w.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
2893
+ !w.isActive && v === null || // If we didn't and don't have any defined prop for this animation type
2894
+ !p && !w.prevProp || // Or if the prop doesn't define an animation
2895
2895
  Ve(p) || typeof p == "boolean")
2896
2896
  continue;
2897
- if (g === "exit" && v.isActive && w !== !0) {
2898
- v.prevResolvedValues && (f = {
2897
+ if (g === "exit" && w.isActive && v !== !0) {
2898
+ w.prevResolvedValues && (f = {
2899
2899
  ...f,
2900
- ...v.prevResolvedValues
2900
+ ...w.prevResolvedValues
2901
2901
  });
2902
2902
  continue;
2903
2903
  }
2904
- const V = bl(v.prevProp, p);
2905
- let P = V || // If we're making this variant active, we want to always make it active
2906
- g === c && v.isActive && !b && S || // If we removed a higher-priority variant (i is in reverse order)
2907
- y > m && S, k = !1;
2904
+ const V = bl(w.prevProp, p);
2905
+ let S = V || // If we're making this variant active, we want to always make it active
2906
+ g === c && w.isActive && !b && P || // If we removed a higher-priority variant (i is in reverse order)
2907
+ y > m && P, k = !1;
2908
2908
  const L = Array.isArray(p) ? p : [p];
2909
2909
  let $ = L.reduce(i(g), {});
2910
- w === !1 && ($ = {});
2911
- const { prevResolvedValues: K = {} } = v, Q = {
2910
+ v === !1 && ($ = {});
2911
+ const { prevResolvedValues: K = {} } = w, Q = {
2912
2912
  ...K,
2913
2913
  ...$
2914
2914
  }, J = (A) => {
2915
- P = !0, d.has(A) && (k = !0, d.delete(A)), v.needsAnimating[A] = !0;
2915
+ S = !0, d.has(A) && (k = !0, d.delete(A)), w.needsAnimating[A] = !0;
2916
2916
  const I = t.getValue(A);
2917
2917
  I && (I.liveStyle = !1);
2918
2918
  };
@@ -2921,14 +2921,14 @@ function Tl(t) {
2921
2921
  if (f.hasOwnProperty(A))
2922
2922
  continue;
2923
2923
  let R = !1;
2924
- on(I) && on(E) ? R = !zr(I, E) : R = I !== E, R ? I != null ? J(A) : d.add(A) : I !== void 0 && d.has(A) ? J(A) : v.protectedKeys[A] = !0;
2924
+ on(I) && on(E) ? R = !zr(I, E) : R = I !== E, R ? I != null ? J(A) : d.add(A) : I !== void 0 && d.has(A) ? J(A) : w.protectedKeys[A] = !0;
2925
2925
  }
2926
- v.prevProp = p, v.prevResolvedValues = $, v.isActive && (f = { ...f, ...$ }), s && t.blockInitialAnimation && (P = !1);
2926
+ w.prevProp = p, w.prevResolvedValues = $, w.isActive && (f = { ...f, ...$ }), s && t.blockInitialAnimation && (S = !1);
2927
2927
  const Z = b && V;
2928
- P && (!Z || k) && h.push(...L.map((A) => {
2928
+ S && (!Z || k) && h.push(...L.map((A) => {
2929
2929
  const I = { type: g };
2930
2930
  if (typeof A == "string" && s && !Z && t.manuallyAnimateOnMount && t.parent) {
2931
- const { parent: E } = t, R = It(E, A);
2931
+ const { parent: E } = t, R = Bt(E, A);
2932
2932
  if (E.enteringChildren && R) {
2933
2933
  const { delayChildren: B } = R.transition || {};
2934
2934
  I.delay = hr(E.enteringChildren, t, B);
@@ -2943,12 +2943,12 @@ function Tl(t) {
2943
2943
  if (d.size) {
2944
2944
  const y = {};
2945
2945
  if (typeof l.initial != "boolean") {
2946
- const g = It(t, Array.isArray(l.initial) ? l.initial[0] : l.initial);
2946
+ const g = Bt(t, Array.isArray(l.initial) ? l.initial[0] : l.initial);
2947
2947
  g && g.transition && (y.transition = g.transition);
2948
2948
  }
2949
2949
  d.forEach((g) => {
2950
- const v = t.getBaseTarget(g), p = t.getValue(g);
2951
- p && (p.liveStyle = !0), y[g] = v ?? null;
2950
+ const w = t.getBaseTarget(g), p = t.getValue(g);
2951
+ p && (p.liveStyle = !0), y[g] = w ?? null;
2952
2952
  }), h.push({ animation: y });
2953
2953
  }
2954
2954
  let x = !!h.length;
@@ -3014,7 +3014,7 @@ function Cl(t, e, n) {
3014
3014
  function Is(t, e, n, s = 0.5) {
3015
3015
  t.origin = s, t.originPoint = O(e.min, e.max, t.origin), t.scale = q(n) / q(e), t.translate = O(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Sl && t.scale <= Pl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Al && t.translate <= Vl || isNaN(t.translate)) && (t.translate = 0);
3016
3016
  }
3017
- function Kt(t, e, n, s) {
3017
+ function Gt(t, e, n, s) {
3018
3018
  Is(t.x, e.x, n.x, s ? s.originX : void 0), Is(t.y, e.y, n.y, s ? s.originY : void 0);
3019
3019
  }
3020
3020
  function Bs(t, e, n) {
@@ -3099,13 +3099,13 @@ function _s(t, e) {
3099
3099
  }
3100
3100
  const Fl = /* @__PURE__ */ Yr(0, 0.5, ji), Ol = /* @__PURE__ */ Yr(0.5, 0.95, et);
3101
3101
  function Yr(t, e, n) {
3102
- return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Xt(t, e, s));
3102
+ return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Yt(t, e, s));
3103
3103
  }
3104
3104
  function Nl(t, e, n) {
3105
3105
  const s = H(t) ? t : Vt(t);
3106
3106
  return s.start(Bn("", s, e, n)), s.animation;
3107
3107
  }
3108
- function Jt(t, e, n, s = { passive: !0 }) {
3108
+ function Qt(t, e, n, s = { passive: !0 }) {
3109
3109
  return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
3110
3110
  }
3111
3111
  const jl = (t, e) => t.depth - e.depth;
@@ -3130,7 +3130,7 @@ function Ul(t, e) {
3130
3130
  };
3131
3131
  return D.setup(s, !0), () => pt(s);
3132
3132
  }
3133
- function de(t) {
3133
+ function fe(t) {
3134
3134
  return H(t) ? t.get() : t;
3135
3135
  }
3136
3136
  class Wl {
@@ -3200,7 +3200,7 @@ class Wl {
3200
3200
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
3201
3201
  }
3202
3202
  }
3203
- const fe = {
3203
+ const me = {
3204
3204
  /**
3205
3205
  * Global flag as to whether the tree has animated since the last time
3206
3206
  * we resized the window
@@ -3268,7 +3268,7 @@ function Zr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3268
3268
  h = window.innerWidth;
3269
3269
  }), t(r, () => {
3270
3270
  const f = window.innerWidth;
3271
- f !== h && (h = f, this.root.updateBlockedByResize = !0, u && u(), u = Ul(d, 250), fe.hasAnimatedSinceResize && (fe.hasAnimatedSinceResize = !1, this.nodes.forEach(qs)));
3271
+ f !== h && (h = f, this.root.updateBlockedByResize = !0, u && u(), u = Ul(d, 250), me.hasAnimatedSinceResize && (me.hasAnimatedSinceResize = !1, this.nodes.forEach(qs)));
3272
3272
  });
3273
3273
  }
3274
3274
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && l && (a || c) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged: d, layout: f }) => {
@@ -3276,15 +3276,15 @@ function Zr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3276
3276
  this.target = void 0, this.relativeTarget = void 0;
3277
3277
  return;
3278
3278
  }
3279
- const m = this.options.transition || l.getDefaultTransition() || su, { onLayoutAnimationStart: x, onLayoutAnimationComplete: y } = l.getProps(), g = !this.targetLayout || !_r(this.targetLayout, f), v = !h && d;
3280
- if (this.options.layoutRoot || this.resumeFrom || v || h && (g || !this.currentAnimation)) {
3279
+ const m = this.options.transition || l.getDefaultTransition() || su, { onLayoutAnimationStart: x, onLayoutAnimationComplete: y } = l.getProps(), g = !this.targetLayout || !_r(this.targetLayout, f), w = !h && d;
3280
+ if (this.options.layoutRoot || this.resumeFrom || w || h && (g || !this.currentAnimation)) {
3281
3281
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3282
3282
  const p = {
3283
3283
  ...In(m, "layout"),
3284
3284
  onPlay: x,
3285
3285
  onComplete: y
3286
3286
  };
3287
- (l.shouldReduceMotion || this.options.layoutRoot) && (p.delay = 0, p.type = !1), this.startAnimation(p), this.setAnimationOrigin(u, v);
3287
+ (l.shouldReduceMotion || this.options.layoutRoot) && (p.delay = 0, p.type = !1), this.startAnimation(p), this.setAnimationOrigin(u, w);
3288
3288
  } else
3289
3289
  h || qs(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3290
3290
  this.targetLayout = f;
@@ -3512,7 +3512,7 @@ function Zr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3512
3512
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
3513
3513
  return;
3514
3514
  }
3515
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ks(this.prevProjectionDelta.x, this.projectionDelta.x), ks(this.prevProjectionDelta.y, this.projectionDelta.y)), Kt(this.projectionDelta, this.layoutCorrected, f, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== d || !Hs(this.projectionDelta.x, this.prevProjectionDelta.x) || !Hs(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", f));
3515
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ks(this.prevProjectionDelta.x, this.projectionDelta.x), ks(this.prevProjectionDelta.y, this.projectionDelta.y)), Gt(this.projectionDelta, this.layoutCorrected, f, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== d || !Hs(this.projectionDelta.x, this.prevProjectionDelta.x) || !Hs(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", f));
3516
3516
  }
3517
3517
  hide() {
3518
3518
  this.isVisible = !1;
@@ -3533,17 +3533,17 @@ function Zr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3533
3533
  setAnimationOrigin(r, a = !1) {
3534
3534
  const c = this.snapshot, l = c ? c.latestValues : {}, u = { ...this.latestValues }, h = Rt();
3535
3535
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
3536
- const d = U(), f = c ? c.source : void 0, m = this.layout ? this.layout.source : void 0, x = f !== m, y = this.getStack(), g = !y || y.members.length <= 1, v = !!(x && !g && this.options.crossfade === !0 && !this.path.some(nu));
3536
+ const d = U(), f = c ? c.source : void 0, m = this.layout ? this.layout.source : void 0, x = f !== m, y = this.getStack(), g = !y || y.members.length <= 1, w = !!(x && !g && this.options.crossfade === !0 && !this.path.some(nu));
3537
3537
  this.animationProgress = 0;
3538
3538
  let p;
3539
- this.mixTargetDelta = (S) => {
3540
- const w = S / 1e3;
3541
- Zs(h.x, r.x, w), Zs(h.y, r.y, w), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Te(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), eu(this.relativeTarget, this.relativeTargetOrigin, d, w), p && Ll(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = U()), st(p, this.relativeTarget)), x && (this.animationValues = u, Bl(u, l, this.latestValues, w, v, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
3539
+ this.mixTargetDelta = (P) => {
3540
+ const v = P / 1e3;
3541
+ Zs(h.x, r.x, v), Zs(h.y, r.y, v), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Te(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), eu(this.relativeTarget, this.relativeTargetOrigin, d, v), p && Ll(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = U()), st(p, this.relativeTarget)), x && (this.animationValues = u, Bl(u, l, this.latestValues, v, w, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = v;
3542
3542
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3543
3543
  }
3544
3544
  startAnimation(r) {
3545
3545
  this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (pt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = D.update(() => {
3546
- fe.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Vt(0)), this.currentAnimation = Nl(this.motionValue, [0, 1e3], {
3546
+ me.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Vt(0)), this.currentAnimation = Nl(this.motionValue, [0, 1e3], {
3547
3547
  ...r,
3548
3548
  velocity: 0,
3549
3549
  isSync: !0,
@@ -3577,7 +3577,7 @@ function Zr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3577
3577
  const d = q(this.layout.layoutBox.y);
3578
3578
  c.y.min = r.target.y.min, c.y.max = c.y.min + d;
3579
3579
  }
3580
- st(a, c), kt(a, u), Kt(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
3580
+ st(a, c), kt(a, u), Gt(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
3581
3581
  }
3582
3582
  }
3583
3583
  registerSharedNode(r, a) {
@@ -3639,12 +3639,12 @@ function Zr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3639
3639
  }
3640
3640
  const c = this.getTransformTemplate();
3641
3641
  if (this.needsReset) {
3642
- this.needsReset = !1, r.visibility = "", r.opacity = "", r.pointerEvents = de(a?.pointerEvents) || "", r.transform = c ? c(this.latestValues, "") : "none";
3642
+ this.needsReset = !1, r.visibility = "", r.opacity = "", r.pointerEvents = fe(a?.pointerEvents) || "", r.transform = c ? c(this.latestValues, "") : "none";
3643
3643
  return;
3644
3644
  }
3645
3645
  const l = this.getLead();
3646
3646
  if (!this.projectionDelta || !this.layout || !l.target) {
3647
- this.options.layoutId && (r.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, r.pointerEvents = de(a?.pointerEvents) || ""), this.hasProjected && !Tt(this.latestValues) && (r.transform = c ? c({}, "") : "none", this.hasProjected = !1);
3647
+ this.options.layoutId && (r.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, r.pointerEvents = fe(a?.pointerEvents) || ""), this.hasProjected && !Tt(this.latestValues) && (r.transform = c ? c({}, "") : "none", this.hasProjected = !1);
3648
3648
  return;
3649
3649
  }
3650
3650
  r.visibility = "";
@@ -3657,15 +3657,15 @@ function Zr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3657
3657
  for (const m in mn) {
3658
3658
  if (u[m] === void 0)
3659
3659
  continue;
3660
- const { correct: x, applyTo: y, isCSSVariable: g } = mn[m], v = h === "none" ? u[m] : x(u[m], l);
3660
+ const { correct: x, applyTo: y, isCSSVariable: g } = mn[m], w = h === "none" ? u[m] : x(u[m], l);
3661
3661
  if (y) {
3662
3662
  const p = y.length;
3663
- for (let S = 0; S < p; S++)
3664
- r[y[S]] = v;
3663
+ for (let P = 0; P < p; P++)
3664
+ r[y[P]] = w;
3665
3665
  } else
3666
- g ? this.options.visualElement.renderState.vars[m] = v : r[m] = v;
3666
+ g ? this.options.visualElement.renderState.vars[m] = w : r[m] = w;
3667
3667
  }
3668
- this.options.layoutId && (r.pointerEvents = l === this ? de(a?.pointerEvents) || "" : "none");
3668
+ this.options.layoutId && (r.pointerEvents = l === this ? fe(a?.pointerEvents) || "" : "none");
3669
3669
  }
3670
3670
  clearSnapshot() {
3671
3671
  this.resumeFrom = this.snapshot = void 0;
@@ -3691,9 +3691,9 @@ function Gl(t) {
3691
3691
  h.max = h.min + d, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[u].max = t.relativeTarget[u].min + d);
3692
3692
  });
3693
3693
  const r = Rt();
3694
- Kt(r, n, e.layoutBox);
3694
+ Gt(r, n, e.layoutBox);
3695
3695
  const a = Rt();
3696
- o ? Kt(a, t.applyTransform(s, !0), e.measuredBox) : Kt(a, n, e.layoutBox);
3696
+ o ? Gt(a, t.applyTransform(s, !0), e.measuredBox) : Gt(a, n, e.layoutBox);
3697
3697
  const c = !Gr(r);
3698
3698
  let l = !1;
3699
3699
  if (!t.resumeFrom) {
@@ -3785,7 +3785,7 @@ function ru(t) {
3785
3785
  return t !== t.root && t.scroll?.wasRoot;
3786
3786
  }
3787
3787
  const ou = Zr({
3788
- attachResizeListener: (t, e) => Jt(t, "resize", e),
3788
+ attachResizeListener: (t, e) => Qt(t, "resize", e),
3789
3789
  measureScroll: () => ({
3790
3790
  x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
3791
3791
  y: document.documentElement.scrollTop || document.body?.scrollTop || 0
@@ -3925,8 +3925,8 @@ function fu(t, e) {
3925
3925
  if (Ce(t)) {
3926
3926
  const { initial: n, animate: s } = t;
3927
3927
  return {
3928
- initial: n === !1 || Zt(n) ? n : void 0,
3929
- animate: Zt(s) ? s : void 0
3928
+ initial: n === !1 || Jt(n) ? n : void 0,
3929
+ animate: Jt(s) ? s : void 0
3930
3930
  };
3931
3931
  }
3932
3932
  return t.inherit !== !1 ? e : {};
@@ -4043,7 +4043,7 @@ function Tu({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
4043
4043
  function bu(t, e, n, s) {
4044
4044
  const i = {}, o = s(t, {});
4045
4045
  for (const d in o)
4046
- i[d] = de(o[d]);
4046
+ i[d] = fe(o[d]);
4047
4047
  let { initial: r, animate: a } = t;
4048
4048
  const c = Ce(t), l = Er(t);
4049
4049
  e && l && !c && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
@@ -4056,16 +4056,16 @@ function bu(t, e, n, s) {
4056
4056
  const m = Fn(t, d[f]);
4057
4057
  if (m) {
4058
4058
  const { transitionEnd: x, transition: y, ...g } = m;
4059
- for (const v in g) {
4060
- let p = g[v];
4059
+ for (const w in g) {
4060
+ let p = g[w];
4061
4061
  if (Array.isArray(p)) {
4062
- const S = u ? p.length - 1 : 0;
4063
- p = p[S];
4062
+ const P = u ? p.length - 1 : 0;
4063
+ p = p[P];
4064
4064
  }
4065
- p !== null && (i[v] = p);
4065
+ p !== null && (i[w] = p);
4066
4066
  }
4067
- for (const v in x)
4068
- i[v] = x[v];
4067
+ for (const w in x)
4068
+ i[w] = x[w];
4069
4069
  }
4070
4070
  }
4071
4071
  }
@@ -4073,7 +4073,7 @@ function bu(t, e, n, s) {
4073
4073
  }
4074
4074
  const ro = (t) => (e, n) => {
4075
4075
  const s = W(Ee), i = W(wn), o = () => Tu(t, e, s, i);
4076
- return n ? o() : _t(o);
4076
+ return n ? o() : Xt(o);
4077
4077
  }, Su = /* @__PURE__ */ ro({
4078
4078
  scrapeMotionValuesFromProps: Kn,
4079
4079
  createRenderState: _n
@@ -4120,13 +4120,13 @@ function Cu(t, e, n, s, i, o) {
4120
4120
  bi(() => {
4121
4121
  m && y.current && m.update(n, c);
4122
4122
  });
4123
- const g = n[pr], v = N(!!g && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
4123
+ const g = n[pr], w = N(!!g && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
4124
4124
  return Ci(() => {
4125
- f.current = !0, m && (y.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
4125
+ f.current = !0, m && (y.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), w.current && m.animationState && m.animationState.animateChanges());
4126
4126
  }), X(() => {
4127
- m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current && (queueMicrotask(() => {
4127
+ m && (!w.current && m.animationState && m.animationState.animateChanges(), w.current && (queueMicrotask(() => {
4128
4128
  window.MotionHandoffMarkAsComplete?.(g);
4129
- }), v.current = !1), m.enteringChildren = void 0);
4129
+ }), w.current = !1), m.enteringChildren = void 0);
4130
4130
  }), m;
4131
4131
  }
4132
4132
  function Eu(t, e, n, s) {
@@ -4169,7 +4169,7 @@ function $e(t, { forwardMotionProps: e = !1, type: n } = {}, s, i) {
4169
4169
  const y = Ru(d);
4170
4170
  h = y.MeasureLayout, m.visualElement = Cu(t, x, d, i, y.ProjectionNode, o);
4171
4171
  }
4172
- return Bt(Ee.Provider, { value: m, children: [h && m.visualElement ? C(h, { visualElement: m.visualElement, ...d }) : null, xu(t, l, Vu(x, m.visualElement, u), x, f, e, o)] });
4172
+ return Ft(Ee.Provider, { value: m, children: [h && m.visualElement ? C(h, { visualElement: m.visualElement, ...d }) : null, xu(t, l, Vu(x, m.visualElement, u), x, f, e, o)] });
4173
4173
  }
4174
4174
  a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
4175
4175
  const c = Ae(a);
@@ -4183,7 +4183,7 @@ function Mu(t, e) {
4183
4183
  const n = W(to).strict;
4184
4184
  if (process.env.NODE_ENV !== "production" && e && n) {
4185
4185
  const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
4186
- t.ignoreStrict ? Ft(!1, s, "lazy-strict-mode") : ft(!1, s, "lazy-strict-mode");
4186
+ t.ignoreStrict ? Ot(!1, s, "lazy-strict-mode") : ft(!1, s, "lazy-strict-mode");
4187
4187
  }
4188
4188
  }
4189
4189
  function Ru(t) {
@@ -4270,7 +4270,7 @@ const Ou = {
4270
4270
  Feature: Fu
4271
4271
  }
4272
4272
  };
4273
- function ne(t) {
4273
+ function se(t) {
4274
4274
  return {
4275
4275
  point: {
4276
4276
  x: t.pageX,
@@ -4278,9 +4278,9 @@ function ne(t) {
4278
4278
  }
4279
4279
  };
4280
4280
  }
4281
- const Nu = (t) => (e) => $n(e) && t(e, ne(e));
4282
- function Gt(t, e, n, s) {
4283
- return Jt(t, e, Nu(n), s);
4281
+ const Nu = (t) => (e) => $n(e) && t(e, se(e));
4282
+ function _t(t, e, n, s) {
4283
+ return Qt(t, e, Nu(n), s);
4284
4284
  }
4285
4285
  const co = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ri = (t, e) => Math.abs(t - e);
4286
4286
  function ju(t, e) {
@@ -4302,8 +4302,8 @@ class lo {
4302
4302
  return;
4303
4303
  const { point: y } = f, { timestamp: g } = G;
4304
4304
  this.history.push({ ...y, timestamp: g });
4305
- const { onStart: v, onMove: p } = this.handlers;
4306
- m || (v && v(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), p && p(this.lastMoveEvent, f);
4305
+ const { onStart: w, onMove: p } = this.handlers;
4306
+ m || (w && w(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), p && p(this.lastMoveEvent, f);
4307
4307
  }, this.handlePointerMove = (f, m) => {
4308
4308
  this.lastMoveEvent = f, this.lastMoveEventInfo = Ue(m, this.transformPagePoint), D.update(this.updatePoint, !0);
4309
4309
  }, this.handlePointerUp = (f, m) => {
@@ -4311,15 +4311,15 @@ class lo {
4311
4311
  const { onEnd: x, onSessionEnd: y, resumeAnimation: g } = this.handlers;
4312
4312
  if ((this.dragSnapToOrigin || !this.startEvent) && g && g(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4313
4313
  return;
4314
- const v = We(f.type === "pointercancel" ? this.lastMoveEventInfo : Ue(m, this.transformPagePoint), this.history);
4315
- this.startEvent && x && x(f, v), y && y(f, v);
4314
+ const w = We(f.type === "pointercancel" ? this.lastMoveEventInfo : Ue(m, this.transformPagePoint), this.history);
4315
+ this.startEvent && x && x(f, w), y && y(f, w);
4316
4316
  }, !$n(e))
4317
4317
  return;
4318
4318
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = r, this.contextWindow = i || window;
4319
- const c = ne(e), l = Ue(c, this.transformPagePoint), { point: u } = l, { timestamp: h } = G;
4319
+ const c = se(e), l = Ue(c, this.transformPagePoint), { point: u } = l, { timestamp: h } = G;
4320
4320
  this.history = [{ ...u, timestamp: h }];
4321
4321
  const { onSessionStart: d } = n;
4322
- d && d(e, We(l, this.history)), this.removeListeners = Qt(Gt(this.contextWindow, "pointermove", this.handlePointerMove), Gt(this.contextWindow, "pointerup", this.handlePointerUp), Gt(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
4322
+ d && d(e, We(l, this.history)), this.removeListeners = te(_t(this.contextWindow, "pointermove", this.handlePointerMove), _t(this.contextWindow, "pointerup", this.handlePointerUp), _t(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
4323
4323
  }
4324
4324
  /**
4325
4325
  * Start tracking scroll on ancestors and window.
@@ -4437,7 +4437,7 @@ function Hu(t, e) {
4437
4437
  function Ku(t, e) {
4438
4438
  let n = 0.5;
4439
4439
  const s = q(t), i = q(e);
4440
- return i > s ? n = /* @__PURE__ */ Xt(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ Xt(t.min, t.max - i, e.min)), ht(0, 1, n);
4440
+ return i > s ? n = /* @__PURE__ */ Yt(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ Yt(t.min, t.max - i, e.min)), ht(0, 1, n);
4441
4441
  }
4442
4442
  function Gu(t, e) {
4443
4443
  const n = {};
@@ -4469,21 +4469,21 @@ class Yu {
4469
4469
  if (i && i.isPresent === !1)
4470
4470
  return;
4471
4471
  const o = (h) => {
4472
- n && this.snapToCursor(ne(h).point), this.stopAnimation();
4472
+ n && this.snapToCursor(se(h).point), this.stopAnimation();
4473
4473
  }, r = (h, d) => {
4474
4474
  const { drag: f, dragPropagation: m, onDragStart: x } = this.getProps();
4475
4475
  if (f && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = Ec(f), !this.openDragLock))
4476
4476
  return;
4477
4477
  this.latestPointerEvent = h, this.latestPanInfo = d, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), lt((g) => {
4478
- let v = this.getAxisMotionValue(g).get() || 0;
4479
- if (ut.test(v)) {
4478
+ let w = this.getAxisMotionValue(g).get() || 0;
4479
+ if (ut.test(w)) {
4480
4480
  const { projection: p } = this.visualElement;
4481
4481
  if (p && p.layout) {
4482
- const S = p.layout.layoutBox[g];
4483
- S && (v = q(S) * (parseFloat(v) / 100));
4482
+ const P = p.layout.layoutBox[g];
4483
+ P && (w = q(P) * (parseFloat(w) / 100));
4484
4484
  }
4485
4485
  }
4486
- this.originPoint[g] = v;
4486
+ this.originPoint[g] = w;
4487
4487
  }), x && D.update(() => x(h, d), !1, !0), an(this.visualElement, "transform");
4488
4488
  const { animationState: y } = this.visualElement;
4489
4489
  y && y.setActive("whileDrag", !0);
@@ -4551,7 +4551,7 @@ class Yu {
4551
4551
  }
4552
4552
  updateAxis(e, n, s) {
4553
4553
  const { drag: i } = this.getProps();
4554
- if (!s || !re(e, i, this.currentDirection))
4554
+ if (!s || !oe(e, i, this.currentDirection))
4555
4555
  return;
4556
4556
  const o = this.getAxisMotionValue(e);
4557
4557
  let r = this.originPoint[e] + s[e];
@@ -4582,7 +4582,7 @@ class Yu {
4582
4582
  }
4583
4583
  startAnimation(e) {
4584
4584
  const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), c = this.constraints || {}, l = lt((u) => {
4585
- if (!re(u, n, this.currentDirection))
4585
+ if (!oe(u, n, this.currentDirection))
4586
4586
  return;
4587
4587
  let h = c && c[u] || {};
4588
4588
  r && (h = { min: 0, max: 0 });
@@ -4621,7 +4621,7 @@ class Yu {
4621
4621
  snapToCursor(e) {
4622
4622
  lt((n) => {
4623
4623
  const { drag: s } = this.getProps();
4624
- if (!re(n, s, this.currentDirection))
4624
+ if (!oe(n, s, this.currentDirection))
4625
4625
  return;
4626
4626
  const { projection: i } = this.visualElement, o = this.getAxisMotionValue(n);
4627
4627
  if (i && i.layout) {
@@ -4652,7 +4652,7 @@ class Yu {
4652
4652
  });
4653
4653
  const { transformTemplate: o } = this.visualElement.getProps();
4654
4654
  this.visualElement.current.style.transform = o ? o({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.constraints = !1, this.resolveConstraints(), lt((r) => {
4655
- if (!re(r, e, null))
4655
+ if (!oe(r, e, null))
4656
4656
  return;
4657
4657
  const a = this.getAxisMotionValue(r), { min: c, max: l } = this.constraints[r];
4658
4658
  a.set(O(c, l, i[r]));
@@ -4662,7 +4662,7 @@ class Yu {
4662
4662
  if (!this.visualElement.current)
4663
4663
  return;
4664
4664
  Xu.set(this.visualElement, this);
4665
- const e = this.visualElement.current, n = Gt(e, "pointerdown", (l) => {
4665
+ const e = this.visualElement.current, n = _t(e, "pointerdown", (l) => {
4666
4666
  const { drag: u, dragListener: h = !0 } = this.getProps(), d = l.target, f = d !== e && Ic(d);
4667
4667
  u && h && !f && this.start(l);
4668
4668
  });
@@ -4672,7 +4672,7 @@ class Yu {
4672
4672
  Ct(l) && l.current && (this.constraints = this.resolveRefConstraints(), s || (s = qu(e, l.current, () => this.scalePositionWithinConstraints())));
4673
4673
  }, { projection: o } = this.visualElement, r = o.addEventListener("measure", i);
4674
4674
  o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), D.read(i);
4675
- const a = Jt(window, "resize", () => this.scalePositionWithinConstraints()), c = o.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: u }) => {
4675
+ const a = Qt(window, "resize", () => this.scalePositionWithinConstraints()), c = o.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: u }) => {
4676
4676
  this.isDragging && u && (lt((h) => {
4677
4677
  const d = this.getAxisMotionValue(h);
4678
4678
  d && (this.originPoint[h] += l[h].translate, d.set(d.get() + l[h].translate));
@@ -4711,7 +4711,7 @@ function qu(t, e, n) {
4711
4711
  s(), i();
4712
4712
  };
4713
4713
  }
4714
- function re(t, e, n) {
4714
+ function oe(t, e, n) {
4715
4715
  return (e === !0 || e === t) && (n === null || n === t);
4716
4716
  }
4717
4717
  function Zu(t, e = 10) {
@@ -4759,7 +4759,7 @@ class Qu extends wt {
4759
4759
  };
4760
4760
  }
4761
4761
  mount() {
4762
- this.removePointerDownListener = Gt(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
4762
+ this.removePointerDownListener = _t(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
4763
4763
  }
4764
4764
  update() {
4765
4765
  this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -4783,7 +4783,7 @@ class th extends Ao {
4783
4783
  ...o.options,
4784
4784
  layoutDependency: this.props.layoutDependency,
4785
4785
  onExitComplete: () => this.safeToRemove()
4786
- })), fe.hasEverUpdated = !0;
4786
+ })), me.hasEverUpdated = !0;
4787
4787
  }
4788
4788
  getSnapshotBeforeUpdate(e) {
4789
4789
  const { layoutDependency: n, visualElement: s, drag: i, isPresent: o } = this.props, { projection: r } = s;
@@ -4831,7 +4831,7 @@ function fi(t, e, n) {
4831
4831
  const { props: s } = t;
4832
4832
  t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
4833
4833
  const i = "onHover" + n, o = s[i];
4834
- o && D.postRender(() => o(e, ne(e)));
4834
+ o && D.postRender(() => o(e, se(e)));
4835
4835
  }
4836
4836
  class nh extends wt {
4837
4837
  mount() {
@@ -4858,7 +4858,7 @@ class sh extends wt {
4858
4858
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
4859
4859
  }
4860
4860
  mount() {
4861
- this.unmount = Qt(Jt(this.node.current, "focus", () => this.onFocus()), Jt(this.node.current, "blur", () => this.onBlur()));
4861
+ this.unmount = te(Qt(this.node.current, "focus", () => this.onFocus()), Qt(this.node.current, "blur", () => this.onBlur()));
4862
4862
  }
4863
4863
  unmount() {
4864
4864
  }
@@ -4869,7 +4869,7 @@ function mi(t, e, n) {
4869
4869
  return;
4870
4870
  t.animationState && s.whileTap && t.animationState.setActive("whileTap", n === "Start");
4871
4871
  const i = "onTap" + (n === "End" ? "" : n), o = s[i];
4872
- o && D.postRender(() => o(e, ne(e)));
4872
+ o && D.postRender(() => o(e, se(e)));
4873
4873
  }
4874
4874
  class ih extends wt {
4875
4875
  mount() {
@@ -4965,9 +4965,9 @@ const dh = {
4965
4965
  ...dh,
4966
4966
  ...eh,
4967
4967
  ...fh
4968
- }, oe = /* @__PURE__ */ Lu(mh, ku);
4968
+ }, ae = /* @__PURE__ */ Lu(mh, ku);
4969
4969
  function yn(t) {
4970
- const e = _t(() => Vt(t)), { isStatic: n } = W(Gn);
4970
+ const e = Xt(() => Vt(t)), { isStatic: n } = W(Gn);
4971
4971
  if (n) {
4972
4972
  const [, s] = rt(t);
4973
4973
  X(() => e.on("change", s), []);
@@ -4997,9 +4997,9 @@ function pi(t, ...e) {
4997
4997
  return Yn(e.filter(H), s);
4998
4998
  }
4999
4999
  function ph(t) {
5000
- Ht.current = [], t();
5001
- const e = Yn(Ht.current, t);
5002
- return Ht.current = void 0, e;
5000
+ Kt.current = [], t();
5001
+ const e = Yn(Kt.current, t);
5002
+ return Kt.current = void 0, e;
5003
5003
  }
5004
5004
  function vn(t, e, n, s) {
5005
5005
  if (typeof t == "function")
@@ -5015,7 +5015,7 @@ function vn(t, e, n, s) {
5015
5015
  }), a;
5016
5016
  }
5017
5017
  function gi(t, e) {
5018
- const n = _t(() => []);
5018
+ const n = Xt(() => []);
5019
5019
  return Yn(t, () => {
5020
5020
  n.length = 0;
5021
5021
  const s = t.length;
@@ -5025,7 +5025,7 @@ function gi(t, e) {
5025
5025
  });
5026
5026
  }
5027
5027
  function gh(t, e, n, s) {
5028
- const i = _t(() => Object.keys(n)), o = _t(() => ({}));
5028
+ const i = Xt(() => Object.keys(n)), o = Xt(() => ({}));
5029
5029
  for (const r of i)
5030
5030
  o[r] = vn(t, e, n[r], s);
5031
5031
  return o;
@@ -5046,14 +5046,14 @@ function yh({ x1: t, y1: e, x2: n, y2: s }, {
5046
5046
  if (l === "horizontal") {
5047
5047
  if (Math.abs(s - e) <= yi)
5048
5048
  return `M ${t} ${e} L ${n - r} ${s}`;
5049
- const P = c || a ? n - o : t + o, L = n > t ? 1 : -1, K = s > e ? 1 : -1, Q = P - L * u, J = e + K * u, Z = s - K * u, _ = P + L * u, A = n - L * r, I = [
5049
+ const S = c || a ? n - o : t + o, L = n > t ? 1 : -1, K = s > e ? 1 : -1, Q = S - L * u, J = e + K * u, Z = s - K * u, _ = S + L * u, A = n - L * r, I = [
5050
5050
  `L ${Q} ${e}`,
5051
- `Q ${P} ${e} ${P} ${J}`,
5052
- c ? `L ${P} ${Z} Q ${P} ${s} ${_} ${s}` : `L ${P} ${s}`
5051
+ `Q ${S} ${e} ${S} ${J}`,
5052
+ c ? `L ${S} ${Z} Q ${S} ${s} ${_} ${s}` : `L ${S} ${s}`
5053
5053
  ], E = [
5054
- c ? `L ${Q} ${e} Q ${P} ${e} ${P} ${J}` : `L ${P} ${e}`,
5055
- `L ${P} ${Z}`,
5056
- `Q ${P} ${s} ${_} ${s}`
5054
+ c ? `L ${Q} ${e} Q ${S} ${e} ${S} ${J}` : `L ${S} ${e}`,
5055
+ `L ${S} ${Z}`,
5056
+ `Q ${S} ${s} ${_} ${s}`
5057
5057
  ];
5058
5058
  return [
5059
5059
  `M ${t} ${e}`,
@@ -5063,27 +5063,27 @@ function yh({ x1: t, y1: e, x2: n, y2: s }, {
5063
5063
  }
5064
5064
  if (Math.abs(n - t) <= yi)
5065
5065
  return `M ${t} ${e} L ${n} ${s - r}`;
5066
- const h = c || a ? s - o : e + o, f = n > t ? 1 : -1, x = s > e ? 1 : -1, y = h - u, g = t + f * u, v = n - f * u, p = h + u, S = s - x * r, w = [
5066
+ const h = c || a ? s - o : e + o, f = n > t ? 1 : -1, x = s > e ? 1 : -1, y = h - u, g = t + f * u, w = n - f * u, p = h + u, P = s - x * r, v = [
5067
5067
  `L ${t} ${y}`,
5068
5068
  `Q ${t} ${h} ${g} ${h}`,
5069
5069
  `L ${n} ${h}`
5070
5070
  ], b = [
5071
5071
  `L ${t} ${h}`,
5072
- `L ${v} ${h}`,
5072
+ `L ${w} ${h}`,
5073
5073
  `Q ${n} ${h} ${n} ${p}`
5074
5074
  ];
5075
5075
  return [
5076
5076
  `M ${t} ${e}`,
5077
5077
  // Move the cursor to the starting point
5078
- ...a ? w : b,
5079
- `L ${n} ${S}`
5078
+ ...a ? v : b,
5079
+ `L ${n} ${P}`
5080
5080
  // Draw the final line to the end point
5081
5081
  ].join(" ");
5082
5082
  }
5083
5083
  const fo = Ae(
5084
5084
  function({ connectors: e, children: n, ...s }, i) {
5085
5085
  const o = Pe();
5086
- return /* @__PURE__ */ Bt(
5086
+ return /* @__PURE__ */ Ft(
5087
5087
  "svg",
5088
5088
  {
5089
5089
  width: "100%",
@@ -5162,13 +5162,13 @@ function vh() {
5162
5162
  n.current.set(h, x);
5163
5163
  const y = Array.from(
5164
5164
  n.current.values()
5165
- ).sort((v, p) => v.renderOrder - p.renderOrder);
5166
- return e(y), m && i((v) => v + 1), { unregister: () => {
5165
+ ).sort((w, p) => w.renderOrder - p.renderOrder);
5166
+ return e(y), m && i((w) => w + 1), { unregister: () => {
5167
5167
  n.current.delete(h);
5168
- const v = Array.from(
5168
+ const w = Array.from(
5169
5169
  n.current.values()
5170
- ).sort((p, S) => p.renderOrder - S.renderOrder);
5171
- e(v), i((p) => p + 1);
5170
+ ).sort((p, P) => p.renderOrder - P.renderOrder);
5171
+ e(w), i((p) => p + 1);
5172
5172
  } };
5173
5173
  },
5174
5174
  []
@@ -5256,7 +5256,7 @@ function bh({
5256
5256
  const a = N(null), c = N(null), l = {
5257
5257
  x: s?.x ?? vi.x,
5258
5258
  y: s?.y ?? vi.y
5259
- }, u = yn(0), h = yn(0), [d, f] = rt(null), [m, x] = rt(null), [y, g] = rt(!1), [v, p] = rt(!1);
5259
+ }, u = yn(0), h = yn(0), [d, f] = rt(null), [m, x] = rt(null), [y, g] = rt(!1), [w, p] = rt(!1);
5260
5260
  X(() => {
5261
5261
  if (!n || !a.current || !c.current) return;
5262
5262
  const _ = () => {
@@ -5304,13 +5304,13 @@ function bh({
5304
5304
  };
5305
5305
  return _.addEventListener("wheel", A, { passive: !1 }), () => _.removeEventListener("wheel", A);
5306
5306
  }, [n, d, u, h]);
5307
- const S = (_) => {
5307
+ const P = (_) => {
5308
5308
  Th(_.target) || (g(!0), document.body.style.cursor = "grabbing", document.body.style.userSelect = "none");
5309
- }, w = (_, A) => {
5309
+ }, v = (_, A) => {
5310
5310
  !d || !y || (u.set(Math.max(d.x, Math.min(0, u.get() + A.delta.x))), h.set(Math.max(d.y, Math.min(0, h.get() + A.delta.y))));
5311
5311
  }, b = () => {
5312
5312
  y && (g(!1), document.body.style.cursor = "", document.body.style.userSelect = "");
5313
- }, V = d && d.x < 0, P = d && d.y < 0, k = m && m.contentWidth > 0 && m.viewportWidth > 0 ? Math.max(
5313
+ }, V = d && d.x < 0, S = d && d.y < 0, k = m && m.contentWidth > 0 && m.viewportWidth > 0 ? Math.max(
5314
5314
  wi,
5315
5315
  m.viewportWidth / m.contentWidth * 100
5316
5316
  ) : 0, L = m && m.contentHeight > 0 && m.viewportHeight > 0 ? Math.max(
@@ -5328,24 +5328,24 @@ function bh({
5328
5328
  () => ({ orientation: t, align: e, x: u, y: h, wrapperRef: a }),
5329
5329
  [t, e, u, h]
5330
5330
  );
5331
- return /* @__PURE__ */ C(po.Provider, { value: Z, children: /* @__PURE__ */ Bt(
5332
- oe.div,
5331
+ return /* @__PURE__ */ C(po.Provider, { value: Z, children: /* @__PURE__ */ Ft(
5332
+ ae.div,
5333
5333
  {
5334
5334
  ref: a,
5335
- className: me("relative overflow-hidden grow isolate group", o),
5335
+ className: It("relative overflow-hidden grow isolate group", o),
5336
5336
  style: {
5337
5337
  paddingTop: l.y,
5338
5338
  paddingBottom: l.y,
5339
5339
  paddingLeft: l.x,
5340
5340
  paddingRight: l.x,
5341
- cursor: v && !y ? "grab" : void 0
5341
+ cursor: w && !y ? "grab" : void 0
5342
5342
  },
5343
- onPanStart: S,
5344
- onPan: w,
5343
+ onPanStart: P,
5344
+ onPan: v,
5345
5345
  onPanEnd: b,
5346
5346
  children: [
5347
5347
  /* @__PURE__ */ C(
5348
- oe.div,
5348
+ ae.div,
5349
5349
  {
5350
5350
  "data-testid": "flow-contents",
5351
5351
  ref: c,
@@ -5354,8 +5354,8 @@ function bh({
5354
5354
  children: /* @__PURE__ */ C(wo, { children: r })
5355
5355
  }
5356
5356
  ),
5357
- P && /* @__PURE__ */ C("div", { className: "absolute right-1 top-1 bottom-1 w-1.5 rounded-full bg-kumo-hairline/50 opacity-0 group-hover:opacity-100", children: /* @__PURE__ */ C(
5358
- oe.div,
5357
+ S && /* @__PURE__ */ C("div", { className: "absolute right-1 top-1 bottom-1 w-1.5 rounded-full bg-kumo-hairline/50 opacity-0 group-hover:opacity-100", children: /* @__PURE__ */ C(
5358
+ ae.div,
5359
5359
  {
5360
5360
  className: "absolute w-full rounded-full bg-kumo-fill",
5361
5361
  style: {
@@ -5365,7 +5365,7 @@ function bh({
5365
5365
  }
5366
5366
  ) }),
5367
5367
  V && /* @__PURE__ */ C("div", { className: "absolute bottom-1 left-1 right-1 h-1.5 rounded-full bg-kumo-hairline/50 opacity-0 group-hover:opacity-100", children: /* @__PURE__ */ C(
5368
- oe.div,
5368
+ ae.div,
5369
5369
  {
5370
5370
  className: "absolute h-full rounded-full bg-kumo-fill",
5371
5371
  style: {
@@ -5391,26 +5391,33 @@ const yo = () => vh(), vo = (t, e) => xh(t, e), Sh = (t) => {
5391
5391
  function wo({ children: t }) {
5392
5392
  const { orientation: e, align: n } = go(), s = yo(), i = N(null), [o, r] = rt([]), a = ot(() => {
5393
5393
  const f = [], m = s.descendants, x = i.current?.getBoundingClientRect(), y = x?.left ?? 0, g = x?.top ?? 0;
5394
- for (let v = 0; v < m.length - 1; v++) {
5395
- const p = m[v], S = m[v + 1];
5396
- if (p.props?.parallel || S.props?.parallel) continue;
5397
- const w = Se(p, { type: "start" }), b = Se(S, { type: "end" });
5398
- if (w && b) {
5399
- const V = p.props.disabled || S.props.disabled;
5400
- f.push({
5401
- x1: w.left - y + w.width,
5402
- y1: w.top - g + w.height / 2,
5394
+ for (let w = 0; w < m.length - 1; w++) {
5395
+ const p = m[w], P = m[w + 1];
5396
+ if (p.props?.parallel || P.props?.parallel) continue;
5397
+ const v = Se(p, { type: "start" }), b = Se(P, { type: "end" });
5398
+ if (v && b) {
5399
+ const V = p.props.disabled || P.props.disabled, S = e === "vertical" ? {
5400
+ x1: v.left - y + v.width / 2,
5401
+ y1: v.top - g + v.height,
5402
+ x2: b.left - y + b.width / 2,
5403
+ y2: b.top - g
5404
+ } : {
5405
+ x1: v.left - y + v.width,
5406
+ y1: v.top - g + v.height / 2,
5403
5407
  x2: b.left - y,
5404
- y2: b.top - g + b.height / 2,
5408
+ y2: b.top - g + b.height / 2
5409
+ };
5410
+ f.push({
5411
+ ...S,
5405
5412
  disabled: V,
5406
5413
  single: !0,
5407
5414
  fromId: p.id,
5408
- toId: S.id
5415
+ toId: P.id
5409
5416
  });
5410
5417
  }
5411
5418
  }
5412
5419
  r(f);
5413
- }, [s.descendants]);
5420
+ }, [s.descendants, e]);
5414
5421
  Pt(() => {
5415
5422
  a();
5416
5423
  }, [a]), X(() => (window.addEventListener("scroll", a, {
@@ -5430,14 +5437,16 @@ function wo({ children: t }) {
5430
5437
  }),
5431
5438
  [JSON.stringify(h), JSON.stringify(u)]
5432
5439
  );
5433
- return Sh(d), /* @__PURE__ */ C(mo, { value: s, children: /* @__PURE__ */ Bt("div", { className: "relative", ref: i, children: [
5440
+ return Sh(d), /* @__PURE__ */ C(mo, { value: s, children: /* @__PURE__ */ Ft("div", { className: "relative", ref: i, children: [
5434
5441
  /* @__PURE__ */ C(
5435
5442
  "ul",
5436
5443
  {
5437
- className: me(
5438
- "ml-0 list-none",
5439
- e === "vertical" ? "grid auto-rows-min gap-16" : "flex gap-16",
5440
- e === "horizontal" && (n === "center" ? "items-center" : "items-start")
5444
+ className: It(
5445
+ "ml-0 list-none gap-16",
5446
+ e === "vertical" ? It(
5447
+ "flex flex-col w-fit",
5448
+ n === "center" ? "items-center" : "items-start"
5449
+ ) : It("flex", n === "center" ? "items-center" : "items-start")
5441
5450
  ),
5442
5451
  children: t
5443
5452
  }
@@ -5457,9 +5466,9 @@ const To = Ae(
5457
5466
  const r = N(null), a = N(null), c = N(null), [l, u] = rt({ start: null, end: null }), { measurementEpoch: h, notifySizeChange: d } = Zn(), f = ot(() => {
5458
5467
  if (!r.current) return;
5459
5468
  const p = r.current.getBoundingClientRect();
5460
- let S = p, w = p;
5461
- a.current && (S = a.current.getBoundingClientRect()), c.current && (w = c.current.getBoundingClientRect()), u((b) => {
5462
- const V = { start: S, end: w };
5469
+ let P = p, v = p;
5470
+ a.current && (P = a.current.getBoundingClientRect()), c.current && (v = c.current.getBoundingClientRect()), u((b) => {
5471
+ const V = { start: P, end: v };
5463
5472
  return JSON.stringify(b) === JSON.stringify(V) ? b : V;
5464
5473
  });
5465
5474
  }, []), m = ct(
@@ -5474,8 +5483,8 @@ const To = Ae(
5474
5483
  if (!r.current) return;
5475
5484
  const p = () => {
5476
5485
  f(), d();
5477
- }, S = new ResizeObserver(p);
5478
- return S.observe(r.current), () => S.disconnect();
5486
+ }, P = new ResizeObserver(p);
5487
+ return P.observe(r.current), () => P.disconnect();
5479
5488
  }, [f, d]), Pt(() => {
5480
5489
  f();
5481
5490
  }, [h, f]), X(() => {
@@ -5490,10 +5499,10 @@ const To = Ae(
5490
5499
  };
5491
5500
  }, [f, d]);
5492
5501
  const g = xo(o, r);
5493
- let v;
5502
+ let w;
5494
5503
  if (n && Si(n)) {
5495
5504
  const p = n.props;
5496
- v = Pi(n, {
5505
+ w = Pi(n, {
5497
5506
  ref: g,
5498
5507
  "data-node-index": x,
5499
5508
  "data-node-id": y,
@@ -5502,7 +5511,7 @@ const To = Ae(
5502
5511
  children: p.children ?? s
5503
5512
  });
5504
5513
  } else
5505
- v = /* @__PURE__ */ C(
5514
+ w = /* @__PURE__ */ C(
5506
5515
  "li",
5507
5516
  {
5508
5517
  ref: g,
@@ -5528,7 +5537,7 @@ const To = Ae(
5528
5537
  }),
5529
5538
  []
5530
5539
  ),
5531
- children: v
5540
+ children: w
5532
5541
  }
5533
5542
  );
5534
5543
  }
@@ -5597,32 +5606,32 @@ function Ah({
5597
5606
  )
5598
5607
  ), y = ot(() => {
5599
5608
  if (!a.current) return;
5600
- const w = a.current.getBoundingClientRect();
5601
- l((b) => JSON.stringify(b) === JSON.stringify(w) ? b : w);
5609
+ const v = a.current.getBoundingClientRect();
5610
+ l((b) => JSON.stringify(b) === JSON.stringify(v) ? b : v);
5602
5611
  }, []);
5603
5612
  Pt(() => {
5604
5613
  if (!a.current) return;
5605
- const w = () => {
5614
+ const v = () => {
5606
5615
  y(), o();
5607
- }, b = new ResizeObserver(w);
5616
+ }, b = new ResizeObserver(v);
5608
5617
  return b.observe(a.current), () => b.disconnect();
5609
5618
  }, [y, o]), Pt(() => {
5610
5619
  y();
5611
5620
  }, [i, y]), X(() => {
5612
- const w = () => {
5621
+ const v = () => {
5613
5622
  y(), o();
5614
5623
  };
5615
- return window.addEventListener("scroll", w, {
5624
+ return window.addEventListener("scroll", v, {
5616
5625
  capture: !0,
5617
5626
  passive: !0
5618
- }), window.addEventListener("resize", w, { passive: !0 }), () => {
5619
- window.removeEventListener("scroll", w, { capture: !0 }), window.removeEventListener("resize", w);
5627
+ }), window.addEventListener("resize", v, { passive: !0 }), () => {
5628
+ window.removeEventListener("scroll", v, { capture: !0 }), window.removeEventListener("resize", v);
5620
5629
  };
5621
5630
  }, [y, o]);
5622
- const [g, v] = rt(null), p = ot(() => {
5623
- const w = r.current;
5624
- if (!w) return;
5625
- const b = w.getBoundingClientRect(), [V, P] = [m(), x()], k = Se(V, { type: "start" }), L = Se(P, { type: "end" }), { start: $, end: K } = Ph({
5631
+ const [g, w] = rt(null), p = ot(() => {
5632
+ const v = r.current;
5633
+ if (!v) return;
5634
+ const b = v.getBoundingClientRect(), [V, S] = [m(), x()], k = Se(V, { type: "start" }), L = Se(S, { type: "end" }), { start: $, end: K } = Ph({
5626
5635
  container: b,
5627
5636
  previous: k,
5628
5637
  next: L,
@@ -5672,10 +5681,10 @@ function Ah({
5672
5681
  break;
5673
5682
  }
5674
5683
  case "horizontal": {
5675
- const $t = z.top - b.top + z.height / 2;
5684
+ const Ut = z.top - b.top + z.height / 2;
5676
5685
  dt = {
5677
5686
  x: z.left - b.left,
5678
- y: $t
5687
+ y: Ut
5679
5688
  };
5680
5689
  break;
5681
5690
  }
@@ -5705,10 +5714,10 @@ function Ah({
5705
5714
  break;
5706
5715
  }
5707
5716
  case "horizontal": {
5708
- const $t = M.top - b.top + M.height / 2;
5717
+ const Ut = M.top - b.top + M.height / 2;
5709
5718
  dt = {
5710
5719
  x: M.right - b.left,
5711
- y: $t
5720
+ y: Ut
5712
5721
  };
5713
5722
  break;
5714
5723
  }
@@ -5721,15 +5730,15 @@ function Ah({
5721
5730
  x2: K.x,
5722
5731
  y2: K.y,
5723
5732
  isBottom: !0,
5724
- disabled: Jn || P?.props.disabled,
5733
+ disabled: Jn || S?.props.disabled,
5725
5734
  single: !A,
5726
5735
  fromId: E.id,
5727
- toId: P?.id
5736
+ toId: S?.id
5728
5737
  });
5729
5738
  }
5730
5739
  return B;
5731
5740
  });
5732
- v({
5741
+ w({
5733
5742
  connectors: I,
5734
5743
  junctions: {
5735
5744
  start: k && _ ? {
@@ -5753,27 +5762,27 @@ function Ah({
5753
5762
  Pt(() => {
5754
5763
  p();
5755
5764
  }, [p]), X(() => {
5756
- const w = () => p();
5757
- return window.addEventListener("scroll", w, {
5765
+ const v = () => p();
5766
+ return window.addEventListener("scroll", v, {
5758
5767
  capture: !0,
5759
5768
  passive: !0
5760
- }), window.addEventListener("resize", w, { passive: !0 }), () => {
5761
- window.removeEventListener("scroll", w, { capture: !0 }), window.removeEventListener("resize", w);
5769
+ }), window.addEventListener("resize", v, { passive: !0 }), () => {
5770
+ window.removeEventListener("scroll", v, { capture: !0 }), window.removeEventListener("resize", v);
5762
5771
  };
5763
5772
  }, [p]);
5764
- const S = m()?.props?.parallel === !0;
5765
- return /* @__PURE__ */ Bt(
5773
+ const P = m()?.props?.parallel === !0;
5774
+ return /* @__PURE__ */ Ft(
5766
5775
  "div",
5767
5776
  {
5768
5777
  ref: r,
5769
- className: me(
5778
+ className: It(
5770
5779
  "relative isolate",
5771
5780
  n === "horizontal" ? "px-16 -mr-16" : "py-16 -mb-16",
5772
- n === "horizontal" ? S ? "-ml-3" : "-ml-16" : S ? "-mt-3" : "-mt-16"
5781
+ n === "horizontal" ? P ? "-ml-3" : "-ml-16" : P ? "-mt-3" : "-mt-16"
5773
5782
  ),
5774
5783
  "data-node-index": f,
5775
5784
  children: [
5776
- /* @__PURE__ */ C("div", { className: "absolute inset-0 pointer-events-none z-1", children: g && /* @__PURE__ */ Bt(fo, { connectors: g.connectors, orientation: n, children: [
5785
+ /* @__PURE__ */ C("div", { className: "absolute inset-0 pointer-events-none z-1", children: g && /* @__PURE__ */ Ft(fo, { connectors: g.connectors, orientation: n, children: [
5777
5786
  g.junctions?.start && /* @__PURE__ */ C(
5778
5787
  "g",
5779
5788
  {
@@ -5792,7 +5801,7 @@ function Ah({
5792
5801
  /* @__PURE__ */ C(
5793
5802
  "ul",
5794
5803
  {
5795
- className: me(
5804
+ className: It(
5796
5805
  "gap-5 list-none flex",
5797
5806
  e === "start" ? "items-start" : "items-end",
5798
5807
  n === "horizontal" ? "flex-col ml-0" : "gap-5 w-fit mx-auto"