@rdfc/js-runner 1.0.0 → 2.0.0-alpha.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.
Files changed (79) hide show
  1. package/.husky/pre-commit +6 -0
  2. package/.prettierrc +4 -0
  3. package/README.md +3 -38
  4. package/__tests__/channels.test.ts +133 -0
  5. package/bin/runner.js +8 -0
  6. package/eslint.config.mjs +21 -0
  7. package/examples/echo/package-lock.json +80 -0
  8. package/examples/echo/package.json +18 -0
  9. package/examples/echo/pipeline.ttl +30 -0
  10. package/examples/echo/processors.ttl +84 -0
  11. package/examples/echo/src/processors.ts +75 -0
  12. package/examples/echo/test.ttl +14 -0
  13. package/examples/echo/tsconfig.json +114 -0
  14. package/examples/echo/untitled:/types/MyType.ttl +0 -0
  15. package/index.ttl +63 -0
  16. package/jest.config.js +2 -0
  17. package/lib/client.d.ts +1 -0
  18. package/lib/client.js +43 -0
  19. package/lib/convertor.d.ts +9 -0
  20. package/lib/convertor.js +51 -0
  21. package/lib/index.d.ts +4 -0
  22. package/lib/index.js +5 -0
  23. package/lib/jsonld.d.ts +17 -0
  24. package/lib/jsonld.js +134 -0
  25. package/lib/logger.d.ts +15 -0
  26. package/lib/logger.js +27 -0
  27. package/lib/processor.d.ts +19 -0
  28. package/lib/processor.js +13 -0
  29. package/lib/reader.d.ts +29 -0
  30. package/lib/reader.js +110 -0
  31. package/lib/runner.d.ts +25 -0
  32. package/lib/runner.js +111 -0
  33. package/lib/tsconfig.tsbuildinfo +1 -0
  34. package/lib/util_processors.d.ts +11 -0
  35. package/lib/util_processors.js +13 -0
  36. package/lib/writer.d.ts +25 -0
  37. package/lib/writer.js +57 -0
  38. package/package.json +49 -51
  39. package/src/client.ts +52 -0
  40. package/src/convertor.ts +59 -0
  41. package/src/index.ts +4 -0
  42. package/src/jsonld.ts +217 -0
  43. package/src/logger.ts +38 -0
  44. package/src/processor.ts +39 -0
  45. package/src/reader.ts +148 -0
  46. package/src/runner.ts +186 -0
  47. package/src/util_processors.ts +20 -0
  48. package/src/writer.ts +89 -0
  49. package/tsconfig.json +33 -0
  50. package/vite.config.ts +10 -0
  51. package/LICENSE +0 -21
  52. package/bin/js-runner.js +0 -4
  53. package/channels/file.ttl +0 -37
  54. package/channels/http.ttl +0 -59
  55. package/channels/kafka.ttl +0 -98
  56. package/channels/ws.ttl +0 -33
  57. package/dist/args.d.ts +0 -4
  58. package/dist/args.js +0 -59
  59. package/dist/connectors/file.d.ts +0 -15
  60. package/dist/connectors/file.js +0 -89
  61. package/dist/connectors/http.d.ts +0 -14
  62. package/dist/connectors/http.js +0 -82
  63. package/dist/connectors/kafka.d.ts +0 -48
  64. package/dist/connectors/kafka.js +0 -64
  65. package/dist/connectors/ws.d.ts +0 -10
  66. package/dist/connectors/ws.js +0 -69
  67. package/dist/connectors.d.ts +0 -54
  68. package/dist/connectors.js +0 -145
  69. package/dist/index.cjs +0 -677
  70. package/dist/index.d.ts +0 -33
  71. package/dist/index.js +0 -74
  72. package/dist/tsconfig.tsbuildinfo +0 -1
  73. package/dist/util.d.ts +0 -43
  74. package/dist/util.js +0 -75
  75. package/ontology.ttl +0 -169
  76. package/processor/echo.ttl +0 -38
  77. package/processor/resc.ttl +0 -34
  78. package/processor/send.ttl +0 -40
  79. package/processor/test.js +0 -35
package/dist/index.js DELETED
@@ -1,74 +0,0 @@
1
- import { Store } from "n3";
2
- import { getArgs } from "./args.js";
3
- import { load_store, LOG } from "./util.js";
4
- import path from "path";
5
- import { RDF } from "@treecg/types";
6
- import { ChannelFactory, Conn, JsOntology } from "./connectors.js";
7
- import { envReplace, extractShapes } from "rdf-lens";
8
- export * from "./connectors.js";
9
- function safeJoin(a, b) {
10
- if (b.startsWith("/")) {
11
- return b;
12
- }
13
- return path.join(a, b);
14
- }
15
- export async function extractProcessors(source, apply) {
16
- const store = new Store();
17
- await load_store(source, store);
18
- const quads = store.getQuads(null, null, null, null);
19
- const config = extractShapes(quads, apply);
20
- const subjects = quads
21
- .filter((x) => x.predicate.equals(RDF.terms.type) &&
22
- x.object.equals(JsOntology.JsProcess))
23
- .map((x) => x.subject);
24
- const processorLens = config.lenses[JsOntology.JsProcess.value];
25
- const processors = subjects.map((id) => processorLens.execute({ id, quads }));
26
- const newQuads = envReplace().execute(quads);
27
- return { processors, quads: newQuads, shapes: config };
28
- }
29
- export function extractSteps(proc, quads, config) {
30
- const out = [];
31
- const subjects = quads
32
- .filter((x) => x.predicate.equals(RDF.terms.type) && x.object.equals(proc.ty))
33
- .map((x) => x.subject);
34
- const processorLens = config.lenses[proc.ty.value];
35
- const fields = proc.mapping.parameters;
36
- for (const id of subjects) {
37
- const obj = processorLens.execute({ id, quads });
38
- const functionArgs = new Array(fields.length);
39
- for (const field of fields) {
40
- functionArgs[field.position] = obj[field.parameter];
41
- }
42
- out.push(functionArgs);
43
- }
44
- return out;
45
- }
46
- export async function jsRunner() {
47
- const args = getArgs();
48
- const cwd = process.cwd();
49
- const source = {
50
- location: safeJoin(cwd, args.input).replaceAll("\\", "/"),
51
- type: "remote",
52
- };
53
- const factory = new ChannelFactory();
54
- const apply = {};
55
- apply[Conn.ReaderChannel.value] = factory.createReader.bind(factory);
56
- apply[Conn.WriterChannel.value] = factory.createWriter.bind(factory);
57
- const { processors, quads, shapes: config, } = await extractProcessors(source, apply);
58
- LOG.main("Found %d processors", processors.length);
59
- const starts = [];
60
- for (const proc of processors) {
61
- const argss = extractSteps(proc, quads, config);
62
- const jsProgram = await import("file://" + proc.file);
63
- process.chdir(proc.location);
64
- for (const args of argss) {
65
- starts.push(await jsProgram[proc.func](...args));
66
- }
67
- }
68
- await factory.init();
69
- for (const s of starts) {
70
- if (s && typeof s === "function") {
71
- s();
72
- }
73
- }
74
- }
@@ -1 +0,0 @@
1
- {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@types/command-line-args/index.d.ts","../node_modules/@types/command-line-usage/index.d.ts","../src/args.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/buffer/index.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@rdfjs/types/data-model.d.ts","../node_modules/@rdfjs/types/stream.d.ts","../node_modules/@rdfjs/types/dataset.d.ts","../node_modules/@rdfjs/types/query/common.d.ts","../node_modules/@rdfjs/types/query/queryable.d.ts","../node_modules/@rdfjs/types/query.d.ts","../node_modules/@rdfjs/types/index.d.ts","../node_modules/@treecg/types/dist/lib/bucketizer.d.ts","../node_modules/@treecg/types/dist/lib/bucketizeroptions.d.ts","../node_modules/@treecg/types/dist/lib/member.d.ts","../node_modules/@treecg/types/dist/lib/relationparameters.d.ts","../node_modules/@treecg/types/dist/lib/fragment.d.ts","../node_modules/@treecg/types/dist/lib/utils/logger-browser.d.ts","../node_modules/@treecg/types/dist/lib/vocabularies.d.ts","../node_modules/@treecg/types/dist/index.d.ts","../src/connectors/file.ts","../node_modules/@types/ws/index.d.ts","../src/connectors/ws.ts","../node_modules/kafkajs/types/index.d.ts","../src/connectors/kafka.ts","../src/connectors/http.ts","../node_modules/@types/n3/node_modules/@rdfjs/types/data-model.d.ts","../node_modules/@types/n3/node_modules/@rdfjs/types/stream.d.ts","../node_modules/@types/n3/node_modules/@rdfjs/types/dataset.d.ts","../node_modules/@types/n3/node_modules/@rdfjs/types/query/common.d.ts","../node_modules/@types/n3/node_modules/@rdfjs/types/query/queryable.d.ts","../node_modules/@types/n3/node_modules/@rdfjs/types/query.d.ts","../node_modules/@types/n3/node_modules/@rdfjs/types/index.d.ts","../node_modules/@types/n3/index.d.ts","../node_modules/rdf-lens/node_modules/@rdfjs/types/index.d.ts","../node_modules/rdf-lens/dist/lens.d.ts","../node_modules/rdf-lens/dist/shacl.d.ts","../node_modules/rdf-lens/dist/index.d.ts","../src/index.ts","../node_modules/@types/ms/index.d.ts","../node_modules/@types/debug/index.d.ts","../src/util.ts","../src/connectors.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileIdsList":[[66,109],[66,109,160,161],[66,109,159,160,161,162,165],[66,109,163,164],[66,109,121,160],[66,109,160,163],[66,109,121,141,160],[66,109,167,168,169,170,171,172,173],[66,109,166],[66,109,166,169,170],[66,109,194],[66,109,122,159],[66,109,200],[66,109,201],[66,109,121,141,159,187],[66,109,181,182],[66,109,159,181,182,183,186],[66,109,184,185],[66,109,121,181],[66,109,181,184],[66,109,121,141,181],[66,106,109],[66,108,109],[109],[66,109,114,144],[66,109,110,115,121,122,129,141,152],[66,109,110,111,121,129],[61,62,63,66,109],[66,109,112,153],[66,109,113,114,122,130],[66,109,114,141,149],[66,109,115,117,121,129],[66,108,109,116],[66,109,117,118],[66,109,121],[66,109,119,121],[66,108,109,121],[66,109,121,122,123,141,152],[66,109,121,122,123,136,141,144],[66,104,109,157],[66,104,109,117,121,124,129,141,152],[66,109,121,122,124,125,129,141,149,152],[66,109,124,126,141,149,152],[64,65,66,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,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158],[66,109,121,127],[66,109,128,152,157],[66,109,117,121,129,141],[66,109,130],[66,109,131],[66,108,109,132],[66,106,107,108,109,110,111,112,113,114,115,116,117,118,119,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158],[66,109,134],[66,109,135],[66,109,121,136,137],[66,109,136,138,153,155],[66,109,121,141,142,143,144],[66,109,141,143],[66,109,141,142],[66,109,144],[66,109,145],[66,106,109,141],[66,109,121,147,148],[66,109,147,148],[66,109,114,129,141,149],[66,109,150],[66,109,129,151],[66,109,124,135,152],[66,109,114,153],[66,109,141,154],[66,109,128,155],[66,109,156],[66,109,114,121,123,132,141,152,155,157],[66,109,141,158],[66,109,121,124,126,141,149,152,158,159],[66,109,205],[66,109,129,149,159],[66,109,190,191],[66,109,187],[66,109,187,190],[66,109,181,182,183,186],[66,76,80,109,152],[66,76,109,141,152],[66,71,109],[66,73,76,109,149,152],[66,109,129,149],[66,109,159],[66,71,109,159],[66,73,76,109,129,152],[66,68,69,72,75,109,121,141,152],[66,76,83,109],[66,68,74,109],[66,76,97,98,109],[66,72,76,109,144,152,159],[66,97,109,159],[66,70,71,109,159],[66,76,109],[66,70,71,72,73,74,75,76,77,78,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,98,99,100,101,102,103,109],[66,76,91,109],[66,76,83,84,109],[66,74,76,84,85,109],[66,75,109],[66,68,71,76,109],[66,76,80,84,85,109],[66,80,109],[66,74,76,79,109,152],[66,68,73,76,83,109],[66,109,141],[66,71,76,97,109,157,159],[58,59,66,109],[66,109,166,174,175,177,179,180,196],[66,109,122,123,131,197],[66,109,124,126,141,197],[66,109,122,178,197],[66,109,176,197],[60,66,109,131,166,174,188,192,196,197],[66,109,122,124,126,141,166,174,188,193,195]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b7206ca5f2f6eeaac6daa285664f424e0b728f3e31937da89deb8696c5f1dbc","impliedFormat":1},{"version":"53dd92e141efe47b413a058f3fbcc6e40a84f5afdde16f45de550a476da25d98","impliedFormat":1},{"version":"7c2809ab9b3e9be9c1600d16b39df3367487275efbf995ea8fd9c478f5580f01","signature":"868c24a79becad6edb3001a86ccade1033cb9b3553b200e71f6eb43cb32f78e3"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fd06258805d26c72f5997e07a23155d322d5f05387adb3744a791fe6a0b042d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"ba97261afafe85aafe76d988e65e531da8e8cf791c49caf0531f5dd1689bd91b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f52e8dacc97d71dcc96af29e49584353f9c54cb916d132e3e768d8b8129c928d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"86956cc2eb9dd371d6fab493d326a574afedebf76eef3fa7833b8e0d9b52d6f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"e9ad08a376ac84948fcca0013d6f1d4ae4f9522e26b91f87945b97c99d7cc30b","impliedFormat":1},{"version":"eaf9ee1d90a35d56264f0bf39842282c58b9219e112ac7d0c1bce98c6c5da672","impliedFormat":1},{"version":"c15c4427ae7fd1dcd7f312a8a447ac93581b0d4664ddf151ecd07de4bf2bb9d7","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"aeac7c51bde4658c192bc45819344eb20fc64743264b0465be6025201220a6b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4047ed87e765bd3bcc316a0c4c4c8b0061628460d8a5412d1c4b53a4658665a","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"3eb62baae4df08c9173e6903d3ca45942ccec8c3659b0565684a75f3292cffbb","affectsGlobalScope":true,"impliedFormat":1},{"version":"42aaa94addeed66a04b61e433c14e829c43d1efd653cf2fda480c5fb3d722ed8","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","impliedFormat":1},{"version":"58832ded29e0094047596544ac391d68c799d7bd7d35936f47221857141628f1","impliedFormat":1},{"version":"553870e516f8c772b89f3820576152ebc70181d7994d96917bb943e37da7f8a7","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"9212c6e9d80cb45441a3614e95afd7235a55a18584c2ed32d6c1aca5a0c53d93","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bd91a2a356600dee28eb0438082d0799a18a974a6537c4410a796bab749813c","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"ae25afbbf1ed5df63a177d67b9048bf7481067f1b8dc9c39212e59db94fc9fc6","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"23c992090c336c34af55673d1d865b55a5f5c23a5fd2b4a6049e2df7058207c0","impliedFormat":1},{"version":"b1cac4e06205000177d05342bc524983550157a72fcf450b701e747deb19e6af","impliedFormat":1},{"version":"d2cdba5be077b28a91fd380157e423d093279590aedb605f51ed6b6f398657c1","impliedFormat":1},{"version":"26e5fdc90b7bf9f7e5b107f2368adc69c72c74e4a125e6109ccde781b87bbd57","impliedFormat":1},{"version":"8953bf122fc832d335954e3a9188cbe4766ee2ef9be51f577de52234cd8a630e","impliedFormat":1},{"version":"642970856d429003a8a04298231d0dedac726519411a8b88afd90e2ab689f094","impliedFormat":1},{"version":"d399f2e8fb5a30229e0ebfae43e5d6c90ad23c0b4128d1e8d2499b809660cf4d","impliedFormat":1},{"version":"aa1196da64d7fb641934dbf9683d45c2feea84f8aed23795c7793564bb2b8e08","impliedFormat":1},{"version":"a8b9548c59b33326a9fe601dad0242350e801af3091d2cf8f29279bd3d766a84","impliedFormat":1},{"version":"691ca3c93dc4aa9e14880dfcaa141df361b8cff75a8d298ed026b3e342561e02","impliedFormat":1},{"version":"ad44c5b327076d4f9c1fa00aaa41a3a0d2858df3adfb8cd0cdd944e05dd4a86a","impliedFormat":1},{"version":"5ee0f472c2200c82722e5b0f33646ac2dc8529204d81a32ac74ec794a07758ac","impliedFormat":1},{"version":"4a7e35c3dca7a40e70c2eefd62458ba6d84fcac7e1a3ed7ffe90a76b576af6dd","impliedFormat":1},{"version":"7b4903e52d29404a1be01654d222dc5b4e69323c6dc1be4842ba1718eec364c5","impliedFormat":1},{"version":"588f0e8ab710dca145e2ea80f0ecad3a072b06c110c31728027aa23024b5d06d","impliedFormat":1},{"version":"8fa34c73c0e31cc904487597822d444fe82430d211b553b734235df7b25dd9fa","signature":"d60e1442381b68677b579286e409d292d7a72b05aca68cd12e6612ec8c581072"},{"version":"eb15edfcef078300657e1d5d678e1944b3518c2dd8f26792fdba2fe29f73d32b","impliedFormat":1},{"version":"abf42c502b8c2c7b0535eb2444076220178e7d9a66004d7e13b47b7df8531789","signature":"bc7e6cc3b1a0f4bafb908fb25abe8f4e02f971ab3b6861e589a890e44082037f"},{"version":"c724034e22cbbde98550aca4ee32006f7f4c566885328949ac16ff9ff2f76e89","impliedFormat":1},{"version":"c80b256621ce182e6e7f592c53f54c8e5ccbb390543b0cb7cd142ff9d3cd96c2","signature":"663b1f2f533658817dbc0a077a3b7c7731912848ee265846207ea8f69b48d185"},{"version":"4fdf97ba577722cd94e450586cc0c6e487d9092425eb2c2f217e38c0f627d683","signature":"96c7eabd37baeeb90ee8b4636a0e17aefd2d1ffd8062e8c34889793bc52b018f"},{"version":"c0156ff6b3c5f5b6699fafa0e36635590651aa70a07314425cf212f11c2443f8","impliedFormat":1},{"version":"b1cac4e06205000177d05342bc524983550157a72fcf450b701e747deb19e6af","impliedFormat":1},{"version":"d2cdba5be077b28a91fd380157e423d093279590aedb605f51ed6b6f398657c1","impliedFormat":1},{"version":"0d278d3cf006676a7c6c30424326bd38aba8344c471b64289ab89e4dcdb6e799","impliedFormat":1},{"version":"8953bf122fc832d335954e3a9188cbe4766ee2ef9be51f577de52234cd8a630e","impliedFormat":1},{"version":"642970856d429003a8a04298231d0dedac726519411a8b88afd90e2ab689f094","impliedFormat":1},{"version":"25006341224db03de63a44dea009de6523428c1bfe214ce069d10d0748838f12","impliedFormat":1},{"version":"19072093a6454f9db6316ac7f3cfdca7d0cbb34c25628754e3dfa2a630e9a1db","impliedFormat":1},{"version":"25006341224db03de63a44dea009de6523428c1bfe214ce069d10d0748838f12","impliedFormat":1},{"version":"17f37e72086ac4f75de46f81ec4ba33f2a64b57c8d13bfa2c9c9e4032dc46e36","impliedFormat":99},{"version":"db2a2230814e8d7356529a0eb23e63ba37a2966ae719f29b98c26e06df2200b7","impliedFormat":99},{"version":"0231e5425f539b30c9665bbff15496ab31c7ce9f29fcfb834b988f790218fe87","impliedFormat":99},{"version":"6c5500fd43c2b467395e6c6bc45c82a208fc6c2b4f4b18fe88f768940ed6e50a","signature":"82f6f5ac64b69f2367b66c2b3ebeb38c76701cb4925bc2bcb2a51eeed00c33dc"},{"version":"68cc8d6fcc2f270d7108f02f3ebc59480a54615be3e09a47e14527f349e9d53e","impliedFormat":1},{"version":"3eb11dbf3489064a47a2e1cf9d261b1f100ef0b3b50ffca6c44dd99d6dd81ac1","impliedFormat":1},{"version":"b46857872b8479100a74c4b152aa798506e1a18adb42e5d5ed1ff40c80df97cc","signature":"d6c8cf477384a1f41c47bc997353817b121056e36c71e9b4eb4ea680d6f6cd2d"},{"version":"21aae63bafe6ceafe74c5174a79d5a4ceb6ab0f0b5ef6c1b8aee857aad76567d","signature":"ad8a231202df1ce6e66ddfffd4ec8b134bbd34fd46a4039a59b6eb6cb582771d"},{"version":"785b9d575b49124ce01b46f5b9402157c7611e6532effa562ac6aebec0074dfc","impliedFormat":1},{"version":"afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5","impliedFormat":1},{"version":"035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245","impliedFormat":1},{"version":"a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54","impliedFormat":1},{"version":"5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434","impliedFormat":1},{"version":"22293bd6fa12747929f8dfca3ec1684a3fe08638aa18023dd286ab337e88a592","impliedFormat":1},{"version":"ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66","impliedFormat":1},{"version":"bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960","impliedFormat":1},{"version":"5d30d04a14ed8527ac5d654dc345a4db11b593334c11a65efb6e4facc5484a0e","impliedFormat":1}],"root":[60,175,177,179,180,193,196,197],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"downlevelIteration":true,"esModuleInterop":true,"experimentalDecorators":true,"module":7,"outDir":"./","preserveConstEnums":true,"removeComments":true,"skipLibCheck":true,"strict":true,"strictFunctionTypes":false,"strictPropertyInitialization":false,"target":9},"referencedMap":[[160,1],[162,2],[166,3],[165,4],[163,5],[164,6],[161,7],[174,8],[167,9],[168,9],[171,10],[169,9],[170,9],[172,1],[173,9],[58,1],[59,1],[195,11],[198,1],[199,12],[200,1],[201,13],[202,14],[194,1],[188,15],[181,1],[183,16],[187,17],[186,18],[184,19],[185,20],[182,21],[106,22],[107,22],[108,23],[66,24],[109,25],[110,26],[111,27],[61,1],[64,28],[62,1],[63,1],[112,29],[113,30],[114,31],[115,32],[116,33],[117,34],[118,34],[120,35],[119,36],[121,37],[122,38],[123,39],[105,40],[65,1],[124,41],[125,42],[126,43],[159,44],[127,45],[128,46],[129,47],[130,48],[131,49],[132,50],[133,51],[134,52],[135,53],[136,54],[137,54],[138,55],[139,1],[140,1],[141,56],[143,57],[142,58],[144,59],[145,60],[146,61],[147,62],[148,63],[149,64],[150,65],[151,66],[152,67],[153,68],[154,69],[155,70],[156,71],[157,72],[158,73],[203,1],[204,1],[176,74],[205,1],[206,75],[67,1],[178,76],[192,77],[190,78],[191,79],[189,80],[56,1],[57,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[20,1],[21,1],[4,1],[22,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[5,1],[30,1],[31,1],[32,1],[33,1],[6,1],[37,1],[34,1],[35,1],[36,1],[38,1],[7,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[8,1],[49,1],[46,1],[47,1],[48,1],[50,1],[9,1],[51,1],[52,1],[53,1],[55,1],[54,1],[1,1],[83,81],[93,82],[82,81],[103,83],[74,84],[73,85],[102,86],[96,87],[101,88],[76,89],[90,90],[75,91],[99,92],[71,93],[70,86],[100,94],[72,95],[77,96],[78,1],[81,96],[68,1],[104,97],[94,98],[85,99],[86,100],[88,101],[84,102],[87,103],[97,86],[79,104],[80,105],[89,106],[69,107],[92,98],[91,96],[95,1],[98,108],[60,109],[197,110],[175,111],[180,112],[179,113],[177,114],[193,115],[196,116]],"version":"5.7.3"}
package/dist/util.d.ts DELETED
@@ -1,43 +0,0 @@
1
- import stream from "stream";
2
- import { Store } from "n3";
3
- import { Source } from "./index.js";
4
- import { Quad, Term } from "@rdfjs/types";
5
- import debug from "debug";
6
- export declare const LOG: {
7
- main: debug.Debugger;
8
- channel: debug.Debugger;
9
- util: debug.Debugger;
10
- };
11
- export declare function toArray<T>(stream: stream.Readable): Promise<T[]>;
12
- export declare const OWL: {
13
- namespace: string;
14
- custom: (input: string) => string;
15
- } & {
16
- imports: string;
17
- } & {
18
- terms: import("@treecg/types").Namespace<"imports"[], import("@rdfjs/types").NamedNode<string>, string>;
19
- };
20
- export declare const CONN2: {
21
- namespace: string;
22
- custom: (input: string) => string;
23
- } & {
24
- install: string;
25
- build: string;
26
- GitInstall: string;
27
- LocalInstall: string;
28
- url: string;
29
- procFile: string;
30
- path: string;
31
- EnvVariable: string;
32
- envKey: string;
33
- envDefault: string;
34
- } & {
35
- terms: import("@treecg/types").Namespace<("install" | "build" | "GitInstall" | "LocalInstall" | "url" | "procFile" | "path" | "EnvVariable" | "envKey" | "envDefault")[], import("@rdfjs/types").NamedNode<string>, string>;
36
- };
37
- export declare const namedNode: <Iri extends string = string>(value: Iri) => import("n3").NamedNode<Iri>;
38
- export type Keyed<T> = {
39
- [Key in keyof T]: Term | undefined;
40
- };
41
- export type Map<V, K, T, O> = (value: V, key: K, item: T) => O;
42
- export declare function load_quads(location: string, baseIRI?: string): Promise<Quad[]>;
43
- export declare function load_store(location: Source, store: Store, recursive?: boolean): Promise<void>;
package/dist/util.js DELETED
@@ -1,75 +0,0 @@
1
- import { createReadStream } from "fs";
2
- import http from "http";
3
- import https from "https";
4
- import { DataFactory, Parser, StreamParser } from "n3";
5
- import { createUriAndTermNamespace } from "@treecg/types";
6
- import debug from "debug";
7
- export const LOG = (function () {
8
- const main = debug("js-runner");
9
- const channel = main.extend("channel");
10
- const util = main.extend("util");
11
- return { main, channel, util };
12
- })();
13
- export function toArray(stream) {
14
- const output = [];
15
- return new Promise((res, rej) => {
16
- stream.on("data", (x) => output.push(x));
17
- stream.on("end", () => res(output));
18
- stream.on("close", () => res(output));
19
- stream.on("error", rej);
20
- });
21
- }
22
- export const OWL = createUriAndTermNamespace("http://www.w3.org/2002/07/owl#", "imports");
23
- export const CONN2 = createUriAndTermNamespace("https://w3id.org/conn#", "install", "build", "GitInstall", "LocalInstall", "url", "procFile", "path", "EnvVariable", "envKey", "envDefault");
24
- export const { namedNode } = DataFactory;
25
- async function get_readstream(location) {
26
- if (location.startsWith("https")) {
27
- return new Promise((res) => {
28
- https.get(location, res);
29
- });
30
- }
31
- else if (location.startsWith("http")) {
32
- return new Promise((res) => {
33
- http.get(location, res);
34
- });
35
- }
36
- else {
37
- return createReadStream(location);
38
- }
39
- }
40
- export async function load_quads(location, baseIRI) {
41
- try {
42
- LOG.util("Loading quads %s", location);
43
- const parser = new StreamParser({ baseIRI: baseIRI || location });
44
- const rdfStream = await get_readstream(location);
45
- rdfStream.pipe(parser);
46
- const quads = await toArray(parser);
47
- return quads;
48
- }
49
- catch (ex) {
50
- console.error("Failed to load_quads", location, baseIRI);
51
- console.error(ex);
52
- return [];
53
- }
54
- }
55
- function load_memory_quads(value, baseIRI) {
56
- const parser = new Parser({ baseIRI });
57
- return parser.parse(value);
58
- }
59
- const loaded = new Set();
60
- export async function load_store(location, store, recursive = true) {
61
- if (loaded.has(location))
62
- return;
63
- loaded.add(location);
64
- const quads = location.type === "remote"
65
- ? await load_quads(location.location)
66
- : load_memory_quads(location.value, location.baseIRI);
67
- store.addQuads(quads);
68
- if (recursive) {
69
- const loc = location.type === "remote" ? location.location : location.baseIRI;
70
- const other_imports = store.getObjects(namedNode(loc), OWL.terms.imports, null);
71
- for (const other of other_imports) {
72
- await load_store({ location: other.value, type: "remote" }, store, true);
73
- }
74
- }
75
- }
package/ontology.ttl DELETED
@@ -1,169 +0,0 @@
1
- @prefix js: <https://w3id.org/conn/js#>.
2
- @prefix fno: <https://w3id.org/function/ontology#>.
3
- @prefix fnom: <https://w3id.org/function/vocabulary/mapping#>.
4
- @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
5
- @prefix : <https://w3id.org/conn#>.
6
- @prefix sh: <http://www.w3.org/ns/shacl#>.
7
- @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
8
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
9
- @prefix dc: <http://purl.org/dc/terms/>.
10
- @prefix rdfl: <https://w3id.org/rdf-lens/ontology#>.
11
-
12
- [ ] a sh:NodeShape;
13
- sh:targetClass :Channel;
14
- sh:property [
15
- sh:path ( );
16
- sh:name "id";
17
- sh:maxCount 1;
18
- sh:minCount 1;
19
- sh:datatype xsd:iri;
20
- ], [
21
- sh:path :reader;
22
- sh:name "reader";
23
- sh:maxCount 1;
24
- sh:datatype xsd:iri;
25
- ], [
26
- sh:path :writer;
27
- sh:name "writer";
28
- sh:maxCount 1;
29
- sh:datatype xsd:iri;
30
- ].
31
-
32
- [ ] a sh:NodeShape;
33
- sh:targetClass :ReaderChannel;
34
- sh:property [
35
- sh:path ( );
36
- sh:name "id";
37
- sh:maxCount 1;
38
- sh:minCount 1;
39
- sh:datatype xsd:iri;
40
- ], [
41
- sh:path rdf:type;
42
- sh:name "ty";
43
- sh:maxCount 1;
44
- sh:datatype xsd:iri;
45
- ], [
46
- sh:path ( );
47
- sh:name "config";
48
- sh:maxCount 1;
49
- sh:minCount 1;
50
- sh:class rdfl:TypedExtract;
51
- ].
52
-
53
- [ ] a sh:NodeShape;
54
- sh:targetClass :WriterChannel;
55
- sh:property [
56
- sh:path ( );
57
- sh:name "id";
58
- sh:maxCount 1;
59
- sh:minCount 1;
60
- sh:datatype xsd:iri;
61
- ], [
62
- sh:path rdf:type;
63
- sh:name "ty";
64
- sh:maxCount 1;
65
- sh:minCount 1;
66
- sh:datatype xsd:iri;
67
- ], [
68
- sh:path ( );
69
- sh:name "config";
70
- sh:maxCount 1;
71
- sh:minCount 1;
72
- sh:class rdfl:TypedExtract;
73
- ].
74
-
75
- js:JsChannel rdfs:subClassOf :Channel.
76
- js:JsReaderChannel rdfs:subClassOf :ReaderChannel.
77
- [ ] a sh:NodeShape;
78
- sh:targetClass js:JsReaderChannel;
79
- sh:property [
80
- sh:path [ sh:inversePath :reader ];
81
- sh:name "channel";
82
- sh:maxCount 1;
83
- sh:minCount 1;
84
- sh:class :Channel;
85
- ].
86
-
87
- js:JsWriterChannel rdfs:subClassOf :WriterChannel.
88
- [ ] a sh:NodeShape;
89
- sh:targetClass js:JsWriterChannel;
90
- sh:property [
91
- sh:path [ sh:inversePath :writer ];
92
- sh:name "channel";
93
- sh:maxCount 1;
94
- sh:minCount 1;
95
- sh:class :Channel;
96
- ].
97
-
98
- #
99
- js:JsChannel a :Channel;
100
- dc:title "Javascript in memory channel";
101
- dc:description "Channel only used by the JsRunner, enabling fast in memory communication.";
102
- :reader :JsReaderChannel;
103
- :writer :JsWriterChannel.
104
-
105
- js:JsProcess a :ProcessClass;
106
- dc:title "Javascript Runner";
107
- dc:description "The JSRunner is one of the most feature rich runners of the connector architecture. It enables lifting javascript functions to connector architecture components. It allows for fast in memory communication between these processors with the js:JsChannel. More information can be found at https://the-connector-architecture.github.io/site/.";
108
- :supportsChannel :WsChannel,
109
- :JsChannel,
110
- :FileChannel,
111
- :KafkaChannel,
112
- :HttpChannel.
113
-
114
- [ ] a sh:NodeShape;
115
- sh:targetClass fno:Mapping;
116
- sh:property [
117
- sh:class fnom:PositionParameterMapping;
118
- sh:path fno:parameterMapping;
119
- sh:name "parameters";
120
- ].
121
-
122
- [ ] a sh:NodeShape;
123
- sh:targetClass fnom:PositionParameterMapping;
124
- sh:property [
125
- sh:datatype xsd:string;
126
- sh:path fnom:functionParameter;
127
- sh:name "parameter";
128
- sh:maxCount 1;
129
- ], [
130
- sh:datatype xsd:integer;
131
- sh:path fnom:implementationParameterPosition;
132
- sh:name "position";
133
- sh:maxCount 1;
134
- ].
135
-
136
- js:JsProcessorShape a sh:NodeShape;
137
- sh:targetClass js:JsProcess;
138
- sh:property [
139
- sh:datatype xsd:iri;
140
- sh:path ( );
141
- sh:name "ty";
142
- sh:maxCount 1;
143
- sh:minCount 1;
144
- ], [
145
- sh:datatype xsd:string;
146
- sh:path js:file;
147
- sh:name "file";
148
- sh:maxCount 1;
149
- sh:minCount 1;
150
- ], [
151
- sh:datatype xsd:string;
152
- sh:path js:location;
153
- sh:name "location";
154
- sh:maxCount 1;
155
- sh:minCount 1;
156
- ], [
157
- sh:datatype xsd:string;
158
- sh:path js:function;
159
- sh:name "func";
160
- sh:maxCount 1;
161
- sh:minCount 1;
162
- ], [
163
- sh:class fno:Mapping;
164
- sh:path js:mapping;
165
- sh:name "mapping";
166
- sh:maxCount 1;
167
- sh:minCount 1;
168
- ].
169
-
@@ -1,38 +0,0 @@
1
- @prefix js: <https://w3id.org/conn/js#>.
2
- @prefix fno: <https://w3id.org/function/ontology#>.
3
- @prefix fnom: <https://w3id.org/function/vocabulary/mapping#>.
4
- @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
5
- @prefix : <https://w3id.org/conn#>.
6
- @prefix sh: <http://www.w3.org/ns/shacl#>.
7
-
8
- js:Echo a js:JsProcess;
9
- js:file <./test.js>;
10
- js:function "echo";
11
- js:location <./>;
12
- js:mapping [
13
- a fno:Mapping;
14
- fno:parameterMapping [
15
- a fnom:PositionParameterMapping;
16
- fnom:functionParameter "Input Channel";
17
- fnom:implementationParameterPosition "0"^^xsd:int;
18
- ], [
19
- a fnom:PositionParameterMapping;
20
- fnom:functionParameter "Output Channel";
21
- fnom:implementationParameterPosition "1"^^xsd:int;
22
- ];
23
- ].
24
-
25
- [ ] a sh:NodeShape;
26
- sh:targetClass js:Echo;
27
- sh:property [
28
- sh:class :ReaderChannel;
29
- sh:path js:input;
30
- sh:name "Input Channel";
31
- sh:maxCount 1;
32
- ], [
33
- sh:class :WriterChannel;
34
- sh:path js:output;
35
- sh:name "Output Channel";
36
- sh:maxCount 1;
37
- ].
38
-
@@ -1,34 +0,0 @@
1
- @prefix js: <https://w3id.org/conn/js#>.
2
- @prefix fno: <https://w3id.org/function/ontology#>.
3
- @prefix fnom: <https://w3id.org/function/vocabulary/mapping#>.
4
- @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
5
- @prefix : <https://w3id.org/conn#>.
6
- @prefix sh: <http://www.w3.org/ns/shacl#>.
7
-
8
- <> :install [
9
- a :LocalInstall;
10
- :path <./>;
11
- ].
12
-
13
- js:Resc a js:JsProcess;
14
- js:file <./test.js>;
15
- js:function "resc";
16
- js:location <./>;
17
- js:mapping [
18
- a fno:Mapping;
19
- fno:parameterMapping [
20
- a fnom:PositionParameterMapping;
21
- fnom:functionParameter "input";
22
- fnom:implementationParameterPosition "0"^^xsd:int;
23
- ];
24
- ].
25
-
26
- [ ] a sh:NodeShape;
27
- sh:targetClass js:Resc;
28
- sh:property [
29
- sh:class :ReaderChannel;
30
- sh:path js:rescReader;
31
- sh:name "input";
32
- sh:maxCount 1;
33
- ].
34
-
@@ -1,40 +0,0 @@
1
- @prefix js: <https://w3id.org/conn/js#>.
2
- @prefix fno: <https://w3id.org/function/ontology#>.
3
- @prefix fnom: <https://w3id.org/function/vocabulary/mapping#>.
4
- @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
5
- @prefix : <https://w3id.org/conn#>.
6
- @prefix sh: <http://www.w3.org/ns/shacl#>.
7
-
8
- js:Send a js:JsProcess;
9
- js:file <./test.js>;
10
- js:function "send";
11
- js:location <./>;
12
- js:mapping [
13
- a fno:Mapping;
14
- fno:parameterMapping [
15
- a fnom:PositionParameterMapping;
16
- fnom:functionParameter "msg";
17
- fnom:implementationParameterPosition "0"^^xsd:int;
18
- ], [
19
- a fnom:PositionParameterMapping;
20
- fnom:functionParameter "output";
21
- fnom:implementationParameterPosition "1"^^xsd:int;
22
- ];
23
- ].
24
-
25
- [ ] a sh:NodeShape;
26
- sh:targetClass js:Send;
27
- sh:property [
28
- sh:datatype xsd:string;
29
- sh:path js:msg;
30
- sh:name "msg";
31
- sh:maxCount 1;
32
- sh:minCount 1;
33
- ], [
34
- sh:class :WriterChannel;
35
- sh:path js:sendWriter;
36
- sh:name "output";
37
- sh:maxCount 1;
38
- sh:minCount 1;
39
- ].
40
-
package/processor/test.js DELETED
@@ -1,35 +0,0 @@
1
- import http from "http";
2
-
3
- function streamToString(ev) {
4
- const datas = [];
5
- return new Promise((res) => {
6
- ev.on("data", (d) => datas.push(d));
7
- ev.on("end", () => res(Buffer.concat(datas)));
8
- });
9
- }
10
-
11
- export async function send(msg, writer) {
12
- const host = "0.0.0.0";
13
- const port = 8000;
14
- const requestListener = async function (req, res) {
15
- const data = await streamToString(req);
16
- const ret = `${msg} ${data}`;
17
- await writer.push(ret);
18
- res.writeHead(200);
19
- res.end(ret);
20
- };
21
- const server = http.createServer(requestListener);
22
-
23
- await new Promise((res) => {
24
- server.listen(port, host, () => {
25
- console.log(`Server is running on http://${host}:${port} prefix ${msg}`);
26
- res();
27
- });
28
- });
29
-
30
- return () => writer.push("Hallo!");
31
- }
32
-
33
- export function resc(reader) {
34
- reader.data((x) => console.log("data", x));
35
- }