@plumile/ui 0.1.112 → 0.1.114
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/lib/esm/_virtual/_rolldown/runtime.js +5 -5
- package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownLink.css.js +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7EHR7CIX.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js +37 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-LIHQZDEY.js → chunk-BR22UD5L.js} +18 -21
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +32 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +56 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20648 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +33 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-WXDBUCRP.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-BLDUP644.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js.map +1 -1
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +8 -8
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/layout.js +105 -105
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +12 -12
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +8 -8
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/index.js +12 -12
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/init-order.js +6 -6
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +7 -7
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +9 -9
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort.js +7 -7
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/bk.js +53 -53
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/index.js +5 -5
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +26 -26
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/util.js +9 -9
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/util.js +54 -54
- package/lib/esm/node_modules/dagre-d3-es/src/graphlib/graph.js +45 -45
- package/lib/esm/node_modules/dagre-d3-es/src/graphlib/json.js +18 -18
- package/lib/esm/node_modules/lodash-es/_arrayLikeKeys.js +8 -8
- package/lib/esm/node_modules/lodash-es/_baseAssign.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseClone.js +24 -24
- package/lib/esm/node_modules/lodash-es/_baseForOwn.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseGetAllKeys.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseIsEqualDeep.js +12 -12
- package/lib/esm/node_modules/lodash-es/_baseIteratee.js +4 -4
- package/lib/esm/node_modules/lodash-es/_baseMatchesProperty.js +9 -9
- package/lib/esm/node_modules/lodash-es/_baseMerge.js +6 -6
- package/lib/esm/node_modules/lodash-es/_baseMergeDeep.js +15 -15
- package/lib/esm/node_modules/lodash-es/_baseOrderBy.js +14 -14
- package/lib/esm/node_modules/lodash-es/_baseSet.js +8 -8
- package/lib/esm/node_modules/lodash-es/_baseSetToString.js +5 -5
- package/lib/esm/node_modules/lodash-es/_baseToString.js +11 -11
- package/lib/esm/node_modules/lodash-es/_baseUniq.js +7 -7
- package/lib/esm/node_modules/lodash-es/_copySymbols.js +3 -3
- package/lib/esm/node_modules/lodash-es/_createSet.js +6 -6
- package/lib/esm/node_modules/lodash-es/_equalByTag.js +18 -18
- package/lib/esm/node_modules/lodash-es/_flatRest.js +4 -4
- package/lib/esm/node_modules/lodash-es/_getAllKeys.js +3 -3
- package/lib/esm/node_modules/lodash-es/_getAllKeysIn.js +4 -4
- package/lib/esm/node_modules/lodash-es/_getSymbolsIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/_hasPath.js +5 -5
- package/lib/esm/node_modules/lodash-es/_initCloneObject.js +4 -4
- package/lib/esm/node_modules/lodash-es/_isFlattenable.js +3 -3
- package/lib/esm/node_modules/lodash-es/_isIterateeCall.js +6 -6
- package/lib/esm/node_modules/lodash-es/_mapCacheClear.js +6 -6
- package/lib/esm/node_modules/lodash-es/findIndex.js +4 -4
- package/lib/esm/node_modules/lodash-es/forEach.js +3 -3
- package/lib/esm/node_modules/lodash-es/forIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/isEmpty.js +8 -8
- package/lib/esm/node_modules/lodash-es/isPlainObject.js +4 -4
- package/lib/esm/node_modules/lodash-es/isString.js +3 -3
- package/lib/esm/node_modules/lodash-es/keys.js +4 -4
- package/lib/esm/node_modules/lodash-es/keysIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/map.js +3 -3
- package/lib/esm/node_modules/lodash-es/mapValues.js +5 -5
- package/lib/esm/node_modules/lodash-es/max.js +3 -3
- package/lib/esm/node_modules/lodash-es/min.js +3 -3
- package/lib/esm/node_modules/lodash-es/minBy.js +3 -3
- package/lib/esm/node_modules/lodash-es/reduce.js +5 -5
- package/lib/esm/node_modules/lodash-es/size.js +4 -4
- package/lib/esm/node_modules/lodash-es/sortBy.js +6 -6
- package/lib/esm/node_modules/lodash-es/union.js +6 -6
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +146 -146
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js.map +1 -1
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js +374 -374
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js.map +1 -1
- package/package.json +6 -6
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -27
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js +0 -155
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -45
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -89
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -39
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -600
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -29
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js +0 -13
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js +0 -12
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -14
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +0 -40
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -35
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1210
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -36
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/lib/esm/node_modules/chevrotain/lib/src/api.js +0 -10
- package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -14
- package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js +0 -6
- package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -17
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -53
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -81
- package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -37
- package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -279
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -27
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -32
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -18
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -269
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -8
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -45
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -245
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -34
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -60
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -118
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -50
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -170
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -47
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -111
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -25
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -316
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -291
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -147
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -96
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -15
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js +0 -439
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -13
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -257
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -157
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -19
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js +0 -68
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -43
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -365
- package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js +0 -197
- package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js +0 -35
- package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/lib/esm/node_modules/langium/lib/default-module.js +0 -89
- package/lib/esm/node_modules/langium/lib/default-module.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/dependency-injection.js +0 -62
- package/lib/esm/node_modules/langium/lib/dependency-injection.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js +0 -15
- package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js +0 -40
- package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js +0 -307
- package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/languages/generated/ast.js +0 -900
- package/lib/esm/node_modules/langium/lib/languages/generated/ast.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/languages/grammar-config.js +0 -17
- package/lib/esm/node_modules/langium/lib/languages/grammar-config.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/async-parser.js +0 -13
- package/lib/esm/node_modules/langium/lib/parser/async-parser.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js +0 -11
- package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js +0 -164
- package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js +0 -15
- package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/langium-parser.js +0 -397
- package/lib/esm/node_modules/langium/lib/parser/langium-parser.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/lexer.js +0 -54
- package/lib/esm/node_modules/langium/lib/parser/lexer.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js +0 -278
- package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/token-builder.js +0 -65
- package/lib/esm/node_modules/langium/lib/parser/token-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/value-converter.js +0 -82
- package/lib/esm/node_modules/langium/lib/parser/value-converter.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/linker.js +0 -195
- package/lib/esm/node_modules/langium/lib/references/linker.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/name-provider.js +0 -17
- package/lib/esm/node_modules/langium/lib/references/name-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/references.js +0 -80
- package/lib/esm/node_modules/langium/lib/references/references.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope-computation.js +0 -39
- package/lib/esm/node_modules/langium/lib/references/scope-computation.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope-provider.js +0 -38
- package/lib/esm/node_modules/langium/lib/references/scope-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope.js +0 -46
- package/lib/esm/node_modules/langium/lib/references/scope.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/serializer/hydrator.js +0 -129
- package/lib/esm/node_modules/langium/lib/serializer/hydrator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js +0 -149
- package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/service-registry.js +0 -41
- package/lib/esm/node_modules/langium/lib/service-registry.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/syntax-tree.js +0 -74
- package/lib/esm/node_modules/langium/lib/syntax-tree.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/ast-utils.js +0 -124
- package/lib/esm/node_modules/langium/lib/utils/ast-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/caching.js +0 -84
- package/lib/esm/node_modules/langium/lib/utils/caching.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/cancellation.js +0 -9
- package/lib/esm/node_modules/langium/lib/utils/cancellation.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/collections.js +0 -89
- package/lib/esm/node_modules/langium/lib/utils/collections.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/cst-utils.js +0 -77
- package/lib/esm/node_modules/langium/lib/utils/cst-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/disposable.js +0 -12
- package/lib/esm/node_modules/langium/lib/utils/disposable.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/errors.js +0 -13
- package/lib/esm/node_modules/langium/lib/utils/errors.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/event.js +0 -9
- package/lib/esm/node_modules/langium/lib/utils/event.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js +0 -26
- package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js +0 -221
- package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/promise-utils.js +0 -31
- package/lib/esm/node_modules/langium/lib/utils/promise-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js +0 -146
- package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/stream.js +0 -331
- package/lib/esm/node_modules/langium/lib/utils/stream.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/uri-utils.js +0 -111
- package/lib/esm/node_modules/langium/lib/utils/uri-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/validation/document-validator.js +0 -213
- package/lib/esm/node_modules/langium/lib/validation/document-validator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/validation/validation-registry.js +0 -90
- package/lib/esm/node_modules/langium/lib/validation/validation-registry.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js +0 -61
- package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js +0 -32
- package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/configuration.js +0 -55
- package/lib/esm/node_modules/langium/lib/workspace/configuration.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/document-builder.js +0 -200
- package/lib/esm/node_modules/langium/lib/workspace/document-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/documents.js +0 -146
- package/lib/esm/node_modules/langium/lib/workspace/documents.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js +0 -37
- package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/index-manager.js +0 -53
- package/lib/esm/node_modules/langium/lib/workspace/index-manager.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js +0 -46
- package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js +0 -70
- package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js.map +0 -1
- package/lib/esm/node_modules/lodash-es/flatMap.js +0 -10
- package/lib/esm/node_modules/lodash-es/flatMap.js.map +0 -1
- package/lib/esm/node_modules/lodash-es/uniqBy.js +0 -10
- package/lib/esm/node_modules/lodash-es/uniqBy.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/browser.js +0 -11
- package/lib/esm/node_modules/vscode-jsonrpc/browser.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -56
- package/lib/esm/node_modules/vscode-jsonrpc/lib/browser/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -124
- package/lib/esm/node_modules/vscode-jsonrpc/lib/browser/ril.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/api.js +0 -341
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/api.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -651
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/connection.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -17
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/disposable.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -239
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/linkedMap.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -97
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -133
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messageReader.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -89
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messageWriter.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -165
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messages.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -48
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/semaphore.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -62
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -32
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -40
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -16
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -35
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -37
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -39
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -678
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -130
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -28
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -35
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -46
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -142
- package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1088
- package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-uri/lib/esm/index.js +0 -377
- package/lib/esm/node_modules/vscode-uri/lib/esm/index.js.map +0 -1
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { stream as e } from "../utils/stream.js";
|
|
2
|
-
import { getDocument as t } from "../utils/ast-utils.js";
|
|
3
|
-
import { cancellation_exports as n } from "../utils/cancellation.js";
|
|
4
|
-
import { UriUtils as r } from "../utils/uri-utils.js";
|
|
5
|
-
import { ContextCache as i } from "../utils/caching.js";
|
|
6
|
-
//#region ../../node_modules/langium/lib/workspace/index-manager.js
|
|
7
|
-
var a = class {
|
|
8
|
-
constructor(e) {
|
|
9
|
-
this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new i(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection;
|
|
10
|
-
}
|
|
11
|
-
findAllReferences(n, i) {
|
|
12
|
-
let a = t(n).uri, o = [];
|
|
13
|
-
return this.referenceIndex.forEach((e) => {
|
|
14
|
-
e.forEach((e) => {
|
|
15
|
-
r.equals(e.targetUri, a) && e.targetPath === i && o.push(e);
|
|
16
|
-
});
|
|
17
|
-
}), e(o);
|
|
18
|
-
}
|
|
19
|
-
allElements(t, n) {
|
|
20
|
-
let r = e(this.symbolIndex.keys());
|
|
21
|
-
return n && (r = r.filter((e) => !n || n.has(e))), r.map((e) => this.getFileDescriptions(e, t)).flat();
|
|
22
|
-
}
|
|
23
|
-
getFileDescriptions(e, t) {
|
|
24
|
-
return t ? this.symbolByTypeIndex.get(e, t, () => (this.symbolIndex.get(e) ?? []).filter((e) => this.astReflection.isSubtype(e.type, t))) : this.symbolIndex.get(e) ?? [];
|
|
25
|
-
}
|
|
26
|
-
remove(e) {
|
|
27
|
-
this.removeContent(e), this.removeReferences(e);
|
|
28
|
-
}
|
|
29
|
-
removeContent(e) {
|
|
30
|
-
let t = e.toString();
|
|
31
|
-
this.symbolIndex.delete(t), this.symbolByTypeIndex.clear(t);
|
|
32
|
-
}
|
|
33
|
-
removeReferences(e) {
|
|
34
|
-
let t = e.toString();
|
|
35
|
-
this.referenceIndex.delete(t);
|
|
36
|
-
}
|
|
37
|
-
async updateContent(e, t = n.CancellationToken.None) {
|
|
38
|
-
let r = await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e, t), i = e.uri.toString();
|
|
39
|
-
this.symbolIndex.set(i, r), this.symbolByTypeIndex.clear(i);
|
|
40
|
-
}
|
|
41
|
-
async updateReferences(e, t = n.CancellationToken.None) {
|
|
42
|
-
let r = await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e, t);
|
|
43
|
-
this.referenceIndex.set(e.uri.toString(), r);
|
|
44
|
-
}
|
|
45
|
-
isAffected(e, t) {
|
|
46
|
-
let n = this.referenceIndex.get(e.uri.toString());
|
|
47
|
-
return n ? n.some((e) => !e.local && t.has(e.targetUri.toString())) : !1;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
//#endregion
|
|
51
|
-
export { a as DefaultIndexManager };
|
|
52
|
-
|
|
53
|
-
//# sourceMappingURL=index-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-manager.js","names":["CancellationToken"],"sources":["../../../../../../../../node_modules/langium/lib/workspace/index-manager.js"],"sourcesContent":["/******************************************************************************\n * Copyright 2021 TypeFox GmbH\n * This program and the accompanying materials are made available under the\n * terms of the MIT License, which is available in the project root.\n ******************************************************************************/\nimport { getDocument } from '../utils/ast-utils.js';\nimport { ContextCache } from '../utils/caching.js';\nimport { CancellationToken } from '../utils/cancellation.js';\nimport { stream } from '../utils/stream.js';\nimport { UriUtils } from '../utils/uri-utils.js';\nexport class DefaultIndexManager {\n constructor(services) {\n /**\n * The symbol index stores all `AstNodeDescription` items exported by a document.\n * The key used in this map is the string representation of the specific document URI.\n */\n this.symbolIndex = new Map();\n /**\n * This is a cache for the `allElements()` method.\n * It caches the descriptions from `symbolIndex` grouped by types.\n */\n this.symbolByTypeIndex = new ContextCache();\n /**\n * This index keeps track of all `ReferenceDescription` items exported by a document.\n * This is used to compute which elements are affected by a document change\n * and for finding references to an AST node.\n */\n this.referenceIndex = new Map();\n this.documents = services.workspace.LangiumDocuments;\n this.serviceRegistry = services.ServiceRegistry;\n this.astReflection = services.AstReflection;\n }\n findAllReferences(targetNode, astNodePath) {\n const targetDocUri = getDocument(targetNode).uri;\n const result = [];\n this.referenceIndex.forEach(docRefs => {\n docRefs.forEach(refDescr => {\n if (UriUtils.equals(refDescr.targetUri, targetDocUri) && refDescr.targetPath === astNodePath) {\n result.push(refDescr);\n }\n });\n });\n return stream(result);\n }\n allElements(nodeType, uris) {\n let documentUris = stream(this.symbolIndex.keys());\n if (uris) {\n documentUris = documentUris.filter(uri => !uris || uris.has(uri));\n }\n return documentUris\n .map(uri => this.getFileDescriptions(uri, nodeType))\n .flat();\n }\n getFileDescriptions(uri, nodeType) {\n if (!nodeType) {\n return this.symbolIndex.get(uri) ?? [];\n }\n const descriptions = this.symbolByTypeIndex.get(uri, nodeType, () => {\n const allFileDescriptions = this.symbolIndex.get(uri) ?? [];\n return allFileDescriptions.filter(e => this.astReflection.isSubtype(e.type, nodeType));\n });\n return descriptions;\n }\n remove(uri) {\n this.removeContent(uri);\n this.removeReferences(uri);\n }\n removeContent(uri) {\n const uriString = uri.toString();\n this.symbolIndex.delete(uriString);\n this.symbolByTypeIndex.clear(uriString);\n }\n removeReferences(uri) {\n const uriString = uri.toString();\n this.referenceIndex.delete(uriString);\n }\n async updateContent(document, cancelToken = CancellationToken.None) {\n const services = this.serviceRegistry.getServices(document.uri);\n const exports = await services.references.ScopeComputation.collectExportedSymbols(document, cancelToken);\n const uri = document.uri.toString();\n this.symbolIndex.set(uri, exports);\n this.symbolByTypeIndex.clear(uri);\n }\n async updateReferences(document, cancelToken = CancellationToken.None) {\n const services = this.serviceRegistry.getServices(document.uri);\n const indexData = await services.workspace.ReferenceDescriptionProvider.createDescriptions(document, cancelToken);\n this.referenceIndex.set(document.uri.toString(), indexData);\n }\n isAffected(document, changedUris) {\n const references = this.referenceIndex.get(document.uri.toString());\n if (!references) {\n return false;\n }\n return references.some(ref => !ref.local && changedUris.has(ref.targetUri.toString()));\n }\n}\n//# sourceMappingURL=index-manager.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AAUA,IAAa,IAAb,MAAiC;CAC7B,YAAY,GAAU;EAmBlB,AAdA,KAAK,8BAAc,IAAI,KAAK,EAK5B,KAAK,oBAAoB,IAAI,GAAc,EAM3C,KAAK,iCAAiB,IAAI,KAAK,EAC/B,KAAK,YAAY,EAAS,UAAU,kBACpC,KAAK,kBAAkB,EAAS,iBAChC,KAAK,gBAAgB,EAAS;;CAElC,kBAAkB,GAAY,GAAa;EACvC,IAAM,IAAe,EAAY,EAAW,CAAC,KACvC,IAAS,EAAE;EAQjB,OAPA,KAAK,eAAe,SAAQ,MAAW;GACnC,EAAQ,SAAQ,MAAY;IACxB,AAAI,EAAS,OAAO,EAAS,WAAW,EAAa,IAAI,EAAS,eAAe,KAC7E,EAAO,KAAK,EAAS;KAE3B;IACJ,EACK,EAAO,EAAO;;CAEzB,YAAY,GAAU,GAAM;EACxB,IAAI,IAAe,EAAO,KAAK,YAAY,MAAM,CAAC;EAIlD,OAHI,MACA,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EAAI,SAAS,EAAY,IAAI,EAAI,UAAU,UAAU,CAAC,CAAC,GAF3E"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { cancellation_exports as e } from "../utils/cancellation.js";
|
|
2
|
-
import { Deferred as t, isOperationCancelled as n, startCancelableOperation as r } from "../utils/promise-utils.js";
|
|
3
|
-
//#region ../../node_modules/langium/lib/workspace/workspace-lock.js
|
|
4
|
-
var i = class {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.previousTokenSource = new e.CancellationTokenSource(), this.writeQueue = [], this.readQueue = [], this.done = !0;
|
|
7
|
-
}
|
|
8
|
-
write(e) {
|
|
9
|
-
this.cancelWrite();
|
|
10
|
-
let t = r();
|
|
11
|
-
return this.previousTokenSource = t, this.enqueue(this.writeQueue, e, t.token);
|
|
12
|
-
}
|
|
13
|
-
read(e) {
|
|
14
|
-
return this.enqueue(this.readQueue, e);
|
|
15
|
-
}
|
|
16
|
-
enqueue(n, r, i = e.CancellationToken.None) {
|
|
17
|
-
let a = new t(), o = {
|
|
18
|
-
action: r,
|
|
19
|
-
deferred: a,
|
|
20
|
-
cancellationToken: i
|
|
21
|
-
};
|
|
22
|
-
return n.push(o), this.performNextOperation(), a.promise;
|
|
23
|
-
}
|
|
24
|
-
async performNextOperation() {
|
|
25
|
-
if (!this.done) return;
|
|
26
|
-
let e = [];
|
|
27
|
-
if (this.writeQueue.length > 0) e.push(this.writeQueue.shift());
|
|
28
|
-
else if (this.readQueue.length > 0) e.push(...this.readQueue.splice(0, this.readQueue.length));
|
|
29
|
-
else return;
|
|
30
|
-
this.done = !1, await Promise.all(e.map(async ({ action: e, deferred: t, cancellationToken: r }) => {
|
|
31
|
-
try {
|
|
32
|
-
let n = await Promise.resolve().then(() => e(r));
|
|
33
|
-
t.resolve(n);
|
|
34
|
-
} catch (e) {
|
|
35
|
-
n(e) ? t.resolve(void 0) : t.reject(e);
|
|
36
|
-
}
|
|
37
|
-
})), this.done = !0, this.performNextOperation();
|
|
38
|
-
}
|
|
39
|
-
cancelWrite() {
|
|
40
|
-
this.previousTokenSource.cancel();
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
//#endregion
|
|
44
|
-
export { i as DefaultWorkspaceLock };
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=workspace-lock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-lock.js","names":["CancellationTokenSource","CancellationToken"],"sources":["../../../../../../../../node_modules/langium/lib/workspace/workspace-lock.js"],"sourcesContent":["/******************************************************************************\n * Copyright 2023 TypeFox GmbH\n * This program and the accompanying materials are made available under the\n * terms of the MIT License, which is available in the project root.\n ******************************************************************************/\nimport { CancellationToken, CancellationTokenSource } from '../utils/cancellation.js';\nimport { Deferred, isOperationCancelled, startCancelableOperation } from '../utils/promise-utils.js';\nexport class DefaultWorkspaceLock {\n constructor() {\n this.previousTokenSource = new CancellationTokenSource();\n this.writeQueue = [];\n this.readQueue = [];\n this.done = true;\n }\n write(action) {\n this.cancelWrite();\n const tokenSource = startCancelableOperation();\n this.previousTokenSource = tokenSource;\n return this.enqueue(this.writeQueue, action, tokenSource.token);\n }\n read(action) {\n return this.enqueue(this.readQueue, action);\n }\n enqueue(queue, action, cancellationToken = CancellationToken.None) {\n const deferred = new Deferred();\n const entry = {\n action,\n deferred,\n cancellationToken\n };\n queue.push(entry);\n this.performNextOperation();\n return deferred.promise;\n }\n async performNextOperation() {\n if (!this.done) {\n return;\n }\n const entries = [];\n if (this.writeQueue.length > 0) {\n // Just perform the next write action\n entries.push(this.writeQueue.shift());\n }\n else if (this.readQueue.length > 0) {\n // Empty the read queue and perform all actions in parallel\n entries.push(...this.readQueue.splice(0, this.readQueue.length));\n }\n else {\n return;\n }\n this.done = false;\n await Promise.all(entries.map(async ({ action, deferred, cancellationToken }) => {\n try {\n // Move the execution of the action to the next event loop tick via `Promise.resolve()`\n const result = await Promise.resolve().then(() => action(cancellationToken));\n deferred.resolve(result);\n }\n catch (err) {\n if (isOperationCancelled(err)) {\n // If the operation was cancelled, we don't want to reject the promise\n deferred.resolve(undefined);\n }\n else {\n deferred.reject(err);\n }\n }\n }));\n this.done = true;\n this.performNextOperation();\n }\n cancelWrite() {\n this.previousTokenSource.cancel();\n }\n}\n//# sourceMappingURL=workspace-lock.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAOA,IAAa,IAAb,MAAkC;CAC9B,cAAc;EAIV,AAHA,KAAK,sBAAsB,IAAIA,EAAAA,yBAAyB,EACxD,KAAK,aAAa,EAAE,EACpB,KAAK,YAAY,EAAE,EACnB,KAAK,OAAO;;CAEhB,MAAM,GAAQ;EACV,KAAK,aAAa;EAClB,IAAM,IAAc,GAA0B;EAE9C,OADA,KAAK,sBAAsB,GACpB,KAAK,QAAQ,KAAK,YAAY,GAAQ,EAAY,MAAM;;CAEnE,KAAK,GAAQ;EACT,OAAO,KAAK,QAAQ,KAAK,WAAW,EAAO;;CAE/C,QAAQ,GAAO,GAAQ,IAAoBC,EAAAA,kBAAkB,MAAM;EAC/D,IAAM,IAAW,IAAI,GAAU,EACzB,IAAQ;GACV;GACA;GACA;GACH;EAGD,OAFA,EAAM,KAAK,EAAM,EACjB,KAAK,sBAAsB,EACpB,EAAS;;CAEpB,MAAM,uBAAuB;EACzB,IAAI,CAAC,KAAK,MACN;EAEJ,IAAM,IAAU,EAAE;EAClB,IAAI,KAAK,WAAW,SAAS,GAEzB,EAAQ,KAAK,KAAK,WAAW,OAAO,CAAC;OAEpC,IAAI,KAAK,UAAU,SAAS,GAE7B,EAAQ,KAAK,GAAG,KAAK,UAAU,OAAO,GAAG,KAAK,UAAU,OAAO,CAAC;OAGhE;EAoBJ,AAlBA,KAAK,OAAO,IACZ,MAAM,QAAQ,IAAI,EAAQ,IAAI,OAAO,EAAE,WAAQ,aAAU,2BAAwB;GAC7E,IAAI;IAEA,IAAM,IAAS,MAAM,QAAQ,SAAS,CAAC,WAAW,EAAO,EAAkB,CAAC;IAC5E,EAAS,QAAQ,EAAO;YAErB,GAAK;IACR,AAAI,EAAqB,EAAI,GAEzB,EAAS,QAAQ,KAAA,EAAU,GAG3B,EAAS,OAAO,EAAI;;IAG9B,CAAC,EACH,KAAK,OAAO,IACZ,KAAK,sBAAsB;;CAE/B,cAAc;EACV,KAAK,oBAAoB,QAAQ"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { stream as e } from "../utils/stream.js";
|
|
2
|
-
import { cancellation_exports as t } from "../utils/cancellation.js";
|
|
3
|
-
import { Deferred as n, interruptAndCheck as r } from "../utils/promise-utils.js";
|
|
4
|
-
import { URI as i } from "../../../vscode-uri/lib/esm/index.js";
|
|
5
|
-
import { UriUtils as a } from "../utils/uri-utils.js";
|
|
6
|
-
//#region ../../node_modules/langium/lib/workspace/workspace-manager.js
|
|
7
|
-
var o = class {
|
|
8
|
-
constructor(e) {
|
|
9
|
-
this.initialBuildOptions = {}, this._ready = new n(), this.serviceRegistry = e.ServiceRegistry, this.langiumDocuments = e.workspace.LangiumDocuments, this.documentBuilder = e.workspace.DocumentBuilder, this.fileSystemProvider = e.workspace.FileSystemProvider, this.mutex = e.workspace.WorkspaceLock;
|
|
10
|
-
}
|
|
11
|
-
get ready() {
|
|
12
|
-
return this._ready.promise;
|
|
13
|
-
}
|
|
14
|
-
get workspaceFolders() {
|
|
15
|
-
return this.folders;
|
|
16
|
-
}
|
|
17
|
-
initialize(e) {
|
|
18
|
-
this.folders = e.workspaceFolders ?? void 0;
|
|
19
|
-
}
|
|
20
|
-
initialized(e) {
|
|
21
|
-
return this.mutex.write((e) => this.initializeWorkspace(this.folders ?? [], e));
|
|
22
|
-
}
|
|
23
|
-
async initializeWorkspace(e, n = t.CancellationToken.None) {
|
|
24
|
-
let i = await this.performStartup(e);
|
|
25
|
-
await r(n), await this.documentBuilder.build(i, this.initialBuildOptions, n);
|
|
26
|
-
}
|
|
27
|
-
async performStartup(t) {
|
|
28
|
-
let n = [], r = (e) => {
|
|
29
|
-
n.push(e), this.langiumDocuments.hasDocument(e.uri) || this.langiumDocuments.addDocument(e);
|
|
30
|
-
};
|
|
31
|
-
await this.loadAdditionalDocuments(t, r);
|
|
32
|
-
let i = [];
|
|
33
|
-
await Promise.all(t.map((e) => this.getRootFolder(e)).map(async (e) => this.traverseFolder(e, i)));
|
|
34
|
-
let a = e(i).distinct((e) => e.toString()).filter((e) => !this.langiumDocuments.hasDocument(e));
|
|
35
|
-
return await this.loadWorkspaceDocuments(a, r), this._ready.resolve(), n;
|
|
36
|
-
}
|
|
37
|
-
async loadWorkspaceDocuments(e, t) {
|
|
38
|
-
await Promise.all(e.map(async (e) => {
|
|
39
|
-
t(await this.langiumDocuments.getOrCreateDocument(e));
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
loadAdditionalDocuments(e, t) {
|
|
43
|
-
return Promise.resolve();
|
|
44
|
-
}
|
|
45
|
-
getRootFolder(e) {
|
|
46
|
-
return i.parse(e.uri);
|
|
47
|
-
}
|
|
48
|
-
async traverseFolder(e, t) {
|
|
49
|
-
try {
|
|
50
|
-
let n = await this.fileSystemProvider.readDirectory(e);
|
|
51
|
-
await Promise.all(n.map(async (e) => {
|
|
52
|
-
this.shouldIncludeEntry(e) && (e.isDirectory ? await this.traverseFolder(e.uri, t) : e.isFile && t.push(e.uri));
|
|
53
|
-
}));
|
|
54
|
-
} catch (t) {
|
|
55
|
-
console.error("Failure to read directory content of " + e.toString(!0), t);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
async searchFolder(e) {
|
|
59
|
-
let t = [];
|
|
60
|
-
return await this.traverseFolder(e, t), t;
|
|
61
|
-
}
|
|
62
|
-
shouldIncludeEntry(e) {
|
|
63
|
-
let t = a.basename(e.uri);
|
|
64
|
-
return t.startsWith(".") ? !1 : e.isDirectory ? t !== "node_modules" && t !== "out" : e.isFile ? this.serviceRegistry.hasServices(e.uri) : !1;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
//#endregion
|
|
68
|
-
export { o as DefaultWorkspaceManager };
|
|
69
|
-
|
|
70
|
-
//# sourceMappingURL=workspace-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-manager.js","names":["CancellationToken"],"sources":["../../../../../../../../node_modules/langium/lib/workspace/workspace-manager.js"],"sourcesContent":["/******************************************************************************\n * Copyright 2022 TypeFox GmbH\n * This program and the accompanying materials are made available under the\n * terms of the MIT License, which is available in the project root.\n ******************************************************************************/\nimport { CancellationToken } from '../utils/cancellation.js';\nimport { Deferred, interruptAndCheck } from '../utils/promise-utils.js';\nimport { URI, UriUtils } from '../utils/uri-utils.js';\nimport { stream } from '../utils/stream.js';\nexport class DefaultWorkspaceManager {\n constructor(services) {\n this.initialBuildOptions = {};\n this._ready = new Deferred();\n this.serviceRegistry = services.ServiceRegistry;\n this.langiumDocuments = services.workspace.LangiumDocuments;\n this.documentBuilder = services.workspace.DocumentBuilder;\n this.fileSystemProvider = services.workspace.FileSystemProvider;\n this.mutex = services.workspace.WorkspaceLock;\n }\n get ready() {\n return this._ready.promise;\n }\n get workspaceFolders() {\n return this.folders;\n }\n initialize(params) {\n this.folders = params.workspaceFolders ?? undefined;\n }\n initialized(_params) {\n // Initialize the workspace even if there are no workspace folders\n // We still want to load additional documents (language library or similar) during initialization\n return this.mutex.write(token => this.initializeWorkspace(this.folders ?? [], token));\n }\n async initializeWorkspace(folders, cancelToken = CancellationToken.None) {\n const documents = await this.performStartup(folders);\n // Only after creating all documents do we check whether we need to cancel the initialization\n // The document builder will later pick up on all unprocessed documents\n await interruptAndCheck(cancelToken);\n await this.documentBuilder.build(documents, this.initialBuildOptions, cancelToken);\n }\n /**\n * Performs the uninterruptable startup sequence of the workspace manager.\n * This methods loads all documents in the workspace and other documents and returns them.\n */\n async performStartup(folders) {\n const documents = [];\n const collector = (document) => {\n documents.push(document);\n if (!this.langiumDocuments.hasDocument(document.uri)) {\n this.langiumDocuments.addDocument(document);\n }\n };\n // Even though we don't await the initialization of the workspace manager,\n // we can still assume that all library documents and file documents are loaded by the time we start building documents.\n // The mutex prevents anything from performing a workspace build until we check the cancellation token\n await this.loadAdditionalDocuments(folders, collector);\n const uris = [];\n await Promise.all(folders.map(wf => this.getRootFolder(wf))\n .map(async (entry) => this.traverseFolder(entry, uris)));\n const uniqueUris = stream(uris)\n // Ensure that we only create one document per URI/file\n .distinct(uri => uri.toString())\n // Also ensure that the documents don't already exist\n .filter(uri => !this.langiumDocuments.hasDocument(uri));\n await this.loadWorkspaceDocuments(uniqueUris, collector);\n this._ready.resolve();\n return documents;\n }\n async loadWorkspaceDocuments(uris, collector) {\n await Promise.all(uris.map(async (uri) => {\n const document = await this.langiumDocuments.getOrCreateDocument(uri);\n collector(document);\n }));\n }\n /**\n * Load all additional documents that shall be visible in the context of the given workspace\n * folders and add them to the collector. This can be used to include built-in libraries of\n * your language, which can be either loaded from provided files or constructed in memory.\n */\n loadAdditionalDocuments(_folders, _collector) {\n return Promise.resolve();\n }\n /**\n * Determine the root folder of the source documents in the given workspace folder.\n * The default implementation returns the URI of the workspace folder, but you can override\n * this to return a subfolder like `src` instead.\n */\n getRootFolder(workspaceFolder) {\n return URI.parse(workspaceFolder.uri);\n }\n /**\n * Traverse the file system folder identified by the given URI and its subfolders. All\n * contained files that match the file extensions are added to the `uris` array.\n */\n async traverseFolder(folderPath, uris) {\n try {\n const content = await this.fileSystemProvider.readDirectory(folderPath);\n await Promise.all(content.map(async (entry) => {\n if (this.shouldIncludeEntry(entry)) {\n if (entry.isDirectory) {\n await this.traverseFolder(entry.uri, uris);\n }\n else if (entry.isFile) {\n uris.push(entry.uri);\n }\n }\n }));\n }\n catch (e) {\n console.error('Failure to read directory content of ' + folderPath.toString(true), e);\n }\n }\n async searchFolder(uri) {\n const uris = [];\n await this.traverseFolder(uri, uris);\n return uris;\n }\n /**\n * Determine whether the given folder entry shall be included while indexing the workspace.\n */\n shouldIncludeEntry(entry) {\n const name = UriUtils.basename(entry.uri);\n if (name.startsWith('.')) {\n return false;\n }\n if (entry.isDirectory) {\n return name !== 'node_modules' && name !== 'out';\n }\n else if (entry.isFile) {\n return this.serviceRegistry.hasServices(entry.uri);\n }\n return false;\n }\n}\n//# sourceMappingURL=workspace-manager.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AASA,IAAa,IAAb,MAAqC;CACjC,YAAY,GAAU;EAOlB,AANA,KAAK,sBAAsB,EAAE,EAC7B,KAAK,SAAS,IAAI,GAAU,EAC5B,KAAK,kBAAkB,EAAS,iBAChC,KAAK,mBAAmB,EAAS,UAAU,kBAC3C,KAAK,kBAAkB,EAAS,UAAU,iBAC1C,KAAK,qBAAqB,EAAS,UAAU,oBAC7C,KAAK,QAAQ,EAAS,UAAU;;CAEpC,IAAI,QAAQ;EACR,OAAO,KAAK,OAAO;;CAEvB,IAAI,mBAAmB;EACnB,OAAO,KAAK;;CAEhB,WAAW,GAAQ;EACf,KAAK,UAAU,EAAO,oBAAoB,KAAA;;CAE9C,YAAY,GAAS;EAGjB,OAAO,KAAK,MAAM,OAAM,MAAS,KAAK,oBAAoB,KAAK,WAAW,EAAE,EAAE,EAAM,CAAC;;CAEzF,MAAM,oBAAoB,GAAS,IAAcA,EAAAA,kBAAkB,MAAM;EACrE,IAAM,IAAY,MAAM,KAAK,eAAe,EAAQ;EAIpD,AADA,MAAM,EAAkB,EAAY,EACpC,MAAM,KAAK,gBAAgB,MAAM,GAAW,KAAK,qBAAqB,EAAY;;CAMtF,MAAM,eAAe,GAAS;EAC1B,IAAM,IAAY,EAAE,EACd,KAAa,MAAa;GAE5B,AADA,EAAU,KAAK,EAAS,EACnB,KAAK,iBAAiB,YAAY,EAAS,IAAI,IAChD,KAAK,iBAAiB,YAAY,EAAS;;EAMnD,MAAM,KAAK,wBAAwB,GAAS,EAAU;EACtD,IAAM,IAAO,EAAE;EACf,MAAM,QAAQ,IAAI,EAAQ,KAAI,MAAM,KAAK,cAAc,EAAG,CAAC,CACtD,IAAI,OAAO,MAAU,KAAK,eAAe,GAAO,EAAK,CAAC,CAAC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latten from './_baseFlatten.js';\nimport map from './map.js';\n\n/**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\nfunction flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n}\n\nexport default flatMap;\n"],"x_google_ignoreList":[0],"mappings":";;;AAwBA,SAAS,EAAQ,GAAY,GAAU;CACrC,OAAO,EAAY,EAAI,GAAY,EAAS,EAAE,EAAE"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import e from "./_baseIteratee.js";
|
|
2
|
-
import t from "./_baseUniq.js";
|
|
3
|
-
//#region ../../node_modules/lodash-es/uniqBy.js
|
|
4
|
-
function n(n, r) {
|
|
5
|
-
return n && n.length ? t(n, e(r, 2)) : [];
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { n as default };
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=uniqBy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uniqBy.js","names":[],"sources":["../../../../../../node_modules/lodash-es/uniqBy.js"],"sourcesContent":["import baseIteratee from './_baseIteratee.js';\nimport baseUniq from './_baseUniq.js';\n\n/**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\nfunction uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];\n}\n\nexport default uniqBy;\n"],"x_google_ignoreList":[0],"mappings":";;;AA0BA,SAAS,EAAO,GAAO,GAAU;CAC/B,OAAQ,KAAS,EAAM,SAAU,EAAS,GAAO,EAAa,GAAU,EAAE,CAAC,GAAG,EAAE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_main as t } from "./lib/browser/main.js";
|
|
3
|
-
//#region ../../node_modules/vscode-jsonrpc/browser.js
|
|
4
|
-
var n = /* @__PURE__ */ e(((e, n) => {
|
|
5
|
-
n.exports = t();
|
|
6
|
-
}));
|
|
7
|
-
//#endregion
|
|
8
|
-
export default n();
|
|
9
|
-
export { n as require_browser };
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=browser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","names":[],"sources":["../../../../../../node_modules/vscode-jsonrpc/browser.js"],"sourcesContent":["/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ----------------------------------------------------------------------------------------- */\n'use strict';\n\nmodule.exports = require('./lib/browser/main');"],"x_google_ignoreList":[0],"mappings":";;;;CAMA,EAAO,UAAA,GAAA"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_api as t } from "../common/api.js";
|
|
3
|
-
import { require_ril as n } from "./ril.js";
|
|
4
|
-
//#region ../../node_modules/vscode-jsonrpc/lib/browser/main.js
|
|
5
|
-
var r = /* @__PURE__ */ e(((e) => {
|
|
6
|
-
var r = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
7
|
-
r === void 0 && (r = n);
|
|
8
|
-
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
9
|
-
(!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: function() {
|
|
12
|
-
return t[n];
|
|
13
|
-
}
|
|
14
|
-
}), Object.defineProperty(e, r, i);
|
|
15
|
-
}) : (function(e, t, n, r) {
|
|
16
|
-
r === void 0 && (r = n), e[r] = t[n];
|
|
17
|
-
})), i = e && e.__exportStar || function(e, t) {
|
|
18
|
-
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && r(t, e, n);
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.createMessageConnection = e.BrowserMessageWriter = e.BrowserMessageReader = void 0, n().default.install();
|
|
21
|
-
var a = t();
|
|
22
|
-
i(t(), e), e.BrowserMessageReader = class extends a.AbstractMessageReader {
|
|
23
|
-
constructor(e) {
|
|
24
|
-
super(), this._onData = new a.Emitter(), this._messageListener = (e) => {
|
|
25
|
-
this._onData.fire(e.data);
|
|
26
|
-
}, e.addEventListener("error", (e) => this.fireError(e)), e.onmessage = this._messageListener;
|
|
27
|
-
}
|
|
28
|
-
listen(e) {
|
|
29
|
-
return this._onData.event(e);
|
|
30
|
-
}
|
|
31
|
-
}, e.BrowserMessageWriter = class extends a.AbstractMessageWriter {
|
|
32
|
-
constructor(e) {
|
|
33
|
-
super(), this.port = e, this.errorCount = 0, e.addEventListener("error", (e) => this.fireError(e));
|
|
34
|
-
}
|
|
35
|
-
write(e) {
|
|
36
|
-
try {
|
|
37
|
-
return this.port.postMessage(e), Promise.resolve();
|
|
38
|
-
} catch (t) {
|
|
39
|
-
return this.handleError(t, e), Promise.reject(t);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
handleError(e, t) {
|
|
43
|
-
this.errorCount++, this.fireError(e, t, this.errorCount);
|
|
44
|
-
}
|
|
45
|
-
end() {}
|
|
46
|
-
};
|
|
47
|
-
function o(e, t, n, r) {
|
|
48
|
-
return n === void 0 && (n = a.NullLogger), a.ConnectionStrategy.is(r) && (r = { connectionStrategy: r }), (0, a.createMessageConnection)(e, t, n, r);
|
|
49
|
-
}
|
|
50
|
-
e.createMessageConnection = o;
|
|
51
|
-
}));
|
|
52
|
-
//#endregion
|
|
53
|
-
export default r();
|
|
54
|
-
export { r as require_main };
|
|
55
|
-
|
|
56
|
-
//# sourceMappingURL=main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","names":["exports"],"sources":["../../../../../../../../node_modules/vscode-jsonrpc/lib/browser/main.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createMessageConnection = exports.BrowserMessageWriter = exports.BrowserMessageReader = void 0;\nconst ril_1 = require(\"./ril\");\n// Install the browser runtime abstract.\nril_1.default.install();\nconst api_1 = require(\"../common/api\");\n__exportStar(require(\"../common/api\"), exports);\nclass BrowserMessageReader extends api_1.AbstractMessageReader {\n constructor(port) {\n super();\n this._onData = new api_1.Emitter();\n this._messageListener = (event) => {\n this._onData.fire(event.data);\n };\n port.addEventListener('error', (event) => this.fireError(event));\n port.onmessage = this._messageListener;\n }\n listen(callback) {\n return this._onData.event(callback);\n }\n}\nexports.BrowserMessageReader = BrowserMessageReader;\nclass BrowserMessageWriter extends api_1.AbstractMessageWriter {\n constructor(port) {\n super();\n this.port = port;\n this.errorCount = 0;\n port.addEventListener('error', (event) => this.fireError(event));\n }\n write(msg) {\n try {\n this.port.postMessage(msg);\n return Promise.resolve();\n }\n catch (error) {\n this.handleError(error, msg);\n return Promise.reject(error);\n }\n }\n handleError(error, msg) {\n this.errorCount++;\n this.fireError(error, msg, this.errorCount);\n }\n end() {\n }\n}\nexports.BrowserMessageWriter = BrowserMessageWriter;\nfunction createMessageConnection(reader, writer, logger, options) {\n if (logger === undefined) {\n logger = api_1.NullLogger;\n }\n if (api_1.ConnectionStrategy.is(options)) {\n options = { connectionStrategy: options };\n }\n return (0, api_1.createMessageConnection)(reader, writer, logger, options);\n}\nexports.createMessageConnection = createMessageConnection;\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAKA,IAAI,IAAA,KAAA,EAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,GAAI;EAC5F,AAAI,MAAO,KAAA,MAAW,IAAK;EAC3B,IAAI,IAAO,OAAO,yBAAyB,GAAG,EAAE;EAIhD,CAHI,CAAC,MAAS,SAAS,IAAO,CAAC,EAAE,aAAa,EAAK,YAAY,EAAK,mBAClE,IAAO;GAAE,YAAY;GAAM,KAAK,WAAW;IAAE,OAAO,EAAE;;GAAO,GAE/D,OAAO,eAAe,GAAG,GAAI,EAAK;OAChC,SAAS,GAAG,GAAG,GAAG,GAAI;EAExB,AADI,MAAO,KAAA,MAAW,IAAK,IAC3B,EAAE,KAAM,EAAE;MAEV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AEf,EAAM,mBAAmB,GAAG,EAAQ,KACpC,IAAU,EAAE,oBAAoB,GAAS,IAErC,GAAG,EAAM,yBAAyB,GAAQ,GAAQ,GAAQ,EAAQ;;CAE9E,EAAQ,0BAA0B"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_api as t } from "../common/api.js";
|
|
3
|
-
//#region ../../node_modules/vscode-jsonrpc/lib/browser/ril.js
|
|
4
|
-
var n = /* @__PURE__ */ e(((e) => {
|
|
5
|
-
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
6
|
-
var n = t(), r = class e extends n.AbstractMessageBuffer {
|
|
7
|
-
constructor(e = "utf-8") {
|
|
8
|
-
super(e), this.asciiDecoder = new TextDecoder("ascii");
|
|
9
|
-
}
|
|
10
|
-
emptyBuffer() {
|
|
11
|
-
return e.emptyBuffer;
|
|
12
|
-
}
|
|
13
|
-
fromString(e, t) {
|
|
14
|
-
return new TextEncoder().encode(e);
|
|
15
|
-
}
|
|
16
|
-
toString(e, t) {
|
|
17
|
-
return t === "ascii" ? this.asciiDecoder.decode(e) : new TextDecoder(t).decode(e);
|
|
18
|
-
}
|
|
19
|
-
asNative(e, t) {
|
|
20
|
-
return t === void 0 ? e : e.slice(0, t);
|
|
21
|
-
}
|
|
22
|
-
allocNative(e) {
|
|
23
|
-
return new Uint8Array(e);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
r.emptyBuffer = new Uint8Array();
|
|
27
|
-
var i = class {
|
|
28
|
-
constructor(e) {
|
|
29
|
-
this.socket = e, this._onData = new n.Emitter(), this._messageListener = (e) => {
|
|
30
|
-
e.data.arrayBuffer().then((e) => {
|
|
31
|
-
this._onData.fire(new Uint8Array(e));
|
|
32
|
-
}, () => {
|
|
33
|
-
(0, n.RAL)().console.error("Converting blob to array buffer failed.");
|
|
34
|
-
});
|
|
35
|
-
}, this.socket.addEventListener("message", this._messageListener);
|
|
36
|
-
}
|
|
37
|
-
onClose(e) {
|
|
38
|
-
return this.socket.addEventListener("close", e), n.Disposable.create(() => this.socket.removeEventListener("close", e));
|
|
39
|
-
}
|
|
40
|
-
onError(e) {
|
|
41
|
-
return this.socket.addEventListener("error", e), n.Disposable.create(() => this.socket.removeEventListener("error", e));
|
|
42
|
-
}
|
|
43
|
-
onEnd(e) {
|
|
44
|
-
return this.socket.addEventListener("end", e), n.Disposable.create(() => this.socket.removeEventListener("end", e));
|
|
45
|
-
}
|
|
46
|
-
onData(e) {
|
|
47
|
-
return this._onData.event(e);
|
|
48
|
-
}
|
|
49
|
-
}, a = class {
|
|
50
|
-
constructor(e) {
|
|
51
|
-
this.socket = e;
|
|
52
|
-
}
|
|
53
|
-
onClose(e) {
|
|
54
|
-
return this.socket.addEventListener("close", e), n.Disposable.create(() => this.socket.removeEventListener("close", e));
|
|
55
|
-
}
|
|
56
|
-
onError(e) {
|
|
57
|
-
return this.socket.addEventListener("error", e), n.Disposable.create(() => this.socket.removeEventListener("error", e));
|
|
58
|
-
}
|
|
59
|
-
onEnd(e) {
|
|
60
|
-
return this.socket.addEventListener("end", e), n.Disposable.create(() => this.socket.removeEventListener("end", e));
|
|
61
|
-
}
|
|
62
|
-
write(e, t) {
|
|
63
|
-
if (typeof e == "string") {
|
|
64
|
-
if (t !== void 0 && t !== "utf-8") throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);
|
|
65
|
-
this.socket.send(e);
|
|
66
|
-
} else this.socket.send(e);
|
|
67
|
-
return Promise.resolve();
|
|
68
|
-
}
|
|
69
|
-
end() {
|
|
70
|
-
this.socket.close();
|
|
71
|
-
}
|
|
72
|
-
}, o = new TextEncoder(), s = Object.freeze({
|
|
73
|
-
messageBuffer: Object.freeze({ create: (e) => new r(e) }),
|
|
74
|
-
applicationJson: Object.freeze({
|
|
75
|
-
encoder: Object.freeze({
|
|
76
|
-
name: "application/json",
|
|
77
|
-
encode: (e, t) => {
|
|
78
|
-
if (t.charset !== "utf-8") throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);
|
|
79
|
-
return Promise.resolve(o.encode(JSON.stringify(e, void 0, 0)));
|
|
80
|
-
}
|
|
81
|
-
}),
|
|
82
|
-
decoder: Object.freeze({
|
|
83
|
-
name: "application/json",
|
|
84
|
-
decode: (e, t) => {
|
|
85
|
-
if (!(e instanceof Uint8Array)) throw Error("In a Browser environments only Uint8Arrays are supported.");
|
|
86
|
-
return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)));
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
}),
|
|
90
|
-
stream: Object.freeze({
|
|
91
|
-
asReadableStream: (e) => new i(e),
|
|
92
|
-
asWritableStream: (e) => new a(e)
|
|
93
|
-
}),
|
|
94
|
-
console,
|
|
95
|
-
timer: Object.freeze({
|
|
96
|
-
setTimeout(e, t, ...n) {
|
|
97
|
-
let r = setTimeout(e, t, ...n);
|
|
98
|
-
return { dispose: () => clearTimeout(r) };
|
|
99
|
-
},
|
|
100
|
-
setImmediate(e, ...t) {
|
|
101
|
-
let n = setTimeout(e, 0, ...t);
|
|
102
|
-
return { dispose: () => clearTimeout(n) };
|
|
103
|
-
},
|
|
104
|
-
setInterval(e, t, ...n) {
|
|
105
|
-
let r = setInterval(e, t, ...n);
|
|
106
|
-
return { dispose: () => clearInterval(r) };
|
|
107
|
-
}
|
|
108
|
-
})
|
|
109
|
-
});
|
|
110
|
-
function c() {
|
|
111
|
-
return s;
|
|
112
|
-
}
|
|
113
|
-
(function(e) {
|
|
114
|
-
function t() {
|
|
115
|
-
n.RAL.install(s);
|
|
116
|
-
}
|
|
117
|
-
e.install = t;
|
|
118
|
-
})(c ||= {}), e.default = c;
|
|
119
|
-
}));
|
|
120
|
-
//#endregion
|
|
121
|
-
export default n();
|
|
122
|
-
export { n as require_ril };
|
|
123
|
-
|
|
124
|
-
//# sourceMappingURL=ril.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ril.js","names":[],"sources":["../../../../../../../../node_modules/vscode-jsonrpc/lib/browser/ril.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst api_1 = require(\"../common/api\");\nclass MessageBuffer extends api_1.AbstractMessageBuffer {\n constructor(encoding = 'utf-8') {\n super(encoding);\n this.asciiDecoder = new TextDecoder('ascii');\n }\n emptyBuffer() {\n return MessageBuffer.emptyBuffer;\n }\n fromString(value, _encoding) {\n return (new TextEncoder()).encode(value);\n }\n toString(value, encoding) {\n if (encoding === 'ascii') {\n return this.asciiDecoder.decode(value);\n }\n else {\n return (new TextDecoder(encoding)).decode(value);\n }\n }\n asNative(buffer, length) {\n if (length === undefined) {\n return buffer;\n }\n else {\n return buffer.slice(0, length);\n }\n }\n allocNative(length) {\n return new Uint8Array(length);\n }\n}\nMessageBuffer.emptyBuffer = new Uint8Array(0);\nclass ReadableStreamWrapper {\n constructor(socket) {\n this.socket = socket;\n this._onData = new api_1.Emitter();\n this._messageListener = (event) => {\n const blob = event.data;\n blob.arrayBuffer().then((buffer) => {\n this._onData.fire(new Uint8Array(buffer));\n }, () => {\n (0, api_1.RAL)().console.error(`Converting blob to array buffer failed.`);\n });\n };\n this.socket.addEventListener('message', this._messageListener);\n }\n onClose(listener) {\n this.socket.addEventListener('close', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));\n }\n onError(listener) {\n this.socket.addEventListener('error', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));\n }\n onEnd(listener) {\n this.socket.addEventListener('end', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));\n }\n onData(listener) {\n return this._onData.event(listener);\n }\n}\nclass WritableStreamWrapper {\n constructor(socket) {\n this.socket = socket;\n }\n onClose(listener) {\n this.socket.addEventListener('close', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));\n }\n onError(listener) {\n this.socket.addEventListener('error', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));\n }\n onEnd(listener) {\n this.socket.addEventListener('end', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));\n }\n write(data, encoding) {\n if (typeof data === 'string') {\n if (encoding !== undefined && encoding !== 'utf-8') {\n throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${encoding}`);\n }\n this.socket.send(data);\n }\n else {\n this.socket.send(data);\n }\n return Promise.resolve();\n }\n end() {\n this.socket.close();\n }\n}\nconst _textEncoder = new TextEncoder();\nconst _ril = Object.freeze({\n messageBuffer: Object.freeze({\n create: (encoding) => new MessageBuffer(encoding)\n }),\n applicationJson: Object.freeze({\n encoder: Object.freeze({\n name: 'application/json',\n encode: (msg, options) => {\n if (options.charset !== 'utf-8') {\n throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${options.charset}`);\n }\n return Promise.resolve(_textEncoder.encode(JSON.stringify(msg, undefined, 0)));\n }\n }),\n decoder: Object.freeze({\n name: 'application/json',\n decode: (buffer, options) => {\n if (!(buffer instanceof Uint8Array)) {\n throw new Error(`In a Browser environments only Uint8Arrays are supported.`);\n }\n return Promise.resolve(JSON.parse(new TextDecoder(options.charset).decode(buffer)));\n }\n })\n }),\n stream: Object.freeze({\n asReadableStream: (socket) => new ReadableStreamWrapper(socket),\n asWritableStream: (socket) => new WritableStreamWrapper(socket)\n }),\n console: console,\n timer: Object.freeze({\n setTimeout(callback, ms, ...args) {\n const handle = setTimeout(callback, ms, ...args);\n return { dispose: () => clearTimeout(handle) };\n },\n setImmediate(callback, ...args) {\n const handle = setTimeout(callback, 0, ...args);\n return { dispose: () => clearTimeout(handle) };\n },\n setInterval(callback, ms, ...args) {\n const handle = setInterval(callback, ms, ...args);\n return { dispose: () => clearInterval(handle) };\n },\n })\n});\nfunction RIL() {\n return _ril;\n}\n(function (RIL) {\n function install() {\n api_1.RAL.install(_ril);\n }\n RIL.install = install;\n})(RIL || (RIL = {}));\nexports.default = RIL;\n"],"x_google_ignoreList":[0],"mappings":";;;;CAKA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC;CAC7D,IAAM,IAAA,GAAA,EACA,IAAN,MAAM,UAAsB,EAAM,sBAAsB;EACpD,YAAY,IAAW,SAAS;GAE5B,AADA,MAAM,EAAS,EACf,KAAK,eAAe,IAAI,YAAY,QAAQ;;EAEhD,cAAc;GACV,OAAO,EAAc;;EAEzB,WAAW,GAAO,GAAW;GACzB,OAAQ,IAAI,aAAa,CAAE,OAAO,EAAM;;EAE5C,SAAS,GAAO,GAAU;GAKlB,OAJA,MAAa,UACN,KAAK,aAAa,OAAO,EAAM,GAG9B,IAAI,YAAY,EAAS,CAAE,OAAO,EAAM;;EAGxD,SAAS,GAAQ,GAAQ;GAKjB,OAJA,MAAW,KAAA,IACJ,IAGA,EAAO,MAAM,GAAG,EAAO;;EAGtC,YAAY,GAAQ;GAChB,OAAO,IAAI,WAAW,EAAO;;;CAGrC,EAAc,cAAc,IAAI,YAAa;CAC7C,IAAM,IAAN,MAA4B;EACxB,YAAY,GAAQ;GAWhB,AAVA,KAAK,SAAS,GACd,KAAK,UAAU,IAAI,EAAM,SAAS,EAClC,KAAK,oBAAoB,MAAU;IAE/B,EADmB,KACd,aAAa,CAAC,MAAM,MAAW;KAChC,KAAK,QAAQ,KAAK,IAAI,WAAW,EAAO,CAAC;aACpC;KACL,CAAC,GAAG,EAAM,MAAM,CAAC,QAAQ,MAAM,0CAA0C;MAC3E;MAEN,KAAK,OAAO,iBAAiB,WAAW,KAAK,iBAAiB;;EAElE,QAAQ,GAAU;GAEd,OADA,KAAK,OAAO,iBAAiB,SAAS,EAAS,EACxC,EAAM,WAAW,aAAa,KAAK,OAAO,oBAAoB,SAAS,EAAS,CAAC;;EAE5F,QAAQ,GAAU;GAE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