@nldd/design-system 0.25.2 → 0.26.1

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 (323) hide show
  1. package/custom-elements.json +728 -32
  2. package/dist/cdn/autoloader.js +141 -141
  3. package/dist/cdn/chunks/{accordion-CE_VBJPo.js → accordion-DA4IlxS5.js} +4 -4
  4. package/dist/cdn/chunks/{accordion-item-CkIrLwn9.js → accordion-item-Ca1o93cq.js} +9 -7
  5. package/dist/cdn/chunks/{activity-indicator-DHgkMBdz.js → activity-indicator-Cj4H0Mbz.js} +5 -5
  6. package/dist/cdn/chunks/{admonition-CK1c7HiM.js → admonition-CdZSoO8O.js} +9 -7
  7. package/dist/cdn/chunks/{avatar-DwS0FqYL.js → avatar-Dhqn-Dmv.js} +6 -6
  8. package/dist/cdn/chunks/{avatar-group-BX1URuq1.js → avatar-group-B017eF-u.js} +15 -15
  9. package/dist/cdn/chunks/{badge-Dyfzch0N.js → badge-Bep5B0_g.js} +5 -5
  10. package/dist/cdn/chunks/{banner-BPUb-ZpJ.js → banner-DGpIXuE2.js} +7 -7
  11. package/dist/cdn/chunks/{bar-split-view-BitGKRYw.js → bar-split-view-CKwJxd3e.js} +5 -5
  12. package/dist/cdn/chunks/{blockquote-CAnK7XlI.js → blockquote-ChMgaOuI.js} +3 -3
  13. package/dist/cdn/chunks/{box-epVc6r3W.js → box-BRmziG-6.js} +3 -3
  14. package/dist/cdn/chunks/{breadcrumbs-CY5m5_72.js → breadcrumbs-BeVO8bkQ.js} +5 -5
  15. package/dist/cdn/chunks/{button-bar-BcmQQqns.js → button-bar-CLxOdalJ.js} +3 -3
  16. package/dist/cdn/chunks/{button-1F4MG_21.js → button-cHBkq_s7.js} +9 -9
  17. package/dist/cdn/chunks/{button-group-vez-t2RB.js → button-group-BIvKtEIX.js} +2 -2
  18. package/dist/cdn/chunks/{card-sHcZK0Sx.js → card-B5gp9Zly.js} +4 -4
  19. package/dist/cdn/chunks/{cell-_FH10LVj.js → cell-D4Nrd5Z9.js} +6 -6
  20. package/dist/cdn/chunks/{checkbox-B2EXnuni.js → checkbox-CeLTJhAc.js} +4 -4
  21. package/dist/cdn/chunks/{checkbox-field-DYBeOCXv.js → checkbox-field-C8cU8fuf.js} +6 -6
  22. package/dist/cdn/chunks/{checkbox-group-zV_EgqJ1.js → checkbox-group-CC72cq-P.js} +3 -3
  23. package/dist/cdn/chunks/{class-map-3v5_QWa6.js → class-map-xzscTu4B.js} +1 -1
  24. package/dist/cdn/chunks/{code-editor-DVHvHweL.js → code-editor-BNhlXTSl.js} +10 -10
  25. package/dist/cdn/chunks/{code-viewer-CRc5yGTZ.js → code-viewer-D_JwouYO.js} +35 -35
  26. package/dist/cdn/chunks/{codemirror-input-CgrWL_xI.js → codemirror-input-DJ0wgYrc.js} +368 -368
  27. package/dist/cdn/chunks/{collection-BobIdtqA.js → collection-BXvz_OtU.js} +8 -8
  28. package/dist/cdn/chunks/{combo-box-1h_xzaHk.js → combo-box-8kbmoStb.js} +9 -9
  29. package/dist/cdn/chunks/{container-RIa-Sff8.js → container-Dq-2uHd5.js} +2 -2
  30. package/dist/cdn/chunks/{custom-element-Dmqf9u_a.js → custom-element-DeaCQ2NP.js} +1 -1
  31. package/dist/cdn/chunks/{date-field-BN9TIiUH.js → date-field-CQg1_73u.js} +13 -13
  32. package/dist/cdn/chunks/{date-picker-BFvZvzwT.js → date-picker-CTMxGOiA.js} +10 -10
  33. package/dist/cdn/chunks/{decorate-D_xx_M26.js → decorate-CCYde2ES.js} +1 -1
  34. package/dist/cdn/chunks/{described-by-mixin-C3iCCTgg.js → described-by-mixin-BYFim7aO.js} +2 -2
  35. package/dist/cdn/chunks/{description-cell-D9oU3cOo.js → description-cell-GcVeCz2_.js} +6 -6
  36. package/dist/cdn/chunks/{dev-checks-Dcd5eLU5.js → dev-checks-CSlbfDuF.js} +19 -2
  37. package/dist/cdn/chunks/{directive-helpers-B40ApSJp.js → directive-helpers-DgaADFyY.js} +1 -1
  38. package/dist/cdn/chunks/{dist-DRizG2xD.js → dist-1OQdP4ho.js} +10 -10
  39. package/dist/cdn/chunks/{dist-BJyPLZy3.js → dist-5vPsM2aV.js} +8 -8
  40. package/dist/cdn/chunks/{dist-Cxpg90R5.js → dist-B23jHvJ5.js} +15 -15
  41. package/dist/cdn/chunks/{dist-B5Qpgwkt.js → dist-CNy2sPTt.js} +6 -6
  42. package/dist/cdn/chunks/{dist-BzfZCamJ.js → dist-CcpLhc4y.js} +7 -7
  43. package/dist/cdn/chunks/{dist-BZuHdnRq.js → dist-CyDpBAaD.js} +7 -7
  44. package/dist/cdn/chunks/{dist-De4uSuY6.js → dist-D4SViUJx.js} +21 -21
  45. package/dist/cdn/chunks/{dist-0pu3OKnY.js → dist-DBxjWahH.js} +4 -4
  46. package/dist/cdn/chunks/{dist-CPfUaZn6.js → dist-DLtwMUDc.js} +18 -18
  47. package/dist/cdn/chunks/{dist-8y5HG5So.js → dist-Da_liXcd.js} +124 -124
  48. package/dist/cdn/chunks/{dist-BVrnRVfm.js → dist-VCymi0hs.js} +250 -250
  49. package/dist/cdn/chunks/{divider-DhmeevvA.js → divider-8XD3xTbl.js} +2 -2
  50. package/dist/cdn/chunks/{document-tab-bar-BxgIq1Lc.js → document-tab-bar-RBAmckHS.js} +9 -9
  51. package/dist/cdn/chunks/{dropdown-BTnHERYI.js → dropdown-DVlxPcjr.js} +5 -5
  52. package/dist/cdn/chunks/field-button-controller-yvICuXoE.js +26 -0
  53. package/dist/cdn/chunks/{file-field-BoQCuthe.js → file-field-BrHnFplX.js} +12 -12
  54. package/dist/cdn/chunks/{form-D6w4G6Qv.js → form-DGHeGEIr.js} +1 -1
  55. package/dist/cdn/chunks/{form-actions-ifb8kolV.js → form-actions-CHwWKfMM.js} +2 -2
  56. package/dist/cdn/chunks/{form-field-RhzuOcS5.js → form-field-CdTSI-8h.js} +21 -16
  57. package/dist/cdn/chunks/{form-section-0df1Ao8U.js → form-section-CjECOIiZ.js} +1 -1
  58. package/dist/cdn/chunks/{full-bleed-section-BhcgrH9L.js → full-bleed-section-CQgq4iGQ.js} +3 -3
  59. package/dist/cdn/chunks/{hero-BpLUglsB.js → hero-DhdcYt2N.js} +4 -4
  60. package/dist/cdn/chunks/{icon-button-BzCEK4gH.js → icon-button-DT_Bi4Ac.js} +9 -9
  61. package/dist/cdn/chunks/{icon-cell-fu4ggTII.js → icon-cell-C-qrZAlN.js} +5 -5
  62. package/dist/cdn/chunks/{icon-C1HTyyIr.js → icon-qpmEfU9B.js} +2 -2
  63. package/dist/cdn/chunks/{identity-CM-fW-xb.js → identity-DFmvuPkl.js} +6 -6
  64. package/dist/cdn/chunks/{if-defined-CSVfrDre.js → if-defined-BINBE69I.js} +1 -1
  65. package/dist/cdn/chunks/{image-CjcWKYny.js → image-B4M3h1xJ.js} +8 -8
  66. package/dist/cdn/chunks/{inline-dialog-QHDEfqso.js → inline-dialog-L-NvjANF.js} +6 -6
  67. package/dist/cdn/chunks/{just-in-time-education-BuDwdo2R.js → just-in-time-education-CWplH4r9.js} +5 -5
  68. package/dist/cdn/chunks/{kanban-BaRiCfTn.js → kanban-B6Wa-2aM.js} +5 -5
  69. package/dist/cdn/chunks/{kanban-column-BuYmxxwP.js → kanban-column-D2-Xq79_.js} +4 -4
  70. package/dist/cdn/chunks/{keyboard-shortcut-DYMD3B5a.js → keyboard-shortcut-Ci95olxF.js} +118 -47
  71. package/dist/cdn/chunks/{languages-BFRgyhqj.js → languages-C9AGuuSS.js} +43 -32
  72. package/dist/cdn/chunks/{link-Cb7bYQmD.js → link-BJB2a_fG.js} +6 -6
  73. package/dist/cdn/chunks/{link-group-CCxIltG-.js → link-group-aNoedLZo.js} +2 -2
  74. package/dist/cdn/chunks/{list-B7VgeqfW.js → list-CZWX62tH.js} +8 -8
  75. package/dist/cdn/chunks/{list-item-Ccmi9h7_.js → list-item-DHzsbK_S.js} +5 -5
  76. package/dist/cdn/chunks/{list-item-segment-C5APtc9o.js → list-item-segment-CHLlU9Gg.js} +3 -3
  77. package/dist/cdn/chunks/{menu-B03m20cI.js → menu-NGpB1SKq.js} +21 -17
  78. package/dist/cdn/chunks/{menu-bar-BTwITnAx.js → menu-bar-CJazkmY7.js} +6 -6
  79. package/dist/cdn/chunks/{menu-bar-item-By1lj2Ra.js → menu-bar-item-CSqXWNKE.js} +6 -6
  80. package/dist/cdn/chunks/{menu-divider-Cj7PfUGr.js → menu-divider-Cn1hTpcM.js} +3 -3
  81. package/dist/cdn/chunks/{menu-group-DyFNOAV9.js → menu-group-C71K1Vmv.js} +4 -4
  82. package/dist/cdn/chunks/{menu-item-D-9U16AZ.js → menu-item-TqBlQfI2.js} +4 -4
  83. package/dist/cdn/chunks/{menu.template-DmK-gq-8.js → menu.template-DthELYky.js} +20 -15
  84. package/dist/cdn/chunks/{modal-dialog-f_Ftzcrk.js → modal-dialog-0V2HsrJC.js} +4 -4
  85. package/dist/cdn/chunks/{multi-line-text-field-CwTomQkh.js → multi-line-text-field-BV4uUDoK.js} +60 -34
  86. package/dist/cdn/chunks/{navigation-split-view-CMy_B-Gr.js → navigation-split-view-tPhkxEVD.js} +4 -4
  87. package/dist/cdn/chunks/{notification-DiXBAbmu.js → notification-CZccv6qx.js} +6 -6
  88. package/dist/cdn/chunks/{number-field-CPCuSebL.js → number-field-4R2blHda.js} +8 -8
  89. package/dist/cdn/chunks/{one-half-one-half-section-lsJ_QAgo.js → one-half-one-half-section-h2fLPQfP.js} +3 -3
  90. package/dist/cdn/chunks/{one-third-two-thirds-section-LS-XD6DL.js → one-third-two-thirds-section-mqUAH5lK.js} +3 -3
  91. package/dist/cdn/chunks/{one-time-code-field-DT4VRbkL.js → one-time-code-field-Bf_qymKd.js} +7 -7
  92. package/dist/cdn/chunks/{page-BWCcVj4L.js → page-Kipfvmi6.js} +4 -4
  93. package/dist/cdn/chunks/{page-footer-QCQIeoP7.js → page-footer-DxE966Oe.js} +4 -4
  94. package/dist/cdn/chunks/{page-section-mixin-BSRwTzVh.js → page-section-mixin-DpF9JDpd.js} +3 -3
  95. package/dist/cdn/chunks/{pagination-CfR0D1Z7.js → pagination-DUFFhaU8.js} +6 -6
  96. package/dist/cdn/chunks/{password-field-37i3lAaO.js → password-field-DdYAVmF3.js} +8 -8
  97. package/dist/cdn/chunks/{popover-BpX7ZwI_.js → popover-CRHxyhGx.js} +6 -6
  98. package/dist/cdn/chunks/{progress-bar-oT3i4-Ib.js → progress-bar-BuYsjmSo.js} +7 -7
  99. package/dist/cdn/chunks/{progress-circle-CskWYN6V.js → progress-circle-Cvu1bfNG.js} +7 -7
  100. package/dist/cdn/chunks/{radio-button-sFiWCWEp.js → radio-button-B_4AxWDx.js} +3 -3
  101. package/dist/cdn/chunks/{radio-button-field-yXg-i59N.js → radio-button-field-D7jIg6Oi.js} +5 -5
  102. package/dist/cdn/chunks/{radio-button-group-Bp4nILvI.js → radio-button-group-D_OezDhB.js} +3 -3
  103. package/dist/cdn/chunks/{render-marked-B_e-wQFe.js → render-marked-CIuiSS_8.js} +1 -1
  104. package/dist/cdn/chunks/{reorder-handle-cell-BFyWv6Xk.js → reorder-handle-cell-DNPaZjSC.js} +4 -4
  105. package/dist/cdn/chunks/{reorder-handle-mixin-CwNDaVUE.js → reorder-handle-mixin-CgvWq4fF.js} +2 -2
  106. package/dist/cdn/chunks/{repeat-Dx2PqcyL.js → repeat-DfVuWl6o.js} +2 -2
  107. package/dist/cdn/chunks/{return-focus-BzZWhXhc.js → return-focus-D0fF2hjd.js} +1 -1
  108. package/dist/cdn/chunks/{rich-text-CaVHkCB8.js → rich-text-CVHlMQY6.js} +3 -3
  109. package/dist/cdn/chunks/{row-header-mixin-BX0qSYSK.js → row-header-mixin-B25JK2B3.js} +2 -2
  110. package/dist/cdn/chunks/{scroll-fade-CXu7Eorw.js → scroll-fade-Dv57rTww.js} +2 -2
  111. package/dist/cdn/chunks/{search-field-DkbneceA.js → search-field-hmD_DXbG.js} +10 -10
  112. package/dist/cdn/chunks/{segmented-control-Ctl4SnV1.js → segmented-control-e8e-jYSw.js} +6 -6
  113. package/dist/cdn/chunks/{shadow-resets-oeO4NF40.js → shadow-resets-CRdvf-Ei.js} +2 -2
  114. package/dist/cdn/chunks/{sheet-XGOn3SXX.js → sheet-D09y3J45.js} +4 -4
  115. package/dist/cdn/chunks/{shell-B7-afKWD.js → shell-CV3gooGg.js} +3 -3
  116. package/dist/cdn/chunks/{side-by-side-split-view-CZC844ER.js → side-by-side-split-view-Ckz1C9zk.js} +4 -4
  117. package/dist/cdn/chunks/{sidebar-section-_eTWxCEU.js → sidebar-section-CdyD-x4t.js} +7 -7
  118. package/dist/cdn/chunks/{simple-section-CvBDK1kv.js → simple-section-CEf38rBZ.js} +3 -3
  119. package/dist/cdn/chunks/{skip-link-CHAlS7T_.js → skip-link-DMRhATWw.js} +4 -4
  120. package/dist/cdn/chunks/{slider-CidyL0xj.js → slider-Db3FPiP6.js} +8 -8
  121. package/dist/cdn/chunks/{spacer-DukX-lmv.js → spacer-BPFIYueo.js} +2 -2
  122. package/dist/cdn/chunks/{spacer-cell-etr1xFgM.js → spacer-cell-kITa3CDV.js} +4 -4
  123. package/dist/cdn/chunks/{split-button-DD0NWy1h.js → split-button-CJs9-Nha.js} +7 -7
  124. package/dist/cdn/chunks/{split-view-divider-x1x3K9m0.js → split-view-divider-lHlM1Ss8.js} +2 -2
  125. package/dist/cdn/chunks/{split-view-pane-BnCIygrY.js → split-view-pane-DlsbZtyo.js} +3 -3
  126. package/dist/cdn/chunks/{stacked-split-view-B70JJ94w.js → stacked-split-view-uRSVhrMd.js} +4 -4
  127. package/dist/cdn/chunks/{static-html-Bqazhm1K.js → static-html-BahSPV_4.js} +1 -1
  128. package/dist/cdn/chunks/{status-bar-CNLiFQUC.js → status-bar-DCJLVpsW.js} +4 -4
  129. package/dist/cdn/chunks/{step-bar-BOvuQRux.js → step-bar-CRR2jiyo.js} +6 -6
  130. package/dist/cdn/chunks/{step-cell-CM1Ju6Qz.js → step-cell-CbtKxJNJ.js} +5 -5
  131. package/dist/cdn/chunks/{stepper-CKM-lSpD.js → stepper-Con1_CnB.js} +6 -6
  132. package/dist/cdn/chunks/{style-map-BK47EPzs.js → style-map-uOwLerwV.js} +1 -1
  133. package/dist/cdn/chunks/{swatch-picker-CFRNmV9x.js → swatch-picker-Bqn0eaC9.js} +5 -5
  134. package/dist/cdn/chunks/{switch-BBy9Xo1E.js → switch-CMQcLEBJ.js} +4 -4
  135. package/dist/cdn/chunks/{switch-field-zh-K7d2q.js → switch-field-D9kWq4Kw.js} +5 -5
  136. package/dist/cdn/chunks/{tab-bar-C8qWE51t.js → tab-bar-DXzyZI3V.js} +8 -8
  137. package/dist/cdn/chunks/{table-av_EyIn7.js → table-CWACLpHx.js} +5 -5
  138. package/dist/cdn/chunks/{tag-DFv9vv3i.js → tag-Bo4yJbtF.js} +4 -4
  139. package/dist/cdn/chunks/{term-DeQiGH6k.js → term-CQ379ZbN.js} +12 -12
  140. package/dist/cdn/chunks/{text-mfKi65T1.js → text-D-dFoj6N.js} +3 -3
  141. package/dist/cdn/chunks/{text-cell-BcT9b0bK.js → text-cell-Be1hStxp.js} +8 -8
  142. package/dist/cdn/chunks/{text-editor-BwJE_vvo.js → text-editor-BjzQEBWm.js} +1372 -904
  143. package/dist/cdn/chunks/{text-field-B78KPNqa.js → text-field-DA8nirp6.js} +46 -63
  144. package/dist/cdn/chunks/{time-field-O2OSrTyM.js → time-field-Dd_TxJuf.js} +15 -15
  145. package/dist/cdn/chunks/{time-picker-Ce5tW_jo.js → time-picker-B0-rv1qp.js} +5 -5
  146. package/dist/cdn/chunks/{title-Bdx3NCUA.js → title-DOoPdG_i.js} +4 -4
  147. package/dist/cdn/chunks/{title-cell-BwHqLbue.js → title-cell-BzCNOMGr.js} +8 -8
  148. package/dist/cdn/chunks/{toggle-button-CjjJRwpP.js → toggle-button-9PbDHviQ.js} +10 -8
  149. package/dist/cdn/chunks/{toggle-button-group-CuRM8-nF.js → toggle-button-group-C-H-xp0M.js} +2 -2
  150. package/dist/cdn/chunks/{token-AiSihnjQ.js → token-CMKFC3gz.js} +5 -5
  151. package/dist/cdn/chunks/{token-field-GETUgMlc.js → token-field-D4-XHfnG.js} +11 -11
  152. package/dist/cdn/chunks/{toolbar-item-DR1Z8Hc3.js → toolbar-item-ZYoyKOyy.js} +3 -3
  153. package/dist/cdn/chunks/{toolbar-title-CDTF6HLo.js → toolbar-title-FKtQ8ZC4.js} +4 -4
  154. package/dist/cdn/chunks/{toolbar-Cwq028PV.js → toolbar-z9OhEE5l.js} +8 -8
  155. package/dist/cdn/chunks/{toolbar.styles-JjSZv4fw.js → toolbar.styles-DDjpdCHV.js} +3 -3
  156. package/dist/cdn/chunks/{tooltip-c-bLjIjT.js → tooltip-BvRNYRo3.js} +5 -5
  157. package/dist/cdn/chunks/{top-navigation-bar-DzmvxwVc.js → top-navigation-bar-BHPQntER.js} +17 -17
  158. package/dist/cdn/chunks/{top-title-bar-Bk6dadA-.js → top-title-bar-BVjegLlh.js} +6 -6
  159. package/dist/cdn/chunks/{translations-BDYe8_q9.js → translations-cJjO6nQV.js} +1 -1
  160. package/dist/cdn/chunks/{two-thirds-one-third-section-Co5_3oOP.js → two-thirds-one-third-section-BdBHQuXc.js} +3 -3
  161. package/dist/cdn/chunks/{validation-list-MEykkKGr.js → validation-list-5E3-3_95.js} +3 -3
  162. package/dist/cdn/chunks/{visibility-mixin-UdX7clEI.js → visibility-mixin-DvRe3O8t.js} +2 -2
  163. package/dist/cdn/chunks/{visually-hidden-BKnf0dXp.js → visually-hidden-F85D_HcR.js} +2 -2
  164. package/dist/cdn/chunks/{window-DNoLmVa1.js → window-CabW35M1.js} +5 -5
  165. package/dist/cdn/chunks/{with-translations-DlZHUMbZ.js → with-translations-BHDG37HJ.js} +3 -3
  166. package/dist/components/actions/button/button.template.js +1 -1
  167. package/dist/components/actions/menu/menu.pointer.d.ts +6 -2
  168. package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -1
  169. package/dist/components/actions/menu/menu.pointer.js +15 -5
  170. package/dist/components/actions/menu/menu.pointer.js.map +1 -1
  171. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  172. package/dist/components/actions/menu/menu.styles.js +15 -10
  173. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  174. package/dist/components/actions/menu/menu.template.js +1 -1
  175. package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -1
  176. package/dist/components/content/accordion/accordion-item.styles.js +5 -3
  177. package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
  178. package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
  179. package/dist/components/content/admonition/admonition.styles.js +5 -3
  180. package/dist/components/content/admonition/admonition.styles.js.map +1 -1
  181. package/dist/components/content/icon/icon.d.ts +1 -1
  182. package/dist/components/content/icon/icon.js +1 -1
  183. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +16 -9
  184. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
  185. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +18 -12
  186. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  187. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  188. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +26 -12
  189. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  190. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.d.ts.map +1 -1
  191. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js +12 -3
  192. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js.map +1 -1
  193. package/dist/components/content/tooltip/tooltip.template.js +1 -1
  194. package/dist/components/forms/form-field/form-field.d.ts +3 -1
  195. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  196. package/dist/components/forms/form-field/form-field.js +14 -3
  197. package/dist/components/forms/form-field/form-field.js.map +1 -1
  198. package/dist/components/inputs/combo-box/combo-box.d.ts +3 -0
  199. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  200. package/dist/components/inputs/combo-box/combo-box.js +3 -0
  201. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  202. package/dist/components/inputs/date-field/date-field.d.ts +3 -0
  203. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  204. package/dist/components/inputs/date-field/date-field.js +3 -0
  205. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  206. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +8 -0
  207. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
  208. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +8 -0
  209. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
  210. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
  211. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +24 -2
  212. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  213. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -1
  214. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +3 -0
  215. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
  216. package/dist/components/inputs/number-field/number-field.d.ts +3 -0
  217. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  218. package/dist/components/inputs/number-field/number-field.js +3 -0
  219. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  220. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +3 -0
  221. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
  222. package/dist/components/inputs/one-time-code-field/one-time-code-field.js +3 -0
  223. package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
  224. package/dist/components/inputs/password-field/password-field.d.ts +3 -0
  225. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  226. package/dist/components/inputs/password-field/password-field.js +3 -0
  227. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  228. package/dist/components/inputs/search-field/search-field.d.ts +3 -0
  229. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  230. package/dist/components/inputs/search-field/search-field.js +3 -0
  231. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  232. package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts +5 -2
  233. package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts.map +1 -1
  234. package/dist/components/inputs/text-editor/text-editor.clipboard.js +23 -4
  235. package/dist/components/inputs/text-editor/text-editor.clipboard.js.map +1 -1
  236. package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts.map +1 -1
  237. package/dist/components/inputs/text-editor/text-editor.code-copy.js +38 -18
  238. package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -1
  239. package/dist/components/inputs/text-editor/text-editor.commands.d.ts +8 -6
  240. package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
  241. package/dist/components/inputs/text-editor/text-editor.commands.js +23 -9
  242. package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
  243. package/dist/components/inputs/text-editor/text-editor.d.ts +26 -0
  244. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  245. package/dist/components/inputs/text-editor/text-editor.js +165 -15
  246. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  247. package/dist/components/inputs/text-editor/text-editor.list-input.d.ts +17 -0
  248. package/dist/components/inputs/text-editor/text-editor.list-input.d.ts.map +1 -0
  249. package/dist/components/inputs/text-editor/text-editor.list-input.js +133 -0
  250. package/dist/components/inputs/text-editor/text-editor.list-input.js.map +1 -0
  251. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
  252. package/dist/components/inputs/text-editor/text-editor.markdown.js +28 -1
  253. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  254. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +4 -2
  255. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
  256. package/dist/components/inputs/text-editor/text-editor.mentions.js +9 -5
  257. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  258. package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts.map +1 -1
  259. package/dist/components/inputs/text-editor/text-editor.ordered-list.js +89 -18
  260. package/dist/components/inputs/text-editor/text-editor.ordered-list.js.map +1 -1
  261. package/dist/components/inputs/text-editor/text-editor.paste.d.ts +10 -0
  262. package/dist/components/inputs/text-editor/text-editor.paste.d.ts.map +1 -0
  263. package/dist/components/inputs/text-editor/text-editor.paste.js +116 -0
  264. package/dist/components/inputs/text-editor/text-editor.paste.js.map +1 -0
  265. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  266. package/dist/components/inputs/text-editor/text-editor.styles.js +49 -2
  267. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  268. package/dist/components/inputs/text-editor/text-editor.template.d.ts +1 -1
  269. package/dist/components/inputs/text-editor/text-editor.template.d.ts.map +1 -1
  270. package/dist/components/inputs/text-editor/text-editor.template.js +4 -3
  271. package/dist/components/inputs/text-editor/text-editor.template.js.map +1 -1
  272. package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts +53 -0
  273. package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts.map +1 -0
  274. package/dist/components/inputs/text-editor/text-editor.toolbar.js +302 -0
  275. package/dist/components/inputs/text-editor/text-editor.toolbar.js.map +1 -0
  276. package/dist/components/inputs/text-field/text-field.d.ts +7 -13
  277. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  278. package/dist/components/inputs/text-field/text-field.js +8 -50
  279. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  280. package/dist/components/inputs/text-field/text-field.template.js +2 -2
  281. package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
  282. package/dist/components/inputs/time-field/time-field.d.ts +3 -0
  283. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  284. package/dist/components/inputs/time-field/time-field.js +3 -0
  285. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  286. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  287. package/dist/components/inputs/toggle-button/toggle-button.styles.js +3 -1
  288. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  289. package/dist/components/inputs/token-field/token-field.d.ts +3 -0
  290. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
  291. package/dist/components/inputs/token-field/token-field.js +3 -0
  292. package/dist/components/inputs/token-field/token-field.js.map +1 -1
  293. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +1 -1
  294. package/dist/css/rich-text.css +8 -2
  295. package/dist/css/variables.css +2 -1
  296. package/dist/nldd.min.js +973 -870
  297. package/dist/types/react.d.ts +12 -8
  298. package/dist/types/vue.d.ts +17 -11
  299. package/dist/utilities/codemirror/codemirror-element.d.ts +12 -1
  300. package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -1
  301. package/dist/utilities/codemirror/codemirror-element.js +23 -4
  302. package/dist/utilities/codemirror/codemirror-element.js.map +1 -1
  303. package/dist/utilities/codemirror/codemirror-input.d.ts +3 -0
  304. package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -1
  305. package/dist/utilities/codemirror/codemirror-input.js +14 -3
  306. package/dist/utilities/codemirror/codemirror-input.js.map +1 -1
  307. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  308. package/dist/utilities/dev-rules.generated.js +22 -2
  309. package/dist/utilities/dev-rules.generated.js.map +1 -1
  310. package/dist/utilities/field-button-controller.d.ts +28 -0
  311. package/dist/utilities/field-button-controller.d.ts.map +1 -0
  312. package/dist/utilities/field-button-controller.js +56 -0
  313. package/dist/utilities/field-button-controller.js.map +1 -0
  314. package/dist/utilities/return-focus.d.ts.map +1 -1
  315. package/dist/utilities/return-focus.js +3 -0
  316. package/dist/utilities/return-focus.js.map +1 -1
  317. package/dist/utilities/shortcut.d.ts +14 -0
  318. package/dist/utilities/shortcut.d.ts.map +1 -1
  319. package/dist/utilities/shortcut.js +37 -1
  320. package/dist/utilities/shortcut.js.map +1 -1
  321. package/lint/data.generated.json +1 -1
  322. package/lint/linter.js +4 -1
  323. package/package.json +3 -4
@@ -1,30 +1,30 @@
1
1
  import { l as e } from "./style-mod-DGMhzWuk.js";
2
- import { $ as t, A as n, C as r, D as i, G as a, J as o, Q as s, S as c, T as l, X as u, Y as d, Z as f, a as p, b as m, ct as ee, et as te, ft as ne, i as re, k as ie, lt as h, mt as g, ot as ae, pt as _, st as oe, y as v } from "./languages-BFRgyhqj.js";
3
- import { r as y } from "./custom-element-Dmqf9u_a.js";
4
- import { n as se, t as b } from "./decorate-D_xx_M26.js";
5
- import { t as ce } from "./reflect-non-default-Bu3rpCvg.js";
6
- import { t as le } from "./described-by-mixin-C3iCCTgg.js";
7
- import { t as ue } from "./form-associated-mixin-BtStDDYA.js";
2
+ import { $ as t, A as n, C as r, E as i, K as a, O as o, Q as s, X as c, Y as l, Z as u, b as d, ct as f, et as p, ht as m, i as ee, j as h, lt as te, mt as g, o as ne, pt as re, st as ie, tt as ae, ut as _, w as oe, x as se } from "./languages-C9AGuuSS.js";
3
+ import { r as v } from "./custom-element-DeaCQ2NP.js";
4
+ import { n as ce, t as y } from "./decorate-CCYde2ES.js";
5
+ import { t as le } from "./reflect-non-default-Bu3rpCvg.js";
6
+ import { t as ue } from "./described-by-mixin-BYFim7aO.js";
7
+ import { t as de } from "./form-associated-mixin-BtStDDYA.js";
8
8
  // node_modules/@codemirror/commands/dist/index.js
9
- var de = (e) => {
10
- let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r = S(e.state, n.from);
11
- return r.line ? fe(e) : r.block ? me(e) : !1;
9
+ var fe = (e) => {
10
+ let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r = x(e.state, n.from);
11
+ return r.line ? pe(e) : r.block ? he(e) : !1;
12
12
  };
13
- function x(e, t) {
13
+ function b(e, t) {
14
14
  return ({ state: n, dispatch: r }) => {
15
15
  if (n.readOnly) return !1;
16
16
  let i = e(t, n);
17
17
  return i ? (r(n.update(i)), !0) : !1;
18
18
  };
19
19
  }
20
- var fe = /*@__PURE__*/ x(ve, 0), pe = /*@__PURE__*/ x(_e, 0), me = /*@__PURE__*/ x((e, t) => _e(e, t, ge(t)), 0);
21
- function S(e, t) {
20
+ var pe = /*@__PURE__*/ b(ye, 0), me = /*@__PURE__*/ b(ve, 0), he = /*@__PURE__*/ b((e, t) => ve(e, t, _e(t)), 0);
21
+ function x(e, t) {
22
22
  let n = e.languageDataAt("commentTokens", t, 1);
23
23
  return n.length ? n[0] : {};
24
24
  }
25
- var C = 50;
26
- function he(e, { open: t, close: n }, r, i) {
27
- let a = e.sliceDoc(r - C, r), o = e.sliceDoc(i, i + C), s = /\s*$/.exec(a)[0].length, c = /^\s*/.exec(o)[0].length, l = a.length - s;
25
+ var S = 50;
26
+ function ge(e, { open: t, close: n }, r, i) {
27
+ let a = e.sliceDoc(r - S, r), o = e.sliceDoc(i, i + S), s = /\s*$/.exec(a)[0].length, c = /^\s*/.exec(o)[0].length, l = a.length - s;
28
28
  if (a.slice(l - t.length, l) == t && o.slice(c, c + n.length) == n) return {
29
29
  open: {
30
30
  pos: r - s,
@@ -36,7 +36,7 @@ function he(e, { open: t, close: n }, r, i) {
36
36
  }
37
37
  };
38
38
  let u, d;
39
- i - r <= 100 ? u = d = e.sliceDoc(r, i) : (u = e.sliceDoc(r, r + C), d = e.sliceDoc(i - C, i));
39
+ i - r <= 100 ? u = d = e.sliceDoc(r, i) : (u = e.sliceDoc(r, r + S), d = e.sliceDoc(i - S, i));
40
40
  let f = /^\s*/.exec(u)[0].length, p = /\s*$/.exec(d)[0].length, m = d.length - p - n.length;
41
41
  return u.slice(f, f + t.length) == t && d.slice(m, m + n.length) == n ? {
42
42
  open: {
@@ -49,7 +49,7 @@ function he(e, { open: t, close: n }, r, i) {
49
49
  }
50
50
  } : null;
51
51
  }
52
- function ge(e) {
52
+ function _e(e) {
53
53
  let t = [];
54
54
  for (let n of e.selection.ranges) {
55
55
  let r = e.doc.lineAt(n.from), i = n.to <= r.to ? r : e.doc.lineAt(n.to);
@@ -62,10 +62,10 @@ function ge(e) {
62
62
  }
63
63
  return t;
64
64
  }
65
- function _e(e, t, n = t.selection.ranges) {
66
- let r = n.map((e) => S(t, e.from).block);
65
+ function ve(e, t, n = t.selection.ranges) {
66
+ let r = n.map((e) => x(t, e.from).block);
67
67
  if (!r.every((e) => e)) return null;
68
- let i = n.map((e, n) => he(t, r[n], e.from, e.to));
68
+ let i = n.map((e, n) => ge(t, r[n], e.from, e.to));
69
69
  if (e != 2 && !i.every((e) => e)) return { changes: t.changes(n.map((e, t) => i[t] ? [] : [{
70
70
  from: e.from,
71
71
  insert: r[t].open + " "
@@ -89,13 +89,13 @@ function _e(e, t, n = t.selection.ranges) {
89
89
  }
90
90
  return null;
91
91
  }
92
- function ve(e, t, n = t.selection.ranges) {
92
+ function ye(e, t, n = t.selection.ranges) {
93
93
  let r = [], i = -1;
94
94
  ranges: for (let { from: e, to: a } of n) {
95
95
  let n = r.length, o = 1e9, s;
96
96
  for (let n = e; n <= a;) {
97
97
  let c = t.doc.lineAt(n);
98
- if (s == null && (s = S(t, c.from).line, !s)) continue ranges;
98
+ if (s == null && (s = x(t, c.from).line, !s)) continue ranges;
99
99
  if (c.from > i && (e == a || a > c.from)) {
100
100
  i = c.from;
101
101
  let e = /^\s*/.exec(c.text)[0].length, t = e == c.length, n = c.text.slice(e, e + s.length) == s ? e : -1;
@@ -138,8 +138,8 @@ function ve(e, t, n = t.selection.ranges) {
138
138
  }
139
139
  return null;
140
140
  }
141
- var w = /*@__PURE__*/ o.define(), ye = /*@__PURE__*/ o.define(), be = /*@__PURE__*/ te.define(), xe = /*@__PURE__*/ te.define({ combine(e) {
142
- return ne(e, {
141
+ var C = /*@__PURE__*/ l.define(), be = /*@__PURE__*/ l.define(), xe = /*@__PURE__*/ ae.define(), Se = /*@__PURE__*/ ae.define({ combine(e) {
142
+ return re(e, {
143
143
  minDepth: 100,
144
144
  newGroupDelay: 500,
145
145
  joinToEvent: (e, t) => t
@@ -148,19 +148,19 @@ var w = /*@__PURE__*/ o.define(), ye = /*@__PURE__*/ o.define(), be = /*@__PURE_
148
148
  newGroupDelay: Math.min,
149
149
  joinToEvent: (e, t) => (n, r) => e(n, r) || t(n, r)
150
150
  });
151
- } }), T = /*@__PURE__*/ oe.define({
151
+ } }), w = /*@__PURE__*/ f.define({
152
152
  create() {
153
153
  return N.empty;
154
154
  },
155
155
  update(e, t) {
156
- let n = t.state.facet(xe), r = t.annotation(w);
156
+ let n = t.state.facet(Se), r = t.annotation(C);
157
157
  if (r) {
158
- let i = k.fromTransaction(t, r.selection), a = r.side, o = a == 0 ? e.undone : e.done;
159
- return o = i ? A(o, o.length, n.minDepth, i) : Me(o, t.startState.selection), new N(a == 0 ? r.rest : o, a == 0 ? o : r.rest);
158
+ let i = O.fromTransaction(t, r.selection), a = r.side, o = a == 0 ? e.undone : e.done;
159
+ return o = i ? k(o, o.length, n.minDepth, i) : Me(o, t.startState.selection), new N(a == 0 ? r.rest : o, a == 0 ? o : r.rest);
160
160
  }
161
- let i = t.annotation(ye);
162
- if ((i == "full" || i == "before") && (e = e.isolate()), t.annotation(h.addToHistory) === !1) return t.changes.empty ? e : e.addMapping(t.changes.desc);
163
- let a = k.fromTransaction(t), o = t.annotation(h.time), s = t.annotation(h.userEvent);
161
+ let i = t.annotation(be);
162
+ if ((i == "full" || i == "before") && (e = e.isolate()), t.annotation(_.addToHistory) === !1) return t.changes.empty ? e : e.addMapping(t.changes.desc);
163
+ let a = O.fromTransaction(t), o = t.annotation(_.time), s = t.annotation(_.userEvent);
164
164
  return a ? e = e.addChanges(a, o, s, n, t) : t.selection && (e = e.addSelection(t.startState.selection, o, s, n.newGroupDelay)), (i == "full" || i == "after") && (e = e.isolate()), e;
165
165
  },
166
166
  toJSON(e) {
@@ -170,38 +170,38 @@ var w = /*@__PURE__*/ o.define(), ye = /*@__PURE__*/ o.define(), be = /*@__PURE_
170
170
  };
171
171
  },
172
172
  fromJSON(e) {
173
- return new N(e.done.map(k.fromJSON), e.undone.map(k.fromJSON));
173
+ return new N(e.done.map(O.fromJSON), e.undone.map(O.fromJSON));
174
174
  }
175
175
  });
176
- function Se(e = {}) {
176
+ function Ce(e = {}) {
177
177
  return [
178
- T,
179
- xe.of(e),
180
- n.domEventHandlers({ beforeinput(e, t) {
181
- let n = e.inputType == "historyUndo" ? D : e.inputType == "historyRedo" ? O : null;
178
+ w,
179
+ Se.of(e),
180
+ h.domEventHandlers({ beforeinput(e, t) {
181
+ let n = e.inputType == "historyUndo" ? E : e.inputType == "historyRedo" ? D : null;
182
182
  return n ? (e.preventDefault(), n(t)) : !1;
183
183
  } })
184
184
  ];
185
185
  }
186
- function E(e, t) {
186
+ function T(e, t) {
187
187
  return function({ state: n, dispatch: r }) {
188
188
  if (!t && n.readOnly) return !1;
189
- let i = n.field(T, !1);
189
+ let i = n.field(w, !1);
190
190
  if (!i) return !1;
191
191
  let a = i.pop(e, n, t);
192
192
  return a ? (r(a), !0) : !1;
193
193
  };
194
194
  }
195
- var D = /*@__PURE__*/ E(0, !1), O = /*@__PURE__*/ E(1, !1), Ce = /*@__PURE__*/ E(0, !0), we = /*@__PURE__*/ E(1, !0);
196
- function Te(e) {
195
+ var E = /*@__PURE__*/ T(0, !1), D = /*@__PURE__*/ T(1, !1), we = /*@__PURE__*/ T(0, !0), Te = /*@__PURE__*/ T(1, !0);
196
+ function Ee(e) {
197
197
  return function(t) {
198
- let n = t.field(T, !1);
198
+ let n = t.field(w, !1);
199
199
  if (!n) return 0;
200
200
  let r = e == 0 ? n.done : n.undone;
201
201
  return r.length - (r.length && !r[0].changes ? 1 : 0);
202
202
  };
203
203
  }
204
- var Ee = /*@__PURE__*/ Te(0), De = /*@__PURE__*/ Te(1), k = class e {
204
+ var De = /*@__PURE__*/ Ee(0), Oe = /*@__PURE__*/ Ee(1), O = class e {
205
205
  constructor(e, t, n, r, i) {
206
206
  this.changes = e, this.effects = t, this.mapped = n, this.startSelection = r, this.selectionsAfter = i;
207
207
  }
@@ -216,12 +216,12 @@ var Ee = /*@__PURE__*/ Te(0), De = /*@__PURE__*/ Te(1), k = class e {
216
216
  selectionsAfter: this.selectionsAfter.map((e) => e.toJSON())
217
217
  };
218
218
  }
219
- static fromJSON(t) {
220
- return new e(t.changes && u.fromJSON(t.changes), [], t.mapped && d.fromJSON(t.mapped), t.startSelection && s.fromJSON(t.startSelection), t.selectionsAfter.map(s.fromJSON));
219
+ static fromJSON(n) {
220
+ return new e(n.changes && u.fromJSON(n.changes), [], n.mapped && c.fromJSON(n.mapped), n.startSelection && t.fromJSON(n.startSelection), n.selectionsAfter.map(t.fromJSON));
221
221
  }
222
222
  static fromTransaction(t, n) {
223
223
  let r = j;
224
- for (let e of t.startState.facet(be)) {
224
+ for (let e of t.startState.facet(xe)) {
225
225
  let n = e(t);
226
226
  n.length && (r = r.concat(n));
227
227
  }
@@ -231,11 +231,11 @@ var Ee = /*@__PURE__*/ Te(0), De = /*@__PURE__*/ Te(1), k = class e {
231
231
  return new e(void 0, j, void 0, void 0, t);
232
232
  }
233
233
  };
234
- function A(e, t, n, r) {
234
+ function k(e, t, n, r) {
235
235
  let i = t + 1 > n + 20 ? t - n - 1 : 0, a = e.slice(i, t);
236
236
  return a.push(r), a;
237
237
  }
238
- function Oe(e, t) {
238
+ function ke(e, t) {
239
239
  let n = [], r = !1;
240
240
  return e.iterChangedRanges((e, t) => n.push(e, t)), t.iterChangedRanges((e, t, i, a) => {
241
241
  for (let e = 0; e < n.length;) {
@@ -244,19 +244,19 @@ function Oe(e, t) {
244
244
  }
245
245
  }), r;
246
246
  }
247
- function ke(e, t) {
247
+ function Ae(e, t) {
248
248
  return e.ranges.length == t.ranges.length && e.ranges.filter((e, n) => e.empty != t.ranges[n].empty).length === 0;
249
249
  }
250
- function Ae(e, t) {
250
+ function A(e, t) {
251
251
  return e.length ? t.length ? e.concat(t) : e : t;
252
252
  }
253
253
  var j = [], je = 200;
254
254
  function Me(e, t) {
255
255
  if (e.length) {
256
256
  let n = e[e.length - 1], r = n.selectionsAfter.slice(Math.max(0, n.selectionsAfter.length - je));
257
- return r.length && r[r.length - 1].eq(t) ? e : (r.push(t), A(e, e.length - 1, 1e9, n.setSelAfter(r)));
257
+ return r.length && r[r.length - 1].eq(t) ? e : (r.push(t), k(e, e.length - 1, 1e9, n.setSelAfter(r)));
258
258
  }
259
- return [k.selection([t])];
259
+ return [O.selection([t])];
260
260
  }
261
261
  function Ne(e) {
262
262
  let t = e[e.length - 1], n = e.slice();
@@ -273,13 +273,13 @@ function M(e, t) {
273
273
  }
274
274
  t = i.mapped, n--, r = i.selectionsAfter;
275
275
  }
276
- return r.length ? [k.selection(r)] : j;
276
+ return r.length ? [O.selection(r)] : j;
277
277
  }
278
278
  function Pe(e, t, n) {
279
- let r = Ae(e.selectionsAfter.length ? e.selectionsAfter.map((e) => e.map(t)) : j, n);
280
- if (!e.changes) return k.selection(r);
279
+ let r = A(e.selectionsAfter.length ? e.selectionsAfter.map((e) => e.map(t)) : j, n);
280
+ if (!e.changes) return O.selection(r);
281
281
  let i = e.changes.map(t), a = t.mapDesc(e.changes, !0), o = e.mapped ? e.mapped.composeDesc(a) : a;
282
- return new k(i, ae.mapEffects(e.effects, t), o, e.startSelection.map(a), r);
282
+ return new O(i, ie.mapEffects(e.effects, t), o, e.startSelection.map(a), r);
283
283
  }
284
284
  var Fe = /^(input\.type|delete)($|\.)/, N = class e {
285
285
  constructor(e, t, n = 0, r = void 0) {
@@ -290,11 +290,11 @@ var Fe = /^(input\.type|delete)($|\.)/, N = class e {
290
290
  }
291
291
  addChanges(t, n, r, i, a) {
292
292
  let o = this.done, s = o[o.length - 1];
293
- return o = s && s.changes && !s.changes.empty && t.changes && (!r || Fe.test(r)) && (!s.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(a, Oe(s.changes, t.changes)) || r == "input.type.compose") ? A(o, o.length - 1, i.minDepth, new k(t.changes.compose(s.changes), Ae(ae.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, j)) : A(o, o.length, i.minDepth, t), new e(o, j, n, r);
293
+ return o = s && s.changes && !s.changes.empty && t.changes && (!r || Fe.test(r)) && (!s.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(a, ke(s.changes, t.changes)) || r == "input.type.compose") ? k(o, o.length - 1, i.minDepth, new O(t.changes.compose(s.changes), A(ie.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, j)) : k(o, o.length, i.minDepth, t), new e(o, j, n, r);
294
294
  }
295
295
  addSelection(t, n, r, i) {
296
296
  let a = this.done.length ? this.done[this.done.length - 1].selectionsAfter : j;
297
- return a.length > 0 && n - this.prevTime < i && r == this.prevUserEvent && r && /^select($|\.)/.test(r) && ke(a[a.length - 1], t) ? this : new e(Me(this.done, t), this.undone, n, r);
297
+ return a.length > 0 && n - this.prevTime < i && r == this.prevUserEvent && r && /^select($|\.)/.test(r) && Ae(a[a.length - 1], t) ? this : new e(Me(this.done, t), this.undone, n, r);
298
298
  }
299
299
  addMapping(t) {
300
300
  return new e(M(this.done, t), M(this.undone, t), this.prevTime, this.prevUserEvent);
@@ -305,7 +305,7 @@ var Fe = /^(input\.type|delete)($|\.)/, N = class e {
305
305
  let i = r[r.length - 1], a = i.selectionsAfter[0] || (i.startSelection ? i.startSelection.map(i.changes.invertedDesc, 1) : t.selection);
306
306
  if (n && i.selectionsAfter.length) return t.update({
307
307
  selection: i.selectionsAfter[i.selectionsAfter.length - 1],
308
- annotations: w.of({
308
+ annotations: C.of({
309
309
  side: e,
310
310
  rest: Ne(r),
311
311
  selection: a
@@ -319,7 +319,7 @@ var Fe = /^(input\.type|delete)($|\.)/, N = class e {
319
319
  changes: i.changes,
320
320
  selection: i.startSelection,
321
321
  effects: i.effects,
322
- annotations: w.of({
322
+ annotations: C.of({
323
323
  side: e,
324
324
  rest: n,
325
325
  selection: a
@@ -336,34 +336,34 @@ N.empty = /*@__PURE__*/ new N(j, j);
336
336
  var Ie = [
337
337
  {
338
338
  key: "Mod-z",
339
- run: D,
339
+ run: E,
340
340
  preventDefault: !0
341
341
  },
342
342
  {
343
343
  key: "Mod-y",
344
344
  mac: "Mod-Shift-z",
345
- run: O,
345
+ run: D,
346
346
  preventDefault: !0
347
347
  },
348
348
  {
349
349
  linux: "Ctrl-Shift-z",
350
- run: O,
350
+ run: D,
351
351
  preventDefault: !0
352
352
  },
353
353
  {
354
354
  key: "Mod-u",
355
- run: Ce,
355
+ run: we,
356
356
  preventDefault: !0
357
357
  },
358
358
  {
359
359
  key: "Alt-u",
360
360
  mac: "Mod-Shift-u",
361
- run: we,
361
+ run: Te,
362
362
  preventDefault: !0
363
363
  }
364
364
  ];
365
- function P(e, t) {
366
- return s.create(e.ranges.map(t), e.mainIndex);
365
+ function P(e, n) {
366
+ return t.create(e.ranges.map(n), e.mainIndex);
367
367
  }
368
368
  function F(e, t) {
369
369
  return e.update({
@@ -376,275 +376,275 @@ function I({ state: e, dispatch: t }, n) {
376
376
  let r = P(e.selection, n);
377
377
  return !r.eq(e.selection, !0) && (t(F(e, r)), !0);
378
378
  }
379
- function L(e, t) {
380
- return s.cursor(t ? e.to : e.from);
379
+ function L(e, n) {
380
+ return t.cursor(n ? e.to : e.from);
381
381
  }
382
382
  function Le(e, t) {
383
383
  return I(e, (n) => n.empty ? e.moveByChar(n, t) : L(n, t));
384
384
  }
385
385
  function R(e) {
386
- return e.textDirectionAt(e.state.selection.main.head) == ie.LTR;
386
+ return e.textDirectionAt(e.state.selection.main.head) == n.LTR;
387
387
  }
388
- var Re = (e) => Le(e, !R(e)), ze = (e) => Le(e, R(e));
389
- function Be(e, t) {
388
+ var Re = (e) => Le(e, !R(e)), z = (e) => Le(e, R(e));
389
+ function B(e, t) {
390
390
  return I(e, (n) => n.empty ? e.moveByGroup(n, t) : L(n, t));
391
391
  }
392
- var Ve = (e) => Be(e, !R(e)), He = (e) => Be(e, R(e));
392
+ var ze = (e) => B(e, !R(e)), Be = (e) => B(e, R(e));
393
393
  typeof Intl < "u" && Intl.Segmenter;
394
- function Ue(e, t, n) {
394
+ function Ve(e, t, n) {
395
395
  if (t.type.prop(n)) return !0;
396
396
  let r = t.to - t.from;
397
397
  return r && (r > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to))) || t.firstChild;
398
398
  }
399
- function z(t, n, r) {
400
- let a = i(t).resolveInner(n.head), o = r ? e.closedBy : e.openedBy;
401
- for (let e = n.head;;) {
402
- let n = r ? a.childAfter(e) : a.childBefore(e);
403
- if (!n) break;
404
- Ue(t, n, o) ? a = n : e = r ? n.to : n.from;
399
+ function V(n, r, a) {
400
+ let s = o(n).resolveInner(r.head), c = a ? e.closedBy : e.openedBy;
401
+ for (let e = r.head;;) {
402
+ let t = a ? s.childAfter(e) : s.childBefore(e);
403
+ if (!t) break;
404
+ Ve(n, t, c) ? s = t : e = a ? t.to : t.from;
405
405
  }
406
- let c = a.type.prop(o), u, d;
407
- return d = c && (u = r ? l(t, a.from, 1) : l(t, a.to, -1)) && u.matched ? r ? u.end.to : u.end.from : r ? a.to : a.from, s.cursor(d, r ? -1 : 1);
406
+ let l = s.type.prop(c), u, d;
407
+ return d = l && (u = a ? i(n, s.from, 1) : i(n, s.to, -1)) && u.matched ? a ? u.end.to : u.end.from : a ? s.to : s.from, t.cursor(d, a ? -1 : 1);
408
408
  }
409
- var We = (e) => I(e, (t) => z(e.state, t, !R(e))), Ge = (e) => I(e, (t) => z(e.state, t, R(e)));
410
- function B(e, t) {
409
+ var He = (e) => I(e, (t) => V(e.state, t, !R(e))), Ue = (e) => I(e, (t) => V(e.state, t, R(e)));
410
+ function We(e, t) {
411
411
  return I(e, (n) => {
412
412
  if (!n.empty) return L(n, t);
413
413
  let r = e.moveVertically(n, t);
414
414
  return r.head == n.head ? e.moveToLineBoundary(n, t) : r;
415
415
  });
416
416
  }
417
- var V = (e) => B(e, !1), Ke = (e) => B(e, !0);
417
+ var Ge = (e) => We(e, !1), Ke = (e) => We(e, !0);
418
418
  function qe(e) {
419
- let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2, r = 0, i = 0, a;
419
+ let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2, n = 0, r = 0, i;
420
420
  if (t) {
421
- for (let t of e.state.facet(n.scrollMargins)) {
422
- let n = t(e);
423
- n?.top && (r = Math.max(n?.top, r)), n?.bottom && (i = Math.max(n?.bottom, i));
421
+ for (let t of e.state.facet(h.scrollMargins)) {
422
+ let i = t(e);
423
+ i?.top && (n = Math.max(i?.top, n)), i?.bottom && (r = Math.max(i?.bottom, r));
424
424
  }
425
- a = e.scrollDOM.clientHeight - r - i;
426
- } else a = (e.dom.ownerDocument.defaultView || window).innerHeight;
425
+ i = e.scrollDOM.clientHeight - n - r;
426
+ } else i = (e.dom.ownerDocument.defaultView || window).innerHeight;
427
427
  return {
428
- marginTop: r,
429
- marginBottom: i,
428
+ marginTop: n,
429
+ marginBottom: r,
430
430
  selfScroll: t,
431
- height: Math.max(e.defaultLineHeight, a - 5)
431
+ height: Math.max(e.defaultLineHeight, i - 5)
432
432
  };
433
433
  }
434
434
  function Je(e, t) {
435
- let r = qe(e), { state: i } = e, a = P(i.selection, (n) => n.empty ? e.moveVertically(n, t, r.height) : L(n, t));
436
- if (a.eq(i.selection)) return !1;
437
- let o;
438
- if (r.selfScroll) {
439
- let t = e.coordsAtPos(i.selection.main.head), s = e.scrollDOM.getBoundingClientRect(), c = s.top + r.marginTop, l = s.bottom - r.marginBottom;
440
- t && t.top > c && t.bottom < l && (o = n.scrollIntoView(a.main.head, {
435
+ let n = qe(e), { state: r } = e, i = P(r.selection, (r) => r.empty ? e.moveVertically(r, t, n.height) : L(r, t));
436
+ if (i.eq(r.selection)) return !1;
437
+ let a;
438
+ if (n.selfScroll) {
439
+ let t = e.coordsAtPos(r.selection.main.head), o = e.scrollDOM.getBoundingClientRect(), s = o.top + n.marginTop, c = o.bottom - n.marginBottom;
440
+ t && t.top > s && t.bottom < c && (a = h.scrollIntoView(i.main.head, {
441
441
  y: "start",
442
- yMargin: t.top - c
442
+ yMargin: t.top - s
443
443
  }));
444
444
  }
445
- return e.dispatch(F(i, a), { effects: o }), !0;
445
+ return e.dispatch(F(r, i), { effects: a }), !0;
446
446
  }
447
447
  var Ye = (e) => Je(e, !1), H = (e) => Je(e, !0);
448
- function U(e, t, n) {
449
- let r = e.lineBlockAt(t.head), i = e.moveToLineBoundary(t, n);
450
- if (i.head == t.head && i.head != (n ? r.to : r.from) && (i = e.moveToLineBoundary(t, n, !1)), !n && i.head == r.from && r.length) {
451
- let n = /^\s*/.exec(e.state.sliceDoc(r.from, Math.min(r.from + 100, r.to)))[0].length;
452
- n && t.head != r.from + n && (i = s.cursor(r.from + n));
448
+ function U(e, n, r) {
449
+ let i = e.lineBlockAt(n.head), a = e.moveToLineBoundary(n, r);
450
+ if (a.head == n.head && a.head != (r ? i.to : i.from) && (a = e.moveToLineBoundary(n, r, !1)), !r && a.head == i.from && i.length) {
451
+ let r = /^\s*/.exec(e.state.sliceDoc(i.from, Math.min(i.from + 100, i.to)))[0].length;
452
+ r && n.head != i.from + r && (a = t.cursor(i.from + r));
453
453
  }
454
- return i;
454
+ return a;
455
455
  }
456
456
  var Xe = (e) => I(e, (t) => U(e, t, !0)), Ze = (e) => I(e, (t) => U(e, t, !1)), Qe = (e) => I(e, (t) => U(e, t, !R(e))), $e = (e) => I(e, (t) => U(e, t, R(e))), et = (e) => I(e, (t) => e.moveToLineBoundary(t, !1, !1)), tt = (e) => I(e, (t) => e.moveToLineBoundary(t, !0, !1));
457
- function nt(e, t, n) {
458
- let r = !1, i = P(e.selection, (t) => {
459
- let i = l(e, t.head, -1) || l(e, t.head, 1) || t.head > 0 && l(e, t.head - 1, 1) || t.head < e.doc.length && l(e, t.head + 1, -1);
460
- if (!i || !i.end) return t;
461
- r = !0;
462
- let a = i.start.from == t.head ? i.end.to : i.end.from;
463
- return n ? s.range(t.anchor, a) : s.cursor(a);
457
+ function nt(e, n, r) {
458
+ let a = !1, o = P(e.selection, (n) => {
459
+ let o = i(e, n.head, -1) || i(e, n.head, 1) || n.head > 0 && i(e, n.head - 1, 1) || n.head < e.doc.length && i(e, n.head + 1, -1);
460
+ if (!o || !o.end) return n;
461
+ a = !0;
462
+ let s = o.start.from == n.head ? o.end.to : o.end.from;
463
+ return r ? t.range(n.anchor, s) : t.cursor(s);
464
464
  });
465
- return r ? (t(F(e, i)), !0) : !1;
465
+ return a ? (n(F(e, o)), !0) : !1;
466
466
  }
467
467
  var rt = ({ state: e, dispatch: t }) => nt(e, t, !1);
468
- function W(e, t, n) {
469
- let r = P(e.state.selection, (e) => {
470
- e.undirectional && e.head >= e.anchor != t && (e = s.range(e.head, e.anchor));
471
- let r = n(e);
472
- return s.range(e.anchor, r.head, r.goalColumn, r.bidiLevel || void 0, r.assoc);
468
+ function W(e, n, r) {
469
+ let i = P(e.state.selection, (e) => {
470
+ e.undirectional && e.head >= e.anchor != n && (e = t.range(e.head, e.anchor));
471
+ let i = r(e);
472
+ return t.range(e.anchor, i.head, i.goalColumn, i.bidiLevel || void 0, i.assoc);
473
473
  });
474
- return !r.eq(e.state.selection) && (e.dispatch(F(e.state, r)), !0);
474
+ return !i.eq(e.state.selection) && (e.dispatch(F(e.state, i)), !0);
475
475
  }
476
476
  function it(e, t) {
477
477
  return W(e, t, (n) => e.moveByChar(n, t));
478
478
  }
479
- var G = (e) => it(e, !R(e)), at = (e) => it(e, R(e));
480
- function ot(e, t) {
479
+ var at = (e) => it(e, !R(e)), ot = (e) => it(e, R(e));
480
+ function st(e, t) {
481
481
  return W(e, t, (n) => e.moveByGroup(n, t));
482
482
  }
483
- var st = (e) => ot(e, !R(e)), ct = (e) => ot(e, R(e)), lt = (e) => {
483
+ var ct = (e) => st(e, !R(e)), lt = (e) => st(e, R(e)), ut = (e) => {
484
484
  let t = !R(e);
485
- return W(e, t, (n) => z(e.state, n, t));
486
- }, ut = (e) => {
485
+ return W(e, t, (n) => V(e.state, n, t));
486
+ }, dt = (e) => {
487
487
  let t = R(e);
488
- return W(e, t, (n) => z(e.state, n, t));
488
+ return W(e, t, (n) => V(e.state, n, t));
489
489
  };
490
- function dt(e, t) {
490
+ function ft(e, t) {
491
491
  return W(e, t, (n) => e.moveVertically(n, t));
492
492
  }
493
- var ft = (e) => dt(e, !1), pt = (e) => dt(e, !0);
494
- function mt(e, t) {
493
+ var pt = (e) => ft(e, !1), mt = (e) => ft(e, !0);
494
+ function ht(e, t) {
495
495
  return W(e, t, (n) => e.moveVertically(n, t, qe(e).height));
496
496
  }
497
- var ht = (e) => mt(e, !1), gt = (e) => mt(e, !0), _t = (e) => W(e, !0, (t) => U(e, t, !0)), vt = (e) => W(e, !1, (t) => U(e, t, !1)), yt = (e) => {
497
+ var gt = (e) => ht(e, !1), _t = (e) => ht(e, !0), vt = (e) => W(e, !0, (t) => U(e, t, !0)), yt = (e) => W(e, !1, (t) => U(e, t, !1)), bt = (e) => {
498
498
  let t = !R(e);
499
499
  return W(e, t, (n) => U(e, n, t));
500
- }, bt = (e) => {
500
+ }, xt = (e) => {
501
501
  let t = R(e);
502
502
  return W(e, t, (n) => U(e, n, t));
503
- }, xt = (e) => W(e, !1, (t) => s.cursor(e.lineBlockAt(t.head).from)), St = (e) => W(e, !0, (t) => s.cursor(e.lineBlockAt(t.head).to)), Ct = ({ state: e, dispatch: t }) => (t(F(e, { anchor: 0 })), !0), wt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: e.doc.length })), !0), Tt = ({ state: e, dispatch: t }) => (t(F(e, {
503
+ }, St = (e) => W(e, !1, (n) => t.cursor(e.lineBlockAt(n.head).from)), Ct = (e) => W(e, !0, (n) => t.cursor(e.lineBlockAt(n.head).to)), wt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: 0 })), !0), Tt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: e.doc.length })), !0), Et = ({ state: e, dispatch: t }) => (t(F(e, {
504
504
  anchor: e.selection.main.anchor,
505
505
  head: 0
506
- })), !0), Et = ({ state: e, dispatch: t }) => (t(F(e, {
506
+ })), !0), Dt = ({ state: e, dispatch: t }) => (t(F(e, {
507
507
  anchor: e.selection.main.anchor,
508
508
  head: e.doc.length
509
- })), !0), Dt = ({ state: e, dispatch: t }) => (t(e.update({
509
+ })), !0), Ot = ({ state: e, dispatch: t }) => (t(e.update({
510
510
  selection: {
511
511
  anchor: 0,
512
512
  head: e.doc.length
513
513
  },
514
514
  userEvent: "select"
515
- })), !0), Ot = ({ state: e, dispatch: t }) => {
516
- let n = X(e).map(({ from: t, to: n }) => s.undirectionalRange(t, Math.min(n + 1, e.doc.length)));
517
- return t(e.update({
518
- selection: s.create(n),
515
+ })), !0), kt = ({ state: e, dispatch: n }) => {
516
+ let r = Y(e).map(({ from: n, to: r }) => t.undirectionalRange(n, Math.min(r + 1, e.doc.length)));
517
+ return n(e.update({
518
+ selection: t.create(r),
519
519
  userEvent: "select"
520
520
  })), !0;
521
- }, kt = ({ state: e, dispatch: t }) => {
522
- let n = P(e.selection, (t) => {
523
- let n = i(e), r = n.resolveStack(t.from, 1);
524
- if (t.empty) {
525
- let e = n.resolveStack(t.from, -1);
526
- e.node.from >= r.node.from && e.node.to <= r.node.to && (r = e);
521
+ }, At = ({ state: e, dispatch: n }) => {
522
+ let r = P(e.selection, (n) => {
523
+ let r = o(e), i = r.resolveStack(n.from, 1);
524
+ if (n.empty) {
525
+ let e = r.resolveStack(n.from, -1);
526
+ e.node.from >= i.node.from && e.node.to <= i.node.to && (i = e);
527
527
  }
528
- for (let e = r; e; e = e.next) {
529
- let { node: n } = e;
530
- if ((n.from < t.from && n.to >= t.to || n.to > t.to && n.from <= t.from) && e.next) return s.undirectionalRange(n.from, n.to);
528
+ for (let e = i; e; e = e.next) {
529
+ let { node: r } = e;
530
+ if ((r.from < n.from && r.to >= n.to || r.to > n.to && r.from <= n.from) && e.next) return t.undirectionalRange(r.from, r.to);
531
531
  }
532
- return t;
532
+ return n;
533
533
  });
534
- return !n.eq(e.selection) && (t(F(e, n)), !0);
534
+ return !r.eq(e.selection) && (n(F(e, r)), !0);
535
535
  };
536
- function At(e, t) {
537
- let { state: n } = e, r = n.selection, i = n.selection.ranges.slice();
538
- for (let r of n.selection.ranges) {
539
- let a = n.doc.lineAt(r.head);
540
- if (t ? a.to < e.state.doc.length : a.from > 0) for (let n = r;;) {
541
- let r = e.moveVertically(n, t);
542
- if (r.head < a.from || r.head > a.to) {
543
- i.some((e) => e.head == r.head) || i.push(r);
536
+ function jt(e, n) {
537
+ let { state: r } = e, i = r.selection, a = r.selection.ranges.slice();
538
+ for (let t of r.selection.ranges) {
539
+ let i = r.doc.lineAt(t.head);
540
+ if (n ? i.to < e.state.doc.length : i.from > 0) for (let r = t;;) {
541
+ let t = e.moveVertically(r, n);
542
+ if (t.head < i.from || t.head > i.to) {
543
+ a.some((e) => e.head == t.head) || a.push(t);
544
544
  break;
545
545
  }
546
- if (r.head == n.head) break;
547
- n = r;
546
+ if (t.head == r.head) break;
547
+ r = t;
548
548
  }
549
549
  }
550
- return i.length != r.ranges.length && (e.dispatch(F(n, s.create(i, i.length - 1))), !0);
550
+ return a.length != i.ranges.length && (e.dispatch(F(r, t.create(a, a.length - 1))), !0);
551
551
  }
552
- var jt = (e) => At(e, !1), Mt = (e) => At(e, !0), Nt = ({ state: e, dispatch: t }) => {
553
- let n = e.selection, r = null;
554
- return n.ranges.length > 1 ? r = s.create([n.main]) : n.main.empty || (r = s.create([s.cursor(n.main.head)])), r ? (t(F(e, r)), !0) : !1;
552
+ var Mt = (e) => jt(e, !1), Nt = (e) => jt(e, !0), Pt = ({ state: e, dispatch: n }) => {
553
+ let r = e.selection, i = null;
554
+ return r.ranges.length > 1 ? i = t.create([r.main]) : r.main.empty || (i = t.create([t.cursor(r.main.head)])), i ? (n(F(e, i)), !0) : !1;
555
555
  };
556
- function K(e, t) {
556
+ function G(e, n) {
557
557
  if (e.state.readOnly) return !1;
558
- let r = "delete.selection", { state: i } = e, a = i.changeByRange((n) => {
559
- let { from: i, to: a } = n;
560
- if (i == a) {
561
- let o = t(n);
562
- o < i ? (r = "delete.backward", o = q(e, o, !1)) : o > i && (r = "delete.forward", o = q(e, o, !0)), i = Math.min(i, o), a = Math.max(a, o);
563
- } else i = q(e, i, !1), a = q(e, a, !0);
564
- return i == a ? { range: n } : {
558
+ let r = "delete.selection", { state: i } = e, a = i.changeByRange((i) => {
559
+ let { from: a, to: o } = i;
560
+ if (a == o) {
561
+ let t = n(i);
562
+ t < a ? (r = "delete.backward", t = K(e, t, !1)) : t > a && (r = "delete.forward", t = K(e, t, !0)), a = Math.min(a, t), o = Math.max(o, t);
563
+ } else a = K(e, a, !1), o = K(e, o, !0);
564
+ return a == o ? { range: i } : {
565
565
  changes: {
566
- from: i,
567
- to: a
566
+ from: a,
567
+ to: o
568
568
  },
569
- range: s.cursor(i, i < n.head ? -1 : 1)
569
+ range: t.cursor(a, a < i.head ? -1 : 1)
570
570
  };
571
571
  });
572
572
  return !a.changes.empty && (e.dispatch(i.update(a, {
573
573
  scrollIntoView: !0,
574
574
  userEvent: r,
575
- effects: r == "delete.selection" ? n.announce.of(i.phrase("Selection deleted")) : void 0
575
+ effects: r == "delete.selection" ? h.announce.of(i.phrase("Selection deleted")) : void 0
576
576
  })), !0);
577
577
  }
578
- function q(e, t, r) {
579
- if (e instanceof n) for (let i of e.state.facet(n.atomicRanges).map((t) => t(e))) i.between(t, t, (e, n) => {
580
- e < t && n > t && (t = r ? n : e);
578
+ function K(e, t, n) {
579
+ if (e instanceof h) for (let r of e.state.facet(h.atomicRanges).map((t) => t(e))) r.between(t, t, (e, r) => {
580
+ e < t && r > t && (t = n ? r : e);
581
581
  });
582
582
  return t;
583
583
  }
584
- var Pt = (e, t, n) => K(e, (r) => {
584
+ var Ft = (e, t, n) => G(e, (r) => {
585
585
  let i = r.from, { state: a } = e, o = a.doc.lineAt(i), s, c;
586
586
  if (n && !t && i > o.from && i < o.from + 200 && !/[^ \t]/.test(s = o.text.slice(0, i - o.from))) {
587
587
  if (s[s.length - 1] == " ") return i - 1;
588
- let e = _(s, a.tabSize) % v(a) || v(a);
588
+ let e = g(s, a.tabSize) % d(a) || d(a);
589
589
  for (let t = 0; t < e && s[s.length - 1 - t] == " "; t++) i--;
590
590
  c = i;
591
- } else c = g(o.text, i - o.from, t, t) + o.from, c == i && o.number != (t ? a.doc.lines : 1) ? c += t ? 1 : -1 : !t && /[\ufe00-\ufe0f]/.test(o.text.slice(c - o.from, i - o.from)) && (c = g(o.text, c - o.from, !1, !1) + o.from);
591
+ } else c = m(o.text, i - o.from, t, t) + o.from, c == i && o.number != (t ? a.doc.lines : 1) ? c += t ? 1 : -1 : !t && /[\ufe00-\ufe0f]/.test(o.text.slice(c - o.from, i - o.from)) && (c = m(o.text, c - o.from, !1, !1) + o.from);
592
592
  return c;
593
- }), J = (e) => Pt(e, !1, !0), Y = (e) => Pt(e, !0, !1), Ft = (e, t) => K(e, (n) => {
593
+ }), q = (e) => Ft(e, !1, !0), J = (e) => Ft(e, !0, !1), It = (e, t) => G(e, (n) => {
594
594
  let r = n.head, { state: i } = e, a = i.doc.lineAt(r), o = i.charCategorizer(r);
595
595
  for (let e = null;;) {
596
596
  if (r == (t ? a.to : a.from)) {
597
597
  r == n.head && a.number != (t ? i.doc.lines : 1) && (r += t ? 1 : -1);
598
598
  break;
599
599
  }
600
- let s = g(a.text, r - a.from, t) + a.from, c = a.text.slice(Math.min(r, s) - a.from, Math.max(r, s) - a.from), l = o(c);
600
+ let s = m(a.text, r - a.from, t) + a.from, c = a.text.slice(Math.min(r, s) - a.from, Math.max(r, s) - a.from), l = o(c);
601
601
  if (e != null && l != e) break;
602
602
  (c != " " || r != n.head) && (e = l), r = s;
603
603
  }
604
604
  return r;
605
- }), It = (e) => Ft(e, !1), Lt = (e) => Ft(e, !0), Rt = (e) => K(e, (t) => {
605
+ }), Lt = (e) => It(e, !1), Rt = (e) => It(e, !0), zt = (e) => G(e, (t) => {
606
606
  let n = e.lineBlockAt(t.head).to;
607
607
  return t.head < n ? n : Math.min(e.state.doc.length, t.head + 1);
608
- }), zt = (e) => K(e, (t) => {
608
+ }), Bt = (e) => G(e, (t) => {
609
609
  let n = e.moveToLineBoundary(t, !1).head;
610
610
  return t.head > n ? n : Math.max(0, t.head - 1);
611
- }), Bt = (e) => K(e, (t) => {
611
+ }), Vt = (e) => G(e, (t) => {
612
612
  let n = e.moveToLineBoundary(t, !0).head;
613
613
  return t.head < n ? n : Math.min(e.state.doc.length, t.head + 1);
614
- }), Vt = ({ state: e, dispatch: t }) => {
614
+ }), Ht = ({ state: e, dispatch: n }) => {
615
615
  if (e.readOnly) return !1;
616
- let n = e.changeByRange((e) => ({
616
+ let r = e.changeByRange((e) => ({
617
617
  changes: {
618
618
  from: e.from,
619
619
  to: e.to,
620
- insert: ee.of(["", ""])
620
+ insert: te.of(["", ""])
621
621
  },
622
- range: s.cursor(e.from)
622
+ range: t.cursor(e.from)
623
623
  }));
624
- return t(e.update(n, {
624
+ return n(e.update(r, {
625
625
  scrollIntoView: !0,
626
626
  userEvent: "input"
627
627
  })), !0;
628
- }, Ht = ({ state: e, dispatch: t }) => {
628
+ }, Ut = ({ state: e, dispatch: n }) => {
629
629
  if (e.readOnly) return !1;
630
- let n = e.changeByRange((t) => {
631
- if (!t.empty || t.from == 0 || t.from == e.doc.length) return { range: t };
632
- let n = t.from, r = e.doc.lineAt(n), i = n == r.from ? n - 1 : g(r.text, n - r.from, !1) + r.from, a = n == r.to ? n + 1 : g(r.text, n - r.from, !0) + r.from;
630
+ let r = e.changeByRange((n) => {
631
+ if (!n.empty || n.from == 0 || n.from == e.doc.length) return { range: n };
632
+ let r = n.from, i = e.doc.lineAt(r), a = r == i.from ? r - 1 : m(i.text, r - i.from, !1) + i.from, o = r == i.to ? r + 1 : m(i.text, r - i.from, !0) + i.from;
633
633
  return {
634
634
  changes: {
635
- from: i,
636
- to: a,
637
- insert: e.doc.slice(n, a).append(e.doc.slice(i, n))
635
+ from: a,
636
+ to: o,
637
+ insert: e.doc.slice(r, o).append(e.doc.slice(a, r))
638
638
  },
639
- range: s.cursor(a)
639
+ range: t.cursor(o)
640
640
  };
641
641
  });
642
- return !n.changes.empty && (t(e.update(n, {
642
+ return !r.changes.empty && (n(e.update(r, {
643
643
  scrollIntoView: !0,
644
644
  userEvent: "move.character"
645
645
  })), !0);
646
646
  };
647
- function X(e) {
647
+ function Y(e) {
648
648
  let t = [], n = -1;
649
649
  for (let r of e.selection.ranges) {
650
650
  let i = e.doc.lineAt(r.from), a = e.doc.lineAt(r.to);
@@ -660,44 +660,44 @@ function X(e) {
660
660
  }
661
661
  return t;
662
662
  }
663
- function Ut(e, t, n) {
663
+ function Wt(e, n, r) {
664
664
  if (e.readOnly) return !1;
665
- let r = [], i = [];
666
- for (let t of X(e)) {
667
- if (n ? t.to == e.doc.length : t.from == 0) continue;
668
- let a = e.doc.lineAt(n ? t.to + 1 : t.from - 1), o = a.length + 1;
669
- if (n) {
670
- r.push({
671
- from: t.to,
672
- to: a.to
665
+ let i = [], a = [];
666
+ for (let n of Y(e)) {
667
+ if (r ? n.to == e.doc.length : n.from == 0) continue;
668
+ let o = e.doc.lineAt(r ? n.to + 1 : n.from - 1), s = o.length + 1;
669
+ if (r) {
670
+ i.push({
671
+ from: n.to,
672
+ to: o.to
673
673
  }, {
674
- from: t.from,
675
- insert: a.text + e.lineBreak
674
+ from: n.from,
675
+ insert: o.text + e.lineBreak
676
676
  });
677
- for (let n of t.ranges) i.push(s.range(Math.min(e.doc.length, n.anchor + o), Math.min(e.doc.length, n.head + o)));
677
+ for (let r of n.ranges) a.push(t.range(Math.min(e.doc.length, r.anchor + s), Math.min(e.doc.length, r.head + s)));
678
678
  } else {
679
- r.push({
680
- from: a.from,
681
- to: t.from
679
+ i.push({
680
+ from: o.from,
681
+ to: n.from
682
682
  }, {
683
- from: t.to,
684
- insert: e.lineBreak + a.text
683
+ from: n.to,
684
+ insert: e.lineBreak + o.text
685
685
  });
686
- for (let e of t.ranges) i.push(s.range(e.anchor - o, e.head - o));
686
+ for (let e of n.ranges) a.push(t.range(e.anchor - s, e.head - s));
687
687
  }
688
688
  }
689
- return r.length ? (t(e.update({
690
- changes: r,
689
+ return i.length ? (n(e.update({
690
+ changes: i,
691
691
  scrollIntoView: !0,
692
- selection: s.create(i, e.selection.mainIndex),
692
+ selection: t.create(a, e.selection.mainIndex),
693
693
  userEvent: "move.line"
694
694
  })), !0) : !1;
695
695
  }
696
- var Wt = ({ state: e, dispatch: t }) => Ut(e, t, !1), Gt = ({ state: e, dispatch: t }) => Ut(e, t, !0);
697
- function Kt(e, t, n) {
696
+ var Gt = ({ state: e, dispatch: t }) => Wt(e, t, !1), Kt = ({ state: e, dispatch: t }) => Wt(e, t, !0);
697
+ function qt(e, t, n) {
698
698
  if (e.readOnly) return !1;
699
699
  let r = [];
700
- for (let t of X(e)) n ? r.push({
700
+ for (let t of Y(e)) n ? r.push({
701
701
  from: t.from,
702
702
  insert: e.doc.slice(t.from, t.to) + e.lineBreak
703
703
  }) : r.push({
@@ -712,9 +712,9 @@ function Kt(e, t, n) {
712
712
  userEvent: "input.copyline"
713
713
  })), !0;
714
714
  }
715
- var qt = ({ state: e, dispatch: t }) => Kt(e, t, !1), Jt = ({ state: e, dispatch: t }) => Kt(e, t, !0), Yt = (e) => {
715
+ var Jt = ({ state: e, dispatch: t }) => qt(e, t, !1), Yt = ({ state: e, dispatch: t }) => qt(e, t, !0), Xt = (e) => {
716
716
  if (e.state.readOnly) return !1;
717
- let { state: t } = e, n = t.changes(X(t).map(({ from: e, to: n }) => (e > 0 ? e-- : n < t.doc.length && n++, {
717
+ let { state: t } = e, n = t.changes(Y(t).map(({ from: e, to: n }) => (e > 0 ? e-- : n < t.doc.length && n++, {
718
718
  from: e,
719
719
  to: n
720
720
  }))), r = P(t.selection, (t) => {
@@ -732,145 +732,145 @@ var qt = ({ state: e, dispatch: t }) => Kt(e, t, !1), Jt = ({ state: e, dispatch
732
732
  userEvent: "delete.line"
733
733
  }), !0;
734
734
  };
735
- function Xt(t, n) {
735
+ function Zt(t, n) {
736
736
  if (/\(\)|\[\]|\{\}/.test(t.sliceDoc(n - 1, n + 1))) return {
737
737
  from: n,
738
738
  to: n
739
739
  };
740
- let r = i(t).resolveInner(n), a = r.childBefore(n), o = r.childAfter(n), s;
741
- return a && o && a.to <= n && o.from >= n && (s = a.type.prop(e.closedBy)) && s.indexOf(o.name) > -1 && t.doc.lineAt(a.to).from == t.doc.lineAt(o.from).from && !/\S/.test(t.sliceDoc(a.to, o.from)) ? {
742
- from: a.to,
743
- to: o.from
740
+ let r = o(t).resolveInner(n), i = r.childBefore(n), a = r.childAfter(n), s;
741
+ return i && a && i.to <= n && a.from >= n && (s = i.type.prop(e.closedBy)) && s.indexOf(a.name) > -1 && t.doc.lineAt(i.to).from == t.doc.lineAt(a.from).from && !/\S/.test(t.sliceDoc(i.to, a.from)) ? {
742
+ from: i.to,
743
+ to: a.from
744
744
  } : null;
745
745
  }
746
- var Zt = /*@__PURE__*/ $t(!1), Qt = /*@__PURE__*/ $t(!0);
746
+ var X = /*@__PURE__*/ $t(!1), Qt = /*@__PURE__*/ $t(!0);
747
747
  function $t(e) {
748
- return ({ state: t, dispatch: n }) => {
749
- if (t.readOnly) return !1;
750
- let r = t.changeByRange((n) => {
751
- let { from: r, to: i } = n, a = t.doc.lineAt(r), o = !e && r == i && Xt(t, r);
752
- e && (r = i = (i <= a.to ? a : t.doc.lineAt(i)).to);
753
- let l = new p(t, {
754
- simulateBreak: r,
755
- simulateDoubleBreak: !!o
756
- }), u = m(l, r);
757
- for (u ?? (u = _(/^\s*/.exec(t.doc.lineAt(r).text)[0], t.tabSize)); i < a.to && /\s/.test(a.text[i - a.from]);) i++;
758
- o ? {from: r, to: i} = o : r > a.from && r < a.from + 100 && !/\S/.test(a.text.slice(0, r)) && (r = a.from);
759
- let d = ["", c(t, u)];
760
- return o && d.push(c(t, l.lineIndent(a.from, -1))), {
748
+ return ({ state: n, dispatch: i }) => {
749
+ if (n.readOnly) return !1;
750
+ let a = n.changeByRange((i) => {
751
+ let { from: a, to: o } = i, s = n.doc.lineAt(a), c = !e && a == o && Zt(n, a);
752
+ e && (a = o = (o <= s.to ? s : n.doc.lineAt(o)).to);
753
+ let l = new ne(n, {
754
+ simulateBreak: a,
755
+ simulateDoubleBreak: !!c
756
+ }), u = se(l, a);
757
+ for (u ?? (u = g(/^\s*/.exec(n.doc.lineAt(a).text)[0], n.tabSize)); o < s.to && /\s/.test(s.text[o - s.from]);) o++;
758
+ c ? {from: a, to: o} = c : a > s.from && a < s.from + 100 && !/\S/.test(s.text.slice(0, a)) && (a = s.from);
759
+ let d = ["", r(n, u)];
760
+ return c && d.push(r(n, l.lineIndent(s.from, -1))), {
761
761
  changes: {
762
- from: r,
763
- to: i,
764
- insert: ee.of(d)
762
+ from: a,
763
+ to: o,
764
+ insert: te.of(d)
765
765
  },
766
- range: s.cursor(r + 1 + d[1].length)
766
+ range: t.cursor(a + 1 + d[1].length)
767
767
  };
768
768
  });
769
- return n(t.update(r, {
769
+ return i(n.update(a, {
770
770
  scrollIntoView: !0,
771
771
  userEvent: "input"
772
772
  })), !0;
773
773
  };
774
774
  }
775
- function Z(e, t) {
776
- let n = -1;
777
- return e.changeByRange((r) => {
778
- let i = [];
779
- for (let a = r.from; a <= r.to;) {
780
- let o = e.doc.lineAt(a);
781
- o.number > n && (r.empty || r.to > o.from) && (t(o, i, r), n = o.number), a = o.to + 1;
775
+ function Z(e, n) {
776
+ let r = -1;
777
+ return e.changeByRange((i) => {
778
+ let a = [];
779
+ for (let t = i.from; t <= i.to;) {
780
+ let o = e.doc.lineAt(t);
781
+ o.number > r && (i.empty || i.to > o.from) && (n(o, a, i), r = o.number), t = o.to + 1;
782
782
  }
783
- let a = e.changes(i);
783
+ let o = e.changes(a);
784
784
  return {
785
- changes: i,
786
- range: s.range(a.mapPos(r.anchor, 1), a.mapPos(r.head, 1))
785
+ changes: a,
786
+ range: t.range(o.mapPos(i.anchor, 1), o.mapPos(i.head, 1))
787
787
  };
788
788
  });
789
789
  }
790
790
  var en = ({ state: e, dispatch: t }) => {
791
791
  if (e.readOnly) return !1;
792
- let n = Object.create(null), r = new p(e, { overrideIndentation: (e) => n[e] ?? -1 }), i = Z(e, (t, i, a) => {
793
- let o = m(r, t.from);
794
- if (o == null) return;
795
- /\S/.test(t.text) || (o = 0);
796
- let s = /^\s*/.exec(t.text)[0], l = c(e, o);
797
- (s != l || a.from < t.from + s.length) && (n[t.from] = o, i.push({
792
+ let n = Object.create(null), i = new ne(e, { overrideIndentation: (e) => n[e] ?? -1 }), a = Z(e, (t, a, o) => {
793
+ let s = se(i, t.from);
794
+ if (s == null) return;
795
+ /\S/.test(t.text) || (s = 0);
796
+ let c = /^\s*/.exec(t.text)[0], l = r(e, s);
797
+ (c != l || o.from < t.from + c.length) && (n[t.from] = s, a.push({
798
798
  from: t.from,
799
- to: t.from + s.length,
799
+ to: t.from + c.length,
800
800
  insert: l
801
801
  }));
802
802
  });
803
- return i.changes.empty || t(e.update(i, { userEvent: "indent" })), !0;
803
+ return a.changes.empty || t(e.update(a, { userEvent: "indent" })), !0;
804
804
  }, tn = ({ state: e, dispatch: t }) => !e.readOnly && (t(e.update(Z(e, (t, n) => {
805
805
  n.push({
806
806
  from: t.from,
807
- insert: e.facet(r)
807
+ insert: e.facet(oe)
808
808
  });
809
809
  }), { userEvent: "input.indent" })), !0), nn = ({ state: e, dispatch: t }) => !e.readOnly && (t(e.update(Z(e, (t, n) => {
810
- let r = /^\s*/.exec(t.text)[0];
811
- if (!r) return;
812
- let i = _(r, e.tabSize), a = 0, o = c(e, Math.max(0, i - v(e)));
813
- for (; a < r.length && a < o.length && r.charCodeAt(a) == o.charCodeAt(a);) a++;
810
+ let i = /^\s*/.exec(t.text)[0];
811
+ if (!i) return;
812
+ let a = g(i, e.tabSize), o = 0, s = r(e, Math.max(0, a - d(e)));
813
+ for (; o < i.length && o < s.length && i.charCodeAt(o) == s.charCodeAt(o);) o++;
814
814
  n.push({
815
- from: t.from + a,
816
- to: t.from + r.length,
817
- insert: o.slice(a)
815
+ from: t.from + o,
816
+ to: t.from + i.length,
817
+ insert: s.slice(o)
818
818
  });
819
819
  }), { userEvent: "delete.dedent" })), !0), rn = (e) => (e.setTabFocusMode(), !0), an = [
820
820
  {
821
821
  key: "Ctrl-b",
822
822
  run: Re,
823
- shift: G,
823
+ shift: at,
824
824
  preventDefault: !0
825
825
  },
826
826
  {
827
827
  key: "Ctrl-f",
828
- run: ze,
829
- shift: at
828
+ run: z,
829
+ shift: ot
830
830
  },
831
831
  {
832
832
  key: "Ctrl-p",
833
- run: V,
834
- shift: ft
833
+ run: Ge,
834
+ shift: pt
835
835
  },
836
836
  {
837
837
  key: "Ctrl-n",
838
838
  run: Ke,
839
- shift: pt
839
+ shift: mt
840
840
  },
841
841
  {
842
842
  key: "Ctrl-a",
843
843
  run: et,
844
- shift: xt
844
+ shift: St
845
845
  },
846
846
  {
847
847
  key: "Ctrl-e",
848
848
  run: tt,
849
- shift: St
849
+ shift: Ct
850
850
  },
851
851
  {
852
852
  key: "Ctrl-d",
853
- run: Y
853
+ run: J
854
854
  },
855
855
  {
856
856
  key: "Ctrl-h",
857
- run: J
857
+ run: q
858
858
  },
859
859
  {
860
860
  key: "Ctrl-k",
861
- run: Rt
861
+ run: zt
862
862
  },
863
863
  {
864
864
  key: "Ctrl-Alt-h",
865
- run: It
865
+ run: Lt
866
866
  },
867
867
  {
868
868
  key: "Ctrl-o",
869
- run: Vt
869
+ run: Ht
870
870
  },
871
871
  {
872
872
  key: "Ctrl-t",
873
- run: Ht
873
+ run: Ut
874
874
  },
875
875
  {
876
876
  key: "Ctrl-v",
@@ -880,145 +880,145 @@ var en = ({ state: e, dispatch: t }) => {
880
880
  {
881
881
  key: "ArrowLeft",
882
882
  run: Re,
883
- shift: G,
883
+ shift: at,
884
884
  preventDefault: !0
885
885
  },
886
886
  {
887
887
  key: "Mod-ArrowLeft",
888
888
  mac: "Alt-ArrowLeft",
889
- run: Ve,
890
- shift: st,
889
+ run: ze,
890
+ shift: ct,
891
891
  preventDefault: !0
892
892
  },
893
893
  {
894
894
  mac: "Cmd-ArrowLeft",
895
895
  run: Qe,
896
- shift: yt,
896
+ shift: bt,
897
897
  preventDefault: !0
898
898
  },
899
899
  {
900
900
  key: "ArrowRight",
901
- run: ze,
902
- shift: at,
901
+ run: z,
902
+ shift: ot,
903
903
  preventDefault: !0
904
904
  },
905
905
  {
906
906
  key: "Mod-ArrowRight",
907
907
  mac: "Alt-ArrowRight",
908
- run: He,
909
- shift: ct,
908
+ run: Be,
909
+ shift: lt,
910
910
  preventDefault: !0
911
911
  },
912
912
  {
913
913
  mac: "Cmd-ArrowRight",
914
914
  run: $e,
915
- shift: bt,
915
+ shift: xt,
916
916
  preventDefault: !0
917
917
  },
918
918
  {
919
919
  key: "ArrowUp",
920
- run: V,
921
- shift: ft,
920
+ run: Ge,
921
+ shift: pt,
922
922
  preventDefault: !0
923
923
  },
924
924
  {
925
925
  mac: "Cmd-ArrowUp",
926
- run: Ct,
927
- shift: Tt
926
+ run: wt,
927
+ shift: Et
928
928
  },
929
929
  {
930
930
  mac: "Ctrl-ArrowUp",
931
931
  run: Ye,
932
- shift: ht
932
+ shift: gt
933
933
  },
934
934
  {
935
935
  key: "ArrowDown",
936
936
  run: Ke,
937
- shift: pt,
937
+ shift: mt,
938
938
  preventDefault: !0
939
939
  },
940
940
  {
941
941
  mac: "Cmd-ArrowDown",
942
- run: wt,
943
- shift: Et
942
+ run: Tt,
943
+ shift: Dt
944
944
  },
945
945
  {
946
946
  mac: "Ctrl-ArrowDown",
947
947
  run: H,
948
- shift: gt
948
+ shift: _t
949
949
  },
950
950
  {
951
951
  key: "PageUp",
952
952
  run: Ye,
953
- shift: ht
953
+ shift: gt
954
954
  },
955
955
  {
956
956
  key: "PageDown",
957
957
  run: H,
958
- shift: gt
958
+ shift: _t
959
959
  },
960
960
  {
961
961
  key: "Home",
962
962
  run: Ze,
963
- shift: vt,
963
+ shift: yt,
964
964
  preventDefault: !0
965
965
  },
966
966
  {
967
967
  key: "Mod-Home",
968
- run: Ct,
969
- shift: Tt
968
+ run: wt,
969
+ shift: Et
970
970
  },
971
971
  {
972
972
  key: "End",
973
973
  run: Xe,
974
- shift: _t,
974
+ shift: vt,
975
975
  preventDefault: !0
976
976
  },
977
977
  {
978
978
  key: "Mod-End",
979
- run: wt,
980
- shift: Et
979
+ run: Tt,
980
+ shift: Dt
981
981
  },
982
982
  {
983
983
  key: "Enter",
984
- run: Zt,
985
- shift: Zt
984
+ run: X,
985
+ shift: X
986
986
  },
987
987
  {
988
988
  key: "Mod-a",
989
- run: Dt
989
+ run: Ot
990
990
  },
991
991
  {
992
992
  key: "Backspace",
993
- run: J,
994
- shift: J,
993
+ run: q,
994
+ shift: q,
995
995
  preventDefault: !0
996
996
  },
997
997
  {
998
998
  key: "Delete",
999
- run: Y,
999
+ run: J,
1000
1000
  preventDefault: !0
1001
1001
  },
1002
1002
  {
1003
1003
  key: "Mod-Backspace",
1004
1004
  mac: "Alt-Backspace",
1005
- run: It,
1005
+ run: Lt,
1006
1006
  preventDefault: !0
1007
1007
  },
1008
1008
  {
1009
1009
  key: "Mod-Delete",
1010
1010
  mac: "Alt-Delete",
1011
- run: Lt,
1011
+ run: Rt,
1012
1012
  preventDefault: !0
1013
1013
  },
1014
1014
  {
1015
1015
  mac: "Mod-Backspace",
1016
- run: zt,
1016
+ run: Bt,
1017
1017
  preventDefault: !0
1018
1018
  },
1019
1019
  {
1020
1020
  mac: "Mod-Delete",
1021
- run: Bt,
1021
+ run: Vt,
1022
1022
  preventDefault: !0
1023
1023
  }
1024
1024
  ].concat(/*@__PURE__*/ an.map((e) => ({
@@ -1029,42 +1029,42 @@ var en = ({ state: e, dispatch: t }) => {
1029
1029
  {
1030
1030
  key: "Alt-ArrowLeft",
1031
1031
  mac: "Ctrl-ArrowLeft",
1032
- run: We,
1033
- shift: lt
1032
+ run: He,
1033
+ shift: ut
1034
1034
  },
1035
1035
  {
1036
1036
  key: "Alt-ArrowRight",
1037
1037
  mac: "Ctrl-ArrowRight",
1038
- run: Ge,
1039
- shift: ut
1038
+ run: Ue,
1039
+ shift: dt
1040
1040
  },
1041
1041
  {
1042
1042
  key: "Alt-ArrowUp",
1043
- run: Wt
1043
+ run: Gt
1044
1044
  },
1045
1045
  {
1046
1046
  key: "Shift-Alt-ArrowUp",
1047
- run: qt
1047
+ run: Jt
1048
1048
  },
1049
1049
  {
1050
1050
  key: "Alt-ArrowDown",
1051
- run: Gt
1051
+ run: Kt
1052
1052
  },
1053
1053
  {
1054
1054
  key: "Shift-Alt-ArrowDown",
1055
- run: Jt
1055
+ run: Yt
1056
1056
  },
1057
1057
  {
1058
1058
  key: "Mod-Alt-ArrowUp",
1059
- run: jt
1059
+ run: Mt
1060
1060
  },
1061
1061
  {
1062
1062
  key: "Mod-Alt-ArrowDown",
1063
- run: Mt
1063
+ run: Nt
1064
1064
  },
1065
1065
  {
1066
1066
  key: "Escape",
1067
- run: Nt
1067
+ run: Pt
1068
1068
  },
1069
1069
  {
1070
1070
  key: "Mod-Enter",
@@ -1073,11 +1073,11 @@ var en = ({ state: e, dispatch: t }) => {
1073
1073
  {
1074
1074
  key: "Alt-l",
1075
1075
  mac: "Ctrl-l",
1076
- run: Ot
1076
+ run: kt
1077
1077
  },
1078
1078
  {
1079
1079
  key: "Mod-i",
1080
- run: kt,
1080
+ run: At,
1081
1081
  preventDefault: !0
1082
1082
  },
1083
1083
  {
@@ -1094,7 +1094,7 @@ var en = ({ state: e, dispatch: t }) => {
1094
1094
  },
1095
1095
  {
1096
1096
  key: "Shift-Mod-k",
1097
- run: Yt
1097
+ run: Xt
1098
1098
  },
1099
1099
  {
1100
1100
  key: "Shift-Mod-\\",
@@ -1102,21 +1102,21 @@ var en = ({ state: e, dispatch: t }) => {
1102
1102
  },
1103
1103
  {
1104
1104
  key: "Mod-/",
1105
- run: de
1105
+ run: fe
1106
1106
  },
1107
1107
  {
1108
1108
  key: "Alt-A",
1109
1109
  mac: "Ctrl-A",
1110
- run: pe
1110
+ run: me
1111
1111
  },
1112
1112
  {
1113
1113
  key: "Ctrl-m",
1114
1114
  mac: "Shift-Alt-m",
1115
1115
  run: rn
1116
1116
  }
1117
- ].concat(on), Q, $ = class extends le(ue(re)) {
1117
+ ].concat(on), Q, $ = class extends ue(de(ee)) {
1118
1118
  constructor(...e) {
1119
- super(...e), this.value = "", this.inputId = "", this.placeholder = "", this.disabled = !1, this.name = "", this.readonly = !1, this.required = !1, this.rows = 6, this.accessibleLabel = "", this.invalid = !1, this._initialValue = "", this._valueAtFocus = "", this._editableCompartment = new f(), this._placeholderCompartment = new f(), this._attrsCompartment = new f(), this._onScrollerPointerDown = (e) => {
1119
+ super(...e), this.value = "", this.inputId = "", this.placeholder = "", this.disabled = !1, this.name = "", this.readonly = !1, this.required = !1, this.rows = 6, this.accessibleLabel = "", this.invalid = !1, this._initialValue = "", this._valueAtFocus = "", this._editableCompartment = new s(), this._placeholderCompartment = new s(), this._attrsCompartment = new s(), this._onScrollerPointerDown = (e) => {
1120
1120
  e.target === this.view?.scrollDOM && (this.focusFromPoint(e.clientX, e.clientY), e.preventDefault());
1121
1121
  };
1122
1122
  }
@@ -1132,10 +1132,10 @@ var en = ({ state: e, dispatch: t }) => {
1132
1132
  this._placeholderCompartment.of(this._placeholderExtension()),
1133
1133
  this._editableCompartment.of(this._editableExtension()),
1134
1134
  this._attrsCompartment.of(this._attrsExtension()),
1135
- n.updateListener.of((e) => {
1136
- e.docChanged && this._onDocChanged();
1135
+ h.updateListener.of((e) => {
1136
+ e.docChanged && this._onDocChanged(e.transactions.every((e) => !e.docChanged || e.annotation(_.remote)));
1137
1137
  }),
1138
- n.domEventHandlers({
1138
+ h.domEventHandlers({
1139
1139
  focus: () => {
1140
1140
  this._valueAtFocus = this.value;
1141
1141
  },
@@ -1146,14 +1146,14 @@ var en = ({ state: e, dispatch: t }) => {
1146
1146
  ];
1147
1147
  }
1148
1148
  _editableExtension() {
1149
- return [n.editable.of(!this.disabled), t.readOnly.of(this.disabled || this.readonly)];
1149
+ return [h.editable.of(!this.disabled), p.readOnly.of(this.disabled || this.readonly)];
1150
1150
  }
1151
1151
  _placeholderExtension() {
1152
1152
  return this.placeholder ? a(this.placeholder) : [];
1153
1153
  }
1154
1154
  _attrsExtension() {
1155
1155
  let e = { ...this.contentAttributes() };
1156
- return this.accessibleLabel && (e["aria-label"] = this.accessibleLabel), this.inputId && (e.id = this.inputId), (this.readonly || this.disabled) && (e["aria-readonly"] = "true"), this.required && (e["aria-required"] = "true"), n.contentAttributes.of(e);
1156
+ return this.accessibleLabel && (e["aria-label"] = this.accessibleLabel), this.inputId && (e.id = this.inputId), (this.readonly || this.disabled) && (e["aria-readonly"] = "true"), this.required && (e["aria-required"] = "true"), h.contentAttributes.of(e);
1157
1157
  }
1158
1158
  refreshContentAttributes() {
1159
1159
  this.reconfigure(this._attrsCompartment, this._attrsExtension());
@@ -1173,10 +1173,10 @@ var en = ({ state: e, dispatch: t }) => {
1173
1173
  "required"
1174
1174
  ].some((t) => e.has(t)) && this.refreshContentAttributes());
1175
1175
  }
1176
- _onDocChanged() {
1177
- let e = this.docToValue(this.doc);
1178
- e !== this.value && (this.value = e, this.commitFormValue(), this.dispatchEvent(new CustomEvent("input", {
1179
- detail: { value: e },
1176
+ _onDocChanged(e) {
1177
+ let t = this.docToValue(this.doc);
1178
+ t !== this.value && (e && this.value === this._valueAtFocus && (this._valueAtFocus = t), this.value = t, this.commitFormValue(), e || this.dispatchEvent(new CustomEvent("input", {
1179
+ detail: { value: t },
1180
1180
  bubbles: !0,
1181
1181
  composed: !0
1182
1182
  })));
@@ -1202,31 +1202,31 @@ var en = ({ state: e, dispatch: t }) => {
1202
1202
  }
1203
1203
  };
1204
1204
  Q = $, Q.shadowRootOptions = {
1205
- ...se.shadowRootOptions,
1205
+ ...ce.shadowRootOptions,
1206
1206
  delegatesFocus: !0
1207
- }, Q.isFormInput = !0, b([y({ type: String })], $.prototype, "value", void 0), b([y({
1207
+ }, Q.isFormInput = !0, Q.isTextEntry = !0, y([v({ type: String })], $.prototype, "value", void 0), y([v({
1208
1208
  type: String,
1209
1209
  attribute: "input-id"
1210
- })], $.prototype, "inputId", void 0), b([y({
1210
+ })], $.prototype, "inputId", void 0), y([v({
1211
1211
  reflect: !0,
1212
- converter: ce("")
1213
- })], $.prototype, "placeholder", void 0), b([y({
1212
+ converter: le("")
1213
+ })], $.prototype, "placeholder", void 0), y([v({
1214
1214
  type: Boolean,
1215
1215
  reflect: !0
1216
- })], $.prototype, "disabled", void 0), b([y({
1216
+ })], $.prototype, "disabled", void 0), y([v({
1217
1217
  reflect: !0,
1218
- converter: ce("")
1219
- })], $.prototype, "name", void 0), b([y({
1218
+ converter: le("")
1219
+ })], $.prototype, "name", void 0), y([v({
1220
1220
  type: Boolean,
1221
1221
  reflect: !0
1222
- })], $.prototype, "readonly", void 0), b([y({
1222
+ })], $.prototype, "readonly", void 0), y([v({
1223
1223
  type: Boolean,
1224
1224
  reflect: !0
1225
- })], $.prototype, "required", void 0), b([y({ type: Number })], $.prototype, "rows", void 0), b([y({
1225
+ })], $.prototype, "required", void 0), y([v({ type: Number })], $.prototype, "rows", void 0), y([v({
1226
1226
  type: String,
1227
1227
  attribute: "accessible-label"
1228
- })], $.prototype, "accessibleLabel", void 0), b([y({
1228
+ })], $.prototype, "accessibleLabel", void 0), y([v({
1229
1229
  type: Boolean,
1230
1230
  reflect: !0
1231
1231
  })], $.prototype, "invalid", void 0);
1232
- export { Se as a, O as c, Ee as d, Y as i, De as l, sn as n, Ie as o, J as r, be as s, $ as t, D as u };
1232
+ export { Ce as a, be as c, E as d, De as f, J as i, D as l, sn as n, Ie as o, q as r, xe as s, $ as t, Oe as u };