eliscript 0.0.1 → 0.0.2
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/README.md +59 -0
- package/bootstrap/README.md +26 -0
- package/bootstrap/backends/README.md +515 -0
- package/bootstrap/backends/async.eli +230 -0
- package/bootstrap/backends/binary.eli +173 -0
- package/bootstrap/backends/capabilities.eli +74 -0
- package/bootstrap/backends/elf.eli +246 -0
- package/bootstrap/backends/managed.eli +5976 -0
- package/bootstrap/backends/memory.eli +100 -0
- package/bootstrap/backends/native.eli +2000 -0
- package/bootstrap/backends/numeric.eli +1362 -0
- package/bootstrap/backends/optimize.eli +79 -0
- package/bootstrap/backends/regexp.eli +2263 -0
- package/bootstrap/backends/sha256.eli +138 -0
- package/bootstrap/backends/wasm.eli +1161 -0
- package/bootstrap/compiler/analyzer.eli +165 -77
- package/bootstrap/compiler/compiler.eli +43 -19
- package/bootstrap/compiler/emitter.eli +780 -170
- package/bootstrap/compiler/expander.eli +136 -45
- package/bootstrap/compiler/formatter.eli +8 -1
- package/bootstrap/compiler/ir.eli +148 -45
- package/bootstrap/compiler/lower.eli +29 -2
- package/bootstrap/compiler/project.eli +51 -21
- package/bootstrap/compiler/reader.eli +128 -36
- package/bootstrap/compiler/source-map.eli +46 -4
- package/bootstrap/compiler/symbol.eli +2 -1
- package/bootstrap/compiler/syntax.eli +47 -12
- package/bootstrap/compiler/transient-analysis.eli +40 -4
- package/bootstrap/host/check-cli-legacy.mjs +163 -0
- package/bootstrap/host/check-cli.mjs +59 -158
- package/bootstrap/host/check-cli.mjs.map +1 -0
- package/bootstrap/host/compiler-session.eli +1579 -0
- package/bootstrap/host/compiler-tools.eli +513 -0
- package/bootstrap/host/eliscript-cli-legacy.mjs +37 -0
- package/bootstrap/host/eliscript-cli.mjs +53 -33
- package/bootstrap/host/eliscript-cli.mjs.map +1 -0
- package/bootstrap/host/project-cli-legacy.mjs +295 -0
- package/bootstrap/host/project-cli.mjs +74 -289
- package/bootstrap/host/project-cli.mjs.map +1 -0
- package/bootstrap/host/project-legacy.mjs +1080 -0
- package/bootstrap/host/project.mjs +210 -1060
- package/bootstrap/host/project.mjs.map +1 -0
- package/bootstrap/runtime/UNICODE-LICENSE.txt +39 -0
- package/bootstrap/runtime/memory.eli +30379 -0
- package/browser/host.mjs +89 -0
- package/compiler/eliscript-analyzer.el +371 -4
- package/compiler/eliscript-cli.el +84 -1
- package/compiler/eliscript-emitter.el +1189 -256
- package/compiler/eliscript-expander.el +147 -10
- package/compiler/eliscript-ir-emitter.el +725 -208
- package/compiler/eliscript-lower.el +127 -1
- package/compiler/eliscript-portable.el +177 -51
- package/compiler/eliscript-project.el +20 -2
- package/compiler/eliscript-reader.el +141 -57
- package/compiler/eliscript-source-map.el +26 -12
- package/compiler/eliscript-transient-analysis.el +382 -19
- package/dist/backends/async.mjs +561 -0
- package/dist/backends/async.mjs.macro-origins.json +1 -0
- package/dist/backends/async.mjs.map +1 -0
- package/dist/backends/binary.mjs +381 -0
- package/dist/backends/binary.mjs.macro-origins.json +1 -0
- package/dist/backends/binary.mjs.map +1 -0
- package/dist/backends/capabilities.mjs +237 -0
- package/dist/backends/capabilities.mjs.macro-origins.json +1 -0
- package/dist/backends/capabilities.mjs.map +1 -0
- package/dist/backends/elf.mjs +540 -0
- package/dist/backends/elf.mjs.macro-origins.json +1 -0
- package/dist/backends/elf.mjs.map +1 -0
- package/dist/backends/managed.mjs +10616 -0
- package/dist/backends/managed.mjs.macro-origins.json +1 -0
- package/dist/backends/managed.mjs.map +1 -0
- package/dist/backends/memory.mjs +278 -0
- package/dist/backends/memory.mjs.macro-origins.json +1 -0
- package/dist/backends/memory.mjs.map +1 -0
- package/dist/backends/native.mjs +4099 -0
- package/dist/backends/native.mjs.macro-origins.json +1 -0
- package/dist/backends/native.mjs.map +1 -0
- package/dist/backends/numeric.mjs +2458 -0
- package/dist/backends/numeric.mjs.macro-origins.json +1 -0
- package/dist/backends/numeric.mjs.map +1 -0
- package/dist/backends/optimize.mjs +204 -0
- package/dist/backends/optimize.mjs.macro-origins.json +1 -0
- package/dist/backends/optimize.mjs.map +1 -0
- package/dist/backends/regexp.mjs +2033 -0
- package/dist/backends/regexp.mjs.macro-origins.json +1 -0
- package/dist/backends/regexp.mjs.map +1 -0
- package/dist/backends/sha256.mjs +310 -0
- package/dist/backends/sha256.mjs.macro-origins.json +1 -0
- package/dist/backends/sha256.mjs.map +1 -0
- package/dist/backends/wasm.mjs +2258 -0
- package/dist/backends/wasm.mjs.macro-origins.json +1 -0
- package/dist/backends/wasm.mjs.map +1 -0
- package/dist/bootstrap/analyzer.mjs +1908 -776
- package/dist/bootstrap/analyzer.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/analyzer.mjs.map +1 -1
- package/dist/bootstrap/compiler.mjs +450 -142
- package/dist/bootstrap/compiler.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/compiler.mjs.map +1 -1
- package/dist/bootstrap/emitter.mjs +3083 -909
- package/dist/bootstrap/emitter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/emitter.mjs.map +1 -1
- package/dist/bootstrap/expander.mjs +2887 -1233
- package/dist/bootstrap/expander.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/expander.mjs.map +1 -1
- package/dist/bootstrap/formatter.mjs +582 -218
- package/dist/bootstrap/formatter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/formatter.mjs.map +1 -1
- package/dist/bootstrap/ir.mjs +670 -116
- package/dist/bootstrap/ir.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/ir.mjs.map +1 -1
- package/dist/bootstrap/lower.mjs +866 -257
- package/dist/bootstrap/lower.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/lower.mjs.map +1 -1
- package/dist/bootstrap/package.json +1 -0
- package/dist/bootstrap/project.mjs +1168 -498
- package/dist/bootstrap/project.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/project.mjs.map +1 -1
- package/dist/bootstrap/reader.mjs +674 -175
- package/dist/bootstrap/reader.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/reader.mjs.map +1 -1
- package/dist/bootstrap/runtime/math.mjs +1117 -0
- package/dist/bootstrap/runtime/math.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs +10125 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case.mjs +281 -0
- package/dist/bootstrap/runtime/unicode-case.mjs.map +1 -0
- package/dist/bootstrap/source-map.mjs +430 -119
- package/dist/bootstrap/source-map.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/source-map.mjs.map +1 -1
- package/dist/bootstrap/symbol.mjs +229 -53
- package/dist/bootstrap/symbol.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/symbol.mjs.map +1 -1
- package/dist/bootstrap/syntax.mjs +205 -7
- package/dist/bootstrap/syntax.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/syntax.mjs.map +1 -1
- package/dist/bootstrap/transient-analysis.mjs +1185 -489
- package/dist/bootstrap/transient-analysis.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/transient-analysis.mjs.map +1 -1
- package/dist/browser/compiler.js +199 -6478
- package/dist/browser/host.mjs +446 -0
- package/dist/browser/loader.js +1 -0
- package/dist/browser/loader.mjs +231 -0
- package/dist/browser/worker.mjs +60 -0
- package/dist/compiler-artifact.json +1 -0
- package/dist/host/compiler-session.mjs +2980 -0
- package/dist/host/compiler-session.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-session.mjs.map +1 -0
- package/dist/host/compiler-tools.mjs +1084 -0
- package/dist/host/compiler-tools.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-tools.mjs.map +1 -0
- package/dist/literal-sources/runtime/core/collection-internals.eli +60 -0
- package/dist/literal-sources/runtime/core/collection.eli +579 -0
- package/dist/literal-sources/runtime/core/data-text.eli +290 -0
- package/dist/literal-sources/runtime/core/data.eli +22 -0
- package/dist/literal-sources/runtime/core/identifier.eli +44 -0
- package/dist/literal-sources/runtime/core/lazy-sequence.eli +131 -0
- package/dist/literal-sources/runtime/core/list.eli +19 -0
- package/dist/literal-sources/runtime/core/map.eli +9 -0
- package/dist/literal-sources/runtime/core/metadata-internals.eli +6 -0
- package/dist/literal-sources/runtime/core/metadata.eli +23 -0
- package/dist/literal-sources/runtime/core/object.eli +8 -0
- package/dist/literal-sources/runtime/core/order.eli +123 -0
- package/dist/literal-sources/runtime/core/persistent-kind.eli +28 -0
- package/dist/literal-sources/runtime/core/protocol-error.eli +32 -0
- package/dist/literal-sources/runtime/core/protocol.eli +28 -0
- package/dist/literal-sources/runtime/core/queue.eli +9 -0
- package/dist/literal-sources/runtime/core/record.eli +191 -0
- package/dist/literal-sources/runtime/core/regex.eli +158 -0
- package/dist/literal-sources/runtime/core/sequence.eli +305 -0
- package/dist/literal-sources/runtime/core/set-algebra.eli +28 -0
- package/dist/literal-sources/runtime/core/set.eli +9 -0
- package/dist/literal-sources/runtime/core/sorted.eli +408 -0
- package/dist/literal-sources/runtime/core/text.eli +14 -0
- package/dist/literal-sources/runtime/core/transducer.eli +268 -0
- package/dist/literal-sources/runtime/core/transient.eli +17 -0
- package/dist/literal-sources/runtime/core/truth.eli +4 -0
- package/dist/literal-sources/runtime/core/type.eli +232 -0
- package/dist/literal-sources/runtime/core/value-internals.eli +13 -0
- package/dist/literal-sources/runtime/core/value.eli +19 -0
- package/dist/literal-sources/runtime/core/vector.eli +20 -0
- package/dist/literal-sources/runtime/literals.eli +23 -0
- package/dist/literal-sources/runtime/testing/value.eli +6 -0
- package/dist/literal-sources/runtime/wire/http-rpc.eli +362 -0
- package/dist/literal-sources/runtime/wire/markdown.eli +275 -0
- package/dist/literal-sources/runtime/wire/schema.eli +193 -0
- package/dist/literal-sources/stdlib/bit.eli +36 -0
- package/dist/literal-sources/stdlib/core/data.eli +306 -0
- package/dist/literal-sources/stdlib/core/object.eli +89 -0
- package/dist/literal-sources/stdlib/core/protocol.eli +451 -0
- package/dist/literal-sources/stdlib/core/set.eli +312 -0
- package/dist/literal-sources/stdlib/core/text.eli +103 -0
- package/dist/literal-sources/stdlib/managed-literal-protocols.eli +483 -0
- package/dist/literal-sources/stdlib/managed-literals.eli +1414 -0
- package/dist/literal-sources/stdlib/managed-queue-state.eli +65 -0
- package/dist/literal-sources/stdlib/managed-sorted-state.eli +233 -0
- package/dist/literal-sources/stdlib/managed-transient-state.eli +348 -0
- package/dist/literal-sources/stdlib/managed-value-state.eli +153 -0
- package/dist/literal-sources/stdlib/managed-vector-view-state.eli +102 -0
- package/dist/literal-sources/stdlib/persistent-list.eli +145 -0
- package/dist/literal-sources/stdlib/persistent-map.eli +724 -0
- package/dist/literal-sources/stdlib/persistent-set.eli +236 -0
- package/dist/literal-sources/stdlib/persistent-vector.eli +359 -0
- package/dist/literal-sources/stdlib/value.eli +325 -0
- package/dist/package.json +10 -0
- package/dist/runtime/math.mjs +1116 -0
- package/dist/runtime/math.mjs.macro-origins.json +1 -0
- package/dist/runtime/math.mjs.map +1 -0
- package/dist/runtime/unicode-case-data.mjs +10124 -0
- package/dist/runtime/unicode-case-data.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/runtime/unicode-case.mjs +280 -0
- package/dist/runtime/unicode-case.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case.mjs.map +1 -0
- package/dist/runtime.eli +30379 -0
- package/dist/stage3-release.json +1 -0
- package/editor/README.md +1 -1
- package/editor/eliscript-mode.el +1 -1
- package/editor/eliscript-repl.el +1 -1
- package/package.json +97 -10
- package/platform/http.mjs +20 -0
- package/runtime/array-text.mjs +159 -0
- package/runtime/core/map-internals.mjs +27 -9
- package/runtime/core/object-impl.mjs +26 -17
- package/runtime/core/object-impl.mjs.map +1 -1
- package/runtime/core/protocol-impl.mjs +682 -255
- package/runtime/core/protocol-impl.mjs.map +1 -1
- package/runtime/core/protocol.mjs +4 -0
- package/runtime/core/record.mjs +23 -2
- package/runtime/core/regex.mjs +4 -0
- package/runtime/core/sorted.mjs +53 -0
- package/runtime/core/text-impl.mjs +167 -48
- package/runtime/core/text-impl.mjs.map +1 -1
- package/runtime/core/type.mjs +75 -3
- package/runtime/core/vector.mjs +6 -0
- package/runtime/math.eli +429 -0
- package/runtime/math.mjs +1116 -0
- package/runtime/math.mjs.map +1 -0
- package/runtime/number-radix.mjs +105 -0
- package/runtime/unicode-case-data.eli +29 -0
- package/runtime/unicode-case-data.mjs +10124 -0
- package/runtime/unicode-case-data.mjs.map +1 -0
- package/runtime/unicode-case.eli +100 -0
- package/runtime/unicode-case.mjs +280 -0
- package/runtime/unicode-case.mjs.map +1 -0
- package/runtime/wire/http-rpc.mjs +168 -0
- package/runtime/wire/markdown.mjs +196 -0
- package/runtime/wire/schema.mjs +109 -0
- package/stdlib/README.md +54 -0
- package/stdlib/core/protocol.eli +81 -17
- package/stdlib/core/seq.eli +1 -1
- package/stdlib/core/zipper.eli +114 -47
- package/stdlib/gepo.eli +12 -0
- package/stdlib/interop/js.eli +56 -15
- package/stdlib/managed-literal-protocols.eli +483 -0
- package/stdlib/managed-literals.eli +1414 -0
- package/stdlib/managed-protocol-error.eli +32 -0
- package/stdlib/managed-queue-state.eli +65 -0
- package/stdlib/managed-runtime-collection-internals.eli +60 -0
- package/stdlib/managed-runtime-collection.eli +579 -0
- package/stdlib/managed-runtime-data-text.eli +290 -0
- package/stdlib/managed-runtime-data.eli +22 -0
- package/stdlib/managed-runtime-identifier.eli +44 -0
- package/stdlib/managed-runtime-lazy-sequence.eli +131 -0
- package/stdlib/managed-runtime-list.eli +19 -0
- package/stdlib/managed-runtime-literals.eli +23 -0
- package/stdlib/managed-runtime-map.eli +9 -0
- package/stdlib/managed-runtime-metadata-internals.eli +6 -0
- package/stdlib/managed-runtime-metadata.eli +23 -0
- package/stdlib/managed-runtime-object.eli +8 -0
- package/stdlib/managed-runtime-order.eli +123 -0
- package/stdlib/managed-runtime-persistent-kind.eli +28 -0
- package/stdlib/managed-runtime-protocol.eli +28 -0
- package/stdlib/managed-runtime-queue.eli +9 -0
- package/stdlib/managed-runtime-record.eli +191 -0
- package/stdlib/managed-runtime-regex.eli +158 -0
- package/stdlib/managed-runtime-sequence.eli +305 -0
- package/stdlib/managed-runtime-set-algebra.eli +28 -0
- package/stdlib/managed-runtime-set.eli +9 -0
- package/stdlib/managed-runtime-sorted.eli +408 -0
- package/stdlib/managed-runtime-text.eli +14 -0
- package/stdlib/managed-runtime-transducer.eli +268 -0
- package/stdlib/managed-runtime-transient.eli +17 -0
- package/stdlib/managed-runtime-truth.eli +4 -0
- package/stdlib/managed-runtime-type.eli +232 -0
- package/stdlib/managed-runtime-value-internals.eli +13 -0
- package/stdlib/managed-runtime-value.eli +19 -0
- package/stdlib/managed-runtime-vector.eli +20 -0
- package/stdlib/managed-sorted-state.eli +233 -0
- package/stdlib/managed-testing-value.eli +6 -0
- package/stdlib/managed-transient-state.eli +348 -0
- package/stdlib/managed-value-state.eli +153 -0
- package/stdlib/managed-vector-view-state.eli +102 -0
- package/stdlib/managed-wire-http-rpc.eli +362 -0
- package/stdlib/managed-wire-markdown.eli +275 -0
- package/stdlib/managed-wire-schema.eli +193 -0
- package/stdlib/mdp.eli +7 -0
- package/stdlib/mds.eli +4 -0
- package/stdlib/persistent-vector.eli +23 -6
- package/tools/acceptance/check-legacy.mjs +687 -0
- package/tools/acceptance/check.eli +431 -0
- package/tools/acceptance/compile-evidence.el +49 -0
- package/tools/acceptance/finalize-legacy.mjs +498 -0
- package/tools/acceptance/finalize.eli +270 -0
- package/tools/backends/benchmark.mjs +175 -0
- package/tools/backends/build.mjs +135 -0
- package/tools/backends/compile.mjs +94 -0
- package/tools/backends/compiler-bootstrap.mjs +1001 -0
- package/tools/backends/compiler-browser.mjs +361 -0
- package/tools/backends/compiler-build.mjs +1628 -0
- package/tools/backends/compiler-cli-legacy.mjs +334 -0
- package/tools/backends/compiler-cli.mjs +29 -0
- package/tools/backends/compiler-corpus-bit.mjs +234 -0
- package/tools/backends/compiler-corpus-cli-adapters-legacy.mjs +362 -0
- package/tools/backends/compiler-corpus-cli-adapters.mjs +247 -0
- package/tools/backends/compiler-corpus-debugging.mjs +221 -0
- package/tools/backends/compiler-corpus-emitter.mjs +324 -0
- package/tools/backends/compiler-corpus-evaluation-adapters.mjs +65 -0
- package/tools/backends/compiler-corpus-execution-legacy.mjs +769 -0
- package/tools/backends/compiler-corpus-execution.mjs +3324 -0
- package/tools/backends/compiler-corpus-fuzz.mjs +229 -0
- package/tools/backends/compiler-corpus-generations.mjs +208 -0
- package/tools/backends/compiler-corpus-host-context-legacy.mjs +114 -0
- package/tools/backends/compiler-corpus-host-context.mjs +550 -0
- package/tools/backends/compiler-corpus-identity-host.mjs +553 -0
- package/tools/backends/compiler-corpus-identity-value-adapters-legacy.mjs +298 -0
- package/tools/backends/compiler-corpus-identity-value-adapters.mjs +69 -0
- package/tools/backends/compiler-corpus-isolated-exports.mjs +21 -0
- package/tools/backends/compiler-corpus-legacy.mjs +1155 -0
- package/tools/backends/compiler-corpus-literal-provider.mjs +282 -0
- package/tools/backends/compiler-corpus-managed-adapters-legacy.mjs +334 -0
- package/tools/backends/compiler-corpus-managed-adapters.mjs +937 -0
- package/tools/backends/compiler-corpus-managed-cases.mjs +179 -0
- package/tools/backends/compiler-corpus-managed-fixtures-legacy.mjs +879 -0
- package/tools/backends/compiler-corpus-managed-fixtures.mjs +1287 -0
- package/tools/backends/compiler-corpus-matchers.mjs +173 -0
- package/tools/backends/compiler-corpus-original-program.mjs +612 -0
- package/tools/backends/compiler-corpus-process.mjs +765 -0
- package/tools/backends/compiler-corpus-program-driver.mjs +306 -0
- package/tools/backends/compiler-corpus-project-adapters-legacy.mjs +497 -0
- package/tools/backends/compiler-corpus-project-adapters.mjs +340 -0
- package/tools/backends/compiler-corpus-project-entry-host.mjs +511 -0
- package/tools/backends/compiler-corpus-project-transport.mjs +151 -0
- package/tools/backends/compiler-corpus-raw-fixture-observer.mjs +1438 -0
- package/tools/backends/compiler-corpus-raw-language-fixtures.mjs +1456 -0
- package/tools/backends/compiler-corpus-raw-math-fixture.mjs +346 -0
- package/tools/backends/compiler-corpus-raw-special-fixtures.mjs +523 -0
- package/tools/backends/compiler-corpus-reference-legacy.mjs +263 -0
- package/tools/backends/compiler-corpus-reference.mjs +241 -0
- package/tools/backends/compiler-corpus-runtime-adapters-legacy.mjs +843 -0
- package/tools/backends/compiler-corpus-runtime-adapters.mjs +663 -0
- package/tools/backends/compiler-corpus-source-archive.mjs +206 -0
- package/tools/backends/compiler-corpus-tools-artifact-adapters.mjs +410 -0
- package/tools/backends/compiler-corpus-tools-cli.mjs +363 -0
- package/tools/backends/compiler-corpus-tools-reference.mjs +264 -0
- package/tools/backends/compiler-corpus.mjs +2054 -0
- package/tools/backends/compiler-debug.mjs +142 -0
- package/tools/backends/compiler-matrix.mjs +1955 -0
- package/tools/backends/compiler-metadata.mjs +203 -0
- package/tools/backends/compiler-package-browser.mjs +120 -0
- package/tools/backends/compiler-package-legacy.mjs +654 -0
- package/tools/backends/compiler-package.mjs +464 -0
- package/tools/backends/compiler-project.mjs +126 -0
- package/tools/backends/compiler-session.mjs +843 -0
- package/tools/backends/compiler-sha256.mjs +152 -0
- package/tools/backends/compiler-unicode-profile-host.mjs +196 -0
- package/tools/backends/compiler-worker.mjs +573 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs +919 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -0
- package/tools/backends/dist/managed-ir-inventory.mjs +488 -0
- package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -0
- package/tools/backends/dist/record-grid.mjs +1256 -0
- package/tools/backends/dist/record-grid.mjs.map +1 -0
- package/tools/backends/dist/release-cli.mjs +460 -0
- package/tools/backends/dist/release-cli.mjs.map +1 -0
- package/tools/backends/dist/run-artifact.mjs +517 -0
- package/tools/backends/dist/run-artifact.mjs.map +1 -0
- package/tools/backends/eliscript/compiler-corpus-bit.eli +77 -0
- package/tools/backends/eliscript/compiler-corpus-debugging.eli +70 -0
- package/tools/backends/eliscript/compiler-corpus-project-entry-host.eli +256 -0
- package/tools/backends/managed-foreign-binding.mjs +497 -0
- package/tools/backends/managed-host-legacy.mjs +1181 -0
- package/tools/backends/managed-host-lifecycle.mjs +310 -0
- package/tools/backends/managed-host-object-provider.mjs +155 -0
- package/tools/backends/managed-host-object-realm.mjs +797 -0
- package/tools/backends/managed-host-proxy.mjs +71 -0
- package/tools/backends/managed-host-runtime.mjs +5868 -0
- package/tools/backends/managed-host.mjs +716 -0
- package/tools/backends/managed-module-graph-legacy.mjs +308 -0
- package/tools/backends/managed-module-graph.mjs +694 -0
- package/tools/backends/managed-runtime-host-legacy.mjs +195 -0
- package/tools/backends/managed-runtime.mjs +939 -0
- package/tools/backends/managed-source-view-legacy.mjs +332 -0
- package/tools/backends/managed-source-view.mjs +959 -0
- package/tools/backends/memory-runtime.mjs +100 -0
- package/tools/backends/native-benchmark.mjs +88 -0
- package/tools/backends/native-managed-runtime.mjs +677 -0
- package/tools/backends/native-memory.mjs +768 -0
- package/tools/backends/native-node-memory.mjs +142 -0
- package/tools/backends/native-node-runner.mjs +99 -0
- package/tools/backends/native-node-watchdog.mjs +19 -0
- package/tools/backends/native-node-worker.mjs +75 -0
- package/tools/backends/stage3-targets.mjs +486 -0
- package/tools/bootstrap-command.el +13 -0
- package/tools/bootstrap-runtime.el +101 -0
- package/tools/bootstrap-seed.el +55 -0
- package/tools/project/check-cli.eli +31 -0
- package/tools/project/project-cli.eli +42 -0
- package/tools/project/project.eli +122 -0
- package/tools/runtime/unicode-case-profiles.mjs +13 -0
- package/tools/runtime/unicode-case-runtime.el +57 -0
- package/tools/testing/source-debugging-corpus-host.eli +16 -0
- package/tools/testing/source-debugging.eli +139 -0
- package/tools/testing/stdlib-bit-corpus-host.eli +21 -0
- package/tools/testing/stdlib-bit-corpus-host.mjs +118 -0
- package/tools/testing/stdlib-bit.eli +104 -0
- package/tools/testing/stdlib-bit.mjs +255 -0
- package/bin/eliscript-bootstrap +0 -15
|
@@ -1,585 +1,1255 @@
|
|
|
1
1
|
// Generated by Eliscript. Do not edit.
|
|
2
|
+
import { tdz as __eliscript_tdz_error, immutable as __eliscript_const_error } from "data:text/javascript;base64,Y29uc3QgRSA9IFJlZmVyZW5jZUVycm9yOyBjb25zdCBUID0gVHlwZUVycm9yOyBleHBvcnQgZnVuY3Rpb24gdGR6KG5hbWUpIHsgdGhyb3cgbmV3IEUoIkNhbm5vdCBhY2Nlc3MgJyIgKyBuYW1lICsgIicgYmVmb3JlIGluaXRpYWxpemF0aW9uIik7IH0gZXhwb3J0IGZ1bmN0aW9uIGltbXV0YWJsZSgpIHsgdGhyb3cgbmV3IFQoIkFzc2lnbm1lbnQgdG8gY29uc3RhbnQgdmFyaWFibGUuIik7IH0K";
|
|
3
|
+
var __eliscript_tdz_ready_0;
|
|
4
|
+
function __eliscript_tdz_read_0() { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("project_plan_format"); return project_plan_format; }
|
|
5
|
+
function __eliscript_tdz_write_0(__eliscript_tdz_value_0) { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("project_plan_format"); return __eliscript_const_error(); }
|
|
6
|
+
var __eliscript_tdz_ready_1;
|
|
7
|
+
function __eliscript_tdz_read_1() { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("project_plan_version"); return project_plan_version; }
|
|
8
|
+
function __eliscript_tdz_write_1(__eliscript_tdz_value_1) { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("project_plan_version"); return __eliscript_const_error(); }
|
|
9
|
+
var __eliscript_tdz_ready_2;
|
|
10
|
+
function __eliscript_tdz_read_2() { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("project_plan_max_iterations"); return project_plan_max_iterations; }
|
|
11
|
+
function __eliscript_tdz_write_2(__eliscript_tdz_value_2) { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("project_plan_max_iterations"); return __eliscript_const_error(); }
|
|
12
|
+
var __eliscript_tdz_ready_3;
|
|
13
|
+
function __eliscript_tdz_read_3() { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("project_build_report_format"); return project_build_report_format; }
|
|
14
|
+
function __eliscript_tdz_write_3(__eliscript_tdz_value_3) { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("project_build_report_format"); return __eliscript_const_error(); }
|
|
15
|
+
var __eliscript_tdz_ready_4;
|
|
16
|
+
function __eliscript_tdz_read_4() { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("project_build_report_version"); return project_build_report_version; }
|
|
17
|
+
function __eliscript_tdz_write_4(__eliscript_tdz_value_4) { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("project_build_report_version"); return __eliscript_const_error(); }
|
|
18
|
+
var __eliscript_tdz_ready_5;
|
|
19
|
+
function __eliscript_tdz_read_5() { if (__eliscript_tdz_ready_5 !== true) __eliscript_tdz_error("project_build_report_multi_version"); return project_build_report_multi_version; }
|
|
20
|
+
function __eliscript_tdz_write_5(__eliscript_tdz_value_5) { if (__eliscript_tdz_ready_5 !== true) __eliscript_tdz_error("project_build_report_multi_version"); return __eliscript_const_error(); }
|
|
21
|
+
var __eliscript_tdz_ready_6;
|
|
22
|
+
function __eliscript_tdz_read_6() { if (__eliscript_tdz_ready_6 !== true) __eliscript_tdz_error("project_request_format"); return project_request_format; }
|
|
23
|
+
function __eliscript_tdz_write_6(__eliscript_tdz_value_6) { if (__eliscript_tdz_ready_6 !== true) __eliscript_tdz_error("project_request_format"); return __eliscript_const_error(); }
|
|
24
|
+
var __eliscript_tdz_ready_7;
|
|
25
|
+
function __eliscript_tdz_read_7() { if (__eliscript_tdz_ready_7 !== true) __eliscript_tdz_error("project_request_version"); return project_request_version; }
|
|
26
|
+
function __eliscript_tdz_write_7(__eliscript_tdz_value_7) { if (__eliscript_tdz_ready_7 !== true) __eliscript_tdz_error("project_request_version"); return __eliscript_const_error(); }
|
|
27
|
+
var __eliscript_tdz_ready_8;
|
|
28
|
+
function __eliscript_tdz_read_8() { if (__eliscript_tdz_ready_8 !== true) __eliscript_tdz_error("project_request_multi_version"); return project_request_multi_version; }
|
|
29
|
+
function __eliscript_tdz_write_8(__eliscript_tdz_value_8) { if (__eliscript_tdz_ready_8 !== true) __eliscript_tdz_error("project_request_multi_version"); return __eliscript_const_error(); }
|
|
30
|
+
var __eliscript_tdz_ready_9;
|
|
31
|
+
function __eliscript_tdz_read_9() { if (__eliscript_tdz_ready_9 !== true) __eliscript_tdz_error("project_configuration_version"); return project_configuration_version; }
|
|
32
|
+
function __eliscript_tdz_write_9(__eliscript_tdz_value_9) { if (__eliscript_tdz_ready_9 !== true) __eliscript_tdz_error("project_configuration_version"); return __eliscript_const_error(); }
|
|
33
|
+
var __eliscript_tdz_ready_10;
|
|
34
|
+
function __eliscript_tdz_read_10() { if (__eliscript_tdz_ready_10 !== true) __eliscript_tdz_error("project_configuration_multi_version"); return project_configuration_multi_version; }
|
|
35
|
+
function __eliscript_tdz_write_10(__eliscript_tdz_value_10) { if (__eliscript_tdz_ready_10 !== true) __eliscript_tdz_error("project_configuration_multi_version"); return __eliscript_const_error(); }
|
|
36
|
+
var __eliscript_tdz_ready_11;
|
|
37
|
+
function __eliscript_tdz_read_11() { if (__eliscript_tdz_ready_11 !== true) __eliscript_tdz_error("build_operation_format"); return build_operation_format; }
|
|
38
|
+
function __eliscript_tdz_write_11(__eliscript_tdz_value_11) { if (__eliscript_tdz_ready_11 !== true) __eliscript_tdz_error("build_operation_format"); return __eliscript_const_error(); }
|
|
39
|
+
var __eliscript_tdz_ready_12;
|
|
40
|
+
function __eliscript_tdz_read_12() { if (__eliscript_tdz_ready_12 !== true) __eliscript_tdz_error("build_operation_version"); return build_operation_version; }
|
|
41
|
+
function __eliscript_tdz_write_12(__eliscript_tdz_value_12) { if (__eliscript_tdz_ready_12 !== true) __eliscript_tdz_error("build_operation_version"); return __eliscript_const_error(); }
|
|
42
|
+
var __eliscript_tdz_ready_13;
|
|
43
|
+
function __eliscript_tdz_read_13() { if (__eliscript_tdz_ready_13 !== true) __eliscript_tdz_error("build_operation_multi_version"); return build_operation_multi_version; }
|
|
44
|
+
function __eliscript_tdz_write_13(__eliscript_tdz_value_13) { if (__eliscript_tdz_ready_13 !== true) __eliscript_tdz_error("build_operation_multi_version"); return __eliscript_const_error(); }
|
|
45
|
+
var __eliscript_tdz_ready_14;
|
|
46
|
+
function __eliscript_tdz_read_14() { if (__eliscript_tdz_ready_14 !== true) __eliscript_tdz_error("check_operation_format"); return check_operation_format; }
|
|
47
|
+
function __eliscript_tdz_write_14(__eliscript_tdz_value_14) { if (__eliscript_tdz_ready_14 !== true) __eliscript_tdz_error("check_operation_format"); return __eliscript_const_error(); }
|
|
48
|
+
var __eliscript_tdz_ready_15;
|
|
49
|
+
function __eliscript_tdz_read_15() { if (__eliscript_tdz_ready_15 !== true) __eliscript_tdz_error("check_operation_version"); return check_operation_version; }
|
|
50
|
+
function __eliscript_tdz_write_15(__eliscript_tdz_value_15) { if (__eliscript_tdz_ready_15 !== true) __eliscript_tdz_error("check_operation_version"); return __eliscript_const_error(); }
|
|
51
|
+
var __eliscript_tdz_ready_16;
|
|
52
|
+
function __eliscript_tdz_read_16() { if (__eliscript_tdz_ready_16 !== true) __eliscript_tdz_error("project_check_report_format"); return project_check_report_format; }
|
|
53
|
+
function __eliscript_tdz_write_16(__eliscript_tdz_value_16) { if (__eliscript_tdz_ready_16 !== true) __eliscript_tdz_error("project_check_report_format"); return __eliscript_const_error(); }
|
|
54
|
+
var __eliscript_tdz_ready_17;
|
|
55
|
+
function __eliscript_tdz_read_17() { if (__eliscript_tdz_ready_17 !== true) __eliscript_tdz_error("project_check_report_version"); return project_check_report_version; }
|
|
56
|
+
function __eliscript_tdz_write_17(__eliscript_tdz_value_17) { if (__eliscript_tdz_ready_17 !== true) __eliscript_tdz_error("project_check_report_version"); return __eliscript_const_error(); }
|
|
57
|
+
var __eliscript_tdz_ready_18;
|
|
58
|
+
function __eliscript_tdz_read_18() { if (__eliscript_tdz_ready_18 !== true) __eliscript_tdz_error("project_cache_format"); return project_cache_format; }
|
|
59
|
+
function __eliscript_tdz_write_18(__eliscript_tdz_value_18) { if (__eliscript_tdz_ready_18 !== true) __eliscript_tdz_error("project_cache_format"); return __eliscript_const_error(); }
|
|
60
|
+
var __eliscript_tdz_ready_19;
|
|
61
|
+
function __eliscript_tdz_read_19() { if (__eliscript_tdz_ready_19 !== true) __eliscript_tdz_error("project_cache_version"); return project_cache_version; }
|
|
62
|
+
function __eliscript_tdz_write_19(__eliscript_tdz_value_19) { if (__eliscript_tdz_ready_19 !== true) __eliscript_tdz_error("project_cache_version"); return __eliscript_const_error(); }
|
|
63
|
+
var __eliscript_tdz_ready_20;
|
|
64
|
+
function __eliscript_tdz_read_20() { if (__eliscript_tdz_ready_20 !== true) __eliscript_tdz_error("project_cache_legacy_version"); return project_cache_legacy_version; }
|
|
65
|
+
function __eliscript_tdz_write_20(__eliscript_tdz_value_20) { if (__eliscript_tdz_ready_20 !== true) __eliscript_tdz_error("project_cache_legacy_version"); return __eliscript_const_error(); }
|
|
66
|
+
var __eliscript_tdz_ready_21;
|
|
67
|
+
function __eliscript_tdz_read_21() { if (__eliscript_tdz_ready_21 !== true) __eliscript_tdz_error("fail"); return fail; }
|
|
68
|
+
function __eliscript_tdz_write_21(__eliscript_tdz_value_21) { if (__eliscript_tdz_ready_21 !== true) __eliscript_tdz_error("fail"); return __eliscript_const_error(); }
|
|
69
|
+
var __eliscript_tdz_ready_22;
|
|
70
|
+
function __eliscript_tdz_read_22() { if (__eliscript_tdz_ready_22 !== true) __eliscript_tdz_error("array_p"); return array_p; }
|
|
71
|
+
function __eliscript_tdz_write_22(__eliscript_tdz_value_22) { if (__eliscript_tdz_ready_22 !== true) __eliscript_tdz_error("array_p"); return __eliscript_const_error(); }
|
|
72
|
+
var __eliscript_tdz_ready_23;
|
|
73
|
+
function __eliscript_tdz_read_23() { if (__eliscript_tdz_ready_23 !== true) __eliscript_tdz_error("object_p"); return object_p; }
|
|
74
|
+
function __eliscript_tdz_write_23(__eliscript_tdz_value_23) { if (__eliscript_tdz_ready_23 !== true) __eliscript_tdz_error("object_p"); return __eliscript_const_error(); }
|
|
75
|
+
var __eliscript_tdz_ready_24;
|
|
76
|
+
function __eliscript_tdz_read_24() { if (__eliscript_tdz_ready_24 !== true) __eliscript_tdz_error("sorted_set_values"); return sorted_set_values; }
|
|
77
|
+
function __eliscript_tdz_write_24(__eliscript_tdz_value_24) { if (__eliscript_tdz_ready_24 !== true) __eliscript_tdz_error("sorted_set_values"); return __eliscript_const_error(); }
|
|
78
|
+
var __eliscript_tdz_ready_25;
|
|
79
|
+
function __eliscript_tdz_read_25() { if (__eliscript_tdz_ready_25 !== true) __eliscript_tdz_error("nonnegative_number_p"); return nonnegative_number_p; }
|
|
80
|
+
function __eliscript_tdz_write_25(__eliscript_tdz_value_25) { if (__eliscript_tdz_ready_25 !== true) __eliscript_tdz_error("nonnegative_number_p"); return __eliscript_const_error(); }
|
|
81
|
+
var __eliscript_tdz_ready_26;
|
|
82
|
+
function __eliscript_tdz_read_26() { if (__eliscript_tdz_ready_26 !== true) __eliscript_tdz_error("boolean_p"); return boolean_p; }
|
|
83
|
+
function __eliscript_tdz_write_26(__eliscript_tdz_value_26) { if (__eliscript_tdz_ready_26 !== true) __eliscript_tdz_error("boolean_p"); return __eliscript_const_error(); }
|
|
84
|
+
var __eliscript_tdz_ready_27;
|
|
85
|
+
function __eliscript_tdz_read_27() { if (__eliscript_tdz_ready_27 !== true) __eliscript_tdz_error("safe_relative_path_p"); return safe_relative_path_p; }
|
|
86
|
+
function __eliscript_tdz_write_27(__eliscript_tdz_value_27) { if (__eliscript_tdz_ready_27 !== true) __eliscript_tdz_error("safe_relative_path_p"); return __eliscript_const_error(); }
|
|
87
|
+
var __eliscript_tdz_ready_28;
|
|
88
|
+
function __eliscript_tdz_read_28() { if (__eliscript_tdz_ready_28 !== true) __eliscript_tdz_error("project_request_fail"); return project_request_fail; }
|
|
89
|
+
function __eliscript_tdz_write_28(__eliscript_tdz_value_28) { if (__eliscript_tdz_ready_28 !== true) __eliscript_tdz_error("project_request_fail"); return __eliscript_const_error(); }
|
|
90
|
+
var __eliscript_tdz_ready_29;
|
|
91
|
+
function __eliscript_tdz_read_29() { if (__eliscript_tdz_ready_29 !== true) __eliscript_tdz_error("project_configuration_fail"); return project_configuration_fail; }
|
|
92
|
+
function __eliscript_tdz_write_29(__eliscript_tdz_value_29) { if (__eliscript_tdz_ready_29 !== true) __eliscript_tdz_error("project_configuration_fail"); return __eliscript_const_error(); }
|
|
93
|
+
var __eliscript_tdz_ready_30;
|
|
94
|
+
function __eliscript_tdz_read_30() { if (__eliscript_tdz_ready_30 !== true) __eliscript_tdz_error("project_configuration_keys_v1"); return project_configuration_keys_v1; }
|
|
95
|
+
function __eliscript_tdz_write_30(__eliscript_tdz_value_30) { if (__eliscript_tdz_ready_30 !== true) __eliscript_tdz_error("project_configuration_keys_v1"); return __eliscript_const_error(); }
|
|
96
|
+
var __eliscript_tdz_ready_31;
|
|
97
|
+
function __eliscript_tdz_read_31() { if (__eliscript_tdz_ready_31 !== true) __eliscript_tdz_error("project_configuration_keys_v2"); return project_configuration_keys_v2; }
|
|
98
|
+
function __eliscript_tdz_write_31(__eliscript_tdz_value_31) { if (__eliscript_tdz_ready_31 !== true) __eliscript_tdz_error("project_configuration_keys_v2"); return __eliscript_const_error(); }
|
|
99
|
+
var __eliscript_tdz_ready_32;
|
|
100
|
+
function __eliscript_tdz_read_32() { if (__eliscript_tdz_ready_32 !== true) __eliscript_tdz_error("supported_macro_capabilities"); return supported_macro_capabilities; }
|
|
101
|
+
function __eliscript_tdz_write_32(__eliscript_tdz_value_32) { if (__eliscript_tdz_ready_32 !== true) __eliscript_tdz_error("supported_macro_capabilities"); return __eliscript_const_error(); }
|
|
102
|
+
import "eliscript/runtime/unicode-case.mjs";
|
|
103
|
+
import "eliscript/runtime/math.mjs";
|
|
104
|
+
import { c as __eliscript_at, d as __eliscript_at_direct } from "data:text/javascript;base64,dmFyIG09UmVmbGVjdC5hcHBseSx0dD1OdW1iZXIucHJvdG90eXBlLnZhbHVlT2Ysaj1OdW1iZXIucHJvdG90eXBlLnRvU3RyaW5nLFU9TnVtYmVyLG50PU9iamVjdC5jcmVhdGUsaD1CaWdJbnQsZXQ9RGF0YVZpZXcsb3Q9QXJyYXlCdWZmZXIsaXQ9RGF0YVZpZXcucHJvdG90eXBlLnNldEZsb2F0NjQsSj1EYXRhVmlldy5wcm90b3R5cGUuZ2V0VWludDMyLHJ0PVJhbmdlRXJyb3I7ZnVuY3Rpb24gY3QodCxuKXtsZXQgZT1oKG4pLG89aCh0KSxpPSIiO2lmKG88MG4pbz0tbztkb3tsZXQgZj1vJWU7aT0iMDEyMzQ1Njc4OWFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6IltVKGYpXStpLG8vPWV9d2hpbGUobyE9PTBuKTtyZXR1cm4gdDwwPyItIitpOml9ZnVuY3Rpb24gc3QodCxuKXtsZXQgZT1uZXcgZXQobmV3IG90KDgpKTttKGl0LGUsWzAsdCwhMV0pO2xldCBvPW0oSixlLFswLCExXSksaT1tKEosZSxbNCwhMV0pLGY9bz4+PjIwJjIwNDcsYj1vJjEwNDg1NzUscD1vPj4+MzEscj1oKGIpPDwzMm58aChpKTtpZihmIT09MClyKz0xbjw8NTJuO3I8PD0ybjtsZXQgbD00bix1PWY+MSYmYj09PTAmJmk9PT0wPzFuOjJuLGs9Mm47aWYoZj49MTA3NSl7bGV0IGM9aChmLTEwNzUpO3I8PD1jLHU8PD1jLGs8PD1jfWVsc2UgbDw8PWgoZj09PTA/MTA3NDoxMDc1LWYpO2xldCBkPWgobiksZz1udChudWxsKSxhPTAsUz0wLEQ9MDtpZihyPGwpd2hpbGUocjxsKXtpZihyKjJuPmwmJnIraz5sKWJyZWFrO3IqPWQsdSo9ZCxrKj1kLFMtLX1lbHNlIHdoaWxlKHI+PWwqZClsKj1kLFMrKztmb3IoOzspe2xldCBjPVUoci9sKTtyJT1sO2xldCBJPXI8dSx4PXIraz5sO2dbYSsrXT1jLEQ9RCoobiYxKStjJjE7bGV0IHE9cioybixQPXE+bHx8cT09PWwmJkQ9PT0xO2lmKFAmJnh8fCFQJiZJKXtpZihQKXtsZXQgUj1hLEI9ITA7d2hpbGUoUj4wJiZCKXtSLS07bGV0IEg9Z1tSXSsxO2lmKEg9PT1uKWdbUl09MDtlbHNlIGdbUl09SCxCPSExfWlmKEIpZ1swXT0xLFMrK31icmVha31pZihhPj02NCl0aHJvdyBuZXcgcnQoIm51bWJlciByYWRpeCBmb3JtYXR0aW5nIGRpZCBub3QgY29udmVyZ2UiKTtyKj1kLHUqPWQsayo9ZH13aGlsZShhPjEmJmdbYS0xXT09PTApYS0tO2xldCB3PSIiO2lmKFM8MCl7dz0iMC4iO2ZvcihsZXQgYz0wO2M8LTEtUztjKyspdys9IjAiO2ZvcihsZXQgYz0wO2M8YTtjKyspdys9IjAxMjM0NTY3ODlhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5eiJbZ1tjXV19ZWxzZXtsZXQgYz1TKzEsST1jPmE/YzphO2ZvcihsZXQgeD0wO3g8STt4Kyspe2lmKHg9PT1jJiZjPGEpdys9Ii4iO3crPXg8YT8iMDEyMzQ1Njc4OWFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6IltnW3hdXToiMCJ9fXJldHVybiBwPyItIit3Ond9ZnVuY3Rpb24gRyh0LG4pe2xldCBlO3RyeXtlPW0odHQsdCxbXSl9Y2F0Y2h7cmV0dXJuIG0oaix0LFtuXSl9bGV0IG89MTA7aWYobiE9PXZvaWQgMCl7bGV0IGk9K247aWYobz1pIT09aT8wOmktaSUxLG88Mnx8bz4zNnx8byE9PW8pcmV0dXJuIG0oaixlLFtvXSl9aWYobz09PTEwfHxlPT09MHx8ZSE9PWV8fGU9PT0xLzB8fGU9PT0tMS8wKXJldHVybiBtKGosZSxbMTBdKTtyZXR1cm4gZSUxPT09MD9jdChlLG8pOnN0KGUsbyl9dmFyIHM9UmVmbGVjdC5hcHBseSxNPUZ1bmN0aW9uLnByb3RvdHlwZS5jYWxsLE49RnVuY3Rpb24ucHJvdG90eXBlLmFwcGx5LEU9RnVuY3Rpb24ucHJvdG90eXBlLmJpbmQsVD1PYmplY3QuZGVmaW5lUHJvcGVydHksbHQ9T2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcixmdD1PYmplY3QuZ2V0UHJvdG90eXBlT2YsdXQ9T2JqZWN0LnNldFByb3RvdHlwZU9mLGF0PVJlZmxlY3Qub3duS2V5cyxwdD1TeW1ib2wuaGFzSW5zdGFuY2UsVj1BcnJheS5pc0FycmF5LEs9QXJyYXkucHJvdG90eXBlLmpvaW4sej1BcnJheS5wcm90b3R5cGUudG9TdHJpbmcseXQ9T2JqZWN0LnByb3RvdHlwZS50b1N0cmluZyxidD1TdHJpbmcsQz1UeXBlRXJyb3IsZHQ9U3ltYm9sLnRvUHJpbWl0aXZlLGd0PVdlYWtTZXQucHJvdG90eXBlLmhhcyx3dD1XZWFrU2V0LnByb3RvdHlwZS5hZGQseHQ9V2Vha1NldC5wcm90b3R5cGUuZGVsZXRlLEY9bmV3IFdlYWtTZXQsTz1udWxsLFc9KHQpPT50IT09bnVsbCYmKHR5cGVvZiB0PT09Im9iamVjdCJ8fHR5cGVvZiB0PT09ImZ1bmN0aW9uInx8dHlwZW9mIHQ+InUiJiZ0IT09dm9pZCAwKSxBPSh0KT0+dHlwZW9mIHQ9PT0iZnVuY3Rpb24ifHx0eXBlb2YgdD4idSImJnQhPT12b2lkIDA7ZnVuY3Rpb24gaHQoKXtsZXQgbj1uZXcgQygiY3ljbGljIGFycmF5IHRleHQgY29udmVyc2lvbiIpO3Rocm93IG4uZWxpc2NyaXB0RGlhZ25vc3RpYz17Zm9ybWF0OiJlbGlzY3JpcHQtZGlhZ25vc3RpYyIsdmVyc2lvbjoxLGNvZGU6IkVMSS1SVDAwMDkiLHNldmVyaXR5OiJlcnJvciIscGhhc2U6InJ1bnRpbWUiLG1lc3NhZ2U6ImN5Y2xpYyBhcnJheSB0ZXh0IGNvbnZlcnNpb24ifSxufWZ1bmN0aW9uIG10KHQpe2lmKCFXKHQpKXJldHVybiB0O2xldCBuPXRbZHRdO2lmKG4hPT12b2lkIDAmJm4hPT1udWxsKXtsZXQgZT1zKG4sdCxbInN0cmluZyJdKTtpZighVyhlKSlyZXR1cm4gZTt0aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgb2JqZWN0IHRvIHByaW1pdGl2ZSB2YWx1ZSIpfWZvcihsZXQgZT0wO2U8MjtlKyspe2xldCBvPXRbZT09PTA/InRvU3RyaW5nIjoidmFsdWVPZiJdO2lmKEEobykpe2xldCBpPW89PT16JiZWKHQpP3YodCk6cyhvLHQsW10pO2lmKCFXKGkpKXJldHVybiBpfX10aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgb2JqZWN0IHRvIHByaW1pdGl2ZSB2YWx1ZSIpfWZ1bmN0aW9uIFEodCl7bGV0IG49bXQodCk7aWYodHlwZW9mIG49PT0ic3ltYm9sIil0aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgYSBTeW1ib2wgdmFsdWUgdG8gYSBzdHJpbmciKTtyZXR1cm4gYnQobil9ZnVuY3Rpb24gXyh0LG4pe2xldCBlPSt0Lmxlbmd0aCxvPWUhPT1lfHxlPD0wPzA6ZT49OTAwNzE5OTI1NDc0MDk5MT85MDA3MTk5MjU0NzQwOTkxOmUtZSUxLGk9bj09PXZvaWQgMD8iLCI6UShuKSxmPU89PT1udWxsO2lmKGYpTz10O2Vsc2V7aWYodD09PU98fHMoZ3QsRixbdF0pKWh0KCk7cyh3dCxGLFt0XSl9dHJ5e2xldCBiPSIiO2ZvcihsZXQgcD0wO3A8bztwKyspe2lmKHApYis9aTtsZXQgcj10W3BdO2lmKHIhPT1udWxsJiZyIT09dm9pZCAwKWIrPVEocil9cmV0dXJuIGJ9ZmluYWxseXtpZihmKU89bnVsbDtlbHNlIHMoeHQsRixbdF0pfX1mdW5jdGlvbiB2KHQpe2xldCBuPXQuam9pbjtyZXR1cm4gQShuKT9uPT09Sz9fKHQsdm9pZCAwKTpzKG4sdCxbXSk6cyh5dCx0LFtdKX1mdW5jdGlvbiB5KHQsbil7cmV0dXJuIG48dC5sZW5ndGg/dFtuXTp2b2lkIDB9ZnVuY3Rpb24gWCh0LG4pe2xldCBlPVtdO2ZvcihsZXQgbz1uO288dC5sZW5ndGg7bysrKVQoZSxlLmxlbmd0aCx7dmFsdWU6dFtvXSx3cml0YWJsZTohMCxlbnVtZXJhYmxlOiEwLGNvbmZpZ3VyYWJsZTohMH0pO3JldHVybiBlfWZ1bmN0aW9uIFN0KHQsbil7bGV0IGU9W107Zm9yKGxldCBvPTA7bzx0Lmxlbmd0aCtuLmxlbmd0aDtvKyspVChlLG8se3ZhbHVlOm88dC5sZW5ndGg/dFtvXTpuW28tdC5sZW5ndGhdLHdyaXRhYmxlOiEwLGVudW1lcmFibGU6ITAsY29uZmlndXJhYmxlOiEwfSk7cmV0dXJuIGV9ZnVuY3Rpb24gWSguLi50KXtyZXR1cm4gdH1mdW5jdGlvbiBaKHQsbil7cmV0dXJuIG4/cyhOLFksW3ZvaWQgMCx0XSk6cyhZLHZvaWQgMCx0KX1mdW5jdGlvbiBMKHQsbixlKXtmb3IoOzspe2lmKHQ9PT1qKXJldHVybiBHKG4seShlLDApKTtpZih0PT09SyYmVihuKSlyZXR1cm4gXyhuLHkoZSwwKSk7aWYodD09PXomJlYobikpcmV0dXJuIHYobik7aWYodD09PU0pe2lmKCFBKG4pKXJldHVybiBzKHQsbixlKTtsZXQgbz1uLGk9eShlLDApO2U9WChlLDEpLHQ9byxuPWk7Y29udGludWV9aWYodD09PU4pe2lmKCFBKG4pKXJldHVybiBzKHQsbixlKTtsZXQgbz1uLGk9eShlLDApO2U9Wih5KGUsMSksITApLHQ9byxuPWk7Y29udGludWV9aWYodD09PXMpe2xldCBvPXkoZSwwKSxpPXkoZSwxKTtpZighQShvKSlyZXR1cm4gcyh0LG4sZSk7ZT1aKHkoZSwyKSwhMSksdD1vLG49aTtjb250aW51ZX1pZih0PT09RSl7bGV0IG89cyh0LG4sZSk7aWYobiE9PWomJm4hPT1LJiZuIT09eiYmbiE9PU0mJm4hPT1OJiZuIT09cyYmbiE9PUUpcmV0dXJuIG87bGV0IGk9bixmPXkoZSwwKSxiPVgoZSwxKSxwPSguLi51KT0+TChpLGYsU3QoYix1KSk7VChwLHB0LHt2YWx1ZToodSk9PnUgaW5zdGFuY2VvZiBpLGNvbmZpZ3VyYWJsZTohMH0pO2xldCByPXMoRSxwLFt2b2lkIDBdKTt1dChyLGZ0KG8pKTtsZXQgbD1hdChvKTtmb3IobGV0IHU9MDt1PGwubGVuZ3RoO3UrKylUKHIsbFt1XSxsdChvLGxbdV0pKTtyZXR1cm4gcn1yZXR1cm4gcyh0LG4sZSl9fWZ1bmN0aW9uIFJ0KHQsbil7bGV0IGU9dFtuXTtyZXR1cm4oLi4ubyk9PkwoZSx0LG8pfWZ1bmN0aW9uIEF0KHQsbiwuLi5lKXtsZXQgbz10W25dO3JldHVybiBMKG8sdCxlKX1leHBvcnR7UnQgYXMgYyxBdCBhcyBkfTs=";
|
|
2
105
|
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
106
|
+
const __eliscript_number_intrinsic = globalThis.Number;
|
|
107
|
+
const __eliscript_bigint_intrinsic = globalThis.BigInt;
|
|
108
|
+
const __eliscript_numeric_apply = globalThis.Reflect.apply;
|
|
109
|
+
const __eliscript_numeric_symbol = globalThis.Symbol.toPrimitive;
|
|
110
|
+
const __eliscript_numeric_error = globalThis.TypeError;
|
|
111
|
+
const __eliscript_numeric_trim = globalThis.String.prototype.trim;
|
|
112
|
+
const __eliscript_numeric_slice = globalThis.String.prototype.slice;
|
|
113
|
+
const __eliscript_numeric_exec = globalThis.RegExp.prototype.exec;
|
|
114
|
+
const __eliscript_numeric_radix = /^(?:0[xX][0-9a-fA-F]+|0[oO][0-7]+|0[bB][01]+)$/;
|
|
115
|
+
const __eliscript_numeric_object = (value) => value !== null && (typeof value === "object" || typeof value === "function" || (typeof value === "undefined" && value !== void 0));
|
|
116
|
+
const __eliscript_numeric_primitive = (value) => {
|
|
117
|
+
if (!__eliscript_numeric_object(value)) return value;
|
|
118
|
+
const exotic = value[__eliscript_numeric_symbol];
|
|
119
|
+
if (exotic !== void 0 && exotic !== null) {
|
|
120
|
+
const result = __eliscript_numeric_apply(exotic, value, ["number"]);
|
|
121
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
122
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
123
|
+
}
|
|
124
|
+
for (let index = 0; index < 2; index++) {
|
|
125
|
+
const method = value[index === 0 ? "valueOf" : "toString"];
|
|
126
|
+
if (typeof method === "function" || (typeof method === "undefined" && method !== void 0)) {
|
|
127
|
+
const result = __eliscript_numeric_apply(method, value, []);
|
|
128
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
132
|
+
};
|
|
133
|
+
const __eliscript_to_number = (value) => {
|
|
134
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
135
|
+
if (typeof primitive === "string") {
|
|
136
|
+
const text = __eliscript_numeric_apply(__eliscript_numeric_trim, primitive, []);
|
|
137
|
+
if (__eliscript_numeric_apply(__eliscript_numeric_exec, __eliscript_numeric_radix, [text]) !== null) {
|
|
138
|
+
let first = 2;
|
|
139
|
+
while (first < text.length && text[first] === "0") first++;
|
|
140
|
+
if (first === text.length) return 0;
|
|
141
|
+
const prefix = text[1];
|
|
142
|
+
const limit = prefix === "x" || prefix === "X" ? 256 : prefix === "b" || prefix === "B" ? 1024 : 342;
|
|
143
|
+
if (text.length - first > limit) return 1 / 0;
|
|
144
|
+
const token = __eliscript_numeric_apply(__eliscript_numeric_slice, text, [0, 2]) + __eliscript_numeric_apply(__eliscript_numeric_slice, text, [first]);
|
|
145
|
+
return __eliscript_number_intrinsic(__eliscript_bigint_intrinsic(token));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return __eliscript_number_intrinsic(primitive);
|
|
149
|
+
};
|
|
150
|
+
const __eliscript_numeric = (value) => {
|
|
151
|
+
if (typeof value === "number" || typeof value === "bigint") return value;
|
|
152
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
153
|
+
if (typeof primitive === "number" || typeof primitive === "bigint") return primitive;
|
|
154
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
155
|
+
};
|
|
156
|
+
const __eliscript_implicit_number = (value) => {
|
|
157
|
+
if (typeof value === "number") return value;
|
|
158
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
159
|
+
if (typeof primitive === "bigint") throw new __eliscript_numeric_error("Cannot convert a BigInt value to a number");
|
|
160
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
161
|
+
};
|
|
162
|
+
const __eliscript_numeric_decrement = (value) => __eliscript_implicit_number(value) - 1;
|
|
163
|
+
const __eliscript_numeric_sub = (a, b) => { if (typeof a === "number" && typeof b === "number") return a - b; return __eliscript_numeric(a) - __eliscript_numeric(b); };
|
|
164
|
+
const __eliscript_numeric_mul = (a, b) => { if (typeof a === "number" && typeof b === "number") return a * b; return __eliscript_numeric(a) * __eliscript_numeric(b); };
|
|
165
|
+
const __eliscript_numeric_div = (a, b) => { if (typeof a === "number" && typeof b === "number") return a / b; return __eliscript_numeric(a) / __eliscript_numeric(b); };
|
|
166
|
+
const __eliscript_numeric_rem = (a, b) => { if (typeof a === "number" && typeof b === "number") return a % b; return __eliscript_numeric(a) % __eliscript_numeric(b); };
|
|
167
|
+
const __eliscript_numeric_and = (a, b) => { if (typeof a === "number" && typeof b === "number") return a & b; return __eliscript_numeric(a) & __eliscript_numeric(b); };
|
|
168
|
+
const __eliscript_numeric_or = (a, b) => { if (typeof a === "number" && typeof b === "number") return a | b; return __eliscript_numeric(a) | __eliscript_numeric(b); };
|
|
169
|
+
const __eliscript_numeric_xor = (a, b) => { if (typeof a === "number" && typeof b === "number") return a ^ b; return __eliscript_numeric(a) ^ __eliscript_numeric(b); };
|
|
170
|
+
const __eliscript_numeric_shl = (a, b) => { if (typeof a === "number" && typeof b === "number") return a << b; return __eliscript_numeric(a) << __eliscript_numeric(b); };
|
|
171
|
+
const __eliscript_numeric_shr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >> b; return __eliscript_numeric(a) >> __eliscript_numeric(b); };
|
|
172
|
+
const __eliscript_numeric_ushr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >>> b; return __eliscript_numeric(a) >>> __eliscript_numeric(b); };
|
|
173
|
+
const __eliscript_numeric_neg = (a) => typeof a === "number" ? -a : -__eliscript_numeric(a);
|
|
174
|
+
const __eliscript_numeric_int32 = (a) => typeof a === "number" ? a | 0 : __eliscript_numeric(a) | 0;
|
|
175
|
+
const __eliscript_numeric_uint32 = (a) => typeof a === "number" ? a >>> 0 : __eliscript_numeric(a) >>> 0;
|
|
176
|
+
const __eliscript_numeric_not = (a) => typeof a === "number" ? ~a : ~__eliscript_numeric(a);
|
|
177
|
+
const __eliscript_numeric_relation = (operator, left, right) => {
|
|
178
|
+
if (typeof left === "number" && typeof right === "number") {
|
|
179
|
+
if (operator === "<") return left < right;
|
|
180
|
+
if (operator === "<=") return left <= right;
|
|
181
|
+
if (operator === ">") return left > right;
|
|
182
|
+
return left >= right;
|
|
183
|
+
}
|
|
184
|
+
let a = __eliscript_numeric_primitive(left);
|
|
185
|
+
let b = __eliscript_numeric_primitive(right);
|
|
186
|
+
const x = typeof a, y = typeof b;
|
|
187
|
+
if (!((x === "string" && y === "string") || (x === "bigint" && y === "string") || (x === "string" && y === "bigint"))) {
|
|
188
|
+
a = __eliscript_numeric(a);
|
|
189
|
+
b = __eliscript_numeric(b);
|
|
190
|
+
}
|
|
191
|
+
if (operator === "<") return a < b;
|
|
192
|
+
if (operator === "<=") return a <= b;
|
|
193
|
+
if (operator === ">") return a > b;
|
|
194
|
+
return a >= b;
|
|
195
|
+
};
|
|
3
196
|
|
|
4
197
|
const project_plan_format = "eliscript-project-plan";
|
|
198
|
+
__eliscript_tdz_ready_0 = true;
|
|
5
199
|
const project_plan_version = 1;
|
|
200
|
+
__eliscript_tdz_ready_1 = true;
|
|
6
201
|
const project_plan_max_iterations = 100000;
|
|
202
|
+
__eliscript_tdz_ready_2 = true;
|
|
7
203
|
const project_build_report_format = "eliscript-build-report";
|
|
204
|
+
__eliscript_tdz_ready_3 = true;
|
|
8
205
|
const project_build_report_version = 1;
|
|
206
|
+
__eliscript_tdz_ready_4 = true;
|
|
9
207
|
const project_build_report_multi_version = 2;
|
|
208
|
+
__eliscript_tdz_ready_5 = true;
|
|
10
209
|
const project_request_format = "eliscript-project-request";
|
|
210
|
+
__eliscript_tdz_ready_6 = true;
|
|
11
211
|
const project_request_version = 1;
|
|
212
|
+
__eliscript_tdz_ready_7 = true;
|
|
12
213
|
const project_request_multi_version = 2;
|
|
214
|
+
__eliscript_tdz_ready_8 = true;
|
|
13
215
|
const project_configuration_version = 1;
|
|
216
|
+
__eliscript_tdz_ready_9 = true;
|
|
14
217
|
const project_configuration_multi_version = 2;
|
|
218
|
+
__eliscript_tdz_ready_10 = true;
|
|
15
219
|
const build_operation_format = "eliscript-build-operation";
|
|
220
|
+
__eliscript_tdz_ready_11 = true;
|
|
16
221
|
const build_operation_version = 1;
|
|
222
|
+
__eliscript_tdz_ready_12 = true;
|
|
17
223
|
const build_operation_multi_version = 2;
|
|
224
|
+
__eliscript_tdz_ready_13 = true;
|
|
18
225
|
const check_operation_format = "eliscript-check-operation";
|
|
226
|
+
__eliscript_tdz_ready_14 = true;
|
|
19
227
|
const check_operation_version = 1;
|
|
228
|
+
__eliscript_tdz_ready_15 = true;
|
|
20
229
|
const project_check_report_format = "eliscript-check-report";
|
|
230
|
+
__eliscript_tdz_ready_16 = true;
|
|
21
231
|
const project_check_report_version = 1;
|
|
232
|
+
__eliscript_tdz_ready_17 = true;
|
|
22
233
|
const project_cache_format = "eliscript-project-cache";
|
|
234
|
+
__eliscript_tdz_ready_18 = true;
|
|
23
235
|
const project_cache_version = 2;
|
|
236
|
+
__eliscript_tdz_ready_19 = true;
|
|
24
237
|
const project_cache_legacy_version = 1;
|
|
25
|
-
|
|
238
|
+
__eliscript_tdz_ready_20 = true;
|
|
239
|
+
function utf16_string_order(left, right) {
|
|
240
|
+
if (__eliscript_numeric_relation("<", left, right)) {
|
|
241
|
+
return -1;
|
|
242
|
+
} else {
|
|
243
|
+
if (__eliscript_numeric_relation(">", left, right)) {
|
|
244
|
+
return 1;
|
|
245
|
+
} else {
|
|
246
|
+
return 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
const fail = ((message) => {
|
|
251
|
+
{
|
|
252
|
+
const __eliscript_value_1 = new (Error)(message);
|
|
253
|
+
{
|
|
254
|
+
let error = __eliscript_value_1;
|
|
255
|
+
((error)["eliscriptDiagnostic"] = ({"format": "eliscript-diagnostic", "version": 1, "code": "ELI-B0003", "severity": "error", "phase": "project-plan", "message": message}));
|
|
256
|
+
return ((__eliscript_value_2) => { throw __eliscript_value_2; })(error);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
__eliscript_tdz_ready_21 = true;
|
|
26
261
|
const array_p = Array.isArray;
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
262
|
+
__eliscript_tdz_ready_22 = true;
|
|
263
|
+
const object_p = ((value) => {
|
|
264
|
+
return ((!(value === null)) && (typeof value === "object") && (!__eliscript_truthy(Array.isArray(value))));
|
|
265
|
+
});
|
|
266
|
+
__eliscript_tdz_ready_23 = true;
|
|
267
|
+
const sorted_set_values = ((values) => {
|
|
268
|
+
return (Array.from(values))["sort"]();
|
|
269
|
+
});
|
|
270
|
+
__eliscript_tdz_ready_24 = true;
|
|
271
|
+
const nonnegative_number_p = ((value) => {
|
|
272
|
+
return ((__eliscript_value_3) => (__eliscript_truthy(__eliscript_value_3) ? ((__eliscript_value_4) => (__eliscript_truthy(__eliscript_value_4) ? __eliscript_numeric_relation(">=", value, 0) : __eliscript_value_4))(Number.isFinite(value)) : __eliscript_value_3))((typeof value === "number"));
|
|
273
|
+
});
|
|
274
|
+
__eliscript_tdz_ready_25 = true;
|
|
275
|
+
const boolean_p = ((value) => {
|
|
276
|
+
return (typeof value === "boolean");
|
|
277
|
+
});
|
|
278
|
+
__eliscript_tdz_ready_26 = true;
|
|
279
|
+
const safe_relative_path_p = ((value) => {
|
|
280
|
+
return ((typeof value === "string") && __eliscript_numeric_relation(">", ((value) ?? []).length, 0) && (!__eliscript_truthy((/^(?:[\\/]|[A-Za-z]:[\\/])/)["test"](value))) && (!__eliscript_truthy(((value)["split"](/[\\/]+/u))["some"](((part) => {
|
|
281
|
+
return (part === "..");
|
|
282
|
+
})))));
|
|
283
|
+
});
|
|
284
|
+
__eliscript_tdz_ready_27 = true;
|
|
285
|
+
const project_request_fail = ((message) => {
|
|
286
|
+
{
|
|
287
|
+
const __eliscript_value_5 = new (Error)(message);
|
|
288
|
+
{
|
|
289
|
+
let error = __eliscript_value_5;
|
|
290
|
+
((error)["eliscriptDiagnostic"] = ({"format": "eliscript-diagnostic", "version": 1, "code": "ELI-B0001", "severity": "error", "phase": "project-build", "message": message}));
|
|
291
|
+
return ((__eliscript_value_6) => { throw __eliscript_value_6; })(error);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
__eliscript_tdz_ready_28 = true;
|
|
296
|
+
const project_configuration_fail = ((message, filename) => {
|
|
297
|
+
{
|
|
298
|
+
const __eliscript_value_7 = new (Error)(message);
|
|
299
|
+
{
|
|
300
|
+
let error = __eliscript_value_7;
|
|
301
|
+
{
|
|
302
|
+
const __eliscript_value_8 = ({"format": "eliscript-diagnostic", "version": 1, "code": "ELI-B0002", "severity": "error", "phase": "project-config", "message": message});
|
|
303
|
+
{
|
|
304
|
+
let diagnostic = __eliscript_value_8;
|
|
305
|
+
if (!!filename) {
|
|
306
|
+
((diagnostic)["location"] = ({"file": filename}));
|
|
307
|
+
}
|
|
308
|
+
((error)["eliscriptDiagnostic"] = diagnostic);
|
|
309
|
+
return ((__eliscript_value_9) => { throw __eliscript_value_9; })(error);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
__eliscript_tdz_ready_29 = true;
|
|
34
316
|
const project_configuration_keys_v1 = ["schemaVersion", "sourceRoot", "entry", "outDir", "portableEntries", "macroCapabilities", "macroFileDependencies", "cache"];
|
|
317
|
+
__eliscript_tdz_ready_30 = true;
|
|
35
318
|
const project_configuration_keys_v2 = ["schemaVersion", "sourceRoot", "entries", "outDir", "portableEntries", "macroCapabilities", "macroFileDependencies", "cache"];
|
|
319
|
+
__eliscript_tdz_ready_31 = true;
|
|
36
320
|
const supported_macro_capabilities = ["read-file"];
|
|
321
|
+
__eliscript_tdz_ready_32 = true;
|
|
37
322
|
function require_string(value, label) {
|
|
38
|
-
(
|
|
323
|
+
if ((!((typeof value === "string") && __eliscript_numeric_relation(">", (value)["length"], 0)))) {
|
|
324
|
+
(__eliscript_tdz_read_21())((String(label) + String(" must be a non-empty string")));
|
|
325
|
+
}
|
|
39
326
|
return value;
|
|
40
327
|
}
|
|
41
328
|
function report_milliseconds(value, label) {
|
|
42
|
-
(
|
|
43
|
-
|
|
329
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_25())(value)))) {
|
|
330
|
+
(__eliscript_tdz_read_21())((String(label) + String(" must be a non-negative finite number")));
|
|
331
|
+
}
|
|
332
|
+
return __eliscript_numeric_div((globalThis.Math)["round"](__eliscript_numeric_mul(value, 1000)), 1000);
|
|
44
333
|
}
|
|
45
334
|
function same_string_arrays(left, right) {
|
|
46
|
-
return ((
|
|
47
|
-
(() => {
|
|
48
|
-
|
|
49
|
-
(
|
|
50
|
-
((index = (index + 1)));
|
|
335
|
+
return ((__eliscript_value_10) => (__eliscript_truthy(__eliscript_value_10) ? ((__eliscript_value_11) => (__eliscript_truthy(__eliscript_value_11) ? ((__eliscript_value_12) => (__eliscript_truthy(__eliscript_value_12) ? ((index, same) => {
|
|
336
|
+
while (__eliscript_truthy(((__eliscript_value_13) => (__eliscript_truthy(__eliscript_value_13) ? __eliscript_numeric_relation("<", index, (left)["length"]) : __eliscript_value_13))(same))) {
|
|
337
|
+
if ((!(((((left) ?? [])[index]) ?? null) === ((((right) ?? [])[index]) ?? null)))) {
|
|
338
|
+
((same = false));
|
|
51
339
|
}
|
|
52
|
-
|
|
53
|
-
}
|
|
340
|
+
((index = (index + 1)));
|
|
341
|
+
}
|
|
54
342
|
return same;
|
|
55
|
-
})(0, true) :
|
|
343
|
+
})(0, true) : __eliscript_value_12))(((left)["length"] === (right)["length"])) : __eliscript_value_11))((__eliscript_tdz_read_22())(right)) : __eliscript_value_10))((__eliscript_tdz_read_22())(left));
|
|
56
344
|
}
|
|
57
345
|
function normalize_strings(values, label, require_entry) {
|
|
58
|
-
(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
346
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_22())(values)))) {
|
|
347
|
+
(__eliscript_tdz_read_21())((String(label) + String(" must be an array")));
|
|
348
|
+
}
|
|
349
|
+
{
|
|
350
|
+
const __eliscript_value_14 = new (globalThis.Set)();
|
|
351
|
+
const __eliscript_value_15 = [];
|
|
352
|
+
{
|
|
353
|
+
let seen = __eliscript_value_14;
|
|
354
|
+
let result = __eliscript_value_15;
|
|
355
|
+
(values)["forEach"](((value) => {
|
|
356
|
+
if ((!((typeof value === "string") && __eliscript_numeric_relation(">", (value)["length"], 0)))) {
|
|
357
|
+
(__eliscript_tdz_read_21())((String(label) + String(" must contain only non-empty strings")));
|
|
358
|
+
}
|
|
359
|
+
if ((!__eliscript_truthy((seen)["has"](value)))) {
|
|
360
|
+
(seen)["add"](value);
|
|
361
|
+
return (result)["push"](value);
|
|
362
|
+
} else {
|
|
363
|
+
return null;
|
|
364
|
+
}
|
|
365
|
+
}));
|
|
366
|
+
if (__eliscript_truthy(((__eliscript_value_16) => (__eliscript_truthy(__eliscript_value_16) ? ((result)["length"] === 0) : __eliscript_value_16))(require_entry))) {
|
|
367
|
+
(__eliscript_tdz_read_21())((String(label) + String(" must not be empty")));
|
|
368
|
+
}
|
|
369
|
+
(result)["sort"]();
|
|
370
|
+
return result;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
71
373
|
}
|
|
72
374
|
function object_field(object, key, fallback) {
|
|
73
|
-
|
|
375
|
+
if (__eliscript_truthy((globalThis.Object)["hasOwn"](object, key))) {
|
|
376
|
+
return (object)[key];
|
|
377
|
+
} else {
|
|
378
|
+
return fallback;
|
|
379
|
+
}
|
|
74
380
|
}
|
|
75
381
|
function project_request(input) {
|
|
76
|
-
(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
(
|
|
106
|
-
|
|
107
|
-
(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
382
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(input)))) {
|
|
383
|
+
(__eliscript_tdz_read_28())("project request must be an object");
|
|
384
|
+
}
|
|
385
|
+
{
|
|
386
|
+
const __eliscript_value_17 = (input)["entry"];
|
|
387
|
+
{
|
|
388
|
+
let entry = __eliscript_value_17;
|
|
389
|
+
{
|
|
390
|
+
const __eliscript_value_18 = (input)["entries"];
|
|
391
|
+
{
|
|
392
|
+
let entries_input = __eliscript_value_18;
|
|
393
|
+
{
|
|
394
|
+
const __eliscript_value_19 = (!(entries_input === undefined));
|
|
395
|
+
{
|
|
396
|
+
let multi = __eliscript_value_19;
|
|
397
|
+
{
|
|
398
|
+
const __eliscript_value_20 = (input)["outDir"];
|
|
399
|
+
{
|
|
400
|
+
let out_dir = __eliscript_value_20;
|
|
401
|
+
{
|
|
402
|
+
const __eliscript_value_21 = (input)["root"];
|
|
403
|
+
{
|
|
404
|
+
let root = __eliscript_value_21;
|
|
405
|
+
{
|
|
406
|
+
const __eliscript_value_22 = (input)["portableEntries"];
|
|
407
|
+
{
|
|
408
|
+
let portable_input = __eliscript_value_22;
|
|
409
|
+
{
|
|
410
|
+
const __eliscript_value_23 = (() => {
|
|
411
|
+
if ((!__eliscript_truthy(((__eliscript_value_24) => (__eliscript_truthy(__eliscript_value_24) ? (portable_input)["every"](((name) => {
|
|
412
|
+
return ((typeof name === "string") && __eliscript_numeric_relation(">", (name)["length"], 0));
|
|
413
|
+
})) : __eliscript_value_24))((__eliscript_tdz_read_22())(portable_input))))) {
|
|
414
|
+
(__eliscript_tdz_read_28())("project request portable entries are invalid");
|
|
415
|
+
}
|
|
416
|
+
return normalize_strings(portable_input, "project request portable entries", false);
|
|
417
|
+
})();
|
|
418
|
+
{
|
|
419
|
+
let portable_entries = __eliscript_value_23;
|
|
420
|
+
{
|
|
421
|
+
let macro_capabilities_input = object_field(input, "macroCapabilities", []);
|
|
422
|
+
let macro_file_dependencies_input = object_field(input, "macroFileDependencies", []);
|
|
423
|
+
let macro_capabilities = normalize_strings(macro_capabilities_input, "project request macro capabilities", false);
|
|
424
|
+
let macro_file_dependencies = normalize_strings(macro_file_dependencies_input, "project request macro file dependencies", false);
|
|
425
|
+
let use_cache = (input)["useCache"];
|
|
426
|
+
if ((!((macro_capabilities)["length"] === (macro_capabilities_input)["length"]))) {
|
|
427
|
+
(__eliscript_tdz_read_28())("project request macro capabilities must not contain duplicates");
|
|
428
|
+
}
|
|
429
|
+
(macro_capabilities)["forEach"](((capability) => {
|
|
430
|
+
if ((!__eliscript_truthy(((__eliscript_tdz_read_32()))["includes"](capability)))) {
|
|
431
|
+
return (__eliscript_tdz_read_28())((String("unsupported macro capability: ") + String(capability)));
|
|
432
|
+
} else {
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
}));
|
|
436
|
+
if ((!((macro_file_dependencies)["length"] === (macro_file_dependencies_input)["length"]))) {
|
|
437
|
+
(__eliscript_tdz_read_28())("project request macro file dependencies must not contain duplicates");
|
|
438
|
+
}
|
|
439
|
+
(macro_file_dependencies)["forEach"](((dependency) => {
|
|
440
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_27())(dependency)))) {
|
|
441
|
+
return (__eliscript_tdz_read_28())("project request macro file dependencies are invalid");
|
|
442
|
+
} else {
|
|
443
|
+
return null;
|
|
444
|
+
}
|
|
445
|
+
}));
|
|
446
|
+
if ((__eliscript_numeric_relation(">", (macro_file_dependencies)["length"], 0) && (!__eliscript_truthy((macro_capabilities)["includes"]("read-file"))))) {
|
|
447
|
+
(__eliscript_tdz_read_28())("macro file dependencies require the read-file macro capability");
|
|
448
|
+
}
|
|
449
|
+
if (__eliscript_truthy(((__eliscript_value_25) => (__eliscript_truthy(__eliscript_value_25) ? (!(entry === undefined)) : __eliscript_value_25))(multi))) {
|
|
450
|
+
(__eliscript_tdz_read_28())("project request cannot contain entry and entries");
|
|
451
|
+
}
|
|
452
|
+
if (__eliscript_truthy(multi)) {
|
|
453
|
+
if ((!__eliscript_truthy(((__eliscript_value_26) => (__eliscript_truthy(__eliscript_value_26) ? ((__eliscript_value_27) => (__eliscript_truthy(__eliscript_value_27) ? (entries_input)["every"](((source) => {
|
|
454
|
+
return ((typeof source === "string") && __eliscript_numeric_relation(">", (source)["length"], 0));
|
|
455
|
+
})) : __eliscript_value_27))(__eliscript_numeric_relation(">", (entries_input)["length"], 0)) : __eliscript_value_26))((__eliscript_tdz_read_22())(entries_input))))) {
|
|
456
|
+
(__eliscript_tdz_read_28())("project request entries must be a non-empty string array");
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
{
|
|
460
|
+
const __eliscript_value_28 = (__eliscript_truthy(multi) ? normalize_strings(entries_input, "project request entries", true) : (() => {
|
|
461
|
+
if ((!((typeof entry === "string") && __eliscript_numeric_relation(">", (entry)["length"], 0)))) {
|
|
462
|
+
(__eliscript_tdz_read_28())("project request entry is invalid");
|
|
463
|
+
}
|
|
464
|
+
return [entry];
|
|
465
|
+
})());
|
|
466
|
+
{
|
|
467
|
+
let entries = __eliscript_value_28;
|
|
468
|
+
if (__eliscript_truthy(((__eliscript_value_29) => (__eliscript_truthy(__eliscript_value_29) ? (!((entries)["length"] === (entries_input)["length"])) : __eliscript_value_29))(multi))) {
|
|
469
|
+
(__eliscript_tdz_read_28())("project request entries must not contain duplicates");
|
|
470
|
+
}
|
|
471
|
+
if ((!((typeof out_dir === "string") && __eliscript_numeric_relation(">", (out_dir)["length"], 0)))) {
|
|
472
|
+
(__eliscript_tdz_read_28())("project request output is invalid");
|
|
473
|
+
}
|
|
474
|
+
if ((!((root === null) || ((typeof root === "string") && __eliscript_numeric_relation(">", (root)["length"], 0))))) {
|
|
475
|
+
(__eliscript_tdz_read_28())("project request root is invalid");
|
|
476
|
+
}
|
|
477
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_26())(use_cache)))) {
|
|
478
|
+
(__eliscript_tdz_read_28())("project request cache is invalid");
|
|
479
|
+
}
|
|
480
|
+
if (__eliscript_truthy(((__eliscript_value_30) => (__eliscript_truthy(__eliscript_value_30) ? (__eliscript_numeric_relation(">", (entries)["length"], 1) && __eliscript_numeric_relation(">", (portable_entries)["length"], 0)) : __eliscript_value_30))(multi))) {
|
|
481
|
+
(__eliscript_tdz_read_28())("multi-entry portable project requests are not supported");
|
|
482
|
+
}
|
|
483
|
+
(globalThis.Object)["freeze"](portable_entries);
|
|
484
|
+
(globalThis.Object)["freeze"](macro_capabilities);
|
|
485
|
+
(globalThis.Object)["freeze"](macro_file_dependencies);
|
|
486
|
+
(globalThis.Object)["freeze"](entries);
|
|
487
|
+
if (__eliscript_truthy(multi)) {
|
|
488
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_6()), "version": (__eliscript_tdz_read_8()), "entries": entries, "outDir": out_dir, "root": root, "portableEntries": portable_entries, "macroCapabilities": macro_capabilities, "macroFileDependencies": macro_file_dependencies, "useCache": use_cache}));
|
|
489
|
+
} else {
|
|
490
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_6()), "version": (__eliscript_tdz_read_7()), "entry": entry, "outDir": out_dir, "root": root, "portableEntries": portable_entries, "macroCapabilities": macro_capabilities, "macroFileDependencies": macro_file_dependencies, "useCache": use_cache}));
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
136
509
|
}
|
|
137
510
|
function build_operation_request(input) {
|
|
138
|
-
(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
511
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(input)))) {
|
|
512
|
+
(__eliscript_tdz_read_28())("build operation request must be an object");
|
|
513
|
+
}
|
|
514
|
+
{
|
|
515
|
+
const __eliscript_value_31 = (input)["mode"];
|
|
516
|
+
{
|
|
517
|
+
let mode = __eliscript_value_31;
|
|
518
|
+
if ((mode === "single")) {
|
|
519
|
+
{
|
|
520
|
+
let source_input = object_field(input, "input", undefined);
|
|
521
|
+
let raw_output = object_field(input, "output", undefined);
|
|
522
|
+
let output = ((raw_output === undefined) ? null : raw_output);
|
|
523
|
+
let source_map = object_field(input, "sourceMap", false);
|
|
524
|
+
let portable_input = object_field(input, "portableEntries", []);
|
|
525
|
+
if ((!((typeof source_input === "string") && __eliscript_numeric_relation(">", (source_input)["length"], 0)))) {
|
|
526
|
+
(__eliscript_tdz_read_28())("single-file input is invalid");
|
|
527
|
+
}
|
|
528
|
+
if ((!((output === null) || ((typeof output === "string") && __eliscript_numeric_relation(">", (output)["length"], 0))))) {
|
|
529
|
+
(__eliscript_tdz_read_28())("single-file output is invalid");
|
|
530
|
+
}
|
|
531
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_26())(source_map)))) {
|
|
532
|
+
(__eliscript_tdz_read_28())("single-file source-map option is invalid");
|
|
533
|
+
}
|
|
534
|
+
if ((!__eliscript_truthy(((__eliscript_value_32) => (__eliscript_truthy(__eliscript_value_32) ? (portable_input)["every"](((name) => {
|
|
535
|
+
return ((typeof name === "string") && __eliscript_numeric_relation(">", (name)["length"], 0));
|
|
536
|
+
})) : __eliscript_value_32))((__eliscript_tdz_read_22())(portable_input))))) {
|
|
537
|
+
(__eliscript_tdz_read_28())("single-file portable entries are invalid");
|
|
538
|
+
}
|
|
539
|
+
if (__eliscript_truthy(((__eliscript_value_33) => (__eliscript_truthy(__eliscript_value_33) ? (output === null) : __eliscript_value_33))(source_map))) {
|
|
540
|
+
(__eliscript_tdz_read_28())("single-file source maps require an output");
|
|
541
|
+
}
|
|
542
|
+
{
|
|
543
|
+
const __eliscript_value_34 = normalize_strings(portable_input, "single-file portable entries", false);
|
|
544
|
+
{
|
|
545
|
+
let portable_entries = __eliscript_value_34;
|
|
546
|
+
(globalThis.Object)["freeze"](portable_entries);
|
|
547
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_11()), "version": (__eliscript_tdz_read_12()), "mode": "single", "input": source_input, "output": output, "sourceMap": source_map, "portableEntries": portable_entries}));
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
} else {
|
|
552
|
+
if ((mode === "project")) {
|
|
553
|
+
{
|
|
554
|
+
const __eliscript_value_35 = project_request(input);
|
|
555
|
+
{
|
|
556
|
+
let request = __eliscript_value_35;
|
|
557
|
+
if (((request)["version"] === (__eliscript_tdz_read_8()))) {
|
|
558
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_11()), "version": (__eliscript_tdz_read_13()), "mode": "project", "entries": (request)["entries"], "outDir": (request)["outDir"], "root": (request)["root"], "portableEntries": (request)["portableEntries"], "macroCapabilities": (request)["macroCapabilities"], "macroFileDependencies": (request)["macroFileDependencies"], "useCache": (request)["useCache"]}));
|
|
559
|
+
} else {
|
|
560
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_11()), "version": (__eliscript_tdz_read_12()), "mode": "project", "entry": (request)["entry"], "outDir": (request)["outDir"], "root": (request)["root"], "portableEntries": (request)["portableEntries"], "macroCapabilities": (request)["macroCapabilities"], "macroFileDependencies": (request)["macroFileDependencies"], "useCache": (request)["useCache"]}));
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
} else {
|
|
565
|
+
return (__eliscript_tdz_read_28())("unsupported build operation mode");
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
166
570
|
}
|
|
167
571
|
function check_operation_request(input) {
|
|
168
|
-
(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
572
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(input)))) {
|
|
573
|
+
(__eliscript_tdz_read_28())("check operation request must be an object");
|
|
574
|
+
}
|
|
575
|
+
{
|
|
576
|
+
let request = project_request(({"entry": (input)["entry"], "entries": (input)["entries"], "outDir": ".", "root": object_field(input, "root", null), "portableEntries": object_field(input, "portableEntries", []), "macroCapabilities": object_field(input, "macroCapabilities", []), "macroFileDependencies": object_field(input, "macroFileDependencies", []), "useCache": false}));
|
|
577
|
+
let entries = (((request)["version"] === (__eliscript_tdz_read_8())) ? (request)["entries"] : [(request)["entry"]]);
|
|
578
|
+
(globalThis.Object)["freeze"](entries);
|
|
579
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_14()), "version": (__eliscript_tdz_read_15()), "mode": "project", "entries": entries, "root": (request)["root"], "portableEntries": (request)["portableEntries"], "macroCapabilities": (request)["macroCapabilities"], "macroFileDependencies": (request)["macroFileDependencies"]}));
|
|
580
|
+
}
|
|
177
581
|
}
|
|
178
582
|
function project_configuration(input, filename) {
|
|
179
|
-
(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
583
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(input)))) {
|
|
584
|
+
(__eliscript_tdz_read_29())("configuration root must be an object", filename);
|
|
585
|
+
}
|
|
586
|
+
{
|
|
587
|
+
let schema_version = object_field(input, "schemaVersion", undefined);
|
|
588
|
+
let configuration_keys = ((schema_version === (__eliscript_tdz_read_9())) ? (__eliscript_tdz_read_30()) : ((schema_version === (__eliscript_tdz_read_10())) ? (__eliscript_tdz_read_31()) : (__eliscript_tdz_read_29())((String("unsupported schemaVersion: ") + String(schema_version)), filename)));
|
|
589
|
+
{
|
|
590
|
+
const __eliscript_value_36 = [];
|
|
591
|
+
{
|
|
592
|
+
let unknown = __eliscript_value_36;
|
|
593
|
+
((globalThis.Object)["keys"](input))["forEach"](((key) => {
|
|
594
|
+
if ((!__eliscript_truthy((configuration_keys)["includes"](key)))) {
|
|
595
|
+
return (unknown)["push"](key);
|
|
596
|
+
} else {
|
|
597
|
+
return null;
|
|
598
|
+
}
|
|
599
|
+
}));
|
|
186
600
|
(unknown)["sort"]();
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
601
|
+
if (__eliscript_numeric_relation(">", (unknown)["length"], 0)) {
|
|
602
|
+
(__eliscript_tdz_read_29())((String("unknown configuration key: ") + String(((((unknown) ?? [])[0]) ?? null))), filename);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
{
|
|
608
|
+
let schema_version = object_field(input, "schemaVersion", undefined);
|
|
609
|
+
let source_root = object_field(input, "sourceRoot", ".");
|
|
610
|
+
let entry = object_field(input, "entry", undefined);
|
|
611
|
+
let entries_input = object_field(input, "entries", undefined);
|
|
612
|
+
let out_dir = object_field(input, "outDir", undefined);
|
|
613
|
+
let portable_input = object_field(input, "portableEntries", []);
|
|
614
|
+
let macro_capabilities_input = object_field(input, "macroCapabilities", []);
|
|
615
|
+
let macro_file_dependencies_input = object_field(input, "macroFileDependencies", []);
|
|
616
|
+
let cache = object_field(input, "cache", true);
|
|
617
|
+
if ((!__eliscript_truthy(((__eliscript_value_37) => (__eliscript_truthy(__eliscript_value_37) ? (portable_input)["every"](((name) => {
|
|
618
|
+
return ((typeof name === "string") && __eliscript_numeric_relation(">", (name)["length"], 0));
|
|
619
|
+
})) : __eliscript_value_37))((__eliscript_tdz_read_22())(portable_input))))) {
|
|
620
|
+
(__eliscript_tdz_read_29())("portableEntries must be an array of non-empty strings", filename);
|
|
621
|
+
}
|
|
622
|
+
{
|
|
623
|
+
const __eliscript_value_38 = normalize_strings(portable_input, "configuration portable entries", false);
|
|
624
|
+
{
|
|
625
|
+
let portable_entries = __eliscript_value_38;
|
|
626
|
+
{
|
|
627
|
+
const __eliscript_value_39 = normalize_strings(macro_capabilities_input, "configuration macro capabilities", false);
|
|
628
|
+
{
|
|
629
|
+
let macro_capabilities = __eliscript_value_39;
|
|
630
|
+
{
|
|
631
|
+
const __eliscript_value_40 = normalize_strings(macro_file_dependencies_input, "configuration macro file dependencies", false);
|
|
632
|
+
{
|
|
633
|
+
let macro_file_dependencies = __eliscript_value_40;
|
|
634
|
+
{
|
|
635
|
+
const __eliscript_value_41 = ((schema_version === (__eliscript_tdz_read_10())) ? (() => {
|
|
636
|
+
if ((!__eliscript_truthy(((__eliscript_value_42) => (__eliscript_truthy(__eliscript_value_42) ? ((__eliscript_value_43) => (__eliscript_truthy(__eliscript_value_43) ? (entries_input)["every"](((source) => {
|
|
637
|
+
return ((typeof source === "string") && __eliscript_numeric_relation(">", (source)["length"], 0));
|
|
638
|
+
})) : __eliscript_value_43))(__eliscript_numeric_relation(">", (entries_input)["length"], 0)) : __eliscript_value_42))((__eliscript_tdz_read_22())(entries_input))))) {
|
|
639
|
+
(__eliscript_tdz_read_29())("entries must be a non-empty string array", filename);
|
|
640
|
+
}
|
|
641
|
+
return normalize_strings(entries_input, "configuration entries", true);
|
|
642
|
+
})() : [entry]);
|
|
643
|
+
{
|
|
644
|
+
let entries = __eliscript_value_41;
|
|
645
|
+
if ((!((portable_entries)["length"] === (portable_input)["length"]))) {
|
|
646
|
+
(__eliscript_tdz_read_29())("portableEntries must not contain duplicates", filename);
|
|
647
|
+
}
|
|
648
|
+
if ((!((macro_capabilities)["length"] === (macro_capabilities_input)["length"]))) {
|
|
649
|
+
(__eliscript_tdz_read_29())("macroCapabilities must not contain duplicates", filename);
|
|
650
|
+
}
|
|
651
|
+
(macro_capabilities)["forEach"](((capability) => {
|
|
652
|
+
if ((!__eliscript_truthy(((__eliscript_tdz_read_32()))["includes"](capability)))) {
|
|
653
|
+
return (__eliscript_tdz_read_29())((String("unsupported macro capability: ") + String(capability)), filename);
|
|
654
|
+
} else {
|
|
655
|
+
return null;
|
|
656
|
+
}
|
|
657
|
+
}));
|
|
658
|
+
if ((!((macro_file_dependencies)["length"] === (macro_file_dependencies_input)["length"]))) {
|
|
659
|
+
(__eliscript_tdz_read_29())("macroFileDependencies must not contain duplicates", filename);
|
|
660
|
+
}
|
|
661
|
+
(macro_file_dependencies)["forEach"](((dependency) => {
|
|
662
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_27())(dependency)))) {
|
|
663
|
+
return (__eliscript_tdz_read_29())("macroFileDependencies must contain only contained relative paths", filename);
|
|
664
|
+
} else {
|
|
665
|
+
return null;
|
|
666
|
+
}
|
|
667
|
+
}));
|
|
668
|
+
if ((__eliscript_numeric_relation(">", (macro_file_dependencies)["length"], 0) && (!__eliscript_truthy((macro_capabilities)["includes"]("read-file"))))) {
|
|
669
|
+
(__eliscript_tdz_read_29())("macroFileDependencies require the read-file macro capability", filename);
|
|
670
|
+
}
|
|
671
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_26())(cache)))) {
|
|
672
|
+
(__eliscript_tdz_read_29())("cache must be a boolean", filename);
|
|
673
|
+
}
|
|
674
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_27())(source_root)))) {
|
|
675
|
+
(__eliscript_tdz_read_29())("sourceRoot must be a contained relative path", filename);
|
|
676
|
+
}
|
|
677
|
+
if ((schema_version === (__eliscript_tdz_read_10()))) {
|
|
678
|
+
if ((!((entries)["length"] === (entries_input)["length"]))) {
|
|
679
|
+
(__eliscript_tdz_read_29())("entries must not contain duplicates", filename);
|
|
680
|
+
}
|
|
681
|
+
(entries)["forEach"](((source) => {
|
|
682
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_27())(source)))) {
|
|
683
|
+
return (__eliscript_tdz_read_29())("entries must contain only contained relative paths", filename);
|
|
684
|
+
} else {
|
|
685
|
+
return null;
|
|
686
|
+
}
|
|
687
|
+
}));
|
|
688
|
+
if ((__eliscript_numeric_relation(">", (entries)["length"], 1) && __eliscript_numeric_relation(">", (portable_entries)["length"], 0))) {
|
|
689
|
+
(__eliscript_tdz_read_29())("multi-entry portable project configurations are not supported", filename);
|
|
690
|
+
}
|
|
691
|
+
} else {
|
|
692
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_27())(entry)))) {
|
|
693
|
+
(__eliscript_tdz_read_29())("entry must be a contained relative path", filename);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_27())(out_dir)))) {
|
|
697
|
+
(__eliscript_tdz_read_29())("outDir must be a contained relative path", filename);
|
|
698
|
+
}
|
|
699
|
+
(globalThis.Object)["freeze"](portable_entries);
|
|
700
|
+
(globalThis.Object)["freeze"](macro_capabilities);
|
|
701
|
+
(globalThis.Object)["freeze"](macro_file_dependencies);
|
|
702
|
+
(globalThis.Object)["freeze"](entries);
|
|
703
|
+
if ((schema_version === (__eliscript_tdz_read_10()))) {
|
|
704
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_6()), "version": (__eliscript_tdz_read_8()), "sourceRoot": source_root, "entries": entries, "outDir": out_dir, "portableEntries": portable_entries, "macroCapabilities": macro_capabilities, "macroFileDependencies": macro_file_dependencies, "cache": cache}));
|
|
705
|
+
} else {
|
|
706
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_6()), "version": (__eliscript_tdz_read_7()), "sourceRoot": source_root, "entry": entry, "outDir": out_dir, "portableEntries": portable_entries, "macroCapabilities": macro_capabilities, "macroFileDependencies": macro_file_dependencies, "cache": cache}));
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}
|
|
254
717
|
}
|
|
255
718
|
function freeze_request(request) {
|
|
256
719
|
(globalThis.Object)["freeze"]((request)["entries"]);
|
|
257
720
|
return (globalThis.Object)["freeze"](request);
|
|
258
721
|
}
|
|
259
722
|
function normalize_portable_requests(values, label, require_entry) {
|
|
260
|
-
(
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
723
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_22())(values)))) {
|
|
724
|
+
(__eliscript_tdz_read_21())((String(label) + String(" must be an array")));
|
|
725
|
+
}
|
|
726
|
+
{
|
|
727
|
+
const __eliscript_value_44 = new (globalThis.Map)();
|
|
728
|
+
{
|
|
729
|
+
let entries_by_module = __eliscript_value_44;
|
|
730
|
+
(values)["forEach"](((request) => {
|
|
731
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(request)))) {
|
|
732
|
+
(__eliscript_tdz_read_21())((String(label) + String(" must contain only request objects")));
|
|
733
|
+
}
|
|
734
|
+
{
|
|
735
|
+
let module_id = (request)["id"];
|
|
736
|
+
let entries = normalize_strings((request)["entries"], (String(label) + String(" entries")), true);
|
|
737
|
+
if ((!((typeof module_id === "string") && __eliscript_numeric_relation(">", (module_id)["length"], 0)))) {
|
|
738
|
+
(__eliscript_tdz_read_21())((String(label) + String(" id must be a non-empty string")));
|
|
739
|
+
}
|
|
740
|
+
{
|
|
741
|
+
const __eliscript_value_45 = ((__eliscript_value_46) => (__eliscript_truthy(__eliscript_value_46) ? __eliscript_value_46 : ((created) => {
|
|
273
742
|
(entries_by_module)["set"](module_id, created);
|
|
274
743
|
return created;
|
|
275
|
-
})(new globalThis.Set())))((entries_by_module)["get"](module_id))
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
});
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
744
|
+
})(new (globalThis.Set)())))((entries_by_module)["get"](module_id));
|
|
745
|
+
{
|
|
746
|
+
let requested = __eliscript_value_45;
|
|
747
|
+
return (entries)["forEach"](((entry) => {
|
|
748
|
+
return (requested)["add"](entry);
|
|
749
|
+
}));
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}));
|
|
754
|
+
if (__eliscript_truthy(((__eliscript_value_47) => (__eliscript_truthy(__eliscript_value_47) ? ((entries_by_module)["size"] === 0) : __eliscript_value_47))(require_entry))) {
|
|
755
|
+
(__eliscript_tdz_read_21())((String(label) + String(" must not be empty")));
|
|
756
|
+
}
|
|
757
|
+
{
|
|
758
|
+
const __eliscript_value_48 = [];
|
|
759
|
+
{
|
|
760
|
+
let result = __eliscript_value_48;
|
|
761
|
+
((__eliscript_tdz_read_24())((entries_by_module)["keys"]()))["forEach"](((module_id) => {
|
|
762
|
+
return (result)["push"](freeze_request(({"id": module_id, "entries": (__eliscript_tdz_read_24())((entries_by_module)["get"](module_id))})));
|
|
763
|
+
}));
|
|
764
|
+
return (globalThis.Object)["freeze"](result);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
288
769
|
}
|
|
289
770
|
function project_plan(entries, dependencies_for) {
|
|
290
|
-
(
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
771
|
+
if ((!(typeof dependencies_for === "function"))) {
|
|
772
|
+
(__eliscript_tdz_read_21())("project dependency resolver must be a function");
|
|
773
|
+
}
|
|
774
|
+
{
|
|
775
|
+
let entry_list = normalize_strings(entries, "project entries", true);
|
|
776
|
+
let pending = new (globalThis.Set)(entry_list);
|
|
777
|
+
let visited = new (globalThis.Set)();
|
|
778
|
+
let records = new (globalThis.Map)();
|
|
779
|
+
let iterations = 0;
|
|
780
|
+
while (__eliscript_numeric_relation(">", (pending)["size"], 0)) {
|
|
781
|
+
((iterations = (iterations + 1)));
|
|
782
|
+
if (__eliscript_numeric_relation(">", iterations, (__eliscript_tdz_read_2()))) {
|
|
783
|
+
(__eliscript_tdz_read_21())("project graph exceeded the planning iteration limit");
|
|
784
|
+
}
|
|
785
|
+
{
|
|
786
|
+
const __eliscript_value_49 = (((((__eliscript_tdz_read_24())(pending)) ?? [])[0]) ?? null);
|
|
787
|
+
{
|
|
788
|
+
let module_id = __eliscript_value_49;
|
|
789
|
+
(pending)["delete"](module_id);
|
|
790
|
+
if ((!__eliscript_truthy((visited)["has"](module_id)))) {
|
|
791
|
+
(visited)["add"](module_id);
|
|
792
|
+
{
|
|
793
|
+
const __eliscript_value_50 = normalize_strings(dependencies_for(module_id), (String("dependencies for ") + String(module_id)), false);
|
|
794
|
+
{
|
|
795
|
+
let dependencies = __eliscript_value_50;
|
|
796
|
+
(records)["set"](module_id, (globalThis.Object)["freeze"](({"id": module_id, "dependencies": (globalThis.Object)["freeze"](dependencies)})));
|
|
797
|
+
(dependencies)["forEach"](((dependency) => {
|
|
798
|
+
if ((!__eliscript_truthy((visited)["has"](dependency)))) {
|
|
799
|
+
return (pending)["add"](dependency);
|
|
800
|
+
} else {
|
|
801
|
+
return null;
|
|
802
|
+
}
|
|
803
|
+
}));
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
{
|
|
811
|
+
const __eliscript_value_51 = [];
|
|
812
|
+
{
|
|
813
|
+
let modules = __eliscript_value_51;
|
|
814
|
+
((__eliscript_tdz_read_24())((records)["keys"]()))["forEach"](((module_id) => {
|
|
815
|
+
return (modules)["push"]((records)["get"](module_id));
|
|
816
|
+
}));
|
|
817
|
+
(globalThis.Object)["freeze"](modules);
|
|
818
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_0()), "version": (__eliscript_tdz_read_1()), "mode": "standard", "entries": (globalThis.Object)["freeze"](entry_list), "modules": modules}));
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
329
822
|
}
|
|
330
823
|
function add_portable_request(requests, pending, request) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
return (() => {
|
|
335
|
-
((request)["entries"])["forEach"]((entry) => {
|
|
336
|
-
return (__eliscript_truthy((!__eliscript_truthy((requested)["has"](entry)))) ? (() => {
|
|
337
|
-
(requested)["add"](entry);
|
|
338
|
-
return ((changed = true));
|
|
339
|
-
})() : null);
|
|
340
|
-
});
|
|
341
|
-
(__eliscript_truthy(changed) ? (pending)["add"](module_id) : null);
|
|
342
|
-
return changed;
|
|
343
|
-
})();
|
|
344
|
-
})(false);
|
|
345
|
-
})(((__eliscript_value_38) => (__eliscript_truthy(__eliscript_value_38) ? __eliscript_value_38 : ((created) => {
|
|
824
|
+
{
|
|
825
|
+
let module_id = (request)["id"];
|
|
826
|
+
let requested = ((__eliscript_value_52) => (__eliscript_truthy(__eliscript_value_52) ? __eliscript_value_52 : ((created) => {
|
|
346
827
|
(requests)["set"](module_id, created);
|
|
347
828
|
return created;
|
|
348
|
-
})(new globalThis.Set())))((requests)["get"](module_id))
|
|
349
|
-
|
|
829
|
+
})(new (globalThis.Set)())))((requests)["get"](module_id));
|
|
830
|
+
let changed = false;
|
|
831
|
+
((request)["entries"])["forEach"](((entry) => {
|
|
832
|
+
if ((!__eliscript_truthy((requested)["has"](entry)))) {
|
|
833
|
+
(requested)["add"](entry);
|
|
834
|
+
return ((changed = true));
|
|
835
|
+
} else {
|
|
836
|
+
return null;
|
|
837
|
+
}
|
|
838
|
+
}));
|
|
839
|
+
if (__eliscript_truthy(changed)) {
|
|
840
|
+
(pending)["add"](module_id);
|
|
841
|
+
}
|
|
842
|
+
return changed;
|
|
843
|
+
}
|
|
350
844
|
}
|
|
351
845
|
function portable_project_plan(initial_requests, dependencies_for) {
|
|
352
|
-
(
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
})();
|
|
402
|
-
})(0);
|
|
403
|
-
})(new globalThis.Map());
|
|
404
|
-
})(new globalThis.Map());
|
|
405
|
-
})(new globalThis.Set());
|
|
406
|
-
})(new globalThis.Map());
|
|
407
|
-
})(normalize_portable_requests(initial_requests, "portable project entries", true));
|
|
846
|
+
if ((!(typeof dependencies_for === "function"))) {
|
|
847
|
+
(__eliscript_tdz_read_21())("portable dependency resolver must be a function");
|
|
848
|
+
}
|
|
849
|
+
{
|
|
850
|
+
let initial = normalize_portable_requests(initial_requests, "portable project entries", true);
|
|
851
|
+
let requests = new (globalThis.Map)();
|
|
852
|
+
let pending = new (globalThis.Set)();
|
|
853
|
+
let processed = new (globalThis.Map)();
|
|
854
|
+
let records = new (globalThis.Map)();
|
|
855
|
+
let iterations = 0;
|
|
856
|
+
(initial)["forEach"](((request) => {
|
|
857
|
+
return add_portable_request(requests, pending, request);
|
|
858
|
+
}));
|
|
859
|
+
while (__eliscript_numeric_relation(">", (pending)["size"], 0)) {
|
|
860
|
+
((iterations = (iterations + 1)));
|
|
861
|
+
if (__eliscript_numeric_relation(">", iterations, (__eliscript_tdz_read_2()))) {
|
|
862
|
+
(__eliscript_tdz_read_21())("portable project graph exceeded the planning iteration limit");
|
|
863
|
+
}
|
|
864
|
+
{
|
|
865
|
+
let module_id = (((((__eliscript_tdz_read_24())(pending)) ?? [])[0]) ?? null);
|
|
866
|
+
let entries = (__eliscript_tdz_read_24())((requests)["get"](module_id));
|
|
867
|
+
let signature = __eliscript_at_direct(entries, "join", "\u0000");
|
|
868
|
+
(pending)["delete"](module_id);
|
|
869
|
+
if ((!(signature === (processed)["get"](module_id)))) {
|
|
870
|
+
(processed)["set"](module_id, signature);
|
|
871
|
+
{
|
|
872
|
+
let discovered = normalize_portable_requests(dependencies_for(module_id, entries), (String("portable dependencies for ") + String(module_id)), false);
|
|
873
|
+
let previous = (records)["get"](module_id);
|
|
874
|
+
let dependencies = (__eliscript_truthy(previous) ? normalize_portable_requests(((previous)["dependencies"])["concat"](discovered), (String("portable dependencies for ") + String(module_id)), false) : discovered);
|
|
875
|
+
(records)["set"](module_id, (globalThis.Object)["freeze"](({"id": module_id, "entries": (globalThis.Object)["freeze"](entries), "dependencies": dependencies})));
|
|
876
|
+
(dependencies)["forEach"](((request) => {
|
|
877
|
+
return add_portable_request(requests, pending, request);
|
|
878
|
+
}));
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
{
|
|
884
|
+
const __eliscript_value_53 = [];
|
|
885
|
+
{
|
|
886
|
+
let modules = __eliscript_value_53;
|
|
887
|
+
((__eliscript_tdz_read_24())((records)["keys"]()))["forEach"](((module_id) => {
|
|
888
|
+
return (modules)["push"]((records)["get"](module_id));
|
|
889
|
+
}));
|
|
890
|
+
(globalThis.Object)["freeze"](modules);
|
|
891
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_0()), "version": (__eliscript_tdz_read_1()), "mode": "portable", "entries": initial, "modules": modules}));
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
408
895
|
}
|
|
409
896
|
function project_cache_miss(reason) {
|
|
410
897
|
return (globalThis.Object)["freeze"](({"cache": null, "reason": reason}));
|
|
411
898
|
}
|
|
412
899
|
function project_cache_version_kind(cache) {
|
|
413
|
-
|
|
900
|
+
if ((((cache)["format"] === (__eliscript_tdz_read_18())) && ((cache)["version"] === (__eliscript_tdz_read_19())))) {
|
|
901
|
+
return "current";
|
|
902
|
+
} else {
|
|
903
|
+
if ((((cache)["format"] === undefined) && ((cache)["version"] === (__eliscript_tdz_read_20())))) {
|
|
904
|
+
return "legacy";
|
|
905
|
+
} else {
|
|
906
|
+
return false;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
414
909
|
}
|
|
415
910
|
function project_cache_records(identity_modules, cache_modules) {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
911
|
+
if ((!__eliscript_truthy(((__eliscript_value_54) => (__eliscript_truthy(__eliscript_value_54) ? (__eliscript_tdz_read_22())(cache_modules) : __eliscript_value_54))((__eliscript_tdz_read_22())(identity_modules))))) {
|
|
912
|
+
return false;
|
|
913
|
+
} else {
|
|
914
|
+
{
|
|
915
|
+
const __eliscript_value_55 = new (globalThis.Map)();
|
|
916
|
+
const __eliscript_value_56 = new (globalThis.Map)();
|
|
917
|
+
const __eliscript_value_57 = [];
|
|
918
|
+
const __eliscript_value_58 = true;
|
|
919
|
+
{
|
|
920
|
+
let identities = __eliscript_value_55;
|
|
921
|
+
let metadata_by_source = __eliscript_value_56;
|
|
922
|
+
let records = __eliscript_value_57;
|
|
923
|
+
let valid = __eliscript_value_58;
|
|
924
|
+
(identity_modules)["forEach"](((identity) => {
|
|
925
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(identity)))) {
|
|
926
|
+
return ((valid = false));
|
|
927
|
+
} else {
|
|
928
|
+
{
|
|
929
|
+
const __eliscript_value_59 = (identity)["source"];
|
|
930
|
+
{
|
|
931
|
+
let source = __eliscript_value_59;
|
|
932
|
+
if (__eliscript_truthy(((__eliscript_value_60) => (__eliscript_truthy(__eliscript_value_60) ? __eliscript_value_60 : ((__eliscript_value_61) => (__eliscript_truthy(__eliscript_value_61) ? __eliscript_value_61 : (identities)["has"](source)))(((source)["length"] === 0))))((!(typeof source === "string"))))) {
|
|
933
|
+
return ((valid = false));
|
|
934
|
+
} else {
|
|
935
|
+
return (identities)["set"](source, identity);
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}));
|
|
941
|
+
(cache_modules)["forEach"](((metadata) => {
|
|
942
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(metadata)))) {
|
|
943
|
+
return ((valid = false));
|
|
944
|
+
} else {
|
|
945
|
+
{
|
|
946
|
+
const __eliscript_value_62 = (metadata)["source"];
|
|
947
|
+
{
|
|
948
|
+
let source = __eliscript_value_62;
|
|
949
|
+
if (__eliscript_truthy(((__eliscript_value_63) => (__eliscript_truthy(__eliscript_value_63) ? __eliscript_value_63 : ((__eliscript_value_64) => (__eliscript_truthy(__eliscript_value_64) ? __eliscript_value_64 : (metadata_by_source)["has"](source)))(((source)["length"] === 0))))((!(typeof source === "string"))))) {
|
|
950
|
+
return ((valid = false));
|
|
951
|
+
} else {
|
|
952
|
+
return (metadata_by_source)["set"](source, metadata);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}));
|
|
958
|
+
if (((!((identities)["size"] === (identity_modules)["length"])) || (!((metadata_by_source)["size"] === (cache_modules)["length"])) || (!((identities)["size"] === (metadata_by_source)["size"])))) {
|
|
959
|
+
((valid = false));
|
|
960
|
+
}
|
|
961
|
+
if (__eliscript_truthy(valid)) {
|
|
962
|
+
((__eliscript_tdz_read_24())((identities)["keys"]()))["forEach"](((source) => {
|
|
963
|
+
{
|
|
964
|
+
const __eliscript_value_65 = (metadata_by_source)["get"](source);
|
|
965
|
+
{
|
|
966
|
+
let metadata = __eliscript_value_65;
|
|
967
|
+
if ((metadata === undefined)) {
|
|
968
|
+
return ((valid = false));
|
|
969
|
+
} else {
|
|
970
|
+
return (records)["push"]((globalThis.Object)["freeze"](({"source": source, "identity": (identities)["get"](source), "metadata": metadata})));
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}));
|
|
975
|
+
}
|
|
976
|
+
if (__eliscript_truthy(valid)) {
|
|
977
|
+
return (globalThis.Object)["freeze"](records);
|
|
978
|
+
} else {
|
|
979
|
+
return false;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
435
984
|
}
|
|
436
985
|
function project_cache_lookup(input) {
|
|
437
|
-
(
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
|
|
986
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(input)))) {
|
|
987
|
+
(__eliscript_tdz_read_21())("project cache lookup input must be an object");
|
|
988
|
+
}
|
|
989
|
+
{
|
|
990
|
+
const __eliscript_value_66 = (input)["enabled"];
|
|
991
|
+
const __eliscript_value_67 = (input)["manifestStatus"];
|
|
992
|
+
{
|
|
993
|
+
let enabled = __eliscript_value_66;
|
|
994
|
+
let manifest_status = __eliscript_value_67;
|
|
995
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_26())(enabled)))) {
|
|
996
|
+
(__eliscript_tdz_read_21())("project cache enabled must be a boolean");
|
|
997
|
+
}
|
|
998
|
+
if ((!__eliscript_truthy(enabled))) {
|
|
999
|
+
return project_cache_miss("cache-disabled");
|
|
1000
|
+
} else {
|
|
1001
|
+
if ((manifest_status === "missing")) {
|
|
1002
|
+
return project_cache_miss("manifest-missing");
|
|
1003
|
+
} else {
|
|
1004
|
+
if ((manifest_status === "unreadable")) {
|
|
1005
|
+
return project_cache_miss("manifest-unreadable");
|
|
1006
|
+
} else {
|
|
1007
|
+
if ((!(manifest_status === "readable"))) {
|
|
1008
|
+
return (__eliscript_tdz_read_21())("project cache manifest status is invalid");
|
|
1009
|
+
} else {
|
|
1010
|
+
{
|
|
1011
|
+
let manifest = (input)["manifest"];
|
|
1012
|
+
let cache = ((__eliscript_value_68) => (__eliscript_truthy(__eliscript_value_68) ? (manifest)["cache"] : __eliscript_value_68))((__eliscript_tdz_read_23())(manifest));
|
|
1013
|
+
let identity_modules = ((__eliscript_value_69) => (__eliscript_truthy(__eliscript_value_69) ? (manifest)["modules"] : __eliscript_value_69))((__eliscript_tdz_read_23())(manifest));
|
|
1014
|
+
let cache_modules = ((__eliscript_value_70) => (__eliscript_truthy(__eliscript_value_70) ? (cache)["modules"] : __eliscript_value_70))((__eliscript_tdz_read_23())(cache));
|
|
1015
|
+
let version_kind = ((__eliscript_value_71) => (__eliscript_truthy(__eliscript_value_71) ? project_cache_version_kind(cache) : __eliscript_value_71))((__eliscript_tdz_read_23())(cache));
|
|
1016
|
+
if (((!__eliscript_truthy((__eliscript_tdz_read_23())(manifest))) || (!((manifest)["format"] === "eliscript-project")) || (!(((manifest)["version"] === 1) || ((manifest)["version"] === 2))) || (!__eliscript_truthy((__eliscript_tdz_read_22())(identity_modules))))) {
|
|
1017
|
+
return project_cache_miss("manifest-version-changed");
|
|
1018
|
+
} else {
|
|
1019
|
+
if ((((manifest)["version"] === 1) && (!((manifest)["entry"] === (input)["expectedEntry"])))) {
|
|
1020
|
+
return project_cache_miss("entry-changed");
|
|
1021
|
+
} else {
|
|
1022
|
+
if ((((manifest)["version"] === 2) && (!__eliscript_truthy(same_string_arrays((manifest)["entries"], (input)["expectedEntries"]))))) {
|
|
1023
|
+
return project_cache_miss("entries-changed");
|
|
1024
|
+
} else {
|
|
1025
|
+
if ((!((input)["graphDigestValid"] === true))) {
|
|
1026
|
+
return project_cache_miss("graph-digest-invalid");
|
|
1027
|
+
} else {
|
|
1028
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(cache)))) {
|
|
1029
|
+
return project_cache_miss("cache-missing");
|
|
1030
|
+
} else {
|
|
1031
|
+
if ((!__eliscript_truthy(version_kind))) {
|
|
1032
|
+
return project_cache_miss("cache-version-changed");
|
|
1033
|
+
} else {
|
|
1034
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_22())(cache_modules)))) {
|
|
1035
|
+
return project_cache_miss("cache-records-invalid");
|
|
1036
|
+
} else {
|
|
1037
|
+
if ((!((input)["cacheDigestValid"] === true))) {
|
|
1038
|
+
return project_cache_miss("cache-digest-invalid");
|
|
1039
|
+
} else {
|
|
1040
|
+
if ((!((cache)["compilerDigest"] === (input)["compilerDigest"]))) {
|
|
1041
|
+
return project_cache_miss("compiler-changed");
|
|
1042
|
+
} else {
|
|
1043
|
+
if ((!((cache)["mode"] === (input)["mode"]))) {
|
|
1044
|
+
return project_cache_miss("mode-changed");
|
|
1045
|
+
} else {
|
|
1046
|
+
if ((!__eliscript_truthy(same_string_arrays((cache)["portableEntries"], (input)["portableEntries"])))) {
|
|
1047
|
+
return project_cache_miss("portable-roots-changed");
|
|
1048
|
+
} else {
|
|
1049
|
+
{
|
|
1050
|
+
const __eliscript_value_72 = project_cache_records(identity_modules, cache_modules);
|
|
1051
|
+
{
|
|
1052
|
+
let records = __eliscript_value_72;
|
|
1053
|
+
if ((!__eliscript_truthy(records))) {
|
|
1054
|
+
return project_cache_miss("cache-records-invalid");
|
|
1055
|
+
} else {
|
|
1056
|
+
return (globalThis.Object)["freeze"](({"cache": (globalThis.Object)["freeze"](({"sourceVersion": (cache)["version"], "manifestDigest": (manifest)["digest"], "records": records})), "reason": "verified"}));
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
454
1078
|
}
|
|
455
1079
|
function project_cache_decision(input) {
|
|
456
|
-
(
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
})(((__eliscript_value_59) => (__eliscript_truthy(__eliscript_value_59) ? (record)["metadata"] : __eliscript_value_59))(object_p(record)));
|
|
470
|
-
})(((__eliscript_value_58) => (__eliscript_truthy(__eliscript_value_58) ? (record)["identity"] : __eliscript_value_58))(object_p(record)));
|
|
471
|
-
})((input)["record"]);
|
|
1080
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(input)))) {
|
|
1081
|
+
(__eliscript_tdz_read_21())("project cache decision input must be an object");
|
|
1082
|
+
}
|
|
1083
|
+
{
|
|
1084
|
+
let record = (input)["record"];
|
|
1085
|
+
let identity = ((__eliscript_value_73) => (__eliscript_truthy(__eliscript_value_73) ? (record)["identity"] : __eliscript_value_73))((__eliscript_tdz_read_23())(record));
|
|
1086
|
+
let metadata = ((__eliscript_value_74) => (__eliscript_truthy(__eliscript_value_74) ? (record)["metadata"] : __eliscript_value_74))((__eliscript_tdz_read_23())(record));
|
|
1087
|
+
let expected_portable_entries = (input)["expectedPortableEntries"];
|
|
1088
|
+
let recorded_portable_entries = ((__eliscript_value_75) => (__eliscript_truthy(__eliscript_value_75) ? (metadata)["portableEntries"] : __eliscript_value_75))((__eliscript_tdz_read_23())(metadata));
|
|
1089
|
+
let macro_dependencies_match = object_field(input, "macroDependenciesMatch", true);
|
|
1090
|
+
let reason = ((!__eliscript_truthy(((__eliscript_value_76) => (__eliscript_truthy(__eliscript_value_76) ? (__eliscript_tdz_read_23())(metadata) : __eliscript_value_76))((__eliscript_tdz_read_23())(identity)))) ? "not-cached" : ((!((identity)["output"] === (input)["output"])) ? "output-path-changed" : ((!((identity)["sourceMap"] === (input)["sourceMap"])) ? "source-map-path-changed" : (((!(expected_portable_entries === null)) && (!__eliscript_truthy(same_string_arrays(recorded_portable_entries, expected_portable_entries)))) ? "portable-entries-changed" : ((!(macro_dependencies_match === true)) ? "macro-dependencies-changed" : (((!((input)["artifactFailure"] === undefined)) && (!((input)["artifactFailure"] === null))) ? (input)["artifactFailure"] : ((!((identity)["sourceDigest"] === (input)["sourceDigest"])) ? "source-changed" : ((!((input)["outputExists"] === true)) ? "output-missing" : ((!((input)["sourceMapExists"] === true)) ? "source-map-missing" : ((!((identity)["outputDigest"] === (input)["outputDigest"])) ? "output-digest-changed" : ((!((identity)["sourceMapDigest"] === (input)["sourceMapDigest"])) ? "source-map-digest-changed" : ((!((input)["dependenciesValid"] === true)) ? "dependencies-invalid" : "verified"))))))))))));
|
|
1091
|
+
return (globalThis.Object)["freeze"](({"reused": (reason === "verified"), "reason": reason}));
|
|
1092
|
+
}
|
|
472
1093
|
}
|
|
473
1094
|
function normalize_report_modules(values) {
|
|
474
|
-
(
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
1095
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_22())(values)))) {
|
|
1096
|
+
(__eliscript_tdz_read_21())("build report modules must be an array");
|
|
1097
|
+
}
|
|
1098
|
+
{
|
|
1099
|
+
const __eliscript_value_77 = [];
|
|
1100
|
+
const __eliscript_value_78 = 0;
|
|
1101
|
+
const __eliscript_value_79 = 0;
|
|
1102
|
+
{
|
|
1103
|
+
let result = __eliscript_value_77;
|
|
1104
|
+
let compiled = __eliscript_value_78;
|
|
1105
|
+
let reused = __eliscript_value_79;
|
|
1106
|
+
(values)["forEach"](((module) => {
|
|
1107
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(module)))) {
|
|
1108
|
+
(__eliscript_tdz_read_21())("build report modules must contain only objects");
|
|
1109
|
+
}
|
|
1110
|
+
{
|
|
1111
|
+
let status = require_string((module)["status"], "build report module status");
|
|
1112
|
+
let macro_dependencies = object_field(module, "macroDependencies", []);
|
|
1113
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_22())(macro_dependencies)))) {
|
|
1114
|
+
(__eliscript_tdz_read_21())("build report macro dependencies must be an array");
|
|
1115
|
+
}
|
|
1116
|
+
(macro_dependencies)["forEach"](((dependency) => {
|
|
1117
|
+
if ((!__eliscript_truthy(((__eliscript_value_80) => (__eliscript_truthy(__eliscript_value_80) ? ((__eliscript_value_81) => (__eliscript_truthy(__eliscript_value_81) ? ((__eliscript_value_82) => (__eliscript_truthy(__eliscript_value_82) ? ((__eliscript_value_83) => (__eliscript_truthy(__eliscript_value_83) ? (/^[0-9a-f]{64}$/)["test"]((dependency)["digest"]) : __eliscript_value_83))((typeof dependency.digest === "string")) : __eliscript_value_82))(__eliscript_numeric_relation(">", ((dependency)["path"])["length"], 0)) : __eliscript_value_81))((typeof dependency.path === "string")) : __eliscript_value_80))((__eliscript_tdz_read_23())(dependency))))) {
|
|
1118
|
+
return (__eliscript_tdz_read_21())("build report macro dependency is invalid");
|
|
1119
|
+
} else {
|
|
1120
|
+
return null;
|
|
1121
|
+
}
|
|
1122
|
+
}));
|
|
1123
|
+
(macro_dependencies)["sort"](((left, right) => {
|
|
1124
|
+
return utf16_string_order((left)["path"], (right)["path"]);
|
|
1125
|
+
}));
|
|
1126
|
+
(globalThis.Object)["freeze"](macro_dependencies);
|
|
1127
|
+
if ((!((status === "compiled") || (status === "reused")))) {
|
|
1128
|
+
(__eliscript_tdz_read_21())("build report module status must be compiled or reused");
|
|
1129
|
+
}
|
|
1130
|
+
if ((status === "compiled")) {
|
|
1131
|
+
((compiled = (compiled + 1)));
|
|
1132
|
+
} else {
|
|
1133
|
+
((reused = (reused + 1)));
|
|
1134
|
+
}
|
|
1135
|
+
{
|
|
1136
|
+
const __eliscript_value_84 = ({"source": require_string((module)["source"], "build report module source"), "output": require_string((module)["output"], "build report module output"), "sourceMap": require_string((module)["sourceMap"], "build report module source map"), "status": status, "reason": require_string((module)["reason"], "build report module reason"), "dependencies": (globalThis.Object)["freeze"](normalize_strings((module)["dependencies"], "build report module dependencies", false)), "portableEntries": (globalThis.Object)["freeze"](normalize_strings((module)["portableEntries"], "build report module portable entries", false))});
|
|
1137
|
+
{
|
|
1138
|
+
let normalized_module = __eliscript_value_84;
|
|
1139
|
+
if (__eliscript_numeric_relation(">", (macro_dependencies)["length"], 0)) {
|
|
1140
|
+
((normalized_module)["macroDependencies"] = macro_dependencies);
|
|
1141
|
+
}
|
|
493
1142
|
return (result)["push"]((globalThis.Object)["freeze"](normalized_module));
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
})
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
}
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}));
|
|
1147
|
+
(result)["sort"](((left, right) => {
|
|
1148
|
+
return utf16_string_order((left)["source"], (right)["source"]);
|
|
1149
|
+
}));
|
|
1150
|
+
(globalThis.Object)["freeze"](result);
|
|
1151
|
+
return (globalThis.Object)["freeze"](({"modules": result, "compiled": compiled, "reused": reused}));
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
505
1154
|
}
|
|
506
1155
|
function project_build_report(build) {
|
|
507
|
-
(
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
1156
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(build)))) {
|
|
1157
|
+
(__eliscript_tdz_read_21())("project build report input must be an object");
|
|
1158
|
+
}
|
|
1159
|
+
{
|
|
1160
|
+
let mode = require_string((build)["mode"], "build report mode");
|
|
1161
|
+
let multi = (!((build)["entries"] === undefined));
|
|
1162
|
+
let entries = (__eliscript_truthy(multi) ? normalize_strings((build)["entries"], "build report entries", true) : []);
|
|
1163
|
+
let entry_outputs = (__eliscript_truthy(multi) ? normalize_strings((build)["entryOutputs"], "build report entry outputs", true) : []);
|
|
1164
|
+
let cache = (build)["cache"];
|
|
1165
|
+
let timings = (build)["timings"];
|
|
1166
|
+
let normalized = normalize_report_modules((build)["modules"]);
|
|
1167
|
+
let modules = (normalized)["modules"];
|
|
1168
|
+
let compiled = (normalized)["compiled"];
|
|
1169
|
+
let reused = (normalized)["reused"];
|
|
1170
|
+
let lookup_reason = (__eliscript_truthy((__eliscript_tdz_read_23())(cache)) ? require_string((cache)["reason"], "build report cache reason") : (__eliscript_tdz_read_21())("build report cache must be an object"));
|
|
1171
|
+
let cache_enabled = (cache)["enabled"];
|
|
1172
|
+
let cache_status = ((!__eliscript_truthy(cache_enabled)) ? "disabled" : ((reused === 0) ? "miss" : ((compiled === 0) ? "hit" : "partial")));
|
|
1173
|
+
let cache_reason = ((!__eliscript_truthy(cache_enabled)) ? "cache-disabled" : ((cache_status === "hit") ? "verified" : ((cache_status === "partial") ? "dirty-modules" : ((lookup_reason === "verified") ? "all-modules-dirty" : lookup_reason))));
|
|
1174
|
+
if ((!((mode === "standard") || (mode === "portable")))) {
|
|
1175
|
+
(__eliscript_tdz_read_21())("build report mode must be standard or portable");
|
|
1176
|
+
}
|
|
1177
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_26())(cache_enabled)))) {
|
|
1178
|
+
(__eliscript_tdz_read_21())("build report cache enabled must be a boolean");
|
|
1179
|
+
}
|
|
1180
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(timings)))) {
|
|
1181
|
+
(__eliscript_tdz_read_21())("build report timings must be an object");
|
|
1182
|
+
}
|
|
1183
|
+
if (__eliscript_truthy(((__eliscript_value_85) => (__eliscript_truthy(__eliscript_value_85) ? (!((entries)["length"] === (entry_outputs)["length"])) : __eliscript_value_85))(multi))) {
|
|
1184
|
+
(__eliscript_tdz_read_21())("build report entries and outputs must have the same length");
|
|
1185
|
+
}
|
|
1186
|
+
(globalThis.Object)["freeze"](entries);
|
|
1187
|
+
(globalThis.Object)["freeze"](entry_outputs);
|
|
1188
|
+
{
|
|
1189
|
+
const __eliscript_value_86 = ({"format": (__eliscript_tdz_read_3()), "version": (__eliscript_truthy(multi) ? (__eliscript_tdz_read_5()) : (__eliscript_tdz_read_4())), "mode": mode, "root": require_string((build)["root"], "build report root"), "outDir": require_string((build)["outDir"], "build report output directory"), "manifest": require_string((build)["manifest"], "build report manifest"), "digest": require_string((build)["digest"], "build report digest"), "portableEntries": (globalThis.Object)["freeze"](normalize_strings((build)["portableEntries"], "build report portable entries", false)), "cache": (globalThis.Object)["freeze"](({"enabled": (__eliscript_truthy(cache_enabled) ? true : false), "status": cache_status, "reason": cache_reason})), "counts": (globalThis.Object)["freeze"](({"modules": (modules)["length"], "compiled": compiled, "reused": reused})), "timings": (globalThis.Object)["freeze"](({"cacheReadMs": report_milliseconds((timings)["cacheReadMs"], "build report cache read time"), "workMs": report_milliseconds((timings)["workMs"], "build report work time"), "manifestWriteMs": report_milliseconds((timings)["manifestWriteMs"], "build report manifest write time"), "totalMs": report_milliseconds((timings)["totalMs"], "build report total time")})), "modules": modules});
|
|
1190
|
+
{
|
|
1191
|
+
let common = __eliscript_value_86;
|
|
1192
|
+
if (__eliscript_truthy(multi)) {
|
|
1193
|
+
(globalThis.Object)["assign"](common, ({"entries": entries, "entryOutputs": entry_outputs}));
|
|
1194
|
+
} else {
|
|
1195
|
+
(globalThis.Object)["assign"](common, ({"entry": require_string((build)["entry"], "build report entry"), "entryOutput": require_string((build)["entryOutput"], "build report entry output")}));
|
|
1196
|
+
}
|
|
1197
|
+
return (globalThis.Object)["freeze"](common);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
548
1201
|
}
|
|
549
1202
|
function normalize_check_modules(modules) {
|
|
550
|
-
(
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
1203
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_22())(modules)))) {
|
|
1204
|
+
(__eliscript_tdz_read_21())("project check report modules must be an array");
|
|
1205
|
+
}
|
|
1206
|
+
{
|
|
1207
|
+
const __eliscript_value_87 = new (globalThis.Set)();
|
|
1208
|
+
const __eliscript_value_88 = [];
|
|
1209
|
+
{
|
|
1210
|
+
let seen = __eliscript_value_87;
|
|
1211
|
+
let result = __eliscript_value_88;
|
|
1212
|
+
(modules)["forEach"](((module) => {
|
|
1213
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(module)))) {
|
|
1214
|
+
(__eliscript_tdz_read_21())("project check report modules must contain objects");
|
|
1215
|
+
}
|
|
1216
|
+
{
|
|
1217
|
+
const __eliscript_value_89 = require_string((module)["source"], "project check report module source");
|
|
1218
|
+
{
|
|
1219
|
+
let source = __eliscript_value_89;
|
|
1220
|
+
if (__eliscript_truthy((seen)["has"](source))) {
|
|
1221
|
+
(__eliscript_tdz_read_21())("project check report module sources must be unique");
|
|
1222
|
+
}
|
|
1223
|
+
(seen)["add"](source);
|
|
1224
|
+
return (result)["push"]((globalThis.Object)["freeze"](({"source": source, "dependencies": (globalThis.Object)["freeze"](normalize_strings((module)["dependencies"], "project check report module dependencies", false)), "portableEntries": (globalThis.Object)["freeze"](normalize_strings((module)["portableEntries"], "project check report module portable entries", false))})));
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}));
|
|
1228
|
+
(result)["sort"](((left, right) => {
|
|
1229
|
+
return utf16_string_order((left)["source"], (right)["source"]);
|
|
1230
|
+
}));
|
|
1231
|
+
return (globalThis.Object)["freeze"](result);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
565
1234
|
}
|
|
566
1235
|
function project_check_report(check) {
|
|
567
|
-
(
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
1236
|
+
if ((!__eliscript_truthy((__eliscript_tdz_read_23())(check)))) {
|
|
1237
|
+
(__eliscript_tdz_read_21())("project check report input must be an object");
|
|
1238
|
+
}
|
|
1239
|
+
{
|
|
1240
|
+
let mode = require_string((check)["mode"], "project check report mode");
|
|
1241
|
+
let entries = normalize_strings((check)["entries"], "project check report entries", true);
|
|
1242
|
+
let portable_entries = normalize_strings((check)["portableEntries"], "project check report portable entries", false);
|
|
1243
|
+
let modules = normalize_check_modules((check)["modules"]);
|
|
1244
|
+
if ((!((mode === "standard") || (mode === "portable")))) {
|
|
1245
|
+
(__eliscript_tdz_read_21())("project check report mode must be standard or portable");
|
|
1246
|
+
}
|
|
1247
|
+
if (((mode === "standard") && __eliscript_numeric_relation(">", (portable_entries)["length"], 0))) {
|
|
1248
|
+
(__eliscript_tdz_read_21())("standard project check cannot report portable entries");
|
|
1249
|
+
}
|
|
1250
|
+
(globalThis.Object)["freeze"](entries);
|
|
1251
|
+
(globalThis.Object)["freeze"](portable_entries);
|
|
1252
|
+
return (globalThis.Object)["freeze"](({"format": (__eliscript_tdz_read_16()), "version": (__eliscript_tdz_read_17()), "status": "ok", "mode": mode, "root": require_string((check)["root"], "project check report root"), "entries": entries, "portableEntries": portable_entries, "counts": (globalThis.Object)["freeze"](({"modules": (modules)["length"]})), "modules": modules}));
|
|
1253
|
+
}
|
|
583
1254
|
}
|
|
584
1255
|
export {project_plan_format, project_plan_version, project_plan, portable_project_plan, project_build_report_format, project_build_report_version, project_build_report_multi_version, project_build_report, project_request_format, project_request_version, project_request_multi_version, project_request, project_configuration, build_operation_format, build_operation_version, build_operation_multi_version, build_operation_request, check_operation_format, check_operation_version, check_operation_request, project_check_report_format, project_check_report_version, project_check_report, project_cache_format, project_cache_version, project_cache_lookup, project_cache_decision};
|
|
585
|
-
//# sourceMappingURL=project.mjs.map
|