@parallelworks/ui 0.18.0 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/README.md +86 -6
  2. package/dist/ai/adapter/memoryStore.d.ts +8 -0
  3. package/dist/ai/adapter/memoryStore.js +152 -0
  4. package/dist/ai/adapter/mock/index.d.ts +2 -0
  5. package/dist/ai/adapter/mock/index.js +3 -0
  6. package/dist/ai/adapter/mock/mockAdapter.d.ts +4 -0
  7. package/dist/ai/adapter/mock/mockAdapter.js +81 -0
  8. package/dist/ai/adapter/openai/createOpenAIStream.d.ts +9 -0
  9. package/dist/ai/adapter/openai/createOpenAIStream.js +33 -0
  10. package/dist/ai/adapter/openai/errors.d.ts +3 -0
  11. package/dist/ai/adapter/openai/errors.js +37 -0
  12. package/dist/ai/adapter/openai/index.d.ts +6 -0
  13. package/dist/ai/adapter/openai/index.js +6 -0
  14. package/dist/ai/adapter/openai/openaiAdapter.d.ts +9 -0
  15. package/dist/ai/adapter/openai/openaiAdapter.js +54 -0
  16. package/dist/ai/adapter/openai/responses.d.ts +4 -0
  17. package/dist/ai/adapter/openai/responses.js +108 -0
  18. package/dist/ai/adapter/openai/sse.d.ts +24 -0
  19. package/dist/ai/adapter/openai/sse.js +112 -0
  20. package/dist/ai/adapter/openai/wire.d.ts +40 -0
  21. package/dist/ai/adapter/types.d.ts +131 -0
  22. package/dist/ai/adapter/types.js +11 -0
  23. package/dist/ai/agent/classifier.d.ts +2 -0
  24. package/dist/ai/agent/classifier.js +12 -0
  25. package/dist/ai/agent/diff.d.ts +35 -0
  26. package/dist/ai/agent/diff.js +223 -0
  27. package/dist/ai/agent/diffHighlight.d.ts +6 -0
  28. package/dist/ai/agent/diffHighlight.js +101 -0
  29. package/dist/ai/agent/index.d.ts +6 -0
  30. package/dist/ai/agent/permissions.d.ts +11 -0
  31. package/dist/ai/agent/permissions.js +29 -0
  32. package/dist/ai/agent/toolfmt.d.ts +18 -0
  33. package/dist/ai/agent/toolfmt.js +383 -0
  34. package/dist/ai/agent/transcript.d.ts +38 -0
  35. package/dist/ai/agent/transcript.js +127 -0
  36. package/dist/ai/ai.css +325 -0
  37. package/dist/ai/components/AllocationSelector.d.ts +4 -0
  38. package/dist/ai/components/AllocationSelector.js +56 -0
  39. package/dist/ai/components/AttachmentManager.d.ts +1 -0
  40. package/dist/ai/components/AttachmentManager.js +144 -0
  41. package/dist/ai/components/AttachmentUpload.d.ts +24 -0
  42. package/dist/ai/components/AttachmentUpload.js +179 -0
  43. package/dist/ai/components/BlockedGroupBanner.d.ts +1 -0
  44. package/dist/ai/components/BlockedGroupBanner.js +29 -0
  45. package/dist/ai/components/BranchNavigator.d.ts +8 -0
  46. package/dist/ai/components/BranchNavigator.js +57 -0
  47. package/dist/ai/components/ChatEmptyState.d.ts +3 -0
  48. package/dist/ai/components/ChatEmptyState.js +171 -0
  49. package/dist/ai/components/ChatInput.d.ts +45 -0
  50. package/dist/ai/components/ChatInput.js +265 -0
  51. package/dist/ai/components/ChatLayout.d.ts +5 -0
  52. package/dist/ai/components/ChatLayout.js +15 -0
  53. package/dist/ai/components/ChatMessage.d.ts +24 -0
  54. package/dist/ai/components/ChatMessage.js +338 -0
  55. package/dist/ai/components/ChatMessageList.d.ts +35 -0
  56. package/dist/ai/components/ChatMessageList.js +301 -0
  57. package/dist/ai/components/ChatSidebar.d.ts +5 -0
  58. package/dist/ai/components/ChatSidebar.js +345 -0
  59. package/dist/ai/components/ChatThread.d.ts +3 -0
  60. package/dist/ai/components/ChatThread.js +198 -0
  61. package/dist/ai/components/ComposerChrome.d.ts +18 -0
  62. package/dist/ai/components/ComposerChrome.js +50 -0
  63. package/dist/ai/components/ComposerFrame.d.ts +16 -0
  64. package/dist/ai/components/ComposerFrame.js +33 -0
  65. package/dist/ai/components/DragOverlay.d.ts +5 -0
  66. package/dist/ai/components/DragOverlay.js +20 -0
  67. package/dist/ai/components/ModelSelector.d.ts +6 -0
  68. package/dist/ai/components/ModelSelector.js +343 -0
  69. package/dist/ai/components/ShareDialog.d.ts +11 -0
  70. package/dist/ai/components/ShareDialog.js +260 -0
  71. package/dist/ai/components/SlashMenu.d.ts +28 -0
  72. package/dist/ai/components/SlashMenu.js +91 -0
  73. package/dist/ai/components/agent/ActivityLine.d.ts +21 -0
  74. package/dist/ai/components/agent/ActivityLine.js +151 -0
  75. package/dist/ai/components/agent/AgentMessageParts.d.ts +54 -0
  76. package/dist/ai/components/agent/AgentMessageParts.js +721 -0
  77. package/dist/ai/components/agent/PermissionPicker.d.ts +11 -0
  78. package/dist/ai/components/agent/PermissionPicker.js +38 -0
  79. package/dist/ai/components/attachmentKeys.d.ts +4 -0
  80. package/dist/ai/components/attachmentKeys.js +10 -0
  81. package/dist/ai/core/ChatProvider.d.ts +66 -0
  82. package/dist/ai/core/ChatProvider.js +848 -0
  83. package/dist/ai/core/KeyboardShortcutsProvider.d.ts +5 -0
  84. package/dist/ai/core/KeyboardShortcutsProvider.js +9 -0
  85. package/dist/ai/core/chatReducer.d.ts +114 -0
  86. package/dist/ai/core/chatReducer.js +223 -0
  87. package/dist/ai/core/config.d.ts +47 -0
  88. package/dist/ai/core/config.js +45 -0
  89. package/dist/ai/core/events.d.ts +1 -0
  90. package/dist/ai/core/events.js +4 -0
  91. package/dist/ai/core/exportConversation.d.ts +4 -0
  92. package/dist/ai/core/exportConversation.js +42 -0
  93. package/dist/ai/core/greeting.d.ts +3 -0
  94. package/dist/ai/core/greeting.js +38 -0
  95. package/dist/ai/core/parts.d.ts +11 -0
  96. package/dist/ai/core/parts.js +84 -0
  97. package/dist/ai/core/useDragDrop.d.ts +14 -0
  98. package/dist/ai/core/useDragDrop.js +36 -0
  99. package/dist/ai/core/useKeyboardShortcuts.d.ts +12 -0
  100. package/dist/ai/core/useKeyboardShortcuts.js +77 -0
  101. package/dist/ai/core/useSSEStream.d.ts +34 -0
  102. package/dist/ai/core/useSSEStream.js +98 -0
  103. package/dist/ai/index.d.ts +40 -0
  104. package/dist/ai/index.js +44 -0
  105. package/dist/ai/strings.d.ts +167 -0
  106. package/dist/ai/strings.js +175 -0
  107. package/dist/ai/types.d.ts +236 -0
  108. package/dist/ai/ui/Avatar.d.ts +8 -0
  109. package/dist/ai/ui/Avatar.js +35 -0
  110. package/dist/ai/ui/Dropdown.d.ts +31 -0
  111. package/dist/ai/ui/Dropdown.js +110 -0
  112. package/dist/ai/ui/Markdown.d.ts +8 -0
  113. package/dist/ai/ui/Markdown.js +79 -0
  114. package/dist/ai/ui/Notice.d.ts +21 -0
  115. package/dist/ai/ui/Notice.js +77 -0
  116. package/dist/ai/ui/buttons.d.ts +1 -0
  117. package/dist/ai/ui/codeBreaks.d.ts +16 -0
  118. package/dist/ai/ui/codeBreaks.js +36 -0
  119. package/dist/ai/ui/prose.d.ts +1 -0
  120. package/dist/ai/ui/prose.js +13 -0
  121. package/dist/ai/ui/sidebar.d.ts +81 -0
  122. package/dist/ai/ui/sidebar.js +148 -0
  123. package/dist/ai/utils.d.ts +4 -0
  124. package/dist/ai/utils.js +23 -0
  125. package/dist/assets/{editor.worker-CuBRIwi-.js → editor.worker-BmHUIVG4.js} +194 -163
  126. package/dist/assets/{json.worker-8ytS02vz.js → json.worker-D8bJ92nw.js} +384 -338
  127. package/dist/assets/{yaml.worker-DJC-VUcv.js → yaml.worker-C4gyGAko.js} +15657 -13823
  128. package/dist/components/AddMenu.js +46 -0
  129. package/dist/components/Avatar.d.ts +1 -1
  130. package/dist/components/Avatar.js +46 -0
  131. package/dist/{chunks/BareModal-BtRiQezg.js → components/BareModal.js} +1 -1
  132. package/dist/components/Breadcrumbs.d.ts +1 -1
  133. package/dist/components/Breadcrumbs.js +83 -0
  134. package/dist/components/Button.js +83 -0
  135. package/dist/components/Callout.js +23 -0
  136. package/dist/components/Card.js +31 -0
  137. package/dist/components/CollapsiblePanel.js +77 -0
  138. package/dist/components/ConfirmModal.js +74 -0
  139. package/dist/components/CopyToClipboard.js +81 -0
  140. package/dist/{chunks/CreateModal-BY6DLmur.js → components/CreateModal.js} +10 -189
  141. package/dist/components/DescriptionList.js +42 -0
  142. package/dist/components/Dropdown.d.ts +1 -1
  143. package/dist/components/Dropdown.js +349 -0
  144. package/dist/components/EmptyState.d.ts +1 -1
  145. package/dist/components/EmptyState.js +27 -0
  146. package/dist/components/Filter.js +32 -0
  147. package/dist/components/FilterPill.js +13 -0
  148. package/dist/components/IconButton.js +34 -0
  149. package/dist/components/Indicator.d.ts +2 -2
  150. package/dist/{chunks/Indicator-hBSIxOPK.js → components/Indicator.js} +1 -1
  151. package/dist/components/Input.d.ts +1 -1
  152. package/dist/components/Input.js +88 -0
  153. package/dist/components/LetterBadge.d.ts +1 -1
  154. package/dist/components/LetterBadge.js +13 -0
  155. package/dist/components/Listbox.js +123 -0
  156. package/dist/{chunks/Loader-BXoXTZGc.js → components/Loader.js} +1 -1
  157. package/dist/components/Markdown.js +15 -0
  158. package/dist/components/MarkdownImpl.d.ts +1 -1
  159. package/dist/components/MultiSelect.js +171 -0
  160. package/dist/components/Overview.js +39 -0
  161. package/dist/components/PageHeader.js +194 -0
  162. package/dist/components/Pagination.js +35 -0
  163. package/dist/components/Provider.d.ts +16 -65
  164. package/dist/{chunks/Provider-Ghua9PkN.js → components/Provider.js} +54 -20
  165. package/dist/{chunks/RequiredMark-DfLdYbYZ.js → components/RequiredMark.js} +1 -1
  166. package/dist/components/SectionHeader.js +11 -0
  167. package/dist/components/SettingModeOption.js +30 -0
  168. package/dist/components/SettingRow.d.ts +1 -1
  169. package/dist/components/SettingRow.js +35 -0
  170. package/dist/components/SettingsCard.js +31 -0
  171. package/dist/components/SettingsGroup.d.ts +1 -1
  172. package/dist/components/SettingsGroup.js +17 -0
  173. package/dist/components/Sort.js +42 -0
  174. package/dist/components/StatusBadge.js +63 -0
  175. package/dist/components/SwitchToggle.js +59 -0
  176. package/dist/{chunks/SwitchToggleSmall-FcsaYSTs.js → components/SwitchToggleSmall.js} +1 -1
  177. package/dist/{chunks/Table-4OHjdKdO.js → components/Table.js} +7 -5
  178. package/dist/components/Toggle.js +20 -0
  179. package/dist/{chunks/Tooltip-Crxo_eU_.js → components/Tooltip.js} +6 -4
  180. package/dist/{chunks/StatusBadge-C1Blx_cW.js → components/dropdownUtils.js} +2 -63
  181. package/dist/components/focus.d.ts +2 -0
  182. package/dist/components/focus.js +7 -0
  183. package/dist/components/ghostButton.js +7 -0
  184. package/dist/components/inputClasses.js +4 -0
  185. package/dist/components/keys.d.ts +12 -0
  186. package/dist/components/keys.js +27 -0
  187. package/dist/components/relativeTime.js +32 -0
  188. package/dist/{chunks/useCssIsDark-DHr05dG2.js → components/useCssIsDark.js} +1 -1
  189. package/dist/duration.d.ts +3 -0
  190. package/dist/duration.js +17 -0
  191. package/dist/editor/Editor.js +13 -0
  192. package/dist/editor/EditorField.js +53 -0
  193. package/dist/editor/FormCodePanel.js +173 -0
  194. package/dist/editor/Monaco.d.ts +1 -20
  195. package/dist/editor/Monaco.js +112 -0
  196. package/dist/editor/index.d.ts +2 -1
  197. package/dist/editor/index.js +7 -2
  198. package/dist/editor/themes.js +91 -0
  199. package/dist/editor/workers.js +29 -0
  200. package/dist/editor/yaml.d.ts +5 -0
  201. package/dist/editor/yaml.js +15 -0
  202. package/dist/engine.d.ts +98 -0
  203. package/dist/file-explorer/FileExplorer.d.ts +11 -2
  204. package/dist/file-explorer/FileExplorer.js +1402 -0
  205. package/dist/file-explorer/FileExplorerContext.d.ts +1 -1
  206. package/dist/file-explorer/FileExplorerContext.js +370 -0
  207. package/dist/file-explorer/FilePreview/CodePreviewEditor.d.ts +1 -1
  208. package/dist/{chunks/CodePreviewEditor-4lx3kE-w.js → file-explorer/FilePreview/CodePreviewEditor.js} +3 -2
  209. package/dist/file-explorer/FilePreview/Inline.js +45 -0
  210. package/dist/file-explorer/FilePreview/StreamedBadge.js +16 -0
  211. package/dist/file-explorer/FilePreview/Viewer.js +526 -0
  212. package/dist/file-explorer/FilePreview/index.js +266 -0
  213. package/dist/file-explorer/FilePreview/parse.js +63 -0
  214. package/dist/file-explorer/FilePreview/previewCache.js +98 -0
  215. package/dist/file-explorer/FilePreview/previewType.d.ts +1 -1
  216. package/dist/file-explorer/FilePreview/previewType.js +151 -0
  217. package/dist/file-explorer/FilePreview/readCappedBytes.js +196 -0
  218. package/dist/file-explorer/FilePreview/useObjectBlobUrl.js +95 -0
  219. package/dist/file-explorer/FilePreview/useObjectText.js +109 -0
  220. package/dist/file-explorer/FilePreview/usePresignedUrl.js +73 -0
  221. package/dist/file-explorer/FileRow.d.ts +1 -1
  222. package/dist/file-explorer/FileRow.js +165 -0
  223. package/dist/file-explorer/FileRowsWindow.js +92 -0
  224. package/dist/file-explorer/FileTable.js +172 -0
  225. package/dist/file-explorer/FileTableHeaders.js +49 -0
  226. package/dist/file-explorer/LoadMoreRow.js +46 -0
  227. package/dist/file-explorer/TreeView.js +376 -0
  228. package/dist/file-explorer/helpers.d.ts +4 -4
  229. package/dist/file-explorer/helpers.js +537 -0
  230. package/dist/file-explorer/index.d.ts +3 -3
  231. package/dist/file-explorer/index.js +7 -5705
  232. package/dist/file-explorer/lib/batch.js +39 -0
  233. package/dist/file-explorer/lib/errors.js +9 -0
  234. package/dist/file-explorer/lib/paging.js +124 -0
  235. package/dist/file-explorer/lib/types.d.ts +6 -1
  236. package/dist/file-explorer/lib/utils.d.ts +1 -3
  237. package/dist/file-explorer/lib/utils.js +322 -0
  238. package/dist/file-explorer/toasts.js +400 -0
  239. package/dist/file-explorer/treeRows.js +73 -0
  240. package/dist/file-explorer/useNearEnd.d.ts +1 -1
  241. package/dist/file-explorer/useNearEnd.js +27 -0
  242. package/dist/form/FieldWrapper.d.ts +2 -2
  243. package/dist/form/FieldWrapper.js +54 -0
  244. package/dist/form/Fields/BooleanField.js +51 -0
  245. package/dist/form/Fields/CheckboxGroupField.js +72 -0
  246. package/dist/form/Fields/ColorField.js +33 -0
  247. package/dist/form/Fields/DropdownField.js +49 -0
  248. package/dist/form/Fields/DurationField.js +130 -0
  249. package/dist/form/Fields/LabelField.js +19 -0
  250. package/dist/form/Fields/MultiDropdownField.js +40 -0
  251. package/dist/form/Fields/NumberField.js +51 -0
  252. package/dist/form/Fields/ObjectField.js +54 -0
  253. package/dist/form/Fields/RadioField.js +49 -0
  254. package/dist/form/Fields/RangeField.js +58 -0
  255. package/dist/form/Fields/ResourceOptionIcon.d.ts +1 -1
  256. package/dist/form/Fields/ResourceOptionIcon.js +21 -0
  257. package/dist/form/Fields/StepField.js +6 -0
  258. package/dist/form/Fields/StringField.js +37 -0
  259. package/dist/form/Fields/TextAreaField.js +31 -0
  260. package/dist/form/Fields/durationValidity.js +11 -0
  261. package/dist/form/Form.d.ts +4 -21
  262. package/dist/form/Form.js +643 -0
  263. package/dist/form/SpecialTypes/DropdownWrapper.js +30 -0
  264. package/dist/form/SpecialTypes/FormikCustomDropdown.js +122 -0
  265. package/dist/form/SpecialTypes/FormikCustomInput.js +111 -0
  266. package/dist/form/SpecialTypes/FormikMultiSelectDropdown.js +31 -0
  267. package/dist/form/SpecialTypes/FormikNumericInput.js +60 -0
  268. package/dist/form/Wizard/WizardContainer.js +138 -0
  269. package/dist/form/Wizard/WizardNavigation.js +92 -0
  270. package/dist/form/Wizard/WizardStepContent.js +35 -0
  271. package/dist/form/Wizard/WizardStepIndicator.js +108 -0
  272. package/dist/form/Wizard/useWizardState.js +118 -0
  273. package/dist/form/Wizard/utils.js +34 -0
  274. package/dist/form/fieldContext.js +26 -0
  275. package/dist/form/fieldRegistry.js +50 -0
  276. package/dist/form/index.d.ts +11 -12
  277. package/dist/form/index.js +18 -2445
  278. package/dist/form/lib.d.ts +6 -1
  279. package/dist/{chunks/FieldWrapper-Bef01EWO.js → form/lib.js} +5 -104
  280. package/dist/form/types/fieldComponentTypes.d.ts +3 -2
  281. package/dist/form/types/fieldTypes.d.ts +6 -20
  282. package/dist/form/useParsedOpts.d.ts +1 -1
  283. package/dist/form/useParsedOpts.js +62 -0
  284. package/dist/form/usePrevious.js +11 -0
  285. package/dist/form/utils/checkShowIfObject.js +14 -0
  286. package/dist/form/utils/{slurmDuration.d.ts → duration.d.ts} +2 -2
  287. package/dist/form/utils/duration.js +69 -0
  288. package/dist/form/utils/getParentValue.js +23 -0
  289. package/dist/form/utils/getPlaceholder.js +9 -0
  290. package/dist/form/utils/getValueUsingPath.js +23 -0
  291. package/dist/form/utils/secondaryField.js +22 -0
  292. package/dist/graph/AnnotationBanner.js +141 -0
  293. package/dist/graph/Collapse.js +41 -0
  294. package/dist/{workflow/index.js → graph/DependencyGraph.js} +76 -1163
  295. package/dist/graph/JobSummary.js +104 -0
  296. package/dist/{workflow → graph}/MatrixGroup.d.ts +2 -2
  297. package/dist/graph/MatrixGroup.js +107 -0
  298. package/dist/graph/Reveal.js +57 -0
  299. package/dist/graph/TreeView.js +711 -0
  300. package/dist/{workflow → graph}/index.d.ts +1 -1
  301. package/dist/graph/index.js +2 -0
  302. package/dist/{workflow → graph}/types.d.ts +3 -3
  303. package/dist/graph/types.js +6 -0
  304. package/dist/icons.d.ts +20 -21
  305. package/dist/index.d.ts +38 -40
  306. package/dist/index.js +47 -599
  307. package/dist/list/ActionToolbar.js +184 -0
  308. package/dist/list/HoverCard.js +73 -0
  309. package/dist/list/ListPage.js +145 -0
  310. package/dist/list/ListPager.js +59 -0
  311. package/dist/list/ListTable.d.ts +1 -1
  312. package/dist/list/ListTable.js +163 -0
  313. package/dist/list/ListViewControls.d.ts +2 -2
  314. package/dist/list/ListViewControls.js +372 -0
  315. package/dist/list/RowContextMenu.js +350 -0
  316. package/dist/list/UserHoverCard.js +117 -0
  317. package/dist/list/index.d.ts +9 -9
  318. package/dist/list/index.js +11 -2
  319. package/dist/list/listSearch.js +137 -0
  320. package/dist/list/listView.js +210 -0
  321. package/dist/list/textEntry.js +10 -0
  322. package/dist/logviewer/LogViewer.d.ts +1 -1
  323. package/dist/logviewer/LogViewer.js +750 -0
  324. package/dist/logviewer/index.d.ts +1 -0
  325. package/dist/logviewer/index.js +3 -742
  326. package/dist/logviewer/segments.d.ts +9 -0
  327. package/dist/logviewer/segments.js +80 -0
  328. package/dist/styles/fonts.css +4 -4
  329. package/dist/styles/theme.css +6 -4
  330. package/dist/styles.css +1 -1
  331. package/dist/theme/index.js +2 -2
  332. package/package.json +38 -14
  333. package/LICENSE +0 -202
  334. package/dist/chunks/Monaco-C1POOdVv.js +0 -1046
  335. package/dist/chunks/PageHeader-l49p1nM9.js +0 -690
  336. package/dist/chunks/SwitchToggle-CHPP8uZQ.js +0 -755
  337. package/dist/chunks/editor-9_uVtUyy.js +0 -347
  338. package/dist/chunks/list-qrojZZNv.js +0 -1411
  339. package/dist/editor/usesGitlab.d.ts +0 -97
  340. package/dist/form/Fields/BucketReadOnlyField.d.ts +0 -7
  341. package/dist/form/types/workflow-schema.d.ts +0 -1145
  342. package/dist/form/utils/pwResolver.d.ts +0 -18
  343. package/dist/{chunks/MarkdownImpl-Bq4QhrtA.js → components/MarkdownImpl.js} +1 -1
  344. /package/dist/{workflow → graph}/AnnotationBanner.d.ts +0 -0
  345. /package/dist/{workflow → graph}/Collapse.d.ts +0 -0
  346. /package/dist/{workflow → graph}/DependencyGraph.d.ts +0 -0
  347. /package/dist/{workflow → graph}/JobSummary.d.ts +0 -0
  348. /package/dist/{workflow → graph}/Reveal.d.ts +0 -0
  349. /package/dist/{workflow → graph}/TreeView.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  (function() {
2
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/errors.js
2
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/errors.js
3
3
  var ErrorHandler = class {
4
4
  constructor() {
5
5
  this.listeners = [];
@@ -90,7 +90,7 @@
90
90
  }
91
91
  };
92
92
  //#endregion
93
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/assert.js
93
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/assert.js
94
94
  function assertNever(value, message = "Unreachable") {
95
95
  throw new Error(message);
96
96
  }
@@ -126,7 +126,7 @@
126
126
  return true;
127
127
  }
128
128
  //#endregion
129
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/types.js
129
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/types.js
130
130
  /**
131
131
  * @returns whether the provided parameter is a JavaScript String or not.
132
132
  */
@@ -140,7 +140,7 @@
140
140
  return !!obj && typeof obj[Symbol.iterator] === "function";
141
141
  }
142
142
  //#endregion
143
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/iterator.js
143
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/iterator.js
144
144
  var Iterable;
145
145
  (function(Iterable) {
146
146
  function is(thing) {
@@ -267,7 +267,7 @@
267
267
  Iterable.asyncToArrayFlat = asyncToArrayFlat;
268
268
  })(Iterable || (Iterable = {}));
269
269
  //#endregion
270
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/lifecycle.js
270
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/lifecycle.js
271
271
  function dispose(arg) {
272
272
  if (Iterable.is(arg)) {
273
273
  const errors = [];
@@ -404,7 +404,7 @@
404
404
  }
405
405
  };
406
406
  //#endregion
407
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/linkedList.js
407
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/linkedList.js
408
408
  var Node = class Node {
409
409
  static {
410
410
  this.Undefined = new Node(void 0);
@@ -512,7 +512,7 @@
512
512
  }
513
513
  };
514
514
  //#endregion
515
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/stopwatch.js
515
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/stopwatch.js
516
516
  const performanceNow = globalThis.performance.now.bind(globalThis.performance);
517
517
  var StopWatch = class StopWatch {
518
518
  static create(highResolution) {
@@ -536,7 +536,7 @@
536
536
  }
537
537
  };
538
538
  //#endregion
539
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/event.js
539
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/event.js
540
540
  var Event;
541
541
  (function(Event) {
542
542
  Event.None = () => Disposable.None;
@@ -823,8 +823,10 @@
823
823
  }
824
824
  },
825
825
  onDidAddFirstListener() {
826
- if (buffer) if (flushAfterTimeout) setTimeout(flush);
827
- else flush();
826
+ if (buffer) {
827
+ if (flushAfterTimeout) setTimeout(flush);
828
+ else flush();
829
+ }
828
830
  },
829
831
  onDidRemoveLastListener() {
830
832
  if (listener) listener.dispose();
@@ -1342,7 +1344,7 @@
1342
1344
  }
1343
1345
  };
1344
1346
  //#endregion
1345
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/nls.messages.js
1347
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/nls.messages.js
1346
1348
  function getNLSMessages() {
1347
1349
  return globalThis._VSCODE_NLS_MESSAGES;
1348
1350
  }
@@ -1350,7 +1352,7 @@
1350
1352
  return globalThis._VSCODE_NLS_LANGUAGE;
1351
1353
  }
1352
1354
  //#endregion
1353
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/nls.js
1355
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/nls.js
1354
1356
  const isPseudo = getNLSLanguage() === "pseudo" || typeof document !== "undefined" && document.location && typeof document.location.hash === "string" && document.location.hash.indexOf("pseudo=true") >= 0;
1355
1357
  function _format$1(message, args) {
1356
1358
  let result;
@@ -1459,7 +1461,7 @@
1459
1461
  userAgent && userAgent.indexOf("Edg/");
1460
1462
  userAgent && userAgent.indexOf("Android");
1461
1463
  //#endregion
1462
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/cache.js
1464
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/cache.js
1463
1465
  function identity(t) {
1464
1466
  return t;
1465
1467
  }
@@ -1489,7 +1491,7 @@
1489
1491
  }
1490
1492
  };
1491
1493
  //#endregion
1492
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/lazy.js
1494
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/lazy.js
1493
1495
  var LazyValueState;
1494
1496
  (function(LazyValueState) {
1495
1497
  LazyValueState[LazyValueState["Uninitialized"] = 0] = "Uninitialized";
@@ -1529,7 +1531,7 @@
1529
1531
  }
1530
1532
  };
1531
1533
  //#endregion
1532
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/strings.js
1534
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/strings.js
1533
1535
  /**
1534
1536
  * Escapes regular expression characters in a given string
1535
1537
  */
@@ -1573,8 +1575,8 @@
1573
1575
  */
1574
1576
  function commonPrefixLength(a, b) {
1575
1577
  const len = Math.min(a.length, b.length);
1576
- let i;
1577
- for (i = 0; i < len; i++) if (a.charCodeAt(i) !== b.charCodeAt(i)) return i;
1578
+ let i = 0;
1579
+ for (; i < len; i++) if (a.charCodeAt(i) !== b.charCodeAt(i)) return i;
1578
1580
  return len;
1579
1581
  }
1580
1582
  /**
@@ -1686,7 +1688,8 @@
1686
1688
  const map = arrayToMap(data[locale]);
1687
1689
  languageSpecificMap = intersectMaps(languageSpecificMap, map);
1688
1690
  }
1689
- return new AmbiguousCharacters(mergeMaps(arrayToMap(data["_common"]), languageSpecificMap));
1691
+ const map = mergeMaps(arrayToMap(data["_common"]), languageSpecificMap);
1692
+ return new AmbiguousCharacters(map);
1690
1693
  });
1691
1694
  }
1692
1695
  static getInstance(locales) {
@@ -1734,7 +1737,7 @@
1734
1737
  }
1735
1738
  };
1736
1739
  //#endregion
1737
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/worker/webWorker.js
1740
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/worker/webWorker.js
1738
1741
  const DEFAULT_CHANNEL = "default";
1739
1742
  const INITIALIZE = "$initialize";
1740
1743
  var RequestMessage = class {
@@ -1978,7 +1981,7 @@
1978
1981
  }
1979
1982
  };
1980
1983
  //#endregion
1981
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/worker/webWorkerBootstrap.js
1984
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/worker/webWorkerBootstrap.js
1982
1985
  let initialized$1 = false;
1983
1986
  function initialize$1(factory) {
1984
1987
  if (initialized$1) throw new Error("WebWorker already initialized!");
@@ -1990,7 +1993,7 @@
1990
1993
  return webWorkerServer;
1991
1994
  }
1992
1995
  //#endregion
1993
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/diff/diffChange.js
1996
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/diff/diffChange.js
1994
1997
  /**
1995
1998
  * Represents information about a specific difference between two sequences.
1996
1999
  */
@@ -2019,9 +2022,9 @@
2019
2022
  }
2020
2023
  };
2021
2024
  //#endregion
2022
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/buffer.js
2025
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/buffer.js
2023
2026
  const hasBuffer = typeof Buffer !== "undefined";
2024
- new Lazy(() => new Uint8Array(256));
2027
+ new Lazy(() => /* @__PURE__ */ new Uint8Array(256));
2025
2028
  let textDecoder;
2026
2029
  var VSBuffer = class VSBuffer {
2027
2030
  /**
@@ -2056,7 +2059,7 @@
2056
2059
  return result;
2057
2060
  }
2058
2061
  //#endregion
2059
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/hash.js
2062
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/hash.js
2060
2063
  function numberHash(val, initialHashVal) {
2061
2064
  return (initialHashVal << 5) - initialHashVal + val | 0;
2062
2065
  }
@@ -2084,7 +2087,7 @@
2084
2087
  this._h2 = 2562383102;
2085
2088
  this._h3 = 271733878;
2086
2089
  this._h4 = 3285377520;
2087
- this._buff = new Uint8Array(67);
2090
+ this._buff = /* @__PURE__ */ new Uint8Array(67);
2088
2091
  this._buffDV = new DataView(this._buff.buffer);
2089
2092
  this._buffLen = 0;
2090
2093
  this._totalLen = 0;
@@ -2109,17 +2112,18 @@
2109
2112
  }
2110
2113
  while (true) {
2111
2114
  let codePoint = charCode;
2112
- if (isHighSurrogate(charCode)) if (offset + 1 < strLen) {
2113
- const nextCharCode = str.charCodeAt(offset + 1);
2114
- if (isLowSurrogate(nextCharCode)) {
2115
- offset++;
2116
- codePoint = computeCodePoint(charCode, nextCharCode);
2117
- } else codePoint = 65533;
2118
- } else {
2119
- leftoverHighSurrogate = charCode;
2120
- break;
2121
- }
2122
- else if (isLowSurrogate(charCode)) codePoint = 65533;
2115
+ if (isHighSurrogate(charCode)) {
2116
+ if (offset + 1 < strLen) {
2117
+ const nextCharCode = str.charCodeAt(offset + 1);
2118
+ if (isLowSurrogate(nextCharCode)) {
2119
+ offset++;
2120
+ codePoint = computeCodePoint(charCode, nextCharCode);
2121
+ } else codePoint = 65533;
2122
+ } else {
2123
+ leftoverHighSurrogate = charCode;
2124
+ break;
2125
+ }
2126
+ } else if (isLowSurrogate(charCode)) codePoint = 65533;
2123
2127
  buffLen = this._push(buff, buffLen, codePoint);
2124
2128
  offset++;
2125
2129
  if (offset < strLen) charCode = str.charCodeAt(offset);
@@ -2218,7 +2222,7 @@
2218
2222
  }
2219
2223
  });
2220
2224
  //#endregion
2221
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/diff/diff.js
2225
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/diff/diff.js
2222
2226
  var StringDiffSequence = class {
2223
2227
  constructor(source) {
2224
2228
  this.source = source;
@@ -2863,7 +2867,7 @@
2863
2867
  }
2864
2868
  };
2865
2869
  //#endregion
2866
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/position.js
2870
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/position.js
2867
2871
  /**
2868
2872
  * A position in the editor.
2869
2873
  */
@@ -2977,7 +2981,7 @@
2977
2981
  }
2978
2982
  };
2979
2983
  //#endregion
2980
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/range.js
2984
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/range.js
2981
2985
  /**
2982
2986
  * A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn)
2983
2987
  */
@@ -3305,7 +3309,7 @@
3305
3309
  }
3306
3310
  };
3307
3311
  //#endregion
3308
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/uint.js
3312
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/uint.js
3309
3313
  function toUint8(v) {
3310
3314
  if (v < 0) return 0;
3311
3315
  if (v > 255) return 255;
@@ -3317,7 +3321,7 @@
3317
3321
  return v | 0;
3318
3322
  }
3319
3323
  //#endregion
3320
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js
3324
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js
3321
3325
  /**
3322
3326
  * A fast character classifier that uses a compact array for ASCII values.
3323
3327
  */
@@ -3329,7 +3333,7 @@
3329
3333
  this._map = /* @__PURE__ */ new Map();
3330
3334
  }
3331
3335
  static _createAsciiMap(defaultValue) {
3332
- const asciiMap = new Uint8Array(256);
3336
+ const asciiMap = /* @__PURE__ */ new Uint8Array(256);
3333
3337
  asciiMap.fill(defaultValue);
3334
3338
  return asciiMap;
3335
3339
  }
@@ -3348,7 +3352,7 @@
3348
3352
  }
3349
3353
  };
3350
3354
  //#endregion
3351
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/languages/linkComputer.js
3355
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/languages/linkComputer.js
3352
3356
  var Uint8Matrix = class {
3353
3357
  constructor(rows, cols, defaultValue) {
3354
3358
  const data = new Uint8Array(rows * cols);
@@ -3638,7 +3642,7 @@
3638
3642
  return LinkComputer.computeLinks(model);
3639
3643
  }
3640
3644
  //#endregion
3641
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js
3645
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js
3642
3646
  var BasicInplaceReplace = class BasicInplaceReplace {
3643
3647
  constructor() {
3644
3648
  this._defaultValueSet = [
@@ -3689,11 +3693,13 @@
3689
3693
  const precision = Math.pow(10, value.length - (value.lastIndexOf(".") + 1));
3690
3694
  let n1 = Number(value);
3691
3695
  const n2 = parseFloat(value);
3692
- if (!isNaN(n1) && !isNaN(n2) && n1 === n2) if (n1 === 0 && !up) return null;
3693
- else {
3694
- n1 = Math.floor(n1 * precision);
3695
- n1 += up ? precision : -precision;
3696
- return String(n1 / precision);
3696
+ if (!isNaN(n1) && !isNaN(n2) && n1 === n2) {
3697
+ if (n1 === 0 && !up) return null;
3698
+ else {
3699
+ n1 = Math.floor(n1 * precision);
3700
+ n1 += up ? precision : -precision;
3701
+ return String(n1 / precision);
3702
+ }
3697
3703
  }
3698
3704
  return null;
3699
3705
  }
@@ -3717,7 +3723,7 @@
3717
3723
  }
3718
3724
  };
3719
3725
  //#endregion
3720
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/cancellation.js
3726
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/cancellation.js
3721
3727
  const shortcutEvent = Object.freeze(function(callback, context) {
3722
3728
  const handle = setTimeout(callback.bind(context), 0);
3723
3729
  return { dispose() {
@@ -3793,7 +3799,7 @@
3793
3799
  }
3794
3800
  };
3795
3801
  //#endregion
3796
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/keyCodes.js
3802
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/keyCodes.js
3797
3803
  var KeyCodeStrMap = class {
3798
3804
  constructor() {
3799
3805
  this._keyCodeToStr = [];
@@ -6402,7 +6408,7 @@
6402
6408
  return (firstPart | (secondPart & 65535) << 16 >>> 0) >>> 0;
6403
6409
  }
6404
6410
  //#endregion
6405
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/process.js
6411
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/process.js
6406
6412
  let safeProcess;
6407
6413
  const vscodeGlobal = globalThis.vscode;
6408
6414
  if (typeof vscodeGlobal !== "undefined" && typeof vscodeGlobal.process !== "undefined") {
@@ -6469,7 +6475,7 @@
6469
6475
  */
6470
6476
  const platform = safeProcess.platform;
6471
6477
  //#endregion
6472
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/path.js
6478
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/path.js
6473
6479
  /**
6474
6480
  * Copyright Joyent, Inc. and other Node contributors.
6475
6481
  *
@@ -6644,9 +6650,11 @@
6644
6650
  rootEnd = 3;
6645
6651
  }
6646
6652
  }
6647
- if (device.length > 0) if (resolvedDevice.length > 0) {
6648
- if (device.toLowerCase() !== resolvedDevice.toLowerCase()) continue;
6649
- } else resolvedDevice = device;
6653
+ if (device.length > 0) {
6654
+ if (resolvedDevice.length > 0) {
6655
+ if (device.toLowerCase() !== resolvedDevice.toLowerCase()) continue;
6656
+ } else resolvedDevice = device;
6657
+ }
6650
6658
  if (resolvedAbsolute) {
6651
6659
  if (resolvedDevice.length > 0) break;
6652
6660
  } else {
@@ -6723,8 +6731,10 @@
6723
6731
  for (let i = 0; i < paths.length; ++i) {
6724
6732
  const arg = paths[i];
6725
6733
  validateString(arg, "path");
6726
- if (arg.length > 0) if (joined === void 0) joined = firstPart = arg;
6727
- else joined += `\\${arg}`;
6734
+ if (arg.length > 0) {
6735
+ if (joined === void 0) joined = firstPart = arg;
6736
+ else joined += `\\${arg}`;
6737
+ }
6728
6738
  }
6729
6739
  if (joined === void 0) return ".";
6730
6740
  let needsReplace = true;
@@ -6734,8 +6744,10 @@
6734
6744
  const firstLen = firstPart.length;
6735
6745
  if (firstLen > 1 && isPathSeparator(firstPart.charCodeAt(1))) {
6736
6746
  ++slashCount;
6737
- if (firstLen > 2) if (isPathSeparator(firstPart.charCodeAt(2))) ++slashCount;
6738
- else needsReplace = false;
6747
+ if (firstLen > 2) {
6748
+ if (isPathSeparator(firstPart.charCodeAt(2))) ++slashCount;
6749
+ else needsReplace = false;
6750
+ }
6739
6751
  }
6740
6752
  }
6741
6753
  if (needsReplace) {
@@ -6762,8 +6774,8 @@
6762
6774
  const fromLen = fromSplit.length;
6763
6775
  const toLen = toSplit.length;
6764
6776
  const length = fromLen < toLen ? fromLen : toLen;
6765
- let i;
6766
- for (i = 0; i < length; i++) if (fromSplit[i].toLowerCase() !== toSplit[i].toLowerCase()) break;
6777
+ let i = 0;
6778
+ for (; i < length; i++) if (fromSplit[i].toLowerCase() !== toSplit[i].toLowerCase()) break;
6767
6779
  if (i === 0) return toOrig;
6768
6780
  else if (i === length) {
6769
6781
  if (toLen > length) return toSplit.slice(i).join("\\");
@@ -6889,11 +6901,13 @@
6889
6901
  matchedSlash = false;
6890
6902
  firstNonSlashEnd = i + 1;
6891
6903
  }
6892
- if (extIdx >= 0) if (code === suffix.charCodeAt(extIdx)) {
6893
- if (--extIdx === -1) end = i;
6894
- } else {
6895
- extIdx = -1;
6896
- end = firstNonSlashEnd;
6904
+ if (extIdx >= 0) {
6905
+ if (code === suffix.charCodeAt(extIdx)) {
6906
+ if (--extIdx === -1) end = i;
6907
+ } else {
6908
+ extIdx = -1;
6909
+ end = firstNonSlashEnd;
6910
+ }
6897
6911
  }
6898
6912
  }
6899
6913
  }
@@ -7021,11 +7035,13 @@
7021
7035
  else if (preDotState !== 1) preDotState = 1;
7022
7036
  } else if (startDot !== -1) preDotState = -1;
7023
7037
  }
7024
- if (end !== -1) if (startDot === -1 || preDotState === 0 || preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) ret.base = ret.name = path.slice(startPart, end);
7025
- else {
7026
- ret.name = path.slice(startPart, startDot);
7027
- ret.base = path.slice(startPart, end);
7028
- ret.ext = path.slice(startDot, end);
7038
+ if (end !== -1) {
7039
+ if (startDot === -1 || preDotState === 0 || preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) ret.base = ret.name = path.slice(startPart, end);
7040
+ else {
7041
+ ret.name = path.slice(startPart, startDot);
7042
+ ret.base = path.slice(startPart, end);
7043
+ ret.ext = path.slice(startDot, end);
7044
+ }
7029
7045
  }
7030
7046
  if (startPart > 0 && startPart !== rootEnd) ret.dir = path.slice(0, startPart - 1);
7031
7047
  else ret.dir = ret.root;
@@ -7169,11 +7185,13 @@
7169
7185
  matchedSlash = false;
7170
7186
  firstNonSlashEnd = i + 1;
7171
7187
  }
7172
- if (extIdx >= 0) if (code === suffix.charCodeAt(extIdx)) {
7173
- if (--extIdx === -1) end = i;
7174
- } else {
7175
- extIdx = -1;
7176
- end = firstNonSlashEnd;
7188
+ if (extIdx >= 0) {
7189
+ if (code === suffix.charCodeAt(extIdx)) {
7190
+ if (--extIdx === -1) end = i;
7191
+ } else {
7192
+ extIdx = -1;
7193
+ end = firstNonSlashEnd;
7194
+ }
7177
7195
  }
7178
7196
  }
7179
7197
  }
@@ -7290,7 +7308,7 @@
7290
7308
  platformIsWin32 ? win32.extname : posix.extname;
7291
7309
  platformIsWin32 ? win32.sep : posix.sep;
7292
7310
  //#endregion
7293
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/uri.js
7311
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/uri.js
7294
7312
  const _schemePattern = /^\w[\w\d+.-]*$/;
7295
7313
  const _singleSlashStart = /^\//;
7296
7314
  const _doubleSlashStart = /^\/\//;
@@ -7311,10 +7329,8 @@
7311
7329
  switch (scheme) {
7312
7330
  case "https":
7313
7331
  case "http":
7314
- case "file":
7315
- if (!path) path = _slash;
7316
- else if (path[0] !== _slash) path = _slash + path;
7317
- break;
7332
+ case "file": if (!path) path = _slash;
7333
+ else if (path[0] !== _slash) path = _slash + path;
7318
7334
  }
7319
7335
  return path;
7320
7336
  }
@@ -7600,9 +7616,10 @@
7600
7616
  function uriToFsPath(uri, keepDriveLetterCasing) {
7601
7617
  let value;
7602
7618
  if (uri.authority && uri.path.length > 1 && uri.scheme === "file") value = `//${uri.authority}${uri.path}`;
7603
- else if (uri.path.charCodeAt(0) === 47 && (uri.path.charCodeAt(1) >= 65 && uri.path.charCodeAt(1) <= 90 || uri.path.charCodeAt(1) >= 97 && uri.path.charCodeAt(1) <= 122) && uri.path.charCodeAt(2) === 58) if (!keepDriveLetterCasing) value = uri.path[1].toLowerCase() + uri.path.substr(2);
7604
- else value = uri.path.substr(1);
7605
- else value = uri.path;
7619
+ else if (uri.path.charCodeAt(0) === 47 && (uri.path.charCodeAt(1) >= 65 && uri.path.charCodeAt(1) <= 90 || uri.path.charCodeAt(1) >= 97 && uri.path.charCodeAt(1) <= 122) && uri.path.charCodeAt(2) === 58) {
7620
+ if (!keepDriveLetterCasing) value = uri.path[1].toLowerCase() + uri.path.substr(2);
7621
+ else value = uri.path.substr(1);
7622
+ } else value = uri.path;
7606
7623
  if (isWindows) value = value.replace(/\//g, "\\");
7607
7624
  return value;
7608
7625
  }
@@ -7677,7 +7694,7 @@
7677
7694
  return str.replace(_rEncodedAsHex, (match) => decodeURIComponentGraceful(match));
7678
7695
  }
7679
7696
  //#endregion
7680
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/selection.js
7697
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/selection.js
7681
7698
  /**
7682
7699
  * A selection in the editor.
7683
7700
  * The selection is a range that has an orientation.
@@ -7785,7 +7802,7 @@
7785
7802
  }
7786
7803
  };
7787
7804
  //#endregion
7788
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/codiconsUtil.js
7805
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/codiconsUtil.js
7789
7806
  const _codiconFontCharacters = Object.create(null);
7790
7807
  function register(id, fontCharacter) {
7791
7808
  if (isString$1(fontCharacter)) {
@@ -7797,7 +7814,7 @@
7797
7814
  return { id };
7798
7815
  }
7799
7816
  //#endregion
7800
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/codiconsLibrary.js
7817
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/codiconsLibrary.js
7801
7818
  const codiconsLibrary = {
7802
7819
  add: register("add", 6e4),
7803
7820
  plus: register("plus", 6e4),
@@ -8430,7 +8447,7 @@
8430
8447
  terminalGitBash: register("terminal-git-bash", 60529)
8431
8448
  };
8432
8449
  //#endregion
8433
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/codicons.js
8450
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/codicons.js
8434
8451
  /**
8435
8452
  * Derived icons, that could become separate icons.
8436
8453
  * These mappings should be moved into the mapping file in the vscode-codicons repo at some point.
@@ -8477,7 +8494,7 @@
8477
8494
  ...codiconsDerived
8478
8495
  };
8479
8496
  //#endregion
8480
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/tokenizationRegistry.js
8497
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/tokenizationRegistry.js
8481
8498
  var TokenizationRegistry$1 = class {
8482
8499
  constructor() {
8483
8500
  this._tokenizationSupports = /* @__PURE__ */ new Map();
@@ -8572,7 +8589,7 @@
8572
8589
  }
8573
8590
  };
8574
8591
  //#endregion
8575
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/languages.js
8592
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/languages.js
8576
8593
  var Token = class {
8577
8594
  constructor(offset, type, language) {
8578
8595
  this.offset = offset;
@@ -8939,7 +8956,7 @@
8939
8956
  })(InlayHintKind$2 || (InlayHintKind$2 = {}));
8940
8957
  new TokenizationRegistry$1();
8941
8958
  //#endregion
8942
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js
8959
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js
8943
8960
  var AccessibilitySupport;
8944
8961
  (function(AccessibilitySupport) {
8945
8962
  /**
@@ -9951,7 +9968,7 @@
9951
9968
  WrappingIndent[WrappingIndent["DeepIndent"] = 3] = "DeepIndent";
9952
9969
  })(WrappingIndent || (WrappingIndent = {}));
9953
9970
  //#endregion
9954
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js
9971
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js
9955
9972
  var KeyMod = class {
9956
9973
  static {
9957
9974
  this.CtrlCmd = 2048;
@@ -9988,8 +10005,9 @@
9988
10005
  };
9989
10006
  }
9990
10007
  //#endregion
9991
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/map.js
9992
- var _a, _c;
10008
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/map.js
10009
+ var _a;
10010
+ var _c;
9993
10011
  var ResourceMapEntry = class {
9994
10012
  constructor(uri, value) {
9995
10013
  this.uri = uri;
@@ -10112,9 +10130,7 @@
10112
10130
  case 2:
10113
10131
  this.addItemLast(item);
10114
10132
  break;
10115
- default:
10116
- this.addItemLast(item);
10117
- break;
10133
+ default: this.addItemLast(item);
10118
10134
  }
10119
10135
  this._map.set(key, item);
10120
10136
  this._size++;
@@ -10423,7 +10439,7 @@
10423
10439
  };
10424
10440
  new LRUCache(10);
10425
10441
  //#endregion
10426
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/model.js
10442
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/model.js
10427
10443
  /**
10428
10444
  * Vertical Lane in the overview ruler of the editor.
10429
10445
  */
@@ -10459,7 +10475,7 @@
10459
10475
  InjectedTextCursorStops[InjectedTextCursorStops["None"] = 3] = "None";
10460
10476
  })(InjectedTextCursorStops || (InjectedTextCursorStops = {}));
10461
10477
  //#endregion
10462
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js
10478
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js
10463
10479
  function isMultilineRegexSource(searchString) {
10464
10480
  if (!searchString || searchString.length === 0) return false;
10465
10481
  for (let i = 0, len = searchString.length; i < len; i++) {
@@ -10536,7 +10552,7 @@
10536
10552
  }
10537
10553
  };
10538
10554
  //#endregion
10539
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js
10555
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js
10540
10556
  const USUAL_WORD_SEPARATORS = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";
10541
10557
  /**
10542
10558
  * Create a word definition regular expression based on default word separators.
@@ -10557,13 +10573,15 @@
10557
10573
  const DEFAULT_WORD_REGEXP = createWordRegExp();
10558
10574
  function ensureValidWordDefinition(wordDefinition) {
10559
10575
  let result = DEFAULT_WORD_REGEXP;
10560
- if (wordDefinition && wordDefinition instanceof RegExp) if (!wordDefinition.global) {
10561
- let flags = "g";
10562
- if (wordDefinition.ignoreCase) flags += "i";
10563
- if (wordDefinition.multiline) flags += "m";
10564
- if (wordDefinition.unicode) flags += "u";
10565
- result = new RegExp(wordDefinition.source, flags);
10566
- } else result = wordDefinition;
10576
+ if (wordDefinition && wordDefinition instanceof RegExp) {
10577
+ if (!wordDefinition.global) {
10578
+ let flags = "g";
10579
+ if (wordDefinition.ignoreCase) flags += "i";
10580
+ if (wordDefinition.multiline) flags += "m";
10581
+ if (wordDefinition.unicode) flags += "u";
10582
+ result = new RegExp(wordDefinition.source, flags);
10583
+ } else result = wordDefinition;
10584
+ }
10567
10585
  result.lastIndex = 0;
10568
10586
  return result;
10569
10587
  }
@@ -10618,7 +10636,7 @@
10618
10636
  return null;
10619
10637
  }
10620
10638
  //#endregion
10621
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js
10639
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js
10622
10640
  var UnicodeTextModelHighlighter = class {
10623
10641
  static computeUnicodeHighlights(model, options, range) {
10624
10642
  const startLine = range ? range.startLineNumber : 1;
@@ -10684,7 +10702,7 @@
10684
10702
  case 3: {
10685
10703
  const codePoint = char.codePointAt(0);
10686
10704
  const primaryConfusable = codePointHighlighter.ambiguousCharacters.getPrimaryConfusable(codePoint);
10687
- const notAmbiguousInLocales = AmbiguousCharacters.getLocales().filter((l) => !AmbiguousCharacters.getInstance(new Set([...options.allowedLocales, l])).isAmbiguous(codePoint));
10705
+ const notAmbiguousInLocales = AmbiguousCharacters.getLocales().filter((l) => !AmbiguousCharacters.getInstance(/* @__PURE__ */ new Set([...options.allowedLocales, l])).isAmbiguous(codePoint));
10688
10706
  return {
10689
10707
  kind: 0,
10690
10708
  confusableWith: String.fromCodePoint(primaryConfusable),
@@ -10740,7 +10758,7 @@
10740
10758
  return character === " " || character === "\n" || character === " ";
10741
10759
  }
10742
10760
  //#endregion
10743
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js
10761
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js
10744
10762
  var LinesDiff = class {
10745
10763
  constructor(changes, moves, hitTimeout) {
10746
10764
  this.changes = changes;
@@ -10755,7 +10773,7 @@
10755
10773
  }
10756
10774
  };
10757
10775
  //#endregion
10758
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/arrays.js
10776
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/arrays.js
10759
10777
  function equals$1(one, other, itemEquals = (a, b) => a === b) {
10760
10778
  if (one === other) return true;
10761
10779
  if (!one || !other) return false;
@@ -10865,7 +10883,7 @@
10865
10883
  }
10866
10884
  });
10867
10885
  //#endregion
10868
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/ranges/offsetRange.js
10886
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/ranges/offsetRange.js
10869
10887
  /**
10870
10888
  * A range of offsets (0-based).
10871
10889
  */
@@ -11001,7 +11019,7 @@
11001
11019
  }
11002
11020
  };
11003
11021
  //#endregion
11004
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/arraysFind.js
11022
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/arraysFind.js
11005
11023
  /**
11006
11024
  * Finds the last item where predicate is true using binary search.
11007
11025
  * `predicate` must be monotonous, i.e. `arr.map(predicate)` must be like `[true, ..., true, false, ..., false]`!
@@ -11085,7 +11103,7 @@
11085
11103
  }
11086
11104
  };
11087
11105
  //#endregion
11088
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/ranges/lineRange.js
11106
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/ranges/lineRange.js
11089
11107
  /**
11090
11108
  * A range of lines (1-based).
11091
11109
  */
@@ -11324,7 +11342,7 @@
11324
11342
  }
11325
11343
  };
11326
11344
  //#endregion
11327
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/text/textLength.js
11345
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/text/textLength.js
11328
11346
  /**
11329
11347
  * Represents a non-negative length of text in terms of line and column count.
11330
11348
  */
@@ -11382,7 +11400,7 @@
11382
11400
  }
11383
11401
  };
11384
11402
  //#endregion
11385
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/text/positionToOffsetImpl.js
11403
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/text/positionToOffsetImpl.js
11386
11404
  var PositionOffsetTransformerBase = class {
11387
11405
  getOffsetRange(range) {
11388
11406
  return new OffsetRange(this.getOffset(range.getStartPosition()), this.getOffset(range.getEndPosition()));
@@ -11450,7 +11468,7 @@
11450
11468
  }
11451
11469
  };
11452
11470
  //#endregion
11453
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/text/abstractText.js
11471
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/text/abstractText.js
11454
11472
  var AbstractText = class {
11455
11473
  constructor() {
11456
11474
  this._transformer = void 0;
@@ -11506,7 +11524,7 @@
11506
11524
  }
11507
11525
  };
11508
11526
  //#endregion
11509
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/edits/textEdit.js
11527
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/core/edits/textEdit.js
11510
11528
  var TextReplacement = class TextReplacement {
11511
11529
  static joinReplacements(replacements, initialValue) {
11512
11530
  if (replacements.length === 0) throw new BugIndicatingError();
@@ -11554,7 +11572,8 @@
11554
11572
  const commonPrefixLen = commonPrefixLength(normalizedOriginalText, normalizedModifiedText);
11555
11573
  const start = TextLength.ofText(normalizedOriginalText.substring(0, commonPrefixLen)).addToPosition(this.range.getStartPosition());
11556
11574
  const newText = normalizedModifiedText.substring(commonPrefixLen);
11557
- return new TextReplacement(Range$1.fromPositions(start, this.range.getEndPosition()), newText);
11575
+ const range = Range$1.fromPositions(start, this.range.getEndPosition());
11576
+ return new TextReplacement(range, newText);
11558
11577
  }
11559
11578
  removeCommonSuffix(text) {
11560
11579
  const normalizedOriginalText = text.getValueOfRange(this.range).replaceAll("\r\n", "\n");
@@ -11562,7 +11581,8 @@
11562
11581
  const commonSuffixLen = commonSuffixLength(normalizedOriginalText, normalizedModifiedText);
11563
11582
  const end = TextLength.ofText(normalizedOriginalText.substring(0, normalizedOriginalText.length - commonSuffixLen)).addToPosition(this.range.getStartPosition());
11564
11583
  const newText = normalizedModifiedText.substring(0, normalizedModifiedText.length - commonSuffixLen);
11565
- return new TextReplacement(Range$1.fromPositions(this.range.getStartPosition(), end), newText);
11584
+ const range = Range$1.fromPositions(this.range.getStartPosition(), end);
11585
+ return new TextReplacement(range, newText);
11566
11586
  }
11567
11587
  toString() {
11568
11588
  const start = this.range.getStartPosition();
@@ -11571,7 +11591,7 @@
11571
11591
  }
11572
11592
  };
11573
11593
  //#endregion
11574
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js
11594
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js
11575
11595
  /**
11576
11596
  * Maps a line range in the original text model to a line range in the modified text model.
11577
11597
  */
@@ -11654,7 +11674,9 @@
11654
11674
  */
11655
11675
  var DetailedLineRangeMapping = class DetailedLineRangeMapping extends LineRangeMapping {
11656
11676
  static fromRangeMappings(rangeMappings) {
11657
- return new DetailedLineRangeMapping(LineRange.join(rangeMappings.map((r) => LineRange.fromRangeInclusive(r.originalRange))), LineRange.join(rangeMappings.map((r) => LineRange.fromRangeInclusive(r.modifiedRange))), rangeMappings);
11677
+ const originalRange = LineRange.join(rangeMappings.map((r) => LineRange.fromRangeInclusive(r.originalRange)));
11678
+ const modifiedRange = LineRange.join(rangeMappings.map((r) => LineRange.fromRangeInclusive(r.modifiedRange)));
11679
+ return new DetailedLineRangeMapping(originalRange, modifiedRange, rangeMappings);
11658
11680
  }
11659
11681
  constructor(originalRange, modifiedRange, innerChanges) {
11660
11682
  super(originalRange, modifiedRange);
@@ -11724,7 +11746,7 @@
11724
11746
  return new DetailedLineRangeMapping(new LineRange(rangeMapping.originalRange.startLineNumber + lineStartDelta, rangeMapping.originalRange.endLineNumber + 1 + lineEndDelta), new LineRange(rangeMapping.modifiedRange.startLineNumber + lineStartDelta, rangeMapping.modifiedRange.endLineNumber + 1 + lineEndDelta), [rangeMapping]);
11725
11747
  }
11726
11748
  //#endregion
11727
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/legacyLinesDiffComputer.js
11749
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/legacyLinesDiffComputer.js
11728
11750
  const MINIMUM_MATCHING_CHARACTER_LENGTH = 3;
11729
11751
  var LegacyLinesDiffComputer = class {
11730
11752
  computeDiff(originalLines, modifiedLines, options) {
@@ -11864,7 +11886,15 @@
11864
11886
  this.modifiedEndColumn = modifiedEndColumn;
11865
11887
  }
11866
11888
  static createFromDiffChange(diffChange, originalCharSequence, modifiedCharSequence) {
11867
- return new CharChange(originalCharSequence.getStartLineNumber(diffChange.originalStart), originalCharSequence.getStartColumn(diffChange.originalStart), originalCharSequence.getEndLineNumber(diffChange.originalStart + diffChange.originalLength - 1), originalCharSequence.getEndColumn(diffChange.originalStart + diffChange.originalLength - 1), modifiedCharSequence.getStartLineNumber(diffChange.modifiedStart), modifiedCharSequence.getStartColumn(diffChange.modifiedStart), modifiedCharSequence.getEndLineNumber(diffChange.modifiedStart + diffChange.modifiedLength - 1), modifiedCharSequence.getEndColumn(diffChange.modifiedStart + diffChange.modifiedLength - 1));
11889
+ const originalStartLineNumber = originalCharSequence.getStartLineNumber(diffChange.originalStart);
11890
+ const originalStartColumn = originalCharSequence.getStartColumn(diffChange.originalStart);
11891
+ const originalEndLineNumber = originalCharSequence.getEndLineNumber(diffChange.originalStart + diffChange.originalLength - 1);
11892
+ const originalEndColumn = originalCharSequence.getEndColumn(diffChange.originalStart + diffChange.originalLength - 1);
11893
+ const modifiedStartLineNumber = modifiedCharSequence.getStartLineNumber(diffChange.modifiedStart);
11894
+ const modifiedStartColumn = modifiedCharSequence.getStartColumn(diffChange.modifiedStart);
11895
+ const modifiedEndLineNumber = modifiedCharSequence.getEndLineNumber(diffChange.modifiedStart + diffChange.modifiedLength - 1);
11896
+ const modifiedEndColumn = modifiedCharSequence.getEndColumn(diffChange.modifiedStart + diffChange.modifiedLength - 1);
11897
+ return new CharChange(originalStartLineNumber, originalStartColumn, originalEndLineNumber, originalEndColumn, modifiedStartLineNumber, modifiedStartColumn, modifiedEndLineNumber, modifiedEndColumn);
11868
11898
  }
11869
11899
  };
11870
11900
  function postProcessCharChanges(rawChanges) {
@@ -12067,7 +12097,7 @@
12067
12097
  };
12068
12098
  }
12069
12099
  //#endregion
12070
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js
12100
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js
12071
12101
  var DiffAlgorithmResult = class DiffAlgorithmResult {
12072
12102
  static trivial(seq1, seq2) {
12073
12103
  return new DiffAlgorithmResult([new SequenceDiff(OffsetRange.ofLength(seq1.length), OffsetRange.ofLength(seq2.length))], false);
@@ -12181,7 +12211,7 @@
12181
12211
  }
12182
12212
  };
12183
12213
  //#endregion
12184
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js
12214
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js
12185
12215
  var Array2D = class {
12186
12216
  constructor(width, height) {
12187
12217
  this.width = width;
@@ -12239,7 +12269,7 @@
12239
12269
  }
12240
12270
  };
12241
12271
  //#endregion
12242
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js
12272
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js
12243
12273
  /**
12244
12274
  * A O(MN) diffing algorithm that supports a score function.
12245
12275
  * The algorithm can be improved by processing the 2d array diagonally.
@@ -12300,7 +12330,7 @@
12300
12330
  }
12301
12331
  };
12302
12332
  //#endregion
12303
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js
12333
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js
12304
12334
  /**
12305
12335
  * An O(ND) diff algorithm that has a quadratic space worst-case complexity.
12306
12336
  */
@@ -12370,8 +12400,8 @@
12370
12400
  */
12371
12401
  var FastInt32Array = class {
12372
12402
  constructor() {
12373
- this.positiveArr = new Int32Array(10);
12374
- this.negativeArr = new Int32Array(10);
12403
+ this.positiveArr = /* @__PURE__ */ new Int32Array(10);
12404
+ this.negativeArr = /* @__PURE__ */ new Int32Array(10);
12375
12405
  }
12376
12406
  get(idx) {
12377
12407
  if (idx < 0) {
@@ -12420,7 +12450,7 @@
12420
12450
  }
12421
12451
  };
12422
12452
  //#endregion
12423
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js
12453
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js
12424
12454
  var LinesSliceCharSequence = class {
12425
12455
  constructor(lines, range, considerWhitespaceChanges) {
12426
12456
  this.lines = lines;
@@ -12558,7 +12588,7 @@
12558
12588
  else return 4;
12559
12589
  }
12560
12590
  //#endregion
12561
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js
12591
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js
12562
12592
  function computeMovedLines(changes, originalLines, modifiedLines, hashedOriginalLines, hashedModifiedLines, timeout) {
12563
12593
  let { moves, excludedChanges } = computeMovesFromSimpleDeletionsToSimpleInsertions(changes, originalLines, modifiedLines, timeout);
12564
12594
  if (!timeout.isValid()) return [];
@@ -12668,8 +12698,8 @@
12668
12698
  const lastTouchingChangeOrig = monotonousChanges.findLastMonotonous((c) => c.original.startLineNumber < move.original.endLineNumberExclusive);
12669
12699
  const lastTouchingChangeMod = findLastMonotonous(changes, (c) => c.modified.startLineNumber < move.modified.endLineNumberExclusive);
12670
12700
  const linesBelow = Math.max(lastTouchingChangeOrig.original.endLineNumberExclusive - move.original.endLineNumberExclusive, lastTouchingChangeMod.modified.endLineNumberExclusive - move.modified.endLineNumberExclusive);
12671
- let extendToTop;
12672
- for (extendToTop = 0; extendToTop < linesAbove; extendToTop++) {
12701
+ let extendToTop = 0;
12702
+ for (; extendToTop < linesAbove; extendToTop++) {
12673
12703
  const origLine = move.original.startLineNumber - extendToTop - 1;
12674
12704
  const modLine = move.modified.startLineNumber - extendToTop - 1;
12675
12705
  if (origLine > originalLines.length || modLine > modifiedLines.length) break;
@@ -12680,8 +12710,8 @@
12680
12710
  originalSet.addRange(new LineRange(move.original.startLineNumber - extendToTop, move.original.startLineNumber));
12681
12711
  modifiedSet.addRange(new LineRange(move.modified.startLineNumber - extendToTop, move.modified.startLineNumber));
12682
12712
  }
12683
- let extendToBottom;
12684
- for (extendToBottom = 0; extendToBottom < linesBelow; extendToBottom++) {
12713
+ let extendToBottom = 0;
12714
+ for (; extendToBottom < linesBelow; extendToBottom++) {
12685
12715
  const origLine = move.original.endLineNumberExclusive + extendToBottom;
12686
12716
  const modLine = move.modified.endLineNumberExclusive + extendToBottom;
12687
12717
  if (origLine > originalLines.length || modLine > modifiedLines.length) break;
@@ -12738,7 +12768,7 @@
12738
12768
  return moves;
12739
12769
  }
12740
12770
  //#endregion
12741
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js
12771
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js
12742
12772
  function optimizeSequenceDiffs(sequence1, sequence2, sequenceDiffs) {
12743
12773
  let result = sequenceDiffs;
12744
12774
  result = joinSequenceDiffsByShifting(sequence1, sequence2, result);
@@ -12767,8 +12797,8 @@
12767
12797
  let cur = sequenceDiffs[i];
12768
12798
  if (cur.seq1Range.isEmpty || cur.seq2Range.isEmpty) {
12769
12799
  const length = cur.seq1Range.start - prevResult.seq1Range.endExclusive;
12770
- let d;
12771
- for (d = 1; d <= length; d++) if (sequence1.getElement(cur.seq1Range.start - d) !== sequence1.getElement(cur.seq1Range.endExclusive - d) || sequence2.getElement(cur.seq2Range.start - d) !== sequence2.getElement(cur.seq2Range.endExclusive - d)) break;
12800
+ let d = 1;
12801
+ for (; d <= length; d++) if (sequence1.getElement(cur.seq1Range.start - d) !== sequence1.getElement(cur.seq1Range.endExclusive - d) || sequence2.getElement(cur.seq2Range.start - d) !== sequence2.getElement(cur.seq2Range.endExclusive - d)) break;
12772
12802
  d--;
12773
12803
  if (d === length) {
12774
12804
  result[result.length - 1] = new SequenceDiff(new OffsetRange(prevResult.seq1Range.start, cur.seq1Range.endExclusive - length), new OffsetRange(prevResult.seq2Range.start, cur.seq2Range.endExclusive - length));
@@ -12784,8 +12814,8 @@
12784
12814
  let cur = result[i];
12785
12815
  if (cur.seq1Range.isEmpty || cur.seq2Range.isEmpty) {
12786
12816
  const length = nextResult.seq1Range.start - cur.seq1Range.endExclusive;
12787
- let d;
12788
- for (d = 0; d < length; d++) if (!sequence1.isStronglyEqual(cur.seq1Range.start + d, cur.seq1Range.endExclusive + d) || !sequence2.isStronglyEqual(cur.seq2Range.start + d, cur.seq2Range.endExclusive + d)) break;
12817
+ let d = 0;
12818
+ for (; d < length; d++) if (!sequence1.isStronglyEqual(cur.seq1Range.start + d, cur.seq1Range.endExclusive + d) || !sequence2.isStronglyEqual(cur.seq2Range.start + d, cur.seq2Range.endExclusive + d)) break;
12789
12819
  if (d === length) {
12790
12820
  result[i + 1] = new SequenceDiff(new OffsetRange(cur.seq1Range.start + length, nextResult.seq1Range.endExclusive), new OffsetRange(cur.seq2Range.start + length, nextResult.seq2Range.endExclusive));
12791
12821
  continue;
@@ -12975,7 +13005,7 @@
12975
13005
  return newDiffs;
12976
13006
  }
12977
13007
  //#endregion
12978
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js
13008
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js
12979
13009
  var LineSequence = class {
12980
13010
  constructor(trimmedHash, lines) {
12981
13011
  this.trimmedHash = trimmedHash;
@@ -13003,7 +13033,7 @@
13003
13033
  return i;
13004
13034
  }
13005
13035
  //#endregion
13006
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js
13036
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js
13007
13037
  var DefaultLinesDiffComputer = class {
13008
13038
  constructor() {
13009
13039
  this.dynamicProgrammingDiffing = new DynamicProgrammingDiffing();
@@ -13110,13 +13140,13 @@
13110
13140
  return new LineRangeMapping(new LineRange(sequenceDiff.seq1Range.start + 1, sequenceDiff.seq1Range.endExclusive + 1), new LineRange(sequenceDiff.seq2Range.start + 1, sequenceDiff.seq2Range.endExclusive + 1));
13111
13141
  }
13112
13142
  //#endregion
13113
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputers.js
13143
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputers.js
13114
13144
  const linesDiffComputers = {
13115
13145
  getLegacy: () => new LegacyLinesDiffComputer(),
13116
13146
  getDefault: () => new DefaultLinesDiffComputer()
13117
13147
  };
13118
13148
  //#endregion
13119
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/color.js
13149
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/base/common/color.js
13120
13150
  function roundFloat(number, decimalPoints) {
13121
13151
  const decimal = Math.pow(10, decimalPoints);
13122
13152
  return Math.round(number * decimal) / decimal;
@@ -13170,9 +13200,7 @@
13170
13200
  case g:
13171
13201
  h = (b - r) / chroma + 2;
13172
13202
  break;
13173
- case b:
13174
- h = (r - g) / chroma + 4;
13175
- break;
13203
+ case b: h = (r - g) / chroma + 4;
13176
13204
  }
13177
13205
  h *= 60;
13178
13206
  h = Math.round(h);
@@ -13355,7 +13383,11 @@
13355
13383
  const normalize = Math.min(Math.max(factor, 0), 1);
13356
13384
  const thisRGBA = this.rgba;
13357
13385
  const otherRGBA = color.rgba;
13358
- return new Color$1(new RGBA(thisRGBA.r + (otherRGBA.r - thisRGBA.r) * normalize, thisRGBA.g + (otherRGBA.g - thisRGBA.g) * normalize, thisRGBA.b + (otherRGBA.b - thisRGBA.b) * normalize, thisRGBA.a + (otherRGBA.a - thisRGBA.a) * normalize));
13386
+ const r = thisRGBA.r + (otherRGBA.r - thisRGBA.r) * normalize;
13387
+ const g = thisRGBA.g + (otherRGBA.g - thisRGBA.g) * normalize;
13388
+ const b = thisRGBA.b + (otherRGBA.b - thisRGBA.b) * normalize;
13389
+ const a = thisRGBA.a + (otherRGBA.a - thisRGBA.a) * normalize;
13390
+ return new Color$1(new RGBA(r, g, b, a));
13359
13391
  }
13360
13392
  makeOpaque(opaqueBackground) {
13361
13393
  if (this.isOpaque() || opaqueBackground.rgba.a !== 1) return this;
@@ -13692,7 +13724,7 @@
13692
13724
  })(Color.Format || (Color.Format = {}));
13693
13725
  })(Color$1 || (Color$1 = {}));
13694
13726
  //#endregion
13695
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js
13727
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js
13696
13728
  function _parseCaptureGroups(captureGroups) {
13697
13729
  const values = [];
13698
13730
  for (const captureGroup of captureGroups) {
@@ -13777,10 +13809,9 @@
13777
13809
  return computeColors(model);
13778
13810
  }
13779
13811
  //#endregion
13780
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js
13812
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js
13781
13813
  const trimDashesRegex = /^-+|-+$/g;
13782
13814
  const CHUNK_SIZE = 100;
13783
- const MAX_SECTION_LINES = 5;
13784
13815
  /**
13785
13816
  * Find section headers in the model.
13786
13817
  *
@@ -13832,7 +13863,7 @@
13832
13863
  const multiline = isMultilineRegexSource(options.markSectionHeaderRegex);
13833
13864
  const regex = new RegExp(options.markSectionHeaderRegex, `gdm${multiline ? "s" : ""}`);
13834
13865
  if (regExpLeadsToEndlessLoop(regex)) return markHeaders;
13835
- for (let startLine = 1; startLine <= endLineNumber; startLine += CHUNK_SIZE - MAX_SECTION_LINES) {
13866
+ for (let startLine = 1; startLine <= endLineNumber; startLine += 95) {
13836
13867
  const endLine = Math.min(startLine + CHUNK_SIZE - 1, endLineNumber);
13837
13868
  const lines = [];
13838
13869
  for (let i = startLine; i <= endLine; i++) lines.push(model.getLineContent(i));
@@ -14118,12 +14149,12 @@
14118
14149
  }
14119
14150
  });
14120
14151
  //#endregion
14121
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js
14152
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js
14122
14153
  var PrefixSumComputer = class {
14123
14154
  constructor(values) {
14124
14155
  this.values = values;
14125
14156
  this.prefixSum = new Uint32Array(values.length);
14126
- this.prefixSumValidIndex = new Int32Array(1);
14157
+ this.prefixSumValidIndex = /* @__PURE__ */ new Int32Array(1);
14127
14158
  this.prefixSumValidIndex[0] = -1;
14128
14159
  }
14129
14160
  insertValues(insertIndex, insertValues) {
@@ -14220,7 +14251,7 @@
14220
14251
  }
14221
14252
  };
14222
14253
  //#endregion
14223
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel.js
14254
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel.js
14224
14255
  var MirrorTextModel = class {
14225
14256
  constructor(uri, lines, eol, versionId) {
14226
14257
  this._uri = uri;
@@ -14297,7 +14328,7 @@
14297
14328
  }
14298
14329
  };
14299
14330
  //#endregion
14300
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js
14331
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js
14301
14332
  var WorkerTextModelSyncServer = class {
14302
14333
  constructor() {
14303
14334
  this._models = Object.create(null);
@@ -14478,7 +14509,7 @@
14478
14509
  }
14479
14510
  };
14480
14511
  //#endregion
14481
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/editorWebWorker.js
14512
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/editorWebWorker.js
14482
14513
  /**
14483
14514
  * @internal
14484
14515
  */
@@ -14720,7 +14751,7 @@
14720
14751
  };
14721
14752
  if (typeof importScripts === "function") globalThis.monaco = createMonacoBaseAPI();
14722
14753
  //#endregion
14723
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js
14754
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js
14724
14755
  var EditorWorkerHost = class EditorWorkerHost {
14725
14756
  static {
14726
14757
  this.CHANNEL_NAME = "editorWorkerHost";
@@ -14733,7 +14764,7 @@
14733
14764
  }
14734
14765
  };
14735
14766
  //#endregion
14736
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/editor.worker.start.js
14767
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/editor/editor.worker.start.js
14737
14768
  /**
14738
14769
  * Used by `monaco-editor` to hook up web worker rpc.
14739
14770
  * @skipMangle
@@ -14767,7 +14798,7 @@
14767
14798
  };
14768
14799
  }
14769
14800
  //#endregion
14770
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/impl/scanner.js
14801
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/impl/scanner.js
14771
14802
  /**
14772
14803
  * Creates a JSON scanner on the given text.
14773
14804
  * If ignoreTrivia is set, whitespaces or comments are ignored.
@@ -14882,11 +14913,13 @@
14882
14913
  start = pos;
14883
14914
  continue;
14884
14915
  }
14885
- if (ch >= 0 && ch <= 31) if (isLineBreak(ch)) {
14886
- result += text.substring(start, pos);
14887
- scanError = 2;
14888
- break;
14889
- } else scanError = 6;
14916
+ if (ch >= 0 && ch <= 31) {
14917
+ if (isLineBreak(ch)) {
14918
+ result += text.substring(start, pos);
14919
+ scanError = 2;
14920
+ break;
14921
+ } else scanError = 6;
14922
+ }
14890
14923
  pos++;
14891
14924
  }
14892
14925
  return result;
@@ -15145,7 +15178,7 @@
15145
15178
  CharacterCodes[CharacterCodes["tab"] = 9] = "tab";
15146
15179
  })(CharacterCodes || (CharacterCodes = {}));
15147
15180
  //#endregion
15148
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/impl/string-intern.js
15181
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/impl/string-intern.js
15149
15182
  const cachedSpaces = new Array(20).fill(0).map((_, index) => {
15150
15183
  return " ".repeat(index);
15151
15184
  });
@@ -15180,7 +15213,7 @@
15180
15213
  "\r\n"
15181
15214
  ];
15182
15215
  //#endregion
15183
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/impl/format.js
15216
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/impl/format.js
15184
15217
  function format$3(documentText, range, options) {
15185
15218
  let initialIndentLevel;
15186
15219
  let formatText;
@@ -15303,14 +15336,14 @@
15303
15336
  else if ((secondToken === 12 || secondToken === 13) && !needsLineBreak) replaceContent = cachedSpaces[1];
15304
15337
  else if (secondToken !== 5 && secondToken !== 17) hasError = true;
15305
15338
  break;
15306
- case 16:
15307
- hasError = true;
15308
- break;
15339
+ case 16: hasError = true;
15309
15340
  }
15310
15341
  if (numberLineBreaks > 0 && (secondToken === 12 || secondToken === 13)) replaceContent = newLinesAndIndent();
15311
15342
  }
15312
- if (secondToken === 17) if (options.keepLines && numberLineBreaks > 0) replaceContent = newLinesAndIndent();
15313
- else replaceContent = options.insertFinalNewline ? eol : "";
15343
+ if (secondToken === 17) {
15344
+ if (options.keepLines && numberLineBreaks > 0) replaceContent = newLinesAndIndent();
15345
+ else replaceContent = options.insertFinalNewline ? eol : "";
15346
+ }
15314
15347
  const secondTokenStart = scanner.getTokenOffset() + formatTextStart;
15315
15348
  addEdit(replaceContent, firstTokenEnd, secondTokenStart);
15316
15349
  firstToken = secondToken;
@@ -15349,7 +15382,7 @@
15349
15382
  return "\r\n".indexOf(text.charAt(offset)) !== -1;
15350
15383
  }
15351
15384
  //#endregion
15352
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/impl/parser.js
15385
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/impl/parser.js
15353
15386
  var ParseOptions;
15354
15387
  (function(ParseOptions) {
15355
15388
  ParseOptions.DEFAULT = { allowTrailingComma: false };
@@ -15492,9 +15525,7 @@
15492
15525
  case 2:
15493
15526
  handleError(12);
15494
15527
  break;
15495
- case 6:
15496
- handleError(16);
15497
- break;
15528
+ case 6: handleError(16);
15498
15529
  }
15499
15530
  switch (token) {
15500
15531
  case 12:
@@ -15639,7 +15670,7 @@
15639
15670
  return true;
15640
15671
  }
15641
15672
  //#endregion
15642
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/main.js
15673
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/jsonc-parser/lib/esm/main.js
15643
15674
  /**
15644
15675
  * Creates a JSON scanner on the given text.
15645
15676
  * If ignoreTrivia is set, whitespaces or comments are ignored.
@@ -15724,7 +15755,7 @@
15724
15755
  return format$3(documentText, range, options);
15725
15756
  }
15726
15757
  //#endregion
15727
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/objects.js
15758
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/objects.js
15728
15759
  function equals(one, other) {
15729
15760
  if (one === other) return true;
15730
15761
  if (one === null || one === void 0 || other === null || other === void 0) return false;
@@ -15763,7 +15794,7 @@
15763
15794
  return typeof val === "object" && val !== null && !Array.isArray(val);
15764
15795
  }
15765
15796
  //#endregion
15766
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/strings.js
15797
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/strings.js
15767
15798
  function startsWith(haystack, needle) {
15768
15799
  if (haystack.length < needle.length) return false;
15769
15800
  for (let i = 0; i < needle.length; i++) if (haystack[i] !== needle[i]) return false;
@@ -15804,7 +15835,7 @@
15804
15835
  return count;
15805
15836
  }
15806
15837
  //#endregion
15807
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-languageserver-types/lib/esm/main.js
15838
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-languageserver-types/lib/esm/main.js
15808
15839
  var DocumentUri;
15809
15840
  (function(DocumentUri) {
15810
15841
  function is(value) {
@@ -17684,7 +17715,7 @@
17684
17715
  Is.typedArray = typedArray;
17685
17716
  })(Is || (Is = {}));
17686
17717
  //#endregion
17687
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-languageserver-textdocument/lib/esm/main.js
17718
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-languageserver-textdocument/lib/esm/main.js
17688
17719
  var FullTextDocument = class FullTextDocument {
17689
17720
  constructor(uri, languageId, version, content) {
17690
17721
  this._uri = uri;
@@ -17870,7 +17901,7 @@
17870
17901
  return textEdit;
17871
17902
  }
17872
17903
  //#endregion
17873
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/jsonLanguageTypes.js
17904
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/jsonLanguageTypes.js
17874
17905
  /**
17875
17906
  * Error codes used by diagnostics
17876
17907
  */
@@ -17916,7 +17947,7 @@
17916
17947
  } } } };
17917
17948
  })(ClientCapabilities || (ClientCapabilities = {}));
17918
17949
  //#endregion
17919
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/@vscode/l10n/dist/browser.js
17950
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/@vscode/l10n/dist/browser.js
17920
17951
  function t(...args) {
17921
17952
  const firstArg = args[0];
17922
17953
  let key;
@@ -17947,7 +17978,7 @@
17947
17978
  return template.replace(_format2Regexp, (match, group) => values[group] ?? match);
17948
17979
  }
17949
17980
  //#endregion
17950
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/parser/jsonParser.js
17981
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/parser/jsonParser.js
17951
17982
  const formats = {
17952
17983
  "color-hex": {
17953
17984
  errorMessage: t("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),
@@ -18226,9 +18257,7 @@
18226
18257
  case "string":
18227
18258
  _validateStringNode(node);
18228
18259
  break;
18229
- case "number":
18230
- _validateNumberNode(node);
18231
- break;
18260
+ case "number": _validateNumberNode(node);
18232
18261
  }
18233
18262
  matchingSchemas.add({
18234
18263
  node,
@@ -18550,23 +18579,25 @@
18550
18579
  validationResult.processedProperties.add(String(index));
18551
18580
  }
18552
18581
  }
18553
- if (additionalItemSchema !== void 0 && index < node.items.length) if (typeof additionalItemSchema === "boolean") {
18554
- if (additionalItemSchema === false) validationResult.problems.push({
18555
- location: {
18556
- offset: node.offset,
18557
- length: node.length
18558
- },
18559
- message: t("Array has too many items according to schema. Expected {0} or fewer.", index)
18560
- });
18561
- for (; index < node.items.length; index++) {
18582
+ if (additionalItemSchema !== void 0 && index < node.items.length) {
18583
+ if (typeof additionalItemSchema === "boolean") {
18584
+ if (additionalItemSchema === false) validationResult.problems.push({
18585
+ location: {
18586
+ offset: node.offset,
18587
+ length: node.length
18588
+ },
18589
+ message: t("Array has too many items according to schema. Expected {0} or fewer.", index)
18590
+ });
18591
+ for (; index < node.items.length; index++) {
18592
+ validationResult.processedProperties.add(String(index));
18593
+ validationResult.propertiesValueMatches++;
18594
+ }
18595
+ } else for (; index < node.items.length; index++) {
18596
+ const itemValidationResult = new ValidationResult();
18597
+ validate(node.items[index], additionalItemSchema, itemValidationResult, matchingSchemas, context);
18598
+ validationResult.mergePropertyMatch(itemValidationResult);
18562
18599
  validationResult.processedProperties.add(String(index));
18563
- validationResult.propertiesValueMatches++;
18564
18600
  }
18565
- } else for (; index < node.items.length; index++) {
18566
- const itemValidationResult = new ValidationResult();
18567
- validate(node.items[index], additionalItemSchema, itemValidationResult, matchingSchemas, context);
18568
- validationResult.mergePropertyMatch(itemValidationResult);
18569
- validationResult.processedProperties.add(String(index));
18570
18601
  }
18571
18602
  const containsSchema = asSchema(schema.contains);
18572
18603
  if (containsSchema) {
@@ -18604,17 +18635,19 @@
18604
18635
  }
18605
18636
  const unevaluatedItems = schema.unevaluatedItems;
18606
18637
  if (unevaluatedItems !== void 0) for (let i = 0; i < node.items.length; i++) {
18607
- if (!validationResult.processedProperties.has(String(i))) if (unevaluatedItems === false) validationResult.problems.push({
18608
- location: {
18609
- offset: node.offset,
18610
- length: node.length
18611
- },
18612
- message: t("Item does not match any validation rule from the array.")
18613
- });
18614
- else {
18615
- const itemValidationResult = new ValidationResult();
18616
- validate(node.items[i], schema.unevaluatedItems, itemValidationResult, matchingSchemas, context);
18617
- validationResult.mergePropertyMatch(itemValidationResult);
18638
+ if (!validationResult.processedProperties.has(String(i))) {
18639
+ if (unevaluatedItems === false) validationResult.problems.push({
18640
+ location: {
18641
+ offset: node.offset,
18642
+ length: node.length
18643
+ },
18644
+ message: t("Item does not match any validation rule from the array.")
18645
+ });
18646
+ else {
18647
+ const itemValidationResult = new ValidationResult();
18648
+ validate(node.items[i], schema.unevaluatedItems, itemValidationResult, matchingSchemas, context);
18649
+ validationResult.mergePropertyMatch(itemValidationResult);
18650
+ }
18618
18651
  }
18619
18652
  validationResult.processedProperties.add(String(i));
18620
18653
  validationResult.propertiesValueMatches++;
@@ -18683,23 +18716,26 @@
18683
18716
  propertyProcessed(propertyName);
18684
18717
  const propertySchema = schema.properties[propertyName];
18685
18718
  const child = seenKeys[propertyName];
18686
- if (child) if (isBoolean(propertySchema)) if (!propertySchema) {
18687
- const propertyNode = child.parent;
18688
- validationResult.problems.push({
18689
- location: {
18690
- offset: propertyNode.keyNode.offset,
18691
- length: propertyNode.keyNode.length
18692
- },
18693
- message: schema.errorMessage || t("Property {0} is not allowed.", propertyName)
18694
- });
18695
- } else {
18696
- validationResult.propertiesMatches++;
18697
- validationResult.propertiesValueMatches++;
18698
- }
18699
- else {
18700
- const propertyValidationResult = new ValidationResult();
18701
- validate(child, propertySchema, propertyValidationResult, matchingSchemas, context);
18702
- validationResult.mergePropertyMatch(propertyValidationResult);
18719
+ if (child) {
18720
+ if (isBoolean(propertySchema)) {
18721
+ if (!propertySchema) {
18722
+ const propertyNode = child.parent;
18723
+ validationResult.problems.push({
18724
+ location: {
18725
+ offset: propertyNode.keyNode.offset,
18726
+ length: propertyNode.keyNode.length
18727
+ },
18728
+ message: schema.errorMessage || t("Property {0} is not allowed.", propertyName)
18729
+ });
18730
+ } else {
18731
+ validationResult.propertiesMatches++;
18732
+ validationResult.propertiesValueMatches++;
18733
+ }
18734
+ } else {
18735
+ const propertyValidationResult = new ValidationResult();
18736
+ validate(child, propertySchema, propertyValidationResult, matchingSchemas, context);
18737
+ validationResult.mergePropertyMatch(propertyValidationResult);
18738
+ }
18703
18739
  }
18704
18740
  }
18705
18741
  if (schema.patternProperties) for (const propertyPattern of Object.keys(schema.patternProperties)) {
@@ -18711,20 +18747,21 @@
18711
18747
  const child = seenKeys[propertyName];
18712
18748
  if (child) {
18713
18749
  const propertySchema = schema.patternProperties[propertyPattern];
18714
- if (isBoolean(propertySchema)) if (!propertySchema) {
18715
- const propertyNode = child.parent;
18716
- validationResult.problems.push({
18717
- location: {
18718
- offset: propertyNode.keyNode.offset,
18719
- length: propertyNode.keyNode.length
18720
- },
18721
- message: schema.errorMessage || t("Property {0} is not allowed.", propertyName)
18722
- });
18750
+ if (isBoolean(propertySchema)) {
18751
+ if (!propertySchema) {
18752
+ const propertyNode = child.parent;
18753
+ validationResult.problems.push({
18754
+ location: {
18755
+ offset: propertyNode.keyNode.offset,
18756
+ length: propertyNode.keyNode.length
18757
+ },
18758
+ message: schema.errorMessage || t("Property {0} is not allowed.", propertyName)
18759
+ });
18760
+ } else {
18761
+ validationResult.propertiesMatches++;
18762
+ validationResult.propertiesValueMatches++;
18763
+ }
18723
18764
  } else {
18724
- validationResult.propertiesMatches++;
18725
- validationResult.propertiesValueMatches++;
18726
- }
18727
- else {
18728
18765
  const propertyValidationResult = new ValidationResult();
18729
18766
  validate(child, propertySchema, propertyValidationResult, matchingSchemas, context);
18730
18767
  validationResult.mergePropertyMatch(propertyValidationResult);
@@ -18941,13 +18978,15 @@
18941
18978
  function _parseProperty(parent, keysSeen) {
18942
18979
  const node = new PropertyASTNodeImpl(parent, scanner.getTokenOffset(), keyPlaceholder);
18943
18980
  let key = _parseString(node);
18944
- if (!key) if (scanner.getToken() === 16) {
18945
- _error(t("Property keys must be doublequoted"), ErrorCode.PropertyKeysMustBeDoublequoted);
18946
- const keyNode = new StringASTNodeImpl(node, scanner.getTokenOffset(), scanner.getTokenLength());
18947
- keyNode.value = scanner.getTokenValue();
18948
- key = keyNode;
18949
- _scanNext();
18950
- } else return;
18981
+ if (!key) {
18982
+ if (scanner.getToken() === 16) {
18983
+ _error(t("Property keys must be doublequoted"), ErrorCode.PropertyKeysMustBeDoublequoted);
18984
+ const keyNode = new StringASTNodeImpl(node, scanner.getTokenOffset(), scanner.getTokenLength());
18985
+ keyNode.value = scanner.getTokenValue();
18986
+ key = keyNode;
18987
+ _scanNext();
18988
+ } else return;
18989
+ }
18951
18990
  node.keyNode = key;
18952
18991
  if (key.value !== "//") {
18953
18992
  const seen = keysSeen[key.value];
@@ -19039,7 +19078,7 @@
19039
19078
  return new JSONDocument(_root, problems, commentRanges);
19040
19079
  }
19041
19080
  //#endregion
19042
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/json.js
19081
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/json.js
19043
19082
  function stringifyObject(obj, indent, stringifyLiteral) {
19044
19083
  if (obj !== null && typeof obj === "object") {
19045
19084
  const newIndent = indent + " ";
@@ -19070,7 +19109,7 @@
19070
19109
  return stringifyLiteral(obj);
19071
19110
  }
19072
19111
  //#endregion
19073
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonCompletion.js
19112
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonCompletion.js
19074
19113
  var JSONCompletion = class {
19075
19114
  constructor(schemaService, contributions = [], promiseConstructor = Promise, clientCapabilities = {}) {
19076
19115
  this.schemaService = schemaService;
@@ -19327,13 +19366,15 @@
19327
19366
  if (parentKey === "$schema" && node.parent && !node.parent.parent) this.addDollarSchemaCompletions(separatorAfter, collector);
19328
19367
  }
19329
19368
  }
19330
- if (node.type === "array") if (node.parent && node.parent.type === "property") {
19331
- const parentKey = node.parent.keyNode.value;
19332
- doc.visit((n) => {
19333
- if (n.type === "property" && n.keyNode.value === parentKey && n.valueNode && n.valueNode.type === "array") n.valueNode.items.forEach(collectSuggestionsForValues);
19334
- return true;
19335
- });
19336
- } else node.items.forEach(collectSuggestionsForValues);
19369
+ if (node.type === "array") {
19370
+ if (node.parent && node.parent.type === "property") {
19371
+ const parentKey = node.parent.keyNode.value;
19372
+ doc.visit((n) => {
19373
+ if (n.type === "property" && n.keyNode.value === parentKey && n.valueNode && n.valueNode.type === "array") n.valueNode.items.forEach(collectSuggestionsForValues);
19374
+ return true;
19375
+ });
19376
+ } else node.items.forEach(collectSuggestionsForValues);
19377
+ }
19337
19378
  }
19338
19379
  getValueCompletions(schema, doc, node, offset, document, collector, types) {
19339
19380
  let offsetForSeparator = offset;
@@ -19784,7 +19825,7 @@
19784
19825
  }
19785
19826
  };
19786
19827
  //#endregion
19787
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonHover.js
19828
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonHover.js
19788
19829
  var JSONHover = class {
19789
19830
  constructor(schemaService, contributions = [], promiseConstructor) {
19790
19831
  this.schemaService = schemaService;
@@ -19861,7 +19902,7 @@
19861
19902
  return content;
19862
19903
  }
19863
19904
  //#endregion
19864
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonValidation.js
19905
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonValidation.js
19865
19906
  var JSONValidation = class {
19866
19907
  constructor(jsonSchemaService, promiseConstructor) {
19867
19908
  this.jsonSchemaService = jsonSchemaService;
@@ -19975,16 +20016,15 @@
19975
20016
  }
19976
20017
  }
19977
20018
  //#endregion
19978
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/colors.js
20019
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/colors.js
19979
20020
  const Digit0 = 48;
19980
20021
  const Digit9 = 57;
19981
- const A = 65;
19982
20022
  const a = 97;
19983
20023
  const f = 102;
19984
20024
  function hexDigit(charCode) {
19985
20025
  if (charCode < Digit0) return 0;
19986
20026
  if (charCode <= Digit9) return charCode - Digit0;
19987
- if (charCode < a) charCode += a - A;
20027
+ if (charCode < a) charCode += 32;
19988
20028
  if (charCode >= a && charCode <= f) return charCode - a + 10;
19989
20029
  return 0;
19990
20030
  }
@@ -20018,7 +20058,7 @@
20018
20058
  }
20019
20059
  }
20020
20060
  //#endregion
20021
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonDocumentSymbols.js
20061
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonDocumentSymbols.js
20022
20062
  var JSONDocumentSymbols = class {
20023
20063
  constructor(schemaService) {
20024
20064
  this.schemaService = schemaService;
@@ -20065,21 +20105,23 @@
20065
20105
  });
20066
20106
  else if (node.type === "object") node.properties.forEach((property) => {
20067
20107
  const valueNode = property.valueNode;
20068
- if (valueNode) if (limit > 0) {
20069
- limit--;
20070
- const location = Location.create(document.uri, getRange(document, property));
20071
- const childContainerName = containerName ? containerName + "." + property.keyNode.value : property.keyNode.value;
20072
- result.push({
20073
- name: this.getKeyLabel(property),
20074
- kind: this.getSymbolKind(valueNode.type),
20075
- location,
20076
- containerName
20077
- });
20078
- toVisit.push({
20079
- node: valueNode,
20080
- containerName: childContainerName
20081
- });
20082
- } else limitExceeded = true;
20108
+ if (valueNode) {
20109
+ if (limit > 0) {
20110
+ limit--;
20111
+ const location = Location.create(document.uri, getRange(document, property));
20112
+ const childContainerName = containerName ? containerName + "." + property.keyNode.value : property.keyNode.value;
20113
+ result.push({
20114
+ name: this.getKeyLabel(property),
20115
+ kind: this.getSymbolKind(valueNode.type),
20116
+ location,
20117
+ containerName
20118
+ });
20119
+ toVisit.push({
20120
+ node: valueNode,
20121
+ containerName: childContainerName
20122
+ });
20123
+ } else limitExceeded = true;
20124
+ }
20083
20125
  });
20084
20126
  };
20085
20127
  while (nextToVisit < toVisit.length) {
@@ -20126,45 +20168,49 @@
20126
20168
  let limitExceeded = false;
20127
20169
  const collectOutlineEntries = (node, result) => {
20128
20170
  if (node.type === "array") node.items.forEach((node, index) => {
20129
- if (node) if (limit > 0) {
20130
- limit--;
20131
- const range = getRange(document, node);
20132
- const selectionRange = range;
20133
- const symbol = {
20134
- name: String(index),
20135
- kind: this.getSymbolKind(node.type),
20136
- range,
20137
- selectionRange,
20138
- children: []
20139
- };
20140
- result.push(symbol);
20141
- toVisit.push({
20142
- result: symbol.children,
20143
- node
20144
- });
20145
- } else limitExceeded = true;
20171
+ if (node) {
20172
+ if (limit > 0) {
20173
+ limit--;
20174
+ const range = getRange(document, node);
20175
+ const selectionRange = range;
20176
+ const symbol = {
20177
+ name: String(index),
20178
+ kind: this.getSymbolKind(node.type),
20179
+ range,
20180
+ selectionRange,
20181
+ children: []
20182
+ };
20183
+ result.push(symbol);
20184
+ toVisit.push({
20185
+ result: symbol.children,
20186
+ node
20187
+ });
20188
+ } else limitExceeded = true;
20189
+ }
20146
20190
  });
20147
20191
  else if (node.type === "object") node.properties.forEach((property) => {
20148
20192
  const valueNode = property.valueNode;
20149
- if (valueNode) if (limit > 0) {
20150
- limit--;
20151
- const range = getRange(document, property);
20152
- const selectionRange = getRange(document, property.keyNode);
20153
- const children = [];
20154
- const symbol = {
20155
- name: this.getKeyLabel(property),
20156
- kind: this.getSymbolKind(valueNode.type),
20157
- range,
20158
- selectionRange,
20159
- children,
20160
- detail: this.getDetail(valueNode)
20161
- };
20162
- result.push(symbol);
20163
- toVisit.push({
20164
- result: children,
20165
- node: valueNode
20166
- });
20167
- } else limitExceeded = true;
20193
+ if (valueNode) {
20194
+ if (limit > 0) {
20195
+ limit--;
20196
+ const range = getRange(document, property);
20197
+ const selectionRange = getRange(document, property.keyNode);
20198
+ const children = [];
20199
+ const symbol = {
20200
+ name: this.getKeyLabel(property),
20201
+ kind: this.getSymbolKind(valueNode.type),
20202
+ range,
20203
+ selectionRange,
20204
+ children,
20205
+ detail: this.getDetail(valueNode)
20206
+ };
20207
+ result.push(symbol);
20208
+ toVisit.push({
20209
+ result: children,
20210
+ node: valueNode
20211
+ });
20212
+ } else limitExceeded = true;
20213
+ }
20168
20214
  });
20169
20215
  };
20170
20216
  while (nextToVisit < toVisit.length) {
@@ -20250,7 +20296,7 @@
20250
20296
  return getNodeValue(node) || t("<empty>");
20251
20297
  }
20252
20298
  //#endregion
20253
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/configuration.js
20299
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/configuration.js
20254
20300
  const schemaContributions = {
20255
20301
  schemaAssociations: [],
20256
20302
  schemas: {
@@ -20585,7 +20631,7 @@
20585
20631
  }
20586
20632
  }
20587
20633
  //#endregion
20588
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-uri/lib/esm/index.js
20634
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-uri/lib/esm/index.js
20589
20635
  var LIB;
20590
20636
  (() => {
20591
20637
  var t = { 470: (t) => {
@@ -20965,7 +21011,7 @@
20965
21011
  })();
20966
21012
  const { URI, Utils } = LIB;
20967
21013
  //#endregion
20968
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/glob.js
21014
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/glob.js
20969
21015
  function createRegex(glob, opts) {
20970
21016
  if (typeof glob !== "string") throw new TypeError("Expected a string");
20971
21017
  const str = String(glob);
@@ -21038,7 +21084,7 @@
21038
21084
  return new RegExp(reStr, flags);
21039
21085
  }
21040
21086
  //#endregion
21041
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonSchemaService.js
21087
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonSchemaService.js
21042
21088
  const BANG = "!";
21043
21089
  const PATH_SEP = "/";
21044
21090
  var FilePatternAssociation = class {
@@ -21337,8 +21383,10 @@
21337
21383
  this.traverseNodes(root, (next) => {
21338
21384
  const id = next.$id || next.id;
21339
21385
  const anchor = isString(id) && id.charAt(0) === "#" ? id.substring(1) : next.$anchor;
21340
- if (anchor) if (result.has(anchor)) resolveErrors.push(t("Duplicate anchor declaration: '{0}'", anchor));
21341
- else result.set(anchor, next);
21386
+ if (anchor) {
21387
+ if (result.has(anchor)) resolveErrors.push(t("Duplicate anchor declaration: '{0}'", anchor));
21388
+ else result.set(anchor, next);
21389
+ }
21342
21390
  if (next.$recursiveAnchor) usesUnsupportedFeatures.add("$recursiveAnchor");
21343
21391
  if (next.$dynamicAnchor) usesUnsupportedFeatures.add("$dynamicAnchor");
21344
21392
  });
@@ -21476,7 +21524,7 @@
21476
21524
  return url;
21477
21525
  }
21478
21526
  //#endregion
21479
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonFolding.js
21527
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonFolding.js
21480
21528
  function getFoldingRanges(document, context) {
21481
21529
  const ranges = [];
21482
21530
  const nestingLevels = [];
@@ -21586,7 +21634,7 @@
21586
21634
  return result;
21587
21635
  }
21588
21636
  //#endregion
21589
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonSelectionRanges.js
21637
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonSelectionRanges.js
21590
21638
  function getSelectionRanges(document, positions, doc) {
21591
21639
  function getSelectionRange(position) {
21592
21640
  let offset = document.offsetAt(position);
@@ -21604,9 +21652,7 @@
21604
21652
  case "number":
21605
21653
  case "boolean":
21606
21654
  case "null":
21607
- case "property":
21608
- result.push(newRange(node.offset, node.offset + node.length));
21609
- break;
21655
+ case "property": result.push(newRange(node.offset, node.offset + node.length));
21610
21656
  }
21611
21657
  if (node.type === "property" || node.parent && node.parent.type === "array") {
21612
21658
  const afterCommaOffset = getOffsetAfterNextToken(node.offset + node.length, 5);
@@ -21631,7 +21677,7 @@
21631
21677
  return positions.map(getSelectionRange);
21632
21678
  }
21633
21679
  //#endregion
21634
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/format.js
21680
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/format.js
21635
21681
  function format(documentToFormat, formattingOptions, formattingRange) {
21636
21682
  let range = void 0;
21637
21683
  if (formattingRange) {
@@ -21653,7 +21699,7 @@
21653
21699
  });
21654
21700
  }
21655
21701
  //#endregion
21656
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/propertyTree.js
21702
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/propertyTree.js
21657
21703
  var Container;
21658
21704
  (function(Container) {
21659
21705
  Container[Container["Object"] = 0] = "Object";
@@ -21704,7 +21750,7 @@
21704
21750
  return -m - 1;
21705
21751
  }
21706
21752
  //#endregion
21707
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/sort.js
21753
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/utils/sort.js
21708
21754
  function sort(documentToSort, formattingOptions) {
21709
21755
  const options = {
21710
21756
  ...formattingOptions,
@@ -21718,7 +21764,8 @@
21718
21764
  return [TextEdit.replace(Range.create(Position.create(0, 0), documentToSort.positionAt(documentToSort.getText().length)), sortedAndFormattedJsonDocument)];
21719
21765
  }
21720
21766
  function findJsoncPropertyTree(formattedDocument) {
21721
- const scanner = createScanner(formattedDocument.getText(), false);
21767
+ const formattedString = formattedDocument.getText();
21768
+ const scanner = createScanner(formattedString, false);
21722
21769
  let rootTree = new PropertyTree();
21723
21770
  let currentTree = rootTree;
21724
21771
  let currentProperty = rootTree;
@@ -21845,7 +21892,6 @@
21845
21892
  }
21846
21893
  }
21847
21894
  if ((lastNonTriviaNonCommentToken === 1 || lastNonTriviaNonCommentToken === 3) && lineOfLastNonTriviaNonCommentToken === scanner.getTokenStartLine()) updateBeginningLineNumber = true;
21848
- break;
21849
21895
  }
21850
21896
  if (token !== 14 && token !== 13 && token !== 12 && token !== 15) {
21851
21897
  secondToLastNonTriviaNonCommentToken = lastNonTriviaNonCommentToken;
@@ -21927,7 +21973,7 @@
21927
21973
  }
21928
21974
  };
21929
21975
  //#endregion
21930
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonLinks.js
21976
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/services/jsonLinks.js
21931
21977
  function findLinks(document, doc) {
21932
21978
  const links = [];
21933
21979
  doc.visit((node) => {
@@ -21981,7 +22027,7 @@
21981
22027
  return str.replace(/~1/g, "/").replace(/~0/g, "~");
21982
22028
  }
21983
22029
  //#endregion
21984
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/jsonLanguageService.js
22030
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-json-languageservice/lib/esm/jsonLanguageService.js
21985
22031
  function getLanguageService(params) {
21986
22032
  const promise = params.promiseConstructor || Promise;
21987
22033
  const jsonSchemaService = new JSONSchemaService(params.schemaRequestService, params.workspaceContext, promise);
@@ -22018,7 +22064,7 @@
22018
22064
  };
22019
22065
  }
22020
22066
  //#endregion
22021
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/json/jsonWorker.js
22067
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/json/jsonWorker.js
22022
22068
  let defaultSchemaRequestService;
22023
22069
  if (typeof fetch !== "undefined") defaultSchemaRequestService = function(url) {
22024
22070
  return fetch(url).then((response) => response.text());
@@ -22151,7 +22197,7 @@
22151
22197
  return uri.with({ path: normalizePath(parts) }).toString();
22152
22198
  }
22153
22199
  //#endregion
22154
- //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/json/json.worker.js
22200
+ //#region ../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/json/json.worker.js
22155
22201
  self.onmessage = () => {
22156
22202
  initialize((ctx, createData) => {
22157
22203
  return new JSONWorker(ctx, createData);