@verbb/plugin-kit-web 2.0.23 → 2.0.24

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 (445) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/chunks/{active-elements-DM_lCHaW.js → active-elements-739kISON.js} +1 -1
  3. package/dist/chunks/{active-elements-DM_lCHaW.js.map → active-elements-739kISON.js.map} +1 -1
  4. package/dist/chunks/{animate-with-class-NP-yJVt_.js → animate-with-class-CjTZI0NU.js} +1 -1
  5. package/dist/chunks/{animate-with-class-NP-yJVt_.js.map → animate-with-class-CjTZI0NU.js.map} +1 -1
  6. package/dist/chunks/{autoloader-DnSfHkrD.js → autoloader-DcwybeWc.js} +3 -3
  7. package/dist/chunks/{autoloader-DnSfHkrD.js.map → autoloader-DcwybeWc.js.map} +1 -1
  8. package/dist/chunks/{button-group-item.styles-G05d0DNI.js → button-group-item.styles-D7tuu-sr.js} +1 -1
  9. package/dist/chunks/{button-group-item.styles-G05d0DNI.js.map → button-group-item.styles-D7tuu-sr.js.map} +1 -1
  10. package/dist/chunks/{component-registry-DoevfR-u.js → component-registry-B5pnAZsb.js} +2 -1
  11. package/dist/chunks/{component-registry-DoevfR-u.js.map → component-registry-B5pnAZsb.js.map} +1 -1
  12. package/dist/chunks/{control-aria-CzouQRZD.js → control-aria-CtNg2izr.js} +1 -1
  13. package/dist/chunks/{control-aria-CzouQRZD.js.map → control-aria-CtNg2izr.js.map} +1 -1
  14. package/dist/chunks/{decorate-R0X811qp.js → decorate-Br_PE9pq.js} +3 -4
  15. package/dist/chunks/{decorate-R0X811qp.js.map → decorate-Br_PE9pq.js.map} +1 -1
  16. package/dist/chunks/decorators-BkErmuYK.js +2 -0
  17. package/dist/chunks/{dismissible-stack-B3BgzdQb.js → dismissible-stack-CwhtwAyo.js} +1 -1
  18. package/dist/chunks/{dismissible-stack-B3BgzdQb.js.map → dismissible-stack-CwhtwAyo.js.map} +1 -1
  19. package/dist/chunks/{field-labels-CGSfAGf-.js → field-labels-pY-gQDwQ.js} +1 -1
  20. package/dist/chunks/{field-labels-CGSfAGf-.js.map → field-labels-pY-gQDwQ.js.map} +1 -1
  21. package/dist/chunks/{focus-C6pY4Ym4.js → focus-DcVUPVqn.js} +2 -2
  22. package/dist/chunks/{focus-C6pY4Ym4.js.map → focus-DcVUPVqn.js.map} +1 -1
  23. package/dist/chunks/{form-control.styles-BHwSsx_y.js → form-control.styles-CQ93gnVf.js} +1 -1
  24. package/dist/chunks/{form-control.styles-BHwSsx_y.js.map → form-control.styles-CQ93gnVf.js.map} +1 -1
  25. package/dist/chunks/{has-slot-9zjTXvea.js → has-slot-DJv86HKx.js} +1 -1
  26. package/dist/chunks/{has-slot-9zjTXvea.js.map → has-slot-DJv86HKx.js.map} +1 -1
  27. package/dist/chunks/{icon.styles-pNyUmVtP.js → icon.styles-KWvfi7RV.js} +1 -1
  28. package/dist/chunks/{icon.styles-pNyUmVtP.js.map → icon.styles-KWvfi7RV.js.map} +1 -1
  29. package/dist/chunks/{icons-B8siZLOe.js → icons-k1pvx6yX.js} +2 -2
  30. package/dist/chunks/{icons-B8siZLOe.js.map → icons-k1pvx6yX.js.map} +1 -1
  31. package/dist/chunks/{mirror-validator-Cszpqlxk.js → mirror-validator-BkZlEv1Z.js} +1 -1
  32. package/dist/chunks/{mirror-validator-Cszpqlxk.js.map → mirror-validator-BkZlEv1Z.js.map} +1 -1
  33. package/dist/chunks/{option-filter-Cj5SvyzI.js → option-filter-BkKyBg8L.js} +2 -2
  34. package/dist/chunks/{option-filter-Cj5SvyzI.js.map → option-filter-BkKyBg8L.js.map} +1 -1
  35. package/dist/chunks/{overlay-lifecycle-CAoT0LE8.js → overlay-lifecycle-C582MGBJ.js} +1 -1
  36. package/dist/chunks/{overlay-lifecycle-CAoT0LE8.js.map → overlay-lifecycle-C582MGBJ.js.map} +1 -1
  37. package/dist/chunks/{pk-alert-Cjxl6CY_.js → pk-alert-BQAb4lJc.js} +9 -7
  38. package/dist/chunks/pk-alert-BQAb4lJc.js.map +1 -0
  39. package/dist/chunks/{pk-autocomplete-DA77kdTN.js → pk-autocomplete-DUXhs1hi.js} +20 -19
  40. package/dist/chunks/pk-autocomplete-DUXhs1hi.js.map +1 -0
  41. package/dist/chunks/{pk-button-group-DBdKK_2_.js → pk-button-group-BY12Lbk7.js} +10 -7
  42. package/dist/chunks/pk-button-group-BY12Lbk7.js.map +1 -0
  43. package/dist/chunks/{pk-button-group-separator-D0Aa0a0f.js → pk-button-group-separator-B1a8dP9A.js} +3 -2
  44. package/dist/chunks/pk-button-group-separator-B1a8dP9A.js.map +1 -0
  45. package/dist/chunks/{pk-button-group-text-BsqEM-dB.js → pk-button-group-text-CWNlZkyV.js} +3 -3
  46. package/dist/chunks/pk-button-group-text-CWNlZkyV.js.map +1 -0
  47. package/dist/chunks/{pk-button-DCtNLEPr.js → pk-button-ntSVrer_.js} +7 -6
  48. package/dist/chunks/pk-button-ntSVrer_.js.map +1 -0
  49. package/dist/chunks/{pk-calendar-hBz1MnOu.js → pk-calendar-Df0c5u79.js} +11 -10
  50. package/dist/chunks/pk-calendar-Df0c5u79.js.map +1 -0
  51. package/dist/chunks/{pk-checkbox-dvHRoVbL.js → pk-checkbox-L5uRex3b.js} +6 -5
  52. package/dist/chunks/pk-checkbox-L5uRex3b.js.map +1 -0
  53. package/dist/chunks/{pk-checkbox-select-Cqx5ZCMq.js → pk-checkbox-select-6OS0wFYO.js} +4 -3
  54. package/dist/chunks/pk-checkbox-select-6OS0wFYO.js.map +1 -0
  55. package/dist/chunks/{pk-clear-LzxwxEX7.js → pk-clear-DHxP_2cm.js} +1 -1
  56. package/dist/chunks/{pk-clear-LzxwxEX7.js.map → pk-clear-DHxP_2cm.js.map} +1 -1
  57. package/dist/chunks/{pk-code-editor-C_PqjR75.js → pk-code-editor-vZriNR67.js} +6 -5
  58. package/dist/chunks/pk-code-editor-vZriNR67.js.map +1 -0
  59. package/dist/chunks/{pk-color-input-4LDV0Z3W.js → pk-color-input-Csbm4ROT.js} +6 -5
  60. package/dist/chunks/pk-color-input-Csbm4ROT.js.map +1 -0
  61. package/dist/chunks/{pk-combobox-BeddzAsl.js → pk-combobox-BrSBrldb.js} +24 -22
  62. package/dist/chunks/pk-combobox-BrSBrldb.js.map +1 -0
  63. package/dist/chunks/{pk-connect.styles-ciqZMK3B.js → pk-connect.styles-oKhxa_m2.js} +1 -1
  64. package/dist/chunks/{pk-connect.styles-ciqZMK3B.js.map → pk-connect.styles-oKhxa_m2.js.map} +1 -1
  65. package/dist/chunks/{pk-copy-button-KegSx46o.js → pk-copy-button-5i9v_zmu.js} +7 -6
  66. package/dist/chunks/pk-copy-button-5i9v_zmu.js.map +1 -0
  67. package/dist/chunks/{pk-date-picker-D_JFep-Y.js → pk-date-picker-C-w6Mn6j.js} +20 -19
  68. package/dist/chunks/pk-date-picker-C-w6Mn6j.js.map +1 -0
  69. package/dist/chunks/{pk-dialog-CFU850OH.js → pk-dialog-C7KZGpQs.js} +9 -8
  70. package/dist/chunks/pk-dialog-C7KZGpQs.js.map +1 -0
  71. package/dist/chunks/{pk-dropdown-item-A4P4zfVF.js → pk-dropdown-item-Ck2N_suK.js} +11 -8
  72. package/dist/chunks/pk-dropdown-item-Ck2N_suK.js.map +1 -0
  73. package/dist/chunks/{pk-dropdown-label-PqDxMkCI.js → pk-dropdown-label-BdZLeizJ.js} +2 -2
  74. package/dist/chunks/pk-dropdown-label-BdZLeizJ.js.map +1 -0
  75. package/dist/chunks/{pk-dropdown-menu-C_vasBoa.js → pk-dropdown-menu-DBsO1uYR.js} +22 -18
  76. package/dist/chunks/pk-dropdown-menu-DBsO1uYR.js.map +1 -0
  77. package/dist/chunks/{pk-editable-table-B85NhFYY.js → pk-editable-table-Cd8K6vT4.js} +25 -22
  78. package/dist/chunks/pk-editable-table-Cd8K6vT4.js.map +1 -0
  79. package/dist/chunks/{pk-field-BJA2fZ6s.js → pk-field--PCE9nOd.js} +8 -7
  80. package/dist/chunks/pk-field--PCE9nOd.js.map +1 -0
  81. package/dist/chunks/{pk-form-associated-element-MqaHdIoH.js → pk-form-associated-element-Doh2K3pG.js} +3 -3
  82. package/dist/chunks/pk-form-associated-element-Doh2K3pG.js.map +1 -0
  83. package/dist/chunks/{pk-image-browser-DLAQcjFt.js → pk-image-browser-iUqdcLKs.js} +20 -20
  84. package/dist/chunks/pk-image-browser-iUqdcLKs.js.map +1 -0
  85. package/dist/chunks/{pk-input-CiUNLTSW.js → pk-input-BUbXj9We.js} +14 -13
  86. package/dist/chunks/pk-input-BUbXj9We.js.map +1 -0
  87. package/dist/chunks/{pk-input-group-k7WV0pQI.js → pk-input-group-CN79c5HT.js} +5 -4
  88. package/dist/chunks/pk-input-group-CN79c5HT.js.map +1 -0
  89. package/dist/chunks/{pk-input-group-addon-piOznzSS.js → pk-input-group-addon-DpxfuYp1.js} +3 -2
  90. package/dist/chunks/pk-input-group-addon-DpxfuYp1.js.map +1 -0
  91. package/dist/chunks/{pk-input-group-button-Di2vEJLo.js → pk-input-group-button-D5Hm4saA.js} +3 -2
  92. package/dist/chunks/pk-input-group-button-D5Hm4saA.js.map +1 -0
  93. package/dist/chunks/{pk-input-group-input-CwaaEfr1.js → pk-input-group-input-Cm1MoHgN.js} +3 -2
  94. package/dist/chunks/pk-input-group-input-Cm1MoHgN.js.map +1 -0
  95. package/dist/chunks/{pk-input-group-text-C0VAdy0J.js → pk-input-group-text-CtyJZ_Kg.js} +2 -2
  96. package/dist/chunks/pk-input-group-text-CtyJZ_Kg.js.map +1 -0
  97. package/dist/chunks/{pk-input-group-textarea-DOG1NIlE.js → pk-input-group-textarea-BxmKGjdt.js} +3 -2
  98. package/dist/chunks/pk-input-group-textarea-BxmKGjdt.js.map +1 -0
  99. package/dist/chunks/{pk-lightswitch-FH5ZxMG2.js → pk-lightswitch-CSvgiHVQ.js} +9 -8
  100. package/dist/chunks/pk-lightswitch-CSvgiHVQ.js.map +1 -0
  101. package/dist/chunks/{pk-option-Cx52kLmz.js → pk-option-B_PF4v_Z.js} +9 -7
  102. package/dist/chunks/pk-option-B_PF4v_Z.js.map +1 -0
  103. package/dist/chunks/{pk-option-group-CYo9Ukue.js → pk-option-group-D6bHfn0j.js} +4 -3
  104. package/dist/chunks/pk-option-group-D6bHfn0j.js.map +1 -0
  105. package/dist/chunks/{pk-popover-209LdoPr.js → pk-popover-BOoGfR7I.js} +11 -10
  106. package/dist/chunks/pk-popover-BOoGfR7I.js.map +1 -0
  107. package/dist/chunks/{pk-popup-0EIt9X_W.js → pk-popup-DVE93VSV.js} +32 -28
  108. package/dist/chunks/pk-popup-DVE93VSV.js.map +1 -0
  109. package/dist/chunks/{pk-radio-jgj6A0Wy.js → pk-radio-D0eqmnlH.js} +3 -2
  110. package/dist/chunks/pk-radio-D0eqmnlH.js.map +1 -0
  111. package/dist/chunks/{pk-radio-group-CruMBeeF.js → pk-radio-group-BehEZG_k.js} +8 -7
  112. package/dist/chunks/pk-radio-group-BehEZG_k.js.map +1 -0
  113. package/dist/chunks/{pk-scroll-area-BaqN798b.js → pk-scroll-area-BeaLZ6k-.js} +3 -2
  114. package/dist/chunks/pk-scroll-area-BeaLZ6k-.js.map +1 -0
  115. package/dist/chunks/{pk-select-UUH7FE4H.js → pk-select-DZNpEk5Z.js} +19 -18
  116. package/dist/chunks/pk-select-DZNpEk5Z.js.map +1 -0
  117. package/dist/chunks/{pk-separator-Bcxg_GO2.js → pk-separator-ZkRowI5Y.js} +3 -2
  118. package/dist/chunks/pk-separator-ZkRowI5Y.js.map +1 -0
  119. package/dist/chunks/{pk-spinner-CN365srE.js → pk-spinner-Bxkn4iVO.js} +3 -2
  120. package/dist/chunks/pk-spinner-Bxkn4iVO.js.map +1 -0
  121. package/dist/chunks/{pk-state-panel-DPP7t-er.js → pk-state-panel-BTo2xiug.js} +7 -6
  122. package/dist/chunks/pk-state-panel-BTo2xiug.js.map +1 -0
  123. package/dist/chunks/{pk-status-CYcadu0Q.js → pk-status-CdiRBRyh.js} +3 -2
  124. package/dist/chunks/pk-status-CdiRBRyh.js.map +1 -0
  125. package/dist/chunks/{pk-tab-BmXNyDg7.js → pk-tab-CSbI3XxX.js} +2 -2
  126. package/dist/chunks/pk-tab-CSbI3XxX.js.map +1 -0
  127. package/dist/chunks/{pk-tab-heading-GZHVmCAd.js → pk-tab-heading-BMyLTBNc.js} +2 -2
  128. package/dist/chunks/pk-tab-heading-BMyLTBNc.js.map +1 -0
  129. package/dist/chunks/{pk-tab-panel-OpM3f_cm.js → pk-tab-panel-sgdRjV8o.js} +2 -2
  130. package/dist/chunks/pk-tab-panel-sgdRjV8o.js.map +1 -0
  131. package/dist/chunks/{pk-tabs-x26NAw-V.js → pk-tabs-bBNCu_4h.js} +10 -7
  132. package/dist/chunks/pk-tabs-bBNCu_4h.js.map +1 -0
  133. package/dist/chunks/{pk-textarea-CBijEmcV.js → pk-textarea-B401dUWa.js} +11 -10
  134. package/dist/chunks/pk-textarea-B401dUWa.js.map +1 -0
  135. package/dist/chunks/{pk-time-picker-D-u5-7pf.js → pk-time-picker-DnNZVwRk.js} +6 -6
  136. package/dist/chunks/pk-time-picker-DnNZVwRk.js.map +1 -0
  137. package/dist/chunks/{pk-tiptap-content-BGxMO3T4.js → pk-tiptap-content-C2qzGQKj.js} +4 -3
  138. package/dist/chunks/pk-tiptap-content-C2qzGQKj.js.map +1 -0
  139. package/dist/chunks/{pk-tiptap-editor-BeuyzH5l.js → pk-tiptap-editor-y_QyNSR-.js} +20 -21
  140. package/dist/chunks/pk-tiptap-editor-y_QyNSR-.js.map +1 -0
  141. package/dist/chunks/{pk-tiptap-input-CQojaxDH.js → pk-tiptap-input-0Xy6rrot.js} +7 -6
  142. package/dist/chunks/pk-tiptap-input-0Xy6rrot.js.map +1 -0
  143. package/dist/chunks/{pk-toggle-CAtGO_Le.js → pk-toggle-Co8GsHuK.js} +4 -3
  144. package/dist/chunks/pk-toggle-Co8GsHuK.js.map +1 -0
  145. package/dist/chunks/{pk-toggle-group-CLso6OE7.js → pk-toggle-group-Ct1ljI-7.js} +7 -4
  146. package/dist/chunks/pk-toggle-group-Ct1ljI-7.js.map +1 -0
  147. package/dist/chunks/{pk-tooltip-C6yb4CXI.js → pk-tooltip-Cvv2f7T5.js} +7 -6
  148. package/dist/chunks/pk-tooltip-Cvv2f7T5.js.map +1 -0
  149. package/dist/chunks/{popup-content-animation.styles-EUnGV75J.js → popup-content-animation.styles-CJ8zGJz-.js} +1 -1
  150. package/dist/chunks/{popup-content-animation.styles-EUnGV75J.js.map → popup-content-animation.styles-CJ8zGJz-.js.map} +1 -1
  151. package/dist/chunks/{popup-placement-animation-GvFXER7D.js → popup-placement-animation-ClUYI79z.js} +1 -1
  152. package/dist/chunks/{popup-placement-animation-GvFXER7D.js.map → popup-placement-animation-ClUYI79z.js.map} +1 -1
  153. package/dist/chunks/{popup-pointer-BTS3Y6LE.js → popup-pointer-Bh_d205v.js} +1 -1
  154. package/dist/chunks/{popup-pointer-BTS3Y6LE.js.map → popup-pointer-Bh_d205v.js.map} +1 -1
  155. package/dist/chunks/{register-components-Dcdn1e3S.js → register-components-CZtpgZe3.js} +1 -1
  156. package/dist/chunks/{register-components-Dcdn1e3S.js.map → register-components-CZtpgZe3.js.map} +1 -1
  157. package/dist/chunks/{render-BKGW1a68.js → render-DQZp_Rak.js} +1 -1
  158. package/dist/chunks/{render-BKGW1a68.js.map → render-DQZp_Rak.js.map} +1 -1
  159. package/dist/chunks/{required-validator-CaRnQk1V.js → required-validator-I58oJGZ3.js} +1 -1
  160. package/dist/chunks/{required-validator-CaRnQk1V.js.map → required-validator-I58oJGZ3.js.map} +1 -1
  161. package/dist/chunks/{scroll-lock-gTFrvIPu.js → scroll-lock-DE1pElMQ.js} +2 -2
  162. package/dist/chunks/{scroll-lock-gTFrvIPu.js.map → scroll-lock-DE1pElMQ.js.map} +1 -1
  163. package/dist/chunks/{spinner-utils-Co_4X3ip.js → spinner-utils-DXwIxQ6z.js} +1 -1
  164. package/dist/chunks/{spinner-utils-Co_4X3ip.js.map → spinner-utils-DXwIxQ6z.js.map} +1 -1
  165. package/dist/chunks/{supports-popover-6lNVStLh.js → supports-popover-BCqyOPtO.js} +1 -1
  166. package/dist/chunks/{supports-popover-6lNVStLh.js.map → supports-popover-BCqyOPtO.js.map} +1 -1
  167. package/dist/chunks/{sync-listbox-separators-CPFtrpNq.js → sync-listbox-separators-saLEtPpJ.js} +2 -2
  168. package/dist/chunks/{sync-listbox-separators-CPFtrpNq.js.map → sync-listbox-separators-saLEtPpJ.js.map} +1 -1
  169. package/dist/chunks/{tiptap.styles-DjhIrSBN.js → tiptap.styles-Q4ED1nBw.js} +2 -2
  170. package/dist/chunks/{tiptap.styles-DjhIrSBN.js.map → tiptap.styles-Q4ED1nBw.js.map} +1 -1
  171. package/dist/components/alert/pk-alert.js +1 -1
  172. package/dist/components/alert.js +1 -1
  173. package/dist/components/autocomplete/pk-autocomplete.js +1 -1
  174. package/dist/components/autocomplete.js +1 -1
  175. package/dist/components/button/pk-button.js +1 -1
  176. package/dist/components/button-group/pk-button-group-separator.js +1 -1
  177. package/dist/components/button-group/pk-button-group-text.js +1 -1
  178. package/dist/components/button-group/pk-button-group.js +1 -1
  179. package/dist/components/button-group.js +3 -3
  180. package/dist/components/button.js +1 -1
  181. package/dist/components/calendar/pk-calendar.js +1 -1
  182. package/dist/components/calendar.js +1 -1
  183. package/dist/components/checkbox/pk-checkbox.js +1 -1
  184. package/dist/components/checkbox-select/pk-checkbox-select.js +1 -1
  185. package/dist/components/checkbox-select.js +1 -1
  186. package/dist/components/checkbox.js +1 -1
  187. package/dist/components/code-editor/pk-code-editor.js +1 -1
  188. package/dist/components/code-editor.js +1 -1
  189. package/dist/components/color-input/pk-color-input.js +1 -1
  190. package/dist/components/color-input.js +1 -1
  191. package/dist/components/combobox/pk-combobox.js +1 -1
  192. package/dist/components/combobox.js +1 -1
  193. package/dist/components/connect/pk-connect-oauth.js +5 -4
  194. package/dist/components/connect/pk-connect-oauth.js.map +1 -1
  195. package/dist/components/connect/pk-connect.js +7 -6
  196. package/dist/components/connect/pk-connect.js.map +1 -1
  197. package/dist/components/copy-button/pk-copy-button.js +1 -1
  198. package/dist/components/copy-button.js +1 -1
  199. package/dist/components/date-picker/pk-date-picker.js +1 -1
  200. package/dist/components/date-picker.js +1 -1
  201. package/dist/components/dialog/pk-dialog.js +1 -1
  202. package/dist/components/dialog.js +1 -1
  203. package/dist/components/dropdown-menu/pk-dropdown-item.js +1 -1
  204. package/dist/components/dropdown-menu/pk-dropdown-label.js +1 -1
  205. package/dist/components/dropdown-menu/pk-dropdown-menu.js +1 -1
  206. package/dist/components/dropdown-menu/pk-dropdown-separator.js +1 -1
  207. package/dist/components/dropdown-menu/pk-dropdown-separator.js.map +1 -1
  208. package/dist/components/dropdown-menu.js +3 -3
  209. package/dist/components/editable-table/pk-editable-table.js +1 -1
  210. package/dist/components/editable-table.js +1 -1
  211. package/dist/components/field/pk-field.js +1 -1
  212. package/dist/components/field.js +1 -1
  213. package/dist/components/icon/pk-icon.js +2 -1
  214. package/dist/components/icon/pk-icon.js.map +1 -1
  215. package/dist/components/image-browser/pk-image-browser.js +1 -1
  216. package/dist/components/image-browser.js +1 -1
  217. package/dist/components/input/pk-input.js +1 -1
  218. package/dist/components/input-group/pk-input-group-addon.js +1 -1
  219. package/dist/components/input-group/pk-input-group-button.js +1 -1
  220. package/dist/components/input-group/pk-input-group-input.js +1 -1
  221. package/dist/components/input-group/pk-input-group-text.js +1 -1
  222. package/dist/components/input-group/pk-input-group-textarea.js +1 -1
  223. package/dist/components/input-group/pk-input-group.js +1 -1
  224. package/dist/components/input-group.js +6 -6
  225. package/dist/components/input.js +1 -1
  226. package/dist/components/lightswitch/pk-lightswitch.js +1 -1
  227. package/dist/components/lightswitch.js +1 -1
  228. package/dist/components/popover/pk-popover.js +1 -1
  229. package/dist/components/popover.js +1 -1
  230. package/dist/components/popup/pk-popup.js +1 -1
  231. package/dist/components/popup.js +1 -1
  232. package/dist/components/radio-group/pk-radio-group.js +1 -1
  233. package/dist/components/radio-group/pk-radio.js +1 -1
  234. package/dist/components/radio-group.js +2 -2
  235. package/dist/components/scroll-area/pk-scroll-area.js +1 -1
  236. package/dist/components/scroll-area.js +1 -1
  237. package/dist/components/select/pk-option-group.js +1 -1
  238. package/dist/components/select/pk-option.js +1 -1
  239. package/dist/components/select/pk-select.js +1 -1
  240. package/dist/components/select.js +3 -3
  241. package/dist/components/separator/pk-separator.js +1 -1
  242. package/dist/components/separator.js +1 -1
  243. package/dist/components/spinner/pk-spinner.js +1 -1
  244. package/dist/components/spinner.js +2 -2
  245. package/dist/components/state-panel/pk-state-panel.js +1 -1
  246. package/dist/components/state-panel.js +1 -1
  247. package/dist/components/status/pk-status.js +1 -1
  248. package/dist/components/status.js +1 -1
  249. package/dist/components/tabs/pk-tab-heading.js +1 -1
  250. package/dist/components/tabs/pk-tab-panel.js +1 -1
  251. package/dist/components/tabs/pk-tab.js +1 -1
  252. package/dist/components/tabs/pk-tabs.js +1 -1
  253. package/dist/components/tabs.js +4 -4
  254. package/dist/components/textarea/pk-textarea.js +1 -1
  255. package/dist/components/textarea.js +1 -1
  256. package/dist/components/time-picker/pk-time-picker.js +1 -1
  257. package/dist/components/time-picker.js +1 -1
  258. package/dist/components/tiptap/pk-tiptap-content.js +1 -1
  259. package/dist/components/tiptap/pk-tiptap-editor.js +1 -1
  260. package/dist/components/tiptap/pk-tiptap-input.js +1 -1
  261. package/dist/components/tiptap-content.js +1 -1
  262. package/dist/components/tiptap-editor.js +1 -1
  263. package/dist/components/tiptap-input.js +1 -1
  264. package/dist/components/toggle/pk-toggle.js +1 -1
  265. package/dist/components/toggle-group/pk-toggle-group.js +1 -1
  266. package/dist/components/toggle-group.js +1 -1
  267. package/dist/components/toggle.js +1 -1
  268. package/dist/components/tooltip/pk-tooltip.js +1 -1
  269. package/dist/components/tooltip.js +1 -1
  270. package/dist/connect/register-cp-connect.js +4 -4
  271. package/dist/connect/register-cp-connect.js.map +1 -1
  272. package/dist/icons/index.js +2 -2
  273. package/dist/index.js +67 -67
  274. package/dist/plugin-kit.js +4 -4
  275. package/dist/plugin-kit.js.map +1 -1
  276. package/dist/register-components.js +1 -1
  277. package/dist/register.js +120 -55
  278. package/dist/register.js.map +1 -0
  279. package/dist-loader/chunks/{button-group-item.styles-CXLuiMeZ.js → button-group-item.styles-BQbvE3sC.js} +1 -1
  280. package/dist-loader/chunks/{codemirror-CU2NB7wh.js → codemirror-C_TTKlG1.js} +584 -436
  281. package/dist-loader/chunks/editor-CS16rBkM.js +110 -0
  282. package/dist-loader/chunks/{floating-ui-B84As3F-.js → floating-ui-BJQPB-Ip.js} +9 -11
  283. package/dist-loader/chunks/{lit-s6aadvWG.js → lit-B6nFKgbW.js} +52 -14
  284. package/dist-loader/chunks/{option-filter-DH11hDpV.js → option-filter-BkKyBg8L.js} +1 -1
  285. package/dist-loader/chunks/{pk-a11y-CjB4-U-R.js → pk-a11y-mGj0G5AE.js} +1 -1
  286. package/dist-loader/chunks/{pk-base-Om6X9ab5.js → pk-base-BGegy7-X.js} +2 -2
  287. package/dist-loader/chunks/{pk-button-nSZxt8_B.js → pk-button-DV9Tk5Pd.js} +5 -5
  288. package/dist-loader/chunks/{pk-calendar-BS7Mfme_.js → pk-calendar-C0xpIVIw.js} +9 -9
  289. package/dist-loader/chunks/{pk-checkbox-CYUcOnco.js → pk-checkbox-DhP0iMoP.js} +9 -6
  290. package/dist-loader/chunks/{pk-color-input-BjDit7z0.js → pk-color-input-B02cYzyr.js} +4 -4
  291. package/dist-loader/chunks/{pk-combobox-DyexEhFo.js → pk-combobox-S_tpNUHK.js} +19 -18
  292. package/dist-loader/chunks/{pk-connect.styles-BsPAXjgF.js → pk-connect.styles-B5qe5yQB.js} +1 -1
  293. package/dist-loader/chunks/{pk-copy-button-CoN83ilF.js → pk-copy-button-D6tPuhJ3.js} +6 -6
  294. package/dist-loader/chunks/{pk-date-picker-CO6deRCu.js → pk-date-picker-C0y4sfSf.js} +15 -15
  295. package/dist-loader/chunks/{pk-dialog-BWo6iDnY.js → pk-dialog-BJs5fVHS.js} +7 -7
  296. package/dist-loader/chunks/{pk-dropdown-item-CbujjI8U.js → pk-dropdown-item-Bs5NZDRh.js} +11 -9
  297. package/dist-loader/chunks/{pk-dropdown-label-9X4ctyES.js → pk-dropdown-label-Cpl9-bzB.js} +2 -2
  298. package/dist-loader/chunks/{pk-dropdown-menu-D1KpGuqU.js → pk-dropdown-menu-CLrfuD3i.js} +20 -17
  299. package/dist-loader/chunks/{pk-field-DzggayrX.js → pk-field-Pg61fxBR.js} +140 -74
  300. package/dist-loader/chunks/{pk-icon-DQPqxFKW.js → pk-icon-B7ywfPb6.js} +4 -4
  301. package/dist-loader/chunks/{pk-input-C1peOijH.js → pk-input-Cj5s8eBT.js} +10 -10
  302. package/dist-loader/chunks/{pk-lightswitch-Y-I3eKCt.js → pk-lightswitch-rUGB1p8q.js} +6 -6
  303. package/dist-loader/chunks/{pk-option-IfazQDxz.js → pk-option-B-MeLvZf.js} +8 -7
  304. package/dist-loader/chunks/{pk-popup-BrLT_4kD.js → pk-popup-CeyruJFh.js} +35 -29
  305. package/dist-loader/chunks/{pk-select-49fogRYV.js → pk-select-JUx3mxRS.js} +14 -14
  306. package/dist-loader/chunks/{pk-spinner-BmnrA60m.js → pk-spinner-B8iuHDQ9.js} +2 -2
  307. package/dist-loader/chunks/{pk-state-panel-DKf54EnJ.js → pk-state-panel-BhdZGllL.js} +7 -7
  308. package/dist-loader/chunks/{pk-status-Dat3_D-T.js → pk-status-D3qVwWlR.js} +2 -2
  309. package/dist-loader/chunks/{pk-textarea-DPb2R8gV.js → pk-textarea-KnpJMQX2.js} +7 -7
  310. package/dist-loader/chunks/{pk-time-picker-CJiQTVuC.js → pk-time-picker-DCqZ5z7M.js} +6 -6
  311. package/dist-loader/chunks/{pk-tooltip-CqwQfOPV.js → pk-tooltip-DStkplzy.js} +6 -6
  312. package/dist-loader/chunks/{popup-content-animation.styles-CWR2mend.js → popup-content-animation.styles-BtUVJg82.js} +1 -1
  313. package/dist-loader/chunks/{render-BuA2YeZN.js → render-D9G_a_c2.js} +1 -1
  314. package/dist-loader/chunks/{sync-listbox-separators-rbu8jrAa.js → sync-listbox-separators-saLEtPpJ.js} +1 -1
  315. package/dist-loader/chunks/{tiptap-BhYH5Dva.js → tiptap-uppXgD5k.js} +16099 -9213
  316. package/dist-loader/chunks/tiptap.styles-CyqI_Wrl.js +896 -0
  317. package/dist-loader/components/alert/alert.js +8 -7
  318. package/dist-loader/components/autocomplete/autocomplete.js +15 -15
  319. package/dist-loader/components/button/button.js +1 -1
  320. package/dist-loader/components/button-group/button-group-separator.js +2 -2
  321. package/dist-loader/components/button-group/button-group-text.js +3 -3
  322. package/dist-loader/components/button-group/button-group.js +9 -7
  323. package/dist-loader/components/calendar/calendar.js +1 -1
  324. package/dist-loader/components/checkbox/checkbox.js +1 -1
  325. package/dist-loader/components/checkbox-select/checkbox-select.js +3 -3
  326. package/dist-loader/components/code-editor/code-editor.js +4 -4
  327. package/dist-loader/components/color-input/color-input.js +1 -1
  328. package/dist-loader/components/combobox/combobox.js +1 -1
  329. package/dist-loader/components/connect/connect-oauth.js +5 -5
  330. package/dist-loader/components/connect/connect.js +8 -8
  331. package/dist-loader/components/copy-button/copy-button.js +1 -1
  332. package/dist-loader/components/date-picker/date-picker.js +1 -1
  333. package/dist-loader/components/dialog/dialog.js +1 -1
  334. package/dist-loader/components/dropdown-menu/dropdown-item.js +1 -1
  335. package/dist-loader/components/dropdown-menu/dropdown-label.js +1 -1
  336. package/dist-loader/components/dropdown-menu/dropdown-menu.js +1 -1
  337. package/dist-loader/components/dropdown-menu/dropdown-separator.js +2 -2
  338. package/dist-loader/components/editable-table/editable-table.js +25 -23
  339. package/dist-loader/components/field/field.js +1 -1
  340. package/dist-loader/components/icon/icon.js +3 -3
  341. package/dist-loader/components/image-browser/image-browser.js +15 -16
  342. package/dist-loader/components/input/input.js +1 -1
  343. package/dist-loader/components/input-group/input-group-addon.js +2 -2
  344. package/dist-loader/components/input-group/input-group-button.js +2 -2
  345. package/dist-loader/components/input-group/input-group-input.js +2 -2
  346. package/dist-loader/components/input-group/input-group-text.js +2 -2
  347. package/dist-loader/components/input-group/input-group-textarea.js +2 -2
  348. package/dist-loader/components/input-group/input-group.js +3 -3
  349. package/dist-loader/components/lightswitch/lightswitch.js +1 -1
  350. package/dist-loader/components/popover/popover.js +9 -9
  351. package/dist-loader/components/popup/popup.js +1 -1
  352. package/dist-loader/components/radio-group/radio-group.js +5 -5
  353. package/dist-loader/components/radio-group/radio.js +2 -2
  354. package/dist-loader/components/scroll-area/scroll-area.js +2 -2
  355. package/dist-loader/components/select/option-group.js +3 -3
  356. package/dist-loader/components/select/option.js +1 -1
  357. package/dist-loader/components/select/select.js +1 -1
  358. package/dist-loader/components/separator/separator.js +2 -2
  359. package/dist-loader/components/spinner/spinner.js +1 -1
  360. package/dist-loader/components/state-panel/state-panel.js +1 -1
  361. package/dist-loader/components/status/status.js +1 -1
  362. package/dist-loader/components/tabs/tab-heading.js +2 -2
  363. package/dist-loader/components/tabs/tab-panel.js +2 -2
  364. package/dist-loader/components/tabs/tab.js +2 -2
  365. package/dist-loader/components/tabs/tabs.js +9 -7
  366. package/dist-loader/components/textarea/textarea.js +1 -1
  367. package/dist-loader/components/time-picker/time-picker.js +1 -1
  368. package/dist-loader/components/tiptap/tiptap-content.js +5 -4
  369. package/dist-loader/components/tiptap/tiptap-editor.js +595 -21
  370. package/dist-loader/components/tiptap/tiptap-input.js +273 -5
  371. package/dist-loader/components/toggle/toggle.js +3 -3
  372. package/dist-loader/components/toggle-group/toggle-group.js +6 -4
  373. package/dist-loader/components/tooltip/tooltip.js +1 -1
  374. package/dist-loader/plugin-kit.loader.js +2 -1
  375. package/package.json +9 -9
  376. package/dist/chunks/pk-alert-Cjxl6CY_.js.map +0 -1
  377. package/dist/chunks/pk-autocomplete-DA77kdTN.js.map +0 -1
  378. package/dist/chunks/pk-button-DCtNLEPr.js.map +0 -1
  379. package/dist/chunks/pk-button-group-DBdKK_2_.js.map +0 -1
  380. package/dist/chunks/pk-button-group-separator-D0Aa0a0f.js.map +0 -1
  381. package/dist/chunks/pk-button-group-text-BsqEM-dB.js.map +0 -1
  382. package/dist/chunks/pk-calendar-hBz1MnOu.js.map +0 -1
  383. package/dist/chunks/pk-checkbox-dvHRoVbL.js.map +0 -1
  384. package/dist/chunks/pk-checkbox-select-Cqx5ZCMq.js.map +0 -1
  385. package/dist/chunks/pk-code-editor-C_PqjR75.js.map +0 -1
  386. package/dist/chunks/pk-color-input-4LDV0Z3W.js.map +0 -1
  387. package/dist/chunks/pk-combobox-BeddzAsl.js.map +0 -1
  388. package/dist/chunks/pk-copy-button-KegSx46o.js.map +0 -1
  389. package/dist/chunks/pk-date-picker-D_JFep-Y.js.map +0 -1
  390. package/dist/chunks/pk-dialog-CFU850OH.js.map +0 -1
  391. package/dist/chunks/pk-dropdown-item-A4P4zfVF.js.map +0 -1
  392. package/dist/chunks/pk-dropdown-label-PqDxMkCI.js.map +0 -1
  393. package/dist/chunks/pk-dropdown-menu-C_vasBoa.js.map +0 -1
  394. package/dist/chunks/pk-editable-table-B85NhFYY.js.map +0 -1
  395. package/dist/chunks/pk-field-BJA2fZ6s.js.map +0 -1
  396. package/dist/chunks/pk-form-associated-element-MqaHdIoH.js.map +0 -1
  397. package/dist/chunks/pk-image-browser-DLAQcjFt.js.map +0 -1
  398. package/dist/chunks/pk-input-CiUNLTSW.js.map +0 -1
  399. package/dist/chunks/pk-input-group-addon-piOznzSS.js.map +0 -1
  400. package/dist/chunks/pk-input-group-button-Di2vEJLo.js.map +0 -1
  401. package/dist/chunks/pk-input-group-input-CwaaEfr1.js.map +0 -1
  402. package/dist/chunks/pk-input-group-k7WV0pQI.js.map +0 -1
  403. package/dist/chunks/pk-input-group-text-C0VAdy0J.js.map +0 -1
  404. package/dist/chunks/pk-input-group-textarea-DOG1NIlE.js.map +0 -1
  405. package/dist/chunks/pk-lightswitch-FH5ZxMG2.js.map +0 -1
  406. package/dist/chunks/pk-option-Cx52kLmz.js.map +0 -1
  407. package/dist/chunks/pk-option-group-CYo9Ukue.js.map +0 -1
  408. package/dist/chunks/pk-popover-209LdoPr.js.map +0 -1
  409. package/dist/chunks/pk-popup-0EIt9X_W.js.map +0 -1
  410. package/dist/chunks/pk-radio-group-CruMBeeF.js.map +0 -1
  411. package/dist/chunks/pk-radio-jgj6A0Wy.js.map +0 -1
  412. package/dist/chunks/pk-scroll-area-BaqN798b.js.map +0 -1
  413. package/dist/chunks/pk-select-UUH7FE4H.js.map +0 -1
  414. package/dist/chunks/pk-separator-Bcxg_GO2.js.map +0 -1
  415. package/dist/chunks/pk-spinner-CN365srE.js.map +0 -1
  416. package/dist/chunks/pk-state-panel-DPP7t-er.js.map +0 -1
  417. package/dist/chunks/pk-status-CYcadu0Q.js.map +0 -1
  418. package/dist/chunks/pk-tab-BmXNyDg7.js.map +0 -1
  419. package/dist/chunks/pk-tab-heading-GZHVmCAd.js.map +0 -1
  420. package/dist/chunks/pk-tab-panel-OpM3f_cm.js.map +0 -1
  421. package/dist/chunks/pk-tabs-x26NAw-V.js.map +0 -1
  422. package/dist/chunks/pk-textarea-CBijEmcV.js.map +0 -1
  423. package/dist/chunks/pk-time-picker-D-u5-7pf.js.map +0 -1
  424. package/dist/chunks/pk-tiptap-content-BGxMO3T4.js.map +0 -1
  425. package/dist/chunks/pk-tiptap-editor-BeuyzH5l.js.map +0 -1
  426. package/dist/chunks/pk-tiptap-input-CQojaxDH.js.map +0 -1
  427. package/dist/chunks/pk-toggle-CAtGO_Le.js.map +0 -1
  428. package/dist/chunks/pk-toggle-group-CLso6OE7.js.map +0 -1
  429. package/dist/chunks/pk-tooltip-C6yb4CXI.js.map +0 -1
  430. package/dist/chunks/register-BDO_LUHK.js +0 -154
  431. package/dist/chunks/register-BDO_LUHK.js.map +0 -1
  432. package/dist-loader/chunks/rolldown-runtime-CzwdidQP.js +0 -13
  433. package/dist-loader/chunks/supports-popover-COjbi2RP.js +0 -5
  434. package/dist-loader/chunks/tiptap.styles-BckAim0_.js +0 -1848
  435. /package/dist-loader/chunks/{animate-with-class-BpZi7v-y.js → animate-with-class-CjTZI0NU.js} +0 -0
  436. /package/dist-loader/chunks/{field-labels-D7ccWdRn.js → field-labels-pY-gQDwQ.js} +0 -0
  437. /package/dist-loader/chunks/{has-slot-BvdEcnpm.js → has-slot-DJv86HKx.js} +0 -0
  438. /package/dist-loader/chunks/{mirror-validator-9X0wdFnh.js → mirror-validator-BkZlEv1Z.js} +0 -0
  439. /package/dist-loader/chunks/{overlay-lifecycle-CSIBJZgQ.js → overlay-lifecycle-C582MGBJ.js} +0 -0
  440. /package/dist-loader/chunks/{pk-clear-BL8m1NyC.js → pk-clear-DHxP_2cm.js} +0 -0
  441. /package/dist-loader/chunks/{popup-placement-animation-BQdKabXq.js → popup-placement-animation-ClUYI79z.js} +0 -0
  442. /package/dist-loader/chunks/{popup-pointer-BNwlPGKA.js → popup-pointer-Bh_d205v.js} +0 -0
  443. /package/dist-loader/chunks/{registry-BanyScVR.js → registry-CJc164pT.js} +0 -0
  444. /package/dist-loader/chunks/{required-validator-DCTovZ6r.js → required-validator-I58oJGZ3.js} +0 -0
  445. /package/dist-loader/chunks/{svg-C6YcJMk9.js → svg-BRgqS9vA.js} +0 -0
@@ -255,7 +255,8 @@ var NodeSet = class NodeSet {
255
255
  return new NodeSet(newTypes);
256
256
  }
257
257
  };
258
- var CachedNode = /* @__PURE__ */ new WeakMap(), CachedInnerNode = /* @__PURE__ */ new WeakMap();
258
+ var CachedNode = /* @__PURE__ */ new WeakMap();
259
+ var CachedInnerNode = /* @__PURE__ */ new WeakMap();
259
260
  /**
260
261
  Options that control iteration. Can be combined with the `|`
261
262
  operator to enable multiple ones.
@@ -1300,9 +1301,10 @@ function buildTree(data) {
1300
1301
  let nodeStart = fork.start;
1301
1302
  fork.next();
1302
1303
  while (fork.pos > startPos) {
1303
- if (fork.size < 0) if (fork.size == -3 || fork.size == -4) localSkipped += 4;
1304
- else break scan;
1305
- else if (fork.id >= minRepeatType) localSkipped += 4;
1304
+ if (fork.size < 0) {
1305
+ if (fork.size == -3 || fork.size == -4) localSkipped += 4;
1306
+ else break scan;
1307
+ } else if (fork.id >= minRepeatType) localSkipped += 4;
1306
1308
  fork.next();
1307
1309
  }
1308
1310
  start = nodeStart;
@@ -1855,15 +1857,19 @@ function findCoverChanges(a, b, from, to) {
1855
1857
  }
1856
1858
  pos = Math.min(nextA, nextB);
1857
1859
  if (pos == 1e9) break;
1858
- if (nextA == pos) if (!inA) inA = true;
1859
- else {
1860
- inA = false;
1861
- iA++;
1860
+ if (nextA == pos) {
1861
+ if (!inA) inA = true;
1862
+ else {
1863
+ inA = false;
1864
+ iA++;
1865
+ }
1862
1866
  }
1863
- if (nextB == pos) if (!inB) inB = true;
1864
- else {
1865
- inB = false;
1866
- iB++;
1867
+ if (nextB == pos) {
1868
+ if (!inB) inB = true;
1869
+ else {
1870
+ inB = false;
1871
+ iB++;
1872
+ }
1867
1873
  }
1868
1874
  }
1869
1875
  return result;
@@ -2849,10 +2855,12 @@ var TokenCache = class {
2849
2855
  addActions(stack, token, end, index) {
2850
2856
  let { state } = stack, { parser } = stack.p, { data } = parser;
2851
2857
  for (let set = 0; set < 2; set++) for (let i = parser.stateSlot(state, set ? 2 : 1);; i += 3) {
2852
- if (data[i] == 65535) if (data[i + 1] == 1) i = pair(data, i + 2);
2853
- else {
2854
- if (index == 0 && data[i + 1] == 2) index = this.putAction(pair(data, i + 2), token, end, index);
2855
- break;
2858
+ if (data[i] == 65535) {
2859
+ if (data[i + 1] == 1) i = pair(data, i + 2);
2860
+ else {
2861
+ if (index == 0 && data[i + 1] == 2) index = this.putAction(pair(data, i + 2), token, end, index);
2862
+ break;
2863
+ }
2856
2864
  }
2857
2865
  if (data[i] == token) index = this.putAction(pair(data, i + 1), token, end, index);
2858
2866
  }
@@ -2940,10 +2948,12 @@ var Parse = class {
2940
2948
  let stack = newStacks[i];
2941
2949
  for (let j = i + 1; j < newStacks.length; j++) {
2942
2950
  let other = newStacks[j];
2943
- if (stack.sameState(other) || stack.buffer.length > 500 && other.buffer.length > 500) if ((stack.score - other.score || stack.buffer.length - other.buffer.length) > 0) newStacks.splice(j--, 1);
2944
- else {
2945
- newStacks.splice(i--, 1);
2946
- continue outer;
2951
+ if (stack.sameState(other) || stack.buffer.length > 500 && other.buffer.length > 500) {
2952
+ if ((stack.score - other.score || stack.buffer.length - other.buffer.length) > 0) newStacks.splice(j--, 1);
2953
+ else {
2954
+ newStacks.splice(i--, 1);
2955
+ continue outer;
2956
+ }
2947
2957
  }
2948
2958
  }
2949
2959
  }
@@ -3203,9 +3213,11 @@ var LRParser = class LRParser extends Parser {
3203
3213
  hasAction(state, terminal) {
3204
3214
  let data = this.data;
3205
3215
  for (let set = 0; set < 2; set++) for (let i = this.stateSlot(state, set ? 2 : 1), next;; i += 3) {
3206
- if ((next = data[i]) == 65535) if (data[i + 1] == 1) next = data[i = pair(data, i + 2)];
3207
- else if (data[i + 1] == 2) return pair(data, i + 2);
3208
- else break;
3216
+ if ((next = data[i]) == 65535) {
3217
+ if (data[i + 1] == 1) next = data[i = pair(data, i + 2)];
3218
+ else if (data[i + 1] == 2) return pair(data, i + 2);
3219
+ else break;
3220
+ }
3209
3221
  if (next == terminal || next == 0) return pair(data, i + 1);
3210
3222
  }
3211
3223
  return 0;
@@ -3235,8 +3247,10 @@ var LRParser = class LRParser extends Parser {
3235
3247
  let deflt = this.stateSlot(state, 4);
3236
3248
  let result = deflt ? action(deflt) : void 0;
3237
3249
  for (let i = this.stateSlot(state, 1); result == null; i += 3) {
3238
- if (this.data[i] == 65535) if (this.data[i + 1] == 1) i = pair(this.data, i + 2);
3239
- else break;
3250
+ if (this.data[i] == 65535) {
3251
+ if (this.data[i + 1] == 1) i = pair(this.data, i + 2);
3252
+ else break;
3253
+ }
3240
3254
  result = action(pair(this.data, i + 1));
3241
3255
  }
3242
3256
  return result;
@@ -3248,8 +3262,10 @@ var LRParser = class LRParser extends Parser {
3248
3262
  nextStates(state) {
3249
3263
  let result = [];
3250
3264
  for (let i = this.stateSlot(state, 1);; i += 3) {
3251
- if (this.data[i] == 65535) if (this.data[i + 1] == 1) i = pair(this.data, i + 2);
3252
- else break;
3265
+ if (this.data[i] == 65535) {
3266
+ if (this.data[i + 1] == 1) i = pair(this.data, i + 2);
3267
+ else break;
3268
+ }
3253
3269
  if ((this.data[i + 2] & 1) == 0) {
3254
3270
  let value = this.data[i + 1];
3255
3271
  if (!result.some((v, i) => i & 1 && v == value)) result.push(this.data[i], value);
@@ -3709,7 +3725,20 @@ function getStyleTags(node) {
3709
3725
  return rule || null;
3710
3726
  }
3711
3727
  var t = Tag.define;
3712
- var comment = t(), name = t(), typeName = t(name), propertyName = t(name), literal = t(), string = t(literal), number = t(literal), content = t(), heading = t(content), keyword = t(), operator = t(), punctuation = t(), bracket = t(punctuation), meta = t();
3728
+ var comment = t();
3729
+ var name = t();
3730
+ var typeName = t(name);
3731
+ var propertyName = t(name);
3732
+ var literal = t();
3733
+ var string = t(literal);
3734
+ var number = t(literal);
3735
+ var content = t();
3736
+ var heading = t(content);
3737
+ var keyword = t();
3738
+ var operator = t();
3739
+ var punctuation = t();
3740
+ var bracket = t(punctuation);
3741
+ var meta = t();
3713
3742
  /**
3714
3743
  The default set of highlighting [tags](#highlight.Tag).
3715
3744
 
@@ -4228,7 +4257,14 @@ tagHighlighter([
4228
4257
  ]);
4229
4258
  //#endregion
4230
4259
  //#region ../node_modules/@lezer/css/dist/index.js
4231
- var descendantOp = 135, Unit = 1, identifier$2 = 136, callee = 137, VariableName = 2, queryIdentifier = 138, queryVariableName = 3, QueryCallee = 4;
4260
+ var descendantOp = 135;
4261
+ var Unit = 1;
4262
+ var identifier$2 = 136;
4263
+ var callee = 137;
4264
+ var VariableName = 2;
4265
+ var queryIdentifier = 138;
4266
+ var queryVariableName = 3;
4267
+ var QueryCallee = 4;
4232
4268
  var space$1 = [
4233
4269
  9,
4234
4270
  10,
@@ -4256,7 +4292,18 @@ var space$1 = [
4256
4292
  8287,
4257
4293
  12288
4258
4294
  ];
4259
- var colon = 58, parenL = 40, underscore = 95, bracketL$1 = 91, dash$1 = 45, period = 46, hash = 35, percent = 37, ampersand = 38, backslash = 92, newline$1 = 10, asterisk = 42;
4295
+ var colon = 58;
4296
+ var parenL = 40;
4297
+ var underscore = 95;
4298
+ var bracketL$1 = 91;
4299
+ var dash$1 = 45;
4300
+ var period = 46;
4301
+ var hash = 35;
4302
+ var percent = 37;
4303
+ var ampersand = 38;
4304
+ var backslash = 92;
4305
+ var newline$1 = 10;
4306
+ var asterisk = 42;
4260
4307
  function isAlpha(ch) {
4261
4308
  return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 161;
4262
4309
  }
@@ -4472,7 +4519,8 @@ var parser$3 = LRParser.deserialize({
4472
4519
  });
4473
4520
  //#endregion
4474
4521
  //#region ../node_modules/@marijn/find-cluster-break/src/index.js
4475
- var rangeFrom = [], rangeTo = [];
4522
+ var rangeFrom = [];
4523
+ var rangeTo = [];
4476
4524
  (() => {
4477
4525
  let numbers = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((s) => s ? parseInt(s, 36) : 1);
4478
4526
  for (let i = 0, n = 0; i < numbers.length; i++) (i % 2 ? rangeTo : rangeFrom).push(n = n + numbers[i]);
@@ -4854,7 +4902,7 @@ var TextNode = class TextNode extends Text {
4854
4902
  return chunked.length == 1 ? chunked[0] : new TextNode(chunked, length);
4855
4903
  }
4856
4904
  };
4857
- Text.empty = /* @__PURE__ */ new TextLeaf([""], 0);
4905
+ Text.empty = /*@__PURE__*/ new TextLeaf([""], 0);
4858
4906
  function textLength(text) {
4859
4907
  let length = -1;
4860
4908
  for (let line of text) length += line.length + 1;
@@ -4988,12 +5036,13 @@ var LineCursor = class {
4988
5036
  } else if (done) {
4989
5037
  this.done = true;
4990
5038
  this.value = "";
4991
- } else if (lineBreak) if (this.afterBreak) this.value = "";
4992
- else {
4993
- this.afterBreak = true;
4994
- this.next();
4995
- }
4996
- else {
5039
+ } else if (lineBreak) {
5040
+ if (this.afterBreak) this.value = "";
5041
+ else {
5042
+ this.afterBreak = true;
5043
+ this.next();
5044
+ }
5045
+ } else {
4997
5046
  this.value = value;
4998
5047
  this.afterBreak = false;
4999
5048
  }
@@ -5085,7 +5134,7 @@ var DefaultSplit = /\r\n?|\n/;
5085
5134
  /**
5086
5135
  Distinguishes different ways in which positions can be mapped.
5087
5136
  */
5088
- var MapMode = /* @__PURE__ */ (function(MapMode) {
5137
+ var MapMode = /*@__PURE__*/ (function(MapMode) {
5089
5138
  /**
5090
5139
  Map a position to a valid new position, even when its context
5091
5140
  was deleted.
@@ -6046,7 +6095,7 @@ function dynamicFacetSlot(addresses, facet, providers) {
6046
6095
  }
6047
6096
  };
6048
6097
  }
6049
- var initField = /* @__PURE__ */ Facet.define({ static: true });
6098
+ var initField = /*@__PURE__*/ Facet.define({ static: true });
6050
6099
  /**
6051
6100
  Fields can store additional information in an editor state, and
6052
6101
  keep it in sync with the rest of the state.
@@ -6152,26 +6201,26 @@ var Prec = {
6152
6201
  The highest precedence level, for extensions that should end up
6153
6202
  near the start of the precedence ordering.
6154
6203
  */
6155
- highest: /* @__PURE__ */ prec(Prec_.highest),
6204
+ highest: /*@__PURE__*/ prec(Prec_.highest),
6156
6205
  /**
6157
6206
  A higher-than-default precedence, for extensions that should
6158
6207
  come before those with default precedence.
6159
6208
  */
6160
- high: /* @__PURE__ */ prec(Prec_.high),
6209
+ high: /*@__PURE__*/ prec(Prec_.high),
6161
6210
  /**
6162
6211
  The default precedence, which is also used for extensions
6163
6212
  without an explicit precedence.
6164
6213
  */
6165
- default: /* @__PURE__ */ prec(Prec_.default),
6214
+ default: /*@__PURE__*/ prec(Prec_.default),
6166
6215
  /**
6167
6216
  A lower-than-default precedence.
6168
6217
  */
6169
- low: /* @__PURE__ */ prec(Prec_.low),
6218
+ low: /*@__PURE__*/ prec(Prec_.low),
6170
6219
  /**
6171
6220
  The lowest precedence level. Meant for things that should end up
6172
6221
  near the end of the extension order.
6173
6222
  */
6174
- lowest: /* @__PURE__ */ prec(Prec_.lowest)
6223
+ lowest: /*@__PURE__*/ prec(Prec_.lowest)
6175
6224
  };
6176
6225
  var PrecExtension = class {
6177
6226
  constructor(inner, prec) {
@@ -6269,7 +6318,8 @@ var Configuration = class Configuration {
6269
6318
  dynamicSlots.push((a) => dynamicFacetSlot(a, facet, providers));
6270
6319
  }
6271
6320
  }
6272
- return new Configuration(base, newCompartments, dynamicSlots.map((f) => f(address)), address, staticValues, facets);
6321
+ let dynamic = dynamicSlots.map((f) => f(address));
6322
+ return new Configuration(base, newCompartments, dynamic, address, staticValues, facets);
6273
6323
  }
6274
6324
  };
6275
6325
  function flatten(extension, compartments, newCompartments) {
@@ -6325,19 +6375,19 @@ function ensureAddr(state, addr) {
6325
6375
  function getAddr(state, addr) {
6326
6376
  return addr & 1 ? state.config.staticValues[addr >> 1] : state.values[addr >> 1];
6327
6377
  }
6328
- var languageData = /* @__PURE__ */ Facet.define();
6329
- var allowMultipleSelections = /* @__PURE__ */ Facet.define({
6378
+ var languageData = /*@__PURE__*/ Facet.define();
6379
+ var allowMultipleSelections = /*@__PURE__*/ Facet.define({
6330
6380
  combine: (values) => values.some((v) => v),
6331
6381
  static: true
6332
6382
  });
6333
- var lineSeparator = /* @__PURE__ */ Facet.define({
6383
+ var lineSeparator = /*@__PURE__*/ Facet.define({
6334
6384
  combine: (values) => values.length ? values[0] : void 0,
6335
6385
  static: true
6336
6386
  });
6337
- var changeFilter = /* @__PURE__ */ Facet.define();
6338
- var transactionFilter = /* @__PURE__ */ Facet.define();
6339
- var transactionExtender = /* @__PURE__ */ Facet.define();
6340
- var readOnly = /* @__PURE__ */ Facet.define({ combine: (values) => values.length ? values[0] : false });
6387
+ var changeFilter = /*@__PURE__*/ Facet.define();
6388
+ var transactionFilter = /*@__PURE__*/ Facet.define();
6389
+ var transactionExtender = /*@__PURE__*/ Facet.define();
6390
+ var readOnly = /*@__PURE__*/ Facet.define({ combine: (values) => values.length ? values[0] : false });
6341
6391
  /**
6342
6392
  Annotations are tagged values that are used to add metadata to
6343
6393
  transactions in an extensible way. They should be used to model
@@ -6452,11 +6502,11 @@ the editor. Doing this will discard any extensions
6452
6502
  the content of [reconfigured](https://codemirror.net/6/docs/ref/#state.Compartment.reconfigure)
6453
6503
  compartments.
6454
6504
  */
6455
- StateEffect.reconfigure = /* @__PURE__ */ StateEffect.define();
6505
+ StateEffect.reconfigure = /*@__PURE__*/ StateEffect.define();
6456
6506
  /**
6457
6507
  Append extensions to the top-level configuration of the editor.
6458
6508
  */
6459
- StateEffect.appendConfig = /* @__PURE__ */ StateEffect.define();
6509
+ StateEffect.appendConfig = /*@__PURE__*/ StateEffect.define();
6460
6510
  /**
6461
6511
  Changes to the editor state are grouped into transactions.
6462
6512
  Typically, a user action creates a single transaction, which may
@@ -6558,7 +6608,7 @@ var Transaction = class Transaction {
6558
6608
  Annotation used to store transaction timestamps. Automatically
6559
6609
  added to every transaction, holding `Date.now()`.
6560
6610
  */
6561
- Transaction.time = /* @__PURE__ */ Annotation.define();
6611
+ Transaction.time = /*@__PURE__*/ Annotation.define();
6562
6612
  /**
6563
6613
  Annotation used to associate a transaction with a user interface
6564
6614
  event. Holds a string identifying the event, using a
@@ -6585,19 +6635,19 @@ information. The events used by the core libraries are:
6585
6635
  Use [`isUserEvent`](https://codemirror.net/6/docs/ref/#state.Transaction.isUserEvent) to check
6586
6636
  whether the annotation matches a given event.
6587
6637
  */
6588
- Transaction.userEvent = /* @__PURE__ */ Annotation.define();
6638
+ Transaction.userEvent = /*@__PURE__*/ Annotation.define();
6589
6639
  /**
6590
6640
  Annotation indicating whether a transaction should be added to
6591
6641
  the undo history or not.
6592
6642
  */
6593
- Transaction.addToHistory = /* @__PURE__ */ Annotation.define();
6643
+ Transaction.addToHistory = /*@__PURE__*/ Annotation.define();
6594
6644
  /**
6595
6645
  Annotation indicating (when present and true) that a transaction
6596
6646
  represents a change made by some other actor, not the user. This
6597
6647
  is used, for example, to tag other people's changes in
6598
6648
  collaborative editing.
6599
6649
  */
6600
- Transaction.remote = /* @__PURE__ */ Annotation.define();
6650
+ Transaction.remote = /*@__PURE__*/ Annotation.define();
6601
6651
  function joinRanges(a, b) {
6602
6652
  let result = [];
6603
6653
  for (let iA = 0, iB = 0;;) {
@@ -6704,7 +6754,7 @@ The categories produced by a [character
6704
6754
  categorizer](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer). These are used
6705
6755
  do things like selecting by word.
6706
6756
  */
6707
- var CharCategory = /* @__PURE__ */ (function(CharCategory) {
6757
+ var CharCategory = /*@__PURE__*/ (function(CharCategory) {
6708
6758
  /**
6709
6759
  Word characters.
6710
6760
  */
@@ -6722,7 +6772,7 @@ var CharCategory = /* @__PURE__ */ (function(CharCategory) {
6722
6772
  var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
6723
6773
  var wordChar;
6724
6774
  try {
6725
- wordChar = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
6775
+ wordChar = /*@__PURE__*/ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
6726
6776
  } catch (_) {}
6727
6777
  function hasWordChar(str) {
6728
6778
  if (wordChar) return wordChar.test(str);
@@ -7060,7 +7110,7 @@ Configures the tab size to use in this state. The first
7060
7110
  (highest-precedence) value of the facet is used. If no value is
7061
7111
  given, this defaults to 4.
7062
7112
  */
7063
- EditorState.tabSize = /* @__PURE__ */ Facet.define({ combine: (values) => values.length ? values[0] : 4 });
7113
+ EditorState.tabSize = /*@__PURE__*/ Facet.define({ combine: (values) => values.length ? values[0] : 4 });
7064
7114
  /**
7065
7115
  The line separator to use. By default, any of `"\n"`, `"\r\n"`
7066
7116
  and `"\r"` is treated as a separator when splitting lines, and
@@ -7091,7 +7141,7 @@ Registers translation phrases. The
7091
7141
  all objects registered with this facet to find translations for
7092
7142
  its argument.
7093
7143
  */
7094
- EditorState.phrases = /* @__PURE__ */ Facet.define({ compare(a, b) {
7144
+ EditorState.phrases = /*@__PURE__*/ Facet.define({ compare(a, b) {
7095
7145
  let kA = Object.keys(a), kB = Object.keys(b);
7096
7146
  return kA.length == kB.length && kA.every((k) => a[k] == b[k]);
7097
7147
  } });
@@ -7149,7 +7199,7 @@ but do want to process every transaction.
7149
7199
  Extenders run _after_ filters, when both are present.
7150
7200
  */
7151
7201
  EditorState.transactionExtender = transactionExtender;
7152
- Compartment.reconfigure = /* @__PURE__ */ StateEffect.define();
7202
+ Compartment.reconfigure = /*@__PURE__*/ StateEffect.define();
7153
7203
  /**
7154
7204
  Utility function for combining behaviors to fill in a config
7155
7205
  object from an array of provided configs. `defaults` should hold
@@ -7424,7 +7474,7 @@ var RangeSet = class RangeSet {
7424
7474
  if they are equivalent in the given range.
7425
7475
  */
7426
7476
  static eq(oldSets, newSets, from = 0, to) {
7427
- if (to == null) to = 999999999;
7477
+ if (to == null) to = 1e9 - 1;
7428
7478
  let a = oldSets.filter((set) => !set.isEmpty && newSets.indexOf(set) < 0);
7429
7479
  let b = newSets.filter((set) => !set.isEmpty && oldSets.indexOf(set) < 0);
7430
7480
  if (a.length != b.length) return false;
@@ -7489,7 +7539,7 @@ var RangeSet = class RangeSet {
7489
7539
  /**
7490
7540
  The empty set of ranges.
7491
7541
  */
7492
- RangeSet.empty = /* @__PURE__ */ new RangeSet([], [], null, -1);
7542
+ RangeSet.empty = /*@__PURE__*/ new RangeSet([], [], null, -1);
7493
7543
  function lazySort(ranges) {
7494
7544
  if (ranges.length > 1) for (let prev = ranges[0], i = 1; i < ranges.length; i++) {
7495
7545
  let cur = ranges[i];
@@ -7902,7 +7952,7 @@ function findColumn(string, col, tabSize, strict) {
7902
7952
  //#endregion
7903
7953
  //#region ../node_modules/style-mod/src/style-mod.js
7904
7954
  var C = "ͼ";
7905
- var COUNT = typeof Symbol == "undefined" ? "__" + C : Symbol.for(C);
7955
+ var COUNT = typeof Symbol == "undefined" ? "__ͼ" : Symbol.for(C);
7906
7956
  var SET = typeof Symbol == "undefined" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet");
7907
7957
  var top = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : {};
7908
7958
  var StyleModule = class {
@@ -8100,31 +8150,31 @@ var nav = typeof navigator != "undefined" ? navigator : {
8100
8150
  platform: ""
8101
8151
  };
8102
8152
  var doc = typeof document != "undefined" ? document : { documentElement: { style: {} } };
8103
- var ie_edge = /* @__PURE__ */ /Edge\/(\d+)/.exec(nav.userAgent);
8104
- var ie_upto10 = /* @__PURE__ */ /MSIE \d/.test(nav.userAgent);
8105
- var ie_11up = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nav.userAgent);
8153
+ var ie_edge = /*@__PURE__*/ /Edge\/(\d+)/.exec(nav.userAgent);
8154
+ var ie_upto10 = /*@__PURE__*/ /MSIE \d/.test(nav.userAgent);
8155
+ var ie_11up = /*@__PURE__*/ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nav.userAgent);
8106
8156
  var ie = !!(ie_upto10 || ie_11up || ie_edge);
8107
- var gecko = !ie && /* @__PURE__ */ /gecko\/(\d+)/i.test(nav.userAgent);
8108
- var chrome = !ie && /* @__PURE__ */ /Chrome\/(\d+)/.exec(nav.userAgent);
8157
+ var gecko = !ie && /*@__PURE__*/ /gecko\/(\d+)/i.test(nav.userAgent);
8158
+ var chrome = !ie && /*@__PURE__*/ /Chrome\/(\d+)/.exec(nav.userAgent);
8109
8159
  var webkit = "webkitFontSmoothing" in doc.documentElement.style;
8110
- var safari = !ie && /* @__PURE__ */ /Apple Computer/.test(nav.vendor);
8111
- var ios = safari && (/* @__PURE__ */ /Mobile\/\w+/.test(nav.userAgent) || nav.maxTouchPoints > 2);
8160
+ var safari = !ie && /*@__PURE__*/ /Apple Computer/.test(nav.vendor);
8161
+ var ios = safari && (/*@__PURE__*/ /Mobile\/\w+/.test(nav.userAgent) || nav.maxTouchPoints > 2);
8112
8162
  var browser = {
8113
- mac: ios || /* @__PURE__ */ /Mac/.test(nav.platform),
8114
- windows: /* @__PURE__ */ /Win/.test(nav.platform),
8115
- linux: /* @__PURE__ */ /Linux|X11/.test(nav.platform),
8163
+ mac: ios || /*@__PURE__*/ /Mac/.test(nav.platform),
8164
+ windows: /*@__PURE__*/ /Win/.test(nav.platform),
8165
+ linux: /*@__PURE__*/ /Linux|X11/.test(nav.platform),
8116
8166
  ie,
8117
8167
  ie_version: ie_upto10 ? doc.documentMode || 6 : ie_11up ? +ie_11up[1] : ie_edge ? +ie_edge[1] : 0,
8118
8168
  gecko,
8119
- gecko_version: gecko ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
8169
+ gecko_version: gecko ? +(/*@__PURE__*/ /Firefox\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
8120
8170
  chrome: !!chrome,
8121
8171
  chrome_version: chrome ? +chrome[1] : 0,
8122
8172
  ios,
8123
- android: /* @__PURE__ */ /Android\b/.test(nav.userAgent),
8173
+ android: /*@__PURE__*/ /Android\b/.test(nav.userAgent),
8124
8174
  webkit,
8125
- webkit_version: webkit ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
8175
+ webkit_version: webkit ? +(/*@__PURE__*/ /\bAppleWebKit\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
8126
8176
  safari,
8127
- safari_version: safari ? +(/* @__PURE__ */ /\bVersion\/(\d+(\.\d+)?)/.exec(nav.userAgent) || [0, 0])[1] : 0,
8177
+ safari_version: safari ? +(/*@__PURE__*/ /\bVersion\/(\d+(\.\d+)?)/.exec(nav.userAgent) || [0, 0])[1] : 0,
8128
8178
  tabSize: doc.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
8129
8179
  };
8130
8180
  function combineAttrs(source, target) {
@@ -8133,7 +8183,7 @@ function combineAttrs(source, target) {
8133
8183
  else target[name] = source[name];
8134
8184
  return target;
8135
8185
  }
8136
- var noAttrs = /* @__PURE__ */ Object.create(null);
8186
+ var noAttrs = /*@__PURE__*/ Object.create(null);
8137
8187
  function attrsEq(a, b, ignore) {
8138
8188
  if (a == b) return true;
8139
8189
  if (!a) a = noAttrs;
@@ -8273,7 +8323,7 @@ var WidgetType = class {
8273
8323
  /**
8274
8324
  The different types of blocks that can occur in an editor view.
8275
8325
  */
8276
- var BlockType = /* @__PURE__ */ (function(BlockType) {
8326
+ var BlockType = /*@__PURE__*/ (function(BlockType) {
8277
8327
  /**
8278
8328
  A line of text.
8279
8329
  */
@@ -8606,27 +8656,29 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
8606
8656
  if (side < 0 && rect.left < bounding.left + moveX) moveX = rect.left - (bounding.left + xMargin);
8607
8657
  }
8608
8658
  } else moveX = (x == "center" ? rect.left + (rect.right - rect.left) / 2 - (bounding.right - bounding.left) / 2 : x == "start" == ltr ? rect.left - xMargin : rect.right - (bounding.right - bounding.left) + xMargin) - bounding.left;
8609
- if (moveX || moveY) if (top) win.scrollBy(moveX, moveY);
8610
- else {
8611
- let movedX = 0, movedY = 0;
8612
- if (moveY) {
8613
- let start = cur.scrollTop;
8614
- cur.scrollTop += moveY / scaleY;
8615
- movedY = (cur.scrollTop - start) * scaleY;
8616
- }
8617
- if (moveX) {
8618
- let start = cur.scrollLeft;
8619
- cur.scrollLeft += moveX / scaleX;
8620
- movedX = (cur.scrollLeft - start) * scaleX;
8659
+ if (moveX || moveY) {
8660
+ if (top) win.scrollBy(moveX, moveY);
8661
+ else {
8662
+ let movedX = 0, movedY = 0;
8663
+ if (moveY) {
8664
+ let start = cur.scrollTop;
8665
+ cur.scrollTop += moveY / scaleY;
8666
+ movedY = (cur.scrollTop - start) * scaleY;
8667
+ }
8668
+ if (moveX) {
8669
+ let start = cur.scrollLeft;
8670
+ cur.scrollLeft += moveX / scaleX;
8671
+ movedX = (cur.scrollLeft - start) * scaleX;
8672
+ }
8673
+ rect = {
8674
+ left: rect.left - movedX,
8675
+ top: rect.top - movedY,
8676
+ right: rect.right - movedX,
8677
+ bottom: rect.bottom - movedY
8678
+ };
8679
+ if (movedX && Math.abs(movedX - moveX) < 1) x = "nearest";
8680
+ if (movedY && Math.abs(movedY - moveY) < 1) y = "nearest";
8621
8681
  }
8622
- rect = {
8623
- left: rect.left - movedX,
8624
- top: rect.top - movedY,
8625
- right: rect.right - movedX,
8626
- bottom: rect.bottom - movedY
8627
- };
8628
- if (movedX && Math.abs(movedX - moveX) < 1) x = "nearest";
8629
- if (movedY && Math.abs(movedY - moveY) < 1) y = "nearest";
8630
8682
  }
8631
8683
  if (top) break;
8632
8684
  if (rect.top < bounding.top || rect.bottom > bounding.bottom || rect.left < bounding.left || rect.right > bounding.right) rect = {
@@ -8794,7 +8846,7 @@ var DOMPos = class DOMPos {
8794
8846
  /**
8795
8847
  Used to indicate [text direction](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection).
8796
8848
  */
8797
- var Direction = /* @__PURE__ */ (function(Direction) {
8849
+ var Direction = /*@__PURE__*/ (function(Direction) {
8798
8850
  /**
8799
8851
  Left-to-right.
8800
8852
  */
@@ -8805,21 +8857,23 @@ var Direction = /* @__PURE__ */ (function(Direction) {
8805
8857
  Direction[Direction["RTL"] = 1] = "RTL";
8806
8858
  return Direction;
8807
8859
  })(Direction || (Direction = {}));
8808
- var LTR = Direction.LTR, RTL = Direction.RTL;
8860
+ var LTR = Direction.LTR;
8861
+ var RTL = Direction.RTL;
8809
8862
  function dec(str) {
8810
8863
  let result = [];
8811
8864
  for (let i = 0; i < str.length; i++) result.push(1 << +str[i]);
8812
8865
  return result;
8813
8866
  }
8814
- var LowTypes = /* @__PURE__ */ dec("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008");
8815
- var ArabicTypes = /* @__PURE__ */ dec("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333");
8816
- var Brackets = /* @__PURE__ */ Object.create(null), BracketStack = [];
8867
+ var LowTypes = /*@__PURE__*/ dec("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008");
8868
+ var ArabicTypes = /*@__PURE__*/ dec("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333");
8869
+ var Brackets = /*@__PURE__*/ Object.create(null);
8870
+ var BracketStack = [];
8817
8871
  for (let p of [
8818
8872
  "()",
8819
8873
  "[]",
8820
8874
  "{}"
8821
8875
  ]) {
8822
- let l = /* @__PURE__ */ p.charCodeAt(0), r = /* @__PURE__ */ p.charCodeAt(1);
8876
+ let l = /*@__PURE__*/ p.charCodeAt(0), r = /*@__PURE__*/ p.charCodeAt(1);
8823
8877
  Brackets[l] = r;
8824
8878
  Brackets[r] = -l;
8825
8879
  }
@@ -8897,9 +8951,10 @@ function computeCharTypes(line, rFrom, rTo, isolates, outerType) {
8897
8951
  }
8898
8952
  for (let i = from, prev = prevType, prevStrong = prevType; i < to; i++) {
8899
8953
  let type = types[i];
8900
- if (type == 128) if (i < to - 1 && prev == types[i + 1] && prev & 24) type = types[i] = prev;
8901
- else types[i] = 256;
8902
- else if (type == 64) {
8954
+ if (type == 128) {
8955
+ if (i < to - 1 && prev == types[i + 1] && prev & 24) type = types[i] = prev;
8956
+ else types[i] = 256;
8957
+ } else if (type == 64) {
8903
8958
  let end = i + 1;
8904
8959
  while (end < to && types[end] == 64) end++;
8905
8960
  let replace = i && prev == 8 || end < rTo && types[end] == 8 ? prevStrong == 1 ? 1 : 8 : 256;
@@ -8915,21 +8970,22 @@ function processBracketPairs(line, rFrom, rTo, isolates, outerType) {
8915
8970
  let oppositeType = outerType == 1 ? 2 : 1;
8916
8971
  for (let iI = 0, sI = 0, context = 0; iI <= isolates.length; iI++) {
8917
8972
  let from = iI ? isolates[iI - 1].to : rFrom, to = iI < isolates.length ? isolates[iI].from : rTo;
8918
- for (let i = from, ch, br, type; i < to; i++) if (br = Brackets[ch = line.charCodeAt(i)]) if (br < 0) {
8919
- for (let sJ = sI - 3; sJ >= 0; sJ -= 3) if (BracketStack[sJ + 1] == -br) {
8920
- let flags = BracketStack[sJ + 2];
8921
- let type = flags & 2 ? outerType : !(flags & 4) ? 0 : flags & 1 ? oppositeType : outerType;
8922
- if (type) types[i] = types[BracketStack[sJ]] = type;
8923
- sI = sJ;
8924
- break;
8973
+ for (let i = from, ch, br, type; i < to; i++) if (br = Brackets[ch = line.charCodeAt(i)]) {
8974
+ if (br < 0) {
8975
+ for (let sJ = sI - 3; sJ >= 0; sJ -= 3) if (BracketStack[sJ + 1] == -br) {
8976
+ let flags = BracketStack[sJ + 2];
8977
+ let type = flags & 2 ? outerType : !(flags & 4) ? 0 : flags & 1 ? oppositeType : outerType;
8978
+ if (type) types[i] = types[BracketStack[sJ]] = type;
8979
+ sI = sJ;
8980
+ break;
8981
+ }
8982
+ } else if (BracketStack.length == 189) break;
8983
+ else {
8984
+ BracketStack[sI++] = i;
8985
+ BracketStack[sI++] = ch;
8986
+ BracketStack[sI++] = context;
8925
8987
  }
8926
- } else if (BracketStack.length == 189) break;
8927
- else {
8928
- BracketStack[sI++] = i;
8929
- BracketStack[sI++] = ch;
8930
- BracketStack[sI++] = context;
8931
- }
8932
- else if ((type = types[i]) == 2 || type == 1) {
8988
+ } else if ((type = types[i]) == 2 || type == 1) {
8933
8989
  let embed = type == outerType;
8934
8990
  context = embed ? 0 : 1;
8935
8991
  for (let sJ = sI - 3; sJ >= 0; sJ -= 3) {
@@ -9092,18 +9148,18 @@ function autoDirection(text, from, to) {
9092
9148
  }
9093
9149
  return LTR;
9094
9150
  }
9095
- var clickAddsSelectionRange = /* @__PURE__ */ Facet.define();
9096
- var dragMovesSelection$1 = /* @__PURE__ */ Facet.define();
9097
- var mouseSelectionStyle = /* @__PURE__ */ Facet.define();
9098
- var exceptionSink = /* @__PURE__ */ Facet.define();
9099
- var updateListener = /* @__PURE__ */ Facet.define();
9100
- var inputHandler$1 = /* @__PURE__ */ Facet.define();
9101
- var focusChangeEffect = /* @__PURE__ */ Facet.define();
9102
- var clipboardInputFilter = /* @__PURE__ */ Facet.define();
9103
- var clipboardOutputFilter = /* @__PURE__ */ Facet.define();
9104
- var perLineTextDirection = /* @__PURE__ */ Facet.define({ combine: (values) => values.some((x) => x) });
9105
- var nativeSelectionHidden = /* @__PURE__ */ Facet.define({ combine: (values) => values.some((x) => x) });
9106
- var scrollHandler = /* @__PURE__ */ Facet.define();
9151
+ var clickAddsSelectionRange = /*@__PURE__*/ Facet.define();
9152
+ var dragMovesSelection$1 = /*@__PURE__*/ Facet.define();
9153
+ var mouseSelectionStyle = /*@__PURE__*/ Facet.define();
9154
+ var exceptionSink = /*@__PURE__*/ Facet.define();
9155
+ var updateListener = /*@__PURE__*/ Facet.define();
9156
+ var inputHandler$1 = /*@__PURE__*/ Facet.define();
9157
+ var focusChangeEffect = /*@__PURE__*/ Facet.define();
9158
+ var clipboardInputFilter = /*@__PURE__*/ Facet.define();
9159
+ var clipboardOutputFilter = /*@__PURE__*/ Facet.define();
9160
+ var perLineTextDirection = /*@__PURE__*/ Facet.define({ combine: (values) => values.some((x) => x) });
9161
+ var nativeSelectionHidden = /*@__PURE__*/ Facet.define({ combine: (values) => values.some((x) => x) });
9162
+ var scrollHandler = /*@__PURE__*/ Facet.define();
9107
9163
  var ScrollTarget = class ScrollTarget {
9108
9164
  constructor(range, y, x, yMargin, xMargin, isSnapshot = false) {
9109
9165
  this.range = range;
@@ -9120,8 +9176,8 @@ var ScrollTarget = class ScrollTarget {
9120
9176
  return this.range.to <= state.doc.length ? this : new ScrollTarget(EditorSelection.cursor(state.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
9121
9177
  }
9122
9178
  };
9123
- var scrollIntoView = /* @__PURE__ */ StateEffect.define({ map: (t, ch) => t.map(ch) });
9124
- var setEditContextFormatting = /* @__PURE__ */ StateEffect.define();
9179
+ var scrollIntoView = /*@__PURE__*/ StateEffect.define({ map: (t, ch) => t.map(ch) });
9180
+ var setEditContextFormatting = /*@__PURE__*/ StateEffect.define();
9125
9181
  /**
9126
9182
  Log or report an unhandled exception in client code. Should
9127
9183
  probably only be used by extension code that allows client code to
@@ -9141,9 +9197,9 @@ function logException(state, exception, context) {
9141
9197
  else if (context) console.error(context + ":", exception);
9142
9198
  else console.error(exception);
9143
9199
  }
9144
- var editable = /* @__PURE__ */ Facet.define({ combine: (values) => values.length ? values[0] : true });
9200
+ var editable = /*@__PURE__*/ Facet.define({ combine: (values) => values.length ? values[0] : true });
9145
9201
  var nextPluginID = 0;
9146
- var viewPlugin = /* @__PURE__ */ Facet.define({ combine(plugins) {
9202
+ var viewPlugin = /*@__PURE__*/ Facet.define({ combine(plugins) {
9147
9203
  return plugins.filter((p, i) => {
9148
9204
  for (let j = 0; j < i; j++) if (plugins[j].plugin == p.plugin) return false;
9149
9205
  return true;
@@ -9246,13 +9302,13 @@ var PluginInstance = class {
9246
9302
  this.spec = this.value = null;
9247
9303
  }
9248
9304
  };
9249
- var editorAttributes = /* @__PURE__ */ Facet.define();
9250
- var contentAttributes = /* @__PURE__ */ Facet.define();
9251
- var decorations = /* @__PURE__ */ Facet.define();
9252
- var blockWrappers = /* @__PURE__ */ Facet.define();
9253
- var outerDecorations = /* @__PURE__ */ Facet.define();
9254
- var atomicRanges = /* @__PURE__ */ Facet.define();
9255
- var bidiIsolatedRanges = /* @__PURE__ */ Facet.define();
9305
+ var editorAttributes = /*@__PURE__*/ Facet.define();
9306
+ var contentAttributes = /*@__PURE__*/ Facet.define();
9307
+ var decorations = /*@__PURE__*/ Facet.define();
9308
+ var blockWrappers = /*@__PURE__*/ Facet.define();
9309
+ var outerDecorations = /*@__PURE__*/ Facet.define();
9310
+ var atomicRanges = /*@__PURE__*/ Facet.define();
9311
+ var bidiIsolatedRanges = /*@__PURE__*/ Facet.define();
9256
9312
  function getIsolatedRanges(view, line) {
9257
9313
  let isolates = view.state.facet(bidiIsolatedRanges);
9258
9314
  if (!isolates.length) return isolates;
@@ -9284,7 +9340,7 @@ function getIsolatedRanges(view, line) {
9284
9340
  });
9285
9341
  return result;
9286
9342
  }
9287
- var scrollMargins = /* @__PURE__ */ Facet.define();
9343
+ var scrollMargins = /*@__PURE__*/ Facet.define();
9288
9344
  function getScrollMargins(view) {
9289
9345
  let left = 0, right = 0, top = 0, bottom = 0;
9290
9346
  for (let source of view.state.facet(scrollMargins)) {
@@ -9303,7 +9359,7 @@ function getScrollMargins(view) {
9303
9359
  bottom
9304
9360
  };
9305
9361
  }
9306
- var styleModule = /* @__PURE__ */ Facet.define();
9362
+ var styleModule = /*@__PURE__*/ Facet.define();
9307
9363
  var ChangedRange = class ChangedRange {
9308
9364
  constructor(fromA, toA, fromB, toB) {
9309
9365
  this.fromA = fromA;
@@ -9878,18 +9934,19 @@ var TilePointer = class {
9878
9934
  }
9879
9935
  advance(dist, side, walker) {
9880
9936
  let { tile, index, beforeBreak, parents } = this;
9881
- while (dist || side > 0) if (!tile.isComposite()) if (index == tile.length) {
9882
- beforeBreak = !!tile.breakAfter;
9883
- ({tile, index} = parents.pop());
9884
- index++;
9885
- } else if (!dist) break;
9886
- else {
9887
- let take = Math.min(dist, tile.length - index);
9888
- if (walker) walker.skip(tile, index, index + take);
9889
- dist -= take;
9890
- index += take;
9891
- }
9892
- else if (beforeBreak) {
9937
+ while (dist || side > 0) if (!tile.isComposite()) {
9938
+ if (index == tile.length) {
9939
+ beforeBreak = !!tile.breakAfter;
9940
+ ({tile, index} = parents.pop());
9941
+ index++;
9942
+ } else if (!dist) break;
9943
+ else {
9944
+ let take = Math.min(dist, tile.length - index);
9945
+ if (walker) walker.skip(tile, index, index + take);
9946
+ dist -= take;
9947
+ index += take;
9948
+ }
9949
+ } else if (beforeBreak) {
9893
9950
  if (!dist) break;
9894
9951
  if (walker) walker.break();
9895
9952
  dist--;
@@ -10267,19 +10324,20 @@ var TileUpdate = class {
10267
10324
  let activeMarks = getMarks(this.old), openMarks = this.openMarks;
10268
10325
  this.old.advance(length, incEnd ? 1 : -1, {
10269
10326
  skip: (tile, from, to) => {
10270
- if (tile.isWidget()) if (this.openWidget) this.builder.continueWidget(to - from);
10271
- else {
10272
- let widget = to > 0 || from < tile.length ? WidgetTile.of(tile.widget, this.view, to - from, tile.flags & 496, this.cache.maybeReuse(tile)) : this.cache.reuse(tile);
10273
- if (widget.flags & 256) {
10274
- widget.flags &= -2;
10275
- this.builder.addBlockWidget(widget);
10276
- } else {
10277
- this.builder.ensureLine(null);
10278
- this.builder.addInlineWidget(widget, activeMarks, openMarks);
10279
- openMarks = activeMarks.length;
10327
+ if (tile.isWidget()) {
10328
+ if (this.openWidget) this.builder.continueWidget(to - from);
10329
+ else {
10330
+ let widget = to > 0 || from < tile.length ? WidgetTile.of(tile.widget, this.view, to - from, tile.flags & 496, this.cache.maybeReuse(tile)) : this.cache.reuse(tile);
10331
+ if (widget.flags & 256) {
10332
+ widget.flags &= -2;
10333
+ this.builder.addBlockWidget(widget);
10334
+ } else {
10335
+ this.builder.ensureLine(null);
10336
+ this.builder.addInlineWidget(widget, activeMarks, openMarks);
10337
+ openMarks = activeMarks.length;
10338
+ }
10280
10339
  }
10281
- }
10282
- else if (tile.isText()) {
10340
+ } else if (tile.isText()) {
10283
10341
  this.builder.ensureLine(null);
10284
10342
  if (!from && to == tile.length && !this.cache.reused.has(tile)) this.builder.addText(tile.text, activeMarks, openMarks, this.cache.reuse(tile));
10285
10343
  else {
@@ -10451,9 +10509,9 @@ var NullWidget = class extends WidgetType {
10451
10509
  return true;
10452
10510
  }
10453
10511
  };
10454
- NullWidget.inline = /* @__PURE__ */ new NullWidget("span");
10455
- NullWidget.block = /* @__PURE__ */ new NullWidget("div");
10456
- var BreakWidget = /* @__PURE__ */ new class extends WidgetType {
10512
+ NullWidget.inline = /*@__PURE__*/ new NullWidget("span");
10513
+ NullWidget.block = /*@__PURE__*/ new NullWidget("div");
10514
+ var BreakWidget = /*@__PURE__*/ new class extends WidgetType {
10457
10515
  toDOM() {
10458
10516
  return document.createElement("br");
10459
10517
  }
@@ -10488,10 +10546,12 @@ var DocView = class {
10488
10546
  update(update) {
10489
10547
  var _a;
10490
10548
  let changedRanges = update.changedRanges;
10491
- if (this.minWidth > 0 && changedRanges.length) if (!changedRanges.every(({ fromA, toA }) => toA < this.minWidthFrom || fromA > this.minWidthTo)) this.minWidth = this.minWidthFrom = this.minWidthTo = 0;
10492
- else {
10493
- this.minWidthFrom = update.changes.mapPos(this.minWidthFrom, 1);
10494
- this.minWidthTo = update.changes.mapPos(this.minWidthTo, 1);
10549
+ if (this.minWidth > 0 && changedRanges.length) {
10550
+ if (!changedRanges.every(({ fromA, toA }) => toA < this.minWidthFrom || fromA > this.minWidthTo)) this.minWidth = this.minWidthFrom = this.minWidthTo = 0;
10551
+ else {
10552
+ this.minWidthFrom = update.changes.mapPos(this.minWidthFrom, 1);
10553
+ this.minWidthTo = update.changes.mapPos(this.minWidthTo, 1);
10554
+ }
10495
10555
  }
10496
10556
  this.updateEditContextFormatting(update);
10497
10557
  let readCompositionAt = -1;
@@ -10651,8 +10711,10 @@ var DocView = class {
10651
10711
  for (;;) {
10652
10712
  let parent = node.parentNode;
10653
10713
  if (parent == tile.dom) break;
10654
- if (bias == 0 && parent.firstChild != parent.lastChild) if (node == parent.firstChild) bias = -1;
10655
- else bias = 1;
10714
+ if (bias == 0 && parent.firstChild != parent.lastChild) {
10715
+ if (node == parent.firstChild) bias = -1;
10716
+ else bias = 1;
10717
+ }
10656
10718
  node = parent;
10657
10719
  }
10658
10720
  if (bias < 0) after = node;
@@ -11532,7 +11594,7 @@ function applyDOMChange(view, domChange) {
11532
11594
  insert: Text.of(domChange.text.slice(sel.from - from, selEnd).split(LineBreakPlaceholder))
11533
11595
  };
11534
11596
  else if (diff = findDiff(cmp, domChange.text, preferredPos - from, preferredSide)) {
11535
- if (browser.chrome && lastKey == 13 && diff.toB == diff.from + 2 && domChange.text.slice(diff.from, diff.toB) == LineBreakPlaceholder + LineBreakPlaceholder) diff.toB--;
11597
+ if (browser.chrome && lastKey == 13 && diff.toB == diff.from + 2 && domChange.text.slice(diff.from, diff.toB) == "￿￿") diff.toB--;
11536
11598
  change = {
11537
11599
  from: from + diff.from,
11538
11600
  to: from + diff.toA,
@@ -12014,8 +12076,8 @@ function eventBelongsToEditor(view, event) {
12014
12076
  for (let node = event.target, tile; node != view.contentDOM; node = node.parentNode) if (!node || node.nodeType == 11 || (tile = Tile.get(node)) && tile.isWidget() && !tile.isHidden && tile.widget.ignoreEvent(event)) return false;
12015
12077
  return true;
12016
12078
  }
12017
- var handlers = /* @__PURE__ */ Object.create(null);
12018
- var observers = /* @__PURE__ */ Object.create(null);
12079
+ var handlers = /*@__PURE__*/ Object.create(null);
12080
+ var observers = /*@__PURE__*/ Object.create(null);
12019
12081
  var brokenClipboardAPI = browser.ie && browser.ie_version < 15 || browser.ios && browser.webkit_version < 604;
12020
12082
  function capturePaste(view) {
12021
12083
  let parent = view.dom.parentNode;
@@ -12129,7 +12191,9 @@ function rangeForClick(view, pos, bias, type) {
12129
12191
  }
12130
12192
  }
12131
12193
  var BadMouseDetail = browser.ie && browser.ie_version <= 11;
12132
- var lastMouseDown = null, lastMouseDownCount = 0, lastMouseDownTime = 0;
12194
+ var lastMouseDown = null;
12195
+ var lastMouseDownCount = 0;
12196
+ var lastMouseDownTime = 0;
12133
12197
  function getClickType(event) {
12134
12198
  if (!BadMouseDetail) return event.detail;
12135
12199
  let last = lastMouseDown, lastTime = lastMouseDownTime;
@@ -12327,7 +12391,7 @@ handlers.copy = handlers.cut = (view, event) => {
12327
12391
  return false;
12328
12392
  }
12329
12393
  };
12330
- var isFocusChange = /* @__PURE__ */ Annotation.define();
12394
+ var isFocusChange = /*@__PURE__*/ Annotation.define();
12331
12395
  function focusChangeTransaction(state, focus) {
12332
12396
  let effects = [];
12333
12397
  for (let getEffect of state.facet(focusChangeEffect)) {
@@ -12418,7 +12482,7 @@ handlers.beforeinput = (view, event) => {
12418
12482
  if (browser.safari && event.inputType == "insertText" && view.inputState.composing >= 0) setTimeout(() => observers.compositionend(view, event), 20);
12419
12483
  return false;
12420
12484
  };
12421
- var appliedFirefoxHack = /* @__PURE__ */ new Set();
12485
+ var appliedFirefoxHack = /*@__PURE__*/ new Set();
12422
12486
  function firefoxCopyCutHack(doc) {
12423
12487
  if (!appliedFirefoxHack.has(doc)) {
12424
12488
  appliedFirefoxHack.add(doc);
@@ -12559,7 +12623,7 @@ var BlockInfo = class BlockInfo {
12559
12623
  return new BlockInfo(this.from, this.length + other.length, this.top, this.height + other.height, content);
12560
12624
  }
12561
12625
  };
12562
- var QueryType = /* @__PURE__ */ (function(QueryType) {
12626
+ var QueryType = /*@__PURE__*/ (function(QueryType) {
12563
12627
  QueryType[QueryType["ByPos"] = 0] = "ByPos";
12564
12628
  QueryType[QueryType["ByHeight"] = 1] = "ByHeight";
12565
12629
  QueryType[QueryType["ByPosNoHeight"] = 2] = "ByPosNoHeight";
@@ -12620,20 +12684,21 @@ var HeightMap = class HeightMap {
12620
12684
  static of(nodes) {
12621
12685
  if (nodes.length == 1) return nodes[0];
12622
12686
  let i = 0, j = nodes.length, before = 0, after = 0;
12623
- for (;;) if (i == j) if (before > after * 2) {
12624
- let split = nodes[i - 1];
12625
- if (split.break) nodes.splice(--i, 1, split.left, null, split.right);
12626
- else nodes.splice(--i, 1, split.left, split.right);
12627
- j += 1 + split.break;
12628
- before -= split.size;
12629
- } else if (after > before * 2) {
12630
- let split = nodes[j];
12631
- if (split.break) nodes.splice(j, 1, split.left, null, split.right);
12632
- else nodes.splice(j, 1, split.left, split.right);
12633
- j += 2 + split.break;
12634
- after -= split.size;
12635
- } else break;
12636
- else if (before < after) {
12687
+ for (;;) if (i == j) {
12688
+ if (before > after * 2) {
12689
+ let split = nodes[i - 1];
12690
+ if (split.break) nodes.splice(--i, 1, split.left, null, split.right);
12691
+ else nodes.splice(--i, 1, split.left, split.right);
12692
+ j += 1 + split.break;
12693
+ before -= split.size;
12694
+ } else if (after > before * 2) {
12695
+ let split = nodes[j];
12696
+ if (split.break) nodes.splice(j, 1, split.left, null, split.right);
12697
+ else nodes.splice(j, 1, split.left, split.right);
12698
+ j += 2 + split.break;
12699
+ after -= split.size;
12700
+ } else break;
12701
+ } else if (before < after) {
12637
12702
  let next = nodes[i++];
12638
12703
  if (next) before += next.size;
12639
12704
  } else {
@@ -12657,7 +12722,7 @@ function replace(old, val) {
12657
12722
  return val;
12658
12723
  }
12659
12724
  HeightMap.prototype.size = 1;
12660
- var SpaceDeco = /* @__PURE__ */ Decoration.replace({});
12725
+ var SpaceDeco = /*@__PURE__*/ Decoration.replace({});
12661
12726
  var HeightMapBlock = class extends HeightMap {
12662
12727
  constructor(length, height, deco) {
12663
12728
  super(length, height);
@@ -13343,7 +13408,7 @@ var ViewState = class {
13343
13408
  if (scrollTarget.y == "center") topPos = (block.top + block.bottom) / 2 - viewHeight / 2;
13344
13409
  else if (scrollTarget.y == "start" || scrollTarget.y == "nearest" && head < viewport.from) topPos = block.top;
13345
13410
  else topPos = block.bottom - viewHeight;
13346
- viewport = new Viewport(map.lineAt(topPos - 1e3 / 2, QueryType.ByHeight, oracle, 0, 0).from, map.lineAt(topPos + viewHeight + 1e3 / 2, QueryType.ByHeight, oracle, 0, 0).to);
13411
+ viewport = new Viewport(map.lineAt(topPos - 500, QueryType.ByHeight, oracle, 0, 0).from, map.lineAt(topPos + viewHeight + 500, QueryType.ByHeight, oracle, 0, 0).to);
13347
13412
  }
13348
13413
  }
13349
13414
  return viewport;
@@ -13357,7 +13422,7 @@ var ViewState = class {
13357
13422
  let { top } = this.heightMap.lineAt(from, QueryType.ByPos, this.heightOracle, 0, 0);
13358
13423
  let { bottom } = this.heightMap.lineAt(to, QueryType.ByPos, this.heightOracle, 0, 0);
13359
13424
  let { visibleTop, visibleBottom } = this;
13360
- return (from == 0 || top <= visibleTop - Math.max(10, Math.min(-bias, 250))) && (to == this.state.doc.length || bottom >= visibleBottom + Math.max(10, Math.min(bias, 250))) && top > visibleTop - 2 * 1e3 && bottom < visibleBottom + 2 * 1e3;
13425
+ return (from == 0 || top <= visibleTop - Math.max(10, Math.min(-bias, 250))) && (to == this.state.doc.length || bottom >= visibleBottom + Math.max(10, Math.min(bias, 250))) && top > visibleTop - 2e3 && bottom < visibleBottom + 2e3;
13361
13426
  }
13362
13427
  mapLineGaps(gaps, changes) {
13363
13428
  if (!gaps.length || changes.empty) return gaps;
@@ -13623,9 +13688,11 @@ function scaleBlock(block, scaler) {
13623
13688
  let bTop = scaler.toDOM(block.top), bBottom = scaler.toDOM(block.bottom);
13624
13689
  return new BlockInfo(block.from, block.length, bTop, bBottom - bTop, Array.isArray(block._content) ? block._content.map((b) => scaleBlock(b, scaler)) : block._content);
13625
13690
  }
13626
- var theme = /* @__PURE__ */ Facet.define({ combine: (strs) => strs.join(" ") });
13627
- var darkTheme = /* @__PURE__ */ Facet.define({ combine: (values) => values.indexOf(true) > -1 });
13628
- var baseThemeID = /* @__PURE__ */ StyleModule.newName(), baseLightID = /* @__PURE__ */ StyleModule.newName(), baseDarkID = /* @__PURE__ */ StyleModule.newName();
13691
+ var theme = /*@__PURE__*/ Facet.define({ combine: (strs) => strs.join(" ") });
13692
+ var darkTheme = /*@__PURE__*/ Facet.define({ combine: (values) => values.indexOf(true) > -1 });
13693
+ var baseThemeID = /*@__PURE__*/ StyleModule.newName();
13694
+ var baseLightID = /*@__PURE__*/ StyleModule.newName();
13695
+ var baseDarkID = /*@__PURE__*/ StyleModule.newName();
13629
13696
  var lightDarkIDs = {
13630
13697
  "&light": "." + baseLightID,
13631
13698
  "&dark": "." + baseDarkID
@@ -13639,7 +13706,7 @@ function buildTheme(main, spec, scopes) {
13639
13706
  }) : main + " " + sel;
13640
13707
  } });
13641
13708
  }
13642
- var baseTheme$1$1 = /* @__PURE__ */ buildTheme("." + baseThemeID, {
13709
+ var baseTheme$1$1 = /*@__PURE__*/ buildTheme("." + baseThemeID, {
13643
13710
  "&": {
13644
13711
  position: "relative !important",
13645
13712
  boxSizing: "border-box",
@@ -14170,18 +14237,20 @@ var DOMObserver = class {
14170
14237
  }
14171
14238
  addWindowListeners(win) {
14172
14239
  win.addEventListener("resize", this.onResize);
14173
- if (this.printQuery) if (this.printQuery.addEventListener) this.printQuery.addEventListener("change", this.onPrint);
14174
- else this.printQuery.addListener(this.onPrint);
14175
- else win.addEventListener("beforeprint", this.onPrint);
14240
+ if (this.printQuery) {
14241
+ if (this.printQuery.addEventListener) this.printQuery.addEventListener("change", this.onPrint);
14242
+ else this.printQuery.addListener(this.onPrint);
14243
+ } else win.addEventListener("beforeprint", this.onPrint);
14176
14244
  win.addEventListener("scroll", this.onScroll);
14177
14245
  win.document.addEventListener("selectionchange", this.onSelectionChange);
14178
14246
  }
14179
14247
  removeWindowListeners(win) {
14180
14248
  win.removeEventListener("scroll", this.onScroll);
14181
14249
  win.removeEventListener("resize", this.onResize);
14182
- if (this.printQuery) if (this.printQuery.removeEventListener) this.printQuery.removeEventListener("change", this.onPrint);
14183
- else this.printQuery.removeListener(this.onPrint);
14184
- else win.removeEventListener("beforeprint", this.onPrint);
14250
+ if (this.printQuery) {
14251
+ if (this.printQuery.removeEventListener) this.printQuery.removeEventListener("change", this.onPrint);
14252
+ else this.printQuery.removeListener(this.onPrint);
14253
+ } else win.removeEventListener("beforeprint", this.onPrint);
14185
14254
  win.document.removeEventListener("selectionchange", this.onSelectionChange);
14186
14255
  }
14187
14256
  update(update) {
@@ -14354,14 +14423,16 @@ var EditContextManager = class {
14354
14423
  update.changes.iterChanges((fromA, toA, _fromB, _toB, insert) => {
14355
14424
  if (abort) return;
14356
14425
  let dLen = insert.length - (toA - fromA);
14357
- if (pending && toA >= pending.to) if (pending.from == fromA && pending.to == toA && pending.insert.eq(insert)) {
14358
- pending = this.pendingContextChange = null;
14359
- off += dLen;
14360
- this.to += dLen;
14361
- return;
14362
- } else {
14363
- pending = null;
14364
- this.revertPending(update.state);
14426
+ if (pending && toA >= pending.to) {
14427
+ if (pending.from == fromA && pending.to == toA && pending.insert.eq(insert)) {
14428
+ pending = this.pendingContextChange = null;
14429
+ off += dLen;
14430
+ this.to += dLen;
14431
+ return;
14432
+ } else {
14433
+ pending = null;
14434
+ this.revertPending(update.state);
14435
+ }
14365
14436
  }
14366
14437
  fromA += off;
14367
14438
  toA += off;
@@ -14415,7 +14486,7 @@ var EditContextManager = class {
14415
14486
  }
14416
14487
  rangeIsValid(state) {
14417
14488
  let { head } = state.selection.main;
14418
- return !(this.from > 0 && head - this.from < 500 || this.to < state.doc.length && this.to - head < 500 || this.to - this.from > 1e4 * 3);
14489
+ return !(this.from > 0 && head - this.from < 500 || this.to < state.doc.length && this.to - head < 500 || this.to - this.from > 3e4);
14419
14490
  }
14420
14491
  toEditorPos(contextPos, clipLen = this.to - this.from) {
14421
14492
  contextPos = Math.min(contextPos, clipLen);
@@ -14724,13 +14795,15 @@ var EditorView = class EditorView {
14724
14795
  this.viewState.scrollAnchorHeight = -1;
14725
14796
  try {
14726
14797
  for (let i = 0;; i++) {
14727
- if (scrollAnchorHeight < 0) if (isScrolledToBottom(scroll || this.win)) {
14728
- scrollAnchorPos = -1;
14729
- scrollAnchorHeight = this.viewState.heightMap.height;
14730
- } else {
14731
- let block = this.viewState.scrollAnchorAt(scrollOffset);
14732
- scrollAnchorPos = block.from;
14733
- scrollAnchorHeight = block.top;
14798
+ if (scrollAnchorHeight < 0) {
14799
+ if (isScrolledToBottom(scroll || this.win)) {
14800
+ scrollAnchorPos = -1;
14801
+ scrollAnchorHeight = this.viewState.heightMap.height;
14802
+ } else {
14803
+ let block = this.viewState.scrollAnchorAt(scrollOffset);
14804
+ scrollAnchorPos = block.from;
14805
+ scrollAnchorHeight = block.top;
14806
+ }
14734
14807
  }
14735
14808
  this.updateState = 1;
14736
14809
  let changed = this.viewState.measure();
@@ -14769,19 +14842,21 @@ var EditorView = class EditorView {
14769
14842
  }
14770
14843
  if (redrawn) this.docView.updateSelection(true);
14771
14844
  if (!update.viewportChanged && this.measureRequests.length == 0) {
14772
- if (this.viewState.editorHeight) if (this.viewState.scrollTarget) {
14773
- this.docView.scrollIntoView(this.viewState.scrollTarget);
14774
- this.viewState.scrollTarget = null;
14775
- scrollAnchorHeight = -1;
14776
- continue;
14777
- } else {
14778
- let diff = ((scrollAnchorPos < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(scrollAnchorPos).top) - scrollAnchorHeight) / this.scaleY;
14779
- if ((diff > 1 || diff < -1) && (scroll == this.scrollDOM || this.hasFocus || Math.max(this.inputState.lastWheelEvent, this.inputState.lastTouchTime) > Date.now() - 100)) {
14780
- scrollOffset = scrollOffset + diff;
14781
- if (scroll) scroll.scrollTop += diff;
14782
- else this.win.scrollBy(0, diff);
14845
+ if (this.viewState.editorHeight) {
14846
+ if (this.viewState.scrollTarget) {
14847
+ this.docView.scrollIntoView(this.viewState.scrollTarget);
14848
+ this.viewState.scrollTarget = null;
14783
14849
  scrollAnchorHeight = -1;
14784
14850
  continue;
14851
+ } else {
14852
+ let diff = ((scrollAnchorPos < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(scrollAnchorPos).top) - scrollAnchorHeight) / this.scaleY;
14853
+ if ((diff > 1 || diff < -1) && (scroll == this.scrollDOM || this.hasFocus || Math.max(this.inputState.lastWheelEvent, this.inputState.lastTouchTime) > Date.now() - 100)) {
14854
+ scrollOffset = scrollOffset + diff;
14855
+ if (scroll) scroll.scrollTop += diff;
14856
+ else this.win.scrollBy(0, diff);
14857
+ scrollAnchorHeight = -1;
14858
+ continue;
14859
+ }
14785
14860
  }
14786
14861
  }
14787
14862
  break;
@@ -15444,7 +15519,7 @@ view keeps it away from the sides of the editor, either as a
15444
15519
  single pixel number or two different values for the different
15445
15520
  axes. Defaults to 5 pixels on both axes.
15446
15521
  */
15447
- EditorView.cursorScrollMargin = /* @__PURE__ */ Facet.define({ combine: (inputs) => {
15522
+ EditorView.cursorScrollMargin = /*@__PURE__*/ Facet.define({ combine: (inputs) => {
15448
15523
  let x = 5, y = 5;
15449
15524
  for (let i of inputs) if (typeof i == "number") x = y = i;
15450
15525
  else ({x, y} = i);
@@ -15474,7 +15549,7 @@ Provides a Content Security Policy nonce to use when creating
15474
15549
  the style sheets for the editor. Holds the empty string when no
15475
15550
  nonce has been provided.
15476
15551
  */
15477
- EditorView.cspNonce = /* @__PURE__ */ Facet.define({ combine: (values) => values.length ? values[0] : "" });
15552
+ EditorView.cspNonce = /*@__PURE__*/ Facet.define({ combine: (values) => values.length ? values[0] : "" });
15478
15553
  /**
15479
15554
  Facet that provides additional DOM attributes for the editor's
15480
15555
  editable DOM element.
@@ -15489,7 +15564,7 @@ EditorView.editorAttributes = editorAttributes;
15489
15564
  An extension that enables line wrapping in the editor (by
15490
15565
  setting CSS `white-space` to `pre-wrap` in the content).
15491
15566
  */
15492
- EditorView.lineWrapping = /* @__PURE__ */ EditorView.contentAttributes.of({ "class": "cm-lineWrapping" });
15567
+ EditorView.lineWrapping = /*@__PURE__*/ EditorView.contentAttributes.of({ "class": "cm-lineWrapping" });
15493
15568
  /**
15494
15569
  State effect used to include screen reader announcements in a
15495
15570
  transaction. These will be added to the DOM in a visually hidden
@@ -15498,7 +15573,7 @@ describe effects that are visually obvious but may not be
15498
15573
  noticed by screen reader users (such as moving to the next
15499
15574
  search match).
15500
15575
  */
15501
- EditorView.announce = /* @__PURE__ */ StateEffect.define();
15576
+ EditorView.announce = /*@__PURE__*/ StateEffect.define();
15502
15577
  var MaxBidiLine = 4096;
15503
15578
  var BadMeasure = {};
15504
15579
  var CachedOrder = class CachedOrder {
@@ -15539,9 +15614,10 @@ function normalizeKeyName(name, platform) {
15539
15614
  else if (/^a(lt)?$/i.test(mod)) alt = true;
15540
15615
  else if (/^(c|ctrl|control)$/i.test(mod)) ctrl = true;
15541
15616
  else if (/^s(hift)?$/i.test(mod)) shift = true;
15542
- else if (/^mod$/i.test(mod)) if (platform == "mac") meta = true;
15543
- else ctrl = true;
15544
- else throw new Error("Unrecognized modifier name: " + mod);
15617
+ else if (/^mod$/i.test(mod)) {
15618
+ if (platform == "mac") meta = true;
15619
+ else ctrl = true;
15620
+ } else throw new Error("Unrecognized modifier name: " + mod);
15545
15621
  }
15546
15622
  if (alt) result = "Alt-" + result;
15547
15623
  if (ctrl) result = "Ctrl-" + result;
@@ -15556,7 +15632,7 @@ function modifiers(name, event, shift) {
15556
15632
  if (shift !== false && event.shiftKey) name = "Shift-" + name;
15557
15633
  return name;
15558
15634
  }
15559
- var handleKeyEvents = /* @__PURE__ */ Prec.default(/* @__PURE__ */ EditorView.domEventHandlers({ keydown(event, view) {
15635
+ var handleKeyEvents = /*@__PURE__*/ Prec.default(/*@__PURE__*/ EditorView.domEventHandlers({ keydown(event, view) {
15560
15636
  return runHandlers(getKeymap(view.state), event, view, "editor");
15561
15637
  } }));
15562
15638
  /**
@@ -15567,8 +15643,8 @@ determine their precedence (the ones specified early or with high
15567
15643
  priority get checked first). When a handler has returned `true`
15568
15644
  for a given key, no further handlers are called.
15569
15645
  */
15570
- var keymap = /* @__PURE__ */ Facet.define({ enables: handleKeyEvents });
15571
- var Keymaps = /* @__PURE__ */ new WeakMap();
15646
+ var keymap = /*@__PURE__*/ Facet.define({ enables: handleKeyEvents });
15647
+ var Keymaps = /*@__PURE__*/ new WeakMap();
15572
15648
  function getKeymap(state) {
15573
15649
  let bindings = state.facet(keymap);
15574
15650
  let map = Keymaps.get(bindings);
@@ -15901,14 +15977,14 @@ var LayerView = class {
15901
15977
  this.dom.remove();
15902
15978
  }
15903
15979
  };
15904
- var layerOrder = /* @__PURE__ */ Facet.define();
15980
+ var layerOrder = /*@__PURE__*/ Facet.define();
15905
15981
  /**
15906
15982
  Define a layer.
15907
15983
  */
15908
15984
  function layer(config) {
15909
15985
  return [ViewPlugin.define((v) => new LayerView(v, config)), layerOrder.of(config)];
15910
15986
  }
15911
- var selectionConfig = /* @__PURE__ */ Facet.define({ combine(configs) {
15987
+ var selectionConfig = /*@__PURE__*/ Facet.define({ combine(configs) {
15912
15988
  return combineConfig(configs, {
15913
15989
  cursorBlinkRate: 1200,
15914
15990
  drawRangeCursor: true,
@@ -15948,7 +16024,7 @@ function drawSelection(config = {}) {
15948
16024
  function configChanged(update) {
15949
16025
  return update.startState.facet(selectionConfig) != update.state.facet(selectionConfig);
15950
16026
  }
15951
- var cursorLayer = /* @__PURE__ */ layer({
16027
+ var cursorLayer = /*@__PURE__*/ layer({
15952
16028
  above: true,
15953
16029
  markers(view) {
15954
16030
  let { state } = view, conf = state.facet(selectionConfig);
@@ -15977,7 +16053,7 @@ var cursorLayer = /* @__PURE__ */ layer({
15977
16053
  function setBlinkRate(state, dom) {
15978
16054
  dom.style.animationDuration = state.facet(selectionConfig).cursorBlinkRate + "ms";
15979
16055
  }
15980
- var selectionLayer = /* @__PURE__ */ layer({
16056
+ var selectionLayer = /*@__PURE__*/ layer({
15981
16057
  above: false,
15982
16058
  markers(view) {
15983
16059
  let markers = [], { main, ranges } = view.state.selection;
@@ -15993,7 +16069,7 @@ var selectionLayer = /* @__PURE__ */ layer({
15993
16069
  },
15994
16070
  class: "cm-selectionLayer"
15995
16071
  });
15996
- var hideNativeSelection = /* @__PURE__ */ Prec.highest(/* @__PURE__ */ EditorView.theme({
16072
+ var hideNativeSelection = /*@__PURE__*/ Prec.highest(/*@__PURE__*/ EditorView.theme({
15997
16073
  ".cm-line": {
15998
16074
  "& ::selection, &::selection": { backgroundColor: "transparent !important" },
15999
16075
  caretColor: "transparent !important"
@@ -16110,7 +16186,7 @@ var MatchDecorator = class {
16110
16186
  }
16111
16187
  };
16112
16188
  var UnicodeRegexpSupport = /x/.unicode != null ? "gu" : "g";
16113
- var Specials = /* @__PURE__ */ new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩-]", UnicodeRegexpSupport);
16189
+ var Specials = /*@__PURE__*/ new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩-]", UnicodeRegexpSupport);
16114
16190
  var Names = {
16115
16191
  0: "null",
16116
16192
  7: "bell",
@@ -16143,7 +16219,7 @@ function supportsTabSize() {
16143
16219
  }
16144
16220
  return _supportsTabSize || false;
16145
16221
  }
16146
- var specialCharConfig = /* @__PURE__ */ Facet.define({ combine(configs) {
16222
+ var specialCharConfig = /*@__PURE__*/ Facet.define({ combine(configs) {
16147
16223
  let config = combineConfig(configs, {
16148
16224
  render: null,
16149
16225
  specialChars: Specials,
@@ -16252,8 +16328,8 @@ DOM class.
16252
16328
  function highlightActiveLine() {
16253
16329
  return activeLineHighlighter;
16254
16330
  }
16255
- var lineDeco = /* @__PURE__ */ Decoration.line({ class: "cm-activeLine" });
16256
- var activeLineHighlighter = /* @__PURE__ */ ViewPlugin.fromClass(class {
16331
+ var lineDeco = /*@__PURE__*/ Decoration.line({ class: "cm-activeLine" });
16332
+ var activeLineHighlighter = /*@__PURE__*/ ViewPlugin.fromClass(class {
16257
16333
  constructor(view) {
16258
16334
  this.decorations = this.getDeco(view);
16259
16335
  }
@@ -16308,14 +16384,14 @@ Markers given to this facet should _only_ define an
16308
16384
  [`toDOM`](https://codemirror.net/6/docs/ref/#view.GutterMarker.toDOM) (or the marker will appear
16309
16385
  in all gutters for the line).
16310
16386
  */
16311
- var gutterLineClass = /* @__PURE__ */ Facet.define();
16387
+ var gutterLineClass = /*@__PURE__*/ Facet.define();
16312
16388
  /**
16313
16389
  Facet used to add a class to all gutter elements next to a widget.
16314
16390
  Should not provide widgets with a `toDOM` method.
16315
16391
  */
16316
- var gutterWidgetClass = /* @__PURE__ */ Facet.define();
16317
- var activeGutters = /* @__PURE__ */ Facet.define();
16318
- var unfixGutters = /* @__PURE__ */ Facet.define({ combine: (values) => values.some((x) => x) });
16392
+ var gutterWidgetClass = /*@__PURE__*/ Facet.define();
16393
+ var activeGutters = /*@__PURE__*/ Facet.define();
16394
+ var unfixGutters = /*@__PURE__*/ Facet.define({ combine: (values) => values.some((x) => x) });
16319
16395
  /**
16320
16396
  The gutter-drawing plugin is automatically enabled when you add a
16321
16397
  gutter, but you can use this function to explicitly configure it.
@@ -16331,7 +16407,7 @@ function gutters(config) {
16331
16407
  if (config && config.fixed === false) result.push(unfixGutters.of(true));
16332
16408
  return result;
16333
16409
  }
16334
- var gutterView = /* @__PURE__ */ ViewPlugin.fromClass(class {
16410
+ var gutterView = /*@__PURE__*/ ViewPlugin.fromClass(class {
16335
16411
  constructor(view) {
16336
16412
  this.view = view;
16337
16413
  this.domAfter = null;
@@ -16581,8 +16657,10 @@ var GutterElement = class {
16581
16657
  }
16582
16658
  }
16583
16659
  if (!marker) break;
16584
- if (marker.toDOM) if (matched) domPos = domPos.nextSibling;
16585
- else this.dom.insertBefore(marker.toDOM(view), domPos);
16660
+ if (marker.toDOM) {
16661
+ if (matched) domPos = domPos.nextSibling;
16662
+ else this.dom.insertBefore(marker.toDOM(view), domPos);
16663
+ }
16586
16664
  if (matched) iOld++;
16587
16665
  }
16588
16666
  this.dom.className = cls;
@@ -16600,12 +16678,12 @@ function sameMarkers(a, b) {
16600
16678
  /**
16601
16679
  Facet used to provide markers to the line number gutter.
16602
16680
  */
16603
- var lineNumberMarkers = /* @__PURE__ */ Facet.define();
16681
+ var lineNumberMarkers = /*@__PURE__*/ Facet.define();
16604
16682
  /**
16605
16683
  Facet used to create markers in the line number gutter next to widgets.
16606
16684
  */
16607
- var lineNumberWidgetMarker = /* @__PURE__ */ Facet.define();
16608
- var lineNumberConfig = /* @__PURE__ */ Facet.define({ combine(values) {
16685
+ var lineNumberWidgetMarker = /*@__PURE__*/ Facet.define();
16686
+ var lineNumberConfig = /*@__PURE__*/ Facet.define({ combine(values) {
16609
16687
  return combineConfig(values, {
16610
16688
  formatNumber: String,
16611
16689
  domEventHandlers: {}
@@ -16633,7 +16711,7 @@ var NumberMarker = class extends GutterMarker {
16633
16711
  function formatNumber(view, number) {
16634
16712
  return view.state.facet(lineNumberConfig).formatNumber(number, view.state);
16635
16713
  }
16636
- var lineNumberGutter = /* @__PURE__ */ activeGutters.compute([lineNumberConfig], (state) => ({
16714
+ var lineNumberGutter = /*@__PURE__*/ activeGutters.compute([lineNumberConfig], (state) => ({
16637
16715
  class: "cm-lineNumbers",
16638
16716
  renderEmptyElements: false,
16639
16717
  markers(view) {
@@ -16676,13 +16754,13 @@ function maxLineNumber(lines) {
16676
16754
  while (last < lines) last = last * 10 + 9;
16677
16755
  return last;
16678
16756
  }
16679
- var activeLineGutterMarker = /* @__PURE__ */ new class extends GutterMarker {
16757
+ var activeLineGutterMarker = /*@__PURE__*/ new class extends GutterMarker {
16680
16758
  constructor() {
16681
16759
  super(...arguments);
16682
16760
  this.elementClass = "cm-activeLineGutter";
16683
16761
  }
16684
16762
  }();
16685
- var activeLineGutterHighlighter = /* @__PURE__ */ gutterLineClass.compute(["selection"], (state) => {
16763
+ var activeLineGutterHighlighter = /*@__PURE__*/ gutterLineClass.compute(["selection"], (state) => {
16686
16764
  let marks = [], last = -1;
16687
16765
  for (let range of state.selection.ranges) {
16688
16766
  let linePos = state.doc.lineAt(range.head).from;
@@ -16708,7 +16786,7 @@ var _a;
16708
16786
  Node prop stored in a parser's top syntax node to provide the
16709
16787
  facet that stores language-specific data for that language.
16710
16788
  */
16711
- var languageDataProp = /* @__PURE__ */ new NodeProp();
16789
+ var languageDataProp = /*@__PURE__*/ new NodeProp();
16712
16790
  /**
16713
16791
  Helper function to define a facet (to be added to the top syntax
16714
16792
  node(s) for a language via
@@ -16724,7 +16802,7 @@ function defineLanguageFacet(baseData) {
16724
16802
  Syntax node prop used to register sublanguages. Should be added to
16725
16803
  the top level node type for the language.
16726
16804
  */
16727
- var sublanguageProp = /* @__PURE__ */ new NodeProp();
16805
+ var sublanguageProp = /*@__PURE__*/ new NodeProp();
16728
16806
  /**
16729
16807
  A language object manages parsing and per-language
16730
16808
  [metadata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt). Parse data is
@@ -16827,7 +16905,7 @@ var Language = class {
16827
16905
  /**
16828
16906
  @internal
16829
16907
  */
16830
- Language.setState = /* @__PURE__ */ StateEffect.define();
16908
+ Language.setState = /*@__PURE__*/ StateEffect.define();
16831
16909
  function topNodeAt(state, pos, side) {
16832
16910
  let topLang = state.facet(language), tree = syntaxTree(state).topNode;
16833
16911
  if (!topLang || topLang.allowsNesting) {
@@ -17146,7 +17224,7 @@ var LanguageState = class LanguageState {
17146
17224
  return new LanguageState(parseState);
17147
17225
  }
17148
17226
  };
17149
- Language.state = /* @__PURE__ */ StateField.define({
17227
+ Language.state = /*@__PURE__*/ StateField.define({
17150
17228
  create: LanguageState.init,
17151
17229
  update(value, tr) {
17152
17230
  for (let e of tr.effects) if (e.is(Language.setState)) return e.value;
@@ -17165,7 +17243,7 @@ if (typeof requestIdleCallback != "undefined") requestIdle = (callback) => {
17165
17243
  return () => idle < 0 ? clearTimeout(timeout) : cancelIdleCallback(idle);
17166
17244
  };
17167
17245
  var isInputPending = typeof navigator != "undefined" && ((_a = navigator.scheduling) === null || _a === void 0 ? void 0 : _a.isInputPending) ? () => navigator.scheduling.isInputPending() : null;
17168
- var parseWorker = /* @__PURE__ */ ViewPlugin.fromClass(class ParseWorker {
17246
+ var parseWorker = /*@__PURE__*/ ViewPlugin.fromClass(class ParseWorker {
17169
17247
  constructor(view) {
17170
17248
  this.view = view;
17171
17249
  this.working = null;
@@ -17234,7 +17312,7 @@ by `Language` object's `extension` property (so you don't need to
17234
17312
  manually wrap your languages in this). Can be used to access the
17235
17313
  current language on a state.
17236
17314
  */
17237
- var language = /* @__PURE__ */ Facet.define({
17315
+ var language = /*@__PURE__*/ Facet.define({
17238
17316
  combine(languages) {
17239
17317
  return languages.length ? languages[0] : null;
17240
17318
  },
@@ -17273,13 +17351,13 @@ determined, and the line should inherit the indentation of the one
17273
17351
  above it. A return value of `undefined` defers to the next indent
17274
17352
  service.
17275
17353
  */
17276
- var indentService = /* @__PURE__ */ Facet.define();
17354
+ var indentService = /*@__PURE__*/ Facet.define();
17277
17355
  /**
17278
17356
  Facet for overriding the unit by which indentation happens. Should
17279
17357
  be a string consisting entirely of the same whitespace character.
17280
17358
  When not set, this defaults to 2 spaces.
17281
17359
  */
17282
- var indentUnit = /* @__PURE__ */ Facet.define({ combine: (values) => {
17360
+ var indentUnit = /*@__PURE__*/ Facet.define({ combine: (values) => {
17283
17361
  if (!values.length) return " ";
17284
17362
  let unit = values[0];
17285
17363
  if (!unit || /\S/.test(unit) || Array.from(unit).some((e) => e != unit[0])) throw new Error("Invalid indent unit: " + JSON.stringify(values[0]));
@@ -17357,18 +17435,20 @@ var IndentContext = class {
17357
17435
  lineAt(pos, bias = 1) {
17358
17436
  let line = this.state.doc.lineAt(pos);
17359
17437
  let { simulateBreak, simulateDoubleBreak } = this.options;
17360
- if (simulateBreak != null && simulateBreak >= line.from && simulateBreak <= line.to) if (simulateDoubleBreak && simulateBreak == pos) return {
17361
- text: "",
17362
- from: pos
17363
- };
17364
- else if (bias < 0 ? simulateBreak < pos : simulateBreak <= pos) return {
17365
- text: line.text.slice(simulateBreak - line.from),
17366
- from: simulateBreak
17367
- };
17368
- else return {
17369
- text: line.text.slice(0, simulateBreak - line.from),
17370
- from: line.from
17371
- };
17438
+ if (simulateBreak != null && simulateBreak >= line.from && simulateBreak <= line.to) {
17439
+ if (simulateDoubleBreak && simulateBreak == pos) return {
17440
+ text: "",
17441
+ from: pos
17442
+ };
17443
+ else if (bias < 0 ? simulateBreak < pos : simulateBreak <= pos) return {
17444
+ text: line.text.slice(simulateBreak - line.from),
17445
+ from: simulateBreak
17446
+ };
17447
+ else return {
17448
+ text: line.text.slice(0, simulateBreak - line.from),
17449
+ from: line.from
17450
+ };
17451
+ }
17372
17452
  return line;
17373
17453
  }
17374
17454
  /**
@@ -17425,7 +17505,7 @@ context to a column number (see also
17425
17505
  [`indentString`](https://codemirror.net/6/docs/ref/#language.indentString)) or null, where null
17426
17506
  indicates that no definitive indentation can be determined.
17427
17507
  */
17428
- var indentNodeProp = /* @__PURE__ */ new NodeProp();
17508
+ var indentNodeProp = /*@__PURE__*/ new NodeProp();
17429
17509
  function syntaxIndentation(cx, ast, pos) {
17430
17510
  let stack = ast.resolveStack(pos);
17431
17511
  let inner = ast.resolveInner(pos, -1).resolve(pos, 0).enterUnfinishedNodesBefore(pos);
@@ -17640,7 +17720,7 @@ syntax node types. Given a syntax node, it should check whether
17640
17720
  that tree is foldable and return the range that can be collapsed
17641
17721
  when it is.
17642
17722
  */
17643
- var foldNodeProp = /* @__PURE__ */ new NodeProp();
17723
+ var foldNodeProp = /*@__PURE__*/ new NodeProp();
17644
17724
  /**
17645
17725
  [Fold](https://codemirror.net/6/docs/ref/#language.foldNodeProp) function that folds everything but
17646
17726
  the first and the last child of a syntax node. Useful for nodes
@@ -17695,8 +17775,8 @@ var HighlightStyle = class HighlightStyle {
17695
17775
  return new HighlightStyle(specs, options || {});
17696
17776
  }
17697
17777
  };
17698
- var highlighterFacet = /* @__PURE__ */ Facet.define();
17699
- var fallbackHighlighter = /* @__PURE__ */ Facet.define({ combine(values) {
17778
+ var highlighterFacet = /*@__PURE__*/ Facet.define();
17779
+ var fallbackHighlighter = /*@__PURE__*/ Facet.define({ combine(values) {
17700
17780
  return values.length ? [values[0]] : null;
17701
17781
  } });
17702
17782
  function getHighlighters(state) {
@@ -17752,11 +17832,11 @@ var TreeHighlighter = class {
17752
17832
  return builder.finish();
17753
17833
  }
17754
17834
  };
17755
- var treeHighlighter = /* @__PURE__ */ Prec.high(/* @__PURE__ */ ViewPlugin.fromClass(TreeHighlighter, { decorations: (v) => v.decorations }));
17835
+ var treeHighlighter = /*@__PURE__*/ Prec.high(/*@__PURE__*/ ViewPlugin.fromClass(TreeHighlighter, { decorations: (v) => v.decorations }));
17756
17836
  /**
17757
17837
  A default highlight style (works well with light themes).
17758
17838
  */
17759
- var defaultHighlightStyle = /* @__PURE__ */ HighlightStyle.define([
17839
+ var defaultHighlightStyle = /*@__PURE__*/ HighlightStyle.define([
17760
17840
  {
17761
17841
  tag: tags$1.meta,
17762
17842
  color: "#404740"
@@ -17808,16 +17888,16 @@ var defaultHighlightStyle = /* @__PURE__ */ HighlightStyle.define([
17808
17888
  tag: [
17809
17889
  tags$1.regexp,
17810
17890
  tags$1.escape,
17811
- /* @__PURE__ */ tags$1.special(tags$1.string)
17891
+ /*@__PURE__*/ tags$1.special(tags$1.string)
17812
17892
  ],
17813
17893
  color: "#e40"
17814
17894
  },
17815
17895
  {
17816
- tag: /* @__PURE__ */ tags$1.definition(tags$1.variableName),
17896
+ tag: /*@__PURE__*/ tags$1.definition(tags$1.variableName),
17817
17897
  color: "#00f"
17818
17898
  },
17819
17899
  {
17820
- tag: /* @__PURE__ */ tags$1.local(tags$1.variableName),
17900
+ tag: /*@__PURE__*/ tags$1.local(tags$1.variableName),
17821
17901
  color: "#30a"
17822
17902
  },
17823
17903
  {
@@ -17829,11 +17909,11 @@ var defaultHighlightStyle = /* @__PURE__ */ HighlightStyle.define([
17829
17909
  color: "#167"
17830
17910
  },
17831
17911
  {
17832
- tag: [/* @__PURE__ */ tags$1.special(tags$1.variableName), tags$1.macroName],
17912
+ tag: [/*@__PURE__*/ tags$1.special(tags$1.variableName), tags$1.macroName],
17833
17913
  color: "#256"
17834
17914
  },
17835
17915
  {
17836
- tag: /* @__PURE__ */ tags$1.definition(tags$1.propertyName),
17916
+ tag: /*@__PURE__*/ tags$1.definition(tags$1.propertyName),
17837
17917
  color: "#00c"
17838
17918
  },
17839
17919
  {
@@ -17845,12 +17925,13 @@ var defaultHighlightStyle = /* @__PURE__ */ HighlightStyle.define([
17845
17925
  color: "#f00"
17846
17926
  }
17847
17927
  ]);
17848
- var baseTheme$1 = /* @__PURE__ */ EditorView.baseTheme({
17928
+ var baseTheme$1 = /*@__PURE__*/ EditorView.baseTheme({
17849
17929
  "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
17850
17930
  "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
17851
17931
  });
17852
- var DefaultScanDist = 1e4, DefaultBrackets = "()[]{}";
17853
- var bracketMatchingConfig = /* @__PURE__ */ Facet.define({ combine(configs) {
17932
+ var DefaultScanDist = 1e4;
17933
+ var DefaultBrackets = "()[]{}";
17934
+ var bracketMatchingConfig = /*@__PURE__*/ Facet.define({ combine(configs) {
17854
17935
  return combineConfig(configs, {
17855
17936
  afterCursor: true,
17856
17937
  brackets: DefaultBrackets,
@@ -17858,7 +17939,8 @@ var bracketMatchingConfig = /* @__PURE__ */ Facet.define({ combine(configs) {
17858
17939
  renderMatch: defaultRenderMatch
17859
17940
  });
17860
17941
  } });
17861
- var matchingMark = /* @__PURE__ */ Decoration.mark({ class: "cm-matchingBracket" }), nonmatchingMark = /* @__PURE__ */ Decoration.mark({ class: "cm-nonmatchingBracket" });
17942
+ var matchingMark = /*@__PURE__*/ Decoration.mark({ class: "cm-matchingBracket" });
17943
+ var nonmatchingMark = /*@__PURE__*/ Decoration.mark({ class: "cm-nonmatchingBracket" });
17862
17944
  function defaultRenderMatch(match) {
17863
17945
  let decorations = [];
17864
17946
  let mark = match.matched ? matchingMark : nonmatchingMark;
@@ -17882,12 +17964,14 @@ var bracketMatchingUnique = [/* @__PURE__ */ ViewPlugin.fromClass(class {
17882
17964
  this.decorations = bracketDeco(view.state);
17883
17965
  }
17884
17966
  update(update) {
17885
- if (update.docChanged || update.selectionSet || this.paused) if (update.view.composing) {
17886
- this.decorations = this.decorations.map(update.changes);
17887
- this.paused = true;
17888
- } else {
17889
- this.decorations = bracketDeco(update.state);
17890
- this.paused = false;
17967
+ if (update.docChanged || update.selectionSet || this.paused) {
17968
+ if (update.view.composing) {
17969
+ this.decorations = this.decorations.map(update.changes);
17970
+ this.paused = true;
17971
+ } else {
17972
+ this.decorations = bracketDeco(update.state);
17973
+ this.paused = false;
17974
+ }
17891
17975
  }
17892
17976
  }
17893
17977
  }, { decorations: (v) => v.decorations }), baseTheme$1];
@@ -17908,7 +17992,7 @@ a node, a ‘handle’—the part of the node that is highlighted, and
17908
17992
  that the cursor must be on to activate highlighting in the first
17909
17993
  place.
17910
17994
  */
17911
- var bracketMatchingHandle = /* @__PURE__ */ new NodeProp();
17995
+ var bracketMatchingHandle = /*@__PURE__*/ new NodeProp();
17912
17996
  function matchingNodes(node, dir, brackets) {
17913
17997
  let byProp = node.prop(dir < 0 ? NodeProp.openedBy : NodeProp.closedBy);
17914
17998
  if (byProp) return byProp;
@@ -18015,11 +18099,11 @@ function matchPlainBrackets(state, pos, dir, tree, tokenType, maxScanDistance, b
18015
18099
  matched: false
18016
18100
  } : null;
18017
18101
  }
18018
- var noTokens = /* @__PURE__ */ Object.create(null);
18102
+ var noTokens = /*@__PURE__*/ Object.create(null);
18019
18103
  var typeArray = [NodeType.none];
18020
18104
  var warned = [];
18021
- var byTag = /* @__PURE__ */ Object.create(null);
18022
- var defaultTable = /* @__PURE__ */ Object.create(null);
18105
+ var byTag = /*@__PURE__*/ Object.create(null);
18106
+ var defaultTable = /*@__PURE__*/ Object.create(null);
18023
18107
  for (let [legacyName, name] of [
18024
18108
  ["variable", "variableName"],
18025
18109
  ["variable-2", "variableName.special"],
@@ -18033,7 +18117,7 @@ for (let [legacyName, name] of [
18033
18117
  ["error", "invalid"],
18034
18118
  ["header", "heading"],
18035
18119
  ["property", "propertyName"]
18036
- ]) defaultTable[legacyName] = /* @__PURE__ */ createTokenType(noTokens, name);
18120
+ ]) defaultTable[legacyName] = /*@__PURE__*/ createTokenType(noTokens, name);
18037
18121
  function warnForPart(part, msg) {
18038
18122
  if (warned.indexOf(part) > -1) return;
18039
18123
  warned.push(part);
@@ -18046,9 +18130,10 @@ function createTokenType(extra, tagStr) {
18046
18130
  for (let part of name.split(".")) {
18047
18131
  let value = extra[part] || tags$1[part];
18048
18132
  if (!value) warnForPart(part, `Unknown highlighting tag ${part}`);
18049
- else if (typeof value == "function") if (!found.length) warnForPart(part, `Modifier ${part} used at start of tag`);
18050
- else found = found.map(value);
18051
- else if (found.length) warnForPart(part, `Tag ${part} used as modifier`);
18133
+ else if (typeof value == "function") {
18134
+ if (!found.length) warnForPart(part, `Modifier ${part} used at start of tag`);
18135
+ else found = found.map(value);
18136
+ } else if (found.length) warnForPart(part, `Tag ${part} used as modifier`);
18052
18137
  else found = Array.isArray(value) ? value : [value];
18053
18138
  }
18054
18139
  for (let tag of found) tags$1$1.push(tag);
@@ -18089,7 +18174,7 @@ function properties() {
18089
18174
  }
18090
18175
  return _properties || [];
18091
18176
  }
18092
- var pseudoClasses = /* @__PURE__ */ [
18177
+ var pseudoClasses = /*@__PURE__*/ [
18093
18178
  "active",
18094
18179
  "after",
18095
18180
  "any-link",
@@ -18157,7 +18242,7 @@ var pseudoClasses = /* @__PURE__ */ [
18157
18242
  type: "class",
18158
18243
  label: name
18159
18244
  }));
18160
- var values = /* @__PURE__ */ [
18245
+ var values = /*@__PURE__*/ [
18161
18246
  "above",
18162
18247
  "absolute",
18163
18248
  "activeborder",
@@ -18580,7 +18665,7 @@ var values = /* @__PURE__ */ [
18580
18665
  ].map((name) => ({
18581
18666
  type: "keyword",
18582
18667
  label: name
18583
- })).concat(/* @__PURE__ */ [
18668
+ })).concat(/*@__PURE__*/ [
18584
18669
  "aliceblue",
18585
18670
  "antiquewhite",
18586
18671
  "aqua",
@@ -18727,7 +18812,7 @@ var values = /* @__PURE__ */ [
18727
18812
  type: "constant",
18728
18813
  label: name
18729
18814
  })));
18730
- var tags = /* @__PURE__ */ [
18815
+ var tags = /*@__PURE__*/ [
18731
18816
  "a",
18732
18817
  "abbr",
18733
18818
  "address",
@@ -18810,7 +18895,7 @@ var tags = /* @__PURE__ */ [
18810
18895
  type: "type",
18811
18896
  label: name
18812
18897
  }));
18813
- var atRules = /* @__PURE__ */ [
18898
+ var atRules = /*@__PURE__*/ [
18814
18899
  "@charset",
18815
18900
  "@color-profile",
18816
18901
  "@container",
@@ -18834,7 +18919,8 @@ var atRules = /* @__PURE__ */ [
18834
18919
  type: "keyword",
18835
18920
  label
18836
18921
  }));
18837
- var identifier$1 = /^(\w[\w-]*|-\w[\w-]*|)$/, variable = /^-(-[\w-]*)?$/;
18922
+ var identifier$1 = /^(\w[\w-]*|-\w[\w-]*|)$/;
18923
+ var variable = /^-(-[\w-]*)?$/;
18838
18924
  function isVarArg(node, doc) {
18839
18925
  var _a;
18840
18926
  if (node.name == "(" || node.type.isError) node = node.parent || node;
@@ -18843,7 +18929,7 @@ function isVarArg(node, doc) {
18843
18929
  if ((callee === null || callee === void 0 ? void 0 : callee.name) != "Callee") return false;
18844
18930
  return doc.sliceString(callee.from, callee.to) == "var";
18845
18931
  }
18846
- var VariablesByNode = /* @__PURE__ */ new NodeWeakMap();
18932
+ var VariablesByNode = /*@__PURE__*/ new NodeWeakMap();
18847
18933
  var declSelector = ["Declaration"];
18848
18934
  function astTop(node) {
18849
18935
  for (let cur = node;;) {
@@ -18950,15 +19036,15 @@ var defineCSSCompletionSource = (isVariable) => (context) => {
18950
19036
  /**
18951
19037
  CSS property, variable, and value keyword completion source.
18952
19038
  */
18953
- var cssCompletionSource = /* @__PURE__ */ defineCSSCompletionSource((n) => n.name == "VariableName");
19039
+ var cssCompletionSource = /*@__PURE__*/ defineCSSCompletionSource((n) => n.name == "VariableName");
18954
19040
  /**
18955
19041
  A language provider based on the [Lezer CSS
18956
19042
  parser](https://github.com/lezer-parser/css), extended with
18957
19043
  highlighting and indentation information.
18958
19044
  */
18959
- var cssLanguage = /* @__PURE__ */ LRLanguage.define({
19045
+ var cssLanguage = /*@__PURE__*/ LRLanguage.define({
18960
19046
  name: "css",
18961
- parser: /* @__PURE__ */ parser$3.configure({ props: [/* @__PURE__ */ indentNodeProp.add({ Declaration: /* @__PURE__ */ continuedIndent() }), /* @__PURE__ */ foldNodeProp.add({ "Block KeyframeList": foldInside })] }),
19047
+ parser: /*@__PURE__*/ parser$3.configure({ props: [/*@__PURE__*/ indentNodeProp.add({ Declaration: /*@__PURE__*/ continuedIndent() }), /*@__PURE__*/ foldNodeProp.add({ "Block KeyframeList": foldInside })] }),
18962
19048
  languageData: {
18963
19049
  commentTokens: { block: {
18964
19050
  open: "/*",
@@ -18976,7 +19062,39 @@ function css() {
18976
19062
  }
18977
19063
  //#endregion
18978
19064
  //#region ../node_modules/@lezer/html/dist/index.js
18979
- var scriptText = 55, StartCloseScriptTag = 1, styleText = 56, StartCloseStyleTag = 2, textareaText = 57, StartCloseTextareaTag = 3, EndTag = 4, SelfClosingEndTag = 5, StartTag = 6, StartScriptTag = 7, StartStyleTag = 8, StartTextareaTag = 9, StartSelfClosingTag = 10, StartCloseTag = 11, NoMatchStartCloseTag = 12, MismatchedStartCloseTag = 13, missingCloseTag = 58, IncompleteTag = 14, IncompleteCloseTag = 15, commentContent$1 = 59, Element = 21, TagName = 23, Attribute = 24, AttributeName = 25, AttributeValue = 27, UnquotedAttributeValue = 28, ScriptText = 29, StyleText = 32, TextareaText = 35, OpenTag = 37, CloseTag = 38, Dialect_noMatch = 0, Dialect_selfClosing = 1;
19065
+ var scriptText = 55;
19066
+ var StartCloseScriptTag = 1;
19067
+ var styleText = 56;
19068
+ var StartCloseStyleTag = 2;
19069
+ var textareaText = 57;
19070
+ var StartCloseTextareaTag = 3;
19071
+ var EndTag = 4;
19072
+ var SelfClosingEndTag = 5;
19073
+ var StartTag = 6;
19074
+ var StartScriptTag = 7;
19075
+ var StartStyleTag = 8;
19076
+ var StartTextareaTag = 9;
19077
+ var StartSelfClosingTag = 10;
19078
+ var StartCloseTag = 11;
19079
+ var NoMatchStartCloseTag = 12;
19080
+ var MismatchedStartCloseTag = 13;
19081
+ var missingCloseTag = 58;
19082
+ var IncompleteTag = 14;
19083
+ var IncompleteCloseTag = 15;
19084
+ var commentContent$1 = 59;
19085
+ var Element = 21;
19086
+ var TagName = 23;
19087
+ var Attribute = 24;
19088
+ var AttributeName = 25;
19089
+ var AttributeValue = 27;
19090
+ var UnquotedAttributeValue = 28;
19091
+ var ScriptText = 29;
19092
+ var StyleText = 32;
19093
+ var TextareaText = 35;
19094
+ var OpenTag = 37;
19095
+ var CloseTag = 38;
19096
+ var Dialect_noMatch = 0;
19097
+ var Dialect_selfClosing = 1;
18980
19098
  var selfClosers$1 = {
18981
19099
  area: true,
18982
19100
  base: true,
@@ -19085,7 +19203,9 @@ var closeOnOpen = {
19085
19203
  function nameChar(ch) {
19086
19204
  return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161;
19087
19205
  }
19088
- var cachedName = null, cachedInput = null, cachedPos = 0;
19206
+ var cachedName = null;
19207
+ var cachedInput = null;
19208
+ var cachedPos = 0;
19089
19209
  function tagNameAfter(input, offset) {
19090
19210
  let pos = input.pos + offset;
19091
19211
  if (cachedPos == pos && cachedInput == input) return cachedName;
@@ -19099,7 +19219,12 @@ function tagNameAfter(input, offset) {
19099
19219
  cachedPos = pos;
19100
19220
  return cachedName = name ? name.toLowerCase() : next == question$1 || next == bang ? void 0 : null;
19101
19221
  }
19102
- var lessThan = 60, greaterThan = 62, slash$1 = 47, question$1 = 63, bang = 33, dash = 45;
19222
+ var lessThan = 60;
19223
+ var greaterThan = 62;
19224
+ var slash$1 = 47;
19225
+ var question$1 = 63;
19226
+ var bang = 33;
19227
+ var dash = 45;
19103
19228
  function ElementContext(name, parent) {
19104
19229
  this.name = name;
19105
19230
  this.parent = parent;
@@ -19408,7 +19533,18 @@ function configureNesting(tags = [], attributes = []) {
19408
19533
  }
19409
19534
  //#endregion
19410
19535
  //#region ../node_modules/@lezer/javascript/dist/index.js
19411
- var noSemi = 316, noSemiType = 317, incdec = 1, incdecPrefix = 2, questionDot = 3, JSXStartTag = 4, insertSemi = 318, spaces = 320, newline = 321, LineComment = 5, BlockComment = 6, Dialect_jsx = 0;
19536
+ var noSemi = 316;
19537
+ var noSemiType = 317;
19538
+ var incdec = 1;
19539
+ var incdecPrefix = 2;
19540
+ var questionDot = 3;
19541
+ var JSXStartTag = 4;
19542
+ var insertSemi = 318;
19543
+ var spaces = 320;
19544
+ var newline = 321;
19545
+ var LineComment = 5;
19546
+ var BlockComment = 6;
19547
+ var Dialect_jsx = 0;
19412
19548
  var space = [
19413
19549
  9,
19414
19550
  10,
@@ -19436,7 +19572,17 @@ var space = [
19436
19572
  8287,
19437
19573
  12288
19438
19574
  ];
19439
- var braceR = 125, semicolon = 59, slash = 47, star = 42, plus = 43, minus = 45, lt = 60, comma = 44, question = 63, dot = 46, bracketL = 91;
19575
+ var braceR = 125;
19576
+ var semicolon = 59;
19577
+ var slash = 47;
19578
+ var star = 42;
19579
+ var plus = 43;
19580
+ var minus = 45;
19581
+ var lt = 60;
19582
+ var comma = 44;
19583
+ var question = 63;
19584
+ var dot = 46;
19585
+ var bracketL = 91;
19440
19586
  var trackNewline = new ContextTracker({
19441
19587
  start: false,
19442
19588
  shift(context, term) {
@@ -19921,9 +20067,9 @@ function ifNotIn(nodes, source) {
19921
20067
  This annotation is added to transactions that are produced by
19922
20068
  picking a completion.
19923
20069
  */
19924
- var pickedCompletion = /* @__PURE__ */ Annotation.define();
20070
+ var pickedCompletion = /*@__PURE__*/ Annotation.define();
19925
20071
  typeof navigator == "object" && navigator.platform;
19926
- var baseTheme = /* @__PURE__ */ EditorView.baseTheme({
20072
+ var baseTheme = /*@__PURE__*/ EditorView.baseTheme({
19927
20073
  ".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": {
19928
20074
  fontFamily: "monospace",
19929
20075
  whiteSpace: "nowrap",
@@ -20103,7 +20249,7 @@ var Snippet = class Snippet {
20103
20249
  return new Snippet(lines, positions);
20104
20250
  }
20105
20251
  };
20106
- var fieldMarker = /* @__PURE__ */ Decoration.widget({ widget: /* @__PURE__ */ new class extends WidgetType {
20252
+ var fieldMarker = /*@__PURE__*/ Decoration.widget({ widget: /*@__PURE__*/ new class extends WidgetType {
20107
20253
  toDOM() {
20108
20254
  let span = document.createElement("span");
20109
20255
  span.className = "cm-snippetFieldPosition";
@@ -20113,7 +20259,7 @@ var fieldMarker = /* @__PURE__ */ Decoration.widget({ widget: /* @__PURE__ */ ne
20113
20259
  return false;
20114
20260
  }
20115
20261
  }() });
20116
- var fieldRange = /* @__PURE__ */ Decoration.mark({ class: "cm-snippetField" });
20262
+ var fieldRange = /*@__PURE__*/ Decoration.mark({ class: "cm-snippetField" });
20117
20263
  var ActiveSnippet = class ActiveSnippet {
20118
20264
  constructor(ranges, active) {
20119
20265
  this.ranges = ranges;
@@ -20133,11 +20279,11 @@ var ActiveSnippet = class ActiveSnippet {
20133
20279
  return sel.ranges.every((range) => this.ranges.some((r) => r.field == this.active && r.from <= range.from && r.to >= range.to));
20134
20280
  }
20135
20281
  };
20136
- var setActive = /* @__PURE__ */ StateEffect.define({ map(value, changes) {
20282
+ var setActive = /*@__PURE__*/ StateEffect.define({ map(value, changes) {
20137
20283
  return value && value.map(changes);
20138
20284
  } });
20139
- var moveToField = /* @__PURE__ */ StateEffect.define();
20140
- var snippetState = /* @__PURE__ */ StateField.define({
20285
+ var moveToField = /*@__PURE__*/ StateEffect.define();
20286
+ var snippetState = /*@__PURE__*/ StateField.define({
20141
20287
  create() {
20142
20288
  return null;
20143
20289
  },
@@ -20250,10 +20396,10 @@ snippets. The default binds Tab to
20250
20396
  [`prevSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.prevSnippetField), and Escape
20251
20397
  to [`clearSnippet`](https://codemirror.net/6/docs/ref/#autocomplete.clearSnippet).
20252
20398
  */
20253
- var snippetKeymap = /* @__PURE__ */ Facet.define({ combine(maps) {
20399
+ var snippetKeymap = /*@__PURE__*/ Facet.define({ combine(maps) {
20254
20400
  return maps.length ? maps[0] : defaultSnippetKeymap;
20255
20401
  } });
20256
- var addSnippetKeymap = /* @__PURE__ */ Prec.highest(/* @__PURE__ */ keymap.compute([snippetKeymap], (state) => state.facet(snippetKeymap)));
20402
+ var addSnippetKeymap = /*@__PURE__*/ Prec.highest(/*@__PURE__*/ keymap.compute([snippetKeymap], (state) => state.facet(snippetKeymap)));
20257
20403
  /**
20258
20404
  Create a completion from a snippet. Returns an object with the
20259
20405
  properties from `completion`, plus an `apply` function that
@@ -20265,7 +20411,7 @@ function snippetCompletion(template, completion) {
20265
20411
  apply: snippet(template)
20266
20412
  };
20267
20413
  }
20268
- var snippetPointerHandler = /* @__PURE__ */ EditorView.domEventHandlers({ mousedown(event, view) {
20414
+ var snippetPointerHandler = /*@__PURE__*/ EditorView.domEventHandlers({ mousedown(event, view) {
20269
20415
  let active = view.state.field(snippetState, false), pos;
20270
20416
  if (!active || (pos = view.posAtCoords({
20271
20417
  x: event.clientX,
@@ -20291,14 +20437,14 @@ var defaults = {
20291
20437
  before: ")]}:;>",
20292
20438
  stringPrefixes: []
20293
20439
  };
20294
- var closeBracketEffect = /* @__PURE__ */ StateEffect.define({ map(value, mapping) {
20440
+ var closeBracketEffect = /*@__PURE__*/ StateEffect.define({ map(value, mapping) {
20295
20441
  let mapped = mapping.mapPos(value, -1, MapMode.TrackAfter);
20296
20442
  return mapped == null ? void 0 : mapped;
20297
20443
  } });
20298
- var closedBracket = /* @__PURE__ */ new class extends RangeValue {}();
20444
+ var closedBracket = /*@__PURE__*/ new class extends RangeValue {}();
20299
20445
  closedBracket.startSide = 1;
20300
20446
  closedBracket.endSide = -1;
20301
- var bracketState = /* @__PURE__ */ StateField.define({
20447
+ var bracketState = /*@__PURE__*/ StateField.define({
20302
20448
  create() {
20303
20449
  return RangeSet.empty;
20304
20450
  },
@@ -20330,8 +20476,8 @@ function closing(ch) {
20330
20476
  function config(state, pos) {
20331
20477
  return state.languageDataAt("closeBrackets", pos)[0] || defaults;
20332
20478
  }
20333
- var android$1 = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent);
20334
- var inputHandler = /* @__PURE__ */ EditorView.inputHandler.of((view, from, to, insert) => {
20479
+ var android$1 = typeof navigator == "object" && /*@__PURE__*/ /Android\b/.test(navigator.userAgent);
20480
+ var inputHandler = /*@__PURE__*/ EditorView.inputHandler.of((view, from, to, insert) => {
20335
20481
  if ((android$1 ? view.composing : view.compositionStarted) || view.state.readOnly) return false;
20336
20482
  let sel = view.state.selection.main;
20337
20483
  if (insert.length > 2 || insert.length == 2 && codePointSize(codePointAt(insert, 0)) == 1 || from != sel.from || to != sel.to) return false;
@@ -20556,57 +20702,57 @@ A collection of JavaScript-related
20556
20702
  [snippets](https://codemirror.net/6/docs/ref/#autocomplete.snippet).
20557
20703
  */
20558
20704
  var snippets = [
20559
- /* @__PURE__ */ snippetCompletion("function ${name}(${params}) {\n ${}\n}", {
20705
+ /*@__PURE__*/ snippetCompletion("function ${name}(${params}) {\n ${}\n}", {
20560
20706
  label: "function",
20561
20707
  detail: "definition",
20562
20708
  type: "keyword"
20563
20709
  }),
20564
- /* @__PURE__ */ snippetCompletion("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}", {
20710
+ /*@__PURE__*/ snippetCompletion("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}", {
20565
20711
  label: "for",
20566
20712
  detail: "loop",
20567
20713
  type: "keyword"
20568
20714
  }),
20569
- /* @__PURE__ */ snippetCompletion("for (let ${name} of ${collection}) {\n ${}\n}", {
20715
+ /*@__PURE__*/ snippetCompletion("for (let ${name} of ${collection}) {\n ${}\n}", {
20570
20716
  label: "for",
20571
20717
  detail: "of loop",
20572
20718
  type: "keyword"
20573
20719
  }),
20574
- /* @__PURE__ */ snippetCompletion("do {\n ${}\n} while (${})", {
20720
+ /*@__PURE__*/ snippetCompletion("do {\n ${}\n} while (${})", {
20575
20721
  label: "do",
20576
20722
  detail: "loop",
20577
20723
  type: "keyword"
20578
20724
  }),
20579
- /* @__PURE__ */ snippetCompletion("while (${}) {\n ${}\n}", {
20725
+ /*@__PURE__*/ snippetCompletion("while (${}) {\n ${}\n}", {
20580
20726
  label: "while",
20581
20727
  detail: "loop",
20582
20728
  type: "keyword"
20583
20729
  }),
20584
- /* @__PURE__ */ snippetCompletion("try {\n ${}\n} catch (${error}) {\n ${}\n}", {
20730
+ /*@__PURE__*/ snippetCompletion("try {\n ${}\n} catch (${error}) {\n ${}\n}", {
20585
20731
  label: "try",
20586
20732
  detail: "/ catch block",
20587
20733
  type: "keyword"
20588
20734
  }),
20589
- /* @__PURE__ */ snippetCompletion("if (${}) {\n ${}\n}", {
20735
+ /*@__PURE__*/ snippetCompletion("if (${}) {\n ${}\n}", {
20590
20736
  label: "if",
20591
20737
  detail: "block",
20592
20738
  type: "keyword"
20593
20739
  }),
20594
- /* @__PURE__ */ snippetCompletion("if (${}) {\n ${}\n} else {\n ${}\n}", {
20740
+ /*@__PURE__*/ snippetCompletion("if (${}) {\n ${}\n} else {\n ${}\n}", {
20595
20741
  label: "if",
20596
20742
  detail: "/ else block",
20597
20743
  type: "keyword"
20598
20744
  }),
20599
- /* @__PURE__ */ snippetCompletion("class ${name} {\n constructor(${params}) {\n ${}\n }\n}", {
20745
+ /*@__PURE__*/ snippetCompletion("class ${name} {\n constructor(${params}) {\n ${}\n }\n}", {
20600
20746
  label: "class",
20601
20747
  detail: "definition",
20602
20748
  type: "keyword"
20603
20749
  }),
20604
- /* @__PURE__ */ snippetCompletion("import {${names}} from \"${module}\"\n${}", {
20750
+ /*@__PURE__*/ snippetCompletion("import {${names}} from \"${module}\"\n${}", {
20605
20751
  label: "import",
20606
20752
  detail: "named",
20607
20753
  type: "keyword"
20608
20754
  }),
20609
- /* @__PURE__ */ snippetCompletion("import ${name} from \"${module}\"\n${}", {
20755
+ /*@__PURE__*/ snippetCompletion("import ${name} from \"${module}\"\n${}", {
20610
20756
  label: "import",
20611
20757
  detail: "default",
20612
20758
  type: "keyword"
@@ -20616,25 +20762,25 @@ var snippets = [
20616
20762
  A collection of snippet completions for TypeScript. Includes the
20617
20763
  JavaScript [snippets](https://codemirror.net/6/docs/ref/#lang-javascript.snippets).
20618
20764
  */
20619
- var typescriptSnippets = /* @__PURE__ */ snippets.concat([
20620
- /* @__PURE__ */ snippetCompletion("interface ${name} {\n ${}\n}", {
20765
+ var typescriptSnippets = /*@__PURE__*/ snippets.concat([
20766
+ /*@__PURE__*/ snippetCompletion("interface ${name} {\n ${}\n}", {
20621
20767
  label: "interface",
20622
20768
  detail: "definition",
20623
20769
  type: "keyword"
20624
20770
  }),
20625
- /* @__PURE__ */ snippetCompletion("type ${name} = ${type}", {
20771
+ /*@__PURE__*/ snippetCompletion("type ${name} = ${type}", {
20626
20772
  label: "type",
20627
20773
  detail: "definition",
20628
20774
  type: "keyword"
20629
20775
  }),
20630
- /* @__PURE__ */ snippetCompletion("enum ${name} {\n ${}\n}", {
20776
+ /*@__PURE__*/ snippetCompletion("enum ${name} {\n ${}\n}", {
20631
20777
  label: "enum",
20632
20778
  detail: "definition",
20633
20779
  type: "keyword"
20634
20780
  })
20635
20781
  ]);
20636
- var cache = /* @__PURE__ */ new NodeWeakMap();
20637
- var ScopeNodes = /* @__PURE__ */ new Set([
20782
+ var cache = /*@__PURE__*/ new NodeWeakMap();
20783
+ var ScopeNodes = /*@__PURE__*/ new Set([
20638
20784
  "Script",
20639
20785
  "Block",
20640
20786
  "FunctionExpression",
@@ -20652,12 +20798,12 @@ function defID(type) {
20652
20798
  }
20653
20799
  var functionContext = ["FunctionDeclaration"];
20654
20800
  var gatherCompletions = {
20655
- FunctionDeclaration: /* @__PURE__ */ defID("function"),
20656
- ClassDeclaration: /* @__PURE__ */ defID("class"),
20801
+ FunctionDeclaration: /*@__PURE__*/ defID("function"),
20802
+ ClassDeclaration: /*@__PURE__*/ defID("class"),
20657
20803
  ClassExpression: () => true,
20658
- EnumDeclaration: /* @__PURE__ */ defID("constant"),
20659
- TypeAliasDeclaration: /* @__PURE__ */ defID("type"),
20660
- NamespaceDeclaration: /* @__PURE__ */ defID("namespace"),
20804
+ EnumDeclaration: /*@__PURE__*/ defID("constant"),
20805
+ TypeAliasDeclaration: /*@__PURE__*/ defID("type"),
20806
+ NamespaceDeclaration: /*@__PURE__*/ defID("namespace"),
20661
20807
  VariableDefinition(node, def) {
20662
20808
  if (!node.matchContext(functionContext)) def(node, "variable");
20663
20809
  },
@@ -20734,20 +20880,20 @@ A language provider based on the [Lezer JavaScript
20734
20880
  parser](https://github.com/lezer-parser/javascript), extended with
20735
20881
  highlighting and indentation information.
20736
20882
  */
20737
- var javascriptLanguage = /* @__PURE__ */ LRLanguage.define({
20883
+ var javascriptLanguage = /*@__PURE__*/ LRLanguage.define({
20738
20884
  name: "javascript",
20739
- parser: /* @__PURE__ */ parser$1.configure({ props: [/* @__PURE__ */ indentNodeProp.add({
20740
- IfStatement: /* @__PURE__ */ continuedIndent({ except: /^\s*({|else\b)/ }),
20741
- TryStatement: /* @__PURE__ */ continuedIndent({ except: /^\s*({|catch\b|finally\b)/ }),
20885
+ parser: /*@__PURE__*/ parser$1.configure({ props: [/*@__PURE__*/ indentNodeProp.add({
20886
+ IfStatement: /*@__PURE__*/ continuedIndent({ except: /^\s*({|else\b)/ }),
20887
+ TryStatement: /*@__PURE__*/ continuedIndent({ except: /^\s*({|catch\b|finally\b)/ }),
20742
20888
  LabeledStatement: flatIndent,
20743
20889
  SwitchBody: (context) => {
20744
20890
  let after = context.textAfter, closed = /^\s*\}/.test(after), isCase = /^\s*(case|default)\b/.test(after);
20745
20891
  return context.baseIndent + (closed ? 0 : isCase ? 1 : 2) * context.unit;
20746
20892
  },
20747
- Block: /* @__PURE__ */ delimitedIndent({ closing: "}" }),
20893
+ Block: /*@__PURE__*/ delimitedIndent({ closing: "}" }),
20748
20894
  ArrowFunction: (cx) => cx.baseIndent + cx.unit,
20749
20895
  "TemplateString BlockComment": () => null,
20750
- "Statement Property": /* @__PURE__ */ continuedIndent({ except: /^\s*{/ }),
20896
+ "Statement Property": /*@__PURE__*/ continuedIndent({ except: /^\s*{/ }),
20751
20897
  JSXElement(context) {
20752
20898
  let closed = /^\s*<\//.test(context.textAfter);
20753
20899
  return context.lineIndent(context.node.from) + (closed ? 0 : context.unit);
@@ -20759,7 +20905,7 @@ var javascriptLanguage = /* @__PURE__ */ LRLanguage.define({
20759
20905
  "JSXOpenTag JSXSelfClosingTag"(context) {
20760
20906
  return context.column(context.node.from) + context.unit;
20761
20907
  }
20762
- }), /* @__PURE__ */ foldNodeProp.add({
20908
+ }), /*@__PURE__*/ foldNodeProp.add({
20763
20909
  "Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": foldInside,
20764
20910
  BlockComment(tree) {
20765
20911
  return {
@@ -20808,7 +20954,7 @@ var javascriptLanguage = /* @__PURE__ */ LRLanguage.define({
20808
20954
  });
20809
20955
  var jsxSublanguage = {
20810
20956
  test: (node) => /^JSX/.test(node.name),
20811
- facet: /* @__PURE__ */ defineLanguageFacet({ commentTokens: { block: {
20957
+ facet: /*@__PURE__*/ defineLanguageFacet({ commentTokens: { block: {
20812
20958
  open: "{/*",
20813
20959
  close: "*/}"
20814
20960
  } } })
@@ -20816,27 +20962,27 @@ var jsxSublanguage = {
20816
20962
  /**
20817
20963
  A language provider for TypeScript.
20818
20964
  */
20819
- var typescriptLanguage = /* @__PURE__ */ javascriptLanguage.configure({ dialect: "ts" }, "typescript");
20965
+ var typescriptLanguage = /*@__PURE__*/ javascriptLanguage.configure({ dialect: "ts" }, "typescript");
20820
20966
  /**
20821
20967
  Language provider for JSX.
20822
20968
  */
20823
- var jsxLanguage = /* @__PURE__ */ javascriptLanguage.configure({
20969
+ var jsxLanguage = /*@__PURE__*/ javascriptLanguage.configure({
20824
20970
  dialect: "jsx",
20825
- props: [/* @__PURE__ */ sublanguageProp.add((n) => n.isTop ? [jsxSublanguage] : void 0)]
20971
+ props: [/*@__PURE__*/ sublanguageProp.add((n) => n.isTop ? [jsxSublanguage] : void 0)]
20826
20972
  });
20827
20973
  /**
20828
20974
  Language provider for JSX + TypeScript.
20829
20975
  */
20830
- var tsxLanguage = /* @__PURE__ */ javascriptLanguage.configure({
20976
+ var tsxLanguage = /*@__PURE__*/ javascriptLanguage.configure({
20831
20977
  dialect: "jsx ts",
20832
- props: [/* @__PURE__ */ sublanguageProp.add((n) => n.isTop ? [jsxSublanguage] : void 0)]
20978
+ props: [/*@__PURE__*/ sublanguageProp.add((n) => n.isTop ? [jsxSublanguage] : void 0)]
20833
20979
  }, "typescript");
20834
20980
  var kwCompletion = (name) => ({
20835
20981
  label: name,
20836
20982
  type: "keyword"
20837
20983
  });
20838
- var keywords = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kwCompletion);
20839
- var typescriptKeywords = /* @__PURE__ */ keywords.concat(/* @__PURE__ */ [
20984
+ var keywords = /*@__PURE__*/ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kwCompletion);
20985
+ var typescriptKeywords = /*@__PURE__*/ keywords.concat(/*@__PURE__*/ [
20840
20986
  "declare",
20841
20987
  "implements",
20842
20988
  "private",
@@ -20867,12 +21013,12 @@ function elementName$1(doc, tree, max = doc.length) {
20867
21013
  for (let ch = tree === null || tree === void 0 ? void 0 : tree.firstChild; ch; ch = ch.nextSibling) if (ch.name == "JSXIdentifier" || ch.name == "JSXBuiltin" || ch.name == "JSXNamespacedName" || ch.name == "JSXMemberExpression") return doc.sliceString(ch.from, Math.min(ch.to, max));
20868
21014
  return "";
20869
21015
  }
20870
- var android = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent);
21016
+ var android = typeof navigator == "object" && /*@__PURE__*/ /Android\b/.test(navigator.userAgent);
20871
21017
  /**
20872
21018
  Extension that will automatically insert JSX close tags when a `>` or
20873
21019
  `/` is typed.
20874
21020
  */
20875
- var autoCloseTags$1 = /* @__PURE__ */ EditorView.inputHandler.of((view, from, to, text, defaultInsert) => {
21021
+ var autoCloseTags$1 = /*@__PURE__*/ EditorView.inputHandler.of((view, from, to, text, defaultInsert) => {
20876
21022
  if ((android ? view.composing : view.compositionStarted) || view.state.readOnly || from != to || text != ">" && text != "/" || !javascriptLanguage.isActiveAt(view.state, from, -1)) return false;
20877
21023
  let base = defaultInsert(), { state } = base;
20878
21024
  let closeTags = state.changeByRange((range) => {
@@ -21493,7 +21639,7 @@ var GlobalAttrs = {
21493
21639
  "search",
21494
21640
  "tag"
21495
21641
  ],
21496
- role: /* @__PURE__ */ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
21642
+ role: /*@__PURE__*/ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
21497
21643
  "aria-activedescendant": null,
21498
21644
  "aria-atomic": Bool,
21499
21645
  "aria-autocomplete": [
@@ -21570,7 +21716,7 @@ var GlobalAttrs = {
21570
21716
  "aria-valuenow": null,
21571
21717
  "aria-valuetext": null
21572
21718
  };
21573
- var eventAttributes = /* @__PURE__ */ "beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((n) => "on" + n);
21719
+ var eventAttributes = /*@__PURE__*/ "beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((n) => "on" + n);
21574
21720
  for (let a of eventAttributes) GlobalAttrs[a] = null;
21575
21721
  var Schema = class {
21576
21722
  constructor(extraTags, extraAttrs) {
@@ -21586,7 +21732,7 @@ var Schema = class {
21586
21732
  this.globalAttrNames = Object.keys(this.globalAttrs);
21587
21733
  }
21588
21734
  };
21589
- Schema.default = /* @__PURE__ */ new Schema();
21735
+ Schema.default = /*@__PURE__*/ new Schema();
21590
21736
  function elementName(doc, tree, max = doc.length) {
21591
21737
  if (!tree) return "";
21592
21738
  let tag = tree.firstChild;
@@ -21594,8 +21740,10 @@ function elementName(doc, tree, max = doc.length) {
21594
21740
  return name ? doc.sliceString(name.from, Math.min(name.to, max)) : "";
21595
21741
  }
21596
21742
  function findParentElement(tree, skip = false) {
21597
- for (; tree; tree = tree.parent) if (tree.name == "Element") if (skip) skip = false;
21598
- else return tree;
21743
+ for (; tree; tree = tree.parent) if (tree.name == "Element") {
21744
+ if (skip) skip = false;
21745
+ else return tree;
21746
+ }
21599
21747
  return null;
21600
21748
  }
21601
21749
  function allowedChildren(doc, tree, schema) {
@@ -21734,7 +21882,7 @@ function htmlCompletionSourceWith(config) {
21734
21882
  let schema = extraAttrs || extraTags ? new Schema(extraTags, extraAttrs) : Schema.default;
21735
21883
  return (context) => htmlCompletionFor(schema, context);
21736
21884
  }
21737
- var jsonParser = /* @__PURE__ */ javascriptLanguage.parser.configure({ top: "SingleExpression" });
21885
+ var jsonParser = /*@__PURE__*/ javascriptLanguage.parser.configure({ top: "SingleExpression" });
21738
21886
  var defaultNesting = [
21739
21887
  {
21740
21888
  tag: "script",
@@ -21773,17 +21921,17 @@ var defaultNesting = [
21773
21921
  parser: cssLanguage.parser
21774
21922
  }
21775
21923
  ];
21776
- var defaultAttrs = /* @__PURE__ */ [{
21924
+ var defaultAttrs = /*@__PURE__*/ [{
21777
21925
  name: "style",
21778
- parser: /* @__PURE__ */ cssLanguage.parser.configure({ top: "Styles" })
21779
- }].concat(/* @__PURE__ */ eventAttributes.map((name) => ({
21926
+ parser: /*@__PURE__*/ cssLanguage.parser.configure({ top: "Styles" })
21927
+ }].concat(/*@__PURE__*/ eventAttributes.map((name) => ({
21780
21928
  name,
21781
21929
  parser: javascriptLanguage.parser
21782
21930
  })));
21783
- var htmlPlain = /* @__PURE__ */ LRLanguage.define({
21931
+ var htmlPlain = /*@__PURE__*/ LRLanguage.define({
21784
21932
  name: "html",
21785
- parser: /* @__PURE__ */ parser$2.configure({ props: [
21786
- /* @__PURE__ */ indentNodeProp.add({
21933
+ parser: /*@__PURE__*/ parser$2.configure({ props: [
21934
+ /*@__PURE__*/ indentNodeProp.add({
21787
21935
  Element(context) {
21788
21936
  let after = /^(\s*)(<\/)?/.exec(context.textAfter);
21789
21937
  if (context.node.to <= context.pos + after[0].length) return context.continue();
@@ -21804,7 +21952,7 @@ var htmlPlain = /* @__PURE__ */ LRLanguage.define({
21804
21952
  return null;
21805
21953
  }
21806
21954
  }),
21807
- /* @__PURE__ */ foldNodeProp.add({ Element(node) {
21955
+ /*@__PURE__*/ foldNodeProp.add({ Element(node) {
21808
21956
  let first = node.firstChild, last = node.lastChild;
21809
21957
  if (!first || first.name != "OpenTag") return null;
21810
21958
  return {
@@ -21812,7 +21960,7 @@ var htmlPlain = /* @__PURE__ */ LRLanguage.define({
21812
21960
  to: last.name == "CloseTag" ? last.from : node.to
21813
21961
  };
21814
21962
  } }),
21815
- /* @__PURE__ */ bracketMatchingHandle.add({ "OpenTag CloseTag": (node) => node.getChild("TagName") })
21963
+ /*@__PURE__*/ bracketMatchingHandle.add({ "OpenTag CloseTag": (node) => node.getChild("TagName") })
21816
21964
  ] }),
21817
21965
  languageData: {
21818
21966
  commentTokens: { block: {
@@ -21829,7 +21977,7 @@ parser](https://github.com/lezer-parser/html), extended with the
21829
21977
  JavaScript and CSS parsers to parse the content of `<script>` and
21830
21978
  `<style>` tags.
21831
21979
  */
21832
- var htmlLanguage = /* @__PURE__ */ htmlPlain.configure({ wrap: /* @__PURE__ */ configureNesting(defaultNesting, defaultAttrs) });
21980
+ var htmlLanguage = /*@__PURE__*/ htmlPlain.configure({ wrap: /*@__PURE__*/ configureNesting(defaultNesting, defaultAttrs) });
21833
21981
  /**
21834
21982
  Language support for HTML, including
21835
21983
  [`htmlCompletion`](https://codemirror.net/6/docs/ref/#lang-html.htmlCompletion) and JavaScript and
@@ -21850,12 +21998,12 @@ function html(config = {}) {
21850
21998
  css().support
21851
21999
  ]);
21852
22000
  }
21853
- var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));
22001
+ var selfClosers = /*@__PURE__*/ new Set(/*@__PURE__*/ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));
21854
22002
  /**
21855
22003
  Extension that will automatically insert close tags when a `>` or
21856
22004
  `/` is typed.
21857
22005
  */
21858
- var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {
22006
+ var autoCloseTags = /*@__PURE__*/ EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {
21859
22007
  if (view.composing || view.state.readOnly || from != to || text != ">" && text != "/" || !htmlLanguage.isActiveAt(view.state, from, -1)) return false;
21860
22008
  let base = insertTransaction(), { state } = base;
21861
22009
  let closeTags = state.changeByRange((range) => {
@@ -21951,12 +22099,12 @@ var parser = LRParser.deserialize({
21951
22099
  /**
21952
22100
  A language provider that provides JSON parsing.
21953
22101
  */
21954
- var jsonLanguage = /* @__PURE__ */ LRLanguage.define({
22102
+ var jsonLanguage = /*@__PURE__*/ LRLanguage.define({
21955
22103
  name: "json",
21956
- parser: /* @__PURE__ */ parser.configure({ props: [/* @__PURE__ */ indentNodeProp.add({
21957
- Object: /* @__PURE__ */ continuedIndent({ except: /^\s*\}/ }),
21958
- Array: /* @__PURE__ */ continuedIndent({ except: /^\s*\]/ })
21959
- }), /* @__PURE__ */ foldNodeProp.add({ "Object Array": foldInside })] }),
22104
+ parser: /*@__PURE__*/ parser.configure({ props: [/*@__PURE__*/ indentNodeProp.add({
22105
+ Object: /*@__PURE__*/ continuedIndent({ except: /^\s*\}/ }),
22106
+ Array: /*@__PURE__*/ continuedIndent({ except: /^\s*\]/ })
22107
+ }), /*@__PURE__*/ foldNodeProp.add({ "Object Array": foldInside })] }),
21960
22108
  languageData: {
21961
22109
  closeBrackets: { brackets: [
21962
22110
  "[",
@@ -21997,19 +22145,19 @@ The line comment syntax is taken from the
21997
22145
  [`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language
21998
22146
  data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).
21999
22147
  */
22000
- var toggleLineComment = /* @__PURE__ */ command(changeLineComment, 0);
22148
+ var toggleLineComment = /*@__PURE__*/ command(changeLineComment, 0);
22001
22149
  /**
22002
22150
  Comment or uncomment the current selection using block comments.
22003
22151
  The block comment syntax is taken from the
22004
22152
  [`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language
22005
22153
  data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).
22006
22154
  */
22007
- var toggleBlockComment = /* @__PURE__ */ command(changeBlockComment, 0);
22155
+ var toggleBlockComment = /*@__PURE__*/ command(changeBlockComment, 0);
22008
22156
  /**
22009
22157
  Comment or uncomment the lines around the current selection using
22010
22158
  block comments.
22011
22159
  */
22012
- var toggleBlockCommentByLine = /* @__PURE__ */ command((o, s) => changeBlockComment(o, s, selectedLineRanges(s)), 0);
22160
+ var toggleBlockCommentByLine = /*@__PURE__*/ command((o, s) => changeBlockComment(o, s, selectedLineRanges(s)), 0);
22013
22161
  function getConfig(state, pos) {
22014
22162
  let data = state.languageDataAt("commentTokens", pos, 1);
22015
22163
  return data.length ? data[0] : {};
@@ -22035,7 +22183,7 @@ function findBlockComment(state, { open, close }, from, to) {
22035
22183
  }
22036
22184
  };
22037
22185
  let startText, endText;
22038
- if (to - from <= 2 * SearchMargin) startText = endText = state.sliceDoc(from, to);
22186
+ if (to - from <= 100) startText = endText = state.sliceDoc(from, to);
22039
22187
  else {
22040
22188
  startText = state.sliceDoc(from, from + SearchMargin);
22041
22189
  endText = state.sliceDoc(to - SearchMargin, to);
@@ -22157,7 +22305,7 @@ function changeLineComment(option, state, ranges = state.selection.ranges) {
22157
22305
  }
22158
22306
  return null;
22159
22307
  }
22160
- var fromHistory = /* @__PURE__ */ Annotation.define();
22308
+ var fromHistory = /*@__PURE__*/ Annotation.define();
22161
22309
  /**
22162
22310
  Transaction annotation that will prevent that transaction from
22163
22311
  being combined with other transactions in the undo history. Given
@@ -22165,7 +22313,7 @@ being combined with other transactions in the undo history. Given
22165
22313
  `"after"`, subsequent transactions won't be combined with this
22166
22314
  one. With `"full"`, the transaction is isolated on both sides.
22167
22315
  */
22168
- var isolateHistory = /* @__PURE__ */ Annotation.define();
22316
+ var isolateHistory = /*@__PURE__*/ Annotation.define();
22169
22317
  /**
22170
22318
  This facet provides a way to register functions that, given a
22171
22319
  transaction, provide a set of effects that the history should
@@ -22173,8 +22321,8 @@ store when inverting the transaction. This can be used to
22173
22321
  integrate some kinds of effects in the history, so that they can
22174
22322
  be undone (and redone again).
22175
22323
  */
22176
- var invertedEffects = /* @__PURE__ */ Facet.define();
22177
- var historyConfig = /* @__PURE__ */ Facet.define({ combine(configs) {
22324
+ var invertedEffects = /*@__PURE__*/ Facet.define();
22325
+ var historyConfig = /*@__PURE__*/ Facet.define({ combine(configs) {
22178
22326
  return combineConfig(configs, {
22179
22327
  minDepth: 100,
22180
22328
  newGroupDelay: 500,
@@ -22185,7 +22333,7 @@ var historyConfig = /* @__PURE__ */ Facet.define({ combine(configs) {
22185
22333
  joinToEvent: (a, b) => (tr, adj) => a(tr, adj) || b(tr, adj)
22186
22334
  });
22187
22335
  } });
22188
- var historyField_ = /* @__PURE__ */ StateField.define({
22336
+ var historyField_ = /*@__PURE__*/ StateField.define({
22189
22337
  create() {
22190
22338
  return HistoryState.empty;
22191
22339
  },
@@ -22249,20 +22397,20 @@ function cmd(side, selection) {
22249
22397
  Undo a single group of history events. Returns false if no group
22250
22398
  was available.
22251
22399
  */
22252
- var undo = /* @__PURE__ */ cmd(0, false);
22400
+ var undo = /*@__PURE__*/ cmd(0, false);
22253
22401
  /**
22254
22402
  Redo a group of history events. Returns false if no group was
22255
22403
  available.
22256
22404
  */
22257
- var redo = /* @__PURE__ */ cmd(1, false);
22405
+ var redo = /*@__PURE__*/ cmd(1, false);
22258
22406
  /**
22259
22407
  Undo a change or selection change.
22260
22408
  */
22261
- var undoSelection = /* @__PURE__ */ cmd(0, true);
22409
+ var undoSelection = /*@__PURE__*/ cmd(0, true);
22262
22410
  /**
22263
22411
  Redo a change or selection change.
22264
22412
  */
22265
- var redoSelection = /* @__PURE__ */ cmd(1, true);
22413
+ var redoSelection = /*@__PURE__*/ cmd(1, true);
22266
22414
  var HistEvent = class HistEvent {
22267
22415
  constructor(changes, effects, mapped, startSelection, selectionsAfter) {
22268
22416
  this.changes = changes;
@@ -22423,7 +22571,7 @@ var HistoryState = class HistoryState {
22423
22571
  }
22424
22572
  }
22425
22573
  };
22426
- HistoryState.empty = /* @__PURE__ */ new HistoryState(none, none);
22574
+ HistoryState.empty = /*@__PURE__*/ new HistoryState(none, none);
22427
22575
  /**
22428
22576
  Default key bindings for the undo history.
22429
22577
 
@@ -23161,11 +23309,11 @@ will also delete that whitespace. When the cursor is between
23161
23309
  matching brackets, an additional newline will be inserted after
23162
23310
  the cursor.
23163
23311
  */
23164
- var insertNewlineAndIndent = /* @__PURE__ */ newlineAndIndent(false);
23312
+ var insertNewlineAndIndent = /*@__PURE__*/ newlineAndIndent(false);
23165
23313
  /**
23166
23314
  Create a blank, indented line below the current line.
23167
23315
  */
23168
- var insertBlankLine = /* @__PURE__ */ newlineAndIndent(true);
23316
+ var insertBlankLine = /*@__PURE__*/ newlineAndIndent(true);
23169
23317
  function newlineAndIndent(atEof) {
23170
23318
  return ({ state, dispatch }) => {
23171
23319
  if (state.readOnly) return false;
@@ -23407,7 +23555,7 @@ property changed to `mac`.)
23407
23555
  - Cmd-Backspace (macOS): [`deleteLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.deleteLineBoundaryBackward).
23408
23556
  - Cmd-Delete (macOS): [`deleteLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.deleteLineBoundaryForward).
23409
23557
  */
23410
- var standardKeymap = /* @__PURE__ */ [
23558
+ var standardKeymap = /*@__PURE__*/ [
23411
23559
  {
23412
23560
  key: "ArrowLeft",
23413
23561
  run: cursorCharLeft,
@@ -23552,7 +23700,7 @@ var standardKeymap = /* @__PURE__ */ [
23552
23700
  run: deleteLineBoundaryForward,
23553
23701
  preventDefault: true
23554
23702
  }
23555
- ].concat(/* @__PURE__ */ emacsStyleKeymap.map((b) => ({
23703
+ ].concat(/*@__PURE__*/ emacsStyleKeymap.map((b) => ({
23556
23704
  mac: b.key,
23557
23705
  run: b.run,
23558
23706
  shift: b.shift
@@ -23582,7 +23730,7 @@ The default keymap. Includes all bindings from
23582
23730
  - Shift-Alt-a: [`toggleBlockComment`](https://codemirror.net/6/docs/ref/#commands.toggleBlockComment).
23583
23731
  - Ctrl-m (Alt-Shift-m on macOS): [`toggleTabFocusMode`](https://codemirror.net/6/docs/ref/#commands.toggleTabFocusMode).
23584
23732
  */
23585
- var defaultKeymap = /* @__PURE__ */ [
23733
+ var defaultKeymap = /*@__PURE__*/ [
23586
23734
  {
23587
23735
  key: "Alt-ArrowLeft",
23588
23736
  mac: "Ctrl-ArrowLeft",