@loopstack/loopstack-studio 0.28.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.
- package/dist/_virtual/rolldown_runtime.js +13 -15
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/config.js +6 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
- package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
- package/dist/features/debug/lib/edge-paths.js +45 -30
- package/dist/features/debug/lib/flow-types.js +2 -0
- package/dist/features/debug/lib/flow-utils.js +66 -64
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/workbench/WorkflowItem.js +4 -3
- package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
- package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
- package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
- package/dist/features/workbench/components/RecentRunItem.js +48 -0
- package/dist/features/workbench/components/WorkflowForms.js +4 -3
- package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
- package/dist/features/workbench/index.js +4 -0
- package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
- package/dist/node_modules/internmap/src/index.js +1 -1
- package/dist/node_modules/katex/dist/katex.js +379 -417
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
- package/dist/node_modules/lodash-es/_assignValue.js +1 -1
- package/dist/node_modules/lodash-es/_baseClone.js +9 -9
- package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
- package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
- package/dist/node_modules/lodash-es/_baseRest.js +1 -1
- package/dist/node_modules/lodash-es/_baseSet.js +1 -1
- package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
- package/dist/node_modules/lodash-es/_baseToString.js +2 -2
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createRange.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +3 -3
- package/dist/node_modules/lodash-es/_flatRest.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
- package/dist/node_modules/lodash-es/_getTag.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +2 -2
- package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
- package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
- package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
- package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
- package/dist/node_modules/lodash-es/_isKey.js +1 -1
- package/dist/node_modules/lodash-es/_setToString.js +1 -1
- package/dist/node_modules/lodash-es/defaults.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/forIn.js +1 -1
- package/dist/node_modules/lodash-es/isEmpty.js +2 -2
- package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
- package/dist/node_modules/lodash-es/map.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/merge.js +3 -3
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/lodash-es/toNumber.js +1 -1
- package/dist/node_modules/lodash-es/union.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
- package/dist/node_modules/stylis/src/Enum.js +2 -2
- package/dist/node_modules/stylis/src/Middleware.js +9 -0
- package/dist/node_modules/stylis/src/Parser.js +55 -44
- package/dist/node_modules/stylis/src/Utility.js +9 -12
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/contracts/dist/enums/index.js +4 -24
- package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
- package/dist/pages/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- package/package.json +2 -2
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
- package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/dist/node_modules/langium/lib/default-module.js +0 -85
- package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
- package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
- package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
- package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
- package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
- package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
- package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
- package/dist/node_modules/langium/lib/references/linker.js +0 -190
- package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
- package/dist/node_modules/langium/lib/references/references.js +0 -76
- package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
- package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
- package/dist/node_modules/langium/lib/references/scope.js +0 -73
- package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
- package/dist/node_modules/langium/lib/service-registry.js +0 -37
- package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
- package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
- package/dist/node_modules/langium/lib/utils/caching.js +0 -91
- package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
- package/dist/node_modules/langium/lib/utils/collections.js +0 -85
- package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
- package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
- package/dist/node_modules/langium/lib/utils/errors.js +0 -12
- package/dist/node_modules/langium/lib/utils/event.js +0 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
- package/dist/node_modules/langium/lib/utils/stream.js +0 -327
- package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
- package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
- package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
- package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
- package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
- package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
- package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
- package/dist/node_modules/lodash-es/flatMap.js +0 -7
- package/dist/node_modules/lodash-es/uniqBy.js +0 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
- package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
- package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
- /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_ral } from "./ral.js";
|
|
3
|
-
var require_events = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
4
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.Emitter = e.Event = void 0;
|
|
5
|
-
var n = require_ral(), r;
|
|
6
|
-
(function(e) {
|
|
7
|
-
let t = { dispose() {} };
|
|
8
|
-
e.None = function() {
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
})(r || (e.Event = r = {}));
|
|
12
|
-
var i = class {
|
|
13
|
-
add(e, t = null, n) {
|
|
14
|
-
this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(e), this._contexts.push(t), Array.isArray(n) && n.push({ dispose: () => this.remove(e, t) });
|
|
15
|
-
}
|
|
16
|
-
remove(e, t = null) {
|
|
17
|
-
if (!this._callbacks) return;
|
|
18
|
-
let n = !1;
|
|
19
|
-
for (let r = 0, i = this._callbacks.length; r < i; r++) if (this._callbacks[r] === e) if (this._contexts[r] === t) {
|
|
20
|
-
this._callbacks.splice(r, 1), this._contexts.splice(r, 1);
|
|
21
|
-
return;
|
|
22
|
-
} else n = !0;
|
|
23
|
-
if (n) throw Error("When adding a listener with a context, you should remove it with the same context");
|
|
24
|
-
}
|
|
25
|
-
invoke(...e) {
|
|
26
|
-
if (!this._callbacks) return [];
|
|
27
|
-
let t = [], r = this._callbacks.slice(0), i = this._contexts.slice(0);
|
|
28
|
-
for (let a = 0, o = r.length; a < o; a++) try {
|
|
29
|
-
t.push(r[a].apply(i[a], e));
|
|
30
|
-
} catch (e) {
|
|
31
|
-
(0, n.default)().console.error(e);
|
|
32
|
-
}
|
|
33
|
-
return t;
|
|
34
|
-
}
|
|
35
|
-
isEmpty() {
|
|
36
|
-
return !this._callbacks || this._callbacks.length === 0;
|
|
37
|
-
}
|
|
38
|
-
dispose() {
|
|
39
|
-
this._callbacks = void 0, this._contexts = void 0;
|
|
40
|
-
}
|
|
41
|
-
}, a = class e {
|
|
42
|
-
constructor(e) {
|
|
43
|
-
this._options = e;
|
|
44
|
-
}
|
|
45
|
-
get event() {
|
|
46
|
-
return this._event ||= (t, n, r) => {
|
|
47
|
-
this._callbacks ||= new i(), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(t, n);
|
|
48
|
-
let a = { dispose: () => {
|
|
49
|
-
this._callbacks && (this._callbacks.remove(t, n), a.dispose = e._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this));
|
|
50
|
-
} };
|
|
51
|
-
return Array.isArray(r) && r.push(a), a;
|
|
52
|
-
}, this._event;
|
|
53
|
-
}
|
|
54
|
-
fire(e) {
|
|
55
|
-
this._callbacks && this._callbacks.invoke.call(this._callbacks, e);
|
|
56
|
-
}
|
|
57
|
-
dispose() {
|
|
58
|
-
this._callbacks &&= (this._callbacks.dispose(), void 0);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
e.Emitter = a, a._noop = function() {};
|
|
62
|
-
}));
|
|
63
|
-
export default require_events();
|
|
64
|
-
export { require_events };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
var require_is = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.stringArray = e.array = e.func = e.error = e.number = e.string = e.boolean = void 0;
|
|
4
|
-
function t(e) {
|
|
5
|
-
return e === !0 || e === !1;
|
|
6
|
-
}
|
|
7
|
-
e.boolean = t;
|
|
8
|
-
function n(e) {
|
|
9
|
-
return typeof e == "string" || e instanceof String;
|
|
10
|
-
}
|
|
11
|
-
e.string = n;
|
|
12
|
-
function r(e) {
|
|
13
|
-
return typeof e == "number" || e instanceof Number;
|
|
14
|
-
}
|
|
15
|
-
e.number = r;
|
|
16
|
-
function i(e) {
|
|
17
|
-
return e instanceof Error;
|
|
18
|
-
}
|
|
19
|
-
e.error = i;
|
|
20
|
-
function a(e) {
|
|
21
|
-
return typeof e == "function";
|
|
22
|
-
}
|
|
23
|
-
e.func = a;
|
|
24
|
-
function o(e) {
|
|
25
|
-
return Array.isArray(e);
|
|
26
|
-
}
|
|
27
|
-
e.array = o;
|
|
28
|
-
function s(e) {
|
|
29
|
-
return o(e) && e.every((e) => n(e));
|
|
30
|
-
}
|
|
31
|
-
e.stringArray = s;
|
|
32
|
-
}));
|
|
33
|
-
export default require_is();
|
|
34
|
-
export { require_is };
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
var require_linkedMap = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3
|
-
var t;
|
|
4
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.LRUCache = e.LinkedMap = e.Touch = void 0;
|
|
5
|
-
var n;
|
|
6
|
-
(function(e) {
|
|
7
|
-
e.None = 0, e.First = 1, e.AsOld = e.First, e.Last = 2, e.AsNew = e.Last;
|
|
8
|
-
})(n || (e.Touch = n = {}));
|
|
9
|
-
var r = class {
|
|
10
|
-
constructor() {
|
|
11
|
-
this[t] = "LinkedMap", this._map = /* @__PURE__ */ new Map(), this._head = void 0, this._tail = void 0, this._size = 0, this._state = 0;
|
|
12
|
-
}
|
|
13
|
-
clear() {
|
|
14
|
-
this._map.clear(), this._head = void 0, this._tail = void 0, this._size = 0, this._state++;
|
|
15
|
-
}
|
|
16
|
-
isEmpty() {
|
|
17
|
-
return !this._head && !this._tail;
|
|
18
|
-
}
|
|
19
|
-
get size() {
|
|
20
|
-
return this._size;
|
|
21
|
-
}
|
|
22
|
-
get first() {
|
|
23
|
-
return this._head?.value;
|
|
24
|
-
}
|
|
25
|
-
get last() {
|
|
26
|
-
return this._tail?.value;
|
|
27
|
-
}
|
|
28
|
-
has(e) {
|
|
29
|
-
return this._map.has(e);
|
|
30
|
-
}
|
|
31
|
-
get(e, t = n.None) {
|
|
32
|
-
let r = this._map.get(e);
|
|
33
|
-
if (r) return t !== n.None && this.touch(r, t), r.value;
|
|
34
|
-
}
|
|
35
|
-
set(e, t, r = n.None) {
|
|
36
|
-
let i = this._map.get(e);
|
|
37
|
-
if (i) i.value = t, r !== n.None && this.touch(i, r);
|
|
38
|
-
else {
|
|
39
|
-
switch (i = {
|
|
40
|
-
key: e,
|
|
41
|
-
value: t,
|
|
42
|
-
next: void 0,
|
|
43
|
-
previous: void 0
|
|
44
|
-
}, r) {
|
|
45
|
-
case n.None:
|
|
46
|
-
this.addItemLast(i);
|
|
47
|
-
break;
|
|
48
|
-
case n.First:
|
|
49
|
-
this.addItemFirst(i);
|
|
50
|
-
break;
|
|
51
|
-
case n.Last:
|
|
52
|
-
this.addItemLast(i);
|
|
53
|
-
break;
|
|
54
|
-
default:
|
|
55
|
-
this.addItemLast(i);
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
this._map.set(e, i), this._size++;
|
|
59
|
-
}
|
|
60
|
-
return this;
|
|
61
|
-
}
|
|
62
|
-
delete(e) {
|
|
63
|
-
return !!this.remove(e);
|
|
64
|
-
}
|
|
65
|
-
remove(e) {
|
|
66
|
-
let t = this._map.get(e);
|
|
67
|
-
if (t) return this._map.delete(e), this.removeItem(t), this._size--, t.value;
|
|
68
|
-
}
|
|
69
|
-
shift() {
|
|
70
|
-
if (!this._head && !this._tail) return;
|
|
71
|
-
if (!this._head || !this._tail) throw Error("Invalid list");
|
|
72
|
-
let e = this._head;
|
|
73
|
-
return this._map.delete(e.key), this.removeItem(e), this._size--, e.value;
|
|
74
|
-
}
|
|
75
|
-
forEach(e, t) {
|
|
76
|
-
let n = this._state, r = this._head;
|
|
77
|
-
for (; r;) {
|
|
78
|
-
if (t ? e.bind(t)(r.value, r.key, this) : e(r.value, r.key, this), this._state !== n) throw Error("LinkedMap got modified during iteration.");
|
|
79
|
-
r = r.next;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
keys() {
|
|
83
|
-
let e = this._state, t = this._head, n = {
|
|
84
|
-
[Symbol.iterator]: () => n,
|
|
85
|
-
next: () => {
|
|
86
|
-
if (this._state !== e) throw Error("LinkedMap got modified during iteration.");
|
|
87
|
-
if (t) {
|
|
88
|
-
let e = {
|
|
89
|
-
value: t.key,
|
|
90
|
-
done: !1
|
|
91
|
-
};
|
|
92
|
-
return t = t.next, e;
|
|
93
|
-
} else return {
|
|
94
|
-
value: void 0,
|
|
95
|
-
done: !0
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
return n;
|
|
100
|
-
}
|
|
101
|
-
values() {
|
|
102
|
-
let e = this._state, t = this._head, n = {
|
|
103
|
-
[Symbol.iterator]: () => n,
|
|
104
|
-
next: () => {
|
|
105
|
-
if (this._state !== e) throw Error("LinkedMap got modified during iteration.");
|
|
106
|
-
if (t) {
|
|
107
|
-
let e = {
|
|
108
|
-
value: t.value,
|
|
109
|
-
done: !1
|
|
110
|
-
};
|
|
111
|
-
return t = t.next, e;
|
|
112
|
-
} else return {
|
|
113
|
-
value: void 0,
|
|
114
|
-
done: !0
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
return n;
|
|
119
|
-
}
|
|
120
|
-
entries() {
|
|
121
|
-
let e = this._state, t = this._head, n = {
|
|
122
|
-
[Symbol.iterator]: () => n,
|
|
123
|
-
next: () => {
|
|
124
|
-
if (this._state !== e) throw Error("LinkedMap got modified during iteration.");
|
|
125
|
-
if (t) {
|
|
126
|
-
let e = {
|
|
127
|
-
value: [t.key, t.value],
|
|
128
|
-
done: !1
|
|
129
|
-
};
|
|
130
|
-
return t = t.next, e;
|
|
131
|
-
} else return {
|
|
132
|
-
value: void 0,
|
|
133
|
-
done: !0
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
return n;
|
|
138
|
-
}
|
|
139
|
-
[(t = Symbol.toStringTag, Symbol.iterator)]() {
|
|
140
|
-
return this.entries();
|
|
141
|
-
}
|
|
142
|
-
trimOld(e) {
|
|
143
|
-
if (e >= this.size) return;
|
|
144
|
-
if (e === 0) {
|
|
145
|
-
this.clear();
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
let t = this._head, n = this.size;
|
|
149
|
-
for (; t && n > e;) this._map.delete(t.key), t = t.next, n--;
|
|
150
|
-
this._head = t, this._size = n, t && (t.previous = void 0), this._state++;
|
|
151
|
-
}
|
|
152
|
-
addItemFirst(e) {
|
|
153
|
-
if (!this._head && !this._tail) this._tail = e;
|
|
154
|
-
else if (this._head) e.next = this._head, this._head.previous = e;
|
|
155
|
-
else throw Error("Invalid list");
|
|
156
|
-
this._head = e, this._state++;
|
|
157
|
-
}
|
|
158
|
-
addItemLast(e) {
|
|
159
|
-
if (!this._head && !this._tail) this._head = e;
|
|
160
|
-
else if (this._tail) e.previous = this._tail, this._tail.next = e;
|
|
161
|
-
else throw Error("Invalid list");
|
|
162
|
-
this._tail = e, this._state++;
|
|
163
|
-
}
|
|
164
|
-
removeItem(e) {
|
|
165
|
-
if (e === this._head && e === this._tail) this._head = void 0, this._tail = void 0;
|
|
166
|
-
else if (e === this._head) {
|
|
167
|
-
if (!e.next) throw Error("Invalid list");
|
|
168
|
-
e.next.previous = void 0, this._head = e.next;
|
|
169
|
-
} else if (e === this._tail) {
|
|
170
|
-
if (!e.previous) throw Error("Invalid list");
|
|
171
|
-
e.previous.next = void 0, this._tail = e.previous;
|
|
172
|
-
} else {
|
|
173
|
-
let t = e.next, n = e.previous;
|
|
174
|
-
if (!t || !n) throw Error("Invalid list");
|
|
175
|
-
t.previous = n, n.next = t;
|
|
176
|
-
}
|
|
177
|
-
e.next = void 0, e.previous = void 0, this._state++;
|
|
178
|
-
}
|
|
179
|
-
touch(e, t) {
|
|
180
|
-
if (!this._head || !this._tail) throw Error("Invalid list");
|
|
181
|
-
if (!(t !== n.First && t !== n.Last)) {
|
|
182
|
-
if (t === n.First) {
|
|
183
|
-
if (e === this._head) return;
|
|
184
|
-
let t = e.next, n = e.previous;
|
|
185
|
-
e === this._tail ? (n.next = void 0, this._tail = n) : (t.previous = n, n.next = t), e.previous = void 0, e.next = this._head, this._head.previous = e, this._head = e, this._state++;
|
|
186
|
-
} else if (t === n.Last) {
|
|
187
|
-
if (e === this._tail) return;
|
|
188
|
-
let t = e.next, n = e.previous;
|
|
189
|
-
e === this._head ? (t.previous = void 0, this._head = t) : (t.previous = n, n.next = t), e.next = void 0, e.previous = this._tail, this._tail.next = e, this._tail = e, this._state++;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
toJSON() {
|
|
194
|
-
let e = [];
|
|
195
|
-
return this.forEach((t, n) => {
|
|
196
|
-
e.push([n, t]);
|
|
197
|
-
}), e;
|
|
198
|
-
}
|
|
199
|
-
fromJSON(e) {
|
|
200
|
-
this.clear();
|
|
201
|
-
for (let [t, n] of e) this.set(t, n);
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
e.LinkedMap = r, e.LRUCache = class extends r {
|
|
205
|
-
constructor(e, t = 1) {
|
|
206
|
-
super(), this._limit = e, this._ratio = Math.min(Math.max(0, t), 1);
|
|
207
|
-
}
|
|
208
|
-
get limit() {
|
|
209
|
-
return this._limit;
|
|
210
|
-
}
|
|
211
|
-
set limit(e) {
|
|
212
|
-
this._limit = e, this.checkTrim();
|
|
213
|
-
}
|
|
214
|
-
get ratio() {
|
|
215
|
-
return this._ratio;
|
|
216
|
-
}
|
|
217
|
-
set ratio(e) {
|
|
218
|
-
this._ratio = Math.min(Math.max(0, e), 1), this.checkTrim();
|
|
219
|
-
}
|
|
220
|
-
get(e, t = n.AsNew) {
|
|
221
|
-
return super.get(e, t);
|
|
222
|
-
}
|
|
223
|
-
peek(e) {
|
|
224
|
-
return super.get(e, n.None);
|
|
225
|
-
}
|
|
226
|
-
set(e, t) {
|
|
227
|
-
return super.set(e, t, n.Last), this.checkTrim(), this;
|
|
228
|
-
}
|
|
229
|
-
checkTrim() {
|
|
230
|
-
this.size > this._limit && this.trimOld(Math.round(this._limit * this._ratio));
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
}));
|
|
234
|
-
export default require_linkedMap();
|
|
235
|
-
export { require_linkedMap };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
var require_messageBuffer = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractMessageBuffer = void 0;
|
|
4
|
-
var t = 13, n = 10, r = "\r\n";
|
|
5
|
-
e.AbstractMessageBuffer = class {
|
|
6
|
-
constructor(e = "utf-8") {
|
|
7
|
-
this._encoding = e, this._chunks = [], this._totalLength = 0;
|
|
8
|
-
}
|
|
9
|
-
get encoding() {
|
|
10
|
-
return this._encoding;
|
|
11
|
-
}
|
|
12
|
-
append(e) {
|
|
13
|
-
let t = typeof e == "string" ? this.fromString(e, this._encoding) : e;
|
|
14
|
-
this._chunks.push(t), this._totalLength += t.byteLength;
|
|
15
|
-
}
|
|
16
|
-
tryReadHeaders(e = !1) {
|
|
17
|
-
if (this._chunks.length === 0) return;
|
|
18
|
-
let i = 0, a = 0, o = 0, s = 0;
|
|
19
|
-
row: for (; a < this._chunks.length;) {
|
|
20
|
-
let e = this._chunks[a];
|
|
21
|
-
o = 0;
|
|
22
|
-
column: for (; o < e.length;) {
|
|
23
|
-
switch (e[o]) {
|
|
24
|
-
case t:
|
|
25
|
-
switch (i) {
|
|
26
|
-
case 0:
|
|
27
|
-
i = 1;
|
|
28
|
-
break;
|
|
29
|
-
case 2:
|
|
30
|
-
i = 3;
|
|
31
|
-
break;
|
|
32
|
-
default: i = 0;
|
|
33
|
-
}
|
|
34
|
-
break;
|
|
35
|
-
case n:
|
|
36
|
-
switch (i) {
|
|
37
|
-
case 1:
|
|
38
|
-
i = 2;
|
|
39
|
-
break;
|
|
40
|
-
case 3:
|
|
41
|
-
i = 4, o++;
|
|
42
|
-
break row;
|
|
43
|
-
default: i = 0;
|
|
44
|
-
}
|
|
45
|
-
break;
|
|
46
|
-
default: i = 0;
|
|
47
|
-
}
|
|
48
|
-
o++;
|
|
49
|
-
}
|
|
50
|
-
s += e.byteLength, a++;
|
|
51
|
-
}
|
|
52
|
-
if (i !== 4) return;
|
|
53
|
-
let c = this._read(s + o), l = /* @__PURE__ */ new Map(), u = this.toString(c, "ascii").split(r);
|
|
54
|
-
if (u.length < 2) return l;
|
|
55
|
-
for (let t = 0; t < u.length - 2; t++) {
|
|
56
|
-
let n = u[t], r = n.indexOf(":");
|
|
57
|
-
if (r === -1) throw Error(`Message header must separate key and value using ':'\n${n}`);
|
|
58
|
-
let i = n.substr(0, r), a = n.substr(r + 1).trim();
|
|
59
|
-
l.set(e ? i.toLowerCase() : i, a);
|
|
60
|
-
}
|
|
61
|
-
return l;
|
|
62
|
-
}
|
|
63
|
-
tryReadBody(e) {
|
|
64
|
-
if (!(this._totalLength < e)) return this._read(e);
|
|
65
|
-
}
|
|
66
|
-
get numberOfBytes() {
|
|
67
|
-
return this._totalLength;
|
|
68
|
-
}
|
|
69
|
-
_read(e) {
|
|
70
|
-
if (e === 0) return this.emptyBuffer();
|
|
71
|
-
if (e > this._totalLength) throw Error("Cannot read so many bytes!");
|
|
72
|
-
if (this._chunks[0].byteLength === e) {
|
|
73
|
-
let t = this._chunks[0];
|
|
74
|
-
return this._chunks.shift(), this._totalLength -= e, this.asNative(t);
|
|
75
|
-
}
|
|
76
|
-
if (this._chunks[0].byteLength > e) {
|
|
77
|
-
let t = this._chunks[0], n = this.asNative(t, e);
|
|
78
|
-
return this._chunks[0] = t.slice(e), this._totalLength -= e, n;
|
|
79
|
-
}
|
|
80
|
-
let t = this.allocNative(e), n = 0;
|
|
81
|
-
for (; e > 0;) {
|
|
82
|
-
let r = this._chunks[0];
|
|
83
|
-
if (r.byteLength > e) {
|
|
84
|
-
let i = r.slice(0, e);
|
|
85
|
-
t.set(i, n), n += e, this._chunks[0] = r.slice(e), this._totalLength -= e, e -= e;
|
|
86
|
-
} else t.set(r, n), n += r.byteLength, this._chunks.shift(), this._totalLength -= r.byteLength, e -= r.byteLength;
|
|
87
|
-
}
|
|
88
|
-
return t;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}));
|
|
92
|
-
export default require_messageBuffer();
|
|
93
|
-
export { require_messageBuffer };
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_ral } from "./ral.js";
|
|
3
|
-
import { require_is } from "./is.js";
|
|
4
|
-
import { require_events } from "./events.js";
|
|
5
|
-
import { require_semaphore } from "./semaphore.js";
|
|
6
|
-
var require_messageReader = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
7
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.ReadableStreamMessageReader = e.AbstractMessageReader = e.MessageReader = void 0;
|
|
8
|
-
var a = require_ral(), o = require_is(), s = require_events(), c = require_semaphore(), l;
|
|
9
|
-
(function(e) {
|
|
10
|
-
function t(e) {
|
|
11
|
-
let t = e;
|
|
12
|
-
return t && o.func(t.listen) && o.func(t.dispose) && o.func(t.onError) && o.func(t.onClose) && o.func(t.onPartialMessage);
|
|
13
|
-
}
|
|
14
|
-
e.is = t;
|
|
15
|
-
})(l || (e.MessageReader = l = {}));
|
|
16
|
-
var u = class {
|
|
17
|
-
constructor() {
|
|
18
|
-
this.errorEmitter = new s.Emitter(), this.closeEmitter = new s.Emitter(), this.partialMessageEmitter = new s.Emitter();
|
|
19
|
-
}
|
|
20
|
-
dispose() {
|
|
21
|
-
this.errorEmitter.dispose(), this.closeEmitter.dispose();
|
|
22
|
-
}
|
|
23
|
-
get onError() {
|
|
24
|
-
return this.errorEmitter.event;
|
|
25
|
-
}
|
|
26
|
-
fireError(e) {
|
|
27
|
-
this.errorEmitter.fire(this.asError(e));
|
|
28
|
-
}
|
|
29
|
-
get onClose() {
|
|
30
|
-
return this.closeEmitter.event;
|
|
31
|
-
}
|
|
32
|
-
fireClose() {
|
|
33
|
-
this.closeEmitter.fire(void 0);
|
|
34
|
-
}
|
|
35
|
-
get onPartialMessage() {
|
|
36
|
-
return this.partialMessageEmitter.event;
|
|
37
|
-
}
|
|
38
|
-
firePartialMessage(e) {
|
|
39
|
-
this.partialMessageEmitter.fire(e);
|
|
40
|
-
}
|
|
41
|
-
asError(e) {
|
|
42
|
-
return e instanceof Error ? e : /* @__PURE__ */ Error(`Reader received error. Reason: ${o.string(e.message) ? e.message : "unknown"}`);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
e.AbstractMessageReader = u;
|
|
46
|
-
var d;
|
|
47
|
-
(function(e) {
|
|
48
|
-
function t(e) {
|
|
49
|
-
let t, n, r = /* @__PURE__ */ new Map(), i, o = /* @__PURE__ */ new Map();
|
|
50
|
-
if (e === void 0 || typeof e == "string") t = e ?? "utf-8";
|
|
51
|
-
else {
|
|
52
|
-
if (t = e.charset ?? "utf-8", e.contentDecoder !== void 0 && (n = e.contentDecoder, r.set(n.name, n)), e.contentDecoders !== void 0) for (let t of e.contentDecoders) r.set(t.name, t);
|
|
53
|
-
if (e.contentTypeDecoder !== void 0 && (i = e.contentTypeDecoder, o.set(i.name, i)), e.contentTypeDecoders !== void 0) for (let t of e.contentTypeDecoders) o.set(t.name, t);
|
|
54
|
-
}
|
|
55
|
-
return i === void 0 && (i = (0, a.default)().applicationJson.decoder, o.set(i.name, i)), {
|
|
56
|
-
charset: t,
|
|
57
|
-
contentDecoder: n,
|
|
58
|
-
contentDecoders: r,
|
|
59
|
-
contentTypeDecoder: i,
|
|
60
|
-
contentTypeDecoders: o
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
e.fromOptions = t;
|
|
64
|
-
})(d ||= {}), e.ReadableStreamMessageReader = class extends u {
|
|
65
|
-
constructor(e, t) {
|
|
66
|
-
super(), this.readable = e, this.options = d.fromOptions(t), this.buffer = (0, a.default)().messageBuffer.create(this.options.charset), this._partialMessageTimeout = 1e4, this.nextMessageLength = -1, this.messageToken = 0, this.readSemaphore = new c.Semaphore(1);
|
|
67
|
-
}
|
|
68
|
-
set partialMessageTimeout(e) {
|
|
69
|
-
this._partialMessageTimeout = e;
|
|
70
|
-
}
|
|
71
|
-
get partialMessageTimeout() {
|
|
72
|
-
return this._partialMessageTimeout;
|
|
73
|
-
}
|
|
74
|
-
listen(e) {
|
|
75
|
-
this.nextMessageLength = -1, this.messageToken = 0, this.partialMessageTimer = void 0, this.callback = e;
|
|
76
|
-
let t = this.readable.onData((e) => {
|
|
77
|
-
this.onData(e);
|
|
78
|
-
});
|
|
79
|
-
return this.readable.onError((e) => this.fireError(e)), this.readable.onClose(() => this.fireClose()), t;
|
|
80
|
-
}
|
|
81
|
-
onData(e) {
|
|
82
|
-
try {
|
|
83
|
-
for (this.buffer.append(e);;) {
|
|
84
|
-
if (this.nextMessageLength === -1) {
|
|
85
|
-
let e = this.buffer.tryReadHeaders(!0);
|
|
86
|
-
if (!e) return;
|
|
87
|
-
let t = e.get("content-length");
|
|
88
|
-
if (!t) {
|
|
89
|
-
this.fireError(/* @__PURE__ */ Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
let n = parseInt(t);
|
|
93
|
-
if (isNaN(n)) {
|
|
94
|
-
this.fireError(/* @__PURE__ */ Error(`Content-Length value must be a number. Got ${t}`));
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
this.nextMessageLength = n;
|
|
98
|
-
}
|
|
99
|
-
let e = this.buffer.tryReadBody(this.nextMessageLength);
|
|
100
|
-
if (e === void 0) {
|
|
101
|
-
this.setPartialMessageTimer();
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
this.clearPartialMessageTimer(), this.nextMessageLength = -1, this.readSemaphore.lock(async () => {
|
|
105
|
-
let t = this.options.contentDecoder === void 0 ? e : await this.options.contentDecoder.decode(e), n = await this.options.contentTypeDecoder.decode(t, this.options);
|
|
106
|
-
this.callback(n);
|
|
107
|
-
}).catch((e) => {
|
|
108
|
-
this.fireError(e);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
} catch (e) {
|
|
112
|
-
this.fireError(e);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
clearPartialMessageTimer() {
|
|
116
|
-
this.partialMessageTimer &&= (this.partialMessageTimer.dispose(), void 0);
|
|
117
|
-
}
|
|
118
|
-
setPartialMessageTimer() {
|
|
119
|
-
this.clearPartialMessageTimer(), !(this._partialMessageTimeout <= 0) && (this.partialMessageTimer = (0, a.default)().timer.setTimeout((e, t) => {
|
|
120
|
-
this.partialMessageTimer = void 0, e === this.messageToken && (this.firePartialMessage({
|
|
121
|
-
messageToken: e,
|
|
122
|
-
waitingTime: t
|
|
123
|
-
}), this.setPartialMessageTimer());
|
|
124
|
-
}, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout));
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
}));
|
|
128
|
-
export default require_messageReader();
|
|
129
|
-
export { require_messageReader };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_ral } from "./ral.js";
|
|
3
|
-
import { require_is } from "./is.js";
|
|
4
|
-
import { require_events } from "./events.js";
|
|
5
|
-
import { require_semaphore } from "./semaphore.js";
|
|
6
|
-
var require_messageWriter = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
7
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.WriteableStreamMessageWriter = e.AbstractMessageWriter = e.MessageWriter = void 0;
|
|
8
|
-
var a = require_ral(), o = require_is(), s = require_semaphore(), c = require_events(), l = "Content-Length: ", u = "\r\n", d;
|
|
9
|
-
(function(e) {
|
|
10
|
-
function r(e) {
|
|
11
|
-
let r = e;
|
|
12
|
-
return r && o.func(r.dispose) && o.func(r.onClose) && o.func(r.onError) && o.func(r.write);
|
|
13
|
-
}
|
|
14
|
-
e.is = r;
|
|
15
|
-
})(d || (e.MessageWriter = d = {}));
|
|
16
|
-
var f = class {
|
|
17
|
-
constructor() {
|
|
18
|
-
this.errorEmitter = new c.Emitter(), this.closeEmitter = new c.Emitter();
|
|
19
|
-
}
|
|
20
|
-
dispose() {
|
|
21
|
-
this.errorEmitter.dispose(), this.closeEmitter.dispose();
|
|
22
|
-
}
|
|
23
|
-
get onError() {
|
|
24
|
-
return this.errorEmitter.event;
|
|
25
|
-
}
|
|
26
|
-
fireError(e, r, i) {
|
|
27
|
-
this.errorEmitter.fire([
|
|
28
|
-
this.asError(e),
|
|
29
|
-
r,
|
|
30
|
-
i
|
|
31
|
-
]);
|
|
32
|
-
}
|
|
33
|
-
get onClose() {
|
|
34
|
-
return this.closeEmitter.event;
|
|
35
|
-
}
|
|
36
|
-
fireClose() {
|
|
37
|
-
this.closeEmitter.fire(void 0);
|
|
38
|
-
}
|
|
39
|
-
asError(e) {
|
|
40
|
-
return e instanceof Error ? e : /* @__PURE__ */ Error(`Writer received error. Reason: ${o.string(e.message) ? e.message : "unknown"}`);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
e.AbstractMessageWriter = f;
|
|
44
|
-
var p;
|
|
45
|
-
(function(e) {
|
|
46
|
-
function r(e) {
|
|
47
|
-
return e === void 0 || typeof e == "string" ? {
|
|
48
|
-
charset: e ?? "utf-8",
|
|
49
|
-
contentTypeEncoder: (0, a.default)().applicationJson.encoder
|
|
50
|
-
} : {
|
|
51
|
-
charset: e.charset ?? "utf-8",
|
|
52
|
-
contentEncoder: e.contentEncoder,
|
|
53
|
-
contentTypeEncoder: e.contentTypeEncoder ?? (0, a.default)().applicationJson.encoder
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
e.fromOptions = r;
|
|
57
|
-
})(p ||= {}), e.WriteableStreamMessageWriter = class extends f {
|
|
58
|
-
constructor(e, r) {
|
|
59
|
-
super(), this.writable = e, this.options = p.fromOptions(r), this.errorCount = 0, this.writeSemaphore = new s.Semaphore(1), this.writable.onError((e) => this.fireError(e)), this.writable.onClose(() => this.fireClose());
|
|
60
|
-
}
|
|
61
|
-
async write(e) {
|
|
62
|
-
return this.writeSemaphore.lock(async () => this.options.contentTypeEncoder.encode(e, this.options).then((e) => this.options.contentEncoder === void 0 ? e : this.options.contentEncoder.encode(e)).then((r) => {
|
|
63
|
-
let i = [];
|
|
64
|
-
return i.push(l, r.byteLength.toString(), u), i.push(u), this.doWrite(e, i, r);
|
|
65
|
-
}, (e) => {
|
|
66
|
-
throw this.fireError(e), e;
|
|
67
|
-
}));
|
|
68
|
-
}
|
|
69
|
-
async doWrite(e, r, i) {
|
|
70
|
-
try {
|
|
71
|
-
return await this.writable.write(r.join(""), "ascii"), this.writable.write(i);
|
|
72
|
-
} catch (r) {
|
|
73
|
-
return this.handleError(r, e), Promise.reject(r);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
handleError(e, r) {
|
|
77
|
-
this.errorCount++, this.fireError(e, r, this.errorCount);
|
|
78
|
-
}
|
|
79
|
-
end() {
|
|
80
|
-
this.writable.end();
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}));
|
|
84
|
-
export default require_messageWriter();
|
|
85
|
-
export { require_messageWriter };
|