@adyen/bento-vue3 1.3.0 → 1.4.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 (364) hide show
  1. package/dist/@types/components.d.ts +8 -4
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
  3. package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
  5. package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -57
  6. package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
  7. package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
  8. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
  9. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
  10. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +136 -128
  11. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
  12. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
  13. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +46 -15
  15. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
  16. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +6 -7
  17. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
  18. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
  19. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +37 -11
  20. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
  21. package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
  22. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -22
  23. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
  24. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
  25. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +277 -16
  27. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
  28. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +0 -20
  29. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
  30. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +0 -20
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +164 -104
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
  40. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
  41. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
  42. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
  43. package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
  44. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
  45. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
  46. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
  47. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
  49. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
  50. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
  51. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
  52. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
  53. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
  54. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
  56. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
  57. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
  58. package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
  59. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
  60. package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
  61. package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
  62. package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
  63. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  64. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  65. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
  66. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
  67. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
  68. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
  69. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
  70. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
  71. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
  72. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
  73. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
  74. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
  75. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
  76. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
  77. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
  78. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
  79. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
  80. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
  81. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
  82. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
  83. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
  84. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
  85. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
  86. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
  87. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
  88. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
  89. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
  90. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
  91. package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
  92. package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
  93. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
  94. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
  95. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
  96. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
  97. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
  98. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
  99. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
  100. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
  101. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
  102. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
  103. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
  104. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
  105. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
  106. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
  107. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
  108. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
  109. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
  110. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
  111. package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
  112. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
  113. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
  114. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
  115. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
  116. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
  117. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
  118. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
  119. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
  120. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
  121. package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
  122. package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
  123. package/dist/@types/packages/vue2/src/index.d.ts +3 -0
  124. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
  125. package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
  126. package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
  127. package/dist/accordion.js +104 -254
  128. package/dist/accordion.js.map +1 -1
  129. package/dist/alert.js +61 -64
  130. package/dist/alert.js.map +1 -1
  131. package/dist/assets/base-button.css +1 -1
  132. package/dist/assets/base-modal.css +1 -0
  133. package/dist/assets/button.css +1 -1
  134. package/dist/assets/calendar.css +1 -1
  135. package/dist/assets/checkbox.css +1 -1
  136. package/dist/assets/chevron-up.css +1 -0
  137. package/dist/assets/controls-group.css +1 -1
  138. package/dist/assets/copy.css +1 -1
  139. package/dist/assets/dropdown-default-textbox.css +1 -1
  140. package/dist/assets/dropdown.css +1 -1
  141. package/dist/assets/error-message.css +1 -1
  142. package/dist/assets/footer-actions.css +1 -1
  143. package/dist/assets/index.css +1 -1
  144. package/dist/assets/index10.css +1 -1
  145. package/dist/assets/index11.css +1 -1
  146. package/dist/assets/index12.css +1 -1
  147. package/dist/assets/index13.css +1 -1
  148. package/dist/assets/index14.css +1 -1
  149. package/dist/assets/index15.css +1 -1
  150. package/dist/assets/index16.css +1 -1
  151. package/dist/assets/index17.css +1 -1
  152. package/dist/assets/index18.css +1 -1
  153. package/dist/assets/index19.css +1 -1
  154. package/dist/assets/index2.css +1 -1
  155. package/dist/assets/index20.css +1 -1
  156. package/dist/assets/index21.css +1 -1
  157. package/dist/assets/index22.css +1 -1
  158. package/dist/assets/index24.css +1 -1
  159. package/dist/assets/index25.css +1 -1
  160. package/dist/assets/index26.css +1 -1
  161. package/dist/assets/index27.css +1 -1
  162. package/dist/assets/index28.css +1 -1
  163. package/dist/assets/index29.css +1 -1
  164. package/dist/assets/index3.css +1 -1
  165. package/dist/assets/index30.css +1 -1
  166. package/dist/assets/index31.css +1 -1
  167. package/dist/assets/index32.css +1 -1
  168. package/dist/assets/index33.css +1 -1
  169. package/dist/assets/index34.css +1 -1
  170. package/dist/assets/index35.css +1 -1
  171. package/dist/assets/index36.css +1 -1
  172. package/dist/assets/index37.css +1 -1
  173. package/dist/assets/index38.css +1 -1
  174. package/dist/assets/index39.css +1 -1
  175. package/dist/assets/index4.css +1 -1
  176. package/dist/assets/index40.css +1 -1
  177. package/dist/assets/index41.css +1 -1
  178. package/dist/assets/index42.css +1 -1
  179. package/dist/assets/index43.css +1 -0
  180. package/dist/assets/index5.css +1 -1
  181. package/dist/assets/index6.css +1 -1
  182. package/dist/assets/index7.css +1 -1
  183. package/dist/assets/index8.css +1 -1
  184. package/dist/assets/index9.css +1 -1
  185. package/dist/assets/listbox-option-tag.css +1 -1
  186. package/dist/assets/listbox.css +1 -1
  187. package/dist/assets/loading-button.css +1 -1
  188. package/dist/assets/tooltip.css +1 -1
  189. package/dist/avatar-image.js +1 -1
  190. package/dist/badge.js +2 -2
  191. package/dist/button.js +143 -12
  192. package/dist/button.js.map +1 -1
  193. package/dist/card.js +99 -94
  194. package/dist/card.js.map +1 -1
  195. package/dist/checkbox.js +40 -39
  196. package/dist/checkbox.js.map +1 -1
  197. package/dist/chunks/base-button.6d2843c2.js +108 -0
  198. package/dist/chunks/base-button.6d2843c2.js.map +1 -0
  199. package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
  200. package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
  201. package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
  202. package/dist/chunks/button.a8462029.js.map +1 -0
  203. package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
  204. package/dist/chunks/calendar.3f930683.js.map +1 -0
  205. package/dist/chunks/checkbox.5e1e05ae.js +235 -0
  206. package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
  207. package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
  208. package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
  209. package/dist/chunks/controls-group.3b0dfb94.js +136 -0
  210. package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
  211. package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
  212. package/dist/chunks/copy.1d14b783.js.map +1 -0
  213. package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
  214. package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
  215. package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
  216. package/dist/chunks/dropdown.b798a82e.js.map +1 -0
  217. package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
  218. package/dist/chunks/error-message.9acead25.js.map +1 -0
  219. package/dist/chunks/footer-actions.9537d0df.js +111 -0
  220. package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
  221. package/dist/chunks/get-slot-text.bead058f.js +9 -0
  222. package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
  223. package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
  224. package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
  225. package/dist/chunks/index.228ecda0.js +101 -0
  226. package/dist/chunks/index.228ecda0.js.map +1 -0
  227. package/dist/chunks/index.89b00b94.js +124 -0
  228. package/dist/chunks/index.89b00b94.js.map +1 -0
  229. package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
  230. package/dist/chunks/index.9d8273fc.js.map +1 -0
  231. package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
  232. package/dist/chunks/index.c2a80208.js.map +1 -0
  233. package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
  234. package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
  235. package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
  236. package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
  237. package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
  238. package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
  239. package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
  240. package/dist/chunks/listbox.6b52af1a.js.map +1 -0
  241. package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
  242. package/dist/chunks/loading-button.081adbf3.js.map +1 -0
  243. package/dist/chunks/tabs.keys.358742f2.js +7 -0
  244. package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
  245. package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
  246. package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
  247. package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
  248. package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
  249. package/dist/chunks/use-has-slot.9fac7123.js +16 -0
  250. package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
  251. package/dist/code-snippet.js +548 -463
  252. package/dist/code-snippet.js.map +1 -1
  253. package/dist/country.js +501 -505
  254. package/dist/country.js.map +1 -1
  255. package/dist/currency.js +38 -41
  256. package/dist/currency.js.map +1 -1
  257. package/dist/data-grid.js +837 -833
  258. package/dist/data-grid.js.map +1 -1
  259. package/dist/date-picker.js +83 -87
  260. package/dist/date-picker.js.map +1 -1
  261. package/dist/date-range-picker.js +2 -2
  262. package/dist/date.js +1 -1
  263. package/dist/dropdown.js +30 -32
  264. package/dist/dropdown.js.map +1 -1
  265. package/dist/empty-state.js +166 -0
  266. package/dist/empty-state.js.map +1 -0
  267. package/dist/filter-bar.js +986 -935
  268. package/dist/filter-bar.js.map +1 -1
  269. package/dist/focus-trap.js +1 -1
  270. package/dist/form-layout.js +72 -72
  271. package/dist/form-layout.js.map +1 -1
  272. package/dist/header.js +50 -52
  273. package/dist/header.js.map +1 -1
  274. package/dist/image.js +76 -0
  275. package/dist/image.js.map +1 -0
  276. package/dist/index.js +239 -232
  277. package/dist/index.js.map +1 -1
  278. package/dist/info-icon.js +2 -2
  279. package/dist/input-field.js +241 -269
  280. package/dist/input-field.js.map +1 -1
  281. package/dist/internal.js +7 -7
  282. package/dist/link.js +38 -36
  283. package/dist/link.js.map +1 -1
  284. package/dist/loading-indicator.js +1 -1
  285. package/dist/menu.js +131 -139
  286. package/dist/menu.js.map +1 -1
  287. package/dist/modal.js +121 -356
  288. package/dist/modal.js.map +1 -1
  289. package/dist/pagination.js +182 -185
  290. package/dist/pagination.js.map +1 -1
  291. package/dist/payment-method.js +19 -23
  292. package/dist/payment-method.js.map +1 -1
  293. package/dist/popover.js +56 -52
  294. package/dist/popover.js.map +1 -1
  295. package/dist/popper-container.js +36 -41
  296. package/dist/popper-container.js.map +1 -1
  297. package/dist/radio-group.js +112 -113
  298. package/dist/radio-group.js.map +1 -1
  299. package/dist/search-bar.js +77 -91
  300. package/dist/search-bar.js.map +1 -1
  301. package/dist/segmented-control.js +88 -75
  302. package/dist/segmented-control.js.map +1 -1
  303. package/dist/sidepanel.js +122 -121
  304. package/dist/sidepanel.js.map +1 -1
  305. package/dist/status.js +18 -21
  306. package/dist/status.js.map +1 -1
  307. package/dist/structured-list.js +1 -1
  308. package/dist/summary-grid.js +129 -162
  309. package/dist/summary-grid.js.map +1 -1
  310. package/dist/tabs.js +83 -75
  311. package/dist/tabs.js.map +1 -1
  312. package/dist/tag.js +32 -35
  313. package/dist/tag.js.map +1 -1
  314. package/dist/textarea.js +156 -155
  315. package/dist/textarea.js.map +1 -1
  316. package/dist/timeline.js +212 -213
  317. package/dist/timeline.js.map +1 -1
  318. package/dist/toast.js +68 -72
  319. package/dist/toast.js.map +1 -1
  320. package/dist/toggle.js +75 -73
  321. package/dist/toggle.js.map +1 -1
  322. package/dist/typography.js +1 -1
  323. package/dist/web-types.json +1 -1
  324. package/package.json +11 -10
  325. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
  326. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
  327. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
  328. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
  329. package/dist/assets/button-actions.css +0 -1
  330. package/dist/assets/chevron-down.css +0 -1
  331. package/dist/chunks/base-button.20be08da.js +0 -111
  332. package/dist/chunks/base-button.20be08da.js.map +0 -1
  333. package/dist/chunks/button-actions.54e28e75.js +0 -124
  334. package/dist/chunks/button-actions.54e28e75.js.map +0 -1
  335. package/dist/chunks/button.e1c39f66.js.map +0 -1
  336. package/dist/chunks/calendar.09b683b3.js.map +0 -1
  337. package/dist/chunks/checkbox.a404069b.js +0 -226
  338. package/dist/chunks/checkbox.a404069b.js.map +0 -1
  339. package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
  340. package/dist/chunks/controls-group.60fb2a86.js +0 -136
  341. package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
  342. package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
  343. package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
  344. package/dist/chunks/dropdown.8b415aac.js.map +0 -1
  345. package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
  346. package/dist/chunks/footer-actions.0f640f87.js +0 -106
  347. package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
  348. package/dist/chunks/get-slot-text.2db867f8.js +0 -9
  349. package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
  350. package/dist/chunks/index.222d29b0.js +0 -120
  351. package/dist/chunks/index.222d29b0.js.map +0 -1
  352. package/dist/chunks/index.3da90517.js.map +0 -1
  353. package/dist/chunks/index.aa34e363.js +0 -104
  354. package/dist/chunks/index.aa34e363.js.map +0 -1
  355. package/dist/chunks/index.c9225c3b.js.map +0 -1
  356. package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
  357. package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
  358. package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
  359. package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
  360. package/dist/chunks/tooltip.835d9b52.js.map +0 -1
  361. package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
  362. package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
  363. package/dist/chunks/use-has-slot.068222e6.js +0 -5
  364. package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
@@ -1,28 +1,30 @@
1
- import { defineComponent as Fe, ref as ye, computed as xe, shallowRef as Te, onMounted as Xe, watch as Ye, resolveComponent as ae, openBlock as ne, createElementBlock as he, normalizeClass as Qe, createElementVNode as pe, createBlock as Pe, mergeProps as Ze, createCommentVNode as ke, createVNode as ve, withCtx as we, createTextVNode as je, toDisplayString as Me, renderSlot as et, pushScopeId as tt, popScopeId as nt } from "vue";
2
- import { highlightActiveLine as rt, keymap as it, EditorView as Ve, lineNumbers as st } from "@codemirror/view";
3
- import { Compartment as Ce, EditorState as Re } from "@codemirror/state";
4
- import { indentWithTab as ot, history as lt } from "@codemirror/commands";
5
- import { syntaxHighlighting as at, HighlightStyle as ht } from "@codemirror/language";
6
- import { json as ut } from "@codemirror/lang-json";
7
- import { xml as ft } from "@codemirror/lang-xml";
8
- import { javascript as ct } from "@codemirror/lang-javascript";
9
- import { java as dt } from "@codemirror/lang-java";
10
- import { B as pt } from "./chunks/dropdown.8b415aac.js";
11
- import { B as gt, a as mt } from "./chunks/button.e1c39f66.js";
12
- import { B as bt, a as yt } from "./chunks/index.222d29b0.js";
13
- import { b as xt } from "./chunks/tooltip.835d9b52.js";
14
- import { u as kt } from "./chunks/i18n.6c402773.js";
15
- import { C as vt } from "./chunks/copy.2cf5e6c3.js";
16
- import { _ as wt } from "./chunks/_plugin-vue_export-helper.dad06003.js";
1
+ import { openBlock as E, createElementBlock as oe, mergeProps as qe, toDisplayString as Ae, createCommentVNode as ne, pushScopeId as Fe, popScopeId as Xe, createElementVNode as le, defineComponent as nt, ref as me, computed as ae, shallowRef as $e, onMounted as rt, watch as it, watchEffect as st, resolveComponent as K, normalizeClass as Te, createBlock as ue, createVNode as he, withCtx as fe, createTextVNode as je, renderSlot as ot, normalizeProps as lt, guardReactiveProps as at } from "vue";
2
+ import { highlightActiveLine as ut, keymap as ht, EditorView as He, lineNumbers as ft } from "@codemirror/view";
3
+ import { Compartment as Ne, EditorState as Ve } from "@codemirror/state";
4
+ import { indentWithTab as dt, history as ct } from "@codemirror/commands";
5
+ import { syntaxHighlighting as pt, HighlightStyle as gt } from "@codemirror/language";
6
+ import { json as mt } from "@codemirror/lang-json";
7
+ import { xml as bt } from "@codemirror/lang-xml";
8
+ import { javascript as yt } from "@codemirror/lang-javascript";
9
+ import { java as xt } from "@codemirror/lang-java";
10
+ import { B as kt } from "./chunks/dropdown.b798a82e.js";
11
+ import { f as Ct } from "./chunks/base-modal.3ccb9eb5.js";
12
+ import { a as _t } from "./chunks/button.a8462029.js";
13
+ import { B as vt } from "./chunks/index.89b00b94.js";
14
+ import { b as wt } from "./chunks/tooltip.e4e34b86.js";
15
+ import { BentoLoadingIndicator as Nt } from "./loading-indicator.js";
16
+ import { u as St } from "./chunks/i18n.6c402773.js";
17
+ import { _ as Ze } from "./chunks/_plugin-vue_export-helper.dad06003.js";
18
+ import { C as At } from "./chunks/copy.1d14b783.js";
17
19
  import "./assets/index9.css";
18
- const Ct = 1024;
19
- let _t = 0;
20
- class C {
20
+ const It = 1024;
21
+ let Bt = 0;
22
+ class _ {
21
23
  /**
22
24
  Create a new node prop type.
23
25
  */
24
26
  constructor(e = {}) {
25
- this.id = _t++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
27
+ this.id = Bt++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
26
28
  throw new Error("This node type doesn't define a deserialize function");
27
29
  });
28
30
  }
@@ -38,24 +40,24 @@ class C {
38
40
  add(e) {
39
41
  if (this.perNode)
40
42
  throw new RangeError("Can't add per-node props to node types");
41
- return typeof e != "function" && (e = J.match(e)), (t) => {
43
+ return typeof e != "function" && (e = G.match(e)), (t) => {
42
44
  let n = e(t);
43
45
  return n === void 0 ? null : [this, n];
44
46
  };
45
47
  }
46
48
  }
47
- C.closedBy = new C({ deserialize: (r) => r.split(" ") });
48
- C.openedBy = new C({ deserialize: (r) => r.split(" ") });
49
- C.group = new C({ deserialize: (r) => r.split(" ") });
50
- C.isolate = new C({ deserialize: (r) => {
49
+ _.closedBy = new _({ deserialize: (r) => r.split(" ") });
50
+ _.openedBy = new _({ deserialize: (r) => r.split(" ") });
51
+ _.group = new _({ deserialize: (r) => r.split(" ") });
52
+ _.isolate = new _({ deserialize: (r) => {
51
53
  if (r && r != "rtl" && r != "ltr" && r != "auto")
52
54
  throw new RangeError("Invalid value for isolate: " + r);
53
55
  return r || "auto";
54
56
  } });
55
- C.contextHash = new C({ perNode: !0 });
56
- C.lookAhead = new C({ perNode: !0 });
57
- C.mounted = new C({ perNode: !0 });
58
- class me {
57
+ _.contextHash = new _({ perNode: !0 });
58
+ _.lookAhead = new _({ perNode: !0 });
59
+ _.mounted = new _({ perNode: !0 });
60
+ class ve {
59
61
  constructor(e, t, n) {
60
62
  this.tree = e, this.overlay = t, this.parser = n;
61
63
  }
@@ -63,11 +65,11 @@ class me {
63
65
  @internal
64
66
  */
65
67
  static get(e) {
66
- return e && e.props && e.props[C.mounted.id];
68
+ return e && e.props && e.props[_.mounted.id];
67
69
  }
68
70
  }
69
- const Nt = /* @__PURE__ */ Object.create(null);
70
- class J {
71
+ const Lt = /* @__PURE__ */ Object.create(null);
72
+ class G {
71
73
  /**
72
74
  @internal
73
75
  */
@@ -78,7 +80,7 @@ class J {
78
80
  Define a node type.
79
81
  */
80
82
  static define(e) {
81
- let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Nt, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new J(e.name || "", t, e.id, n);
83
+ let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Lt, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new G(e.name || "", t, e.id, n);
82
84
  if (e.props) {
83
85
  for (let s of e.props)
84
86
  if (Array.isArray(s) || (s = s(i)), s) {
@@ -129,7 +131,7 @@ class J {
129
131
  if (typeof e == "string") {
130
132
  if (this.name == e)
131
133
  return !0;
132
- let t = this.prop(C.group);
134
+ let t = this.prop(_.group);
133
135
  return t ? t.indexOf(e) > -1 : !1;
134
136
  }
135
137
  return this.id == e;
@@ -148,7 +150,7 @@ class J {
148
150
  for (let i of n.split(" "))
149
151
  t[i] = e[n];
150
152
  return (n) => {
151
- for (let i = n.prop(C.group), s = -1; s < (i ? i.length : 0); s++) {
153
+ for (let i = n.prop(_.group), s = -1; s < (i ? i.length : 0); s++) {
152
154
  let o = t[s < 0 ? n.name : i[s]];
153
155
  if (o)
154
156
  return o;
@@ -156,34 +158,34 @@ class J {
156
158
  };
157
159
  }
158
160
  }
159
- J.none = new J(
161
+ G.none = new G(
160
162
  "",
161
163
  /* @__PURE__ */ Object.create(null),
162
164
  0,
163
165
  8
164
166
  /* NodeFlag.Anonymous */
165
167
  );
166
- const ue = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap();
167
- var S;
168
+ const be = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap();
169
+ var I;
168
170
  (function(r) {
169
171
  r[r.ExcludeBuffers = 1] = "ExcludeBuffers", r[r.IncludeAnonymous = 2] = "IncludeAnonymous", r[r.IgnoreMounts = 4] = "IgnoreMounts", r[r.IgnoreOverlays = 8] = "IgnoreOverlays";
170
- })(S || (S = {}));
171
- class D {
172
+ })(I || (I = {}));
173
+ class V {
172
174
  /**
173
175
  Construct a new tree. See also [`Tree.build`](#common.Tree^build).
174
176
  */
175
177
  constructor(e, t, n, i, s) {
176
178
  if (this.type = e, this.children = t, this.positions = n, this.length = i, this.props = null, s && s.length) {
177
179
  this.props = /* @__PURE__ */ Object.create(null);
178
- for (let [o, h] of s)
179
- this.props[typeof o == "number" ? o : o.id] = h;
180
+ for (let [o, u] of s)
181
+ this.props[typeof o == "number" ? o : o.id] = u;
180
182
  }
181
183
  }
182
184
  /**
183
185
  @internal
184
186
  */
185
187
  toString() {
186
- let e = me.get(this);
188
+ let e = ve.get(this);
187
189
  if (e && !e.overlay)
188
190
  return e.tree.toString();
189
191
  let t = "";
@@ -199,7 +201,7 @@ class D {
199
201
  nodes the cursor visits.
200
202
  */
201
203
  cursor(e = 0) {
202
- return new Se(this.topNode, e);
204
+ return new Be(this.topNode, e);
203
205
  }
204
206
  /**
205
207
  Get a [tree cursor](#common.TreeCursor) pointing into this tree
@@ -207,8 +209,8 @@ class D {
207
209
  [`moveTo`](#common.TreeCursor.moveTo).
208
210
  */
209
211
  cursorAt(e, t = 0, n = 0) {
210
- let i = ue.get(this) || this.topNode, s = new Se(i);
211
- return s.moveTo(e, t), ue.set(this, s._tree), s;
212
+ let i = be.get(this) || this.topNode, s = new Be(i);
213
+ return s.moveTo(e, t), be.set(this, s._tree), s;
212
214
  }
213
215
  /**
214
216
  Get a [syntax node](#common.SyntaxNode) object for the top of the
@@ -229,8 +231,8 @@ class D {
229
231
  [`resolveInner`](#common.Tree.resolveInner) instead.
230
232
  */
231
233
  resolve(e, t = 0) {
232
- let n = oe(ue.get(this) || this.topNode, e, t, !1);
233
- return ue.set(this, n), n;
234
+ let n = pe(be.get(this) || this.topNode, e, t, !1);
235
+ return be.set(this, n), n;
234
236
  }
235
237
  /**
236
238
  Like [`resolve`](#common.Tree.resolve), but will enter
@@ -240,8 +242,8 @@ class D {
240
242
  the host trees).
241
243
  */
242
244
  resolveInner(e, t = 0) {
243
- let n = oe(He.get(this) || this.topNode, e, t, !0);
244
- return He.set(this, n), n;
245
+ let n = pe(Re.get(this) || this.topNode, e, t, !0);
246
+ return Re.set(this, n), n;
245
247
  }
246
248
  /**
247
249
  In some situations, it can be useful to iterate through all
@@ -251,7 +253,7 @@ class D {
251
253
  position.
252
254
  */
253
255
  resolveStack(e, t = 0) {
254
- return It(this, e, t);
256
+ return Et(this, e, t);
255
257
  }
256
258
  /**
257
259
  Iterate over the tree and its children, calling `enter` for any
@@ -261,18 +263,18 @@ class D {
261
263
  not have its children iterated over (or `leave` called).
262
264
  */
263
265
  iterate(e) {
264
- let { enter: t, leave: n, from: i = 0, to: s = this.length } = e, o = e.mode || 0, h = (o & S.IncludeAnonymous) > 0;
265
- for (let f = this.cursor(o | S.IncludeAnonymous); ; ) {
266
- let y = !1;
267
- if (f.from <= s && f.to >= i && (!h && f.type.isAnonymous || t(f) !== !1)) {
266
+ let { enter: t, leave: n, from: i = 0, to: s = this.length } = e, o = e.mode || 0, u = (o & I.IncludeAnonymous) > 0;
267
+ for (let f = this.cursor(o | I.IncludeAnonymous); ; ) {
268
+ let x = !1;
269
+ if (f.from <= s && f.to >= i && (!u && f.type.isAnonymous || t(f) !== !1)) {
268
270
  if (f.firstChild())
269
271
  continue;
270
- y = !0;
272
+ x = !0;
271
273
  }
272
- for (; y && n && (h || !f.type.isAnonymous) && n(f), !f.nextSibling(); ) {
274
+ for (; x && n && (u || !f.type.isAnonymous) && n(f), !f.nextSibling(); ) {
273
275
  if (!f.parent())
274
276
  return;
275
- y = !0;
277
+ x = !0;
276
278
  }
277
279
  }
278
280
  }
@@ -301,18 +303,18 @@ class D {
301
303
  [`NodeType.none`](#common.NodeType^none).
302
304
  */
303
305
  balance(e = {}) {
304
- return this.children.length <= 8 ? this : Oe(J.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, i) => new D(this.type, t, n, i, this.propValues), e.makeTree || ((t, n, i) => new D(J.none, t, n, i)));
306
+ return this.children.length <= 8 ? this : Ee(G.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, i) => new V(this.type, t, n, i, this.propValues), e.makeTree || ((t, n, i) => new V(G.none, t, n, i)));
305
307
  }
306
308
  /**
307
309
  Build a tree from a postfix-ordered buffer of node information,
308
310
  or a cursor over such a buffer.
309
311
  */
310
312
  static build(e) {
311
- return Bt(e);
313
+ return Mt(e);
312
314
  }
313
315
  }
314
- D.empty = new D(J.none, [], [], 0);
315
- class Be {
316
+ V.empty = new V(G.none, [], [], 0);
317
+ class Oe {
316
318
  constructor(e, t) {
317
319
  this.buffer = e, this.index = t;
318
320
  }
@@ -335,10 +337,10 @@ class Be {
335
337
  this.index -= 4;
336
338
  }
337
339
  fork() {
338
- return new Be(this.buffer, this.index);
340
+ return new Oe(this.buffer, this.index);
339
341
  }
340
342
  }
341
- class G {
343
+ class Z {
342
344
  /**
343
345
  Create a tree buffer.
344
346
  */
@@ -349,7 +351,7 @@ class G {
349
351
  @internal
350
352
  */
351
353
  get type() {
352
- return J.none;
354
+ return G.none;
353
355
  }
354
356
  /**
355
357
  @internal
@@ -376,25 +378,25 @@ class G {
376
378
  @internal
377
379
  */
378
380
  findChild(e, t, n, i, s) {
379
- let { buffer: o } = this, h = -1;
380
- for (let f = e; f != t && !(Ke(s, i, o[f + 1], o[f + 2]) && (h = f, n > 0)); f = o[f + 3])
381
+ let { buffer: o } = this, u = -1;
382
+ for (let f = e; f != t && !(Qe(s, i, o[f + 1], o[f + 2]) && (u = f, n > 0)); f = o[f + 3])
381
383
  ;
382
- return h;
384
+ return u;
383
385
  }
384
386
  /**
385
387
  @internal
386
388
  */
387
389
  slice(e, t, n) {
388
390
  let i = this.buffer, s = new Uint16Array(t - e), o = 0;
389
- for (let h = e, f = 0; h < t; ) {
390
- s[f++] = i[h++], s[f++] = i[h++] - n;
391
- let y = s[f++] = i[h++] - n;
392
- s[f++] = i[h++] - e, o = Math.max(o, y);
391
+ for (let u = e, f = 0; u < t; ) {
392
+ s[f++] = i[u++], s[f++] = i[u++] - n;
393
+ let x = s[f++] = i[u++] - n;
394
+ s[f++] = i[u++] - e, o = Math.max(o, x);
393
395
  }
394
- return new G(s, o, this.set);
396
+ return new Z(s, o, this.set);
395
397
  }
396
398
  }
397
- function Ke(r, e, t, n) {
399
+ function Qe(r, e, t, n) {
398
400
  switch (r) {
399
401
  case -2:
400
402
  return t < e;
@@ -410,17 +412,17 @@ function Ke(r, e, t, n) {
410
412
  return !0;
411
413
  }
412
414
  }
413
- function oe(r, e, t, n) {
415
+ function pe(r, e, t, n) {
414
416
  for (var i; r.from == r.to || (t < 1 ? r.from >= e : r.from > e) || (t > -1 ? r.to <= e : r.to < e); ) {
415
417
  let o = !n && r instanceof z && r.index < 0 ? null : r.parent;
416
418
  if (!o)
417
419
  return r;
418
420
  r = o;
419
421
  }
420
- let s = n ? 0 : S.IgnoreOverlays;
422
+ let s = n ? 0 : I.IgnoreOverlays;
421
423
  if (n)
422
- for (let o = r, h = o.parent; h; o = h, h = o.parent)
423
- o instanceof z && o.index < 0 && ((i = h.enter(e, t, s)) === null || i === void 0 ? void 0 : i.from) != o.from && (r = h);
424
+ for (let o = r, u = o.parent; u; o = u, u = o.parent)
425
+ o instanceof z && o.index < 0 && ((i = u.enter(e, t, s)) === null || i === void 0 ? void 0 : i.from) != o.from && (r = u);
424
426
  for (; ; ) {
425
427
  let o = r.enter(e, t, s);
426
428
  if (!o)
@@ -428,9 +430,9 @@ function oe(r, e, t, n) {
428
430
  r = o;
429
431
  }
430
432
  }
431
- class Ge {
433
+ class Ye {
432
434
  cursor(e = 0) {
433
- return new Se(this, e);
435
+ return new Be(this, e);
434
436
  }
435
437
  getChild(e, t = null, n = null) {
436
438
  let i = De(this, e, t, n);
@@ -440,13 +442,13 @@ class Ge {
440
442
  return De(this, e, t, n);
441
443
  }
442
444
  resolve(e, t = 0) {
443
- return oe(this, e, t, !1);
445
+ return pe(this, e, t, !1);
444
446
  }
445
447
  resolveInner(e, t = 0) {
446
- return oe(this, e, t, !0);
448
+ return pe(this, e, t, !0);
447
449
  }
448
450
  matchContext(e) {
449
- return Ne(this, e);
451
+ return Ie(this, e);
450
452
  }
451
453
  enterUnfinishedNodesBefore(e) {
452
454
  let t = this.childBefore(e), n = this;
@@ -465,7 +467,7 @@ class Ge {
465
467
  return this.parent;
466
468
  }
467
469
  }
468
- class z extends Ge {
470
+ class z extends Ye {
469
471
  constructor(e, t, n, i) {
470
472
  super(), this._tree = e, this.from = t, this.index = n, this._parent = i;
471
473
  }
@@ -480,25 +482,25 @@ class z extends Ge {
480
482
  }
481
483
  nextChild(e, t, n, i, s = 0) {
482
484
  for (let o = this; ; ) {
483
- for (let { children: h, positions: f } = o._tree, y = t > 0 ? h.length : -1; e != y; e += t) {
484
- let x = h[e], A = f[e] + o.from;
485
- if (Ke(i, n, A, A + x.length)) {
486
- if (x instanceof G) {
487
- if (s & S.ExcludeBuffers)
485
+ for (let { children: u, positions: f } = o._tree, x = t > 0 ? u.length : -1; e != x; e += t) {
486
+ let v = u[e], w = f[e] + o.from;
487
+ if (Qe(i, n, w, w + v.length)) {
488
+ if (v instanceof Z) {
489
+ if (s & I.ExcludeBuffers)
488
490
  continue;
489
- let B = x.findChild(0, x.buffer.length, t, n - A, i);
490
- if (B > -1)
491
- return new K(new St(o, x, e, A), null, B);
492
- } else if (s & S.IncludeAnonymous || !x.type.isAnonymous || Le(x)) {
493
- let B;
494
- if (!(s & S.IgnoreMounts) && (B = me.get(x)) && !B.overlay)
495
- return new z(B.tree, A, e, o);
496
- let T = new z(x, A, e, o);
497
- return s & S.IncludeAnonymous || !T.type.isAnonymous ? T : T.nextChild(t < 0 ? x.children.length - 1 : 0, t, n, i);
491
+ let A = v.findChild(0, v.buffer.length, t, n - w, i);
492
+ if (A > -1)
493
+ return new X(new Ot(o, v, e, w), null, A);
494
+ } else if (s & I.IncludeAnonymous || !v.type.isAnonymous || ze(v)) {
495
+ let A;
496
+ if (!(s & I.IgnoreMounts) && (A = ve.get(v)) && !A.overlay)
497
+ return new z(A.tree, w, e, o);
498
+ let L = new z(v, w, e, o);
499
+ return s & I.IncludeAnonymous || !L.type.isAnonymous ? L : L.nextChild(t < 0 ? v.children.length - 1 : 0, t, n, i);
498
500
  }
499
501
  }
500
502
  }
501
- if (s & S.IncludeAnonymous || !o.type.isAnonymous || (o.index >= 0 ? e = o.index + t : e = t < 0 ? -1 : o._parent._tree.children.length, o = o._parent, !o))
503
+ if (s & I.IncludeAnonymous || !o.type.isAnonymous || (o.index >= 0 ? e = o.index + t : e = t < 0 ? -1 : o._parent._tree.children.length, o = o._parent, !o))
502
504
  return null;
503
505
  }
504
506
  }
@@ -540,10 +542,10 @@ class z extends Ge {
540
542
  }
541
543
  enter(e, t, n = 0) {
542
544
  let i;
543
- if (!(n & S.IgnoreOverlays) && (i = me.get(this._tree)) && i.overlay) {
545
+ if (!(n & I.IgnoreOverlays) && (i = ve.get(this._tree)) && i.overlay) {
544
546
  let s = e - this.from;
545
- for (let { from: o, to: h } of i.overlay)
546
- if ((t > 0 ? o <= s : o < s) && (t < 0 ? h >= s : h > s))
547
+ for (let { from: o, to: u } of i.overlay)
548
+ if ((t > 0 ? o <= s : o < s) && (t < 0 ? u >= s : u > s))
547
549
  return new z(i.tree, i.overlay[0].from + this.from, -1, this);
548
550
  }
549
551
  return this.nextChild(0, 1, e, t, n);
@@ -604,7 +606,7 @@ function De(r, e, t, n) {
604
606
  return n == null ? s : [];
605
607
  }
606
608
  }
607
- function Ne(r, e, t = e.length - 1) {
609
+ function Ie(r, e, t = e.length - 1) {
608
610
  for (let n = r.parent; t >= 0; n = n.parent) {
609
611
  if (!n)
610
612
  return !1;
@@ -616,12 +618,12 @@ function Ne(r, e, t = e.length - 1) {
616
618
  }
617
619
  return !0;
618
620
  }
619
- class St {
621
+ class Ot {
620
622
  constructor(e, t, n, i) {
621
623
  this.parent = e, this.buffer = t, this.index = n, this.start = i;
622
624
  }
623
625
  }
624
- class K extends Ge {
626
+ class X extends Ye {
625
627
  get name() {
626
628
  return this.type.name;
627
629
  }
@@ -636,7 +638,7 @@ class K extends Ge {
636
638
  }
637
639
  child(e, t, n) {
638
640
  let { buffer: i } = this.context, s = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.context.start, n);
639
- return s < 0 ? null : new K(this.context, this, s);
641
+ return s < 0 ? null : new X(this.context, this, s);
640
642
  }
641
643
  get firstChild() {
642
644
  return this.child(
@@ -671,10 +673,10 @@ class K extends Ge {
671
673
  );
672
674
  }
673
675
  enter(e, t, n = 0) {
674
- if (n & S.ExcludeBuffers)
676
+ if (n & I.ExcludeBuffers)
675
677
  return null;
676
678
  let { buffer: i } = this.context, s = i.findChild(this.index + 4, i.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
677
- return s < 0 ? null : new K(this.context, this, s);
679
+ return s < 0 ? null : new X(this.context, this, s);
678
680
  }
679
681
  get parent() {
680
682
  return this._parent || this.context.parent.nextSignificantParent();
@@ -690,11 +692,11 @@ class K extends Ge {
690
692
  }
691
693
  get nextSibling() {
692
694
  let { buffer: e } = this.context, t = e.buffer[this.index + 3];
693
- return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new K(this.context, this._parent, t) : this.externalSibling(1);
695
+ return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new X(this.context, this._parent, t) : this.externalSibling(1);
694
696
  }
695
697
  get prevSibling() {
696
698
  let { buffer: e } = this.context, t = this._parent ? this._parent.index + 4 : 0;
697
- return this.index == t ? this.externalSibling(-1) : new K(this.context, this._parent, e.findChild(
699
+ return this.index == t ? this.externalSibling(-1) : new X(this.context, this._parent, e.findChild(
698
700
  t,
699
701
  this.index,
700
702
  -1,
@@ -712,7 +714,7 @@ class K extends Ge {
712
714
  let o = n.buffer[this.index + 1];
713
715
  e.push(n.slice(i, s, o)), t.push(0);
714
716
  }
715
- return new D(this.type, e, t, this.to - this.from);
717
+ return new V(this.type, e, t, this.to - this.from);
716
718
  }
717
719
  /**
718
720
  @internal
@@ -721,7 +723,7 @@ class K extends Ge {
721
723
  return this.context.buffer.childString(this.index);
722
724
  }
723
725
  }
724
- function qe(r) {
726
+ function et(r) {
725
727
  if (!r.length)
726
728
  return null;
727
729
  let e = 0, t = r[0];
@@ -730,32 +732,32 @@ function qe(r) {
730
732
  (o.from > t.from || o.to < t.to) && (t = o, e = s);
731
733
  }
732
734
  let n = t instanceof z && t.index < 0 ? null : t.parent, i = r.slice();
733
- return n ? i[e] = n : i.splice(e, 1), new At(i, t);
735
+ return n ? i[e] = n : i.splice(e, 1), new zt(i, t);
734
736
  }
735
- class At {
737
+ class zt {
736
738
  constructor(e, t) {
737
739
  this.heads = e, this.node = t;
738
740
  }
739
741
  get next() {
740
- return qe(this.heads);
742
+ return et(this.heads);
741
743
  }
742
744
  }
743
- function It(r, e, t) {
745
+ function Et(r, e, t) {
744
746
  let n = r.resolveInner(e, t), i = null;
745
747
  for (let s = n instanceof z ? n : n.context.parent; s; s = s.parent)
746
748
  if (s.index < 0) {
747
749
  let o = s.parent;
748
750
  (i || (i = [n])).push(o.resolve(e, t)), s = o;
749
751
  } else {
750
- let o = me.get(s.tree);
752
+ let o = ve.get(s.tree);
751
753
  if (o && o.overlay && o.overlay[0].from <= e && o.overlay[o.overlay.length - 1].to >= e) {
752
- let h = new z(o.tree, o.overlay[0].from + s.from, -1, s);
753
- (i || (i = [n])).push(oe(h, e, t, !1));
754
+ let u = new z(o.tree, o.overlay[0].from + s.from, -1, s);
755
+ (i || (i = [n])).push(pe(u, e, t, !1));
754
756
  }
755
757
  }
756
- return i ? qe(i) : n;
758
+ return i ? et(i) : n;
757
759
  }
758
- class Se {
760
+ class Be {
759
761
  /**
760
762
  Shorthand for `.type.name`.
761
763
  */
@@ -857,17 +859,17 @@ class Se {
857
859
  set to false.
858
860
  */
859
861
  enter(e, t, n = this.mode) {
860
- return this.buffer ? n & S.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
862
+ return this.buffer ? n & I.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
861
863
  }
862
864
  /**
863
865
  Move to the node's parent node, if this isn't the top node.
864
866
  */
865
867
  parent() {
866
868
  if (!this.buffer)
867
- return this.yieldNode(this.mode & S.IncludeAnonymous ? this._tree._parent : this._tree.parent);
869
+ return this.yieldNode(this.mode & I.IncludeAnonymous ? this._tree._parent : this._tree.parent);
868
870
  if (this.stack.length)
869
871
  return this.yieldBuf(this.stack.pop());
870
- let e = this.mode & S.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
872
+ let e = this.mode & I.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
871
873
  return this.buffer = null, this.yieldNode(e);
872
874
  }
873
875
  /**
@@ -923,8 +925,8 @@ class Se {
923
925
  for (; n; { index: t, _parent: n } = n)
924
926
  if (t > -1)
925
927
  for (let s = t + e, o = e < 0 ? -1 : n._tree.children.length; s != o; s += e) {
926
- let h = n._tree.children[s];
927
- if (this.mode & S.IncludeAnonymous || h instanceof G || !h.type.isAnonymous || Le(h))
928
+ let u = n._tree.children[s];
929
+ if (this.mode & I.IncludeAnonymous || u instanceof Z || !u.type.isAnonymous || ze(u))
928
930
  return !1;
929
931
  }
930
932
  return !0;
@@ -996,8 +998,8 @@ class Se {
996
998
  i = this.stack[--s];
997
999
  }
998
1000
  for (let i = n; i < this.stack.length; i++)
999
- t = new K(this.buffer, t, this.stack[i]);
1000
- return this.bufferNode = new K(this.buffer, t, this.index);
1001
+ t = new X(this.buffer, t, this.stack[i]);
1002
+ return this.bufferNode = new X(this.buffer, t, this.index);
1001
1003
  }
1002
1004
  /**
1003
1005
  Get the [tree](#common.Tree) that represents the current node, if
@@ -1037,11 +1039,11 @@ class Se {
1037
1039
  */
1038
1040
  matchContext(e) {
1039
1041
  if (!this.buffer)
1040
- return Ne(this.node, e);
1042
+ return Ie(this.node, e);
1041
1043
  let { buffer: t } = this.buffer, { types: n } = t.set;
1042
1044
  for (let i = e.length - 1, s = this.stack.length - 1; i >= 0; s--) {
1043
1045
  if (s < 0)
1044
- return Ne(this.node, e, i);
1046
+ return Ie(this.node, e, i);
1045
1047
  let o = n[t.buffer[this.stack[s]]];
1046
1048
  if (!o.isAnonymous) {
1047
1049
  if (e[i] && e[i] != o.name)
@@ -1052,200 +1054,200 @@ class Se {
1052
1054
  return !0;
1053
1055
  }
1054
1056
  }
1055
- function Le(r) {
1056
- return r.children.some((e) => e instanceof G || !e.type.isAnonymous || Le(e));
1057
+ function ze(r) {
1058
+ return r.children.some((e) => e instanceof Z || !e.type.isAnonymous || ze(e));
1057
1059
  }
1058
- function Bt(r) {
1060
+ function Mt(r) {
1059
1061
  var e;
1060
- let { buffer: t, nodeSet: n, maxBufferLength: i = Ct, reused: s = [], minRepeatType: o = n.types.length } = r, h = Array.isArray(t) ? new Be(t, t.length) : t, f = n.types, y = 0, x = 0;
1061
- function A(m, p, u, v, b, g) {
1062
- let { id: c, start: d, end: w, size: k } = h, I = x;
1062
+ let { buffer: t, nodeSet: n, maxBufferLength: i = It, reused: s = [], minRepeatType: o = n.types.length } = r, u = Array.isArray(t) ? new Oe(t, t.length) : t, f = n.types, x = 0, v = 0;
1063
+ function w(g, b, h, y, p, m) {
1064
+ let { id: d, start: c, end: C, size: k } = u, B = v;
1063
1065
  for (; k < 0; )
1064
- if (h.next(), k == -1) {
1065
- let U = s[c];
1066
- u.push(U), v.push(d - m);
1066
+ if (u.next(), k == -1) {
1067
+ let W = s[d];
1068
+ h.push(W), y.push(c - g);
1067
1069
  return;
1068
1070
  } else if (k == -3) {
1069
- y = c;
1071
+ x = d;
1070
1072
  return;
1071
1073
  } else if (k == -4) {
1072
- x = c;
1074
+ v = d;
1073
1075
  return;
1074
1076
  } else
1075
1077
  throw new RangeError(`Unrecognized record size: ${k}`);
1076
- let q = f[c], ee, F, ze = d - m;
1077
- if (w - d <= i && (F = ie(h.pos - p, b))) {
1078
- let U = new Uint16Array(F.size - F.skip), O = h.pos - F.size, j = U.length;
1079
- for (; h.pos > O; )
1080
- j = Z(F.start, U, j);
1081
- ee = new G(U, w - F.start, n), ze = F.start - m;
1078
+ let Q = f[d], ie, Y, Me = c - g;
1079
+ if (C - c <= i && (Y = R(u.pos - b, p))) {
1080
+ let W = new Uint16Array(Y.size - Y.skip), O = u.pos - Y.size, P = W.length;
1081
+ for (; u.pos > O; )
1082
+ P = D(Y.start, W, P);
1083
+ ie = new Z(W, C - Y.start, n), Me = Y.start - g;
1082
1084
  } else {
1083
- let U = h.pos - k;
1084
- h.next();
1085
- let O = [], j = [], X = c >= o ? c : -1, te = 0, le = w;
1086
- for (; h.pos > U; )
1087
- X >= 0 && h.id == X && h.size >= 0 ? (h.end <= le - i && (_(O, j, d, te, h.end, le, X, I), te = O.length, le = h.end), h.next()) : g > 2500 ? B(d, U, O, j) : A(d, U, O, j, X, g + 1);
1088
- if (X >= 0 && te > 0 && te < O.length && _(O, j, d, te, d, le, X, I), O.reverse(), j.reverse(), X > -1 && te > 0) {
1089
- let Ee = T(q);
1090
- ee = Oe(q, O, j, 0, O.length, 0, w - d, Ee, Ee);
1085
+ let W = u.pos - k;
1086
+ u.next();
1087
+ let O = [], P = [], ee = d >= o ? d : -1, se = 0, ge = C;
1088
+ for (; u.pos > W; )
1089
+ ee >= 0 && u.id == ee && u.size >= 0 ? (u.end <= ge - i && (N(O, P, c, se, u.end, ge, ee, B), se = O.length, ge = u.end), u.next()) : m > 2500 ? A(c, W, O, P) : w(c, W, O, P, ee, m + 1);
1090
+ if (ee >= 0 && se > 0 && se < O.length && N(O, P, c, se, c, ge, ee, B), O.reverse(), P.reverse(), ee > -1 && se > 0) {
1091
+ let Pe = L(Q);
1092
+ ie = Ee(Q, O, P, 0, O.length, 0, C - c, Pe, Pe);
1091
1093
  } else
1092
- ee = L(q, O, j, w - d, I - w);
1094
+ ie = M(Q, O, P, C - c, B - C);
1093
1095
  }
1094
- u.push(ee), v.push(ze);
1095
- }
1096
- function B(m, p, u, v) {
1097
- let b = [], g = 0, c = -1;
1098
- for (; h.pos > p; ) {
1099
- let { id: d, start: w, end: k, size: I } = h;
1100
- if (I > 4)
1101
- h.next();
1096
+ h.push(ie), y.push(Me);
1097
+ }
1098
+ function A(g, b, h, y) {
1099
+ let p = [], m = 0, d = -1;
1100
+ for (; u.pos > b; ) {
1101
+ let { id: c, start: C, end: k, size: B } = u;
1102
+ if (B > 4)
1103
+ u.next();
1102
1104
  else {
1103
- if (c > -1 && w < c)
1105
+ if (d > -1 && C < d)
1104
1106
  break;
1105
- c < 0 && (c = k - i), b.push(d, w, k), g++, h.next();
1107
+ d < 0 && (d = k - i), p.push(c, C, k), m++, u.next();
1106
1108
  }
1107
1109
  }
1108
- if (g) {
1109
- let d = new Uint16Array(g * 4), w = b[b.length - 2];
1110
- for (let k = b.length - 3, I = 0; k >= 0; k -= 3)
1111
- d[I++] = b[k], d[I++] = b[k + 1] - w, d[I++] = b[k + 2] - w, d[I++] = I;
1112
- u.push(new G(d, b[2] - w, n)), v.push(w - m);
1110
+ if (m) {
1111
+ let c = new Uint16Array(m * 4), C = p[p.length - 2];
1112
+ for (let k = p.length - 3, B = 0; k >= 0; k -= 3)
1113
+ c[B++] = p[k], c[B++] = p[k + 1] - C, c[B++] = p[k + 2] - C, c[B++] = B;
1114
+ h.push(new Z(c, p[2] - C, n)), y.push(C - g);
1113
1115
  }
1114
1116
  }
1115
- function T(m) {
1116
- return (p, u, v) => {
1117
- let b = 0, g = p.length - 1, c, d;
1118
- if (g >= 0 && (c = p[g]) instanceof D) {
1119
- if (!g && c.type == m && c.length == v)
1120
- return c;
1121
- (d = c.prop(C.lookAhead)) && (b = u[g] + c.length + d);
1117
+ function L(g) {
1118
+ return (b, h, y) => {
1119
+ let p = 0, m = b.length - 1, d, c;
1120
+ if (m >= 0 && (d = b[m]) instanceof V) {
1121
+ if (!m && d.type == g && d.length == y)
1122
+ return d;
1123
+ (c = d.prop(_.lookAhead)) && (p = h[m] + d.length + c);
1122
1124
  }
1123
- return L(m, p, u, v, b);
1125
+ return M(g, b, h, y, p);
1124
1126
  };
1125
1127
  }
1126
- function _(m, p, u, v, b, g, c, d) {
1127
- let w = [], k = [];
1128
- for (; m.length > v; )
1129
- w.push(m.pop()), k.push(p.pop() + u - b);
1130
- m.push(L(n.types[c], w, k, g - b, d - g)), p.push(b - u);
1128
+ function N(g, b, h, y, p, m, d, c) {
1129
+ let C = [], k = [];
1130
+ for (; g.length > y; )
1131
+ C.push(g.pop()), k.push(b.pop() + h - p);
1132
+ g.push(M(n.types[d], C, k, m - p, c - m)), b.push(p - h);
1131
1133
  }
1132
- function L(m, p, u, v, b = 0, g) {
1133
- if (y) {
1134
- let c = [C.contextHash, y];
1135
- g = g ? [c].concat(g) : [c];
1134
+ function M(g, b, h, y, p = 0, m) {
1135
+ if (x) {
1136
+ let d = [_.contextHash, x];
1137
+ m = m ? [d].concat(m) : [d];
1136
1138
  }
1137
- if (b > 25) {
1138
- let c = [C.lookAhead, b];
1139
- g = g ? [c].concat(g) : [c];
1139
+ if (p > 25) {
1140
+ let d = [_.lookAhead, p];
1141
+ m = m ? [d].concat(m) : [d];
1140
1142
  }
1141
- return new D(m, p, u, v, g);
1143
+ return new V(g, b, h, y, m);
1142
1144
  }
1143
- function ie(m, p) {
1144
- let u = h.fork(), v = 0, b = 0, g = 0, c = u.end - i, d = { size: 0, start: 0, skip: 0 };
1145
+ function R(g, b) {
1146
+ let h = u.fork(), y = 0, p = 0, m = 0, d = h.end - i, c = { size: 0, start: 0, skip: 0 };
1145
1147
  e:
1146
- for (let w = u.pos - m; u.pos > w; ) {
1147
- let k = u.size;
1148
- if (u.id == p && k >= 0) {
1149
- d.size = v, d.start = b, d.skip = g, g += 4, v += 4, u.next();
1148
+ for (let C = h.pos - g; h.pos > C; ) {
1149
+ let k = h.size;
1150
+ if (h.id == b && k >= 0) {
1151
+ c.size = y, c.start = p, c.skip = m, m += 4, y += 4, h.next();
1150
1152
  continue;
1151
1153
  }
1152
- let I = u.pos - k;
1153
- if (k < 0 || I < w || u.start < c)
1154
+ let B = h.pos - k;
1155
+ if (k < 0 || B < C || h.start < d)
1154
1156
  break;
1155
- let q = u.id >= o ? 4 : 0, ee = u.start;
1156
- for (u.next(); u.pos > I; ) {
1157
- if (u.size < 0)
1158
- if (u.size == -3)
1159
- q += 4;
1157
+ let Q = h.id >= o ? 4 : 0, ie = h.start;
1158
+ for (h.next(); h.pos > B; ) {
1159
+ if (h.size < 0)
1160
+ if (h.size == -3)
1161
+ Q += 4;
1160
1162
  else
1161
1163
  break e;
1162
1164
  else
1163
- u.id >= o && (q += 4);
1164
- u.next();
1165
+ h.id >= o && (Q += 4);
1166
+ h.next();
1165
1167
  }
1166
- b = ee, v += k, g += q;
1168
+ p = ie, y += k, m += Q;
1167
1169
  }
1168
- return (p < 0 || v == m) && (d.size = v, d.start = b, d.skip = g), d.size > 4 ? d : void 0;
1169
- }
1170
- function Z(m, p, u) {
1171
- let { id: v, start: b, end: g, size: c } = h;
1172
- if (h.next(), c >= 0 && v < o) {
1173
- let d = u;
1174
- if (c > 4) {
1175
- let w = h.pos - (c - 4);
1176
- for (; h.pos > w; )
1177
- u = Z(m, p, u);
1170
+ return (b < 0 || y == g) && (c.size = y, c.start = p, c.skip = m), c.size > 4 ? c : void 0;
1171
+ }
1172
+ function D(g, b, h) {
1173
+ let { id: y, start: p, end: m, size: d } = u;
1174
+ if (u.next(), d >= 0 && y < o) {
1175
+ let c = h;
1176
+ if (d > 4) {
1177
+ let C = u.pos - (d - 4);
1178
+ for (; u.pos > C; )
1179
+ h = D(g, b, h);
1178
1180
  }
1179
- p[--u] = d, p[--u] = g - m, p[--u] = b - m, p[--u] = v;
1181
+ b[--h] = c, b[--h] = m - g, b[--h] = p - g, b[--h] = y;
1180
1182
  } else
1181
- c == -3 ? y = v : c == -4 && (x = v);
1182
- return u;
1183
+ d == -3 ? x = y : d == -4 && (v = y);
1184
+ return h;
1183
1185
  }
1184
- let E = [], N = [];
1185
- for (; h.pos > 0; )
1186
- A(r.start || 0, r.bufferStart || 0, E, N, -1, 0);
1187
- let P = (e = r.length) !== null && e !== void 0 ? e : E.length ? N[0] + E[0].length : 0;
1188
- return new D(f[r.topID], E.reverse(), N.reverse(), P);
1186
+ let U = [], S = [];
1187
+ for (; u.pos > 0; )
1188
+ w(r.start || 0, r.bufferStart || 0, U, S, -1, 0);
1189
+ let J = (e = r.length) !== null && e !== void 0 ? e : U.length ? S[0] + U[0].length : 0;
1190
+ return new V(f[r.topID], U.reverse(), S.reverse(), J);
1189
1191
  }
1190
1192
  const Ue = /* @__PURE__ */ new WeakMap();
1191
- function ge(r, e) {
1192
- if (!r.isAnonymous || e instanceof G || e.type != r)
1193
+ function Ce(r, e) {
1194
+ if (!r.isAnonymous || e instanceof Z || e.type != r)
1193
1195
  return 1;
1194
1196
  let t = Ue.get(e);
1195
1197
  if (t == null) {
1196
1198
  t = 1;
1197
1199
  for (let n of e.children) {
1198
- if (n.type != r || !(n instanceof D)) {
1200
+ if (n.type != r || !(n instanceof V)) {
1199
1201
  t = 1;
1200
1202
  break;
1201
1203
  }
1202
- t += ge(r, n);
1204
+ t += Ce(r, n);
1203
1205
  }
1204
1206
  Ue.set(e, t);
1205
1207
  }
1206
1208
  return t;
1207
1209
  }
1208
- function Oe(r, e, t, n, i, s, o, h, f) {
1209
- let y = 0;
1210
- for (let _ = n; _ < i; _++)
1211
- y += ge(r, e[_]);
1212
- let x = Math.ceil(
1213
- y * 1.5 / 8
1210
+ function Ee(r, e, t, n, i, s, o, u, f) {
1211
+ let x = 0;
1212
+ for (let N = n; N < i; N++)
1213
+ x += Ce(r, e[N]);
1214
+ let v = Math.ceil(
1215
+ x * 1.5 / 8
1214
1216
  /* Balance.BranchFactor */
1215
- ), A = [], B = [];
1216
- function T(_, L, ie, Z, E) {
1217
- for (let N = ie; N < Z; ) {
1218
- let P = N, m = L[N], p = ge(r, _[N]);
1219
- for (N++; N < Z; N++) {
1220
- let u = ge(r, _[N]);
1221
- if (p + u >= x)
1217
+ ), w = [], A = [];
1218
+ function L(N, M, R, D, U) {
1219
+ for (let S = R; S < D; ) {
1220
+ let J = S, g = M[S], b = Ce(r, N[S]);
1221
+ for (S++; S < D; S++) {
1222
+ let h = Ce(r, N[S]);
1223
+ if (b + h >= v)
1222
1224
  break;
1223
- p += u;
1225
+ b += h;
1224
1226
  }
1225
- if (N == P + 1) {
1226
- if (p > x) {
1227
- let u = _[P];
1228
- T(u.children, u.positions, 0, u.children.length, L[P] + E);
1227
+ if (S == J + 1) {
1228
+ if (b > v) {
1229
+ let h = N[J];
1230
+ L(h.children, h.positions, 0, h.children.length, M[J] + U);
1229
1231
  continue;
1230
1232
  }
1231
- A.push(_[P]);
1233
+ w.push(N[J]);
1232
1234
  } else {
1233
- let u = L[N - 1] + _[N - 1].length - m;
1234
- A.push(Oe(r, _, L, P, N, m, u, null, f));
1235
+ let h = M[S - 1] + N[S - 1].length - g;
1236
+ w.push(Ee(r, N, M, J, S, g, h, null, f));
1235
1237
  }
1236
- B.push(m + E - s);
1238
+ A.push(g + U - s);
1237
1239
  }
1238
1240
  }
1239
- return T(e, t, n, i, 0), (h || f)(A, B, o);
1241
+ return L(e, t, n, i, 0), (u || f)(w, A, o);
1240
1242
  }
1241
- new C({ perNode: !0 });
1242
- let Lt = 0;
1243
+ new _({ perNode: !0 });
1244
+ let Pt = 0;
1243
1245
  class H {
1244
1246
  /**
1245
1247
  @internal
1246
1248
  */
1247
1249
  constructor(e, t, n) {
1248
- this.set = e, this.base = t, this.modified = n, this.id = Lt++;
1250
+ this.set = e, this.base = t, this.modified = n, this.id = Pt++;
1249
1251
  }
1250
1252
  /**
1251
1253
  Define a new tag. If `parent` is given, the tag is treated as a
@@ -1276,44 +1278,44 @@ class H {
1276
1278
  `m1(m3(t1)`, and so on.
1277
1279
  */
1278
1280
  static defineModifier() {
1279
- let e = new be();
1280
- return (t) => t.modified.indexOf(e) > -1 ? t : be.get(t.base || t, t.modified.concat(e).sort((n, i) => n.id - i.id));
1281
+ let e = new we();
1282
+ return (t) => t.modified.indexOf(e) > -1 ? t : we.get(t.base || t, t.modified.concat(e).sort((n, i) => n.id - i.id));
1281
1283
  }
1282
1284
  }
1283
- let Ot = 0;
1284
- class be {
1285
+ let $t = 0;
1286
+ class we {
1285
1287
  constructor() {
1286
- this.instances = [], this.id = Ot++;
1288
+ this.instances = [], this.id = $t++;
1287
1289
  }
1288
1290
  static get(e, t) {
1289
1291
  if (!t.length)
1290
1292
  return e;
1291
- let n = t[0].instances.find((h) => h.base == e && zt(t, h.modified));
1293
+ let n = t[0].instances.find((u) => u.base == e && Tt(t, u.modified));
1292
1294
  if (n)
1293
1295
  return n;
1294
1296
  let i = [], s = new H(i, e, t);
1295
- for (let h of t)
1296
- h.instances.push(s);
1297
- let o = Et(t);
1298
- for (let h of e.set)
1299
- if (!h.modified.length)
1297
+ for (let u of t)
1298
+ u.instances.push(s);
1299
+ let o = jt(t);
1300
+ for (let u of e.set)
1301
+ if (!u.modified.length)
1300
1302
  for (let f of o)
1301
- i.push(be.get(h, f));
1303
+ i.push(we.get(u, f));
1302
1304
  return s;
1303
1305
  }
1304
1306
  }
1305
- function zt(r, e) {
1307
+ function Tt(r, e) {
1306
1308
  return r.length == e.length && r.every((t, n) => t == e[n]);
1307
1309
  }
1308
- function Et(r) {
1310
+ function jt(r) {
1309
1311
  let e = [[]];
1310
1312
  for (let t = 0; t < r.length; t++)
1311
1313
  for (let n = 0, i = e.length; n < i; n++)
1312
1314
  e.push(e[n].concat(r[t]));
1313
1315
  return e.sort((t, n) => n.length - t.length);
1314
1316
  }
1315
- new C();
1316
- function Tt(r, e) {
1317
+ new _();
1318
+ function Ht(r, e) {
1317
1319
  let t = /* @__PURE__ */ Object.create(null);
1318
1320
  for (let s of r)
1319
1321
  if (!Array.isArray(s.tag))
@@ -1325,11 +1327,11 @@ function Tt(r, e) {
1325
1327
  return {
1326
1328
  style: (s) => {
1327
1329
  let o = i;
1328
- for (let h of s)
1329
- for (let f of h.set) {
1330
- let y = t[f.id];
1331
- if (y) {
1332
- o = o ? o + " " + y : y;
1330
+ for (let u of s)
1331
+ for (let f of u.set) {
1332
+ let x = t[f.id];
1333
+ if (x) {
1334
+ o = o ? o + " " + x : x;
1333
1335
  break;
1334
1336
  }
1335
1337
  }
@@ -1338,31 +1340,31 @@ function Tt(r, e) {
1338
1340
  scope: n
1339
1341
  };
1340
1342
  }
1341
- const a = H.define, fe = a(), W = a(), Je = a(W), We = a(W), $ = a(), ce = a($), _e = a($), R = a(), Y = a(R), M = a(), V = a(), Ae = a(), se = a(Ae), de = a(), l = {
1343
+ const a = H.define, ye = a(), q = a(), Je = a(q), We = a(q), F = a(), xe = a(F), Se = a(F), j = a(), te = a(j), $ = a(), T = a(), Le = a(), de = a(Le), ke = a(), l = {
1342
1344
  /**
1343
1345
  A comment.
1344
1346
  */
1345
- comment: fe,
1347
+ comment: ye,
1346
1348
  /**
1347
1349
  A line [comment](#highlight.tags.comment).
1348
1350
  */
1349
- lineComment: a(fe),
1351
+ lineComment: a(ye),
1350
1352
  /**
1351
1353
  A block [comment](#highlight.tags.comment).
1352
1354
  */
1353
- blockComment: a(fe),
1355
+ blockComment: a(ye),
1354
1356
  /**
1355
1357
  A documentation [comment](#highlight.tags.comment).
1356
1358
  */
1357
- docComment: a(fe),
1359
+ docComment: a(ye),
1358
1360
  /**
1359
1361
  Any kind of identifier.
1360
1362
  */
1361
- name: W,
1363
+ name: q,
1362
1364
  /**
1363
1365
  The [name](#highlight.tags.name) of a variable.
1364
1366
  */
1365
- variableName: a(W),
1367
+ variableName: a(q),
1366
1368
  /**
1367
1369
  A type [name](#highlight.tags.name).
1368
1370
  */
@@ -1382,253 +1384,253 @@ const a = H.define, fe = a(), W = a(), Je = a(W), We = a(W), $ = a(), ce = a($),
1382
1384
  /**
1383
1385
  The [name](#highlight.tags.name) of a class.
1384
1386
  */
1385
- className: a(W),
1387
+ className: a(q),
1386
1388
  /**
1387
1389
  A label [name](#highlight.tags.name).
1388
1390
  */
1389
- labelName: a(W),
1391
+ labelName: a(q),
1390
1392
  /**
1391
1393
  A namespace [name](#highlight.tags.name).
1392
1394
  */
1393
- namespace: a(W),
1395
+ namespace: a(q),
1394
1396
  /**
1395
1397
  The [name](#highlight.tags.name) of a macro.
1396
1398
  */
1397
- macroName: a(W),
1399
+ macroName: a(q),
1398
1400
  /**
1399
1401
  A literal value.
1400
1402
  */
1401
- literal: $,
1403
+ literal: F,
1402
1404
  /**
1403
1405
  A string [literal](#highlight.tags.literal).
1404
1406
  */
1405
- string: ce,
1407
+ string: xe,
1406
1408
  /**
1407
1409
  A documentation [string](#highlight.tags.string).
1408
1410
  */
1409
- docString: a(ce),
1411
+ docString: a(xe),
1410
1412
  /**
1411
1413
  A character literal (subtag of [string](#highlight.tags.string)).
1412
1414
  */
1413
- character: a(ce),
1415
+ character: a(xe),
1414
1416
  /**
1415
1417
  An attribute value (subtag of [string](#highlight.tags.string)).
1416
1418
  */
1417
- attributeValue: a(ce),
1419
+ attributeValue: a(xe),
1418
1420
  /**
1419
1421
  A number [literal](#highlight.tags.literal).
1420
1422
  */
1421
- number: _e,
1423
+ number: Se,
1422
1424
  /**
1423
1425
  An integer [number](#highlight.tags.number) literal.
1424
1426
  */
1425
- integer: a(_e),
1427
+ integer: a(Se),
1426
1428
  /**
1427
1429
  A floating-point [number](#highlight.tags.number) literal.
1428
1430
  */
1429
- float: a(_e),
1431
+ float: a(Se),
1430
1432
  /**
1431
1433
  A boolean [literal](#highlight.tags.literal).
1432
1434
  */
1433
- bool: a($),
1435
+ bool: a(F),
1434
1436
  /**
1435
1437
  Regular expression [literal](#highlight.tags.literal).
1436
1438
  */
1437
- regexp: a($),
1439
+ regexp: a(F),
1438
1440
  /**
1439
1441
  An escape [literal](#highlight.tags.literal), for example a
1440
1442
  backslash escape in a string.
1441
1443
  */
1442
- escape: a($),
1444
+ escape: a(F),
1443
1445
  /**
1444
1446
  A color [literal](#highlight.tags.literal).
1445
1447
  */
1446
- color: a($),
1448
+ color: a(F),
1447
1449
  /**
1448
1450
  A URL [literal](#highlight.tags.literal).
1449
1451
  */
1450
- url: a($),
1452
+ url: a(F),
1451
1453
  /**
1452
1454
  A language keyword.
1453
1455
  */
1454
- keyword: M,
1456
+ keyword: $,
1455
1457
  /**
1456
1458
  The [keyword](#highlight.tags.keyword) for the self or this
1457
1459
  object.
1458
1460
  */
1459
- self: a(M),
1461
+ self: a($),
1460
1462
  /**
1461
1463
  The [keyword](#highlight.tags.keyword) for null.
1462
1464
  */
1463
- null: a(M),
1465
+ null: a($),
1464
1466
  /**
1465
1467
  A [keyword](#highlight.tags.keyword) denoting some atomic value.
1466
1468
  */
1467
- atom: a(M),
1469
+ atom: a($),
1468
1470
  /**
1469
1471
  A [keyword](#highlight.tags.keyword) that represents a unit.
1470
1472
  */
1471
- unit: a(M),
1473
+ unit: a($),
1472
1474
  /**
1473
1475
  A modifier [keyword](#highlight.tags.keyword).
1474
1476
  */
1475
- modifier: a(M),
1477
+ modifier: a($),
1476
1478
  /**
1477
1479
  A [keyword](#highlight.tags.keyword) that acts as an operator.
1478
1480
  */
1479
- operatorKeyword: a(M),
1481
+ operatorKeyword: a($),
1480
1482
  /**
1481
1483
  A control-flow related [keyword](#highlight.tags.keyword).
1482
1484
  */
1483
- controlKeyword: a(M),
1485
+ controlKeyword: a($),
1484
1486
  /**
1485
1487
  A [keyword](#highlight.tags.keyword) that defines something.
1486
1488
  */
1487
- definitionKeyword: a(M),
1489
+ definitionKeyword: a($),
1488
1490
  /**
1489
1491
  A [keyword](#highlight.tags.keyword) related to defining or
1490
1492
  interfacing with modules.
1491
1493
  */
1492
- moduleKeyword: a(M),
1494
+ moduleKeyword: a($),
1493
1495
  /**
1494
1496
  An operator.
1495
1497
  */
1496
- operator: V,
1498
+ operator: T,
1497
1499
  /**
1498
1500
  An [operator](#highlight.tags.operator) that dereferences something.
1499
1501
  */
1500
- derefOperator: a(V),
1502
+ derefOperator: a(T),
1501
1503
  /**
1502
1504
  Arithmetic-related [operator](#highlight.tags.operator).
1503
1505
  */
1504
- arithmeticOperator: a(V),
1506
+ arithmeticOperator: a(T),
1505
1507
  /**
1506
1508
  Logical [operator](#highlight.tags.operator).
1507
1509
  */
1508
- logicOperator: a(V),
1510
+ logicOperator: a(T),
1509
1511
  /**
1510
1512
  Bit [operator](#highlight.tags.operator).
1511
1513
  */
1512
- bitwiseOperator: a(V),
1514
+ bitwiseOperator: a(T),
1513
1515
  /**
1514
1516
  Comparison [operator](#highlight.tags.operator).
1515
1517
  */
1516
- compareOperator: a(V),
1518
+ compareOperator: a(T),
1517
1519
  /**
1518
1520
  [Operator](#highlight.tags.operator) that updates its operand.
1519
1521
  */
1520
- updateOperator: a(V),
1522
+ updateOperator: a(T),
1521
1523
  /**
1522
1524
  [Operator](#highlight.tags.operator) that defines something.
1523
1525
  */
1524
- definitionOperator: a(V),
1526
+ definitionOperator: a(T),
1525
1527
  /**
1526
1528
  Type-related [operator](#highlight.tags.operator).
1527
1529
  */
1528
- typeOperator: a(V),
1530
+ typeOperator: a(T),
1529
1531
  /**
1530
1532
  Control-flow [operator](#highlight.tags.operator).
1531
1533
  */
1532
- controlOperator: a(V),
1534
+ controlOperator: a(T),
1533
1535
  /**
1534
1536
  Program or markup punctuation.
1535
1537
  */
1536
- punctuation: Ae,
1538
+ punctuation: Le,
1537
1539
  /**
1538
1540
  [Punctuation](#highlight.tags.punctuation) that separates
1539
1541
  things.
1540
1542
  */
1541
- separator: a(Ae),
1543
+ separator: a(Le),
1542
1544
  /**
1543
1545
  Bracket-style [punctuation](#highlight.tags.punctuation).
1544
1546
  */
1545
- bracket: se,
1547
+ bracket: de,
1546
1548
  /**
1547
1549
  Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
1548
1550
  tokens).
1549
1551
  */
1550
- angleBracket: a(se),
1552
+ angleBracket: a(de),
1551
1553
  /**
1552
1554
  Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
1553
1555
  tokens).
1554
1556
  */
1555
- squareBracket: a(se),
1557
+ squareBracket: a(de),
1556
1558
  /**
1557
1559
  Parentheses (usually `(` and `)` tokens). Subtag of
1558
1560
  [bracket](#highlight.tags.bracket).
1559
1561
  */
1560
- paren: a(se),
1562
+ paren: a(de),
1561
1563
  /**
1562
1564
  Braces (usually `{` and `}` tokens). Subtag of
1563
1565
  [bracket](#highlight.tags.bracket).
1564
1566
  */
1565
- brace: a(se),
1567
+ brace: a(de),
1566
1568
  /**
1567
1569
  Content, for example plain text in XML or markup documents.
1568
1570
  */
1569
- content: R,
1571
+ content: j,
1570
1572
  /**
1571
1573
  [Content](#highlight.tags.content) that represents a heading.
1572
1574
  */
1573
- heading: Y,
1575
+ heading: te,
1574
1576
  /**
1575
1577
  A level 1 [heading](#highlight.tags.heading).
1576
1578
  */
1577
- heading1: a(Y),
1579
+ heading1: a(te),
1578
1580
  /**
1579
1581
  A level 2 [heading](#highlight.tags.heading).
1580
1582
  */
1581
- heading2: a(Y),
1583
+ heading2: a(te),
1582
1584
  /**
1583
1585
  A level 3 [heading](#highlight.tags.heading).
1584
1586
  */
1585
- heading3: a(Y),
1587
+ heading3: a(te),
1586
1588
  /**
1587
1589
  A level 4 [heading](#highlight.tags.heading).
1588
1590
  */
1589
- heading4: a(Y),
1591
+ heading4: a(te),
1590
1592
  /**
1591
1593
  A level 5 [heading](#highlight.tags.heading).
1592
1594
  */
1593
- heading5: a(Y),
1595
+ heading5: a(te),
1594
1596
  /**
1595
1597
  A level 6 [heading](#highlight.tags.heading).
1596
1598
  */
1597
- heading6: a(Y),
1599
+ heading6: a(te),
1598
1600
  /**
1599
1601
  A prose separator (such as a horizontal rule).
1600
1602
  */
1601
- contentSeparator: a(R),
1603
+ contentSeparator: a(j),
1602
1604
  /**
1603
1605
  [Content](#highlight.tags.content) that represents a list.
1604
1606
  */
1605
- list: a(R),
1607
+ list: a(j),
1606
1608
  /**
1607
1609
  [Content](#highlight.tags.content) that represents a quote.
1608
1610
  */
1609
- quote: a(R),
1611
+ quote: a(j),
1610
1612
  /**
1611
1613
  [Content](#highlight.tags.content) that is emphasized.
1612
1614
  */
1613
- emphasis: a(R),
1615
+ emphasis: a(j),
1614
1616
  /**
1615
1617
  [Content](#highlight.tags.content) that is styled strong.
1616
1618
  */
1617
- strong: a(R),
1619
+ strong: a(j),
1618
1620
  /**
1619
1621
  [Content](#highlight.tags.content) that is part of a link.
1620
1622
  */
1621
- link: a(R),
1623
+ link: a(j),
1622
1624
  /**
1623
1625
  [Content](#highlight.tags.content) that is styled as code or
1624
1626
  monospace.
1625
1627
  */
1626
- monospace: a(R),
1628
+ monospace: a(j),
1627
1629
  /**
1628
1630
  [Content](#highlight.tags.content) that has a strike-through
1629
1631
  style.
1630
1632
  */
1631
- strikethrough: a(R),
1633
+ strikethrough: a(j),
1632
1634
  /**
1633
1635
  Inserted text in a change-tracking format.
1634
1636
  */
@@ -1648,22 +1650,22 @@ const a = H.define, fe = a(), W = a(), Je = a(W), We = a(W), $ = a(), ce = a($),
1648
1650
  /**
1649
1651
  Metadata or meta-instruction.
1650
1652
  */
1651
- meta: de,
1653
+ meta: ke,
1652
1654
  /**
1653
1655
  [Metadata](#highlight.tags.meta) that applies to the entire
1654
1656
  document.
1655
1657
  */
1656
- documentMeta: a(de),
1658
+ documentMeta: a(ke),
1657
1659
  /**
1658
1660
  [Metadata](#highlight.tags.meta) that annotates or adds
1659
1661
  attributes to a given syntactic element.
1660
1662
  */
1661
- annotation: a(de),
1663
+ annotation: a(ke),
1662
1664
  /**
1663
1665
  Processing instruction or preprocessor directive. Subtag of
1664
1666
  [meta](#highlight.tags.meta).
1665
1667
  */
1666
- processingInstruction: a(de),
1668
+ processingInstruction: a(ke),
1667
1669
  /**
1668
1670
  [Modifier](#highlight.Tag^defineModifier) that indicates that a
1669
1671
  given element is being defined. Expected to be used with the
@@ -1704,7 +1706,7 @@ const a = H.define, fe = a(), W = a(), Je = a(W), We = a(W), $ = a(), ce = a($),
1704
1706
  */
1705
1707
  special: H.defineModifier()
1706
1708
  };
1707
- Tt([
1709
+ Ht([
1708
1710
  { tag: l.link, class: "tok-link" },
1709
1711
  { tag: l.heading, class: "tok-heading" },
1710
1712
  { tag: l.emphasis, class: "tok-emphasis" },
@@ -1736,13 +1738,13 @@ Tt([
1736
1738
  { tag: l.invalid, class: "tok-invalid" },
1737
1739
  { tag: l.punctuation, class: "tok-punctuation" }
1738
1740
  ]);
1739
- const Pt = "#c72727", jt = "#9b5700", Mt = "#067934", Vt = "#0063d7", Rt = {
1740
- red: Pt,
1741
- orange: jt,
1742
- green: Mt,
1743
- blue: Vt,
1741
+ const Vt = "#c72727", Rt = "#9b5700", Dt = "#067934", Ut = "#0063d7", Jt = {
1742
+ red: Vt,
1743
+ orange: Rt,
1744
+ green: Dt,
1745
+ blue: Ut,
1744
1746
  invalid: "#ffffff"
1745
- }, Ht = (r) => ht.define([
1747
+ }, Wt = (r) => gt.define([
1746
1748
  {
1747
1749
  tag: l.keyword,
1748
1750
  color: r.red
@@ -1809,45 +1811,78 @@ const Pt = "#c72727", jt = "#9b5700", Mt = "#067934", Vt = "#0063d7", Rt = {
1809
1811
  tag: l.invalid,
1810
1812
  color: r.invalid
1811
1813
  }
1812
- ]), Dt = at(Ht(Rt));
1813
- var re = /* @__PURE__ */ ((r) => (r.INLINE = "inline", r.SINGLELINE = "singleline", r.MULTILINE = "multiline", r))(re || {}), Q = /* @__PURE__ */ ((r) => (r.JSON = "json", r.XML = "xml", r.JAVA = "java", r.JAVASCRIPT = "javascript", r))(Q || {}), Ie = /* @__PURE__ */ ((r) => (r.ACTION = "action", r))(Ie || {});
1814
- const Ut = {
1815
- [Q.JSON]: ut,
1816
- [Q.XML]: ft,
1817
- [Q.JAVASCRIPT]: ct,
1818
- [Q.JAVA]: dt
1819
- }, Jt = (r) => ({
1820
- loadLang: async () => Ut[r]
1821
- }), $e = {
1814
+ ]), Gt = pt(Wt(Jt));
1815
+ var _e = /* @__PURE__ */ ((r) => (r.INLINE = "inline", r.SINGLELINE = "singleline", r.MULTILINE = "multiline", r))(_e || {}), re = /* @__PURE__ */ ((r) => (r.JSON = "json", r.XML = "xml", r.JAVA = "java", r.JAVASCRIPT = "javascript", r))(re || {}), ce = /* @__PURE__ */ ((r) => (r.ACTION = "action", r.CHANGE = "change", r))(ce || {});
1816
+ const Kt = {
1817
+ [re.JSON]: mt,
1818
+ [re.XML]: bt,
1819
+ [re.JAVASCRIPT]: yt,
1820
+ [re.JAVA]: xt
1821
+ }, qt = (r) => ({
1822
+ loadLang: async () => Kt[r]
1823
+ });
1824
+ let Ge = 0;
1825
+ const Ft = {
1826
+ beforeCreate() {
1827
+ this.uuid = Ge.toString(), Ge += 1;
1828
+ }
1829
+ }, tt = (r) => (Fe("data-v-012ee7f3"), r = r(), Xe(), r), Xt = { key: 0 }, Zt = /* @__PURE__ */ tt(() => /* @__PURE__ */ le("path", {
1830
+ fill: "#00112C",
1831
+ "fill-rule": "evenodd",
1832
+ d: "M14 1.25H10C9.58579 1.25 9.25 1.58579 9.25 2C9.25 2.41421 9.58579 2.75 10 2.75H12.1893L9.46967 5.46967C9.17678 5.76256 9.17678 6.23744 9.46967 6.53033C9.76256 6.82322 10.2374 6.82322 10.5303 6.53033L13.25 3.81066V6C13.25 6.41421 13.5858 6.75 14 6.75C14.4142 6.75 14.75 6.41421 14.75 6V2C14.75 1.80806 14.6768 1.61612 14.5303 1.46967C14.4584 1.39776 14.3755 1.34351 14.2871 1.30691C14.1987 1.27024 14.1017 1.25 14 1.25Z",
1833
+ "clip-rule": "evenodd"
1834
+ }, null, -1)), Qt = /* @__PURE__ */ tt(() => /* @__PURE__ */ le("path", {
1835
+ fill: "#00112C",
1836
+ "fill-rule": "evenodd",
1837
+ d: "M1.25 10C1.25 9.58579 1.58579 9.25 2 9.25C2.41421 9.25 2.75 9.58579 2.75 10V12.1893L5.46967 9.46967C5.76256 9.17678 6.23744 9.17678 6.53033 9.46967C6.82322 9.76256 6.82322 10.2374 6.53033 10.5303L3.81066 13.25H6C6.41421 13.25 6.75 13.5858 6.75 14C6.75 14.4142 6.41421 14.75 6 14.75H2C1.80806 14.75 1.61612 14.6768 1.46967 14.5303C1.39776 14.4584 1.34351 14.3755 1.30691 14.2871C1.27024 14.1987 1.25 14.1017 1.25 14V10Z",
1838
+ "clip-rule": "evenodd"
1839
+ }, null, -1));
1840
+ function Yt(r, e, t, n, i, s) {
1841
+ return E(), oe("svg", qe({ role: "img" }, r.$attrs, {
1842
+ xmlns: "http://www.w3.org/2000/svg",
1843
+ width: "16",
1844
+ height: "16",
1845
+ fill: "none"
1846
+ }), [
1847
+ r.$attrs["svg-title"] ? (E(), oe("title", Xt, Ae(r.$attrs["svg-title"]), 1)) : ne("", !0),
1848
+ Zt,
1849
+ Qt
1850
+ ], 16);
1851
+ }
1852
+ const en = /* @__PURE__ */ Ze(Ft, [["render", Yt], ["__scopeId", "data-v-012ee7f3"]]), Ke = {
1822
1853
  "en-US": {
1823
- run: "Run"
1854
+ run: "Run",
1855
+ expand: "Expand"
1824
1856
  }
1825
- }, Wt = Fe({
1826
- i18n: { messages: $e },
1857
+ }, tn = nt({
1858
+ i18n: { messages: Ke },
1827
1859
  name: "bento-code-snippet",
1828
1860
  components: {
1829
- BentoTypography: bt,
1830
- BentoButton: gt,
1831
- BentoDropdown: pt,
1832
- Copy: vt
1861
+ BentoTypography: vt,
1862
+ BentoButton: _t,
1863
+ BentoDropdown: kt,
1864
+ Copy: At,
1865
+ BaseModal: Ct,
1866
+ BentoLoadingIndicator: Nt,
1867
+ ExpandIcon: en
1833
1868
  },
1834
- directives: { BentoTooltipDirective: xt },
1869
+ directives: { BentoTooltipDirective: wt },
1835
1870
  props: {
1836
1871
  /**
1837
1872
  * Defines the variant of code-snippet
1838
1873
  */
1839
1874
  variant: {
1840
1875
  type: String,
1841
- default: re.MULTILINE,
1842
- validator: (r) => Object.values(re).includes(r)
1876
+ default: _e.MULTILINE,
1877
+ validator: (r) => Object.values(_e).includes(r)
1843
1878
  },
1844
1879
  /**
1845
1880
  * Language name for syntax highlighting rules
1846
1881
  */
1847
1882
  lang: {
1848
1883
  type: String,
1849
- default: Q.JSON,
1850
- validator: (r) => Object.values(Q).includes(r)
1884
+ default: re.JSON,
1885
+ validator: (r) => Object.values(re).includes(r)
1851
1886
  },
1852
1887
  /**
1853
1888
  * Label to show in the action-bar, describing the language
@@ -1878,6 +1913,14 @@ const Ut = {
1878
1913
  type: Boolean,
1879
1914
  default: !1
1880
1915
  },
1916
+ /**
1917
+ * Displays a button that can expand the codeblock into a modal to easily
1918
+ * view large blocks of code.
1919
+ */
1920
+ expandable: {
1921
+ type: Boolean,
1922
+ default: !1
1923
+ },
1881
1924
  /**
1882
1925
  * Displays a button that when clicked will emit a run event
1883
1926
  * Leaves to the parent component the logic of what to do with it
@@ -1885,151 +1928,193 @@ const Ut = {
1885
1928
  actionableText: {
1886
1929
  type: String,
1887
1930
  default: "run"
1931
+ },
1932
+ /**
1933
+ * Toggles the loading indicator within the action bar
1934
+ */
1935
+ loading: {
1936
+ type: Boolean,
1937
+ default: !1
1888
1938
  }
1889
1939
  },
1890
- emits: [Ie.ACTION],
1940
+ emits: [ce.ACTION, ce.CHANGE],
1891
1941
  setup(r, { emit: e }) {
1892
- const { t } = kt({ messages: $e }), n = ye(null), i = [], s = () => {
1893
- }, o = xe(() => r.langLabel ?? r.lang.toUpperCase()), h = xe(() => ({
1894
- "b-code-snippet--inline": r.variant === re.INLINE,
1895
- "b-code-snippet--scrollable": r.variant !== re.INLINE
1896
- })), { loadLang: f } = Jt(r.lang), y = Te(), x = Te(), A = new Ce(), B = new Ce(), T = new Ce(), _ = ye(""), L = ye(0);
1897
- Xe(async () => {
1898
- const E = await f();
1899
- _.value = r.content;
1900
- const N = ({ state: p }) => {
1901
- _.value = p.doc.toString();
1902
- }, P = [
1903
- rt(),
1904
- it.of([ot]),
1905
- A.of(E()),
1906
- B.of(Dt),
1907
- T.of(Re.readOnly.of(!r.editable)),
1908
- Ve.updateListener.of((p) => N(p))
1942
+ const { t } = St({ messages: Ke }), n = me(null), i = [], s = () => {
1943
+ }, o = ae(() => r.langLabel ?? r.lang.toUpperCase()), u = ae(() => r.variant === _e.INLINE), f = ae(() => ({
1944
+ "b-code-snippet--inline": u.value,
1945
+ "b-code-snippet--scrollable": !u.value
1946
+ })), x = ae(() => ({
1947
+ "b-code-snippet__code-area-content--editable": r.editable
1948
+ })), { loadLang: v } = qt(r.lang), w = $e(), A = $e(), L = new Ne(), N = new Ne(), M = new Ne(), R = me(""), D = me(0);
1949
+ rt(async () => {
1950
+ const g = await v();
1951
+ R.value = r.content;
1952
+ const b = ({ state: p }) => {
1953
+ R.value = p.doc.toString();
1954
+ }, h = [
1955
+ ut(),
1956
+ ht.of([dt]),
1957
+ L.of(g()),
1958
+ N.of(Gt),
1959
+ M.of(Ve.readOnly.of(!r.editable)),
1960
+ He.updateListener.of((p) => b(p))
1909
1961
  ];
1910
- r.variant === "multiline" && P.push([st(), lt()]);
1911
- const m = Re.create({
1962
+ r.variant === "multiline" && h.push([ft(), ct()]);
1963
+ const y = Ve.create({
1912
1964
  doc: r.content,
1913
- extensions: [...P]
1965
+ extensions: [...h]
1914
1966
  });
1915
- L.value = m.doc.length, x.value = new Ve({
1916
- state: m,
1917
- parent: y.value
1967
+ D.value = y.doc.length, A.value = new He({
1968
+ state: y,
1969
+ parent: w.value
1918
1970
  });
1919
- }), Ye(
1971
+ }), it(
1920
1972
  () => r.content,
1921
1973
  () => {
1922
- const E = r.content.length;
1923
- x.value.dispatch({
1974
+ const g = r.content.length;
1975
+ A.value.dispatch({
1924
1976
  changes: {
1925
1977
  from: 0,
1926
- to: L.value,
1978
+ to: D.value,
1927
1979
  insert: r.content
1928
1980
  }
1929
- }), L.value = E;
1981
+ }), D.value = g;
1930
1982
  }
1931
1983
  );
1932
- const ie = xe(() => t(r.actionableText));
1984
+ const U = ae(() => t(r.actionableText)), S = () => {
1985
+ e(ce.ACTION, R.value);
1986
+ };
1987
+ st(() => {
1988
+ e(ce.CHANGE, R.value);
1989
+ });
1990
+ const J = me(!1);
1933
1991
  return {
1934
- // Enums
1935
- BentoTypographyElement: yt,
1936
- BentoButtonVariant: mt,
1937
- BentoCodeSnippetVariant: re,
1938
1992
  // Values
1939
- container: y,
1940
- editor: x,
1941
- currentContents: _,
1942
- conditionalClasses: h,
1943
1993
  availableLanguages: i,
1994
+ codeAreaContentConditionalClasses: x,
1995
+ conditionalClasses: f,
1996
+ container: w,
1997
+ currentContents: R,
1944
1998
  displayedLang: o,
1999
+ editor: A,
1945
2000
  selectedLanguage: n,
2001
+ showModal: J,
2002
+ isInlineVariant: u,
1946
2003
  // Methods
1947
2004
  handleChangeLanguage: s,
1948
- runText: ie,
1949
- onActionClicked: () => {
1950
- e(Ie.ACTION, _);
1951
- }
2005
+ onActionClicked: S,
2006
+ runText: U,
2007
+ // Translations
2008
+ t
1952
2009
  };
1953
2010
  }
1954
2011
  });
1955
- const $t = (r) => (tt("data-v-170f3059"), r = r(), nt(), r), Kt = {
2012
+ const nn = (r) => (Fe("data-v-c3034448"), r = r(), Xe(), r), rn = {
1956
2013
  key: 0,
1957
2014
  class: "b-code-snippet__action-bar"
1958
- }, Gt = { class: "b-code-snippet__action-bar--start" }, qt = { class: "b-code-snippet__action-bar--end" }, Ft = {
2015
+ }, sn = { class: "b-code-snippet__action-bar--start" }, on = { class: "b-code-snippet__action-bar--end" }, ln = {
1959
2016
  key: 1,
1960
2017
  class: "b-code-snippet__code-area"
1961
- }, Xt = {
1962
- ref: "container",
1963
- class: "b-code-snippet__code-area-content"
1964
- }, Yt = { key: 2 }, Qt = /* @__PURE__ */ $t(() => /* @__PURE__ */ pe("div", { class: "b-code-snippet__empty-state" }, "Nothing to show", -1));
1965
- function Zt(r, e, t, n, i, s) {
1966
- const o = ae("bento-dropdown"), h = ae("bento-typography"), f = ae("copy"), y = ae("bento-button");
1967
- return ne(), he("div", {
1968
- class: Qe(["b-code-snippet", r.conditionalClasses])
2018
+ }, an = { key: 2 }, un = /* @__PURE__ */ nn(() => /* @__PURE__ */ le("div", { class: "b-code-snippet__empty-state" }, "Nothing to show", -1));
2019
+ function hn(r, e, t, n, i, s) {
2020
+ const o = K("bento-dropdown"), u = K("bento-typography"), f = K("bento-loading-indicator"), x = K("copy"), v = K("expand-icon"), w = K("bento-button"), A = K("bento-code-snippet"), L = K("base-modal");
2021
+ return E(), oe("div", {
2022
+ class: Te(["b-code-snippet", r.conditionalClasses])
1969
2023
  }, [
1970
- r.variant !== r.BentoCodeSnippetVariant.INLINE ? (ne(), he("section", Kt, [
1971
- pe("div", Gt, [
1972
- r.availableLanguages.length > 0 ? (ne(), Pe(o, Ze({
2024
+ r.isInlineVariant ? ne("", !0) : (E(), oe("section", rn, [
2025
+ le("div", sn, [
2026
+ r.availableLanguages.length > 0 ? (E(), ue(o, qe({
1973
2027
  key: 0,
1974
2028
  modelValue: r.selectedLanguage,
1975
- "onUpdate:modelValue": e[0] || (e[0] = (x) => r.selectedLanguage = x)
2029
+ "onUpdate:modelValue": e[0] || (e[0] = (N) => r.selectedLanguage = N)
1976
2030
  }, r.$props, {
1977
2031
  disabled: r.availableLanguages.length === 1,
1978
2032
  items: r.availableLanguages,
1979
2033
  class: "b-code-snippet__language-picker",
1980
2034
  onInput: r.handleChangeLanguage
1981
- }), null, 16, ["modelValue", "disabled", "items", "onInput"])) : ke("", !0),
1982
- ve(h, {
1983
- el: r.BentoTypographyElement.SPAN,
2035
+ }), null, 16, ["modelValue", "disabled", "items", "onInput"])) : ne("", !0),
2036
+ he(u, {
2037
+ el: "span",
1984
2038
  stronger: ""
1985
2039
  }, {
1986
- default: we(() => [
1987
- je(Me(r.displayedLang), 1)
2040
+ default: fe(() => [
2041
+ je(Ae(r.displayedLang), 1)
1988
2042
  ]),
1989
2043
  _: 1
1990
- }, 8, ["el"])
2044
+ })
1991
2045
  ]),
1992
- pe("div", qt, [
1993
- ve(f, {
2046
+ le("div", on, [
2047
+ r.loading ? (E(), ue(f, { key: 0 })) : ne("", !0),
2048
+ he(x, {
1994
2049
  class: "b-structured-list__icon",
1995
2050
  text: r.currentContents
1996
2051
  }, null, 8, ["text"]),
1997
- r.actionable ? (ne(), Pe(y, {
1998
- key: 0,
1999
- variant: r.BentoButtonVariant.PRIMARY,
2052
+ r.expandable ? (E(), ue(w, {
2053
+ key: 1,
2054
+ variant: "tertiary",
2055
+ condensed: "",
2056
+ "aria-label": r.t("expand"),
2057
+ onClick: e[1] || (e[1] = (N) => r.showModal = !0)
2058
+ }, {
2059
+ iconLeft: fe(() => [
2060
+ he(v)
2061
+ ]),
2062
+ _: 1
2063
+ }, 8, ["aria-label"])) : ne("", !0),
2064
+ r.actionable ? (E(), ue(w, {
2065
+ key: 2,
2066
+ variant: "primary",
2000
2067
  tertiary: "",
2001
2068
  condensed: "",
2002
2069
  onClick: r.onActionClicked
2003
2070
  }, {
2004
- iconLeft: we(() => [
2005
- ve(h, {
2006
- el: r.BentoTypographyElement.SPAN,
2071
+ iconLeft: fe(() => [
2072
+ he(u, {
2073
+ el: "span",
2007
2074
  class: "b-code-snippet__action-button"
2008
2075
  }, {
2009
- default: we(() => [
2010
- je(Me(r.runText), 1)
2076
+ default: fe(() => [
2077
+ je(Ae(r.runText), 1)
2011
2078
  ]),
2012
2079
  _: 1
2013
- }, 8, ["el"])
2080
+ })
2014
2081
  ]),
2015
2082
  _: 1
2016
- }, 8, ["variant", "onClick"])) : ke("", !0)
2083
+ }, 8, ["onClick"])) : ne("", !0)
2017
2084
  ])
2018
- ])) : ke("", !0),
2019
- r.content ? (ne(), he("code", Ft, [
2020
- pe("div", Xt, null, 512)
2021
- ])) : (ne(), he("section", Yt, [
2022
- et(r.$slots, "empty-state", {}, () => [
2023
- Qt
2085
+ ])),
2086
+ r.content ? (E(), oe("code", ln, [
2087
+ le("div", {
2088
+ ref: "container",
2089
+ class: Te(["b-code-snippet__code-area-content", r.codeAreaContentConditionalClasses])
2090
+ }, null, 2)
2091
+ ])) : (E(), oe("section", an, [
2092
+ ot(r.$slots, "empty-state", {}, () => [
2093
+ un
2024
2094
  ], !0)
2025
- ]))
2095
+ ])),
2096
+ r.expandable ? (E(), ue(L, {
2097
+ key: 3,
2098
+ class: "b-code-snippet__modal",
2099
+ "hide-close-button": !0,
2100
+ "custom-padding": "0px",
2101
+ "is-dismissible": !0,
2102
+ "is-open": r.showModal,
2103
+ size: "large",
2104
+ onCloseModal: e[2] || (e[2] = (N) => r.showModal = !1)
2105
+ }, {
2106
+ content: fe(() => [
2107
+ he(A, lt(at({ ...r.$props, expandable: !1 })), null, 16)
2108
+ ]),
2109
+ _: 1
2110
+ }, 8, ["is-open"])) : ne("", !0)
2026
2111
  ], 2);
2027
2112
  }
2028
- const bn = /* @__PURE__ */ wt(Wt, [["render", Zt], ["__scopeId", "data-v-170f3059"]]);
2113
+ const Bn = /* @__PURE__ */ Ze(tn, [["render", hn], ["__scopeId", "data-v-c3034448"]]);
2029
2114
  export {
2030
- bn as BentoCodeSnippet,
2031
- Ie as BentoCodeSnippetEvent,
2032
- Q as BentoCodeSnippetSupportedLanguage,
2033
- re as BentoCodeSnippetVariant
2115
+ Bn as BentoCodeSnippet,
2116
+ ce as BentoCodeSnippetEvent,
2117
+ re as BentoCodeSnippetSupportedLanguage,
2118
+ _e as BentoCodeSnippetVariant
2034
2119
  };
2035
2120
  //# sourceMappingURL=code-snippet.js.map