@loopstack/loopstack-studio 0.27.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/dist/_virtual/rolldown_runtime.js +13 -15
  2. package/dist/components/ai-elements/code-block.js +2 -2
  3. package/dist/components/dynamic-form/Form.js +49 -52
  4. package/dist/components/loopstack-elements/tool.js +18 -9
  5. package/dist/config.js +6 -0
  6. package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
  7. package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
  8. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
  9. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
  10. package/dist/features/debug/lib/edge-paths.js +45 -30
  11. package/dist/features/debug/lib/flow-types.js +2 -0
  12. package/dist/features/debug/lib/flow-utils.js +66 -64
  13. package/dist/features/documents/DocumentRenderer.js +2 -2
  14. package/dist/features/documents/components/DocumentList.js +19 -18
  15. package/dist/features/documents/renderers/LlmMessage.js +89 -0
  16. package/dist/features/workbench/WorkflowItem.js +4 -3
  17. package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
  18. package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
  19. package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
  20. package/dist/features/workbench/components/RecentRunItem.js +48 -0
  21. package/dist/features/workbench/components/WorkflowForms.js +4 -3
  22. package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
  23. package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
  24. package/dist/features/workbench/index.js +4 -0
  25. package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
  26. package/dist/loopstack-studio.css +1 -1
  27. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
  28. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
  29. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
  30. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
  31. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
  32. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
  33. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
  34. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
  35. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
  36. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
  37. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
  38. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
  39. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
  40. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
  41. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
  42. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
  43. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
  44. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
  45. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
  46. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
  47. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
  48. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
  49. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
  50. package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
  51. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
  52. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
  53. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
  54. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
  55. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
  56. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
  57. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
  58. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
  59. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
  60. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
  61. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
  62. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
  63. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
  64. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
  65. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
  66. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
  67. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
  68. package/dist/node_modules/dompurify/dist/purify.es.js +301 -209
  69. package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
  70. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
  71. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
  72. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
  73. package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
  74. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
  75. package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
  76. package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
  77. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
  78. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
  79. package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
  80. package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
  81. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
  82. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
  83. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
  84. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
  85. package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
  86. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
  87. package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
  88. package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
  89. package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
  90. package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
  91. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
  92. package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
  93. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
  94. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
  95. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
  96. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
  97. package/dist/node_modules/internmap/src/index.js +1 -1
  98. package/dist/node_modules/katex/dist/katex.js +379 -417
  99. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
  100. package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
  101. package/dist/node_modules/lodash-es/_assignValue.js +1 -1
  102. package/dist/node_modules/lodash-es/_baseClone.js +9 -9
  103. package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
  104. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
  105. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
  106. package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
  107. package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
  108. package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
  109. package/dist/node_modules/lodash-es/_baseRest.js +1 -1
  110. package/dist/node_modules/lodash-es/_baseSet.js +1 -1
  111. package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
  112. package/dist/node_modules/lodash-es/_baseToString.js +2 -2
  113. package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
  114. package/dist/node_modules/lodash-es/_createRange.js +1 -1
  115. package/dist/node_modules/lodash-es/_createSet.js +3 -3
  116. package/dist/node_modules/lodash-es/_flatRest.js +1 -1
  117. package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
  118. package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
  119. package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
  120. package/dist/node_modules/lodash-es/_getTag.js +1 -1
  121. package/dist/node_modules/lodash-es/_hasPath.js +2 -2
  122. package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
  123. package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
  124. package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
  125. package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
  126. package/dist/node_modules/lodash-es/_isKey.js +1 -1
  127. package/dist/node_modules/lodash-es/_setToString.js +1 -1
  128. package/dist/node_modules/lodash-es/defaults.js +1 -1
  129. package/dist/node_modules/lodash-es/findIndex.js +2 -2
  130. package/dist/node_modules/lodash-es/forEach.js +1 -1
  131. package/dist/node_modules/lodash-es/forIn.js +1 -1
  132. package/dist/node_modules/lodash-es/isEmpty.js +2 -2
  133. package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
  134. package/dist/node_modules/lodash-es/map.js +1 -1
  135. package/dist/node_modules/lodash-es/max.js +1 -1
  136. package/dist/node_modules/lodash-es/merge.js +3 -3
  137. package/dist/node_modules/lodash-es/min.js +1 -1
  138. package/dist/node_modules/lodash-es/minBy.js +1 -1
  139. package/dist/node_modules/lodash-es/reduce.js +1 -1
  140. package/dist/node_modules/lodash-es/toNumber.js +1 -1
  141. package/dist/node_modules/lodash-es/union.js +3 -3
  142. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
  143. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
  144. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
  145. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
  146. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
  147. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
  148. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
  149. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
  150. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
  151. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
  152. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
  153. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
  154. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
  155. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
  156. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
  157. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
  158. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
  159. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
  160. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
  161. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
  162. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
  163. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
  164. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
  165. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
  166. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
  167. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
  168. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
  169. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
  170. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
  171. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
  172. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
  173. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
  174. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
  175. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
  176. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
  177. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
  178. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
  179. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
  180. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
  181. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
  182. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
  183. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
  184. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
  185. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
  186. package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
  187. package/dist/node_modules/stylis/src/Enum.js +2 -2
  188. package/dist/node_modules/stylis/src/Middleware.js +9 -0
  189. package/dist/node_modules/stylis/src/Parser.js +55 -44
  190. package/dist/node_modules/stylis/src/Utility.js +9 -12
  191. package/dist/node_modules/unified/lib/index.js +1 -1
  192. package/dist/packages/contracts/dist/enums/index.js +4 -24
  193. package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
  194. package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
  195. package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
  196. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
  197. package/dist/pages/EmbedWorkbenchPage.js +4 -3
  198. package/dist/pages/PreviewWorkbenchPage.js +126 -124
  199. package/dist/pages/StudioLandingPage.js +28 -72
  200. package/package.json +2 -2
  201. package/dist/features/documents/renderers/ClaudeMessage.js +0 -96
  202. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
  203. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
  204. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
  205. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
  206. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
  207. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
  208. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
  209. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
  210. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
  211. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
  212. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
  213. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
  214. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
  215. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
  216. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
  217. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
  218. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
  219. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
  220. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
  221. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
  222. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
  223. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
  224. package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
  225. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
  226. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
  227. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
  228. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
  229. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
  230. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
  231. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
  232. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
  233. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
  234. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
  235. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
  236. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
  237. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
  238. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
  239. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
  240. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
  241. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
  242. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
  243. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
  244. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
  245. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
  246. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
  247. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
  248. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
  249. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
  250. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
  251. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
  252. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
  253. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
  254. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
  255. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
  256. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
  257. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
  258. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
  259. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
  260. package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
  261. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
  262. package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
  263. package/dist/node_modules/langium/lib/default-module.js +0 -85
  264. package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
  265. package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
  266. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
  267. package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
  268. package/dist/node_modules/langium/lib/index.js +0 -182
  269. package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
  270. package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
  271. package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
  272. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
  273. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
  274. package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
  275. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
  276. package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
  277. package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
  278. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
  279. package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
  280. package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
  281. package/dist/node_modules/langium/lib/references/linker.js +0 -190
  282. package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
  283. package/dist/node_modules/langium/lib/references/references.js +0 -76
  284. package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
  285. package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
  286. package/dist/node_modules/langium/lib/references/scope.js +0 -73
  287. package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
  288. package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
  289. package/dist/node_modules/langium/lib/service-registry.js +0 -37
  290. package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
  291. package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
  292. package/dist/node_modules/langium/lib/utils/caching.js +0 -91
  293. package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
  294. package/dist/node_modules/langium/lib/utils/collections.js +0 -85
  295. package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
  296. package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
  297. package/dist/node_modules/langium/lib/utils/errors.js +0 -12
  298. package/dist/node_modules/langium/lib/utils/event.js +0 -5
  299. package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
  300. package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
  301. package/dist/node_modules/langium/lib/utils/index.js +0 -53
  302. package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
  303. package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
  304. package/dist/node_modules/langium/lib/utils/stream.js +0 -327
  305. package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
  306. package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
  307. package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
  308. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
  309. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
  310. package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
  311. package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
  312. package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
  313. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
  314. package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
  315. package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
  316. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
  317. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
  318. package/dist/node_modules/lodash-es/flatMap.js +0 -7
  319. package/dist/node_modules/lodash-es/uniqBy.js +0 -7
  320. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
  321. package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
  322. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
  323. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
  324. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
  325. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
  326. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
  327. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
  328. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
  329. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
  330. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
  331. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
  332. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
  333. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
  334. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
  335. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
  336. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
  337. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
  338. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
  339. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
  340. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
  341. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
  342. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
  343. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
  344. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
  345. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
  346. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
  347. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
  348. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
  349. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
  350. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
  351. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
  352. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
  353. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
  354. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
  355. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
  356. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
  357. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
  358. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
  359. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
  360. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
  361. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
  362. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
  363. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
  364. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
  365. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
  366. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
  367. package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
  368. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
  369. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
  370. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
  371. /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
@@ -1,1084 +0,0 @@
1
- import { __esmMin, __export } from "../../../../_virtual/rolldown_runtime.js";
2
- var main_exports = /* @__PURE__ */ __export({
3
- AnnotatedTextEdit: () => AnnotatedTextEdit,
4
- ChangeAnnotation: () => ChangeAnnotation,
5
- ChangeAnnotationIdentifier: () => ChangeAnnotationIdentifier,
6
- CodeAction: () => CodeAction,
7
- CodeActionContext: () => CodeActionContext,
8
- CodeActionKind: () => CodeActionKind,
9
- CodeActionTriggerKind: () => CodeActionTriggerKind,
10
- CodeDescription: () => CodeDescription,
11
- CodeLens: () => CodeLens,
12
- Color: () => Color,
13
- ColorInformation: () => ColorInformation,
14
- ColorPresentation: () => ColorPresentation,
15
- Command: () => Command,
16
- CompletionItem: () => CompletionItem,
17
- CompletionItemKind: () => CompletionItemKind,
18
- CompletionItemLabelDetails: () => CompletionItemLabelDetails,
19
- CompletionItemTag: () => CompletionItemTag,
20
- CompletionList: () => CompletionList,
21
- CreateFile: () => CreateFile,
22
- DeleteFile: () => DeleteFile,
23
- Diagnostic: () => Diagnostic,
24
- DiagnosticRelatedInformation: () => DiagnosticRelatedInformation,
25
- DiagnosticSeverity: () => DiagnosticSeverity,
26
- DiagnosticTag: () => DiagnosticTag,
27
- DocumentHighlight: () => DocumentHighlight,
28
- DocumentHighlightKind: () => DocumentHighlightKind,
29
- DocumentLink: () => DocumentLink,
30
- DocumentSymbol: () => DocumentSymbol,
31
- DocumentUri: () => DocumentUri,
32
- EOL: () => EOL,
33
- FoldingRange: () => FoldingRange,
34
- FoldingRangeKind: () => FoldingRangeKind,
35
- FormattingOptions: () => FormattingOptions,
36
- Hover: () => Hover,
37
- InlayHint: () => InlayHint,
38
- InlayHintKind: () => InlayHintKind,
39
- InlayHintLabelPart: () => InlayHintLabelPart,
40
- InlineCompletionContext: () => InlineCompletionContext,
41
- InlineCompletionItem: () => InlineCompletionItem,
42
- InlineCompletionList: () => InlineCompletionList,
43
- InlineCompletionTriggerKind: () => InlineCompletionTriggerKind,
44
- InlineValueContext: () => InlineValueContext,
45
- InlineValueEvaluatableExpression: () => InlineValueEvaluatableExpression,
46
- InlineValueText: () => InlineValueText,
47
- InlineValueVariableLookup: () => InlineValueVariableLookup,
48
- InsertReplaceEdit: () => InsertReplaceEdit,
49
- InsertTextFormat: () => InsertTextFormat,
50
- InsertTextMode: () => InsertTextMode,
51
- Location: () => Location,
52
- LocationLink: () => LocationLink,
53
- MarkedString: () => MarkedString,
54
- MarkupContent: () => MarkupContent,
55
- MarkupKind: () => MarkupKind,
56
- OptionalVersionedTextDocumentIdentifier: () => OptionalVersionedTextDocumentIdentifier,
57
- ParameterInformation: () => ParameterInformation,
58
- Position: () => Position,
59
- Range: () => Range,
60
- RenameFile: () => RenameFile,
61
- SelectedCompletionInfo: () => SelectedCompletionInfo,
62
- SelectionRange: () => SelectionRange,
63
- SemanticTokenModifiers: () => SemanticTokenModifiers,
64
- SemanticTokenTypes: () => SemanticTokenTypes,
65
- SemanticTokens: () => SemanticTokens,
66
- SignatureInformation: () => SignatureInformation,
67
- StringValue: () => StringValue,
68
- SymbolInformation: () => SymbolInformation,
69
- SymbolKind: () => SymbolKind,
70
- SymbolTag: () => SymbolTag,
71
- TextDocument: () => TextDocument,
72
- TextDocumentEdit: () => TextDocumentEdit,
73
- TextDocumentIdentifier: () => TextDocumentIdentifier,
74
- TextDocumentItem: () => TextDocumentItem,
75
- TextEdit: () => TextEdit,
76
- URI: () => URI,
77
- VersionedTextDocumentIdentifier: () => VersionedTextDocumentIdentifier,
78
- WorkspaceChange: () => WorkspaceChange,
79
- WorkspaceEdit: () => WorkspaceEdit,
80
- WorkspaceFolder: () => WorkspaceFolder,
81
- WorkspaceSymbol: () => WorkspaceSymbol,
82
- integer: () => integer,
83
- uinteger: () => uinteger
84
- }, 1), DocumentUri, URI, integer, uinteger, Position, Range, Location, LocationLink, Color, ColorInformation, ColorPresentation, FoldingRangeKind, FoldingRange, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, CodeDescription, Diagnostic, Command, TextEdit, ChangeAnnotation, ChangeAnnotationIdentifier, AnnotatedTextEdit, TextDocumentEdit, CreateFile, RenameFile, DeleteFile, WorkspaceEdit, TextEditChangeImpl, ChangeAnnotations, WorkspaceChange, TextDocumentIdentifier, VersionedTextDocumentIdentifier, OptionalVersionedTextDocumentIdentifier, TextDocumentItem, MarkupKind, MarkupContent, CompletionItemKind, InsertTextFormat, CompletionItemTag, InsertReplaceEdit, InsertTextMode, CompletionItemLabelDetails, CompletionItem, CompletionList, MarkedString, Hover, ParameterInformation, SignatureInformation, DocumentHighlightKind, DocumentHighlight, SymbolKind, SymbolTag, SymbolInformation, WorkspaceSymbol, DocumentSymbol, CodeActionKind, CodeActionTriggerKind, CodeActionContext, CodeAction, CodeLens, FormattingOptions, DocumentLink, SelectionRange, SemanticTokenTypes, SemanticTokenModifiers, SemanticTokens, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineValueContext, InlayHintKind, InlayHintLabelPart, InlayHint, StringValue, InlineCompletionItem, InlineCompletionList, InlineCompletionTriggerKind, SelectedCompletionInfo, InlineCompletionContext, WorkspaceFolder, EOL, TextDocument, FullTextDocument, Is, init_main = __esmMin((() => {
85
- (function(p) {
86
- function H(p) {
87
- return typeof p == "string";
88
- }
89
- p.is = H;
90
- })(DocumentUri ||= {}), (function(p) {
91
- function H(p) {
92
- return typeof p == "string";
93
- }
94
- p.is = H;
95
- })(URI ||= {}), (function(p) {
96
- p.MIN_VALUE = -2147483648, p.MAX_VALUE = 2147483647;
97
- function H(H) {
98
- return typeof H == "number" && p.MIN_VALUE <= H && H <= p.MAX_VALUE;
99
- }
100
- p.is = H;
101
- })(integer ||= {}), (function(p) {
102
- p.MIN_VALUE = 0, p.MAX_VALUE = 2147483647;
103
- function H(H) {
104
- return typeof H == "number" && p.MIN_VALUE <= H && H <= p.MAX_VALUE;
105
- }
106
- p.is = H;
107
- })(uinteger ||= {}), (function(p) {
108
- function H(p, H) {
109
- return p === Number.MAX_VALUE && (p = uinteger.MAX_VALUE), H === Number.MAX_VALUE && (H = uinteger.MAX_VALUE), {
110
- line: p,
111
- character: H
112
- };
113
- }
114
- p.create = H;
115
- function U(p) {
116
- let H = p;
117
- return Is.objectLiteral(H) && Is.uinteger(H.line) && Is.uinteger(H.character);
118
- }
119
- p.is = U;
120
- })(Position ||= {}), (function(p) {
121
- function H(p, H, U, W) {
122
- if (Is.uinteger(p) && Is.uinteger(H) && Is.uinteger(U) && Is.uinteger(W)) return {
123
- start: Position.create(p, H),
124
- end: Position.create(U, W)
125
- };
126
- if (Position.is(p) && Position.is(H)) return {
127
- start: p,
128
- end: H
129
- };
130
- throw Error(`Range#create called with invalid arguments[${p}, ${H}, ${U}, ${W}]`);
131
- }
132
- p.create = H;
133
- function U(p) {
134
- let H = p;
135
- return Is.objectLiteral(H) && Position.is(H.start) && Position.is(H.end);
136
- }
137
- p.is = U;
138
- })(Range ||= {}), (function(p) {
139
- function H(p, H) {
140
- return {
141
- uri: p,
142
- range: H
143
- };
144
- }
145
- p.create = H;
146
- function U(p) {
147
- let H = p;
148
- return Is.objectLiteral(H) && Range.is(H.range) && (Is.string(H.uri) || Is.undefined(H.uri));
149
- }
150
- p.is = U;
151
- })(Location ||= {}), (function(p) {
152
- function H(p, H, U, W) {
153
- return {
154
- targetUri: p,
155
- targetRange: H,
156
- targetSelectionRange: U,
157
- originSelectionRange: W
158
- };
159
- }
160
- p.create = H;
161
- function U(p) {
162
- let H = p;
163
- return Is.objectLiteral(H) && Range.is(H.targetRange) && Is.string(H.targetUri) && Range.is(H.targetSelectionRange) && (Range.is(H.originSelectionRange) || Is.undefined(H.originSelectionRange));
164
- }
165
- p.is = U;
166
- })(LocationLink ||= {}), (function(p) {
167
- function H(p, H, U, W) {
168
- return {
169
- red: p,
170
- green: H,
171
- blue: U,
172
- alpha: W
173
- };
174
- }
175
- p.create = H;
176
- function U(p) {
177
- let H = p;
178
- return Is.objectLiteral(H) && Is.numberRange(H.red, 0, 1) && Is.numberRange(H.green, 0, 1) && Is.numberRange(H.blue, 0, 1) && Is.numberRange(H.alpha, 0, 1);
179
- }
180
- p.is = U;
181
- })(Color ||= {}), (function(p) {
182
- function H(p, H) {
183
- return {
184
- range: p,
185
- color: H
186
- };
187
- }
188
- p.create = H;
189
- function U(p) {
190
- let H = p;
191
- return Is.objectLiteral(H) && Range.is(H.range) && Color.is(H.color);
192
- }
193
- p.is = U;
194
- })(ColorInformation ||= {}), (function(p) {
195
- function H(p, H, U) {
196
- return {
197
- label: p,
198
- textEdit: H,
199
- additionalTextEdits: U
200
- };
201
- }
202
- p.create = H;
203
- function U(p) {
204
- let H = p;
205
- return Is.objectLiteral(H) && Is.string(H.label) && (Is.undefined(H.textEdit) || TextEdit.is(H)) && (Is.undefined(H.additionalTextEdits) || Is.typedArray(H.additionalTextEdits, TextEdit.is));
206
- }
207
- p.is = U;
208
- })(ColorPresentation ||= {}), (function(p) {
209
- p.Comment = "comment", p.Imports = "imports", p.Region = "region";
210
- })(FoldingRangeKind ||= {}), (function(p) {
211
- function H(p, H, U, W, G, K) {
212
- let q = {
213
- startLine: p,
214
- endLine: H
215
- };
216
- return Is.defined(U) && (q.startCharacter = U), Is.defined(W) && (q.endCharacter = W), Is.defined(G) && (q.kind = G), Is.defined(K) && (q.collapsedText = K), q;
217
- }
218
- p.create = H;
219
- function U(p) {
220
- let H = p;
221
- return Is.objectLiteral(H) && Is.uinteger(H.startLine) && Is.uinteger(H.startLine) && (Is.undefined(H.startCharacter) || Is.uinteger(H.startCharacter)) && (Is.undefined(H.endCharacter) || Is.uinteger(H.endCharacter)) && (Is.undefined(H.kind) || Is.string(H.kind));
222
- }
223
- p.is = U;
224
- })(FoldingRange ||= {}), (function(p) {
225
- function H(p, H) {
226
- return {
227
- location: p,
228
- message: H
229
- };
230
- }
231
- p.create = H;
232
- function U(p) {
233
- let H = p;
234
- return Is.defined(H) && Location.is(H.location) && Is.string(H.message);
235
- }
236
- p.is = U;
237
- })(DiagnosticRelatedInformation ||= {}), (function(p) {
238
- p.Error = 1, p.Warning = 2, p.Information = 3, p.Hint = 4;
239
- })(DiagnosticSeverity ||= {}), (function(p) {
240
- p.Unnecessary = 1, p.Deprecated = 2;
241
- })(DiagnosticTag ||= {}), (function(p) {
242
- function H(p) {
243
- let H = p;
244
- return Is.objectLiteral(H) && Is.string(H.href);
245
- }
246
- p.is = H;
247
- })(CodeDescription ||= {}), (function(p) {
248
- function H(p, H, U, W, G, K) {
249
- let q = {
250
- range: p,
251
- message: H
252
- };
253
- return Is.defined(U) && (q.severity = U), Is.defined(W) && (q.code = W), Is.defined(G) && (q.source = G), Is.defined(K) && (q.relatedInformation = K), q;
254
- }
255
- p.create = H;
256
- function U(p) {
257
- let H = p;
258
- return Is.defined(H) && Range.is(H.range) && Is.string(H.message) && (Is.number(H.severity) || Is.undefined(H.severity)) && (Is.integer(H.code) || Is.string(H.code) || Is.undefined(H.code)) && (Is.undefined(H.codeDescription) || Is.string(H.codeDescription?.href)) && (Is.string(H.source) || Is.undefined(H.source)) && (Is.undefined(H.relatedInformation) || Is.typedArray(H.relatedInformation, DiagnosticRelatedInformation.is));
259
- }
260
- p.is = U;
261
- })(Diagnostic ||= {}), (function(p) {
262
- function H(p, H, ...U) {
263
- let W = {
264
- title: p,
265
- command: H
266
- };
267
- return Is.defined(U) && U.length > 0 && (W.arguments = U), W;
268
- }
269
- p.create = H;
270
- function U(p) {
271
- let H = p;
272
- return Is.defined(H) && Is.string(H.title) && Is.string(H.command);
273
- }
274
- p.is = U;
275
- })(Command ||= {}), (function(p) {
276
- function H(p, H) {
277
- return {
278
- range: p,
279
- newText: H
280
- };
281
- }
282
- p.replace = H;
283
- function U(p, H) {
284
- return {
285
- range: {
286
- start: p,
287
- end: p
288
- },
289
- newText: H
290
- };
291
- }
292
- p.insert = U;
293
- function W(p) {
294
- return {
295
- range: p,
296
- newText: ""
297
- };
298
- }
299
- p.del = W;
300
- function G(p) {
301
- let H = p;
302
- return Is.objectLiteral(H) && Is.string(H.newText) && Range.is(H.range);
303
- }
304
- p.is = G;
305
- })(TextEdit ||= {}), (function(p) {
306
- function H(p, H, U) {
307
- let W = { label: p };
308
- return H !== void 0 && (W.needsConfirmation = H), U !== void 0 && (W.description = U), W;
309
- }
310
- p.create = H;
311
- function U(p) {
312
- let H = p;
313
- return Is.objectLiteral(H) && Is.string(H.label) && (Is.boolean(H.needsConfirmation) || H.needsConfirmation === void 0) && (Is.string(H.description) || H.description === void 0);
314
- }
315
- p.is = U;
316
- })(ChangeAnnotation ||= {}), (function(p) {
317
- function H(p) {
318
- let H = p;
319
- return Is.string(H);
320
- }
321
- p.is = H;
322
- })(ChangeAnnotationIdentifier ||= {}), (function(p) {
323
- function H(p, H, U) {
324
- return {
325
- range: p,
326
- newText: H,
327
- annotationId: U
328
- };
329
- }
330
- p.replace = H;
331
- function U(p, H, U) {
332
- return {
333
- range: {
334
- start: p,
335
- end: p
336
- },
337
- newText: H,
338
- annotationId: U
339
- };
340
- }
341
- p.insert = U;
342
- function W(p, H) {
343
- return {
344
- range: p,
345
- newText: "",
346
- annotationId: H
347
- };
348
- }
349
- p.del = W;
350
- function G(p) {
351
- let H = p;
352
- return TextEdit.is(H) && (ChangeAnnotation.is(H.annotationId) || ChangeAnnotationIdentifier.is(H.annotationId));
353
- }
354
- p.is = G;
355
- })(AnnotatedTextEdit ||= {}), (function(p) {
356
- function H(p, H) {
357
- return {
358
- textDocument: p,
359
- edits: H
360
- };
361
- }
362
- p.create = H;
363
- function U(p) {
364
- let H = p;
365
- return Is.defined(H) && OptionalVersionedTextDocumentIdentifier.is(H.textDocument) && Array.isArray(H.edits);
366
- }
367
- p.is = U;
368
- })(TextDocumentEdit ||= {}), (function(p) {
369
- function H(p, H, U) {
370
- let W = {
371
- kind: "create",
372
- uri: p
373
- };
374
- return H !== void 0 && (H.overwrite !== void 0 || H.ignoreIfExists !== void 0) && (W.options = H), U !== void 0 && (W.annotationId = U), W;
375
- }
376
- p.create = H;
377
- function U(p) {
378
- let H = p;
379
- return H && H.kind === "create" && Is.string(H.uri) && (H.options === void 0 || (H.options.overwrite === void 0 || Is.boolean(H.options.overwrite)) && (H.options.ignoreIfExists === void 0 || Is.boolean(H.options.ignoreIfExists))) && (H.annotationId === void 0 || ChangeAnnotationIdentifier.is(H.annotationId));
380
- }
381
- p.is = U;
382
- })(CreateFile ||= {}), (function(p) {
383
- function H(p, H, U, W) {
384
- let G = {
385
- kind: "rename",
386
- oldUri: p,
387
- newUri: H
388
- };
389
- return U !== void 0 && (U.overwrite !== void 0 || U.ignoreIfExists !== void 0) && (G.options = U), W !== void 0 && (G.annotationId = W), G;
390
- }
391
- p.create = H;
392
- function U(p) {
393
- let H = p;
394
- return H && H.kind === "rename" && Is.string(H.oldUri) && Is.string(H.newUri) && (H.options === void 0 || (H.options.overwrite === void 0 || Is.boolean(H.options.overwrite)) && (H.options.ignoreIfExists === void 0 || Is.boolean(H.options.ignoreIfExists))) && (H.annotationId === void 0 || ChangeAnnotationIdentifier.is(H.annotationId));
395
- }
396
- p.is = U;
397
- })(RenameFile ||= {}), (function(p) {
398
- function H(p, H, U) {
399
- let W = {
400
- kind: "delete",
401
- uri: p
402
- };
403
- return H !== void 0 && (H.recursive !== void 0 || H.ignoreIfNotExists !== void 0) && (W.options = H), U !== void 0 && (W.annotationId = U), W;
404
- }
405
- p.create = H;
406
- function U(p) {
407
- let H = p;
408
- return H && H.kind === "delete" && Is.string(H.uri) && (H.options === void 0 || (H.options.recursive === void 0 || Is.boolean(H.options.recursive)) && (H.options.ignoreIfNotExists === void 0 || Is.boolean(H.options.ignoreIfNotExists))) && (H.annotationId === void 0 || ChangeAnnotationIdentifier.is(H.annotationId));
409
- }
410
- p.is = U;
411
- })(DeleteFile ||= {}), (function(p) {
412
- function H(p) {
413
- let H = p;
414
- return H && (H.changes !== void 0 || H.documentChanges !== void 0) && (H.documentChanges === void 0 || H.documentChanges.every((p) => Is.string(p.kind) ? CreateFile.is(p) || RenameFile.is(p) || DeleteFile.is(p) : TextDocumentEdit.is(p)));
415
- }
416
- p.is = H;
417
- })(WorkspaceEdit ||= {}), TextEditChangeImpl = class {
418
- constructor(p, H) {
419
- this.edits = p, this.changeAnnotations = H;
420
- }
421
- insert(p, H, U) {
422
- let W, G;
423
- if (U === void 0 ? W = TextEdit.insert(p, H) : ChangeAnnotationIdentifier.is(U) ? (G = U, W = AnnotatedTextEdit.insert(p, H, U)) : (this.assertChangeAnnotations(this.changeAnnotations), G = this.changeAnnotations.manage(U), W = AnnotatedTextEdit.insert(p, H, G)), this.edits.push(W), G !== void 0) return G;
424
- }
425
- replace(p, H, U) {
426
- let W, G;
427
- if (U === void 0 ? W = TextEdit.replace(p, H) : ChangeAnnotationIdentifier.is(U) ? (G = U, W = AnnotatedTextEdit.replace(p, H, U)) : (this.assertChangeAnnotations(this.changeAnnotations), G = this.changeAnnotations.manage(U), W = AnnotatedTextEdit.replace(p, H, G)), this.edits.push(W), G !== void 0) return G;
428
- }
429
- delete(p, H) {
430
- let U, W;
431
- if (H === void 0 ? U = TextEdit.del(p) : ChangeAnnotationIdentifier.is(H) ? (W = H, U = AnnotatedTextEdit.del(p, H)) : (this.assertChangeAnnotations(this.changeAnnotations), W = this.changeAnnotations.manage(H), U = AnnotatedTextEdit.del(p, W)), this.edits.push(U), W !== void 0) return W;
432
- }
433
- add(p) {
434
- this.edits.push(p);
435
- }
436
- all() {
437
- return this.edits;
438
- }
439
- clear() {
440
- this.edits.splice(0, this.edits.length);
441
- }
442
- assertChangeAnnotations(p) {
443
- if (p === void 0) throw Error("Text edit change is not configured to manage change annotations.");
444
- }
445
- }, ChangeAnnotations = class {
446
- constructor(p) {
447
- this._annotations = p === void 0 ? Object.create(null) : p, this._counter = 0, this._size = 0;
448
- }
449
- all() {
450
- return this._annotations;
451
- }
452
- get size() {
453
- return this._size;
454
- }
455
- manage(p, H) {
456
- let U;
457
- if (ChangeAnnotationIdentifier.is(p) ? U = p : (U = this.nextId(), H = p), this._annotations[U] !== void 0) throw Error(`Id ${U} is already in use.`);
458
- if (H === void 0) throw Error(`No annotation provided for id ${U}`);
459
- return this._annotations[U] = H, this._size++, U;
460
- }
461
- nextId() {
462
- return this._counter++, this._counter.toString();
463
- }
464
- }, WorkspaceChange = class {
465
- constructor(p) {
466
- this._textEditChanges = Object.create(null), p === void 0 ? this._workspaceEdit = {} : (this._workspaceEdit = p, p.documentChanges ? (this._changeAnnotations = new ChangeAnnotations(p.changeAnnotations), p.changeAnnotations = this._changeAnnotations.all(), p.documentChanges.forEach((p) => {
467
- if (TextDocumentEdit.is(p)) {
468
- let H = new TextEditChangeImpl(p.edits, this._changeAnnotations);
469
- this._textEditChanges[p.textDocument.uri] = H;
470
- }
471
- })) : p.changes && Object.keys(p.changes).forEach((H) => {
472
- let U = new TextEditChangeImpl(p.changes[H]);
473
- this._textEditChanges[H] = U;
474
- }));
475
- }
476
- get edit() {
477
- return this.initDocumentChanges(), this._changeAnnotations !== void 0 && (this._changeAnnotations.size === 0 ? this._workspaceEdit.changeAnnotations = void 0 : this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()), this._workspaceEdit;
478
- }
479
- getTextEditChange(p) {
480
- if (OptionalVersionedTextDocumentIdentifier.is(p)) {
481
- if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
482
- let H = {
483
- uri: p.uri,
484
- version: p.version
485
- }, U = this._textEditChanges[H.uri];
486
- if (!U) {
487
- let p = [], W = {
488
- textDocument: H,
489
- edits: p
490
- };
491
- this._workspaceEdit.documentChanges.push(W), U = new TextEditChangeImpl(p, this._changeAnnotations), this._textEditChanges[H.uri] = U;
492
- }
493
- return U;
494
- } else {
495
- if (this.initChanges(), this._workspaceEdit.changes === void 0) throw Error("Workspace edit is not configured for normal text edit changes.");
496
- let H = this._textEditChanges[p];
497
- if (!H) {
498
- let U = [];
499
- this._workspaceEdit.changes[p] = U, H = new TextEditChangeImpl(U), this._textEditChanges[p] = H;
500
- }
501
- return H;
502
- }
503
- }
504
- initDocumentChanges() {
505
- this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._changeAnnotations = new ChangeAnnotations(), this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all());
506
- }
507
- initChanges() {
508
- this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._workspaceEdit.changes = Object.create(null));
509
- }
510
- createFile(p, H, U) {
511
- if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
512
- let W;
513
- ChangeAnnotation.is(H) || ChangeAnnotationIdentifier.is(H) ? W = H : U = H;
514
- let G, K;
515
- if (W === void 0 ? G = CreateFile.create(p, U) : (K = ChangeAnnotationIdentifier.is(W) ? W : this._changeAnnotations.manage(W), G = CreateFile.create(p, U, K)), this._workspaceEdit.documentChanges.push(G), K !== void 0) return K;
516
- }
517
- renameFile(p, H, U, W) {
518
- if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
519
- let G;
520
- ChangeAnnotation.is(U) || ChangeAnnotationIdentifier.is(U) ? G = U : W = U;
521
- let K, q;
522
- if (G === void 0 ? K = RenameFile.create(p, H, W) : (q = ChangeAnnotationIdentifier.is(G) ? G : this._changeAnnotations.manage(G), K = RenameFile.create(p, H, W, q)), this._workspaceEdit.documentChanges.push(K), q !== void 0) return q;
523
- }
524
- deleteFile(p, H, U) {
525
- if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
526
- let W;
527
- ChangeAnnotation.is(H) || ChangeAnnotationIdentifier.is(H) ? W = H : U = H;
528
- let G, K;
529
- if (W === void 0 ? G = DeleteFile.create(p, U) : (K = ChangeAnnotationIdentifier.is(W) ? W : this._changeAnnotations.manage(W), G = DeleteFile.create(p, U, K)), this._workspaceEdit.documentChanges.push(G), K !== void 0) return K;
530
- }
531
- }, (function(p) {
532
- function H(p) {
533
- return { uri: p };
534
- }
535
- p.create = H;
536
- function U(p) {
537
- let H = p;
538
- return Is.defined(H) && Is.string(H.uri);
539
- }
540
- p.is = U;
541
- })(TextDocumentIdentifier ||= {}), (function(p) {
542
- function H(p, H) {
543
- return {
544
- uri: p,
545
- version: H
546
- };
547
- }
548
- p.create = H;
549
- function U(p) {
550
- let H = p;
551
- return Is.defined(H) && Is.string(H.uri) && Is.integer(H.version);
552
- }
553
- p.is = U;
554
- })(VersionedTextDocumentIdentifier ||= {}), (function(p) {
555
- function H(p, H) {
556
- return {
557
- uri: p,
558
- version: H
559
- };
560
- }
561
- p.create = H;
562
- function U(p) {
563
- let H = p;
564
- return Is.defined(H) && Is.string(H.uri) && (H.version === null || Is.integer(H.version));
565
- }
566
- p.is = U;
567
- })(OptionalVersionedTextDocumentIdentifier ||= {}), (function(p) {
568
- function H(p, H, U, W) {
569
- return {
570
- uri: p,
571
- languageId: H,
572
- version: U,
573
- text: W
574
- };
575
- }
576
- p.create = H;
577
- function U(p) {
578
- let H = p;
579
- return Is.defined(H) && Is.string(H.uri) && Is.string(H.languageId) && Is.integer(H.version) && Is.string(H.text);
580
- }
581
- p.is = U;
582
- })(TextDocumentItem ||= {}), (function(p) {
583
- p.PlainText = "plaintext", p.Markdown = "markdown";
584
- function H(H) {
585
- let U = H;
586
- return U === p.PlainText || U === p.Markdown;
587
- }
588
- p.is = H;
589
- })(MarkupKind ||= {}), (function(p) {
590
- function H(p) {
591
- let H = p;
592
- return Is.objectLiteral(p) && MarkupKind.is(H.kind) && Is.string(H.value);
593
- }
594
- p.is = H;
595
- })(MarkupContent ||= {}), (function(p) {
596
- p.Text = 1, p.Method = 2, p.Function = 3, p.Constructor = 4, p.Field = 5, p.Variable = 6, p.Class = 7, p.Interface = 8, p.Module = 9, p.Property = 10, p.Unit = 11, p.Value = 12, p.Enum = 13, p.Keyword = 14, p.Snippet = 15, p.Color = 16, p.File = 17, p.Reference = 18, p.Folder = 19, p.EnumMember = 20, p.Constant = 21, p.Struct = 22, p.Event = 23, p.Operator = 24, p.TypeParameter = 25;
597
- })(CompletionItemKind ||= {}), (function(p) {
598
- p.PlainText = 1, p.Snippet = 2;
599
- })(InsertTextFormat ||= {}), (function(p) {
600
- p.Deprecated = 1;
601
- })(CompletionItemTag ||= {}), (function(p) {
602
- function H(p, H, U) {
603
- return {
604
- newText: p,
605
- insert: H,
606
- replace: U
607
- };
608
- }
609
- p.create = H;
610
- function U(p) {
611
- let H = p;
612
- return H && Is.string(H.newText) && Range.is(H.insert) && Range.is(H.replace);
613
- }
614
- p.is = U;
615
- })(InsertReplaceEdit ||= {}), (function(p) {
616
- p.asIs = 1, p.adjustIndentation = 2;
617
- })(InsertTextMode ||= {}), (function(p) {
618
- function H(p) {
619
- let H = p;
620
- return H && (Is.string(H.detail) || H.detail === void 0) && (Is.string(H.description) || H.description === void 0);
621
- }
622
- p.is = H;
623
- })(CompletionItemLabelDetails ||= {}), (function(p) {
624
- function H(p) {
625
- return { label: p };
626
- }
627
- p.create = H;
628
- })(CompletionItem ||= {}), (function(p) {
629
- function H(p, H) {
630
- return {
631
- items: p || [],
632
- isIncomplete: !!H
633
- };
634
- }
635
- p.create = H;
636
- })(CompletionList ||= {}), (function(p) {
637
- function H(p) {
638
- return p.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
639
- }
640
- p.fromPlainText = H;
641
- function U(p) {
642
- let H = p;
643
- return Is.string(H) || Is.objectLiteral(H) && Is.string(H.language) && Is.string(H.value);
644
- }
645
- p.is = U;
646
- })(MarkedString ||= {}), (function(p) {
647
- function H(p) {
648
- let H = p;
649
- return !!H && Is.objectLiteral(H) && (MarkupContent.is(H.contents) || MarkedString.is(H.contents) || Is.typedArray(H.contents, MarkedString.is)) && (p.range === void 0 || Range.is(p.range));
650
- }
651
- p.is = H;
652
- })(Hover ||= {}), (function(p) {
653
- function H(p, H) {
654
- return H ? {
655
- label: p,
656
- documentation: H
657
- } : { label: p };
658
- }
659
- p.create = H;
660
- })(ParameterInformation ||= {}), (function(p) {
661
- function H(p, H, ...U) {
662
- let W = { label: p };
663
- return Is.defined(H) && (W.documentation = H), Is.defined(U) ? W.parameters = U : W.parameters = [], W;
664
- }
665
- p.create = H;
666
- })(SignatureInformation ||= {}), (function(p) {
667
- p.Text = 1, p.Read = 2, p.Write = 3;
668
- })(DocumentHighlightKind ||= {}), (function(p) {
669
- function H(p, H) {
670
- let U = { range: p };
671
- return Is.number(H) && (U.kind = H), U;
672
- }
673
- p.create = H;
674
- })(DocumentHighlight ||= {}), (function(p) {
675
- p.File = 1, p.Module = 2, p.Namespace = 3, p.Package = 4, p.Class = 5, p.Method = 6, p.Property = 7, p.Field = 8, p.Constructor = 9, p.Enum = 10, p.Interface = 11, p.Function = 12, p.Variable = 13, p.Constant = 14, p.String = 15, p.Number = 16, p.Boolean = 17, p.Array = 18, p.Object = 19, p.Key = 20, p.Null = 21, p.EnumMember = 22, p.Struct = 23, p.Event = 24, p.Operator = 25, p.TypeParameter = 26;
676
- })(SymbolKind ||= {}), (function(p) {
677
- p.Deprecated = 1;
678
- })(SymbolTag ||= {}), (function(p) {
679
- function H(p, H, U, W, G) {
680
- let K = {
681
- name: p,
682
- kind: H,
683
- location: {
684
- uri: W,
685
- range: U
686
- }
687
- };
688
- return G && (K.containerName = G), K;
689
- }
690
- p.create = H;
691
- })(SymbolInformation ||= {}), (function(p) {
692
- function H(p, H, U, W) {
693
- return W === void 0 ? {
694
- name: p,
695
- kind: H,
696
- location: { uri: U }
697
- } : {
698
- name: p,
699
- kind: H,
700
- location: {
701
- uri: U,
702
- range: W
703
- }
704
- };
705
- }
706
- p.create = H;
707
- })(WorkspaceSymbol ||= {}), (function(p) {
708
- function H(p, H, U, W, G, K) {
709
- let q = {
710
- name: p,
711
- detail: H,
712
- kind: U,
713
- range: W,
714
- selectionRange: G
715
- };
716
- return K !== void 0 && (q.children = K), q;
717
- }
718
- p.create = H;
719
- function U(p) {
720
- let H = p;
721
- return H && Is.string(H.name) && Is.number(H.kind) && Range.is(H.range) && Range.is(H.selectionRange) && (H.detail === void 0 || Is.string(H.detail)) && (H.deprecated === void 0 || Is.boolean(H.deprecated)) && (H.children === void 0 || Array.isArray(H.children)) && (H.tags === void 0 || Array.isArray(H.tags));
722
- }
723
- p.is = U;
724
- })(DocumentSymbol ||= {}), (function(p) {
725
- p.Empty = "", p.QuickFix = "quickfix", p.Refactor = "refactor", p.RefactorExtract = "refactor.extract", p.RefactorInline = "refactor.inline", p.RefactorRewrite = "refactor.rewrite", p.Source = "source", p.SourceOrganizeImports = "source.organizeImports", p.SourceFixAll = "source.fixAll";
726
- })(CodeActionKind ||= {}), (function(p) {
727
- p.Invoked = 1, p.Automatic = 2;
728
- })(CodeActionTriggerKind ||= {}), (function(p) {
729
- function H(p, H, U) {
730
- let W = { diagnostics: p };
731
- return H != null && (W.only = H), U != null && (W.triggerKind = U), W;
732
- }
733
- p.create = H;
734
- function U(p) {
735
- let H = p;
736
- return Is.defined(H) && Is.typedArray(H.diagnostics, Diagnostic.is) && (H.only === void 0 || Is.typedArray(H.only, Is.string)) && (H.triggerKind === void 0 || H.triggerKind === CodeActionTriggerKind.Invoked || H.triggerKind === CodeActionTriggerKind.Automatic);
737
- }
738
- p.is = U;
739
- })(CodeActionContext ||= {}), (function(p) {
740
- function H(p, H, U) {
741
- let W = { title: p }, G = !0;
742
- return typeof H == "string" ? (G = !1, W.kind = H) : Command.is(H) ? W.command = H : W.edit = H, G && U !== void 0 && (W.kind = U), W;
743
- }
744
- p.create = H;
745
- function U(p) {
746
- let H = p;
747
- return H && Is.string(H.title) && (H.diagnostics === void 0 || Is.typedArray(H.diagnostics, Diagnostic.is)) && (H.kind === void 0 || Is.string(H.kind)) && (H.edit !== void 0 || H.command !== void 0) && (H.command === void 0 || Command.is(H.command)) && (H.isPreferred === void 0 || Is.boolean(H.isPreferred)) && (H.edit === void 0 || WorkspaceEdit.is(H.edit));
748
- }
749
- p.is = U;
750
- })(CodeAction ||= {}), (function(p) {
751
- function H(p, H) {
752
- let U = { range: p };
753
- return Is.defined(H) && (U.data = H), U;
754
- }
755
- p.create = H;
756
- function U(p) {
757
- let H = p;
758
- return Is.defined(H) && Range.is(H.range) && (Is.undefined(H.command) || Command.is(H.command));
759
- }
760
- p.is = U;
761
- })(CodeLens ||= {}), (function(p) {
762
- function H(p, H) {
763
- return {
764
- tabSize: p,
765
- insertSpaces: H
766
- };
767
- }
768
- p.create = H;
769
- function U(p) {
770
- let H = p;
771
- return Is.defined(H) && Is.uinteger(H.tabSize) && Is.boolean(H.insertSpaces);
772
- }
773
- p.is = U;
774
- })(FormattingOptions ||= {}), (function(p) {
775
- function H(p, H, U) {
776
- return {
777
- range: p,
778
- target: H,
779
- data: U
780
- };
781
- }
782
- p.create = H;
783
- function U(p) {
784
- let H = p;
785
- return Is.defined(H) && Range.is(H.range) && (Is.undefined(H.target) || Is.string(H.target));
786
- }
787
- p.is = U;
788
- })(DocumentLink ||= {}), (function(p) {
789
- function H(p, H) {
790
- return {
791
- range: p,
792
- parent: H
793
- };
794
- }
795
- p.create = H;
796
- function U(H) {
797
- let U = H;
798
- return Is.objectLiteral(U) && Range.is(U.range) && (U.parent === void 0 || p.is(U.parent));
799
- }
800
- p.is = U;
801
- })(SelectionRange ||= {}), (function(p) {
802
- p.namespace = "namespace", p.type = "type", p.class = "class", p.enum = "enum", p.interface = "interface", p.struct = "struct", p.typeParameter = "typeParameter", p.parameter = "parameter", p.variable = "variable", p.property = "property", p.enumMember = "enumMember", p.event = "event", p.function = "function", p.method = "method", p.macro = "macro", p.keyword = "keyword", p.modifier = "modifier", p.comment = "comment", p.string = "string", p.number = "number", p.regexp = "regexp", p.operator = "operator", p.decorator = "decorator";
803
- })(SemanticTokenTypes ||= {}), (function(p) {
804
- p.declaration = "declaration", p.definition = "definition", p.readonly = "readonly", p.static = "static", p.deprecated = "deprecated", p.abstract = "abstract", p.async = "async", p.modification = "modification", p.documentation = "documentation", p.defaultLibrary = "defaultLibrary";
805
- })(SemanticTokenModifiers ||= {}), (function(p) {
806
- function H(p) {
807
- let H = p;
808
- return Is.objectLiteral(H) && (H.resultId === void 0 || typeof H.resultId == "string") && Array.isArray(H.data) && (H.data.length === 0 || typeof H.data[0] == "number");
809
- }
810
- p.is = H;
811
- })(SemanticTokens ||= {}), (function(p) {
812
- function H(p, H) {
813
- return {
814
- range: p,
815
- text: H
816
- };
817
- }
818
- p.create = H;
819
- function U(p) {
820
- let H = p;
821
- return H != null && Range.is(H.range) && Is.string(H.text);
822
- }
823
- p.is = U;
824
- })(InlineValueText ||= {}), (function(p) {
825
- function H(p, H, U) {
826
- return {
827
- range: p,
828
- variableName: H,
829
- caseSensitiveLookup: U
830
- };
831
- }
832
- p.create = H;
833
- function U(p) {
834
- let H = p;
835
- return H != null && Range.is(H.range) && Is.boolean(H.caseSensitiveLookup) && (Is.string(H.variableName) || H.variableName === void 0);
836
- }
837
- p.is = U;
838
- })(InlineValueVariableLookup ||= {}), (function(p) {
839
- function H(p, H) {
840
- return {
841
- range: p,
842
- expression: H
843
- };
844
- }
845
- p.create = H;
846
- function U(p) {
847
- let H = p;
848
- return H != null && Range.is(H.range) && (Is.string(H.expression) || H.expression === void 0);
849
- }
850
- p.is = U;
851
- })(InlineValueEvaluatableExpression ||= {}), (function(p) {
852
- function H(p, H) {
853
- return {
854
- frameId: p,
855
- stoppedLocation: H
856
- };
857
- }
858
- p.create = H;
859
- function U(p) {
860
- let H = p;
861
- return Is.defined(H) && Range.is(p.stoppedLocation);
862
- }
863
- p.is = U;
864
- })(InlineValueContext ||= {}), (function(p) {
865
- p.Type = 1, p.Parameter = 2;
866
- function H(p) {
867
- return p === 1 || p === 2;
868
- }
869
- p.is = H;
870
- })(InlayHintKind ||= {}), (function(p) {
871
- function H(p) {
872
- return { value: p };
873
- }
874
- p.create = H;
875
- function U(p) {
876
- let H = p;
877
- return Is.objectLiteral(H) && (H.tooltip === void 0 || Is.string(H.tooltip) || MarkupContent.is(H.tooltip)) && (H.location === void 0 || Location.is(H.location)) && (H.command === void 0 || Command.is(H.command));
878
- }
879
- p.is = U;
880
- })(InlayHintLabelPart ||= {}), (function(p) {
881
- function H(p, H, U) {
882
- let W = {
883
- position: p,
884
- label: H
885
- };
886
- return U !== void 0 && (W.kind = U), W;
887
- }
888
- p.create = H;
889
- function U(p) {
890
- let H = p;
891
- return Is.objectLiteral(H) && Position.is(H.position) && (Is.string(H.label) || Is.typedArray(H.label, InlayHintLabelPart.is)) && (H.kind === void 0 || InlayHintKind.is(H.kind)) && H.textEdits === void 0 || Is.typedArray(H.textEdits, TextEdit.is) && (H.tooltip === void 0 || Is.string(H.tooltip) || MarkupContent.is(H.tooltip)) && (H.paddingLeft === void 0 || Is.boolean(H.paddingLeft)) && (H.paddingRight === void 0 || Is.boolean(H.paddingRight));
892
- }
893
- p.is = U;
894
- })(InlayHint ||= {}), (function(p) {
895
- function H(p) {
896
- return {
897
- kind: "snippet",
898
- value: p
899
- };
900
- }
901
- p.createSnippet = H;
902
- })(StringValue ||= {}), (function(p) {
903
- function H(p, H, U, W) {
904
- return {
905
- insertText: p,
906
- filterText: H,
907
- range: U,
908
- command: W
909
- };
910
- }
911
- p.create = H;
912
- })(InlineCompletionItem ||= {}), (function(p) {
913
- function H(p) {
914
- return { items: p };
915
- }
916
- p.create = H;
917
- })(InlineCompletionList ||= {}), (function(p) {
918
- p.Invoked = 0, p.Automatic = 1;
919
- })(InlineCompletionTriggerKind ||= {}), (function(p) {
920
- function H(p, H) {
921
- return {
922
- range: p,
923
- text: H
924
- };
925
- }
926
- p.create = H;
927
- })(SelectedCompletionInfo ||= {}), (function(p) {
928
- function H(p, H) {
929
- return {
930
- triggerKind: p,
931
- selectedCompletionInfo: H
932
- };
933
- }
934
- p.create = H;
935
- })(InlineCompletionContext ||= {}), (function(p) {
936
- function H(p) {
937
- let H = p;
938
- return Is.objectLiteral(H) && URI.is(H.uri) && Is.string(H.name);
939
- }
940
- p.is = H;
941
- })(WorkspaceFolder ||= {}), EOL = [
942
- "\n",
943
- "\r\n",
944
- "\r"
945
- ], (function(p) {
946
- function H(p, H, U, W) {
947
- return new FullTextDocument(p, H, U, W);
948
- }
949
- p.create = H;
950
- function U(p) {
951
- let H = p;
952
- return !!(Is.defined(H) && Is.string(H.uri) && (Is.undefined(H.languageId) || Is.string(H.languageId)) && Is.uinteger(H.lineCount) && Is.func(H.getText) && Is.func(H.positionAt) && Is.func(H.offsetAt));
953
- }
954
- p.is = U;
955
- function W(p, H) {
956
- let U = p.getText(), W = G(H, (p, H) => {
957
- let U = p.range.start.line - H.range.start.line;
958
- return U === 0 ? p.range.start.character - H.range.start.character : U;
959
- }), K = U.length;
960
- for (let H = W.length - 1; H >= 0; H--) {
961
- let G = W[H], q = p.offsetAt(G.range.start), J = p.offsetAt(G.range.end);
962
- if (J <= K) U = U.substring(0, q) + G.newText + U.substring(J, U.length);
963
- else throw Error("Overlapping edit");
964
- K = q;
965
- }
966
- return U;
967
- }
968
- p.applyEdits = W;
969
- function G(p, H) {
970
- if (p.length <= 1) return p;
971
- let U = p.length / 2 | 0, W = p.slice(0, U), K = p.slice(U);
972
- G(W, H), G(K, H);
973
- let q = 0, J = 0, Y = 0;
974
- for (; q < W.length && J < K.length;) H(W[q], K[J]) <= 0 ? p[Y++] = W[q++] : p[Y++] = K[J++];
975
- for (; q < W.length;) p[Y++] = W[q++];
976
- for (; J < K.length;) p[Y++] = K[J++];
977
- return p;
978
- }
979
- })(TextDocument ||= {}), FullTextDocument = class {
980
- constructor(p, H, U, W) {
981
- this._uri = p, this._languageId = H, this._version = U, this._content = W, this._lineOffsets = void 0;
982
- }
983
- get uri() {
984
- return this._uri;
985
- }
986
- get languageId() {
987
- return this._languageId;
988
- }
989
- get version() {
990
- return this._version;
991
- }
992
- getText(p) {
993
- if (p) {
994
- let H = this.offsetAt(p.start), U = this.offsetAt(p.end);
995
- return this._content.substring(H, U);
996
- }
997
- return this._content;
998
- }
999
- update(p, H) {
1000
- this._content = p.text, this._version = H, this._lineOffsets = void 0;
1001
- }
1002
- getLineOffsets() {
1003
- if (this._lineOffsets === void 0) {
1004
- let p = [], H = this._content, U = !0;
1005
- for (let W = 0; W < H.length; W++) {
1006
- U &&= (p.push(W), !1);
1007
- let G = H.charAt(W);
1008
- U = G === "\r" || G === "\n", G === "\r" && W + 1 < H.length && H.charAt(W + 1) === "\n" && W++;
1009
- }
1010
- U && H.length > 0 && p.push(H.length), this._lineOffsets = p;
1011
- }
1012
- return this._lineOffsets;
1013
- }
1014
- positionAt(p) {
1015
- p = Math.max(Math.min(p, this._content.length), 0);
1016
- let H = this.getLineOffsets(), U = 0, W = H.length;
1017
- if (W === 0) return Position.create(0, p);
1018
- for (; U < W;) {
1019
- let G = Math.floor((U + W) / 2);
1020
- H[G] > p ? W = G : U = G + 1;
1021
- }
1022
- let G = U - 1;
1023
- return Position.create(G, p - H[G]);
1024
- }
1025
- offsetAt(p) {
1026
- let H = this.getLineOffsets();
1027
- if (p.line >= H.length) return this._content.length;
1028
- if (p.line < 0) return 0;
1029
- let U = H[p.line], W = p.line + 1 < H.length ? H[p.line + 1] : this._content.length;
1030
- return Math.max(Math.min(U + p.character, W), U);
1031
- }
1032
- get lineCount() {
1033
- return this.getLineOffsets().length;
1034
- }
1035
- }, (function(p) {
1036
- let H = Object.prototype.toString;
1037
- function U(p) {
1038
- return p !== void 0;
1039
- }
1040
- p.defined = U;
1041
- function W(p) {
1042
- return p === void 0;
1043
- }
1044
- p.undefined = W;
1045
- function G(p) {
1046
- return p === !0 || p === !1;
1047
- }
1048
- p.boolean = G;
1049
- function K(p) {
1050
- return H.call(p) === "[object String]";
1051
- }
1052
- p.string = K;
1053
- function q(p) {
1054
- return H.call(p) === "[object Number]";
1055
- }
1056
- p.number = q;
1057
- function J(p, U, W) {
1058
- return H.call(p) === "[object Number]" && U <= p && p <= W;
1059
- }
1060
- p.numberRange = J;
1061
- function Y(p) {
1062
- return H.call(p) === "[object Number]" && -2147483648 <= p && p <= 2147483647;
1063
- }
1064
- p.integer = Y;
1065
- function X(p) {
1066
- return H.call(p) === "[object Number]" && 0 <= p && p <= 2147483647;
1067
- }
1068
- p.uinteger = X;
1069
- function Z(p) {
1070
- return H.call(p) === "[object Function]";
1071
- }
1072
- p.func = Z;
1073
- function Q(p) {
1074
- return typeof p == "object" && !!p;
1075
- }
1076
- p.objectLiteral = Q;
1077
- function $(p, H) {
1078
- return Array.isArray(p) && p.every(H);
1079
- }
1080
- p.typedArray = $;
1081
- })(Is ||= {});
1082
- }));
1083
- init_main();
1084
- export { Position, Range, init_main, main_exports };