fec-dev-designer 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1020) hide show
  1. package/README.md +7 -0
  2. package/es/_virtual/FileSaver.min.js +4 -0
  3. package/es/_virtual/___vite-browser-external.js +6 -0
  4. package/es/_virtual/__vite-browser-external.js +4 -0
  5. package/es/_virtual/_commonjs-dynamic-modules.js +6 -0
  6. package/es/_virtual/_commonjsHelpers.js +30 -0
  7. package/es/_virtual/_plugin-vue_export-helper.js +9 -0
  8. package/es/_virtual/advancedFormat.js +4 -0
  9. package/es/_virtual/aes.js +4 -0
  10. package/es/_virtual/bessel.js +4 -0
  11. package/es/_virtual/blowfish.js +4 -0
  12. package/es/_virtual/cipher-core.js +4 -0
  13. package/es/_virtual/clipboard.js +4 -0
  14. package/es/_virtual/core.js +4 -0
  15. package/es/_virtual/customParseFormat.js +4 -0
  16. package/es/_virtual/dayOfYear.js +4 -0
  17. package/es/_virtual/dayjs.min.js +4 -0
  18. package/es/_virtual/enc-base64.js +4 -0
  19. package/es/_virtual/enc-base64url.js +4 -0
  20. package/es/_virtual/enc-utf16.js +4 -0
  21. package/es/_virtual/evpkdf.js +4 -0
  22. package/es/_virtual/format-hex.js +4 -0
  23. package/es/_virtual/hmac.js +4 -0
  24. package/es/_virtual/index.js +4 -0
  25. package/es/_virtual/interact.min.js +4 -0
  26. package/es/_virtual/isSameOrAfter.js +4 -0
  27. package/es/_virtual/isSameOrBefore.js +4 -0
  28. package/es/_virtual/jstat.js +4 -0
  29. package/es/_virtual/lib-typedarrays.js +4 -0
  30. package/es/_virtual/localeData.js +4 -0
  31. package/es/_virtual/md5.js +4 -0
  32. package/es/_virtual/mode-cfb.js +4 -0
  33. package/es/_virtual/mode-ctr-gladman.js +4 -0
  34. package/es/_virtual/mode-ctr.js +4 -0
  35. package/es/_virtual/mode-ecb.js +4 -0
  36. package/es/_virtual/mode-ofb.js +4 -0
  37. package/es/_virtual/pad-ansix923.js +4 -0
  38. package/es/_virtual/pad-iso10126.js +4 -0
  39. package/es/_virtual/pad-iso97971.js +4 -0
  40. package/es/_virtual/pad-nopadding.js +4 -0
  41. package/es/_virtual/pad-zeropadding.js +4 -0
  42. package/es/_virtual/pbkdf2.js +4 -0
  43. package/es/_virtual/rabbit-legacy.js +4 -0
  44. package/es/_virtual/rabbit.js +4 -0
  45. package/es/_virtual/rc4.js +4 -0
  46. package/es/_virtual/ripemd160.js +4 -0
  47. package/es/_virtual/sha1.js +4 -0
  48. package/es/_virtual/sha224.js +4 -0
  49. package/es/_virtual/sha256.js +4 -0
  50. package/es/_virtual/sha3.js +4 -0
  51. package/es/_virtual/sha384.js +4 -0
  52. package/es/_virtual/sha512.js +4 -0
  53. package/es/_virtual/tripledes.js +4 -0
  54. package/es/_virtual/vue-json-viewer.js +4 -0
  55. package/es/_virtual/weekOfYear.js +4 -0
  56. package/es/_virtual/weekYear.js +4 -0
  57. package/es/_virtual/x64-core.js +4 -0
  58. package/es/config-dev.js +37 -0
  59. package/es/config-prod.js +37 -0
  60. package/es/logo.ico +0 -0
  61. package/es/node_modules/@codemirror/autocomplete/dist/index.js +1372 -0
  62. package/es/node_modules/@codemirror/commands/dist/index.js +845 -0
  63. package/es/node_modules/@codemirror/lang-javascript/dist/index.js +300 -0
  64. package/es/node_modules/@codemirror/language/dist/index.js +1301 -0
  65. package/es/node_modules/@codemirror/lint/dist/index.js +481 -0
  66. package/es/node_modules/@codemirror/search/dist/index.js +841 -0
  67. package/es/node_modules/@codemirror/state/dist/index.js +2649 -0
  68. package/es/node_modules/@codemirror/view/dist/index.js +7452 -0
  69. package/es/node_modules/@ctrl/tinycolor/dist/module/conversion.js +115 -0
  70. package/es/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +153 -0
  71. package/es/node_modules/@ctrl/tinycolor/dist/module/format-input.js +68 -0
  72. package/es/node_modules/@ctrl/tinycolor/dist/module/index.js +183 -0
  73. package/es/node_modules/@ctrl/tinycolor/dist/module/util.js +32 -0
  74. package/es/node_modules/@element-plus/icons-vue/dist/index.js +739 -0
  75. package/es/node_modules/@formulajs/formulajs/lib/esm/index.js +4095 -0
  76. package/es/node_modules/@lezer/common/dist/index.js +1434 -0
  77. package/es/node_modules/@lezer/highlight/dist/index.js +637 -0
  78. package/es/node_modules/@lezer/javascript/dist/index.js +166 -0
  79. package/es/node_modules/@lezer/lr/dist/index.js +1313 -0
  80. package/es/node_modules/@marijn/find-cluster-break/src/index.js +78 -0
  81. package/es/node_modules/@popperjs/core/dist/index.js +588 -0
  82. package/es/node_modules/@vexip-ui/hooks/dist/index.js +612 -0
  83. package/es/node_modules/@vexip-ui/utils/dist/index.js +250 -0
  84. package/es/node_modules/@vue/shared/dist/shared.esm-bundler.js +32 -0
  85. package/es/node_modules/@vueuse/core/index.js +299 -0
  86. package/es/node_modules/@vueuse/shared/index.js +111 -0
  87. package/es/node_modules/async-validator/dist-web/index.js +653 -0
  88. package/es/node_modules/bessel/bessel.js +136 -0
  89. package/es/node_modules/clipboard/dist/clipboard.js +499 -0
  90. package/es/node_modules/codemirror/dist/index.js +40 -0
  91. package/es/node_modules/crelt/index.js +31 -0
  92. package/es/node_modules/crypto-js/aes.js +70 -0
  93. package/es/node_modules/crypto-js/blowfish.js +1132 -0
  94. package/es/node_modules/crypto-js/cipher-core.js +545 -0
  95. package/es/node_modules/crypto-js/core.js +508 -0
  96. package/es/node_modules/crypto-js/enc-base64.js +81 -0
  97. package/es/node_modules/crypto-js/enc-base64url.js +88 -0
  98. package/es/node_modules/crypto-js/enc-utf16.js +100 -0
  99. package/es/node_modules/crypto-js/evpkdf.js +71 -0
  100. package/es/node_modules/crypto-js/format-hex.js +54 -0
  101. package/es/node_modules/crypto-js/hmac.js +84 -0
  102. package/es/node_modules/crypto-js/index.js +49 -0
  103. package/es/node_modules/crypto-js/lib-typedarrays.js +28 -0
  104. package/es/node_modules/crypto-js/md5.js +72 -0
  105. package/es/node_modules/crypto-js/mode-cfb.js +37 -0
  106. package/es/node_modules/crypto-js/mode-ctr-gladman.js +46 -0
  107. package/es/node_modules/crypto-js/mode-ctr.js +29 -0
  108. package/es/node_modules/crypto-js/mode-ecb.js +28 -0
  109. package/es/node_modules/crypto-js/mode-ofb.js +27 -0
  110. package/es/node_modules/crypto-js/pad-ansix923.js +26 -0
  111. package/es/node_modules/crypto-js/pad-iso10126.js +26 -0
  112. package/es/node_modules/crypto-js/pad-iso97971.js +24 -0
  113. package/es/node_modules/crypto-js/pad-nopadding.js +22 -0
  114. package/es/node_modules/crypto-js/pad-zeropadding.js +29 -0
  115. package/es/node_modules/crypto-js/pbkdf2.js +75 -0
  116. package/es/node_modules/crypto-js/rabbit-legacy.js +74 -0
  117. package/es/node_modules/crypto-js/rabbit.js +76 -0
  118. package/es/node_modules/crypto-js/rc4.js +64 -0
  119. package/es/node_modules/crypto-js/ripemd160.js +399 -0
  120. package/es/node_modules/crypto-js/sha1.js +50 -0
  121. package/es/node_modules/crypto-js/sha224.js +37 -0
  122. package/es/node_modules/crypto-js/sha256.js +58 -0
  123. package/es/node_modules/crypto-js/sha3.js +117 -0
  124. package/es/node_modules/crypto-js/sha384.js +38 -0
  125. package/es/node_modules/crypto-js/sha512.js +148 -0
  126. package/es/node_modules/crypto-js/tripledes.js +730 -0
  127. package/es/node_modules/crypto-js/x64-core.js +236 -0
  128. package/es/node_modules/dayjs/dayjs.min.js +296 -0
  129. package/es/node_modules/dayjs/plugin/advancedFormat.js +55 -0
  130. package/es/node_modules/dayjs/plugin/customParseFormat.js +138 -0
  131. package/es/node_modules/dayjs/plugin/dayOfYear.js +19 -0
  132. package/es/node_modules/dayjs/plugin/isSameOrAfter.js +18 -0
  133. package/es/node_modules/dayjs/plugin/isSameOrBefore.js +18 -0
  134. package/es/node_modules/dayjs/plugin/localeData.js +83 -0
  135. package/es/node_modules/dayjs/plugin/weekOfYear.js +31 -0
  136. package/es/node_modules/dayjs/plugin/weekYear.js +19 -0
  137. package/es/node_modules/element-plus/dist/locale/zh-cn.js +198 -0
  138. package/es/node_modules/element-plus/es/_virtual/plugin-vue_export-helper.js +9 -0
  139. package/es/node_modules/element-plus/es/components/alert/index.js +7 -0
  140. package/es/node_modules/element-plus/es/components/alert/src/alert.js +43 -0
  141. package/es/node_modules/element-plus/es/components/alert/src/alert2.js +130 -0
  142. package/es/node_modules/element-plus/es/components/badge/index.js +7 -0
  143. package/es/node_modules/element-plus/es/components/badge/src/badge.js +36 -0
  144. package/es/node_modules/element-plus/es/components/badge/src/badge2.js +73 -0
  145. package/es/node_modules/element-plus/es/components/button/index.js +11 -0
  146. package/es/node_modules/element-plus/es/components/button/src/button-custom.js +51 -0
  147. package/es/node_modules/element-plus/es/components/button/src/button-group.js +14 -0
  148. package/es/node_modules/element-plus/es/components/button/src/button-group2.js +35 -0
  149. package/es/node_modules/element-plus/es/components/button/src/button.js +72 -0
  150. package/es/node_modules/element-plus/es/components/button/src/button2.js +93 -0
  151. package/es/node_modules/element-plus/es/components/button/src/constants.js +6 -0
  152. package/es/node_modules/element-plus/es/components/button/src/use-button.js +79 -0
  153. package/es/node_modules/element-plus/es/components/card/index.js +7 -0
  154. package/es/node_modules/element-plus/es/components/card/src/card.js +26 -0
  155. package/es/node_modules/element-plus/es/components/card/src/card2.js +75 -0
  156. package/es/node_modules/element-plus/es/components/checkbox/index.js +15 -0
  157. package/es/node_modules/element-plus/es/components/checkbox/src/checkbox-button.js +92 -0
  158. package/es/node_modules/element-plus/es/components/checkbox/src/checkbox-group.js +53 -0
  159. package/es/node_modules/element-plus/es/components/checkbox/src/checkbox-group2.js +94 -0
  160. package/es/node_modules/element-plus/es/components/checkbox/src/checkbox.js +65 -0
  161. package/es/node_modules/element-plus/es/components/checkbox/src/checkbox2.js +119 -0
  162. package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.js +27 -0
  163. package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.js +49 -0
  164. package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.js +25 -0
  165. package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.js +34 -0
  166. package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.js +79 -0
  167. package/es/node_modules/element-plus/es/components/checkbox/src/constants.js +4 -0
  168. package/es/node_modules/element-plus/es/components/col/index.js +7 -0
  169. package/es/node_modules/element-plus/es/components/col/src/col.js +47 -0
  170. package/es/node_modules/element-plus/es/components/col/src/col2.js +43 -0
  171. package/es/node_modules/element-plus/es/components/collapse/index.js +11 -0
  172. package/es/node_modules/element-plus/es/components/collapse/src/collapse-item.js +21 -0
  173. package/es/node_modules/element-plus/es/components/collapse/src/collapse-item2.js +113 -0
  174. package/es/node_modules/element-plus/es/components/collapse/src/collapse.js +29 -0
  175. package/es/node_modules/element-plus/es/components/collapse/src/collapse2.js +30 -0
  176. package/es/node_modules/element-plus/es/components/collapse/src/constants.js +4 -0
  177. package/es/node_modules/element-plus/es/components/collapse/src/use-collapse-item.js +59 -0
  178. package/es/node_modules/element-plus/es/components/collapse/src/use-collapse.js +63 -0
  179. package/es/node_modules/element-plus/es/components/collapse-transition/index.js +7 -0
  180. package/es/node_modules/element-plus/es/components/collapse-transition/src/collapse-transition.js +51 -0
  181. package/es/node_modules/element-plus/es/components/collection/src/collection-item.js +13 -0
  182. package/es/node_modules/element-plus/es/components/collection/src/collection.js +53 -0
  183. package/es/node_modules/element-plus/es/components/collection/src/collection2.js +12 -0
  184. package/es/node_modules/element-plus/es/components/config-provider/index.js +9 -0
  185. package/es/node_modules/element-plus/es/components/config-provider/src/config-provider-props.js +44 -0
  186. package/es/node_modules/element-plus/es/components/config-provider/src/config-provider.js +24 -0
  187. package/es/node_modules/element-plus/es/components/config-provider/src/constants.js +4 -0
  188. package/es/node_modules/element-plus/es/components/config-provider/src/hooks/use-global-config.js +86 -0
  189. package/es/node_modules/element-plus/es/components/container/index.js +20 -0
  190. package/es/node_modules/element-plus/es/components/container/src/aside.js +33 -0
  191. package/es/node_modules/element-plus/es/components/container/src/container.js +34 -0
  192. package/es/node_modules/element-plus/es/components/container/src/footer.js +33 -0
  193. package/es/node_modules/element-plus/es/components/container/src/header.js +33 -0
  194. package/es/node_modules/element-plus/es/components/container/src/main.js +24 -0
  195. package/es/node_modules/element-plus/es/components/date-picker/index.js +7 -0
  196. package/es/node_modules/element-plus/es/components/date-picker/src/date-picker.js +68 -0
  197. package/es/node_modules/element-plus/es/components/date-picker/src/props.js +12 -0
  198. package/es/node_modules/element-plus/es/components/date-picker-panel/index.js +7 -0
  199. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-basic-date-table.js +190 -0
  200. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-month-range-header.js +30 -0
  201. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-panel-date-range.js +76 -0
  202. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-range-picker.js +93 -0
  203. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-shortcut.js +24 -0
  204. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-year-range-header.js +35 -0
  205. package/es/node_modules/element-plus/es/components/date-picker-panel/src/constants.js +5 -0
  206. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-cell-render.js +31 -0
  207. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-date-table.js +116 -0
  208. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-month-table.js +168 -0
  209. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-year-table.js +159 -0
  210. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.js +611 -0
  211. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-range.js +729 -0
  212. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-month-range.js +290 -0
  213. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-year-range.js +303 -0
  214. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-panel.js +79 -0
  215. package/es/node_modules/element-plus/es/components/date-picker-panel/src/panel-utils.js +20 -0
  216. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/basic-cell.js +9 -0
  217. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/basic-date-table.js +11 -0
  218. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/basic-month-table.js +9 -0
  219. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/basic-year-table.js +9 -0
  220. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/date-picker-panel.js +61 -0
  221. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/panel-date-pick.js +19 -0
  222. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/panel-date-range.js +9 -0
  223. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/panel-month-range.js +13 -0
  224. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/panel-year-range.js +13 -0
  225. package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/shared.js +90 -0
  226. package/es/node_modules/element-plus/es/components/date-picker-panel/src/utils.js +81 -0
  227. package/es/node_modules/element-plus/es/components/dialog/index.js +7 -0
  228. package/es/node_modules/element-plus/es/components/dialog/src/constants.js +5 -0
  229. package/es/node_modules/element-plus/es/components/dialog/src/dialog-content.js +42 -0
  230. package/es/node_modules/element-plus/es/components/dialog/src/dialog-content2.js +101 -0
  231. package/es/node_modules/element-plus/es/components/dialog/src/dialog.js +77 -0
  232. package/es/node_modules/element-plus/es/components/dialog/src/dialog2.js +181 -0
  233. package/es/node_modules/element-plus/es/components/dialog/src/use-dialog.js +163 -0
  234. package/es/node_modules/element-plus/es/components/divider/index.js +7 -0
  235. package/es/node_modules/element-plus/es/components/divider/src/divider.js +20 -0
  236. package/es/node_modules/element-plus/es/components/divider/src/divider2.js +40 -0
  237. package/es/node_modules/element-plus/es/components/drawer/index.js +7 -0
  238. package/es/node_modules/element-plus/es/components/drawer/src/composables/useResizable.js +48 -0
  239. package/es/node_modules/element-plus/es/components/drawer/src/drawer.js +36 -0
  240. package/es/node_modules/element-plus/es/components/drawer/src/drawer2.js +212 -0
  241. package/es/node_modules/element-plus/es/components/dropdown/index.js +14 -0
  242. package/es/node_modules/element-plus/es/components/dropdown/src/dropdown-item-impl.js +99 -0
  243. package/es/node_modules/element-plus/es/components/dropdown/src/dropdown-item.js +87 -0
  244. package/es/node_modules/element-plus/es/components/dropdown/src/dropdown-menu.js +80 -0
  245. package/es/node_modules/element-plus/es/components/dropdown/src/dropdown.js +110 -0
  246. package/es/node_modules/element-plus/es/components/dropdown/src/dropdown2.js +242 -0
  247. package/es/node_modules/element-plus/es/components/dropdown/src/tokens.js +5 -0
  248. package/es/node_modules/element-plus/es/components/dropdown/src/useDropdown.js +15 -0
  249. package/es/node_modules/element-plus/es/components/empty/index.js +7 -0
  250. package/es/node_modules/element-plus/es/components/empty/src/empty.js +15 -0
  251. package/es/node_modules/element-plus/es/components/empty/src/empty2.js +75 -0
  252. package/es/node_modules/element-plus/es/components/empty/src/img-empty.js +132 -0
  253. package/es/node_modules/element-plus/es/components/focus-trap/src/focus-trap.js +165 -0
  254. package/es/node_modules/element-plus/es/components/focus-trap/src/tokens.js +17 -0
  255. package/es/node_modules/element-plus/es/components/focus-trap/src/utils.js +90 -0
  256. package/es/node_modules/element-plus/es/components/form/index.js +11 -0
  257. package/es/node_modules/element-plus/es/components/form/src/constants.js +5 -0
  258. package/es/node_modules/element-plus/es/components/form/src/form-item.js +243 -0
  259. package/es/node_modules/element-plus/es/components/form/src/form-item2.js +50 -0
  260. package/es/node_modules/element-plus/es/components/form/src/form-label-wrap.js +66 -0
  261. package/es/node_modules/element-plus/es/components/form/src/form.js +59 -0
  262. package/es/node_modules/element-plus/es/components/form/src/form2.js +149 -0
  263. package/es/node_modules/element-plus/es/components/form/src/hooks/use-form-common-props.js +20 -0
  264. package/es/node_modules/element-plus/es/components/form/src/hooks/use-form-item.js +51 -0
  265. package/es/node_modules/element-plus/es/components/form/src/utils.js +45 -0
  266. package/es/node_modules/element-plus/es/components/icon/index.js +7 -0
  267. package/es/node_modules/element-plus/es/components/icon/src/icon.js +12 -0
  268. package/es/node_modules/element-plus/es/components/icon/src/icon2.js +35 -0
  269. package/es/node_modules/element-plus/es/components/input/index.js +7 -0
  270. package/es/node_modules/element-plus/es/components/input/src/input.js +462 -0
  271. package/es/node_modules/element-plus/es/components/input/src/input2.js +128 -0
  272. package/es/node_modules/element-plus/es/components/input/src/utils.js +66 -0
  273. package/es/node_modules/element-plus/es/components/input-number/index.js +7 -0
  274. package/es/node_modules/element-plus/es/components/input-number/src/input-number.js +78 -0
  275. package/es/node_modules/element-plus/es/components/input-number/src/input-number2.js +272 -0
  276. package/es/node_modules/element-plus/es/components/input-tag/index.js +7 -0
  277. package/es/node_modules/element-plus/es/components/input-tag/src/composables/use-drag-tag.js +58 -0
  278. package/es/node_modules/element-plus/es/components/input-tag/src/composables/use-hovering.js +16 -0
  279. package/es/node_modules/element-plus/es/components/input-tag/src/composables/use-input-tag-dom.js +70 -0
  280. package/es/node_modules/element-plus/es/components/input-tag/src/composables/use-input-tag.js +145 -0
  281. package/es/node_modules/element-plus/es/components/input-tag/src/input-tag.js +86 -0
  282. package/es/node_modules/element-plus/es/components/input-tag/src/input-tag2.js +322 -0
  283. package/es/node_modules/element-plus/es/components/link/index.js +7 -0
  284. package/es/node_modules/element-plus/es/components/link/src/link.js +29 -0
  285. package/es/node_modules/element-plus/es/components/link/src/link2.js +72 -0
  286. package/es/node_modules/element-plus/es/components/loading/index.js +16 -0
  287. package/es/node_modules/element-plus/es/components/loading/src/directive.js +60 -0
  288. package/es/node_modules/element-plus/es/components/loading/src/loading.js +117 -0
  289. package/es/node_modules/element-plus/es/components/loading/src/service.js +67 -0
  290. package/es/node_modules/element-plus/es/components/menu/index.js +23 -0
  291. package/es/node_modules/element-plus/es/components/menu/src/menu-collapse-transition.js +40 -0
  292. package/es/node_modules/element-plus/es/components/menu/src/menu-item-group.js +6 -0
  293. package/es/node_modules/element-plus/es/components/menu/src/menu-item-group2.js +48 -0
  294. package/es/node_modules/element-plus/es/components/menu/src/menu-item.js +18 -0
  295. package/es/node_modules/element-plus/es/components/menu/src/menu-item2.js +102 -0
  296. package/es/node_modules/element-plus/es/components/menu/src/menu.js +299 -0
  297. package/es/node_modules/element-plus/es/components/menu/src/sub-menu.js +309 -0
  298. package/es/node_modules/element-plus/es/components/menu/src/tokens.js +5 -0
  299. package/es/node_modules/element-plus/es/components/menu/src/use-menu-color.js +11 -0
  300. package/es/node_modules/element-plus/es/components/menu/src/use-menu-css-var.js +19 -0
  301. package/es/node_modules/element-plus/es/components/menu/src/use-menu.js +22 -0
  302. package/es/node_modules/element-plus/es/components/menu/src/utils/menu-bar.js +15 -0
  303. package/es/node_modules/element-plus/es/components/menu/src/utils/menu-item.js +44 -0
  304. package/es/node_modules/element-plus/es/components/menu/src/utils/submenu.js +47 -0
  305. package/es/node_modules/element-plus/es/components/message/index.js +7 -0
  306. package/es/node_modules/element-plus/es/components/message/src/instance.js +18 -0
  307. package/es/node_modules/element-plus/es/components/message/src/message.js +112 -0
  308. package/es/node_modules/element-plus/es/components/message/src/message2.js +148 -0
  309. package/es/node_modules/element-plus/es/components/message/src/method.js +118 -0
  310. package/es/node_modules/element-plus/es/components/message-box/index.js +10 -0
  311. package/es/node_modules/element-plus/es/components/message-box/src/index.js +466 -0
  312. package/es/node_modules/element-plus/es/components/message-box/src/messageBox.js +93 -0
  313. package/es/node_modules/element-plus/es/components/overlay/index.js +9 -0
  314. package/es/node_modules/element-plus/es/components/overlay/src/overlay.js +70 -0
  315. package/es/node_modules/element-plus/es/components/pagination/index.js +10 -0
  316. package/es/node_modules/element-plus/es/components/pagination/src/components/jumper.js +11 -0
  317. package/es/node_modules/element-plus/es/components/pagination/src/components/jumper2.js +62 -0
  318. package/es/node_modules/element-plus/es/components/pagination/src/components/next.js +40 -0
  319. package/es/node_modules/element-plus/es/components/pagination/src/components/next2.js +22 -0
  320. package/es/node_modules/element-plus/es/components/pagination/src/components/pager.js +19 -0
  321. package/es/node_modules/element-plus/es/components/pagination/src/components/pager2.js +151 -0
  322. package/es/node_modules/element-plus/es/components/pagination/src/components/prev.js +21 -0
  323. package/es/node_modules/element-plus/es/components/pagination/src/components/prev2.js +40 -0
  324. package/es/node_modules/element-plus/es/components/pagination/src/components/sizes.js +29 -0
  325. package/es/node_modules/element-plus/es/components/pagination/src/components/sizes2.js +75 -0
  326. package/es/node_modules/element-plus/es/components/pagination/src/components/total.js +10 -0
  327. package/es/node_modules/element-plus/es/components/pagination/src/components/total2.js +24 -0
  328. package/es/node_modules/element-plus/es/components/pagination/src/constants.js +4 -0
  329. package/es/node_modules/element-plus/es/components/pagination/src/pagination.js +246 -0
  330. package/es/node_modules/element-plus/es/components/pagination/src/usePagination.js +6 -0
  331. package/es/node_modules/element-plus/es/components/popconfirm/index.js +7 -0
  332. package/es/node_modules/element-plus/es/components/popconfirm/src/popconfirm.js +145 -0
  333. package/es/node_modules/element-plus/es/components/popconfirm/src/popconfirm2.js +53 -0
  334. package/es/node_modules/element-plus/es/components/popover/index.js +11 -0
  335. package/es/node_modules/element-plus/es/components/popover/src/directive.js +17 -0
  336. package/es/node_modules/element-plus/es/components/popover/src/popover.js +70 -0
  337. package/es/node_modules/element-plus/es/components/popover/src/popover2.js +97 -0
  338. package/es/node_modules/element-plus/es/components/popper/index.js +7 -0
  339. package/es/node_modules/element-plus/es/components/popper/src/arrow.js +10 -0
  340. package/es/node_modules/element-plus/es/components/popper/src/arrow2.js +35 -0
  341. package/es/node_modules/element-plus/es/components/popper/src/composables/use-content-dom.js +40 -0
  342. package/es/node_modules/element-plus/es/components/popper/src/composables/use-content.js +63 -0
  343. package/es/node_modules/element-plus/es/components/popper/src/composables/use-focus-trap.js +29 -0
  344. package/es/node_modules/element-plus/es/components/popper/src/constants.js +5 -0
  345. package/es/node_modules/element-plus/es/components/popper/src/content.js +89 -0
  346. package/es/node_modules/element-plus/es/components/popper/src/content2.js +118 -0
  347. package/es/node_modules/element-plus/es/components/popper/src/popper.js +21 -0
  348. package/es/node_modules/element-plus/es/components/popper/src/popper2.js +24 -0
  349. package/es/node_modules/element-plus/es/components/popper/src/trigger.js +33 -0
  350. package/es/node_modules/element-plus/es/components/popper/src/trigger2.js +116 -0
  351. package/es/node_modules/element-plus/es/components/popper/src/utils.js +56 -0
  352. package/es/node_modules/element-plus/es/components/radio/index.js +14 -0
  353. package/es/node_modules/element-plus/es/components/radio/src/constants.js +4 -0
  354. package/es/node_modules/element-plus/es/components/radio/src/radio-button.js +8 -0
  355. package/es/node_modules/element-plus/es/components/radio/src/radio-button2.js +74 -0
  356. package/es/node_modules/element-plus/es/components/radio/src/radio-group.js +57 -0
  357. package/es/node_modules/element-plus/es/components/radio/src/radio-group2.js +82 -0
  358. package/es/node_modules/element-plus/es/components/radio/src/radio.js +39 -0
  359. package/es/node_modules/element-plus/es/components/radio/src/radio2.js +97 -0
  360. package/es/node_modules/element-plus/es/components/radio/src/use-radio.js +39 -0
  361. package/es/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group-impl.js +118 -0
  362. package/es/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group.js +33 -0
  363. package/es/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group2.js +34 -0
  364. package/es/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-item.js +81 -0
  365. package/es/node_modules/element-plus/es/components/roving-focus-group/src/tokens.js +5 -0
  366. package/es/node_modules/element-plus/es/components/roving-focus-group/src/utils.js +37 -0
  367. package/es/node_modules/element-plus/es/components/row/index.js +7 -0
  368. package/es/node_modules/element-plus/es/components/row/src/constants.js +4 -0
  369. package/es/node_modules/element-plus/es/components/row/src/row.js +32 -0
  370. package/es/node_modules/element-plus/es/components/row/src/row2.js +37 -0
  371. package/es/node_modules/element-plus/es/components/scrollbar/index.js +7 -0
  372. package/es/node_modules/element-plus/es/components/scrollbar/src/bar.js +14 -0
  373. package/es/node_modules/element-plus/es/components/scrollbar/src/bar2.js +51 -0
  374. package/es/node_modules/element-plus/es/components/scrollbar/src/constants.js +6 -0
  375. package/es/node_modules/element-plus/es/components/scrollbar/src/scrollbar.js +61 -0
  376. package/es/node_modules/element-plus/es/components/scrollbar/src/scrollbar2.js +168 -0
  377. package/es/node_modules/element-plus/es/components/scrollbar/src/thumb.js +14 -0
  378. package/es/node_modules/element-plus/es/components/scrollbar/src/thumb2.js +112 -0
  379. package/es/node_modules/element-plus/es/components/scrollbar/src/util.js +34 -0
  380. package/es/node_modules/element-plus/es/components/select/index.js +14 -0
  381. package/es/node_modules/element-plus/es/components/select/src/option-group.js +87 -0
  382. package/es/node_modules/element-plus/es/components/select/src/option.js +16 -0
  383. package/es/node_modules/element-plus/es/components/select/src/option2.js +82 -0
  384. package/es/node_modules/element-plus/es/components/select/src/options.js +28 -0
  385. package/es/node_modules/element-plus/es/components/select/src/select-dropdown.js +66 -0
  386. package/es/node_modules/element-plus/es/components/select/src/select.js +148 -0
  387. package/es/node_modules/element-plus/es/components/select/src/select2.js +664 -0
  388. package/es/node_modules/element-plus/es/components/select/src/token.js +5 -0
  389. package/es/node_modules/element-plus/es/components/select/src/useOption.js +68 -0
  390. package/es/node_modules/element-plus/es/components/select/src/useSelect.js +486 -0
  391. package/es/node_modules/element-plus/es/components/select-v2/src/useProps.js +30 -0
  392. package/es/node_modules/element-plus/es/components/slot/src/only-child.js +53 -0
  393. package/es/node_modules/element-plus/es/components/space/index.js +9 -0
  394. package/es/node_modules/element-plus/es/components/space/src/item.js +19 -0
  395. package/es/node_modules/element-plus/es/components/space/src/space.js +144 -0
  396. package/es/node_modules/element-plus/es/components/space/src/use-space.js +37 -0
  397. package/es/node_modules/element-plus/es/components/switch/index.js +7 -0
  398. package/es/node_modules/element-plus/es/components/switch/src/switch.js +264 -0
  399. package/es/node_modules/element-plus/es/components/switch/src/switch2.js +79 -0
  400. package/es/node_modules/element-plus/es/components/table/index.js +11 -0
  401. package/es/node_modules/element-plus/es/components/table/src/composables/use-scrollbar.js +20 -0
  402. package/es/node_modules/element-plus/es/components/table/src/config.js +204 -0
  403. package/es/node_modules/element-plus/es/components/table/src/filter-panel.js +306 -0
  404. package/es/node_modules/element-plus/es/components/table/src/h-helper.js +26 -0
  405. package/es/node_modules/element-plus/es/components/table/src/layout-observer.js +50 -0
  406. package/es/node_modules/element-plus/es/components/table/src/store/current.js +47 -0
  407. package/es/node_modules/element-plus/es/components/table/src/store/expand.js +50 -0
  408. package/es/node_modules/element-plus/es/components/table/src/store/helper.js +58 -0
  409. package/es/node_modules/element-plus/es/components/table/src/store/index.js +113 -0
  410. package/es/node_modules/element-plus/es/components/table/src/store/tree.js +151 -0
  411. package/es/node_modules/element-plus/es/components/table/src/store/watcher.js +327 -0
  412. package/es/node_modules/element-plus/es/components/table/src/table/defaults.js +90 -0
  413. package/es/node_modules/element-plus/es/components/table/src/table/key-render-helper.js +18 -0
  414. package/es/node_modules/element-plus/es/components/table/src/table/style-helper.js +173 -0
  415. package/es/node_modules/element-plus/es/components/table/src/table/utils-helper.js +35 -0
  416. package/es/node_modules/element-plus/es/components/table/src/table-body/defaults.js +25 -0
  417. package/es/node_modules/element-plus/es/components/table/src/table-body/events-helper.js +125 -0
  418. package/es/node_modules/element-plus/es/components/table/src/table-body/index.js +67 -0
  419. package/es/node_modules/element-plus/es/components/table/src/table-body/render-helper.js +178 -0
  420. package/es/node_modules/element-plus/es/components/table/src/table-body/styles-helper.js +88 -0
  421. package/es/node_modules/element-plus/es/components/table/src/table-body/td-wrapper.js +28 -0
  422. package/es/node_modules/element-plus/es/components/table/src/table-column/defaults.js +62 -0
  423. package/es/node_modules/element-plus/es/components/table/src/table-column/index.js +125 -0
  424. package/es/node_modules/element-plus/es/components/table/src/table-column/render-helper.js +106 -0
  425. package/es/node_modules/element-plus/es/components/table/src/table-column/watcher-helper.js +70 -0
  426. package/es/node_modules/element-plus/es/components/table/src/table-footer/index.js +99 -0
  427. package/es/node_modules/element-plus/es/components/table/src/table-footer/mapState-helper.js +34 -0
  428. package/es/node_modules/element-plus/es/components/table/src/table-footer/style-helper.js +30 -0
  429. package/es/node_modules/element-plus/es/components/table/src/table-header/event-helper.js +114 -0
  430. package/es/node_modules/element-plus/es/components/table/src/table-header/index.js +244 -0
  431. package/es/node_modules/element-plus/es/components/table/src/table-header/style.helper.js +64 -0
  432. package/es/node_modules/element-plus/es/components/table/src/table-header/utils-helper.js +45 -0
  433. package/es/node_modules/element-plus/es/components/table/src/table-layout.js +146 -0
  434. package/es/node_modules/element-plus/es/components/table/src/table.js +423 -0
  435. package/es/node_modules/element-plus/es/components/table/src/tokens.js +4 -0
  436. package/es/node_modules/element-plus/es/components/table/src/util.js +312 -0
  437. package/es/node_modules/element-plus/es/components/tabs/index.js +14 -0
  438. package/es/node_modules/element-plus/es/components/tabs/src/constants.js +4 -0
  439. package/es/node_modules/element-plus/es/components/tabs/src/tab-bar.js +15 -0
  440. package/es/node_modules/element-plus/es/components/tabs/src/tab-bar2.js +75 -0
  441. package/es/node_modules/element-plus/es/components/tabs/src/tab-nav.js +215 -0
  442. package/es/node_modules/element-plus/es/components/tabs/src/tab-pane.js +19 -0
  443. package/es/node_modules/element-plus/es/components/tabs/src/tab-pane2.js +69 -0
  444. package/es/node_modules/element-plus/es/components/tabs/src/tabs.js +151 -0
  445. package/es/node_modules/element-plus/es/components/tag/index.js +7 -0
  446. package/es/node_modules/element-plus/es/components/tag/src/tag.js +119 -0
  447. package/es/node_modules/element-plus/es/components/tag/src/tag2.js +30 -0
  448. package/es/node_modules/element-plus/es/components/teleport/index.js +7 -0
  449. package/es/node_modules/element-plus/es/components/teleport/src/teleport.js +11 -0
  450. package/es/node_modules/element-plus/es/components/teleport/src/teleport2.js +19 -0
  451. package/es/node_modules/element-plus/es/components/text/index.js +7 -0
  452. package/es/node_modules/element-plus/es/components/text/src/text.js +25 -0
  453. package/es/node_modules/element-plus/es/components/text/src/text2.js +49 -0
  454. package/es/node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.js +112 -0
  455. package/es/node_modules/element-plus/es/components/time-picker/src/common/picker.js +410 -0
  456. package/es/node_modules/element-plus/es/components/time-picker/src/common/props.js +139 -0
  457. package/es/node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.js +61 -0
  458. package/es/node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.js +60 -0
  459. package/es/node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.js +40 -0
  460. package/es/node_modules/element-plus/es/components/time-picker/src/constants.js +23 -0
  461. package/es/node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.js +25 -0
  462. package/es/node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.js +12 -0
  463. package/es/node_modules/element-plus/es/components/time-picker/src/props/shared.js +26 -0
  464. package/es/node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.js +312 -0
  465. package/es/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.js +135 -0
  466. package/es/node_modules/element-plus/es/components/time-picker/src/utils.js +37 -0
  467. package/es/node_modules/element-plus/es/components/tooltip/index.js +7 -0
  468. package/es/node_modules/element-plus/es/components/tooltip/src/constants.js +4 -0
  469. package/es/node_modules/element-plus/es/components/tooltip/src/content.js +32 -0
  470. package/es/node_modules/element-plus/es/components/tooltip/src/content2.js +156 -0
  471. package/es/node_modules/element-plus/es/components/tooltip/src/tooltip.js +36 -0
  472. package/es/node_modules/element-plus/es/components/tooltip/src/tooltip2.js +156 -0
  473. package/es/node_modules/element-plus/es/components/tooltip/src/trigger.js +19 -0
  474. package/es/node_modules/element-plus/es/components/tooltip/src/trigger2.js +80 -0
  475. package/es/node_modules/element-plus/es/components/tooltip/src/utils.js +9 -0
  476. package/es/node_modules/element-plus/es/components/tree/index.js +7 -0
  477. package/es/node_modules/element-plus/es/components/tree/src/model/node.js +266 -0
  478. package/es/node_modules/element-plus/es/components/tree/src/model/tree-store.js +223 -0
  479. package/es/node_modules/element-plus/es/components/tree/src/model/useDragNode.js +90 -0
  480. package/es/node_modules/element-plus/es/components/tree/src/model/useKeydown.js +85 -0
  481. package/es/node_modules/element-plus/es/components/tree/src/model/useNodeExpandEventBroadcast.js +27 -0
  482. package/es/node_modules/element-plus/es/components/tree/src/model/util.js +19 -0
  483. package/es/node_modules/element-plus/es/components/tree/src/tokens.js +6 -0
  484. package/es/node_modules/element-plus/es/components/tree/src/tree-node-content.js +34 -0
  485. package/es/node_modules/element-plus/es/components/tree/src/tree-node.js +269 -0
  486. package/es/node_modules/element-plus/es/components/tree/src/tree.js +95 -0
  487. package/es/node_modules/element-plus/es/components/tree/src/tree2.js +250 -0
  488. package/es/node_modules/element-plus/es/components/virtual-list/src/defaults.js +4 -0
  489. package/es/node_modules/element-plus/es/components/virtual-list/src/hooks/use-wheel.js +22 -0
  490. package/es/node_modules/element-plus/es/constants/aria.js +20 -0
  491. package/es/node_modules/element-plus/es/constants/date.js +17 -0
  492. package/es/node_modules/element-plus/es/constants/event.js +6 -0
  493. package/es/node_modules/element-plus/es/constants/form.js +5 -0
  494. package/es/node_modules/element-plus/es/constants/size.js +4 -0
  495. package/es/node_modules/element-plus/es/directives/click-outside/index.js +46 -0
  496. package/es/node_modules/element-plus/es/directives/mousewheel/index.js +28 -0
  497. package/es/node_modules/element-plus/es/directives/repeat-click/index.js +30 -0
  498. package/es/node_modules/element-plus/es/directives/trap-focus/index.js +37 -0
  499. package/es/node_modules/element-plus/es/hooks/use-aria/index.js +14 -0
  500. package/es/node_modules/element-plus/es/hooks/use-attrs/index.js +22 -0
  501. package/es/node_modules/element-plus/es/hooks/use-calc-input-width/index.js +19 -0
  502. package/es/node_modules/element-plus/es/hooks/use-composition/index.js +29 -0
  503. package/es/node_modules/element-plus/es/hooks/use-cursor/index.js +39 -0
  504. package/es/node_modules/element-plus/es/hooks/use-delayed-toggle/index.js +49 -0
  505. package/es/node_modules/element-plus/es/hooks/use-deprecated/index.js +21 -0
  506. package/es/node_modules/element-plus/es/hooks/use-draggable/index.js +47 -0
  507. package/es/node_modules/element-plus/es/hooks/use-empty-values/index.js +38 -0
  508. package/es/node_modules/element-plus/es/hooks/use-escape-keydown/index.js +21 -0
  509. package/es/node_modules/element-plus/es/hooks/use-focus-controller/index.js +38 -0
  510. package/es/node_modules/element-plus/es/hooks/use-forward-ref/index.js +23 -0
  511. package/es/node_modules/element-plus/es/hooks/use-id/index.js +27 -0
  512. package/es/node_modules/element-plus/es/hooks/use-locale/index.js +27 -0
  513. package/es/node_modules/element-plus/es/hooks/use-lockscreen/index.js +30 -0
  514. package/es/node_modules/element-plus/es/hooks/use-model-toggle/index.js +69 -0
  515. package/es/node_modules/element-plus/es/hooks/use-namespace/index.js +44 -0
  516. package/es/node_modules/element-plus/es/hooks/use-ordered-children/index.js +45 -0
  517. package/es/node_modules/element-plus/es/hooks/use-popper/index.js +96 -0
  518. package/es/node_modules/element-plus/es/hooks/use-popper-container/index.js +26 -0
  519. package/es/node_modules/element-plus/es/hooks/use-prop/index.js +11 -0
  520. package/es/node_modules/element-plus/es/hooks/use-same-target/index.js +16 -0
  521. package/es/node_modules/element-plus/es/hooks/use-size/index.js +16 -0
  522. package/es/node_modules/element-plus/es/hooks/use-timeout/index.js +14 -0
  523. package/es/node_modules/element-plus/es/hooks/use-z-index/index.js +27 -0
  524. package/es/node_modules/element-plus/es/locale/lang/en.js +197 -0
  525. package/es/node_modules/element-plus/es/utils/arrays.js +6 -0
  526. package/es/node_modules/element-plus/es/utils/browser.js +9 -0
  527. package/es/node_modules/element-plus/es/utils/dom/aria.js +37 -0
  528. package/es/node_modules/element-plus/es/utils/dom/event.js +35 -0
  529. package/es/node_modules/element-plus/es/utils/dom/scroll.js +35 -0
  530. package/es/node_modules/element-plus/es/utils/dom/style.js +59 -0
  531. package/es/node_modules/element-plus/es/utils/error.js +19 -0
  532. package/es/node_modules/element-plus/es/utils/i18n.js +4 -0
  533. package/es/node_modules/element-plus/es/utils/objects.js +15 -0
  534. package/es/node_modules/element-plus/es/utils/raf.js +6 -0
  535. package/es/node_modules/element-plus/es/utils/strings.js +9 -0
  536. package/es/node_modules/element-plus/es/utils/types.js +20 -0
  537. package/es/node_modules/element-plus/es/utils/typescript.js +4 -0
  538. package/es/node_modules/element-plus/es/utils/vue/icon.js +32 -0
  539. package/es/node_modules/element-plus/es/utils/vue/install.js +20 -0
  540. package/es/node_modules/element-plus/es/utils/vue/props/runtime.js +37 -0
  541. package/es/node_modules/element-plus/es/utils/vue/refs.js +8 -0
  542. package/es/node_modules/element-plus/es/utils/vue/validator.js +5 -0
  543. package/es/node_modules/element-plus/es/utils/vue/vnode.js +26 -0
  544. package/es/node_modules/element-plus/theme-chalk/base.css.js +4 -0
  545. package/es/node_modules/element-plus/theme-chalk/el-alert.css.js +4 -0
  546. package/es/node_modules/element-plus/theme-chalk/el-aside.css.js +4 -0
  547. package/es/node_modules/element-plus/theme-chalk/el-badge.css.js +4 -0
  548. package/es/node_modules/element-plus/theme-chalk/el-button-group.css.js +4 -0
  549. package/es/node_modules/element-plus/theme-chalk/el-button.css.js +4 -0
  550. package/es/node_modules/element-plus/theme-chalk/el-card.css.js +4 -0
  551. package/es/node_modules/element-plus/theme-chalk/el-checkbox-group.css.js +4 -0
  552. package/es/node_modules/element-plus/theme-chalk/el-checkbox.css.js +4 -0
  553. package/es/node_modules/element-plus/theme-chalk/el-col.css.js +4 -0
  554. package/es/node_modules/element-plus/theme-chalk/el-collapse-item.css.js +4 -0
  555. package/es/node_modules/element-plus/theme-chalk/el-collapse.css.js +4 -0
  556. package/es/node_modules/element-plus/theme-chalk/el-config-provider.css.js +4 -0
  557. package/es/node_modules/element-plus/theme-chalk/el-container.css.js +4 -0
  558. package/es/node_modules/element-plus/theme-chalk/el-date-picker-panel.css.js +4 -0
  559. package/es/node_modules/element-plus/theme-chalk/el-date-picker.css.js +4 -0
  560. package/es/node_modules/element-plus/theme-chalk/el-dialog.css.js +4 -0
  561. package/es/node_modules/element-plus/theme-chalk/el-divider.css.js +4 -0
  562. package/es/node_modules/element-plus/theme-chalk/el-drawer.css.js +4 -0
  563. package/es/node_modules/element-plus/theme-chalk/el-dropdown-item.css.js +4 -0
  564. package/es/node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js +4 -0
  565. package/es/node_modules/element-plus/theme-chalk/el-dropdown.css.js +4 -0
  566. package/es/node_modules/element-plus/theme-chalk/el-empty.css.js +4 -0
  567. package/es/node_modules/element-plus/theme-chalk/el-footer.css.js +4 -0
  568. package/es/node_modules/element-plus/theme-chalk/el-form-item.css.js +4 -0
  569. package/es/node_modules/element-plus/theme-chalk/el-form.css.js +4 -0
  570. package/es/node_modules/element-plus/theme-chalk/el-header.css.js +4 -0
  571. package/es/node_modules/element-plus/theme-chalk/el-input-number.css.js +4 -0
  572. package/es/node_modules/element-plus/theme-chalk/el-input-tag.css.js +4 -0
  573. package/es/node_modules/element-plus/theme-chalk/el-input.css.js +4 -0
  574. package/es/node_modules/element-plus/theme-chalk/el-link.css.js +4 -0
  575. package/es/node_modules/element-plus/theme-chalk/el-loading.css.js +4 -0
  576. package/es/node_modules/element-plus/theme-chalk/el-main.css.js +4 -0
  577. package/es/node_modules/element-plus/theme-chalk/el-menu-item.css.js +4 -0
  578. package/es/node_modules/element-plus/theme-chalk/el-menu.css.js +4 -0
  579. package/es/node_modules/element-plus/theme-chalk/el-message-box.css.js +4 -0
  580. package/es/node_modules/element-plus/theme-chalk/el-message.css.js +4 -0
  581. package/es/node_modules/element-plus/theme-chalk/el-option-group.css.js +4 -0
  582. package/es/node_modules/element-plus/theme-chalk/el-option.css.js +4 -0
  583. package/es/node_modules/element-plus/theme-chalk/el-overlay.css.js +4 -0
  584. package/es/node_modules/element-plus/theme-chalk/el-pagination.css.js +4 -0
  585. package/es/node_modules/element-plus/theme-chalk/el-popconfirm.css.js +4 -0
  586. package/es/node_modules/element-plus/theme-chalk/el-popover.css.js +4 -0
  587. package/es/node_modules/element-plus/theme-chalk/el-popper.css.js +4 -0
  588. package/es/node_modules/element-plus/theme-chalk/el-radio-button.css.js +4 -0
  589. package/es/node_modules/element-plus/theme-chalk/el-radio-group.css.js +4 -0
  590. package/es/node_modules/element-plus/theme-chalk/el-radio.css.js +4 -0
  591. package/es/node_modules/element-plus/theme-chalk/el-row.css.js +4 -0
  592. package/es/node_modules/element-plus/theme-chalk/el-scrollbar.css.js +4 -0
  593. package/es/node_modules/element-plus/theme-chalk/el-select.css.js +4 -0
  594. package/es/node_modules/element-plus/theme-chalk/el-space.css.js +4 -0
  595. package/es/node_modules/element-plus/theme-chalk/el-sub-menu.css.js +4 -0
  596. package/es/node_modules/element-plus/theme-chalk/el-switch.css.js +4 -0
  597. package/es/node_modules/element-plus/theme-chalk/el-tab-pane.css.js +4 -0
  598. package/es/node_modules/element-plus/theme-chalk/el-table-column.css.js +4 -0
  599. package/es/node_modules/element-plus/theme-chalk/el-table.css.js +4 -0
  600. package/es/node_modules/element-plus/theme-chalk/el-tabs.css.js +4 -0
  601. package/es/node_modules/element-plus/theme-chalk/el-tag.css.js +4 -0
  602. package/es/node_modules/element-plus/theme-chalk/el-text.css.js +4 -0
  603. package/es/node_modules/element-plus/theme-chalk/el-tooltip.css.js +4 -0
  604. package/es/node_modules/element-plus/theme-chalk/el-tree.css.js +4 -0
  605. package/es/node_modules/file-saver/dist/FileSaver.min.js +73 -0
  606. package/es/node_modules/grid-layout-plus/es/components/grid-item.vue.js +358 -0
  607. package/es/node_modules/grid-layout-plus/es/components/grid-layout.vue.js +268 -0
  608. package/es/node_modules/grid-layout-plus/es/helpers/common.js +202 -0
  609. package/es/node_modules/grid-layout-plus/es/helpers/dom.js +10 -0
  610. package/es/node_modules/grid-layout-plus/es/helpers/draggable.js +33 -0
  611. package/es/node_modules/grid-layout-plus/es/helpers/responsive.js +40 -0
  612. package/es/node_modules/grid-layout-plus/es/index.js +13 -0
  613. package/es/node_modules/interactjs/dist/interact.min.js +2444 -0
  614. package/es/node_modules/jstat/dist/jstat.js +2295 -0
  615. package/es/node_modules/lodash-es/_DataView.js +7 -0
  616. package/es/node_modules/lodash-es/_Hash.js +20 -0
  617. package/es/node_modules/lodash-es/_ListCache.js +20 -0
  618. package/es/node_modules/lodash-es/_Map.js +7 -0
  619. package/es/node_modules/lodash-es/_MapCache.js +20 -0
  620. package/es/node_modules/lodash-es/_Promise.js +7 -0
  621. package/es/node_modules/lodash-es/_Set.js +7 -0
  622. package/es/node_modules/lodash-es/_SetCache.js +13 -0
  623. package/es/node_modules/lodash-es/_Stack.js +18 -0
  624. package/es/node_modules/lodash-es/_Symbol.js +6 -0
  625. package/es/node_modules/lodash-es/_Uint8Array.js +6 -0
  626. package/es/node_modules/lodash-es/_WeakMap.js +7 -0
  627. package/es/node_modules/lodash-es/_apply.js +16 -0
  628. package/es/node_modules/lodash-es/_arrayEach.js +8 -0
  629. package/es/node_modules/lodash-es/_arrayFilter.js +10 -0
  630. package/es/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
  631. package/es/node_modules/lodash-es/_arrayMap.js +8 -0
  632. package/es/node_modules/lodash-es/_arrayPush.js +8 -0
  633. package/es/node_modules/lodash-es/_arraySome.js +9 -0
  634. package/es/node_modules/lodash-es/_assignMergeValue.js +8 -0
  635. package/es/node_modules/lodash-es/_assignValue.js +10 -0
  636. package/es/node_modules/lodash-es/_assocIndexOf.js +10 -0
  637. package/es/node_modules/lodash-es/_baseAssign.js +8 -0
  638. package/es/node_modules/lodash-es/_baseAssignIn.js +8 -0
  639. package/es/node_modules/lodash-es/_baseAssignValue.js +12 -0
  640. package/es/node_modules/lodash-es/_baseClamp.js +6 -0
  641. package/es/node_modules/lodash-es/_baseClone.js +65 -0
  642. package/es/node_modules/lodash-es/_baseCreate.js +18 -0
  643. package/es/node_modules/lodash-es/_baseEach.js +7 -0
  644. package/es/node_modules/lodash-es/_baseFindIndex.js +9 -0
  645. package/es/node_modules/lodash-es/_baseFlatten.js +13 -0
  646. package/es/node_modules/lodash-es/_baseFor.js +6 -0
  647. package/es/node_modules/lodash-es/_baseForOwn.js +8 -0
  648. package/es/node_modules/lodash-es/_baseGet.js +11 -0
  649. package/es/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  650. package/es/node_modules/lodash-es/_baseGetTag.js +10 -0
  651. package/es/node_modules/lodash-es/_baseHas.js +7 -0
  652. package/es/node_modules/lodash-es/_baseHasIn.js +6 -0
  653. package/es/node_modules/lodash-es/_baseIsArguments.js +9 -0
  654. package/es/node_modules/lodash-es/_baseIsEqual.js +8 -0
  655. package/es/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
  656. package/es/node_modules/lodash-es/_baseIsMap.js +9 -0
  657. package/es/node_modules/lodash-es/_baseIsMatch.js +31 -0
  658. package/es/node_modules/lodash-es/_baseIsNative.js +16 -0
  659. package/es/node_modules/lodash-es/_baseIsSet.js +9 -0
  660. package/es/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
  661. package/es/node_modules/lodash-es/_baseIteratee.js +11 -0
  662. package/es/node_modules/lodash-es/_baseKeys.js +14 -0
  663. package/es/node_modules/lodash-es/_baseKeysIn.js +15 -0
  664. package/es/node_modules/lodash-es/_baseMap.js +11 -0
  665. package/es/node_modules/lodash-es/_baseMatches.js +12 -0
  666. package/es/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  667. package/es/node_modules/lodash-es/_baseMerge.js +20 -0
  668. package/es/node_modules/lodash-es/_baseMergeDeep.js +31 -0
  669. package/es/node_modules/lodash-es/_basePick.js +10 -0
  670. package/es/node_modules/lodash-es/_basePickBy.js +13 -0
  671. package/es/node_modules/lodash-es/_baseProperty.js +8 -0
  672. package/es/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  673. package/es/node_modules/lodash-es/_baseRest.js +9 -0
  674. package/es/node_modules/lodash-es/_baseSet.js +24 -0
  675. package/es/node_modules/lodash-es/_baseSetToString.js +15 -0
  676. package/es/node_modules/lodash-es/_baseSlice.js +10 -0
  677. package/es/node_modules/lodash-es/_baseTimes.js +8 -0
  678. package/es/node_modules/lodash-es/_baseToString.js +18 -0
  679. package/es/node_modules/lodash-es/_baseTrim.js +8 -0
  680. package/es/node_modules/lodash-es/_baseUnary.js +8 -0
  681. package/es/node_modules/lodash-es/_baseUnset.js +28 -0
  682. package/es/node_modules/lodash-es/_cacheHas.js +6 -0
  683. package/es/node_modules/lodash-es/_castPath.js +10 -0
  684. package/es/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  685. package/es/node_modules/lodash-es/_cloneBuffer.js +11 -0
  686. package/es/node_modules/lodash-es/_cloneDataView.js +8 -0
  687. package/es/node_modules/lodash-es/_cloneRegExp.js +8 -0
  688. package/es/node_modules/lodash-es/_cloneSymbol.js +8 -0
  689. package/es/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  690. package/es/node_modules/lodash-es/_copyArray.js +9 -0
  691. package/es/node_modules/lodash-es/_copyObject.js +14 -0
  692. package/es/node_modules/lodash-es/_copySymbols.js +8 -0
  693. package/es/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  694. package/es/node_modules/lodash-es/_coreJsData.js +6 -0
  695. package/es/node_modules/lodash-es/_createAssigner.js +15 -0
  696. package/es/node_modules/lodash-es/_createBaseEach.js +15 -0
  697. package/es/node_modules/lodash-es/_createBaseFor.js +13 -0
  698. package/es/node_modules/lodash-es/_customOmitClone.js +7 -0
  699. package/es/node_modules/lodash-es/_defineProperty.js +12 -0
  700. package/es/node_modules/lodash-es/_equalArrays.js +40 -0
  701. package/es/node_modules/lodash-es/_equalByTag.js +45 -0
  702. package/es/node_modules/lodash-es/_equalObjects.js +36 -0
  703. package/es/node_modules/lodash-es/_flatRest.js +9 -0
  704. package/es/node_modules/lodash-es/_freeGlobal.js +5 -0
  705. package/es/node_modules/lodash-es/_getAllKeys.js +9 -0
  706. package/es/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  707. package/es/node_modules/lodash-es/_getMapData.js +8 -0
  708. package/es/node_modules/lodash-es/_getMatchData.js +12 -0
  709. package/es/node_modules/lodash-es/_getNative.js +9 -0
  710. package/es/node_modules/lodash-es/_getPrototype.js +6 -0
  711. package/es/node_modules/lodash-es/_getRawTag.js +15 -0
  712. package/es/node_modules/lodash-es/_getSymbols.js +11 -0
  713. package/es/node_modules/lodash-es/_getSymbolsIn.js +13 -0
  714. package/es/node_modules/lodash-es/_getTag.js +29 -0
  715. package/es/node_modules/lodash-es/_getValue.js +6 -0
  716. package/es/node_modules/lodash-es/_hasPath.js +19 -0
  717. package/es/node_modules/lodash-es/_hashClear.js +7 -0
  718. package/es/node_modules/lodash-es/_hashDelete.js +7 -0
  719. package/es/node_modules/lodash-es/_hashGet.js +13 -0
  720. package/es/node_modules/lodash-es/_hashHas.js +9 -0
  721. package/es/node_modules/lodash-es/_hashSet.js +9 -0
  722. package/es/node_modules/lodash-es/_initCloneArray.js +8 -0
  723. package/es/node_modules/lodash-es/_initCloneByTag.js +42 -0
  724. package/es/node_modules/lodash-es/_initCloneObject.js +9 -0
  725. package/es/node_modules/lodash-es/_isFlattenable.js +10 -0
  726. package/es/node_modules/lodash-es/_isIndex.js +8 -0
  727. package/es/node_modules/lodash-es/_isIterateeCall.js +13 -0
  728. package/es/node_modules/lodash-es/_isKey.js +12 -0
  729. package/es/node_modules/lodash-es/_isKeyable.js +7 -0
  730. package/es/node_modules/lodash-es/_isMasked.js +11 -0
  731. package/es/node_modules/lodash-es/_isPrototype.js +8 -0
  732. package/es/node_modules/lodash-es/_isStrictComparable.js +7 -0
  733. package/es/node_modules/lodash-es/_listCacheClear.js +6 -0
  734. package/es/node_modules/lodash-es/_listCacheDelete.js +12 -0
  735. package/es/node_modules/lodash-es/_listCacheGet.js +8 -0
  736. package/es/node_modules/lodash-es/_listCacheHas.js +7 -0
  737. package/es/node_modules/lodash-es/_listCacheSet.js +8 -0
  738. package/es/node_modules/lodash-es/_mapCacheClear.js +13 -0
  739. package/es/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  740. package/es/node_modules/lodash-es/_mapCacheGet.js +7 -0
  741. package/es/node_modules/lodash-es/_mapCacheHas.js +7 -0
  742. package/es/node_modules/lodash-es/_mapCacheSet.js +8 -0
  743. package/es/node_modules/lodash-es/_mapToArray.js +9 -0
  744. package/es/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  745. package/es/node_modules/lodash-es/_memoizeCapped.js +11 -0
  746. package/es/node_modules/lodash-es/_nativeCreate.js +6 -0
  747. package/es/node_modules/lodash-es/_nativeKeys.js +6 -0
  748. package/es/node_modules/lodash-es/_nativeKeysIn.js +10 -0
  749. package/es/node_modules/lodash-es/_nodeUtil.js +12 -0
  750. package/es/node_modules/lodash-es/_objectToString.js +7 -0
  751. package/es/node_modules/lodash-es/_overArg.js +8 -0
  752. package/es/node_modules/lodash-es/_overRest.js +15 -0
  753. package/es/node_modules/lodash-es/_parent.js +8 -0
  754. package/es/node_modules/lodash-es/_root.js +6 -0
  755. package/es/node_modules/lodash-es/_safeGet.js +7 -0
  756. package/es/node_modules/lodash-es/_setCacheAdd.js +7 -0
  757. package/es/node_modules/lodash-es/_setCacheHas.js +6 -0
  758. package/es/node_modules/lodash-es/_setToArray.js +9 -0
  759. package/es/node_modules/lodash-es/_setToString.js +7 -0
  760. package/es/node_modules/lodash-es/_shortOut.js +16 -0
  761. package/es/node_modules/lodash-es/_stackClear.js +7 -0
  762. package/es/node_modules/lodash-es/_stackDelete.js +7 -0
  763. package/es/node_modules/lodash-es/_stackGet.js +6 -0
  764. package/es/node_modules/lodash-es/_stackHas.js +6 -0
  765. package/es/node_modules/lodash-es/_stackSet.js +17 -0
  766. package/es/node_modules/lodash-es/_stringToPath.js +11 -0
  767. package/es/node_modules/lodash-es/_toKey.js +11 -0
  768. package/es/node_modules/lodash-es/_toSource.js +17 -0
  769. package/es/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  770. package/es/node_modules/lodash-es/castArray.js +10 -0
  771. package/es/node_modules/lodash-es/clamp.js +8 -0
  772. package/es/node_modules/lodash-es/clone.js +8 -0
  773. package/es/node_modules/lodash-es/cloneDeep.js +8 -0
  774. package/es/node_modules/lodash-es/constant.js +8 -0
  775. package/es/node_modules/lodash-es/debounce.js +54 -0
  776. package/es/node_modules/lodash-es/eq.js +6 -0
  777. package/es/node_modules/lodash-es/findLastIndex.js +14 -0
  778. package/es/node_modules/lodash-es/flatMap.js +8 -0
  779. package/es/node_modules/lodash-es/flatten.js +8 -0
  780. package/es/node_modules/lodash-es/fromPairs.js +10 -0
  781. package/es/node_modules/lodash-es/get.js +8 -0
  782. package/es/node_modules/lodash-es/has.js +8 -0
  783. package/es/node_modules/lodash-es/hasIn.js +8 -0
  784. package/es/node_modules/lodash-es/identity.js +6 -0
  785. package/es/node_modules/lodash-es/isArguments.js +11 -0
  786. package/es/node_modules/lodash-es/isArray.js +5 -0
  787. package/es/node_modules/lodash-es/isArrayLike.js +8 -0
  788. package/es/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  789. package/es/node_modules/lodash-es/isBuffer.js +7 -0
  790. package/es/node_modules/lodash-es/isEqual.js +7 -0
  791. package/es/node_modules/lodash-es/isFunction.js +12 -0
  792. package/es/node_modules/lodash-es/isLength.js +7 -0
  793. package/es/node_modules/lodash-es/isMap.js +8 -0
  794. package/es/node_modules/lodash-es/isNil.js +6 -0
  795. package/es/node_modules/lodash-es/isNull.js +6 -0
  796. package/es/node_modules/lodash-es/isObject.js +7 -0
  797. package/es/node_modules/lodash-es/isObjectLike.js +6 -0
  798. package/es/node_modules/lodash-es/isPlainObject.js +16 -0
  799. package/es/node_modules/lodash-es/isSet.js +8 -0
  800. package/es/node_modules/lodash-es/isSymbol.js +9 -0
  801. package/es/node_modules/lodash-es/isTypedArray.js +8 -0
  802. package/es/node_modules/lodash-es/isUndefined.js +6 -0
  803. package/es/node_modules/lodash-es/keys.js +9 -0
  804. package/es/node_modules/lodash-es/keysIn.js +9 -0
  805. package/es/node_modules/lodash-es/last.js +7 -0
  806. package/es/node_modules/lodash-es/map.js +11 -0
  807. package/es/node_modules/lodash-es/memoize.js +18 -0
  808. package/es/node_modules/lodash-es/merge.js +9 -0
  809. package/es/node_modules/lodash-es/now.js +8 -0
  810. package/es/node_modules/lodash-es/omit.js +24 -0
  811. package/es/node_modules/lodash-es/pick.js +9 -0
  812. package/es/node_modules/lodash-es/property.js +10 -0
  813. package/es/node_modules/lodash-es/set.js +7 -0
  814. package/es/node_modules/lodash-es/stubArray.js +6 -0
  815. package/es/node_modules/lodash-es/stubFalse.js +6 -0
  816. package/es/node_modules/lodash-es/toFinite.js +14 -0
  817. package/es/node_modules/lodash-es/toInteger.js +8 -0
  818. package/es/node_modules/lodash-es/toNumber.js +22 -0
  819. package/es/node_modules/lodash-es/toPlainObject.js +8 -0
  820. package/es/node_modules/lodash-es/toString.js +7 -0
  821. package/es/node_modules/mitt/dist/mitt.js +19 -0
  822. package/es/node_modules/normalize-wheel-es/dist/index.js +92 -0
  823. package/es/node_modules/style-mod/src/style-mod.js +116 -0
  824. package/es/node_modules/uuid/dist/esm-browser/native.js +6 -0
  825. package/es/node_modules/uuid/dist/esm-browser/rng.js +10 -0
  826. package/es/node_modules/uuid/dist/esm-browser/stringify.js +9 -0
  827. package/es/node_modules/uuid/dist/esm-browser/v4.js +19 -0
  828. package/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +140 -0
  829. package/es/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js +1597 -0
  830. package/es/node_modules/vue-json-viewer/vue-json-viewer.js +727 -0
  831. package/es/node_modules/vxe-table/lib/style.css.js +4 -0
  832. package/es/node_modules/w3c-keyname/index.js +96 -0
  833. package/es/src/api/index.js +12 -0
  834. package/es/src/axios/config.js +127 -0
  835. package/es/src/axios/crypto.js +29 -0
  836. package/es/src/axios/index.js +35 -0
  837. package/es/src/axios/util.js +68 -0
  838. package/es/src/components/ConditionConfigButton.vue.js +4 -0
  839. package/es/src/components/ConditionConfigButton.vue2.js +91 -0
  840. package/es/src/components/DataSourceSelect.vue.js +77 -0
  841. package/es/src/components/EventConfigButton.vue.js +79 -0
  842. package/es/src/components/EventConfigButton.vue2.js +4 -0
  843. package/es/src/components/FieldMapping.vue.js +4 -0
  844. package/es/src/components/FieldMapping.vue2.js +164 -0
  845. package/es/src/components/FilterConfigDisplay.vue.js +82 -0
  846. package/es/src/components/FilterConfigDisplay.vue2.js +4 -0
  847. package/es/src/components/FormulaEditorInput.vue.js +128 -0
  848. package/es/src/components/JsonDataDrawer.vue.js +81 -0
  849. package/es/src/components/JsonDataDrawer.vue2.js +4 -0
  850. package/es/src/components/OptionConfig.vue.js +238 -0
  851. package/es/src/components/OptionConfig.vue2.js +4 -0
  852. package/es/src/components/ParamsConfig.vue.js +4 -0
  853. package/es/src/components/ParamsConfig.vue2.js +117 -0
  854. package/es/src/components/TemplateSelector.vue.js +216 -0
  855. package/es/src/components/TemplateSelector.vue2.js +4 -0
  856. package/es/src/components/ValueSelector.vue.js +4 -0
  857. package/es/src/components/ValueSelector.vue2.js +142 -0
  858. package/es/src/components/ValueSelectorPopover.vue.js +4 -0
  859. package/es/src/components/ValueSelectorPopover.vue2.js +263 -0
  860. package/es/src/components/useJsonDataDrawer.js +15 -0
  861. package/es/src/index.js +11 -0
  862. package/es/src/layout/aside/index.vue.js +175 -0
  863. package/es/src/layout/aside/index.vue2.js +4 -0
  864. package/es/src/layout/header/index.vue.js +207 -0
  865. package/es/src/layout/header/index.vue2.js +4 -0
  866. package/es/src/layout/index.vue.js +97 -0
  867. package/es/src/layout/index.vue2.js +4 -0
  868. package/es/src/layout/property/index.vue.js +35 -0
  869. package/es/src/layout/property/index.vue2.js +4 -0
  870. package/es/src/packages/advancedFilter/AdvancedFilter.vue.js +4 -0
  871. package/es/src/packages/advancedFilter/AdvancedFilter.vue2.js +321 -0
  872. package/es/src/packages/advancedFilter/Operator.vue.js +4 -0
  873. package/es/src/packages/advancedFilter/Operator.vue2.js +79 -0
  874. package/es/src/packages/advancedFilter/Trigger.vue.js +4 -0
  875. package/es/src/packages/advancedFilter/Trigger.vue2.js +84 -0
  876. package/es/src/packages/advancedFilter/ValueInput.vue.js +4 -0
  877. package/es/src/packages/advancedFilter/ValueInput.vue2.js +356 -0
  878. package/es/src/packages/advancedFilter/dialog.vue.js +89 -0
  879. package/es/src/packages/advancedFilter/dialog.vue2.js +4 -0
  880. package/es/src/packages/advancedFilter/index.vue.js +58 -0
  881. package/es/src/packages/advancedFilter/useAdvancedFilterDialog.js +15 -0
  882. package/es/src/packages/dataLinkage/dialog.vue.js +77 -0
  883. package/es/src/packages/dataLinkage/dialog.vue2.js +4 -0
  884. package/es/src/packages/dataLinkage/index.vue.js +442 -0
  885. package/es/src/packages/dataLinkage/index.vue2.js +4 -0
  886. package/es/src/packages/dataLinkage/useDataLinkageDialog.js +15 -0
  887. package/es/src/packages/dataSource/dataSource.vue.js +323 -0
  888. package/es/src/packages/dataSource/dataSource.vue2.js +4 -0
  889. package/es/src/packages/dataSource/index.vue.js +244 -0
  890. package/es/src/packages/dataSource/index.vue2.js +4 -0
  891. package/es/src/packages/dataSource/useDataSourceDialog.js +15 -0
  892. package/es/src/packages/event/index.vue.js +4 -0
  893. package/es/src/packages/event/index.vue2.js +295 -0
  894. package/es/src/packages/event/pageEvent.vue.js +213 -0
  895. package/es/src/packages/event/pageEvent.vue2.js +4 -0
  896. package/es/src/packages/event/useEventDialog.js +15 -0
  897. package/es/src/packages/eventFlow/defaultProcessData.js +19 -0
  898. package/es/src/packages/eventFlow/dialog/action/Advanced.vue.js +50 -0
  899. package/es/src/packages/eventFlow/dialog/action/Confirm.vue.js +140 -0
  900. package/es/src/packages/eventFlow/dialog/action/FormSetValue.vue.js +4 -0
  901. package/es/src/packages/eventFlow/dialog/action/FormSetValue.vue2.js +43 -0
  902. package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue.js +4 -0
  903. package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +84 -0
  904. package/es/src/packages/eventFlow/dialog/action/Message.vue.js +68 -0
  905. package/es/src/packages/eventFlow/dialog/action/Page.vue.js +86 -0
  906. package/es/src/packages/eventFlow/dialog/action/PageGoBack.vue.js +111 -0
  907. package/es/src/packages/eventFlow/dialog/action/Request.vue.js +28 -0
  908. package/es/src/packages/eventFlow/dialog/action/TableRefresh.vue.js +4 -0
  909. package/es/src/packages/eventFlow/dialog/action/TableRefresh.vue2.js +54 -0
  910. package/es/src/packages/eventFlow/dialog/action/config.js +88 -0
  911. package/es/src/packages/eventFlow/dialog/action/index.vue.js +4 -0
  912. package/es/src/packages/eventFlow/dialog/action/index.vue2.js +193 -0
  913. package/es/src/packages/eventFlow/dialog/execution/index.vue.js +4 -0
  914. package/es/src/packages/eventFlow/dialog/execution/index.vue2.js +81 -0
  915. package/es/src/packages/eventFlow/dialog/index.vue.js +112 -0
  916. package/es/src/packages/eventFlow/eventFlow.vue.js +4 -0
  917. package/es/src/packages/eventFlow/eventFlow.vue2.js +298 -0
  918. package/es/src/packages/eventFlow/hooks/useDraggableScroll.js +27 -0
  919. package/es/src/packages/eventFlow/index.vue.js +26 -0
  920. package/es/src/packages/eventFlow/nodes/Add.vue.js +4 -0
  921. package/es/src/packages/eventFlow/nodes/Add.vue2.js +84 -0
  922. package/es/src/packages/eventFlow/nodes/ApprovalNode.vue.js +41 -0
  923. package/es/src/packages/eventFlow/nodes/CcNode.vue.js +73 -0
  924. package/es/src/packages/eventFlow/nodes/ConditionNode.vue.js +4 -0
  925. package/es/src/packages/eventFlow/nodes/ConditionNode.vue2.js +52 -0
  926. package/es/src/packages/eventFlow/nodes/EndNode.vue.js +4 -0
  927. package/es/src/packages/eventFlow/nodes/EndNode.vue2.js +45 -0
  928. package/es/src/packages/eventFlow/nodes/ExclusiveNode.vue.js +36 -0
  929. package/es/src/packages/eventFlow/nodes/GatewayNode.vue.js +4 -0
  930. package/es/src/packages/eventFlow/nodes/GatewayNode.vue2.js +79 -0
  931. package/es/src/packages/eventFlow/nodes/Node.vue.js +4 -0
  932. package/es/src/packages/eventFlow/nodes/Node.vue2.js +176 -0
  933. package/es/src/packages/eventFlow/nodes/NotifyNode.vue.js +73 -0
  934. package/es/src/packages/eventFlow/nodes/ServiceNode.vue.js +38 -0
  935. package/es/src/packages/eventFlow/nodes/StartNode.vue.js +4 -0
  936. package/es/src/packages/eventFlow/nodes/StartNode.vue2.js +39 -0
  937. package/es/src/packages/eventFlow/nodes/TimerNode.vue.js +45 -0
  938. package/es/src/packages/eventFlow/nodes/TreeNode.vue.js +47 -0
  939. package/es/src/packages/form/HiddenFieldDialog.vue.js +258 -0
  940. package/es/src/packages/form/HiddenFieldDialog.vue2.js +4 -0
  941. package/es/src/packages/form/PageFooterSetting.vue.js +114 -0
  942. package/es/src/packages/form/PageFooterSetting.vue2.js +4 -0
  943. package/es/src/packages/form/PageHeaderSetting.vue.js +142 -0
  944. package/es/src/packages/form/PageHeaderSetting.vue2.js +4 -0
  945. package/es/src/packages/form/aside/index.js +123 -0
  946. package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +140 -0
  947. package/es/src/packages/form/components/ComponentPreviewWrapper.vue2.js +4 -0
  948. package/es/src/packages/form/components/DividerWrapper.vue.js +22 -0
  949. package/es/src/packages/form/components/DividerWrapper.vue2.js +4 -0
  950. package/es/src/packages/form/components/H2Wrapper.vue.js +24 -0
  951. package/es/src/packages/form/components/H2Wrapper.vue2.js +4 -0
  952. package/es/src/packages/form/components/SubForm.vue.js +88 -0
  953. package/es/src/packages/form/components/SubForm.vue2.js +4 -0
  954. package/es/src/packages/form/components/SubForm.vue3.js +4 -0
  955. package/es/src/packages/form/components/SubTable.vue.js +87 -0
  956. package/es/src/packages/form/components/SubTable.vue2.js +4 -0
  957. package/es/src/packages/form/default.js +41 -0
  958. package/es/src/packages/form/fieldRecycleBin.vue.js +194 -0
  959. package/es/src/packages/form/fieldRecycleBin.vue2.js +4 -0
  960. package/es/src/packages/form/formSetting.vue.js +137 -0
  961. package/es/src/packages/form/formSetting.vue2.js +4 -0
  962. package/es/src/packages/form/headerBtn.vue.js +138 -0
  963. package/es/src/packages/form/headerBtn.vue2.js +4 -0
  964. package/es/src/packages/form/index.vue.js +355 -0
  965. package/es/src/packages/form/index.vue2.js +4 -0
  966. package/es/src/packages/form/property/dividerH2.vue.js +86 -0
  967. package/es/src/packages/form/property/index.vue.js +40 -0
  968. package/es/src/packages/form/property/pageFooterBtn.vue.js +111 -0
  969. package/es/src/packages/form/property/pageHeaderBtn.vue.js +107 -0
  970. package/es/src/packages/form/property/subForm.vue.js +188 -0
  971. package/es/src/packages/form/property/subTable.vue.js +286 -0
  972. package/es/src/packages/form/property/widgets.vue.js +579 -0
  973. package/es/src/packages/form/property/widgets.vue2.js +4 -0
  974. package/es/src/packages/formulaEditor/components/FieldVariable.vue.js +71 -0
  975. package/es/src/packages/formulaEditor/components/FieldVariable.vue2.js +4 -0
  976. package/es/src/packages/formulaEditor/components/FormulaList.vue.js +93 -0
  977. package/es/src/packages/formulaEditor/components/FormulaList.vue2.js +4 -0
  978. package/es/src/packages/formulaEditor/core/calculate.js +50 -0
  979. package/es/src/packages/formulaEditor/core/functionCore.js +16 -0
  980. package/es/src/packages/formulaEditor/core/index.js +136 -0
  981. package/es/src/packages/formulaEditor/function.js +524 -0
  982. package/es/src/packages/formulaEditor/index.js +7 -0
  983. package/es/src/packages/formulaEditor/index.vue.js +186 -0
  984. package/es/src/packages/formulaEditor/index.vue2.js +4 -0
  985. package/es/src/packages/formulaEditor/utils/index.js +40 -0
  986. package/es/src/packages/mode/fieldSelection.vue.js +154 -0
  987. package/es/src/packages/mode/fieldSelection.vue2.js +4 -0
  988. package/es/src/packages/mode/index.vue.js +387 -0
  989. package/es/src/packages/mode/index.vue2.js +4 -0
  990. package/es/src/packages/mode/useModeDialog.js +15 -0
  991. package/es/src/packages/table/aside/index.js +53 -0
  992. package/es/src/packages/table/default.js +87 -0
  993. package/es/src/packages/table/headerBtn.vue.js +172 -0
  994. package/es/src/packages/table/headerBtn.vue2.js +4 -0
  995. package/es/src/packages/table/index.vue.js +373 -0
  996. package/es/src/packages/table/index.vue2.js +4 -0
  997. package/es/src/packages/table/property/customBtn.vue.js +142 -0
  998. package/es/src/packages/table/property/filterWidgets.vue.js +86 -0
  999. package/es/src/packages/table/property/index.vue.js +40 -0
  1000. package/es/src/packages/table/property/optBtn.vue.js +126 -0
  1001. package/es/src/packages/table/property/widgets.vue.js +430 -0
  1002. package/es/src/packages/table/property/widgets.vue2.js +4 -0
  1003. package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +218 -0
  1004. package/es/src/packages/table/queryModule/FixedModeConfig.vue2.js +4 -0
  1005. package/es/src/packages/table/queryModule/index.vue.js +192 -0
  1006. package/es/src/packages/table/queryModule/index.vue2.js +4 -0
  1007. package/es/src/packages/table/tableBtn.vue.js +145 -0
  1008. package/es/src/packages/table/tableBtn.vue2.js +4 -0
  1009. package/es/src/packages/table/tablePagination.vue.js +196 -0
  1010. package/es/src/packages/table/tablePagination.vue2.js +4 -0
  1011. package/es/src/packages/table/tableSetting.vue.js +423 -0
  1012. package/es/src/packages/table/tableSetting.vue2.js +4 -0
  1013. package/es/src/packages/utils/common.js +65 -0
  1014. package/es/src/packages/utils/datasource.js +226 -0
  1015. package/es/src/packages/utils/eventBus.js +5 -0
  1016. package/es/src/store/index.js +49 -0
  1017. package/es/src/style/index.css.js +4 -0
  1018. package/es/src/utils/env.js +9 -0
  1019. package/es/style.css +1 -0
  1020. package/package.json +52 -0
@@ -0,0 +1,2649 @@
1
+ import { findClusterBreak as Ve } from "../../../@marijn/find-cluster-break/src/index.js";
2
+ class x {
3
+ /**
4
+ Get the line description around the given position.
5
+ */
6
+ lineAt(e) {
7
+ if (e < 0 || e > this.length)
8
+ throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);
9
+ return this.lineInner(e, !1, 1, 0);
10
+ }
11
+ /**
12
+ Get the description for the given (1-based) line number.
13
+ */
14
+ line(e) {
15
+ if (e < 1 || e > this.lines)
16
+ throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);
17
+ return this.lineInner(e, !0, 1, 0);
18
+ }
19
+ /**
20
+ Replace a range of the text with the given content.
21
+ */
22
+ replace(e, t, n) {
23
+ [e, t] = J(this, e, t);
24
+ let i = [];
25
+ return this.decompose(
26
+ 0,
27
+ e,
28
+ i,
29
+ 2
30
+ /* Open.To */
31
+ ), n.length && n.decompose(
32
+ 0,
33
+ n.length,
34
+ i,
35
+ 3
36
+ /* Open.To */
37
+ ), this.decompose(
38
+ t,
39
+ this.length,
40
+ i,
41
+ 1
42
+ /* Open.From */
43
+ ), O.from(i, this.length - (t - e) + n.length);
44
+ }
45
+ /**
46
+ Append another document to this one.
47
+ */
48
+ append(e) {
49
+ return this.replace(this.length, this.length, e);
50
+ }
51
+ /**
52
+ Retrieve the text between the given points.
53
+ */
54
+ slice(e, t = this.length) {
55
+ [e, t] = J(this, e, t);
56
+ let n = [];
57
+ return this.decompose(e, t, n, 0), O.from(n, t - e);
58
+ }
59
+ /**
60
+ Test whether this text is equal to another instance.
61
+ */
62
+ eq(e) {
63
+ if (e == this)
64
+ return !0;
65
+ if (e.length != this.length || e.lines != this.lines)
66
+ return !1;
67
+ let t = this.scanIdentical(e, 1), n = this.length - this.scanIdentical(e, -1), i = new D(this), s = new D(e);
68
+ for (let r = t, h = t; ; ) {
69
+ if (i.next(r), s.next(r), r = 0, i.lineBreak != s.lineBreak || i.done != s.done || i.value != s.value)
70
+ return !1;
71
+ if (h += i.value.length, i.done || h >= n)
72
+ return !0;
73
+ }
74
+ }
75
+ /**
76
+ Iterate over the text. When `dir` is `-1`, iteration happens
77
+ from end to start. This will return lines and the breaks between
78
+ them as separate strings.
79
+ */
80
+ iter(e = 1) {
81
+ return new D(this, e);
82
+ }
83
+ /**
84
+ Iterate over a range of the text. When `from` > `to`, the
85
+ iterator will run in reverse.
86
+ */
87
+ iterRange(e, t = this.length) {
88
+ return new Ie(this, e, t);
89
+ }
90
+ /**
91
+ Return a cursor that iterates over the given range of lines,
92
+ _without_ returning the line breaks between, and yielding empty
93
+ strings for empty lines.
94
+
95
+ When `from` and `to` are given, they should be 1-based line numbers.
96
+ */
97
+ iterLines(e, t) {
98
+ let n;
99
+ if (e == null)
100
+ n = this.iter();
101
+ else {
102
+ t == null && (t = this.lines + 1);
103
+ let i = this.line(e).from;
104
+ n = this.iterRange(i, Math.max(i, t == this.lines + 1 ? this.length : t <= 1 ? 0 : this.line(t - 1).to));
105
+ }
106
+ return new Pe(n);
107
+ }
108
+ /**
109
+ Return the document as a string, using newline characters to
110
+ separate lines.
111
+ */
112
+ toString() {
113
+ return this.sliceString(0);
114
+ }
115
+ /**
116
+ Convert the document to an array of lines (which can be
117
+ deserialized again via [`Text.of`](https://codemirror.net/6/docs/ref/#state.Text^of)).
118
+ */
119
+ toJSON() {
120
+ let e = [];
121
+ return this.flatten(e), e;
122
+ }
123
+ /**
124
+ @internal
125
+ */
126
+ constructor() {
127
+ }
128
+ /**
129
+ Create a `Text` instance for the given array of lines.
130
+ */
131
+ static of(e) {
132
+ if (e.length == 0)
133
+ throw new RangeError("A document must have at least one line");
134
+ return e.length == 1 && !e[0] ? x.empty : e.length <= 32 ? new m(e) : O.from(m.split(e, []));
135
+ }
136
+ }
137
+ class m extends x {
138
+ constructor(e, t = Ne(e)) {
139
+ super(), this.text = e, this.length = t;
140
+ }
141
+ get lines() {
142
+ return this.text.length;
143
+ }
144
+ get children() {
145
+ return null;
146
+ }
147
+ lineInner(e, t, n, i) {
148
+ for (let s = 0; ; s++) {
149
+ let r = this.text[s], h = i + r.length;
150
+ if ((t ? n : h) >= e)
151
+ return new De(i, h, n, r);
152
+ i = h + 1, n++;
153
+ }
154
+ }
155
+ decompose(e, t, n, i) {
156
+ let s = e <= 0 && t >= this.length ? this : new m(ve(this.text, e, t), Math.min(t, this.length) - Math.max(0, e));
157
+ if (i & 1) {
158
+ let r = n.pop(), h = Q(s.text, r.text.slice(), 0, s.length);
159
+ if (h.length <= 32)
160
+ n.push(new m(h, r.length + s.length));
161
+ else {
162
+ let o = h.length >> 1;
163
+ n.push(new m(h.slice(0, o)), new m(h.slice(o)));
164
+ }
165
+ } else
166
+ n.push(s);
167
+ }
168
+ replace(e, t, n) {
169
+ if (!(n instanceof m))
170
+ return super.replace(e, t, n);
171
+ [e, t] = J(this, e, t);
172
+ let i = Q(this.text, Q(n.text, ve(this.text, 0, e)), t), s = this.length + n.length - (t - e);
173
+ return i.length <= 32 ? new m(i, s) : O.from(m.split(i, []), s);
174
+ }
175
+ sliceString(e, t = this.length, n = `
176
+ `) {
177
+ [e, t] = J(this, e, t);
178
+ let i = "";
179
+ for (let s = 0, r = 0; s <= t && r < this.text.length; r++) {
180
+ let h = this.text[r], o = s + h.length;
181
+ s > e && r && (i += n), e < o && t > s && (i += h.slice(Math.max(0, e - s), t - s)), s = o + 1;
182
+ }
183
+ return i;
184
+ }
185
+ flatten(e) {
186
+ for (let t of this.text)
187
+ e.push(t);
188
+ }
189
+ scanIdentical() {
190
+ return 0;
191
+ }
192
+ static split(e, t) {
193
+ let n = [], i = -1;
194
+ for (let s of e)
195
+ n.push(s), i += s.length + 1, n.length == 32 && (t.push(new m(n, i)), n = [], i = -1);
196
+ return i > -1 && t.push(new m(n, i)), t;
197
+ }
198
+ }
199
+ class O extends x {
200
+ constructor(e, t) {
201
+ super(), this.children = e, this.length = t, this.lines = 0;
202
+ for (let n of e)
203
+ this.lines += n.lines;
204
+ }
205
+ lineInner(e, t, n, i) {
206
+ for (let s = 0; ; s++) {
207
+ let r = this.children[s], h = i + r.length, o = n + r.lines - 1;
208
+ if ((t ? o : h) >= e)
209
+ return r.lineInner(e, t, n, i);
210
+ i = h + 1, n = o + 1;
211
+ }
212
+ }
213
+ decompose(e, t, n, i) {
214
+ for (let s = 0, r = 0; r <= t && s < this.children.length; s++) {
215
+ let h = this.children[s], o = r + h.length;
216
+ if (e <= o && t >= r) {
217
+ let a = i & ((r <= e ? 1 : 0) | (o >= t ? 2 : 0));
218
+ r >= e && o <= t && !a ? n.push(h) : h.decompose(e - r, t - r, n, a);
219
+ }
220
+ r = o + 1;
221
+ }
222
+ }
223
+ replace(e, t, n) {
224
+ if ([e, t] = J(this, e, t), n.lines < this.lines)
225
+ for (let i = 0, s = 0; i < this.children.length; i++) {
226
+ let r = this.children[i], h = s + r.length;
227
+ if (e >= s && t <= h) {
228
+ let o = r.replace(e - s, t - s, n), a = this.lines - r.lines + o.lines;
229
+ if (o.lines < a >> 5 - 1 && o.lines > a >> 5 + 1) {
230
+ let u = this.children.slice();
231
+ return u[i] = o, new O(u, this.length - (t - e) + n.length);
232
+ }
233
+ return super.replace(s, h, o);
234
+ }
235
+ s = h + 1;
236
+ }
237
+ return super.replace(e, t, n);
238
+ }
239
+ sliceString(e, t = this.length, n = `
240
+ `) {
241
+ [e, t] = J(this, e, t);
242
+ let i = "";
243
+ for (let s = 0, r = 0; s < this.children.length && r <= t; s++) {
244
+ let h = this.children[s], o = r + h.length;
245
+ r > e && s && (i += n), e < o && t > r && (i += h.sliceString(e - r, t - r, n)), r = o + 1;
246
+ }
247
+ return i;
248
+ }
249
+ flatten(e) {
250
+ for (let t of this.children)
251
+ t.flatten(e);
252
+ }
253
+ scanIdentical(e, t) {
254
+ if (!(e instanceof O))
255
+ return 0;
256
+ let n = 0, [i, s, r, h] = t > 0 ? [0, 0, this.children.length, e.children.length] : [this.children.length - 1, e.children.length - 1, -1, -1];
257
+ for (; ; i += t, s += t) {
258
+ if (i == r || s == h)
259
+ return n;
260
+ let o = this.children[i], a = e.children[s];
261
+ if (o != a)
262
+ return n + o.scanIdentical(a, t);
263
+ n += o.length + 1;
264
+ }
265
+ }
266
+ static from(e, t = e.reduce((n, i) => n + i.length + 1, -1)) {
267
+ let n = 0;
268
+ for (let c of e)
269
+ n += c.lines;
270
+ if (n < 32) {
271
+ let c = [];
272
+ for (let g of e)
273
+ g.flatten(c);
274
+ return new m(c, t);
275
+ }
276
+ let i = Math.max(
277
+ 32,
278
+ n >> 5
279
+ /* Tree.BranchShift */
280
+ ), s = i << 1, r = i >> 1, h = [], o = 0, a = -1, u = [];
281
+ function f(c) {
282
+ let g;
283
+ if (c.lines > s && c instanceof O)
284
+ for (let E of c.children)
285
+ f(E);
286
+ else
287
+ c.lines > r && (o > r || !o) ? (d(), h.push(c)) : c instanceof m && o && (g = u[u.length - 1]) instanceof m && c.lines + g.lines <= 32 ? (o += c.lines, a += c.length + 1, u[u.length - 1] = new m(g.text.concat(c.text), g.length + 1 + c.length)) : (o + c.lines > i && d(), o += c.lines, a += c.length + 1, u.push(c));
288
+ }
289
+ function d() {
290
+ o != 0 && (h.push(u.length == 1 ? u[0] : O.from(u, a)), a = -1, o = u.length = 0);
291
+ }
292
+ for (let c of e)
293
+ f(c);
294
+ return d(), h.length == 1 ? h[0] : new O(h, t);
295
+ }
296
+ }
297
+ x.empty = /* @__PURE__ */ new m([""], 0);
298
+ function Ne(l) {
299
+ let e = -1;
300
+ for (let t of l)
301
+ e += t.length + 1;
302
+ return e;
303
+ }
304
+ function Q(l, e, t = 0, n = 1e9) {
305
+ for (let i = 0, s = 0, r = !0; s < l.length && i <= n; s++) {
306
+ let h = l[s], o = i + h.length;
307
+ o >= t && (o > n && (h = h.slice(0, n - i)), i < t && (h = h.slice(t - i)), r ? (e[e.length - 1] += h, r = !1) : e.push(h)), i = o + 1;
308
+ }
309
+ return e;
310
+ }
311
+ function ve(l, e, t) {
312
+ return Q(l, [""], e, t);
313
+ }
314
+ class D {
315
+ constructor(e, t = 1) {
316
+ this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof m ? e.text.length : e.children.length) << 1];
317
+ }
318
+ nextInner(e, t) {
319
+ for (this.done = this.lineBreak = !1; ; ) {
320
+ let n = this.nodes.length - 1, i = this.nodes[n], s = this.offsets[n], r = s >> 1, h = i instanceof m ? i.text.length : i.children.length;
321
+ if (r == (t > 0 ? h : 0)) {
322
+ if (n == 0)
323
+ return this.done = !0, this.value = "", this;
324
+ t > 0 && this.offsets[n - 1]++, this.nodes.pop(), this.offsets.pop();
325
+ } else if ((s & 1) == (t > 0 ? 0 : 1)) {
326
+ if (this.offsets[n] += t, e == 0)
327
+ return this.lineBreak = !0, this.value = `
328
+ `, this;
329
+ e--;
330
+ } else if (i instanceof m) {
331
+ let o = i.text[r + (t < 0 ? -1 : 0)];
332
+ if (this.offsets[n] += t, o.length > Math.max(0, e))
333
+ return this.value = e == 0 ? o : t > 0 ? o.slice(e) : o.slice(0, o.length - e), this;
334
+ e -= o.length;
335
+ } else {
336
+ let o = i.children[r + (t < 0 ? -1 : 0)];
337
+ e > o.length ? (e -= o.length, this.offsets[n] += t) : (t < 0 && this.offsets[n]--, this.nodes.push(o), this.offsets.push(t > 0 ? 1 : (o instanceof m ? o.text.length : o.children.length) << 1));
338
+ }
339
+ }
340
+ }
341
+ next(e = 0) {
342
+ return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir);
343
+ }
344
+ }
345
+ class Ie {
346
+ constructor(e, t, n) {
347
+ this.value = "", this.done = !1, this.cursor = new D(e, t > n ? -1 : 1), this.pos = t > n ? e.length : 0, this.from = Math.min(t, n), this.to = Math.max(t, n);
348
+ }
349
+ nextInner(e, t) {
350
+ if (t < 0 ? this.pos <= this.from : this.pos >= this.to)
351
+ return this.value = "", this.done = !0, this;
352
+ e += Math.max(0, t < 0 ? this.pos - this.to : this.from - this.pos);
353
+ let n = t < 0 ? this.pos - this.from : this.to - this.pos;
354
+ e > n && (e = n), n -= e;
355
+ let { value: i } = this.cursor.next(e);
356
+ return this.pos += (i.length + e) * t, this.value = i.length <= n ? i : t < 0 ? i.slice(i.length - n) : i.slice(0, n), this.done = !this.value, this;
357
+ }
358
+ next(e = 0) {
359
+ return e < 0 ? e = Math.max(e, this.from - this.pos) : e > 0 && (e = Math.min(e, this.to - this.pos)), this.nextInner(e, this.cursor.dir);
360
+ }
361
+ get lineBreak() {
362
+ return this.cursor.lineBreak && this.value != "";
363
+ }
364
+ }
365
+ class Pe {
366
+ constructor(e) {
367
+ this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1;
368
+ }
369
+ next(e = 0) {
370
+ let { done: t, lineBreak: n, value: i } = this.inner.next(e);
371
+ return t && this.afterBreak ? (this.value = "", this.afterBreak = !1) : t ? (this.done = !0, this.value = "") : n ? this.afterBreak ? this.value = "" : (this.afterBreak = !0, this.next()) : (this.value = i, this.afterBreak = !1), this;
372
+ }
373
+ get lineBreak() {
374
+ return !1;
375
+ }
376
+ }
377
+ typeof Symbol < "u" && (x.prototype[Symbol.iterator] = function() {
378
+ return this.iter();
379
+ }, D.prototype[Symbol.iterator] = Ie.prototype[Symbol.iterator] = Pe.prototype[Symbol.iterator] = function() {
380
+ return this;
381
+ });
382
+ class De {
383
+ /**
384
+ @internal
385
+ */
386
+ constructor(e, t, n, i) {
387
+ this.from = e, this.to = t, this.number = n, this.text = i;
388
+ }
389
+ /**
390
+ The length of the line (not including any line break after it).
391
+ */
392
+ get length() {
393
+ return this.to - this.from;
394
+ }
395
+ }
396
+ function J(l, e, t) {
397
+ return e = Math.max(0, Math.min(l.length, e)), [e, Math.max(e, Math.min(l.length, t))];
398
+ }
399
+ function Y(l, e, t = !0, n = !0) {
400
+ return Ve(l, e, t, n);
401
+ }
402
+ function $e(l) {
403
+ return l >= 56320 && l < 57344;
404
+ }
405
+ function ze(l) {
406
+ return l >= 55296 && l < 56320;
407
+ }
408
+ function tt(l, e) {
409
+ let t = l.charCodeAt(e);
410
+ if (!ze(t) || e + 1 == l.length)
411
+ return t;
412
+ let n = l.charCodeAt(e + 1);
413
+ return $e(n) ? (t - 55296 << 10) + (n - 56320) + 65536 : t;
414
+ }
415
+ function nt(l) {
416
+ return l <= 65535 ? String.fromCharCode(l) : (l -= 65536, String.fromCharCode((l >> 10) + 55296, (l & 1023) + 56320));
417
+ }
418
+ function it(l) {
419
+ return l < 65536 ? 1 : 2;
420
+ }
421
+ const se = /\r\n?|\n/;
422
+ var M = /* @__PURE__ */ function(l) {
423
+ return l[l.Simple = 0] = "Simple", l[l.TrackDel = 1] = "TrackDel", l[l.TrackBefore = 2] = "TrackBefore", l[l.TrackAfter = 3] = "TrackAfter", l;
424
+ }(M || (M = {}));
425
+ class C {
426
+ // Sections are encoded as pairs of integers. The first is the
427
+ // length in the current document, and the second is -1 for
428
+ // unaffected sections, and the length of the replacement content
429
+ // otherwise. So an insertion would be (0, n>0), a deletion (n>0,
430
+ // 0), and a replacement two positive numbers.
431
+ /**
432
+ @internal
433
+ */
434
+ constructor(e) {
435
+ this.sections = e;
436
+ }
437
+ /**
438
+ The length of the document before the change.
439
+ */
440
+ get length() {
441
+ let e = 0;
442
+ for (let t = 0; t < this.sections.length; t += 2)
443
+ e += this.sections[t];
444
+ return e;
445
+ }
446
+ /**
447
+ The length of the document after the change.
448
+ */
449
+ get newLength() {
450
+ let e = 0;
451
+ for (let t = 0; t < this.sections.length; t += 2) {
452
+ let n = this.sections[t + 1];
453
+ e += n < 0 ? this.sections[t] : n;
454
+ }
455
+ return e;
456
+ }
457
+ /**
458
+ False when there are actual changes in this set.
459
+ */
460
+ get empty() {
461
+ return this.sections.length == 0 || this.sections.length == 2 && this.sections[1] < 0;
462
+ }
463
+ /**
464
+ Iterate over the unchanged parts left by these changes. `posA`
465
+ provides the position of the range in the old document, `posB`
466
+ the new position in the changed document.
467
+ */
468
+ iterGaps(e) {
469
+ for (let t = 0, n = 0, i = 0; t < this.sections.length; ) {
470
+ let s = this.sections[t++], r = this.sections[t++];
471
+ r < 0 ? (e(n, i, s), i += s) : i += r, n += s;
472
+ }
473
+ }
474
+ /**
475
+ Iterate over the ranges changed by these changes. (See
476
+ [`ChangeSet.iterChanges`](https://codemirror.net/6/docs/ref/#state.ChangeSet.iterChanges) for a
477
+ variant that also provides you with the inserted text.)
478
+ `fromA`/`toA` provides the extent of the change in the starting
479
+ document, `fromB`/`toB` the extent of the replacement in the
480
+ changed document.
481
+
482
+ When `individual` is true, adjacent changes (which are kept
483
+ separate for [position mapping](https://codemirror.net/6/docs/ref/#state.ChangeDesc.mapPos)) are
484
+ reported separately.
485
+ */
486
+ iterChangedRanges(e, t = !1) {
487
+ re(this, e, t);
488
+ }
489
+ /**
490
+ Get a description of the inverted form of these changes.
491
+ */
492
+ get invertedDesc() {
493
+ let e = [];
494
+ for (let t = 0; t < this.sections.length; ) {
495
+ let n = this.sections[t++], i = this.sections[t++];
496
+ i < 0 ? e.push(n, i) : e.push(i, n);
497
+ }
498
+ return new C(e);
499
+ }
500
+ /**
501
+ Compute the combined effect of applying another set of changes
502
+ after this one. The length of the document after this set should
503
+ match the length before `other`.
504
+ */
505
+ composeDesc(e) {
506
+ return this.empty ? e : e.empty ? this : Ae(this, e);
507
+ }
508
+ /**
509
+ Map this description, which should start with the same document
510
+ as `other`, over another set of changes, so that it can be
511
+ applied after it. When `before` is true, map as if the changes
512
+ in `this` happened before the ones in `other`.
513
+ */
514
+ mapDesc(e, t = !1) {
515
+ return e.empty ? this : le(this, e, t);
516
+ }
517
+ mapPos(e, t = -1, n = M.Simple) {
518
+ let i = 0, s = 0;
519
+ for (let r = 0; r < this.sections.length; ) {
520
+ let h = this.sections[r++], o = this.sections[r++], a = i + h;
521
+ if (o < 0) {
522
+ if (a > e)
523
+ return s + (e - i);
524
+ s += h;
525
+ } else {
526
+ if (n != M.Simple && a >= e && (n == M.TrackDel && i < e && a > e || n == M.TrackBefore && i < e || n == M.TrackAfter && a > e))
527
+ return null;
528
+ if (a > e || a == e && t < 0 && !h)
529
+ return e == i || t < 0 ? s : s + o;
530
+ s += o;
531
+ }
532
+ i = a;
533
+ }
534
+ if (e > i)
535
+ throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);
536
+ return s;
537
+ }
538
+ /**
539
+ Check whether these changes touch a given range. When one of the
540
+ changes entirely covers the range, the string `"cover"` is
541
+ returned.
542
+ */
543
+ touchesRange(e, t = e) {
544
+ for (let n = 0, i = 0; n < this.sections.length && i <= t; ) {
545
+ let s = this.sections[n++], r = this.sections[n++], h = i + s;
546
+ if (r >= 0 && i <= t && h >= e)
547
+ return i < e && h > t ? "cover" : !0;
548
+ i = h;
549
+ }
550
+ return !1;
551
+ }
552
+ /**
553
+ @internal
554
+ */
555
+ toString() {
556
+ let e = "";
557
+ for (let t = 0; t < this.sections.length; ) {
558
+ let n = this.sections[t++], i = this.sections[t++];
559
+ e += (e ? " " : "") + n + (i >= 0 ? ":" + i : "");
560
+ }
561
+ return e;
562
+ }
563
+ /**
564
+ Serialize this change desc to a JSON-representable value.
565
+ */
566
+ toJSON() {
567
+ return this.sections;
568
+ }
569
+ /**
570
+ Create a change desc from its JSON representation (as produced
571
+ by [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeDesc.toJSON).
572
+ */
573
+ static fromJSON(e) {
574
+ if (!Array.isArray(e) || e.length % 2 || e.some((t) => typeof t != "number"))
575
+ throw new RangeError("Invalid JSON representation of ChangeDesc");
576
+ return new C(e);
577
+ }
578
+ /**
579
+ @internal
580
+ */
581
+ static create(e) {
582
+ return new C(e);
583
+ }
584
+ }
585
+ class y extends C {
586
+ constructor(e, t) {
587
+ super(e), this.inserted = t;
588
+ }
589
+ /**
590
+ Apply the changes to a document, returning the modified
591
+ document.
592
+ */
593
+ apply(e) {
594
+ if (this.length != e.length)
595
+ throw new RangeError("Applying change set to a document with the wrong length");
596
+ return re(this, (t, n, i, s, r) => e = e.replace(i, i + (n - t), r), !1), e;
597
+ }
598
+ mapDesc(e, t = !1) {
599
+ return le(this, e, t, !0);
600
+ }
601
+ /**
602
+ Given the document as it existed _before_ the changes, return a
603
+ change set that represents the inverse of this set, which could
604
+ be used to go from the document created by the changes back to
605
+ the document as it existed before the changes.
606
+ */
607
+ invert(e) {
608
+ let t = this.sections.slice(), n = [];
609
+ for (let i = 0, s = 0; i < t.length; i += 2) {
610
+ let r = t[i], h = t[i + 1];
611
+ if (h >= 0) {
612
+ t[i] = h, t[i + 1] = r;
613
+ let o = i >> 1;
614
+ for (; n.length < o; )
615
+ n.push(x.empty);
616
+ n.push(r ? e.slice(s, s + r) : x.empty);
617
+ }
618
+ s += r;
619
+ }
620
+ return new y(t, n);
621
+ }
622
+ /**
623
+ Combine two subsequent change sets into a single set. `other`
624
+ must start in the document produced by `this`. If `this` goes
625
+ `docA` → `docB` and `other` represents `docB` → `docC`, the
626
+ returned value will represent the change `docA` → `docC`.
627
+ */
628
+ compose(e) {
629
+ return this.empty ? e : e.empty ? this : Ae(this, e, !0);
630
+ }
631
+ /**
632
+ Given another change set starting in the same document, maps this
633
+ change set over the other, producing a new change set that can be
634
+ applied to the document produced by applying `other`. When
635
+ `before` is `true`, order changes as if `this` comes before
636
+ `other`, otherwise (the default) treat `other` as coming first.
637
+
638
+ Given two changes `A` and `B`, `A.compose(B.map(A))` and
639
+ `B.compose(A.map(B, true))` will produce the same document. This
640
+ provides a basic form of [operational
641
+ transformation](https://en.wikipedia.org/wiki/Operational_transformation),
642
+ and can be used for collaborative editing.
643
+ */
644
+ map(e, t = !1) {
645
+ return e.empty ? this : le(this, e, t, !0);
646
+ }
647
+ /**
648
+ Iterate over the changed ranges in the document, calling `f` for
649
+ each, with the range in the original document (`fromA`-`toA`)
650
+ and the range that replaces it in the new document
651
+ (`fromB`-`toB`).
652
+
653
+ When `individual` is true, adjacent changes are reported
654
+ separately.
655
+ */
656
+ iterChanges(e, t = !1) {
657
+ re(this, e, t);
658
+ }
659
+ /**
660
+ Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change
661
+ set.
662
+ */
663
+ get desc() {
664
+ return C.create(this.sections);
665
+ }
666
+ /**
667
+ @internal
668
+ */
669
+ filter(e) {
670
+ let t = [], n = [], i = [], s = new z(this);
671
+ e:
672
+ for (let r = 0, h = 0; ; ) {
673
+ let o = r == e.length ? 1e9 : e[r++];
674
+ for (; h < o || h == o && s.len == 0; ) {
675
+ if (s.done)
676
+ break e;
677
+ let u = Math.min(s.len, o - h);
678
+ k(i, u, -1);
679
+ let f = s.ins == -1 ? -1 : s.off == 0 ? s.ins : 0;
680
+ k(t, u, f), f > 0 && b(n, t, s.text), s.forward(u), h += u;
681
+ }
682
+ let a = e[r++];
683
+ for (; h < a; ) {
684
+ if (s.done)
685
+ break e;
686
+ let u = Math.min(s.len, a - h);
687
+ k(t, u, -1), k(i, u, s.ins == -1 ? -1 : s.off == 0 ? s.ins : 0), s.forward(u), h += u;
688
+ }
689
+ }
690
+ return {
691
+ changes: new y(t, n),
692
+ filtered: C.create(i)
693
+ };
694
+ }
695
+ /**
696
+ Serialize this change set to a JSON-representable value.
697
+ */
698
+ toJSON() {
699
+ let e = [];
700
+ for (let t = 0; t < this.sections.length; t += 2) {
701
+ let n = this.sections[t], i = this.sections[t + 1];
702
+ i < 0 ? e.push(n) : i == 0 ? e.push([n]) : e.push([n].concat(this.inserted[t >> 1].toJSON()));
703
+ }
704
+ return e;
705
+ }
706
+ /**
707
+ Create a change set for the given changes, for a document of the
708
+ given length, using `lineSep` as line separator.
709
+ */
710
+ static of(e, t, n) {
711
+ let i = [], s = [], r = 0, h = null;
712
+ function o(u = !1) {
713
+ if (!u && !i.length)
714
+ return;
715
+ r < t && k(i, t - r, -1);
716
+ let f = new y(i, s);
717
+ h = h ? h.compose(f.map(h)) : f, i = [], s = [], r = 0;
718
+ }
719
+ function a(u) {
720
+ if (Array.isArray(u))
721
+ for (let f of u)
722
+ a(f);
723
+ else if (u instanceof y) {
724
+ if (u.length != t)
725
+ throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${t})`);
726
+ o(), h = h ? h.compose(u.map(h)) : u;
727
+ } else {
728
+ let { from: f, to: d = f, insert: c } = u;
729
+ if (f > d || f < 0 || d > t)
730
+ throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${t})`);
731
+ let g = c ? typeof c == "string" ? x.of(c.split(n || se)) : c : x.empty, E = g.length;
732
+ if (f == d && E == 0)
733
+ return;
734
+ f < r && o(), f > r && k(i, f - r, -1), k(i, d - f, E), b(s, i, g), r = d;
735
+ }
736
+ }
737
+ return a(e), o(!h), h;
738
+ }
739
+ /**
740
+ Create an empty changeset of the given length.
741
+ */
742
+ static empty(e) {
743
+ return new y(e ? [e, -1] : [], []);
744
+ }
745
+ /**
746
+ Create a changeset from its JSON representation (as produced by
747
+ [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeSet.toJSON).
748
+ */
749
+ static fromJSON(e) {
750
+ if (!Array.isArray(e))
751
+ throw new RangeError("Invalid JSON representation of ChangeSet");
752
+ let t = [], n = [];
753
+ for (let i = 0; i < e.length; i++) {
754
+ let s = e[i];
755
+ if (typeof s == "number")
756
+ t.push(s, -1);
757
+ else {
758
+ if (!Array.isArray(s) || typeof s[0] != "number" || s.some((r, h) => h && typeof r != "string"))
759
+ throw new RangeError("Invalid JSON representation of ChangeSet");
760
+ if (s.length == 1)
761
+ t.push(s[0], 0);
762
+ else {
763
+ for (; n.length < i; )
764
+ n.push(x.empty);
765
+ n[i] = x.of(s.slice(1)), t.push(s[0], n[i].length);
766
+ }
767
+ }
768
+ }
769
+ return new y(t, n);
770
+ }
771
+ /**
772
+ @internal
773
+ */
774
+ static createSet(e, t) {
775
+ return new y(e, t);
776
+ }
777
+ }
778
+ function k(l, e, t, n = !1) {
779
+ if (e == 0 && t <= 0)
780
+ return;
781
+ let i = l.length - 2;
782
+ i >= 0 && t <= 0 && t == l[i + 1] ? l[i] += e : i >= 0 && e == 0 && l[i] == 0 ? l[i + 1] += t : n ? (l[i] += e, l[i + 1] += t) : l.push(e, t);
783
+ }
784
+ function b(l, e, t) {
785
+ if (t.length == 0)
786
+ return;
787
+ let n = e.length - 2 >> 1;
788
+ if (n < l.length)
789
+ l[l.length - 1] = l[l.length - 1].append(t);
790
+ else {
791
+ for (; l.length < n; )
792
+ l.push(x.empty);
793
+ l.push(t);
794
+ }
795
+ }
796
+ function re(l, e, t) {
797
+ let n = l.inserted;
798
+ for (let i = 0, s = 0, r = 0; r < l.sections.length; ) {
799
+ let h = l.sections[r++], o = l.sections[r++];
800
+ if (o < 0)
801
+ i += h, s += h;
802
+ else {
803
+ let a = i, u = s, f = x.empty;
804
+ for (; a += h, u += o, o && n && (f = f.append(n[r - 2 >> 1])), !(t || r == l.sections.length || l.sections[r + 1] < 0); )
805
+ h = l.sections[r++], o = l.sections[r++];
806
+ e(i, a, s, u, f), i = a, s = u;
807
+ }
808
+ }
809
+ }
810
+ function le(l, e, t, n = !1) {
811
+ let i = [], s = n ? [] : null, r = new z(l), h = new z(e);
812
+ for (let o = -1; ; ) {
813
+ if (r.done && h.len || h.done && r.len)
814
+ throw new Error("Mismatched change set lengths");
815
+ if (r.ins == -1 && h.ins == -1) {
816
+ let a = Math.min(r.len, h.len);
817
+ k(i, a, -1), r.forward(a), h.forward(a);
818
+ } else if (h.ins >= 0 && (r.ins < 0 || o == r.i || r.off == 0 && (h.len < r.len || h.len == r.len && !t))) {
819
+ let a = h.len;
820
+ for (k(i, h.ins, -1); a; ) {
821
+ let u = Math.min(r.len, a);
822
+ r.ins >= 0 && o < r.i && r.len <= u && (k(i, 0, r.ins), s && b(s, i, r.text), o = r.i), r.forward(u), a -= u;
823
+ }
824
+ h.next();
825
+ } else if (r.ins >= 0) {
826
+ let a = 0, u = r.len;
827
+ for (; u; )
828
+ if (h.ins == -1) {
829
+ let f = Math.min(u, h.len);
830
+ a += f, u -= f, h.forward(f);
831
+ } else if (h.ins == 0 && h.len < u)
832
+ u -= h.len, h.next();
833
+ else
834
+ break;
835
+ k(i, a, o < r.i ? r.ins : 0), s && o < r.i && b(s, i, r.text), o = r.i, r.forward(r.len - u);
836
+ } else {
837
+ if (r.done && h.done)
838
+ return s ? y.createSet(i, s) : C.create(i);
839
+ throw new Error("Mismatched change set lengths");
840
+ }
841
+ }
842
+ }
843
+ function Ae(l, e, t = !1) {
844
+ let n = [], i = t ? [] : null, s = new z(l), r = new z(e);
845
+ for (let h = !1; ; ) {
846
+ if (s.done && r.done)
847
+ return i ? y.createSet(n, i) : C.create(n);
848
+ if (s.ins == 0)
849
+ k(n, s.len, 0, h), s.next();
850
+ else if (r.len == 0 && !r.done)
851
+ k(n, 0, r.ins, h), i && b(i, n, r.text), r.next();
852
+ else {
853
+ if (s.done || r.done)
854
+ throw new Error("Mismatched change set lengths");
855
+ {
856
+ let o = Math.min(s.len2, r.len), a = n.length;
857
+ if (s.ins == -1) {
858
+ let u = r.ins == -1 ? -1 : r.off ? 0 : r.ins;
859
+ k(n, o, u, h), i && u && b(i, n, r.text);
860
+ } else
861
+ r.ins == -1 ? (k(n, s.off ? 0 : s.len, o, h), i && b(i, n, s.textBit(o))) : (k(n, s.off ? 0 : s.len, r.off ? 0 : r.ins, h), i && !r.off && b(i, n, r.text));
862
+ h = (s.ins > o || r.ins >= 0 && r.len > o) && (h || n.length > a), s.forward2(o), r.forward(o);
863
+ }
864
+ }
865
+ }
866
+ }
867
+ class z {
868
+ constructor(e) {
869
+ this.set = e, this.i = 0, this.next();
870
+ }
871
+ next() {
872
+ let { sections: e } = this.set;
873
+ this.i < e.length ? (this.len = e[this.i++], this.ins = e[this.i++]) : (this.len = 0, this.ins = -2), this.off = 0;
874
+ }
875
+ get done() {
876
+ return this.ins == -2;
877
+ }
878
+ get len2() {
879
+ return this.ins < 0 ? this.len : this.ins;
880
+ }
881
+ get text() {
882
+ let { inserted: e } = this.set, t = this.i - 2 >> 1;
883
+ return t >= e.length ? x.empty : e[t];
884
+ }
885
+ textBit(e) {
886
+ let { inserted: t } = this.set, n = this.i - 2 >> 1;
887
+ return n >= t.length && !e ? x.empty : t[n].slice(this.off, e == null ? void 0 : this.off + e);
888
+ }
889
+ forward(e) {
890
+ e == this.len ? this.next() : (this.len -= e, this.off += e);
891
+ }
892
+ forward2(e) {
893
+ this.ins == -1 ? this.forward(e) : e == this.ins ? this.next() : (this.ins -= e, this.off += e);
894
+ }
895
+ }
896
+ class B {
897
+ constructor(e, t, n) {
898
+ this.from = e, this.to = t, this.flags = n;
899
+ }
900
+ /**
901
+ The anchor of the range—the side that doesn't move when you
902
+ extend it.
903
+ */
904
+ get anchor() {
905
+ return this.flags & 32 ? this.to : this.from;
906
+ }
907
+ /**
908
+ The head of the range, which is moved when the range is
909
+ [extended](https://codemirror.net/6/docs/ref/#state.SelectionRange.extend).
910
+ */
911
+ get head() {
912
+ return this.flags & 32 ? this.from : this.to;
913
+ }
914
+ /**
915
+ True when `anchor` and `head` are at the same position.
916
+ */
917
+ get empty() {
918
+ return this.from == this.to;
919
+ }
920
+ /**
921
+ If this is a cursor that is explicitly associated with the
922
+ character on one of its sides, this returns the side. -1 means
923
+ the character before its position, 1 the character after, and 0
924
+ means no association.
925
+ */
926
+ get assoc() {
927
+ return this.flags & 8 ? -1 : this.flags & 16 ? 1 : 0;
928
+ }
929
+ /**
930
+ The bidirectional text level associated with this cursor, if
931
+ any.
932
+ */
933
+ get bidiLevel() {
934
+ let e = this.flags & 7;
935
+ return e == 7 ? null : e;
936
+ }
937
+ /**
938
+ The goal column (stored vertical offset) associated with a
939
+ cursor. This is used to preserve the vertical position when
940
+ [moving](https://codemirror.net/6/docs/ref/#view.EditorView.moveVertically) across
941
+ lines of different length.
942
+ */
943
+ get goalColumn() {
944
+ let e = this.flags >> 6;
945
+ return e == 16777215 ? void 0 : e;
946
+ }
947
+ /**
948
+ Map this range through a change, producing a valid range in the
949
+ updated document.
950
+ */
951
+ map(e, t = -1) {
952
+ let n, i;
953
+ return this.empty ? n = i = e.mapPos(this.from, t) : (n = e.mapPos(this.from, 1), i = e.mapPos(this.to, -1)), n == this.from && i == this.to ? this : new B(n, i, this.flags);
954
+ }
955
+ /**
956
+ Extend this range to cover at least `from` to `to`.
957
+ */
958
+ extend(e, t = e) {
959
+ if (e <= this.anchor && t >= this.anchor)
960
+ return p.range(e, t);
961
+ let n = Math.abs(e - this.anchor) > Math.abs(t - this.anchor) ? e : t;
962
+ return p.range(this.anchor, n);
963
+ }
964
+ /**
965
+ Compare this range to another range.
966
+ */
967
+ eq(e, t = !1) {
968
+ return this.anchor == e.anchor && this.head == e.head && this.goalColumn == e.goalColumn && (!t || !this.empty || this.assoc == e.assoc);
969
+ }
970
+ /**
971
+ Return a JSON-serializable object representing the range.
972
+ */
973
+ toJSON() {
974
+ return { anchor: this.anchor, head: this.head };
975
+ }
976
+ /**
977
+ Convert a JSON representation of a range to a `SelectionRange`
978
+ instance.
979
+ */
980
+ static fromJSON(e) {
981
+ if (!e || typeof e.anchor != "number" || typeof e.head != "number")
982
+ throw new RangeError("Invalid JSON representation for SelectionRange");
983
+ return p.range(e.anchor, e.head);
984
+ }
985
+ /**
986
+ @internal
987
+ */
988
+ static create(e, t, n) {
989
+ return new B(e, t, n);
990
+ }
991
+ }
992
+ class p {
993
+ constructor(e, t) {
994
+ this.ranges = e, this.mainIndex = t;
995
+ }
996
+ /**
997
+ Map a selection through a change. Used to adjust the selection
998
+ position for changes.
999
+ */
1000
+ map(e, t = -1) {
1001
+ return e.empty ? this : p.create(this.ranges.map((n) => n.map(e, t)), this.mainIndex);
1002
+ }
1003
+ /**
1004
+ Compare this selection to another selection. By default, ranges
1005
+ are compared only by position. When `includeAssoc` is true,
1006
+ cursor ranges must also have the same
1007
+ [`assoc`](https://codemirror.net/6/docs/ref/#state.SelectionRange.assoc) value.
1008
+ */
1009
+ eq(e, t = !1) {
1010
+ if (this.ranges.length != e.ranges.length || this.mainIndex != e.mainIndex)
1011
+ return !1;
1012
+ for (let n = 0; n < this.ranges.length; n++)
1013
+ if (!this.ranges[n].eq(e.ranges[n], t))
1014
+ return !1;
1015
+ return !0;
1016
+ }
1017
+ /**
1018
+ Get the primary selection range. Usually, you should make sure
1019
+ your code applies to _all_ ranges, by using methods like
1020
+ [`changeByRange`](https://codemirror.net/6/docs/ref/#state.EditorState.changeByRange).
1021
+ */
1022
+ get main() {
1023
+ return this.ranges[this.mainIndex];
1024
+ }
1025
+ /**
1026
+ Make sure the selection only has one range. Returns a selection
1027
+ holding only the main range from this selection.
1028
+ */
1029
+ asSingle() {
1030
+ return this.ranges.length == 1 ? this : new p([this.main], 0);
1031
+ }
1032
+ /**
1033
+ Extend this selection with an extra range.
1034
+ */
1035
+ addRange(e, t = !0) {
1036
+ return p.create([e].concat(this.ranges), t ? 0 : this.mainIndex + 1);
1037
+ }
1038
+ /**
1039
+ Replace a given range with another range, and then normalize the
1040
+ selection to merge and sort ranges if necessary.
1041
+ */
1042
+ replaceRange(e, t = this.mainIndex) {
1043
+ let n = this.ranges.slice();
1044
+ return n[t] = e, p.create(n, this.mainIndex);
1045
+ }
1046
+ /**
1047
+ Convert this selection to an object that can be serialized to
1048
+ JSON.
1049
+ */
1050
+ toJSON() {
1051
+ return { ranges: this.ranges.map((e) => e.toJSON()), main: this.mainIndex };
1052
+ }
1053
+ /**
1054
+ Create a selection from a JSON representation.
1055
+ */
1056
+ static fromJSON(e) {
1057
+ if (!e || !Array.isArray(e.ranges) || typeof e.main != "number" || e.main >= e.ranges.length)
1058
+ throw new RangeError("Invalid JSON representation for EditorSelection");
1059
+ return new p(e.ranges.map((t) => B.fromJSON(t)), e.main);
1060
+ }
1061
+ /**
1062
+ Create a selection holding a single range.
1063
+ */
1064
+ static single(e, t = e) {
1065
+ return new p([p.range(e, t)], 0);
1066
+ }
1067
+ /**
1068
+ Sort and merge the given set of ranges, creating a valid
1069
+ selection.
1070
+ */
1071
+ static create(e, t = 0) {
1072
+ if (e.length == 0)
1073
+ throw new RangeError("A selection needs at least one range");
1074
+ for (let n = 0, i = 0; i < e.length; i++) {
1075
+ let s = e[i];
1076
+ if (s.empty ? s.from <= n : s.from < n)
1077
+ return p.normalized(e.slice(), t);
1078
+ n = s.to;
1079
+ }
1080
+ return new p(e, t);
1081
+ }
1082
+ /**
1083
+ Create a cursor selection range at the given position. You can
1084
+ safely ignore the optional arguments in most situations.
1085
+ */
1086
+ static cursor(e, t = 0, n, i) {
1087
+ return B.create(e, e, (t == 0 ? 0 : t < 0 ? 8 : 16) | (n == null ? 7 : Math.min(6, n)) | (i ?? 16777215) << 6);
1088
+ }
1089
+ /**
1090
+ Create a selection range.
1091
+ */
1092
+ static range(e, t, n, i) {
1093
+ let s = (n ?? 16777215) << 6 | (i == null ? 7 : Math.min(6, i));
1094
+ return t < e ? B.create(t, e, 48 | s) : B.create(e, t, (t > e ? 8 : 0) | s);
1095
+ }
1096
+ /**
1097
+ @internal
1098
+ */
1099
+ static normalized(e, t = 0) {
1100
+ let n = e[t];
1101
+ e.sort((i, s) => i.from - s.from), t = e.indexOf(n);
1102
+ for (let i = 1; i < e.length; i++) {
1103
+ let s = e[i], r = e[i - 1];
1104
+ if (s.empty ? s.from <= r.to : s.from < r.to) {
1105
+ let h = r.from, o = Math.max(s.to, r.to);
1106
+ i <= t && t--, e.splice(--i, 2, s.anchor > s.head ? p.range(o, h) : p.range(h, o));
1107
+ }
1108
+ }
1109
+ return new p(e, t);
1110
+ }
1111
+ }
1112
+ function Ee(l, e) {
1113
+ for (let t of l.ranges)
1114
+ if (t.to > e)
1115
+ throw new RangeError("Selection points outside of document");
1116
+ }
1117
+ let ge = 0;
1118
+ class A {
1119
+ constructor(e, t, n, i, s) {
1120
+ this.combine = e, this.compareInput = t, this.compare = n, this.isStatic = i, this.id = ge++, this.default = e([]), this.extensions = typeof s == "function" ? s(this) : s;
1121
+ }
1122
+ /**
1123
+ Returns a facet reader for this facet, which can be used to
1124
+ [read](https://codemirror.net/6/docs/ref/#state.EditorState.facet) it but not to define values for it.
1125
+ */
1126
+ get reader() {
1127
+ return this;
1128
+ }
1129
+ /**
1130
+ Define a new facet.
1131
+ */
1132
+ static define(e = {}) {
1133
+ return new A(e.combine || ((t) => t), e.compareInput || ((t, n) => t === n), e.compare || (e.combine ? (t, n) => t === n : pe), !!e.static, e.enables);
1134
+ }
1135
+ /**
1136
+ Returns an extension that adds the given value to this facet.
1137
+ */
1138
+ of(e) {
1139
+ return new X([], this, 0, e);
1140
+ }
1141
+ /**
1142
+ Create an extension that computes a value for the facet from a
1143
+ state. You must take care to declare the parts of the state that
1144
+ this value depends on, since your function is only called again
1145
+ for a new state when one of those parts changed.
1146
+
1147
+ In cases where your value depends only on a single field, you'll
1148
+ want to use the [`from`](https://codemirror.net/6/docs/ref/#state.Facet.from) method instead.
1149
+ */
1150
+ compute(e, t) {
1151
+ if (this.isStatic)
1152
+ throw new Error("Can't compute a static facet");
1153
+ return new X(e, this, 1, t);
1154
+ }
1155
+ /**
1156
+ Create an extension that computes zero or more values for this
1157
+ facet from a state.
1158
+ */
1159
+ computeN(e, t) {
1160
+ if (this.isStatic)
1161
+ throw new Error("Can't compute a static facet");
1162
+ return new X(e, this, 2, t);
1163
+ }
1164
+ from(e, t) {
1165
+ return t || (t = (n) => n), this.compute([e], (n) => t(n.field(e)));
1166
+ }
1167
+ }
1168
+ function pe(l, e) {
1169
+ return l == e || l.length == e.length && l.every((t, n) => t === e[n]);
1170
+ }
1171
+ class X {
1172
+ constructor(e, t, n, i) {
1173
+ this.dependencies = e, this.facet = t, this.type = n, this.value = i, this.id = ge++;
1174
+ }
1175
+ dynamicSlot(e) {
1176
+ var t;
1177
+ let n = this.value, i = this.facet.compareInput, s = this.id, r = e[s] >> 1, h = this.type == 2, o = !1, a = !1, u = [];
1178
+ for (let f of this.dependencies)
1179
+ f == "doc" ? o = !0 : f == "selection" ? a = !0 : ((t = e[f.id]) !== null && t !== void 0 ? t : 1) & 1 || u.push(e[f.id]);
1180
+ return {
1181
+ create(f) {
1182
+ return f.values[r] = n(f), 1;
1183
+ },
1184
+ update(f, d) {
1185
+ if (o && d.docChanged || a && (d.docChanged || d.selection) || he(f, u)) {
1186
+ let c = n(f);
1187
+ if (h ? !xe(c, f.values[r], i) : !i(c, f.values[r]))
1188
+ return f.values[r] = c, 1;
1189
+ }
1190
+ return 0;
1191
+ },
1192
+ reconfigure: (f, d) => {
1193
+ let c, g = d.config.address[s];
1194
+ if (g != null) {
1195
+ let E = j(d, g);
1196
+ if (this.dependencies.every((v) => v instanceof A ? d.facet(v) === f.facet(v) : v instanceof L ? d.field(v, !1) == f.field(v, !1) : !0) || (h ? xe(c = n(f), E, i) : i(c = n(f), E)))
1197
+ return f.values[r] = E, 0;
1198
+ } else
1199
+ c = n(f);
1200
+ return f.values[r] = c, 1;
1201
+ }
1202
+ };
1203
+ }
1204
+ }
1205
+ function xe(l, e, t) {
1206
+ if (l.length != e.length)
1207
+ return !1;
1208
+ for (let n = 0; n < l.length; n++)
1209
+ if (!t(l[n], e[n]))
1210
+ return !1;
1211
+ return !0;
1212
+ }
1213
+ function he(l, e) {
1214
+ let t = !1;
1215
+ for (let n of e)
1216
+ $(l, n) & 1 && (t = !0);
1217
+ return t;
1218
+ }
1219
+ function qe(l, e, t) {
1220
+ let n = t.map((o) => l[o.id]), i = t.map((o) => o.type), s = n.filter((o) => !(o & 1)), r = l[e.id] >> 1;
1221
+ function h(o) {
1222
+ let a = [];
1223
+ for (let u = 0; u < n.length; u++) {
1224
+ let f = j(o, n[u]);
1225
+ if (i[u] == 2)
1226
+ for (let d of f)
1227
+ a.push(d);
1228
+ else
1229
+ a.push(f);
1230
+ }
1231
+ return e.combine(a);
1232
+ }
1233
+ return {
1234
+ create(o) {
1235
+ for (let a of n)
1236
+ $(o, a);
1237
+ return o.values[r] = h(o), 1;
1238
+ },
1239
+ update(o, a) {
1240
+ if (!he(o, s))
1241
+ return 0;
1242
+ let u = h(o);
1243
+ return e.compare(u, o.values[r]) ? 0 : (o.values[r] = u, 1);
1244
+ },
1245
+ reconfigure(o, a) {
1246
+ let u = he(o, n), f = a.config.facets[e.id], d = a.facet(e);
1247
+ if (f && !u && pe(t, f))
1248
+ return o.values[r] = d, 0;
1249
+ let c = h(o);
1250
+ return e.compare(c, d) ? (o.values[r] = d, 0) : (o.values[r] = c, 1);
1251
+ }
1252
+ };
1253
+ }
1254
+ const G = /* @__PURE__ */ A.define({ static: !0 });
1255
+ class L {
1256
+ constructor(e, t, n, i, s) {
1257
+ this.id = e, this.createF = t, this.updateF = n, this.compareF = i, this.spec = s, this.provides = void 0;
1258
+ }
1259
+ /**
1260
+ Define a state field.
1261
+ */
1262
+ static define(e) {
1263
+ let t = new L(ge++, e.create, e.update, e.compare || ((n, i) => n === i), e);
1264
+ return e.provide && (t.provides = e.provide(t)), t;
1265
+ }
1266
+ create(e) {
1267
+ let t = e.facet(G).find((n) => n.field == this);
1268
+ return ((t == null ? void 0 : t.create) || this.createF)(e);
1269
+ }
1270
+ /**
1271
+ @internal
1272
+ */
1273
+ slot(e) {
1274
+ let t = e[this.id] >> 1;
1275
+ return {
1276
+ create: (n) => (n.values[t] = this.create(n), 1),
1277
+ update: (n, i) => {
1278
+ let s = n.values[t], r = this.updateF(s, i);
1279
+ return this.compareF(s, r) ? 0 : (n.values[t] = r, 1);
1280
+ },
1281
+ reconfigure: (n, i) => {
1282
+ let s = n.facet(G), r = i.facet(G), h;
1283
+ return (h = s.find((o) => o.field == this)) && h != r.find((o) => o.field == this) ? (n.values[t] = h.create(n), 1) : i.config.address[this.id] != null ? (n.values[t] = i.field(this), 0) : (n.values[t] = this.create(n), 1);
1284
+ }
1285
+ };
1286
+ }
1287
+ /**
1288
+ Returns an extension that enables this field and overrides the
1289
+ way it is initialized. Can be useful when you need to provide a
1290
+ non-default starting value for the field.
1291
+ */
1292
+ init(e) {
1293
+ return [this, G.of({ field: this, create: e })];
1294
+ }
1295
+ /**
1296
+ State field instances can be used as
1297
+ [`Extension`](https://codemirror.net/6/docs/ref/#state.Extension) values to enable the field in a
1298
+ given state.
1299
+ */
1300
+ get extension() {
1301
+ return this;
1302
+ }
1303
+ }
1304
+ const T = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
1305
+ function V(l) {
1306
+ return (e) => new Oe(e, l);
1307
+ }
1308
+ const st = {
1309
+ /**
1310
+ The highest precedence level, for extensions that should end up
1311
+ near the start of the precedence ordering.
1312
+ */
1313
+ highest: /* @__PURE__ */ V(T.highest),
1314
+ /**
1315
+ A higher-than-default precedence, for extensions that should
1316
+ come before those with default precedence.
1317
+ */
1318
+ high: /* @__PURE__ */ V(T.high),
1319
+ /**
1320
+ The default precedence, which is also used for extensions
1321
+ without an explicit precedence.
1322
+ */
1323
+ default: /* @__PURE__ */ V(T.default),
1324
+ /**
1325
+ A lower-than-default precedence.
1326
+ */
1327
+ low: /* @__PURE__ */ V(T.low),
1328
+ /**
1329
+ The lowest precedence level. Meant for things that should end up
1330
+ near the end of the extension order.
1331
+ */
1332
+ lowest: /* @__PURE__ */ V(T.lowest)
1333
+ };
1334
+ class Oe {
1335
+ constructor(e, t) {
1336
+ this.inner = e, this.prec = t;
1337
+ }
1338
+ }
1339
+ class te {
1340
+ /**
1341
+ Create an instance of this compartment to add to your [state
1342
+ configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
1343
+ */
1344
+ of(e) {
1345
+ return new oe(this, e);
1346
+ }
1347
+ /**
1348
+ Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that
1349
+ reconfigures this compartment.
1350
+ */
1351
+ reconfigure(e) {
1352
+ return te.reconfigure.of({ compartment: this, extension: e });
1353
+ }
1354
+ /**
1355
+ Get the current content of the compartment in the state, or
1356
+ `undefined` if it isn't present.
1357
+ */
1358
+ get(e) {
1359
+ return e.config.compartments.get(this);
1360
+ }
1361
+ }
1362
+ class oe {
1363
+ constructor(e, t) {
1364
+ this.compartment = e, this.inner = t;
1365
+ }
1366
+ }
1367
+ class Z {
1368
+ constructor(e, t, n, i, s, r) {
1369
+ for (this.base = e, this.compartments = t, this.dynamicSlots = n, this.address = i, this.staticValues = s, this.facets = r, this.statusTemplate = []; this.statusTemplate.length < n.length; )
1370
+ this.statusTemplate.push(
1371
+ 0
1372
+ /* SlotStatus.Unresolved */
1373
+ );
1374
+ }
1375
+ staticFacet(e) {
1376
+ let t = this.address[e.id];
1377
+ return t == null ? e.default : this.staticValues[t >> 1];
1378
+ }
1379
+ static resolve(e, t, n) {
1380
+ let i = [], s = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ new Map();
1381
+ for (let d of We(e, t, r))
1382
+ d instanceof L ? i.push(d) : (s[d.facet.id] || (s[d.facet.id] = [])).push(d);
1383
+ let h = /* @__PURE__ */ Object.create(null), o = [], a = [];
1384
+ for (let d of i)
1385
+ h[d.id] = a.length << 1, a.push((c) => d.slot(c));
1386
+ let u = n == null ? void 0 : n.config.facets;
1387
+ for (let d in s) {
1388
+ let c = s[d], g = c[0].facet, E = u && u[d] || [];
1389
+ if (c.every(
1390
+ (v) => v.type == 0
1391
+ /* Provider.Static */
1392
+ ))
1393
+ if (h[g.id] = o.length << 1 | 1, pe(E, c))
1394
+ o.push(n.facet(g));
1395
+ else {
1396
+ let v = g.combine(c.map((ne) => ne.value));
1397
+ o.push(n && g.compare(v, n.facet(g)) ? n.facet(g) : v);
1398
+ }
1399
+ else {
1400
+ for (let v of c)
1401
+ v.type == 0 ? (h[v.id] = o.length << 1 | 1, o.push(v.value)) : (h[v.id] = a.length << 1, a.push((ne) => v.dynamicSlot(ne)));
1402
+ h[g.id] = a.length << 1, a.push((v) => qe(v, g, c));
1403
+ }
1404
+ }
1405
+ let f = a.map((d) => d(h));
1406
+ return new Z(e, r, f, h, o, s);
1407
+ }
1408
+ }
1409
+ function We(l, e, t) {
1410
+ let n = [[], [], [], [], []], i = /* @__PURE__ */ new Map();
1411
+ function s(r, h) {
1412
+ let o = i.get(r);
1413
+ if (o != null) {
1414
+ if (o <= h)
1415
+ return;
1416
+ let a = n[o].indexOf(r);
1417
+ a > -1 && n[o].splice(a, 1), r instanceof oe && t.delete(r.compartment);
1418
+ }
1419
+ if (i.set(r, h), Array.isArray(r))
1420
+ for (let a of r)
1421
+ s(a, h);
1422
+ else if (r instanceof oe) {
1423
+ if (t.has(r.compartment))
1424
+ throw new RangeError("Duplicate use of compartment in extensions");
1425
+ let a = e.get(r.compartment) || r.inner;
1426
+ t.set(r.compartment, a), s(a, h);
1427
+ } else if (r instanceof Oe)
1428
+ s(r.inner, r.prec);
1429
+ else if (r instanceof L)
1430
+ n[h].push(r), r.provides && s(r.provides, h);
1431
+ else if (r instanceof X)
1432
+ n[h].push(r), r.facet.extensions && s(r.facet.extensions, T.default);
1433
+ else {
1434
+ let a = r.extension;
1435
+ if (!a)
1436
+ throw new Error(`Unrecognized extension value in extension set (${r}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);
1437
+ s(a, h);
1438
+ }
1439
+ }
1440
+ return s(l, T.default), n.reduce((r, h) => r.concat(h));
1441
+ }
1442
+ function $(l, e) {
1443
+ if (e & 1)
1444
+ return 2;
1445
+ let t = e >> 1, n = l.status[t];
1446
+ if (n == 4)
1447
+ throw new Error("Cyclic dependency between fields and/or facets");
1448
+ if (n & 2)
1449
+ return n;
1450
+ l.status[t] = 4;
1451
+ let i = l.computeSlot(l, l.config.dynamicSlots[t]);
1452
+ return l.status[t] = 2 | i;
1453
+ }
1454
+ function j(l, e) {
1455
+ return e & 1 ? l.config.staticValues[e >> 1] : l.values[e >> 1];
1456
+ }
1457
+ const Ce = /* @__PURE__ */ A.define(), ae = /* @__PURE__ */ A.define({
1458
+ combine: (l) => l.some((e) => e),
1459
+ static: !0
1460
+ }), Me = /* @__PURE__ */ A.define({
1461
+ combine: (l) => l.length ? l[0] : void 0,
1462
+ static: !0
1463
+ }), be = /* @__PURE__ */ A.define(), Re = /* @__PURE__ */ A.define(), Te = /* @__PURE__ */ A.define(), Be = /* @__PURE__ */ A.define({
1464
+ combine: (l) => l.length ? l[0] : !1
1465
+ });
1466
+ class U {
1467
+ /**
1468
+ @internal
1469
+ */
1470
+ constructor(e, t) {
1471
+ this.type = e, this.value = t;
1472
+ }
1473
+ /**
1474
+ Define a new type of annotation.
1475
+ */
1476
+ static define() {
1477
+ return new Ue();
1478
+ }
1479
+ }
1480
+ class Ue {
1481
+ /**
1482
+ Create an instance of this annotation.
1483
+ */
1484
+ of(e) {
1485
+ return new U(this, e);
1486
+ }
1487
+ }
1488
+ class Ge {
1489
+ /**
1490
+ @internal
1491
+ */
1492
+ constructor(e) {
1493
+ this.map = e;
1494
+ }
1495
+ /**
1496
+ Create a [state effect](https://codemirror.net/6/docs/ref/#state.StateEffect) instance of this
1497
+ type.
1498
+ */
1499
+ of(e) {
1500
+ return new I(this, e);
1501
+ }
1502
+ }
1503
+ class I {
1504
+ /**
1505
+ @internal
1506
+ */
1507
+ constructor(e, t) {
1508
+ this.type = e, this.value = t;
1509
+ }
1510
+ /**
1511
+ Map this effect through a position mapping. Will return
1512
+ `undefined` when that ends up deleting the effect.
1513
+ */
1514
+ map(e) {
1515
+ let t = this.type.map(this.value, e);
1516
+ return t === void 0 ? void 0 : t == this.value ? this : new I(this.type, t);
1517
+ }
1518
+ /**
1519
+ Tells you whether this effect object is of a given
1520
+ [type](https://codemirror.net/6/docs/ref/#state.StateEffectType).
1521
+ */
1522
+ is(e) {
1523
+ return this.type == e;
1524
+ }
1525
+ /**
1526
+ Define a new effect type. The type parameter indicates the type
1527
+ of values that his effect holds. It should be a type that
1528
+ doesn't include `undefined`, since that is used in
1529
+ [mapping](https://codemirror.net/6/docs/ref/#state.StateEffect.map) to indicate that an effect is
1530
+ removed.
1531
+ */
1532
+ static define(e = {}) {
1533
+ return new Ge(e.map || ((t) => t));
1534
+ }
1535
+ /**
1536
+ Map an array of effects through a change set.
1537
+ */
1538
+ static mapEffects(e, t) {
1539
+ if (!e.length)
1540
+ return e;
1541
+ let n = [];
1542
+ for (let i of e) {
1543
+ let s = i.map(t);
1544
+ s && n.push(s);
1545
+ }
1546
+ return n;
1547
+ }
1548
+ }
1549
+ I.reconfigure = /* @__PURE__ */ I.define();
1550
+ I.appendConfig = /* @__PURE__ */ I.define();
1551
+ class P {
1552
+ constructor(e, t, n, i, s, r) {
1553
+ this.startState = e, this.changes = t, this.selection = n, this.effects = i, this.annotations = s, this.scrollIntoView = r, this._doc = null, this._state = null, n && Ee(n, t.newLength), s.some((h) => h.type == P.time) || (this.annotations = s.concat(P.time.of(Date.now())));
1554
+ }
1555
+ /**
1556
+ @internal
1557
+ */
1558
+ static create(e, t, n, i, s, r) {
1559
+ return new P(e, t, n, i, s, r);
1560
+ }
1561
+ /**
1562
+ The new document produced by the transaction. Contrary to
1563
+ [`.state`](https://codemirror.net/6/docs/ref/#state.Transaction.state)`.doc`, accessing this won't
1564
+ force the entire new state to be computed right away, so it is
1565
+ recommended that [transaction
1566
+ filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) use this getter
1567
+ when they need to look at the new document.
1568
+ */
1569
+ get newDoc() {
1570
+ return this._doc || (this._doc = this.changes.apply(this.startState.doc));
1571
+ }
1572
+ /**
1573
+ The new selection produced by the transaction. If
1574
+ [`this.selection`](https://codemirror.net/6/docs/ref/#state.Transaction.selection) is undefined,
1575
+ this will [map](https://codemirror.net/6/docs/ref/#state.EditorSelection.map) the start state's
1576
+ current selection through the changes made by the transaction.
1577
+ */
1578
+ get newSelection() {
1579
+ return this.selection || this.startState.selection.map(this.changes);
1580
+ }
1581
+ /**
1582
+ The new state created by the transaction. Computed on demand
1583
+ (but retained for subsequent access), so it is recommended not to
1584
+ access it in [transaction
1585
+ filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) when possible.
1586
+ */
1587
+ get state() {
1588
+ return this._state || this.startState.applyTransaction(this), this._state;
1589
+ }
1590
+ /**
1591
+ Get the value of the given annotation type, if any.
1592
+ */
1593
+ annotation(e) {
1594
+ for (let t of this.annotations)
1595
+ if (t.type == e)
1596
+ return t.value;
1597
+ }
1598
+ /**
1599
+ Indicates whether the transaction changed the document.
1600
+ */
1601
+ get docChanged() {
1602
+ return !this.changes.empty;
1603
+ }
1604
+ /**
1605
+ Indicates whether this transaction reconfigures the state
1606
+ (through a [configuration compartment](https://codemirror.net/6/docs/ref/#state.Compartment) or
1607
+ with a top-level configuration
1608
+ [effect](https://codemirror.net/6/docs/ref/#state.StateEffect^reconfigure).
1609
+ */
1610
+ get reconfigured() {
1611
+ return this.startState.config != this.state.config;
1612
+ }
1613
+ /**
1614
+ Returns true if the transaction has a [user
1615
+ event](https://codemirror.net/6/docs/ref/#state.Transaction^userEvent) annotation that is equal to
1616
+ or more specific than `event`. For example, if the transaction
1617
+ has `"select.pointer"` as user event, `"select"` and
1618
+ `"select.pointer"` will match it.
1619
+ */
1620
+ isUserEvent(e) {
1621
+ let t = this.annotation(P.userEvent);
1622
+ return !!(t && (t == e || t.length > e.length && t.slice(0, e.length) == e && t[e.length] == "."));
1623
+ }
1624
+ }
1625
+ P.time = /* @__PURE__ */ U.define();
1626
+ P.userEvent = /* @__PURE__ */ U.define();
1627
+ P.addToHistory = /* @__PURE__ */ U.define();
1628
+ P.remote = /* @__PURE__ */ U.define();
1629
+ function He(l, e) {
1630
+ let t = [];
1631
+ for (let n = 0, i = 0; ; ) {
1632
+ let s, r;
1633
+ if (n < l.length && (i == e.length || e[i] >= l[n]))
1634
+ s = l[n++], r = l[n++];
1635
+ else if (i < e.length)
1636
+ s = e[i++], r = e[i++];
1637
+ else
1638
+ return t;
1639
+ !t.length || t[t.length - 1] < s ? t.push(s, r) : t[t.length - 1] < r && (t[t.length - 1] = r);
1640
+ }
1641
+ }
1642
+ function Fe(l, e, t) {
1643
+ var n;
1644
+ let i, s, r;
1645
+ return t ? (i = e.changes, s = y.empty(e.changes.length), r = l.changes.compose(e.changes)) : (i = e.changes.map(l.changes), s = l.changes.mapDesc(e.changes, !0), r = l.changes.compose(i)), {
1646
+ changes: r,
1647
+ selection: e.selection ? e.selection.map(s) : (n = l.selection) === null || n === void 0 ? void 0 : n.map(i),
1648
+ effects: I.mapEffects(l.effects, i).concat(I.mapEffects(e.effects, s)),
1649
+ annotations: l.annotations.length ? l.annotations.concat(e.annotations) : e.annotations,
1650
+ scrollIntoView: l.scrollIntoView || e.scrollIntoView
1651
+ };
1652
+ }
1653
+ function ue(l, e, t) {
1654
+ let n = e.selection, i = F(e.annotations);
1655
+ return e.userEvent && (i = i.concat(P.userEvent.of(e.userEvent))), {
1656
+ changes: e.changes instanceof y ? e.changes : y.of(e.changes || [], t, l.facet(Me)),
1657
+ selection: n && (n instanceof p ? n : p.single(n.anchor, n.head)),
1658
+ effects: F(e.effects),
1659
+ annotations: i,
1660
+ scrollIntoView: !!e.scrollIntoView
1661
+ };
1662
+ }
1663
+ function Je(l, e, t) {
1664
+ let n = ue(l, e.length ? e[0] : {}, l.doc.length);
1665
+ e.length && e[0].filter === !1 && (t = !1);
1666
+ for (let s = 1; s < e.length; s++) {
1667
+ e[s].filter === !1 && (t = !1);
1668
+ let r = !!e[s].sequential;
1669
+ n = Fe(n, ue(l, e[s], r ? n.changes.newLength : l.doc.length), r);
1670
+ }
1671
+ let i = P.create(l, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView);
1672
+ return Qe(t ? Ke(i) : i);
1673
+ }
1674
+ function Ke(l) {
1675
+ let e = l.startState, t = !0;
1676
+ for (let i of e.facet(be)) {
1677
+ let s = i(l);
1678
+ if (s === !1) {
1679
+ t = !1;
1680
+ break;
1681
+ }
1682
+ Array.isArray(s) && (t = t === !0 ? s : He(t, s));
1683
+ }
1684
+ if (t !== !0) {
1685
+ let i, s;
1686
+ if (t === !1)
1687
+ s = l.changes.invertedDesc, i = y.empty(e.doc.length);
1688
+ else {
1689
+ let r = l.changes.filter(t);
1690
+ i = r.changes, s = r.filtered.mapDesc(r.changes).invertedDesc;
1691
+ }
1692
+ l = P.create(e, i, l.selection && l.selection.map(s), I.mapEffects(l.effects, s), l.annotations, l.scrollIntoView);
1693
+ }
1694
+ let n = e.facet(Re);
1695
+ for (let i = n.length - 1; i >= 0; i--) {
1696
+ let s = n[i](l);
1697
+ s instanceof P ? l = s : Array.isArray(s) && s.length == 1 && s[0] instanceof P ? l = s[0] : l = Je(e, F(s), !1);
1698
+ }
1699
+ return l;
1700
+ }
1701
+ function Qe(l) {
1702
+ let e = l.startState, t = e.facet(Te), n = l;
1703
+ for (let i = t.length - 1; i >= 0; i--) {
1704
+ let s = t[i](l);
1705
+ s && Object.keys(s).length && (n = Fe(n, ue(e, s, l.changes.newLength), !0));
1706
+ }
1707
+ return n == l ? l : P.create(e, l.changes, l.selection, n.effects, n.annotations, n.scrollIntoView);
1708
+ }
1709
+ const Xe = [];
1710
+ function F(l) {
1711
+ return l == null ? Xe : Array.isArray(l) ? l : [l];
1712
+ }
1713
+ var R = /* @__PURE__ */ function(l) {
1714
+ return l[l.Word = 0] = "Word", l[l.Space = 1] = "Space", l[l.Other = 2] = "Other", l;
1715
+ }(R || (R = {}));
1716
+ const Ye = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
1717
+ let fe;
1718
+ try {
1719
+ fe = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
1720
+ } catch {
1721
+ }
1722
+ function Ze(l) {
1723
+ if (fe)
1724
+ return fe.test(l);
1725
+ for (let e = 0; e < l.length; e++) {
1726
+ let t = l[e];
1727
+ if (/\w/.test(t) || t > "€" && (t.toUpperCase() != t.toLowerCase() || Ye.test(t)))
1728
+ return !0;
1729
+ }
1730
+ return !1;
1731
+ }
1732
+ function je(l) {
1733
+ return (e) => {
1734
+ if (!/\S/.test(e))
1735
+ return R.Space;
1736
+ if (Ze(e))
1737
+ return R.Word;
1738
+ for (let t = 0; t < l.length; t++)
1739
+ if (e.indexOf(l[t]) > -1)
1740
+ return R.Word;
1741
+ return R.Other;
1742
+ };
1743
+ }
1744
+ class w {
1745
+ constructor(e, t, n, i, s, r) {
1746
+ this.config = e, this.doc = t, this.selection = n, this.values = i, this.status = e.statusTemplate.slice(), this.computeSlot = s, r && (r._state = this);
1747
+ for (let h = 0; h < this.config.dynamicSlots.length; h++)
1748
+ $(this, h << 1);
1749
+ this.computeSlot = null;
1750
+ }
1751
+ field(e, t = !0) {
1752
+ let n = this.config.address[e.id];
1753
+ if (n == null) {
1754
+ if (t)
1755
+ throw new RangeError("Field is not present in this state");
1756
+ return;
1757
+ }
1758
+ return $(this, n), j(this, n);
1759
+ }
1760
+ /**
1761
+ Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
1762
+ state. Any number of [transaction specs](https://codemirror.net/6/docs/ref/#state.TransactionSpec)
1763
+ can be passed. Unless
1764
+ [`sequential`](https://codemirror.net/6/docs/ref/#state.TransactionSpec.sequential) is set, the
1765
+ [changes](https://codemirror.net/6/docs/ref/#state.TransactionSpec.changes) (if any) of each spec
1766
+ are assumed to start in the _current_ document (not the document
1767
+ produced by previous specs), and its
1768
+ [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection) and
1769
+ [effects](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) are assumed to refer
1770
+ to the document created by its _own_ changes. The resulting
1771
+ transaction contains the combined effect of all the different
1772
+ specs. For [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection), later
1773
+ specs take precedence over earlier ones.
1774
+ */
1775
+ update(...e) {
1776
+ return Je(this, e, !0);
1777
+ }
1778
+ /**
1779
+ @internal
1780
+ */
1781
+ applyTransaction(e) {
1782
+ let t = this.config, { base: n, compartments: i } = t;
1783
+ for (let h of e.effects)
1784
+ h.is(te.reconfigure) ? (t && (i = /* @__PURE__ */ new Map(), t.compartments.forEach((o, a) => i.set(a, o)), t = null), i.set(h.value.compartment, h.value.extension)) : h.is(I.reconfigure) ? (t = null, n = h.value) : h.is(I.appendConfig) && (t = null, n = F(n).concat(h.value));
1785
+ let s;
1786
+ t ? s = e.startState.values.slice() : (t = Z.resolve(n, i, this), s = new w(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (o, a) => a.reconfigure(o, this), null).values);
1787
+ let r = e.startState.facet(ae) ? e.newSelection : e.newSelection.asSingle();
1788
+ new w(t, e.newDoc, r, s, (h, o) => o.update(h, e), e);
1789
+ }
1790
+ /**
1791
+ Create a [transaction spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec) that
1792
+ replaces every selection range with the given content.
1793
+ */
1794
+ replaceSelection(e) {
1795
+ return typeof e == "string" && (e = this.toText(e)), this.changeByRange((t) => ({
1796
+ changes: { from: t.from, to: t.to, insert: e },
1797
+ range: p.cursor(t.from + e.length)
1798
+ }));
1799
+ }
1800
+ /**
1801
+ Create a set of changes and a new selection by running the given
1802
+ function for each range in the active selection. The function
1803
+ can return an optional set of changes (in the coordinate space
1804
+ of the start document), plus an updated range (in the coordinate
1805
+ space of the document produced by the call's own changes). This
1806
+ method will merge all the changes and ranges into a single
1807
+ changeset and selection, and return it as a [transaction
1808
+ spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec), which can be passed to
1809
+ [`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update).
1810
+ */
1811
+ changeByRange(e) {
1812
+ let t = this.selection, n = e(t.ranges[0]), i = this.changes(n.changes), s = [n.range], r = F(n.effects);
1813
+ for (let h = 1; h < t.ranges.length; h++) {
1814
+ let o = e(t.ranges[h]), a = this.changes(o.changes), u = a.map(i);
1815
+ for (let d = 0; d < h; d++)
1816
+ s[d] = s[d].map(u);
1817
+ let f = i.mapDesc(a, !0);
1818
+ s.push(o.range.map(f)), i = i.compose(u), r = I.mapEffects(r, u).concat(I.mapEffects(F(o.effects), f));
1819
+ }
1820
+ return {
1821
+ changes: i,
1822
+ selection: p.create(s, t.mainIndex),
1823
+ effects: r
1824
+ };
1825
+ }
1826
+ /**
1827
+ Create a [change set](https://codemirror.net/6/docs/ref/#state.ChangeSet) from the given change
1828
+ description, taking the state's document length and line
1829
+ separator into account.
1830
+ */
1831
+ changes(e = []) {
1832
+ return e instanceof y ? e : y.of(e, this.doc.length, this.facet(w.lineSeparator));
1833
+ }
1834
+ /**
1835
+ Using the state's [line
1836
+ separator](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator), create a
1837
+ [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
1838
+ */
1839
+ toText(e) {
1840
+ return x.of(e.split(this.facet(w.lineSeparator) || se));
1841
+ }
1842
+ /**
1843
+ Return the given range of the document as a string.
1844
+ */
1845
+ sliceDoc(e = 0, t = this.doc.length) {
1846
+ return this.doc.sliceString(e, t, this.lineBreak);
1847
+ }
1848
+ /**
1849
+ Get the value of a state [facet](https://codemirror.net/6/docs/ref/#state.Facet).
1850
+ */
1851
+ facet(e) {
1852
+ let t = this.config.address[e.id];
1853
+ return t == null ? e.default : ($(this, t), j(this, t));
1854
+ }
1855
+ /**
1856
+ Convert this state to a JSON-serializable object. When custom
1857
+ fields should be serialized, you can pass them in as an object
1858
+ mapping property names (in the resulting object, which should
1859
+ not use `doc` or `selection`) to fields.
1860
+ */
1861
+ toJSON(e) {
1862
+ let t = {
1863
+ doc: this.sliceDoc(),
1864
+ selection: this.selection.toJSON()
1865
+ };
1866
+ if (e)
1867
+ for (let n in e) {
1868
+ let i = e[n];
1869
+ i instanceof L && this.config.address[i.id] != null && (t[n] = i.spec.toJSON(this.field(e[n]), this));
1870
+ }
1871
+ return t;
1872
+ }
1873
+ /**
1874
+ Deserialize a state from its JSON representation. When custom
1875
+ fields should be deserialized, pass the same object you passed
1876
+ to [`toJSON`](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) when serializing as
1877
+ third argument.
1878
+ */
1879
+ static fromJSON(e, t = {}, n) {
1880
+ if (!e || typeof e.doc != "string")
1881
+ throw new RangeError("Invalid JSON representation for EditorState");
1882
+ let i = [];
1883
+ if (n) {
1884
+ for (let s in n)
1885
+ if (Object.prototype.hasOwnProperty.call(e, s)) {
1886
+ let r = n[s], h = e[s];
1887
+ i.push(r.init((o) => r.spec.fromJSON(h, o)));
1888
+ }
1889
+ }
1890
+ return w.create({
1891
+ doc: e.doc,
1892
+ selection: p.fromJSON(e.selection),
1893
+ extensions: t.extensions ? i.concat([t.extensions]) : i
1894
+ });
1895
+ }
1896
+ /**
1897
+ Create a new state. You'll usually only need this when
1898
+ initializing an editor—updated states are created by applying
1899
+ transactions.
1900
+ */
1901
+ static create(e = {}) {
1902
+ let t = Z.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof x ? e.doc : x.of((e.doc || "").split(t.staticFacet(w.lineSeparator) || se)), i = e.selection ? e.selection instanceof p ? e.selection : p.single(e.selection.anchor, e.selection.head) : p.single(0);
1903
+ return Ee(i, n.length), t.staticFacet(ae) || (i = i.asSingle()), new w(t, n, i, t.dynamicSlots.map(() => null), (s, r) => r.create(s), null);
1904
+ }
1905
+ /**
1906
+ The size (in columns) of a tab in the document, determined by
1907
+ the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet.
1908
+ */
1909
+ get tabSize() {
1910
+ return this.facet(w.tabSize);
1911
+ }
1912
+ /**
1913
+ Get the proper [line-break](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)
1914
+ string for this state.
1915
+ */
1916
+ get lineBreak() {
1917
+ return this.facet(w.lineSeparator) || `
1918
+ `;
1919
+ }
1920
+ /**
1921
+ Returns true when the editor is
1922
+ [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only.
1923
+ */
1924
+ get readOnly() {
1925
+ return this.facet(Be);
1926
+ }
1927
+ /**
1928
+ Look up a translation for the given phrase (via the
1929
+ [`phrases`](https://codemirror.net/6/docs/ref/#state.EditorState^phrases) facet), or return the
1930
+ original string if no translation is found.
1931
+
1932
+ If additional arguments are passed, they will be inserted in
1933
+ place of markers like `$1` (for the first value) and `$2`, etc.
1934
+ A single `$` is equivalent to `$1`, and `$$` will produce a
1935
+ literal dollar sign.
1936
+ */
1937
+ phrase(e, ...t) {
1938
+ for (let n of this.facet(w.phrases))
1939
+ if (Object.prototype.hasOwnProperty.call(n, e)) {
1940
+ e = n[e];
1941
+ break;
1942
+ }
1943
+ return t.length && (e = e.replace(/\$(\$|\d*)/g, (n, i) => {
1944
+ if (i == "$")
1945
+ return "$";
1946
+ let s = +(i || 1);
1947
+ return !s || s > t.length ? n : t[s - 1];
1948
+ })), e;
1949
+ }
1950
+ /**
1951
+ Find the values for a given language data field, provided by the
1952
+ the [`languageData`](https://codemirror.net/6/docs/ref/#state.EditorState^languageData) facet.
1953
+
1954
+ Examples of language data fields are...
1955
+
1956
+ - [`"commentTokens"`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) for specifying
1957
+ comment syntax.
1958
+ - [`"autocomplete"`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.override)
1959
+ for providing language-specific completion sources.
1960
+ - [`"wordChars"`](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) for adding
1961
+ characters that should be considered part of words in this
1962
+ language.
1963
+ - [`"closeBrackets"`](https://codemirror.net/6/docs/ref/#autocomplete.CloseBracketConfig) controls
1964
+ bracket closing behavior.
1965
+ */
1966
+ languageDataAt(e, t, n = -1) {
1967
+ let i = [];
1968
+ for (let s of this.facet(Ce))
1969
+ for (let r of s(this, t, n))
1970
+ Object.prototype.hasOwnProperty.call(r, e) && i.push(r[e]);
1971
+ return i;
1972
+ }
1973
+ /**
1974
+ Return a function that can categorize strings (expected to
1975
+ represent a single [grapheme cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak))
1976
+ into one of:
1977
+
1978
+ - Word (contains an alphanumeric character or a character
1979
+ explicitly listed in the local language's `"wordChars"`
1980
+ language data, which should be a string)
1981
+ - Space (contains only whitespace)
1982
+ - Other (anything else)
1983
+ */
1984
+ charCategorizer(e) {
1985
+ let t = this.languageDataAt("wordChars", e);
1986
+ return je(t.length ? t[0] : "");
1987
+ }
1988
+ /**
1989
+ Find the word at the given position, meaning the range
1990
+ containing all [word](https://codemirror.net/6/docs/ref/#state.CharCategory.Word) characters
1991
+ around it. If no word characters are adjacent to the position,
1992
+ this returns null.
1993
+ */
1994
+ wordAt(e) {
1995
+ let { text: t, from: n, length: i } = this.doc.lineAt(e), s = this.charCategorizer(e), r = e - n, h = e - n;
1996
+ for (; r > 0; ) {
1997
+ let o = Y(t, r, !1);
1998
+ if (s(t.slice(o, r)) != R.Word)
1999
+ break;
2000
+ r = o;
2001
+ }
2002
+ for (; h < i; ) {
2003
+ let o = Y(t, h);
2004
+ if (s(t.slice(h, o)) != R.Word)
2005
+ break;
2006
+ h = o;
2007
+ }
2008
+ return r == h ? null : p.range(r + n, h + n);
2009
+ }
2010
+ }
2011
+ w.allowMultipleSelections = ae;
2012
+ w.tabSize = /* @__PURE__ */ A.define({
2013
+ combine: (l) => l.length ? l[0] : 4
2014
+ });
2015
+ w.lineSeparator = Me;
2016
+ w.readOnly = Be;
2017
+ w.phrases = /* @__PURE__ */ A.define({
2018
+ compare(l, e) {
2019
+ let t = Object.keys(l), n = Object.keys(e);
2020
+ return t.length == n.length && t.every((i) => l[i] == e[i]);
2021
+ }
2022
+ });
2023
+ w.languageData = Ce;
2024
+ w.changeFilter = be;
2025
+ w.transactionFilter = Re;
2026
+ w.transactionExtender = Te;
2027
+ te.reconfigure = /* @__PURE__ */ I.define();
2028
+ function rt(l, e, t = {}) {
2029
+ let n = {};
2030
+ for (let i of l)
2031
+ for (let s of Object.keys(i)) {
2032
+ let r = i[s], h = n[s];
2033
+ if (h === void 0)
2034
+ n[s] = r;
2035
+ else if (!(h === r || r === void 0))
2036
+ if (Object.hasOwnProperty.call(t, s))
2037
+ n[s] = t[s](h, r);
2038
+ else
2039
+ throw new Error("Config merge conflict for field " + s);
2040
+ }
2041
+ for (let i in e)
2042
+ n[i] === void 0 && (n[i] = e[i]);
2043
+ return n;
2044
+ }
2045
+ class _ {
2046
+ /**
2047
+ Compare this value with another value. Used when comparing
2048
+ rangesets. The default implementation compares by identity.
2049
+ Unless you are only creating a fixed number of unique instances
2050
+ of your value type, it is a good idea to implement this
2051
+ properly.
2052
+ */
2053
+ eq(e) {
2054
+ return this == e;
2055
+ }
2056
+ /**
2057
+ Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value.
2058
+ */
2059
+ range(e, t = e) {
2060
+ return q.create(e, t, this);
2061
+ }
2062
+ }
2063
+ _.prototype.startSide = _.prototype.endSide = 0;
2064
+ _.prototype.point = !1;
2065
+ _.prototype.mapMode = M.TrackDel;
2066
+ function me(l, e) {
2067
+ return l == e || l.constructor == e.constructor && l.eq(e);
2068
+ }
2069
+ class q {
2070
+ constructor(e, t, n) {
2071
+ this.from = e, this.to = t, this.value = n;
2072
+ }
2073
+ /**
2074
+ @internal
2075
+ */
2076
+ static create(e, t, n) {
2077
+ return new q(e, t, n);
2078
+ }
2079
+ }
2080
+ function ce(l, e) {
2081
+ return l.from - e.from || l.value.startSide - e.value.startSide;
2082
+ }
2083
+ class we {
2084
+ constructor(e, t, n, i) {
2085
+ this.from = e, this.to = t, this.value = n, this.maxPoint = i;
2086
+ }
2087
+ get length() {
2088
+ return this.to[this.to.length - 1];
2089
+ }
2090
+ // Find the index of the given position and side. Use the ranges'
2091
+ // `from` pos when `end == false`, `to` when `end == true`.
2092
+ findIndex(e, t, n, i = 0) {
2093
+ let s = n ? this.to : this.from;
2094
+ for (let r = i, h = s.length; ; ) {
2095
+ if (r == h)
2096
+ return r;
2097
+ let o = r + h >> 1, a = s[o] - e || (n ? this.value[o].endSide : this.value[o].startSide) - t;
2098
+ if (o == r)
2099
+ return a >= 0 ? r : h;
2100
+ a >= 0 ? h = o : r = o + 1;
2101
+ }
2102
+ }
2103
+ between(e, t, n, i) {
2104
+ for (let s = this.findIndex(t, -1e9, !0), r = this.findIndex(n, 1e9, !1, s); s < r; s++)
2105
+ if (i(this.from[s] + e, this.to[s] + e, this.value[s]) === !1)
2106
+ return !1;
2107
+ }
2108
+ map(e, t) {
2109
+ let n = [], i = [], s = [], r = -1, h = -1;
2110
+ for (let o = 0; o < this.value.length; o++) {
2111
+ let a = this.value[o], u = this.from[o] + e, f = this.to[o] + e, d, c;
2112
+ if (u == f) {
2113
+ let g = t.mapPos(u, a.startSide, a.mapMode);
2114
+ if (g == null || (d = c = g, a.startSide != a.endSide && (c = t.mapPos(u, a.endSide), c < d)))
2115
+ continue;
2116
+ } else if (d = t.mapPos(u, a.startSide), c = t.mapPos(f, a.endSide), d > c || d == c && a.startSide > 0 && a.endSide <= 0)
2117
+ continue;
2118
+ (c - d || a.endSide - a.startSide) < 0 || (r < 0 && (r = d), a.point && (h = Math.max(h, c - d)), n.push(a), i.push(d - r), s.push(c - r));
2119
+ }
2120
+ return { mapped: n.length ? new we(i, s, n, h) : null, pos: r };
2121
+ }
2122
+ }
2123
+ class S {
2124
+ constructor(e, t, n, i) {
2125
+ this.chunkPos = e, this.chunk = t, this.nextLayer = n, this.maxPoint = i;
2126
+ }
2127
+ /**
2128
+ @internal
2129
+ */
2130
+ static create(e, t, n, i) {
2131
+ return new S(e, t, n, i);
2132
+ }
2133
+ /**
2134
+ @internal
2135
+ */
2136
+ get length() {
2137
+ let e = this.chunk.length - 1;
2138
+ return e < 0 ? 0 : Math.max(this.chunkEnd(e), this.nextLayer.length);
2139
+ }
2140
+ /**
2141
+ The number of ranges in the set.
2142
+ */
2143
+ get size() {
2144
+ if (this.isEmpty)
2145
+ return 0;
2146
+ let e = this.nextLayer.size;
2147
+ for (let t of this.chunk)
2148
+ e += t.value.length;
2149
+ return e;
2150
+ }
2151
+ /**
2152
+ @internal
2153
+ */
2154
+ chunkEnd(e) {
2155
+ return this.chunkPos[e] + this.chunk[e].length;
2156
+ }
2157
+ /**
2158
+ Update the range set, optionally adding new ranges or filtering
2159
+ out existing ones.
2160
+
2161
+ (Note: The type parameter is just there as a kludge to work
2162
+ around TypeScript variance issues that prevented `RangeSet<X>`
2163
+ from being a subtype of `RangeSet<Y>` when `X` is a subtype of
2164
+ `Y`.)
2165
+ */
2166
+ update(e) {
2167
+ let { add: t = [], sort: n = !1, filterFrom: i = 0, filterTo: s = this.length } = e, r = e.filter;
2168
+ if (t.length == 0 && !r)
2169
+ return this;
2170
+ if (n && (t = t.slice().sort(ce)), this.isEmpty)
2171
+ return t.length ? S.of(t) : this;
2172
+ let h = new Le(this, null, -1).goto(0), o = 0, a = [], u = new ee();
2173
+ for (; h.value || o < t.length; )
2174
+ if (o < t.length && (h.from - t[o].from || h.startSide - t[o].value.startSide) >= 0) {
2175
+ let f = t[o++];
2176
+ u.addInner(f.from, f.to, f.value) || a.push(f);
2177
+ } else
2178
+ h.rangeIndex == 1 && h.chunkIndex < this.chunk.length && (o == t.length || this.chunkEnd(h.chunkIndex) < t[o].from) && (!r || i > this.chunkEnd(h.chunkIndex) || s < this.chunkPos[h.chunkIndex]) && u.addChunk(this.chunkPos[h.chunkIndex], this.chunk[h.chunkIndex]) ? h.nextChunk() : ((!r || i > h.to || s < h.from || r(h.from, h.to, h.value)) && (u.addInner(h.from, h.to, h.value) || a.push(q.create(h.from, h.to, h.value))), h.next());
2179
+ return u.finishInner(this.nextLayer.isEmpty && !a.length ? S.empty : this.nextLayer.update({ add: a, filter: r, filterFrom: i, filterTo: s }));
2180
+ }
2181
+ /**
2182
+ Map this range set through a set of changes, return the new set.
2183
+ */
2184
+ map(e) {
2185
+ if (e.empty || this.isEmpty)
2186
+ return this;
2187
+ let t = [], n = [], i = -1;
2188
+ for (let r = 0; r < this.chunk.length; r++) {
2189
+ let h = this.chunkPos[r], o = this.chunk[r], a = e.touchesRange(h, h + o.length);
2190
+ if (a === !1)
2191
+ i = Math.max(i, o.maxPoint), t.push(o), n.push(e.mapPos(h));
2192
+ else if (a === !0) {
2193
+ let { mapped: u, pos: f } = o.map(h, e);
2194
+ u && (i = Math.max(i, u.maxPoint), t.push(u), n.push(f));
2195
+ }
2196
+ }
2197
+ let s = this.nextLayer.map(e);
2198
+ return t.length == 0 ? s : new S(n, t, s || S.empty, i);
2199
+ }
2200
+ /**
2201
+ Iterate over the ranges that touch the region `from` to `to`,
2202
+ calling `f` for each. There is no guarantee that the ranges will
2203
+ be reported in any specific order. When the callback returns
2204
+ `false`, iteration stops.
2205
+ */
2206
+ between(e, t, n) {
2207
+ if (!this.isEmpty) {
2208
+ for (let i = 0; i < this.chunk.length; i++) {
2209
+ let s = this.chunkPos[i], r = this.chunk[i];
2210
+ if (t >= s && e <= s + r.length && r.between(s, e - s, t - s, n) === !1)
2211
+ return;
2212
+ }
2213
+ this.nextLayer.between(e, t, n);
2214
+ }
2215
+ }
2216
+ /**
2217
+ Iterate over the ranges in this set, in order, including all
2218
+ ranges that end at or after `from`.
2219
+ */
2220
+ iter(e = 0) {
2221
+ return W.from([this]).goto(e);
2222
+ }
2223
+ /**
2224
+ @internal
2225
+ */
2226
+ get isEmpty() {
2227
+ return this.nextLayer == this;
2228
+ }
2229
+ /**
2230
+ Iterate over the ranges in a collection of sets, in order,
2231
+ starting from `from`.
2232
+ */
2233
+ static iter(e, t = 0) {
2234
+ return W.from(e).goto(t);
2235
+ }
2236
+ /**
2237
+ Iterate over two groups of sets, calling methods on `comparator`
2238
+ to notify it of possible differences.
2239
+ */
2240
+ static compare(e, t, n, i, s = -1) {
2241
+ let r = e.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), h = t.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), o = ye(r, h, n), a = new N(r, o, s), u = new N(h, o, s);
2242
+ n.iterGaps((f, d, c) => ke(a, f, u, d, c, i)), n.empty && n.length == 0 && ke(a, 0, u, 0, 0, i);
2243
+ }
2244
+ /**
2245
+ Compare the contents of two groups of range sets, returning true
2246
+ if they are equivalent in the given range.
2247
+ */
2248
+ static eq(e, t, n = 0, i) {
2249
+ i == null && (i = 1e9 - 1);
2250
+ let s = e.filter((u) => !u.isEmpty && t.indexOf(u) < 0), r = t.filter((u) => !u.isEmpty && e.indexOf(u) < 0);
2251
+ if (s.length != r.length)
2252
+ return !1;
2253
+ if (!s.length)
2254
+ return !0;
2255
+ let h = ye(s, r), o = new N(s, h, 0).goto(n), a = new N(r, h, 0).goto(n);
2256
+ for (; ; ) {
2257
+ if (o.to != a.to || !de(o.active, a.active) || o.point && (!a.point || !me(o.point, a.point)))
2258
+ return !1;
2259
+ if (o.to > i)
2260
+ return !0;
2261
+ o.next(), a.next();
2262
+ }
2263
+ }
2264
+ /**
2265
+ Iterate over a group of range sets at the same time, notifying
2266
+ the iterator about the ranges covering every given piece of
2267
+ content. Returns the open count (see
2268
+ [`SpanIterator.span`](https://codemirror.net/6/docs/ref/#state.SpanIterator.span)) at the end
2269
+ of the iteration.
2270
+ */
2271
+ static spans(e, t, n, i, s = -1) {
2272
+ let r = new N(e, null, s).goto(t), h = t, o = r.openStart;
2273
+ for (; ; ) {
2274
+ let a = Math.min(r.to, n);
2275
+ if (r.point) {
2276
+ let u = r.activeForPoint(r.to), f = r.pointFrom < t ? u.length + 1 : r.point.startSide < 0 ? u.length : Math.min(u.length, o);
2277
+ i.point(h, a, r.point, u, f, r.pointRank), o = Math.min(r.openEnd(a), u.length);
2278
+ } else
2279
+ a > h && (i.span(h, a, r.active, o), o = r.openEnd(a));
2280
+ if (r.to > n)
2281
+ return o + (r.point && r.to > n ? 1 : 0);
2282
+ h = r.to, r.next();
2283
+ }
2284
+ }
2285
+ /**
2286
+ Create a range set for the given range or array of ranges. By
2287
+ default, this expects the ranges to be _sorted_ (by start
2288
+ position and, if two start at the same position,
2289
+ `value.startSide`). You can pass `true` as second argument to
2290
+ cause the method to sort them.
2291
+ */
2292
+ static of(e, t = !1) {
2293
+ let n = new ee();
2294
+ for (let i of e instanceof q ? [e] : t ? _e(e) : e)
2295
+ n.add(i.from, i.to, i.value);
2296
+ return n.finish();
2297
+ }
2298
+ /**
2299
+ Join an array of range sets into a single set.
2300
+ */
2301
+ static join(e) {
2302
+ if (!e.length)
2303
+ return S.empty;
2304
+ let t = e[e.length - 1];
2305
+ for (let n = e.length - 2; n >= 0; n--)
2306
+ for (let i = e[n]; i != S.empty; i = i.nextLayer)
2307
+ t = new S(i.chunkPos, i.chunk, t, Math.max(i.maxPoint, t.maxPoint));
2308
+ return t;
2309
+ }
2310
+ }
2311
+ S.empty = /* @__PURE__ */ new S([], [], null, -1);
2312
+ function _e(l) {
2313
+ if (l.length > 1)
2314
+ for (let e = l[0], t = 1; t < l.length; t++) {
2315
+ let n = l[t];
2316
+ if (ce(e, n) > 0)
2317
+ return l.slice().sort(ce);
2318
+ e = n;
2319
+ }
2320
+ return l;
2321
+ }
2322
+ S.empty.nextLayer = S.empty;
2323
+ class ee {
2324
+ finishChunk(e) {
2325
+ this.chunks.push(new we(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
2326
+ }
2327
+ /**
2328
+ Create an empty builder.
2329
+ */
2330
+ constructor() {
2331
+ this.chunks = [], this.chunkPos = [], this.chunkStart = -1, this.last = null, this.lastFrom = -1e9, this.lastTo = -1e9, this.from = [], this.to = [], this.value = [], this.maxPoint = -1, this.setMaxPoint = -1, this.nextLayer = null;
2332
+ }
2333
+ /**
2334
+ Add a range. Ranges should be added in sorted (by `from` and
2335
+ `value.startSide`) order.
2336
+ */
2337
+ add(e, t, n) {
2338
+ this.addInner(e, t, n) || (this.nextLayer || (this.nextLayer = new ee())).add(e, t, n);
2339
+ }
2340
+ /**
2341
+ @internal
2342
+ */
2343
+ addInner(e, t, n) {
2344
+ let i = e - this.lastTo || n.startSide - this.last.endSide;
2345
+ if (i <= 0 && (e - this.lastFrom || n.startSide - this.last.startSide) < 0)
2346
+ throw new Error("Ranges must be added sorted by `from` position and `startSide`");
2347
+ return i < 0 ? !1 : (this.from.length == 250 && this.finishChunk(!0), this.chunkStart < 0 && (this.chunkStart = e), this.from.push(e - this.chunkStart), this.to.push(t - this.chunkStart), this.last = n, this.lastFrom = e, this.lastTo = t, this.value.push(n), n.point && (this.maxPoint = Math.max(this.maxPoint, t - e)), !0);
2348
+ }
2349
+ /**
2350
+ @internal
2351
+ */
2352
+ addChunk(e, t) {
2353
+ if ((e - this.lastTo || t.value[0].startSide - this.last.endSide) < 0)
2354
+ return !1;
2355
+ this.from.length && this.finishChunk(!0), this.setMaxPoint = Math.max(this.setMaxPoint, t.maxPoint), this.chunks.push(t), this.chunkPos.push(e);
2356
+ let n = t.value.length - 1;
2357
+ return this.last = t.value[n], this.lastFrom = t.from[n] + e, this.lastTo = t.to[n] + e, !0;
2358
+ }
2359
+ /**
2360
+ Finish the range set. Returns the new set. The builder can't be
2361
+ used anymore after this has been called.
2362
+ */
2363
+ finish() {
2364
+ return this.finishInner(S.empty);
2365
+ }
2366
+ /**
2367
+ @internal
2368
+ */
2369
+ finishInner(e) {
2370
+ if (this.from.length && this.finishChunk(!1), this.chunks.length == 0)
2371
+ return e;
2372
+ let t = S.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint);
2373
+ return this.from = null, t;
2374
+ }
2375
+ }
2376
+ function ye(l, e, t) {
2377
+ let n = /* @__PURE__ */ new Map();
2378
+ for (let s of l)
2379
+ for (let r = 0; r < s.chunk.length; r++)
2380
+ s.chunk[r].maxPoint <= 0 && n.set(s.chunk[r], s.chunkPos[r]);
2381
+ let i = /* @__PURE__ */ new Set();
2382
+ for (let s of e)
2383
+ for (let r = 0; r < s.chunk.length; r++) {
2384
+ let h = n.get(s.chunk[r]);
2385
+ h != null && (t ? t.mapPos(h) : h) == s.chunkPos[r] && !(t != null && t.touchesRange(h, h + s.chunk[r].length)) && i.add(s.chunk[r]);
2386
+ }
2387
+ return i;
2388
+ }
2389
+ class Le {
2390
+ constructor(e, t, n, i = 0) {
2391
+ this.layer = e, this.skip = t, this.minPoint = n, this.rank = i;
2392
+ }
2393
+ get startSide() {
2394
+ return this.value ? this.value.startSide : 0;
2395
+ }
2396
+ get endSide() {
2397
+ return this.value ? this.value.endSide : 0;
2398
+ }
2399
+ goto(e, t = -1e9) {
2400
+ return this.chunkIndex = this.rangeIndex = 0, this.gotoInner(e, t, !1), this;
2401
+ }
2402
+ gotoInner(e, t, n) {
2403
+ for (; this.chunkIndex < this.layer.chunk.length; ) {
2404
+ let i = this.layer.chunk[this.chunkIndex];
2405
+ if (!(this.skip && this.skip.has(i) || this.layer.chunkEnd(this.chunkIndex) < e || i.maxPoint < this.minPoint))
2406
+ break;
2407
+ this.chunkIndex++, n = !1;
2408
+ }
2409
+ if (this.chunkIndex < this.layer.chunk.length) {
2410
+ let i = this.layer.chunk[this.chunkIndex].findIndex(e - this.layer.chunkPos[this.chunkIndex], t, !0);
2411
+ (!n || this.rangeIndex < i) && this.setRangeIndex(i);
2412
+ }
2413
+ this.next();
2414
+ }
2415
+ forward(e, t) {
2416
+ (this.to - e || this.endSide - t) < 0 && this.gotoInner(e, t, !0);
2417
+ }
2418
+ next() {
2419
+ for (; ; )
2420
+ if (this.chunkIndex == this.layer.chunk.length) {
2421
+ this.from = this.to = 1e9, this.value = null;
2422
+ break;
2423
+ } else {
2424
+ let e = this.layer.chunkPos[this.chunkIndex], t = this.layer.chunk[this.chunkIndex], n = e + t.from[this.rangeIndex];
2425
+ if (this.from = n, this.to = e + t.to[this.rangeIndex], this.value = t.value[this.rangeIndex], this.setRangeIndex(this.rangeIndex + 1), this.minPoint < 0 || this.value.point && this.to - this.from >= this.minPoint)
2426
+ break;
2427
+ }
2428
+ }
2429
+ setRangeIndex(e) {
2430
+ if (e == this.layer.chunk[this.chunkIndex].value.length) {
2431
+ if (this.chunkIndex++, this.skip)
2432
+ for (; this.chunkIndex < this.layer.chunk.length && this.skip.has(this.layer.chunk[this.chunkIndex]); )
2433
+ this.chunkIndex++;
2434
+ this.rangeIndex = 0;
2435
+ } else
2436
+ this.rangeIndex = e;
2437
+ }
2438
+ nextChunk() {
2439
+ this.chunkIndex++, this.rangeIndex = 0, this.next();
2440
+ }
2441
+ compare(e) {
2442
+ return this.from - e.from || this.startSide - e.startSide || this.rank - e.rank || this.to - e.to || this.endSide - e.endSide;
2443
+ }
2444
+ }
2445
+ class W {
2446
+ constructor(e) {
2447
+ this.heap = e;
2448
+ }
2449
+ static from(e, t = null, n = -1) {
2450
+ let i = [];
2451
+ for (let s = 0; s < e.length; s++)
2452
+ for (let r = e[s]; !r.isEmpty; r = r.nextLayer)
2453
+ r.maxPoint >= n && i.push(new Le(r, t, n, s));
2454
+ return i.length == 1 ? i[0] : new W(i);
2455
+ }
2456
+ get startSide() {
2457
+ return this.value ? this.value.startSide : 0;
2458
+ }
2459
+ goto(e, t = -1e9) {
2460
+ for (let n of this.heap)
2461
+ n.goto(e, t);
2462
+ for (let n = this.heap.length >> 1; n >= 0; n--)
2463
+ ie(this.heap, n);
2464
+ return this.next(), this;
2465
+ }
2466
+ forward(e, t) {
2467
+ for (let n of this.heap)
2468
+ n.forward(e, t);
2469
+ for (let n = this.heap.length >> 1; n >= 0; n--)
2470
+ ie(this.heap, n);
2471
+ (this.to - e || this.value.endSide - t) < 0 && this.next();
2472
+ }
2473
+ next() {
2474
+ if (this.heap.length == 0)
2475
+ this.from = this.to = 1e9, this.value = null, this.rank = -1;
2476
+ else {
2477
+ let e = this.heap[0];
2478
+ this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), ie(this.heap, 0);
2479
+ }
2480
+ }
2481
+ }
2482
+ function ie(l, e) {
2483
+ for (let t = l[e]; ; ) {
2484
+ let n = (e << 1) + 1;
2485
+ if (n >= l.length)
2486
+ break;
2487
+ let i = l[n];
2488
+ if (n + 1 < l.length && i.compare(l[n + 1]) >= 0 && (i = l[n + 1], n++), t.compare(i) < 0)
2489
+ break;
2490
+ l[n] = t, l[e] = i, e = n;
2491
+ }
2492
+ }
2493
+ class N {
2494
+ constructor(e, t, n) {
2495
+ this.minPoint = n, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = W.from(e, t, n);
2496
+ }
2497
+ goto(e, t = -1e9) {
2498
+ return this.cursor.goto(e, t), this.active.length = this.activeTo.length = this.activeRank.length = 0, this.minActive = -1, this.to = e, this.endSide = t, this.openStart = -1, this.next(), this;
2499
+ }
2500
+ forward(e, t) {
2501
+ for (; this.minActive > -1 && (this.activeTo[this.minActive] - e || this.active[this.minActive].endSide - t) < 0; )
2502
+ this.removeActive(this.minActive);
2503
+ this.cursor.forward(e, t);
2504
+ }
2505
+ removeActive(e) {
2506
+ H(this.active, e), H(this.activeTo, e), H(this.activeRank, e), this.minActive = Se(this.active, this.activeTo);
2507
+ }
2508
+ addActive(e) {
2509
+ let t = 0, { value: n, to: i, rank: s } = this.cursor;
2510
+ for (; t < this.activeRank.length && (s - this.activeRank[t] || i - this.activeTo[t]) > 0; )
2511
+ t++;
2512
+ K(this.active, t, n), K(this.activeTo, t, i), K(this.activeRank, t, s), e && K(e, t, this.cursor.from), this.minActive = Se(this.active, this.activeTo);
2513
+ }
2514
+ // After calling this, if `this.point` != null, the next range is a
2515
+ // point. Otherwise, it's a regular range, covered by `this.active`.
2516
+ next() {
2517
+ let e = this.to, t = this.point;
2518
+ this.point = null;
2519
+ let n = this.openStart < 0 ? [] : null;
2520
+ for (; ; ) {
2521
+ let i = this.minActive;
2522
+ if (i > -1 && (this.activeTo[i] - this.cursor.from || this.active[i].endSide - this.cursor.startSide) < 0) {
2523
+ if (this.activeTo[i] > e) {
2524
+ this.to = this.activeTo[i], this.endSide = this.active[i].endSide;
2525
+ break;
2526
+ }
2527
+ this.removeActive(i), n && H(n, i);
2528
+ } else if (this.cursor.value)
2529
+ if (this.cursor.from > e) {
2530
+ this.to = this.cursor.from, this.endSide = this.cursor.startSide;
2531
+ break;
2532
+ } else {
2533
+ let s = this.cursor.value;
2534
+ if (!s.point)
2535
+ this.addActive(n), this.cursor.next();
2536
+ else if (t && this.cursor.to == this.to && this.cursor.from < this.cursor.to)
2537
+ this.cursor.next();
2538
+ else {
2539
+ this.point = s, this.pointFrom = this.cursor.from, this.pointRank = this.cursor.rank, this.to = this.cursor.to, this.endSide = s.endSide, this.cursor.next(), this.forward(this.to, this.endSide);
2540
+ break;
2541
+ }
2542
+ }
2543
+ else {
2544
+ this.to = this.endSide = 1e9;
2545
+ break;
2546
+ }
2547
+ }
2548
+ if (n) {
2549
+ this.openStart = 0;
2550
+ for (let i = n.length - 1; i >= 0 && n[i] < e; i--)
2551
+ this.openStart++;
2552
+ }
2553
+ }
2554
+ activeForPoint(e) {
2555
+ if (!this.active.length)
2556
+ return this.active;
2557
+ let t = [];
2558
+ for (let n = this.active.length - 1; n >= 0 && !(this.activeRank[n] < this.pointRank); n--)
2559
+ (this.activeTo[n] > e || this.activeTo[n] == e && this.active[n].endSide >= this.point.endSide) && t.push(this.active[n]);
2560
+ return t.reverse();
2561
+ }
2562
+ openEnd(e) {
2563
+ let t = 0;
2564
+ for (let n = this.activeTo.length - 1; n >= 0 && this.activeTo[n] > e; n--)
2565
+ t++;
2566
+ return t;
2567
+ }
2568
+ }
2569
+ function ke(l, e, t, n, i, s) {
2570
+ l.goto(e), t.goto(n);
2571
+ let r = n + i, h = n, o = n - e, a = !!s.boundChange;
2572
+ for (let u = !1; ; ) {
2573
+ let f = l.to + o - t.to, d = f || l.endSide - t.endSide, c = d < 0 ? l.to + o : t.to, g = Math.min(c, r);
2574
+ if (l.point || t.point ? (l.point && t.point && me(l.point, t.point) && de(l.activeForPoint(l.to), t.activeForPoint(t.to)) || s.comparePoint(h, g, l.point, t.point), u = !1) : (u && s.boundChange(h), g > h && !de(l.active, t.active) && s.compareRange(h, g, l.active, t.active), a && g < r && (f || l.openEnd(c) != t.openEnd(c)) && (u = !0)), c > r)
2575
+ break;
2576
+ h = c, d <= 0 && l.next(), d >= 0 && t.next();
2577
+ }
2578
+ }
2579
+ function de(l, e) {
2580
+ if (l.length != e.length)
2581
+ return !1;
2582
+ for (let t = 0; t < l.length; t++)
2583
+ if (l[t] != e[t] && !me(l[t], e[t]))
2584
+ return !1;
2585
+ return !0;
2586
+ }
2587
+ function H(l, e) {
2588
+ for (let t = e, n = l.length - 1; t < n; t++)
2589
+ l[t] = l[t + 1];
2590
+ l.pop();
2591
+ }
2592
+ function K(l, e, t) {
2593
+ for (let n = l.length - 1; n >= e; n--)
2594
+ l[n + 1] = l[n];
2595
+ l[e] = t;
2596
+ }
2597
+ function Se(l, e) {
2598
+ let t = -1, n = 1e9;
2599
+ for (let i = 0; i < e.length; i++)
2600
+ (e[i] - n || l[i].endSide - l[t].endSide) < 0 && (t = i, n = e[i]);
2601
+ return t;
2602
+ }
2603
+ function lt(l, e, t = l.length) {
2604
+ let n = 0;
2605
+ for (let i = 0; i < t && i < l.length; )
2606
+ l.charCodeAt(i) == 9 ? (n += e - n % e, i++) : (n++, i = Y(l, i));
2607
+ return n;
2608
+ }
2609
+ function ht(l, e, t, n) {
2610
+ for (let i = 0, s = 0; ; ) {
2611
+ if (s >= e)
2612
+ return i;
2613
+ if (i == l.length)
2614
+ break;
2615
+ s += l.charCodeAt(i) == 9 ? t - s % t : 1, i = Y(l, i);
2616
+ }
2617
+ return n === !0 ? -1 : l.length;
2618
+ }
2619
+ export {
2620
+ U as Annotation,
2621
+ Ue as AnnotationType,
2622
+ C as ChangeDesc,
2623
+ y as ChangeSet,
2624
+ R as CharCategory,
2625
+ te as Compartment,
2626
+ p as EditorSelection,
2627
+ w as EditorState,
2628
+ A as Facet,
2629
+ De as Line,
2630
+ M as MapMode,
2631
+ st as Prec,
2632
+ q as Range,
2633
+ S as RangeSet,
2634
+ ee as RangeSetBuilder,
2635
+ _ as RangeValue,
2636
+ B as SelectionRange,
2637
+ I as StateEffect,
2638
+ Ge as StateEffectType,
2639
+ L as StateField,
2640
+ x as Text,
2641
+ P as Transaction,
2642
+ tt as codePointAt,
2643
+ it as codePointSize,
2644
+ rt as combineConfig,
2645
+ lt as countColumn,
2646
+ Y as findClusterBreak,
2647
+ ht as findColumn,
2648
+ nt as fromCodePoint
2649
+ };