mainstack-design-system 1.9.3 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (592) hide show
  1. package/dist/{DayPickerExtended-DPYl2tUU.js → DayPickerExtended-8p2Rsjc3.js} +3 -3
  2. package/dist/{DayPickerExtended-CHWYr922.cjs → DayPickerExtended-DlfNo-TA.cjs} +1 -1
  3. package/dist/assets/styles.css +1 -1
  4. package/dist/assets/theme/tokenTheme.css +18 -0
  5. package/dist/{format-QHX11ZBv.js → format-6360pIsC.js} +1 -1
  6. package/dist/{format-ujjsp00N.cjs → format-qQeTyhLA.cjs} +1 -1
  7. package/dist/index-6WEiHZQh.js +194 -0
  8. package/dist/index-Bpm2I_hv.cjs +20 -0
  9. package/dist/{index-C-QbrvHb.cjs → index-D92doQ40.cjs} +1 -1
  10. package/dist/{index-DgoIvfC-.js → index-jEJPZHTi.js} +1 -1
  11. package/dist/index.d.ts +26 -0
  12. package/dist/mainstack-design-system.cjs +1 -1
  13. package/dist/mainstack-design-system.js +445 -437
  14. package/dist/mainstack-design-system16.cjs +1 -1
  15. package/dist/mainstack-design-system16.js +1 -1
  16. package/dist/mainstack-design-system17.cjs +1 -1
  17. package/dist/mainstack-design-system17.js +1 -1
  18. package/dist/mainstack-design-system18.cjs +1 -1
  19. package/dist/mainstack-design-system18.js +7 -7
  20. package/dist/mainstack-design-system19.cjs +1 -1
  21. package/dist/mainstack-design-system19.js +7 -7
  22. package/dist/mainstack-design-system2.cjs +1 -1
  23. package/dist/mainstack-design-system2.js +1 -1
  24. package/dist/mainstack-design-system20.cjs +1 -1
  25. package/dist/mainstack-design-system20.js +6 -6
  26. package/dist/mainstack-design-system21.cjs +1 -1
  27. package/dist/mainstack-design-system21.js +4 -4
  28. package/dist/mainstack-design-system22.cjs +1 -1
  29. package/dist/mainstack-design-system22.js +1 -1
  30. package/dist/mainstack-design-system23.cjs +1 -1
  31. package/dist/mainstack-design-system23.js +1 -1
  32. package/dist/mainstack-design-system24.cjs +1 -1
  33. package/dist/mainstack-design-system24.js +3 -3
  34. package/dist/mainstack-design-system27.cjs +1 -1
  35. package/dist/mainstack-design-system27.js +1 -1
  36. package/dist/mainstack-design-system28.cjs +1 -1
  37. package/dist/mainstack-design-system28.js +6 -6
  38. package/dist/mainstack-design-system29.cjs +1 -1
  39. package/dist/mainstack-design-system29.js +1 -1
  40. package/dist/mainstack-design-system30.cjs +1 -1
  41. package/dist/mainstack-design-system30.js +4 -4
  42. package/dist/mainstack-design-system31.cjs +1 -1
  43. package/dist/mainstack-design-system31.js +1 -1
  44. package/dist/mainstack-design-system32.cjs +1 -1
  45. package/dist/mainstack-design-system32.js +1 -1
  46. package/dist/mainstack-design-system33.cjs +1 -1
  47. package/dist/mainstack-design-system33.js +6 -6
  48. package/dist/mainstack-design-system34.cjs +1 -1
  49. package/dist/mainstack-design-system34.js +3 -3
  50. package/dist/mainstack-design-system357.cjs +1 -1
  51. package/dist/mainstack-design-system357.js +1 -1
  52. package/dist/mainstack-design-system358.cjs +1 -1
  53. package/dist/mainstack-design-system358.js +2 -2
  54. package/dist/mainstack-design-system359.cjs +1 -1
  55. package/dist/mainstack-design-system359.js +3 -3
  56. package/dist/mainstack-design-system36.cjs +1 -1
  57. package/dist/mainstack-design-system36.js +5 -5
  58. package/dist/mainstack-design-system360.cjs +1 -1
  59. package/dist/mainstack-design-system360.js +4 -4
  60. package/dist/mainstack-design-system361.cjs +1 -1
  61. package/dist/mainstack-design-system361.js +9 -9
  62. package/dist/mainstack-design-system362.cjs +1 -1
  63. package/dist/mainstack-design-system362.js +9 -9
  64. package/dist/mainstack-design-system363.cjs +1 -1
  65. package/dist/mainstack-design-system363.js +1 -1
  66. package/dist/mainstack-design-system364.cjs +1 -1
  67. package/dist/mainstack-design-system364.js +1 -1
  68. package/dist/mainstack-design-system365.cjs +1 -1
  69. package/dist/mainstack-design-system365.js +6 -6
  70. package/dist/mainstack-design-system366.cjs +1 -1
  71. package/dist/mainstack-design-system366.js +5 -5
  72. package/dist/mainstack-design-system367.cjs +1 -1
  73. package/dist/mainstack-design-system367.js +9 -9
  74. package/dist/mainstack-design-system368.cjs +1 -1
  75. package/dist/mainstack-design-system368.js +4 -4
  76. package/dist/mainstack-design-system369.cjs +1 -1
  77. package/dist/mainstack-design-system369.js +5 -5
  78. package/dist/mainstack-design-system37.cjs +1 -1
  79. package/dist/mainstack-design-system37.js +3 -3
  80. package/dist/mainstack-design-system370.cjs +1 -1
  81. package/dist/mainstack-design-system370.js +3 -3
  82. package/dist/mainstack-design-system371.cjs +1 -1
  83. package/dist/mainstack-design-system371.js +18 -18
  84. package/dist/mainstack-design-system372.cjs +1 -1
  85. package/dist/mainstack-design-system372.js +7 -7
  86. package/dist/mainstack-design-system373.cjs +1 -1
  87. package/dist/mainstack-design-system373.js +7 -7
  88. package/dist/mainstack-design-system374.cjs +1 -1
  89. package/dist/mainstack-design-system374.js +7 -7
  90. package/dist/mainstack-design-system375.cjs +1 -1
  91. package/dist/mainstack-design-system375.js +5 -5
  92. package/dist/mainstack-design-system376.cjs +1 -1
  93. package/dist/mainstack-design-system376.js +5 -5
  94. package/dist/mainstack-design-system377.cjs +1 -1
  95. package/dist/mainstack-design-system377.js +6 -6
  96. package/dist/mainstack-design-system378.cjs +1 -1
  97. package/dist/mainstack-design-system378.js +12 -12
  98. package/dist/mainstack-design-system379.cjs +1 -1
  99. package/dist/mainstack-design-system379.js +1 -1
  100. package/dist/mainstack-design-system38.cjs +1 -1
  101. package/dist/mainstack-design-system38.js +8 -8
  102. package/dist/mainstack-design-system380.cjs +1 -1
  103. package/dist/mainstack-design-system380.js +1 -1
  104. package/dist/mainstack-design-system381.cjs +1 -1
  105. package/dist/mainstack-design-system381.js +1 -1
  106. package/dist/mainstack-design-system382.cjs +1 -1
  107. package/dist/mainstack-design-system382.js +5 -5
  108. package/dist/mainstack-design-system383.cjs +1 -1
  109. package/dist/mainstack-design-system383.js +10 -10
  110. package/dist/mainstack-design-system384.cjs +1 -1
  111. package/dist/mainstack-design-system384.js +5 -5
  112. package/dist/mainstack-design-system385.cjs +1 -1
  113. package/dist/mainstack-design-system385.js +9 -9
  114. package/dist/mainstack-design-system386.cjs +1 -1
  115. package/dist/mainstack-design-system386.js +11 -27
  116. package/dist/mainstack-design-system387.cjs +1 -1
  117. package/dist/mainstack-design-system387.js +26 -15
  118. package/dist/mainstack-design-system388.cjs +1 -1
  119. package/dist/mainstack-design-system388.js +16 -21
  120. package/dist/mainstack-design-system389.cjs +1 -1
  121. package/dist/mainstack-design-system389.js +15 -14
  122. package/dist/mainstack-design-system39.cjs +1 -1
  123. package/dist/mainstack-design-system39.js +7 -7
  124. package/dist/mainstack-design-system390.cjs +1 -1
  125. package/dist/mainstack-design-system390.js +19 -68
  126. package/dist/mainstack-design-system391.cjs +1 -1
  127. package/dist/mainstack-design-system391.js +69 -7
  128. package/dist/mainstack-design-system392.cjs +1 -87
  129. package/dist/mainstack-design-system392.js +7 -238
  130. package/dist/mainstack-design-system393.cjs +87 -1
  131. package/dist/mainstack-design-system393.js +236 -18
  132. package/dist/mainstack-design-system394.cjs +1 -1
  133. package/dist/mainstack-design-system394.js +20 -5
  134. package/dist/mainstack-design-system395.cjs +1 -2
  135. package/dist/mainstack-design-system395.js +5 -32
  136. package/dist/mainstack-design-system396.cjs +1 -1
  137. package/dist/mainstack-design-system396.js +29 -21
  138. package/dist/mainstack-design-system397.cjs +2 -1
  139. package/dist/mainstack-design-system397.js +24 -7
  140. package/dist/mainstack-design-system398.cjs +1 -1
  141. package/dist/mainstack-design-system398.js +7 -32
  142. package/dist/mainstack-design-system399.cjs +1 -1
  143. package/dist/mainstack-design-system399.js +32 -7
  144. package/dist/mainstack-design-system40.cjs +1 -1
  145. package/dist/mainstack-design-system40.js +6 -6
  146. package/dist/mainstack-design-system400.cjs +1 -1
  147. package/dist/mainstack-design-system400.js +7 -19
  148. package/dist/mainstack-design-system401.cjs +1 -1
  149. package/dist/mainstack-design-system401.js +12 -9
  150. package/dist/mainstack-design-system402.cjs +1 -1
  151. package/dist/mainstack-design-system402.js +10 -13
  152. package/dist/mainstack-design-system403.cjs +1 -1
  153. package/dist/mainstack-design-system403.js +18 -25
  154. package/dist/mainstack-design-system404.cjs +1 -1
  155. package/dist/mainstack-design-system404.js +25 -17
  156. package/dist/mainstack-design-system405.cjs +1 -1
  157. package/dist/mainstack-design-system405.js +12 -15
  158. package/dist/mainstack-design-system406.cjs +1 -1
  159. package/dist/mainstack-design-system406.js +16 -19
  160. package/dist/mainstack-design-system407.cjs +1 -1
  161. package/dist/mainstack-design-system407.js +19 -16
  162. package/dist/mainstack-design-system408.cjs +1 -1
  163. package/dist/mainstack-design-system408.js +15 -29
  164. package/dist/mainstack-design-system409.cjs +1 -1
  165. package/dist/mainstack-design-system409.js +30 -14
  166. package/dist/mainstack-design-system41.cjs +1 -1
  167. package/dist/mainstack-design-system41.js +5 -5
  168. package/dist/mainstack-design-system410.cjs +1 -1
  169. package/dist/mainstack-design-system410.js +19 -17
  170. package/dist/mainstack-design-system411.cjs +1 -1
  171. package/dist/mainstack-design-system411.js +17 -18
  172. package/dist/mainstack-design-system412.cjs +1 -1
  173. package/dist/mainstack-design-system412.js +13 -15
  174. package/dist/mainstack-design-system413.cjs +1 -1
  175. package/dist/mainstack-design-system413.js +20 -15
  176. package/dist/mainstack-design-system414.cjs +1 -1
  177. package/dist/mainstack-design-system414.js +15 -16
  178. package/dist/mainstack-design-system415.cjs +1 -1
  179. package/dist/mainstack-design-system415.js +11 -11
  180. package/dist/mainstack-design-system416.cjs +1 -1
  181. package/dist/mainstack-design-system416.js +11 -10
  182. package/dist/mainstack-design-system417.cjs +1 -1
  183. package/dist/mainstack-design-system417.js +10 -23
  184. package/dist/mainstack-design-system418.cjs +1 -1
  185. package/dist/mainstack-design-system418.js +22 -14
  186. package/dist/mainstack-design-system419.cjs +1 -1
  187. package/dist/mainstack-design-system419.js +14 -14
  188. package/dist/mainstack-design-system42.cjs +1 -1
  189. package/dist/mainstack-design-system42.js +6 -6
  190. package/dist/mainstack-design-system420.cjs +1 -1
  191. package/dist/mainstack-design-system420.js +20 -18
  192. package/dist/mainstack-design-system421.cjs +1 -1
  193. package/dist/mainstack-design-system421.js +17 -68
  194. package/dist/mainstack-design-system422.cjs +1 -1
  195. package/dist/mainstack-design-system422.js +67 -19
  196. package/dist/mainstack-design-system423.cjs +1 -1
  197. package/dist/mainstack-design-system423.js +16 -16
  198. package/dist/mainstack-design-system424.cjs +1 -1
  199. package/dist/mainstack-design-system424.js +16 -16
  200. package/dist/mainstack-design-system425.cjs +1 -1
  201. package/dist/mainstack-design-system425.js +21 -14
  202. package/dist/mainstack-design-system426.cjs +1 -1
  203. package/dist/mainstack-design-system426.js +14 -38
  204. package/dist/mainstack-design-system427.cjs +1 -1
  205. package/dist/mainstack-design-system427.js +37 -29
  206. package/dist/mainstack-design-system428.cjs +1 -1
  207. package/dist/mainstack-design-system428.js +24 -9
  208. package/dist/mainstack-design-system429.cjs +1 -1
  209. package/dist/mainstack-design-system429.js +11 -12
  210. package/dist/mainstack-design-system43.cjs +1 -1
  211. package/dist/mainstack-design-system43.js +9 -9
  212. package/dist/mainstack-design-system430.cjs +1 -1
  213. package/dist/mainstack-design-system430.js +15 -20
  214. package/dist/mainstack-design-system431.cjs +1 -1
  215. package/dist/mainstack-design-system431.js +18 -12
  216. package/dist/mainstack-design-system432.cjs +1 -1
  217. package/dist/mainstack-design-system432.js +12 -18
  218. package/dist/mainstack-design-system433.cjs +1 -1
  219. package/dist/mainstack-design-system433.js +20 -14
  220. package/dist/mainstack-design-system434.cjs +1 -1
  221. package/dist/mainstack-design-system434.js +11 -11
  222. package/dist/mainstack-design-system435.cjs +1 -1
  223. package/dist/mainstack-design-system435.js +14 -7
  224. package/dist/mainstack-design-system436.cjs +1 -1
  225. package/dist/mainstack-design-system436.js +6 -20
  226. package/dist/mainstack-design-system437.cjs +1 -1
  227. package/dist/mainstack-design-system437.js +15 -22
  228. package/dist/mainstack-design-system438.cjs +1 -2
  229. package/dist/mainstack-design-system438.js +24 -45
  230. package/dist/mainstack-design-system439.cjs +1 -1
  231. package/dist/mainstack-design-system439.js +48 -25
  232. package/dist/mainstack-design-system440.cjs +1 -1
  233. package/dist/mainstack-design-system440.js +22 -29
  234. package/dist/mainstack-design-system441.cjs +1 -1
  235. package/dist/mainstack-design-system441.js +28 -15
  236. package/dist/mainstack-design-system442.cjs +1 -1
  237. package/dist/mainstack-design-system442.js +15 -42
  238. package/dist/mainstack-design-system443.cjs +1 -1
  239. package/dist/mainstack-design-system443.js +42 -16
  240. package/dist/mainstack-design-system444.cjs +1 -1
  241. package/dist/mainstack-design-system444.js +17 -36
  242. package/dist/mainstack-design-system445.cjs +1 -1
  243. package/dist/mainstack-design-system445.js +34 -36
  244. package/dist/mainstack-design-system446.cjs +1 -1
  245. package/dist/mainstack-design-system446.js +40 -47
  246. package/dist/mainstack-design-system447.cjs +1 -1
  247. package/dist/mainstack-design-system447.js +45 -38
  248. package/dist/mainstack-design-system448.cjs +1 -1
  249. package/dist/mainstack-design-system448.js +37 -21
  250. package/dist/mainstack-design-system449.cjs +1 -1
  251. package/dist/mainstack-design-system449.js +22 -29
  252. package/dist/mainstack-design-system450.cjs +1 -1
  253. package/dist/mainstack-design-system450.js +29 -16
  254. package/dist/mainstack-design-system451.cjs +1 -1
  255. package/dist/mainstack-design-system451.js +15 -41
  256. package/dist/mainstack-design-system452.cjs +1 -1
  257. package/dist/mainstack-design-system452.js +41 -16
  258. package/dist/mainstack-design-system453.cjs +1 -1
  259. package/dist/mainstack-design-system453.js +17 -36
  260. package/dist/mainstack-design-system454.cjs +1 -1
  261. package/dist/mainstack-design-system454.js +34 -36
  262. package/dist/mainstack-design-system455.cjs +2 -1
  263. package/dist/mainstack-design-system455.js +42 -18
  264. package/dist/mainstack-design-system456.cjs +1 -1
  265. package/dist/mainstack-design-system456.js +14 -14
  266. package/dist/mainstack-design-system457.cjs +1 -1
  267. package/dist/mainstack-design-system457.js +14 -15
  268. package/dist/mainstack-design-system458.cjs +1 -1
  269. package/dist/mainstack-design-system458.js +15 -16
  270. package/dist/mainstack-design-system459.cjs +1 -1
  271. package/dist/mainstack-design-system459.js +15 -14
  272. package/dist/mainstack-design-system460.cjs +1 -1
  273. package/dist/mainstack-design-system460.js +20 -18
  274. package/dist/mainstack-design-system461.cjs +1 -2
  275. package/dist/mainstack-design-system461.js +18 -53
  276. package/dist/mainstack-design-system462.cjs +1 -1
  277. package/dist/mainstack-design-system462.js +28 -30
  278. package/dist/mainstack-design-system463.cjs +1 -1
  279. package/dist/mainstack-design-system463.js +51 -103
  280. package/dist/mainstack-design-system464.cjs +1 -1
  281. package/dist/mainstack-design-system464.js +102 -31
  282. package/dist/mainstack-design-system465.cjs +1 -1
  283. package/dist/mainstack-design-system465.js +30 -86
  284. package/dist/mainstack-design-system466.cjs +1 -1
  285. package/dist/mainstack-design-system466.js +80 -80
  286. package/dist/mainstack-design-system467.cjs +1 -1
  287. package/dist/mainstack-design-system467.js +85 -39
  288. package/dist/mainstack-design-system468.cjs +1 -1
  289. package/dist/mainstack-design-system468.js +43 -79
  290. package/dist/mainstack-design-system469.cjs +2 -1
  291. package/dist/mainstack-design-system469.js +82 -8
  292. package/dist/mainstack-design-system470.cjs +1 -1
  293. package/dist/mainstack-design-system470.js +8 -13
  294. package/dist/mainstack-design-system471.cjs +1 -1
  295. package/dist/mainstack-design-system471.js +13 -17
  296. package/dist/mainstack-design-system472.cjs +1 -1
  297. package/dist/mainstack-design-system472.js +17 -13
  298. package/dist/mainstack-design-system473.cjs +1 -1
  299. package/dist/mainstack-design-system473.js +12 -20
  300. package/dist/mainstack-design-system474.cjs +1 -1
  301. package/dist/mainstack-design-system474.js +16 -25
  302. package/dist/mainstack-design-system475.cjs +1 -1
  303. package/dist/mainstack-design-system475.js +28 -33
  304. package/dist/mainstack-design-system476.cjs +1 -1
  305. package/dist/mainstack-design-system476.js +35 -7
  306. package/dist/mainstack-design-system477.cjs +1 -1
  307. package/dist/mainstack-design-system477.js +7 -85
  308. package/dist/mainstack-design-system478.cjs +1 -1
  309. package/dist/mainstack-design-system478.js +83 -26
  310. package/dist/mainstack-design-system479.cjs +1 -1
  311. package/dist/mainstack-design-system479.js +27 -21
  312. package/dist/mainstack-design-system480.cjs +1 -1
  313. package/dist/mainstack-design-system480.js +17 -17
  314. package/dist/mainstack-design-system481.cjs +1 -2
  315. package/dist/mainstack-design-system481.js +21 -32
  316. package/dist/mainstack-design-system482.cjs +1 -1
  317. package/dist/mainstack-design-system482.js +19 -19
  318. package/dist/mainstack-design-system483.cjs +1 -1
  319. package/dist/mainstack-design-system483.js +24 -36
  320. package/dist/mainstack-design-system484.cjs +1 -1
  321. package/dist/mainstack-design-system484.js +39 -29
  322. package/dist/mainstack-design-system485.cjs +1 -1
  323. package/dist/mainstack-design-system485.js +26 -56
  324. package/dist/mainstack-design-system486.cjs +1 -1
  325. package/dist/mainstack-design-system486.js +57 -25
  326. package/dist/mainstack-design-system487.cjs +1 -1
  327. package/dist/mainstack-design-system487.js +28 -99
  328. package/dist/mainstack-design-system488.cjs +1 -1
  329. package/dist/mainstack-design-system488.js +99 -28
  330. package/dist/mainstack-design-system489.cjs +1 -1
  331. package/dist/mainstack-design-system489.js +22 -22
  332. package/dist/mainstack-design-system490.cjs +1 -1
  333. package/dist/mainstack-design-system490.js +28 -76
  334. package/dist/mainstack-design-system491.cjs +1 -1
  335. package/dist/mainstack-design-system491.js +79 -20
  336. package/dist/mainstack-design-system492.cjs +1 -1
  337. package/dist/mainstack-design-system492.js +19 -146
  338. package/dist/mainstack-design-system493.cjs +1 -1
  339. package/dist/mainstack-design-system493.js +144 -33
  340. package/dist/mainstack-design-system494.cjs +1 -1
  341. package/dist/mainstack-design-system494.js +28 -23
  342. package/dist/mainstack-design-system495.cjs +1 -1
  343. package/dist/mainstack-design-system495.js +29 -28
  344. package/dist/mainstack-design-system496.cjs +1 -1
  345. package/dist/mainstack-design-system496.js +28 -35
  346. package/dist/mainstack-design-system497.cjs +2 -3
  347. package/dist/mainstack-design-system497.js +38 -16
  348. package/dist/mainstack-design-system498.cjs +3 -1
  349. package/dist/mainstack-design-system498.js +14 -15
  350. package/dist/mainstack-design-system499.cjs +1 -1
  351. package/dist/mainstack-design-system499.js +15 -13
  352. package/dist/mainstack-design-system500.cjs +1 -1
  353. package/dist/mainstack-design-system500.js +12 -12
  354. package/dist/mainstack-design-system501.cjs +1 -1
  355. package/dist/mainstack-design-system501.js +11 -14
  356. package/dist/mainstack-design-system502.cjs +1 -1
  357. package/dist/mainstack-design-system502.js +15 -12
  358. package/dist/mainstack-design-system503.cjs +1 -1
  359. package/dist/mainstack-design-system503.js +14 -7
  360. package/dist/mainstack-design-system504.cjs +1 -1
  361. package/dist/mainstack-design-system504.js +8 -17
  362. package/dist/mainstack-design-system505.cjs +1 -1
  363. package/dist/mainstack-design-system505.js +12 -13
  364. package/dist/mainstack-design-system506.cjs +1 -1
  365. package/dist/mainstack-design-system506.js +15 -13
  366. package/dist/mainstack-design-system507.cjs +1 -1
  367. package/dist/mainstack-design-system507.js +13 -14
  368. package/dist/mainstack-design-system508.cjs +1 -1
  369. package/dist/mainstack-design-system508.js +16 -30
  370. package/dist/mainstack-design-system509.cjs +1 -1
  371. package/dist/mainstack-design-system509.js +31 -16
  372. package/dist/mainstack-design-system510.cjs +1 -1
  373. package/dist/mainstack-design-system510.js +16 -35
  374. package/dist/mainstack-design-system511.cjs +1 -1
  375. package/dist/mainstack-design-system511.js +30 -38
  376. package/dist/mainstack-design-system512.cjs +1 -2
  377. package/dist/mainstack-design-system512.js +39 -27
  378. package/dist/mainstack-design-system513.cjs +2 -1
  379. package/dist/mainstack-design-system513.js +28 -93
  380. package/dist/mainstack-design-system514.cjs +1 -1
  381. package/dist/mainstack-design-system514.js +92 -18
  382. package/dist/mainstack-design-system515.cjs +1 -2
  383. package/dist/mainstack-design-system515.js +22 -14
  384. package/dist/mainstack-design-system516.cjs +1 -1
  385. package/dist/mainstack-design-system516.js +13 -37
  386. package/dist/mainstack-design-system517.cjs +1 -1
  387. package/dist/mainstack-design-system517.js +36 -32
  388. package/dist/mainstack-design-system518.cjs +1 -1
  389. package/dist/mainstack-design-system518.js +32 -38
  390. package/dist/mainstack-design-system519.cjs +1 -1
  391. package/dist/mainstack-design-system519.js +34 -41
  392. package/dist/mainstack-design-system520.cjs +1 -1
  393. package/dist/mainstack-design-system520.js +46 -13
  394. package/dist/mainstack-design-system521.cjs +1 -1
  395. package/dist/mainstack-design-system521.js +13 -33
  396. package/dist/mainstack-design-system522.cjs +1 -1
  397. package/dist/mainstack-design-system522.js +32 -38
  398. package/dist/mainstack-design-system523.cjs +1 -1
  399. package/dist/mainstack-design-system523.js +34 -41
  400. package/dist/mainstack-design-system524.cjs +2 -1
  401. package/dist/mainstack-design-system524.js +48 -17
  402. package/dist/mainstack-design-system525.cjs +1 -1
  403. package/dist/mainstack-design-system525.js +11 -16
  404. package/dist/mainstack-design-system526.cjs +1 -1
  405. package/dist/mainstack-design-system526.js +17 -44
  406. package/dist/mainstack-design-system527.cjs +1 -1
  407. package/dist/mainstack-design-system527.js +49 -27
  408. package/dist/mainstack-design-system528.cjs +1 -2
  409. package/dist/mainstack-design-system528.js +26 -25
  410. package/dist/mainstack-design-system529.cjs +1 -1
  411. package/dist/mainstack-design-system529.js +22 -33
  412. package/dist/mainstack-design-system530.cjs +2 -1
  413. package/dist/mainstack-design-system530.js +33 -15
  414. package/dist/mainstack-design-system531.cjs +1 -1
  415. package/dist/mainstack-design-system531.js +11 -11
  416. package/dist/mainstack-design-system532.cjs +1 -1
  417. package/dist/mainstack-design-system532.js +12 -12
  418. package/dist/mainstack-design-system533.cjs +1 -1
  419. package/dist/mainstack-design-system533.js +11 -9
  420. package/dist/mainstack-design-system534.cjs +1 -1
  421. package/dist/mainstack-design-system534.js +12 -11
  422. package/dist/mainstack-design-system535.cjs +1 -2
  423. package/dist/mainstack-design-system535.js +12 -17
  424. package/dist/mainstack-design-system536.cjs +1 -1
  425. package/dist/mainstack-design-system536.js +20 -4
  426. package/dist/mainstack-design-system537.cjs +1 -1
  427. package/dist/mainstack-design-system537.js +4 -8
  428. package/dist/mainstack-design-system538.cjs +1 -1
  429. package/dist/mainstack-design-system538.js +8 -4
  430. package/dist/mainstack-design-system539.cjs +2 -1
  431. package/dist/mainstack-design-system539.js +5 -16
  432. package/dist/mainstack-design-system540.cjs +1 -1
  433. package/dist/mainstack-design-system540.js +15 -13
  434. package/dist/mainstack-design-system541.cjs +1 -2
  435. package/dist/mainstack-design-system541.js +14 -30
  436. package/dist/mainstack-design-system542.cjs +1 -1
  437. package/dist/mainstack-design-system542.js +29 -23
  438. package/dist/mainstack-design-system543.cjs +1 -1
  439. package/dist/mainstack-design-system543.js +16 -9
  440. package/dist/mainstack-design-system544.cjs +1 -1
  441. package/dist/mainstack-design-system544.js +11 -27
  442. package/dist/mainstack-design-system545.cjs +2 -1
  443. package/dist/mainstack-design-system545.js +33 -29
  444. package/dist/mainstack-design-system546.cjs +1 -1
  445. package/dist/mainstack-design-system546.js +29 -22
  446. package/dist/mainstack-design-system547.cjs +1 -1
  447. package/dist/mainstack-design-system547.js +19 -9
  448. package/dist/mainstack-design-system548.cjs +1 -1
  449. package/dist/mainstack-design-system548.js +9 -19
  450. package/dist/mainstack-design-system549.cjs +1 -1
  451. package/dist/mainstack-design-system549.js +18 -15
  452. package/dist/mainstack-design-system550.cjs +1 -1
  453. package/dist/mainstack-design-system550.js +14 -14
  454. package/dist/mainstack-design-system551.cjs +1 -1
  455. package/dist/mainstack-design-system551.js +16 -18
  456. package/dist/mainstack-design-system552.cjs +1 -1
  457. package/dist/mainstack-design-system552.js +17 -11
  458. package/dist/mainstack-design-system553.cjs +1 -1
  459. package/dist/mainstack-design-system553.js +11 -11
  460. package/dist/mainstack-design-system554.cjs +1 -1
  461. package/dist/mainstack-design-system554.js +15 -57
  462. package/dist/mainstack-design-system555.cjs +1 -1
  463. package/dist/mainstack-design-system555.js +57 -37
  464. package/dist/mainstack-design-system556.cjs +1 -1
  465. package/dist/mainstack-design-system556.js +37 -23
  466. package/dist/mainstack-design-system557.cjs +1 -1
  467. package/dist/mainstack-design-system557.js +13 -13
  468. package/dist/mainstack-design-system558.cjs +1 -5
  469. package/dist/mainstack-design-system558.js +19 -50
  470. package/dist/mainstack-design-system559.cjs +5 -1
  471. package/dist/mainstack-design-system559.js +51 -31
  472. package/dist/mainstack-design-system560.cjs +1 -1
  473. package/dist/mainstack-design-system560.js +32 -18
  474. package/dist/mainstack-design-system561.cjs +1 -1
  475. package/dist/mainstack-design-system561.js +18 -16
  476. package/dist/mainstack-design-system562.cjs +1 -1
  477. package/dist/mainstack-design-system562.js +17 -67
  478. package/dist/mainstack-design-system563.cjs +1 -2
  479. package/dist/mainstack-design-system563.js +68 -14
  480. package/dist/mainstack-design-system564.cjs +2 -1
  481. package/dist/mainstack-design-system564.js +13 -17
  482. package/dist/mainstack-design-system565.cjs +1 -1
  483. package/dist/mainstack-design-system565.js +13 -10
  484. package/dist/mainstack-design-system566.cjs +1 -1
  485. package/dist/mainstack-design-system566.js +14 -14
  486. package/dist/mainstack-design-system567.cjs +1 -1
  487. package/dist/mainstack-design-system567.js +14 -15
  488. package/dist/mainstack-design-system568.cjs +1 -1
  489. package/dist/mainstack-design-system568.js +10 -10
  490. package/dist/mainstack-design-system569.cjs +1 -1
  491. package/dist/mainstack-design-system569.js +16 -7
  492. package/dist/mainstack-design-system570.cjs +1 -1
  493. package/dist/mainstack-design-system570.js +16 -87
  494. package/dist/mainstack-design-system571.cjs +2 -1
  495. package/dist/mainstack-design-system571.js +23 -255
  496. package/dist/mainstack-design-system572.cjs +2 -1
  497. package/dist/mainstack-design-system572.js +38 -11
  498. package/dist/mainstack-design-system573.cjs +1 -1
  499. package/dist/mainstack-design-system573.js +7 -5
  500. package/dist/mainstack-design-system574.cjs +2 -1
  501. package/dist/mainstack-design-system574.js +88 -22
  502. package/dist/mainstack-design-system575.cjs +1 -1
  503. package/dist/mainstack-design-system575.js +254 -8
  504. package/dist/mainstack-design-system576.cjs +1 -1
  505. package/dist/mainstack-design-system576.js +11 -43
  506. package/dist/mainstack-design-system577.cjs +1 -1
  507. package/dist/mainstack-design-system577.js +3 -12
  508. package/dist/mainstack-design-system578.cjs +1 -1
  509. package/dist/mainstack-design-system578.js +21 -48
  510. package/dist/mainstack-design-system579.cjs +1 -1
  511. package/dist/mainstack-design-system579.js +9 -19
  512. package/dist/mainstack-design-system580.cjs +1 -1
  513. package/dist/mainstack-design-system580.js +39 -103
  514. package/dist/mainstack-design-system581.cjs +1 -1
  515. package/dist/mainstack-design-system581.js +13 -38
  516. package/dist/mainstack-design-system582.cjs +1 -1
  517. package/dist/mainstack-design-system582.js +49 -13
  518. package/dist/mainstack-design-system583.cjs +1 -1
  519. package/dist/mainstack-design-system583.js +19 -12
  520. package/dist/mainstack-design-system584.cjs +1 -1
  521. package/dist/mainstack-design-system584.js +107 -9
  522. package/dist/mainstack-design-system585.cjs +1 -1
  523. package/dist/mainstack-design-system585.js +38 -46
  524. package/dist/mainstack-design-system586.cjs +1 -1
  525. package/dist/mainstack-design-system586.js +9 -9
  526. package/dist/mainstack-design-system587.cjs +1 -1
  527. package/dist/mainstack-design-system587.js +12 -22
  528. package/dist/mainstack-design-system588.cjs +1 -1
  529. package/dist/mainstack-design-system588.js +7 -12
  530. package/dist/mainstack-design-system589.cjs +1 -1
  531. package/dist/mainstack-design-system589.js +47 -14
  532. package/dist/mainstack-design-system590.cjs +1 -1
  533. package/dist/mainstack-design-system590.js +11 -9
  534. package/dist/mainstack-design-system591.cjs +1 -1
  535. package/dist/mainstack-design-system591.js +21 -13
  536. package/dist/mainstack-design-system592.cjs +1 -1
  537. package/dist/mainstack-design-system592.js +9 -9
  538. package/dist/mainstack-design-system593.cjs +1 -1
  539. package/dist/mainstack-design-system593.js +14 -16
  540. package/dist/mainstack-design-system594.cjs +1 -1
  541. package/dist/mainstack-design-system594.js +12 -20
  542. package/dist/mainstack-design-system595.cjs +1 -1
  543. package/dist/mainstack-design-system595.js +14 -11
  544. package/dist/mainstack-design-system596.cjs +1 -2
  545. package/dist/mainstack-design-system596.js +13 -11
  546. package/dist/mainstack-design-system597.cjs +1 -1
  547. package/dist/mainstack-design-system597.js +15 -24
  548. package/dist/mainstack-design-system598.cjs +1 -2
  549. package/dist/mainstack-design-system598.js +19 -259
  550. package/dist/mainstack-design-system599.cjs +1 -2
  551. package/dist/mainstack-design-system599.js +11 -152
  552. package/dist/mainstack-design-system600.cjs +2 -1
  553. package/dist/mainstack-design-system600.js +12 -57
  554. package/dist/mainstack-design-system601.cjs +1 -1
  555. package/dist/mainstack-design-system601.js +23 -22
  556. package/dist/mainstack-design-system602.cjs +1 -1
  557. package/dist/mainstack-design-system602.js +250 -89
  558. package/dist/mainstack-design-system603.cjs +1 -2
  559. package/dist/mainstack-design-system603.js +139 -377
  560. package/dist/mainstack-design-system604.cjs +1 -2
  561. package/dist/mainstack-design-system604.js +49 -125
  562. package/dist/mainstack-design-system605.cjs +1 -5
  563. package/dist/mainstack-design-system605.js +21 -2158
  564. package/dist/mainstack-design-system606.cjs +1 -9
  565. package/dist/mainstack-design-system606.js +94 -179
  566. package/dist/mainstack-design-system607.cjs +2 -41
  567. package/dist/mainstack-design-system607.js +352 -23696
  568. package/dist/mainstack-design-system608.cjs +1 -3
  569. package/dist/mainstack-design-system608.js +125 -7431
  570. package/dist/mainstack-design-system609.cjs +5 -2
  571. package/dist/mainstack-design-system609.js +2027 -2716
  572. package/dist/mainstack-design-system610.cjs +10 -1
  573. package/dist/mainstack-design-system610.js +183 -58
  574. package/dist/mainstack-design-system611.cjs +42 -1
  575. package/dist/mainstack-design-system611.js +23735 -0
  576. package/dist/mainstack-design-system612.cjs +4 -1
  577. package/dist/mainstack-design-system612.js +7439 -19
  578. package/dist/mainstack-design-system613.cjs +2 -1
  579. package/dist/mainstack-design-system613.js +2850 -11
  580. package/dist/mainstack-design-system614.cjs +1 -0
  581. package/dist/mainstack-design-system614.js +61 -0
  582. package/dist/mainstack-design-system615.cjs +1 -0
  583. package/dist/mainstack-design-system615.js +1 -0
  584. package/dist/mainstack-design-system616.cjs +1 -0
  585. package/dist/mainstack-design-system616.js +21 -0
  586. package/dist/mainstack-design-system617.cjs +1 -0
  587. package/dist/mainstack-design-system617.js +13 -0
  588. package/dist/{player-DTiOvJS-.js → player-9cBmgd0O.js} +1 -1
  589. package/dist/{player-DgtZYZny.cjs → player-BUq-Kh2Q.cjs} +1 -1
  590. package/dist/{utils-DLtLUJsL.cjs → utils-C2yfbCx5.cjs} +1 -1
  591. package/dist/{utils-bFB19i-d.js → utils-CfXQiRU1.js} +1 -1
  592. package/package.json +2 -1
@@ -1,2852 +1,2163 @@
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-system590.js";
7
- import { V as vt } from "./index-DJT9m8v7.js";
8
- import { c as Vt } from "./utils-bFB19i-d.js";
9
- import "./mainstack-design-system388.js";
10
- import "./mainstack-design-system389.js";
11
- import "./mainstack-design-system390.js";
12
- import { Button as is } from "./mainstack-design-system391.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;
1
+ import { jsx as Ka, jsxs as gi } from "react/jsx-runtime";
2
+ import bi, { useMemo as F, useRef as J, useReducer as hi, useEffect as X, useCallback as h, forwardRef as yi, useImperativeHandle as wi, Fragment as ki } from "react";
3
+ import { S as ji } from "./index-BtQfgaSF.js";
4
+ import { y as Di, P as s, c as xa } from "./utils-CfXQiRU1.js";
5
+ import { _ as D } from "./tslib.es6-Cm9wiigr.js";
6
+ const zi = /* @__PURE__ */ new Map([
7
+ // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
8
+ ["1km", "application/vnd.1000minds.decision-model+xml"],
9
+ ["3dml", "text/vnd.in3d.3dml"],
10
+ ["3ds", "image/x-3ds"],
11
+ ["3g2", "video/3gpp2"],
12
+ ["3gp", "video/3gp"],
13
+ ["3gpp", "video/3gpp"],
14
+ ["3mf", "model/3mf"],
15
+ ["7z", "application/x-7z-compressed"],
16
+ ["7zip", "application/x-7z-compressed"],
17
+ ["123", "application/vnd.lotus-1-2-3"],
18
+ ["aab", "application/x-authorware-bin"],
19
+ ["aac", "audio/x-acc"],
20
+ ["aam", "application/x-authorware-map"],
21
+ ["aas", "application/x-authorware-seg"],
22
+ ["abw", "application/x-abiword"],
23
+ ["ac", "application/vnd.nokia.n-gage.ac+xml"],
24
+ ["ac3", "audio/ac3"],
25
+ ["acc", "application/vnd.americandynamics.acc"],
26
+ ["ace", "application/x-ace-compressed"],
27
+ ["acu", "application/vnd.acucobol"],
28
+ ["acutc", "application/vnd.acucorp"],
29
+ ["adp", "audio/adpcm"],
30
+ ["aep", "application/vnd.audiograph"],
31
+ ["afm", "application/x-font-type1"],
32
+ ["afp", "application/vnd.ibm.modcap"],
33
+ ["ahead", "application/vnd.ahead.space"],
34
+ ["ai", "application/pdf"],
35
+ ["aif", "audio/x-aiff"],
36
+ ["aifc", "audio/x-aiff"],
37
+ ["aiff", "audio/x-aiff"],
38
+ ["air", "application/vnd.adobe.air-application-installer-package+zip"],
39
+ ["ait", "application/vnd.dvb.ait"],
40
+ ["ami", "application/vnd.amiga.ami"],
41
+ ["amr", "audio/amr"],
42
+ ["apk", "application/vnd.android.package-archive"],
43
+ ["apng", "image/apng"],
44
+ ["appcache", "text/cache-manifest"],
45
+ ["application", "application/x-ms-application"],
46
+ ["apr", "application/vnd.lotus-approach"],
47
+ ["arc", "application/x-freearc"],
48
+ ["arj", "application/x-arj"],
49
+ ["asc", "application/pgp-signature"],
50
+ ["asf", "video/x-ms-asf"],
51
+ ["asm", "text/x-asm"],
52
+ ["aso", "application/vnd.accpac.simply.aso"],
53
+ ["asx", "video/x-ms-asf"],
54
+ ["atc", "application/vnd.acucorp"],
55
+ ["atom", "application/atom+xml"],
56
+ ["atomcat", "application/atomcat+xml"],
57
+ ["atomdeleted", "application/atomdeleted+xml"],
58
+ ["atomsvc", "application/atomsvc+xml"],
59
+ ["atx", "application/vnd.antix.game-component"],
60
+ ["au", "audio/x-au"],
61
+ ["avi", "video/x-msvideo"],
62
+ ["avif", "image/avif"],
63
+ ["aw", "application/applixware"],
64
+ ["azf", "application/vnd.airzip.filesecure.azf"],
65
+ ["azs", "application/vnd.airzip.filesecure.azs"],
66
+ ["azv", "image/vnd.airzip.accelerator.azv"],
67
+ ["azw", "application/vnd.amazon.ebook"],
68
+ ["b16", "image/vnd.pco.b16"],
69
+ ["bat", "application/x-msdownload"],
70
+ ["bcpio", "application/x-bcpio"],
71
+ ["bdf", "application/x-font-bdf"],
72
+ ["bdm", "application/vnd.syncml.dm+wbxml"],
73
+ ["bdoc", "application/x-bdoc"],
74
+ ["bed", "application/vnd.realvnc.bed"],
75
+ ["bh2", "application/vnd.fujitsu.oasysprs"],
76
+ ["bin", "application/octet-stream"],
77
+ ["blb", "application/x-blorb"],
78
+ ["blorb", "application/x-blorb"],
79
+ ["bmi", "application/vnd.bmi"],
80
+ ["bmml", "application/vnd.balsamiq.bmml+xml"],
81
+ ["bmp", "image/bmp"],
82
+ ["book", "application/vnd.framemaker"],
83
+ ["box", "application/vnd.previewsystems.box"],
84
+ ["boz", "application/x-bzip2"],
85
+ ["bpk", "application/octet-stream"],
86
+ ["bpmn", "application/octet-stream"],
87
+ ["bsp", "model/vnd.valve.source.compiled-map"],
88
+ ["btif", "image/prs.btif"],
89
+ ["buffer", "application/octet-stream"],
90
+ ["bz", "application/x-bzip"],
91
+ ["bz2", "application/x-bzip2"],
92
+ ["c", "text/x-c"],
93
+ ["c4d", "application/vnd.clonk.c4group"],
94
+ ["c4f", "application/vnd.clonk.c4group"],
95
+ ["c4g", "application/vnd.clonk.c4group"],
96
+ ["c4p", "application/vnd.clonk.c4group"],
97
+ ["c4u", "application/vnd.clonk.c4group"],
98
+ ["c11amc", "application/vnd.cluetrust.cartomobile-config"],
99
+ ["c11amz", "application/vnd.cluetrust.cartomobile-config-pkg"],
100
+ ["cab", "application/vnd.ms-cab-compressed"],
101
+ ["caf", "audio/x-caf"],
102
+ ["cap", "application/vnd.tcpdump.pcap"],
103
+ ["car", "application/vnd.curl.car"],
104
+ ["cat", "application/vnd.ms-pki.seccat"],
105
+ ["cb7", "application/x-cbr"],
106
+ ["cba", "application/x-cbr"],
107
+ ["cbr", "application/x-cbr"],
108
+ ["cbt", "application/x-cbr"],
109
+ ["cbz", "application/x-cbr"],
110
+ ["cc", "text/x-c"],
111
+ ["cco", "application/x-cocoa"],
112
+ ["cct", "application/x-director"],
113
+ ["ccxml", "application/ccxml+xml"],
114
+ ["cdbcmsg", "application/vnd.contact.cmsg"],
115
+ ["cda", "application/x-cdf"],
116
+ ["cdf", "application/x-netcdf"],
117
+ ["cdfx", "application/cdfx+xml"],
118
+ ["cdkey", "application/vnd.mediastation.cdkey"],
119
+ ["cdmia", "application/cdmi-capability"],
120
+ ["cdmic", "application/cdmi-container"],
121
+ ["cdmid", "application/cdmi-domain"],
122
+ ["cdmio", "application/cdmi-object"],
123
+ ["cdmiq", "application/cdmi-queue"],
124
+ ["cdr", "application/cdr"],
125
+ ["cdx", "chemical/x-cdx"],
126
+ ["cdxml", "application/vnd.chemdraw+xml"],
127
+ ["cdy", "application/vnd.cinderella"],
128
+ ["cer", "application/pkix-cert"],
129
+ ["cfs", "application/x-cfs-compressed"],
130
+ ["cgm", "image/cgm"],
131
+ ["chat", "application/x-chat"],
132
+ ["chm", "application/vnd.ms-htmlhelp"],
133
+ ["chrt", "application/vnd.kde.kchart"],
134
+ ["cif", "chemical/x-cif"],
135
+ ["cii", "application/vnd.anser-web-certificate-issue-initiation"],
136
+ ["cil", "application/vnd.ms-artgalry"],
137
+ ["cjs", "application/node"],
138
+ ["cla", "application/vnd.claymore"],
139
+ ["class", "application/octet-stream"],
140
+ ["clkk", "application/vnd.crick.clicker.keyboard"],
141
+ ["clkp", "application/vnd.crick.clicker.palette"],
142
+ ["clkt", "application/vnd.crick.clicker.template"],
143
+ ["clkw", "application/vnd.crick.clicker.wordbank"],
144
+ ["clkx", "application/vnd.crick.clicker"],
145
+ ["clp", "application/x-msclip"],
146
+ ["cmc", "application/vnd.cosmocaller"],
147
+ ["cmdf", "chemical/x-cmdf"],
148
+ ["cml", "chemical/x-cml"],
149
+ ["cmp", "application/vnd.yellowriver-custom-menu"],
150
+ ["cmx", "image/x-cmx"],
151
+ ["cod", "application/vnd.rim.cod"],
152
+ ["coffee", "text/coffeescript"],
153
+ ["com", "application/x-msdownload"],
154
+ ["conf", "text/plain"],
155
+ ["cpio", "application/x-cpio"],
156
+ ["cpp", "text/x-c"],
157
+ ["cpt", "application/mac-compactpro"],
158
+ ["crd", "application/x-mscardfile"],
159
+ ["crl", "application/pkix-crl"],
160
+ ["crt", "application/x-x509-ca-cert"],
161
+ ["crx", "application/x-chrome-extension"],
162
+ ["cryptonote", "application/vnd.rig.cryptonote"],
163
+ ["csh", "application/x-csh"],
164
+ ["csl", "application/vnd.citationstyles.style+xml"],
165
+ ["csml", "chemical/x-csml"],
166
+ ["csp", "application/vnd.commonspace"],
167
+ ["csr", "application/octet-stream"],
168
+ ["css", "text/css"],
169
+ ["cst", "application/x-director"],
170
+ ["csv", "text/csv"],
171
+ ["cu", "application/cu-seeme"],
172
+ ["curl", "text/vnd.curl"],
173
+ ["cww", "application/prs.cww"],
174
+ ["cxt", "application/x-director"],
175
+ ["cxx", "text/x-c"],
176
+ ["dae", "model/vnd.collada+xml"],
177
+ ["daf", "application/vnd.mobius.daf"],
178
+ ["dart", "application/vnd.dart"],
179
+ ["dataless", "application/vnd.fdsn.seed"],
180
+ ["davmount", "application/davmount+xml"],
181
+ ["dbf", "application/vnd.dbf"],
182
+ ["dbk", "application/docbook+xml"],
183
+ ["dcr", "application/x-director"],
184
+ ["dcurl", "text/vnd.curl.dcurl"],
185
+ ["dd2", "application/vnd.oma.dd2+xml"],
186
+ ["ddd", "application/vnd.fujixerox.ddd"],
187
+ ["ddf", "application/vnd.syncml.dmddf+xml"],
188
+ ["dds", "image/vnd.ms-dds"],
189
+ ["deb", "application/x-debian-package"],
190
+ ["def", "text/plain"],
191
+ ["deploy", "application/octet-stream"],
192
+ ["der", "application/x-x509-ca-cert"],
193
+ ["dfac", "application/vnd.dreamfactory"],
194
+ ["dgc", "application/x-dgc-compressed"],
195
+ ["dic", "text/x-c"],
196
+ ["dir", "application/x-director"],
197
+ ["dis", "application/vnd.mobius.dis"],
198
+ ["disposition-notification", "message/disposition-notification"],
199
+ ["dist", "application/octet-stream"],
200
+ ["distz", "application/octet-stream"],
201
+ ["djv", "image/vnd.djvu"],
202
+ ["djvu", "image/vnd.djvu"],
203
+ ["dll", "application/octet-stream"],
204
+ ["dmg", "application/x-apple-diskimage"],
205
+ ["dmn", "application/octet-stream"],
206
+ ["dmp", "application/vnd.tcpdump.pcap"],
207
+ ["dms", "application/octet-stream"],
208
+ ["dna", "application/vnd.dna"],
209
+ ["doc", "application/msword"],
210
+ ["docm", "application/vnd.ms-word.template.macroEnabled.12"],
211
+ ["docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
212
+ ["dot", "application/msword"],
213
+ ["dotm", "application/vnd.ms-word.template.macroEnabled.12"],
214
+ ["dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"],
215
+ ["dp", "application/vnd.osgi.dp"],
216
+ ["dpg", "application/vnd.dpgraph"],
217
+ ["dra", "audio/vnd.dra"],
218
+ ["drle", "image/dicom-rle"],
219
+ ["dsc", "text/prs.lines.tag"],
220
+ ["dssc", "application/dssc+der"],
221
+ ["dtb", "application/x-dtbook+xml"],
222
+ ["dtd", "application/xml-dtd"],
223
+ ["dts", "audio/vnd.dts"],
224
+ ["dtshd", "audio/vnd.dts.hd"],
225
+ ["dump", "application/octet-stream"],
226
+ ["dvb", "video/vnd.dvb.file"],
227
+ ["dvi", "application/x-dvi"],
228
+ ["dwd", "application/atsc-dwd+xml"],
229
+ ["dwf", "model/vnd.dwf"],
230
+ ["dwg", "image/vnd.dwg"],
231
+ ["dxf", "image/vnd.dxf"],
232
+ ["dxp", "application/vnd.spotfire.dxp"],
233
+ ["dxr", "application/x-director"],
234
+ ["ear", "application/java-archive"],
235
+ ["ecelp4800", "audio/vnd.nuera.ecelp4800"],
236
+ ["ecelp7470", "audio/vnd.nuera.ecelp7470"],
237
+ ["ecelp9600", "audio/vnd.nuera.ecelp9600"],
238
+ ["ecma", "application/ecmascript"],
239
+ ["edm", "application/vnd.novadigm.edm"],
240
+ ["edx", "application/vnd.novadigm.edx"],
241
+ ["efif", "application/vnd.picsel"],
242
+ ["ei6", "application/vnd.pg.osasli"],
243
+ ["elc", "application/octet-stream"],
244
+ ["emf", "image/emf"],
245
+ ["eml", "message/rfc822"],
246
+ ["emma", "application/emma+xml"],
247
+ ["emotionml", "application/emotionml+xml"],
248
+ ["emz", "application/x-msmetafile"],
249
+ ["eol", "audio/vnd.digital-winds"],
250
+ ["eot", "application/vnd.ms-fontobject"],
251
+ ["eps", "application/postscript"],
252
+ ["epub", "application/epub+zip"],
253
+ ["es", "application/ecmascript"],
254
+ ["es3", "application/vnd.eszigno3+xml"],
255
+ ["esa", "application/vnd.osgi.subsystem"],
256
+ ["esf", "application/vnd.epson.esf"],
257
+ ["et3", "application/vnd.eszigno3+xml"],
258
+ ["etx", "text/x-setext"],
259
+ ["eva", "application/x-eva"],
260
+ ["evy", "application/x-envoy"],
261
+ ["exe", "application/octet-stream"],
262
+ ["exi", "application/exi"],
263
+ ["exp", "application/express"],
264
+ ["exr", "image/aces"],
265
+ ["ext", "application/vnd.novadigm.ext"],
266
+ ["ez", "application/andrew-inset"],
267
+ ["ez2", "application/vnd.ezpix-album"],
268
+ ["ez3", "application/vnd.ezpix-package"],
269
+ ["f", "text/x-fortran"],
270
+ ["f4v", "video/mp4"],
271
+ ["f77", "text/x-fortran"],
272
+ ["f90", "text/x-fortran"],
273
+ ["fbs", "image/vnd.fastbidsheet"],
274
+ ["fcdt", "application/vnd.adobe.formscentral.fcdt"],
275
+ ["fcs", "application/vnd.isac.fcs"],
276
+ ["fdf", "application/vnd.fdf"],
277
+ ["fdt", "application/fdt+xml"],
278
+ ["fe_launch", "application/vnd.denovo.fcselayout-link"],
279
+ ["fg5", "application/vnd.fujitsu.oasysgp"],
280
+ ["fgd", "application/x-director"],
281
+ ["fh", "image/x-freehand"],
282
+ ["fh4", "image/x-freehand"],
283
+ ["fh5", "image/x-freehand"],
284
+ ["fh7", "image/x-freehand"],
285
+ ["fhc", "image/x-freehand"],
286
+ ["fig", "application/x-xfig"],
287
+ ["fits", "image/fits"],
288
+ ["flac", "audio/x-flac"],
289
+ ["fli", "video/x-fli"],
290
+ ["flo", "application/vnd.micrografx.flo"],
291
+ ["flv", "video/x-flv"],
292
+ ["flw", "application/vnd.kde.kivio"],
293
+ ["flx", "text/vnd.fmi.flexstor"],
294
+ ["fly", "text/vnd.fly"],
295
+ ["fm", "application/vnd.framemaker"],
296
+ ["fnc", "application/vnd.frogans.fnc"],
297
+ ["fo", "application/vnd.software602.filler.form+xml"],
298
+ ["for", "text/x-fortran"],
299
+ ["fpx", "image/vnd.fpx"],
300
+ ["frame", "application/vnd.framemaker"],
301
+ ["fsc", "application/vnd.fsc.weblaunch"],
302
+ ["fst", "image/vnd.fst"],
303
+ ["ftc", "application/vnd.fluxtime.clip"],
304
+ ["fti", "application/vnd.anser-web-funds-transfer-initiation"],
305
+ ["fvt", "video/vnd.fvt"],
306
+ ["fxp", "application/vnd.adobe.fxp"],
307
+ ["fxpl", "application/vnd.adobe.fxp"],
308
+ ["fzs", "application/vnd.fuzzysheet"],
309
+ ["g2w", "application/vnd.geoplan"],
310
+ ["g3", "image/g3fax"],
311
+ ["g3w", "application/vnd.geospace"],
312
+ ["gac", "application/vnd.groove-account"],
313
+ ["gam", "application/x-tads"],
314
+ ["gbr", "application/rpki-ghostbusters"],
315
+ ["gca", "application/x-gca-compressed"],
316
+ ["gdl", "model/vnd.gdl"],
317
+ ["gdoc", "application/vnd.google-apps.document"],
318
+ ["geo", "application/vnd.dynageo"],
319
+ ["geojson", "application/geo+json"],
320
+ ["gex", "application/vnd.geometry-explorer"],
321
+ ["ggb", "application/vnd.geogebra.file"],
322
+ ["ggt", "application/vnd.geogebra.tool"],
323
+ ["ghf", "application/vnd.groove-help"],
324
+ ["gif", "image/gif"],
325
+ ["gim", "application/vnd.groove-identity-message"],
326
+ ["glb", "model/gltf-binary"],
327
+ ["gltf", "model/gltf+json"],
328
+ ["gml", "application/gml+xml"],
329
+ ["gmx", "application/vnd.gmx"],
330
+ ["gnumeric", "application/x-gnumeric"],
331
+ ["gpg", "application/gpg-keys"],
332
+ ["gph", "application/vnd.flographit"],
333
+ ["gpx", "application/gpx+xml"],
334
+ ["gqf", "application/vnd.grafeq"],
335
+ ["gqs", "application/vnd.grafeq"],
336
+ ["gram", "application/srgs"],
337
+ ["gramps", "application/x-gramps-xml"],
338
+ ["gre", "application/vnd.geometry-explorer"],
339
+ ["grv", "application/vnd.groove-injector"],
340
+ ["grxml", "application/srgs+xml"],
341
+ ["gsf", "application/x-font-ghostscript"],
342
+ ["gsheet", "application/vnd.google-apps.spreadsheet"],
343
+ ["gslides", "application/vnd.google-apps.presentation"],
344
+ ["gtar", "application/x-gtar"],
345
+ ["gtm", "application/vnd.groove-tool-message"],
346
+ ["gtw", "model/vnd.gtw"],
347
+ ["gv", "text/vnd.graphviz"],
348
+ ["gxf", "application/gxf"],
349
+ ["gxt", "application/vnd.geonext"],
350
+ ["gz", "application/gzip"],
351
+ ["gzip", "application/gzip"],
352
+ ["h", "text/x-c"],
353
+ ["h261", "video/h261"],
354
+ ["h263", "video/h263"],
355
+ ["h264", "video/h264"],
356
+ ["hal", "application/vnd.hal+xml"],
357
+ ["hbci", "application/vnd.hbci"],
358
+ ["hbs", "text/x-handlebars-template"],
359
+ ["hdd", "application/x-virtualbox-hdd"],
360
+ ["hdf", "application/x-hdf"],
361
+ ["heic", "image/heic"],
362
+ ["heics", "image/heic-sequence"],
363
+ ["heif", "image/heif"],
364
+ ["heifs", "image/heif-sequence"],
365
+ ["hej2", "image/hej2k"],
366
+ ["held", "application/atsc-held+xml"],
367
+ ["hh", "text/x-c"],
368
+ ["hjson", "application/hjson"],
369
+ ["hlp", "application/winhlp"],
370
+ ["hpgl", "application/vnd.hp-hpgl"],
371
+ ["hpid", "application/vnd.hp-hpid"],
372
+ ["hps", "application/vnd.hp-hps"],
373
+ ["hqx", "application/mac-binhex40"],
374
+ ["hsj2", "image/hsj2"],
375
+ ["htc", "text/x-component"],
376
+ ["htke", "application/vnd.kenameaapp"],
377
+ ["htm", "text/html"],
378
+ ["html", "text/html"],
379
+ ["hvd", "application/vnd.yamaha.hv-dic"],
380
+ ["hvp", "application/vnd.yamaha.hv-voice"],
381
+ ["hvs", "application/vnd.yamaha.hv-script"],
382
+ ["i2g", "application/vnd.intergeo"],
383
+ ["icc", "application/vnd.iccprofile"],
384
+ ["ice", "x-conference/x-cooltalk"],
385
+ ["icm", "application/vnd.iccprofile"],
386
+ ["ico", "image/x-icon"],
387
+ ["ics", "text/calendar"],
388
+ ["ief", "image/ief"],
389
+ ["ifb", "text/calendar"],
390
+ ["ifm", "application/vnd.shana.informed.formdata"],
391
+ ["iges", "model/iges"],
392
+ ["igl", "application/vnd.igloader"],
393
+ ["igm", "application/vnd.insors.igm"],
394
+ ["igs", "model/iges"],
395
+ ["igx", "application/vnd.micrografx.igx"],
396
+ ["iif", "application/vnd.shana.informed.interchange"],
397
+ ["img", "application/octet-stream"],
398
+ ["imp", "application/vnd.accpac.simply.imp"],
399
+ ["ims", "application/vnd.ms-ims"],
400
+ ["in", "text/plain"],
401
+ ["ini", "text/plain"],
402
+ ["ink", "application/inkml+xml"],
403
+ ["inkml", "application/inkml+xml"],
404
+ ["install", "application/x-install-instructions"],
405
+ ["iota", "application/vnd.astraea-software.iota"],
406
+ ["ipfix", "application/ipfix"],
407
+ ["ipk", "application/vnd.shana.informed.package"],
408
+ ["irm", "application/vnd.ibm.rights-management"],
409
+ ["irp", "application/vnd.irepository.package+xml"],
410
+ ["iso", "application/x-iso9660-image"],
411
+ ["itp", "application/vnd.shana.informed.formtemplate"],
412
+ ["its", "application/its+xml"],
413
+ ["ivp", "application/vnd.immervision-ivp"],
414
+ ["ivu", "application/vnd.immervision-ivu"],
415
+ ["jad", "text/vnd.sun.j2me.app-descriptor"],
416
+ ["jade", "text/jade"],
417
+ ["jam", "application/vnd.jam"],
418
+ ["jar", "application/java-archive"],
419
+ ["jardiff", "application/x-java-archive-diff"],
420
+ ["java", "text/x-java-source"],
421
+ ["jhc", "image/jphc"],
422
+ ["jisp", "application/vnd.jisp"],
423
+ ["jls", "image/jls"],
424
+ ["jlt", "application/vnd.hp-jlyt"],
425
+ ["jng", "image/x-jng"],
426
+ ["jnlp", "application/x-java-jnlp-file"],
427
+ ["joda", "application/vnd.joost.joda-archive"],
428
+ ["jp2", "image/jp2"],
429
+ ["jpe", "image/jpeg"],
430
+ ["jpeg", "image/jpeg"],
431
+ ["jpf", "image/jpx"],
432
+ ["jpg", "image/jpeg"],
433
+ ["jpg2", "image/jp2"],
434
+ ["jpgm", "video/jpm"],
435
+ ["jpgv", "video/jpeg"],
436
+ ["jph", "image/jph"],
437
+ ["jpm", "video/jpm"],
438
+ ["jpx", "image/jpx"],
439
+ ["js", "application/javascript"],
440
+ ["json", "application/json"],
441
+ ["json5", "application/json5"],
442
+ ["jsonld", "application/ld+json"],
443
+ // https://jsonlines.org/
444
+ ["jsonl", "application/jsonl"],
445
+ ["jsonml", "application/jsonml+json"],
446
+ ["jsx", "text/jsx"],
447
+ ["jxr", "image/jxr"],
448
+ ["jxra", "image/jxra"],
449
+ ["jxrs", "image/jxrs"],
450
+ ["jxs", "image/jxs"],
451
+ ["jxsc", "image/jxsc"],
452
+ ["jxsi", "image/jxsi"],
453
+ ["jxss", "image/jxss"],
454
+ ["kar", "audio/midi"],
455
+ ["karbon", "application/vnd.kde.karbon"],
456
+ ["kdb", "application/octet-stream"],
457
+ ["kdbx", "application/x-keepass2"],
458
+ ["key", "application/x-iwork-keynote-sffkey"],
459
+ ["kfo", "application/vnd.kde.kformula"],
460
+ ["kia", "application/vnd.kidspiration"],
461
+ ["kml", "application/vnd.google-earth.kml+xml"],
462
+ ["kmz", "application/vnd.google-earth.kmz"],
463
+ ["kne", "application/vnd.kinar"],
464
+ ["knp", "application/vnd.kinar"],
465
+ ["kon", "application/vnd.kde.kontour"],
466
+ ["kpr", "application/vnd.kde.kpresenter"],
467
+ ["kpt", "application/vnd.kde.kpresenter"],
468
+ ["kpxx", "application/vnd.ds-keypoint"],
469
+ ["ksp", "application/vnd.kde.kspread"],
470
+ ["ktr", "application/vnd.kahootz"],
471
+ ["ktx", "image/ktx"],
472
+ ["ktx2", "image/ktx2"],
473
+ ["ktz", "application/vnd.kahootz"],
474
+ ["kwd", "application/vnd.kde.kword"],
475
+ ["kwt", "application/vnd.kde.kword"],
476
+ ["lasxml", "application/vnd.las.las+xml"],
477
+ ["latex", "application/x-latex"],
478
+ ["lbd", "application/vnd.llamagraphics.life-balance.desktop"],
479
+ ["lbe", "application/vnd.llamagraphics.life-balance.exchange+xml"],
480
+ ["les", "application/vnd.hhe.lesson-player"],
481
+ ["less", "text/less"],
482
+ ["lgr", "application/lgr+xml"],
483
+ ["lha", "application/octet-stream"],
484
+ ["link66", "application/vnd.route66.link66+xml"],
485
+ ["list", "text/plain"],
486
+ ["list3820", "application/vnd.ibm.modcap"],
487
+ ["listafp", "application/vnd.ibm.modcap"],
488
+ ["litcoffee", "text/coffeescript"],
489
+ ["lnk", "application/x-ms-shortcut"],
490
+ ["log", "text/plain"],
491
+ ["lostxml", "application/lost+xml"],
492
+ ["lrf", "application/octet-stream"],
493
+ ["lrm", "application/vnd.ms-lrm"],
494
+ ["ltf", "application/vnd.frogans.ltf"],
495
+ ["lua", "text/x-lua"],
496
+ ["luac", "application/x-lua-bytecode"],
497
+ ["lvp", "audio/vnd.lucent.voice"],
498
+ ["lwp", "application/vnd.lotus-wordpro"],
499
+ ["lzh", "application/octet-stream"],
500
+ ["m1v", "video/mpeg"],
501
+ ["m2a", "audio/mpeg"],
502
+ ["m2v", "video/mpeg"],
503
+ ["m3a", "audio/mpeg"],
504
+ ["m3u", "text/plain"],
505
+ ["m3u8", "application/vnd.apple.mpegurl"],
506
+ ["m4a", "audio/x-m4a"],
507
+ ["m4p", "application/mp4"],
508
+ ["m4s", "video/iso.segment"],
509
+ ["m4u", "application/vnd.mpegurl"],
510
+ ["m4v", "video/x-m4v"],
511
+ ["m13", "application/x-msmediaview"],
512
+ ["m14", "application/x-msmediaview"],
513
+ ["m21", "application/mp21"],
514
+ ["ma", "application/mathematica"],
515
+ ["mads", "application/mads+xml"],
516
+ ["maei", "application/mmt-aei+xml"],
517
+ ["mag", "application/vnd.ecowin.chart"],
518
+ ["maker", "application/vnd.framemaker"],
519
+ ["man", "text/troff"],
520
+ ["manifest", "text/cache-manifest"],
521
+ ["map", "application/json"],
522
+ ["mar", "application/octet-stream"],
523
+ ["markdown", "text/markdown"],
524
+ ["mathml", "application/mathml+xml"],
525
+ ["mb", "application/mathematica"],
526
+ ["mbk", "application/vnd.mobius.mbk"],
527
+ ["mbox", "application/mbox"],
528
+ ["mc1", "application/vnd.medcalcdata"],
529
+ ["mcd", "application/vnd.mcd"],
530
+ ["mcurl", "text/vnd.curl.mcurl"],
531
+ ["md", "text/markdown"],
532
+ ["mdb", "application/x-msaccess"],
533
+ ["mdi", "image/vnd.ms-modi"],
534
+ ["mdx", "text/mdx"],
535
+ ["me", "text/troff"],
536
+ ["mesh", "model/mesh"],
537
+ ["meta4", "application/metalink4+xml"],
538
+ ["metalink", "application/metalink+xml"],
539
+ ["mets", "application/mets+xml"],
540
+ ["mfm", "application/vnd.mfmp"],
541
+ ["mft", "application/rpki-manifest"],
542
+ ["mgp", "application/vnd.osgeo.mapguide.package"],
543
+ ["mgz", "application/vnd.proteus.magazine"],
544
+ ["mid", "audio/midi"],
545
+ ["midi", "audio/midi"],
546
+ ["mie", "application/x-mie"],
547
+ ["mif", "application/vnd.mif"],
548
+ ["mime", "message/rfc822"],
549
+ ["mj2", "video/mj2"],
550
+ ["mjp2", "video/mj2"],
551
+ ["mjs", "application/javascript"],
552
+ ["mk3d", "video/x-matroska"],
553
+ ["mka", "audio/x-matroska"],
554
+ ["mkd", "text/x-markdown"],
555
+ ["mks", "video/x-matroska"],
556
+ ["mkv", "video/x-matroska"],
557
+ ["mlp", "application/vnd.dolby.mlp"],
558
+ ["mmd", "application/vnd.chipnuts.karaoke-mmd"],
559
+ ["mmf", "application/vnd.smaf"],
560
+ ["mml", "text/mathml"],
561
+ ["mmr", "image/vnd.fujixerox.edmics-mmr"],
562
+ ["mng", "video/x-mng"],
563
+ ["mny", "application/x-msmoney"],
564
+ ["mobi", "application/x-mobipocket-ebook"],
565
+ ["mods", "application/mods+xml"],
566
+ ["mov", "video/quicktime"],
567
+ ["movie", "video/x-sgi-movie"],
568
+ ["mp2", "audio/mpeg"],
569
+ ["mp2a", "audio/mpeg"],
570
+ ["mp3", "audio/mpeg"],
571
+ ["mp4", "video/mp4"],
572
+ ["mp4a", "audio/mp4"],
573
+ ["mp4s", "application/mp4"],
574
+ ["mp4v", "video/mp4"],
575
+ ["mp21", "application/mp21"],
576
+ ["mpc", "application/vnd.mophun.certificate"],
577
+ ["mpd", "application/dash+xml"],
578
+ ["mpe", "video/mpeg"],
579
+ ["mpeg", "video/mpeg"],
580
+ ["mpg", "video/mpeg"],
581
+ ["mpg4", "video/mp4"],
582
+ ["mpga", "audio/mpeg"],
583
+ ["mpkg", "application/vnd.apple.installer+xml"],
584
+ ["mpm", "application/vnd.blueice.multipass"],
585
+ ["mpn", "application/vnd.mophun.application"],
586
+ ["mpp", "application/vnd.ms-project"],
587
+ ["mpt", "application/vnd.ms-project"],
588
+ ["mpy", "application/vnd.ibm.minipay"],
589
+ ["mqy", "application/vnd.mobius.mqy"],
590
+ ["mrc", "application/marc"],
591
+ ["mrcx", "application/marcxml+xml"],
592
+ ["ms", "text/troff"],
593
+ ["mscml", "application/mediaservercontrol+xml"],
594
+ ["mseed", "application/vnd.fdsn.mseed"],
595
+ ["mseq", "application/vnd.mseq"],
596
+ ["msf", "application/vnd.epson.msf"],
597
+ ["msg", "application/vnd.ms-outlook"],
598
+ ["msh", "model/mesh"],
599
+ ["msi", "application/x-msdownload"],
600
+ ["msl", "application/vnd.mobius.msl"],
601
+ ["msm", "application/octet-stream"],
602
+ ["msp", "application/octet-stream"],
603
+ ["msty", "application/vnd.muvee.style"],
604
+ ["mtl", "model/mtl"],
605
+ ["mts", "model/vnd.mts"],
606
+ ["mus", "application/vnd.musician"],
607
+ ["musd", "application/mmt-usd+xml"],
608
+ ["musicxml", "application/vnd.recordare.musicxml+xml"],
609
+ ["mvb", "application/x-msmediaview"],
610
+ ["mvt", "application/vnd.mapbox-vector-tile"],
611
+ ["mwf", "application/vnd.mfer"],
612
+ ["mxf", "application/mxf"],
613
+ ["mxl", "application/vnd.recordare.musicxml"],
614
+ ["mxmf", "audio/mobile-xmf"],
615
+ ["mxml", "application/xv+xml"],
616
+ ["mxs", "application/vnd.triscape.mxs"],
617
+ ["mxu", "video/vnd.mpegurl"],
618
+ ["n-gage", "application/vnd.nokia.n-gage.symbian.install"],
619
+ ["n3", "text/n3"],
620
+ ["nb", "application/mathematica"],
621
+ ["nbp", "application/vnd.wolfram.player"],
622
+ ["nc", "application/x-netcdf"],
623
+ ["ncx", "application/x-dtbncx+xml"],
624
+ ["nfo", "text/x-nfo"],
625
+ ["ngdat", "application/vnd.nokia.n-gage.data"],
626
+ ["nitf", "application/vnd.nitf"],
627
+ ["nlu", "application/vnd.neurolanguage.nlu"],
628
+ ["nml", "application/vnd.enliven"],
629
+ ["nnd", "application/vnd.noblenet-directory"],
630
+ ["nns", "application/vnd.noblenet-sealer"],
631
+ ["nnw", "application/vnd.noblenet-web"],
632
+ ["npx", "image/vnd.net-fpx"],
633
+ ["nq", "application/n-quads"],
634
+ ["nsc", "application/x-conference"],
635
+ ["nsf", "application/vnd.lotus-notes"],
636
+ ["nt", "application/n-triples"],
637
+ ["ntf", "application/vnd.nitf"],
638
+ ["numbers", "application/x-iwork-numbers-sffnumbers"],
639
+ ["nzb", "application/x-nzb"],
640
+ ["oa2", "application/vnd.fujitsu.oasys2"],
641
+ ["oa3", "application/vnd.fujitsu.oasys3"],
642
+ ["oas", "application/vnd.fujitsu.oasys"],
643
+ ["obd", "application/x-msbinder"],
644
+ ["obgx", "application/vnd.openblox.game+xml"],
645
+ ["obj", "model/obj"],
646
+ ["oda", "application/oda"],
647
+ ["odb", "application/vnd.oasis.opendocument.database"],
648
+ ["odc", "application/vnd.oasis.opendocument.chart"],
649
+ ["odf", "application/vnd.oasis.opendocument.formula"],
650
+ ["odft", "application/vnd.oasis.opendocument.formula-template"],
651
+ ["odg", "application/vnd.oasis.opendocument.graphics"],
652
+ ["odi", "application/vnd.oasis.opendocument.image"],
653
+ ["odm", "application/vnd.oasis.opendocument.text-master"],
654
+ ["odp", "application/vnd.oasis.opendocument.presentation"],
655
+ ["ods", "application/vnd.oasis.opendocument.spreadsheet"],
656
+ ["odt", "application/vnd.oasis.opendocument.text"],
657
+ ["oga", "audio/ogg"],
658
+ ["ogex", "model/vnd.opengex"],
659
+ ["ogg", "audio/ogg"],
660
+ ["ogv", "video/ogg"],
661
+ ["ogx", "application/ogg"],
662
+ ["omdoc", "application/omdoc+xml"],
663
+ ["onepkg", "application/onenote"],
664
+ ["onetmp", "application/onenote"],
665
+ ["onetoc", "application/onenote"],
666
+ ["onetoc2", "application/onenote"],
667
+ ["opf", "application/oebps-package+xml"],
668
+ ["opml", "text/x-opml"],
669
+ ["oprc", "application/vnd.palm"],
670
+ ["opus", "audio/ogg"],
671
+ ["org", "text/x-org"],
672
+ ["osf", "application/vnd.yamaha.openscoreformat"],
673
+ ["osfpvg", "application/vnd.yamaha.openscoreformat.osfpvg+xml"],
674
+ ["osm", "application/vnd.openstreetmap.data+xml"],
675
+ ["otc", "application/vnd.oasis.opendocument.chart-template"],
676
+ ["otf", "font/otf"],
677
+ ["otg", "application/vnd.oasis.opendocument.graphics-template"],
678
+ ["oth", "application/vnd.oasis.opendocument.text-web"],
679
+ ["oti", "application/vnd.oasis.opendocument.image-template"],
680
+ ["otp", "application/vnd.oasis.opendocument.presentation-template"],
681
+ ["ots", "application/vnd.oasis.opendocument.spreadsheet-template"],
682
+ ["ott", "application/vnd.oasis.opendocument.text-template"],
683
+ ["ova", "application/x-virtualbox-ova"],
684
+ ["ovf", "application/x-virtualbox-ovf"],
685
+ ["owl", "application/rdf+xml"],
686
+ ["oxps", "application/oxps"],
687
+ ["oxt", "application/vnd.openofficeorg.extension"],
688
+ ["p", "text/x-pascal"],
689
+ ["p7a", "application/x-pkcs7-signature"],
690
+ ["p7b", "application/x-pkcs7-certificates"],
691
+ ["p7c", "application/pkcs7-mime"],
692
+ ["p7m", "application/pkcs7-mime"],
693
+ ["p7r", "application/x-pkcs7-certreqresp"],
694
+ ["p7s", "application/pkcs7-signature"],
695
+ ["p8", "application/pkcs8"],
696
+ ["p10", "application/x-pkcs10"],
697
+ ["p12", "application/x-pkcs12"],
698
+ ["pac", "application/x-ns-proxy-autoconfig"],
699
+ ["pages", "application/x-iwork-pages-sffpages"],
700
+ ["pas", "text/x-pascal"],
701
+ ["paw", "application/vnd.pawaafile"],
702
+ ["pbd", "application/vnd.powerbuilder6"],
703
+ ["pbm", "image/x-portable-bitmap"],
704
+ ["pcap", "application/vnd.tcpdump.pcap"],
705
+ ["pcf", "application/x-font-pcf"],
706
+ ["pcl", "application/vnd.hp-pcl"],
707
+ ["pclxl", "application/vnd.hp-pclxl"],
708
+ ["pct", "image/x-pict"],
709
+ ["pcurl", "application/vnd.curl.pcurl"],
710
+ ["pcx", "image/x-pcx"],
711
+ ["pdb", "application/x-pilot"],
712
+ ["pde", "text/x-processing"],
713
+ ["pdf", "application/pdf"],
714
+ ["pem", "application/x-x509-user-cert"],
715
+ ["pfa", "application/x-font-type1"],
716
+ ["pfb", "application/x-font-type1"],
717
+ ["pfm", "application/x-font-type1"],
718
+ ["pfr", "application/font-tdpfr"],
719
+ ["pfx", "application/x-pkcs12"],
720
+ ["pgm", "image/x-portable-graymap"],
721
+ ["pgn", "application/x-chess-pgn"],
722
+ ["pgp", "application/pgp"],
723
+ ["php", "application/x-httpd-php"],
724
+ ["php3", "application/x-httpd-php"],
725
+ ["php4", "application/x-httpd-php"],
726
+ ["phps", "application/x-httpd-php-source"],
727
+ ["phtml", "application/x-httpd-php"],
728
+ ["pic", "image/x-pict"],
729
+ ["pkg", "application/octet-stream"],
730
+ ["pki", "application/pkixcmp"],
731
+ ["pkipath", "application/pkix-pkipath"],
732
+ ["pkpass", "application/vnd.apple.pkpass"],
733
+ ["pl", "application/x-perl"],
734
+ ["plb", "application/vnd.3gpp.pic-bw-large"],
735
+ ["plc", "application/vnd.mobius.plc"],
736
+ ["plf", "application/vnd.pocketlearn"],
737
+ ["pls", "application/pls+xml"],
738
+ ["pm", "application/x-perl"],
739
+ ["pml", "application/vnd.ctc-posml"],
740
+ ["png", "image/png"],
741
+ ["pnm", "image/x-portable-anymap"],
742
+ ["portpkg", "application/vnd.macports.portpkg"],
743
+ ["pot", "application/vnd.ms-powerpoint"],
744
+ ["potm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
745
+ ["potx", "application/vnd.openxmlformats-officedocument.presentationml.template"],
746
+ ["ppa", "application/vnd.ms-powerpoint"],
747
+ ["ppam", "application/vnd.ms-powerpoint.addin.macroEnabled.12"],
748
+ ["ppd", "application/vnd.cups-ppd"],
749
+ ["ppm", "image/x-portable-pixmap"],
750
+ ["pps", "application/vnd.ms-powerpoint"],
751
+ ["ppsm", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
752
+ ["ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
753
+ ["ppt", "application/powerpoint"],
754
+ ["pptm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
755
+ ["pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"],
756
+ ["pqa", "application/vnd.palm"],
757
+ ["prc", "application/x-pilot"],
758
+ ["pre", "application/vnd.lotus-freelance"],
759
+ ["prf", "application/pics-rules"],
760
+ ["provx", "application/provenance+xml"],
761
+ ["ps", "application/postscript"],
762
+ ["psb", "application/vnd.3gpp.pic-bw-small"],
763
+ ["psd", "application/x-photoshop"],
764
+ ["psf", "application/x-font-linux-psf"],
765
+ ["pskcxml", "application/pskc+xml"],
766
+ ["pti", "image/prs.pti"],
767
+ ["ptid", "application/vnd.pvi.ptid1"],
768
+ ["pub", "application/x-mspublisher"],
769
+ ["pvb", "application/vnd.3gpp.pic-bw-var"],
770
+ ["pwn", "application/vnd.3m.post-it-notes"],
771
+ ["pya", "audio/vnd.ms-playready.media.pya"],
772
+ ["pyv", "video/vnd.ms-playready.media.pyv"],
773
+ ["qam", "application/vnd.epson.quickanime"],
774
+ ["qbo", "application/vnd.intu.qbo"],
775
+ ["qfx", "application/vnd.intu.qfx"],
776
+ ["qps", "application/vnd.publishare-delta-tree"],
777
+ ["qt", "video/quicktime"],
778
+ ["qwd", "application/vnd.quark.quarkxpress"],
779
+ ["qwt", "application/vnd.quark.quarkxpress"],
780
+ ["qxb", "application/vnd.quark.quarkxpress"],
781
+ ["qxd", "application/vnd.quark.quarkxpress"],
782
+ ["qxl", "application/vnd.quark.quarkxpress"],
783
+ ["qxt", "application/vnd.quark.quarkxpress"],
784
+ ["ra", "audio/x-realaudio"],
785
+ ["ram", "audio/x-pn-realaudio"],
786
+ ["raml", "application/raml+yaml"],
787
+ ["rapd", "application/route-apd+xml"],
788
+ ["rar", "application/x-rar"],
789
+ ["ras", "image/x-cmu-raster"],
790
+ ["rcprofile", "application/vnd.ipunplugged.rcprofile"],
791
+ ["rdf", "application/rdf+xml"],
792
+ ["rdz", "application/vnd.data-vision.rdz"],
793
+ ["relo", "application/p2p-overlay+xml"],
794
+ ["rep", "application/vnd.businessobjects"],
795
+ ["res", "application/x-dtbresource+xml"],
796
+ ["rgb", "image/x-rgb"],
797
+ ["rif", "application/reginfo+xml"],
798
+ ["rip", "audio/vnd.rip"],
799
+ ["ris", "application/x-research-info-systems"],
800
+ ["rl", "application/resource-lists+xml"],
801
+ ["rlc", "image/vnd.fujixerox.edmics-rlc"],
802
+ ["rld", "application/resource-lists-diff+xml"],
803
+ ["rm", "audio/x-pn-realaudio"],
804
+ ["rmi", "audio/midi"],
805
+ ["rmp", "audio/x-pn-realaudio-plugin"],
806
+ ["rms", "application/vnd.jcp.javame.midlet-rms"],
807
+ ["rmvb", "application/vnd.rn-realmedia-vbr"],
808
+ ["rnc", "application/relax-ng-compact-syntax"],
809
+ ["rng", "application/xml"],
810
+ ["roa", "application/rpki-roa"],
811
+ ["roff", "text/troff"],
812
+ ["rp9", "application/vnd.cloanto.rp9"],
813
+ ["rpm", "audio/x-pn-realaudio-plugin"],
814
+ ["rpss", "application/vnd.nokia.radio-presets"],
815
+ ["rpst", "application/vnd.nokia.radio-preset"],
816
+ ["rq", "application/sparql-query"],
817
+ ["rs", "application/rls-services+xml"],
818
+ ["rsa", "application/x-pkcs7"],
819
+ ["rsat", "application/atsc-rsat+xml"],
820
+ ["rsd", "application/rsd+xml"],
821
+ ["rsheet", "application/urc-ressheet+xml"],
822
+ ["rss", "application/rss+xml"],
823
+ ["rtf", "text/rtf"],
824
+ ["rtx", "text/richtext"],
825
+ ["run", "application/x-makeself"],
826
+ ["rusd", "application/route-usd+xml"],
827
+ ["rv", "video/vnd.rn-realvideo"],
828
+ ["s", "text/x-asm"],
829
+ ["s3m", "audio/s3m"],
830
+ ["saf", "application/vnd.yamaha.smaf-audio"],
831
+ ["sass", "text/x-sass"],
832
+ ["sbml", "application/sbml+xml"],
833
+ ["sc", "application/vnd.ibm.secure-container"],
834
+ ["scd", "application/x-msschedule"],
835
+ ["scm", "application/vnd.lotus-screencam"],
836
+ ["scq", "application/scvp-cv-request"],
837
+ ["scs", "application/scvp-cv-response"],
838
+ ["scss", "text/x-scss"],
839
+ ["scurl", "text/vnd.curl.scurl"],
840
+ ["sda", "application/vnd.stardivision.draw"],
841
+ ["sdc", "application/vnd.stardivision.calc"],
842
+ ["sdd", "application/vnd.stardivision.impress"],
843
+ ["sdkd", "application/vnd.solent.sdkm+xml"],
844
+ ["sdkm", "application/vnd.solent.sdkm+xml"],
845
+ ["sdp", "application/sdp"],
846
+ ["sdw", "application/vnd.stardivision.writer"],
847
+ ["sea", "application/octet-stream"],
848
+ ["see", "application/vnd.seemail"],
849
+ ["seed", "application/vnd.fdsn.seed"],
850
+ ["sema", "application/vnd.sema"],
851
+ ["semd", "application/vnd.semd"],
852
+ ["semf", "application/vnd.semf"],
853
+ ["senmlx", "application/senml+xml"],
854
+ ["sensmlx", "application/sensml+xml"],
855
+ ["ser", "application/java-serialized-object"],
856
+ ["setpay", "application/set-payment-initiation"],
857
+ ["setreg", "application/set-registration-initiation"],
858
+ ["sfd-hdstx", "application/vnd.hydrostatix.sof-data"],
859
+ ["sfs", "application/vnd.spotfire.sfs"],
860
+ ["sfv", "text/x-sfv"],
861
+ ["sgi", "image/sgi"],
862
+ ["sgl", "application/vnd.stardivision.writer-global"],
863
+ ["sgm", "text/sgml"],
864
+ ["sgml", "text/sgml"],
865
+ ["sh", "application/x-sh"],
866
+ ["shar", "application/x-shar"],
867
+ ["shex", "text/shex"],
868
+ ["shf", "application/shf+xml"],
869
+ ["shtml", "text/html"],
870
+ ["sid", "image/x-mrsid-image"],
871
+ ["sieve", "application/sieve"],
872
+ ["sig", "application/pgp-signature"],
873
+ ["sil", "audio/silk"],
874
+ ["silo", "model/mesh"],
875
+ ["sis", "application/vnd.symbian.install"],
876
+ ["sisx", "application/vnd.symbian.install"],
877
+ ["sit", "application/x-stuffit"],
878
+ ["sitx", "application/x-stuffitx"],
879
+ ["siv", "application/sieve"],
880
+ ["skd", "application/vnd.koan"],
881
+ ["skm", "application/vnd.koan"],
882
+ ["skp", "application/vnd.koan"],
883
+ ["skt", "application/vnd.koan"],
884
+ ["sldm", "application/vnd.ms-powerpoint.slide.macroenabled.12"],
885
+ ["sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide"],
886
+ ["slim", "text/slim"],
887
+ ["slm", "text/slim"],
888
+ ["sls", "application/route-s-tsid+xml"],
889
+ ["slt", "application/vnd.epson.salt"],
890
+ ["sm", "application/vnd.stepmania.stepchart"],
891
+ ["smf", "application/vnd.stardivision.math"],
892
+ ["smi", "application/smil"],
893
+ ["smil", "application/smil"],
894
+ ["smv", "video/x-smv"],
895
+ ["smzip", "application/vnd.stepmania.package"],
896
+ ["snd", "audio/basic"],
897
+ ["snf", "application/x-font-snf"],
898
+ ["so", "application/octet-stream"],
899
+ ["spc", "application/x-pkcs7-certificates"],
900
+ ["spdx", "text/spdx"],
901
+ ["spf", "application/vnd.yamaha.smaf-phrase"],
902
+ ["spl", "application/x-futuresplash"],
903
+ ["spot", "text/vnd.in3d.spot"],
904
+ ["spp", "application/scvp-vp-response"],
905
+ ["spq", "application/scvp-vp-request"],
906
+ ["spx", "audio/ogg"],
907
+ ["sql", "application/x-sql"],
908
+ ["src", "application/x-wais-source"],
909
+ ["srt", "application/x-subrip"],
910
+ ["sru", "application/sru+xml"],
911
+ ["srx", "application/sparql-results+xml"],
912
+ ["ssdl", "application/ssdl+xml"],
913
+ ["sse", "application/vnd.kodak-descriptor"],
914
+ ["ssf", "application/vnd.epson.ssf"],
915
+ ["ssml", "application/ssml+xml"],
916
+ ["sst", "application/octet-stream"],
917
+ ["st", "application/vnd.sailingtracker.track"],
918
+ ["stc", "application/vnd.sun.xml.calc.template"],
919
+ ["std", "application/vnd.sun.xml.draw.template"],
920
+ ["stf", "application/vnd.wt.stf"],
921
+ ["sti", "application/vnd.sun.xml.impress.template"],
922
+ ["stk", "application/hyperstudio"],
923
+ ["stl", "model/stl"],
924
+ ["stpx", "model/step+xml"],
925
+ ["stpxz", "model/step-xml+zip"],
926
+ ["stpz", "model/step+zip"],
927
+ ["str", "application/vnd.pg.format"],
928
+ ["stw", "application/vnd.sun.xml.writer.template"],
929
+ ["styl", "text/stylus"],
930
+ ["stylus", "text/stylus"],
931
+ ["sub", "text/vnd.dvb.subtitle"],
932
+ ["sus", "application/vnd.sus-calendar"],
933
+ ["susp", "application/vnd.sus-calendar"],
934
+ ["sv4cpio", "application/x-sv4cpio"],
935
+ ["sv4crc", "application/x-sv4crc"],
936
+ ["svc", "application/vnd.dvb.service"],
937
+ ["svd", "application/vnd.svd"],
938
+ ["svg", "image/svg+xml"],
939
+ ["svgz", "image/svg+xml"],
940
+ ["swa", "application/x-director"],
941
+ ["swf", "application/x-shockwave-flash"],
942
+ ["swi", "application/vnd.aristanetworks.swi"],
943
+ ["swidtag", "application/swid+xml"],
944
+ ["sxc", "application/vnd.sun.xml.calc"],
945
+ ["sxd", "application/vnd.sun.xml.draw"],
946
+ ["sxg", "application/vnd.sun.xml.writer.global"],
947
+ ["sxi", "application/vnd.sun.xml.impress"],
948
+ ["sxm", "application/vnd.sun.xml.math"],
949
+ ["sxw", "application/vnd.sun.xml.writer"],
950
+ ["t", "text/troff"],
951
+ ["t3", "application/x-t3vm-image"],
952
+ ["t38", "image/t38"],
953
+ ["taglet", "application/vnd.mynfc"],
954
+ ["tao", "application/vnd.tao.intent-module-archive"],
955
+ ["tap", "image/vnd.tencent.tap"],
956
+ ["tar", "application/x-tar"],
957
+ ["tcap", "application/vnd.3gpp2.tcap"],
958
+ ["tcl", "application/x-tcl"],
959
+ ["td", "application/urc-targetdesc+xml"],
960
+ ["teacher", "application/vnd.smart.teacher"],
961
+ ["tei", "application/tei+xml"],
962
+ ["teicorpus", "application/tei+xml"],
963
+ ["tex", "application/x-tex"],
964
+ ["texi", "application/x-texinfo"],
965
+ ["texinfo", "application/x-texinfo"],
966
+ ["text", "text/plain"],
967
+ ["tfi", "application/thraud+xml"],
968
+ ["tfm", "application/x-tex-tfm"],
969
+ ["tfx", "image/tiff-fx"],
970
+ ["tga", "image/x-tga"],
971
+ ["tgz", "application/x-tar"],
972
+ ["thmx", "application/vnd.ms-officetheme"],
973
+ ["tif", "image/tiff"],
974
+ ["tiff", "image/tiff"],
975
+ ["tk", "application/x-tcl"],
976
+ ["tmo", "application/vnd.tmobile-livetv"],
977
+ ["toml", "application/toml"],
978
+ ["torrent", "application/x-bittorrent"],
979
+ ["tpl", "application/vnd.groove-tool-template"],
980
+ ["tpt", "application/vnd.trid.tpt"],
981
+ ["tr", "text/troff"],
982
+ ["tra", "application/vnd.trueapp"],
983
+ ["trig", "application/trig"],
984
+ ["trm", "application/x-msterminal"],
985
+ ["ts", "video/mp2t"],
986
+ ["tsd", "application/timestamped-data"],
987
+ ["tsv", "text/tab-separated-values"],
988
+ ["ttc", "font/collection"],
989
+ ["ttf", "font/ttf"],
990
+ ["ttl", "text/turtle"],
991
+ ["ttml", "application/ttml+xml"],
992
+ ["twd", "application/vnd.simtech-mindmapper"],
993
+ ["twds", "application/vnd.simtech-mindmapper"],
994
+ ["txd", "application/vnd.genomatix.tuxedo"],
995
+ ["txf", "application/vnd.mobius.txf"],
996
+ ["txt", "text/plain"],
997
+ ["u8dsn", "message/global-delivery-status"],
998
+ ["u8hdr", "message/global-headers"],
999
+ ["u8mdn", "message/global-disposition-notification"],
1000
+ ["u8msg", "message/global"],
1001
+ ["u32", "application/x-authorware-bin"],
1002
+ ["ubj", "application/ubjson"],
1003
+ ["udeb", "application/x-debian-package"],
1004
+ ["ufd", "application/vnd.ufdl"],
1005
+ ["ufdl", "application/vnd.ufdl"],
1006
+ ["ulx", "application/x-glulx"],
1007
+ ["umj", "application/vnd.umajin"],
1008
+ ["unityweb", "application/vnd.unity"],
1009
+ ["uoml", "application/vnd.uoml+xml"],
1010
+ ["uri", "text/uri-list"],
1011
+ ["uris", "text/uri-list"],
1012
+ ["urls", "text/uri-list"],
1013
+ ["usdz", "model/vnd.usdz+zip"],
1014
+ ["ustar", "application/x-ustar"],
1015
+ ["utz", "application/vnd.uiq.theme"],
1016
+ ["uu", "text/x-uuencode"],
1017
+ ["uva", "audio/vnd.dece.audio"],
1018
+ ["uvd", "application/vnd.dece.data"],
1019
+ ["uvf", "application/vnd.dece.data"],
1020
+ ["uvg", "image/vnd.dece.graphic"],
1021
+ ["uvh", "video/vnd.dece.hd"],
1022
+ ["uvi", "image/vnd.dece.graphic"],
1023
+ ["uvm", "video/vnd.dece.mobile"],
1024
+ ["uvp", "video/vnd.dece.pd"],
1025
+ ["uvs", "video/vnd.dece.sd"],
1026
+ ["uvt", "application/vnd.dece.ttml+xml"],
1027
+ ["uvu", "video/vnd.uvvu.mp4"],
1028
+ ["uvv", "video/vnd.dece.video"],
1029
+ ["uvva", "audio/vnd.dece.audio"],
1030
+ ["uvvd", "application/vnd.dece.data"],
1031
+ ["uvvf", "application/vnd.dece.data"],
1032
+ ["uvvg", "image/vnd.dece.graphic"],
1033
+ ["uvvh", "video/vnd.dece.hd"],
1034
+ ["uvvi", "image/vnd.dece.graphic"],
1035
+ ["uvvm", "video/vnd.dece.mobile"],
1036
+ ["uvvp", "video/vnd.dece.pd"],
1037
+ ["uvvs", "video/vnd.dece.sd"],
1038
+ ["uvvt", "application/vnd.dece.ttml+xml"],
1039
+ ["uvvu", "video/vnd.uvvu.mp4"],
1040
+ ["uvvv", "video/vnd.dece.video"],
1041
+ ["uvvx", "application/vnd.dece.unspecified"],
1042
+ ["uvvz", "application/vnd.dece.zip"],
1043
+ ["uvx", "application/vnd.dece.unspecified"],
1044
+ ["uvz", "application/vnd.dece.zip"],
1045
+ ["vbox", "application/x-virtualbox-vbox"],
1046
+ ["vbox-extpack", "application/x-virtualbox-vbox-extpack"],
1047
+ ["vcard", "text/vcard"],
1048
+ ["vcd", "application/x-cdlink"],
1049
+ ["vcf", "text/x-vcard"],
1050
+ ["vcg", "application/vnd.groove-vcard"],
1051
+ ["vcs", "text/x-vcalendar"],
1052
+ ["vcx", "application/vnd.vcx"],
1053
+ ["vdi", "application/x-virtualbox-vdi"],
1054
+ ["vds", "model/vnd.sap.vds"],
1055
+ ["vhd", "application/x-virtualbox-vhd"],
1056
+ ["vis", "application/vnd.visionary"],
1057
+ ["viv", "video/vnd.vivo"],
1058
+ ["vlc", "application/videolan"],
1059
+ ["vmdk", "application/x-virtualbox-vmdk"],
1060
+ ["vob", "video/x-ms-vob"],
1061
+ ["vor", "application/vnd.stardivision.writer"],
1062
+ ["vox", "application/x-authorware-bin"],
1063
+ ["vrml", "model/vrml"],
1064
+ ["vsd", "application/vnd.visio"],
1065
+ ["vsf", "application/vnd.vsf"],
1066
+ ["vss", "application/vnd.visio"],
1067
+ ["vst", "application/vnd.visio"],
1068
+ ["vsw", "application/vnd.visio"],
1069
+ ["vtf", "image/vnd.valve.source.texture"],
1070
+ ["vtt", "text/vtt"],
1071
+ ["vtu", "model/vnd.vtu"],
1072
+ ["vxml", "application/voicexml+xml"],
1073
+ ["w3d", "application/x-director"],
1074
+ ["wad", "application/x-doom"],
1075
+ ["wadl", "application/vnd.sun.wadl+xml"],
1076
+ ["war", "application/java-archive"],
1077
+ ["wasm", "application/wasm"],
1078
+ ["wav", "audio/x-wav"],
1079
+ ["wax", "audio/x-ms-wax"],
1080
+ ["wbmp", "image/vnd.wap.wbmp"],
1081
+ ["wbs", "application/vnd.criticaltools.wbs+xml"],
1082
+ ["wbxml", "application/wbxml"],
1083
+ ["wcm", "application/vnd.ms-works"],
1084
+ ["wdb", "application/vnd.ms-works"],
1085
+ ["wdp", "image/vnd.ms-photo"],
1086
+ ["weba", "audio/webm"],
1087
+ ["webapp", "application/x-web-app-manifest+json"],
1088
+ ["webm", "video/webm"],
1089
+ ["webmanifest", "application/manifest+json"],
1090
+ ["webp", "image/webp"],
1091
+ ["wg", "application/vnd.pmi.widget"],
1092
+ ["wgt", "application/widget"],
1093
+ ["wks", "application/vnd.ms-works"],
1094
+ ["wm", "video/x-ms-wm"],
1095
+ ["wma", "audio/x-ms-wma"],
1096
+ ["wmd", "application/x-ms-wmd"],
1097
+ ["wmf", "image/wmf"],
1098
+ ["wml", "text/vnd.wap.wml"],
1099
+ ["wmlc", "application/wmlc"],
1100
+ ["wmls", "text/vnd.wap.wmlscript"],
1101
+ ["wmlsc", "application/vnd.wap.wmlscriptc"],
1102
+ ["wmv", "video/x-ms-wmv"],
1103
+ ["wmx", "video/x-ms-wmx"],
1104
+ ["wmz", "application/x-msmetafile"],
1105
+ ["woff", "font/woff"],
1106
+ ["woff2", "font/woff2"],
1107
+ ["word", "application/msword"],
1108
+ ["wpd", "application/vnd.wordperfect"],
1109
+ ["wpl", "application/vnd.ms-wpl"],
1110
+ ["wps", "application/vnd.ms-works"],
1111
+ ["wqd", "application/vnd.wqd"],
1112
+ ["wri", "application/x-mswrite"],
1113
+ ["wrl", "model/vrml"],
1114
+ ["wsc", "message/vnd.wfa.wsc"],
1115
+ ["wsdl", "application/wsdl+xml"],
1116
+ ["wspolicy", "application/wspolicy+xml"],
1117
+ ["wtb", "application/vnd.webturbo"],
1118
+ ["wvx", "video/x-ms-wvx"],
1119
+ ["x3d", "model/x3d+xml"],
1120
+ ["x3db", "model/x3d+fastinfoset"],
1121
+ ["x3dbz", "model/x3d+binary"],
1122
+ ["x3dv", "model/x3d-vrml"],
1123
+ ["x3dvz", "model/x3d+vrml"],
1124
+ ["x3dz", "model/x3d+xml"],
1125
+ ["x32", "application/x-authorware-bin"],
1126
+ ["x_b", "model/vnd.parasolid.transmit.binary"],
1127
+ ["x_t", "model/vnd.parasolid.transmit.text"],
1128
+ ["xaml", "application/xaml+xml"],
1129
+ ["xap", "application/x-silverlight-app"],
1130
+ ["xar", "application/vnd.xara"],
1131
+ ["xav", "application/xcap-att+xml"],
1132
+ ["xbap", "application/x-ms-xbap"],
1133
+ ["xbd", "application/vnd.fujixerox.docuworks.binder"],
1134
+ ["xbm", "image/x-xbitmap"],
1135
+ ["xca", "application/xcap-caps+xml"],
1136
+ ["xcs", "application/calendar+xml"],
1137
+ ["xdf", "application/xcap-diff+xml"],
1138
+ ["xdm", "application/vnd.syncml.dm+xml"],
1139
+ ["xdp", "application/vnd.adobe.xdp+xml"],
1140
+ ["xdssc", "application/dssc+xml"],
1141
+ ["xdw", "application/vnd.fujixerox.docuworks"],
1142
+ ["xel", "application/xcap-el+xml"],
1143
+ ["xenc", "application/xenc+xml"],
1144
+ ["xer", "application/patch-ops-error+xml"],
1145
+ ["xfdf", "application/vnd.adobe.xfdf"],
1146
+ ["xfdl", "application/vnd.xfdl"],
1147
+ ["xht", "application/xhtml+xml"],
1148
+ ["xhtml", "application/xhtml+xml"],
1149
+ ["xhvml", "application/xv+xml"],
1150
+ ["xif", "image/vnd.xiff"],
1151
+ ["xl", "application/excel"],
1152
+ ["xla", "application/vnd.ms-excel"],
1153
+ ["xlam", "application/vnd.ms-excel.addin.macroEnabled.12"],
1154
+ ["xlc", "application/vnd.ms-excel"],
1155
+ ["xlf", "application/xliff+xml"],
1156
+ ["xlm", "application/vnd.ms-excel"],
1157
+ ["xls", "application/vnd.ms-excel"],
1158
+ ["xlsb", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
1159
+ ["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
1160
+ ["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
1161
+ ["xlt", "application/vnd.ms-excel"],
1162
+ ["xltm", "application/vnd.ms-excel.template.macroEnabled.12"],
1163
+ ["xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
1164
+ ["xlw", "application/vnd.ms-excel"],
1165
+ ["xm", "audio/xm"],
1166
+ ["xml", "application/xml"],
1167
+ ["xns", "application/xcap-ns+xml"],
1168
+ ["xo", "application/vnd.olpc-sugar"],
1169
+ ["xop", "application/xop+xml"],
1170
+ ["xpi", "application/x-xpinstall"],
1171
+ ["xpl", "application/xproc+xml"],
1172
+ ["xpm", "image/x-xpixmap"],
1173
+ ["xpr", "application/vnd.is-xpr"],
1174
+ ["xps", "application/vnd.ms-xpsdocument"],
1175
+ ["xpw", "application/vnd.intercon.formnet"],
1176
+ ["xpx", "application/vnd.intercon.formnet"],
1177
+ ["xsd", "application/xml"],
1178
+ ["xsl", "application/xml"],
1179
+ ["xslt", "application/xslt+xml"],
1180
+ ["xsm", "application/vnd.syncml+xml"],
1181
+ ["xspf", "application/xspf+xml"],
1182
+ ["xul", "application/vnd.mozilla.xul+xml"],
1183
+ ["xvm", "application/xv+xml"],
1184
+ ["xvml", "application/xv+xml"],
1185
+ ["xwd", "image/x-xwindowdump"],
1186
+ ["xyz", "chemical/x-xyz"],
1187
+ ["xz", "application/x-xz"],
1188
+ ["yaml", "text/yaml"],
1189
+ ["yang", "application/yang"],
1190
+ ["yin", "application/yin+xml"],
1191
+ ["yml", "text/yaml"],
1192
+ ["ymp", "text/x-suse-ymp"],
1193
+ ["z", "application/x-compress"],
1194
+ ["z1", "application/x-zmachine"],
1195
+ ["z2", "application/x-zmachine"],
1196
+ ["z3", "application/x-zmachine"],
1197
+ ["z4", "application/x-zmachine"],
1198
+ ["z5", "application/x-zmachine"],
1199
+ ["z6", "application/x-zmachine"],
1200
+ ["z7", "application/x-zmachine"],
1201
+ ["z8", "application/x-zmachine"],
1202
+ ["zaz", "application/vnd.zzazz.deck+xml"],
1203
+ ["zip", "application/zip"],
1204
+ ["zir", "application/vnd.zul"],
1205
+ ["zirz", "application/vnd.zul"],
1206
+ ["zmm", "application/vnd.handheld-entertainment+xml"],
1207
+ ["zsh", "text/x-scriptzsh"]
1208
+ ]);
1209
+ function _(a, i, t) {
1210
+ const n = Ei(a), { webkitRelativePath: p } = a, o = typeof i == "string" ? i : typeof p == "string" && p.length > 0 ? p : `./${a.name}`;
1211
+ return typeof n.path != "string" && Ha(n, "path", o), Ha(n, "relativePath", o), n;
1212
+ }
1213
+ function Ei(a) {
1214
+ const { name: i } = a;
1215
+ if (i && i.lastIndexOf(".") !== -1 && !a.type) {
1216
+ const n = i.split(".").pop().toLowerCase(), p = zi.get(n);
1217
+ p && Object.defineProperty(a, "type", {
1218
+ value: p,
1219
+ writable: !1,
1220
+ configurable: !1,
1221
+ enumerable: !0
1222
+ });
67
1223
  }
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
1224
  return a;
87
1225
  }
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)), ms = sn(Je), ln = nn(Je), ps = /* @__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: ps,
101
- easeInOut: un,
102
- easeOut: gs,
103
- circIn: Je,
104
- circInOut: ln,
105
- circOut: ms,
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: p, 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), p.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 m = a[S];
189
- return w[S] = (V, C = !1, g = !1) => (n || v(), m.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
- }, mn = (e) => (t) => typeof t == "string" && t.startsWith(e), pn = /* @__PURE__ */ mn("--"), Vs = /* @__PURE__ */ mn("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
228
- };
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
- }, me = /* @__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__ */ me("deg"), q = /* @__PURE__ */ me("%"), d = /* @__PURE__ */ me("px"), Cs = /* @__PURE__ */ me("vh"), Ds = /* @__PURE__ */ me("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
- };
1226
+ function Ha(a, i, t) {
1227
+ Object.defineProperty(a, i, {
1228
+ value: t,
1229
+ writable: !1,
1230
+ configurable: !1,
1231
+ enumerable: !0
1232
+ });
329
1233
  }
330
- function we(e, t) {
331
- return (n) => n > 0 ? t : e;
332
- }
333
- const pe = (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 = pe(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) => pe(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
- };
1234
+ const Ai = [
1235
+ // Thumbnail cache files for macOS and Windows
1236
+ ".DS_Store",
1237
+ // macOs
1238
+ "Thumbs.db"
1239
+ // Windows
1240
+ ];
1241
+ function Oi(a) {
1242
+ return D(this, void 0, void 0, function* () {
1243
+ return Z(a) && Fi(a.dataTransfer) ? qi(a.dataTransfer, a.type) : _i(a) ? Pi(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? Si(a) : [];
1244
+ });
367
1245
  }
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
- };
1246
+ function Fi(a) {
1247
+ return Z(a);
377
1248
  }
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;
1249
+ function _i(a) {
1250
+ return Z(a) && Z(a.target);
385
1251
  }
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" ? pe(e, t, n) : nt(e)(e, t);
1252
+ function Z(a) {
1253
+ return typeof a == "object" && a !== null;
392
1254
  }
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
- };
1255
+ function Pi(a) {
1256
+ return ha(a.target.files).map((i) => _(i));
426
1257
  }
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, p = Ne(c, a), y = Math.exp(-f);
467
- return Fe - h / p * y;
468
- }, r = (c) => {
469
- const f = c * a * e, h = f * n + n, p = 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 - p) * 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;
1258
+ function Si(a) {
1259
+ return D(this, void 0, void 0, function* () {
1260
+ return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => _(t));
477
1261
  });
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
1262
  }
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;
1263
+ function qi(a, i) {
1264
+ return D(this, void 0, void 0, function* () {
1265
+ if (a.items) {
1266
+ const t = ha(a.items).filter((p) => p.kind === "file");
1267
+ if (i !== "drop")
1268
+ return t;
1269
+ const n = yield Promise.all(t.map(Ti));
1270
+ return Wa(ai(n));
533
1271
  }
534
- return t;
1272
+ return Wa(ha(a.files).map((t) => _(t)));
1273
+ });
535
1274
  }
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: p } = 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 m = Ne(T, b);
551
- w = (V) => {
552
- const C = Math.exp(-b * T * V);
553
- return a - C * ((y + b * T * v) / m * Math.sin(m * V) + v * Math.cos(m * V));
554
- };
555
- } else if (b === 1)
556
- w = (m) => a - Math.exp(-T * m) * (v + (y + T * v) * m);
557
- else {
558
- const m = T * Math.sqrt(b * b - 1);
559
- w = (V) => {
560
- const C = Math.exp(-b * T * V), g = Math.min(m * V, 300);
561
- return a - C * ((y + b * T * v) * Math.sinh(g) + m * v * Math.cosh(g)) / m;
562
- };
1275
+ function Wa(a) {
1276
+ return a.filter((i) => Ai.indexOf(i.name) === -1);
1277
+ }
1278
+ function ha(a) {
1279
+ if (a === null)
1280
+ return [];
1281
+ const i = [];
1282
+ for (let t = 0; t < a.length; t++) {
1283
+ const n = a[t];
1284
+ i.push(n);
563
1285
  }
564
- const S = {
565
- calculatedDuration: p && f || null,
566
- next: (m) => {
567
- const V = w(m);
568
- if (p)
569
- o.done = m >= f;
570
- else {
571
- let C = m === 0 ? y : 0;
572
- b < 1 && (C = m === 0 ? /* @__PURE__ */ O(y) : An(w, m, V));
573
- const g = Math.abs(C) <= s, x = Math.abs(a - V) <= i;
574
- o.done = g && x;
1286
+ return i;
1287
+ }
1288
+ function Ti(a) {
1289
+ if (typeof a.webkitGetAsEntry != "function")
1290
+ return Ba(a);
1291
+ const i = a.webkitGetAsEntry();
1292
+ return i && i.isDirectory ? ii(i) : Ba(a, i);
1293
+ }
1294
+ function ai(a) {
1295
+ return a.reduce((i, t) => [
1296
+ ...i,
1297
+ ...Array.isArray(t) ? ai(t) : [t]
1298
+ ], []);
1299
+ }
1300
+ function Ba(a, i) {
1301
+ return D(this, void 0, void 0, function* () {
1302
+ var t;
1303
+ if (globalThis.isSecureContext && typeof a.getAsFileSystemHandle == "function") {
1304
+ const o = yield a.getAsFileSystemHandle();
1305
+ if (o === null)
1306
+ throw new Error(`${a} is not a File`);
1307
+ if (o !== void 0) {
1308
+ const l = yield o.getFile();
1309
+ return l.handle = o, _(l);
575
1310
  }
576
- return o.value = o.done ? a : V, o;
577
- },
578
- toString: () => {
579
- const m = Math.min(st(S), Se), V = Sn((C) => S.next(m * C).value, m, 30);
580
- return m + "ms " + V;
581
- },
582
- toTransition: () => {
583
1311
  }
584
- };
585
- return S;
1312
+ const n = a.getAsFile();
1313
+ if (!n)
1314
+ throw new Error(`${a} is not a File`);
1315
+ return _(n, (t = i?.fullPath) !== null && t !== void 0 ? t : void 0);
1316
+ });
586
1317
  }
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
- }, p = (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 m, V;
604
- const C = (g) => {
605
- p(h.value) && (m = 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 && m === void 0 && (x = !0, S(g), C(g)), m !== void 0 && g >= m ? V.next(g - m) : (!x && S(g), h);
1318
+ function Ci(a) {
1319
+ return D(this, void 0, void 0, function* () {
1320
+ return a.isDirectory ? ii(a) : Ii(a);
1321
+ });
1322
+ }
1323
+ function ii(a) {
1324
+ const i = a.createReader();
1325
+ return new Promise((t, n) => {
1326
+ const p = [];
1327
+ function o() {
1328
+ i.readEntries((l) => D(this, void 0, void 0, function* () {
1329
+ if (l.length) {
1330
+ const r = Promise.all(l.map(Ci));
1331
+ p.push(r), o();
1332
+ } else
1333
+ try {
1334
+ const r = yield Promise.all(p);
1335
+ t(r);
1336
+ } catch (r) {
1337
+ n(r);
1338
+ }
1339
+ }), (l) => {
1340
+ n(l);
1341
+ });
620
1342
  }
621
- };
1343
+ o();
1344
+ });
622
1345
  }
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);
1346
+ function Ii(a) {
1347
+ return D(this, void 0, void 0, function* () {
1348
+ return new Promise((i, t) => {
1349
+ a.file((n) => {
1350
+ const p = _(n, a.fullPath);
1351
+ i(p);
1352
+ }, (n) => {
1353
+ t(n);
1354
+ });
1355
+ });
1356
+ });
1357
+ }
1358
+ var V = {}, Na;
1359
+ function Ri() {
1360
+ return Na || (Na = 1, V.__esModule = !0, V.default = function(a, i) {
1361
+ if (a && i) {
1362
+ var t = Array.isArray(i) ? i : i.split(",");
1363
+ if (t.length === 0)
1364
+ return !0;
1365
+ var n = a.name || "", p = (a.type || "").toLowerCase(), o = p.replace(/\/.*$/, "");
1366
+ return t.some(function(l) {
1367
+ var r = l.trim().toLowerCase();
1368
+ return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : p === r;
1369
+ });
630
1370
  }
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;
1371
+ return !0;
1372
+ }), V;
654
1373
  }
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(pe(n, 1, i));
660
- }
1374
+ var Li = Ri();
1375
+ const ga = /* @__PURE__ */ Di(Li);
1376
+ function Ua(a) {
1377
+ return Ki(a) || $i(a) || ni(a) || Mi();
661
1378
  }
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
- };
1379
+ function Mi() {
1380
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
1381
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
688
1382
  }
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]);
1383
+ function $i(a) {
1384
+ if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
703
1385
  }
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
- }
1386
+ function Ki(a) {
1387
+ if (Array.isArray(a)) return ya(a);
727
1388
  }
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: p, 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, p && (E -= p / o)) : h === "mirror" && (S = a)), w = Y(0, 1, E) * o;
769
- }
770
- const m = A ? { done: !1, value: l[0] } : S.next(w);
771
- r && (m.value = r(m.value));
772
- let { done: V } = m;
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 && (m.value = it(l, this.options, v, this.speed)), b && b(m.value), C && this.finish(), m;
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);
1389
+ function Ya(a, i) {
1390
+ var t = Object.keys(a);
1391
+ if (Object.getOwnPropertySymbols) {
1392
+ var n = Object.getOwnPropertySymbols(a);
1393
+ i && (n = n.filter(function(p) {
1394
+ return Object.getOwnPropertyDescriptor(a, p).enumerable;
1395
+ })), t.push.apply(t, n);
837
1396
  }
1397
+ return t;
838
1398
  }
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);
1399
+ function Ga(a) {
1400
+ for (var i = 1; i < arguments.length; i++) {
1401
+ var t = arguments[i] != null ? arguments[i] : {};
1402
+ i % 2 ? Ya(Object(t), !0).forEach(function(n) {
1403
+ ti(a, n, t[n]);
1404
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ya(Object(t)).forEach(function(n) {
1405
+ Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
959
1406
  });
960
1407
  }
961
- We = !1, Le = !1, G.forEach((e) => e.complete(je)), G.clear();
1408
+ return a;
962
1409
  }
963
- function En() {
964
- G.forEach((e) => {
965
- e.readKeyframes(), e.needsMeasurement && (We = !0);
966
- });
1410
+ function ti(a, i, t) {
1411
+ return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
967
1412
  }
968
- function di() {
969
- je = !0, En(), Fn(), je = !1;
1413
+ function K(a, i) {
1414
+ return Bi(a) || Wi(a, i) || ni(a, i) || Hi();
970
1415
  }
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());
1416
+ function Hi() {
1417
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1418
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1419
+ }
1420
+ function ni(a, i) {
1421
+ if (a) {
1422
+ if (typeof a == "string") return ya(a, i);
1423
+ var t = Object.prototype.toString.call(a).slice(8, -1);
1424
+ if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1425
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ya(a, i);
977
1426
  }
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);
1427
+ }
1428
+ function ya(a, i) {
1429
+ (i == null || i > a.length) && (i = a.length);
1430
+ for (var t = 0, n = new Array(i); t < i; t++)
1431
+ n[t] = a[t];
1432
+ return n;
1433
+ }
1434
+ function Wi(a, i) {
1435
+ var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1436
+ if (t != null) {
1437
+ var n = [], p = !0, o = !1, l, r;
1438
+ try {
1439
+ for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
1440
+ ;
1441
+ } catch (v) {
1442
+ o = !0, r = v;
1443
+ } finally {
1444
+ try {
1445
+ !p && t.return != null && t.return();
1446
+ } finally {
1447
+ if (o) throw r;
987
1448
  }
988
- t[0] === void 0 && (t[0] = a), i && r === void 0 && i.set(t[0]);
989
1449
  }
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();
1450
+ return n;
1008
1451
  }
1009
1452
  }
1010
- const mi = (e) => e.startsWith("--");
1011
- function pi(e, t, n) {
1012
- mi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1453
+ function Bi(a) {
1454
+ if (Array.isArray(a)) return a;
1013
1455
  }
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
1456
+ var Ni = typeof ga == "function" ? ga : ga.default, Ui = "file-invalid-type", Yi = "file-too-large", Gi = "file-too-small", Ji = "too-many-files", Vi = function() {
1457
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), n = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
1458
+ return {
1459
+ code: Ui,
1460
+ message: "File type must be ".concat(n)
1461
+ };
1462
+ }, Ja = function(i) {
1463
+ return {
1464
+ code: Yi,
1465
+ message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1044
1466
  };
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"
1467
+ }, Va = function(i) {
1468
+ return {
1469
+ code: Gi,
1470
+ message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1055
1471
  };
1056
- return c && (h.pseudoElement = c), e.animate(l, h);
1472
+ }, Qi = {
1473
+ code: Ji,
1474
+ message: "Too many files"
1475
+ };
1476
+ function ei(a, i) {
1477
+ var t = a.type === "application/x-moz-file" || Ni(a, i);
1478
+ return [t, t ? null : Vi(i)];
1479
+ }
1480
+ function pi(a, i, t) {
1481
+ if (j(a.size))
1482
+ if (j(i) && j(t)) {
1483
+ if (a.size > t) return [!1, Ja(t)];
1484
+ if (a.size < i) return [!1, Va(i)];
1485
+ } else {
1486
+ if (j(i) && a.size < i) return [!1, Va(i)];
1487
+ if (j(t) && a.size > t) return [!1, Ja(t)];
1488
+ }
1489
+ return [!0, null];
1057
1490
  }
1058
- function lt(e) {
1059
- return typeof e == "function" && "applyToOptions" in e;
1491
+ function j(a) {
1492
+ return a != null;
1060
1493
  }
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);
1494
+ function Xi(a) {
1495
+ var i = a.files, t = a.accept, n = a.minSize, p = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
1496
+ return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(v) {
1497
+ var P = ei(v, t), S = K(P, 1), q = S[0], T = pi(v, n, p), C = K(T, 1), I = C[0], R = r ? r(v) : null;
1498
+ return q && I && !R;
1499
+ });
1063
1500
  }
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) : pi(n, s, l), this.animation.cancel();
1075
- }
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);
1129
- }
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
- }
1501
+ function aa(a) {
1502
+ return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
1155
1503
  }
1156
- const On = {
1157
- anticipate: on,
1158
- backInOut: an,
1159
- circInOut: ln
1160
- };
1161
- function wi(e) {
1162
- return e in On;
1504
+ function Q(a) {
1505
+ return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
1506
+ return i === "Files" || i === "application/x-moz-file";
1507
+ }) : !!a.target && !!a.target.files;
1163
1508
  }
1164
- function Si(e) {
1165
- typeof e.ease == "string" && wi(e.ease) && (e.ease = On[e.ease]);
1509
+ function Qa(a) {
1510
+ a.preventDefault();
1166
1511
  }
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
- }
1512
+ function Zi(a) {
1513
+ return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
1194
1514
  }
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
- }, p = l?.KeyframeResolver || ot;
1255
- this.keyframeResolver = new p(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
- }, p = !c && Fi(h) ? new xi({
1267
- ...h,
1268
- element: h.motionValue.owner.current
1269
- }) : new at(h);
1270
- p.finished.then(() => this.notifyFinished()).catch(Z), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
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(() => {
1515
+ function at(a) {
1516
+ return a.indexOf("Edge/") !== -1;
1517
+ }
1518
+ function it() {
1519
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1520
+ return Zi(a) || at(a);
1521
+ }
1522
+ function y() {
1523
+ for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
1524
+ i[t] = arguments[t];
1525
+ return function(n) {
1526
+ for (var p = arguments.length, o = new Array(p > 1 ? p - 1 : 0), l = 1; l < p; l++)
1527
+ o[l - 1] = arguments[l];
1528
+ return i.some(function(r) {
1529
+ return !aa(n) && r && r.apply(void 0, [n].concat(o)), aa(n);
1277
1530
  });
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
- }
1531
+ };
1321
1532
  }
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");
1533
+ function tt() {
1534
+ return "showOpenFilePicker" in window;
1535
+ }
1536
+ function nt(a) {
1537
+ if (j(a)) {
1538
+ var i = Object.entries(a).filter(function(t) {
1539
+ var n = K(t, 2), p = n[0], o = n[1], l = !0;
1540
+ return oi(p) || (console.warn('Skipped "'.concat(p, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), l = !1), (!Array.isArray(o) || !o.every(ci)) && (console.warn('Skipped "'.concat(p, '" because an invalid file extension was provided.')), l = !1), l;
1541
+ }).reduce(function(t, n) {
1542
+ var p = K(n, 2), o = p[0], l = p[1];
1543
+ return Ga(Ga({}, t), {}, ti({}, o, l));
1544
+ }, {});
1545
+ return [{
1546
+ // description is required due to https://crbug.com/1264708
1547
+ description: "Files",
1548
+ accept: i
1549
+ }];
1385
1550
  }
1551
+ return a;
1386
1552
  }
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;
1553
+ function et(a) {
1554
+ if (j(a))
1555
+ return Object.entries(a).reduce(function(i, t) {
1556
+ var n = K(t, 2), p = n[0], o = n[1];
1557
+ return [].concat(Ua(i), [p], Ua(o));
1558
+ }, []).filter(function(i) {
1559
+ return oi(i) || ci(i);
1560
+ }).join(",");
1394
1561
  }
1395
- class Oi extends Ri {
1396
- then(t, n) {
1397
- return this.finished.finally(t).then(() => {
1398
- });
1399
- }
1562
+ function pt(a) {
1563
+ return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
1400
1564
  }
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
- );
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);
1565
+ function ot(a) {
1566
+ return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
1567
+ }
1568
+ function oi(a) {
1569
+ return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
1570
+ }
1571
+ function ci(a) {
1572
+ return /^.*\.[\w]+$/.test(a);
1573
+ }
1574
+ var ct = ["children"], lt = ["open"], rt = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], st = ["refKey", "onChange", "onClick"];
1575
+ function dt(a) {
1576
+ return vt(a) || ut(a) || li(a) || mt();
1562
1577
  }
1563
- class Yi extends ot {
1564
- constructor(t, n, s, i, r) {
1565
- super(t, n, s, i, r, !0);
1578
+ function mt() {
1579
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
1580
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1581
+ }
1582
+ function ut(a) {
1583
+ if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1584
+ }
1585
+ function vt(a) {
1586
+ if (Array.isArray(a)) return wa(a);
1587
+ }
1588
+ function ba(a, i) {
1589
+ return gt(a) || xt(a, i) || li(a, i) || ft();
1590
+ }
1591
+ function ft() {
1592
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1593
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1594
+ }
1595
+ function li(a, i) {
1596
+ if (a) {
1597
+ if (typeof a == "string") return wa(a, i);
1598
+ var t = Object.prototype.toString.call(a).slice(8, -1);
1599
+ if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1600
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return wa(a, i);
1566
1601
  }
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);
1602
+ }
1603
+ function wa(a, i) {
1604
+ (i == null || i > a.length) && (i = a.length);
1605
+ for (var t = 0, n = new Array(i); t < i; t++)
1606
+ n[t] = a[t];
1607
+ return n;
1608
+ }
1609
+ function xt(a, i) {
1610
+ var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1611
+ if (t != null) {
1612
+ var n = [], p = !0, o = !1, l, r;
1613
+ try {
1614
+ for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
1615
+ ;
1616
+ } catch (v) {
1617
+ o = !0, r = v;
1618
+ } finally {
1619
+ try {
1620
+ !p && t.return != null && t.return();
1621
+ } finally {
1622
+ if (o) throw r;
1577
1623
  }
1578
1624
  }
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);
1625
+ return n;
1595
1626
  }
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);
1627
+ }
1628
+ function gt(a) {
1629
+ if (Array.isArray(a)) return a;
1630
+ }
1631
+ function Xa(a, i) {
1632
+ var t = Object.keys(a);
1633
+ if (Object.getOwnPropertySymbols) {
1634
+ var n = Object.getOwnPropertySymbols(a);
1635
+ i && (n = n.filter(function(p) {
1636
+ return Object.getOwnPropertyDescriptor(a, p).enumerable;
1637
+ })), t.push.apply(t, n);
1603
1638
  }
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();
1639
+ return t;
1640
+ }
1641
+ function d(a) {
1642
+ for (var i = 1; i < arguments.length; i++) {
1643
+ var t = arguments[i] != null ? arguments[i] : {};
1644
+ i % 2 ? Xa(Object(t), !0).forEach(function(n) {
1645
+ ka(a, n, t[n]);
1646
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Xa(Object(t)).forEach(function(n) {
1647
+ Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
1648
+ });
1614
1649
  }
1650
+ return a;
1615
1651
  }
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) : [];
1652
+ function ka(a, i, t) {
1653
+ return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1654
+ }
1655
+ function ia(a, i) {
1656
+ if (a == null) return {};
1657
+ var t = bt(a, i), n, p;
1658
+ if (Object.getOwnPropertySymbols) {
1659
+ var o = Object.getOwnPropertySymbols(a);
1660
+ for (p = 0; p < o.length; p++)
1661
+ n = o[p], !(i.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
1624
1662
  }
1625
- return Array.from(e);
1663
+ return t;
1626
1664
  }
1627
- const Wn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Wt = 30, Xi = (e) => !isNaN(parseFloat(e));
1628
- class qi {
1665
+ function bt(a, i) {
1666
+ if (a == null) return {};
1667
+ var t = {}, n = Object.keys(a), p, o;
1668
+ for (o = 0; o < n.length; o++)
1669
+ p = n[o], !(i.indexOf(p) >= 0) && (t[p] = a[p]);
1670
+ return t;
1671
+ }
1672
+ var Da = /* @__PURE__ */ yi(function(a, i) {
1673
+ var t = a.children, n = ia(a, ct), p = si(n), o = p.open, l = ia(p, lt);
1674
+ return wi(i, function() {
1675
+ return {
1676
+ open: o
1677
+ };
1678
+ }, [o]), /* @__PURE__ */ bi.createElement(ki, null, t(d(d({}, l), {}, {
1679
+ open: o
1680
+ })));
1681
+ });
1682
+ Da.displayName = "Dropzone";
1683
+ var ri = {
1684
+ disabled: !1,
1685
+ getFilesFromEvent: Oi,
1686
+ maxSize: 1 / 0,
1687
+ minSize: 0,
1688
+ multiple: !0,
1689
+ maxFiles: 0,
1690
+ preventDropOnDocument: !0,
1691
+ noClick: !1,
1692
+ noKeyboard: !1,
1693
+ noDrag: !1,
1694
+ noDragEventsBubbling: !1,
1695
+ validator: null,
1696
+ useFsAccessApi: !1,
1697
+ autoFocus: !1
1698
+ };
1699
+ Da.defaultProps = ri;
1700
+ Da.propTypes = {
1629
1701
  /**
1630
- * @param init - The initiating value
1631
- * @param config - Optional configuration options
1702
+ * Render function that exposes the dropzone state and prop getter fns
1632
1703
  *
1633
- * - `transformer`: A function to transform incoming values with.
1704
+ * @param {object} params
1705
+ * @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render
1706
+ * @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render
1707
+ * @param {Function} params.open Open the native file selection dialog
1708
+ * @param {boolean} params.isFocused Dropzone area is in focus
1709
+ * @param {boolean} params.isFileDialogActive File dialog is opened
1710
+ * @param {boolean} params.isDragActive Active drag is in progress
1711
+ * @param {boolean} params.isDragAccept Dragged files are accepted
1712
+ * @param {boolean} params.isDragReject Some dragged files are rejected
1713
+ * @param {File[]} params.acceptedFiles Accepted files
1714
+ * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
1634
1715
  */
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
- }
1716
+ children: s.func,
1649
1717
  /**
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
1718
+ * Set accepted file types.
1719
+ * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
1720
+ * Keep in mind that mime type determination is not reliable across platforms. CSV files,
1721
+ * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
1722
+ * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
1688
1723
  */
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
- }
1724
+ accept: s.objectOf(s.arrayOf(s.string)),
1705
1725
  /**
1706
- * Attaches a passive effect to the `MotionValue`.
1726
+ * Allow drag 'n' drop (or selection from the file dialog) of multiple files
1707
1727
  */
1708
- attach(t, n) {
1709
- this.passiveEffect = t, this.stopPassiveEffect = n;
1710
- }
1728
+ multiple: s.bool,
1711
1729
  /**
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
1730
+ * If false, allow dropped items to take over the current browser window
1725
1731
  */
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
+ preventDropOnDocument: s.bool,
1732
1733
  /**
1733
- * Set the state of the `MotionValue`, stopping any active animations,
1734
- * effects, and resets velocity to `0`.
1734
+ * If true, disables click to open the native file selection dialog
1735
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
- }
1736
+ noClick: s.bool,
1748
1737
  /**
1749
- * Returns the latest state of `MotionValue`
1750
- *
1751
- * @returns - The latest state of `MotionValue`
1752
- *
1753
- * @public
1738
+ * If true, disables SPACE/ENTER to open the native file selection dialog.
1739
+ * Note that it also stops tracking the focus state.
1754
1740
  */
1755
- get() {
1756
- return this.current;
1757
- }
1741
+ noKeyboard: s.bool,
1758
1742
  /**
1759
- * @public
1743
+ * If true, disables drag 'n' drop
1760
1744
  */
1761
- getPrevious() {
1762
- return this.prev;
1763
- }
1745
+ noDrag: s.bool,
1764
1746
  /**
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
1747
+ * If true, stops drag event propagation to parents
1770
1748
  */
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
- }
1749
+ noDragEventsBubbling: s.bool,
1778
1750
  /**
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
1751
+ * Minimum file size (in bytes)
1787
1752
  */
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
- }
1753
+ minSize: s.number,
1795
1754
  /**
1796
- * Stop the currently active animation.
1797
- *
1798
- * @public
1755
+ * Maximum file size (in bytes)
1799
1756
  */
1800
- stop() {
1801
- this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
1802
- }
1757
+ maxSize: s.number,
1803
1758
  /**
1804
- * Returns `true` if this value is currently animating.
1805
- *
1806
- * @public
1759
+ * Maximum accepted number of files
1760
+ * The default value is 0 which means there is no limitation to how many files are accepted.
1807
1761
  */
1808
- isAnimating() {
1809
- return !!this.animation;
1810
- }
1811
- clearAnimation() {
1812
- delete this.animation;
1813
- }
1762
+ maxFiles: s.number,
1814
1763
  /**
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
1764
+ * Enable/disable the dropzone
1822
1765
  */
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 (pn(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 mr = (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 pr(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 {
1766
+ disabled: s.bool,
2061
1767
  /**
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.
1768
+ * Use this to provide a custom file aggregator
2064
1769
  *
2065
- * This isn't an abstract method as it needs calling in the constructor, but it is
2066
- * intended to be one.
1770
+ * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
2067
1771
  */
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 p = f[h];
2083
- u[h] !== void 0 && F(p) && p.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);
2130
- }
2131
- }
2132
- }
2133
- triggerBuild() {
2134
- this.build(this.renderState, this.latestValues, this.props);
2135
- }
1772
+ getFilesFromEvent: s.func,
2136
1773
  /**
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.
1774
+ * Cb for when closing the file dialog with no selection
2140
1775
  */
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
- }
1776
+ onFileDialogCancel: s.func,
2150
1777
  /**
2151
- * Update the provided props. Ensure any newly-added motion values are
2152
- * added to our map, old ones removed, and listeners updated.
1778
+ * Cb for when opening the file dialog
2153
1779
  */
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
- }
1780
+ onFileDialogOpen: s.func,
2167
1781
  /**
2168
- * Returns the variant definition with a given name.
1782
+ * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
1783
+ * to open the file picker instead of using an `<input type="file">` click event.
2169
1784
  */
2170
- getVariant(t) {
2171
- return this.props.variants ? this.props.variants[t] : void 0;
2172
- }
1785
+ useFsAccessApi: s.bool,
2173
1786
  /**
2174
- * Returns the defined default transition on this component.
1787
+ * Set to true to focus the root element on render
2175
1788
  */
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
- }
1789
+ autoFocus: s.bool,
2185
1790
  /**
2186
- * Add a child visual element to our set of children.
1791
+ * Cb for when the `dragenter` event occurs.
1792
+ *
1793
+ * @param {DragEvent} event
2187
1794
  */
2188
- addVariantChild(t) {
2189
- const n = this.getClosestVariantNode();
2190
- if (n)
2191
- return n.variantChildren && n.variantChildren.add(t), () => n.variantChildren.delete(t);
2192
- }
1795
+ onDragEnter: s.func,
2193
1796
  /**
2194
- * Add a motion value and bind it to this visual element.
1797
+ * Cb for when the `dragleave` event occurs
1798
+ *
1799
+ * @param {DragEvent} event
2195
1800
  */
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
- }
1801
+ onDragLeave: s.func,
2200
1802
  /**
2201
- * Remove a motion value and unbind any active subscriptions.
1803
+ * Cb for when the `dragover` event occurs
1804
+ *
1805
+ * @param {DragEvent} event
2202
1806
  */
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
- }
1807
+ onDragOver: s.func,
2208
1808
  /**
2209
- * Check whether we have a motion value for this key
1809
+ * Cb for when the `drop` event occurs.
1810
+ * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
1811
+ *
1812
+ * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.
1813
+ * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.
1814
+ * If `multiple` is set to false and additional files are dropped,
1815
+ * all files besides the first will be rejected.
1816
+ * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.
1817
+ *
1818
+ * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.
1819
+ * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.
1820
+ *
1821
+ * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.
1822
+ * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
1823
+ *
1824
+ * ```js
1825
+ * function onDrop(acceptedFiles) {
1826
+ * const req = request.post('/upload')
1827
+ * acceptedFiles.forEach(file => {
1828
+ * req.attach(file.name, file)
1829
+ * })
1830
+ * req.end(callback)
1831
+ * }
1832
+ * ```
1833
+ *
1834
+ * @param {File[]} acceptedFiles
1835
+ * @param {FileRejection[]} fileRejections
1836
+ * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
2210
1837
  */
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
- }
1838
+ onDrop: s.func,
2220
1839
  /**
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).
1840
+ * Cb for when the `drop` event occurs.
1841
+ * Note that if no files are accepted, this callback is not invoked.
1842
+ *
1843
+ * @param {File[]} files
1844
+ * @param {(DragEvent|Event)} event
2224
1845
  */
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;
2228
- }
1846
+ onDropAccepted: s.func,
2229
1847
  /**
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.
1848
+ * Cb for when the `drop` event occurs.
1849
+ * Note that if no files are rejected, this callback is not invoked.
1850
+ *
1851
+ * @param {FileRejection[]} fileRejections
1852
+ * @param {(DragEvent|Event)} event
2232
1853
  */
2233
- setBaseTarget(t, n) {
2234
- this.baseTarget[t] = n;
2235
- }
1854
+ onDropRejected: s.func,
2236
1855
  /**
2237
- * Find the base target for a value thats been removed from all animation
2238
- * props.
1856
+ * Cb for when there's some error from any of the promises.
1857
+ *
1858
+ * @param {Error} error
2239
1859
  */
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 = (pn(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 pr(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 = mr(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);
1860
+ onError: s.func,
1861
+ /**
1862
+ * Custom validation function. It must return null if there's no errors.
1863
+ * @param {File} file
1864
+ * @returns {FileError|FileError[]|null}
1865
+ */
1866
+ validator: s.func
2467
1867
  };
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 p = {
2481
- delay: n,
2482
- ...In(r || {}, l)
2483
- }, y = f.get();
2484
- if (y !== void 0 && !f.isAnimating && !Array.isArray(h) && h === y && !p.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 && (p.startTime = A, b = !0);
2492
- }
2493
- }
2494
- Or(e, l), f.start(Jn(l, f, h, e.shouldReduceMotion && kn.has(l) ? { type: !1 } : p, 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--);
2527
- }
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: pe(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 p = 0; p < e.length; p++) {
2550
- const y = e[p];
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, m, V, C = 0, g = 0) => {
2562
- const x = ta(S), { delay: E = 0, times: N = Cn(x), type: xe = "keyframes", repeat: ne, repeatType: ma, repeatDelay: pa = 0, ...ts } = m;
2563
- let { ease: $ = t.ease || "easeOut", duration: k } = m;
2564
- const dt = typeof E == "function" ? E(C, g) : E, mt = x.length, pt = lt(xe) ? xe : i?.[xe || "keyframes"];
2565
- if (mt <= 2 && pt) {
2566
- let se = 100;
2567
- if (mt === 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, pt);
2574
- $ = ye.ease, k = ye.duration;
2575
- }
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));
2589
- }
2590
- Hr(N, ne);
1868
+ var ja = {
1869
+ isFocused: !1,
1870
+ isFileDialogActive: !1,
1871
+ isDragActive: !1,
1872
+ isDragAccept: !1,
1873
+ isDragReject: !1,
1874
+ acceptedFiles: [],
1875
+ fileRejections: []
1876
+ };
1877
+ function si() {
1878
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, ri), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, v = i.maxFiles, P = i.onDragEnter, S = i.onDragLeave, q = i.onDragOver, T = i.onDrop, C = i.onDropAccepted, I = i.onDropRejected, R = i.onFileDialogCancel, ta = i.onFileDialogOpen, za = i.useFsAccessApi, Ea = i.autoFocus, na = i.preventDropOnDocument, Aa = i.noClick, ea = i.noKeyboard, Oa = i.noDrag, w = i.noDragEventsBubbling, pa = i.onError, L = i.validator, M = F(function() {
1879
+ return et(t);
1880
+ }, [t]), Fa = F(function() {
1881
+ return nt(t);
1882
+ }, [t]), oa = F(function() {
1883
+ return typeof ta == "function" ? ta : Za;
1884
+ }, [ta]), H = F(function() {
1885
+ return typeof R == "function" ? R : Za;
1886
+ }, [R]), f = J(null), b = J(null), di = hi(ht, ja), _a = ba(di, 2), ca = _a[0], x = _a[1], mi = ca.isFocused, Pa = ca.isFileDialogActive, W = J(typeof window < "u" && window.isSecureContext && za && tt()), Sa = function() {
1887
+ !W.current && Pa && setTimeout(function() {
1888
+ if (b.current) {
1889
+ var c = b.current.files;
1890
+ c.length || (x({
1891
+ type: "closeDialog"
1892
+ }), H());
2591
1893
  }
2592
- const bt = gt + k;
2593
- qr(V, x, $, N, gt, bt), A = Math.max(dt + k, A), h = Math.max(bt, h);
1894
+ }, 300);
1895
+ };
1896
+ X(function() {
1897
+ return window.addEventListener("focus", Sa, !1), function() {
1898
+ window.removeEventListener("focus", Sa, !1);
2594
1899
  };
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), m = S.length;
2600
- for (let V = 0; V < m; 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, m);
1900
+ }, [b, Pa, H, W]);
1901
+ var z = J([]), qa = function(c) {
1902
+ f.current && f.current.contains(c.target) || (c.preventDefault(), z.current = []);
1903
+ };
1904
+ X(function() {
1905
+ return na && (document.addEventListener("dragover", Qa, !1), document.addEventListener("drop", qa, !1)), function() {
1906
+ na && (document.removeEventListener("dragover", Qa), document.removeEventListener("drop", qa));
1907
+ };
1908
+ }, [f, na]), X(function() {
1909
+ return !n && Ea && f.current && f.current.focus(), function() {
1910
+ };
1911
+ }, [f, Ea, n]);
1912
+ var k = h(function(e) {
1913
+ pa ? pa(e) : console.error(e);
1914
+ }, [pa]), Ta = h(function(e) {
1915
+ e.preventDefault(), e.persist(), Y(e), z.current = [].concat(dt(z.current), [e.target]), Q(e) && Promise.resolve(p(e)).then(function(c) {
1916
+ if (!(aa(e) && !w)) {
1917
+ var m = c.length, u = m > 0 && Xi({
1918
+ files: c,
1919
+ accept: M,
1920
+ minSize: l,
1921
+ maxSize: o,
1922
+ multiple: r,
1923
+ maxFiles: v,
1924
+ validator: L
1925
+ }), g = m > 0 && !u;
1926
+ x({
1927
+ isDragAccept: u,
1928
+ isDragReject: g,
1929
+ isDragActive: !0,
1930
+ type: "setDraggedFiles"
1931
+ }), P && P(e);
2605
1932
  }
2606
- }
2607
- l = f, f += A;
2608
- }
2609
- return o.forEach((p, y) => {
2610
- for (const b in p) {
2611
- const v = p[b];
2612
- v.sort(Zr);
2613
- const T = [], A = [], w = [];
2614
- for (let m = 0; m < v.length; m++) {
2615
- const { at: V, value: C, easing: g } = v[m];
2616
- T.push(C), A.push(/* @__PURE__ */ He(0, h, V)), w.push(g || "easeOut");
1933
+ }).catch(function(c) {
1934
+ return k(c);
1935
+ });
1936
+ }, [p, P, k, w, M, l, o, r, v, L]), Ca = h(function(e) {
1937
+ e.preventDefault(), e.persist(), Y(e);
1938
+ var c = Q(e);
1939
+ if (c && e.dataTransfer)
1940
+ try {
1941
+ e.dataTransfer.dropEffect = "copy";
1942
+ } catch {
1943
+ }
1944
+ return c && q && q(e), !1;
1945
+ }, [q, w]), Ia = h(function(e) {
1946
+ e.preventDefault(), e.persist(), Y(e);
1947
+ var c = z.current.filter(function(u) {
1948
+ return f.current && f.current.contains(u);
1949
+ }), m = c.indexOf(e.target);
1950
+ m !== -1 && c.splice(m, 1), z.current = c, !(c.length > 0) && (x({
1951
+ type: "setDraggedFiles",
1952
+ isDragActive: !1,
1953
+ isDragAccept: !1,
1954
+ isDragReject: !1
1955
+ }), Q(e) && S && S(e));
1956
+ }, [f, S, w]), B = h(function(e, c) {
1957
+ var m = [], u = [];
1958
+ e.forEach(function(g) {
1959
+ var $ = ei(g, M), O = ba($, 2), ra = O[0], sa = O[1], da = pi(g, l, o), G = ba(da, 2), ma = G[0], ua = G[1], va = L ? L(g) : null;
1960
+ if (ra && ma && !va)
1961
+ m.push(g);
1962
+ else {
1963
+ var fa = [sa, ua];
1964
+ va && (fa = fa.concat(va)), u.push({
1965
+ file: g,
1966
+ errors: fa.filter(function(xi) {
1967
+ return xi;
1968
+ })
1969
+ });
2617
1970
  }
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: {}
1971
+ }), (!r && m.length > 1 || r && v >= 1 && m.length > v) && (m.forEach(function(g) {
1972
+ u.push({
1973
+ file: g,
1974
+ errors: [Qi]
2621
1975
  });
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
1976
+ }), m.splice(0)), x({
1977
+ acceptedFiles: m,
1978
+ fileRejections: u,
1979
+ isDragReject: u.length > 0,
1980
+ type: "setFiles"
1981
+ }), T && T(m, u, c), u.length > 0 && I && I(u, c), m.length > 0 && C && C(m, c);
1982
+ }, [x, r, M, l, o, v, T, C, I, L]), N = h(function(e) {
1983
+ e.preventDefault(), e.persist(), Y(e), z.current = [], Q(e) && Promise.resolve(p(e)).then(function(c) {
1984
+ aa(e) && !w || B(c, e);
1985
+ }).catch(function(c) {
1986
+ return k(c);
1987
+ }), x({
1988
+ type: "reset"
1989
+ });
1990
+ }, [p, B, k, w]), E = h(function() {
1991
+ if (W.current) {
1992
+ x({
1993
+ type: "openDialog"
1994
+ }), oa();
1995
+ var e = {
1996
+ multiple: r,
1997
+ types: Fa
2629
1998
  };
1999
+ window.showOpenFilePicker(e).then(function(c) {
2000
+ return p(c);
2001
+ }).then(function(c) {
2002
+ B(c, null), x({
2003
+ type: "closeDialog"
2004
+ });
2005
+ }).catch(function(c) {
2006
+ pt(c) ? (H(c), x({
2007
+ type: "closeDialog"
2008
+ })) : ot(c) ? (W.current = !1, b.current ? (b.current.value = null, b.current.click()) : k(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : k(c);
2009
+ });
2010
+ return;
2630
2011
  }
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();
2670
- }
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);
2012
+ b.current && (x({
2013
+ type: "openDialog"
2014
+ }), oa(), b.current.value = null, b.current.click());
2015
+ }, [x, oa, H, za, B, k, Fa, r]), Ra = h(function(e) {
2016
+ !f.current || !f.current.isEqualNode(e.target) || (e.key === " " || e.key === "Enter" || e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(), E());
2017
+ }, [f, E]), La = h(function() {
2018
+ x({
2019
+ type: "focus"
2020
+ });
2021
+ }, []), Ma = h(function() {
2022
+ x({
2023
+ type: "blur"
2024
+ });
2025
+ }, []), $a = h(function() {
2026
+ Aa || (it() ? setTimeout(E, 0) : E());
2027
+ }, [Aa, E]), A = function(c) {
2028
+ return n ? null : c;
2029
+ }, la = function(c) {
2030
+ return ea ? null : A(c);
2031
+ }, U = function(c) {
2032
+ return Oa ? null : A(c);
2033
+ }, Y = function(c) {
2034
+ w && c.stopPropagation();
2035
+ }, ui = F(function() {
2036
+ return function() {
2037
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.role, g = e.onKeyDown, $ = e.onFocus, O = e.onBlur, ra = e.onClick, sa = e.onDragEnter, da = e.onDragOver, G = e.onDragLeave, ma = e.onDrop, ua = ia(e, rt);
2038
+ return d(d(ka({
2039
+ onKeyDown: la(y(g, Ra)),
2040
+ onFocus: la(y($, La)),
2041
+ onBlur: la(y(O, Ma)),
2042
+ onClick: A(y(ra, $a)),
2043
+ onDragEnter: U(y(sa, Ta)),
2044
+ onDragOver: U(y(da, Ca)),
2045
+ onDragLeave: U(y(G, Ia)),
2046
+ onDrop: U(y(ma, N)),
2047
+ role: typeof u == "string" && u !== "" ? u : "presentation"
2048
+ }, m, f), !n && !ea ? {
2049
+ tabIndex: 0
2050
+ } : {}), ua);
2051
+ };
2052
+ }, [f, Ra, La, Ma, $a, Ta, Ca, Ia, N, ea, Oa, n]), vi = h(function(e) {
2053
+ e.stopPropagation();
2054
+ }, []), fi = F(function() {
2055
+ return function() {
2056
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.onChange, g = e.onClick, $ = ia(e, st), O = ka({
2057
+ accept: M,
2058
+ multiple: r,
2059
+ type: "file",
2060
+ style: {
2061
+ border: 0,
2062
+ clip: "rect(0, 0, 0, 0)",
2063
+ clipPath: "inset(50%)",
2064
+ height: "1px",
2065
+ margin: "0 -1px -1px 0",
2066
+ overflow: "hidden",
2067
+ padding: 0,
2068
+ position: "absolute",
2069
+ width: "1px",
2070
+ whiteSpace: "nowrap"
2071
+ },
2072
+ onChange: A(y(u, N)),
2073
+ onClick: A(y(g, vi)),
2074
+ tabIndex: -1
2075
+ }, m, b);
2076
+ return d(d({}, O), $);
2077
+ };
2078
+ }, [b, t, r, N, n]);
2079
+ return d(d({}, ca), {}, {
2080
+ isFocused: mi && !n,
2081
+ getRootProps: ui,
2082
+ getInputProps: fi,
2083
+ rootRef: f,
2084
+ inputRef: b,
2085
+ open: A(E)
2086
+ });
2713
2087
  }
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
- }
2088
+ function ht(a, i) {
2089
+ switch (i.type) {
2090
+ case "focus":
2091
+ return d(d({}, a), {}, {
2092
+ isFocused: !0
2093
+ });
2094
+ case "blur":
2095
+ return d(d({}, a), {}, {
2096
+ isFocused: !1
2097
+ });
2098
+ case "openDialog":
2099
+ return d(d({}, ja), {}, {
2100
+ isFileDialogActive: !0
2101
+ });
2102
+ case "closeDialog":
2103
+ return d(d({}, a), {}, {
2104
+ isFileDialogActive: !1
2105
+ });
2106
+ case "setDraggedFiles":
2107
+ return d(d({}, a), {}, {
2108
+ isDragActive: i.isDragActive,
2109
+ isDragAccept: i.isDragAccept,
2110
+ isDragReject: i.isDragReject
2111
+ });
2112
+ case "setFiles":
2113
+ return d(d({}, a), {}, {
2114
+ acceptedFiles: i.acceptedFiles,
2115
+ fileRejections: i.fileRejections,
2116
+ isDragReject: i.isDragReject
2117
+ });
2118
+ case "reset":
2119
+ return d({}, ja);
2120
+ default:
2121
+ return a;
2729
2122
  }
2730
- return i;
2731
2123
  }
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);
2740
- }
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;
2124
+ function Za() {
2756
2125
  }
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];
2766
- }
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
2126
+ const zt = ({
2127
+ children: a,
2128
+ className: i,
2129
+ asChild: t,
2130
+ getDropzoneRef: n,
2131
+ ...p
2775
2132
  }) => {
2776
- const { open: o, isDesktop: u, onOpenChange: c } = ss(), [l, f] = os(), [h, p] = da();
2777
- return qt(() => {
2778
- o && l ? (async () => await p(
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 p(
2786
- h.current,
2787
- {
2788
- opacity: 0,
2789
- scale: [1, 0]
2790
- },
2791
- { duration: 0.4 }
2792
- ), f && f()))();
2793
- }, [p, 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
- "mds:origin-(--radix-popover-content-transform-origin) mds:p-8 mds:rounded-18 mds:bg-surface-neutral-l1 mds:border-border-interactive-neutral mds:border mds:shadow-200",
2806
- s
2807
- ),
2808
- ref: h,
2809
- children: i
2810
- }
2811
- )
2812
- }
2813
- ) : /* @__PURE__ */ Tt(
2814
- Ae.Content,
2133
+ const o = t ? ji : "div", l = si({
2134
+ ...p
2135
+ }), { getRootProps: r, getInputProps: v } = l;
2136
+ return X(() => {
2137
+ n && n(l);
2138
+ }, [n]), /* @__PURE__ */ Ka(o, { className: xa("mds:h-full mds:w-full", i), children: /* @__PURE__ */ gi(
2139
+ "div",
2815
2140
  {
2816
- "data-slot": "responsive-popover-drawer-content",
2817
- className: "mds:group/drawer-content mds:w-full mds:fixed mds:left-0 mds:bottom-0 mds:z-100 mds:overflow-hidden",
2818
- ...a,
2141
+ ...r({
2142
+ className: xa("mds:relative")
2143
+ }),
2819
2144
  children: [
2820
- /* @__PURE__ */ Tt(
2821
- "div",
2145
+ a,
2146
+ /* @__PURE__ */ Ka(
2147
+ "input",
2822
2148
  {
2823
- className: Vt(
2824
- "mds:m-20 mds:flex mds:h-auto mds:flex-col mds:p-8 mds:rounded-18 mds:bg-surface-neutral-l1 mds:border-border-interactive-neutral mds:border mds: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
- }
2149
+ ...v({
2150
+ type: "file",
2151
+ className: xa(
2152
+ "mds:absolute mds:opacity-0 mds:cursor-pointer mds:w-full! mds:h-full! mds:top-0 mds:left-0 mds:right-0"
2840
2153
  )
2841
- ]
2154
+ })
2842
2155
  }
2843
- ),
2844
- /* @__PURE__ */ W(vt, { children: /* @__PURE__ */ W(Ae.Title, {}) }),
2845
- /* @__PURE__ */ W(vt, { children: /* @__PURE__ */ W(Ae.Description, {}) })
2156
+ )
2846
2157
  ]
2847
2158
  }
2848
- );
2159
+ ) });
2849
2160
  };
2850
2161
  export {
2851
- Da as ResponsivePopoverDrawerContent
2162
+ zt as DropzoneUploadArea
2852
2163
  };