@caspeco/casper-ui-library 10.4.0 → 10.5.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 (781) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +11 -0
  2. package/dist/_virtual/builtin_esm-external-require-react.js +9 -0
  3. package/dist/components/accordion/accordion-context.js +5 -6
  4. package/dist/components/accordion/accordion-item.js +28 -40
  5. package/dist/components/accordion/accordion-panel.js +17 -14
  6. package/dist/components/accordion/accordion-recipe.js +85 -120
  7. package/dist/components/accordion/accordion.js +23 -20
  8. package/dist/components/alert/alert.js +80 -59
  9. package/dist/components/alert/helper.js +30 -42
  10. package/dist/components/alert/types.d.ts.map +1 -1
  11. package/dist/components/badge/badge-recipe.js +57 -49
  12. package/dist/components/badge/badge.js +66 -71
  13. package/dist/components/badge/helper.js +8 -9
  14. package/dist/components/box/box.js +14 -11
  15. package/dist/components/breadcrumbs/breadcrumb-item.js +21 -17
  16. package/dist/components/breadcrumbs/breadcrumb-link.js +21 -20
  17. package/dist/components/breadcrumbs/breadcrumbs.js +123 -90
  18. package/dist/components/button/button-recipe.js +280 -315
  19. package/dist/components/button/button.js +39 -40
  20. package/dist/components/checkbox/checkbox-icon.js +38 -46
  21. package/dist/components/checkbox/checkbox-recipe.js +176 -204
  22. package/dist/components/checkbox/checkbox.js +43 -36
  23. package/dist/components/checkbox/icons/check.js +5 -5
  24. package/dist/components/checkbox/icons/minus.js +5 -5
  25. package/dist/components/checkbox/icons/plus.js +5 -5
  26. package/dist/components/checkbox-group/checkbox-group.js +17 -16
  27. package/dist/components/collapsible/collapsible.js +117 -101
  28. package/dist/components/collapsible/translations.js +29 -29
  29. package/dist/components/combobox/combobox-button.js +173 -143
  30. package/dist/components/combobox/combobox-item.js +45 -23
  31. package/dist/components/combobox/combobox-menu.js +240 -190
  32. package/dist/components/combobox/combobox-recipe.js +69 -103
  33. package/dist/components/combobox/combobox.js +243 -273
  34. package/dist/components/combobox/translations.js +49 -50
  35. package/dist/components/date-picker/base-date-picker.js +238 -248
  36. package/dist/components/date-picker/date-cell-recipe.js +149 -179
  37. package/dist/components/date-picker/date-multi-picker.js +35 -29
  38. package/dist/components/date-picker/date-picker-date-cell.js +109 -114
  39. package/dist/components/date-picker/date-picker-header.js +152 -170
  40. package/dist/components/date-picker/date-picker-week-cell.js +41 -43
  41. package/dist/components/date-picker/date-picker.js +32 -29
  42. package/dist/components/date-picker/date-range-picker.js +29 -24
  43. package/dist/components/date-picker/date-week-picker.js +29 -22
  44. package/dist/components/date-picker/datepicker-week-recipe.js +75 -91
  45. package/dist/components/date-picker/helper.js +11 -16
  46. package/dist/components/divider/divider-recipe.js +9 -11
  47. package/dist/components/divider/divider.js +19 -18
  48. package/dist/components/drawer/drawer-recipe.js +21 -50
  49. package/dist/components/drawer/drawer.js +45 -41
  50. package/dist/components/drawer/inline-drawer.js +69 -66
  51. package/dist/components/drawer/use-drawer-key-down.js +20 -20
  52. package/dist/components/fieldset/fieldset-error-text.js +15 -15
  53. package/dist/components/fieldset/fieldset-helper-text.js +15 -15
  54. package/dist/components/fieldset/fieldset-legend.js +15 -15
  55. package/dist/components/fieldset/fieldset-recipe.js +14 -24
  56. package/dist/components/fieldset/fieldset.js +17 -17
  57. package/dist/components/flex/flex.js +15 -15
  58. package/dist/components/form-control/form-control-recipe.js +42 -46
  59. package/dist/components/form-control/form-control.js +19 -19
  60. package/dist/components/form-control/form-error-message.js +15 -15
  61. package/dist/components/form-control/form-helper-text.js +15 -15
  62. package/dist/components/form-control/form-label.js +24 -26
  63. package/dist/components/grid/grid-item.js +15 -15
  64. package/dist/components/grid/grid.js +15 -15
  65. package/dist/components/heading/heading.js +24 -23
  66. package/dist/components/highlight/highlight.js +22 -21
  67. package/dist/components/icon/create-icon.js +27 -26
  68. package/dist/components/icon/icons/absence-icon.js +5 -5
  69. package/dist/components/icon/icons/accessibility-icon.js +5 -5
  70. package/dist/components/icon/icons/add-absence-icon.js +5 -5
  71. package/dist/components/icon/icons/add-emoji-icon.js +5 -5
  72. package/dist/components/icon/icons/add-icon.js +5 -5
  73. package/dist/components/icon/icons/apple-icon.js +5 -5
  74. package/dist/components/icon/icons/apps-icon.js +5 -5
  75. package/dist/components/icon/icons/archive-icon.js +6 -6
  76. package/dist/components/icon/icons/area-icon.js +5 -5
  77. package/dist/components/icon/icons/at-icon.js +5 -5
  78. package/dist/components/icon/icons/attachment-icon.js +5 -5
  79. package/dist/components/icon/icons/baby-icon.js +5 -5
  80. package/dist/components/icon/icons/back-icon.js +5 -5
  81. package/dist/components/icon/icons/backspace-icon.js +5 -5
  82. package/dist/components/icon/icons/bank-icon.js +5 -5
  83. package/dist/components/icon/icons/bank-id-icon.js +5 -5
  84. package/dist/components/icon/icons/barcode-icon.js +5 -5
  85. package/dist/components/icon/icons/bell-icon.js +5 -5
  86. package/dist/components/icon/icons/bolt-icon.js +7 -7
  87. package/dist/components/icon/icons/calendar-icon.js +5 -5
  88. package/dist/components/icon/icons/camera-icon.js +5 -5
  89. package/dist/components/icon/icons/cancel-icon.js +5 -5
  90. package/dist/components/icon/icons/card-icon.js +5 -5
  91. package/dist/components/icon/icons/cart-icon.js +5 -5
  92. package/dist/components/icon/icons/caspeco-icon.js +7 -7
  93. package/dist/components/icon/icons/channels-icon.js +5 -5
  94. package/dist/components/icon/icons/chart-icon.js +5 -5
  95. package/dist/components/icon/icons/chart-line-icon.js +5 -5
  96. package/dist/components/icon/icons/chart-mixed-icon.js +5 -5
  97. package/dist/components/icon/icons/chart-pie-icon.js +5 -5
  98. package/dist/components/icon/icons/chart-scatter-icon.js +5 -5
  99. package/dist/components/icon/icons/check-icon.js +5 -5
  100. package/dist/components/icon/icons/checkbox-icon.js +5 -5
  101. package/dist/components/icon/icons/chevron-left-icon.js +5 -5
  102. package/dist/components/icon/icons/chevron-right-icon.js +5 -5
  103. package/dist/components/icon/icons/child-icon.js +5 -5
  104. package/dist/components/icon/icons/circle-info-icon.js +5 -5
  105. package/dist/components/icon/icons/circle-parking-icon.js +5 -5
  106. package/dist/components/icon/icons/circle-question-icon.js +5 -5
  107. package/dist/components/icon/icons/circle-select-icon.js +5 -5
  108. package/dist/components/icon/icons/circle-success-icon.js +5 -5
  109. package/dist/components/icon/icons/circle-user-icon.js +5 -5
  110. package/dist/components/icon/icons/clear-icon.js +5 -5
  111. package/dist/components/icon/icons/close-icon.js +5 -5
  112. package/dist/components/icon/icons/closed-icon.js +5 -5
  113. package/dist/components/icon/icons/collapse-icon.js +5 -5
  114. package/dist/components/icon/icons/color-icon.js +5 -5
  115. package/dist/components/icon/icons/columns-icon.js +5 -5
  116. package/dist/components/icon/icons/comment-add-icon.js +5 -5
  117. package/dist/components/icon/icons/comment-icon.js +5 -5
  118. package/dist/components/icon/icons/cookies-icon.js +5 -5
  119. package/dist/components/icon/icons/copy-icon.js +5 -5
  120. package/dist/components/icon/icons/date-icon.js +5 -5
  121. package/dist/components/icon/icons/decrease-icon.js +4 -4
  122. package/dist/components/icon/icons/delete-icon.js +5 -5
  123. package/dist/components/icon/icons/deliverect-icon.js +5 -5
  124. package/dist/components/icon/icons/delivery-icon.js +5 -5
  125. package/dist/components/icon/icons/description-icon.js +5 -5
  126. package/dist/components/icon/icons/discount-icon.js +5 -5
  127. package/dist/components/icon/icons/distribute-evenly-icon.js +5 -5
  128. package/dist/components/icon/icons/door-closed-icon.js +5 -5
  129. package/dist/components/icon/icons/door-open-icon.js +5 -5
  130. package/dist/components/icon/icons/down-icon.js +5 -5
  131. package/dist/components/icon/icons/eat-in-icon.js +5 -5
  132. package/dist/components/icon/icons/edit-icon.js +5 -5
  133. package/dist/components/icon/icons/email-icon.js +5 -5
  134. package/dist/components/icon/icons/error-icon.js +5 -5
  135. package/dist/components/icon/icons/expand-icon.js +5 -5
  136. package/dist/components/icon/icons/export-icon.js +5 -5
  137. package/dist/components/icon/icons/extract-icon.js +5 -5
  138. package/dist/components/icon/icons/facebook-icon.js +5 -5
  139. package/dist/components/icon/icons/failed-print-icon.js +5 -5
  140. package/dist/components/icon/icons/file-icon.js +5 -5
  141. package/dist/components/icon/icons/filter-icon.js +5 -5
  142. package/dist/components/icon/icons/folder-icon.js +5 -5
  143. package/dist/components/icon/icons/foodora-icon.js +5 -5
  144. package/dist/components/icon/icons/forward-icon.js +5 -5
  145. package/dist/components/icon/icons/glovo-icon.js +7 -7
  146. package/dist/components/icon/icons/goal-icon.js +5 -5
  147. package/dist/components/icon/icons/google-icon.js +5 -5
  148. package/dist/components/icon/icons/grip-more-icon.js +5 -5
  149. package/dist/components/icon/icons/hash-icon.js +5 -5
  150. package/dist/components/icon/icons/hexagon-error-icon.js +5 -5
  151. package/dist/components/icon/icons/hide-icon.js +5 -5
  152. package/dist/components/icon/icons/history-icon.js +5 -5
  153. package/dist/components/icon/icons/icon-picker-anchor-icon.js +5 -5
  154. package/dist/components/icon/icons/icon-picker-asterisk-icon.js +5 -5
  155. package/dist/components/icon/icons/icon-picker-beer-icon.js +5 -5
  156. package/dist/components/icon/icons/icon-picker-bicycle-icon.js +5 -5
  157. package/dist/components/icon/icons/icon-picker-binoculars-icon.js +5 -5
  158. package/dist/components/icon/icons/icon-picker-bomb-icon.js +5 -5
  159. package/dist/components/icon/icons/icon-picker-car-icon.js +5 -5
  160. package/dist/components/icon/icons/icon-picker-cocktail-icon.js +5 -5
  161. package/dist/components/icon/icons/icon-picker-gem-icon.js +5 -5
  162. package/dist/components/icon/icons/icon-picker-heart-full-icon.js +5 -5
  163. package/dist/components/icon/icons/icon-picker-heart-icon.js +5 -5
  164. package/dist/components/icon/icons/icon-picker-magnet-icon.js +5 -5
  165. package/dist/components/icon/icons/icon-picker-money-icon.js +5 -5
  166. package/dist/components/icon/icons/icon-picker-moon-icon.js +5 -5
  167. package/dist/components/icon/icons/icon-picker-music-icon.js +5 -5
  168. package/dist/components/icon/icons/icon-picker-star-full-icon.js +5 -5
  169. package/dist/components/icon/icons/icon-picker-star-half-icon.js +5 -5
  170. package/dist/components/icon/icons/icon-picker-star-icon.js +5 -5
  171. package/dist/components/icon/icons/icon-picker-tint-icon.js +5 -5
  172. package/dist/components/icon/icons/icon-picker-tree-icon.js +5 -5
  173. package/dist/components/icon/icons/icon-picker-utensils-icon.js +5 -5
  174. package/dist/components/icon/icons/icon-picker-wheelchair-icon.js +5 -5
  175. package/dist/components/icon/icons/image-icon.js +5 -5
  176. package/dist/components/icon/icons/import-icon.js +5 -5
  177. package/dist/components/icon/icons/inbox-icon.js +5 -5
  178. package/dist/components/icon/icons/increase-icon.js +5 -5
  179. package/dist/components/icon/icons/indeterminate-icon.js +4 -4
  180. package/dist/components/icon/icons/info-icon.js +5 -5
  181. package/dist/components/icon/icons/inheritance-icon.js +5 -5
  182. package/dist/components/icon/icons/just-eat-icon.js +5 -5
  183. package/dist/components/icon/icons/karma-icon.js +5 -5
  184. package/dist/components/icon/icons/key-command-icon.js +5 -5
  185. package/dist/components/icon/icons/key-enter-icon.js +5 -5
  186. package/dist/components/icon/icons/key-icon.js +5 -5
  187. package/dist/components/icon/icons/key-option-icon.js +5 -5
  188. package/dist/components/icon/icons/language-icon.js +5 -5
  189. package/dist/components/icon/icons/link-broken-icon.js +5 -5
  190. package/dist/components/icon/icons/link-external-icon.js +5 -5
  191. package/dist/components/icon/icons/link-icon.js +5 -5
  192. package/dist/components/icon/icons/list-ol-icon.js +5 -5
  193. package/dist/components/icon/icons/list-ul-icon.js +5 -5
  194. package/dist/components/icon/icons/loading-icon.js +5 -5
  195. package/dist/components/icon/icons/location-icon.js +5 -5
  196. package/dist/components/icon/icons/lock-icon.js +5 -5
  197. package/dist/components/icon/icons/log-in-icon.js +5 -5
  198. package/dist/components/icon/icons/log-out-icon.js +5 -5
  199. package/dist/components/icon/icons/map-icon.js +5 -5
  200. package/dist/components/icon/icons/maximize-icon.js +5 -5
  201. package/dist/components/icon/icons/members-icon.js +5 -5
  202. package/dist/components/icon/icons/menu-hide-icon.js +5 -5
  203. package/dist/components/icon/icons/menu-icon.js +5 -5
  204. package/dist/components/icon/icons/menu-show-icon.js +5 -5
  205. package/dist/components/icon/icons/message-add-icon.js +5 -5
  206. package/dist/components/icon/icons/message-icon.js +5 -5
  207. package/dist/components/icon/icons/message-lines-icon.js +5 -5
  208. package/dist/components/icon/icons/minimize-icon.js +5 -5
  209. package/dist/components/icon/icons/minimize-window-icon.js +5 -5
  210. package/dist/components/icon/icons/mobile-rotate-icon.js +5 -5
  211. package/dist/components/icon/icons/module-accounting-icon.js +5 -5
  212. package/dist/components/icon/icons/module-ai-forecast-icon.js +5 -5
  213. package/dist/components/icon/icons/module-app-icon.js +5 -5
  214. package/dist/components/icon/icons/module-articles-icon.js +5 -5
  215. package/dist/components/icon/icons/module-benchmark-icon.js +5 -5
  216. package/dist/components/icon/icons/module-booking-icon.js +5 -5
  217. package/dist/components/icon/icons/module-cai-icon.js +5 -5
  218. package/dist/components/icon/icons/module-campaigns-icon.js +5 -5
  219. package/dist/components/icon/icons/module-cashier-icon.js +5 -5
  220. package/dist/components/icon/icons/module-communication-icon.js +5 -5
  221. package/dist/components/icon/icons/module-copilot-icon.js +5 -5
  222. package/dist/components/icon/icons/module-dashboard-icon.js +5 -5
  223. package/dist/components/icon/icons/module-document-icon.js +5 -5
  224. package/dist/components/icon/icons/module-employees-icon.js +5 -5
  225. package/dist/components/icon/icons/module-feed-icon.js +5 -5
  226. package/dist/components/icon/icons/module-history-icon.js +5 -5
  227. package/dist/components/icon/icons/module-home-icon.js +5 -5
  228. package/dist/components/icon/icons/module-insights-icon.js +5 -5
  229. package/dist/components/icon/icons/module-kds-icon.js +5 -5
  230. package/dist/components/icon/icons/module-members-icon.js +5 -5
  231. package/dist/components/icon/icons/module-menus-icon.js +5 -5
  232. package/dist/components/icon/icons/module-my-city-icon.js +5 -5
  233. package/dist/components/icon/icons/module-notification-center-icon.js +5 -5
  234. package/dist/components/icon/icons/module-online-order-icon.js +5 -5
  235. package/dist/components/icon/icons/module-organisation-icon.js +5 -5
  236. package/dist/components/icon/icons/module-pos-icon.js +5 -5
  237. package/dist/components/icon/icons/module-pulse-icon.js +5 -5
  238. package/dist/components/icon/icons/module-result-icon.js +5 -5
  239. package/dist/components/icon/icons/module-salary-icon.js +5 -5
  240. package/dist/components/icon/icons/module-schedule-icon.js +5 -5
  241. package/dist/components/icon/icons/module-settings-alt-icon.js +5 -5
  242. package/dist/components/icon/icons/module-settings-icon.js +5 -5
  243. package/dist/components/icon/icons/module-support-icon.js +5 -5
  244. package/dist/components/icon/icons/module-survey-icon.js +5 -5
  245. package/dist/components/icon/icons/module-table-map-icon.js +6 -6
  246. package/dist/components/icon/icons/module-tablet-icon.js +5 -5
  247. package/dist/components/icon/icons/module-time-icon.js +5 -5
  248. package/dist/components/icon/icons/module-timeline-icon.js +5 -5
  249. package/dist/components/icon/icons/module-tip-icon.js +5 -5
  250. package/dist/components/icon/icons/module-to-do-icon.js +5 -5
  251. package/dist/components/icon/icons/module-tools-icon.js +5 -5
  252. package/dist/components/icon/icons/module-top-list-icon.js +5 -5
  253. package/dist/components/icon/icons/module-web-charts-icon.js +5 -5
  254. package/dist/components/icon/icons/module-web-icon.js +5 -5
  255. package/dist/components/icon/icons/more-horizontal-icon.js +5 -5
  256. package/dist/components/icon/icons/more-vertical-icon.js +5 -5
  257. package/dist/components/icon/icons/nfc-icon.js +5 -5
  258. package/dist/components/icon/icons/no-cart-icon.js +5 -5
  259. package/dist/components/icon/icons/note-icon.js +5 -5
  260. package/dist/components/icon/icons/number-icon.js +6 -6
  261. package/dist/components/icon/icons/open-modal-icon.js +5 -5
  262. package/dist/components/icon/icons/parking-icon.js +5 -5
  263. package/dist/components/icon/icons/party-horn-icon.js +5 -5
  264. package/dist/components/icon/icons/paste-icon.js +5 -5
  265. package/dist/components/icon/icons/pause-icon.js +5 -5
  266. package/dist/components/icon/icons/payment-card-icon.js +5 -5
  267. package/dist/components/icon/icons/payment-cash-icon.js +5 -5
  268. package/dist/components/icon/icons/payment-generic-icon.js +5 -5
  269. package/dist/components/icon/icons/payment-giftcard-icon.js +5 -5
  270. package/dist/components/icon/icons/payment-hotel-icon.js +5 -5
  271. package/dist/components/icon/icons/payment-invoice-icon.js +5 -5
  272. package/dist/components/icon/icons/percentage-icon.js +5 -5
  273. package/dist/components/icon/icons/phone-icon.js +5 -5
  274. package/dist/components/icon/icons/pin-icon.js +5 -5
  275. package/dist/components/icon/icons/pin-map-icon.js +5 -5
  276. package/dist/components/icon/icons/play-icon.js +5 -5
  277. package/dist/components/icon/icons/preview-icon.js +5 -5
  278. package/dist/components/icon/icons/print-icon.js +5 -5
  279. package/dist/components/icon/icons/privacy-icon.js +5 -5
  280. package/dist/components/icon/icons/product-admin-icon.js +5 -5
  281. package/dist/components/icon/icons/product-analytics-icon.js +5 -5
  282. package/dist/components/icon/icons/product-booking-icon.js +5 -5
  283. package/dist/components/icon/icons/product-checkout-icon.js +5 -5
  284. package/dist/components/icon/icons/product-my-pages-icon.js +5 -5
  285. package/dist/components/icon/icons/product-staff-icon.js +5 -5
  286. package/dist/components/icon/icons/puck-icon.js +5 -5
  287. package/dist/components/icon/icons/qr-code-icon.js +5 -5
  288. package/dist/components/icon/icons/question-icon.js +5 -5
  289. package/dist/components/icon/icons/radio-icon.js +5 -5
  290. package/dist/components/icon/icons/receipt-icon.js +5 -5
  291. package/dist/components/icon/icons/redo-icon.js +5 -5
  292. package/dist/components/icon/icons/refund-icon.js +5 -5
  293. package/dist/components/icon/icons/remove-icon.js +5 -5
  294. package/dist/components/icon/icons/replace-icon.js +5 -5
  295. package/dist/components/icon/icons/schedule-icon.js +5 -5
  296. package/dist/components/icon/icons/search-icon.js +5 -5
  297. package/dist/components/icon/icons/select-icon.js +4 -4
  298. package/dist/components/icon/icons/send-icon.js +5 -5
  299. package/dist/components/icon/icons/share-icon.js +5 -5
  300. package/dist/components/icon/icons/show-icon.js +5 -5
  301. package/dist/components/icon/icons/shuffle-icon.js +5 -5
  302. package/dist/components/icon/icons/sidebar-hide-icon.js +4 -4
  303. package/dist/components/icon/icons/sidebar-left-icon.js +4 -4
  304. package/dist/components/icon/icons/sidebar-right-icon.js +5 -5
  305. package/dist/components/icon/icons/sidebar-show-icon.js +5 -5
  306. package/dist/components/icon/icons/sliders-icon.js +5 -5
  307. package/dist/components/icon/icons/slightly-sad-icon.js +5 -5
  308. package/dist/components/icon/icons/smile-icon.js +5 -5
  309. package/dist/components/icon/icons/sort-asc-icon.js +5 -5
  310. package/dist/components/icon/icons/sort-desc-icon.js +5 -5
  311. package/dist/components/icon/icons/split-icon.js +5 -5
  312. package/dist/components/icon/icons/status-icon.js +5 -5
  313. package/dist/components/icon/icons/stop-icon.js +5 -5
  314. package/dist/components/icon/icons/submenu-icon.js +5 -5
  315. package/dist/components/icon/icons/success-icon.js +5 -5
  316. package/dist/components/icon/icons/swap-icon.js +5 -5
  317. package/dist/components/icon/icons/swatch-icon.js +5 -5
  318. package/dist/components/icon/icons/sweat-icon.js +5 -5
  319. package/dist/components/icon/icons/table-icon.js +5 -5
  320. package/dist/components/icon/icons/table-map-icon.js +5 -5
  321. package/dist/components/icon/icons/take-away-dot-com-icon.js +5 -5
  322. package/dist/components/icon/icons/take-away-icon.js +5 -5
  323. package/dist/components/icon/icons/talk-icon.js +5 -5
  324. package/dist/components/icon/icons/thumbtack-icon.js +5 -5
  325. package/dist/components/icon/icons/time-icon.js +5 -5
  326. package/dist/components/icon/icons/timeline-icon.js +5 -5
  327. package/dist/components/icon/icons/tip-icon.js +5 -5
  328. package/dist/components/icon/icons/title-icon.js +5 -5
  329. package/dist/components/icon/icons/translate-icon.js +5 -5
  330. package/dist/components/icon/icons/tree-view-collapse-icon.js +4 -4
  331. package/dist/components/icon/icons/tree-view-expand-icon.js +4 -4
  332. package/dist/components/icon/icons/tree-view-last-icon.js +4 -4
  333. package/dist/components/icon/icons/trend-down-icon.js +5 -5
  334. package/dist/components/icon/icons/trend-up-icon.js +5 -5
  335. package/dist/components/icon/icons/triangle-warning-icon.js +5 -5
  336. package/dist/components/icon/icons/trivec-icon.js +6 -6
  337. package/dist/components/icon/icons/uber-eats-icon.js +5 -5
  338. package/dist/components/icon/icons/undo-icon.js +5 -5
  339. package/dist/components/icon/icons/unlock-icon.js +5 -5
  340. package/dist/components/icon/icons/unwrap-content-icon.js +5 -5
  341. package/dist/components/icon/icons/up-icon.js +5 -5
  342. package/dist/components/icon/icons/user-group-icon.js +5 -5
  343. package/dist/components/icon/icons/user-icon.js +5 -5
  344. package/dist/components/icon/icons/user-permissions-icon.js +5 -5
  345. package/dist/components/icon/icons/user-wait-icon.js +5 -5
  346. package/dist/components/icon/icons/users-icon.js +5 -5
  347. package/dist/components/icon/icons/version-control-icon.js +5 -5
  348. package/dist/components/icon/icons/volume-high-icon.js +5 -5
  349. package/dist/components/icon/icons/volume-icon.js +5 -5
  350. package/dist/components/icon/icons/volume-low-icon.js +5 -5
  351. package/dist/components/icon/icons/volume-off-icon.js +5 -5
  352. package/dist/components/icon/icons/warning-icon.js +5 -5
  353. package/dist/components/icon/icons/waste-icon.js +5 -5
  354. package/dist/components/icon/icons/wifi-icon.js +5 -5
  355. package/dist/components/icon/icons/wifi-off-icon.js +5 -5
  356. package/dist/components/icon/icons/wolt-icon.js +5 -5
  357. package/dist/components/icon/icons/wrap-content-icon.js +5 -5
  358. package/dist/components/icon-button/icon-button.js +37 -39
  359. package/dist/components/image/image.js +12 -14
  360. package/dist/components/image-upload/image-cropper.helper.js +74 -82
  361. package/dist/components/image-upload/image-cropper.js +156 -183
  362. package/dist/components/image-upload/image-upload-dropzone.js +134 -112
  363. package/dist/components/image-upload/image-upload-helper.js +15 -19
  364. package/dist/components/image-upload/image-upload-icons.js +52 -20
  365. package/dist/components/image-upload/image-upload-modal.js +131 -106
  366. package/dist/components/image-upload/image-upload.js +96 -86
  367. package/dist/components/image-upload/translations.js +65 -65
  368. package/dist/components/image-upload/types.js +6 -4
  369. package/dist/components/input/helper.js +18 -29
  370. package/dist/components/input/input-addon-recipe.js +37 -43
  371. package/dist/components/input/input-recipe.js +124 -133
  372. package/dist/components/input/input.js +78 -83
  373. package/dist/components/link/link-recipe.js +18 -22
  374. package/dist/components/link/link.js +14 -14
  375. package/dist/components/list/list-item.js +15 -15
  376. package/dist/components/list/list.js +19 -20
  377. package/dist/components/menu/helper.js +12 -16
  378. package/dist/components/menu/menu-box-button.js +22 -18
  379. package/dist/components/menu/menu-button.js +18 -16
  380. package/dist/components/menu/menu-divider.js +31 -28
  381. package/dist/components/menu/menu-group.js +138 -142
  382. package/dist/components/menu/menu-icon-button.js +13 -11
  383. package/dist/components/menu/menu-item.js +44 -45
  384. package/dist/components/menu/menu-list.js +14 -15
  385. package/dist/components/menu/menu-recipe.js +67 -81
  386. package/dist/components/menu/menu.js +34 -41
  387. package/dist/components/message/message.js +52 -38
  388. package/dist/components/modal/modal-body-context.js +6 -7
  389. package/dist/components/modal/modal-body.js +17 -17
  390. package/dist/components/modal/modal-close-button.js +23 -18
  391. package/dist/components/modal/modal-footer.js +29 -32
  392. package/dist/components/modal/modal-header.js +17 -17
  393. package/dist/components/modal/modal-recipe.js +110 -141
  394. package/dist/components/modal/modal.js +54 -58
  395. package/dist/components/navigation-list/navigation-list-item.js +76 -88
  396. package/dist/components/navigation-list/navigation-list.js +23 -17
  397. package/dist/components/paginator/paginator-recipe.js +34 -40
  398. package/dist/components/paginator/paginator.js +65 -70
  399. package/dist/components/paginator/translations.js +35 -35
  400. package/dist/components/phone-input/country-data.js +31 -36
  401. package/dist/components/phone-input/country-list.js +45 -25
  402. package/dist/components/phone-input/country-selector.js +167 -115
  403. package/dist/components/phone-input/phone-input-helpers.js +91 -119
  404. package/dist/components/phone-input/phone-input.js +47 -42
  405. package/dist/components/phone-input/translations.js +53 -53
  406. package/dist/components/phone-input/use-phone-input.js +110 -137
  407. package/dist/components/quantity-button/minus-button.js +18 -16
  408. package/dist/components/quantity-button/plus-button.js +18 -16
  409. package/dist/components/quantity-button/quantity-button.js +72 -40
  410. package/dist/components/radio/check-icon.js +5 -5
  411. package/dist/components/radio/hover-styles.js +21 -36
  412. package/dist/components/radio/radio-group-context.js +5 -6
  413. package/dist/components/radio/radio-group-recipe.js +124 -142
  414. package/dist/components/radio/radio-group.js +30 -28
  415. package/dist/components/radio/radio.js +72 -55
  416. package/dist/components/radio-card/hover-styles.js +21 -36
  417. package/dist/components/radio-card/radio-card-group.js +24 -25
  418. package/dist/components/radio-card/radio-card.js +87 -67
  419. package/dist/components/rich-text-editor/boolean-control.js +51 -54
  420. package/dist/components/rich-text-editor/extensions.js +39 -34
  421. package/dist/components/rich-text-editor/index.js +26 -22
  422. package/dist/components/rich-text-editor/rich-text-editor-context.js +9 -11
  423. package/dist/components/rich-text-editor/rich-text-editor-control.js +290 -284
  424. package/dist/components/rich-text-editor/rich-text-editor-recipe.js +71 -83
  425. package/dist/components/rich-text-editor/rich-text-editor.js +72 -69
  426. package/dist/components/rich-text-editor/rich-text-renderer.js +32 -32
  427. package/dist/components/rich-text-editor/translations.js +119 -119
  428. package/dist/components/rich-text-editor/use-rich-text-editor.js +22 -29
  429. package/dist/components/segmented-control/segmented-control-item.js +24 -25
  430. package/dist/components/segmented-control/segmented-control.js +49 -40
  431. package/dist/components/select/select-recipe.js +91 -106
  432. package/dist/components/select/select.js +27 -29
  433. package/dist/components/skeleton/skeleton-text.js +18 -19
  434. package/dist/components/skeleton/skeleton.js +19 -20
  435. package/dist/components/spinner/spinner.js +44 -28
  436. package/dist/components/stack/stack.js +18 -18
  437. package/dist/components/stepper/check-icon.js +5 -5
  438. package/dist/components/stepper/step-context.js +5 -5
  439. package/dist/components/stepper/step.js +111 -106
  440. package/dist/components/stepper/stepper.js +42 -43
  441. package/dist/components/stepper/times-icon.js +5 -5
  442. package/dist/components/switch/hover-styles.js +30 -44
  443. package/dist/components/switch/switch-recipe.js +76 -84
  444. package/dist/components/switch/switch.d.ts +3 -3
  445. package/dist/components/switch/switch.d.ts.map +1 -1
  446. package/dist/components/switch/switch.js +30 -31
  447. package/dist/components/switch/types.d.ts +4 -2
  448. package/dist/components/switch/types.d.ts.map +1 -1
  449. package/dist/components/table/helper.d.ts +6 -0
  450. package/dist/components/table/helper.d.ts.map +1 -1
  451. package/dist/components/table/helper.js +29 -9
  452. package/dist/components/table/index.d.ts +1 -1
  453. package/dist/components/table/index.d.ts.map +1 -1
  454. package/dist/components/table/table-cell.d.ts.map +1 -1
  455. package/dist/components/table/table-cell.js +136 -122
  456. package/dist/components/table/table-column-resize-handle.d.ts +12 -0
  457. package/dist/components/table/table-column-resize-handle.d.ts.map +1 -0
  458. package/dist/components/table/table-column-resize-handle.js +69 -0
  459. package/dist/components/table/table-content.d.ts.map +1 -1
  460. package/dist/components/table/table-content.js +174 -98
  461. package/dist/components/table/table-context-provider.d.ts +7 -2
  462. package/dist/components/table/table-context-provider.d.ts.map +1 -1
  463. package/dist/components/table/table-context-provider.js +203 -151
  464. package/dist/components/table/table-context.d.ts +24 -0
  465. package/dist/components/table/table-context.d.ts.map +1 -1
  466. package/dist/components/table/table-context.js +18 -11
  467. package/dist/components/table/table-filter.js +170 -118
  468. package/dist/components/table/table-header-dropdown.js +131 -89
  469. package/dist/components/table/table-header-row.d.ts.map +1 -1
  470. package/dist/components/table/table-header-row.js +202 -140
  471. package/dist/components/table/table-recipe.d.ts.map +1 -1
  472. package/dist/components/table/table-recipe.js +75 -96
  473. package/dist/components/table/table-row-expand-toggle-button.js +28 -35
  474. package/dist/components/table/table-row.d.ts.map +1 -1
  475. package/dist/components/table/table-row.js +51 -41
  476. package/dist/components/table/table-toolbar-actions.js +19 -19
  477. package/dist/components/table/table-toolbar-add-button.js +18 -13
  478. package/dist/components/table/table-toolbar-search.js +17 -12
  479. package/dist/components/table/table-toolbar-settings.js +180 -133
  480. package/dist/components/table/table-toolbar.js +72 -51
  481. package/dist/components/table/table.composition.d.ts +1 -0
  482. package/dist/components/table/table.composition.d.ts.map +1 -1
  483. package/dist/components/table/table.constants.d.ts +4 -0
  484. package/dist/components/table/table.constants.d.ts.map +1 -1
  485. package/dist/components/table/table.constants.js +9 -4
  486. package/dist/components/table/table.d.ts +1 -1
  487. package/dist/components/table/table.d.ts.map +1 -1
  488. package/dist/components/table/table.js +41 -37
  489. package/dist/components/table/translations.d.ts +7 -0
  490. package/dist/components/table/translations.d.ts.map +1 -1
  491. package/dist/components/table/translations.js +199 -194
  492. package/dist/components/table/types.d.ts +33 -2
  493. package/dist/components/table/types.d.ts.map +1 -1
  494. package/dist/components/tabs/tab-list.js +16 -17
  495. package/dist/components/tabs/tab-panel.js +14 -14
  496. package/dist/components/tabs/tab-panels.js +15 -15
  497. package/dist/components/tabs/tab-with-image.js +60 -53
  498. package/dist/components/tabs/tab.js +26 -22
  499. package/dist/components/tabs/tabs-recipe.js +96 -116
  500. package/dist/components/tabs/tabs.js +25 -24
  501. package/dist/components/tag/tag-recipe.js +225 -252
  502. package/dist/components/tag/tag.js +121 -62
  503. package/dist/components/text/text-recipe.js +3 -8
  504. package/dist/components/text/text.js +26 -27
  505. package/dist/components/textarea/textarea-recipe.js +90 -96
  506. package/dist/components/textarea/textarea.js +19 -19
  507. package/dist/components/toaster/toast-store.d.ts +2 -2
  508. package/dist/components/toaster/toast-store.d.ts.map +1 -1
  509. package/dist/components/toaster/toast-store.js +25 -32
  510. package/dist/components/toaster/toaster.js +39 -34
  511. package/dist/components/toggle-button/toggle-button.js +23 -25
  512. package/dist/components/toggle-button/use-button-children.js +36 -35
  513. package/dist/components/tooltip/tooltip.js +43 -47
  514. package/dist/hooks/use-color-mode.js +17 -22
  515. package/dist/hooks/use-disclosure.js +10 -13
  516. package/dist/hooks/use-measured-width.js +21 -21
  517. package/dist/hooks/use-remove-attributes.js +25 -24
  518. package/dist/index.js +396 -802
  519. package/dist/node_modules/@dnd-kit/abstract/index.js +658 -1185
  520. package/dist/node_modules/@dnd-kit/collision/dist/index.js +51 -90
  521. package/dist/node_modules/@dnd-kit/dom/index.js +1256 -1518
  522. package/dist/node_modules/@dnd-kit/dom/sortable.js +529 -654
  523. package/dist/node_modules/@dnd-kit/dom/utilities.js +772 -940
  524. package/dist/node_modules/@dnd-kit/geometry/dist/index.js +228 -196
  525. package/dist/node_modules/@dnd-kit/react/hooks.js +51 -63
  526. package/dist/node_modules/@dnd-kit/react/index.js +175 -235
  527. package/dist/node_modules/@dnd-kit/react/sortable.js +67 -142
  528. package/dist/node_modules/@dnd-kit/react/utilities.js +7 -9
  529. package/dist/node_modules/@dnd-kit/state/dist/index.js +157 -172
  530. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +154 -243
  531. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +294 -369
  532. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +95 -133
  533. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +96 -122
  534. package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +249 -264
  535. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +34 -88
  536. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +74 -88
  537. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1463 -1822
  538. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +633 -768
  539. package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +30 -32
  540. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +35 -48
  541. package/dist/node_modules/@tiptap/core/dist/index.js +3433 -3946
  542. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +19 -19
  543. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +73 -1498
  544. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +71 -84
  545. package/dist/node_modules/@tiptap/extension-code/dist/index.js +65 -70
  546. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +155 -216
  547. package/dist/node_modules/@tiptap/extension-document/dist/index.js +9 -11
  548. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +48 -60
  549. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +65 -66
  550. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +47 -55
  551. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +68 -82
  552. package/dist/node_modules/@tiptap/extension-link/dist/index.js +365 -334
  553. package/dist/node_modules/@tiptap/extension-list/dist/index.js +936 -1105
  554. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +43 -48
  555. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +53 -65
  556. package/dist/node_modules/@tiptap/extension-text/dist/index.js +12 -12
  557. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +60 -64
  558. package/dist/node_modules/@tiptap/extensions/dist/index.js +439 -462
  559. package/dist/node_modules/@tiptap/react/dist/index.js +314 -0
  560. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +23 -24
  561. package/dist/node_modules/country-flag-icons/modules/countries.json.js +4 -4
  562. package/dist/node_modules/country-flag-icons/modules/hasFlag.js +6 -6
  563. package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +5469 -6298
  564. package/dist/node_modules/country-flag-icons/react/3x2/index.js +273 -269
  565. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +5 -6
  566. package/dist/node_modules/date-fns/_lib/defaultOptions.js +6 -6
  567. package/dist/node_modules/date-fns/_lib/format/formatters.js +385 -544
  568. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +42 -57
  569. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +37 -48
  570. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +7 -17
  571. package/dist/node_modules/date-fns/_lib/normalizeDates.js +6 -9
  572. package/dist/node_modules/date-fns/_lib/protectedTokens.js +19 -16
  573. package/dist/node_modules/date-fns/addDays.js +8 -8
  574. package/dist/node_modules/date-fns/addMonths.js +11 -18
  575. package/dist/node_modules/date-fns/addWeeks.js +6 -6
  576. package/dist/node_modules/date-fns/constants.js +10 -6
  577. package/dist/node_modules/date-fns/constructFrom.js +6 -6
  578. package/dist/node_modules/date-fns/constructNow.js +6 -6
  579. package/dist/node_modules/date-fns/differenceInCalendarDays.js +10 -14
  580. package/dist/node_modules/date-fns/endOfDay.js +7 -7
  581. package/dist/node_modules/date-fns/endOfMonth.js +7 -7
  582. package/dist/node_modules/date-fns/format.js +57 -55
  583. package/dist/node_modules/date-fns/getDayOfYear.js +9 -9
  584. package/dist/node_modules/date-fns/getISOWeek.js +10 -10
  585. package/dist/node_modules/date-fns/getISOWeekYear.js +13 -13
  586. package/dist/node_modules/date-fns/getWeek.js +10 -10
  587. package/dist/node_modules/date-fns/getWeekYear.js +14 -14
  588. package/dist/node_modules/date-fns/isBefore.js +6 -6
  589. package/dist/node_modules/date-fns/isDate.js +5 -5
  590. package/dist/node_modules/date-fns/isPast.js +6 -6
  591. package/dist/node_modules/date-fns/isSameDay.js +8 -12
  592. package/dist/node_modules/date-fns/isSameMonth.js +7 -11
  593. package/dist/node_modules/date-fns/isSameWeek.js +8 -12
  594. package/dist/node_modules/date-fns/isSameYear.js +7 -11
  595. package/dist/node_modules/date-fns/isToday.js +7 -10
  596. package/dist/node_modules/date-fns/isValid.js +7 -7
  597. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
  598. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
  599. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
  600. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -14
  601. package/dist/node_modules/date-fns/locale/da/_lib/formatDistance.js +68 -69
  602. package/dist/node_modules/date-fns/locale/da/_lib/formatLong.js +31 -32
  603. package/dist/node_modules/date-fns/locale/da/_lib/formatRelative.js +11 -11
  604. package/dist/node_modules/date-fns/locale/da/_lib/localize.js +193 -142
  605. package/dist/node_modules/date-fns/locale/da/_lib/match.js +123 -109
  606. package/dist/node_modules/date-fns/locale/da.js +17 -17
  607. package/dist/node_modules/date-fns/locale/en-GB/_lib/formatLong.js +31 -32
  608. package/dist/node_modules/date-fns/locale/en-GB.js +18 -18
  609. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
  610. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
  611. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
  612. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
  613. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
  614. package/dist/node_modules/date-fns/locale/en-US.js +18 -18
  615. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +68 -69
  616. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +31 -32
  617. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -18
  618. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +192 -141
  619. package/dist/node_modules/date-fns/locale/es/_lib/match.js +127 -114
  620. package/dist/node_modules/date-fns/locale/es.js +18 -18
  621. package/dist/node_modules/date-fns/locale/et/_lib/formatDistance.js +161 -162
  622. package/dist/node_modules/date-fns/locale/et/_lib/formatLong.js +31 -32
  623. package/dist/node_modules/date-fns/locale/et/_lib/formatRelative.js +11 -11
  624. package/dist/node_modules/date-fns/locale/et/_lib/localize.js +196 -152
  625. package/dist/node_modules/date-fns/locale/et/_lib/match.js +109 -107
  626. package/dist/node_modules/date-fns/locale/et.js +19 -19
  627. package/dist/node_modules/date-fns/locale/fi/_lib/formatDistance.js +101 -101
  628. package/dist/node_modules/date-fns/locale/fi/_lib/formatLong.js +31 -32
  629. package/dist/node_modules/date-fns/locale/fi/_lib/formatRelative.js +11 -11
  630. package/dist/node_modules/date-fns/locale/fi/_lib/localize.js +192 -140
  631. package/dist/node_modules/date-fns/locale/fi/_lib/match.js +122 -108
  632. package/dist/node_modules/date-fns/locale/fi.js +18 -18
  633. package/dist/node_modules/date-fns/locale/fr/_lib/formatDistance.js +68 -69
  634. package/dist/node_modules/date-fns/locale/fr/_lib/formatLong.js +31 -32
  635. package/dist/node_modules/date-fns/locale/fr/_lib/formatRelative.js +11 -11
  636. package/dist/node_modules/date-fns/locale/fr/_lib/localize.js +176 -120
  637. package/dist/node_modules/date-fns/locale/fr/_lib/match.js +122 -108
  638. package/dist/node_modules/date-fns/locale/fr.js +18 -18
  639. package/dist/node_modules/date-fns/locale/lt/_lib/formatDistance.js +93 -109
  640. package/dist/node_modules/date-fns/locale/lt/_lib/formatLong.js +31 -32
  641. package/dist/node_modules/date-fns/locale/lt/_lib/formatRelative.js +11 -11
  642. package/dist/node_modules/date-fns/locale/lt/_lib/localize.js +298 -195
  643. package/dist/node_modules/date-fns/locale/lt/_lib/match.js +154 -121
  644. package/dist/node_modules/date-fns/locale/lt.js +19 -19
  645. package/dist/node_modules/date-fns/locale/lv/_lib/formatDistance.js +226 -120
  646. package/dist/node_modules/date-fns/locale/lv/_lib/formatLong.js +31 -32
  647. package/dist/node_modules/date-fns/locale/lv/_lib/formatRelative.js +22 -22
  648. package/dist/node_modules/date-fns/locale/lv/_lib/localize.js +298 -221
  649. package/dist/node_modules/date-fns/locale/lv/_lib/match.js +138 -112
  650. package/dist/node_modules/date-fns/locale/lv.js +18 -18
  651. package/dist/node_modules/date-fns/locale/nb/_lib/formatDistance.js +68 -69
  652. package/dist/node_modules/date-fns/locale/nb/_lib/formatLong.js +31 -32
  653. package/dist/node_modules/date-fns/locale/nb/_lib/formatRelative.js +11 -11
  654. package/dist/node_modules/date-fns/locale/nb/_lib/localize.js +159 -108
  655. package/dist/node_modules/date-fns/locale/nb/_lib/match.js +112 -108
  656. package/dist/node_modules/date-fns/locale/nb.js +18 -18
  657. package/dist/node_modules/date-fns/locale/nl/_lib/formatDistance.js +68 -69
  658. package/dist/node_modules/date-fns/locale/nl/_lib/formatLong.js +31 -32
  659. package/dist/node_modules/date-fns/locale/nl/_lib/formatRelative.js +11 -11
  660. package/dist/node_modules/date-fns/locale/nl/_lib/localize.js +160 -109
  661. package/dist/node_modules/date-fns/locale/nl/_lib/match.js +120 -108
  662. package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js +68 -69
  663. package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatLong.js +31 -32
  664. package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js +11 -11
  665. package/dist/node_modules/date-fns/locale/nl-BE/_lib/localize.js +160 -109
  666. package/dist/node_modules/date-fns/locale/nl-BE/_lib/match.js +120 -108
  667. package/dist/node_modules/date-fns/locale/nl-BE.js +18 -18
  668. package/dist/node_modules/date-fns/locale/nl.js +18 -18
  669. package/dist/node_modules/date-fns/locale/sv/_lib/formatDistance.js +82 -86
  670. package/dist/node_modules/date-fns/locale/sv/_lib/formatLong.js +31 -32
  671. package/dist/node_modules/date-fns/locale/sv/_lib/formatRelative.js +11 -11
  672. package/dist/node_modules/date-fns/locale/sv/_lib/localize.js +199 -142
  673. package/dist/node_modules/date-fns/locale/sv/_lib/match.js +109 -107
  674. package/dist/node_modules/date-fns/locale/sv.js +18 -18
  675. package/dist/node_modules/date-fns/startOfDay.js +7 -7
  676. package/dist/node_modules/date-fns/startOfISOWeek.js +9 -6
  677. package/dist/node_modules/date-fns/startOfISOWeekYear.js +9 -9
  678. package/dist/node_modules/date-fns/startOfMonth.js +7 -7
  679. package/dist/node_modules/date-fns/startOfWeek.js +8 -8
  680. package/dist/node_modules/date-fns/startOfWeekYear.js +10 -10
  681. package/dist/node_modules/date-fns/startOfYear.js +7 -7
  682. package/dist/node_modules/date-fns/subDays.js +6 -6
  683. package/dist/node_modules/date-fns/subMonths.js +6 -6
  684. package/dist/node_modules/date-fns/subWeeks.js +6 -6
  685. package/dist/node_modules/date-fns/toDate.js +6 -6
  686. package/dist/node_modules/fast-equals/dist/es/index.js +239 -298
  687. package/dist/node_modules/libphonenumber-js/es6/ParseError.js +116 -89
  688. package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.js +155 -183
  689. package/dist/node_modules/libphonenumber-js/es6/constants.js +4 -10
  690. package/dist/node_modules/libphonenumber-js/es6/format.js +70 -91
  691. package/dist/node_modules/libphonenumber-js/es6/getCountries.js +5 -5
  692. package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +8 -10
  693. package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +5 -5
  694. package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +19 -14
  695. package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +9 -9
  696. package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +15 -17
  697. package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +35 -45
  698. package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +20 -26
  699. package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +17 -22
  700. package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +24 -36
  701. package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +26 -30
  702. package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +13 -21
  703. package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +10 -24
  704. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +10 -11
  705. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +6 -8
  706. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +39 -39
  707. package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +9 -11
  708. package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +56 -47
  709. package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +12 -12
  710. package/dist/node_modules/libphonenumber-js/es6/helpers/isCallingCode.js +5 -5
  711. package/dist/node_modules/libphonenumber-js/es6/helpers/isCountryCode.js +5 -5
  712. package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.js +6 -6
  713. package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +9 -17
  714. package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +5 -5
  715. package/dist/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +39 -0
  716. package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +46 -77
  717. package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +17 -18
  718. package/dist/node_modules/libphonenumber-js/es6/isPossible.js +29 -32
  719. package/dist/node_modules/libphonenumber-js/es6/isValid.js +12 -13
  720. package/dist/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +55 -52
  721. package/dist/node_modules/libphonenumber-js/es6/metadata.js +462 -482
  722. package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.js +97 -95
  723. package/dist/node_modules/libphonenumber-js/es6/parse.js +98 -133
  724. package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +43 -35
  725. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +8 -8
  726. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +51 -48
  727. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +59 -55
  728. package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.js +13 -13
  729. package/dist/node_modules/libphonenumber-js/metadata.min.json.js +7437 -3
  730. package/dist/node_modules/libphonenumber-js/min/exports/getCountries.js +6 -6
  731. package/dist/node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js +6 -6
  732. package/dist/node_modules/libphonenumber-js/min/exports/isSupportedCountry.js +7 -7
  733. package/dist/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js +6 -6
  734. package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +7 -7
  735. package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +6 -6
  736. package/dist/node_modules/linkifyjs/dist/linkify.js +486 -679
  737. package/dist/node_modules/next-themes/dist/index.js +120 -85
  738. package/dist/node_modules/orderedmap/dist/index.js +64 -100
  739. package/dist/node_modules/prosemirror-commands/dist/index.js +313 -368
  740. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +109 -84
  741. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +162 -195
  742. package/dist/node_modules/prosemirror-history/dist/index.js +203 -239
  743. package/dist/node_modules/prosemirror-keymap/dist/index.js +45 -57
  744. package/dist/node_modules/prosemirror-model/dist/index.js +1783 -2735
  745. package/dist/node_modules/prosemirror-schema-list/dist/index.js +66 -81
  746. package/dist/node_modules/prosemirror-state/dist/index.js +517 -814
  747. package/dist/node_modules/prosemirror-transform/dist/index.js +1104 -1505
  748. package/dist/node_modules/prosemirror-view/dist/index.js +3274 -3782
  749. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +15 -21
  750. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +12 -14
  751. package/dist/node_modules/react/compiler-runtime.js +10 -10
  752. package/dist/node_modules/rope-sequence/dist/index.js +82 -99
  753. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +55 -58
  754. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +53 -57
  755. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +53 -58
  756. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +45 -46
  757. package/dist/node_modules/use-sync-external-store/shim/index.js +10 -10
  758. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -10
  759. package/dist/node_modules/w3c-keyname/index.js +87 -92
  760. package/dist/theme/component-recipes.js +52 -53
  761. package/dist/theme/theme-casper-ui.js +179 -420
  762. package/dist/theme/theme-helper.js +4 -4
  763. package/dist/theme/theme-provider.js +33 -34
  764. package/dist/theme/theme-style-props.d.ts.map +1 -1
  765. package/dist/theme/theme-tokens.js +22 -12
  766. package/dist/theme/theme-types.js +22 -12
  767. package/dist/theme/theme.js +213 -268
  768. package/package.json +30 -29
  769. package/dist/_virtual/compiler-runtime.js +0 -5
  770. package/dist/_virtual/compiler-runtime2.js +0 -4
  771. package/dist/_virtual/index.js +0 -5
  772. package/dist/_virtual/index2.js +0 -4
  773. package/dist/_virtual/react-compiler-runtime.development.js +0 -4
  774. package/dist/_virtual/react-compiler-runtime.production.js +0 -4
  775. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -4
  776. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -4
  777. package/dist/_virtual/with-selector.development.js +0 -4
  778. package/dist/_virtual/with-selector.js +0 -5
  779. package/dist/_virtual/with-selector.production.js +0 -4
  780. package/dist/_virtual/with-selector2.js +0 -4
  781. package/dist/packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js +0 -506
@@ -1,950 +1,782 @@
1
- import { Rectangle as it } from "../geometry/dist/index.js";
2
- var gt = (t) => {
3
- throw TypeError(t);
4
- }, st = (t, e, n) => e.has(t) || gt("Cannot " + n), u = (t, e, n) => (st(t, e, "read from private field"), e.get(t)), _ = (t, e, n) => e.has(t) ? gt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), R = (t, e, n, i) => (st(t, e, "write to private field"), e.set(t, n), n), yt = (t, e, n) => (st(t, e, "access private method"), n);
5
- function q(t) {
6
- return t ? t instanceof KeyframeEffect ? !0 : "getKeyframes" in t && typeof t.getKeyframes == "function" : !1;
7
- }
8
- function Ct(t, e) {
9
- const n = t.getAnimations();
10
- let i = null;
11
- for (const o of n) {
12
- if (o.playState !== "running") continue;
13
- const { effect: s } = o, l = (q(s) ? s.getKeyframes() : []).filter(e);
14
- l.length > 0 && (i = [l[l.length - 1], o]);
15
- }
16
- return i;
17
- }
18
- function j(t) {
19
- const { width: e, height: n, top: i, left: o, bottom: s, right: r } = t.getBoundingClientRect();
20
- return { width: e, height: n, top: i, left: o, bottom: s, right: r };
21
- }
22
- function ot(t) {
23
- const e = Object.prototype.toString.call(t);
24
- return e === "[object Window]" || // In Electron context the Window object serializes to [object global]
25
- e === "[object global]";
26
- }
27
- function X(t) {
28
- return "nodeType" in t;
29
- }
30
- function E(t) {
31
- var e, n, i;
32
- return t ? ot(t) ? t : X(t) ? "defaultView" in t ? (e = t.defaultView) != null ? e : window : (i = (n = t.ownerDocument) == null ? void 0 : n.defaultView) != null ? i : window : window : window;
33
- }
34
- function mt(t) {
35
- const { Document: e } = E(t);
36
- return t instanceof e || "nodeType" in t && t.nodeType === Node.DOCUMENT_NODE;
37
- }
38
- function C(t) {
39
- return !t || ot(t) ? !1 : t instanceof E(t).HTMLElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("html");
40
- }
41
- function wt(t) {
42
- return t instanceof E(t).SVGElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("svg");
43
- }
44
- function rt(t) {
45
- return t ? ot(t) ? t.document : X(t) ? mt(t) ? t : C(t) || wt(t) ? t.ownerDocument : document : document : document;
46
- }
47
- function Nt(t) {
48
- var e, n, i, o;
49
- const { documentElement: s } = rt(t), r = E(t).visualViewport, l = (e = r?.width) != null ? e : s.clientWidth, c = (n = r?.height) != null ? n : s.clientHeight, a = (i = r?.offsetTop) != null ? i : 0, f = (o = r?.offsetLeft) != null ? o : 0;
50
- return {
51
- top: a,
52
- left: f,
53
- right: f + l,
54
- bottom: a + c,
55
- width: l,
56
- height: c
57
- };
58
- }
59
- function Lt(t, e) {
60
- if (Pt(t) && t.open === !1)
61
- return !1;
62
- const { overflow: n, overflowX: i, overflowY: o } = getComputedStyle(t);
63
- return n === "visible" && i === "visible" && o === "visible";
64
- }
65
- function Pt(t) {
66
- return t.tagName === "DETAILS";
67
- }
68
- function B(t, e = t.getBoundingClientRect(), n = 0) {
69
- var i, o, s, r, l;
70
- let c = e;
71
- const { ownerDocument: a } = t, f = (i = a.defaultView) != null ? i : window;
72
- let h = t.parentElement;
73
- for (; h && h !== a.documentElement; ) {
74
- if (!Lt(h)) {
75
- const y = h.getBoundingClientRect(), M = n * (y.bottom - y.top), g = n * (y.right - y.left), G = n * (y.bottom - y.top), J = n * (y.right - y.left);
76
- c = {
77
- top: Math.max(c.top, y.top - M),
78
- right: Math.min(c.right, y.right + g),
79
- bottom: Math.min(c.bottom, y.bottom + G),
80
- left: Math.max(c.left, y.left - J),
81
- width: 0,
82
- // Will be calculated next
83
- height: 0
84
- // Will be calculated next
85
- }, c.width = c.right - c.left, c.height = c.bottom - c.top;
86
- }
87
- h = h.parentElement;
88
- }
89
- const v = f.visualViewport, m = (o = v?.offsetTop) != null ? o : 0, w = (s = v?.offsetLeft) != null ? s : 0, d = (r = v?.width) != null ? r : f.innerWidth, x = (l = v?.height) != null ? l : f.innerHeight, b = n * x, p = n * d;
90
- return c = {
91
- top: Math.max(c.top, m - b),
92
- right: Math.min(
93
- c.right,
94
- w + d + p
95
- ),
96
- bottom: Math.min(
97
- c.bottom,
98
- m + x + b
99
- ),
100
- left: Math.max(c.left, w - p),
101
- width: 0,
102
- // Will be calculated next
103
- height: 0
104
- // Will be calculated next
105
- }, c.width = c.right - c.left, c.height = c.bottom - c.top, c.width < 0 && (c.width = 0), c.height < 0 && (c.height = 0), c;
106
- }
107
- function ye(t) {
108
- return {
109
- x: t.clientX,
110
- y: t.clientY
111
- };
112
- }
113
- var bt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
114
- function at(t = document, e = /* @__PURE__ */ new Set()) {
115
- if (e.has(t)) return [];
116
- e.add(t);
117
- const n = [t];
118
- for (const i of Array.from(
119
- t.querySelectorAll("iframe, frame")
120
- ))
121
- try {
122
- const o = i.contentDocument;
123
- o && !e.has(o) && n.push(...at(o, e));
124
- } catch {
125
- }
126
- try {
127
- const i = t.defaultView;
128
- if (i && i !== window.top) {
129
- const o = i.parent;
130
- o && o.document && o.document !== t && n.push(...at(o.document, e));
131
- }
132
- } catch {
133
- }
134
- return n;
135
- }
136
- function xt() {
137
- return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
138
- }
139
- function me() {
140
- var t, e;
141
- const n = xt() ? window.visualViewport : null;
142
- return {
143
- x: (t = n?.offsetLeft) != null ? t : 0,
144
- y: (e = n?.offsetTop) != null ? e : 0
145
- };
146
- }
147
- function Tt(t) {
148
- return !t || !X(t) ? !1 : t instanceof E(t).ShadowRoot;
149
- }
150
- function we(t) {
151
- if (t && X(t)) {
152
- let e = t.getRootNode();
153
- if (Tt(e))
154
- return e;
155
- if (e instanceof Document)
156
- return e;
157
- }
158
- return rt(t);
159
- }
160
- function be(t) {
161
- return t.matchMedia("(prefers-reduced-motion: reduce)").matches;
162
- }
163
- function xe(t) {
164
- const e = "input, textarea, select, canvas, [contenteditable]", n = t.cloneNode(!0), i = Array.from(t.querySelectorAll(e));
165
- return Array.from(n.querySelectorAll(e)).forEach((s, r) => {
166
- const l = i[r];
167
- if (ft(s) && ft(l) && (s.type !== "file" && (s.value = l.value), s.type === "radio" && s.name && (s.name = `Cloned__${s.name}`)), ut(s) && ut(l) && l.width > 0 && l.height > 0) {
168
- const c = s.getContext("2d");
169
- c?.drawImage(l, 0, 0);
170
- }
171
- }), n;
172
- }
173
- function ft(t) {
174
- return "value" in t;
175
- }
176
- function ut(t) {
177
- return t.tagName === "CANVAS";
178
- }
179
- function Ft(t, { x: e, y: n }) {
180
- const i = t.elementFromPoint(e, n);
181
- if (Ot(i)) {
182
- const { contentDocument: o } = i;
183
- if (o) {
184
- const { left: s, top: r } = i.getBoundingClientRect();
185
- return Ft(o, {
186
- x: e - s,
187
- y: n - r
188
- });
189
- }
190
- }
191
- return i;
192
- }
193
- function Ot(t) {
194
- return t?.tagName === "IFRAME";
195
- }
196
- var Te = /* @__PURE__ */ new WeakMap();
197
- function _e(t) {
198
- return t.closest(`
199
- input:not([disabled]),
200
- select:not([disabled]),
201
- textarea:not([disabled]),
202
- button:not([disabled]),
203
- a[href],
204
- [contenteditable]:not([contenteditable="false"])
205
- `);
206
- }
207
- var Re = class {
208
- constructor() {
209
- this.entries = /* @__PURE__ */ new Set(), this.clear = () => {
210
- for (const t of this.entries) {
211
- const [e, { type: n, listener: i, options: o }] = t;
212
- e.removeEventListener(n, i, o);
213
- }
214
- this.entries.clear();
215
- };
216
- }
217
- bind(t, e) {
218
- const n = Array.isArray(t) ? t : [t], i = Array.isArray(e) ? e : [e], o = [];
219
- for (const r of n)
220
- for (const l of i) {
221
- const { type: c, listener: a, options: f } = l, h = [r, l];
222
- r.addEventListener(c, a, f), this.entries.add(h), o.push(h);
223
- }
224
- const s = this.entries;
225
- return function() {
226
- for (const l of o) {
227
- const [c, { type: a, listener: f, options: h }] = l;
228
- c.removeEventListener(a, f, h), s.delete(l);
229
- }
230
- };
231
- }
1
+ import { Rectangle as e } from "../geometry/dist/index.js";
2
+ //#region ../../node_modules/@dnd-kit/dom/utilities.js
3
+ var t = (e) => {
4
+ throw TypeError(e);
5
+ }, n = (e, n, r) => n.has(e) || t("Cannot " + r), r = (e, t, r) => (n(e, t, "read from private field"), t.get(e)), i = (e, n, r) => n.has(e) ? t("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, r), a = (e, t, r, i) => (n(e, t, "write to private field"), t.set(e, r), r), o = (e, t, r) => (n(e, t, "access private method"), r);
6
+ function s(e) {
7
+ return e ? e instanceof KeyframeEffect || "getKeyframes" in e && typeof e.getKeyframes == "function" : !1;
8
+ }
9
+ function c(e, t) {
10
+ let n = e.getAnimations(), r = null;
11
+ for (let e of n) {
12
+ if (e.playState !== "running") continue;
13
+ let { effect: n } = e, i = (s(n) ? n.getKeyframes() : []).filter(t);
14
+ i.length > 0 && (r = [i[i.length - 1], e]);
15
+ }
16
+ return r;
17
+ }
18
+ function l(e) {
19
+ let { width: t, height: n, top: r, left: i, bottom: a, right: o } = e.getBoundingClientRect();
20
+ return {
21
+ width: t,
22
+ height: n,
23
+ top: r,
24
+ left: i,
25
+ bottom: a,
26
+ right: o
27
+ };
28
+ }
29
+ function u(e) {
30
+ let t = Object.prototype.toString.call(e);
31
+ return t === "[object Window]" || t === "[object global]";
32
+ }
33
+ function d(e) {
34
+ return "nodeType" in e;
35
+ }
36
+ function f(e) {
37
+ return e ? u(e) ? e : d(e) ? "defaultView" in e ? e.defaultView ?? window : e.ownerDocument?.defaultView ?? window : window : window;
38
+ }
39
+ function p(e) {
40
+ let { Document: t } = f(e);
41
+ return e instanceof t || "nodeType" in e && e.nodeType === Node.DOCUMENT_NODE;
42
+ }
43
+ function m(e) {
44
+ return !e || u(e) ? !1 : e instanceof f(e).HTMLElement || "namespaceURI" in e && typeof e.namespaceURI == "string" && e.namespaceURI.endsWith("html");
45
+ }
46
+ function h(e) {
47
+ return e instanceof f(e).SVGElement || "namespaceURI" in e && typeof e.namespaceURI == "string" && e.namespaceURI.endsWith("svg");
48
+ }
49
+ function g(e) {
50
+ return e ? u(e) ? e.document : d(e) ? p(e) ? e : m(e) || h(e) ? e.ownerDocument : document : document : document;
51
+ }
52
+ function _(e) {
53
+ let { documentElement: t } = g(e), n = f(e).visualViewport, r = n?.width ?? t.clientWidth, i = n?.height ?? t.clientHeight, a = n?.offsetTop ?? 0, o = n?.offsetLeft ?? 0;
54
+ return {
55
+ top: a,
56
+ left: o,
57
+ right: o + r,
58
+ bottom: a + i,
59
+ width: r,
60
+ height: i
61
+ };
62
+ }
63
+ function v(e, t) {
64
+ if (y(e) && e.open === !1) return !1;
65
+ let { overflow: n, overflowX: r, overflowY: i } = getComputedStyle(e);
66
+ return n === "visible" && r === "visible" && i === "visible";
67
+ }
68
+ function y(e) {
69
+ return e.tagName === "DETAILS";
70
+ }
71
+ function b(e, t = e.getBoundingClientRect(), n = 0) {
72
+ let r = t, { ownerDocument: i } = e, a = i.defaultView ?? window, o = e.parentElement;
73
+ for (; o && o !== i.documentElement;) {
74
+ if (!v(o)) {
75
+ let e = o.getBoundingClientRect(), t = n * (e.bottom - e.top), i = n * (e.right - e.left), a = n * (e.bottom - e.top), s = n * (e.right - e.left);
76
+ r = {
77
+ top: Math.max(r.top, e.top - t),
78
+ right: Math.min(r.right, e.right + i),
79
+ bottom: Math.min(r.bottom, e.bottom + a),
80
+ left: Math.max(r.left, e.left - s),
81
+ width: 0,
82
+ height: 0
83
+ }, r.width = r.right - r.left, r.height = r.bottom - r.top;
84
+ }
85
+ o = o.parentElement;
86
+ }
87
+ let s = a.visualViewport, c = s?.offsetTop ?? 0, l = s?.offsetLeft ?? 0, u = s?.width ?? a.innerWidth, d = s?.height ?? a.innerHeight, f = n * d, p = n * u;
88
+ return r = {
89
+ top: Math.max(r.top, c - f),
90
+ right: Math.min(r.right, l + u + p),
91
+ bottom: Math.min(r.bottom, c + d + f),
92
+ left: Math.max(r.left, l - p),
93
+ width: 0,
94
+ height: 0
95
+ }, r.width = r.right - r.left, r.height = r.bottom - r.top, r.width < 0 && (r.width = 0), r.height < 0 && (r.height = 0), r;
96
+ }
97
+ function x(e) {
98
+ return {
99
+ x: e.clientX,
100
+ y: e.clientY
101
+ };
102
+ }
103
+ var S = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
104
+ function C(e = document, t = /* @__PURE__ */ new Set()) {
105
+ if (t.has(e)) return [];
106
+ t.add(e);
107
+ let n = [e];
108
+ for (let r of Array.from(e.querySelectorAll("iframe, frame"))) try {
109
+ let e = r.contentDocument;
110
+ e && !t.has(e) && n.push(...C(e, t));
111
+ } catch {}
112
+ try {
113
+ let r = e.defaultView;
114
+ if (r && r !== window.top) {
115
+ let i = r.parent;
116
+ i && i.document && i.document !== e && n.push(...C(i.document, t));
117
+ }
118
+ } catch {}
119
+ return n;
120
+ }
121
+ function w() {
122
+ return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
123
+ }
124
+ function ee() {
125
+ let e = w() ? window.visualViewport : null;
126
+ return {
127
+ x: e?.offsetLeft ?? 0,
128
+ y: e?.offsetTop ?? 0
129
+ };
130
+ }
131
+ function T(e) {
132
+ return !e || !d(e) ? !1 : e instanceof f(e).ShadowRoot;
133
+ }
134
+ function te(e) {
135
+ if (e && d(e)) {
136
+ let t = e.getRootNode();
137
+ if (T(t) || t instanceof Document) return t;
138
+ }
139
+ return g(e);
140
+ }
141
+ function ne(e) {
142
+ return e.matchMedia("(prefers-reduced-motion: reduce)").matches;
143
+ }
144
+ function re(e) {
145
+ let t = "input, textarea, select, canvas, [contenteditable]", n = e.cloneNode(!0), r = Array.from(e.querySelectorAll(t));
146
+ return Array.from(n.querySelectorAll(t)).forEach((e, t) => {
147
+ let n = r[t];
148
+ E(e) && E(n) && (e.type !== "file" && (e.value = n.value), e.type === "radio" && e.name && (e.name = `Cloned__${e.name}`)), ie(e) && ie(n) && n.width > 0 && n.height > 0 && e.getContext("2d")?.drawImage(n, 0, 0);
149
+ }), n;
150
+ }
151
+ function E(e) {
152
+ return "value" in e;
153
+ }
154
+ function ie(e) {
155
+ return e.tagName === "CANVAS";
156
+ }
157
+ function ae(e, { x: t, y: n }) {
158
+ let r = e.elementFromPoint(t, n);
159
+ if (oe(r)) {
160
+ let { contentDocument: e } = r;
161
+ if (e) {
162
+ let { left: i, top: a } = r.getBoundingClientRect();
163
+ return ae(e, {
164
+ x: t - i,
165
+ y: n - a
166
+ });
167
+ }
168
+ }
169
+ return r;
170
+ }
171
+ function oe(e) {
172
+ return e?.tagName === "IFRAME";
173
+ }
174
+ var se = /* @__PURE__ */ new WeakMap();
175
+ function ce(e) {
176
+ return e.closest("\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable=\"false\"])\n ");
177
+ }
178
+ var le = class {
179
+ constructor() {
180
+ this.entries = /* @__PURE__ */ new Set(), this.clear = () => {
181
+ for (let e of this.entries) {
182
+ let [t, { type: n, listener: r, options: i }] = e;
183
+ t.removeEventListener(n, r, i);
184
+ }
185
+ this.entries.clear();
186
+ };
187
+ }
188
+ bind(e, t) {
189
+ let n = Array.isArray(e) ? e : [e], r = Array.isArray(t) ? t : [t], i = [];
190
+ for (let e of n) for (let t of r) {
191
+ let { type: n, listener: r, options: a } = t, o = [e, t];
192
+ e.addEventListener(n, r, a), this.entries.add(o), i.push(o);
193
+ }
194
+ let a = this.entries;
195
+ return function() {
196
+ for (let e of i) {
197
+ let [t, { type: n, listener: r, options: i }] = e;
198
+ t.removeEventListener(n, r, i), a.delete(e);
199
+ }
200
+ };
201
+ }
232
202
  };
233
- function H(t) {
234
- const e = t?.ownerDocument.defaultView;
235
- if (e && e.self !== e.parent)
236
- return e.frameElement;
237
- }
238
- function It(t) {
239
- const e = /* @__PURE__ */ new Set();
240
- let n = H(t);
241
- for (; n; )
242
- e.add(n), n = H(n);
243
- return e;
244
- }
245
- function Xt(t, e) {
246
- const n = setTimeout(t, e);
247
- return () => clearTimeout(n);
248
- }
249
- function _t(t, e) {
250
- const n = () => performance.now();
251
- let i, o;
252
- return function(...s) {
253
- const r = this;
254
- o ? (i?.(), i = Xt(
255
- () => {
256
- t.apply(r, s), o = n();
257
- },
258
- e - (n() - o)
259
- )) : (t.apply(r, s), o = n());
260
- };
261
- }
262
- function Vt(t, e) {
263
- return t === e ? !0 : !t || !e ? !1 : t.top == e.top && t.left == e.left && t.right == e.right && t.bottom == e.bottom;
264
- }
265
- function Yt(t, e = t.getBoundingClientRect()) {
266
- const { width: n, height: i } = B(
267
- t,
268
- e
269
- );
270
- return n > 0 && i > 0;
271
- }
272
- var Dt = bt ? ResizeObserver : class {
273
- observe() {
274
- }
275
- unobserve() {
276
- }
277
- disconnect() {
278
- }
279
- }, D, zt = class extends Dt {
280
- constructor(t) {
281
- super((e) => {
282
- if (!u(this, D)) {
283
- R(this, D, !0);
284
- return;
285
- }
286
- t(e, this);
287
- }), _(this, D, !1);
288
- }
203
+ function D(e) {
204
+ let t = e?.ownerDocument.defaultView;
205
+ if (t && t.self !== t.parent) return t.frameElement;
206
+ }
207
+ function ue(e) {
208
+ let t = /* @__PURE__ */ new Set(), n = D(e);
209
+ for (; n;) t.add(n), n = D(n);
210
+ return t;
211
+ }
212
+ function de(e, t) {
213
+ let n = setTimeout(e, t);
214
+ return () => clearTimeout(n);
215
+ }
216
+ function fe(e, t) {
217
+ let n = () => performance.now(), r, i;
218
+ return function(...a) {
219
+ let o = this;
220
+ i ? (r?.(), r = de(() => {
221
+ e.apply(o, a), i = n();
222
+ }, t - (n() - i))) : (e.apply(o, a), i = n());
223
+ };
224
+ }
225
+ function pe(e, t) {
226
+ return e === t ? !0 : !e || !t ? !1 : e.top == t.top && e.left == t.left && e.right == t.right && e.bottom == t.bottom;
227
+ }
228
+ function me(e, t = e.getBoundingClientRect()) {
229
+ let { width: n, height: r } = b(e, t);
230
+ return n > 0 && r > 0;
231
+ }
232
+ var he = S ? ResizeObserver : class {
233
+ observe() {}
234
+ unobserve() {}
235
+ disconnect() {}
236
+ }, O, ge = class extends he {
237
+ constructor(e) {
238
+ super((t) => {
239
+ if (!r(this, O)) {
240
+ a(this, O, !0);
241
+ return;
242
+ }
243
+ e(t, this);
244
+ }), i(this, O, !1);
245
+ }
289
246
  };
290
- D = /* @__PURE__ */ new WeakMap();
291
- var ht = Array.from({ length: 100 }, (t, e) => e / 100), Rt = 75, k, $, S, A, N, T, O, L, K, Mt, Et, St = class {
292
- constructor(t, e, n = {
293
- debug: !1,
294
- skipInitial: !1
295
- }) {
296
- this.element = t, this.callback = e, _(this, K), this.disconnect = () => {
297
- var s, r, l;
298
- R(this, O, !0), (s = u(this, S)) == null || s.disconnect(), (r = u(this, A)) == null || r.disconnect(), u(this, N).disconnect(), (l = u(this, T)) == null || l.remove();
299
- }, _(this, k, !0), _(this, $), _(this, S), _(this, A), _(this, N), _(this, T), _(this, O, !1), _(this, L, _t(() => {
300
- var s, r, l;
301
- const { element: c } = this;
302
- if ((s = u(this, A)) == null || s.disconnect(), u(this, O) || !u(this, k) || !c.isConnected)
303
- return;
304
- const a = (r = c.ownerDocument) != null ? r : document, { innerHeight: f, innerWidth: h } = (l = a.defaultView) != null ? l : window, v = c.getBoundingClientRect(), m = B(c, v), { top: w, left: d, bottom: x, right: b } = m, p = -Math.floor(w), y = -Math.floor(d), M = -Math.floor(h - b), g = -Math.floor(f - x), G = `${p}px ${M}px ${g}px ${y}px`;
305
- this.boundingClientRect = v, R(this, A, new IntersectionObserver(
306
- (J) => {
307
- const [Q] = J, { intersectionRect: Wt } = Q;
308
- (Q.intersectionRatio !== 1 ? Q.intersectionRatio : it.intersectionRatio(
309
- Wt,
310
- B(c)
311
- )) !== 1 && u(this, L).call(this);
312
- },
313
- {
314
- threshold: ht,
315
- rootMargin: G,
316
- root: a
317
- }
318
- )), u(this, A).observe(c), yt(this, K, Mt).call(this);
319
- }, Rt)), this.boundingClientRect = t.getBoundingClientRect(), R(this, k, Yt(t, this.boundingClientRect));
320
- let i = !0;
321
- this.callback = (s) => {
322
- i && (i = !1, n.skipInitial) || e(s);
323
- };
324
- const o = t.ownerDocument;
325
- n?.debug && (R(this, T, document.createElement("div")), u(this, T).style.background = "rgba(0,0,0,0.15)", u(this, T).style.position = "fixed", u(this, T).style.pointerEvents = "none", o.body.appendChild(u(this, T))), R(this, N, new IntersectionObserver(
326
- (s) => {
327
- var r, l;
328
- const c = s[s.length - 1], { boundingClientRect: a, isIntersecting: f } = c, { width: h, height: v } = a, m = u(this, k);
329
- R(this, k, f), !(!h && !v) && (m && !f ? ((r = u(this, A)) == null || r.disconnect(), this.callback(null), (l = u(this, S)) == null || l.disconnect(), R(this, S, void 0), u(this, T) && (u(this, T).style.visibility = "hidden")) : u(this, L).call(this), f && !u(this, S) && (R(this, S, new zt(u(this, L))), u(this, S).observe(t)));
330
- },
331
- {
332
- threshold: ht,
333
- root: o
334
- }
335
- )), u(this, k) && !n.skipInitial && this.callback(this.boundingClientRect), u(this, N).observe(t);
336
- }
337
- };
338
- k = /* @__PURE__ */ new WeakMap();
339
- $ = /* @__PURE__ */ new WeakMap();
340
- S = /* @__PURE__ */ new WeakMap();
341
- A = /* @__PURE__ */ new WeakMap();
342
- N = /* @__PURE__ */ new WeakMap();
343
- T = /* @__PURE__ */ new WeakMap();
344
247
  O = /* @__PURE__ */ new WeakMap();
345
- L = /* @__PURE__ */ new WeakMap();
346
- K = /* @__PURE__ */ new WeakSet();
347
- Mt = function() {
348
- u(this, O) || (yt(this, K, Et).call(this), !Vt(this.boundingClientRect, u(this, $)) && (this.callback(this.boundingClientRect), R(this, $, this.boundingClientRect)));
349
- };
350
- Et = function() {
351
- if (u(this, T)) {
352
- const { top: t, left: e, width: n, height: i } = B(
353
- this.element
354
- );
355
- u(this, T).style.overflow = "hidden", u(this, T).style.visibility = "visible", u(this, T).style.top = `${Math.floor(t)}px`, u(this, T).style.left = `${Math.floor(e)}px`, u(this, T).style.width = `${Math.floor(n)}px`, u(this, T).style.height = `${Math.floor(i)}px`;
356
- }
248
+ var _e = Array.from({ length: 100 }, (e, t) => t / 100), ve = 75, k, A, j, M, N, P, F, I, L, ye, be, xe = class {
249
+ constructor(t, n, s = {
250
+ debug: !1,
251
+ skipInitial: !1
252
+ }) {
253
+ this.element = t, this.callback = n, i(this, L), this.disconnect = () => {
254
+ var e, t, n;
255
+ a(this, F, !0), (e = r(this, j)) == null || e.disconnect(), (t = r(this, M)) == null || t.disconnect(), r(this, N).disconnect(), (n = r(this, P)) == null || n.remove();
256
+ }, i(this, k, !0), i(this, A), i(this, j), i(this, M), i(this, N), i(this, P), i(this, F, !1), i(this, I, fe(() => {
257
+ var t;
258
+ let { element: n } = this;
259
+ if ((t = r(this, M)) == null || t.disconnect(), r(this, F) || !r(this, k) || !n.isConnected) return;
260
+ let i = n.ownerDocument ?? document, { innerHeight: s, innerWidth: c } = i.defaultView ?? window, l = n.getBoundingClientRect(), { top: u, left: d, bottom: f, right: p } = b(n, l), m = -Math.floor(u), h = -Math.floor(d), g = `${m}px ${-Math.floor(c - p)}px ${-Math.floor(s - f)}px ${h}px`;
261
+ this.boundingClientRect = l, a(this, M, new IntersectionObserver((t) => {
262
+ let [i] = t, { intersectionRect: a } = i;
263
+ (i.intersectionRatio === 1 ? e.intersectionRatio(a, b(n)) : i.intersectionRatio) !== 1 && r(this, I).call(this);
264
+ }, {
265
+ threshold: _e,
266
+ rootMargin: g,
267
+ root: i
268
+ })), r(this, M).observe(n), o(this, L, ye).call(this);
269
+ }, ve)), this.boundingClientRect = t.getBoundingClientRect(), a(this, k, me(t, this.boundingClientRect));
270
+ let c = !0;
271
+ this.callback = (e) => {
272
+ c && (c = !1, s.skipInitial) || n(e);
273
+ };
274
+ let l = t.ownerDocument;
275
+ s?.debug && (a(this, P, document.createElement("div")), r(this, P).style.background = "rgba(0,0,0,0.15)", r(this, P).style.position = "fixed", r(this, P).style.pointerEvents = "none", l.body.appendChild(r(this, P))), a(this, N, new IntersectionObserver((e) => {
276
+ var n, i;
277
+ let { boundingClientRect: o, isIntersecting: s } = e[e.length - 1], { width: c, height: l } = o, u = r(this, k);
278
+ a(this, k, s), !(!c && !l) && (u && !s ? ((n = r(this, M)) == null || n.disconnect(), this.callback(null), (i = r(this, j)) == null || i.disconnect(), a(this, j, void 0), r(this, P) && (r(this, P).style.visibility = "hidden")) : r(this, I).call(this), s && !r(this, j) && (a(this, j, new ge(r(this, I))), r(this, j).observe(t)));
279
+ }, {
280
+ threshold: _e,
281
+ root: l
282
+ })), r(this, k) && !s.skipInitial && this.callback(this.boundingClientRect), r(this, N).observe(t);
283
+ }
357
284
  };
358
- var V = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
359
- function Bt(t, e) {
360
- let n = V.get(t);
361
- return n || (n = { disconnect: new St(
362
- t,
363
- (o) => {
364
- const s = V.get(t);
365
- s && s.callbacks.forEach((r) => r(o));
366
- },
367
- { skipInitial: !0 }
368
- ).disconnect, callbacks: /* @__PURE__ */ new Set() }), n.callbacks.add(e), V.set(t, n), () => {
369
- n.callbacks.delete(e), n.callbacks.size === 0 && (V.delete(t), n.disconnect());
370
- };
371
- }
372
- function Ht(t, e) {
373
- const n = /* @__PURE__ */ new Set();
374
- for (const i of t) {
375
- const o = Bt(i, e);
376
- n.add(o);
377
- }
378
- return () => n.forEach((i) => i());
379
- }
380
- function $t(t, e) {
381
- var n;
382
- const i = t.ownerDocument;
383
- if (!Y.has(i)) {
384
- const r = new AbortController(), l = /* @__PURE__ */ new Set();
385
- document.addEventListener(
386
- "scroll",
387
- (c) => l.forEach((a) => a(c)),
388
- {
389
- capture: !0,
390
- passive: !0,
391
- signal: r.signal
392
- }
393
- ), Y.set(i, { disconnect: () => r.abort(), listeners: l });
394
- }
395
- const { listeners: o, disconnect: s } = (n = Y.get(i)) != null ? n : {};
396
- return !o || !s ? () => {
397
- } : (o.add(e), () => {
398
- o.delete(e), o.size === 0 && (s(), Y.delete(i));
399
- });
400
- }
401
- var P, F, z, et, Ee = class {
402
- constructor(t, e, n) {
403
- this.callback = e, _(this, P), _(this, F, !1), _(this, z), _(this, et, _t((r) => {
404
- if (!u(this, F) && r.target && "contains" in r.target && typeof r.target.contains == "function") {
405
- for (const l of u(this, z))
406
- if (r.target.contains(l)) {
407
- this.callback(u(this, P).boundingClientRect);
408
- break;
409
- }
410
- }
411
- }, Rt));
412
- const i = It(t), o = Ht(i, e), s = $t(t, u(this, et));
413
- R(this, z, i), R(this, P, new St(t, e, n)), this.disconnect = () => {
414
- u(this, F) || (R(this, F, !0), o(), s(), u(this, P).disconnect());
415
- };
416
- }
285
+ k = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakSet(), ye = function() {
286
+ r(this, F) || (o(this, L, be).call(this), !pe(this.boundingClientRect, r(this, A)) && (this.callback(this.boundingClientRect), a(this, A, this.boundingClientRect)));
287
+ }, be = function() {
288
+ if (r(this, P)) {
289
+ let { top: e, left: t, width: n, height: i } = b(this.element);
290
+ r(this, P).style.overflow = "hidden", r(this, P).style.visibility = "visible", r(this, P).style.top = `${Math.floor(e)}px`, r(this, P).style.left = `${Math.floor(t)}px`, r(this, P).style.width = `${Math.floor(n)}px`, r(this, P).style.height = `${Math.floor(i)}px`;
291
+ }
417
292
  };
418
- P = /* @__PURE__ */ new WeakMap();
419
- F = /* @__PURE__ */ new WeakMap();
420
- z = /* @__PURE__ */ new WeakMap();
421
- et = /* @__PURE__ */ new WeakMap();
422
- function Kt(t) {
423
- return "showPopover" in t && "hidePopover" in t && typeof t.showPopover == "function" && typeof t.hidePopover == "function";
424
- }
425
- function Se(t) {
426
- try {
427
- Kt(t) && t.isConnected && t.hasAttribute("popover") && // This selector can throw an error in browsers that don't support it
428
- !t.matches(":popover-open") && t.showPopover();
429
- } catch {
430
- }
431
- }
432
- function dt(t) {
433
- return !bt || !t ? !1 : t === rt(t).scrollingElement;
434
- }
435
- function kt(t) {
436
- var e, n;
437
- const i = E(t), o = dt(t) ? Nt(t) : j(t), s = i.visualViewport, r = dt(t) ? {
438
- height: (e = s?.height) != null ? e : i.innerHeight,
439
- width: (n = s?.width) != null ? n : i.innerWidth
440
- } : {
441
- height: t.clientHeight,
442
- width: t.clientWidth
443
- }, l = {
444
- current: {
445
- x: t.scrollLeft,
446
- y: t.scrollTop
447
- },
448
- max: {
449
- x: t.scrollWidth - r.width,
450
- y: t.scrollHeight - r.height
451
- }
452
- }, c = l.current.y <= 0, a = l.current.x <= 0, f = l.current.y >= l.max.y, h = l.current.x >= l.max.x;
453
- return {
454
- rect: o,
455
- position: l,
456
- isTop: c,
457
- isLeft: a,
458
- isBottom: f,
459
- isRight: h
460
- };
461
- }
462
- function ke(t, e) {
463
- const { isTop: n, isBottom: i, isLeft: o, isRight: s, position: r } = kt(t), { x: l, y: c } = e ?? { x: 0, y: 0 }, a = !n && r.current.y + c > 0, f = !i && r.current.y + c < r.max.y, h = !o && r.current.x + l > 0, v = !s && r.current.x + l < r.max.x;
464
- return {
465
- top: a,
466
- bottom: f,
467
- left: h,
468
- right: v,
469
- x: h || v,
470
- y: a || f
471
- };
472
- }
473
- var lt = class {
474
- constructor(t) {
475
- this.scheduler = t, this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set(), this.flush = () => {
476
- const { tasks: e, resolvers: n } = this;
477
- this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set();
478
- for (const i of e)
479
- i();
480
- for (const i of n)
481
- i();
482
- };
483
- }
484
- schedule(t) {
485
- return this.tasks.add(t), this.pending || (this.pending = !0, this.scheduler(this.flush)), new Promise((e) => this.resolvers.add(e));
486
- }
487
- }, Ae = new lt((t) => {
488
- typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : t();
489
- }), Ut = new lt((t) => setTimeout(t, 50)), U = /* @__PURE__ */ new Map(), qt = U.clear.bind(U);
490
- function W(t, e = !1) {
491
- if (!e) return pt(t);
492
- let n = U.get(t);
493
- return n || (n = pt(t), U.set(t, n), Ut.schedule(qt), n);
494
- }
495
- function pt(t) {
496
- return E(t).getComputedStyle(t);
497
- }
498
- function jt(t, e = W(t, !0)) {
499
- return e.position === "fixed" || e.position === "sticky";
500
- }
501
- function Gt(t, e = W(t, !0)) {
502
- const n = /(auto|scroll|overlay)/;
503
- return ["overflow", "overflowX", "overflowY"].some((o) => {
504
- const s = e[o];
505
- return typeof s == "string" ? n.test(s) : !1;
506
- });
507
- }
508
- var Jt = {
509
- excludeElement: !0,
510
- escapeShadowDOM: !0
293
+ var R = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap();
294
+ function Se(e, t) {
295
+ let n = R.get(e);
296
+ return n ||= {
297
+ disconnect: new xe(e, (t) => {
298
+ let n = R.get(e);
299
+ n && n.callbacks.forEach((e) => e(t));
300
+ }, { skipInitial: !0 }).disconnect,
301
+ callbacks: /* @__PURE__ */ new Set()
302
+ }, n.callbacks.add(t), R.set(e, n), () => {
303
+ n.callbacks.delete(t), n.callbacks.size === 0 && (R.delete(e), n.disconnect());
304
+ };
305
+ }
306
+ function Ce(e, t) {
307
+ let n = /* @__PURE__ */ new Set();
308
+ for (let r of e) {
309
+ let e = Se(r, t);
310
+ n.add(e);
311
+ }
312
+ return () => n.forEach((e) => e());
313
+ }
314
+ function we(e, t) {
315
+ let n = e.ownerDocument;
316
+ if (!z.has(n)) {
317
+ let e = new AbortController(), t = /* @__PURE__ */ new Set();
318
+ document.addEventListener("scroll", (e) => t.forEach((t) => t(e)), {
319
+ capture: !0,
320
+ passive: !0,
321
+ signal: e.signal
322
+ }), z.set(n, {
323
+ disconnect: () => e.abort(),
324
+ listeners: t
325
+ });
326
+ }
327
+ let { listeners: r, disconnect: i } = z.get(n) ?? {};
328
+ return !r || !i ? () => {} : (r.add(t), () => {
329
+ r.delete(t), r.size === 0 && (i(), z.delete(n));
330
+ });
331
+ }
332
+ var B, V, H, U, Te = class {
333
+ constructor(e, t, n) {
334
+ this.callback = t, i(this, B), i(this, V, !1), i(this, H), i(this, U, fe((e) => {
335
+ if (!r(this, V) && e.target && "contains" in e.target && typeof e.target.contains == "function") {
336
+ for (let t of r(this, H)) if (e.target.contains(t)) {
337
+ this.callback(r(this, B).boundingClientRect);
338
+ break;
339
+ }
340
+ }
341
+ }, ve));
342
+ let o = ue(e), s = Ce(o, t), c = we(e, r(this, U));
343
+ a(this, H, o), a(this, B, new xe(e, t, n)), this.disconnect = () => {
344
+ r(this, V) || (a(this, V, !0), s(), c(), r(this, B).disconnect());
345
+ };
346
+ }
511
347
  };
512
- function Qt(t, e = Jt) {
513
- const { limit: n, excludeElement: i, escapeShadowDOM: o } = e, s = /* @__PURE__ */ new Set();
514
- function r(l) {
515
- if (n != null && s.size >= n || !l)
516
- return s;
517
- if (mt(l) && l.scrollingElement != null && !s.has(l.scrollingElement))
518
- return s.add(l.scrollingElement), s;
519
- if (o && Tt(l))
520
- return r(l.host);
521
- if (!C(l))
522
- return wt(l) ? r(l.parentElement) : s;
523
- if (s.has(l))
524
- return s;
525
- const c = W(l, !0);
526
- if (i && l === t || Gt(l, c) && s.add(l), jt(l, c)) {
527
- const { scrollingElement: a } = l.ownerDocument;
528
- return a && s.add(a), s;
529
- }
530
- return r(l.parentNode);
531
- }
532
- return t ? r(t) : s;
533
- }
534
- function At(t, e = window.frameElement) {
535
- const n = {
536
- x: 0,
537
- y: 0,
538
- scaleX: 1,
539
- scaleY: 1
540
- };
541
- if (!t) return n;
542
- let i = H(t);
543
- for (; i; ) {
544
- if (i === e)
545
- return n;
546
- const o = j(i), { x: s, y: r } = Zt(i, o);
547
- n.x = n.x + o.left, n.y = n.y + o.top, n.scaleX = n.scaleX * s, n.scaleY = n.scaleY * r, i = H(i);
548
- }
549
- return n;
550
- }
551
- function Zt(t, e = j(t)) {
552
- const n = Math.round(e.width), i = Math.round(e.height);
553
- if (C(t))
554
- return {
555
- x: n / t.offsetWidth,
556
- y: i / t.offsetHeight
557
- };
558
- const o = W(t, !0);
559
- return {
560
- x: (parseFloat(o.width) || n) / n,
561
- y: (parseFloat(o.height) || i) / i
562
- };
563
- }
564
- function te(t) {
565
- if (!t || t === "none")
566
- return null;
567
- const e = t.split(" "), n = parseFloat(e[0]), i = parseFloat(e[1]);
568
- return isNaN(n) && isNaN(i) ? null : {
569
- x: isNaN(n) ? i : n,
570
- y: isNaN(i) ? n : i
571
- };
572
- }
573
- function nt(t) {
574
- if (!t || t === "none")
575
- return null;
576
- const [e, n, i = "0"] = t.split(" "), o = { x: parseFloat(e), y: parseFloat(n), z: parseInt(i, 10) };
577
- return isNaN(o.x) && isNaN(o.y) ? null : {
578
- x: isNaN(o.x) ? 0 : o.x,
579
- y: isNaN(o.y) ? 0 : o.y,
580
- z: isNaN(o.z) ? 0 : o.z
581
- };
582
- }
583
- function ct(t) {
584
- var e, n, i, o, s, r, l, c, a;
585
- const { scale: f, transform: h, translate: v } = t, m = te(f), w = nt(v), d = ee(h);
586
- if (!d && !m && !w)
587
- return null;
588
- const x = {
589
- x: (e = m?.x) != null ? e : 1,
590
- y: (n = m?.y) != null ? n : 1
591
- }, b = {
592
- x: (i = w?.x) != null ? i : 0,
593
- y: (o = w?.y) != null ? o : 0
594
- }, p = {
595
- x: (s = d?.x) != null ? s : 0,
596
- y: (r = d?.y) != null ? r : 0,
597
- scaleX: (l = d?.scaleX) != null ? l : 1,
598
- scaleY: (c = d?.scaleY) != null ? c : 1
599
- };
600
- return {
601
- x: b.x + p.x,
602
- y: b.y + p.y,
603
- z: (a = w?.z) != null ? a : 0,
604
- scaleX: x.x * p.scaleX,
605
- scaleY: x.y * p.scaleY
606
- };
607
- }
608
- function ee(t) {
609
- if (t.startsWith("matrix3d(")) {
610
- const e = t.slice(9, -1).split(/, /);
611
- return {
612
- x: +e[12],
613
- y: +e[13],
614
- scaleX: +e[0],
615
- scaleY: +e[5]
616
- };
617
- } else if (t.startsWith("matrix(")) {
618
- const e = t.slice(7, -1).split(/, /);
619
- return {
620
- x: +e[4],
621
- y: +e[5],
622
- scaleX: +e[0],
623
- scaleY: +e[3]
624
- };
625
- }
626
- return null;
627
- }
628
- var ne = /* @__PURE__ */ ((t) => (t[t.Idle = 0] = "Idle", t[t.Forward = 1] = "Forward", t[t.Reverse = -1] = "Reverse", t))(ne || {}), ie = {
629
- x: 0.2,
630
- y: 0.2
631
- }, se = {
632
- x: 10,
633
- y: 10
348
+ B = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap();
349
+ function Ee(e) {
350
+ return "showPopover" in e && "hidePopover" in e && typeof e.showPopover == "function" && typeof e.hidePopover == "function";
351
+ }
352
+ function De(e) {
353
+ try {
354
+ Ee(e) && e.isConnected && e.hasAttribute("popover") && !e.matches(":popover-open") && e.showPopover();
355
+ } catch {}
356
+ }
357
+ function W(e) {
358
+ return !S || !e ? !1 : e === g(e).scrollingElement;
359
+ }
360
+ function Oe(e) {
361
+ let t = f(e), n = W(e) ? _(e) : l(e), r = t.visualViewport, i = W(e) ? {
362
+ height: r?.height ?? t.innerHeight,
363
+ width: r?.width ?? t.innerWidth
364
+ } : {
365
+ height: e.clientHeight,
366
+ width: e.clientWidth
367
+ }, a = {
368
+ current: {
369
+ x: e.scrollLeft,
370
+ y: e.scrollTop
371
+ },
372
+ max: {
373
+ x: e.scrollWidth - i.width,
374
+ y: e.scrollHeight - i.height
375
+ }
376
+ };
377
+ return {
378
+ rect: n,
379
+ position: a,
380
+ isTop: a.current.y <= 0,
381
+ isLeft: a.current.x <= 0,
382
+ isBottom: a.current.y >= a.max.y,
383
+ isRight: a.current.x >= a.max.x
384
+ };
385
+ }
386
+ function ke(e, t) {
387
+ let { isTop: n, isBottom: r, isLeft: i, isRight: a, position: o } = Oe(e), { x: s, y: c } = t ?? {
388
+ x: 0,
389
+ y: 0
390
+ }, l = !n && o.current.y + c > 0, u = !r && o.current.y + c < o.max.y, d = !i && o.current.x + s > 0, f = !a && o.current.x + s < o.max.x;
391
+ return {
392
+ top: l,
393
+ bottom: u,
394
+ left: d,
395
+ right: f,
396
+ x: d || f,
397
+ y: l || u
398
+ };
399
+ }
400
+ var G = class {
401
+ constructor(e) {
402
+ this.scheduler = e, this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set(), this.flush = () => {
403
+ let { tasks: e, resolvers: t } = this;
404
+ this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set();
405
+ for (let t of e) t();
406
+ for (let e of t) e();
407
+ };
408
+ }
409
+ schedule(e) {
410
+ return this.tasks.add(e), this.pending || (this.pending = !0, this.scheduler(this.flush)), new Promise((e) => this.resolvers.add(e));
411
+ }
412
+ }, Ae = new G((e) => {
413
+ typeof requestAnimationFrame == "function" ? requestAnimationFrame(e) : e();
414
+ }), je = new G((e) => setTimeout(e, 50)), K = /* @__PURE__ */ new Map(), Me = K.clear.bind(K);
415
+ function q(e, t = !1) {
416
+ if (!t) return Ne(e);
417
+ let n = K.get(e);
418
+ return n || (n = Ne(e), K.set(e, n), je.schedule(Me), n);
419
+ }
420
+ function Ne(e) {
421
+ return f(e).getComputedStyle(e);
422
+ }
423
+ function Pe(e, t = q(e, !0)) {
424
+ return t.position === "fixed" || t.position === "sticky";
425
+ }
426
+ function Fe(e, t = q(e, !0)) {
427
+ let n = /(auto|scroll|overlay)/;
428
+ return [
429
+ "overflow",
430
+ "overflowX",
431
+ "overflowY"
432
+ ].some((e) => {
433
+ let r = t[e];
434
+ return typeof r == "string" && n.test(r);
435
+ });
436
+ }
437
+ var Ie = {
438
+ excludeElement: !0,
439
+ escapeShadowDOM: !0
634
440
  };
635
- function We(t, e, n, i = 25, o = ie, s = se) {
636
- const { x: r, y: l } = e, { rect: c, isTop: a, isBottom: f, isLeft: h, isRight: v } = kt(t), m = At(t), w = W(t, !0), d = ct(w), x = d !== null ? d?.scaleX < 0 : !1, b = d !== null ? d?.scaleY < 0 : !1, p = new it(
637
- c.left * m.scaleX + m.x,
638
- c.top * m.scaleY + m.y,
639
- c.width * m.scaleX,
640
- c.height * m.scaleY
641
- ), y = {
642
- x: 0,
643
- y: 0
644
- /* Idle */
645
- }, M = {
646
- x: 0,
647
- y: 0
648
- }, g = {
649
- height: p.height * o.y,
650
- width: p.width * o.x
651
- };
652
- return g.height > 0 && (!a || b && !f) && l <= p.top + g.height && n?.y !== 1 && r >= p.left - s.x && r <= p.right + s.x ? (y.y = b ? 1 : -1, M.y = i * Math.abs(
653
- (p.top + g.height - l) / g.height
654
- )) : g.height > 0 && (!f || b && !a) && l >= p.bottom - g.height && n?.y !== -1 && r >= p.left - s.x && r <= p.right + s.x && (y.y = b ? -1 : 1, M.y = i * Math.abs(
655
- (p.bottom - g.height - l) / g.height
656
- )), g.width > 0 && (!v || x && !h) && r >= p.right - g.width && n?.x !== -1 && l >= p.top - s.y && l <= p.bottom + s.y ? (y.x = x ? -1 : 1, M.x = i * Math.abs(
657
- (p.right - g.width - r) / g.width
658
- )) : g.width > 0 && (!h || x && !v) && r <= p.left + g.width && n?.x !== 1 && l >= p.top - s.y && l <= p.bottom + s.y && (y.x = x ? 1 : -1, M.x = i * Math.abs(
659
- (p.left + g.width - r) / g.width
660
- )), {
661
- direction: y,
662
- speed: M
663
- };
664
- }
665
- function Ce(t, { block: e = "nearest", inline: n = "nearest" } = {}) {
666
- if (!C(t))
667
- return;
668
- const i = Qt(t), o = [];
669
- for (const s of i) {
670
- if (!C(s))
671
- continue;
672
- const { top: r, left: l } = oe(t, s);
673
- let c = r, a = l;
674
- for (const f of o)
675
- c -= f.scrollTop, a -= f.scrollLeft;
676
- if (e !== "none") {
677
- const f = c < s.scrollTop, h = c + t.offsetHeight > s.scrollTop + s.clientHeight;
678
- f !== h && (e === "center" ? s.scrollTop = c - s.clientHeight / 2 + t.offsetHeight / 2 : f ? s.scrollTop = c : s.scrollTop = c + t.offsetHeight - s.clientHeight);
679
- }
680
- if (n !== "none") {
681
- const f = a < s.scrollLeft, h = a + t.offsetWidth > s.scrollLeft + s.clientWidth;
682
- f !== h && (n === "center" ? s.scrollLeft = a - s.clientWidth / 2 + t.offsetWidth / 2 : f ? s.scrollLeft = a : s.scrollLeft = a + t.offsetWidth - s.clientWidth);
683
- }
684
- o.push(s);
685
- }
686
- }
687
- function vt(t) {
688
- let e = 0, n = 0, i = t;
689
- for (; i; ) {
690
- e += i.offsetTop, n += i.offsetLeft;
691
- const o = i.offsetParent;
692
- if (!C(o))
693
- break;
694
- e += o.clientTop, n += o.clientLeft, i = o;
695
- }
696
- return { top: e, left: n };
697
- }
698
- function oe(t, e) {
699
- const n = vt(t), i = vt(e);
700
- return {
701
- top: n.top - i.top - e.clientTop,
702
- left: n.left - i.left - e.clientLeft
703
- };
704
- }
705
- function re(t, e, n) {
706
- const { scaleX: i, scaleY: o, x: s, y: r } = e, l = t.left + s + (1 - i) * parseFloat(n), c = t.top + r + (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), a = i ? t.width * i : t.width, f = o ? t.height * o : t.height;
707
- return {
708
- width: a,
709
- height: f,
710
- top: c,
711
- right: l + a,
712
- bottom: c + f,
713
- left: l
714
- };
715
- }
716
- function le(t, e, n) {
717
- const { scaleX: i, scaleY: o, x: s, y: r } = e, l = t.left - s - (1 - i) * parseFloat(n), c = t.top - r - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), a = i ? t.width / i : t.width, f = o ? t.height / o : t.height;
718
- return {
719
- width: a,
720
- height: f,
721
- top: c,
722
- right: l + a,
723
- bottom: c + f,
724
- left: l
725
- };
726
- }
727
- function Ne({ element: t, keyframes: e, options: n }) {
728
- return t.animate(e, n).finished;
729
- }
730
- function Le(t, e = W(t).translate, n = !0) {
731
- if (n) {
732
- const i = Ct(
733
- t,
734
- (o) => "translate" in o
735
- );
736
- if (i) {
737
- const { translate: o = "" } = i[0];
738
- if (typeof o == "string") {
739
- const s = nt(o);
740
- if (s)
741
- return s;
742
- }
743
- }
744
- }
745
- if (e) {
746
- const i = nt(e);
747
- if (i)
748
- return i;
749
- }
750
- return { x: 0, y: 0, z: 0 };
751
- }
752
- var ce = new lt((t) => setTimeout(t, 0)), I = /* @__PURE__ */ new Map(), ae = I.clear.bind(I);
753
- function fe(t) {
754
- const e = t.ownerDocument;
755
- let n = I.get(e);
756
- if (n) return n;
757
- n = e.getAnimations(), I.set(e, n), ce.schedule(ae);
758
- const i = n.filter(
759
- (o) => q(o.effect) && o.effect.target === t
760
- );
761
- return I.set(t, i), n;
762
- }
763
- function ue(t, e) {
764
- const n = fe(t).filter((i) => {
765
- var o, s;
766
- if (q(i.effect)) {
767
- const { target: r } = i.effect;
768
- if ((s = r && ((o = e.isValidTarget) == null ? void 0 : o.call(e, r))) != null ? s : !0)
769
- return i.effect.getKeyframes().some((c) => {
770
- for (const a of e.properties)
771
- if (c[a]) return !0;
772
- });
773
- }
774
- }).map((i) => {
775
- const { effect: o, currentTime: s } = i, r = o?.getComputedTiming().duration;
776
- if (!(i.pending || i.playState === "finished") && typeof r == "number" && typeof s == "number" && s < r)
777
- return i.currentTime = r, () => {
778
- i.currentTime = s;
779
- };
780
- });
781
- if (n.length > 0)
782
- return () => n.forEach((i) => i?.());
783
- }
784
- var Pe = class extends it {
785
- constructor(t, e = {}) {
786
- var n, i, o, s;
787
- const {
788
- frameTransform: r = At(t),
789
- ignoreTransforms: l,
790
- getBoundingClientRect: c = j
791
- } = e, a = ue(t, {
792
- properties: ["transform", "translate", "scale", "width", "height"],
793
- isValidTarget: (g) => (g !== t || xt()) && g.contains(t)
794
- }), f = c(t);
795
- let { top: h, left: v, width: m, height: w } = f, d;
796
- const x = W(t), b = ct(x), p = {
797
- x: (n = b?.scaleX) != null ? n : 1,
798
- y: (i = b?.scaleY) != null ? i : 1
799
- }, y = he(t, x);
800
- a?.(), b && (d = le(
801
- f,
802
- b,
803
- x.transformOrigin
804
- ), (l || y) && (h = d.top, v = d.left, m = d.width, w = d.height));
805
- const M = {
806
- width: (o = d?.width) != null ? o : m,
807
- height: (s = d?.height) != null ? s : w
808
- };
809
- if (y && !l && d) {
810
- const g = re(
811
- d,
812
- y,
813
- x.transformOrigin
814
- );
815
- h = g.top, v = g.left, m = g.width, w = g.height, p.x = y.scaleX, p.y = y.scaleY;
816
- }
817
- r && (l || (v *= r.scaleX, m *= r.scaleX, h *= r.scaleY, w *= r.scaleY), v += r.x, h += r.y), super(v, h, m, w), this.scale = p, this.intrinsicWidth = M.width, this.intrinsicHeight = M.height;
818
- }
441
+ function Le(e, t = Ie) {
442
+ let { limit: n, excludeElement: r, escapeShadowDOM: i } = t, a = /* @__PURE__ */ new Set();
443
+ function o(t) {
444
+ if (n != null && a.size >= n || !t) return a;
445
+ if (p(t) && t.scrollingElement != null && !a.has(t.scrollingElement)) return a.add(t.scrollingElement), a;
446
+ if (i && T(t)) return o(t.host);
447
+ if (!m(t)) return h(t) ? o(t.parentElement) : a;
448
+ if (a.has(t)) return a;
449
+ let s = q(t, !0);
450
+ if (r && t === e || Fe(t, s) && a.add(t), Pe(t, s)) {
451
+ let { scrollingElement: e } = t.ownerDocument;
452
+ return e && a.add(e), a;
453
+ }
454
+ return o(t.parentNode);
455
+ }
456
+ return e ? o(e) : a;
457
+ }
458
+ function J(e, t = window.frameElement) {
459
+ let n = {
460
+ x: 0,
461
+ y: 0,
462
+ scaleX: 1,
463
+ scaleY: 1
464
+ };
465
+ if (!e) return n;
466
+ let r = D(e);
467
+ for (; r;) {
468
+ if (r === t) return n;
469
+ let e = l(r), { x: i, y: a } = Re(r, e);
470
+ n.x += e.left, n.y += e.top, n.scaleX *= i, n.scaleY *= a, r = D(r);
471
+ }
472
+ return n;
473
+ }
474
+ function Re(e, t = l(e)) {
475
+ let n = Math.round(t.width), r = Math.round(t.height);
476
+ if (m(e)) return {
477
+ x: n / e.offsetWidth,
478
+ y: r / e.offsetHeight
479
+ };
480
+ let i = q(e, !0);
481
+ return {
482
+ x: (parseFloat(i.width) || n) / n,
483
+ y: (parseFloat(i.height) || r) / r
484
+ };
485
+ }
486
+ function ze(e) {
487
+ if (!e || e === "none") return null;
488
+ let t = e.split(" "), n = parseFloat(t[0]), r = parseFloat(t[1]);
489
+ return isNaN(n) && isNaN(r) ? null : {
490
+ x: isNaN(n) ? r : n,
491
+ y: isNaN(r) ? n : r
492
+ };
493
+ }
494
+ function Y(e) {
495
+ if (!e || e === "none") return null;
496
+ let [t, n, r = "0"] = e.split(" "), i = {
497
+ x: parseFloat(t),
498
+ y: parseFloat(n),
499
+ z: parseInt(r, 10)
500
+ };
501
+ return isNaN(i.x) && isNaN(i.y) ? null : {
502
+ x: isNaN(i.x) ? 0 : i.x,
503
+ y: isNaN(i.y) ? 0 : i.y,
504
+ z: isNaN(i.z) ? 0 : i.z
505
+ };
506
+ }
507
+ function X(e) {
508
+ let { scale: t, transform: n, translate: r } = e, i = ze(t), a = Y(r), o = Be(n);
509
+ if (!o && !i && !a) return null;
510
+ let s = {
511
+ x: i?.x ?? 1,
512
+ y: i?.y ?? 1
513
+ }, c = {
514
+ x: a?.x ?? 0,
515
+ y: a?.y ?? 0
516
+ }, l = {
517
+ x: o?.x ?? 0,
518
+ y: o?.y ?? 0,
519
+ scaleX: o?.scaleX ?? 1,
520
+ scaleY: o?.scaleY ?? 1
521
+ };
522
+ return {
523
+ x: c.x + l.x,
524
+ y: c.y + l.y,
525
+ z: a?.z ?? 0,
526
+ scaleX: s.x * l.scaleX,
527
+ scaleY: s.y * l.scaleY
528
+ };
529
+ }
530
+ function Be(e) {
531
+ if (e.startsWith("matrix3d(")) {
532
+ let t = e.slice(9, -1).split(/, /);
533
+ return {
534
+ x: +t[12],
535
+ y: +t[13],
536
+ scaleX: +t[0],
537
+ scaleY: +t[5]
538
+ };
539
+ }
540
+ if (e.startsWith("matrix(")) {
541
+ let t = e.slice(7, -1).split(/, /);
542
+ return {
543
+ x: +t[4],
544
+ y: +t[5],
545
+ scaleX: +t[0],
546
+ scaleY: +t[3]
547
+ };
548
+ }
549
+ return null;
550
+ }
551
+ var Ve = /* @__PURE__ */ ((e) => (e[e.Idle = 0] = "Idle", e[e.Forward = 1] = "Forward", e[e.Reverse = -1] = "Reverse", e))(Ve || {}), He = {
552
+ x: .2,
553
+ y: .2
554
+ }, Ue = {
555
+ x: 10,
556
+ y: 10
819
557
  };
820
- function he(t, e) {
821
- const n = t.getAnimations();
822
- if (!n.length) return null;
823
- let i, o, s, r = !1;
824
- for (const l of n) {
825
- if (l.playState !== "running") continue;
826
- const c = q(l.effect) ? l.effect.getKeyframes() : [], a = c[c.length - 1];
827
- if (!a) continue;
828
- const { transform: f, translate: h, scale: v } = a;
829
- typeof f == "string" && f && (i = f, r = !0), typeof h == "string" && h && (o = h, r = !0), typeof v == "string" && v && (s = v, r = !0);
830
- }
831
- return r ? ct({
832
- transform: i ?? e.transform,
833
- translate: o ?? e.translate,
834
- scale: s ?? e.scale
835
- }) : null;
836
- }
837
- function Z(t) {
838
- return "style" in t && typeof t.style == "object" && t.style !== null && "setProperty" in t.style && "removeProperty" in t.style && typeof t.style.setProperty == "function" && typeof t.style.removeProperty == "function";
839
- }
840
- var Fe = class {
841
- constructor(t) {
842
- this.element = t, this.initial = /* @__PURE__ */ new Map();
843
- }
844
- set(t, e = "") {
845
- const { element: n } = this;
846
- if (Z(n))
847
- for (const [i, o] of Object.entries(t)) {
848
- const s = `${e}${i}`;
849
- this.initial.has(s) || this.initial.set(s, n.style.getPropertyValue(s)), n.style.setProperty(
850
- s,
851
- typeof o == "string" ? o : `${o}px`
852
- );
853
- }
854
- }
855
- remove(t, e = "") {
856
- const { element: n } = this;
857
- if (Z(n))
858
- for (const i of t) {
859
- const o = `${e}${i}`;
860
- n.style.removeProperty(o);
861
- }
862
- }
863
- reset() {
864
- const { element: t } = this;
865
- if (Z(t)) {
866
- for (const [e, n] of this.initial)
867
- t.style.setProperty(e, n);
868
- t.getAttribute("style") === "" && t.removeAttribute("style");
869
- }
870
- }
558
+ function We(t, n, r, i = 25, a = He, o = Ue) {
559
+ let { x: s, y: c } = n, { rect: l, isTop: u, isBottom: d, isLeft: f, isRight: p } = Oe(t), m = J(t), h = X(q(t, !0)), g = h !== null && h?.scaleX < 0, _ = h !== null && h?.scaleY < 0, v = new e(l.left * m.scaleX + m.x, l.top * m.scaleY + m.y, l.width * m.scaleX, l.height * m.scaleY), y = {
560
+ x: 0,
561
+ y: 0
562
+ }, b = {
563
+ x: 0,
564
+ y: 0
565
+ }, x = {
566
+ height: v.height * a.y,
567
+ width: v.width * a.x
568
+ };
569
+ return x.height > 0 && (!u || _ && !d) && c <= v.top + x.height && r?.y !== 1 && s >= v.left - o.x && s <= v.right + o.x ? (y.y = _ ? 1 : -1, b.y = i * Math.abs((v.top + x.height - c) / x.height)) : x.height > 0 && (!d || _ && !u) && c >= v.bottom - x.height && r?.y !== -1 && s >= v.left - o.x && s <= v.right + o.x && (y.y = _ ? -1 : 1, b.y = i * Math.abs((v.bottom - x.height - c) / x.height)), x.width > 0 && (!p || g && !f) && s >= v.right - x.width && r?.x !== -1 && c >= v.top - o.y && c <= v.bottom + o.y ? (y.x = g ? -1 : 1, b.x = i * Math.abs((v.right - x.width - s) / x.width)) : x.width > 0 && (!f || g && !p) && s <= v.left + x.width && r?.x !== 1 && c >= v.top - o.y && c <= v.bottom + o.y && (y.x = g ? 1 : -1, b.x = i * Math.abs((v.left + x.width - s) / x.width)), {
570
+ direction: y,
571
+ speed: b
572
+ };
573
+ }
574
+ function Ge(e, { block: t = "nearest", inline: n = "nearest" } = {}) {
575
+ if (!m(e)) return;
576
+ let r = Le(e), i = [];
577
+ for (let a of r) {
578
+ if (!m(a)) continue;
579
+ let { top: r, left: o } = qe(e, a), s = r, c = o;
580
+ for (let e of i) s -= e.scrollTop, c -= e.scrollLeft;
581
+ if (t !== "none") {
582
+ let n = s < a.scrollTop;
583
+ n !== s + e.offsetHeight > a.scrollTop + a.clientHeight && (a.scrollTop = t === "center" ? s - a.clientHeight / 2 + e.offsetHeight / 2 : n ? s : s + e.offsetHeight - a.clientHeight);
584
+ }
585
+ if (n !== "none") {
586
+ let t = c < a.scrollLeft;
587
+ t !== c + e.offsetWidth > a.scrollLeft + a.clientWidth && (a.scrollLeft = n === "center" ? c - a.clientWidth / 2 + e.offsetWidth / 2 : t ? c : c + e.offsetWidth - a.clientWidth);
588
+ }
589
+ i.push(a);
590
+ }
591
+ }
592
+ function Ke(e) {
593
+ let t = 0, n = 0, r = e;
594
+ for (; r;) {
595
+ t += r.offsetTop, n += r.offsetLeft;
596
+ let e = r.offsetParent;
597
+ if (!m(e)) break;
598
+ t += e.clientTop, n += e.clientLeft, r = e;
599
+ }
600
+ return {
601
+ top: t,
602
+ left: n
603
+ };
604
+ }
605
+ function qe(e, t) {
606
+ let n = Ke(e), r = Ke(t);
607
+ return {
608
+ top: n.top - r.top - t.clientTop,
609
+ left: n.left - r.left - t.clientLeft
610
+ };
611
+ }
612
+ function Je(e, t, n) {
613
+ let { scaleX: r, scaleY: i, x: a, y: o } = t, s = e.left + a + (1 - r) * parseFloat(n), c = e.top + o + (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), l = r ? e.width * r : e.width, u = i ? e.height * i : e.height;
614
+ return {
615
+ width: l,
616
+ height: u,
617
+ top: c,
618
+ right: s + l,
619
+ bottom: c + u,
620
+ left: s
621
+ };
622
+ }
623
+ function Ye(e, t, n) {
624
+ let { scaleX: r, scaleY: i, x: a, y: o } = t, s = e.left - a - (1 - r) * parseFloat(n), c = e.top - o - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), l = r ? e.width / r : e.width, u = i ? e.height / i : e.height;
625
+ return {
626
+ width: l,
627
+ height: u,
628
+ top: c,
629
+ right: s + l,
630
+ bottom: c + u,
631
+ left: s
632
+ };
633
+ }
634
+ function Xe({ element: e, keyframes: t, options: n }) {
635
+ return e.animate(t, n).finished;
636
+ }
637
+ function Ze(e, t = q(e).translate, n = !0) {
638
+ if (n) {
639
+ let t = c(e, (e) => "translate" in e);
640
+ if (t) {
641
+ let { translate: e = "" } = t[0];
642
+ if (typeof e == "string") {
643
+ let t = Y(e);
644
+ if (t) return t;
645
+ }
646
+ }
647
+ }
648
+ if (t) {
649
+ let e = Y(t);
650
+ if (e) return e;
651
+ }
652
+ return {
653
+ x: 0,
654
+ y: 0,
655
+ z: 0
656
+ };
657
+ }
658
+ var Qe = new G((e) => setTimeout(e, 0)), Z = /* @__PURE__ */ new Map(), $e = Z.clear.bind(Z);
659
+ function et(e) {
660
+ let t = e.ownerDocument, n = Z.get(t);
661
+ if (n) return n;
662
+ n = t.getAnimations(), Z.set(t, n), Qe.schedule($e);
663
+ let r = n.filter((t) => s(t.effect) && t.effect.target === e);
664
+ return Z.set(e, r), n;
665
+ }
666
+ function tt(e, t) {
667
+ let n = et(e).filter((e) => {
668
+ if (s(e.effect)) {
669
+ let { target: n } = e.effect;
670
+ if ((n && t.isValidTarget?.call(t, n)) ?? !0) return e.effect.getKeyframes().some((e) => {
671
+ for (let n of t.properties) if (e[n]) return !0;
672
+ });
673
+ }
674
+ }).map((e) => {
675
+ let { effect: t, currentTime: n } = e, r = t?.getComputedTiming().duration;
676
+ if (!(e.pending || e.playState === "finished") && typeof r == "number" && typeof n == "number" && n < r) return e.currentTime = r, () => {
677
+ e.currentTime = n;
678
+ };
679
+ });
680
+ if (n.length > 0) return () => n.forEach((e) => e?.());
681
+ }
682
+ var nt = class extends e {
683
+ constructor(e, t = {}) {
684
+ let { frameTransform: n = J(e), ignoreTransforms: r, getBoundingClientRect: i = l } = t, a = tt(e, {
685
+ properties: [
686
+ "transform",
687
+ "translate",
688
+ "scale",
689
+ "width",
690
+ "height"
691
+ ],
692
+ isValidTarget: (t) => (t !== e || w()) && t.contains(e)
693
+ }), o = i(e), { top: s, left: c, width: u, height: d } = o, f, p = q(e), m = X(p), h = {
694
+ x: m?.scaleX ?? 1,
695
+ y: m?.scaleY ?? 1
696
+ }, g = rt(e, p);
697
+ a?.(), m && (f = Ye(o, m, p.transformOrigin), (r || g) && (s = f.top, c = f.left, u = f.width, d = f.height));
698
+ let _ = {
699
+ width: f?.width ?? u,
700
+ height: f?.height ?? d
701
+ };
702
+ if (g && !r && f) {
703
+ let e = Je(f, g, p.transformOrigin);
704
+ s = e.top, c = e.left, u = e.width, d = e.height, h.x = g.scaleX, h.y = g.scaleY;
705
+ }
706
+ n && (r || (c *= n.scaleX, u *= n.scaleX, s *= n.scaleY, d *= n.scaleY), c += n.x, s += n.y), super(c, s, u, d), this.scale = h, this.intrinsicWidth = _.width, this.intrinsicHeight = _.height;
707
+ }
871
708
  };
872
- function de(t) {
873
- return t ? t instanceof E(t).Element || X(t) && t.nodeType === Node.ELEMENT_NODE : !1;
874
- }
875
- function Oe(t) {
876
- if (!t) return !1;
877
- const { KeyboardEvent: e } = E(t.target);
878
- return t instanceof e;
879
- }
880
- function Ie(t) {
881
- if (!t) return !1;
882
- const { PointerEvent: e } = E(t.target);
883
- return t instanceof e;
884
- }
885
- function Xe(t) {
886
- if (!de(t)) return !1;
887
- const { tagName: e } = t;
888
- return e === "INPUT" || e === "TEXTAREA" || pe(t);
889
- }
890
- function pe(t) {
891
- return t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false";
892
- }
893
- var tt = {};
894
- function Ve(t) {
895
- const e = tt[t] == null ? 0 : tt[t] + 1;
896
- return tt[t] = e, `${t}-${e}`;
897
- }
898
- export {
899
- Pe as DOMRectangle,
900
- Re as Listeners,
901
- Ee as PositionObserver,
902
- Te as ProxiedElements,
903
- zt as ResizeNotifier,
904
- lt as Scheduler,
905
- ne as ScrollDirection,
906
- Fe as Styles,
907
- Ne as animateTransform,
908
- ke as canScroll,
909
- bt as canUseDOM,
910
- xe as cloneElement,
911
- Le as computeTranslate,
912
- We as detectScrollIntent,
913
- Ve as generateUniqueId,
914
- j as getBoundingRectangle,
915
- W as getComputedStyles,
916
- rt as getDocument,
917
- at as getDocuments,
918
- Ft as getElementFromPoint,
919
- ye as getEventCoordinates,
920
- Ct as getFinalKeyframe,
921
- me as getFixedPositionOffset,
922
- H as getFrameElement,
923
- At as getFrameTransform,
924
- _e as getInteractiveElement,
925
- we as getRoot,
926
- Qt as getScrollableAncestors,
927
- Nt as getViewportBoundingRectangle,
928
- B as getVisibleBoundingRectangle,
929
- E as getWindow,
930
- le as inverseTransform,
931
- mt as isDocument,
932
- dt as isDocumentScrollingElement,
933
- de as isElement,
934
- C as isHTMLElement,
935
- Oe as isKeyboardEvent,
936
- q as isKeyframeEffect,
937
- Ie as isPointerEvent,
938
- xt as isSafari,
939
- Tt as isShadowRoot,
940
- Xe as isTextInput,
941
- ct as parseTransform,
942
- nt as parseTranslate,
943
- be as prefersReducedMotion,
944
- Ae as scheduler,
945
- Ce as scrollIntoViewIfNeeded,
946
- Se as showPopover,
947
- Kt as supportsPopover,
948
- Z as supportsStyle,
949
- Xt as timeout
709
+ function rt(e, t) {
710
+ let n = e.getAnimations();
711
+ if (!n.length) return null;
712
+ let r, i, a, o = !1;
713
+ for (let e of n) {
714
+ if (e.playState !== "running") continue;
715
+ let t = s(e.effect) ? e.effect.getKeyframes() : [], n = t[t.length - 1];
716
+ if (!n) continue;
717
+ let { transform: c, translate: l, scale: u } = n;
718
+ typeof c == "string" && c && (r = c, o = !0), typeof l == "string" && l && (i = l, o = !0), typeof u == "string" && u && (a = u, o = !0);
719
+ }
720
+ return o ? X({
721
+ transform: r ?? t.transform,
722
+ translate: i ?? t.translate,
723
+ scale: a ?? t.scale
724
+ }) : null;
725
+ }
726
+ function Q(e) {
727
+ return "style" in e && typeof e.style == "object" && e.style !== null && "setProperty" in e.style && "removeProperty" in e.style && typeof e.style.setProperty == "function" && typeof e.style.removeProperty == "function";
728
+ }
729
+ var it = class {
730
+ constructor(e) {
731
+ this.element = e, this.initial = /* @__PURE__ */ new Map();
732
+ }
733
+ set(e, t = "") {
734
+ let { element: n } = this;
735
+ if (Q(n)) for (let [r, i] of Object.entries(e)) {
736
+ let e = `${t}${r}`;
737
+ this.initial.has(e) || this.initial.set(e, n.style.getPropertyValue(e)), n.style.setProperty(e, typeof i == "string" ? i : `${i}px`);
738
+ }
739
+ }
740
+ remove(e, t = "") {
741
+ let { element: n } = this;
742
+ if (Q(n)) for (let r of e) {
743
+ let e = `${t}${r}`;
744
+ n.style.removeProperty(e);
745
+ }
746
+ }
747
+ reset() {
748
+ let { element: e } = this;
749
+ if (Q(e)) {
750
+ for (let [t, n] of this.initial) e.style.setProperty(t, n);
751
+ e.getAttribute("style") === "" && e.removeAttribute("style");
752
+ }
753
+ }
950
754
  };
755
+ function at(e) {
756
+ return e ? e instanceof f(e).Element || d(e) && e.nodeType === Node.ELEMENT_NODE : !1;
757
+ }
758
+ function ot(e) {
759
+ if (!e) return !1;
760
+ let { KeyboardEvent: t } = f(e.target);
761
+ return e instanceof t;
762
+ }
763
+ function st(e) {
764
+ if (!e) return !1;
765
+ let { PointerEvent: t } = f(e.target);
766
+ return e instanceof t;
767
+ }
768
+ function ct(e) {
769
+ if (!at(e)) return !1;
770
+ let { tagName: t } = e;
771
+ return t === "INPUT" || t === "TEXTAREA" || lt(e);
772
+ }
773
+ function lt(e) {
774
+ return e.hasAttribute("contenteditable") && e.getAttribute("contenteditable") !== "false";
775
+ }
776
+ var $ = {};
777
+ function ut(e) {
778
+ let t = $[e] == null ? 0 : $[e] + 1;
779
+ return $[e] = t, `${e}-${t}`;
780
+ }
781
+ //#endregion
782
+ export { nt as DOMRectangle, le as Listeners, Te as PositionObserver, se as ProxiedElements, ge as ResizeNotifier, G as Scheduler, Ve as ScrollDirection, it as Styles, Xe as animateTransform, ke as canScroll, S as canUseDOM, re as cloneElement, Ze as computeTranslate, We as detectScrollIntent, ut as generateUniqueId, l as getBoundingRectangle, q as getComputedStyles, g as getDocument, C as getDocuments, ae as getElementFromPoint, x as getEventCoordinates, c as getFinalKeyframe, ee as getFixedPositionOffset, D as getFrameElement, J as getFrameTransform, ce as getInteractiveElement, te as getRoot, Le as getScrollableAncestors, _ as getViewportBoundingRectangle, b as getVisibleBoundingRectangle, f as getWindow, Ye as inverseTransform, p as isDocument, W as isDocumentScrollingElement, at as isElement, m as isHTMLElement, ot as isKeyboardEvent, s as isKeyframeEffect, st as isPointerEvent, w as isSafari, T as isShadowRoot, ct as isTextInput, X as parseTransform, Y as parseTranslate, ne as prefersReducedMotion, Ae as scheduler, Ge as scrollIntoViewIfNeeded, De as showPopover, Ee as supportsPopover, Q as supportsStyle, de as timeout };