@prolibu-suite/cobalt-core 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (557) hide show
  1. package/custom-elements.json +15359 -5571
  2. package/dist/cjs/co-accordion.cjs.entry.js +19 -4
  3. package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
  4. package/dist/cjs/co-autocomplete.cjs.entry.js +51 -6
  5. package/dist/cjs/co-avatar.cjs.entry.js +40 -7
  6. package/dist/cjs/co-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/co-button-group.cjs.entry.js +1 -1
  8. package/dist/cjs/co-button.cjs.entry.js +10 -5
  9. package/dist/cjs/co-calendar_3.cjs.entry.js +692 -0
  10. package/dist/cjs/co-card.cjs.entry.js +21 -4
  11. package/dist/cjs/co-checkbox-group.cjs.entry.js +7 -5
  12. package/dist/cjs/co-checkbox.cjs.entry.js +4 -4
  13. package/dist/cjs/co-chip.cjs.entry.js +3 -3
  14. package/dist/cjs/co-color-picker.cjs.entry.js +109 -0
  15. package/dist/cjs/co-column-picker.cjs.entry.js +443 -0
  16. package/dist/cjs/co-combobox.cjs.entry.js +51 -15
  17. package/dist/cjs/co-command-search.cjs.entry.js +14 -7
  18. package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
  19. package/dist/cjs/co-data-table.cjs.entry.js +17 -5
  20. package/dist/cjs/co-date-picker.cjs.entry.js +177 -0
  21. package/dist/cjs/co-date-range-picker.cjs.entry.js +378 -0
  22. package/dist/cjs/co-date-range.cjs.entry.js +13 -259
  23. package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
  24. package/dist/cjs/co-fab.cjs.entry.js +3 -3
  25. package/dist/cjs/co-file-field.cjs.entry.js +498 -0
  26. package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
  27. package/dist/cjs/co-icon-button.cjs.entry.js +4 -4
  28. package/dist/cjs/co-icon.cjs.entry.js +7 -4
  29. package/dist/cjs/co-input.cjs.entry.js +13 -8
  30. package/dist/cjs/co-json-field.cjs.entry.js +109 -0
  31. package/dist/cjs/co-lightbox.cjs.entry.js +344 -0
  32. package/dist/cjs/co-list-item.cjs.entry.js +14 -4
  33. package/dist/cjs/co-loader.cjs.entry.js +1 -1
  34. package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
  35. package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
  36. package/dist/cjs/co-menu.cjs.entry.js +2 -2
  37. package/dist/cjs/co-modal.cjs.entry.js +13 -3
  38. package/dist/cjs/co-navbar.cjs.entry.js +4 -4
  39. package/dist/cjs/co-number-field.cjs.entry.js +47 -11
  40. package/dist/cjs/co-overlay.cjs.entry.js +2 -2
  41. package/dist/cjs/co-page-header.cjs.entry.js +2 -2
  42. package/dist/cjs/co-phone-field.cjs.entry.js +376 -0
  43. package/dist/cjs/co-popover.cjs.entry.js +5 -5
  44. package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
  45. package/dist/cjs/co-progress-circle.cjs.entry.js +38 -0
  46. package/dist/cjs/co-radio-group.cjs.entry.js +7 -5
  47. package/dist/cjs/co-radio.cjs.entry.js +4 -4
  48. package/dist/cjs/co-rating.cjs.entry.js +4 -4
  49. package/dist/cjs/co-ref-field.cjs.entry.js +191 -21
  50. package/dist/cjs/co-rich-text-editor.cjs.entry.js +235 -0
  51. package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +184 -0
  52. package/dist/cjs/co-rich-text-viewer.cjs.entry.js +82 -0
  53. package/dist/cjs/co-row.cjs.entry.js +3 -3
  54. package/dist/cjs/co-select.cjs.entry.js +119 -18
  55. package/dist/cjs/co-separator.cjs.entry.js +2 -2
  56. package/dist/cjs/co-sidebar-nav.cjs.entry.js +30 -5
  57. package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
  58. package/dist/cjs/co-slider.cjs.entry.js +3 -3
  59. package/dist/cjs/co-switch.cjs.entry.js +9 -6
  60. package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
  61. package/dist/cjs/co-tab.cjs.entry.js +3 -3
  62. package/dist/cjs/co-tags-field.cjs.entry.js +205 -0
  63. package/dist/cjs/co-textarea.cjs.entry.js +92 -0
  64. package/dist/cjs/co-toast.cjs.entry.js +2 -2
  65. package/dist/cjs/co-toggle-button-group.cjs.entry.js +7 -4
  66. package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
  67. package/dist/cjs/co-tooltip.cjs.entry.js +12 -6
  68. package/dist/cjs/co-transfer-list.cjs.entry.js +20 -6
  69. package/dist/cjs/cobalt.cjs.js +2 -2
  70. package/dist/cjs/dateI18n-BdiNAl0_.js +106 -0
  71. package/dist/cjs/dates-D8D-aS5d.js +432 -0
  72. package/dist/cjs/index-CaEJnpZe.js +27213 -0
  73. package/dist/cjs/{index-BEovErzl.js → index-DoFnrUVH.js} +79 -11
  74. package/dist/cjs/loader.cjs.js +2 -2
  75. package/dist/cjs/normalizeText-B-v-XPKf.js +96 -0
  76. package/dist/cjs/overlayScroll-ifzDNeyb.js +25 -0
  77. package/dist/cjs/overlayscrollbars-BlBHo2Xx.js +2842 -0
  78. package/dist/cjs/{positioning-DozpXyBd.js → positioning-DwHW399W.js} +40 -25
  79. package/dist/cjs/requiredMark-DA6y-4rp.js +16 -0
  80. package/dist/cjs/sanitizer-CjHZAkOm.js +1883 -0
  81. package/dist/cobalt/cobalt.css +1 -1
  82. package/dist/cobalt/cobalt.esm.js +1 -1
  83. package/dist/cobalt/{p-1021f612.entry.js → p-01fc77c4.entry.js} +1 -1
  84. package/dist/cobalt/p-0a6d8061.entry.js +1 -0
  85. package/dist/cobalt/p-0bf288cd.entry.js +1 -0
  86. package/dist/cobalt/p-136bdbd2.entry.js +1 -0
  87. package/dist/cobalt/{p-1b7d6808.entry.js → p-15708d32.entry.js} +1 -1
  88. package/dist/cobalt/{p-cc93ab05.entry.js → p-1578b019.entry.js} +1 -1
  89. package/dist/cobalt/{p-1b5c723a.entry.js → p-1e0282b8.entry.js} +1 -1
  90. package/dist/cobalt/p-23d48581.entry.js +1 -0
  91. package/dist/cobalt/p-2718ff27.entry.js +1 -0
  92. package/dist/cobalt/p-273afd93.entry.js +1 -0
  93. package/dist/cobalt/{p-c9b0e73f.entry.js → p-2b4d8535.entry.js} +1 -1
  94. package/dist/cobalt/p-3190d715.entry.js +1 -0
  95. package/dist/cobalt/p-3f9b3fcb.entry.js +1 -0
  96. package/dist/cobalt/p-41228dce.entry.js +1 -0
  97. package/dist/cobalt/{p-5a13e3a0.entry.js → p-44672953.entry.js} +1 -1
  98. package/dist/cobalt/{p-4cf6d1f4.entry.js → p-522fcdb7.entry.js} +1 -1
  99. package/dist/cobalt/p-53ce9023.entry.js +1 -0
  100. package/dist/cobalt/{p-4d8ff00a.entry.js → p-54f26e95.entry.js} +1 -1
  101. package/dist/cobalt/p-5d01bd4d.entry.js +1 -0
  102. package/dist/cobalt/p-5e7141aa.entry.js +1 -0
  103. package/dist/cobalt/p-5f905739.entry.js +1 -0
  104. package/dist/cobalt/{p-fb047df8.entry.js → p-6404bd21.entry.js} +1 -1
  105. package/dist/cobalt/p-654bbc2a.entry.js +1 -0
  106. package/dist/cobalt/p-6678ac0a.entry.js +1 -0
  107. package/dist/cobalt/{p-e808916c.entry.js → p-66a912dd.entry.js} +1 -1
  108. package/dist/cobalt/p-6759ee1c.entry.js +1 -0
  109. package/dist/cobalt/p-69a40bfd.entry.js +1 -0
  110. package/dist/cobalt/p-6a6a62cb.entry.js +1 -0
  111. package/dist/cobalt/p-6d43b6cd.entry.js +1 -0
  112. package/dist/cobalt/p-759c3dd0.entry.js +1 -0
  113. package/dist/cobalt/p-782f729f.entry.js +1 -0
  114. package/dist/cobalt/{p-ebd1555e.entry.js → p-7ef766c6.entry.js} +1 -1
  115. package/dist/cobalt/p-7f818368.entry.js +1 -0
  116. package/dist/cobalt/p-83b89bf8.entry.js +1 -0
  117. package/dist/cobalt/p-88dc561a.entry.js +1 -0
  118. package/dist/cobalt/{p-4905b51d.entry.js → p-8c27aff7.entry.js} +1 -1
  119. package/dist/cobalt/{p-a7fa4484.entry.js → p-95d14878.entry.js} +1 -1
  120. package/dist/cobalt/{p-1d7da33f.entry.js → p-97c20011.entry.js} +1 -1
  121. package/dist/cobalt/p-996179f7.entry.js +1 -0
  122. package/dist/cobalt/p-9c533830.entry.js +1 -0
  123. package/dist/cobalt/p-9d89bf47.entry.js +1 -0
  124. package/dist/cobalt/p-BKmfyPZK.js +2 -0
  125. package/dist/cobalt/p-BchB6Hdr.js +1 -0
  126. package/dist/cobalt/p-C1DCLOEl.js +1 -0
  127. package/dist/cobalt/p-C2mZ7x_Y.js +1 -0
  128. package/dist/cobalt/p-CQY6Ul7q.js +1 -0
  129. package/dist/cobalt/p-CyYF8IJE.js +1 -0
  130. package/dist/cobalt/p-DcK0GGZC.js +2 -0
  131. package/dist/cobalt/p-DqyWGweA.js +1 -0
  132. package/dist/cobalt/p-Qqq8fysz.js +1 -0
  133. package/dist/cobalt/p-aa17c70b.entry.js +1 -0
  134. package/dist/cobalt/{p-416bb5ae.entry.js → p-aa63812a.entry.js} +1 -1
  135. package/dist/cobalt/p-ad4c1b41.entry.js +1 -0
  136. package/dist/cobalt/p-ae4d3207.entry.js +1 -0
  137. package/dist/cobalt/p-af64da37.entry.js +1 -0
  138. package/dist/cobalt/p-b758c2e6.entry.js +1 -0
  139. package/dist/cobalt/p-bb07da22.entry.js +1 -0
  140. package/dist/cobalt/p-beb9c11d.entry.js +1 -0
  141. package/dist/cobalt/p-c6a242e4.entry.js +1 -0
  142. package/dist/cobalt/p-c87285b6.entry.js +1 -0
  143. package/dist/cobalt/p-cd57e8b4.entry.js +1 -0
  144. package/dist/cobalt/{p-4ffba5a3.entry.js → p-ce3a535f.entry.js} +1 -1
  145. package/dist/cobalt/p-d17e1444.entry.js +1 -0
  146. package/dist/cobalt/p-d958566a.entry.js +1 -0
  147. package/dist/cobalt/p-dd873bf8.entry.js +1 -0
  148. package/dist/cobalt/p-def448e4.entry.js +1 -0
  149. package/dist/cobalt/p-e4de8865.entry.js +1 -0
  150. package/dist/cobalt/{p-3b2f7959.entry.js → p-e8b58332.entry.js} +1 -1
  151. package/dist/cobalt/p-eba0bf7f.entry.js +1 -0
  152. package/dist/cobalt/p-f0e8fa7d.entry.js +1 -0
  153. package/dist/cobalt/{p-e50c4c6f.entry.js → p-f2c5cb74.entry.js} +1 -1
  154. package/dist/cobalt/p-f8728b21.entry.js +1 -0
  155. package/dist/cobalt/{p-697df797.entry.js → p-f97ad9ad.entry.js} +1 -1
  156. package/dist/cobalt/p-fad3605d.entry.js +1 -0
  157. package/dist/cobalt/{p-319937c3.entry.js → p-fe9e85b6.entry.js} +1 -1
  158. package/dist/cobalt/p-ff2690e5.entry.js +1 -0
  159. package/dist/cobalt/p-ox7HzCZn.js +10 -0
  160. package/dist/collection/collection-manifest.json +17 -1
  161. package/dist/collection/components/co-accordion/co-accordion.css +19 -1
  162. package/dist/collection/components/co-accordion/co-accordion.js +46 -4
  163. package/dist/collection/components/co-autocomplete/co-autocomplete.css +725 -7
  164. package/dist/collection/components/co-autocomplete/co-autocomplete.js +88 -4
  165. package/dist/collection/components/co-avatar/co-avatar.css +7 -0
  166. package/dist/collection/components/co-avatar/co-avatar.js +35 -6
  167. package/dist/collection/components/co-button/co-button.css +8 -5
  168. package/dist/collection/components/co-button/co-button.js +46 -3
  169. package/dist/collection/components/co-calendar/co-calendar.css +236 -0
  170. package/dist/collection/components/co-calendar/co-calendar.js +728 -0
  171. package/dist/collection/components/co-card/co-card.css +28 -5
  172. package/dist/collection/components/co-card/co-card.js +47 -4
  173. package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
  174. package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +26 -0
  175. package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +25 -3
  176. package/dist/collection/components/co-chip/co-chip.js +2 -2
  177. package/dist/collection/components/co-color-picker/co-color-picker.css +224 -0
  178. package/dist/collection/components/co-color-picker/co-color-picker.js +333 -0
  179. package/dist/collection/components/co-color-picker/presets.js +19 -0
  180. package/dist/collection/components/co-column-picker/co-column-picker.css +490 -0
  181. package/dist/collection/components/co-column-picker/co-column-picker.js +675 -0
  182. package/dist/collection/components/co-column-picker/column-picker-node.js +34 -0
  183. package/dist/collection/components/co-column-picker/utils/column-picker-tree.js +221 -0
  184. package/dist/collection/components/co-combobox/co-combobox.css +789 -22
  185. package/dist/collection/components/co-combobox/co-combobox.js +130 -15
  186. package/dist/collection/components/co-command-search/co-command-search.css +4 -0
  187. package/dist/collection/components/co-command-search/co-command-search.js +12 -5
  188. package/dist/collection/components/co-data-table/co-data-table.css +1 -1
  189. package/dist/collection/components/co-data-table/co-data-table.js +15 -3
  190. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
  191. package/dist/collection/components/co-date-field/co-date-field.css +239 -0
  192. package/dist/collection/components/co-date-field/co-date-field.js +746 -0
  193. package/dist/collection/components/co-date-picker/co-date-picker.css +112 -0
  194. package/dist/collection/components/co-date-picker/co-date-picker.js +801 -0
  195. package/dist/collection/components/co-date-range/co-date-range.css +3 -254
  196. package/dist/collection/components/co-date-range/co-date-range.js +29 -433
  197. package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +251 -0
  198. package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +1142 -0
  199. package/dist/collection/components/co-drawer/co-drawer.css +19 -0
  200. package/dist/collection/components/co-drawer/co-drawer.js +46 -2
  201. package/dist/collection/components/co-empty-state/co-empty-state.js +1 -1
  202. package/dist/collection/components/co-fab/co-fab.js +2 -2
  203. package/dist/collection/components/co-file-field/co-file-field.css +389 -0
  204. package/dist/collection/components/co-file-field/co-file-field.js +841 -0
  205. package/dist/collection/components/co-file-field/co-file-field.utils.js +47 -0
  206. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  207. package/dist/collection/components/co-icon/co-icon.js +6 -3
  208. package/dist/collection/components/co-icon-button/co-icon-button.css +10 -0
  209. package/dist/collection/components/co-icon-button/co-icon-button.js +4 -4
  210. package/dist/collection/components/co-input/co-input.css +56 -10
  211. package/dist/collection/components/co-input/co-input.js +34 -9
  212. package/dist/collection/components/co-json-field/co-json-field.css +169 -0
  213. package/dist/collection/components/co-json-field/co-json-field.js +453 -0
  214. package/dist/collection/components/co-lightbox/co-lightbox.css +164 -0
  215. package/dist/collection/components/co-lightbox/co-lightbox.js +451 -0
  216. package/dist/collection/components/co-list-item/co-list-item.css +5 -0
  217. package/dist/collection/components/co-list-item/co-list-item.js +12 -2
  218. package/dist/collection/components/co-menu/co-menu.js +1 -1
  219. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  220. package/dist/collection/components/co-modal/co-modal.css +17 -3
  221. package/dist/collection/components/co-modal/co-modal.js +51 -1
  222. package/dist/collection/components/co-navbar/co-navbar.css +1 -1
  223. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  224. package/dist/collection/components/co-number-field/co-number-field.css +70 -0
  225. package/dist/collection/components/co-number-field/co-number-field.js +143 -13
  226. package/dist/collection/components/co-overlay/co-overlay.js +1 -1
  227. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  228. package/dist/collection/components/co-phone-field/co-phone-field.css +265 -0
  229. package/dist/collection/components/co-phone-field/co-phone-field.js +392 -0
  230. package/dist/collection/components/co-phone-field/dial-codes.js +208 -0
  231. package/dist/collection/components/co-popover/co-popover.css +1 -1
  232. package/dist/collection/components/co-popover/co-popover.js +2 -2
  233. package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
  234. package/dist/collection/components/co-progress-circle/co-progress-circle.css +50 -0
  235. package/dist/collection/components/co-progress-circle/co-progress-circle.js +148 -0
  236. package/dist/collection/components/co-radio/co-radio.js +3 -3
  237. package/dist/collection/components/co-radio-group/co-radio-group.css +26 -0
  238. package/dist/collection/components/co-radio-group/co-radio-group.js +25 -3
  239. package/dist/collection/components/co-rating/co-rating.js +3 -3
  240. package/dist/collection/components/co-ref-field/co-ref-field.css +816 -54
  241. package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
  242. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +238 -0
  243. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +868 -0
  244. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +55 -0
  245. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +289 -0
  246. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +78 -0
  247. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +232 -0
  248. package/dist/collection/components/co-row/co-row.js +2 -2
  249. package/dist/collection/components/co-select/co-select.css +845 -7
  250. package/dist/collection/components/co-select/co-select.js +240 -17
  251. package/dist/collection/components/co-separator/co-separator.js +1 -1
  252. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  253. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +29 -4
  254. package/dist/collection/components/co-slider/co-slider.js +2 -2
  255. package/dist/collection/components/co-switch/co-switch.css +17 -0
  256. package/dist/collection/components/co-switch/co-switch.js +27 -4
  257. package/dist/collection/components/co-tab/co-tab.js +2 -2
  258. package/dist/collection/components/co-tab-group/co-tab-group.js +1 -1
  259. package/dist/collection/components/co-tags-field/co-tags-field.css +272 -0
  260. package/dist/collection/components/co-tags-field/co-tags-field.js +590 -0
  261. package/dist/collection/components/co-textarea/co-textarea.css +261 -0
  262. package/dist/collection/components/co-textarea/co-textarea.js +484 -0
  263. package/dist/collection/components/co-toast/co-toast.js +1 -1
  264. package/dist/collection/components/co-toggle-button/co-toggle-button.css +6 -4
  265. package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
  266. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +16 -0
  267. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +25 -2
  268. package/dist/collection/components/co-tooltip/co-tooltip.css +16 -0
  269. package/dist/collection/components/co-tooltip/co-tooltip.js +9 -3
  270. package/dist/collection/components/co-transfer-list/co-transfer-list.css +683 -7
  271. package/dist/collection/components/co-transfer-list/co-transfer-list.js +17 -4
  272. package/dist/collection/utils/dateI18n.js +101 -0
  273. package/dist/collection/utils/fileI18n.js +76 -0
  274. package/dist/collection/utils/icon-config.js +22 -0
  275. package/dist/collection/utils/lightboxI18n.js +42 -0
  276. package/dist/collection/utils/normalizeText.js +94 -0
  277. package/dist/collection/utils/overlayScroll.js +20 -0
  278. package/dist/collection/utils/positioning.js +40 -25
  279. package/dist/collection/utils/requiredMark.js +11 -0
  280. package/dist/components/co-accordion.js +1 -1
  281. package/dist/components/co-autocomplete.js +1 -1
  282. package/dist/components/co-avatar.js +1 -1
  283. package/dist/components/co-button.js +1 -1
  284. package/dist/components/co-calendar.d.ts +11 -0
  285. package/dist/components/co-calendar.js +1 -0
  286. package/dist/components/co-card.js +1 -1
  287. package/dist/components/co-checkbox-group.js +1 -1
  288. package/dist/components/co-checkbox.js +1 -1
  289. package/dist/components/co-chip.js +1 -1
  290. package/dist/components/co-color-picker.d.ts +11 -0
  291. package/dist/components/co-color-picker.js +1 -0
  292. package/dist/components/co-column-picker.d.ts +11 -0
  293. package/dist/components/co-column-picker.js +1 -0
  294. package/dist/components/co-combobox.js +1 -1
  295. package/dist/components/co-command-search.js +1 -1
  296. package/dist/components/co-data-table-pagination.js +1 -1
  297. package/dist/components/co-data-table.js +1 -1
  298. package/dist/components/co-date-field.d.ts +11 -0
  299. package/dist/components/co-date-field.js +1 -0
  300. package/dist/components/co-date-picker.d.ts +11 -0
  301. package/dist/components/co-date-picker.js +1 -0
  302. package/dist/components/co-date-range-picker.d.ts +11 -0
  303. package/dist/components/co-date-range-picker.js +1 -0
  304. package/dist/components/co-date-range.js +1 -1
  305. package/dist/components/co-drawer.js +1 -1
  306. package/dist/components/co-empty-state.js +1 -1
  307. package/dist/components/co-fab.js +1 -1
  308. package/dist/components/co-file-field.d.ts +11 -0
  309. package/dist/components/co-file-field.js +1 -0
  310. package/dist/components/co-helper-text.js +1 -1
  311. package/dist/components/co-icon-button.js +1 -1
  312. package/dist/components/co-icon.js +1 -1
  313. package/dist/components/co-input.js +1 -1
  314. package/dist/components/co-json-field.d.ts +11 -0
  315. package/dist/components/co-json-field.js +1 -0
  316. package/dist/components/co-lightbox.d.ts +11 -0
  317. package/dist/components/co-lightbox.js +1 -0
  318. package/dist/components/co-list-item.js +1 -1
  319. package/dist/components/co-menu-divider.js +1 -1
  320. package/dist/components/co-menu-item.js +1 -1
  321. package/dist/components/co-menu.js +1 -1
  322. package/dist/components/co-modal.js +1 -1
  323. package/dist/components/co-navbar.js +1 -1
  324. package/dist/components/co-number-field.js +1 -1
  325. package/dist/components/co-overlay.js +1 -1
  326. package/dist/components/co-page-header.js +1 -1
  327. package/dist/components/co-phone-field.d.ts +11 -0
  328. package/dist/components/co-phone-field.js +1 -0
  329. package/dist/components/co-popover.js +1 -1
  330. package/dist/components/co-progress-bar.js +1 -1
  331. package/dist/components/co-progress-circle.d.ts +11 -0
  332. package/dist/components/co-progress-circle.js +1 -0
  333. package/dist/components/co-radio-group.js +1 -1
  334. package/dist/components/co-radio.js +1 -1
  335. package/dist/components/co-rating.js +1 -1
  336. package/dist/components/co-ref-field.js +1 -1
  337. package/dist/components/co-rich-text-editor.d.ts +11 -0
  338. package/dist/components/co-rich-text-editor.js +1 -0
  339. package/dist/components/co-rich-text-toolbar.d.ts +11 -0
  340. package/dist/components/co-rich-text-toolbar.js +1 -0
  341. package/dist/components/co-rich-text-viewer.d.ts +11 -0
  342. package/dist/components/co-rich-text-viewer.js +1 -0
  343. package/dist/components/co-row.js +1 -1
  344. package/dist/components/co-select.js +1 -1
  345. package/dist/components/co-separator.js +1 -1
  346. package/dist/components/co-sidebar-nav.js +1 -1
  347. package/dist/components/co-sidebar.js +1 -1
  348. package/dist/components/co-slider.js +1 -1
  349. package/dist/components/co-switch.js +1 -1
  350. package/dist/components/co-tab-group.js +1 -1
  351. package/dist/components/co-tab.js +1 -1
  352. package/dist/components/co-tags-field.d.ts +11 -0
  353. package/dist/components/co-tags-field.js +1 -0
  354. package/dist/components/co-textarea.d.ts +11 -0
  355. package/dist/components/co-textarea.js +1 -0
  356. package/dist/components/co-toast.js +1 -1
  357. package/dist/components/co-toggle-button-group.js +1 -1
  358. package/dist/components/co-toggle-button.js +1 -1
  359. package/dist/components/co-tooltip.js +1 -1
  360. package/dist/components/co-transfer-list.js +1 -1
  361. package/dist/components/index.js +1 -1
  362. package/dist/components/{p-Dv_iMPy0.js → p-BXdfh__-.js} +1 -1
  363. package/dist/components/p-BchB6Hdr.js +1 -0
  364. package/dist/components/p-BeWXpX8I.js +1 -0
  365. package/dist/components/p-BiW0ubLs.js +1 -0
  366. package/dist/components/p-C1DCLOEl.js +1 -0
  367. package/dist/components/p-C2mZ7x_Y.js +1 -0
  368. package/dist/components/p-C9tHLXKS.js +1 -0
  369. package/dist/components/p-CQY6Ul7q.js +1 -0
  370. package/dist/components/p-CWneqh4n.js +1 -0
  371. package/dist/components/{p-B18FTYLq.js → p-CaMgu2_g.js} +1 -1
  372. package/dist/components/p-CyYF8IJE.js +1 -0
  373. package/dist/components/p-DBhNS7JD.js +1 -0
  374. package/dist/components/p-DObrQi5F.js +1 -0
  375. package/dist/components/p-DPi_U-Kl.js +1 -0
  376. package/dist/components/p-DcK0GGZC.js +2 -0
  377. package/dist/components/p-DqyWGweA.js +1 -0
  378. package/dist/components/{p-cpdUXBiS.js → p-MiSJXuBx.js} +1 -1
  379. package/dist/components/p-Sgn-2g8m.js +1 -0
  380. package/dist/components/{p-Cr8Yc0zj.js → p-jDjfGZJp.js} +1 -1
  381. package/dist/components/p-o8hrDIKe.js +1 -0
  382. package/dist/components/p-ox7HzCZn.js +10 -0
  383. package/dist/esm/co-accordion.entry.js +19 -4
  384. package/dist/esm/co-app-shell.entry.js +1 -1
  385. package/dist/esm/co-autocomplete.entry.js +51 -6
  386. package/dist/esm/co-avatar.entry.js +39 -6
  387. package/dist/esm/co-badge.entry.js +1 -1
  388. package/dist/esm/co-button-group.entry.js +1 -1
  389. package/dist/esm/co-button.entry.js +10 -5
  390. package/dist/esm/co-calendar_3.entry.js +688 -0
  391. package/dist/esm/co-card.entry.js +21 -4
  392. package/dist/esm/co-checkbox-group.entry.js +7 -5
  393. package/dist/esm/co-checkbox.entry.js +4 -4
  394. package/dist/esm/co-chip.entry.js +3 -3
  395. package/dist/esm/co-color-picker.entry.js +107 -0
  396. package/dist/esm/co-column-picker.entry.js +441 -0
  397. package/dist/esm/co-combobox.entry.js +51 -15
  398. package/dist/esm/co-command-search.entry.js +14 -7
  399. package/dist/esm/co-data-table-pagination.entry.js +5 -5
  400. package/dist/esm/co-data-table.entry.js +17 -5
  401. package/dist/esm/co-date-picker.entry.js +175 -0
  402. package/dist/esm/co-date-range-picker.entry.js +376 -0
  403. package/dist/esm/co-date-range.entry.js +13 -259
  404. package/dist/esm/co-empty-state.entry.js +2 -2
  405. package/dist/esm/co-fab.entry.js +3 -3
  406. package/dist/esm/co-file-field.entry.js +496 -0
  407. package/dist/esm/co-helper-text.entry.js +3 -3
  408. package/dist/esm/co-icon-button.entry.js +4 -4
  409. package/dist/esm/co-icon.entry.js +7 -4
  410. package/dist/esm/co-input.entry.js +13 -8
  411. package/dist/esm/co-json-field.entry.js +107 -0
  412. package/dist/esm/co-lightbox.entry.js +342 -0
  413. package/dist/esm/co-list-item.entry.js +14 -4
  414. package/dist/esm/co-loader.entry.js +1 -1
  415. package/dist/esm/co-menu-divider.entry.js +2 -2
  416. package/dist/esm/co-menu-item.entry.js +1 -1
  417. package/dist/esm/co-menu.entry.js +2 -2
  418. package/dist/esm/co-modal.entry.js +13 -3
  419. package/dist/esm/co-navbar.entry.js +4 -4
  420. package/dist/esm/co-number-field.entry.js +47 -11
  421. package/dist/esm/co-overlay.entry.js +2 -2
  422. package/dist/esm/co-page-header.entry.js +2 -2
  423. package/dist/esm/co-phone-field.entry.js +374 -0
  424. package/dist/esm/co-popover.entry.js +5 -5
  425. package/dist/esm/co-progress-bar.entry.js +3 -3
  426. package/dist/esm/co-progress-circle.entry.js +36 -0
  427. package/dist/esm/co-radio-group.entry.js +7 -5
  428. package/dist/esm/co-radio.entry.js +4 -4
  429. package/dist/esm/co-rating.entry.js +4 -4
  430. package/dist/esm/co-ref-field.entry.js +191 -21
  431. package/dist/esm/co-rich-text-editor.entry.js +233 -0
  432. package/dist/esm/co-rich-text-toolbar.entry.js +182 -0
  433. package/dist/esm/co-rich-text-viewer.entry.js +80 -0
  434. package/dist/esm/co-row.entry.js +3 -3
  435. package/dist/esm/co-select.entry.js +119 -18
  436. package/dist/esm/co-separator.entry.js +2 -2
  437. package/dist/esm/co-sidebar-nav.entry.js +30 -5
  438. package/dist/esm/co-sidebar.entry.js +3 -3
  439. package/dist/esm/co-slider.entry.js +3 -3
  440. package/dist/esm/co-switch.entry.js +9 -6
  441. package/dist/esm/co-tab-group.entry.js +2 -2
  442. package/dist/esm/co-tab.entry.js +3 -3
  443. package/dist/esm/co-tags-field.entry.js +203 -0
  444. package/dist/esm/co-textarea.entry.js +90 -0
  445. package/dist/esm/co-toast.entry.js +2 -2
  446. package/dist/esm/co-toggle-button-group.entry.js +7 -4
  447. package/dist/esm/co-toggle-button.entry.js +4 -4
  448. package/dist/esm/co-tooltip.entry.js +12 -6
  449. package/dist/esm/co-transfer-list.entry.js +20 -6
  450. package/dist/esm/cobalt.js +3 -3
  451. package/dist/esm/dateI18n-C1DCLOEl.js +103 -0
  452. package/dist/esm/dates-CyYF8IJE.js +416 -0
  453. package/dist/esm/{index-B0lqrhFo.js → index-BKmfyPZK.js} +79 -11
  454. package/dist/esm/index-BjAqSidM.js +27200 -0
  455. package/dist/esm/loader.js +3 -3
  456. package/dist/esm/normalizeText-CQY6Ul7q.js +92 -0
  457. package/dist/esm/overlayScroll-Bpv882_z.js +23 -0
  458. package/dist/esm/overlayscrollbars-ox7HzCZn.js +2840 -0
  459. package/dist/esm/{positioning-Am-OlB8h.js → positioning-C2mZ7x_Y.js} +40 -25
  460. package/dist/esm/requiredMark-DFvtYtkE.js +14 -0
  461. package/dist/esm/sanitizer-DcK0GGZC.js +1880 -0
  462. package/dist/types/components/co-accordion/co-accordion.d.ts +12 -2
  463. package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +11 -0
  464. package/dist/types/components/co-avatar/co-avatar.d.ts +6 -2
  465. package/dist/types/components/co-button/co-button.d.ts +4 -0
  466. package/dist/types/components/co-calendar/co-calendar.d.ts +108 -0
  467. package/dist/types/components/co-card/co-card.d.ts +10 -2
  468. package/dist/types/components/co-checkbox-group/co-checkbox-group.d.ts +2 -0
  469. package/dist/types/components/co-color-picker/co-color-picker.d.ts +48 -0
  470. package/dist/types/components/co-color-picker/presets.d.ts +10 -0
  471. package/dist/types/components/co-column-picker/co-column-picker.d.ts +60 -0
  472. package/dist/types/components/co-column-picker/column-picker-node.d.ts +18 -0
  473. package/dist/types/components/co-column-picker/utils/column-picker-tree.d.ts +37 -0
  474. package/dist/types/components/co-combobox/co-combobox.d.ts +14 -1
  475. package/dist/types/components/co-command-search/co-command-search.d.ts +2 -0
  476. package/dist/types/components/co-data-table/co-data-table.d.ts +1 -0
  477. package/dist/types/components/co-date-field/co-date-field.d.ts +96 -0
  478. package/dist/types/components/co-date-picker/co-date-picker.d.ts +92 -0
  479. package/dist/types/components/co-date-range/co-date-range.d.ts +12 -50
  480. package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +112 -0
  481. package/dist/types/components/co-drawer/co-drawer.d.ts +4 -0
  482. package/dist/types/components/co-file-field/co-file-field.d.ts +146 -0
  483. package/dist/types/components/co-file-field/co-file-field.utils.d.ts +18 -0
  484. package/dist/types/components/co-icon-button/co-icon-button.d.ts +1 -1
  485. package/dist/types/components/co-input/co-input.d.ts +4 -1
  486. package/dist/types/components/co-json-field/co-json-field.d.ts +66 -0
  487. package/dist/types/components/co-lightbox/co-lightbox.d.ts +95 -0
  488. package/dist/types/components/co-list-item/co-list-item.d.ts +1 -0
  489. package/dist/types/components/co-modal/co-modal.d.ts +4 -0
  490. package/dist/types/components/co-number-field/co-number-field.d.ts +16 -2
  491. package/dist/types/components/co-phone-field/co-phone-field.d.ts +56 -0
  492. package/dist/types/components/co-phone-field/dial-codes.d.ts +14 -0
  493. package/dist/types/components/co-progress-circle/co-progress-circle.d.ts +16 -0
  494. package/dist/types/components/co-radio-group/co-radio-group.d.ts +2 -0
  495. package/dist/types/components/co-ref-field/co-ref-field.d.ts +54 -1
  496. package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +94 -0
  497. package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +42 -0
  498. package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +32 -0
  499. package/dist/types/components/co-select/co-select.d.ts +31 -1
  500. package/dist/types/components/co-switch/co-switch.d.ts +2 -0
  501. package/dist/types/components/co-tags-field/co-tags-field.d.ts +82 -0
  502. package/dist/types/components/co-textarea/co-textarea.d.ts +65 -0
  503. package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +2 -0
  504. package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +4 -0
  505. package/dist/types/components.d.ts +3796 -422
  506. package/dist/types/utils/dateI18n.d.ts +39 -0
  507. package/dist/types/utils/fileI18n.d.ts +34 -0
  508. package/dist/types/utils/icon-config.d.ts +20 -0
  509. package/dist/types/utils/lightboxI18n.d.ts +12 -0
  510. package/dist/types/utils/normalizeText.d.ts +41 -0
  511. package/dist/types/utils/overlayScroll.d.ts +17 -0
  512. package/dist/types/utils/positioning.d.ts +7 -14
  513. package/dist/types/utils/requiredMark.d.ts +13 -0
  514. package/package.json +9 -1
  515. package/dist/cjs/co-drawer.cjs.entry.js +0 -75
  516. package/dist/cjs/color-YhUkm10t.js +0 -32
  517. package/dist/cobalt/p-08afdc51.entry.js +0 -1
  518. package/dist/cobalt/p-1d3338b6.entry.js +0 -1
  519. package/dist/cobalt/p-230a23f3.entry.js +0 -1
  520. package/dist/cobalt/p-31bc842d.entry.js +0 -1
  521. package/dist/cobalt/p-37c1f700.entry.js +0 -1
  522. package/dist/cobalt/p-4ce98a64.entry.js +0 -1
  523. package/dist/cobalt/p-4dd7499c.entry.js +0 -1
  524. package/dist/cobalt/p-4e7ce8ee.entry.js +0 -1
  525. package/dist/cobalt/p-6793c51e.entry.js +0 -1
  526. package/dist/cobalt/p-689e38b3.entry.js +0 -1
  527. package/dist/cobalt/p-7028880b.entry.js +0 -1
  528. package/dist/cobalt/p-72113ec2.entry.js +0 -1
  529. package/dist/cobalt/p-8e54e74d.entry.js +0 -1
  530. package/dist/cobalt/p-92c39eed.entry.js +0 -1
  531. package/dist/cobalt/p-9887b828.entry.js +0 -1
  532. package/dist/cobalt/p-9a5c6600.entry.js +0 -1
  533. package/dist/cobalt/p-Am-OlB8h.js +0 -1
  534. package/dist/cobalt/p-B0lqrhFo.js +0 -2
  535. package/dist/cobalt/p-BG4WRR22.js +0 -1
  536. package/dist/cobalt/p-a1b248ad.entry.js +0 -1
  537. package/dist/cobalt/p-a470b764.entry.js +0 -1
  538. package/dist/cobalt/p-a477d23a.entry.js +0 -1
  539. package/dist/cobalt/p-a4d55b1a.entry.js +0 -1
  540. package/dist/cobalt/p-b6840df4.entry.js +0 -1
  541. package/dist/cobalt/p-b89d54d9.entry.js +0 -1
  542. package/dist/cobalt/p-ba84631a.entry.js +0 -1
  543. package/dist/cobalt/p-c7517f86.entry.js +0 -1
  544. package/dist/cobalt/p-ca41eec2.entry.js +0 -1
  545. package/dist/cobalt/p-d29c77cb.entry.js +0 -1
  546. package/dist/cobalt/p-d9d8b10e.entry.js +0 -1
  547. package/dist/cobalt/p-da55678f.entry.js +0 -1
  548. package/dist/cobalt/p-dc5598d1.entry.js +0 -1
  549. package/dist/cobalt/p-e2c9cb00.entry.js +0 -1
  550. package/dist/cobalt/p-ebd68f56.entry.js +0 -1
  551. package/dist/cobalt/p-f051f44d.entry.js +0 -1
  552. package/dist/cobalt/p-fe1447a3.entry.js +0 -1
  553. package/dist/components/p-Am-OlB8h.js +0 -1
  554. package/dist/components/p-BG4WRR22.js +0 -1
  555. package/dist/components/p-wwWquAtm.js +0 -1
  556. package/dist/esm/co-drawer.entry.js +0 -73
  557. package/dist/esm/color-BG4WRR22.js +0 -30
@@ -0,0 +1,2840 @@
1
+ /*!
2
+ * OverlayScrollbars
3
+ * Version: 2.16.0
4
+ *
5
+ * Copyright (c) Rene Haas | KingSora.
6
+ * https://github.com/KingSora
7
+ *
8
+ * Released under the MIT license.
9
+ */
10
+ const createCache = (t, n) => {
11
+ const {o: o, i: s, u: e} = t;
12
+ let c = o;
13
+ let r;
14
+ const cacheUpdateContextual = (t, n) => {
15
+ const o = c;
16
+ const i = t;
17
+ const l = n || (s ? !s(o, i) : o !== i);
18
+ if (l || e) {
19
+ c = i;
20
+ r = o;
21
+ }
22
+ return [ c, l, r ];
23
+ };
24
+ const cacheUpdateIsolated = t => cacheUpdateContextual(n(c, r), t);
25
+ const getCurrentCache = t => [ c, !!t, r ];
26
+ return [ n ? cacheUpdateIsolated : cacheUpdateContextual, getCurrentCache ];
27
+ };
28
+
29
+ const t = typeof window !== "undefined" && typeof HTMLElement !== "undefined" && !!window.document;
30
+
31
+ const n = t ? window : {};
32
+
33
+ const o = Math.max;
34
+
35
+ const s = Math.min;
36
+
37
+ const e = Math.round;
38
+
39
+ const c = Math.abs;
40
+
41
+ const r = Math.sign;
42
+
43
+ const i = n.cancelAnimationFrame;
44
+
45
+ const l = n.requestAnimationFrame;
46
+
47
+ const a = n.setTimeout;
48
+
49
+ const u = n.clearTimeout;
50
+
51
+ const getApi = t => typeof n[t] !== "undefined" ? n[t] : void 0;
52
+
53
+ const f = getApi("MutationObserver");
54
+
55
+ const _ = getApi("IntersectionObserver");
56
+
57
+ const d = getApi("ResizeObserver");
58
+
59
+ const p = getApi("ScrollTimeline");
60
+
61
+ const isUndefined = t => t === void 0;
62
+
63
+ const isNull = t => t === null;
64
+
65
+ const isNumber = t => typeof t === "number";
66
+
67
+ const isString = t => typeof t === "string";
68
+
69
+ const isBoolean = t => typeof t === "boolean";
70
+
71
+ const isFunction = t => typeof t === "function";
72
+
73
+ const isArray = t => Array.isArray(t);
74
+
75
+ const isObject = t => typeof t === "object" && !isArray(t) && !isNull(t);
76
+
77
+ const isArrayLike = t => {
78
+ const n = !!t && t.length;
79
+ const o = isNumber(n) && n > -1 && n % 1 == 0;
80
+ return isArray(t) || !isFunction(t) && o ? n > 0 && isObject(t) ? n - 1 in t : true : false;
81
+ };
82
+
83
+ const isPlainObject = t => !!t && t.constructor === Object;
84
+
85
+ const isHTMLElement = t => t instanceof HTMLElement;
86
+
87
+ const isElement = t => t instanceof Element;
88
+
89
+ function each(t, n) {
90
+ if (isArrayLike(t)) {
91
+ for (let o = 0; o < t.length; o++) {
92
+ if (n(t[o], o, t) === false) {
93
+ break;
94
+ }
95
+ }
96
+ } else if (t) {
97
+ each(Object.keys(t), (o => n(t[o], o, t)));
98
+ }
99
+ return t;
100
+ }
101
+
102
+ const inArray = (t, n) => t.indexOf(n) >= 0;
103
+
104
+ const concat = (t, n) => t.concat(n);
105
+
106
+ const push = (t, n, o) => {
107
+ if (!isString(n) && isArrayLike(n)) {
108
+ Array.prototype.push.apply(t, n);
109
+ } else {
110
+ t.push(n);
111
+ }
112
+ return t;
113
+ };
114
+
115
+ const from = t => Array.from(t || []);
116
+
117
+ const createOrKeepArray = t => {
118
+ if (isArray(t)) {
119
+ return t;
120
+ }
121
+ return !isString(t) && isArrayLike(t) ? from(t) : [ t ];
122
+ };
123
+
124
+ const isEmptyArray = t => !!t && !t.length;
125
+
126
+ const deduplicateArray = t => from(new Set(t));
127
+
128
+ const runEachAndClear = (t, n, o) => {
129
+ const runFn = t => t ? t.apply(void 0, n || []) : true;
130
+ each(t, runFn);
131
+ if (!o) {
132
+ t.length = 0;
133
+ }
134
+ };
135
+
136
+ const v = "paddingTop";
137
+
138
+ const g = "paddingRight";
139
+
140
+ const h = "paddingLeft";
141
+
142
+ const b = "paddingBottom";
143
+
144
+ const y = "marginLeft";
145
+
146
+ const w = "marginRight";
147
+
148
+ const S = "marginBottom";
149
+
150
+ const m = "overflowX";
151
+
152
+ const O = "overflowY";
153
+
154
+ const C = "width";
155
+
156
+ const $ = "height";
157
+
158
+ const x = "visible";
159
+
160
+ const H = "hidden";
161
+
162
+ const E = "scroll";
163
+
164
+ const capitalizeFirstLetter = t => {
165
+ const n = String(t || "");
166
+ return n ? n[0].toUpperCase() + n.slice(1) : "";
167
+ };
168
+
169
+ const equal = (t, n, o, s) => {
170
+ if (t && n) {
171
+ let s = true;
172
+ each(o, (o => {
173
+ const e = t[o];
174
+ const c = n[o];
175
+ if (e !== c) {
176
+ s = false;
177
+ }
178
+ }));
179
+ return s;
180
+ }
181
+ return false;
182
+ };
183
+
184
+ const equalWH = (t, n) => equal(t, n, [ "w", "h" ]);
185
+
186
+ const equalXY = (t, n) => equal(t, n, [ "x", "y" ]);
187
+
188
+ const equalTRBL = (t, n) => equal(t, n, [ "t", "r", "b", "l" ]);
189
+
190
+ const bind = (t, ...n) => t.bind(0, ...n);
191
+
192
+ const selfClearTimeout = t => {
193
+ let n;
194
+ const o = t ? a : l;
195
+ const s = t ? u : i;
196
+ return [ e => {
197
+ s(n);
198
+ n = o((() => e()), isFunction(t) ? t() : t);
199
+ }, () => s(n) ];
200
+ };
201
+
202
+ const getDebouncer = t => {
203
+ const n = isFunction(t) ? t() : t;
204
+ if (isNumber(n)) {
205
+ const t = n ? a : l;
206
+ const o = n ? u : i;
207
+ return s => {
208
+ const e = t((() => s()), n);
209
+ return () => {
210
+ o(e);
211
+ };
212
+ };
213
+ }
214
+ return n && n._;
215
+ };
216
+
217
+ const debounce = (t, n) => {
218
+ const {p: o, v: s, S: e, m: c} = n || {};
219
+ let r;
220
+ let i;
221
+ let l;
222
+ let a;
223
+ const u = function invokeFunctionToDebounce(n) {
224
+ if (i) {
225
+ i();
226
+ }
227
+ if (r) {
228
+ r();
229
+ }
230
+ a = i = r = l = void 0;
231
+ t.apply(this, n);
232
+ };
233
+ const mergeParms = t => c && l ? c(l, t) : t;
234
+ const flush = () => {
235
+ if (i && l) {
236
+ u(mergeParms(l) || l);
237
+ }
238
+ };
239
+ const f = function debouncedFn() {
240
+ const t = from(arguments);
241
+ const n = getDebouncer(o);
242
+ if (n) {
243
+ const o = typeof e === "function" ? e() : e;
244
+ const c = getDebouncer(s);
245
+ const f = mergeParms(t);
246
+ const _ = f || t;
247
+ const d = u.bind(0, _);
248
+ if (i) {
249
+ i();
250
+ }
251
+ if (o && !a) {
252
+ d();
253
+ a = true;
254
+ i = n((() => a = void 0));
255
+ } else {
256
+ i = n(d);
257
+ if (c && !r) {
258
+ r = c(flush);
259
+ }
260
+ }
261
+ l = _;
262
+ } else {
263
+ u(t);
264
+ }
265
+ };
266
+ f.O = flush;
267
+ return f;
268
+ };
269
+
270
+ const hasOwnProperty = (t, n) => Object.prototype.hasOwnProperty.call(t, n);
271
+
272
+ const keys = t => t ? Object.keys(t) : [];
273
+
274
+ const assignDeep = (t, n, o, s, e, c, r) => {
275
+ const i = [ n, o, s, e, c, r ];
276
+ if ((typeof t !== "object" || isNull(t)) && !isFunction(t)) {
277
+ t = {};
278
+ }
279
+ each(i, (n => {
280
+ each(n, ((o, s) => {
281
+ const e = n[s];
282
+ if (t === e) {
283
+ return true;
284
+ }
285
+ const c = isArray(e);
286
+ if (e && isPlainObject(e)) {
287
+ const n = t[s];
288
+ let o = n;
289
+ if (c && !isArray(n)) {
290
+ o = [];
291
+ } else if (!c && !isPlainObject(n)) {
292
+ o = {};
293
+ }
294
+ t[s] = assignDeep(o, e);
295
+ } else {
296
+ t[s] = c ? e.slice() : e;
297
+ }
298
+ }));
299
+ }));
300
+ return t;
301
+ };
302
+
303
+ const removeUndefinedProperties = (t, n) => each(assignDeep({}, t), ((t, n, o) => {
304
+ if (t === void 0) {
305
+ delete o[n];
306
+ } else if (t && isPlainObject(t)) {
307
+ o[n] = removeUndefinedProperties(t);
308
+ }
309
+ }));
310
+
311
+ const isEmptyObject = t => !keys(t).length;
312
+
313
+ const noop = () => {};
314
+
315
+ const capNumber = (t, n, e) => o(t, s(n, e));
316
+
317
+ const getDomTokensArray = t => deduplicateArray((isArray(t) ? t : (t || "").split(" ")).filter((t => t)));
318
+
319
+ const getAttr = (t, n) => t && t.getAttribute(n);
320
+
321
+ const hasAttr = (t, n) => t && t.hasAttribute(n);
322
+
323
+ const setAttrs = (t, n, o) => {
324
+ each(getDomTokensArray(n), (n => {
325
+ if (t) {
326
+ t.setAttribute(n, String(o || ""));
327
+ }
328
+ }));
329
+ };
330
+
331
+ const removeAttrs = (t, n) => {
332
+ each(getDomTokensArray(n), (n => t && t.removeAttribute(n)));
333
+ };
334
+
335
+ const domTokenListAttr = (t, n) => {
336
+ const o = getDomTokensArray(getAttr(t, n));
337
+ const s = bind(setAttrs, t, n);
338
+ const domTokenListOperation = (t, n) => {
339
+ const s = new Set(o);
340
+ each(getDomTokensArray(t), (t => {
341
+ s[n](t);
342
+ }));
343
+ return from(s).join(" ");
344
+ };
345
+ return {
346
+ C: t => s(domTokenListOperation(t, "delete")),
347
+ $: t => s(domTokenListOperation(t, "add")),
348
+ H: t => {
349
+ const n = getDomTokensArray(t);
350
+ return n.reduce(((t, n) => t && o.includes(n)), n.length > 0);
351
+ }
352
+ };
353
+ };
354
+
355
+ const removeAttrClass = (t, n, o) => {
356
+ domTokenListAttr(t, n).C(o);
357
+ return bind(addAttrClass, t, n, o);
358
+ };
359
+
360
+ const addAttrClass = (t, n, o) => {
361
+ domTokenListAttr(t, n).$(o);
362
+ return bind(removeAttrClass, t, n, o);
363
+ };
364
+
365
+ const addRemoveAttrClass = (t, n, o, s) => (s ? addAttrClass : removeAttrClass)(t, n, o);
366
+
367
+ const hasAttrClass = (t, n, o) => domTokenListAttr(t, n).H(o);
368
+
369
+ const createDomTokenListClass = t => domTokenListAttr(t, "class");
370
+
371
+ const removeClass = (t, n) => {
372
+ createDomTokenListClass(t).C(n);
373
+ };
374
+
375
+ const addClass = (t, n) => {
376
+ createDomTokenListClass(t).$(n);
377
+ return bind(removeClass, t, n);
378
+ };
379
+
380
+ const find = (t, n) => {
381
+ const o = n ? isElement(n) && n : document;
382
+ return o ? from(o.querySelectorAll(t)) : [];
383
+ };
384
+
385
+ const findFirst = (t, n) => {
386
+ const o = n ? isElement(n) && n : document;
387
+ return o && o.querySelector(t);
388
+ };
389
+
390
+ const is = (t, n) => isElement(t) && t.matches(n);
391
+
392
+ const isBodyElement = t => is(t, "body");
393
+
394
+ const contents = t => t ? from(t.childNodes) : [];
395
+
396
+ const parent = t => t && t.parentElement;
397
+
398
+ const closest = (t, n) => isElement(t) && t.closest(n);
399
+
400
+ const getFocusedElement = t => document.activeElement;
401
+
402
+ const liesBetween = (t, n, o) => {
403
+ const s = closest(t, n);
404
+ const e = t && findFirst(o, s);
405
+ const c = closest(e, n) === s;
406
+ return s && e ? s === t || e === t || c && closest(closest(t, o), n) !== s : false;
407
+ };
408
+
409
+ const removeElements = t => {
410
+ each(createOrKeepArray(t), (t => {
411
+ const n = parent(t);
412
+ if (t && n) {
413
+ n.removeChild(t);
414
+ }
415
+ }));
416
+ };
417
+
418
+ const appendChildren = (t, n) => bind(removeElements, t && n && each(createOrKeepArray(n), (n => {
419
+ if (n) {
420
+ t.appendChild(n);
421
+ }
422
+ })));
423
+
424
+ let D;
425
+
426
+ const getTrustedTypePolicy = () => D;
427
+
428
+ const setTrustedTypePolicy = t => {
429
+ D = t;
430
+ };
431
+
432
+ const createDiv = t => {
433
+ const n = document.createElement("div");
434
+ setAttrs(n, "class", t);
435
+ return n;
436
+ };
437
+
438
+ const createDOM = t => {
439
+ const n = createDiv();
440
+ const o = getTrustedTypePolicy();
441
+ const s = t.trim();
442
+ n.innerHTML = o ? o.createHTML(s) : s;
443
+ return each(contents(n), (t => removeElements(t)));
444
+ };
445
+
446
+ const getCSSVal = (t, n) => t.getPropertyValue(n) || t[n] || "";
447
+
448
+ const validFiniteNumber = t => {
449
+ const n = t || 0;
450
+ return isFinite(n) ? n : 0;
451
+ };
452
+
453
+ const parseToZeroOrNumber = t => validFiniteNumber(parseFloat(t || ""));
454
+
455
+ const roundCssNumber = t => Math.round(t * 1e4) / 1e4;
456
+
457
+ const numberToCssPx = t => `${roundCssNumber(validFiniteNumber(t))}px`;
458
+
459
+ function setStyles(t, n) {
460
+ t && n && each(n, ((n, o) => {
461
+ try {
462
+ const s = t.style;
463
+ const e = isNull(n) || isBoolean(n) ? "" : isNumber(n) ? numberToCssPx(n) : n;
464
+ if (o.indexOf("--") === 0) {
465
+ s.setProperty(o, e);
466
+ } else {
467
+ s[o] = e;
468
+ }
469
+ } catch (s) {}
470
+ }));
471
+ }
472
+
473
+ function getStyles(t, o, s) {
474
+ const e = isString(o);
475
+ let c = e ? "" : {};
476
+ if (t) {
477
+ const r = n.getComputedStyle(t, s) || t.style;
478
+ c = e ? getCSSVal(r, o) : from(o).reduce(((t, n) => {
479
+ t[n] = getCSSVal(r, n);
480
+ return t;
481
+ }), c);
482
+ }
483
+ return c;
484
+ }
485
+
486
+ const topRightBottomLeft = (t, n, o) => {
487
+ const s = n ? `${n}-` : "";
488
+ const e = o ? `-${o}` : "";
489
+ const c = `${s}top${e}`;
490
+ const r = `${s}right${e}`;
491
+ const i = `${s}bottom${e}`;
492
+ const l = `${s}left${e}`;
493
+ const a = getStyles(t, [ c, r, i, l ]);
494
+ return {
495
+ t: parseToZeroOrNumber(a[c]),
496
+ r: parseToZeroOrNumber(a[r]),
497
+ b: parseToZeroOrNumber(a[i]),
498
+ l: parseToZeroOrNumber(a[l])
499
+ };
500
+ };
501
+
502
+ const getTrasformTranslateValue = (t, n) => `translate${isObject(t) ? `(${t.x},${t.y})` : `${n ? "X" : "Y"}(${t})`}`;
503
+
504
+ const elementHasDimensions = t => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length);
505
+
506
+ const z = {
507
+ w: 0,
508
+ h: 0
509
+ };
510
+
511
+ const getElmWidthHeightProperty = (t, n) => n ? {
512
+ w: n[`${t}Width`],
513
+ h: n[`${t}Height`]
514
+ } : z;
515
+
516
+ const getWindowSize = t => getElmWidthHeightProperty("inner", t || n);
517
+
518
+ const I = bind(getElmWidthHeightProperty, "offset");
519
+
520
+ const A = bind(getElmWidthHeightProperty, "client");
521
+
522
+ const T = bind(getElmWidthHeightProperty, "scroll");
523
+
524
+ const getFractionalSize = t => {
525
+ const n = parseFloat(getStyles(t, C)) || 0;
526
+ const o = parseFloat(getStyles(t, $)) || 0;
527
+ return {
528
+ w: n - e(n),
529
+ h: o - e(o)
530
+ };
531
+ };
532
+
533
+ const getBoundingClientRect = t => t.getBoundingClientRect();
534
+
535
+ const hasDimensions = t => !!t && elementHasDimensions(t);
536
+
537
+ const domRectHasDimensions = t => !!(t && (t[$] || t[C]));
538
+
539
+ const domRectAppeared = (t, n) => {
540
+ const o = domRectHasDimensions(t);
541
+ const s = domRectHasDimensions(n);
542
+ return !s && o;
543
+ };
544
+
545
+ const removeEventListener = (t, n, o, s) => {
546
+ each(getDomTokensArray(n), (n => {
547
+ if (t) {
548
+ t.removeEventListener(n, o, s);
549
+ }
550
+ }));
551
+ };
552
+
553
+ const addEventListener = (t, n, o, s) => {
554
+ var e;
555
+ const c = (e = s && s.D) != null ? e : true;
556
+ const r = s && s.I || false;
557
+ const i = s && s.A || false;
558
+ const l = {
559
+ passive: c,
560
+ capture: r
561
+ };
562
+ return bind(runEachAndClear, getDomTokensArray(n).map((n => {
563
+ const s = i ? e => {
564
+ removeEventListener(t, n, s, r);
565
+ if (o) {
566
+ o(e);
567
+ }
568
+ } : o;
569
+ if (t) {
570
+ t.addEventListener(n, s, l);
571
+ }
572
+ return bind(removeEventListener, t, n, s, r);
573
+ })));
574
+ };
575
+
576
+ const stopPropagation = t => t.stopPropagation();
577
+
578
+ const preventDefault = t => t.preventDefault();
579
+
580
+ const stopAndPrevent = t => stopPropagation(t) || preventDefault(t);
581
+
582
+ const scrollElementTo = (t, n) => {
583
+ const {x: o, y: s} = isNumber(n) ? {
584
+ x: n,
585
+ y: n
586
+ } : n || {};
587
+ isNumber(o) && (t.scrollLeft = o);
588
+ isNumber(s) && (t.scrollTop = s);
589
+ };
590
+
591
+ const getElementScroll = t => ({
592
+ x: t.scrollLeft,
593
+ y: t.scrollTop
594
+ });
595
+
596
+ const getZeroScrollCoordinates = () => ({
597
+ T: {
598
+ x: 0,
599
+ y: 0
600
+ },
601
+ k: {
602
+ x: 0,
603
+ y: 0
604
+ }
605
+ });
606
+
607
+ const sanitizeScrollCoordinates = (t, n) => {
608
+ const {T: o, k: s} = t;
609
+ const {w: e, h: i} = n;
610
+ const sanitizeAxis = (t, n, o) => {
611
+ let s = r(t) * o;
612
+ let e = r(n) * o;
613
+ if (s === e) {
614
+ const o = c(t);
615
+ const r = c(n);
616
+ e = o > r ? 0 : e;
617
+ s = o < r ? 0 : s;
618
+ }
619
+ s = s === e ? 0 : s;
620
+ return [ s + 0, e + 0 ];
621
+ };
622
+ const [l, a] = sanitizeAxis(o.x, s.x, e);
623
+ const [u, f] = sanitizeAxis(o.y, s.y, i);
624
+ return {
625
+ T: {
626
+ x: l,
627
+ y: u
628
+ },
629
+ k: {
630
+ x: a,
631
+ y: f
632
+ }
633
+ };
634
+ };
635
+
636
+ const isDefaultDirectionScrollCoordinates = ({T: t, k: n}) => {
637
+ const getAxis = (t, n) => t === 0 && t <= n;
638
+ return {
639
+ x: getAxis(t.x, n.x),
640
+ y: getAxis(t.y, n.y)
641
+ };
642
+ };
643
+
644
+ const getScrollCoordinatesPercent = ({T: t, k: n}, o) => {
645
+ const getAxis = (t, n, o) => capNumber(0, 1, (t - o) / (t - n) || 0);
646
+ return {
647
+ x: getAxis(t.x, n.x, o.x),
648
+ y: getAxis(t.y, n.y, o.y)
649
+ };
650
+ };
651
+
652
+ const focusElement = t => {
653
+ if (t && t.focus) {
654
+ t.focus({
655
+ preventScroll: true,
656
+ focusVisible: false
657
+ });
658
+ }
659
+ };
660
+
661
+ const manageListener = (t, n) => {
662
+ each(createOrKeepArray(n), t);
663
+ };
664
+
665
+ const createEventListenerHub = t => {
666
+ const n = new Map;
667
+ const removeEvent = (t, o) => {
668
+ if (t) {
669
+ const s = n.get(t);
670
+ manageListener((t => {
671
+ if (s) {
672
+ s[t ? "delete" : "clear"](t);
673
+ }
674
+ }), o);
675
+ } else {
676
+ n.forEach((t => {
677
+ t.clear();
678
+ }));
679
+ n.clear();
680
+ }
681
+ };
682
+ const addEvent = (t, o) => {
683
+ if (isString(t)) {
684
+ const s = n.get(t) || new Set;
685
+ n.set(t, s);
686
+ manageListener((t => {
687
+ if (isFunction(t)) {
688
+ s.add(t);
689
+ }
690
+ }), o);
691
+ return bind(removeEvent, t, o);
692
+ }
693
+ if (isBoolean(o) && o) {
694
+ removeEvent();
695
+ }
696
+ const s = keys(t);
697
+ const e = [];
698
+ each(s, (n => {
699
+ const o = t[n];
700
+ if (o) {
701
+ push(e, addEvent(n, o));
702
+ }
703
+ }));
704
+ return bind(runEachAndClear, e);
705
+ };
706
+ const triggerEvent = (t, o) => {
707
+ each(from(n.get(t)), (t => {
708
+ if (o && !isEmptyArray(o)) {
709
+ t.apply(0, o);
710
+ } else {
711
+ t();
712
+ }
713
+ }));
714
+ };
715
+ addEvent(t || {});
716
+ return [ addEvent, removeEvent, triggerEvent ];
717
+ };
718
+
719
+ const k = {};
720
+
721
+ const M = {};
722
+
723
+ const addPlugins = t => {
724
+ each(t, (t => each(t, ((n, o) => {
725
+ k[o] = t[o];
726
+ }))));
727
+ };
728
+
729
+ const registerPluginModuleInstances = (t, n, o) => keys(t).map((s => {
730
+ const {static: e, instance: c} = t[s];
731
+ const [r, i, l] = o || [];
732
+ const a = o ? c : e;
733
+ if (a) {
734
+ const t = o ? a(r, i, n) : a(n);
735
+ return (l || M)[s] = t;
736
+ }
737
+ }));
738
+
739
+ const getInstancePluginModuleInstance = (t, n) => t[n];
740
+
741
+ const getStaticPluginModuleInstance = t => getInstancePluginModuleInstance(M, t);
742
+
743
+ const R = "__osOptionsValidationPlugin";
744
+
745
+ const V = `data-overlayscrollbars`;
746
+
747
+ const L = "os-environment";
748
+
749
+ const P = `${L}-scrollbar-hidden`;
750
+
751
+ const U = `${V}-initialize`;
752
+
753
+ const N = "noClipping";
754
+
755
+ const q = `${V}-body`;
756
+
757
+ const B = V;
758
+
759
+ const F = "host";
760
+
761
+ const j = `${V}-viewport`;
762
+
763
+ const X = m;
764
+
765
+ const Y = O;
766
+
767
+ const W = "arrange";
768
+
769
+ const J = "measuring";
770
+
771
+ const G = "scrolling";
772
+
773
+ const K = "scrollbarHidden";
774
+
775
+ const Q = "noContent";
776
+
777
+ const Z = `${V}-padding`;
778
+
779
+ const tt = `${V}-content`;
780
+
781
+ const nt = "os-size-observer";
782
+
783
+ const ot = `${nt}-appear`;
784
+
785
+ const st = `${nt}-listener`;
786
+
787
+ const it = "os-trinsic-observer";
788
+
789
+ const lt = "os-theme-none";
790
+
791
+ const at = "os-scrollbar";
792
+
793
+ const ut = `${at}-rtl`;
794
+
795
+ const ft = `${at}-horizontal`;
796
+
797
+ const _t = `${at}-vertical`;
798
+
799
+ const dt = `${at}-track`;
800
+
801
+ const pt = `${at}-handle`;
802
+
803
+ const vt = `${at}-visible`;
804
+
805
+ const gt = `${at}-cornerless`;
806
+
807
+ const ht = `${at}-interaction`;
808
+
809
+ const bt = `${at}-unusable`;
810
+
811
+ const yt = `${at}-auto-hide`;
812
+
813
+ const wt = `${yt}-hidden`;
814
+
815
+ const St = `${at}-wheel`;
816
+
817
+ const mt = `${dt}-interactive`;
818
+
819
+ const Ot = `${pt}-interactive`;
820
+
821
+ const Ct = "__osSizeObserverPlugin";
822
+
823
+ const getShowNativeOverlaidScrollbars = (t, n) => {
824
+ const {M: o} = n;
825
+ const [s, e] = t("showNativeOverlaidScrollbars");
826
+ return [ s && o.x && o.y, e ];
827
+ };
828
+
829
+ const overflowIsVisible = t => t.indexOf(x) === 0;
830
+
831
+ const overflowBehaviorToOverflowStyle = t => t.replace(`${x}-`, "");
832
+
833
+ const overflowCssValueToOverflowStyle = (t, n) => {
834
+ if (t === "auto") {
835
+ return n ? E : H;
836
+ }
837
+ const o = t || H;
838
+ return [ H, E, x ].includes(o) ? o : H;
839
+ };
840
+
841
+ const getElementOverflowStyle = (t, n) => {
842
+ const {overflowX: o, overflowY: s} = getStyles(t, [ m, O ]);
843
+ return {
844
+ x: overflowCssValueToOverflowStyle(o, n.x),
845
+ y: overflowCssValueToOverflowStyle(s, n.y)
846
+ };
847
+ };
848
+
849
+ const xt = "__osScrollbarsHidingPlugin";
850
+
851
+ const Et = "__osClickScrollPlugin";
852
+
853
+ const opsStringify = t => JSON.stringify(t, ((t, n) => {
854
+ if (isFunction(n)) {
855
+ throw 0;
856
+ }
857
+ return n;
858
+ }));
859
+
860
+ const getPropByPath = (t, n) => t ? `${n}`.split(".").reduce(((t, n) => t && hasOwnProperty(t, n) ? t[n] : void 0), t) : void 0;
861
+
862
+ const zt = [ 0, 33 ];
863
+
864
+ const It = [ 33, 99 ];
865
+
866
+ const At = [ 222, 666, true ];
867
+
868
+ const Tt = {
869
+ paddingAbsolute: false,
870
+ showNativeOverlaidScrollbars: false,
871
+ update: {
872
+ elementEvents: [ [ "img", "load" ] ],
873
+ debounce: {
874
+ mutation: zt,
875
+ resize: null,
876
+ event: It,
877
+ env: At
878
+ },
879
+ attributes: null,
880
+ ignoreMutation: null,
881
+ flowDirectionStyles: null
882
+ },
883
+ overflow: {
884
+ x: "scroll",
885
+ y: "scroll"
886
+ },
887
+ scrollbars: {
888
+ theme: "os-theme-dark",
889
+ visibility: "auto",
890
+ autoHide: "never",
891
+ autoHideDelay: 1300,
892
+ autoHideSuspend: false,
893
+ dragScroll: true,
894
+ clickScroll: false,
895
+ pointers: [ "mouse", "touch", "pen" ]
896
+ }
897
+ };
898
+
899
+ const getOptionsDiff = (t, n) => {
900
+ const o = {};
901
+ const s = concat(keys(n), keys(t));
902
+ each(s, (s => {
903
+ const e = t[s];
904
+ const c = n[s];
905
+ if (isObject(e) && isObject(c)) {
906
+ assignDeep(o[s] = {}, getOptionsDiff(e, c));
907
+ if (isEmptyObject(o[s])) {
908
+ delete o[s];
909
+ }
910
+ } else if (hasOwnProperty(n, s) && c !== e) {
911
+ let t = true;
912
+ if (isArray(e) || isArray(c)) {
913
+ try {
914
+ if (opsStringify(e) === opsStringify(c)) {
915
+ t = false;
916
+ }
917
+ } catch (r) {}
918
+ }
919
+ if (t) {
920
+ o[s] = c;
921
+ }
922
+ }
923
+ }));
924
+ return o;
925
+ };
926
+
927
+ const createOptionCheck = (t, n, o) => s => [ getPropByPath(t, s), o || getPropByPath(n, s) !== void 0 ];
928
+
929
+ let kt;
930
+
931
+ const getNonce = () => kt;
932
+
933
+ const setNonce = t => {
934
+ kt = t;
935
+ };
936
+
937
+ let Mt;
938
+
939
+ const createEnvironment = () => {
940
+ const getNativeScrollbarSize = (t, n, o) => {
941
+ appendChildren(document.body, t);
942
+ appendChildren(document.body, t);
943
+ const s = A(t);
944
+ const e = I(t);
945
+ const c = getFractionalSize(n);
946
+ if (o) {
947
+ removeElements(t);
948
+ }
949
+ return {
950
+ x: e.h - s.h + c.h,
951
+ y: e.w - s.w + c.w
952
+ };
953
+ };
954
+ const getNativeScrollbarsHiding = t => {
955
+ let n = false;
956
+ const o = addClass(t, P);
957
+ try {
958
+ n = getStyles(t, "scrollbar-width") === "none" || getStyles(t, "display", "::-webkit-scrollbar") === "none";
959
+ } catch (s) {}
960
+ o();
961
+ return n;
962
+ };
963
+ const t = `.${L}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${L} div{width:200%;height:200%;margin:10px 0}.${P}{scrollbar-width:none!important}.${P}::-webkit-scrollbar,.${P}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`;
964
+ const o = createDOM(`<div class="${L}"><div></div><style>${t}</style></div>`);
965
+ const s = o[0];
966
+ const e = s.firstChild;
967
+ const c = s.lastChild;
968
+ const r = getNonce();
969
+ if (r) {
970
+ c.nonce = r;
971
+ }
972
+ const [i, , l] = createEventListenerHub();
973
+ const [a, u] = createCache({
974
+ o: getNativeScrollbarSize(s, e),
975
+ i: equalXY
976
+ }, bind(getNativeScrollbarSize, s, e, true));
977
+ const [f] = u();
978
+ const _ = getNativeScrollbarsHiding(s);
979
+ const d = {
980
+ x: f.x === 0,
981
+ y: f.y === 0
982
+ };
983
+ const v = {
984
+ elements: {
985
+ host: null,
986
+ padding: !_,
987
+ viewport: t => _ && isBodyElement(t) && t,
988
+ content: false
989
+ },
990
+ scrollbars: {
991
+ slot: true
992
+ },
993
+ cancel: {
994
+ nativeScrollbarsOverlaid: false,
995
+ body: null
996
+ }
997
+ };
998
+ const g = assignDeep({}, Tt);
999
+ const h = bind(assignDeep, {}, g);
1000
+ const b = bind(assignDeep, {}, v);
1001
+ const y = {
1002
+ U: f,
1003
+ M: d,
1004
+ P: _,
1005
+ J: !!p,
1006
+ G: bind(i, "r"),
1007
+ K: b,
1008
+ Z: t => assignDeep(v, t) && b(),
1009
+ tt: h,
1010
+ nt: t => assignDeep(g, t) && h(),
1011
+ ot: assignDeep({}, v),
1012
+ st: assignDeep({}, g)
1013
+ };
1014
+ removeAttrs(s, "style");
1015
+ removeElements(s);
1016
+ addEventListener(n, "resize", (() => {
1017
+ l("r", []);
1018
+ }));
1019
+ if (isFunction(n.matchMedia) && !_ && (!d.x || !d.y)) {
1020
+ const addZoomListener = t => {
1021
+ const o = n.matchMedia(`(resolution: ${n.devicePixelRatio}dppx)`);
1022
+ addEventListener(o, "change", (() => {
1023
+ t();
1024
+ addZoomListener(t);
1025
+ }), {
1026
+ A: true
1027
+ });
1028
+ };
1029
+ addZoomListener((() => {
1030
+ const [t, n] = a();
1031
+ assignDeep(y.U, t);
1032
+ l("r", [ n ]);
1033
+ }));
1034
+ }
1035
+ return y;
1036
+ };
1037
+
1038
+ const getEnvironment = () => {
1039
+ if (!Mt) {
1040
+ Mt = createEnvironment();
1041
+ }
1042
+ return Mt;
1043
+ };
1044
+
1045
+ const createEventContentChange = (t, n, o) => {
1046
+ let s = false;
1047
+ const e = o ? new WeakMap : false;
1048
+ const destroy = () => {
1049
+ s = true;
1050
+ };
1051
+ const updateElements = c => {
1052
+ if (e && o) {
1053
+ const r = o.map((n => {
1054
+ const [o, s] = n || [];
1055
+ const e = s && o ? (c || find)(o, t) : [];
1056
+ return [ e, s ];
1057
+ }));
1058
+ each(r, (o => each(o[0], (c => {
1059
+ const r = o[1];
1060
+ const i = e.get(c) || [];
1061
+ const l = t.contains(c);
1062
+ if (l && r) {
1063
+ const t = addEventListener(c, r, (o => {
1064
+ if (s) {
1065
+ t();
1066
+ e.delete(c);
1067
+ } else {
1068
+ n(o);
1069
+ }
1070
+ }));
1071
+ e.set(c, push(i, t));
1072
+ } else {
1073
+ runEachAndClear(i);
1074
+ e.delete(c);
1075
+ }
1076
+ }))));
1077
+ }
1078
+ };
1079
+ updateElements();
1080
+ return [ destroy, updateElements ];
1081
+ };
1082
+
1083
+ const createDOMObserver = (t, n, o, s) => {
1084
+ let e = false;
1085
+ const {et: c, ct: r, rt: i, it: l, lt: a, ut: u} = s || {};
1086
+ const [_, d] = createEventContentChange(t, (() => e && o(true)), i);
1087
+ const p = c || [];
1088
+ const v = r || [];
1089
+ const g = concat(p, v);
1090
+ const observerCallback = (e, c) => {
1091
+ if (!isEmptyArray(c)) {
1092
+ const r = a || noop;
1093
+ const i = u || noop;
1094
+ const f = [];
1095
+ const _ = [];
1096
+ let p = false;
1097
+ let g = false;
1098
+ each(c, (o => {
1099
+ const {attributeName: e, target: c, type: a, oldValue: u, addedNodes: d, removedNodes: h} = o;
1100
+ const b = a === "attributes";
1101
+ const y = a === "childList";
1102
+ const w = t === c;
1103
+ const S = b && e;
1104
+ const m = S && getAttr(c, e || "");
1105
+ const O = isString(m) ? m : null;
1106
+ const C = S && u !== O;
1107
+ const $ = inArray(v, e) && C;
1108
+ if (n && (y || !w)) {
1109
+ const n = b && C;
1110
+ const a = n && l && is(c, l);
1111
+ const _ = a ? !r(c, e, u, O) : !b || n;
1112
+ const p = _ && !i(o, !!a, t, s);
1113
+ each(d, (t => push(f, t)));
1114
+ each(h, (t => push(f, t)));
1115
+ g = g || p;
1116
+ }
1117
+ if (!n && w && C && !r(c, e, u, O)) {
1118
+ push(_, e);
1119
+ p = p || $;
1120
+ }
1121
+ }));
1122
+ d((t => deduplicateArray(f).reduce(((n, o) => {
1123
+ push(n, find(t, o));
1124
+ return is(o, t) ? push(n, o) : n;
1125
+ }), [])));
1126
+ if (n) {
1127
+ if (!e && g) {
1128
+ o(false);
1129
+ }
1130
+ return [ false ];
1131
+ }
1132
+ if (!isEmptyArray(_) || p) {
1133
+ const t = [ deduplicateArray(_), p ];
1134
+ if (!e) {
1135
+ o.apply(0, t);
1136
+ }
1137
+ return t;
1138
+ }
1139
+ }
1140
+ };
1141
+ const h = new f(bind(observerCallback, false));
1142
+ return [ () => {
1143
+ h.observe(t, {
1144
+ attributes: true,
1145
+ attributeOldValue: true,
1146
+ attributeFilter: g,
1147
+ subtree: n,
1148
+ childList: n,
1149
+ characterData: n
1150
+ });
1151
+ e = true;
1152
+ return () => {
1153
+ if (e) {
1154
+ _();
1155
+ h.disconnect();
1156
+ e = false;
1157
+ }
1158
+ };
1159
+ }, () => {
1160
+ if (e) {
1161
+ return observerCallback(true, h.takeRecords());
1162
+ }
1163
+ } ];
1164
+ };
1165
+
1166
+ let Rt = null;
1167
+
1168
+ const createSizeObserver = (t, n, o) => {
1169
+ const {ft: s} = o || {};
1170
+ const e = getStaticPluginModuleInstance(Ct);
1171
+ const [c] = createCache({
1172
+ o: false,
1173
+ u: true
1174
+ });
1175
+ return () => {
1176
+ const o = [];
1177
+ const r = createDOM(`<div class="${nt}"><div class="${st}"></div></div>`);
1178
+ const i = r[0];
1179
+ const l = i.firstChild;
1180
+ const onSizeChangedCallbackProxy = t => {
1181
+ const o = isArray(t) && !isEmptyArray(t);
1182
+ let s = false;
1183
+ let e = false;
1184
+ if (o) {
1185
+ const n = t[0];
1186
+ const [o, , r] = c(n.contentRect);
1187
+ const i = domRectHasDimensions(o);
1188
+ e = domRectAppeared(o, r);
1189
+ s = !e && !i;
1190
+ } else {
1191
+ e = t === true;
1192
+ }
1193
+ if (!s) {
1194
+ n({
1195
+ _t: true,
1196
+ ft: e
1197
+ });
1198
+ }
1199
+ };
1200
+ if (d) {
1201
+ if (!isBoolean(Rt)) {
1202
+ const n = new d(noop);
1203
+ n.observe(t, {
1204
+ get box() {
1205
+ Rt = true;
1206
+ }
1207
+ });
1208
+ Rt = Rt || false;
1209
+ n.disconnect();
1210
+ }
1211
+ const n = debounce(onSizeChangedCallbackProxy, {
1212
+ p: 0,
1213
+ v: 0
1214
+ });
1215
+ const resizeObserverCallback = t => n(t);
1216
+ const s = new d(resizeObserverCallback);
1217
+ s.observe(Rt ? t : l);
1218
+ push(o, [ () => {
1219
+ s.disconnect();
1220
+ }, !Rt && appendChildren(t, i) ]);
1221
+ if (Rt) {
1222
+ const n = new d(resizeObserverCallback);
1223
+ n.observe(t, {
1224
+ box: "border-box"
1225
+ });
1226
+ push(o, (() => n.disconnect()));
1227
+ }
1228
+ } else if (e) {
1229
+ const [n, c] = e(l, onSizeChangedCallbackProxy, s);
1230
+ push(o, concat([ addClass(i, ot), addEventListener(i, "animationstart", n), appendChildren(t, i) ], c));
1231
+ } else {
1232
+ return noop;
1233
+ }
1234
+ return bind(runEachAndClear, o);
1235
+ };
1236
+ };
1237
+
1238
+ const createTrinsicObserver = (t, n) => {
1239
+ let o;
1240
+ const isHeightIntrinsic = t => t.h === 0 || t.isIntersecting || t.intersectionRatio > 0;
1241
+ const s = createDiv(it);
1242
+ const [e] = createCache({
1243
+ o: false
1244
+ });
1245
+ const triggerOnTrinsicChangedCallback = (t, o) => {
1246
+ if (t) {
1247
+ const s = e(isHeightIntrinsic(t));
1248
+ const [, c] = s;
1249
+ return c && !o && n(s) && [ s ];
1250
+ }
1251
+ };
1252
+ const intersectionObserverCallback = (t, n) => triggerOnTrinsicChangedCallback(n.pop(), t);
1253
+ return [ () => {
1254
+ const n = [];
1255
+ if (_) {
1256
+ o = new _(bind(intersectionObserverCallback, false), {
1257
+ root: t
1258
+ });
1259
+ o.observe(s);
1260
+ push(n, (() => {
1261
+ o.disconnect();
1262
+ }));
1263
+ } else {
1264
+ const onSizeChanged = () => {
1265
+ const t = I(s);
1266
+ triggerOnTrinsicChangedCallback(t);
1267
+ };
1268
+ push(n, createSizeObserver(s, onSizeChanged)());
1269
+ onSizeChanged();
1270
+ }
1271
+ return bind(runEachAndClear, push(n, appendChildren(t, s)));
1272
+ }, () => o && intersectionObserverCallback(true, o.takeRecords()) ];
1273
+ };
1274
+
1275
+ const createObserversSetup = (t, n, o, s) => {
1276
+ let e;
1277
+ let c;
1278
+ let r;
1279
+ let i;
1280
+ let l;
1281
+ let a;
1282
+ let u;
1283
+ let f;
1284
+ const _ = `[${B}]`;
1285
+ const p = `[${j}]`;
1286
+ const v = [ "id", "class", "style", "open", "wrap", "cols", "rows" ];
1287
+ const {dt: g, vt: h, L: b, gt: y, ht: w, V: S, bt: m, yt: O, wt: C, St: $} = t;
1288
+ const getDirectionIsRTL = t => getStyles(t, "direction") === "rtl";
1289
+ const createDebouncedObservesUpdate = () => {
1290
+ let t;
1291
+ let n;
1292
+ let o;
1293
+ const e = debounce(s, {
1294
+ p: () => t,
1295
+ v: () => n,
1296
+ S: () => o,
1297
+ m(t, n) {
1298
+ const [o] = t;
1299
+ const [s] = n;
1300
+ return [ concat(keys(o), keys(s)).reduce(((t, n) => {
1301
+ t[n] = o[n] || s[n];
1302
+ return t;
1303
+ }), {}) ];
1304
+ }
1305
+ });
1306
+ const fn = (s, c) => {
1307
+ if (isArray(c)) {
1308
+ const [s, e, r] = c;
1309
+ t = s;
1310
+ n = e;
1311
+ o = r;
1312
+ } else if (isNumber(c)) {
1313
+ t = c;
1314
+ n = false;
1315
+ o = false;
1316
+ } else {
1317
+ t = false;
1318
+ n = false;
1319
+ o = false;
1320
+ }
1321
+ e(s);
1322
+ };
1323
+ fn.O = e.O;
1324
+ return fn;
1325
+ };
1326
+ const x = {
1327
+ Ot: false,
1328
+ B: getDirectionIsRTL(g)
1329
+ };
1330
+ const H = getEnvironment();
1331
+ const E = getStaticPluginModuleInstance(xt);
1332
+ const [D] = createCache({
1333
+ i: equalWH,
1334
+ o: {
1335
+ w: 0,
1336
+ h: 0
1337
+ }
1338
+ }, (() => {
1339
+ const s = E && E.R(t, n, x, H, o).Y;
1340
+ const e = m && S;
1341
+ const c = !e && hasAttrClass(h, B, N);
1342
+ const r = !S && O(W);
1343
+ const i = r && getElementScroll(y);
1344
+ const l = i && $();
1345
+ const a = C(J, c);
1346
+ const u = r && s && s();
1347
+ const f = T(b);
1348
+ const _ = getFractionalSize(b);
1349
+ if (u) {
1350
+ u();
1351
+ }
1352
+ scrollElementTo(y, i);
1353
+ if (l) {
1354
+ l();
1355
+ }
1356
+ if (c) {
1357
+ a();
1358
+ }
1359
+ return {
1360
+ w: f.w + _.w,
1361
+ h: f.h + _.h
1362
+ };
1363
+ }));
1364
+ const z = createDebouncedObservesUpdate();
1365
+ const setDirection = t => {
1366
+ const n = getDirectionIsRTL(g);
1367
+ assignDeep(t, {
1368
+ Ct: f !== n
1369
+ });
1370
+ assignDeep(x, {
1371
+ B: n
1372
+ });
1373
+ f = n;
1374
+ };
1375
+ const onTrinsicChanged = (t, n) => {
1376
+ const [o, e] = t;
1377
+ const c = {
1378
+ $t: e
1379
+ };
1380
+ assignDeep(x, {
1381
+ Ot: o
1382
+ });
1383
+ if (!n) {
1384
+ s(c);
1385
+ }
1386
+ return c;
1387
+ };
1388
+ const onSizeChanged = ({_t: t, ft: n}) => {
1389
+ const o = n ? s : z;
1390
+ const e = {
1391
+ _t: t || n,
1392
+ ft: n
1393
+ };
1394
+ setDirection(e);
1395
+ o(e, c);
1396
+ };
1397
+ const onContentMutation = (t, n) => {
1398
+ const [, o] = D();
1399
+ const s = {
1400
+ xt: o
1401
+ };
1402
+ setDirection(s);
1403
+ if (o && !n) {
1404
+ z(s, t ? r : e);
1405
+ }
1406
+ return s;
1407
+ };
1408
+ const onHostMutation = (t, n, o) => {
1409
+ const s = {
1410
+ Ht: n
1411
+ };
1412
+ setDirection(s);
1413
+ if (n && !o) {
1414
+ z(s, e);
1415
+ }
1416
+ return s;
1417
+ };
1418
+ const [I, A] = w ? createTrinsicObserver(h, onTrinsicChanged) : [];
1419
+ const k = !S && createSizeObserver(h, onSizeChanged, {
1420
+ ft: true
1421
+ });
1422
+ const [M, R] = createDOMObserver(h, false, onHostMutation, {
1423
+ ct: v,
1424
+ et: v
1425
+ });
1426
+ const V = S && d && new d((t => {
1427
+ const n = t[t.length - 1].contentRect;
1428
+ onSizeChanged({
1429
+ _t: true,
1430
+ ft: domRectAppeared(n, u)
1431
+ });
1432
+ u = n;
1433
+ }));
1434
+ return [ () => {
1435
+ if (V) {
1436
+ V.observe(h);
1437
+ }
1438
+ const t = k && k();
1439
+ const n = I && I();
1440
+ const o = M();
1441
+ const s = H.G((t => {
1442
+ const [, n] = D();
1443
+ z({
1444
+ Et: t,
1445
+ xt: n,
1446
+ _t: m
1447
+ }, i);
1448
+ }));
1449
+ return () => {
1450
+ if (V) {
1451
+ V.disconnect();
1452
+ }
1453
+ if (t) {
1454
+ t();
1455
+ }
1456
+ if (n) {
1457
+ n();
1458
+ }
1459
+ if (a) {
1460
+ a();
1461
+ }
1462
+ o();
1463
+ s();
1464
+ };
1465
+ }, ({Dt: t, zt: n, It: o}) => {
1466
+ const s = {};
1467
+ const [u] = t("update.ignoreMutation");
1468
+ const [f, d] = t("update.attributes");
1469
+ const [g, h] = t("update.elementEvents");
1470
+ const [y, m] = t("update.debounce");
1471
+ const O = h || d;
1472
+ const C = n || o;
1473
+ const ignoreMutationFromOptions = t => isFunction(u) && !!u(t);
1474
+ if (O) {
1475
+ if (l) {
1476
+ l();
1477
+ }
1478
+ if (a) {
1479
+ a();
1480
+ }
1481
+ const [t, n] = createDOMObserver(w || b, true, onContentMutation, {
1482
+ et: concat(v, f || []),
1483
+ rt: g,
1484
+ it: _,
1485
+ ut: (t, n) => {
1486
+ const {target: o, attributeName: s} = t;
1487
+ const e = !n && s && !S ? liesBetween(o, _, p) : false;
1488
+ return e || !!closest(o, `.${at}`) || ignoreMutationFromOptions(t);
1489
+ }
1490
+ });
1491
+ a = t();
1492
+ l = n;
1493
+ }
1494
+ if (m) {
1495
+ z.O();
1496
+ if (isArray(y) || isNumber(y)) {
1497
+ e = y;
1498
+ c = false;
1499
+ r = It;
1500
+ i = At;
1501
+ } else if (isPlainObject(y)) {
1502
+ e = y.mutation;
1503
+ c = y.resize;
1504
+ r = y.event;
1505
+ i = y.env;
1506
+ } else {
1507
+ e = false;
1508
+ c = false;
1509
+ r = false;
1510
+ i = false;
1511
+ }
1512
+ }
1513
+ if (C) {
1514
+ const t = R();
1515
+ const n = A && A();
1516
+ const o = l && l();
1517
+ if (t) {
1518
+ assignDeep(s, onHostMutation(t[0], t[1], C));
1519
+ }
1520
+ if (n) {
1521
+ assignDeep(s, onTrinsicChanged(n[0], C));
1522
+ }
1523
+ if (o) {
1524
+ assignDeep(s, onContentMutation(o[0], C));
1525
+ }
1526
+ }
1527
+ setDirection(s);
1528
+ return s;
1529
+ }, x ];
1530
+ };
1531
+
1532
+ const resolveInitialization = (t, n) => isFunction(n) ? n.apply(0, t) : n;
1533
+
1534
+ const staticInitializationElement = (t, n, o, s) => {
1535
+ const e = isUndefined(s) ? o : s;
1536
+ const c = resolveInitialization(t, e);
1537
+ return c || n.apply(0, t);
1538
+ };
1539
+
1540
+ const dynamicInitializationElement = (t, n, o, s) => {
1541
+ const e = isUndefined(s) ? o : s;
1542
+ const c = resolveInitialization(t, e);
1543
+ return !!c && (isHTMLElement(c) ? c : n.apply(0, t));
1544
+ };
1545
+
1546
+ const cancelInitialization = (t, n) => {
1547
+ const {nativeScrollbarsOverlaid: o, body: s} = n || {};
1548
+ const {M: e, P: c, K: r} = getEnvironment();
1549
+ const {nativeScrollbarsOverlaid: i, body: l} = r().cancel;
1550
+ const a = o != null ? o : i;
1551
+ const u = isUndefined(s) ? l : s;
1552
+ const f = (e.x || e.y) && a;
1553
+ const _ = t && (isNull(u) ? !c : u);
1554
+ return !!f || !!_;
1555
+ };
1556
+
1557
+ const createScrollbarsSetupElements = (t, n, o, s) => {
1558
+ const e = "--os-viewport-percent";
1559
+ const c = "--os-scroll-percent";
1560
+ const r = "--os-scroll-direction";
1561
+ const {K: i} = getEnvironment();
1562
+ const {scrollbars: l} = i();
1563
+ const {slot: a} = l;
1564
+ const {dt: u, vt: f, L: _, At: d, gt: v, bt: g, V: h} = n;
1565
+ const {scrollbars: b} = d ? {} : t;
1566
+ const {slot: y} = b || {};
1567
+ const w = [];
1568
+ const S = [];
1569
+ const m = [];
1570
+ const O = dynamicInitializationElement([ u, f, _ ], (() => h && g ? u : f), a, y);
1571
+ const initScrollTimeline = t => {
1572
+ if (p) {
1573
+ let n = null;
1574
+ let s = [];
1575
+ const e = new p({
1576
+ source: v,
1577
+ axis: t
1578
+ });
1579
+ const cancelAnimation = () => {
1580
+ if (n) {
1581
+ n.cancel();
1582
+ }
1583
+ n = null;
1584
+ };
1585
+ const _setScrollPercentAnimation = c => {
1586
+ const {Tt: r} = o;
1587
+ const i = isDefaultDirectionScrollCoordinates(r)[t];
1588
+ const l = t === "x";
1589
+ const a = [ getTrasformTranslateValue(0, l), getTrasformTranslateValue(`calc(-100% + 100cq${l ? "w" : "h"})`, l) ];
1590
+ const u = i ? a : a.reverse();
1591
+ if (s[0] === u[0] && s[1] === u[1]) {
1592
+ return cancelAnimation;
1593
+ }
1594
+ s = u;
1595
+ cancelAnimation();
1596
+ n = c.kt.animate({
1597
+ clear: [ "left" ],
1598
+ transform: u
1599
+ }, {
1600
+ timeline: e
1601
+ });
1602
+ return cancelAnimation;
1603
+ };
1604
+ return {
1605
+ Mt: _setScrollPercentAnimation
1606
+ };
1607
+ }
1608
+ };
1609
+ const C = {
1610
+ x: initScrollTimeline("x"),
1611
+ y: initScrollTimeline("y")
1612
+ };
1613
+ const getViewportPercent = () => {
1614
+ const {Rt: t, Vt: n} = o;
1615
+ const getAxisValue = (t, n) => capNumber(0, 1, t / (t + n) || 0);
1616
+ return {
1617
+ x: getAxisValue(n.x, t.x),
1618
+ y: getAxisValue(n.y, t.y)
1619
+ };
1620
+ };
1621
+ const scrollbarStructureAddRemoveClass = (t, n, o) => {
1622
+ const s = o ? addClass : removeClass;
1623
+ each(t, (t => {
1624
+ s(t.Lt, n);
1625
+ }));
1626
+ };
1627
+ const scrollbarStyle = (t, n) => {
1628
+ each(t, (t => {
1629
+ const [o, s] = n(t);
1630
+ setStyles(o, s);
1631
+ }));
1632
+ };
1633
+ const scrollbarsAddRemoveClass = (t, n, o) => {
1634
+ const s = isBoolean(o);
1635
+ const e = s ? o : true;
1636
+ const c = s ? !o : true;
1637
+ if (e) {
1638
+ scrollbarStructureAddRemoveClass(S, t, n);
1639
+ }
1640
+ if (c) {
1641
+ scrollbarStructureAddRemoveClass(m, t, n);
1642
+ }
1643
+ };
1644
+ const refreshScrollbarsHandleLength = () => {
1645
+ const t = getViewportPercent();
1646
+ const createScrollbarStyleFn = t => n => [ n.Lt, {
1647
+ [e]: roundCssNumber(t) + ""
1648
+ } ];
1649
+ scrollbarStyle(S, createScrollbarStyleFn(t.x));
1650
+ scrollbarStyle(m, createScrollbarStyleFn(t.y));
1651
+ };
1652
+ const refreshScrollbarsHandleOffset = () => {
1653
+ if (!p) {
1654
+ const {Tt: t} = o;
1655
+ const n = getScrollCoordinatesPercent(t, getElementScroll(v));
1656
+ const createScrollbarStyleFn = t => n => [ n.Lt, {
1657
+ [c]: roundCssNumber(t) + ""
1658
+ } ];
1659
+ scrollbarStyle(S, createScrollbarStyleFn(n.x));
1660
+ scrollbarStyle(m, createScrollbarStyleFn(n.y));
1661
+ }
1662
+ };
1663
+ const refreshScrollbarsScrollCoordinates = () => {
1664
+ const {Tt: t} = o;
1665
+ const n = isDefaultDirectionScrollCoordinates(t);
1666
+ const createScrollbarStyleFn = t => n => [ n.Lt, {
1667
+ [r]: t ? "0" : "1"
1668
+ } ];
1669
+ scrollbarStyle(S, createScrollbarStyleFn(n.x));
1670
+ scrollbarStyle(m, createScrollbarStyleFn(n.y));
1671
+ if (p) {
1672
+ S.forEach(C.x.Mt);
1673
+ m.forEach(C.y.Mt);
1674
+ }
1675
+ };
1676
+ const refreshScrollbarsScrollbarOffset = () => {
1677
+ if (h && !g) {
1678
+ const {Rt: t, Tt: n} = o;
1679
+ const s = isDefaultDirectionScrollCoordinates(n);
1680
+ const e = getScrollCoordinatesPercent(n, getElementScroll(v));
1681
+ const styleScrollbarPosition = n => {
1682
+ const {Lt: o} = n;
1683
+ const c = parent(o) === _ && o;
1684
+ const getTranslateValue = (t, n, o) => {
1685
+ const s = n * t;
1686
+ return numberToCssPx(o ? s : -s);
1687
+ };
1688
+ return [ c, c && {
1689
+ transform: getTrasformTranslateValue({
1690
+ x: getTranslateValue(e.x, t.x, s.x),
1691
+ y: getTranslateValue(e.y, t.y, s.y)
1692
+ })
1693
+ } ];
1694
+ };
1695
+ scrollbarStyle(S, styleScrollbarPosition);
1696
+ scrollbarStyle(m, styleScrollbarPosition);
1697
+ }
1698
+ };
1699
+ const generateScrollbarDOM = t => {
1700
+ const n = t ? "x" : "y";
1701
+ const o = t ? ft : _t;
1702
+ const e = createDiv(`${at} ${o}`);
1703
+ const c = createDiv(dt);
1704
+ const r = createDiv(pt);
1705
+ const i = {
1706
+ Lt: e,
1707
+ Pt: c,
1708
+ kt: r
1709
+ };
1710
+ const l = C[n];
1711
+ push(t ? S : m, i);
1712
+ push(w, [ appendChildren(e, c), appendChildren(c, r), bind(removeElements, e), l && l.Mt(i), s(i, scrollbarsAddRemoveClass, t) ]);
1713
+ return i;
1714
+ };
1715
+ const $ = bind(generateScrollbarDOM, true);
1716
+ const x = bind(generateScrollbarDOM, false);
1717
+ const appendElements = () => {
1718
+ appendChildren(O, S[0].Lt);
1719
+ appendChildren(O, m[0].Lt);
1720
+ return bind(runEachAndClear, w);
1721
+ };
1722
+ $();
1723
+ x();
1724
+ return [ {
1725
+ Ut: refreshScrollbarsHandleLength,
1726
+ Nt: refreshScrollbarsHandleOffset,
1727
+ qt: refreshScrollbarsScrollCoordinates,
1728
+ Bt: refreshScrollbarsScrollbarOffset,
1729
+ Ft: scrollbarsAddRemoveClass,
1730
+ jt: {
1731
+ Xt: S,
1732
+ Yt: $,
1733
+ Wt: bind(scrollbarStyle, S)
1734
+ },
1735
+ Jt: {
1736
+ Xt: m,
1737
+ Yt: x,
1738
+ Wt: bind(scrollbarStyle, m)
1739
+ }
1740
+ }, appendElements ];
1741
+ };
1742
+
1743
+ const createScrollbarsSetupEvents = (t, n, o, s, r) => (i, l, u) => {
1744
+ const {vt: f, L: _, V: d, gt: p, Gt: v, St: g} = n;
1745
+ const {Lt: h, Pt: b, kt: y} = i;
1746
+ const [w, S] = selfClearTimeout(333);
1747
+ const [m, O] = selfClearTimeout(444);
1748
+ const scrollOffsetElementScrollBy = t => {
1749
+ if (isFunction(p.scrollBy)) {
1750
+ p.scrollBy({
1751
+ behavior: "smooth",
1752
+ left: t.x,
1753
+ top: t.y
1754
+ });
1755
+ }
1756
+ };
1757
+ const createInteractiveScrollEvents = () => {
1758
+ const n = "pointerup pointercancel lostpointercapture";
1759
+ const r = `client${u ? "X" : "Y"}`;
1760
+ const i = u ? C : $;
1761
+ const l = u ? "left" : "top";
1762
+ const a = u ? "w" : "h";
1763
+ const f = u ? "x" : "y";
1764
+ const _ = [];
1765
+ return addEventListener(b, "pointerdown", s((s => {
1766
+ const d = closest(s.target, `.${pt}`) === y;
1767
+ const h = d ? y : b;
1768
+ const w = t.scrollbars;
1769
+ const S = w[d ? "dragScroll" : "clickScroll"];
1770
+ const {button: C, isPrimary: $, pointerType: x} = s;
1771
+ const {pointers: H} = w;
1772
+ const E = C === 0 && $ && S && (H || []).includes(x);
1773
+ if (E) {
1774
+ runEachAndClear(_);
1775
+ O();
1776
+ const t = !d && (s.shiftKey || S === "instant");
1777
+ const w = bind(getBoundingClientRect, y);
1778
+ const C = bind(getBoundingClientRect, b);
1779
+ const getHandleOffset = (t, n) => (t || w())[l] - (n || C())[l];
1780
+ const $ = e(getBoundingClientRect(p)[i]) / I(p)[a] || 1;
1781
+ const x = getElementScroll(p)[f];
1782
+ const scrollRelative = t => {
1783
+ scrollElementTo(p, {
1784
+ [f]: x + t
1785
+ });
1786
+ };
1787
+ const moveHandleRelative = t => {
1788
+ const {Rt: n} = o;
1789
+ const s = I(b)[a] - I(y)[a];
1790
+ const e = 1 / $ * t / s;
1791
+ scrollRelative(e * n[f]);
1792
+ };
1793
+ const H = s[r];
1794
+ const E = w();
1795
+ const D = C();
1796
+ const z = E[i];
1797
+ const A = getHandleOffset(E, D) + z / 2;
1798
+ const T = H - D[l];
1799
+ const k = T - A;
1800
+ const M = d ? 0 : k;
1801
+ const releasePointerCapture = t => {
1802
+ runEachAndClear(L);
1803
+ h.releasePointerCapture(t.pointerId);
1804
+ };
1805
+ const R = d || t;
1806
+ const V = g();
1807
+ const L = [ addEventListener(v, n, releasePointerCapture), addEventListener(v, "selectstart", (t => preventDefault(t)), {
1808
+ D: false
1809
+ }), addEventListener(b, n, releasePointerCapture), R && addEventListener(b, "pointermove", (t => moveHandleRelative(M + t[r] - H))), R && (() => {
1810
+ const t = getElementScroll(p);
1811
+ V();
1812
+ const n = getElementScroll(p);
1813
+ const o = {
1814
+ x: n.x - t.x,
1815
+ y: n.y - t.y
1816
+ };
1817
+ if (c(o.x) > 3 || c(o.y) > 3) {
1818
+ g();
1819
+ scrollElementTo(p, t);
1820
+ scrollOffsetElementScrollBy(o);
1821
+ m(V);
1822
+ }
1823
+ }) ];
1824
+ h.setPointerCapture(s.pointerId);
1825
+ if (t) {
1826
+ moveHandleRelative(k);
1827
+ } else if (!d) {
1828
+ const t = getStaticPluginModuleInstance(Et);
1829
+ if (t) {
1830
+ const {Vt: n} = o;
1831
+ const s = t(scrollRelative, moveHandleRelative, bind(getHandleOffset), k, n[f], S, !!u, (t => {
1832
+ if (t) {
1833
+ V();
1834
+ } else {
1835
+ push(L, V);
1836
+ }
1837
+ }));
1838
+ push(L, s);
1839
+ push(_, bind(s, true));
1840
+ }
1841
+ }
1842
+ }
1843
+ })));
1844
+ };
1845
+ let x = true;
1846
+ return bind(runEachAndClear, [ addEventListener(y, "pointermove pointerleave", s(r)), addEventListener(h, "pointerenter", s((() => {
1847
+ l(ht, true);
1848
+ }))), addEventListener(h, "pointerleave pointercancel", s((() => {
1849
+ l(ht, false);
1850
+ }))), addEventListener(h, "wheel", s((t => {
1851
+ const {deltaX: n, deltaY: o, deltaMode: s} = t;
1852
+ if (x && s === 0 && parent(h) === f) {
1853
+ scrollOffsetElementScrollBy({
1854
+ x: n,
1855
+ y: o
1856
+ });
1857
+ }
1858
+ x = false;
1859
+ l(St, true);
1860
+ w((() => {
1861
+ x = true;
1862
+ l(St);
1863
+ }));
1864
+ preventDefault(t);
1865
+ })), {
1866
+ D: false,
1867
+ I: true
1868
+ }), !d && addEventListener(h, "mousedown", s((() => {
1869
+ const t = getFocusedElement();
1870
+ if (hasAttr(t, j) || hasAttr(t, B) || t === document.body) {
1871
+ a(bind(focusElement, _), 25);
1872
+ }
1873
+ }))), addEventListener(h, "pointerdown", (() => {
1874
+ const t = addEventListener(v, "click", (t => {
1875
+ n();
1876
+ stopAndPrevent(t);
1877
+ }), {
1878
+ A: true,
1879
+ I: true,
1880
+ D: false
1881
+ });
1882
+ const n = addEventListener(v, "pointerup pointercancel", (() => {
1883
+ n();
1884
+ setTimeout(t, 150);
1885
+ }), {
1886
+ I: true,
1887
+ D: true
1888
+ });
1889
+ }), {
1890
+ I: true,
1891
+ D: true
1892
+ }), createInteractiveScrollEvents(), S, O ]);
1893
+ };
1894
+
1895
+ const createScrollbarsSetup = (t, n, o, s, e, c, r) => {
1896
+ let i;
1897
+ let l;
1898
+ let a;
1899
+ let u;
1900
+ let f;
1901
+ let _ = noop;
1902
+ let d = 0;
1903
+ const p = [ "mouse", "pen" ];
1904
+ const skipEventIfSleeping = t => n => {
1905
+ if (!o.Kt) {
1906
+ t(n);
1907
+ }
1908
+ };
1909
+ const isHoverablePointerType = t => p.includes(t.pointerType);
1910
+ const [v, g] = selfClearTimeout();
1911
+ const [h, b] = selfClearTimeout(100);
1912
+ const [y, w] = selfClearTimeout(50);
1913
+ const [S, m] = selfClearTimeout((() => d));
1914
+ const [O, C] = createScrollbarsSetupElements(t, c, e, createScrollbarsSetupEvents(n, c, e, skipEventIfSleeping, (t => isHoverablePointerType(t) && manageScrollbarsAutoHideInstantInteraction())));
1915
+ const {vt: $, Qt: H, bt: D} = c;
1916
+ const {Ft: z, Ut: I, Nt: A, qt: T, Bt: k} = O;
1917
+ const manageScrollbarsAutoHide = (t, n) => {
1918
+ m();
1919
+ const hide = t => {
1920
+ if (o.Kt) {
1921
+ return;
1922
+ }
1923
+ z(wt, t);
1924
+ };
1925
+ if (t) {
1926
+ hide();
1927
+ } else {
1928
+ const t = a ? !i : true;
1929
+ if (d > 0 && !n) {
1930
+ S(bind(hide, t));
1931
+ } else {
1932
+ hide(t);
1933
+ }
1934
+ }
1935
+ };
1936
+ const manageScrollbarsAutoHideInstantInteraction = () => {
1937
+ if (a ? !i : !u) {
1938
+ manageScrollbarsAutoHide(true);
1939
+ h((() => {
1940
+ manageScrollbarsAutoHide(false);
1941
+ }));
1942
+ }
1943
+ };
1944
+ const onHostMouseEnter = t => {
1945
+ if (isHoverablePointerType(t)) {
1946
+ i = true;
1947
+ if (!o.Kt && a) {
1948
+ manageScrollbarsAutoHide(true);
1949
+ }
1950
+ }
1951
+ };
1952
+ const onHostMouseLeave = t => {
1953
+ if (isHoverablePointerType(t)) {
1954
+ i = false;
1955
+ if (!o.Kt && a) {
1956
+ manageScrollbarsAutoHide(false);
1957
+ }
1958
+ }
1959
+ };
1960
+ const manageAutoHideSuspension = t => {
1961
+ z(yt, t, true);
1962
+ z(yt, t, false);
1963
+ };
1964
+ const M = [ m, b, w, g, () => _(), addEventListener($, "pointerover", onHostMouseEnter, {
1965
+ A: true
1966
+ }), addEventListener($, "pointerenter", onHostMouseEnter), addEventListener($, "pointerleave", onHostMouseLeave), addEventListener($, "pointermove", skipEventIfSleeping((t => {
1967
+ if (isHoverablePointerType(t) && l) {
1968
+ manageScrollbarsAutoHideInstantInteraction();
1969
+ }
1970
+ }))), addEventListener(H, "scroll", skipEventIfSleeping((t => {
1971
+ v((() => {
1972
+ A();
1973
+ manageScrollbarsAutoHideInstantInteraction();
1974
+ }));
1975
+ r(t);
1976
+ k();
1977
+ }))) ];
1978
+ const R = getStaticPluginModuleInstance(xt);
1979
+ return [ () => bind(runEachAndClear, push(M, C())), ({Dt: t, It: n, Zt: o, tn: c}) => {
1980
+ const {nn: r, sn: i, en: p, cn: v} = c || {};
1981
+ const {Ct: g, ft: h} = o || {};
1982
+ const {B: b} = s;
1983
+ const {M: w, P: S} = getEnvironment();
1984
+ const {rn: m, j: O} = e;
1985
+ const [C, $] = t("showNativeOverlaidScrollbars");
1986
+ const [M, V] = t("scrollbars.theme");
1987
+ const [L, P] = t("scrollbars.visibility");
1988
+ const [U, N] = t("scrollbars.autoHide");
1989
+ const [q, B] = t("scrollbars.autoHideSuspend");
1990
+ const [F] = t("scrollbars.autoHideDelay");
1991
+ const [j, X] = t("scrollbars.dragScroll");
1992
+ const [Y, W] = t("scrollbars.clickScroll");
1993
+ const [J, G] = t("overflow");
1994
+ const K = h && !n;
1995
+ const Q = r || i || v || g || n;
1996
+ const Z = p || P || G;
1997
+ const tt = C && w.x && w.y;
1998
+ const nt = !S && !R;
1999
+ const ot = tt || nt;
2000
+ const setScrollbarVisibility = (t, n, o) => {
2001
+ const s = t.includes(E) && (L === x || L === "auto" && n === E);
2002
+ z(vt, s, o);
2003
+ return s;
2004
+ };
2005
+ d = F;
2006
+ if ($ || nt) {
2007
+ z(lt, ot);
2008
+ }
2009
+ if (V) {
2010
+ z(f);
2011
+ z(M, true);
2012
+ f = M;
2013
+ }
2014
+ if (B || K) {
2015
+ manageAutoHideSuspension(!q);
2016
+ if (K && q) {
2017
+ if (O.x || O.y) {
2018
+ _();
2019
+ y((() => {
2020
+ _ = addEventListener(H, E, skipEventIfSleeping(bind(manageAutoHideSuspension, true)), {
2021
+ A: true
2022
+ });
2023
+ }));
2024
+ } else {
2025
+ manageAutoHideSuspension(true);
2026
+ }
2027
+ }
2028
+ }
2029
+ if (N) {
2030
+ l = U === "move";
2031
+ a = U === "leave";
2032
+ u = U === "never";
2033
+ manageScrollbarsAutoHide(u, true);
2034
+ }
2035
+ if (X) {
2036
+ z(Ot, j);
2037
+ }
2038
+ if (W) {
2039
+ z(mt, !!Y);
2040
+ }
2041
+ if (Z) {
2042
+ const t = setScrollbarVisibility(J.x, m.x, true);
2043
+ const n = setScrollbarVisibility(J.y, m.y, false);
2044
+ const o = t && n;
2045
+ z(gt, !o);
2046
+ }
2047
+ if (Q) {
2048
+ A();
2049
+ I();
2050
+ k();
2051
+ if (v) {
2052
+ T();
2053
+ }
2054
+ z(bt, !O.x, true);
2055
+ z(bt, !O.y, false);
2056
+ z(ut, b && !D);
2057
+ }
2058
+ }, {}, O ];
2059
+ };
2060
+
2061
+ const createStructureSetupElements = t => {
2062
+ const o = getEnvironment();
2063
+ const {K: s, P: e} = o;
2064
+ const {elements: c} = s();
2065
+ const {padding: r, viewport: i, content: l} = c;
2066
+ const a = isHTMLElement(t);
2067
+ const u = a ? {} : t;
2068
+ const {elements: f} = u;
2069
+ const {padding: _, viewport: d, content: p} = f || {};
2070
+ const v = a ? t : u.target;
2071
+ const g = isBodyElement(v);
2072
+ const h = v.ownerDocument;
2073
+ const b = h.documentElement;
2074
+ const getDocumentWindow = () => h.defaultView || n;
2075
+ const y = bind(staticInitializationElement, [ v ]);
2076
+ const w = bind(dynamicInitializationElement, [ v ]);
2077
+ const S = bind(createDiv, "");
2078
+ const C = bind(y, S, i);
2079
+ const $ = bind(w, S, l);
2080
+ const elementHasOverflow = t => {
2081
+ const n = I(t);
2082
+ const o = T(t);
2083
+ const s = getStyles(t, m);
2084
+ const e = getStyles(t, O);
2085
+ return o.w - n.w > 0 && !overflowIsVisible(s) || o.h - n.h > 0 && !overflowIsVisible(e);
2086
+ };
2087
+ const x = C(d);
2088
+ const H = x === v;
2089
+ const E = H && g;
2090
+ const D = !H && $(p);
2091
+ const z = !H && x === D;
2092
+ const A = E ? b : x;
2093
+ const k = E ? A : v;
2094
+ const M = !H && w(S, r, _);
2095
+ const R = !z && D;
2096
+ const V = [ R, A, M, k ].map((t => isHTMLElement(t) && !parent(t) && t));
2097
+ const elementIsGenerated = t => t && inArray(V, t);
2098
+ const L = !elementIsGenerated(A) && elementHasOverflow(A) ? A : v;
2099
+ const P = E ? b : A;
2100
+ const N = E ? h : A;
2101
+ const X = {
2102
+ dt: v,
2103
+ vt: k,
2104
+ L: A,
2105
+ ln: M,
2106
+ ht: R,
2107
+ gt: P,
2108
+ Qt: N,
2109
+ an: g ? b : L,
2110
+ Gt: h,
2111
+ bt: g,
2112
+ At: a,
2113
+ V: H,
2114
+ un: getDocumentWindow,
2115
+ yt: t => hasAttrClass(A, j, t),
2116
+ wt: (t, n) => addRemoveAttrClass(A, j, t, n),
2117
+ St: () => addRemoveAttrClass(P, j, G, true)
2118
+ };
2119
+ const {dt: Y, vt: W, ln: J, L: Q, ht: nt} = X;
2120
+ const ot = [ () => {
2121
+ removeAttrs(W, [ B, U ]);
2122
+ removeAttrs(Y, U);
2123
+ if (g) {
2124
+ removeAttrs(b, [ U, B ]);
2125
+ }
2126
+ } ];
2127
+ let st = contents([ nt, Q, J, W, Y ].find((t => t && !elementIsGenerated(t))));
2128
+ const et = E ? Y : nt || Q;
2129
+ const ct = bind(runEachAndClear, ot);
2130
+ const appendElements = () => {
2131
+ const t = getDocumentWindow();
2132
+ const n = getFocusedElement();
2133
+ const unwrap = t => {
2134
+ appendChildren(parent(t), contents(t));
2135
+ removeElements(t);
2136
+ };
2137
+ const prepareWrapUnwrapFocus = t => addEventListener(t, "focusin focusout focus blur", stopAndPrevent, {
2138
+ I: true,
2139
+ D: false
2140
+ });
2141
+ const o = "tabindex";
2142
+ const s = getAttr(Q, o);
2143
+ const c = prepareWrapUnwrapFocus(n);
2144
+ setAttrs(W, B, H ? "" : F);
2145
+ setAttrs(J, Z, "");
2146
+ setAttrs(Q, j, "");
2147
+ setAttrs(nt, tt, "");
2148
+ if (!H) {
2149
+ setAttrs(Q, o, s || "-1");
2150
+ if (g) {
2151
+ setAttrs(b, q, "");
2152
+ }
2153
+ }
2154
+ appendChildren(et, st);
2155
+ appendChildren(W, J);
2156
+ appendChildren(J || W, !H && Q);
2157
+ appendChildren(Q, nt);
2158
+ push(ot, [ c, () => {
2159
+ const t = getFocusedElement();
2160
+ const n = elementIsGenerated(Q);
2161
+ const e = n && t === Q ? Y : t;
2162
+ const c = prepareWrapUnwrapFocus(e);
2163
+ removeAttrs(J, Z);
2164
+ removeAttrs(nt, tt);
2165
+ removeAttrs(Q, j);
2166
+ if (g) {
2167
+ removeAttrs(b, q);
2168
+ }
2169
+ if (s) {
2170
+ setAttrs(Q, o, s);
2171
+ } else {
2172
+ removeAttrs(Q, o);
2173
+ }
2174
+ if (elementIsGenerated(nt)) {
2175
+ unwrap(nt);
2176
+ }
2177
+ if (n) {
2178
+ unwrap(Q);
2179
+ }
2180
+ if (elementIsGenerated(J)) {
2181
+ unwrap(J);
2182
+ }
2183
+ focusElement(e);
2184
+ c();
2185
+ } ]);
2186
+ if (e && !H) {
2187
+ addAttrClass(Q, j, K);
2188
+ push(ot, bind(removeAttrs, Q, j));
2189
+ }
2190
+ focusElement(!H && g && n === Y && t.top === t ? Q : n);
2191
+ c();
2192
+ st = 0;
2193
+ return ct;
2194
+ };
2195
+ return [ X, appendElements, ct ];
2196
+ };
2197
+
2198
+ const createTrinsicUpdateSegment = ({ht: t}) => ({Zt: n, fn: o, It: s}) => {
2199
+ const {$t: e} = n || {};
2200
+ const {Ot: c} = o;
2201
+ const r = t && (e || s);
2202
+ if (r) {
2203
+ setStyles(t, {
2204
+ [$]: c && "100%"
2205
+ });
2206
+ }
2207
+ };
2208
+
2209
+ const createPaddingUpdateSegment = ({vt: t, ln: n, L: o, V: s}, e) => {
2210
+ const [c, r] = createCache({
2211
+ i: equalTRBL,
2212
+ o: topRightBottomLeft()
2213
+ }, bind(topRightBottomLeft, t, "padding", ""));
2214
+ return ({Dt: t, Zt: i, fn: l, It: a}) => {
2215
+ let [u, f] = r(a);
2216
+ const {P: _} = getEnvironment();
2217
+ const {_t: d, xt: p, Ct: m} = i || {};
2218
+ const {B: O} = l;
2219
+ const [$, x] = t("paddingAbsolute");
2220
+ const H = a || p;
2221
+ if (d || f || H) {
2222
+ [u, f] = c(a);
2223
+ }
2224
+ const E = !s && (x || m || f);
2225
+ if (E) {
2226
+ const t = !$ || !n && !_;
2227
+ const s = u.r + u.l;
2228
+ const c = u.t + u.b;
2229
+ const r = {
2230
+ [w]: t && !O ? -s : 0,
2231
+ [S]: t ? -c : 0,
2232
+ [y]: t && O ? -s : 0,
2233
+ top: t ? -u.t : 0,
2234
+ right: t ? O ? -u.r : "auto" : 0,
2235
+ left: t ? O ? "auto" : -u.l : 0,
2236
+ [C]: t && `calc(100% + ${s}px)`
2237
+ };
2238
+ const i = {
2239
+ [v]: t ? u.t : 0,
2240
+ [g]: t ? u.r : 0,
2241
+ [b]: t ? u.b : 0,
2242
+ [h]: t ? u.l : 0
2243
+ };
2244
+ setStyles(n || o, r);
2245
+ setStyles(o, i);
2246
+ assignDeep(e, {
2247
+ ln: u,
2248
+ _n: !t,
2249
+ F: n ? i : assignDeep({}, r, i)
2250
+ });
2251
+ }
2252
+ return {
2253
+ dn: E
2254
+ };
2255
+ };
2256
+ };
2257
+
2258
+ const createOverflowUpdateSegment = (t, s) => {
2259
+ const e = getEnvironment();
2260
+ const {vt: r, ln: i, L: a, V: u, Qt: f, gt: _, bt: d, wt: p, un: v} = t;
2261
+ const {P: g} = e;
2262
+ const h = d && u;
2263
+ const b = bind(o, 0);
2264
+ const y = {
2265
+ display: () => false,
2266
+ direction: t => t !== "ltr",
2267
+ flexDirection: t => t.endsWith("-reverse"),
2268
+ writingMode: t => t !== "horizontal-tb"
2269
+ };
2270
+ const w = keys(y);
2271
+ const S = {
2272
+ i: equalWH,
2273
+ o: {
2274
+ w: 0,
2275
+ h: 0
2276
+ }
2277
+ };
2278
+ const m = {
2279
+ i: equalXY,
2280
+ o: {}
2281
+ };
2282
+ const setMeasuringMode = t => {
2283
+ p(J, !h && t);
2284
+ };
2285
+ const getFlowDirectionStyles = () => getStyles(a, w);
2286
+ const getMeasuredScrollCoordinates = (t, n) => {
2287
+ const o = !keys(t).length;
2288
+ const s = n ? true : w.some((n => {
2289
+ const o = t[n];
2290
+ return isString(o) && y[n](o);
2291
+ }));
2292
+ if (o || !s || !hasDimensions(a)) {
2293
+ return {
2294
+ T: {
2295
+ x: 0,
2296
+ y: 0
2297
+ },
2298
+ k: {
2299
+ x: 1,
2300
+ y: 1
2301
+ }
2302
+ };
2303
+ }
2304
+ setMeasuringMode(true);
2305
+ const e = getElementScroll(_);
2306
+ const r = addEventListener(f, E, (t => {
2307
+ const n = getElementScroll(_);
2308
+ if (t.isTrusted && n.x === e.x && n.y === e.y) {
2309
+ stopPropagation(t);
2310
+ }
2311
+ }), {
2312
+ I: true,
2313
+ A: true
2314
+ });
2315
+ const i = p(Q, true);
2316
+ scrollElementTo(_, {
2317
+ x: 0,
2318
+ y: 0
2319
+ });
2320
+ i();
2321
+ const u = getElementScroll(_);
2322
+ const d = T(_);
2323
+ scrollElementTo(_, {
2324
+ x: d.w,
2325
+ y: d.h
2326
+ });
2327
+ const v = getElementScroll(_);
2328
+ const g = {
2329
+ x: v.x - u.x,
2330
+ y: v.y - u.y
2331
+ };
2332
+ scrollElementTo(_, {
2333
+ x: -d.w,
2334
+ y: -d.h
2335
+ });
2336
+ const h = getElementScroll(_);
2337
+ const b = {
2338
+ x: h.x - u.x,
2339
+ y: h.y - u.y
2340
+ };
2341
+ const S = {
2342
+ x: c(g.x) >= c(b.x) ? v.x : h.x,
2343
+ y: c(g.y) >= c(b.y) ? v.y : h.y
2344
+ };
2345
+ scrollElementTo(_, e);
2346
+ l((() => r()));
2347
+ return {
2348
+ T: u,
2349
+ k: S
2350
+ };
2351
+ };
2352
+ const getOverflowAmount = (t, o) => {
2353
+ const s = n.devicePixelRatio % 1 !== 0 ? 1 : 0;
2354
+ const e = {
2355
+ w: b(t.w - o.w),
2356
+ h: b(t.h - o.h)
2357
+ };
2358
+ return {
2359
+ w: e.w > s ? e.w : 0,
2360
+ h: e.h > s ? e.h : 0
2361
+ };
2362
+ };
2363
+ const getViewportOverflowStyle = (t, n) => {
2364
+ const getAxisOverflowStyle = (t, n, o, s) => {
2365
+ const e = t === x ? H : overflowBehaviorToOverflowStyle(t);
2366
+ const c = overflowIsVisible(t);
2367
+ const r = overflowIsVisible(o);
2368
+ if (!n && !s) {
2369
+ return H;
2370
+ }
2371
+ if (c && r) {
2372
+ return x;
2373
+ }
2374
+ if (c) {
2375
+ const t = n ? x : H;
2376
+ return n && s ? e : t;
2377
+ }
2378
+ const i = r && s ? x : H;
2379
+ return n ? e : i;
2380
+ };
2381
+ return {
2382
+ x: getAxisOverflowStyle(n.x, t.x, n.y, t.y),
2383
+ y: getAxisOverflowStyle(n.y, t.y, n.x, t.x)
2384
+ };
2385
+ };
2386
+ const setViewportOverflowStyle = t => {
2387
+ const createAllOverflowStyleClassNames = t => [ x, H, E ].map((n => createViewportOverflowStyleClassName(overflowCssValueToOverflowStyle(n), t)));
2388
+ const n = createAllOverflowStyleClassNames(true).concat(createAllOverflowStyleClassNames()).join(" ");
2389
+ p(n);
2390
+ p(keys(t).map((n => createViewportOverflowStyleClassName(t[n], n === "x"))).join(" "), true);
2391
+ };
2392
+ const [O, C] = createCache(S, bind(getFractionalSize, a));
2393
+ const [$, D] = createCache(S, bind(T, a));
2394
+ const [z, I] = createCache(S);
2395
+ const [k] = createCache(m);
2396
+ const [M, R] = createCache(S);
2397
+ const [V] = createCache(m);
2398
+ const [L] = createCache({
2399
+ i: (t, n) => equal(t, n, deduplicateArray(concat(keys(t), keys(n)))),
2400
+ o: {}
2401
+ });
2402
+ const [P, U] = createCache({
2403
+ i: (t, n) => equalXY(t.T, n.T) && equalXY(t.k, n.k),
2404
+ o: getZeroScrollCoordinates()
2405
+ });
2406
+ const q = getStaticPluginModuleInstance(xt);
2407
+ const createViewportOverflowStyleClassName = (t, n) => {
2408
+ const o = n ? X : Y;
2409
+ return `${o}${capitalizeFirstLetter(t)}`;
2410
+ };
2411
+ return ({Dt: n, Zt: o, fn: c, It: l}, {dn: u}) => {
2412
+ const {_t: f, Ht: _, xt: d, Ct: y, ft: w, Et: S} = o || {};
2413
+ const m = q && q.R(t, s, c, e, n);
2414
+ const {X: x, Y: H, W: E} = m || {};
2415
+ const [T, F] = getShowNativeOverlaidScrollbars(n, e);
2416
+ const [j, X] = n("overflow");
2417
+ const Y = overflowIsVisible(j.x);
2418
+ const W = overflowIsVisible(j.y);
2419
+ const J = f || u || d || y || S || F;
2420
+ let G = C(l);
2421
+ let Q = D(l);
2422
+ let tt = I(l);
2423
+ let nt = R(l);
2424
+ if (F && g) {
2425
+ p(K, !T);
2426
+ }
2427
+ if (J) {
2428
+ if (hasAttrClass(r, B, N)) {
2429
+ setMeasuringMode(true);
2430
+ }
2431
+ const t = H && H();
2432
+ const [n] = G = O(l);
2433
+ const [o] = Q = $(l);
2434
+ const s = A(a);
2435
+ const e = h && getWindowSize(v());
2436
+ const c = {
2437
+ w: b(o.w + n.w),
2438
+ h: b(o.h + n.h)
2439
+ };
2440
+ const i = {
2441
+ w: b((e ? e.w : s.w + b(s.w - o.w)) + n.w),
2442
+ h: b((e ? e.h : s.h + b(s.h - o.h)) + n.h)
2443
+ };
2444
+ if (t) {
2445
+ t();
2446
+ }
2447
+ nt = M(i);
2448
+ tt = z(getOverflowAmount(c, i), l);
2449
+ }
2450
+ const [ot, st] = nt;
2451
+ const [et, ct] = tt;
2452
+ const [rt, it] = Q;
2453
+ const [lt, at] = G;
2454
+ const [ut] = k({
2455
+ x: et.w > 0,
2456
+ y: et.h > 0
2457
+ });
2458
+ const ft = Y && W && (ut.x || ut.y) || Y && ut.x && !ut.y || W && ut.y && !ut.x;
2459
+ const _t = u || y || S || at || it || st || ct || X || F || J || _ && h;
2460
+ const [dt] = n("update.flowDirectionStyles");
2461
+ const [pt, vt] = L(dt ? dt(a) || {} : getFlowDirectionStyles(), l);
2462
+ const gt = y || w || vt || l;
2463
+ const [ht, bt] = gt ? P(getMeasuredScrollCoordinates(pt, !!dt), l) : U();
2464
+ let yt = getViewportOverflowStyle(ut, j);
2465
+ setMeasuringMode(false);
2466
+ if (_t) {
2467
+ setViewportOverflowStyle(yt);
2468
+ yt = getElementOverflowStyle(a, ut);
2469
+ if (E && x) {
2470
+ x(yt, rt, lt);
2471
+ setStyles(a, E(yt));
2472
+ }
2473
+ }
2474
+ const [wt, St] = V(yt);
2475
+ addRemoveAttrClass(r, B, N, ft);
2476
+ addRemoveAttrClass(i, Z, N, ft);
2477
+ assignDeep(s, {
2478
+ rn: wt,
2479
+ Vt: {
2480
+ x: ot.w,
2481
+ y: ot.h
2482
+ },
2483
+ Rt: {
2484
+ x: et.w,
2485
+ y: et.h
2486
+ },
2487
+ j: ut,
2488
+ Tt: sanitizeScrollCoordinates(ht, et)
2489
+ });
2490
+ return {
2491
+ en: St,
2492
+ nn: st,
2493
+ sn: ct,
2494
+ cn: bt || ct
2495
+ };
2496
+ };
2497
+ };
2498
+
2499
+ const createStructureSetup = t => {
2500
+ const [n, o, s] = createStructureSetupElements(t);
2501
+ const e = {
2502
+ ln: {
2503
+ t: 0,
2504
+ r: 0,
2505
+ b: 0,
2506
+ l: 0
2507
+ },
2508
+ _n: false,
2509
+ F: {
2510
+ [w]: 0,
2511
+ [S]: 0,
2512
+ [y]: 0,
2513
+ [v]: 0,
2514
+ [g]: 0,
2515
+ [b]: 0,
2516
+ [h]: 0
2517
+ },
2518
+ Vt: {
2519
+ x: 0,
2520
+ y: 0
2521
+ },
2522
+ Rt: {
2523
+ x: 0,
2524
+ y: 0
2525
+ },
2526
+ rn: {
2527
+ x: H,
2528
+ y: H
2529
+ },
2530
+ j: {
2531
+ x: false,
2532
+ y: false
2533
+ },
2534
+ Tt: getZeroScrollCoordinates()
2535
+ };
2536
+ const {dt: c, gt: r, V: i, St: l} = n;
2537
+ const {P: a, M: u} = getEnvironment();
2538
+ const f = !a && (u.x || u.y);
2539
+ const _ = [ createTrinsicUpdateSegment(n), createPaddingUpdateSegment(n, e), createOverflowUpdateSegment(n, e) ];
2540
+ return [ o, t => {
2541
+ const n = {};
2542
+ const o = f;
2543
+ const s = o && getElementScroll(r);
2544
+ const e = s && l();
2545
+ each(_, (o => {
2546
+ assignDeep(n, o(t, n) || {});
2547
+ }));
2548
+ scrollElementTo(r, s);
2549
+ if (e) {
2550
+ e();
2551
+ }
2552
+ if (!i) {
2553
+ scrollElementTo(c, 0);
2554
+ }
2555
+ return n;
2556
+ }, e, n, s ];
2557
+ };
2558
+
2559
+ const createSetups = (t, n, o, s) => {
2560
+ let e = false;
2561
+ const c = {
2562
+ Kt: false,
2563
+ pn: false
2564
+ };
2565
+ const r = createOptionCheck(n, {});
2566
+ const [i, l, a, u, f] = createStructureSetup(t);
2567
+ const [_, d, p] = createObserversSetup(u, a, r, (t => {
2568
+ update({}, t);
2569
+ }));
2570
+ const [v, g, , h] = createScrollbarsSetup(t, n, c, p, a, u, s);
2571
+ const updateHintsAreTruthy = t => keys(t).some((n => !!t[n]));
2572
+ const update = (t, s) => {
2573
+ const {Kt: r, pn: i} = c;
2574
+ if (i || r && e) {
2575
+ return false;
2576
+ }
2577
+ const {vn: a, It: u, zt: f} = t;
2578
+ const _ = a || {};
2579
+ const v = !!u || !e;
2580
+ const h = {
2581
+ Dt: createOptionCheck(n, _, v),
2582
+ vn: _,
2583
+ It: v
2584
+ };
2585
+ const b = s || d(assignDeep({}, h, {
2586
+ zt: f
2587
+ }));
2588
+ const y = l(assignDeep({}, h, {
2589
+ fn: p,
2590
+ Zt: b
2591
+ }));
2592
+ g(assignDeep({}, h, {
2593
+ Zt: b,
2594
+ tn: y
2595
+ }));
2596
+ const w = updateHintsAreTruthy(b);
2597
+ const S = updateHintsAreTruthy(y);
2598
+ const m = w || S || !isEmptyObject(_) || v;
2599
+ e = true;
2600
+ if (m) {
2601
+ o(t, {
2602
+ Zt: b,
2603
+ tn: y
2604
+ });
2605
+ }
2606
+ return m;
2607
+ };
2608
+ return [ () => {
2609
+ const {an: t, gt: n, St: o} = u;
2610
+ const s = getElementScroll(t);
2611
+ const e = [ _(), i(), v(), () => {
2612
+ c.pn = true;
2613
+ } ];
2614
+ const r = o();
2615
+ scrollElementTo(n, s);
2616
+ r();
2617
+ return bind(runEachAndClear, e);
2618
+ }, update, t => {
2619
+ const n = c.Kt;
2620
+ c.Kt = t;
2621
+ if (!t && n !== t) {
2622
+ update({
2623
+ It: true,
2624
+ zt: true
2625
+ });
2626
+ }
2627
+ }, () => {
2628
+ g({
2629
+ Dt: createOptionCheck(n, {}, false),
2630
+ vn: {},
2631
+ It: false
2632
+ });
2633
+ }, () => ({
2634
+ gn: c,
2635
+ hn: p,
2636
+ bn: a
2637
+ }), {
2638
+ yn: u,
2639
+ wn: h
2640
+ }, f ];
2641
+ };
2642
+
2643
+ const Vt = new WeakMap;
2644
+
2645
+ const addInstance = (t, n) => {
2646
+ Vt.set(t, n);
2647
+ };
2648
+
2649
+ const removeInstance = t => {
2650
+ Vt.delete(t);
2651
+ };
2652
+
2653
+ const getInstance = t => Vt.get(t);
2654
+
2655
+ const OverlayScrollbars = (t, n, o) => {
2656
+ const {tt: s} = getEnvironment();
2657
+ const e = isHTMLElement(t);
2658
+ const c = e ? t : t.target;
2659
+ const r = getInstance(c);
2660
+ if (n && !r) {
2661
+ const r = [];
2662
+ const i = {};
2663
+ const validateOptions = t => {
2664
+ const n = removeUndefinedProperties(t);
2665
+ const o = getStaticPluginModuleInstance(R);
2666
+ return o ? o(n, true) : n;
2667
+ };
2668
+ const l = assignDeep({}, s(), validateOptions(n));
2669
+ const [a, u, f] = createEventListenerHub();
2670
+ const [_, d, p] = createEventListenerHub(o);
2671
+ const triggerEvent = (t, n) => {
2672
+ p(t, n);
2673
+ f(t, n);
2674
+ };
2675
+ const [v, g, h, b, y, w, S] = createSetups(t, l, (({vn: t, It: n}, {Zt: o, tn: s}) => {
2676
+ const {_t: e, Ct: c, $t: r, xt: i, Ht: l, ft: a} = o;
2677
+ const {nn: u, sn: f, en: _, cn: d} = s;
2678
+ triggerEvent("updated", [ m, {
2679
+ updateHints: {
2680
+ sizeChanged: !!e,
2681
+ directionChanged: !!c,
2682
+ heightIntrinsicChanged: !!r,
2683
+ overflowEdgeChanged: !!u,
2684
+ overflowAmountChanged: !!f,
2685
+ overflowStyleChanged: !!_,
2686
+ scrollCoordinatesChanged: !!d,
2687
+ contentMutation: !!i,
2688
+ hostMutation: !!l,
2689
+ appear: !!a
2690
+ },
2691
+ changedOptions: t || {},
2692
+ force: !!n
2693
+ } ]);
2694
+ }), (t => triggerEvent("scroll", [ m, t ])));
2695
+ const destroy = t => {
2696
+ const {gn: n} = y();
2697
+ const {pn: o} = n;
2698
+ if (o) {
2699
+ return;
2700
+ }
2701
+ removeInstance(c);
2702
+ runEachAndClear(r);
2703
+ triggerEvent("destroyed", [ m, t ]);
2704
+ u();
2705
+ d();
2706
+ };
2707
+ const update = t => g({
2708
+ It: t,
2709
+ zt: true
2710
+ });
2711
+ const m = {
2712
+ options(t, n) {
2713
+ if (t) {
2714
+ const o = n ? s() : {};
2715
+ const e = getOptionsDiff(l, assignDeep(o, validateOptions(t)));
2716
+ if (!isEmptyObject(e)) {
2717
+ assignDeep(l, e);
2718
+ g({
2719
+ vn: e
2720
+ });
2721
+ }
2722
+ }
2723
+ return assignDeep({}, l);
2724
+ },
2725
+ on: _,
2726
+ off: (t, n) => {
2727
+ if (t && n) {
2728
+ d(t, n);
2729
+ }
2730
+ },
2731
+ state() {
2732
+ const {gn: t, hn: n, bn: o} = y();
2733
+ const {pn: s, Kt: e} = t;
2734
+ const {B: c} = n;
2735
+ const {Vt: r, Rt: i, rn: l, j: a, ln: u, _n: f, Tt: _} = o;
2736
+ return assignDeep({}, {
2737
+ overflowEdge: r,
2738
+ overflowAmount: i,
2739
+ overflowStyle: l,
2740
+ hasOverflow: a,
2741
+ scrollCoordinates: {
2742
+ start: _.T,
2743
+ end: _.k
2744
+ },
2745
+ padding: u,
2746
+ paddingAbsolute: f,
2747
+ directionRTL: c,
2748
+ sleeping: e,
2749
+ destroyed: s
2750
+ });
2751
+ },
2752
+ elements() {
2753
+ const {dt: t, vt: n, ln: o, L: s, ht: e, gt: c, Qt: r} = w.yn;
2754
+ const {jt: i, Jt: l} = w.wn;
2755
+ const translateScrollbarStructure = t => {
2756
+ const {kt: n, Pt: o, Lt: s} = t;
2757
+ return {
2758
+ scrollbar: s,
2759
+ track: o,
2760
+ handle: n
2761
+ };
2762
+ };
2763
+ const translateScrollbarsSetupElement = t => {
2764
+ const {Xt: n, Yt: o} = t;
2765
+ const s = translateScrollbarStructure(n[0]);
2766
+ return assignDeep({}, s, {
2767
+ clone: () => {
2768
+ const t = translateScrollbarStructure(o());
2769
+ b();
2770
+ return t;
2771
+ }
2772
+ });
2773
+ };
2774
+ return assignDeep({}, {
2775
+ target: t,
2776
+ host: n,
2777
+ padding: o || s,
2778
+ viewport: s,
2779
+ content: e || s,
2780
+ scrollOffsetElement: c,
2781
+ scrollEventElement: r,
2782
+ scrollbarHorizontal: translateScrollbarsSetupElement(i),
2783
+ scrollbarVertical: translateScrollbarsSetupElement(l)
2784
+ });
2785
+ },
2786
+ update: update,
2787
+ destroy: bind(destroy, false),
2788
+ sleep: h,
2789
+ plugin: t => i[keys(t)[0]]
2790
+ };
2791
+ push(r, [ S ]);
2792
+ addInstance(c, m);
2793
+ registerPluginModuleInstances(k, OverlayScrollbars, [ m, a, i ]);
2794
+ if (cancelInitialization(w.yn.bt, !e && t.cancel)) {
2795
+ destroy(true);
2796
+ return m;
2797
+ }
2798
+ push(r, v());
2799
+ triggerEvent("initialized", [ m ]);
2800
+ m.update();
2801
+ return m;
2802
+ }
2803
+ return r;
2804
+ };
2805
+
2806
+ OverlayScrollbars.plugin = t => {
2807
+ const n = isArray(t);
2808
+ const o = n ? t : [ t ];
2809
+ const s = o.map((t => registerPluginModuleInstances(t, OverlayScrollbars)[0]));
2810
+ addPlugins(o);
2811
+ return n ? s : s[0];
2812
+ };
2813
+
2814
+ OverlayScrollbars.valid = t => {
2815
+ const n = t && t.elements;
2816
+ const o = isFunction(n) && n();
2817
+ return isPlainObject(o) && !!getInstance(o.target);
2818
+ };
2819
+
2820
+ OverlayScrollbars.env = () => {
2821
+ const {U: t, M: n, P: o, J: s, ot: e, st: c, K: r, Z: i, tt: l, nt: a} = getEnvironment();
2822
+ return assignDeep({}, {
2823
+ scrollbarsSize: t,
2824
+ scrollbarsOverlaid: n,
2825
+ scrollbarsHiding: o,
2826
+ scrollTimeline: s,
2827
+ staticDefaultInitialization: e,
2828
+ staticDefaultOptions: c,
2829
+ getDefaultInitialization: r,
2830
+ setDefaultInitialization: i,
2831
+ getDefaultOptions: l,
2832
+ setDefaultOptions: a
2833
+ });
2834
+ };
2835
+
2836
+ OverlayScrollbars.nonce = setNonce;
2837
+
2838
+ OverlayScrollbars.trustedTypePolicy = setTrustedTypePolicy;
2839
+
2840
+ export { OverlayScrollbars as O };