@loopstack/loopstack-studio 0.20.2 → 0.21.0-rc.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 +20 -0
- package/dist/components/data-table/ConfirmDialog.js +30 -0
- package/dist/components/data-table/DataList.js +216 -0
- package/dist/components/data-table/DataTable.js +264 -0
- package/dist/components/data-table/DataTableBatchAction.js +32 -0
- package/dist/components/data-table/DataTableFilters.js +83 -0
- package/dist/components/data-table/DataTablePagination.js +108 -0
- package/dist/components/data-table/DataTableToolbar.js +70 -0
- package/dist/components/dynamic-form/ArrayController.js +100 -0
- package/dist/components/dynamic-form/CodeContent.js +174 -0
- package/dist/components/dynamic-form/Form.js +35 -0
- package/dist/components/dynamic-form/FormBody.js +26 -0
- package/dist/components/dynamic-form/FormElement.js +42 -0
- package/dist/components/dynamic-form/FormElementHeader.js +20 -0
- package/dist/components/dynamic-form/InputController.js +38 -0
- package/dist/components/dynamic-form/MarkdownContent.js +76 -0
- package/dist/components/dynamic-form/MermaidDiagram.js +41 -0
- package/dist/components/dynamic-form/ObjectController.js +32 -0
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -0
- package/dist/components/dynamic-form/fields/CheckboxField.js +53 -0
- package/dist/components/dynamic-form/fields/CodeViewField.js +63 -0
- package/dist/components/dynamic-form/fields/InputField.js +105 -0
- package/dist/components/dynamic-form/fields/RadioField.js +67 -0
- package/dist/components/dynamic-form/fields/SelectField.js +60 -0
- package/dist/components/dynamic-form/fields/SliderField.js +112 -0
- package/dist/components/dynamic-form/fields/SwitchField.js +66 -0
- package/dist/components/dynamic-form/fields/TextareaField.js +77 -0
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +33 -0
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +42 -0
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +21 -0
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +5 -0
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +5 -0
- package/dist/components/layout/MainLayout.js +24 -0
- package/dist/components/lists/CustomListView.js +87 -0
- package/dist/components/lists/ListView.js +118 -0
- package/dist/components/page/PageBreadcrumbs.js +41 -0
- package/dist/components/snackbars/ErrorSnackbar.js +30 -0
- package/dist/components/snackbars/Snackbar.js +44 -0
- package/dist/components/ui/alert-dialog.js +121 -0
- package/dist/components/ui/badge.js +28 -0
- package/dist/components/ui/breadcrumb.js +85 -0
- package/dist/components/ui/button.js +47 -0
- package/dist/components/ui/card.js +29 -0
- package/dist/components/ui/checkbox.js +26 -0
- package/dist/components/ui/collapsible.js +32 -0
- package/dist/components/ui/dialog.js +88 -0
- package/dist/components/ui/input.js +18 -0
- package/dist/components/ui/label.js +19 -0
- package/dist/components/ui/radio-group.js +38 -0
- package/dist/components/ui/select.js +125 -0
- package/dist/components/ui/sheet.js +97 -0
- package/dist/components/ui/slider.js +35 -0
- package/dist/components/ui/switch.js +24 -0
- package/dist/components/ui/table.js +81 -0
- package/dist/components/ui/textarea.js +17 -0
- package/dist/components/ui/tooltip.js +50 -0
- package/dist/features/health/LocalHealthCheck.js +95 -0
- package/dist/features/workspaces/Workspaces.js +162 -0
- package/dist/features/workspaces/components/CreateWorkspace.js +128 -0
- package/dist/features/workspaces/components/ExecutionTimeline.js +204 -0
- package/dist/features/workspaces/components/NewPipelineRunDialog.js +31 -0
- package/dist/features/workspaces/components/PipelineForm.js +152 -0
- package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +75 -0
- package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +43 -0
- package/dist/features/workspaces/components/pipeline-form/SelectionView.js +105 -0
- package/dist/hooks/use-mobile.js +3 -3
- package/dist/hooks/useAuth.js +56 -0
- package/dist/hooks/useConfig.js +46 -0
- package/dist/hooks/useDebounce.js +27 -0
- package/dist/hooks/usePipelines.js +117 -0
- package/dist/hooks/useProcessor.js +24 -0
- package/dist/hooks/useWorkspaces.js +142 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4 -1
- package/dist/lib/utils.js +6 -0
- package/dist/loopstack-studio.css +2 -0
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -0
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +48 -0
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +26 -0
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +154 -0
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +40 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +85 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +35 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +570 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +25 -0
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +9 -0
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +8 -0
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +10 -0
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +9 -0
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +18 -0
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -0
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +35 -0
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +7 -0
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +15 -0
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +14 -0
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +54 -0
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +22 -0
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +6 -0
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +17 -0
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +18 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +60 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +28 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +787 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +30 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +55 -0
- package/dist/node_modules/ccount/index.js +8 -0
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -0
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +10 -0
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -0
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +13 -0
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +58 -0
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +75 -0
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +34 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +299 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +25 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +29 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +15 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +269 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +43 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +248 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +32 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +58 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +122 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +16 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +48 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +172 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +39 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +109 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +22 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +313 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +275 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +144 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +102 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +11 -0
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +465 -0
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +9 -0
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +275 -0
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +152 -0
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +15 -0
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +75 -0
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +42 -0
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +346 -0
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +194 -0
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +32 -0
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -0
- package/dist/node_modules/comma-separated-tokens/index.js +10 -0
- package/dist/node_modules/cose-base/cose-base.js +469 -0
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +18100 -0
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +172 -0
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +604 -0
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +1142 -0
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +1635 -0
- package/dist/node_modules/d3/src/index.js +93 -0
- package/dist/node_modules/d3-array/src/ascending.js +4 -0
- package/dist/node_modules/d3-array/src/bisect.js +8 -0
- package/dist/node_modules/d3-array/src/bisector.js +39 -0
- package/dist/node_modules/d3-array/src/descending.js +4 -0
- package/dist/node_modules/d3-array/src/max.js +10 -0
- package/dist/node_modules/d3-array/src/min.js +10 -0
- package/dist/node_modules/d3-array/src/number.js +4 -0
- package/dist/node_modules/d3-array/src/range.js +6 -0
- package/dist/node_modules/d3-array/src/ticks.js +30 -0
- package/dist/node_modules/d3-axis/src/axis.js +61 -0
- package/dist/node_modules/d3-axis/src/identity.js +4 -0
- package/dist/node_modules/d3-brush/src/brush.js +15 -0
- package/dist/node_modules/d3-brush/src/index.js +1 -0
- package/dist/node_modules/d3-color/src/color.js +287 -0
- package/dist/node_modules/d3-color/src/define.js +9 -0
- package/dist/node_modules/d3-color/src/lab.js +70 -0
- package/dist/node_modules/d3-color/src/math.js +2 -0
- package/dist/node_modules/d3-dispatch/src/dispatch.js +64 -0
- package/dist/node_modules/d3-ease/src/cubic.js +4 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +11 -0
- package/dist/node_modules/d3-format/src/exponent.js +5 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +9 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +7 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +8 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +9 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +8 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +25 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +16 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +19 -0
- package/dist/node_modules/d3-format/src/identity.js +4 -0
- package/dist/node_modules/d3-format/src/locale.js +82 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +5 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +5 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/accessors.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/constant.js +9 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +10 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +6 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +6 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +57 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +7 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +7 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +10 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +12 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +6 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +7 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +36 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +33 -0
- package/dist/node_modules/d3-interpolate/src/array.js +11 -0
- package/dist/node_modules/d3-interpolate/src/basis.js +12 -0
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +9 -0
- package/dist/node_modules/d3-interpolate/src/color.js +25 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +2 -0
- package/dist/node_modules/d3-interpolate/src/date.js +7 -0
- package/dist/node_modules/d3-interpolate/src/hcl.js +12 -0
- package/dist/node_modules/d3-interpolate/src/number.js +6 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +12 -0
- package/dist/node_modules/d3-interpolate/src/object.js +10 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
- package/dist/node_modules/d3-interpolate/src/round.js +6 -0
- package/dist/node_modules/d3-interpolate/src/string.js +24 -0
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +20 -0
- package/dist/node_modules/d3-interpolate/src/transform/index.js +52 -0
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -0
- package/dist/node_modules/d3-interpolate/src/value.js +14 -0
- package/dist/node_modules/d3-path/src/path.js +61 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +10 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +10 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +10 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +50 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +6 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +35 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +7 -0
- package/dist/node_modules/d3-sankey/src/align.js +17 -0
- package/dist/node_modules/d3-sankey/src/constant.js +6 -0
- package/dist/node_modules/d3-sankey/src/sankey.js +224 -0
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +11 -0
- package/dist/node_modules/d3-scale/src/band.js +39 -0
- package/dist/node_modules/d3-scale/src/constant.js +6 -0
- package/dist/node_modules/d3-scale/src/continuous.js +69 -0
- package/dist/node_modules/d3-scale/src/init.js +13 -0
- package/dist/node_modules/d3-scale/src/linear.js +32 -0
- package/dist/node_modules/d3-scale/src/nice.js +6 -0
- package/dist/node_modules/d3-scale/src/number.js +4 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +27 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +27 -0
- package/dist/node_modules/d3-scale/src/time.js +43 -0
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -0
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +5 -0
- package/dist/node_modules/d3-selection/src/array.js +4 -0
- package/dist/node_modules/d3-selection/src/constant.js +6 -0
- package/dist/node_modules/d3-selection/src/creator.js +18 -0
- package/dist/node_modules/d3-selection/src/matcher.js +11 -0
- package/dist/node_modules/d3-selection/src/namespace.js +9 -0
- package/dist/node_modules/d3-selection/src/namespaces.js +8 -0
- package/dist/node_modules/d3-selection/src/select.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/append.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/attr.js +42 -0
- package/dist/node_modules/d3-selection/src/selection/call.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/classed.js +51 -0
- package/dist/node_modules/d3-selection/src/selection/clone.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/data.js +34 -0
- package/dist/node_modules/d3-selection/src/selection/datum.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +19 -0
- package/dist/node_modules/d3-selection/src/selection/each.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/empty.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/enter.js +24 -0
- package/dist/node_modules/d3-selection/src/selection/exit.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/filter.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/html.js +17 -0
- package/dist/node_modules/d3-selection/src/selection/index.js +84 -0
- package/dist/node_modules/d3-selection/src/selection/insert.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/join.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/lower.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/merge.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/node.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/on.js +54 -0
- package/dist/node_modules/d3-selection/src/selection/order.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/property.js +20 -0
- package/dist/node_modules/d3-selection/src/selection/raise.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/remove.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/select.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/size.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/sort.js +16 -0
- package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/style.js +24 -0
- package/dist/node_modules/d3-selection/src/selection/text.js +17 -0
- package/dist/node_modules/d3-selection/src/selector.js +7 -0
- package/dist/node_modules/d3-selection/src/selectorAll.js +9 -0
- package/dist/node_modules/d3-selection/src/window.js +4 -0
- package/dist/node_modules/d3-shape/src/arc.js +79 -0
- package/dist/node_modules/d3-shape/src/array.js +5 -0
- package/dist/node_modules/d3-shape/src/constant.js +6 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +45 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +42 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/bundle.js +26 -0
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +52 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +51 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +45 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +67 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +56 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +50 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +32 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +21 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +90 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +35 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +43 -0
- package/dist/node_modules/d3-shape/src/descending.js +4 -0
- package/dist/node_modules/d3-shape/src/identity.js +4 -0
- package/dist/node_modules/d3-shape/src/line.js +26 -0
- package/dist/node_modules/d3-shape/src/math.js +8 -0
- package/dist/node_modules/d3-shape/src/noop.js +2 -0
- package/dist/node_modules/d3-shape/src/path.js +15 -0
- package/dist/node_modules/d3-shape/src/pie.js +39 -0
- package/dist/node_modules/d3-shape/src/point.js +7 -0
- package/dist/node_modules/d3-time/src/day.js +17 -0
- package/dist/node_modules/d3-time/src/duration.js +2 -0
- package/dist/node_modules/d3-time/src/hour.js +15 -0
- package/dist/node_modules/d3-time/src/interval.js +24 -0
- package/dist/node_modules/d3-time/src/millisecond.js +10 -0
- package/dist/node_modules/d3-time/src/minute.js +15 -0
- package/dist/node_modules/d3-time/src/month.js +14 -0
- package/dist/node_modules/d3-time/src/second.js +9 -0
- package/dist/node_modules/d3-time/src/ticks.js +121 -0
- package/dist/node_modules/d3-time/src/week.js +21 -0
- package/dist/node_modules/d3-time/src/year.js +22 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +58 -0
- package/dist/node_modules/d3-time-format/src/locale.js +486 -0
- package/dist/node_modules/d3-timer/src/timeout.js +8 -0
- package/dist/node_modules/d3-timer/src/timer.js +51 -0
- package/dist/node_modules/d3-transition/src/index.js +3 -0
- package/dist/node_modules/d3-transition/src/interrupt.js +15 -0
- package/dist/node_modules/d3-transition/src/selection/index.js +4 -0
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +7 -0
- package/dist/node_modules/d3-transition/src/selection/transition.js +21 -0
- package/dist/node_modules/d3-transition/src/transition/attr.js +47 -0
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +36 -0
- package/dist/node_modules/d3-transition/src/transition/delay.js +16 -0
- package/dist/node_modules/d3-transition/src/transition/duration.js +16 -0
- package/dist/node_modules/d3-transition/src/transition/ease.js +12 -0
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +13 -0
- package/dist/node_modules/d3-transition/src/transition/end.js +14 -0
- package/dist/node_modules/d3-transition/src/transition/filter.js +8 -0
- package/dist/node_modules/d3-transition/src/transition/index.js +65 -0
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -0
- package/dist/node_modules/d3-transition/src/transition/merge.js +8 -0
- package/dist/node_modules/d3-transition/src/transition/on.js +19 -0
- package/dist/node_modules/d3-transition/src/transition/remove.js +11 -0
- package/dist/node_modules/d3-transition/src/transition/schedule.js +67 -0
- package/dist/node_modules/d3-transition/src/transition/select.js +10 -0
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +13 -0
- package/dist/node_modules/d3-transition/src/transition/selection.js +6 -0
- package/dist/node_modules/d3-transition/src/transition/style.js +43 -0
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +21 -0
- package/dist/node_modules/d3-transition/src/transition/text.js +15 -0
- package/dist/node_modules/d3-transition/src/transition/textTween.js +21 -0
- package/dist/node_modules/d3-transition/src/transition/transition.js +15 -0
- package/dist/node_modules/d3-transition/src/transition/tween.js +52 -0
- package/dist/node_modules/d3-zoom/src/index.js +2 -0
- package/dist/node_modules/d3-zoom/src/transform.js +46 -0
- package/dist/node_modules/d3-zoom/src/zoom.js +2 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +34 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +22 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +44 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +25 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +69 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +4 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +241 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +66 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +32 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +14 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +25 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +25 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +33 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +44 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +23 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +55 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +43 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +27 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +40 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +216 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +23 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +31 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +25 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +84 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +20 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +117 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +16 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra-all.js +1 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +8 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/is-acyclic.js +1 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +5 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +5 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/prim.js +1 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +15 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +228 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +32 -0
- package/dist/node_modules/dayjs/dayjs.min.js +298 -0
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +37 -0
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +160 -0
- package/dist/node_modules/dayjs/plugin/duration.js +164 -0
- package/dist/node_modules/dayjs/plugin/isoWeek.js +29 -0
- package/dist/node_modules/devlop/lib/default.js +2 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +547 -0
- package/dist/node_modules/hast-util-from-dom/lib/index.js +58 -0
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -0
- package/dist/node_modules/hast-util-is-element/lib/index.js +36 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +16 -0
- package/dist/node_modules/hast-util-to-text/lib/index.js +104 -0
- package/dist/node_modules/hastscript/lib/create-h.js +86 -0
- package/dist/node_modules/hastscript/lib/index.js +5 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -0
- package/dist/node_modules/internmap/src/index.js +36 -0
- package/dist/node_modules/katex/dist/katex.js +22103 -0
- package/dist/node_modules/khroma/dist/channels/index.js +68 -0
- package/dist/node_modules/khroma/dist/channels/reusable.js +8 -0
- package/dist/node_modules/khroma/dist/channels/type.js +20 -0
- package/dist/node_modules/khroma/dist/color/hex.js +22 -0
- package/dist/node_modules/khroma/dist/color/hsl.js +36 -0
- package/dist/node_modules/khroma/dist/color/index.js +23 -0
- package/dist/node_modules/khroma/dist/color/keyword.js +162 -0
- package/dist/node_modules/khroma/dist/color/rgb.js +23 -0
- package/dist/node_modules/khroma/dist/constants.js +9 -0
- package/dist/node_modules/khroma/dist/methods/adjust.js +8 -0
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +7 -0
- package/dist/node_modules/khroma/dist/methods/change.js +8 -0
- package/dist/node_modules/khroma/dist/methods/channel.js +4 -0
- package/dist/node_modules/khroma/dist/methods/darken.js +3 -0
- package/dist/node_modules/khroma/dist/methods/invert.js +7 -0
- package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -0
- package/dist/node_modules/khroma/dist/methods/is_light.js +3 -0
- package/dist/node_modules/khroma/dist/methods/lighten.js +3 -0
- package/dist/node_modules/khroma/dist/methods/luminance.js +7 -0
- package/dist/node_modules/khroma/dist/methods/mix.js +7 -0
- package/dist/node_modules/khroma/dist/methods/rgba.js +15 -0
- package/dist/node_modules/khroma/dist/utils/channel.js +58 -0
- package/dist/node_modules/khroma/dist/utils/index.js +9 -0
- package/dist/node_modules/khroma/dist/utils/lang.js +5 -0
- package/dist/node_modules/khroma/dist/utils/unit.js +5 -0
- package/dist/node_modules/langium/lib/default-module.js +85 -0
- package/dist/node_modules/langium/lib/dependency-injection.js +62 -0
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +11 -0
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +36 -0
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +303 -0
- package/dist/node_modules/langium/lib/index.js +182 -0
- package/dist/node_modules/langium/lib/languages/generated/ast.js +1089 -0
- package/dist/node_modules/langium/lib/languages/grammar-config.js +13 -0
- package/dist/node_modules/langium/lib/parser/async-parser.js +83 -0
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +7 -0
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +160 -0
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +11 -0
- package/dist/node_modules/langium/lib/parser/langium-parser.js +388 -0
- package/dist/node_modules/langium/lib/parser/lexer.js +50 -0
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +275 -0
- package/dist/node_modules/langium/lib/parser/token-builder.js +61 -0
- package/dist/node_modules/langium/lib/parser/value-converter.js +78 -0
- package/dist/node_modules/langium/lib/references/linker.js +190 -0
- package/dist/node_modules/langium/lib/references/name-provider.js +13 -0
- package/dist/node_modules/langium/lib/references/references.js +76 -0
- package/dist/node_modules/langium/lib/references/scope-computation.js +35 -0
- package/dist/node_modules/langium/lib/references/scope-provider.js +34 -0
- package/dist/node_modules/langium/lib/references/scope.js +73 -0
- package/dist/node_modules/langium/lib/serializer/hydrator.js +125 -0
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +145 -0
- package/dist/node_modules/langium/lib/service-registry.js +37 -0
- package/dist/node_modules/langium/lib/syntax-tree.js +70 -0
- package/dist/node_modules/langium/lib/utils/ast-utils.js +157 -0
- package/dist/node_modules/langium/lib/utils/caching.js +91 -0
- package/dist/node_modules/langium/lib/utils/cancellation.js +5 -0
- package/dist/node_modules/langium/lib/utils/collections.js +85 -0
- package/dist/node_modules/langium/lib/utils/cst-utils.js +190 -0
- package/dist/node_modules/langium/lib/utils/disposable.js +8 -0
- package/dist/node_modules/langium/lib/utils/errors.js +12 -0
- package/dist/node_modules/langium/lib/utils/event.js +5 -0
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +22 -0
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +296 -0
- package/dist/node_modules/langium/lib/utils/index.js +53 -0
- package/dist/node_modules/langium/lib/utils/promise-utils.js +30 -0
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +167 -0
- package/dist/node_modules/langium/lib/utils/stream.js +327 -0
- package/dist/node_modules/langium/lib/utils/uri-utils.js +107 -0
- package/dist/node_modules/langium/lib/validation/document-validator.js +210 -0
- package/dist/node_modules/langium/lib/validation/validation-registry.js +87 -0
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +57 -0
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +28 -0
- package/dist/node_modules/langium/lib/workspace/configuration.js +51 -0
- package/dist/node_modules/langium/lib/workspace/document-builder.js +201 -0
- package/dist/node_modules/langium/lib/workspace/documents.js +142 -0
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +34 -0
- package/dist/node_modules/langium/lib/workspace/index-manager.js +49 -0
- package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +42 -0
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +66 -0
- package/dist/node_modules/layout-base/layout-base.js +1407 -0
- package/dist/node_modules/lodash-es/_DataView.js +4 -0
- package/dist/node_modules/lodash-es/_Hash.js +15 -0
- package/dist/node_modules/lodash-es/_ListCache.js +15 -0
- package/dist/node_modules/lodash-es/_Map.js +4 -0
- package/dist/node_modules/lodash-es/_MapCache.js +15 -0
- package/dist/node_modules/lodash-es/_Promise.js +4 -0
- package/dist/node_modules/lodash-es/_Set.js +4 -0
- package/dist/node_modules/lodash-es/_SetCache.js +10 -0
- package/dist/node_modules/lodash-es/_Stack.js +12 -0
- package/dist/node_modules/lodash-es/_Symbol.js +3 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +3 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +4 -0
- package/dist/node_modules/lodash-es/_apply.js +11 -0
- package/dist/node_modules/lodash-es/_arrayAggregator.js +9 -0
- package/dist/node_modules/lodash-es/_arrayEach.js +6 -0
- package/dist/node_modules/lodash-es/_arrayEvery.js +6 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +9 -0
- package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -0
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +6 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +14 -0
- package/dist/node_modules/lodash-es/_arrayMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +6 -0
- package/dist/node_modules/lodash-es/_arrayReduce.js +7 -0
- package/dist/node_modules/lodash-es/_arraySome.js +6 -0
- package/dist/node_modules/lodash-es/_asciiSize.js +3 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -0
- package/dist/node_modules/lodash-es/_assignValue.js +9 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.js +7 -0
- package/dist/node_modules/lodash-es/_baseAggregator.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssign.js +7 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +11 -0
- package/dist/node_modules/lodash-es/_baseClone.js +56 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +12 -0
- package/dist/node_modules/lodash-es/_baseDifference.js +22 -0
- package/dist/node_modules/lodash-es/_baseEach.js +4 -0
- package/dist/node_modules/lodash-es/_baseEvery.js +9 -0
- package/dist/node_modules/lodash-es/_baseExtremum.js +10 -0
- package/dist/node_modules/lodash-es/_baseFilter.js +9 -0
- package/dist/node_modules/lodash-es/_baseFindIndex.js +6 -0
- package/dist/node_modules/lodash-es/_baseFlatten.js +12 -0
- package/dist/node_modules/lodash-es/_baseFor.js +3 -0
- package/dist/node_modules/lodash-es/_baseForOwn.js +7 -0
- package/dist/node_modules/lodash-es/_baseGet.js +9 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +8 -0
- package/dist/node_modules/lodash-es/_baseGetTag.js +9 -0
- package/dist/node_modules/lodash-es/_baseGt.js +5 -0
- package/dist/node_modules/lodash-es/_baseHas.js +6 -0
- package/dist/node_modules/lodash-es/_baseHasIn.js +5 -0
- package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -0
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +29 -0
- package/dist/node_modules/lodash-es/_baseIsMap.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsMatch.js +25 -0
- package/dist/node_modules/lodash-es/_baseIsNaN.js +5 -0
- package/dist/node_modules/lodash-es/_baseIsNative.js +10 -0
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsSet.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -0
- package/dist/node_modules/lodash-es/_baseIteratee.js +10 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +11 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +12 -0
- package/dist/node_modules/lodash-es/_baseLt.js +5 -0
- package/dist/node_modules/lodash-es/_baseMap.js +10 -0
- package/dist/node_modules/lodash-es/_baseMatches.js +11 -0
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +16 -0
- package/dist/node_modules/lodash-es/_baseMerge.js +18 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +30 -0
- package/dist/node_modules/lodash-es/_baseOrderBy.js +30 -0
- package/dist/node_modules/lodash-es/_basePick.js +9 -0
- package/dist/node_modules/lodash-es/_basePickBy.js +12 -0
- package/dist/node_modules/lodash-es/_baseProperty.js +7 -0
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +8 -0
- package/dist/node_modules/lodash-es/_baseRange.js +7 -0
- package/dist/node_modules/lodash-es/_baseReduce.js +7 -0
- package/dist/node_modules/lodash-es/_baseRest.js +8 -0
- package/dist/node_modules/lodash-es/_baseSet.js +21 -0
- package/dist/node_modules/lodash-es/_baseSetToString.js +12 -0
- package/dist/node_modules/lodash-es/_baseSlice.js +8 -0
- package/dist/node_modules/lodash-es/_baseSome.js +9 -0
- package/dist/node_modules/lodash-es/_baseSortBy.js +7 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +6 -0
- package/dist/node_modules/lodash-es/_baseToString.js +14 -0
- package/dist/node_modules/lodash-es/_baseTrim.js +7 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +7 -0
- package/dist/node_modules/lodash-es/_baseUniq.js +26 -0
- package/dist/node_modules/lodash-es/_baseValues.js +8 -0
- package/dist/node_modules/lodash-es/_baseZipObject.js +9 -0
- package/dist/node_modules/lodash-es/_cacheHas.js +5 -0
- package/dist/node_modules/lodash-es/_castFunction.js +6 -0
- package/dist/node_modules/lodash-es/_castPath.js +9 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +7 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneDataView.js +7 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.js +7 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +7 -0
- package/dist/node_modules/lodash-es/_compareAscending.js +11 -0
- package/dist/node_modules/lodash-es/_compareMultiple.js +10 -0
- package/dist/node_modules/lodash-es/_copyArray.js +7 -0
- package/dist/node_modules/lodash-es/_copyObject.js +13 -0
- package/dist/node_modules/lodash-es/_copySymbols.js +7 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -0
- package/dist/node_modules/lodash-es/_coreJsData.js +3 -0
- package/dist/node_modules/lodash-es/_createAggregator.js +12 -0
- package/dist/node_modules/lodash-es/_createAssigner.js +14 -0
- package/dist/node_modules/lodash-es/_createBaseEach.js +11 -0
- package/dist/node_modules/lodash-es/_createBaseFor.js +11 -0
- package/dist/node_modules/lodash-es/_createFind.js +18 -0
- package/dist/node_modules/lodash-es/_createRange.js +10 -0
- package/dist/node_modules/lodash-es/_createSet.js +7 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +8 -0
- package/dist/node_modules/lodash-es/_equalArrays.js +34 -0
- package/dist/node_modules/lodash-es/_equalByTag.js +34 -0
- package/dist/node_modules/lodash-es/_equalObjects.js +31 -0
- package/dist/node_modules/lodash-es/_flatRest.js +8 -0
- package/dist/node_modules/lodash-es/_freeGlobal.js +2 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +8 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -0
- package/dist/node_modules/lodash-es/_getMapData.js +7 -0
- package/dist/node_modules/lodash-es/_getMatchData.js +15 -0
- package/dist/node_modules/lodash-es/_getNative.js +8 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +3 -0
- package/dist/node_modules/lodash-es/_getRawTag.js +13 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +8 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +9 -0
- package/dist/node_modules/lodash-es/_getTag.js +21 -0
- package/dist/node_modules/lodash-es/_getValue.js +5 -0
- package/dist/node_modules/lodash-es/_hasPath.js +17 -0
- package/dist/node_modules/lodash-es/_hasUnicode.js +6 -0
- package/dist/node_modules/lodash-es/_hashClear.js +6 -0
- package/dist/node_modules/lodash-es/_hashDelete.js +6 -0
- package/dist/node_modules/lodash-es/_hashGet.js +12 -0
- package/dist/node_modules/lodash-es/_hashHas.js +8 -0
- package/dist/node_modules/lodash-es/_hashSet.js +8 -0
- package/dist/node_modules/lodash-es/_initCloneArray.js +7 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.js +32 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +8 -0
- package/dist/node_modules/lodash-es/_isFlattenable.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +7 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.js +11 -0
- package/dist/node_modules/lodash-es/_isKey.js +10 -0
- package/dist/node_modules/lodash-es/_isKeyable.js +6 -0
- package/dist/node_modules/lodash-es/_isMasked.js +10 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +7 -0
- package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -0
- package/dist/node_modules/lodash-es/_listCacheClear.js +5 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheGet.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_listCacheSet.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.js +12 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.js +7 -0
- package/dist/node_modules/lodash-es/_mapToArray.js +8 -0
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +7 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +10 -0
- package/dist/node_modules/lodash-es/_nativeCreate.js +3 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +3 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +7 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +7 -0
- package/dist/node_modules/lodash-es/_objectToString.js +6 -0
- package/dist/node_modules/lodash-es/_overArg.js +7 -0
- package/dist/node_modules/lodash-es/_overRest.js +12 -0
- package/dist/node_modules/lodash-es/_root.js +3 -0
- package/dist/node_modules/lodash-es/_safeGet.js +5 -0
- package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -0
- package/dist/node_modules/lodash-es/_setCacheHas.js +5 -0
- package/dist/node_modules/lodash-es/_setToArray.js +8 -0
- package/dist/node_modules/lodash-es/_setToString.js +4 -0
- package/dist/node_modules/lodash-es/_shortOut.js +13 -0
- package/dist/node_modules/lodash-es/_stackClear.js +6 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +6 -0
- package/dist/node_modules/lodash-es/_stackGet.js +5 -0
- package/dist/node_modules/lodash-es/_stackHas.js +5 -0
- package/dist/node_modules/lodash-es/_stackSet.js +15 -0
- package/dist/node_modules/lodash-es/_strictIndexOf.js +6 -0
- package/dist/node_modules/lodash-es/_stringSize.js +8 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +8 -0
- package/dist/node_modules/lodash-es/_toKey.js +9 -0
- package/dist/node_modules/lodash-es/_toSource.js +14 -0
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +7 -0
- package/dist/node_modules/lodash-es/_unicodeSize.js +17 -0
- package/dist/node_modules/lodash-es/assign.js +14 -0
- package/dist/node_modules/lodash-es/clone.js +7 -0
- package/dist/node_modules/lodash-es/cloneDeep.js +7 -0
- package/dist/node_modules/lodash-es/compact.js +9 -0
- package/dist/node_modules/lodash-es/constant.js +7 -0
- package/dist/node_modules/lodash-es/defaults.js +14 -0
- package/dist/node_modules/lodash-es/difference.js +8 -0
- package/dist/node_modules/lodash-es/drop.js +8 -0
- package/dist/node_modules/lodash-es/dropRight.js +8 -0
- package/dist/node_modules/lodash-es/eq.js +5 -0
- package/dist/node_modules/lodash-es/every.js +11 -0
- package/dist/node_modules/lodash-es/filter.js +9 -0
- package/dist/node_modules/lodash-es/find.js +4 -0
- package/dist/node_modules/lodash-es/findIndex.js +12 -0
- package/dist/node_modules/lodash-es/flatMap.js +7 -0
- package/dist/node_modules/lodash-es/flatten.js +6 -0
- package/dist/node_modules/lodash-es/forEach.js +9 -0
- package/dist/node_modules/lodash-es/forIn.js +8 -0
- package/dist/node_modules/lodash-es/forOwn.js +7 -0
- package/dist/node_modules/lodash-es/get.js +7 -0
- package/dist/node_modules/lodash-es/groupBy.js +6 -0
- package/dist/node_modules/lodash-es/has.js +7 -0
- package/dist/node_modules/lodash-es/hasIn.js +7 -0
- package/dist/node_modules/lodash-es/head.js +5 -0
- package/dist/node_modules/lodash-es/identity.js +5 -0
- package/dist/node_modules/lodash-es/includes.js +13 -0
- package/dist/node_modules/lodash-es/indexOf.js +11 -0
- package/dist/node_modules/lodash-es/isArguments.js +8 -0
- package/dist/node_modules/lodash-es/isArray.js +2 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +7 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -0
- package/dist/node_modules/lodash-es/isBuffer.js +4 -0
- package/dist/node_modules/lodash-es/isEmpty.js +20 -0
- package/dist/node_modules/lodash-es/isFunction.js +10 -0
- package/dist/node_modules/lodash-es/isLength.js +6 -0
- package/dist/node_modules/lodash-es/isMap.js +5 -0
- package/dist/node_modules/lodash-es/isObject.js +6 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +5 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +13 -0
- package/dist/node_modules/lodash-es/isRegExp.js +5 -0
- package/dist/node_modules/lodash-es/isSet.js +5 -0
- package/dist/node_modules/lodash-es/isString.js +9 -0
- package/dist/node_modules/lodash-es/isSymbol.js +8 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +5 -0
- package/dist/node_modules/lodash-es/isUndefined.js +5 -0
- package/dist/node_modules/lodash-es/keys.js +8 -0
- package/dist/node_modules/lodash-es/keysIn.js +8 -0
- package/dist/node_modules/lodash-es/last.js +6 -0
- package/dist/node_modules/lodash-es/map.js +9 -0
- package/dist/node_modules/lodash-es/mapValues.js +11 -0
- package/dist/node_modules/lodash-es/max.js +8 -0
- package/dist/node_modules/lodash-es/memoize.js +15 -0
- package/dist/node_modules/lodash-es/merge.js +6 -0
- package/dist/node_modules/lodash-es/min.js +8 -0
- package/dist/node_modules/lodash-es/minBy.js +8 -0
- package/dist/node_modules/lodash-es/negate.js +16 -0
- package/dist/node_modules/lodash-es/noop.js +3 -0
- package/dist/node_modules/lodash-es/now.js +5 -0
- package/dist/node_modules/lodash-es/pick.js +6 -0
- package/dist/node_modules/lodash-es/pickBy.js +15 -0
- package/dist/node_modules/lodash-es/property.js +9 -0
- package/dist/node_modules/lodash-es/range.js +3 -0
- package/dist/node_modules/lodash-es/reduce.js +11 -0
- package/dist/node_modules/lodash-es/reject.js +10 -0
- package/dist/node_modules/lodash-es/size.js +14 -0
- package/dist/node_modules/lodash-es/some.js +11 -0
- package/dist/node_modules/lodash-es/sortBy.js +10 -0
- package/dist/node_modules/lodash-es/stubArray.js +5 -0
- package/dist/node_modules/lodash-es/stubFalse.js +5 -0
- package/dist/node_modules/lodash-es/toFinite.js +7 -0
- package/dist/node_modules/lodash-es/toInteger.js +7 -0
- package/dist/node_modules/lodash-es/toNumber.js +18 -0
- package/dist/node_modules/lodash-es/toPlainObject.js +7 -0
- package/dist/node_modules/lodash-es/toString.js +6 -0
- package/dist/node_modules/lodash-es/union.js +8 -0
- package/dist/node_modules/lodash-es/uniq.js +6 -0
- package/dist/node_modules/lodash-es/uniqBy.js +7 -0
- package/dist/node_modules/lodash-es/uniqueId.js +8 -0
- package/dist/node_modules/lodash-es/values.js +7 -0
- package/dist/node_modules/lodash-es/zipObject.js +7 -0
- package/dist/node_modules/longest-streak/index.js +7 -0
- package/dist/node_modules/markdown-table/index.js +57 -0
- package/dist/node_modules/marked/lib/marked.esm.js +1384 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +59 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +5 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +24 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +127 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +47 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +56 -0
- package/dist/node_modules/mdast-util-math/lib/index.js +142 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +21 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +26 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +42 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +17 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +21 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +39 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +16 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +5 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +36 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +10 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +22 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +673 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +3010 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.js +2955 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +8 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +1547 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +65 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-B4BG7PRW.js +3110 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +10 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +1994 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +135 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +9 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +74 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +247 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +3516 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +1140 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +39 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +23 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +497 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +11 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +338 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +55 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +26 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +26 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +219 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +263 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +283 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +211 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +129 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.js +1599 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-NV44I4VS.js +4128 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +1688 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +621 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +18 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +883 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.js +970 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.js +931 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +117 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AYHSOK5B.js +1970 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.js +2187 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +519 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +3560 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +220 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +25 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +833 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +1975 -0
- package/dist/node_modules/mermaid/dist/mermaid.core.js +662 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +16 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +16 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +172 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +191 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +94 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +41 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +199 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +32 -0
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +72 -0
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +44 -0
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +9 -0
- package/dist/node_modules/micromark-factory-space/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +21 -0
- package/dist/node_modules/micromark-util-chunked/index.js +6 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +6 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +24 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +9 -0
- package/dist/node_modules/property-information/index.js +23 -0
- package/dist/node_modules/property-information/lib/aria.js +59 -0
- package/dist/node_modules/property-information/lib/find.js +29 -0
- package/dist/node_modules/property-information/lib/html.js +314 -0
- package/dist/node_modules/property-information/lib/normalize.js +4 -0
- package/dist/node_modules/property-information/lib/svg.js +560 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +5 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -0
- package/dist/node_modules/property-information/lib/util/create.js +12 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +16 -0
- package/dist/node_modules/property-information/lib/util/info.js +7 -0
- package/dist/node_modules/property-information/lib/util/merge.js +7 -0
- package/dist/node_modules/property-information/lib/util/schema.js +7 -0
- package/dist/node_modules/property-information/lib/util/types.js +15 -0
- package/dist/node_modules/property-information/lib/xlink.js +17 -0
- package/dist/node_modules/property-information/lib/xml.js +13 -0
- package/dist/node_modules/property-information/lib/xmlns.js +12 -0
- package/dist/node_modules/rehype-katex/lib/index.js +60 -0
- package/dist/node_modules/remark-gfm/lib/index.js +8 -0
- package/dist/node_modules/remark-math/lib/index.js +8 -0
- package/dist/node_modules/roughjs/bundled/rough.esm.js +1350 -0
- package/dist/node_modules/space-separated-tokens/index.js +5 -0
- package/dist/node_modules/stylis/src/Enum.js +2 -0
- package/dist/node_modules/stylis/src/Parser.js +93 -0
- package/dist/node_modules/stylis/src/Serializer.js +19 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +104 -0
- package/dist/node_modules/stylis/src/Utility.js +26 -0
- package/dist/node_modules/ts-dedent/esm/index.js +25 -0
- package/dist/node_modules/unist-util-find-after/lib/index.js +10 -0
- package/dist/node_modules/unist-util-is/lib/index.js +45 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +10 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +35 -0
- package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +9 -0
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +6 -0
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +17 -0
- package/dist/node_modules/vscode-jsonrpc/browser.js +7 -0
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +52 -0
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +120 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +337 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +57 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +647 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +13 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +64 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +34 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +235 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +93 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +129 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +85 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +161 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +18 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +44 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +58 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +28 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +36 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +12 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +31 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +19 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +15 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +33 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +35 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +15 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +19 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +15 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +674 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +19 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +126 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +24 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +31 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +19 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +15 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +42 -0
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +138 -0
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +1084 -0
- package/dist/node_modules/vscode-uri/lib/esm/index.js +373 -0
- package/dist/node_modules/web-namespaces/index.js +9 -0
- package/dist/pages/WorkspacePage.js +63 -0
- package/dist/pages/WorkspacesPage.js +36 -0
- package/package.json +32 -32
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { streamAllContents, streamContents } from "../utils/ast-utils.js";
|
|
2
|
+
import { cancellation_exports } from "../utils/cancellation.js";
|
|
3
|
+
import { interruptAndCheck } from "../utils/promise-utils.js";
|
|
4
|
+
import { MultiMap } from "../utils/collections.js";
|
|
5
|
+
var DefaultScopeComputation = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider;
|
|
8
|
+
}
|
|
9
|
+
async collectExportedSymbols(e, t = cancellation_exports.CancellationToken.None) {
|
|
10
|
+
return this.collectExportedSymbolsForNode(e.parseResult.value, e, void 0, t);
|
|
11
|
+
}
|
|
12
|
+
async collectExportedSymbolsForNode(e, i, a = streamContents, o = cancellation_exports.CancellationToken.None) {
|
|
13
|
+
let s = [];
|
|
14
|
+
this.addExportedSymbol(e, s, i);
|
|
15
|
+
for (let t of a(e)) await interruptAndCheck(o), this.addExportedSymbol(t, s, i);
|
|
16
|
+
return s;
|
|
17
|
+
}
|
|
18
|
+
addExportedSymbol(e, t, n) {
|
|
19
|
+
let r = this.nameProvider.getName(e);
|
|
20
|
+
r && t.push(this.descriptions.createDescription(e, r, n));
|
|
21
|
+
}
|
|
22
|
+
async collectLocalSymbols(t, a = cancellation_exports.CancellationToken.None) {
|
|
23
|
+
let o = t.parseResult.value, s = new MultiMap();
|
|
24
|
+
for (let n of streamAllContents(o)) await interruptAndCheck(a), this.addLocalSymbol(n, t, s);
|
|
25
|
+
return s;
|
|
26
|
+
}
|
|
27
|
+
addLocalSymbol(e, t, n) {
|
|
28
|
+
let r = e.$container;
|
|
29
|
+
if (r) {
|
|
30
|
+
let i = this.nameProvider.getName(e);
|
|
31
|
+
i && n.add(r, this.descriptions.createDescription(e, i, t));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export { DefaultScopeComputation };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { stream } from "../utils/stream.js";
|
|
2
|
+
import { getDocument } from "../utils/ast-utils.js";
|
|
3
|
+
import { MultiMapScope, StreamScope } from "./scope.js";
|
|
4
|
+
import { WorkspaceCache } from "../utils/caching.js";
|
|
5
|
+
var DefaultScopeProvider = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new WorkspaceCache(e.shared);
|
|
8
|
+
}
|
|
9
|
+
getScope(e) {
|
|
10
|
+
let n = [], r = this.reflection.getReferenceType(e), i = getDocument(e.container).localSymbols;
|
|
11
|
+
if (i) {
|
|
12
|
+
let t = e.container;
|
|
13
|
+
do
|
|
14
|
+
i.has(t) && n.push(i.getStream(t).filter((e) => this.reflection.isSubtype(e.type, r))), t = t.$container;
|
|
15
|
+
while (t);
|
|
16
|
+
}
|
|
17
|
+
let a = this.getGlobalScope(r, e);
|
|
18
|
+
for (let e = n.length - 1; e >= 0; e--) a = this.createScope(n[e], a);
|
|
19
|
+
return a;
|
|
20
|
+
}
|
|
21
|
+
createScope(t, n, i) {
|
|
22
|
+
return new StreamScope(stream(t), n, i);
|
|
23
|
+
}
|
|
24
|
+
createScopeForNodes(t, n, i) {
|
|
25
|
+
return new StreamScope(stream(t).map((e) => {
|
|
26
|
+
let t = this.nameProvider.getName(e);
|
|
27
|
+
if (t) return this.descriptions.createDescription(e, t);
|
|
28
|
+
}).nonNullable(), n, i);
|
|
29
|
+
}
|
|
30
|
+
getGlobalScope(e, t) {
|
|
31
|
+
return this.globalScopeCache.get(e, () => new MultiMapScope(this.indexManager.allElements(e)));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export { DefaultScopeProvider };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EMPTY_STREAM, stream } from "../utils/stream.js";
|
|
2
|
+
import { MultiMap } from "../utils/collections.js";
|
|
3
|
+
var StreamScope = class {
|
|
4
|
+
constructor(e, r, i) {
|
|
5
|
+
this.elements = e, this.outerScope = r, this.caseInsensitive = i?.caseInsensitive ?? !1, this.concatOuterScope = i?.concatOuterScope ?? !0;
|
|
6
|
+
}
|
|
7
|
+
getAllElements() {
|
|
8
|
+
return this.outerScope ? this.elements.concat(this.outerScope.getAllElements()) : this.elements;
|
|
9
|
+
}
|
|
10
|
+
getElement(e) {
|
|
11
|
+
let r = this.caseInsensitive ? e.toLowerCase() : e, i = this.caseInsensitive ? this.elements.find((e) => e.name.toLowerCase() === r) : this.elements.find((r) => r.name === e);
|
|
12
|
+
if (i) return i;
|
|
13
|
+
if (this.outerScope) return this.outerScope.getElement(e);
|
|
14
|
+
}
|
|
15
|
+
getElements(e) {
|
|
16
|
+
let r = this.caseInsensitive ? e.toLowerCase() : e, i = this.caseInsensitive ? this.elements.filter((e) => e.name.toLowerCase() === r) : this.elements.filter((r) => r.name === e);
|
|
17
|
+
return (this.concatOuterScope || i.isEmpty()) && this.outerScope ? i.concat(this.outerScope.getElements(e)) : i;
|
|
18
|
+
}
|
|
19
|
+
}, MapScope = class {
|
|
20
|
+
constructor(e, r, i) {
|
|
21
|
+
this.elements = /* @__PURE__ */ new Map(), this.caseInsensitive = i?.caseInsensitive ?? !1, this.concatOuterScope = i?.concatOuterScope ?? !0;
|
|
22
|
+
for (let r of e) {
|
|
23
|
+
let e = this.caseInsensitive ? r.name.toLowerCase() : r.name;
|
|
24
|
+
this.elements.set(e, r);
|
|
25
|
+
}
|
|
26
|
+
this.outerScope = r;
|
|
27
|
+
}
|
|
28
|
+
getElement(e) {
|
|
29
|
+
let r = this.caseInsensitive ? e.toLowerCase() : e, i = this.elements.get(r);
|
|
30
|
+
if (i) return i;
|
|
31
|
+
if (this.outerScope) return this.outerScope.getElement(e);
|
|
32
|
+
}
|
|
33
|
+
getElements(e) {
|
|
34
|
+
let i = this.caseInsensitive ? e.toLowerCase() : e, a = this.elements.get(i), o = a ? [a] : [];
|
|
35
|
+
return (this.concatOuterScope || o.length > 0) && this.outerScope ? stream(o).concat(this.outerScope.getElements(e)) : stream(o);
|
|
36
|
+
}
|
|
37
|
+
getAllElements() {
|
|
38
|
+
let e = stream(this.elements.values());
|
|
39
|
+
return this.outerScope && (e = e.concat(this.outerScope.getAllElements())), e;
|
|
40
|
+
}
|
|
41
|
+
}, MultiMapScope = class {
|
|
42
|
+
constructor(e, r, a) {
|
|
43
|
+
this.elements = new MultiMap(), this.caseInsensitive = a?.caseInsensitive ?? !1, this.concatOuterScope = a?.concatOuterScope ?? !0;
|
|
44
|
+
for (let r of e) {
|
|
45
|
+
let e = this.caseInsensitive ? r.name.toLowerCase() : r.name;
|
|
46
|
+
this.elements.add(e, r);
|
|
47
|
+
}
|
|
48
|
+
this.outerScope = r;
|
|
49
|
+
}
|
|
50
|
+
getElement(e) {
|
|
51
|
+
let r = this.caseInsensitive ? e.toLowerCase() : e, i = this.elements.get(r)[0];
|
|
52
|
+
if (i) return i;
|
|
53
|
+
if (this.outerScope) return this.outerScope.getElement(e);
|
|
54
|
+
}
|
|
55
|
+
getElements(e) {
|
|
56
|
+
let i = this.caseInsensitive ? e.toLowerCase() : e, a = this.elements.get(i);
|
|
57
|
+
return (this.concatOuterScope || a.length === 0) && this.outerScope ? stream(a).concat(this.outerScope.getElements(e)) : stream(a);
|
|
58
|
+
}
|
|
59
|
+
getAllElements() {
|
|
60
|
+
let e = stream(this.elements.values());
|
|
61
|
+
return this.outerScope && (e = e.concat(this.outerScope.getAllElements())), e;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const EMPTY_SCOPE = {
|
|
65
|
+
getElement() {},
|
|
66
|
+
getElements() {
|
|
67
|
+
return EMPTY_STREAM;
|
|
68
|
+
},
|
|
69
|
+
getAllElements() {
|
|
70
|
+
return EMPTY_STREAM;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
export { EMPTY_SCOPE, MapScope, MultiMapScope, StreamScope };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { isAstNode, isCompositeCstNode, isLeafCstNode, isReference, isRootCstNode } from "../syntax-tree.js";
|
|
2
|
+
import { streamAst } from "../utils/ast-utils.js";
|
|
3
|
+
import { isAbstractElement } from "../languages/generated/ast.js";
|
|
4
|
+
import { streamCst } from "../utils/cst-utils.js";
|
|
5
|
+
import { CompositeCstNodeImpl, LeafCstNodeImpl, RootCstNodeImpl } from "../parser/cst-node-builder.js";
|
|
6
|
+
import { BiMap } from "../utils/collections.js";
|
|
7
|
+
var DefaultHydrator = class {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
this.grammarElementIdMap = new BiMap(), this.tokenTypeIdMap = new BiMap(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker;
|
|
10
|
+
}
|
|
11
|
+
dehydrate(e) {
|
|
12
|
+
return {
|
|
13
|
+
lexerErrors: e.lexerErrors,
|
|
14
|
+
lexerReport: e.lexerReport ? this.dehydrateLexerReport(e.lexerReport) : void 0,
|
|
15
|
+
parserErrors: e.parserErrors.map((e) => ({
|
|
16
|
+
...e,
|
|
17
|
+
message: e.message
|
|
18
|
+
})),
|
|
19
|
+
value: this.dehydrateAstNode(e.value, this.createDehyrationContext(e.value))
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
dehydrateLexerReport(e) {
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
createDehyrationContext(e) {
|
|
26
|
+
let a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
27
|
+
for (let o of streamAst(e)) a.set(o, {});
|
|
28
|
+
if (e.$cstNode) for (let a of streamCst(e.$cstNode)) o.set(a, {});
|
|
29
|
+
return {
|
|
30
|
+
astNodes: a,
|
|
31
|
+
cstNodes: o
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
dehydrateAstNode(a, o) {
|
|
35
|
+
let c = o.astNodes.get(a);
|
|
36
|
+
c.$type = a.$type, c.$containerIndex = a.$containerIndex, c.$containerProperty = a.$containerProperty, a.$cstNode !== void 0 && (c.$cstNode = this.dehydrateCstNode(a.$cstNode, o));
|
|
37
|
+
for (let [l, u] of Object.entries(a)) if (!l.startsWith("$")) if (Array.isArray(u)) {
|
|
38
|
+
let a = [];
|
|
39
|
+
c[l] = a;
|
|
40
|
+
for (let c of u) isAstNode(c) ? a.push(this.dehydrateAstNode(c, o)) : isReference(c) ? a.push(this.dehydrateReference(c, o)) : a.push(c);
|
|
41
|
+
} else isAstNode(u) ? c[l] = this.dehydrateAstNode(u, o) : isReference(u) ? c[l] = this.dehydrateReference(u, o) : u !== void 0 && (c[l] = u);
|
|
42
|
+
return c;
|
|
43
|
+
}
|
|
44
|
+
dehydrateReference(e, a) {
|
|
45
|
+
let o = {};
|
|
46
|
+
return o.$refText = e.$refText, e.$refNode && (o.$refNode = a.cstNodes.get(e.$refNode)), o;
|
|
47
|
+
}
|
|
48
|
+
dehydrateCstNode(e, s) {
|
|
49
|
+
let l = s.cstNodes.get(e);
|
|
50
|
+
return isRootCstNode(e) ? l.fullText = e.fullText : l.grammarSource = this.getGrammarElementId(e.grammarSource), l.hidden = e.hidden, l.astNode = s.astNodes.get(e.astNode), isCompositeCstNode(e) ? l.content = e.content.map((e) => this.dehydrateCstNode(e, s)) : isLeafCstNode(e) && (l.tokenType = e.tokenType.name, l.offset = e.offset, l.length = e.length, l.startLine = e.range.start.line, l.startColumn = e.range.start.character, l.endLine = e.range.end.line, l.endColumn = e.range.end.character), l;
|
|
51
|
+
}
|
|
52
|
+
hydrate(e) {
|
|
53
|
+
let a = e.value, o = this.createHydrationContext(a);
|
|
54
|
+
return "$cstNode" in a && this.hydrateCstNode(a.$cstNode, o), {
|
|
55
|
+
lexerErrors: e.lexerErrors,
|
|
56
|
+
lexerReport: e.lexerReport,
|
|
57
|
+
parserErrors: e.parserErrors,
|
|
58
|
+
value: this.hydrateAstNode(a, o)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
createHydrationContext(e) {
|
|
62
|
+
let a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
63
|
+
for (let o of streamAst(e)) a.set(o, {});
|
|
64
|
+
let s;
|
|
65
|
+
if (e.$cstNode) for (let a of streamCst(e.$cstNode)) {
|
|
66
|
+
let e;
|
|
67
|
+
"fullText" in a ? (e = new RootCstNodeImpl(a.fullText), s = e) : "content" in a ? e = new CompositeCstNodeImpl() : "tokenType" in a && (e = this.hydrateCstLeafNode(a)), e && (o.set(a, e), e.root = s);
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
astNodes: a,
|
|
71
|
+
cstNodes: o
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
hydrateAstNode(a, o) {
|
|
75
|
+
let c = o.astNodes.get(a);
|
|
76
|
+
c.$type = a.$type, c.$containerIndex = a.$containerIndex, c.$containerProperty = a.$containerProperty, a.$cstNode && (c.$cstNode = o.cstNodes.get(a.$cstNode));
|
|
77
|
+
for (let [l, u] of Object.entries(a)) if (!l.startsWith("$")) if (Array.isArray(u)) {
|
|
78
|
+
let a = [];
|
|
79
|
+
c[l] = a;
|
|
80
|
+
for (let d of u) isAstNode(d) ? a.push(this.setParent(this.hydrateAstNode(d, o), c)) : isReference(d) ? a.push(this.hydrateReference(d, c, l, o)) : a.push(d);
|
|
81
|
+
} else isAstNode(u) ? c[l] = this.setParent(this.hydrateAstNode(u, o), c) : isReference(u) ? c[l] = this.hydrateReference(u, c, l, o) : u !== void 0 && (c[l] = u);
|
|
82
|
+
return c;
|
|
83
|
+
}
|
|
84
|
+
setParent(e, a) {
|
|
85
|
+
return e.$container = a, e;
|
|
86
|
+
}
|
|
87
|
+
hydrateReference(e, a, o, s) {
|
|
88
|
+
return this.linker.buildReference(a, o, s.cstNodes.get(e.$refNode), e.$refText);
|
|
89
|
+
}
|
|
90
|
+
hydrateCstNode(e, o, s = 0) {
|
|
91
|
+
let c = o.cstNodes.get(e);
|
|
92
|
+
if (typeof e.grammarSource == "number" && (c.grammarSource = this.getGrammarElement(e.grammarSource)), c.astNode = o.astNodes.get(e.astNode), isCompositeCstNode(c)) for (let a of e.content) {
|
|
93
|
+
let e = this.hydrateCstNode(a, o, s++);
|
|
94
|
+
c.content.push(e);
|
|
95
|
+
}
|
|
96
|
+
return c;
|
|
97
|
+
}
|
|
98
|
+
hydrateCstLeafNode(e) {
|
|
99
|
+
let a = this.getTokenType(e.tokenType), o = e.offset, s = e.length, c = e.startLine, l = e.startColumn, u = e.endLine, d = e.endColumn, f = e.hidden;
|
|
100
|
+
return new LeafCstNodeImpl(o, s, {
|
|
101
|
+
start: {
|
|
102
|
+
line: c,
|
|
103
|
+
character: l
|
|
104
|
+
},
|
|
105
|
+
end: {
|
|
106
|
+
line: u,
|
|
107
|
+
character: d
|
|
108
|
+
}
|
|
109
|
+
}, a, f);
|
|
110
|
+
}
|
|
111
|
+
getTokenType(e) {
|
|
112
|
+
return this.lexer.definition[e];
|
|
113
|
+
}
|
|
114
|
+
getGrammarElementId(e) {
|
|
115
|
+
if (e) return this.grammarElementIdMap.size === 0 && this.createGrammarElementIdMap(), this.grammarElementIdMap.get(e);
|
|
116
|
+
}
|
|
117
|
+
getGrammarElement(e) {
|
|
118
|
+
return this.grammarElementIdMap.size === 0 && this.createGrammarElementIdMap(), this.grammarElementIdMap.getKey(e);
|
|
119
|
+
}
|
|
120
|
+
createGrammarElementIdMap() {
|
|
121
|
+
let e = 0;
|
|
122
|
+
for (let a of streamAst(this.grammar)) isAbstractElement(a) && this.grammarElementIdMap.set(a, e++);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
export { DefaultHydrator };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { isAstNode, isMultiReference, isReference } from "../syntax-tree.js";
|
|
2
|
+
import { getDocument } from "../utils/ast-utils.js";
|
|
3
|
+
import { findNodesForProperty } from "../utils/grammar-utils.js";
|
|
4
|
+
import { URI } from "../../../vscode-uri/lib/esm/index.js";
|
|
5
|
+
function isAstNodeWithComment(e) {
|
|
6
|
+
return typeof e.$comment == "string";
|
|
7
|
+
}
|
|
8
|
+
function isIntermediateReference(e) {
|
|
9
|
+
return typeof e == "object" && !!e && ("$ref" in e || "$error" in e);
|
|
10
|
+
}
|
|
11
|
+
var DefaultJsonSerializer = class {
|
|
12
|
+
constructor(e) {
|
|
13
|
+
this.ignoreProperties = new Set([
|
|
14
|
+
"$container",
|
|
15
|
+
"$containerProperty",
|
|
16
|
+
"$containerIndex",
|
|
17
|
+
"$document",
|
|
18
|
+
"$cstNode"
|
|
19
|
+
]), this.langiumDocuments = e.shared.workspace.LangiumDocuments, this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider, this.commentProvider = e.documentation.CommentProvider;
|
|
20
|
+
}
|
|
21
|
+
serialize(e, t) {
|
|
22
|
+
let n = t ?? {}, i = t?.replacer, a = (e, t) => this.replacer(e, t, n), o = i ? (e, t) => i(e, t, a) : a;
|
|
23
|
+
try {
|
|
24
|
+
return this.currentDocument = getDocument(e), JSON.stringify(e, o, t?.space);
|
|
25
|
+
} finally {
|
|
26
|
+
this.currentDocument = void 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
deserialize(e, t) {
|
|
30
|
+
let n = t ?? {}, r = JSON.parse(e);
|
|
31
|
+
return this.linkNode(r, r, n), r;
|
|
32
|
+
}
|
|
33
|
+
replacer(i, a, { refText: o, sourceText: s, textRegions: c, comments: l, uriConverter: u }) {
|
|
34
|
+
if (!this.ignoreProperties.has(i)) if (isReference(a)) {
|
|
35
|
+
let e = a.ref, t = o ? a.$refText : void 0;
|
|
36
|
+
if (e) {
|
|
37
|
+
let n = getDocument(e), i = "";
|
|
38
|
+
this.currentDocument && this.currentDocument !== n && (i = u ? u(n.uri, e) : n.uri.toString());
|
|
39
|
+
let a = this.astNodeLocator.getAstNodePath(e);
|
|
40
|
+
return {
|
|
41
|
+
$ref: `${i}#${a}`,
|
|
42
|
+
$refText: t
|
|
43
|
+
};
|
|
44
|
+
} else return {
|
|
45
|
+
$error: a.error?.message ?? "Could not resolve reference",
|
|
46
|
+
$refText: t
|
|
47
|
+
};
|
|
48
|
+
} else if (isMultiReference(a)) {
|
|
49
|
+
let e = o ? a.$refText : void 0, t = [];
|
|
50
|
+
for (let e of a.items) {
|
|
51
|
+
let n = e.ref, i = getDocument(e.ref), a = "";
|
|
52
|
+
this.currentDocument && this.currentDocument !== i && (a = u ? u(i.uri, n) : i.uri.toString());
|
|
53
|
+
let o = this.astNodeLocator.getAstNodePath(n);
|
|
54
|
+
t.push(`${a}#${o}`);
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
$refs: t,
|
|
58
|
+
$refText: e
|
|
59
|
+
};
|
|
60
|
+
} else if (isAstNode(a)) {
|
|
61
|
+
let e;
|
|
62
|
+
if (c && (e = this.addAstNodeRegionWithAssignmentsTo({ ...a }), (!i || a.$document) && e?.$textRegion && (e.$textRegion.documentURI = this.currentDocument?.uri.toString())), s && !i && (e ??= { ...a }, e.$sourceText = a.$cstNode?.text), l) {
|
|
63
|
+
e ??= { ...a };
|
|
64
|
+
let t = this.commentProvider.getComment(a);
|
|
65
|
+
t && (e.$comment = t.replace(/\r/g, ""));
|
|
66
|
+
}
|
|
67
|
+
return e ?? a;
|
|
68
|
+
} else return a;
|
|
69
|
+
}
|
|
70
|
+
addAstNodeRegionWithAssignmentsTo(e) {
|
|
71
|
+
let t = (e) => ({
|
|
72
|
+
offset: e.offset,
|
|
73
|
+
end: e.end,
|
|
74
|
+
length: e.length,
|
|
75
|
+
range: e.range
|
|
76
|
+
});
|
|
77
|
+
if (e.$cstNode) {
|
|
78
|
+
let n = e.$textRegion = t(e.$cstNode), r = n.assignments = {};
|
|
79
|
+
return Object.keys(e).filter((e) => !e.startsWith("$")).forEach((n) => {
|
|
80
|
+
let a = findNodesForProperty(e.$cstNode, n).map(t);
|
|
81
|
+
a.length !== 0 && (r[n] = a);
|
|
82
|
+
}), e;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
linkNode(t, n, r, i, a, o) {
|
|
86
|
+
for (let [i, a] of Object.entries(t)) if (Array.isArray(a)) for (let o = 0; o < a.length; o++) {
|
|
87
|
+
let c = a[o];
|
|
88
|
+
isIntermediateReference(c) ? a[o] = this.reviveReference(t, i, n, c, r) : isAstNode(c) && this.linkNode(c, n, r, t, i, o);
|
|
89
|
+
}
|
|
90
|
+
else isIntermediateReference(a) ? t[i] = this.reviveReference(t, i, n, a, r) : isAstNode(a) && this.linkNode(a, n, r, t, i);
|
|
91
|
+
let c = t;
|
|
92
|
+
c.$container = i, c.$containerProperty = a, c.$containerIndex = o;
|
|
93
|
+
}
|
|
94
|
+
reviveReference(t, n, r, i, a) {
|
|
95
|
+
let o = i.$refText, s = i.$error, c;
|
|
96
|
+
if (i.$ref) {
|
|
97
|
+
let t = this.getRefNode(r, i.$ref, a.uriConverter);
|
|
98
|
+
if (isAstNode(t)) return o ||= this.nameProvider.getName(t), {
|
|
99
|
+
$refText: o ?? "",
|
|
100
|
+
ref: t
|
|
101
|
+
};
|
|
102
|
+
s = t;
|
|
103
|
+
} else if (i.$refs) {
|
|
104
|
+
let t = [];
|
|
105
|
+
for (let n of i.$refs) {
|
|
106
|
+
let i = this.getRefNode(r, n, a.uriConverter);
|
|
107
|
+
isAstNode(i) && t.push({ ref: i });
|
|
108
|
+
}
|
|
109
|
+
if (t.length === 0) c = {
|
|
110
|
+
$refText: o ?? "",
|
|
111
|
+
items: t
|
|
112
|
+
}, s ??= "Could not resolve multi-reference";
|
|
113
|
+
else return {
|
|
114
|
+
$refText: o ?? "",
|
|
115
|
+
items: t
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
if (s) return c ??= {
|
|
119
|
+
$refText: o ?? "",
|
|
120
|
+
ref: void 0
|
|
121
|
+
}, c.error = {
|
|
122
|
+
info: {
|
|
123
|
+
container: t,
|
|
124
|
+
property: n,
|
|
125
|
+
reference: c
|
|
126
|
+
},
|
|
127
|
+
message: s
|
|
128
|
+
}, c;
|
|
129
|
+
}
|
|
130
|
+
getRefNode(e, t, n) {
|
|
131
|
+
try {
|
|
132
|
+
let r = t.indexOf("#");
|
|
133
|
+
if (r === 0) return this.astNodeLocator.getAstNode(e, t.substring(1)) || "Could not resolve path: " + t;
|
|
134
|
+
if (r < 0) {
|
|
135
|
+
let e = n ? n(t) : URI.parse(t), r = this.langiumDocuments.getDocument(e);
|
|
136
|
+
return r ? r.parseResult.value : "Could not find document for URI: " + t;
|
|
137
|
+
}
|
|
138
|
+
let i = n ? n(t.substring(0, r)) : URI.parse(t.substring(0, r)), o = this.langiumDocuments.getDocument(i);
|
|
139
|
+
return o ? r === t.length - 1 ? o.parseResult.value : this.astNodeLocator.getAstNode(o.parseResult.value, t.substring(r + 1)) || "Could not resolve URI: " + t : "Could not find document for URI: " + t;
|
|
140
|
+
} catch (e) {
|
|
141
|
+
return String(e);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
export { DefaultJsonSerializer, isAstNodeWithComment };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UriUtils } from "./utils/uri-utils.js";
|
|
2
|
+
var DefaultServiceRegistry = class {
|
|
3
|
+
get map() {
|
|
4
|
+
return this.fileExtensionMap;
|
|
5
|
+
}
|
|
6
|
+
constructor(e) {
|
|
7
|
+
this.languageIdMap = /* @__PURE__ */ new Map(), this.fileExtensionMap = /* @__PURE__ */ new Map(), this.fileNameMap = /* @__PURE__ */ new Map(), this.textDocuments = e?.workspace.TextDocuments;
|
|
8
|
+
}
|
|
9
|
+
register(e) {
|
|
10
|
+
let t = e.LanguageMetaData;
|
|
11
|
+
for (let n of t.fileExtensions) this.fileExtensionMap.has(n) && console.warn(`The file extension ${n} is used by multiple languages. It is now assigned to '${t.languageId}'.`), this.fileExtensionMap.set(n, e);
|
|
12
|
+
if (t.fileNames) for (let n of t.fileNames) this.fileNameMap.has(n) && console.warn(`The file name ${n} is used by multiple languages. It is now assigned to '${t.languageId}'.`), this.fileNameMap.set(n, e);
|
|
13
|
+
this.languageIdMap.set(t.languageId, e);
|
|
14
|
+
}
|
|
15
|
+
getServices(t) {
|
|
16
|
+
if (this.languageIdMap.size === 0) throw Error("The service registry is empty. Use `register` to register the services of a language.");
|
|
17
|
+
let n = this.textDocuments?.get(t)?.languageId;
|
|
18
|
+
if (n !== void 0) {
|
|
19
|
+
let e = this.languageIdMap.get(n);
|
|
20
|
+
if (e) return e;
|
|
21
|
+
}
|
|
22
|
+
let r = UriUtils.extname(t), i = UriUtils.basename(t), a = this.fileNameMap.get(i) ?? this.fileExtensionMap.get(r);
|
|
23
|
+
if (!a) throw n ? Error(`The service registry contains no services for the extension '${r}' for language '${n}'.`) : Error(`The service registry contains no services for the extension '${r}'.`);
|
|
24
|
+
return a;
|
|
25
|
+
}
|
|
26
|
+
hasServices(e) {
|
|
27
|
+
try {
|
|
28
|
+
return this.getServices(e), !0;
|
|
29
|
+
} catch {
|
|
30
|
+
return !1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
get all() {
|
|
34
|
+
return Array.from(this.languageIdMap.values());
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export { DefaultServiceRegistry };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
function isAstNode(e) {
|
|
2
|
+
return typeof e == "object" && !!e && typeof e.$type == "string";
|
|
3
|
+
}
|
|
4
|
+
function isReference(e) {
|
|
5
|
+
return typeof e == "object" && !!e && typeof e.$refText == "string" && "ref" in e;
|
|
6
|
+
}
|
|
7
|
+
function isMultiReference(e) {
|
|
8
|
+
return typeof e == "object" && !!e && typeof e.$refText == "string" && "items" in e;
|
|
9
|
+
}
|
|
10
|
+
function isAstNodeDescription(e) {
|
|
11
|
+
return typeof e == "object" && !!e && typeof e.name == "string" && typeof e.type == "string" && typeof e.path == "string";
|
|
12
|
+
}
|
|
13
|
+
function isLinkingError(e) {
|
|
14
|
+
return typeof e == "object" && !!e && typeof e.info == "object" && typeof e.message == "string";
|
|
15
|
+
}
|
|
16
|
+
var AbstractAstReflection = class {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.subtypes = {}, this.allSubtypes = {};
|
|
19
|
+
}
|
|
20
|
+
getAllTypes() {
|
|
21
|
+
return Object.keys(this.types);
|
|
22
|
+
}
|
|
23
|
+
getReferenceType(e) {
|
|
24
|
+
let a = this.types[e.container.$type];
|
|
25
|
+
if (!a) throw Error(`Type ${e.container.$type || "undefined"} not found.`);
|
|
26
|
+
let o = a.properties[e.property]?.referenceType;
|
|
27
|
+
if (!o) throw Error(`Property ${e.property || "undefined"} of type ${e.container.$type} is not a reference.`);
|
|
28
|
+
return o;
|
|
29
|
+
}
|
|
30
|
+
getTypeMetaData(e) {
|
|
31
|
+
return this.types[e] || {
|
|
32
|
+
name: e,
|
|
33
|
+
properties: {},
|
|
34
|
+
superTypes: []
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
isInstance(a, o) {
|
|
38
|
+
return isAstNode(a) && this.isSubtype(a.$type, o);
|
|
39
|
+
}
|
|
40
|
+
isSubtype(e, a) {
|
|
41
|
+
if (e === a) return !0;
|
|
42
|
+
let o = this.subtypes[e];
|
|
43
|
+
o ||= this.subtypes[e] = {};
|
|
44
|
+
let s = o[a];
|
|
45
|
+
if (s !== void 0) return s;
|
|
46
|
+
{
|
|
47
|
+
let s = this.types[e], c = s ? s.superTypes.some((e) => this.isSubtype(e, a)) : !1;
|
|
48
|
+
return o[a] = c, c;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
getAllSubTypes(e) {
|
|
52
|
+
let a = this.allSubtypes[e];
|
|
53
|
+
if (a) return a;
|
|
54
|
+
{
|
|
55
|
+
let a = this.getAllTypes(), o = [];
|
|
56
|
+
for (let s of a) this.isSubtype(s, e) && o.push(s);
|
|
57
|
+
return this.allSubtypes[e] = o, o;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
function isCompositeCstNode(e) {
|
|
62
|
+
return typeof e == "object" && !!e && Array.isArray(e.content);
|
|
63
|
+
}
|
|
64
|
+
function isLeafCstNode(e) {
|
|
65
|
+
return typeof e == "object" && !!e && typeof e.tokenType == "object";
|
|
66
|
+
}
|
|
67
|
+
function isRootCstNode(e) {
|
|
68
|
+
return isCompositeCstNode(e) && typeof e.fullText == "string";
|
|
69
|
+
}
|
|
70
|
+
export { AbstractAstReflection, isAstNode, isAstNodeDescription, isCompositeCstNode, isLeafCstNode, isLinkingError, isMultiReference, isReference, isRootCstNode };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { __export } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { isAstNode, isMultiReference, isReference } from "../syntax-tree.js";
|
|
3
|
+
import { DONE_RESULT, StreamImpl, TreeStreamImpl } from "./stream.js";
|
|
4
|
+
import { inRange } from "./cst-utils.js";
|
|
5
|
+
var ast_utils_exports = /* @__PURE__ */ __export({
|
|
6
|
+
assignMandatoryProperties: () => assignMandatoryProperties,
|
|
7
|
+
copyAstNode: () => copyAstNode,
|
|
8
|
+
findRootNode: () => findRootNode,
|
|
9
|
+
getContainerOfType: () => getContainerOfType,
|
|
10
|
+
getDocument: () => getDocument,
|
|
11
|
+
getReferenceNodes: () => getReferenceNodes,
|
|
12
|
+
hasContainerOfType: () => hasContainerOfType,
|
|
13
|
+
linkContentToContainer: () => linkContentToContainer,
|
|
14
|
+
streamAllContents: () => streamAllContents,
|
|
15
|
+
streamAst: () => streamAst,
|
|
16
|
+
streamContents: () => streamContents,
|
|
17
|
+
streamReferences: () => streamReferences
|
|
18
|
+
}, 1);
|
|
19
|
+
function linkContentToContainer(e, g = {}) {
|
|
20
|
+
for (let [_, v] of Object.entries(e)) _.startsWith("$") || (Array.isArray(v) ? v.forEach((v, y) => {
|
|
21
|
+
isAstNode(v) && (v.$container = e, v.$containerProperty = _, v.$containerIndex = y, g.deep && linkContentToContainer(v, g));
|
|
22
|
+
}) : isAstNode(v) && (v.$container = e, v.$containerProperty = _, g.deep && linkContentToContainer(v, g)));
|
|
23
|
+
}
|
|
24
|
+
function getContainerOfType(e, h) {
|
|
25
|
+
let g = e;
|
|
26
|
+
for (; g;) {
|
|
27
|
+
if (h(g)) return g;
|
|
28
|
+
g = g.$container;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function hasContainerOfType(e, h) {
|
|
32
|
+
let g = e;
|
|
33
|
+
for (; g;) {
|
|
34
|
+
if (h(g)) return !0;
|
|
35
|
+
g = g.$container;
|
|
36
|
+
}
|
|
37
|
+
return !1;
|
|
38
|
+
}
|
|
39
|
+
function getDocument(e) {
|
|
40
|
+
let h = findRootNode(e).$document;
|
|
41
|
+
if (!h) throw Error("AST node has no document.");
|
|
42
|
+
return h;
|
|
43
|
+
}
|
|
44
|
+
function findRootNode(e) {
|
|
45
|
+
for (; e.$container;) e = e.$container;
|
|
46
|
+
return e;
|
|
47
|
+
}
|
|
48
|
+
function getReferenceNodes(e) {
|
|
49
|
+
return isReference(e) ? e.ref ? [e.ref] : [] : isMultiReference(e) ? e.items.map((e) => e.ref) : [];
|
|
50
|
+
}
|
|
51
|
+
function streamContents(e, g) {
|
|
52
|
+
if (!e) throw Error("Node must be an AstNode.");
|
|
53
|
+
let _ = g?.range;
|
|
54
|
+
return new StreamImpl(() => ({
|
|
55
|
+
keys: Object.keys(e),
|
|
56
|
+
keyIndex: 0,
|
|
57
|
+
arrayIndex: 0
|
|
58
|
+
}), (g) => {
|
|
59
|
+
for (; g.keyIndex < g.keys.length;) {
|
|
60
|
+
let v = g.keys[g.keyIndex];
|
|
61
|
+
if (!v.startsWith("$")) {
|
|
62
|
+
let y = e[v];
|
|
63
|
+
if (isAstNode(y)) {
|
|
64
|
+
if (g.keyIndex++, isAstNodeInRange(y, _)) return {
|
|
65
|
+
done: !1,
|
|
66
|
+
value: y
|
|
67
|
+
};
|
|
68
|
+
} else if (Array.isArray(y)) {
|
|
69
|
+
for (; g.arrayIndex < y.length;) {
|
|
70
|
+
let e = y[g.arrayIndex++];
|
|
71
|
+
if (isAstNode(e) && isAstNodeInRange(e, _)) return {
|
|
72
|
+
done: !1,
|
|
73
|
+
value: e
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
g.arrayIndex = 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
g.keyIndex++;
|
|
80
|
+
}
|
|
81
|
+
return DONE_RESULT;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function streamAllContents(e, h) {
|
|
85
|
+
if (!e) throw Error("Root node must be an AstNode.");
|
|
86
|
+
return new TreeStreamImpl(e, (e) => streamContents(e, h));
|
|
87
|
+
}
|
|
88
|
+
function streamAst(e, h) {
|
|
89
|
+
if (e) {
|
|
90
|
+
if (h?.range && !isAstNodeInRange(e, h.range)) return new TreeStreamImpl(e, () => []);
|
|
91
|
+
} else throw Error("Root node must be an AstNode.");
|
|
92
|
+
return new TreeStreamImpl(e, (e) => streamContents(e, h), { includeRoot: !0 });
|
|
93
|
+
}
|
|
94
|
+
function isAstNodeInRange(e, h) {
|
|
95
|
+
if (!h) return !0;
|
|
96
|
+
let g = e.$cstNode?.range;
|
|
97
|
+
return g ? inRange(g, h) : !1;
|
|
98
|
+
}
|
|
99
|
+
function streamReferences(e) {
|
|
100
|
+
return new StreamImpl(() => ({
|
|
101
|
+
keys: Object.keys(e),
|
|
102
|
+
keyIndex: 0,
|
|
103
|
+
arrayIndex: 0
|
|
104
|
+
}), (h) => {
|
|
105
|
+
for (; h.keyIndex < h.keys.length;) {
|
|
106
|
+
let v = h.keys[h.keyIndex];
|
|
107
|
+
if (!v.startsWith("$")) {
|
|
108
|
+
let y = e[v];
|
|
109
|
+
if (isReference(y) || isMultiReference(y)) return h.keyIndex++, {
|
|
110
|
+
done: !1,
|
|
111
|
+
value: {
|
|
112
|
+
reference: y,
|
|
113
|
+
container: e,
|
|
114
|
+
property: v
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
if (Array.isArray(y)) {
|
|
118
|
+
for (; h.arrayIndex < y.length;) {
|
|
119
|
+
let b = h.arrayIndex++, x = y[b];
|
|
120
|
+
if (isReference(x) || isMultiReference(y)) return {
|
|
121
|
+
done: !1,
|
|
122
|
+
value: {
|
|
123
|
+
reference: x,
|
|
124
|
+
container: e,
|
|
125
|
+
property: v,
|
|
126
|
+
index: b
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
h.arrayIndex = 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
h.keyIndex++;
|
|
134
|
+
}
|
|
135
|
+
return DONE_RESULT;
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function assignMandatoryProperties(e, h) {
|
|
139
|
+
let g = e.getTypeMetaData(h.$type), _ = h;
|
|
140
|
+
for (let e of Object.values(g.properties)) e.defaultValue !== void 0 && _[e.name] === void 0 && (_[e.name] = copyDefaultValue(e.defaultValue));
|
|
141
|
+
}
|
|
142
|
+
function copyDefaultValue(e) {
|
|
143
|
+
return Array.isArray(e) ? [...e.map(copyDefaultValue)] : e;
|
|
144
|
+
}
|
|
145
|
+
function copyAstNode(e, g, v) {
|
|
146
|
+
let y = { $type: e.$type };
|
|
147
|
+
v && (v.set(e, y), v.set(y, e));
|
|
148
|
+
for (let [b, x] of Object.entries(e)) if (!b.startsWith("$")) if (isAstNode(x)) y[b] = copyAstNode(x, g, v);
|
|
149
|
+
else if (isReference(x)) y[b] = g(y, b, x.$refNode, x.$refText, x);
|
|
150
|
+
else if (Array.isArray(x)) {
|
|
151
|
+
let e = [];
|
|
152
|
+
for (let S of x) isAstNode(S) ? e.push(copyAstNode(S, g, v)) : isReference(S) ? e.push(g(y, b, S.$refNode, S.$refText, S)) : e.push(S);
|
|
153
|
+
y[b] = e;
|
|
154
|
+
} else y[b] = x;
|
|
155
|
+
return linkContentToContainer(y, { deep: !0 }), y;
|
|
156
|
+
}
|
|
157
|
+
export { assignMandatoryProperties, ast_utils_exports, findRootNode, getContainerOfType, getDocument, getReferenceNodes, linkContentToContainer, streamAllContents, streamAst, streamContents, streamReferences };
|