@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,373 +0,0 @@
1
- var LIB;
2
- (() => {
3
- var t = { 975: (e) => {
4
- function t(e) {
5
- if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
6
- }
7
- function n(e, t) {
8
- for (var n, r = "", i = 0, a = -1, o = 0, s = 0; s <= e.length; ++s) {
9
- if (s < e.length) n = e.charCodeAt(s);
10
- else {
11
- if (n === 47) break;
12
- n = 47;
13
- }
14
- if (n === 47) {
15
- if (!(a === s - 1 || o === 1)) if (a !== s - 1 && o === 2) {
16
- if (r.length < 2 || i !== 2 || r.charCodeAt(r.length - 1) !== 46 || r.charCodeAt(r.length - 2) !== 46) {
17
- if (r.length > 2) {
18
- var c = r.lastIndexOf("/");
19
- if (c !== r.length - 1) {
20
- c === -1 ? (r = "", i = 0) : i = (r = r.slice(0, c)).length - 1 - r.lastIndexOf("/"), a = s, o = 0;
21
- continue;
22
- }
23
- } else if (r.length === 2 || r.length === 1) {
24
- r = "", i = 0, a = s, o = 0;
25
- continue;
26
- }
27
- }
28
- t && (r.length > 0 ? r += "/.." : r = "..", i = 2);
29
- } else r.length > 0 ? r += "/" + e.slice(a + 1, s) : r = e.slice(a + 1, s), i = s - a - 1;
30
- a = s, o = 0;
31
- } else n === 46 && o !== -1 ? ++o : o = -1;
32
- }
33
- return r;
34
- }
35
- var r = {
36
- resolve: function() {
37
- for (var e, r = "", i = !1, a = arguments.length - 1; a >= -1 && !i; a--) {
38
- var o;
39
- a >= 0 ? o = arguments[a] : (e === void 0 && (e = process.cwd()), o = e), t(o), o.length !== 0 && (r = o + "/" + r, i = o.charCodeAt(0) === 47);
40
- }
41
- return r = n(r, !i), i ? r.length > 0 ? "/" + r : "/" : r.length > 0 ? r : ".";
42
- },
43
- normalize: function(e) {
44
- if (t(e), e.length === 0) return ".";
45
- var r = e.charCodeAt(0) === 47, i = e.charCodeAt(e.length - 1) === 47;
46
- return (e = n(e, !r)).length !== 0 || r || (e = "."), e.length > 0 && i && (e += "/"), r ? "/" + e : e;
47
- },
48
- isAbsolute: function(e) {
49
- return t(e), e.length > 0 && e.charCodeAt(0) === 47;
50
- },
51
- join: function() {
52
- if (arguments.length === 0) return ".";
53
- for (var e, n = 0; n < arguments.length; ++n) {
54
- var i = arguments[n];
55
- t(i), i.length > 0 && (e === void 0 ? e = i : e += "/" + i);
56
- }
57
- return e === void 0 ? "." : r.normalize(e);
58
- },
59
- relative: function(e, n) {
60
- if (t(e), t(n), e === n || (e = r.resolve(e)) === (n = r.resolve(n))) return "";
61
- for (var i = 1; i < e.length && e.charCodeAt(i) === 47; ++i);
62
- for (var a = e.length, o = a - i, s = 1; s < n.length && n.charCodeAt(s) === 47; ++s);
63
- for (var c = n.length - s, l = o < c ? o : c, u = -1, d = 0; d <= l; ++d) {
64
- if (d === l) {
65
- if (c > l) {
66
- if (n.charCodeAt(s + d) === 47) return n.slice(s + d + 1);
67
- if (d === 0) return n.slice(s + d);
68
- } else o > l && (e.charCodeAt(i + d) === 47 ? u = d : d === 0 && (u = 0));
69
- break;
70
- }
71
- var f = e.charCodeAt(i + d);
72
- if (f !== n.charCodeAt(s + d)) break;
73
- f === 47 && (u = d);
74
- }
75
- var p = "";
76
- for (d = i + u + 1; d <= a; ++d) d !== a && e.charCodeAt(d) !== 47 || (p.length === 0 ? p += ".." : p += "/..");
77
- return p.length > 0 ? p + n.slice(s + u) : (s += u, n.charCodeAt(s) === 47 && ++s, n.slice(s));
78
- },
79
- _makeLong: function(e) {
80
- return e;
81
- },
82
- dirname: function(e) {
83
- if (t(e), e.length === 0) return ".";
84
- for (var n = e.charCodeAt(0), r = n === 47, i = -1, a = !0, o = e.length - 1; o >= 1; --o) if ((n = e.charCodeAt(o)) === 47) {
85
- if (!a) {
86
- i = o;
87
- break;
88
- }
89
- } else a = !1;
90
- return i === -1 ? r ? "/" : "." : r && i === 1 ? "//" : e.slice(0, i);
91
- },
92
- basename: function(e, n) {
93
- if (n !== void 0 && typeof n != "string") throw TypeError("\"ext\" argument must be a string");
94
- t(e);
95
- var r, i = 0, a = -1, o = !0;
96
- if (n !== void 0 && n.length > 0 && n.length <= e.length) {
97
- if (n.length === e.length && n === e) return "";
98
- var s = n.length - 1, c = -1;
99
- for (r = e.length - 1; r >= 0; --r) {
100
- var l = e.charCodeAt(r);
101
- if (l === 47) {
102
- if (!o) {
103
- i = r + 1;
104
- break;
105
- }
106
- } else c === -1 && (o = !1, c = r + 1), s >= 0 && (l === n.charCodeAt(s) ? --s == -1 && (a = r) : (s = -1, a = c));
107
- }
108
- return i === a ? a = c : a === -1 && (a = e.length), e.slice(i, a);
109
- }
110
- for (r = e.length - 1; r >= 0; --r) if (e.charCodeAt(r) === 47) {
111
- if (!o) {
112
- i = r + 1;
113
- break;
114
- }
115
- } else a === -1 && (o = !1, a = r + 1);
116
- return a === -1 ? "" : e.slice(i, a);
117
- },
118
- extname: function(e) {
119
- t(e);
120
- for (var n = -1, r = 0, i = -1, a = !0, o = 0, s = e.length - 1; s >= 0; --s) {
121
- var c = e.charCodeAt(s);
122
- if (c !== 47) i === -1 && (a = !1, i = s + 1), c === 46 ? n === -1 ? n = s : o !== 1 && (o = 1) : n !== -1 && (o = -1);
123
- else if (!a) {
124
- r = s + 1;
125
- break;
126
- }
127
- }
128
- return n === -1 || i === -1 || o === 0 || o === 1 && n === i - 1 && n === r + 1 ? "" : e.slice(n, i);
129
- },
130
- format: function(e) {
131
- if (typeof e != "object" || !e) throw TypeError("The \"pathObject\" argument must be of type Object. Received type " + typeof e);
132
- return function(e, t) {
133
- var n = t.dir || t.root, r = t.base || (t.name || "") + (t.ext || "");
134
- return n ? n === t.root ? n + r : n + "/" + r : r;
135
- }(0, e);
136
- },
137
- parse: function(e) {
138
- t(e);
139
- var n = {
140
- root: "",
141
- dir: "",
142
- base: "",
143
- ext: "",
144
- name: ""
145
- };
146
- if (e.length === 0) return n;
147
- var r, i = e.charCodeAt(0), a = i === 47;
148
- a ? (n.root = "/", r = 1) : r = 0;
149
- for (var o = -1, s = 0, c = -1, l = !0, u = e.length - 1, d = 0; u >= r; --u) if ((i = e.charCodeAt(u)) !== 47) c === -1 && (l = !1, c = u + 1), i === 46 ? o === -1 ? o = u : d !== 1 && (d = 1) : o !== -1 && (d = -1);
150
- else if (!l) {
151
- s = u + 1;
152
- break;
153
- }
154
- return o === -1 || c === -1 || d === 0 || d === 1 && o === c - 1 && o === s + 1 ? c !== -1 && (n.base = n.name = s === 0 && a ? e.slice(1, c) : e.slice(s, c)) : (s === 0 && a ? (n.name = e.slice(1, o), n.base = e.slice(1, c)) : (n.name = e.slice(s, o), n.base = e.slice(s, c)), n.ext = e.slice(o, c)), s > 0 ? n.dir = e.slice(0, s - 1) : a && (n.dir = "/"), n;
155
- },
156
- sep: "/",
157
- delimiter: ":",
158
- win32: null,
159
- posix: null
160
- };
161
- r.posix = r, e.exports = r;
162
- } }, n = {};
163
- function r(e) {
164
- var i = n[e];
165
- if (i !== void 0) return i.exports;
166
- var a = n[e] = { exports: {} };
167
- return t[e](a, a.exports, r), a.exports;
168
- }
169
- r.d = (e, t) => {
170
- for (var n in t) r.o(t, n) && !r.o(e, n) && Object.defineProperty(e, n, {
171
- enumerable: !0,
172
- get: t[n]
173
- });
174
- }, r.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), r.r = (e) => {
175
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 });
176
- };
177
- var i = {};
178
- let a;
179
- r.r(i), r.d(i, {
180
- URI: () => d,
181
- Utils: () => w
182
- }), typeof process == "object" ? a = process.platform === "win32" : typeof navigator == "object" && (a = navigator.userAgent.indexOf("Windows") >= 0);
183
- let o = /^\w[\w\d+.-]*$/, s = /^\//, c = /^\/\//;
184
- function l(e, t) {
185
- if (!e.scheme && t) throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);
186
- if (e.scheme && !o.test(e.scheme)) throw Error("[UriError]: Scheme contains illegal characters.");
187
- if (e.path) {
188
- if (e.authority) {
189
- if (!s.test(e.path)) throw Error("[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash (\"/\") character");
190
- } else if (c.test(e.path)) throw Error("[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters (\"//\")");
191
- }
192
- }
193
- let u = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
194
- class d {
195
- static isUri(e) {
196
- return e instanceof d || !!e && typeof e.authority == "string" && typeof e.fragment == "string" && typeof e.path == "string" && typeof e.query == "string" && typeof e.scheme == "string" && typeof e.fsPath == "string" && typeof e.with == "function" && typeof e.toString == "function";
197
- }
198
- scheme;
199
- authority;
200
- path;
201
- query;
202
- fragment;
203
- constructor(e, t, n, r, i, a = !1) {
204
- typeof e == "object" ? (this.scheme = e.scheme || "", this.authority = e.authority || "", this.path = e.path || "", this.query = e.query || "", this.fragment = e.fragment || "") : (this.scheme = function(e, t) {
205
- return e || t ? e : "file";
206
- }(e, a), this.authority = t || "", this.path = function(e, t) {
207
- switch (e) {
208
- case "https":
209
- case "http":
210
- case "file": t ? t[0] !== "/" && (t = "/" + t) : t = "/";
211
- }
212
- return t;
213
- }(this.scheme, n || ""), this.query = r || "", this.fragment = i || "", l(this, a));
214
- }
215
- get fsPath() {
216
- return _(this, !1);
217
- }
218
- with(e) {
219
- if (!e) return this;
220
- let { scheme: t, authority: n, path: r, query: i, fragment: a } = e;
221
- return t === void 0 ? t = this.scheme : t === null && (t = ""), n === void 0 ? n = this.authority : n === null && (n = ""), r === void 0 ? r = this.path : r === null && (r = ""), i === void 0 ? i = this.query : i === null && (i = ""), a === void 0 ? a = this.fragment : a === null && (a = ""), t === this.scheme && n === this.authority && r === this.path && i === this.query && a === this.fragment ? this : new p(t, n, r, i, a);
222
- }
223
- static parse(e, t = !1) {
224
- let n = u.exec(e);
225
- return n ? new p(n[2] || "", x(n[4] || ""), x(n[5] || ""), x(n[7] || ""), x(n[9] || ""), t) : new p("", "", "", "", "");
226
- }
227
- static file(e) {
228
- let t = "";
229
- if (a && (e = e.replace(/\\/g, "/")), e[0] === "/" && e[1] === "/") {
230
- let n = e.indexOf("/", 2);
231
- n === -1 ? (t = e.substring(2), e = "/") : (t = e.substring(2, n), e = e.substring(n) || "/");
232
- }
233
- return new p("file", t, e, "", "");
234
- }
235
- static from(e) {
236
- let t = new p(e.scheme, e.authority, e.path, e.query, e.fragment);
237
- return l(t, !0), t;
238
- }
239
- toString(e = !1) {
240
- return v(this, e);
241
- }
242
- toJSON() {
243
- return this;
244
- }
245
- static revive(e) {
246
- if (e) {
247
- if (e instanceof d) return e;
248
- {
249
- let t = new p(e);
250
- return t._formatted = e.external, t._fsPath = e._sep === f ? e.fsPath : null, t;
251
- }
252
- }
253
- return e;
254
- }
255
- }
256
- let f = a ? 1 : void 0;
257
- class p extends d {
258
- _formatted = null;
259
- _fsPath = null;
260
- get fsPath() {
261
- return this._fsPath ||= _(this, !1), this._fsPath;
262
- }
263
- toString(e = !1) {
264
- return e ? v(this, !0) : (this._formatted ||= v(this, !1), this._formatted);
265
- }
266
- toJSON() {
267
- let e = { $mid: 1 };
268
- return this._fsPath && (e.fsPath = this._fsPath, e._sep = f), this._formatted && (e.external = this._formatted), this.path && (e.path = this.path), this.scheme && (e.scheme = this.scheme), this.authority && (e.authority = this.authority), this.query && (e.query = this.query), this.fragment && (e.fragment = this.fragment), e;
269
- }
270
- }
271
- let m = {
272
- 58: "%3A",
273
- 47: "%2F",
274
- 63: "%3F",
275
- 35: "%23",
276
- 91: "%5B",
277
- 93: "%5D",
278
- 64: "%40",
279
- 33: "%21",
280
- 36: "%24",
281
- 38: "%26",
282
- 39: "%27",
283
- 40: "%28",
284
- 41: "%29",
285
- 42: "%2A",
286
- 43: "%2B",
287
- 44: "%2C",
288
- 59: "%3B",
289
- 61: "%3D",
290
- 32: "%20"
291
- };
292
- function h(e, t, n) {
293
- let r, i = -1;
294
- for (let a = 0; a < e.length; a++) {
295
- let o = e.charCodeAt(a);
296
- if (o >= 97 && o <= 122 || o >= 65 && o <= 90 || o >= 48 && o <= 57 || o === 45 || o === 46 || o === 95 || o === 126 || t && o === 47 || n && o === 91 || n && o === 93 || n && o === 58) i !== -1 && (r += encodeURIComponent(e.substring(i, a)), i = -1), r !== void 0 && (r += e.charAt(a));
297
- else {
298
- r === void 0 && (r = e.substr(0, a));
299
- let t = m[o];
300
- t === void 0 ? i === -1 && (i = a) : (i !== -1 && (r += encodeURIComponent(e.substring(i, a)), i = -1), r += t);
301
- }
302
- }
303
- return i !== -1 && (r += encodeURIComponent(e.substring(i))), r === void 0 ? e : r;
304
- }
305
- function g(e) {
306
- let t;
307
- for (let n = 0; n < e.length; n++) {
308
- let r = e.charCodeAt(n);
309
- r === 35 || r === 63 ? (t === void 0 && (t = e.substr(0, n)), t += m[r]) : t !== void 0 && (t += e[n]);
310
- }
311
- return t === void 0 ? e : t;
312
- }
313
- function _(e, t) {
314
- let n;
315
- return n = e.authority && e.path.length > 1 && e.scheme === "file" ? `//${e.authority}${e.path}` : e.path.charCodeAt(0) === 47 && (e.path.charCodeAt(1) >= 65 && e.path.charCodeAt(1) <= 90 || e.path.charCodeAt(1) >= 97 && e.path.charCodeAt(1) <= 122) && e.path.charCodeAt(2) === 58 ? t ? e.path.substr(1) : e.path[1].toLowerCase() + e.path.substr(2) : e.path, a && (n = n.replace(/\//g, "\\")), n;
316
- }
317
- function v(e, t) {
318
- let n = t ? g : h, r = "", { scheme: i, authority: a, path: o, query: s, fragment: c } = e;
319
- if (i && (r += i, r += ":"), (a || i === "file") && (r += "/", r += "/"), a) {
320
- let e = a.indexOf("@");
321
- if (e !== -1) {
322
- let t = a.substr(0, e);
323
- a = a.substr(e + 1), e = t.lastIndexOf(":"), e === -1 ? r += n(t, !1, !1) : (r += n(t.substr(0, e), !1, !1), r += ":", r += n(t.substr(e + 1), !1, !0)), r += "@";
324
- }
325
- a = a.toLowerCase(), e = a.lastIndexOf(":"), e === -1 ? r += n(a, !1, !0) : (r += n(a.substr(0, e), !1, !0), r += a.substr(e));
326
- }
327
- if (o) {
328
- if (o.length >= 3 && o.charCodeAt(0) === 47 && o.charCodeAt(2) === 58) {
329
- let e = o.charCodeAt(1);
330
- e >= 65 && e <= 90 && (o = `/${String.fromCharCode(e + 32)}:${o.substr(3)}`);
331
- } else if (o.length >= 2 && o.charCodeAt(1) === 58) {
332
- let e = o.charCodeAt(0);
333
- e >= 65 && e <= 90 && (o = `${String.fromCharCode(e + 32)}:${o.substr(2)}`);
334
- }
335
- r += n(o, !0, !1);
336
- }
337
- return s && (r += "?", r += n(s, !1, !1)), c && (r += "#", r += t ? c : h(c, !1, !1)), r;
338
- }
339
- function y(e) {
340
- try {
341
- return decodeURIComponent(e);
342
- } catch {
343
- return e.length > 3 ? e.substr(0, 3) + y(e.substr(3)) : e;
344
- }
345
- }
346
- let b = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
347
- function x(e) {
348
- return e.match(b) ? e.replace(b, ((e) => y(e))) : e;
349
- }
350
- var S = r(975);
351
- let C = S.posix || S;
352
- var w;
353
- (function(e) {
354
- e.joinPath = function(e, ...t) {
355
- return e.with({ path: C.join(e.path, ...t) });
356
- }, e.resolvePath = function(e, ...t) {
357
- let n = e.path, r = !1;
358
- n[0] !== "/" && (n = "/" + n, r = !0);
359
- let i = C.resolve(n, ...t);
360
- return r && i[0] === "/" && !e.authority && (i = i.substring(1)), e.with({ path: i });
361
- }, e.dirname = function(e) {
362
- if (e.path.length === 0 || e.path === "/") return e;
363
- let t = C.dirname(e.path);
364
- return t.length === 1 && t.charCodeAt(0) === 46 && (t = ""), e.with({ path: t });
365
- }, e.basename = function(e) {
366
- return C.basename(e.path);
367
- }, e.extname = function(e) {
368
- return C.extname(e.path);
369
- };
370
- })(w ||= {}), LIB = i;
371
- })();
372
- const { URI, Utils } = LIB;
373
- export { URI, Utils };