mainstack-design-system 1.3.9 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (596) hide show
  1. package/dist/{DayPickerExtended-AFjcOFRS.js → DayPickerExtended-C1hsWVH0.js} +14 -13
  2. package/dist/DayPickerExtended-DNqwrYF1.cjs +1 -0
  3. package/dist/assets/styles.css +1 -1
  4. package/dist/{format-DkTgDYk7.js → format-CR_Jktle.js} +1 -1
  5. package/dist/{format-6DRXtiIj.cjs → format-hjZOCnCU.cjs} +1 -1
  6. package/dist/index-5zLWZzxK.cjs +2 -0
  7. package/dist/index-B6sSWi7l.js +747 -0
  8. package/dist/index.d.ts +9352 -1
  9. package/dist/mainstack-design-system.cjs +1 -1
  10. package/dist/mainstack-design-system.js +586 -559
  11. package/dist/mainstack-design-system16.cjs +1 -1
  12. package/dist/mainstack-design-system16.js +1 -1
  13. package/dist/mainstack-design-system17.cjs +1 -1
  14. package/dist/mainstack-design-system17.js +1 -1
  15. package/dist/mainstack-design-system18.cjs +1 -1
  16. package/dist/mainstack-design-system18.js +17 -16
  17. package/dist/mainstack-design-system19.cjs +1 -1
  18. package/dist/mainstack-design-system19.js +12 -11
  19. package/dist/mainstack-design-system2.cjs +1 -1
  20. package/dist/mainstack-design-system2.js +1 -1
  21. package/dist/mainstack-design-system20.cjs +1 -1
  22. package/dist/mainstack-design-system20.js +11 -9
  23. package/dist/mainstack-design-system21.cjs +1 -1
  24. package/dist/mainstack-design-system21.js +1 -1
  25. package/dist/mainstack-design-system22.cjs +1 -1
  26. package/dist/mainstack-design-system22.js +1 -1
  27. package/dist/mainstack-design-system23.cjs +1 -1
  28. package/dist/mainstack-design-system23.js +3 -2
  29. package/dist/mainstack-design-system26.cjs +1 -1
  30. package/dist/mainstack-design-system26.js +1 -1
  31. package/dist/mainstack-design-system27.cjs +1 -1
  32. package/dist/mainstack-design-system27.js +10 -9
  33. package/dist/mainstack-design-system28.cjs +1 -1
  34. package/dist/mainstack-design-system28.js +1 -1
  35. package/dist/mainstack-design-system29.cjs +1 -1
  36. package/dist/mainstack-design-system29.js +1 -1
  37. package/dist/mainstack-design-system3.cjs +1 -1
  38. package/dist/mainstack-design-system3.js +1 -1
  39. package/dist/mainstack-design-system30.cjs +1 -1
  40. package/dist/mainstack-design-system30.js +1 -1
  41. package/dist/mainstack-design-system31.cjs +1 -1
  42. package/dist/mainstack-design-system31.js +18 -16
  43. package/dist/mainstack-design-system32.cjs +1 -1
  44. package/dist/mainstack-design-system32.js +3 -2
  45. package/dist/mainstack-design-system34.cjs +1 -1
  46. package/dist/mainstack-design-system34.js +5 -5
  47. package/dist/mainstack-design-system35.cjs +1 -1
  48. package/dist/mainstack-design-system35.js +3 -3
  49. package/dist/mainstack-design-system355.cjs +1 -1
  50. package/dist/mainstack-design-system355.js +1 -1
  51. package/dist/mainstack-design-system356.cjs +2 -1
  52. package/dist/mainstack-design-system356.js +43 -10
  53. package/dist/mainstack-design-system357.cjs +1 -2
  54. package/dist/mainstack-design-system357.js +11 -37
  55. package/dist/mainstack-design-system358.cjs +2 -1
  56. package/dist/mainstack-design-system358.js +38 -29
  57. package/dist/mainstack-design-system359.cjs +1 -1
  58. package/dist/mainstack-design-system359.js +27 -27
  59. package/dist/mainstack-design-system36.cjs +1 -1
  60. package/dist/mainstack-design-system36.js +7 -7
  61. package/dist/mainstack-design-system360.cjs +1 -1
  62. package/dist/mainstack-design-system360.js +29 -53
  63. package/dist/mainstack-design-system361.cjs +1 -1
  64. package/dist/mainstack-design-system361.js +52 -10
  65. package/dist/mainstack-design-system362.cjs +1 -1
  66. package/dist/mainstack-design-system362.js +11 -21
  67. package/dist/mainstack-design-system363.cjs +1 -2
  68. package/dist/mainstack-design-system363.js +21 -56
  69. package/dist/mainstack-design-system364.cjs +2 -1
  70. package/dist/mainstack-design-system364.js +57 -27
  71. package/dist/mainstack-design-system365.cjs +1 -1
  72. package/dist/mainstack-design-system365.js +26 -14
  73. package/dist/mainstack-design-system366.cjs +1 -1
  74. package/dist/mainstack-design-system366.js +14 -15
  75. package/dist/mainstack-design-system367.cjs +1 -1
  76. package/dist/mainstack-design-system367.js +15 -10
  77. package/dist/mainstack-design-system368.cjs +1 -1
  78. package/dist/mainstack-design-system368.js +9 -54
  79. package/dist/mainstack-design-system369.cjs +1 -1
  80. package/dist/mainstack-design-system369.js +54 -22
  81. package/dist/mainstack-design-system37.cjs +1 -1
  82. package/dist/mainstack-design-system37.js +7 -7
  83. package/dist/mainstack-design-system370.cjs +1 -1
  84. package/dist/mainstack-design-system370.js +23 -21
  85. package/dist/mainstack-design-system371.cjs +1 -1
  86. package/dist/mainstack-design-system371.js +20 -21
  87. package/dist/mainstack-design-system372.cjs +1 -1
  88. package/dist/mainstack-design-system372.js +22 -16
  89. package/dist/mainstack-design-system373.cjs +1 -1
  90. package/dist/mainstack-design-system373.js +14 -14
  91. package/dist/mainstack-design-system374.cjs +1 -1
  92. package/dist/mainstack-design-system374.js +16 -20
  93. package/dist/mainstack-design-system375.cjs +1 -1
  94. package/dist/mainstack-design-system375.js +20 -38
  95. package/dist/mainstack-design-system376.cjs +1 -1
  96. package/dist/mainstack-design-system376.js +39 -14
  97. package/dist/mainstack-design-system377.cjs +1 -1
  98. package/dist/mainstack-design-system377.js +11 -11
  99. package/dist/mainstack-design-system378.cjs +1 -1
  100. package/dist/mainstack-design-system378.js +9 -9
  101. package/dist/mainstack-design-system379.cjs +1 -1
  102. package/dist/mainstack-design-system379.js +14 -17
  103. package/dist/mainstack-design-system38.cjs +1 -1
  104. package/dist/mainstack-design-system38.js +6 -6
  105. package/dist/mainstack-design-system380.cjs +1 -1
  106. package/dist/mainstack-design-system380.js +16 -32
  107. package/dist/mainstack-design-system381.cjs +1 -1
  108. package/dist/mainstack-design-system381.js +31 -16
  109. package/dist/mainstack-design-system382.cjs +1 -1
  110. package/dist/mainstack-design-system382.js +18 -24
  111. package/dist/mainstack-design-system383.cjs +1 -1
  112. package/dist/mainstack-design-system383.js +27 -16
  113. package/dist/mainstack-design-system384.cjs +1 -1
  114. package/dist/mainstack-design-system384.js +22 -16
  115. package/dist/mainstack-design-system385.cjs +1 -1
  116. package/dist/mainstack-design-system385.js +16 -17
  117. package/dist/mainstack-design-system386.cjs +1 -1
  118. package/dist/mainstack-design-system386.js +17 -68
  119. package/dist/mainstack-design-system387.cjs +1 -1
  120. package/dist/mainstack-design-system387.js +17 -7
  121. package/dist/mainstack-design-system388.cjs +1 -87
  122. package/dist/mainstack-design-system388.js +66 -235
  123. package/dist/mainstack-design-system389.cjs +1 -1
  124. package/dist/mainstack-design-system389.js +7 -20
  125. package/dist/mainstack-design-system39.cjs +1 -1
  126. package/dist/mainstack-design-system39.js +5 -5
  127. package/dist/mainstack-design-system390.cjs +87 -1
  128. package/dist/mainstack-design-system390.js +238 -5
  129. package/dist/mainstack-design-system391.cjs +1 -2
  130. package/dist/mainstack-design-system391.js +20 -31
  131. package/dist/mainstack-design-system392.cjs +1 -2
  132. package/dist/mainstack-design-system392.js +5 -17
  133. package/dist/mainstack-design-system393.cjs +2 -1
  134. package/dist/mainstack-design-system393.js +32 -7
  135. package/dist/mainstack-design-system394.cjs +2 -1
  136. package/dist/mainstack-design-system394.js +17 -32
  137. package/dist/mainstack-design-system395.cjs +1 -1
  138. package/dist/mainstack-design-system395.js +6 -6
  139. package/dist/mainstack-design-system396.cjs +1 -1
  140. package/dist/mainstack-design-system396.js +30 -14
  141. package/dist/mainstack-design-system397.cjs +1 -1
  142. package/dist/mainstack-design-system397.js +6 -15
  143. package/dist/mainstack-design-system398.cjs +1 -1
  144. package/dist/mainstack-design-system398.js +11 -11
  145. package/dist/mainstack-design-system399.cjs +1 -1
  146. package/dist/mainstack-design-system399.js +11 -13
  147. package/dist/mainstack-design-system4.cjs +1 -1
  148. package/dist/mainstack-design-system4.js +1 -1
  149. package/dist/mainstack-design-system40.cjs +1 -1
  150. package/dist/mainstack-design-system40.js +6 -6
  151. package/dist/mainstack-design-system400.cjs +1 -1
  152. package/dist/mainstack-design-system400.js +12 -14
  153. package/dist/mainstack-design-system401.cjs +1 -1
  154. package/dist/mainstack-design-system401.js +13 -19
  155. package/dist/mainstack-design-system402.cjs +1 -1
  156. package/dist/mainstack-design-system402.js +14 -17
  157. package/dist/mainstack-design-system403.cjs +1 -1
  158. package/dist/mainstack-design-system403.js +18 -25
  159. package/dist/mainstack-design-system404.cjs +1 -1
  160. package/dist/mainstack-design-system404.js +15 -13
  161. package/dist/mainstack-design-system405.cjs +1 -1
  162. package/dist/mainstack-design-system405.js +32 -17
  163. package/dist/mainstack-design-system406.cjs +1 -1
  164. package/dist/mainstack-design-system406.js +15 -14
  165. package/dist/mainstack-design-system407.cjs +1 -1
  166. package/dist/mainstack-design-system407.js +17 -20
  167. package/dist/mainstack-design-system408.cjs +1 -1
  168. package/dist/mainstack-design-system408.js +18 -15
  169. package/dist/mainstack-design-system409.cjs +1 -1
  170. package/dist/mainstack-design-system409.js +16 -12
  171. package/dist/mainstack-design-system41.cjs +1 -1
  172. package/dist/mainstack-design-system41.js +8 -8
  173. package/dist/mainstack-design-system410.cjs +1 -1
  174. package/dist/mainstack-design-system410.js +14 -15
  175. package/dist/mainstack-design-system411.cjs +1 -1
  176. package/dist/mainstack-design-system411.js +15 -7
  177. package/dist/mainstack-design-system412.cjs +1 -1
  178. package/dist/mainstack-design-system412.js +12 -21
  179. package/dist/mainstack-design-system413.cjs +1 -1
  180. package/dist/mainstack-design-system413.js +7 -16
  181. package/dist/mainstack-design-system414.cjs +1 -1
  182. package/dist/mainstack-design-system414.js +20 -15
  183. package/dist/mainstack-design-system415.cjs +1 -1
  184. package/dist/mainstack-design-system415.js +17 -18
  185. package/dist/mainstack-design-system416.cjs +1 -1
  186. package/dist/mainstack-design-system416.js +19 -68
  187. package/dist/mainstack-design-system417.cjs +1 -1
  188. package/dist/mainstack-design-system417.js +18 -18
  189. package/dist/mainstack-design-system418.cjs +1 -1
  190. package/dist/mainstack-design-system418.js +68 -20
  191. package/dist/mainstack-design-system419.cjs +1 -1
  192. package/dist/mainstack-design-system419.js +13 -16
  193. package/dist/mainstack-design-system420.cjs +1 -1
  194. package/dist/mainstack-design-system420.js +21 -13
  195. package/dist/mainstack-design-system421.cjs +1 -1
  196. package/dist/mainstack-design-system421.js +20 -37
  197. package/dist/mainstack-design-system422.cjs +1 -1
  198. package/dist/mainstack-design-system422.js +14 -30
  199. package/dist/mainstack-design-system423.cjs +1 -1
  200. package/dist/mainstack-design-system423.js +37 -14
  201. package/dist/mainstack-design-system424.cjs +1 -1
  202. package/dist/mainstack-design-system424.js +26 -12
  203. package/dist/mainstack-design-system425.cjs +1 -1
  204. package/dist/mainstack-design-system425.js +14 -19
  205. package/dist/mainstack-design-system426.cjs +1 -1
  206. package/dist/mainstack-design-system426.js +15 -13
  207. package/dist/mainstack-design-system427.cjs +1 -1
  208. package/dist/mainstack-design-system427.js +14 -13
  209. package/dist/mainstack-design-system428.cjs +1 -1
  210. package/dist/mainstack-design-system428.js +14 -14
  211. package/dist/mainstack-design-system429.cjs +1 -1
  212. package/dist/mainstack-design-system429.js +20 -7
  213. package/dist/mainstack-design-system430.cjs +1 -1
  214. package/dist/mainstack-design-system430.js +14 -7
  215. package/dist/mainstack-design-system431.cjs +1 -1
  216. package/dist/mainstack-design-system431.js +6 -20
  217. package/dist/mainstack-design-system432.cjs +1 -1
  218. package/dist/mainstack-design-system432.js +7 -28
  219. package/dist/mainstack-design-system433.cjs +1 -2
  220. package/dist/mainstack-design-system433.js +18 -46
  221. package/dist/mainstack-design-system434.cjs +1 -2
  222. package/dist/mainstack-design-system434.js +28 -26
  223. package/dist/mainstack-design-system435.cjs +1 -1
  224. package/dist/mainstack-design-system435.js +48 -32
  225. package/dist/mainstack-design-system436.cjs +1 -1
  226. package/dist/mainstack-design-system436.js +18 -12
  227. package/dist/mainstack-design-system437.cjs +1 -1
  228. package/dist/mainstack-design-system437.js +28 -37
  229. package/dist/mainstack-design-system438.cjs +1 -1
  230. package/dist/mainstack-design-system438.js +10 -11
  231. package/dist/mainstack-design-system439.cjs +1 -1
  232. package/dist/mainstack-design-system439.js +37 -35
  233. package/dist/mainstack-design-system440.cjs +1 -1
  234. package/dist/mainstack-design-system440.js +16 -33
  235. package/dist/mainstack-design-system441.cjs +1 -1
  236. package/dist/mainstack-design-system441.js +38 -47
  237. package/dist/mainstack-design-system442.cjs +1 -1
  238. package/dist/mainstack-design-system442.js +33 -37
  239. package/dist/mainstack-design-system443.cjs +1 -1
  240. package/dist/mainstack-design-system443.js +48 -25
  241. package/dist/mainstack-design-system444.cjs +1 -1
  242. package/dist/mainstack-design-system444.js +37 -28
  243. package/dist/mainstack-design-system445.cjs +1 -1
  244. package/dist/mainstack-design-system445.js +21 -15
  245. package/dist/mainstack-design-system446.cjs +1 -1
  246. package/dist/mainstack-design-system446.js +28 -35
  247. package/dist/mainstack-design-system447.cjs +1 -1
  248. package/dist/mainstack-design-system447.js +13 -14
  249. package/dist/mainstack-design-system448.cjs +1 -1
  250. package/dist/mainstack-design-system448.js +34 -34
  251. package/dist/mainstack-design-system449.cjs +1 -1
  252. package/dist/mainstack-design-system449.js +16 -33
  253. package/dist/mainstack-design-system450.cjs +2 -1
  254. package/dist/mainstack-design-system450.js +40 -18
  255. package/dist/mainstack-design-system451.cjs +2 -1
  256. package/dist/mainstack-design-system451.js +38 -18
  257. package/dist/mainstack-design-system452.cjs +1 -1
  258. package/dist/mainstack-design-system452.js +15 -13
  259. package/dist/mainstack-design-system453.cjs +1 -1
  260. package/dist/mainstack-design-system453.js +13 -15
  261. package/dist/mainstack-design-system454.cjs +1 -1
  262. package/dist/mainstack-design-system454.js +12 -15
  263. package/dist/mainstack-design-system455.cjs +1 -1
  264. package/dist/mainstack-design-system455.js +20 -17
  265. package/dist/mainstack-design-system456.cjs +1 -2
  266. package/dist/mainstack-design-system456.js +16 -49
  267. package/dist/mainstack-design-system457.cjs +1 -2
  268. package/dist/mainstack-design-system457.js +18 -55
  269. package/dist/mainstack-design-system458.cjs +1 -1
  270. package/dist/mainstack-design-system458.js +51 -98
  271. package/dist/mainstack-design-system459.cjs +1 -1
  272. package/dist/mainstack-design-system459.js +52 -33
  273. package/dist/mainstack-design-system460.cjs +1 -1
  274. package/dist/mainstack-design-system460.js +93 -69
  275. package/dist/mainstack-design-system461.cjs +1 -1
  276. package/dist/mainstack-design-system461.js +31 -70
  277. package/dist/mainstack-design-system462.cjs +1 -1
  278. package/dist/mainstack-design-system462.js +71 -40
  279. package/dist/mainstack-design-system463.cjs +1 -1
  280. package/dist/mainstack-design-system463.js +69 -75
  281. package/dist/mainstack-design-system464.cjs +2 -1
  282. package/dist/mainstack-design-system464.js +46 -8
  283. package/dist/mainstack-design-system465.cjs +2 -1
  284. package/dist/mainstack-design-system465.js +80 -11
  285. package/dist/mainstack-design-system466.cjs +1 -1
  286. package/dist/mainstack-design-system466.js +8 -17
  287. package/dist/mainstack-design-system467.cjs +1 -1
  288. package/dist/mainstack-design-system467.js +13 -13
  289. package/dist/mainstack-design-system468.cjs +1 -1
  290. package/dist/mainstack-design-system468.js +15 -19
  291. package/dist/mainstack-design-system469.cjs +1 -1
  292. package/dist/mainstack-design-system469.js +13 -27
  293. package/dist/mainstack-design-system470.cjs +1 -1
  294. package/dist/mainstack-design-system470.js +20 -34
  295. package/dist/mainstack-design-system471.cjs +1 -1
  296. package/dist/mainstack-design-system471.js +27 -7
  297. package/dist/mainstack-design-system472.cjs +1 -1
  298. package/dist/mainstack-design-system472.js +32 -82
  299. package/dist/mainstack-design-system473.cjs +1 -1
  300. package/dist/mainstack-design-system473.js +7 -28
  301. package/dist/mainstack-design-system474.cjs +1 -1
  302. package/dist/mainstack-design-system474.js +83 -20
  303. package/dist/mainstack-design-system475.cjs +1 -1
  304. package/dist/mainstack-design-system475.js +27 -21
  305. package/dist/mainstack-design-system476.cjs +1 -2
  306. package/dist/mainstack-design-system476.js +21 -31
  307. package/dist/mainstack-design-system477.cjs +1 -2
  308. package/dist/mainstack-design-system477.js +20 -30
  309. package/dist/mainstack-design-system478.cjs +1 -1
  310. package/dist/mainstack-design-system478.js +20 -32
  311. package/dist/mainstack-design-system479.cjs +1 -1
  312. package/dist/mainstack-design-system479.js +25 -26
  313. package/dist/mainstack-design-system480.cjs +1 -1
  314. package/dist/mainstack-design-system480.js +37 -56
  315. package/dist/mainstack-design-system481.cjs +1 -1
  316. package/dist/mainstack-design-system481.js +27 -24
  317. package/dist/mainstack-design-system482.cjs +1 -1
  318. package/dist/mainstack-design-system482.js +59 -97
  319. package/dist/mainstack-design-system483.cjs +1 -1
  320. package/dist/mainstack-design-system483.js +24 -23
  321. package/dist/mainstack-design-system484.cjs +1 -1
  322. package/dist/mainstack-design-system484.js +98 -26
  323. package/dist/mainstack-design-system485.cjs +1 -1
  324. package/dist/mainstack-design-system485.js +28 -75
  325. package/dist/mainstack-design-system486.cjs +1 -1
  326. package/dist/mainstack-design-system486.js +31 -20
  327. package/dist/mainstack-design-system487.cjs +1 -1
  328. package/dist/mainstack-design-system487.js +57 -103
  329. package/dist/mainstack-design-system488.cjs +1 -1
  330. package/dist/mainstack-design-system488.js +20 -35
  331. package/dist/mainstack-design-system489.cjs +1 -1
  332. package/dist/mainstack-design-system489.js +123 -27
  333. package/dist/mainstack-design-system490.cjs +1 -1
  334. package/dist/mainstack-design-system490.js +33 -27
  335. package/dist/mainstack-design-system491.cjs +1 -1
  336. package/dist/mainstack-design-system491.js +25 -31
  337. package/dist/mainstack-design-system492.cjs +2 -3
  338. package/dist/mainstack-design-system492.js +31 -16
  339. package/dist/mainstack-design-system493.cjs +2 -1
  340. package/dist/mainstack-design-system493.js +39 -18
  341. package/dist/mainstack-design-system494.cjs +3 -1
  342. package/dist/mainstack-design-system494.js +12 -11
  343. package/dist/mainstack-design-system495.cjs +1 -1
  344. package/dist/mainstack-design-system495.js +15 -13
  345. package/dist/mainstack-design-system496.cjs +1 -1
  346. package/dist/mainstack-design-system496.js +12 -12
  347. package/dist/mainstack-design-system497.cjs +1 -1
  348. package/dist/mainstack-design-system497.js +12 -12
  349. package/dist/mainstack-design-system498.cjs +1 -1
  350. package/dist/mainstack-design-system498.js +15 -8
  351. package/dist/mainstack-design-system499.cjs +1 -1
  352. package/dist/mainstack-design-system499.js +11 -10
  353. package/dist/mainstack-design-system5.cjs +1 -1
  354. package/dist/mainstack-design-system5.js +1 -1
  355. package/dist/mainstack-design-system500.cjs +1 -1
  356. package/dist/mainstack-design-system500.js +8 -18
  357. package/dist/mainstack-design-system501.cjs +1 -1
  358. package/dist/mainstack-design-system501.js +11 -13
  359. package/dist/mainstack-design-system502.cjs +1 -1
  360. package/dist/mainstack-design-system502.js +12 -11
  361. package/dist/mainstack-design-system503.cjs +1 -1
  362. package/dist/mainstack-design-system503.js +15 -30
  363. package/dist/mainstack-design-system504.cjs +1 -1
  364. package/dist/mainstack-design-system504.js +17 -16
  365. package/dist/mainstack-design-system505.cjs +1 -1
  366. package/dist/mainstack-design-system505.js +29 -33
  367. package/dist/mainstack-design-system506.cjs +1 -1
  368. package/dist/mainstack-design-system506.js +16 -43
  369. package/dist/mainstack-design-system507.cjs +1 -2
  370. package/dist/mainstack-design-system507.js +32 -28
  371. package/dist/mainstack-design-system508.cjs +1 -1
  372. package/dist/mainstack-design-system508.js +36 -89
  373. package/dist/mainstack-design-system509.cjs +2 -1
  374. package/dist/mainstack-design-system509.js +30 -21
  375. package/dist/mainstack-design-system510.cjs +1 -2
  376. package/dist/mainstack-design-system510.js +96 -14
  377. package/dist/mainstack-design-system511.cjs +1 -2
  378. package/dist/mainstack-design-system511.js +22 -38
  379. package/dist/mainstack-design-system512.cjs +1 -1
  380. package/dist/mainstack-design-system512.js +13 -32
  381. package/dist/mainstack-design-system513.cjs +1 -1
  382. package/dist/mainstack-design-system513.js +34 -36
  383. package/dist/mainstack-design-system514.cjs +1 -1
  384. package/dist/mainstack-design-system514.js +31 -44
  385. package/dist/mainstack-design-system515.cjs +1 -1
  386. package/dist/mainstack-design-system515.js +39 -13
  387. package/dist/mainstack-design-system516.cjs +1 -1
  388. package/dist/mainstack-design-system516.js +44 -30
  389. package/dist/mainstack-design-system517.cjs +1 -1
  390. package/dist/mainstack-design-system517.js +12 -38
  391. package/dist/mainstack-design-system518.cjs +1 -1
  392. package/dist/mainstack-design-system518.js +31 -44
  393. package/dist/mainstack-design-system519.cjs +2 -1
  394. package/dist/mainstack-design-system519.js +41 -17
  395. package/dist/mainstack-design-system520.cjs +2 -1
  396. package/dist/mainstack-design-system520.js +47 -21
  397. package/dist/mainstack-design-system521.cjs +1 -1
  398. package/dist/mainstack-design-system521.js +12 -44
  399. package/dist/mainstack-design-system522.cjs +1 -1
  400. package/dist/mainstack-design-system522.js +21 -26
  401. package/dist/mainstack-design-system523.cjs +1 -2
  402. package/dist/mainstack-design-system523.js +47 -23
  403. package/dist/mainstack-design-system524.cjs +1 -2
  404. package/dist/mainstack-design-system524.js +25 -34
  405. package/dist/mainstack-design-system525.cjs +2 -1
  406. package/dist/mainstack-design-system525.js +21 -15
  407. package/dist/mainstack-design-system526.cjs +2 -1
  408. package/dist/mainstack-design-system526.js +33 -15
  409. package/dist/mainstack-design-system527.cjs +1 -1
  410. package/dist/mainstack-design-system527.js +10 -10
  411. package/dist/mainstack-design-system528.cjs +1 -1
  412. package/dist/mainstack-design-system528.js +12 -10
  413. package/dist/mainstack-design-system529.cjs +1 -1
  414. package/dist/mainstack-design-system529.js +15 -12
  415. package/dist/mainstack-design-system530.cjs +1 -2
  416. package/dist/mainstack-design-system530.js +10 -14
  417. package/dist/mainstack-design-system531.cjs +1 -2
  418. package/dist/mainstack-design-system531.js +16 -5
  419. package/dist/mainstack-design-system532.cjs +1 -1
  420. package/dist/mainstack-design-system532.js +19 -7
  421. package/dist/mainstack-design-system533.cjs +1 -1
  422. package/dist/mainstack-design-system533.js +3 -4
  423. package/dist/mainstack-design-system534.cjs +2 -1
  424. package/dist/mainstack-design-system534.js +8 -14
  425. package/dist/mainstack-design-system535.cjs +2 -1
  426. package/dist/mainstack-design-system535.js +6 -14
  427. package/dist/mainstack-design-system536.cjs +1 -2
  428. package/dist/mainstack-design-system536.js +14 -17
  429. package/dist/mainstack-design-system537.cjs +1 -2
  430. package/dist/mainstack-design-system537.js +13 -23
  431. package/dist/mainstack-design-system538.cjs +1 -1
  432. package/dist/mainstack-design-system538.js +16 -15
  433. package/dist/mainstack-design-system539.cjs +1 -1
  434. package/dist/mainstack-design-system539.js +20 -20
  435. package/dist/mainstack-design-system540.cjs +2 -1
  436. package/dist/mainstack-design-system540.js +17 -29
  437. package/dist/mainstack-design-system541.cjs +2 -1
  438. package/dist/mainstack-design-system541.js +23 -14
  439. package/dist/mainstack-design-system542.cjs +1 -1
  440. package/dist/mainstack-design-system542.js +29 -12
  441. package/dist/mainstack-design-system543.cjs +1 -1
  442. package/dist/mainstack-design-system543.js +10 -17
  443. package/dist/mainstack-design-system544.cjs +1 -1
  444. package/dist/mainstack-design-system544.js +10 -17
  445. package/dist/mainstack-design-system545.cjs +1 -1
  446. package/dist/mainstack-design-system545.js +18 -15
  447. package/dist/mainstack-design-system546.cjs +1 -1
  448. package/dist/mainstack-design-system546.js +16 -18
  449. package/dist/mainstack-design-system547.cjs +1 -1
  450. package/dist/mainstack-design-system547.js +15 -11
  451. package/dist/mainstack-design-system548.cjs +1 -1
  452. package/dist/mainstack-design-system548.js +17 -11
  453. package/dist/mainstack-design-system549.cjs +1 -1
  454. package/dist/mainstack-design-system549.js +15 -55
  455. package/dist/mainstack-design-system550.cjs +1 -1
  456. package/dist/mainstack-design-system550.js +12 -32
  457. package/dist/mainstack-design-system551.cjs +1 -1
  458. package/dist/mainstack-design-system551.js +51 -19
  459. package/dist/mainstack-design-system552.cjs +1 -1
  460. package/dist/mainstack-design-system552.js +35 -23
  461. package/dist/mainstack-design-system553.cjs +1 -5
  462. package/dist/mainstack-design-system553.js +19 -50
  463. package/dist/mainstack-design-system554.cjs +1 -1
  464. package/dist/mainstack-design-system554.js +20 -30
  465. package/dist/mainstack-design-system555.cjs +5 -1
  466. package/dist/mainstack-design-system555.js +54 -7
  467. package/dist/mainstack-design-system556.cjs +1 -2
  468. package/dist/mainstack-design-system556.js +33 -85
  469. package/dist/mainstack-design-system557.cjs +1 -1
  470. package/dist/mainstack-design-system557.js +19 -202
  471. package/dist/mainstack-design-system558.cjs +1 -1
  472. package/dist/mainstack-design-system558.js +17 -82
  473. package/dist/mainstack-design-system559.cjs +1 -1
  474. package/dist/mainstack-design-system559.js +62 -67
  475. package/dist/mainstack-design-system560.cjs +2 -1
  476. package/dist/mainstack-design-system560.js +14 -255
  477. package/dist/mainstack-design-system561.cjs +1 -1
  478. package/dist/mainstack-design-system561.js +18 -11
  479. package/dist/mainstack-design-system562.cjs +1 -1
  480. package/dist/mainstack-design-system562.js +14 -4
  481. package/dist/mainstack-design-system563.cjs +1 -1
  482. package/dist/mainstack-design-system563.js +15 -23
  483. package/dist/mainstack-design-system564.cjs +1 -1
  484. package/dist/mainstack-design-system564.js +16 -9
  485. package/dist/mainstack-design-system565.cjs +1 -1
  486. package/dist/mainstack-design-system565.js +14 -41
  487. package/dist/mainstack-design-system566.cjs +1 -1
  488. package/dist/mainstack-design-system566.js +7 -14
  489. package/dist/mainstack-design-system567.cjs +2 -1
  490. package/dist/mainstack-design-system567.js +80 -44
  491. package/dist/mainstack-design-system568.cjs +1 -1
  492. package/dist/mainstack-design-system568.js +202 -18
  493. package/dist/mainstack-design-system569.cjs +1 -1
  494. package/dist/mainstack-design-system569.js +83 -98
  495. package/dist/mainstack-design-system570.cjs +1 -1
  496. package/dist/mainstack-design-system570.js +67 -38
  497. package/dist/mainstack-design-system571.cjs +1 -1
  498. package/dist/mainstack-design-system571.js +255 -14
  499. package/dist/mainstack-design-system572.cjs +1 -1
  500. package/dist/mainstack-design-system572.js +11 -12
  501. package/dist/mainstack-design-system573.cjs +1 -1
  502. package/dist/mainstack-design-system573.js +5 -9
  503. package/dist/mainstack-design-system574.cjs +1 -1
  504. package/dist/mainstack-design-system574.js +22 -46
  505. package/dist/mainstack-design-system575.cjs +1 -1
  506. package/dist/mainstack-design-system575.js +9 -14
  507. package/dist/mainstack-design-system576.cjs +1 -1
  508. package/dist/mainstack-design-system576.js +34 -13
  509. package/dist/mainstack-design-system577.cjs +1 -1
  510. package/dist/mainstack-design-system577.js +9 -9
  511. package/dist/mainstack-design-system578.cjs +1 -1
  512. package/dist/mainstack-design-system578.js +50 -14
  513. package/dist/mainstack-design-system579.cjs +1 -1
  514. package/dist/mainstack-design-system579.js +19 -12
  515. package/dist/mainstack-design-system580.cjs +1 -1
  516. package/dist/mainstack-design-system580.js +97 -13
  517. package/dist/mainstack-design-system581.cjs +1 -1
  518. package/dist/mainstack-design-system581.js +38 -13
  519. package/dist/mainstack-design-system582.cjs +1 -1
  520. package/dist/mainstack-design-system582.js +14 -16
  521. package/dist/mainstack-design-system583.cjs +1 -1
  522. package/dist/mainstack-design-system583.js +12 -15
  523. package/dist/mainstack-design-system584.cjs +1 -1
  524. package/dist/mainstack-design-system584.js +8 -10
  525. package/dist/mainstack-design-system585.cjs +1 -2
  526. package/dist/mainstack-design-system585.js +47 -12
  527. package/dist/mainstack-design-system586.cjs +1 -1
  528. package/dist/mainstack-design-system586.js +14 -25
  529. package/dist/mainstack-design-system587.cjs +1 -2
  530. package/dist/mainstack-design-system587.js +19 -256
  531. package/dist/mainstack-design-system588.cjs +1 -2
  532. package/dist/mainstack-design-system588.js +11 -149
  533. package/dist/mainstack-design-system589.cjs +1 -1
  534. package/dist/mainstack-design-system589.js +14 -54
  535. package/dist/mainstack-design-system590.cjs +1 -2
  536. package/dist/mainstack-design-system590.js +11 -98
  537. package/dist/mainstack-design-system591.cjs +1 -1
  538. package/dist/mainstack-design-system591.js +13 -20
  539. package/dist/mainstack-design-system592.cjs +1 -3
  540. package/dist/mainstack-design-system592.js +12 -389
  541. package/dist/mainstack-design-system593.cjs +1 -2
  542. package/dist/mainstack-design-system593.js +15 -123
  543. package/dist/mainstack-design-system594.cjs +1 -5
  544. package/dist/mainstack-design-system594.js +13 -2160
  545. package/dist/mainstack-design-system595.cjs +1 -10
  546. package/dist/mainstack-design-system595.js +10 -183
  547. package/dist/mainstack-design-system596.cjs +1 -41
  548. package/dist/mainstack-design-system596.js +9 -23731
  549. package/dist/mainstack-design-system597.cjs +1 -4
  550. package/dist/mainstack-design-system597.js +23 -7436
  551. package/dist/mainstack-design-system598.cjs +1 -1
  552. package/dist/mainstack-design-system598.js +238 -2828
  553. package/dist/mainstack-design-system599.cjs +2 -1
  554. package/dist/mainstack-design-system599.js +154 -1
  555. package/dist/mainstack-design-system6.cjs +1 -1
  556. package/dist/mainstack-design-system6.js +1 -1
  557. package/dist/mainstack-design-system600.cjs +1 -1
  558. package/dist/mainstack-design-system600.js +54 -17
  559. package/dist/mainstack-design-system601.cjs +2 -1
  560. package/dist/mainstack-design-system601.js +99 -9
  561. package/dist/mainstack-design-system602.cjs +1 -0
  562. package/dist/mainstack-design-system602.js +25 -0
  563. package/dist/mainstack-design-system603.cjs +3 -0
  564. package/dist/mainstack-design-system603.js +393 -0
  565. package/dist/mainstack-design-system604.cjs +2 -0
  566. package/dist/mainstack-design-system604.js +126 -0
  567. package/dist/mainstack-design-system605.cjs +5 -0
  568. package/dist/mainstack-design-system605.js +2164 -0
  569. package/dist/mainstack-design-system606.cjs +10 -0
  570. package/dist/mainstack-design-system606.js +186 -0
  571. package/dist/mainstack-design-system607.cjs +42 -0
  572. package/dist/mainstack-design-system607.js +23736 -0
  573. package/dist/mainstack-design-system608.cjs +4 -0
  574. package/dist/mainstack-design-system608.js +7441 -0
  575. package/dist/mainstack-design-system609.cjs +2 -0
  576. package/dist/mainstack-design-system609.js +2852 -0
  577. package/dist/mainstack-design-system610.cjs +1 -0
  578. package/dist/mainstack-design-system610.js +61 -0
  579. package/dist/mainstack-design-system611.cjs +1 -0
  580. package/dist/mainstack-design-system611.js +1 -0
  581. package/dist/mainstack-design-system612.cjs +1 -0
  582. package/dist/mainstack-design-system612.js +19 -0
  583. package/dist/mainstack-design-system613.cjs +1 -0
  584. package/dist/mainstack-design-system613.js +13 -0
  585. package/dist/mainstack-design-system7.cjs +1 -1
  586. package/dist/mainstack-design-system7.js +2 -2
  587. package/dist/mainstack-design-system8.cjs +1 -1
  588. package/dist/mainstack-design-system8.js +1 -1
  589. package/dist/mainstack-design-system9.cjs +1 -1
  590. package/dist/mainstack-design-system9.js +2 -0
  591. package/dist/player-BKifgSJo.cjs +46 -0
  592. package/dist/player-DSenNqFV.js +7902 -0
  593. package/dist/{utils-CFdAYIby.js → utils-DnnzGb1L.js} +1 -1
  594. package/dist/{utils-DRUMSl4z.cjs → utils-FBJ8OQ9f.cjs} +1 -1
  595. package/package.json +4 -1
  596. package/dist/DayPickerExtended-BDQnuXA_.cjs +0 -1
@@ -1,2852 +1,262 @@
1
1
  'use client';
2
- import { jsx as W, jsxs as Tt } from "react/jsx-runtime";
3
- import { D as Ae } from "./index-eeqUt-Tb.js";
4
- import { c as ns } from "./index-RoCFhqzC.js";
5
- import { useEffect as qt } from "react";
6
- import { useResponsivePopoverDrawerContext as ss } from "./mainstack-design-system579.js";
7
- import { V as vt } from "./index-DJT9m8v7.js";
8
- import { c as Vt } from "./utils-CFdAYIby.js";
9
- import "./mainstack-design-system384.js";
10
- import "./mainstack-design-system385.js";
11
- import "./mainstack-design-system386.js";
12
- import { Button as is } from "./mainstack-design-system387.js";
13
- import { a as rs, i as as, u as wt, b as os } from "./use-presence-Dept-wE7.js";
14
- function ls(e, t) {
15
- e.indexOf(t) === -1 && e.push(t);
16
- }
17
- function ze(e, t) {
18
- const n = e.indexOf(t);
19
- n > -1 && e.splice(n, 1);
20
- }
21
- const Y = (e, t, n) => n > t ? t : n < e ? e : n;
22
- function Ee(e, t) {
23
- return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
24
- }
25
- let he = () => {
26
- }, I = () => {
27
- };
28
- process.env.NODE_ENV !== "production" && (he = (e, t, n) => {
29
- !e && typeof console < "u" && console.warn(Ee(t, n));
30
- }, I = (e, t, n) => {
31
- if (!e)
32
- throw new Error(Ee(t, n));
33
- });
34
- const K = {}, Ht = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Zt = (e) => /^0[^.\s]+$/u.test(e);
35
- // @__NO_SIDE_EFFECTS__
36
- function Xe(e) {
37
- let t;
38
- return () => (t === void 0 && (t = e()), t);
39
- }
40
- const Z = /* @__NO_SIDE_EFFECTS__ */ (e) => e, us = (e, t) => (n) => t(e(n)), qe = (...e) => e.reduce(us), He = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
41
- const s = t - e;
42
- return s === 0 ? 1 : (n - e) / s;
43
- };
44
- class Jt {
45
- constructor() {
46
- this.subscriptions = [];
47
- }
48
- add(t) {
49
- return ls(this.subscriptions, t), () => ze(this.subscriptions, t);
50
- }
51
- notify(t, n, s) {
52
- const i = this.subscriptions.length;
53
- if (i)
54
- if (i === 1)
55
- this.subscriptions[0](t, n, s);
56
- else
57
- for (let r = 0; r < i; r++) {
58
- const a = this.subscriptions[r];
59
- a && a(t, n, s);
60
- }
61
- }
62
- getSize() {
63
- return this.subscriptions.length;
64
- }
65
- clear() {
66
- this.subscriptions.length = 0;
67
- }
68
- }
69
- const O = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, R = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
70
- function Qt(e, t) {
71
- return t ? e * (1e3 / t) : 0;
72
- }
73
- const St = /* @__PURE__ */ new Set();
74
- function en(e, t, n) {
75
- e || St.has(t) || (console.warn(Ee(t, n)), St.add(t));
76
- }
77
- const cs = (e, t, n) => {
78
- const s = t - e;
79
- return ((n - e) % s + s) % s + e;
80
- }, tn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, fs = 1e-7, hs = 12;
81
- function ds(e, t, n, s, i) {
82
- let r, a, o = 0;
83
- do
84
- a = t + (n - t) / 2, r = tn(a, s, i) - e, r > 0 ? n = a : t = a;
85
- while (Math.abs(r) > fs && ++o < hs);
86
- return a;
87
- }
88
- function de(e, t, n, s) {
89
- if (e === t && n === s)
90
- return Z;
91
- const i = (r) => ds(r, 0, 1, e, n);
92
- return (r) => r === 0 || r === 1 ? r : tn(i(r), t, s);
93
- }
94
- const nn = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, sn = (e) => (t) => 1 - e(1 - t), rn = /* @__PURE__ */ de(0.33, 1.53, 0.69, 0.99), Ze = /* @__PURE__ */ sn(rn), an = /* @__PURE__ */ nn(Ze), on = (e) => (e *= 2) < 1 ? 0.5 * Ze(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Je = (e) => 1 - Math.sin(Math.acos(e)), ps = sn(Je), ln = nn(Je), ms = /* @__PURE__ */ de(0.42, 0, 1, 1), gs = /* @__PURE__ */ de(0, 0, 0.58, 1), un = /* @__PURE__ */ de(0.42, 0, 0.58, 1), cn = (e) => Array.isArray(e) && typeof e[0] != "number";
95
- function fn(e, t) {
96
- return cn(e) ? e[cs(0, e.length, t)] : e;
97
- }
98
- const hn = (e) => Array.isArray(e) && typeof e[0] == "number", xt = {
99
- linear: Z,
100
- easeIn: ms,
101
- easeInOut: un,
102
- easeOut: gs,
103
- circIn: Je,
104
- circInOut: ln,
105
- circOut: ps,
106
- backIn: Ze,
107
- backInOut: an,
108
- backOut: rn,
109
- anticipate: on
110
- }, ys = (e) => typeof e == "string", At = (e) => {
111
- if (hn(e)) {
112
- I(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
113
- const [t, n, s, i] = e;
114
- return de(t, n, s, i);
115
- } else if (ys(e))
116
- return I(xt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), xt[e];
117
- return e;
118
- }, be = [
119
- "setup",
120
- // Compute
121
- "read",
122
- // Read
123
- "resolveKeyframes",
124
- // Write/Read/Write/Read
125
- "preUpdate",
126
- // Compute
127
- "update",
128
- // Compute
129
- "preRender",
130
- // Compute
131
- "render",
132
- // Write
133
- "postRender"
134
- // Compute
135
- ];
136
- function bs(e, t) {
137
- let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = !1, r = !1;
138
- const a = /* @__PURE__ */ new WeakSet();
139
- let o = {
140
- delta: 0,
141
- timestamp: 0,
142
- isProcessing: !1
143
- };
144
- function u(l) {
145
- a.has(l) && (c.schedule(l), e()), l(o);
146
- }
147
- const c = {
148
- /**
149
- * Schedule a process to run on the next frame.
150
- */
151
- schedule: (l, f = !1, h = !1) => {
152
- const y = h && i ? n : s;
153
- return f && a.add(l), y.has(l) || y.add(l), l;
154
- },
155
- /**
156
- * Cancel the provided callback from running on the next frame.
157
- */
158
- cancel: (l) => {
159
- s.delete(l), a.delete(l);
160
- },
161
- /**
162
- * Execute all schedule callbacks.
163
- */
164
- process: (l) => {
165
- if (o = l, i) {
166
- r = !0;
167
- return;
168
- }
169
- i = !0, [n, s] = [s, n], n.forEach(u), n.clear(), i = !1, r && (r = !1, c.process(l));
170
- }
171
- };
172
- return c;
173
- }
174
- const Ts = 40;
175
- function dn(e, t) {
176
- let n = !1, s = !0;
177
- const i = {
178
- delta: 0,
179
- timestamp: 0,
180
- isProcessing: !1
181
- }, r = () => n = !0, a = be.reduce((w, S) => (w[S] = bs(r), w), {}), { setup: o, read: u, resolveKeyframes: c, preUpdate: l, update: f, preRender: h, render: m, postRender: y } = a, b = () => {
182
- const w = K.useManualTiming ? i.timestamp : performance.now();
183
- n = !1, K.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(w - i.timestamp, Ts), 1)), i.timestamp = w, i.isProcessing = !0, o.process(i), u.process(i), c.process(i), l.process(i), f.process(i), h.process(i), m.process(i), y.process(i), i.isProcessing = !1, n && t && (s = !1, e(b));
184
- }, v = () => {
185
- n = !0, s = !0, i.isProcessing || e(b);
186
- };
187
- return { schedule: be.reduce((w, S) => {
188
- const p = a[S];
189
- return w[S] = (V, C = !1, g = !1) => (n || v(), p.schedule(V, C, g)), w;
190
- }, {}), cancel: (w) => {
191
- for (let S = 0; S < be.length; S++)
192
- a[be[S]].cancel(w);
193
- }, state: i, steps: a };
194
- }
195
- const { schedule: B, cancel: Pe, state: Ve } = /* @__PURE__ */ dn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Z, !0);
196
- let ve;
197
- function vs() {
198
- ve = void 0;
199
- }
200
- const P = {
201
- now: () => (ve === void 0 && P.set(Ve.isProcessing || K.useManualTiming ? Ve.timestamp : performance.now()), ve),
202
- set: (e) => {
203
- ve = e, queueMicrotask(vs);
204
- }
205
- }, pn = (e) => (t) => typeof t == "string" && t.startsWith(e), mn = /* @__PURE__ */ pn("--"), Vs = /* @__PURE__ */ pn("var(--"), Qe = (e) => Vs(e) ? ws.test(e.split("/*")[0].trim()) : !1, ws = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, J = {
206
- test: (e) => typeof e == "number",
207
- parse: parseFloat,
208
- transform: (e) => e
209
- }, le = {
210
- ...J,
211
- transform: (e) => Y(0, 1, e)
212
- }, Te = {
213
- ...J,
214
- default: 1
215
- }, oe = (e) => Math.round(e * 1e5) / 1e5, et = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
216
- function Ss(e) {
217
- return e == null;
218
- }
219
- const xs = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, tt = (e, t) => (n) => !!(typeof n == "string" && xs.test(n) && n.startsWith(e) || t && !Ss(n) && Object.prototype.hasOwnProperty.call(n, t)), gn = (e, t, n) => (s) => {
220
- if (typeof s != "string")
221
- return s;
222
- const [i, r, a, o] = s.match(et);
223
- return {
224
- [e]: parseFloat(i),
225
- [t]: parseFloat(r),
226
- [n]: parseFloat(a),
227
- alpha: o !== void 0 ? parseFloat(o) : 1
2
+ import { jsx as s, jsxs as L, Fragment as O } from "react/jsx-runtime";
3
+ import * as i from "react";
4
+ import { forwardRef as H } from "react";
5
+ import { u as S } from "./index-DLcqcWxM.js";
6
+ import { c as G, P, a as N } from "./index-DMumqyNN.js";
7
+ import { u as K } from "./index-437EL2iq.js";
8
+ import { u as U } from "./index-BZPx6jYI.js";
9
+ import { u as X } from "./index-BGQepRFJ.js";
10
+ import { P as $ } from "./index-BpWB3aFK.js";
11
+ import "./mainstack-design-system355.js";
12
+ import J from "./mainstack-design-system102.js";
13
+ import "./player-DSenNqFV.js";
14
+ import { c as Q } from "./utils-DnnzGb1L.js";
15
+ var y = "Checkbox", [V] = G(y), [W, _] = V(y);
16
+ function Y(r) {
17
+ const {
18
+ __scopeCheckbox: a,
19
+ checked: t,
20
+ children: l,
21
+ defaultChecked: n,
22
+ disabled: e,
23
+ form: f,
24
+ name: b,
25
+ onCheckedChange: d,
26
+ required: h,
27
+ value: k = "on",
28
+ // @ts-expect-error
29
+ internal_do_not_use_render: u
30
+ } = r, [p, x] = K({
31
+ prop: t,
32
+ defaultProp: n ?? !1,
33
+ onChange: d,
34
+ caller: y
35
+ }), [C, v] = i.useState(null), [g, o] = i.useState(null), c = i.useRef(!1), I = C ? !!f || !!C.closest("form") : (
36
+ // We set this to true by default so that events bubble to forms without JS (SSR)
37
+ !0
38
+ ), R = {
39
+ checked: p,
40
+ disabled: e,
41
+ setChecked: x,
42
+ control: C,
43
+ setControl: v,
44
+ name: b,
45
+ form: f,
46
+ value: k,
47
+ hasConsumerStoppedPropagationRef: c,
48
+ required: h,
49
+ defaultChecked: m(n) ? !1 : n,
50
+ isFormControl: I,
51
+ bubbleInput: g,
52
+ setBubbleInput: o
228
53
  };
229
- }, As = (e) => Y(0, 255, e), Me = {
230
- ...J,
231
- transform: (e) => Math.round(As(e))
232
- }, j = {
233
- test: /* @__PURE__ */ tt("rgb", "red"),
234
- parse: /* @__PURE__ */ gn("red", "green", "blue"),
235
- transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Me.transform(e) + ", " + Me.transform(t) + ", " + Me.transform(n) + ", " + oe(le.transform(s)) + ")"
236
- };
237
- function Ms(e) {
238
- let t = "", n = "", s = "", i = "";
239
- return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), s = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), s = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, s += s, i += i), {
240
- red: parseInt(t, 16),
241
- green: parseInt(n, 16),
242
- blue: parseInt(s, 16),
243
- alpha: i ? parseInt(i, 16) / 255 : 1
244
- };
245
- }
246
- const Re = {
247
- test: /* @__PURE__ */ tt("#"),
248
- parse: Ms,
249
- transform: j.transform
250
- }, pe = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
251
- test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
252
- parse: parseFloat,
253
- transform: (t) => `${t}${e}`
254
- }), L = /* @__PURE__ */ pe("deg"), q = /* @__PURE__ */ pe("%"), d = /* @__PURE__ */ pe("px"), Cs = /* @__PURE__ */ pe("vh"), Ds = /* @__PURE__ */ pe("vw"), Mt = {
255
- ...q,
256
- parse: (e) => q.parse(e) / 100,
257
- transform: (e) => q.transform(e * 100)
258
- }, z = {
259
- test: /* @__PURE__ */ tt("hsl", "hue"),
260
- parse: /* @__PURE__ */ gn("hue", "saturation", "lightness"),
261
- transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + q.transform(oe(t)) + ", " + q.transform(oe(n)) + ", " + oe(le.transform(s)) + ")"
262
- }, D = {
263
- test: (e) => j.test(e) || Re.test(e) || z.test(e),
264
- parse: (e) => j.test(e) ? j.parse(e) : z.test(e) ? z.parse(e) : Re.parse(e),
265
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? j.transform(e) : z.transform(e),
266
- getAnimatableNone: (e) => {
267
- const t = D.parse(e);
268
- return t.alpha = 0, D.transform(t);
269
- }
270
- }, Fs = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
271
- function Es(e) {
272
- return isNaN(e) && typeof e == "string" && (e.match(et)?.length || 0) + (e.match(Fs)?.length || 0) > 0;
273
- }
274
- const yn = "number", bn = "color", Ps = "var", Rs = "var(", Ct = "${}", Os = /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;
275
- function ue(e) {
276
- const t = e.toString(), n = [], s = {
277
- color: [],
278
- number: [],
279
- var: []
280
- }, i = [];
281
- let r = 0;
282
- const o = t.replace(Os, (u) => (D.test(u) ? (s.color.push(r), i.push(bn), n.push(D.parse(u))) : u.startsWith(Rs) ? (s.var.push(r), i.push(Ps), n.push(u)) : (s.number.push(r), i.push(yn), n.push(parseFloat(u))), ++r, Ct)).split(Ct);
283
- return { values: n, split: o, indexes: s, types: i };
284
- }
285
- function Tn(e) {
286
- return ue(e).values;
287
- }
288
- function vn(e) {
289
- const { split: t, types: n } = ue(e), s = t.length;
290
- return (i) => {
291
- let r = "";
292
- for (let a = 0; a < s; a++)
293
- if (r += t[a], i[a] !== void 0) {
294
- const o = n[a];
295
- o === yn ? r += oe(i[a]) : o === bn ? r += D.transform(i[a]) : r += i[a];
296
- }
297
- return r;
298
- };
299
- }
300
- const Ns = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
301
- function Is(e) {
302
- const t = Tn(e);
303
- return vn(e)(t.map(Ns));
304
- }
305
- const Q = {
306
- test: Es,
307
- parse: Tn,
308
- createTransformer: vn,
309
- getAnimatableNone: Is
310
- };
311
- function Ce(e, t, n) {
312
- return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
313
- }
314
- function ks({ hue: e, saturation: t, lightness: n, alpha: s }) {
315
- e /= 360, t /= 100, n /= 100;
316
- let i = 0, r = 0, a = 0;
317
- if (!t)
318
- i = r = a = n;
319
- else {
320
- const o = n < 0.5 ? n * (1 + t) : n + t - n * t, u = 2 * n - o;
321
- i = Ce(u, o, e + 1 / 3), r = Ce(u, o, e), a = Ce(u, o, e - 1 / 3);
322
- }
323
- return {
324
- red: Math.round(i * 255),
325
- green: Math.round(r * 255),
326
- blue: Math.round(a * 255),
327
- alpha: s
328
- };
329
- }
330
- function we(e, t) {
331
- return (n) => n > 0 ? t : e;
332
- }
333
- const me = (e, t, n) => e + (t - e) * n, De = (e, t, n) => {
334
- const s = e * e, i = n * (t * t - s) + s;
335
- return i < 0 ? 0 : Math.sqrt(i);
336
- }, Ks = [Re, j, z], Bs = (e) => Ks.find((t) => t.test(e));
337
- function Dt(e) {
338
- const t = Bs(e);
339
- if (he(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
340
- return !1;
341
- let n = t.parse(e);
342
- return t === z && (n = ks(n)), n;
343
- }
344
- const Ft = (e, t) => {
345
- const n = Dt(e), s = Dt(t);
346
- if (!n || !s)
347
- return we(e, t);
348
- const i = { ...n };
349
- return (r) => (i.red = De(n.red, s.red, r), i.green = De(n.green, s.green, r), i.blue = De(n.blue, s.blue, r), i.alpha = me(n.alpha, s.alpha, r), j.transform(i));
350
- }, Oe = /* @__PURE__ */ new Set(["none", "hidden"]);
351
- function $s(e, t) {
352
- return Oe.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
353
- }
354
- function Ls(e, t) {
355
- return (n) => me(e, t, n);
356
- }
357
- function nt(e) {
358
- return typeof e == "number" ? Ls : typeof e == "string" ? Qe(e) ? we : D.test(e) ? Ft : _s : Array.isArray(e) ? Vn : typeof e == "object" ? D.test(e) ? Ft : Ws : we;
359
- }
360
- function Vn(e, t) {
361
- const n = [...e], s = n.length, i = e.map((r, a) => nt(r)(r, t[a]));
362
- return (r) => {
363
- for (let a = 0; a < s; a++)
364
- n[a] = i[a](r);
365
- return n;
366
- };
367
- }
368
- function Ws(e, t) {
369
- const n = { ...e, ...t }, s = {};
370
- for (const i in n)
371
- e[i] !== void 0 && t[i] !== void 0 && (s[i] = nt(e[i])(e[i], t[i]));
372
- return (i) => {
373
- for (const r in s)
374
- n[r] = s[r](i);
375
- return n;
376
- };
377
- }
378
- function js(e, t) {
379
- const n = [], s = { color: 0, var: 0, number: 0 };
380
- for (let i = 0; i < t.values.length; i++) {
381
- const r = t.types[i], a = e.indexes[r][s[r]], o = e.values[a] ?? 0;
382
- n[i] = o, s[r]++;
383
- }
384
- return n;
385
- }
386
- const _s = (e, t) => {
387
- const n = Q.createTransformer(t), s = ue(e), i = ue(t);
388
- 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 ? Oe.has(e) && !i.values.length || Oe.has(t) && !s.values.length ? $s(e, t) : qe(Vn(js(s, i), i.values), n) : (he(!0, `Complex values '${e}' and '${t}' 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"), we(e, t));
389
- };
390
- function wn(e, t, n) {
391
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? me(e, t, n) : nt(e)(e, t);
392
- }
393
- const Us = (e) => {
394
- const t = ({ timestamp: n }) => e(n);
395
- return {
396
- start: (n = !0) => B.update(t, n),
397
- stop: () => Pe(t),
398
- /**
399
- * If we're processing this frame we can use the
400
- * framelocked timestamp to keep things in sync.
401
- */
402
- now: () => Ve.isProcessing ? Ve.timestamp : P.now()
403
- };
404
- }, Sn = (e, t, n = 10) => {
405
- let s = "";
406
- const i = Math.max(Math.round(t / n), 2);
407
- for (let r = 0; r < i; r++)
408
- s += Math.round(e(r / (i - 1)) * 1e4) / 1e4 + ", ";
409
- return `linear(${s.substring(0, s.length - 2)})`;
410
- }, Se = 2e4;
411
- function st(e) {
412
- let t = 0;
413
- const n = 50;
414
- let s = e.next(t);
415
- for (; !s.done && t < Se; )
416
- t += n, s = e.next(t);
417
- return t >= Se ? 1 / 0 : t;
418
- }
419
- function xn(e, t = 100, n) {
420
- const s = n({ ...e, keyframes: [0, t] }), i = Math.min(st(s), Se);
421
- return {
422
- type: "keyframes",
423
- ease: (r) => s.next(i * r).value / t,
424
- duration: /* @__PURE__ */ R(i)
425
- };
426
- }
427
- const Gs = 5;
428
- function An(e, t, n) {
429
- const s = Math.max(t - Gs, 0);
430
- return Qt(n - e(s), t - s);
431
- }
432
- const M = {
433
- // Default spring physics
434
- stiffness: 100,
435
- damping: 10,
436
- mass: 1,
437
- velocity: 0,
438
- // Default duration/bounce-based options
439
- duration: 800,
440
- // in ms
441
- bounce: 0.3,
442
- visualDuration: 0.3,
443
- // in seconds
444
- // Rest thresholds
445
- restSpeed: {
446
- granular: 0.01,
447
- default: 2
448
- },
449
- restDelta: {
450
- granular: 5e-3,
451
- default: 0.5
452
- },
453
- // Limits
454
- minDuration: 0.01,
455
- // in seconds
456
- maxDuration: 10,
457
- // in seconds
458
- minDamping: 0.05,
459
- maxDamping: 1
460
- }, Fe = 1e-3;
461
- function Ys({ duration: e = M.duration, bounce: t = M.bounce, velocity: n = M.velocity, mass: s = M.mass }) {
462
- let i, r;
463
- he(e <= /* @__PURE__ */ O(M.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
464
- let a = 1 - t;
465
- a = Y(M.minDamping, M.maxDamping, a), e = Y(M.minDuration, M.maxDuration, /* @__PURE__ */ R(e)), a < 1 ? (i = (c) => {
466
- const l = c * a, f = l * e, h = l - n, m = Ne(c, a), y = Math.exp(-f);
467
- return Fe - h / m * y;
468
- }, r = (c) => {
469
- const f = c * a * e, h = f * n + n, m = Math.pow(a, 2) * Math.pow(c, 2) * e, y = Math.exp(-f), b = Ne(Math.pow(c, 2), a);
470
- return (-i(c) + Fe > 0 ? -1 : 1) * ((h - m) * y) / b;
471
- }) : (i = (c) => {
472
- const l = Math.exp(-c * e), f = (c - n) * e + 1;
473
- return -Fe + l * f;
474
- }, r = (c) => {
475
- const l = Math.exp(-c * e), f = (n - c) * (e * e);
476
- return l * f;
477
- });
478
- const o = 5 / e, u = Xs(i, r, o);
479
- if (e = /* @__PURE__ */ O(e), isNaN(u))
480
- return {
481
- stiffness: M.stiffness,
482
- damping: M.damping,
483
- duration: e
484
- };
485
- {
486
- const c = Math.pow(u, 2) * s;
487
- return {
488
- stiffness: c,
489
- damping: a * 2 * Math.sqrt(s * c),
490
- duration: e
491
- };
492
- }
493
- }
494
- const zs = 12;
495
- function Xs(e, t, n) {
496
- let s = n;
497
- for (let i = 1; i < zs; i++)
498
- s = s - e(s) / t(s);
499
- return s;
500
- }
501
- function Ne(e, t) {
502
- return e * Math.sqrt(1 - t * t);
503
- }
504
- const qs = ["duration", "bounce"], Hs = ["stiffness", "damping", "mass"];
505
- function Et(e, t) {
506
- return t.some((n) => e[n] !== void 0);
507
- }
508
- function Zs(e) {
509
- let t = {
510
- velocity: M.velocity,
511
- stiffness: M.stiffness,
512
- damping: M.damping,
513
- mass: M.mass,
514
- isResolvedFromDuration: !1,
515
- ...e
516
- };
517
- if (!Et(e, Hs) && Et(e, qs))
518
- if (e.visualDuration) {
519
- const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 * Y(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
520
- t = {
521
- ...t,
522
- mass: M.mass,
523
- stiffness: i,
524
- damping: r
525
- };
526
- } else {
527
- const n = Ys(e);
528
- t = {
529
- ...t,
530
- ...n,
531
- mass: M.mass
532
- }, t.isResolvedFromDuration = !0;
533
- }
534
- return t;
535
- }
536
- function H(e = M.visualDuration, t = M.bounce) {
537
- const n = typeof e != "object" ? {
538
- visualDuration: e,
539
- keyframes: [0, 1],
540
- bounce: t
541
- } : e;
542
- let { restSpeed: s, restDelta: i } = n;
543
- const r = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], o = { done: !1, value: r }, { stiffness: u, damping: c, mass: l, duration: f, velocity: h, isResolvedFromDuration: m } = Zs({
544
- ...n,
545
- velocity: -/* @__PURE__ */ R(n.velocity || 0)
546
- }), y = h || 0, b = c / (2 * Math.sqrt(u * l)), v = a - r, T = /* @__PURE__ */ R(Math.sqrt(u / l)), A = Math.abs(v) < 5;
547
- s || (s = A ? M.restSpeed.granular : M.restSpeed.default), i || (i = A ? M.restDelta.granular : M.restDelta.default);
548
- let w;
549
- if (b < 1) {
550
- const p = Ne(T, b);
551
- w = (V) => {
552
- const C = Math.exp(-b * T * V);
553
- return a - C * ((y + b * T * v) / p * Math.sin(p * V) + v * Math.cos(p * V));
554
- };
555
- } else if (b === 1)
556
- w = (p) => a - Math.exp(-T * p) * (v + (y + T * v) * p);
557
- else {
558
- const p = T * Math.sqrt(b * b - 1);
559
- w = (V) => {
560
- const C = Math.exp(-b * T * V), g = Math.min(p * V, 300);
561
- return a - C * ((y + b * T * v) * Math.sinh(g) + p * v * Math.cosh(g)) / p;
562
- };
563
- }
564
- const S = {
565
- calculatedDuration: m && f || null,
566
- next: (p) => {
567
- const V = w(p);
568
- if (m)
569
- o.done = p >= f;
570
- else {
571
- let C = p === 0 ? y : 0;
572
- b < 1 && (C = p === 0 ? /* @__PURE__ */ O(y) : An(w, p, V));
573
- const g = Math.abs(C) <= s, x = Math.abs(a - V) <= i;
574
- o.done = g && x;
575
- }
576
- return o.value = o.done ? a : V, o;
577
- },
578
- toString: () => {
579
- const p = Math.min(st(S), Se), V = Sn((C) => S.next(p * C).value, p, 30);
580
- return p + "ms " + V;
581
- },
582
- toTransition: () => {
583
- }
584
- };
585
- return S;
586
- }
587
- H.applyToOptions = (e) => {
588
- const t = xn(e, 100, H);
589
- return e.ease = t.ease, e.duration = /* @__PURE__ */ O(t.duration), e.type = "keyframes", e;
590
- };
591
- function Ie({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: a, min: o, max: u, restDelta: c = 0.5, restSpeed: l }) {
592
- const f = e[0], h = {
593
- done: !1,
594
- value: f
595
- }, m = (g) => o !== void 0 && g < o || u !== void 0 && g > u, y = (g) => o === void 0 ? u : u === void 0 || Math.abs(o - g) < Math.abs(u - g) ? o : u;
596
- let b = n * t;
597
- const v = f + b, T = a === void 0 ? v : a(v);
598
- T !== v && (b = T - f);
599
- const A = (g) => -b * Math.exp(-g / s), w = (g) => T + A(g), S = (g) => {
600
- const x = A(g), E = w(g);
601
- h.done = Math.abs(x) <= c, h.value = h.done ? T : E;
602
- };
603
- let p, V;
604
- const C = (g) => {
605
- m(h.value) && (p = g, V = H({
606
- keyframes: [h.value, y(h.value)],
607
- velocity: An(w, g, h.value),
608
- // TODO: This should be passing * 1000
609
- damping: i,
610
- stiffness: r,
611
- restDelta: c,
612
- restSpeed: l
613
- }));
614
- };
615
- return C(0), {
616
- calculatedDuration: null,
617
- next: (g) => {
618
- let x = !1;
619
- return !V && p === void 0 && (x = !0, S(g), C(g)), p !== void 0 && g >= p ? V.next(g - p) : (!x && S(g), h);
620
- }
621
- };
622
- }
623
- function Js(e, t, n) {
624
- const s = [], i = n || K.mix || wn, r = e.length - 1;
625
- for (let a = 0; a < r; a++) {
626
- let o = i(e[a], e[a + 1]);
627
- if (t) {
628
- const u = Array.isArray(t) ? t[a] || Z : t;
629
- o = qe(u, o);
630
- }
631
- s.push(o);
632
- }
633
- return s;
634
- }
635
- function Qs(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
636
- const r = e.length;
637
- if (I(r === t.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
638
- return () => t[0];
639
- if (r === 2 && t[0] === t[1])
640
- return () => t[1];
641
- const a = e[0] === e[1];
642
- e[0] > e[r - 1] && (e = [...e].reverse(), t = [...t].reverse());
643
- const o = Js(t, s, i), u = o.length, c = (l) => {
644
- if (a && l < e[0])
645
- return t[0];
646
- let f = 0;
647
- if (u > 1)
648
- for (; f < e.length - 2 && !(l < e[f + 1]); f++)
649
- ;
650
- const h = /* @__PURE__ */ He(e[f], e[f + 1], l);
651
- return o[f](h);
652
- };
653
- return n ? (l) => c(Y(e[0], e[r - 1], l)) : c;
654
- }
655
- function Mn(e, t) {
656
- const n = e[e.length - 1];
657
- for (let s = 1; s <= t; s++) {
658
- const i = /* @__PURE__ */ He(0, t, s);
659
- e.push(me(n, 1, i));
660
- }
661
- }
662
- function Cn(e) {
663
- const t = [0];
664
- return Mn(t, e.length - 1), t;
665
- }
666
- function ei(e, t) {
667
- return e.map((n) => n * t);
668
- }
669
- function ti(e, t) {
670
- return e.map(() => t || un).splice(0, e.length - 1);
671
- }
672
- function X({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
673
- const i = cn(s) ? s.map(At) : At(s), r = {
674
- done: !1,
675
- value: t[0]
676
- }, a = ei(
677
- // Only use the provided offsets if they're the correct length
678
- // TODO Maybe we should warn here if there's a length mismatch
679
- n && n.length === t.length ? n : Cn(t),
680
- e
681
- ), o = Qs(a, t, {
682
- ease: Array.isArray(i) ? i : ti(t, i)
683
- });
684
- return {
685
- calculatedDuration: e,
686
- next: (u) => (r.value = o(u), r.done = u >= e, r)
687
- };
688
- }
689
- const ni = (e) => e !== null;
690
- function it(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
691
- const r = e.filter(ni), o = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
692
- return !o || s === void 0 ? r[o] : s;
693
- }
694
- const si = {
695
- decay: Ie,
696
- inertia: Ie,
697
- tween: X,
698
- keyframes: X,
699
- spring: H
700
- };
701
- function Dn(e) {
702
- typeof e.type == "string" && (e.type = si[e.type]);
703
- }
704
- class rt {
705
- constructor() {
706
- this.updateFinished();
707
- }
708
- get finished() {
709
- return this._finished;
710
- }
711
- updateFinished() {
712
- this._finished = new Promise((t) => {
713
- this.resolve = t;
714
- });
715
- }
716
- notifyFinished() {
717
- this.resolve();
718
- }
719
- /**
720
- * Allows the animation to be awaited.
721
- *
722
- * @deprecated Use `finished` instead.
723
- */
724
- then(t, n) {
725
- return this.finished.then(t, n);
726
- }
727
- }
728
- const ii = (e) => e / 100;
729
- class at extends rt {
730
- constructor(t) {
731
- super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
732
- const { motionValue: n } = this.options;
733
- n && n.updatedAt !== P.now() && this.tick(P.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
734
- }, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause();
735
- }
736
- initAnimation() {
737
- const { options: t } = this;
738
- Dn(t);
739
- const { type: n = X, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: a = 0 } = t;
740
- let { keyframes: o } = t;
741
- const u = n || X;
742
- process.env.NODE_ENV !== "production" && u !== X && I(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), u !== X && typeof o[0] != "number" && (this.mixKeyframes = qe(ii, wn(o[0], o[1])), o = [0, 100]);
743
- const c = u({ ...t, keyframes: o });
744
- r === "mirror" && (this.mirroredGenerator = u({
745
- ...t,
746
- keyframes: [...o].reverse(),
747
- velocity: -a
748
- })), c.calculatedDuration === null && (c.calculatedDuration = st(c));
749
- const { calculatedDuration: l } = c;
750
- this.calculatedDuration = l, this.resolvedDuration = l + i, this.totalDuration = this.resolvedDuration * (s + 1) - i, this.generator = c;
751
- }
752
- updateTime(t) {
753
- const n = Math.round(t - this.startTime) * this.playbackSpeed;
754
- this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = n;
755
- }
756
- tick(t, n = !1) {
757
- const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: a, resolvedDuration: o, calculatedDuration: u } = this;
758
- if (this.startTime === null)
759
- return s.next(0);
760
- const { delay: c = 0, keyframes: l, repeat: f, repeatType: h, repeatDelay: m, type: y, onUpdate: b, finalKeyframe: v } = this.options;
761
- this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
762
- const T = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), A = this.playbackSpeed >= 0 ? T < 0 : T > i;
763
- this.currentTime = Math.max(T, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
764
- let w = this.currentTime, S = s;
765
- if (f) {
766
- const g = Math.min(this.currentTime, i) / o;
767
- let x = Math.floor(g), E = g % 1;
768
- !E && g >= 1 && (E = 1), E === 1 && x--, x = Math.min(x, f + 1), !!(x % 2) && (h === "reverse" ? (E = 1 - E, m && (E -= m / o)) : h === "mirror" && (S = a)), w = Y(0, 1, E) * o;
54
+ return /* @__PURE__ */ s(
55
+ W,
56
+ {
57
+ scope: a,
58
+ ...R,
59
+ children: Z(u) ? u(R) : l
769
60
  }
770
- const p = A ? { done: !1, value: l[0] } : S.next(w);
771
- r && (p.value = r(p.value));
772
- let { done: V } = p;
773
- !A && u !== null && (V = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
774
- const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && V);
775
- return C && y !== Ie && (p.value = it(l, this.options, v, this.speed)), b && b(p.value), C && this.finish(), p;
776
- }
777
- /**
778
- * Allows the returned animation to be awaited or promise-chained. Currently
779
- * resolves when the animation finishes at all but in a future update could/should
780
- * reject if its cancels.
781
- */
782
- then(t, n) {
783
- return this.finished.then(t, n);
784
- }
785
- get duration() {
786
- return /* @__PURE__ */ R(this.calculatedDuration);
787
- }
788
- get iterationDuration() {
789
- const { delay: t = 0 } = this.options || {};
790
- return this.duration + /* @__PURE__ */ R(t);
791
- }
792
- get time() {
793
- return /* @__PURE__ */ R(this.currentTime);
794
- }
795
- set time(t) {
796
- t = /* @__PURE__ */ O(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), this.driver?.start(!1);
797
- }
798
- get speed() {
799
- return this.playbackSpeed;
800
- }
801
- set speed(t) {
802
- this.updateTime(P.now());
803
- const n = this.playbackSpeed !== t;
804
- this.playbackSpeed = t, n && (this.time = /* @__PURE__ */ R(this.currentTime));
805
- }
806
- play() {
807
- if (this.isStopped)
808
- return;
809
- const { driver: t = Us, startTime: n } = this.options;
810
- this.driver || (this.driver = t((i) => this.tick(i))), this.options.onPlay?.();
811
- const s = this.driver.now();
812
- this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
813
- }
814
- pause() {
815
- this.state = "paused", this.updateTime(P.now()), this.holdTime = this.currentTime;
816
- }
817
- complete() {
818
- this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
819
- }
820
- finish() {
821
- this.notifyFinished(), this.teardown(), this.state = "finished", this.options.onComplete?.();
822
- }
823
- cancel() {
824
- this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
825
- }
826
- teardown() {
827
- this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null;
828
- }
829
- stopDriver() {
830
- this.driver && (this.driver.stop(), this.driver = void 0);
831
- }
832
- sample(t) {
833
- return this.startTime = 0, this.tick(t, !0);
834
- }
835
- attachTimeline(t) {
836
- return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), t.observe(this);
837
- }
838
- }
839
- function ri(e) {
840
- for (let t = 1; t < e.length; t++)
841
- e[t] ?? (e[t] = e[t - 1]);
842
- }
843
- const _ = (e) => e * 180 / Math.PI, ke = (e) => {
844
- const t = _(Math.atan2(e[1], e[0]));
845
- return Ke(t);
846
- }, ai = {
847
- x: 4,
848
- y: 5,
849
- translateX: 4,
850
- translateY: 5,
851
- scaleX: 0,
852
- scaleY: 3,
853
- scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
854
- rotate: ke,
855
- rotateZ: ke,
856
- skewX: (e) => _(Math.atan(e[1])),
857
- skewY: (e) => _(Math.atan(e[2])),
858
- skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
859
- }, Ke = (e) => (e = e % 360, e < 0 && (e += 360), e), Pt = ke, Rt = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Ot = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), oi = {
860
- x: 12,
861
- y: 13,
862
- z: 14,
863
- translateX: 12,
864
- translateY: 13,
865
- translateZ: 14,
866
- scaleX: Rt,
867
- scaleY: Ot,
868
- scale: (e) => (Rt(e) + Ot(e)) / 2,
869
- rotateX: (e) => Ke(_(Math.atan2(e[6], e[5]))),
870
- rotateY: (e) => Ke(_(Math.atan2(-e[2], e[0]))),
871
- rotateZ: Pt,
872
- rotate: Pt,
873
- skewX: (e) => _(Math.atan(e[4])),
874
- skewY: (e) => _(Math.atan(e[1])),
875
- skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
876
- };
877
- function Be(e) {
878
- return e.includes("scale") ? 1 : 0;
879
- }
880
- function $e(e, t) {
881
- if (!e || e === "none")
882
- return Be(t);
883
- const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
884
- let s, i;
885
- if (n)
886
- s = oi, i = n;
887
- else {
888
- const o = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
889
- s = ai, i = o;
890
- }
891
- if (!i)
892
- return Be(t);
893
- const r = s[t], a = i[1].split(",").map(ui);
894
- return typeof r == "function" ? r(a) : a[r];
895
- }
896
- const li = (e, t) => {
897
- const { transform: n = "none" } = getComputedStyle(e);
898
- return $e(n, t);
899
- };
900
- function ui(e) {
901
- return parseFloat(e.trim());
902
- }
903
- const ee = [
904
- "transformPerspective",
905
- "x",
906
- "y",
907
- "z",
908
- "translateX",
909
- "translateY",
910
- "translateZ",
911
- "scale",
912
- "scaleX",
913
- "scaleY",
914
- "rotate",
915
- "rotateX",
916
- "rotateY",
917
- "rotateZ",
918
- "skew",
919
- "skewX",
920
- "skewY"
921
- ], te = new Set(ee), Nt = (e) => e === J || e === d, ci = /* @__PURE__ */ new Set(["x", "y", "z"]), fi = ee.filter((e) => !ci.has(e));
922
- function hi(e) {
923
- const t = [];
924
- return fi.forEach((n) => {
925
- const s = e.getValue(n);
926
- s !== void 0 && (t.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
927
- }), t;
928
- }
929
- const U = {
930
- // Dimensions
931
- width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
932
- height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
933
- top: (e, { top: t }) => parseFloat(t),
934
- left: (e, { left: t }) => parseFloat(t),
935
- bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
936
- right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
937
- // Transform
938
- x: (e, { transform: t }) => $e(t, "x"),
939
- y: (e, { transform: t }) => $e(t, "y")
940
- };
941
- U.translateX = U.x;
942
- U.translateY = U.y;
943
- const G = /* @__PURE__ */ new Set();
944
- let Le = !1, We = !1, je = !1;
945
- function Fn() {
946
- if (We) {
947
- const e = Array.from(G).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
948
- t.forEach((s) => {
949
- const i = hi(s);
950
- i.length && (n.set(s, i), s.render());
951
- }), e.forEach((s) => s.measureInitialState()), t.forEach((s) => {
952
- s.render();
953
- const i = n.get(s);
954
- i && i.forEach(([r, a]) => {
955
- s.getValue(r)?.set(a);
956
- });
957
- }), e.forEach((s) => s.measureEndState()), e.forEach((s) => {
958
- s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
959
- });
960
- }
961
- We = !1, Le = !1, G.forEach((e) => e.complete(je)), G.clear();
962
- }
963
- function En() {
964
- G.forEach((e) => {
965
- e.readKeyframes(), e.needsMeasurement && (We = !0);
966
- });
967
- }
968
- function di() {
969
- je = !0, En(), Fn(), je = !1;
61
+ );
970
62
  }
971
- class ot {
972
- constructor(t, n, s, i, r, a = !1) {
973
- this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = i, this.element = r, this.isAsync = a;
974
- }
975
- scheduleResolve() {
976
- this.state = "scheduled", this.isAsync ? (G.add(this), Le || (Le = !0, B.read(En), B.resolveKeyframes(Fn))) : (this.readKeyframes(), this.complete());
977
- }
978
- readKeyframes() {
979
- const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
980
- if (t[0] === null) {
981
- const r = i?.get(), a = t[t.length - 1];
982
- if (r !== void 0)
983
- t[0] = r;
984
- else if (s && n) {
985
- const o = s.readValue(n, a);
986
- o != null && (t[0] = o);
63
+ var w = "CheckboxTrigger", z = i.forwardRef(
64
+ ({ __scopeCheckbox: r, onKeyDown: a, onClick: t, ...l }, n) => {
65
+ const {
66
+ control: e,
67
+ value: f,
68
+ disabled: b,
69
+ checked: d,
70
+ required: h,
71
+ setControl: k,
72
+ setChecked: u,
73
+ hasConsumerStoppedPropagationRef: p,
74
+ isFormControl: x,
75
+ bubbleInput: C
76
+ } = _(w, r), v = S(n, k), g = i.useRef(d);
77
+ return i.useEffect(() => {
78
+ const o = e?.form;
79
+ if (o) {
80
+ const c = () => u(g.current);
81
+ return o.addEventListener("reset", c), () => o.removeEventListener("reset", c);
987
82
  }
988
- t[0] === void 0 && (t[0] = a), i && r === void 0 && i.set(t[0]);
989
- }
990
- ri(t);
991
- }
992
- setFinalKeyframe() {
993
- }
994
- measureInitialState() {
995
- }
996
- renderEndStyles() {
997
- }
998
- measureEndState() {
999
- }
1000
- complete(t = !1) {
1001
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), G.delete(this);
1002
- }
1003
- cancel() {
1004
- this.state === "scheduled" && (G.delete(this), this.state = "pending");
1005
- }
1006
- resume() {
1007
- this.state === "pending" && this.scheduleResolve();
1008
- }
1009
- }
1010
- const pi = (e) => e.startsWith("--");
1011
- function mi(e, t, n) {
1012
- pi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1013
- }
1014
- const gi = /* @__PURE__ */ Xe(() => window.ScrollTimeline !== void 0), yi = {};
1015
- function bi(e, t) {
1016
- const n = /* @__PURE__ */ Xe(e);
1017
- return () => yi[t] ?? n();
1018
- }
1019
- const Pn = /* @__PURE__ */ bi(() => {
1020
- try {
1021
- document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1022
- } catch {
1023
- return !1;
1024
- }
1025
- return !0;
1026
- }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, It = {
1027
- linear: "linear",
1028
- ease: "ease",
1029
- easeIn: "ease-in",
1030
- easeOut: "ease-out",
1031
- easeInOut: "ease-in-out",
1032
- circIn: /* @__PURE__ */ ae([0, 0.65, 0.55, 1]),
1033
- circOut: /* @__PURE__ */ ae([0.55, 0, 1, 0.45]),
1034
- backIn: /* @__PURE__ */ ae([0.31, 0.01, 0.66, -0.59]),
1035
- backOut: /* @__PURE__ */ ae([0.33, 1.53, 0.69, 0.99])
1036
- };
1037
- function Rn(e, t) {
1038
- if (e)
1039
- return typeof e == "function" ? Pn() ? Sn(e, t) : "ease-out" : hn(e) ? ae(e) : Array.isArray(e) ? e.map((n) => Rn(n, t) || It.easeOut) : It[e];
1040
- }
1041
- function Ti(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: a = "loop", ease: o = "easeOut", times: u } = {}, c = void 0) {
1042
- const l = {
1043
- [t]: n
1044
- };
1045
- u && (l.offset = u);
1046
- const f = Rn(o, i);
1047
- Array.isArray(f) && (l.easing = f);
1048
- const h = {
1049
- delay: s,
1050
- duration: i,
1051
- easing: Array.isArray(f) ? "linear" : f,
1052
- fill: "both",
1053
- iterations: r + 1,
1054
- direction: a === "reverse" ? "alternate" : "normal"
1055
- };
1056
- return c && (h.pseudoElement = c), e.animate(l, h);
1057
- }
1058
- function lt(e) {
1059
- return typeof e == "function" && "applyToOptions" in e;
1060
- }
1061
- function vi({ type: e, ...t }) {
1062
- return lt(e) && Pn() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1063
- }
1064
- class Vi extends rt {
1065
- constructor(t) {
1066
- if (super(), this.finishedTime = null, this.isStopped = !1, !t)
1067
- return;
1068
- const { element: n, name: s, keyframes: i, pseudoElement: r, allowFlatten: a = !1, finalKeyframe: o, onComplete: u } = t;
1069
- this.isPseudoElement = !!r, this.allowFlatten = a, this.options = t, I(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1070
- const c = vi(t);
1071
- this.animation = Ti(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1072
- if (this.finishedTime = this.time, !r) {
1073
- const l = it(i, this.options, o, this.speed);
1074
- this.updateMotionValue ? this.updateMotionValue(l) : mi(n, s, l), this.animation.cancel();
83
+ }, [e, u]), /* @__PURE__ */ s(
84
+ P.button,
85
+ {
86
+ type: "button",
87
+ role: "checkbox",
88
+ "aria-checked": m(d) ? "mixed" : d,
89
+ "aria-required": h,
90
+ "data-state": j(d),
91
+ "data-disabled": b ? "" : void 0,
92
+ disabled: b,
93
+ value: f,
94
+ ...l,
95
+ ref: v,
96
+ onKeyDown: N(a, (o) => {
97
+ o.key === "Enter" && o.preventDefault();
98
+ }),
99
+ onClick: N(t, (o) => {
100
+ u((c) => m(c) ? !0 : !c), C && x && (p.current = o.isPropagationStopped(), p.current || o.stopPropagation());
101
+ })
1075
102
  }
1076
- u?.(), this.notifyFinished();
1077
- };
1078
- }
1079
- play() {
1080
- this.isStopped || (this.animation.play(), this.state === "finished" && this.updateFinished());
1081
- }
1082
- pause() {
1083
- this.animation.pause();
1084
- }
1085
- complete() {
1086
- this.animation.finish?.();
1087
- }
1088
- cancel() {
1089
- try {
1090
- this.animation.cancel();
1091
- } catch {
1092
- }
1093
- }
1094
- stop() {
1095
- if (this.isStopped)
1096
- return;
1097
- this.isStopped = !0;
1098
- const { state: t } = this;
1099
- t === "idle" || t === "finished" || (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
1100
- }
1101
- /**
1102
- * WAAPI doesn't natively have any interruption capabilities.
1103
- *
1104
- * In this method, we commit styles back to the DOM before cancelling
1105
- * the animation.
1106
- *
1107
- * This is designed to be overridden by NativeAnimationExtended, which
1108
- * will create a renderless JS animation and sample it twice to calculate
1109
- * its current value, "previous" value, and therefore allow
1110
- * Motion to also correctly calculate velocity for any subsequent animation
1111
- * while deferring the commit until the next animation frame.
1112
- */
1113
- commitStyles() {
1114
- this.isPseudoElement || this.animation.commitStyles?.();
1115
- }
1116
- get duration() {
1117
- const t = this.animation.effect?.getComputedTiming?.().duration || 0;
1118
- return /* @__PURE__ */ R(Number(t));
1119
- }
1120
- get iterationDuration() {
1121
- const { delay: t = 0 } = this.options || {};
1122
- return this.duration + /* @__PURE__ */ R(t);
1123
- }
1124
- get time() {
1125
- return /* @__PURE__ */ R(Number(this.animation.currentTime) || 0);
1126
- }
1127
- set time(t) {
1128
- this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ O(t);
103
+ );
1129
104
  }
1130
- /**
1131
- * The playback speed of the animation.
1132
- * 1 = normal speed, 2 = double speed, 0.5 = half speed.
1133
- */
1134
- get speed() {
1135
- return this.animation.playbackRate;
1136
- }
1137
- set speed(t) {
1138
- t < 0 && (this.finishedTime = null), this.animation.playbackRate = t;
1139
- }
1140
- get state() {
1141
- return this.finishedTime !== null ? "finished" : this.animation.playState;
1142
- }
1143
- get startTime() {
1144
- return Number(this.animation.startTime);
1145
- }
1146
- set startTime(t) {
1147
- this.animation.startTime = t;
1148
- }
1149
- /**
1150
- * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1151
- */
1152
- attachTimeline({ timeline: t, observe: n }) {
1153
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && gi() ? (this.animation.timeline = t, Z) : n(this);
1154
- }
1155
- }
1156
- const On = {
1157
- anticipate: on,
1158
- backInOut: an,
1159
- circInOut: ln
1160
- };
1161
- function wi(e) {
1162
- return e in On;
1163
- }
1164
- function Si(e) {
1165
- typeof e.ease == "string" && wi(e.ease) && (e.ease = On[e.ease]);
1166
- }
1167
- const kt = 10;
1168
- class xi extends Vi {
1169
- constructor(t) {
1170
- Si(t), Dn(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
1171
- }
1172
- /**
1173
- * WAAPI doesn't natively have any interruption capabilities.
1174
- *
1175
- * Rather than read commited styles back out of the DOM, we can
1176
- * create a renderless JS animation and sample it twice to calculate
1177
- * its current value, "previous" value, and therefore allow
1178
- * Motion to calculate velocity for any subsequent animation.
1179
- */
1180
- updateMotionValue(t) {
1181
- const { motionValue: n, onUpdate: s, onComplete: i, element: r, ...a } = this.options;
1182
- if (!n)
1183
- return;
1184
- if (t !== void 0) {
1185
- n.set(t);
1186
- return;
1187
- }
1188
- const o = new at({
1189
- ...a,
1190
- autoplay: !1
1191
- }), u = /* @__PURE__ */ O(this.finishedTime ?? this.time);
1192
- n.setWithVelocity(o.sample(u - kt).value, o.sample(u).value, kt), o.stop();
1193
- }
1194
- }
1195
- const Kt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1196
- (Q.test(e) || e === "0") && // And it contains numbers and/or colors
1197
- !e.startsWith("url("));
1198
- function Ai(e) {
1199
- const t = e[0];
1200
- if (e.length === 1)
1201
- return !0;
1202
- for (let n = 0; n < e.length; n++)
1203
- if (e[n] !== t)
1204
- return !0;
1205
- }
1206
- function Mi(e, t, n, s) {
1207
- const i = e[0];
1208
- if (i === null)
1209
- return !1;
1210
- if (t === "display" || t === "visibility")
1211
- return !0;
1212
- const r = e[e.length - 1], a = Kt(i, t), o = Kt(r, t);
1213
- return he(a === o, `You are trying to animate ${t} from "${i}" to "${r}". "${a ? r : i}" is not an animatable value.`, "value-not-animatable"), !a || !o ? !1 : Ai(e) || (n === "spring" || lt(n)) && s;
1214
- }
1215
- function _e(e) {
1216
- e.duration = 0, e.type = "keyframes";
1217
- }
1218
- const Ci = /* @__PURE__ */ new Set([
1219
- "opacity",
1220
- "clipPath",
1221
- "filter",
1222
- "transform"
1223
- // TODO: Could be re-enabled now we have support for linear() easing
1224
- // "background-color"
1225
- ]), Di = /* @__PURE__ */ Xe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1226
- function Fi(e) {
1227
- const { motionValue: t, name: n, repeatDelay: s, repeatType: i, damping: r, type: a } = e;
1228
- if (!(t?.owner?.current instanceof HTMLElement))
1229
- return !1;
1230
- const { onUpdate: u, transformTemplate: c } = t.owner.getProps();
1231
- return Di() && n && Ci.has(n) && (n !== "transform" || !c) && /**
1232
- * If we're outputting values to onUpdate then we can't use WAAPI as there's
1233
- * no way to read the value from WAAPI every frame.
1234
- */
1235
- !u && !s && i !== "mirror" && r !== 0 && a !== "inertia";
1236
- }
1237
- const Ei = 40;
1238
- class Pi extends rt {
1239
- constructor({ autoplay: t = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: a = "loop", keyframes: o, name: u, motionValue: c, element: l, ...f }) {
1240
- super(), this.stop = () => {
1241
- this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
1242
- }, this.createdAt = P.now();
1243
- const h = {
1244
- autoplay: t,
1245
- delay: n,
1246
- type: s,
1247
- repeat: i,
1248
- repeatDelay: r,
1249
- repeatType: a,
1250
- name: u,
1251
- motionValue: c,
1252
- element: l,
1253
- ...f
1254
- }, m = l?.KeyframeResolver || ot;
1255
- this.keyframeResolver = new m(o, (y, b, v) => this.onKeyframesResolved(y, b, h, !v), u, c, l), this.keyframeResolver?.scheduleResolve();
1256
- }
1257
- onKeyframesResolved(t, n, s, i) {
1258
- this.keyframeResolver = void 0;
1259
- const { name: r, type: a, velocity: o, delay: u, isHandoff: c, onUpdate: l } = s;
1260
- this.resolvedAt = P.now(), Mi(t, r, a, o) || ((K.instantAnimations || !u) && l?.(it(t, s, n)), t[0] = t[t.length - 1], _e(s), s.repeat = 0);
1261
- const h = {
1262
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Ei ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1263
- finalKeyframe: n,
1264
- ...s,
1265
- keyframes: t
1266
- }, m = !c && Fi(h) ? new xi({
1267
- ...h,
1268
- element: h.motionValue.owner.current
1269
- }) : new at(h);
1270
- m.finished.then(() => this.notifyFinished()).catch(Z), this.pendingTimeline && (this.stopTimeline = m.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = m;
1271
- }
1272
- get finished() {
1273
- return this._animation ? this.animation.finished : this._finished;
1274
- }
1275
- then(t, n) {
1276
- return this.finished.finally(t).then(() => {
1277
- });
1278
- }
1279
- get animation() {
1280
- return this._animation || (this.keyframeResolver?.resume(), di()), this._animation;
1281
- }
1282
- get duration() {
1283
- return this.animation.duration;
1284
- }
1285
- get iterationDuration() {
1286
- return this.animation.iterationDuration;
1287
- }
1288
- get time() {
1289
- return this.animation.time;
1290
- }
1291
- set time(t) {
1292
- this.animation.time = t;
1293
- }
1294
- get speed() {
1295
- return this.animation.speed;
1296
- }
1297
- get state() {
1298
- return this.animation.state;
1299
- }
1300
- set speed(t) {
1301
- this.animation.speed = t;
1302
- }
1303
- get startTime() {
1304
- return this.animation.startTime;
1305
- }
1306
- attachTimeline(t) {
1307
- return this._animation ? this.stopTimeline = this.animation.attachTimeline(t) : this.pendingTimeline = t, () => this.stop();
1308
- }
1309
- play() {
1310
- this.animation.play();
1311
- }
1312
- pause() {
1313
- this.animation.pause();
1314
- }
1315
- complete() {
1316
- this.animation.complete();
1317
- }
1318
- cancel() {
1319
- this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1320
- }
1321
- }
1322
- class Ri {
1323
- constructor(t) {
1324
- this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
1325
- }
1326
- get finished() {
1327
- return Promise.all(this.animations.map((t) => t.finished));
1328
- }
1329
- /**
1330
- * TODO: Filter out cancelled or stopped animations before returning
1331
- */
1332
- getAll(t) {
1333
- return this.animations[0][t];
1334
- }
1335
- setAll(t, n) {
1336
- for (let s = 0; s < this.animations.length; s++)
1337
- this.animations[s][t] = n;
1338
- }
1339
- attachTimeline(t) {
1340
- const n = this.animations.map((s) => s.attachTimeline(t));
1341
- return () => {
1342
- n.forEach((s, i) => {
1343
- s && s(), this.animations[i].stop();
1344
- });
1345
- };
1346
- }
1347
- get time() {
1348
- return this.getAll("time");
1349
- }
1350
- set time(t) {
1351
- this.setAll("time", t);
1352
- }
1353
- get speed() {
1354
- return this.getAll("speed");
1355
- }
1356
- set speed(t) {
1357
- this.setAll("speed", t);
1358
- }
1359
- get state() {
1360
- return this.getAll("state");
1361
- }
1362
- get startTime() {
1363
- return this.getAll("startTime");
1364
- }
1365
- get duration() {
1366
- return Bt(this.animations, "duration");
1367
- }
1368
- get iterationDuration() {
1369
- return Bt(this.animations, "iterationDuration");
1370
- }
1371
- runAll(t) {
1372
- this.animations.forEach((n) => n[t]());
1373
- }
1374
- play() {
1375
- this.runAll("play");
1376
- }
1377
- pause() {
1378
- this.runAll("pause");
1379
- }
1380
- cancel() {
1381
- this.runAll("cancel");
1382
- }
1383
- complete() {
1384
- this.runAll("complete");
1385
- }
1386
- }
1387
- function Bt(e, t) {
1388
- let n = 0;
1389
- for (let s = 0; s < e.length; s++) {
1390
- const i = e[s][t];
1391
- i !== null && i > n && (n = i);
1392
- }
1393
- return n;
1394
- }
1395
- class Oi extends Ri {
1396
- then(t, n) {
1397
- return this.finished.finally(t).then(() => {
1398
- });
1399
- }
1400
- }
1401
- const Ni = (
1402
- // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1403
- /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1404
105
  );
1405
- function Ii(e) {
1406
- const t = Ni.exec(e);
1407
- if (!t)
1408
- return [,];
1409
- const [, n, s, i] = t;
1410
- return [`--${n ?? s}`, i];
1411
- }
1412
- const ki = 4;
1413
- function Nn(e, t, n = 1) {
1414
- I(n <= ki, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1415
- const [s, i] = Ii(e);
1416
- if (!s)
1417
- return;
1418
- const r = window.getComputedStyle(t).getPropertyValue(s);
1419
- if (r) {
1420
- const a = r.trim();
1421
- return Ht(a) ? parseFloat(a) : a;
1422
- }
1423
- return Qe(i) ? Nn(i, t, n + 1) : i;
1424
- }
1425
- function In(e, t) {
1426
- return e?.[t] ?? e?.default ?? e;
1427
- }
1428
- const kn = /* @__PURE__ */ new Set([
1429
- "width",
1430
- "height",
1431
- "top",
1432
- "left",
1433
- "right",
1434
- "bottom",
1435
- ...ee
1436
- ]), Ki = {
1437
- test: (e) => e === "auto",
1438
- parse: (e) => e
1439
- }, Kn = (e) => (t) => t.test(e), Bn = [J, d, q, L, Ds, Cs, Ki], $t = (e) => Bn.find(Kn(e));
1440
- function Bi(e) {
1441
- return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Zt(e) : !0;
1442
- }
1443
- const $i = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1444
- function Li(e) {
1445
- const [t, n] = e.slice(0, -1).split("(");
1446
- if (t === "drop-shadow")
1447
- return e;
1448
- const [s] = n.match(et) || [];
1449
- if (!s)
1450
- return e;
1451
- const i = n.replace(s, "");
1452
- let r = $i.has(t) ? 1 : 0;
1453
- return s !== n && (r *= 100), t + "(" + r + i + ")";
1454
- }
1455
- const Wi = /\b([a-z-]*)\(.*?\)/gu, Ue = {
1456
- ...Q,
1457
- getAnimatableNone: (e) => {
1458
- const t = e.match(Wi);
1459
- return t ? t.map(Li).join(" ") : e;
1460
- }
1461
- }, Lt = {
1462
- ...J,
1463
- transform: Math.round
1464
- }, ji = {
1465
- rotate: L,
1466
- rotateX: L,
1467
- rotateY: L,
1468
- rotateZ: L,
1469
- scale: Te,
1470
- scaleX: Te,
1471
- scaleY: Te,
1472
- scaleZ: Te,
1473
- skew: L,
1474
- skewX: L,
1475
- skewY: L,
1476
- distance: d,
1477
- translateX: d,
1478
- translateY: d,
1479
- translateZ: d,
1480
- x: d,
1481
- y: d,
1482
- z: d,
1483
- perspective: d,
1484
- transformPerspective: d,
1485
- opacity: le,
1486
- originX: Mt,
1487
- originY: Mt,
1488
- originZ: d
1489
- }, ut = {
1490
- // Border props
1491
- borderWidth: d,
1492
- borderTopWidth: d,
1493
- borderRightWidth: d,
1494
- borderBottomWidth: d,
1495
- borderLeftWidth: d,
1496
- borderRadius: d,
1497
- radius: d,
1498
- borderTopLeftRadius: d,
1499
- borderTopRightRadius: d,
1500
- borderBottomRightRadius: d,
1501
- borderBottomLeftRadius: d,
1502
- // Positioning props
1503
- width: d,
1504
- maxWidth: d,
1505
- height: d,
1506
- maxHeight: d,
1507
- top: d,
1508
- right: d,
1509
- bottom: d,
1510
- left: d,
1511
- // Spacing props
1512
- padding: d,
1513
- paddingTop: d,
1514
- paddingRight: d,
1515
- paddingBottom: d,
1516
- paddingLeft: d,
1517
- margin: d,
1518
- marginTop: d,
1519
- marginRight: d,
1520
- marginBottom: d,
1521
- marginLeft: d,
1522
- // Misc
1523
- backgroundPositionX: d,
1524
- backgroundPositionY: d,
1525
- ...ji,
1526
- zIndex: Lt,
1527
- // SVG
1528
- fillOpacity: le,
1529
- strokeOpacity: le,
1530
- numOctaves: Lt
1531
- }, _i = {
1532
- ...ut,
1533
- // Color props
1534
- color: D,
1535
- backgroundColor: D,
1536
- outlineColor: D,
1537
- fill: D,
1538
- stroke: D,
1539
- // Border props
1540
- borderColor: D,
1541
- borderTopColor: D,
1542
- borderRightColor: D,
1543
- borderBottomColor: D,
1544
- borderLeftColor: D,
1545
- filter: Ue,
1546
- WebkitFilter: Ue
1547
- }, $n = (e) => _i[e];
1548
- function Ln(e, t) {
1549
- let n = $n(e);
1550
- return n !== Ue && (n = Q), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1551
- }
1552
- const Ui = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1553
- function Gi(e, t, n) {
1554
- let s = 0, i;
1555
- for (; s < e.length && !i; ) {
1556
- const r = e[s];
1557
- typeof r == "string" && !Ui.has(r) && ue(r).values.length && (i = e[s]), s++;
1558
- }
1559
- if (i && n)
1560
- for (const r of t)
1561
- e[r] = Ln(n, i);
1562
- }
1563
- class Yi extends ot {
1564
- constructor(t, n, s, i, r) {
1565
- super(t, n, s, i, r, !0);
1566
- }
1567
- readKeyframes() {
1568
- const { unresolvedKeyframes: t, element: n, name: s } = this;
1569
- if (!n || !n.current)
1570
- return;
1571
- super.readKeyframes();
1572
- for (let u = 0; u < t.length; u++) {
1573
- let c = t[u];
1574
- if (typeof c == "string" && (c = c.trim(), Qe(c))) {
1575
- const l = Nn(c, n.current);
1576
- l !== void 0 && (t[u] = l), u === t.length - 1 && (this.finalKeyframe = c);
1577
- }
1578
- }
1579
- if (this.resolveNoneKeyframes(), !kn.has(s) || t.length !== 2)
1580
- return;
1581
- const [i, r] = t, a = $t(i), o = $t(r);
1582
- if (a !== o)
1583
- if (Nt(a) && Nt(o))
1584
- for (let u = 0; u < t.length; u++) {
1585
- const c = t[u];
1586
- typeof c == "string" && (t[u] = parseFloat(c));
1587
- }
1588
- else U[s] && (this.needsMeasurement = !0);
1589
- }
1590
- resolveNoneKeyframes() {
1591
- const { unresolvedKeyframes: t, name: n } = this, s = [];
1592
- for (let i = 0; i < t.length; i++)
1593
- (t[i] === null || Bi(t[i])) && s.push(i);
1594
- s.length && Gi(t, s, n);
1595
- }
1596
- measureInitialState() {
1597
- const { element: t, unresolvedKeyframes: n, name: s } = this;
1598
- if (!t || !t.current)
1599
- return;
1600
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = U[s](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
1601
- const i = n[n.length - 1];
1602
- i !== void 0 && t.getValue(s, i).jump(i, !1);
1603
- }
1604
- measureEndState() {
1605
- const { element: t, name: n, unresolvedKeyframes: s } = this;
1606
- if (!t || !t.current)
1607
- return;
1608
- const i = t.getValue(n);
1609
- i && i.jump(this.measuredOrigin, !1);
1610
- const r = s.length - 1, a = s[r];
1611
- s[r] = U[n](t.measureViewportBox(), window.getComputedStyle(t.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([o, u]) => {
1612
- t.getValue(o).set(u);
1613
- }), this.resolveNoneKeyframes();
1614
- }
1615
- }
1616
- function zi(e, t, n) {
1617
- if (e instanceof EventTarget)
1618
- return [e];
1619
- if (typeof e == "string") {
1620
- let s = document;
1621
- t && (s = t.current);
1622
- const i = n?.[e] ?? s.querySelectorAll(e);
1623
- return i ? Array.from(i) : [];
1624
- }
1625
- return Array.from(e);
1626
- }
1627
- const Wn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Wt = 30, Xi = (e) => !isNaN(parseFloat(e));
1628
- class qi {
1629
- /**
1630
- * @param init - The initiating value
1631
- * @param config - Optional configuration options
1632
- *
1633
- * - `transformer`: A function to transform incoming values with.
1634
- */
1635
- constructor(t, n = {}) {
1636
- this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (s) => {
1637
- const i = P.now();
1638
- if (this.updatedAt !== i && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(s), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents))
1639
- for (const r of this.dependents)
1640
- r.dirty();
1641
- }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
1642
- }
1643
- setCurrent(t) {
1644
- this.current = t, this.updatedAt = P.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = Xi(this.current));
1645
- }
1646
- setPrevFrameValue(t = this.current) {
1647
- this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
1648
- }
1649
- /**
1650
- * Adds a function that will be notified when the `MotionValue` is updated.
1651
- *
1652
- * It returns a function that, when called, will cancel the subscription.
1653
- *
1654
- * When calling `onChange` inside a React component, it should be wrapped with the
1655
- * `useEffect` hook. As it returns an unsubscribe function, this should be returned
1656
- * from the `useEffect` function to ensure you don't add duplicate subscribers..
1657
- *
1658
- * ```jsx
1659
- * export const MyComponent = () => {
1660
- * const x = useMotionValue(0)
1661
- * const y = useMotionValue(0)
1662
- * const opacity = useMotionValue(1)
1663
- *
1664
- * useEffect(() => {
1665
- * function updateOpacity() {
1666
- * const maxXY = Math.max(x.get(), y.get())
1667
- * const newOpacity = transform(maxXY, [0, 100], [1, 0])
1668
- * opacity.set(newOpacity)
1669
- * }
1670
- *
1671
- * const unsubscribeX = x.on("change", updateOpacity)
1672
- * const unsubscribeY = y.on("change", updateOpacity)
1673
- *
1674
- * return () => {
1675
- * unsubscribeX()
1676
- * unsubscribeY()
1677
- * }
1678
- * }, [])
1679
- *
1680
- * return <motion.div style={{ x }} />
1681
- * }
1682
- * ```
1683
- *
1684
- * @param subscriber - A function that receives the latest value.
1685
- * @returns A function that, when called, will cancel this subscription.
1686
- *
1687
- * @deprecated
1688
- */
1689
- onChange(t) {
1690
- return process.env.NODE_ENV !== "production" && en(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
1691
- }
1692
- on(t, n) {
1693
- this.events[t] || (this.events[t] = new Jt());
1694
- const s = this.events[t].add(n);
1695
- return t === "change" ? () => {
1696
- s(), B.read(() => {
1697
- this.events.change.getSize() || this.stop();
1698
- });
1699
- } : s;
1700
- }
1701
- clearListeners() {
1702
- for (const t in this.events)
1703
- this.events[t].clear();
1704
- }
1705
- /**
1706
- * Attaches a passive effect to the `MotionValue`.
1707
- */
1708
- attach(t, n) {
1709
- this.passiveEffect = t, this.stopPassiveEffect = n;
1710
- }
1711
- /**
1712
- * Sets the state of the `MotionValue`.
1713
- *
1714
- * @remarks
1715
- *
1716
- * ```jsx
1717
- * const x = useMotionValue(0)
1718
- * x.set(10)
1719
- * ```
1720
- *
1721
- * @param latest - Latest value to set.
1722
- * @param render - Whether to notify render subscribers. Defaults to `true`
1723
- *
1724
- * @public
1725
- */
1726
- set(t) {
1727
- this.passiveEffect ? this.passiveEffect(t, this.updateAndNotify) : this.updateAndNotify(t);
1728
- }
1729
- setWithVelocity(t, n, s) {
1730
- this.set(n), this.prev = void 0, this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt - s;
1731
- }
1732
- /**
1733
- * Set the state of the `MotionValue`, stopping any active animations,
1734
- * effects, and resets velocity to `0`.
1735
- */
1736
- jump(t, n = !0) {
1737
- this.updateAndNotify(t), this.prev = t, this.prevUpdatedAt = this.prevFrameValue = void 0, n && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1738
- }
1739
- dirty() {
1740
- this.events.change?.notify(this.current);
1741
- }
1742
- addDependent(t) {
1743
- this.dependents || (this.dependents = /* @__PURE__ */ new Set()), this.dependents.add(t);
1744
- }
1745
- removeDependent(t) {
1746
- this.dependents && this.dependents.delete(t);
1747
- }
1748
- /**
1749
- * Returns the latest state of `MotionValue`
1750
- *
1751
- * @returns - The latest state of `MotionValue`
1752
- *
1753
- * @public
1754
- */
1755
- get() {
1756
- return this.current;
1757
- }
1758
- /**
1759
- * @public
1760
- */
1761
- getPrevious() {
1762
- return this.prev;
1763
- }
1764
- /**
1765
- * Returns the latest velocity of `MotionValue`
1766
- *
1767
- * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
1768
- *
1769
- * @public
1770
- */
1771
- getVelocity() {
1772
- const t = P.now();
1773
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Wt)
1774
- return 0;
1775
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, Wt);
1776
- return Qt(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1777
- }
1778
- /**
1779
- * Registers a new animation to control this `MotionValue`. Only one
1780
- * animation can drive a `MotionValue` at one time.
1781
- *
1782
- * ```jsx
1783
- * value.start()
1784
- * ```
1785
- *
1786
- * @param animation - A function that starts the provided animation
1787
- */
1788
- start(t) {
1789
- return this.stop(), new Promise((n) => {
1790
- this.hasAnimated = !0, this.animation = t(n), this.events.animationStart && this.events.animationStart.notify();
1791
- }).then(() => {
1792
- this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
1793
- });
1794
- }
1795
- /**
1796
- * Stop the currently active animation.
1797
- *
1798
- * @public
1799
- */
1800
- stop() {
1801
- this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
1802
- }
1803
- /**
1804
- * Returns `true` if this value is currently animating.
1805
- *
1806
- * @public
1807
- */
1808
- isAnimating() {
1809
- return !!this.animation;
1810
- }
1811
- clearAnimation() {
1812
- delete this.animation;
1813
- }
1814
- /**
1815
- * Destroy and clean up subscribers to this `MotionValue`.
1816
- *
1817
- * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
1818
- * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
1819
- * created a `MotionValue` via the `motionValue` function.
1820
- *
1821
- * @public
1822
- */
1823
- destroy() {
1824
- this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1825
- }
1826
- }
1827
- function ce(e, t) {
1828
- return new qi(e, t);
1829
- }
1830
- const { schedule: Hi } = /* @__PURE__ */ dn(queueMicrotask, !1);
1831
- function jn(e) {
1832
- return rs(e) && "ownerSVGElement" in e;
1833
- }
1834
- function Zi(e) {
1835
- return jn(e) && e.tagName === "svg";
1836
- }
1837
- const F = (e) => !!(e && e.getVelocity), Ji = [...Bn, D, Q], Qi = (e) => Ji.find(Kn(e)), jt = {
1838
- animation: [
1839
- "animate",
1840
- "variants",
1841
- "whileHover",
1842
- "whileTap",
1843
- "exit",
1844
- "whileInView",
1845
- "whileFocus",
1846
- "whileDrag"
1847
- ],
1848
- exit: ["exit"],
1849
- drag: ["drag", "dragControls"],
1850
- focus: ["whileFocus"],
1851
- hover: ["whileHover", "onHoverStart", "onHoverEnd"],
1852
- tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"],
1853
- pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
1854
- inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
1855
- layout: ["layout", "layoutId"]
1856
- }, Ge = {};
1857
- for (const e in jt)
1858
- Ge[e] = {
1859
- isEnabled: (t) => jt[e].some((n) => !!t[n])
1860
- };
1861
- function er(e) {
1862
- return e !== null && typeof e == "object" && typeof e.start == "function";
1863
- }
1864
- function tr(e) {
1865
- return typeof e == "string" || Array.isArray(e);
1866
- }
1867
- const nr = [
1868
- "animate",
1869
- "whileInView",
1870
- "whileFocus",
1871
- "whileHover",
1872
- "whileTap",
1873
- "whileDrag",
1874
- "exit"
1875
- ], sr = ["initial", ...nr];
1876
- function _n(e) {
1877
- return er(e.animate) || sr.some((t) => tr(e[t]));
1878
- }
1879
- function ir(e) {
1880
- return !!(_n(e) || e.variants);
1881
- }
1882
- const rr = {};
1883
- function ar(e, { layout: t, layoutId: n }) {
1884
- return te.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!rr[e] || e === "opacity");
1885
- }
1886
- const or = {
1887
- x: "translateX",
1888
- y: "translateY",
1889
- z: "translateZ",
1890
- transformPerspective: "perspective"
1891
- }, lr = ee.length;
1892
- function ur(e, t, n) {
1893
- let s = "", i = !0;
1894
- for (let r = 0; r < lr; r++) {
1895
- const a = ee[r], o = e[a];
1896
- if (o === void 0)
1897
- continue;
1898
- let u = !0;
1899
- if (typeof o == "number" ? u = o === (a.startsWith("scale") ? 1 : 0) : u = parseFloat(o) === 0, !u || n) {
1900
- const c = Wn(o, ut[a]);
1901
- if (!u) {
1902
- i = !1;
1903
- const l = or[a] || a;
1904
- s += `${l}(${c}) `;
1905
- }
1906
- n && (t[a] = c);
1907
- }
1908
- }
1909
- return s = s.trim(), n ? s = n(t, i ? "" : s) : i && (s = "none"), s;
1910
- }
1911
- function Un(e, t, n) {
1912
- const { style: s, vars: i, transformOrigin: r } = e;
1913
- let a = !1, o = !1;
1914
- for (const u in t) {
1915
- const c = t[u];
1916
- if (te.has(u)) {
1917
- a = !0;
1918
- continue;
1919
- } else if (mn(u)) {
1920
- i[u] = c;
1921
- continue;
1922
- } else {
1923
- const l = Wn(c, ut[u]);
1924
- u.startsWith("origin") ? (o = !0, r[u] = l) : s[u] = l;
1925
- }
1926
- }
1927
- if (t.transform || (a || n ? s.transform = ur(t, e.transform, n) : s.transform && (s.transform = "none")), o) {
1928
- const { originX: u = "50%", originY: c = "50%", originZ: l = 0 } = r;
1929
- s.transformOrigin = `${u} ${c} ${l}`;
1930
- }
1931
- }
1932
- const cr = {
1933
- offset: "stroke-dashoffset",
1934
- array: "stroke-dasharray"
1935
- }, fr = {
1936
- offset: "strokeDashoffset",
1937
- array: "strokeDasharray"
1938
- };
1939
- function hr(e, t, n = 1, s = 0, i = !0) {
1940
- e.pathLength = 1;
1941
- const r = i ? cr : fr;
1942
- e[r.offset] = d.transform(-s);
1943
- const a = d.transform(t), o = d.transform(n);
1944
- e[r.array] = `${a} ${o}`;
1945
- }
1946
- function dr(e, {
1947
- attrX: t,
1948
- attrY: n,
1949
- attrScale: s,
1950
- pathLength: i,
1951
- pathSpacing: r = 1,
1952
- pathOffset: a = 0,
1953
- // This is object creation, which we try to avoid per-frame.
1954
- ...o
1955
- }, u, c, l) {
1956
- if (Un(e, o, c), u) {
1957
- e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
1958
- return;
1959
- }
1960
- e.attrs = e.style, e.style = {};
1961
- const { attrs: f, style: h } = e;
1962
- f.transform && (h.transform = f.transform, delete f.transform), (h.transform || f.transformOrigin) && (h.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), h.transform && (h.transformBox = l?.transformBox ?? "fill-box", delete f.transformBox), t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && hr(f, i, r, a, !1);
1963
- }
1964
- const pr = (e) => typeof e == "string" && e.toLowerCase() === "svg";
1965
- function _t(e) {
1966
- const t = [{}, {}];
1967
- return e?.values.forEach((n, s) => {
1968
- t[0][s] = n.get(), t[1][s] = n.getVelocity();
1969
- }), t;
1970
- }
1971
- function Gn(e, t, n, s) {
1972
- if (typeof t == "function") {
1973
- const [i, r] = _t(s);
1974
- t = t(n !== void 0 ? n : e.custom, i, r);
1975
- }
1976
- if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
1977
- const [i, r] = _t(s);
1978
- t = t(n !== void 0 ? n : e.custom, i, r);
1979
- }
1980
- return t;
1981
- }
1982
- function Yn(e, t, n) {
1983
- const { style: s } = e, i = {};
1984
- for (const r in s)
1985
- (F(s[r]) || t.style && F(t.style[r]) || ar(r, e) || n?.getValue(r)?.liveStyle !== void 0) && (i[r] = s[r]);
1986
- return i;
1987
- }
1988
- function mr(e, t, n) {
1989
- const s = Yn(e, t, n);
1990
- for (const i in e)
1991
- if (F(e[i]) || F(t[i])) {
1992
- const r = ee.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
1993
- s[r] = e[i];
1994
- }
1995
- return s;
1996
- }
1997
- const ct = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), gr = "framerAppearId", yr = "data-" + ct(gr);
1998
- function br({ top: e, left: t, right: n, bottom: s }) {
1999
- return {
2000
- x: { min: t, max: n },
2001
- y: { min: e, max: s }
2002
- };
2003
- }
2004
- function Tr(e, t) {
2005
- if (!t)
2006
- return e;
2007
- const n = t({ x: e.left, y: e.top }), s = t({ x: e.right, y: e.bottom });
2008
- return {
2009
- top: n.y,
2010
- left: n.x,
2011
- bottom: s.y,
2012
- right: s.x
2013
- };
2014
- }
2015
- function vr(e, t) {
2016
- return br(Tr(e.getBoundingClientRect(), t));
2017
- }
2018
- const Ut = () => ({ min: 0, max: 0 }), ft = () => ({
2019
- x: Ut(),
2020
- y: Ut()
2021
- }), Ye = { current: null }, zn = { current: !1 };
2022
- function Vr() {
2023
- if (zn.current = !0, !!as)
2024
- if (window.matchMedia) {
2025
- const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Ye.current = e.matches;
2026
- e.addEventListener("change", t), t();
2027
- } else
2028
- Ye.current = !1;
2029
- }
2030
- const fe = /* @__PURE__ */ new WeakMap();
2031
- function wr(e, t, n) {
2032
- for (const s in t) {
2033
- const i = t[s], r = n[s];
2034
- if (F(i))
2035
- e.addValue(s, i);
2036
- else if (F(r))
2037
- e.addValue(s, ce(i, { owner: e }));
2038
- else if (r !== i)
2039
- if (e.hasValue(s)) {
2040
- const a = e.getValue(s);
2041
- a.liveStyle === !0 ? a.jump(i) : a.hasAnimated || a.set(i);
2042
- } else {
2043
- const a = e.getStaticValue(s);
2044
- e.addValue(s, ce(a !== void 0 ? a : i, { owner: e }));
2045
- }
2046
- }
2047
- for (const s in n)
2048
- t[s] === void 0 && e.removeValue(s);
2049
- return t;
2050
- }
2051
- const Gt = [
2052
- "AnimationStart",
2053
- "AnimationComplete",
2054
- "Update",
2055
- "BeforeLayoutMeasure",
2056
- "LayoutMeasure",
2057
- "LayoutAnimationStart",
2058
- "LayoutAnimationComplete"
2059
- ];
2060
- class Xn {
2061
- /**
2062
- * This method takes React props and returns found MotionValues. For example, HTML
2063
- * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
2064
- *
2065
- * This isn't an abstract method as it needs calling in the constructor, but it is
2066
- * intended to be one.
2067
- */
2068
- scrapeMotionValuesFromProps(t, n, s) {
2069
- return {};
2070
- }
2071
- constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: i, blockInitialAnimation: r, visualState: a }, o = {}) {
2072
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = ot, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2073
- this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2074
- }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2075
- const h = P.now();
2076
- this.renderScheduledAt < h && (this.renderScheduledAt = h, B.render(this.render, !1, !0));
2077
- };
2078
- const { latestValues: u, renderState: c } = a;
2079
- this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!r, this.isControllingVariants = _n(n), this.isVariantNode = ir(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2080
- const { willChange: l, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2081
- for (const h in f) {
2082
- const m = f[h];
2083
- u[h] !== void 0 && F(m) && m.set(u[h]);
2084
- }
2085
- }
2086
- mount(t) {
2087
- this.current = t, fe.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), zn.current || Vr(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Ye.current, process.env.NODE_ENV !== "production" && en(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2088
- }
2089
- unmount() {
2090
- this.projection && this.projection.unmount(), Pe(this.notifyUpdate), Pe(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2091
- for (const t in this.events)
2092
- this.events[t].clear();
2093
- for (const t in this.features) {
2094
- const n = this.features[t];
2095
- n && (n.unmount(), n.isMounted = !1);
2096
- }
2097
- this.current = null;
2098
- }
2099
- addChild(t) {
2100
- this.children.add(t), this.enteringChildren ?? (this.enteringChildren = /* @__PURE__ */ new Set()), this.enteringChildren.add(t);
2101
- }
2102
- removeChild(t) {
2103
- this.children.delete(t), this.enteringChildren && this.enteringChildren.delete(t);
2104
- }
2105
- bindToMotionValue(t, n) {
2106
- this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
2107
- const s = te.has(t);
2108
- s && this.onBindTransform && this.onBindTransform();
2109
- const i = n.on("change", (a) => {
2110
- this.latestValues[t] = a, this.props.onUpdate && B.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
2111
- });
2112
- let r;
2113
- window.MotionCheckAppearSync && (r = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => {
2114
- i(), r && r(), n.owner && n.stop();
2115
- });
2116
- }
2117
- sortNodePosition(t) {
2118
- return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);
2119
- }
2120
- updateFeatures() {
2121
- let t = "animation";
2122
- for (t in Ge) {
2123
- const n = Ge[t];
2124
- if (!n)
2125
- continue;
2126
- const { isEnabled: s, Feature: i } = n;
2127
- if (!this.features[t] && i && s(this.props) && (this.features[t] = new i(this)), this.features[t]) {
2128
- const r = this.features[t];
2129
- r.isMounted ? r.update() : (r.mount(), r.isMounted = !0);
106
+ z.displayName = w;
107
+ var B = i.forwardRef(
108
+ (r, a) => {
109
+ const {
110
+ __scopeCheckbox: t,
111
+ name: l,
112
+ checked: n,
113
+ defaultChecked: e,
114
+ required: f,
115
+ disabled: b,
116
+ value: d,
117
+ onCheckedChange: h,
118
+ form: k,
119
+ ...u
120
+ } = r;
121
+ return /* @__PURE__ */ s(
122
+ Y,
123
+ {
124
+ __scopeCheckbox: t,
125
+ checked: n,
126
+ defaultChecked: e,
127
+ disabled: b,
128
+ required: f,
129
+ onCheckedChange: h,
130
+ name: l,
131
+ form: k,
132
+ value: d,
133
+ internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ L(O, { children: [
134
+ /* @__PURE__ */ s(
135
+ z,
136
+ {
137
+ ...u,
138
+ ref: a,
139
+ __scopeCheckbox: t
140
+ }
141
+ ),
142
+ p && /* @__PURE__ */ s(
143
+ A,
144
+ {
145
+ __scopeCheckbox: t
146
+ }
147
+ )
148
+ ] })
2130
149
  }
2131
- }
2132
- }
2133
- triggerBuild() {
2134
- this.build(this.renderState, this.latestValues, this.props);
2135
- }
2136
- /**
2137
- * Measure the current viewport box with or without transforms.
2138
- * Only measures axis-aligned boxes, rotate and skew must be manually
2139
- * removed with a re-render to work.
2140
- */
2141
- measureViewportBox() {
2142
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ft();
2143
- }
2144
- getStaticValue(t) {
2145
- return this.latestValues[t];
2146
- }
2147
- setStaticValue(t, n) {
2148
- this.latestValues[t] = n;
2149
- }
2150
- /**
2151
- * Update the provided props. Ensure any newly-added motion values are
2152
- * added to our map, old ones removed, and listeners updated.
2153
- */
2154
- update(t, n) {
2155
- (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
2156
- for (let s = 0; s < Gt.length; s++) {
2157
- const i = Gt[s];
2158
- this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
2159
- const r = "on" + i, a = t[r];
2160
- a && (this.propEventSubscriptions[i] = this.on(i, a));
2161
- }
2162
- this.prevMotionValues = wr(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2163
- }
2164
- getProps() {
2165
- return this.props;
2166
- }
2167
- /**
2168
- * Returns the variant definition with a given name.
2169
- */
2170
- getVariant(t) {
2171
- return this.props.variants ? this.props.variants[t] : void 0;
2172
- }
2173
- /**
2174
- * Returns the defined default transition on this component.
2175
- */
2176
- getDefaultTransition() {
2177
- return this.props.transition;
2178
- }
2179
- getTransformPagePoint() {
2180
- return this.props.transformPagePoint;
2181
- }
2182
- getClosestVariantNode() {
2183
- return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
2184
- }
2185
- /**
2186
- * Add a child visual element to our set of children.
2187
- */
2188
- addVariantChild(t) {
2189
- const n = this.getClosestVariantNode();
2190
- if (n)
2191
- return n.variantChildren && n.variantChildren.add(t), () => n.variantChildren.delete(t);
2192
- }
2193
- /**
2194
- * Add a motion value and bind it to this visual element.
2195
- */
2196
- addValue(t, n) {
2197
- const s = this.values.get(t);
2198
- n !== s && (s && this.removeValue(t), this.bindToMotionValue(t, n), this.values.set(t, n), this.latestValues[t] = n.get());
2199
- }
2200
- /**
2201
- * Remove a motion value and unbind any active subscriptions.
2202
- */
2203
- removeValue(t) {
2204
- this.values.delete(t);
2205
- const n = this.valueSubscriptions.get(t);
2206
- n && (n(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);
2207
- }
2208
- /**
2209
- * Check whether we have a motion value for this key
2210
- */
2211
- hasValue(t) {
2212
- return this.values.has(t);
2213
- }
2214
- getValue(t, n) {
2215
- if (this.props.values && this.props.values[t])
2216
- return this.props.values[t];
2217
- let s = this.values.get(t);
2218
- return s === void 0 && n !== void 0 && (s = ce(n === null ? void 0 : n, { owner: this }), this.addValue(t, s)), s;
2219
- }
2220
- /**
2221
- * If we're trying to animate to a previously unencountered value,
2222
- * we need to check for it in our state and as a last resort read it
2223
- * directly from the instance (which might have performance implications).
2224
- */
2225
- readValue(t, n) {
2226
- let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2227
- return s != null && (typeof s == "string" && (Ht(s) || Zt(s)) ? s = parseFloat(s) : !Qi(s) && Q.test(n) && (s = Ln(t, n)), this.setBaseTarget(t, F(s) ? s.get() : s)), F(s) ? s.get() : s;
150
+ );
2228
151
  }
2229
- /**
2230
- * Set the base target to later animate back to. This is currently
2231
- * only hydrated on creation and when we first read a value.
2232
- */
2233
- setBaseTarget(t, n) {
2234
- this.baseTarget[t] = n;
2235
- }
2236
- /**
2237
- * Find the base target for a value thats been removed from all animation
2238
- * props.
2239
- */
2240
- getBaseTarget(t) {
2241
- const { initial: n } = this.props;
2242
- let s;
2243
- if (typeof n == "string" || typeof n == "object") {
2244
- const r = Gn(this.props, n, this.presenceContext?.custom);
2245
- r && (s = r[t]);
2246
- }
2247
- if (n && s !== void 0)
2248
- return s;
2249
- const i = this.getBaseTargetFromProps(this.props, t);
2250
- return i !== void 0 && !F(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2251
- }
2252
- on(t, n) {
2253
- return this.events[t] || (this.events[t] = new Jt()), this.events[t].add(n);
2254
- }
2255
- notify(t, ...n) {
2256
- this.events[t] && this.events[t].notify(...n);
2257
- }
2258
- scheduleRenderMicrotask() {
2259
- Hi.render(this.render);
2260
- }
2261
- }
2262
- class qn extends Xn {
2263
- constructor() {
2264
- super(...arguments), this.KeyframeResolver = Yi;
2265
- }
2266
- sortInstanceNodePosition(t, n) {
2267
- return t.compareDocumentPosition(n) & 2 ? 1 : -1;
2268
- }
2269
- getBaseTargetFromProps(t, n) {
2270
- return t.style ? t.style[n] : void 0;
2271
- }
2272
- removeValueFromRenderState(t, { vars: n, style: s }) {
2273
- delete n[t], delete s[t];
2274
- }
2275
- handleChildMotionValue() {
2276
- this.childSubscription && (this.childSubscription(), delete this.childSubscription);
2277
- const { children: t } = this.props;
2278
- F(t) && (this.childSubscription = t.on("change", (n) => {
2279
- this.current && (this.current.textContent = `${n}`);
2280
- }));
2281
- }
2282
- }
2283
- function Hn(e, { style: t, vars: n }, s, i) {
2284
- const r = e.style;
2285
- let a;
2286
- for (a in t)
2287
- r[a] = t[a];
2288
- i?.applyProjectionStyles(r, s);
2289
- for (a in n)
2290
- r.setProperty(a, n[a]);
2291
- }
2292
- function Sr(e) {
2293
- return window.getComputedStyle(e);
2294
- }
2295
- class xr extends qn {
2296
- constructor() {
2297
- super(...arguments), this.type = "html", this.renderInstance = Hn;
2298
- }
2299
- readValueFromInstance(t, n) {
2300
- if (te.has(n))
2301
- return this.projection?.isProjecting ? Be(n) : li(t, n);
2302
- {
2303
- const s = Sr(t), i = (mn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2304
- return typeof i == "string" ? i.trim() : i;
2305
- }
2306
- }
2307
- measureInstanceViewportBox(t, { transformPagePoint: n }) {
2308
- return vr(t, n);
2309
- }
2310
- build(t, n, s) {
2311
- Un(t, n, s.transformTemplate);
2312
- }
2313
- scrapeMotionValuesFromProps(t, n, s) {
2314
- return Yn(t, n, s);
2315
- }
2316
- }
2317
- const Zn = /* @__PURE__ */ new Set([
2318
- "baseFrequency",
2319
- "diffuseConstant",
2320
- "kernelMatrix",
2321
- "kernelUnitLength",
2322
- "keySplines",
2323
- "keyTimes",
2324
- "limitingConeAngle",
2325
- "markerHeight",
2326
- "markerWidth",
2327
- "numOctaves",
2328
- "targetX",
2329
- "targetY",
2330
- "surfaceScale",
2331
- "specularConstant",
2332
- "specularExponent",
2333
- "stdDeviation",
2334
- "tableValues",
2335
- "viewBox",
2336
- "gradientTransform",
2337
- "pathLength",
2338
- "startOffset",
2339
- "textLength",
2340
- "lengthAdjust"
2341
- ]);
2342
- function Ar(e, t, n, s) {
2343
- Hn(e, t, void 0, s);
2344
- for (const i in t.attrs)
2345
- e.setAttribute(Zn.has(i) ? i : ct(i), t.attrs[i]);
2346
- }
2347
- class Mr extends qn {
2348
- constructor() {
2349
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ft;
2350
- }
2351
- getBaseTargetFromProps(t, n) {
2352
- return t[n];
2353
- }
2354
- readValueFromInstance(t, n) {
2355
- if (te.has(n)) {
2356
- const s = $n(n);
2357
- return s && s.default || 0;
2358
- }
2359
- return n = Zn.has(n) ? n : ct(n), t.getAttribute(n);
2360
- }
2361
- scrapeMotionValuesFromProps(t, n, s) {
2362
- return mr(t, n, s);
2363
- }
2364
- build(t, n, s) {
2365
- dr(t, n, this.isSVGTag, s.transformTemplate, s.style);
2366
- }
2367
- renderInstance(t, n, s, i) {
2368
- Ar(t, n, s, i);
2369
- }
2370
- mount(t) {
2371
- this.isSVGTag = pr(t.tagName), super.mount(t);
2372
- }
2373
- }
2374
- function Cr(e, t, n) {
2375
- const s = e.getProps();
2376
- return Gn(s, t, s.custom, e);
2377
- }
2378
- const Dr = (e) => Array.isArray(e);
2379
- function Fr(e, t, n) {
2380
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, ce(n));
2381
- }
2382
- function Er(e) {
2383
- return Dr(e) ? e[e.length - 1] || 0 : e;
2384
- }
2385
- function Pr(e, t) {
2386
- const n = Cr(e, t);
2387
- let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
2388
- r = { ...r, ...s };
2389
- for (const a in r) {
2390
- const o = Er(r[a]);
2391
- Fr(e, a, o);
2392
- }
2393
- }
2394
- function Rr(e) {
2395
- return !!(F(e) && e.add);
2396
- }
2397
- function Or(e, t) {
2398
- const n = e.getValue("willChange");
2399
- if (Rr(n))
2400
- return n.add(t);
2401
- if (!n && K.WillChange) {
2402
- const s = new K.WillChange("auto");
2403
- e.addValue("willChange", s), s.add(t);
2404
- }
2405
- }
2406
- function Nr(e) {
2407
- return e.props[yr];
2408
- }
2409
- const Ir = (e) => e !== null;
2410
- function kr(e, { repeat: t, repeatType: n = "loop" }, s) {
2411
- const i = e.filter(Ir), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
2412
- return i[r];
2413
- }
2414
- const Kr = {
2415
- type: "spring",
2416
- stiffness: 500,
2417
- damping: 25,
2418
- restSpeed: 10
2419
- }, Br = (e) => ({
2420
- type: "spring",
2421
- stiffness: 550,
2422
- damping: e === 0 ? 2 * Math.sqrt(550) : 30,
2423
- restSpeed: 10
2424
- }), $r = {
2425
- type: "keyframes",
2426
- duration: 0.8
2427
- }, Lr = {
2428
- type: "keyframes",
2429
- ease: [0.25, 0.1, 0.35, 1],
2430
- duration: 0.3
2431
- }, Wr = (e, { keyframes: t }) => t.length > 2 ? $r : te.has(e) ? e.startsWith("scale") ? Br(t[1]) : Kr : Lr;
2432
- function jr({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: u, elapsed: c, ...l }) {
2433
- return !!Object.keys(l).length;
2434
- }
2435
- const Jn = (e, t, n, s = {}, i, r) => (a) => {
2436
- const o = In(s, e) || {}, u = o.delay || s.delay || 0;
2437
- let { elapsed: c = 0 } = s;
2438
- c = c - /* @__PURE__ */ O(u);
2439
- const l = {
2440
- keyframes: Array.isArray(n) ? n : [null, n],
2441
- ease: "easeOut",
2442
- velocity: t.getVelocity(),
2443
- ...o,
2444
- delay: -c,
2445
- onUpdate: (h) => {
2446
- t.set(h), o.onUpdate && o.onUpdate(h);
2447
- },
2448
- onComplete: () => {
2449
- a(), o.onComplete && o.onComplete();
2450
- },
2451
- name: e,
2452
- motionValue: t,
2453
- element: r ? void 0 : i
2454
- };
2455
- jr(o) || Object.assign(l, Wr(e, l)), l.duration && (l.duration = /* @__PURE__ */ O(l.duration)), l.repeatDelay && (l.repeatDelay = /* @__PURE__ */ O(l.repeatDelay)), l.from !== void 0 && (l.keyframes[0] = l.from);
2456
- let f = !1;
2457
- if ((l.type === !1 || l.duration === 0 && !l.repeatDelay) && (_e(l), l.delay === 0 && (f = !0)), (K.instantAnimations || K.skipAnimations) && (f = !0, _e(l), l.delay = 0), l.allowFlatten = !o.type && !o.ease, f && !r && t.get() !== void 0) {
2458
- const h = kr(l.keyframes, o);
2459
- if (h !== void 0) {
2460
- B.update(() => {
2461
- l.onUpdate(h), l.onComplete();
2462
- });
2463
- return;
2464
- }
2465
- }
2466
- return o.isSync ? new at(l) : new Pi(l);
2467
- };
2468
- function _r({ protectedKeys: e, needsAnimating: t }, n) {
2469
- const s = e.hasOwnProperty(n) && t[n] !== !0;
2470
- return t[n] = !1, s;
2471
- }
2472
- function Ur(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2473
- let { transition: r = e.getDefaultTransition(), transitionEnd: a, ...o } = t;
2474
- s && (r = s);
2475
- const u = [], c = i && e.animationState && e.animationState.getState()[i];
2476
- for (const l in o) {
2477
- const f = e.getValue(l, e.latestValues[l] ?? null), h = o[l];
2478
- if (h === void 0 || c && _r(c, l))
2479
- continue;
2480
- const m = {
2481
- delay: n,
2482
- ...In(r || {}, l)
2483
- }, y = f.get();
2484
- if (y !== void 0 && !f.isAnimating && !Array.isArray(h) && h === y && !m.velocity)
2485
- continue;
2486
- let b = !1;
2487
- if (window.MotionHandoffAnimation) {
2488
- const T = Nr(e);
2489
- if (T) {
2490
- const A = window.MotionHandoffAnimation(T, l, B);
2491
- A !== null && (m.startTime = A, b = !0);
152
+ );
153
+ B.displayName = y;
154
+ var M = "CheckboxIndicator", T = i.forwardRef(
155
+ (r, a) => {
156
+ const { __scopeCheckbox: t, forceMount: l, ...n } = r, e = _(M, t);
157
+ return /* @__PURE__ */ s(
158
+ $,
159
+ {
160
+ present: l || m(e.checked) || e.checked === !0,
161
+ children: /* @__PURE__ */ s(
162
+ P.span,
163
+ {
164
+ "data-state": j(e.checked),
165
+ "data-disabled": e.disabled ? "" : void 0,
166
+ ...n,
167
+ ref: a,
168
+ style: { pointerEvents: "none", ...r.style }
169
+ }
170
+ )
2492
171
  }
2493
- }
2494
- Or(e, l), f.start(Jn(l, f, h, e.shouldReduceMotion && kn.has(l) ? { type: !1 } : m, e, b));
2495
- const v = f.animation;
2496
- v && u.push(v);
2497
- }
2498
- return a && Promise.all(u).then(() => {
2499
- B.update(() => {
2500
- a && Pr(e, a);
2501
- });
2502
- }), u;
2503
- }
2504
- function Gr(e, t, n) {
2505
- const s = F(e) ? e : ce(e);
2506
- return s.start(Jn("", s, t, n)), s.animation;
2507
- }
2508
- function Yr(e) {
2509
- return qt(() => () => e(), []);
2510
- }
2511
- function ht(e) {
2512
- return typeof e == "object" && !Array.isArray(e);
2513
- }
2514
- function Qn(e, t, n, s) {
2515
- return typeof e == "string" && ht(t) ? zi(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
2516
- }
2517
- function zr(e, t, n) {
2518
- return e * (t + 1);
2519
- }
2520
- function Yt(e, t, n, s) {
2521
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : s.get(t) ?? e;
2522
- }
2523
- function Xr(e, t, n) {
2524
- for (let s = 0; s < e.length; s++) {
2525
- const i = e[s];
2526
- i.at > t && i.at < n && (ze(e, i), s--);
172
+ );
2527
173
  }
2528
- }
2529
- function qr(e, t, n, s, i, r) {
2530
- Xr(e, i, r);
2531
- for (let a = 0; a < t.length; a++)
2532
- e.push({
2533
- value: t[a],
2534
- at: me(i, r, s[a]),
2535
- easing: fn(n, a)
2536
- });
2537
- }
2538
- function Hr(e, t) {
2539
- for (let n = 0; n < e.length; n++)
2540
- e[n] = e[n] / (t + 1);
2541
- }
2542
- function Zr(e, t) {
2543
- return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
2544
- }
2545
- const Jr = "easeInOut", Qr = 20;
2546
- function ea(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
2547
- const r = t.duration || 0.3, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), u = {}, c = /* @__PURE__ */ new Map();
2548
- let l = 0, f = 0, h = 0;
2549
- for (let m = 0; m < e.length; m++) {
2550
- const y = e[m];
2551
- if (typeof y == "string") {
2552
- c.set(y, f);
2553
- continue;
2554
- } else if (!Array.isArray(y)) {
2555
- c.set(y.name, Yt(f, y.at, l, c));
2556
- continue;
2557
- }
2558
- let [b, v, T = {}] = y;
2559
- T.at !== void 0 && (f = Yt(f, T.at, l, c));
2560
- let A = 0;
2561
- const w = (S, p, V, C = 0, g = 0) => {
2562
- const x = ta(S), { delay: E = 0, times: N = Cn(x), type: xe = "keyframes", repeat: ne, repeatType: pa, repeatDelay: ma = 0, ...ts } = p;
2563
- let { ease: $ = t.ease || "easeOut", duration: k } = p;
2564
- const dt = typeof E == "function" ? E(C, g) : E, pt = x.length, mt = lt(xe) ? xe : i?.[xe || "keyframes"];
2565
- if (pt <= 2 && mt) {
2566
- let se = 100;
2567
- if (pt === 2 && ia(x)) {
2568
- const ie = x[1] - x[0];
2569
- se = Math.abs(ie);
2570
- }
2571
- const ge = { ...ts };
2572
- k !== void 0 && (ge.duration = /* @__PURE__ */ O(k));
2573
- const ye = xn(ge, se, mt);
2574
- $ = ye.ease, k = ye.duration;
174
+ );
175
+ T.displayName = M;
176
+ var q = "CheckboxBubbleInput", A = i.forwardRef(
177
+ ({ __scopeCheckbox: r, ...a }, t) => {
178
+ const {
179
+ control: l,
180
+ hasConsumerStoppedPropagationRef: n,
181
+ checked: e,
182
+ defaultChecked: f,
183
+ required: b,
184
+ disabled: d,
185
+ name: h,
186
+ value: k,
187
+ form: u,
188
+ bubbleInput: p,
189
+ setBubbleInput: x
190
+ } = _(q, r), C = S(t, x), v = U(e), g = X(l);
191
+ i.useEffect(() => {
192
+ const c = p;
193
+ if (!c) return;
194
+ const I = window.HTMLInputElement.prototype, E = Object.getOwnPropertyDescriptor(
195
+ I,
196
+ "checked"
197
+ ).set, D = !n.current;
198
+ if (v !== e && E) {
199
+ const F = new Event("click", { bubbles: D });
200
+ c.indeterminate = m(e), E.call(c, m(e) ? !1 : e), c.dispatchEvent(F);
2575
201
  }
2576
- k ?? (k = r);
2577
- const gt = f + dt;
2578
- N.length === 1 && N[0] === 0 && (N[1] = 1);
2579
- const yt = N.length - x.length;
2580
- if (yt > 0 && Mn(N, yt), x.length === 1 && x.unshift(null), ne) {
2581
- I(ne < Qr, "Repeat count too high, must be less than 20", "repeat-count-high"), k = zr(k, ne);
2582
- const se = [...x], ge = [...N];
2583
- $ = Array.isArray($) ? [...$] : [$];
2584
- const ye = [...$];
2585
- for (let ie = 0; ie < ne; ie++) {
2586
- x.push(...se);
2587
- for (let re = 0; re < se.length; re++)
2588
- N.push(ge[re] + (ie + 1)), $.push(re === 0 ? "linear" : fn(ye, re - 1));
202
+ }, [p, v, e, n]);
203
+ const o = i.useRef(m(e) ? !1 : e);
204
+ return /* @__PURE__ */ s(
205
+ P.input,
206
+ {
207
+ type: "checkbox",
208
+ "aria-hidden": !0,
209
+ defaultChecked: f ?? o.current,
210
+ required: b,
211
+ disabled: d,
212
+ name: h,
213
+ value: k,
214
+ form: u,
215
+ ...a,
216
+ tabIndex: -1,
217
+ ref: C,
218
+ style: {
219
+ ...a.style,
220
+ ...g,
221
+ position: "absolute",
222
+ pointerEvents: "none",
223
+ opacity: 0,
224
+ margin: 0,
225
+ // We transform because the input is absolutely positioned but we have
226
+ // rendered it **after** the button. This pulls it back to sit on top
227
+ // of the button.
228
+ transform: "translateX(-100%)"
2589
229
  }
2590
- Hr(N, ne);
2591
- }
2592
- const bt = gt + k;
2593
- qr(V, x, $, N, gt, bt), A = Math.max(dt + k, A), h = Math.max(bt, h);
2594
- };
2595
- if (F(b)) {
2596
- const S = zt(b, o);
2597
- w(v, T, Xt("default", S));
2598
- } else {
2599
- const S = Qn(b, v, s, u), p = S.length;
2600
- for (let V = 0; V < p; V++) {
2601
- v = v, T = T;
2602
- const C = S[V], g = zt(C, o);
2603
- for (const x in v)
2604
- w(v[x], na(T, x), Xt(x, g), V, p);
2605
230
  }
2606
- }
2607
- l = f, f += A;
2608
- }
2609
- return o.forEach((m, y) => {
2610
- for (const b in m) {
2611
- const v = m[b];
2612
- v.sort(Zr);
2613
- const T = [], A = [], w = [];
2614
- for (let p = 0; p < v.length; p++) {
2615
- const { at: V, value: C, easing: g } = v[p];
2616
- T.push(C), A.push(/* @__PURE__ */ He(0, h, V)), w.push(g || "easeOut");
2617
- }
2618
- A[0] !== 0 && (A.unshift(0), T.unshift(T[0]), w.unshift(Jr)), A[A.length - 1] !== 1 && (A.push(1), T.push(null)), a.has(y) || a.set(y, {
2619
- keyframes: {},
2620
- transition: {}
2621
- });
2622
- const S = a.get(y);
2623
- S.keyframes[b] = T, S.transition[b] = {
2624
- ...t,
2625
- duration: h,
2626
- ease: w,
2627
- times: A,
2628
- ...n
2629
- };
2630
- }
2631
- }), a;
2632
- }
2633
- function zt(e, t) {
2634
- return !t.has(e) && t.set(e, {}), t.get(e);
2635
- }
2636
- function Xt(e, t) {
2637
- return t[e] || (t[e] = []), t[e];
2638
- }
2639
- function ta(e) {
2640
- return Array.isArray(e) ? e : [e];
2641
- }
2642
- function na(e, t) {
2643
- return e && e[t] ? {
2644
- ...e,
2645
- ...e[t]
2646
- } : { ...e };
2647
- }
2648
- const sa = (e) => typeof e == "number", ia = (e) => e.every(sa);
2649
- function ra(e, t) {
2650
- return e in t;
2651
- }
2652
- class aa extends Xn {
2653
- constructor() {
2654
- super(...arguments), this.type = "object";
2655
- }
2656
- readValueFromInstance(t, n) {
2657
- if (ra(n, t)) {
2658
- const s = t[n];
2659
- if (typeof s == "string" || typeof s == "number")
2660
- return s;
2661
- }
2662
- }
2663
- getBaseTargetFromProps() {
2664
- }
2665
- removeValueFromRenderState(t, n) {
2666
- delete n.output[t];
2667
- }
2668
- measureInstanceViewportBox() {
2669
- return ft();
231
+ );
2670
232
  }
2671
- build(t, n) {
2672
- Object.assign(t.output, n);
2673
- }
2674
- renderInstance(t, { output: n }) {
2675
- Object.assign(t, n);
2676
- }
2677
- sortInstanceNodePosition() {
2678
- return 0;
2679
- }
2680
- }
2681
- function oa(e) {
2682
- const t = {
2683
- presenceContext: null,
2684
- props: {},
2685
- visualState: {
2686
- renderState: {
2687
- transform: {},
2688
- transformOrigin: {},
2689
- style: {},
2690
- vars: {},
2691
- attrs: {}
2692
- },
2693
- latestValues: {}
2694
- }
2695
- }, n = jn(e) && !Zi(e) ? new Mr(t) : new xr(t);
2696
- n.mount(e), fe.set(e, n);
2697
- }
2698
- function la(e) {
2699
- const t = {
2700
- presenceContext: null,
2701
- props: {},
2702
- visualState: {
2703
- renderState: {
2704
- output: {}
2705
- },
2706
- latestValues: {}
2707
- }
2708
- }, n = new aa(t);
2709
- n.mount(e), fe.set(e, n);
2710
- }
2711
- function ua(e, t) {
2712
- return F(e) || typeof e == "number" || typeof e == "string" && !ht(t);
2713
- }
2714
- function es(e, t, n, s) {
2715
- const i = [];
2716
- if (ua(e, t))
2717
- i.push(Gr(e, ht(t) && t.default || t, n && (n.default || n)));
2718
- else {
2719
- const r = Qn(e, t, s), a = r.length;
2720
- I(!!a, "No valid elements provided.", "no-valid-elements");
2721
- for (let o = 0; o < a; o++) {
2722
- const u = r[o];
2723
- I(u !== null, "You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.", "animate-null");
2724
- const c = u instanceof Element ? oa : la;
2725
- fe.has(u) || c(u);
2726
- const l = fe.get(u), f = { ...n };
2727
- "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(...Ur(l, { ...t, transition: f }, {}));
2728
- }
2729
- }
2730
- return i;
2731
- }
2732
- function ca(e, t, n) {
2733
- const s = [];
2734
- return ea(e, t, n, { spring: H }).forEach(({ keyframes: r, transition: a }, o) => {
2735
- s.push(...es(o, r, a));
2736
- }), s;
2737
- }
2738
- function fa(e) {
2739
- return Array.isArray(e) && e.some(Array.isArray);
233
+ );
234
+ A.displayName = q;
235
+ function Z(r) {
236
+ return typeof r == "function";
2740
237
  }
2741
- function ha(e) {
2742
- function t(n, s, i) {
2743
- let r = [], a;
2744
- if (fa(n))
2745
- r = ca(n, s, e);
2746
- else {
2747
- const { onComplete: u, ...c } = i || {};
2748
- typeof u == "function" && (a = u), r = es(n, s, c, e);
2749
- }
2750
- const o = new Oi(r);
2751
- return a && o.finished.then(a), e && (e.animations.push(o), o.finished.then(() => {
2752
- ze(e.animations, o);
2753
- })), o;
2754
- }
2755
- return t;
238
+ function m(r) {
239
+ return r === "indeterminate";
2756
240
  }
2757
- function da() {
2758
- const e = wt(() => ({
2759
- current: null,
2760
- // Will be hydrated by React
2761
- animations: []
2762
- })), t = wt(() => ha(e));
2763
- return Yr(() => {
2764
- e.animations.forEach((n) => n.stop()), e.animations.length = 0;
2765
- }), [e, t];
241
+ function j(r) {
242
+ return m(r) ? "indeterminate" : r ? "checked" : "unchecked";
2766
243
  }
2767
- const Da = ({
2768
- sideOffset: e = 6,
2769
- side: t,
2770
- sticky: n,
2771
- className: s,
2772
- children: i,
2773
- showCloseButton: r = !0,
2774
- ...a
2775
- }) => {
2776
- const { open: o, isDesktop: u, onOpenChange: c } = ss(), [l, f] = os(), [h, m] = da();
2777
- return qt(() => {
2778
- o && l ? (async () => await m(
2779
- h.current,
2780
- {
2781
- opacity: [0, 1],
2782
- scale: [0, 1]
2783
- },
2784
- { type: H, bounce: 0.4, duration: 0.8 }
2785
- ))() : (async () => (await m(
2786
- h.current,
2787
- {
2788
- opacity: 0,
2789
- scale: [1, 0]
2790
- },
2791
- { duration: 0.4 }
2792
- ), f && f()))();
2793
- }, [m, o, l, f, h]), u ? /* @__PURE__ */ W(
2794
- ns,
2795
- {
2796
- "data-slot": "responsive-popover-drawer-content",
2797
- sideOffset: e,
2798
- side: t,
2799
- sticky: n,
2800
- ...a,
2801
- children: /* @__PURE__ */ W(
2802
- "div",
2803
- {
2804
- className: Vt(
2805
- "origin-(--radix-popover-content-transform-origin) p-8 rounded-18 bg-surface-neutral-l1 border-border-interactive-neutral border shadow-200",
2806
- s
2807
- ),
2808
- ref: h,
2809
- children: i
2810
- }
2811
- )
2812
- }
2813
- ) : /* @__PURE__ */ Tt(
2814
- Ae.Content,
244
+ const ee = H(
245
+ ({ className: r, ...a }, t) => /* @__PURE__ */ s(
246
+ B,
2815
247
  {
2816
- "data-slot": "responsive-popover-drawer-content",
2817
- className: "group/drawer-content w-full fixed left-0 bottom-0 z-100 overflow-hidden",
248
+ "data-slot": "checkbox-indicator",
249
+ className: Q(
250
+ "peer relative flex justify-center items-center cursor-pointer gap-12 border rounded-6 border-border-interactive-neutral bg-on-primary active:transition-transform ease-out-cubic duration-150 active:scale-[0.85] focus:ring-2 active:ring-2 focus:ring-border-surface-spread-focus active:ring-border-surface-spread-neutral ring-offset-0 size-24 group-data-[checkbox-shape=full-radius]:rounded-full group-data-[error=true]:border-border-surface-error-l1 group-data-[checkbox-size=large]:size-32 group-data-[checkbox-size=extra-small]:size-18 disabled:cursor-not-allowed disabled:bg-interactive-primary-disabled group-hover:border-border-interactive-neutral-active-hover aria-checked:bg-interactive-primary disabled:aria-checked:bg-disabled disabled:border-bg-interactive-primary-disabled ",
251
+ r
252
+ ),
253
+ ref: t,
2818
254
  ...a,
2819
- children: [
2820
- /* @__PURE__ */ Tt(
2821
- "div",
2822
- {
2823
- className: Vt(
2824
- "m-20 flex h-auto flex-col p-8 rounded-18 bg-surface-neutral-l1 border-border-interactive-neutral border shadow-200",
2825
- s
2826
- ),
2827
- ref: h,
2828
- children: [
2829
- i,
2830
- r && /* @__PURE__ */ W(
2831
- is,
2832
- {
2833
- variant: "secondary",
2834
- rounded: "sm",
2835
- onClick: () => {
2836
- c && c(!1);
2837
- },
2838
- children: "Close"
2839
- }
2840
- )
2841
- ]
2842
- }
2843
- ),
2844
- /* @__PURE__ */ W(vt, { children: /* @__PURE__ */ W(Ae.Title, {}) }),
2845
- /* @__PURE__ */ W(vt, { children: /* @__PURE__ */ W(Ae.Description, {}) })
2846
- ]
255
+ children: /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(J, { className: "size-24 text-on-primary group-data-[checkbox-size=extra-small]:size-14" }) })
2847
256
  }
2848
- );
2849
- };
257
+ )
258
+ );
259
+ ee.displayName = "CheckboxIndicator";
2850
260
  export {
2851
- Da as ResponsivePopoverDrawerContent
261
+ ee as CheckboxIndicator
2852
262
  };