@vlrc-fe/components 3.0.6 → 3.2.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 (532) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +38 -23
  3. package/dist/ConfirmModal.cjs +29 -4
  4. package/dist/ConfirmModal.d.ts.map +1 -1
  5. package/dist/ConfirmModal.js +29 -4
  6. package/dist/DataTable/DataTable.cjs +8 -4
  7. package/dist/DataTable/DataTable.d.ts +1 -1
  8. package/dist/DataTable/DataTable.d.ts.map +1 -1
  9. package/dist/DataTable/DataTable.js +8 -4
  10. package/dist/DataTable/components/DataTableFacetedFilter.cjs +0 -2
  11. package/dist/DataTable/components/DataTableFacetedFilter.js +0 -2
  12. package/dist/DataTable/components/DataTablePagination.cjs +48 -175
  13. package/dist/DataTable/components/DataTablePagination.d.ts +2 -1
  14. package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
  15. package/dist/DataTable/components/DataTablePagination.js +48 -175
  16. package/dist/DataTable/components/DataTableRowActions.cjs +1 -1
  17. package/dist/DataTable/components/DataTableRowActions.js +1 -1
  18. package/dist/DataTable/components/DataTableTable.cjs +43 -78
  19. package/dist/DataTable/components/DataTableTable.d.ts +2 -1
  20. package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
  21. package/dist/DataTable/components/DataTableTable.js +43 -78
  22. package/dist/DataTable/components/DataTableToolbar.cjs +25 -29
  23. package/dist/DataTable/components/DataTableToolbar.d.ts +2 -1
  24. package/dist/DataTable/components/DataTableToolbar.d.ts.map +1 -1
  25. package/dist/DataTable/components/DataTableToolbar.js +25 -29
  26. package/dist/DataTable/render/createColumns.cjs +1 -1
  27. package/dist/DataTable/render/createColumns.js +1 -1
  28. package/dist/DataTable/types.d.ts +3 -0
  29. package/dist/DataTable/types.d.ts.map +1 -1
  30. package/dist/Dropdown/Dropdown.cjs +14 -12
  31. package/dist/Dropdown/Dropdown.js +14 -12
  32. package/dist/FilterPopup/FilterPopup.cjs +289 -0
  33. package/dist/FilterPopup/FilterPopup.d.ts +21 -0
  34. package/dist/FilterPopup/FilterPopup.d.ts.map +1 -0
  35. package/dist/FilterPopup/FilterPopup.js +287 -0
  36. package/dist/FilterPopup/assets/Divider.svg.cjs +3 -0
  37. package/dist/FilterPopup/assets/Divider.svg.js +3 -0
  38. package/dist/FilterPopup/assets/IconCheck.svg.cjs +3 -0
  39. package/dist/FilterPopup/assets/IconCheck.svg.js +3 -0
  40. package/dist/FilterPopup/assets/IconClose.svg.cjs +3 -0
  41. package/dist/FilterPopup/assets/IconClose.svg.js +3 -0
  42. package/dist/FilterPopup/assets/IconSearch.svg.cjs +3 -0
  43. package/dist/FilterPopup/assets/IconSearch.svg.js +3 -0
  44. package/dist/FilterPopup/index.d.ts +3 -0
  45. package/dist/FilterPopup/index.d.ts.map +1 -0
  46. package/dist/FilterPopup/styles.cjs +151 -0
  47. package/dist/FilterPopup/styles.d.ts +134 -0
  48. package/dist/FilterPopup/styles.d.ts.map +1 -0
  49. package/dist/FilterPopup/styles.js +149 -0
  50. package/dist/FilterPopup/types.d.ts +13 -0
  51. package/dist/FilterPopup/types.d.ts.map +1 -0
  52. package/dist/Form/Form.cjs +7 -6
  53. package/dist/Form/Form.d.ts.map +1 -1
  54. package/dist/Form/Form.js +6 -5
  55. package/dist/Form/FormDatePicker/DatePickerTrigger.cjs +263 -0
  56. package/dist/Form/FormDatePicker/DatePickerTrigger.d.ts +111 -0
  57. package/dist/Form/FormDatePicker/DatePickerTrigger.d.ts.map +1 -0
  58. package/dist/Form/FormDatePicker/DatePickerTrigger.js +259 -0
  59. package/dist/Form/FormDatePicker/FormDatePicker.cjs +65 -66
  60. package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
  61. package/dist/Form/FormDatePicker/FormDatePicker.js +66 -65
  62. package/dist/Form/FormDatePicker/RangeDatePicker.cjs +25 -68
  63. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +5 -2
  64. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
  65. package/dist/Form/FormDatePicker/RangeDatePicker.js +26 -69
  66. package/dist/Form/FormDatePicker/SingleDatePicker.cjs +43 -66
  67. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +5 -2
  68. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
  69. package/dist/Form/FormDatePicker/SingleDatePicker.js +44 -67
  70. package/dist/Form/FormDatePicker/TimeInput.cjs +44 -59
  71. package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
  72. package/dist/Form/FormDatePicker/TimeInput.js +44 -59
  73. package/dist/Form/FormDatePicker/TimePicker.cjs +39 -17
  74. package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
  75. package/dist/Form/FormDatePicker/TimePicker.js +39 -17
  76. package/dist/Form/FormDatePicker/types.d.ts +5 -0
  77. package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
  78. package/dist/Form/FormDatePicker/useFormDatePicker.cjs +3 -4
  79. package/dist/Form/FormDatePicker/useFormDatePicker.js +1 -2
  80. package/dist/Form/FormFileUpload/FileUpload.cjs +24 -29
  81. package/dist/Form/FormFileUpload/FileUpload.js +24 -29
  82. package/dist/Form/FormFileUpload/index.cjs +2 -2
  83. package/dist/Form/FormFileUpload/index.js +1 -1
  84. package/dist/Form/FormMultiSelect/FormMultiSelect.d.ts +6 -1
  85. package/dist/Form/FormMultiSelect/FormMultiSelect.d.ts.map +1 -1
  86. package/dist/Form/FormNumberInput/FormNumberInput.cjs +21 -11
  87. package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -1
  88. package/dist/Form/FormNumberInput/FormNumberInput.js +20 -10
  89. package/dist/Form/FormSelect/FormSelect.cjs +45 -18
  90. package/dist/Form/FormSelect/FormSelect.js +45 -18
  91. package/dist/Form/FormSelect/types.d.ts +2 -0
  92. package/dist/Form/FormSelect/types.d.ts.map +1 -1
  93. package/dist/Icons/Icons.cjs +51 -0
  94. package/dist/Icons/Icons.d.ts +50 -0
  95. package/dist/Icons/Icons.d.ts.map +1 -1
  96. package/dist/Icons/Icons.js +52 -1
  97. package/dist/Icons/JiraIcons.cjs +350 -0
  98. package/dist/Icons/JiraIcons.d.ts +25 -0
  99. package/dist/Icons/JiraIcons.d.ts.map +1 -0
  100. package/dist/Icons/JiraIcons.js +346 -0
  101. package/dist/Icons/index.cjs +11 -0
  102. package/dist/Icons/index.d.ts +1 -0
  103. package/dist/Icons/index.d.ts.map +1 -1
  104. package/dist/Icons/index.js +3 -0
  105. package/dist/MultiSelect/MultiSelect.cjs +20 -9
  106. package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
  107. package/dist/MultiSelect/MultiSelect.js +20 -9
  108. package/dist/MultiSelect/renderers.cjs +95 -52
  109. package/dist/MultiSelect/renderers.d.ts.map +1 -1
  110. package/dist/MultiSelect/renderers.js +95 -52
  111. package/dist/Select/BaseSelect.cjs +75 -24
  112. package/dist/Select/BaseSelect.d.ts.map +1 -1
  113. package/dist/Select/BaseSelect.js +76 -25
  114. package/dist/Select/MultiSelectTags.cjs +0 -1
  115. package/dist/Select/MultiSelectTags.d.ts.map +1 -1
  116. package/dist/Select/MultiSelectTags.js +0 -1
  117. package/dist/Select/type.d.ts +1 -0
  118. package/dist/Select/type.d.ts.map +1 -1
  119. package/dist/Tag/Tag.cjs +154 -0
  120. package/dist/Tag/Tag.d.ts +19 -0
  121. package/dist/Tag/Tag.d.ts.map +1 -0
  122. package/dist/Tag/Tag.js +151 -0
  123. package/dist/Tag/index.d.ts +3 -0
  124. package/dist/Tag/index.d.ts.map +1 -0
  125. package/dist/Typography/Blockquote.cjs +2 -1
  126. package/dist/Typography/Blockquote.d.ts +1 -1
  127. package/dist/Typography/Blockquote.d.ts.map +1 -1
  128. package/dist/Typography/Blockquote.js +2 -1
  129. package/dist/Typography/Code.cjs +2 -2
  130. package/dist/Typography/Code.d.ts +1 -1
  131. package/dist/Typography/Code.d.ts.map +1 -1
  132. package/dist/Typography/Code.js +2 -2
  133. package/dist/Typography/Link.cjs +2 -1
  134. package/dist/Typography/Link.d.ts +1 -1
  135. package/dist/Typography/Link.d.ts.map +1 -1
  136. package/dist/Typography/Link.js +2 -1
  137. package/dist/Typography/Paragraph.cjs +2 -1
  138. package/dist/Typography/Paragraph.d.ts +1 -1
  139. package/dist/Typography/Paragraph.d.ts.map +1 -1
  140. package/dist/Typography/Paragraph.js +2 -1
  141. package/dist/Typography/Text.cjs +2 -1
  142. package/dist/Typography/Text.d.ts +1 -1
  143. package/dist/Typography/Text.d.ts.map +1 -1
  144. package/dist/Typography/Text.js +2 -1
  145. package/dist/Typography/types.d.ts +2 -0
  146. package/dist/Typography/types.d.ts.map +1 -1
  147. package/dist/assets/stylex.css +313 -43
  148. package/dist/index.cjs +29 -7
  149. package/dist/index.d.ts +7 -2
  150. package/dist/index.d.ts.map +1 -1
  151. package/dist/index.js +16 -12
  152. package/dist/layout/index.js +2 -2
  153. package/dist/stylex-config.cjs +56 -0
  154. package/dist/stylex-config.d.ts +14 -0
  155. package/dist/stylex-config.d.ts.map +1 -0
  156. package/dist/stylex-config.js +55 -0
  157. package/dist/theme/index.cjs +4 -0
  158. package/dist/theme/index.js +4 -2
  159. package/dist/theme/tokens.stylex.cjs +34 -0
  160. package/dist/theme/tokens.stylex.d.ts +53 -0
  161. package/dist/theme/tokens.stylex.d.ts.map +1 -1
  162. package/dist/theme/tokens.stylex.js +33 -1
  163. package/dist/theme.css +339 -50
  164. package/dist/ui/accordion.cjs +0 -1
  165. package/dist/ui/accordion.d.ts.map +1 -1
  166. package/dist/ui/accordion.js +0 -1
  167. package/dist/ui/alert-dialog.cjs +11 -11
  168. package/dist/ui/alert-dialog.js +9 -9
  169. package/dist/ui/aspect-ratio.cjs +2 -2
  170. package/dist/ui/aspect-ratio.js +1 -1
  171. package/dist/ui/avatar.cjs +110 -41
  172. package/dist/ui/avatar.d.ts +7 -1
  173. package/dist/ui/avatar.d.ts.map +1 -1
  174. package/dist/ui/avatar.js +110 -41
  175. package/dist/ui/badge-overflow.cjs +33 -8
  176. package/dist/ui/badge-overflow.d.ts.map +1 -1
  177. package/dist/ui/badge-overflow.js +33 -8
  178. package/dist/ui/breadcrumb.cjs +18 -8
  179. package/dist/ui/breadcrumb.d.ts.map +1 -1
  180. package/dist/ui/breadcrumb.js +18 -8
  181. package/dist/ui/button.cjs +3 -3
  182. package/dist/ui/button.js +3 -3
  183. package/dist/ui/card.cjs +23 -88
  184. package/dist/ui/card.d.ts +11 -4
  185. package/dist/ui/card.d.ts.map +1 -1
  186. package/dist/ui/card.js +23 -88
  187. package/dist/ui/carousel.cjs +27 -8
  188. package/dist/ui/carousel.d.ts.map +1 -1
  189. package/dist/ui/carousel.js +25 -7
  190. package/dist/ui/checkbox.cjs +2 -2
  191. package/dist/ui/checkbox.d.ts +3 -2
  192. package/dist/ui/checkbox.d.ts.map +1 -1
  193. package/dist/ui/checkbox.js +2 -2
  194. package/dist/ui/code-block.cjs +6 -12
  195. package/dist/ui/code-block.js +6 -12
  196. package/dist/ui/collapsible.cjs +4 -4
  197. package/dist/ui/collapsible.js +6 -6
  198. package/dist/ui/command.cjs +1 -2
  199. package/dist/ui/command.d.ts.map +1 -1
  200. package/dist/ui/command.js +1 -2
  201. package/dist/ui/context-menu.cjs +42 -48
  202. package/dist/ui/context-menu.d.ts.map +1 -1
  203. package/dist/ui/context-menu.js +41 -47
  204. package/dist/ui/copy-button.cjs +0 -1
  205. package/dist/ui/copy-button.js +0 -1
  206. package/dist/ui/dialog.cjs +3 -3
  207. package/dist/ui/dialog.js +3 -3
  208. package/dist/ui/drawer.cjs +9 -9
  209. package/dist/ui/drawer.js +11 -11
  210. package/dist/ui/dropdown-menu.cjs +4 -4
  211. package/dist/ui/dropdown-menu.d.ts +3 -1
  212. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  213. package/dist/ui/dropdown-menu.js +4 -4
  214. package/dist/ui/editable.cjs +0 -1
  215. package/dist/ui/editable.d.ts.map +1 -1
  216. package/dist/ui/editable.js +0 -1
  217. package/dist/ui/empty.cjs +6 -5
  218. package/dist/ui/empty.d.ts +2 -0
  219. package/dist/ui/empty.d.ts.map +1 -1
  220. package/dist/ui/empty.js +6 -6
  221. package/dist/ui/field.cjs +0 -2
  222. package/dist/ui/field.d.ts.map +1 -1
  223. package/dist/ui/field.js +0 -2
  224. package/dist/ui/file-upload.cjs +88 -85
  225. package/dist/ui/file-upload.d.ts +1 -0
  226. package/dist/ui/file-upload.d.ts.map +1 -1
  227. package/dist/ui/file-upload.js +88 -86
  228. package/dist/ui/form.cjs +54 -66
  229. package/dist/ui/form.d.ts.map +1 -1
  230. package/dist/ui/form.js +50 -62
  231. package/dist/ui/hover-card.cjs +5 -5
  232. package/dist/ui/hover-card.js +3 -3
  233. package/dist/ui/input-group.cjs +0 -1
  234. package/dist/ui/input-group.d.ts.map +1 -1
  235. package/dist/ui/input-group.js +0 -1
  236. package/dist/ui/input-otp.cjs +3 -3
  237. package/dist/ui/input-otp.js +3 -3
  238. package/dist/ui/input.cjs +69 -7
  239. package/dist/ui/input.d.ts +3 -1
  240. package/dist/ui/input.d.ts.map +1 -1
  241. package/dist/ui/input.js +69 -7
  242. package/dist/ui/kbd.cjs +22 -16
  243. package/dist/ui/kbd.d.ts.map +1 -1
  244. package/dist/ui/kbd.js +22 -16
  245. package/dist/ui/menubar.cjs +42 -48
  246. package/dist/ui/menubar.d.ts.map +1 -1
  247. package/dist/ui/menubar.js +40 -46
  248. package/dist/ui/navigation-menu.cjs +9 -9
  249. package/dist/ui/navigation-menu.js +4 -4
  250. package/dist/ui/pagination.cjs +7 -7
  251. package/dist/ui/pagination.d.ts.map +1 -1
  252. package/dist/ui/pagination.js +7 -7
  253. package/dist/ui/popover.cjs +6 -1
  254. package/dist/ui/popover.d.ts +3 -1
  255. package/dist/ui/popover.d.ts.map +1 -1
  256. package/dist/ui/popover.js +6 -1
  257. package/dist/ui/progress.cjs +27 -12
  258. package/dist/ui/progress.d.ts +3 -1
  259. package/dist/ui/progress.d.ts.map +1 -1
  260. package/dist/ui/progress.js +27 -12
  261. package/dist/ui/resizable.cjs +4 -4
  262. package/dist/ui/resizable.js +1 -1
  263. package/dist/ui/responsive-dialog.cjs +1 -1
  264. package/dist/ui/responsive-dialog.js +1 -1
  265. package/dist/ui/scroll-area.cjs +4 -2
  266. package/dist/ui/scroll-area.d.ts.map +1 -1
  267. package/dist/ui/scroll-area.js +4 -2
  268. package/dist/ui/segmented.cjs +19 -10
  269. package/dist/ui/segmented.d.ts.map +1 -1
  270. package/dist/ui/segmented.js +20 -11
  271. package/dist/ui/sheet.cjs +1 -1
  272. package/dist/ui/sheet.js +1 -1
  273. package/dist/ui/sidebar.cjs +9 -5
  274. package/dist/ui/sidebar.d.ts.map +1 -1
  275. package/dist/ui/sidebar.js +9 -5
  276. package/dist/ui/signature-pad.cjs +3 -0
  277. package/dist/ui/signature-pad.d.ts.map +1 -1
  278. package/dist/ui/signature-pad.js +3 -0
  279. package/dist/ui/slider.cjs +7 -8
  280. package/dist/ui/slider.js +7 -8
  281. package/dist/ui/sonner.cjs +6 -0
  282. package/dist/ui/sonner.d.ts +1 -0
  283. package/dist/ui/sonner.d.ts.map +1 -1
  284. package/dist/ui/sonner.js +2 -2
  285. package/dist/ui/stat.cjs +2 -3
  286. package/dist/ui/stat.d.ts.map +1 -1
  287. package/dist/ui/stat.js +2 -3
  288. package/dist/ui/stepper.cjs +107 -70
  289. package/dist/ui/stepper.d.ts +2 -2
  290. package/dist/ui/stepper.d.ts.map +1 -1
  291. package/dist/ui/stepper.js +108 -71
  292. package/dist/ui/switch.cjs +3 -3
  293. package/dist/ui/switch.js +3 -3
  294. package/dist/ui/tabs.cjs +150 -64
  295. package/dist/ui/tabs.d.ts +34 -5
  296. package/dist/ui/tabs.d.ts.map +1 -1
  297. package/dist/ui/tabs.js +148 -62
  298. package/dist/ui/timeline.cjs +2 -3
  299. package/dist/ui/timeline.d.ts.map +1 -1
  300. package/dist/ui/timeline.js +2 -3
  301. package/dist/ui/toggle-group.cjs +3 -3
  302. package/dist/ui/toggle-group.js +3 -3
  303. package/dist/ui/toggle.cjs +2 -2
  304. package/dist/ui/toggle.js +1 -1
  305. package/dist/ui/tooltip.cjs +61 -11
  306. package/dist/ui/tooltip.d.ts +10 -2
  307. package/dist/ui/tooltip.d.ts.map +1 -1
  308. package/dist/ui/tooltip.js +61 -11
  309. package/dist/utils.cjs +72 -0
  310. package/dist/utils.d.ts +63 -1
  311. package/dist/utils.d.ts.map +1 -1
  312. package/dist/utils.js +68 -1
  313. package/dist/vlrc-theme.css +21 -1
  314. package/package.json +22 -4
  315. package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +0 -551
  316. package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -542
  317. package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +0 -546
  318. package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -537
  319. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +0 -330
  320. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -319
  321. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +0 -150
  322. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +0 -132
  323. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -113
  324. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
  325. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.cjs +0 -11
  326. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.js +0 -11
  327. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.cjs +0 -48
  328. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js +0 -43
  329. package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +0 -145
  330. package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -125
  331. package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs +0 -38
  332. package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +0 -34
  333. package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.cjs +0 -126
  334. package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.js +0 -118
  335. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.cjs +0 -134
  336. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -128
  337. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.cjs +0 -541
  338. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.js +0 -537
  339. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -39
  340. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -35
  341. package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.cjs +0 -304
  342. package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -272
  343. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.cjs +0 -108
  344. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.js +0 -104
  345. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.cjs +0 -19
  346. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.js +0 -16
  347. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +0 -275
  348. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -271
  349. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +0 -53
  350. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -48
  351. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +0 -215
  352. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -212
  353. package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.cjs +0 -219
  354. package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -209
  355. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.cjs +0 -22
  356. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.js +0 -19
  357. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.cjs +0 -802
  358. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.js +0 -769
  359. package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.cjs +0 -410
  360. package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.js +0 -376
  361. package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +0 -741
  362. package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.js +0 -722
  363. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.cjs +0 -246
  364. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.js +0 -237
  365. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.cjs +0 -27
  366. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.js +0 -23
  367. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.cjs +0 -148
  368. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.js +0 -145
  369. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -55
  370. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.js +0 -50
  371. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +0 -223
  372. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -216
  373. package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.cjs +0 -576
  374. package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.js +0 -560
  375. package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.cjs +0 -202
  376. package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.js +0 -190
  377. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.cjs +0 -159
  378. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.js +0 -149
  379. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +0 -158
  380. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.js +0 -152
  381. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.cjs +0 -39
  382. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.js +0 -35
  383. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -19
  384. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -16
  385. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +0 -109
  386. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -105
  387. package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs +0 -28
  388. package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.js +0 -25
  389. package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +0 -33
  390. package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -30
  391. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +0 -7
  392. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -4
  393. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.cjs +0 -25
  394. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -22
  395. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.cjs +0 -47
  396. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.js +0 -44
  397. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +0 -38
  398. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -33
  399. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +0 -106
  400. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -106
  401. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.cjs +0 -5
  402. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js +0 -5
  403. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.cjs +0 -6
  404. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js +0 -6
  405. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.cjs +0 -423
  406. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js +0 -423
  407. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.cjs +0 -45
  408. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js +0 -45
  409. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.cjs +0 -42
  410. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js +0 -42
  411. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +0 -20
  412. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -20
  413. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.cjs +0 -7
  414. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js +0 -7
  415. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.cjs +0 -27
  416. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js +0 -25
  417. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.cjs +0 -45
  418. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js +0 -42
  419. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.cjs +0 -45
  420. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js +0 -44
  421. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.cjs +0 -49
  422. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js +0 -48
  423. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.cjs +0 -358
  424. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js +0 -354
  425. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.cjs +0 -31
  426. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js +0 -30
  427. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.cjs +0 -35
  428. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js +0 -34
  429. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.cjs +0 -44
  430. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js +0 -43
  431. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.cjs +0 -49
  432. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js +0 -48
  433. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.cjs +0 -61
  434. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js +0 -60
  435. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.cjs +0 -38
  436. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js +0 -37
  437. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.cjs +0 -39
  438. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js +0 -38
  439. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +0 -8
  440. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -8
  441. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +0 -50
  442. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -50
  443. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +0 -27
  444. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -27
  445. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +0 -18
  446. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -18
  447. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +0 -77
  448. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -77
  449. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +0 -31
  450. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -31
  451. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +0 -11
  452. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
  453. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +0 -210
  454. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -210
  455. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +0 -122
  456. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +0 -123
  457. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.cjs +0 -28
  458. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +0 -27
  459. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.cjs +0 -34
  460. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js +0 -33
  461. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.cjs +0 -37
  462. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js +0 -36
  463. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.cjs +0 -41
  464. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js +0 -40
  465. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.cjs +0 -45
  466. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js +0 -44
  467. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.cjs +0 -56
  468. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js +0 -55
  469. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.cjs +0 -35
  470. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js +0 -34
  471. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.cjs +0 -45
  472. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js +0 -44
  473. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +0 -34
  474. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -34
  475. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +0 -39
  476. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -36
  477. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +0 -1391
  478. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1391
  479. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +0 -7
  480. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -4
  481. package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.cjs +0 -387
  482. package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.js +0 -383
  483. package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.cjs +0 -625
  484. package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.js +0 -616
  485. package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.cjs +0 -1033
  486. package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.js +0 -1026
  487. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +0 -47
  488. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -43
  489. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +0 -13
  490. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
  491. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/index.cjs +0 -4
  492. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/index.js +0 -3
  493. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +0 -36
  494. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -35
  495. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +0 -15
  496. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -13
  497. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +0 -167
  498. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -163
  499. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.cjs +0 -63
  500. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -61
  501. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +0 -14
  502. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -14
  503. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +0 -84
  504. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -83
  505. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.cjs +0 -3
  506. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -4
  507. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +0 -6
  508. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -6
  509. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.cjs +0 -1617
  510. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js +0 -1600
  511. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.cjs +0 -18
  512. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.js +0 -18
  513. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.cjs +0 -26
  514. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.js +0 -24
  515. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/index.cjs +0 -4
  516. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/index.js +0 -3
  517. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.cjs +0 -40
  518. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -40
  519. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +0 -36
  520. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -29
  521. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +0 -20
  522. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -20
  523. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +0 -46
  524. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -44
  525. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.cjs +0 -39
  526. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -39
  527. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.cjs +0 -18
  528. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.js +0 -16
  529. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.cjs +0 -81
  530. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.js +0 -81
  531. package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.cjs +0 -1252
  532. package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.js +0 -1243
@@ -1,1391 +0,0 @@
1
- // ../../node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js
2
- function isNumber(subject) {
3
- return typeof subject === "number";
4
- }
5
- function isString(subject) {
6
- return typeof subject === "string";
7
- }
8
- function isBoolean(subject) {
9
- return typeof subject === "boolean";
10
- }
11
- function isObject(subject) {
12
- return Object.prototype.toString.call(subject) === "[object Object]";
13
- }
14
- function mathAbs(n) {
15
- return Math.abs(n);
16
- }
17
- function mathSign(n) {
18
- return Math.sign(n);
19
- }
20
- function deltaAbs(valueB, valueA) {
21
- return mathAbs(valueB - valueA);
22
- }
23
- function factorAbs(valueB, valueA) {
24
- if (valueB === 0 || valueA === 0) return 0;
25
- if (mathAbs(valueB) <= mathAbs(valueA)) return 0;
26
- return mathAbs(deltaAbs(mathAbs(valueB), mathAbs(valueA)) / valueB);
27
- }
28
- function roundToTwoDecimals(num) {
29
- return Math.round(num * 100) / 100;
30
- }
31
- function arrayKeys(array) {
32
- return objectKeys(array).map(Number);
33
- }
34
- function arrayLast(array) {
35
- return array[arrayLastIndex(array)];
36
- }
37
- function arrayLastIndex(array) {
38
- return Math.max(0, array.length - 1);
39
- }
40
- function arrayIsLastIndex(array, index) {
41
- return index === arrayLastIndex(array);
42
- }
43
- function arrayFromNumber(n, startAt = 0) {
44
- return Array.from(Array(n), (_, i) => startAt + i);
45
- }
46
- function objectKeys(object) {
47
- return Object.keys(object);
48
- }
49
- function objectsMergeDeep(objectA, objectB) {
50
- return [objectA, objectB].reduce((mergedObjects, currentObject) => {
51
- objectKeys(currentObject).forEach((key) => {
52
- const valueA = mergedObjects[key];
53
- const valueB = currentObject[key];
54
- mergedObjects[key] = isObject(valueA) && isObject(valueB) ? objectsMergeDeep(valueA, valueB) : valueB;
55
- });
56
- return mergedObjects;
57
- }, {});
58
- }
59
- function isMouseEvent(evt, ownerWindow) {
60
- return typeof ownerWindow.MouseEvent !== "undefined" && evt instanceof ownerWindow.MouseEvent;
61
- }
62
- function Alignment(align, viewSize) {
63
- const predefined = {
64
- start,
65
- center,
66
- end
67
- };
68
- function start() {
69
- return 0;
70
- }
71
- function center(n) {
72
- return end(n) / 2;
73
- }
74
- function end(n) {
75
- return viewSize - n;
76
- }
77
- function measure(n, index) {
78
- if (isString(align)) return predefined[align](n);
79
- return align(viewSize, n, index);
80
- }
81
- return { measure };
82
- }
83
- function EventStore() {
84
- let listeners = [];
85
- function add(node, type, handler, options = { passive: true }) {
86
- let removeListener;
87
- if ("addEventListener" in node) {
88
- node.addEventListener(type, handler, options);
89
- removeListener = () => node.removeEventListener(type, handler, options);
90
- } else {
91
- const legacyMediaQueryList = node;
92
- legacyMediaQueryList.addListener(handler);
93
- removeListener = () => legacyMediaQueryList.removeListener(handler);
94
- }
95
- listeners.push(removeListener);
96
- return self;
97
- }
98
- function clear() {
99
- listeners = listeners.filter((remove) => remove());
100
- }
101
- const self = {
102
- add,
103
- clear
104
- };
105
- return self;
106
- }
107
- function Animations(ownerDocument, ownerWindow, update, render) {
108
- const documentVisibleHandler = EventStore();
109
- const fixedTimeStep = 1e3 / 60;
110
- let lastTimeStamp = null;
111
- let accumulatedTime = 0;
112
- let animationId = 0;
113
- function init() {
114
- documentVisibleHandler.add(ownerDocument, "visibilitychange", () => {
115
- if (ownerDocument.hidden) reset();
116
- });
117
- }
118
- function destroy() {
119
- stop();
120
- documentVisibleHandler.clear();
121
- }
122
- function animate(timeStamp) {
123
- if (!animationId) return;
124
- if (!lastTimeStamp) {
125
- lastTimeStamp = timeStamp;
126
- update();
127
- update();
128
- }
129
- const timeElapsed = timeStamp - lastTimeStamp;
130
- lastTimeStamp = timeStamp;
131
- accumulatedTime += timeElapsed;
132
- while (accumulatedTime >= fixedTimeStep) {
133
- update();
134
- accumulatedTime -= fixedTimeStep;
135
- }
136
- render(accumulatedTime / fixedTimeStep);
137
- if (animationId) animationId = ownerWindow.requestAnimationFrame(animate);
138
- }
139
- function start() {
140
- if (animationId) return;
141
- animationId = ownerWindow.requestAnimationFrame(animate);
142
- }
143
- function stop() {
144
- ownerWindow.cancelAnimationFrame(animationId);
145
- lastTimeStamp = null;
146
- accumulatedTime = 0;
147
- animationId = 0;
148
- }
149
- function reset() {
150
- lastTimeStamp = null;
151
- accumulatedTime = 0;
152
- }
153
- return {
154
- init,
155
- destroy,
156
- start,
157
- stop,
158
- update,
159
- render
160
- };
161
- }
162
- function Axis(axis, contentDirection) {
163
- const isRightToLeft = contentDirection === "rtl";
164
- const isVertical = axis === "y";
165
- const scroll = isVertical ? "y" : "x";
166
- const cross = isVertical ? "x" : "y";
167
- const sign = !isVertical && isRightToLeft ? -1 : 1;
168
- const startEdge = getStartEdge();
169
- const endEdge = getEndEdge();
170
- function measureSize(nodeRect) {
171
- const { height, width } = nodeRect;
172
- return isVertical ? height : width;
173
- }
174
- function getStartEdge() {
175
- if (isVertical) return "top";
176
- return isRightToLeft ? "right" : "left";
177
- }
178
- function getEndEdge() {
179
- if (isVertical) return "bottom";
180
- return isRightToLeft ? "left" : "right";
181
- }
182
- function direction(n) {
183
- return n * sign;
184
- }
185
- return {
186
- scroll,
187
- cross,
188
- startEdge,
189
- endEdge,
190
- measureSize,
191
- direction
192
- };
193
- }
194
- function Limit(min = 0, max = 0) {
195
- const length = mathAbs(min - max);
196
- function reachedMin(n) {
197
- return n < min;
198
- }
199
- function reachedMax(n) {
200
- return n > max;
201
- }
202
- function reachedAny(n) {
203
- return reachedMin(n) || reachedMax(n);
204
- }
205
- function constrain(n) {
206
- if (!reachedAny(n)) return n;
207
- return reachedMin(n) ? min : max;
208
- }
209
- function removeOffset(n) {
210
- if (!length) return n;
211
- return n - length * Math.ceil((n - max) / length);
212
- }
213
- return {
214
- length,
215
- max,
216
- min,
217
- constrain,
218
- reachedAny,
219
- reachedMax,
220
- reachedMin,
221
- removeOffset
222
- };
223
- }
224
- function Counter(max, start, loop) {
225
- const { constrain } = Limit(0, max);
226
- const loopEnd = max + 1;
227
- let counter = withinLimit(start);
228
- function withinLimit(n) {
229
- return !loop ? constrain(n) : mathAbs((loopEnd + n) % loopEnd);
230
- }
231
- function get() {
232
- return counter;
233
- }
234
- function set(n) {
235
- counter = withinLimit(n);
236
- return self;
237
- }
238
- function add(n) {
239
- return clone().set(get() + n);
240
- }
241
- function clone() {
242
- return Counter(max, get(), loop);
243
- }
244
- const self = {
245
- get,
246
- set,
247
- add,
248
- clone
249
- };
250
- return self;
251
- }
252
- function DragHandler(axis, rootNode, ownerDocument, ownerWindow, target, dragTracker, location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, baseFriction, watchDrag) {
253
- const { cross: crossAxis, direction } = axis;
254
- const focusNodes = [
255
- "INPUT",
256
- "SELECT",
257
- "TEXTAREA"
258
- ];
259
- const nonPassiveEvent = { passive: false };
260
- const initEvents = EventStore();
261
- const dragEvents = EventStore();
262
- const goToNextThreshold = Limit(50, 225).constrain(percentOfView.measure(20));
263
- const snapForceBoost = {
264
- mouse: 300,
265
- touch: 400
266
- };
267
- const freeForceBoost = {
268
- mouse: 500,
269
- touch: 600
270
- };
271
- const baseSpeed = dragFree ? 43 : 25;
272
- let isMoving = false;
273
- let startScroll = 0;
274
- let startCross = 0;
275
- let pointerIsDown = false;
276
- let preventScroll = false;
277
- let preventClick = false;
278
- let isMouse = false;
279
- function init(emblaApi) {
280
- if (!watchDrag) return;
281
- function downIfAllowed(evt) {
282
- if (isBoolean(watchDrag) || watchDrag(emblaApi, evt)) down(evt);
283
- }
284
- const node = rootNode;
285
- initEvents.add(node, "dragstart", (evt) => evt.preventDefault(), nonPassiveEvent).add(node, "touchmove", () => void 0, nonPassiveEvent).add(node, "touchend", () => void 0).add(node, "touchstart", downIfAllowed).add(node, "mousedown", downIfAllowed).add(node, "touchcancel", up).add(node, "contextmenu", up).add(node, "click", click, true);
286
- }
287
- function destroy() {
288
- initEvents.clear();
289
- dragEvents.clear();
290
- }
291
- function addDragEvents() {
292
- const node = isMouse ? ownerDocument : rootNode;
293
- dragEvents.add(node, "touchmove", move, nonPassiveEvent).add(node, "touchend", up).add(node, "mousemove", move, nonPassiveEvent).add(node, "mouseup", up);
294
- }
295
- function isFocusNode(node) {
296
- const nodeName = node.nodeName || "";
297
- return focusNodes.includes(nodeName);
298
- }
299
- function forceBoost() {
300
- return (dragFree ? freeForceBoost : snapForceBoost)[isMouse ? "mouse" : "touch"];
301
- }
302
- function allowedForce(force, targetChanged) {
303
- const next = index.add(mathSign(force) * -1);
304
- const baseForce = scrollTarget.byDistance(force, !dragFree).distance;
305
- if (dragFree || mathAbs(force) < goToNextThreshold) return baseForce;
306
- if (skipSnaps && targetChanged) return baseForce * .5;
307
- return scrollTarget.byIndex(next.get(), 0).distance;
308
- }
309
- function down(evt) {
310
- const isMouseEvt = isMouseEvent(evt, ownerWindow);
311
- isMouse = isMouseEvt;
312
- preventClick = dragFree && isMouseEvt && !evt.buttons && isMoving;
313
- isMoving = deltaAbs(target.get(), location.get()) >= 2;
314
- if (isMouseEvt && evt.button !== 0) return;
315
- if (isFocusNode(evt.target)) return;
316
- pointerIsDown = true;
317
- dragTracker.pointerDown(evt);
318
- scrollBody.useFriction(0).useDuration(0);
319
- target.set(location);
320
- addDragEvents();
321
- startScroll = dragTracker.readPoint(evt);
322
- startCross = dragTracker.readPoint(evt, crossAxis);
323
- eventHandler.emit("pointerDown");
324
- }
325
- function move(evt) {
326
- if (!isMouseEvent(evt, ownerWindow) && evt.touches.length >= 2) return up(evt);
327
- const lastScroll = dragTracker.readPoint(evt);
328
- const lastCross = dragTracker.readPoint(evt, crossAxis);
329
- const diffScroll = deltaAbs(lastScroll, startScroll);
330
- const diffCross = deltaAbs(lastCross, startCross);
331
- if (!preventScroll && !isMouse) {
332
- if (!evt.cancelable) return up(evt);
333
- preventScroll = diffScroll > diffCross;
334
- if (!preventScroll) return up(evt);
335
- }
336
- const diff = dragTracker.pointerMove(evt);
337
- if (diffScroll > dragThreshold) preventClick = true;
338
- scrollBody.useFriction(.3).useDuration(.75);
339
- animation.start();
340
- target.add(direction(diff));
341
- evt.preventDefault();
342
- }
343
- function up(evt) {
344
- const targetChanged = scrollTarget.byDistance(0, false).index !== index.get();
345
- const rawForce = dragTracker.pointerUp(evt) * forceBoost();
346
- const force = allowedForce(direction(rawForce), targetChanged);
347
- const forceFactor = factorAbs(rawForce, force);
348
- const speed = baseSpeed - 10 * forceFactor;
349
- const friction = baseFriction + forceFactor / 50;
350
- preventScroll = false;
351
- pointerIsDown = false;
352
- dragEvents.clear();
353
- scrollBody.useDuration(speed).useFriction(friction);
354
- scrollTo.distance(force, !dragFree);
355
- isMouse = false;
356
- eventHandler.emit("pointerUp");
357
- }
358
- function click(evt) {
359
- if (preventClick) {
360
- evt.stopPropagation();
361
- evt.preventDefault();
362
- preventClick = false;
363
- }
364
- }
365
- function pointerDown() {
366
- return pointerIsDown;
367
- }
368
- return {
369
- init,
370
- destroy,
371
- pointerDown
372
- };
373
- }
374
- function DragTracker(axis, ownerWindow) {
375
- const logInterval = 170;
376
- let startEvent;
377
- let lastEvent;
378
- function readTime(evt) {
379
- return evt.timeStamp;
380
- }
381
- function readPoint(evt, evtAxis) {
382
- const coord = `client${(evtAxis || axis.scroll) === "x" ? "X" : "Y"}`;
383
- return (isMouseEvent(evt, ownerWindow) ? evt : evt.touches[0])[coord];
384
- }
385
- function pointerDown(evt) {
386
- startEvent = evt;
387
- lastEvent = evt;
388
- return readPoint(evt);
389
- }
390
- function pointerMove(evt) {
391
- const diff = readPoint(evt) - readPoint(lastEvent);
392
- const expired = readTime(evt) - readTime(startEvent) > logInterval;
393
- lastEvent = evt;
394
- if (expired) startEvent = evt;
395
- return diff;
396
- }
397
- function pointerUp(evt) {
398
- if (!startEvent || !lastEvent) return 0;
399
- const diffDrag = readPoint(lastEvent) - readPoint(startEvent);
400
- const diffTime = readTime(evt) - readTime(startEvent);
401
- const expired = readTime(evt) - readTime(lastEvent) > logInterval;
402
- const force = diffDrag / diffTime;
403
- return diffTime && !expired && mathAbs(force) > .1 ? force : 0;
404
- }
405
- return {
406
- pointerDown,
407
- pointerMove,
408
- pointerUp,
409
- readPoint
410
- };
411
- }
412
- function NodeRects() {
413
- function measure(node) {
414
- const { offsetTop, offsetLeft, offsetWidth, offsetHeight } = node;
415
- return {
416
- top: offsetTop,
417
- right: offsetLeft + offsetWidth,
418
- bottom: offsetTop + offsetHeight,
419
- left: offsetLeft,
420
- width: offsetWidth,
421
- height: offsetHeight
422
- };
423
- }
424
- return { measure };
425
- }
426
- function PercentOfView(viewSize) {
427
- function measure(n) {
428
- return viewSize * (n / 100);
429
- }
430
- return { measure };
431
- }
432
- function ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects) {
433
- const observeNodes = [container].concat(slides);
434
- let resizeObserver;
435
- let containerSize;
436
- let slideSizes = [];
437
- let destroyed = false;
438
- function readSize(node) {
439
- return axis.measureSize(nodeRects.measure(node));
440
- }
441
- function init(emblaApi) {
442
- if (!watchResize) return;
443
- containerSize = readSize(container);
444
- slideSizes = slides.map(readSize);
445
- function defaultCallback(entries) {
446
- for (const entry of entries) {
447
- if (destroyed) return;
448
- const isContainer = entry.target === container;
449
- const slideIndex = slides.indexOf(entry.target);
450
- const lastSize = isContainer ? containerSize : slideSizes[slideIndex];
451
- if (mathAbs(readSize(isContainer ? container : slides[slideIndex]) - lastSize) >= .5) {
452
- emblaApi.reInit();
453
- eventHandler.emit("resize");
454
- break;
455
- }
456
- }
457
- }
458
- resizeObserver = new ResizeObserver((entries) => {
459
- if (isBoolean(watchResize) || watchResize(emblaApi, entries)) defaultCallback(entries);
460
- });
461
- ownerWindow.requestAnimationFrame(() => {
462
- observeNodes.forEach((node) => resizeObserver.observe(node));
463
- });
464
- }
465
- function destroy() {
466
- destroyed = true;
467
- if (resizeObserver) resizeObserver.disconnect();
468
- }
469
- return {
470
- init,
471
- destroy
472
- };
473
- }
474
- function ScrollBody(location, offsetLocation, previousLocation, target, baseDuration, baseFriction) {
475
- let scrollVelocity = 0;
476
- let scrollDirection = 0;
477
- let scrollDuration = baseDuration;
478
- let scrollFriction = baseFriction;
479
- let rawLocation = location.get();
480
- let rawLocationPrevious = 0;
481
- function seek() {
482
- const displacement = target.get() - location.get();
483
- const isInstant = !scrollDuration;
484
- let scrollDistance = 0;
485
- if (isInstant) {
486
- scrollVelocity = 0;
487
- previousLocation.set(target);
488
- location.set(target);
489
- scrollDistance = displacement;
490
- } else {
491
- previousLocation.set(location);
492
- scrollVelocity += displacement / scrollDuration;
493
- scrollVelocity *= scrollFriction;
494
- rawLocation += scrollVelocity;
495
- location.add(scrollVelocity);
496
- scrollDistance = rawLocation - rawLocationPrevious;
497
- }
498
- scrollDirection = mathSign(scrollDistance);
499
- rawLocationPrevious = rawLocation;
500
- return self;
501
- }
502
- function settled() {
503
- return mathAbs(target.get() - offsetLocation.get()) < .001;
504
- }
505
- function duration() {
506
- return scrollDuration;
507
- }
508
- function direction() {
509
- return scrollDirection;
510
- }
511
- function velocity() {
512
- return scrollVelocity;
513
- }
514
- function useBaseDuration() {
515
- return useDuration(baseDuration);
516
- }
517
- function useBaseFriction() {
518
- return useFriction(baseFriction);
519
- }
520
- function useDuration(n) {
521
- scrollDuration = n;
522
- return self;
523
- }
524
- function useFriction(n) {
525
- scrollFriction = n;
526
- return self;
527
- }
528
- const self = {
529
- direction,
530
- duration,
531
- velocity,
532
- seek,
533
- settled,
534
- useBaseFriction,
535
- useBaseDuration,
536
- useFriction,
537
- useDuration
538
- };
539
- return self;
540
- }
541
- function ScrollBounds(limit, location, target, scrollBody, percentOfView) {
542
- const pullBackThreshold = percentOfView.measure(10);
543
- const edgeOffsetTolerance = percentOfView.measure(50);
544
- const frictionLimit = Limit(.1, .99);
545
- let disabled = false;
546
- function shouldConstrain() {
547
- if (disabled) return false;
548
- if (!limit.reachedAny(target.get())) return false;
549
- if (!limit.reachedAny(location.get())) return false;
550
- return true;
551
- }
552
- function constrain(pointerDown) {
553
- if (!shouldConstrain()) return;
554
- const diffToEdge = mathAbs(limit[limit.reachedMin(location.get()) ? "min" : "max"] - location.get());
555
- const diffToTarget = target.get() - location.get();
556
- const friction = frictionLimit.constrain(diffToEdge / edgeOffsetTolerance);
557
- target.subtract(diffToTarget * friction);
558
- if (!pointerDown && mathAbs(diffToTarget) < pullBackThreshold) {
559
- target.set(limit.constrain(target.get()));
560
- scrollBody.useDuration(25).useBaseFriction();
561
- }
562
- }
563
- function toggleActive(active) {
564
- disabled = !active;
565
- }
566
- return {
567
- shouldConstrain,
568
- constrain,
569
- toggleActive
570
- };
571
- }
572
- function ScrollContain(viewSize, contentSize, snapsAligned, containScroll, pixelTolerance) {
573
- const scrollBounds = Limit(-contentSize + viewSize, 0);
574
- const snapsBounded = measureBounded();
575
- const scrollContainLimit = findScrollContainLimit();
576
- const snapsContained = measureContained();
577
- function usePixelTolerance(bound, snap) {
578
- return deltaAbs(bound, snap) <= 1;
579
- }
580
- function findScrollContainLimit() {
581
- const startSnap = snapsBounded[0];
582
- const endSnap = arrayLast(snapsBounded);
583
- return Limit(snapsBounded.lastIndexOf(startSnap), snapsBounded.indexOf(endSnap) + 1);
584
- }
585
- function measureBounded() {
586
- return snapsAligned.map((snapAligned, index) => {
587
- const { min, max } = scrollBounds;
588
- const snap = scrollBounds.constrain(snapAligned);
589
- const isFirst = !index;
590
- const isLast = arrayIsLastIndex(snapsAligned, index);
591
- if (isFirst) return max;
592
- if (isLast) return min;
593
- if (usePixelTolerance(min, snap)) return min;
594
- if (usePixelTolerance(max, snap)) return max;
595
- return snap;
596
- }).map((scrollBound) => parseFloat(scrollBound.toFixed(3)));
597
- }
598
- function measureContained() {
599
- if (contentSize <= viewSize + pixelTolerance) return [scrollBounds.max];
600
- if (containScroll === "keepSnaps") return snapsBounded;
601
- const { min, max } = scrollContainLimit;
602
- return snapsBounded.slice(min, max);
603
- }
604
- return {
605
- snapsContained,
606
- scrollContainLimit
607
- };
608
- }
609
- function ScrollLimit(contentSize, scrollSnaps, loop) {
610
- const max = scrollSnaps[0];
611
- return { limit: Limit(loop ? max - contentSize : arrayLast(scrollSnaps), max) };
612
- }
613
- function ScrollLooper(contentSize, limit, location, vectors) {
614
- const jointSafety = .1;
615
- const { reachedMin, reachedMax } = Limit(limit.min + jointSafety, limit.max + jointSafety);
616
- function shouldLoop(direction) {
617
- if (direction === 1) return reachedMax(location.get());
618
- if (direction === -1) return reachedMin(location.get());
619
- return false;
620
- }
621
- function loop(direction) {
622
- if (!shouldLoop(direction)) return;
623
- const loopDistance = contentSize * (direction * -1);
624
- vectors.forEach((v) => v.add(loopDistance));
625
- }
626
- return { loop };
627
- }
628
- function ScrollProgress(limit) {
629
- const { max, length } = limit;
630
- function get(n) {
631
- const currentLocation = n - max;
632
- return length ? currentLocation / -length : 0;
633
- }
634
- return { get };
635
- }
636
- function ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll) {
637
- const { startEdge, endEdge } = axis;
638
- const { groupSlides } = slidesToScroll;
639
- const alignments = measureSizes().map(alignment.measure);
640
- const snaps = measureUnaligned();
641
- const snapsAligned = measureAligned();
642
- function measureSizes() {
643
- return groupSlides(slideRects).map((rects) => arrayLast(rects)[endEdge] - rects[0][startEdge]).map(mathAbs);
644
- }
645
- function measureUnaligned() {
646
- return slideRects.map((rect) => containerRect[startEdge] - rect[startEdge]).map((snap) => -mathAbs(snap));
647
- }
648
- function measureAligned() {
649
- return groupSlides(snaps).map((g) => g[0]).map((snap, index) => snap + alignments[index]);
650
- }
651
- return {
652
- snaps,
653
- snapsAligned
654
- };
655
- }
656
- function SlideRegistry(containSnaps, containScroll, scrollSnaps, scrollContainLimit, slidesToScroll, slideIndexes) {
657
- const { groupSlides } = slidesToScroll;
658
- const { min, max } = scrollContainLimit;
659
- const slideRegistry = createSlideRegistry();
660
- function createSlideRegistry() {
661
- const groupedSlideIndexes = groupSlides(slideIndexes);
662
- const doNotContain = !containSnaps || containScroll === "keepSnaps";
663
- if (scrollSnaps.length === 1) return [slideIndexes];
664
- if (doNotContain) return groupedSlideIndexes;
665
- return groupedSlideIndexes.slice(min, max).map((group, index, groups) => {
666
- const isFirst = !index;
667
- const isLast = arrayIsLastIndex(groups, index);
668
- if (isFirst) return arrayFromNumber(arrayLast(groups[0]) + 1);
669
- if (isLast) return arrayFromNumber(arrayLastIndex(slideIndexes) - arrayLast(groups)[0] + 1, arrayLast(groups)[0]);
670
- return group;
671
- });
672
- }
673
- return { slideRegistry };
674
- }
675
- function ScrollTarget(loop, scrollSnaps, contentSize, limit, targetVector) {
676
- const { reachedAny, removeOffset, constrain } = limit;
677
- function minDistance(distances) {
678
- return distances.concat().sort((a, b) => mathAbs(a) - mathAbs(b))[0];
679
- }
680
- function findTargetSnap(target) {
681
- const distance = loop ? removeOffset(target) : constrain(target);
682
- const { index } = scrollSnaps.map((snap, index) => ({
683
- diff: shortcut(snap - distance, 0),
684
- index
685
- })).sort((d1, d2) => mathAbs(d1.diff) - mathAbs(d2.diff))[0];
686
- return {
687
- index,
688
- distance
689
- };
690
- }
691
- function shortcut(target, direction) {
692
- const targets = [
693
- target,
694
- target + contentSize,
695
- target - contentSize
696
- ];
697
- if (!loop) return target;
698
- if (!direction) return minDistance(targets);
699
- const matchingTargets = targets.filter((t) => mathSign(t) === direction);
700
- if (matchingTargets.length) return minDistance(matchingTargets);
701
- return arrayLast(targets) - contentSize;
702
- }
703
- function byIndex(index, direction) {
704
- return {
705
- index,
706
- distance: shortcut(scrollSnaps[index] - targetVector.get(), direction)
707
- };
708
- }
709
- function byDistance(distance, snap) {
710
- const target = targetVector.get() + distance;
711
- const { index, distance: targetSnapDistance } = findTargetSnap(target);
712
- const reachedBound = !loop && reachedAny(target);
713
- if (!snap || reachedBound) return {
714
- index,
715
- distance
716
- };
717
- return {
718
- index,
719
- distance: distance + shortcut(scrollSnaps[index] - targetSnapDistance, 0)
720
- };
721
- }
722
- return {
723
- byDistance,
724
- byIndex,
725
- shortcut
726
- };
727
- }
728
- function ScrollTo(animation, indexCurrent, indexPrevious, scrollBody, scrollTarget, targetVector, eventHandler) {
729
- function scrollTo(target) {
730
- const distanceDiff = target.distance;
731
- const indexDiff = target.index !== indexCurrent.get();
732
- targetVector.add(distanceDiff);
733
- if (distanceDiff) {
734
- if (scrollBody.duration()) animation.start();
735
- else {
736
- animation.update();
737
- animation.render(1);
738
- animation.update();
739
- }
740
- }
741
- if (indexDiff) {
742
- indexPrevious.set(indexCurrent.get());
743
- indexCurrent.set(target.index);
744
- eventHandler.emit("select");
745
- }
746
- }
747
- function distance(n, snap) {
748
- scrollTo(scrollTarget.byDistance(n, snap));
749
- }
750
- function index(n, direction) {
751
- const targetIndex = indexCurrent.clone().set(n);
752
- scrollTo(scrollTarget.byIndex(targetIndex.get(), direction));
753
- }
754
- return {
755
- distance,
756
- index
757
- };
758
- }
759
- function SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore, eventHandler, watchFocus) {
760
- const focusListenerOptions = {
761
- passive: true,
762
- capture: true
763
- };
764
- let lastTabPressTime = 0;
765
- function init(emblaApi) {
766
- if (!watchFocus) return;
767
- function defaultCallback(index) {
768
- if ((/* @__PURE__ */ new Date()).getTime() - lastTabPressTime > 10) return;
769
- eventHandler.emit("slideFocusStart");
770
- root.scrollLeft = 0;
771
- const group = slideRegistry.findIndex((group) => group.includes(index));
772
- if (!isNumber(group)) return;
773
- scrollBody.useDuration(0);
774
- scrollTo.index(group, 0);
775
- eventHandler.emit("slideFocus");
776
- }
777
- eventStore.add(document, "keydown", registerTabPress, false);
778
- slides.forEach((slide, slideIndex) => {
779
- eventStore.add(slide, "focus", (evt) => {
780
- if (isBoolean(watchFocus) || watchFocus(emblaApi, evt)) defaultCallback(slideIndex);
781
- }, focusListenerOptions);
782
- });
783
- }
784
- function registerTabPress(event) {
785
- if (event.code === "Tab") lastTabPressTime = (/* @__PURE__ */ new Date()).getTime();
786
- }
787
- return { init };
788
- }
789
- function Vector1D(initialValue) {
790
- let value = initialValue;
791
- function get() {
792
- return value;
793
- }
794
- function set(n) {
795
- value = normalizeInput(n);
796
- }
797
- function add(n) {
798
- value += normalizeInput(n);
799
- }
800
- function subtract(n) {
801
- value -= normalizeInput(n);
802
- }
803
- function normalizeInput(n) {
804
- return isNumber(n) ? n : n.get();
805
- }
806
- return {
807
- get,
808
- set,
809
- add,
810
- subtract
811
- };
812
- }
813
- function Translate(axis, container) {
814
- const translate = axis.scroll === "x" ? x : y;
815
- const containerStyle = container.style;
816
- let previousTarget = null;
817
- let disabled = false;
818
- function x(n) {
819
- return `translate3d(${n}px,0px,0px)`;
820
- }
821
- function y(n) {
822
- return `translate3d(0px,${n}px,0px)`;
823
- }
824
- function to(target) {
825
- if (disabled) return;
826
- const newTarget = roundToTwoDecimals(axis.direction(target));
827
- if (newTarget === previousTarget) return;
828
- containerStyle.transform = translate(newTarget);
829
- previousTarget = newTarget;
830
- }
831
- function toggleActive(active) {
832
- disabled = !active;
833
- }
834
- function clear() {
835
- if (disabled) return;
836
- containerStyle.transform = "";
837
- if (!container.getAttribute("style")) container.removeAttribute("style");
838
- }
839
- return {
840
- clear,
841
- to,
842
- toggleActive
843
- };
844
- }
845
- function SlideLooper(axis, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, location, slides) {
846
- const roundingSafety = .5;
847
- const ascItems = arrayKeys(slideSizesWithGaps);
848
- const descItems = arrayKeys(slideSizesWithGaps).reverse();
849
- const loopPoints = startPoints().concat(endPoints());
850
- function removeSlideSizes(indexes, from) {
851
- return indexes.reduce((a, i) => {
852
- return a - slideSizesWithGaps[i];
853
- }, from);
854
- }
855
- function slidesInGap(indexes, gap) {
856
- return indexes.reduce((a, i) => {
857
- return removeSlideSizes(a, gap) > 0 ? a.concat([i]) : a;
858
- }, []);
859
- }
860
- function findSlideBounds(offset) {
861
- return snaps.map((snap, index) => ({
862
- start: snap - slideSizes[index] + roundingSafety + offset,
863
- end: snap + viewSize - roundingSafety + offset
864
- }));
865
- }
866
- function findLoopPoints(indexes, offset, isEndEdge) {
867
- const slideBounds = findSlideBounds(offset);
868
- return indexes.map((index) => {
869
- const initial = isEndEdge ? 0 : -contentSize;
870
- const altered = isEndEdge ? contentSize : 0;
871
- const boundEdge = isEndEdge ? "end" : "start";
872
- const loopPoint = slideBounds[index][boundEdge];
873
- return {
874
- index,
875
- loopPoint,
876
- slideLocation: Vector1D(-1),
877
- translate: Translate(axis, slides[index]),
878
- target: () => location.get() > loopPoint ? initial : altered
879
- };
880
- });
881
- }
882
- function startPoints() {
883
- const gap = scrollSnaps[0];
884
- return findLoopPoints(slidesInGap(descItems, gap), contentSize, false);
885
- }
886
- function endPoints() {
887
- const gap = viewSize - scrollSnaps[0] - 1;
888
- return findLoopPoints(slidesInGap(ascItems, gap), -contentSize, true);
889
- }
890
- function canLoop() {
891
- return loopPoints.every(({ index }) => {
892
- return removeSlideSizes(ascItems.filter((i) => i !== index), viewSize) <= .1;
893
- });
894
- }
895
- function loop() {
896
- loopPoints.forEach((loopPoint) => {
897
- const { target, translate, slideLocation } = loopPoint;
898
- const shiftLocation = target();
899
- if (shiftLocation === slideLocation.get()) return;
900
- translate.to(shiftLocation);
901
- slideLocation.set(shiftLocation);
902
- });
903
- }
904
- function clear() {
905
- loopPoints.forEach((loopPoint) => loopPoint.translate.clear());
906
- }
907
- return {
908
- canLoop,
909
- clear,
910
- loop,
911
- loopPoints
912
- };
913
- }
914
- function SlidesHandler(container, eventHandler, watchSlides) {
915
- let mutationObserver;
916
- let destroyed = false;
917
- function init(emblaApi) {
918
- if (!watchSlides) return;
919
- function defaultCallback(mutations) {
920
- for (const mutation of mutations) if (mutation.type === "childList") {
921
- emblaApi.reInit();
922
- eventHandler.emit("slidesChanged");
923
- break;
924
- }
925
- }
926
- mutationObserver = new MutationObserver((mutations) => {
927
- if (destroyed) return;
928
- if (isBoolean(watchSlides) || watchSlides(emblaApi, mutations)) defaultCallback(mutations);
929
- });
930
- mutationObserver.observe(container, { childList: true });
931
- }
932
- function destroy() {
933
- if (mutationObserver) mutationObserver.disconnect();
934
- destroyed = true;
935
- }
936
- return {
937
- init,
938
- destroy
939
- };
940
- }
941
- function SlidesInView(container, slides, eventHandler, threshold) {
942
- const intersectionEntryMap = {};
943
- let inViewCache = null;
944
- let notInViewCache = null;
945
- let intersectionObserver;
946
- let destroyed = false;
947
- function init() {
948
- intersectionObserver = new IntersectionObserver((entries) => {
949
- if (destroyed) return;
950
- entries.forEach((entry) => {
951
- const index = slides.indexOf(entry.target);
952
- intersectionEntryMap[index] = entry;
953
- });
954
- inViewCache = null;
955
- notInViewCache = null;
956
- eventHandler.emit("slidesInView");
957
- }, {
958
- root: container.parentElement,
959
- threshold
960
- });
961
- slides.forEach((slide) => intersectionObserver.observe(slide));
962
- }
963
- function destroy() {
964
- if (intersectionObserver) intersectionObserver.disconnect();
965
- destroyed = true;
966
- }
967
- function createInViewList(inView) {
968
- return objectKeys(intersectionEntryMap).reduce((list, slideIndex) => {
969
- const index = parseInt(slideIndex);
970
- const { isIntersecting } = intersectionEntryMap[index];
971
- if (inView && isIntersecting || !inView && !isIntersecting) list.push(index);
972
- return list;
973
- }, []);
974
- }
975
- function get(inView = true) {
976
- if (inView && inViewCache) return inViewCache;
977
- if (!inView && notInViewCache) return notInViewCache;
978
- const slideIndexes = createInViewList(inView);
979
- if (inView) inViewCache = slideIndexes;
980
- if (!inView) notInViewCache = slideIndexes;
981
- return slideIndexes;
982
- }
983
- return {
984
- init,
985
- destroy,
986
- get
987
- };
988
- }
989
- function SlideSizes(axis, containerRect, slideRects, slides, readEdgeGap, ownerWindow) {
990
- const { measureSize, startEdge, endEdge } = axis;
991
- const withEdgeGap = slideRects[0] && readEdgeGap;
992
- const startGap = measureStartGap();
993
- const endGap = measureEndGap();
994
- const slideSizes = slideRects.map(measureSize);
995
- const slideSizesWithGaps = measureWithGaps();
996
- function measureStartGap() {
997
- if (!withEdgeGap) return 0;
998
- const slideRect = slideRects[0];
999
- return mathAbs(containerRect[startEdge] - slideRect[startEdge]);
1000
- }
1001
- function measureEndGap() {
1002
- if (!withEdgeGap) return 0;
1003
- const style = ownerWindow.getComputedStyle(arrayLast(slides));
1004
- return parseFloat(style.getPropertyValue(`margin-${endEdge}`));
1005
- }
1006
- function measureWithGaps() {
1007
- return slideRects.map((rect, index, rects) => {
1008
- const isFirst = !index;
1009
- const isLast = arrayIsLastIndex(rects, index);
1010
- if (isFirst) return slideSizes[index] + startGap;
1011
- if (isLast) return slideSizes[index] + endGap;
1012
- return rects[index + 1][startEdge] - rect[startEdge];
1013
- }).map(mathAbs);
1014
- }
1015
- return {
1016
- slideSizes,
1017
- slideSizesWithGaps,
1018
- startGap,
1019
- endGap
1020
- };
1021
- }
1022
- function SlidesToScroll(axis, viewSize, slidesToScroll, loop, containerRect, slideRects, startGap, endGap, pixelTolerance) {
1023
- const { startEdge, endEdge, direction } = axis;
1024
- const groupByNumber = isNumber(slidesToScroll);
1025
- function byNumber(array, groupSize) {
1026
- return arrayKeys(array).filter((i) => i % groupSize === 0).map((i) => array.slice(i, i + groupSize));
1027
- }
1028
- function bySize(array) {
1029
- if (!array.length) return [];
1030
- return arrayKeys(array).reduce((groups, rectB, index) => {
1031
- const rectA = arrayLast(groups) || 0;
1032
- const isFirst = rectA === 0;
1033
- const isLast = rectB === arrayLastIndex(array);
1034
- const edgeA = containerRect[startEdge] - slideRects[rectA][startEdge];
1035
- const edgeB = containerRect[startEdge] - slideRects[rectB][endEdge];
1036
- const gapA = !loop && isFirst ? direction(startGap) : 0;
1037
- const chunkSize = mathAbs(edgeB - (!loop && isLast ? direction(endGap) : 0) - (edgeA + gapA));
1038
- if (index && chunkSize > viewSize + pixelTolerance) groups.push(rectB);
1039
- if (isLast) groups.push(array.length);
1040
- return groups;
1041
- }, []).map((currentSize, index, groups) => {
1042
- const previousSize = Math.max(groups[index - 1] || 0);
1043
- return array.slice(previousSize, currentSize);
1044
- });
1045
- }
1046
- function groupSlides(array) {
1047
- return groupByNumber ? byNumber(array, slidesToScroll) : bySize(array);
1048
- }
1049
- return { groupSlides };
1050
- }
1051
- function Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler) {
1052
- const { align, axis: scrollAxis, direction, startIndex, loop, duration, dragFree, dragThreshold, inViewThreshold, slidesToScroll: groupSlides, skipSnaps, containScroll, watchResize, watchSlides, watchDrag, watchFocus } = options;
1053
- const pixelTolerance = 2;
1054
- const nodeRects = NodeRects();
1055
- const containerRect = nodeRects.measure(container);
1056
- const slideRects = slides.map(nodeRects.measure);
1057
- const axis = Axis(scrollAxis, direction);
1058
- const viewSize = axis.measureSize(containerRect);
1059
- const percentOfView = PercentOfView(viewSize);
1060
- const alignment = Alignment(align, viewSize);
1061
- const containSnaps = !loop && !!containScroll;
1062
- const { slideSizes, slideSizesWithGaps, startGap, endGap } = SlideSizes(axis, containerRect, slideRects, slides, loop || !!containScroll, ownerWindow);
1063
- const slidesToScroll = SlidesToScroll(axis, viewSize, groupSlides, loop, containerRect, slideRects, startGap, endGap, pixelTolerance);
1064
- const { snaps, snapsAligned } = ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll);
1065
- const contentSize = -arrayLast(snaps) + arrayLast(slideSizesWithGaps);
1066
- const { snapsContained, scrollContainLimit } = ScrollContain(viewSize, contentSize, snapsAligned, containScroll, pixelTolerance);
1067
- const scrollSnaps = containSnaps ? snapsContained : snapsAligned;
1068
- const { limit } = ScrollLimit(contentSize, scrollSnaps, loop);
1069
- const index = Counter(arrayLastIndex(scrollSnaps), startIndex, loop);
1070
- const indexPrevious = index.clone();
1071
- const slideIndexes = arrayKeys(slides);
1072
- const update = ({ dragHandler, scrollBody, scrollBounds, options: { loop } }) => {
1073
- if (!loop) scrollBounds.constrain(dragHandler.pointerDown());
1074
- scrollBody.seek();
1075
- };
1076
- const render = ({ scrollBody, translate, location, offsetLocation, previousLocation, scrollLooper, slideLooper, dragHandler, animation, eventHandler, scrollBounds, options: { loop } }, alpha) => {
1077
- const shouldSettle = scrollBody.settled();
1078
- const withinBounds = !scrollBounds.shouldConstrain();
1079
- const hasSettled = loop ? shouldSettle : shouldSettle && withinBounds;
1080
- const hasSettledAndIdle = hasSettled && !dragHandler.pointerDown();
1081
- if (hasSettledAndIdle) animation.stop();
1082
- const interpolatedLocation = location.get() * alpha + previousLocation.get() * (1 - alpha);
1083
- offsetLocation.set(interpolatedLocation);
1084
- if (loop) {
1085
- scrollLooper.loop(scrollBody.direction());
1086
- slideLooper.loop();
1087
- }
1088
- translate.to(offsetLocation.get());
1089
- if (hasSettledAndIdle) eventHandler.emit("settle");
1090
- if (!hasSettled) eventHandler.emit("scroll");
1091
- };
1092
- const animation = Animations(ownerDocument, ownerWindow, () => update(engine), (alpha) => render(engine, alpha));
1093
- const friction = .68;
1094
- const startLocation = scrollSnaps[index.get()];
1095
- const location = Vector1D(startLocation);
1096
- const previousLocation = Vector1D(startLocation);
1097
- const offsetLocation = Vector1D(startLocation);
1098
- const target = Vector1D(startLocation);
1099
- const scrollBody = ScrollBody(location, offsetLocation, previousLocation, target, duration, friction);
1100
- const scrollTarget = ScrollTarget(loop, scrollSnaps, contentSize, limit, target);
1101
- const scrollTo = ScrollTo(animation, index, indexPrevious, scrollBody, scrollTarget, target, eventHandler);
1102
- const scrollProgress = ScrollProgress(limit);
1103
- const eventStore = EventStore();
1104
- const slidesInView = SlidesInView(container, slides, eventHandler, inViewThreshold);
1105
- const { slideRegistry } = SlideRegistry(containSnaps, containScroll, scrollSnaps, scrollContainLimit, slidesToScroll, slideIndexes);
1106
- const slideFocus = SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore, eventHandler, watchFocus);
1107
- const engine = {
1108
- ownerDocument,
1109
- ownerWindow,
1110
- eventHandler,
1111
- containerRect,
1112
- slideRects,
1113
- animation,
1114
- axis,
1115
- dragHandler: DragHandler(axis, root, ownerDocument, ownerWindow, target, DragTracker(axis, ownerWindow), location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, friction, watchDrag),
1116
- eventStore,
1117
- percentOfView,
1118
- index,
1119
- indexPrevious,
1120
- limit,
1121
- location,
1122
- offsetLocation,
1123
- previousLocation,
1124
- options,
1125
- resizeHandler: ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects),
1126
- scrollBody,
1127
- scrollBounds: ScrollBounds(limit, offsetLocation, target, scrollBody, percentOfView),
1128
- scrollLooper: ScrollLooper(contentSize, limit, offsetLocation, [
1129
- location,
1130
- offsetLocation,
1131
- previousLocation,
1132
- target
1133
- ]),
1134
- scrollProgress,
1135
- scrollSnapList: scrollSnaps.map(scrollProgress.get),
1136
- scrollSnaps,
1137
- scrollTarget,
1138
- scrollTo,
1139
- slideLooper: SlideLooper(axis, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, offsetLocation, slides),
1140
- slideFocus,
1141
- slidesHandler: SlidesHandler(container, eventHandler, watchSlides),
1142
- slidesInView,
1143
- slideIndexes,
1144
- slideRegistry,
1145
- slidesToScroll,
1146
- target,
1147
- translate: Translate(axis, container)
1148
- };
1149
- return engine;
1150
- }
1151
- function EventHandler() {
1152
- let listeners = {};
1153
- let api;
1154
- function init(emblaApi) {
1155
- api = emblaApi;
1156
- }
1157
- function getListeners(evt) {
1158
- return listeners[evt] || [];
1159
- }
1160
- function emit(evt) {
1161
- getListeners(evt).forEach((e) => e(api, evt));
1162
- return self;
1163
- }
1164
- function on(evt, cb) {
1165
- listeners[evt] = getListeners(evt).concat([cb]);
1166
- return self;
1167
- }
1168
- function off(evt, cb) {
1169
- listeners[evt] = getListeners(evt).filter((e) => e !== cb);
1170
- return self;
1171
- }
1172
- function clear() {
1173
- listeners = {};
1174
- }
1175
- const self = {
1176
- init,
1177
- emit,
1178
- off,
1179
- on,
1180
- clear
1181
- };
1182
- return self;
1183
- }
1184
- var defaultOptions = {
1185
- align: "center",
1186
- axis: "x",
1187
- container: null,
1188
- slides: null,
1189
- containScroll: "trimSnaps",
1190
- direction: "ltr",
1191
- slidesToScroll: 1,
1192
- inViewThreshold: 0,
1193
- breakpoints: {},
1194
- dragFree: false,
1195
- dragThreshold: 10,
1196
- loop: false,
1197
- skipSnaps: false,
1198
- duration: 25,
1199
- startIndex: 0,
1200
- active: true,
1201
- watchDrag: true,
1202
- watchResize: true,
1203
- watchSlides: true,
1204
- watchFocus: true
1205
- };
1206
- function OptionsHandler(ownerWindow) {
1207
- function mergeOptions(optionsA, optionsB) {
1208
- return objectsMergeDeep(optionsA, optionsB || {});
1209
- }
1210
- function optionsAtMedia(options) {
1211
- const optionsAtMedia = options.breakpoints || {};
1212
- return mergeOptions(options, objectKeys(optionsAtMedia).filter((media) => ownerWindow.matchMedia(media).matches).map((media) => optionsAtMedia[media]).reduce((a, mediaOption) => mergeOptions(a, mediaOption), {}));
1213
- }
1214
- function optionsMediaQueries(optionsList) {
1215
- return optionsList.map((options) => objectKeys(options.breakpoints || {})).reduce((acc, mediaQueries) => acc.concat(mediaQueries), []).map(ownerWindow.matchMedia);
1216
- }
1217
- return {
1218
- mergeOptions,
1219
- optionsAtMedia,
1220
- optionsMediaQueries
1221
- };
1222
- }
1223
- function PluginsHandler(optionsHandler) {
1224
- let activePlugins = [];
1225
- function init(emblaApi, plugins) {
1226
- activePlugins = plugins.filter(({ options }) => optionsHandler.optionsAtMedia(options).active !== false);
1227
- activePlugins.forEach((plugin) => plugin.init(emblaApi, optionsHandler));
1228
- return plugins.reduce((map, plugin) => Object.assign(map, { [plugin.name]: plugin }), {});
1229
- }
1230
- function destroy() {
1231
- activePlugins = activePlugins.filter((plugin) => plugin.destroy());
1232
- }
1233
- return {
1234
- init,
1235
- destroy
1236
- };
1237
- }
1238
- function EmblaCarousel(root, userOptions, userPlugins) {
1239
- const ownerDocument = root.ownerDocument;
1240
- const ownerWindow = ownerDocument.defaultView;
1241
- const optionsHandler = OptionsHandler(ownerWindow);
1242
- const pluginsHandler = PluginsHandler(optionsHandler);
1243
- const mediaHandlers = EventStore();
1244
- const eventHandler = EventHandler();
1245
- const { mergeOptions, optionsAtMedia, optionsMediaQueries } = optionsHandler;
1246
- const { on, off, emit } = eventHandler;
1247
- const reInit = reActivate;
1248
- let destroyed = false;
1249
- let engine;
1250
- let optionsBase = mergeOptions(defaultOptions, EmblaCarousel.globalOptions);
1251
- let options = mergeOptions(optionsBase);
1252
- let pluginList = [];
1253
- let pluginApis;
1254
- let container;
1255
- let slides;
1256
- function storeElements() {
1257
- const { container: userContainer, slides: userSlides } = options;
1258
- container = (isString(userContainer) ? root.querySelector(userContainer) : userContainer) || root.children[0];
1259
- const customSlides = isString(userSlides) ? container.querySelectorAll(userSlides) : userSlides;
1260
- slides = [].slice.call(customSlides || container.children);
1261
- }
1262
- function createEngine(options) {
1263
- const engine = Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler);
1264
- if (options.loop && !engine.slideLooper.canLoop()) return createEngine(Object.assign({}, options, { loop: false }));
1265
- return engine;
1266
- }
1267
- function activate(withOptions, withPlugins) {
1268
- if (destroyed) return;
1269
- optionsBase = mergeOptions(optionsBase, withOptions);
1270
- options = optionsAtMedia(optionsBase);
1271
- pluginList = withPlugins || pluginList;
1272
- storeElements();
1273
- engine = createEngine(options);
1274
- optionsMediaQueries([optionsBase, ...pluginList.map(({ options }) => options)]).forEach((query) => mediaHandlers.add(query, "change", reActivate));
1275
- if (!options.active) return;
1276
- engine.translate.to(engine.location.get());
1277
- engine.animation.init();
1278
- engine.slidesInView.init();
1279
- engine.slideFocus.init(self);
1280
- engine.eventHandler.init(self);
1281
- engine.resizeHandler.init(self);
1282
- engine.slidesHandler.init(self);
1283
- if (engine.options.loop) engine.slideLooper.loop();
1284
- if (container.offsetParent && slides.length) engine.dragHandler.init(self);
1285
- pluginApis = pluginsHandler.init(self, pluginList);
1286
- }
1287
- function reActivate(withOptions, withPlugins) {
1288
- const startIndex = selectedScrollSnap();
1289
- deActivate();
1290
- activate(mergeOptions({ startIndex }, withOptions), withPlugins);
1291
- eventHandler.emit("reInit");
1292
- }
1293
- function deActivate() {
1294
- engine.dragHandler.destroy();
1295
- engine.eventStore.clear();
1296
- engine.translate.clear();
1297
- engine.slideLooper.clear();
1298
- engine.resizeHandler.destroy();
1299
- engine.slidesHandler.destroy();
1300
- engine.slidesInView.destroy();
1301
- engine.animation.destroy();
1302
- pluginsHandler.destroy();
1303
- mediaHandlers.clear();
1304
- }
1305
- function destroy() {
1306
- if (destroyed) return;
1307
- destroyed = true;
1308
- mediaHandlers.clear();
1309
- deActivate();
1310
- eventHandler.emit("destroy");
1311
- eventHandler.clear();
1312
- }
1313
- function scrollTo(index, jump, direction) {
1314
- if (!options.active || destroyed) return;
1315
- engine.scrollBody.useBaseFriction().useDuration(jump === true ? 0 : options.duration);
1316
- engine.scrollTo.index(index, direction || 0);
1317
- }
1318
- function scrollNext(jump) {
1319
- scrollTo(engine.index.add(1).get(), jump, -1);
1320
- }
1321
- function scrollPrev(jump) {
1322
- scrollTo(engine.index.add(-1).get(), jump, 1);
1323
- }
1324
- function canScrollNext() {
1325
- return engine.index.add(1).get() !== selectedScrollSnap();
1326
- }
1327
- function canScrollPrev() {
1328
- return engine.index.add(-1).get() !== selectedScrollSnap();
1329
- }
1330
- function scrollSnapList() {
1331
- return engine.scrollSnapList;
1332
- }
1333
- function scrollProgress() {
1334
- return engine.scrollProgress.get(engine.offsetLocation.get());
1335
- }
1336
- function selectedScrollSnap() {
1337
- return engine.index.get();
1338
- }
1339
- function previousScrollSnap() {
1340
- return engine.indexPrevious.get();
1341
- }
1342
- function slidesInView() {
1343
- return engine.slidesInView.get();
1344
- }
1345
- function slidesNotInView() {
1346
- return engine.slidesInView.get(false);
1347
- }
1348
- function plugins() {
1349
- return pluginApis;
1350
- }
1351
- function internalEngine() {
1352
- return engine;
1353
- }
1354
- function rootNode() {
1355
- return root;
1356
- }
1357
- function containerNode() {
1358
- return container;
1359
- }
1360
- function slideNodes() {
1361
- return slides;
1362
- }
1363
- const self = {
1364
- canScrollNext,
1365
- canScrollPrev,
1366
- containerNode,
1367
- internalEngine,
1368
- destroy,
1369
- off,
1370
- on,
1371
- emit,
1372
- plugins,
1373
- previousScrollSnap,
1374
- reInit,
1375
- rootNode,
1376
- scrollNext,
1377
- scrollPrev,
1378
- scrollProgress,
1379
- scrollSnapList,
1380
- scrollTo,
1381
- selectedScrollSnap,
1382
- slideNodes,
1383
- slidesInView,
1384
- slidesNotInView
1385
- };
1386
- activate(userOptions, userPlugins);
1387
- setTimeout(() => eventHandler.emit("init"), 0);
1388
- return self;
1389
- }
1390
- EmblaCarousel.globalOptions = void 0;
1391
- exports.default = EmblaCarousel;