From 664c6d8ca374d7fcf262984f350fba6d14cb72ef Mon Sep 17 00:00:00 2001 From: valki Date: Sat, 17 Oct 2020 18:42:50 +0200 Subject: [PATCH] Intial Commit --- .env | 153 + .gitignore | 1 + Makefile | 41 + docker-compose.yml | 142 + grafana/Dockerfile | 4 + grafana/Makefile | 4 + influxdb/Dockerfile | 4 + influxdb/Makefile | 4 + influxdb/rootfs/etc/influxdb/influxdb.conf | 160 + mariadb/Dockerfile | 5 + mariadb/Makefile | 4 + .../docker-entrypoint-initdb.d/init.sql | 34 + mosquitto/Dockerfile | 5 + mosquitto/Makefile | 4 + mosquitto/rootfs/config/mosquitto.conf | 989 + mosquitto/rootfs/config/passwordfile | 1 + nodered/Dockerfile | 27 + nodered/Makefile | 4 + nodered/rootfs/data/.config.json | 805 + nodered/rootfs/data/.config.nodes.json | 808 + nodered/rootfs/data/.config.projects.json | 1 + nodered/rootfs/data/.config.runtime.json | 1 + nodered/rootfs/data/.config.users.json | 17 + nodered/rootfs/data/flows.json | 1 + nodered/rootfs/data/flows_cred.json | 1 + .../rootfs/data/node_modules/.bin/electron | 1 + .../data/node_modules/.bin/electron-download | 1 + .../rootfs/data/node_modules/.bin/extract-zip | 1 + nodered/rootfs/data/node_modules/.bin/he | 1 + .../data/node_modules/.bin/html-to-text | 1 + nodered/rootfs/data/node_modules/.bin/mathjs | 1 + nodered/rootfs/data/node_modules/.bin/mime | 1 + nodered/rootfs/data/node_modules/.bin/nugget | 1 + .../data/node_modules/.bin/pretty-bytes | 1 + nodered/rootfs/data/node_modules/.bin/rc | 1 + nodered/rootfs/data/node_modules/.bin/semver | 1 + .../rootfs/data/node_modules/.bin/sshpk-conv | 1 + .../rootfs/data/node_modules/.bin/sshpk-sign | 1 + .../data/node_modules/.bin/sshpk-verify | 1 + .../data/node_modules/.bin/strip-indent | 1 + nodered/rootfs/data/node_modules/.bin/tlds | 1 + nodered/rootfs/data/node_modules/.bin/uuid | 1 + nodered/rootfs/data/node_modules/.bin/which | 1 + .../data/node_modules/accepts/HISTORY.md | 236 + .../rootfs/data/node_modules/accepts/LICENSE | 23 + .../data/node_modules/accepts/README.md | 142 + .../rootfs/data/node_modules/accepts/index.js | 238 + .../data/node_modules/accepts/package.json | 87 + .../rootfs/data/node_modules/after/.npmignore | 2 + .../data/node_modules/after/.travis.yml | 12 + .../rootfs/data/node_modules/after/LICENCE | 19 + .../rootfs/data/node_modules/after/README.md | 115 + .../rootfs/data/node_modules/after/index.js | 28 + .../data/node_modules/after/package.json | 63 + .../node_modules/after/test/after-test.js | 120 + .../data/node_modules/ajv/.tonic_example.js | 20 + nodered/rootfs/data/node_modules/ajv/LICENSE | 22 + .../rootfs/data/node_modules/ajv/README.md | 1359 + .../data/node_modules/ajv/dist/ajv.bundle.js | 7172 ++ .../data/node_modules/ajv/dist/ajv.min.js | 3 + .../data/node_modules/ajv/dist/ajv.min.js.map | 1 + .../rootfs/data/node_modules/ajv/lib/ajv.d.ts | 390 + .../rootfs/data/node_modules/ajv/lib/ajv.js | 497 + .../rootfs/data/node_modules/ajv/lib/cache.js | 26 + .../node_modules/ajv/lib/compile/async.js | 90 + .../node_modules/ajv/lib/compile/equal.js | 5 + .../ajv/lib/compile/error_classes.js | 34 + .../node_modules/ajv/lib/compile/formats.js | 149 + .../node_modules/ajv/lib/compile/index.js | 387 + .../node_modules/ajv/lib/compile/resolve.js | 270 + .../node_modules/ajv/lib/compile/rules.js | 66 + .../ajv/lib/compile/schema_obj.js | 9 + .../ajv/lib/compile/ucs2length.js | 20 + .../data/node_modules/ajv/lib/compile/util.js | 274 + .../rootfs/data/node_modules/ajv/lib/data.js | 49 + .../node_modules/ajv/lib/definition_schema.js | 37 + .../data/node_modules/ajv/lib/dot/_limit.jst | 104 + .../node_modules/ajv/lib/dot/_limitItems.jst | 10 + .../node_modules/ajv/lib/dot/_limitLength.jst | 10 + .../ajv/lib/dot/_limitProperties.jst | 10 + .../data/node_modules/ajv/lib/dot/allOf.jst | 34 + .../data/node_modules/ajv/lib/dot/anyOf.jst | 48 + .../data/node_modules/ajv/lib/dot/coerce.def | 61 + .../data/node_modules/ajv/lib/dot/comment.jst | 9 + .../data/node_modules/ajv/lib/dot/const.jst | 11 + .../node_modules/ajv/lib/dot/contains.jst | 57 + .../data/node_modules/ajv/lib/dot/custom.jst | 191 + .../node_modules/ajv/lib/dot/defaults.def | 47 + .../node_modules/ajv/lib/dot/definitions.def | 201 + .../node_modules/ajv/lib/dot/dependencies.jst | 80 + .../data/node_modules/ajv/lib/dot/enum.jst | 30 + .../data/node_modules/ajv/lib/dot/errors.def | 194 + .../data/node_modules/ajv/lib/dot/format.jst | 106 + .../data/node_modules/ajv/lib/dot/if.jst | 75 + .../data/node_modules/ajv/lib/dot/items.jst | 100 + .../data/node_modules/ajv/lib/dot/missing.def | 39 + .../node_modules/ajv/lib/dot/multipleOf.jst | 20 + .../data/node_modules/ajv/lib/dot/not.jst | 43 + .../data/node_modules/ajv/lib/dot/oneOf.jst | 54 + .../data/node_modules/ajv/lib/dot/pattern.jst | 14 + .../node_modules/ajv/lib/dot/properties.jst | 244 + .../ajv/lib/dot/propertyNames.jst | 54 + .../data/node_modules/ajv/lib/dot/ref.jst | 85 + .../node_modules/ajv/lib/dot/required.jst | 108 + .../node_modules/ajv/lib/dot/uniqueItems.jst | 62 + .../node_modules/ajv/lib/dot/validate.jst | 282 + .../data/node_modules/ajv/lib/dotjs/README.md | 3 + .../data/node_modules/ajv/lib/dotjs/_limit.js | 157 + .../node_modules/ajv/lib/dotjs/_limitItems.js | 77 + .../ajv/lib/dotjs/_limitLength.js | 82 + .../ajv/lib/dotjs/_limitProperties.js | 77 + .../data/node_modules/ajv/lib/dotjs/allOf.js | 43 + .../data/node_modules/ajv/lib/dotjs/anyOf.js | 74 + .../node_modules/ajv/lib/dotjs/comment.js | 14 + .../data/node_modules/ajv/lib/dotjs/const.js | 56 + .../node_modules/ajv/lib/dotjs/contains.js | 82 + .../data/node_modules/ajv/lib/dotjs/custom.js | 228 + .../ajv/lib/dotjs/dependencies.js | 168 + .../data/node_modules/ajv/lib/dotjs/enum.js | 66 + .../data/node_modules/ajv/lib/dotjs/format.js | 150 + .../data/node_modules/ajv/lib/dotjs/if.js | 104 + .../data/node_modules/ajv/lib/dotjs/index.js | 33 + .../data/node_modules/ajv/lib/dotjs/items.js | 141 + .../node_modules/ajv/lib/dotjs/multipleOf.js | 77 + .../data/node_modules/ajv/lib/dotjs/not.js | 84 + .../data/node_modules/ajv/lib/dotjs/oneOf.js | 73 + .../node_modules/ajv/lib/dotjs/pattern.js | 75 + .../node_modules/ajv/lib/dotjs/properties.js | 330 + .../ajv/lib/dotjs/propertyNames.js | 82 + .../data/node_modules/ajv/lib/dotjs/ref.js | 124 + .../node_modules/ajv/lib/dotjs/required.js | 270 + .../node_modules/ajv/lib/dotjs/uniqueItems.js | 86 + .../node_modules/ajv/lib/dotjs/validate.js | 494 + .../data/node_modules/ajv/lib/keyword.js | 146 + .../data/node_modules/ajv/lib/refs/data.json | 17 + .../ajv/lib/refs/json-schema-draft-04.json | 149 + .../ajv/lib/refs/json-schema-draft-06.json | 154 + .../ajv/lib/refs/json-schema-draft-07.json | 168 + .../ajv/lib/refs/json-schema-secure.json | 94 + .../rootfs/data/node_modules/ajv/package.json | 125 + .../node_modules/ajv/scripts/.eslintrc.yml | 3 + .../data/node_modules/ajv/scripts/bundle.js | 61 + .../node_modules/ajv/scripts/compile-dots.js | 73 + .../rootfs/data/node_modules/ajv/scripts/info | 10 + .../node_modules/ajv/scripts/prepare-tests | 12 + .../ajv/scripts/publish-built-version | 32 + .../node_modules/ajv/scripts/travis-gh-pages | 23 + .../array.prototype.findindex/.editorconfig | 8 + .../array.prototype.findindex/.eslintrc | 9 + .../array.prototype.findindex/.npmignore | 25 + .../array.prototype.findindex/.travis.yml | 173 + .../array.prototype.findindex/CHANGELOG.md | 23 + .../array.prototype.findindex/README.md | 57 + .../array.prototype.findindex/detect.js | 3 + .../implementation.js | 19 + .../array.prototype.findindex/index.js | 26 + .../array.prototype.findindex/package.json | 62 + .../array.prototype.findindex/polyfill.js | 12 + .../array.prototype.findindex/shim.js | 16 + .../array.prototype.findindex/test.js | 122 + .../node_modules/arraybuffer.slice/.npmignore | 17 + .../node_modules/arraybuffer.slice/LICENCE | 18 + .../node_modules/arraybuffer.slice/Makefile | 8 + .../node_modules/arraybuffer.slice/README.md | 17 + .../node_modules/arraybuffer.slice/index.js | 29 + .../arraybuffer.slice/package.json | 44 + .../arraybuffer.slice/test/slice-buffer.js | 227 + nodered/rootfs/data/node_modules/asn1/LICENSE | 19 + .../rootfs/data/node_modules/asn1/README.md | 50 + .../data/node_modules/asn1/lib/ber/errors.js | 13 + .../data/node_modules/asn1/lib/ber/index.js | 27 + .../data/node_modules/asn1/lib/ber/reader.js | 262 + .../data/node_modules/asn1/lib/ber/types.js | 36 + .../data/node_modules/asn1/lib/ber/writer.js | 317 + .../data/node_modules/asn1/lib/index.js | 20 + .../data/node_modules/asn1/package.json | 75 + .../data/node_modules/assert-plus/AUTHORS | 6 + .../data/node_modules/assert-plus/CHANGES.md | 14 + .../data/node_modules/assert-plus/README.md | 162 + .../data/node_modules/assert-plus/assert.js | 211 + .../node_modules/assert-plus/package.json | 87 + .../node_modules/async-limiter/.eslintignore | 2 + .../data/node_modules/async-limiter/.nycrc | 10 + .../node_modules/async-limiter/.travis.yml | 9 + .../data/node_modules/async-limiter/LICENSE | 8 + .../data/node_modules/async-limiter/index.js | 67 + .../node_modules/async-limiter/package.json | 69 + .../data/node_modules/async-limiter/readme.md | 132 + .../rootfs/data/node_modules/asynckit/LICENSE | 21 + .../data/node_modules/asynckit/README.md | 233 + .../data/node_modules/asynckit/bench.js | 76 + .../data/node_modules/asynckit/index.js | 6 + .../data/node_modules/asynckit/lib/abort.js | 29 + .../data/node_modules/asynckit/lib/async.js | 34 + .../data/node_modules/asynckit/lib/defer.js | 26 + .../data/node_modules/asynckit/lib/iterate.js | 75 + .../asynckit/lib/readable_asynckit.js | 91 + .../asynckit/lib/readable_parallel.js | 25 + .../asynckit/lib/readable_serial.js | 25 + .../asynckit/lib/readable_serial_ordered.js | 29 + .../data/node_modules/asynckit/lib/state.js | 37 + .../node_modules/asynckit/lib/streamify.js | 141 + .../node_modules/asynckit/lib/terminator.js | 29 + .../data/node_modules/asynckit/package.json | 91 + .../data/node_modules/asynckit/parallel.js | 43 + .../data/node_modules/asynckit/serial.js | 17 + .../node_modules/asynckit/serialOrdered.js | 75 + .../data/node_modules/asynckit/stream.js | 21 + .../data/node_modules/aws-sign2/LICENSE | 55 + .../data/node_modules/aws-sign2/README.md | 4 + .../data/node_modules/aws-sign2/index.js | 212 + .../data/node_modules/aws-sign2/package.json | 50 + .../rootfs/data/node_modules/aws4/.travis.yml | 9 + nodered/rootfs/data/node_modules/aws4/LICENSE | 19 + .../rootfs/data/node_modules/aws4/README.md | 523 + nodered/rootfs/data/node_modules/aws4/aws4.js | 341 + nodered/rootfs/data/node_modules/aws4/lru.js | 96 + .../data/node_modules/aws4/package.json | 104 + .../data/node_modules/backo2/.npmignore | 1 + .../data/node_modules/backo2/History.md | 12 + .../rootfs/data/node_modules/backo2/Makefile | 8 + .../rootfs/data/node_modules/backo2/Readme.md | 34 + .../data/node_modules/backo2/component.json | 11 + .../rootfs/data/node_modules/backo2/index.js | 85 + .../data/node_modules/backo2/package.json | 47 + .../data/node_modules/backo2/test/index.js | 18 + .../base64-arraybuffer/.npmignore | 3 + .../base64-arraybuffer/.travis.yml | 19 + .../base64-arraybuffer/LICENSE-MIT | 22 + .../node_modules/base64-arraybuffer/README.md | 20 + .../lib/base64-arraybuffer.js | 67 + .../base64-arraybuffer/package.json | 65 + .../data/node_modules/base64id/CHANGELOG.md | 16 + .../rootfs/data/node_modules/base64id/LICENSE | 22 + .../data/node_modules/base64id/README.md | 18 + .../node_modules/base64id/lib/base64id.js | 103 + .../data/node_modules/base64id/package.json | 47 + .../node_modules/bcrypt-pbkdf/CONTRIBUTING.md | 13 + .../data/node_modules/bcrypt-pbkdf/LICENSE | 66 + .../data/node_modules/bcrypt-pbkdf/README.md | 45 + .../data/node_modules/bcrypt-pbkdf/index.js | 556 + .../node_modules/bcrypt-pbkdf/package.json | 44 + .../node_modules/better-assert/.npmignore | 4 + .../node_modules/better-assert/History.md | 15 + .../data/node_modules/better-assert/Makefile | 5 + .../data/node_modules/better-assert/Readme.md | 61 + .../node_modules/better-assert/example.js | 10 + .../data/node_modules/better-assert/index.js | 38 + .../node_modules/better-assert/package.json | 65 + .../node_modules/bignumber.js/CHANGELOG.md | 222 + .../data/node_modules/bignumber.js/LICENCE | 23 + .../data/node_modules/bignumber.js/README.md | 266 + .../node_modules/bignumber.js/bignumber.d.ts | 1797 + .../node_modules/bignumber.js/bignumber.js | 2814 + .../bignumber.js/bignumber.js.map | 1 + .../bignumber.js/bignumber.min.js | 3 + .../node_modules/bignumber.js/bignumber.mjs | 2793 + .../data/node_modules/bignumber.js/bower.json | 36 + .../node_modules/bignumber.js/doc/API.html | 2118 + .../node_modules/bignumber.js/package.json | 68 + nodered/rootfs/data/node_modules/bl/.jshintrc | 59 + .../rootfs/data/node_modules/bl/.travis.yml | 16 + .../rootfs/data/node_modules/bl/LICENSE.md | 13 + nodered/rootfs/data/node_modules/bl/README.md | 208 + nodered/rootfs/data/node_modules/bl/bl.js | 281 + .../rootfs/data/node_modules/bl/package.json | 63 + .../rootfs/data/node_modules/bl/test/test.js | 702 + .../data/node_modules/blob/.idea/blob.iml | 12 + .../inspectionProfiles/profiles_settings.xml | 5 + .../blob/.idea/markdown-navigator.xml | 78 + .../markdown-navigator/profiles_settings.xml | 3 + .../data/node_modules/blob/.idea/modules.xml | 8 + .../data/node_modules/blob/.idea/vcs.xml | 6 + .../node_modules/blob/.idea/workspace.xml | 390 + .../rootfs/data/node_modules/blob/.zuul.yml | 14 + nodered/rootfs/data/node_modules/blob/LICENSE | 21 + .../rootfs/data/node_modules/blob/Makefile | 14 + .../rootfs/data/node_modules/blob/README.md | 21 + .../data/node_modules/blob/component.json | 11 + .../rootfs/data/node_modules/blob/index.js | 100 + .../data/node_modules/blob/package.json | 49 + .../data/node_modules/blob/test/index.js | 100 + .../rootfs/data/node_modules/bluebird/LICENSE | 21 + .../data/node_modules/bluebird/README.md | 57 + .../data/node_modules/bluebird/changelog.md | 1 + .../bluebird/js/browser/bluebird.core.js | 3914 ++ .../bluebird/js/browser/bluebird.core.min.js | 31 + .../bluebird/js/browser/bluebird.js | 5778 ++ .../bluebird/js/browser/bluebird.min.js | 31 + .../node_modules/bluebird/js/release/any.js | 21 + .../bluebird/js/release/assert.js | 55 + .../node_modules/bluebird/js/release/async.js | 120 + .../node_modules/bluebird/js/release/bind.js | 67 + .../bluebird/js/release/bluebird.js | 11 + .../bluebird/js/release/call_get.js | 123 + .../bluebird/js/release/cancel.js | 129 + .../bluebird/js/release/catch_filter.js | 42 + .../bluebird/js/release/context.js | 69 + .../bluebird/js/release/debuggability.js | 1009 + .../bluebird/js/release/direct_resolve.js | 46 + .../node_modules/bluebird/js/release/each.js | 30 + .../bluebird/js/release/errors.js | 116 + .../node_modules/bluebird/js/release/es5.js | 80 + .../bluebird/js/release/filter.js | 12 + .../bluebird/js/release/finally.js | 146 + .../bluebird/js/release/generators.js | 223 + .../node_modules/bluebird/js/release/join.js | 165 + .../node_modules/bluebird/js/release/map.js | 175 + .../bluebird/js/release/method.js | 55 + .../bluebird/js/release/nodeback.js | 51 + .../bluebird/js/release/nodeify.js | 58 + .../bluebird/js/release/promise.js | 819 + .../bluebird/js/release/promise_array.js | 186 + .../bluebird/js/release/promisify.js | 314 + .../node_modules/bluebird/js/release/props.js | 118 + .../node_modules/bluebird/js/release/queue.js | 73 + .../node_modules/bluebird/js/release/race.js | 49 + .../bluebird/js/release/reduce.js | 183 + .../bluebird/js/release/schedule.js | 62 + .../bluebird/js/release/settle.js | 47 + .../node_modules/bluebird/js/release/some.js | 148 + .../js/release/synchronous_inspection.js | 103 + .../bluebird/js/release/thenables.js | 86 + .../bluebird/js/release/timers.js | 93 + .../node_modules/bluebird/js/release/using.js | 226 + .../node_modules/bluebird/js/release/util.js | 421 + .../data/node_modules/bluebird/package.json | 103 + .../rootfs/data/node_modules/bytes/History.md | 82 + .../rootfs/data/node_modules/bytes/LICENSE | 23 + .../rootfs/data/node_modules/bytes/Readme.md | 125 + .../rootfs/data/node_modules/bytes/index.js | 159 + .../data/node_modules/bytes/package.json | 81 + .../data/node_modules/callsite/.npmignore | 4 + .../data/node_modules/callsite/History.md | 10 + .../data/node_modules/callsite/Makefile | 6 + .../data/node_modules/callsite/Readme.md | 44 + .../data/node_modules/callsite/index.js | 10 + .../data/node_modules/callsite/package.json | 48 + .../rootfs/data/node_modules/caseless/LICENSE | 28 + .../data/node_modules/caseless/README.md | 45 + .../data/node_modules/caseless/index.js | 67 + .../data/node_modules/caseless/package.json | 56 + .../rootfs/data/node_modules/caseless/test.js | 67 + .../node_modules/circular-buffer/.npmignore | 1 + .../node_modules/circular-buffer/.travis.yml | 10 + .../node_modules/circular-buffer/README.md | 60 + .../node_modules/circular-buffer/index.js | 78 + .../node_modules/circular-buffer/package.json | 56 + .../node_modules/circular-buffer/test/test.js | 161 + .../data/node_modules/combined-stream/License | 19 + .../node_modules/combined-stream/Readme.md | 138 + .../combined-stream/lib/combined_stream.js | 208 + .../node_modules/combined-stream/package.json | 58 + .../node_modules/combined-stream/yarn.lock | 17 + .../data/node_modules/complex.js/.travis.yml | 4 + .../data/node_modules/complex.js/README.md | 250 + .../data/node_modules/complex.js/bower.json | 26 + .../data/node_modules/complex.js/complex.js | 1183 + .../node_modules/complex.js/complex.min.js | 22 + .../data/node_modules/complex.js/package.json | 62 + .../complex.js/tests/complex.test.js | 631 + .../node_modules/component-bind/.npmignore | 4 + .../node_modules/component-bind/History.md | 13 + .../data/node_modules/component-bind/Makefile | 7 + .../node_modules/component-bind/Readme.md | 64 + .../component-bind/component.json | 13 + .../data/node_modules/component-bind/index.js | 23 + .../node_modules/component-bind/package.json | 51 + .../node_modules/component-emitter/History.md | 68 + .../node_modules/component-emitter/LICENSE | 24 + .../node_modules/component-emitter/Readme.md | 74 + .../node_modules/component-emitter/index.js | 163 + .../component-emitter/package.json | 59 + .../node_modules/component-inherit/.npmignore | 3 + .../node_modules/component-inherit/History.md | 5 + .../node_modules/component-inherit/Makefile | 16 + .../node_modules/component-inherit/Readme.md | 24 + .../component-inherit/component.json | 10 + .../node_modules/component-inherit/index.js | 7 + .../component-inherit/package.json | 48 + .../component-inherit/test/inherit.js | 21 + .../data/node_modules/compressible/HISTORY.md | 104 + .../data/node_modules/compressible/LICENSE | 24 + .../data/node_modules/compressible/README.md | 61 + .../data/node_modules/compressible/index.js | 58 + .../node_modules/compressible/package.json | 91 + .../data/node_modules/compression/HISTORY.md | 307 + .../data/node_modules/compression/LICENSE | 23 + .../data/node_modules/compression/README.md | 240 + .../data/node_modules/compression/index.js | 288 + .../node_modules/safe-buffer/LICENSE | 21 + .../node_modules/safe-buffer/README.md | 584 + .../node_modules/safe-buffer/index.d.ts | 187 + .../node_modules/safe-buffer/index.js | 62 + .../node_modules/safe-buffer/package.json | 62 + .../node_modules/compression/package.json | 86 + .../data/node_modules/cookie/HISTORY.md | 118 + .../rootfs/data/node_modules/cookie/LICENSE | 24 + .../rootfs/data/node_modules/cookie/README.md | 220 + .../rootfs/data/node_modules/cookie/index.js | 195 + .../data/node_modules/cookie/package.json | 71 + .../data/node_modules/core-util-is/LICENSE | 19 + .../data/node_modules/core-util-is/README.md | 3 + .../node_modules/core-util-is/float.patch | 604 + .../node_modules/core-util-is/lib/util.js | 107 + .../node_modules/core-util-is/package.json | 62 + .../data/node_modules/core-util-is/test.js | 68 + .../node_modules/cross-spawn/CHANGELOG.md | 100 + .../data/node_modules/cross-spawn/LICENSE | 21 + .../data/node_modules/cross-spawn/README.md | 94 + .../data/node_modules/cross-spawn/index.js | 39 + .../node_modules/cross-spawn/lib/enoent.js | 59 + .../node_modules/cross-spawn/lib/parse.js | 125 + .../cross-spawn/lib/util/escape.js | 45 + .../cross-spawn/lib/util/readShebang.js | 32 + .../cross-spawn/lib/util/resolveCommand.js | 47 + .../node_modules/cross-spawn/package.json | 107 + .../data/node_modules/dashdash/CHANGES.md | 364 + .../data/node_modules/dashdash/LICENSE.txt | 24 + .../data/node_modules/dashdash/README.md | 574 + .../dashdash/etc/dashdash.bash_completion.in | 389 + .../node_modules/dashdash/lib/dashdash.js | 1055 + .../data/node_modules/dashdash/package.json | 67 + .../data/node_modules/debug/.coveralls.yml | 1 + .../rootfs/data/node_modules/debug/.eslintrc | 11 + .../rootfs/data/node_modules/debug/.npmignore | 9 + .../data/node_modules/debug/.travis.yml | 14 + .../data/node_modules/debug/CHANGELOG.md | 362 + .../rootfs/data/node_modules/debug/LICENSE | 19 + .../rootfs/data/node_modules/debug/Makefile | 50 + .../rootfs/data/node_modules/debug/README.md | 312 + .../data/node_modules/debug/component.json | 19 + .../data/node_modules/debug/karma.conf.js | 70 + .../rootfs/data/node_modules/debug/node.js | 1 + .../data/node_modules/debug/package.json | 89 + .../data/node_modules/debug/src/browser.js | 185 + .../data/node_modules/debug/src/debug.js | 202 + .../data/node_modules/debug/src/index.js | 10 + .../node_modules/debug/src/inspector-log.js | 15 + .../data/node_modules/debug/src/node.js | 248 + .../data/node_modules/decimal.js/CHANGELOG.md | 118 + .../data/node_modules/decimal.js/LICENCE.md | 23 + .../data/node_modules/decimal.js/README.md | 232 + .../data/node_modules/decimal.js/bower.json | 33 + .../data/node_modules/decimal.js/decimal.js | 4799 ++ .../node_modules/decimal.js/decimal.min.js | 3 + .../data/node_modules/decimal.js/doc/API.html | 2629 + .../decimal.js/doc/decimal.js.map | 1 + .../data/node_modules/decimal.js/package.json | 62 + .../define-properties/.editorconfig | 13 + .../node_modules/define-properties/.eslintrc | 12 + .../node_modules/define-properties/.jscs.json | 175 + .../define-properties/.travis.yml | 233 + .../define-properties/CHANGELOG.md | 44 + .../node_modules/define-properties/LICENSE | 21 + .../node_modules/define-properties/README.md | 86 + .../node_modules/define-properties/index.js | 58 + .../define-properties/package.json | 99 + .../define-properties/test/index.js | 125 + .../node_modules/delayed-stream/.npmignore | 1 + .../data/node_modules/delayed-stream/License | 19 + .../data/node_modules/delayed-stream/Makefile | 7 + .../node_modules/delayed-stream/Readme.md | 141 + .../delayed-stream/lib/delayed_stream.js | 107 + .../node_modules/delayed-stream/package.json | 62 + .../rootfs/data/node_modules/depd/History.md | 96 + nodered/rootfs/data/node_modules/depd/LICENSE | 22 + .../rootfs/data/node_modules/depd/Readme.md | 280 + .../rootfs/data/node_modules/depd/index.js | 522 + .../node_modules/depd/lib/browser/index.js | 77 + .../depd/lib/compat/callsite-tostring.js | 103 + .../depd/lib/compat/event-listener-count.js | 22 + .../node_modules/depd/lib/compat/index.js | 79 + .../data/node_modules/depd/package.json | 77 + .../rootfs/data/node_modules/destroy/LICENSE | 22 + .../data/node_modules/destroy/README.md | 60 + .../rootfs/data/node_modules/destroy/index.js | 75 + .../data/node_modules/destroy/package.json | 71 + .../data/node_modules/dom-serializer/LICENSE | 11 + .../data/node_modules/dom-serializer/index.js | 148 + .../node_modules/dom-serializer/package.json | 68 + .../data/node_modules/domelementtype/LICENSE | 11 + .../data/node_modules/domelementtype/index.js | 15 + .../node_modules/domelementtype/package.json | 51 + .../node_modules/domelementtype/readme.md | 1 + .../data/node_modules/domhandler/.travis.yml | 6 + .../data/node_modules/domhandler/LICENSE | 11 + .../data/node_modules/domhandler/index.js | 217 + .../node_modules/domhandler/lib/element.js | 20 + .../data/node_modules/domhandler/lib/node.js | 44 + .../data/node_modules/domhandler/package.json | 73 + .../data/node_modules/domhandler/readme.md | 116 + .../domhandler/test/cases/01-basic.json | 57 + .../test/cases/02-single_tag_1.json | 21 + .../test/cases/03-single_tag_2.json | 21 + .../test/cases/04-unescaped_in_script.json | 27 + .../test/cases/05-tags_in_comment.json | 18 + .../test/cases/06-comment_in_script.json | 18 + .../test/cases/07-unescaped_in_style.json | 20 + .../test/cases/08-extra_spaces_in_tag.json | 20 + .../test/cases/09-unquoted_attrib.json | 20 + .../test/cases/10-singular_attribute.json | 15 + .../test/cases/11-text_outside_tags.json | 40 + .../domhandler/test/cases/12-text_only.json | 11 + .../test/cases/13-comment_in_text.json | 19 + .../cases/14-comment_in_text_in_script.json | 18 + .../domhandler/test/cases/15-non-verbose.json | 22 + .../test/cases/16-normalize_whitespace.json | 47 + .../test/cases/17-xml_namespace.json | 18 + .../test/cases/18-enforce_empty_tags.json | 16 + .../test/cases/19-ignore_empty_tags.json | 20 + .../test/cases/20-template_script_tags.json | 20 + .../test/cases/21-conditional_comments.json | 15 + .../test/cases/22-lowercase_tags.json | 41 + .../domhandler/test/cases/23-dom-lvl1.json | 131 + .../test/cases/24-with-start-indices.json | 85 + .../test/cases/25-with-end-indices.json | 86 + .../node_modules/domhandler/test/tests.js | 60 + .../data/node_modules/domutils/.npmignore | 1 + .../rootfs/data/node_modules/domutils/LICENSE | 11 + .../data/node_modules/domutils/index.js | 14 + .../data/node_modules/domutils/lib/helpers.js | 141 + .../data/node_modules/domutils/lib/legacy.js | 87 + .../node_modules/domutils/lib/manipulation.js | 77 + .../node_modules/domutils/lib/querying.js | 94 + .../node_modules/domutils/lib/stringify.js | 22 + .../node_modules/domutils/lib/traversal.js | 24 + .../data/node_modules/domutils/package.json | 79 + .../data/node_modules/domutils/readme.md | 1 + .../node_modules/domutils/test/fixture.js | 6 + .../domutils/test/tests/helpers.js | 89 + .../domutils/test/tests/legacy.js | 119 + .../domutils/test/tests/traversal.js | 17 + .../data/node_modules/domutils/test/utils.js | 9 + .../rootfs/data/node_modules/ecc-jsbn/LICENSE | 21 + .../data/node_modules/ecc-jsbn/README.md | 8 + .../data/node_modules/ecc-jsbn/index.js | 58 + .../node_modules/ecc-jsbn/lib/LICENSE-jsbn | 40 + .../data/node_modules/ecc-jsbn/lib/ec.js | 561 + .../data/node_modules/ecc-jsbn/lib/sec.js | 170 + .../data/node_modules/ecc-jsbn/package.json | 65 + .../rootfs/data/node_modules/ecc-jsbn/test.js | 14 + .../rootfs/data/node_modules/ee-first/LICENSE | 22 + .../data/node_modules/ee-first/README.md | 80 + .../data/node_modules/ee-first/index.js | 95 + .../data/node_modules/ee-first/package.json | 63 + .../data/node_modules/encodeurl/HISTORY.md | 14 + .../data/node_modules/encodeurl/LICENSE | 22 + .../data/node_modules/encodeurl/README.md | 128 + .../data/node_modules/encodeurl/index.js | 60 + .../data/node_modules/encodeurl/package.json | 76 + .../encoding-japanese/CHANGELOG.md | 13 + .../node_modules/encoding-japanese/LICENSE | 21 + .../node_modules/encoding-japanese/README.md | 406 + .../encoding-japanese/README_ja.md | 411 + .../node_modules/encoding-japanese/bower.json | 29 + .../encoding-japanese/encoding.js | 5992 ++ .../encoding-japanese/encoding.min.js | 8 + .../encoding-japanese/encoding.min.js.map | 1 + .../encoding-japanese/package.json | 87 + .../encoding-japanese/src/banner.js | 6 + .../encoding-japanese/src/config.js | 178 + .../encoding-japanese/src/encoding-convert.js | 1597 + .../encoding-japanese/src/encoding-detect.js | 502 + .../encoding-japanese/src/encoding-table.js | 4 + .../encoding-japanese/src/index.js | 590 + .../src/jis-to-utf8-table.js | 5 + .../src/jisx0212-to-utf8-table.js | 5 + .../encoding-japanese/src/kana-case-table.js | 40 + .../src/utf8-to-jis-table.js | 1492 + .../src/utf8-to-jisx0212-table.js | 1223 + .../encoding-japanese/src/util.js | 326 + .../tests/encoding-eucjp.txt | 1 + .../encoding-japanese/tests/encoding-jis.txt | 1 + .../encoding-japanese/tests/encoding-sjis.txt | 1 + .../encoding-japanese/tests/encoding-utf8.txt | 1 + .../tests/jis-x-0208-utf8.txt | 1 + .../tests/jis-x-0212-sjis-to-utf8.txt | 210 + .../tests/jis-x-0212-utf8.txt | 210 + .../tests/surrogate-pairs-utf8.txt | 2 + .../encoding-japanese/tests/test.js | 1395 + .../data/node_modules/end-of-stream/LICENSE | 21 + .../data/node_modules/end-of-stream/README.md | 54 + .../data/node_modules/end-of-stream/index.js | 94 + .../node_modules/end-of-stream/package.json | 65 + .../node_modules/engine.io-client/LICENSE | 22 + .../node_modules/engine.io-client/README.md | 300 + .../engine.io-client/engine.io.js | 4709 ++ .../engine.io-client/lib/index.js | 10 + .../engine.io-client/lib/socket.js | 748 + .../engine.io-client/lib/transport.js | 161 + .../engine.io-client/lib/transports/index.js | 53 + .../lib/transports/polling-jsonp.js | 239 + .../lib/transports/polling-xhr.js | 417 + .../lib/transports/polling.js | 245 + .../lib/transports/websocket.js | 295 + .../engine.io-client/lib/xmlhttprequest.js | 37 + .../node_modules/debug/CHANGELOG.md | 395 + .../node_modules/debug/LICENSE | 19 + .../node_modules/debug/README.md | 455 + .../node_modules/debug/dist/debug.js | 912 + .../node_modules/debug/package.json | 102 + .../node_modules/debug/src/browser.js | 264 + .../node_modules/debug/src/common.js | 266 + .../node_modules/debug/src/index.js | 10 + .../node_modules/debug/src/node.js | 257 + .../engine.io-client/node_modules/ms/index.js | 162 + .../node_modules/ms/license.md | 21 + .../node_modules/ms/package.json | 69 + .../node_modules/ms/readme.md | 60 + .../engine.io-client/node_modules/ws/LICENSE | 21 + .../node_modules/ws/README.md | 449 + .../node_modules/ws/browser.js | 8 + .../engine.io-client/node_modules/ws/index.js | 9 + .../node_modules/ws/lib/buffer-util.js | 72 + .../node_modules/ws/lib/constants.js | 10 + .../node_modules/ws/lib/event-target.js | 170 + .../node_modules/ws/lib/extension.js | 222 + .../node_modules/ws/lib/permessage-deflate.js | 502 + .../node_modules/ws/lib/receiver.js | 515 + .../node_modules/ws/lib/sender.js | 416 + .../node_modules/ws/lib/validation.js | 30 + .../node_modules/ws/lib/websocket-server.js | 389 + .../node_modules/ws/lib/websocket.js | 852 + .../node_modules/ws/package.json | 79 + .../engine.io-client/package.json | 113 + .../node_modules/engine.io-parser/LICENSE | 22 + .../node_modules/engine.io-parser/Readme.md | 202 + .../engine.io-parser/lib/browser.js | 605 + .../engine.io-parser/lib/index.js | 473 + .../node_modules/engine.io-parser/lib/keys.js | 19 + .../node_modules/engine.io-parser/lib/utf8.js | 210 + .../engine.io-parser/package.json | 63 + .../data/node_modules/engine.io/LICENSE | 19 + .../data/node_modules/engine.io/README.md | 564 + .../node_modules/engine.io/lib/engine.io.js | 126 + .../data/node_modules/engine.io/lib/server.js | 587 + .../data/node_modules/engine.io/lib/socket.js | 486 + .../node_modules/engine.io/lib/transport.js | 128 + .../engine.io/lib/transports/index.js | 36 + .../engine.io/lib/transports/polling-jsonp.js | 75 + .../engine.io/lib/transports/polling-xhr.js | 69 + .../engine.io/lib/transports/polling.js | 407 + .../engine.io/lib/transports/websocket.js | 134 + .../engine.io/node_modules/debug/CHANGELOG.md | 395 + .../engine.io/node_modules/debug/LICENSE | 19 + .../engine.io/node_modules/debug/README.md | 455 + .../node_modules/debug/dist/debug.js | 912 + .../engine.io/node_modules/debug/package.json | 102 + .../node_modules/debug/src/browser.js | 264 + .../node_modules/debug/src/common.js | 266 + .../engine.io/node_modules/debug/src/index.js | 10 + .../engine.io/node_modules/debug/src/node.js | 257 + .../engine.io/node_modules/ms/index.js | 162 + .../engine.io/node_modules/ms/license.md | 21 + .../engine.io/node_modules/ms/package.json | 69 + .../engine.io/node_modules/ms/readme.md | 60 + .../data/node_modules/engine.io/package.json | 93 + .../data/node_modules/entities/.travis.yml | 5 + .../rootfs/data/node_modules/entities/LICENSE | 11 + .../data/node_modules/entities/index.js | 26 + .../data/node_modules/entities/lib/decode.js | 70 + .../entities/lib/decode_codepoint.js | 25 + .../data/node_modules/entities/lib/encode.js | 82 + .../node_modules/entities/maps/decode.json | 1 + .../node_modules/entities/maps/entities.json | 1 + .../node_modules/entities/maps/legacy.json | 1 + .../data/node_modules/entities/maps/xml.json | 1 + .../data/node_modules/entities/package.json | 91 + .../data/node_modules/entities/readme.md | 27 + .../node_modules/entities/test/mocha.opts | 2 + .../data/node_modules/entities/test/test.js | 170 + .../node_modules/es-abstract/.editorconfig | 13 + .../node_modules/es-abstract/.eslintignore | 1 + .../data/node_modules/es-abstract/.eslintrc | 75 + .../node_modules/es-abstract/.gitattributes | 472 + .../es-abstract/.github/FUNDING.yml | 12 + .../es-abstract/.github/workflows/rebase.yml | 15 + .../data/node_modules/es-abstract/.nycrc | 14 + .../data/node_modules/es-abstract/.travis.yml | 32 + .../2015/AbstractEqualityComparison.js | 37 + .../2015/AbstractRelationalComparison.js | 66 + .../es-abstract/2015/AdvanceStringIndex.js | 45 + .../es-abstract/2015/ArrayCreate.js | 53 + .../es-abstract/2015/ArraySetLength.js | 85 + .../es-abstract/2015/ArraySpeciesCreate.js | 46 + .../node_modules/es-abstract/2015/Call.js | 19 + .../2015/CanonicalNumericIndexString.js | 22 + .../2015/CompletePropertyDescriptor.js | 39 + .../es-abstract/2015/CreateDataProperty.js | 45 + .../2015/CreateDataPropertyOrThrow.js | 25 + .../es-abstract/2015/CreateHTML.js | 30 + .../2015/CreateIterResultObject.js | 19 + .../2015/CreateListFromArrayLike.js | 43 + .../es-abstract/2015/CreateMethodProperty.js | 40 + .../es-abstract/2015/DateFromTime.js | 54 + .../data/node_modules/es-abstract/2015/Day.js | 13 + .../es-abstract/2015/DayFromYear.js | 12 + .../es-abstract/2015/DayWithinYear.js | 11 + .../es-abstract/2015/DaysInYear.js | 18 + .../es-abstract/2015/DefinePropertyOrThrow.js | 50 + .../es-abstract/2015/DeletePropertyOrThrow.js | 27 + .../es-abstract/2015/EnumerableOwnNames.js | 19 + .../2015/FromPropertyDescriptor.js | 36 + .../data/node_modules/es-abstract/2015/Get.js | 30 + .../es-abstract/2015/GetIterator.js | 35 + .../es-abstract/2015/GetMethod.js | 42 + .../es-abstract/2015/GetOwnPropertyKeys.js | 31 + .../2015/GetPrototypeFromConstructor.js | 28 + .../es-abstract/2015/GetSubstitution.js | 98 + .../node_modules/es-abstract/2015/GetV.js | 29 + .../es-abstract/2015/HasOwnProperty.js | 22 + .../es-abstract/2015/HasProperty.js | 20 + .../es-abstract/2015/HourFromTime.js | 16 + .../es-abstract/2015/InLeapYear.js | 21 + .../es-abstract/2015/InstanceofOperator.js | 30 + .../node_modules/es-abstract/2015/Invoke.js | 22 + .../es-abstract/2015/IsAccessorDescriptor.js | 23 + .../node_modules/es-abstract/2015/IsArray.js | 14 + .../es-abstract/2015/IsCallable.js | 5 + .../es-abstract/2015/IsConcatSpreadable.js | 25 + .../es-abstract/2015/IsConstructor.js | 7 + .../es-abstract/2015/IsDataDescriptor.js | 23 + .../es-abstract/2015/IsExtensible.js | 20 + .../es-abstract/2015/IsGenericDescriptor.js | 23 + .../es-abstract/2015/IsInteger.js | 21 + .../es-abstract/2015/IsPromise.js | 24 + .../es-abstract/2015/IsPropertyDescriptor.js | 17 + .../es-abstract/2015/IsPropertyKey.js | 7 + .../node_modules/es-abstract/2015/IsRegExp.js | 24 + .../es-abstract/2015/IteratorClose.js | 50 + .../es-abstract/2015/IteratorComplete.js | 18 + .../es-abstract/2015/IteratorNext.js | 18 + .../es-abstract/2015/IteratorStep.js | 13 + .../es-abstract/2015/IteratorValue.js | 18 + .../node_modules/es-abstract/2015/MakeDate.js | 13 + .../node_modules/es-abstract/2015/MakeDay.js | 33 + .../node_modules/es-abstract/2015/MakeTime.js | 23 + .../es-abstract/2015/MinFromTime.js | 16 + .../es-abstract/2015/MonthFromTime.js | 47 + .../es-abstract/2015/ObjectCreate.js | 27 + .../2015/OrdinaryDefineOwnProperty.js | 38 + .../2015/OrdinaryGetOwnProperty.js | 44 + .../es-abstract/2015/OrdinaryHasInstance.js | 25 + .../es-abstract/2015/OrdinaryHasProperty.js | 20 + .../es-abstract/2015/RegExpExec.js | 32 + .../2015/RequireObjectCoercible.js | 3 + .../es-abstract/2015/SameValue.js | 13 + .../es-abstract/2015/SameValueZero.js | 9 + .../es-abstract/2015/SecFromTime.js | 16 + .../data/node_modules/es-abstract/2015/Set.js | 32 + .../es-abstract/2015/SetFunctionName.js | 44 + .../es-abstract/2015/SetIntegrityLevel.js | 57 + .../es-abstract/2015/SpeciesConstructor.js | 32 + .../2015/StrictEqualityComparison.js | 17 + .../2015/SymbolDescriptiveString.js | 20 + .../es-abstract/2015/TestIntegrityLevel.js | 42 + .../node_modules/es-abstract/2015/TimeClip.js | 21 + .../es-abstract/2015/TimeFromYear.js | 11 + .../es-abstract/2015/TimeWithinDay.js | 11 + .../es-abstract/2015/ToBoolean.js | 5 + .../es-abstract/2015/ToDateString.js | 22 + .../node_modules/es-abstract/2015/ToInt16.js | 10 + .../node_modules/es-abstract/2015/ToInt32.js | 9 + .../node_modules/es-abstract/2015/ToInt8.js | 10 + .../es-abstract/2015/ToInteger.js | 12 + .../node_modules/es-abstract/2015/ToLength.js | 12 + .../node_modules/es-abstract/2015/ToNumber.js | 59 + .../node_modules/es-abstract/2015/ToObject.js | 14 + .../es-abstract/2015/ToPrimitive.js | 12 + .../es-abstract/2015/ToPropertyDescriptor.js | 52 + .../es-abstract/2015/ToPropertyKey.js | 15 + .../node_modules/es-abstract/2015/ToString.js | 15 + .../node_modules/es-abstract/2015/ToUint16.js | 24 + .../node_modules/es-abstract/2015/ToUint32.js | 9 + .../node_modules/es-abstract/2015/ToUint8.js | 22 + .../es-abstract/2015/ToUint8Clamp.js | 24 + .../node_modules/es-abstract/2015/Type.js | 12 + .../ValidateAndApplyPropertyDescriptor.js | 170 + .../node_modules/es-abstract/2015/WeekDay.js | 11 + .../es-abstract/2015/YearFromTime.js | 16 + .../node_modules/es-abstract/2015/modulo.js | 9 + .../es-abstract/2015/msFromTime.js | 10 + .../es-abstract/2015/thisBooleanValue.js | 15 + .../es-abstract/2015/thisNumberValue.js | 18 + .../es-abstract/2015/thisStringValue.js | 15 + .../es-abstract/2015/thisTimeValue.js | 9 + .../2016/AbstractEqualityComparison.js | 37 + .../2016/AbstractRelationalComparison.js | 66 + .../es-abstract/2016/AdvanceStringIndex.js | 45 + .../es-abstract/2016/ArrayCreate.js | 53 + .../es-abstract/2016/ArraySetLength.js | 85 + .../es-abstract/2016/ArraySpeciesCreate.js | 46 + .../node_modules/es-abstract/2016/Call.js | 19 + .../2016/CanonicalNumericIndexString.js | 22 + .../2016/CompletePropertyDescriptor.js | 39 + .../es-abstract/2016/CreateDataProperty.js | 45 + .../2016/CreateDataPropertyOrThrow.js | 25 + .../es-abstract/2016/CreateHTML.js | 30 + .../2016/CreateIterResultObject.js | 19 + .../2016/CreateListFromArrayLike.js | 43 + .../es-abstract/2016/CreateMethodProperty.js | 40 + .../es-abstract/2016/DateFromTime.js | 54 + .../data/node_modules/es-abstract/2016/Day.js | 13 + .../es-abstract/2016/DayFromYear.js | 12 + .../es-abstract/2016/DayWithinYear.js | 11 + .../es-abstract/2016/DaysInYear.js | 18 + .../es-abstract/2016/DefinePropertyOrThrow.js | 50 + .../es-abstract/2016/DeletePropertyOrThrow.js | 27 + .../es-abstract/2016/EnumerableOwnNames.js | 19 + .../2016/FromPropertyDescriptor.js | 36 + .../data/node_modules/es-abstract/2016/Get.js | 30 + .../es-abstract/2016/GetIterator.js | 35 + .../es-abstract/2016/GetMethod.js | 42 + .../es-abstract/2016/GetOwnPropertyKeys.js | 31 + .../2016/GetPrototypeFromConstructor.js | 28 + .../es-abstract/2016/GetSubstitution.js | 98 + .../node_modules/es-abstract/2016/GetV.js | 29 + .../es-abstract/2016/HasOwnProperty.js | 22 + .../es-abstract/2016/HasProperty.js | 20 + .../es-abstract/2016/HourFromTime.js | 16 + .../es-abstract/2016/InLeapYear.js | 21 + .../es-abstract/2016/InstanceofOperator.js | 30 + .../node_modules/es-abstract/2016/Invoke.js | 22 + .../es-abstract/2016/IsAccessorDescriptor.js | 23 + .../node_modules/es-abstract/2016/IsArray.js | 14 + .../es-abstract/2016/IsCallable.js | 5 + .../es-abstract/2016/IsConcatSpreadable.js | 25 + .../es-abstract/2016/IsConstructor.js | 7 + .../es-abstract/2016/IsDataDescriptor.js | 23 + .../es-abstract/2016/IsExtensible.js | 20 + .../es-abstract/2016/IsGenericDescriptor.js | 23 + .../es-abstract/2016/IsInteger.js | 21 + .../es-abstract/2016/IsPromise.js | 24 + .../es-abstract/2016/IsPropertyDescriptor.js | 17 + .../es-abstract/2016/IsPropertyKey.js | 7 + .../node_modules/es-abstract/2016/IsRegExp.js | 24 + .../es-abstract/2016/IterableToArrayLike.js | 73 + .../es-abstract/2016/IteratorClose.js | 50 + .../es-abstract/2016/IteratorComplete.js | 18 + .../es-abstract/2016/IteratorNext.js | 18 + .../es-abstract/2016/IteratorStep.js | 13 + .../es-abstract/2016/IteratorValue.js | 18 + .../node_modules/es-abstract/2016/MakeDate.js | 13 + .../node_modules/es-abstract/2016/MakeDay.js | 33 + .../node_modules/es-abstract/2016/MakeTime.js | 23 + .../es-abstract/2016/MinFromTime.js | 16 + .../es-abstract/2016/MonthFromTime.js | 47 + .../es-abstract/2016/ObjectCreate.js | 27 + .../2016/OrdinaryDefineOwnProperty.js | 38 + .../2016/OrdinaryGetOwnProperty.js | 44 + .../2016/OrdinaryGetPrototypeOf.js | 21 + .../es-abstract/2016/OrdinaryHasInstance.js | 25 + .../es-abstract/2016/OrdinaryHasProperty.js | 20 + .../2016/OrdinarySetPrototypeOf.js | 53 + .../es-abstract/2016/RegExpExec.js | 32 + .../2016/RequireObjectCoercible.js | 3 + .../es-abstract/2016/SameValue.js | 13 + .../es-abstract/2016/SameValueNonNumber.js | 16 + .../es-abstract/2016/SameValueZero.js | 9 + .../es-abstract/2016/SecFromTime.js | 16 + .../data/node_modules/es-abstract/2016/Set.js | 32 + .../es-abstract/2016/SetFunctionName.js | 44 + .../es-abstract/2016/SetIntegrityLevel.js | 57 + .../es-abstract/2016/SpeciesConstructor.js | 32 + .../2016/StrictEqualityComparison.js | 17 + .../2016/SymbolDescriptiveString.js | 20 + .../es-abstract/2016/TestIntegrityLevel.js | 42 + .../node_modules/es-abstract/2016/TimeClip.js | 21 + .../es-abstract/2016/TimeFromYear.js | 11 + .../es-abstract/2016/TimeWithinDay.js | 11 + .../es-abstract/2016/ToBoolean.js | 5 + .../es-abstract/2016/ToDateString.js | 22 + .../node_modules/es-abstract/2016/ToInt16.js | 10 + .../node_modules/es-abstract/2016/ToInt32.js | 9 + .../node_modules/es-abstract/2016/ToInt8.js | 10 + .../es-abstract/2016/ToInteger.js | 12 + .../node_modules/es-abstract/2016/ToLength.js | 12 + .../node_modules/es-abstract/2016/ToNumber.js | 59 + .../node_modules/es-abstract/2016/ToObject.js | 14 + .../es-abstract/2016/ToPrimitive.js | 12 + .../es-abstract/2016/ToPropertyDescriptor.js | 52 + .../es-abstract/2016/ToPropertyKey.js | 15 + .../node_modules/es-abstract/2016/ToString.js | 15 + .../node_modules/es-abstract/2016/ToUint16.js | 24 + .../node_modules/es-abstract/2016/ToUint32.js | 9 + .../node_modules/es-abstract/2016/ToUint8.js | 22 + .../es-abstract/2016/ToUint8Clamp.js | 24 + .../node_modules/es-abstract/2016/Type.js | 12 + .../ValidateAndApplyPropertyDescriptor.js | 170 + .../node_modules/es-abstract/2016/WeekDay.js | 11 + .../es-abstract/2016/YearFromTime.js | 16 + .../node_modules/es-abstract/2016/modulo.js | 9 + .../es-abstract/2016/msFromTime.js | 10 + .../es-abstract/2016/thisBooleanValue.js | 15 + .../es-abstract/2016/thisNumberValue.js | 18 + .../es-abstract/2016/thisStringValue.js | 15 + .../es-abstract/2016/thisTimeValue.js | 9 + .../2017/AbstractEqualityComparison.js | 37 + .../2017/AbstractRelationalComparison.js | 66 + .../es-abstract/2017/AdvanceStringIndex.js | 45 + .../es-abstract/2017/ArrayCreate.js | 53 + .../es-abstract/2017/ArraySetLength.js | 85 + .../es-abstract/2017/ArraySpeciesCreate.js | 46 + .../node_modules/es-abstract/2017/Call.js | 19 + .../2017/CanonicalNumericIndexString.js | 22 + .../2017/CompletePropertyDescriptor.js | 39 + .../es-abstract/2017/CreateDataProperty.js | 45 + .../2017/CreateDataPropertyOrThrow.js | 25 + .../es-abstract/2017/CreateHTML.js | 30 + .../2017/CreateIterResultObject.js | 19 + .../2017/CreateListFromArrayLike.js | 43 + .../es-abstract/2017/CreateMethodProperty.js | 40 + .../es-abstract/2017/DateFromTime.js | 54 + .../data/node_modules/es-abstract/2017/Day.js | 13 + .../es-abstract/2017/DayFromYear.js | 12 + .../es-abstract/2017/DayWithinYear.js | 11 + .../es-abstract/2017/DaysInYear.js | 18 + .../es-abstract/2017/DefinePropertyOrThrow.js | 50 + .../es-abstract/2017/DeletePropertyOrThrow.js | 27 + .../2017/EnumerableOwnProperties.js | 43 + .../2017/FromPropertyDescriptor.js | 36 + .../data/node_modules/es-abstract/2017/Get.js | 30 + .../es-abstract/2017/GetIterator.js | 35 + .../es-abstract/2017/GetMethod.js | 42 + .../es-abstract/2017/GetOwnPropertyKeys.js | 31 + .../2017/GetPrototypeFromConstructor.js | 28 + .../es-abstract/2017/GetSubstitution.js | 98 + .../node_modules/es-abstract/2017/GetV.js | 29 + .../es-abstract/2017/HasOwnProperty.js | 22 + .../es-abstract/2017/HasProperty.js | 20 + .../es-abstract/2017/HourFromTime.js | 16 + .../es-abstract/2017/InLeapYear.js | 21 + .../es-abstract/2017/InstanceofOperator.js | 30 + .../node_modules/es-abstract/2017/Invoke.js | 22 + .../es-abstract/2017/IsAccessorDescriptor.js | 23 + .../node_modules/es-abstract/2017/IsArray.js | 14 + .../es-abstract/2017/IsCallable.js | 5 + .../es-abstract/2017/IsConcatSpreadable.js | 25 + .../es-abstract/2017/IsConstructor.js | 7 + .../es-abstract/2017/IsDataDescriptor.js | 23 + .../es-abstract/2017/IsExtensible.js | 20 + .../es-abstract/2017/IsGenericDescriptor.js | 23 + .../es-abstract/2017/IsInteger.js | 21 + .../es-abstract/2017/IsPromise.js | 24 + .../es-abstract/2017/IsPropertyDescriptor.js | 17 + .../es-abstract/2017/IsPropertyKey.js | 7 + .../node_modules/es-abstract/2017/IsRegExp.js | 24 + .../es-abstract/2017/IterableToList.js | 24 + .../es-abstract/2017/IteratorClose.js | 50 + .../es-abstract/2017/IteratorComplete.js | 18 + .../es-abstract/2017/IteratorNext.js | 18 + .../es-abstract/2017/IteratorStep.js | 13 + .../es-abstract/2017/IteratorValue.js | 18 + .../node_modules/es-abstract/2017/MakeDate.js | 13 + .../node_modules/es-abstract/2017/MakeDay.js | 33 + .../node_modules/es-abstract/2017/MakeTime.js | 23 + .../es-abstract/2017/MinFromTime.js | 16 + .../es-abstract/2017/MonthFromTime.js | 47 + .../es-abstract/2017/ObjectCreate.js | 27 + .../2017/OrdinaryDefineOwnProperty.js | 38 + .../2017/OrdinaryGetOwnProperty.js | 44 + .../2017/OrdinaryGetPrototypeOf.js | 21 + .../es-abstract/2017/OrdinaryHasInstance.js | 25 + .../es-abstract/2017/OrdinaryHasProperty.js | 20 + .../2017/OrdinarySetPrototypeOf.js | 53 + .../es-abstract/2017/RegExpExec.js | 32 + .../2017/RequireObjectCoercible.js | 3 + .../es-abstract/2017/SameValue.js | 13 + .../es-abstract/2017/SameValueNonNumber.js | 16 + .../es-abstract/2017/SameValueZero.js | 9 + .../es-abstract/2017/SecFromTime.js | 16 + .../data/node_modules/es-abstract/2017/Set.js | 32 + .../es-abstract/2017/SetFunctionName.js | 44 + .../es-abstract/2017/SetIntegrityLevel.js | 57 + .../es-abstract/2017/SpeciesConstructor.js | 32 + .../2017/StrictEqualityComparison.js | 17 + .../2017/SymbolDescriptiveString.js | 20 + .../es-abstract/2017/TestIntegrityLevel.js | 42 + .../node_modules/es-abstract/2017/TimeClip.js | 21 + .../es-abstract/2017/TimeFromYear.js | 11 + .../es-abstract/2017/TimeWithinDay.js | 11 + .../es-abstract/2017/ToBoolean.js | 5 + .../es-abstract/2017/ToDateString.js | 22 + .../node_modules/es-abstract/2017/ToIndex.js | 26 + .../node_modules/es-abstract/2017/ToInt16.js | 10 + .../node_modules/es-abstract/2017/ToInt32.js | 9 + .../node_modules/es-abstract/2017/ToInt8.js | 10 + .../es-abstract/2017/ToInteger.js | 12 + .../node_modules/es-abstract/2017/ToLength.js | 12 + .../node_modules/es-abstract/2017/ToNumber.js | 59 + .../node_modules/es-abstract/2017/ToObject.js | 14 + .../es-abstract/2017/ToPrimitive.js | 12 + .../es-abstract/2017/ToPropertyDescriptor.js | 52 + .../es-abstract/2017/ToPropertyKey.js | 15 + .../node_modules/es-abstract/2017/ToString.js | 15 + .../node_modules/es-abstract/2017/ToUint16.js | 24 + .../node_modules/es-abstract/2017/ToUint32.js | 9 + .../node_modules/es-abstract/2017/ToUint8.js | 22 + .../es-abstract/2017/ToUint8Clamp.js | 24 + .../node_modules/es-abstract/2017/Type.js | 12 + .../ValidateAndApplyPropertyDescriptor.js | 170 + .../node_modules/es-abstract/2017/WeekDay.js | 11 + .../es-abstract/2017/YearFromTime.js | 16 + .../node_modules/es-abstract/2017/modulo.js | 9 + .../es-abstract/2017/msFromTime.js | 10 + .../es-abstract/2017/thisBooleanValue.js | 15 + .../es-abstract/2017/thisNumberValue.js | 18 + .../es-abstract/2017/thisStringValue.js | 15 + .../es-abstract/2017/thisTimeValue.js | 9 + .../2018/AbstractEqualityComparison.js | 37 + .../2018/AbstractRelationalComparison.js | 66 + .../es-abstract/2018/AdvanceStringIndex.js | 45 + .../es-abstract/2018/ArrayCreate.js | 53 + .../es-abstract/2018/ArraySetLength.js | 85 + .../es-abstract/2018/ArraySpeciesCreate.js | 46 + .../node_modules/es-abstract/2018/Call.js | 19 + .../2018/CanonicalNumericIndexString.js | 22 + .../2018/CompletePropertyDescriptor.js | 39 + .../es-abstract/2018/CopyDataProperties.js | 76 + .../es-abstract/2018/CreateDataProperty.js | 45 + .../2018/CreateDataPropertyOrThrow.js | 25 + .../es-abstract/2018/CreateHTML.js | 30 + .../2018/CreateIterResultObject.js | 19 + .../2018/CreateListFromArrayLike.js | 43 + .../es-abstract/2018/CreateMethodProperty.js | 40 + .../es-abstract/2018/DateFromTime.js | 54 + .../es-abstract/2018/DateString.js | 30 + .../data/node_modules/es-abstract/2018/Day.js | 13 + .../es-abstract/2018/DayFromYear.js | 12 + .../es-abstract/2018/DayWithinYear.js | 11 + .../es-abstract/2018/DaysInYear.js | 18 + .../es-abstract/2018/DefinePropertyOrThrow.js | 50 + .../es-abstract/2018/DeletePropertyOrThrow.js | 27 + .../2018/EnumerableOwnPropertyNames.js | 43 + .../2018/FromPropertyDescriptor.js | 36 + .../data/node_modules/es-abstract/2018/Get.js | 30 + .../es-abstract/2018/GetIterator.js | 35 + .../es-abstract/2018/GetMethod.js | 42 + .../es-abstract/2018/GetOwnPropertyKeys.js | 31 + .../2018/GetPrototypeFromConstructor.js | 28 + .../es-abstract/2018/GetSubstitution.js | 123 + .../node_modules/es-abstract/2018/GetV.js | 29 + .../es-abstract/2018/HasOwnProperty.js | 22 + .../es-abstract/2018/HasProperty.js | 20 + .../es-abstract/2018/HourFromTime.js | 16 + .../es-abstract/2018/InLeapYear.js | 21 + .../es-abstract/2018/InstanceofOperator.js | 30 + .../node_modules/es-abstract/2018/Invoke.js | 22 + .../es-abstract/2018/IsAccessorDescriptor.js | 23 + .../node_modules/es-abstract/2018/IsArray.js | 14 + .../es-abstract/2018/IsCallable.js | 5 + .../es-abstract/2018/IsConcatSpreadable.js | 25 + .../es-abstract/2018/IsConstructor.js | 7 + .../es-abstract/2018/IsDataDescriptor.js | 23 + .../es-abstract/2018/IsExtensible.js | 20 + .../es-abstract/2018/IsGenericDescriptor.js | 23 + .../es-abstract/2018/IsInteger.js | 21 + .../es-abstract/2018/IsPromise.js | 24 + .../es-abstract/2018/IsPropertyKey.js | 7 + .../node_modules/es-abstract/2018/IsRegExp.js | 24 + .../es-abstract/2018/IsStringPrefix.js | 47 + .../es-abstract/2018/IterableToList.js | 24 + .../es-abstract/2018/IteratorClose.js | 50 + .../es-abstract/2018/IteratorComplete.js | 18 + .../es-abstract/2018/IteratorNext.js | 18 + .../es-abstract/2018/IteratorStep.js | 13 + .../es-abstract/2018/IteratorValue.js | 18 + .../node_modules/es-abstract/2018/MakeDate.js | 13 + .../node_modules/es-abstract/2018/MakeDay.js | 33 + .../node_modules/es-abstract/2018/MakeTime.js | 23 + .../es-abstract/2018/MinFromTime.js | 16 + .../es-abstract/2018/MonthFromTime.js | 47 + .../es-abstract/2018/NumberToString.js | 18 + .../es-abstract/2018/ObjectCreate.js | 27 + .../2018/OrdinaryDefineOwnProperty.js | 38 + .../2018/OrdinaryGetOwnProperty.js | 44 + .../2018/OrdinaryGetPrototypeOf.js | 21 + .../es-abstract/2018/OrdinaryHasInstance.js | 25 + .../es-abstract/2018/OrdinaryHasProperty.js | 20 + .../2018/OrdinarySetPrototypeOf.js | 53 + .../es-abstract/2018/PromiseResolve.js | 15 + .../es-abstract/2018/RegExpExec.js | 32 + .../2018/RequireObjectCoercible.js | 3 + .../es-abstract/2018/SameValue.js | 13 + .../es-abstract/2018/SameValueNonNumber.js | 16 + .../es-abstract/2018/SameValueZero.js | 9 + .../es-abstract/2018/SecFromTime.js | 16 + .../data/node_modules/es-abstract/2018/Set.js | 32 + .../es-abstract/2018/SetFunctionName.js | 44 + .../es-abstract/2018/SetIntegrityLevel.js | 57 + .../es-abstract/2018/SpeciesConstructor.js | 32 + .../2018/StrictEqualityComparison.js | 17 + .../2018/SymbolDescriptiveString.js | 20 + .../es-abstract/2018/TestIntegrityLevel.js | 42 + .../node_modules/es-abstract/2018/TimeClip.js | 21 + .../es-abstract/2018/TimeFromYear.js | 11 + .../es-abstract/2018/TimeString.js | 25 + .../es-abstract/2018/TimeWithinDay.js | 11 + .../es-abstract/2018/ToBoolean.js | 5 + .../es-abstract/2018/ToDateString.js | 22 + .../node_modules/es-abstract/2018/ToIndex.js | 26 + .../node_modules/es-abstract/2018/ToInt16.js | 10 + .../node_modules/es-abstract/2018/ToInt32.js | 9 + .../node_modules/es-abstract/2018/ToInt8.js | 10 + .../es-abstract/2018/ToInteger.js | 12 + .../node_modules/es-abstract/2018/ToLength.js | 12 + .../node_modules/es-abstract/2018/ToNumber.js | 59 + .../node_modules/es-abstract/2018/ToObject.js | 14 + .../es-abstract/2018/ToPrimitive.js | 12 + .../es-abstract/2018/ToPropertyDescriptor.js | 52 + .../es-abstract/2018/ToPropertyKey.js | 15 + .../node_modules/es-abstract/2018/ToString.js | 15 + .../node_modules/es-abstract/2018/ToUint16.js | 24 + .../node_modules/es-abstract/2018/ToUint32.js | 9 + .../node_modules/es-abstract/2018/ToUint8.js | 22 + .../es-abstract/2018/ToUint8Clamp.js | 24 + .../node_modules/es-abstract/2018/Type.js | 12 + .../ValidateAndApplyPropertyDescriptor.js | 170 + .../node_modules/es-abstract/2018/WeekDay.js | 11 + .../es-abstract/2018/YearFromTime.js | 16 + .../node_modules/es-abstract/2018/modulo.js | 9 + .../es-abstract/2018/msFromTime.js | 10 + .../es-abstract/2018/thisBooleanValue.js | 15 + .../es-abstract/2018/thisNumberValue.js | 18 + .../es-abstract/2018/thisStringValue.js | 15 + .../es-abstract/2018/thisSymbolValue.js | 19 + .../es-abstract/2018/thisTimeValue.js | 9 + .../2019/AbstractEqualityComparison.js | 37 + .../2019/AbstractRelationalComparison.js | 66 + .../2019/AddEntriesFromIterable.js | 52 + .../es-abstract/2019/AdvanceStringIndex.js | 45 + .../es-abstract/2019/ArrayCreate.js | 53 + .../es-abstract/2019/ArraySetLength.js | 85 + .../es-abstract/2019/ArraySpeciesCreate.js | 46 + .../node_modules/es-abstract/2019/Call.js | 19 + .../2019/CanonicalNumericIndexString.js | 22 + .../2019/CompletePropertyDescriptor.js | 39 + .../es-abstract/2019/CopyDataProperties.js | 76 + .../es-abstract/2019/CreateDataProperty.js | 45 + .../2019/CreateDataPropertyOrThrow.js | 25 + .../es-abstract/2019/CreateHTML.js | 30 + .../2019/CreateIterResultObject.js | 19 + .../2019/CreateListFromArrayLike.js | 43 + .../es-abstract/2019/CreateMethodProperty.js | 40 + .../es-abstract/2019/DateFromTime.js | 54 + .../es-abstract/2019/DateString.js | 30 + .../data/node_modules/es-abstract/2019/Day.js | 13 + .../es-abstract/2019/DayFromYear.js | 12 + .../es-abstract/2019/DayWithinYear.js | 11 + .../es-abstract/2019/DaysInYear.js | 18 + .../es-abstract/2019/DefinePropertyOrThrow.js | 50 + .../es-abstract/2019/DeletePropertyOrThrow.js | 27 + .../2019/EnumerableOwnPropertyNames.js | 43 + .../es-abstract/2019/FlattenIntoArray.js | 58 + .../2019/FromPropertyDescriptor.js | 36 + .../data/node_modules/es-abstract/2019/Get.js | 30 + .../es-abstract/2019/GetIterator.js | 35 + .../es-abstract/2019/GetMethod.js | 42 + .../es-abstract/2019/GetOwnPropertyKeys.js | 31 + .../2019/GetPrototypeFromConstructor.js | 28 + .../es-abstract/2019/GetSubstitution.js | 123 + .../node_modules/es-abstract/2019/GetV.js | 29 + .../es-abstract/2019/HasOwnProperty.js | 22 + .../es-abstract/2019/HasProperty.js | 20 + .../es-abstract/2019/HourFromTime.js | 16 + .../es-abstract/2019/InLeapYear.js | 21 + .../es-abstract/2019/InstanceofOperator.js | 30 + .../node_modules/es-abstract/2019/Invoke.js | 22 + .../es-abstract/2019/IsAccessorDescriptor.js | 23 + .../node_modules/es-abstract/2019/IsArray.js | 14 + .../es-abstract/2019/IsCallable.js | 5 + .../es-abstract/2019/IsConcatSpreadable.js | 25 + .../es-abstract/2019/IsConstructor.js | 7 + .../es-abstract/2019/IsDataDescriptor.js | 23 + .../es-abstract/2019/IsExtensible.js | 20 + .../es-abstract/2019/IsGenericDescriptor.js | 23 + .../es-abstract/2019/IsInteger.js | 21 + .../es-abstract/2019/IsPromise.js | 24 + .../es-abstract/2019/IsPropertyKey.js | 7 + .../node_modules/es-abstract/2019/IsRegExp.js | 24 + .../es-abstract/2019/IsStringPrefix.js | 47 + .../es-abstract/2019/IterableToList.js | 24 + .../es-abstract/2019/IteratorClose.js | 50 + .../es-abstract/2019/IteratorComplete.js | 18 + .../es-abstract/2019/IteratorNext.js | 18 + .../es-abstract/2019/IteratorStep.js | 13 + .../es-abstract/2019/IteratorValue.js | 18 + .../node_modules/es-abstract/2019/MakeDate.js | 13 + .../node_modules/es-abstract/2019/MakeDay.js | 33 + .../node_modules/es-abstract/2019/MakeTime.js | 23 + .../es-abstract/2019/MinFromTime.js | 16 + .../es-abstract/2019/MonthFromTime.js | 47 + .../es-abstract/2019/NumberToString.js | 18 + .../es-abstract/2019/ObjectCreate.js | 27 + .../2019/OrdinaryDefineOwnProperty.js | 38 + .../2019/OrdinaryGetOwnProperty.js | 44 + .../2019/OrdinaryGetPrototypeOf.js | 21 + .../es-abstract/2019/OrdinaryHasInstance.js | 25 + .../es-abstract/2019/OrdinaryHasProperty.js | 20 + .../2019/OrdinarySetPrototypeOf.js | 53 + .../es-abstract/2019/PromiseResolve.js | 15 + .../es-abstract/2019/RegExpExec.js | 32 + .../2019/RequireObjectCoercible.js | 3 + .../es-abstract/2019/SameValue.js | 13 + .../es-abstract/2019/SameValueNonNumber.js | 16 + .../es-abstract/2019/SameValueZero.js | 9 + .../es-abstract/2019/SecFromTime.js | 16 + .../data/node_modules/es-abstract/2019/Set.js | 32 + .../es-abstract/2019/SetFunctionName.js | 44 + .../es-abstract/2019/SetIntegrityLevel.js | 57 + .../es-abstract/2019/SpeciesConstructor.js | 32 + .../2019/StrictEqualityComparison.js | 17 + .../2019/SymbolDescriptiveString.js | 20 + .../es-abstract/2019/TestIntegrityLevel.js | 42 + .../node_modules/es-abstract/2019/TimeClip.js | 21 + .../es-abstract/2019/TimeFromYear.js | 11 + .../es-abstract/2019/TimeString.js | 25 + .../es-abstract/2019/TimeWithinDay.js | 11 + .../es-abstract/2019/ToBoolean.js | 5 + .../es-abstract/2019/ToDateString.js | 22 + .../node_modules/es-abstract/2019/ToIndex.js | 26 + .../node_modules/es-abstract/2019/ToInt16.js | 10 + .../node_modules/es-abstract/2019/ToInt32.js | 9 + .../node_modules/es-abstract/2019/ToInt8.js | 10 + .../es-abstract/2019/ToInteger.js | 12 + .../node_modules/es-abstract/2019/ToLength.js | 12 + .../node_modules/es-abstract/2019/ToNumber.js | 59 + .../node_modules/es-abstract/2019/ToObject.js | 14 + .../es-abstract/2019/ToPrimitive.js | 12 + .../es-abstract/2019/ToPropertyDescriptor.js | 52 + .../es-abstract/2019/ToPropertyKey.js | 15 + .../node_modules/es-abstract/2019/ToString.js | 15 + .../node_modules/es-abstract/2019/ToUint16.js | 24 + .../node_modules/es-abstract/2019/ToUint32.js | 9 + .../node_modules/es-abstract/2019/ToUint8.js | 22 + .../es-abstract/2019/ToUint8Clamp.js | 24 + .../es-abstract/2019/TrimString.js | 29 + .../node_modules/es-abstract/2019/Type.js | 12 + .../ValidateAndApplyPropertyDescriptor.js | 170 + .../node_modules/es-abstract/2019/WeekDay.js | 11 + .../es-abstract/2019/YearFromTime.js | 16 + .../node_modules/es-abstract/2019/modulo.js | 9 + .../es-abstract/2019/msFromTime.js | 10 + .../es-abstract/2019/thisBooleanValue.js | 15 + .../es-abstract/2019/thisNumberValue.js | 18 + .../es-abstract/2019/thisStringValue.js | 15 + .../es-abstract/2019/thisSymbolValue.js | 19 + .../es-abstract/2019/thisTimeValue.js | 3 + .../5/AbstractEqualityComparison.js | 37 + .../5/AbstractRelationalComparison.js | 66 + .../es-abstract/5/CheckObjectCoercible.js | 14 + .../es-abstract/5/DateFromTime.js | 54 + .../data/node_modules/es-abstract/5/Day.js | 13 + .../node_modules/es-abstract/5/DayFromYear.js | 12 + .../es-abstract/5/DayWithinYear.js | 11 + .../node_modules/es-abstract/5/DaysInYear.js | 18 + .../es-abstract/5/FromPropertyDescriptor.js | 39 + .../es-abstract/5/HourFromTime.js | 16 + .../node_modules/es-abstract/5/InLeapYear.js | 21 + .../es-abstract/5/IsAccessorDescriptor.js | 23 + .../node_modules/es-abstract/5/IsCallable.js | 5 + .../es-abstract/5/IsDataDescriptor.js | 23 + .../es-abstract/5/IsGenericDescriptor.js | 23 + .../es-abstract/5/IsPropertyDescriptor.js | 17 + .../node_modules/es-abstract/5/MakeDate.js | 13 + .../node_modules/es-abstract/5/MakeDay.js | 33 + .../node_modules/es-abstract/5/MakeTime.js | 23 + .../node_modules/es-abstract/5/MinFromTime.js | 16 + .../es-abstract/5/MonthFromTime.js | 47 + .../node_modules/es-abstract/5/SameValue.js | 13 + .../node_modules/es-abstract/5/SecFromTime.js | 16 + .../es-abstract/5/StrictEqualityComparison.js | 17 + .../node_modules/es-abstract/5/TimeClip.js | 21 + .../es-abstract/5/TimeFromYear.js | 11 + .../es-abstract/5/TimeWithinDay.js | 11 + .../node_modules/es-abstract/5/ToBoolean.js | 5 + .../node_modules/es-abstract/5/ToInt32.js | 9 + .../node_modules/es-abstract/5/ToInteger.js | 22 + .../node_modules/es-abstract/5/ToNumber.js | 7 + .../node_modules/es-abstract/5/ToObject.js | 14 + .../node_modules/es-abstract/5/ToPrimitive.js | 5 + .../es-abstract/5/ToPropertyDescriptor.js | 52 + .../node_modules/es-abstract/5/ToString.js | 12 + .../node_modules/es-abstract/5/ToUint16.js | 24 + .../node_modules/es-abstract/5/ToUint32.js | 9 + .../data/node_modules/es-abstract/5/Type.js | 24 + .../node_modules/es-abstract/5/WeekDay.js | 11 + .../es-abstract/5/YearFromTime.js | 16 + .../data/node_modules/es-abstract/5/modulo.js | 9 + .../node_modules/es-abstract/5/msFromTime.js | 10 + .../node_modules/es-abstract/CHANGELOG.md | 307 + .../node_modules/es-abstract/GetIntrinsic.js | 215 + .../data/node_modules/es-abstract/LICENSE | 21 + .../data/node_modules/es-abstract/README.md | 48 + .../data/node_modules/es-abstract/es2015.js | 115 + .../data/node_modules/es-abstract/es2016.js | 119 + .../data/node_modules/es-abstract/es2017.js | 120 + .../data/node_modules/es-abstract/es2018.js | 126 + .../data/node_modules/es-abstract/es2019.js | 129 + .../data/node_modules/es-abstract/es5.js | 49 + .../data/node_modules/es-abstract/es6.js | 3 + .../data/node_modules/es-abstract/es7.js | 3 + .../es-abstract/helpers/DefineOwnProperty.js | 36 + .../es-abstract/helpers/assertRecord.js | 48 + .../es-abstract/helpers/assign.js | 22 + .../es-abstract/helpers/callBind.js | 17 + .../es-abstract/helpers/callBound.js | 15 + .../node_modules/es-abstract/helpers/every.js | 10 + .../es-abstract/helpers/forEach.js | 7 + .../es-abstract/helpers/getInferredName.js | 10 + .../es-abstract/helpers/getIteratorMethod.js | 45 + .../es-abstract/helpers/getProto.js | 15 + .../helpers/getSymbolDescription.js | 30 + .../es-abstract/helpers/isFinite.js | 5 + .../node_modules/es-abstract/helpers/isNaN.js | 5 + .../es-abstract/helpers/isPrefixOf.js | 13 + .../es-abstract/helpers/isPrimitive.js | 5 + .../helpers/isPropertyDescriptor.js | 31 + .../helpers/isSamePropertyDescriptor.js | 20 + .../es-abstract/helpers/maxSafeInteger.js | 8 + .../node_modules/es-abstract/helpers/mod.js | 6 + .../es-abstract/helpers/padTimeComponent.js | 9 + .../es-abstract/helpers/regexTester.js | 11 + .../es-abstract/helpers/setProto.js | 16 + .../node_modules/es-abstract/helpers/sign.js | 5 + .../es-abstract/helpers/timeConstants.js | 19 + .../data/node_modules/es-abstract/index.js | 26 + .../es-abstract/operations/.eslintrc | 5 + .../es-abstract/operations/2015.js | 117 + .../es-abstract/operations/2016.js | 276 + .../es-abstract/operations/2017.js | 324 + .../es-abstract/operations/2018.js | 350 + .../es-abstract/operations/2019.js | 355 + .../node_modules/es-abstract/package.json | 135 + .../es-abstract/test/GetIntrinsic.js | 94 + .../node_modules/es-abstract/test/diffOps.js | 26 + .../node_modules/es-abstract/test/es2015.js | 11 + .../node_modules/es-abstract/test/es2016.js | 11 + .../node_modules/es-abstract/test/es2017.js | 11 + .../node_modules/es-abstract/test/es2018.js | 11 + .../node_modules/es-abstract/test/es2019.js | 11 + .../data/node_modules/es-abstract/test/es5.js | 784 + .../data/node_modules/es-abstract/test/es6.js | 18 + .../data/node_modules/es-abstract/test/es7.js | 18 + .../es-abstract/test/helpers/assertRecord.js | 60 + .../test/helpers/getSymbolDescription.js | 50 + .../test/helpers/runManifestTest.js | 27 + .../es-abstract/test/helpers/values.js | 121 + .../node_modules/es-abstract/test/index.js | 30 + .../node_modules/es-abstract/test/tests.js | 4074 ++ .../node_modules/es-to-primitive/.eslintrc | 22 + .../es-to-primitive/.github/FUNDING.yml | 12 + .../node_modules/es-to-primitive/.travis.yml | 15 + .../node_modules/es-to-primitive/CHANGELOG.md | 49 + .../data/node_modules/es-to-primitive/LICENSE | 22 + .../node_modules/es-to-primitive/Makefile | 61 + .../node_modules/es-to-primitive/README.md | 49 + .../node_modules/es-to-primitive/es2015.js | 75 + .../data/node_modules/es-to-primitive/es5.js | 45 + .../data/node_modules/es-to-primitive/es6.js | 3 + .../es-to-primitive/helpers/isPrimitive.js | 5 + .../node_modules/es-to-primitive/index.js | 17 + .../node_modules/es-to-primitive/package.json | 113 + .../es-to-primitive/test/es2015.js | 151 + .../node_modules/es-to-primitive/test/es5.js | 118 + .../node_modules/es-to-primitive/test/es6.js | 151 + .../es-to-primitive/test/index.js | 20 + .../data/node_modules/escape-html/LICENSE | 24 + .../data/node_modules/escape-html/Readme.md | 43 + .../data/node_modules/escape-html/index.js | 78 + .../node_modules/escape-html/package.json | 57 + .../rootfs/data/node_modules/etag/HISTORY.md | 83 + nodered/rootfs/data/node_modules/etag/LICENSE | 22 + .../rootfs/data/node_modules/etag/README.md | 159 + .../rootfs/data/node_modules/etag/index.js | 131 + .../data/node_modules/etag/package.json | 85 + .../data/node_modules/eventemitter3/LICENSE | 21 + .../data/node_modules/eventemitter3/README.md | 92 + .../node_modules/eventemitter3/index.d.ts | 64 + .../data/node_modules/eventemitter3/index.js | 336 + .../node_modules/eventemitter3/package.json | 84 + .../eventemitter3/umd/eventemitter3.js | 340 + .../eventemitter3/umd/eventemitter3.min.js | 1 + .../umd/eventemitter3.min.js.map | 1 + .../rootfs/data/node_modules/execa/index.js | 361 + .../data/node_modules/execa/lib/errname.js | 39 + .../data/node_modules/execa/lib/stdio.js | 41 + .../rootfs/data/node_modules/execa/license | 9 + .../data/node_modules/execa/package.json | 101 + .../rootfs/data/node_modules/execa/readme.md | 327 + .../data/node_modules/extend/.editorconfig | 20 + .../rootfs/data/node_modules/extend/.eslintrc | 17 + .../data/node_modules/extend/.jscs.json | 175 + .../data/node_modules/extend/.travis.yml | 230 + .../data/node_modules/extend/CHANGELOG.md | 83 + .../rootfs/data/node_modules/extend/LICENSE | 23 + .../rootfs/data/node_modules/extend/README.md | 81 + .../data/node_modules/extend/component.json | 32 + .../rootfs/data/node_modules/extend/index.js | 117 + .../data/node_modules/extend/package.json | 75 + .../data/node_modules/extsprintf/.gitmodules | 0 .../data/node_modules/extsprintf/.npmignore | 2 + .../data/node_modules/extsprintf/LICENSE | 19 + .../data/node_modules/extsprintf/Makefile | 24 + .../node_modules/extsprintf/Makefile.targ | 285 + .../data/node_modules/extsprintf/README.md | 46 + .../node_modules/extsprintf/jsl.node.conf | 137 + .../node_modules/extsprintf/lib/extsprintf.js | 183 + .../data/node_modules/extsprintf/package.json | 44 + .../data/node_modules/fast-deep-equal/LICENSE | 21 + .../node_modules/fast-deep-equal/README.md | 58 + .../node_modules/fast-deep-equal/index.d.ts | 4 + .../node_modules/fast-deep-equal/index.js | 55 + .../node_modules/fast-deep-equal/package.json | 86 + .../fast-json-stable-stringify/.eslintrc.yml | 26 + .../.github/FUNDING.yml | 1 + .../fast-json-stable-stringify/.travis.yml | 8 + .../fast-json-stable-stringify/LICENSE | 21 + .../fast-json-stable-stringify/README.md | 131 + .../benchmark/index.js | 31 + .../benchmark/test.json | 137 + .../example/key_cmp.js | 7 + .../example/nested.js | 3 + .../fast-json-stable-stringify/example/str.js | 3 + .../example/value_cmp.js | 7 + .../fast-json-stable-stringify/index.d.ts | 4 + .../fast-json-stable-stringify/index.js | 59 + .../fast-json-stable-stringify/package.json | 80 + .../fast-json-stable-stringify/test/cmp.js | 13 + .../fast-json-stable-stringify/test/nested.js | 44 + .../fast-json-stable-stringify/test/str.js | 46 + .../test/to-json.js | 22 + .../data/node_modules/file-type/index.js | 452 + .../data/node_modules/file-type/license | 21 + .../data/node_modules/file-type/package.json | 135 + .../data/node_modules/file-type/readme.md | 149 + .../data/node_modules/forever-agent/LICENSE | 55 + .../data/node_modules/forever-agent/README.md | 4 + .../data/node_modules/forever-agent/index.js | 138 + .../node_modules/forever-agent/package.json | 50 + .../data/node_modules/form-data/License | 19 + .../data/node_modules/form-data/README.md | 234 + .../data/node_modules/form-data/README.md.bak | 234 + .../node_modules/form-data/lib/browser.js | 2 + .../node_modules/form-data/lib/form_data.js | 457 + .../node_modules/form-data/lib/populate.js | 10 + .../data/node_modules/form-data/package.json | 98 + .../data/node_modules/form-data/yarn.lock | 2662 + .../fraction.js/.idea/Fraction.js.iml | 9 + .../node_modules/fraction.js/.idea/misc.xml | 4 + .../fraction.js/.idea/modules.xml | 8 + .../node_modules/fraction.js/.idea/vcs.xml | 6 + .../fraction.js/.idea/workspace.xml | 373 + .../data/node_modules/fraction.js/.travis.yml | 4 + .../data/node_modules/fraction.js/README.md | 489 + .../data/node_modules/fraction.js/bower.json | 31 + .../fraction.js/examples/approx.js | 53 + .../fraction.js/examples/egyptian.js | 23 + .../fraction.js/examples/hesse-convergence.js | 112 + .../fraction.js/examples/integrate.js | 68 + .../data/node_modules/fraction.js/fraction.js | 797 + .../node_modules/fraction.js/fraction.min.js | 17 + .../node_modules/fraction.js/package.json | 68 + .../fraction.js/tests/fraction.test.js | 1448 + .../rootfs/data/node_modules/fresh/HISTORY.md | 70 + .../rootfs/data/node_modules/fresh/LICENSE | 23 + .../rootfs/data/node_modules/fresh/README.md | 119 + .../rootfs/data/node_modules/fresh/index.js | 137 + .../data/node_modules/fresh/package.json | 89 + .../node_modules/function-bind/.editorconfig | 20 + .../data/node_modules/function-bind/.eslintrc | 15 + .../node_modules/function-bind/.jscs.json | 176 + .../node_modules/function-bind/.npmignore | 22 + .../node_modules/function-bind/.travis.yml | 168 + .../data/node_modules/function-bind/LICENSE | 20 + .../data/node_modules/function-bind/README.md | 48 + .../function-bind/implementation.js | 52 + .../data/node_modules/function-bind/index.js | 5 + .../node_modules/function-bind/package.json | 98 + .../node_modules/function-bind/test/.eslintrc | 9 + .../node_modules/function-bind/test/index.js | 252 + .../node_modules/get-stream/buffer-stream.js | 51 + .../data/node_modules/get-stream/index.js | 50 + .../data/node_modules/get-stream/license | 9 + .../data/node_modules/get-stream/package.json | 78 + .../data/node_modules/get-stream/readme.md | 123 + .../data/node_modules/getpass/.npmignore | 8 + .../data/node_modules/getpass/.travis.yml | 9 + .../rootfs/data/node_modules/getpass/LICENSE | 18 + .../data/node_modules/getpass/README.md | 32 + .../data/node_modules/getpass/lib/index.js | 123 + .../data/node_modules/getpass/package.json | 50 + .../data/node_modules/har-schema/LICENSE | 13 + .../data/node_modules/har-schema/README.md | 49 + .../har-schema/lib/afterRequest.json | 30 + .../har-schema/lib/beforeRequest.json | 30 + .../node_modules/har-schema/lib/browser.json | 20 + .../node_modules/har-schema/lib/cache.json | 21 + .../node_modules/har-schema/lib/content.json | 29 + .../node_modules/har-schema/lib/cookie.json | 36 + .../node_modules/har-schema/lib/creator.json | 20 + .../node_modules/har-schema/lib/entry.json | 53 + .../data/node_modules/har-schema/lib/har.json | 13 + .../node_modules/har-schema/lib/header.json | 20 + .../data/node_modules/har-schema/lib/index.js | 22 + .../data/node_modules/har-schema/lib/log.json | 36 + .../node_modules/har-schema/lib/page.json | 32 + .../har-schema/lib/pageTimings.json | 18 + .../node_modules/har-schema/lib/postData.json | 43 + .../node_modules/har-schema/lib/query.json | 20 + .../node_modules/har-schema/lib/request.json | 57 + .../node_modules/har-schema/lib/response.json | 54 + .../node_modules/har-schema/lib/timings.json | 42 + .../data/node_modules/har-schema/package.json | 86 + .../data/node_modules/har-validator/LICENSE | 9 + .../data/node_modules/har-validator/README.md | 37 + .../node_modules/har-validator/lib/async.js | 105 + .../node_modules/har-validator/lib/error.js | 17 + .../node_modules/har-validator/lib/promise.js | 102 + .../node_modules/har-validator/package.json | 76 + .../data/node_modules/has-binary2/History.md | 57 + .../data/node_modules/has-binary2/LICENSE | 20 + .../data/node_modules/has-binary2/README.md | 4 + .../data/node_modules/has-binary2/index.js | 64 + .../node_modules/has-binary2/package.json | 51 + .../data/node_modules/has-cors/.npmignore | 3 + .../data/node_modules/has-cors/History.md | 21 + .../data/node_modules/has-cors/Makefile | 11 + .../data/node_modules/has-cors/Readme.md | 24 + .../data/node_modules/has-cors/component.json | 13 + .../data/node_modules/has-cors/index.js | 17 + .../data/node_modules/has-cors/package.json | 66 + .../rootfs/data/node_modules/has-cors/test.js | 24 + .../data/node_modules/has-symbols/.eslintrc | 11 + .../has-symbols/.github/FUNDING.yml | 12 + .../has-symbols/.github/workflows/rebase.yml | 15 + .../data/node_modules/has-symbols/.travis.yml | 12 + .../node_modules/has-symbols/CHANGELOG.md | 34 + .../data/node_modules/has-symbols/LICENSE | 21 + .../data/node_modules/has-symbols/README.md | 45 + .../data/node_modules/has-symbols/index.js | 13 + .../node_modules/has-symbols/package.json | 120 + .../data/node_modules/has-symbols/shams.js | 42 + .../node_modules/has-symbols/test/index.js | 22 + .../has-symbols/test/shams/core-js.js | 28 + .../test/shams/get-own-property-symbols.js | 28 + .../node_modules/has-symbols/test/tests.js | 54 + .../rootfs/data/node_modules/has/LICENSE-MIT | 22 + .../rootfs/data/node_modules/has/README.md | 18 + .../rootfs/data/node_modules/has/package.json | 74 + .../rootfs/data/node_modules/has/src/index.js | 5 + .../data/node_modules/has/test/index.js | 10 + .../data/node_modules/he/LICENSE-MIT.txt | 20 + nodered/rootfs/data/node_modules/he/README.md | 379 + nodered/rootfs/data/node_modules/he/bin/he | 148 + nodered/rootfs/data/node_modules/he/he.js | 345 + nodered/rootfs/data/node_modules/he/man/he.1 | 78 + .../rootfs/data/node_modules/he/package.json | 91 + .../html-to-text/.codeclimate.yml | 15 + .../node_modules/html-to-text/.eslintignore | 3 + .../node_modules/html-to-text/.eslintrc.yml | 209 + .../node_modules/html-to-text/.travis.yml | 14 + .../node_modules/html-to-text/CHANGELOG.md | 122 + .../node_modules/html-to-text/LICENSE-MIT | 24 + .../data/node_modules/html-to-text/README.md | 319 + .../data/node_modules/html-to-text/bin/cli.js | 46 + .../html-to-text/example/html-to-text.js | 18 + .../html-to-text/example/test.html | 146 + .../data/node_modules/html-to-text/index.js | 1 + .../html-to-text/lib/formatter.js | 268 + .../node_modules/html-to-text/lib/helper.js | 139 + .../html-to-text/lib/html-to-text.js | 188 + .../node_modules/minimist/.travis.yml | 8 + .../node_modules/minimist/LICENSE | 18 + .../node_modules/minimist/example/parse.js | 2 + .../node_modules/minimist/index.js | 236 + .../node_modules/minimist/package.json | 73 + .../node_modules/minimist/readme.markdown | 91 + .../node_modules/minimist/test/all_bool.js | 32 + .../node_modules/minimist/test/bool.js | 166 + .../node_modules/minimist/test/dash.js | 31 + .../minimist/test/default_bool.js | 35 + .../node_modules/minimist/test/dotted.js | 22 + .../node_modules/minimist/test/kv_short.js | 16 + .../node_modules/minimist/test/long.js | 31 + .../node_modules/minimist/test/num.js | 36 + .../node_modules/minimist/test/parse.js | 197 + .../minimist/test/parse_modified.js | 9 + .../node_modules/minimist/test/short.js | 67 + .../node_modules/minimist/test/stop_early.js | 15 + .../node_modules/minimist/test/unknown.js | 102 + .../node_modules/minimist/test/whitespace.js | 8 + .../node_modules/html-to-text/package.json | 76 + .../html-to-text/test/html-to-text.js | 588 + .../html-to-text/test/test-address-dup.txt | 11 + .../html-to-text/test/test-address.txt | 5 + .../html-to-text/test/test-any-order.txt | 18 + .../html-to-text/test/test-cli.js | 98 + .../html-to-text/test/test-first-element.txt | 6 + .../node_modules/html-to-text/test/test.html | 136 + .../node_modules/html-to-text/test/test.txt | 61 + .../data/node_modules/htmlparser2/LICENSE | 18 + .../data/node_modules/htmlparser2/README.md | 91 + .../htmlparser2/lib/CollectingHandler.js | 57 + .../htmlparser2/lib/FeedHandler.js | 114 + .../node_modules/htmlparser2/lib/Parser.js | 382 + .../htmlparser2/lib/ProxyHandler.js | 27 + .../node_modules/htmlparser2/lib/Stream.js | 35 + .../node_modules/htmlparser2/lib/Tokenizer.js | 970 + .../htmlparser2/lib/WritableStream.js | 25 + .../node_modules/htmlparser2/lib/index.js | 72 + .../readable-stream/CONTRIBUTING.md | 38 + .../readable-stream/GOVERNANCE.md | 136 + .../node_modules/readable-stream/LICENSE | 47 + .../node_modules/readable-stream/README.md | 111 + .../readable-stream/errors-browser.js | 127 + .../node_modules/readable-stream/errors.js | 116 + .../readable-stream/experimentalWarning.js | 17 + .../readable-stream/lib/_stream_duplex.js | 139 + .../lib/_stream_passthrough.js | 39 + .../readable-stream/lib/_stream_readable.js | 1087 + .../readable-stream/lib/_stream_transform.js | 201 + .../readable-stream/lib/_stream_writable.js | 683 + .../lib/internal/streams/async_iterator.js | 207 + .../lib/internal/streams/buffer_list.js | 189 + .../lib/internal/streams/destroy.js | 85 + .../lib/internal/streams/end-of-stream.js | 104 + .../lib/internal/streams/pipeline.js | 97 + .../lib/internal/streams/state.js | 27 + .../lib/internal/streams/stream-browser.js | 1 + .../lib/internal/streams/stream.js | 1 + .../node_modules/inherits/LICENSE | 16 + .../node_modules/inherits/README.md | 42 + .../node_modules/inherits/inherits.js | 9 + .../node_modules/inherits/inherits_browser.js | 27 + .../node_modules/inherits/package.json | 61 + .../node_modules/readable-stream/package.json | 95 + .../readable-stream/readable-browser.js | 9 + .../node_modules/readable-stream/readable.js | 16 + .../node_modules/htmlparser2/package.json | 90 + .../data/node_modules/http-errors/HISTORY.md | 154 + .../data/node_modules/http-errors/LICENSE | 23 + .../data/node_modules/http-errors/README.md | 163 + .../data/node_modules/http-errors/index.js | 266 + .../http-errors/node_modules/inherits/LICENSE | 16 + .../node_modules/inherits/README.md | 42 + .../node_modules/inherits/inherits.js | 9 + .../node_modules/inherits/inherits_browser.js | 27 + .../node_modules/inherits/package.json | 61 + .../node_modules/http-errors/package.json | 91 + .../http-signature/.dir-locals.el | 6 + .../node_modules/http-signature/.npmignore | 7 + .../node_modules/http-signature/CHANGES.md | 46 + .../data/node_modules/http-signature/LICENSE | 18 + .../node_modules/http-signature/README.md | 79 + .../http-signature/http_signing.md | 363 + .../node_modules/http-signature/lib/index.js | 29 + .../node_modules/http-signature/lib/parser.js | 315 + .../node_modules/http-signature/lib/signer.js | 401 + .../node_modules/http-signature/lib/utils.js | 112 + .../node_modules/http-signature/lib/verify.js | 88 + .../node_modules/http-signature/package.json | 77 + .../data/node_modules/iconv-lite/Changelog.md | 171 + .../data/node_modules/iconv-lite/LICENSE | 21 + .../data/node_modules/iconv-lite/README.md | 166 + .../iconv-lite/encodings/dbcs-codec.js | 555 + .../iconv-lite/encodings/dbcs-data.js | 176 + .../iconv-lite/encodings/index.js | 23 + .../iconv-lite/encodings/internal.js | 188 + .../iconv-lite/encodings/sbcs-codec.js | 72 + .../encodings/sbcs-data-generated.js | 451 + .../iconv-lite/encodings/sbcs-data.js | 174 + .../encodings/tables/big5-added.json | 122 + .../iconv-lite/encodings/tables/cp936.json | 264 + .../iconv-lite/encodings/tables/cp949.json | 273 + .../iconv-lite/encodings/tables/cp950.json | 177 + .../iconv-lite/encodings/tables/eucjp.json | 182 + .../encodings/tables/gb18030-ranges.json | 1 + .../encodings/tables/gbk-added.json | 55 + .../iconv-lite/encodings/tables/shiftjis.json | 125 + .../iconv-lite/encodings/utf16.js | 177 + .../iconv-lite/encodings/utf32.js | 281 + .../node_modules/iconv-lite/encodings/utf7.js | 290 + .../iconv-lite/lib/bom-handling.js | 52 + .../iconv-lite/lib/extend-node.js | 217 + .../node_modules/iconv-lite/lib/index.d.ts | 24 + .../data/node_modules/iconv-lite/lib/index.js | 153 + .../node_modules/iconv-lite/lib/streams.js | 121 + .../data/node_modules/iconv-lite/package.json | 77 + nodered/rootfs/data/node_modules/imap/LICENSE | 19 + .../rootfs/data/node_modules/imap/README.md | 757 + .../imap/deps/encoding/encoding-indexes.js | 73 + .../imap/deps/encoding/encoding.js | 2340 + .../data/node_modules/imap/lib/Connection.js | 2128 + .../data/node_modules/imap/lib/Parser.js | 1025 + .../imap/node_modules/isarray/README.md | 54 + .../imap/node_modules/isarray/build/build.js | 209 + .../imap/node_modules/isarray/component.json | 19 + .../imap/node_modules/isarray/index.js | 3 + .../imap/node_modules/isarray/package.json | 57 + .../node_modules/readable-stream/.npmignore | 5 + .../imap/node_modules/readable-stream/LICENSE | 18 + .../node_modules/readable-stream/README.md | 15 + .../node_modules/readable-stream/duplex.js | 1 + .../node_modules/readable-stream/float.patch | 923 + .../readable-stream/lib/_stream_duplex.js | 89 + .../lib/_stream_passthrough.js | 46 + .../readable-stream/lib/_stream_readable.js | 951 + .../readable-stream/lib/_stream_transform.js | 209 + .../readable-stream/lib/_stream_writable.js | 477 + .../node_modules/readable-stream/package.json | 65 + .../readable-stream/passthrough.js | 1 + .../node_modules/readable-stream/readable.js | 10 + .../node_modules/readable-stream/transform.js | 1 + .../node_modules/readable-stream/writable.js | 1 + .../node_modules/string_decoder/.npmignore | 2 + .../imap/node_modules/string_decoder/LICENSE | 20 + .../node_modules/string_decoder/README.md | 7 + .../imap/node_modules/string_decoder/index.js | 221 + .../node_modules/string_decoder/package.json | 53 + .../data/node_modules/imap/package.json | 69 + .../imap/test/test-connection-fetch-dup.js | 92 + .../imap/test/test-connection-fetch-frag.js | 92 + .../test/test-connection-fetch-spillover.js | 176 + .../test/test-connection-fetch-stringbody.js | 104 + .../imap/test/test-connection-idle-normal.js | 144 + .../imap/test/test-connection-idle-order.js | 138 + .../imap/test/test-parse-bodystructure.js | 83 + .../imap/test/test-parse-envelope-addrs.js | 117 + .../node_modules/imap/test/test-parse-expr.js | 92 + .../imap/test/test-parse-header.js | 109 + .../node_modules/imap/test/test-parser.js | 543 + .../data/node_modules/imap/test/test.js | 4 + .../data/node_modules/indexof/.npmignore | 2 + .../rootfs/data/node_modules/indexof/Makefile | 11 + .../data/node_modules/indexof/Readme.md | 15 + .../data/node_modules/indexof/component.json | 10 + .../rootfs/data/node_modules/indexof/index.js | 10 + .../data/node_modules/indexof/package.json | 42 + .../influx/.github/ISSUE_TEMPLATE.md | 23 + .../influx/.github/PULL_REQUEST_TEMPLATE.md | 13 + .../node_modules/influx/.github/stale.yml | 62 + .../data/node_modules/influx/CHANGELOG.md | 95 + .../data/node_modules/influx/CONTRIBUTING.md | 38 + .../rootfs/data/node_modules/influx/LICENSE | 21 + .../rootfs/data/node_modules/influx/README.md | 64 + .../data/node_modules/influx/esdoc.json | 30 + .../influx/lib/src/backoff/backoff.d.ts | 15 + .../influx/lib/src/backoff/backoff.js | 2 + .../influx/lib/src/backoff/exponential.d.ts | 48 + .../influx/lib/src/backoff/exponential.js | 39 + .../node_modules/influx/lib/src/builder.d.ts | 254 + .../node_modules/influx/lib/src/builder.js | 295 + .../influx/lib/src/grammar/ds.d.ts | 45 + .../node_modules/influx/lib/src/grammar/ds.js | 55 + .../influx/lib/src/grammar/escape.d.ts | 37 + .../influx/lib/src/grammar/escape.js | 106 + .../influx/lib/src/grammar/index.d.ts | 3 + .../influx/lib/src/grammar/index.js | 8 + .../influx/lib/src/grammar/times.d.ts | 73 + .../influx/lib/src/grammar/times.js | 328 + .../node_modules/influx/lib/src/host.d.ts | 26 + .../data/node_modules/influx/lib/src/host.js | 33 + .../node_modules/influx/lib/src/index.d.ts | 736 + .../data/node_modules/influx/lib/src/index.js | 982 + .../node_modules/influx/lib/src/pool.d.ts | 149 + .../data/node_modules/influx/lib/src/pool.js | 310 + .../node_modules/influx/lib/src/results.d.ts | 118 + .../node_modules/influx/lib/src/results.js | 130 + .../node_modules/influx/lib/src/schema.d.ts | 58 + .../node_modules/influx/lib/src/schema.js | 117 + .../data/node_modules/influx/package.json | 133 + .../data/node_modules/influx/renovate.json | 8 + .../rootfs/data/node_modules/inherits/LICENSE | 16 + .../data/node_modules/inherits/README.md | 42 + .../data/node_modules/inherits/inherits.js | 1 + .../node_modules/inherits/inherits_browser.js | 23 + .../data/node_modules/inherits/package.json | 54 + .../rootfs/data/node_modules/inherits/test.js | 25 + .../data/node_modules/invert-kv/index.js | 15 + .../data/node_modules/invert-kv/license | 9 + .../data/node_modules/invert-kv/package.json | 64 + .../data/node_modules/invert-kv/readme.md | 25 + .../data/node_modules/ip-address/LICENSE | 19 + .../data/node_modules/ip-address/README.md | 96 + .../node_modules/ip-address/ip-address.js | 8 + .../node_modules/ip-address/lib/common.js | 39 + .../data/node_modules/ip-address/lib/ipv4.js | 319 + .../data/node_modules/ip-address/lib/ipv6.js | 966 + .../ip-address/lib/v4/constants.js | 6 + .../ip-address/lib/v6/attributes.js | 106 + .../ip-address/lib/v6/constants.js | 79 + .../node_modules/ip-address/lib/v6/helpers.js | 64 + .../node_modules/ip-address/lib/v6/html.js | 107 + .../ip-address/lib/v6/regular-expressions.js | 152 + .../ip-address/node_modules/jsbn/.npmignore | 2 + .../ip-address/node_modules/jsbn/CHANGELOG.md | 16 + .../ip-address/node_modules/jsbn/LICENSE | 40 + .../ip-address/node_modules/jsbn/README.md | 173 + .../ip-address/node_modules/jsbn/example.html | 11 + .../ip-address/node_modules/jsbn/example.js | 5 + .../ip-address/node_modules/jsbn/index.js | 1361 + .../ip-address/node_modules/jsbn/package.json | 52 + .../node_modules/jsbn/test/es6-import.js | 3 + .../data/node_modules/ip-address/package.json | 77 + .../node_modules/is-callable/.editorconfig | 20 + .../data/node_modules/is-callable/.eslintrc | 11 + .../is-callable/.github/FUNDING.yml | 12 + .../is-callable/.github/main.workflow | 14 + .../is-callable/.github/workflows/rebase.yml | 15 + .../node_modules/is-callable/.istanbul.yml | 47 + .../data/node_modules/is-callable/.travis.yml | 12 + .../node_modules/is-callable/CHANGELOG.md | 67 + .../data/node_modules/is-callable/LICENSE | 22 + .../data/node_modules/is-callable/README.md | 59 + .../data/node_modules/is-callable/index.js | 37 + .../node_modules/is-callable/package.json | 121 + .../node_modules/is-callable/test/index.js | 159 + .../node_modules/is-date-object/.eslintrc | 9 + .../is-date-object/.github/FUNDING.yml | 12 + .../.github/workflows/rebase.yml | 15 + .../node_modules/is-date-object/.jscs.json | 176 + .../node_modules/is-date-object/.travis.yml | 12 + .../node_modules/is-date-object/CHANGELOG.md | 76 + .../data/node_modules/is-date-object/LICENSE | 22 + .../node_modules/is-date-object/README.md | 53 + .../data/node_modules/is-date-object/index.js | 22 + .../node_modules/is-date-object/package.json | 104 + .../node_modules/is-date-object/test/index.js | 36 + .../data/node_modules/is-regex/.eslintrc | 9 + .../is-regex/.github/workflows/rebase.yml | 15 + .../data/node_modules/is-regex/.travis.yml | 12 + .../data/node_modules/is-regex/CHANGELOG.md | 148 + .../rootfs/data/node_modules/is-regex/LICENSE | 20 + .../data/node_modules/is-regex/README.md | 54 + .../data/node_modules/is-regex/index.js | 39 + .../data/node_modules/is-regex/package.json | 106 + .../data/node_modules/is-regex/test/index.js | 58 + .../data/node_modules/is-stream/index.js | 21 + .../data/node_modules/is-stream/license | 21 + .../data/node_modules/is-stream/package.json | 70 + .../data/node_modules/is-stream/readme.md | 42 + .../data/node_modules/is-symbol/.editorconfig | 13 + .../data/node_modules/is-symbol/.eslintrc | 14 + .../is-symbol/.github/FUNDING.yml | 12 + .../is-symbol/.github/workflows/rebase.yml | 15 + .../rootfs/data/node_modules/is-symbol/.nvmrc | 1 + .../data/node_modules/is-symbol/.travis.yml | 12 + .../data/node_modules/is-symbol/CHANGELOG.md | 86 + .../data/node_modules/is-symbol/LICENSE | 22 + .../data/node_modules/is-symbol/Makefile | 61 + .../data/node_modules/is-symbol/README.md | 44 + .../data/node_modules/is-symbol/index.js | 35 + .../data/node_modules/is-symbol/package.json | 105 + .../data/node_modules/is-symbol/test/index.js | 92 + .../node_modules/is-typedarray/LICENSE.md | 18 + .../data/node_modules/is-typedarray/README.md | 16 + .../data/node_modules/is-typedarray/index.js | 41 + .../node_modules/is-typedarray/package.json | 59 + .../data/node_modules/is-typedarray/test.js | 34 + .../data/node_modules/isarray/README.md | 54 + .../rootfs/data/node_modules/isarray/index.js | 5 + .../data/node_modules/isarray/package.json | 78 + .../rootfs/data/node_modules/isexe/.npmignore | 2 + .../rootfs/data/node_modules/isexe/LICENSE | 15 + .../rootfs/data/node_modules/isexe/README.md | 51 + .../rootfs/data/node_modules/isexe/index.js | 57 + .../rootfs/data/node_modules/isexe/mode.js | 41 + .../data/node_modules/isexe/package.json | 60 + .../data/node_modules/isexe/test/basic.js | 221 + .../rootfs/data/node_modules/isexe/windows.js | 42 + .../data/node_modules/isstream/.jshintrc | 59 + .../data/node_modules/isstream/.npmignore | 1 + .../data/node_modules/isstream/.travis.yml | 12 + .../data/node_modules/isstream/LICENSE.md | 11 + .../data/node_modules/isstream/README.md | 66 + .../data/node_modules/isstream/isstream.js | 27 + .../data/node_modules/isstream/package.json | 61 + .../rootfs/data/node_modules/isstream/test.js | 168 + .../rootfs/data/node_modules/jsbn/.npmignore | 2 + nodered/rootfs/data/node_modules/jsbn/LICENSE | 40 + .../rootfs/data/node_modules/jsbn/README.md | 175 + .../data/node_modules/jsbn/example.html | 12 + .../rootfs/data/node_modules/jsbn/example.js | 3 + .../rootfs/data/node_modules/jsbn/index.js | 1357 + .../data/node_modules/jsbn/package.json | 53 + .../json-schema-traverse/.eslintrc.yml | 27 + .../json-schema-traverse/.travis.yml | 8 + .../node_modules/json-schema-traverse/LICENSE | 21 + .../json-schema-traverse/README.md | 83 + .../json-schema-traverse/index.js | 89 + .../json-schema-traverse/package.json | 70 + .../json-schema-traverse/spec/.eslintrc.yml | 6 + .../spec/fixtures/schema.js | 125 + .../json-schema-traverse/spec/index.spec.js | 171 + .../data/node_modules/json-schema/README.md | 5 + .../json-schema/draft-00/hyper-schema | 68 + .../json-schema/draft-00/json-ref | 26 + .../node_modules/json-schema/draft-00/links | 33 + .../node_modules/json-schema/draft-00/schema | 155 + .../json-schema/draft-01/hyper-schema | 68 + .../json-schema/draft-01/json-ref | 26 + .../node_modules/json-schema/draft-01/links | 33 + .../node_modules/json-schema/draft-01/schema | 155 + .../json-schema/draft-02/hyper-schema | 68 + .../json-schema/draft-02/json-ref | 26 + .../node_modules/json-schema/draft-02/links | 35 + .../node_modules/json-schema/draft-02/schema | 166 + .../json-schema/draft-03/examples/address | 20 + .../json-schema/draft-03/examples/calendar | 53 + .../json-schema/draft-03/examples/card | 105 + .../json-schema/draft-03/examples/geo | 8 + .../json-schema/draft-03/examples/interfaces | 23 + .../json-schema/draft-03/hyper-schema | 60 + .../json-schema/draft-03/json-ref | 26 + .../node_modules/json-schema/draft-03/links | 35 + .../node_modules/json-schema/draft-03/schema | 174 + .../json-schema/draft-04/hyper-schema | 60 + .../node_modules/json-schema/draft-04/links | 41 + .../node_modules/json-schema/draft-04/schema | 189 + .../json-schema/draft-zyp-json-schema-03.xml | 1120 + .../json-schema/draft-zyp-json-schema-04.xml | 1072 + .../node_modules/json-schema/lib/links.js | 66 + .../node_modules/json-schema/lib/validate.js | 273 + .../node_modules/json-schema/package.json | 71 + .../node_modules/json-schema/test/tests.js | 95 + .../json-stringify-safe/.npmignore | 1 + .../json-stringify-safe/CHANGELOG.md | 14 + .../node_modules/json-stringify-safe/LICENSE | 15 + .../node_modules/json-stringify-safe/Makefile | 35 + .../json-stringify-safe/README.md | 52 + .../json-stringify-safe/package.json | 66 + .../json-stringify-safe/stringify.js | 27 + .../json-stringify-safe/test/mocha.opts | 2 + .../test/stringify_test.js | 246 + .../data/node_modules/jsprim/CHANGES.md | 49 + .../data/node_modules/jsprim/CONTRIBUTING.md | 19 + .../rootfs/data/node_modules/jsprim/LICENSE | 19 + .../rootfs/data/node_modules/jsprim/README.md | 287 + .../data/node_modules/jsprim/lib/jsprim.js | 735 + .../data/node_modules/jsprim/package.json | 49 + .../rootfs/data/node_modules/lcid/index.js | 23 + .../rootfs/data/node_modules/lcid/lcid.json | 203 + nodered/rootfs/data/node_modules/lcid/license | 9 + .../data/node_modules/lcid/package.json | 79 + .../rootfs/data/node_modules/lcid/readme.md | 35 + .../data/node_modules/libbase64/.eslintrc | 11 + .../node_modules/libbase64/.prettierrc.js | 5 + .../data/node_modules/libbase64/LICENSE | 19 + .../data/node_modules/libbase64/README.md | 113 + .../node_modules/libbase64/lib/libbase64.js | 252 + .../data/node_modules/libbase64/package.json | 62 + .../data/node_modules/libmime/.eslintrc | 7 + .../data/node_modules/libmime/.prettierrc.js | 5 + .../data/node_modules/libmime/CHANGELOG.md | 94 + .../rootfs/data/node_modules/libmime/LICENSE | 19 + .../data/node_modules/libmime/README.md | 207 + .../data/node_modules/libmime/lib/charset.js | 123 + .../data/node_modules/libmime/lib/charsets.js | 212 + .../data/node_modules/libmime/lib/libmime.js | 922 + .../node_modules/libmime/lib/mimetypes.js | 2049 + .../data/node_modules/libmime/package.json | 70 + .../rootfs/data/node_modules/libqp/.npmignore | 4 + .../rootfs/data/node_modules/libqp/LICENSE | 19 + .../rootfs/data/node_modules/libqp/README.md | 109 + .../data/node_modules/libqp/lib/libqp.js | 313 + .../data/node_modules/libqp/package.json | 58 + .../data/node_modules/linkify-it/CHANGELOG.md | 152 + .../data/node_modules/linkify-it/LICENSE | 22 + .../data/node_modules/linkify-it/README.md | 188 + .../data/node_modules/linkify-it/index.js | 636 + .../data/node_modules/linkify-it/lib/re.js | 179 + .../data/node_modules/linkify-it/package.json | 71 + .../rootfs/data/node_modules/lodash/LICENSE | 47 + .../rootfs/data/node_modules/lodash/README.md | 39 + .../data/node_modules/lodash/_DataView.js | 7 + .../rootfs/data/node_modules/lodash/_Hash.js | 32 + .../data/node_modules/lodash/_LazyWrapper.js | 28 + .../data/node_modules/lodash/_ListCache.js | 32 + .../node_modules/lodash/_LodashWrapper.js | 22 + .../rootfs/data/node_modules/lodash/_Map.js | 7 + .../data/node_modules/lodash/_MapCache.js | 32 + .../data/node_modules/lodash/_Promise.js | 7 + .../rootfs/data/node_modules/lodash/_Set.js | 7 + .../data/node_modules/lodash/_SetCache.js | 27 + .../rootfs/data/node_modules/lodash/_Stack.js | 27 + .../data/node_modules/lodash/_Symbol.js | 6 + .../data/node_modules/lodash/_Uint8Array.js | 6 + .../data/node_modules/lodash/_WeakMap.js | 7 + .../rootfs/data/node_modules/lodash/_apply.js | 21 + .../node_modules/lodash/_arrayAggregator.js | 22 + .../data/node_modules/lodash/_arrayEach.js | 22 + .../node_modules/lodash/_arrayEachRight.js | 21 + .../data/node_modules/lodash/_arrayEvery.js | 23 + .../data/node_modules/lodash/_arrayFilter.js | 25 + .../node_modules/lodash/_arrayIncludes.js | 17 + .../node_modules/lodash/_arrayIncludesWith.js | 22 + .../node_modules/lodash/_arrayLikeKeys.js | 49 + .../data/node_modules/lodash/_arrayMap.js | 21 + .../data/node_modules/lodash/_arrayPush.js | 20 + .../data/node_modules/lodash/_arrayReduce.js | 26 + .../node_modules/lodash/_arrayReduceRight.js | 24 + .../data/node_modules/lodash/_arraySample.js | 15 + .../node_modules/lodash/_arraySampleSize.js | 17 + .../data/node_modules/lodash/_arrayShuffle.js | 15 + .../data/node_modules/lodash/_arraySome.js | 23 + .../data/node_modules/lodash/_asciiSize.js | 12 + .../data/node_modules/lodash/_asciiToArray.js | 12 + .../data/node_modules/lodash/_asciiWords.js | 15 + .../node_modules/lodash/_assignMergeValue.js | 20 + .../data/node_modules/lodash/_assignValue.js | 28 + .../data/node_modules/lodash/_assocIndexOf.js | 21 + .../node_modules/lodash/_baseAggregator.js | 21 + .../data/node_modules/lodash/_baseAssign.js | 17 + .../data/node_modules/lodash/_baseAssignIn.js | 17 + .../node_modules/lodash/_baseAssignValue.js | 25 + .../data/node_modules/lodash/_baseAt.js | 23 + .../data/node_modules/lodash/_baseClamp.js | 22 + .../data/node_modules/lodash/_baseClone.js | 165 + .../data/node_modules/lodash/_baseConforms.js | 18 + .../node_modules/lodash/_baseConformsTo.js | 27 + .../data/node_modules/lodash/_baseCreate.js | 30 + .../data/node_modules/lodash/_baseDelay.js | 21 + .../node_modules/lodash/_baseDifference.js | 67 + .../data/node_modules/lodash/_baseEach.js | 14 + .../node_modules/lodash/_baseEachRight.js | 14 + .../data/node_modules/lodash/_baseEvery.js | 21 + .../data/node_modules/lodash/_baseExtremum.js | 32 + .../data/node_modules/lodash/_baseFill.js | 32 + .../data/node_modules/lodash/_baseFilter.js | 21 + .../node_modules/lodash/_baseFindIndex.js | 24 + .../data/node_modules/lodash/_baseFindKey.js | 23 + .../data/node_modules/lodash/_baseFlatten.js | 38 + .../data/node_modules/lodash/_baseFor.js | 16 + .../data/node_modules/lodash/_baseForOwn.js | 16 + .../node_modules/lodash/_baseForOwnRight.js | 16 + .../data/node_modules/lodash/_baseForRight.js | 15 + .../node_modules/lodash/_baseFunctions.js | 19 + .../data/node_modules/lodash/_baseGet.js | 24 + .../node_modules/lodash/_baseGetAllKeys.js | 20 + .../data/node_modules/lodash/_baseGetTag.js | 28 + .../data/node_modules/lodash/_baseGt.js | 14 + .../data/node_modules/lodash/_baseHas.js | 19 + .../data/node_modules/lodash/_baseHasIn.js | 13 + .../data/node_modules/lodash/_baseInRange.js | 18 + .../data/node_modules/lodash/_baseIndexOf.js | 20 + .../node_modules/lodash/_baseIndexOfWith.js | 23 + .../node_modules/lodash/_baseIntersection.js | 74 + .../data/node_modules/lodash/_baseInverter.js | 21 + .../data/node_modules/lodash/_baseInvoke.js | 24 + .../node_modules/lodash/_baseIsArguments.js | 18 + .../node_modules/lodash/_baseIsArrayBuffer.js | 17 + .../data/node_modules/lodash/_baseIsDate.js | 18 + .../data/node_modules/lodash/_baseIsEqual.js | 28 + .../node_modules/lodash/_baseIsEqualDeep.js | 83 + .../data/node_modules/lodash/_baseIsMap.js | 18 + .../data/node_modules/lodash/_baseIsMatch.js | 62 + .../data/node_modules/lodash/_baseIsNaN.js | 12 + .../data/node_modules/lodash/_baseIsNative.js | 47 + .../data/node_modules/lodash/_baseIsRegExp.js | 18 + .../data/node_modules/lodash/_baseIsSet.js | 18 + .../node_modules/lodash/_baseIsTypedArray.js | 60 + .../data/node_modules/lodash/_baseIteratee.js | 31 + .../data/node_modules/lodash/_baseKeys.js | 30 + .../data/node_modules/lodash/_baseKeysIn.js | 33 + .../data/node_modules/lodash/_baseLodash.js | 10 + .../data/node_modules/lodash/_baseLt.js | 14 + .../data/node_modules/lodash/_baseMap.js | 22 + .../data/node_modules/lodash/_baseMatches.js | 22 + .../lodash/_baseMatchesProperty.js | 33 + .../data/node_modules/lodash/_baseMean.js | 20 + .../data/node_modules/lodash/_baseMerge.js | 42 + .../node_modules/lodash/_baseMergeDeep.js | 94 + .../data/node_modules/lodash/_baseNth.js | 20 + .../data/node_modules/lodash/_baseOrderBy.js | 34 + .../data/node_modules/lodash/_basePick.js | 19 + .../data/node_modules/lodash/_basePickBy.js | 30 + .../data/node_modules/lodash/_baseProperty.js | 14 + .../node_modules/lodash/_basePropertyDeep.js | 16 + .../node_modules/lodash/_basePropertyOf.js | 14 + .../data/node_modules/lodash/_basePullAll.js | 51 + .../data/node_modules/lodash/_basePullAt.js | 37 + .../data/node_modules/lodash/_baseRandom.js | 18 + .../data/node_modules/lodash/_baseRange.js | 28 + .../data/node_modules/lodash/_baseReduce.js | 23 + .../data/node_modules/lodash/_baseRepeat.js | 35 + .../data/node_modules/lodash/_baseRest.js | 17 + .../data/node_modules/lodash/_baseSample.js | 15 + .../node_modules/lodash/_baseSampleSize.js | 18 + .../data/node_modules/lodash/_baseSet.js | 47 + .../data/node_modules/lodash/_baseSetData.js | 17 + .../node_modules/lodash/_baseSetToString.js | 22 + .../data/node_modules/lodash/_baseShuffle.js | 15 + .../data/node_modules/lodash/_baseSlice.js | 31 + .../data/node_modules/lodash/_baseSome.js | 22 + .../data/node_modules/lodash/_baseSortBy.js | 21 + .../node_modules/lodash/_baseSortedIndex.js | 42 + .../node_modules/lodash/_baseSortedIndexBy.js | 64 + .../node_modules/lodash/_baseSortedUniq.js | 30 + .../data/node_modules/lodash/_baseSum.js | 24 + .../data/node_modules/lodash/_baseTimes.js | 20 + .../data/node_modules/lodash/_baseToNumber.js | 24 + .../data/node_modules/lodash/_baseToPairs.js | 18 + .../data/node_modules/lodash/_baseToString.js | 37 + .../data/node_modules/lodash/_baseUnary.js | 14 + .../data/node_modules/lodash/_baseUniq.js | 72 + .../data/node_modules/lodash/_baseUnset.js | 20 + .../data/node_modules/lodash/_baseUpdate.js | 18 + .../data/node_modules/lodash/_baseValues.js | 19 + .../data/node_modules/lodash/_baseWhile.js | 26 + .../node_modules/lodash/_baseWrapperValue.js | 25 + .../data/node_modules/lodash/_baseXor.js | 36 + .../node_modules/lodash/_baseZipObject.js | 23 + .../data/node_modules/lodash/_cacheHas.js | 13 + .../lodash/_castArrayLikeObject.js | 14 + .../data/node_modules/lodash/_castFunction.js | 14 + .../data/node_modules/lodash/_castPath.js | 21 + .../data/node_modules/lodash/_castRest.js | 14 + .../data/node_modules/lodash/_castSlice.js | 18 + .../node_modules/lodash/_charsEndIndex.js | 19 + .../node_modules/lodash/_charsStartIndex.js | 20 + .../node_modules/lodash/_cloneArrayBuffer.js | 16 + .../data/node_modules/lodash/_cloneBuffer.js | 35 + .../node_modules/lodash/_cloneDataView.js | 16 + .../data/node_modules/lodash/_cloneRegExp.js | 17 + .../data/node_modules/lodash/_cloneSymbol.js | 18 + .../node_modules/lodash/_cloneTypedArray.js | 16 + .../node_modules/lodash/_compareAscending.js | 41 + .../node_modules/lodash/_compareMultiple.js | 44 + .../data/node_modules/lodash/_composeArgs.js | 39 + .../node_modules/lodash/_composeArgsRight.js | 41 + .../data/node_modules/lodash/_copyArray.js | 20 + .../data/node_modules/lodash/_copyObject.js | 40 + .../data/node_modules/lodash/_copySymbols.js | 16 + .../node_modules/lodash/_copySymbolsIn.js | 16 + .../data/node_modules/lodash/_coreJsData.js | 6 + .../data/node_modules/lodash/_countHolders.js | 21 + .../node_modules/lodash/_createAggregator.js | 23 + .../node_modules/lodash/_createAssigner.js | 37 + .../node_modules/lodash/_createBaseEach.js | 32 + .../node_modules/lodash/_createBaseFor.js | 25 + .../data/node_modules/lodash/_createBind.js | 28 + .../node_modules/lodash/_createCaseFirst.js | 33 + .../node_modules/lodash/_createCompounder.js | 24 + .../data/node_modules/lodash/_createCtor.js | 37 + .../data/node_modules/lodash/_createCurry.js | 46 + .../data/node_modules/lodash/_createFind.js | 25 + .../data/node_modules/lodash/_createFlow.js | 78 + .../data/node_modules/lodash/_createHybrid.js | 92 + .../node_modules/lodash/_createInverter.js | 17 + .../lodash/_createMathOperation.js | 38 + .../data/node_modules/lodash/_createOver.js | 27 + .../node_modules/lodash/_createPadding.js | 33 + .../node_modules/lodash/_createPartial.js | 43 + .../data/node_modules/lodash/_createRange.js | 30 + .../node_modules/lodash/_createRecurry.js | 56 + .../lodash/_createRelationalOperation.js | 20 + .../data/node_modules/lodash/_createRound.js | 35 + .../data/node_modules/lodash/_createSet.js | 19 + .../node_modules/lodash/_createToPairs.js | 30 + .../data/node_modules/lodash/_createWrap.js | 106 + .../lodash/_customDefaultsAssignIn.js | 29 + .../lodash/_customDefaultsMerge.js | 28 + .../node_modules/lodash/_customOmitClone.js | 16 + .../data/node_modules/lodash/_deburrLetter.js | 71 + .../node_modules/lodash/_defineProperty.js | 11 + .../data/node_modules/lodash/_equalArrays.js | 83 + .../data/node_modules/lodash/_equalByTag.js | 112 + .../data/node_modules/lodash/_equalObjects.js | 89 + .../node_modules/lodash/_escapeHtmlChar.js | 21 + .../node_modules/lodash/_escapeStringChar.js | 22 + .../data/node_modules/lodash/_flatRest.js | 16 + .../data/node_modules/lodash/_freeGlobal.js | 4 + .../data/node_modules/lodash/_getAllKeys.js | 16 + .../data/node_modules/lodash/_getAllKeysIn.js | 17 + .../data/node_modules/lodash/_getData.js | 15 + .../data/node_modules/lodash/_getFuncName.js | 31 + .../data/node_modules/lodash/_getHolder.js | 13 + .../data/node_modules/lodash/_getMapData.js | 18 + .../data/node_modules/lodash/_getMatchData.js | 24 + .../data/node_modules/lodash/_getNative.js | 17 + .../data/node_modules/lodash/_getPrototype.js | 6 + .../data/node_modules/lodash/_getRawTag.js | 46 + .../data/node_modules/lodash/_getSymbols.js | 30 + .../data/node_modules/lodash/_getSymbolsIn.js | 25 + .../data/node_modules/lodash/_getTag.js | 58 + .../data/node_modules/lodash/_getValue.js | 13 + .../data/node_modules/lodash/_getView.js | 33 + .../node_modules/lodash/_getWrapDetails.js | 17 + .../data/node_modules/lodash/_hasPath.js | 39 + .../data/node_modules/lodash/_hasUnicode.js | 26 + .../node_modules/lodash/_hasUnicodeWord.js | 15 + .../data/node_modules/lodash/_hashClear.js | 15 + .../data/node_modules/lodash/_hashDelete.js | 17 + .../data/node_modules/lodash/_hashGet.js | 30 + .../data/node_modules/lodash/_hashHas.js | 23 + .../data/node_modules/lodash/_hashSet.js | 23 + .../node_modules/lodash/_initCloneArray.js | 26 + .../node_modules/lodash/_initCloneByTag.js | 77 + .../node_modules/lodash/_initCloneObject.js | 18 + .../node_modules/lodash/_insertWrapDetails.js | 23 + .../node_modules/lodash/_isFlattenable.js | 20 + .../data/node_modules/lodash/_isIndex.js | 25 + .../node_modules/lodash/_isIterateeCall.js | 30 + .../rootfs/data/node_modules/lodash/_isKey.js | 29 + .../data/node_modules/lodash/_isKeyable.js | 15 + .../data/node_modules/lodash/_isLaziable.js | 28 + .../data/node_modules/lodash/_isMaskable.js | 14 + .../data/node_modules/lodash/_isMasked.js | 20 + .../data/node_modules/lodash/_isPrototype.js | 18 + .../lodash/_isStrictComparable.js | 15 + .../node_modules/lodash/_iteratorToArray.js | 18 + .../data/node_modules/lodash/_lazyClone.js | 23 + .../data/node_modules/lodash/_lazyReverse.js | 23 + .../data/node_modules/lodash/_lazyValue.js | 69 + .../node_modules/lodash/_listCacheClear.js | 13 + .../node_modules/lodash/_listCacheDelete.js | 35 + .../data/node_modules/lodash/_listCacheGet.js | 19 + .../data/node_modules/lodash/_listCacheHas.js | 16 + .../data/node_modules/lodash/_listCacheSet.js | 26 + .../node_modules/lodash/_mapCacheClear.js | 21 + .../node_modules/lodash/_mapCacheDelete.js | 18 + .../data/node_modules/lodash/_mapCacheGet.js | 16 + .../data/node_modules/lodash/_mapCacheHas.js | 16 + .../data/node_modules/lodash/_mapCacheSet.js | 22 + .../data/node_modules/lodash/_mapToArray.js | 18 + .../lodash/_matchesStrictComparable.js | 20 + .../node_modules/lodash/_memoizeCapped.js | 26 + .../data/node_modules/lodash/_mergeData.js | 90 + .../data/node_modules/lodash/_metaMap.js | 6 + .../data/node_modules/lodash/_nativeCreate.js | 6 + .../data/node_modules/lodash/_nativeKeys.js | 6 + .../data/node_modules/lodash/_nativeKeysIn.js | 20 + .../data/node_modules/lodash/_nodeUtil.js | 30 + .../node_modules/lodash/_objectToString.js | 22 + .../data/node_modules/lodash/_overArg.js | 15 + .../data/node_modules/lodash/_overRest.js | 36 + .../data/node_modules/lodash/_parent.js | 16 + .../data/node_modules/lodash/_reEscape.js | 4 + .../data/node_modules/lodash/_reEvaluate.js | 4 + .../node_modules/lodash/_reInterpolate.js | 4 + .../data/node_modules/lodash/_realNames.js | 4 + .../data/node_modules/lodash/_reorder.js | 29 + .../node_modules/lodash/_replaceHolders.js | 29 + .../rootfs/data/node_modules/lodash/_root.js | 9 + .../data/node_modules/lodash/_safeGet.js | 21 + .../data/node_modules/lodash/_setCacheAdd.js | 19 + .../data/node_modules/lodash/_setCacheHas.js | 14 + .../data/node_modules/lodash/_setData.js | 20 + .../data/node_modules/lodash/_setToArray.js | 18 + .../data/node_modules/lodash/_setToPairs.js | 18 + .../data/node_modules/lodash/_setToString.js | 14 + .../node_modules/lodash/_setWrapToString.js | 21 + .../data/node_modules/lodash/_shortOut.js | 37 + .../data/node_modules/lodash/_shuffleSelf.js | 28 + .../data/node_modules/lodash/_stackClear.js | 15 + .../data/node_modules/lodash/_stackDelete.js | 18 + .../data/node_modules/lodash/_stackGet.js | 14 + .../data/node_modules/lodash/_stackHas.js | 14 + .../data/node_modules/lodash/_stackSet.js | 34 + .../node_modules/lodash/_strictIndexOf.js | 23 + .../node_modules/lodash/_strictLastIndexOf.js | 21 + .../data/node_modules/lodash/_stringSize.js | 18 + .../node_modules/lodash/_stringToArray.js | 18 + .../data/node_modules/lodash/_stringToPath.js | 27 + .../rootfs/data/node_modules/lodash/_toKey.js | 21 + .../data/node_modules/lodash/_toSource.js | 26 + .../node_modules/lodash/_unescapeHtmlChar.js | 21 + .../data/node_modules/lodash/_unicodeSize.js | 44 + .../node_modules/lodash/_unicodeToArray.js | 40 + .../data/node_modules/lodash/_unicodeWords.js | 69 + .../node_modules/lodash/_updateWrapDetails.js | 46 + .../data/node_modules/lodash/_wrapperClone.js | 23 + .../rootfs/data/node_modules/lodash/add.js | 22 + .../rootfs/data/node_modules/lodash/after.js | 42 + .../rootfs/data/node_modules/lodash/array.js | 67 + .../rootfs/data/node_modules/lodash/ary.js | 29 + .../rootfs/data/node_modules/lodash/assign.js | 58 + .../data/node_modules/lodash/assignIn.js | 40 + .../data/node_modules/lodash/assignInWith.js | 38 + .../data/node_modules/lodash/assignWith.js | 37 + nodered/rootfs/data/node_modules/lodash/at.js | 23 + .../data/node_modules/lodash/attempt.js | 35 + .../rootfs/data/node_modules/lodash/before.js | 40 + .../rootfs/data/node_modules/lodash/bind.js | 57 + .../data/node_modules/lodash/bindAll.js | 41 + .../data/node_modules/lodash/bindKey.js | 68 + .../data/node_modules/lodash/camelCase.js | 29 + .../data/node_modules/lodash/capitalize.js | 23 + .../data/node_modules/lodash/castArray.js | 44 + .../rootfs/data/node_modules/lodash/ceil.js | 26 + .../rootfs/data/node_modules/lodash/chain.js | 38 + .../rootfs/data/node_modules/lodash/chunk.js | 50 + .../rootfs/data/node_modules/lodash/clamp.js | 39 + .../rootfs/data/node_modules/lodash/clone.js | 36 + .../data/node_modules/lodash/cloneDeep.js | 29 + .../data/node_modules/lodash/cloneDeepWith.js | 40 + .../data/node_modules/lodash/cloneWith.js | 42 + .../data/node_modules/lodash/collection.js | 30 + .../rootfs/data/node_modules/lodash/commit.js | 33 + .../data/node_modules/lodash/compact.js | 31 + .../rootfs/data/node_modules/lodash/concat.js | 43 + .../rootfs/data/node_modules/lodash/cond.js | 60 + .../data/node_modules/lodash/conforms.js | 35 + .../data/node_modules/lodash/conformsTo.js | 32 + .../data/node_modules/lodash/constant.js | 26 + .../rootfs/data/node_modules/lodash/core.js | 3854 ++ .../data/node_modules/lodash/core.min.js | 29 + .../data/node_modules/lodash/countBy.js | 40 + .../rootfs/data/node_modules/lodash/create.js | 43 + .../rootfs/data/node_modules/lodash/curry.js | 57 + .../data/node_modules/lodash/curryRight.js | 54 + .../rootfs/data/node_modules/lodash/date.js | 3 + .../data/node_modules/lodash/debounce.js | 191 + .../rootfs/data/node_modules/lodash/deburr.js | 45 + .../data/node_modules/lodash/defaultTo.js | 25 + .../data/node_modules/lodash/defaults.js | 64 + .../data/node_modules/lodash/defaultsDeep.js | 30 + .../rootfs/data/node_modules/lodash/defer.js | 26 + .../rootfs/data/node_modules/lodash/delay.js | 28 + .../data/node_modules/lodash/difference.js | 33 + .../data/node_modules/lodash/differenceBy.js | 44 + .../node_modules/lodash/differenceWith.js | 40 + .../rootfs/data/node_modules/lodash/divide.js | 22 + .../rootfs/data/node_modules/lodash/drop.js | 38 + .../data/node_modules/lodash/dropRight.js | 39 + .../node_modules/lodash/dropRightWhile.js | 45 + .../data/node_modules/lodash/dropWhile.js | 45 + .../rootfs/data/node_modules/lodash/each.js | 1 + .../data/node_modules/lodash/eachRight.js | 1 + .../data/node_modules/lodash/endsWith.js | 43 + .../data/node_modules/lodash/entries.js | 1 + .../data/node_modules/lodash/entriesIn.js | 1 + nodered/rootfs/data/node_modules/lodash/eq.js | 37 + .../rootfs/data/node_modules/lodash/escape.js | 43 + .../data/node_modules/lodash/escapeRegExp.js | 32 + .../rootfs/data/node_modules/lodash/every.js | 56 + .../rootfs/data/node_modules/lodash/extend.js | 1 + .../data/node_modules/lodash/extendWith.js | 1 + .../rootfs/data/node_modules/lodash/fill.js | 45 + .../rootfs/data/node_modules/lodash/filter.js | 48 + .../rootfs/data/node_modules/lodash/find.js | 42 + .../data/node_modules/lodash/findIndex.js | 55 + .../data/node_modules/lodash/findKey.js | 44 + .../data/node_modules/lodash/findLast.js | 25 + .../data/node_modules/lodash/findLastIndex.js | 59 + .../data/node_modules/lodash/findLastKey.js | 44 + .../rootfs/data/node_modules/lodash/first.js | 1 + .../data/node_modules/lodash/flatMap.js | 29 + .../data/node_modules/lodash/flatMapDeep.js | 31 + .../data/node_modules/lodash/flatMapDepth.js | 31 + .../data/node_modules/lodash/flatten.js | 22 + .../data/node_modules/lodash/flattenDeep.js | 25 + .../data/node_modules/lodash/flattenDepth.js | 33 + .../rootfs/data/node_modules/lodash/flip.js | 28 + .../rootfs/data/node_modules/lodash/floor.js | 26 + .../rootfs/data/node_modules/lodash/flow.js | 27 + .../data/node_modules/lodash/flowRight.js | 26 + .../data/node_modules/lodash/forEach.js | 41 + .../data/node_modules/lodash/forEachRight.js | 31 + .../rootfs/data/node_modules/lodash/forIn.js | 39 + .../data/node_modules/lodash/forInRight.js | 37 + .../rootfs/data/node_modules/lodash/forOwn.js | 36 + .../data/node_modules/lodash/forOwnRight.js | 34 + nodered/rootfs/data/node_modules/lodash/fp.js | 2 + .../rootfs/data/node_modules/lodash/fp/F.js | 1 + .../rootfs/data/node_modules/lodash/fp/T.js | 1 + .../rootfs/data/node_modules/lodash/fp/__.js | 1 + .../node_modules/lodash/fp/_baseConvert.js | 569 + .../node_modules/lodash/fp/_convertBrowser.js | 18 + .../node_modules/lodash/fp/_falseOptions.js | 7 + .../data/node_modules/lodash/fp/_mapping.js | 358 + .../data/node_modules/lodash/fp/_util.js | 16 + .../rootfs/data/node_modules/lodash/fp/add.js | 5 + .../data/node_modules/lodash/fp/after.js | 5 + .../rootfs/data/node_modules/lodash/fp/all.js | 1 + .../data/node_modules/lodash/fp/allPass.js | 1 + .../data/node_modules/lodash/fp/always.js | 1 + .../rootfs/data/node_modules/lodash/fp/any.js | 1 + .../data/node_modules/lodash/fp/anyPass.js | 1 + .../data/node_modules/lodash/fp/apply.js | 1 + .../data/node_modules/lodash/fp/array.js | 2 + .../rootfs/data/node_modules/lodash/fp/ary.js | 5 + .../data/node_modules/lodash/fp/assign.js | 5 + .../data/node_modules/lodash/fp/assignAll.js | 5 + .../node_modules/lodash/fp/assignAllWith.js | 5 + .../data/node_modules/lodash/fp/assignIn.js | 5 + .../node_modules/lodash/fp/assignInAll.js | 5 + .../node_modules/lodash/fp/assignInAllWith.js | 5 + .../node_modules/lodash/fp/assignInWith.js | 5 + .../data/node_modules/lodash/fp/assignWith.js | 5 + .../data/node_modules/lodash/fp/assoc.js | 1 + .../data/node_modules/lodash/fp/assocPath.js | 1 + .../rootfs/data/node_modules/lodash/fp/at.js | 5 + .../data/node_modules/lodash/fp/attempt.js | 5 + .../data/node_modules/lodash/fp/before.js | 5 + .../data/node_modules/lodash/fp/bind.js | 5 + .../data/node_modules/lodash/fp/bindAll.js | 5 + .../data/node_modules/lodash/fp/bindKey.js | 5 + .../data/node_modules/lodash/fp/camelCase.js | 5 + .../data/node_modules/lodash/fp/capitalize.js | 5 + .../data/node_modules/lodash/fp/castArray.js | 5 + .../data/node_modules/lodash/fp/ceil.js | 5 + .../data/node_modules/lodash/fp/chain.js | 5 + .../data/node_modules/lodash/fp/chunk.js | 5 + .../data/node_modules/lodash/fp/clamp.js | 5 + .../data/node_modules/lodash/fp/clone.js | 5 + .../data/node_modules/lodash/fp/cloneDeep.js | 5 + .../node_modules/lodash/fp/cloneDeepWith.js | 5 + .../data/node_modules/lodash/fp/cloneWith.js | 5 + .../data/node_modules/lodash/fp/collection.js | 2 + .../data/node_modules/lodash/fp/commit.js | 5 + .../data/node_modules/lodash/fp/compact.js | 5 + .../data/node_modules/lodash/fp/complement.js | 1 + .../data/node_modules/lodash/fp/compose.js | 1 + .../data/node_modules/lodash/fp/concat.js | 5 + .../data/node_modules/lodash/fp/cond.js | 5 + .../data/node_modules/lodash/fp/conforms.js | 1 + .../data/node_modules/lodash/fp/conformsTo.js | 5 + .../data/node_modules/lodash/fp/constant.js | 5 + .../data/node_modules/lodash/fp/contains.js | 1 + .../data/node_modules/lodash/fp/convert.js | 18 + .../data/node_modules/lodash/fp/countBy.js | 5 + .../data/node_modules/lodash/fp/create.js | 5 + .../data/node_modules/lodash/fp/curry.js | 5 + .../data/node_modules/lodash/fp/curryN.js | 5 + .../data/node_modules/lodash/fp/curryRight.js | 5 + .../node_modules/lodash/fp/curryRightN.js | 5 + .../data/node_modules/lodash/fp/date.js | 2 + .../data/node_modules/lodash/fp/debounce.js | 5 + .../data/node_modules/lodash/fp/deburr.js | 5 + .../data/node_modules/lodash/fp/defaultTo.js | 5 + .../data/node_modules/lodash/fp/defaults.js | 5 + .../node_modules/lodash/fp/defaultsAll.js | 5 + .../node_modules/lodash/fp/defaultsDeep.js | 5 + .../node_modules/lodash/fp/defaultsDeepAll.js | 5 + .../data/node_modules/lodash/fp/defer.js | 5 + .../data/node_modules/lodash/fp/delay.js | 5 + .../data/node_modules/lodash/fp/difference.js | 5 + .../node_modules/lodash/fp/differenceBy.js | 5 + .../node_modules/lodash/fp/differenceWith.js | 5 + .../data/node_modules/lodash/fp/dissoc.js | 1 + .../data/node_modules/lodash/fp/dissocPath.js | 1 + .../data/node_modules/lodash/fp/divide.js | 5 + .../data/node_modules/lodash/fp/drop.js | 5 + .../data/node_modules/lodash/fp/dropLast.js | 1 + .../node_modules/lodash/fp/dropLastWhile.js | 1 + .../data/node_modules/lodash/fp/dropRight.js | 5 + .../node_modules/lodash/fp/dropRightWhile.js | 5 + .../data/node_modules/lodash/fp/dropWhile.js | 5 + .../data/node_modules/lodash/fp/each.js | 1 + .../data/node_modules/lodash/fp/eachRight.js | 1 + .../data/node_modules/lodash/fp/endsWith.js | 5 + .../data/node_modules/lodash/fp/entries.js | 1 + .../data/node_modules/lodash/fp/entriesIn.js | 1 + .../rootfs/data/node_modules/lodash/fp/eq.js | 5 + .../data/node_modules/lodash/fp/equals.js | 1 + .../data/node_modules/lodash/fp/escape.js | 5 + .../node_modules/lodash/fp/escapeRegExp.js | 5 + .../data/node_modules/lodash/fp/every.js | 5 + .../data/node_modules/lodash/fp/extend.js | 1 + .../data/node_modules/lodash/fp/extendAll.js | 1 + .../node_modules/lodash/fp/extendAllWith.js | 1 + .../data/node_modules/lodash/fp/extendWith.js | 1 + .../data/node_modules/lodash/fp/fill.js | 5 + .../data/node_modules/lodash/fp/filter.js | 5 + .../data/node_modules/lodash/fp/find.js | 5 + .../data/node_modules/lodash/fp/findFrom.js | 5 + .../data/node_modules/lodash/fp/findIndex.js | 5 + .../node_modules/lodash/fp/findIndexFrom.js | 5 + .../data/node_modules/lodash/fp/findKey.js | 5 + .../data/node_modules/lodash/fp/findLast.js | 5 + .../node_modules/lodash/fp/findLastFrom.js | 5 + .../node_modules/lodash/fp/findLastIndex.js | 5 + .../lodash/fp/findLastIndexFrom.js | 5 + .../node_modules/lodash/fp/findLastKey.js | 5 + .../data/node_modules/lodash/fp/first.js | 1 + .../data/node_modules/lodash/fp/flatMap.js | 5 + .../node_modules/lodash/fp/flatMapDeep.js | 5 + .../node_modules/lodash/fp/flatMapDepth.js | 5 + .../data/node_modules/lodash/fp/flatten.js | 5 + .../node_modules/lodash/fp/flattenDeep.js | 5 + .../node_modules/lodash/fp/flattenDepth.js | 5 + .../data/node_modules/lodash/fp/flip.js | 5 + .../data/node_modules/lodash/fp/floor.js | 5 + .../data/node_modules/lodash/fp/flow.js | 5 + .../data/node_modules/lodash/fp/flowRight.js | 5 + .../data/node_modules/lodash/fp/forEach.js | 5 + .../node_modules/lodash/fp/forEachRight.js | 5 + .../data/node_modules/lodash/fp/forIn.js | 5 + .../data/node_modules/lodash/fp/forInRight.js | 5 + .../data/node_modules/lodash/fp/forOwn.js | 5 + .../node_modules/lodash/fp/forOwnRight.js | 5 + .../data/node_modules/lodash/fp/fromPairs.js | 5 + .../data/node_modules/lodash/fp/function.js | 2 + .../data/node_modules/lodash/fp/functions.js | 5 + .../node_modules/lodash/fp/functionsIn.js | 5 + .../rootfs/data/node_modules/lodash/fp/get.js | 5 + .../data/node_modules/lodash/fp/getOr.js | 5 + .../data/node_modules/lodash/fp/groupBy.js | 5 + .../rootfs/data/node_modules/lodash/fp/gt.js | 5 + .../rootfs/data/node_modules/lodash/fp/gte.js | 5 + .../rootfs/data/node_modules/lodash/fp/has.js | 5 + .../data/node_modules/lodash/fp/hasIn.js | 5 + .../data/node_modules/lodash/fp/head.js | 5 + .../data/node_modules/lodash/fp/identical.js | 1 + .../data/node_modules/lodash/fp/identity.js | 5 + .../data/node_modules/lodash/fp/inRange.js | 5 + .../data/node_modules/lodash/fp/includes.js | 5 + .../node_modules/lodash/fp/includesFrom.js | 5 + .../data/node_modules/lodash/fp/indexBy.js | 1 + .../data/node_modules/lodash/fp/indexOf.js | 5 + .../node_modules/lodash/fp/indexOfFrom.js | 5 + .../data/node_modules/lodash/fp/init.js | 1 + .../data/node_modules/lodash/fp/initial.js | 5 + .../node_modules/lodash/fp/intersection.js | 5 + .../node_modules/lodash/fp/intersectionBy.js | 5 + .../lodash/fp/intersectionWith.js | 5 + .../data/node_modules/lodash/fp/invert.js | 5 + .../data/node_modules/lodash/fp/invertBy.js | 5 + .../data/node_modules/lodash/fp/invertObj.js | 1 + .../data/node_modules/lodash/fp/invoke.js | 5 + .../data/node_modules/lodash/fp/invokeArgs.js | 5 + .../node_modules/lodash/fp/invokeArgsMap.js | 5 + .../data/node_modules/lodash/fp/invokeMap.js | 5 + .../node_modules/lodash/fp/isArguments.js | 5 + .../data/node_modules/lodash/fp/isArray.js | 5 + .../node_modules/lodash/fp/isArrayBuffer.js | 5 + .../node_modules/lodash/fp/isArrayLike.js | 5 + .../lodash/fp/isArrayLikeObject.js | 5 + .../data/node_modules/lodash/fp/isBoolean.js | 5 + .../data/node_modules/lodash/fp/isBuffer.js | 5 + .../data/node_modules/lodash/fp/isDate.js | 5 + .../data/node_modules/lodash/fp/isElement.js | 5 + .../data/node_modules/lodash/fp/isEmpty.js | 5 + .../data/node_modules/lodash/fp/isEqual.js | 5 + .../node_modules/lodash/fp/isEqualWith.js | 5 + .../data/node_modules/lodash/fp/isError.js | 5 + .../data/node_modules/lodash/fp/isFinite.js | 5 + .../data/node_modules/lodash/fp/isFunction.js | 5 + .../data/node_modules/lodash/fp/isInteger.js | 5 + .../data/node_modules/lodash/fp/isLength.js | 5 + .../data/node_modules/lodash/fp/isMap.js | 5 + .../data/node_modules/lodash/fp/isMatch.js | 5 + .../node_modules/lodash/fp/isMatchWith.js | 5 + .../data/node_modules/lodash/fp/isNaN.js | 5 + .../data/node_modules/lodash/fp/isNative.js | 5 + .../data/node_modules/lodash/fp/isNil.js | 5 + .../data/node_modules/lodash/fp/isNull.js | 5 + .../data/node_modules/lodash/fp/isNumber.js | 5 + .../data/node_modules/lodash/fp/isObject.js | 5 + .../node_modules/lodash/fp/isObjectLike.js | 5 + .../node_modules/lodash/fp/isPlainObject.js | 5 + .../data/node_modules/lodash/fp/isRegExp.js | 5 + .../node_modules/lodash/fp/isSafeInteger.js | 5 + .../data/node_modules/lodash/fp/isSet.js | 5 + .../data/node_modules/lodash/fp/isString.js | 5 + .../data/node_modules/lodash/fp/isSymbol.js | 5 + .../node_modules/lodash/fp/isTypedArray.js | 5 + .../node_modules/lodash/fp/isUndefined.js | 5 + .../data/node_modules/lodash/fp/isWeakMap.js | 5 + .../data/node_modules/lodash/fp/isWeakSet.js | 5 + .../data/node_modules/lodash/fp/iteratee.js | 5 + .../data/node_modules/lodash/fp/join.js | 5 + .../data/node_modules/lodash/fp/juxt.js | 1 + .../data/node_modules/lodash/fp/kebabCase.js | 5 + .../data/node_modules/lodash/fp/keyBy.js | 5 + .../data/node_modules/lodash/fp/keys.js | 5 + .../data/node_modules/lodash/fp/keysIn.js | 5 + .../data/node_modules/lodash/fp/lang.js | 2 + .../data/node_modules/lodash/fp/last.js | 5 + .../node_modules/lodash/fp/lastIndexOf.js | 5 + .../node_modules/lodash/fp/lastIndexOfFrom.js | 5 + .../data/node_modules/lodash/fp/lowerCase.js | 5 + .../data/node_modules/lodash/fp/lowerFirst.js | 5 + .../rootfs/data/node_modules/lodash/fp/lt.js | 5 + .../rootfs/data/node_modules/lodash/fp/lte.js | 5 + .../rootfs/data/node_modules/lodash/fp/map.js | 5 + .../data/node_modules/lodash/fp/mapKeys.js | 5 + .../data/node_modules/lodash/fp/mapValues.js | 5 + .../data/node_modules/lodash/fp/matches.js | 1 + .../node_modules/lodash/fp/matchesProperty.js | 5 + .../data/node_modules/lodash/fp/math.js | 2 + .../rootfs/data/node_modules/lodash/fp/max.js | 5 + .../data/node_modules/lodash/fp/maxBy.js | 5 + .../data/node_modules/lodash/fp/mean.js | 5 + .../data/node_modules/lodash/fp/meanBy.js | 5 + .../data/node_modules/lodash/fp/memoize.js | 5 + .../data/node_modules/lodash/fp/merge.js | 5 + .../data/node_modules/lodash/fp/mergeAll.js | 5 + .../node_modules/lodash/fp/mergeAllWith.js | 5 + .../data/node_modules/lodash/fp/mergeWith.js | 5 + .../data/node_modules/lodash/fp/method.js | 5 + .../data/node_modules/lodash/fp/methodOf.js | 5 + .../rootfs/data/node_modules/lodash/fp/min.js | 5 + .../data/node_modules/lodash/fp/minBy.js | 5 + .../data/node_modules/lodash/fp/mixin.js | 5 + .../data/node_modules/lodash/fp/multiply.js | 5 + .../data/node_modules/lodash/fp/nAry.js | 1 + .../data/node_modules/lodash/fp/negate.js | 5 + .../data/node_modules/lodash/fp/next.js | 5 + .../data/node_modules/lodash/fp/noop.js | 5 + .../rootfs/data/node_modules/lodash/fp/now.js | 5 + .../rootfs/data/node_modules/lodash/fp/nth.js | 5 + .../data/node_modules/lodash/fp/nthArg.js | 5 + .../data/node_modules/lodash/fp/number.js | 2 + .../data/node_modules/lodash/fp/object.js | 2 + .../data/node_modules/lodash/fp/omit.js | 5 + .../data/node_modules/lodash/fp/omitAll.js | 1 + .../data/node_modules/lodash/fp/omitBy.js | 5 + .../data/node_modules/lodash/fp/once.js | 5 + .../data/node_modules/lodash/fp/orderBy.js | 5 + .../data/node_modules/lodash/fp/over.js | 5 + .../data/node_modules/lodash/fp/overArgs.js | 5 + .../data/node_modules/lodash/fp/overEvery.js | 5 + .../data/node_modules/lodash/fp/overSome.js | 5 + .../rootfs/data/node_modules/lodash/fp/pad.js | 5 + .../data/node_modules/lodash/fp/padChars.js | 5 + .../node_modules/lodash/fp/padCharsEnd.js | 5 + .../node_modules/lodash/fp/padCharsStart.js | 5 + .../data/node_modules/lodash/fp/padEnd.js | 5 + .../data/node_modules/lodash/fp/padStart.js | 5 + .../data/node_modules/lodash/fp/parseInt.js | 5 + .../data/node_modules/lodash/fp/partial.js | 5 + .../node_modules/lodash/fp/partialRight.js | 5 + .../data/node_modules/lodash/fp/partition.js | 5 + .../data/node_modules/lodash/fp/path.js | 1 + .../data/node_modules/lodash/fp/pathEq.js | 1 + .../data/node_modules/lodash/fp/pathOr.js | 1 + .../data/node_modules/lodash/fp/paths.js | 1 + .../data/node_modules/lodash/fp/pick.js | 5 + .../data/node_modules/lodash/fp/pickAll.js | 1 + .../data/node_modules/lodash/fp/pickBy.js | 5 + .../data/node_modules/lodash/fp/pipe.js | 1 + .../node_modules/lodash/fp/placeholder.js | 6 + .../data/node_modules/lodash/fp/plant.js | 5 + .../data/node_modules/lodash/fp/pluck.js | 1 + .../data/node_modules/lodash/fp/prop.js | 1 + .../data/node_modules/lodash/fp/propEq.js | 1 + .../data/node_modules/lodash/fp/propOr.js | 1 + .../data/node_modules/lodash/fp/property.js | 1 + .../data/node_modules/lodash/fp/propertyOf.js | 5 + .../data/node_modules/lodash/fp/props.js | 1 + .../data/node_modules/lodash/fp/pull.js | 5 + .../data/node_modules/lodash/fp/pullAll.js | 5 + .../data/node_modules/lodash/fp/pullAllBy.js | 5 + .../node_modules/lodash/fp/pullAllWith.js | 5 + .../data/node_modules/lodash/fp/pullAt.js | 5 + .../data/node_modules/lodash/fp/random.js | 5 + .../data/node_modules/lodash/fp/range.js | 5 + .../data/node_modules/lodash/fp/rangeRight.js | 5 + .../data/node_modules/lodash/fp/rangeStep.js | 5 + .../node_modules/lodash/fp/rangeStepRight.js | 5 + .../data/node_modules/lodash/fp/rearg.js | 5 + .../data/node_modules/lodash/fp/reduce.js | 5 + .../node_modules/lodash/fp/reduceRight.js | 5 + .../data/node_modules/lodash/fp/reject.js | 5 + .../data/node_modules/lodash/fp/remove.js | 5 + .../data/node_modules/lodash/fp/repeat.js | 5 + .../data/node_modules/lodash/fp/replace.js | 5 + .../data/node_modules/lodash/fp/rest.js | 5 + .../data/node_modules/lodash/fp/restFrom.js | 5 + .../data/node_modules/lodash/fp/result.js | 5 + .../data/node_modules/lodash/fp/reverse.js | 5 + .../data/node_modules/lodash/fp/round.js | 5 + .../data/node_modules/lodash/fp/sample.js | 5 + .../data/node_modules/lodash/fp/sampleSize.js | 5 + .../rootfs/data/node_modules/lodash/fp/seq.js | 2 + .../rootfs/data/node_modules/lodash/fp/set.js | 5 + .../data/node_modules/lodash/fp/setWith.js | 5 + .../data/node_modules/lodash/fp/shuffle.js | 5 + .../data/node_modules/lodash/fp/size.js | 5 + .../data/node_modules/lodash/fp/slice.js | 5 + .../data/node_modules/lodash/fp/snakeCase.js | 5 + .../data/node_modules/lodash/fp/some.js | 5 + .../data/node_modules/lodash/fp/sortBy.js | 5 + .../node_modules/lodash/fp/sortedIndex.js | 5 + .../node_modules/lodash/fp/sortedIndexBy.js | 5 + .../node_modules/lodash/fp/sortedIndexOf.js | 5 + .../node_modules/lodash/fp/sortedLastIndex.js | 5 + .../lodash/fp/sortedLastIndexBy.js | 5 + .../lodash/fp/sortedLastIndexOf.js | 5 + .../data/node_modules/lodash/fp/sortedUniq.js | 5 + .../node_modules/lodash/fp/sortedUniqBy.js | 5 + .../data/node_modules/lodash/fp/split.js | 5 + .../data/node_modules/lodash/fp/spread.js | 5 + .../data/node_modules/lodash/fp/spreadFrom.js | 5 + .../data/node_modules/lodash/fp/startCase.js | 5 + .../data/node_modules/lodash/fp/startsWith.js | 5 + .../data/node_modules/lodash/fp/string.js | 2 + .../data/node_modules/lodash/fp/stubArray.js | 5 + .../data/node_modules/lodash/fp/stubFalse.js | 5 + .../data/node_modules/lodash/fp/stubObject.js | 5 + .../data/node_modules/lodash/fp/stubString.js | 5 + .../data/node_modules/lodash/fp/stubTrue.js | 5 + .../data/node_modules/lodash/fp/subtract.js | 5 + .../rootfs/data/node_modules/lodash/fp/sum.js | 5 + .../data/node_modules/lodash/fp/sumBy.js | 5 + .../lodash/fp/symmetricDifference.js | 1 + .../lodash/fp/symmetricDifferenceBy.js | 1 + .../lodash/fp/symmetricDifferenceWith.js | 1 + .../data/node_modules/lodash/fp/tail.js | 5 + .../data/node_modules/lodash/fp/take.js | 5 + .../data/node_modules/lodash/fp/takeLast.js | 1 + .../node_modules/lodash/fp/takeLastWhile.js | 1 + .../data/node_modules/lodash/fp/takeRight.js | 5 + .../node_modules/lodash/fp/takeRightWhile.js | 5 + .../data/node_modules/lodash/fp/takeWhile.js | 5 + .../rootfs/data/node_modules/lodash/fp/tap.js | 5 + .../data/node_modules/lodash/fp/template.js | 5 + .../lodash/fp/templateSettings.js | 5 + .../data/node_modules/lodash/fp/throttle.js | 5 + .../data/node_modules/lodash/fp/thru.js | 5 + .../data/node_modules/lodash/fp/times.js | 5 + .../data/node_modules/lodash/fp/toArray.js | 5 + .../data/node_modules/lodash/fp/toFinite.js | 5 + .../data/node_modules/lodash/fp/toInteger.js | 5 + .../data/node_modules/lodash/fp/toIterator.js | 5 + .../data/node_modules/lodash/fp/toJSON.js | 5 + .../data/node_modules/lodash/fp/toLength.js | 5 + .../data/node_modules/lodash/fp/toLower.js | 5 + .../data/node_modules/lodash/fp/toNumber.js | 5 + .../data/node_modules/lodash/fp/toPairs.js | 5 + .../data/node_modules/lodash/fp/toPairsIn.js | 5 + .../data/node_modules/lodash/fp/toPath.js | 5 + .../node_modules/lodash/fp/toPlainObject.js | 5 + .../node_modules/lodash/fp/toSafeInteger.js | 5 + .../data/node_modules/lodash/fp/toString.js | 5 + .../data/node_modules/lodash/fp/toUpper.js | 5 + .../data/node_modules/lodash/fp/transform.js | 5 + .../data/node_modules/lodash/fp/trim.js | 5 + .../data/node_modules/lodash/fp/trimChars.js | 5 + .../node_modules/lodash/fp/trimCharsEnd.js | 5 + .../node_modules/lodash/fp/trimCharsStart.js | 5 + .../data/node_modules/lodash/fp/trimEnd.js | 5 + .../data/node_modules/lodash/fp/trimStart.js | 5 + .../data/node_modules/lodash/fp/truncate.js | 5 + .../data/node_modules/lodash/fp/unapply.js | 1 + .../data/node_modules/lodash/fp/unary.js | 5 + .../data/node_modules/lodash/fp/unescape.js | 5 + .../data/node_modules/lodash/fp/union.js | 5 + .../data/node_modules/lodash/fp/unionBy.js | 5 + .../data/node_modules/lodash/fp/unionWith.js | 5 + .../data/node_modules/lodash/fp/uniq.js | 5 + .../data/node_modules/lodash/fp/uniqBy.js | 5 + .../data/node_modules/lodash/fp/uniqWith.js | 5 + .../data/node_modules/lodash/fp/uniqueId.js | 5 + .../data/node_modules/lodash/fp/unnest.js | 1 + .../data/node_modules/lodash/fp/unset.js | 5 + .../data/node_modules/lodash/fp/unzip.js | 5 + .../data/node_modules/lodash/fp/unzipWith.js | 5 + .../data/node_modules/lodash/fp/update.js | 5 + .../data/node_modules/lodash/fp/updateWith.js | 5 + .../data/node_modules/lodash/fp/upperCase.js | 5 + .../data/node_modules/lodash/fp/upperFirst.js | 5 + .../data/node_modules/lodash/fp/useWith.js | 1 + .../data/node_modules/lodash/fp/util.js | 2 + .../data/node_modules/lodash/fp/value.js | 5 + .../data/node_modules/lodash/fp/valueOf.js | 5 + .../data/node_modules/lodash/fp/values.js | 5 + .../data/node_modules/lodash/fp/valuesIn.js | 5 + .../data/node_modules/lodash/fp/where.js | 1 + .../data/node_modules/lodash/fp/whereEq.js | 1 + .../data/node_modules/lodash/fp/without.js | 5 + .../data/node_modules/lodash/fp/words.js | 5 + .../data/node_modules/lodash/fp/wrap.js | 5 + .../data/node_modules/lodash/fp/wrapperAt.js | 5 + .../node_modules/lodash/fp/wrapperChain.js | 5 + .../node_modules/lodash/fp/wrapperLodash.js | 5 + .../node_modules/lodash/fp/wrapperReverse.js | 5 + .../node_modules/lodash/fp/wrapperValue.js | 5 + .../rootfs/data/node_modules/lodash/fp/xor.js | 5 + .../data/node_modules/lodash/fp/xorBy.js | 5 + .../data/node_modules/lodash/fp/xorWith.js | 5 + .../rootfs/data/node_modules/lodash/fp/zip.js | 5 + .../data/node_modules/lodash/fp/zipAll.js | 5 + .../data/node_modules/lodash/fp/zipObj.js | 1 + .../data/node_modules/lodash/fp/zipObject.js | 5 + .../node_modules/lodash/fp/zipObjectDeep.js | 5 + .../data/node_modules/lodash/fp/zipWith.js | 5 + .../data/node_modules/lodash/fromPairs.js | 28 + .../data/node_modules/lodash/function.js | 25 + .../data/node_modules/lodash/functions.js | 31 + .../data/node_modules/lodash/functionsIn.js | 31 + .../rootfs/data/node_modules/lodash/get.js | 33 + .../data/node_modules/lodash/groupBy.js | 41 + nodered/rootfs/data/node_modules/lodash/gt.js | 29 + .../rootfs/data/node_modules/lodash/gte.js | 30 + .../rootfs/data/node_modules/lodash/has.js | 35 + .../rootfs/data/node_modules/lodash/hasIn.js | 34 + .../rootfs/data/node_modules/lodash/head.js | 23 + .../data/node_modules/lodash/identity.js | 21 + .../data/node_modules/lodash/inRange.js | 55 + .../data/node_modules/lodash/includes.js | 53 + .../rootfs/data/node_modules/lodash/index.js | 1 + .../data/node_modules/lodash/indexOf.js | 42 + .../data/node_modules/lodash/initial.js | 22 + .../data/node_modules/lodash/intersection.js | 30 + .../node_modules/lodash/intersectionBy.js | 45 + .../node_modules/lodash/intersectionWith.js | 41 + .../rootfs/data/node_modules/lodash/invert.js | 42 + .../data/node_modules/lodash/invertBy.js | 56 + .../rootfs/data/node_modules/lodash/invoke.js | 24 + .../data/node_modules/lodash/invokeMap.js | 41 + .../data/node_modules/lodash/isArguments.js | 36 + .../data/node_modules/lodash/isArray.js | 26 + .../data/node_modules/lodash/isArrayBuffer.js | 27 + .../data/node_modules/lodash/isArrayLike.js | 33 + .../node_modules/lodash/isArrayLikeObject.js | 33 + .../data/node_modules/lodash/isBoolean.js | 29 + .../data/node_modules/lodash/isBuffer.js | 38 + .../rootfs/data/node_modules/lodash/isDate.js | 27 + .../data/node_modules/lodash/isElement.js | 25 + .../data/node_modules/lodash/isEmpty.js | 77 + .../data/node_modules/lodash/isEqual.js | 35 + .../data/node_modules/lodash/isEqualWith.js | 41 + .../data/node_modules/lodash/isError.js | 36 + .../data/node_modules/lodash/isFinite.js | 36 + .../data/node_modules/lodash/isFunction.js | 37 + .../data/node_modules/lodash/isInteger.js | 33 + .../data/node_modules/lodash/isLength.js | 35 + .../rootfs/data/node_modules/lodash/isMap.js | 27 + .../data/node_modules/lodash/isMatch.js | 36 + .../data/node_modules/lodash/isMatchWith.js | 41 + .../rootfs/data/node_modules/lodash/isNaN.js | 38 + .../data/node_modules/lodash/isNative.js | 40 + .../rootfs/data/node_modules/lodash/isNil.js | 25 + .../rootfs/data/node_modules/lodash/isNull.js | 22 + .../data/node_modules/lodash/isNumber.js | 38 + .../data/node_modules/lodash/isObject.js | 31 + .../data/node_modules/lodash/isObjectLike.js | 29 + .../data/node_modules/lodash/isPlainObject.js | 62 + .../data/node_modules/lodash/isRegExp.js | 27 + .../data/node_modules/lodash/isSafeInteger.js | 37 + .../rootfs/data/node_modules/lodash/isSet.js | 27 + .../data/node_modules/lodash/isString.js | 30 + .../data/node_modules/lodash/isSymbol.js | 29 + .../data/node_modules/lodash/isTypedArray.js | 27 + .../data/node_modules/lodash/isUndefined.js | 22 + .../data/node_modules/lodash/isWeakMap.js | 28 + .../data/node_modules/lodash/isWeakSet.js | 28 + .../data/node_modules/lodash/iteratee.js | 53 + .../rootfs/data/node_modules/lodash/join.js | 26 + .../data/node_modules/lodash/kebabCase.js | 28 + .../rootfs/data/node_modules/lodash/keyBy.js | 36 + .../rootfs/data/node_modules/lodash/keys.js | 37 + .../rootfs/data/node_modules/lodash/keysIn.js | 32 + .../rootfs/data/node_modules/lodash/lang.js | 58 + .../rootfs/data/node_modules/lodash/last.js | 20 + .../data/node_modules/lodash/lastIndexOf.js | 46 + .../rootfs/data/node_modules/lodash/lodash.js | 17112 +++++ .../data/node_modules/lodash/lodash.min.js | 137 + .../data/node_modules/lodash/lowerCase.js | 27 + .../data/node_modules/lodash/lowerFirst.js | 22 + nodered/rootfs/data/node_modules/lodash/lt.js | 29 + .../rootfs/data/node_modules/lodash/lte.js | 30 + .../rootfs/data/node_modules/lodash/map.js | 53 + .../data/node_modules/lodash/mapKeys.js | 36 + .../data/node_modules/lodash/mapValues.js | 43 + .../data/node_modules/lodash/matches.js | 39 + .../node_modules/lodash/matchesProperty.js | 37 + .../rootfs/data/node_modules/lodash/math.js | 17 + .../rootfs/data/node_modules/lodash/max.js | 29 + .../rootfs/data/node_modules/lodash/maxBy.js | 34 + .../rootfs/data/node_modules/lodash/mean.js | 22 + .../rootfs/data/node_modules/lodash/meanBy.js | 31 + .../data/node_modules/lodash/memoize.js | 73 + .../rootfs/data/node_modules/lodash/merge.js | 39 + .../data/node_modules/lodash/mergeWith.js | 39 + .../rootfs/data/node_modules/lodash/method.js | 34 + .../data/node_modules/lodash/methodOf.js | 33 + .../rootfs/data/node_modules/lodash/min.js | 29 + .../rootfs/data/node_modules/lodash/minBy.js | 34 + .../rootfs/data/node_modules/lodash/mixin.js | 74 + .../data/node_modules/lodash/multiply.js | 22 + .../rootfs/data/node_modules/lodash/negate.js | 40 + .../rootfs/data/node_modules/lodash/next.js | 35 + .../rootfs/data/node_modules/lodash/noop.js | 17 + .../rootfs/data/node_modules/lodash/now.js | 23 + .../rootfs/data/node_modules/lodash/nth.js | 29 + .../rootfs/data/node_modules/lodash/nthArg.js | 32 + .../rootfs/data/node_modules/lodash/number.js | 5 + .../rootfs/data/node_modules/lodash/object.js | 49 + .../rootfs/data/node_modules/lodash/omit.js | 57 + .../rootfs/data/node_modules/lodash/omitBy.js | 29 + .../rootfs/data/node_modules/lodash/once.js | 25 + .../data/node_modules/lodash/orderBy.js | 47 + .../rootfs/data/node_modules/lodash/over.js | 24 + .../data/node_modules/lodash/overArgs.js | 61 + .../data/node_modules/lodash/overEvery.js | 30 + .../data/node_modules/lodash/overSome.js | 30 + .../data/node_modules/lodash/package.json | 63 + .../rootfs/data/node_modules/lodash/pad.js | 49 + .../rootfs/data/node_modules/lodash/padEnd.js | 39 + .../data/node_modules/lodash/padStart.js | 39 + .../data/node_modules/lodash/parseInt.js | 43 + .../data/node_modules/lodash/partial.js | 50 + .../data/node_modules/lodash/partialRight.js | 49 + .../data/node_modules/lodash/partition.js | 43 + .../rootfs/data/node_modules/lodash/pick.js | 25 + .../rootfs/data/node_modules/lodash/pickBy.js | 37 + .../rootfs/data/node_modules/lodash/plant.js | 48 + .../data/node_modules/lodash/property.js | 32 + .../data/node_modules/lodash/propertyOf.js | 30 + .../rootfs/data/node_modules/lodash/pull.js | 29 + .../data/node_modules/lodash/pullAll.js | 29 + .../data/node_modules/lodash/pullAllBy.js | 33 + .../data/node_modules/lodash/pullAllWith.js | 32 + .../rootfs/data/node_modules/lodash/pullAt.js | 43 + .../rootfs/data/node_modules/lodash/random.js | 82 + .../rootfs/data/node_modules/lodash/range.js | 46 + .../data/node_modules/lodash/rangeRight.js | 41 + .../rootfs/data/node_modules/lodash/rearg.js | 33 + .../rootfs/data/node_modules/lodash/reduce.js | 51 + .../data/node_modules/lodash/reduceRight.js | 36 + .../rootfs/data/node_modules/lodash/reject.js | 46 + .../rootfs/data/node_modules/lodash/remove.js | 53 + .../rootfs/data/node_modules/lodash/repeat.js | 37 + .../data/node_modules/lodash/replace.js | 29 + .../rootfs/data/node_modules/lodash/rest.js | 40 + .../rootfs/data/node_modules/lodash/result.js | 56 + .../data/node_modules/lodash/reverse.js | 34 + .../rootfs/data/node_modules/lodash/round.js | 26 + .../rootfs/data/node_modules/lodash/sample.js | 24 + .../data/node_modules/lodash/sampleSize.js | 37 + .../rootfs/data/node_modules/lodash/seq.js | 16 + .../rootfs/data/node_modules/lodash/set.js | 35 + .../data/node_modules/lodash/setWith.js | 32 + .../data/node_modules/lodash/shuffle.js | 25 + .../rootfs/data/node_modules/lodash/size.js | 46 + .../rootfs/data/node_modules/lodash/slice.js | 37 + .../data/node_modules/lodash/snakeCase.js | 28 + .../rootfs/data/node_modules/lodash/some.js | 51 + .../rootfs/data/node_modules/lodash/sortBy.js | 48 + .../data/node_modules/lodash/sortedIndex.js | 24 + .../data/node_modules/lodash/sortedIndexBy.js | 33 + .../data/node_modules/lodash/sortedIndexOf.js | 31 + .../node_modules/lodash/sortedLastIndex.js | 25 + .../node_modules/lodash/sortedLastIndexBy.js | 33 + .../node_modules/lodash/sortedLastIndexOf.js | 31 + .../data/node_modules/lodash/sortedUniq.js | 24 + .../data/node_modules/lodash/sortedUniqBy.js | 26 + .../rootfs/data/node_modules/lodash/split.js | 52 + .../rootfs/data/node_modules/lodash/spread.js | 63 + .../data/node_modules/lodash/startCase.js | 29 + .../data/node_modules/lodash/startsWith.js | 39 + .../rootfs/data/node_modules/lodash/string.js | 33 + .../data/node_modules/lodash/stubArray.js | 23 + .../data/node_modules/lodash/stubFalse.js | 18 + .../data/node_modules/lodash/stubObject.js | 23 + .../data/node_modules/lodash/stubString.js | 18 + .../data/node_modules/lodash/stubTrue.js | 18 + .../data/node_modules/lodash/subtract.js | 22 + .../rootfs/data/node_modules/lodash/sum.js | 24 + .../rootfs/data/node_modules/lodash/sumBy.js | 33 + .../rootfs/data/node_modules/lodash/tail.js | 22 + .../rootfs/data/node_modules/lodash/take.js | 37 + .../data/node_modules/lodash/takeRight.js | 39 + .../node_modules/lodash/takeRightWhile.js | 45 + .../data/node_modules/lodash/takeWhile.js | 45 + .../rootfs/data/node_modules/lodash/tap.js | 29 + .../data/node_modules/lodash/template.js | 253 + .../node_modules/lodash/templateSettings.js | 67 + .../data/node_modules/lodash/throttle.js | 69 + .../rootfs/data/node_modules/lodash/thru.js | 28 + .../rootfs/data/node_modules/lodash/times.js | 51 + .../data/node_modules/lodash/toArray.js | 58 + .../data/node_modules/lodash/toFinite.js | 42 + .../data/node_modules/lodash/toInteger.js | 36 + .../data/node_modules/lodash/toIterator.js | 23 + .../rootfs/data/node_modules/lodash/toJSON.js | 1 + .../data/node_modules/lodash/toLength.js | 38 + .../data/node_modules/lodash/toLower.js | 28 + .../data/node_modules/lodash/toNumber.js | 66 + .../data/node_modules/lodash/toPairs.js | 30 + .../data/node_modules/lodash/toPairsIn.js | 30 + .../rootfs/data/node_modules/lodash/toPath.js | 33 + .../data/node_modules/lodash/toPlainObject.js | 32 + .../data/node_modules/lodash/toSafeInteger.js | 37 + .../data/node_modules/lodash/toString.js | 28 + .../data/node_modules/lodash/toUpper.js | 28 + .../data/node_modules/lodash/transform.js | 65 + .../rootfs/data/node_modules/lodash/trim.js | 49 + .../data/node_modules/lodash/trimEnd.js | 43 + .../data/node_modules/lodash/trimStart.js | 43 + .../data/node_modules/lodash/truncate.js | 111 + .../rootfs/data/node_modules/lodash/unary.js | 22 + .../data/node_modules/lodash/unescape.js | 34 + .../rootfs/data/node_modules/lodash/union.js | 26 + .../data/node_modules/lodash/unionBy.js | 39 + .../data/node_modules/lodash/unionWith.js | 34 + .../rootfs/data/node_modules/lodash/uniq.js | 25 + .../rootfs/data/node_modules/lodash/uniqBy.js | 31 + .../data/node_modules/lodash/uniqWith.js | 28 + .../data/node_modules/lodash/uniqueId.js | 28 + .../rootfs/data/node_modules/lodash/unset.js | 34 + .../rootfs/data/node_modules/lodash/unzip.js | 45 + .../data/node_modules/lodash/unzipWith.js | 39 + .../rootfs/data/node_modules/lodash/update.js | 35 + .../data/node_modules/lodash/updateWith.js | 33 + .../data/node_modules/lodash/upperCase.js | 27 + .../data/node_modules/lodash/upperFirst.js | 22 + .../rootfs/data/node_modules/lodash/util.js | 34 + .../rootfs/data/node_modules/lodash/value.js | 1 + .../data/node_modules/lodash/valueOf.js | 1 + .../rootfs/data/node_modules/lodash/values.js | 34 + .../data/node_modules/lodash/valuesIn.js | 32 + .../data/node_modules/lodash/without.js | 31 + .../rootfs/data/node_modules/lodash/words.js | 35 + .../rootfs/data/node_modules/lodash/wrap.js | 30 + .../data/node_modules/lodash/wrapperAt.js | 48 + .../data/node_modules/lodash/wrapperChain.js | 34 + .../data/node_modules/lodash/wrapperLodash.js | 147 + .../node_modules/lodash/wrapperReverse.js | 44 + .../data/node_modules/lodash/wrapperValue.js | 21 + .../rootfs/data/node_modules/lodash/xor.js | 28 + .../rootfs/data/node_modules/lodash/xorBy.js | 39 + .../data/node_modules/lodash/xorWith.js | 34 + .../rootfs/data/node_modules/lodash/zip.js | 22 + .../data/node_modules/lodash/zipObject.js | 24 + .../data/node_modules/lodash/zipObjectDeep.js | 23 + .../data/node_modules/lodash/zipWith.js | 32 + .../mailparser/.github/FUNDING.yml | 4 + .../node_modules/mailparser/.prettierrc.js | 5 + .../node_modules/mailparser/LICENSE.EUPL-1.2 | 153 + .../data/node_modules/mailparser/LICENSE.MIT | 16 + .../data/node_modules/mailparser/README.md | 11 + .../data/node_modules/mailparser/index.js | 9 + .../mailparser/lib/mail-parser.js | 1140 + .../mailparser/lib/simple-parser.js | 133 + .../mailparser/lib/stream-hash.js | 28 + .../node_modules/nodemailer/.prettierrc.js | 5 + .../node_modules/nodemailer/CHANGELOG.md | 582 + .../node_modules/nodemailer/CONTRIBUTING.md | 67 + .../node_modules/nodemailer/LICENSE | 16 + .../node_modules/nodemailer/README.md | 47 + .../nodemailer/lib/addressparser/index.js | 309 + .../nodemailer/lib/base64/index.js | 142 + .../node_modules/nodemailer/lib/dkim/index.js | 251 + .../nodemailer/lib/dkim/message-parser.js | 158 + .../nodemailer/lib/dkim/relaxed-body.js | 154 + .../node_modules/nodemailer/lib/dkim/sign.js | 117 + .../nodemailer/lib/fetch/cookies.js | 284 + .../nodemailer/lib/fetch/index.js | 277 + .../nodemailer/lib/json-transport/index.js | 82 + .../nodemailer/lib/mail-composer/index.js | 559 + .../nodemailer/lib/mailer/index.js | 423 + .../nodemailer/lib/mailer/mail-message.js | 320 + .../nodemailer/lib/mime-funcs/index.js | 628 + .../nodemailer/lib/mime-funcs/mime-types.js | 2109 + .../nodemailer/lib/mime-node/index.js | 1257 + .../nodemailer/lib/mime-node/last-newline.js | 33 + .../node_modules/nodemailer/lib/nodemailer.js | 148 + .../node_modules/nodemailer/lib/qp/index.js | 219 + .../lib/sendmail-transport/index.js | 208 + .../lib/sendmail-transport/le-unix.js | 43 + .../lib/sendmail-transport/le-windows.js | 52 + .../nodemailer/lib/ses-transport/index.js | 312 + .../nodemailer/lib/shared/index.js | 510 + .../lib/smtp-connection/data-stream.js | 108 + .../lib/smtp-connection/http-proxy-client.js | 131 + .../nodemailer/lib/smtp-connection/index.js | 1750 + .../nodemailer/lib/smtp-pool/index.js | 600 + .../nodemailer/lib/smtp-pool/pool-resource.js | 253 + .../nodemailer/lib/smtp-transport/index.js | 408 + .../nodemailer/lib/stream-transport/index.js | 142 + .../nodemailer/lib/well-known/index.js | 47 + .../nodemailer/lib/well-known/services.json | 262 + .../nodemailer/lib/xoauth2/index.js | 366 + .../node_modules/nodemailer/package.json | 72 + .../data/node_modules/mailparser/package.json | 81 + .../node_modules/mailsplit/LICENSE.EUPL-1.2 | 153 + .../data/node_modules/mailsplit/LICENSE.MIT | 16 + .../data/node_modules/mailsplit/README.md | 211 + .../data/node_modules/mailsplit/index.js | 15 + .../mailsplit/lib/flowed-decoder.js | 55 + .../node_modules/mailsplit/lib/headers.js | 206 + .../mailsplit/lib/message-joiner.js | 30 + .../mailsplit/lib/message-splitter.js | 422 + .../node_modules/mailsplit/lib/mime-node.js | 235 + .../mailsplit/lib/node-rewriter.js | 194 + .../mailsplit/lib/node-streamer.js | 121 + .../data/node_modules/mailsplit/package.json | 60 + .../map-age-cleaner/dist/index.d.ts | 20 + .../map-age-cleaner/dist/index.js | 92 + .../data/node_modules/map-age-cleaner/license | 9 + .../node_modules/map-age-cleaner/package.json | 91 + .../node_modules/map-age-cleaner/readme.md | 67 + .../data/node_modules/mathjs/CONTRIBUTING.md | 17 + .../data/node_modules/mathjs/HISTORY.md | 1148 + .../rootfs/data/node_modules/mathjs/LICENSE | 176 + .../rootfs/data/node_modules/mathjs/NOTICE | 16 + .../rootfs/data/node_modules/mathjs/README.md | 123 + .../data/node_modules/mathjs/ROADMAP.md | 26 + .../data/node_modules/mathjs/bin/cli.js | 428 + .../data/node_modules/mathjs/bin/repl.js | 10 + .../data/node_modules/mathjs/composer.json | 29 + .../rootfs/data/node_modules/mathjs/core.js | 1 + .../data/node_modules/mathjs/dist/math.js | 56616 ++++++++++++++++ .../data/node_modules/mathjs/dist/math.map | 1 + .../data/node_modules/mathjs/dist/math.min.js | 54 + .../data/node_modules/mathjs/docs/chaining.md | 3 + .../mathjs/docs/command_line_interface.md | 87 + .../node_modules/mathjs/docs/configuration.md | 3 + .../data/node_modules/mathjs/docs/core.md | 3 + .../node_modules/mathjs/docs/core/chaining.md | 41 + .../mathjs/docs/core/configuration.md | 125 + .../mathjs/docs/core/extension.md | 236 + .../node_modules/mathjs/docs/core/index.md | 21 + .../mathjs/docs/core/serialization.md | 38 + .../mathjs/docs/custom_bundling.md | 72 + .../mathjs/docs/datatypes/bignumbers.md | 102 + .../mathjs/docs/datatypes/complex_numbers.md | 123 + .../mathjs/docs/datatypes/fractions.md | 75 + .../mathjs/docs/datatypes/index.md | 67 + .../mathjs/docs/datatypes/matrices.md | 343 + .../mathjs/docs/datatypes/numbers.md | 106 + .../mathjs/docs/datatypes/units.md | 424 + .../node_modules/mathjs/docs/expressions.md | 3 + .../mathjs/docs/expressions/algebra.md | 59 + .../mathjs/docs/expressions/customization.md | 376 + .../docs/expressions/expression_trees.md | 610 + .../mathjs/docs/expressions/index.md | 20 + .../mathjs/docs/expressions/parsing.md | 207 + .../mathjs/docs/expressions/syntax.md | 599 + .../node_modules/mathjs/docs/extension.md | 3 + .../mathjs/docs/getting_started.md | 113 + .../data/node_modules/mathjs/docs/index.md | 38 + .../mathjs/docs/reference/classes.md | 87 + .../docs/reference/classes/densematrix.md | 247 + .../docs/reference/classes/fibonacciheap.md | 70 + .../docs/reference/classes/matrixindex.md | 133 + .../docs/reference/classes/matrixrange.md | 158 + .../docs/reference/classes/resultset.md | 47 + .../docs/reference/classes/sparsematrix.md | 245 + .../mathjs/docs/reference/classes/unit.md | 242 + .../mathjs/docs/reference/constants.md | 29 + .../mathjs/docs/reference/functions.md | 267 + .../mathjs/docs/reference/functions/abs.md | 40 + .../mathjs/docs/reference/functions/acos.md | 43 + .../mathjs/docs/reference/functions/acosh.md | 41 + .../mathjs/docs/reference/functions/acot.md | 42 + .../mathjs/docs/reference/functions/acoth.md | 40 + .../mathjs/docs/reference/functions/acsc.md | 43 + .../mathjs/docs/reference/functions/acsch.md | 40 + .../mathjs/docs/reference/functions/add.md | 53 + .../mathjs/docs/reference/functions/and.md | 47 + .../mathjs/docs/reference/functions/arg.md | 47 + .../mathjs/docs/reference/functions/asec.md | 43 + .../mathjs/docs/reference/functions/asech.md | 40 + .../mathjs/docs/reference/functions/asin.md | 43 + .../mathjs/docs/reference/functions/asinh.md | 40 + .../mathjs/docs/reference/functions/atan.md | 43 + .../mathjs/docs/reference/functions/atan2.md | 50 + .../mathjs/docs/reference/functions/atanh.md | 40 + .../docs/reference/functions/bellNumbers.md | 39 + .../docs/reference/functions/bignumber.md | 47 + .../mathjs/docs/reference/functions/bitAnd.md | 45 + .../mathjs/docs/reference/functions/bitNot.md | 45 + .../mathjs/docs/reference/functions/bitOr.md | 46 + .../mathjs/docs/reference/functions/bitXor.md | 45 + .../docs/reference/functions/boolean.md | 50 + .../docs/reference/functions/catalan.md | 39 + .../mathjs/docs/reference/functions/cbrt.md | 54 + .../mathjs/docs/reference/functions/ceil.md | 48 + .../mathjs/docs/reference/functions/chain.md | 54 + .../mathjs/docs/reference/functions/clone.md | 37 + .../docs/reference/functions/combinations.md | 42 + .../docs/reference/functions/compare.md | 56 + .../docs/reference/functions/compile.md | 50 + .../docs/reference/functions/complex.md | 61 + .../docs/reference/functions/composition.md | 40 + .../mathjs/docs/reference/functions/concat.md | 50 + .../mathjs/docs/reference/functions/config.md | 37 + .../mathjs/docs/reference/functions/conj.md | 44 + .../mathjs/docs/reference/functions/cos.md | 45 + .../mathjs/docs/reference/functions/cosh.md | 40 + .../mathjs/docs/reference/functions/cot.md | 41 + .../mathjs/docs/reference/functions/coth.md | 43 + .../docs/reference/functions/createUnit.md | 52 + .../mathjs/docs/reference/functions/cross.md | 52 + .../mathjs/docs/reference/functions/csc.md | 41 + .../mathjs/docs/reference/functions/csch.md | 43 + .../mathjs/docs/reference/functions/cube.md | 45 + .../docs/reference/functions/deepEqual.md | 45 + .../docs/reference/functions/derivative.md | 55 + .../mathjs/docs/reference/functions/det.md | 43 + .../mathjs/docs/reference/functions/diag.md | 55 + .../docs/reference/functions/distance.md | 72 + .../mathjs/docs/reference/functions/divide.md | 49 + .../mathjs/docs/reference/functions/dot.md | 42 + .../docs/reference/functions/dotDivide.md | 46 + .../docs/reference/functions/dotMultiply.md | 46 + .../mathjs/docs/reference/functions/dotPow.md | 43 + .../mathjs/docs/reference/functions/equal.md | 67 + .../mathjs/docs/reference/functions/erf.md | 43 + .../mathjs/docs/reference/functions/eval.md | 47 + .../mathjs/docs/reference/functions/exp.md | 47 + .../mathjs/docs/reference/functions/eye.md | 51 + .../docs/reference/functions/factorial.md | 42 + .../mathjs/docs/reference/functions/filter.md | 44 + .../mathjs/docs/reference/functions/fix.md | 47 + .../docs/reference/functions/flatten.md | 39 + .../mathjs/docs/reference/functions/floor.md | 47 + .../docs/reference/functions/forEach.md | 35 + .../mathjs/docs/reference/functions/format.md | 100 + .../docs/reference/functions/fraction.md | 45 + .../mathjs/docs/reference/functions/gamma.md | 43 + .../mathjs/docs/reference/functions/gcd.md | 44 + .../mathjs/docs/reference/functions/help.md | 36 + .../mathjs/docs/reference/functions/hypot.md | 45 + .../mathjs/docs/reference/functions/im.md | 47 + .../mathjs/docs/reference/functions/import.md | 60 + .../mathjs/docs/reference/functions/index.md | 57 + .../docs/reference/functions/intersect.md | 44 + .../mathjs/docs/reference/functions/inv.md | 39 + .../docs/reference/functions/isInteger.md | 49 + .../mathjs/docs/reference/functions/isNaN.md | 50 + .../docs/reference/functions/isNegative.md | 49 + .../docs/reference/functions/isNumeric.md | 47 + .../docs/reference/functions/isPositive.md | 51 + .../docs/reference/functions/isPrime.md | 48 + .../mathjs/docs/reference/functions/isZero.md | 53 + .../docs/reference/functions/kldivergence.md | 35 + .../mathjs/docs/reference/functions/kron.md | 47 + .../mathjs/docs/reference/functions/larger.md | 53 + .../docs/reference/functions/largerEq.md | 49 + .../mathjs/docs/reference/functions/lcm.md | 48 + .../docs/reference/functions/leftShift.md | 46 + .../mathjs/docs/reference/functions/log.md | 49 + .../mathjs/docs/reference/functions/log10.md | 42 + .../mathjs/docs/reference/functions/lsolve.md | 44 + .../mathjs/docs/reference/functions/lup.md | 46 + .../docs/reference/functions/lusolve.md | 53 + .../mathjs/docs/reference/functions/mad.md | 44 + .../mathjs/docs/reference/functions/map.md | 42 + .../mathjs/docs/reference/functions/matrix.md | 56 + .../mathjs/docs/reference/functions/max.md | 55 + .../mathjs/docs/reference/functions/mean.md | 51 + .../mathjs/docs/reference/functions/median.md | 51 + .../mathjs/docs/reference/functions/min.md | 55 + .../mathjs/docs/reference/functions/mod.md | 53 + .../mathjs/docs/reference/functions/mode.md | 44 + .../docs/reference/functions/multinomial.md | 40 + .../docs/reference/functions/multiply.md | 54 + .../mathjs/docs/reference/functions/norm.md | 53 + .../mathjs/docs/reference/functions/not.md | 44 + .../docs/reference/functions/nthRoot.md | 47 + .../mathjs/docs/reference/functions/number.md | 49 + .../mathjs/docs/reference/functions/ones.md | 53 + .../mathjs/docs/reference/functions/or.md | 47 + .../mathjs/docs/reference/functions/parse.md | 53 + .../mathjs/docs/reference/functions/parser.md | 64 + .../reference/functions/partitionSelect.md | 47 + .../docs/reference/functions/permutations.md | 44 + .../docs/reference/functions/pickRandom.md | 48 + .../mathjs/docs/reference/functions/pow.md | 53 + .../mathjs/docs/reference/functions/print.md | 52 + .../mathjs/docs/reference/functions/prod.md | 49 + .../docs/reference/functions/quantileSeq.md | 56 + .../mathjs/docs/reference/functions/random.md | 48 + .../docs/reference/functions/randomInt.md | 46 + .../mathjs/docs/reference/functions/range.md | 64 + .../mathjs/docs/reference/functions/re.md | 47 + .../mathjs/docs/reference/functions/resize.md | 44 + .../reference/functions/rightArithShift.md | 46 + .../docs/reference/functions/rightLogShift.md | 46 + .../mathjs/docs/reference/functions/round.md | 51 + .../mathjs/docs/reference/functions/sec.md | 41 + .../mathjs/docs/reference/functions/sech.md | 43 + .../mathjs/docs/reference/functions/sign.md | 46 + .../docs/reference/functions/simplify.md | 63 + .../mathjs/docs/reference/functions/sin.md | 45 + .../mathjs/docs/reference/functions/sinh.md | 40 + .../mathjs/docs/reference/functions/size.md | 43 + .../mathjs/docs/reference/functions/slu.md | 36 + .../docs/reference/functions/smaller.md | 53 + .../docs/reference/functions/smallerEq.md | 48 + .../mathjs/docs/reference/functions/sort.md | 46 + .../mathjs/docs/reference/functions/sparse.md | 51 + .../docs/reference/functions/splitUnit.md | 37 + .../mathjs/docs/reference/functions/sqrt.md | 43 + .../mathjs/docs/reference/functions/square.md | 45 + .../docs/reference/functions/squeeze.md | 47 + .../mathjs/docs/reference/functions/std.md | 61 + .../docs/reference/functions/stirlingS2.md | 42 + .../mathjs/docs/reference/functions/string.md | 49 + .../mathjs/docs/reference/functions/subset.md | 51 + .../docs/reference/functions/subtract.md | 48 + .../mathjs/docs/reference/functions/sum.md | 47 + .../mathjs/docs/reference/functions/tan.md | 43 + .../mathjs/docs/reference/functions/tanh.md | 44 + .../mathjs/docs/reference/functions/to.md | 41 + .../mathjs/docs/reference/functions/trace.md | 44 + .../docs/reference/functions/transpose.md | 43 + .../mathjs/docs/reference/functions/typed.md | 56 + .../mathjs/docs/reference/functions/typeof.md | 60 + .../docs/reference/functions/unaryMinus.md | 43 + .../docs/reference/functions/unaryPlus.md | 42 + .../docs/reference/functions/unequal.md | 67 + .../mathjs/docs/reference/functions/unit.md | 48 + .../mathjs/docs/reference/functions/usolve.md | 44 + .../mathjs/docs/reference/functions/var.md | 63 + .../mathjs/docs/reference/functions/xgcd.md | 41 + .../mathjs/docs/reference/functions/xor.md | 47 + .../mathjs/docs/reference/functions/zeros.md | 51 + .../mathjs/docs/reference/index.md | 5 + .../mathjs/docs/reference/units.md | 3 + .../node_modules/mathjs/docs/serialization.md | 3 + .../advanced/add_new_datatypes/MyType.js | 44 + .../advanced/add_new_datatypes/index.js | 16 + .../advanced/add_new_datatypes/myAdd.js | 16 + .../advanced/convert_fraction_to_bignumber.js | 51 + .../advanced/custom_argument_parsing.js | 99 + .../examples/advanced/custom_loading.js | 44 + .../examples/advanced/expression_trees.js | 53 + .../examples/advanced/function_transform.js | 49 + .../advanced/web_server/math_worker.js | 23 + .../examples/advanced/web_server/server.js | 79 + .../node_modules/mathjs/examples/algebra.js | 33 + .../mathjs/examples/basic_usage.js | 50 + .../mathjs/examples/bignumbers.js | 42 + .../examples/browser/angle_configuration.html | 130 + .../mathjs/examples/browser/basic_usage.html | 38 + .../examples/browser/currency_conversion.html | 90 + .../examples/browser/custom_separators.html | 80 + .../mathjs/examples/browser/old_browsers.html | 47 + .../mathjs/examples/browser/plot.html | 69 + .../browser/pretty_printing_with_mathjax.html | 114 + .../examples/browser/requirejs_loading.html | 19 + .../browser/webworkers/webworkers.html | 79 + .../examples/browser/webworkers/worker.js | 30 + .../node_modules/mathjs/examples/chaining.js | 58 + .../mathjs/examples/complex_numbers.js | 55 + .../mathjs/examples/expressions.js | 191 + .../node_modules/mathjs/examples/fractions.js | 71 + .../node_modules/mathjs/examples/import.js | 101 + .../node_modules/mathjs/examples/matrices.js | 104 + .../node_modules/mathjs/examples/objects.js | 36 + .../mathjs/examples/serialization.js | 15 + .../mathjs/examples/sparse_matrices.js | 18 + .../node_modules/mathjs/examples/units.js | 106 + .../rootfs/data/node_modules/mathjs/index.js | 38 + .../data/node_modules/mathjs/lib/constants.js | 68 + .../data/node_modules/mathjs/lib/core/core.js | 125 + .../mathjs/lib/core/function/config.js | 119 + .../mathjs/lib/core/function/import.js | 266 + .../mathjs/lib/core/function/typed.js | 47 + .../node_modules/mathjs/lib/core/typed.js | 236 + .../mathjs/lib/error/ArgumentsError.js | 34 + .../mathjs/lib/error/DimensionError.js | 35 + .../mathjs/lib/error/IndexError.js | 46 + .../node_modules/mathjs/lib/error/index.js | 30 + .../mathjs/lib/expression/Help.js | 117 + .../mathjs/lib/expression/Parser.js | 161 + .../lib/expression/docs/constants/Infinity.js | 13 + .../lib/expression/docs/constants/LN10.js | 13 + .../lib/expression/docs/constants/LN2.js | 13 + .../lib/expression/docs/constants/LOG10E.js | 13 + .../lib/expression/docs/constants/LOG2E.js | 13 + .../lib/expression/docs/constants/NaN.js | 13 + .../lib/expression/docs/constants/SQRT1_2.js | 13 + .../lib/expression/docs/constants/SQRT2.js | 13 + .../mathjs/lib/expression/docs/constants/e.js | 15 + .../lib/expression/docs/constants/false.js | 12 + .../mathjs/lib/expression/docs/constants/i.js | 14 + .../lib/expression/docs/constants/null.js | 12 + .../lib/expression/docs/constants/phi.js | 12 + .../lib/expression/docs/constants/pi.js | 13 + .../lib/expression/docs/constants/tau.js | 13 + .../lib/expression/docs/constants/true.js | 12 + .../lib/expression/docs/constants/version.js | 12 + .../expression/docs/construction/bignumber.js | 19 + .../expression/docs/construction/boolean.js | 21 + .../expression/docs/construction/complex.js | 19 + .../docs/construction/createUnit.js | 18 + .../expression/docs/construction/fraction.js | 17 + .../lib/expression/docs/construction/index.js | 25 + .../expression/docs/construction/matrix.js | 25 + .../expression/docs/construction/number.js | 23 + .../expression/docs/construction/sparse.js | 19 + .../expression/docs/construction/splitUnit.js | 15 + .../expression/docs/construction/string.js | 18 + .../lib/expression/docs/construction/unit.js | 20 + .../mathjs/lib/expression/docs/core/config.js | 16 + .../mathjs/lib/expression/docs/core/import.js | 15 + .../mathjs/lib/expression/docs/core/typed.js | 15 + .../docs/function/algebra/derivative.js | 22 + .../docs/function/algebra/lsolve.js | 17 + .../expression/docs/function/algebra/lup.js | 17 + .../docs/function/algebra/lusolve.js | 17 + .../docs/function/algebra/simplify.js | 19 + .../expression/docs/function/algebra/slu.js | 14 + .../docs/function/algebra/usolve.js | 15 + .../docs/function/arithmetic/abs.js | 13 + .../docs/function/arithmetic/add.js | 19 + .../docs/function/arithmetic/cbrt.js | 25 + .../docs/function/arithmetic/ceil.js | 15 + .../docs/function/arithmetic/cube.js | 18 + .../docs/function/arithmetic/divide.js | 20 + .../docs/function/arithmetic/dotDivide.js | 19 + .../docs/function/arithmetic/dotMultiply.js | 19 + .../docs/function/arithmetic/dotPow.js | 17 + .../docs/function/arithmetic/exp.js | 19 + .../docs/function/arithmetic/fix.js | 16 + .../docs/function/arithmetic/floor.js | 15 + .../docs/function/arithmetic/gcd.js | 15 + .../docs/function/arithmetic/hypot.js | 16 + .../docs/function/arithmetic/lcm.js | 14 + .../docs/function/arithmetic/log.js | 23 + .../docs/function/arithmetic/log10.js | 19 + .../docs/function/arithmetic/mod.js | 20 + .../docs/function/arithmetic/multiply.js | 19 + .../docs/function/arithmetic/norm.js | 20 + .../docs/function/arithmetic/nthRoot.js | 21 + .../docs/function/arithmetic/pow.js | 16 + .../docs/function/arithmetic/round.js | 19 + .../docs/function/arithmetic/sign.js | 17 + .../docs/function/arithmetic/sqrt.js | 18 + .../docs/function/arithmetic/square.js | 21 + .../docs/function/arithmetic/subtract.js | 19 + .../docs/function/arithmetic/unaryMinus.js | 18 + .../docs/function/arithmetic/unaryPlus.js | 17 + .../docs/function/arithmetic/xgcd.js | 14 + .../docs/function/bitwise/bitAnd.js | 17 + .../docs/function/bitwise/bitNot.js | 17 + .../expression/docs/function/bitwise/bitOr.js | 16 + .../docs/function/bitwise/bitXor.js | 15 + .../docs/function/bitwise/leftShift.js | 16 + .../docs/function/bitwise/rightArithShift.js | 17 + .../docs/function/bitwise/rightLogShift.js | 17 + .../function/combinatorics/bellNumbers.js | 13 + .../docs/function/combinatorics/catalan.js | 13 + .../function/combinatorics/composition.js | 12 + .../docs/function/combinatorics/stirlingS2.js | 12 + .../expression/docs/function/complex/arg.js | 20 + .../expression/docs/function/complex/conj.js | 20 + .../expression/docs/function/complex/im.js | 20 + .../expression/docs/function/complex/re.js | 20 + .../docs/function/expression/eval.js | 14 + .../docs/function/expression/help.js | 14 + .../docs/function/geometry/distance.js | 14 + .../docs/function/geometry/intersect.js | 14 + .../expression/docs/function/logical/and.js | 17 + .../expression/docs/function/logical/not.js | 18 + .../expression/docs/function/logical/or.js | 17 + .../expression/docs/function/logical/xor.js | 18 + .../expression/docs/function/matrix/concat.js | 19 + .../expression/docs/function/matrix/cross.js | 17 + .../expression/docs/function/matrix/det.js | 15 + .../expression/docs/function/matrix/diag.js | 18 + .../expression/docs/function/matrix/dot.js | 18 + .../expression/docs/function/matrix/eye.js | 20 + .../expression/docs/function/matrix/filter.js | 14 + .../docs/function/matrix/flatten.js | 17 + .../docs/function/matrix/forEach.js | 12 + .../expression/docs/function/matrix/inv.js | 16 + .../expression/docs/function/matrix/kron.js | 15 + .../expression/docs/function/matrix/map.js | 12 + .../expression/docs/function/matrix/ones.js | 24 + .../docs/function/matrix/partitionSelect.js | 14 + .../expression/docs/function/matrix/range.js | 25 + .../expression/docs/function/matrix/resize.js | 19 + .../expression/docs/function/matrix/size.js | 18 + .../expression/docs/function/matrix/sort.js | 16 + .../docs/function/matrix/squeeze.js | 17 + .../expression/docs/function/matrix/subset.js | 25 + .../expression/docs/function/matrix/trace.js | 15 + .../docs/function/matrix/transpose.js | 17 + .../expression/docs/function/matrix/zeros.js | 23 + .../docs/function/probability/combinations.js | 12 + .../docs/function/probability/distribution.js | 17 + .../docs/function/probability/factorial.js | 14 + .../docs/function/probability/gamma.js | 15 + .../docs/function/probability/kldivergence.js | 13 + .../docs/function/probability/multinomial.js | 12 + .../docs/function/probability/permutations.js | 14 + .../docs/function/probability/pickRandom.js | 22 + .../docs/function/probability/random.js | 20 + .../docs/function/probability/randomInt.js | 18 + .../docs/function/relational/compare.js | 19 + .../docs/function/relational/deepEqual.js | 16 + .../docs/function/relational/equal.js | 21 + .../docs/function/relational/larger.js | 22 + .../docs/function/relational/largerEq.js | 20 + .../docs/function/relational/smaller.js | 21 + .../docs/function/relational/smallerEq.js | 20 + .../docs/function/relational/unequal.js | 22 + .../expression/docs/function/special/erf.js | 14 + .../docs/function/statistics/mad.js | 20 + .../docs/function/statistics/max.js | 28 + .../docs/function/statistics/mean.js | 27 + .../docs/function/statistics/median.js | 23 + .../docs/function/statistics/min.js | 28 + .../docs/function/statistics/mode.js | 24 + .../docs/function/statistics/prod.js | 24 + .../docs/function/statistics/quantileSeq.js | 26 + .../docs/function/statistics/std.js | 27 + .../docs/function/statistics/sum.js | 24 + .../docs/function/statistics/var.js | 27 + .../docs/function/trigonometry/acos.js | 17 + .../docs/function/trigonometry/acosh.js | 16 + .../docs/function/trigonometry/acot.js | 17 + .../docs/function/trigonometry/acoth.js | 15 + .../docs/function/trigonometry/acsc.js | 18 + .../docs/function/trigonometry/acsch.js | 15 + .../docs/function/trigonometry/asec.js | 18 + .../docs/function/trigonometry/asech.js | 15 + .../docs/function/trigonometry/asin.js | 17 + .../docs/function/trigonometry/asinh.js | 15 + .../docs/function/trigonometry/atan.js | 17 + .../docs/function/trigonometry/atan2.js | 21 + .../docs/function/trigonometry/atanh.js | 15 + .../docs/function/trigonometry/cos.js | 20 + .../docs/function/trigonometry/cosh.js | 16 + .../docs/function/trigonometry/cot.js | 17 + .../docs/function/trigonometry/coth.js | 17 + .../docs/function/trigonometry/csc.js | 17 + .../docs/function/trigonometry/csch.js | 17 + .../docs/function/trigonometry/sec.js | 17 + .../docs/function/trigonometry/sech.js | 17 + .../docs/function/trigonometry/sin.js | 20 + .../docs/function/trigonometry/sinh.js | 15 + .../docs/function/trigonometry/tan.js | 19 + .../docs/function/trigonometry/tanh.js | 16 + .../lib/expression/docs/function/units/to.js | 15 + .../expression/docs/function/utils/clone.js | 16 + .../expression/docs/function/utils/format.js | 16 + .../docs/function/utils/isInteger.js | 14 + .../expression/docs/function/utils/isNaN.js | 15 + .../docs/function/utils/isNegative.js | 15 + .../docs/function/utils/isNumeric.js | 19 + .../docs/function/utils/isPositive.js | 15 + .../expression/docs/function/utils/isPrime.js | 14 + .../expression/docs/function/utils/isZero.js | 15 + .../expression/docs/function/utils/print.js | 15 + .../expression/docs/function/utils/typeof.js | 15 + .../mathjs/lib/expression/docs/index.js | 292 + .../mathjs/lib/expression/function/compile.js | 56 + .../mathjs/lib/expression/function/eval.js | 63 + .../mathjs/lib/expression/function/help.js | 64 + .../mathjs/lib/expression/function/index.js | 7 + .../mathjs/lib/expression/function/parse.js | 49 + .../mathjs/lib/expression/function/parser.js | 58 + .../mathjs/lib/expression/index.js | 10 + .../mathjs/lib/expression/keywords.js | 6 + .../lib/expression/node/AccessorNode.js | 163 + .../mathjs/lib/expression/node/ArrayNode.js | 137 + .../lib/expression/node/AssignmentNode.js | 263 + .../mathjs/lib/expression/node/BlockNode.js | 146 + .../lib/expression/node/ConditionalNode.js | 180 + .../lib/expression/node/ConstantNode.js | 199 + .../expression/node/FunctionAssignmentNode.js | 165 + .../lib/expression/node/FunctionNode.js | 420 + .../mathjs/lib/expression/node/IndexNode.js | 230 + .../mathjs/lib/expression/node/Node.js | 382 + .../mathjs/lib/expression/node/ObjectNode.js | 137 + .../lib/expression/node/OperatorNode.js | 464 + .../lib/expression/node/ParenthesisNode.js | 115 + .../mathjs/lib/expression/node/RangeNode.js | 212 + .../mathjs/lib/expression/node/SymbolNode.js | 139 + .../mathjs/lib/expression/node/UpdateNode.js | 17 + .../mathjs/lib/expression/node/index.js | 18 + .../lib/expression/node/utils/access.js | 48 + .../lib/expression/node/utils/assign.js | 51 + .../mathjs/lib/expression/operators.js | 316 + .../mathjs/lib/expression/parse.js | 1549 + .../expression/transform/concat.transform.js | 40 + .../expression/transform/error.transform.js | 17 + .../expression/transform/filter.transform.js | 64 + .../expression/transform/forEach.transform.js | 46 + .../mathjs/lib/expression/transform/index.js | 12 + .../expression/transform/index.transform.js | 51 + .../lib/expression/transform/map.transform.js | 64 + .../lib/expression/transform/max.transform.js | 41 + .../expression/transform/mean.transform.js | 41 + .../lib/expression/transform/min.transform.js | 41 + .../expression/transform/range.transform.js | 28 + .../expression/transform/subset.transform.js | 28 + .../lib/function/algebra/decomposition/lup.js | 387 + .../lib/function/algebra/decomposition/slu.js | 72 + .../mathjs/lib/function/algebra/derivative.js | 714 + .../mathjs/lib/function/algebra/index.js | 15 + .../mathjs/lib/function/algebra/simplify.js | 610 + .../algebra/simplify/simplifyConstant.js | 217 + .../lib/function/algebra/simplify/util.js | 158 + .../lib/function/algebra/solver/lsolve.js | 187 + .../lib/function/algebra/solver/lusolve.js | 125 + .../lib/function/algebra/solver/usolve.js | 188 + .../algebra/solver/utils/solveValidation.js | 162 + .../lib/function/algebra/sparse/cs_amd.js | 573 + .../lib/function/algebra/sparse/cs_chol.js | 155 + .../lib/function/algebra/sparse/cs_counts.js | 121 + .../lib/function/algebra/sparse/cs_cumsum.js | 38 + .../lib/function/algebra/sparse/cs_dfs.js | 85 + .../lib/function/algebra/sparse/cs_ereach.js | 72 + .../lib/function/algebra/sparse/cs_etree.js | 76 + .../lib/function/algebra/sparse/cs_fkeep.js | 65 + .../lib/function/algebra/sparse/cs_flip.js | 22 + .../lib/function/algebra/sparse/cs_ipvec.js | 41 + .../lib/function/algebra/sparse/cs_leaf.js | 66 + .../lib/function/algebra/sparse/cs_lu.js | 178 + .../lib/function/algebra/sparse/cs_mark.js | 25 + .../lib/function/algebra/sparse/cs_marked.js | 23 + .../lib/function/algebra/sparse/cs_permute.js | 71 + .../lib/function/algebra/sparse/cs_post.js | 59 + .../lib/function/algebra/sparse/cs_reach.js | 61 + .../lib/function/algebra/sparse/cs_spsolve.js | 86 + .../lib/function/algebra/sparse/cs_sqr.js | 163 + .../lib/function/algebra/sparse/cs_symperm.js | 95 + .../lib/function/algebra/sparse/cs_tdfs.js | 52 + .../lib/function/algebra/sparse/cs_unflip.js | 24 + .../mathjs/lib/function/arithmetic/abs.js | 61 + .../mathjs/lib/function/arithmetic/add.js | 164 + .../lib/function/arithmetic/addScalar.js | 51 + .../mathjs/lib/function/arithmetic/cbrt.js | 185 + .../mathjs/lib/function/arithmetic/ceil.js | 61 + .../mathjs/lib/function/arithmetic/cube.js | 64 + .../mathjs/lib/function/arithmetic/divide.js | 89 + .../lib/function/arithmetic/divideScalar.js | 59 + .../lib/function/arithmetic/dotDivide.js | 145 + .../lib/function/arithmetic/dotMultiply.js | 143 + .../mathjs/lib/function/arithmetic/dotPow.js | 141 + .../mathjs/lib/function/arithmetic/exp.js | 57 + .../mathjs/lib/function/arithmetic/fix.js | 65 + .../mathjs/lib/function/arithmetic/floor.js | 60 + .../mathjs/lib/function/arithmetic/gcd.js | 199 + .../mathjs/lib/function/arithmetic/hypot.js | 84 + .../mathjs/lib/function/arithmetic/index.js | 33 + .../mathjs/lib/function/arithmetic/lcm.js | 214 + .../mathjs/lib/function/arithmetic/log.js | 86 + .../mathjs/lib/function/arithmetic/log10.js | 78 + .../mathjs/lib/function/arithmetic/mod.js | 184 + .../lib/function/arithmetic/multiply.js | 970 + .../lib/function/arithmetic/multiplyScalar.js | 57 + .../mathjs/lib/function/arithmetic/norm.js | 215 + .../mathjs/lib/function/arithmetic/nthRoot.js | 299 + .../mathjs/lib/function/arithmetic/pow.js | 184 + .../mathjs/lib/function/arithmetic/round.js | 174 + .../mathjs/lib/function/arithmetic/sign.js | 69 + .../mathjs/lib/function/arithmetic/sqrt.js | 80 + .../mathjs/lib/function/arithmetic/square.js | 65 + .../lib/function/arithmetic/subtract.js | 199 + .../lib/function/arithmetic/unaryMinus.js | 70 + .../lib/function/arithmetic/unaryPlus.js | 72 + .../mathjs/lib/function/arithmetic/xgcd.js | 137 + .../mathjs/lib/function/bitwise/bitAnd.js | 149 + .../mathjs/lib/function/bitwise/bitNot.js | 56 + .../mathjs/lib/function/bitwise/bitOr.js | 149 + .../mathjs/lib/function/bitwise/bitXor.js | 149 + .../mathjs/lib/function/bitwise/index.js | 9 + .../mathjs/lib/function/bitwise/leftShift.js | 162 + .../lib/function/bitwise/rightArithShift.js | 162 + .../lib/function/bitwise/rightLogShift.js | 162 + .../lib/function/combinatorics/bellNumbers.js | 53 + .../lib/function/combinatorics/catalan.js | 51 + .../lib/function/combinatorics/composition.js | 51 + .../lib/function/combinatorics/index.js | 6 + .../lib/function/combinatorics/stirlingS2.js | 69 + .../mathjs/lib/function/complex/arg.js | 59 + .../mathjs/lib/function/complex/conj.js | 55 + .../mathjs/lib/function/complex/im.js | 57 + .../mathjs/lib/function/complex/index.js | 6 + .../mathjs/lib/function/complex/re.js | 57 + .../mathjs/lib/function/geometry/distance.js | 301 + .../mathjs/lib/function/geometry/index.js | 4 + .../mathjs/lib/function/geometry/intersect.js | 142 + .../node_modules/mathjs/lib/function/index.js | 18 + .../mathjs/lib/function/logical/and.js | 171 + .../mathjs/lib/function/logical/index.js | 6 + .../mathjs/lib/function/logical/not.js | 63 + .../mathjs/lib/function/logical/or.js | 158 + .../mathjs/lib/function/logical/xor.js | 158 + .../mathjs/lib/function/matrix/concat.js | 144 + .../mathjs/lib/function/matrix/cross.js | 101 + .../mathjs/lib/function/matrix/det.js | 168 + .../mathjs/lib/function/matrix/diag.js | 170 + .../mathjs/lib/function/matrix/dot.js | 79 + .../mathjs/lib/function/matrix/eye.js | 146 + .../mathjs/lib/function/matrix/filter.js | 104 + .../mathjs/lib/function/matrix/flatten.js | 45 + .../mathjs/lib/function/matrix/forEach.js | 76 + .../mathjs/lib/function/matrix/index.js | 25 + .../mathjs/lib/function/matrix/inv.js | 207 + .../mathjs/lib/function/matrix/kron.js | 90 + .../mathjs/lib/function/matrix/map.js | 79 + .../mathjs/lib/function/matrix/ones.js | 134 + .../lib/function/matrix/partitionSelect.js | 136 + .../mathjs/lib/function/matrix/range.js | 279 + .../mathjs/lib/function/matrix/resize.js | 138 + .../mathjs/lib/function/matrix/size.js | 55 + .../mathjs/lib/function/matrix/sort.js | 120 + .../mathjs/lib/function/matrix/squeeze.js | 61 + .../mathjs/lib/function/matrix/subset.js | 229 + .../mathjs/lib/function/matrix/trace.js | 147 + .../mathjs/lib/function/matrix/transpose.js | 178 + .../mathjs/lib/function/matrix/zeros.js | 134 + .../lib/function/probability/combinations.js | 91 + .../lib/function/probability/distribution.js | 296 + .../lib/function/probability/factorial.js | 61 + .../mathjs/lib/function/probability/gamma.js | 202 + .../mathjs/lib/function/probability/index.js | 12 + .../lib/function/probability/kldivergence.js | 91 + .../lib/function/probability/multinomial.js | 53 + .../lib/function/probability/permutations.js | 94 + .../lib/function/probability/pickRandom.js | 45 + .../mathjs/lib/function/probability/random.js | 45 + .../lib/function/probability/randomInt.js | 43 + .../mathjs/lib/function/relational/compare.js | 182 + .../lib/function/relational/deepEqual.js | 81 + .../mathjs/lib/function/relational/equal.js | 169 + .../lib/function/relational/equalScalar.js | 53 + .../mathjs/lib/function/relational/index.js | 10 + .../mathjs/lib/function/relational/larger.js | 179 + .../lib/function/relational/largerEq.js | 175 + .../mathjs/lib/function/relational/smaller.js | 179 + .../lib/function/relational/smallerEq.js | 174 + .../mathjs/lib/function/relational/unequal.js | 204 + .../mathjs/lib/function/special/erf.js | 197 + .../mathjs/lib/function/special/index.js | 3 + .../mathjs/lib/function/statistics/index.js | 13 + .../mathjs/lib/function/statistics/mad.js | 64 + .../mathjs/lib/function/statistics/max.js | 99 + .../mathjs/lib/function/statistics/mean.js | 98 + .../mathjs/lib/function/statistics/median.js | 118 + .../mathjs/lib/function/statistics/min.js | 99 + .../mathjs/lib/function/statistics/mode.js | 77 + .../mathjs/lib/function/statistics/prod.js | 76 + .../lib/function/statistics/quantileSeq.js | 257 + .../mathjs/lib/function/statistics/std.js | 74 + .../mathjs/lib/function/statistics/sum.js | 84 + .../mathjs/lib/function/statistics/var.js | 128 + .../mathjs/lib/function/string/format.js | 114 + .../mathjs/lib/function/string/index.js | 4 + .../mathjs/lib/function/string/print.js | 87 + .../mathjs/lib/function/trigonometry/acos.js | 59 + .../mathjs/lib/function/trigonometry/acosh.js | 68 + .../mathjs/lib/function/trigonometry/acot.js | 54 + .../mathjs/lib/function/trigonometry/acoth.js | 55 + .../mathjs/lib/function/trigonometry/acsc.js | 58 + .../mathjs/lib/function/trigonometry/acsch.js | 53 + .../mathjs/lib/function/trigonometry/asec.js | 57 + .../mathjs/lib/function/trigonometry/asech.js | 64 + .../mathjs/lib/function/trigonometry/asin.js | 60 + .../mathjs/lib/function/trigonometry/asinh.js | 53 + .../mathjs/lib/function/trigonometry/atan.js | 55 + .../mathjs/lib/function/trigonometry/atan2.js | 152 + .../mathjs/lib/function/trigonometry/atanh.js | 65 + .../mathjs/lib/function/trigonometry/cos.js | 62 + .../mathjs/lib/function/trigonometry/cosh.js | 66 + .../mathjs/lib/function/trigonometry/cot.js | 58 + .../mathjs/lib/function/trigonometry/coth.js | 69 + .../mathjs/lib/function/trigonometry/csc.js | 58 + .../mathjs/lib/function/trigonometry/csch.js | 75 + .../mathjs/lib/function/trigonometry/index.js | 27 + .../mathjs/lib/function/trigonometry/sec.js | 58 + .../mathjs/lib/function/trigonometry/sech.js | 68 + .../mathjs/lib/function/trigonometry/sin.js | 63 + .../mathjs/lib/function/trigonometry/sinh.js | 67 + .../mathjs/lib/function/trigonometry/tan.js | 59 + .../mathjs/lib/function/trigonometry/tanh.js | 71 + .../mathjs/lib/function/unit/index.js | 3 + .../mathjs/lib/function/unit/to.js | 90 + .../mathjs/lib/function/utils/clone.js | 34 + .../mathjs/lib/function/utils/index.js | 11 + .../mathjs/lib/function/utils/isInteger.js | 56 + .../mathjs/lib/function/utils/isNaN.js | 66 + .../mathjs/lib/function/utils/isNegative.js | 62 + .../mathjs/lib/function/utils/isNumeric.js | 53 + .../mathjs/lib/function/utils/isPositive.js | 64 + .../mathjs/lib/function/utils/isPrime.js | 81 + .../mathjs/lib/function/utils/isZero.js | 70 + .../mathjs/lib/function/utils/typeof.js | 77 + .../data/node_modules/mathjs/lib/header.js | 26 + .../data/node_modules/mathjs/lib/index.js | 8 + .../node_modules/mathjs/lib/json/index.js | 3 + .../node_modules/mathjs/lib/json/reviver.js | 22 + .../mathjs/lib/type/bignumber/BigNumber.js | 48 + .../lib/type/bignumber/function/bignumber.js | 68 + .../mathjs/lib/type/bignumber/index.js | 7 + .../node_modules/mathjs/lib/type/boolean.js | 78 + .../mathjs/lib/type/chain/Chain.js | 165 + .../mathjs/lib/type/chain/function/chain.js | 51 + .../mathjs/lib/type/chain/index.js | 7 + .../mathjs/lib/type/complex/Complex.js | 172 + .../lib/type/complex/function/complex.js | 100 + .../mathjs/lib/type/complex/index.js | 7 + .../mathjs/lib/type/fraction/Fraction.js | 39 + .../lib/type/fraction/function/fraction.js | 69 + .../mathjs/lib/type/fraction/index.js | 7 + .../node_modules/mathjs/lib/type/index.js | 12 + .../mathjs/lib/type/matrix/DenseMatrix.js | 858 + .../mathjs/lib/type/matrix/FibonacciHeap.js | 349 + .../lib/type/matrix/ImmutableDenseMatrix.js | 224 + .../mathjs/lib/type/matrix/Matrix.js | 252 + .../mathjs/lib/type/matrix/MatrixIndex.js | 283 + .../mathjs/lib/type/matrix/Range.js | 316 + .../mathjs/lib/type/matrix/Spa.js | 141 + .../mathjs/lib/type/matrix/SparseMatrix.js | 1338 + .../mathjs/lib/type/matrix/function/index.js | 64 + .../mathjs/lib/type/matrix/function/matrix.js | 88 + .../mathjs/lib/type/matrix/function/sparse.js | 61 + .../mathjs/lib/type/matrix/index.js | 16 + .../mathjs/lib/type/matrix/utils/README.md | 149 + .../lib/type/matrix/utils/algorithm01.js | 114 + .../lib/type/matrix/utils/algorithm02.js | 119 + .../lib/type/matrix/utils/algorithm03.js | 125 + .../lib/type/matrix/utils/algorithm04.js | 187 + .../lib/type/matrix/utils/algorithm05.js | 176 + .../lib/type/matrix/utils/algorithm06.js | 163 + .../lib/type/matrix/utils/algorithm07.js | 124 + .../lib/type/matrix/utils/algorithm08.js | 160 + .../lib/type/matrix/utils/algorithm09.js | 149 + .../lib/type/matrix/utils/algorithm10.js | 110 + .../lib/type/matrix/utils/algorithm11.js | 109 + .../lib/type/matrix/utils/algorithm12.js | 110 + .../lib/type/matrix/utils/algorithm13.js | 104 + .../lib/type/matrix/utils/algorithm14.js | 82 + .../node_modules/mathjs/lib/type/number.js | 79 + .../mathjs/lib/type/resultset/ResultSet.js | 71 + .../mathjs/lib/type/resultset/index.js | 4 + .../node_modules/mathjs/lib/type/string.js | 69 + .../node_modules/mathjs/lib/type/unit/Unit.js | 3214 + .../lib/type/unit/function/createUnit.js | 85 + .../lib/type/unit/function/splitUnit.js | 37 + .../mathjs/lib/type/unit/function/unit.js | 61 + .../mathjs/lib/type/unit/index.js | 16 + .../mathjs/lib/type/unit/physicalConstants.js | 84 + .../node_modules/mathjs/lib/utils/array.js | 347 + .../mathjs/lib/utils/bignumber/bitAnd.js | 68 + .../mathjs/lib/utils/bignumber/bitNot.js | 21 + .../mathjs/lib/utils/bignumber/bitOr.js | 53 + .../mathjs/lib/utils/bignumber/bitXor.js | 60 + .../mathjs/lib/utils/bignumber/bitwise.js | 124 + .../mathjs/lib/utils/bignumber/constants.js | 49 + .../mathjs/lib/utils/bignumber/formatter.js | 183 + .../mathjs/lib/utils/bignumber/leftShift.js | 41 + .../mathjs/lib/utils/bignumber/nearlyEqual.js | 45 + .../lib/utils/bignumber/rightArithShift.js | 47 + .../node_modules/mathjs/lib/utils/boolean.js | 10 + .../utils/collection/containsCollections.js | 18 + .../lib/utils/collection/deepForEach.js | 25 + .../mathjs/lib/utils/collection/deepMap.js | 25 + .../lib/utils/collection/isCollection.js | 10 + .../mathjs/lib/utils/collection/reduce.js | 83 + .../mathjs/lib/utils/collection/scatter.js | 64 + .../node_modules/mathjs/lib/utils/emitter.js | 19 + .../node_modules/mathjs/lib/utils/function.js | 45 + .../node_modules/mathjs/lib/utils/index.js | 10 + .../node_modules/mathjs/lib/utils/latex.js | 104 + .../node_modules/mathjs/lib/utils/number.js | 506 + .../node_modules/mathjs/lib/utils/object.js | 241 + .../node_modules/mathjs/lib/utils/string.js | 143 + .../node_modules/mathjs/lib/utils/types.js | 54 + .../data/node_modules/mathjs/lib/version.js | 3 + .../data/node_modules/mathjs/package.json | 292 + .../data/node_modules/mathjs/test/README.md | 25 + .../node_modules/mathjs/test/approx.test.js | 78 + .../mathjs/test/constants.test.js | 149 + .../mathjs/test/core/config.test.js | 6 + .../mathjs/test/core/import.test.js | 271 + .../mathjs/test/core/index.test.js | 1 + .../mathjs/test/deprecated.test.js | 14 + .../mathjs/test/error/ArgumentsError.test.js | 34 + .../mathjs/test/error/DimensionError.test.js | 54 + .../mathjs/test/error/IndexError.test.js | 66 + .../mathjs/test/error/index.test.js | 13 + .../mathjs/test/expression/Help.test.js | 187 + .../mathjs/test/expression/Parser.test.js | 152 + .../test/expression/function/compile.test.js | 37 + .../test/expression/function/eval.test.js | 79 + .../test/expression/function/help.test.js | 60 + .../test/expression/function/parse.test.js | 31 + .../test/expression/function/parser.test.js | 19 + .../mathjs/test/expression/keywords.test.js | 11 + .../test/expression/node/AccessorNode.test.js | 465 + .../test/expression/node/ArrayNode.test.js | 318 + .../expression/node/AssignmentNode.test.js | 547 + .../test/expression/node/BlockNode.test.js | 330 + .../expression/node/ConditionalNode.test.js | 333 + .../test/expression/node/ConstantNode.test.js | 191 + .../node/FunctionAssignmentNode.test.js | 438 + .../test/expression/node/FunctionNode.test.js | 583 + .../test/expression/node/IndexNode.test.js | 254 + .../mathjs/test/expression/node/Node.test.js | 174 + .../test/expression/node/ObjectNode.test.js | 285 + .../test/expression/node/OperatorNode.test.js | 727 + .../expression/node/ParenthesisNode.test.js | 199 + .../test/expression/node/RangeNode.test.js | 376 + .../test/expression/node/SymbolNode.test.js | 167 + .../mathjs/test/expression/node/index.test.js | 11 + .../mathjs/test/expression/operators.test.js | 114 + .../mathjs/test/expression/parse.test.js | 2044 + .../algebra/decomposition/lup.test.js | 389 + .../algebra/decomposition/slu.test.js | 199 + .../test/function/algebra/derivative.test.js | 234 + .../test/function/algebra/simplify.test.js | 95 + .../function/algebra/solver/lsolve.test.js | 121 + .../function/algebra/solver/lusolve.test.js | 338 + .../function/algebra/solver/usolve.test.js | 121 + .../function/algebra/sparse/cs_amd.test.js | 98 + .../function/algebra/sparse/cs_lu.test.js | 211 + .../test/function/arithmetic/abs.test.js | 104 + .../test/function/arithmetic/add.test.js | 238 + .../function/arithmetic/addScalar.test.js | 151 + .../test/function/arithmetic/cbrt.test.js | 136 + .../test/function/arithmetic/ceil.test.js | 98 + .../test/function/arithmetic/cube.test.js | 74 + .../test/function/arithmetic/divide.test.js | 216 + .../function/arithmetic/dotDivide.test.js | 178 + .../function/arithmetic/dotMultiply.test.js | 189 + .../test/function/arithmetic/dotPow.test.js | 180 + .../test/function/arithmetic/exp.test.js | 89 + .../test/function/arithmetic/fix.test.js | 100 + .../test/function/arithmetic/floor.test.js | 97 + .../test/function/arithmetic/gcd.test.js | 173 + .../test/function/arithmetic/hypot.test.js | 56 + .../test/function/arithmetic/lcm.test.js | 169 + .../test/function/arithmetic/log.test.js | 122 + .../test/function/arithmetic/log10.test.js | 113 + .../test/function/arithmetic/mod.test.js | 182 + .../test/function/arithmetic/multiply.test.js | 892 + .../test/function/arithmetic/norm.test.js | 113 + .../test/function/arithmetic/nthRoot.test.js | 210 + .../test/function/arithmetic/pow.test.js | 243 + .../test/function/arithmetic/round.test.js | 145 + .../test/function/arithmetic/sign.test.js | 81 + .../test/function/arithmetic/sqrt.test.js | 100 + .../test/function/arithmetic/square.test.js | 72 + .../test/function/arithmetic/subtract.test.js | 248 + .../function/arithmetic/unaryMinus.test.js | 82 + .../function/arithmetic/unaryPlus.test.js | 114 + .../test/function/arithmetic/xgcd.test.js | 129 + .../test/function/bitwise/bitAnd.test.js | 221 + .../test/function/bitwise/bitNot.test.js | 69 + .../test/function/bitwise/bitOr.test.js | 220 + .../test/function/bitwise/bitXor.test.js | 169 + .../test/function/bitwise/leftShift.test.js | 182 + .../function/bitwise/rightArithShift.test.js | 186 + .../function/bitwise/rightLogShift.test.js | 149 + .../combinatorics/bellNumbers.test.js | 44 + .../function/combinatorics/catalan.test.js | 44 + .../combinatorics/composition.test.js | 34 + .../function/combinatorics/stirlingS2.test.js | 39 + .../mathjs/test/function/complex/arg.test.js | 78 + .../mathjs/test/function/complex/conj.test.js | 56 + .../mathjs/test/function/complex/im.test.js | 54 + .../mathjs/test/function/complex/re.test.js | 49 + .../test/function/geometry/distance.test.js | 92 + .../test/function/geometry/intersect.test.js | 42 + .../mathjs/test/function/logical/and.test.js | 196 + .../mathjs/test/function/logical/not.test.js | 95 + .../mathjs/test/function/logical/or.test.js | 227 + .../mathjs/test/function/logical/xor.test.js | 216 + .../test/function/matrix/concat.test.js | 114 + .../mathjs/test/function/matrix/cross.test.js | 52 + .../mathjs/test/function/matrix/det.test.js | 141 + .../mathjs/test/function/matrix/diag.test.js | 129 + .../mathjs/test/function/matrix/dot.test.js | 43 + .../mathjs/test/function/matrix/eye.test.js | 72 + .../test/function/matrix/filter.test.js | 101 + .../test/function/matrix/flatten.test.js | 55 + .../test/function/matrix/forEach.test.js | 83 + .../mathjs/test/function/matrix/inv.test.js | 92 + .../mathjs/test/function/matrix/kron.test.js | 103 + .../mathjs/test/function/matrix/map.test.js | 83 + .../mathjs/test/function/matrix/ones.test.js | 79 + .../function/matrix/partitionSelect.test.js | 109 + .../mathjs/test/function/matrix/range.test.js | 155 + .../test/function/matrix/resize.test.js | 146 + .../mathjs/test/function/matrix/size.test.js | 68 + .../mathjs/test/function/matrix/sort.test.js | 56 + .../test/function/matrix/squeeze.test.js | 39 + .../test/function/matrix/subset.test.js | 191 + .../mathjs/test/function/matrix/trace.test.js | 282 + .../test/function/matrix/transpose.test.js | 103 + .../mathjs/test/function/matrix/zeros.test.js | 78 + .../function/probability/combinations.test.js | 44 + .../function/probability/distribution.test.js | 632 + .../function/probability/factorial.test.js | 101 + .../test/function/probability/gamma.test.js | 164 + .../function/probability/kldivergence.test.js | 47 + .../function/probability/multinomial.test.js | 32 + .../function/probability/permutations.test.js | 65 + .../function/probability/pickRandom.test.js | 17 + .../test/function/probability/random.test.js | 16 + .../function/probability/randomInt.test.js | 16 + .../test/function/relational/compare.test.js | 216 + .../function/relational/deepEqual.test.js | 60 + .../test/function/relational/equal.test.js | 241 + .../test/function/relational/larger.test.js | 215 + .../test/function/relational/largerEq.test.js | 217 + .../test/function/relational/smaller.test.js | 222 + .../function/relational/smallerEq.test.js | 222 + .../test/function/relational/unequal.test.js | 243 + .../mathjs/test/function/special/erf.test.js | 158 + .../test/function/special/erf.values.json | 46 + .../test/function/statistics/mad.test.js | 60 + .../test/function/statistics/max.test.js | 105 + .../test/function/statistics/mean.test.js | 100 + .../test/function/statistics/median.test.js | 105 + .../test/function/statistics/min.test.js | 114 + .../test/function/statistics/mode.test.js | 65 + .../test/function/statistics/prod.test.js | 71 + .../function/statistics/quantileSeq.test.js | 187 + .../test/function/statistics/std.test.js | 88 + .../test/function/statistics/sum.test.js | 92 + .../test/function/statistics/var.test.js | 86 + .../test/function/string/format.test.js | 138 + .../mathjs/test/function/string/print.test.js | 51 + .../test/function/trigonometry/acos.test.js | 117 + .../test/function/trigonometry/acosh.test.js | 118 + .../test/function/trigonometry/acot.test.js | 121 + .../test/function/trigonometry/acoth.test.js | 121 + .../test/function/trigonometry/acsc.test.js | 144 + .../test/function/trigonometry/acsch.test.js | 101 + .../test/function/trigonometry/asec.test.js | 125 + .../test/function/trigonometry/asech.test.js | 121 + .../test/function/trigonometry/asin.test.js | 142 + .../test/function/trigonometry/asinh.test.js | 102 + .../test/function/trigonometry/atan.test.js | 116 + .../test/function/trigonometry/atan2.test.js | 170 + .../test/function/trigonometry/atanh.test.js | 120 + .../test/function/trigonometry/cos.test.js | 129 + .../test/function/trigonometry/cosh.test.js | 97 + .../test/function/trigonometry/cot.test.js | 106 + .../test/function/trigonometry/coth.test.js | 86 + .../test/function/trigonometry/csc.test.js | 100 + .../test/function/trigonometry/csch.test.js | 89 + .../test/function/trigonometry/sec.test.js | 115 + .../test/function/trigonometry/sech.test.js | 87 + .../test/function/trigonometry/sin.test.js | 125 + .../test/function/trigonometry/sinh.test.js | 112 + .../test/function/trigonometry/tan.test.js | 99 + .../test/function/trigonometry/tanh.test.js | 97 + .../mathjs/test/function/unit/to.test.js | 88 + .../mathjs/test/function/utils/clone.test.js | 89 + .../test/function/utils/isInteger.test.js | 68 + .../mathjs/test/function/utils/isNaN.test.js | 77 + .../test/function/utils/isNegative.test.js | 70 + .../test/function/utils/isNumeric.test.js | 34 + .../test/function/utils/isPositive.test.js | 70 + .../test/function/utils/isPrime.test.js | 49 + .../mathjs/test/function/utils/isZero.test.js | 84 + .../mathjs/test/function/utils/typeof.test.js | 113 + .../node_modules/mathjs/test/index.test.js | 83 + .../mathjs/test/json/replacer.test.js | 104 + .../mathjs/test/json/reviver.test.js | 151 + .../test/pi_bailey-borwein-plouffe.html | 54 + .../node_modules/mathjs/test/pi_machin.html | 64 + .../data/node_modules/mathjs/test/test.html | 54 + .../node_modules/mathjs/test/test.min.html | 31 + .../mathjs/test/test_bignumber.html | 53 + .../test/type/bignumber/BigNumber.test.js | 28 + .../type/bignumber/function/bignumber.test.js | 101 + .../mathjs/test/type/boolean.test.js | 76 + .../mathjs/test/type/chain/Chain.test.js | 92 + .../test/type/chain/function/chain.test.js | 18 + .../mathjs/test/type/complex/Complex.test.js | 302 + .../type/complex/function/complex.test.js | 93 + .../test/type/fraction/Fraction.test.js | 41 + .../type/fraction/function/fraction.test.js | 59 + .../test/type/matrix/DenseMatrix.test.js | 1343 + .../test/type/matrix/FibonacciHeap.test.js | 142 + .../type/matrix/ImmutableDenseMatrix.test.js | 613 + .../mathjs/test/type/matrix/Index.test.js | 255 + .../mathjs/test/type/matrix/Matrix.test.js | 117 + .../mathjs/test/type/matrix/Range.test.js | 274 + .../mathjs/test/type/matrix/Spa.test.js | 179 + .../test/type/matrix/SparseMatrix.test.js | 2125 + .../test/type/matrix/collection.test.js | 16 + .../test/type/matrix/function/index.test.js | 35 + .../test/type/matrix/function/matrix.test.js | 106 + .../test/type/matrix/function/sparse.test.js | 53 + .../type/matrix/utils/deepForEach.test.js | 1 + .../test/type/matrix/utils/deepMap.test.js | 1 + .../type/matrix/utils/isCollection.test.js | 2 + .../test/type/matrix/utils/reduce.test.js | 1 + .../mathjs/test/type/number.test.js | 85 + .../test/type/resultset/ResultSet.test.js | 59 + .../mathjs/test/type/string.test.js | 60 + .../mathjs/test/type/unit/Unit.test.js | 1176 + .../type/unit/function/createUnit.test.js | 48 + .../test/type/unit/function/splitUnit.test.js | 14 + .../test/type/unit/function/unit.test.js | 82 + .../test/type/unit/physicalConstants.test.js | 76 + .../mathjs/test/utils/array.test.js | 521 + .../test/utils/bignumber/constants.test.js | 40 + .../test/utils/bignumber/formatter.test.js | 245 + .../test/utils/bignumber/nearlyEqual.test.js | 84 + .../mathjs/test/utils/boolean.test.js | 23 + .../mathjs/test/utils/function.test.js | 104 + .../mathjs/test/utils/latex.test.js | 12 + .../mathjs/test/utils/number.test.js | 591 + .../mathjs/test/utils/object.test.js | 289 + .../mathjs/test/utils/string.test.js | 126 + .../mathjs/test/utils/types.test.js | 57 + .../rootfs/data/node_modules/mem/index.d.ts | 96 + nodered/rootfs/data/node_modules/mem/index.js | 88 + nodered/rootfs/data/node_modules/mem/license | 9 + .../rootfs/data/node_modules/mem/package.json | 78 + .../rootfs/data/node_modules/mem/readme.md | 167 + .../data/node_modules/mime-db/HISTORY.md | 431 + .../rootfs/data/node_modules/mime-db/LICENSE | 22 + .../data/node_modules/mime-db/README.md | 100 + .../rootfs/data/node_modules/mime-db/db.json | 7969 +++ .../rootfs/data/node_modules/mime-db/index.js | 11 + .../data/node_modules/mime-db/package.json | 102 + .../data/node_modules/mime-types/HISTORY.md | 316 + .../data/node_modules/mime-types/LICENSE | 23 + .../data/node_modules/mime-types/README.md | 113 + .../data/node_modules/mime-types/index.js | 188 + .../data/node_modules/mime-types/package.json | 86 + .../rootfs/data/node_modules/mime/.npmignore | 0 .../data/node_modules/mime/CHANGELOG.md | 164 + nodered/rootfs/data/node_modules/mime/LICENSE | 21 + .../rootfs/data/node_modules/mime/README.md | 90 + nodered/rootfs/data/node_modules/mime/cli.js | 8 + nodered/rootfs/data/node_modules/mime/mime.js | 108 + .../data/node_modules/mime/package.json | 73 + .../data/node_modules/mime/src/build.js | 53 + .../rootfs/data/node_modules/mime/src/test.js | 60 + .../rootfs/data/node_modules/mime/types.json | 1 + .../data/node_modules/mimic-fn/index.d.ts | 54 + .../data/node_modules/mimic-fn/index.js | 13 + .../rootfs/data/node_modules/mimic-fn/license | 9 + .../data/node_modules/mimic-fn/package.json | 74 + .../data/node_modules/mimic-fn/readme.md | 69 + .../data/node_modules/minimist/.travis.yml | 4 + .../rootfs/data/node_modules/minimist/LICENSE | 18 + .../node_modules/minimist/example/parse.js | 2 + .../data/node_modules/minimist/index.js | 187 + .../data/node_modules/minimist/package.json | 71 + .../node_modules/minimist/readme.markdown | 73 + .../data/node_modules/minimist/test/dash.js | 24 + .../minimist/test/default_bool.js | 20 + .../data/node_modules/minimist/test/dotted.js | 16 + .../data/node_modules/minimist/test/long.js | 31 + .../data/node_modules/minimist/test/parse.js | 318 + .../minimist/test/parse_modified.js | 9 + .../data/node_modules/minimist/test/short.js | 67 + .../node_modules/minimist/test/whitespace.js | 8 + .../moment-parseformat/LICENSE.md | 201 + .../node_modules/moment-parseformat/README.md | 104 + .../dist/moment-parseformat.js | 256 + .../node_modules/moment-parseformat/index.js | 7 + .../moment-parseformat/lib/parseformat.js | 243 + .../moment-parseformat/package.json | 92 + .../data/node_modules/moment-timezone/LICENSE | 20 + .../node_modules/moment-timezone/README.md | 36 + ...moment-timezone-with-data-10-year-range.js | 1227 + ...nt-timezone-with-data-10-year-range.min.js | 1 + .../moment-timezone-with-data-1970-2030.js | 1227 + ...moment-timezone-with-data-1970-2030.min.js | 1 + .../moment-timezone-with-data-2012-2022.js | 1227 + ...moment-timezone-with-data-2012-2022.min.js | 1 + .../builds/moment-timezone-with-data.js | 1227 + .../builds/moment-timezone-with-data.min.js | 1 + .../builds/moment-timezone.min.js | 1 + .../node_modules/moment-timezone/changelog.md | 194 + .../moment-timezone/composer.json | 43 + .../moment-timezone/data/meta/latest.json | 5130 ++ .../moment-timezone/data/packed/latest.json | 600 + .../node_modules/moment-timezone/index.js | 2 + .../moment-timezone/moment-timezone-utils.js | 318 + .../moment-timezone/moment-timezone.js | 627 + .../node_modules/moment-timezone/package.json | 81 + .../data/node_modules/moment/CHANGELOG.md | 895 + .../rootfs/data/node_modules/moment/LICENSE | 22 + .../rootfs/data/node_modules/moment/README.md | 65 + .../rootfs/data/node_modules/moment/ender.js | 1 + .../data/node_modules/moment/locale/af.js | 72 + .../data/node_modules/moment/locale/ar-dz.js | 58 + .../data/node_modules/moment/locale/ar-kw.js | 58 + .../data/node_modules/moment/locale/ar-ly.js | 121 + .../data/node_modules/moment/locale/ar-ma.js | 58 + .../data/node_modules/moment/locale/ar-sa.js | 103 + .../data/node_modules/moment/locale/ar-tn.js | 58 + .../data/node_modules/moment/locale/ar.js | 134 + .../data/node_modules/moment/locale/az.js | 104 + .../data/node_modules/moment/locale/be.js | 131 + .../data/node_modules/moment/locale/bg.js | 89 + .../data/node_modules/moment/locale/bm.js | 57 + .../data/node_modules/moment/locale/bn.js | 118 + .../data/node_modules/moment/locale/bo.js | 118 + .../data/node_modules/moment/locale/br.js | 107 + .../data/node_modules/moment/locale/bs.js | 150 + .../data/node_modules/moment/locale/ca.js | 87 + .../data/node_modules/moment/locale/cs.js | 171 + .../data/node_modules/moment/locale/cv.js | 62 + .../data/node_modules/moment/locale/cy.js | 79 + .../data/node_modules/moment/locale/da.js | 59 + .../data/node_modules/moment/locale/de-at.js | 75 + .../data/node_modules/moment/locale/de-ch.js | 75 + .../data/node_modules/moment/locale/de.js | 75 + .../data/node_modules/moment/locale/dv.js | 98 + .../data/node_modules/moment/locale/el.js | 99 + .../data/node_modules/moment/locale/en-SG.js | 66 + .../data/node_modules/moment/locale/en-au.js | 66 + .../data/node_modules/moment/locale/en-ca.js | 62 + .../data/node_modules/moment/locale/en-gb.js | 66 + .../data/node_modules/moment/locale/en-ie.js | 66 + .../data/node_modules/moment/locale/en-il.js | 61 + .../data/node_modules/moment/locale/en-nz.js | 66 + .../data/node_modules/moment/locale/eo.js | 70 + .../data/node_modules/moment/locale/es-do.js | 91 + .../data/node_modules/moment/locale/es-us.js | 91 + .../data/node_modules/moment/locale/es.js | 91 + .../data/node_modules/moment/locale/et.js | 79 + .../data/node_modules/moment/locale/eu.js | 65 + .../data/node_modules/moment/locale/fa.js | 105 + .../data/node_modules/moment/locale/fi.js | 108 + .../data/node_modules/moment/locale/fo.js | 59 + .../data/node_modules/moment/locale/fr-ca.js | 73 + .../data/node_modules/moment/locale/fr-ch.js | 77 + .../data/node_modules/moment/locale/fr.js | 82 + .../data/node_modules/moment/locale/fy.js | 74 + .../data/node_modules/moment/locale/ga.js | 76 + .../data/node_modules/moment/locale/gd.js | 75 + .../data/node_modules/moment/locale/gl.js | 76 + .../node_modules/moment/locale/gom-latn.js | 122 + .../data/node_modules/moment/locale/gu.js | 123 + .../data/node_modules/moment/locale/he.js | 96 + .../data/node_modules/moment/locale/hi.js | 123 + .../data/node_modules/moment/locale/hr.js | 153 + .../data/node_modules/moment/locale/hu.js | 109 + .../data/node_modules/moment/locale/hy-am.js | 94 + .../data/node_modules/moment/locale/id.js | 81 + .../data/node_modules/moment/locale/is.js | 131 + .../data/node_modules/moment/locale/it-ch.js | 68 + .../data/node_modules/moment/locale/it.js | 68 + .../data/node_modules/moment/locale/ja.js | 91 + .../data/node_modules/moment/locale/jv.js | 81 + .../data/node_modules/moment/locale/ka.js | 88 + .../data/node_modules/moment/locale/kk.js | 86 + .../data/node_modules/moment/locale/km.js | 109 + .../data/node_modules/moment/locale/kn.js | 125 + .../data/node_modules/moment/locale/ko.js | 80 + .../data/node_modules/moment/locale/ku.js | 118 + .../data/node_modules/moment/locale/ky.js | 86 + .../data/node_modules/moment/locale/lb.js | 135 + .../data/node_modules/moment/locale/lo.js | 69 + .../data/node_modules/moment/locale/lt.js | 117 + .../data/node_modules/moment/locale/lv.js | 96 + .../data/node_modules/moment/locale/me.js | 111 + .../data/node_modules/moment/locale/mi.js | 63 + .../data/node_modules/moment/locale/mk.js | 89 + .../data/node_modules/moment/locale/ml.js | 80 + .../data/node_modules/moment/locale/mn.js | 103 + .../data/node_modules/moment/locale/mr.js | 159 + .../data/node_modules/moment/locale/ms-my.js | 81 + .../data/node_modules/moment/locale/ms.js | 81 + .../data/node_modules/moment/locale/mt.js | 59 + .../data/node_modules/moment/locale/my.js | 92 + .../data/node_modules/moment/locale/nb.js | 61 + .../data/node_modules/moment/locale/ne.js | 122 + .../data/node_modules/moment/locale/nl-be.js | 86 + .../data/node_modules/moment/locale/nl.js | 86 + .../data/node_modules/moment/locale/nn.js | 59 + .../data/node_modules/moment/locale/pa-in.js | 123 + .../data/node_modules/moment/locale/pl.js | 125 + .../data/node_modules/moment/locale/pt-br.js | 60 + .../data/node_modules/moment/locale/pt.js | 64 + .../data/node_modules/moment/locale/ro.js | 74 + .../data/node_modules/moment/locale/ru.js | 181 + .../data/node_modules/moment/locale/sd.js | 97 + .../data/node_modules/moment/locale/se.js | 59 + .../data/node_modules/moment/locale/si.js | 70 + .../data/node_modules/moment/locale/sk.js | 155 + .../data/node_modules/moment/locale/sl.js | 172 + .../data/node_modules/moment/locale/sq.js | 67 + .../node_modules/moment/locale/sr-cyrl.js | 110 + .../data/node_modules/moment/locale/sr.js | 110 + .../data/node_modules/moment/locale/ss.js | 87 + .../data/node_modules/moment/locale/sv.js | 68 + .../data/node_modules/moment/locale/sw.js | 58 + .../data/node_modules/moment/locale/ta.js | 128 + .../data/node_modules/moment/locale/te.js | 88 + .../data/node_modules/moment/locale/tet.js | 66 + .../data/node_modules/moment/locale/tg.js | 115 + .../data/node_modules/moment/locale/th.js | 66 + .../data/node_modules/moment/locale/tl-ph.js | 61 + .../data/node_modules/moment/locale/tlh.js | 121 + .../data/node_modules/moment/locale/tr.js | 93 + .../data/node_modules/moment/locale/tzl.js | 90 + .../node_modules/moment/locale/tzm-latn.js | 57 + .../data/node_modules/moment/locale/tzm.js | 57 + .../data/node_modules/moment/locale/ug-cn.js | 118 + .../data/node_modules/moment/locale/uk.js | 153 + .../data/node_modules/moment/locale/ur.js | 97 + .../node_modules/moment/locale/uz-latn.js | 57 + .../data/node_modules/moment/locale/uz.js | 57 + .../data/node_modules/moment/locale/vi.js | 78 + .../node_modules/moment/locale/x-pseudo.js | 67 + .../data/node_modules/moment/locale/yo.js | 59 + .../data/node_modules/moment/locale/zh-cn.js | 109 + .../data/node_modules/moment/locale/zh-hk.js | 102 + .../data/node_modules/moment/locale/zh-tw.js | 102 + .../data/node_modules/moment/min/locales.js | 10178 +++ .../node_modules/moment/min/locales.min.js | 1 + .../moment/min/moment-with-locales.js | 14765 ++++ .../moment/min/moment-with-locales.min.js | 1 + .../node_modules/moment/min/moment.min.js | 1 + .../data/node_modules/moment/moment.d.ts | 736 + .../rootfs/data/node_modules/moment/moment.js | 4602 ++ .../data/node_modules/moment/package.js | 11 + .../data/node_modules/moment/package.json | 148 + .../moment/src/lib/create/check-overflow.js | 34 + .../moment/src/lib/create/date-from-array.js | 35 + .../moment/src/lib/create/from-anything.js | 110 + .../moment/src/lib/create/from-array.js | 147 + .../moment/src/lib/create/from-object.js | 16 + .../src/lib/create/from-string-and-array.js | 50 + .../src/lib/create/from-string-and-format.js | 113 + .../moment/src/lib/create/from-string.js | 230 + .../moment/src/lib/create/local.js | 5 + .../moment/src/lib/create/parsing-flags.js | 26 + .../node_modules/moment/src/lib/create/utc.js | 5 + .../moment/src/lib/create/valid.js | 50 + .../moment/src/lib/duration/abs.js | 18 + .../moment/src/lib/duration/add-subtract.js | 21 + .../moment/src/lib/duration/as.js | 66 + .../moment/src/lib/duration/bubble.js | 61 + .../moment/src/lib/duration/clone.js | 6 + .../moment/src/lib/duration/constructor.js | 44 + .../moment/src/lib/duration/create.js | 122 + .../moment/src/lib/duration/duration.js | 16 + .../moment/src/lib/duration/get.js | 25 + .../moment/src/lib/duration/humanize.js | 85 + .../moment/src/lib/duration/iso-string.js | 64 + .../moment/src/lib/duration/prototype.js | 53 + .../moment/src/lib/duration/valid.js | 36 + .../moment/src/lib/format/format.js | 92 + .../moment/src/lib/locale/base-config.js | 44 + .../moment/src/lib/locale/calendar.js | 15 + .../moment/src/lib/locale/constructor.js | 5 + .../node_modules/moment/src/lib/locale/en.js | 15 + .../moment/src/lib/locale/formats.js | 23 + .../moment/src/lib/locale/invalid.js | 5 + .../moment/src/lib/locale/lists.js | 93 + .../moment/src/lib/locale/locale.js | 39 + .../moment/src/lib/locale/locales.js | 197 + .../moment/src/lib/locale/ordinal.js | 7 + .../moment/src/lib/locale/pre-post-format.js | 3 + .../moment/src/lib/locale/prototype.js | 69 + .../moment/src/lib/locale/relative.js | 30 + .../node_modules/moment/src/lib/locale/set.js | 49 + .../moment/src/lib/moment/add-subtract.js | 55 + .../moment/src/lib/moment/calendar.js | 26 + .../moment/src/lib/moment/clone.js | 5 + .../moment/src/lib/moment/compare.js | 63 + .../moment/src/lib/moment/constructor.js | 77 + .../moment/src/lib/moment/creation-data.js | 9 + .../moment/src/lib/moment/diff.js | 58 + .../moment/src/lib/moment/format.js | 62 + .../moment/src/lib/moment/from.js | 17 + .../moment/src/lib/moment/get-set.js | 61 + .../moment/src/lib/moment/locale.js | 34 + .../moment/src/lib/moment/min-max.js | 63 + .../moment/src/lib/moment/moment.js | 28 + .../node_modules/moment/src/lib/moment/now.js | 3 + .../moment/src/lib/moment/prototype.js | 150 + .../moment/src/lib/moment/start-end-of.js | 128 + .../moment/src/lib/moment/to-type.js | 34 + .../node_modules/moment/src/lib/moment/to.js | 17 + .../moment/src/lib/moment/valid.js | 15 + .../moment/src/lib/parse/regex.js | 54 + .../moment/src/lib/parse/token.js | 33 + .../moment/src/lib/units/aliases.js | 30 + .../moment/src/lib/units/constants.js | 9 + .../moment/src/lib/units/day-of-month.js | 39 + .../moment/src/lib/units/day-of-week.js | 367 + .../moment/src/lib/units/day-of-year.js | 36 + .../node_modules/moment/src/lib/units/hour.js | 144 + .../moment/src/lib/units/millisecond.js | 69 + .../moment/src/lib/units/minute.js | 29 + .../moment/src/lib/units/month.js | 290 + .../moment/src/lib/units/offset.js | 235 + .../moment/src/lib/units/priorities.js | 16 + .../moment/src/lib/units/quarter.js | 32 + .../moment/src/lib/units/second.js | 29 + .../moment/src/lib/units/timestamp.js | 20 + .../moment/src/lib/units/timezone.js | 16 + .../moment/src/lib/units/units.js | 20 + .../src/lib/units/week-calendar-utils.js | 65 + .../moment/src/lib/units/week-year.js | 107 + .../node_modules/moment/src/lib/units/week.js | 67 + .../node_modules/moment/src/lib/units/year.js | 75 + .../moment/src/lib/utils/abs-ceil.js | 7 + .../moment/src/lib/utils/abs-floor.js | 8 + .../moment/src/lib/utils/abs-round.js | 7 + .../moment/src/lib/utils/compare-arrays.js | 16 + .../moment/src/lib/utils/defaults.js | 10 + .../moment/src/lib/utils/deprecate.js | 55 + .../moment/src/lib/utils/extend.js | 19 + .../moment/src/lib/utils/has-own-prop.js | 3 + .../moment/src/lib/utils/hooks.js | 13 + .../moment/src/lib/utils/index-of.js | 18 + .../moment/src/lib/utils/is-array.js | 3 + .../moment/src/lib/utils/is-date.js | 3 + .../moment/src/lib/utils/is-function.js | 3 + .../moment/src/lib/utils/is-number.js | 3 + .../moment/src/lib/utils/is-object-empty.js | 13 + .../moment/src/lib/utils/is-object.js | 5 + .../moment/src/lib/utils/is-undefined.js | 3 + .../node_modules/moment/src/lib/utils/keys.js | 19 + .../node_modules/moment/src/lib/utils/map.js | 7 + .../node_modules/moment/src/lib/utils/mod.js | 3 + .../node_modules/moment/src/lib/utils/some.js | 19 + .../moment/src/lib/utils/to-int.js | 12 + .../moment/src/lib/utils/zero-fill.js | 7 + .../data/node_modules/moment/src/locale/af.js | 64 + .../node_modules/moment/src/locale/ar-dz.js | 51 + .../node_modules/moment/src/locale/ar-kw.js | 50 + .../node_modules/moment/src/locale/ar-ly.js | 113 + .../node_modules/moment/src/locale/ar-ma.js | 52 + .../node_modules/moment/src/locale/ar-sa.js | 96 + .../node_modules/moment/src/locale/ar-tn.js | 51 + .../data/node_modules/moment/src/locale/ar.js | 128 + .../data/node_modules/moment/src/locale/az.js | 97 + .../data/node_modules/moment/src/locale/be.js | 126 + .../data/node_modules/moment/src/locale/bg.js | 82 + .../data/node_modules/moment/src/locale/bm.js | 50 + .../data/node_modules/moment/src/locale/bn.js | 110 + .../data/node_modules/moment/src/locale/bo.js | 111 + .../data/node_modules/moment/src/locale/br.js | 100 + .../data/node_modules/moment/src/locale/bs.js | 143 + .../data/node_modules/moment/src/locale/ca.js | 80 + .../data/node_modules/moment/src/locale/cs.js | 164 + .../data/node_modules/moment/src/locale/cv.js | 54 + .../data/node_modules/moment/src/locale/cy.js | 73 + .../data/node_modules/moment/src/locale/da.js | 51 + .../node_modules/moment/src/locale/de-at.js | 70 + .../node_modules/moment/src/locale/de-ch.js | 69 + .../data/node_modules/moment/src/locale/de.js | 69 + .../data/node_modules/moment/src/locale/dv.js | 90 + .../data/node_modules/moment/src/locale/el.js | 89 + .../node_modules/moment/src/locale/en-SG.js | 59 + .../node_modules/moment/src/locale/en-au.js | 58 + .../node_modules/moment/src/locale/en-ca.js | 54 + .../node_modules/moment/src/locale/en-gb.js | 59 + .../node_modules/moment/src/locale/en-ie.js | 59 + .../node_modules/moment/src/locale/en-il.js | 54 + .../node_modules/moment/src/locale/en-nz.js | 58 + .../data/node_modules/moment/src/locale/eo.js | 65 + .../node_modules/moment/src/locale/es-do.js | 83 + .../node_modules/moment/src/locale/es-us.js | 84 + .../data/node_modules/moment/src/locale/es.js | 83 + .../data/node_modules/moment/src/locale/et.js | 73 + .../data/node_modules/moment/src/locale/eu.js | 58 + .../data/node_modules/moment/src/locale/fa.js | 98 + .../data/node_modules/moment/src/locale/fi.js | 101 + .../data/node_modules/moment/src/locale/fo.js | 53 + .../node_modules/moment/src/locale/fr-ca.js | 66 + .../node_modules/moment/src/locale/fr-ch.js | 70 + .../data/node_modules/moment/src/locale/fr.js | 75 + .../data/node_modules/moment/src/locale/fy.js | 67 + .../data/node_modules/moment/src/locale/ga.js | 68 + .../data/node_modules/moment/src/locale/gd.js | 68 + .../data/node_modules/moment/src/locale/gl.js | 69 + .../moment/src/locale/gom-latn.js | 114 + .../data/node_modules/moment/src/locale/gu.js | 115 + .../data/node_modules/moment/src/locale/he.js | 91 + .../data/node_modules/moment/src/locale/hi.js | 116 + .../data/node_modules/moment/src/locale/hr.js | 145 + .../data/node_modules/moment/src/locale/hu.js | 103 + .../node_modules/moment/src/locale/hy-am.js | 87 + .../data/node_modules/moment/src/locale/id.js | 74 + .../data/node_modules/moment/src/locale/is.js | 124 + .../node_modules/moment/src/locale/it-ch.js | 61 + .../data/node_modules/moment/src/locale/it.js | 62 + .../data/node_modules/moment/src/locale/ja.js | 84 + .../data/node_modules/moment/src/locale/jv.js | 74 + .../data/node_modules/moment/src/locale/ka.js | 81 + .../data/node_modules/moment/src/locale/kk.js | 78 + .../data/node_modules/moment/src/locale/km.js | 101 + .../data/node_modules/moment/src/locale/kn.js | 117 + .../data/node_modules/moment/src/locale/ko.js | 74 + .../data/node_modules/moment/src/locale/ku.js | 110 + .../data/node_modules/moment/src/locale/ky.js | 79 + .../data/node_modules/moment/src/locale/lb.js | 129 + .../data/node_modules/moment/src/locale/lo.js | 62 + .../data/node_modules/moment/src/locale/lt.js | 110 + .../data/node_modules/moment/src/locale/lv.js | 90 + .../data/node_modules/moment/src/locale/me.js | 103 + .../data/node_modules/moment/src/locale/mi.js | 55 + .../data/node_modules/moment/src/locale/mk.js | 82 + .../data/node_modules/moment/src/locale/ml.js | 73 + .../data/node_modules/moment/src/locale/mn.js | 96 + .../data/node_modules/moment/src/locale/mr.js | 153 + .../node_modules/moment/src/locale/ms-my.js | 75 + .../data/node_modules/moment/src/locale/ms.js | 74 + .../data/node_modules/moment/src/locale/mt.js | 51 + .../data/node_modules/moment/src/locale/my.js | 87 + .../data/node_modules/moment/src/locale/nb.js | 55 + .../data/node_modules/moment/src/locale/ne.js | 115 + .../node_modules/moment/src/locale/nl-be.js | 80 + .../data/node_modules/moment/src/locale/nl.js | 80 + .../data/node_modules/moment/src/locale/nn.js | 52 + .../node_modules/moment/src/locale/pa-in.js | 116 + .../data/node_modules/moment/src/locale/pl.js | 117 + .../node_modules/moment/src/locale/pt-br.js | 53 + .../data/node_modules/moment/src/locale/pt.js | 57 + .../data/node_modules/moment/src/locale/ro.js | 68 + .../data/node_modules/moment/src/locale/ru.js | 175 + .../data/node_modules/moment/src/locale/sd.js | 89 + .../data/node_modules/moment/src/locale/se.js | 52 + .../data/node_modules/moment/src/locale/si.js | 62 + .../data/node_modules/moment/src/locale/sk.js | 149 + .../data/node_modules/moment/src/locale/sl.js | 164 + .../data/node_modules/moment/src/locale/sq.js | 62 + .../node_modules/moment/src/locale/sr-cyrl.js | 102 + .../data/node_modules/moment/src/locale/sr.js | 102 + .../data/node_modules/moment/src/locale/ss.js | 81 + .../data/node_modules/moment/src/locale/sv.js | 61 + .../data/node_modules/moment/src/locale/sw.js | 51 + .../data/node_modules/moment/src/locale/ta.js | 121 + .../data/node_modules/moment/src/locale/te.js | 80 + .../node_modules/moment/src/locale/tet.js | 60 + .../data/node_modules/moment/src/locale/tg.js | 107 + .../data/node_modules/moment/src/locale/th.js | 58 + .../node_modules/moment/src/locale/tl-ph.js | 54 + .../node_modules/moment/src/locale/tlh.js | 113 + .../data/node_modules/moment/src/locale/tr.js | 90 + .../node_modules/moment/src/locale/tzl.js | 84 + .../moment/src/locale/tzm-latn.js | 50 + .../node_modules/moment/src/locale/tzm.js | 50 + .../node_modules/moment/src/locale/ug-cn.js | 110 + .../data/node_modules/moment/src/locale/uk.js | 146 + .../data/node_modules/moment/src/locale/ur.js | 90 + .../node_modules/moment/src/locale/uz-latn.js | 50 + .../data/node_modules/moment/src/locale/uz.js | 50 + .../data/node_modules/moment/src/locale/vi.js | 71 + .../moment/src/locale/x-pseudo.js | 59 + .../data/node_modules/moment/src/locale/yo.js | 51 + .../node_modules/moment/src/locale/zh-cn.js | 102 + .../node_modules/moment/src/locale/zh-hk.js | 96 + .../node_modules/moment/src/locale/zh-tw.js | 95 + .../data/node_modules/moment/src/moment.js | 95 + nodered/rootfs/data/node_modules/ms/index.js | 152 + .../rootfs/data/node_modules/ms/license.md | 21 + .../rootfs/data/node_modules/ms/package.json | 69 + nodered/rootfs/data/node_modules/ms/readme.md | 51 + .../rootfs/data/node_modules/mysql/Changes.md | 553 + .../rootfs/data/node_modules/mysql/License | 19 + .../rootfs/data/node_modules/mysql/Readme.md | 1529 + .../rootfs/data/node_modules/mysql/index.js | 161 + .../data/node_modules/mysql/lib/Connection.js | 528 + .../mysql/lib/ConnectionConfig.js | 201 + .../data/node_modules/mysql/lib/Pool.js | 294 + .../node_modules/mysql/lib/PoolCluster.js | 288 + .../data/node_modules/mysql/lib/PoolConfig.js | 32 + .../node_modules/mysql/lib/PoolConnection.js | 65 + .../node_modules/mysql/lib/PoolNamespace.js | 136 + .../node_modules/mysql/lib/PoolSelector.js | 31 + .../node_modules/mysql/lib/protocol/Auth.js | 168 + .../mysql/lib/protocol/BufferList.js | 25 + .../mysql/lib/protocol/PacketHeader.js | 5 + .../mysql/lib/protocol/PacketWriter.js | 211 + .../node_modules/mysql/lib/protocol/Parser.js | 491 + .../mysql/lib/protocol/Protocol.js | 463 + .../mysql/lib/protocol/ResultSet.js | 7 + .../mysql/lib/protocol/SqlString.js | 1 + .../node_modules/mysql/lib/protocol/Timer.js | 33 + .../mysql/lib/protocol/constants/charsets.js | 262 + .../mysql/lib/protocol/constants/client.js | 26 + .../mysql/lib/protocol/constants/errors.js | 2416 + .../lib/protocol/constants/field_flags.js | 18 + .../lib/protocol/constants/server_status.js | 39 + .../lib/protocol/constants/ssl_profiles.js | 740 + .../mysql/lib/protocol/constants/types.js | 72 + .../packets/AuthSwitchRequestPacket.js | 20 + .../packets/AuthSwitchResponsePacket.js | 14 + .../packets/ClientAuthenticationPacket.js | 54 + .../protocol/packets/ComChangeUserPacket.js | 26 + .../lib/protocol/packets/ComPingPacket.js | 12 + .../lib/protocol/packets/ComQueryPacket.js | 15 + .../lib/protocol/packets/ComQuitPacket.js | 12 + .../protocol/packets/ComStatisticsPacket.js | 12 + .../mysql/lib/protocol/packets/EmptyPacket.js | 6 + .../mysql/lib/protocol/packets/EofPacket.js | 25 + .../mysql/lib/protocol/packets/ErrorPacket.js | 35 + .../mysql/lib/protocol/packets/Field.js | 26 + .../mysql/lib/protocol/packets/FieldPacket.js | 93 + .../packets/HandshakeInitializationPacket.js | 103 + .../protocol/packets/LocalDataFilePacket.js | 15 + .../mysql/lib/protocol/packets/OkPacket.js | 44 + .../lib/protocol/packets/OldPasswordPacket.js | 14 + .../protocol/packets/ResultSetHeaderPacket.js | 25 + .../lib/protocol/packets/RowDataPacket.js | 130 + .../lib/protocol/packets/SSLRequestPacket.js | 27 + .../lib/protocol/packets/StatisticsPacket.js | 20 + .../protocol/packets/UseOldPasswordPacket.js | 14 + .../mysql/lib/protocol/packets/index.js | 22 + .../lib/protocol/sequences/ChangeUser.js | 67 + .../mysql/lib/protocol/sequences/Handshake.js | 126 + .../mysql/lib/protocol/sequences/Ping.js | 19 + .../mysql/lib/protocol/sequences/Query.js | 218 + .../mysql/lib/protocol/sequences/Quit.js | 40 + .../mysql/lib/protocol/sequences/Sequence.js | 125 + .../lib/protocol/sequences/Statistics.js | 30 + .../mysql/lib/protocol/sequences/index.js | 7 + .../mysql/node_modules/safe-buffer/LICENSE | 21 + .../mysql/node_modules/safe-buffer/README.md | 584 + .../mysql/node_modules/safe-buffer/index.d.ts | 187 + .../mysql/node_modules/safe-buffer/index.js | 62 + .../node_modules/safe-buffer/package.json | 62 + .../data/node_modules/mysql/package.json | 97 + .../data/node_modules/negotiator/HISTORY.md | 103 + .../data/node_modules/negotiator/LICENSE | 24 + .../data/node_modules/negotiator/README.md | 203 + .../data/node_modules/negotiator/index.js | 124 + .../node_modules/negotiator/lib/charset.js | 169 + .../node_modules/negotiator/lib/encoding.js | 184 + .../node_modules/negotiator/lib/language.js | 179 + .../node_modules/negotiator/lib/mediaType.js | 294 + .../data/node_modules/negotiator/package.json | 84 + .../data/node_modules/nice-try/CHANGELOG.md | 21 + .../rootfs/data/node_modules/nice-try/LICENSE | 21 + .../data/node_modules/nice-try/README.md | 32 + .../data/node_modules/nice-try/package.json | 61 + .../data/node_modules/nice-try/src/index.js | 12 + .../node-red-contrib-influxdb/README.md | 173 + .../docker/influxdb.conf | 153 + .../node-red-contrib-influxdb/docker/run.sh | 4 + .../icons/influxdb.png | Bin 0 -> 611 bytes .../node-red-contrib-influxdb/influxdb.html | 397 + .../node-red-contrib-influxdb/influxdb.js | 255 + .../locales/en-US/influxdb.json | 24 + .../node-red-contrib-influxdb/package.json | 62 + .../test-flows/README.md | 41 + .../test-flows/influxdb.conf | 152 + .../test-flows/ssl/influxdb-selfsigned.crt | 19 + .../test-flows/ssl/influxdb-selfsigned.key | 28 + .../test-flows/test-flows.json | 271 + .../node-red-contrib-moment/.eslintrc.json | 26 + .../CODE_OF_CONDUCT.md | 46 + .../node-red-contrib-moment/LICENSE | 201 + .../node-red-contrib-moment/README.md | 131 + .../apache2-license.txt | 202 + .../examples/invalid_input_data_types.json | 161 + .../examples/non-existent_input_property.json | 141 + .../examples/numeric_inputs.json | 91 + .../examples/output_formats.json | 218 + .../examples/utc_offsets.json | 164 + .../moment/nrhumanizer.html | 80 + .../moment/nrhumanizer.js | 75 + .../moment/nrmoment.html | 290 + .../moment/nrmoment.js | 311 + .../node-red-contrib-moment/package.json | 92 + .../.msg_speed.js.swp | Bin 0 -> 20480 bytes .../node-red-contrib-msg-speed/.npmignore | 37 + .../node-red-contrib-msg-speed/LICENSE | 201 + .../node-red-contrib-msg-speed/README.md | 93 + .../icons/speed.png | Bin 0 -> 417 bytes .../images/Startup.png | Bin 0 -> 8278 bytes .../images/estimation.png | Bin 0 -> 11128 bytes .../images/speed1.png | Bin 0 -> 6905 bytes .../images/speed2.png | Bin 0 -> 7342 bytes .../images/speed3.png | Bin 0 -> 7726 bytes .../images/speed4.png | Bin 0 -> 12916 bytes .../images/speed_chain.png | Bin 0 -> 6578 bytes .../images/speed_chart.png | Bin 0 -> 5852 bytes .../images/speed_parallel.png | Bin 0 -> 8714 bytes .../images/startup_ignored.png | Bin 0 -> 13717 bytes .../images/startup_status.png | Bin 0 -> 15307 bytes .../node-red-contrib-msg-speed/msg_speed.html | 72 + .../node-red-contrib-msg-speed/msg_speed.js | 175 + .../node-red-contrib-msg-speed/package.json | 58 + .../.idea/misc.xml | 6 + .../.idea/modules.xml | 8 + .../node-red-contrib-telegrambot-home.iml | 12 + .../.idea/vcs.xml | 6 + .../.idea/workspace.xml | 241 + .../node-red-contrib-telegrambot-home/LICENSE | 21 + .../README.md | 109 + .../docker-compose.yml | 13 + .../images/TelegramCommandBotMessage.png | Bin 0 -> 164382 bytes .../images/TelegramCommandFlow.png | Bin 0 -> 16966 bytes .../TelegramDynamicPayloadBotMessage.png | Bin 0 -> 225678 bytes .../images/TelegramDynamicPayloadFlow.png | Bin 0 -> 23432 bytes .../images/TelegramDynamicPayloadNode.png | Bin 0 -> 42127 bytes .../images/TelegramNotifyBotMessage.png | Bin 0 -> 161559 bytes .../images/TelegramNotifyFlow.png | Bin 0 -> 34101 bytes .../TelegramStaticPayloadBotMessage.png | Bin 0 -> 237424 bytes .../images/TelegramStaticPayloadFlow.png | Bin 0 -> 17834 bytes .../images/TelegramStaticPayloadNode.png | Bin 0 -> 31301 bytes .../images/TelegramSwitchBotMessage.png | Bin 0 -> 186849 bytes .../images/TelegramSwitchFlow.png | Bin 0 -> 28682 bytes .../lib/utils.js | 57 + .../node_modules/debug/CHANGELOG.md | 395 + .../node_modules/debug/LICENSE | 19 + .../node_modules/debug/README.md | 437 + .../node_modules/debug/dist/debug.js | 886 + .../node_modules/debug/node.js | 1 + .../node_modules/debug/package.json | 90 + .../node_modules/debug/src/browser.js | 180 + .../node_modules/debug/src/common.js | 249 + .../node_modules/debug/src/index.js | 12 + .../node_modules/debug/src/node.js | 174 + .../node_modules/ms/index.js | 162 + .../node_modules/ms/license.md | 21 + .../node_modules/ms/package.json | 69 + .../node_modules/ms/readme.md | 60 + .../.github/ISSUE_TEMPLATE.md | 68 + .../.github/PULL_REQUEST_TEMPLATE.md | 23 + .../node-telegram-bot-api/CHANGELOG.md | 213 + .../node-telegram-bot-api/CODE_OF_CONDUCT.md | 74 + .../node-telegram-bot-api/CONTRIBUTING.md | 45 + .../node-telegram-bot-api/LICENSE.md | 21 + .../node-telegram-bot-api/README.md | 101 + .../node-telegram-bot-api/doc/api.hbs | 19 + .../node-telegram-bot-api/doc/api.md | 1347 + .../node-telegram-bot-api/doc/experimental.md | 28 + .../node-telegram-bot-api/doc/help.md | 150 + .../node-telegram-bot-api/doc/tutorials.md | 8 + .../node-telegram-bot-api/doc/usage.md | 259 + .../node-telegram-bot-api/index.js | 13 + .../node-telegram-bot-api/lib/errors.js | 109 + .../node-telegram-bot-api/lib/telegram.js | 2290 + .../lib/telegramPolling.js | 245 + .../lib/telegramWebHook.js | 189 + .../node-telegram-bot-api/package.json | 315 + .../node-telegram-bot-api/src/errors.js | 65 + .../node-telegram-bot-api/src/telegram.js | 1880 + .../src/telegramPolling.js | 202 + .../src/telegramWebHook.js | 156 + .../node_modules/pump/.travis.yml | 5 + .../node_modules/pump/LICENSE | 21 + .../node_modules/pump/README.md | 56 + .../node_modules/pump/index.js | 82 + .../node_modules/pump/package.json | 59 + .../node_modules/pump/test-browser.js | 62 + .../node_modules/pump/test-node.js | 53 + .../nodes/bot-config/bot-config.html | 68 + .../nodes/bot-config/bot-config.js | 144 + .../nodes/command/command.html | 77 + .../nodes/command/command.js | 70 + .../nodes/command/icons/telegram.png | Bin 0 -> 984 bytes .../nodes/notify/icons/telegram.png | Bin 0 -> 984 bytes .../nodes/notify/notify.html | 75 + .../nodes/notify/notify.js | 63 + .../nodes/payload/icons/telegram.png | Bin 0 -> 984 bytes .../nodes/payload/payload.html | 151 + .../nodes/payload/payload.js | 130 + .../nodes/switch/switch.html | 239 + .../nodes/switch/switch.js | 181 + .../package.json | 80 + .../yarn.lock | 503 + .../node-red-contrib-telegrambot/LICENSE | 8 + .../node-red-contrib-telegrambot/README.md | 611 + .../examples/command.json | 1 + .../examples/echo.json | 1 + .../examples/editinlinekeyboard.json | 1 + .../examples/inlinekeyboard.json | 1 + .../examples/inlinequery.json | 1 + .../examples/keyboard.json | 1 + .../examples/livelocation.json | 1 + .../examples/onreplymessage.json | 1 + .../examples/replytomessage.json | 1 + .../examples/sendchataction.json | 1 + .../examples/sendcontacttochat.json | 1 + .../examples/sendkeyboardtochat.json | 1 + .../examples/sendmediagroup.json | 1 + .../examples/sendmessagetochat.json | 1 + .../examples/sendphoto.json | 1 + .../examples/simplebot.json | 1 + .../examples/unauthorizedaccess.json | 1 + .../images/TelegramBotConfirmationMessage.png | Bin 0 -> 31036 bytes .../TelegramBotConfirmationMessage2.png | Bin 0 -> 70461 bytes .../TelegramBotConfirmationMessage3.png | Bin 0 -> 61600 bytes .../images/TelegramBotEcho.png | Bin 0 -> 6941 bytes .../images/TelegramBotEditInlineKeyboard1.png | Bin 0 -> 48621 bytes .../images/TelegramBotEditInlineKeyboard2.png | Bin 0 -> 67864 bytes .../images/TelegramBotEditInlineKeyboard3.png | Bin 0 -> 24879 bytes .../images/TelegramBotEditInlineKeyboard4.png | Bin 0 -> 92357 bytes .../images/TelegramBotEditInlineKeyboard5.png | Bin 0 -> 115359 bytes .../images/TelegramBotEditInlineKeyboard6.png | Bin 0 -> 91282 bytes .../images/TelegramBotExample.png | Bin 0 -> 50013 bytes .../images/TelegramBotHelp.png | Bin 0 -> 10087 bytes .../images/TelegramBotHelp2.png | Bin 0 -> 56762 bytes .../images/TelegramBotInlineKeyboard1.png | Bin 0 -> 24749 bytes .../images/TelegramBotInlineKeyboard2.png | Bin 0 -> 28216 bytes .../images/TelegramBotInlineKeyboard3.png | Bin 0 -> 23462 bytes .../images/TelegramBotInlineQuery1.png | Bin 0 -> 13016 bytes .../images/TelegramBotInlineQuery2.png | Bin 0 -> 49780 bytes .../images/TelegramBotLiveLocation.png | Bin 0 -> 71156 bytes .../images/TelegramBotLocation.png | Bin 0 -> 76226 bytes .../images/TelegramBotOnReplyMessage.png | Bin 0 -> 22326 bytes .../images/TelegramBotOnReplyMessage2.png | Bin 0 -> 57593 bytes .../images/TelegramBotOnReplyMessage3.png | Bin 0 -> 34067 bytes .../images/TelegramBotSecurity.png | Bin 0 -> 21083 bytes .../images/TelegramBotSendContact.png | Bin 0 -> 18729 bytes .../images/TelegramBotSendContact2.png | Bin 0 -> 41283 bytes .../images/TelegramBotSendPhoto.png | Bin 0 -> 10521 bytes .../images/TelegramBotSendPhoto2.png | Bin 0 -> 30587 bytes .../images/TelegramBotSendToChat.png | Bin 0 -> 43790 bytes .../images/TelegramBotUnauthorizedAccess.png | Bin 0 -> 8818 bytes .../images/TelegramBotUnauthorizedAccess2.png | Bin 0 -> 49765 bytes .../node-red-contrib-telegrambot/package.json | 57 + .../telegrambot/99-telegrambot.html | 550 + .../telegrambot/99-telegrambot.js | 1388 + .../telegrambot/icons/telegram.png | Bin 0 -> 845 bytes .../telegrambot/icons/telegramc.png | Bin 0 -> 1098 bytes .../node-red-contrib-throttle/LICENSE | 13 + .../doc/example1.png | Bin 0 -> 24888 bytes .../doc/example2.png | Bin 0 -> 24888 bytes .../doc/example3.png | Bin 0 -> 32246 bytes .../doc/example4.png | Bin 0 -> 32246 bytes .../icons/throttle.png | Bin 0 -> 14607 bytes .../node-red-contrib-throttle/package.json | 55 + .../node-red-contrib-throttle/readme.md | 124 + .../node-red-contrib-throttle/throttle.html | 102 + .../node-red-contrib-throttle/throttle.js | 101 + .../node-red-dashboard/.gitattributes | 2 + .../node_modules/node-red-dashboard/.jscsrc | 24 + .../node-red-dashboard/.jshintignore | 2 + .../node_modules/node-red-dashboard/.jshintrc | 16 + .../node-red-dashboard/CHANGELOG.md | 853 + .../node-red-dashboard/CONTRIBUTING.md | 60 + .../node_modules/node-red-dashboard/Charts.md | 106 + .../node-red-dashboard/ISSUE_TEMPLATE.md | 34 + .../node_modules/node-red-dashboard/LICENSE | 15 + .../node_modules/node-red-dashboard/README.md | 202 + .../node-red-dashboard/config-fields.md | 77 + .../node-red-dashboard/dist/css/app.min.css | 29697 ++++++++ .../node-red-dashboard/dist/css/app.min.less | 813 + .../dist/css/gridstack-extra.min.css | 1 + .../dist/css/gridstack.min.css | 1 + .../dist/dashboard.appcache | 29 + .../dist/fonts/MaterialIcons-Regular.woff | Bin 0 -> 79612 bytes .../dist/fonts/MaterialIcons-Regular.woff2 | Bin 0 -> 60840 bytes .../dist/fonts/fontawesome-webfont.woff | Bin 0 -> 98024 bytes .../dist/fonts/fontawesome-webfont.woff2 | Bin 0 -> 77160 bytes .../dist/fonts/weather-icons-lite.woff | Bin 0 -> 16648 bytes .../dist/fonts/weather-icons-lite.woff2 | Bin 0 -> 13536 bytes .../node-red-dashboard/dist/i18n.js | 4 + .../node-red-dashboard/dist/icon120x120.png | Bin 0 -> 3425 bytes .../node-red-dashboard/dist/icon192x192.png | Bin 0 -> 5697 bytes .../node-red-dashboard/dist/icon64x64.png | Bin 0 -> 1967 bytes .../node-red-dashboard/dist/index.html | 17 + .../node-red-dashboard/dist/js/app.min.js | 612 + .../dist/js/gridstack.jQueryUI.min.js | 2 + .../dist/js/gridstack.min.js | 2 + .../node-red-dashboard/dist/js/lodash.min.js | 137 + .../dist/js/tinycolor-min.js | 4 + .../node_modules/node-red-dashboard/fixfa.js | 78 + .../node-red-dashboard/gulpfile.old | 161 + .../node_modules/node-red-dashboard/index.js | 136 + .../node-red-dashboard/license.js | 17 + .../nodes/icons/ui_button.png | Bin 0 -> 336 bytes .../nodes/icons/ui_chart.png | Bin 0 -> 344 bytes .../nodes/icons/ui_colour_picker.png | Bin 0 -> 650 bytes .../nodes/icons/ui_date_picker.png | Bin 0 -> 153 bytes .../nodes/icons/ui_dropdown.png | Bin 0 -> 236 bytes .../nodes/icons/ui_form.png | Bin 0 -> 232 bytes .../nodes/icons/ui_gauge.png | Bin 0 -> 507 bytes .../nodes/icons/ui_numeric.png | Bin 0 -> 407 bytes .../nodes/icons/ui_slider.png | Bin 0 -> 216 bytes .../nodes/icons/ui_switch.png | Bin 0 -> 396 bytes .../nodes/icons/ui_template.png | Bin 0 -> 413 bytes .../nodes/icons/ui_text.png | Bin 0 -> 409 bytes .../nodes/icons/ui_toast.png | Bin 0 -> 353 bytes .../nodes/locales/en-US/ui_base.json | 96 + .../nodes/locales/en-US/ui_group.json | 14 + .../nodes/locales/en-US/ui_link.json | 14 + .../nodes/locales/en-US/ui_tab.json | 21 + .../nodes/locales/en-US/ui_template.json | 17 + .../nodes/locales/en-US/ui_ui_control.json | 11 + .../nodes/locales/ja/ui_base.json | 96 + .../nodes/locales/ja/ui_group.json | 14 + .../nodes/locales/ja/ui_link.json | 14 + .../nodes/locales/ja/ui_tab.json | 21 + .../nodes/locales/ja/ui_template.html | 44 + .../nodes/locales/ja/ui_template.json | 17 + .../nodes/locales/ja/ui_ui_control.html | 15 + .../nodes/locales/ja/ui_ui_control.json | 11 + .../node-red-dashboard/nodes/ui_audio.html | 84 + .../node-red-dashboard/nodes/ui_audio.js | 46 + .../node-red-dashboard/nodes/ui_base.html | 3406 + .../node-red-dashboard/nodes/ui_base.js | 117 + .../node-red-dashboard/nodes/ui_button.html | 123 + .../node-red-dashboard/nodes/ui_button.js | 69 + .../node-red-dashboard/nodes/ui_chart.html | 295 + .../node-red-dashboard/nodes/ui_chart.js | 280 + .../nodes/ui_colour_picker.html | 151 + .../nodes/ui_colour_picker.js | 57 + .../nodes/ui_date_picker.html | 81 + .../nodes/ui_date_picker.js | 47 + .../node-red-dashboard/nodes/ui_dropdown.html | 163 + .../node-red-dashboard/nodes/ui_dropdown.js | 150 + .../node-red-dashboard/nodes/ui_form.html | 314 + .../node-red-dashboard/nodes/ui_form.js | 38 + .../node-red-dashboard/nodes/ui_gauge.html | 183 + .../node-red-dashboard/nodes/ui_gauge.js | 85 + .../node-red-dashboard/nodes/ui_group.html | 86 + .../node-red-dashboard/nodes/ui_group.js | 19 + .../node-red-dashboard/nodes/ui_link.html | 68 + .../node-red-dashboard/nodes/ui_link.js | 12 + .../node-red-dashboard/nodes/ui_numeric.html | 118 + .../node-red-dashboard/nodes/ui_numeric.js | 60 + .../node-red-dashboard/nodes/ui_slider.html | 116 + .../node-red-dashboard/nodes/ui_slider.js | 56 + .../node-red-dashboard/nodes/ui_spacer.html | 51 + .../node-red-dashboard/nodes/ui_spacer.js | 27 + .../node-red-dashboard/nodes/ui_switch.html | 185 + .../node-red-dashboard/nodes/ui_switch.js | 138 + .../node-red-dashboard/nodes/ui_tab.html | 105 + .../node-red-dashboard/nodes/ui_tab.js | 15 + .../node-red-dashboard/nodes/ui_template.html | 246 + .../node-red-dashboard/nodes/ui_template.js | 88 + .../node-red-dashboard/nodes/ui_text.html | 182 + .../node-red-dashboard/nodes/ui_text.js | 51 + .../nodes/ui_text_input.html | 114 + .../node-red-dashboard/nodes/ui_text_input.js | 43 + .../node-red-dashboard/nodes/ui_toast.html | 108 + .../node-red-dashboard/nodes/ui_toast.js | 65 + .../nodes/ui_ui_control.html | 64 + .../node-red-dashboard/nodes/ui_ui_control.js | 64 + .../node-red-dashboard/package.json | 164 + .../node_modules/node-red-dashboard/ui.js | 571 + .../node-red-node-email/61-email.html | 282 + .../node-red-node-email/61-email.js | 498 + .../node_modules/node-red-node-email/LICENSE | 14 + .../node-red-node-email/README.md | 74 + .../locales/en-US/61-email.html | 53 + .../locales/en-US/61-email.json | 63 + .../locales/ja/61-email.html | 40 + .../locales/ja/61-email.json | 49 + .../node-red-node-email/package.json | 62 + .../node-red-node-mysql/68-mysql.html | 93 + .../node-red-node-mysql/68-mysql.js | 166 + .../node_modules/node-red-node-mysql/LICENSE | 14 + .../node-red-node-mysql/README.md | 29 + .../node-red-node-mysql/package.json | 53 + .../node-red-node-tail/28-tail.html | 58 + .../node-red-node-tail/28-tail.js | 80 + .../node_modules/node-red-node-tail/LICENSE | 14 + .../node_modules/node-red-node-tail/README.md | 17 + .../locales/en-US/28-tail.html | 15 + .../locales/en-US/28-tail.json | 24 + .../locales/ja/28-tail.html | 25 + .../locales/ja/28-tail.json | 24 + .../locales/zh-CN/28-tail.json | 17 + .../node-red-node-tail/package.json | 53 + .../.github/ISSUE_TEMPLATE.md | 68 + .../.github/PULL_REQUEST_TEMPLATE.md | 23 + .../node-telegram-bot-api/CHANGELOG.md | 221 + .../node-telegram-bot-api/CODE_OF_CONDUCT.md | 74 + .../node-telegram-bot-api/CONTRIBUTING.md | 45 + .../node-telegram-bot-api/LICENSE.md | 21 + .../node-telegram-bot-api/README.md | 111 + .../node-telegram-bot-api/doc/api.hbs | 19 + .../node-telegram-bot-api/doc/api.md | 1421 + .../node-telegram-bot-api/doc/experimental.md | 28 + .../node-telegram-bot-api/doc/help.md | 150 + .../node-telegram-bot-api/doc/tutorials.md | 11 + .../node-telegram-bot-api/doc/usage.md | 260 + .../node-telegram-bot-api/index.js | 13 + .../node-telegram-bot-api/lib/errors.js | 109 + .../node-telegram-bot-api/lib/telegram.js | 2395 + .../lib/telegramPolling.js | 245 + .../lib/telegramWebHook.js | 189 + .../node_modules/debug/CHANGELOG.md | 395 + .../node_modules/debug/LICENSE | 19 + .../node_modules/debug/README.md | 437 + .../node_modules/debug/dist/debug.js | 886 + .../node_modules/debug/node.js | 1 + .../node_modules/debug/package.json | 90 + .../node_modules/debug/src/browser.js | 180 + .../node_modules/debug/src/common.js | 249 + .../node_modules/debug/src/index.js | 12 + .../node_modules/debug/src/node.js | 174 + .../node_modules/ms/index.js | 162 + .../node_modules/ms/license.md | 21 + .../node_modules/ms/package.json | 69 + .../node_modules/ms/readme.md | 60 + .../node_modules/pump/.travis.yml | 5 + .../node_modules/pump/LICENSE | 21 + .../node_modules/pump/README.md | 56 + .../node_modules/pump/index.js | 82 + .../node_modules/pump/package.json | 59 + .../node_modules/pump/test-browser.js | 62 + .../node_modules/pump/test-node.js | 53 + .../node-telegram-bot-api/package.json | 318 + .../node-telegram-bot-api/src/errors.js | 65 + .../node-telegram-bot-api/src/telegram.js | 1966 + .../src/telegramPolling.js | 202 + .../src/telegramWebHook.js | 156 + .../node_modules/nodemailer/.prettierrc.js | 5 + .../data/node_modules/nodemailer/CHANGELOG.md | 590 + .../node_modules/nodemailer/CONTRIBUTING.md | 67 + .../data/node_modules/nodemailer/LICENSE | 16 + .../data/node_modules/nodemailer/README.md | 47 + .../nodemailer/lib/addressparser/index.js | 309 + .../nodemailer/lib/base64/index.js | 142 + .../node_modules/nodemailer/lib/dkim/index.js | 251 + .../nodemailer/lib/dkim/message-parser.js | 158 + .../nodemailer/lib/dkim/relaxed-body.js | 154 + .../node_modules/nodemailer/lib/dkim/sign.js | 117 + .../nodemailer/lib/fetch/cookies.js | 284 + .../nodemailer/lib/fetch/index.js | 277 + .../nodemailer/lib/json-transport/index.js | 82 + .../nodemailer/lib/mail-composer/index.js | 559 + .../nodemailer/lib/mailer/index.js | 423 + .../nodemailer/lib/mailer/mail-message.js | 320 + .../nodemailer/lib/mime-funcs/index.js | 628 + .../nodemailer/lib/mime-funcs/mime-types.js | 2109 + .../nodemailer/lib/mime-node/index.js | 1257 + .../nodemailer/lib/mime-node/last-newline.js | 33 + .../node_modules/nodemailer/lib/nodemailer.js | 148 + .../node_modules/nodemailer/lib/qp/index.js | 219 + .../lib/sendmail-transport/index.js | 208 + .../lib/sendmail-transport/le-unix.js | 43 + .../lib/sendmail-transport/le-windows.js | 52 + .../nodemailer/lib/ses-transport/index.js | 312 + .../nodemailer/lib/shared/index.js | 510 + .../lib/smtp-connection/data-stream.js | 108 + .../lib/smtp-connection/http-proxy-client.js | 131 + .../nodemailer/lib/smtp-connection/index.js | 1757 + .../nodemailer/lib/smtp-pool/index.js | 600 + .../nodemailer/lib/smtp-pool/pool-resource.js | 253 + .../nodemailer/lib/smtp-transport/index.js | 408 + .../nodemailer/lib/stream-transport/index.js | 142 + .../nodemailer/lib/well-known/index.js | 47 + .../nodemailer/lib/well-known/services.json | 262 + .../nodemailer/lib/xoauth2/index.js | 366 + .../data/node_modules/nodemailer/package.json | 72 + .../data/node_modules/npm-run-path/index.js | 39 + .../data/node_modules/npm-run-path/license | 21 + .../node_modules/npm-run-path/package.json | 77 + .../data/node_modules/npm-run-path/readme.md | 81 + .../data/node_modules/oauth-sign/LICENSE | 55 + .../data/node_modules/oauth-sign/README.md | 11 + .../data/node_modules/oauth-sign/index.js | 146 + .../data/node_modules/oauth-sign/package.json | 56 + .../node_modules/object-component/.npmignore | 3 + .../node_modules/object-component/History.md | 10 + .../node_modules/object-component/Makefile | 16 + .../node_modules/object-component/Readme.md | 31 + .../object-component/component.json | 10 + .../node_modules/object-component/index.js | 84 + .../object-component/package.json | 39 + .../object-component/test/object.js | 48 + .../node_modules/object-inspect/.eslintignore | 1 + .../node_modules/object-inspect/.eslintrc | 61 + .../data/node_modules/object-inspect/.nycrc | 17 + .../node_modules/object-inspect/.travis.yml | 9 + .../data/node_modules/object-inspect/LICENSE | 21 + .../object-inspect/example/all.js | 23 + .../object-inspect/example/circular.js | 6 + .../node_modules/object-inspect/example/fn.js | 5 + .../object-inspect/example/inspect.js | 10 + .../data/node_modules/object-inspect/index.js | 307 + .../node_modules/object-inspect/package.json | 96 + .../object-inspect/readme.markdown | 61 + .../object-inspect/test-core-js.js | 16 + .../object-inspect/test/bigint.js | 31 + .../object-inspect/test/browser/dom.js | 15 + .../object-inspect/test/circular.js | 9 + .../node_modules/object-inspect/test/deep.js | 9 + .../object-inspect/test/element.js | 53 + .../node_modules/object-inspect/test/err.js | 31 + .../node_modules/object-inspect/test/fn.js | 28 + .../node_modules/object-inspect/test/has.js | 34 + .../node_modules/object-inspect/test/holes.js | 15 + .../object-inspect/test/inspect.js | 20 + .../object-inspect/test/lowbyte.js | 12 + .../object-inspect/test/number.js | 12 + .../object-inspect/test/quoteStyle.js | 17 + .../node_modules/object-inspect/test/undef.js | 12 + .../object-inspect/test/values.js | 156 + .../object-inspect/util.inspect.js | 1 + .../node_modules/object-keys/.editorconfig | 13 + .../data/node_modules/object-keys/.eslintrc | 17 + .../data/node_modules/object-keys/.travis.yml | 277 + .../node_modules/object-keys/CHANGELOG.md | 232 + .../data/node_modules/object-keys/LICENSE | 21 + .../data/node_modules/object-keys/README.md | 76 + .../object-keys/implementation.js | 122 + .../data/node_modules/object-keys/index.js | 32 + .../node_modules/object-keys/isArguments.js | 17 + .../node_modules/object-keys/package.json | 119 + .../node_modules/object-keys/test/index.js | 5 + .../node_modules/object.assign/.editorconfig | 20 + .../data/node_modules/object.assign/.eslintrc | 17 + .../node_modules/object.assign/CHANGELOG.md | 179 + .../data/node_modules/object.assign/LICENSE | 21 + .../data/node_modules/object.assign/README.md | 135 + .../data/node_modules/object.assign/auto.js | 3 + .../object.assign/dist/browser.js | 492 + .../node_modules/object.assign/hasSymbols.js | 41 + .../object.assign/implementation.js | 41 + .../data/node_modules/object.assign/index.js | 17 + .../node_modules/object.assign/package.json | 112 + .../node_modules/object.assign/polyfill.js | 51 + .../data/node_modules/object.assign/shim.js | 14 + .../data/node_modules/object.assign/test.sh | 53 + .../node_modules/object.assign/test/.eslintrc | 7 + .../node_modules/object.assign/test/index.js | 17 + .../node_modules/object.assign/test/native.js | 47 + .../object.assign/test/shimmed.js | 50 + .../node_modules/object.assign/test/tests.js | 224 + .../data/node_modules/on-finished/HISTORY.md | 88 + .../data/node_modules/on-finished/LICENSE | 23 + .../data/node_modules/on-finished/README.md | 154 + .../data/node_modules/on-finished/index.js | 196 + .../node_modules/on-finished/package.json | 70 + .../data/node_modules/on-headers/HISTORY.md | 21 + .../data/node_modules/on-headers/LICENSE | 22 + .../data/node_modules/on-headers/README.md | 81 + .../data/node_modules/on-headers/index.js | 132 + .../data/node_modules/on-headers/package.json | 77 + nodered/rootfs/data/node_modules/once/LICENSE | 15 + .../rootfs/data/node_modules/once/README.md | 79 + nodered/rootfs/data/node_modules/once/once.js | 42 + .../data/node_modules/once/package.json | 67 + .../data/node_modules/optimist/.travis.yml | 4 + .../rootfs/data/node_modules/optimist/LICENSE | 21 + .../node_modules/optimist/example/bool.js | 10 + .../optimist/example/boolean_double.js | 7 + .../optimist/example/boolean_single.js | 7 + .../optimist/example/default_hash.js | 8 + .../optimist/example/default_singles.js | 7 + .../node_modules/optimist/example/divide.js | 8 + .../optimist/example/line_count.js | 20 + .../optimist/example/line_count_options.js | 29 + .../optimist/example/line_count_wrap.js | 29 + .../node_modules/optimist/example/nonopt.js | 4 + .../node_modules/optimist/example/reflect.js | 2 + .../node_modules/optimist/example/short.js | 3 + .../node_modules/optimist/example/string.js | 11 + .../optimist/example/usage-options.js | 19 + .../data/node_modules/optimist/example/xup.js | 10 + .../data/node_modules/optimist/index.js | 343 + .../data/node_modules/optimist/package.json | 68 + .../node_modules/optimist/readme.markdown | 513 + .../data/node_modules/optimist/test/_.js | 71 + .../data/node_modules/optimist/test/_/argv.js | 2 + .../data/node_modules/optimist/test/_/bin.js | 3 + .../data/node_modules/optimist/test/dash.js | 31 + .../data/node_modules/optimist/test/parse.js | 446 + .../optimist/test/parse_modified.js | 14 + .../data/node_modules/optimist/test/short.js | 16 + .../data/node_modules/optimist/test/usage.js | 292 + .../node_modules/optimist/test/whitespace.js | 8 + .../data/node_modules/os-locale/index.js | 114 + .../data/node_modules/os-locale/license | 9 + .../data/node_modules/os-locale/package.json | 77 + .../data/node_modules/os-locale/readme.md | 71 + .../rootfs/data/node_modules/p-defer/index.js | 11 + .../rootfs/data/node_modules/p-defer/license | 21 + .../data/node_modules/p-defer/package.json | 73 + .../data/node_modules/p-defer/readme.md | 47 + .../data/node_modules/p-finally/index.js | 15 + .../data/node_modules/p-finally/license | 21 + .../data/node_modules/p-finally/package.json | 74 + .../data/node_modules/p-finally/readme.md | 47 + .../data/node_modules/p-is-promise/index.d.ts | 23 + .../data/node_modules/p-is-promise/index.js | 15 + .../data/node_modules/p-is-promise/license | 9 + .../node_modules/p-is-promise/package.json | 74 + .../data/node_modules/p-is-promise/readme.md | 43 + .../data/node_modules/parseqs/.npmignore | 3 + .../rootfs/data/node_modules/parseqs/LICENSE | 21 + .../rootfs/data/node_modules/parseqs/Makefile | 3 + .../data/node_modules/parseqs/README.md | 1 + .../rootfs/data/node_modules/parseqs/index.js | 37 + .../data/node_modules/parseqs/package.json | 53 + .../rootfs/data/node_modules/parseqs/test.js | 27 + .../data/node_modules/parseuri/.npmignore | 2 + .../data/node_modules/parseuri/History.md | 5 + .../rootfs/data/node_modules/parseuri/LICENSE | 21 + .../data/node_modules/parseuri/Makefile | 3 + .../data/node_modules/parseuri/README.md | 2 + .../data/node_modules/parseuri/index.js | 39 + .../data/node_modules/parseuri/package.json | 51 + .../rootfs/data/node_modules/parseuri/test.js | 51 + .../data/node_modules/parseurl/HISTORY.md | 58 + .../rootfs/data/node_modules/parseurl/LICENSE | 24 + .../data/node_modules/parseurl/README.md | 133 + .../data/node_modules/parseurl/index.js | 158 + .../data/node_modules/parseurl/package.json | 79 + .../data/node_modules/path-key/index.js | 13 + .../rootfs/data/node_modules/path-key/license | 21 + .../data/node_modules/path-key/package.json | 72 + .../data/node_modules/path-key/readme.md | 51 + .../node_modules/performance-now/.npmignore | 1 + .../performance-now/.tm_properties | 7 + .../node_modules/performance-now/.travis.yml | 6 + .../node_modules/performance-now/README.md | 30 + .../performance-now/lib/performance-now.js | 36 + .../lib/performance-now.js.map | 10 + .../node_modules/performance-now/license.txt | 7 + .../node_modules/performance-now/package.json | 65 + .../performance-now/src/index.d.ts | 8 + .../src/performance-now.coffee | 17 + .../performance-now/test/mocha.opts | 3 + .../test/performance-now.coffee | 43 + .../performance-now/test/scripts.coffee | 27 + .../test/scripts/delayed-call.coffee | 11 + .../test/scripts/delayed-require.coffee | 12 + .../test/scripts/difference.coffee | 6 + .../test/scripts/initial-value.coffee | 10 + .../rootfs/data/node_modules/poplib/CHANGELOG | 32 + .../rootfs/data/node_modules/poplib/LICENSE | 21 + .../rootfs/data/node_modules/poplib/README.md | 395 + .../data/node_modules/poplib/demos/demo.js | 240 + .../node_modules/poplib/demos/retrieve-all.js | 166 + .../rootfs/data/node_modules/poplib/main.js | 867 + .../data/node_modules/poplib/package.json | 56 + .../data/node_modules/poplib/tests/apop.js | 153 + .../data/node_modules/poplib/tests/apop.sh | 45 + .../data/node_modules/poplib/tests/basic.js | 197 + .../data/node_modules/poplib/tests/basic.sh | 81 + .../data/node_modules/poplib/tests/login.js | 84 + .../data/node_modules/poplib/tests/login.sh | 47 + .../data/node_modules/poplib/tests/runner.sh | 100 + .../data/node_modules/poplib/tests/sasl.js | 177 + .../data/node_modules/poplib/tests/sasl.sh | 85 + .../node_modules/poplib/tests/sendmail.sh | 60 + .../data/node_modules/poplib/tests/stls.js | 177 + .../data/node_modules/poplib/tests/stls.sh | 45 + .../data/node_modules/poplib/tests/tls.js | 173 + .../data/node_modules/poplib/tests/tls.sh | 49 + .../process-nextick-args/index.js | 45 + .../process-nextick-args/license.md | 19 + .../process-nextick-args/package.json | 50 + .../process-nextick-args/readme.md | 18 + nodered/rootfs/data/node_modules/psl/LICENSE | 9 + .../rootfs/data/node_modules/psl/README.md | 215 + .../node_modules/psl/browserstack-logo.svg | 90 + .../data/node_modules/psl/data/rules.json | 8812 +++ .../rootfs/data/node_modules/psl/dist/psl.js | 9623 +++ .../data/node_modules/psl/dist/psl.min.js | 1 + nodered/rootfs/data/node_modules/psl/index.js | 269 + .../rootfs/data/node_modules/psl/package.json | 77 + .../rootfs/data/node_modules/pump/.travis.yml | 5 + nodered/rootfs/data/node_modules/pump/LICENSE | 21 + .../rootfs/data/node_modules/pump/README.md | 65 + .../rootfs/data/node_modules/pump/index.js | 82 + .../data/node_modules/pump/package.json | 59 + .../data/node_modules/pump/test-browser.js | 66 + .../data/node_modules/pump/test-node.js | 53 + .../node_modules/punycode/LICENSE-MIT.txt | 20 + .../data/node_modules/punycode/README.md | 122 + .../data/node_modules/punycode/package.json | 85 + .../node_modules/punycode/punycode.es6.js | 441 + .../data/node_modules/punycode/punycode.js | 440 + .../rootfs/data/node_modules/qs/.editorconfig | 30 + .../rootfs/data/node_modules/qs/.eslintignore | 1 + nodered/rootfs/data/node_modules/qs/.eslintrc | 19 + .../rootfs/data/node_modules/qs/CHANGELOG.md | 226 + nodered/rootfs/data/node_modules/qs/LICENSE | 28 + nodered/rootfs/data/node_modules/qs/README.md | 475 + .../rootfs/data/node_modules/qs/dist/qs.js | 638 + .../data/node_modules/qs/lib/formats.js | 18 + .../rootfs/data/node_modules/qs/lib/index.js | 11 + .../rootfs/data/node_modules/qs/lib/parse.js | 174 + .../data/node_modules/qs/lib/stringify.js | 210 + .../rootfs/data/node_modules/qs/lib/utils.js | 213 + .../rootfs/data/node_modules/qs/package.json | 80 + .../data/node_modules/qs/test/.eslintrc | 15 + .../rootfs/data/node_modules/qs/test/index.js | 7 + .../rootfs/data/node_modules/qs/test/parse.js | 574 + .../data/node_modules/qs/test/stringify.js | 597 + .../rootfs/data/node_modules/qs/test/utils.js | 34 + .../data/node_modules/range-parser/HISTORY.md | 56 + .../data/node_modules/range-parser/LICENSE | 23 + .../data/node_modules/range-parser/README.md | 84 + .../data/node_modules/range-parser/index.js | 162 + .../node_modules/range-parser/package.json | 90 + .../node_modules/readable-stream/.travis.yml | 55 + .../readable-stream/CONTRIBUTING.md | 38 + .../readable-stream/GOVERNANCE.md | 136 + .../data/node_modules/readable-stream/LICENSE | 47 + .../node_modules/readable-stream/README.md | 58 + .../doc/wg-meetings/2015-01-30.md | 60 + .../readable-stream/duplex-browser.js | 1 + .../node_modules/readable-stream/duplex.js | 1 + .../readable-stream/lib/_stream_duplex.js | 131 + .../lib/_stream_passthrough.js | 47 + .../readable-stream/lib/_stream_readable.js | 1019 + .../readable-stream/lib/_stream_transform.js | 214 + .../readable-stream/lib/_stream_writable.js | 687 + .../lib/internal/streams/BufferList.js | 79 + .../lib/internal/streams/destroy.js | 74 + .../lib/internal/streams/stream-browser.js | 1 + .../lib/internal/streams/stream.js | 1 + .../node_modules/inherits/LICENSE | 16 + .../node_modules/inherits/README.md | 42 + .../node_modules/inherits/inherits.js | 9 + .../node_modules/inherits/inherits_browser.js | 27 + .../node_modules/inherits/package.json | 61 + .../node_modules/isarray/.npmignore | 1 + .../node_modules/isarray/.travis.yml | 4 + .../node_modules/isarray/Makefile | 6 + .../node_modules/isarray/README.md | 60 + .../node_modules/isarray/component.json | 19 + .../node_modules/isarray/index.js | 5 + .../node_modules/isarray/package.json | 73 + .../node_modules/isarray/test.js | 20 + .../node_modules/readable-stream/package.json | 81 + .../readable-stream/passthrough.js | 1 + .../readable-stream/readable-browser.js | 7 + .../node_modules/readable-stream/readable.js | 19 + .../node_modules/readable-stream/transform.js | 1 + .../readable-stream/writable-browser.js | 1 + .../node_modules/readable-stream/writable.js | 8 + .../node_modules/request-promise-core/LICENSE | 15 + .../request-promise-core/README.md | 128 + .../configure/request-next.js | 67 + .../configure/request2.js | 74 + .../request-promise-core/errors.js | 3 + .../request-promise-core/lib/errors.js | 62 + .../request-promise-core/lib/plumbing.js | 167 + .../request-promise-core/package.json | 88 + .../data/node_modules/request-promise/LICENSE | 15 + .../node_modules/request-promise/README.md | 752 + .../node_modules/request-promise/errors.js | 3 + .../node_modules/request-promise/lib/rp.js | 52 + .../node_modules/request-promise/package.json | 87 + .../data/node_modules/request/CHANGELOG.md | 709 + .../rootfs/data/node_modules/request/LICENSE | 55 + .../data/node_modules/request/README.md | 1097 + .../rootfs/data/node_modules/request/index.js | 155 + .../data/node_modules/request/lib/auth.js | 167 + .../data/node_modules/request/lib/cookies.js | 38 + .../request/lib/getProxyFromURI.js | 79 + .../data/node_modules/request/lib/har.js | 205 + .../data/node_modules/request/lib/hawk.js | 89 + .../data/node_modules/request/lib/helpers.js | 66 + .../node_modules/request/lib/multipart.js | 112 + .../data/node_modules/request/lib/oauth.js | 148 + .../node_modules/request/lib/querystring.js | 50 + .../data/node_modules/request/lib/redirect.js | 154 + .../data/node_modules/request/lib/tunnel.js | 175 + .../request/node_modules/safe-buffer/LICENSE | 21 + .../node_modules/safe-buffer/README.md | 586 + .../node_modules/safe-buffer/index.d.ts | 187 + .../request/node_modules/safe-buffer/index.js | 64 + .../node_modules/safe-buffer/package.json | 62 + .../data/node_modules/request/package.json | 115 + .../data/node_modules/request/request.js | 1551 + .../data/node_modules/safe-buffer/.travis.yml | 7 + .../data/node_modules/safe-buffer/LICENSE | 21 + .../data/node_modules/safe-buffer/README.md | 584 + .../data/node_modules/safe-buffer/index.js | 62 + .../node_modules/safe-buffer/package.json | 63 + .../data/node_modules/safe-buffer/test.js | 101 + .../data/node_modules/safer-buffer/LICENSE | 21 + .../safer-buffer/Porting-Buffer.md | 268 + .../data/node_modules/safer-buffer/Readme.md | 156 + .../node_modules/safer-buffer/dangerous.js | 58 + .../node_modules/safer-buffer/package.json | 62 + .../data/node_modules/safer-buffer/safer.js | 77 + .../data/node_modules/safer-buffer/tests.js | 406 + .../data/node_modules/semver/CHANGELOG.md | 39 + .../rootfs/data/node_modules/semver/LICENSE | 15 + .../rootfs/data/node_modules/semver/README.md | 412 + .../data/node_modules/semver/bin/semver | 160 + .../data/node_modules/semver/package.json | 60 + .../rootfs/data/node_modules/semver/range.bnf | 16 + .../rootfs/data/node_modules/semver/semver.js | 1483 + .../rootfs/data/node_modules/send/HISTORY.md | 496 + nodered/rootfs/data/node_modules/send/LICENSE | 23 + .../rootfs/data/node_modules/send/README.md | 329 + .../rootfs/data/node_modules/send/index.js | 1129 + .../send/node_modules/ms/index.js | 162 + .../send/node_modules/ms/license.md | 21 + .../send/node_modules/ms/package.json | 69 + .../send/node_modules/ms/readme.md | 60 + .../data/node_modules/send/package.json | 105 + .../data/node_modules/serve-static/HISTORY.md | 451 + .../data/node_modules/serve-static/LICENSE | 25 + .../data/node_modules/serve-static/README.md | 259 + .../data/node_modules/serve-static/index.js | 210 + .../node_modules/serve-static/package.json | 77 + .../data/node_modules/setprototypeof/LICENSE | 13 + .../node_modules/setprototypeof/README.md | 31 + .../node_modules/setprototypeof/index.d.ts | 2 + .../data/node_modules/setprototypeof/index.js | 17 + .../node_modules/setprototypeof/package.json | 63 + .../node_modules/setprototypeof/test/index.js | 24 + .../node_modules/shebang-command/index.js | 19 + .../data/node_modules/shebang-command/license | 21 + .../node_modules/shebang-command/package.json | 71 + .../node_modules/shebang-command/readme.md | 39 + .../data/node_modules/shebang-regex/index.js | 2 + .../data/node_modules/shebang-regex/license | 21 + .../node_modules/shebang-regex/package.json | 64 + .../data/node_modules/shebang-regex/readme.md | 29 + .../node_modules/signal-exit/CHANGELOG.md | 27 + .../data/node_modules/signal-exit/LICENSE.txt | 16 + .../data/node_modules/signal-exit/README.md | 40 + .../data/node_modules/signal-exit/index.js | 157 + .../node_modules/signal-exit/package.json | 66 + .../data/node_modules/signal-exit/signals.js | 53 + .../socket.io-adapter/.idea/$CACHE_FILE$ | 25 + .../inspectionProfiles/profiles_settings.xml | 5 + .../socket.io-adapter/.idea/misc.xml | 6 + .../socket.io-adapter/.idea/modules.xml | 8 + .../.idea/socket.io-adapter.iml | 12 + .../socket.io-adapter/.idea/vcs.xml | 6 + .../socket.io-adapter/.idea/workspace.xml | 71 + .../node_modules/socket.io-adapter/LICENSE | 20 + .../node_modules/socket.io-adapter/Readme.md | 16 + .../node_modules/socket.io-adapter/index.js | 263 + .../socket.io-adapter/package.json | 39 + .../node_modules/socket.io-client/LICENSE | 22 + .../node_modules/socket.io-client/README.md | 57 + .../socket.io-client/dist/socket.io.dev.js | 7254 ++ .../dist/socket.io.dev.js.map | 1 + .../socket.io-client/dist/socket.io.js | 9 + .../socket.io-client/dist/socket.io.js.map | 1 + .../dist/socket.io.slim.dev.js | 5853 ++ .../dist/socket.io.slim.dev.js.map | 1 + .../socket.io-client/dist/socket.io.slim.js | 9 + .../dist/socket.io.slim.js.map | 1 + .../socket.io-client/lib/index.js | 94 + .../socket.io-client/lib/manager.js | 573 + .../node_modules/socket.io-client/lib/on.js | 24 + .../socket.io-client/lib/socket.js | 438 + .../node_modules/socket.io-client/lib/url.js | 75 + .../node_modules/debug/CHANGELOG.md | 395 + .../node_modules/debug/LICENSE | 19 + .../node_modules/debug/README.md | 455 + .../node_modules/debug/dist/debug.js | 912 + .../node_modules/debug/package.json | 102 + .../node_modules/debug/src/browser.js | 264 + .../node_modules/debug/src/common.js | 266 + .../node_modules/debug/src/index.js | 10 + .../node_modules/debug/src/node.js | 257 + .../socket.io-client/node_modules/ms/index.js | 162 + .../node_modules/ms/license.md | 21 + .../node_modules/ms/package.json | 69 + .../node_modules/ms/readme.md | 60 + .../node_modules/socket.io-parser/LICENSE | 20 + .../node_modules/socket.io-parser/Readme.md | 73 + .../node_modules/socket.io-parser/binary.js | 141 + .../node_modules/socket.io-parser/index.js | 415 + .../socket.io-parser/is-buffer.js | 20 + .../node_modules/debug/.coveralls.yml | 1 + .../node_modules/debug/.eslintrc | 14 + .../node_modules/debug/.npmignore | 9 + .../node_modules/debug/.travis.yml | 20 + .../node_modules/debug/CHANGELOG.md | 395 + .../node_modules/debug/LICENSE | 19 + .../node_modules/debug/Makefile | 58 + .../node_modules/debug/README.md | 368 + .../node_modules/debug/karma.conf.js | 70 + .../node_modules/debug/node.js | 1 + .../node_modules/debug/package.json | 82 + .../node_modules/debug/src/browser.js | 195 + .../node_modules/debug/src/debug.js | 225 + .../node_modules/debug/src/index.js | 10 + .../node_modules/debug/src/node.js | 186 + .../socket.io-parser/node_modules/ms/index.js | 152 + .../node_modules/ms/license.md | 21 + .../node_modules/ms/package.json | 69 + .../node_modules/ms/readme.md | 51 + .../socket.io-parser/package.json | 60 + .../socket.io-client/package.json | 121 + .../node_modules/socket.io-parser/LICENSE | 20 + .../node_modules/socket.io-parser/Readme.md | 73 + .../node_modules/socket.io-parser/binary.js | 141 + .../node_modules/socket.io-parser/index.js | 415 + .../socket.io-parser/is-buffer.js | 20 + .../node_modules/debug/CHANGELOG.md | 395 + .../node_modules/debug/LICENSE | 19 + .../node_modules/debug/README.md | 455 + .../node_modules/debug/dist/debug.js | 912 + .../node_modules/debug/package.json | 102 + .../node_modules/debug/src/browser.js | 264 + .../node_modules/debug/src/common.js | 266 + .../node_modules/debug/src/index.js | 10 + .../node_modules/debug/src/node.js | 257 + .../socket.io-parser/node_modules/ms/index.js | 162 + .../node_modules/ms/license.md | 21 + .../node_modules/ms/package.json | 69 + .../node_modules/ms/readme.md | 60 + .../socket.io-parser/package.json | 60 + .../data/node_modules/socket.io/LICENSE | 22 + .../data/node_modules/socket.io/Readme.md | 243 + .../data/node_modules/socket.io/lib/client.js | 273 + .../data/node_modules/socket.io/lib/index.js | 523 + .../node_modules/socket.io/lib/namespace.js | 299 + .../socket.io/lib/parent-namespace.js | 39 + .../data/node_modules/socket.io/lib/socket.js | 572 + .../socket.io/node_modules/debug/CHANGELOG.md | 395 + .../socket.io/node_modules/debug/LICENSE | 19 + .../socket.io/node_modules/debug/README.md | 455 + .../node_modules/debug/dist/debug.js | 912 + .../socket.io/node_modules/debug/package.json | 102 + .../node_modules/debug/src/browser.js | 264 + .../node_modules/debug/src/common.js | 266 + .../socket.io/node_modules/debug/src/index.js | 10 + .../socket.io/node_modules/debug/src/node.js | 257 + .../socket.io/node_modules/ms/index.js | 162 + .../socket.io/node_modules/ms/license.md | 21 + .../socket.io/node_modules/ms/package.json | 69 + .../socket.io/node_modules/ms/readme.md | 60 + .../data/node_modules/socket.io/package.json | 88 + .../data/node_modules/socks5-client/LICENSE | 7 + .../data/node_modules/socks5-client/README.md | 15 + .../data/node_modules/socks5-client/index.js | 24 + .../node_modules/socks5-client/lib/Socket.js | 356 + .../node_modules/socks5-client/package.json | 67 + .../socks5-https-client/.npmignore | 2 + .../socks5-https-client/.travis.yml | 7 + .../node_modules/socks5-https-client/Makefile | 11 + .../socks5-https-client/README.md | 60 + .../example/tor-request.js | 17 + .../socks5-https-client/example/tor.js | 33 + .../node_modules/socks5-https-client/index.js | 47 + .../socks5-https-client/lib/Agent.js | 59 + .../socks5-https-client/package.json | 72 + .../socks5-https-client/test/index.js | 106 + .../data/node_modules/sprintf-js/CHANGELOG.md | 17 + .../node_modules/sprintf-js/CONTRIBUTORS.md | 25 + .../data/node_modules/sprintf-js/LICENSE | 24 + .../data/node_modules/sprintf-js/README.md | 143 + .../sprintf-js/dist/.gitattributes | 4 + .../sprintf-js/dist/angular-sprintf.min.js | 3 + .../dist/angular-sprintf.min.js.map | 1 + .../sprintf-js/dist/sprintf.min.js | 3 + .../sprintf-js/dist/sprintf.min.js.map | 1 + .../data/node_modules/sprintf-js/package.json | 63 + .../sprintf-js/src/angular-sprintf.js | 24 + .../node_modules/sprintf-js/src/sprintf.js | 231 + .../data/node_modules/sqlstring/HISTORY.md | 43 + .../data/node_modules/sqlstring/LICENSE | 19 + .../data/node_modules/sqlstring/README.md | 206 + .../data/node_modules/sqlstring/index.js | 1 + .../node_modules/sqlstring/lib/SqlString.js | 237 + .../data/node_modules/sqlstring/package.json | 98 + .../rootfs/data/node_modules/sshpk/.npmignore | 9 + .../data/node_modules/sshpk/.travis.yml | 11 + .../rootfs/data/node_modules/sshpk/LICENSE | 18 + .../rootfs/data/node_modules/sshpk/README.md | 804 + .../data/node_modules/sshpk/bin/sshpk-conv | 243 + .../data/node_modules/sshpk/bin/sshpk-sign | 191 + .../data/node_modules/sshpk/bin/sshpk-verify | 167 + .../data/node_modules/sshpk/lib/algs.js | 168 + .../node_modules/sshpk/lib/certificate.js | 410 + .../rootfs/data/node_modules/sshpk/lib/dhe.js | 397 + .../data/node_modules/sshpk/lib/ed-compat.js | 92 + .../data/node_modules/sshpk/lib/errors.js | 84 + .../node_modules/sshpk/lib/fingerprint.js | 220 + .../node_modules/sshpk/lib/formats/auto.js | 124 + .../node_modules/sshpk/lib/formats/dnssec.js | 287 + .../sshpk/lib/formats/openssh-cert.js | 352 + .../node_modules/sshpk/lib/formats/pem.js | 290 + .../node_modules/sshpk/lib/formats/pkcs1.js | 373 + .../node_modules/sshpk/lib/formats/pkcs8.js | 631 + .../node_modules/sshpk/lib/formats/putty.js | 99 + .../node_modules/sshpk/lib/formats/rfc4253.js | 166 + .../sshpk/lib/formats/ssh-private.js | 262 + .../node_modules/sshpk/lib/formats/ssh.js | 115 + .../sshpk/lib/formats/x509-pem.js | 88 + .../node_modules/sshpk/lib/formats/x509.js | 752 + .../data/node_modules/sshpk/lib/identity.js | 373 + .../data/node_modules/sshpk/lib/index.js | 40 + .../rootfs/data/node_modules/sshpk/lib/key.js | 294 + .../node_modules/sshpk/lib/private-key.js | 246 + .../data/node_modules/sshpk/lib/signature.js | 314 + .../data/node_modules/sshpk/lib/ssh-buffer.js | 149 + .../data/node_modules/sshpk/lib/utils.js | 404 + .../node_modules/sshpk/man/man1/sshpk-conv.1 | 135 + .../node_modules/sshpk/man/man1/sshpk-sign.1 | 81 + .../sshpk/man/man1/sshpk-verify.1 | 68 + .../data/node_modules/sshpk/package.json | 96 + .../data/node_modules/statuses/HISTORY.md | 65 + .../rootfs/data/node_modules/statuses/LICENSE | 23 + .../data/node_modules/statuses/README.md | 127 + .../data/node_modules/statuses/codes.json | 66 + .../data/node_modules/statuses/index.js | 113 + .../data/node_modules/statuses/package.json | 88 + .../node_modules/stealthy-require/.npmignore | 13 + .../node_modules/stealthy-require/LICENSE | 15 + .../node_modules/stealthy-require/README.md | 192 + .../stealthy-require/lib/index.js | 81 + .../stealthy-require/package.json | 77 + .../string.prototype.trimleft/.eslintrc | 15 + .../.github/workflows/rebase.yml | 15 + .../string.prototype.trimleft/.travis.yml | 12 + .../string.prototype.trimleft/CHANGELOG.md | 37 + .../string.prototype.trimleft/LICENSE | 22 + .../string.prototype.trimleft/README.md | 47 + .../string.prototype.trimleft/auto.js | 3 + .../implementation.js | 12 + .../string.prototype.trimleft/index.js | 18 + .../string.prototype.trimleft/package.json | 100 + .../string.prototype.trimleft/polyfill.js | 14 + .../string.prototype.trimleft/shim.js | 14 + .../string.prototype.trimleft/test/index.js | 18 + .../string.prototype.trimleft/test/shimmed.js | 37 + .../string.prototype.trimleft/test/tests.js | 26 + .../string.prototype.trimright/.eslintrc | 15 + .../.github/workflows/rebase.yml | 15 + .../string.prototype.trimright/.travis.yml | 12 + .../string.prototype.trimright/CHANGELOG.md | 37 + .../string.prototype.trimright/LICENSE | 22 + .../string.prototype.trimright/README.md | 47 + .../string.prototype.trimright/auto.js | 3 + .../implementation.js | 12 + .../string.prototype.trimright/index.js | 18 + .../string.prototype.trimright/package.json | 100 + .../string.prototype.trimright/polyfill.js | 14 + .../string.prototype.trimright/shim.js | 14 + .../string.prototype.trimright/test/index.js | 17 + .../test/shimmed.js | 37 + .../string.prototype.trimright/test/tests.js | 26 + .../node_modules/string_decoder/.travis.yml | 50 + .../data/node_modules/string_decoder/LICENSE | 48 + .../node_modules/string_decoder/README.md | 47 + .../string_decoder/lib/string_decoder.js | 296 + .../node_modules/string_decoder/package.json | 59 + .../data/node_modules/strip-eof/index.js | 15 + .../data/node_modules/strip-eof/license | 21 + .../data/node_modules/strip-eof/package.json | 71 + .../data/node_modules/strip-eof/readme.md | 28 + nodered/rootfs/data/node_modules/tail/LICENSE | 21 + .../rootfs/data/node_modules/tail/README.md | 118 + .../rootfs/data/node_modules/tail/lib/tail.js | 222 + .../data/node_modules/tail/package.json | 72 + .../data/node_modules/tiny-emitter/.npmignore | 14 + .../data/node_modules/tiny-emitter/README.md | 95 + .../data/node_modules/tiny-emitter/bower.json | 29 + .../tiny-emitter/dist/tinyemitter.js | 70 + .../tiny-emitter/dist/tinyemitter.min.js | 1 + .../data/node_modules/tiny-emitter/index.d.ts | 7 + .../data/node_modules/tiny-emitter/index.js | 66 + .../node_modules/tiny-emitter/package.json | 80 + .../node_modules/tiny-emitter/test/index.js | 210 + .../rootfs/data/node_modules/tlds/History.md | 1096 + .../rootfs/data/node_modules/tlds/Readme.md | 29 + nodered/rootfs/data/node_modules/tlds/bin.js | 7 + nodered/rootfs/data/node_modules/tlds/cron.sh | 48 + .../rootfs/data/node_modules/tlds/index.d.ts | 2 + .../rootfs/data/node_modules/tlds/index.js | 1518 + .../data/node_modules/tlds/package.json | 64 + .../data/node_modules/to-array/.npmignore | 3 + .../rootfs/data/node_modules/to-array/LICENCE | 19 + .../data/node_modules/to-array/README.md | 22 + .../data/node_modules/to-array/index.js | 13 + .../data/node_modules/to-array/package.json | 68 + .../data/node_modules/toidentifier/LICENSE | 21 + .../data/node_modules/toidentifier/README.md | 61 + .../data/node_modules/toidentifier/index.js | 30 + .../node_modules/toidentifier/package.json | 76 + .../data/node_modules/tough-cookie/LICENSE | 12 + .../data/node_modules/tough-cookie/README.md | 507 + .../node_modules/tough-cookie/lib/cookie.js | 1431 + .../node_modules/tough-cookie/lib/memstore.js | 176 + .../tough-cookie/lib/pathMatch.js | 61 + .../tough-cookie/lib/permuteDomain.js | 56 + .../tough-cookie/lib/pubsuffix-psl.js | 38 + .../node_modules/tough-cookie/lib/store.js | 71 + .../node_modules/punycode/LICENSE-MIT.txt | 20 + .../node_modules/punycode/README.md | 176 + .../node_modules/punycode/package.json | 87 + .../node_modules/punycode/punycode.js | 533 + .../node_modules/tough-cookie/package.json | 95 + .../data/node_modules/tunnel-agent/LICENSE | 55 + .../data/node_modules/tunnel-agent/README.md | 4 + .../data/node_modules/tunnel-agent/index.js | 244 + .../node_modules/tunnel-agent/package.json | 55 + .../data/node_modules/tweetnacl/.npmignore | 4 + .../data/node_modules/tweetnacl/AUTHORS.md | 28 + .../data/node_modules/tweetnacl/CHANGELOG.md | 221 + .../data/node_modules/tweetnacl/LICENSE | 24 + .../tweetnacl/PULL_REQUEST_TEMPLATE.md | 20 + .../data/node_modules/tweetnacl/README.md | 459 + .../data/node_modules/tweetnacl/nacl-fast.js | 2388 + .../node_modules/tweetnacl/nacl-fast.min.js | 2 + .../data/node_modules/tweetnacl/nacl.d.ts | 98 + .../data/node_modules/tweetnacl/nacl.js | 1175 + .../data/node_modules/tweetnacl/nacl.min.js | 1 + .../data/node_modules/tweetnacl/package.json | 86 + .../node_modules/typed-function/.npmignore | 34 + .../node_modules/typed-function/.travis.yml | 7 + .../node_modules/typed-function/HISTORY.md | 161 + .../data/node_modules/typed-function/LICENSE | 21 + .../node_modules/typed-function/README.md | 355 + .../typed-function/benchmark/benchmark.js | 91 + .../typed-function/examples/any_type.js | 12 + .../typed-function/examples/basic_usage.js | 37 + .../typed-function/examples/browser.html | 20 + .../typed-function/examples/browser_amd.html | 25 + .../typed-function/examples/custom_type.js | 39 + .../examples/merge_typed_functions.js | 21 + .../examples/multiple_signatures.js | 18 + .../examples/type_conversion.js | 53 + .../examples/variable_arguments.js | 16 + .../node_modules/typed-function/package.json | 71 + .../typed-function/test/any_type.test.js | 220 + .../typed-function/test/browser.html | 127 + .../typed-function/test/compose.test.js | 77 + .../typed-function/test/construction.test.js | 262 + .../typed-function/test/conversion.test.js | 315 + .../typed-function/test/convert.test.js | 42 + .../typed-function/test/errors.test.js | 133 + .../typed-function/test/find.test.js | 48 + .../typed-function/test/merge.test.js | 62 + .../typed-function/test/strictEqualArray.js | 14 + .../typed-function/test/union_types.test.js | 18 + .../test/variable_arguments.test.js | 169 + .../typed-function/typed-function.js | 1387 + .../typed-function/typed-function.min.js | 1 + .../data/node_modules/uc.micro/CHANGELOG.md | 52 + .../data/node_modules/uc.micro/LICENSE.txt | 20 + .../data/node_modules/uc.micro/README.md | 14 + .../uc.micro/categories/Cc/regex.js | 1 + .../uc.micro/categories/Cf/regex.js | 1 + .../uc.micro/categories/P/regex.js | 1 + .../uc.micro/categories/Z/regex.js | 1 + .../data/node_modules/uc.micro/index.js | 7 + .../data/node_modules/uc.micro/package.json | 53 + .../uc.micro/properties/Any/regex.js | 1 + .../rootfs/data/node_modules/uri-js/README.md | 199 + .../data/node_modules/uri-js/bower.json | 47 + .../node_modules/uri-js/dist/es5/uri.all.d.ts | 59 + .../node_modules/uri-js/dist/es5/uri.all.js | 1389 + .../uri-js/dist/es5/uri.all.js.map | 1 + .../uri-js/dist/es5/uri.all.min.d.ts | 59 + .../uri-js/dist/es5/uri.all.min.js | 3 + .../uri-js/dist/es5/uri.all.min.js.map | 1 + .../uri-js/dist/esnext/index.d.ts | 1 + .../node_modules/uri-js/dist/esnext/index.js | 13 + .../uri-js/dist/esnext/index.js.map | 1 + .../uri-js/dist/esnext/regexps-iri.d.ts | 3 + .../uri-js/dist/esnext/regexps-iri.js | 3 + .../uri-js/dist/esnext/regexps-iri.js.map | 1 + .../uri-js/dist/esnext/regexps-uri.d.ts | 4 + .../uri-js/dist/esnext/regexps-uri.js | 42 + .../uri-js/dist/esnext/regexps-uri.js.map | 1 + .../uri-js/dist/esnext/schemes/http.d.ts | 3 + .../uri-js/dist/esnext/schemes/http.js | 27 + .../uri-js/dist/esnext/schemes/http.js.map | 1 + .../uri-js/dist/esnext/schemes/https.d.ts | 3 + .../uri-js/dist/esnext/schemes/https.js | 9 + .../uri-js/dist/esnext/schemes/https.js.map | 1 + .../uri-js/dist/esnext/schemes/mailto.d.ts | 12 + .../uri-js/dist/esnext/schemes/mailto.js | 148 + .../uri-js/dist/esnext/schemes/mailto.js.map | 1 + .../uri-js/dist/esnext/schemes/urn-uuid.d.ts | 7 + .../uri-js/dist/esnext/schemes/urn-uuid.js | 23 + .../dist/esnext/schemes/urn-uuid.js.map | 1 + .../uri-js/dist/esnext/schemes/urn.d.ts | 10 + .../uri-js/dist/esnext/schemes/urn.js | 49 + .../uri-js/dist/esnext/schemes/urn.js.map | 1 + .../node_modules/uri-js/dist/esnext/uri.d.ts | 59 + .../node_modules/uri-js/dist/esnext/uri.js | 480 + .../uri-js/dist/esnext/uri.js.map | 1 + .../node_modules/uri-js/dist/esnext/util.d.ts | 6 + .../node_modules/uri-js/dist/esnext/util.js | 36 + .../uri-js/dist/esnext/util.js.map | 1 + .../data/node_modules/uri-js/package.json | 93 + .../data/node_modules/uri-js/rollup.config.js | 32 + .../data/node_modules/uri-js/src/index.ts | 18 + .../node_modules/uri-js/src/punycode.d.ts | 24 + .../node_modules/uri-js/src/regexps-iri.ts | 4 + .../node_modules/uri-js/src/regexps-uri.ts | 89 + .../node_modules/uri-js/src/schemes/http.ts | 36 + .../node_modules/uri-js/src/schemes/https.ts | 11 + .../node_modules/uri-js/src/schemes/mailto.ts | 182 + .../uri-js/src/schemes/urn-uuid.ts | 36 + .../node_modules/uri-js/src/schemes/urn.ts | 69 + .../data/node_modules/uri-js/src/uri.ts | 556 + .../data/node_modules/uri-js/src/util.ts | 40 + .../data/node_modules/uri-js/tests/qunit.css | 118 + .../data/node_modules/uri-js/tests/qunit.js | 1042 + .../uri-js/tests/test-es5-min.html | 17 + .../node_modules/uri-js/tests/test-es5.html | 17 + .../data/node_modules/uri-js/tests/tests.js | 774 + .../data/node_modules/uri-js/tsconfig.json | 20 + .../rootfs/data/node_modules/uri-js/yarn.lock | 1902 + nodered/rootfs/data/node_modules/utf7/LICENSE | 19 + .../rootfs/data/node_modules/utf7/README.md | 33 + .../utf7/node_modules/.bin/semver | 1 + .../utf7/node_modules/semver/LICENSE | 15 + .../utf7/node_modules/semver/README.md | 350 + .../utf7/node_modules/semver/bin/semver | 133 + .../utf7/node_modules/semver/package.json | 54 + .../utf7/node_modules/semver/range.bnf | 16 + .../utf7/node_modules/semver/semver.js | 1203 + .../data/node_modules/utf7/package.json | 49 + .../data/node_modules/utf7/test/utf7-imap.js | 48 + .../node_modules/utf7/test/utf7-rfc2152.js | 78 + nodered/rootfs/data/node_modules/utf7/utf7.js | 119 + .../node_modules/util-deprecate/History.md | 16 + .../data/node_modules/util-deprecate/LICENSE | 24 + .../node_modules/util-deprecate/README.md | 53 + .../node_modules/util-deprecate/browser.js | 67 + .../data/node_modules/util-deprecate/node.js | 6 + .../node_modules/util-deprecate/package.json | 56 + nodered/rootfs/data/node_modules/uuid/AUTHORS | 5 + .../data/node_modules/uuid/CHANGELOG.md | 112 + .../rootfs/data/node_modules/uuid/LICENSE.md | 21 + .../rootfs/data/node_modules/uuid/README.md | 293 + .../rootfs/data/node_modules/uuid/bin/uuid | 65 + .../rootfs/data/node_modules/uuid/index.js | 8 + .../data/node_modules/uuid/lib/bytesToUuid.js | 24 + .../data/node_modules/uuid/lib/md5-browser.js | 216 + .../rootfs/data/node_modules/uuid/lib/md5.js | 25 + .../data/node_modules/uuid/lib/rng-browser.js | 34 + .../rootfs/data/node_modules/uuid/lib/rng.js | 8 + .../node_modules/uuid/lib/sha1-browser.js | 89 + .../rootfs/data/node_modules/uuid/lib/sha1.js | 25 + .../rootfs/data/node_modules/uuid/lib/v35.js | 57 + .../data/node_modules/uuid/package.json | 95 + nodered/rootfs/data/node_modules/uuid/v1.js | 109 + nodered/rootfs/data/node_modules/uuid/v3.js | 4 + nodered/rootfs/data/node_modules/uuid/v4.js | 29 + nodered/rootfs/data/node_modules/uuid/v5.js | 3 + .../rootfs/data/node_modules/vary/HISTORY.md | 39 + nodered/rootfs/data/node_modules/vary/LICENSE | 22 + .../rootfs/data/node_modules/vary/README.md | 101 + .../rootfs/data/node_modules/vary/index.js | 149 + .../data/node_modules/vary/package.json | 78 + .../data/node_modules/verror/.npmignore | 9 + .../data/node_modules/verror/CHANGES.md | 28 + .../data/node_modules/verror/CONTRIBUTING.md | 19 + .../rootfs/data/node_modules/verror/LICENSE | 19 + .../rootfs/data/node_modules/verror/README.md | 528 + .../data/node_modules/verror/lib/verror.js | 451 + .../data/node_modules/verror/package.json | 51 + .../data/node_modules/which/CHANGELOG.md | 152 + .../rootfs/data/node_modules/which/LICENSE | 15 + .../rootfs/data/node_modules/which/README.md | 51 + .../rootfs/data/node_modules/which/bin/which | 52 + .../data/node_modules/which/package.json | 65 + .../rootfs/data/node_modules/which/which.js | 135 + .../rootfs/data/node_modules/wordwrap/LICENSE | 18 + .../node_modules/wordwrap/README.markdown | 70 + .../node_modules/wordwrap/example/center.js | 10 + .../node_modules/wordwrap/example/meat.js | 3 + .../data/node_modules/wordwrap/index.js | 76 + .../data/node_modules/wordwrap/package.json | 66 + .../data/node_modules/wordwrap/test/break.js | 30 + .../node_modules/wordwrap/test/idleness.txt | 63 + .../data/node_modules/wordwrap/test/wrap.js | 31 + .../rootfs/data/node_modules/wrappy/LICENSE | 15 + .../rootfs/data/node_modules/wrappy/README.md | 36 + .../data/node_modules/wrappy/package.json | 58 + .../rootfs/data/node_modules/wrappy/wrappy.js | 33 + nodered/rootfs/data/node_modules/ws/LICENSE | 21 + nodered/rootfs/data/node_modules/ws/README.md | 490 + .../rootfs/data/node_modules/ws/browser.js | 8 + nodered/rootfs/data/node_modules/ws/index.js | 10 + .../data/node_modules/ws/lib/buffer-util.js | 146 + .../data/node_modules/ws/lib/constants.js | 10 + .../data/node_modules/ws/lib/event-target.js | 170 + .../data/node_modules/ws/lib/extension.js | 223 + .../data/node_modules/ws/lib/limiter.js | 54 + .../node_modules/ws/lib/permessage-deflate.js | 511 + .../data/node_modules/ws/lib/receiver.js | 493 + .../rootfs/data/node_modules/ws/lib/sender.js | 360 + .../rootfs/data/node_modules/ws/lib/stream.js | 149 + .../data/node_modules/ws/lib/validation.js | 30 + .../node_modules/ws/lib/websocket-server.js | 406 + .../data/node_modules/ws/lib/websocket.js | 908 + .../rootfs/data/node_modules/ws/package.json | 97 + .../node_modules/xmlhttprequest-ssl/LICENSE | 22 + .../node_modules/xmlhttprequest-ssl/README.md | 63 + .../xmlhttprequest-ssl/autotest.watchr | 8 + .../xmlhttprequest-ssl/example/demo.js | 16 + .../xmlhttprequest-ssl/lib/XMLHttpRequest.js | 651 + .../xmlhttprequest-ssl/package.json | 63 + .../tests/test-constants.js | 13 + .../xmlhttprequest-ssl/tests/test-events.js | 50 + .../tests/test-exceptions.js | 59 + .../xmlhttprequest-ssl/tests/test-headers.js | 76 + .../tests/test-redirect-302.js | 41 + .../tests/test-redirect-303.js | 41 + .../tests/test-redirect-307.js | 43 + .../tests/test-request-methods.js | 62 + .../tests/test-request-protocols.js | 32 + .../xmlhttprequest-ssl/tests/testdata.txt | 1 + .../rootfs/data/node_modules/yeast/LICENSE | 22 + .../rootfs/data/node_modules/yeast/README.md | 82 + .../rootfs/data/node_modules/yeast/index.js | 68 + .../data/node_modules/yeast/package.json | 64 + nodered/rootfs/data/package.json | 18 + nodered/rootfs/data/scale1.dump | 0 nodered/rootfs/data/scale2.dump | 0 nodered/rootfs/data/scale3.dump | 0 nodered/rootfs/data/scale4.dump | 0 nodered/rootfs/data/settings.js | 284 + nodered/rootfs/data/starter.dump | 0 5892 files changed, 759183 insertions(+) create mode 100755 .env create mode 100644 .gitignore create mode 100755 Makefile create mode 100755 docker-compose.yml create mode 100755 grafana/Dockerfile create mode 100755 grafana/Makefile create mode 100755 influxdb/Dockerfile create mode 100755 influxdb/Makefile create mode 100644 influxdb/rootfs/etc/influxdb/influxdb.conf create mode 100755 mariadb/Dockerfile create mode 100755 mariadb/Makefile create mode 100644 mariadb/rootfs/docker-entrypoint-initdb.d/init.sql create mode 100755 mosquitto/Dockerfile create mode 100755 mosquitto/Makefile create mode 100644 mosquitto/rootfs/config/mosquitto.conf create mode 100644 mosquitto/rootfs/config/passwordfile create mode 100755 nodered/Dockerfile create mode 100755 nodered/Makefile create mode 100755 nodered/rootfs/data/.config.json create mode 100755 nodered/rootfs/data/.config.nodes.json create mode 100755 nodered/rootfs/data/.config.projects.json create mode 100755 nodered/rootfs/data/.config.runtime.json create mode 100755 nodered/rootfs/data/.config.users.json create mode 100755 nodered/rootfs/data/flows.json create mode 100644 nodered/rootfs/data/flows_cred.json create mode 120000 nodered/rootfs/data/node_modules/.bin/electron create mode 120000 nodered/rootfs/data/node_modules/.bin/electron-download create mode 120000 nodered/rootfs/data/node_modules/.bin/extract-zip create mode 120000 nodered/rootfs/data/node_modules/.bin/he create mode 120000 nodered/rootfs/data/node_modules/.bin/html-to-text create mode 120000 nodered/rootfs/data/node_modules/.bin/mathjs create mode 120000 nodered/rootfs/data/node_modules/.bin/mime create mode 120000 nodered/rootfs/data/node_modules/.bin/nugget create mode 120000 nodered/rootfs/data/node_modules/.bin/pretty-bytes create mode 120000 nodered/rootfs/data/node_modules/.bin/rc create mode 120000 nodered/rootfs/data/node_modules/.bin/semver create mode 120000 nodered/rootfs/data/node_modules/.bin/sshpk-conv create mode 120000 nodered/rootfs/data/node_modules/.bin/sshpk-sign create mode 120000 nodered/rootfs/data/node_modules/.bin/sshpk-verify create mode 120000 nodered/rootfs/data/node_modules/.bin/strip-indent create mode 120000 nodered/rootfs/data/node_modules/.bin/tlds create mode 120000 nodered/rootfs/data/node_modules/.bin/uuid create mode 120000 nodered/rootfs/data/node_modules/.bin/which create mode 100644 nodered/rootfs/data/node_modules/accepts/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/accepts/LICENSE create mode 100644 nodered/rootfs/data/node_modules/accepts/README.md create mode 100644 nodered/rootfs/data/node_modules/accepts/index.js create mode 100644 nodered/rootfs/data/node_modules/accepts/package.json create mode 100644 nodered/rootfs/data/node_modules/after/.npmignore create mode 100644 nodered/rootfs/data/node_modules/after/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/after/LICENCE create mode 100644 nodered/rootfs/data/node_modules/after/README.md create mode 100644 nodered/rootfs/data/node_modules/after/index.js create mode 100644 nodered/rootfs/data/node_modules/after/package.json create mode 100644 nodered/rootfs/data/node_modules/after/test/after-test.js create mode 100644 nodered/rootfs/data/node_modules/ajv/.tonic_example.js create mode 100644 nodered/rootfs/data/node_modules/ajv/LICENSE create mode 100644 nodered/rootfs/data/node_modules/ajv/README.md create mode 100644 nodered/rootfs/data/node_modules/ajv/dist/ajv.bundle.js create mode 100644 nodered/rootfs/data/node_modules/ajv/dist/ajv.min.js create mode 100644 nodered/rootfs/data/node_modules/ajv/dist/ajv.min.js.map create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/ajv.d.ts create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/ajv.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/cache.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/async.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/equal.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/error_classes.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/formats.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/index.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/resolve.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/rules.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/schema_obj.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/ucs2length.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/compile/util.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/data.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/definition_schema.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/_limit.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/_limitItems.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/_limitLength.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/_limitProperties.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/allOf.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/anyOf.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/coerce.def create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/comment.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/const.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/contains.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/custom.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/defaults.def create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/definitions.def create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/dependencies.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/enum.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/errors.def create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/format.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/if.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/items.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/missing.def create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/multipleOf.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/not.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/oneOf.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/pattern.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/properties.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/propertyNames.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/ref.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/required.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/uniqueItems.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dot/validate.jst create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/README.md create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limit.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitItems.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitLength.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitProperties.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/allOf.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/anyOf.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/comment.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/const.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/contains.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/custom.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/dependencies.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/enum.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/format.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/if.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/index.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/items.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/multipleOf.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/not.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/oneOf.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/pattern.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/properties.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/propertyNames.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/ref.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/required.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/uniqueItems.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/dotjs/validate.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/keyword.js create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/refs/data.json create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/refs/json-schema-draft-04.json create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/refs/json-schema-draft-06.json create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/refs/json-schema-draft-07.json create mode 100644 nodered/rootfs/data/node_modules/ajv/lib/refs/json-schema-secure.json create mode 100644 nodered/rootfs/data/node_modules/ajv/package.json create mode 100644 nodered/rootfs/data/node_modules/ajv/scripts/.eslintrc.yml create mode 100644 nodered/rootfs/data/node_modules/ajv/scripts/bundle.js create mode 100644 nodered/rootfs/data/node_modules/ajv/scripts/compile-dots.js create mode 100755 nodered/rootfs/data/node_modules/ajv/scripts/info create mode 100755 nodered/rootfs/data/node_modules/ajv/scripts/prepare-tests create mode 100755 nodered/rootfs/data/node_modules/ajv/scripts/publish-built-version create mode 100755 nodered/rootfs/data/node_modules/ajv/scripts/travis-gh-pages create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/.npmignore create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/README.md create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/detect.js create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/implementation.js create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/index.js create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/package.json create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/polyfill.js create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/shim.js create mode 100644 nodered/rootfs/data/node_modules/array.prototype.findindex/test.js create mode 100644 nodered/rootfs/data/node_modules/arraybuffer.slice/.npmignore create mode 100644 nodered/rootfs/data/node_modules/arraybuffer.slice/LICENCE create mode 100644 nodered/rootfs/data/node_modules/arraybuffer.slice/Makefile create mode 100644 nodered/rootfs/data/node_modules/arraybuffer.slice/README.md create mode 100644 nodered/rootfs/data/node_modules/arraybuffer.slice/index.js create mode 100644 nodered/rootfs/data/node_modules/arraybuffer.slice/package.json create mode 100644 nodered/rootfs/data/node_modules/arraybuffer.slice/test/slice-buffer.js create mode 100644 nodered/rootfs/data/node_modules/asn1/LICENSE create mode 100644 nodered/rootfs/data/node_modules/asn1/README.md create mode 100644 nodered/rootfs/data/node_modules/asn1/lib/ber/errors.js create mode 100644 nodered/rootfs/data/node_modules/asn1/lib/ber/index.js create mode 100644 nodered/rootfs/data/node_modules/asn1/lib/ber/reader.js create mode 100644 nodered/rootfs/data/node_modules/asn1/lib/ber/types.js create mode 100644 nodered/rootfs/data/node_modules/asn1/lib/ber/writer.js create mode 100644 nodered/rootfs/data/node_modules/asn1/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/asn1/package.json create mode 100644 nodered/rootfs/data/node_modules/assert-plus/AUTHORS create mode 100644 nodered/rootfs/data/node_modules/assert-plus/CHANGES.md create mode 100644 nodered/rootfs/data/node_modules/assert-plus/README.md create mode 100644 nodered/rootfs/data/node_modules/assert-plus/assert.js create mode 100644 nodered/rootfs/data/node_modules/assert-plus/package.json create mode 100644 nodered/rootfs/data/node_modules/async-limiter/.eslintignore create mode 100644 nodered/rootfs/data/node_modules/async-limiter/.nycrc create mode 100644 nodered/rootfs/data/node_modules/async-limiter/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/async-limiter/LICENSE create mode 100644 nodered/rootfs/data/node_modules/async-limiter/index.js create mode 100644 nodered/rootfs/data/node_modules/async-limiter/package.json create mode 100644 nodered/rootfs/data/node_modules/async-limiter/readme.md create mode 100644 nodered/rootfs/data/node_modules/asynckit/LICENSE create mode 100644 nodered/rootfs/data/node_modules/asynckit/README.md create mode 100644 nodered/rootfs/data/node_modules/asynckit/bench.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/index.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/abort.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/async.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/defer.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/iterate.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/readable_asynckit.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/readable_parallel.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/readable_serial.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/readable_serial_ordered.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/state.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/streamify.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/lib/terminator.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/package.json create mode 100644 nodered/rootfs/data/node_modules/asynckit/parallel.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/serial.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/serialOrdered.js create mode 100644 nodered/rootfs/data/node_modules/asynckit/stream.js create mode 100644 nodered/rootfs/data/node_modules/aws-sign2/LICENSE create mode 100644 nodered/rootfs/data/node_modules/aws-sign2/README.md create mode 100644 nodered/rootfs/data/node_modules/aws-sign2/index.js create mode 100644 nodered/rootfs/data/node_modules/aws-sign2/package.json create mode 100644 nodered/rootfs/data/node_modules/aws4/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/aws4/LICENSE create mode 100644 nodered/rootfs/data/node_modules/aws4/README.md create mode 100644 nodered/rootfs/data/node_modules/aws4/aws4.js create mode 100644 nodered/rootfs/data/node_modules/aws4/lru.js create mode 100644 nodered/rootfs/data/node_modules/aws4/package.json create mode 100644 nodered/rootfs/data/node_modules/backo2/.npmignore create mode 100644 nodered/rootfs/data/node_modules/backo2/History.md create mode 100644 nodered/rootfs/data/node_modules/backo2/Makefile create mode 100644 nodered/rootfs/data/node_modules/backo2/Readme.md create mode 100644 nodered/rootfs/data/node_modules/backo2/component.json create mode 100644 nodered/rootfs/data/node_modules/backo2/index.js create mode 100644 nodered/rootfs/data/node_modules/backo2/package.json create mode 100644 nodered/rootfs/data/node_modules/backo2/test/index.js create mode 100644 nodered/rootfs/data/node_modules/base64-arraybuffer/.npmignore create mode 100644 nodered/rootfs/data/node_modules/base64-arraybuffer/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/base64-arraybuffer/LICENSE-MIT create mode 100644 nodered/rootfs/data/node_modules/base64-arraybuffer/README.md create mode 100644 nodered/rootfs/data/node_modules/base64-arraybuffer/lib/base64-arraybuffer.js create mode 100644 nodered/rootfs/data/node_modules/base64-arraybuffer/package.json create mode 100644 nodered/rootfs/data/node_modules/base64id/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/base64id/LICENSE create mode 100644 nodered/rootfs/data/node_modules/base64id/README.md create mode 100644 nodered/rootfs/data/node_modules/base64id/lib/base64id.js create mode 100644 nodered/rootfs/data/node_modules/base64id/package.json create mode 100644 nodered/rootfs/data/node_modules/bcrypt-pbkdf/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/bcrypt-pbkdf/LICENSE create mode 100644 nodered/rootfs/data/node_modules/bcrypt-pbkdf/README.md create mode 100644 nodered/rootfs/data/node_modules/bcrypt-pbkdf/index.js create mode 100644 nodered/rootfs/data/node_modules/bcrypt-pbkdf/package.json create mode 100644 nodered/rootfs/data/node_modules/better-assert/.npmignore create mode 100644 nodered/rootfs/data/node_modules/better-assert/History.md create mode 100644 nodered/rootfs/data/node_modules/better-assert/Makefile create mode 100644 nodered/rootfs/data/node_modules/better-assert/Readme.md create mode 100644 nodered/rootfs/data/node_modules/better-assert/example.js create mode 100644 nodered/rootfs/data/node_modules/better-assert/index.js create mode 100644 nodered/rootfs/data/node_modules/better-assert/package.json create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/LICENCE create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/README.md create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/bignumber.d.ts create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/bignumber.js create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/bignumber.js.map create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/bignumber.min.js create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/bignumber.mjs create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/bower.json create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/doc/API.html create mode 100644 nodered/rootfs/data/node_modules/bignumber.js/package.json create mode 100644 nodered/rootfs/data/node_modules/bl/.jshintrc create mode 100644 nodered/rootfs/data/node_modules/bl/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/bl/LICENSE.md create mode 100644 nodered/rootfs/data/node_modules/bl/README.md create mode 100644 nodered/rootfs/data/node_modules/bl/bl.js create mode 100644 nodered/rootfs/data/node_modules/bl/package.json create mode 100644 nodered/rootfs/data/node_modules/bl/test/test.js create mode 100644 nodered/rootfs/data/node_modules/blob/.idea/blob.iml create mode 100644 nodered/rootfs/data/node_modules/blob/.idea/inspectionProfiles/profiles_settings.xml create mode 100644 nodered/rootfs/data/node_modules/blob/.idea/markdown-navigator.xml create mode 100644 nodered/rootfs/data/node_modules/blob/.idea/markdown-navigator/profiles_settings.xml create mode 100644 nodered/rootfs/data/node_modules/blob/.idea/modules.xml create mode 100644 nodered/rootfs/data/node_modules/blob/.idea/vcs.xml create mode 100644 nodered/rootfs/data/node_modules/blob/.idea/workspace.xml create mode 100644 nodered/rootfs/data/node_modules/blob/.zuul.yml create mode 100644 nodered/rootfs/data/node_modules/blob/LICENSE create mode 100644 nodered/rootfs/data/node_modules/blob/Makefile create mode 100644 nodered/rootfs/data/node_modules/blob/README.md create mode 100644 nodered/rootfs/data/node_modules/blob/component.json create mode 100644 nodered/rootfs/data/node_modules/blob/index.js create mode 100644 nodered/rootfs/data/node_modules/blob/package.json create mode 100644 nodered/rootfs/data/node_modules/blob/test/index.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/LICENSE create mode 100644 nodered/rootfs/data/node_modules/bluebird/README.md create mode 100644 nodered/rootfs/data/node_modules/bluebird/changelog.md create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/browser/bluebird.core.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/browser/bluebird.core.min.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/browser/bluebird.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/browser/bluebird.min.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/any.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/assert.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/async.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/bind.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/bluebird.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/call_get.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/cancel.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/catch_filter.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/context.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/debuggability.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/direct_resolve.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/each.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/errors.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/es5.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/filter.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/finally.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/generators.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/join.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/map.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/method.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/nodeback.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/nodeify.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/promise.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/promise_array.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/promisify.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/props.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/queue.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/race.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/reduce.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/schedule.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/settle.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/some.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/synchronous_inspection.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/thenables.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/timers.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/using.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/js/release/util.js create mode 100644 nodered/rootfs/data/node_modules/bluebird/package.json create mode 100644 nodered/rootfs/data/node_modules/bytes/History.md create mode 100644 nodered/rootfs/data/node_modules/bytes/LICENSE create mode 100644 nodered/rootfs/data/node_modules/bytes/Readme.md create mode 100644 nodered/rootfs/data/node_modules/bytes/index.js create mode 100644 nodered/rootfs/data/node_modules/bytes/package.json create mode 100644 nodered/rootfs/data/node_modules/callsite/.npmignore create mode 100644 nodered/rootfs/data/node_modules/callsite/History.md create mode 100644 nodered/rootfs/data/node_modules/callsite/Makefile create mode 100644 nodered/rootfs/data/node_modules/callsite/Readme.md create mode 100644 nodered/rootfs/data/node_modules/callsite/index.js create mode 100644 nodered/rootfs/data/node_modules/callsite/package.json create mode 100644 nodered/rootfs/data/node_modules/caseless/LICENSE create mode 100644 nodered/rootfs/data/node_modules/caseless/README.md create mode 100644 nodered/rootfs/data/node_modules/caseless/index.js create mode 100644 nodered/rootfs/data/node_modules/caseless/package.json create mode 100644 nodered/rootfs/data/node_modules/caseless/test.js create mode 100644 nodered/rootfs/data/node_modules/circular-buffer/.npmignore create mode 100644 nodered/rootfs/data/node_modules/circular-buffer/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/circular-buffer/README.md create mode 100644 nodered/rootfs/data/node_modules/circular-buffer/index.js create mode 100644 nodered/rootfs/data/node_modules/circular-buffer/package.json create mode 100644 nodered/rootfs/data/node_modules/circular-buffer/test/test.js create mode 100644 nodered/rootfs/data/node_modules/combined-stream/License create mode 100644 nodered/rootfs/data/node_modules/combined-stream/Readme.md create mode 100644 nodered/rootfs/data/node_modules/combined-stream/lib/combined_stream.js create mode 100644 nodered/rootfs/data/node_modules/combined-stream/package.json create mode 100644 nodered/rootfs/data/node_modules/combined-stream/yarn.lock create mode 100644 nodered/rootfs/data/node_modules/complex.js/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/complex.js/README.md create mode 100644 nodered/rootfs/data/node_modules/complex.js/bower.json create mode 100644 nodered/rootfs/data/node_modules/complex.js/complex.js create mode 100644 nodered/rootfs/data/node_modules/complex.js/complex.min.js create mode 100644 nodered/rootfs/data/node_modules/complex.js/package.json create mode 100644 nodered/rootfs/data/node_modules/complex.js/tests/complex.test.js create mode 100644 nodered/rootfs/data/node_modules/component-bind/.npmignore create mode 100644 nodered/rootfs/data/node_modules/component-bind/History.md create mode 100644 nodered/rootfs/data/node_modules/component-bind/Makefile create mode 100644 nodered/rootfs/data/node_modules/component-bind/Readme.md create mode 100644 nodered/rootfs/data/node_modules/component-bind/component.json create mode 100644 nodered/rootfs/data/node_modules/component-bind/index.js create mode 100644 nodered/rootfs/data/node_modules/component-bind/package.json create mode 100644 nodered/rootfs/data/node_modules/component-emitter/History.md create mode 100644 nodered/rootfs/data/node_modules/component-emitter/LICENSE create mode 100644 nodered/rootfs/data/node_modules/component-emitter/Readme.md create mode 100644 nodered/rootfs/data/node_modules/component-emitter/index.js create mode 100644 nodered/rootfs/data/node_modules/component-emitter/package.json create mode 100644 nodered/rootfs/data/node_modules/component-inherit/.npmignore create mode 100644 nodered/rootfs/data/node_modules/component-inherit/History.md create mode 100644 nodered/rootfs/data/node_modules/component-inherit/Makefile create mode 100644 nodered/rootfs/data/node_modules/component-inherit/Readme.md create mode 100644 nodered/rootfs/data/node_modules/component-inherit/component.json create mode 100644 nodered/rootfs/data/node_modules/component-inherit/index.js create mode 100644 nodered/rootfs/data/node_modules/component-inherit/package.json create mode 100644 nodered/rootfs/data/node_modules/component-inherit/test/inherit.js create mode 100644 nodered/rootfs/data/node_modules/compressible/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/compressible/LICENSE create mode 100644 nodered/rootfs/data/node_modules/compressible/README.md create mode 100644 nodered/rootfs/data/node_modules/compressible/index.js create mode 100644 nodered/rootfs/data/node_modules/compressible/package.json create mode 100644 nodered/rootfs/data/node_modules/compression/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/compression/LICENSE create mode 100644 nodered/rootfs/data/node_modules/compression/README.md create mode 100644 nodered/rootfs/data/node_modules/compression/index.js create mode 100644 nodered/rootfs/data/node_modules/compression/node_modules/safe-buffer/LICENSE create mode 100644 nodered/rootfs/data/node_modules/compression/node_modules/safe-buffer/README.md create mode 100644 nodered/rootfs/data/node_modules/compression/node_modules/safe-buffer/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/compression/node_modules/safe-buffer/index.js create mode 100644 nodered/rootfs/data/node_modules/compression/node_modules/safe-buffer/package.json create mode 100644 nodered/rootfs/data/node_modules/compression/package.json create mode 100644 nodered/rootfs/data/node_modules/cookie/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/cookie/LICENSE create mode 100644 nodered/rootfs/data/node_modules/cookie/README.md create mode 100644 nodered/rootfs/data/node_modules/cookie/index.js create mode 100644 nodered/rootfs/data/node_modules/cookie/package.json create mode 100644 nodered/rootfs/data/node_modules/core-util-is/LICENSE create mode 100644 nodered/rootfs/data/node_modules/core-util-is/README.md create mode 100644 nodered/rootfs/data/node_modules/core-util-is/float.patch create mode 100644 nodered/rootfs/data/node_modules/core-util-is/lib/util.js create mode 100644 nodered/rootfs/data/node_modules/core-util-is/package.json create mode 100644 nodered/rootfs/data/node_modules/core-util-is/test.js create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/LICENSE create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/README.md create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/index.js create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/lib/enoent.js create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/lib/parse.js create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/lib/util/escape.js create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/lib/util/readShebang.js create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/lib/util/resolveCommand.js create mode 100644 nodered/rootfs/data/node_modules/cross-spawn/package.json create mode 100644 nodered/rootfs/data/node_modules/dashdash/CHANGES.md create mode 100644 nodered/rootfs/data/node_modules/dashdash/LICENSE.txt create mode 100644 nodered/rootfs/data/node_modules/dashdash/README.md create mode 100644 nodered/rootfs/data/node_modules/dashdash/etc/dashdash.bash_completion.in create mode 100644 nodered/rootfs/data/node_modules/dashdash/lib/dashdash.js create mode 100644 nodered/rootfs/data/node_modules/dashdash/package.json create mode 100644 nodered/rootfs/data/node_modules/debug/.coveralls.yml create mode 100644 nodered/rootfs/data/node_modules/debug/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/debug/.npmignore create mode 100644 nodered/rootfs/data/node_modules/debug/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/debug/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/debug/LICENSE create mode 100644 nodered/rootfs/data/node_modules/debug/Makefile create mode 100644 nodered/rootfs/data/node_modules/debug/README.md create mode 100644 nodered/rootfs/data/node_modules/debug/component.json create mode 100644 nodered/rootfs/data/node_modules/debug/karma.conf.js create mode 100644 nodered/rootfs/data/node_modules/debug/node.js create mode 100644 nodered/rootfs/data/node_modules/debug/package.json create mode 100644 nodered/rootfs/data/node_modules/debug/src/browser.js create mode 100644 nodered/rootfs/data/node_modules/debug/src/debug.js create mode 100644 nodered/rootfs/data/node_modules/debug/src/index.js create mode 100644 nodered/rootfs/data/node_modules/debug/src/inspector-log.js create mode 100644 nodered/rootfs/data/node_modules/debug/src/node.js create mode 100644 nodered/rootfs/data/node_modules/decimal.js/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/decimal.js/LICENCE.md create mode 100644 nodered/rootfs/data/node_modules/decimal.js/README.md create mode 100644 nodered/rootfs/data/node_modules/decimal.js/bower.json create mode 100644 nodered/rootfs/data/node_modules/decimal.js/decimal.js create mode 100644 nodered/rootfs/data/node_modules/decimal.js/decimal.min.js create mode 100644 nodered/rootfs/data/node_modules/decimal.js/doc/API.html create mode 100644 nodered/rootfs/data/node_modules/decimal.js/doc/decimal.js.map create mode 100644 nodered/rootfs/data/node_modules/decimal.js/package.json create mode 100644 nodered/rootfs/data/node_modules/define-properties/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/define-properties/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/define-properties/.jscs.json create mode 100644 nodered/rootfs/data/node_modules/define-properties/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/define-properties/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/define-properties/LICENSE create mode 100644 nodered/rootfs/data/node_modules/define-properties/README.md create mode 100644 nodered/rootfs/data/node_modules/define-properties/index.js create mode 100644 nodered/rootfs/data/node_modules/define-properties/package.json create mode 100644 nodered/rootfs/data/node_modules/define-properties/test/index.js create mode 100644 nodered/rootfs/data/node_modules/delayed-stream/.npmignore create mode 100644 nodered/rootfs/data/node_modules/delayed-stream/License create mode 100644 nodered/rootfs/data/node_modules/delayed-stream/Makefile create mode 100644 nodered/rootfs/data/node_modules/delayed-stream/Readme.md create mode 100644 nodered/rootfs/data/node_modules/delayed-stream/lib/delayed_stream.js create mode 100644 nodered/rootfs/data/node_modules/delayed-stream/package.json create mode 100644 nodered/rootfs/data/node_modules/depd/History.md create mode 100644 nodered/rootfs/data/node_modules/depd/LICENSE create mode 100644 nodered/rootfs/data/node_modules/depd/Readme.md create mode 100644 nodered/rootfs/data/node_modules/depd/index.js create mode 100644 nodered/rootfs/data/node_modules/depd/lib/browser/index.js create mode 100644 nodered/rootfs/data/node_modules/depd/lib/compat/callsite-tostring.js create mode 100644 nodered/rootfs/data/node_modules/depd/lib/compat/event-listener-count.js create mode 100644 nodered/rootfs/data/node_modules/depd/lib/compat/index.js create mode 100644 nodered/rootfs/data/node_modules/depd/package.json create mode 100644 nodered/rootfs/data/node_modules/destroy/LICENSE create mode 100644 nodered/rootfs/data/node_modules/destroy/README.md create mode 100644 nodered/rootfs/data/node_modules/destroy/index.js create mode 100644 nodered/rootfs/data/node_modules/destroy/package.json create mode 100644 nodered/rootfs/data/node_modules/dom-serializer/LICENSE create mode 100644 nodered/rootfs/data/node_modules/dom-serializer/index.js create mode 100644 nodered/rootfs/data/node_modules/dom-serializer/package.json create mode 100644 nodered/rootfs/data/node_modules/domelementtype/LICENSE create mode 100644 nodered/rootfs/data/node_modules/domelementtype/index.js create mode 100644 nodered/rootfs/data/node_modules/domelementtype/package.json create mode 100644 nodered/rootfs/data/node_modules/domelementtype/readme.md create mode 100644 nodered/rootfs/data/node_modules/domhandler/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/domhandler/LICENSE create mode 100644 nodered/rootfs/data/node_modules/domhandler/index.js create mode 100644 nodered/rootfs/data/node_modules/domhandler/lib/element.js create mode 100644 nodered/rootfs/data/node_modules/domhandler/lib/node.js create mode 100644 nodered/rootfs/data/node_modules/domhandler/package.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/readme.md create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/01-basic.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/02-single_tag_1.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/03-single_tag_2.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/04-unescaped_in_script.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/05-tags_in_comment.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/06-comment_in_script.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/07-unescaped_in_style.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/08-extra_spaces_in_tag.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/09-unquoted_attrib.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/10-singular_attribute.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/11-text_outside_tags.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/12-text_only.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/13-comment_in_text.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/15-non-verbose.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/16-normalize_whitespace.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/17-xml_namespace.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/18-enforce_empty_tags.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/19-ignore_empty_tags.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/20-template_script_tags.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/21-conditional_comments.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/22-lowercase_tags.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/23-dom-lvl1.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/24-with-start-indices.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/cases/25-with-end-indices.json create mode 100644 nodered/rootfs/data/node_modules/domhandler/test/tests.js create mode 100644 nodered/rootfs/data/node_modules/domutils/.npmignore create mode 100644 nodered/rootfs/data/node_modules/domutils/LICENSE create mode 100644 nodered/rootfs/data/node_modules/domutils/index.js create mode 100644 nodered/rootfs/data/node_modules/domutils/lib/helpers.js create mode 100644 nodered/rootfs/data/node_modules/domutils/lib/legacy.js create mode 100644 nodered/rootfs/data/node_modules/domutils/lib/manipulation.js create mode 100644 nodered/rootfs/data/node_modules/domutils/lib/querying.js create mode 100644 nodered/rootfs/data/node_modules/domutils/lib/stringify.js create mode 100644 nodered/rootfs/data/node_modules/domutils/lib/traversal.js create mode 100644 nodered/rootfs/data/node_modules/domutils/package.json create mode 100644 nodered/rootfs/data/node_modules/domutils/readme.md create mode 100644 nodered/rootfs/data/node_modules/domutils/test/fixture.js create mode 100644 nodered/rootfs/data/node_modules/domutils/test/tests/helpers.js create mode 100644 nodered/rootfs/data/node_modules/domutils/test/tests/legacy.js create mode 100644 nodered/rootfs/data/node_modules/domutils/test/tests/traversal.js create mode 100644 nodered/rootfs/data/node_modules/domutils/test/utils.js create mode 100755 nodered/rootfs/data/node_modules/ecc-jsbn/LICENSE create mode 100755 nodered/rootfs/data/node_modules/ecc-jsbn/README.md create mode 100755 nodered/rootfs/data/node_modules/ecc-jsbn/index.js create mode 100755 nodered/rootfs/data/node_modules/ecc-jsbn/lib/LICENSE-jsbn create mode 100755 nodered/rootfs/data/node_modules/ecc-jsbn/lib/ec.js create mode 100755 nodered/rootfs/data/node_modules/ecc-jsbn/lib/sec.js create mode 100755 nodered/rootfs/data/node_modules/ecc-jsbn/package.json create mode 100755 nodered/rootfs/data/node_modules/ecc-jsbn/test.js create mode 100644 nodered/rootfs/data/node_modules/ee-first/LICENSE create mode 100644 nodered/rootfs/data/node_modules/ee-first/README.md create mode 100644 nodered/rootfs/data/node_modules/ee-first/index.js create mode 100644 nodered/rootfs/data/node_modules/ee-first/package.json create mode 100644 nodered/rootfs/data/node_modules/encodeurl/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/encodeurl/LICENSE create mode 100644 nodered/rootfs/data/node_modules/encodeurl/README.md create mode 100644 nodered/rootfs/data/node_modules/encodeurl/index.js create mode 100644 nodered/rootfs/data/node_modules/encodeurl/package.json create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/LICENSE create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/README.md create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/README_ja.md create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/bower.json create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/encoding.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/encoding.min.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/encoding.min.js.map create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/package.json create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/banner.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/config.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/encoding-convert.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/encoding-detect.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/encoding-table.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/index.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/jis-to-utf8-table.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/jisx0212-to-utf8-table.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/kana-case-table.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/utf8-to-jis-table.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/utf8-to-jisx0212-table.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/src/util.js create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/tests/encoding-eucjp.txt create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/tests/encoding-jis.txt create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/tests/encoding-sjis.txt create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/tests/encoding-utf8.txt create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/tests/jis-x-0208-utf8.txt create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/tests/jis-x-0212-sjis-to-utf8.txt create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/tests/jis-x-0212-utf8.txt create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/tests/surrogate-pairs-utf8.txt create mode 100644 nodered/rootfs/data/node_modules/encoding-japanese/tests/test.js create mode 100644 nodered/rootfs/data/node_modules/end-of-stream/LICENSE create mode 100644 nodered/rootfs/data/node_modules/end-of-stream/README.md create mode 100644 nodered/rootfs/data/node_modules/end-of-stream/index.js create mode 100644 nodered/rootfs/data/node_modules/end-of-stream/package.json create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/LICENSE create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/README.md create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/engine.io.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/lib/socket.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/lib/transport.js create mode 100755 nodered/rootfs/data/node_modules/engine.io-client/lib/transports/index.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/lib/transports/polling-jsonp.js create mode 100755 nodered/rootfs/data/node_modules/engine.io-client/lib/transports/polling-xhr.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/lib/transports/polling.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/lib/transports/websocket.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/lib/xmlhttprequest.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/debug/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/debug/LICENSE create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/debug/README.md create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/debug/dist/debug.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/debug/package.json create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/debug/src/browser.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/debug/src/common.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/debug/src/index.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/debug/src/node.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/LICENSE create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/README.md create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/browser.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/index.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/constants.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/event-target.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/extension.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/permessage-deflate.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/receiver.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/sender.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/validation.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/websocket-server.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/lib/websocket.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/node_modules/ws/package.json create mode 100644 nodered/rootfs/data/node_modules/engine.io-client/package.json create mode 100644 nodered/rootfs/data/node_modules/engine.io-parser/LICENSE create mode 100644 nodered/rootfs/data/node_modules/engine.io-parser/Readme.md create mode 100644 nodered/rootfs/data/node_modules/engine.io-parser/lib/browser.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-parser/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-parser/lib/keys.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-parser/lib/utf8.js create mode 100644 nodered/rootfs/data/node_modules/engine.io-parser/package.json create mode 100644 nodered/rootfs/data/node_modules/engine.io/LICENSE create mode 100644 nodered/rootfs/data/node_modules/engine.io/README.md create mode 100644 nodered/rootfs/data/node_modules/engine.io/lib/engine.io.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/lib/server.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/lib/socket.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/lib/transport.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/lib/transports/index.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/lib/transports/polling-jsonp.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/lib/transports/polling-xhr.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/lib/transports/polling.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/lib/transports/websocket.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/debug/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/debug/LICENSE create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/debug/README.md create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/debug/dist/debug.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/debug/package.json create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/debug/src/browser.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/debug/src/common.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/debug/src/index.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/debug/src/node.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/engine.io/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/engine.io/package.json create mode 100644 nodered/rootfs/data/node_modules/entities/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/entities/LICENSE create mode 100644 nodered/rootfs/data/node_modules/entities/index.js create mode 100644 nodered/rootfs/data/node_modules/entities/lib/decode.js create mode 100644 nodered/rootfs/data/node_modules/entities/lib/decode_codepoint.js create mode 100644 nodered/rootfs/data/node_modules/entities/lib/encode.js create mode 100644 nodered/rootfs/data/node_modules/entities/maps/decode.json create mode 100644 nodered/rootfs/data/node_modules/entities/maps/entities.json create mode 100644 nodered/rootfs/data/node_modules/entities/maps/legacy.json create mode 100644 nodered/rootfs/data/node_modules/entities/maps/xml.json create mode 100644 nodered/rootfs/data/node_modules/entities/package.json create mode 100644 nodered/rootfs/data/node_modules/entities/readme.md create mode 100644 nodered/rootfs/data/node_modules/entities/test/mocha.opts create mode 100644 nodered/rootfs/data/node_modules/entities/test/test.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/es-abstract/.eslintignore create mode 100644 nodered/rootfs/data/node_modules/es-abstract/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/es-abstract/.gitattributes create mode 100644 nodered/rootfs/data/node_modules/es-abstract/.github/FUNDING.yml create mode 100644 nodered/rootfs/data/node_modules/es-abstract/.github/workflows/rebase.yml create mode 100644 nodered/rootfs/data/node_modules/es-abstract/.nycrc create mode 100644 nodered/rootfs/data/node_modules/es-abstract/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/AbstractEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/AbstractRelationalComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/AdvanceStringIndex.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ArrayCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ArraySetLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ArraySpeciesCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/Call.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/CanonicalNumericIndexString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/CompletePropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/CreateDataProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/CreateDataPropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/CreateHTML.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/CreateIterResultObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/CreateListFromArrayLike.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/CreateMethodProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/DateFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/Day.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/DayFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/DayWithinYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/DaysInYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/DefinePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/DeletePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/EnumerableOwnNames.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/FromPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/Get.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/GetIterator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/GetMethod.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/GetOwnPropertyKeys.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/GetPrototypeFromConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/GetSubstitution.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/GetV.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/HasOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/HasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/HourFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/InLeapYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/InstanceofOperator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/Invoke.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsAccessorDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsArray.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsCallable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsConcatSpreadable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsDataDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsExtensible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsGenericDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsPromise.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IsRegExp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IteratorClose.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IteratorComplete.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IteratorNext.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IteratorStep.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/IteratorValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/MakeDate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/MakeDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/MakeTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/MinFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/MonthFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ObjectCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/OrdinaryDefineOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/OrdinaryGetOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/OrdinaryHasInstance.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/OrdinaryHasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/RegExpExec.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/RequireObjectCoercible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/SameValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/SameValueZero.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/SecFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/Set.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/SetFunctionName.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/SetIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/SpeciesConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/StrictEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/SymbolDescriptiveString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/TestIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/TimeClip.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/TimeFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/TimeWithinDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToBoolean.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToDateString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToInt16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToInt32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToInt8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToPrimitive.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToUint16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToUint32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToUint8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ToUint8Clamp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/Type.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/ValidateAndApplyPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/WeekDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/YearFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/modulo.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/msFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/thisBooleanValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/thisNumberValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/thisStringValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2015/thisTimeValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/AbstractEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/AbstractRelationalComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/AdvanceStringIndex.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ArrayCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ArraySetLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ArraySpeciesCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/Call.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/CanonicalNumericIndexString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/CompletePropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/CreateDataProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/CreateDataPropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/CreateHTML.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/CreateIterResultObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/CreateListFromArrayLike.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/CreateMethodProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/DateFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/Day.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/DayFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/DayWithinYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/DaysInYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/DefinePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/DeletePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/EnumerableOwnNames.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/FromPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/Get.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/GetIterator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/GetMethod.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/GetOwnPropertyKeys.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/GetPrototypeFromConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/GetSubstitution.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/GetV.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/HasOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/HasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/HourFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/InLeapYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/InstanceofOperator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/Invoke.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsAccessorDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsArray.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsCallable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsConcatSpreadable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsDataDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsExtensible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsGenericDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsPromise.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IsRegExp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IterableToArrayLike.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IteratorClose.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IteratorComplete.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IteratorNext.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IteratorStep.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/IteratorValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/MakeDate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/MakeDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/MakeTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/MinFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/MonthFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ObjectCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/OrdinaryDefineOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/OrdinaryGetOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/OrdinaryGetPrototypeOf.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/OrdinaryHasInstance.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/OrdinaryHasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/OrdinarySetPrototypeOf.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/RegExpExec.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/RequireObjectCoercible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/SameValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/SameValueNonNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/SameValueZero.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/SecFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/Set.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/SetFunctionName.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/SetIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/SpeciesConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/StrictEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/SymbolDescriptiveString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/TestIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/TimeClip.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/TimeFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/TimeWithinDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToBoolean.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToDateString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToInt16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToInt32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToInt8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToPrimitive.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToUint16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToUint32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToUint8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ToUint8Clamp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/Type.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/ValidateAndApplyPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/WeekDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/YearFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/modulo.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/msFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/thisBooleanValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/thisNumberValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/thisStringValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2016/thisTimeValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/AbstractEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/AbstractRelationalComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/AdvanceStringIndex.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ArrayCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ArraySetLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ArraySpeciesCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/Call.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/CanonicalNumericIndexString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/CompletePropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/CreateDataProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/CreateDataPropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/CreateHTML.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/CreateIterResultObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/CreateListFromArrayLike.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/CreateMethodProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/DateFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/Day.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/DayFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/DayWithinYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/DaysInYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/DefinePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/DeletePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/EnumerableOwnProperties.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/FromPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/Get.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/GetIterator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/GetMethod.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/GetOwnPropertyKeys.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/GetPrototypeFromConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/GetSubstitution.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/GetV.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/HasOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/HasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/HourFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/InLeapYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/InstanceofOperator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/Invoke.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsAccessorDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsArray.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsCallable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsConcatSpreadable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsDataDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsExtensible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsGenericDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsPromise.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IsRegExp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IterableToList.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IteratorClose.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IteratorComplete.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IteratorNext.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IteratorStep.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/IteratorValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/MakeDate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/MakeDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/MakeTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/MinFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/MonthFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ObjectCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/OrdinaryDefineOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/OrdinaryGetOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/OrdinaryGetPrototypeOf.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/OrdinaryHasInstance.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/OrdinaryHasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/OrdinarySetPrototypeOf.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/RegExpExec.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/RequireObjectCoercible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/SameValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/SameValueNonNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/SameValueZero.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/SecFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/Set.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/SetFunctionName.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/SetIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/SpeciesConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/StrictEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/SymbolDescriptiveString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/TestIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/TimeClip.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/TimeFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/TimeWithinDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToBoolean.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToDateString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToIndex.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToInt16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToInt32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToInt8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToPrimitive.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToUint16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToUint32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToUint8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ToUint8Clamp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/Type.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/ValidateAndApplyPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/WeekDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/YearFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/modulo.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/msFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/thisBooleanValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/thisNumberValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/thisStringValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2017/thisTimeValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/AbstractEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/AbstractRelationalComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/AdvanceStringIndex.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ArrayCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ArraySetLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ArraySpeciesCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/Call.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/CanonicalNumericIndexString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/CompletePropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/CopyDataProperties.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/CreateDataProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/CreateDataPropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/CreateHTML.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/CreateIterResultObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/CreateListFromArrayLike.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/CreateMethodProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/DateFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/DateString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/Day.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/DayFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/DayWithinYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/DaysInYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/DefinePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/DeletePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/EnumerableOwnPropertyNames.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/FromPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/Get.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/GetIterator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/GetMethod.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/GetOwnPropertyKeys.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/GetPrototypeFromConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/GetSubstitution.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/GetV.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/HasOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/HasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/HourFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/InLeapYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/InstanceofOperator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/Invoke.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsAccessorDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsArray.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsCallable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsConcatSpreadable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsDataDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsExtensible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsGenericDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsPromise.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsRegExp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IsStringPrefix.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IterableToList.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IteratorClose.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IteratorComplete.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IteratorNext.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IteratorStep.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/IteratorValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/MakeDate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/MakeDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/MakeTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/MinFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/MonthFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/NumberToString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ObjectCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/OrdinaryDefineOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/OrdinaryGetOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/OrdinaryGetPrototypeOf.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/OrdinaryHasInstance.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/OrdinaryHasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/OrdinarySetPrototypeOf.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/PromiseResolve.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/RegExpExec.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/RequireObjectCoercible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/SameValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/SameValueNonNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/SameValueZero.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/SecFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/Set.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/SetFunctionName.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/SetIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/SpeciesConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/StrictEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/SymbolDescriptiveString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/TestIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/TimeClip.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/TimeFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/TimeString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/TimeWithinDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToBoolean.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToDateString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToIndex.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToInt16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToInt32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToInt8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToPrimitive.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToUint16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToUint32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToUint8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ToUint8Clamp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/Type.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/ValidateAndApplyPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/WeekDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/YearFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/modulo.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/msFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/thisBooleanValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/thisNumberValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/thisStringValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/thisSymbolValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2018/thisTimeValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/AbstractEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/AbstractRelationalComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/AddEntriesFromIterable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/AdvanceStringIndex.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ArrayCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ArraySetLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ArraySpeciesCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/Call.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/CanonicalNumericIndexString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/CompletePropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/CopyDataProperties.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/CreateDataProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/CreateDataPropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/CreateHTML.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/CreateIterResultObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/CreateListFromArrayLike.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/CreateMethodProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/DateFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/DateString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/Day.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/DayFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/DayWithinYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/DaysInYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/DefinePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/DeletePropertyOrThrow.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/EnumerableOwnPropertyNames.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/FlattenIntoArray.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/FromPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/Get.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/GetIterator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/GetMethod.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/GetOwnPropertyKeys.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/GetPrototypeFromConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/GetSubstitution.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/GetV.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/HasOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/HasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/HourFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/InLeapYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/InstanceofOperator.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/Invoke.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsAccessorDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsArray.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsCallable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsConcatSpreadable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsDataDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsExtensible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsGenericDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsPromise.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsRegExp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IsStringPrefix.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IterableToList.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IteratorClose.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IteratorComplete.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IteratorNext.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IteratorStep.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/IteratorValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/MakeDate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/MakeDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/MakeTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/MinFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/MonthFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/NumberToString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ObjectCreate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/OrdinaryDefineOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/OrdinaryGetOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/OrdinaryGetPrototypeOf.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/OrdinaryHasInstance.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/OrdinaryHasProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/OrdinarySetPrototypeOf.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/PromiseResolve.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/RegExpExec.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/RequireObjectCoercible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/SameValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/SameValueNonNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/SameValueZero.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/SecFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/Set.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/SetFunctionName.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/SetIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/SpeciesConstructor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/StrictEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/SymbolDescriptiveString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/TestIntegrityLevel.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/TimeClip.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/TimeFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/TimeString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/TimeWithinDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToBoolean.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToDateString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToIndex.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToInt16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToInt32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToInt8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToLength.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToPrimitive.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToPropertyKey.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToUint16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToUint32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToUint8.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ToUint8Clamp.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/TrimString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/Type.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/ValidateAndApplyPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/WeekDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/YearFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/modulo.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/msFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/thisBooleanValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/thisNumberValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/thisStringValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/thisSymbolValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/2019/thisTimeValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/AbstractEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/AbstractRelationalComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/CheckObjectCoercible.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/DateFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/Day.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/DayFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/DayWithinYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/DaysInYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/FromPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/HourFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/InLeapYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/IsAccessorDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/IsCallable.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/IsDataDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/IsGenericDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/IsPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/MakeDate.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/MakeDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/MakeTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/MinFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/MonthFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/SameValue.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/SecFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/StrictEqualityComparison.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/TimeClip.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/TimeFromYear.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/TimeWithinDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToBoolean.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToInt32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToNumber.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToObject.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToPrimitive.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToString.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToUint16.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/ToUint32.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/Type.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/WeekDay.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/YearFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/modulo.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/5/msFromTime.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/es-abstract/GetIntrinsic.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/LICENSE create mode 100644 nodered/rootfs/data/node_modules/es-abstract/README.md create mode 100644 nodered/rootfs/data/node_modules/es-abstract/es2015.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/es2016.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/es2017.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/es2018.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/es2019.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/es5.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/es6.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/es7.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/DefineOwnProperty.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/assertRecord.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/assign.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/callBind.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/callBound.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/every.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/forEach.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/getInferredName.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/getIteratorMethod.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/getProto.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/getSymbolDescription.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/isFinite.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/isNaN.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/isPrefixOf.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/isPrimitive.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/isPropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/isSamePropertyDescriptor.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/maxSafeInteger.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/mod.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/padTimeComponent.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/regexTester.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/setProto.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/sign.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/helpers/timeConstants.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/index.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/operations/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/es-abstract/operations/2015.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/operations/2016.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/operations/2017.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/operations/2018.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/operations/2019.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/package.json create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/GetIntrinsic.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/diffOps.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/es2015.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/es2016.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/es2017.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/es2018.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/es2019.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/es5.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/es6.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/es7.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/helpers/assertRecord.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/helpers/getSymbolDescription.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/helpers/runManifestTest.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/helpers/values.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/index.js create mode 100644 nodered/rootfs/data/node_modules/es-abstract/test/tests.js create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/.github/FUNDING.yml create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/LICENSE create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/Makefile create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/README.md create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/es2015.js create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/es5.js create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/es6.js create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/helpers/isPrimitive.js create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/index.js create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/package.json create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/test/es2015.js create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/test/es5.js create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/test/es6.js create mode 100644 nodered/rootfs/data/node_modules/es-to-primitive/test/index.js create mode 100644 nodered/rootfs/data/node_modules/escape-html/LICENSE create mode 100644 nodered/rootfs/data/node_modules/escape-html/Readme.md create mode 100644 nodered/rootfs/data/node_modules/escape-html/index.js create mode 100644 nodered/rootfs/data/node_modules/escape-html/package.json create mode 100644 nodered/rootfs/data/node_modules/etag/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/etag/LICENSE create mode 100644 nodered/rootfs/data/node_modules/etag/README.md create mode 100644 nodered/rootfs/data/node_modules/etag/index.js create mode 100644 nodered/rootfs/data/node_modules/etag/package.json create mode 100644 nodered/rootfs/data/node_modules/eventemitter3/LICENSE create mode 100644 nodered/rootfs/data/node_modules/eventemitter3/README.md create mode 100644 nodered/rootfs/data/node_modules/eventemitter3/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/eventemitter3/index.js create mode 100644 nodered/rootfs/data/node_modules/eventemitter3/package.json create mode 100644 nodered/rootfs/data/node_modules/eventemitter3/umd/eventemitter3.js create mode 100644 nodered/rootfs/data/node_modules/eventemitter3/umd/eventemitter3.min.js create mode 100644 nodered/rootfs/data/node_modules/eventemitter3/umd/eventemitter3.min.js.map create mode 100644 nodered/rootfs/data/node_modules/execa/index.js create mode 100644 nodered/rootfs/data/node_modules/execa/lib/errname.js create mode 100644 nodered/rootfs/data/node_modules/execa/lib/stdio.js create mode 100644 nodered/rootfs/data/node_modules/execa/license create mode 100644 nodered/rootfs/data/node_modules/execa/package.json create mode 100644 nodered/rootfs/data/node_modules/execa/readme.md create mode 100644 nodered/rootfs/data/node_modules/extend/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/extend/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/extend/.jscs.json create mode 100644 nodered/rootfs/data/node_modules/extend/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/extend/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/extend/LICENSE create mode 100644 nodered/rootfs/data/node_modules/extend/README.md create mode 100644 nodered/rootfs/data/node_modules/extend/component.json create mode 100644 nodered/rootfs/data/node_modules/extend/index.js create mode 100644 nodered/rootfs/data/node_modules/extend/package.json create mode 100644 nodered/rootfs/data/node_modules/extsprintf/.gitmodules create mode 100644 nodered/rootfs/data/node_modules/extsprintf/.npmignore create mode 100644 nodered/rootfs/data/node_modules/extsprintf/LICENSE create mode 100644 nodered/rootfs/data/node_modules/extsprintf/Makefile create mode 100644 nodered/rootfs/data/node_modules/extsprintf/Makefile.targ create mode 100644 nodered/rootfs/data/node_modules/extsprintf/README.md create mode 100644 nodered/rootfs/data/node_modules/extsprintf/jsl.node.conf create mode 100644 nodered/rootfs/data/node_modules/extsprintf/lib/extsprintf.js create mode 100644 nodered/rootfs/data/node_modules/extsprintf/package.json create mode 100644 nodered/rootfs/data/node_modules/fast-deep-equal/LICENSE create mode 100644 nodered/rootfs/data/node_modules/fast-deep-equal/README.md create mode 100644 nodered/rootfs/data/node_modules/fast-deep-equal/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/fast-deep-equal/index.js create mode 100644 nodered/rootfs/data/node_modules/fast-deep-equal/package.json create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/.eslintrc.yml create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/.github/FUNDING.yml create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/LICENSE create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/README.md create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/benchmark/index.js create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/benchmark/test.json create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/example/key_cmp.js create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/example/nested.js create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/example/str.js create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/example/value_cmp.js create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/index.js create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/package.json create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/test/cmp.js create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/test/nested.js create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/test/str.js create mode 100644 nodered/rootfs/data/node_modules/fast-json-stable-stringify/test/to-json.js create mode 100644 nodered/rootfs/data/node_modules/file-type/index.js create mode 100644 nodered/rootfs/data/node_modules/file-type/license create mode 100644 nodered/rootfs/data/node_modules/file-type/package.json create mode 100644 nodered/rootfs/data/node_modules/file-type/readme.md create mode 100644 nodered/rootfs/data/node_modules/forever-agent/LICENSE create mode 100644 nodered/rootfs/data/node_modules/forever-agent/README.md create mode 100644 nodered/rootfs/data/node_modules/forever-agent/index.js create mode 100644 nodered/rootfs/data/node_modules/forever-agent/package.json create mode 100644 nodered/rootfs/data/node_modules/form-data/License create mode 100644 nodered/rootfs/data/node_modules/form-data/README.md create mode 100644 nodered/rootfs/data/node_modules/form-data/README.md.bak create mode 100644 nodered/rootfs/data/node_modules/form-data/lib/browser.js create mode 100644 nodered/rootfs/data/node_modules/form-data/lib/form_data.js create mode 100644 nodered/rootfs/data/node_modules/form-data/lib/populate.js create mode 100644 nodered/rootfs/data/node_modules/form-data/package.json create mode 100644 nodered/rootfs/data/node_modules/form-data/yarn.lock create mode 100644 nodered/rootfs/data/node_modules/fraction.js/.idea/Fraction.js.iml create mode 100644 nodered/rootfs/data/node_modules/fraction.js/.idea/misc.xml create mode 100644 nodered/rootfs/data/node_modules/fraction.js/.idea/modules.xml create mode 100644 nodered/rootfs/data/node_modules/fraction.js/.idea/vcs.xml create mode 100644 nodered/rootfs/data/node_modules/fraction.js/.idea/workspace.xml create mode 100644 nodered/rootfs/data/node_modules/fraction.js/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/fraction.js/README.md create mode 100644 nodered/rootfs/data/node_modules/fraction.js/bower.json create mode 100644 nodered/rootfs/data/node_modules/fraction.js/examples/approx.js create mode 100644 nodered/rootfs/data/node_modules/fraction.js/examples/egyptian.js create mode 100644 nodered/rootfs/data/node_modules/fraction.js/examples/hesse-convergence.js create mode 100644 nodered/rootfs/data/node_modules/fraction.js/examples/integrate.js create mode 100644 nodered/rootfs/data/node_modules/fraction.js/fraction.js create mode 100644 nodered/rootfs/data/node_modules/fraction.js/fraction.min.js create mode 100644 nodered/rootfs/data/node_modules/fraction.js/package.json create mode 100644 nodered/rootfs/data/node_modules/fraction.js/tests/fraction.test.js create mode 100644 nodered/rootfs/data/node_modules/fresh/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/fresh/LICENSE create mode 100644 nodered/rootfs/data/node_modules/fresh/README.md create mode 100644 nodered/rootfs/data/node_modules/fresh/index.js create mode 100644 nodered/rootfs/data/node_modules/fresh/package.json create mode 100644 nodered/rootfs/data/node_modules/function-bind/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/function-bind/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/function-bind/.jscs.json create mode 100644 nodered/rootfs/data/node_modules/function-bind/.npmignore create mode 100644 nodered/rootfs/data/node_modules/function-bind/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/function-bind/LICENSE create mode 100644 nodered/rootfs/data/node_modules/function-bind/README.md create mode 100644 nodered/rootfs/data/node_modules/function-bind/implementation.js create mode 100644 nodered/rootfs/data/node_modules/function-bind/index.js create mode 100644 nodered/rootfs/data/node_modules/function-bind/package.json create mode 100644 nodered/rootfs/data/node_modules/function-bind/test/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/function-bind/test/index.js create mode 100644 nodered/rootfs/data/node_modules/get-stream/buffer-stream.js create mode 100644 nodered/rootfs/data/node_modules/get-stream/index.js create mode 100644 nodered/rootfs/data/node_modules/get-stream/license create mode 100644 nodered/rootfs/data/node_modules/get-stream/package.json create mode 100644 nodered/rootfs/data/node_modules/get-stream/readme.md create mode 100644 nodered/rootfs/data/node_modules/getpass/.npmignore create mode 100644 nodered/rootfs/data/node_modules/getpass/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/getpass/LICENSE create mode 100644 nodered/rootfs/data/node_modules/getpass/README.md create mode 100644 nodered/rootfs/data/node_modules/getpass/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/getpass/package.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/LICENSE create mode 100644 nodered/rootfs/data/node_modules/har-schema/README.md create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/afterRequest.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/beforeRequest.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/browser.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/cache.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/content.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/cookie.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/creator.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/entry.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/har.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/header.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/log.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/page.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/pageTimings.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/postData.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/query.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/request.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/response.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/lib/timings.json create mode 100644 nodered/rootfs/data/node_modules/har-schema/package.json create mode 100644 nodered/rootfs/data/node_modules/har-validator/LICENSE create mode 100644 nodered/rootfs/data/node_modules/har-validator/README.md create mode 100644 nodered/rootfs/data/node_modules/har-validator/lib/async.js create mode 100644 nodered/rootfs/data/node_modules/har-validator/lib/error.js create mode 100644 nodered/rootfs/data/node_modules/har-validator/lib/promise.js create mode 100644 nodered/rootfs/data/node_modules/har-validator/package.json create mode 100644 nodered/rootfs/data/node_modules/has-binary2/History.md create mode 100644 nodered/rootfs/data/node_modules/has-binary2/LICENSE create mode 100644 nodered/rootfs/data/node_modules/has-binary2/README.md create mode 100644 nodered/rootfs/data/node_modules/has-binary2/index.js create mode 100644 nodered/rootfs/data/node_modules/has-binary2/package.json create mode 100644 nodered/rootfs/data/node_modules/has-cors/.npmignore create mode 100644 nodered/rootfs/data/node_modules/has-cors/History.md create mode 100644 nodered/rootfs/data/node_modules/has-cors/Makefile create mode 100644 nodered/rootfs/data/node_modules/has-cors/Readme.md create mode 100644 nodered/rootfs/data/node_modules/has-cors/component.json create mode 100644 nodered/rootfs/data/node_modules/has-cors/index.js create mode 100644 nodered/rootfs/data/node_modules/has-cors/package.json create mode 100644 nodered/rootfs/data/node_modules/has-cors/test.js create mode 100644 nodered/rootfs/data/node_modules/has-symbols/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/has-symbols/.github/FUNDING.yml create mode 100644 nodered/rootfs/data/node_modules/has-symbols/.github/workflows/rebase.yml create mode 100644 nodered/rootfs/data/node_modules/has-symbols/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/has-symbols/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/has-symbols/LICENSE create mode 100644 nodered/rootfs/data/node_modules/has-symbols/README.md create mode 100644 nodered/rootfs/data/node_modules/has-symbols/index.js create mode 100644 nodered/rootfs/data/node_modules/has-symbols/package.json create mode 100644 nodered/rootfs/data/node_modules/has-symbols/shams.js create mode 100644 nodered/rootfs/data/node_modules/has-symbols/test/index.js create mode 100644 nodered/rootfs/data/node_modules/has-symbols/test/shams/core-js.js create mode 100644 nodered/rootfs/data/node_modules/has-symbols/test/shams/get-own-property-symbols.js create mode 100644 nodered/rootfs/data/node_modules/has-symbols/test/tests.js create mode 100644 nodered/rootfs/data/node_modules/has/LICENSE-MIT create mode 100644 nodered/rootfs/data/node_modules/has/README.md create mode 100644 nodered/rootfs/data/node_modules/has/package.json create mode 100644 nodered/rootfs/data/node_modules/has/src/index.js create mode 100644 nodered/rootfs/data/node_modules/has/test/index.js create mode 100644 nodered/rootfs/data/node_modules/he/LICENSE-MIT.txt create mode 100644 nodered/rootfs/data/node_modules/he/README.md create mode 100755 nodered/rootfs/data/node_modules/he/bin/he create mode 100644 nodered/rootfs/data/node_modules/he/he.js create mode 100644 nodered/rootfs/data/node_modules/he/man/he.1 create mode 100644 nodered/rootfs/data/node_modules/he/package.json create mode 100644 nodered/rootfs/data/node_modules/html-to-text/.codeclimate.yml create mode 100644 nodered/rootfs/data/node_modules/html-to-text/.eslintignore create mode 100644 nodered/rootfs/data/node_modules/html-to-text/.eslintrc.yml create mode 100644 nodered/rootfs/data/node_modules/html-to-text/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/html-to-text/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/html-to-text/LICENSE-MIT create mode 100644 nodered/rootfs/data/node_modules/html-to-text/README.md create mode 100755 nodered/rootfs/data/node_modules/html-to-text/bin/cli.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/example/html-to-text.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/example/test.html create mode 100644 nodered/rootfs/data/node_modules/html-to-text/index.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/lib/formatter.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/lib/helper.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/lib/html-to-text.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/LICENSE create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/example/parse.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/index.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/package.json create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/readme.markdown create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/all_bool.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/bool.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/dash.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/default_bool.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/dotted.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/kv_short.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/long.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/num.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/parse.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/parse_modified.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/short.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/stop_early.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/unknown.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/node_modules/minimist/test/whitespace.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/package.json create mode 100644 nodered/rootfs/data/node_modules/html-to-text/test/html-to-text.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/test/test-address-dup.txt create mode 100644 nodered/rootfs/data/node_modules/html-to-text/test/test-address.txt create mode 100644 nodered/rootfs/data/node_modules/html-to-text/test/test-any-order.txt create mode 100644 nodered/rootfs/data/node_modules/html-to-text/test/test-cli.js create mode 100644 nodered/rootfs/data/node_modules/html-to-text/test/test-first-element.txt create mode 100644 nodered/rootfs/data/node_modules/html-to-text/test/test.html create mode 100644 nodered/rootfs/data/node_modules/html-to-text/test/test.txt create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/LICENSE create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/README.md create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/lib/CollectingHandler.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/lib/FeedHandler.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/lib/Parser.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/lib/ProxyHandler.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/lib/Stream.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/lib/Tokenizer.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/lib/WritableStream.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/GOVERNANCE.md create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/LICENSE create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/README.md create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/errors-browser.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/errors.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/experimentalWarning.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_duplex.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_passthrough.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_readable.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_transform.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_writable.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/internal/streams/async_iterator.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/internal/streams/buffer_list.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/internal/streams/destroy.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/internal/streams/pipeline.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/internal/streams/state.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/internal/streams/stream-browser.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/lib/internal/streams/stream.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/LICENSE create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/README.md create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/inherits.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/inherits_browser.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/package.json create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/package.json create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/readable-browser.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/node_modules/readable-stream/readable.js create mode 100644 nodered/rootfs/data/node_modules/htmlparser2/package.json create mode 100644 nodered/rootfs/data/node_modules/http-errors/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/http-errors/LICENSE create mode 100644 nodered/rootfs/data/node_modules/http-errors/README.md create mode 100644 nodered/rootfs/data/node_modules/http-errors/index.js create mode 100644 nodered/rootfs/data/node_modules/http-errors/node_modules/inherits/LICENSE create mode 100644 nodered/rootfs/data/node_modules/http-errors/node_modules/inherits/README.md create mode 100644 nodered/rootfs/data/node_modules/http-errors/node_modules/inherits/inherits.js create mode 100644 nodered/rootfs/data/node_modules/http-errors/node_modules/inherits/inherits_browser.js create mode 100644 nodered/rootfs/data/node_modules/http-errors/node_modules/inherits/package.json create mode 100644 nodered/rootfs/data/node_modules/http-errors/package.json create mode 100644 nodered/rootfs/data/node_modules/http-signature/.dir-locals.el create mode 100644 nodered/rootfs/data/node_modules/http-signature/.npmignore create mode 100644 nodered/rootfs/data/node_modules/http-signature/CHANGES.md create mode 100644 nodered/rootfs/data/node_modules/http-signature/LICENSE create mode 100644 nodered/rootfs/data/node_modules/http-signature/README.md create mode 100644 nodered/rootfs/data/node_modules/http-signature/http_signing.md create mode 100644 nodered/rootfs/data/node_modules/http-signature/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/http-signature/lib/parser.js create mode 100644 nodered/rootfs/data/node_modules/http-signature/lib/signer.js create mode 100644 nodered/rootfs/data/node_modules/http-signature/lib/utils.js create mode 100644 nodered/rootfs/data/node_modules/http-signature/lib/verify.js create mode 100644 nodered/rootfs/data/node_modules/http-signature/package.json create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/Changelog.md create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/LICENSE create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/README.md create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/dbcs-codec.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/dbcs-data.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/index.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/internal.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/sbcs-codec.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/sbcs-data-generated.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/sbcs-data.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/tables/big5-added.json create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/tables/cp936.json create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/tables/cp949.json create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/tables/cp950.json create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/tables/eucjp.json create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/tables/gbk-added.json create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/tables/shiftjis.json create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/utf16.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/utf32.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/encodings/utf7.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/lib/bom-handling.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/lib/extend-node.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/lib/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/lib/streams.js create mode 100644 nodered/rootfs/data/node_modules/iconv-lite/package.json create mode 100644 nodered/rootfs/data/node_modules/imap/LICENSE create mode 100644 nodered/rootfs/data/node_modules/imap/README.md create mode 100644 nodered/rootfs/data/node_modules/imap/deps/encoding/encoding-indexes.js create mode 100644 nodered/rootfs/data/node_modules/imap/deps/encoding/encoding.js create mode 100644 nodered/rootfs/data/node_modules/imap/lib/Connection.js create mode 100644 nodered/rootfs/data/node_modules/imap/lib/Parser.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/isarray/README.md create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/isarray/build/build.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/isarray/component.json create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/isarray/index.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/isarray/package.json create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/.npmignore create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/LICENSE create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/README.md create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/duplex.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/float.patch create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/lib/_stream_duplex.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/lib/_stream_passthrough.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/lib/_stream_readable.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/lib/_stream_transform.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/lib/_stream_writable.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/package.json create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/passthrough.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/readable.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/transform.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/readable-stream/writable.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/string_decoder/.npmignore create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/string_decoder/LICENSE create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/string_decoder/README.md create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/string_decoder/index.js create mode 100644 nodered/rootfs/data/node_modules/imap/node_modules/string_decoder/package.json create mode 100644 nodered/rootfs/data/node_modules/imap/package.json create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-connection-fetch-dup.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-connection-fetch-frag.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-connection-fetch-spillover.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-connection-fetch-stringbody.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-connection-idle-normal.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-connection-idle-order.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-parse-bodystructure.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-parse-envelope-addrs.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-parse-expr.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-parse-header.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test-parser.js create mode 100644 nodered/rootfs/data/node_modules/imap/test/test.js create mode 100644 nodered/rootfs/data/node_modules/indexof/.npmignore create mode 100644 nodered/rootfs/data/node_modules/indexof/Makefile create mode 100644 nodered/rootfs/data/node_modules/indexof/Readme.md create mode 100644 nodered/rootfs/data/node_modules/indexof/component.json create mode 100644 nodered/rootfs/data/node_modules/indexof/index.js create mode 100644 nodered/rootfs/data/node_modules/indexof/package.json create mode 100644 nodered/rootfs/data/node_modules/influx/.github/ISSUE_TEMPLATE.md create mode 100644 nodered/rootfs/data/node_modules/influx/.github/PULL_REQUEST_TEMPLATE.md create mode 100644 nodered/rootfs/data/node_modules/influx/.github/stale.yml create mode 100644 nodered/rootfs/data/node_modules/influx/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/influx/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/influx/LICENSE create mode 100644 nodered/rootfs/data/node_modules/influx/README.md create mode 100644 nodered/rootfs/data/node_modules/influx/esdoc.json create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/backoff/backoff.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/backoff/backoff.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/backoff/exponential.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/backoff/exponential.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/builder.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/builder.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/grammar/ds.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/grammar/ds.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/grammar/escape.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/grammar/escape.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/grammar/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/grammar/index.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/grammar/times.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/grammar/times.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/host.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/host.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/index.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/pool.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/pool.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/results.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/results.js create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/schema.d.ts create mode 100644 nodered/rootfs/data/node_modules/influx/lib/src/schema.js create mode 100644 nodered/rootfs/data/node_modules/influx/package.json create mode 100644 nodered/rootfs/data/node_modules/influx/renovate.json create mode 100644 nodered/rootfs/data/node_modules/inherits/LICENSE create mode 100644 nodered/rootfs/data/node_modules/inherits/README.md create mode 100644 nodered/rootfs/data/node_modules/inherits/inherits.js create mode 100644 nodered/rootfs/data/node_modules/inherits/inherits_browser.js create mode 100644 nodered/rootfs/data/node_modules/inherits/package.json create mode 100644 nodered/rootfs/data/node_modules/inherits/test.js create mode 100644 nodered/rootfs/data/node_modules/invert-kv/index.js create mode 100644 nodered/rootfs/data/node_modules/invert-kv/license create mode 100644 nodered/rootfs/data/node_modules/invert-kv/package.json create mode 100644 nodered/rootfs/data/node_modules/invert-kv/readme.md create mode 100644 nodered/rootfs/data/node_modules/ip-address/LICENSE create mode 100644 nodered/rootfs/data/node_modules/ip-address/README.md create mode 100644 nodered/rootfs/data/node_modules/ip-address/ip-address.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/lib/common.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/lib/ipv4.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/lib/ipv6.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/lib/v4/constants.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/lib/v6/attributes.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/lib/v6/constants.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/lib/v6/helpers.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/lib/v6/html.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/lib/v6/regular-expressions.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/node_modules/jsbn/.npmignore create mode 100644 nodered/rootfs/data/node_modules/ip-address/node_modules/jsbn/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/ip-address/node_modules/jsbn/LICENSE create mode 100644 nodered/rootfs/data/node_modules/ip-address/node_modules/jsbn/README.md create mode 100644 nodered/rootfs/data/node_modules/ip-address/node_modules/jsbn/example.html create mode 100644 nodered/rootfs/data/node_modules/ip-address/node_modules/jsbn/example.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/node_modules/jsbn/index.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/node_modules/jsbn/package.json create mode 100644 nodered/rootfs/data/node_modules/ip-address/node_modules/jsbn/test/es6-import.js create mode 100644 nodered/rootfs/data/node_modules/ip-address/package.json create mode 100644 nodered/rootfs/data/node_modules/is-callable/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/is-callable/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/is-callable/.github/FUNDING.yml create mode 100644 nodered/rootfs/data/node_modules/is-callable/.github/main.workflow create mode 100644 nodered/rootfs/data/node_modules/is-callable/.github/workflows/rebase.yml create mode 100644 nodered/rootfs/data/node_modules/is-callable/.istanbul.yml create mode 100644 nodered/rootfs/data/node_modules/is-callable/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/is-callable/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/is-callable/LICENSE create mode 100644 nodered/rootfs/data/node_modules/is-callable/README.md create mode 100644 nodered/rootfs/data/node_modules/is-callable/index.js create mode 100644 nodered/rootfs/data/node_modules/is-callable/package.json create mode 100644 nodered/rootfs/data/node_modules/is-callable/test/index.js create mode 100644 nodered/rootfs/data/node_modules/is-date-object/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/is-date-object/.github/FUNDING.yml create mode 100644 nodered/rootfs/data/node_modules/is-date-object/.github/workflows/rebase.yml create mode 100644 nodered/rootfs/data/node_modules/is-date-object/.jscs.json create mode 100644 nodered/rootfs/data/node_modules/is-date-object/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/is-date-object/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/is-date-object/LICENSE create mode 100644 nodered/rootfs/data/node_modules/is-date-object/README.md create mode 100644 nodered/rootfs/data/node_modules/is-date-object/index.js create mode 100644 nodered/rootfs/data/node_modules/is-date-object/package.json create mode 100644 nodered/rootfs/data/node_modules/is-date-object/test/index.js create mode 100644 nodered/rootfs/data/node_modules/is-regex/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/is-regex/.github/workflows/rebase.yml create mode 100644 nodered/rootfs/data/node_modules/is-regex/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/is-regex/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/is-regex/LICENSE create mode 100644 nodered/rootfs/data/node_modules/is-regex/README.md create mode 100644 nodered/rootfs/data/node_modules/is-regex/index.js create mode 100644 nodered/rootfs/data/node_modules/is-regex/package.json create mode 100644 nodered/rootfs/data/node_modules/is-regex/test/index.js create mode 100644 nodered/rootfs/data/node_modules/is-stream/index.js create mode 100644 nodered/rootfs/data/node_modules/is-stream/license create mode 100644 nodered/rootfs/data/node_modules/is-stream/package.json create mode 100644 nodered/rootfs/data/node_modules/is-stream/readme.md create mode 100644 nodered/rootfs/data/node_modules/is-symbol/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/is-symbol/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/is-symbol/.github/FUNDING.yml create mode 100644 nodered/rootfs/data/node_modules/is-symbol/.github/workflows/rebase.yml create mode 100644 nodered/rootfs/data/node_modules/is-symbol/.nvmrc create mode 100644 nodered/rootfs/data/node_modules/is-symbol/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/is-symbol/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/is-symbol/LICENSE create mode 100644 nodered/rootfs/data/node_modules/is-symbol/Makefile create mode 100644 nodered/rootfs/data/node_modules/is-symbol/README.md create mode 100644 nodered/rootfs/data/node_modules/is-symbol/index.js create mode 100644 nodered/rootfs/data/node_modules/is-symbol/package.json create mode 100644 nodered/rootfs/data/node_modules/is-symbol/test/index.js create mode 100644 nodered/rootfs/data/node_modules/is-typedarray/LICENSE.md create mode 100644 nodered/rootfs/data/node_modules/is-typedarray/README.md create mode 100644 nodered/rootfs/data/node_modules/is-typedarray/index.js create mode 100644 nodered/rootfs/data/node_modules/is-typedarray/package.json create mode 100644 nodered/rootfs/data/node_modules/is-typedarray/test.js create mode 100644 nodered/rootfs/data/node_modules/isarray/README.md create mode 100644 nodered/rootfs/data/node_modules/isarray/index.js create mode 100644 nodered/rootfs/data/node_modules/isarray/package.json create mode 100644 nodered/rootfs/data/node_modules/isexe/.npmignore create mode 100644 nodered/rootfs/data/node_modules/isexe/LICENSE create mode 100644 nodered/rootfs/data/node_modules/isexe/README.md create mode 100644 nodered/rootfs/data/node_modules/isexe/index.js create mode 100644 nodered/rootfs/data/node_modules/isexe/mode.js create mode 100644 nodered/rootfs/data/node_modules/isexe/package.json create mode 100644 nodered/rootfs/data/node_modules/isexe/test/basic.js create mode 100644 nodered/rootfs/data/node_modules/isexe/windows.js create mode 100644 nodered/rootfs/data/node_modules/isstream/.jshintrc create mode 100644 nodered/rootfs/data/node_modules/isstream/.npmignore create mode 100644 nodered/rootfs/data/node_modules/isstream/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/isstream/LICENSE.md create mode 100644 nodered/rootfs/data/node_modules/isstream/README.md create mode 100644 nodered/rootfs/data/node_modules/isstream/isstream.js create mode 100644 nodered/rootfs/data/node_modules/isstream/package.json create mode 100644 nodered/rootfs/data/node_modules/isstream/test.js create mode 100644 nodered/rootfs/data/node_modules/jsbn/.npmignore create mode 100644 nodered/rootfs/data/node_modules/jsbn/LICENSE create mode 100644 nodered/rootfs/data/node_modules/jsbn/README.md create mode 100644 nodered/rootfs/data/node_modules/jsbn/example.html create mode 100644 nodered/rootfs/data/node_modules/jsbn/example.js create mode 100644 nodered/rootfs/data/node_modules/jsbn/index.js create mode 100644 nodered/rootfs/data/node_modules/jsbn/package.json create mode 100644 nodered/rootfs/data/node_modules/json-schema-traverse/.eslintrc.yml create mode 100644 nodered/rootfs/data/node_modules/json-schema-traverse/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/json-schema-traverse/LICENSE create mode 100644 nodered/rootfs/data/node_modules/json-schema-traverse/README.md create mode 100644 nodered/rootfs/data/node_modules/json-schema-traverse/index.js create mode 100644 nodered/rootfs/data/node_modules/json-schema-traverse/package.json create mode 100644 nodered/rootfs/data/node_modules/json-schema-traverse/spec/.eslintrc.yml create mode 100644 nodered/rootfs/data/node_modules/json-schema-traverse/spec/fixtures/schema.js create mode 100644 nodered/rootfs/data/node_modules/json-schema-traverse/spec/index.spec.js create mode 100644 nodered/rootfs/data/node_modules/json-schema/README.md create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-00/hyper-schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-00/json-ref create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-00/links create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-00/schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-01/hyper-schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-01/json-ref create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-01/links create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-01/schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-02/hyper-schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-02/json-ref create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-02/links create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-02/schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-03/examples/address create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-03/examples/calendar create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-03/examples/card create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-03/examples/geo create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-03/examples/interfaces create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-03/hyper-schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-03/json-ref create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-03/links create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-03/schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-04/hyper-schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-04/links create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-04/schema create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-zyp-json-schema-03.xml create mode 100644 nodered/rootfs/data/node_modules/json-schema/draft-zyp-json-schema-04.xml create mode 100644 nodered/rootfs/data/node_modules/json-schema/lib/links.js create mode 100644 nodered/rootfs/data/node_modules/json-schema/lib/validate.js create mode 100644 nodered/rootfs/data/node_modules/json-schema/package.json create mode 100644 nodered/rootfs/data/node_modules/json-schema/test/tests.js create mode 100644 nodered/rootfs/data/node_modules/json-stringify-safe/.npmignore create mode 100644 nodered/rootfs/data/node_modules/json-stringify-safe/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/json-stringify-safe/LICENSE create mode 100644 nodered/rootfs/data/node_modules/json-stringify-safe/Makefile create mode 100644 nodered/rootfs/data/node_modules/json-stringify-safe/README.md create mode 100644 nodered/rootfs/data/node_modules/json-stringify-safe/package.json create mode 100644 nodered/rootfs/data/node_modules/json-stringify-safe/stringify.js create mode 100644 nodered/rootfs/data/node_modules/json-stringify-safe/test/mocha.opts create mode 100644 nodered/rootfs/data/node_modules/json-stringify-safe/test/stringify_test.js create mode 100644 nodered/rootfs/data/node_modules/jsprim/CHANGES.md create mode 100644 nodered/rootfs/data/node_modules/jsprim/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/jsprim/LICENSE create mode 100644 nodered/rootfs/data/node_modules/jsprim/README.md create mode 100644 nodered/rootfs/data/node_modules/jsprim/lib/jsprim.js create mode 100644 nodered/rootfs/data/node_modules/jsprim/package.json create mode 100644 nodered/rootfs/data/node_modules/lcid/index.js create mode 100644 nodered/rootfs/data/node_modules/lcid/lcid.json create mode 100644 nodered/rootfs/data/node_modules/lcid/license create mode 100644 nodered/rootfs/data/node_modules/lcid/package.json create mode 100644 nodered/rootfs/data/node_modules/lcid/readme.md create mode 100644 nodered/rootfs/data/node_modules/libbase64/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/libbase64/.prettierrc.js create mode 100644 nodered/rootfs/data/node_modules/libbase64/LICENSE create mode 100644 nodered/rootfs/data/node_modules/libbase64/README.md create mode 100644 nodered/rootfs/data/node_modules/libbase64/lib/libbase64.js create mode 100644 nodered/rootfs/data/node_modules/libbase64/package.json create mode 100644 nodered/rootfs/data/node_modules/libmime/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/libmime/.prettierrc.js create mode 100644 nodered/rootfs/data/node_modules/libmime/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/libmime/LICENSE create mode 100644 nodered/rootfs/data/node_modules/libmime/README.md create mode 100644 nodered/rootfs/data/node_modules/libmime/lib/charset.js create mode 100644 nodered/rootfs/data/node_modules/libmime/lib/charsets.js create mode 100644 nodered/rootfs/data/node_modules/libmime/lib/libmime.js create mode 100644 nodered/rootfs/data/node_modules/libmime/lib/mimetypes.js create mode 100644 nodered/rootfs/data/node_modules/libmime/package.json create mode 100644 nodered/rootfs/data/node_modules/libqp/.npmignore create mode 100644 nodered/rootfs/data/node_modules/libqp/LICENSE create mode 100644 nodered/rootfs/data/node_modules/libqp/README.md create mode 100644 nodered/rootfs/data/node_modules/libqp/lib/libqp.js create mode 100644 nodered/rootfs/data/node_modules/libqp/package.json create mode 100644 nodered/rootfs/data/node_modules/linkify-it/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/linkify-it/LICENSE create mode 100644 nodered/rootfs/data/node_modules/linkify-it/README.md create mode 100644 nodered/rootfs/data/node_modules/linkify-it/index.js create mode 100644 nodered/rootfs/data/node_modules/linkify-it/lib/re.js create mode 100644 nodered/rootfs/data/node_modules/linkify-it/package.json create mode 100644 nodered/rootfs/data/node_modules/lodash/LICENSE create mode 100644 nodered/rootfs/data/node_modules/lodash/README.md create mode 100644 nodered/rootfs/data/node_modules/lodash/_DataView.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_Hash.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_LazyWrapper.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_ListCache.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_LodashWrapper.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_Map.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_MapCache.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_Promise.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_Set.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_SetCache.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_Stack.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_Symbol.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_Uint8Array.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_WeakMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_apply.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayAggregator.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayEach.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayEachRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayEvery.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayFilter.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayIncludes.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayIncludesWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayLikeKeys.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayPush.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayReduce.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayReduceRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arraySample.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arraySampleSize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arrayShuffle.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_arraySome.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_asciiSize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_asciiToArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_asciiWords.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_assignMergeValue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_assignValue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_assocIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseAggregator.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseAssign.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseAssignIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseAssignValue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseAt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseClamp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseClone.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseConforms.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseConformsTo.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseCreate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseDelay.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseDifference.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseEach.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseEachRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseEvery.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseExtremum.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseFill.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseFilter.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseFindIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseFindKey.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseFlatten.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseFor.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseForOwn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseForOwnRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseForRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseFunctions.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseGet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseGetAllKeys.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseGetTag.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseGt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseHas.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseHasIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseInRange.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIndexOfWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIntersection.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseInverter.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseInvoke.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsArguments.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsArrayBuffer.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsDate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsEqual.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsEqualDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsMatch.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsNaN.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsNative.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsRegExp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIsTypedArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseIteratee.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseKeys.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseKeysIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseLodash.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseLt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseMatches.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseMatchesProperty.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseMean.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseMerge.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseMergeDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseNth.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseOrderBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_basePick.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_basePickBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseProperty.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_basePropertyDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_basePropertyOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_basePullAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_basePullAt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseRandom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseRange.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseReduce.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseRepeat.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseRest.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSample.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSampleSize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSetData.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSetToString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseShuffle.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSlice.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSome.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSortBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSortedIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSortedIndexBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSortedUniq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseSum.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseTimes.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseToNumber.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseToPairs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseToString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseUnary.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseUniq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseUnset.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseUpdate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseValues.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseWrapperValue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseXor.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_baseZipObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_cacheHas.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_castArrayLikeObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_castFunction.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_castPath.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_castRest.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_castSlice.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_charsEndIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_charsStartIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_cloneArrayBuffer.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_cloneBuffer.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_cloneDataView.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_cloneRegExp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_cloneSymbol.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_cloneTypedArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_compareAscending.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_compareMultiple.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_composeArgs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_composeArgsRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_copyArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_copyObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_copySymbols.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_copySymbolsIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_coreJsData.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_countHolders.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createAggregator.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createAssigner.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createBaseEach.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createBaseFor.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createBind.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createCaseFirst.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createCompounder.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createCtor.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createCurry.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createFind.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createFlow.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createHybrid.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createInverter.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createMathOperation.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createOver.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createPadding.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createPartial.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createRange.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createRecurry.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createRelationalOperation.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createRound.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createToPairs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_createWrap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_customDefaultsAssignIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_customDefaultsMerge.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_customOmitClone.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_deburrLetter.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_defineProperty.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_equalArrays.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_equalByTag.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_equalObjects.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_escapeHtmlChar.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_escapeStringChar.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_flatRest.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_freeGlobal.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getAllKeys.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getAllKeysIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getData.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getFuncName.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getHolder.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getMapData.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getMatchData.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getNative.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getPrototype.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getRawTag.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getSymbols.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getSymbolsIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getTag.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getValue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getView.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_getWrapDetails.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_hasPath.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_hasUnicode.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_hasUnicodeWord.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_hashClear.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_hashDelete.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_hashGet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_hashHas.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_hashSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_initCloneArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_initCloneByTag.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_initCloneObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_insertWrapDetails.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isFlattenable.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isIterateeCall.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isKey.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isKeyable.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isLaziable.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isMaskable.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isMasked.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isPrototype.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_isStrictComparable.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_iteratorToArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_lazyClone.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_lazyReverse.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_lazyValue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_listCacheClear.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_listCacheDelete.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_listCacheGet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_listCacheHas.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_listCacheSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_mapCacheClear.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_mapCacheDelete.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_mapCacheGet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_mapCacheHas.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_mapCacheSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_mapToArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_matchesStrictComparable.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_memoizeCapped.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_mergeData.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_metaMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_nativeCreate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_nativeKeys.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_nativeKeysIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_nodeUtil.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_objectToString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_overArg.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_overRest.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_parent.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_reEscape.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_reEvaluate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_reInterpolate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_realNames.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_reorder.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_replaceHolders.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_root.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_safeGet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_setCacheAdd.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_setCacheHas.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_setData.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_setToArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_setToPairs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_setToString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_setWrapToString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_shortOut.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_shuffleSelf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_stackClear.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_stackDelete.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_stackGet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_stackHas.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_stackSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_strictIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_strictLastIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_stringSize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_stringToArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_stringToPath.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_toKey.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_toSource.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_unescapeHtmlChar.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_unicodeSize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_unicodeToArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_unicodeWords.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_updateWrapDetails.js create mode 100644 nodered/rootfs/data/node_modules/lodash/_wrapperClone.js create mode 100644 nodered/rootfs/data/node_modules/lodash/add.js create mode 100644 nodered/rootfs/data/node_modules/lodash/after.js create mode 100644 nodered/rootfs/data/node_modules/lodash/array.js create mode 100644 nodered/rootfs/data/node_modules/lodash/ary.js create mode 100644 nodered/rootfs/data/node_modules/lodash/assign.js create mode 100644 nodered/rootfs/data/node_modules/lodash/assignIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/assignInWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/assignWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/at.js create mode 100644 nodered/rootfs/data/node_modules/lodash/attempt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/before.js create mode 100644 nodered/rootfs/data/node_modules/lodash/bind.js create mode 100644 nodered/rootfs/data/node_modules/lodash/bindAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/bindKey.js create mode 100644 nodered/rootfs/data/node_modules/lodash/camelCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/capitalize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/castArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/ceil.js create mode 100644 nodered/rootfs/data/node_modules/lodash/chain.js create mode 100644 nodered/rootfs/data/node_modules/lodash/chunk.js create mode 100644 nodered/rootfs/data/node_modules/lodash/clamp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/clone.js create mode 100644 nodered/rootfs/data/node_modules/lodash/cloneDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/cloneDeepWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/cloneWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/collection.js create mode 100644 nodered/rootfs/data/node_modules/lodash/commit.js create mode 100644 nodered/rootfs/data/node_modules/lodash/compact.js create mode 100644 nodered/rootfs/data/node_modules/lodash/concat.js create mode 100644 nodered/rootfs/data/node_modules/lodash/cond.js create mode 100644 nodered/rootfs/data/node_modules/lodash/conforms.js create mode 100644 nodered/rootfs/data/node_modules/lodash/conformsTo.js create mode 100644 nodered/rootfs/data/node_modules/lodash/constant.js create mode 100644 nodered/rootfs/data/node_modules/lodash/core.js create mode 100644 nodered/rootfs/data/node_modules/lodash/core.min.js create mode 100644 nodered/rootfs/data/node_modules/lodash/countBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/create.js create mode 100644 nodered/rootfs/data/node_modules/lodash/curry.js create mode 100644 nodered/rootfs/data/node_modules/lodash/curryRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/date.js create mode 100644 nodered/rootfs/data/node_modules/lodash/debounce.js create mode 100644 nodered/rootfs/data/node_modules/lodash/deburr.js create mode 100644 nodered/rootfs/data/node_modules/lodash/defaultTo.js create mode 100644 nodered/rootfs/data/node_modules/lodash/defaults.js create mode 100644 nodered/rootfs/data/node_modules/lodash/defaultsDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/defer.js create mode 100644 nodered/rootfs/data/node_modules/lodash/delay.js create mode 100644 nodered/rootfs/data/node_modules/lodash/difference.js create mode 100644 nodered/rootfs/data/node_modules/lodash/differenceBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/differenceWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/divide.js create mode 100644 nodered/rootfs/data/node_modules/lodash/drop.js create mode 100644 nodered/rootfs/data/node_modules/lodash/dropRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/dropRightWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/dropWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/each.js create mode 100644 nodered/rootfs/data/node_modules/lodash/eachRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/endsWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/entries.js create mode 100644 nodered/rootfs/data/node_modules/lodash/entriesIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/eq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/escape.js create mode 100644 nodered/rootfs/data/node_modules/lodash/escapeRegExp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/every.js create mode 100644 nodered/rootfs/data/node_modules/lodash/extend.js create mode 100644 nodered/rootfs/data/node_modules/lodash/extendWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fill.js create mode 100644 nodered/rootfs/data/node_modules/lodash/filter.js create mode 100644 nodered/rootfs/data/node_modules/lodash/find.js create mode 100644 nodered/rootfs/data/node_modules/lodash/findIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/findKey.js create mode 100644 nodered/rootfs/data/node_modules/lodash/findLast.js create mode 100644 nodered/rootfs/data/node_modules/lodash/findLastIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/findLastKey.js create mode 100644 nodered/rootfs/data/node_modules/lodash/first.js create mode 100644 nodered/rootfs/data/node_modules/lodash/flatMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/flatMapDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/flatMapDepth.js create mode 100644 nodered/rootfs/data/node_modules/lodash/flatten.js create mode 100644 nodered/rootfs/data/node_modules/lodash/flattenDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/flattenDepth.js create mode 100644 nodered/rootfs/data/node_modules/lodash/flip.js create mode 100644 nodered/rootfs/data/node_modules/lodash/floor.js create mode 100644 nodered/rootfs/data/node_modules/lodash/flow.js create mode 100644 nodered/rootfs/data/node_modules/lodash/flowRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/forEach.js create mode 100644 nodered/rootfs/data/node_modules/lodash/forEachRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/forIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/forInRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/forOwn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/forOwnRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/F.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/T.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/__.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/_baseConvert.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/_convertBrowser.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/_falseOptions.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/_mapping.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/_util.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/add.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/after.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/all.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/allPass.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/always.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/any.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/anyPass.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/apply.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/array.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/ary.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assign.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assignAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assignAllWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assignIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assignInAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assignInAllWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assignInWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assignWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assoc.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/assocPath.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/at.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/attempt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/before.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/bind.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/bindAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/bindKey.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/camelCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/capitalize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/castArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/ceil.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/chain.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/chunk.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/clamp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/clone.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/cloneDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/cloneDeepWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/cloneWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/collection.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/commit.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/compact.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/complement.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/compose.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/concat.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/cond.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/conforms.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/conformsTo.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/constant.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/contains.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/convert.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/countBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/create.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/curry.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/curryN.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/curryRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/curryRightN.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/date.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/debounce.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/deburr.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/defaultTo.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/defaults.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/defaultsAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/defaultsDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/defaultsDeepAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/defer.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/delay.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/difference.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/differenceBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/differenceWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/dissoc.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/dissocPath.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/divide.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/drop.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/dropLast.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/dropLastWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/dropRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/dropRightWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/dropWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/each.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/eachRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/endsWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/entries.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/entriesIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/eq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/equals.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/escape.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/escapeRegExp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/every.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/extend.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/extendAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/extendAllWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/extendWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/fill.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/filter.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/find.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/findFrom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/findIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/findIndexFrom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/findKey.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/findLast.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/findLastFrom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/findLastIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/findLastIndexFrom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/findLastKey.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/first.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/flatMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/flatMapDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/flatMapDepth.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/flatten.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/flattenDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/flattenDepth.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/flip.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/floor.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/flow.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/flowRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/forEach.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/forEachRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/forIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/forInRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/forOwn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/forOwnRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/fromPairs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/function.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/functions.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/functionsIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/get.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/getOr.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/groupBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/gt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/gte.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/has.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/hasIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/head.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/identical.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/identity.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/inRange.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/includes.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/includesFrom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/indexBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/indexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/indexOfFrom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/init.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/initial.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/intersection.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/intersectionBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/intersectionWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/invert.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/invertBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/invertObj.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/invoke.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/invokeArgs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/invokeArgsMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/invokeMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isArguments.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isArrayBuffer.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isArrayLike.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isArrayLikeObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isBoolean.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isBuffer.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isDate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isElement.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isEmpty.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isEqual.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isEqualWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isError.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isFinite.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isFunction.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isInteger.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isLength.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isMatch.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isMatchWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isNaN.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isNative.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isNil.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isNull.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isNumber.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isObjectLike.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isPlainObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isRegExp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isSafeInteger.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isSymbol.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isTypedArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isUndefined.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isWeakMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/isWeakSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/iteratee.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/join.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/juxt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/kebabCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/keyBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/keys.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/keysIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/lang.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/last.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/lastIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/lastIndexOfFrom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/lowerCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/lowerFirst.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/lt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/lte.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/map.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/mapKeys.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/mapValues.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/matches.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/matchesProperty.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/math.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/max.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/maxBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/mean.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/meanBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/memoize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/merge.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/mergeAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/mergeAllWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/mergeWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/method.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/methodOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/min.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/minBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/mixin.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/multiply.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/nAry.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/negate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/next.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/noop.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/now.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/nth.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/nthArg.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/number.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/object.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/omit.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/omitAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/omitBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/once.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/orderBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/over.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/overArgs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/overEvery.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/overSome.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pad.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/padChars.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/padCharsEnd.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/padCharsStart.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/padEnd.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/padStart.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/parseInt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/partial.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/partialRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/partition.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/path.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pathEq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pathOr.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/paths.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pick.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pickAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pickBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pipe.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/placeholder.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/plant.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pluck.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/prop.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/propEq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/propOr.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/property.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/propertyOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/props.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pull.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pullAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pullAllBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pullAllWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/pullAt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/random.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/range.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/rangeRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/rangeStep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/rangeStepRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/rearg.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/reduce.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/reduceRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/reject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/remove.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/repeat.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/replace.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/rest.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/restFrom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/result.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/reverse.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/round.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sample.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sampleSize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/seq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/set.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/setWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/shuffle.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/size.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/slice.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/snakeCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/some.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sortBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sortedIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sortedIndexBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sortedIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sortedLastIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sortedLastIndexBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sortedLastIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sortedUniq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sortedUniqBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/split.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/spread.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/spreadFrom.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/startCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/startsWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/string.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/stubArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/stubFalse.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/stubObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/stubString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/stubTrue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/subtract.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sum.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/sumBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/symmetricDifference.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/symmetricDifferenceBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/symmetricDifferenceWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/tail.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/take.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/takeLast.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/takeLastWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/takeRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/takeRightWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/takeWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/tap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/template.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/templateSettings.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/throttle.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/thru.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/times.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toFinite.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toInteger.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toIterator.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toJSON.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toLength.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toLower.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toNumber.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toPairs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toPairsIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toPath.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toPlainObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toSafeInteger.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/toUpper.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/transform.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/trim.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/trimChars.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/trimCharsEnd.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/trimCharsStart.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/trimEnd.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/trimStart.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/truncate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/unapply.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/unary.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/unescape.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/union.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/unionBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/unionWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/uniq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/uniqBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/uniqWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/uniqueId.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/unnest.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/unset.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/unzip.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/unzipWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/update.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/updateWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/upperCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/upperFirst.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/useWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/util.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/value.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/valueOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/values.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/valuesIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/where.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/whereEq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/without.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/words.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/wrap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/wrapperAt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/wrapperChain.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/wrapperLodash.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/wrapperReverse.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/wrapperValue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/xor.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/xorBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/xorWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/zip.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/zipAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/zipObj.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/zipObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/zipObjectDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fp/zipWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/fromPairs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/function.js create mode 100644 nodered/rootfs/data/node_modules/lodash/functions.js create mode 100644 nodered/rootfs/data/node_modules/lodash/functionsIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/get.js create mode 100644 nodered/rootfs/data/node_modules/lodash/groupBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/gt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/gte.js create mode 100644 nodered/rootfs/data/node_modules/lodash/has.js create mode 100644 nodered/rootfs/data/node_modules/lodash/hasIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/head.js create mode 100644 nodered/rootfs/data/node_modules/lodash/identity.js create mode 100644 nodered/rootfs/data/node_modules/lodash/inRange.js create mode 100644 nodered/rootfs/data/node_modules/lodash/includes.js create mode 100644 nodered/rootfs/data/node_modules/lodash/index.js create mode 100644 nodered/rootfs/data/node_modules/lodash/indexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/initial.js create mode 100644 nodered/rootfs/data/node_modules/lodash/intersection.js create mode 100644 nodered/rootfs/data/node_modules/lodash/intersectionBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/intersectionWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/invert.js create mode 100644 nodered/rootfs/data/node_modules/lodash/invertBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/invoke.js create mode 100644 nodered/rootfs/data/node_modules/lodash/invokeMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isArguments.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isArrayBuffer.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isArrayLike.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isArrayLikeObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isBoolean.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isBuffer.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isDate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isElement.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isEmpty.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isEqual.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isEqualWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isError.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isFinite.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isFunction.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isInteger.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isLength.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isMatch.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isMatchWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isNaN.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isNative.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isNil.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isNull.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isNumber.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isObjectLike.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isPlainObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isRegExp.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isSafeInteger.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isSymbol.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isTypedArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isUndefined.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isWeakMap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/isWeakSet.js create mode 100644 nodered/rootfs/data/node_modules/lodash/iteratee.js create mode 100644 nodered/rootfs/data/node_modules/lodash/join.js create mode 100644 nodered/rootfs/data/node_modules/lodash/kebabCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/keyBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/keys.js create mode 100644 nodered/rootfs/data/node_modules/lodash/keysIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/lang.js create mode 100644 nodered/rootfs/data/node_modules/lodash/last.js create mode 100644 nodered/rootfs/data/node_modules/lodash/lastIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/lodash.js create mode 100644 nodered/rootfs/data/node_modules/lodash/lodash.min.js create mode 100644 nodered/rootfs/data/node_modules/lodash/lowerCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/lowerFirst.js create mode 100644 nodered/rootfs/data/node_modules/lodash/lt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/lte.js create mode 100644 nodered/rootfs/data/node_modules/lodash/map.js create mode 100644 nodered/rootfs/data/node_modules/lodash/mapKeys.js create mode 100644 nodered/rootfs/data/node_modules/lodash/mapValues.js create mode 100644 nodered/rootfs/data/node_modules/lodash/matches.js create mode 100644 nodered/rootfs/data/node_modules/lodash/matchesProperty.js create mode 100644 nodered/rootfs/data/node_modules/lodash/math.js create mode 100644 nodered/rootfs/data/node_modules/lodash/max.js create mode 100644 nodered/rootfs/data/node_modules/lodash/maxBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/mean.js create mode 100644 nodered/rootfs/data/node_modules/lodash/meanBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/memoize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/merge.js create mode 100644 nodered/rootfs/data/node_modules/lodash/mergeWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/method.js create mode 100644 nodered/rootfs/data/node_modules/lodash/methodOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/min.js create mode 100644 nodered/rootfs/data/node_modules/lodash/minBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/mixin.js create mode 100644 nodered/rootfs/data/node_modules/lodash/multiply.js create mode 100644 nodered/rootfs/data/node_modules/lodash/negate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/next.js create mode 100644 nodered/rootfs/data/node_modules/lodash/noop.js create mode 100644 nodered/rootfs/data/node_modules/lodash/now.js create mode 100644 nodered/rootfs/data/node_modules/lodash/nth.js create mode 100644 nodered/rootfs/data/node_modules/lodash/nthArg.js create mode 100644 nodered/rootfs/data/node_modules/lodash/number.js create mode 100644 nodered/rootfs/data/node_modules/lodash/object.js create mode 100644 nodered/rootfs/data/node_modules/lodash/omit.js create mode 100644 nodered/rootfs/data/node_modules/lodash/omitBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/once.js create mode 100644 nodered/rootfs/data/node_modules/lodash/orderBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/over.js create mode 100644 nodered/rootfs/data/node_modules/lodash/overArgs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/overEvery.js create mode 100644 nodered/rootfs/data/node_modules/lodash/overSome.js create mode 100644 nodered/rootfs/data/node_modules/lodash/package.json create mode 100644 nodered/rootfs/data/node_modules/lodash/pad.js create mode 100644 nodered/rootfs/data/node_modules/lodash/padEnd.js create mode 100644 nodered/rootfs/data/node_modules/lodash/padStart.js create mode 100644 nodered/rootfs/data/node_modules/lodash/parseInt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/partial.js create mode 100644 nodered/rootfs/data/node_modules/lodash/partialRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/partition.js create mode 100644 nodered/rootfs/data/node_modules/lodash/pick.js create mode 100644 nodered/rootfs/data/node_modules/lodash/pickBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/plant.js create mode 100644 nodered/rootfs/data/node_modules/lodash/property.js create mode 100644 nodered/rootfs/data/node_modules/lodash/propertyOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/pull.js create mode 100644 nodered/rootfs/data/node_modules/lodash/pullAll.js create mode 100644 nodered/rootfs/data/node_modules/lodash/pullAllBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/pullAllWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/pullAt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/random.js create mode 100644 nodered/rootfs/data/node_modules/lodash/range.js create mode 100644 nodered/rootfs/data/node_modules/lodash/rangeRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/rearg.js create mode 100644 nodered/rootfs/data/node_modules/lodash/reduce.js create mode 100644 nodered/rootfs/data/node_modules/lodash/reduceRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/reject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/remove.js create mode 100644 nodered/rootfs/data/node_modules/lodash/repeat.js create mode 100644 nodered/rootfs/data/node_modules/lodash/replace.js create mode 100644 nodered/rootfs/data/node_modules/lodash/rest.js create mode 100644 nodered/rootfs/data/node_modules/lodash/result.js create mode 100644 nodered/rootfs/data/node_modules/lodash/reverse.js create mode 100644 nodered/rootfs/data/node_modules/lodash/round.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sample.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sampleSize.js create mode 100644 nodered/rootfs/data/node_modules/lodash/seq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/set.js create mode 100644 nodered/rootfs/data/node_modules/lodash/setWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/shuffle.js create mode 100644 nodered/rootfs/data/node_modules/lodash/size.js create mode 100644 nodered/rootfs/data/node_modules/lodash/slice.js create mode 100644 nodered/rootfs/data/node_modules/lodash/snakeCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/some.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sortBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sortedIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sortedIndexBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sortedIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sortedLastIndex.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sortedLastIndexBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sortedLastIndexOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sortedUniq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sortedUniqBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/split.js create mode 100644 nodered/rootfs/data/node_modules/lodash/spread.js create mode 100644 nodered/rootfs/data/node_modules/lodash/startCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/startsWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/string.js create mode 100644 nodered/rootfs/data/node_modules/lodash/stubArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/stubFalse.js create mode 100644 nodered/rootfs/data/node_modules/lodash/stubObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/stubString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/stubTrue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/subtract.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sum.js create mode 100644 nodered/rootfs/data/node_modules/lodash/sumBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/tail.js create mode 100644 nodered/rootfs/data/node_modules/lodash/take.js create mode 100644 nodered/rootfs/data/node_modules/lodash/takeRight.js create mode 100644 nodered/rootfs/data/node_modules/lodash/takeRightWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/takeWhile.js create mode 100644 nodered/rootfs/data/node_modules/lodash/tap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/template.js create mode 100644 nodered/rootfs/data/node_modules/lodash/templateSettings.js create mode 100644 nodered/rootfs/data/node_modules/lodash/throttle.js create mode 100644 nodered/rootfs/data/node_modules/lodash/thru.js create mode 100644 nodered/rootfs/data/node_modules/lodash/times.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toArray.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toFinite.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toInteger.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toIterator.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toJSON.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toLength.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toLower.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toNumber.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toPairs.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toPairsIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toPath.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toPlainObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toSafeInteger.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toString.js create mode 100644 nodered/rootfs/data/node_modules/lodash/toUpper.js create mode 100644 nodered/rootfs/data/node_modules/lodash/transform.js create mode 100644 nodered/rootfs/data/node_modules/lodash/trim.js create mode 100644 nodered/rootfs/data/node_modules/lodash/trimEnd.js create mode 100644 nodered/rootfs/data/node_modules/lodash/trimStart.js create mode 100644 nodered/rootfs/data/node_modules/lodash/truncate.js create mode 100644 nodered/rootfs/data/node_modules/lodash/unary.js create mode 100644 nodered/rootfs/data/node_modules/lodash/unescape.js create mode 100644 nodered/rootfs/data/node_modules/lodash/union.js create mode 100644 nodered/rootfs/data/node_modules/lodash/unionBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/unionWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/uniq.js create mode 100644 nodered/rootfs/data/node_modules/lodash/uniqBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/uniqWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/uniqueId.js create mode 100644 nodered/rootfs/data/node_modules/lodash/unset.js create mode 100644 nodered/rootfs/data/node_modules/lodash/unzip.js create mode 100644 nodered/rootfs/data/node_modules/lodash/unzipWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/update.js create mode 100644 nodered/rootfs/data/node_modules/lodash/updateWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/upperCase.js create mode 100644 nodered/rootfs/data/node_modules/lodash/upperFirst.js create mode 100644 nodered/rootfs/data/node_modules/lodash/util.js create mode 100644 nodered/rootfs/data/node_modules/lodash/value.js create mode 100644 nodered/rootfs/data/node_modules/lodash/valueOf.js create mode 100644 nodered/rootfs/data/node_modules/lodash/values.js create mode 100644 nodered/rootfs/data/node_modules/lodash/valuesIn.js create mode 100644 nodered/rootfs/data/node_modules/lodash/without.js create mode 100644 nodered/rootfs/data/node_modules/lodash/words.js create mode 100644 nodered/rootfs/data/node_modules/lodash/wrap.js create mode 100644 nodered/rootfs/data/node_modules/lodash/wrapperAt.js create mode 100644 nodered/rootfs/data/node_modules/lodash/wrapperChain.js create mode 100644 nodered/rootfs/data/node_modules/lodash/wrapperLodash.js create mode 100644 nodered/rootfs/data/node_modules/lodash/wrapperReverse.js create mode 100644 nodered/rootfs/data/node_modules/lodash/wrapperValue.js create mode 100644 nodered/rootfs/data/node_modules/lodash/xor.js create mode 100644 nodered/rootfs/data/node_modules/lodash/xorBy.js create mode 100644 nodered/rootfs/data/node_modules/lodash/xorWith.js create mode 100644 nodered/rootfs/data/node_modules/lodash/zip.js create mode 100644 nodered/rootfs/data/node_modules/lodash/zipObject.js create mode 100644 nodered/rootfs/data/node_modules/lodash/zipObjectDeep.js create mode 100644 nodered/rootfs/data/node_modules/lodash/zipWith.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/.github/FUNDING.yml create mode 100644 nodered/rootfs/data/node_modules/mailparser/.prettierrc.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/LICENSE.EUPL-1.2 create mode 100644 nodered/rootfs/data/node_modules/mailparser/LICENSE.MIT create mode 100644 nodered/rootfs/data/node_modules/mailparser/README.md create mode 100644 nodered/rootfs/data/node_modules/mailparser/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/lib/mail-parser.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/lib/simple-parser.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/lib/stream-hash.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/.prettierrc.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/LICENSE create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/README.md create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/addressparser/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/base64/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/dkim/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/dkim/message-parser.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/dkim/relaxed-body.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/dkim/sign.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/fetch/cookies.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/fetch/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/json-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/mail-composer/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/mailer/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/mailer/mail-message.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/mime-funcs/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/mime-funcs/mime-types.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/mime-node/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/mime-node/last-newline.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/nodemailer.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/qp/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/sendmail-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/sendmail-transport/le-unix.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/sendmail-transport/le-windows.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/ses-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/shared/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/smtp-connection/data-stream.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/smtp-connection/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/smtp-pool/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/smtp-pool/pool-resource.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/smtp-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/stream-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/well-known/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/well-known/services.json create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/lib/xoauth2/index.js create mode 100644 nodered/rootfs/data/node_modules/mailparser/node_modules/nodemailer/package.json create mode 100644 nodered/rootfs/data/node_modules/mailparser/package.json create mode 100644 nodered/rootfs/data/node_modules/mailsplit/LICENSE.EUPL-1.2 create mode 100644 nodered/rootfs/data/node_modules/mailsplit/LICENSE.MIT create mode 100644 nodered/rootfs/data/node_modules/mailsplit/README.md create mode 100644 nodered/rootfs/data/node_modules/mailsplit/index.js create mode 100644 nodered/rootfs/data/node_modules/mailsplit/lib/flowed-decoder.js create mode 100644 nodered/rootfs/data/node_modules/mailsplit/lib/headers.js create mode 100644 nodered/rootfs/data/node_modules/mailsplit/lib/message-joiner.js create mode 100644 nodered/rootfs/data/node_modules/mailsplit/lib/message-splitter.js create mode 100644 nodered/rootfs/data/node_modules/mailsplit/lib/mime-node.js create mode 100644 nodered/rootfs/data/node_modules/mailsplit/lib/node-rewriter.js create mode 100644 nodered/rootfs/data/node_modules/mailsplit/lib/node-streamer.js create mode 100644 nodered/rootfs/data/node_modules/mailsplit/package.json create mode 100644 nodered/rootfs/data/node_modules/map-age-cleaner/dist/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/map-age-cleaner/dist/index.js create mode 100644 nodered/rootfs/data/node_modules/map-age-cleaner/license create mode 100644 nodered/rootfs/data/node_modules/map-age-cleaner/package.json create mode 100644 nodered/rootfs/data/node_modules/map-age-cleaner/readme.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/LICENSE create mode 100644 nodered/rootfs/data/node_modules/mathjs/NOTICE create mode 100644 nodered/rootfs/data/node_modules/mathjs/README.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/ROADMAP.md create mode 100755 nodered/rootfs/data/node_modules/mathjs/bin/cli.js create mode 100755 nodered/rootfs/data/node_modules/mathjs/bin/repl.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/composer.json create mode 100644 nodered/rootfs/data/node_modules/mathjs/core.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/dist/math.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/dist/math.map create mode 100644 nodered/rootfs/data/node_modules/mathjs/dist/math.min.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/chaining.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/command_line_interface.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/configuration.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/core.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/core/chaining.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/core/configuration.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/core/extension.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/core/index.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/core/serialization.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/custom_bundling.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/datatypes/bignumbers.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/datatypes/complex_numbers.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/datatypes/fractions.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/datatypes/index.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/datatypes/matrices.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/datatypes/numbers.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/datatypes/units.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/expressions.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/expressions/algebra.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/expressions/customization.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/expressions/expression_trees.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/expressions/index.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/expressions/parsing.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/expressions/syntax.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/extension.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/getting_started.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/index.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/classes.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/classes/densematrix.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/classes/fibonacciheap.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/classes/matrixindex.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/classes/matrixrange.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/classes/resultset.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/classes/sparsematrix.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/classes/unit.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/constants.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/abs.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/acos.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/acosh.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/acot.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/acoth.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/acsc.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/acsch.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/add.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/and.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/arg.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/asec.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/asech.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/asin.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/asinh.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/atan.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/atan2.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/atanh.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/bellNumbers.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/bignumber.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/bitAnd.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/bitNot.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/bitOr.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/bitXor.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/boolean.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/catalan.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/cbrt.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/ceil.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/chain.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/clone.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/combinations.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/compare.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/compile.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/complex.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/composition.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/concat.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/config.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/conj.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/cos.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/cosh.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/cot.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/coth.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/createUnit.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/cross.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/csc.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/csch.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/cube.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/deepEqual.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/derivative.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/det.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/diag.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/distance.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/divide.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/dot.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/dotDivide.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/dotMultiply.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/dotPow.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/equal.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/erf.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/eval.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/exp.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/eye.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/factorial.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/filter.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/fix.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/flatten.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/floor.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/forEach.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/format.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/fraction.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/gamma.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/gcd.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/help.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/hypot.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/im.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/import.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/index.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/intersect.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/inv.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/isInteger.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/isNaN.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/isNegative.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/isNumeric.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/isPositive.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/isPrime.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/isZero.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/kldivergence.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/kron.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/larger.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/largerEq.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/lcm.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/leftShift.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/log.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/log10.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/lsolve.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/lup.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/lusolve.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/mad.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/map.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/matrix.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/max.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/mean.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/median.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/min.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/mod.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/mode.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/multinomial.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/multiply.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/norm.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/not.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/nthRoot.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/number.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/ones.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/or.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/parse.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/parser.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/partitionSelect.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/permutations.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/pickRandom.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/pow.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/print.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/prod.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/quantileSeq.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/random.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/randomInt.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/range.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/re.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/resize.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/rightArithShift.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/rightLogShift.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/round.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/sec.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/sech.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/sign.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/simplify.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/sin.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/sinh.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/size.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/slu.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/smaller.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/smallerEq.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/sort.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/sparse.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/splitUnit.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/sqrt.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/square.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/squeeze.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/std.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/stirlingS2.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/string.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/subset.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/subtract.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/sum.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/tan.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/tanh.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/to.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/trace.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/transpose.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/typed.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/typeof.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/unaryMinus.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/unaryPlus.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/unequal.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/unit.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/usolve.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/var.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/xgcd.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/xor.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/functions/zeros.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/index.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/reference/units.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/docs/serialization.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/add_new_datatypes/MyType.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/add_new_datatypes/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/add_new_datatypes/myAdd.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/convert_fraction_to_bignumber.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/custom_argument_parsing.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/custom_loading.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/expression_trees.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/function_transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/web_server/math_worker.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/advanced/web_server/server.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/algebra.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/basic_usage.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/bignumbers.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/angle_configuration.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/basic_usage.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/currency_conversion.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/custom_separators.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/old_browsers.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/plot.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/pretty_printing_with_mathjax.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/requirejs_loading.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/webworkers/webworkers.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/browser/webworkers/worker.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/chaining.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/complex_numbers.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/expressions.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/fractions.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/import.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/matrices.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/objects.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/serialization.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/sparse_matrices.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/examples/units.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/constants.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/core/core.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/core/function/config.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/core/function/import.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/core/function/typed.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/core/typed.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/error/ArgumentsError.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/error/DimensionError.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/error/IndexError.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/error/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/Help.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/Parser.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/Infinity.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/LN10.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/LN2.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/LOG10E.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/LOG2E.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/NaN.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/SQRT1_2.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/SQRT2.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/e.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/false.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/i.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/null.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/phi.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/pi.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/tau.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/true.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/constants/version.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/bignumber.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/boolean.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/complex.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/createUnit.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/fraction.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/matrix.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/number.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/sparse.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/splitUnit.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/string.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/construction/unit.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/core/config.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/core/import.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/core/typed.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/algebra/derivative.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/algebra/lsolve.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/algebra/lup.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/algebra/lusolve.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/algebra/simplify.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/algebra/slu.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/algebra/usolve.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/abs.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/add.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/cbrt.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/ceil.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/cube.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/divide.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/dotDivide.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/dotMultiply.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/dotPow.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/exp.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/fix.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/floor.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/gcd.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/hypot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/lcm.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/log.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/log10.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/mod.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/multiply.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/norm.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/nthRoot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/pow.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/round.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/sign.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/sqrt.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/square.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/subtract.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/unaryMinus.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/unaryPlus.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/arithmetic/xgcd.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/bitwise/bitAnd.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/bitwise/bitNot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/bitwise/bitOr.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/bitwise/bitXor.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/bitwise/leftShift.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/bitwise/rightArithShift.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/bitwise/rightLogShift.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/combinatorics/bellNumbers.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/combinatorics/catalan.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/combinatorics/composition.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/combinatorics/stirlingS2.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/complex/arg.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/complex/conj.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/complex/im.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/complex/re.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/expression/eval.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/expression/help.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/geometry/distance.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/geometry/intersect.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/logical/and.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/logical/not.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/logical/or.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/logical/xor.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/concat.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/cross.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/det.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/diag.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/dot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/eye.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/filter.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/flatten.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/forEach.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/inv.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/kron.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/map.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/ones.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/partitionSelect.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/range.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/resize.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/size.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/sort.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/squeeze.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/subset.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/trace.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/transpose.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/matrix/zeros.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/combinations.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/distribution.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/factorial.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/gamma.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/kldivergence.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/multinomial.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/permutations.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/pickRandom.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/random.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/probability/randomInt.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/relational/compare.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/relational/deepEqual.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/relational/equal.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/relational/larger.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/relational/largerEq.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/relational/smaller.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/relational/smallerEq.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/relational/unequal.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/special/erf.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/mad.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/max.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/mean.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/median.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/min.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/mode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/prod.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/quantileSeq.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/std.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/sum.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/statistics/var.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/acos.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/acosh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/acot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/acoth.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/acsc.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/acsch.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/asec.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/asech.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/asin.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/asinh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/atan.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/atan2.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/atanh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/cos.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/cosh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/cot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/coth.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/csc.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/csch.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/sec.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/sech.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/sin.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/sinh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/tan.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/trigonometry/tanh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/units/to.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/clone.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/format.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/isInteger.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/isNaN.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/isNegative.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/isNumeric.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/isPositive.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/isPrime.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/isZero.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/print.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/function/utils/typeof.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/docs/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/function/compile.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/function/eval.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/function/help.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/function/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/function/parse.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/function/parser.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/keywords.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/AccessorNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/ArrayNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/AssignmentNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/BlockNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/ConditionalNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/ConstantNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/FunctionAssignmentNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/FunctionNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/IndexNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/Node.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/ObjectNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/OperatorNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/ParenthesisNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/RangeNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/SymbolNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/UpdateNode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/utils/access.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/node/utils/assign.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/operators.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/parse.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/concat.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/error.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/filter.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/forEach.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/index.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/map.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/max.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/mean.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/min.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/range.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/expression/transform/subset.transform.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/decomposition/lup.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/decomposition/slu.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/derivative.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/simplify.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/simplify/simplifyConstant.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/simplify/util.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/solver/lsolve.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/solver/lusolve.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/solver/usolve.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/solver/utils/solveValidation.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_amd.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_chol.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_counts.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_cumsum.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_dfs.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_ereach.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_etree.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_fkeep.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_flip.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_ipvec.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_leaf.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_lu.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_mark.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_marked.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_permute.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_post.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_reach.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_spsolve.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_sqr.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_symperm.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_tdfs.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/algebra/sparse/cs_unflip.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/abs.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/add.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/addScalar.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/cbrt.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/ceil.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/cube.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/divide.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/divideScalar.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/dotDivide.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/dotMultiply.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/dotPow.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/exp.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/fix.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/floor.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/gcd.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/hypot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/lcm.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/log.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/log10.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/mod.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/multiply.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/multiplyScalar.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/norm.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/nthRoot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/pow.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/round.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/sign.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/sqrt.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/square.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/subtract.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/unaryMinus.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/unaryPlus.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/arithmetic/xgcd.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/bitwise/bitAnd.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/bitwise/bitNot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/bitwise/bitOr.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/bitwise/bitXor.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/bitwise/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/bitwise/leftShift.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/bitwise/rightArithShift.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/bitwise/rightLogShift.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/combinatorics/bellNumbers.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/combinatorics/catalan.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/combinatorics/composition.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/combinatorics/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/combinatorics/stirlingS2.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/complex/arg.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/complex/conj.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/complex/im.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/complex/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/complex/re.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/geometry/distance.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/geometry/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/geometry/intersect.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/logical/and.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/logical/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/logical/not.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/logical/or.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/logical/xor.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/concat.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/cross.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/det.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/diag.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/dot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/eye.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/filter.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/flatten.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/forEach.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/inv.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/kron.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/map.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/ones.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/partitionSelect.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/range.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/resize.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/size.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/sort.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/squeeze.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/subset.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/trace.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/transpose.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/matrix/zeros.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/combinations.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/distribution.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/factorial.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/gamma.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/kldivergence.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/multinomial.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/permutations.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/pickRandom.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/random.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/probability/randomInt.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/compare.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/deepEqual.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/equal.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/equalScalar.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/larger.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/largerEq.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/smaller.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/smallerEq.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/relational/unequal.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/special/erf.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/special/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/mad.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/max.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/mean.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/median.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/min.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/mode.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/prod.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/quantileSeq.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/std.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/sum.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/statistics/var.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/string/format.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/string/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/string/print.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/acos.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/acosh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/acot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/acoth.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/acsc.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/acsch.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/asec.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/asech.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/asin.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/asinh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/atan.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/atan2.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/atanh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/cos.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/cosh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/cot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/coth.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/csc.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/csch.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/sec.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/sech.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/sin.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/sinh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/tan.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/trigonometry/tanh.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/unit/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/unit/to.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/clone.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/isInteger.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/isNaN.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/isNegative.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/isNumeric.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/isPositive.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/isPrime.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/isZero.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/function/utils/typeof.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/header.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/json/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/json/reviver.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/bignumber/BigNumber.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/bignumber/function/bignumber.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/bignumber/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/boolean.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/chain/Chain.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/chain/function/chain.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/chain/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/complex/Complex.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/complex/function/complex.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/complex/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/fraction/Fraction.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/fraction/function/fraction.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/fraction/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/DenseMatrix.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/FibonacciHeap.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/ImmutableDenseMatrix.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/Matrix.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/MatrixIndex.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/Range.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/Spa.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/SparseMatrix.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/function/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/function/matrix.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/function/sparse.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/README.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm01.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm02.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm03.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm04.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm05.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm06.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm07.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm08.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm09.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm10.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm11.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm12.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm13.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/matrix/utils/algorithm14.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/number.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/resultset/ResultSet.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/resultset/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/string.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/unit/Unit.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/unit/function/createUnit.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/unit/function/splitUnit.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/unit/function/unit.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/unit/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/type/unit/physicalConstants.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/array.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/bitAnd.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/bitNot.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/bitOr.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/bitXor.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/bitwise.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/constants.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/formatter.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/leftShift.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/nearlyEqual.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/bignumber/rightArithShift.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/boolean.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/collection/containsCollections.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/collection/deepForEach.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/collection/deepMap.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/collection/isCollection.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/collection/reduce.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/collection/scatter.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/emitter.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/function.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/index.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/latex.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/number.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/object.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/string.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/utils/types.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/lib/version.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/package.json create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/README.md create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/approx.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/constants.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/core/config.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/core/import.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/core/index.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/deprecated.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/error/ArgumentsError.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/error/DimensionError.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/error/IndexError.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/error/index.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/Help.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/Parser.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/function/compile.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/function/eval.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/function/help.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/function/parse.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/function/parser.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/keywords.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/AccessorNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/ArrayNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/AssignmentNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/BlockNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/ConditionalNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/ConstantNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/FunctionAssignmentNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/FunctionNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/IndexNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/Node.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/ObjectNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/OperatorNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/ParenthesisNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/RangeNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/SymbolNode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/node/index.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/operators.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/expression/parse.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/algebra/decomposition/lup.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/algebra/decomposition/slu.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/algebra/derivative.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/algebra/simplify.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/algebra/solver/lsolve.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/algebra/solver/lusolve.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/algebra/solver/usolve.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/algebra/sparse/cs_amd.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/algebra/sparse/cs_lu.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/abs.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/add.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/addScalar.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/cbrt.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/ceil.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/cube.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/divide.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/dotDivide.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/dotMultiply.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/dotPow.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/exp.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/fix.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/floor.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/gcd.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/hypot.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/lcm.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/log.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/log10.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/mod.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/multiply.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/norm.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/nthRoot.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/pow.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/round.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/sign.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/sqrt.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/square.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/subtract.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/unaryMinus.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/unaryPlus.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/arithmetic/xgcd.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/bitwise/bitAnd.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/bitwise/bitNot.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/bitwise/bitOr.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/bitwise/bitXor.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/bitwise/leftShift.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/bitwise/rightArithShift.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/bitwise/rightLogShift.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/combinatorics/bellNumbers.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/combinatorics/catalan.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/combinatorics/composition.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/combinatorics/stirlingS2.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/complex/arg.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/complex/conj.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/complex/im.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/complex/re.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/geometry/distance.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/geometry/intersect.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/logical/and.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/logical/not.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/logical/or.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/logical/xor.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/concat.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/cross.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/det.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/diag.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/dot.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/eye.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/filter.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/flatten.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/forEach.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/inv.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/kron.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/map.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/ones.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/partitionSelect.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/range.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/resize.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/size.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/sort.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/squeeze.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/subset.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/trace.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/transpose.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/matrix/zeros.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/combinations.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/distribution.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/factorial.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/gamma.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/kldivergence.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/multinomial.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/permutations.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/pickRandom.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/random.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/probability/randomInt.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/relational/compare.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/relational/deepEqual.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/relational/equal.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/relational/larger.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/relational/largerEq.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/relational/smaller.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/relational/smallerEq.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/relational/unequal.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/special/erf.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/special/erf.values.json create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/mad.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/max.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/mean.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/median.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/min.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/mode.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/prod.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/quantileSeq.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/std.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/sum.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/statistics/var.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/string/format.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/string/print.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/acos.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/acosh.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/acot.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/acoth.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/acsc.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/acsch.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/asec.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/asech.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/asin.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/asinh.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/atan.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/atan2.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/atanh.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/cos.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/cosh.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/cot.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/coth.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/csc.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/csch.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/sec.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/sech.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/sin.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/sinh.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/tan.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/trigonometry/tanh.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/unit/to.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/utils/clone.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/utils/isInteger.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/utils/isNaN.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/utils/isNegative.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/utils/isNumeric.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/utils/isPositive.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/utils/isPrime.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/utils/isZero.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/function/utils/typeof.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/index.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/json/replacer.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/json/reviver.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/pi_bailey-borwein-plouffe.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/pi_machin.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/test.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/test.min.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/test_bignumber.html create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/bignumber/BigNumber.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/bignumber/function/bignumber.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/boolean.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/chain/Chain.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/chain/function/chain.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/complex/Complex.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/complex/function/complex.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/fraction/Fraction.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/fraction/function/fraction.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/DenseMatrix.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/FibonacciHeap.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/ImmutableDenseMatrix.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/Index.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/Matrix.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/Range.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/Spa.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/SparseMatrix.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/collection.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/function/index.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/function/matrix.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/function/sparse.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/utils/deepForEach.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/utils/deepMap.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/utils/isCollection.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/matrix/utils/reduce.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/number.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/resultset/ResultSet.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/string.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/unit/Unit.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/unit/function/createUnit.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/unit/function/splitUnit.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/unit/function/unit.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/type/unit/physicalConstants.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/array.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/bignumber/constants.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/bignumber/formatter.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/bignumber/nearlyEqual.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/boolean.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/function.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/latex.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/number.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/object.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/string.test.js create mode 100644 nodered/rootfs/data/node_modules/mathjs/test/utils/types.test.js create mode 100644 nodered/rootfs/data/node_modules/mem/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/mem/index.js create mode 100644 nodered/rootfs/data/node_modules/mem/license create mode 100644 nodered/rootfs/data/node_modules/mem/package.json create mode 100644 nodered/rootfs/data/node_modules/mem/readme.md create mode 100644 nodered/rootfs/data/node_modules/mime-db/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/mime-db/LICENSE create mode 100644 nodered/rootfs/data/node_modules/mime-db/README.md create mode 100644 nodered/rootfs/data/node_modules/mime-db/db.json create mode 100644 nodered/rootfs/data/node_modules/mime-db/index.js create mode 100644 nodered/rootfs/data/node_modules/mime-db/package.json create mode 100644 nodered/rootfs/data/node_modules/mime-types/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/mime-types/LICENSE create mode 100644 nodered/rootfs/data/node_modules/mime-types/README.md create mode 100644 nodered/rootfs/data/node_modules/mime-types/index.js create mode 100644 nodered/rootfs/data/node_modules/mime-types/package.json create mode 100644 nodered/rootfs/data/node_modules/mime/.npmignore create mode 100644 nodered/rootfs/data/node_modules/mime/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/mime/LICENSE create mode 100644 nodered/rootfs/data/node_modules/mime/README.md create mode 100755 nodered/rootfs/data/node_modules/mime/cli.js create mode 100644 nodered/rootfs/data/node_modules/mime/mime.js create mode 100644 nodered/rootfs/data/node_modules/mime/package.json create mode 100755 nodered/rootfs/data/node_modules/mime/src/build.js create mode 100644 nodered/rootfs/data/node_modules/mime/src/test.js create mode 100644 nodered/rootfs/data/node_modules/mime/types.json create mode 100644 nodered/rootfs/data/node_modules/mimic-fn/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/mimic-fn/index.js create mode 100644 nodered/rootfs/data/node_modules/mimic-fn/license create mode 100644 nodered/rootfs/data/node_modules/mimic-fn/package.json create mode 100644 nodered/rootfs/data/node_modules/mimic-fn/readme.md create mode 100644 nodered/rootfs/data/node_modules/minimist/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/minimist/LICENSE create mode 100644 nodered/rootfs/data/node_modules/minimist/example/parse.js create mode 100644 nodered/rootfs/data/node_modules/minimist/index.js create mode 100644 nodered/rootfs/data/node_modules/minimist/package.json create mode 100644 nodered/rootfs/data/node_modules/minimist/readme.markdown create mode 100644 nodered/rootfs/data/node_modules/minimist/test/dash.js create mode 100644 nodered/rootfs/data/node_modules/minimist/test/default_bool.js create mode 100644 nodered/rootfs/data/node_modules/minimist/test/dotted.js create mode 100644 nodered/rootfs/data/node_modules/minimist/test/long.js create mode 100644 nodered/rootfs/data/node_modules/minimist/test/parse.js create mode 100644 nodered/rootfs/data/node_modules/minimist/test/parse_modified.js create mode 100644 nodered/rootfs/data/node_modules/minimist/test/short.js create mode 100644 nodered/rootfs/data/node_modules/minimist/test/whitespace.js create mode 100644 nodered/rootfs/data/node_modules/moment-parseformat/LICENSE.md create mode 100644 nodered/rootfs/data/node_modules/moment-parseformat/README.md create mode 100644 nodered/rootfs/data/node_modules/moment-parseformat/dist/moment-parseformat.js create mode 100644 nodered/rootfs/data/node_modules/moment-parseformat/index.js create mode 100644 nodered/rootfs/data/node_modules/moment-parseformat/lib/parseformat.js create mode 100644 nodered/rootfs/data/node_modules/moment-parseformat/package.json create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/LICENSE create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/README.md create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.min.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/builds/moment-timezone-with-data-1970-2030.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/builds/moment-timezone-with-data-1970-2030.min.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.min.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/builds/moment-timezone-with-data.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/builds/moment-timezone-with-data.min.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/builds/moment-timezone.min.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/changelog.md create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/composer.json create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/data/meta/latest.json create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/data/packed/latest.json create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/index.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/moment-timezone-utils.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/moment-timezone.js create mode 100644 nodered/rootfs/data/node_modules/moment-timezone/package.json create mode 100644 nodered/rootfs/data/node_modules/moment/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/moment/LICENSE create mode 100644 nodered/rootfs/data/node_modules/moment/README.md create mode 100644 nodered/rootfs/data/node_modules/moment/ender.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/af.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ar-dz.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ar-kw.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ar-ly.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ar-ma.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ar-sa.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ar-tn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ar.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/az.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/be.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/bg.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/bm.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/bn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/bo.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/br.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/bs.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ca.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/cs.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/cv.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/cy.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/da.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/de-at.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/de-ch.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/de.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/dv.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/el.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/en-SG.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/en-au.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/en-ca.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/en-gb.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/en-ie.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/en-il.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/en-nz.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/eo.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/es-do.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/es-us.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/es.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/et.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/eu.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/fa.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/fi.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/fo.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/fr-ca.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/fr-ch.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/fr.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/fy.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ga.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/gd.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/gl.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/gom-latn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/gu.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/he.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/hi.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/hr.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/hu.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/hy-am.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/id.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/is.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/it-ch.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/it.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ja.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/jv.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ka.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/kk.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/km.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/kn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ko.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ku.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ky.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/lb.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/lo.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/lt.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/lv.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/me.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/mi.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/mk.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ml.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/mn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/mr.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ms-my.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ms.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/mt.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/my.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/nb.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ne.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/nl-be.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/nl.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/nn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/pa-in.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/pl.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/pt-br.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/pt.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ro.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ru.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/sd.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/se.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/si.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/sk.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/sl.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/sq.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/sr-cyrl.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/sr.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ss.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/sv.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/sw.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ta.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/te.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/tet.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/tg.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/th.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/tl-ph.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/tlh.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/tr.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/tzl.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/tzm-latn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/tzm.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ug-cn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/uk.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/ur.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/uz-latn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/uz.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/vi.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/x-pseudo.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/yo.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/zh-cn.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/zh-hk.js create mode 100644 nodered/rootfs/data/node_modules/moment/locale/zh-tw.js create mode 100644 nodered/rootfs/data/node_modules/moment/min/locales.js create mode 100644 nodered/rootfs/data/node_modules/moment/min/locales.min.js create mode 100644 nodered/rootfs/data/node_modules/moment/min/moment-with-locales.js create mode 100644 nodered/rootfs/data/node_modules/moment/min/moment-with-locales.min.js create mode 100644 nodered/rootfs/data/node_modules/moment/min/moment.min.js create mode 100644 nodered/rootfs/data/node_modules/moment/moment.d.ts create mode 100644 nodered/rootfs/data/node_modules/moment/moment.js create mode 100644 nodered/rootfs/data/node_modules/moment/package.js create mode 100644 nodered/rootfs/data/node_modules/moment/package.json create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/check-overflow.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/date-from-array.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/from-anything.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/from-array.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/from-object.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/from-string-and-array.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/from-string-and-format.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/from-string.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/local.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/parsing-flags.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/utc.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/create/valid.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/abs.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/add-subtract.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/as.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/bubble.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/clone.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/constructor.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/create.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/duration.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/get.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/humanize.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/iso-string.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/prototype.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/duration/valid.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/format/format.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/base-config.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/calendar.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/constructor.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/en.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/formats.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/invalid.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/lists.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/locale.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/locales.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/ordinal.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/pre-post-format.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/prototype.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/relative.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/locale/set.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/add-subtract.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/calendar.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/clone.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/compare.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/constructor.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/creation-data.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/diff.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/format.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/from.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/get-set.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/locale.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/min-max.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/moment.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/now.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/prototype.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/start-end-of.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/to-type.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/to.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/moment/valid.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/parse/regex.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/parse/token.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/aliases.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/constants.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/day-of-month.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/day-of-week.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/day-of-year.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/hour.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/millisecond.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/minute.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/month.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/offset.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/priorities.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/quarter.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/second.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/timestamp.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/timezone.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/units.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/week-calendar-utils.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/week-year.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/week.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/units/year.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/abs-ceil.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/abs-floor.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/abs-round.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/compare-arrays.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/defaults.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/deprecate.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/extend.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/has-own-prop.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/hooks.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/index-of.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/is-array.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/is-date.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/is-function.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/is-number.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/is-object-empty.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/is-object.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/is-undefined.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/keys.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/map.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/mod.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/some.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/to-int.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/lib/utils/zero-fill.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/af.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ar-dz.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ar-kw.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ar-ly.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ar-ma.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ar-sa.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ar-tn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ar.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/az.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/be.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/bg.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/bm.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/bn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/bo.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/br.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/bs.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ca.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/cs.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/cv.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/cy.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/da.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/de-at.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/de-ch.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/de.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/dv.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/el.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/en-SG.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/en-au.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/en-ca.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/en-gb.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/en-ie.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/en-il.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/en-nz.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/eo.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/es-do.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/es-us.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/es.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/et.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/eu.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/fa.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/fi.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/fo.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/fr-ca.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/fr-ch.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/fr.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/fy.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ga.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/gd.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/gl.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/gom-latn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/gu.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/he.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/hi.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/hr.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/hu.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/hy-am.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/id.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/is.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/it-ch.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/it.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ja.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/jv.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ka.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/kk.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/km.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/kn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ko.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ku.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ky.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/lb.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/lo.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/lt.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/lv.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/me.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/mi.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/mk.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ml.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/mn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/mr.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ms-my.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ms.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/mt.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/my.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/nb.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ne.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/nl-be.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/nl.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/nn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/pa-in.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/pl.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/pt-br.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/pt.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ro.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ru.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/sd.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/se.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/si.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/sk.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/sl.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/sq.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/sr-cyrl.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/sr.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ss.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/sv.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/sw.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ta.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/te.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/tet.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/tg.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/th.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/tl-ph.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/tlh.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/tr.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/tzl.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/tzm-latn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/tzm.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ug-cn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/uk.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/ur.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/uz-latn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/uz.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/vi.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/x-pseudo.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/yo.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/zh-cn.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/zh-hk.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/locale/zh-tw.js create mode 100644 nodered/rootfs/data/node_modules/moment/src/moment.js create mode 100644 nodered/rootfs/data/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/mysql/Changes.md create mode 100644 nodered/rootfs/data/node_modules/mysql/License create mode 100644 nodered/rootfs/data/node_modules/mysql/Readme.md create mode 100644 nodered/rootfs/data/node_modules/mysql/index.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/Connection.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/ConnectionConfig.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/Pool.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/PoolCluster.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/PoolConfig.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/PoolConnection.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/PoolNamespace.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/PoolSelector.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/Auth.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/BufferList.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/PacketHeader.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/PacketWriter.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/Parser.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/Protocol.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/ResultSet.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/SqlString.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/Timer.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/constants/charsets.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/constants/client.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/constants/errors.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/constants/field_flags.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/constants/server_status.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/constants/ssl_profiles.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/constants/types.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/ComPingPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/ComQueryPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/ComQuitPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/EmptyPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/EofPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/ErrorPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/Field.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/FieldPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/OkPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/RowDataPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/StatisticsPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/packets/index.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/sequences/ChangeUser.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/sequences/Handshake.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/sequences/Ping.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/sequences/Query.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/sequences/Quit.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/sequences/Sequence.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/sequences/Statistics.js create mode 100644 nodered/rootfs/data/node_modules/mysql/lib/protocol/sequences/index.js create mode 100644 nodered/rootfs/data/node_modules/mysql/node_modules/safe-buffer/LICENSE create mode 100644 nodered/rootfs/data/node_modules/mysql/node_modules/safe-buffer/README.md create mode 100644 nodered/rootfs/data/node_modules/mysql/node_modules/safe-buffer/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/mysql/node_modules/safe-buffer/index.js create mode 100644 nodered/rootfs/data/node_modules/mysql/node_modules/safe-buffer/package.json create mode 100644 nodered/rootfs/data/node_modules/mysql/package.json create mode 100644 nodered/rootfs/data/node_modules/negotiator/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/negotiator/LICENSE create mode 100644 nodered/rootfs/data/node_modules/negotiator/README.md create mode 100644 nodered/rootfs/data/node_modules/negotiator/index.js create mode 100644 nodered/rootfs/data/node_modules/negotiator/lib/charset.js create mode 100644 nodered/rootfs/data/node_modules/negotiator/lib/encoding.js create mode 100644 nodered/rootfs/data/node_modules/negotiator/lib/language.js create mode 100644 nodered/rootfs/data/node_modules/negotiator/lib/mediaType.js create mode 100644 nodered/rootfs/data/node_modules/negotiator/package.json create mode 100644 nodered/rootfs/data/node_modules/nice-try/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/nice-try/LICENSE create mode 100644 nodered/rootfs/data/node_modules/nice-try/README.md create mode 100644 nodered/rootfs/data/node_modules/nice-try/package.json create mode 100644 nodered/rootfs/data/node_modules/nice-try/src/index.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/docker/influxdb.conf create mode 100755 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/docker/run.sh create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/icons/influxdb.png create mode 100755 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/influxdb.html create mode 100755 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/influxdb.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/locales/en-US/influxdb.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/test-flows/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/test-flows/influxdb.conf create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/test-flows/ssl/influxdb-selfsigned.crt create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/test-flows/ssl/influxdb-selfsigned.key create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-influxdb/test-flows/test-flows.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/.eslintrc.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/CODE_OF_CONDUCT.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/apache2-license.txt create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/examples/invalid_input_data_types.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/examples/non-existent_input_property.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/examples/numeric_inputs.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/examples/output_formats.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/examples/utc_offsets.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/moment/nrhumanizer.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/moment/nrhumanizer.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/moment/nrmoment.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/moment/nrmoment.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-moment/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/.msg_speed.js.swp create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/.npmignore create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/icons/speed.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/Startup.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/estimation.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/speed1.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/speed2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/speed3.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/speed4.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/speed_chain.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/speed_chart.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/speed_parallel.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/startup_ignored.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/images/startup_status.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/msg_speed.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/msg_speed.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-msg-speed/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/.idea/misc.xml create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/.idea/modules.xml create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/.idea/node-red-contrib-telegrambot-home.iml create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/.idea/vcs.xml create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/.idea/workspace.xml create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/docker-compose.yml create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramCommandBotMessage.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramCommandFlow.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramDynamicPayloadBotMessage.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramDynamicPayloadFlow.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramDynamicPayloadNode.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramNotifyBotMessage.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramNotifyFlow.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramStaticPayloadBotMessage.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramStaticPayloadFlow.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramStaticPayloadNode.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramSwitchBotMessage.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/images/TelegramSwitchFlow.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/lib/utils.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/dist/debug.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/node.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/src/browser.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/src/common.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/src/index.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/debug/src/node.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/.github/ISSUE_TEMPLATE.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/.github/PULL_REQUEST_TEMPLATE.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/CODE_OF_CONDUCT.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/LICENSE.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/doc/api.hbs create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/doc/api.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/doc/experimental.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/doc/help.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/doc/tutorials.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/doc/usage.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/index.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/lib/errors.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/lib/telegram.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/lib/telegramPolling.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/lib/telegramWebHook.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/src/errors.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/src/telegram.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/src/telegramPolling.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/node-telegram-bot-api/src/telegramWebHook.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/pump/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/pump/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/pump/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/pump/index.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/pump/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/pump/test-browser.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/node_modules/pump/test-node.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/bot-config/bot-config.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/bot-config/bot-config.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/command/command.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/command/command.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/command/icons/telegram.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/notify/icons/telegram.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/notify/notify.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/notify/notify.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/payload/icons/telegram.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/payload/payload.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/payload/payload.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/switch/switch.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/nodes/switch/switch.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot-home/yarn.lock create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/command.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/echo.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/editinlinekeyboard.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/inlinekeyboard.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/inlinequery.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/keyboard.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/livelocation.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/onreplymessage.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/replytomessage.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/sendchataction.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/sendcontacttochat.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/sendkeyboardtochat.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/sendmediagroup.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/sendmessagetochat.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/sendphoto.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/simplebot.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/examples/unauthorizedaccess.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotConfirmationMessage.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotConfirmationMessage2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotConfirmationMessage3.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotEcho.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotEditInlineKeyboard1.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotEditInlineKeyboard2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotEditInlineKeyboard3.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotEditInlineKeyboard4.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotEditInlineKeyboard5.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotEditInlineKeyboard6.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotExample.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotHelp.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotHelp2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotInlineKeyboard1.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotInlineKeyboard2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotInlineKeyboard3.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotInlineQuery1.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotInlineQuery2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotLiveLocation.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotLocation.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotOnReplyMessage.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotOnReplyMessage2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotOnReplyMessage3.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotSecurity.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotSendContact.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotSendContact2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotSendPhoto.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotSendPhoto2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotSendToChat.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotUnauthorizedAccess.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/images/TelegramBotUnauthorizedAccess2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/telegrambot/99-telegrambot.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/telegrambot/99-telegrambot.js create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/telegrambot/icons/telegram.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-telegrambot/telegrambot/icons/telegramc.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/doc/example1.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/doc/example2.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/doc/example3.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/doc/example4.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/icons/throttle.png create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/readme.md create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/throttle.html create mode 100644 nodered/rootfs/data/node_modules/node-red-contrib-throttle/throttle.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/.gitattributes create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/.jscsrc create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/.jshintignore create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/.jshintrc create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/Charts.md create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/ISSUE_TEMPLATE.md create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/config-fields.md create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/css/app.min.css create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/css/app.min.less create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/css/gridstack-extra.min.css create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/css/gridstack.min.css create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/dashboard.appcache create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/fonts/MaterialIcons-Regular.woff create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/fonts/MaterialIcons-Regular.woff2 create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/fonts/fontawesome-webfont.woff create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/fonts/fontawesome-webfont.woff2 create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/fonts/weather-icons-lite.woff create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/fonts/weather-icons-lite.woff2 create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/i18n.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/icon120x120.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/icon192x192.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/icon64x64.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/index.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/js/app.min.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/js/gridstack.jQueryUI.min.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/js/gridstack.min.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/js/lodash.min.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/dist/js/tinycolor-min.js create mode 100755 nodered/rootfs/data/node_modules/node-red-dashboard/fixfa.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/gulpfile.old create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/index.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/license.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_button.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_chart.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_colour_picker.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_date_picker.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_dropdown.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_form.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_gauge.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_numeric.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_slider.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_switch.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_template.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_text.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/icons/ui_toast.png create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/en-US/ui_base.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/en-US/ui_group.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/en-US/ui_link.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/en-US/ui_tab.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/en-US/ui_template.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/en-US/ui_ui_control.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/ja/ui_base.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/ja/ui_group.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/ja/ui_link.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/ja/ui_tab.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/ja/ui_template.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/ja/ui_template.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/ja/ui_ui_control.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/locales/ja/ui_ui_control.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_audio.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_audio.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_base.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_base.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_button.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_button.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_chart.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_chart.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_colour_picker.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_colour_picker.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_date_picker.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_date_picker.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_dropdown.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_dropdown.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_form.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_form.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_gauge.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_gauge.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_group.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_group.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_link.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_link.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_numeric.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_numeric.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_slider.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_slider.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_spacer.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_spacer.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_switch.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_switch.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_tab.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_tab.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_template.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_template.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_text.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_text.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_text_input.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_text_input.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_toast.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_toast.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_ui_control.html create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/nodes/ui_ui_control.js create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-dashboard/ui.js create mode 100644 nodered/rootfs/data/node_modules/node-red-node-email/61-email.html create mode 100644 nodered/rootfs/data/node_modules/node-red-node-email/61-email.js create mode 100644 nodered/rootfs/data/node_modules/node-red-node-email/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-node-email/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-node-email/locales/en-US/61-email.html create mode 100644 nodered/rootfs/data/node_modules/node-red-node-email/locales/en-US/61-email.json create mode 100644 nodered/rootfs/data/node_modules/node-red-node-email/locales/ja/61-email.html create mode 100644 nodered/rootfs/data/node_modules/node-red-node-email/locales/ja/61-email.json create mode 100644 nodered/rootfs/data/node_modules/node-red-node-email/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-node-mysql/68-mysql.html create mode 100644 nodered/rootfs/data/node_modules/node-red-node-mysql/68-mysql.js create mode 100644 nodered/rootfs/data/node_modules/node-red-node-mysql/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-node-mysql/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-node-mysql/package.json create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/28-tail.html create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/28-tail.js create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/README.md create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/locales/en-US/28-tail.html create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/locales/en-US/28-tail.json create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/locales/ja/28-tail.html create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/locales/ja/28-tail.json create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/locales/zh-CN/28-tail.json create mode 100644 nodered/rootfs/data/node_modules/node-red-node-tail/package.json create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/.github/ISSUE_TEMPLATE.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/.github/PULL_REQUEST_TEMPLATE.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/CODE_OF_CONDUCT.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/LICENSE.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/README.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/doc/api.hbs create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/doc/api.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/doc/experimental.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/doc/help.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/doc/tutorials.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/doc/usage.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/index.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/lib/errors.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/lib/telegram.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/lib/telegramPolling.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/lib/telegramWebHook.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/README.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/dist/debug.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/node.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/package.json create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/src/browser.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/src/common.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/src/index.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/debug/src/node.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/pump/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/pump/LICENSE create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/pump/README.md create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/pump/index.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/pump/package.json create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/pump/test-browser.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/node_modules/pump/test-node.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/package.json create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/src/errors.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/src/telegram.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/src/telegramPolling.js create mode 100644 nodered/rootfs/data/node_modules/node-telegram-bot-api/src/telegramWebHook.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/.prettierrc.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/nodemailer/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/nodemailer/LICENSE create mode 100644 nodered/rootfs/data/node_modules/nodemailer/README.md create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/addressparser/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/base64/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/dkim/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/dkim/message-parser.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/dkim/relaxed-body.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/dkim/sign.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/fetch/cookies.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/fetch/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/json-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/mail-composer/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/mailer/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/mailer/mail-message.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/mime-funcs/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/mime-funcs/mime-types.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/mime-node/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/mime-node/last-newline.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/nodemailer.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/qp/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/sendmail-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/sendmail-transport/le-unix.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/sendmail-transport/le-windows.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/ses-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/shared/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/smtp-connection/data-stream.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/smtp-connection/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/smtp-pool/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/smtp-pool/pool-resource.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/smtp-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/stream-transport/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/well-known/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/well-known/services.json create mode 100644 nodered/rootfs/data/node_modules/nodemailer/lib/xoauth2/index.js create mode 100644 nodered/rootfs/data/node_modules/nodemailer/package.json create mode 100644 nodered/rootfs/data/node_modules/npm-run-path/index.js create mode 100644 nodered/rootfs/data/node_modules/npm-run-path/license create mode 100644 nodered/rootfs/data/node_modules/npm-run-path/package.json create mode 100644 nodered/rootfs/data/node_modules/npm-run-path/readme.md create mode 100644 nodered/rootfs/data/node_modules/oauth-sign/LICENSE create mode 100644 nodered/rootfs/data/node_modules/oauth-sign/README.md create mode 100644 nodered/rootfs/data/node_modules/oauth-sign/index.js create mode 100644 nodered/rootfs/data/node_modules/oauth-sign/package.json create mode 100644 nodered/rootfs/data/node_modules/object-component/.npmignore create mode 100644 nodered/rootfs/data/node_modules/object-component/History.md create mode 100644 nodered/rootfs/data/node_modules/object-component/Makefile create mode 100644 nodered/rootfs/data/node_modules/object-component/Readme.md create mode 100644 nodered/rootfs/data/node_modules/object-component/component.json create mode 100644 nodered/rootfs/data/node_modules/object-component/index.js create mode 100644 nodered/rootfs/data/node_modules/object-component/package.json create mode 100644 nodered/rootfs/data/node_modules/object-component/test/object.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/.eslintignore create mode 100644 nodered/rootfs/data/node_modules/object-inspect/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/object-inspect/.nycrc create mode 100644 nodered/rootfs/data/node_modules/object-inspect/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/object-inspect/LICENSE create mode 100644 nodered/rootfs/data/node_modules/object-inspect/example/all.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/example/circular.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/example/fn.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/example/inspect.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/index.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/package.json create mode 100644 nodered/rootfs/data/node_modules/object-inspect/readme.markdown create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test-core-js.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/bigint.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/browser/dom.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/circular.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/deep.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/element.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/err.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/fn.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/has.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/holes.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/inspect.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/lowbyte.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/number.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/quoteStyle.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/undef.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/test/values.js create mode 100644 nodered/rootfs/data/node_modules/object-inspect/util.inspect.js create mode 100644 nodered/rootfs/data/node_modules/object-keys/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/object-keys/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/object-keys/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/object-keys/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/object-keys/LICENSE create mode 100644 nodered/rootfs/data/node_modules/object-keys/README.md create mode 100644 nodered/rootfs/data/node_modules/object-keys/implementation.js create mode 100644 nodered/rootfs/data/node_modules/object-keys/index.js create mode 100644 nodered/rootfs/data/node_modules/object-keys/isArguments.js create mode 100644 nodered/rootfs/data/node_modules/object-keys/package.json create mode 100644 nodered/rootfs/data/node_modules/object-keys/test/index.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/object.assign/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/object.assign/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/object.assign/LICENSE create mode 100644 nodered/rootfs/data/node_modules/object.assign/README.md create mode 100644 nodered/rootfs/data/node_modules/object.assign/auto.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/dist/browser.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/hasSymbols.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/implementation.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/index.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/package.json create mode 100644 nodered/rootfs/data/node_modules/object.assign/polyfill.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/shim.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/test.sh create mode 100644 nodered/rootfs/data/node_modules/object.assign/test/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/object.assign/test/index.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/test/native.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/test/shimmed.js create mode 100644 nodered/rootfs/data/node_modules/object.assign/test/tests.js create mode 100644 nodered/rootfs/data/node_modules/on-finished/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/on-finished/LICENSE create mode 100644 nodered/rootfs/data/node_modules/on-finished/README.md create mode 100644 nodered/rootfs/data/node_modules/on-finished/index.js create mode 100644 nodered/rootfs/data/node_modules/on-finished/package.json create mode 100644 nodered/rootfs/data/node_modules/on-headers/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/on-headers/LICENSE create mode 100644 nodered/rootfs/data/node_modules/on-headers/README.md create mode 100644 nodered/rootfs/data/node_modules/on-headers/index.js create mode 100644 nodered/rootfs/data/node_modules/on-headers/package.json create mode 100644 nodered/rootfs/data/node_modules/once/LICENSE create mode 100644 nodered/rootfs/data/node_modules/once/README.md create mode 100644 nodered/rootfs/data/node_modules/once/once.js create mode 100644 nodered/rootfs/data/node_modules/once/package.json create mode 100644 nodered/rootfs/data/node_modules/optimist/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/optimist/LICENSE create mode 100644 nodered/rootfs/data/node_modules/optimist/example/bool.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/boolean_double.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/boolean_single.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/default_hash.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/default_singles.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/divide.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/line_count.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/line_count_options.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/line_count_wrap.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/nonopt.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/reflect.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/short.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/string.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/usage-options.js create mode 100644 nodered/rootfs/data/node_modules/optimist/example/xup.js create mode 100644 nodered/rootfs/data/node_modules/optimist/index.js create mode 100644 nodered/rootfs/data/node_modules/optimist/package.json create mode 100644 nodered/rootfs/data/node_modules/optimist/readme.markdown create mode 100644 nodered/rootfs/data/node_modules/optimist/test/_.js create mode 100644 nodered/rootfs/data/node_modules/optimist/test/_/argv.js create mode 100755 nodered/rootfs/data/node_modules/optimist/test/_/bin.js create mode 100644 nodered/rootfs/data/node_modules/optimist/test/dash.js create mode 100644 nodered/rootfs/data/node_modules/optimist/test/parse.js create mode 100644 nodered/rootfs/data/node_modules/optimist/test/parse_modified.js create mode 100644 nodered/rootfs/data/node_modules/optimist/test/short.js create mode 100644 nodered/rootfs/data/node_modules/optimist/test/usage.js create mode 100644 nodered/rootfs/data/node_modules/optimist/test/whitespace.js create mode 100644 nodered/rootfs/data/node_modules/os-locale/index.js create mode 100644 nodered/rootfs/data/node_modules/os-locale/license create mode 100644 nodered/rootfs/data/node_modules/os-locale/package.json create mode 100644 nodered/rootfs/data/node_modules/os-locale/readme.md create mode 100644 nodered/rootfs/data/node_modules/p-defer/index.js create mode 100644 nodered/rootfs/data/node_modules/p-defer/license create mode 100644 nodered/rootfs/data/node_modules/p-defer/package.json create mode 100644 nodered/rootfs/data/node_modules/p-defer/readme.md create mode 100644 nodered/rootfs/data/node_modules/p-finally/index.js create mode 100644 nodered/rootfs/data/node_modules/p-finally/license create mode 100644 nodered/rootfs/data/node_modules/p-finally/package.json create mode 100644 nodered/rootfs/data/node_modules/p-finally/readme.md create mode 100644 nodered/rootfs/data/node_modules/p-is-promise/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/p-is-promise/index.js create mode 100644 nodered/rootfs/data/node_modules/p-is-promise/license create mode 100644 nodered/rootfs/data/node_modules/p-is-promise/package.json create mode 100644 nodered/rootfs/data/node_modules/p-is-promise/readme.md create mode 100644 nodered/rootfs/data/node_modules/parseqs/.npmignore create mode 100644 nodered/rootfs/data/node_modules/parseqs/LICENSE create mode 100644 nodered/rootfs/data/node_modules/parseqs/Makefile create mode 100644 nodered/rootfs/data/node_modules/parseqs/README.md create mode 100644 nodered/rootfs/data/node_modules/parseqs/index.js create mode 100644 nodered/rootfs/data/node_modules/parseqs/package.json create mode 100644 nodered/rootfs/data/node_modules/parseqs/test.js create mode 100644 nodered/rootfs/data/node_modules/parseuri/.npmignore create mode 100644 nodered/rootfs/data/node_modules/parseuri/History.md create mode 100644 nodered/rootfs/data/node_modules/parseuri/LICENSE create mode 100644 nodered/rootfs/data/node_modules/parseuri/Makefile create mode 100644 nodered/rootfs/data/node_modules/parseuri/README.md create mode 100644 nodered/rootfs/data/node_modules/parseuri/index.js create mode 100644 nodered/rootfs/data/node_modules/parseuri/package.json create mode 100644 nodered/rootfs/data/node_modules/parseuri/test.js create mode 100644 nodered/rootfs/data/node_modules/parseurl/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/parseurl/LICENSE create mode 100644 nodered/rootfs/data/node_modules/parseurl/README.md create mode 100644 nodered/rootfs/data/node_modules/parseurl/index.js create mode 100644 nodered/rootfs/data/node_modules/parseurl/package.json create mode 100644 nodered/rootfs/data/node_modules/path-key/index.js create mode 100644 nodered/rootfs/data/node_modules/path-key/license create mode 100644 nodered/rootfs/data/node_modules/path-key/package.json create mode 100644 nodered/rootfs/data/node_modules/path-key/readme.md create mode 100644 nodered/rootfs/data/node_modules/performance-now/.npmignore create mode 100644 nodered/rootfs/data/node_modules/performance-now/.tm_properties create mode 100644 nodered/rootfs/data/node_modules/performance-now/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/performance-now/README.md create mode 100644 nodered/rootfs/data/node_modules/performance-now/lib/performance-now.js create mode 100644 nodered/rootfs/data/node_modules/performance-now/lib/performance-now.js.map create mode 100644 nodered/rootfs/data/node_modules/performance-now/license.txt create mode 100644 nodered/rootfs/data/node_modules/performance-now/package.json create mode 100644 nodered/rootfs/data/node_modules/performance-now/src/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/performance-now/src/performance-now.coffee create mode 100644 nodered/rootfs/data/node_modules/performance-now/test/mocha.opts create mode 100644 nodered/rootfs/data/node_modules/performance-now/test/performance-now.coffee create mode 100644 nodered/rootfs/data/node_modules/performance-now/test/scripts.coffee create mode 100755 nodered/rootfs/data/node_modules/performance-now/test/scripts/delayed-call.coffee create mode 100755 nodered/rootfs/data/node_modules/performance-now/test/scripts/delayed-require.coffee create mode 100755 nodered/rootfs/data/node_modules/performance-now/test/scripts/difference.coffee create mode 100755 nodered/rootfs/data/node_modules/performance-now/test/scripts/initial-value.coffee create mode 100644 nodered/rootfs/data/node_modules/poplib/CHANGELOG create mode 100644 nodered/rootfs/data/node_modules/poplib/LICENSE create mode 100644 nodered/rootfs/data/node_modules/poplib/README.md create mode 100644 nodered/rootfs/data/node_modules/poplib/demos/demo.js create mode 100644 nodered/rootfs/data/node_modules/poplib/demos/retrieve-all.js create mode 100644 nodered/rootfs/data/node_modules/poplib/main.js create mode 100644 nodered/rootfs/data/node_modules/poplib/package.json create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/apop.js create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/apop.sh create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/basic.js create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/basic.sh create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/login.js create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/login.sh create mode 100755 nodered/rootfs/data/node_modules/poplib/tests/runner.sh create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/sasl.js create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/sasl.sh create mode 100755 nodered/rootfs/data/node_modules/poplib/tests/sendmail.sh create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/stls.js create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/stls.sh create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/tls.js create mode 100644 nodered/rootfs/data/node_modules/poplib/tests/tls.sh create mode 100644 nodered/rootfs/data/node_modules/process-nextick-args/index.js create mode 100644 nodered/rootfs/data/node_modules/process-nextick-args/license.md create mode 100644 nodered/rootfs/data/node_modules/process-nextick-args/package.json create mode 100644 nodered/rootfs/data/node_modules/process-nextick-args/readme.md create mode 100644 nodered/rootfs/data/node_modules/psl/LICENSE create mode 100644 nodered/rootfs/data/node_modules/psl/README.md create mode 100644 nodered/rootfs/data/node_modules/psl/browserstack-logo.svg create mode 100644 nodered/rootfs/data/node_modules/psl/data/rules.json create mode 100644 nodered/rootfs/data/node_modules/psl/dist/psl.js create mode 100644 nodered/rootfs/data/node_modules/psl/dist/psl.min.js create mode 100644 nodered/rootfs/data/node_modules/psl/index.js create mode 100644 nodered/rootfs/data/node_modules/psl/package.json create mode 100644 nodered/rootfs/data/node_modules/pump/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/pump/LICENSE create mode 100644 nodered/rootfs/data/node_modules/pump/README.md create mode 100644 nodered/rootfs/data/node_modules/pump/index.js create mode 100644 nodered/rootfs/data/node_modules/pump/package.json create mode 100644 nodered/rootfs/data/node_modules/pump/test-browser.js create mode 100644 nodered/rootfs/data/node_modules/pump/test-node.js create mode 100644 nodered/rootfs/data/node_modules/punycode/LICENSE-MIT.txt create mode 100644 nodered/rootfs/data/node_modules/punycode/README.md create mode 100644 nodered/rootfs/data/node_modules/punycode/package.json create mode 100644 nodered/rootfs/data/node_modules/punycode/punycode.es6.js create mode 100644 nodered/rootfs/data/node_modules/punycode/punycode.js create mode 100644 nodered/rootfs/data/node_modules/qs/.editorconfig create mode 100644 nodered/rootfs/data/node_modules/qs/.eslintignore create mode 100644 nodered/rootfs/data/node_modules/qs/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/qs/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/qs/LICENSE create mode 100644 nodered/rootfs/data/node_modules/qs/README.md create mode 100644 nodered/rootfs/data/node_modules/qs/dist/qs.js create mode 100644 nodered/rootfs/data/node_modules/qs/lib/formats.js create mode 100644 nodered/rootfs/data/node_modules/qs/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/qs/lib/parse.js create mode 100644 nodered/rootfs/data/node_modules/qs/lib/stringify.js create mode 100644 nodered/rootfs/data/node_modules/qs/lib/utils.js create mode 100644 nodered/rootfs/data/node_modules/qs/package.json create mode 100644 nodered/rootfs/data/node_modules/qs/test/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/qs/test/index.js create mode 100644 nodered/rootfs/data/node_modules/qs/test/parse.js create mode 100644 nodered/rootfs/data/node_modules/qs/test/stringify.js create mode 100644 nodered/rootfs/data/node_modules/qs/test/utils.js create mode 100644 nodered/rootfs/data/node_modules/range-parser/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/range-parser/LICENSE create mode 100644 nodered/rootfs/data/node_modules/range-parser/README.md create mode 100644 nodered/rootfs/data/node_modules/range-parser/index.js create mode 100644 nodered/rootfs/data/node_modules/range-parser/package.json create mode 100644 nodered/rootfs/data/node_modules/readable-stream/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/readable-stream/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/readable-stream/GOVERNANCE.md create mode 100644 nodered/rootfs/data/node_modules/readable-stream/LICENSE create mode 100644 nodered/rootfs/data/node_modules/readable-stream/README.md create mode 100644 nodered/rootfs/data/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md create mode 100644 nodered/rootfs/data/node_modules/readable-stream/duplex-browser.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/duplex.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/lib/_stream_duplex.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/lib/_stream_passthrough.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/lib/_stream_readable.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/lib/_stream_transform.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/lib/_stream_writable.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/lib/internal/streams/BufferList.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/lib/internal/streams/destroy.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/lib/internal/streams/stream-browser.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/lib/internal/streams/stream.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/inherits/LICENSE create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/inherits/README.md create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/inherits/inherits.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/inherits/inherits_browser.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/inherits/package.json create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/isarray/.npmignore create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/isarray/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/isarray/Makefile create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/isarray/README.md create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/isarray/component.json create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/isarray/index.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/isarray/package.json create mode 100644 nodered/rootfs/data/node_modules/readable-stream/node_modules/isarray/test.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/package.json create mode 100644 nodered/rootfs/data/node_modules/readable-stream/passthrough.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/readable-browser.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/readable.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/transform.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/writable-browser.js create mode 100644 nodered/rootfs/data/node_modules/readable-stream/writable.js create mode 100644 nodered/rootfs/data/node_modules/request-promise-core/LICENSE create mode 100644 nodered/rootfs/data/node_modules/request-promise-core/README.md create mode 100644 nodered/rootfs/data/node_modules/request-promise-core/configure/request-next.js create mode 100644 nodered/rootfs/data/node_modules/request-promise-core/configure/request2.js create mode 100644 nodered/rootfs/data/node_modules/request-promise-core/errors.js create mode 100644 nodered/rootfs/data/node_modules/request-promise-core/lib/errors.js create mode 100644 nodered/rootfs/data/node_modules/request-promise-core/lib/plumbing.js create mode 100644 nodered/rootfs/data/node_modules/request-promise-core/package.json create mode 100644 nodered/rootfs/data/node_modules/request-promise/LICENSE create mode 100644 nodered/rootfs/data/node_modules/request-promise/README.md create mode 100644 nodered/rootfs/data/node_modules/request-promise/errors.js create mode 100644 nodered/rootfs/data/node_modules/request-promise/lib/rp.js create mode 100644 nodered/rootfs/data/node_modules/request-promise/package.json create mode 100644 nodered/rootfs/data/node_modules/request/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/request/LICENSE create mode 100644 nodered/rootfs/data/node_modules/request/README.md create mode 100755 nodered/rootfs/data/node_modules/request/index.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/auth.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/cookies.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/getProxyFromURI.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/har.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/hawk.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/helpers.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/multipart.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/oauth.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/querystring.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/redirect.js create mode 100644 nodered/rootfs/data/node_modules/request/lib/tunnel.js create mode 100644 nodered/rootfs/data/node_modules/request/node_modules/safe-buffer/LICENSE create mode 100644 nodered/rootfs/data/node_modules/request/node_modules/safe-buffer/README.md create mode 100644 nodered/rootfs/data/node_modules/request/node_modules/safe-buffer/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/request/node_modules/safe-buffer/index.js create mode 100644 nodered/rootfs/data/node_modules/request/node_modules/safe-buffer/package.json create mode 100644 nodered/rootfs/data/node_modules/request/package.json create mode 100644 nodered/rootfs/data/node_modules/request/request.js create mode 100644 nodered/rootfs/data/node_modules/safe-buffer/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/safe-buffer/LICENSE create mode 100644 nodered/rootfs/data/node_modules/safe-buffer/README.md create mode 100644 nodered/rootfs/data/node_modules/safe-buffer/index.js create mode 100644 nodered/rootfs/data/node_modules/safe-buffer/package.json create mode 100644 nodered/rootfs/data/node_modules/safe-buffer/test.js create mode 100644 nodered/rootfs/data/node_modules/safer-buffer/LICENSE create mode 100644 nodered/rootfs/data/node_modules/safer-buffer/Porting-Buffer.md create mode 100644 nodered/rootfs/data/node_modules/safer-buffer/Readme.md create mode 100644 nodered/rootfs/data/node_modules/safer-buffer/dangerous.js create mode 100644 nodered/rootfs/data/node_modules/safer-buffer/package.json create mode 100644 nodered/rootfs/data/node_modules/safer-buffer/safer.js create mode 100644 nodered/rootfs/data/node_modules/safer-buffer/tests.js create mode 100644 nodered/rootfs/data/node_modules/semver/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/semver/LICENSE create mode 100644 nodered/rootfs/data/node_modules/semver/README.md create mode 100755 nodered/rootfs/data/node_modules/semver/bin/semver create mode 100644 nodered/rootfs/data/node_modules/semver/package.json create mode 100644 nodered/rootfs/data/node_modules/semver/range.bnf create mode 100644 nodered/rootfs/data/node_modules/semver/semver.js create mode 100644 nodered/rootfs/data/node_modules/send/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/send/LICENSE create mode 100644 nodered/rootfs/data/node_modules/send/README.md create mode 100644 nodered/rootfs/data/node_modules/send/index.js create mode 100644 nodered/rootfs/data/node_modules/send/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/send/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/send/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/send/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/send/package.json create mode 100644 nodered/rootfs/data/node_modules/serve-static/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/serve-static/LICENSE create mode 100644 nodered/rootfs/data/node_modules/serve-static/README.md create mode 100644 nodered/rootfs/data/node_modules/serve-static/index.js create mode 100644 nodered/rootfs/data/node_modules/serve-static/package.json create mode 100644 nodered/rootfs/data/node_modules/setprototypeof/LICENSE create mode 100644 nodered/rootfs/data/node_modules/setprototypeof/README.md create mode 100644 nodered/rootfs/data/node_modules/setprototypeof/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/setprototypeof/index.js create mode 100644 nodered/rootfs/data/node_modules/setprototypeof/package.json create mode 100644 nodered/rootfs/data/node_modules/setprototypeof/test/index.js create mode 100644 nodered/rootfs/data/node_modules/shebang-command/index.js create mode 100644 nodered/rootfs/data/node_modules/shebang-command/license create mode 100644 nodered/rootfs/data/node_modules/shebang-command/package.json create mode 100644 nodered/rootfs/data/node_modules/shebang-command/readme.md create mode 100644 nodered/rootfs/data/node_modules/shebang-regex/index.js create mode 100644 nodered/rootfs/data/node_modules/shebang-regex/license create mode 100644 nodered/rootfs/data/node_modules/shebang-regex/package.json create mode 100644 nodered/rootfs/data/node_modules/shebang-regex/readme.md create mode 100644 nodered/rootfs/data/node_modules/signal-exit/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/signal-exit/LICENSE.txt create mode 100644 nodered/rootfs/data/node_modules/signal-exit/README.md create mode 100644 nodered/rootfs/data/node_modules/signal-exit/index.js create mode 100644 nodered/rootfs/data/node_modules/signal-exit/package.json create mode 100644 nodered/rootfs/data/node_modules/signal-exit/signals.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/.idea/$CACHE_FILE$ create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/.idea/inspectionProfiles/profiles_settings.xml create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/.idea/misc.xml create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/.idea/modules.xml create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/.idea/socket.io-adapter.iml create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/.idea/vcs.xml create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/.idea/workspace.xml create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/Readme.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-adapter/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/README.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/dist/socket.io.dev.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/dist/socket.io.dev.js.map create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/dist/socket.io.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/dist/socket.io.js.map create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/dist/socket.io.slim.dev.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/dist/socket.io.slim.dev.js.map create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/dist/socket.io.slim.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/dist/socket.io.slim.js.map create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/lib/manager.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/lib/on.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/lib/socket.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/lib/url.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/debug/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/debug/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/debug/README.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/debug/dist/debug.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/debug/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/debug/src/browser.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/debug/src/common.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/debug/src/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/debug/src/node.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/Readme.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/binary.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/is-buffer.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/.coveralls.yml create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/.npmignore create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/Makefile create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/README.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/karma.conf.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/node.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/src/browser.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/src/debug.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/src/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug/src/node.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/node_modules/socket.io-parser/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io-client/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/Readme.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/binary.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/is-buffer.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/debug/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/debug/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/debug/README.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/debug/dist/debug.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/debug/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/debug/src/browser.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/debug/src/common.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/debug/src/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/debug/src/node.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/socket.io-parser/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socket.io/Readme.md create mode 100644 nodered/rootfs/data/node_modules/socket.io/lib/client.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/lib/namespace.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/lib/parent-namespace.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/lib/socket.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/debug/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/debug/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/debug/README.md create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/debug/dist/debug.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/debug/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/debug/src/browser.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/debug/src/common.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/debug/src/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/debug/src/node.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/ms/index.js create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/ms/license.md create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/ms/package.json create mode 100644 nodered/rootfs/data/node_modules/socket.io/node_modules/ms/readme.md create mode 100644 nodered/rootfs/data/node_modules/socket.io/package.json create mode 100644 nodered/rootfs/data/node_modules/socks5-client/LICENSE create mode 100644 nodered/rootfs/data/node_modules/socks5-client/README.md create mode 100644 nodered/rootfs/data/node_modules/socks5-client/index.js create mode 100644 nodered/rootfs/data/node_modules/socks5-client/lib/Socket.js create mode 100644 nodered/rootfs/data/node_modules/socks5-client/package.json create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/.npmignore create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/Makefile create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/README.md create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/example/tor-request.js create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/example/tor.js create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/index.js create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/lib/Agent.js create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/package.json create mode 100644 nodered/rootfs/data/node_modules/socks5-https-client/test/index.js create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/CONTRIBUTORS.md create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/LICENSE create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/README.md create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/dist/.gitattributes create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/dist/angular-sprintf.min.js create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/dist/angular-sprintf.min.js.map create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/dist/sprintf.min.js create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/dist/sprintf.min.js.map create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/package.json create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/src/angular-sprintf.js create mode 100644 nodered/rootfs/data/node_modules/sprintf-js/src/sprintf.js create mode 100644 nodered/rootfs/data/node_modules/sqlstring/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/sqlstring/LICENSE create mode 100644 nodered/rootfs/data/node_modules/sqlstring/README.md create mode 100644 nodered/rootfs/data/node_modules/sqlstring/index.js create mode 100644 nodered/rootfs/data/node_modules/sqlstring/lib/SqlString.js create mode 100644 nodered/rootfs/data/node_modules/sqlstring/package.json create mode 100644 nodered/rootfs/data/node_modules/sshpk/.npmignore create mode 100644 nodered/rootfs/data/node_modules/sshpk/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/sshpk/LICENSE create mode 100644 nodered/rootfs/data/node_modules/sshpk/README.md create mode 100755 nodered/rootfs/data/node_modules/sshpk/bin/sshpk-conv create mode 100755 nodered/rootfs/data/node_modules/sshpk/bin/sshpk-sign create mode 100755 nodered/rootfs/data/node_modules/sshpk/bin/sshpk-verify create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/algs.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/certificate.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/dhe.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/ed-compat.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/errors.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/fingerprint.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/auto.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/dnssec.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/openssh-cert.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/pem.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/pkcs1.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/pkcs8.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/putty.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/rfc4253.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/ssh-private.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/ssh.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/x509-pem.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/formats/x509.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/identity.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/key.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/private-key.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/signature.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/ssh-buffer.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/lib/utils.js create mode 100644 nodered/rootfs/data/node_modules/sshpk/man/man1/sshpk-conv.1 create mode 100644 nodered/rootfs/data/node_modules/sshpk/man/man1/sshpk-sign.1 create mode 100644 nodered/rootfs/data/node_modules/sshpk/man/man1/sshpk-verify.1 create mode 100644 nodered/rootfs/data/node_modules/sshpk/package.json create mode 100644 nodered/rootfs/data/node_modules/statuses/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/statuses/LICENSE create mode 100644 nodered/rootfs/data/node_modules/statuses/README.md create mode 100644 nodered/rootfs/data/node_modules/statuses/codes.json create mode 100644 nodered/rootfs/data/node_modules/statuses/index.js create mode 100644 nodered/rootfs/data/node_modules/statuses/package.json create mode 100644 nodered/rootfs/data/node_modules/stealthy-require/.npmignore create mode 100644 nodered/rootfs/data/node_modules/stealthy-require/LICENSE create mode 100644 nodered/rootfs/data/node_modules/stealthy-require/README.md create mode 100644 nodered/rootfs/data/node_modules/stealthy-require/lib/index.js create mode 100644 nodered/rootfs/data/node_modules/stealthy-require/package.json create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/.github/workflows/rebase.yml create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/LICENSE create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/README.md create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/auto.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/implementation.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/index.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/package.json create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/polyfill.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/shim.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/test/index.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/test/shimmed.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimleft/test/tests.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/.eslintrc create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/.github/workflows/rebase.yml create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/LICENSE create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/README.md create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/auto.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/implementation.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/index.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/package.json create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/polyfill.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/shim.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/test/index.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/test/shimmed.js create mode 100644 nodered/rootfs/data/node_modules/string.prototype.trimright/test/tests.js create mode 100644 nodered/rootfs/data/node_modules/string_decoder/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/string_decoder/LICENSE create mode 100644 nodered/rootfs/data/node_modules/string_decoder/README.md create mode 100644 nodered/rootfs/data/node_modules/string_decoder/lib/string_decoder.js create mode 100644 nodered/rootfs/data/node_modules/string_decoder/package.json create mode 100644 nodered/rootfs/data/node_modules/strip-eof/index.js create mode 100644 nodered/rootfs/data/node_modules/strip-eof/license create mode 100644 nodered/rootfs/data/node_modules/strip-eof/package.json create mode 100644 nodered/rootfs/data/node_modules/strip-eof/readme.md create mode 100644 nodered/rootfs/data/node_modules/tail/LICENSE create mode 100644 nodered/rootfs/data/node_modules/tail/README.md create mode 100644 nodered/rootfs/data/node_modules/tail/lib/tail.js create mode 100644 nodered/rootfs/data/node_modules/tail/package.json create mode 100644 nodered/rootfs/data/node_modules/tiny-emitter/.npmignore create mode 100644 nodered/rootfs/data/node_modules/tiny-emitter/README.md create mode 100644 nodered/rootfs/data/node_modules/tiny-emitter/bower.json create mode 100644 nodered/rootfs/data/node_modules/tiny-emitter/dist/tinyemitter.js create mode 100644 nodered/rootfs/data/node_modules/tiny-emitter/dist/tinyemitter.min.js create mode 100644 nodered/rootfs/data/node_modules/tiny-emitter/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/tiny-emitter/index.js create mode 100644 nodered/rootfs/data/node_modules/tiny-emitter/package.json create mode 100644 nodered/rootfs/data/node_modules/tiny-emitter/test/index.js create mode 100644 nodered/rootfs/data/node_modules/tlds/History.md create mode 100644 nodered/rootfs/data/node_modules/tlds/Readme.md create mode 100755 nodered/rootfs/data/node_modules/tlds/bin.js create mode 100755 nodered/rootfs/data/node_modules/tlds/cron.sh create mode 100644 nodered/rootfs/data/node_modules/tlds/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/tlds/index.js create mode 100644 nodered/rootfs/data/node_modules/tlds/package.json create mode 100644 nodered/rootfs/data/node_modules/to-array/.npmignore create mode 100644 nodered/rootfs/data/node_modules/to-array/LICENCE create mode 100644 nodered/rootfs/data/node_modules/to-array/README.md create mode 100644 nodered/rootfs/data/node_modules/to-array/index.js create mode 100644 nodered/rootfs/data/node_modules/to-array/package.json create mode 100644 nodered/rootfs/data/node_modules/toidentifier/LICENSE create mode 100644 nodered/rootfs/data/node_modules/toidentifier/README.md create mode 100644 nodered/rootfs/data/node_modules/toidentifier/index.js create mode 100644 nodered/rootfs/data/node_modules/toidentifier/package.json create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/LICENSE create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/README.md create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/lib/cookie.js create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/lib/memstore.js create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/lib/pathMatch.js create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/lib/permuteDomain.js create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/lib/pubsuffix-psl.js create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/lib/store.js create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/node_modules/punycode/README.md create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/node_modules/punycode/package.json create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/node_modules/punycode/punycode.js create mode 100644 nodered/rootfs/data/node_modules/tough-cookie/package.json create mode 100644 nodered/rootfs/data/node_modules/tunnel-agent/LICENSE create mode 100644 nodered/rootfs/data/node_modules/tunnel-agent/README.md create mode 100644 nodered/rootfs/data/node_modules/tunnel-agent/index.js create mode 100644 nodered/rootfs/data/node_modules/tunnel-agent/package.json create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/.npmignore create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/AUTHORS.md create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/LICENSE create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/README.md create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/nacl-fast.js create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/nacl-fast.min.js create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/nacl.d.ts create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/nacl.js create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/nacl.min.js create mode 100644 nodered/rootfs/data/node_modules/tweetnacl/package.json create mode 100644 nodered/rootfs/data/node_modules/typed-function/.npmignore create mode 100644 nodered/rootfs/data/node_modules/typed-function/.travis.yml create mode 100644 nodered/rootfs/data/node_modules/typed-function/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/typed-function/LICENSE create mode 100644 nodered/rootfs/data/node_modules/typed-function/README.md create mode 100644 nodered/rootfs/data/node_modules/typed-function/benchmark/benchmark.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/examples/any_type.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/examples/basic_usage.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/examples/browser.html create mode 100644 nodered/rootfs/data/node_modules/typed-function/examples/browser_amd.html create mode 100644 nodered/rootfs/data/node_modules/typed-function/examples/custom_type.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/examples/merge_typed_functions.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/examples/multiple_signatures.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/examples/type_conversion.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/examples/variable_arguments.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/package.json create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/any_type.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/browser.html create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/compose.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/construction.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/conversion.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/convert.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/errors.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/find.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/merge.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/strictEqualArray.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/union_types.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/test/variable_arguments.test.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/typed-function.js create mode 100644 nodered/rootfs/data/node_modules/typed-function/typed-function.min.js create mode 100644 nodered/rootfs/data/node_modules/uc.micro/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/uc.micro/LICENSE.txt create mode 100644 nodered/rootfs/data/node_modules/uc.micro/README.md create mode 100644 nodered/rootfs/data/node_modules/uc.micro/categories/Cc/regex.js create mode 100644 nodered/rootfs/data/node_modules/uc.micro/categories/Cf/regex.js create mode 100644 nodered/rootfs/data/node_modules/uc.micro/categories/P/regex.js create mode 100644 nodered/rootfs/data/node_modules/uc.micro/categories/Z/regex.js create mode 100644 nodered/rootfs/data/node_modules/uc.micro/index.js create mode 100644 nodered/rootfs/data/node_modules/uc.micro/package.json create mode 100644 nodered/rootfs/data/node_modules/uc.micro/properties/Any/regex.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/README.md create mode 100644 nodered/rootfs/data/node_modules/uri-js/bower.json create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/es5/uri.all.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/es5/uri.all.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/es5/uri.all.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/es5/uri.all.min.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/es5/uri.all.min.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/es5/uri.all.min.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/index.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/index.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/index.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/regexps-iri.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/regexps-iri.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/regexps-iri.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/regexps-uri.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/regexps-uri.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/regexps-uri.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/http.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/http.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/http.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/https.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/https.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/https.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/mailto.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/mailto.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/urn.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/urn.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/schemes/urn.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/uri.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/uri.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/uri.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/util.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/util.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/dist/esnext/util.js.map create mode 100644 nodered/rootfs/data/node_modules/uri-js/package.json create mode 100644 nodered/rootfs/data/node_modules/uri-js/rollup.config.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/index.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/punycode.d.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/regexps-iri.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/regexps-uri.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/schemes/http.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/schemes/https.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/schemes/mailto.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/schemes/urn-uuid.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/schemes/urn.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/uri.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/src/util.ts create mode 100644 nodered/rootfs/data/node_modules/uri-js/tests/qunit.css create mode 100644 nodered/rootfs/data/node_modules/uri-js/tests/qunit.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/tests/test-es5-min.html create mode 100644 nodered/rootfs/data/node_modules/uri-js/tests/test-es5.html create mode 100644 nodered/rootfs/data/node_modules/uri-js/tests/tests.js create mode 100644 nodered/rootfs/data/node_modules/uri-js/tsconfig.json create mode 100644 nodered/rootfs/data/node_modules/uri-js/yarn.lock create mode 100644 nodered/rootfs/data/node_modules/utf7/LICENSE create mode 100644 nodered/rootfs/data/node_modules/utf7/README.md create mode 120000 nodered/rootfs/data/node_modules/utf7/node_modules/.bin/semver create mode 100644 nodered/rootfs/data/node_modules/utf7/node_modules/semver/LICENSE create mode 100644 nodered/rootfs/data/node_modules/utf7/node_modules/semver/README.md create mode 100755 nodered/rootfs/data/node_modules/utf7/node_modules/semver/bin/semver create mode 100644 nodered/rootfs/data/node_modules/utf7/node_modules/semver/package.json create mode 100644 nodered/rootfs/data/node_modules/utf7/node_modules/semver/range.bnf create mode 100644 nodered/rootfs/data/node_modules/utf7/node_modules/semver/semver.js create mode 100644 nodered/rootfs/data/node_modules/utf7/package.json create mode 100644 nodered/rootfs/data/node_modules/utf7/test/utf7-imap.js create mode 100644 nodered/rootfs/data/node_modules/utf7/test/utf7-rfc2152.js create mode 100644 nodered/rootfs/data/node_modules/utf7/utf7.js create mode 100644 nodered/rootfs/data/node_modules/util-deprecate/History.md create mode 100644 nodered/rootfs/data/node_modules/util-deprecate/LICENSE create mode 100644 nodered/rootfs/data/node_modules/util-deprecate/README.md create mode 100644 nodered/rootfs/data/node_modules/util-deprecate/browser.js create mode 100644 nodered/rootfs/data/node_modules/util-deprecate/node.js create mode 100644 nodered/rootfs/data/node_modules/util-deprecate/package.json create mode 100644 nodered/rootfs/data/node_modules/uuid/AUTHORS create mode 100644 nodered/rootfs/data/node_modules/uuid/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/uuid/LICENSE.md create mode 100644 nodered/rootfs/data/node_modules/uuid/README.md create mode 100755 nodered/rootfs/data/node_modules/uuid/bin/uuid create mode 100644 nodered/rootfs/data/node_modules/uuid/index.js create mode 100644 nodered/rootfs/data/node_modules/uuid/lib/bytesToUuid.js create mode 100644 nodered/rootfs/data/node_modules/uuid/lib/md5-browser.js create mode 100644 nodered/rootfs/data/node_modules/uuid/lib/md5.js create mode 100644 nodered/rootfs/data/node_modules/uuid/lib/rng-browser.js create mode 100644 nodered/rootfs/data/node_modules/uuid/lib/rng.js create mode 100644 nodered/rootfs/data/node_modules/uuid/lib/sha1-browser.js create mode 100644 nodered/rootfs/data/node_modules/uuid/lib/sha1.js create mode 100644 nodered/rootfs/data/node_modules/uuid/lib/v35.js create mode 100644 nodered/rootfs/data/node_modules/uuid/package.json create mode 100644 nodered/rootfs/data/node_modules/uuid/v1.js create mode 100644 nodered/rootfs/data/node_modules/uuid/v3.js create mode 100644 nodered/rootfs/data/node_modules/uuid/v4.js create mode 100644 nodered/rootfs/data/node_modules/uuid/v5.js create mode 100644 nodered/rootfs/data/node_modules/vary/HISTORY.md create mode 100644 nodered/rootfs/data/node_modules/vary/LICENSE create mode 100644 nodered/rootfs/data/node_modules/vary/README.md create mode 100644 nodered/rootfs/data/node_modules/vary/index.js create mode 100644 nodered/rootfs/data/node_modules/vary/package.json create mode 100644 nodered/rootfs/data/node_modules/verror/.npmignore create mode 100644 nodered/rootfs/data/node_modules/verror/CHANGES.md create mode 100644 nodered/rootfs/data/node_modules/verror/CONTRIBUTING.md create mode 100644 nodered/rootfs/data/node_modules/verror/LICENSE create mode 100644 nodered/rootfs/data/node_modules/verror/README.md create mode 100644 nodered/rootfs/data/node_modules/verror/lib/verror.js create mode 100644 nodered/rootfs/data/node_modules/verror/package.json create mode 100644 nodered/rootfs/data/node_modules/which/CHANGELOG.md create mode 100644 nodered/rootfs/data/node_modules/which/LICENSE create mode 100644 nodered/rootfs/data/node_modules/which/README.md create mode 100755 nodered/rootfs/data/node_modules/which/bin/which create mode 100644 nodered/rootfs/data/node_modules/which/package.json create mode 100644 nodered/rootfs/data/node_modules/which/which.js create mode 100644 nodered/rootfs/data/node_modules/wordwrap/LICENSE create mode 100644 nodered/rootfs/data/node_modules/wordwrap/README.markdown create mode 100644 nodered/rootfs/data/node_modules/wordwrap/example/center.js create mode 100644 nodered/rootfs/data/node_modules/wordwrap/example/meat.js create mode 100644 nodered/rootfs/data/node_modules/wordwrap/index.js create mode 100644 nodered/rootfs/data/node_modules/wordwrap/package.json create mode 100644 nodered/rootfs/data/node_modules/wordwrap/test/break.js create mode 100644 nodered/rootfs/data/node_modules/wordwrap/test/idleness.txt create mode 100644 nodered/rootfs/data/node_modules/wordwrap/test/wrap.js create mode 100644 nodered/rootfs/data/node_modules/wrappy/LICENSE create mode 100644 nodered/rootfs/data/node_modules/wrappy/README.md create mode 100644 nodered/rootfs/data/node_modules/wrappy/package.json create mode 100644 nodered/rootfs/data/node_modules/wrappy/wrappy.js create mode 100644 nodered/rootfs/data/node_modules/ws/LICENSE create mode 100644 nodered/rootfs/data/node_modules/ws/README.md create mode 100644 nodered/rootfs/data/node_modules/ws/browser.js create mode 100644 nodered/rootfs/data/node_modules/ws/index.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/buffer-util.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/constants.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/event-target.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/extension.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/limiter.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/permessage-deflate.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/receiver.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/sender.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/stream.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/validation.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/websocket-server.js create mode 100644 nodered/rootfs/data/node_modules/ws/lib/websocket.js create mode 100644 nodered/rootfs/data/node_modules/ws/package.json create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/LICENSE create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/README.md create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/autotest.watchr create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/example/demo.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/package.json create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/test-constants.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/test-events.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/test-exceptions.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/test-headers.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/test-redirect-302.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/test-redirect-303.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/test-redirect-307.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/test-request-methods.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/test-request-protocols.js create mode 100644 nodered/rootfs/data/node_modules/xmlhttprequest-ssl/tests/testdata.txt create mode 100644 nodered/rootfs/data/node_modules/yeast/LICENSE create mode 100644 nodered/rootfs/data/node_modules/yeast/README.md create mode 100644 nodered/rootfs/data/node_modules/yeast/index.js create mode 100644 nodered/rootfs/data/node_modules/yeast/package.json create mode 100755 nodered/rootfs/data/package.json create mode 100755 nodered/rootfs/data/scale1.dump create mode 100755 nodered/rootfs/data/scale2.dump create mode 100755 nodered/rootfs/data/scale3.dump create mode 100755 nodered/rootfs/data/scale4.dump create mode 100755 nodered/rootfs/data/settings.js create mode 100755 nodered/rootfs/data/starter.dump diff --git a/.env b/.env new file mode 100755 index 0000000..3024780 --- /dev/null +++ b/.env @@ -0,0 +1,153 @@ + +## Security +# +# Set these to strong passwords to avoid intruders from impersonating a service account +# The service(s) won't start unless these are specified +# Running ./gen-passwords.sh will update .env with strong passwords +# DO NOT reuse passwords +# + +# XMPP component password for Jicofo +JICOFO_COMPONENT_SECRET=c688eda873669a2c5531c54f6277a574 + +# XMPP password for Jicofo client connections +JICOFO_AUTH_PASSWORD=1f136e2b96c7ce0ad45cadef1ca3fd89 + +# XMPP password for JVB client connections +JVB_AUTH_PASSWORD=9955048acdf8f96e1ce02f7ebf5aa4a6 + +# XMPP password for Jigasi MUC client connections +JIGASI_XMPP_PASSWORD=a38a5e1e61d8f1a165f2e0df1807c7be + +# XMPP recorder password for Jibri client connections +JIBRI_RECORDER_PASSWORD=8daea9305a240f6d5f9d01808fa5fbcf + +# XMPP password for Jibri client connections +JIBRI_XMPP_PASSWORD=fe0a93e89eb6a453a06f25ca6a4ddf21 + + +# +# Basic configuration options +# + +# Directory where all configuration will be stored +CONFIG=/opt/openAger/config + +# Exposed HTTP port for node red (1880) +NODE_PORT=1874 + +# Exposed port for mosquitto (1883) +MOSQUITTO_PORT=1884 + +# Exposed SSL port for node red (9001) +MOSQUITTOS_PORT=9002 + +# System time zone +TZ=Europe/Vienna + + + +# +# Config for node-red +# + +# in case you are using the great nginx/letsencrypt combination from jwilder +# and nginx: https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion + +# Your hostname for nginx +#NODE_VIRTUAL_HOST=hostname.domain.com + +# Your email +#NODE_LETSENCRYPT_EMAIL= your@mail.com + +# Your hostname for letsencrypt +#NODE_LETSENCRYPT_HOST= hostname.domain.com + +# This is the secret to encrypt your password storage within nodered +NODE_RED_CREDENTIAL_SECRET=enryptmysecrets + +# This is the password for the frontend / ui access with username "open". +# Get a new hash by docker exec -it node-red npx node-red admin hash-pw +NODE_RED_USER_AUTH=$2b$08$XUvNWY1pmG39J1Nc1OipD.JjUoLdvfgfDJDIiY1Tma/6YZEVjAADu + +# This is the password for the backend of nodered with username "admin" +NODE_RED_ADMIN_AUTH=$2b$08$XUvNWY1pmG39J1Nc1OipD.JjUoLdvfgfDJDIiY1Tma/6YZEVjAADu + + +# +# Config for mosquitto +# + +# Note: hardcoded mqtt user is open:ager +# Change or add user? docker exec -it mosquitto mosquitto_passwd -b /mosquitto/config/passwordfile open ager + +# Mosquitto URL +MQTT_URL=openager_mosquitto_1 + + +# +# Config MariaDB +# + +# Root Password for mariadb. CHANGE THAT in case you want to expose it to the +# internet +MYSQL_ROOT_PASSWORD=openager + +# Username to connect +MYSQL_USER=open + +#Password for the user above +MYSQL_PASSWORD=ager + +# Database we are going to use +MYSQL_DATABASE=openager + +# internal hostname of mariadb +MYSQL_URL=openager_mariadb_1 + +# +# Config phpMyAdmin +# + +# Hostname of your mariadb +PMA_HOST=openager_mariadb_1 + +# Port of phpMyAdmin if you want to expose (8088) +PHMMYADMIN_PORT=8088 + + +# +# Config for influxDB +# + +# admin user and password for influxdb +INFLUXDB_ADMIN_USER=admin +INFLUXDB_ADMIN_PASSWORD=openager + + +# standard user and password for influx +INFLUXDB_USER=open +INFLUXDB_USER_PASSWORD=ager + +# name of the standard db within influx +INFLUXDB_DB=openAger + +# Hostname of the influx +INFLUX_URL=openager_influxdb_1 + + +# +# Config for grafana +# + +# external port of phpMyAdmin if you want to expose (3001) +GRAFANA_PORT=3003 + +# Your hostname for nginx +#GRAFANA_VIRTUAL_HOST=hostname.domain.com + +# Your email +#GRAFANA_LETSENCRYPT_EMAIL= your@mail.com + +# Your hostname for letsencrypt +#GRAFANA_LETSENCRYPT_HOST= hostname.domain.com diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..84975e8 --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +FORCE_REBUILD ?= 0 +OPENAGER_RELEASE ?= stable +OPENAGER_BUILD ?= latest +OPENAGER_REPO ?= openager +OPENAGER_SERICES ?= nodered + +BUILD_ARGS := --build-arg OPENAGER_REPO=$(OPENAGER_REPO) + +ifeq ($(FORCE_REBUILD), 1) + BUILD_ARGS := $(BUILD_ARGS) --no-cache +endif + + +all: build-all + +release: tag-all push-all + +build: + $(MAKE) BUILD_ARGS="$(BUILD_ARGS)" OPENAGER_REPO="$(OPENAGER_REPO)" OPENAGER_RELEASE="$(OPENAGER_RELEASE)" -C $(OPENAGER_SERICE) build + +tag: + docker tag $(OPENAGER_REPO)/$(OPENAGER_SERICE):latest $(OPENAGER_REPO)/$(OPENAGER_SERICE):$OPENAGER_BUILD) + +push: + docker push $(OPENAGER_REPO)/$(OPENAGER_SERICE):latest + docker push $(OPENAGER_REPO)/$(OPENAGER_SERICE):$OPENAGER_BUILD) + +%-all: + @$(foreach SERVICE, $(OPENAGER_SERICES), $(MAKE) --no-print-directory OPENAGER_SERICE=$(SERVICE) $(subst -all,;,$@)) + +clean: + docker-compose stop + docker-compose rm + docker network prune + +prepare: + docker pull debian:stretch-slim + docker pull etherpad/etherpad + FORCE_REBUILD=1 $(MAKE) + +.PHONY: all build tag push clean prepare diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100755 index 0000000..7e649e2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,142 @@ +version: '3' + +services: + # openAger nodered + nodered: + build: + context: ./nodered + args: + - MOSQUITTO_PORT=${MOSQUITTO_PORT} + - MQTT_URL=${MQTT_URL} + - MYSQL_URL=${MYSQL_URL} + - MYSQL_DATABASE=${MYSQL_DATABASE} + - INFLUXDB_USER=${INFLUXDB_USER} + - INFLUXDB_USER_PASSWORD=${INFLUXDB_USER_PASSWORD} + - INFLUXDB_DB=${INFLUXDB_DB} + - INFLUX_URL=${INFLUX_URL} + ports: + - '${NODE_PORT}:1880/tcp' + volumes: + - node-red:/data + environment: + - NODE_VIRTUAL_HOST + - NODE_LETSENCRYPT_EMAIL + - NODE_LETSENCRYPT_HOST + - NODE_RED_CREDENTIAL_SECRET + - NODE_RED_USER_AUTH + - NODE_RED_ADMIN_AUTH + - MQTT_URL + - MOSQUITTO_PORT + - MYSQL_URL + - MYSQL_DATABASE + - TZ + - INFLUXDB_USER + - INFLUXDB_USER_PASSWORD + - INFLUXDB_DB + - INFLUX_URL + restart: always + networks: + openager.local: + + # openAger mosquitto + mosquitto: + build: mosquitto/. + ports: + - '${MOSQUITTO_PORT}:1883/tcp' + - '${MOSQUITTOS_PORT}:9001/tcp' + volumes: + - mosquitto_cfg:/mosquitto + - mosquitto_data:/mosquitto/data + - mosquitto_log:/mosquitto/log + environment: + - TZ + restart: always + networks: + openager.local: + + # openAger mariadb + mariadb: + build: ./mariadb + volumes: + - mariadb:/var/lib/mysql + environment: + - TZ + - MYSQL_ROOT_PASSWORD + - MYSQL_DATABASE + - MYSQL_USER + - MYSQL_PASSWORD + restart: always + networks: + openager.local: + + # openAger phpMyAdmin + phpmyadmin: + image: phpmyadmin + ports: + - '${PHMMYADMIN_PORT}:80/tcp' + environment: + - PMA_HOST + restart: always + volumes: + - phpmyadmin:/sessions + networks: + openager.local: + + # openAger influxDB + influxdb: + build: ./influxdb + volumes: + - influxdb:/var/lib/influxdb + environment: + - TZ + - INFLUXDB_ADMIN_USER + - INFLUXDB_ADMIN_PASSWORD + - INFLUXDB_USER + - INFLUXDB_USER_PASSWORD + - INFLUXDB_DB + restart: always + networks: + openager.local: + + # openAger grafana + grafana: + build: ./grafana + ports: + - '${GRAFANA_PORT}:3000/tcp' + volumes: + - grafana:/etc/grafana + - grafana-storage:/var/lib/grafana + environment: + - TZ + - GRAFANA_VIRTUAL_HOST + - GRAFANA_LETSENCRYPT_EMAIL + - GRAFANA_LETSENCRYPT_HOST + restart: always + networks: + openager.local: + + +# Volume definitions +volumes: + node-red: + driver: local + mosquitto_cfg: + driver: local + mosquitto_log: + driver: local + mosquitto_data: + driver: local + mariadb: + driver: local + phpmyadmin: + driver: local + influxdb: + driver: local + grafana: + driver: local + grafana-storage: + driver: local + +# Custom network so all services can communicate using a FQDN +networks: + openager.local: diff --git a/grafana/Dockerfile b/grafana/Dockerfile new file mode 100755 index 0000000..6f0dc7c --- /dev/null +++ b/grafana/Dockerfile @@ -0,0 +1,4 @@ +FROM grafana/grafana:latest +COPY rootfs / + + diff --git a/grafana/Makefile b/grafana/Makefile new file mode 100755 index 0000000..5e17ff8 --- /dev/null +++ b/grafana/Makefile @@ -0,0 +1,4 @@ +build: + docker build $(BUILD_ARGS) -t $(OPENAGER_REPO)/grafana . + +.PHONY: build diff --git a/influxdb/Dockerfile b/influxdb/Dockerfile new file mode 100755 index 0000000..dde9c6c --- /dev/null +++ b/influxdb/Dockerfile @@ -0,0 +1,4 @@ +FROM influxdb:latest +COPY rootfs / + + diff --git a/influxdb/Makefile b/influxdb/Makefile new file mode 100755 index 0000000..0007a66 --- /dev/null +++ b/influxdb/Makefile @@ -0,0 +1,4 @@ +build: + docker build $(BUILD_ARGS) -t $(OPENAGER_REPO)/influxdb . + +.PHONY: build diff --git a/influxdb/rootfs/etc/influxdb/influxdb.conf b/influxdb/rootfs/etc/influxdb/influxdb.conf new file mode 100644 index 0000000..91d49c7 --- /dev/null +++ b/influxdb/rootfs/etc/influxdb/influxdb.conf @@ -0,0 +1,160 @@ +reporting-disabled = false +bind-address = "127.0.0.1:8088" + + + + +[meta] + dir = "/var/lib/influxdb/meta" + retention-autocreate = true + logging-enabled = true + +[data] + dir = "/var/lib/influxdb/data" + index-version = "inmem" + wal-dir = "/var/lib/influxdb/wal" + wal-fsync-delay = "0s" + validate-keys = false + query-log-enabled = true + cache-max-memory-size = 1073741824 + cache-snapshot-memory-size = 26214400 + cache-snapshot-write-cold-duration = "10m0s" + compact-full-write-cold-duration = "4h0m0s" + compact-throughput = 50331648 + compact-throughput-burst = 50331648 + max-series-per-database = 1000000 + max-values-per-tag = 100000 + max-concurrent-compactions = 0 + max-index-log-file-size = 1048576 + series-id-set-cache-size = 100 + series-file-max-concurrent-snapshot-compactions = 0 + trace-logging-enabled = false + tsm-use-madv-willneed = false + +[coordinator] + write-timeout = "10s" + max-concurrent-queries = 0 + query-timeout = "0s" + log-queries-after = "0s" + max-select-point = 0 + max-select-series = 0 + max-select-buckets = 0 + +[retention] + enabled = true + check-interval = "30m0s" + +[shard-precreation] + enabled = true + check-interval = "10m0s" + advance-period = "30m0s" + +[monitor] + store-enabled = true + store-database = "_internal" + store-interval = "10s" + +[subscriber] + enabled = true + http-timeout = "30s" + insecure-skip-verify = false + ca-certs = "" + write-concurrency = 40 + write-buffer-size = 1000 + +[http] + enabled = true + bind-address = ":8086" + auth-enabled = true + log-enabled = true + suppress-write-log = false + write-tracing = false + flux-enabled = false + flux-log-enabled = false + pprof-enabled = true + pprof-auth-enabled = false + debug-pprof-enabled = false + ping-auth-enabled = false + prom-read-auth-enabled = false + https-enabled = false + https-certificate = "/fullchain.pem" + https-private-key = "/key.pem" + max-row-limit = 0 + max-connection-limit = 0 + shared-secret = "" + realm = "InfluxDB" + unix-socket-enabled = false + unix-socket-permissions = "0777" + bind-socket = "/var/run/influxdb.sock" + max-body-size = 25000000 + access-log-path = "" + max-concurrent-write-limit = 0 + max-enqueued-write-limit = 0 + enqueued-write-timeout = 30000000000 + +[logging] + format = "auto" + level = "info" + suppress-logo = false + +[[graphite]] + enabled = false + bind-address = ":2003" + database = "graphite" + retention-policy = "" + protocol = "tcp" + batch-size = 5000 + batch-pending = 10 + batch-timeout = "1s" + consistency-level = "one" + separator = "." + udp-read-buffer = 0 + +[[collectd]] + enabled = false + bind-address = ":25826" + database = "collectd" + retention-policy = "" + batch-size = 5000 + batch-pending = 10 + batch-timeout = "10s" + read-buffer = 0 + typesdb = "/usr/share/collectd/types.db" + security-level = "none" + auth-file = "/etc/collectd/auth_file" + parse-multivalue-plugin = "split" + +[[opentsdb]] + enabled = false + bind-address = ":4242" + database = "opentsdb" + retention-policy = "" + consistency-level = "one" + tls-enabled = false + certificate = "/etc/ssl/influxdb.pem" + batch-size = 1000 + batch-pending = 5 + batch-timeout = "1s" + log-point-errors = true + +[[udp]] + enabled = false + bind-address = ":8089" + database = "udp" + retention-policy = "" + batch-size = 5000 + batch-pending = 10 + read-buffer = 0 + batch-timeout = "1s" + precision = "" + +[continuous_queries] + log-enabled = true + enabled = true + query-stats-enabled = false + run-interval = "1s" + +[tls] + min-version = "" + max-version = "" + diff --git a/mariadb/Dockerfile b/mariadb/Dockerfile new file mode 100755 index 0000000..f859915 --- /dev/null +++ b/mariadb/Dockerfile @@ -0,0 +1,5 @@ +FROM mariadb:latest +#RUN chown 1000:1000 /data +COPY rootfs / + + diff --git a/mariadb/Makefile b/mariadb/Makefile new file mode 100755 index 0000000..5a2e0fb --- /dev/null +++ b/mariadb/Makefile @@ -0,0 +1,4 @@ +build: + docker build $(BUILD_ARGS) -t $(OPENAGER_REPO)/mariadb . + +.PHONY: build diff --git a/mariadb/rootfs/docker-entrypoint-initdb.d/init.sql b/mariadb/rootfs/docker-entrypoint-initdb.d/init.sql new file mode 100644 index 0000000..8075a8e --- /dev/null +++ b/mariadb/rootfs/docker-entrypoint-initdb.d/init.sql @@ -0,0 +1,34 @@ +CREATE DATABASE IF NOT EXISTS `openager` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; +USE `openager`; + +-- -------------------------------------------------------- + +-- +-- Tabellenstruktur für Tabelle `sensor_aggr` +-- + +CREATE TABLE IF NOT EXISTS `sensor_aggr` ( + `epoch` bigint(20) NOT NULL, + `device` varchar(255) NOT NULL, + `sensor` varchar(255) NOT NULL, + `value` double NOT NULL, + PRIMARY KEY (`epoch`,`device`,`sensor`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- + +-- +-- Tabellenstruktur für Tabelle `sensor_data` +-- + +CREATE TABLE IF NOT EXISTS `sensor_data` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `device` text NOT NULL, + `sensor` text NOT NULL, + `value` double NOT NULL, + `epoch` bigint(20) NOT NULL, + `timestamp` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `sensor_data_idx1` (`timestamp`), + KEY `sensor_data_idx2` (`epoch`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/mosquitto/Dockerfile b/mosquitto/Dockerfile new file mode 100755 index 0000000..70f9ad8 --- /dev/null +++ b/mosquitto/Dockerfile @@ -0,0 +1,5 @@ +FROM eclipse-mosquitto:latest + +RUN chown -R 1000:1000 /mosquitto +COPY --chown=1000:1000 rootfs /mosquitto + diff --git a/mosquitto/Makefile b/mosquitto/Makefile new file mode 100755 index 0000000..2720df5 --- /dev/null +++ b/mosquitto/Makefile @@ -0,0 +1,4 @@ +build: + docker build $(BUILD_ARGS) -t $(OPENAGER_REPO)/mosquitto . + +.PHONY: build diff --git a/mosquitto/rootfs/config/mosquitto.conf b/mosquitto/rootfs/config/mosquitto.conf new file mode 100644 index 0000000..35b3585 --- /dev/null +++ b/mosquitto/rootfs/config/mosquitto.conf @@ -0,0 +1,989 @@ +# Config file for mosquitto +# +# See mosquitto.conf(5) for more information. +# +# Default values are shown, uncomment to change. +# +# Use the # character to indicate a comment, but only if it is the +# very first character on the line. + +# ================================================================= +# General configuration +# ================================================================= + +# Use per listener security settings. +# +# It is recommended this option be set before any other options. +# +# If this option is set to true, then all authentication and access control +# options are controlled on a per listener basis. The following options are +# affected: +# +# password_file acl_file psk_file auth_plugin auth_opt_* allow_anonymous +# auto_id_prefix allow_zero_length_clientid +# +# Note that if set to true, then a durable client (i.e. with clean session set +# to false) that has disconnected will use the ACL settings defined for the +# listener that it was most recently connected to. +# +# The default behaviour is for this to be set to false, which maintains the +# setting behaviour from previous versions of mosquitto. +per_listener_settings true +password_file /mosquitto/config/passwordfile + + +# If a client is subscribed to multiple subscriptions that overlap, e.g. foo/# +# and foo/+/baz , then MQTT expects that when the broker receives a message on +# a topic that matches both subscriptions, such as foo/bar/baz, then the client +# should only receive the message once. +# Mosquitto keeps track of which clients a message has been sent to in order to +# meet this requirement. The allow_duplicate_messages option allows this +# behaviour to be disabled, which may be useful if you have a large number of +# clients subscribed to the same set of topics and are very concerned about +# minimising memory usage. +# It can be safely set to true if you know in advance that your clients will +# never have overlapping subscriptions, otherwise your clients must be able to +# correctly deal with duplicate messages even when then have QoS=2. +#allow_duplicate_messages false + +# This option controls whether a client is allowed to connect with a zero +# length client id or not. This option only affects clients using MQTT v3.1.1 +# and later. If set to false, clients connecting with a zero length client id +# are disconnected. If set to true, clients will be allocated a client id by +# the broker. This means it is only useful for clients with clean session set +# to true. +#allow_zero_length_clientid true + +# If allow_zero_length_clientid is true, this option allows you to set a prefix +# to automatically generated client ids to aid visibility in logs. +# Defaults to 'auto-' +#auto_id_prefix auto- + +# This option affects the scenario when a client subscribes to a topic that has +# retained messages. It is possible that the client that published the retained +# message to the topic had access at the time they published, but that access +# has been subsequently removed. If check_retain_source is set to true, the +# default, the source of a retained message will be checked for access rights +# before it is republished. When set to false, no check will be made and the +# retained message will always be published. This affects all listeners. +#check_retain_source true + +# QoS 1 and 2 messages will be allowed inflight per client until this limit +# is exceeded. Defaults to 0. (No maximum) +# See also max_inflight_messages +#max_inflight_bytes 0 + +# The maximum number of QoS 1 and 2 messages currently inflight per +# client. +# This includes messages that are partway through handshakes and +# those that are being retried. Defaults to 20. Set to 0 for no +# maximum. Setting to 1 will guarantee in-order delivery of QoS 1 +# and 2 messages. +#max_inflight_messages 20 + +# For MQTT v5 clients, it is possible to have the server send a "server +# keepalive" value that will override the keepalive value set by the client. +# This is intended to be used as a mechanism to say that the server will +# disconnect the client earlier than it anticipated, and that the client should +# use the new keepalive value. The max_keepalive option allows you to specify +# that clients may only connect with keepalive less than or equal to this +# value, otherwise they will be sent a server keepalive telling them to use +# max_keepalive. This only applies to MQTT v5 clients. The maximum value +# allowable is 65535. Do not set below 10. +#max_keepalive 65535 + +# For MQTT v5 clients, it is possible to have the server send a "maximum packet +# size" value that will instruct the client it will not accept MQTT packets +# with size greater than max_packet_size bytes. This applies to the full MQTT +# packet, not just the payload. Setting this option to a positive value will +# set the maximum packet size to that number of bytes. If a client sends a +# packet which is larger than this value, it will be disconnected. This applies +# to all clients regardless of the protocol version they are using, but v3.1.1 +# and earlier clients will of course not have received the maximum packet size +# information. Defaults to no limit. Setting below 20 bytes is forbidden +# because it is likely to interfere with ordinary client operation, even with +# very small payloads. +#max_packet_size 0 + +# QoS 1 and 2 messages above those currently in-flight will be queued per +# client until this limit is exceeded. Defaults to 0. (No maximum) +# See also max_queued_messages. +# If both max_queued_messages and max_queued_bytes are specified, packets will +# be queued until the first limit is reached. +#max_queued_bytes 0 + +# The maximum number of QoS 1 and 2 messages to hold in a queue per client +# above those that are currently in-flight. Defaults to 100. Set +# to 0 for no maximum (not recommended). +# See also queue_qos0_messages. +# See also max_queued_bytes. +#max_queued_messages 100 +# +# This option sets the maximum number of heap memory bytes that the broker will +# allocate, and hence sets a hard limit on memory use by the broker. Memory +# requests that exceed this value will be denied. The effect will vary +# depending on what has been denied. If an incoming message is being processed, +# then the message will be dropped and the publishing client will be +# disconnected. If an outgoing message is being sent, then the individual +# message will be dropped and the receiving client will be disconnected. +# Defaults to no limit. +#memory_limit 0 + +# This option sets the maximum publish payload size that the broker will allow. +# Received messages that exceed this size will not be accepted by the broker. +# The default value is 0, which means that all valid MQTT messages are +# accepted. MQTT imposes a maximum payload size of 268435455 bytes. +#message_size_limit 0 + +# This option allows persistent clients (those with clean session set to false) +# to be removed if they do not reconnect within a certain time frame. +# +# This is a non-standard option in MQTT V3.1 but allowed in MQTT v3.1.1. +# +# Badly designed clients may set clean session to false whilst using a randomly +# generated client id. This leads to persistent clients that will never +# reconnect. This option allows these clients to be removed. +# +# The expiration period should be an integer followed by one of h d w m y for +# hour, day, week, month and year respectively. For example +# +# persistent_client_expiration 2m +# persistent_client_expiration 14d +# persistent_client_expiration 1y +# +# The default if not set is to never expire persistent clients. +#persistent_client_expiration + +# Write process id to a file. Default is a blank string which means +# a pid file shouldn't be written. +# This should be set to /var/run/mosquitto.pid if mosquitto is +# being run automatically on boot with an init script and +# start-stop-daemon or similar. +#pid_file + +# Set to true to queue messages with QoS 0 when a persistent client is +# disconnected. These messages are included in the limit imposed by +# max_queued_messages and max_queued_bytes +# Defaults to false. +# This is a non-standard option for the MQTT v3.1 spec but is allowed in +# v3.1.1. +#queue_qos0_messages false + +# Set to false to disable retained message support. If a client publishes a +# message with the retain bit set, it will be disconnected if this is set to +# false. +#retain_available true + +# Disable Nagle's algorithm on client sockets. This has the effect of reducing +# latency of individual messages at the potential cost of increasing the number +# of packets being sent. +#set_tcp_nodelay false + +# Time in seconds between updates of the $SYS tree. +# Set to 0 to disable the publishing of the $SYS tree. +#sys_interval 10 + +# The MQTT specification requires that the QoS of a message delivered to a +# subscriber is never upgraded to match the QoS of the subscription. Enabling +# this option changes this behaviour. If upgrade_outgoing_qos is set true, +# messages sent to a subscriber will always match the QoS of its subscription. +# This is a non-standard option explicitly disallowed by the spec. +#upgrade_outgoing_qos false + +# When run as root, drop privileges to this user and its primary +# group. +# Set to root to stay as root, but this is not recommended. +# If run as a non-root user, this setting has no effect. +# Note that on Windows this has no effect and so mosquitto should +# be started by the user you wish it to run as. +#user mosquitto + +# ================================================================= +# Default listener +# ================================================================= + +# IP address/hostname to bind the default listener to. If not +# given, the default listener will not be bound to a specific +# address and so will be accessible to all network interfaces. +# bind_address ip-address/host name +#bind_address + +# Port to use for the default listener. +#port 1883 + +# Bind the listener to a specific interface. This is similar to +# bind_address above but is useful when an interface has multiple addresses or +# the address may change. It is valid to use this with the bind_address option, +# but take care that the interface you are binding to contains the address you +# are binding to, otherwise you will not be able to connect. +# Example: bind_interface eth0 +#bind_interface + +# When a listener is using the websockets protocol, it is possible to serve +# http data as well. Set http_dir to a directory which contains the files you +# wish to serve. If this option is not specified, then no normal http +# connections will be possible. +#http_dir + +# The maximum number of client connections to allow. This is +# a per listener setting. +# Default is -1, which means unlimited connections. +# Note that other process limits mean that unlimited connections +# are not really possible. Typically the default maximum number of +# connections possible is around 1024. +#max_connections -1 + +# Choose the protocol to use when listening. +# This can be either mqtt or websockets. +# Websockets support is currently disabled by default at compile time. +# Certificate based TLS may be used with websockets, except that +# only the cafile, certfile, keyfile and ciphers options are supported. +#protocol mqtt + +# Set use_username_as_clientid to true to replace the clientid that a client +# connected with with its username. This allows authentication to be tied to +# the clientid, which means that it is possible to prevent one client +# disconnecting another by using the same clientid. +# If a client connects with no username it will be disconnected as not +# authorised when this option is set to true. +# Do not use in conjunction with clientid_prefixes. +# See also use_identity_as_username. +#use_username_as_clientid + +# ----------------------------------------------------------------- +# Certificate based SSL/TLS support +# ----------------------------------------------------------------- +# The following options can be used to enable SSL/TLS support for +# this listener. Note that the recommended port for MQTT over TLS +# is 8883, but this must be set manually. +# +# See also the mosquitto-tls man page. + +# At least one of cafile or capath must be defined. They both +# define methods of accessing the PEM encoded Certificate +# Authority certificates that have signed your server certificate +# and that you wish to trust. +# cafile defines the path to a file containing the CA certificates. +# capath defines a directory that will be searched for files +# containing the CA certificates. For capath to work correctly, the +# certificate files must have ".crt" as the file ending and you must run +# "openssl rehash " each time you add/remove a certificate. +#cafile +#capath + +# Path to the PEM encoded server certificate. +#certfile + +# Path to the PEM encoded keyfile. +#keyfile + + +# If you have require_certificate set to true, you can create a certificate +# revocation list file to revoke access to particular client certificates. If +# you have done this, use crlfile to point to the PEM encoded revocation file. +#crlfile + +# If you wish to control which encryption ciphers are used, use the ciphers +# option. The list of available ciphers can be obtained using the "openssl +# ciphers" command and should be provided in the same format as the output of +# that command. +# If unset defaults to DEFAULT:!aNULL:!eNULL:!LOW:!EXPORT:!SSLv2:@STRENGTH +#ciphers DEFAULT:!aNULL:!eNULL:!LOW:!EXPORT:!SSLv2:@STRENGTH + +# To allow the use of ephemeral DH key exchange, which provides forward +# security, the listener must load DH parameters. This can be specified with +# the dhparamfile option. The dhparamfile can be generated with the command +# e.g. "openssl dhparam -out dhparam.pem 2048" +#dhparamfile + +# By default a TLS enabled listener will operate in a similar fashion to a +# https enabled web server, in that the server has a certificate signed by a CA +# and the client will verify that it is a trusted certificate. The overall aim +# is encryption of the network traffic. By setting require_certificate to true, +# the client must provide a valid certificate in order for the network +# connection to proceed. This allows access to the broker to be controlled +# outside of the mechanisms provided by MQTT. +#require_certificate false + +# This option defines the version of the TLS protocol to use for this listener. +# The default value allows all of v1.3, v1.2 and v1.1. The valid values are +# tlsv1.3 tlsv1.2 and tlsv1.1. +#tls_version + +# If require_certificate is true, you may set use_identity_as_username to true +# to use the CN value from the client certificate as a username. If this is +# true, the password_file option will not be used for this listener. +# This takes priority over use_subject_as_username. +# See also use_subject_as_username. +#use_identity_as_username false + +# If require_certificate is true, you may set use_subject_as_username to true +# to use the complete subject value from the client certificate as a username. +# If this is true, the password_file option will not be used for this listener. +# See also use_identity_as_username +#use_subject_as_username false + +# ----------------------------------------------------------------- +# Pre-shared-key based SSL/TLS support +# ----------------------------------------------------------------- +# The following options can be used to enable PSK based SSL/TLS support for +# this listener. Note that the recommended port for MQTT over TLS is 8883, but +# this must be set manually. +# +# See also the mosquitto-tls man page and the "Certificate based SSL/TLS +# support" section. Only one of certificate or PSK encryption support can be +# enabled for any listener. + +# The psk_hint option enables pre-shared-key support for this listener and also +# acts as an identifier for this listener. The hint is sent to clients and may +# be used locally to aid authentication. The hint is a free form string that +# doesn't have much meaning in itself, so feel free to be creative. +# If this option is provided, see psk_file to define the pre-shared keys to be +# used or create a security plugin to handle them. +#psk_hint + +# When using PSK, the encryption ciphers used will be chosen from the list of +# available PSK ciphers. If you want to control which ciphers are available, +# use the "ciphers" option. The list of available ciphers can be obtained +# using the "openssl ciphers" command and should be provided in the same format +# as the output of that command. +#ciphers + +# Set use_identity_as_username to have the psk identity sent by the client used +# as its username. Authentication will be carried out using the PSK rather than +# the MQTT username/password and so password_file will not be used for this +# listener. +#use_identity_as_username false + + +# ================================================================= +# Extra listeners +# ================================================================= + +# Listen on a port/ip address combination. By using this variable +# multiple times, mosquitto can listen on more than one port. If +# this variable is used and neither bind_address nor port given, +# then the default listener will not be started. +# The port number to listen on must be given. Optionally, an ip +# address or host name may be supplied as a second argument. In +# this case, mosquitto will attempt to bind the listener to that +# address and so restrict access to the associated network and +# interface. By default, mosquitto will listen on all interfaces. +# Note that for a websockets listener it is not possible to bind to a host +# name. +# listener port-number [ip address/host name] +#listener + +# Bind the listener to a specific interface. This is similar to +# the [ip address/host name] part of the listener definition, but is useful +# when an interface has multiple addresses or the address may change. It is +# valid to use this with the [ip address/host name] part of the listener +# definition, but take care that the interface you are binding to contains the +# address you are binding to, otherwise you will not be able to connect. +# Only available on Linux and requires elevated privileges. +# +# Example: bind_interface eth0 +#bind_interface + +# When a listener is using the websockets protocol, it is possible to serve +# http data as well. Set http_dir to a directory which contains the files you +# wish to serve. If this option is not specified, then no normal http +# connections will be possible. +#http_dir + +# The maximum number of client connections to allow. This is +# a per listener setting. +# Default is -1, which means unlimited connections. +# Note that other process limits mean that unlimited connections +# are not really possible. Typically the default maximum number of +# connections possible is around 1024. +#max_connections -1 + +# The listener can be restricted to operating within a topic hierarchy using +# the mount_point option. This is achieved be prefixing the mount_point string +# to all topics for any clients connected to this listener. This prefixing only +# happens internally to the broker; the client will not see the prefix. +#mount_point + +# Choose the protocol to use when listening. +# This can be either mqtt or websockets. +# Certificate based TLS may be used with websockets, except that only the +# cafile, certfile, keyfile and ciphers options are supported. +#protocol mqtt + +# Set use_username_as_clientid to true to replace the clientid that a client +# connected with with its username. This allows authentication to be tied to +# the clientid, which means that it is possible to prevent one client +# disconnecting another by using the same clientid. +# If a client connects with no username it will be disconnected as not +# authorised when this option is set to true. +# Do not use in conjunction with clientid_prefixes. +# See also use_identity_as_username. +#use_username_as_clientid + +# Change the websockets headers size. This is a global option, it is not +# possible to set per listener. This option sets the size of the buffer used in +# the libwebsockets library when reading HTTP headers. If you are passing large +# header data such as cookies then you may need to increase this value. If left +# unset, or set to 0, then the default of 1024 bytes will be used. +#websockets_headers_size + +# ----------------------------------------------------------------- +# Certificate based SSL/TLS support +# ----------------------------------------------------------------- +# The following options can be used to enable certificate based SSL/TLS support +# for this listener. Note that the recommended port for MQTT over TLS is 8883, +# but this must be set manually. +# +# See also the mosquitto-tls man page and the "Pre-shared-key based SSL/TLS +# support" section. Only one of certificate or PSK encryption support can be +# enabled for any listener. + +# At least one of cafile or capath must be defined to enable certificate based +# TLS encryption. They both define methods of accessing the PEM encoded +# Certificate Authority certificates that have signed your server certificate +# and that you wish to trust. +# cafile defines the path to a file containing the CA certificates. +# capath defines a directory that will be searched for files +# containing the CA certificates. For capath to work correctly, the +# certificate files must have ".crt" as the file ending and you must run +# "openssl rehash " each time you add/remove a certificate. +#cafile +#capath + +# Path to the PEM encoded server certificate. +#certfile + +# Path to the PEM encoded keyfile. +#keyfile + + +# If you wish to control which encryption ciphers are used, use the ciphers +# option. The list of available ciphers can be optained using the "openssl +# ciphers" command and should be provided in the same format as the output of +# that command. +#ciphers + +# If you have require_certificate set to true, you can create a certificate +# revocation list file to revoke access to particular client certificates. If +# you have done this, use crlfile to point to the PEM encoded revocation file. +#crlfile + +# To allow the use of ephemeral DH key exchange, which provides forward +# security, the listener must load DH parameters. This can be specified with +# the dhparamfile option. The dhparamfile can be generated with the command +# e.g. "openssl dhparam -out dhparam.pem 2048" +#dhparamfile + +# By default an TLS enabled listener will operate in a similar fashion to a +# https enabled web server, in that the server has a certificate signed by a CA +# and the client will verify that it is a trusted certificate. The overall aim +# is encryption of the network traffic. By setting require_certificate to true, +# the client must provide a valid certificate in order for the network +# connection to proceed. This allows access to the broker to be controlled +# outside of the mechanisms provided by MQTT. +#require_certificate false + +# If require_certificate is true, you may set use_identity_as_username to true +# to use the CN value from the client certificate as a username. If this is +# true, the password_file option will not be used for this listener. +#use_identity_as_username false + +# ----------------------------------------------------------------- +# Pre-shared-key based SSL/TLS support +# ----------------------------------------------------------------- +# The following options can be used to enable PSK based SSL/TLS support for +# this listener. Note that the recommended port for MQTT over TLS is 8883, but +# this must be set manually. +# +# See also the mosquitto-tls man page and the "Certificate based SSL/TLS +# support" section. Only one of certificate or PSK encryption support can be +# enabled for any listener. + +# The psk_hint option enables pre-shared-key support for this listener and also +# acts as an identifier for this listener. The hint is sent to clients and may +# be used locally to aid authentication. The hint is a free form string that +# doesn't have much meaning in itself, so feel free to be creative. +# If this option is provided, see psk_file to define the pre-shared keys to be +# used or create a security plugin to handle them. +#psk_hint + +# When using PSK, the encryption ciphers used will be chosen from the list of +# available PSK ciphers. If you want to control which ciphers are available, +# use the "ciphers" option. The list of available ciphers can be optained +# using the "openssl ciphers" command and should be provided in the same format +# as the output of that command. +#ciphers + +# Set use_identity_as_username to have the psk identity sent by the client used +# as its username. Authentication will be carried out using the PSK rather than +# the MQTT username/password and so password_file will not be used for this +# listener. +#use_identity_as_username false + + +# ================================================================= +# Persistence +# ================================================================= + +# If persistence is enabled, save the in-memory database to disk +# every autosave_interval seconds. If set to 0, the persistence +# database will only be written when mosquitto exits. See also +# autosave_on_changes. +# Note that writing of the persistence database can be forced by +# sending mosquitto a SIGUSR1 signal. +#autosave_interval 1800 + +# If true, mosquitto will count the number of subscription changes, retained +# messages received and queued messages and if the total exceeds +# autosave_interval then the in-memory database will be saved to disk. +# If false, mosquitto will save the in-memory database to disk by treating +# autosave_interval as a time in seconds. +#autosave_on_changes false + +# Save persistent message data to disk (true/false). +# This saves information about all messages, including +# subscriptions, currently in-flight messages and retained +# messages. +# retained_persistence is a synonym for this option. +#persistence false + +# The filename to use for the persistent database, not including +# the path. +#persistence_file mosquitto.db + +# Location for persistent database. Must include trailing / +# Default is an empty string (current directory). +# Set to e.g. /var/lib/mosquitto/ if running as a proper service on Linux or +# similar. +#persistence_location + + +# ================================================================= +# Logging +# ================================================================= + +# Places to log to. Use multiple log_dest lines for multiple +# logging destinations. +# Possible destinations are: stdout stderr syslog topic file +# +# stdout and stderr log to the console on the named output. +# +# syslog uses the userspace syslog facility which usually ends up +# in /var/log/messages or similar. +# +# topic logs to the broker topic '$SYS/broker/log/', +# where severity is one of D, E, W, N, I, M which are debug, error, +# warning, notice, information and message. Message type severity is used by +# the subscribe/unsubscribe log_types and publishes log messages to +# $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe. +# +# The file destination requires an additional parameter which is the file to be +# logged to, e.g. "log_dest file /var/log/mosquitto.log". The file will be +# closed and reopened when the broker receives a HUP signal. Only a single file +# destination may be configured. +# +# Note that if the broker is running as a Windows service it will default to +# "log_dest none" and neither stdout nor stderr logging is available. +# Use "log_dest none" if you wish to disable logging. +#log_dest stderr + +# Types of messages to log. Use multiple log_type lines for logging +# multiple types of messages. +# Possible types are: debug, error, warning, notice, information, +# none, subscribe, unsubscribe, websockets, all. +# Note that debug type messages are for decoding the incoming/outgoing +# network packets. They are not logged in "topics". +#log_type error +#log_type warning +#log_type notice +#log_type information + + +# If set to true, client connection and disconnection messages will be included +# in the log. +#connection_messages true + +# If using syslog logging (not on Windows), messages will be logged to the +# "daemon" facility by default. Use the log_facility option to choose which of +# local0 to local7 to log to instead. The option value should be an integer +# value, e.g. "log_facility 5" to use local5. +#log_facility + +# If set to true, add a timestamp value to each log message. +#log_timestamp true + +# Set the format of the log timestamp. If left unset, this is the number of +# seconds since the Unix epoch. +# This is a free text string which will be passed to the strftime function. To +# get an ISO 8601 datetime, for example: +# log_timestamp_format %Y-%m-%dT%H:%M:%S +#log_timestamp_format + +# Change the websockets logging level. This is a global option, it is not +# possible to set per listener. This is an integer that is interpreted by +# libwebsockets as a bit mask for its lws_log_levels enum. See the +# libwebsockets documentation for more details. "log_type websockets" must also +# be enabled. +#websockets_log_level 0 + + +# ================================================================= +# Security +# ================================================================= + +# If set, only clients that have a matching prefix on their +# clientid will be allowed to connect to the broker. By default, +# all clients may connect. +# For example, setting "secure-" here would mean a client "secure- +# client" could connect but another with clientid "mqtt" couldn't. +#clientid_prefixes + +# Boolean value that determines whether clients that connect +# without providing a username are allowed to connect. If set to +# false then a password file should be created (see the +# password_file option) to control authenticated client access. +# +# Defaults to true if no other security options are set. If `password_file` or +# `psk_file` is set, or if an authentication plugin is loaded which implements +# username/password or TLS-PSK checks, then `allow_anonymous` defaults to +# false. +# +allow_anonymous false + +# ----------------------------------------------------------------- +# Default authentication and topic access control +# ----------------------------------------------------------------- + +# Control access to the broker using a password file. This file can be +# generated using the mosquitto_passwd utility. If TLS support is not compiled +# into mosquitto (it is recommended that TLS support should be included) then +# plain text passwords are used, in which case the file should be a text file +# with lines in the format: +# username:password +# The password (and colon) may be omitted if desired, although this +# offers very little in the way of security. +# +# See the TLS client require_certificate and use_identity_as_username options +# for alternative authentication options. If an auth_plugin is used as well as +# password_file, the auth_plugin check will be made first. +#password_file + +# Access may also be controlled using a pre-shared-key file. This requires +# TLS-PSK support and a listener configured to use it. The file should be text +# lines in the format: +# identity:key +# The key should be in hexadecimal format without a leading "0x". +# If an auth_plugin is used as well, the auth_plugin check will be made first. +#psk_file + +# Control access to topics on the broker using an access control list +# file. If this parameter is defined then only the topics listed will +# have access. +# If the first character of a line of the ACL file is a # it is treated as a +# comment. +# Topic access is added with lines of the format: +# +# topic [read|write|readwrite] +# +# The access type is controlled using "read", "write" or "readwrite". This +# parameter is optional (unless contains a space character) - if not +# given then the access is read/write. can contain the + or # +# wildcards as in subscriptions. +# +# The first set of topics are applied to anonymous clients, assuming +# allow_anonymous is true. User specific topic ACLs are added after a +# user line as follows: +# +# user +# +# The username referred to here is the same as in password_file. It is +# not the clientid. +# +# +# If is also possible to define ACLs based on pattern substitution within the +# topic. The patterns available for substition are: +# +# %c to match the client id of the client +# %u to match the username of the client +# +# The substitution pattern must be the only text for that level of hierarchy. +# +# The form is the same as for the topic keyword, but using pattern as the +# keyword. +# Pattern ACLs apply to all users even if the "user" keyword has previously +# been given. +# +# If using bridges with usernames and ACLs, connection messages can be allowed +# with the following pattern: +# pattern write $SYS/broker/connection/%c/state +# +# pattern [read|write|readwrite] +# +# Example: +# +# pattern write sensor/%u/data +# +# If an auth_plugin is used as well as acl_file, the auth_plugin check will be +# made first. +#acl_file + +# ----------------------------------------------------------------- +# External authentication and topic access plugin options +# ----------------------------------------------------------------- + +# External authentication and access control can be supported with the +# auth_plugin option. This is a path to a loadable plugin. See also the +# auth_opt_* options described below. +# +# The auth_plugin option can be specified multiple times to load multiple +# plugins. The plugins will be processed in the order that they are specified +# here. If the auth_plugin option is specified alongside either of +# password_file or acl_file then the plugin checks will be made first. +# +#auth_plugin + +# If the auth_plugin option above is used, define options to pass to the +# plugin here as described by the plugin instructions. All options named +# using the format auth_opt_* will be passed to the plugin, for example: +# +# auth_opt_db_host +# auth_opt_db_port +# auth_opt_db_username +# auth_opt_db_password + + +# ================================================================= +# Bridges +# ================================================================= + +# A bridge is a way of connecting multiple MQTT brokers together. +# Create a new bridge using the "connection" option as described below. Set +# options for the bridges using the remaining parameters. You must specify the +# address and at least one topic to subscribe to. +# +# Each connection must have a unique name. +# +# The address line may have multiple host address and ports specified. See +# below in the round_robin description for more details on bridge behaviour if +# multiple addresses are used. Note that if you use an IPv6 address, then you +# are required to specify a port. +# +# The direction that the topic will be shared can be chosen by +# specifying out, in or both, where the default value is out. +# The QoS level of the bridged communication can be specified with the next +# topic option. The default QoS level is 0, to change the QoS the topic +# direction must also be given. +# +# The local and remote prefix options allow a topic to be remapped when it is +# bridged to/from the remote broker. This provides the ability to place a topic +# tree in an appropriate location. +# +# For more details see the mosquitto.conf man page. +# +# Multiple topics can be specified per connection, but be careful +# not to create any loops. +# +# If you are using bridges with cleansession set to false (the default), then +# you may get unexpected behaviour from incoming topics if you change what +# topics you are subscribing to. This is because the remote broker keeps the +# subscription for the old topic. If you have this problem, connect your bridge +# with cleansession set to true, then reconnect with cleansession set to false +# as normal. +#connection +#address [:] [[:]] +#topic [[[out | in | both] qos-level] local-prefix remote-prefix] + + +# If a bridge has topics that have "out" direction, the default behaviour is to +# send an unsubscribe request to the remote broker on that topic. This means +# that changing a topic direction from "in" to "out" will not keep receiving +# incoming messages. Sending these unsubscribe requests is not always +# desirable, setting bridge_attempt_unsubscribe to false will disable sending +# the unsubscribe request. +#bridge_attempt_unsubscribe true + +# Set the version of the MQTT protocol to use with for this bridge. Can be one +# of mqttv311 or mqttv11. Defaults to mqttv311. +#bridge_protocol_version mqttv311 + +# Set the clean session variable for this bridge. +# When set to true, when the bridge disconnects for any reason, all +# messages and subscriptions will be cleaned up on the remote +# broker. Note that with cleansession set to true, there may be a +# significant amount of retained messages sent when the bridge +# reconnects after losing its connection. +# When set to false, the subscriptions and messages are kept on the +# remote broker, and delivered when the bridge reconnects. +#cleansession false + +# Set the amount of time a bridge using the lazy start type must be idle before +# it will be stopped. Defaults to 60 seconds. +#idle_timeout 60 + +# Set the keepalive interval for this bridge connection, in +# seconds. +#keepalive_interval 60 + +# Set the clientid to use on the local broker. If not defined, this defaults to +# 'local.'. If you are bridging a broker to itself, it is important +# that local_clientid and clientid do not match. +#local_clientid + +# If set to true, publish notification messages to the local and remote brokers +# giving information about the state of the bridge connection. Retained +# messages are published to the topic $SYS/broker/connection//state +# unless the notification_topic option is used. +# If the message is 1 then the connection is active, or 0 if the connection has +# failed. +# This uses the last will and testament feature. +#notifications true + +# Choose the topic on which notification messages for this bridge are +# published. If not set, messages are published on the topic +# $SYS/broker/connection//state +#notification_topic + +# Set the client id to use on the remote end of this bridge connection. If not +# defined, this defaults to 'name.hostname' where name is the connection name +# and hostname is the hostname of this computer. +# This replaces the old "clientid" option to avoid confusion. "clientid" +# remains valid for the time being. +#remote_clientid + +# Set the password to use when connecting to a broker that requires +# authentication. This option is only used if remote_username is also set. +# This replaces the old "password" option to avoid confusion. "password" +# remains valid for the time being. +#remote_password + +# Set the username to use when connecting to a broker that requires +# authentication. +# This replaces the old "username" option to avoid confusion. "username" +# remains valid for the time being. +#remote_username + +# Set the amount of time a bridge using the automatic start type will wait +# until attempting to reconnect. +# This option can be configured to use a constant delay time in seconds, or to +# use a backoff mechanism based on "Decorrelated Jitter", which adds a degree +# of randomness to when the restart occurs. +# +# Set a constant timeout of 20 seconds: +# restart_timeout 20 +# +# Set backoff with a base (start value) of 10 seconds and a cap (upper limit) of +# 60 seconds: +# restart_timeout 10 30 +# +# Defaults to jitter with a base of 5 and cap of 30 +#restart_timeout 5 30 + +# If the bridge has more than one address given in the address/addresses +# configuration, the round_robin option defines the behaviour of the bridge on +# a failure of the bridge connection. If round_robin is false, the default +# value, then the first address is treated as the main bridge connection. If +# the connection fails, the other secondary addresses will be attempted in +# turn. Whilst connected to a secondary bridge, the bridge will periodically +# attempt to reconnect to the main bridge until successful. +# If round_robin is true, then all addresses are treated as equals. If a +# connection fails, the next address will be tried and if successful will +# remain connected until it fails +#round_robin false + +# Set the start type of the bridge. This controls how the bridge starts and +# can be one of three types: automatic, lazy and once. Note that RSMB provides +# a fourth start type "manual" which isn't currently supported by mosquitto. +# +# "automatic" is the default start type and means that the bridge connection +# will be started automatically when the broker starts and also restarted +# after a short delay (30 seconds) if the connection fails. +# +# Bridges using the "lazy" start type will be started automatically when the +# number of queued messages exceeds the number set with the "threshold" +# parameter. It will be stopped automatically after the time set by the +# "idle_timeout" parameter. Use this start type if you wish the connection to +# only be active when it is needed. +# +# A bridge using the "once" start type will be started automatically when the +# broker starts but will not be restarted if the connection fails. +#start_type automatic + +# Set the number of messages that need to be queued for a bridge with lazy +# start type to be restarted. Defaults to 10 messages. +# Must be less than max_queued_messages. +#threshold 10 + +# If try_private is set to true, the bridge will attempt to indicate to the +# remote broker that it is a bridge not an ordinary client. If successful, this +# means that loop detection will be more effective and that retained messages +# will be propagated correctly. Not all brokers support this feature so it may +# be necessary to set try_private to false if your bridge does not connect +# properly. +#try_private true + +# ----------------------------------------------------------------- +# Certificate based SSL/TLS support +# ----------------------------------------------------------------- +# Either bridge_cafile or bridge_capath must be defined to enable TLS support +# for this bridge. +# bridge_cafile defines the path to a file containing the +# Certificate Authority certificates that have signed the remote broker +# certificate. +# bridge_capath defines a directory that will be searched for files containing +# the CA certificates. For bridge_capath to work correctly, the certificate +# files must have ".crt" as the file ending and you must run "openssl rehash +# " each time you add/remove a certificate. +#bridge_cafile +#bridge_capath + + +# If the remote broker has more than one protocol available on its port, e.g. +# MQTT and WebSockets, then use bridge_alpn to configure which protocol is +# requested. Note that WebSockets support for bridges is not yet available. +#bridge_alpn + +# When using certificate based encryption, bridge_insecure disables +# verification of the server hostname in the server certificate. This can be +# useful when testing initial server configurations, but makes it possible for +# a malicious third party to impersonate your server through DNS spoofing, for +# example. Use this option in testing only. If you need to resort to using this +# option in a production environment, your setup is at fault and there is no +# point using encryption. +#bridge_insecure false + +# Path to the PEM encoded client certificate, if required by the remote broker. +#bridge_certfile + +# Path to the PEM encoded client private key, if required by the remote broker. +#bridge_keyfile + +# ----------------------------------------------------------------- +# PSK based SSL/TLS support +# ----------------------------------------------------------------- +# Pre-shared-key encryption provides an alternative to certificate based +# encryption. A bridge can be configured to use PSK with the bridge_identity +# and bridge_psk options. These are the client PSK identity, and pre-shared-key +# in hexadecimal format with no "0x". Only one of certificate and PSK based +# encryption can be used on one +# bridge at once. +#bridge_identity +#bridge_psk + + +# ================================================================= +# External config files +# ================================================================= + +# External configuration files may be included by using the +# include_dir option. This defines a directory that will be searched +# for config files. All files that end in '.conf' will be loaded as +# a configuration file. It is best to have this as the last option +# in the main file. This option will only be processed from the main +# configuration file. The directory specified must not contain the +# main configuration file. +# Files within include_dir will be loaded sorted in case-sensitive +# alphabetical order, with capital letters ordered first. If this option is +# given multiple times, all of the files from the first instance will be +# processed before the next instance. See the man page for examples. +#include_dir diff --git a/mosquitto/rootfs/config/passwordfile b/mosquitto/rootfs/config/passwordfile new file mode 100644 index 0000000..217db5e --- /dev/null +++ b/mosquitto/rootfs/config/passwordfile @@ -0,0 +1 @@ +open:$6$Pb+KcS4nr9+8PRaJ$yVc9n7GDolYbuv3Yaszf/OfN6P3QGWs2VD37Q8euZsUp7cfO/fOy7uKcRw9zJ0HJRYP5KVs7DXt/otgZvGP0pQ== \ No newline at end of file diff --git a/nodered/Dockerfile b/nodered/Dockerfile new file mode 100755 index 0000000..c48d150 --- /dev/null +++ b/nodered/Dockerfile @@ -0,0 +1,27 @@ +FROM nodered/node-red:latest +ARG MQTT_URL +ARG MYSQL_URL +ARG MYSQL_DATABASE +ARG INFLUXDB_USER +ARG INFLUXDB_USER_PASSWORD +ARG INFLUXDB_DB +ARG INFLUX_URL + + +ENV MQTT_URL $MQTT_URL +ENV MYSQL_URL $MYSQL_URL +ENV MYSQL_DATABASE $MYSQL_DATABASE +ENV INFLUXDB_USER $INFLUXDB_USER +ENV INFLUXDB_USER_PASSWORD $INFLUXDB_USER_PASSWORD +ENV INFLUXDB_DB $INFLUXDB_DB +ENV INFLUX_URL $INFLUX_URL + + +RUN chown 1000:1000 /data +COPY --chown=1000:1000 rootfs/data /data +RUN sed -i 's/iot.valki.com/'"$MQTT_URL"'/g' /data/flows.json +RUN sed -i 's/\"db.valki.com\"/\"'"$MYSQL_URL"\"'/g' /data/flows.json +RUN sed -i 's/nodered/'"$MYSQL_DATABASE"'/g' /data/flows.json +RUN sed -i 's/influxdb.valki.com/'"$INFLUX_URL"'/g' /data/flows.json +RUN sed -i 's/\"database\":\"openAger\"/\"database\":\"'"$INFLUXDB_DB"\"'/g' /data/flows.json + diff --git a/nodered/Makefile b/nodered/Makefile new file mode 100755 index 0000000..e41cb9e --- /dev/null +++ b/nodered/Makefile @@ -0,0 +1,4 @@ +build: + docker build $(BUILD_ARGS) -t $(OPENAGER_REPO)/nodered . + +.PHONY: build diff --git a/nodered/rootfs/data/.config.json b/nodered/rootfs/data/.config.json new file mode 100755 index 0000000..0715f5e --- /dev/null +++ b/nodered/rootfs/data/.config.json @@ -0,0 +1,805 @@ +{ + "nodes": { + "node-red": { + "name": "node-red", + "version": "1.1.3", + "local": false, + "nodes": { + "inject": { + "name": "inject", + "types": [ + "inject" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/20-inject.js" + }, + "debug": { + "name": "debug", + "types": [ + "debug" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/21-debug.js" + }, + "complete": { + "name": "complete", + "types": [ + "complete" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/24-complete.js" + }, + "catch": { + "name": "catch", + "types": [ + "catch" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/25-catch.js" + }, + "status": { + "name": "status", + "types": [ + "status" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/25-status.js" + }, + "link": { + "name": "link", + "types": [ + "link in", + "link out" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/60-link.js" + }, + "comment": { + "name": "comment", + "types": [ + "comment" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/90-comment.js" + }, + "unknown": { + "name": "unknown", + "types": [ + "unknown" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/98-unknown.js" + }, + "function": { + "name": "function", + "types": [ + "function" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/10-function.js" + }, + "switch": { + "name": "switch", + "types": [ + "switch" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/10-switch.js" + }, + "change": { + "name": "change", + "types": [ + "change" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/15-change.js" + }, + "range": { + "name": "range", + "types": [ + "range" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/16-range.js" + }, + "template": { + "name": "template", + "types": [ + "template" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/80-template.js" + }, + "delay": { + "name": "delay", + "types": [ + "delay" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/89-delay.js" + }, + "trigger": { + "name": "trigger", + "types": [ + "trigger" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/89-trigger.js" + }, + "exec": { + "name": "exec", + "types": [ + "exec" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/90-exec.js" + }, + "tls": { + "name": "tls", + "types": [ + "tls-config" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/05-tls.js" + }, + "httpproxy": { + "name": "httpproxy", + "types": [ + "http proxy" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/06-httpproxy.js" + }, + "mqtt": { + "name": "mqtt", + "types": [ + "mqtt in", + "mqtt out", + "mqtt-broker" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/10-mqtt.js" + }, + "httpin": { + "name": "httpin", + "types": [ + "http in", + "http response" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/21-httpin.js" + }, + "httprequest": { + "name": "httprequest", + "types": [ + "http request" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/21-httprequest.js" + }, + "websocket": { + "name": "websocket", + "types": [ + "websocket in", + "websocket out", + "websocket-listener", + "websocket-client" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/22-websocket.js" + }, + "tcpin": { + "name": "tcpin", + "types": [ + "tcp in", + "tcp out", + "tcp request" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/31-tcpin.js" + }, + "udp": { + "name": "udp", + "types": [ + "udp in", + "udp out" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/32-udp.js" + }, + "CSV": { + "name": "CSV", + "types": [ + "csv" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-CSV.js" + }, + "HTML": { + "name": "HTML", + "types": [ + "html" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-HTML.js" + }, + "JSON": { + "name": "JSON", + "types": [ + "json" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-JSON.js" + }, + "XML": { + "name": "XML", + "types": [ + "xml" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-XML.js" + }, + "YAML": { + "name": "YAML", + "types": [ + "yaml" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-YAML.js" + }, + "split": { + "name": "split", + "types": [ + "split", + "join" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/sequence/17-split.js" + }, + "sort": { + "name": "sort", + "types": [ + "sort" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/sequence/18-sort.js" + }, + "batch": { + "name": "batch", + "types": [ + "batch" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/sequence/19-batch.js" + }, + "file": { + "name": "file", + "types": [ + "file", + "file in" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/storage/10-file.js" + }, + "watch": { + "name": "watch", + "types": [ + "watch" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/storage/23-watch.js" + } + } + }, + "node-red-node-rbe": { + "name": "node-red-node-rbe", + "version": "0.2.9", + "local": false, + "nodes": { + "rbe": { + "name": "rbe", + "types": [ + "rbe" + ], + "enabled": true, + "local": false, + "module": "node-red-node-rbe", + "file": "/usr/src/node-red/node_modules/node-red-node-rbe/rbe.js" + } + } + }, + "node-red-node-tail": { + "name": "node-red-node-tail", + "version": "0.1.1", + "local": true, + "nodes": { + "tail": { + "name": "tail", + "types": [ + "tail" + ], + "enabled": true, + "local": true, + "module": "node-red-node-tail", + "file": "/data/node_modules/node-red-node-tail/28-tail.js" + } + } + }, + "node-red-node-email": { + "name": "node-red-node-email", + "version": "1.7.3", + "local": true, + "nodes": { + "email": { + "name": "email", + "types": [ + "e-mail", + "e-mail in" + ], + "enabled": true, + "local": true, + "module": "node-red-node-email", + "file": "/data/node_modules/node-red-node-email/61-email.js" + } + } + }, + "node-red-dashboard": { + "name": "node-red-dashboard", + "version": "2.19.3", + "local": true, + "nodes": { + "ui_base": { + "name": "ui_base", + "types": [ + "ui_base" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_base.js" + }, + "ui_button": { + "name": "ui_button", + "types": [ + "ui_button" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_button.js" + }, + "ui_dropdown": { + "name": "ui_dropdown", + "types": [ + "ui_dropdown" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_dropdown.js" + }, + "ui_switch": { + "name": "ui_switch", + "types": [ + "ui_switch" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_switch.js" + }, + "ui_slider": { + "name": "ui_slider", + "types": [ + "ui_slider" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_slider.js" + }, + "ui_numeric": { + "name": "ui_numeric", + "types": [ + "ui_numeric" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_numeric.js" + }, + "ui_text_input": { + "name": "ui_text_input", + "types": [ + "ui_text_input" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_text_input.js" + }, + "ui_date_picker": { + "name": "ui_date_picker", + "types": [ + "ui_date_picker" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_date_picker.js" + }, + "ui_colour_picker": { + "name": "ui_colour_picker", + "types": [ + "ui_colour_picker" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_colour_picker.js" + }, + "ui_form": { + "name": "ui_form", + "types": [ + "ui_form" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_form.js" + }, + "ui_text": { + "name": "ui_text", + "types": [ + "ui_text" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_text.js" + }, + "ui_gauge": { + "name": "ui_gauge", + "types": [ + "ui_gauge" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_gauge.js" + }, + "ui_chart": { + "name": "ui_chart", + "types": [ + "ui_chart" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_chart.js" + }, + "ui_audio": { + "name": "ui_audio", + "types": [ + "ui_audio" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_audio.js" + }, + "ui_toast": { + "name": "ui_toast", + "types": [ + "ui_toast" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_toast.js" + }, + "ui_ui_control": { + "name": "ui_ui_control", + "types": [ + "ui_ui_control" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_ui_control.js" + }, + "ui_template": { + "name": "ui_template", + "types": [ + "ui_template" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_template.js" + }, + "ui_link": { + "name": "ui_link", + "types": [ + "ui_link" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_link.js" + }, + "ui_tab": { + "name": "ui_tab", + "types": [ + "ui_tab" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_tab.js" + }, + "ui_group": { + "name": "ui_group", + "types": [ + "ui_group" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_group.js" + }, + "ui_spacer": { + "name": "ui_spacer", + "types": [ + "ui_spacer" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_spacer.js" + } + } + }, + "node-red-node-mysql": { + "name": "node-red-node-mysql", + "version": "0.0.19", + "local": true, + "nodes": { + "mysql": { + "name": "mysql", + "types": [ + "MySQLdatabase", + "mysql" + ], + "enabled": true, + "local": true, + "module": "node-red-node-mysql", + "file": "/data/node_modules/node-red-node-mysql/68-mysql.js" + } + } + }, + "node-red-contrib-moment": { + "name": "node-red-contrib-moment", + "version": "3.0.3", + "local": true, + "nodes": { + "moment": { + "name": "moment", + "types": [ + "moment" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-moment", + "file": "/data/node_modules/node-red-contrib-moment/moment/nrmoment.js" + }, + "humanizer": { + "name": "humanizer", + "types": [ + "humanizer" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-moment", + "file": "/data/node_modules/node-red-contrib-moment/moment/nrhumanizer.js" + } + } + }, + "node-red-contrib-throttle": { + "name": "node-red-contrib-throttle", + "version": "0.1.6", + "local": true, + "nodes": { + "throttle": { + "name": "throttle", + "types": [ + "throttle" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-throttle", + "file": "/data/node_modules/node-red-contrib-throttle/throttle.js" + } + } + }, + "node-red-contrib-msg-speed": { + "name": "node-red-contrib-msg-speed", + "version": "0.0.5", + "local": true, + "nodes": { + "msg-speed": { + "name": "msg-speed", + "types": [ + "msg-speed" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-msg-speed", + "file": "/data/node_modules/node-red-contrib-msg-speed/msg_speed.js" + } + } + }, + "node-red-contrib-telegrambot": { + "name": "node-red-contrib-telegrambot", + "version": "7.1.1", + "local": true, + "nodes": { + "telegrambot": { + "name": "telegrambot", + "types": [ + "telegram bot", + "telegram receiver", + "telegram command", + "telegram event", + "telegram sender", + "telegram reply" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot", + "file": "/data/node_modules/node-red-contrib-telegrambot/telegrambot/99-telegrambot.js" + } + } + }, + "node-red-contrib-telegrambot-home": { + "name": "node-red-contrib-telegrambot-home", + "version": "0.5.2", + "local": true, + "nodes": { + "bot": { + "name": "bot", + "types": [ + "telegrambot-config" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/bot-config/bot-config.js" + }, + "command": { + "name": "command", + "types": [ + "telegrambot-command" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/command/command.js" + }, + "switch": { + "name": "switch", + "types": [ + "telegrambot-switch" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/switch/switch.js" + }, + "notify": { + "name": "notify", + "types": [ + "telegrambot-notify" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/notify/notify.js" + }, + "payload": { + "name": "payload", + "types": [ + "telegrambot-payload" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/payload/payload.js" + } + } + } + }, + "users": { + "admin": { + "editor": { + "view": { + "view-show-grid": true, + "view-snap-grid": true, + "view-grid-size": "20", + "view-node-status": true, + "view-node-show-label": true, + "view-show-tips": true + } + }, + "menu-menu-item-sidebar": true + } + } +} \ No newline at end of file diff --git a/nodered/rootfs/data/.config.nodes.json b/nodered/rootfs/data/.config.nodes.json new file mode 100755 index 0000000..af38503 --- /dev/null +++ b/nodered/rootfs/data/.config.nodes.json @@ -0,0 +1,808 @@ +{ + "node-red": { + "name": "node-red", + "version": "1.2.1", + "local": false, + "nodes": { + "inject": { + "name": "inject", + "types": [ + "inject" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/20-inject.js" + }, + "debug": { + "name": "debug", + "types": [ + "debug" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/21-debug.js" + }, + "complete": { + "name": "complete", + "types": [ + "complete" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/24-complete.js" + }, + "catch": { + "name": "catch", + "types": [ + "catch" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/25-catch.js" + }, + "status": { + "name": "status", + "types": [ + "status" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/25-status.js" + }, + "link": { + "name": "link", + "types": [ + "link in", + "link out" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/60-link.js" + }, + "comment": { + "name": "comment", + "types": [ + "comment" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/90-comment.js" + }, + "unknown": { + "name": "unknown", + "types": [ + "unknown" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/common/98-unknown.js" + }, + "function": { + "name": "function", + "types": [ + "function" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/10-function.js" + }, + "switch": { + "name": "switch", + "types": [ + "switch" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/10-switch.js" + }, + "change": { + "name": "change", + "types": [ + "change" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/15-change.js" + }, + "range": { + "name": "range", + "types": [ + "range" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/16-range.js" + }, + "template": { + "name": "template", + "types": [ + "template" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/80-template.js" + }, + "delay": { + "name": "delay", + "types": [ + "delay" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/89-delay.js" + }, + "trigger": { + "name": "trigger", + "types": [ + "trigger" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/89-trigger.js" + }, + "exec": { + "name": "exec", + "types": [ + "exec" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/function/90-exec.js" + }, + "tls": { + "name": "tls", + "types": [ + "tls-config" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/05-tls.js" + }, + "httpproxy": { + "name": "httpproxy", + "types": [ + "http proxy" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/06-httpproxy.js" + }, + "mqtt": { + "name": "mqtt", + "types": [ + "mqtt in", + "mqtt out", + "mqtt-broker" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/10-mqtt.js" + }, + "httpin": { + "name": "httpin", + "types": [ + "http in", + "http response" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/21-httpin.js" + }, + "httprequest": { + "name": "httprequest", + "types": [ + "http request" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/21-httprequest.js" + }, + "websocket": { + "name": "websocket", + "types": [ + "websocket in", + "websocket out", + "websocket-listener", + "websocket-client" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/22-websocket.js" + }, + "tcpin": { + "name": "tcpin", + "types": [ + "tcp in", + "tcp out", + "tcp request" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/31-tcpin.js" + }, + "udp": { + "name": "udp", + "types": [ + "udp in", + "udp out" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/network/32-udp.js" + }, + "CSV": { + "name": "CSV", + "types": [ + "csv" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-CSV.js" + }, + "HTML": { + "name": "HTML", + "types": [ + "html" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-HTML.js" + }, + "JSON": { + "name": "JSON", + "types": [ + "json" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-JSON.js" + }, + "XML": { + "name": "XML", + "types": [ + "xml" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-XML.js" + }, + "YAML": { + "name": "YAML", + "types": [ + "yaml" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/parsers/70-YAML.js" + }, + "split": { + "name": "split", + "types": [ + "split", + "join" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/sequence/17-split.js" + }, + "sort": { + "name": "sort", + "types": [ + "sort" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/sequence/18-sort.js" + }, + "batch": { + "name": "batch", + "types": [ + "batch" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/sequence/19-batch.js" + }, + "file": { + "name": "file", + "types": [ + "file", + "file in" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/storage/10-file.js" + }, + "watch": { + "name": "watch", + "types": [ + "watch" + ], + "enabled": true, + "local": false, + "module": "node-red", + "file": "/usr/src/node-red/node_modules/@node-red/nodes/core/storage/23-watch.js" + } + } + }, + "node-red-node-rbe": { + "name": "node-red-node-rbe", + "version": "0.2.9", + "local": false, + "nodes": { + "rbe": { + "name": "rbe", + "types": [ + "rbe" + ], + "enabled": true, + "local": false, + "module": "node-red-node-rbe", + "file": "/usr/src/node-red/node_modules/node-red-node-rbe/rbe.js" + } + } + }, + "node-red-node-tail": { + "name": "node-red-node-tail", + "version": "0.1.1", + "local": true, + "nodes": { + "tail": { + "name": "tail", + "types": [ + "tail" + ], + "enabled": true, + "local": true, + "module": "node-red-node-tail", + "file": "/data/node_modules/node-red-node-tail/28-tail.js" + } + } + }, + "node-red-node-email": { + "name": "node-red-node-email", + "version": "1.7.3", + "local": true, + "nodes": { + "email": { + "name": "email", + "types": [ + "e-mail", + "e-mail in" + ], + "enabled": true, + "local": true, + "module": "node-red-node-email", + "file": "/data/node_modules/node-red-node-email/61-email.js" + } + } + }, + "node-red-dashboard": { + "name": "node-red-dashboard", + "version": "2.19.3", + "local": true, + "nodes": { + "ui_base": { + "name": "ui_base", + "types": [ + "ui_base" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_base.js" + }, + "ui_button": { + "name": "ui_button", + "types": [ + "ui_button" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_button.js" + }, + "ui_dropdown": { + "name": "ui_dropdown", + "types": [ + "ui_dropdown" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_dropdown.js" + }, + "ui_switch": { + "name": "ui_switch", + "types": [ + "ui_switch" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_switch.js" + }, + "ui_slider": { + "name": "ui_slider", + "types": [ + "ui_slider" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_slider.js" + }, + "ui_numeric": { + "name": "ui_numeric", + "types": [ + "ui_numeric" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_numeric.js" + }, + "ui_text_input": { + "name": "ui_text_input", + "types": [ + "ui_text_input" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_text_input.js" + }, + "ui_date_picker": { + "name": "ui_date_picker", + "types": [ + "ui_date_picker" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_date_picker.js" + }, + "ui_colour_picker": { + "name": "ui_colour_picker", + "types": [ + "ui_colour_picker" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_colour_picker.js" + }, + "ui_form": { + "name": "ui_form", + "types": [ + "ui_form" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_form.js" + }, + "ui_text": { + "name": "ui_text", + "types": [ + "ui_text" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_text.js" + }, + "ui_gauge": { + "name": "ui_gauge", + "types": [ + "ui_gauge" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_gauge.js" + }, + "ui_chart": { + "name": "ui_chart", + "types": [ + "ui_chart" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_chart.js" + }, + "ui_audio": { + "name": "ui_audio", + "types": [ + "ui_audio" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_audio.js" + }, + "ui_toast": { + "name": "ui_toast", + "types": [ + "ui_toast" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_toast.js" + }, + "ui_ui_control": { + "name": "ui_ui_control", + "types": [ + "ui_ui_control" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_ui_control.js" + }, + "ui_template": { + "name": "ui_template", + "types": [ + "ui_template" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_template.js" + }, + "ui_link": { + "name": "ui_link", + "types": [ + "ui_link" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_link.js" + }, + "ui_tab": { + "name": "ui_tab", + "types": [ + "ui_tab" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_tab.js" + }, + "ui_group": { + "name": "ui_group", + "types": [ + "ui_group" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_group.js" + }, + "ui_spacer": { + "name": "ui_spacer", + "types": [ + "ui_spacer" + ], + "enabled": true, + "local": true, + "module": "node-red-dashboard", + "file": "/data/node_modules/node-red-dashboard/nodes/ui_spacer.js" + } + } + }, + "node-red-node-mysql": { + "name": "node-red-node-mysql", + "version": "0.0.19", + "local": true, + "nodes": { + "mysql": { + "name": "mysql", + "types": [ + "MySQLdatabase", + "mysql" + ], + "enabled": true, + "local": true, + "module": "node-red-node-mysql", + "file": "/data/node_modules/node-red-node-mysql/68-mysql.js" + } + } + }, + "node-red-contrib-moment": { + "name": "node-red-contrib-moment", + "version": "3.0.3", + "local": true, + "nodes": { + "moment": { + "name": "moment", + "types": [ + "moment" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-moment", + "file": "/data/node_modules/node-red-contrib-moment/moment/nrmoment.js" + }, + "humanizer": { + "name": "humanizer", + "types": [ + "humanizer" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-moment", + "file": "/data/node_modules/node-red-contrib-moment/moment/nrhumanizer.js" + } + } + }, + "node-red-contrib-throttle": { + "name": "node-red-contrib-throttle", + "version": "0.1.6", + "local": true, + "nodes": { + "throttle": { + "name": "throttle", + "types": [ + "throttle" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-throttle", + "file": "/data/node_modules/node-red-contrib-throttle/throttle.js" + } + } + }, + "node-red-contrib-msg-speed": { + "name": "node-red-contrib-msg-speed", + "version": "0.0.5", + "local": true, + "nodes": { + "msg-speed": { + "name": "msg-speed", + "types": [ + "msg-speed" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-msg-speed", + "file": "/data/node_modules/node-red-contrib-msg-speed/msg_speed.js" + } + } + }, + "node-red-contrib-telegrambot": { + "name": "node-red-contrib-telegrambot", + "version": "7.1.1", + "local": true, + "nodes": { + "telegrambot": { + "name": "telegrambot", + "types": [ + "telegram bot", + "telegram receiver", + "telegram command", + "telegram event", + "telegram sender", + "telegram reply" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot", + "file": "/data/node_modules/node-red-contrib-telegrambot/telegrambot/99-telegrambot.js" + } + } + }, + "node-red-contrib-telegrambot-home": { + "name": "node-red-contrib-telegrambot-home", + "version": "0.5.2", + "local": true, + "nodes": { + "bot": { + "name": "bot", + "types": [ + "telegrambot-config" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/bot-config/bot-config.js" + }, + "command": { + "name": "command", + "types": [ + "telegrambot-command" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/command/command.js" + }, + "switch": { + "name": "switch", + "types": [ + "telegrambot-switch" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/switch/switch.js" + }, + "notify": { + "name": "notify", + "types": [ + "telegrambot-notify" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/notify/notify.js" + }, + "payload": { + "name": "payload", + "types": [ + "telegrambot-payload" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-telegrambot-home", + "file": "/data/node_modules/node-red-contrib-telegrambot-home/nodes/payload/payload.js" + } + } + }, + "node-red-contrib-influxdb": { + "name": "node-red-contrib-influxdb", + "version": "0.4.1", + "local": true, + "nodes": { + "influxdb": { + "name": "influxdb", + "types": [ + "influxdb", + "influxdb out", + "influxdb batch", + "influxdb in" + ], + "enabled": true, + "local": true, + "module": "node-red-contrib-influxdb", + "file": "/data/node_modules/node-red-contrib-influxdb/influxdb.js" + } + } + } +} \ No newline at end of file diff --git a/nodered/rootfs/data/.config.projects.json b/nodered/rootfs/data/.config.projects.json new file mode 100755 index 0000000..9e26dfe --- /dev/null +++ b/nodered/rootfs/data/.config.projects.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/nodered/rootfs/data/.config.runtime.json b/nodered/rootfs/data/.config.runtime.json new file mode 100755 index 0000000..9e26dfe --- /dev/null +++ b/nodered/rootfs/data/.config.runtime.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/nodered/rootfs/data/.config.users.json b/nodered/rootfs/data/.config.users.json new file mode 100755 index 0000000..23e9727 --- /dev/null +++ b/nodered/rootfs/data/.config.users.json @@ -0,0 +1,17 @@ +{ + "admin": { + "editor": { + "view": { + "view-show-grid": true, + "view-snap-grid": true, + "view-grid-size": "20", + "view-node-status": true, + "view-node-show-label": true, + "view-show-tips": true + } + }, + "menu-menu-item-sidebar": true, + "menu-deploymenu-item-flow": false, + "menu-deploymenu-item-full": true + } +} \ No newline at end of file diff --git a/nodered/rootfs/data/flows.json b/nodered/rootfs/data/flows.json new file mode 100755 index 0000000..7a3f3d3 --- /dev/null +++ b/nodered/rootfs/data/flows.json @@ -0,0 +1 @@ +[{"id":"bfb0b9c4.4e1408","type":"tab","label":"OpenAger","disabled":false,"info":""},{"id":"efbc7696.354458","type":"subflow","name":"DashBoard","info":"","in":[],"out":[{"x":1440,"y":260,"wires":[]},{"x":240,"y":20,"wires":[]}]},{"id":"2a3766ff.038c4a","type":"subflow","name":"Aging_6W","info":"","in":[{"x":80,"y":240,"wires":[{"id":"83d0caf4.339f28"}]}],"out":[{"x":1540,"y":440,"wires":[{"id":"2f44d915.2e19c6","port":0},{"id":"800fdb5d.0a1af8","port":0},{"id":"44cde4f9.bd9cfc","port":0},{"id":"e55f99e0.2bc5d8","port":0},{"id":"e6cefa25.cfff58","port":0},{"id":"306cd77d.bbba98","port":0},{"id":"9f261ee6.5b263","port":0},{"id":"44d4c8e1.05fdd8","port":0},{"id":"6c532696.285458","port":0},{"id":"e82ecb2d.55bb88","port":0},{"id":"7147e8ca.46bc78","port":0}]}]},{"id":"acee58da.9b1998","type":"subflow","name":"Aging_8W","info":"","in":[{"x":60,"y":140,"wires":[{"id":"c7c4b82f.246598"}]}],"out":[{"x":1280,"y":520,"wires":[{"id":"51c2a2b3.38cdbc","port":0},{"id":"eff7a6a6.8cbb28","port":0},{"id":"58b08142.347cc","port":0},{"id":"623f070f.357158","port":0},{"id":"51fd7786.ea91a8","port":0},{"id":"e7458a57.feafc8","port":0},{"id":"c8290c74.3e776","port":0},{"id":"ec8f26eb.d2cdc8","port":0},{"id":"f8b84854.7649d8","port":0},{"id":"9a11a6af.29eed8","port":0},{"id":"639f7dec.426074","port":0},{"id":"817febc.bfb5e18","port":0},{"id":"752bd367.59bf2c","port":0}]}]},{"id":"533bb4f2.f3493c","type":"subflow","name":"Manuell","info":"","in":[{"x":40,"y":40,"wires":[{"id":"54c5a54e.1eacfc"}]}],"out":[{"x":500,"y":40,"wires":[{"id":"54c5a54e.1eacfc","port":0}]}]},{"id":"58f7dc96.300d44","type":"subflow","name":"Speck","info":"","in":[{"x":60,"y":240,"wires":[{"id":"d520ea5b.d49528"}]}],"out":[{"x":1420,"y":620,"wires":[{"id":"91004e06.de7ed","port":0},{"id":"30ce3567.ea8ffa","port":0},{"id":"517246ed.ac6eb8","port":0},{"id":"41a8dd64.285414","port":0},{"id":"ad0cba22.186628","port":0}]}]},{"id":"14f8e14b.f5db7f","type":"subflow","name":"Override","info":"","in":[{"x":50,"y":30,"wires":[]}],"out":[]},{"id":"37fce5bb.18d03a","type":"subflow","name":"Test_6W","info":"","in":[{"x":80,"y":280,"wires":[{"id":"18b1ebc6.2bf6b4"}]}],"out":[{"x":1760,"y":500,"wires":[{"id":"ecf2c17f.474c5","port":0},{"id":"7941a271.22490c","port":0},{"id":"44463589.dd5e2c","port":0},{"id":"61af5b93.e11b34","port":0},{"id":"2d22ebe9.1c64e4","port":0},{"id":"5b5c3114.9cbbb","port":0},{"id":"b5670245.b7064","port":0},{"id":"aa815c3f.d8875","port":0},{"id":"7468fdad.ecbb94","port":0},{"id":"e4218595.e63ab8","port":0},{"id":"98cff5a3.9b1638","port":0}]}]},{"id":"f44824d.57101d8","type":"subflow","name":"Bruno 7 Wochen","info":"","in":[{"x":100,"y":160,"wires":[{"id":"685589b6.4e19f8"}]}],"out":[{"x":1280,"y":220,"wires":[{"id":"d0b0bdae.3dab5","port":0},{"id":"600b186b.af6308","port":0},{"id":"f2d99b09.d996c8","port":0}]}]},{"id":"91eb6541.4fd558","type":"subflow","name":"Salami","info":"","in":[{"x":100,"y":220,"wires":[{"id":"e385f317.1fcff"}]}],"out":[{"x":1500,"y":600,"wires":[{"id":"6909a133.33f36","port":0},{"id":"296c01be.065d5e","port":0},{"id":"200ab38a.5967ac","port":0},{"id":"cc6c20e.f7015e","port":0},{"id":"50abe31.dcee21c","port":0},{"id":"d58a6b46.3973a8","port":0},{"id":"5a155601.4317c8","port":0},{"id":"32bac649.37809a","port":0},{"id":"7c55c812.c8f168","port":0},{"id":"8c3eeb7c.5ca1b8","port":0},{"id":"87be4386.86e6d","port":0}]}]},{"id":"abcf932e.43e39","type":"subflow","name":"Scales Dashboard","info":"","in":[],"out":[]},{"id":"53ff1e9.5b961e","type":"subflow","name":"Desinfection","info":"","in":[],"out":[]},{"id":"4d0dc15f.1a937","type":"subflow","name":"Save to SQL","info":"","in":[{"x":40,"y":140,"wires":[{"id":"5184119d.393e"}]}],"out":[]},{"id":"13f2ae94.2080c1","type":"tls-config","z":"","name":"","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false},{"id":"4841307a.c2f52","type":"mqtt-broker","z":"","name":"iot.valki.com","broker":"iot.valki.com","port":"1883","tls":"13f2ae94.2080c1","clientid":"openager_valki","usetls":false,"compatmode":true,"keepalive":"15","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"ca61f135.42042","type":"ui_group","z":"","name":"openAger","tab":"646e27f9.71dba8","order":2,"disp":true,"width":"6","collapse":false},{"id":"452932b5.62f74c","type":"ui_tab","z":"","name":"Charts","icon":"dashboard","order":4},{"id":"bffb08b3.1b1fa8","type":"ui_group","z":"efbc7696.354458","name":"Home","tab":"646e27f9.71dba8","order":3,"disp":true,"width":"6","collapse":false},{"id":"43f2495e.96eb28","type":"ui_group","z":"efbc7696.354458","name":"Special","tab":"9955a5f0.c78318","order":5,"disp":true,"width":"6","collapse":false},{"id":"9955a5f0.c78318","type":"ui_tab","z":"","name":"Gauges","icon":"dashboard","order":3},{"id":"91134a7a.5c7bb8","type":"ui_group","z":"","name":"Scale 1","tab":"fbd1baaf.5443c8","order":1,"disp":true,"width":"6","collapse":false},{"id":"2d255ce.e9e82a4","type":"ui_group","z":"efbc7696.354458","name":"Special","tab":"452932b5.62f74c","order":3,"disp":true,"width":"6","collapse":false},{"id":"b7af05c9.acc5c8","type":"ui_group","z":"","name":"Temperatures","tab":"9955a5f0.c78318","order":2,"disp":true,"width":"6","collapse":false},{"id":"c1fcc324.6a01","type":"ui_group","z":"","name":"Internal","tab":"452932b5.62f74c","order":1,"disp":true,"width":"6","collapse":false},{"id":"fbd1baaf.5443c8","type":"ui_tab","z":"","name":"Scales","icon":"dashboard","order":5},{"id":"88d811d7.ca6bf","type":"ui_group","z":"","name":"Scale Calibration","tab":"5f57f062.9dde8","order":5,"disp":true,"width":"6","collapse":false},{"id":"66bacdef.786e04","type":"MySQLdatabase","z":"","host":"db.valki.com","port":"3306","db":"nodered","tz":""},{"id":"f95bc692.43b5a8","type":"ui_group","z":"","name":"Report","tab":"df5027dd.7517b8","order":2,"disp":false,"width":"24"},{"id":"3ead58e1.865bd8","type":"ui_group","z":"","name":"Filters","tab":"df5027dd.7517b8","disp":true,"width":"24"},{"id":"df5027dd.7517b8","type":"ui_tab","z":"","name":"Report","icon":"event_note","order":7},{"id":"e7c3e799.f86b28","type":"ui_group","z":"","name":"Scale 2","tab":"fbd1baaf.5443c8","order":3,"disp":true,"width":"6","collapse":false},{"id":"5f57f062.9dde8","type":"ui_tab","z":"","name":"Configuration","icon":"dashboard","order":6},{"id":"b09a98a.6139868","type":"ui_group","z":"","name":"Modes","tab":"5f57f062.9dde8","order":4,"disp":true,"width":"6","collapse":false},{"id":"77fea715.4f11c8","type":"ui_group","z":"","name":"Humidity","tab":"9955a5f0.c78318","order":3,"disp":true,"width":"6","collapse":false},{"id":"39b2ec86.601ea4","type":"ui_group","z":"","name":"Scale 3","tab":"fbd1baaf.5443c8","order":3,"disp":true,"width":"6","collapse":false},{"id":"fbe9ae29.de1a7","type":"ui_group","z":"","name":"Scale 4","tab":"fbd1baaf.5443c8","order":4,"disp":true,"width":"6","collapse":false},{"id":"cc0499bb.626ad8","type":"ui_group","z":"","name":"Humidity 2","tab":"9955a5f0.c78318","order":4,"disp":true,"width":"6","collapse":false},{"id":"d02bb676.9c8768","type":"ui_group","z":"","name":"Sensors","tab":"5f57f062.9dde8","order":1,"disp":true,"width":"6","collapse":false},{"id":"4b96690f.894e08","type":"ui_group","z":"","name":"Misc","tab":"5f57f062.9dde8","order":3,"disp":true,"width":"6","collapse":false},{"id":"a7c01b2c.6f7df8","type":"ui_group","z":"","name":"Lights","tab":"5f57f062.9dde8","order":2,"disp":true,"width":"6","collapse":false},{"id":"418bab59.fac9d4","type":"ui_group","z":"","name":"Temp/Hum","tab":"5f57f062.9dde8","order":6,"disp":true,"width":"6","collapse":false},{"id":"37137413.a3425c","type":"ui_group","z":"","name":"Environment","tab":"452932b5.62f74c","order":4,"disp":true,"width":"6","collapse":false},{"id":"df011129.4ebef","type":"ui_group","z":"","name":"External","tab":"452932b5.62f74c","order":2,"disp":true,"width":"6","collapse":false},{"id":"d54ee9a0.347778","type":"ui_group","z":"","name":"Timings","tab":"9955a5f0.c78318","order":6,"disp":true,"width":"6","collapse":false},{"id":"ec3e3b54.4a8598","type":"telegrambot-config","z":"","botname":"openager_bot","usernames":"","chatIds":"","pollInterval":"300"},{"id":"646e27f9.71dba8","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false},{"id":"801bafd8.09a2","type":"ui_group","z":"","name":"Settings","tab":"646e27f9.71dba8","order":4,"disp":true,"width":"6","collapse":false},{"id":"63a78f03.20929","type":"ui_group","z":"","name":"Sensors","tab":"646e27f9.71dba8","order":1,"disp":true,"width":"6","collapse":false},{"id":"7ec0c1dc.cf4b3","type":"influxdb","z":"efbc7696.354458","hostname":"influxdb.valki.com","port":"8086","protocol":"http","database":"openAger","name":"","usetls":true,"tls":"13f2ae94.2080c1"},{"id":"eba91e98.1456e","type":"influxdb","z":"b061b303.4f9e5","hostname":"127.0.0.1","port":"8086","database":"aTimeSeries","name":"aTimeSeries"},{"id":"e76331b.fcbf9d","type":"ui_base","theme":{"name":"theme-dark","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#097479","value":"#097479","edited":false},"page-titlebar-backgroundColor":{"value":"#097479","edited":false},"page-backgroundColor":{"value":"#111111","edited":false},"page-sidebar-backgroundColor":{"value":"#000000","edited":false},"group-textColor":{"value":"#0eb8c0","edited":false},"group-borderColor":{"value":"#555555","edited":false},"group-backgroundColor":{"value":"#333333","edited":false},"widget-textColor":{"value":"#eeeeee","edited":false},"widget-backgroundColor":{"value":"#097479","edited":false},"widget-borderColor":{"value":"#333333","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"110b89b3.3d8416","type":"comment","z":"efbc7696.354458","name":"Dashboard","info":"","x":100,"y":20,"wires":[]},{"id":"d70b1d6f.845c5","type":"comment","z":"2a3766ff.038c4a","name":"Aging Programm 6 Wochen","info":"","x":180,"y":120,"wires":[]},{"id":"cc4f87dc.b00118","type":"mqtt out","z":"efbc7696.354458","name":"fridge1 retain","topic":"","qos":"","retain":"true","broker":"4841307a.c2f52","x":1470,"y":720,"wires":[]},{"id":"44ff4d33.5a1554","type":"ui_switch","z":"efbc7696.354458","name":"","label":"Light","group":"bffb08b3.1b1fa8","order":8,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"openAger/fridge1/actuators/light","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":790,"y":140,"wires":[["635e9835.fd2ab8"]]},{"id":"3b69da02.2a8c56","type":"ui_slider","z":"efbc7696.354458","name":"set temp","label":"Set Temp","tooltip":"","group":"801bafd8.09a2","order":3,"width":0,"height":0,"passthru":false,"outs":"all","topic":"openAger/fridge1/set/temp","min":0,"max":"30","step":"0.1","x":800,"y":480,"wires":[["cc4f87dc.b00118"]]},{"id":"ed29ff62.3ba3f","type":"ui_slider","z":"efbc7696.354458","name":"sethyst","label":"Set Hysterese","tooltip":"","group":"801bafd8.09a2","order":7,"width":0,"height":0,"passthru":false,"outs":"all","topic":"openAger/fridge1/set/hyst","min":0,"max":"4","step":"0.1","x":800,"y":560,"wires":[["cc4f87dc.b00118"]]},{"id":"9f09a0d0.110b4","type":"ui_slider","z":"efbc7696.354458","name":"sethum","label":"Set Humidity","tooltip":"","group":"801bafd8.09a2","order":4,"width":0,"height":0,"passthru":false,"outs":"all","topic":"openAger/fridge1/set/hum","min":"30","max":"100","step":1,"x":800,"y":520,"wires":[["cc4f87dc.b00118"]]},{"id":"41d2d4c5.91712c","type":"ui_slider","z":"efbc7696.354458","name":"humhyst","label":"Set Humidity Hysterese","tooltip":"","group":"801bafd8.09a2","order":8,"width":0,"height":0,"passthru":false,"outs":"all","topic":"openAger/fridge1/set/humhyst","min":0,"max":"30","step":".1","x":800,"y":600,"wires":[["cc4f87dc.b00118"]]},{"id":"45ac43ce.9c400c","type":"ui_gauge","z":"efbc7696.354458","name":"H_Temp_int","group":"63a78f03.20929","order":1,"width":"0","height":"0","gtype":"gage","title":"Temperature int.","label":"°C","format":"{{value | number:2}}","min":"-5","max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"4","seg2":"10","x":1070,"y":2380,"wires":[]},{"id":"4218e5f4.24faac","type":"ui_gauge","z":"efbc7696.354458","name":"set temp","group":"801bafd8.09a2","order":1,"width":"3","height":"3","gtype":"gage","title":"Set Temp","label":"°C","format":"{{value}}","min":"-5","max":"35","colors":["#00b500","#e6e600","#ca3838"],"seg1":"4","seg2":"10","x":1440,"y":900,"wires":[]},{"id":"f8d90005.32e08","type":"ui_gauge","z":"efbc7696.354458","name":"Hysterese","group":"801bafd8.09a2","order":5,"width":"3","height":"3","gtype":"gage","title":"Hysterese","label":"K","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1440,"y":980,"wires":[]},{"id":"78aa9286.fc652c","type":"ui_gauge","z":"efbc7696.354458","name":"set hum","group":"801bafd8.09a2","order":2,"width":"3","height":"3","gtype":"gage","title":"Set Humidity","label":"%","format":"{{value |number:1 }}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1440,"y":940,"wires":[]},{"id":"11e69b78.e74665","type":"ui_gauge","z":"efbc7696.354458","name":"","group":"801bafd8.09a2","order":6,"width":"3","height":"3","gtype":"gage","title":"Set Hum Hysterese","label":"%","format":"{{value}}","min":0,"max":"20","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1470,"y":1020,"wires":[]},{"id":"2ad62b2f.bc7a94","type":"ui_chart","z":"efbc7696.354458","name":"C_Temp_int","group":"c1fcc324.6a01","order":1,"width":0,"height":0,"label":"Temperature","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"loading","dot":false,"ymin":"","ymax":"30","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":true,"outputs":2,"x":1530,"y":2380,"wires":[[],[]]},{"id":"9a56849b.6b7838","type":"ui_dropdown","z":"efbc7696.354458","name":"mode","label":"Mode","tooltip":"","place":"","group":"ca61f135.42042","order":2,"width":0,"height":0,"passthru":false,"options":[{"label":"manual","value":"0","type":"str"},{"label":"Aging_6W","value":"1","type":"str"},{"label":"Aging_8W","value":"2","type":"str"},{"label":"Salami","value":"3","type":"str"},{"label":"Speck","value":"4","type":"str"},{"label":"Desinfection","value":"90","type":"str"},{"label":"Bruno 7 Wochen","value":"97","type":"str"},{"label":"Test 6W","value":"98","type":"str"},{"label":"Override","value":"99","type":"str"}],"payload":"","topic":"openAger/fridge1/set/mode","x":790,"y":960,"wires":[["cc4f87dc.b00118"]]},{"id":"4c14ee01.fc641","type":"ui_switch","z":"efbc7696.354458","name":"UVC","label":"UVC","group":"bffb08b3.1b1fa8","order":7,"width":0,"height":0,"passthru":false,"decouple":"false","topic":"openAger/fridge1/actuators/uvc","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":790,"y":100,"wires":[["635e9835.fd2ab8"]]},{"id":"38bab156.ad305e","type":"ui_switch","z":"efbc7696.354458","name":"booster","label":"Booster","group":"bffb08b3.1b1fa8","order":3,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"openAger/fridge1/actuators/booster","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":800,"y":180,"wires":[["635e9835.fd2ab8"]]},{"id":"230fafe8.b6f3a","type":"ui_switch","z":"efbc7696.354458","name":"Circu","label":"Circulation","group":"bffb08b3.1b1fa8","order":4,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"openAger/fridge1/actuators/circulation","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":790,"y":220,"wires":[["635e9835.fd2ab8"]]},{"id":"c7f7b411.d8af98","type":"ui_switch","z":"efbc7696.354458","name":"Cool","label":"Cooling","group":"bffb08b3.1b1fa8","order":1,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"openAger/fridge1/actuators/cooling","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":790,"y":260,"wires":[["635e9835.fd2ab8"]]},{"id":"25d7eee4.ffda22","type":"ui_switch","z":"efbc7696.354458","name":"","label":"Heating","group":"bffb08b3.1b1fa8","order":2,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"openAger/fridge1/actuators/heating","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":800,"y":300,"wires":[["635e9835.fd2ab8"]]},{"id":"d6eab50f.39ab68","type":"ui_switch","z":"efbc7696.354458","name":"moist","label":"Moistening","group":"bffb08b3.1b1fa8","order":5,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"openAger/fridge1/actuators/moistening","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":790,"y":340,"wires":[["635e9835.fd2ab8"]]},{"id":"9f8ef02.e1ba51","type":"ui_switch","z":"efbc7696.354458","name":"dry","label":"Drying","group":"bffb08b3.1b1fa8","order":6,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"openAger/fridge1/actuators/drying","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":790,"y":380,"wires":[["635e9835.fd2ab8"]]},{"id":"511b0d14.dfe9f4","type":"ui_gauge","z":"efbc7696.354458","name":"H_Hum_int","group":"63a78f03.20929","order":2,"width":"0","height":"0","gtype":"gage","title":"Humidity int.","label":"%","format":"{{value | number:2}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1070,"y":2680,"wires":[]},{"id":"946012c2.726e3","type":"function","z":"bfb0b9c4.4e1408","name":"Set Global","func":"// restore last state from dump\n\n\nglobal.set(\"startzeit\",msg.payload.startzeit);\nglobal.set(\"mode\",msg.payload.mode);\nglobal.set(\"state\",msg.payload.state);\n\n//msg.payload = msg.startzeit;\n//return msg;","outputs":1,"noerr":0,"x":870,"y":180,"wires":[["54fd06cf.5ad438"]]},{"id":"54fd06cf.5ad438","type":"debug","z":"bfb0b9c4.4e1408","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1230,"y":180,"wires":[]},{"id":"9e8c5afb.d57288","type":"inject","z":"bfb0b9c4.4e1408","name":"Trigger 10 sek","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":740,"wires":[["d71ad172.f9505","828e3bd3.a6a5a8"]]},{"id":"9c2297af.3d2028","type":"switch","z":"2a3766ff.038c4a","name":"Scheduler","property":"runtime","propertyType":"msg","rules":[{"t":"btwn","v":"0","vt":"jsonata","v2":"1000*60*60*24*12","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*12","vt":"jsonata","v2":"1000*60*60*24*21","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*21","vt":"jsonata","v2":"1000*60*60*24*30","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*30","vt":"jsonata","v2":"1000*60*60*24*39","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*39","vt":"jsonata","v2":"1000*60*60*24*48","v2t":"jsonata"},{"t":"gt","v":"1000*60*60*24*48","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":6,"x":580,"y":240,"wires":[["59e7f43c.26a0dc"],["84829baa.ad9368"],["47b03e53.7a075"],["cb6f0c0f.613ce"],["262866c5.e512fa"],["2f44d915.2e19c6"]]},{"id":"2f44d915.2e19c6","type":"function","z":"2a3766ff.038c4a","name":"Finished!","func":" /*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n global.set(\"state\",\"off\");\n global.set(\"mode\", 0);\n\tglobal.set(\"startzeit\",0);\n\tmsg.state = \"off\";\n\tmsg.mode = '0';\n\tmsg.finito = '1';\n return msg;\n\n","outputs":1,"noerr":0,"x":840,"y":440,"wires":[[]]},{"id":"50f1400b.f5a62","type":"subflow:efbc7696.354458","z":"bfb0b9c4.4e1408","name":"Dashboard","env":[],"x":860,"y":60,"wires":[["54fd06cf.5ad438"],[]]},{"id":"6dc5f58d.dc582c","type":"comment","z":"bfb0b9c4.4e1408","name":"Autostarter+ recover state","info":"","x":170,"y":80,"wires":[]},{"id":"6fa49634.bf0518","type":"switch","z":"bfb0b9c4.4e1408","name":"Mode?","property":"mode","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"90","vt":"str"},{"t":"eq","v":"97","vt":"str"},{"t":"eq","v":"98","vt":"str"},{"t":"eq","v":"99","vt":"str"}],"checkall":"true","repair":false,"outputs":9,"x":530,"y":760,"wires":[["166d8f60.9f9d81"],["d37d4323.2440d"],["85012ca1.75c3d"],["377eaa0c.2fa036"],["ed6a56a8.a73d28"],["3a6261c6.832a5e"],["31401bfa.904924"],["dd7a5bbd.8f9bf8"],["22e44764.17b538"]]},{"id":"d37d4323.2440d","type":"subflow:2a3766ff.038c4a","z":"bfb0b9c4.4e1408","name":"Aging_6W","x":750,"y":700,"wires":[["f3079c9f.ee374"]]},{"id":"ef94c2f6.af0e9","type":"function","z":"acee58da.9b1998","name":"Day 1-12","func":"msg.phase = \"Phase 1\";\nreturn msg;","outputs":1,"noerr":0,"x":820,"y":60,"wires":[["752bd367.59bf2c","817febc.bfb5e18"]]},{"id":"7e79120e.fbc2fc","type":"function","z":"acee58da.9b1998","name":"Day 13-21","func":"msg.phase = \"Phase 2\";\nreturn msg;","outputs":1,"noerr":0,"x":830,"y":140,"wires":[["639f7dec.426074","9a11a6af.29eed8"]]},{"id":"81e16629.03f858","type":"function","z":"acee58da.9b1998","name":"Day 22-34","func":"msg.phase = \"Phase 3\";\nreturn msg;","outputs":1,"noerr":0,"x":830,"y":220,"wires":[["f8b84854.7649d8","ec8f26eb.d2cdc8"]]},{"id":"5b17f770.afa448","type":"function","z":"acee58da.9b1998","name":"Day 35-43","func":"msg.phase = \"Phase 4\";\nreturn msg;","outputs":1,"noerr":0,"x":830,"y":300,"wires":[["e7458a57.feafc8","c8290c74.3e776"]]},{"id":"6d1eed66.0f95c4","type":"function","z":"acee58da.9b1998","name":"Day 44-56","func":"msg.payload = \"Phase 5\";\nreturn msg;","outputs":1,"noerr":0,"x":830,"y":380,"wires":[["623f070f.357158","51fd7786.ea91a8"]]},{"id":"b63aff0f.ca2b7","type":"comment","z":"acee58da.9b1998","name":"Aging Programm 6 Wochen","info":"","x":160,"y":40,"wires":[]},{"id":"ead52de1.975f4","type":"function","z":"acee58da.9b1998","name":"Day 57-75","func":"msg.phase = \"Phase 6: Eat!\";\nreturn msg;","outputs":1,"noerr":0,"x":830,"y":460,"wires":[["58b08142.347cc","eff7a6a6.8cbb28"]]},{"id":"58b08142.347cc","type":"function","z":"acee58da.9b1998","name":"H=30","func":"msg.topic = 'openAger/fridge1/set/hum';\nmsg.payload = '30';\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":440,"wires":[[]]},{"id":"85012ca1.75c3d","type":"subflow:acee58da.9b1998","z":"bfb0b9c4.4e1408","x":750,"y":740,"wires":[["f3079c9f.ee374"]]},{"id":"166d8f60.9f9d81","type":"subflow:533bb4f2.f3493c","z":"bfb0b9c4.4e1408","name":"","x":740,"y":660,"wires":[["f3079c9f.ee374"]]},{"id":"ed6a56a8.a73d28","type":"subflow:58f7dc96.300d44","z":"bfb0b9c4.4e1408","name":"","x":730,"y":820,"wires":[[]]},{"id":"22e44764.17b538","type":"subflow:14f8e14b.f5db7f","z":"bfb0b9c4.4e1408","x":740,"y":940,"wires":[]},{"id":"9aff2532.c06098","type":"function","z":"efbc7696.354458","name":"set global ","func":"//context.global.mode = msg.payload;\nglobal.set(\"mode\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":800,"y":1040,"wires":[["20e1ad86.d09692"]]},{"id":"20e1ad86.d09692","type":"ui_text","z":"efbc7696.354458","group":"bffb08b3.1b1fa8","order":9,"width":0,"height":0,"name":"","label":"MCU Mode","format":"{{msg.payload}}","layout":"row-spread","x":1450,"y":1140,"wires":[]},{"id":"d71ad172.f9505","type":"function","z":"bfb0b9c4.4e1408","name":"inject global mode","func":"/*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\n*/\n\nmsg.startzeit = global.get(\"startzeit\");\nmsg.state = global.get(\"state\");\nmsg.mode = global.get(\"mode\");\n\nmsg.payload = global.get(\"mode\");\nreturn msg;\n","outputs":1,"noerr":0,"x":350,"y":760,"wires":[["6fa49634.bf0518"]]},{"id":"8a1f239.4522be","type":"ui_gauge","z":"efbc7696.354458","name":"G_uvrays","group":"43f2495e.96eb28","order":4,"width":0,"height":0,"gtype":"gage","title":"UVRays","label":"mW/cm²","format":"{{value | number:2}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1300,"y":3100,"wires":[]},{"id":"a15a8a1f.5ab588","type":"ui_gauge","z":"efbc7696.354458","name":"G_power","group":"43f2495e.96eb28","order":1,"width":0,"height":0,"gtype":"gage","title":"Power","label":"W","format":"{{value | number:1}}","min":0,"max":"200","colors":["#00b500","#e6e600","#ca3838"],"seg1":"80","seg2":"130","x":1300,"y":2940,"wires":[]},{"id":"be87177a.c89728","type":"ui_gauge","z":"efbc7696.354458","name":"G_tvoc","group":"43f2495e.96eb28","order":2,"width":0,"height":0,"gtype":"gage","title":"TVOC","label":"ppm","format":"{{value | number:2}}","min":0,"max":"1187","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1060,"y":3820,"wires":[]},{"id":"2b02c3d5.4949ac","type":"ui_gauge","z":"efbc7696.354458","name":"weight1","group":"91134a7a.5c7bb8","order":5,"width":0,"height":0,"gtype":"gage","title":"Weight 1","label":"kg","format":"{{value | number:3}}","min":0,"max":"15","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":860,"y":3220,"wires":[]},{"id":"8f4cb609.d1e538","type":"ui_gauge","z":"efbc7696.354458","name":"weight2","group":"e7c3e799.f86b28","order":5,"width":0,"height":0,"gtype":"gage","title":"Weight 2","label":"kg","format":"{{value | number:3}}","min":0,"max":"15","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":860,"y":3260,"wires":[]},{"id":"a9f3c698.e073b8","type":"ui_gauge","z":"efbc7696.354458","name":"weight3","group":"39b2ec86.601ea4","order":5,"width":0,"height":0,"gtype":"gage","title":"Weight 3","label":"kg","format":"{{value | number:3}}","min":0,"max":"15","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":860,"y":3300,"wires":[]},{"id":"2b75b5a3.77d1fa","type":"ui_gauge","z":"efbc7696.354458","name":"weight4","group":"fbe9ae29.de1a7","order":5,"width":0,"height":0,"gtype":"gage","title":"Weight 4","label":"kg","format":"{{value | number:3}}","min":0,"max":"15","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":860,"y":3340,"wires":[]},{"id":"c0a8ffef.f2a05","type":"ui_gauge","z":"efbc7696.354458","name":"H_Hum ext","group":"63a78f03.20929","order":5,"width":"3","height":"3","gtype":"gage","title":"Humidity ext.","label":"%","format":"{{value | number:2}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1070,"y":2720,"wires":[]},{"id":"373a1b57.b38ea4","type":"ui_gauge","z":"efbc7696.354458","name":"H_Temp_ext","group":"63a78f03.20929","order":4,"width":"3","height":"3","gtype":"gage","title":"Temperature ext.","label":"°C","format":"{{value | number:2}}","min":"-5","max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"20","seg2":"25","x":1070,"y":2420,"wires":[]},{"id":"2d296cb8.5e0894","type":"ui_chart","z":"efbc7696.354458","name":"C_tvoc","group":"37137413.a3425c","order":2,"width":0,"height":0,"label":"TVOC","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":1500,"y":3820,"wires":[[],[]]},{"id":"17cd9975.d9d427","type":"ui_chart","z":"efbc7696.354458","name":"C_Power","group":"2d255ce.e9e82a4","order":1,"width":0,"height":0,"label":"Power","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"0","ymax":"200","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":1520,"y":2940,"wires":[[],[]]},{"id":"c00a6bf5.83a728","type":"ui_chart","z":"efbc7696.354458","name":"C_UV Rays","group":"37137413.a3425c","order":1,"width":0,"height":0,"label":"UV Rays","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"0","ymax":"10","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":1530,"y":3100,"wires":[[],[]]},{"id":"b18c1df6.cdfb8","type":"ui_chart","z":"efbc7696.354458","name":"C_Humidity int.","group":"c1fcc324.6a01","order":2,"width":0,"height":0,"label":"Humidity int.","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":1540,"y":2680,"wires":[[],[]]},{"id":"131a219.892ccde","type":"ui_chart","z":"efbc7696.354458","name":"C_temp-ext","group":"df011129.4ebef","order":1,"width":0,"height":0,"label":"Temperature ext.","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":1530,"y":2420,"wires":[[],[]]},{"id":"2a4ea03d.abf04","type":"ui_chart","z":"efbc7696.354458","name":"C_hum ext","group":"df011129.4ebef","order":2,"width":0,"height":0,"label":"Humidity ext.","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":1530,"y":2720,"wires":[[],[]]},{"id":"cd8f46cc.d124e8","type":"ui_gauge","z":"efbc7696.354458","name":"G_Hum1","group":"77fea715.4f11c8","order":2,"width":0,"height":0,"gtype":"gage","title":"Humidity 1","label":"%","format":"{{value | number:2}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1300,"y":2600,"wires":[]},{"id":"c3c278b3.2f25d8","type":"ui_gauge","z":"efbc7696.354458","name":"G_Hum2","group":"77fea715.4f11c8","order":3,"width":0,"height":0,"gtype":"gage","title":"Humidity 2","label":"%","format":"{{value | number:2}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1300,"y":2640,"wires":[]},{"id":"49b35de3.332724","type":"ui_gauge","z":"efbc7696.354458","name":"G_Temp1","group":"b7af05c9.acc5c8","order":2,"width":0,"height":0,"gtype":"gage","title":"Temperature 1","label":"°C","format":"{{value | number:2}}","min":"-5","max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1300,"y":2300,"wires":[],"inputLabels":["msg.t1"]},{"id":"a4157f54.9d5e5","type":"ui_gauge","z":"efbc7696.354458","name":"G_Temp2","group":"b7af05c9.acc5c8","order":3,"width":0,"height":0,"gtype":"gage","title":"Temperature 2","label":"°C","format":"{{value | number:2}}","min":"-5","max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1300,"y":2340,"wires":[]},{"id":"9347bbcd.f19e38","type":"comment","z":"efbc7696.354458","name":"Gauges & Charts","info":"","x":140,"y":2200,"wires":[]},{"id":"1b9fd252.b6b39e","type":"comment","z":"efbc7696.354458","name":"Actuators","info":"","x":160,"y":120,"wires":[]},{"id":"f4ca98fc.dbbfd8","type":"comment","z":"efbc7696.354458","name":"<-- Output for debugging","info":"","x":1590,"y":260,"wires":[]},{"id":"7e43bddd.269404","type":"ui_button","z":"bfb0b9c4.4e1408","name":"","group":"ca61f135.42042","order":1,"width":0,"height":0,"passthru":false,"label":"Start","color":"","bgcolor":"","icon":"fa-play","payload":"","payloadType":"date","topic":"","x":170,"y":420,"wires":[["8da8c72d.d8b498"]]},{"id":"52fea353.d681dc","type":"ui_button","z":"bfb0b9c4.4e1408","name":"","group":"ca61f135.42042","order":8,"width":0,"height":0,"passthru":false,"label":"Stop","color":"","bgcolor":"darkred","icon":"fa-stop","payload":"STOP","payloadType":"str","topic":"","x":170,"y":460,"wires":[["8da8c72d.d8b498"]]},{"id":"8da8c72d.d8b498","type":"function","z":"bfb0b9c4.4e1408","name":"Set Global","func":"/*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\n*/\n\nmsg2 = {}\n\nif (msg.payload == 'STOP' || global.get(\"mode\") == '0' || global.get(\"mode\") == '99') { \n\tglobal.set(\"state\",\"off\");\n\tglobal.set(\"startzeit\",0);\n\tmsg.startzeit = 0;\n\tmsg.state = \"off\";\n\n} else {\n\tglobal.set(\"state\",\"on\");\n\tglobal.set(\"startzeit\",msg.payload);\n\tmsg.startzeit = msg.payload;\n\tmsg.state = \"on\";\n}\nmsg.mode = global.get(\"mode\");\n\n// 2nd output - prepare javascript object for the dump\nmsg2.startzeit = msg.payload;\nmsg2.state = msg.state;\nmsg2.mode = msg.mode;\n\nmsg2.payload = {\n \"startzeit\": msg.payload,\n \"state\": msg.state,\n \"mode\": msg.mode\n}\n\nreturn [ msg, msg2 ];","outputs":2,"noerr":0,"x":430,"y":440,"wires":[["f3079c9f.ee374"],["47e34441.9c3e2c"]]},{"id":"e979e920.53bda8","type":"comment","z":"bfb0b9c4.4e1408","name":"Dashbutton-Trigger","info":"","x":130,"y":360,"wires":[]},{"id":"ab96af90.37534","type":"ui_text","z":"bfb0b9c4.4e1408","group":"ca61f135.42042","order":6,"width":0,"height":0,"name":"","label":"remaining time","format":"{{ msg.restzeit | number:1 }} Tage","layout":"row-spread","x":1880,"y":500,"wires":[]},{"id":"4fd9bd56.ff4f94","type":"ui_text","z":"bfb0b9c4.4e1408","group":"ca61f135.42042","order":3,"width":0,"height":0,"name":"","label":"Automatic ON/OFF","format":"{{msg.state}}","layout":"row-spread","x":1870,"y":340,"wires":[]},{"id":"f3079c9f.ee374","type":"function","z":"bfb0b9c4.4e1408","name":"collect","func":"return msg;","outputs":1,"noerr":0,"x":1150,"y":440,"wires":[["4fd9bd56.ff4f94","64cf8401.bdbabc","51be4eb1.0f324","5df2b7fa.54c378","4df5369a.1a0c88"]]},{"id":"87915ea3.04e8b","type":"comment","z":"bfb0b9c4.4e1408","name":"Mode-Manager / Programs","info":"","x":150,"y":620,"wires":[]},{"id":"50896bc6.b26544","type":"ui_text_input","z":"efbc7696.354458","name":"Set Scale1","label":"Set Scale1","group":"88d811d7.ca6bf","order":2,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/scale1","x":810,"y":800,"wires":[["9c8d165.2f9aae8"]]},{"id":"fb5d33e9.72d9","type":"ui_text_input","z":"efbc7696.354458","name":"Set Scale2","label":"Set Scale2","group":"88d811d7.ca6bf","order":3,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/scale2","x":810,"y":840,"wires":[["9c8d165.2f9aae8"]]},{"id":"33e4bb5b.6815f4","type":"ui_text_input","z":"efbc7696.354458","name":"Set Scale3","label":"Set Scale3","group":"88d811d7.ca6bf","order":4,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/scale3","x":810,"y":880,"wires":[["9c8d165.2f9aae8"]]},{"id":"2f750627.bbee7a","type":"ui_text_input","z":"efbc7696.354458","name":"Set Scale4","label":"Set Scale4","group":"88d811d7.ca6bf","order":5,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/scale4","x":810,"y":920,"wires":[["9c8d165.2f9aae8"]]},{"id":"ddd5c874.b71988","type":"ui_button","z":"efbc7696.354458","name":"R Scale 1","group":"91134a7a.5c7bb8","order":4,"width":0,"height":0,"passthru":false,"label":"Reset Scale 1","tooltip":"","color":"","bgcolor":"","icon":"fa-balance-scale","payload":"1","payloadType":"str","topic":"openAger/fridge1/set/reset_scale1","x":1120,"y":1180,"wires":[["9c8d165.2f9aae8"]]},{"id":"41e066a7.9118d8","type":"ui_button","z":"efbc7696.354458","name":"R Scale 2","group":"e7c3e799.f86b28","order":4,"width":0,"height":0,"passthru":false,"label":"Reset Scale 2","tooltip":"","color":"","bgcolor":"","icon":"fa-balance-scale","payload":"1","payloadType":"str","topic":"openAger/fridge1/set/reset_scale2","x":1120,"y":1220,"wires":[["9c8d165.2f9aae8"]]},{"id":"b4af0b11.2436d8","type":"ui_button","z":"efbc7696.354458","name":"R Scale 3","group":"39b2ec86.601ea4","order":4,"width":0,"height":0,"passthru":false,"label":"Reset Scale 3","tooltip":"","color":"","bgcolor":"","icon":"fa-balance-scale","payload":"1","payloadType":"str","topic":"openAger/fridge1/set/reset_scale3","x":1120,"y":1260,"wires":[["9c8d165.2f9aae8"]]},{"id":"9992e5b2.fd2e28","type":"ui_button","z":"efbc7696.354458","name":"R Scale 4","group":"fbe9ae29.de1a7","order":4,"width":0,"height":0,"passthru":false,"label":"Reset Scale 4","tooltip":"","color":"","bgcolor":"","icon":"fa-balance-scale","payload":"1","payloadType":"str","topic":"openAger/fridge1/set/reset_scale4","x":1120,"y":1300,"wires":[["9c8d165.2f9aae8"]]},{"id":"983c428e.8b466","type":"mqtt in","z":"efbc7696.354458","name":"MQTT fridge1 set","topic":"openAger/fridge1/set/#","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":120,"y":1140,"wires":[["ee4c0d06.51314"]]},{"id":"ee4c0d06.51314","type":"switch","z":"efbc7696.354458","name":"Topic Switch","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"openAger/fridge1/set/temp","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/hum","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/hyst","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/humhyst","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/scale1","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/scale2","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/scale3","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/scale4","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/mode","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/pwm","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/boostermode","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/circmode","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/uvcmode","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/boostertime","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/boosterdelay","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/circtime","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/circdelay","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/uvctime","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/uvcdelay","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/offsetscale1","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/offsetscale2","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/offsetscale3","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/offsetscale4","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/hummode","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/nosyscheck","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/sensor1","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/sensor2","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/sensore","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/sensors","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/coolerpower","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/dual","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/checktempdiff","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/checkhumdiff","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/ticksensors","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/tickdisplay","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/tickbackup","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/tickscales","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/coolerprotect","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/tempmode","vt":"str"},{"t":"eq","v":"openAger/fridge1/set/ticksmqtt","vt":"str"}],"checkall":"true","repair":false,"outputs":40,"x":410,"y":1140,"wires":[["3b69da02.2a8c56","4218e5f4.24faac","7a44634.a053b9c","c8ea63dc.bc596","7d5d4556.41763c"],["78aa9286.fc652c","9f09a0d0.110b4","7a44634.a053b9c","249a3f19.efaa"],["ed29ff62.3ba3f","f8d90005.32e08","7d5d4556.41763c","dc895bc9.fdbfa8"],["41d2d4c5.91712c","acc94eaa.07e33","11e69b78.e74665"],["50896bc6.b26544"],["fb5d33e9.72d9"],["33e4bb5b.6815f4"],["2f750627.bbee7a"],["9aff2532.c06098","9a56849b.6b7838","7a44634.a053b9c"],["183b8d0d.3a29e3","23ba67be.a5d9d8","27de2d0a.1b0592"],["19a79b09.1588c5"],["91390d9c.8ff5a"],["dc276f69.90845"],["f3c2cb7e.53c6c8"],["affcf431.36e318"],["1db9b832.0002b8"],["38a153f5.7c7f9c"],["4dabe6d1.d31cd8"],["9c478f69.f701b"],["ae7a659.b683398"],["65b69f35.ab8f2"],["c75d1b4f.176008"],["52a4f621.204418"],["7fd02ae3.5d6c04"],["3faa98a3.993de8"],["edf083fc.7d1b8"],["d50e4db3.15ecd"],["607273a8.9c951c"],["53772786.6328a8"],["22972139.d2695e"],["cc1a68a4.59d4b8"],["9de9b0b7.13693"],["4d4fcc0f.c63174"],["ba2b3ad5.603118"],["669dd524.8c12ec"],["f18d605a.86367"],["82f5582c.485868"],["237496a0.f5b9fa"],["c3cb49b0.bb7bf8"],["b26ea238.5357f"]]},{"id":"8ea0f6d1.cd8ce8","type":"comment","z":"efbc7696.354458","name":"Settings","info":"","x":100,"y":940,"wires":[]},{"id":"aa9d6130.48f1e","type":"mqtt in","z":"efbc7696.354458","name":"MQTT fridge1 actuators","topic":"openAger/fridge1/actuators/#","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":200,"y":240,"wires":[["32f8319.525dbce","8d590abd.42ee38"]]},{"id":"32f8319.525dbce","type":"switch","z":"efbc7696.354458","name":"Topic Switch","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"openAger/fridge1/actuators/uvc","vt":"str"},{"t":"eq","v":"openAger/fridge1/actuators/light","vt":"str"},{"t":"eq","v":"openAger/fridge1/actuators/booster","vt":"str"},{"t":"eq","v":"openAger/fridge1/actuators/circulation","vt":"str"},{"t":"eq","v":"openAger/fridge1/actuators/cooling","vt":"str"},{"t":"eq","v":"openAger/fridge1/actuators/heating","vt":"str"},{"t":"eq","v":"openAger/fridge1/actuators/moistening","vt":"str"},{"t":"eq","v":"openAger/fridge1/actuators/drying","vt":"str"},{"t":"eq","v":"openAger/fridge1/actuators/lock","vt":"str"}],"checkall":"true","repair":false,"outputs":9,"x":450,"y":240,"wires":[["4c14ee01.fc641"],["44ff4d33.5a1554"],["38bab156.ad305e"],["230fafe8.b6f3a"],["c7f7b411.d8af98"],["25d7eee4.ffda22"],["d6eab50f.39ab68"],["9f8ef02.e1ba51"],["ccca855e.acde78"]]},{"id":"3afe691f.2aaec6","type":"comment","z":"bfb0b9c4.4e1408","name":"Data aggregation","info":"Below example extract max, min and last from the\nsensor log table, and inserts them into an\naggregate table.","x":140,"y":1120,"wires":[]},{"id":"33a427ab.92a7d8","type":"inject","z":"bfb0b9c4.4e1408","name":"","repeat":"","crontab":"00 03 * * *","once":false,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":110,"y":1240,"wires":[["de9afdd1.a2b1","b291f1f6.00087","4a12d552.491ffc","1e38d249.4393fe"]]},{"id":"de9afdd1.a2b1","type":"function","z":"bfb0b9c4.4e1408","name":"Get Max values","func":"var d = new Date();\nvar epoch = d.getTime();\n// Go to previous day\nd.setTime(d.getTime()-(24*60*60*1000));\n// calculate begining of the day\nd.setHours(0);\nd.setMinutes(0);\nd.setSeconds(0);\nd.setMilliseconds(0);\nvar fromdate = d.getTime();\n// calculate end of the day\nd.setHours(23);\nd.setMinutes(59);\nd.setSeconds(59);\nd.setMilliseconds(999);\nvar enddate = d.getTime();\n\n//msg.topic = \"SELECT device,sensor,max(value) AS value FROM sensor_data WHERE epoch >= \" + fromdate + \" AND epoch <= \" + enddate + \" AND (sensor='openAger/fridge1/sensors/temp_int' or sensor='openAger/fridge1/sensors/hum_int' or sensor='openAger/fridge1/sensors/weight1') GROUP BY sensor\";\nmsg.topic = \"SELECT device,sensor,max(value) AS value FROM sensor_data WHERE epoch >= \" + fromdate + \" AND epoch <= \" + enddate + \" GROUP BY sensor\";\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":1240,"wires":[["e44bf53e.a3ac98"]]},{"id":"b291f1f6.00087","type":"function","z":"bfb0b9c4.4e1408","name":"Get Min values","func":"var d = new Date();\nvar epoch = d.getTime();\n// Go to previous day\nd.setTime(d.getTime()-(24*60*60*1000));\n// calculate begining of the day\nd.setHours(0);\nd.setMinutes(0);\nd.setSeconds(0);\nd.setMilliseconds(0);\nvar fromdate = d.getTime();\n// calculate end of the day\nd.setHours(23);\nd.setMinutes(59);\nd.setSeconds(59);\nd.setMilliseconds(999);\nvar enddate = d.getTime();\n\n//msg.topic = \"SELECT device,sensor,MIN(value) as value FROM sensor_data WHERE epoch >= \" + fromdate + \" AND epoch <= \" + enddate + \" AND (sensor='temp' OR sensor='battery') GROUP BY sensor\";\nmsg.topic = \"SELECT device,sensor,MIN(value) as value FROM sensor_data WHERE epoch >= \" + fromdate + \" AND epoch <= \" + enddate + \" GROUP BY sensor\";\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":1300,"wires":[["fa839892.2b0328"]]},{"id":"4a12d552.491ffc","type":"function","z":"bfb0b9c4.4e1408","name":"Get Last values","func":"var output = [];\nvar d = new Date();\nvar epoch = d.getTime();\n// Go to previous day\nd.setTime(d.getTime()-(24*60*60*1000));\n// calculate begining of the day\nd.setHours(0);\nd.setMinutes(0);\nd.setSeconds(0);\nd.setMilliseconds(0);\nvar fromdate = d.getTime();\n// calculate end of the day\nd.setHours(23);\nd.setMinutes(59);\nd.setSeconds(59);\nd.setMilliseconds(999);\nvar enddate = d.getTime();\n\n//output.push({ topic:\"SELECT device,sensor,value FROM sensor_data WHERE epoch >= \" + fromdate + \" AND epoch <= \" + enddate + \" AND device='growatt' AND sensor='today' ORDER BY id DESC LIMIT 1 \" });\n//output.push({ topic:\"SELECT device,sensor,value FROM sensor_data WHERE epoch >= \" + fromdate + \" AND epoch <= \" + enddate + \" AND device='miflora' AND sensor='moisture' ORDER BY id DESC LIMIT 1 \" });\n\nreturn [output];","outputs":1,"noerr":0,"x":340,"y":1360,"wires":[["ee8c3fb.6f8e2c"]]},{"id":"7a3e6d4f.9596d4","type":"function","z":"bfb0b9c4.4e1408","name":"SQL Updates","func":"var output = [];\nvar d = new Date();\nvar epoch = d.getTime();\n// Go to previous day\nd.setTime(d.getTime()-(24*60*60*1000));\n// calculate begining of the day\nd.setHours(0);\nd.setMinutes(0);\nd.setSeconds(0);\nd.setMilliseconds(0);\nvar fromdate = d.getTime();\n if (!msg.payload[i].sensor.includes(\"openAger/fridge1/actuators\")){\n msg.topic = \"REPLACE INTO sensor_aggr (epoch,device,sensor,value) VALUES(\"+fromdate+\",'\"+msg.payload[0].device+\"','\"+msg.payload[0].sensor+\"',\"+msg.payload[0].value+\")\";\n }\nreturn msg;","outputs":1,"noerr":0,"x":700,"y":1360,"wires":[["b19c7a54.3365f8"]]},{"id":"193d16b7.a55009","type":"function","z":"bfb0b9c4.4e1408","name":"SQL Updates","func":"var output = [];\nvar d = new Date();\nvar epoch = d.getTime();\n// Go to previous day\nd.setTime(d.getTime()-(24*60*60*1000));\n// calculate begining of the day\nd.setHours(0);\nd.setMinutes(0);\nd.setSeconds(0);\nd.setMilliseconds(0);\nvar fromdate = d.getTime();\n\nfor (var i=0; i0) {\n for (var i = 0; i < sourcelist.length; i++) {\n var parts = sourcelist[i].split(\"|\");\n // sql.push({ topic: \"SELECT * FROM sensor_data WHERE device='fridge1' AND sensor='\"+parts[0]+\"' AND epoch >= \" + fromdate + \" AND epoch <= \" + enddate });\n sql.push({ topic: \"SELECT * FROM sensor_data WHERE device='fridge1' AND sensor='\"+sourcelist[i]+\"' AND epoch >= \" + fromdate + \" AND epoch <= \" + enddate });\n \n \n }\n} \n//node.warn(aggrlist);\nif (aggrlist.length>0) {\n for (var i = 0; i < aggrlist.length; i++) {\n var parts = aggrlist[i].split(\"|\");\n sql.push({ topic: \"SELECT * FROM sensor_aggr WHERE device='fridge1' AND sensor='\"+aggrlist[i]+\"' AND epoch >= \" + fromdate + \" AND epoch <= \" + enddate });\n }\n} \nif (sql.length===0) { \n // Dummy select that returns nothing to clear the chart\n sql.push({ topic: \"SELECT * FROM sensor_data WHERE device='xxxx'\" });\n}\n\n// set the completed flag for the join node later\nsql[sql.length-1].complete=true;\n// pass along the email flag to redirect the flow later\nif (msg.topic===\"email\") {\n sql[sql.length-1].email=true;\n}\n\n// Generate report title\nif (sourcelist.length===0 && aggrlist.length===0) {\n title = \"No data source\";\n} else {\n if (sourcelist.length!==0) {\n //title = title + sourcelist.toString()+ \", \";\n }\n if (aggrlist.length!==0) {\n // title = title + aggrlist.toString()+ \", \";\n }\n title = title.substring(0,title.length-2);\n title = title + \"openAger | \";\n\n var d = new Date();\n d.setTime(fromdate);\n var yyyy = d.getFullYear();\n var mm = d.getMonth() < 9 ? \"0\" + (d.getMonth() + 1) : (d.getMonth() + 1); // getMonth() is zero-based\n var dd = d.getDate() < 10 ? \"0\" + d.getDate() : d.getDate();\n var hh = d.getHours() < 10 ? \"0\" + d.getHours() : d.getHours();\n var mmm = d.getMinutes() < 10 ? \"0\" + d.getMinutes() : d.getMinutes();\n var ss = d.getSeconds() < 10 ? \"0\" + d.getSeconds() : d.getSeconds();\n title = title + dd + \".\" + mm + \".\" + yyyy;\n d.setTime(enddate);\n yyyy = d.getFullYear();\n mm = d.getMonth() < 9 ? \"0\" + (d.getMonth() + 1) : (d.getMonth() + 1); // getMonth() is zero-based\n dd = d.getDate() < 10 ? \"0\" + d.getDate() : d.getDate();\n hh = d.getHours() < 10 ? \"0\" + d.getHours() : d.getHours();\n mmm = d.getMinutes() < 10 ? \"0\" + d.getMinutes() : d.getMinutes();\n ss = d.getSeconds() < 10 ? \"0\" + d.getSeconds() : d.getSeconds();\n title = title + \" - \" + dd + \".\" + mm + \".\" + yyyy;\n}\nsql[sql.length-1].title=title;\n\nreturn [ sql ];\n\n","outputs":1,"noerr":0,"x":870,"y":1760,"wires":[["22af8439.69d7fc"]]},{"id":"3c7ee058.18837","type":"ui_chart","z":"bfb0b9c4.4e1408","name":"Chart","group":"f95bc692.43b5a8","order":2,"width":0,"height":0,"label":"","chartType":"line","legend":"false","xformat":"dd HH:mm","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"604800","cutout":"","colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":2,"x":1525.6666946411133,"y":1799.249948501587,"wires":[[],[]]},{"id":"c6674c41.5189c","type":"function","z":"bfb0b9c4.4e1408","name":"Chart Prep","func":"var msg2 = [];\n\nif (msg.payload[0].length>0) {\n // this is the logic when there are multiple data sets are received\n for (var i=0; i 0 && msg.set_circdelay > 0) { \n msg4.topic = 'openAger/fridge1/set/circtime';\n msg4.payload = msg.set_circtime; //msg.set_circtime;\n return [ msg4 ];\n } else {\n ms4 = null;\n }\n \n \n if (msg.state == \"on\" && msg.mode != '99' && msg.set_circtime && msg.set_circdelay ) { \n msg5.topic = 'openAger/fridge1/set/circdelay';\n msg5.payload = \"4444\";\n return [ msg5 ];\n } else {\n msg5 = null;\n }\n\n}\n//return [ msg1, msg2 ];\n\n","outputs":5,"noerr":0,"x":1610,"y":660,"wires":[["2a3dc08a.52357"],["2a3dc08a.52357"],["2a3dc08a.52357","94a0beee.38aa2"],["2a3dc08a.52357","94a0beee.38aa2"],["2a3dc08a.52357"]]},{"id":"c7d0664e.5d9318","type":"ui_text","z":"bfb0b9c4.4e1408","group":"ca61f135.42042","order":5,"width":0,"height":0,"name":"","label":"Phase","format":"{{msg.phase}}","layout":"row-spread","x":1910,"y":380,"wires":[]},{"id":"5df2b7fa.54c378","type":"function","z":"bfb0b9c4.4e1408","name":"filter off","func":"if (global.get(\"state\") == \"off\" || global.get(\"startzeit\") == '0') {\n msg.phase = \"none\";\n}\nreturn msg;","outputs":1,"noerr":0,"x":1700,"y":380,"wires":[["c7d0664e.5d9318"]]},{"id":"94a0beee.38aa2","type":"debug","z":"bfb0b9c4.4e1408","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1870,"y":720,"wires":[]},{"id":"83d0caf4.339f28","type":"function","z":"2a3766ff.038c4a","name":"Runtime/Restzeit","func":"/*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n\n\nif (msg.state == 'on') {\nmsg.runtime = Date.now() - msg.startzeit;\nmsg.restzeit = 48 - ( msg.runtime /1000/60/60/24);\nmsg.finito = 0;\nreturn msg;\n} \n\n","outputs":1,"noerr":0,"x":290,"y":240,"wires":[["9c2297af.3d2028"]]},{"id":"59e7f43c.26a0dc","type":"function","z":"2a3766ff.038c4a","name":"Phase 1","func":"msg.phase = \"Phase 1\";\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":160,"wires":[["44cde4f9.bd9cfc","800fdb5d.0a1af8"]]},{"id":"84829baa.ad9368","type":"function","z":"2a3766ff.038c4a","name":"Phase 2","func":"msg.phase = \"Phase 2\";\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":200,"wires":[["e6cefa25.cfff58","e55f99e0.2bc5d8"]]},{"id":"47b03e53.7a075","type":"function","z":"2a3766ff.038c4a","name":"Phase 3","func":"msg.phase = \"Phase 3\";\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":240,"wires":[["9f261ee6.5b263","306cd77d.bbba98"]]},{"id":"cb6f0c0f.613ce","type":"function","z":"2a3766ff.038c4a","name":"Phase 4","func":"msg.phase = \"Phase 4\";\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":280,"wires":[["6c532696.285458","44d4c8e1.05fdd8"]]},{"id":"262866c5.e512fa","type":"function","z":"2a3766ff.038c4a","name":"Phase 5","func":"msg.phase = \"Phase 5\";\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":320,"wires":[["7147e8ca.46bc78","e82ecb2d.55bb88"]]},{"id":"44cde4f9.bd9cfc","type":"function","z":"2a3766ff.038c4a","name":"T=4","func":"msg.set_temp = \"4\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":80,"wires":[[]]},{"id":"e6cefa25.cfff58","type":"function","z":"2a3766ff.038c4a","name":"T=5","func":"msg.set_temp = \"5\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":160,"wires":[[]]},{"id":"9f261ee6.5b263","type":"function","z":"2a3766ff.038c4a","name":"T=6","func":"msg.set_temp = \"6\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":240,"wires":[[]]},{"id":"7147e8ca.46bc78","type":"function","z":"2a3766ff.038c4a","name":"T=7","func":"msg.set_temp = \"7\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":400,"wires":[[]]},{"id":"6c532696.285458","type":"function","z":"2a3766ff.038c4a","name":"T=6","func":"msg.set_temp = \"6\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":320,"wires":[[]]},{"id":"800fdb5d.0a1af8","type":"function","z":"2a3766ff.038c4a","name":"H=72","func":"msg.set_hum = \"72\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":40,"wires":[[]]},{"id":"e55f99e0.2bc5d8","type":"function","z":"2a3766ff.038c4a","name":"H=65","func":"msg.set_hum = \"65\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":120,"wires":[[]]},{"id":"306cd77d.bbba98","type":"function","z":"2a3766ff.038c4a","name":"H=55","func":"msg.set_hum = \"55\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":200,"wires":[[]]},{"id":"44d4c8e1.05fdd8","type":"function","z":"2a3766ff.038c4a","name":"H=55","func":"msg.set_hum = \"55\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":280,"wires":[[]]},{"id":"e82ecb2d.55bb88","type":"function","z":"2a3766ff.038c4a","name":"H=40","func":"msg.set_hum = \"40\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":360,"wires":[[]]},{"id":"4419c6e4.ea7378","type":"comment","z":"37fce5bb.18d03a","name":"Aging Programm 6 Wochen","info":"","x":220,"y":160,"wires":[]},{"id":"ecf2c17f.474c5","type":"function","z":"37fce5bb.18d03a","name":"Finished!","func":" /*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n global.set(\"state\",\"off\");\n global.set(\"mode\", 0);\n\tglobal.set(\"startzeit\",0);\n\tmsg.state = \"off\";\n\tmsg.mode = '0';\n\tmsg.finito = '1';\n return msg;\n\n","outputs":1,"noerr":0,"x":1020,"y":520,"wires":[[]]},{"id":"18b1ebc6.2bf6b4","type":"function","z":"37fce5bb.18d03a","name":"Runtime/Restzeit","func":"/*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n\n\nif (msg.state == 'on') {\nmsg.runtime = Date.now() - msg.startzeit;\nmsg.restzeit = 48 - ( msg.runtime /1000/60/60/24);\nmsg.finito = 0;\nreturn msg;\n} \n\n","outputs":1,"noerr":0,"x":330,"y":280,"wires":[["3e570faa.80a3f"]]},{"id":"3e570faa.80a3f","type":"switch","z":"37fce5bb.18d03a","name":"Scheduler","property":"runtime","propertyType":"msg","rules":[{"t":"btwn","v":"0","vt":"jsonata","v2":"1000*10","v2t":"jsonata"},{"t":"btwn","v":"1000*10","vt":"jsonata","v2":"1000*10*2","v2t":"jsonata"},{"t":"btwn","v":"1000*10*2","vt":"jsonata","v2":"1000*10*3","v2t":"jsonata"},{"t":"btwn","v":"1000*10*3","vt":"jsonata","v2":"1000*10*4","v2t":"jsonata"},{"t":"btwn","v":"1000*10*4","vt":"jsonata","v2":"1000*10*5","v2t":"jsonata"},{"t":"gt","v":"1000*10*5","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":6,"x":620,"y":280,"wires":[["70dea311.85962c"],["ffbb889e.db0c98"],["1aefb2f1.64067d"],["42af8f53.88a37"],["cf77d7a9.e01a18"],["ecf2c17f.474c5"]]},{"id":"70dea311.85962c","type":"function","z":"37fce5bb.18d03a","name":"Phase 1","func":"msg.phase = \"Phase 1\";\nreturn msg;","outputs":1,"noerr":0,"x":980,"y":200,"wires":[["81765bad.73f7b8"]]},{"id":"ffbb889e.db0c98","type":"function","z":"37fce5bb.18d03a","name":"Phase 2","func":"msg.phase = \"Phase 2\";\nreturn msg;","outputs":1,"noerr":0,"x":980,"y":240,"wires":[["aa815c3f.d8875","7468fdad.ecbb94"]]},{"id":"1aefb2f1.64067d","type":"function","z":"37fce5bb.18d03a","name":"Phase 3","func":"msg.phase = \"Phase 3\";\nreturn msg;","outputs":1,"noerr":0,"x":980,"y":280,"wires":[["5b5c3114.9cbbb","b5670245.b7064"]]},{"id":"42af8f53.88a37","type":"function","z":"37fce5bb.18d03a","name":"Phase 4","func":"msg.phase = \"Phase 4\";\nreturn msg;","outputs":1,"noerr":0,"x":980,"y":320,"wires":[["61af5b93.e11b34","2d22ebe9.1c64e4"]]},{"id":"cf77d7a9.e01a18","type":"function","z":"37fce5bb.18d03a","name":"Phase 5","func":"msg.phase = \"Phase 5\";\nreturn msg;","outputs":1,"noerr":0,"x":980,"y":360,"wires":[["7941a271.22490c","44463589.dd5e2c"]]},{"id":"e4218595.e63ab8","type":"function","z":"37fce5bb.18d03a","name":"T=4","func":"msg.set_temp = \"4\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":140,"wires":[[]]},{"id":"aa815c3f.d8875","type":"function","z":"37fce5bb.18d03a","name":"T=5","func":"msg.set_temp = \"5\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":220,"wires":[[]]},{"id":"5b5c3114.9cbbb","type":"function","z":"37fce5bb.18d03a","name":"T=6","func":"msg.set_temp = \"6\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":300,"wires":[[]]},{"id":"7941a271.22490c","type":"function","z":"37fce5bb.18d03a","name":"T=7","func":"msg.set_temp = \"7\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":460,"wires":[[]]},{"id":"61af5b93.e11b34","type":"function","z":"37fce5bb.18d03a","name":"T=6","func":"msg.set_temp = \"6\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":380,"wires":[[]]},{"id":"98cff5a3.9b1638","type":"function","z":"37fce5bb.18d03a","name":"H=72","func":"msg.set_hum = \"72\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":100,"wires":[[]]},{"id":"7468fdad.ecbb94","type":"function","z":"37fce5bb.18d03a","name":"H=65","func":"msg.set_hum = \"65\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":180,"wires":[[]]},{"id":"b5670245.b7064","type":"function","z":"37fce5bb.18d03a","name":"H=55","func":"msg.set_hum = \"55\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":260,"wires":[[]]},{"id":"2d22ebe9.1c64e4","type":"function","z":"37fce5bb.18d03a","name":"H=55","func":"msg.set_hum = \"55\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":340,"wires":[[]]},{"id":"44463589.dd5e2c","type":"function","z":"37fce5bb.18d03a","name":"H=40","func":"msg.set_hum = \"40\";\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":420,"wires":[[]]},{"id":"dd7a5bbd.8f9bf8","type":"subflow:37fce5bb.18d03a","z":"bfb0b9c4.4e1408","x":740,"y":900,"wires":[["f3079c9f.ee374"]]},{"id":"95e4a392.ab692","type":"switch","z":"acee58da.9b1998","name":"Scheduler","property":"runtime","propertyType":"msg","rules":[{"t":"btwn","v":"0","vt":"jsonata","v2":"1000*60*60*24*12","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*12","vt":"jsonata","v2":"1000*60*60*24*21","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*21","vt":"jsonata","v2":"1000*60*60*24*34","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*34","vt":"jsonata","v2":"1000*60*60*24*43","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*43","vt":"jsonata","v2":"1000*60*60*24*56","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*56","vt":"jsonata","v2":"1000*60*60*24*75","v2t":"jsonata"},{"t":"eq","v":"1000*60*60*24*75","vt":"str"}],"checkall":"true","repair":false,"outputs":7,"x":620,"y":140,"wires":[["ef94c2f6.af0e9"],["7e79120e.fbc2fc"],["81e16629.03f858"],["5b17f770.afa448"],["6d1eed66.0f95c4"],["ead52de1.975f4"],["51c2a2b3.38cdbc"]]},{"id":"c7c4b82f.246598","type":"function","z":"acee58da.9b1998","name":"Runtime/Restzeit","func":"/*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n\n\nif (msg.state == 'on') {\nmsg.runtime = Date.now() - msg.startzeit;\nmsg.restzeit = 75 - ( msg.runtime /1000/60/60/24);\nmsg.finito = 0;\nreturn msg;\n} \n\n","outputs":1,"noerr":0,"x":310,"y":140,"wires":[["95e4a392.ab692"]]},{"id":"752bd367.59bf2c","type":"function","z":"acee58da.9b1998","name":"H=80>70","func":"msg.set_hum = \"70\";\nreturn msg;","outputs":1,"noerr":0,"x":1040,"y":40,"wires":[[]]},{"id":"817febc.bfb5e18","type":"function","z":"acee58da.9b1998","name":"T=2","func":"msg.set_temp = \"2\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":80,"wires":[[]]},{"id":"9a11a6af.29eed8","type":"function","z":"acee58da.9b1998","name":"T=5","func":"msg.set_temp = \"5\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":160,"wires":[[]]},{"id":"639f7dec.426074","type":"function","z":"acee58da.9b1998","name":"H=30","func":"msg.set_hum = \"30\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":120,"wires":[[]]},{"id":"f8b84854.7649d8","type":"function","z":"acee58da.9b1998","name":"H=70>60","func":"msg.set_hum = \"60\";\nreturn msg;","outputs":1,"noerr":0,"x":1040,"y":200,"wires":[[]]},{"id":"ec8f26eb.d2cdc8","type":"function","z":"acee58da.9b1998","name":"T=4","func":"msg.set_temp = \"4\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":240,"wires":[[]]},{"id":"e7458a57.feafc8","type":"function","z":"acee58da.9b1998","name":"T=4","func":"msg.set_temp = \"4\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":320,"wires":[[]]},{"id":"623f070f.357158","type":"function","z":"acee58da.9b1998","name":"T=7","func":"msg.set_temp = \"7\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":400,"wires":[[]]},{"id":"eff7a6a6.8cbb28","type":"function","z":"acee58da.9b1998","name":"T=7","func":"msg.set_temp = \"7\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":480,"wires":[[]]},{"id":"c8290c74.3e776","type":"function","z":"acee58da.9b1998","name":"H=60>50","func":"msg.set_hum = \"50\";\nreturn msg;","outputs":1,"noerr":0,"x":1040,"y":280,"wires":[[]]},{"id":"51fd7786.ea91a8","type":"function","z":"acee58da.9b1998","name":"H=45","func":"msg.set_hum = \"45\";\nreturn msg;","outputs":1,"noerr":0,"x":1030,"y":360,"wires":[[]]},{"id":"51c2a2b3.38cdbc","type":"function","z":"acee58da.9b1998","name":"Finished!","func":" /*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n global.set(\"state\",\"off\");\n global.set(\"mode\", 0);\n\tglobal.set(\"startzeit\",0);\n\tmsg.state = \"off\";\n\tmsg.mode = '0';\n\tmsg.finito = '1';\n return msg;\n\n","outputs":1,"noerr":0,"x":820,"y":520,"wires":[[]]},{"id":"685589b6.4e19f8","type":"function","z":"f44824d.57101d8","name":"Runtime/Restzeit","func":"/*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n\n\nif (msg.state == 'on') {\nmsg.runtime = Date.now() - msg.startzeit;\nmsg.restzeit = 56 - ( msg.runtime /1000/60/60/24);\nmsg.finito = 0;\nreturn msg;\n} \n\n","outputs":1,"noerr":0,"x":270,"y":160,"wires":[["ee5703e9.38bf"]]},{"id":"ee5703e9.38bf","type":"switch","z":"f44824d.57101d8","name":"Scheduler","property":"runtime","propertyType":"msg","rules":[{"t":"btwn","v":"0","vt":"jsonata","v2":"1000*60*60*24*56","v2t":"jsonata"},{"t":"gt","v":"1000*60*60*24*56","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":600,"y":160,"wires":[["583cba15.96a284"],["d0b0bdae.3dab5"]]},{"id":"583cba15.96a284","type":"function","z":"f44824d.57101d8","name":"Phase 1","func":"msg.phase = \"Phase 1\";\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":80,"wires":[["600b186b.af6308","f2d99b09.d996c8"]]},{"id":"f2d99b09.d996c8","type":"function","z":"f44824d.57101d8","name":"H=75","func":"msg.set_hum = \"75\";\nreturn msg;","outputs":1,"noerr":0,"x":1050,"y":60,"wires":[[]]},{"id":"600b186b.af6308","type":"function","z":"f44824d.57101d8","name":"T=3","func":"msg.set_temp = \"3\";\nreturn msg;","outputs":1,"noerr":0,"x":1050,"y":100,"wires":[[]]},{"id":"d0b0bdae.3dab5","type":"function","z":"f44824d.57101d8","name":"Finished!","func":" /*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n global.set(\"state\",\"off\");\n global.set(\"mode\", 0);\n\tglobal.set(\"startzeit\",0);\n\tmsg.state = \"off\";\n\tmsg.mode = '0';\n\tmsg.finito = '1';\n return msg;\n\n","outputs":1,"noerr":0,"x":840,"y":220,"wires":[[]]},{"id":"31401bfa.904924","type":"subflow:f44824d.57101d8","z":"bfb0b9c4.4e1408","x":760,"y":860,"wires":[["f3079c9f.ee374"]]},{"id":"e385f317.1fcff","type":"function","z":"91eb6541.4fd558","name":"Runtime/Restzeit","func":"/*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n\n\nif (msg.state == 'on') {\nmsg.runtime = Date.now() - msg.startzeit;\nmsg.restzeit = 12 - ( msg.runtime /1000/60/60/24);\nmsg.finito = 0;\nreturn msg;\n} \n\n","outputs":1,"noerr":0,"x":310,"y":220,"wires":[["b7de50de.f0334"]]},{"id":"b7de50de.f0334","type":"switch","z":"91eb6541.4fd558","name":"Scheduler","property":"runtime","propertyType":"msg","rules":[{"t":"btwn","v":"0","vt":"jsonata","v2":"1000*60*60*24*1","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*1","vt":"jsonata","v2":"1000*60*60*24*4","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*4","vt":"jsonata","v2":"1000*60*60*24*6","v2t":"num"},{"t":"btwn","v":"1000*60*60*24*6","vt":"jsonata","v2":"1000*60*60*24*9","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*9","vt":"jsonata","v2":"1000*60*60*24*12","v2t":"jsonata"},{"t":"gt","v":"1000*60*60*24*12","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":6,"x":640,"y":220,"wires":[["dbc5aa15.3cf518"],["47175664.524528"],["d09d57bd.d6de68"],["1a9a6149.df9baf"],["5fef02fa.82e6bc"],["6909a133.33f36"]]},{"id":"dbc5aa15.3cf518","type":"function","z":"91eb6541.4fd558","name":"Day 1","func":"msg.phase = \"Phase 1\";\nreturn msg;","outputs":1,"noerr":0,"x":930,"y":140,"wires":[["296c01be.065d5e","200ab38a.5967ac"]]},{"id":"6909a133.33f36","type":"function","z":"91eb6541.4fd558","name":"Finished!","func":" /*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n global.set(\"state\",\"off\");\n global.set(\"mode\", 0);\n\tglobal.set(\"startzeit\",0);\n\tmsg.state = \"off\";\n\tmsg.mode = '0';\n\tmsg.finito = '1';\n return msg;\n\n","outputs":1,"noerr":0,"x":900,"y":600,"wires":[[]]},{"id":"dfcc42af.88f6e","type":"comment","z":"91eb6541.4fd558","name":"Salami","info":"","x":120,"y":80,"wires":[]},{"id":"377eaa0c.2fa036","type":"subflow:91eb6541.4fd558","z":"bfb0b9c4.4e1408","x":730,"y":780,"wires":[["f3079c9f.ee374"]]},{"id":"296c01be.065d5e","type":"function","z":"91eb6541.4fd558","name":"T=18","func":"msg.set_temp = \"18\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":40,"wires":[[]]},{"id":"47175664.524528","type":"function","z":"91eb6541.4fd558","name":"Day 2-4","func":"msg.phase = \"Phase 2\";\nreturn msg;","outputs":1,"noerr":0,"x":940,"y":180,"wires":[["cc6c20e.f7015e","50abe31.dcee21c"]]},{"id":"d09d57bd.d6de68","type":"function","z":"91eb6541.4fd558","name":"Day 5-6","func":"msg.phase = \"Phase 3\";\nreturn msg;","outputs":1,"noerr":0,"x":940,"y":220,"wires":[["d58a6b46.3973a8","5a155601.4317c8"]]},{"id":"1a9a6149.df9baf","type":"function","z":"91eb6541.4fd558","name":"Day 7-9","func":"msg.phase = \"Phase 4\";\nreturn msg;","outputs":1,"noerr":0,"x":940,"y":260,"wires":[["32bac649.37809a","7c55c812.c8f168"]]},{"id":"5fef02fa.82e6bc","type":"function","z":"91eb6541.4fd558","name":"Day 10-12","func":"msg.phase = \"Phase 5\";\nreturn msg;","outputs":1,"noerr":0,"x":950,"y":300,"wires":[["8c3eeb7c.5ca1b8","87be4386.86e6d"]]},{"id":"200ab38a.5967ac","type":"function","z":"91eb6541.4fd558","name":"H=95","func":"msg.set_hum = \"95\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":80,"wires":[[]]},{"id":"cc6c20e.f7015e","type":"function","z":"91eb6541.4fd558","name":"T=22","func":"msg.set_temp = \"22\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":120,"wires":[[]]},{"id":"50abe31.dcee21c","type":"function","z":"91eb6541.4fd558","name":"H=93","func":"msg.set_hum = \"93\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":160,"wires":[[]]},{"id":"d58a6b46.3973a8","type":"function","z":"91eb6541.4fd558","name":"T=20","func":"msg.set_temp = \"20\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":200,"wires":[[]]},{"id":"5a155601.4317c8","type":"function","z":"91eb6541.4fd558","name":"H=90","func":"msg.set_hum = \"90\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":240,"wires":[[]]},{"id":"32bac649.37809a","type":"function","z":"91eb6541.4fd558","name":"T=18","func":"msg.set_temp = \"18\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":280,"wires":[[]]},{"id":"8c3eeb7c.5ca1b8","type":"function","z":"91eb6541.4fd558","name":"T=18","func":"msg.set_temp = \"18\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":360,"wires":[[]]},{"id":"7c55c812.c8f168","type":"function","z":"91eb6541.4fd558","name":"H=85","func":"msg.set_hum = \"85\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":320,"wires":[[]]},{"id":"87be4386.86e6d","type":"function","z":"91eb6541.4fd558","name":"H=80","func":"msg.set_hum = \"80\";\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":400,"wires":[[]]},{"id":"7ae7ad93.8776a4","type":"function","z":"37fce5bb.18d03a","name":"T=5","func":"msg.set_temp = \"5\";\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":660,"wires":[[]]},{"id":"351acf13.da526","type":"function","z":"37fce5bb.18d03a","name":"T=6","func":"msg.set_temp = \"6\";\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":700,"wires":[[]]},{"id":"8896f6a5.da1af8","type":"function","z":"37fce5bb.18d03a","name":"T=7","func":"msg.set_temp = \"7\";\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":740,"wires":[[]]},{"id":"13bf4c84.333533","type":"function","z":"37fce5bb.18d03a","name":"H=85","func":"msg.set_hum = \"85\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":860,"wires":[[]]},{"id":"5066e77d.95ebf8","type":"function","z":"37fce5bb.18d03a","name":"T=2","func":"msg.set_temp = \"2\";\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":580,"wires":[[]]},{"id":"9c80c2b3.de028","type":"function","z":"37fce5bb.18d03a","name":"H=30","func":"msg.set_hum = \"30\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":580,"wires":[[]]},{"id":"ed0eff3c.b5ecc","type":"function","z":"37fce5bb.18d03a","name":"H=72","func":"msg.set_hum = \"72\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":780,"wires":[[]]},{"id":"50f82a00.235178","type":"function","z":"37fce5bb.18d03a","name":"H=70","func":"msg.set_hum = \"70\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":740,"wires":[[]]},{"id":"51b3bc26.8b0704","type":"function","z":"37fce5bb.18d03a","name":"T=4","func":"msg.set_temp = \"4\";\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":620,"wires":[[]]},{"id":"3a7bb6ca.6fb0ea","type":"function","z":"37fce5bb.18d03a","name":"H=65","func":"msg.set_hum = \"65\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":700,"wires":[[]]},{"id":"885dff48.55e3e","type":"function","z":"37fce5bb.18d03a","name":"H=60","func":"msg.set_hum = \"60\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":660,"wires":[[]]},{"id":"6cc6ddf0.0e3ef4","type":"function","z":"37fce5bb.18d03a","name":"H=45","func":"msg.set_hum = \"45\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":620,"wires":[[]]},{"id":"19465228.975afe","type":"function","z":"37fce5bb.18d03a","name":"T=18","func":"msg.set_temp = \"18\";\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":840,"wires":[[]]},{"id":"578360d3.9549d","type":"function","z":"37fce5bb.18d03a","name":"T=22","func":"msg.set_temp = \"22\";\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":920,"wires":[[]]},{"id":"b0efae67.a887d","type":"function","z":"37fce5bb.18d03a","name":"T=20","func":"msg.set_temp = \"20\";\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":880,"wires":[[]]},{"id":"2250a676.49724a","type":"function","z":"37fce5bb.18d03a","name":"H=90","func":"msg.set_hum = \"90\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":900,"wires":[[]]},{"id":"4160e1.73263f2","type":"function","z":"37fce5bb.18d03a","name":"H=93","func":"msg.set_hum = \"93\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":940,"wires":[[]]},{"id":"d0a67a20.86e638","type":"function","z":"37fce5bb.18d03a","name":"H=95","func":"msg.set_hum = \"95\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":980,"wires":[[]]},{"id":"23b85a29.40eef6","type":"function","z":"37fce5bb.18d03a","name":"H=80","func":"msg.set_hum = \"80\";\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":820,"wires":[[]]},{"id":"d520ea5b.d49528","type":"function","z":"58f7dc96.300d44","name":"Runtime/Restzeit","func":"/*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n\n\nif (msg.state == 'on') {\nmsg.runtime = Date.now() - msg.startzeit;\nmsg.restzeit = 70 - ( msg.runtime /1000/60/60/24);\nmsg.finito = 0;\nreturn msg;\n} \n\n","outputs":1,"noerr":0,"x":290,"y":240,"wires":[["6969077.5cb4df8"]]},{"id":"6969077.5cb4df8","type":"switch","z":"58f7dc96.300d44","name":"Scheduler","property":"runtime","propertyType":"msg","rules":[{"t":"btwn","v":"0","vt":"jsonata","v2":"1000*60*60*24*7*4","v2t":"jsonata"},{"t":"btwn","v":"1000*60*60*24*7*4","vt":"jsonata","v2":"1000*80*60*24*7*4","v2t":"jsonata"},{"t":"btwn","v":"1000*80*60*24*7*4","vt":"jsonata","v2":"1000*60*60*24*10","v2t":"jsonata"},{"t":"gt","v":"1000*60*60*24*10","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":4,"x":620,"y":240,"wires":[["9749813a.0ff15"],["9afb7427.b0ebc8"],["4b6cc7c2.01fbc8"],["91004e06.de7ed"]]},{"id":"9749813a.0ff15","type":"function","z":"58f7dc96.300d44","name":"Pökeln 4 Wochen","func":"msg.phase = \"Pökeln\";\nreturn msg;","outputs":1,"noerr":0,"x":950,"y":160,"wires":[["ad0cba22.186628","41a8dd64.285414"]]},{"id":"91004e06.de7ed","type":"function","z":"58f7dc96.300d44","name":"Finished!","func":" /*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n global.set(\"state\",\"off\");\n global.set(\"mode\", 0);\n\tglobal.set(\"startzeit\",0);\n\tmsg.state = \"off\";\n\tmsg.mode = '0';\n\tmsg.finito = '1';\n return msg;\n\n","outputs":1,"noerr":0,"x":880,"y":620,"wires":[[]]},{"id":"b3157870.b52048","type":"comment","z":"58f7dc96.300d44","name":"Speck","info":"","x":190,"y":120,"wires":[]},{"id":"4b6cc7c2.01fbc8","type":"function","z":"58f7dc96.300d44","name":"Reifen 6 Wochen","func":"msg.phase = \"Reifen\";\nreturn msg;","outputs":1,"noerr":0,"x":950,"y":300,"wires":[["517246ed.ac6eb8","30ce3567.ea8ffa"]]},{"id":"517246ed.ac6eb8","type":"function","z":"58f7dc96.300d44","name":"T=10","func":"msg.set_temp = \"10\";\nreturn msg;","outputs":1,"noerr":0,"x":1170,"y":300,"wires":[[]]},{"id":"41a8dd64.285414","type":"function","z":"58f7dc96.300d44","name":"H=70","func":"msg.set_hum = \"70\";\nreturn msg;","outputs":1,"noerr":0,"x":1170,"y":160,"wires":[[]]},{"id":"ad0cba22.186628","type":"function","z":"58f7dc96.300d44","name":"T=4","func":"msg.set_temp = \"4\";\nreturn msg;","outputs":1,"noerr":0,"x":1170,"y":120,"wires":[[]]},{"id":"30ce3567.ea8ffa","type":"function","z":"58f7dc96.300d44","name":"H=65","func":"msg.set_hum = \"65\";\nreturn msg;","outputs":1,"noerr":0,"x":1170,"y":340,"wires":[[]]},{"id":"976a7062.0ee37","type":"e-mail","z":"58f7dc96.300d44","server":"smtp.gmail.com","port":"465","secure":true,"name":"valki@valki.com","dname":"Memo","x":1190,"y":220,"wires":[]},{"id":"a72749f5.cb6808","type":"function","z":"58f7dc96.300d44","name":"Mailtext","func":"\nmsg.topic = \"Speck Räuchern!\";\nmsg.payload = \"Der Speck war jetzt lange genug in der Sure - bitte räuchern und dann reifen!\";\nreturn msg;","outputs":1,"noerr":0,"x":1040,"y":220,"wires":[["976a7062.0ee37"]]},{"id":"108224ba.76c3db","type":"e-mail","z":"37fce5bb.18d03a","server":"smtp.gmail.com","port":"465","secure":true,"name":"valki@valki.com","dname":"Memo","x":1370,"y":580,"wires":[]},{"id":"5cece71f.5ad7a8","type":"function","z":"37fce5bb.18d03a","name":"Mailtext","func":"\nmsg.topic = \"Speck Räuchern!\";\nmsg.payload = \"Der Speck war jetzt lange genug in der Sure - bitte räuchern und dann reifen!\";\nreturn msg;","outputs":1,"noerr":0,"x":1220,"y":580,"wires":[["108224ba.76c3db"]]},{"id":"9afb7427.b0ebc8","type":"delay","z":"58f7dc96.300d44","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"day","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":870,"y":220,"wires":[["a72749f5.cb6808"]]},{"id":"cc167368.d85eb","type":"comment","z":"bfb0b9c4.4e1408","name":"Status Visualizations","info":"","x":1850,"y":280,"wires":[]},{"id":"6bedfd75.a86964","type":"comment","z":"bfb0b9c4.4e1408","name":"Send MQTT","info":"","x":1870,"y":600,"wires":[]},{"id":"6811f7d4.2c07c8","type":"switch","z":"efbc7696.354458","name":"Topic Switch","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"openAger/fridge1/debug/log","vt":"str"},{"t":"eq","v":"openAger/fridge1/debug/alert","vt":"str"},{"t":"eq","v":"openAger/fridge1/debug/email","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":490,"y":1800,"wires":[["a4e24ab7.e8efa8","2f26c5da.880c2a"],["bd35c15b.85ef3","a4e24ab7.e8efa8","f19d8270.85b3b","2f26c5da.880c2a"],["3b5d44cb.c118bc","2f26c5da.880c2a"]]},{"id":"47e34441.9c3e2c","type":"json","z":"bfb0b9c4.4e1408","name":"","property":"payload","action":"","pretty":false,"x":610,"y":520,"wires":[["d2cd3385.c9383"]]},{"id":"19a79b09.1588c5","type":"ui_dropdown","z":"efbc7696.354458","name":"boostermode","label":"Booster Mode","place":"","group":"b09a98a.6139868","order":6,"width":0,"height":0,"passthru":false,"options":[{"label":"static timings","value":"0","type":"str"},{"label":"override","value":"99","type":"str"}],"payload":"","topic":"openAger/fridge1/set/boostermode","x":810,"y":1100,"wires":[["cc4f87dc.b00118"]]},{"id":"91390d9c.8ff5a","type":"ui_dropdown","z":"efbc7696.354458","name":"circmode","label":"Circulation Mode","place":"","group":"b09a98a.6139868","order":2,"width":0,"height":0,"passthru":false,"options":[{"label":"static timings","value":"0","type":"str"},{"label":"auto","value":"1","type":"str"},{"label":"override","value":"99","type":"str"}],"payload":"","topic":"openAger/fridge1/set/circmode","x":800,"y":1140,"wires":[["cc4f87dc.b00118"]]},{"id":"f3c2cb7e.53c6c8","type":"ui_text_input","z":"efbc7696.354458","name":"boostertime","label":"Booster Time","group":"b09a98a.6139868","order":7,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/boostertime","x":810,"y":1220,"wires":[["cc4f87dc.b00118"]]},{"id":"affcf431.36e318","type":"ui_text_input","z":"efbc7696.354458","name":"boosterdelay","label":"Booster Delay","group":"b09a98a.6139868","order":8,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/boosterdelay","x":810,"y":1260,"wires":[["cc4f87dc.b00118"]]},{"id":"1db9b832.0002b8","type":"ui_text_input","z":"efbc7696.354458","name":"circtime","label":"Circulation Time","group":"b09a98a.6139868","order":3,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/circtime","x":800,"y":1300,"wires":[["cc4f87dc.b00118"]]},{"id":"38a153f5.7c7f9c","type":"ui_text_input","z":"efbc7696.354458","name":"circdelay","label":"Circulation Delay","group":"b09a98a.6139868","order":4,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/circdelay","x":800,"y":1340,"wires":[["cc4f87dc.b00118"]]},{"id":"4dabe6d1.d31cd8","type":"ui_text_input","z":"efbc7696.354458","name":"uvctime","label":"UVC Time","group":"b09a98a.6139868","order":10,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/uvctime","x":800,"y":1380,"wires":[["cc4f87dc.b00118"]]},{"id":"9c478f69.f701b","type":"ui_text_input","z":"efbc7696.354458","name":"uvcdelay","label":"UVC Delay","group":"b09a98a.6139868","order":11,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/uvcdelay","x":800,"y":1420,"wires":[["cc4f87dc.b00118"]]},{"id":"dc276f69.90845","type":"ui_dropdown","z":"efbc7696.354458","name":"uvcmode","label":"UVC Mode","place":"","group":"b09a98a.6139868","order":9,"width":0,"height":0,"passthru":false,"options":[{"label":"static timings","value":"0","type":"str"},{"label":"override","value":"99","type":"str"}],"payload":"","topic":"openAger/fridge1/set/uvcmode","x":800,"y":1180,"wires":[["cc4f87dc.b00118"]]},{"id":"81765bad.73f7b8","type":"function","z":"37fce5bb.18d03a","name":"C=1000/1000","func":"msg.set_circmode = '0';\nmsg.set_circtime = '500';\nmsg.set_circdelay = '500';\nreturn msg;\n","outputs":1,"noerr":0,"x":1180,"y":140,"wires":[["98cff5a3.9b1638","e4218595.e63ab8"]]},{"id":"9104459e.09cb08","type":"function","z":"efbc7696.354458","name":"Sensor Checks","func":"error = {}\n//error = null;\n\n\n//place all rules here\n\n// Offline alert\nif (msg.topic == \"OFFLINE\") {\n error.topic = \"Fridge 1 is offline!\";\n error.payload = \"Please check network connection and power supply!\";\n\n} \n\nif (msg.topic == \"TEMP_ERROR\" && msg.payload > 1 ) {\n error.topic = \"Temperature deviation!\";\n error.payload = \"Please check the fridge - internal temperature is out of its hysterese area!\";\n\n} \n\n// Hum sensor\nif (msg.topic == \"openAger/fridge1/sensors/hum1\" && msg.payload < 1 ) {\n error.topic = \"Sensor Hum1 not plausible!\";\n error.payload = \"Please check wiring and environment! Sensor is out of expexted range!\";\n\n} \n\n\n\nreturn [ msg, error ];","outputs":2,"noerr":0,"x":1160,"y":2040,"wires":[[],["bd35c15b.85ef3"]]},{"id":"bd35c15b.85ef3","type":"delay","z":"efbc7696.354458","name":"","pauseType":"queue","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"5","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1460,"y":2040,"wires":[["20532b2b.ad0844"]]},{"id":"97934c4d.e9f9","type":"ui_gauge","z":"efbc7696.354458","name":"G_dewpoint","group":"b7af05c9.acc5c8","order":6,"width":0,"height":0,"gtype":"gage","title":"Dewpoint","label":"°C","format":"{{value | number:2}}","min":"-10","max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1310,"y":2900,"wires":[]},{"id":"b3cd9e73.0f42e","type":"ui_gauge","z":"efbc7696.354458","name":"G_Temp_ext","group":"b7af05c9.acc5c8","order":4,"width":0,"height":0,"gtype":"gage","title":"Temperature ext.","label":"°C","format":"{{value | number:2}}","min":"-5","max":"35","colors":["#00b500","#e6e600","#ca3838"],"seg1":"4","seg2":"10","x":1310,"y":2420,"wires":[]},{"id":"c49a8a00.b36908","type":"ui_gauge","z":"efbc7696.354458","name":"G_Hum ext","group":"77fea715.4f11c8","order":4,"width":0,"height":0,"gtype":"gage","title":"Humidity ext.","label":"%","format":"{{value | number:2}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1310,"y":2720,"wires":[]},{"id":"9336f32b.75a08","type":"ui_gauge","z":"efbc7696.354458","name":"G_Temp_int","group":"b7af05c9.acc5c8","order":1,"width":0,"height":0,"gtype":"gage","title":"Temperature int.","label":"°C","format":"{{value | number:2}}","min":"-5","max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"4","seg2":"10","x":1310,"y":2380,"wires":[]},{"id":"b896923c.08b53","type":"ui_gauge","z":"efbc7696.354458","name":"G_Hum_int","group":"77fea715.4f11c8","order":1,"width":0,"height":0,"gtype":"gage","title":"Humidity int.","label":"%","format":"{{value | number:2}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1310,"y":2680,"wires":[]},{"id":"d4ed8231.e9957","type":"ui_button","z":"bfb0b9c4.4e1408","name":"","group":"3ead58e1.865bd8","order":6,"width":"1","height":"1","passthru":false,"label":"H","color":"","bgcolor":"","icon":"chevron_left","payload":"","payloadType":"str","topic":"minus1h","x":150,"y":1880,"wires":[["52fdaac6.7fafd4","d37ea009.d0b04"]]},{"id":"7f6dbaf.c96b844","type":"ui_button","z":"bfb0b9c4.4e1408","name":"","group":"3ead58e1.865bd8","order":7,"width":"1","height":"1","passthru":false,"label":"H","color":"","bgcolor":"","icon":"chevron_right","payload":"","payloadType":"str","topic":"plus1h","x":150,"y":1920,"wires":[["52fdaac6.7fafd4","d37ea009.d0b04"]]},{"id":"f51d8baf.ece8b8","type":"ui_button","z":"efbc7696.354458","name":"Reboot","group":"ca61f135.42042","order":9,"width":0,"height":0,"passthru":false,"label":"Reboot","tooltip":"","color":"","bgcolor":"","icon":"fa-sync","payload":"1","payloadType":"str","topic":"openAger/fridge1/set/reboot","x":1260,"y":420,"wires":[["9c8d165.2f9aae8"]]},{"id":"9c8d165.2f9aae8","type":"mqtt out","z":"efbc7696.354458","name":"fridge1 no retain","topic":"","qos":"","retain":"false","broker":"4841307a.c2f52","x":1560,"y":1480,"wires":[]},{"id":"a4e24ab7.e8efa8","type":"function","z":"efbc7696.354458","name":"Log Collector","func":"var list = context.get(\"statusList\") || [];\nvar now = new Date();\nvar hours = now.getHours();\nvar minutes = now.getMinutes();\nvar seconds = now.getSeconds();\n\nhours = (\"0\" + hours).slice(-2);\nminutes = (\"0\" + minutes).slice(-2);\nseconds = (\"0\" + seconds).slice(-2);\n\nvar entry = hours + \":\" + minutes + \":\" + seconds + \": \" + msg.payload + \"
\";\nlist.push(entry);\nif (list.length > 10) {\n list = list.slice(-10);\n}\ncontext.set(\"statusList\", list);\nmsg.payload = list.join(\"\");\nreturn msg;","outputs":1,"noerr":0,"x":1070,"y":1760,"wires":[["5f1a3c83.0d9654"]]},{"id":"5f1a3c83.0d9654","type":"ui_template","z":"efbc7696.354458","group":"ca61f135.42042","name":"Log","order":10,"width":"6","height":"6","format":"Log:
","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":1230,"y":1760,"wires":[[]]},{"id":"f19d8270.85b3b","type":"function","z":"efbc7696.354458","name":"add Time","func":"var entry = [];\nvar now = new Date();\nvar month = now.getMonth()+1;\nvar day = now.getDay();\nvar hours = now.getHours();\nvar minutes = now.getMinutes();\nvar seconds = now.getSeconds();\n\nhours = (\"0\" + hours).slice(-2);\nminutes = (\"0\" + minutes).slice(-2);\nseconds = (\"0\" + seconds).slice(-2);\n\nmonth = (\"0\" + month).slice(-2);\nday = (\"0\" + day).slice(-2);\n\nentry = day + \".\" + month + \". \" + hours + \":\" + minutes + \":\" + seconds + \": \" + msg.payload;\nmsg.payload = entry; \nreturn msg;","outputs":1,"noerr":0,"x":1060,"y":1840,"wires":[["d79ce2d8.78362"]]},{"id":"20532b2b.ad0844","type":"function","z":"efbc7696.354458","name":"block empty payloads","func":"if (msg.payload) {\nreturn msg;\n}","outputs":1,"noerr":0,"x":1680,"y":2040,"wires":[["2f26c5da.880c2a"]]},{"id":"b8f08fa0.9aba8","type":"comment","z":"abcf932e.43e39","name":"Scales and Measurements","info":"","x":170,"y":40,"wires":[]},{"id":"c7d27c16.c474a","type":"ui_template","z":"efbc7696.354458","group":"88d811d7.ca6bf","name":"Howto calibrate","order":1,"width":0,"height":0,"format":"
    \n
  1. remove any weight from scale x
  2. \n
  3. push \"reset\" on scale page for the corresponding scale x
  4. \n
  5. put known weight (eg. 995 gram) on scale x
  6. \n
  7. adjust \"set scale x\" until the weight matches
  8. \n
\n Weight = Offsets + acutal Readings.
\n Offsets are just to \"remember\" the last weight before a reboot. Just dont touch them.","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":1540,"y":2260,"wires":[[]]},{"id":"2a08e591.51b2ca","type":"ui_button","z":"abcf932e.43e39","name":"","group":"e7c3e799.f86b28","order":1,"width":"3","height":"1","passthru":false,"label":"Start","color":"","bgcolor":"","icon":"fa-play","payload":"","payloadType":"date","topic":"","x":110,"y":420,"wires":[["ce93a998.93c678"]]},{"id":"487ac15e.f18b4","type":"ui_button","z":"abcf932e.43e39","name":"","group":"e7c3e799.f86b28","order":2,"width":"3","height":"1","passthru":false,"label":"Stop","color":"","bgcolor":"darkred","icon":"fa-stop","payload":"STOP","payloadType":"str","topic":"","x":110,"y":460,"wires":[["ce93a998.93c678"]]},{"id":"ce93a998.93c678","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\n// msg wenn laufend\nmsg1 = {} // wenn stop\nmsg2 = {} // Dumpformat!\n\nif (msg.payload == 'STOP') { \n\tglobal.set(\"scaletime2\",0);\n\n msg = null;\n \n\tmsg1.payload= 0;\n\tmsg1.payload.scaletime2 = 0;\n\n msg2.payload = {\n \"scaletime2\": 0,\n \"weight2\": 0,\n \"startweight2\":0,\n }\n\n\n} else {\n\tglobal.set(\"scaletime2\",msg.payload);\n\tglobal.set(\"startweight2\",global.get(\"weight2\"));\n\t\n\n\tmsg.payload.scaletime2 = global.get(\"scaletime2\");\n msg.payload.weight2 = global.get(\"weight2\");\n msg.payload.startweight2 = global.get(\"startweight2\");\n \n msg1 = null;\n \n msg2.payload = {\n \"scaletime2\": global.get(\"scaletime2\"),\n \"weight2\": global.get(\"weight2\"),\n \"startweight2\":global.get(\"startweight2\"),\n }\n\n}\n\nreturn [ msg, msg1, msg2 ];","outputs":3,"noerr":0,"x":390,"y":440,"wires":[["ee17fe9a.be887"],["c7ef6ac5.518518"],["e6c9ddf.b34db2","b50e484f.67c458"]]},{"id":"ec118324.d2b2f","type":"file","z":"abcf932e.43e39","name":"Dump_Starterinfo","filename":"/data/scale2.dump","appendNewline":false,"createDir":false,"overwriteFile":"true","x":810,"y":480,"wires":[[]]},{"id":"c1b4513c.0e6bc","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\nglobal.set(\"scaletime2\",msg.payload.scaletime2);\nglobal.set(\"weight2\",msg.payload.weight2);\nglobal.set(\"startweight2\",msg.payload.startweight2);\n\nreturn msg;","outputs":1,"noerr":0,"x":730,"y":540,"wires":[["ee17fe9a.be887","b50e484f.67c458"]]},{"id":"49c1290c.c42a98","type":"file in","z":"abcf932e.43e39","name":"Read Dump_Starterinfo","filename":"/data/scale2.dump","format":"utf8","sendError":false,"x":390,"y":540,"wires":[["5bd0657.14f8b9c"]]},{"id":"aa665635.9ef368","type":"inject","z":"abcf932e.43e39","name":"Auto Startup","repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":150,"y":540,"wires":[["49c1290c.c42a98"]]},{"id":"c7ef6ac5.518518","type":"ui_text","z":"abcf932e.43e39","group":"e7c3e799.f86b28","order":3,"width":0,"height":0,"name":"started","label":"Started","format":"{{msg.payload}}","layout":"row-spread","x":1250,"y":420,"wires":[]},{"id":"ee17fe9a.be887","type":"moment","z":"abcf932e.43e39","name":"","topic":"","input":"payload.scaletime2","inputType":"msg","inTz":"Europe/Vienna","adjAmount":0,"adjType":"days","adjDir":"add","format":"DD.MM.YYYY HH:mm","locale":"C","output":"payload","outputType":"msg","outTz":"Europe/Vienna","x":880,"y":380,"wires":[["879bb741.cd14d8"]]},{"id":"879bb741.cd14d8","type":"function","z":"abcf932e.43e39","name":"Empty payload","func":"if (msg.payload == \"01.01.1970 01:00\") {\n msg.payload = \"aus\";\n }\nreturn msg; ","outputs":1,"noerr":0,"x":1100,"y":380,"wires":[["c7ef6ac5.518518"]]},{"id":"e6c9ddf.b34db2","type":"json","z":"abcf932e.43e39","name":"","property":"payload","action":"","pretty":false,"x":570,"y":480,"wires":[["ec118324.d2b2f"]]},{"id":"5bd0657.14f8b9c","type":"json","z":"abcf932e.43e39","name":"","x":570,"y":540,"wires":[["c1b4513c.0e6bc"]]},{"id":"4f631416.33b09c","type":"ui_button","z":"abcf932e.43e39","name":"","group":"39b2ec86.601ea4","order":1,"width":"3","height":"1","passthru":false,"label":"Start","color":"","bgcolor":"","icon":"fa-play","payload":"","payloadType":"date","topic":"","x":90,"y":680,"wires":[["76a0f60e.e2abf8"]]},{"id":"bc5e5428.e0dd18","type":"ui_button","z":"abcf932e.43e39","name":"","group":"39b2ec86.601ea4","order":2,"width":"3","height":"1","passthru":false,"label":"Stop","color":"","bgcolor":"darkred","icon":"fa-stop","payload":"STOP","payloadType":"str","topic":"","x":90,"y":720,"wires":[["76a0f60e.e2abf8"]]},{"id":"76a0f60e.e2abf8","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\n// msg wenn laufend\nmsg1 = {} // wenn stop\nmsg2 = {} // Dumpformat!\n\nif (msg.payload == 'STOP') { \n\tglobal.set(\"scaletime3\",0);\n\n msg = null;\n \n\tmsg1.payload= 0;\n\tmsg1.payload.scaletime3 = 0;\n\n msg2.payload = {\n \"scaletime3\": 0,\n \"weight3\": 0,\n \"startweight3\":0,\n }\n\n\n} else {\n\tglobal.set(\"scaletime3\",msg.payload);\n\tglobal.set(\"startweight3\",global.get(\"weight3\"));\n\t\n\n\tmsg.payload.scaletime3 = global.get(\"scaletime3\");\n msg.payload.weight3 = global.get(\"weight3\");\n msg.payload.startweight3 = global.get(\"startweight3\");\n \n msg1 = null;\n \n msg2.payload = {\n \"scaletime3\": global.get(\"scaletime3\"),\n \"weight3\": global.get(\"weight3\"),\n \"startweight3\":global.get(\"startweight3\"),\n }\n\n}\n\nreturn [ msg, msg1, msg2 ];","outputs":3,"noerr":0,"x":370,"y":700,"wires":[["e85a57bf.f2a528"],["da6644dc.7cbd18"],["252659dd.f5b656","e75aa57.0cb3358"]]},{"id":"7a966c7d.7fe914","type":"file","z":"abcf932e.43e39","name":"Dump_Starterinfo","filename":"/data/scale3.dump","appendNewline":false,"createDir":false,"overwriteFile":"true","x":810,"y":740,"wires":[[]]},{"id":"49872f68.2aa15","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\nglobal.set(\"scaletime3\",msg.payload.scaletime3);\nglobal.set(\"weight3\",msg.payload.weight3);\nglobal.set(\"startweight3\",msg.payload.startweight3);\n\nreturn msg;","outputs":1,"noerr":0,"x":710,"y":800,"wires":[["e85a57bf.f2a528","252659dd.f5b656"]]},{"id":"66b28f92.6c5c7","type":"file in","z":"abcf932e.43e39","name":"Read Dump_Starterinfo","filename":"/data/scale3.dump","format":"utf8","sendError":false,"x":370,"y":800,"wires":[["4dfe87ae.9c5b18"]]},{"id":"d2289a6f.e09608","type":"inject","z":"abcf932e.43e39","name":"Auto Startup","repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":130,"y":800,"wires":[["66b28f92.6c5c7"]]},{"id":"da6644dc.7cbd18","type":"ui_text","z":"abcf932e.43e39","group":"39b2ec86.601ea4","order":3,"width":0,"height":0,"name":"started","label":"Started","format":"{{msg.payload}}","layout":"row-spread","x":1230,"y":700,"wires":[]},{"id":"e85a57bf.f2a528","type":"moment","z":"abcf932e.43e39","name":"","topic":"","input":"payload.scaletime3","inputType":"msg","inTz":"Europe/Vienna","adjAmount":0,"adjType":"days","adjDir":"add","format":"DD.MM.YYYY HH:mm","locale":"C","output":"payload","outputType":"msg","outTz":"Europe/Vienna","x":860,"y":640,"wires":[["30ef5e7.387c5a2"]]},{"id":"30ef5e7.387c5a2","type":"function","z":"abcf932e.43e39","name":"Empty payload","func":"if (msg.payload == \"01.01.1970 01:00\") {\n msg.payload = \"aus\";\n }\nreturn msg; ","outputs":1,"noerr":0,"x":1060,"y":640,"wires":[["da6644dc.7cbd18"]]},{"id":"e75aa57.0cb3358","type":"json","z":"abcf932e.43e39","name":"","property":"payload","action":"","pretty":false,"x":550,"y":740,"wires":[["7a966c7d.7fe914"]]},{"id":"4dfe87ae.9c5b18","type":"json","z":"abcf932e.43e39","name":"","x":550,"y":800,"wires":[["49872f68.2aa15"]]},{"id":"9f4dbe3e.089a1","type":"ui_button","z":"abcf932e.43e39","name":"","group":"fbe9ae29.de1a7","order":1,"width":"3","height":"1","passthru":false,"label":"Start","color":"","bgcolor":"","icon":"fa-play","payload":"","payloadType":"date","topic":"","x":90,"y":980,"wires":[["6a6fc64e.a726a8"]]},{"id":"af3576c3.5e6668","type":"ui_button","z":"abcf932e.43e39","name":"","group":"fbe9ae29.de1a7","order":2,"width":"3","height":"1","passthru":false,"label":"Stop","color":"","bgcolor":"darkred","icon":"fa-stop","payload":"STOP","payloadType":"str","topic":"","x":90,"y":1020,"wires":[["6a6fc64e.a726a8"]]},{"id":"6a6fc64e.a726a8","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\n// msg wenn laufend\nmsg1 = {} // wenn stop\nmsg2 = {} // Dumpformat!\n\nif (msg.payload == 'STOP') { \n\tglobal.set(\"scaletime4\",0);\n\n msg = null;\n \n\tmsg1.payload= 0;\n\tmsg1.payload.scaletime4 = 0;\n\n msg2.payload = {\n \"scaletime4\": 0,\n \"weight4\": 0,\n \"startweight4\":0,\n }\n\n\n} else {\n\tglobal.set(\"scaletime4\",msg.payload);\n\tglobal.set(\"startweight4\",global.get(\"weight4\"));\n\t\n\n\tmsg.payload.scaletime4 = global.get(\"scaletime4\");\n msg.payload.weight4 = global.get(\"weight4\");\n msg.payload.startweight4 = global.get(\"startweight4\");\n \n msg1 = null;\n \n msg2.payload = {\n \"scaletime4\": global.get(\"scaletime4\"),\n \"weight4\": global.get(\"weight4\"),\n \"startweight4\":global.get(\"startweight4\"),\n }\n\n}\n\nreturn [ msg, msg1, msg2 ];","outputs":3,"noerr":0,"x":370,"y":1000,"wires":[["665263ee.90359c"],["988bcd60.4014d"],["920c7433.927ed8","57b2d0ff.a71d1"]]},{"id":"979fb78.7ff7348","type":"file","z":"abcf932e.43e39","name":"Dump_Starterinfo","filename":"/data/scale4.dump","appendNewline":false,"createDir":false,"overwriteFile":"true","x":790,"y":1040,"wires":[[]]},{"id":"b725c1b1.7584","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\nglobal.set(\"scaletime4\",msg.payload.scaletime4);\nglobal.set(\"weight4\",msg.payload.weight4);\nglobal.set(\"startweight4\",msg.payload.startweight4);\n\nreturn msg;","outputs":1,"noerr":0,"x":710,"y":1100,"wires":[["665263ee.90359c","57b2d0ff.a71d1"]]},{"id":"6404034d.c27ddc","type":"file in","z":"abcf932e.43e39","name":"Read Dump_Starterinfo","filename":"/data/scale4.dump","format":"utf8","sendError":false,"x":370,"y":1100,"wires":[["d2fd4017.f243e"]]},{"id":"26a49888.4e1168","type":"inject","z":"abcf932e.43e39","name":"Auto Startup","repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":130,"y":1100,"wires":[["6404034d.c27ddc"]]},{"id":"988bcd60.4014d","type":"ui_text","z":"abcf932e.43e39","group":"fbe9ae29.de1a7","order":3,"width":0,"height":0,"name":"started","label":"Started","format":"{{msg.payload}}","layout":"row-spread","x":1230,"y":1000,"wires":[]},{"id":"665263ee.90359c","type":"moment","z":"abcf932e.43e39","name":"","topic":"","input":"payload.scaletime4","inputType":"msg","inTz":"Europe/Vienna","adjAmount":0,"adjType":"days","adjDir":"add","format":"DD.MM.YYYY HH:mm","locale":"C","output":"payload","outputType":"msg","outTz":"Europe/Vienna","x":840,"y":940,"wires":[["caf435fd.3f6828"]]},{"id":"caf435fd.3f6828","type":"function","z":"abcf932e.43e39","name":"Empty payload","func":"if (msg.payload == \"01.01.1970 01:00\") {\n msg.payload = \"aus\";\n }\nreturn msg; ","outputs":1,"noerr":0,"x":1040,"y":940,"wires":[["988bcd60.4014d"]]},{"id":"920c7433.927ed8","type":"json","z":"abcf932e.43e39","name":"","property":"payload","action":"","pretty":false,"x":570,"y":1040,"wires":[["979fb78.7ff7348"]]},{"id":"d2fd4017.f243e","type":"json","z":"abcf932e.43e39","name":"","x":550,"y":1100,"wires":[["b725c1b1.7584"]]},{"id":"54204f15.6c9be","type":"subflow:abcf932e.43e39","z":"efbc7696.354458","x":410,"y":60,"wires":[]},{"id":"2e60902a.35753","type":"ui_gauge","z":"efbc7696.354458","name":"H_Temp_Dev","group":"63a78f03.20929","order":3,"width":0,"height":0,"gtype":"gage","title":"Temperature Deviation","label":"°C off hysterese","format":"{{value | number:2}}","min":"-0.5","max":"0.5","colors":["#ca3737","#00b500","#ca3838"],"seg1":"-0.1","seg2":"0.1","x":1080,"y":2460,"wires":[]},{"id":"da22106b.2c0ab","type":"function","z":"efbc7696.354458","name":"Calculation","func":"\n\ntemp_int = parseFloat(msg.payload);\nset_hyst = parseFloat(global.get(\"set_hyst\"));\nset_temp = parseFloat(global.get(\"set_temp\"));\n\n\nif (temp_int > set_temp + ( set_hyst / 2 )) {\n msg.payload = temp_int - (set_temp +( set_hyst / 2 ));\n} else if (temp_int < set_temp - ( set_hyst / 2 )) {\n msg.payload = temp_int - (set_temp - ( set_hyst / 2 ));\n\n} else {\n // within hysterese!\n msg.payload = 0;\n}\n\nmsg.topic = \"TEMP_ERROR\";\nreturn msg;","outputs":1,"noerr":0,"x":970,"y":2140,"wires":[["9104459e.09cb08","979f0038.fb835","2e60902a.35753"]]},{"id":"7d5d4556.41763c","type":"function","z":"efbc7696.354458","name":"settings to context","func":"\nif (msg.topic == 'openAger/fridge1/set/temp') {\n global.set(\"set_temp\",msg.payload);\n} else if (msg.topic == 'openAger/fridge1/set/hyst') {\n global.set(\"set_hyst\",msg.payload);\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":1710,"y":820,"wires":[[]]},{"id":"a7a94add.073638","type":"function","z":"efbc7696.354458","name":"Emailtext","func":"msg.topic = \"ALERT: Fridge offline!\";\nmsg.payload = \"Please check power, internet connection etc!\";\nreturn msg;\n","outputs":1,"noerr":0,"x":1220,"y":2180,"wires":[["bd35c15b.85ef3"]]},{"id":"730b4382.d8291c","type":"subflow:53ff1e9.5b961e","z":"bfb0b9c4.4e1408","x":960,"y":900,"wires":[]},{"id":"3763150b.da0e4a","type":"ui_gauge","z":"efbc7696.354458","name":"G_CPU Temp","group":"43f2495e.96eb28","order":5,"width":0,"height":0,"gtype":"gage","title":"CPU Temp","label":"°C","format":"{{value | number:2}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1320,"y":2540,"wires":[]},{"id":"979f0038.fb835","type":"function","z":"efbc7696.354458","name":"Emailtext","func":"\nif (msg.payload > 0.5) {\n\ntopic = \"ALERT: Temperature deviation!\";\nmsg.payload = \"Please check your fridge - we are more than 1 degree off the hysterese!!\";\nreturn msg;\n\n}","outputs":1,"noerr":0,"x":1220,"y":2140,"wires":[["bd35c15b.85ef3"]]},{"id":"b50e484f.67c458","type":"ui_text","z":"abcf932e.43e39","group":"e7c3e799.f86b28","order":3,"width":0,"height":0,"name":"startweight2","label":"Startweight","format":"{{msg.payload.startweight2}} kg","layout":"row-spread","x":1270,"y":480,"wires":[]},{"id":"252659dd.f5b656","type":"ui_text","z":"abcf932e.43e39","group":"39b2ec86.601ea4","order":3,"width":0,"height":0,"name":"startweight3","label":"Startweight","format":"{{msg.payload.startweight3}} kg","layout":"row-spread","x":1250,"y":740,"wires":[]},{"id":"57b2d0ff.a71d1","type":"ui_text","z":"abcf932e.43e39","group":"fbe9ae29.de1a7","order":3,"width":0,"height":0,"name":"startweight4","label":"Startweight","format":"{{msg.payload.startweight4}} kg","layout":"row-spread","x":1250,"y":1040,"wires":[]},{"id":"24485e55.e20652","type":"ui_button","z":"abcf932e.43e39","name":"","group":"91134a7a.5c7bb8","order":1,"width":"3","height":"1","passthru":false,"label":"Start","color":"","bgcolor":"","icon":"fa-play","payload":"","payloadType":"date","topic":"","x":110,"y":140,"wires":[["363ad065.776a6"]]},{"id":"71493e23.f0db5","type":"ui_button","z":"abcf932e.43e39","name":"","group":"91134a7a.5c7bb8","order":2,"width":"3","height":"1","passthru":false,"label":"Stop","color":"","bgcolor":"darkred","icon":"fa-stop","payload":"STOP","payloadType":"str","topic":"","x":110,"y":180,"wires":[["363ad065.776a6"]]},{"id":"363ad065.776a6","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\n// msg wenn laufend\nmsg1 = {} // wenn stop\nmsg2 = {} // Dumpformat!\n\nif (msg.payload == 'STOP') { \n\tglobal.set(\"scaletime1\",0);\n\n msg = null;\n \n\tmsg1.payload= 0;\n\tmsg1.payload.scaletime1 = 0;\n\n msg2.payload = {\n \"scaletime1\": 0,\n \"weight1\": 0,\n \"startweight1\":0,\n }\n\n\n} else {\n\tglobal.set(\"scaletime1\",msg.payload);\n\tglobal.set(\"startweight1\",global.get(\"weight1\"));\n\t\n\n\tmsg.payload.scaletime1 = global.get(\"scaletime1\");\n msg.payload.weight1 = global.get(\"weight1\");\n msg.payload.startweight1 = global.get(\"startweight1\");\n\n msg1 = null;\n \n msg2.payload = {\n \"scaletime1\": global.get(\"scaletime1\"),\n \"weight1\": global.get(\"weight1\"),\n \"startweight1\":global.get(\"startweight1\"),\n }\n\n}\n\nreturn [ msg, msg1, msg2 ];","outputs":3,"noerr":0,"x":390,"y":160,"wires":[["745742e3.af7c3c"],["84e77426.140138"],["663e622c.2a70ac","35b8586f.b04208"]]},{"id":"46f2b501.5db80c","type":"file","z":"abcf932e.43e39","name":"Dump_Starterinfo","filename":"/data/scale1.dump","appendNewline":false,"createDir":false,"overwriteFile":"true","x":730,"y":200,"wires":[[]]},{"id":"a347b7bd.3ea888","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\nglobal.set(\"scaletime1\",msg.payload.scaletime1);\nglobal.set(\"weight1\",msg.payload.weight1);\nglobal.set(\"startweight1\",msg.payload.startweight1);\n\nreturn msg;","outputs":1,"noerr":0,"x":730,"y":260,"wires":[["745742e3.af7c3c","35b8586f.b04208"]]},{"id":"5c2d75e.a9e948c","type":"file in","z":"abcf932e.43e39","name":"Read Dump_Starterinfo","filename":"/data/scale1.dump","format":"utf8","sendError":false,"x":390,"y":260,"wires":[["49b47391.6ad4cc"]]},{"id":"a93a3e3c.db3d","type":"inject","z":"abcf932e.43e39","name":"Auto Startup","repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":150,"y":260,"wires":[["5c2d75e.a9e948c"]]},{"id":"84e77426.140138","type":"ui_text","z":"abcf932e.43e39","group":"91134a7a.5c7bb8","order":3,"width":0,"height":0,"name":"started","label":"Started","format":"{{msg.payload}}","layout":"row-spread","x":1350,"y":160,"wires":[]},{"id":"745742e3.af7c3c","type":"moment","z":"abcf932e.43e39","name":"","topic":"","input":"payload.scaletime1","inputType":"msg","inTz":"Europe/Vienna","adjAmount":0,"adjType":"days","adjDir":"add","format":"DD.MM.YYYY HH:mm","locale":"C","output":"payload","outputType":"msg","outTz":"Europe/Vienna","x":980,"y":120,"wires":[["e4c09c6a.b4091"]]},{"id":"e4c09c6a.b4091","type":"function","z":"abcf932e.43e39","name":"Empty payload","func":"if (msg.payload == \"01.01.1970 01:00\") {\n msg.payload = \"aus\";\n }\nreturn msg; ","outputs":1,"noerr":0,"x":1200,"y":120,"wires":[["84e77426.140138"]]},{"id":"663e622c.2a70ac","type":"json","z":"abcf932e.43e39","name":"","property":"payload","action":"","pretty":false,"x":570,"y":200,"wires":[["46f2b501.5db80c"]]},{"id":"49b47391.6ad4cc","type":"json","z":"abcf932e.43e39","name":"","x":570,"y":260,"wires":[["a347b7bd.3ea888"]]},{"id":"35b8586f.b04208","type":"ui_text","z":"abcf932e.43e39","group":"91134a7a.5c7bb8","order":3,"width":0,"height":0,"name":"startweight1","label":"Startweight","format":"{{msg.payload.startweight1}} kg","layout":"row-spread","x":1370,"y":200,"wires":[]},{"id":"3a6261c6.832a5e","type":"function","z":"bfb0b9c4.4e1408","name":"Runtime/Restzeit","func":"/*\nData format:\n\nmsg.startzeit = timestamp\nmsg.mode = mode\nmsg.state = state\nmsg.runtime\nmsg.restzeit\nmsg.phase\n\n*/\n\n\nif (msg.state == 'on') {\nmsg.runtime = Date.now() - msg.startzeit;\nmsg.restzeit = 2 - ( msg.runtime /1000/60/60/24);\nmsg.finito = 0;\nreturn msg;\n} \n\n","outputs":1,"noerr":0,"x":990,"y":1000,"wires":[["a3df2952.445f48"]]},{"id":"a3df2952.445f48","type":"switch","z":"bfb0b9c4.4e1408","name":"Scheduler","property":"runtime","propertyType":"msg","rules":[{"t":"btwn","v":"0","vt":"jsonata","v2":"1000*5","v2t":"jsonata"},{"t":"gt","v":"1000*5","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":1320,"y":1000,"wires":[["c1fd3aef.d28f98"],["1850642d.99dbec"]]},{"id":"c1fd3aef.d28f98","type":"function","z":"bfb0b9c4.4e1408","name":"Phase 1","func":" msg.topic = 'openAger/fridge1/actuators/uvc';\n msg.payload = '1';","outputs":1,"noerr":0,"x":1580,"y":920,"wires":[["ff93315b.adc91","e27901fa.2fb23"]]},{"id":"1850642d.99dbec","type":"function","z":"bfb0b9c4.4e1408","name":"Finished!","func":"\nmsg2 = {}\n \n\nglobal.set(\"state\",\"off\");\nglobal.set(\"mode\", 0);\nglobal.set(\"startzeit\",0);\nmsg.state = \"off\";\nmsg.mode = '0';\nmsg.finito = '1';\n\nmsg2.topic = 'openAger/fridge1/actuators/uvc';\nmsg2.payload = '0';\n\nreturn [msg, msg2];\n\n","outputs":2,"noerr":0,"x":1580,"y":1060,"wires":[["e27901fa.2fb23","4df5369a.1a0c88"],["ff93315b.adc91"]]},{"id":"ff93315b.adc91","type":"mqtt out","z":"bfb0b9c4.4e1408","name":"Fridge1 retain","topic":"","qos":"","retain":"true","broker":"4841307a.c2f52","x":1980,"y":920,"wires":[]},{"id":"e27901fa.2fb23","type":"debug","z":"bfb0b9c4.4e1408","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1900,"y":1100,"wires":[]},{"id":"d79ce2d8.78362","type":"ui_template","z":"efbc7696.354458","group":"bffb08b3.1b1fa8","name":"Alert","order":11,"width":"6","height":"3","format":"Last Alert:
","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":1230,"y":1840,"wires":[[]]},{"id":"ae7a659.b683398","type":"ui_text_input","z":"efbc7696.354458","name":"Offset Scale1","label":"Offset Scale1","group":"88d811d7.ca6bf","order":6,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/offsetscale1","x":820,"y":640,"wires":[["cc4f87dc.b00118"]]},{"id":"65b69f35.ab8f2","type":"ui_text_input","z":"efbc7696.354458","name":"Offset Scale2","label":"Offset Scale2","group":"88d811d7.ca6bf","order":7,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/offsetscale2","x":820,"y":680,"wires":[["cc4f87dc.b00118"]]},{"id":"c75d1b4f.176008","type":"ui_text_input","z":"efbc7696.354458","name":"Offset Scale3","label":"Offset Scale3","group":"88d811d7.ca6bf","order":8,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/offsetscale3","x":820,"y":720,"wires":[["cc4f87dc.b00118"]]},{"id":"52a4f621.204418","type":"ui_text_input","z":"efbc7696.354458","name":"Offset Scale4","label":"Offset Scale4","group":"88d811d7.ca6bf","order":9,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/offsetscale4","x":820,"y":760,"wires":[["cc4f87dc.b00118"]]},{"id":"d30b6bfc.cd9818","type":"e-mail","z":"efbc7696.354458","server":"smto.gmail.com","port":"465","secure":true,"name":"valki@valki.com","dname":"","x":1300,"y":1900,"wires":[]},{"id":"3b5d44cb.c118bc","type":"function","z":"efbc7696.354458","name":"Emailtext","func":"msg.topic = \"Email from fridge\";\n//msg.payload = \"Timestamp: \" + Date().toString() + \"\\n\" + msg.payload;\nreturn msg;\n","outputs":1,"noerr":0,"x":1080,"y":1900,"wires":[["d30b6bfc.cd9818"]]},{"id":"bda6e240.18bb6","type":"ui_text","z":"efbc7696.354458","group":"ca61f135.42042","order":7,"width":0,"height":0,"name":"H_Power","label":"Power","format":"{{msg.payload}}","layout":"row-spread","x":1060,"y":2940,"wires":[]},{"id":"7fd02ae3.5d6c04","type":"ui_dropdown","z":"efbc7696.354458","name":"hummode","label":"HumidityMode","tooltip":"","place":"","group":"b09a98a.6139868","order":1,"width":0,"height":0,"passthru":false,"options":[{"label":"auto","value":"0","type":"str"},{"label":"vents only","value":"1","type":"str"},{"label":"powermode","value":"2","type":"str"},{"label":"override","value":"99","type":"str"}],"payload":"","topic":"openAger/fridge1/set/hummode","x":800,"y":1460,"wires":[["cc4f87dc.b00118"]]},{"id":"f9411955.abe878","type":"ui_gauge","z":"efbc7696.354458","name":"G_aHum","group":"cc0499bb.626ad8","order":2,"width":0,"height":0,"gtype":"gage","title":"Absolute Humidity Int.","label":"g/m³","format":"{{value | number:2}}","min":0,"max":"15","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1300,"y":2760,"wires":[]},{"id":"4d164004.215b3","type":"ui_gauge","z":"efbc7696.354458","name":"G_set aHum","group":"cc0499bb.626ad8","order":1,"width":0,"height":0,"gtype":"gage","title":"Set Absolute Humidity Int.","label":"g/m³","format":"{{value | number:2}}","min":0,"max":"10","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1310,"y":2800,"wires":[]},{"id":"4c8dc328.6e926c","type":"ui_gauge","z":"efbc7696.354458","name":"G_vpsat","group":"cc0499bb.626ad8","order":3,"width":0,"height":0,"gtype":"gage","title":"Saturation Vapor Pressure","label":"Pa","format":"{{value | number:0}}","min":0,"max":"3000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1300,"y":3020,"wires":[]},{"id":"a8122dc9.d93c3","type":"ui_gauge","z":"efbc7696.354458","name":"G_vp part","group":"cc0499bb.626ad8","order":4,"width":0,"height":0,"gtype":"gage","title":"Partial Pressure of Vapor ","label":"Pa","format":"{{value | number:0}}","min":0,"max":"3000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1300,"y":2980,"wires":[]},{"id":"47940216.202a9c","type":"inject","z":"abcf932e.43e39","name":"","repeat":"10","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":1260,"wires":[["3ef4b4a8.7eb76c"]]},{"id":"d2ade354.bf3d4","type":"ui_text","z":"abcf932e.43e39","group":"91134a7a.5c7bb8","order":3,"width":0,"height":0,"name":"daycount 1","label":"running","format":"{{msg.payload | number:1}} days","layout":"row-spread","x":930,"y":1200,"wires":[]},{"id":"3ef4b4a8.7eb76c","type":"function","z":"abcf932e.43e39","name":"daycounter","func":"msg1 = {} \nmsg2 = {} \nmsg3 = {} \nmsg4 = {} \n\nif (global.get(\"scaletime1\") > 0) {\nmsg1.payload = ( Date.now() - global.get(\"scaletime1\")) / 24 / 60 / 60 / 1000;\n} else {\n msg1.payload = 0;\n}\nif (global.get(\"scaletime2\") > 0) {\nmsg2.payload = ( Date.now() - global.get(\"scaletime2\")) / 24 / 60 / 60 / 1000;\n} else {\n msg2.payload = 0;\n}\nif (global.get(\"scaletime3\") > 0) {\nmsg3.payload = ( Date.now() - global.get(\"scaletime3\")) / 24 / 60 / 60 / 1000;\n} else {\n msg3.payload = 0;\n}\nif (global.get(\"scaletime4\") > 0) {\nmsg4.payload = ( Date.now() - global.get(\"scaletime4\")) / 24 / 60 / 60 / 1000;\n} else {\n msg4.payload = 0;\n}\nreturn [ msg1, msg2, msg3, msg4 ];","outputs":4,"noerr":0,"x":370,"y":1260,"wires":[["15d0bfc6.050ce"],["3d0e353b.9f971a"],["a7a72049.53d9c"],["18196d06.4850a3"]]},{"id":"c711091f.79f058","type":"ui_text","z":"abcf932e.43e39","group":"e7c3e799.f86b28","order":3,"width":0,"height":0,"name":"daycount 2","label":"running","format":"{{msg.payload | number:1}} days","layout":"row-spread","x":930,"y":1240,"wires":[]},{"id":"10eee08c.325e2f","type":"ui_text","z":"abcf932e.43e39","group":"39b2ec86.601ea4","order":3,"width":0,"height":0,"name":"daycount 3","label":"running","format":"{{msg.payload | number:1}} days","layout":"row-spread","x":930,"y":1280,"wires":[]},{"id":"aefa116f.0ec9","type":"ui_text","z":"abcf932e.43e39","group":"fbe9ae29.de1a7","order":3,"width":0,"height":0,"name":"daycount 4","label":"running","format":"{{msg.payload | number:1}} days","layout":"row-spread","x":930,"y":1320,"wires":[]},{"id":"3faa98a3.993de8","type":"ui_dropdown","z":"efbc7696.354458","name":"nosyschecks","label":"Systemchecks","tooltip":"","place":"","group":"d02bb676.9c8768","order":5,"width":0,"height":0,"passthru":false,"options":[{"label":"none","value":"0","type":"str"},{"label":"just check","value":"1","type":"str"},{"label":"check and react","value":"2","type":"str"}],"payload":"","topic":"openAger/fridge1/set/nosyscheck","x":810,"y":1500,"wires":[["cc4f87dc.b00118"]]},{"id":"bc0d7a4f.dd8f48","type":"mqtt in","z":"efbc7696.354458","name":"MQTT temperatures","topic":"openAger/fridge1/sensors/temperature","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":130,"y":2300,"wires":[["26ab9f2c.aed4e"]]},{"id":"26ab9f2c.aed4e","type":"json","z":"efbc7696.354458","name":"Json","property":"payload","action":"","pretty":false,"x":330,"y":2300,"wires":[["acb639e0.add3a8","880e7990.d0e528","f1cf4e6.192bbb","7a281eae.add12","fb5deae3.bb5e08","d7f41aad.2b68a8","a88ddd08.9fe86","96f59d1b.efbdd"]]},{"id":"acb639e0.add3a8","type":"change","z":"efbc7696.354458","name":"t1","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.t1","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"temp_1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2300,"wires":[["49b35de3.332724","2ad62b2f.bc7a94","f0f5a811.7fdfe8"]]},{"id":"880e7990.d0e528","type":"change","z":"efbc7696.354458","name":"t2","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.t2","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"temp_2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2340,"wires":[["a4157f54.9d5e5","2ad62b2f.bc7a94","f0f5a811.7fdfe8"]]},{"id":"f1cf4e6.192bbb","type":"change","z":"efbc7696.354458","name":"ti","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.ti","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"temp_int","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2380,"wires":[["45ac43ce.9c400c","2ad62b2f.bc7a94","da22106b.2c0ab","f0f5a811.7fdfe8","604787a9.79f768"]]},{"id":"7a281eae.add12","type":"change","z":"efbc7696.354458","name":"te","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.te","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"temp_ext","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2420,"wires":[["b3cd9e73.0f42e","131a219.892ccde","373a1b57.b38ea4","f0f5a811.7fdfe8"]]},{"id":"fb5deae3.bb5e08","type":"change","z":"efbc7696.354458","name":"tde","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.tde","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"temp_dev","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2460,"wires":[["f0f5a811.7fdfe8"]]},{"id":"d7f41aad.2b68a8","type":"change","z":"efbc7696.354458","name":"tdi","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.tdi","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"temp_diff","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2500,"wires":[[]]},{"id":"a88ddd08.9fe86","type":"change","z":"efbc7696.354458","name":"tc","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.tc","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"temp_cpu","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2540,"wires":[["3763150b.da0e4a","f0f5a811.7fdfe8"]]},{"id":"4491ef8c.5b4a1","type":"mqtt in","z":"efbc7696.354458","name":"MQTT Humidity","topic":"openAger/fridge1/sensors/humidity","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":120,"y":2600,"wires":[["40e79151.e27d4"]]},{"id":"40e79151.e27d4","type":"json","z":"efbc7696.354458","name":"Json","property":"payload","action":"","pretty":false,"x":330,"y":2600,"wires":[["6a842ede.7a202","436be6d2.cd2cf8","446c45c.4dea9bc","349bcae8.38fc26","a633cb2e.378818","9d118a1f.d673c8","74721689.345088","48279d70.8018d4"]]},{"id":"6a842ede.7a202","type":"change","z":"efbc7696.354458","name":"h1","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.h1","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"hum_1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2600,"wires":[["cd8f46cc.d124e8","b18c1df6.cdfb8","56bdfc52.2ad184"]]},{"id":"436be6d2.cd2cf8","type":"change","z":"efbc7696.354458","name":"h2","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.h2","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"hum_2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2640,"wires":[["c3c278b3.2f25d8","b18c1df6.cdfb8","56bdfc52.2ad184"]]},{"id":"446c45c.4dea9bc","type":"change","z":"efbc7696.354458","name":"hi","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.hi","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"hum_int","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2680,"wires":[["b896923c.08b53","b18c1df6.cdfb8","56bdfc52.2ad184","aa9258ff.d2a7c8"]]},{"id":"349bcae8.38fc26","type":"change","z":"efbc7696.354458","name":"ha","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.ha","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"hum_absolut","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2760,"wires":[["f9411955.abe878","56bdfc52.2ad184"]]},{"id":"a633cb2e.378818","type":"change","z":"efbc7696.354458","name":"he","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.he","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"hum_ext","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2720,"wires":[["c0a8ffef.f2a05","c49a8a00.b36908","2a4ea03d.abf04","56bdfc52.2ad184"]]},{"id":"9d118a1f.d673c8","type":"change","z":"efbc7696.354458","name":"hde","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.hde","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"hum_dev","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2840,"wires":[[]]},{"id":"ed26d3ac.1bf78","type":"change","z":"efbc7696.354458","name":"hdi","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.hdi","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"hum_diff","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":3140,"wires":[[]]},{"id":"74721689.345088","type":"change","z":"efbc7696.354458","name":"has","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.has","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"hum_absolut_set","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2800,"wires":[["4d164004.215b3"]]},{"id":"31a19251.90d9be","type":"mqtt in","z":"efbc7696.354458","name":"MQTT Special","topic":"openAger/fridge1/sensors/special","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":110,"y":2900,"wires":[["869ea1af.87042"]]},{"id":"869ea1af.87042","type":"json","z":"efbc7696.354458","name":"Json","property":"payload","action":"","pretty":false,"x":330,"y":2900,"wires":[["d191c0cd.8bbf5","f5dfbf45.ac0b6","c2a1a3ce.1cfb1","cf20a535.d62a18","5387a018.95b93","ed26d3ac.1bf78","bce52153.5caa1"]]},{"id":"d191c0cd.8bbf5","type":"change","z":"efbc7696.354458","name":"dp","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.dp","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"dewpoint","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2900,"wires":[["97934c4d.e9f9","c2b38d59.42874"]]},{"id":"f5dfbf45.ac0b6","type":"change","z":"efbc7696.354458","name":"pw","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.pw","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"power","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2940,"wires":[["bda6e240.18bb6","17cd9975.d9d427","c2b38d59.42874","c46444ef.243438"]]},{"id":"c2a1a3ce.1cfb1","type":"change","z":"efbc7696.354458","name":"vp","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.vp","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"vap_pressure","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":2980,"wires":[["a8122dc9.d93c3","c2b38d59.42874"]]},{"id":"97538940.c3c8f8","type":"change","z":"efbc7696.354458","name":"air","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.air","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"air","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":570,"y":3820,"wires":[["be87177a.c89728","2d296cb8.5e0894","507b217c.d7281"]]},{"id":"cf20a535.d62a18","type":"change","z":"efbc7696.354458","name":"vs","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.vs","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"vap_saturation","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":3020,"wires":[["4c8dc328.6e926c","c2b38d59.42874"]]},{"id":"5387a018.95b93","type":"change","z":"efbc7696.354458","name":"uv","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.uv","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"uv","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":3100,"wires":[["8a1f239.4522be","c00a6bf5.83a728","c2b38d59.42874"]]},{"id":"b8b0d3d8.26a02","type":"mqtt in","z":"efbc7696.354458","name":"MQTT Scales","topic":"openAger/fridge1/sensors/scales","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":110,"y":3220,"wires":[["98e0b1ce.5d892"]]},{"id":"98e0b1ce.5d892","type":"json","z":"efbc7696.354458","name":"Json","property":"payload","action":"","pretty":false,"x":330,"y":3220,"wires":[["f9007db2.a71ec","696c2411.b0451c","68b861f2.40289","ee31a5df.dd8fe8","92895b56.58b6e8"]]},{"id":"f9007db2.a71ec","type":"change","z":"efbc7696.354458","name":"s1","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.s1","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"weight_1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":3220,"wires":[["2b02c3d5.4949ac","401fff32.e9605","f880d8c6.b00918"]]},{"id":"696c2411.b0451c","type":"change","z":"efbc7696.354458","name":"s2","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.s2","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"weight_2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":3260,"wires":[["8f4cb609.d1e538","401fff32.e9605","53acbe41.5cfca"]]},{"id":"68b861f2.40289","type":"change","z":"efbc7696.354458","name":"s3","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.s3","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"weight_3","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":3300,"wires":[["a9f3c698.e073b8","401fff32.e9605","444b60cc.fd821"]]},{"id":"ee31a5df.dd8fe8","type":"change","z":"efbc7696.354458","name":"s4","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.s4","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"weight_4","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":3340,"wires":[["2b75b5a3.77d1fa","401fff32.e9605","6b24d0fa.1ae65"]]},{"id":"f0f5a811.7fdfe8","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":910,"y":2260,"wires":[]},{"id":"1740803.7d3458","type":"function","z":"4d0dc15f.1a937","name":"Save to DB","func":"var sql = \"\";\nvar d = new Date();\nvar epoch = d.getTime();\nvar outputs = [];\n//node.error(epoch);\nsql = \"INSERT INTO sensor_data (device,sensor,value,epoch) \" +\n \"VALUES ('fridge1','\"+msg.topic+\"','\"+msg.payload+\"',\"+epoch+\")\";\noutputs.push({topic:sql}); \n/*\nsql = \"INSERT INTO sensor_data(device,sensor,value,epoch) \" +\n \"VALUES ('miflora','sunlight',\"+msg.payload.sunlight+\",\"+epoch+\")\";\noutputs.push({topic:sql}); \nsql = \"INSERT INTO sensor_data(device,sensor,value,epoch) \" +\n \"VALUES ('miflora','moisture',\"+msg.payload.moisture+\",\"+epoch+\")\";\noutputs.push({topic:sql}); \nsql = \"INSERT INTO sensor_data(device,sensor,value,epoch) \" +\n \"VALUES ('miflora','fertility',\"+msg.payload.fertility+\",\"+epoch+\")\"; \noutputs.push({topic:sql}); \nsql = \"INSERT INTO sensor_data(device,sensor,value,epoch) \" +\n \"VALUES ('miflora','battery',\"+msg.payload.battery+\",\"+epoch+\")\"; \noutputs.push({topic:sql}); */ \n \n// Update the status with current timestamp\nvar now = new Date();\nvar yyyy = now.getFullYear();\nvar mm = now.getMonth() < 9 ? \"0\" + (now.getMonth() + 1) : (now.getMonth() + 1); // getMonth() is zero-based\nvar dd = now.getDate() < 10 ? \"0\" + now.getDate() : now.getDate();\nvar hh = now.getHours() < 10 ? \"0\" + now.getHours() : now.getHours();\nvar mmm = now.getMinutes() < 10 ? \"0\" + now.getMinutes() : now.getMinutes();\nvar ss = now.getSeconds() < 10 ? \"0\" + now.getSeconds() : now.getSeconds();\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Last update: \"+dd + \".\" + mm + \".\" + yyyy + \" \" + hh + \":\" + mmm + \":\" + ss}); \n \nreturn [ outputs ];","outputs":1,"noerr":0,"x":410,"y":140,"wires":[["7d26f072.0171b"]]},{"id":"44ed96fe.5856d8","type":"comment","z":"4d0dc15f.1a937","name":"Save all sensor/set/actuator data in DB","info":"This function node creates multiple INSERT INTO\ncommands for data points that are stored in \nattributes of the payload.","x":290,"y":80,"wires":[]},{"id":"7d26f072.0171b","type":"mysql","z":"4d0dc15f.1a937","mydb":"66bacdef.786e04","name":"","x":580,"y":140,"wires":[[]]},{"id":"5184119d.393e","type":"delay","z":"4d0dc15f.1a937","name":"","pauseType":"timed","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":210,"y":140,"wires":[["1740803.7d3458"]]},{"id":"56bdfc52.2ad184","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":1070,"y":2580,"wires":[]},{"id":"c2b38d59.42874","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":1070,"y":2880,"wires":[]},{"id":"401fff32.e9605","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","name":"","env":[],"x":870,"y":3180,"wires":[]},{"id":"8d590abd.42ee38","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":810,"y":60,"wires":[]},{"id":"7a44634.a053b9c","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":810,"y":440,"wires":[]},{"id":"285222c0.4e4e3e","type":"ui_gauge","z":"efbc7696.354458","name":"lost scale 1","group":"91134a7a.5c7bb8","order":7,"width":0,"height":0,"gtype":"wave","title":"water loss","label":"%","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1290,"y":3220,"wires":[]},{"id":"f880d8c6.b00918","type":"function","z":"efbc7696.354458","name":"calc percentage","func":"global.set(\"weight1\",msg.payload);\n\nif \t(global.get(\"scaletime1\") > 0) {\n msg.payload = 100- (100 / global.get(\"startweight1\") * msg.payload ); \n} else {\n msg.payload = 0;\n}\n\nglobal.set(\"water1\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":1060,"y":3220,"wires":[["285222c0.4e4e3e"]]},{"id":"f9275653.f26198","type":"ui_gauge","z":"efbc7696.354458","name":"lost scale 2","group":"e7c3e799.f86b28","order":7,"width":0,"height":0,"gtype":"wave","title":"water loss","label":"%","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1290,"y":3260,"wires":[]},{"id":"233fa08.26b4f6","type":"ui_gauge","z":"efbc7696.354458","name":"lost scale 3","group":"39b2ec86.601ea4","order":7,"width":0,"height":0,"gtype":"wave","title":"water loss","label":"%","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1290,"y":3300,"wires":[]},{"id":"71c72916.362a68","type":"ui_gauge","z":"efbc7696.354458","name":"lost scale 4","group":"fbe9ae29.de1a7","order":7,"width":0,"height":0,"gtype":"wave","title":"water loss","label":"%","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1290,"y":3340,"wires":[]},{"id":"53acbe41.5cfca","type":"function","z":"efbc7696.354458","name":"calc percentage","func":"global.set(\"weight2\",msg.payload);\n\nif \t(global.get(\"scaletime2\") > 0) {\n msg.payload = 100- (100 / global.get(\"startweight2\") * msg.payload ); \n} else {\n msg.payload = 0;\n}\n\nglobal.set(\"water2\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":1060,"y":3260,"wires":[["f9275653.f26198"]]},{"id":"444b60cc.fd821","type":"function","z":"efbc7696.354458","name":"calc percentage","func":"global.set(\"weight3\",msg.payload);\n\nif \t(global.get(\"scaletime3\") > 0) {\n msg.payload = 100- (100 / global.get(\"startweight3\") * msg.payload ); \n} else {\n msg.payload = 0;\n}\n\nglobal.set(\"water3\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":1060,"y":3300,"wires":[["233fa08.26b4f6"]]},{"id":"6b24d0fa.1ae65","type":"function","z":"efbc7696.354458","name":"calc percentage","func":"global.set(\"weight4\",msg.payload);\n\nif \t(global.get(\"scaletime4\") > 0) {\n msg.payload = 100- (100 / global.get(\"startweight4\") * msg.payload ); \n} else {\n msg.payload = 0;\n}\n\nglobal.set(\"water4\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":1060,"y":3340,"wires":[["71c72916.362a68"]]},{"id":"1e38d249.4393fe","type":"function","z":"bfb0b9c4.4e1408","name":"Trim old data > 120 days","func":"var output = [];\nvar d = new Date();\nvar epoch = d.getTime();\n// 120 Tage\nd.setTime(d.getTime()-(120*24*60*60*1000));\n// calculate begining of the day\nd.setHours(0);\nd.setMinutes(0);\nd.setSeconds(0);\nd.setMilliseconds(0);\nvar fromdate = d.getTime();\n\noutput.push({ topic:\"delete FROM sensor_data WHERE epoch < \" + fromdate });\n\nreturn [output];","outputs":1,"noerr":0,"x":370,"y":1420,"wires":[["b19c7a54.3365f8"]]},{"id":"6f1e86d4.10d908","type":"file","z":"efbc7696.354458","name":"node-red.log","filename":"/data/node-red.log","appendNewline":true,"createDir":true,"overwriteFile":"false","x":2030,"y":1800,"wires":[[]]},{"id":"c43a9881.e07368","type":"moment","z":"efbc7696.354458","name":"","topic":"","input":"","inputType":"msg","inTz":"","adjAmount":0,"adjType":"days","adjDir":"add","format":"","locale":"","output":"","outputType":"msg","outTz":"","x":1360,"y":1600,"wires":[[]]},{"id":"2f26c5da.880c2a","type":"function","z":"efbc7696.354458","name":"add Time","func":"var entry = [];\nvar now = new Date();\nvar month = now.getMonth()+1;\nvar day = now.getDate();\nvar year = now.getFullYear();\nvar hour = now.getHours();\nvar min = now.getMinutes();\nvar sek = now.getSeconds();\nvar mil = now.getMilliseconds();\n\nmonth = (\"0\" + month).slice(-2);\nday = (\"0\" + day).slice(-2);\n\nhour = (\"0\" + hour).slice(-2);\nmin = (\"0\" + min).slice(-2);\nsek = (\"0\" + sek).slice(-2);\n//mil = (\"000\" + sek).slice(-3);\n\n\nentry = day + \".\" + month + \".\" + year + \" \" + hour + \":\" + min + \":\" + sek + \":\" + mil + \" \" + msg.payload;\nmsg.payload = entry; \nreturn msg;","outputs":1,"noerr":0,"x":1840,"y":1800,"wires":[["6f1e86d4.10d908"]]},{"id":"edf083fc.7d1b8","type":"ui_dropdown","z":"efbc7696.354458","name":"Type Sensor 1","label":"Type Sensor 1","tooltip":"","place":"","group":"d02bb676.9c8768","order":1,"width":0,"height":0,"passthru":false,"options":[{"label":"none","value":"0","type":"str"},{"label":"Bus 1: BME280","value":"10","type":"str"},{"label":"Bus 1: BME280 #2","value":"11","type":"str"},{"label":"Bus 1: SHT31","value":"12","type":"str"},{"label":"Bus 1: SHT31 #2","value":"13","type":"str"},{"label":"Bus 2: BME280","value":"20","type":"str"},{"label":"Bus 2: BME280 #2","value":"21","type":"str"},{"label":"Bus 2: SHT31","value":"22","type":"str"},{"label":"Bus 2: SHT31 #2","value":"23","type":"str"},{"label":"Bus 3: BME280","value":"30","type":"str"},{"label":"Bus 3: BME280 #2","value":"31","type":"str"},{"label":"Bus 3: SHT31","value":"32","type":"str"},{"label":"Bus 3: SHT31 #2","value":"33","type":"str"}],"payload":"","topic":"openAger/fridge1/set/sensor1","x":820,"y":1540,"wires":[["cc4f87dc.b00118"]]},{"id":"cc1a68a4.59d4b8","type":"ui_dropdown","z":"efbc7696.354458","name":"dualsensor","label":"Dual Sensor mode","place":"","group":"d02bb676.9c8768","order":4,"width":0,"height":0,"passthru":false,"options":[{"label":"no","value":"0","type":"str"},{"label":"yes","value":"1","type":"str"}],"payload":"","topic":"openAger/fridge1/set/dual","x":810,"y":1740,"wires":[["cc4f87dc.b00118"]]},{"id":"d50e4db3.15ecd","type":"ui_dropdown","z":"efbc7696.354458","name":"Type Sensor 2","label":"Type Sensor 2","tooltip":"","place":"","group":"d02bb676.9c8768","order":2,"width":0,"height":0,"passthru":false,"options":[{"label":"none","value":"0","type":"str"},{"label":"Bus 1: BME280","value":"10","type":"str"},{"label":"Bus 1: BME280 #2","value":"11","type":"str"},{"label":"Bus 1: SHT31","value":"12","type":"str"},{"label":"Bus 1: SHT31 #2","value":"13","type":"str"},{"label":"Bus 2: BME280","value":"20","type":"str"},{"label":"Bus 2: BME280 #2","value":"21","type":"str"},{"label":"Bus 2: SHT31","value":"22","type":"str"},{"label":"Bus 2: SHT31 #2","value":"23","type":"str"},{"label":"Bus 3: BME280","value":"30","type":"str"},{"label":"Bus 3: BME280 #2","value":"31","type":"str"},{"label":"Bus 3: SHT31","value":"32","type":"str"},{"label":"Bus 3: SHT31 #2","value":"33","type":"str"}],"payload":"","topic":"openAger/fridge1/set/sensor2","x":820,"y":1580,"wires":[["cc4f87dc.b00118"]]},{"id":"607273a8.9c951c","type":"ui_dropdown","z":"efbc7696.354458","name":"Type Sensor E","label":"Type Sensor Ext","tooltip":"","place":"","group":"d02bb676.9c8768","order":3,"width":0,"height":0,"passthru":false,"options":[{"label":"none","value":"0","type":"str"},{"label":"Bus 1: BME280","value":"10","type":"str"},{"label":"Bus 1: BME280 #2","value":"11","type":"str"},{"label":"Bus 1: SHT31","value":"12","type":"str"},{"label":"Bus 1: SHT31 #2","value":"13","type":"str"},{"label":"Bus 2: BME280","value":"20","type":"str"},{"label":"Bus 2: BME280 #2","value":"21","type":"str"},{"label":"Bus 2: SHT31","value":"22","type":"str"},{"label":"Bus 2: SHT31 #2","value":"23","type":"str"},{"label":"Bus 3: BME280","value":"30","type":"str"},{"label":"Bus 3: BME280 #2","value":"31","type":"str"},{"label":"Bus 3: SHT31","value":"32","type":"str"},{"label":"Bus 3: SHT31 #2","value":"33","type":"str"}],"payload":"","topic":"openAger/fridge1/set/sensore","x":820,"y":1620,"wires":[["cc4f87dc.b00118"]]},{"id":"22972139.d2695e","type":"ui_text_input","z":"efbc7696.354458","name":"Coolerpower","label":"Coolerpower","group":"4b96690f.894e08","order":5,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/coolerpower","x":810,"y":1700,"wires":[["cc4f87dc.b00118"]]},{"id":"9de9b0b7.13693","type":"ui_text_input","z":"efbc7696.354458","name":"CheckTempDiff","label":"CheckTempDiff","group":"d02bb676.9c8768","order":6,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/checktempdiff","x":1100,"y":1380,"wires":[["cc4f87dc.b00118"]]},{"id":"4d4fcc0f.c63174","type":"ui_text_input","z":"efbc7696.354458","name":"CheckHumDiff","label":"CheckHumDiff","group":"d02bb676.9c8768","order":7,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/checkhumdiff","x":1100,"y":1420,"wires":[["cc4f87dc.b00118"]]},{"id":"ba2b3ad5.603118","type":"ui_text_input","z":"efbc7696.354458","name":"TickSensors","label":"TickSensors","group":"4b96690f.894e08","order":1,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/ticksensors","x":1090,"y":1460,"wires":[["cc4f87dc.b00118"]]},{"id":"669dd524.8c12ec","type":"ui_text_input","z":"efbc7696.354458","name":"TickDisplay","label":"TickDisplay","group":"4b96690f.894e08","order":2,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/tickdisplay","x":1090,"y":1500,"wires":[["cc4f87dc.b00118"]]},{"id":"f18d605a.86367","type":"ui_text_input","z":"efbc7696.354458","name":"TickBackup","label":"TickBackup","group":"4b96690f.894e08","order":3,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/tickbackup","x":1090,"y":1540,"wires":[["cc4f87dc.b00118"]]},{"id":"82f5582c.485868","type":"ui_text_input","z":"efbc7696.354458","name":"TickScales","label":"TickScales","group":"4b96690f.894e08","order":4,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/tickscales","x":1090,"y":1580,"wires":[["cc4f87dc.b00118"]]},{"id":"237496a0.f5b9fa","type":"ui_text_input","z":"efbc7696.354458","name":"CoolerProtect","label":"CoolerProtect","group":"4b96690f.894e08","order":6,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/coolerprotect","x":1100,"y":1620,"wires":[["cc4f87dc.b00118"]]},{"id":"281def3b.457c8","type":"mqtt in","z":"efbc7696.354458","name":"MQTT Historic","topic":"openAger/fridge1/sensors/hist","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":110,"y":3420,"wires":[["49e34cbc.6b7654"]]},{"id":"49e34cbc.6b7654","type":"json","z":"efbc7696.354458","name":"Json","property":"payload","action":"","pretty":false,"x":330,"y":3420,"wires":[["ca802702.7fafc8","dcb37f2a.e9f88","86049c52.70bcf","d338eb13.4b1138","fcd7bf53.daedb","93272af7.19db38","ae1a4f61.c8ff"]]},{"id":"b4c60510.82e9d8","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":930,"y":3400,"wires":[]},{"id":"d07aaecc.9a2dd","type":"ui_chart","z":"efbc7696.354458","name":"C_Hist","group":"c1fcc324.6a01","order":3,"width":0,"height":0,"label":"Historic changes","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"0","ymax":"5","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":1510,"y":3420,"wires":[[],[]]},{"id":"ca802702.7fafc8","type":"function","z":"efbc7696.354458","name":"hist1","func":"\nmsg.topic = \"hist1\";\nmsg.payload = Number((msg.payload.hs1 - msg.payload.hs0).toFixed(4)); \nreturn msg;\n\n","outputs":1,"noerr":0,"x":530,"y":3420,"wires":[["b4c60510.82e9d8","d07aaecc.9a2dd","3967db8f.3d22c4"]]},{"id":"dcb37f2a.e9f88","type":"function","z":"efbc7696.354458","name":"hist2","func":"\nmsg.topic = \"hist2\";\nmsg.payload = Number((msg.payload.hs2 - msg.payload.hs0).toFixed(4)); \nreturn msg;","outputs":1,"noerr":0,"x":530,"y":3460,"wires":[["b4c60510.82e9d8","d07aaecc.9a2dd"]]},{"id":"86049c52.70bcf","type":"function","z":"efbc7696.354458","name":"hist3","func":"\nmsg.topic = \"hist3\";\nmsg.payload = Number((msg.payload.hs3 - msg.payload.hs0).toFixed(4)); \nreturn msg;","outputs":1,"noerr":0,"x":530,"y":3500,"wires":[["b4c60510.82e9d8","d07aaecc.9a2dd"]]},{"id":"d338eb13.4b1138","type":"function","z":"efbc7696.354458","name":"hist5","func":"\nmsg.topic = \"hist5\";\nmsg.payload = Number((msg.payload.hs5 - msg.payload.hs0).toFixed(4)); \nreturn msg;","outputs":1,"noerr":0,"x":530,"y":3540,"wires":[["b4c60510.82e9d8","d07aaecc.9a2dd"]]},{"id":"fcd7bf53.daedb","type":"function","z":"efbc7696.354458","name":"hist10","func":"\nmsg.topic = \"hist10\";\nmsg.payload = Number((msg.payload.hs10 - msg.payload.hs0).toFixed(4)); \nreturn msg;","outputs":1,"noerr":0,"x":530,"y":3580,"wires":[["b4c60510.82e9d8","d07aaecc.9a2dd","ec9fdd31.9e2be"]]},{"id":"3967db8f.3d22c4","type":"ui_gauge","z":"efbc7696.354458","name":"H_Hist1","group":"bffb08b3.1b1fa8","order":12,"width":"3","height":"3","gtype":"gage","title":"Hist 1","label":"°C","format":"{{value | number:2}}","min":"-1","max":"1","colors":["#00b500","#e6e600","#ca3838"],"seg1":"20","seg2":"25","x":860,"y":3540,"wires":[]},{"id":"ec9fdd31.9e2be","type":"ui_gauge","z":"efbc7696.354458","name":"H_Hist10","group":"bffb08b3.1b1fa8","order":13,"width":"3","height":"3","gtype":"gage","title":"Hist 10","label":"°C","format":"{{value | number:2}}","min":"-1","max":"1","colors":["#00b500","#e6e600","#ca3838"],"seg1":"20","seg2":"25","x":860,"y":3580,"wires":[]},{"id":"cbe3b4d.2b2e148","type":"ui_colour_picker","z":"efbc7696.354458","name":"","label":"LED Farbe","group":"a7c01b2c.6f7df8","format":"rgb","outformat":"string","showSwatch":true,"showPicker":false,"showValue":true,"showHue":true,"showAlpha":false,"showLightness":true,"dynOutput":"false","order":2,"width":0,"height":0,"passthru":false,"topic":"openAger/fridge1/set/ledrgb","x":1270,"y":300,"wires":[["cc4f87dc.b00118"]]},{"id":"b7c317a8.9fd4f8","type":"ui_dropdown","z":"efbc7696.354458","name":"LedPattern","label":"Led Patterm","tooltip":"","place":"","group":"a7c01b2c.6f7df8","order":1,"width":0,"height":0,"passthru":false,"options":[{"label":"off","value":"0","type":"str"},{"label":"White","value":"7","type":"str"},{"label":"static red","value":"1","type":"str"},{"label":"static blue","value":"2","type":"str"},{"label":"static green","value":"3","type":"str"},{"label":"static RGB","value":"4","type":"str"},{"label":"RGB Breathing","value":"5","type":"str"},{"label":"Meat Spotlight","value":"6","type":"str"}],"payload":"","topic":"openAger/fridge1/set/ledpattern","x":1270,"y":260,"wires":[["cc4f87dc.b00118"]]},{"id":"d704ea72.4cc0d8","type":"mqtt in","z":"efbc7696.354458","name":"MQTT Pressure","topic":"openAger/fridge1/sensors/pressure","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":100,"y":3740,"wires":[["b2cba5c4.d93148"]]},{"id":"b2cba5c4.d93148","type":"json","z":"efbc7696.354458","name":"Json","property":"payload","action":"","pretty":false,"x":330,"y":3740,"wires":[["7d6c8a31.ca8204","bbc0e244.a373f","97538940.c3c8f8","96a6e171.ad53b","282517b0.8b78c8","6dff3d28.cb95c4","e4cee3ef.333a6","41757724.dd4ba8"]]},{"id":"7d6c8a31.ca8204","type":"change","z":"efbc7696.354458","name":"pressure1","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.p1","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"pressure1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":3740,"wires":[["e5aec797.954648","507b217c.d7281"]]},{"id":"bbc0e244.a373f","type":"change","z":"efbc7696.354458","name":"pressure2","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.p2","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"pressure2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":3780,"wires":[["507b217c.d7281"]]},{"id":"e5aec797.954648","type":"ui_chart","z":"efbc7696.354458","name":"C_Pressure","group":"2d255ce.e9e82a4","order":2,"width":0,"height":0,"label":"Pressure","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"930","ymax":"950","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":790,"y":3740,"wires":[[],[]]},{"id":"96a6e171.ad53b","type":"change","z":"efbc7696.354458","name":"co2","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.co2","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"co2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":570,"y":3860,"wires":[["4e78f751.a94f28","77d0586a.5d5fe8","507b217c.d7281"]]},{"id":"4e78f751.a94f28","type":"ui_gauge","z":"efbc7696.354458","name":"G_co2","group":"43f2495e.96eb28","order":3,"width":0,"height":0,"gtype":"gage","title":"CO2","label":"ppm","format":"{{value | number:0}}","min":"400","max":"8192","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1050,"y":3860,"wires":[]},{"id":"77d0586a.5d5fe8","type":"ui_chart","z":"efbc7696.354458","name":"C_CO2","group":"37137413.a3425c","order":3,"width":0,"height":0,"label":"CO2","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":1500,"y":3860,"wires":[[],[]]},{"id":"ccca855e.acde78","type":"ui_switch","z":"efbc7696.354458","name":"Lock","label":"Lock GUI","tooltip":"","group":"bffb08b3.1b1fa8","order":10,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"openAger/fridge1/actuators/lock","style":"","onvalue":"1","onvalueType":"str","onicon":"fa-lock","oncolor":"red","offvalue":"0","offvalueType":"str","officon":"fa-unlock","offcolor":"green","x":290,"y":400,"wires":[["cc4f87dc.b00118","fe648e07.fa6ee"]]},{"id":"fe648e07.fa6ee","type":"function","z":"efbc7696.354458","name":"disable/enable","func":"//context.global.mode = msg.payload;\nglobal.set(\"lock\",msg.payload);\nif (msg.payload == \"0\") {\n msg.enabled = true;\n} else {\n msg.enabled = false;\n}\ndelete msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":560,"y":400,"wires":[["4c14ee01.fc641","44ff4d33.5a1554","38bab156.ad305e","230fafe8.b6f3a","c7f7b411.d8af98","25d7eee4.ffda22","d6eab50f.39ab68","9f8ef02.e1ba51","3b69da02.2a8c56","9f09a0d0.110b4","ed29ff62.3ba3f","41d2d4c5.91712c","9a56849b.6b7838","c3cb49b0.bb7bf8","183b8d0d.3a29e3","f51d8baf.ece8b8"]]},{"id":"c8ea63dc.bc596","type":"ui_text_input","z":"efbc7696.354458","name":"S_Set Temp","label":"Set Temp","tooltip":"","group":"418bab59.fac9d4","order":0,"width":0,"height":0,"passthru":false,"mode":"text","delay":300,"topic":"openAger/fridge1/set/temp","x":1050,"y":480,"wires":[["cc4f87dc.b00118"]]},{"id":"249a3f19.efaa","type":"ui_text_input","z":"efbc7696.354458","name":"S_Set Hum","label":"Set Hum","tooltip":"","group":"418bab59.fac9d4","order":0,"width":0,"height":0,"passthru":false,"mode":"text","delay":300,"topic":"openAger/fridge1/set/hum","x":1050,"y":520,"wires":[["cc4f87dc.b00118"]]},{"id":"dc895bc9.fdbfa8","type":"ui_text_input","z":"efbc7696.354458","name":"S_Set Hysterese","label":"Set Hysterese","tooltip":"","group":"418bab59.fac9d4","order":0,"width":0,"height":0,"passthru":false,"mode":"text","delay":300,"topic":"openAger/fridge1/set/hyst","x":1070,"y":560,"wires":[["cc4f87dc.b00118"]]},{"id":"acc94eaa.07e33","type":"ui_text_input","z":"efbc7696.354458","name":"S_Set Hum Hysterese","label":"Set Hum Hysterese","tooltip":"","group":"418bab59.fac9d4","order":0,"width":0,"height":0,"passthru":false,"mode":"text","delay":300,"topic":"openAger/fridge1/set/humhyst","x":1080,"y":600,"wires":[["cc4f87dc.b00118"]]},{"id":"832a213e.13ba2","type":"ui_slider","z":"efbc7696.354458","name":"Brightness","label":"Brightness","tooltip":"","group":"a7c01b2c.6f7df8","order":3,"width":0,"height":0,"passthru":false,"outs":"all","topic":"openAger/fridge1/set/ledbrightness","min":0,"max":"255","step":1,"x":1270,"y":340,"wires":[["cc4f87dc.b00118"]]},{"id":"e8076511.50c1d8","type":"ui_button","z":"efbc7696.354458","name":"Logreset","group":"ca61f135.42042","order":10,"width":0,"height":0,"passthru":false,"label":"reset log","tooltip":"empty log","color":"","bgcolor":"","icon":"fa-trash","payload":"cleared","payloadType":"str","topic":"","x":1060,"y":1720,"wires":[["5f1a3c83.0d9654"]]},{"id":"93272af7.19db38","type":"change","z":"efbc7696.354458","name":"avg hum int","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.avi","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"average humidity int","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":3620,"wires":[["a6478797.b15828","b18c1df6.cdfb8","b4c60510.82e9d8"]]},{"id":"a6478797.b15828","type":"ui_gauge","z":"efbc7696.354458","name":"G_avg_Hum_int","group":"77fea715.4f11c8","order":6,"width":0,"height":0,"gtype":"gage","title":"Avg. Humidity int.","label":"%","format":"{{value | number:2}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1080,"y":3620,"wires":[]},{"id":"f6b224e.6dfd5d8","type":"ui_switch","z":"efbc7696.354458","name":"","label":"Status LED","tooltip":"","group":"a7c01b2c.6f7df8","order":4,"width":0,"height":0,"passthru":false,"decouple":"false","topic":"openAger/fridge1/set/statusled","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":1270,"y":380,"wires":[["cc4f87dc.b00118"]]},{"id":"282517b0.8b78c8","type":"change","z":"efbc7696.354458","name":"avg_coolingtime","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.act","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"avg_coolingtime","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":3900,"wires":[["d6bcf02d.8d9fe","507b217c.d7281"]]},{"id":"6dff3d28.cb95c4","type":"change","z":"efbc7696.354458","name":"avg_hysttime","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.aht","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"avg_hysttime","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":3940,"wires":[["547c061c.a83af8","507b217c.d7281"]]},{"id":"d6bcf02d.8d9fe","type":"ui_gauge","z":"efbc7696.354458","name":"G_coolingtime","group":"d54ee9a0.347778","order":1,"width":0,"height":0,"gtype":"gage","title":"Avg. Cooling Time","label":"min","format":"{{value | number:0}}","min":"0","max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1080,"y":3900,"wires":[]},{"id":"547c061c.a83af8","type":"ui_gauge","z":"efbc7696.354458","name":"G_avg_hysttime","group":"d54ee9a0.347778","order":2,"width":0,"height":0,"gtype":"gage","title":"Avg. Hysttime","label":"min","format":"{{value | number:0}}","min":"0","max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1080,"y":3940,"wires":[]},{"id":"23f48f74.d70a5","type":"ui_gauge","z":"efbc7696.354458","name":"G_Rythmtime","group":"d54ee9a0.347778","order":3,"width":0,"height":0,"gtype":"gage","title":"Rythmtime","label":"min","format":"{{value | number:0}}","min":"0","max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1080,"y":3980,"wires":[]},{"id":"e4cee3ef.333a6","type":"function","z":"efbc7696.354458","name":"calc rythm","func":"\nmsg.topic = \"avg_rythmtime\";\nmsg.payload = Number((msg.payload.act + msg.payload.aht).toFixed(4)); \nreturn msg;\n\n","outputs":1,"noerr":0,"x":590,"y":3980,"wires":[["23f48f74.d70a5"]]},{"id":"507b217c.d7281","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":910,"y":3700,"wires":[]},{"id":"53772786.6328a8","type":"ui_dropdown","z":"efbc7696.354458","name":"Type Sensor S","label":"Type Sensor Special","tooltip":"","place":"","group":"d02bb676.9c8768","order":3,"width":0,"height":0,"passthru":false,"options":[{"label":"none","value":"0","type":"str"},{"label":"Bus 1: BME280","value":"10","type":"str"},{"label":"Bus 1: BME280 #2","value":"11","type":"str"},{"label":"Bus 1: SHT31","value":"12","type":"str"},{"label":"Bus 1: SHT31 #2","value":"13","type":"str"},{"label":"Bus 2: BME280","value":"20","type":"str"},{"label":"Bus 2: BME280 #2","value":"21","type":"str"},{"label":"Bus 2: SHT31","value":"22","type":"str"},{"label":"Bus 2: SHT31 #2","value":"23","type":"str"},{"label":"Bus 3: BME280","value":"30","type":"str"},{"label":"Bus 3: BME280 #2","value":"31","type":"str"},{"label":"Bus 3: SHT31","value":"32","type":"str"},{"label":"Bus 3: SHT31 #2","value":"33","type":"str"}],"payload":"","topic":"openAger/fridge1/set/sensors","x":820,"y":1660,"wires":[["cc4f87dc.b00118"]]},{"id":"7a7d4275.ee64bc","type":"mqtt in","z":"efbc7696.354458","name":"MQTT Additional","topic":"openAger/fridge1/sensors/additional","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":100,"y":4100,"wires":[["5ecc3b57.879294"]]},{"id":"5ecc3b57.879294","type":"json","z":"efbc7696.354458","name":"Json","property":"payload","action":"","pretty":false,"x":330,"y":4100,"wires":[["82f6e94d.0c0d58","d2545a3.32cdba8","82ef01c7.24802"]]},{"id":"82f6e94d.0c0d58","type":"change","z":"efbc7696.354458","name":"TempSpecial","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.ts","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"TempCoolingPlate","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":4100,"wires":[["3939f862.34c628","bc7f0da0.3d71c"]]},{"id":"d2545a3.32cdba8","type":"change","z":"efbc7696.354458","name":"HumSpecial","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.hs","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"HumCoolingPlate","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":4140,"wires":[["3939f862.34c628","b5ad99f9.d72ad8"]]},{"id":"3939f862.34c628","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":910,"y":4060,"wires":[]},{"id":"b5ad99f9.d72ad8","type":"ui_gauge","z":"efbc7696.354458","name":"G_HumSpecial","group":"77fea715.4f11c8","order":5,"width":0,"height":0,"gtype":"gage","title":"Cooling Plate","label":"%","format":"{{value | number:2}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":920,"y":4140,"wires":[]},{"id":"bc7f0da0.3d71c","type":"ui_gauge","z":"efbc7696.354458","name":"G_TempSpecial","group":"b7af05c9.acc5c8","order":5,"width":0,"height":0,"gtype":"gage","title":"Cooling Plate","label":"°C","format":"{{value | number:2}}","min":"-5","max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":920,"y":4100,"wires":[],"inputLabels":["msg.t1"]},{"id":"1e7aecef.a74093","type":"mqtt in","z":"efbc7696.354458","name":"MQTT States","topic":"openAger/fridge1/sensors/state","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":90,"y":4480,"wires":[["582f7fb5.04a88"]]},{"id":"582f7fb5.04a88","type":"json","z":"efbc7696.354458","name":"Json","property":"payload","action":"","pretty":false,"x":330,"y":4480,"wires":[["a50ff7c7.0f7f48","4e305166.d31f","82dcd899.800198","f65ad2e4.1a22e","ea4d4294.a788b","f7fa8f7b.fcb43","aff6320a.0a51","2f89c43a.6e3b3c","c1a13cb0.b0a21"]]},{"id":"a50ff7c7.0f7f48","type":"change","z":"efbc7696.354458","name":"Cooling_on","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.r1","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Cooling_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":4480,"wires":[["eda72976.1bbe88"]]},{"id":"4e305166.d31f","type":"change","z":"efbc7696.354458","name":"Heating_on","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.r2","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Heating_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":4520,"wires":[["f3aa7231.3797c"]]},{"id":"f3aa7231.3797c","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":1070,"y":4580,"wires":[]},{"id":"d508aa70.6653b8","type":"mqtt in","z":"efbc7696.354458","name":"MQTT Set","topic":"openAger/fridge1/sensors/set","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":80,"y":4260,"wires":[["72fc8333.31ba2c"]]},{"id":"72fc8333.31ba2c","type":"json","z":"efbc7696.354458","name":"Json","property":"payload","action":"","pretty":false,"x":330,"y":4260,"wires":[["f37bb6a9.2c1c58","69c6cdd1.19aa94","f4eb4fda.59f17","ce096e14.16cef","fae4c0d0.009b7","ce844940.602108"]]},{"id":"f37bb6a9.2c1c58","type":"change","z":"efbc7696.354458","name":"SetTemp","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.st","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"openAger/fridge1/set/temp","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":4260,"wires":[["ab699463.fddb18"]]},{"id":"69c6cdd1.19aa94","type":"change","z":"efbc7696.354458","name":"SetHum","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.sh","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"openAger/fridge1/set/hum","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":4300,"wires":[["ab699463.fddb18"]]},{"id":"ab699463.fddb18","type":"subflow:4d0dc15f.1a937","z":"efbc7696.354458","x":910,"y":4220,"wires":[]},{"id":"f4eb4fda.59f17","type":"change","z":"efbc7696.354458","name":"SetHysterese","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.sth","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"openAger/fridge1/sensors/hysterese","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":4340,"wires":[["ab699463.fddb18"]]},{"id":"ce096e14.16cef","type":"change","z":"efbc7696.354458","name":"SetHumHysterese","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.shh","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"openAger/fridge1/sensors/humhysterese","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":4380,"wires":[["ab699463.fddb18"]]},{"id":"82dcd899.800198","type":"change","z":"efbc7696.354458","name":"Booster_on","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.r3","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Booster_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":4560,"wires":[["f3aa7231.3797c"]]},{"id":"f65ad2e4.1a22e","type":"change","z":"efbc7696.354458","name":"Circulation_on","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.r4","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Circulation_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":4600,"wires":[["f3aa7231.3797c"]]},{"id":"ea4d4294.a788b","type":"change","z":"efbc7696.354458","name":"Moistening_on","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.r5","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Moistening_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":4640,"wires":[["f3aa7231.3797c"]]},{"id":"f7fa8f7b.fcb43","type":"change","z":"efbc7696.354458","name":"Drying_on","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.r6","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Drying_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":4680,"wires":[["f3aa7231.3797c"]]},{"id":"aff6320a.0a51","type":"change","z":"efbc7696.354458","name":"UVC_on","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.r7","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"UVC_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":4720,"wires":[["f3aa7231.3797c"]]},{"id":"2f89c43a.6e3b3c","type":"change","z":"efbc7696.354458","name":"Light_on","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.r8","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Light_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":4760,"wires":[["f3aa7231.3797c"]]},{"id":"4d3a77c3.8834f8","type":"ui_button","z":"efbc7696.354458","name":"configpush","group":"4b96690f.894e08","order":7,"width":0,"height":0,"passthru":false,"label":"Read Config from chip","tooltip":"","color":"","bgcolor":"red","icon":"sync","payload":"1","payloadType":"str","topic":"openAger/fridge1/set/configpush","x":1090,"y":1120,"wires":[["9c8d165.2f9aae8"]]},{"id":"fae4c0d0.009b7","type":"change","z":"efbc7696.354458","name":"avg_heatingtime","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.aht","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"avg_heatingtime","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":4420,"wires":[["d0a845c6.a7fe08"]]},{"id":"d0a845c6.a7fe08","type":"ui_gauge","z":"efbc7696.354458","name":"G_heatingtime","group":"d54ee9a0.347778","order":1,"width":0,"height":0,"gtype":"gage","title":"Avg. Heating Time","label":"min","format":"{{value | number:0}}","min":"0","max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":920,"y":4420,"wires":[]},{"id":"c3cb49b0.bb7bf8","type":"ui_dropdown","z":"efbc7696.354458","name":"tempmode","label":"TempMode","tooltip":"","place":"","group":"ca61f135.42042","order":2,"width":0,"height":0,"passthru":false,"options":[{"label":"Heating","value":"0","type":"str"},{"label":"Cooling","value":"1","type":"str"},{"label":"Auto","value":"99","type":"str"}],"payload":"","topic":"openAger/fridge1/set/tempmode","x":810,"y":1000,"wires":[["cc4f87dc.b00118"]]},{"id":"183b8d0d.3a29e3","type":"ui_slider","z":"efbc7696.354458","name":"Fan Speed","label":"Fan Speed","tooltip":"","group":"801bafd8.09a2","order":10,"width":0,"height":0,"passthru":false,"outs":"all","topic":"openAger/fridge1/set/pwm","min":0,"max":"100","step":1,"x":1050,"y":800,"wires":[["cc4f87dc.b00118"]]},{"id":"23ba67be.a5d9d8","type":"ui_gauge","z":"efbc7696.354458","name":"PWM duty %","group":"801bafd8.09a2","order":9,"width":"3","height":"3","gtype":"gage","title":"PWM duty %","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1450,"y":1060,"wires":[]},{"id":"a8986b64.00cb38","type":"ui_gauge","z":"efbc7696.354458","name":"","group":"801bafd8.09a2","order":9,"width":"3","height":"3","gtype":"gage","title":"Fan RPM","label":"%","format":"{{value}}","min":"1500","max":"3500","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1440,"y":1100,"wires":[]},{"id":"27de2d0a.1b0592","type":"range","z":"efbc7696.354458","minin":"0","maxin":"100","minout":"1500","maxout":"3500","action":"scale","round":false,"property":"payload","name":"Fan duty -> rpm","x":1260,"y":1080,"wires":[["a8986b64.00cb38"]]},{"id":"828e3bd3.a6a5a8","type":"function","z":"bfb0b9c4.4e1408","name":"Check lock state","func":"msg.payload = global.get(\"lock\");\nif (msg.payload == \"0\") {\n msg.enabled = true;\n} else {\n msg.enabled = false;\n}\ndelete msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":380,"y":640,"wires":[["7e43bddd.269404","52fea353.d681dc"]]},{"id":"b876a377.73a2a","type":"function","z":"efbc7696.354458","name":"get global lock status","func":"msg.payload = global.get(\"lock\");\nreturn msg;","outputs":1,"noerr":0,"x":320,"y":500,"wires":[["fe648e07.fa6ee"]]},{"id":"c19ead31.0a7da","type":"inject","z":"efbc7696.354458","name":"10 sek","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":500,"wires":[["b876a377.73a2a"]]},{"id":"635e9835.fd2ab8","type":"mqtt out","z":"efbc7696.354458","name":"fridge1 no retain","topic":"","qos":"","retain":"false","broker":"4841307a.c2f52","x":1280,"y":160,"wires":[]},{"id":"660a147a.e25c9c","type":"comment","z":"bfb0b9c4.4e1408","name":"Serverside Checks - Telegram instead Emails","info":"","x":230,"y":2020,"wires":[]},{"id":"604787a9.79f768","type":"function","z":"efbc7696.354458","name":"set global ","func":"//context.global.mode = msg.payload;\nglobal.set(\"ti\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":2380,"wires":[["9336f32b.75a08"]]},{"id":"aa9258ff.d2a7c8","type":"function","z":"efbc7696.354458","name":"set global ","func":"//context.global.mode = msg.payload;\nglobal.set(\"hi\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":860,"y":2680,"wires":[["511b0d14.dfe9f4"]]},{"id":"c46444ef.243438","type":"function","z":"efbc7696.354458","name":"set global ","func":"var zeitpunkt = [];\nvar now = new Date();\nvar month = now.getMonth()+1;\nvar day = now.getDate();\nvar year = now.getFullYear();\nvar hour = now.getHours();\nvar min = now.getMinutes();\nvar sek = now.getSeconds();\nvar mil = now.getMilliseconds();\n\nmonth = (\"0\" + month).slice(-2);\nday = (\"0\" + day).slice(-2);\n\nhour = (\"0\" + hour).slice(-2);\nmin = (\"0\" + min).slice(-2);\nsek = (\"0\" + sek).slice(-2);\n//mil = (\"000\" + sek).slice(-3);\n\n\nzeitpunkt = day + \".\" + month + \".\" + year + \" \" + hour + \":\" + min + \":\" + sek;\n\nglobal.set(\"pw\",msg.payload);\nglobal.set(\"up\",zeitpunkt);\nreturn msg;","outputs":1,"noerr":0,"x":900,"y":2940,"wires":[["a15a8a1f.5ab588"]]},{"id":"eda72976.1bbe88","type":"function","z":"efbc7696.354458","name":"set global ","func":"//context.global.mode = msg.payload;\nglobal.set(\"co\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":760,"y":4480,"wires":[["f3aa7231.3797c"]]},{"id":"e3f2c1b.865b74","type":"function","z":"bfb0b9c4.4e1408","name":"Configpush","func":"msg.topic = \"openAger/fridge1/set/configpush\";\nmsg.payload = 1;\nreturn msg;","outputs":1,"noerr":0,"x":870,"y":240,"wires":[["2a3dc08a.52357"]]},{"id":"15d0bfc6.050ce","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\nglobal.set(\"daycount1\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":750,"y":1200,"wires":[["d2ade354.bf3d4"]]},{"id":"3d0e353b.9f971a","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\nglobal.set(\"daycount2\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":750,"y":1240,"wires":[["c711091f.79f058"]]},{"id":"a7a72049.53d9c","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\nglobal.set(\"daycount3\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":750,"y":1280,"wires":[["10eee08c.325e2f"]]},{"id":"18196d06.4850a3","type":"function","z":"abcf932e.43e39","name":"Set Global","func":"\nglobal.set(\"daycount4\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":750,"y":1320,"wires":[["aefa116f.0ec9"]]},{"id":"721bb493.fa3d4c","type":"mqtt in","z":"bfb0b9c4.4e1408","name":"MQTT temperatures","topic":"openAger/fridge1/sensors/temperature","qos":"0","broker":"4841307a.c2f52","x":170,"y":2180,"wires":[["d36c9cd7.5ddc7","4e455108.8a6d3"]]},{"id":"d36c9cd7.5ddc7","type":"json","z":"bfb0b9c4.4e1408","name":"Json","property":"payload","action":"","pretty":false,"x":350,"y":2180,"wires":[["6852d192.e2ffe"]]},{"id":"6852d192.e2ffe","type":"function","z":"bfb0b9c4.4e1408","name":"Abweichung prüfen","func":"temp_int = parseFloat(msg.payload.ti);\nset_hyst = parseFloat(global.get(\"set_hyst\"));\nset_temp = parseFloat(global.get(\"set_temp\"));\ndev = 0;\nmsg.topic = \"Message von OpenAger\";\nvar zeitpunkt = [];\nvar now = new Date();\nvar month = now.getMonth()+1;\nvar day = now.getDate();\nvar year = now.getFullYear();\nvar hour = now.getHours();\nvar min = now.getMinutes();\nvar sek = now.getSeconds();\nvar mil = now.getMilliseconds();\n\nmonth = (\"0\" + month).slice(-2);\nday = (\"0\" + day).slice(-2);\nhour = (\"0\" + hour).slice(-2);\nmin = (\"0\" + min).slice(-2);\nsek = (\"0\" + sek).slice(-2);\n//mil = (\"000\" + sek).slice(-3);\n\nzeitpunkt = \" (\" + day + \".\" + month + \".\" + year + \" \" + hour + \":\" + min + \":\" + sek + \") \";\nif (temp_int > ( set_temp + ( set_hyst / 2 ) + 0.5)) {\n//if (temp_int > (set_temp + ( set_hyst / 2 ))) { \n dev = temp_int - set_temp - ( set_hyst / 2 );\n msg.payload = \"Achtung - Temperatur ist \" + dev.toFixed(2) + \" Grad über der Hysteresezone!\" + zeitpunkt;\n return msg;\n//} else if (temp_int < (set_temp - ( set_hyst / 2 ))) {\n} else if (temp_int < ( set_temp - ( set_hyst / 2 ) - 0.5)) {\n dev = set_temp - temp_int - ( set_hyst / 2 );\n msg.payload = \"Achtung - Temperatur ist \" + dev.toFixed(2) + \" Grad unter der Hysteresezone!\" + zeitpunkt;\n return msg;\n} else {\n // within hysterese!\n // msg.payload = \"Alles ok\"+zeitpunkt;\n msg.payload = \"alles ok\";\n\n}\n","outputs":1,"noerr":0,"x":530,"y":2180,"wires":[["27a1373a.16aeb8"]]},{"id":"27a1373a.16aeb8","type":"throttle","z":"bfb0b9c4.4e1408","name":"Nachrichten limitieren / 15min","throttleType":"time","timeLimit":"15","timeLimitType":"minutes","countLimit":0,"blockSize":0,"locked":false,"x":830,"y":2180,"wires":[["a671297c.8393e8"]]},{"id":"ae75bfc3.5e877","type":"telegrambot-command","z":"bfb0b9c4.4e1408","name":"status bitte","bot":"ec3e3b54.4a8598","command":"status bitte","commandType":"str","commandCase":false,"x":160,"y":2360,"wires":[["a1ac2c51.5014a"]]},{"id":"a1ac2c51.5014a","type":"function","z":"bfb0b9c4.4e1408","name":"Payload schreiben","func":"\n\n// neue msg objekte basteln, telegram zweige aufbauen für die chat id!\nmsg2 = {};\nmsg2.telegram = {};\nmsg2.telegram.chat = {};\n\nmsg3 = {};\nmsg3.telegram = {};\nmsg3.telegram.chat = {};\n\nti = parseFloat(global.get(\"ti\"));\nhi = parseFloat(global.get(\"hi\"));\npw = parseFloat(global.get(\"pw\"));\nco = parseFloat(global.get(\"co\"));\nup = global.get(\"up\");\nweight1 = parseFloat(global.get(\"weight1\"));\nweight2 = parseFloat(global.get(\"weight2\"));\nweight3 = parseFloat(global.get(\"weight3\"));\nweight4 = parseFloat(global.get(\"weight4\"));\nwater1 = parseFloat(global.get(\"water1\")).toFixed(1);\nwater2 = parseFloat(global.get(\"water2\")).toFixed(1);\nwater3 = parseFloat(global.get(\"water3\")).toFixed(1);\nwater4 = parseFloat(global.get(\"water4\")).toFixed(1);\n\ndaycount1 = parseFloat(global.get(\"daycount1\")).toFixed(1);\ndaycount2 = parseFloat(global.get(\"daycount2\")).toFixed(1);\ndaycount3 = parseFloat(global.get(\"daycount3\")).toFixed(1);\ndaycount4 = parseFloat(global.get(\"daycount4\")).toFixed(1);\n\ncntscale = 0;\nkuehlung = \"unbekannt\";\ngewichtstring = \"\"\n\nif (co == 1) {\n kuehlung = \"an\";\n}\n\nif (co === 0) {\n kuehlung = \"aus\";\n}\n\nif (water1 > 0) {\n gewichtstring = gewichtstring+ \"Waage 1 läuft seit \" + daycount1 + \" Tagen und hat ein Gewicht von \" + weight1 + \"kg bei einem Wasserverlust von \" + water1 + \" %. \";\n cntscale++;\n}\nif (water2 > 0) {\n gewichtstring = gewichtstring + \"Waage 2 läuft seit \" + daycount2 + \" Tagen und hat ein Gewicht von \" + weight2 + \"kg bei einem Wasserverlust von \" + water2 + \" %. \";\n cntscale++;\n}\nif (water3 > 0) {\n gewichtstring = gewichtstring + \"Waage 3 läuft seit \" + daycount3 + \" Tagen und hat ein Gewicht von \" + weight3 + \"kg bei einem Wasserverlust von \" + water3 + \" %. \";\n cntscale++;\n}\nif (water4 > 0) {\n gewichtstring = gewichtstring + \"Waage 4 läuft seit \" + daycount4 + \" Tagen und hat ein Gewicht von \" + weight4 + \"kg bei einem Wasserverlust von \" + water4 + \" %. \";\n cntscale++;\n}\n\n//node.warn(msg.telegram.chat.id);\nmsg.payload = \"Die Innen - Temperatur beträgt \"+ ti + \"°C bei einer Luftfeuchte von \";\nmsg.payload = msg.payload + hi + \"%. Der Stromverbrauch liegt bei \" + pw ;\nmsg.payload = msg.payload + \" Watt und die Kühlung ist gerade \" + kuehlung + \".\";\n\nmsg3.payload = \" Das letzte Lebenszeichen war um \" + up + \"...\";\nmsg3.telegram.chat.id = msg.telegram.chat.id;\nmsg2.payload = \"Es sind gerade \" + cntscale + \" Waagen aktiv. \" + gewichtstring;\nmsg2.telegram.chat.id = msg.telegram.chat.id;\n\nreturn [ msg, msg2, msg3 ];\n\n\n\n","outputs":3,"noerr":0,"x":370,"y":2360,"wires":[["610e7168.9a4ee"],["610e7168.9a4ee"],["610e7168.9a4ee"]]},{"id":"735f9af9.98bdb4","type":"telegrambot-command","z":"bfb0b9c4.4e1408","name":"status","bot":"ec3e3b54.4a8598","command":"status","commandType":"str","commandCase":false,"x":150,"y":2300,"wires":[["990aa717.1d80c8"]]},{"id":"610e7168.9a4ee","type":"telegrambot-notify","z":"bfb0b9c4.4e1408","name":"Sende Botantwort","bot":"ec3e3b54.4a8598","chatId":"","message":"","parseMode":"","x":1130,"y":2360,"wires":[]},{"id":"990aa717.1d80c8","type":"function","z":"bfb0b9c4.4e1408","name":"Payload schreiben","func":"\n\nmsg.payload = \"Ohne 'bitte' gibts nix...\";\nreturn msg;\n\n\n\n","outputs":1,"noerr":0,"x":370,"y":2300,"wires":[["610e7168.9a4ee"]]},{"id":"816e80f3.52e6c","type":"function","z":"bfb0b9c4.4e1408","name":"Payload schreiben","func":"\n\nmsg.payload = \"Witzig ha?\";\nreturn msg;\n\n\n\n","outputs":1,"noerr":0,"x":370,"y":2260,"wires":[["610e7168.9a4ee"]]},{"id":"a671297c.8393e8","type":"telegrambot-notify","z":"bfb0b9c4.4e1408","name":"Sende Abweichung Hysterese","bot":"ec3e3b54.4a8598","chatId":"542125703","message":"","parseMode":"","x":1170,"y":2180,"wires":[]},{"id":"a5a73d05.cb671","type":"msg-speed","z":"bfb0b9c4.4e1408","name":"Actuator Speed/min","frequency":"min","estimation":false,"ignore":true,"x":470,"y":2460,"wires":[["bafa5972.9d9f38","2d34a7e5.30db38"],[]]},{"id":"bafa5972.9d9f38","type":"ui_chart","z":"bfb0b9c4.4e1408","name":"C_Actuator_Speed","group":"c1fcc324.6a01","order":1,"width":0,"height":0,"label":"Actuator Speed","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"loading","dot":false,"ymin":"","ymax":"30","removeOlder":"10","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":true,"outputs":2,"x":730,"y":2420,"wires":[[],[]]},{"id":"65e196f6.141868","type":"mqtt in","z":"bfb0b9c4.4e1408","name":"MQTT fridge1 actuators","topic":"openAger/fridge1/actuators/#","qos":"0","datatype":"auto","broker":"4841307a.c2f52","x":180,"y":2460,"wires":[["a5a73d05.cb671"]]},{"id":"2d34a7e5.30db38","type":"switch","z":"bfb0b9c4.4e1408","name":"> 50","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"50","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":670,"y":2500,"wires":[["45775f01.8e82c"]]},{"id":"e82a6742.16b9f8","type":"telegrambot-notify","z":"bfb0b9c4.4e1408","name":"Sende Warnung \"Flattern\"","bot":"ec3e3b54.4a8598","chatId":"542125703","message":"Mehr als 50 Acutator Messages pro Minute!","parseMode":"","x":1170,"y":2500,"wires":[]},{"id":"45775f01.8e82c","type":"throttle","z":"bfb0b9c4.4e1408","name":"Nachrichten limitieren / 15min","throttleType":"time","timeLimit":"15","timeLimitType":"minutes","countLimit":0,"blockSize":0,"locked":false,"x":890,"y":2500,"wires":[["e82a6742.16b9f8"]]},{"id":"6a5e758e.9bd86c","type":"inject","z":"bfb0b9c4.4e1408","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":2240,"wires":[["816e80f3.52e6c"]]},{"id":"4e455108.8a6d3","type":"msg-speed","z":"bfb0b9c4.4e1408","name":"SensorMessungen","frequency":"min","estimation":false,"ignore":false,"x":410,"y":2100,"wires":[["236f705d.bb68f"],[]]},{"id":"236f705d.bb68f","type":"switch","z":"bfb0b9c4.4e1408","name":"=0","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":610,"y":2080,"wires":[["464d30df.f142b"]]},{"id":"ab993a0.a16c9c8","type":"telegrambot-notify","z":"bfb0b9c4.4e1408","name":"Sende: Offline?","bot":"ec3e3b54.4a8598","chatId":"542125703","message":"Keine Sensormessung seit 1min! Node Neustart oder Offline?","parseMode":"","x":1120,"y":2100,"wires":[]},{"id":"464d30df.f142b","type":"throttle","z":"bfb0b9c4.4e1408","name":"Nachrichten limitieren / 15min","throttleType":"time","timeLimit":"15","timeLimitType":"minutes","countLimit":0,"blockSize":0,"locked":false,"x":870,"y":2100,"wires":[["ab993a0.a16c9c8"]]},{"id":"c338dee5.1db07","type":"e-mail","z":"bfb0b9c4.4e1408","server":"smtp.gmail.com","port":"465","secure":true,"name":"valki@valki.com","dname":"","x":1120,"y":2040,"wires":[]},{"id":"673224c0.08ebec","type":"debug","z":"bfb0b9c4.4e1408","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":840,"y":2020,"wires":[]},{"id":"b26ea238.5357f","type":"ui_text_input","z":"efbc7696.354458","name":"TicksMqtt","label":"TicksMqtt","tooltip":"","group":"4b96690f.894e08","order":1,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"openAger/fridge1/set/ticksmqtt","x":1080,"y":1660,"wires":[["cc4f87dc.b00118"]]},{"id":"9641241a.69bed8","type":"influxdb in","z":0,"influxdb":"eba91e98.1456e","name":"time query","query":"select * from test;","x":610,"y":280,"wires":[[]]},{"id":"96f59d1b.efbdd","type":"influxdb out","z":"efbc7696.354458","influxdb":"7ec0c1dc.cf4b3","name":"temperatures","measurement":"temperatures","precision":"","retentionPolicy":"","x":470,"y":2240,"wires":[]},{"id":"48279d70.8018d4","type":"influxdb out","z":"efbc7696.354458","influxdb":"7ec0c1dc.cf4b3","name":"humidity","measurement":"humidity","precision":"","retentionPolicy":"","x":420,"y":2540,"wires":[]},{"id":"bce52153.5caa1","type":"influxdb out","z":"efbc7696.354458","influxdb":"7ec0c1dc.cf4b3","name":"special","measurement":"special","precision":"","retentionPolicy":"","x":400,"y":2840,"wires":[]},{"id":"92895b56.58b6e8","type":"influxdb out","z":"efbc7696.354458","influxdb":"7ec0c1dc.cf4b3","name":"scales","measurement":"scales","precision":"","retentionPolicy":"","x":350,"y":3160,"wires":[]},{"id":"ae1a4f61.c8ff","type":"influxdb out","z":"efbc7696.354458","influxdb":"7ec0c1dc.cf4b3","name":"historic","measurement":"historic","precision":"","retentionPolicy":"","x":380,"y":3360,"wires":[]},{"id":"41757724.dd4ba8","type":"influxdb out","z":"efbc7696.354458","influxdb":"7ec0c1dc.cf4b3","name":"pressure","measurement":"pressure","precision":"","retentionPolicy":"","x":380,"y":3680,"wires":[]},{"id":"82ef01c7.24802","type":"influxdb out","z":"efbc7696.354458","influxdb":"7ec0c1dc.cf4b3","name":"additional","measurement":"additional","precision":"","retentionPolicy":"","x":380,"y":4040,"wires":[]},{"id":"ce844940.602108","type":"influxdb out","z":"efbc7696.354458","influxdb":"7ec0c1dc.cf4b3","name":"set","measurement":"set","precision":"","retentionPolicy":"","x":370,"y":4200,"wires":[]},{"id":"c1a13cb0.b0a21","type":"influxdb out","z":"efbc7696.354458","influxdb":"7ec0c1dc.cf4b3","name":"states","measurement":"states","precision":"","retentionPolicy":"","x":350,"y":4420,"wires":[]}] \ No newline at end of file diff --git a/nodered/rootfs/data/flows_cred.json b/nodered/rootfs/data/flows_cred.json new file mode 100644 index 0000000..5ad6b34 --- /dev/null +++ b/nodered/rootfs/data/flows_cred.json @@ -0,0 +1 @@ +{"$":"6b8144bb714d2abddb78dc7121c530f1632yZEmvh1wvEtcjFtQr6CCI+qy4z5VYW0/a9VLqbLIh+/za/aai8vo/w39OhPaCSHzSLFT0QIl/FV5leWyWOhZoo9yIzGEMsqN1w6WcXG4cVYrLm5PBMUUB52xcV9LhvmV38lZfkwg="} \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/electron b/nodered/rootfs/data/node_modules/.bin/electron new file mode 120000 index 0000000..946101e --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/electron @@ -0,0 +1 @@ +../electron/cli.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/electron-download b/nodered/rootfs/data/node_modules/.bin/electron-download new file mode 120000 index 0000000..67c2aa0 --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/electron-download @@ -0,0 +1 @@ +../electron-download/build/cli.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/extract-zip b/nodered/rootfs/data/node_modules/.bin/extract-zip new file mode 120000 index 0000000..af9b561 --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/extract-zip @@ -0,0 +1 @@ +../extract-zip/cli.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/he b/nodered/rootfs/data/node_modules/.bin/he new file mode 120000 index 0000000..2a8eb5e --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/he @@ -0,0 +1 @@ +../he/bin/he \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/html-to-text b/nodered/rootfs/data/node_modules/.bin/html-to-text new file mode 120000 index 0000000..1417957 --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/html-to-text @@ -0,0 +1 @@ +../html-to-text/bin/cli.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/mathjs b/nodered/rootfs/data/node_modules/.bin/mathjs new file mode 120000 index 0000000..d147838 --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/mathjs @@ -0,0 +1 @@ +../mathjs/bin/cli.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/mime b/nodered/rootfs/data/node_modules/.bin/mime new file mode 120000 index 0000000..fbb7ee0 --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/mime @@ -0,0 +1 @@ +../mime/cli.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/nugget b/nodered/rootfs/data/node_modules/.bin/nugget new file mode 120000 index 0000000..eccbe4c --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/nugget @@ -0,0 +1 @@ +../nugget/bin.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/pretty-bytes b/nodered/rootfs/data/node_modules/.bin/pretty-bytes new file mode 120000 index 0000000..d1d4ed6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/pretty-bytes @@ -0,0 +1 @@ +../pretty-bytes/cli.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/rc b/nodered/rootfs/data/node_modules/.bin/rc new file mode 120000 index 0000000..48b3cda --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/rc @@ -0,0 +1 @@ +../rc/cli.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/semver b/nodered/rootfs/data/node_modules/.bin/semver new file mode 120000 index 0000000..317eb29 --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/semver @@ -0,0 +1 @@ +../semver/bin/semver \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/sshpk-conv b/nodered/rootfs/data/node_modules/.bin/sshpk-conv new file mode 120000 index 0000000..a2a295c --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/sshpk-conv @@ -0,0 +1 @@ +../sshpk/bin/sshpk-conv \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/sshpk-sign b/nodered/rootfs/data/node_modules/.bin/sshpk-sign new file mode 120000 index 0000000..766b9b3 --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/sshpk-sign @@ -0,0 +1 @@ +../sshpk/bin/sshpk-sign \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/sshpk-verify b/nodered/rootfs/data/node_modules/.bin/sshpk-verify new file mode 120000 index 0000000..bfd7e3a --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/sshpk-verify @@ -0,0 +1 @@ +../sshpk/bin/sshpk-verify \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/strip-indent b/nodered/rootfs/data/node_modules/.bin/strip-indent new file mode 120000 index 0000000..dddee7e --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/strip-indent @@ -0,0 +1 @@ +../strip-indent/cli.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/tlds b/nodered/rootfs/data/node_modules/.bin/tlds new file mode 120000 index 0000000..482bddf --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/tlds @@ -0,0 +1 @@ +../tlds/bin.js \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/uuid b/nodered/rootfs/data/node_modules/.bin/uuid new file mode 120000 index 0000000..b3e45bc --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/uuid @@ -0,0 +1 @@ +../uuid/bin/uuid \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/.bin/which b/nodered/rootfs/data/node_modules/.bin/which new file mode 120000 index 0000000..f62471c --- /dev/null +++ b/nodered/rootfs/data/node_modules/.bin/which @@ -0,0 +1 @@ +../which/bin/which \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/accepts/HISTORY.md b/nodered/rootfs/data/node_modules/accepts/HISTORY.md new file mode 100644 index 0000000..0bf0417 --- /dev/null +++ b/nodered/rootfs/data/node_modules/accepts/HISTORY.md @@ -0,0 +1,236 @@ +1.3.7 / 2019-04-29 +================== + + * deps: negotiator@0.6.2 + - Fix sorting charset, encoding, and language with extra parameters + +1.3.6 / 2019-04-28 +================== + + * deps: mime-types@~2.1.24 + - deps: mime-db@~1.40.0 + +1.3.5 / 2018-02-28 +================== + + * deps: mime-types@~2.1.18 + - deps: mime-db@~1.33.0 + +1.3.4 / 2017-08-22 +================== + + * deps: mime-types@~2.1.16 + - deps: mime-db@~1.29.0 + +1.3.3 / 2016-05-02 +================== + + * deps: mime-types@~2.1.11 + - deps: mime-db@~1.23.0 + * deps: negotiator@0.6.1 + - perf: improve `Accept` parsing speed + - perf: improve `Accept-Charset` parsing speed + - perf: improve `Accept-Encoding` parsing speed + - perf: improve `Accept-Language` parsing speed + +1.3.2 / 2016-03-08 +================== + + * deps: mime-types@~2.1.10 + - Fix extension of `application/dash+xml` + - Update primary extension for `audio/mp4` + - deps: mime-db@~1.22.0 + +1.3.1 / 2016-01-19 +================== + + * deps: mime-types@~2.1.9 + - deps: mime-db@~1.21.0 + +1.3.0 / 2015-09-29 +================== + + * deps: mime-types@~2.1.7 + - deps: mime-db@~1.19.0 + * deps: negotiator@0.6.0 + - Fix including type extensions in parameters in `Accept` parsing + - Fix parsing `Accept` parameters with quoted equals + - Fix parsing `Accept` parameters with quoted semicolons + - Lazy-load modules from main entry point + - perf: delay type concatenation until needed + - perf: enable strict mode + - perf: hoist regular expressions + - perf: remove closures getting spec properties + - perf: remove a closure from media type parsing + - perf: remove property delete from media type parsing + +1.2.13 / 2015-09-06 +=================== + + * deps: mime-types@~2.1.6 + - deps: mime-db@~1.18.0 + +1.2.12 / 2015-07-30 +=================== + + * deps: mime-types@~2.1.4 + - deps: mime-db@~1.16.0 + +1.2.11 / 2015-07-16 +=================== + + * deps: mime-types@~2.1.3 + - deps: mime-db@~1.15.0 + +1.2.10 / 2015-07-01 +=================== + + * deps: mime-types@~2.1.2 + - deps: mime-db@~1.14.0 + +1.2.9 / 2015-06-08 +================== + + * deps: mime-types@~2.1.1 + - perf: fix deopt during mapping + +1.2.8 / 2015-06-07 +================== + + * deps: mime-types@~2.1.0 + - deps: mime-db@~1.13.0 + * perf: avoid argument reassignment & argument slice + * perf: avoid negotiator recursive construction + * perf: enable strict mode + * perf: remove unnecessary bitwise operator + +1.2.7 / 2015-05-10 +================== + + * deps: negotiator@0.5.3 + - Fix media type parameter matching to be case-insensitive + +1.2.6 / 2015-05-07 +================== + + * deps: mime-types@~2.0.11 + - deps: mime-db@~1.9.1 + * deps: negotiator@0.5.2 + - Fix comparing media types with quoted values + - Fix splitting media types with quoted commas + +1.2.5 / 2015-03-13 +================== + + * deps: mime-types@~2.0.10 + - deps: mime-db@~1.8.0 + +1.2.4 / 2015-02-14 +================== + + * Support Node.js 0.6 + * deps: mime-types@~2.0.9 + - deps: mime-db@~1.7.0 + * deps: negotiator@0.5.1 + - Fix preference sorting to be stable for long acceptable lists + +1.2.3 / 2015-01-31 +================== + + * deps: mime-types@~2.0.8 + - deps: mime-db@~1.6.0 + +1.2.2 / 2014-12-30 +================== + + * deps: mime-types@~2.0.7 + - deps: mime-db@~1.5.0 + +1.2.1 / 2014-12-30 +================== + + * deps: mime-types@~2.0.5 + - deps: mime-db@~1.3.1 + +1.2.0 / 2014-12-19 +================== + + * deps: negotiator@0.5.0 + - Fix list return order when large accepted list + - Fix missing identity encoding when q=0 exists + - Remove dynamic building of Negotiator class + +1.1.4 / 2014-12-10 +================== + + * deps: mime-types@~2.0.4 + - deps: mime-db@~1.3.0 + +1.1.3 / 2014-11-09 +================== + + * deps: mime-types@~2.0.3 + - deps: mime-db@~1.2.0 + +1.1.2 / 2014-10-14 +================== + + * deps: negotiator@0.4.9 + - Fix error when media type has invalid parameter + +1.1.1 / 2014-09-28 +================== + + * deps: mime-types@~2.0.2 + - deps: mime-db@~1.1.0 + * deps: negotiator@0.4.8 + - Fix all negotiations to be case-insensitive + - Stable sort preferences of same quality according to client order + +1.1.0 / 2014-09-02 +================== + + * update `mime-types` + +1.0.7 / 2014-07-04 +================== + + * Fix wrong type returned from `type` when match after unknown extension + +1.0.6 / 2014-06-24 +================== + + * deps: negotiator@0.4.7 + +1.0.5 / 2014-06-20 +================== + + * fix crash when unknown extension given + +1.0.4 / 2014-06-19 +================== + + * use `mime-types` + +1.0.3 / 2014-06-11 +================== + + * deps: negotiator@0.4.6 + - Order by specificity when quality is the same + +1.0.2 / 2014-05-29 +================== + + * Fix interpretation when header not in request + * deps: pin negotiator@0.4.5 + +1.0.1 / 2014-01-18 +================== + + * Identity encoding isn't always acceptable + * deps: negotiator@~0.4.0 + +1.0.0 / 2013-12-27 +================== + + * Genesis diff --git a/nodered/rootfs/data/node_modules/accepts/LICENSE b/nodered/rootfs/data/node_modules/accepts/LICENSE new file mode 100644 index 0000000..0616607 --- /dev/null +++ b/nodered/rootfs/data/node_modules/accepts/LICENSE @@ -0,0 +1,23 @@ +(The MIT License) + +Copyright (c) 2014 Jonathan Ong +Copyright (c) 2015 Douglas Christopher Wilson + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/accepts/README.md b/nodered/rootfs/data/node_modules/accepts/README.md new file mode 100644 index 0000000..66a2f54 --- /dev/null +++ b/nodered/rootfs/data/node_modules/accepts/README.md @@ -0,0 +1,142 @@ +# accepts + +[![NPM Version][npm-version-image]][npm-url] +[![NPM Downloads][npm-downloads-image]][npm-url] +[![Node.js Version][node-version-image]][node-version-url] +[![Build Status][travis-image]][travis-url] +[![Test Coverage][coveralls-image]][coveralls-url] + +Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator). +Extracted from [koa](https://www.npmjs.com/package/koa) for general use. + +In addition to negotiator, it allows: + +- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])` + as well as `('text/html', 'application/json')`. +- Allows type shorthands such as `json`. +- Returns `false` when no types match +- Treats non-existent headers as `*` + +## Installation + +This is a [Node.js](https://nodejs.org/en/) module available through the +[npm registry](https://www.npmjs.com/). Installation is done using the +[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): + +```sh +$ npm install accepts +``` + +## API + + + +```js +var accepts = require('accepts') +``` + +### accepts(req) + +Create a new `Accepts` object for the given `req`. + +#### .charset(charsets) + +Return the first accepted charset. If nothing in `charsets` is accepted, +then `false` is returned. + +#### .charsets() + +Return the charsets that the request accepts, in the order of the client's +preference (most preferred first). + +#### .encoding(encodings) + +Return the first accepted encoding. If nothing in `encodings` is accepted, +then `false` is returned. + +#### .encodings() + +Return the encodings that the request accepts, in the order of the client's +preference (most preferred first). + +#### .language(languages) + +Return the first accepted language. If nothing in `languages` is accepted, +then `false` is returned. + +#### .languages() + +Return the languages that the request accepts, in the order of the client's +preference (most preferred first). + +#### .type(types) + +Return the first accepted type (and it is returned as the same text as what +appears in the `types` array). If nothing in `types` is accepted, then `false` +is returned. + +The `types` array can contain full MIME types or file extensions. Any value +that is not a full MIME types is passed to `require('mime-types').lookup`. + +#### .types() + +Return the types that the request accepts, in the order of the client's +preference (most preferred first). + +## Examples + +### Simple type negotiation + +This simple example shows how to use `accepts` to return a different typed +respond body based on what the client wants to accept. The server lists it's +preferences in order and will get back the best match between the client and +server. + +```js +var accepts = require('accepts') +var http = require('http') + +function app (req, res) { + var accept = accepts(req) + + // the order of this list is significant; should be server preferred order + switch (accept.type(['json', 'html'])) { + case 'json': + res.setHeader('Content-Type', 'application/json') + res.write('{"hello":"world!"}') + break + case 'html': + res.setHeader('Content-Type', 'text/html') + res.write('hello, world!') + break + default: + // the fallback is text/plain, so no need to specify it above + res.setHeader('Content-Type', 'text/plain') + res.write('hello, world!') + break + } + + res.end() +} + +http.createServer(app).listen(3000) +``` + +You can test this out with the cURL program: +```sh +curl -I -H'Accept: text/html' http://localhost:3000/ +``` + +## License + +[MIT](LICENSE) + +[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/accepts/master +[coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master +[node-version-image]: https://badgen.net/npm/node/accepts +[node-version-url]: https://nodejs.org/en/download +[npm-downloads-image]: https://badgen.net/npm/dm/accepts +[npm-url]: https://npmjs.org/package/accepts +[npm-version-image]: https://badgen.net/npm/v/accepts +[travis-image]: https://badgen.net/travis/jshttp/accepts/master +[travis-url]: https://travis-ci.org/jshttp/accepts diff --git a/nodered/rootfs/data/node_modules/accepts/index.js b/nodered/rootfs/data/node_modules/accepts/index.js new file mode 100644 index 0000000..e9b2f63 --- /dev/null +++ b/nodered/rootfs/data/node_modules/accepts/index.js @@ -0,0 +1,238 @@ +/*! + * accepts + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */ + +'use strict' + +/** + * Module dependencies. + * @private + */ + +var Negotiator = require('negotiator') +var mime = require('mime-types') + +/** + * Module exports. + * @public + */ + +module.exports = Accepts + +/** + * Create a new Accepts object for the given req. + * + * @param {object} req + * @public + */ + +function Accepts (req) { + if (!(this instanceof Accepts)) { + return new Accepts(req) + } + + this.headers = req.headers + this.negotiator = new Negotiator(req) +} + +/** + * Check if the given `type(s)` is acceptable, returning + * the best match when true, otherwise `undefined`, in which + * case you should respond with 406 "Not Acceptable". + * + * The `type` value may be a single mime type string + * such as "application/json", the extension name + * such as "json" or an array `["json", "html", "text/plain"]`. When a list + * or array is given the _best_ match, if any is returned. + * + * Examples: + * + * // Accept: text/html + * this.types('html'); + * // => "html" + * + * // Accept: text/*, application/json + * this.types('html'); + * // => "html" + * this.types('text/html'); + * // => "text/html" + * this.types('json', 'text'); + * // => "json" + * this.types('application/json'); + * // => "application/json" + * + * // Accept: text/*, application/json + * this.types('image/png'); + * this.types('png'); + * // => undefined + * + * // Accept: text/*;q=.5, application/json + * this.types(['html', 'json']); + * this.types('html', 'json'); + * // => "json" + * + * @param {String|Array} types... + * @return {String|Array|Boolean} + * @public + */ + +Accepts.prototype.type = +Accepts.prototype.types = function (types_) { + var types = types_ + + // support flattened arguments + if (types && !Array.isArray(types)) { + types = new Array(arguments.length) + for (var i = 0; i < types.length; i++) { + types[i] = arguments[i] + } + } + + // no types, return all requested types + if (!types || types.length === 0) { + return this.negotiator.mediaTypes() + } + + // no accept header, return first given type + if (!this.headers.accept) { + return types[0] + } + + var mimes = types.map(extToMime) + var accepts = this.negotiator.mediaTypes(mimes.filter(validMime)) + var first = accepts[0] + + return first + ? types[mimes.indexOf(first)] + : false +} + +/** + * Return accepted encodings or best fit based on `encodings`. + * + * Given `Accept-Encoding: gzip, deflate` + * an array sorted by quality is returned: + * + * ['gzip', 'deflate'] + * + * @param {String|Array} encodings... + * @return {String|Array} + * @public + */ + +Accepts.prototype.encoding = +Accepts.prototype.encodings = function (encodings_) { + var encodings = encodings_ + + // support flattened arguments + if (encodings && !Array.isArray(encodings)) { + encodings = new Array(arguments.length) + for (var i = 0; i < encodings.length; i++) { + encodings[i] = arguments[i] + } + } + + // no encodings, return all requested encodings + if (!encodings || encodings.length === 0) { + return this.negotiator.encodings() + } + + return this.negotiator.encodings(encodings)[0] || false +} + +/** + * Return accepted charsets or best fit based on `charsets`. + * + * Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5` + * an array sorted by quality is returned: + * + * ['utf-8', 'utf-7', 'iso-8859-1'] + * + * @param {String|Array} charsets... + * @return {String|Array} + * @public + */ + +Accepts.prototype.charset = +Accepts.prototype.charsets = function (charsets_) { + var charsets = charsets_ + + // support flattened arguments + if (charsets && !Array.isArray(charsets)) { + charsets = new Array(arguments.length) + for (var i = 0; i < charsets.length; i++) { + charsets[i] = arguments[i] + } + } + + // no charsets, return all requested charsets + if (!charsets || charsets.length === 0) { + return this.negotiator.charsets() + } + + return this.negotiator.charsets(charsets)[0] || false +} + +/** + * Return accepted languages or best fit based on `langs`. + * + * Given `Accept-Language: en;q=0.8, es, pt` + * an array sorted by quality is returned: + * + * ['es', 'pt', 'en'] + * + * @param {String|Array} langs... + * @return {Array|String} + * @public + */ + +Accepts.prototype.lang = +Accepts.prototype.langs = +Accepts.prototype.language = +Accepts.prototype.languages = function (languages_) { + var languages = languages_ + + // support flattened arguments + if (languages && !Array.isArray(languages)) { + languages = new Array(arguments.length) + for (var i = 0; i < languages.length; i++) { + languages[i] = arguments[i] + } + } + + // no languages, return all requested languages + if (!languages || languages.length === 0) { + return this.negotiator.languages() + } + + return this.negotiator.languages(languages)[0] || false +} + +/** + * Convert extnames to mime. + * + * @param {String} type + * @return {String} + * @private + */ + +function extToMime (type) { + return type.indexOf('/') === -1 + ? mime.lookup(type) + : type +} + +/** + * Check if mime is valid. + * + * @param {String} type + * @return {String} + * @private + */ + +function validMime (type) { + return typeof type === 'string' +} diff --git a/nodered/rootfs/data/node_modules/accepts/package.json b/nodered/rootfs/data/node_modules/accepts/package.json new file mode 100644 index 0000000..4bc28b6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/accepts/package.json @@ -0,0 +1,87 @@ +{ + "_from": "accepts@~1.3.5", + "_id": "accepts@1.3.7", + "_inBundle": false, + "_integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "_location": "/accepts", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "accepts@~1.3.5", + "name": "accepts", + "escapedName": "accepts", + "rawSpec": "~1.3.5", + "saveSpec": null, + "fetchSpec": "~1.3.5" + }, + "_requiredBy": [ + "/compression", + "/engine.io" + ], + "_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "_shasum": "531bc726517a3b2b41f850021c6cc15eaab507cd", + "_spec": "accepts@~1.3.5", + "_where": "/data/node_modules/compression", + "bugs": { + "url": "https://github.com/jshttp/accepts/issues" + }, + "bundleDependencies": false, + "contributors": [ + { + "name": "Douglas Christopher Wilson", + "email": "doug@somethingdoug.com" + }, + { + "name": "Jonathan Ong", + "email": "me@jongleberry.com", + "url": "http://jongleberry.com" + } + ], + "dependencies": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + }, + "deprecated": false, + "description": "Higher-level content negotiation", + "devDependencies": { + "deep-equal": "1.0.1", + "eslint": "5.16.0", + "eslint-config-standard": "12.0.0", + "eslint-plugin-import": "2.17.2", + "eslint-plugin-markdown": "1.0.0", + "eslint-plugin-node": "8.0.1", + "eslint-plugin-promise": "4.1.1", + "eslint-plugin-standard": "4.0.0", + "mocha": "6.1.4", + "nyc": "14.0.0" + }, + "engines": { + "node": ">= 0.6" + }, + "files": [ + "LICENSE", + "HISTORY.md", + "index.js" + ], + "homepage": "https://github.com/jshttp/accepts#readme", + "keywords": [ + "content", + "negotiation", + "accept", + "accepts" + ], + "license": "MIT", + "name": "accepts", + "repository": { + "type": "git", + "url": "git+https://github.com/jshttp/accepts.git" + }, + "scripts": { + "lint": "eslint --plugin markdown --ext js,md .", + "test": "mocha --reporter spec --check-leaks --bail test/", + "test-cov": "nyc --reporter=html --reporter=text npm test", + "test-travis": "nyc --reporter=text npm test" + }, + "version": "1.3.7" +} diff --git a/nodered/rootfs/data/node_modules/after/.npmignore b/nodered/rootfs/data/node_modules/after/.npmignore new file mode 100644 index 0000000..6c78602 --- /dev/null +++ b/nodered/rootfs/data/node_modules/after/.npmignore @@ -0,0 +1,2 @@ +node_modules +.monitor diff --git a/nodered/rootfs/data/node_modules/after/.travis.yml b/nodered/rootfs/data/node_modules/after/.travis.yml new file mode 100644 index 0000000..afd72d0 --- /dev/null +++ b/nodered/rootfs/data/node_modules/after/.travis.yml @@ -0,0 +1,12 @@ +language: node_js +node_js: + - 0.6 + - 0.8 + - 0.9 + - 0.10 + - 0.12 + - 4.2.4 + - 5.4.1 + - iojs-1 + - iojs-2 + - iojs-3 diff --git a/nodered/rootfs/data/node_modules/after/LICENCE b/nodered/rootfs/data/node_modules/after/LICENCE new file mode 100644 index 0000000..7c35130 --- /dev/null +++ b/nodered/rootfs/data/node_modules/after/LICENCE @@ -0,0 +1,19 @@ +Copyright (c) 2011 Raynos. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/after/README.md b/nodered/rootfs/data/node_modules/after/README.md new file mode 100644 index 0000000..fc69096 --- /dev/null +++ b/nodered/rootfs/data/node_modules/after/README.md @@ -0,0 +1,115 @@ +# After [![Build Status][1]][2] + +Invoke callback after n calls + +## Status: production ready + +## Example + +```js +var after = require("after") +var db = require("./db") // some db. + +var updateUser = function (req, res) { + // use after to run two tasks in parallel, + // namely get request body and get session + // then run updateUser with the results + var next = after(2, updateUser) + var results = {} + + getJSONBody(req, res, function (err, body) { + if (err) return next(err) + + results.body = body + next(null, results) + }) + + getSessionUser(req, res, function (err, user) { + if (err) return next(err) + + results.user = user + next(null, results) + }) + + // now do the thing! + function updateUser(err, result) { + if (err) { + res.statusCode = 500 + return res.end("Unexpected Error") + } + + if (!result.user || result.user.role !== "admin") { + res.statusCode = 403 + return res.end("Permission Denied") + } + + db.put("users:" + req.params.userId, result.body, function (err) { + if (err) { + res.statusCode = 500 + return res.end("Unexpected Error") + } + + res.statusCode = 200 + res.end("Ok") + }) + } +} +``` + +## Naive Example + +```js +var after = require("after") + , next = after(3, logItWorks) + +next() +next() +next() // it works + +function logItWorks() { + console.log("it works!") +} +``` + +## Example with error handling + +```js +var after = require("after") + , next = after(3, logError) + +next() +next(new Error("oops")) // logs oops +next() // does nothing + +// This callback is only called once. +// If there is an error the callback gets called immediately +// this avoids the situation where errors get lost. +function logError(err) { + console.log(err) +} +``` + +## Installation + +`npm install after` + +## Tests + +`npm test` + +## Contributors + + - Raynos + - defunctzombie + +## MIT Licenced + + [1]: https://secure.travis-ci.org/Raynos/after.png + [2]: http://travis-ci.org/Raynos/after + [3]: http://raynos.org/blog/2/Flow-control-in-node.js + [4]: http://stackoverflow.com/questions/6852059/determining-the-end-of-asynchronous-operations-javascript/6852307#6852307 + [5]: http://stackoverflow.com/questions/6869872/in-javascript-what-are-best-practices-for-executing-multiple-asynchronous-functi/6870031#6870031 + [6]: http://stackoverflow.com/questions/6864397/javascript-performance-long-running-tasks/6889419#6889419 + [7]: http://stackoverflow.com/questions/6597493/synchronous-database-queries-with-node-js/6620091#6620091 + [8]: http://github.com/Raynos/iterators + [9]: http://github.com/Raynos/composite diff --git a/nodered/rootfs/data/node_modules/after/index.js b/nodered/rootfs/data/node_modules/after/index.js new file mode 100644 index 0000000..ec24879 --- /dev/null +++ b/nodered/rootfs/data/node_modules/after/index.js @@ -0,0 +1,28 @@ +module.exports = after + +function after(count, callback, err_cb) { + var bail = false + err_cb = err_cb || noop + proxy.count = count + + return (count === 0) ? callback() : proxy + + function proxy(err, result) { + if (proxy.count <= 0) { + throw new Error('after called too many times') + } + --proxy.count + + // after first error, rest are passed to err_cb + if (err) { + bail = true + callback(err) + // future error callbacks will go to error handler + callback = err_cb + } else if (proxy.count === 0 && !bail) { + callback(null, result) + } + } +} + +function noop() {} diff --git a/nodered/rootfs/data/node_modules/after/package.json b/nodered/rootfs/data/node_modules/after/package.json new file mode 100644 index 0000000..46ae38d --- /dev/null +++ b/nodered/rootfs/data/node_modules/after/package.json @@ -0,0 +1,63 @@ +{ + "_from": "after@0.8.2", + "_id": "after@0.8.2", + "_inBundle": false, + "_integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=", + "_location": "/after", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "after@0.8.2", + "name": "after", + "escapedName": "after", + "rawSpec": "0.8.2", + "saveSpec": null, + "fetchSpec": "0.8.2" + }, + "_requiredBy": [ + "/engine.io-parser" + ], + "_resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", + "_shasum": "fedb394f9f0e02aa9768e702bda23b505fae7e1f", + "_spec": "after@0.8.2", + "_where": "/data/node_modules/engine.io-parser", + "author": { + "name": "Raynos", + "email": "raynos2@gmail.com" + }, + "bugs": { + "url": "https://github.com/Raynos/after/issues" + }, + "bundleDependencies": false, + "contributors": [ + { + "name": "Raynos", + "email": "raynos2@gmail.com", + "url": "http://raynos.org" + } + ], + "deprecated": false, + "description": "after - tiny flow control", + "devDependencies": { + "mocha": "~1.8.1" + }, + "homepage": "https://github.com/Raynos/after#readme", + "keywords": [ + "flowcontrol", + "after", + "flow", + "control", + "arch" + ], + "license": "MIT", + "name": "after", + "repository": { + "type": "git", + "url": "git://github.com/Raynos/after.git" + }, + "scripts": { + "test": "mocha --ui tdd --reporter spec test/*.js" + }, + "version": "0.8.2" +} diff --git a/nodered/rootfs/data/node_modules/after/test/after-test.js b/nodered/rootfs/data/node_modules/after/test/after-test.js new file mode 100644 index 0000000..0d63f4c --- /dev/null +++ b/nodered/rootfs/data/node_modules/after/test/after-test.js @@ -0,0 +1,120 @@ +/*global suite, test*/ + +var assert = require("assert") + , after = require("../") + +test("exists", function () { + assert(typeof after === "function", "after is not a function") +}) + +test("after when called with 0 invokes", function (done) { + after(0, done) +}); + +test("after 1", function (done) { + var next = after(1, done) + next() +}) + +test("after 5", function (done) { + var next = after(5, done) + , i = 5 + + while (i--) { + next() + } +}) + +test("manipulate count", function (done) { + var next = after(1, done) + , i = 5 + + next.count = i + while (i--) { + next() + } +}) + +test("after terminates on error", function (done) { + var next = after(2, function(err) { + assert.equal(err.message, 'test'); + done(); + }) + next(new Error('test')) + next(new Error('test2')) +}) + +test('gee', function(done) { + done = after(2, done) + + function cb(err) { + assert.equal(err.message, 1); + done() + } + + var next = after(3, cb, function(err) { + assert.equal(err.message, 2) + done() + }); + + next() + next(new Error(1)) + next(new Error(2)) +}) + +test('eee', function(done) { + done = after(3, done) + + function cb(err) { + assert.equal(err.message, 1); + done() + } + + var next = after(3, cb, function(err) { + assert.equal(err.message, 2) + done() + }); + + next(new Error(1)) + next(new Error(2)) + next(new Error(2)) +}) + +test('gge', function(done) { + function cb(err) { + assert.equal(err.message, 1); + done() + } + + var next = after(3, cb, function(err) { + // should not happen + assert.ok(false); + }); + + next() + next() + next(new Error(1)) +}) + +test('egg', function(done) { + function cb(err) { + assert.equal(err.message, 1); + done() + } + + var next = after(3, cb, function(err) { + // should not happen + assert.ok(false); + }); + + next(new Error(1)) + next() + next() +}) + +test('throws on too many calls', function(done) { + var next = after(1, done); + next() + assert.throws(next, /after called too many times/); +}); + diff --git a/nodered/rootfs/data/node_modules/ajv/.tonic_example.js b/nodered/rootfs/data/node_modules/ajv/.tonic_example.js new file mode 100644 index 0000000..aa11812 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/.tonic_example.js @@ -0,0 +1,20 @@ +var Ajv = require('ajv'); +var ajv = new Ajv({allErrors: true}); + +var schema = { + "properties": { + "foo": { "type": "string" }, + "bar": { "type": "number", "maximum": 3 } + } +}; + +var validate = ajv.compile(schema); + +test({"foo": "abc", "bar": 2}); +test({"foo": 2, "bar": 4}); + +function test(data) { + var valid = validate(data); + if (valid) console.log('Valid!'); + else console.log('Invalid: ' + ajv.errorsText(validate.errors)); +} \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/ajv/LICENSE b/nodered/rootfs/data/node_modules/ajv/LICENSE new file mode 100644 index 0000000..96ee719 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2015-2017 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/nodered/rootfs/data/node_modules/ajv/README.md b/nodered/rootfs/data/node_modules/ajv/README.md new file mode 100644 index 0000000..cafbd71 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/README.md @@ -0,0 +1,1359 @@ +Ajv logo + +# Ajv: Another JSON Schema Validator + +The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/07. + +[![Build Status](https://travis-ci.org/epoberezkin/ajv.svg?branch=master)](https://travis-ci.org/epoberezkin/ajv) +[![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv) +[![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv) +[![Coverage Status](https://coveralls.io/repos/epoberezkin/ajv/badge.svg?branch=master&service=github)](https://coveralls.io/github/epoberezkin/ajv?branch=master) +[![Greenkeeper badge](https://badges.greenkeeper.io/epoberezkin/ajv.svg)](https://greenkeeper.io/) +[![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv) + + +## Using version 6 + +[JSON Schema draft-07](http://json-schema.org/latest/json-schema-validation.html) is published. + +[Ajv version 6.0.0](https://github.com/epoberezkin/ajv/releases/tag/v6.0.0) that supports draft-07 is released. It may require either migrating your schemas or updating your code (to continue using draft-04 and v5 schemas, draft-06 schemas will be supported without changes). + +__Please note__: To use Ajv with draft-06 schemas you need to explicitly add the meta-schema to the validator instance: + +```javascript +ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json')); +``` + +To use Ajv with draft-04 schemas in addition to explicitly adding meta-schema you also need to use option schemaId: + +```javascript +var ajv = new Ajv({schemaId: 'id'}); +// If you want to use both draft-04 and draft-06/07 schemas: +// var ajv = new Ajv({schemaId: 'auto'}); +ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json')); +``` + + +## Contents + +- [Performance](#performance) +- [Features](#features) +- [Getting started](#getting-started) +- [Frequently Asked Questions](https://github.com/epoberezkin/ajv/blob/master/FAQ.md) +- [Using in browser](#using-in-browser) +- [Command line interface](#command-line-interface) +- Validation + - [Keywords](#validation-keywords) + - [Annotation keywords](#annotation-keywords) + - [Formats](#formats) + - [Combining schemas with $ref](#ref) + - [$data reference](#data-reference) + - NEW: [$merge and $patch keywords](#merge-and-patch-keywords) + - [Defining custom keywords](#defining-custom-keywords) + - [Asynchronous schema compilation](#asynchronous-schema-compilation) + - [Asynchronous validation](#asynchronous-validation) +- [Security considerations](#security-considerations) + - [Security contact](#security-contact) + - [Untrusted schemas](#untrusted-schemas) + - [Circular references in objects](#circular-references-in-javascript-objects) + - [Trusted schemas](#security-risks-of-trusted-schemas) +- Modifying data during validation + - [Filtering data](#filtering-data) + - [Assigning defaults](#assigning-defaults) + - [Coercing data types](#coercing-data-types) +- API + - [Methods](#api) + - [Options](#options) + - [Validation errors](#validation-errors) +- [Plugins](#plugins) +- [Related packages](#related-packages) +- [Some packages using Ajv](#some-packages-using-ajv) +- [Tests, Contributing, History, Support, License](#tests) + + +## Performance + +Ajv generates code using [doT templates](https://github.com/olado/doT) to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization. + +Currently Ajv is the fastest and the most standard compliant validator according to these benchmarks: + +- [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark) - 50% faster than the second place +- [jsck benchmark](https://github.com/pandastrike/jsck#benchmarks) - 20-190% faster +- [z-schema benchmark](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html) +- [themis benchmark](https://cdn.rawgit.com/playlyfe/themis/master/benchmark/results.html) + + +Performance of different validators by [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark): + +[![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=32,4,1&chs=600x416&chxl=-1:|djv|ajv|json-schema-validator-generator|jsen|is-my-json-valid|themis|z-schema|jsck|skeemas|json-schema-library|tv4&chd=t:100,98,72.1,66.8,50.1,15.1,6.1,3.8,1.2,0.7,0.2)](https://github.com/ebdrup/json-schema-benchmark/blob/master/README.md#performance) + + +## Features + +- Ajv implements full JSON Schema [draft-06/07](http://json-schema.org/) and draft-04 standards: + - all validation keywords (see [JSON Schema validation keywords](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md)) + - full support of remote refs (remote schemas have to be added with `addSchema` or compiled to be available) + - support of circular references between schemas + - correct string lengths for strings with unicode pairs (can be turned off) + - [formats](#formats) defined by JSON Schema draft-07 standard and custom formats (can be turned off) + - [validates schemas against meta-schema](#api-validateschema) +- supports [browsers](#using-in-browser) and Node.js 0.10-8.x +- [asynchronous loading](#asynchronous-schema-compilation) of referenced schemas during compilation +- "All errors" validation mode with [option allErrors](#options) +- [error messages with parameters](#validation-errors) describing error reasons to allow creating custom error messages +- i18n error messages support with [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) package +- [filtering data](#filtering-data) from additional properties +- [assigning defaults](#assigning-defaults) to missing properties and items +- [coercing data](#coercing-data-types) to the types specified in `type` keywords +- [custom keywords](#defining-custom-keywords) +- draft-06/07 keywords `const`, `contains`, `propertyNames` and `if/then/else` +- draft-06 boolean schemas (`true`/`false` as a schema to always pass/fail). +- keywords `switch`, `patternRequired`, `formatMaximum` / `formatMinimum` and `formatExclusiveMaximum` / `formatExclusiveMinimum` from [JSON Schema extension proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) with [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package +- [$data reference](#data-reference) to use values from the validated data as values for the schema keywords +- [asynchronous validation](#asynchronous-validation) of custom formats and keywords + +Currently Ajv is the only validator that passes all the tests from [JSON Schema Test Suite](https://github.com/json-schema/JSON-Schema-Test-Suite) (according to [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark), apart from the test that requires that `1.0` is not an integer that is impossible to satisfy in JavaScript). + + +## Install + +``` +npm install ajv +``` + + +## Getting started + +Try it in the Node.js REPL: https://tonicdev.com/npm/ajv + + +The fastest validation call: + +```javascript +var Ajv = require('ajv'); +var ajv = new Ajv(); // options can be passed, e.g. {allErrors: true} +var validate = ajv.compile(schema); +var valid = validate(data); +if (!valid) console.log(validate.errors); +``` + +or with less code + +```javascript +// ... +var valid = ajv.validate(schema, data); +if (!valid) console.log(ajv.errors); +// ... +``` + +or + +```javascript +// ... +var valid = ajv.addSchema(schema, 'mySchema') + .validate('mySchema', data); +if (!valid) console.log(ajv.errorsText()); +// ... +``` + +See [API](#api) and [Options](#options) for more details. + +Ajv compiles schemas to functions and caches them in all cases (using schema serialized with [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) or a custom function as a key), so that the next time the same schema is used (not necessarily the same object instance) it won't be compiled again. + +The best performance is achieved when using compiled functions returned by `compile` or `getSchema` methods (there is no additional function call). + +__Please note__: every time a validation function or `ajv.validate` are called `errors` property is overwritten. You need to copy `errors` array reference to another variable if you want to use it later (e.g., in the callback). See [Validation errors](#validation-errors) + + +## Using in browser + +You can require Ajv directly from the code you browserify - in this case Ajv will be a part of your bundle. + +If you need to use Ajv in several bundles you can create a separate UMD bundle using `npm run bundle` script (thanks to [siddo420](https://github.com/siddo420)). + +Then you need to load Ajv in the browser: +```html + +``` + +This bundle can be used with different module systems; it creates global `Ajv` if no module system is found. + +The browser bundle is available on [cdnjs](https://cdnjs.com/libraries/ajv). + +Ajv is tested with these browsers: + +[![Sauce Test Status](https://saucelabs.com/browser-matrix/epoberezkin.svg)](https://saucelabs.com/u/epoberezkin) + +__Please note__: some frameworks, e.g. Dojo, may redefine global require in such way that is not compatible with CommonJS module format. In such case Ajv bundle has to be loaded before the framework and then you can use global Ajv (see issue [#234](https://github.com/epoberezkin/ajv/issues/234)). + + +## Command line interface + +CLI is available as a separate npm package [ajv-cli](https://github.com/jessedc/ajv-cli). It supports: + +- compiling JSON Schemas to test their validity +- BETA: generating standalone module exporting a validation function to be used without Ajv (using [ajv-pack](https://github.com/epoberezkin/ajv-pack)) +- migrate schemas to draft-07 (using [json-schema-migrate](https://github.com/epoberezkin/json-schema-migrate)) +- validating data file(s) against JSON Schema +- testing expected validity of data against JSON Schema +- referenced schemas +- custom meta-schemas +- files in JSON and JavaScript format +- all Ajv options +- reporting changes in data after validation in [JSON-patch](https://tools.ietf.org/html/rfc6902) format + + +## Validation keywords + +Ajv supports all validation keywords from draft-07 of JSON Schema standard: + +- [type](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#type) +- [for numbers](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-numbers) - maximum, minimum, exclusiveMaximum, exclusiveMinimum, multipleOf +- [for strings](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-strings) - maxLength, minLength, pattern, format +- [for arrays](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-arrays) - maxItems, minItems, uniqueItems, items, additionalItems, [contains](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#contains) +- [for objects](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-objects) - maxProperties, minProperties, required, properties, patternProperties, additionalProperties, dependencies, [propertyNames](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#propertynames) +- [for all types](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-all-types) - enum, [const](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#const) +- [compound keywords](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#compound-keywords) - not, oneOf, anyOf, allOf, [if/then/else](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#ifthenelse) + +With [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package Ajv also supports validation keywords from [JSON Schema extension proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) for JSON Schema standard: + +- [patternRequired](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#patternrequired-proposed) - like `required` but with patterns that some property should match. +- [formatMaximum, formatMinimum, formatExclusiveMaximum, formatExclusiveMinimum](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#formatmaximum--formatminimum-and-exclusiveformatmaximum--exclusiveformatminimum-proposed) - setting limits for date, time, etc. + +See [JSON Schema validation keywords](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md) for more details. + + +## Annotation keywords + +JSON Schema specification defines several annotation keywords that describe schema itself but do not perform any validation. + +- `title` and `description`: information about the data represented by that schema +- `$comment` (NEW in draft-07): information for developers. With option `$comment` Ajv logs or passes the comment string to the user-supplied function. See [Options](#options). +- `default`: a default value of the data instance, see [Assigning defaults](#assigning-defaults). +- `examples` (NEW in draft-06): an array of data instances. Ajv does not check the validity of these instances against the schema. +- `readOnly` and `writeOnly` (NEW in draft-07): marks data-instance as read-only or write-only in relation to the source of the data (database, api, etc.). +- `contentEncoding`: [RFC 2045](https://tools.ietf.org/html/rfc2045#section-6.1 ), e.g., "base64". +- `contentMediaType`: [RFC 2046](https://tools.ietf.org/html/rfc2046), e.g., "image/png". + +__Please note__: Ajv does not implement validation of the keywords `examples`, `contentEncoding` and `contentMediaType` but it reserves them. If you want to create a plugin that implements some of them, it should remove these keywords from the instance. + + +## Formats + +The following formats are supported for string validation with "format" keyword: + +- _date_: full-date according to [RFC3339](http://tools.ietf.org/html/rfc3339#section-5.6). +- _time_: time with optional time-zone. +- _date-time_: date-time from the same source (time-zone is mandatory). `date`, `time` and `date-time` validate ranges in `full` mode and only regexp in `fast` mode (see [options](#options)). +- _uri_: full URI. +- _uri-reference_: URI reference, including full and relative URIs. +- _uri-template_: URI template according to [RFC6570](https://tools.ietf.org/html/rfc6570) +- _url_ (deprecated): [URL record](https://url.spec.whatwg.org/#concept-url). +- _email_: email address. +- _hostname_: host name according to [RFC1034](http://tools.ietf.org/html/rfc1034#section-3.5). +- _ipv4_: IP address v4. +- _ipv6_: IP address v6. +- _regex_: tests whether a string is a valid regular expression by passing it to RegExp constructor. +- _uuid_: Universally Unique IDentifier according to [RFC4122](http://tools.ietf.org/html/rfc4122). +- _json-pointer_: JSON-pointer according to [RFC6901](https://tools.ietf.org/html/rfc6901). +- _relative-json-pointer_: relative JSON-pointer according to [this draft](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00). + +__Please note__: JSON Schema draft-07 also defines formats `iri`, `iri-reference`, `idn-hostname` and `idn-email` for URLs, hostnames and emails with international characters. Ajv does not implement these formats. If you create Ajv plugin that implements them please make a PR to mention this plugin here. + +There are two modes of format validation: `fast` and `full`. This mode affects formats `date`, `time`, `date-time`, `uri`, `uri-reference`, `email`, and `hostname`. See [Options](#options) for details. + +You can add additional formats and replace any of the formats above using [addFormat](#api-addformat) method. + +The option `unknownFormats` allows changing the default behaviour when an unknown format is encountered. In this case Ajv can either fail schema compilation (default) or ignore it (default in versions before 5.0.0). You also can whitelist specific format(s) to be ignored. See [Options](#options) for details. + +You can find regular expressions used for format validation and the sources that were used in [formats.js](https://github.com/epoberezkin/ajv/blob/master/lib/compile/formats.js). + + +## Combining schemas with $ref + +You can structure your validation logic across multiple schema files and have schemas reference each other using `$ref` keyword. + +Example: + +```javascript +var schema = { + "$id": "http://example.com/schemas/schema.json", + "type": "object", + "properties": { + "foo": { "$ref": "defs.json#/definitions/int" }, + "bar": { "$ref": "defs.json#/definitions/str" } + } +}; + +var defsSchema = { + "$id": "http://example.com/schemas/defs.json", + "definitions": { + "int": { "type": "integer" }, + "str": { "type": "string" } + } +}; +``` + +Now to compile your schema you can either pass all schemas to Ajv instance: + +```javascript +var ajv = new Ajv({schemas: [schema, defsSchema]}); +var validate = ajv.getSchema('http://example.com/schemas/schema.json'); +``` + +or use `addSchema` method: + +```javascript +var ajv = new Ajv; +var validate = ajv.addSchema(defsSchema) + .compile(schema); +``` + +See [Options](#options) and [addSchema](#api) method. + +__Please note__: +- `$ref` is resolved as the uri-reference using schema $id as the base URI (see the example). +- References can be recursive (and mutually recursive) to implement the schemas for different data structures (such as linked lists, trees, graphs, etc.). +- You don't have to host your schema files at the URIs that you use as schema $id. These URIs are only used to identify the schemas, and according to JSON Schema specification validators should not expect to be able to download the schemas from these URIs. +- The actual location of the schema file in the file system is not used. +- You can pass the identifier of the schema as the second parameter of `addSchema` method or as a property name in `schemas` option. This identifier can be used instead of (or in addition to) schema $id. +- You cannot have the same $id (or the schema identifier) used for more than one schema - the exception will be thrown. +- You can implement dynamic resolution of the referenced schemas using `compileAsync` method. In this way you can store schemas in any system (files, web, database, etc.) and reference them without explicitly adding to Ajv instance. See [Asynchronous schema compilation](#asynchronous-schema-compilation). + + +## $data reference + +With `$data` option you can use values from the validated data as the values for the schema keywords. See [proposal](https://github.com/json-schema/json-schema/wiki/$data-(v5-proposal)) for more information about how it works. + +`$data` reference is supported in the keywords: const, enum, format, maximum/minimum, exclusiveMaximum / exclusiveMinimum, maxLength / minLength, maxItems / minItems, maxProperties / minProperties, formatMaximum / formatMinimum, formatExclusiveMaximum / formatExclusiveMinimum, multipleOf, pattern, required, uniqueItems. + +The value of "$data" should be a [JSON-pointer](https://tools.ietf.org/html/rfc6901) to the data (the root is always the top level data object, even if the $data reference is inside a referenced subschema) or a [relative JSON-pointer](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00) (it is relative to the current point in data; if the $data reference is inside a referenced subschema it cannot point to the data outside of the root level for this subschema). + +Examples. + +This schema requires that the value in property `smaller` is less or equal than the value in the property larger: + +```javascript +var ajv = new Ajv({$data: true}); + +var schema = { + "properties": { + "smaller": { + "type": "number", + "maximum": { "$data": "1/larger" } + }, + "larger": { "type": "number" } + } +}; + +var validData = { + smaller: 5, + larger: 7 +}; + +ajv.validate(schema, validData); // true +``` + +This schema requires that the properties have the same format as their field names: + +```javascript +var schema = { + "additionalProperties": { + "type": "string", + "format": { "$data": "0#" } + } +}; + +var validData = { + 'date-time': '1963-06-19T08:30:06.283185Z', + email: 'joe.bloggs@example.com' +} +``` + +`$data` reference is resolved safely - it won't throw even if some property is undefined. If `$data` resolves to `undefined` the validation succeeds (with the exclusion of `const` keyword). If `$data` resolves to incorrect type (e.g. not "number" for maximum keyword) the validation fails. + + +## $merge and $patch keywords + +With the package [ajv-merge-patch](https://github.com/epoberezkin/ajv-merge-patch) you can use the keywords `$merge` and `$patch` that allow extending JSON Schemas with patches using formats [JSON Merge Patch (RFC 7396)](https://tools.ietf.org/html/rfc7396) and [JSON Patch (RFC 6902)](https://tools.ietf.org/html/rfc6902). + +To add keywords `$merge` and `$patch` to Ajv instance use this code: + +```javascript +require('ajv-merge-patch')(ajv); +``` + +Examples. + +Using `$merge`: + +```json +{ + "$merge": { + "source": { + "type": "object", + "properties": { "p": { "type": "string" } }, + "additionalProperties": false + }, + "with": { + "properties": { "q": { "type": "number" } } + } + } +} +``` + +Using `$patch`: + +```json +{ + "$patch": { + "source": { + "type": "object", + "properties": { "p": { "type": "string" } }, + "additionalProperties": false + }, + "with": [ + { "op": "add", "path": "/properties/q", "value": { "type": "number" } } + ] + } +} +``` + +The schemas above are equivalent to this schema: + +```json +{ + "type": "object", + "properties": { + "p": { "type": "string" }, + "q": { "type": "number" } + }, + "additionalProperties": false +} +``` + +The properties `source` and `with` in the keywords `$merge` and `$patch` can use absolute or relative `$ref` to point to other schemas previously added to the Ajv instance or to the fragments of the current schema. + +See the package [ajv-merge-patch](https://github.com/epoberezkin/ajv-merge-patch) for more information. + + +## Defining custom keywords + +The advantages of using custom keywords are: + +- allow creating validation scenarios that cannot be expressed using JSON Schema +- simplify your schemas +- help bringing a bigger part of the validation logic to your schemas +- make your schemas more expressive, less verbose and closer to your application domain +- implement custom data processors that modify your data (`modifying` option MUST be used in keyword definition) and/or create side effects while the data is being validated + +If a keyword is used only for side-effects and its validation result is pre-defined, use option `valid: true/false` in keyword definition to simplify both generated code (no error handling in case of `valid: true`) and your keyword functions (no need to return any validation result). + +The concerns you have to be aware of when extending JSON Schema standard with custom keywords are the portability and understanding of your schemas. You will have to support these custom keywords on other platforms and to properly document these keywords so that everybody can understand them in your schemas. + +You can define custom keywords with [addKeyword](#api-addkeyword) method. Keywords are defined on the `ajv` instance level - new instances will not have previously defined keywords. + +Ajv allows defining keywords with: +- validation function +- compilation function +- macro function +- inline compilation function that should return code (as string) that will be inlined in the currently compiled schema. + +Example. `range` and `exclusiveRange` keywords using compiled schema: + +```javascript +ajv.addKeyword('range', { + type: 'number', + compile: function (sch, parentSchema) { + var min = sch[0]; + var max = sch[1]; + + return parentSchema.exclusiveRange === true + ? function (data) { return data > min && data < max; } + : function (data) { return data >= min && data <= max; } + } +}); + +var schema = { "range": [2, 4], "exclusiveRange": true }; +var validate = ajv.compile(schema); +console.log(validate(2.01)); // true +console.log(validate(3.99)); // true +console.log(validate(2)); // false +console.log(validate(4)); // false +``` + +Several custom keywords (typeof, instanceof, range and propertyNames) are defined in [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package - they can be used for your schemas and as a starting point for your own custom keywords. + +See [Defining custom keywords](https://github.com/epoberezkin/ajv/blob/master/CUSTOM.md) for more details. + + +## Asynchronous schema compilation + +During asynchronous compilation remote references are loaded using supplied function. See `compileAsync` [method](#api-compileAsync) and `loadSchema` [option](#options). + +Example: + +```javascript +var ajv = new Ajv({ loadSchema: loadSchema }); + +ajv.compileAsync(schema).then(function (validate) { + var valid = validate(data); + // ... +}); + +function loadSchema(uri) { + return request.json(uri).then(function (res) { + if (res.statusCode >= 400) + throw new Error('Loading error: ' + res.statusCode); + return res.body; + }); +} +``` + +__Please note__: [Option](#options) `missingRefs` should NOT be set to `"ignore"` or `"fail"` for asynchronous compilation to work. + + +## Asynchronous validation + +Example in Node.js REPL: https://tonicdev.com/esp/ajv-asynchronous-validation + +You can define custom formats and keywords that perform validation asynchronously by accessing database or some other service. You should add `async: true` in the keyword or format definition (see [addFormat](#api-addformat), [addKeyword](#api-addkeyword) and [Defining custom keywords](#defining-custom-keywords)). + +If your schema uses asynchronous formats/keywords or refers to some schema that contains them it should have `"$async": true` keyword so that Ajv can compile it correctly. If asynchronous format/keyword or reference to asynchronous schema is used in the schema without `$async` keyword Ajv will throw an exception during schema compilation. + +__Please note__: all asynchronous subschemas that are referenced from the current or other schemas should have `"$async": true` keyword as well, otherwise the schema compilation will fail. + +Validation function for an asynchronous custom format/keyword should return a promise that resolves with `true` or `false` (or rejects with `new Ajv.ValidationError(errors)` if you want to return custom errors from the keyword function). + +Ajv compiles asynchronous schemas to [es7 async functions](http://tc39.github.io/ecmascript-asyncawait/) that can optionally be transpiled with [nodent](https://github.com/MatAtBread/nodent). Async functions are supported in Node.js 7+ and all modern browsers. You can also supply any other transpiler as a function via `processCode` option. See [Options](#options). + +The compiled validation function has `$async: true` property (if the schema is asynchronous), so you can differentiate these functions if you are using both synchronous and asynchronous schemas. + +Validation result will be a promise that resolves with validated data or rejects with an exception `Ajv.ValidationError` that contains the array of validation errors in `errors` property. + + +Example: + +```javascript +var ajv = new Ajv; +// require('ajv-async')(ajv); + +ajv.addKeyword('idExists', { + async: true, + type: 'number', + validate: checkIdExists +}); + + +function checkIdExists(schema, data) { + return knex(schema.table) + .select('id') + .where('id', data) + .then(function (rows) { + return !!rows.length; // true if record is found + }); +} + +var schema = { + "$async": true, + "properties": { + "userId": { + "type": "integer", + "idExists": { "table": "users" } + }, + "postId": { + "type": "integer", + "idExists": { "table": "posts" } + } + } +}; + +var validate = ajv.compile(schema); + +validate({ userId: 1, postId: 19 }) +.then(function (data) { + console.log('Data is valid', data); // { userId: 1, postId: 19 } +}) +.catch(function (err) { + if (!(err instanceof Ajv.ValidationError)) throw err; + // data is invalid + console.log('Validation errors:', err.errors); +}); +``` + +### Using transpilers with asynchronous validation functions. + +[ajv-async](https://github.com/epoberezkin/ajv-async) uses [nodent](https://github.com/MatAtBread/nodent) to transpile async functions. To use another transpiler you should separately install it (or load its bundle in the browser). + + +#### Using nodent + +```javascript +var ajv = new Ajv; +require('ajv-async')(ajv); +// in the browser if you want to load ajv-async bundle separately you can: +// window.ajvAsync(ajv); +var validate = ajv.compile(schema); // transpiled es7 async function +validate(data).then(successFunc).catch(errorFunc); +``` + + +#### Using other transpilers + +```javascript +var ajv = new Ajv({ processCode: transpileFunc }); +var validate = ajv.compile(schema); // transpiled es7 async function +validate(data).then(successFunc).catch(errorFunc); +``` + +See [Options](#options). + + +## Security considerations + +JSON Schema, if properly used, can replace data sanitisation. It doesn't replace other API security considerations. It also introduces additional security aspects to consider. + + +##### Security contact + +To report a security vulnerability, please use the +[Tidelift security contact](https://tidelift.com/security). +Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues. + + +##### Untrusted schemas + +Ajv treats JSON schemas as trusted as your application code. This security model is based on the most common use case, when the schemas are static and bundled together with the application. + +If your schemas are received from untrusted sources (or generated from untrusted data) there are several scenarios you need to prevent: +- compiling schemas can cause stack overflow (if they are too deep) +- compiling schemas can be slow (e.g. [#557](https://github.com/epoberezkin/ajv/issues/557)) +- validating certain data can be slow + +It is difficult to predict all the scenarios, but at the very least it may help to limit the size of untrusted schemas (e.g. limit JSON string length) and also the maximum schema object depth (that can be high for relatively small JSON strings). You also may want to mitigate slow regular expressions in `pattern` and `patternProperties` keywords. + +Regardless the measures you take, using untrusted schemas increases security risks. + + +##### Circular references in JavaScript objects + +Ajv does not support schemas and validated data that have circular references in objects. See [issue #802](https://github.com/epoberezkin/ajv/issues/802). + +An attempt to compile such schemas or validate such data would cause stack overflow (or will not complete in case of asynchronous validation). Depending on the parser you use, untrusted data can lead to circular references. + + +##### Security risks of trusted schemas + +Some keywords in JSON Schemas can lead to very slow validation for certain data. These keywords include (but may be not limited to): + +- `pattern` and `format` for large strings - use `maxLength` to mitigate +- `uniqueItems` for large non-scalar arrays - use `maxItems` to mitigate +- `patternProperties` for large property names - use `propertyNames` to mitigate + +__Please note__: The suggestions above to prevent slow validation would only work if you do NOT use `allErrors: true` in production code (using it would continue validation after validation errors). + +You can validate your JSON schemas against [this meta-schema](https://github.com/epoberezkin/ajv/blob/master/lib/refs/json-schema-secure.json) to check that these recommendations are followed: + +```javascript +const isSchemaSecure = ajv.compile(require('ajv/lib/refs/json-schema-secure.json')); + +const schema1 = {format: 'email'}; +isSchemaSecure(schema1); // false + +const schema2 = {format: 'email', maxLength: 256}; +isSchemaSecure(schema2); // true +``` + +__Please note__: following all these recommendation is not a guarantee that validation of untrusted data is safe - it can still lead to some undesirable results. + + +## Filtering data + +With [option `removeAdditional`](#options) (added by [andyscott](https://github.com/andyscott)) you can filter data during the validation. + +This option modifies original data. + +Example: + +```javascript +var ajv = new Ajv({ removeAdditional: true }); +var schema = { + "additionalProperties": false, + "properties": { + "foo": { "type": "number" }, + "bar": { + "additionalProperties": { "type": "number" }, + "properties": { + "baz": { "type": "string" } + } + } + } +} + +var data = { + "foo": 0, + "additional1": 1, // will be removed; `additionalProperties` == false + "bar": { + "baz": "abc", + "additional2": 2 // will NOT be removed; `additionalProperties` != false + }, +} + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // { "foo": 0, "bar": { "baz": "abc", "additional2": 2 } +``` + +If `removeAdditional` option in the example above were `"all"` then both `additional1` and `additional2` properties would have been removed. + +If the option were `"failing"` then property `additional1` would have been removed regardless of its value and property `additional2` would have been removed only if its value were failing the schema in the inner `additionalProperties` (so in the example above it would have stayed because it passes the schema, but any non-number would have been removed). + +__Please note__: If you use `removeAdditional` option with `additionalProperties` keyword inside `anyOf`/`oneOf` keywords your validation can fail with this schema, for example: + +```json +{ + "type": "object", + "oneOf": [ + { + "properties": { + "foo": { "type": "string" } + }, + "required": [ "foo" ], + "additionalProperties": false + }, + { + "properties": { + "bar": { "type": "integer" } + }, + "required": [ "bar" ], + "additionalProperties": false + } + ] +} +``` + +The intention of the schema above is to allow objects with either the string property "foo" or the integer property "bar", but not with both and not with any other properties. + +With the option `removeAdditional: true` the validation will pass for the object `{ "foo": "abc"}` but will fail for the object `{"bar": 1}`. It happens because while the first subschema in `oneOf` is validated, the property `bar` is removed because it is an additional property according to the standard (because it is not included in `properties` keyword in the same schema). + +While this behaviour is unexpected (issues [#129](https://github.com/epoberezkin/ajv/issues/129), [#134](https://github.com/epoberezkin/ajv/issues/134)), it is correct. To have the expected behaviour (both objects are allowed and additional properties are removed) the schema has to be refactored in this way: + +```json +{ + "type": "object", + "properties": { + "foo": { "type": "string" }, + "bar": { "type": "integer" } + }, + "additionalProperties": false, + "oneOf": [ + { "required": [ "foo" ] }, + { "required": [ "bar" ] } + ] +} +``` + +The schema above is also more efficient - it will compile into a faster function. + + +## Assigning defaults + +With [option `useDefaults`](#options) Ajv will assign values from `default` keyword in the schemas of `properties` and `items` (when it is the array of schemas) to the missing properties and items. + +With the option value `"empty"` properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults. + +This option modifies original data. + +__Please note__: the default value is inserted in the generated validation code as a literal, so the value inserted in the data will be the deep clone of the default in the schema. + + +Example 1 (`default` in `properties`): + +```javascript +var ajv = new Ajv({ useDefaults: true }); +var schema = { + "type": "object", + "properties": { + "foo": { "type": "number" }, + "bar": { "type": "string", "default": "baz" } + }, + "required": [ "foo", "bar" ] +}; + +var data = { "foo": 1 }; + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // { "foo": 1, "bar": "baz" } +``` + +Example 2 (`default` in `items`): + +```javascript +var schema = { + "type": "array", + "items": [ + { "type": "number" }, + { "type": "string", "default": "foo" } + ] +} + +var data = [ 1 ]; + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // [ 1, "foo" ] +``` + +`default` keywords in other cases are ignored: + +- not in `properties` or `items` subschemas +- in schemas inside `anyOf`, `oneOf` and `not` (see [#42](https://github.com/epoberezkin/ajv/issues/42)) +- in `if` subschema of `switch` keyword +- in schemas generated by custom macro keywords + +The [`strictDefaults` option](#options) customizes Ajv's behavior for the defaults that Ajv ignores (`true` raises an error, and `"log"` outputs a warning). + + +## Coercing data types + +When you are validating user inputs all your data properties are usually strings. The option `coerceTypes` allows you to have your data types coerced to the types specified in your schema `type` keywords, both to pass the validation and to use the correctly typed data afterwards. + +This option modifies original data. + +__Please note__: if you pass a scalar value to the validating function its type will be coerced and it will pass the validation, but the value of the variable you pass won't be updated because scalars are passed by value. + + +Example 1: + +```javascript +var ajv = new Ajv({ coerceTypes: true }); +var schema = { + "type": "object", + "properties": { + "foo": { "type": "number" }, + "bar": { "type": "boolean" } + }, + "required": [ "foo", "bar" ] +}; + +var data = { "foo": "1", "bar": "false" }; + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // { "foo": 1, "bar": false } +``` + +Example 2 (array coercions): + +```javascript +var ajv = new Ajv({ coerceTypes: 'array' }); +var schema = { + "properties": { + "foo": { "type": "array", "items": { "type": "number" } }, + "bar": { "type": "boolean" } + } +}; + +var data = { "foo": "1", "bar": ["false"] }; + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // { "foo": [1], "bar": false } +``` + +The coercion rules, as you can see from the example, are different from JavaScript both to validate user input as expected and to have the coercion reversible (to correctly validate cases where different types are defined in subschemas of "anyOf" and other compound keywords). + +See [Coercion rules](https://github.com/epoberezkin/ajv/blob/master/COERCION.md) for details. + + +## API + +##### new Ajv(Object options) -> Object + +Create Ajv instance. + + +##### .compile(Object schema) -> Function<Object data> + +Generate validating function and cache the compiled schema for future use. + +Validating function returns a boolean value. This function has properties `errors` and `schema`. Errors encountered during the last validation are assigned to `errors` property (it is assigned `null` if there was no errors). `schema` property contains the reference to the original schema. + +The schema passed to this method will be validated against meta-schema unless `validateSchema` option is false. If schema is invalid, an error will be thrown. See [options](#options). + + +##### .compileAsync(Object schema [, Boolean meta] [, Function callback]) -> Promise + +Asynchronous version of `compile` method that loads missing remote schemas using asynchronous function in `options.loadSchema`. This function returns a Promise that resolves to a validation function. An optional callback passed to `compileAsync` will be called with 2 parameters: error (or null) and validating function. The returned promise will reject (and the callback will be called with an error) when: + +- missing schema can't be loaded (`loadSchema` returns a Promise that rejects). +- a schema containing a missing reference is loaded, but the reference cannot be resolved. +- schema (or some loaded/referenced schema) is invalid. + +The function compiles schema and loads the first missing schema (or meta-schema) until all missing schemas are loaded. + +You can asynchronously compile meta-schema by passing `true` as the second parameter. + +See example in [Asynchronous compilation](#asynchronous-schema-compilation). + + +##### .validate(Object schema|String key|String ref, data) -> Boolean + +Validate data using passed schema (it will be compiled and cached). + +Instead of the schema you can use the key that was previously passed to `addSchema`, the schema id if it was present in the schema or any previously resolved reference. + +Validation errors will be available in the `errors` property of Ajv instance (`null` if there were no errors). + +__Please note__: every time this method is called the errors are overwritten so you need to copy them to another variable if you want to use them later. + +If the schema is asynchronous (has `$async` keyword on the top level) this method returns a Promise. See [Asynchronous validation](#asynchronous-validation). + + +##### .addSchema(Array<Object>|Object schema [, String key]) -> Ajv + +Add schema(s) to validator instance. This method does not compile schemas (but it still validates them). Because of that dependencies can be added in any order and circular dependencies are supported. It also prevents unnecessary compilation of schemas that are containers for other schemas but not used as a whole. + +Array of schemas can be passed (schemas should have ids), the second parameter will be ignored. + +Key can be passed that can be used to reference the schema and will be used as the schema id if there is no id inside the schema. If the key is not passed, the schema id will be used as the key. + + +Once the schema is added, it (and all the references inside it) can be referenced in other schemas and used to validate data. + +Although `addSchema` does not compile schemas, explicit compilation is not required - the schema will be compiled when it is used first time. + +By default the schema is validated against meta-schema before it is added, and if the schema does not pass validation the exception is thrown. This behaviour is controlled by `validateSchema` option. + +__Please note__: Ajv uses the [method chaining syntax](https://en.wikipedia.org/wiki/Method_chaining) for all methods with the prefix `add*` and `remove*`. +This allows you to do nice things like the following. + +```javascript +var validate = new Ajv().addSchema(schema).addFormat(name, regex).getSchema(uri); +``` + +##### .addMetaSchema(Array<Object>|Object schema [, String key]) -> Ajv + +Adds meta schema(s) that can be used to validate other schemas. That function should be used instead of `addSchema` because there may be instance options that would compile a meta schema incorrectly (at the moment it is `removeAdditional` option). + +There is no need to explicitly add draft-07 meta schema (http://json-schema.org/draft-07/schema) - it is added by default, unless option `meta` is set to `false`. You only need to use it if you have a changed meta-schema that you want to use to validate your schemas. See `validateSchema`. + + +##### .validateSchema(Object schema) -> Boolean + +Validates schema. This method should be used to validate schemas rather than `validate` due to the inconsistency of `uri` format in JSON Schema standard. + +By default this method is called automatically when the schema is added, so you rarely need to use it directly. + +If schema doesn't have `$schema` property, it is validated against draft 6 meta-schema (option `meta` should not be false). + +If schema has `$schema` property, then the schema with this id (that should be previously added) is used to validate passed schema. + +Errors will be available at `ajv.errors`. + + +##### .getSchema(String key) -> Function<Object data> + +Retrieve compiled schema previously added with `addSchema` by the key passed to `addSchema` or by its full reference (id). The returned validating function has `schema` property with the reference to the original schema. + + +##### .removeSchema([Object schema|String key|String ref|RegExp pattern]) -> Ajv + +Remove added/cached schema. Even if schema is referenced by other schemas it can be safely removed as dependent schemas have local references. + +Schema can be removed using: +- key passed to `addSchema` +- it's full reference (id) +- RegExp that should match schema id or key (meta-schemas won't be removed) +- actual schema object that will be stable-stringified to remove schema from cache + +If no parameter is passed all schemas but meta-schemas will be removed and the cache will be cleared. + + +##### .addFormat(String name, String|RegExp|Function|Object format) -> Ajv + +Add custom format to validate strings or numbers. It can also be used to replace pre-defined formats for Ajv instance. + +Strings are converted to RegExp. + +Function should return validation result as `true` or `false`. + +If object is passed it should have properties `validate`, `compare` and `async`: + +- _validate_: a string, RegExp or a function as described above. +- _compare_: an optional comparison function that accepts two strings and compares them according to the format meaning. This function is used with keywords `formatMaximum`/`formatMinimum` (defined in [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package). It should return `1` if the first value is bigger than the second value, `-1` if it is smaller and `0` if it is equal. +- _async_: an optional `true` value if `validate` is an asynchronous function; in this case it should return a promise that resolves with a value `true` or `false`. +- _type_: an optional type of data that the format applies to. It can be `"string"` (default) or `"number"` (see https://github.com/epoberezkin/ajv/issues/291#issuecomment-259923858). If the type of data is different, the validation will pass. + +Custom formats can be also added via `formats` option. + + +##### .addKeyword(String keyword, Object definition) -> Ajv + +Add custom validation keyword to Ajv instance. + +Keyword should be different from all standard JSON Schema keywords and different from previously defined keywords. There is no way to redefine keywords or to remove keyword definition from the instance. + +Keyword must start with a letter, `_` or `$`, and may continue with letters, numbers, `_`, `$`, or `-`. +It is recommended to use an application-specific prefix for keywords to avoid current and future name collisions. + +Example Keywords: +- `"xyz-example"`: valid, and uses prefix for the xyz project to avoid name collisions. +- `"example"`: valid, but not recommended as it could collide with future versions of JSON Schema etc. +- `"3-example"`: invalid as numbers are not allowed to be the first character in a keyword + +Keyword definition is an object with the following properties: + +- _type_: optional string or array of strings with data type(s) that the keyword applies to. If not present, the keyword will apply to all types. +- _validate_: validating function +- _compile_: compiling function +- _macro_: macro function +- _inline_: compiling function that returns code (as string) +- _schema_: an optional `false` value used with "validate" keyword to not pass schema +- _metaSchema_: an optional meta-schema for keyword schema +- _dependencies_: an optional list of properties that must be present in the parent schema - it will be checked during schema compilation +- _modifying_: `true` MUST be passed if keyword modifies data +- _statements_: `true` can be passed in case inline keyword generates statements (as opposed to expression) +- _valid_: pass `true`/`false` to pre-define validation result, the result returned from validation function will be ignored. This option cannot be used with macro keywords. +- _$data_: an optional `true` value to support [$data reference](#data-reference) as the value of custom keyword. The reference will be resolved at validation time. If the keyword has meta-schema it would be extended to allow $data and it will be used to validate the resolved value. Supporting $data reference requires that keyword has validating function (as the only option or in addition to compile, macro or inline function). +- _async_: an optional `true` value if the validation function is asynchronous (whether it is compiled or passed in _validate_ property); in this case it should return a promise that resolves with a value `true` or `false`. This option is ignored in case of "macro" and "inline" keywords. +- _errors_: an optional boolean or string `"full"` indicating whether keyword returns errors. If this property is not set Ajv will determine if the errors were set in case of failed validation. + +_compile_, _macro_ and _inline_ are mutually exclusive, only one should be used at a time. _validate_ can be used separately or in addition to them to support $data reference. + +__Please note__: If the keyword is validating data type that is different from the type(s) in its definition, the validation function will not be called (and expanded macro will not be used), so there is no need to check for data type inside validation function or inside schema returned by macro function (unless you want to enforce a specific type and for some reason do not want to use a separate `type` keyword for that). In the same way as standard keywords work, if the keyword does not apply to the data type being validated, the validation of this keyword will succeed. + +See [Defining custom keywords](#defining-custom-keywords) for more details. + + +##### .getKeyword(String keyword) -> Object|Boolean + +Returns custom keyword definition, `true` for pre-defined keywords and `false` if the keyword is unknown. + + +##### .removeKeyword(String keyword) -> Ajv + +Removes custom or pre-defined keyword so you can redefine them. + +While this method can be used to extend pre-defined keywords, it can also be used to completely change their meaning - it may lead to unexpected results. + +__Please note__: schemas compiled before the keyword is removed will continue to work without changes. To recompile schemas use `removeSchema` method and compile them again. + + +##### .errorsText([Array<Object> errors [, Object options]]) -> String + +Returns the text with all errors in a String. + +Options can have properties `separator` (string used to separate errors, ", " by default) and `dataVar` (the variable name that dataPaths are prefixed with, "data" by default). + + +## Options + +Defaults: + +```javascript +{ + // validation and reporting options: + $data: false, + allErrors: false, + verbose: false, + $comment: false, // NEW in Ajv version 6.0 + jsonPointers: false, + uniqueItems: true, + unicode: true, + nullable: false, + format: 'fast', + formats: {}, + unknownFormats: true, + schemas: {}, + logger: undefined, + // referenced schema options: + schemaId: '$id', + missingRefs: true, + extendRefs: 'ignore', // recommended 'fail' + loadSchema: undefined, // function(uri: string): Promise {} + // options to modify validated data: + removeAdditional: false, + useDefaults: false, + coerceTypes: false, + // strict mode options + strictDefaults: false, + strictKeywords: false, + // asynchronous validation options: + transpile: undefined, // requires ajv-async package + // advanced options: + meta: true, + validateSchema: true, + addUsedSchema: true, + inlineRefs: true, + passContext: false, + loopRequired: Infinity, + ownProperties: false, + multipleOfPrecision: false, + errorDataPath: 'object', // deprecated + messages: true, + sourceCode: false, + processCode: undefined, // function (str: string): string {} + cache: new Cache, + serialize: undefined +} +``` + +##### Validation and reporting options + +- _$data_: support [$data references](#data-reference). Draft 6 meta-schema that is added by default will be extended to allow them. If you want to use another meta-schema you need to use $dataMetaSchema method to add support for $data reference. See [API](#api). +- _allErrors_: check all rules collecting all errors. Default is to return after the first error. +- _verbose_: include the reference to the part of the schema (`schema` and `parentSchema`) and validated data in errors (false by default). +- _$comment_ (NEW in Ajv version 6.0): log or pass the value of `$comment` keyword to a function. Option values: + - `false` (default): ignore $comment keyword. + - `true`: log the keyword value to console. + - function: pass the keyword value, its schema path and root schema to the specified function +- _jsonPointers_: set `dataPath` property of errors using [JSON Pointers](https://tools.ietf.org/html/rfc6901) instead of JavaScript property access notation. +- _uniqueItems_: validate `uniqueItems` keyword (true by default). +- _unicode_: calculate correct length of strings with unicode pairs (true by default). Pass `false` to use `.length` of strings that is faster, but gives "incorrect" lengths of strings with unicode pairs - each unicode pair is counted as two characters. +- _nullable_: support keyword "nullable" from [Open API 3 specification](https://swagger.io/docs/specification/data-models/data-types/). +- _format_: formats validation mode. Option values: + - `"fast"` (default) - simplified and fast validation (see [Formats](#formats) for details of which formats are available and affected by this option). + - `"full"` - more restrictive and slow validation. E.g., 25:00:00 and 2015/14/33 will be invalid time and date in 'full' mode but it will be valid in 'fast' mode. + - `false` - ignore all format keywords. +- _formats_: an object with custom formats. Keys and values will be passed to `addFormat` method. +- _unknownFormats_: handling of unknown formats. Option values: + - `true` (default) - if an unknown format is encountered the exception is thrown during schema compilation. If `format` keyword value is [$data reference](#data-reference) and it is unknown the validation will fail. + - `[String]` - an array of unknown format names that will be ignored. This option can be used to allow usage of third party schemas with format(s) for which you don't have definitions, but still fail if another unknown format is used. If `format` keyword value is [$data reference](#data-reference) and it is not in this array the validation will fail. + - `"ignore"` - to log warning during schema compilation and always pass validation (the default behaviour in versions before 5.0.0). This option is not recommended, as it allows to mistype format name and it won't be validated without any error message. This behaviour is required by JSON Schema specification. +- _schemas_: an array or object of schemas that will be added to the instance. In case you pass the array the schemas must have IDs in them. When the object is passed the method `addSchema(value, key)` will be called for each schema in this object. +- _logger_: sets the logging method. Default is the global `console` object that should have methods `log`, `warn` and `error`. Option values: + - custom logger - it should have methods `log`, `warn` and `error`. If any of these methods is missing an exception will be thrown. + - `false` - logging is disabled. + + +##### Referenced schema options + +- _schemaId_: this option defines which keywords are used as schema URI. Option value: + - `"$id"` (default) - only use `$id` keyword as schema URI (as specified in JSON Schema draft-06/07), ignore `id` keyword (if it is present a warning will be logged). + - `"id"` - only use `id` keyword as schema URI (as specified in JSON Schema draft-04), ignore `$id` keyword (if it is present a warning will be logged). + - `"auto"` - use both `$id` and `id` keywords as schema URI. If both are present (in the same schema object) and different the exception will be thrown during schema compilation. +- _missingRefs_: handling of missing referenced schemas. Option values: + - `true` (default) - if the reference cannot be resolved during compilation the exception is thrown. The thrown error has properties `missingRef` (with hash fragment) and `missingSchema` (without it). Both properties are resolved relative to the current base id (usually schema id, unless it was substituted). + - `"ignore"` - to log error during compilation and always pass validation. + - `"fail"` - to log error and successfully compile schema but fail validation if this rule is checked. +- _extendRefs_: validation of other keywords when `$ref` is present in the schema. Option values: + - `"ignore"` (default) - when `$ref` is used other keywords are ignored (as per [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03#section-3) standard). A warning will be logged during the schema compilation. + - `"fail"` (recommended) - if other validation keywords are used together with `$ref` the exception will be thrown when the schema is compiled. This option is recommended to make sure schema has no keywords that are ignored, which can be confusing. + - `true` - validate all keywords in the schemas with `$ref` (the default behaviour in versions before 5.0.0). +- _loadSchema_: asynchronous function that will be used to load remote schemas when `compileAsync` [method](#api-compileAsync) is used and some reference is missing (option `missingRefs` should NOT be 'fail' or 'ignore'). This function should accept remote schema uri as a parameter and return a Promise that resolves to a schema. See example in [Asynchronous compilation](#asynchronous-schema-compilation). + + +##### Options to modify validated data + +- _removeAdditional_: remove additional properties - see example in [Filtering data](#filtering-data). This option is not used if schema is added with `addMetaSchema` method. Option values: + - `false` (default) - not to remove additional properties + - `"all"` - all additional properties are removed, regardless of `additionalProperties` keyword in schema (and no validation is made for them). + - `true` - only additional properties with `additionalProperties` keyword equal to `false` are removed. + - `"failing"` - additional properties that fail schema validation will be removed (where `additionalProperties` keyword is `false` or schema). +- _useDefaults_: replace missing or undefined properties and items with the values from corresponding `default` keywords. Default behaviour is to ignore `default` keywords. This option is not used if schema is added with `addMetaSchema` method. See examples in [Assigning defaults](#assigning-defaults). Option values: + - `false` (default) - do not use defaults + - `true` - insert defaults by value (object literal is used). + - `"empty"` - in addition to missing or undefined, use defaults for properties and items that are equal to `null` or `""` (an empty string). + - `"shared"` (deprecated) - insert defaults by reference. If the default is an object, it will be shared by all instances of validated data. If you modify the inserted default in the validated data, it will be modified in the schema as well. +- _coerceTypes_: change data type of data to match `type` keyword. See the example in [Coercing data types](#coercing-data-types) and [coercion rules](https://github.com/epoberezkin/ajv/blob/master/COERCION.md). Option values: + - `false` (default) - no type coercion. + - `true` - coerce scalar data types. + - `"array"` - in addition to coercions between scalar types, coerce scalar data to an array with one element and vice versa (as required by the schema). + + +##### Strict mode options + +- _strictDefaults_: report ignored `default` keywords in schemas. Option values: + - `false` (default) - ignored defaults are not reported + - `true` - if an ignored default is present, throw an error + - `"log"` - if an ignored default is present, log warning +- _strictKeywords_: report unknown keywords in schemas. Option values: + - `false` (default) - unknown keywords are not reported + - `true` - if an unknown keyword is present, throw an error + - `"log"` - if an unknown keyword is present, log warning + + +##### Asynchronous validation options + +- _transpile_: Requires [ajv-async](https://github.com/epoberezkin/ajv-async) package. It determines whether Ajv transpiles compiled asynchronous validation function. Option values: + - `undefined` (default) - transpile with [nodent](https://github.com/MatAtBread/nodent) if async functions are not supported. + - `true` - always transpile with nodent. + - `false` - do not transpile; if async functions are not supported an exception will be thrown. + + +##### Advanced options + +- _meta_: add [meta-schema](http://json-schema.org/documentation.html) so it can be used by other schemas (true by default). If an object is passed, it will be used as the default meta-schema for schemas that have no `$schema` keyword. This default meta-schema MUST have `$schema` keyword. +- _validateSchema_: validate added/compiled schemas against meta-schema (true by default). `$schema` property in the schema can be http://json-schema.org/draft-07/schema or absent (draft-07 meta-schema will be used) or can be a reference to the schema previously added with `addMetaSchema` method. Option values: + - `true` (default) - if the validation fails, throw the exception. + - `"log"` - if the validation fails, log error. + - `false` - skip schema validation. +- _addUsedSchema_: by default methods `compile` and `validate` add schemas to the instance if they have `$id` (or `id`) property that doesn't start with "#". If `$id` is present and it is not unique the exception will be thrown. Set this option to `false` to skip adding schemas to the instance and the `$id` uniqueness check when these methods are used. This option does not affect `addSchema` method. +- _inlineRefs_: Affects compilation of referenced schemas. Option values: + - `true` (default) - the referenced schemas that don't have refs in them are inlined, regardless of their size - that substantially improves performance at the cost of the bigger size of compiled schema functions. + - `false` - to not inline referenced schemas (they will be compiled as separate functions). + - integer number - to limit the maximum number of keywords of the schema that will be inlined. +- _passContext_: pass validation context to custom keyword functions. If this option is `true` and you pass some context to the compiled validation function with `validate.call(context, data)`, the `context` will be available as `this` in your custom keywords. By default `this` is Ajv instance. +- _loopRequired_: by default `required` keyword is compiled into a single expression (or a sequence of statements in `allErrors` mode). In case of a very large number of properties in this keyword it may result in a very big validation function. Pass integer to set the number of properties above which `required` keyword will be validated in a loop - smaller validation function size but also worse performance. +- _ownProperties_: by default Ajv iterates over all enumerable object properties; when this option is `true` only own enumerable object properties (i.e. found directly on the object rather than on its prototype) are iterated. Contributed by @mbroadst. +- _multipleOfPrecision_: by default `multipleOf` keyword is validated by comparing the result of division with parseInt() of that result. It works for dividers that are bigger than 1. For small dividers such as 0.01 the result of the division is usually not integer (even when it should be integer, see issue [#84](https://github.com/epoberezkin/ajv/issues/84)). If you need to use fractional dividers set this option to some positive integer N to have `multipleOf` validated using this formula: `Math.abs(Math.round(division) - division) < 1e-N` (it is slower but allows for float arithmetics deviations). +- _errorDataPath_ (deprecated): set `dataPath` to point to 'object' (default) or to 'property' when validating keywords `required`, `additionalProperties` and `dependencies`. +- _messages_: Include human-readable messages in errors. `true` by default. `false` can be passed when custom messages are used (e.g. with [ajv-i18n](https://github.com/epoberezkin/ajv-i18n)). +- _sourceCode_: add `sourceCode` property to validating function (for debugging; this code can be different from the result of toString call). +- _processCode_: an optional function to process generated code before it is passed to Function constructor. It can be used to either beautify (the validating function is generated without line-breaks) or to transpile code. Starting from version 5.0.0 this option replaced options: + - `beautify` that formatted the generated function using [js-beautify](https://github.com/beautify-web/js-beautify). If you want to beautify the generated code pass `require('js-beautify').js_beautify`. + - `transpile` that transpiled asynchronous validation function. You can still use `transpile` option with [ajv-async](https://github.com/epoberezkin/ajv-async) package. See [Asynchronous validation](#asynchronous-validation) for more information. +- _cache_: an optional instance of cache to store compiled schemas using stable-stringified schema as a key. For example, set-associative cache [sacjs](https://github.com/epoberezkin/sacjs) can be used. If not passed then a simple hash is used which is good enough for the common use case (a limited number of statically defined schemas). Cache should have methods `put(key, value)`, `get(key)`, `del(key)` and `clear()`. +- _serialize_: an optional function to serialize schema to cache key. Pass `false` to use schema itself as a key (e.g., if WeakMap used as a cache). By default [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used. + + +## Validation errors + +In case of validation failure, Ajv assigns the array of errors to `errors` property of validation function (or to `errors` property of Ajv instance when `validate` or `validateSchema` methods were called). In case of [asynchronous validation](#asynchronous-validation), the returned promise is rejected with exception `Ajv.ValidationError` that has `errors` property. + + +### Error objects + +Each error is an object with the following properties: + +- _keyword_: validation keyword. +- _dataPath_: the path to the part of the data that was validated. By default `dataPath` uses JavaScript property access notation (e.g., `".prop[1].subProp"`). When the option `jsonPointers` is true (see [Options](#options)) `dataPath` will be set using JSON pointer standard (e.g., `"/prop/1/subProp"`). +- _schemaPath_: the path (JSON-pointer as a URI fragment) to the schema of the keyword that failed validation. +- _params_: the object with the additional information about error that can be used to create custom error messages (e.g., using [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) package). See below for parameters set by all keywords. +- _message_: the standard error message (can be excluded with option `messages` set to false). +- _schema_: the schema of the keyword (added with `verbose` option). +- _parentSchema_: the schema containing the keyword (added with `verbose` option) +- _data_: the data validated by the keyword (added with `verbose` option). + +__Please note__: `propertyNames` keyword schema validation errors have an additional property `propertyName`, `dataPath` points to the object. After schema validation for each property name, if it is invalid an additional error is added with the property `keyword` equal to `"propertyNames"`. + + +### Error parameters + +Properties of `params` object in errors depend on the keyword that failed validation. + +- `maxItems`, `minItems`, `maxLength`, `minLength`, `maxProperties`, `minProperties` - property `limit` (number, the schema of the keyword). +- `additionalItems` - property `limit` (the maximum number of allowed items in case when `items` keyword is an array of schemas and `additionalItems` is false). +- `additionalProperties` - property `additionalProperty` (the property not used in `properties` and `patternProperties` keywords). +- `dependencies` - properties: + - `property` (dependent property), + - `missingProperty` (required missing dependency - only the first one is reported currently) + - `deps` (required dependencies, comma separated list as a string), + - `depsCount` (the number of required dependencies). +- `format` - property `format` (the schema of the keyword). +- `maximum`, `minimum` - properties: + - `limit` (number, the schema of the keyword), + - `exclusive` (boolean, the schema of `exclusiveMaximum` or `exclusiveMinimum`), + - `comparison` (string, comparison operation to compare the data to the limit, with the data on the left and the limit on the right; can be "<", "<=", ">", ">=") +- `multipleOf` - property `multipleOf` (the schema of the keyword) +- `pattern` - property `pattern` (the schema of the keyword) +- `required` - property `missingProperty` (required property that is missing). +- `propertyNames` - property `propertyName` (an invalid property name). +- `patternRequired` (in ajv-keywords) - property `missingPattern` (required pattern that did not match any property). +- `type` - property `type` (required type(s), a string, can be a comma-separated list) +- `uniqueItems` - properties `i` and `j` (indices of duplicate items). +- `const` - property `allowedValue` pointing to the value (the schema of the keyword). +- `enum` - property `allowedValues` pointing to the array of values (the schema of the keyword). +- `$ref` - property `ref` with the referenced schema URI. +- `oneOf` - property `passingSchemas` (array of indices of passing schemas, null if no schema passes). +- custom keywords (in case keyword definition doesn't create errors) - property `keyword` (the keyword name). + + +## Plugins + +Ajv can be extended with plugins that add custom keywords, formats or functions to process generated code. When such plugin is published as npm package it is recommended that it follows these conventions: + +- it exports a function +- this function accepts ajv instance as the first parameter and returns the same instance to allow chaining +- this function can accept an optional configuration as the second parameter + +If you have published a useful plugin please submit a PR to add it to the next section. + + +## Related packages + +- [ajv-async](https://github.com/epoberezkin/ajv-async) - plugin to configure async validation mode +- [ajv-bsontype](https://github.com/BoLaMN/ajv-bsontype) - plugin to validate mongodb's bsonType formats +- [ajv-cli](https://github.com/jessedc/ajv-cli) - command line interface +- [ajv-errors](https://github.com/epoberezkin/ajv-errors) - plugin for custom error messages +- [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) - internationalised error messages +- [ajv-istanbul](https://github.com/epoberezkin/ajv-istanbul) - plugin to instrument generated validation code to measure test coverage of your schemas +- [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) - plugin with custom validation keywords (select, typeof, etc.) +- [ajv-merge-patch](https://github.com/epoberezkin/ajv-merge-patch) - plugin with keywords $merge and $patch +- [ajv-pack](https://github.com/epoberezkin/ajv-pack) - produces a compact module exporting validation functions + + +## Some packages using Ajv + +- [webpack](https://github.com/webpack/webpack) - a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser +- [jsonscript-js](https://github.com/JSONScript/jsonscript-js) - the interpreter for [JSONScript](http://www.jsonscript.org) - scripted processing of existing endpoints and services +- [osprey-method-handler](https://github.com/mulesoft-labs/osprey-method-handler) - Express middleware for validating requests and responses based on a RAML method object, used in [osprey](https://github.com/mulesoft/osprey) - validating API proxy generated from a RAML definition +- [har-validator](https://github.com/ahmadnassri/har-validator) - HTTP Archive (HAR) validator +- [jsoneditor](https://github.com/josdejong/jsoneditor) - a web-based tool to view, edit, format, and validate JSON http://jsoneditoronline.org +- [JSON Schema Lint](https://github.com/nickcmaynard/jsonschemalint) - a web tool to validate JSON/YAML document against a single JSON Schema http://jsonschemalint.com +- [objection](https://github.com/vincit/objection.js) - SQL-friendly ORM for Node.js +- [table](https://github.com/gajus/table) - formats data into a string table +- [ripple-lib](https://github.com/ripple/ripple-lib) - a JavaScript API for interacting with [Ripple](https://ripple.com) in Node.js and the browser +- [restbase](https://github.com/wikimedia/restbase) - distributed storage with REST API & dispatcher for backend services built to provide a low-latency & high-throughput API for Wikipedia / Wikimedia content +- [hippie-swagger](https://github.com/CacheControl/hippie-swagger) - [Hippie](https://github.com/vesln/hippie) wrapper that provides end to end API testing with swagger validation +- [react-form-controlled](https://github.com/seeden/react-form-controlled) - React controlled form components with validation +- [rabbitmq-schema](https://github.com/tjmehta/rabbitmq-schema) - a schema definition module for RabbitMQ graphs and messages +- [@query/schema](https://www.npmjs.com/package/@query/schema) - stream filtering with a URI-safe query syntax parsing to JSON Schema +- [chai-ajv-json-schema](https://github.com/peon374/chai-ajv-json-schema) - chai plugin to us JSON Schema with expect in mocha tests +- [grunt-jsonschema-ajv](https://github.com/SignpostMarv/grunt-jsonschema-ajv) - Grunt plugin for validating files against JSON Schema +- [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) - extract text from bundle into a file +- [electron-builder](https://github.com/electron-userland/electron-builder) - a solution to package and build a ready for distribution Electron app +- [addons-linter](https://github.com/mozilla/addons-linter) - Mozilla Add-ons Linter +- [gh-pages-generator](https://github.com/epoberezkin/gh-pages-generator) - multi-page site generator converting markdown files to GitHub pages +- [ESLint](https://github.com/eslint/eslint) - the pluggable linting utility for JavaScript and JSX + + +## Tests + +``` +npm install +git submodule update --init +npm test +``` + +## Contributing + +All validation functions are generated using doT templates in [dot](https://github.com/epoberezkin/ajv/tree/master/lib/dot) folder. Templates are precompiled so doT is not a run-time dependency. + +`npm run build` - compiles templates to [dotjs](https://github.com/epoberezkin/ajv/tree/master/lib/dotjs) folder. + +`npm run watch` - automatically compiles templates when files in dot folder change + +Please see [Contributing guidelines](https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md) + + +## Changes history + +See https://github.com/epoberezkin/ajv/releases + +__Please note__: [Changes in version 6.0.0](https://github.com/epoberezkin/ajv/releases/tag/v6.0.0). + +[Version 5.0.0](https://github.com/epoberezkin/ajv/releases/tag/5.0.0). + +[Version 4.0.0](https://github.com/epoberezkin/ajv/releases/tag/4.0.0). + +[Version 3.0.0](https://github.com/epoberezkin/ajv/releases/tag/3.0.0). + +[Version 2.0.0](https://github.com/epoberezkin/ajv/releases/tag/2.0.0). + + +## Open-source software support + +Ajv is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers. + + +## License + +[MIT](https://github.com/epoberezkin/ajv/blob/master/LICENSE) diff --git a/nodered/rootfs/data/node_modules/ajv/dist/ajv.bundle.js b/nodered/rootfs/data/node_modules/ajv/dist/ajv.bundle.js new file mode 100644 index 0000000..a6afe99 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/dist/ajv.bundle.js @@ -0,0 +1,7172 @@ +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Ajv = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; +// For the source: https://gist.github.com/dperini/729294 +// For test cases: https://mathiasbynens.be/demo/url-regex +// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983. +// var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; +var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i; +var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; +var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/; +var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; +var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; + + +module.exports = formats; + +function formats(mode) { + mode = mode == 'full' ? 'full' : 'fast'; + return util.copy(formats[mode]); +} + + +formats.fast = { + // date: http://tools.ietf.org/html/rfc3339#section-5.6 + date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, + // date-time: http://tools.ietf.org/html/rfc3339#section-5.6 + time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i, + 'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i, + // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js + uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i, + 'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, + 'uri-template': URITEMPLATE, + url: URL, + // email (sources from jsen validator): + // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363 + // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation') + email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, + hostname: HOSTNAME, + // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html + ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, + // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses + ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, + regex: regex, + // uuid: http://tools.ietf.org/html/rfc4122 + uuid: UUID, + // JSON-pointer: https://tools.ietf.org/html/rfc6901 + // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A + 'json-pointer': JSON_POINTER, + 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, + // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00 + 'relative-json-pointer': RELATIVE_JSON_POINTER +}; + + +formats.full = { + date: date, + time: time, + 'date-time': date_time, + uri: uri, + 'uri-reference': URIREF, + 'uri-template': URITEMPLATE, + url: URL, + email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, + hostname: hostname, + ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, + ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, + regex: regex, + uuid: UUID, + 'json-pointer': JSON_POINTER, + 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, + 'relative-json-pointer': RELATIVE_JSON_POINTER +}; + + +function isLeapYear(year) { + // https://tools.ietf.org/html/rfc3339#appendix-C + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); +} + + +function date(str) { + // full-date from http://tools.ietf.org/html/rfc3339#section-5.6 + var matches = str.match(DATE); + if (!matches) return false; + + var year = +matches[1]; + var month = +matches[2]; + var day = +matches[3]; + + return month >= 1 && month <= 12 && day >= 1 && + day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]); +} + + +function time(str, full) { + var matches = str.match(TIME); + if (!matches) return false; + + var hour = matches[1]; + var minute = matches[2]; + var second = matches[3]; + var timeZone = matches[5]; + return ((hour <= 23 && minute <= 59 && second <= 59) || + (hour == 23 && minute == 59 && second == 60)) && + (!full || timeZone); +} + + +var DATE_TIME_SEPARATOR = /t|\s/i; +function date_time(str) { + // http://tools.ietf.org/html/rfc3339#section-5.6 + var dateTime = str.split(DATE_TIME_SEPARATOR); + return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true); +} + + +function hostname(str) { + // https://tools.ietf.org/html/rfc1034#section-3.5 + // https://tools.ietf.org/html/rfc1123#section-2 + return str.length <= 255 && HOSTNAME.test(str); +} + + +var NOT_URI_FRAGMENT = /\/|:/; +function uri(str) { + // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "." + return NOT_URI_FRAGMENT.test(str) && URI.test(str); +} + + +var Z_ANCHOR = /[^\\]\\Z/; +function regex(str) { + if (Z_ANCHOR.test(str)) return false; + try { + new RegExp(str); + return true; + } catch(e) { + return false; + } +} + +},{"./util":10}],5:[function(require,module,exports){ +'use strict'; + +var resolve = require('./resolve') + , util = require('./util') + , errorClasses = require('./error_classes') + , stableStringify = require('fast-json-stable-stringify'); + +var validateGenerator = require('../dotjs/validate'); + +/** + * Functions below are used inside compiled validations function + */ + +var ucs2length = util.ucs2length; +var equal = require('fast-deep-equal'); + +// this error is thrown by async schemas to return validation errors via exception +var ValidationError = errorClasses.Validation; + +module.exports = compile; + + +/** + * Compiles schema to validation function + * @this Ajv + * @param {Object} schema schema object + * @param {Object} root object with information about the root schema for this schema + * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution + * @param {String} baseId base ID for IDs in the schema + * @return {Function} validation function + */ +function compile(schema, root, localRefs, baseId) { + /* jshint validthis: true, evil: true */ + /* eslint no-shadow: 0 */ + var self = this + , opts = this._opts + , refVal = [ undefined ] + , refs = {} + , patterns = [] + , patternsHash = {} + , defaults = [] + , defaultsHash = {} + , customRules = []; + + root = root || { schema: schema, refVal: refVal, refs: refs }; + + var c = checkCompiling.call(this, schema, root, baseId); + var compilation = this._compilations[c.index]; + if (c.compiling) return (compilation.callValidate = callValidate); + + var formats = this._formats; + var RULES = this.RULES; + + try { + var v = localCompile(schema, root, localRefs, baseId); + compilation.validate = v; + var cv = compilation.callValidate; + if (cv) { + cv.schema = v.schema; + cv.errors = null; + cv.refs = v.refs; + cv.refVal = v.refVal; + cv.root = v.root; + cv.$async = v.$async; + if (opts.sourceCode) cv.source = v.source; + } + return v; + } finally { + endCompiling.call(this, schema, root, baseId); + } + + /* @this {*} - custom context, see passContext option */ + function callValidate() { + /* jshint validthis: true */ + var validate = compilation.validate; + var result = validate.apply(this, arguments); + callValidate.errors = validate.errors; + return result; + } + + function localCompile(_schema, _root, localRefs, baseId) { + var isRoot = !_root || (_root && _root.schema == _schema); + if (_root.schema != root.schema) + return compile.call(self, _schema, _root, localRefs, baseId); + + var $async = _schema.$async === true; + + var sourceCode = validateGenerator({ + isTop: true, + schema: _schema, + isRoot: isRoot, + baseId: baseId, + root: _root, + schemaPath: '', + errSchemaPath: '#', + errorPath: '""', + MissingRefError: errorClasses.MissingRef, + RULES: RULES, + validate: validateGenerator, + util: util, + resolve: resolve, + resolveRef: resolveRef, + usePattern: usePattern, + useDefault: useDefault, + useCustomRule: useCustomRule, + opts: opts, + formats: formats, + logger: self.logger, + self: self + }); + + sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode) + + vars(defaults, defaultCode) + vars(customRules, customRuleCode) + + sourceCode; + + if (opts.processCode) sourceCode = opts.processCode(sourceCode); + // console.log('\n\n\n *** \n', JSON.stringify(sourceCode)); + var validate; + try { + var makeValidate = new Function( + 'self', + 'RULES', + 'formats', + 'root', + 'refVal', + 'defaults', + 'customRules', + 'equal', + 'ucs2length', + 'ValidationError', + sourceCode + ); + + validate = makeValidate( + self, + RULES, + formats, + root, + refVal, + defaults, + customRules, + equal, + ucs2length, + ValidationError + ); + + refVal[0] = validate; + } catch(e) { + self.logger.error('Error compiling schema, function code:', sourceCode); + throw e; + } + + validate.schema = _schema; + validate.errors = null; + validate.refs = refs; + validate.refVal = refVal; + validate.root = isRoot ? validate : _root; + if ($async) validate.$async = true; + if (opts.sourceCode === true) { + validate.source = { + code: sourceCode, + patterns: patterns, + defaults: defaults + }; + } + + return validate; + } + + function resolveRef(baseId, ref, isRoot) { + ref = resolve.url(baseId, ref); + var refIndex = refs[ref]; + var _refVal, refCode; + if (refIndex !== undefined) { + _refVal = refVal[refIndex]; + refCode = 'refVal[' + refIndex + ']'; + return resolvedRef(_refVal, refCode); + } + if (!isRoot && root.refs) { + var rootRefId = root.refs[ref]; + if (rootRefId !== undefined) { + _refVal = root.refVal[rootRefId]; + refCode = addLocalRef(ref, _refVal); + return resolvedRef(_refVal, refCode); + } + } + + refCode = addLocalRef(ref); + var v = resolve.call(self, localCompile, root, ref); + if (v === undefined) { + var localSchema = localRefs && localRefs[ref]; + if (localSchema) { + v = resolve.inlineRef(localSchema, opts.inlineRefs) + ? localSchema + : compile.call(self, localSchema, root, localRefs, baseId); + } + } + + if (v === undefined) { + removeLocalRef(ref); + } else { + replaceLocalRef(ref, v); + return resolvedRef(v, refCode); + } + } + + function addLocalRef(ref, v) { + var refId = refVal.length; + refVal[refId] = v; + refs[ref] = refId; + return 'refVal' + refId; + } + + function removeLocalRef(ref) { + delete refs[ref]; + } + + function replaceLocalRef(ref, v) { + var refId = refs[ref]; + refVal[refId] = v; + } + + function resolvedRef(refVal, code) { + return typeof refVal == 'object' || typeof refVal == 'boolean' + ? { code: code, schema: refVal, inline: true } + : { code: code, $async: refVal && !!refVal.$async }; + } + + function usePattern(regexStr) { + var index = patternsHash[regexStr]; + if (index === undefined) { + index = patternsHash[regexStr] = patterns.length; + patterns[index] = regexStr; + } + return 'pattern' + index; + } + + function useDefault(value) { + switch (typeof value) { + case 'boolean': + case 'number': + return '' + value; + case 'string': + return util.toQuotedString(value); + case 'object': + if (value === null) return 'null'; + var valueStr = stableStringify(value); + var index = defaultsHash[valueStr]; + if (index === undefined) { + index = defaultsHash[valueStr] = defaults.length; + defaults[index] = value; + } + return 'default' + index; + } + } + + function useCustomRule(rule, schema, parentSchema, it) { + if (self._opts.validateSchema !== false) { + var deps = rule.definition.dependencies; + if (deps && !deps.every(function(keyword) { + return Object.prototype.hasOwnProperty.call(parentSchema, keyword); + })) + throw new Error('parent schema must have all required keywords: ' + deps.join(',')); + + var validateSchema = rule.definition.validateSchema; + if (validateSchema) { + var valid = validateSchema(schema); + if (!valid) { + var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors); + if (self._opts.validateSchema == 'log') self.logger.error(message); + else throw new Error(message); + } + } + } + + var compile = rule.definition.compile + , inline = rule.definition.inline + , macro = rule.definition.macro; + + var validate; + if (compile) { + validate = compile.call(self, schema, parentSchema, it); + } else if (macro) { + validate = macro.call(self, schema, parentSchema, it); + if (opts.validateSchema !== false) self.validateSchema(validate, true); + } else if (inline) { + validate = inline.call(self, it, rule.keyword, schema, parentSchema); + } else { + validate = rule.definition.validate; + if (!validate) return; + } + + if (validate === undefined) + throw new Error('custom keyword "' + rule.keyword + '"failed to compile'); + + var index = customRules.length; + customRules[index] = validate; + + return { + code: 'customRule' + index, + validate: validate + }; + } +} + + +/** + * Checks if the schema is currently compiled + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + * @return {Object} object with properties "index" (compilation index) and "compiling" (boolean) + */ +function checkCompiling(schema, root, baseId) { + /* jshint validthis: true */ + var index = compIndex.call(this, schema, root, baseId); + if (index >= 0) return { index: index, compiling: true }; + index = this._compilations.length; + this._compilations[index] = { + schema: schema, + root: root, + baseId: baseId + }; + return { index: index, compiling: false }; +} + + +/** + * Removes the schema from the currently compiled list + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + */ +function endCompiling(schema, root, baseId) { + /* jshint validthis: true */ + var i = compIndex.call(this, schema, root, baseId); + if (i >= 0) this._compilations.splice(i, 1); +} + + +/** + * Index of schema compilation in the currently compiled list + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + * @return {Integer} compilation index + */ +function compIndex(schema, root, baseId) { + /* jshint validthis: true */ + for (var i=0; i= 0xD800 && value <= 0xDBFF && pos < len) { + // high surrogate, and there is a next character + value = str.charCodeAt(pos); + if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate + } + } + return length; +}; + +},{}],10:[function(require,module,exports){ +'use strict'; + + +module.exports = { + copy: copy, + checkDataType: checkDataType, + checkDataTypes: checkDataTypes, + coerceToTypes: coerceToTypes, + toHash: toHash, + getProperty: getProperty, + escapeQuotes: escapeQuotes, + equal: require('fast-deep-equal'), + ucs2length: require('./ucs2length'), + varOccurences: varOccurences, + varReplace: varReplace, + cleanUpCode: cleanUpCode, + finalCleanUpCode: finalCleanUpCode, + schemaHasRules: schemaHasRules, + schemaHasRulesExcept: schemaHasRulesExcept, + schemaUnknownRules: schemaUnknownRules, + toQuotedString: toQuotedString, + getPathExpr: getPathExpr, + getPath: getPath, + getData: getData, + unescapeFragment: unescapeFragment, + unescapeJsonPointer: unescapeJsonPointer, + escapeFragment: escapeFragment, + escapeJsonPointer: escapeJsonPointer +}; + + +function copy(o, to) { + to = to || {}; + for (var key in o) to[key] = o[key]; + return to; +} + + +function checkDataType(dataType, data, negate) { + var EQUAL = negate ? ' !== ' : ' === ' + , AND = negate ? ' || ' : ' && ' + , OK = negate ? '!' : '' + , NOT = negate ? '' : '!'; + switch (dataType) { + case 'null': return data + EQUAL + 'null'; + case 'array': return OK + 'Array.isArray(' + data + ')'; + case 'object': return '(' + OK + data + AND + + 'typeof ' + data + EQUAL + '"object"' + AND + + NOT + 'Array.isArray(' + data + '))'; + case 'integer': return '(typeof ' + data + EQUAL + '"number"' + AND + + NOT + '(' + data + ' % 1)' + + AND + data + EQUAL + data + ')'; + default: return 'typeof ' + data + EQUAL + '"' + dataType + '"'; + } +} + + +function checkDataTypes(dataTypes, data) { + switch (dataTypes.length) { + case 1: return checkDataType(dataTypes[0], data, true); + default: + var code = ''; + var types = toHash(dataTypes); + if (types.array && types.object) { + code = types.null ? '(': '(!' + data + ' || '; + code += 'typeof ' + data + ' !== "object")'; + delete types.null; + delete types.array; + delete types.object; + } + if (types.number) delete types.integer; + for (var t in types) + code += (code ? ' && ' : '' ) + checkDataType(t, data, true); + + return code; + } +} + + +var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]); +function coerceToTypes(optionCoerceTypes, dataTypes) { + if (Array.isArray(dataTypes)) { + var types = []; + for (var i=0; i= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl); + return paths[lvl - up]; + } + + if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl); + data = 'data' + ((lvl - up) || ''); + if (!jsonPointer) return data; + } + + var expr = data; + var segments = jsonPointer.split('/'); + for (var i=0; i', + $notOp = $isMax ? '>' : '<', + $errorKeyword = undefined; + if ($isDataExcl) { + var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr), + $exclusive = 'exclusive' + $lvl, + $exclType = 'exclType' + $lvl, + $exclIsNumber = 'exclIsNumber' + $lvl, + $opExpr = 'op' + $lvl, + $opStr = '\' + ' + $opExpr + ' + \''; + out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; '; + $schemaValueExcl = 'schemaExcl' + $lvl; + out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \'boolean\' && ' + ($exclType) + ' != \'undefined\' && ' + ($exclType) + ' != \'number\') { '; + var $errorKeyword = $exclusiveKeyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_exclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($exclType) + ' == \'number\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\'; '; + if ($schema === undefined) { + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaValueExcl; + $isData = $isDataExcl; + } + } else { + var $exclIsNumber = typeof $schemaExcl == 'number', + $opStr = $op; + if ($exclIsNumber && $isData) { + var $opExpr = '\'' + $opStr + '\''; + out += ' if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { '; + } else { + if ($exclIsNumber && $schema === undefined) { + $exclusive = true; + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaExcl; + $notOp += '='; + } else { + if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema); + if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) { + $exclusive = true; + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $notOp += '='; + } else { + $exclusive = false; + $opStr += '='; + } + } + var $opExpr = '\'' + $opStr + '\''; + out += ' if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { '; + } + } + $errorKeyword = $errorKeyword || $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be ' + ($opStr) + ' '; + if ($isData) { + out += '\' + ' + ($schemaValue); + } else { + out += '' + ($schemaValue) + '\''; + } + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],14:[function(require,module,exports){ +'use strict'; +module.exports = function generate__limitItems(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxItems' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have '; + if ($keyword == 'maxItems') { + out += 'more'; + } else { + out += 'fewer'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' items\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],15:[function(require,module,exports){ +'use strict'; +module.exports = function generate__limitLength(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxLength' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + if (it.opts.unicode === false) { + out += ' ' + ($data) + '.length '; + } else { + out += ' ucs2length(' + ($data) + ') '; + } + out += ' ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitLength') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be '; + if ($keyword == 'maxLength') { + out += 'longer'; + } else { + out += 'shorter'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' characters\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],16:[function(require,module,exports){ +'use strict'; +module.exports = function generate__limitProperties(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxProperties' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have '; + if ($keyword == 'maxProperties') { + out += 'more'; + } else { + out += 'fewer'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' properties\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],17:[function(require,module,exports){ +'use strict'; +module.exports = function generate_allOf(it, $keyword, $ruleType) { + var out = ' '; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $currentBaseId = $it.baseId, + $allSchemasEmpty = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + $allSchemasEmpty = false; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if ($breakOnError) { + if ($allSchemasEmpty) { + out += ' if (true) { '; + } else { + out += ' ' + ($closingBraces.slice(0, -1)) + ' '; + } + } + out = it.util.cleanUpCode(out); + return out; +} + +},{}],18:[function(require,module,exports){ +'use strict'; +module.exports = function generate_anyOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $noEmptySchema = $schema.every(function($sch) { + return (it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all)); + }); + if ($noEmptySchema) { + var $currentBaseId = $it.baseId; + out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { '; + $closingBraces += '}'; + } + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('anyOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should match some schema in anyOf\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + if (it.opts.allErrors) { + out += ' } '; + } + out = it.util.cleanUpCode(out); + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} + +},{}],19:[function(require,module,exports){ +'use strict'; +module.exports = function generate_comment(it, $keyword, $ruleType) { + var out = ' '; + var $schema = it.schema[$keyword]; + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $comment = it.util.toQuotedString($schema); + if (it.opts.$comment === true) { + out += ' console.log(' + ($comment) + ');'; + } else if (typeof it.opts.$comment == 'function') { + out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);'; + } + return out; +} + +},{}],20:[function(require,module,exports){ +'use strict'; +module.exports = function generate_const(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + if (!$isData) { + out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';'; + } + out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be equal to constant\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' }'; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],21:[function(require,module,exports){ +'use strict'; +module.exports = function generate_contains(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $idx = 'i' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $currentBaseId = it.baseId, + $nonEmptySchema = (it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all)); + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if ($nonEmptySchema) { + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' if (' + ($nextValid) + ') break; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {'; + } else { + out += ' if (' + ($data) + '.length == 0) {'; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should contain a valid item\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + if ($nonEmptySchema) { + out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + } + if (it.opts.allErrors) { + out += ' } '; + } + out = it.util.cleanUpCode(out); + return out; +} + +},{}],22:[function(require,module,exports){ +'use strict'; +module.exports = function generate_custom(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $rule = this, + $definition = 'definition' + $lvl, + $rDef = $rule.definition, + $closingBraces = ''; + var $compile, $inline, $macro, $ruleValidate, $validateCode; + if ($isData && $rDef.$data) { + $validateCode = 'keywordValidate' + $lvl; + var $validateSchema = $rDef.validateSchema; + out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;'; + } else { + $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it); + if (!$ruleValidate) return; + $schemaValue = 'validate.schema' + $schemaPath; + $validateCode = $ruleValidate.code; + $compile = $rDef.compile; + $inline = $rDef.inline; + $macro = $rDef.macro; + } + var $ruleErrs = $validateCode + '.errors', + $i = 'i' + $lvl, + $ruleErr = 'ruleErr' + $lvl, + $asyncKeyword = $rDef.async; + if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema'); + if (!($inline || $macro)) { + out += '' + ($ruleErrs) + ' = null;'; + } + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if ($isData && $rDef.$data) { + $closingBraces += '}'; + out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { '; + if ($validateSchema) { + $closingBraces += '}'; + out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { '; + } + } + if ($inline) { + if ($rDef.statements) { + out += ' ' + ($ruleValidate.validate) + ' '; + } else { + out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; '; + } + } else if ($macro) { + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + $it.schema = $ruleValidate.validate; + $it.schemaPath = ''; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var $code = it.validate($it).replace(/validate\.schema/g, $validateCode); + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($code); + } else { + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; + out += ' ' + ($validateCode) + '.call( '; + if (it.opts.passContext) { + out += 'this'; + } else { + out += 'self'; + } + if ($compile || $rDef.schema === false) { + out += ' , ' + ($data) + ' '; + } else { + out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' '; + } + out += ' , (dataPath || \'\')'; + if (it.errorPath != '""') { + out += ' + ' + (it.errorPath); + } + var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', + $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; + out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) '; + var def_callRuleValidate = out; + out = $$outStack.pop(); + if ($rDef.errors === false) { + out += ' ' + ($valid) + ' = '; + if ($asyncKeyword) { + out += 'await '; + } + out += '' + (def_callRuleValidate) + '; '; + } else { + if ($asyncKeyword) { + $ruleErrs = 'customErrors' + $lvl; + out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } '; + } else { + out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; '; + } + } + } + if ($rDef.modifying) { + out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];'; + } + out += '' + ($closingBraces); + if ($rDef.valid) { + if ($breakOnError) { + out += ' if (true) { '; + } + } else { + out += ' if ( '; + if ($rDef.valid === undefined) { + out += ' !'; + if ($macro) { + out += '' + ($nextValid); + } else { + out += '' + ($valid); + } + } else { + out += ' ' + (!$rDef.valid) + ' '; + } + out += ') { '; + $errorKeyword = $rule.keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + var def_customError = out; + out = $$outStack.pop(); + if ($inline) { + if ($rDef.errors) { + if ($rDef.errors != 'full') { + out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + ' 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') '; + } + out += ') { '; + $it.schema = $sch; + $it.schemaPath = $schemaPath + it.util.getProperty($property); + $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property); + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} + +},{}],24:[function(require,module,exports){ +'use strict'; +module.exports = function generate_enum(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $i = 'i' + $lvl, + $vSchema = 'schema' + $lvl; + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';'; + } + out += 'var ' + ($valid) + ';'; + if ($isData) { + out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; + } + out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }'; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('enum') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be equal to one of the allowed values\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' }'; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],25:[function(require,module,exports){ +'use strict'; +module.exports = function generate_format(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + if (it.opts.format === false) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $unknownFormats = it.opts.unknownFormats, + $allowUnknown = Array.isArray($unknownFormats); + if ($isData) { + var $format = 'format' + $lvl, + $isObject = 'isObject' + $lvl, + $formatType = 'formatType' + $lvl; + out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \'object\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \'string\'; if (' + ($isObject) + ') { '; + if (it.async) { + out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; '; + } + out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; + } + out += ' ('; + if ($unknownFormats != 'ignore') { + out += ' (' + ($schemaValue) + ' && !' + ($format) + ' '; + if ($allowUnknown) { + out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 '; + } + out += ') || '; + } + out += ' (' + ($format) + ' && ' + ($formatType) + ' == \'' + ($ruleType) + '\' && !(typeof ' + ($format) + ' == \'function\' ? '; + if (it.async) { + out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) '; + } else { + out += ' ' + ($format) + '(' + ($data) + ') '; + } + out += ' : ' + ($format) + '.test(' + ($data) + '))))) {'; + } else { + var $format = it.formats[$schema]; + if (!$format) { + if ($unknownFormats == 'ignore') { + it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"'); + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } else { + throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); + } + } + var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate; + var $formatType = $isObject && $format.type || 'string'; + if ($isObject) { + var $async = $format.async === true; + $format = $format.validate; + } + if ($formatType != $ruleType) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } + if ($async) { + if (!it.async) throw new Error('async format in sync schema'); + var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate'; + out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { '; + } else { + out += ' if (! '; + var $formatRef = 'formats' + it.util.getProperty($schema); + if ($isObject) $formatRef += '.validate'; + if (typeof $format == 'function') { + out += ' ' + ($formatRef) + '(' + ($data) + ') '; + } else { + out += ' ' + ($formatRef) + '.test(' + ($data) + ') '; + } + out += ') { '; + } + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: '; + if ($isData) { + out += '' + ($schemaValue); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match format "'; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + (it.util.escapeQuotes($schema)); + } + out += '"\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],26:[function(require,module,exports){ +'use strict'; +module.exports = function generate_if(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + $it.level++; + var $nextValid = 'valid' + $it.level; + var $thenSch = it.schema['then'], + $elseSch = it.schema['else'], + $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? typeof $thenSch == 'object' && Object.keys($thenSch).length > 0 : it.util.schemaHasRules($thenSch, it.RULES.all)), + $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? typeof $elseSch == 'object' && Object.keys($elseSch).length > 0 : it.util.schemaHasRules($elseSch, it.RULES.all)), + $currentBaseId = $it.baseId; + if ($thenPresent || $elsePresent) { + var $ifClause; + $it.createErrors = false; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + $it.createErrors = true; + out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + if ($thenPresent) { + out += ' if (' + ($nextValid) + ') { '; + $it.schema = it.schema['then']; + $it.schemaPath = it.schemaPath + '.then'; + $it.errSchemaPath = it.errSchemaPath + '/then'; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; + if ($thenPresent && $elsePresent) { + $ifClause = 'ifClause' + $lvl; + out += ' var ' + ($ifClause) + ' = \'then\'; '; + } else { + $ifClause = '\'then\''; + } + out += ' } '; + if ($elsePresent) { + out += ' else { '; + } + } else { + out += ' if (!' + ($nextValid) + ') { '; + } + if ($elsePresent) { + $it.schema = it.schema['else']; + $it.schemaPath = it.schemaPath + '.else'; + $it.errSchemaPath = it.errSchemaPath + '/else'; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; + if ($thenPresent && $elsePresent) { + $ifClause = 'ifClause' + $lvl; + out += ' var ' + ($ifClause) + ' = \'else\'; '; + } else { + $ifClause = '\'else\''; + } + out += ' } '; + } + out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + out = it.util.cleanUpCode(out); + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} + +},{}],27:[function(require,module,exports){ +'use strict'; + +//all requires must be explicit because browserify won't work with dynamic requires +module.exports = { + '$ref': require('./ref'), + allOf: require('./allOf'), + anyOf: require('./anyOf'), + '$comment': require('./comment'), + const: require('./const'), + contains: require('./contains'), + dependencies: require('./dependencies'), + 'enum': require('./enum'), + format: require('./format'), + 'if': require('./if'), + items: require('./items'), + maximum: require('./_limit'), + minimum: require('./_limit'), + maxItems: require('./_limitItems'), + minItems: require('./_limitItems'), + maxLength: require('./_limitLength'), + minLength: require('./_limitLength'), + maxProperties: require('./_limitProperties'), + minProperties: require('./_limitProperties'), + multipleOf: require('./multipleOf'), + not: require('./not'), + oneOf: require('./oneOf'), + pattern: require('./pattern'), + properties: require('./properties'), + propertyNames: require('./propertyNames'), + required: require('./required'), + uniqueItems: require('./uniqueItems'), + validate: require('./validate') +}; + +},{"./_limit":13,"./_limitItems":14,"./_limitLength":15,"./_limitProperties":16,"./allOf":17,"./anyOf":18,"./comment":19,"./const":20,"./contains":21,"./dependencies":23,"./enum":24,"./format":25,"./if":26,"./items":28,"./multipleOf":29,"./not":30,"./oneOf":31,"./pattern":32,"./properties":33,"./propertyNames":34,"./ref":35,"./required":36,"./uniqueItems":37,"./validate":38}],28:[function(require,module,exports){ +'use strict'; +module.exports = function generate_items(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $idx = 'i' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $currentBaseId = it.baseId; + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if (Array.isArray($schema)) { + var $additionalItems = it.schema.additionalItems; + if ($additionalItems === false) { + out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; '; + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalItems'; + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + $errSchemaPath = $currErrSchemaPath; + if ($breakOnError) { + $closingBraces += '}'; + out += ' else { '; + } + } + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { '; + var $passData = $data + '[' + $i + ']'; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true); + $it.dataPathArr[$dataNxt] = $i; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if (typeof $additionalItems == 'object' && (it.opts.strictKeywords ? typeof $additionalItems == 'object' && Object.keys($additionalItems).length > 0 : it.util.schemaHasRules($additionalItems, it.RULES.all))) { + $it.schema = $additionalItems; + $it.schemaPath = it.schemaPath + '.additionalItems'; + $it.errSchemaPath = it.errSchemaPath + '/additionalItems'; + out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' } } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } else if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' }'; + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} + +},{}],29:[function(require,module,exports){ +'use strict'; +module.exports = function generate_multipleOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + out += 'var division' + ($lvl) + ';if ('; + if ($isData) { + out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \'number\' || '; + } + out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', '; + if (it.opts.multipleOfPrecision) { + out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' '; + } else { + out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') '; + } + out += ' ) '; + if ($isData) { + out += ' ) '; + } + out += ' ) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('multipleOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be multiple of '; + if ($isData) { + out += '\' + ' + ($schemaValue); + } else { + out += '' + ($schemaValue) + '\''; + } + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],30:[function(require,module,exports){ +'use strict'; +module.exports = function generate_not(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + $it.level++; + var $nextValid = 'valid' + $it.level; + if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($errs) + ' = errors; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.createErrors = false; + var $allErrorsOption; + if ($it.opts.allErrors) { + $allErrorsOption = $it.opts.allErrors; + $it.opts.allErrors = false; + } + out += ' ' + (it.validate($it)) + ' '; + $it.createErrors = true; + if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption; + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' if (' + ($nextValid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be valid\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + if (it.opts.allErrors) { + out += ' } '; + } + } else { + out += ' var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be valid\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if ($breakOnError) { + out += ' if (false) { '; + } + } + return out; +} + +},{}],31:[function(require,module,exports){ +'use strict'; +module.exports = function generate_oneOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $currentBaseId = $it.baseId, + $prevValid = 'prevValid' + $lvl, + $passingSchemas = 'passingSchemas' + $lvl; + out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + } else { + out += ' var ' + ($nextValid) + ' = true; '; + } + if ($i) { + out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { '; + $closingBraces += '}'; + } + out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }'; + } + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('oneOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match exactly one schema in oneOf\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }'; + if (it.opts.allErrors) { + out += ' } '; + } + return out; +} + +},{}],32:[function(require,module,exports){ +'use strict'; +module.exports = function generate_pattern(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema); + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; + } + out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: '; + if ($isData) { + out += '' + ($schemaValue); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match pattern "'; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + (it.util.escapeQuotes($schema)); + } + out += '"\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],33:[function(require,module,exports){ +'use strict'; +module.exports = function generate_properties(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $key = 'key' + $lvl, + $idx = 'idx' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $dataProperties = 'dataProperties' + $lvl; + var $schemaKeys = Object.keys($schema || {}), + $pProperties = it.schema.patternProperties || {}, + $pPropertyKeys = Object.keys($pProperties), + $aProperties = it.schema.additionalProperties, + $someProperties = $schemaKeys.length || $pPropertyKeys.length, + $noAdditional = $aProperties === false, + $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length, + $removeAdditional = it.opts.removeAdditional, + $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional, + $ownProperties = it.opts.ownProperties, + $currentBaseId = it.baseId; + var $required = it.schema.required; + if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) var $requiredHash = it.util.toHash($required); + out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;'; + if ($ownProperties) { + out += ' var ' + ($dataProperties) + ' = undefined;'; + } + if ($checkAdditional) { + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + if ($someProperties) { + out += ' var isAdditional' + ($lvl) + ' = !(false '; + if ($schemaKeys.length) { + if ($schemaKeys.length > 8) { + out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') '; + } else { + var arr1 = $schemaKeys; + if (arr1) { + var $propertyKey, i1 = -1, + l1 = arr1.length - 1; + while (i1 < l1) { + $propertyKey = arr1[i1 += 1]; + out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' '; + } + } + } + } + if ($pPropertyKeys.length) { + var arr2 = $pPropertyKeys; + if (arr2) { + var $pProperty, $i = -1, + l2 = arr2.length - 1; + while ($i < l2) { + $pProperty = arr2[$i += 1]; + out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') '; + } + } + } + out += ' ); if (isAdditional' + ($lvl) + ') { '; + } + if ($removeAdditional == 'all') { + out += ' delete ' + ($data) + '[' + ($key) + ']; '; + } else { + var $currentErrorPath = it.errorPath; + var $additionalProperty = '\' + ' + $key + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + } + if ($noAdditional) { + if ($removeAdditional) { + out += ' delete ' + ($data) + '[' + ($key) + ']; '; + } else { + out += ' ' + ($nextValid) + ' = false; '; + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalProperties'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('additionalProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \'' + ($additionalProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is an invalid additional property'; + } else { + out += 'should NOT have additional properties'; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + $errSchemaPath = $currErrSchemaPath; + if ($breakOnError) { + out += ' break; '; + } + } + } else if ($additionalIsSchema) { + if ($removeAdditional == 'failing') { + out += ' var ' + ($errs) + ' = errors; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + } else { + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + } + } + it.errorPath = $currentErrorPath; + } + if ($someProperties) { + out += ' } '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + var $useDefaults = it.opts.useDefaults && !it.compositeRule; + if ($schemaKeys.length) { + var arr3 = $schemaKeys; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $sch = $schema[$propertyKey]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + var $prop = it.util.getProperty($propertyKey), + $passData = $data + $prop, + $hasDefault = $useDefaults && $sch.default !== undefined; + $it.schema = $sch; + $it.schemaPath = $schemaPath + $prop; + $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey); + $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers); + $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey); + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + $code = it.util.varReplace($code, $nextData, $passData); + var $useData = $passData; + } else { + var $useData = $nextData; + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; '; + } + if ($hasDefault) { + out += ' ' + ($code) + ' '; + } else { + if ($requiredHash && $requiredHash[$propertyKey]) { + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { ' + ($nextValid) + ' = false; '; + var $currentErrorPath = it.errorPath, + $currErrSchemaPath = $errSchemaPath, + $missingProperty = it.util.escapeQuotes($propertyKey); + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + $errSchemaPath = it.errSchemaPath + '/required'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + $errSchemaPath = $currErrSchemaPath; + it.errorPath = $currentErrorPath; + out += ' } else { '; + } else { + if ($breakOnError) { + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { ' + ($nextValid) + ' = true; } else { '; + } else { + out += ' if (' + ($useData) + ' !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ' ) { '; + } + } + out += ' ' + ($code) + ' } '; + } + } + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if ($pPropertyKeys.length) { + var arr4 = $pPropertyKeys; + if (arr4) { + var $pProperty, i4 = -1, + l4 = arr4.length - 1; + while (i4 < l4) { + $pProperty = arr4[i4 += 1]; + var $sch = $pProperties[$pProperty]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + $it.schema = $sch; + $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); + $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty); + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else ' + ($nextValid) + ' = true; '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} + +},{}],34:[function(require,module,exports){ +'use strict'; +module.exports = function generate_propertyNames(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + out += 'var ' + ($errs) + ' = errors;'; + if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + var $key = 'key' + $lvl, + $idx = 'idx' + $lvl, + $i = 'i' + $lvl, + $invalidName = '\' + ' + $key + ' + \'', + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $dataProperties = 'dataProperties' + $lvl, + $ownProperties = it.opts.ownProperties, + $currentBaseId = it.baseId; + if ($ownProperties) { + out += ' var ' + ($dataProperties) + ' = undefined; '; + } + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + out += ' var startErrs' + ($lvl) + ' = errors; '; + var $passData = $key; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + ' 0 : it.util.schemaHasRules($propertySch, it.RULES.all)))) { + $required[$required.length] = $property; + } + } + } + } else { + var $required = $schema; + } + } + if ($isData || $required.length) { + var $currentErrorPath = it.errorPath, + $loopRequired = $isData || $required.length >= it.opts.loopRequired, + $ownProperties = it.opts.ownProperties; + if ($breakOnError) { + out += ' var missing' + ($lvl) + '; '; + if ($loopRequired) { + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; + } + var $i = 'i' + $lvl, + $propertyPath = 'schema' + $lvl + '[' + $i + ']', + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); + } + out += ' var ' + ($valid) + ' = true; '; + if ($isData) { + out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; + } + out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; + } + out += '; if (!' + ($valid) + ') break; } '; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + } else { + out += ' if ( '; + var arr2 = $required; + if (arr2) { + var $propertyKey, $i = -1, + l2 = arr2.length - 1; + while ($i < l2) { + $propertyKey = arr2[$i += 1]; + if ($i) { + out += ' || '; + } + var $prop = it.util.getProperty($propertyKey), + $useData = $data + $prop; + out += ' ( ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) '; + } + } + out += ') { '; + var $propertyPath = 'missing' + $lvl, + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + } + } else { + if ($loopRequired) { + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; + } + var $i = 'i' + $lvl, + $propertyPath = 'schema' + $lvl + '[' + $i + ']', + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); + } + if ($isData) { + out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { '; + } + out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; + } + out += ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } '; + if ($isData) { + out += ' } '; + } + } else { + var arr3 = $required; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $prop = it.util.getProperty($propertyKey), + $missingProperty = it.util.escapeQuotes($propertyKey), + $useData = $data + $prop; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } '; + } + } + } + } + it.errorPath = $currentErrorPath; + } else if ($breakOnError) { + out += ' if (true) {'; + } + return out; +} + +},{}],37:[function(require,module,exports){ +'use strict'; +module.exports = function generate_uniqueItems(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + if (($schema || $isData) && it.opts.uniqueItems !== false) { + if ($isData) { + out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'boolean\') ' + ($valid) + ' = false; else { '; + } + out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { '; + var $itemType = it.schema.items && it.schema.items.type, + $typeIsArray = Array.isArray($itemType); + if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) { + out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } '; + } else { + out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; '; + var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); + out += ' if (' + (it.util[$method]($itemType, 'item', true)) + ') continue; '; + if ($typeIsArray) { + out += ' if (typeof item == \'string\') item = \'"\' + item; '; + } + out += ' if (typeof itemIndices[item] == \'number\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } '; + } + out += ' } '; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('uniqueItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have duplicate items (items ## \' + j + \' and \' + i + \' are identical)\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} + +},{}],38:[function(require,module,exports){ +'use strict'; +module.exports = function generate_validate(it, $keyword, $ruleType) { + var out = ''; + var $async = it.schema.$async === true, + $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'), + $id = it.self._getId(it.schema); + if (it.opts.strictKeywords) { + var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords); + if ($unknownKwd) { + var $keywordsMsg = 'unknown keyword: ' + $unknownKwd; + if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg); + else throw new Error($keywordsMsg); + } + } + if (it.isTop) { + out += ' var validate = '; + if ($async) { + it.async = true; + out += 'async '; + } + out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; '; + if ($id && (it.opts.sourceCode || it.opts.processCode)) { + out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' '; + } + } + if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) { + var $keyword = 'false schema'; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + if (it.schema === false) { + if (it.isTop) { + $breakOnError = true; + } else { + out += ' var ' + ($valid) + ' = false; '; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'boolean schema is false\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + } else { + if (it.isTop) { + if ($async) { + out += ' return data; '; + } else { + out += ' validate.errors = null; return true; '; + } + } else { + out += ' var ' + ($valid) + ' = true; '; + } + } + if (it.isTop) { + out += ' }; return validate; '; + } + return out; + } + if (it.isTop) { + var $top = it.isTop, + $lvl = it.level = 0, + $dataLvl = it.dataLevel = 0, + $data = 'data'; + it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema)); + it.baseId = it.baseId || it.rootId; + delete it.isTop; + it.dataPathArr = [undefined]; + if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored in the schema root'; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + out += ' var vErrors = null; '; + out += ' var errors = 0; '; + out += ' if (rootData === undefined) rootData = data; '; + } else { + var $lvl = it.level, + $dataLvl = it.dataLevel, + $data = 'data' + ($dataLvl || ''); + if ($id) it.baseId = it.resolve.url(it.baseId, $id); + if ($async && !it.async) throw new Error('async schema in sync schema'); + out += ' var errs_' + ($lvl) + ' = errors;'; + } + var $valid = 'valid' + $lvl, + $breakOnError = !it.opts.allErrors, + $closingBraces1 = '', + $closingBraces2 = ''; + var $errorKeyword; + var $typeSchema = it.schema.type, + $typeIsArray = Array.isArray($typeSchema); + if ($typeSchema && it.opts.nullable && it.schema.nullable === true) { + if ($typeIsArray) { + if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null'); + } else if ($typeSchema != 'null') { + $typeSchema = [$typeSchema, 'null']; + $typeIsArray = true; + } + } + if ($typeIsArray && $typeSchema.length == 1) { + $typeSchema = $typeSchema[0]; + $typeIsArray = false; + } + if (it.schema.$ref && $refKeywords) { + if (it.opts.extendRefs == 'fail') { + throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); + } else if (it.opts.extendRefs !== true) { + $refKeywords = false; + it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); + } + } + if (it.schema.$comment && it.opts.$comment) { + out += ' ' + (it.RULES.all.$comment.code(it, '$comment')); + } + if ($typeSchema) { + if (it.opts.coerceTypes) { + var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); + } + var $rulesGroup = it.RULES.types[$typeSchema]; + if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) { + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type'; + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type', + $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType'; + out += ' if (' + (it.util[$method]($typeSchema, $data, true)) + ') { '; + if ($coerceToTypes) { + var $dataType = 'dataType' + $lvl, + $coerced = 'coerced' + $lvl; + out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; '; + if (it.opts.coerceTypes == 'array') { + out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ')) ' + ($dataType) + ' = \'array\'; '; + } + out += ' var ' + ($coerced) + ' = undefined; '; + var $bracesCoercion = ''; + var arr1 = $coerceToTypes; + if (arr1) { + var $type, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $type = arr1[$i += 1]; + if ($i) { + out += ' if (' + ($coerced) + ' === undefined) { '; + $bracesCoercion += '}'; + } + if (it.opts.coerceTypes == 'array' && $type != 'array') { + out += ' if (' + ($dataType) + ' == \'array\' && ' + ($data) + '.length == 1) { ' + ($coerced) + ' = ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; } '; + } + if ($type == 'string') { + out += ' if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; '; + } else if ($type == 'number' || $type == 'integer') { + out += ' if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' '; + if ($type == 'integer') { + out += ' && !(' + ($data) + ' % 1)'; + } + out += ')) ' + ($coerced) + ' = +' + ($data) + '; '; + } else if ($type == 'boolean') { + out += ' if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; '; + } else if ($type == 'null') { + out += ' if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; '; + } else if (it.opts.coerceTypes == 'array' && $type == 'array') { + out += ' if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; '; + } + } + } + out += ' ' + ($bracesCoercion) + ' if (' + ($coerced) + ' === undefined) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', + $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; + out += ' ' + ($data) + ' = ' + ($coerced) + '; '; + if (!$dataLvl) { + out += 'if (' + ($parentData) + ' !== undefined)'; + } + out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } '; + } else { + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + } + out += ' } '; + } + } + if (it.schema.$ref && !$refKeywords) { + out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' '; + if ($breakOnError) { + out += ' } if (errors === '; + if ($top) { + out += '0'; + } else { + out += 'errs_' + ($lvl); + } + out += ') { '; + $closingBraces2 += '}'; + } + } else { + var arr2 = it.RULES; + if (arr2) { + var $rulesGroup, i2 = -1, + l2 = arr2.length - 1; + while (i2 < l2) { + $rulesGroup = arr2[i2 += 1]; + if ($shouldUseGroup($rulesGroup)) { + if ($rulesGroup.type) { + out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data)) + ') { '; + } + if (it.opts.useDefaults) { + if ($rulesGroup.type == 'object' && it.schema.properties) { + var $schema = it.schema.properties, + $schemaKeys = Object.keys($schema); + var arr3 = $schemaKeys; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $sch = $schema[$propertyKey]; + if ($sch.default !== undefined) { + var $passData = $data + it.util.getProperty($propertyKey); + if (it.compositeRule) { + if (it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored for: ' + $passData; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + } else { + out += ' if (' + ($passData) + ' === undefined '; + if (it.opts.useDefaults == 'empty') { + out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; + } + out += ' ) ' + ($passData) + ' = '; + if (it.opts.useDefaults == 'shared') { + out += ' ' + (it.useDefault($sch.default)) + ' '; + } else { + out += ' ' + (JSON.stringify($sch.default)) + ' '; + } + out += '; '; + } + } + } + } + } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) { + var arr4 = it.schema.items; + if (arr4) { + var $sch, $i = -1, + l4 = arr4.length - 1; + while ($i < l4) { + $sch = arr4[$i += 1]; + if ($sch.default !== undefined) { + var $passData = $data + '[' + $i + ']'; + if (it.compositeRule) { + if (it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored for: ' + $passData; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + } else { + out += ' if (' + ($passData) + ' === undefined '; + if (it.opts.useDefaults == 'empty') { + out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; + } + out += ' ) ' + ($passData) + ' = '; + if (it.opts.useDefaults == 'shared') { + out += ' ' + (it.useDefault($sch.default)) + ' '; + } else { + out += ' ' + (JSON.stringify($sch.default)) + ' '; + } + out += '; '; + } + } + } + } + } + } + var arr5 = $rulesGroup.rules; + if (arr5) { + var $rule, i5 = -1, + l5 = arr5.length - 1; + while (i5 < l5) { + $rule = arr5[i5 += 1]; + if ($shouldUseRule($rule)) { + var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); + if ($code) { + out += ' ' + ($code) + ' '; + if ($breakOnError) { + $closingBraces1 += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces1) + ' '; + $closingBraces1 = ''; + } + if ($rulesGroup.type) { + out += ' } '; + if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) { + out += ' else { '; + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + } + } + if ($breakOnError) { + out += ' if (errors === '; + if ($top) { + out += '0'; + } else { + out += 'errs_' + ($lvl); + } + out += ') { '; + $closingBraces2 += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces2) + ' '; + } + if ($top) { + if ($async) { + out += ' if (errors === 0) return data; '; + out += ' else throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; '; + out += ' return errors === 0; '; + } + out += ' }; return validate;'; + } else { + out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';'; + } + out = it.util.cleanUpCode(out); + if ($top) { + out = it.util.finalCleanUpCode(out, $async); + } + + function $shouldUseGroup($rulesGroup) { + var rules = $rulesGroup.rules; + for (var i = 0; i < rules.length; i++) + if ($shouldUseRule(rules[i])) return true; + } + + function $shouldUseRule($rule) { + return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule)); + } + + function $ruleImplementsSomeKeyword($rule) { + var impl = $rule.implements; + for (var i = 0; i < impl.length; i++) + if (it.schema[impl[i]] !== undefined) return true; + } + return out; +} + +},{}],39:[function(require,module,exports){ +'use strict'; + +var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i; +var customRuleCode = require('./dotjs/custom'); +var definitionSchema = require('./definition_schema'); + +module.exports = { + add: addKeyword, + get: getKeyword, + remove: removeKeyword, + validate: validateKeyword +}; + + +/** + * Define custom keyword + * @this Ajv + * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords). + * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. + * @return {Ajv} this for method chaining + */ +function addKeyword(keyword, definition) { + /* jshint validthis: true */ + /* eslint no-shadow: 0 */ + var RULES = this.RULES; + if (RULES.keywords[keyword]) + throw new Error('Keyword ' + keyword + ' is already defined'); + + if (!IDENTIFIER.test(keyword)) + throw new Error('Keyword ' + keyword + ' is not a valid identifier'); + + if (definition) { + this.validateKeyword(definition, true); + + var dataType = definition.type; + if (Array.isArray(dataType)) { + for (var i=0; i 1) { + sets[0] = sets[0].slice(0, -1); + var xl = sets.length - 1; + for (var x = 1; x < xl; ++x) { + sets[x] = sets[x].slice(1, -1); + } + sets[xl] = sets[xl].slice(1); + return sets.join(''); + } else { + return sets[0]; + } +} +function subexp(str) { + return "(?:" + str + ")"; +} +function typeOf(o) { + return o === undefined ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase(); +} +function toUpperCase(str) { + return str.toUpperCase(); +} +function toArray(obj) { + return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : []; +} +function assign(target, source) { + var obj = target; + if (source) { + for (var key in source) { + obj[key] = source[key]; + } + } + return obj; +} + +function buildExps(isIRI) { + var ALPHA$$ = "[A-Za-z]", + CR$ = "[\\x0D]", + DIGIT$$ = "[0-9]", + DQUOTE$$ = "[\\x22]", + HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), + //case-insensitive + LF$$ = "[\\x0A]", + SP$$ = "[\\x20]", + PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)), + //expanded + GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", + SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", + RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), + UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", + //subset, excludes bidi control characters + IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", + //subset + UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), + SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), + USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"), + DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), + DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), + //relaxed parsing rules + IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), + H16$ = subexp(HEXDIG$$ + "{1,4}"), + LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), + IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), + // 6( h16 ":" ) ls32 + IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), + // "::" 5( h16 ":" ) ls32 + IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), + //[ h16 ] "::" 4( h16 ":" ) ls32 + IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), + //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32 + IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), + //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32 + IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), + //[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32 + IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), + //[ *4( h16 ":" ) h16 ] "::" ls32 + IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), + //[ *5( h16 ":" ) h16 ] "::" h16 + IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), + //[ *6( h16 ":" ) h16 ] "::" + IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), + ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"), + //RFC 6874 + IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), + //RFC 6874 + IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$), + //RFC 6874, with relaxed parsing rules + IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"), + IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), + //RFC 6874 + REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"), + HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$), + PORT$ = subexp(DIGIT$$ + "*"), + AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), + PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")), + SEGMENT$ = subexp(PCHAR$ + "*"), + SEGMENT_NZ$ = subexp(PCHAR$ + "+"), + SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"), + PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), + PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), + //simplified + PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), + //simplified + PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), + //simplified + PATH_EMPTY$ = "(?!" + PCHAR$ + ")", + PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), + QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), + FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), + HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), + URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), + RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), + RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), + URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), + ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), + GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", + RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", + ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", + SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", + AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$"; + return { + NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"), + NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), + NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), + NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), + NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), + NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"), + NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"), + ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"), + UNRESERVED: new RegExp(UNRESERVED$$, "g"), + OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"), + PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"), + IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"), + IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules + }; +} +var URI_PROTOCOL = buildExps(false); + +var IRI_PROTOCOL = buildExps(true); + +var slicedToArray = function () { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"]) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; + } + + return function (arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if (Symbol.iterator in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + }; +}(); + + + + + + + + + + + + + +var toConsumableArray = function (arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; + + return arr2; + } else { + return Array.from(arr); + } +}; + +/** Highest positive signed 32-bit float value */ + +var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 + +/** Bootstring parameters */ +var base = 36; +var tMin = 1; +var tMax = 26; +var skew = 38; +var damp = 700; +var initialBias = 72; +var initialN = 128; // 0x80 +var delimiter = '-'; // '\x2D' + +/** Regular expressions */ +var regexPunycode = /^xn--/; +var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars +var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators + +/** Error messages */ +var errors = { + 'overflow': 'Overflow: input needs wider integers to process', + 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', + 'invalid-input': 'Invalid input' +}; + +/** Convenience shortcuts */ +var baseMinusTMin = base - tMin; +var floor = Math.floor; +var stringFromCharCode = String.fromCharCode; + +/*--------------------------------------------------------------------------*/ + +/** + * A generic error utility function. + * @private + * @param {String} type The error type. + * @returns {Error} Throws a `RangeError` with the applicable error message. + */ +function error$1(type) { + throw new RangeError(errors[type]); +} + +/** + * A generic `Array#map` utility function. + * @private + * @param {Array} array The array to iterate over. + * @param {Function} callback The function that gets called for every array + * item. + * @returns {Array} A new array of values returned by the callback function. + */ +function map(array, fn) { + var result = []; + var length = array.length; + while (length--) { + result[length] = fn(array[length]); + } + return result; +} + +/** + * A simple `Array#map`-like wrapper to work with domain name strings or email + * addresses. + * @private + * @param {String} domain The domain name or email address. + * @param {Function} callback The function that gets called for every + * character. + * @returns {Array} A new string of characters returned by the callback + * function. + */ +function mapDomain(string, fn) { + var parts = string.split('@'); + var result = ''; + if (parts.length > 1) { + // In email addresses, only the domain name should be punycoded. Leave + // the local part (i.e. everything up to `@`) intact. + result = parts[0] + '@'; + string = parts[1]; + } + // Avoid `split(regex)` for IE8 compatibility. See #17. + string = string.replace(regexSeparators, '\x2E'); + var labels = string.split('.'); + var encoded = map(labels, fn).join('.'); + return result + encoded; +} + +/** + * Creates an array containing the numeric code points of each Unicode + * character in the string. While JavaScript uses UCS-2 internally, + * this function will convert a pair of surrogate halves (each of which + * UCS-2 exposes as separate characters) into a single code point, + * matching UTF-16. + * @see `punycode.ucs2.encode` + * @see + * @memberOf punycode.ucs2 + * @name decode + * @param {String} string The Unicode input string (UCS-2). + * @returns {Array} The new array of code points. + */ +function ucs2decode(string) { + var output = []; + var counter = 0; + var length = string.length; + while (counter < length) { + var value = string.charCodeAt(counter++); + if (value >= 0xD800 && value <= 0xDBFF && counter < length) { + // It's a high surrogate, and there is a next character. + var extra = string.charCodeAt(counter++); + if ((extra & 0xFC00) == 0xDC00) { + // Low surrogate. + output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); + } else { + // It's an unmatched surrogate; only append this code unit, in case the + // next code unit is the high surrogate of a surrogate pair. + output.push(value); + counter--; + } + } else { + output.push(value); + } + } + return output; +} + +/** + * Creates a string based on an array of numeric code points. + * @see `punycode.ucs2.decode` + * @memberOf punycode.ucs2 + * @name encode + * @param {Array} codePoints The array of numeric code points. + * @returns {String} The new Unicode string (UCS-2). + */ +var ucs2encode = function ucs2encode(array) { + return String.fromCodePoint.apply(String, toConsumableArray(array)); +}; + +/** + * Converts a basic code point into a digit/integer. + * @see `digitToBasic()` + * @private + * @param {Number} codePoint The basic numeric code point value. + * @returns {Number} The numeric value of a basic code point (for use in + * representing integers) in the range `0` to `base - 1`, or `base` if + * the code point does not represent a value. + */ +var basicToDigit = function basicToDigit(codePoint) { + if (codePoint - 0x30 < 0x0A) { + return codePoint - 0x16; + } + if (codePoint - 0x41 < 0x1A) { + return codePoint - 0x41; + } + if (codePoint - 0x61 < 0x1A) { + return codePoint - 0x61; + } + return base; +}; + +/** + * Converts a digit/integer into a basic code point. + * @see `basicToDigit()` + * @private + * @param {Number} digit The numeric value of a basic code point. + * @returns {Number} The basic code point whose value (when used for + * representing integers) is `digit`, which needs to be in the range + * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is + * used; else, the lowercase form is used. The behavior is undefined + * if `flag` is non-zero and `digit` has no uppercase form. + */ +var digitToBasic = function digitToBasic(digit, flag) { + // 0..25 map to ASCII a..z or A..Z + // 26..35 map to ASCII 0..9 + return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); +}; + +/** + * Bias adaptation function as per section 3.4 of RFC 3492. + * https://tools.ietf.org/html/rfc3492#section-3.4 + * @private + */ +var adapt = function adapt(delta, numPoints, firstTime) { + var k = 0; + delta = firstTime ? floor(delta / damp) : delta >> 1; + delta += floor(delta / numPoints); + for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) { + delta = floor(delta / baseMinusTMin); + } + return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); +}; + +/** + * Converts a Punycode string of ASCII-only symbols to a string of Unicode + * symbols. + * @memberOf punycode + * @param {String} input The Punycode string of ASCII-only symbols. + * @returns {String} The resulting string of Unicode symbols. + */ +var decode = function decode(input) { + // Don't use UCS-2. + var output = []; + var inputLength = input.length; + var i = 0; + var n = initialN; + var bias = initialBias; + + // Handle the basic code points: let `basic` be the number of input code + // points before the last delimiter, or `0` if there is none, then copy + // the first basic code points to the output. + + var basic = input.lastIndexOf(delimiter); + if (basic < 0) { + basic = 0; + } + + for (var j = 0; j < basic; ++j) { + // if it's not a basic code point + if (input.charCodeAt(j) >= 0x80) { + error$1('not-basic'); + } + output.push(input.charCodeAt(j)); + } + + // Main decoding loop: start just after the last delimiter if any basic code + // points were copied; start at the beginning otherwise. + + for (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{ + + // `index` is the index of the next character to be consumed. + // Decode a generalized variable-length integer into `delta`, + // which gets added to `i`. The overflow checking is easier + // if we increase `i` as we go, then subtract off its starting + // value at the end to obtain `delta`. + var oldi = i; + for (var w = 1, k = base;; /* no condition */k += base) { + + if (index >= inputLength) { + error$1('invalid-input'); + } + + var digit = basicToDigit(input.charCodeAt(index++)); + + if (digit >= base || digit > floor((maxInt - i) / w)) { + error$1('overflow'); + } + + i += digit * w; + var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; + + if (digit < t) { + break; + } + + var baseMinusT = base - t; + if (w > floor(maxInt / baseMinusT)) { + error$1('overflow'); + } + + w *= baseMinusT; + } + + var out = output.length + 1; + bias = adapt(i - oldi, out, oldi == 0); + + // `i` was supposed to wrap around from `out` to `0`, + // incrementing `n` each time, so we'll fix that now: + if (floor(i / out) > maxInt - n) { + error$1('overflow'); + } + + n += floor(i / out); + i %= out; + + // Insert `n` at position `i` of the output. + output.splice(i++, 0, n); + } + + return String.fromCodePoint.apply(String, output); +}; + +/** + * Converts a string of Unicode symbols (e.g. a domain name label) to a + * Punycode string of ASCII-only symbols. + * @memberOf punycode + * @param {String} input The string of Unicode symbols. + * @returns {String} The resulting Punycode string of ASCII-only symbols. + */ +var encode = function encode(input) { + var output = []; + + // Convert the input in UCS-2 to an array of Unicode code points. + input = ucs2decode(input); + + // Cache the length. + var inputLength = input.length; + + // Initialize the state. + var n = initialN; + var delta = 0; + var bias = initialBias; + + // Handle the basic code points. + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var _currentValue2 = _step.value; + + if (_currentValue2 < 0x80) { + output.push(stringFromCharCode(_currentValue2)); + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + + var basicLength = output.length; + var handledCPCount = basicLength; + + // `handledCPCount` is the number of code points that have been handled; + // `basicLength` is the number of basic code points. + + // Finish the basic string with a delimiter unless it's empty. + if (basicLength) { + output.push(delimiter); + } + + // Main encoding loop: + while (handledCPCount < inputLength) { + + // All non-basic code points < n have been handled already. Find the next + // larger one: + var m = maxInt; + var _iteratorNormalCompletion2 = true; + var _didIteratorError2 = false; + var _iteratorError2 = undefined; + + try { + for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + var currentValue = _step2.value; + + if (currentValue >= n && currentValue < m) { + m = currentValue; + } + } + + // Increase `delta` enough to advance the decoder's state to , + // but guard against overflow. + } catch (err) { + _didIteratorError2 = true; + _iteratorError2 = err; + } finally { + try { + if (!_iteratorNormalCompletion2 && _iterator2.return) { + _iterator2.return(); + } + } finally { + if (_didIteratorError2) { + throw _iteratorError2; + } + } + } + + var handledCPCountPlusOne = handledCPCount + 1; + if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { + error$1('overflow'); + } + + delta += (m - n) * handledCPCountPlusOne; + n = m; + + var _iteratorNormalCompletion3 = true; + var _didIteratorError3 = false; + var _iteratorError3 = undefined; + + try { + for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { + var _currentValue = _step3.value; + + if (_currentValue < n && ++delta > maxInt) { + error$1('overflow'); + } + if (_currentValue == n) { + // Represent delta as a generalized variable-length integer. + var q = delta; + for (var k = base;; /* no condition */k += base) { + var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; + if (q < t) { + break; + } + var qMinusT = q - t; + var baseMinusT = base - t; + output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))); + q = floor(qMinusT / baseMinusT); + } + + output.push(stringFromCharCode(digitToBasic(q, 0))); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); + delta = 0; + ++handledCPCount; + } + } + } catch (err) { + _didIteratorError3 = true; + _iteratorError3 = err; + } finally { + try { + if (!_iteratorNormalCompletion3 && _iterator3.return) { + _iterator3.return(); + } + } finally { + if (_didIteratorError3) { + throw _iteratorError3; + } + } + } + + ++delta; + ++n; + } + return output.join(''); +}; + +/** + * Converts a Punycode string representing a domain name or an email address + * to Unicode. Only the Punycoded parts of the input will be converted, i.e. + * it doesn't matter if you call it on a string that has already been + * converted to Unicode. + * @memberOf punycode + * @param {String} input The Punycoded domain name or email address to + * convert to Unicode. + * @returns {String} The Unicode representation of the given Punycode + * string. + */ +var toUnicode = function toUnicode(input) { + return mapDomain(input, function (string) { + return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string; + }); +}; + +/** + * Converts a Unicode string representing a domain name or an email address to + * Punycode. Only the non-ASCII parts of the domain name will be converted, + * i.e. it doesn't matter if you call it with a domain that's already in + * ASCII. + * @memberOf punycode + * @param {String} input The domain name or email address to convert, as a + * Unicode string. + * @returns {String} The Punycode representation of the given domain name or + * email address. + */ +var toASCII = function toASCII(input) { + return mapDomain(input, function (string) { + return regexNonASCII.test(string) ? 'xn--' + encode(string) : string; + }); +}; + +/*--------------------------------------------------------------------------*/ + +/** Define the public API */ +var punycode = { + /** + * A string representing the current Punycode.js version number. + * @memberOf punycode + * @type String + */ + 'version': '2.1.0', + /** + * An object of methods to convert from JavaScript's internal character + * representation (UCS-2) to Unicode code points, and back. + * @see + * @memberOf punycode + * @type Object + */ + 'ucs2': { + 'decode': ucs2decode, + 'encode': ucs2encode + }, + 'decode': decode, + 'encode': encode, + 'toASCII': toASCII, + 'toUnicode': toUnicode +}; + +/** + * URI.js + * + * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript. + * @author Gary Court + * @see http://github.com/garycourt/uri-js + */ +/** + * Copyright 2011 Gary Court. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of Gary Court. + */ +var SCHEMES = {}; +function pctEncChar(chr) { + var c = chr.charCodeAt(0); + var e = void 0; + if (c < 16) e = "%0" + c.toString(16).toUpperCase();else if (c < 128) e = "%" + c.toString(16).toUpperCase();else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase(); + return e; +} +function pctDecChars(str) { + var newStr = ""; + var i = 0; + var il = str.length; + while (i < il) { + var c = parseInt(str.substr(i + 1, 2), 16); + if (c < 128) { + newStr += String.fromCharCode(c); + i += 3; + } else if (c >= 194 && c < 224) { + if (il - i >= 6) { + var c2 = parseInt(str.substr(i + 4, 2), 16); + newStr += String.fromCharCode((c & 31) << 6 | c2 & 63); + } else { + newStr += str.substr(i, 6); + } + i += 6; + } else if (c >= 224) { + if (il - i >= 9) { + var _c = parseInt(str.substr(i + 4, 2), 16); + var c3 = parseInt(str.substr(i + 7, 2), 16); + newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63); + } else { + newStr += str.substr(i, 9); + } + i += 9; + } else { + newStr += str.substr(i, 3); + i += 3; + } + } + return newStr; +} +function _normalizeComponentEncoding(components, protocol) { + function decodeUnreserved(str) { + var decStr = pctDecChars(str); + return !decStr.match(protocol.UNRESERVED) ? str : decStr; + } + if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, ""); + if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + return components; +} + +function _stripLeadingZeros(str) { + return str.replace(/^0*(.*)/, "$1") || "0"; +} +function _normalizeIPv4(host, protocol) { + var matches = host.match(protocol.IPV4ADDRESS) || []; + + var _matches = slicedToArray(matches, 2), + address = _matches[1]; + + if (address) { + return address.split(".").map(_stripLeadingZeros).join("."); + } else { + return host; + } +} +function _normalizeIPv6(host, protocol) { + var matches = host.match(protocol.IPV6ADDRESS) || []; + + var _matches2 = slicedToArray(matches, 3), + address = _matches2[1], + zone = _matches2[2]; + + if (address) { + var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(), + _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2), + last = _address$toLowerCase$2[0], + first = _address$toLowerCase$2[1]; + + var firstFields = first ? first.split(":").map(_stripLeadingZeros) : []; + var lastFields = last.split(":").map(_stripLeadingZeros); + var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]); + var fieldCount = isLastFieldIPv4Address ? 7 : 8; + var lastFieldsStart = lastFields.length - fieldCount; + var fields = Array(fieldCount); + for (var x = 0; x < fieldCount; ++x) { + fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || ''; + } + if (isLastFieldIPv4Address) { + fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol); + } + var allZeroFields = fields.reduce(function (acc, field, index) { + if (!field || field === "0") { + var lastLongest = acc[acc.length - 1]; + if (lastLongest && lastLongest.index + lastLongest.length === index) { + lastLongest.length++; + } else { + acc.push({ index: index, length: 1 }); + } + } + return acc; + }, []); + var longestZeroFields = allZeroFields.sort(function (a, b) { + return b.length - a.length; + })[0]; + var newHost = void 0; + if (longestZeroFields && longestZeroFields.length > 1) { + var newFirst = fields.slice(0, longestZeroFields.index); + var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length); + newHost = newFirst.join(":") + "::" + newLast.join(":"); + } else { + newHost = fields.join(":"); + } + if (zone) { + newHost += "%" + zone; + } + return newHost; + } else { + return host; + } +} +var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i; +var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === undefined; +function parse(uriString) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + var components = {}; + var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL; + if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString; + var matches = uriString.match(URI_PARSE); + if (matches) { + if (NO_MATCH_IS_UNDEFINED) { + //store each component + components.scheme = matches[1]; + components.userinfo = matches[3]; + components.host = matches[4]; + components.port = parseInt(matches[5], 10); + components.path = matches[6] || ""; + components.query = matches[7]; + components.fragment = matches[8]; + //fix port number + if (isNaN(components.port)) { + components.port = matches[5]; + } + } else { + //IE FIX for improper RegExp matching + //store each component + components.scheme = matches[1] || undefined; + components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : undefined; + components.host = uriString.indexOf("//") !== -1 ? matches[4] : undefined; + components.port = parseInt(matches[5], 10); + components.path = matches[6] || ""; + components.query = uriString.indexOf("?") !== -1 ? matches[7] : undefined; + components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : undefined; + //fix port number + if (isNaN(components.port)) { + components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined; + } + } + if (components.host) { + //normalize IP hosts + components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol); + } + //determine reference type + if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) { + components.reference = "same-document"; + } else if (components.scheme === undefined) { + components.reference = "relative"; + } else if (components.fragment === undefined) { + components.reference = "absolute"; + } else { + components.reference = "uri"; + } + //check for reference errors + if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) { + components.error = components.error || "URI is not a " + options.reference + " reference."; + } + //find scheme handler + var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; + //check if scheme can't handle IRIs + if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) { + //if host component is a domain name + if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) { + //convert Unicode IDN -> ASCII IDN + try { + components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()); + } catch (e) { + components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e; + } + } + //convert IRI -> URI + _normalizeComponentEncoding(components, URI_PROTOCOL); + } else { + //normalize encodings + _normalizeComponentEncoding(components, protocol); + } + //perform scheme specific parsing + if (schemeHandler && schemeHandler.parse) { + schemeHandler.parse(components, options); + } + } else { + components.error = components.error || "URI can not be parsed."; + } + return components; +} + +function _recomposeAuthority(components, options) { + var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL; + var uriTokens = []; + if (components.userinfo !== undefined) { + uriTokens.push(components.userinfo); + uriTokens.push("@"); + } + if (components.host !== undefined) { + //normalize IP hosts, add brackets and escape zone separator for IPv6 + uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) { + return "[" + $1 + ($2 ? "%25" + $2 : "") + "]"; + })); + } + if (typeof components.port === "number") { + uriTokens.push(":"); + uriTokens.push(components.port.toString(10)); + } + return uriTokens.length ? uriTokens.join("") : undefined; +} + +var RDS1 = /^\.\.?\//; +var RDS2 = /^\/\.(\/|$)/; +var RDS3 = /^\/\.\.(\/|$)/; +var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/; +function removeDotSegments(input) { + var output = []; + while (input.length) { + if (input.match(RDS1)) { + input = input.replace(RDS1, ""); + } else if (input.match(RDS2)) { + input = input.replace(RDS2, "/"); + } else if (input.match(RDS3)) { + input = input.replace(RDS3, "/"); + output.pop(); + } else if (input === "." || input === "..") { + input = ""; + } else { + var im = input.match(RDS5); + if (im) { + var s = im[0]; + input = input.slice(s.length); + output.push(s); + } else { + throw new Error("Unexpected dot segment condition"); + } + } + } + return output.join(""); +} + +function serialize(components) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL; + var uriTokens = []; + //find scheme handler + var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; + //perform scheme specific serialization + if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options); + if (components.host) { + //if host component is an IPv6 address + if (protocol.IPV6ADDRESS.test(components.host)) {} + //TODO: normalize IPv6 address as per RFC 5952 + + //if host component is a domain name + else if (options.domainHost || schemeHandler && schemeHandler.domainHost) { + //convert IDN via punycode + try { + components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host); + } catch (e) { + components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; + } + } + } + //normalize encoding + _normalizeComponentEncoding(components, protocol); + if (options.reference !== "suffix" && components.scheme) { + uriTokens.push(components.scheme); + uriTokens.push(":"); + } + var authority = _recomposeAuthority(components, options); + if (authority !== undefined) { + if (options.reference !== "suffix") { + uriTokens.push("//"); + } + uriTokens.push(authority); + if (components.path && components.path.charAt(0) !== "/") { + uriTokens.push("/"); + } + } + if (components.path !== undefined) { + var s = components.path; + if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) { + s = removeDotSegments(s); + } + if (authority === undefined) { + s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//" + } + uriTokens.push(s); + } + if (components.query !== undefined) { + uriTokens.push("?"); + uriTokens.push(components.query); + } + if (components.fragment !== undefined) { + uriTokens.push("#"); + uriTokens.push(components.fragment); + } + return uriTokens.join(""); //merge tokens into a string +} + +function resolveComponents(base, relative) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var skipNormalization = arguments[3]; + + var target = {}; + if (!skipNormalization) { + base = parse(serialize(base, options), options); //normalize base components + relative = parse(serialize(relative, options), options); //normalize relative components + } + options = options || {}; + if (!options.tolerant && relative.scheme) { + target.scheme = relative.scheme; + //target.authority = relative.authority; + target.userinfo = relative.userinfo; + target.host = relative.host; + target.port = relative.port; + target.path = removeDotSegments(relative.path || ""); + target.query = relative.query; + } else { + if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) { + //target.authority = relative.authority; + target.userinfo = relative.userinfo; + target.host = relative.host; + target.port = relative.port; + target.path = removeDotSegments(relative.path || ""); + target.query = relative.query; + } else { + if (!relative.path) { + target.path = base.path; + if (relative.query !== undefined) { + target.query = relative.query; + } else { + target.query = base.query; + } + } else { + if (relative.path.charAt(0) === "/") { + target.path = removeDotSegments(relative.path); + } else { + if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) { + target.path = "/" + relative.path; + } else if (!base.path) { + target.path = relative.path; + } else { + target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path; + } + target.path = removeDotSegments(target.path); + } + target.query = relative.query; + } + //target.authority = base.authority; + target.userinfo = base.userinfo; + target.host = base.host; + target.port = base.port; + } + target.scheme = base.scheme; + } + target.fragment = relative.fragment; + return target; +} + +function resolve(baseURI, relativeURI, options) { + var schemelessOptions = assign({ scheme: 'null' }, options); + return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions); +} + +function normalize(uri, options) { + if (typeof uri === "string") { + uri = serialize(parse(uri, options), options); + } else if (typeOf(uri) === "object") { + uri = parse(serialize(uri, options), options); + } + return uri; +} + +function equal(uriA, uriB, options) { + if (typeof uriA === "string") { + uriA = serialize(parse(uriA, options), options); + } else if (typeOf(uriA) === "object") { + uriA = serialize(uriA, options); + } + if (typeof uriB === "string") { + uriB = serialize(parse(uriB, options), options); + } else if (typeOf(uriB) === "object") { + uriB = serialize(uriB, options); + } + return uriA === uriB; +} + +function escapeComponent(str, options) { + return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar); +} + +function unescapeComponent(str, options) { + return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars); +} + +var handler = { + scheme: "http", + domainHost: true, + parse: function parse(components, options) { + //report missing host + if (!components.host) { + components.error = components.error || "HTTP URIs must have a host."; + } + return components; + }, + serialize: function serialize(components, options) { + //normalize the default port + if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") { + components.port = undefined; + } + //normalize the empty path + if (!components.path) { + components.path = "/"; + } + //NOTE: We do not parse query strings for HTTP URIs + //as WWW Form Url Encoded query strings are part of the HTML4+ spec, + //and not the HTTP spec. + return components; + } +}; + +var handler$1 = { + scheme: "https", + domainHost: handler.domainHost, + parse: handler.parse, + serialize: handler.serialize +}; + +var O = {}; +var isIRI = true; +//RFC 3986 +var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]"; +var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive +var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded +//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; = +//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]"; +//const WSP$$ = "[\\x20\\x09]"; +//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127) +//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext +//const VCHAR$$ = "[\\x21-\\x7E]"; +//const WSP$$ = "[\\x20\\x09]"; +//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext +//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+"); +//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$); +//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"'); +var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]"; +var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]"; +var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]"); +var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"; +var UNRESERVED = new RegExp(UNRESERVED$$, "g"); +var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g"); +var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g"); +var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g"); +var NOT_HFVALUE = NOT_HFNAME; +function decodeUnreserved(str) { + var decStr = pctDecChars(str); + return !decStr.match(UNRESERVED) ? str : decStr; +} +var handler$2 = { + scheme: "mailto", + parse: function parse$$1(components, options) { + var mailtoComponents = components; + var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : []; + mailtoComponents.path = undefined; + if (mailtoComponents.query) { + var unknownHeaders = false; + var headers = {}; + var hfields = mailtoComponents.query.split("&"); + for (var x = 0, xl = hfields.length; x < xl; ++x) { + var hfield = hfields[x].split("="); + switch (hfield[0]) { + case "to": + var toAddrs = hfield[1].split(","); + for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) { + to.push(toAddrs[_x]); + } + break; + case "subject": + mailtoComponents.subject = unescapeComponent(hfield[1], options); + break; + case "body": + mailtoComponents.body = unescapeComponent(hfield[1], options); + break; + default: + unknownHeaders = true; + headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options); + break; + } + } + if (unknownHeaders) mailtoComponents.headers = headers; + } + mailtoComponents.query = undefined; + for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) { + var addr = to[_x2].split("@"); + addr[0] = unescapeComponent(addr[0]); + if (!options.unicodeSupport) { + //convert Unicode IDN -> ASCII IDN + try { + addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase()); + } catch (e) { + mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e; + } + } else { + addr[1] = unescapeComponent(addr[1], options).toLowerCase(); + } + to[_x2] = addr.join("@"); + } + return mailtoComponents; + }, + serialize: function serialize$$1(mailtoComponents, options) { + var components = mailtoComponents; + var to = toArray(mailtoComponents.to); + if (to) { + for (var x = 0, xl = to.length; x < xl; ++x) { + var toAddr = String(to[x]); + var atIdx = toAddr.lastIndexOf("@"); + var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar); + var domain = toAddr.slice(atIdx + 1); + //convert IDN via punycode + try { + domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain); + } catch (e) { + components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; + } + to[x] = localPart + "@" + domain; + } + components.path = to.join(","); + } + var headers = mailtoComponents.headers = mailtoComponents.headers || {}; + if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject; + if (mailtoComponents.body) headers["body"] = mailtoComponents.body; + var fields = []; + for (var name in headers) { + if (headers[name] !== O[name]) { + fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)); + } + } + if (fields.length) { + components.query = fields.join("&"); + } + return components; + } +}; + +var URN_PARSE = /^([^\:]+)\:(.*)/; +//RFC 2141 +var handler$3 = { + scheme: "urn", + parse: function parse$$1(components, options) { + var matches = components.path && components.path.match(URN_PARSE); + var urnComponents = components; + if (matches) { + var scheme = options.scheme || urnComponents.scheme || "urn"; + var nid = matches[1].toLowerCase(); + var nss = matches[2]; + var urnScheme = scheme + ":" + (options.nid || nid); + var schemeHandler = SCHEMES[urnScheme]; + urnComponents.nid = nid; + urnComponents.nss = nss; + urnComponents.path = undefined; + if (schemeHandler) { + urnComponents = schemeHandler.parse(urnComponents, options); + } + } else { + urnComponents.error = urnComponents.error || "URN can not be parsed."; + } + return urnComponents; + }, + serialize: function serialize$$1(urnComponents, options) { + var scheme = options.scheme || urnComponents.scheme || "urn"; + var nid = urnComponents.nid; + var urnScheme = scheme + ":" + (options.nid || nid); + var schemeHandler = SCHEMES[urnScheme]; + if (schemeHandler) { + urnComponents = schemeHandler.serialize(urnComponents, options); + } + var uriComponents = urnComponents; + var nss = urnComponents.nss; + uriComponents.path = (nid || options.nid) + ":" + nss; + return uriComponents; + } +}; + +var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/; +//RFC 4122 +var handler$4 = { + scheme: "urn:uuid", + parse: function parse(urnComponents, options) { + var uuidComponents = urnComponents; + uuidComponents.uuid = uuidComponents.nss; + uuidComponents.nss = undefined; + if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) { + uuidComponents.error = uuidComponents.error || "UUID is not valid."; + } + return uuidComponents; + }, + serialize: function serialize(uuidComponents, options) { + var urnComponents = uuidComponents; + //normalize UUID + urnComponents.nss = (uuidComponents.uuid || "").toLowerCase(); + return urnComponents; + } +}; + +SCHEMES[handler.scheme] = handler; +SCHEMES[handler$1.scheme] = handler$1; +SCHEMES[handler$2.scheme] = handler$2; +SCHEMES[handler$3.scheme] = handler$3; +SCHEMES[handler$4.scheme] = handler$4; + +exports.SCHEMES = SCHEMES; +exports.pctEncChar = pctEncChar; +exports.pctDecChars = pctDecChars; +exports.parse = parse; +exports.removeDotSegments = removeDotSegments; +exports.serialize = serialize; +exports.resolveComponents = resolveComponents; +exports.resolve = resolve; +exports.normalize = normalize; +exports.equal = equal; +exports.escapeComponent = escapeComponent; +exports.unescapeComponent = unescapeComponent; + +Object.defineProperty(exports, '__esModule', { value: true }); + +}))); + + +},{}],"ajv":[function(require,module,exports){ +'use strict'; + +var compileSchema = require('./compile') + , resolve = require('./compile/resolve') + , Cache = require('./cache') + , SchemaObject = require('./compile/schema_obj') + , stableStringify = require('fast-json-stable-stringify') + , formats = require('./compile/formats') + , rules = require('./compile/rules') + , $dataMetaSchema = require('./data') + , util = require('./compile/util'); + +module.exports = Ajv; + +Ajv.prototype.validate = validate; +Ajv.prototype.compile = compile; +Ajv.prototype.addSchema = addSchema; +Ajv.prototype.addMetaSchema = addMetaSchema; +Ajv.prototype.validateSchema = validateSchema; +Ajv.prototype.getSchema = getSchema; +Ajv.prototype.removeSchema = removeSchema; +Ajv.prototype.addFormat = addFormat; +Ajv.prototype.errorsText = errorsText; + +Ajv.prototype._addSchema = _addSchema; +Ajv.prototype._compile = _compile; + +Ajv.prototype.compileAsync = require('./compile/async'); +var customKeyword = require('./keyword'); +Ajv.prototype.addKeyword = customKeyword.add; +Ajv.prototype.getKeyword = customKeyword.get; +Ajv.prototype.removeKeyword = customKeyword.remove; +Ajv.prototype.validateKeyword = customKeyword.validate; + +var errorClasses = require('./compile/error_classes'); +Ajv.ValidationError = errorClasses.Validation; +Ajv.MissingRefError = errorClasses.MissingRef; +Ajv.$dataMetaSchema = $dataMetaSchema; + +var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema'; + +var META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ]; +var META_SUPPORT_DATA = ['/properties']; + +/** + * Creates validator instance. + * Usage: `Ajv(opts)` + * @param {Object} opts optional options + * @return {Object} ajv instance + */ +function Ajv(opts) { + if (!(this instanceof Ajv)) return new Ajv(opts); + opts = this._opts = util.copy(opts) || {}; + setLogger(this); + this._schemas = {}; + this._refs = {}; + this._fragments = {}; + this._formats = formats(opts.format); + + this._cache = opts.cache || new Cache; + this._loadingSchemas = {}; + this._compilations = []; + this.RULES = rules(); + this._getId = chooseGetId(opts); + + opts.loopRequired = opts.loopRequired || Infinity; + if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true; + if (opts.serialize === undefined) opts.serialize = stableStringify; + this._metaOpts = getMetaSchemaOptions(this); + + if (opts.formats) addInitialFormats(this); + addDefaultMetaSchema(this); + if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta); + if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}}); + addInitialSchemas(this); +} + + + +/** + * Validate data using schema + * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize. + * @this Ajv + * @param {String|Object} schemaKeyRef key, ref or schema object + * @param {Any} data to be validated + * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). + */ +function validate(schemaKeyRef, data) { + var v; + if (typeof schemaKeyRef == 'string') { + v = this.getSchema(schemaKeyRef); + if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"'); + } else { + var schemaObj = this._addSchema(schemaKeyRef); + v = schemaObj.validate || this._compile(schemaObj); + } + + var valid = v(data); + if (v.$async !== true) this.errors = v.errors; + return valid; +} + + +/** + * Create validating function for passed schema. + * @this Ajv + * @param {Object} schema schema object + * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords. + * @return {Function} validating function + */ +function compile(schema, _meta) { + var schemaObj = this._addSchema(schema, undefined, _meta); + return schemaObj.validate || this._compile(schemaObj); +} + + +/** + * Adds schema to the instance. + * @this Ajv + * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. + * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. + * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead. + * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. + * @return {Ajv} this for method chaining + */ +function addSchema(schema, key, _skipValidation, _meta) { + if (Array.isArray(schema)){ + for (var i=0; i} errors optional array of validation errors, if not passed errors from the instance are used. + * @param {Object} options optional options with properties `separator` and `dataVar`. + * @return {String} human readable string with all errors descriptions + */ +function errorsText(errors, options) { + errors = errors || this.errors; + if (!errors) return 'No errors'; + options = options || {}; + var separator = options.separator === undefined ? ', ' : options.separator; + var dataVar = options.dataVar === undefined ? 'data' : options.dataVar; + + var text = ''; + for (var i=0; i%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$/,f=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,p=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return a.copy(m[e="full"==e?"full":"fast"])}function v(e){var r=e.match(o);if(!r)return!1;var t,a=+r[2],s=+r[3];return 1<=a&&a<=12&&1<=s&&s<=(2!=a||((t=+r[1])%4!=0||t%100==0&&t%400!=0)?i[a]:29)}function y(e,r){var t=e.match(n);if(!t)return!1;var a=t[1],s=t[2],o=t[3];return(a<=23&&s<=59&&o<=59||23==a&&59==s&&60==o)&&(!r||t[5])}(r.exports=m).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":f,"relative-json-pointer":p},m.full={date:v,time:y,"date-time":function(e){var r=e.split(g);return 2==r.length&&v(r[0])&&y(r[1],!0)},uri:function(e){return P.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:function(e){return e.length<=255&&s.test(e)},ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":f,"relative-json-pointer":p};var g=/t|\s/i;var P=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},{"./util":10}],5:[function(e,r,t){"use strict";var $=e("./resolve"),D=e("./util"),j=e("./error_classes"),O=e("fast-json-stable-stringify"),I=e("../dotjs/validate"),A=D.ucs2length,C=e("fast-deep-equal"),k=j.Validation;function L(e,r,t){var a=s.call(this,e,r,t);return 0<=a?{index:a,compiling:!0}:{index:a=this._compilations.length,compiling:!(this._compilations[a]={schema:e,root:r,baseId:t})}}function z(e,r,t){var a=s.call(this,e,r,t);0<=a&&this._compilations.splice(a,1)}function s(e,r,t){for(var a=0;a",g=f?">":"<",P=void 0;if(v){var E=e.util.getData(m.$data,i,e.dataPathArr),w="exclusive"+o,b="exclType"+o,S="exclIsNumber"+o,_="' + "+(R="op"+o)+" + '";s+=" var schemaExcl"+o+" = "+E+"; ";var F;P=p;(F=F||[]).push(s+=" var "+w+"; var "+b+" = typeof "+(E="schemaExcl"+o)+"; if ("+b+" != 'boolean' && "+b+" != 'undefined' && "+b+" != 'number') { "),s="",!1!==e.createErrors?(s+=" { keyword: '"+(P||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(s+=" , message: '"+p+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var x=s;s=F.pop(),s+=!e.compositeRule&&u?e.async?" throw new ValidationError(["+x+"]); ":" validate.errors = ["+x+"]; return false; ":" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" "+b+" == 'number' ? ( ("+w+" = "+a+" === undefined || "+E+" "+y+"= "+a+") ? "+h+" "+g+"= "+E+" : "+h+" "+g+" "+a+" ) : ( ("+w+" = "+E+" === true) ? "+h+" "+g+"= "+a+" : "+h+" "+g+" "+a+" ) || "+h+" !== "+h+") { var op"+o+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===n&&(c=e.errSchemaPath+"/"+(P=p),a=E,d=v)}else{_=y;if((S="number"==typeof m)&&d){var R="'"+_+"'";s+=" if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" ( "+a+" === undefined || "+m+" "+y+"= "+a+" ? "+h+" "+g+"= "+m+" : "+h+" "+g+" "+a+" ) || "+h+" !== "+h+") { "}else{S&&void 0===n?(w=!0,c=e.errSchemaPath+"/"+(P=p),a=m,g+="="):(S&&(a=Math[f?"min":"max"](m,n)),m===(!S||a)?(w=!0,c=e.errSchemaPath+"/"+(P=p),g+="="):(w=!1,_+="="));R="'"+_+"'";s+=" if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" "+h+" "+g+" "+a+" || "+h+" !== "+h+") { "}}P=P||r,(F=F||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(P||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+R+", limit: "+a+", exclusive: "+w+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be "+_+" ",s+=d?"' + "+a:a+"'"),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";x=s;return s=F.pop(),s+=!e.compositeRule&&u?e.async?" throw new ValidationError(["+x+"]); ":" validate.errors = ["+x+"]; return false; ":" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u&&(s+=" else { "),s}},{}],14:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,h="data"+(i||""),d=e.opts.$data&&n&&n.$data;a=d?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ","schema"+o):n,s+="if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || ");var f=r,p=p||[];p.push(s+=" "+h+".length "+("maxItems"==r?">":"<")+" "+a+") { "),s="",!1!==e.createErrors?(s+=" { keyword: '"+(f||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxItems"==r?"more":"fewer",s+=" than ",s+=d?"' + "+a+" + '":""+n,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var m=s;return s=p.pop(),s+=!e.compositeRule&&u?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}},{}],15:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,h="data"+(i||""),d=e.opts.$data&&n&&n.$data;a=d?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ","schema"+o):n,s+="if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=!1===e.opts.unicode?" "+h+".length ":" ucs2length("+h+") ";var f=r,p=p||[];p.push(s+=" "+("maxLength"==r?">":"<")+" "+a+") { "),s="",!1!==e.createErrors?(s+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT be ",s+="maxLength"==r?"longer":"shorter",s+=" than ",s+=d?"' + "+a+" + '":""+n,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var m=s;return s=p.pop(),s+=!e.compositeRule&&u?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}},{}],16:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,h="data"+(i||""),d=e.opts.$data&&n&&n.$data;a=d?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ","schema"+o):n,s+="if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || ");var f=r,p=p||[];p.push(s+=" Object.keys("+h+").length "+("maxProperties"==r?">":"<")+" "+a+") { "),s="",!1!==e.createErrors?(s+=" { keyword: '"+(f||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxProperties"==r?"more":"fewer",s+=" than ",s+=d?"' + "+a+" + '":""+n,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var m=s;return s=p.pop(),s+=!e.compositeRule&&u?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}},{}],17:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a=" ",s=e.schema[r],o=e.schemaPath+e.util.getProperty(r),i=e.errSchemaPath+"/"+r,n=!e.opts.allErrors,l=e.util.copy(e),c="";l.level++;var u="valid"+l.level,h=l.baseId,d=!0,f=s;if(f)for(var p,m=-1,v=f.length-1;m "+x+") { ";var $=u+"["+x+"]";f.schema=F,f.schemaPath=n+"["+x+"]",f.errSchemaPath=l+"/"+x,f.errorPath=e.util.getPathExpr(e.errorPath,x,e.opts.jsonPointers,!0),f.dataPathArr[y]=x;var D=e.validate(f);f.baseId=P,e.util.varOccurences(D,g)<2?a+=" "+e.util.varReplace(D,g,$)+" ":a+=" var "+g+" = "+$+"; "+D+" ",a+=" } ",c&&(a+=" if ("+m+") { ",p+="}")}if("object"==typeof E&&(e.opts.strictKeywords?"object"==typeof E&&0 "+i.length+") { for (var "+v+" = "+i.length+"; "+v+" < "+u+".length; "+v+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);$=u+"["+v+"]";f.dataPathArr[y]=v;D=e.validate(f);f.baseId=P,e.util.varOccurences(D,g)<2?a+=" "+e.util.varReplace(D,g,$)+" ":a+=" var "+g+" = "+$+"; "+D+" ",c&&(a+=" if (!"+m+") break; "),a+=" } } ",c&&(a+=" if ("+m+") { ",p+="}")}}else if(e.opts.strictKeywords?"object"==typeof i&&0 1e-"+e.opts.multipleOfPrecision+" ":" division"+o+" !== parseInt(division"+o+") ",s+=" ) ",d&&(s+=" ) ");var f=f||[];f.push(s+=" ) { "),s="",!1!==e.createErrors?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be multiple of ",s+=d?"' + "+a:a+"'"),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var p=s;return s=f.pop(),s+=!e.compositeRule&&u?e.async?" throw new ValidationError(["+p+"]); ":" validate.errors = ["+p+"]; return false; ":" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}},{}],30:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(o||""),h="errs__"+s,d=e.util.copy(e);d.level++;var f="valid"+d.level;if(e.opts.strictKeywords?"object"==typeof i&&0 1) { ";var p=e.schema.items&&e.schema.items.type,m=Array.isArray(p);if(!p||"object"==p||"array"==p||m&&(0<=p.indexOf("object")||0<=p.indexOf("array")))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+h+"[i], "+h+"[j])) { "+d+" = false; break outer; } } } ";else s+=" var itemIndices = {}, item; for (;i--;) { var item = "+h+"[i]; ",s+=" if ("+e.util["checkDataType"+(m?"s":"")](p,"item",!0)+") continue; ",m&&(s+=" if (typeof item == 'string') item = '\"' + item; "),s+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ";s+=" } ",f&&(s+=" } ");var v=v||[];v.push(s+=" if (!"+d+") { "),s="",!1!==e.createErrors?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema: ",s+=f?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var y=s;s=v.pop(),s+=!e.compositeRule&&u?e.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u&&(s+=" else { ")}else u&&(s+=" if (true) { ");return s}},{}],38:[function(e,r,t){"use strict";r.exports=function(a,e,r){var t="",s=!0===a.schema.$async,o=a.util.schemaHasRulesExcept(a.schema,a.RULES.all,"$ref"),i=a.self._getId(a.schema);if(a.opts.strictKeywords){var n=a.util.schemaUnknownRules(a.schema,a.RULES.keywords);if(n){var l="unknown keyword: "+n;if("log"!==a.opts.strictKeywords)throw new Error(l);a.logger.warn(l)}}if(a.isTop&&(t+=" var validate = ",s&&(a.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(a.opts.sourceCode||a.opts.processCode)&&(t+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof a.schema||!o&&!a.schema.$ref){var c=a.level,u=a.dataLevel,h=a.schema[e="false schema"],d=a.schemaPath+a.util.getProperty(e),f=a.errSchemaPath+"/"+e,p=!a.opts.allErrors,m="data"+(u||""),v="valid"+c;if(!1===a.schema){a.isTop?p=!0:t+=" var "+v+" = false; ",(G=G||[]).push(t),t="",!1!==a.createErrors?(t+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: {} ",!1!==a.opts.messages&&(t+=" , message: 'boolean schema is false' "),a.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";var y=t;t=G.pop(),t+=!a.compositeRule&&p?a.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else t+=a.isTop?s?" return data; ":" validate.errors = null; return true; ":" var "+v+" = true; ";return a.isTop&&(t+=" }; return validate; "),t}if(a.isTop){var g=a.isTop;c=a.level=0,u=a.dataLevel=0,m="data";if(a.rootId=a.resolve.fullPath(a.self._getId(a.root.schema)),a.baseId=a.baseId||a.rootId,delete a.isTop,a.dataPathArr=[void 0],void 0!==a.schema.default&&a.opts.useDefaults&&a.opts.strictDefaults){var P="default is ignored in the schema root";if("log"!==a.opts.strictDefaults)throw new Error(P);a.logger.warn(P)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{c=a.level,m="data"+((u=a.dataLevel)||"");if(i&&(a.baseId=a.resolve.url(a.baseId,i)),s&&!a.async)throw new Error("async schema in sync schema");t+=" var errs_"+c+" = errors;"}v="valid"+c,p=!a.opts.allErrors;var E="",w="",b=a.schema.type,S=Array.isArray(b);if(b&&a.opts.nullable&&!0===a.schema.nullable&&(S?-1==b.indexOf("null")&&(b=b.concat("null")):"null"!=b&&(b=[b,"null"],S=!0)),S&&1==b.length&&(b=b[0],S=!1),a.schema.$ref&&o){if("fail"==a.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+a.errSchemaPath+'" (see option extendRefs)');!0!==a.opts.extendRefs&&(o=!1,a.logger.warn('$ref: keywords ignored in schema at path "'+a.errSchemaPath+'"'))}if(a.schema.$comment&&a.opts.$comment&&(t+=" "+a.RULES.all.$comment.code(a,"$comment")),b){if(a.opts.coerceTypes)var _=a.util.coerceToTypes(a.opts.coerceTypes,b);var F=a.RULES.types[b];if(_||S||!0===F||F&&!Y(F)){d=a.schemaPath+".type",f=a.errSchemaPath+"/type",d=a.schemaPath+".type",f=a.errSchemaPath+"/type";if(t+=" if ("+a.util[S?"checkDataTypes":"checkDataType"](b,m,!0)+") { ",_){var x="dataType"+c,R="coerced"+c;t+=" var "+x+" = typeof "+m+"; ","array"==a.opts.coerceTypes&&(t+=" if ("+x+" == 'object' && Array.isArray("+m+")) "+x+" = 'array'; "),t+=" var "+R+" = undefined; ";var $="",D=_;if(D)for(var j,O=-1,I=D.length-1;O= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=Math.floor,z=String.fromCharCode;function T(e){throw new RangeError(i[e])}function n(e,r){var t=e.split("@"),a="";return 1>1,e+=L(e/r);455L((A-s)/h))&&T("overflow"),s+=f*h;var p=d<=i?1:i+26<=d?26:d-i;if(fL(A/m)&&T("overflow"),h*=m}var v=t.length+1;i=Q(s-u,v,0==u),L(s/v)>A-o&&T("overflow"),o+=L(s/v),s%=v,t.splice(s++,0,o)}return String.fromCodePoint.apply(String,t)},c=function(e){var r=[],t=(e=q(e)).length,a=128,s=0,o=72,i=!0,n=!1,l=void 0;try{for(var c,u=e[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var h=c.value;h<128&&r.push(z(h))}}catch(e){n=!0,l=e}finally{try{!i&&u.return&&u.return()}finally{if(n)throw l}}var d=r.length,f=d;for(d&&r.push("-");fL((A-s)/w)&&T("overflow"),s+=(p-a)*w,a=p;var b=!0,S=!1,_=void 0;try{for(var F,x=e[Symbol.iterator]();!(b=(F=x.next()).done);b=!0){var R=F.value;if(RA&&T("overflow"),R==a){for(var $=s,D=36;;D+=36){var j=D<=o?1:o+26<=D?26:D-o;if($>6|192).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase():"%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase()}function f(e){for(var r="",t=0,a=e.length;tA-Z\\x5E-\\x7E]",'[\\"\\\\]'),Z=new RegExp(K,"g"),G=new RegExp(B,"g"),Y=new RegExp(C("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',J),"g"),W=new RegExp(C("[^]",K,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),X=W;function ee(e){var r=f(e);return r.match(Z)?r:e}var re={scheme:"mailto",parse:function(e,r){var t=e,a=t.to=t.path?t.path.split(","):[];if(t.path=void 0,t.query){for(var s=!1,o={},i=t.query.split("&"),n=0,l=i.length;n); + + message: string; + errors: Array; + ajv: true; + validation: true; + } + + class MissingRefError extends Error { + constructor(baseId: string, ref: string, message?: string); + static message: (baseId: string, ref: string) => string; + + message: string; + missingRef: string; + missingSchema: string; + } +} + +declare namespace ajv { + type ValidationError = AjvErrors.ValidationError; + + type MissingRefError = AjvErrors.MissingRefError; + + interface Ajv { + /** + * Validate data using schema + * Schema will be compiled and cached (using serialized JSON as key, [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize by default). + * @param {string|object|Boolean} schemaKeyRef key, ref or schema object + * @param {Any} data to be validated + * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). + */ + validate(schemaKeyRef: object | string | boolean, data: any): boolean | PromiseLike; + /** + * Create validating function for passed schema. + * @param {object|Boolean} schema schema object + * @return {Function} validating function + */ + compile(schema: object | boolean): ValidateFunction; + /** + * Creates validating function for passed schema with asynchronous loading of missing schemas. + * `loadSchema` option should be a function that accepts schema uri and node-style callback. + * @this Ajv + * @param {object|Boolean} schema schema object + * @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped + * @param {Function} callback optional node-style callback, it is always called with 2 parameters: error (or null) and validating function. + * @return {PromiseLike} validating function + */ + compileAsync(schema: object | boolean, meta?: Boolean, callback?: (err: Error, validate: ValidateFunction) => any): PromiseLike; + /** + * Adds schema to the instance. + * @param {object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. + * @param {string} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. + * @return {Ajv} this for method chaining + */ + addSchema(schema: Array | object, key?: string): Ajv; + /** + * Add schema that will be used to validate other schemas + * options in META_IGNORE_OPTIONS are alway set to false + * @param {object} schema schema object + * @param {string} key optional schema key + * @return {Ajv} this for method chaining + */ + addMetaSchema(schema: object, key?: string): Ajv; + /** + * Validate schema + * @param {object|Boolean} schema schema to validate + * @return {Boolean} true if schema is valid + */ + validateSchema(schema: object | boolean): boolean; + /** + * Get compiled schema from the instance by `key` or `ref`. + * @param {string} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id). + * @return {Function} schema validating function (with property `schema`). + */ + getSchema(keyRef: string): ValidateFunction; + /** + * Remove cached schema(s). + * If no parameter is passed all schemas but meta-schemas are removed. + * If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. + * Even if schema is referenced by other schemas it still can be removed as other schemas have local references. + * @param {string|object|RegExp|Boolean} schemaKeyRef key, ref, pattern to match key/ref or schema object + * @return {Ajv} this for method chaining + */ + removeSchema(schemaKeyRef?: object | string | RegExp | boolean): Ajv; + /** + * Add custom format + * @param {string} name format name + * @param {string|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid) + * @return {Ajv} this for method chaining + */ + addFormat(name: string, format: FormatValidator | FormatDefinition): Ajv; + /** + * Define custom keyword + * @this Ajv + * @param {string} keyword custom keyword, should be a valid identifier, should be different from all standard, custom and macro keywords. + * @param {object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. + * @return {Ajv} this for method chaining + */ + addKeyword(keyword: string, definition: KeywordDefinition): Ajv; + /** + * Get keyword definition + * @this Ajv + * @param {string} keyword pre-defined or custom keyword. + * @return {object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise. + */ + getKeyword(keyword: string): object | boolean; + /** + * Remove keyword + * @this Ajv + * @param {string} keyword pre-defined or custom keyword. + * @return {Ajv} this for method chaining + */ + removeKeyword(keyword: string): Ajv; + /** + * Validate keyword + * @this Ajv + * @param {object} definition keyword definition object + * @param {boolean} throwError true to throw exception if definition is invalid + * @return {boolean} validation result + */ + validateKeyword(definition: KeywordDefinition, throwError: boolean): boolean; + /** + * Convert array of error message objects to string + * @param {Array} errors optional array of validation errors, if not passed errors from the instance are used. + * @param {object} options optional options with properties `separator` and `dataVar`. + * @return {string} human readable string with all errors descriptions + */ + errorsText(errors?: Array | null, options?: ErrorsTextOptions): string; + errors?: Array | null; + } + + interface CustomLogger { + log(...args: any[]): any; + warn(...args: any[]): any; + error(...args: any[]): any; + } + + interface ValidateFunction { + ( + data: any, + dataPath?: string, + parentData?: object | Array, + parentDataProperty?: string | number, + rootData?: object | Array + ): boolean | PromiseLike; + schema?: object | boolean; + errors?: null | Array; + refs?: object; + refVal?: Array; + root?: ValidateFunction | object; + $async?: true; + source?: object; + } + + interface Options { + $data?: boolean; + allErrors?: boolean; + verbose?: boolean; + jsonPointers?: boolean; + uniqueItems?: boolean; + unicode?: boolean; + format?: string; + formats?: object; + unknownFormats?: true | string[] | 'ignore'; + schemas?: Array | object; + schemaId?: '$id' | 'id' | 'auto'; + missingRefs?: true | 'ignore' | 'fail'; + extendRefs?: true | 'ignore' | 'fail'; + loadSchema?: (uri: string, cb?: (err: Error, schema: object) => void) => PromiseLike; + removeAdditional?: boolean | 'all' | 'failing'; + useDefaults?: boolean | 'empty' | 'shared'; + coerceTypes?: boolean | 'array'; + strictDefaults?: boolean | 'log'; + strictKeywords?: boolean | 'log'; + async?: boolean | string; + transpile?: string | ((code: string) => string); + meta?: boolean | object; + validateSchema?: boolean | 'log'; + addUsedSchema?: boolean; + inlineRefs?: boolean | number; + passContext?: boolean; + loopRequired?: number; + ownProperties?: boolean; + multipleOfPrecision?: boolean | number; + errorDataPath?: string, + messages?: boolean; + sourceCode?: boolean; + processCode?: (code: string) => string; + cache?: object; + logger?: CustomLogger | false; + nullable?: boolean; + serialize?: ((schema: object | boolean) => any) | false; + } + + type FormatValidator = string | RegExp | ((data: string) => boolean | PromiseLike); + type NumberFormatValidator = ((data: number) => boolean | PromiseLike); + + interface NumberFormatDefinition { + type: "number", + validate: NumberFormatValidator; + compare?: (data1: number, data2: number) => number; + async?: boolean; + } + + interface StringFormatDefinition { + type?: "string", + validate: FormatValidator; + compare?: (data1: string, data2: string) => number; + async?: boolean; + } + + type FormatDefinition = NumberFormatDefinition | StringFormatDefinition; + + interface KeywordDefinition { + type?: string | Array; + async?: boolean; + $data?: boolean; + errors?: boolean | string; + metaSchema?: object; + // schema: false makes validate not to expect schema (ValidateFunction) + schema?: boolean; + statements?: boolean; + dependencies?: Array; + modifying?: boolean; + valid?: boolean; + // one and only one of the following properties should be present + validate?: SchemaValidateFunction | ValidateFunction; + compile?: (schema: any, parentSchema: object, it: CompilationContext) => ValidateFunction; + macro?: (schema: any, parentSchema: object, it: CompilationContext) => object | boolean; + inline?: (it: CompilationContext, keyword: string, schema: any, parentSchema: object) => string; + } + + interface CompilationContext { + level: number; + dataLevel: number; + schema: any; + schemaPath: string; + baseId: string; + async: boolean; + opts: Options; + formats: { + [index: string]: FormatDefinition | undefined; + }; + compositeRule: boolean; + validate: (schema: object) => boolean; + util: { + copy(obj: any, target?: any): any; + toHash(source: string[]): { [index: string]: true | undefined }; + equal(obj: any, target: any): boolean; + getProperty(str: string): string; + schemaHasRules(schema: object, rules: any): string; + escapeQuotes(str: string): string; + toQuotedString(str: string): string; + getData(jsonPointer: string, dataLevel: number, paths: string[]): string; + escapeJsonPointer(str: string): string; + unescapeJsonPointer(str: string): string; + escapeFragment(str: string): string; + unescapeFragment(str: string): string; + }; + self: Ajv; + } + + interface SchemaValidateFunction { + ( + schema: any, + data: any, + parentSchema?: object, + dataPath?: string, + parentData?: object | Array, + parentDataProperty?: string | number, + rootData?: object | Array + ): boolean | PromiseLike; + errors?: Array; + } + + interface ErrorsTextOptions { + separator?: string; + dataVar?: string; + } + + interface ErrorObject { + keyword: string; + dataPath: string; + schemaPath: string; + params: ErrorParameters; + // Added to validation errors of propertyNames keyword schema + propertyName?: string; + // Excluded if messages set to false. + message?: string; + // These are added with the `verbose` option. + schema?: any; + parentSchema?: object; + data?: any; + } + + type ErrorParameters = RefParams | LimitParams | AdditionalPropertiesParams | + DependenciesParams | FormatParams | ComparisonParams | + MultipleOfParams | PatternParams | RequiredParams | + TypeParams | UniqueItemsParams | CustomParams | + PatternRequiredParams | PropertyNamesParams | + IfParams | SwitchParams | NoParams | EnumParams; + + interface RefParams { + ref: string; + } + + interface LimitParams { + limit: number; + } + + interface AdditionalPropertiesParams { + additionalProperty: string; + } + + interface DependenciesParams { + property: string; + missingProperty: string; + depsCount: number; + deps: string; + } + + interface FormatParams { + format: string + } + + interface ComparisonParams { + comparison: string; + limit: number | string; + exclusive: boolean; + } + + interface MultipleOfParams { + multipleOf: number; + } + + interface PatternParams { + pattern: string; + } + + interface RequiredParams { + missingProperty: string; + } + + interface TypeParams { + type: string; + } + + interface UniqueItemsParams { + i: number; + j: number; + } + + interface CustomParams { + keyword: string; + } + + interface PatternRequiredParams { + missingPattern: string; + } + + interface PropertyNamesParams { + propertyName: string; + } + + interface IfParams { + failingKeyword: string; + } + + interface SwitchParams { + caseIndex: number; + } + + interface NoParams { } + + interface EnumParams { + allowedValues: Array; + } +} + +export = ajv; diff --git a/nodered/rootfs/data/node_modules/ajv/lib/ajv.js b/nodered/rootfs/data/node_modules/ajv/lib/ajv.js new file mode 100644 index 0000000..611b938 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/ajv.js @@ -0,0 +1,497 @@ +'use strict'; + +var compileSchema = require('./compile') + , resolve = require('./compile/resolve') + , Cache = require('./cache') + , SchemaObject = require('./compile/schema_obj') + , stableStringify = require('fast-json-stable-stringify') + , formats = require('./compile/formats') + , rules = require('./compile/rules') + , $dataMetaSchema = require('./data') + , util = require('./compile/util'); + +module.exports = Ajv; + +Ajv.prototype.validate = validate; +Ajv.prototype.compile = compile; +Ajv.prototype.addSchema = addSchema; +Ajv.prototype.addMetaSchema = addMetaSchema; +Ajv.prototype.validateSchema = validateSchema; +Ajv.prototype.getSchema = getSchema; +Ajv.prototype.removeSchema = removeSchema; +Ajv.prototype.addFormat = addFormat; +Ajv.prototype.errorsText = errorsText; + +Ajv.prototype._addSchema = _addSchema; +Ajv.prototype._compile = _compile; + +Ajv.prototype.compileAsync = require('./compile/async'); +var customKeyword = require('./keyword'); +Ajv.prototype.addKeyword = customKeyword.add; +Ajv.prototype.getKeyword = customKeyword.get; +Ajv.prototype.removeKeyword = customKeyword.remove; +Ajv.prototype.validateKeyword = customKeyword.validate; + +var errorClasses = require('./compile/error_classes'); +Ajv.ValidationError = errorClasses.Validation; +Ajv.MissingRefError = errorClasses.MissingRef; +Ajv.$dataMetaSchema = $dataMetaSchema; + +var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema'; + +var META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ]; +var META_SUPPORT_DATA = ['/properties']; + +/** + * Creates validator instance. + * Usage: `Ajv(opts)` + * @param {Object} opts optional options + * @return {Object} ajv instance + */ +function Ajv(opts) { + if (!(this instanceof Ajv)) return new Ajv(opts); + opts = this._opts = util.copy(opts) || {}; + setLogger(this); + this._schemas = {}; + this._refs = {}; + this._fragments = {}; + this._formats = formats(opts.format); + + this._cache = opts.cache || new Cache; + this._loadingSchemas = {}; + this._compilations = []; + this.RULES = rules(); + this._getId = chooseGetId(opts); + + opts.loopRequired = opts.loopRequired || Infinity; + if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true; + if (opts.serialize === undefined) opts.serialize = stableStringify; + this._metaOpts = getMetaSchemaOptions(this); + + if (opts.formats) addInitialFormats(this); + addDefaultMetaSchema(this); + if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta); + if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}}); + addInitialSchemas(this); +} + + + +/** + * Validate data using schema + * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize. + * @this Ajv + * @param {String|Object} schemaKeyRef key, ref or schema object + * @param {Any} data to be validated + * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). + */ +function validate(schemaKeyRef, data) { + var v; + if (typeof schemaKeyRef == 'string') { + v = this.getSchema(schemaKeyRef); + if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"'); + } else { + var schemaObj = this._addSchema(schemaKeyRef); + v = schemaObj.validate || this._compile(schemaObj); + } + + var valid = v(data); + if (v.$async !== true) this.errors = v.errors; + return valid; +} + + +/** + * Create validating function for passed schema. + * @this Ajv + * @param {Object} schema schema object + * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords. + * @return {Function} validating function + */ +function compile(schema, _meta) { + var schemaObj = this._addSchema(schema, undefined, _meta); + return schemaObj.validate || this._compile(schemaObj); +} + + +/** + * Adds schema to the instance. + * @this Ajv + * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. + * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. + * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead. + * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. + * @return {Ajv} this for method chaining + */ +function addSchema(schema, key, _skipValidation, _meta) { + if (Array.isArray(schema)){ + for (var i=0; i} errors optional array of validation errors, if not passed errors from the instance are used. + * @param {Object} options optional options with properties `separator` and `dataVar`. + * @return {String} human readable string with all errors descriptions + */ +function errorsText(errors, options) { + errors = errors || this.errors; + if (!errors) return 'No errors'; + options = options || {}; + var separator = options.separator === undefined ? ', ' : options.separator; + var dataVar = options.dataVar === undefined ? 'data' : options.dataVar; + + var text = ''; + for (var i=0; i%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; +// For the source: https://gist.github.com/dperini/729294 +// For test cases: https://mathiasbynens.be/demo/url-regex +// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983. +// var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; +var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i; +var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; +var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/; +var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; +var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; + + +module.exports = formats; + +function formats(mode) { + mode = mode == 'full' ? 'full' : 'fast'; + return util.copy(formats[mode]); +} + + +formats.fast = { + // date: http://tools.ietf.org/html/rfc3339#section-5.6 + date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, + // date-time: http://tools.ietf.org/html/rfc3339#section-5.6 + time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i, + 'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i, + // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js + uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i, + 'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, + 'uri-template': URITEMPLATE, + url: URL, + // email (sources from jsen validator): + // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363 + // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation') + email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, + hostname: HOSTNAME, + // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html + ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, + // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses + ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, + regex: regex, + // uuid: http://tools.ietf.org/html/rfc4122 + uuid: UUID, + // JSON-pointer: https://tools.ietf.org/html/rfc6901 + // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A + 'json-pointer': JSON_POINTER, + 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, + // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00 + 'relative-json-pointer': RELATIVE_JSON_POINTER +}; + + +formats.full = { + date: date, + time: time, + 'date-time': date_time, + uri: uri, + 'uri-reference': URIREF, + 'uri-template': URITEMPLATE, + url: URL, + email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, + hostname: hostname, + ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, + ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, + regex: regex, + uuid: UUID, + 'json-pointer': JSON_POINTER, + 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, + 'relative-json-pointer': RELATIVE_JSON_POINTER +}; + + +function isLeapYear(year) { + // https://tools.ietf.org/html/rfc3339#appendix-C + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); +} + + +function date(str) { + // full-date from http://tools.ietf.org/html/rfc3339#section-5.6 + var matches = str.match(DATE); + if (!matches) return false; + + var year = +matches[1]; + var month = +matches[2]; + var day = +matches[3]; + + return month >= 1 && month <= 12 && day >= 1 && + day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]); +} + + +function time(str, full) { + var matches = str.match(TIME); + if (!matches) return false; + + var hour = matches[1]; + var minute = matches[2]; + var second = matches[3]; + var timeZone = matches[5]; + return ((hour <= 23 && minute <= 59 && second <= 59) || + (hour == 23 && minute == 59 && second == 60)) && + (!full || timeZone); +} + + +var DATE_TIME_SEPARATOR = /t|\s/i; +function date_time(str) { + // http://tools.ietf.org/html/rfc3339#section-5.6 + var dateTime = str.split(DATE_TIME_SEPARATOR); + return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true); +} + + +function hostname(str) { + // https://tools.ietf.org/html/rfc1034#section-3.5 + // https://tools.ietf.org/html/rfc1123#section-2 + return str.length <= 255 && HOSTNAME.test(str); +} + + +var NOT_URI_FRAGMENT = /\/|:/; +function uri(str) { + // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "." + return NOT_URI_FRAGMENT.test(str) && URI.test(str); +} + + +var Z_ANCHOR = /[^\\]\\Z/; +function regex(str) { + if (Z_ANCHOR.test(str)) return false; + try { + new RegExp(str); + return true; + } catch(e) { + return false; + } +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/compile/index.js b/nodered/rootfs/data/node_modules/ajv/lib/compile/index.js new file mode 100644 index 0000000..f4d3f0d --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/compile/index.js @@ -0,0 +1,387 @@ +'use strict'; + +var resolve = require('./resolve') + , util = require('./util') + , errorClasses = require('./error_classes') + , stableStringify = require('fast-json-stable-stringify'); + +var validateGenerator = require('../dotjs/validate'); + +/** + * Functions below are used inside compiled validations function + */ + +var ucs2length = util.ucs2length; +var equal = require('fast-deep-equal'); + +// this error is thrown by async schemas to return validation errors via exception +var ValidationError = errorClasses.Validation; + +module.exports = compile; + + +/** + * Compiles schema to validation function + * @this Ajv + * @param {Object} schema schema object + * @param {Object} root object with information about the root schema for this schema + * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution + * @param {String} baseId base ID for IDs in the schema + * @return {Function} validation function + */ +function compile(schema, root, localRefs, baseId) { + /* jshint validthis: true, evil: true */ + /* eslint no-shadow: 0 */ + var self = this + , opts = this._opts + , refVal = [ undefined ] + , refs = {} + , patterns = [] + , patternsHash = {} + , defaults = [] + , defaultsHash = {} + , customRules = []; + + root = root || { schema: schema, refVal: refVal, refs: refs }; + + var c = checkCompiling.call(this, schema, root, baseId); + var compilation = this._compilations[c.index]; + if (c.compiling) return (compilation.callValidate = callValidate); + + var formats = this._formats; + var RULES = this.RULES; + + try { + var v = localCompile(schema, root, localRefs, baseId); + compilation.validate = v; + var cv = compilation.callValidate; + if (cv) { + cv.schema = v.schema; + cv.errors = null; + cv.refs = v.refs; + cv.refVal = v.refVal; + cv.root = v.root; + cv.$async = v.$async; + if (opts.sourceCode) cv.source = v.source; + } + return v; + } finally { + endCompiling.call(this, schema, root, baseId); + } + + /* @this {*} - custom context, see passContext option */ + function callValidate() { + /* jshint validthis: true */ + var validate = compilation.validate; + var result = validate.apply(this, arguments); + callValidate.errors = validate.errors; + return result; + } + + function localCompile(_schema, _root, localRefs, baseId) { + var isRoot = !_root || (_root && _root.schema == _schema); + if (_root.schema != root.schema) + return compile.call(self, _schema, _root, localRefs, baseId); + + var $async = _schema.$async === true; + + var sourceCode = validateGenerator({ + isTop: true, + schema: _schema, + isRoot: isRoot, + baseId: baseId, + root: _root, + schemaPath: '', + errSchemaPath: '#', + errorPath: '""', + MissingRefError: errorClasses.MissingRef, + RULES: RULES, + validate: validateGenerator, + util: util, + resolve: resolve, + resolveRef: resolveRef, + usePattern: usePattern, + useDefault: useDefault, + useCustomRule: useCustomRule, + opts: opts, + formats: formats, + logger: self.logger, + self: self + }); + + sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode) + + vars(defaults, defaultCode) + vars(customRules, customRuleCode) + + sourceCode; + + if (opts.processCode) sourceCode = opts.processCode(sourceCode); + // console.log('\n\n\n *** \n', JSON.stringify(sourceCode)); + var validate; + try { + var makeValidate = new Function( + 'self', + 'RULES', + 'formats', + 'root', + 'refVal', + 'defaults', + 'customRules', + 'equal', + 'ucs2length', + 'ValidationError', + sourceCode + ); + + validate = makeValidate( + self, + RULES, + formats, + root, + refVal, + defaults, + customRules, + equal, + ucs2length, + ValidationError + ); + + refVal[0] = validate; + } catch(e) { + self.logger.error('Error compiling schema, function code:', sourceCode); + throw e; + } + + validate.schema = _schema; + validate.errors = null; + validate.refs = refs; + validate.refVal = refVal; + validate.root = isRoot ? validate : _root; + if ($async) validate.$async = true; + if (opts.sourceCode === true) { + validate.source = { + code: sourceCode, + patterns: patterns, + defaults: defaults + }; + } + + return validate; + } + + function resolveRef(baseId, ref, isRoot) { + ref = resolve.url(baseId, ref); + var refIndex = refs[ref]; + var _refVal, refCode; + if (refIndex !== undefined) { + _refVal = refVal[refIndex]; + refCode = 'refVal[' + refIndex + ']'; + return resolvedRef(_refVal, refCode); + } + if (!isRoot && root.refs) { + var rootRefId = root.refs[ref]; + if (rootRefId !== undefined) { + _refVal = root.refVal[rootRefId]; + refCode = addLocalRef(ref, _refVal); + return resolvedRef(_refVal, refCode); + } + } + + refCode = addLocalRef(ref); + var v = resolve.call(self, localCompile, root, ref); + if (v === undefined) { + var localSchema = localRefs && localRefs[ref]; + if (localSchema) { + v = resolve.inlineRef(localSchema, opts.inlineRefs) + ? localSchema + : compile.call(self, localSchema, root, localRefs, baseId); + } + } + + if (v === undefined) { + removeLocalRef(ref); + } else { + replaceLocalRef(ref, v); + return resolvedRef(v, refCode); + } + } + + function addLocalRef(ref, v) { + var refId = refVal.length; + refVal[refId] = v; + refs[ref] = refId; + return 'refVal' + refId; + } + + function removeLocalRef(ref) { + delete refs[ref]; + } + + function replaceLocalRef(ref, v) { + var refId = refs[ref]; + refVal[refId] = v; + } + + function resolvedRef(refVal, code) { + return typeof refVal == 'object' || typeof refVal == 'boolean' + ? { code: code, schema: refVal, inline: true } + : { code: code, $async: refVal && !!refVal.$async }; + } + + function usePattern(regexStr) { + var index = patternsHash[regexStr]; + if (index === undefined) { + index = patternsHash[regexStr] = patterns.length; + patterns[index] = regexStr; + } + return 'pattern' + index; + } + + function useDefault(value) { + switch (typeof value) { + case 'boolean': + case 'number': + return '' + value; + case 'string': + return util.toQuotedString(value); + case 'object': + if (value === null) return 'null'; + var valueStr = stableStringify(value); + var index = defaultsHash[valueStr]; + if (index === undefined) { + index = defaultsHash[valueStr] = defaults.length; + defaults[index] = value; + } + return 'default' + index; + } + } + + function useCustomRule(rule, schema, parentSchema, it) { + if (self._opts.validateSchema !== false) { + var deps = rule.definition.dependencies; + if (deps && !deps.every(function(keyword) { + return Object.prototype.hasOwnProperty.call(parentSchema, keyword); + })) + throw new Error('parent schema must have all required keywords: ' + deps.join(',')); + + var validateSchema = rule.definition.validateSchema; + if (validateSchema) { + var valid = validateSchema(schema); + if (!valid) { + var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors); + if (self._opts.validateSchema == 'log') self.logger.error(message); + else throw new Error(message); + } + } + } + + var compile = rule.definition.compile + , inline = rule.definition.inline + , macro = rule.definition.macro; + + var validate; + if (compile) { + validate = compile.call(self, schema, parentSchema, it); + } else if (macro) { + validate = macro.call(self, schema, parentSchema, it); + if (opts.validateSchema !== false) self.validateSchema(validate, true); + } else if (inline) { + validate = inline.call(self, it, rule.keyword, schema, parentSchema); + } else { + validate = rule.definition.validate; + if (!validate) return; + } + + if (validate === undefined) + throw new Error('custom keyword "' + rule.keyword + '"failed to compile'); + + var index = customRules.length; + customRules[index] = validate; + + return { + code: 'customRule' + index, + validate: validate + }; + } +} + + +/** + * Checks if the schema is currently compiled + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + * @return {Object} object with properties "index" (compilation index) and "compiling" (boolean) + */ +function checkCompiling(schema, root, baseId) { + /* jshint validthis: true */ + var index = compIndex.call(this, schema, root, baseId); + if (index >= 0) return { index: index, compiling: true }; + index = this._compilations.length; + this._compilations[index] = { + schema: schema, + root: root, + baseId: baseId + }; + return { index: index, compiling: false }; +} + + +/** + * Removes the schema from the currently compiled list + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + */ +function endCompiling(schema, root, baseId) { + /* jshint validthis: true */ + var i = compIndex.call(this, schema, root, baseId); + if (i >= 0) this._compilations.splice(i, 1); +} + + +/** + * Index of schema compilation in the currently compiled list + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + * @return {Integer} compilation index + */ +function compIndex(schema, root, baseId) { + /* jshint validthis: true */ + for (var i=0; i= 0xD800 && value <= 0xDBFF && pos < len) { + // high surrogate, and there is a next character + value = str.charCodeAt(pos); + if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate + } + } + return length; +}; diff --git a/nodered/rootfs/data/node_modules/ajv/lib/compile/util.js b/nodered/rootfs/data/node_modules/ajv/lib/compile/util.js new file mode 100644 index 0000000..0efa001 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/compile/util.js @@ -0,0 +1,274 @@ +'use strict'; + + +module.exports = { + copy: copy, + checkDataType: checkDataType, + checkDataTypes: checkDataTypes, + coerceToTypes: coerceToTypes, + toHash: toHash, + getProperty: getProperty, + escapeQuotes: escapeQuotes, + equal: require('fast-deep-equal'), + ucs2length: require('./ucs2length'), + varOccurences: varOccurences, + varReplace: varReplace, + cleanUpCode: cleanUpCode, + finalCleanUpCode: finalCleanUpCode, + schemaHasRules: schemaHasRules, + schemaHasRulesExcept: schemaHasRulesExcept, + schemaUnknownRules: schemaUnknownRules, + toQuotedString: toQuotedString, + getPathExpr: getPathExpr, + getPath: getPath, + getData: getData, + unescapeFragment: unescapeFragment, + unescapeJsonPointer: unescapeJsonPointer, + escapeFragment: escapeFragment, + escapeJsonPointer: escapeJsonPointer +}; + + +function copy(o, to) { + to = to || {}; + for (var key in o) to[key] = o[key]; + return to; +} + + +function checkDataType(dataType, data, negate) { + var EQUAL = negate ? ' !== ' : ' === ' + , AND = negate ? ' || ' : ' && ' + , OK = negate ? '!' : '' + , NOT = negate ? '' : '!'; + switch (dataType) { + case 'null': return data + EQUAL + 'null'; + case 'array': return OK + 'Array.isArray(' + data + ')'; + case 'object': return '(' + OK + data + AND + + 'typeof ' + data + EQUAL + '"object"' + AND + + NOT + 'Array.isArray(' + data + '))'; + case 'integer': return '(typeof ' + data + EQUAL + '"number"' + AND + + NOT + '(' + data + ' % 1)' + + AND + data + EQUAL + data + ')'; + default: return 'typeof ' + data + EQUAL + '"' + dataType + '"'; + } +} + + +function checkDataTypes(dataTypes, data) { + switch (dataTypes.length) { + case 1: return checkDataType(dataTypes[0], data, true); + default: + var code = ''; + var types = toHash(dataTypes); + if (types.array && types.object) { + code = types.null ? '(': '(!' + data + ' || '; + code += 'typeof ' + data + ' !== "object")'; + delete types.null; + delete types.array; + delete types.object; + } + if (types.number) delete types.integer; + for (var t in types) + code += (code ? ' && ' : '' ) + checkDataType(t, data, true); + + return code; + } +} + + +var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]); +function coerceToTypes(optionCoerceTypes, dataTypes) { + if (Array.isArray(dataTypes)) { + var types = []; + for (var i=0; i= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl); + return paths[lvl - up]; + } + + if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl); + data = 'data' + ((lvl - up) || ''); + if (!jsonPointer) return data; + } + + var expr = data; + var segments = jsonPointer.split('/'); + for (var i=0; i' + , $notOp = $isMax ? '>' : '<' + , $errorKeyword = undefined; +}} + +{{? $isDataExcl }} + {{ + var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr) + , $exclusive = 'exclusive' + $lvl + , $exclType = 'exclType' + $lvl + , $exclIsNumber = 'exclIsNumber' + $lvl + , $opExpr = 'op' + $lvl + , $opStr = '\' + ' + $opExpr + ' + \''; + }} + var schemaExcl{{=$lvl}} = {{=$schemaValueExcl}}; + {{ $schemaValueExcl = 'schemaExcl' + $lvl; }} + + var {{=$exclusive}}; + var {{=$exclType}} = typeof {{=$schemaValueExcl}}; + if ({{=$exclType}} != 'boolean' && {{=$exclType}} != 'undefined' && {{=$exclType}} != 'number') { + {{ var $errorKeyword = $exclusiveKeyword; }} + {{# def.error:'_exclusiveLimit' }} + } else if ({{# def.$dataNotType:'number' }} + {{=$exclType}} == 'number' + ? ( + ({{=$exclusive}} = {{=$schemaValue}} === undefined || {{=$schemaValueExcl}} {{=$op}}= {{=$schemaValue}}) + ? {{=$data}} {{=$notOp}}= {{=$schemaValueExcl}} + : {{=$data}} {{=$notOp}} {{=$schemaValue}} + ) + : ( + ({{=$exclusive}} = {{=$schemaValueExcl}} === true) + ? {{=$data}} {{=$notOp}}= {{=$schemaValue}} + : {{=$data}} {{=$notOp}} {{=$schemaValue}} + ) + || {{=$data}} !== {{=$data}}) { + var op{{=$lvl}} = {{=$exclusive}} ? '{{=$op}}' : '{{=$op}}='; + {{ + if ($schema === undefined) { + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaValueExcl; + $isData = $isDataExcl; + } + }} +{{??}} + {{ + var $exclIsNumber = typeof $schemaExcl == 'number' + , $opStr = $op; /*used in error*/ + }} + + {{? $exclIsNumber && $isData }} + {{ var $opExpr = '\'' + $opStr + '\''; /*used in error*/ }} + if ({{# def.$dataNotType:'number' }} + ( {{=$schemaValue}} === undefined + || {{=$schemaExcl}} {{=$op}}= {{=$schemaValue}} + ? {{=$data}} {{=$notOp}}= {{=$schemaExcl}} + : {{=$data}} {{=$notOp}} {{=$schemaValue}} ) + || {{=$data}} !== {{=$data}}) { + {{??}} + {{ + if ($exclIsNumber && $schema === undefined) { + {{# def.setExclusiveLimit }} + $schemaValue = $schemaExcl; + $notOp += '='; + } else { + if ($exclIsNumber) + $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema); + + if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) { + {{# def.setExclusiveLimit }} + $notOp += '='; + } else { + $exclusive = false; + $opStr += '='; + } + } + + var $opExpr = '\'' + $opStr + '\''; /*used in error*/ + }} + + if ({{# def.$dataNotType:'number' }} + {{=$data}} {{=$notOp}} {{=$schemaValue}} + || {{=$data}} !== {{=$data}}) { + {{?}} +{{?}} + {{ $errorKeyword = $errorKeyword || $keyword; }} + {{# def.error:'_limit' }} + } {{? $breakOnError }} else { {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/_limitItems.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/_limitItems.jst new file mode 100644 index 0000000..a3e078e --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/_limitItems.jst @@ -0,0 +1,10 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ var $op = $keyword == 'maxItems' ? '>' : '<'; }} +if ({{# def.$dataNotType:'number' }} {{=$data}}.length {{=$op}} {{=$schemaValue}}) { + {{ var $errorKeyword = $keyword; }} + {{# def.error:'_limitItems' }} +} {{? $breakOnError }} else { {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/_limitLength.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/_limitLength.jst new file mode 100644 index 0000000..cfc8dbb --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/_limitLength.jst @@ -0,0 +1,10 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ var $op = $keyword == 'maxLength' ? '>' : '<'; }} +if ({{# def.$dataNotType:'number' }} {{# def.strLength }} {{=$op}} {{=$schemaValue}}) { + {{ var $errorKeyword = $keyword; }} + {{# def.error:'_limitLength' }} +} {{? $breakOnError }} else { {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/_limitProperties.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/_limitProperties.jst new file mode 100644 index 0000000..da7ea77 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/_limitProperties.jst @@ -0,0 +1,10 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ var $op = $keyword == 'maxProperties' ? '>' : '<'; }} +if ({{# def.$dataNotType:'number' }} Object.keys({{=$data}}).length {{=$op}} {{=$schemaValue}}) { + {{ var $errorKeyword = $keyword; }} + {{# def.error:'_limitProperties' }} +} {{? $breakOnError }} else { {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/allOf.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/allOf.jst new file mode 100644 index 0000000..4c28363 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/allOf.jst @@ -0,0 +1,34 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +{{ + var $currentBaseId = $it.baseId + , $allSchemasEmpty = true; +}} + +{{~ $schema:$sch:$i }} + {{? {{# def.nonEmptySchema:$sch }} }} + {{ + $allSchemasEmpty = false; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + }} + + {{# def.insertSubschemaCode }} + + {{# def.ifResultValid }} + {{?}} +{{~}} + +{{? $breakOnError }} + {{? $allSchemasEmpty }} + if (true) { + {{??}} + {{= $closingBraces.slice(0,-1) }} + {{?}} +{{?}} + +{{# def.cleanUp }} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/anyOf.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/anyOf.jst new file mode 100644 index 0000000..086cf2b --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/anyOf.jst @@ -0,0 +1,48 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +{{ + var $noEmptySchema = $schema.every(function($sch) { + return {{# def.nonEmptySchema:$sch }}; + }); +}} +{{? $noEmptySchema }} + {{ var $currentBaseId = $it.baseId; }} + var {{=$errs}} = errors; + var {{=$valid}} = false; + + {{# def.setCompositeRule }} + + {{~ $schema:$sch:$i }} + {{ + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + }} + + {{# def.insertSubschemaCode }} + + {{=$valid}} = {{=$valid}} || {{=$nextValid}}; + + if (!{{=$valid}}) { + {{ $closingBraces += '}'; }} + {{~}} + + {{# def.resetCompositeRule }} + + {{= $closingBraces }} + + if (!{{=$valid}}) { + {{# def.extraError:'anyOf' }} + } else { + {{# def.resetErrors }} + {{? it.opts.allErrors }} } {{?}} + + {{# def.cleanUp }} +{{??}} + {{? $breakOnError }} + if (true) { + {{?}} +{{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/coerce.def b/nodered/rootfs/data/node_modules/ajv/lib/dot/coerce.def new file mode 100644 index 0000000..86e0e18 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/coerce.def @@ -0,0 +1,61 @@ +{{## def.coerceType: + {{ + var $dataType = 'dataType' + $lvl + , $coerced = 'coerced' + $lvl; + }} + var {{=$dataType}} = typeof {{=$data}}; + {{? it.opts.coerceTypes == 'array'}} + if ({{=$dataType}} == 'object' && Array.isArray({{=$data}})) {{=$dataType}} = 'array'; + {{?}} + + var {{=$coerced}} = undefined; + + {{ var $bracesCoercion = ''; }} + {{~ $coerceToTypes:$type:$i }} + {{? $i }} + if ({{=$coerced}} === undefined) { + {{ $bracesCoercion += '}'; }} + {{?}} + + {{? it.opts.coerceTypes == 'array' && $type != 'array' }} + if ({{=$dataType}} == 'array' && {{=$data}}.length == 1) { + {{=$coerced}} = {{=$data}} = {{=$data}}[0]; + {{=$dataType}} = typeof {{=$data}}; + /*if ({{=$dataType}} == 'object' && Array.isArray({{=$data}})) {{=$dataType}} = 'array';*/ + } + {{?}} + + {{? $type == 'string' }} + if ({{=$dataType}} == 'number' || {{=$dataType}} == 'boolean') + {{=$coerced}} = '' + {{=$data}}; + else if ({{=$data}} === null) {{=$coerced}} = ''; + {{?? $type == 'number' || $type == 'integer' }} + if ({{=$dataType}} == 'boolean' || {{=$data}} === null + || ({{=$dataType}} == 'string' && {{=$data}} && {{=$data}} == +{{=$data}} + {{? $type == 'integer' }} && !({{=$data}} % 1){{?}})) + {{=$coerced}} = +{{=$data}}; + {{?? $type == 'boolean' }} + if ({{=$data}} === 'false' || {{=$data}} === 0 || {{=$data}} === null) + {{=$coerced}} = false; + else if ({{=$data}} === 'true' || {{=$data}} === 1) + {{=$coerced}} = true; + {{?? $type == 'null' }} + if ({{=$data}} === '' || {{=$data}} === 0 || {{=$data}} === false) + {{=$coerced}} = null; + {{?? it.opts.coerceTypes == 'array' && $type == 'array' }} + if ({{=$dataType}} == 'string' || {{=$dataType}} == 'number' || {{=$dataType}} == 'boolean' || {{=$data}} == null) + {{=$coerced}} = [{{=$data}}]; + {{?}} + {{~}} + + {{= $bracesCoercion }} + + if ({{=$coerced}} === undefined) { + {{# def.error:'type' }} + } else { + {{# def.setParentData }} + {{=$data}} = {{=$coerced}}; + {{? !$dataLvl }}if ({{=$parentData}} !== undefined){{?}} + {{=$parentData}}[{{=$parentDataProperty}}] = {{=$coerced}}; + } +#}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/comment.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/comment.jst new file mode 100644 index 0000000..f959150 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/comment.jst @@ -0,0 +1,9 @@ +{{# def.definitions }} +{{# def.setupKeyword }} + +{{ var $comment = it.util.toQuotedString($schema); }} +{{? it.opts.$comment === true }} + console.log({{=$comment}}); +{{?? typeof it.opts.$comment == 'function' }} + self._opts.$comment({{=$comment}}, {{=it.util.toQuotedString($errSchemaPath)}}, validate.root.schema); +{{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/const.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/const.jst new file mode 100644 index 0000000..2aa2298 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/const.jst @@ -0,0 +1,11 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{? !$isData }} + var schema{{=$lvl}} = validate.schema{{=$schemaPath}}; +{{?}} +var {{=$valid}} = equal({{=$data}}, schema{{=$lvl}}); +{{# def.checkError:'const' }} +{{? $breakOnError }} else { {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/contains.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/contains.jst new file mode 100644 index 0000000..925d2c8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/contains.jst @@ -0,0 +1,57 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + + +{{ + var $idx = 'i' + $lvl + , $dataNxt = $it.dataLevel = it.dataLevel + 1 + , $nextData = 'data' + $dataNxt + , $currentBaseId = it.baseId + , $nonEmptySchema = {{# def.nonEmptySchema:$schema }}; +}} + +var {{=$errs}} = errors; +var {{=$valid}}; + +{{? $nonEmptySchema }} + {{# def.setCompositeRule }} + + {{ + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + + var {{=$nextValid}} = false; + + for (var {{=$idx}} = 0; {{=$idx}} < {{=$data}}.length; {{=$idx}}++) { + {{ + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + + if ({{=$nextValid}}) break; + } + + {{# def.resetCompositeRule }} + {{= $closingBraces }} + + if (!{{=$nextValid}}) { +{{??}} + if ({{=$data}}.length == 0) { +{{?}} + + {{# def.error:'contains' }} + } else { + {{? $nonEmptySchema }} + {{# def.resetErrors }} + {{?}} + {{? it.opts.allErrors }} } {{?}} + +{{# def.cleanUp }} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/custom.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/custom.jst new file mode 100644 index 0000000..d30588f --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/custom.jst @@ -0,0 +1,191 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ + var $rule = this + , $definition = 'definition' + $lvl + , $rDef = $rule.definition + , $closingBraces = ''; + var $validate = $rDef.validate; + var $compile, $inline, $macro, $ruleValidate, $validateCode; +}} + +{{? $isData && $rDef.$data }} + {{ + $validateCode = 'keywordValidate' + $lvl; + var $validateSchema = $rDef.validateSchema; + }} + var {{=$definition}} = RULES.custom['{{=$keyword}}'].definition; + var {{=$validateCode}} = {{=$definition}}.validate; +{{??}} + {{ + $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it); + if (!$ruleValidate) return; + $schemaValue = 'validate.schema' + $schemaPath; + $validateCode = $ruleValidate.code; + $compile = $rDef.compile; + $inline = $rDef.inline; + $macro = $rDef.macro; + }} +{{?}} + +{{ + var $ruleErrs = $validateCode + '.errors' + , $i = 'i' + $lvl + , $ruleErr = 'ruleErr' + $lvl + , $asyncKeyword = $rDef.async; + + if ($asyncKeyword && !it.async) + throw new Error('async keyword in sync schema'); +}} + + +{{? !($inline || $macro) }}{{=$ruleErrs}} = null;{{?}} +var {{=$errs}} = errors; +var {{=$valid}}; + +{{## def.callRuleValidate: + {{=$validateCode}}.call( + {{? it.opts.passContext }}this{{??}}self{{?}} + {{? $compile || $rDef.schema === false }} + , {{=$data}} + {{??}} + , {{=$schemaValue}} + , {{=$data}} + , validate.schema{{=it.schemaPath}} + {{?}} + , {{# def.dataPath }} + {{# def.passParentData }} + , rootData + ) +#}} + +{{## def.extendErrors:_inline: + for (var {{=$i}}={{=$errs}}; {{=$i}} 0 + : it.util.schemaHasRules(_schema, it.RULES.all)) +#}} + + +{{## def.strLength: + {{? it.opts.unicode === false }} + {{=$data}}.length + {{??}} + ucs2length({{=$data}}) + {{?}} +#}} + + +{{## def.willOptimize: + it.util.varOccurences($code, $nextData) < 2 +#}} + + +{{## def.generateSubschemaCode: + {{ + var $code = it.validate($it); + $it.baseId = $currentBaseId; + }} +#}} + + +{{## def.insertSubschemaCode: + {{= it.validate($it) }} + {{ $it.baseId = $currentBaseId; }} +#}} + + +{{## def._optimizeValidate: + it.util.varReplace($code, $nextData, $passData) +#}} + + +{{## def.optimizeValidate: + {{? {{# def.willOptimize}} }} + {{= {{# def._optimizeValidate }} }} + {{??}} + var {{=$nextData}} = {{=$passData}}; + {{= $code }} + {{?}} +#}} + + +{{## def.cleanUp: {{ out = it.util.cleanUpCode(out); }} #}} + + +{{## def.finalCleanUp: {{ out = it.util.finalCleanUpCode(out, $async); }} #}} + + +{{## def.$data: + {{ + var $isData = it.opts.$data && $schema && $schema.$data + , $schemaValue; + }} + {{? $isData }} + var schema{{=$lvl}} = {{= it.util.getData($schema.$data, $dataLvl, it.dataPathArr) }}; + {{ $schemaValue = 'schema' + $lvl; }} + {{??}} + {{ $schemaValue = $schema; }} + {{?}} +#}} + + +{{## def.$dataNotType:_type: + {{?$isData}} ({{=$schemaValue}} !== undefined && typeof {{=$schemaValue}} != _type) || {{?}} +#}} + + +{{## def.check$dataIsArray: + if (schema{{=$lvl}} === undefined) {{=$valid}} = true; + else if (!Array.isArray(schema{{=$lvl}})) {{=$valid}} = false; + else { +#}} + + +{{## def.beginDefOut: + {{ + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; + }} +#}} + + +{{## def.storeDefOut:_variable: + {{ + var _variable = out; + out = $$outStack.pop(); + }} +#}} + + +{{## def.dataPath:(dataPath || ''){{? it.errorPath != '""'}} + {{= it.errorPath }}{{?}}#}} + +{{## def.setParentData: + {{ + var $parentData = $dataLvl ? 'data' + (($dataLvl-1)||'') : 'parentData' + , $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; + }} +#}} + +{{## def.passParentData: + {{# def.setParentData }} + , {{= $parentData }} + , {{= $parentDataProperty }} +#}} + + +{{## def.iterateProperties: + {{? $ownProperties }} + {{=$dataProperties}} = {{=$dataProperties}} || Object.keys({{=$data}}); + for (var {{=$idx}}=0; {{=$idx}}<{{=$dataProperties}}.length; {{=$idx}}++) { + var {{=$key}} = {{=$dataProperties}}[{{=$idx}}]; + {{??}} + for (var {{=$key}} in {{=$data}}) { + {{?}} +#}} + + +{{## def.noPropertyInData: + {{=$useData}} === undefined + {{? $ownProperties }} + || !{{# def.isOwnProperty }} + {{?}} +#}} + + +{{## def.isOwnProperty: + Object.prototype.hasOwnProperty.call({{=$data}}, '{{=it.util.escapeQuotes($propertyKey)}}') +#}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/dependencies.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/dependencies.jst new file mode 100644 index 0000000..c41f334 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/dependencies.jst @@ -0,0 +1,80 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.missing }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + + +{{## def.propertyInData: + {{=$data}}{{= it.util.getProperty($property) }} !== undefined + {{? $ownProperties }} + && Object.prototype.hasOwnProperty.call({{=$data}}, '{{=it.util.escapeQuotes($property)}}') + {{?}} +#}} + + +{{ + var $schemaDeps = {} + , $propertyDeps = {} + , $ownProperties = it.opts.ownProperties; + + for ($property in $schema) { + var $sch = $schema[$property]; + var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps; + $deps[$property] = $sch; + } +}} + +var {{=$errs}} = errors; + +{{ var $currentErrorPath = it.errorPath; }} + +var missing{{=$lvl}}; +{{ for (var $property in $propertyDeps) { }} + {{ $deps = $propertyDeps[$property]; }} + {{? $deps.length }} + if ({{# def.propertyInData }} + {{? $breakOnError }} + && ({{# def.checkMissingProperty:$deps }})) { + {{# def.errorMissingProperty:'dependencies' }} + {{??}} + ) { + {{~ $deps:$propertyKey }} + {{# def.allErrorsMissingProperty:'dependencies' }} + {{~}} + {{?}} + } {{# def.elseIfValid }} + {{?}} +{{ } }} + +{{ + it.errorPath = $currentErrorPath; + var $currentBaseId = $it.baseId; +}} + + +{{ for (var $property in $schemaDeps) { }} + {{ var $sch = $schemaDeps[$property]; }} + {{? {{# def.nonEmptySchema:$sch }} }} + {{=$nextValid}} = true; + + if ({{# def.propertyInData }}) { + {{ + $it.schema = $sch; + $it.schemaPath = $schemaPath + it.util.getProperty($property); + $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property); + }} + + {{# def.insertSubschemaCode }} + } + + {{# def.ifResultValid }} + {{?}} +{{ } }} + +{{? $breakOnError }} + {{= $closingBraces }} + if ({{=$errs}} == errors) { +{{?}} + +{{# def.cleanUp }} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/enum.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/enum.jst new file mode 100644 index 0000000..357c2e8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/enum.jst @@ -0,0 +1,30 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ + var $i = 'i' + $lvl + , $vSchema = 'schema' + $lvl; +}} + +{{? !$isData }} + var {{=$vSchema}} = validate.schema{{=$schemaPath}}; +{{?}} +var {{=$valid}}; + +{{?$isData}}{{# def.check$dataIsArray }}{{?}} + +{{=$valid}} = false; + +for (var {{=$i}}=0; {{=$i}}<{{=$vSchema}}.length; {{=$i}}++) + if (equal({{=$data}}, {{=$vSchema}}[{{=$i}}])) { + {{=$valid}} = true; + break; + } + +{{? $isData }} } {{?}} + +{{# def.checkError:'enum' }} + +{{? $breakOnError }} else { {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/errors.def b/nodered/rootfs/data/node_modules/ajv/lib/dot/errors.def new file mode 100644 index 0000000..5c5752c --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/errors.def @@ -0,0 +1,194 @@ +{{# def.definitions }} + +{{## def._error:_rule: + {{ 'istanbul ignore else'; }} + {{? it.createErrors !== false }} + { + keyword: '{{= $errorKeyword || _rule }}' + , dataPath: (dataPath || '') + {{= it.errorPath }} + , schemaPath: {{=it.util.toQuotedString($errSchemaPath)}} + , params: {{# def._errorParams[_rule] }} + {{? it.opts.messages !== false }} + , message: {{# def._errorMessages[_rule] }} + {{?}} + {{? it.opts.verbose }} + , schema: {{# def._errorSchemas[_rule] }} + , parentSchema: validate.schema{{=it.schemaPath}} + , data: {{=$data}} + {{?}} + } + {{??}} + {} + {{?}} +#}} + + +{{## def._addError:_rule: + if (vErrors === null) vErrors = [err]; + else vErrors.push(err); + errors++; +#}} + + +{{## def.addError:_rule: + var err = {{# def._error:_rule }}; + {{# def._addError:_rule }} +#}} + + +{{## def.error:_rule: + {{# def.beginDefOut}} + {{# def._error:_rule }} + {{# def.storeDefOut:__err }} + + {{? !it.compositeRule && $breakOnError }} + {{ 'istanbul ignore if'; }} + {{? it.async }} + throw new ValidationError([{{=__err}}]); + {{??}} + validate.errors = [{{=__err}}]; + return false; + {{?}} + {{??}} + var err = {{=__err}}; + {{# def._addError:_rule }} + {{?}} +#}} + + +{{## def.extraError:_rule: + {{# def.addError:_rule}} + {{? !it.compositeRule && $breakOnError }} + {{ 'istanbul ignore if'; }} + {{? it.async }} + throw new ValidationError(vErrors); + {{??}} + validate.errors = vErrors; + return false; + {{?}} + {{?}} +#}} + + +{{## def.checkError:_rule: + if (!{{=$valid}}) { + {{# def.error:_rule }} + } +#}} + + +{{## def.resetErrors: + errors = {{=$errs}}; + if (vErrors !== null) { + if ({{=$errs}}) vErrors.length = {{=$errs}}; + else vErrors = null; + } +#}} + + +{{## def.concatSchema:{{?$isData}}' + {{=$schemaValue}} + '{{??}}{{=$schema}}{{?}}#}} +{{## def.appendSchema:{{?$isData}}' + {{=$schemaValue}}{{??}}{{=$schemaValue}}'{{?}}#}} +{{## def.concatSchemaEQ:{{?$isData}}' + {{=$schemaValue}} + '{{??}}{{=it.util.escapeQuotes($schema)}}{{?}}#}} + +{{## def._errorMessages = { + 'false schema': "'boolean schema is false'", + $ref: "'can\\\'t resolve reference {{=it.util.escapeQuotes($schema)}}'", + additionalItems: "'should NOT have more than {{=$schema.length}} items'", + additionalProperties: "'{{? it.opts._errorDataPathProperty }}is an invalid additional property{{??}}should NOT have additional properties{{?}}'", + anyOf: "'should match some schema in anyOf'", + const: "'should be equal to constant'", + contains: "'should contain a valid item'", + dependencies: "'should have {{? $deps.length == 1 }}property {{= it.util.escapeQuotes($deps[0]) }}{{??}}properties {{= it.util.escapeQuotes($deps.join(\", \")) }}{{?}} when property {{= it.util.escapeQuotes($property) }} is present'", + 'enum': "'should be equal to one of the allowed values'", + format: "'should match format \"{{#def.concatSchemaEQ}}\"'", + 'if': "'should match \"' + {{=$ifClause}} + '\" schema'", + _limit: "'should be {{=$opStr}} {{#def.appendSchema}}", + _exclusiveLimit: "'{{=$exclusiveKeyword}} should be boolean'", + _limitItems: "'should NOT have {{?$keyword=='maxItems'}}more{{??}}fewer{{?}} than {{#def.concatSchema}} items'", + _limitLength: "'should NOT be {{?$keyword=='maxLength'}}longer{{??}}shorter{{?}} than {{#def.concatSchema}} characters'", + _limitProperties:"'should NOT have {{?$keyword=='maxProperties'}}more{{??}}fewer{{?}} than {{#def.concatSchema}} properties'", + multipleOf: "'should be multiple of {{#def.appendSchema}}", + not: "'should NOT be valid'", + oneOf: "'should match exactly one schema in oneOf'", + pattern: "'should match pattern \"{{#def.concatSchemaEQ}}\"'", + propertyNames: "'property name \\'{{=$invalidName}}\\' is invalid'", + required: "'{{? it.opts._errorDataPathProperty }}is a required property{{??}}should have required property \\'{{=$missingProperty}}\\'{{?}}'", + type: "'should be {{? $typeIsArray }}{{= $typeSchema.join(\",\") }}{{??}}{{=$typeSchema}}{{?}}'", + uniqueItems: "'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)'", + custom: "'should pass \"{{=$rule.keyword}}\" keyword validation'", + patternRequired: "'should have property matching pattern \\'{{=$missingPattern}}\\''", + switch: "'should pass \"switch\" keyword validation'", + _formatLimit: "'should be {{=$opStr}} \"{{#def.concatSchemaEQ}}\"'", + _formatExclusiveLimit: "'{{=$exclusiveKeyword}} should be boolean'" +} #}} + + +{{## def.schemaRefOrVal: {{?$isData}}validate.schema{{=$schemaPath}}{{??}}{{=$schema}}{{?}} #}} +{{## def.schemaRefOrQS: {{?$isData}}validate.schema{{=$schemaPath}}{{??}}{{=it.util.toQuotedString($schema)}}{{?}} #}} + +{{## def._errorSchemas = { + 'false schema': "false", + $ref: "{{=it.util.toQuotedString($schema)}}", + additionalItems: "false", + additionalProperties: "false", + anyOf: "validate.schema{{=$schemaPath}}", + const: "validate.schema{{=$schemaPath}}", + contains: "validate.schema{{=$schemaPath}}", + dependencies: "validate.schema{{=$schemaPath}}", + 'enum': "validate.schema{{=$schemaPath}}", + format: "{{#def.schemaRefOrQS}}", + 'if': "validate.schema{{=$schemaPath}}", + _limit: "{{#def.schemaRefOrVal}}", + _exclusiveLimit: "validate.schema{{=$schemaPath}}", + _limitItems: "{{#def.schemaRefOrVal}}", + _limitLength: "{{#def.schemaRefOrVal}}", + _limitProperties:"{{#def.schemaRefOrVal}}", + multipleOf: "{{#def.schemaRefOrVal}}", + not: "validate.schema{{=$schemaPath}}", + oneOf: "validate.schema{{=$schemaPath}}", + pattern: "{{#def.schemaRefOrQS}}", + propertyNames: "validate.schema{{=$schemaPath}}", + required: "validate.schema{{=$schemaPath}}", + type: "validate.schema{{=$schemaPath}}", + uniqueItems: "{{#def.schemaRefOrVal}}", + custom: "validate.schema{{=$schemaPath}}", + patternRequired: "validate.schema{{=$schemaPath}}", + switch: "validate.schema{{=$schemaPath}}", + _formatLimit: "{{#def.schemaRefOrQS}}", + _formatExclusiveLimit: "validate.schema{{=$schemaPath}}" +} #}} + + +{{## def.schemaValueQS: {{?$isData}}{{=$schemaValue}}{{??}}{{=it.util.toQuotedString($schema)}}{{?}} #}} + +{{## def._errorParams = { + 'false schema': "{}", + $ref: "{ ref: '{{=it.util.escapeQuotes($schema)}}' }", + additionalItems: "{ limit: {{=$schema.length}} }", + additionalProperties: "{ additionalProperty: '{{=$additionalProperty}}' }", + anyOf: "{}", + const: "{ allowedValue: schema{{=$lvl}} }", + contains: "{}", + dependencies: "{ property: '{{= it.util.escapeQuotes($property) }}', missingProperty: '{{=$missingProperty}}', depsCount: {{=$deps.length}}, deps: '{{= it.util.escapeQuotes($deps.length==1 ? $deps[0] : $deps.join(\", \")) }}' }", + 'enum': "{ allowedValues: schema{{=$lvl}} }", + format: "{ format: {{#def.schemaValueQS}} }", + 'if': "{ failingKeyword: {{=$ifClause}} }", + _limit: "{ comparison: {{=$opExpr}}, limit: {{=$schemaValue}}, exclusive: {{=$exclusive}} }", + _exclusiveLimit: "{}", + _limitItems: "{ limit: {{=$schemaValue}} }", + _limitLength: "{ limit: {{=$schemaValue}} }", + _limitProperties:"{ limit: {{=$schemaValue}} }", + multipleOf: "{ multipleOf: {{=$schemaValue}} }", + not: "{}", + oneOf: "{ passingSchemas: {{=$passingSchemas}} }", + pattern: "{ pattern: {{#def.schemaValueQS}} }", + propertyNames: "{ propertyName: '{{=$invalidName}}' }", + required: "{ missingProperty: '{{=$missingProperty}}' }", + type: "{ type: '{{? $typeIsArray }}{{= $typeSchema.join(\",\") }}{{??}}{{=$typeSchema}}{{?}}' }", + uniqueItems: "{ i: i, j: j }", + custom: "{ keyword: '{{=$rule.keyword}}' }", + patternRequired: "{ missingPattern: '{{=$missingPattern}}' }", + switch: "{ caseIndex: {{=$caseIndex}} }", + _formatLimit: "{ comparison: {{=$opExpr}}, limit: {{#def.schemaValueQS}}, exclusive: {{=$exclusive}} }", + _formatExclusiveLimit: "{}" +} #}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/format.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/format.jst new file mode 100644 index 0000000..37f14da --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/format.jst @@ -0,0 +1,106 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} + +{{## def.skipFormat: + {{? $breakOnError }} if (true) { {{?}} + {{ return out; }} +#}} + +{{? it.opts.format === false }}{{# def.skipFormat }}{{?}} + + +{{# def.$data }} + + +{{## def.$dataCheckFormat: + {{# def.$dataNotType:'string' }} + ({{? $unknownFormats != 'ignore' }} + ({{=$schemaValue}} && !{{=$format}} + {{? $allowUnknown }} + && self._opts.unknownFormats.indexOf({{=$schemaValue}}) == -1 + {{?}}) || + {{?}} + ({{=$format}} && {{=$formatType}} == '{{=$ruleType}}' + && !(typeof {{=$format}} == 'function' + ? {{? it.async}} + (async{{=$lvl}} ? await {{=$format}}({{=$data}}) : {{=$format}}({{=$data}})) + {{??}} + {{=$format}}({{=$data}}) + {{?}} + : {{=$format}}.test({{=$data}})))) +#}} + +{{## def.checkFormat: + {{ + var $formatRef = 'formats' + it.util.getProperty($schema); + if ($isObject) $formatRef += '.validate'; + }} + {{? typeof $format == 'function' }} + {{=$formatRef}}({{=$data}}) + {{??}} + {{=$formatRef}}.test({{=$data}}) + {{?}} +#}} + + +{{ + var $unknownFormats = it.opts.unknownFormats + , $allowUnknown = Array.isArray($unknownFormats); +}} + +{{? $isData }} + {{ + var $format = 'format' + $lvl + , $isObject = 'isObject' + $lvl + , $formatType = 'formatType' + $lvl; + }} + var {{=$format}} = formats[{{=$schemaValue}}]; + var {{=$isObject}} = typeof {{=$format}} == 'object' + && !({{=$format}} instanceof RegExp) + && {{=$format}}.validate; + var {{=$formatType}} = {{=$isObject}} && {{=$format}}.type || 'string'; + if ({{=$isObject}}) { + {{? it.async}} + var async{{=$lvl}} = {{=$format}}.async; + {{?}} + {{=$format}} = {{=$format}}.validate; + } + if ({{# def.$dataCheckFormat }}) { +{{??}} + {{ var $format = it.formats[$schema]; }} + {{? !$format }} + {{? $unknownFormats == 'ignore' }} + {{ it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"'); }} + {{# def.skipFormat }} + {{?? $allowUnknown && $unknownFormats.indexOf($schema) >= 0 }} + {{# def.skipFormat }} + {{??}} + {{ throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); }} + {{?}} + {{?}} + {{ + var $isObject = typeof $format == 'object' + && !($format instanceof RegExp) + && $format.validate; + var $formatType = $isObject && $format.type || 'string'; + if ($isObject) { + var $async = $format.async === true; + $format = $format.validate; + } + }} + {{? $formatType != $ruleType }} + {{# def.skipFormat }} + {{?}} + {{? $async }} + {{ + if (!it.async) throw new Error('async format in sync schema'); + var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate'; + }} + if (!(await {{=$formatRef}}({{=$data}}))) { + {{??}} + if (!{{# def.checkFormat }}) { + {{?}} +{{?}} + {{# def.error:'format' }} + } {{? $breakOnError }} else { {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/if.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/if.jst new file mode 100644 index 0000000..7ccc9b7 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/if.jst @@ -0,0 +1,75 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + + +{{## def.validateIfClause:_clause: + {{ + $it.schema = it.schema['_clause']; + $it.schemaPath = it.schemaPath + '._clause'; + $it.errSchemaPath = it.errSchemaPath + '/_clause'; + }} + {{# def.insertSubschemaCode }} + {{=$valid}} = {{=$nextValid}}; + {{? $thenPresent && $elsePresent }} + {{ $ifClause = 'ifClause' + $lvl; }} + var {{=$ifClause}} = '_clause'; + {{??}} + {{ $ifClause = '\'_clause\''; }} + {{?}} +#}} + +{{ + var $thenSch = it.schema['then'] + , $elseSch = it.schema['else'] + , $thenPresent = $thenSch !== undefined && {{# def.nonEmptySchema:$thenSch }} + , $elsePresent = $elseSch !== undefined && {{# def.nonEmptySchema:$elseSch }} + , $currentBaseId = $it.baseId; +}} + +{{? $thenPresent || $elsePresent }} + {{ + var $ifClause; + $it.createErrors = false; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + var {{=$errs}} = errors; + var {{=$valid}} = true; + + {{# def.setCompositeRule }} + {{# def.insertSubschemaCode }} + {{ $it.createErrors = true; }} + {{# def.resetErrors }} + {{# def.resetCompositeRule }} + + {{? $thenPresent }} + if ({{=$nextValid}}) { + {{# def.validateIfClause:then }} + } + {{? $elsePresent }} + else { + {{?}} + {{??}} + if (!{{=$nextValid}}) { + {{?}} + + {{? $elsePresent }} + {{# def.validateIfClause:else }} + } + {{?}} + + if (!{{=$valid}}) { + {{# def.extraError:'if' }} + } + {{? $breakOnError }} else { {{?}} + + {{# def.cleanUp }} +{{??}} + {{? $breakOnError }} + if (true) { + {{?}} +{{?}} + diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/items.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/items.jst new file mode 100644 index 0000000..8c0f5ac --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/items.jst @@ -0,0 +1,100 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + + +{{## def.validateItems:startFrom: + for (var {{=$idx}} = {{=startFrom}}; {{=$idx}} < {{=$data}}.length; {{=$idx}}++) { + {{ + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + + {{? $breakOnError }} + if (!{{=$nextValid}}) break; + {{?}} + } +#}} + +{{ + var $idx = 'i' + $lvl + , $dataNxt = $it.dataLevel = it.dataLevel + 1 + , $nextData = 'data' + $dataNxt + , $currentBaseId = it.baseId; +}} + +var {{=$errs}} = errors; +var {{=$valid}}; + +{{? Array.isArray($schema) }} + {{ /* 'items' is an array of schemas */}} + {{ var $additionalItems = it.schema.additionalItems; }} + {{? $additionalItems === false }} + {{=$valid}} = {{=$data}}.length <= {{= $schema.length }}; + {{ + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalItems'; + }} + {{# def.checkError:'additionalItems' }} + {{ $errSchemaPath = $currErrSchemaPath; }} + {{# def.elseIfValid}} + {{?}} + + {{~ $schema:$sch:$i }} + {{? {{# def.nonEmptySchema:$sch }} }} + {{=$nextValid}} = true; + + if ({{=$data}}.length > {{=$i}}) { + {{ + var $passData = $data + '[' + $i + ']'; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true); + $it.dataPathArr[$dataNxt] = $i; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + } + + {{# def.ifResultValid }} + {{?}} + {{~}} + + {{? typeof $additionalItems == 'object' && {{# def.nonEmptySchema:$additionalItems }} }} + {{ + $it.schema = $additionalItems; + $it.schemaPath = it.schemaPath + '.additionalItems'; + $it.errSchemaPath = it.errSchemaPath + '/additionalItems'; + }} + {{=$nextValid}} = true; + + if ({{=$data}}.length > {{= $schema.length }}) { + {{# def.validateItems: $schema.length }} + } + + {{# def.ifResultValid }} + {{?}} + +{{?? {{# def.nonEmptySchema:$schema }} }} + {{ /* 'items' is a single schema */}} + {{ + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + {{# def.validateItems: 0 }} +{{?}} + +{{? $breakOnError }} + {{= $closingBraces }} + if ({{=$errs}} == errors) { +{{?}} + +{{# def.cleanUp }} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/missing.def b/nodered/rootfs/data/node_modules/ajv/lib/dot/missing.def new file mode 100644 index 0000000..a73b9f9 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/missing.def @@ -0,0 +1,39 @@ +{{## def.checkMissingProperty:_properties: + {{~ _properties:$propertyKey:$i }} + {{?$i}} || {{?}} + {{ + var $prop = it.util.getProperty($propertyKey) + , $useData = $data + $prop; + }} + ( ({{# def.noPropertyInData }}) && (missing{{=$lvl}} = {{= it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop) }}) ) + {{~}} +#}} + + +{{## def.errorMissingProperty:_error: + {{ + var $propertyPath = 'missing' + $lvl + , $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.opts.jsonPointers + ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) + : $currentErrorPath + ' + ' + $propertyPath; + } + }} + {{# def.error:_error }} +#}} + + +{{## def.allErrorsMissingProperty:_error: + {{ + var $prop = it.util.getProperty($propertyKey) + , $missingProperty = it.util.escapeQuotes($propertyKey) + , $useData = $data + $prop; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + }} + if ({{# def.noPropertyInData }}) { + {{# def.addError:_error }} + } +#}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/multipleOf.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/multipleOf.jst new file mode 100644 index 0000000..5f8dd33 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/multipleOf.jst @@ -0,0 +1,20 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +var division{{=$lvl}}; +if ({{?$isData}} + {{=$schemaValue}} !== undefined && ( + typeof {{=$schemaValue}} != 'number' || + {{?}} + (division{{=$lvl}} = {{=$data}} / {{=$schemaValue}}, + {{? it.opts.multipleOfPrecision }} + Math.abs(Math.round(division{{=$lvl}}) - division{{=$lvl}}) > 1e-{{=it.opts.multipleOfPrecision}} + {{??}} + division{{=$lvl}} !== parseInt(division{{=$lvl}}) + {{?}} + ) + {{?$isData}} ) {{?}} ) { + {{# def.error:'multipleOf' }} +} {{? $breakOnError }} else { {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/not.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/not.jst new file mode 100644 index 0000000..e03185a --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/not.jst @@ -0,0 +1,43 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +{{? {{# def.nonEmptySchema:$schema }} }} + {{ + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + + var {{=$errs}} = errors; + + {{# def.setCompositeRule }} + + {{ + $it.createErrors = false; + var $allErrorsOption; + if ($it.opts.allErrors) { + $allErrorsOption = $it.opts.allErrors; + $it.opts.allErrors = false; + } + }} + {{= it.validate($it) }} + {{ + $it.createErrors = true; + if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption; + }} + + {{# def.resetCompositeRule }} + + if ({{=$nextValid}}) { + {{# def.error:'not' }} + } else { + {{# def.resetErrors }} + {{? it.opts.allErrors }} } {{?}} +{{??}} + {{# def.addError:'not' }} + {{? $breakOnError}} + if (false) { + {{?}} +{{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/oneOf.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/oneOf.jst new file mode 100644 index 0000000..bcce2c6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/oneOf.jst @@ -0,0 +1,54 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +{{ + var $currentBaseId = $it.baseId + , $prevValid = 'prevValid' + $lvl + , $passingSchemas = 'passingSchemas' + $lvl; +}} + +var {{=$errs}} = errors + , {{=$prevValid}} = false + , {{=$valid}} = false + , {{=$passingSchemas}} = null; + +{{# def.setCompositeRule }} + +{{~ $schema:$sch:$i }} + {{? {{# def.nonEmptySchema:$sch }} }} + {{ + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + }} + + {{# def.insertSubschemaCode }} + {{??}} + var {{=$nextValid}} = true; + {{?}} + + {{? $i }} + if ({{=$nextValid}} && {{=$prevValid}}) { + {{=$valid}} = false; + {{=$passingSchemas}} = [{{=$passingSchemas}}, {{=$i}}]; + } else { + {{ $closingBraces += '}'; }} + {{?}} + + if ({{=$nextValid}}) { + {{=$valid}} = {{=$prevValid}} = true; + {{=$passingSchemas}} = {{=$i}}; + } +{{~}} + +{{# def.resetCompositeRule }} + +{{= $closingBraces }} + +if (!{{=$valid}}) { + {{# def.extraError:'oneOf' }} +} else { + {{# def.resetErrors }} +{{? it.opts.allErrors }} } {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/pattern.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/pattern.jst new file mode 100644 index 0000000..3a37ef6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/pattern.jst @@ -0,0 +1,14 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ + var $regexp = $isData + ? '(new RegExp(' + $schemaValue + '))' + : it.usePattern($schema); +}} + +if ({{# def.$dataNotType:'string' }} !{{=$regexp}}.test({{=$data}}) ) { + {{# def.error:'pattern' }} +} {{? $breakOnError }} else { {{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/properties.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/properties.jst new file mode 100644 index 0000000..862067e --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/properties.jst @@ -0,0 +1,244 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + + +{{## def.validateAdditional: + {{ /* additionalProperties is schema */ + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty + ? it.errorPath + : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} +#}} + + +{{ + var $key = 'key' + $lvl + , $idx = 'idx' + $lvl + , $dataNxt = $it.dataLevel = it.dataLevel + 1 + , $nextData = 'data' + $dataNxt + , $dataProperties = 'dataProperties' + $lvl; + + var $schemaKeys = Object.keys($schema || {}) + , $pProperties = it.schema.patternProperties || {} + , $pPropertyKeys = Object.keys($pProperties) + , $aProperties = it.schema.additionalProperties + , $someProperties = $schemaKeys.length || $pPropertyKeys.length + , $noAdditional = $aProperties === false + , $additionalIsSchema = typeof $aProperties == 'object' + && Object.keys($aProperties).length + , $removeAdditional = it.opts.removeAdditional + , $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional + , $ownProperties = it.opts.ownProperties + , $currentBaseId = it.baseId; + + var $required = it.schema.required; + if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) + var $requiredHash = it.util.toHash($required); +}} + + +var {{=$errs}} = errors; +var {{=$nextValid}} = true; +{{? $ownProperties }} + var {{=$dataProperties}} = undefined; +{{?}} + +{{? $checkAdditional }} + {{# def.iterateProperties }} + {{? $someProperties }} + var isAdditional{{=$lvl}} = !(false + {{? $schemaKeys.length }} + {{? $schemaKeys.length > 8 }} + || validate.schema{{=$schemaPath}}.hasOwnProperty({{=$key}}) + {{??}} + {{~ $schemaKeys:$propertyKey }} + || {{=$key}} == {{= it.util.toQuotedString($propertyKey) }} + {{~}} + {{?}} + {{?}} + {{? $pPropertyKeys.length }} + {{~ $pPropertyKeys:$pProperty:$i }} + || {{= it.usePattern($pProperty) }}.test({{=$key}}) + {{~}} + {{?}} + ); + + if (isAdditional{{=$lvl}}) { + {{?}} + {{? $removeAdditional == 'all' }} + delete {{=$data}}[{{=$key}}]; + {{??}} + {{ + var $currentErrorPath = it.errorPath; + var $additionalProperty = '\' + ' + $key + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + } + }} + {{? $noAdditional }} + {{? $removeAdditional }} + delete {{=$data}}[{{=$key}}]; + {{??}} + {{=$nextValid}} = false; + {{ + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalProperties'; + }} + {{# def.error:'additionalProperties' }} + {{ $errSchemaPath = $currErrSchemaPath; }} + {{? $breakOnError }} break; {{?}} + {{?}} + {{?? $additionalIsSchema }} + {{? $removeAdditional == 'failing' }} + var {{=$errs}} = errors; + {{# def.setCompositeRule }} + + {{# def.validateAdditional }} + + if (!{{=$nextValid}}) { + errors = {{=$errs}}; + if (validate.errors !== null) { + if (errors) validate.errors.length = errors; + else validate.errors = null; + } + delete {{=$data}}[{{=$key}}]; + } + + {{# def.resetCompositeRule }} + {{??}} + {{# def.validateAdditional }} + {{? $breakOnError }} if (!{{=$nextValid}}) break; {{?}} + {{?}} + {{?}} + {{ it.errorPath = $currentErrorPath; }} + {{?}} + {{? $someProperties }} + } + {{?}} + } + + {{# def.ifResultValid }} +{{?}} + +{{ var $useDefaults = it.opts.useDefaults && !it.compositeRule; }} + +{{? $schemaKeys.length }} + {{~ $schemaKeys:$propertyKey }} + {{ var $sch = $schema[$propertyKey]; }} + + {{? {{# def.nonEmptySchema:$sch}} }} + {{ + var $prop = it.util.getProperty($propertyKey) + , $passData = $data + $prop + , $hasDefault = $useDefaults && $sch.default !== undefined; + $it.schema = $sch; + $it.schemaPath = $schemaPath + $prop; + $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey); + $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers); + $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey); + }} + + {{# def.generateSubschemaCode }} + + {{? {{# def.willOptimize }} }} + {{ + $code = {{# def._optimizeValidate }}; + var $useData = $passData; + }} + {{??}} + {{ var $useData = $nextData; }} + var {{=$nextData}} = {{=$passData}}; + {{?}} + + {{? $hasDefault }} + {{= $code }} + {{??}} + {{? $requiredHash && $requiredHash[$propertyKey] }} + if ({{# def.noPropertyInData }}) { + {{=$nextValid}} = false; + {{ + var $currentErrorPath = it.errorPath + , $currErrSchemaPath = $errSchemaPath + , $missingProperty = it.util.escapeQuotes($propertyKey); + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + $errSchemaPath = it.errSchemaPath + '/required'; + }} + {{# def.error:'required' }} + {{ $errSchemaPath = $currErrSchemaPath; }} + {{ it.errorPath = $currentErrorPath; }} + } else { + {{??}} + {{? $breakOnError }} + if ({{# def.noPropertyInData }}) { + {{=$nextValid}} = true; + } else { + {{??}} + if ({{=$useData}} !== undefined + {{? $ownProperties }} + && {{# def.isOwnProperty }} + {{?}} + ) { + {{?}} + {{?}} + + {{= $code }} + } + {{?}} {{ /* $hasDefault */ }} + {{?}} {{ /* def.nonEmptySchema */ }} + + {{# def.ifResultValid }} + {{~}} +{{?}} + +{{? $pPropertyKeys.length }} + {{~ $pPropertyKeys:$pProperty }} + {{ var $sch = $pProperties[$pProperty]; }} + + {{? {{# def.nonEmptySchema:$sch}} }} + {{ + $it.schema = $sch; + $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); + $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + + it.util.escapeFragment($pProperty); + }} + + {{# def.iterateProperties }} + if ({{= it.usePattern($pProperty) }}.test({{=$key}})) { + {{ + $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + + {{? $breakOnError }} if (!{{=$nextValid}}) break; {{?}} + } + {{? $breakOnError }} else {{=$nextValid}} = true; {{?}} + } + + {{# def.ifResultValid }} + {{?}} {{ /* def.nonEmptySchema */ }} + {{~}} +{{?}} + + +{{? $breakOnError }} + {{= $closingBraces }} + if ({{=$errs}} == errors) { +{{?}} + +{{# def.cleanUp }} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/propertyNames.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/propertyNames.jst new file mode 100644 index 0000000..ee52b21 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/propertyNames.jst @@ -0,0 +1,54 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +var {{=$errs}} = errors; + +{{? {{# def.nonEmptySchema:$schema }} }} + {{ + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + + {{ + var $key = 'key' + $lvl + , $idx = 'idx' + $lvl + , $i = 'i' + $lvl + , $invalidName = '\' + ' + $key + ' + \'' + , $dataNxt = $it.dataLevel = it.dataLevel + 1 + , $nextData = 'data' + $dataNxt + , $dataProperties = 'dataProperties' + $lvl + , $ownProperties = it.opts.ownProperties + , $currentBaseId = it.baseId; + }} + + {{? $ownProperties }} + var {{=$dataProperties}} = undefined; + {{?}} + {{# def.iterateProperties }} + var startErrs{{=$lvl}} = errors; + + {{ var $passData = $key; }} + {{# def.setCompositeRule }} + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + {{# def.resetCompositeRule }} + + if (!{{=$nextValid}}) { + for (var {{=$i}}=startErrs{{=$lvl}}; {{=$i}}= it.opts.loopRequired + , $ownProperties = it.opts.ownProperties; + }} + + {{? $breakOnError }} + var missing{{=$lvl}}; + {{? $loopRequired }} + {{# def.setupLoop }} + var {{=$valid}} = true; + + {{?$isData}}{{# def.check$dataIsArray }}{{?}} + + for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) { + {{=$valid}} = {{=$data}}[{{=$vSchema}}[{{=$i}}]] !== undefined + {{? $ownProperties }} + && {{# def.isRequiredOwnProperty }} + {{?}}; + if (!{{=$valid}}) break; + } + + {{? $isData }} } {{?}} + + {{# def.checkError:'required' }} + else { + {{??}} + if ({{# def.checkMissingProperty:$required }}) { + {{# def.errorMissingProperty:'required' }} + } else { + {{?}} + {{??}} + {{? $loopRequired }} + {{# def.setupLoop }} + {{? $isData }} + if ({{=$vSchema}} && !Array.isArray({{=$vSchema}})) { + {{# def.addError:'required' }} + } else if ({{=$vSchema}} !== undefined) { + {{?}} + + for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) { + if ({{=$data}}[{{=$vSchema}}[{{=$i}}]] === undefined + {{? $ownProperties }} + || !{{# def.isRequiredOwnProperty }} + {{?}}) { + {{# def.addError:'required' }} + } + } + + {{? $isData }} } {{?}} + {{??}} + {{~ $required:$propertyKey }} + {{# def.allErrorsMissingProperty:'required' }} + {{~}} + {{?}} + {{?}} + + {{ it.errorPath = $currentErrorPath; }} + +{{?? $breakOnError }} + if (true) { +{{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/uniqueItems.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/uniqueItems.jst new file mode 100644 index 0000000..22f82f9 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/uniqueItems.jst @@ -0,0 +1,62 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + + +{{? ($schema || $isData) && it.opts.uniqueItems !== false }} + {{? $isData }} + var {{=$valid}}; + if ({{=$schemaValue}} === false || {{=$schemaValue}} === undefined) + {{=$valid}} = true; + else if (typeof {{=$schemaValue}} != 'boolean') + {{=$valid}} = false; + else { + {{?}} + + var i = {{=$data}}.length + , {{=$valid}} = true + , j; + if (i > 1) { + {{ + var $itemType = it.schema.items && it.schema.items.type + , $typeIsArray = Array.isArray($itemType); + }} + {{? !$itemType || $itemType == 'object' || $itemType == 'array' || + ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0)) }} + outer: + for (;i--;) { + for (j = i; j--;) { + if (equal({{=$data}}[i], {{=$data}}[j])) { + {{=$valid}} = false; + break outer; + } + } + } + {{??}} + var itemIndices = {}, item; + for (;i--;) { + var item = {{=$data}}[i]; + {{ var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); }} + if ({{= it.util[$method]($itemType, 'item', true) }}) continue; + {{? $typeIsArray}} + if (typeof item == 'string') item = '"' + item; + {{?}} + if (typeof itemIndices[item] == 'number') { + {{=$valid}} = false; + j = itemIndices[item]; + break; + } + itemIndices[item] = i; + } + {{?}} + } + + {{? $isData }} } {{?}} + + if (!{{=$valid}}) { + {{# def.error:'uniqueItems' }} + } {{? $breakOnError }} else { {{?}} +{{??}} + {{? $breakOnError }} if (true) { {{?}} +{{?}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dot/validate.jst b/nodered/rootfs/data/node_modules/ajv/lib/dot/validate.jst new file mode 100644 index 0000000..f8a1edf --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dot/validate.jst @@ -0,0 +1,282 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.defaults }} +{{# def.coerce }} + +{{ /** + * schema compilation (render) time: + * it = { schema, RULES, _validate, opts } + * it.validate - this template function, + * it is used recursively to generate code for subschemas + * + * runtime: + * "validate" is a variable name to which this function will be assigned + * validateRef etc. are defined in the parent scope in index.js + */ }} + +{{ + var $async = it.schema.$async === true + , $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref') + , $id = it.self._getId(it.schema); +}} + +{{ + if (it.opts.strictKeywords) { + var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords); + if ($unknownKwd) { + var $keywordsMsg = 'unknown keyword: ' + $unknownKwd; + if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg); + else throw new Error($keywordsMsg); + } + } +}} + +{{? it.isTop }} + var validate = {{?$async}}{{it.async = true;}}async {{?}}function(data, dataPath, parentData, parentDataProperty, rootData) { + 'use strict'; + {{? $id && (it.opts.sourceCode || it.opts.processCode) }} + {{= '/\*# sourceURL=' + $id + ' */' }} + {{?}} +{{?}} + +{{? typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref) }} + {{ var $keyword = 'false schema'; }} + {{# def.setupKeyword }} + {{? it.schema === false}} + {{? it.isTop}} + {{ $breakOnError = true; }} + {{??}} + var {{=$valid}} = false; + {{?}} + {{# def.error:'false schema' }} + {{??}} + {{? it.isTop}} + {{? $async }} + return data; + {{??}} + validate.errors = null; + return true; + {{?}} + {{??}} + var {{=$valid}} = true; + {{?}} + {{?}} + + {{? it.isTop}} + }; + return validate; + {{?}} + + {{ return out; }} +{{?}} + + +{{? it.isTop }} + {{ + var $top = it.isTop + , $lvl = it.level = 0 + , $dataLvl = it.dataLevel = 0 + , $data = 'data'; + it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema)); + it.baseId = it.baseId || it.rootId; + delete it.isTop; + + it.dataPathArr = [undefined]; + + if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored in the schema root'; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + }} + + var vErrors = null; {{ /* don't edit, used in replace */ }} + var errors = 0; {{ /* don't edit, used in replace */ }} + if (rootData === undefined) rootData = data; {{ /* don't edit, used in replace */ }} +{{??}} + {{ + var $lvl = it.level + , $dataLvl = it.dataLevel + , $data = 'data' + ($dataLvl || ''); + + if ($id) it.baseId = it.resolve.url(it.baseId, $id); + + if ($async && !it.async) throw new Error('async schema in sync schema'); + }} + + var errs_{{=$lvl}} = errors; +{{?}} + +{{ + var $valid = 'valid' + $lvl + , $breakOnError = !it.opts.allErrors + , $closingBraces1 = '' + , $closingBraces2 = ''; + + var $errorKeyword; + var $typeSchema = it.schema.type + , $typeIsArray = Array.isArray($typeSchema); + + if ($typeSchema && it.opts.nullable && it.schema.nullable === true) { + if ($typeIsArray) { + if ($typeSchema.indexOf('null') == -1) + $typeSchema = $typeSchema.concat('null'); + } else if ($typeSchema != 'null') { + $typeSchema = [$typeSchema, 'null']; + $typeIsArray = true; + } + } + + if ($typeIsArray && $typeSchema.length == 1) { + $typeSchema = $typeSchema[0]; + $typeIsArray = false; + } +}} + +{{## def.checkType: + {{ + var $schemaPath = it.schemaPath + '.type' + , $errSchemaPath = it.errSchemaPath + '/type' + , $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType'; + }} + + if ({{= it.util[$method]($typeSchema, $data, true) }}) { +#}} + +{{? it.schema.$ref && $refKeywords }} + {{? it.opts.extendRefs == 'fail' }} + {{ throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); }} + {{?? it.opts.extendRefs !== true }} + {{ + $refKeywords = false; + it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); + }} + {{?}} +{{?}} + +{{? it.schema.$comment && it.opts.$comment }} + {{= it.RULES.all.$comment.code(it, '$comment') }} +{{?}} + +{{? $typeSchema }} + {{? it.opts.coerceTypes }} + {{ var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); }} + {{?}} + + {{ var $rulesGroup = it.RULES.types[$typeSchema]; }} + {{? $coerceToTypes || $typeIsArray || $rulesGroup === true || + ($rulesGroup && !$shouldUseGroup($rulesGroup)) }} + {{ + var $schemaPath = it.schemaPath + '.type' + , $errSchemaPath = it.errSchemaPath + '/type'; + }} + {{# def.checkType }} + {{? $coerceToTypes }} + {{# def.coerceType }} + {{??}} + {{# def.error:'type' }} + {{?}} + } + {{?}} +{{?}} + + +{{? it.schema.$ref && !$refKeywords }} + {{= it.RULES.all.$ref.code(it, '$ref') }} + {{? $breakOnError }} + } + if (errors === {{?$top}}0{{??}}errs_{{=$lvl}}{{?}}) { + {{ $closingBraces2 += '}'; }} + {{?}} +{{??}} + {{~ it.RULES:$rulesGroup }} + {{? $shouldUseGroup($rulesGroup) }} + {{? $rulesGroup.type }} + if ({{= it.util.checkDataType($rulesGroup.type, $data) }}) { + {{?}} + {{? it.opts.useDefaults }} + {{? $rulesGroup.type == 'object' && it.schema.properties }} + {{# def.defaultProperties }} + {{?? $rulesGroup.type == 'array' && Array.isArray(it.schema.items) }} + {{# def.defaultItems }} + {{?}} + {{?}} + {{~ $rulesGroup.rules:$rule }} + {{? $shouldUseRule($rule) }} + {{ var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); }} + {{? $code }} + {{= $code }} + {{? $breakOnError }} + {{ $closingBraces1 += '}'; }} + {{?}} + {{?}} + {{?}} + {{~}} + {{? $breakOnError }} + {{= $closingBraces1 }} + {{ $closingBraces1 = ''; }} + {{?}} + {{? $rulesGroup.type }} + } + {{? $typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes }} + else { + {{ + var $schemaPath = it.schemaPath + '.type' + , $errSchemaPath = it.errSchemaPath + '/type'; + }} + {{# def.error:'type' }} + } + {{?}} + {{?}} + + {{? $breakOnError }} + if (errors === {{?$top}}0{{??}}errs_{{=$lvl}}{{?}}) { + {{ $closingBraces2 += '}'; }} + {{?}} + {{?}} + {{~}} +{{?}} + +{{? $breakOnError }} {{= $closingBraces2 }} {{?}} + +{{? $top }} + {{? $async }} + if (errors === 0) return data; {{ /* don't edit, used in replace */ }} + else throw new ValidationError(vErrors); {{ /* don't edit, used in replace */ }} + {{??}} + validate.errors = vErrors; {{ /* don't edit, used in replace */ }} + return errors === 0; {{ /* don't edit, used in replace */ }} + {{?}} + }; + + return validate; +{{??}} + var {{=$valid}} = errors === errs_{{=$lvl}}; +{{?}} + +{{# def.cleanUp }} + +{{? $top }} + {{# def.finalCleanUp }} +{{?}} + +{{ + function $shouldUseGroup($rulesGroup) { + var rules = $rulesGroup.rules; + for (var i=0; i < rules.length; i++) + if ($shouldUseRule(rules[i])) + return true; + } + + function $shouldUseRule($rule) { + return it.schema[$rule.keyword] !== undefined || + ($rule.implements && $ruleImplementsSomeKeyword($rule)); + } + + function $ruleImplementsSomeKeyword($rule) { + var impl = $rule.implements; + for (var i=0; i < impl.length; i++) + if (it.schema[impl[i]] !== undefined) + return true; + } +}} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/README.md b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/README.md new file mode 100644 index 0000000..4d99484 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/README.md @@ -0,0 +1,3 @@ +These files are compiled dot templates from dot folder. + +Do NOT edit them directly, edit the templates and run `npm run build` from main ajv folder. diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limit.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limit.js new file mode 100644 index 0000000..f02a760 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limit.js @@ -0,0 +1,157 @@ +'use strict'; +module.exports = function generate__limit(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $isMax = $keyword == 'maximum', + $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum', + $schemaExcl = it.schema[$exclusiveKeyword], + $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data, + $op = $isMax ? '<' : '>', + $notOp = $isMax ? '>' : '<', + $errorKeyword = undefined; + if ($isDataExcl) { + var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr), + $exclusive = 'exclusive' + $lvl, + $exclType = 'exclType' + $lvl, + $exclIsNumber = 'exclIsNumber' + $lvl, + $opExpr = 'op' + $lvl, + $opStr = '\' + ' + $opExpr + ' + \''; + out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; '; + $schemaValueExcl = 'schemaExcl' + $lvl; + out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \'boolean\' && ' + ($exclType) + ' != \'undefined\' && ' + ($exclType) + ' != \'number\') { '; + var $errorKeyword = $exclusiveKeyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_exclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($exclType) + ' == \'number\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\'; '; + if ($schema === undefined) { + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaValueExcl; + $isData = $isDataExcl; + } + } else { + var $exclIsNumber = typeof $schemaExcl == 'number', + $opStr = $op; + if ($exclIsNumber && $isData) { + var $opExpr = '\'' + $opStr + '\''; + out += ' if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { '; + } else { + if ($exclIsNumber && $schema === undefined) { + $exclusive = true; + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaExcl; + $notOp += '='; + } else { + if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema); + if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) { + $exclusive = true; + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $notOp += '='; + } else { + $exclusive = false; + $opStr += '='; + } + } + var $opExpr = '\'' + $opStr + '\''; + out += ' if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { '; + } + } + $errorKeyword = $errorKeyword || $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be ' + ($opStr) + ' '; + if ($isData) { + out += '\' + ' + ($schemaValue); + } else { + out += '' + ($schemaValue) + '\''; + } + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitItems.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitItems.js new file mode 100644 index 0000000..a27d118 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitItems.js @@ -0,0 +1,77 @@ +'use strict'; +module.exports = function generate__limitItems(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxItems' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have '; + if ($keyword == 'maxItems') { + out += 'more'; + } else { + out += 'fewer'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' items\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitLength.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitLength.js new file mode 100644 index 0000000..789f374 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitLength.js @@ -0,0 +1,82 @@ +'use strict'; +module.exports = function generate__limitLength(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxLength' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + if (it.opts.unicode === false) { + out += ' ' + ($data) + '.length '; + } else { + out += ' ucs2length(' + ($data) + ') '; + } + out += ' ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitLength') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be '; + if ($keyword == 'maxLength') { + out += 'longer'; + } else { + out += 'shorter'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' characters\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitProperties.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitProperties.js new file mode 100644 index 0000000..11dc939 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/_limitProperties.js @@ -0,0 +1,77 @@ +'use strict'; +module.exports = function generate__limitProperties(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxProperties' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have '; + if ($keyword == 'maxProperties') { + out += 'more'; + } else { + out += 'fewer'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' properties\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/allOf.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/allOf.js new file mode 100644 index 0000000..4bad914 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/allOf.js @@ -0,0 +1,43 @@ +'use strict'; +module.exports = function generate_allOf(it, $keyword, $ruleType) { + var out = ' '; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $currentBaseId = $it.baseId, + $allSchemasEmpty = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + $allSchemasEmpty = false; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if ($breakOnError) { + if ($allSchemasEmpty) { + out += ' if (true) { '; + } else { + out += ' ' + ($closingBraces.slice(0, -1)) + ' '; + } + } + out = it.util.cleanUpCode(out); + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/anyOf.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/anyOf.js new file mode 100644 index 0000000..01551d5 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/anyOf.js @@ -0,0 +1,74 @@ +'use strict'; +module.exports = function generate_anyOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $noEmptySchema = $schema.every(function($sch) { + return (it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all)); + }); + if ($noEmptySchema) { + var $currentBaseId = $it.baseId; + out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { '; + $closingBraces += '}'; + } + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('anyOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should match some schema in anyOf\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + if (it.opts.allErrors) { + out += ' } '; + } + out = it.util.cleanUpCode(out); + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/comment.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/comment.js new file mode 100644 index 0000000..dd66bb8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/comment.js @@ -0,0 +1,14 @@ +'use strict'; +module.exports = function generate_comment(it, $keyword, $ruleType) { + var out = ' '; + var $schema = it.schema[$keyword]; + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $comment = it.util.toQuotedString($schema); + if (it.opts.$comment === true) { + out += ' console.log(' + ($comment) + ');'; + } else if (typeof it.opts.$comment == 'function') { + out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);'; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/const.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/const.js new file mode 100644 index 0000000..15b7c61 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/const.js @@ -0,0 +1,56 @@ +'use strict'; +module.exports = function generate_const(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + if (!$isData) { + out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';'; + } + out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be equal to constant\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' }'; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/contains.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/contains.js new file mode 100644 index 0000000..cd4dfab --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/contains.js @@ -0,0 +1,82 @@ +'use strict'; +module.exports = function generate_contains(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $idx = 'i' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $currentBaseId = it.baseId, + $nonEmptySchema = (it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all)); + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if ($nonEmptySchema) { + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' if (' + ($nextValid) + ') break; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {'; + } else { + out += ' if (' + ($data) + '.length == 0) {'; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should contain a valid item\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + if ($nonEmptySchema) { + out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + } + if (it.opts.allErrors) { + out += ' } '; + } + out = it.util.cleanUpCode(out); + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/custom.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/custom.js new file mode 100644 index 0000000..f3e641e --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/custom.js @@ -0,0 +1,228 @@ +'use strict'; +module.exports = function generate_custom(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $rule = this, + $definition = 'definition' + $lvl, + $rDef = $rule.definition, + $closingBraces = ''; + var $compile, $inline, $macro, $ruleValidate, $validateCode; + if ($isData && $rDef.$data) { + $validateCode = 'keywordValidate' + $lvl; + var $validateSchema = $rDef.validateSchema; + out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;'; + } else { + $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it); + if (!$ruleValidate) return; + $schemaValue = 'validate.schema' + $schemaPath; + $validateCode = $ruleValidate.code; + $compile = $rDef.compile; + $inline = $rDef.inline; + $macro = $rDef.macro; + } + var $ruleErrs = $validateCode + '.errors', + $i = 'i' + $lvl, + $ruleErr = 'ruleErr' + $lvl, + $asyncKeyword = $rDef.async; + if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema'); + if (!($inline || $macro)) { + out += '' + ($ruleErrs) + ' = null;'; + } + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if ($isData && $rDef.$data) { + $closingBraces += '}'; + out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { '; + if ($validateSchema) { + $closingBraces += '}'; + out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { '; + } + } + if ($inline) { + if ($rDef.statements) { + out += ' ' + ($ruleValidate.validate) + ' '; + } else { + out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; '; + } + } else if ($macro) { + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + $it.schema = $ruleValidate.validate; + $it.schemaPath = ''; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var $code = it.validate($it).replace(/validate\.schema/g, $validateCode); + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($code); + } else { + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; + out += ' ' + ($validateCode) + '.call( '; + if (it.opts.passContext) { + out += 'this'; + } else { + out += 'self'; + } + if ($compile || $rDef.schema === false) { + out += ' , ' + ($data) + ' '; + } else { + out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' '; + } + out += ' , (dataPath || \'\')'; + if (it.errorPath != '""') { + out += ' + ' + (it.errorPath); + } + var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', + $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; + out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) '; + var def_callRuleValidate = out; + out = $$outStack.pop(); + if ($rDef.errors === false) { + out += ' ' + ($valid) + ' = '; + if ($asyncKeyword) { + out += 'await '; + } + out += '' + (def_callRuleValidate) + '; '; + } else { + if ($asyncKeyword) { + $ruleErrs = 'customErrors' + $lvl; + out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } '; + } else { + out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; '; + } + } + } + if ($rDef.modifying) { + out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];'; + } + out += '' + ($closingBraces); + if ($rDef.valid) { + if ($breakOnError) { + out += ' if (true) { '; + } + } else { + out += ' if ( '; + if ($rDef.valid === undefined) { + out += ' !'; + if ($macro) { + out += '' + ($nextValid); + } else { + out += '' + ($valid); + } + } else { + out += ' ' + (!$rDef.valid) + ' '; + } + out += ') { '; + $errorKeyword = $rule.keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + var def_customError = out; + out = $$outStack.pop(); + if ($inline) { + if ($rDef.errors) { + if ($rDef.errors != 'full') { + out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + ' 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') '; + } + out += ') { '; + $it.schema = $sch; + $it.schemaPath = $schemaPath + it.util.getProperty($property); + $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property); + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/enum.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/enum.js new file mode 100644 index 0000000..90580b9 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/enum.js @@ -0,0 +1,66 @@ +'use strict'; +module.exports = function generate_enum(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $i = 'i' + $lvl, + $vSchema = 'schema' + $lvl; + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';'; + } + out += 'var ' + ($valid) + ';'; + if ($isData) { + out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; + } + out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }'; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('enum') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be equal to one of the allowed values\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' }'; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/format.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/format.js new file mode 100644 index 0000000..cd9a569 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/format.js @@ -0,0 +1,150 @@ +'use strict'; +module.exports = function generate_format(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + if (it.opts.format === false) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $unknownFormats = it.opts.unknownFormats, + $allowUnknown = Array.isArray($unknownFormats); + if ($isData) { + var $format = 'format' + $lvl, + $isObject = 'isObject' + $lvl, + $formatType = 'formatType' + $lvl; + out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \'object\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \'string\'; if (' + ($isObject) + ') { '; + if (it.async) { + out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; '; + } + out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; + } + out += ' ('; + if ($unknownFormats != 'ignore') { + out += ' (' + ($schemaValue) + ' && !' + ($format) + ' '; + if ($allowUnknown) { + out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 '; + } + out += ') || '; + } + out += ' (' + ($format) + ' && ' + ($formatType) + ' == \'' + ($ruleType) + '\' && !(typeof ' + ($format) + ' == \'function\' ? '; + if (it.async) { + out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) '; + } else { + out += ' ' + ($format) + '(' + ($data) + ') '; + } + out += ' : ' + ($format) + '.test(' + ($data) + '))))) {'; + } else { + var $format = it.formats[$schema]; + if (!$format) { + if ($unknownFormats == 'ignore') { + it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"'); + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } else { + throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); + } + } + var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate; + var $formatType = $isObject && $format.type || 'string'; + if ($isObject) { + var $async = $format.async === true; + $format = $format.validate; + } + if ($formatType != $ruleType) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } + if ($async) { + if (!it.async) throw new Error('async format in sync schema'); + var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate'; + out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { '; + } else { + out += ' if (! '; + var $formatRef = 'formats' + it.util.getProperty($schema); + if ($isObject) $formatRef += '.validate'; + if (typeof $format == 'function') { + out += ' ' + ($formatRef) + '(' + ($data) + ') '; + } else { + out += ' ' + ($formatRef) + '.test(' + ($data) + ') '; + } + out += ') { '; + } + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: '; + if ($isData) { + out += '' + ($schemaValue); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match format "'; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + (it.util.escapeQuotes($schema)); + } + out += '"\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/if.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/if.js new file mode 100644 index 0000000..019f61a --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/if.js @@ -0,0 +1,104 @@ +'use strict'; +module.exports = function generate_if(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + $it.level++; + var $nextValid = 'valid' + $it.level; + var $thenSch = it.schema['then'], + $elseSch = it.schema['else'], + $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? typeof $thenSch == 'object' && Object.keys($thenSch).length > 0 : it.util.schemaHasRules($thenSch, it.RULES.all)), + $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? typeof $elseSch == 'object' && Object.keys($elseSch).length > 0 : it.util.schemaHasRules($elseSch, it.RULES.all)), + $currentBaseId = $it.baseId; + if ($thenPresent || $elsePresent) { + var $ifClause; + $it.createErrors = false; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + $it.createErrors = true; + out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + if ($thenPresent) { + out += ' if (' + ($nextValid) + ') { '; + $it.schema = it.schema['then']; + $it.schemaPath = it.schemaPath + '.then'; + $it.errSchemaPath = it.errSchemaPath + '/then'; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; + if ($thenPresent && $elsePresent) { + $ifClause = 'ifClause' + $lvl; + out += ' var ' + ($ifClause) + ' = \'then\'; '; + } else { + $ifClause = '\'then\''; + } + out += ' } '; + if ($elsePresent) { + out += ' else { '; + } + } else { + out += ' if (!' + ($nextValid) + ') { '; + } + if ($elsePresent) { + $it.schema = it.schema['else']; + $it.schemaPath = it.schemaPath + '.else'; + $it.errSchemaPath = it.errSchemaPath + '/else'; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; + if ($thenPresent && $elsePresent) { + $ifClause = 'ifClause' + $lvl; + out += ' var ' + ($ifClause) + ' = \'else\'; '; + } else { + $ifClause = '\'else\''; + } + out += ' } '; + } + out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + out = it.util.cleanUpCode(out); + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/index.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/index.js new file mode 100644 index 0000000..2fb1b00 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/index.js @@ -0,0 +1,33 @@ +'use strict'; + +//all requires must be explicit because browserify won't work with dynamic requires +module.exports = { + '$ref': require('./ref'), + allOf: require('./allOf'), + anyOf: require('./anyOf'), + '$comment': require('./comment'), + const: require('./const'), + contains: require('./contains'), + dependencies: require('./dependencies'), + 'enum': require('./enum'), + format: require('./format'), + 'if': require('./if'), + items: require('./items'), + maximum: require('./_limit'), + minimum: require('./_limit'), + maxItems: require('./_limitItems'), + minItems: require('./_limitItems'), + maxLength: require('./_limitLength'), + minLength: require('./_limitLength'), + maxProperties: require('./_limitProperties'), + minProperties: require('./_limitProperties'), + multipleOf: require('./multipleOf'), + not: require('./not'), + oneOf: require('./oneOf'), + pattern: require('./pattern'), + properties: require('./properties'), + propertyNames: require('./propertyNames'), + required: require('./required'), + uniqueItems: require('./uniqueItems'), + validate: require('./validate') +}; diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/items.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/items.js new file mode 100644 index 0000000..d5532f0 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/items.js @@ -0,0 +1,141 @@ +'use strict'; +module.exports = function generate_items(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $idx = 'i' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $currentBaseId = it.baseId; + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if (Array.isArray($schema)) { + var $additionalItems = it.schema.additionalItems; + if ($additionalItems === false) { + out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; '; + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalItems'; + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + $errSchemaPath = $currErrSchemaPath; + if ($breakOnError) { + $closingBraces += '}'; + out += ' else { '; + } + } + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { '; + var $passData = $data + '[' + $i + ']'; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true); + $it.dataPathArr[$dataNxt] = $i; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if (typeof $additionalItems == 'object' && (it.opts.strictKeywords ? typeof $additionalItems == 'object' && Object.keys($additionalItems).length > 0 : it.util.schemaHasRules($additionalItems, it.RULES.all))) { + $it.schema = $additionalItems; + $it.schemaPath = it.schemaPath + '.additionalItems'; + $it.errSchemaPath = it.errSchemaPath + '/additionalItems'; + out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' } } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } else if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' }'; + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/multipleOf.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/multipleOf.js new file mode 100644 index 0000000..af087d2 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/multipleOf.js @@ -0,0 +1,77 @@ +'use strict'; +module.exports = function generate_multipleOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + out += 'var division' + ($lvl) + ';if ('; + if ($isData) { + out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \'number\' || '; + } + out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', '; + if (it.opts.multipleOfPrecision) { + out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' '; + } else { + out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') '; + } + out += ' ) '; + if ($isData) { + out += ' ) '; + } + out += ' ) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('multipleOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be multiple of '; + if ($isData) { + out += '\' + ' + ($schemaValue); + } else { + out += '' + ($schemaValue) + '\''; + } + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/not.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/not.js new file mode 100644 index 0000000..6aea659 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/not.js @@ -0,0 +1,84 @@ +'use strict'; +module.exports = function generate_not(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + $it.level++; + var $nextValid = 'valid' + $it.level; + if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($errs) + ' = errors; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.createErrors = false; + var $allErrorsOption; + if ($it.opts.allErrors) { + $allErrorsOption = $it.opts.allErrors; + $it.opts.allErrors = false; + } + out += ' ' + (it.validate($it)) + ' '; + $it.createErrors = true; + if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption; + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' if (' + ($nextValid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be valid\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + if (it.opts.allErrors) { + out += ' } '; + } + } else { + out += ' var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be valid\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if ($breakOnError) { + out += ' if (false) { '; + } + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/oneOf.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/oneOf.js new file mode 100644 index 0000000..30988d5 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/oneOf.js @@ -0,0 +1,73 @@ +'use strict'; +module.exports = function generate_oneOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $currentBaseId = $it.baseId, + $prevValid = 'prevValid' + $lvl, + $passingSchemas = 'passingSchemas' + $lvl; + out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + } else { + out += ' var ' + ($nextValid) + ' = true; '; + } + if ($i) { + out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { '; + $closingBraces += '}'; + } + out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }'; + } + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('oneOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match exactly one schema in oneOf\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }'; + if (it.opts.allErrors) { + out += ' } '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/pattern.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/pattern.js new file mode 100644 index 0000000..1d74d6b --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/pattern.js @@ -0,0 +1,75 @@ +'use strict'; +module.exports = function generate_pattern(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema); + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; + } + out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: '; + if ($isData) { + out += '' + ($schemaValue); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match pattern "'; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + (it.util.escapeQuotes($schema)); + } + out += '"\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/properties.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/properties.js new file mode 100644 index 0000000..34a82c6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/properties.js @@ -0,0 +1,330 @@ +'use strict'; +module.exports = function generate_properties(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $key = 'key' + $lvl, + $idx = 'idx' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $dataProperties = 'dataProperties' + $lvl; + var $schemaKeys = Object.keys($schema || {}), + $pProperties = it.schema.patternProperties || {}, + $pPropertyKeys = Object.keys($pProperties), + $aProperties = it.schema.additionalProperties, + $someProperties = $schemaKeys.length || $pPropertyKeys.length, + $noAdditional = $aProperties === false, + $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length, + $removeAdditional = it.opts.removeAdditional, + $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional, + $ownProperties = it.opts.ownProperties, + $currentBaseId = it.baseId; + var $required = it.schema.required; + if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) var $requiredHash = it.util.toHash($required); + out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;'; + if ($ownProperties) { + out += ' var ' + ($dataProperties) + ' = undefined;'; + } + if ($checkAdditional) { + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + if ($someProperties) { + out += ' var isAdditional' + ($lvl) + ' = !(false '; + if ($schemaKeys.length) { + if ($schemaKeys.length > 8) { + out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') '; + } else { + var arr1 = $schemaKeys; + if (arr1) { + var $propertyKey, i1 = -1, + l1 = arr1.length - 1; + while (i1 < l1) { + $propertyKey = arr1[i1 += 1]; + out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' '; + } + } + } + } + if ($pPropertyKeys.length) { + var arr2 = $pPropertyKeys; + if (arr2) { + var $pProperty, $i = -1, + l2 = arr2.length - 1; + while ($i < l2) { + $pProperty = arr2[$i += 1]; + out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') '; + } + } + } + out += ' ); if (isAdditional' + ($lvl) + ') { '; + } + if ($removeAdditional == 'all') { + out += ' delete ' + ($data) + '[' + ($key) + ']; '; + } else { + var $currentErrorPath = it.errorPath; + var $additionalProperty = '\' + ' + $key + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + } + if ($noAdditional) { + if ($removeAdditional) { + out += ' delete ' + ($data) + '[' + ($key) + ']; '; + } else { + out += ' ' + ($nextValid) + ' = false; '; + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalProperties'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('additionalProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \'' + ($additionalProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is an invalid additional property'; + } else { + out += 'should NOT have additional properties'; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + $errSchemaPath = $currErrSchemaPath; + if ($breakOnError) { + out += ' break; '; + } + } + } else if ($additionalIsSchema) { + if ($removeAdditional == 'failing') { + out += ' var ' + ($errs) + ' = errors; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + } else { + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + } + } + it.errorPath = $currentErrorPath; + } + if ($someProperties) { + out += ' } '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + var $useDefaults = it.opts.useDefaults && !it.compositeRule; + if ($schemaKeys.length) { + var arr3 = $schemaKeys; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $sch = $schema[$propertyKey]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + var $prop = it.util.getProperty($propertyKey), + $passData = $data + $prop, + $hasDefault = $useDefaults && $sch.default !== undefined; + $it.schema = $sch; + $it.schemaPath = $schemaPath + $prop; + $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey); + $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers); + $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey); + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + $code = it.util.varReplace($code, $nextData, $passData); + var $useData = $passData; + } else { + var $useData = $nextData; + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; '; + } + if ($hasDefault) { + out += ' ' + ($code) + ' '; + } else { + if ($requiredHash && $requiredHash[$propertyKey]) { + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { ' + ($nextValid) + ' = false; '; + var $currentErrorPath = it.errorPath, + $currErrSchemaPath = $errSchemaPath, + $missingProperty = it.util.escapeQuotes($propertyKey); + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + $errSchemaPath = it.errSchemaPath + '/required'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + $errSchemaPath = $currErrSchemaPath; + it.errorPath = $currentErrorPath; + out += ' } else { '; + } else { + if ($breakOnError) { + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { ' + ($nextValid) + ' = true; } else { '; + } else { + out += ' if (' + ($useData) + ' !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ' ) { '; + } + } + out += ' ' + ($code) + ' } '; + } + } + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if ($pPropertyKeys.length) { + var arr4 = $pPropertyKeys; + if (arr4) { + var $pProperty, i4 = -1, + l4 = arr4.length - 1; + while (i4 < l4) { + $pProperty = arr4[i4 += 1]; + var $sch = $pProperties[$pProperty]; + if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + $it.schema = $sch; + $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); + $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty); + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else ' + ($nextValid) + ' = true; '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/propertyNames.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/propertyNames.js new file mode 100644 index 0000000..b2bf295 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/propertyNames.js @@ -0,0 +1,82 @@ +'use strict'; +module.exports = function generate_propertyNames(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + out += 'var ' + ($errs) + ' = errors;'; + if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + var $key = 'key' + $lvl, + $idx = 'idx' + $lvl, + $i = 'i' + $lvl, + $invalidName = '\' + ' + $key + ' + \'', + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $dataProperties = 'dataProperties' + $lvl, + $ownProperties = it.opts.ownProperties, + $currentBaseId = it.baseId; + if ($ownProperties) { + out += ' var ' + ($dataProperties) + ' = undefined; '; + } + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + out += ' var startErrs' + ($lvl) + ' = errors; '; + var $passData = $key; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + ' 0 : it.util.schemaHasRules($propertySch, it.RULES.all)))) { + $required[$required.length] = $property; + } + } + } + } else { + var $required = $schema; + } + } + if ($isData || $required.length) { + var $currentErrorPath = it.errorPath, + $loopRequired = $isData || $required.length >= it.opts.loopRequired, + $ownProperties = it.opts.ownProperties; + if ($breakOnError) { + out += ' var missing' + ($lvl) + '; '; + if ($loopRequired) { + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; + } + var $i = 'i' + $lvl, + $propertyPath = 'schema' + $lvl + '[' + $i + ']', + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); + } + out += ' var ' + ($valid) + ' = true; '; + if ($isData) { + out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; + } + out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; + } + out += '; if (!' + ($valid) + ') break; } '; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + } else { + out += ' if ( '; + var arr2 = $required; + if (arr2) { + var $propertyKey, $i = -1, + l2 = arr2.length - 1; + while ($i < l2) { + $propertyKey = arr2[$i += 1]; + if ($i) { + out += ' || '; + } + var $prop = it.util.getProperty($propertyKey), + $useData = $data + $prop; + out += ' ( ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) '; + } + } + out += ') { '; + var $propertyPath = 'missing' + $lvl, + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + } + } else { + if ($loopRequired) { + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; + } + var $i = 'i' + $lvl, + $propertyPath = 'schema' + $lvl + '[' + $i + ']', + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); + } + if ($isData) { + out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { '; + } + out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; + } + out += ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } '; + if ($isData) { + out += ' } '; + } + } else { + var arr3 = $required; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $prop = it.util.getProperty($propertyKey), + $missingProperty = it.util.escapeQuotes($propertyKey), + $useData = $data + $prop; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } '; + } + } + } + } + it.errorPath = $currentErrorPath; + } else if ($breakOnError) { + out += ' if (true) {'; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/uniqueItems.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/uniqueItems.js new file mode 100644 index 0000000..c4f6536 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/uniqueItems.js @@ -0,0 +1,86 @@ +'use strict'; +module.exports = function generate_uniqueItems(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + if (($schema || $isData) && it.opts.uniqueItems !== false) { + if ($isData) { + out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'boolean\') ' + ($valid) + ' = false; else { '; + } + out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { '; + var $itemType = it.schema.items && it.schema.items.type, + $typeIsArray = Array.isArray($itemType); + if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) { + out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } '; + } else { + out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; '; + var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); + out += ' if (' + (it.util[$method]($itemType, 'item', true)) + ') continue; '; + if ($typeIsArray) { + out += ' if (typeof item == \'string\') item = \'"\' + item; '; + } + out += ' if (typeof itemIndices[item] == \'number\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } '; + } + out += ' } '; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('uniqueItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have duplicate items (items ## \' + j + \' and \' + i + \' are identical)\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/dotjs/validate.js b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/validate.js new file mode 100644 index 0000000..cd0efc8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/dotjs/validate.js @@ -0,0 +1,494 @@ +'use strict'; +module.exports = function generate_validate(it, $keyword, $ruleType) { + var out = ''; + var $async = it.schema.$async === true, + $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'), + $id = it.self._getId(it.schema); + if (it.opts.strictKeywords) { + var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords); + if ($unknownKwd) { + var $keywordsMsg = 'unknown keyword: ' + $unknownKwd; + if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg); + else throw new Error($keywordsMsg); + } + } + if (it.isTop) { + out += ' var validate = '; + if ($async) { + it.async = true; + out += 'async '; + } + out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; '; + if ($id && (it.opts.sourceCode || it.opts.processCode)) { + out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' '; + } + } + if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) { + var $keyword = 'false schema'; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + if (it.schema === false) { + if (it.isTop) { + $breakOnError = true; + } else { + out += ' var ' + ($valid) + ' = false; '; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'boolean schema is false\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + } else { + if (it.isTop) { + if ($async) { + out += ' return data; '; + } else { + out += ' validate.errors = null; return true; '; + } + } else { + out += ' var ' + ($valid) + ' = true; '; + } + } + if (it.isTop) { + out += ' }; return validate; '; + } + return out; + } + if (it.isTop) { + var $top = it.isTop, + $lvl = it.level = 0, + $dataLvl = it.dataLevel = 0, + $data = 'data'; + it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema)); + it.baseId = it.baseId || it.rootId; + delete it.isTop; + it.dataPathArr = [undefined]; + if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored in the schema root'; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + out += ' var vErrors = null; '; + out += ' var errors = 0; '; + out += ' if (rootData === undefined) rootData = data; '; + } else { + var $lvl = it.level, + $dataLvl = it.dataLevel, + $data = 'data' + ($dataLvl || ''); + if ($id) it.baseId = it.resolve.url(it.baseId, $id); + if ($async && !it.async) throw new Error('async schema in sync schema'); + out += ' var errs_' + ($lvl) + ' = errors;'; + } + var $valid = 'valid' + $lvl, + $breakOnError = !it.opts.allErrors, + $closingBraces1 = '', + $closingBraces2 = ''; + var $errorKeyword; + var $typeSchema = it.schema.type, + $typeIsArray = Array.isArray($typeSchema); + if ($typeSchema && it.opts.nullable && it.schema.nullable === true) { + if ($typeIsArray) { + if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null'); + } else if ($typeSchema != 'null') { + $typeSchema = [$typeSchema, 'null']; + $typeIsArray = true; + } + } + if ($typeIsArray && $typeSchema.length == 1) { + $typeSchema = $typeSchema[0]; + $typeIsArray = false; + } + if (it.schema.$ref && $refKeywords) { + if (it.opts.extendRefs == 'fail') { + throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); + } else if (it.opts.extendRefs !== true) { + $refKeywords = false; + it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); + } + } + if (it.schema.$comment && it.opts.$comment) { + out += ' ' + (it.RULES.all.$comment.code(it, '$comment')); + } + if ($typeSchema) { + if (it.opts.coerceTypes) { + var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); + } + var $rulesGroup = it.RULES.types[$typeSchema]; + if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) { + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type'; + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type', + $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType'; + out += ' if (' + (it.util[$method]($typeSchema, $data, true)) + ') { '; + if ($coerceToTypes) { + var $dataType = 'dataType' + $lvl, + $coerced = 'coerced' + $lvl; + out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; '; + if (it.opts.coerceTypes == 'array') { + out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ')) ' + ($dataType) + ' = \'array\'; '; + } + out += ' var ' + ($coerced) + ' = undefined; '; + var $bracesCoercion = ''; + var arr1 = $coerceToTypes; + if (arr1) { + var $type, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $type = arr1[$i += 1]; + if ($i) { + out += ' if (' + ($coerced) + ' === undefined) { '; + $bracesCoercion += '}'; + } + if (it.opts.coerceTypes == 'array' && $type != 'array') { + out += ' if (' + ($dataType) + ' == \'array\' && ' + ($data) + '.length == 1) { ' + ($coerced) + ' = ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; } '; + } + if ($type == 'string') { + out += ' if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; '; + } else if ($type == 'number' || $type == 'integer') { + out += ' if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' '; + if ($type == 'integer') { + out += ' && !(' + ($data) + ' % 1)'; + } + out += ')) ' + ($coerced) + ' = +' + ($data) + '; '; + } else if ($type == 'boolean') { + out += ' if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; '; + } else if ($type == 'null') { + out += ' if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; '; + } else if (it.opts.coerceTypes == 'array' && $type == 'array') { + out += ' if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; '; + } + } + } + out += ' ' + ($bracesCoercion) + ' if (' + ($coerced) + ' === undefined) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', + $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; + out += ' ' + ($data) + ' = ' + ($coerced) + '; '; + if (!$dataLvl) { + out += 'if (' + ($parentData) + ' !== undefined)'; + } + out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } '; + } else { + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + } + out += ' } '; + } + } + if (it.schema.$ref && !$refKeywords) { + out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' '; + if ($breakOnError) { + out += ' } if (errors === '; + if ($top) { + out += '0'; + } else { + out += 'errs_' + ($lvl); + } + out += ') { '; + $closingBraces2 += '}'; + } + } else { + var arr2 = it.RULES; + if (arr2) { + var $rulesGroup, i2 = -1, + l2 = arr2.length - 1; + while (i2 < l2) { + $rulesGroup = arr2[i2 += 1]; + if ($shouldUseGroup($rulesGroup)) { + if ($rulesGroup.type) { + out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data)) + ') { '; + } + if (it.opts.useDefaults) { + if ($rulesGroup.type == 'object' && it.schema.properties) { + var $schema = it.schema.properties, + $schemaKeys = Object.keys($schema); + var arr3 = $schemaKeys; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $sch = $schema[$propertyKey]; + if ($sch.default !== undefined) { + var $passData = $data + it.util.getProperty($propertyKey); + if (it.compositeRule) { + if (it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored for: ' + $passData; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + } else { + out += ' if (' + ($passData) + ' === undefined '; + if (it.opts.useDefaults == 'empty') { + out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; + } + out += ' ) ' + ($passData) + ' = '; + if (it.opts.useDefaults == 'shared') { + out += ' ' + (it.useDefault($sch.default)) + ' '; + } else { + out += ' ' + (JSON.stringify($sch.default)) + ' '; + } + out += '; '; + } + } + } + } + } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) { + var arr4 = it.schema.items; + if (arr4) { + var $sch, $i = -1, + l4 = arr4.length - 1; + while ($i < l4) { + $sch = arr4[$i += 1]; + if ($sch.default !== undefined) { + var $passData = $data + '[' + $i + ']'; + if (it.compositeRule) { + if (it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored for: ' + $passData; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + } else { + out += ' if (' + ($passData) + ' === undefined '; + if (it.opts.useDefaults == 'empty') { + out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; + } + out += ' ) ' + ($passData) + ' = '; + if (it.opts.useDefaults == 'shared') { + out += ' ' + (it.useDefault($sch.default)) + ' '; + } else { + out += ' ' + (JSON.stringify($sch.default)) + ' '; + } + out += '; '; + } + } + } + } + } + } + var arr5 = $rulesGroup.rules; + if (arr5) { + var $rule, i5 = -1, + l5 = arr5.length - 1; + while (i5 < l5) { + $rule = arr5[i5 += 1]; + if ($shouldUseRule($rule)) { + var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); + if ($code) { + out += ' ' + ($code) + ' '; + if ($breakOnError) { + $closingBraces1 += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces1) + ' '; + $closingBraces1 = ''; + } + if ($rulesGroup.type) { + out += ' } '; + if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) { + out += ' else { '; + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + } + } + if ($breakOnError) { + out += ' if (errors === '; + if ($top) { + out += '0'; + } else { + out += 'errs_' + ($lvl); + } + out += ') { '; + $closingBraces2 += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces2) + ' '; + } + if ($top) { + if ($async) { + out += ' if (errors === 0) return data; '; + out += ' else throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; '; + out += ' return errors === 0; '; + } + out += ' }; return validate;'; + } else { + out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';'; + } + out = it.util.cleanUpCode(out); + if ($top) { + out = it.util.finalCleanUpCode(out, $async); + } + + function $shouldUseGroup($rulesGroup) { + var rules = $rulesGroup.rules; + for (var i = 0; i < rules.length; i++) + if ($shouldUseRule(rules[i])) return true; + } + + function $shouldUseRule($rule) { + return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule)); + } + + function $ruleImplementsSomeKeyword($rule) { + var impl = $rule.implements; + for (var i = 0; i < impl.length; i++) + if (it.schema[impl[i]] !== undefined) return true; + } + return out; +} diff --git a/nodered/rootfs/data/node_modules/ajv/lib/keyword.js b/nodered/rootfs/data/node_modules/ajv/lib/keyword.js new file mode 100644 index 0000000..5fec19a --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/lib/keyword.js @@ -0,0 +1,146 @@ +'use strict'; + +var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i; +var customRuleCode = require('./dotjs/custom'); +var definitionSchema = require('./definition_schema'); + +module.exports = { + add: addKeyword, + get: getKeyword, + remove: removeKeyword, + validate: validateKeyword +}; + + +/** + * Define custom keyword + * @this Ajv + * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords). + * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. + * @return {Ajv} this for method chaining + */ +function addKeyword(keyword, definition) { + /* jshint validthis: true */ + /* eslint no-shadow: 0 */ + var RULES = this.RULES; + if (RULES.keywords[keyword]) + throw new Error('Keyword ' + keyword + ' is already defined'); + + if (!IDENTIFIER.test(keyword)) + throw new Error('Keyword ' + keyword + ' is not a valid identifier'); + + if (definition) { + this.validateKeyword(definition, true); + + var dataType = definition.type; + if (Array.isArray(dataType)) { + for (var i=0; i ../ajv-dist/bower.json + cd ../ajv-dist + + if [[ `git status --porcelain` ]]; then + echo "Changes detected. Updating master branch..." + git add -A + git commit -m "updated by travis build #$TRAVIS_BUILD_NUMBER" + git push --quiet origin master > /dev/null 2>&1 + fi + + echo "Publishing tag..." + + git tag $TRAVIS_TAG + git push --tags > /dev/null 2>&1 + + echo "Done" +fi diff --git a/nodered/rootfs/data/node_modules/ajv/scripts/travis-gh-pages b/nodered/rootfs/data/node_modules/ajv/scripts/travis-gh-pages new file mode 100755 index 0000000..46ded16 --- /dev/null +++ b/nodered/rootfs/data/node_modules/ajv/scripts/travis-gh-pages @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -e + +if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then + git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$|travis-gh-pages$' && { + rm -rf ../gh-pages + git clone -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/epoberezkin/ajv.git ../gh-pages + mkdir -p ../gh-pages/_source + cp *.md ../gh-pages/_source + cp LICENSE ../gh-pages/_source + currentDir=$(pwd) + cd ../gh-pages + $currentDir/node_modules/.bin/gh-pages-generator + # remove logo from README + sed -i -E "s/]+ajv_logo[^>]+>//" index.md + git config user.email "$GIT_USER_EMAIL" + git config user.name "$GIT_USER_NAME" + git add . + git commit -am "updated by travis build #$TRAVIS_BUILD_NUMBER" + git push --quiet origin gh-pages > /dev/null 2>&1 + } +fi diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/.editorconfig b/nodered/rootfs/data/node_modules/array.prototype.findindex/.editorconfig new file mode 100644 index 0000000..48089d8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/.editorconfig @@ -0,0 +1,8 @@ +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 + +[*.{js,json}] +indent_style = tab diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/.eslintrc b/nodered/rootfs/data/node_modules/array.prototype.findindex/.eslintrc new file mode 100644 index 0000000..0b3c03b --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/.eslintrc @@ -0,0 +1,9 @@ +{ + "root": true, + + "extends": "@ljharb", + + "rules": { + "max-statements-per-line": [2, { "max": 2 }] + } +} diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/.npmignore b/nodered/rootfs/data/node_modules/array.prototype.findindex/.npmignore new file mode 100644 index 0000000..f487907 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/.npmignore @@ -0,0 +1,25 @@ +# Numerous always-ignore extensions +*.diff +*.err +*.orig +*.log +*~ + +# OS or Editor folders +.DS_Store +.cache +Icon? + +# Folders to ignore +.hg +.svn + +# Node.js package manager +node_modules +npm-debug.log + +# Other stuff +*.pyc +/tmp + +# Project stuff diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/.travis.yml b/nodered/rootfs/data/node_modules/array.prototype.findindex/.travis.yml new file mode 100644 index 0000000..a203688 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/.travis.yml @@ -0,0 +1,173 @@ +language: node_js +os: + - linux +node_js: + - "7.8" + - "6.10" + - "5.12" + - "4.8" + - "iojs-v3.3" + - "iojs-v2.5" + - "iojs-v1.8" + - "0.12" + - "0.10" + - "0.8" +before_install: + - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm@1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi' + - 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi' +install: + - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g npm@1.3 && npm install -g npm@1.4.28 && npm install -g npm@2 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;' +script: + - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi' + - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi' + - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi' + - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi' +sudo: false +env: + - TEST=true +matrix: + fast_finish: true + include: + - node_js: "7.7" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.6" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.5" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.4" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.3" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.9" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.8" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.7" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.6" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.5" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.4" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.3" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.11" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.10" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.9" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.8" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.7" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.6" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.5" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.4" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.3" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.7" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.6" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.5" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.4" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.3" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v3.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v3.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v3.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v2.4" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v2.3" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v2.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v2.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v2.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v1.7" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v1.6" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v1.5" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v1.4" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v1.3" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v1.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v1.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "iojs-v1.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "0.11" + env: TEST=true ALLOW_FAILURE=true + - node_js: "0.9" + env: TEST=true ALLOW_FAILURE=true + - node_js: "0.6" + env: TEST=true ALLOW_FAILURE=true + - node_js: "0.4" + env: TEST=true ALLOW_FAILURE=true + ##- node_js: "7" + #env: TEST=true + #os: osx + #- node_js: "6" + #env: TEST=true + #os: osx + #- node_js: "5" + #env: TEST=true + #os: osx + #- node_js: "4" + #env: TEST=true + #os: osx + #- node_js: "iojs" + #env: TEST=true + #os: osx + #- node_js: "0.12" + #env: TEST=true + #os: osx + #- node_js: "0.10" + #env: TEST=true + #os: osx + #- node_js: "0.8" + #env: TEST=true + #os: osx + allow_failures: + - os: osx + - env: TEST=true ALLOW_FAILURE=true diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/CHANGELOG.md b/nodered/rootfs/data/node_modules/array.prototype.findindex/CHANGELOG.md new file mode 100644 index 0000000..459f337 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/CHANGELOG.md @@ -0,0 +1,23 @@ +# 2.0.2 + - [Performance] the entry point should use the native function when compliant + +# 2.0.1 + - [Fix] use call instead of apply in bound entry point function (#17) + - [Refactor] Remove unnecessary double ToLength call (#16) + - [Tests] run tests on travis-ci + +# 2.0.0 + - [Breaking] use es-shim API (#13) + - [Docs] fix example in README (#9) + - [Docs] Fix npm install command in README (#7) + +# 1.0.0 + - [Fix] do not skip holes, per ES6 change (#4) + - [Fix] Older browsers report the typeof some host objects and regexes as "function" (#5) + +# 0.1.1 + - [Fix] Support IE8 by wrapping Object.defineProperty with a try catch (#3) + - [Refactor] remove redundant enumerable: false (#1) + +# 0.1.0 + - Initial release. diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/README.md b/nodered/rootfs/data/node_modules/array.prototype.findindex/README.md new file mode 100644 index 0000000..14119b8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/README.md @@ -0,0 +1,57 @@ +# ES6 `Array.prototype.findIndex` polyfill + +Simple ES6 [Array.prototype.findIndex](http://people.mozilla.org/%7Ejorendorff/es6-draft.html#sec-array.prototype.findindex) polyfill for older environments taken from [es6-shim](https://github.com/paulmillr/es6-shim). + +For browsers and node.js. + +## Installation +* Just include repo before your scripts. +* `npm install array.prototype.findindex` if you’re using node.js. +* `component install paulmillr/Array.prototype.findIndex` if you’re using [component(1)](https://github.com/component/component). +* `bower install Array.prototype.findIndex` if you’re using [Twitter Bower](http://bower.io). + + +## Usage + +* `Array.prototype.findIndex(predicate[, thisArg])` returns first item index that matches `predicate` function. +* `predicate(value, index, collection)`: takes three arguments + * `value`: current collection element + * `index`: current collection element index + * `collection`: the collection + +```javascript +var findIndex = require('array.prototype.findindex'); + +findIndex.shim(); // if you want to install it on the global environment +``` + +Code example: + +```javascript +// Default: +[1, 5, 10, 15].findIndex(function(a) {return a > 9;}) // 2 +``` + +## License + +The MIT License (MIT) + +Copyright (c) 2013 Paul Miller + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Softwareâ€), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS ISâ€, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/detect.js b/nodered/rootfs/data/node_modules/array.prototype.findindex/detect.js new file mode 100644 index 0000000..6e3aac8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/detect.js @@ -0,0 +1,3 @@ +if (!Array.prototype.findIndex) { + require('./polyfill'); +} diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/implementation.js b/nodered/rootfs/data/node_modules/array.prototype.findindex/implementation.js new file mode 100644 index 0000000..c2e5f97 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/implementation.js @@ -0,0 +1,19 @@ +// Array.prototype.findIndex - MIT License (c) 2013 Paul Miller +// For all details and docs: +'use strict'; +var ES = require('es-abstract/es6'); + +module.exports = function findIndex(predicate) { + var list = ES.ToObject(this); + var length = ES.ToLength(list.length); + if (!ES.IsCallable(predicate)) { + throw new TypeError('Array#findIndex: predicate must be a function'); + } + if (length === 0) return -1; + var thisArg = arguments[1]; + for (var i = 0, value; i < length; i++) { + value = list[i]; + if (ES.Call(predicate, thisArg, [value, i, list])) return i; + } + return -1; +}; diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/index.js b/nodered/rootfs/data/node_modules/array.prototype.findindex/index.js new file mode 100644 index 0000000..ec54ed3 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/index.js @@ -0,0 +1,26 @@ +'use strict'; + +var define = require('define-properties'); +var ES = require('es-abstract/es6'); + +var implementation = require('./implementation'); +var getPolyfill = require('./polyfill'); +var shim = require('./shim'); + +var slice = Array.prototype.slice; + +var polyfill = getPolyfill(); + +var boundShim = function findIndex(array, predicate) { + ES.RequireObjectCoercible(array); + var args = slice.call(arguments, 1); + return polyfill.apply(array, args); +}; + +define(boundShim, { + implementation: implementation, + getPolyfill: getPolyfill, + shim: shim +}); + +module.exports = boundShim; diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/package.json b/nodered/rootfs/data/node_modules/array.prototype.findindex/package.json new file mode 100644 index 0000000..f0a6f5b --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/package.json @@ -0,0 +1,62 @@ +{ + "_from": "array.prototype.findindex@^2.0.2", + "_id": "array.prototype.findindex@2.0.2", + "_inBundle": false, + "_integrity": "sha1-WAaNJYh+9QXknckssAxE3O5VsGc=", + "_location": "/array.prototype.findindex", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "array.prototype.findindex@^2.0.2", + "name": "array.prototype.findindex", + "escapedName": "array.prototype.findindex", + "rawSpec": "^2.0.2", + "saveSpec": null, + "fetchSpec": "^2.0.2" + }, + "_requiredBy": [ + "/node-telegram-bot-api" + ], + "_resolved": "https://registry.npmjs.org/array.prototype.findindex/-/array.prototype.findindex-2.0.2.tgz", + "_shasum": "58068d25887ef505e49dc92cb00c44dcee55b067", + "_spec": "array.prototype.findindex@^2.0.2", + "_where": "/data/node_modules/node-telegram-bot-api", + "author": { + "name": "Paul Miller", + "email": "http://paulmillr.com" + }, + "bugs": { + "url": "https://github.com/paulmillr/Array.prototype.findIndex/issues" + }, + "bundleDependencies": false, + "dependencies": { + "define-properties": "^1.1.2", + "es-abstract": "^1.5.0" + }, + "deprecated": false, + "description": "Array.prototype.findIndex ES6 polyfill.", + "devDependencies": { + "@es-shims/api": "^1.0.0", + "chai": "^3.5.0", + "mocha": "^2.4.5" + }, + "homepage": "https://github.com/paulmillr/Array.prototype.findIndex#readme", + "keywords": [ + "Array.prototype.findIndex", + "findIndex", + "es6" + ], + "license": "MIT", + "main": "index.js", + "name": "array.prototype.findindex", + "repository": { + "type": "git", + "url": "git://github.com/paulmillr/Array.prototype.findIndex.git" + }, + "scripts": { + "test": "npm run tests-only", + "tests-only": "es-shim-api --bound && mocha test.js" + }, + "version": "2.0.2" +} diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/polyfill.js b/nodered/rootfs/data/node_modules/array.prototype.findindex/polyfill.js new file mode 100644 index 0000000..b82f7ce --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/polyfill.js @@ -0,0 +1,12 @@ +'use strict'; + +module.exports = function getPolyfill() { + // Detect if an implementation exists + // Detect early implementations which skipped holes in sparse arrays + var implemented = Array.prototype.findIndex && ([, 1].findIndex(function (item, idx) { + return idx === 0; + }) === 0); + + + return implemented ? Array.prototype.findIndex : require('./implementation'); +}; diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/shim.js b/nodered/rootfs/data/node_modules/array.prototype.findindex/shim.js new file mode 100644 index 0000000..eeb03a8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/shim.js @@ -0,0 +1,16 @@ +'use strict'; + +var define = require('define-properties'); +var getPolyfill = require('./polyfill'); + +module.exports = function shimArrayPrototypeFindIndex() { + var polyfill = getPolyfill(); + + define(Array.prototype, { findIndex: polyfill }, { + findIndex: function () { + return Array.prototype.findIndex !== polyfill; + } + }); + + return polyfill; +}; diff --git a/nodered/rootfs/data/node_modules/array.prototype.findindex/test.js b/nodered/rootfs/data/node_modules/array.prototype.findindex/test.js new file mode 100644 index 0000000..98ac2d0 --- /dev/null +++ b/nodered/rootfs/data/node_modules/array.prototype.findindex/test.js @@ -0,0 +1,122 @@ +var expect = require("chai").expect; +var arrayFindIndex = require('./'); + +var runTests = function(findIndex) { + var list = [5, 10, 15, 20]; + + describe('Array#findIndex', function() { + it('should have a length of 1', function() { + expect(findIndex.length).to.equal(1); + }); + + it('should find item key by predicate', function() { + var result = findIndex.call(list, function(item) { return item === 15; }); + expect(result).to.equal(2); + }); + + it('should return -1 when nothing matched', function() { + var result = findIndex.call(list, function(item) { return item === 'a'; }); + expect(result).to.equal(-1); + }); + + it('should throw TypeError when function was not passed', function() { + expect(function() { list.findIndex(); }).to.throw(TypeError); + }); + + it('should receive all three parameters', function() { + var index = findIndex.call(list, function(value, index, arr) { + expect(list[index]).to.equal(value); + expect(list).to.eql(arr); + return false; + }); + expect(index).to.equal(-1); + }); + + it('should work with the context argument', function() { + var context = {}; + findIndex.call([1], function() { expect(this).to.equal(context); }, context); + }); + + it('should work with an array-like object', function() { + var obj = { '0': 1, '1': 2, '2': 3, length: 3 }; + var foundIndex = findIndex.call(obj, function(item) { return item === 2; }); + expect(foundIndex).to.equal(1); + }); + + it('should work with an array-like object with negative length', function() { + var obj = { '0': 1, '1': 2, '2': 3, length: -3 }; + var foundIndex = findIndex.call(obj, function(item) { + throw new Error('should not reach here'); + }); + expect(foundIndex).to.equal(-1); + }); + + it('should work with a sparse array', function() { + var obj = [1, , undefined]; + expect(1 in obj).to.equal(false); + var seen = []; + var foundIndex = findIndex.call(obj, function(item, idx) { + seen.push([idx, item]); + return item === undefined && idx === 2; + }); + expect(foundIndex).to.equal(2); + expect(seen).to.eql([[0, 1], [1, undefined], [2, undefined]]); + }); + + it('should work with a sparse array-like object', function() { + var obj = { '0': 1, '2': undefined, length: 3.2 }; + var seen = []; + var foundIndex = findIndex.call(obj, function(item, idx) { + seen.push([idx, item]); + return false; + }); + expect(foundIndex).to.equal(-1); + expect(seen).to.eql([[0, 1], [1, undefined], [2, undefined]]); + }); + }); +}; + +describe('polyfill', function() { + describe('clean Object.prototype', function() { + runTests(arrayFindIndex.implementation) + }); + + describe('polluted Object.prototype', function() { + Object.prototype[1] = 42; + runTests(arrayFindIndex.implementation); + delete Object.prototype[1]; + }); +}); + +describe('shim', function() { + arrayFindIndex.shim(); + var implementation = Array.prototype.findIndex; + + describe('clean Object.prototype', function() { + runTests(implementation); + }); + + describe('polluted Object.prototype', function() { + Object.prototype[1] = 42; + runTests(implementation); + delete Object.prototype[1]; + }); +}); + +describe('single function', function() { + var findIndexAsFunction = function(func) { + var args = Array.prototype.slice.call(arguments); + args.unshift(this); + return arrayFindIndex.apply(undefined, args); + }; + + describe('clean Object.prototype', function() { + runTests(findIndexAsFunction); + }); + + describe('polluted Object.prototype', function() { + Object.prototype[1] = 42; + runTests(findIndexAsFunction); + delete Object.prototype[1]; + }); +}); diff --git a/nodered/rootfs/data/node_modules/arraybuffer.slice/.npmignore b/nodered/rootfs/data/node_modules/arraybuffer.slice/.npmignore new file mode 100644 index 0000000..cfbee8d --- /dev/null +++ b/nodered/rootfs/data/node_modules/arraybuffer.slice/.npmignore @@ -0,0 +1,17 @@ +lib-cov +lcov.info +*.seed +*.log +*.csv +*.dat +*.out +*.pid +*.gz + +pids +logs +results +build +.grunt + +node_modules diff --git a/nodered/rootfs/data/node_modules/arraybuffer.slice/LICENCE b/nodered/rootfs/data/node_modules/arraybuffer.slice/LICENCE new file mode 100644 index 0000000..35fa375 --- /dev/null +++ b/nodered/rootfs/data/node_modules/arraybuffer.slice/LICENCE @@ -0,0 +1,18 @@ +Copyright (C) 2013 Rase- + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/arraybuffer.slice/Makefile b/nodered/rootfs/data/node_modules/arraybuffer.slice/Makefile new file mode 100644 index 0000000..849887f --- /dev/null +++ b/nodered/rootfs/data/node_modules/arraybuffer.slice/Makefile @@ -0,0 +1,8 @@ + +REPORTER = dot + +test: + @./node_modules/.bin/mocha \ + --reporter $(REPORTER) + +.PHONY: test diff --git a/nodered/rootfs/data/node_modules/arraybuffer.slice/README.md b/nodered/rootfs/data/node_modules/arraybuffer.slice/README.md new file mode 100644 index 0000000..15e465e --- /dev/null +++ b/nodered/rootfs/data/node_modules/arraybuffer.slice/README.md @@ -0,0 +1,17 @@ +# How to +```javascript +var sliceBuffer = require('arraybuffer.slice'); +var ab = (new Int8Array(5)).buffer; +var sliced = sliceBuffer(ab, 1, 3); +sliced = sliceBuffer(ab, 1); +``` + +# Licence (MIT) +Copyright (C) 2013 Rase- + + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/arraybuffer.slice/index.js b/nodered/rootfs/data/node_modules/arraybuffer.slice/index.js new file mode 100644 index 0000000..11ac556 --- /dev/null +++ b/nodered/rootfs/data/node_modules/arraybuffer.slice/index.js @@ -0,0 +1,29 @@ +/** + * An abstraction for slicing an arraybuffer even when + * ArrayBuffer.prototype.slice is not supported + * + * @api public + */ + +module.exports = function(arraybuffer, start, end) { + var bytes = arraybuffer.byteLength; + start = start || 0; + end = end || bytes; + + if (arraybuffer.slice) { return arraybuffer.slice(start, end); } + + if (start < 0) { start += bytes; } + if (end < 0) { end += bytes; } + if (end > bytes) { end = bytes; } + + if (start >= bytes || start >= end || bytes === 0) { + return new ArrayBuffer(0); + } + + var abv = new Uint8Array(arraybuffer); + var result = new Uint8Array(end - start); + for (var i = start, ii = 0; i < end; i++, ii++) { + result[ii] = abv[i]; + } + return result.buffer; +}; diff --git a/nodered/rootfs/data/node_modules/arraybuffer.slice/package.json b/nodered/rootfs/data/node_modules/arraybuffer.slice/package.json new file mode 100644 index 0000000..f102549 --- /dev/null +++ b/nodered/rootfs/data/node_modules/arraybuffer.slice/package.json @@ -0,0 +1,44 @@ +{ + "_from": "arraybuffer.slice@~0.0.7", + "_id": "arraybuffer.slice@0.0.7", + "_inBundle": false, + "_integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==", + "_location": "/arraybuffer.slice", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "arraybuffer.slice@~0.0.7", + "name": "arraybuffer.slice", + "escapedName": "arraybuffer.slice", + "rawSpec": "~0.0.7", + "saveSpec": null, + "fetchSpec": "~0.0.7" + }, + "_requiredBy": [ + "/engine.io-parser" + ], + "_resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", + "_shasum": "3bbc4275dd584cc1b10809b89d4e8b63a69e7675", + "_spec": "arraybuffer.slice@~0.0.7", + "_where": "/data/node_modules/engine.io-parser", + "bugs": { + "url": "https://github.com/rase-/arraybuffer.slice/issues" + }, + "bundleDependencies": false, + "dependencies": {}, + "deprecated": false, + "description": "Exports a function for slicing ArrayBuffers (no polyfilling)", + "devDependencies": { + "expect.js": "0.2.0", + "mocha": "1.17.1" + }, + "homepage": "https://github.com/rase-/arraybuffer.slice", + "license": "MIT", + "name": "arraybuffer.slice", + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/rase-/arraybuffer.slice.git" + }, + "version": "0.0.7" +} diff --git a/nodered/rootfs/data/node_modules/arraybuffer.slice/test/slice-buffer.js b/nodered/rootfs/data/node_modules/arraybuffer.slice/test/slice-buffer.js new file mode 100644 index 0000000..4778da6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/arraybuffer.slice/test/slice-buffer.js @@ -0,0 +1,227 @@ +/* + * Test dependencies + */ + +var sliceBuffer = require('../index.js'); +var expect = require('expect.js'); + +/** + * Tests + */ + +describe('sliceBuffer', function() { + describe('using standard slice', function() { + it('should slice correctly with only start provided', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + + var sliced = sliceBuffer(abv.buffer, 3); + var sabv = new Uint8Array(sliced); + for (var i = 3, ii = 0; i < abv.length; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with start and end provided', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + + var sliced = sliceBuffer(abv.buffer, 3, 8); + var sabv = new Uint8Array(sliced); + for (var i = 3, ii = 0; i < 8; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with negative start', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + + var sliced = sliceBuffer(abv.buffer, -3); + var sabv = new Uint8Array(sliced); + for (var i = abv.length - 3, ii = 0; i < abv.length; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with negative end', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + + var sliced = sliceBuffer(abv.buffer, 0, -3); + var sabv = new Uint8Array(sliced); + for (var i = 0, ii = 0; i < abv.length - 3; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with negative start and end', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + + var sliced = sliceBuffer(abv.buffer, -6, -3); + var sabv = new Uint8Array(sliced); + for (var i = abv.length - 6, ii = 0; i < abv.length - 3; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with equal start and end', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + + var sliced = sliceBuffer(abv.buffer, 1, 1); + expect(sliced.byteLength).to.equal(0); + }); + + it('should slice correctly when end larger than buffer', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + + var sliced = sliceBuffer(abv.buffer, 0, 100); + expect(new Uint8Array(sliced)).to.eql(abv); + }); + + it('shoud slice correctly when start larger than end', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + + var sliced = sliceBuffer(abv.buffer, 6, 5); + expect(sliced.byteLength).to.equal(0); + }); + }); + + describe('using fallback', function() { + it('should slice correctly with only start provided', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + var ab = abv.buffer; + ab.slice = undefined; + + var sliced = sliceBuffer(ab, 3); + var sabv = new Uint8Array(sliced); + for (var i = 3, ii = 0; i < abv.length; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with start and end provided', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + var ab = abv.buffer; + ab.slice = undefined; + + + var sliced = sliceBuffer(ab, 3, 8); + var sabv = new Uint8Array(sliced); + for (var i = 3, ii = 0; i < 8; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with negative start', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + var ab = abv.buffer; + ab.slice = undefined; + + + var sliced = sliceBuffer(ab, -3); + var sabv = new Uint8Array(sliced); + for (var i = abv.length - 3, ii = 0; i < abv.length; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with negative end', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + var ab = abv.buffer; + ab.slice = undefined; + + var sliced = sliceBuffer(ab, 0, -3); + var sabv = new Uint8Array(sliced); + for (var i = 0, ii = 0; i < abv.length - 3; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with negative start and end', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + var ab = abv.buffer; + ab.slice = undefined; + + var sliced = sliceBuffer(ab, -6, -3); + var sabv = new Uint8Array(sliced); + for (var i = abv.length - 6, ii = 0; i < abv.length - 3; i++, ii++) { + expect(abv[i]).to.equal(sabv[ii]); + } + }); + + it('should slice correctly with equal start and end', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + var ab = abv.buffer; + ab.slice = undefined; + + var sliced = sliceBuffer(ab, 1, 1); + expect(sliced.byteLength).to.equal(0); + }); + + it('should slice correctly when end larger than buffer', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + var ab = abv.buffer; + ab.slice = undefined; + + var sliced = sliceBuffer(ab, 0, 100); + var sabv = new Uint8Array(sliced); + for (var i = 0; i < abv.length; i++) { + expect(abv[i]).to.equal(sabv[i]); + } + }); + + it('shoud slice correctly when start larger than end', function() { + var abv = new Uint8Array(10); + for (var i = 0; i < abv.length; i++) { + abv[i] = i; + } + var ab = abv.buffer; + ab.slice = undefined; + + var sliced = sliceBuffer(ab, 6, 5); + expect(sliced.byteLength).to.equal(0); + }); + }); +}); diff --git a/nodered/rootfs/data/node_modules/asn1/LICENSE b/nodered/rootfs/data/node_modules/asn1/LICENSE new file mode 100644 index 0000000..9b5dcdb --- /dev/null +++ b/nodered/rootfs/data/node_modules/asn1/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2011 Mark Cavage, All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE diff --git a/nodered/rootfs/data/node_modules/asn1/README.md b/nodered/rootfs/data/node_modules/asn1/README.md new file mode 100644 index 0000000..2208210 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asn1/README.md @@ -0,0 +1,50 @@ +node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS. +Currently BER encoding is supported; at some point I'll likely have to do DER. + +## Usage + +Mostly, if you're *actually* needing to read and write ASN.1, you probably don't +need this readme to explain what and why. If you have no idea what ASN.1 is, +see this: ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc + +The source is pretty much self-explanatory, and has read/write methods for the +common types out there. + +### Decoding + +The following reads an ASN.1 sequence with a boolean. + + var Ber = require('asn1').Ber; + + var reader = new Ber.Reader(Buffer.from([0x30, 0x03, 0x01, 0x01, 0xff])); + + reader.readSequence(); + console.log('Sequence len: ' + reader.length); + if (reader.peek() === Ber.Boolean) + console.log(reader.readBoolean()); + +### Encoding + +The following generates the same payload as above. + + var Ber = require('asn1').Ber; + + var writer = new Ber.Writer(); + + writer.startSequence(); + writer.writeBoolean(true); + writer.endSequence(); + + console.log(writer.buffer); + +## Installation + + npm install asn1 + +## License + +MIT. + +## Bugs + +See . diff --git a/nodered/rootfs/data/node_modules/asn1/lib/ber/errors.js b/nodered/rootfs/data/node_modules/asn1/lib/ber/errors.js new file mode 100644 index 0000000..4557b8a --- /dev/null +++ b/nodered/rootfs/data/node_modules/asn1/lib/ber/errors.js @@ -0,0 +1,13 @@ +// Copyright 2011 Mark Cavage All rights reserved. + + +module.exports = { + + newInvalidAsn1Error: function (msg) { + var e = new Error(); + e.name = 'InvalidAsn1Error'; + e.message = msg || ''; + return e; + } + +}; diff --git a/nodered/rootfs/data/node_modules/asn1/lib/ber/index.js b/nodered/rootfs/data/node_modules/asn1/lib/ber/index.js new file mode 100644 index 0000000..387d132 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asn1/lib/ber/index.js @@ -0,0 +1,27 @@ +// Copyright 2011 Mark Cavage All rights reserved. + +var errors = require('./errors'); +var types = require('./types'); + +var Reader = require('./reader'); +var Writer = require('./writer'); + + +// --- Exports + +module.exports = { + + Reader: Reader, + + Writer: Writer + +}; + +for (var t in types) { + if (types.hasOwnProperty(t)) + module.exports[t] = types[t]; +} +for (var e in errors) { + if (errors.hasOwnProperty(e)) + module.exports[e] = errors[e]; +} diff --git a/nodered/rootfs/data/node_modules/asn1/lib/ber/reader.js b/nodered/rootfs/data/node_modules/asn1/lib/ber/reader.js new file mode 100644 index 0000000..8a7e4ca --- /dev/null +++ b/nodered/rootfs/data/node_modules/asn1/lib/ber/reader.js @@ -0,0 +1,262 @@ +// Copyright 2011 Mark Cavage All rights reserved. + +var assert = require('assert'); +var Buffer = require('safer-buffer').Buffer; + +var ASN1 = require('./types'); +var errors = require('./errors'); + + +// --- Globals + +var newInvalidAsn1Error = errors.newInvalidAsn1Error; + + + +// --- API + +function Reader(data) { + if (!data || !Buffer.isBuffer(data)) + throw new TypeError('data must be a node Buffer'); + + this._buf = data; + this._size = data.length; + + // These hold the "current" state + this._len = 0; + this._offset = 0; +} + +Object.defineProperty(Reader.prototype, 'length', { + enumerable: true, + get: function () { return (this._len); } +}); + +Object.defineProperty(Reader.prototype, 'offset', { + enumerable: true, + get: function () { return (this._offset); } +}); + +Object.defineProperty(Reader.prototype, 'remain', { + get: function () { return (this._size - this._offset); } +}); + +Object.defineProperty(Reader.prototype, 'buffer', { + get: function () { return (this._buf.slice(this._offset)); } +}); + + +/** + * Reads a single byte and advances offset; you can pass in `true` to make this + * a "peek" operation (i.e., get the byte, but don't advance the offset). + * + * @param {Boolean} peek true means don't move offset. + * @return {Number} the next byte, null if not enough data. + */ +Reader.prototype.readByte = function (peek) { + if (this._size - this._offset < 1) + return null; + + var b = this._buf[this._offset] & 0xff; + + if (!peek) + this._offset += 1; + + return b; +}; + + +Reader.prototype.peek = function () { + return this.readByte(true); +}; + + +/** + * Reads a (potentially) variable length off the BER buffer. This call is + * not really meant to be called directly, as callers have to manipulate + * the internal buffer afterwards. + * + * As a result of this call, you can call `Reader.length`, until the + * next thing called that does a readLength. + * + * @return {Number} the amount of offset to advance the buffer. + * @throws {InvalidAsn1Error} on bad ASN.1 + */ +Reader.prototype.readLength = function (offset) { + if (offset === undefined) + offset = this._offset; + + if (offset >= this._size) + return null; + + var lenB = this._buf[offset++] & 0xff; + if (lenB === null) + return null; + + if ((lenB & 0x80) === 0x80) { + lenB &= 0x7f; + + if (lenB === 0) + throw newInvalidAsn1Error('Indefinite length not supported'); + + if (lenB > 4) + throw newInvalidAsn1Error('encoding too long'); + + if (this._size - offset < lenB) + return null; + + this._len = 0; + for (var i = 0; i < lenB; i++) + this._len = (this._len << 8) + (this._buf[offset++] & 0xff); + + } else { + // Wasn't a variable length + this._len = lenB; + } + + return offset; +}; + + +/** + * Parses the next sequence in this BER buffer. + * + * To get the length of the sequence, call `Reader.length`. + * + * @return {Number} the sequence's tag. + */ +Reader.prototype.readSequence = function (tag) { + var seq = this.peek(); + if (seq === null) + return null; + if (tag !== undefined && tag !== seq) + throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) + + ': got 0x' + seq.toString(16)); + + var o = this.readLength(this._offset + 1); // stored in `length` + if (o === null) + return null; + + this._offset = o; + return seq; +}; + + +Reader.prototype.readInt = function () { + return this._readTag(ASN1.Integer); +}; + + +Reader.prototype.readBoolean = function () { + return (this._readTag(ASN1.Boolean) === 0 ? false : true); +}; + + +Reader.prototype.readEnumeration = function () { + return this._readTag(ASN1.Enumeration); +}; + + +Reader.prototype.readString = function (tag, retbuf) { + if (!tag) + tag = ASN1.OctetString; + + var b = this.peek(); + if (b === null) + return null; + + if (b !== tag) + throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) + + ': got 0x' + b.toString(16)); + + var o = this.readLength(this._offset + 1); // stored in `length` + + if (o === null) + return null; + + if (this.length > this._size - o) + return null; + + this._offset = o; + + if (this.length === 0) + return retbuf ? Buffer.alloc(0) : ''; + + var str = this._buf.slice(this._offset, this._offset + this.length); + this._offset += this.length; + + return retbuf ? str : str.toString('utf8'); +}; + +Reader.prototype.readOID = function (tag) { + if (!tag) + tag = ASN1.OID; + + var b = this.readString(tag, true); + if (b === null) + return null; + + var values = []; + var value = 0; + + for (var i = 0; i < b.length; i++) { + var byte = b[i] & 0xff; + + value <<= 7; + value += byte & 0x7f; + if ((byte & 0x80) === 0) { + values.push(value); + value = 0; + } + } + + value = values.shift(); + values.unshift(value % 40); + values.unshift((value / 40) >> 0); + + return values.join('.'); +}; + + +Reader.prototype._readTag = function (tag) { + assert.ok(tag !== undefined); + + var b = this.peek(); + + if (b === null) + return null; + + if (b !== tag) + throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) + + ': got 0x' + b.toString(16)); + + var o = this.readLength(this._offset + 1); // stored in `length` + if (o === null) + return null; + + if (this.length > 4) + throw newInvalidAsn1Error('Integer too long: ' + this.length); + + if (this.length > this._size - o) + return null; + this._offset = o; + + var fb = this._buf[this._offset]; + var value = 0; + + for (var i = 0; i < this.length; i++) { + value <<= 8; + value |= (this._buf[this._offset++] & 0xff); + } + + if ((fb & 0x80) === 0x80 && i !== 4) + value -= (1 << (i * 8)); + + return value >> 0; +}; + + + +// --- Exported API + +module.exports = Reader; diff --git a/nodered/rootfs/data/node_modules/asn1/lib/ber/types.js b/nodered/rootfs/data/node_modules/asn1/lib/ber/types.js new file mode 100644 index 0000000..8aea000 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asn1/lib/ber/types.js @@ -0,0 +1,36 @@ +// Copyright 2011 Mark Cavage All rights reserved. + + +module.exports = { + EOC: 0, + Boolean: 1, + Integer: 2, + BitString: 3, + OctetString: 4, + Null: 5, + OID: 6, + ObjectDescriptor: 7, + External: 8, + Real: 9, // float + Enumeration: 10, + PDV: 11, + Utf8String: 12, + RelativeOID: 13, + Sequence: 16, + Set: 17, + NumericString: 18, + PrintableString: 19, + T61String: 20, + VideotexString: 21, + IA5String: 22, + UTCTime: 23, + GeneralizedTime: 24, + GraphicString: 25, + VisibleString: 26, + GeneralString: 28, + UniversalString: 29, + CharacterString: 30, + BMPString: 31, + Constructor: 32, + Context: 128 +}; diff --git a/nodered/rootfs/data/node_modules/asn1/lib/ber/writer.js b/nodered/rootfs/data/node_modules/asn1/lib/ber/writer.js new file mode 100644 index 0000000..3515acf --- /dev/null +++ b/nodered/rootfs/data/node_modules/asn1/lib/ber/writer.js @@ -0,0 +1,317 @@ +// Copyright 2011 Mark Cavage All rights reserved. + +var assert = require('assert'); +var Buffer = require('safer-buffer').Buffer; +var ASN1 = require('./types'); +var errors = require('./errors'); + + +// --- Globals + +var newInvalidAsn1Error = errors.newInvalidAsn1Error; + +var DEFAULT_OPTS = { + size: 1024, + growthFactor: 8 +}; + + +// --- Helpers + +function merge(from, to) { + assert.ok(from); + assert.equal(typeof (from), 'object'); + assert.ok(to); + assert.equal(typeof (to), 'object'); + + var keys = Object.getOwnPropertyNames(from); + keys.forEach(function (key) { + if (to[key]) + return; + + var value = Object.getOwnPropertyDescriptor(from, key); + Object.defineProperty(to, key, value); + }); + + return to; +} + + + +// --- API + +function Writer(options) { + options = merge(DEFAULT_OPTS, options || {}); + + this._buf = Buffer.alloc(options.size || 1024); + this._size = this._buf.length; + this._offset = 0; + this._options = options; + + // A list of offsets in the buffer where we need to insert + // sequence tag/len pairs. + this._seq = []; +} + +Object.defineProperty(Writer.prototype, 'buffer', { + get: function () { + if (this._seq.length) + throw newInvalidAsn1Error(this._seq.length + ' unended sequence(s)'); + + return (this._buf.slice(0, this._offset)); + } +}); + +Writer.prototype.writeByte = function (b) { + if (typeof (b) !== 'number') + throw new TypeError('argument must be a Number'); + + this._ensure(1); + this._buf[this._offset++] = b; +}; + + +Writer.prototype.writeInt = function (i, tag) { + if (typeof (i) !== 'number') + throw new TypeError('argument must be a Number'); + if (typeof (tag) !== 'number') + tag = ASN1.Integer; + + var sz = 4; + + while ((((i & 0xff800000) === 0) || ((i & 0xff800000) === 0xff800000 >> 0)) && + (sz > 1)) { + sz--; + i <<= 8; + } + + if (sz > 4) + throw newInvalidAsn1Error('BER ints cannot be > 0xffffffff'); + + this._ensure(2 + sz); + this._buf[this._offset++] = tag; + this._buf[this._offset++] = sz; + + while (sz-- > 0) { + this._buf[this._offset++] = ((i & 0xff000000) >>> 24); + i <<= 8; + } + +}; + + +Writer.prototype.writeNull = function () { + this.writeByte(ASN1.Null); + this.writeByte(0x00); +}; + + +Writer.prototype.writeEnumeration = function (i, tag) { + if (typeof (i) !== 'number') + throw new TypeError('argument must be a Number'); + if (typeof (tag) !== 'number') + tag = ASN1.Enumeration; + + return this.writeInt(i, tag); +}; + + +Writer.prototype.writeBoolean = function (b, tag) { + if (typeof (b) !== 'boolean') + throw new TypeError('argument must be a Boolean'); + if (typeof (tag) !== 'number') + tag = ASN1.Boolean; + + this._ensure(3); + this._buf[this._offset++] = tag; + this._buf[this._offset++] = 0x01; + this._buf[this._offset++] = b ? 0xff : 0x00; +}; + + +Writer.prototype.writeString = function (s, tag) { + if (typeof (s) !== 'string') + throw new TypeError('argument must be a string (was: ' + typeof (s) + ')'); + if (typeof (tag) !== 'number') + tag = ASN1.OctetString; + + var len = Buffer.byteLength(s); + this.writeByte(tag); + this.writeLength(len); + if (len) { + this._ensure(len); + this._buf.write(s, this._offset); + this._offset += len; + } +}; + + +Writer.prototype.writeBuffer = function (buf, tag) { + if (typeof (tag) !== 'number') + throw new TypeError('tag must be a number'); + if (!Buffer.isBuffer(buf)) + throw new TypeError('argument must be a buffer'); + + this.writeByte(tag); + this.writeLength(buf.length); + this._ensure(buf.length); + buf.copy(this._buf, this._offset, 0, buf.length); + this._offset += buf.length; +}; + + +Writer.prototype.writeStringArray = function (strings) { + if ((!strings instanceof Array)) + throw new TypeError('argument must be an Array[String]'); + + var self = this; + strings.forEach(function (s) { + self.writeString(s); + }); +}; + +// This is really to solve DER cases, but whatever for now +Writer.prototype.writeOID = function (s, tag) { + if (typeof (s) !== 'string') + throw new TypeError('argument must be a string'); + if (typeof (tag) !== 'number') + tag = ASN1.OID; + + if (!/^([0-9]+\.){3,}[0-9]+$/.test(s)) + throw new Error('argument is not a valid OID string'); + + function encodeOctet(bytes, octet) { + if (octet < 128) { + bytes.push(octet); + } else if (octet < 16384) { + bytes.push((octet >>> 7) | 0x80); + bytes.push(octet & 0x7F); + } else if (octet < 2097152) { + bytes.push((octet >>> 14) | 0x80); + bytes.push(((octet >>> 7) | 0x80) & 0xFF); + bytes.push(octet & 0x7F); + } else if (octet < 268435456) { + bytes.push((octet >>> 21) | 0x80); + bytes.push(((octet >>> 14) | 0x80) & 0xFF); + bytes.push(((octet >>> 7) | 0x80) & 0xFF); + bytes.push(octet & 0x7F); + } else { + bytes.push(((octet >>> 28) | 0x80) & 0xFF); + bytes.push(((octet >>> 21) | 0x80) & 0xFF); + bytes.push(((octet >>> 14) | 0x80) & 0xFF); + bytes.push(((octet >>> 7) | 0x80) & 0xFF); + bytes.push(octet & 0x7F); + } + } + + var tmp = s.split('.'); + var bytes = []; + bytes.push(parseInt(tmp[0], 10) * 40 + parseInt(tmp[1], 10)); + tmp.slice(2).forEach(function (b) { + encodeOctet(bytes, parseInt(b, 10)); + }); + + var self = this; + this._ensure(2 + bytes.length); + this.writeByte(tag); + this.writeLength(bytes.length); + bytes.forEach(function (b) { + self.writeByte(b); + }); +}; + + +Writer.prototype.writeLength = function (len) { + if (typeof (len) !== 'number') + throw new TypeError('argument must be a Number'); + + this._ensure(4); + + if (len <= 0x7f) { + this._buf[this._offset++] = len; + } else if (len <= 0xff) { + this._buf[this._offset++] = 0x81; + this._buf[this._offset++] = len; + } else if (len <= 0xffff) { + this._buf[this._offset++] = 0x82; + this._buf[this._offset++] = len >> 8; + this._buf[this._offset++] = len; + } else if (len <= 0xffffff) { + this._buf[this._offset++] = 0x83; + this._buf[this._offset++] = len >> 16; + this._buf[this._offset++] = len >> 8; + this._buf[this._offset++] = len; + } else { + throw newInvalidAsn1Error('Length too long (> 4 bytes)'); + } +}; + +Writer.prototype.startSequence = function (tag) { + if (typeof (tag) !== 'number') + tag = ASN1.Sequence | ASN1.Constructor; + + this.writeByte(tag); + this._seq.push(this._offset); + this._ensure(3); + this._offset += 3; +}; + + +Writer.prototype.endSequence = function () { + var seq = this._seq.pop(); + var start = seq + 3; + var len = this._offset - start; + + if (len <= 0x7f) { + this._shift(start, len, -2); + this._buf[seq] = len; + } else if (len <= 0xff) { + this._shift(start, len, -1); + this._buf[seq] = 0x81; + this._buf[seq + 1] = len; + } else if (len <= 0xffff) { + this._buf[seq] = 0x82; + this._buf[seq + 1] = len >> 8; + this._buf[seq + 2] = len; + } else if (len <= 0xffffff) { + this._shift(start, len, 1); + this._buf[seq] = 0x83; + this._buf[seq + 1] = len >> 16; + this._buf[seq + 2] = len >> 8; + this._buf[seq + 3] = len; + } else { + throw newInvalidAsn1Error('Sequence too long'); + } +}; + + +Writer.prototype._shift = function (start, len, shift) { + assert.ok(start !== undefined); + assert.ok(len !== undefined); + assert.ok(shift); + + this._buf.copy(this._buf, start + shift, start, start + len); + this._offset += shift; +}; + +Writer.prototype._ensure = function (len) { + assert.ok(len); + + if (this._size - this._offset < len) { + var sz = this._size * this._options.growthFactor; + if (sz - this._offset < len) + sz += len; + + var buf = Buffer.alloc(sz); + + this._buf.copy(buf, 0, 0, this._offset); + this._buf = buf; + this._size = sz; + } +}; + + + +// --- Exported API + +module.exports = Writer; diff --git a/nodered/rootfs/data/node_modules/asn1/lib/index.js b/nodered/rootfs/data/node_modules/asn1/lib/index.js new file mode 100644 index 0000000..ede3ab2 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asn1/lib/index.js @@ -0,0 +1,20 @@ +// Copyright 2011 Mark Cavage All rights reserved. + +// If you have no idea what ASN.1 or BER is, see this: +// ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc + +var Ber = require('./ber/index'); + + + +// --- Exported API + +module.exports = { + + Ber: Ber, + + BerReader: Ber.Reader, + + BerWriter: Ber.Writer + +}; diff --git a/nodered/rootfs/data/node_modules/asn1/package.json b/nodered/rootfs/data/node_modules/asn1/package.json new file mode 100644 index 0000000..243a093 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asn1/package.json @@ -0,0 +1,75 @@ +{ + "_from": "asn1@~0.2.3", + "_id": "asn1@0.2.4", + "_inBundle": false, + "_integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "_location": "/asn1", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "asn1@~0.2.3", + "name": "asn1", + "escapedName": "asn1", + "rawSpec": "~0.2.3", + "saveSpec": null, + "fetchSpec": "~0.2.3" + }, + "_requiredBy": [ + "/sshpk" + ], + "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "_shasum": "8d2475dfab553bb33e77b54e59e880bb8ce23136", + "_spec": "asn1@~0.2.3", + "_where": "/data/node_modules/sshpk", + "author": { + "name": "Joyent", + "url": "joyent.com" + }, + "bugs": { + "url": "https://github.com/joyent/node-asn1/issues" + }, + "bundleDependencies": false, + "contributors": [ + { + "name": "Mark Cavage", + "email": "mcavage@gmail.com" + }, + { + "name": "David Gwynne", + "email": "loki@animata.net" + }, + { + "name": "Yunong Xiao", + "email": "yunong@joyent.com" + }, + { + "name": "Alex Wilson", + "email": "alex.wilson@joyent.com" + } + ], + "dependencies": { + "safer-buffer": "~2.1.0" + }, + "deprecated": false, + "description": "Contains parsers and serializers for ASN.1 (currently BER only)", + "devDependencies": { + "eslint": "2.13.1", + "eslint-plugin-joyent": "~1.3.0", + "faucet": "0.0.1", + "istanbul": "^0.3.6", + "tape": "^3.5.0" + }, + "homepage": "https://github.com/joyent/node-asn1#readme", + "license": "MIT", + "main": "lib/index.js", + "name": "asn1", + "repository": { + "type": "git", + "url": "git://github.com/joyent/node-asn1.git" + }, + "scripts": { + "test": "tape ./test/ber/*.test.js" + }, + "version": "0.2.4" +} diff --git a/nodered/rootfs/data/node_modules/assert-plus/AUTHORS b/nodered/rootfs/data/node_modules/assert-plus/AUTHORS new file mode 100644 index 0000000..1923524 --- /dev/null +++ b/nodered/rootfs/data/node_modules/assert-plus/AUTHORS @@ -0,0 +1,6 @@ +Dave Eddy +Fred Kuo +Lars-Magnus Skog +Mark Cavage +Patrick Mooney +Rob Gulewich diff --git a/nodered/rootfs/data/node_modules/assert-plus/CHANGES.md b/nodered/rootfs/data/node_modules/assert-plus/CHANGES.md new file mode 100644 index 0000000..57d92bf --- /dev/null +++ b/nodered/rootfs/data/node_modules/assert-plus/CHANGES.md @@ -0,0 +1,14 @@ +# assert-plus Changelog + +## 1.0.0 + +- *BREAKING* assert.number (and derivatives) now accept Infinity as valid input +- Add assert.finite check. Previous assert.number callers should use this if + they expect Infinity inputs to throw. + +## 0.2.0 + +- Fix `assert.object(null)` so it throws +- Fix optional/arrayOf exports for non-type-of asserts +- Add optiona/arrayOf exports for Stream/Date/Regex/uuid +- Add basic unit test coverage diff --git a/nodered/rootfs/data/node_modules/assert-plus/README.md b/nodered/rootfs/data/node_modules/assert-plus/README.md new file mode 100644 index 0000000..ec200d1 --- /dev/null +++ b/nodered/rootfs/data/node_modules/assert-plus/README.md @@ -0,0 +1,162 @@ +# assert-plus + +This library is a super small wrapper over node's assert module that has two +things: (1) the ability to disable assertions with the environment variable +NODE\_NDEBUG, and (2) some API wrappers for argument testing. Like +`assert.string(myArg, 'myArg')`. As a simple example, most of my code looks +like this: + +```javascript + var assert = require('assert-plus'); + + function fooAccount(options, callback) { + assert.object(options, 'options'); + assert.number(options.id, 'options.id'); + assert.bool(options.isManager, 'options.isManager'); + assert.string(options.name, 'options.name'); + assert.arrayOfString(options.email, 'options.email'); + assert.func(callback, 'callback'); + + // Do stuff + callback(null, {}); + } +``` + +# API + +All methods that *aren't* part of node's core assert API are simply assumed to +take an argument, and then a string 'name' that's not a message; `AssertionError` +will be thrown if the assertion fails with a message like: + + AssertionError: foo (string) is required + at test (/home/mark/work/foo/foo.js:3:9) + at Object. (/home/mark/work/foo/foo.js:15:1) + at Module._compile (module.js:446:26) + at Object..js (module.js:464:10) + at Module.load (module.js:353:31) + at Function._load (module.js:311:12) + at Array.0 (module.js:484:10) + at EventEmitter._tickCallback (node.js:190:38) + +from: + +```javascript + function test(foo) { + assert.string(foo, 'foo'); + } +``` + +There you go. You can check that arrays are of a homogeneous type with `Arrayof$Type`: + +```javascript + function test(foo) { + assert.arrayOfString(foo, 'foo'); + } +``` + +You can assert IFF an argument is not `undefined` (i.e., an optional arg): + +```javascript + assert.optionalString(foo, 'foo'); +``` + +Lastly, you can opt-out of assertion checking altogether by setting the +environment variable `NODE_NDEBUG=1`. This is pseudo-useful if you have +lots of assertions, and don't want to pay `typeof ()` taxes to v8 in +production. Be advised: The standard functions re-exported from `assert` are +also disabled in assert-plus if NDEBUG is specified. Using them directly from +the `assert` module avoids this behavior. + +The complete list of APIs is: + +* assert.array +* assert.bool +* assert.buffer +* assert.func +* assert.number +* assert.finite +* assert.object +* assert.string +* assert.stream +* assert.date +* assert.regexp +* assert.uuid +* assert.arrayOfArray +* assert.arrayOfBool +* assert.arrayOfBuffer +* assert.arrayOfFunc +* assert.arrayOfNumber +* assert.arrayOfFinite +* assert.arrayOfObject +* assert.arrayOfString +* assert.arrayOfStream +* assert.arrayOfDate +* assert.arrayOfRegexp +* assert.arrayOfUuid +* assert.optionalArray +* assert.optionalBool +* assert.optionalBuffer +* assert.optionalFunc +* assert.optionalNumber +* assert.optionalFinite +* assert.optionalObject +* assert.optionalString +* assert.optionalStream +* assert.optionalDate +* assert.optionalRegexp +* assert.optionalUuid +* assert.optionalArrayOfArray +* assert.optionalArrayOfBool +* assert.optionalArrayOfBuffer +* assert.optionalArrayOfFunc +* assert.optionalArrayOfNumber +* assert.optionalArrayOfFinite +* assert.optionalArrayOfObject +* assert.optionalArrayOfString +* assert.optionalArrayOfStream +* assert.optionalArrayOfDate +* assert.optionalArrayOfRegexp +* assert.optionalArrayOfUuid +* assert.AssertionError +* assert.fail +* assert.ok +* assert.equal +* assert.notEqual +* assert.deepEqual +* assert.notDeepEqual +* assert.strictEqual +* assert.notStrictEqual +* assert.throws +* assert.doesNotThrow +* assert.ifError + +# Installation + + npm install assert-plus + +## License + +The MIT License (MIT) +Copyright (c) 2012 Mark Cavage + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +## Bugs + +See . diff --git a/nodered/rootfs/data/node_modules/assert-plus/assert.js b/nodered/rootfs/data/node_modules/assert-plus/assert.js new file mode 100644 index 0000000..26f944e --- /dev/null +++ b/nodered/rootfs/data/node_modules/assert-plus/assert.js @@ -0,0 +1,211 @@ +// Copyright (c) 2012, Mark Cavage. All rights reserved. +// Copyright 2015 Joyent, Inc. + +var assert = require('assert'); +var Stream = require('stream').Stream; +var util = require('util'); + + +///--- Globals + +/* JSSTYLED */ +var UUID_REGEXP = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/; + + +///--- Internal + +function _capitalize(str) { + return (str.charAt(0).toUpperCase() + str.slice(1)); +} + +function _toss(name, expected, oper, arg, actual) { + throw new assert.AssertionError({ + message: util.format('%s (%s) is required', name, expected), + actual: (actual === undefined) ? typeof (arg) : actual(arg), + expected: expected, + operator: oper || '===', + stackStartFunction: _toss.caller + }); +} + +function _getClass(arg) { + return (Object.prototype.toString.call(arg).slice(8, -1)); +} + +function noop() { + // Why even bother with asserts? +} + + +///--- Exports + +var types = { + bool: { + check: function (arg) { return typeof (arg) === 'boolean'; } + }, + func: { + check: function (arg) { return typeof (arg) === 'function'; } + }, + string: { + check: function (arg) { return typeof (arg) === 'string'; } + }, + object: { + check: function (arg) { + return typeof (arg) === 'object' && arg !== null; + } + }, + number: { + check: function (arg) { + return typeof (arg) === 'number' && !isNaN(arg); + } + }, + finite: { + check: function (arg) { + return typeof (arg) === 'number' && !isNaN(arg) && isFinite(arg); + } + }, + buffer: { + check: function (arg) { return Buffer.isBuffer(arg); }, + operator: 'Buffer.isBuffer' + }, + array: { + check: function (arg) { return Array.isArray(arg); }, + operator: 'Array.isArray' + }, + stream: { + check: function (arg) { return arg instanceof Stream; }, + operator: 'instanceof', + actual: _getClass + }, + date: { + check: function (arg) { return arg instanceof Date; }, + operator: 'instanceof', + actual: _getClass + }, + regexp: { + check: function (arg) { return arg instanceof RegExp; }, + operator: 'instanceof', + actual: _getClass + }, + uuid: { + check: function (arg) { + return typeof (arg) === 'string' && UUID_REGEXP.test(arg); + }, + operator: 'isUUID' + } +}; + +function _setExports(ndebug) { + var keys = Object.keys(types); + var out; + + /* re-export standard assert */ + if (process.env.NODE_NDEBUG) { + out = noop; + } else { + out = function (arg, msg) { + if (!arg) { + _toss(msg, 'true', arg); + } + }; + } + + /* standard checks */ + keys.forEach(function (k) { + if (ndebug) { + out[k] = noop; + return; + } + var type = types[k]; + out[k] = function (arg, msg) { + if (!type.check(arg)) { + _toss(msg, k, type.operator, arg, type.actual); + } + }; + }); + + /* optional checks */ + keys.forEach(function (k) { + var name = 'optional' + _capitalize(k); + if (ndebug) { + out[name] = noop; + return; + } + var type = types[k]; + out[name] = function (arg, msg) { + if (arg === undefined || arg === null) { + return; + } + if (!type.check(arg)) { + _toss(msg, k, type.operator, arg, type.actual); + } + }; + }); + + /* arrayOf checks */ + keys.forEach(function (k) { + var name = 'arrayOf' + _capitalize(k); + if (ndebug) { + out[name] = noop; + return; + } + var type = types[k]; + var expected = '[' + k + ']'; + out[name] = function (arg, msg) { + if (!Array.isArray(arg)) { + _toss(msg, expected, type.operator, arg, type.actual); + } + var i; + for (i = 0; i < arg.length; i++) { + if (!type.check(arg[i])) { + _toss(msg, expected, type.operator, arg, type.actual); + } + } + }; + }); + + /* optionalArrayOf checks */ + keys.forEach(function (k) { + var name = 'optionalArrayOf' + _capitalize(k); + if (ndebug) { + out[name] = noop; + return; + } + var type = types[k]; + var expected = '[' + k + ']'; + out[name] = function (arg, msg) { + if (arg === undefined || arg === null) { + return; + } + if (!Array.isArray(arg)) { + _toss(msg, expected, type.operator, arg, type.actual); + } + var i; + for (i = 0; i < arg.length; i++) { + if (!type.check(arg[i])) { + _toss(msg, expected, type.operator, arg, type.actual); + } + } + }; + }); + + /* re-export built-in assertions */ + Object.keys(assert).forEach(function (k) { + if (k === 'AssertionError') { + out[k] = assert[k]; + return; + } + if (ndebug) { + out[k] = noop; + return; + } + out[k] = assert[k]; + }); + + /* export ourselves (for unit tests _only_) */ + out._setExports = _setExports; + + return out; +} + +module.exports = _setExports(process.env.NODE_NDEBUG); diff --git a/nodered/rootfs/data/node_modules/assert-plus/package.json b/nodered/rootfs/data/node_modules/assert-plus/package.json new file mode 100644 index 0000000..1530bff --- /dev/null +++ b/nodered/rootfs/data/node_modules/assert-plus/package.json @@ -0,0 +1,87 @@ +{ + "_from": "assert-plus@^1.0.0", + "_id": "assert-plus@1.0.0", + "_inBundle": false, + "_integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "_location": "/assert-plus", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "assert-plus@^1.0.0", + "name": "assert-plus", + "escapedName": "assert-plus", + "rawSpec": "^1.0.0", + "saveSpec": null, + "fetchSpec": "^1.0.0" + }, + "_requiredBy": [ + "/dashdash", + "/getpass", + "/http-signature", + "/jsprim", + "/sshpk", + "/verror" + ], + "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "_shasum": "f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525", + "_spec": "assert-plus@^1.0.0", + "_where": "/data/node_modules/http-signature", + "author": { + "name": "Mark Cavage", + "email": "mcavage@gmail.com" + }, + "bugs": { + "url": "https://github.com/mcavage/node-assert-plus/issues" + }, + "bundleDependencies": false, + "contributors": [ + { + "name": "Dave Eddy", + "email": "dave@daveeddy.com" + }, + { + "name": "Fred Kuo", + "email": "fred.kuo@joyent.com" + }, + { + "name": "Lars-Magnus Skog", + "email": "ralphtheninja@riseup.net" + }, + { + "name": "Mark Cavage", + "email": "mcavage@gmail.com" + }, + { + "name": "Patrick Mooney", + "email": "pmooney@pfmooney.com" + }, + { + "name": "Rob Gulewich", + "email": "robert.gulewich@joyent.com" + } + ], + "dependencies": {}, + "deprecated": false, + "description": "Extra assertions on top of node's assert module", + "devDependencies": { + "faucet": "0.0.1", + "tape": "4.2.2" + }, + "engines": { + "node": ">=0.8" + }, + "homepage": "https://github.com/mcavage/node-assert-plus#readme", + "license": "MIT", + "main": "./assert.js", + "name": "assert-plus", + "optionalDependencies": {}, + "repository": { + "type": "git", + "url": "git+https://github.com/mcavage/node-assert-plus.git" + }, + "scripts": { + "test": "tape tests/*.js | ./node_modules/.bin/faucet" + }, + "version": "1.0.0" +} diff --git a/nodered/rootfs/data/node_modules/async-limiter/.eslintignore b/nodered/rootfs/data/node_modules/async-limiter/.eslintignore new file mode 100644 index 0000000..e1661e5 --- /dev/null +++ b/nodered/rootfs/data/node_modules/async-limiter/.eslintignore @@ -0,0 +1,2 @@ +coverage +.nyc_output \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/async-limiter/.nycrc b/nodered/rootfs/data/node_modules/async-limiter/.nycrc new file mode 100644 index 0000000..874c1de --- /dev/null +++ b/nodered/rootfs/data/node_modules/async-limiter/.nycrc @@ -0,0 +1,10 @@ +{ + "check-coverage": false, + "lines": 99, + "statements": 99, + "functions": 99, + "branches": 99, + "include": [ + "index.js" + ] +} \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/async-limiter/.travis.yml b/nodered/rootfs/data/node_modules/async-limiter/.travis.yml new file mode 100644 index 0000000..37026e2 --- /dev/null +++ b/nodered/rootfs/data/node_modules/async-limiter/.travis.yml @@ -0,0 +1,9 @@ +language: node_js +node_js: + - "6" + - "8" + - "10" + - "node" +script: npm run travis +cache: + yarn: true diff --git a/nodered/rootfs/data/node_modules/async-limiter/LICENSE b/nodered/rootfs/data/node_modules/async-limiter/LICENSE new file mode 100644 index 0000000..9c91fb2 --- /dev/null +++ b/nodered/rootfs/data/node_modules/async-limiter/LICENSE @@ -0,0 +1,8 @@ +The MIT License (MIT) +Copyright (c) 2017 Samuel Reed + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/async-limiter/index.js b/nodered/rootfs/data/node_modules/async-limiter/index.js new file mode 100644 index 0000000..c9bd2f9 --- /dev/null +++ b/nodered/rootfs/data/node_modules/async-limiter/index.js @@ -0,0 +1,67 @@ +'use strict'; + +function Queue(options) { + if (!(this instanceof Queue)) { + return new Queue(options); + } + + options = options || {}; + this.concurrency = options.concurrency || Infinity; + this.pending = 0; + this.jobs = []; + this.cbs = []; + this._done = done.bind(this); +} + +var arrayAddMethods = [ + 'push', + 'unshift', + 'splice' +]; + +arrayAddMethods.forEach(function(method) { + Queue.prototype[method] = function() { + var methodResult = Array.prototype[method].apply(this.jobs, arguments); + this._run(); + return methodResult; + }; +}); + +Object.defineProperty(Queue.prototype, 'length', { + get: function() { + return this.pending + this.jobs.length; + } +}); + +Queue.prototype._run = function() { + if (this.pending === this.concurrency) { + return; + } + if (this.jobs.length) { + var job = this.jobs.shift(); + this.pending++; + job(this._done); + this._run(); + } + + if (this.pending === 0) { + while (this.cbs.length !== 0) { + var cb = this.cbs.pop(); + process.nextTick(cb); + } + } +}; + +Queue.prototype.onDone = function(cb) { + if (typeof cb === 'function') { + this.cbs.push(cb); + this._run(); + } +}; + +function done() { + this.pending--; + this._run(); +} + +module.exports = Queue; diff --git a/nodered/rootfs/data/node_modules/async-limiter/package.json b/nodered/rootfs/data/node_modules/async-limiter/package.json new file mode 100644 index 0000000..19021f7 --- /dev/null +++ b/nodered/rootfs/data/node_modules/async-limiter/package.json @@ -0,0 +1,69 @@ +{ + "_from": "async-limiter@~1.0.0", + "_id": "async-limiter@1.0.1", + "_inBundle": false, + "_integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==", + "_location": "/async-limiter", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "async-limiter@~1.0.0", + "name": "async-limiter", + "escapedName": "async-limiter", + "rawSpec": "~1.0.0", + "saveSpec": null, + "fetchSpec": "~1.0.0" + }, + "_requiredBy": [ + "/engine.io-client/ws" + ], + "_resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", + "_shasum": "dd379e94f0db8310b08291f9d64c3209766617fd", + "_spec": "async-limiter@~1.0.0", + "_where": "/data/node_modules/engine.io-client/node_modules/ws", + "author": { + "name": "Samuel Reed" + }, + "bugs": { + "url": "https://github.com/strml/async-limiter/issues" + }, + "bundleDependencies": false, + "dependencies": {}, + "deprecated": false, + "description": "asynchronous function queue with adjustable concurrency", + "devDependencies": { + "coveralls": "^3.0.3", + "eslint": "^5.16.0", + "eslint-plugin-mocha": "^5.3.0", + "intelli-espower-loader": "^1.0.1", + "mocha": "^6.1.4", + "nyc": "^14.1.1", + "power-assert": "^1.6.1" + }, + "homepage": "https://github.com/strml/async-limiter#readme", + "keywords": [ + "throttle", + "async", + "limiter", + "asynchronous", + "job", + "task", + "concurrency", + "concurrent" + ], + "license": "MIT", + "name": "async-limiter", + "repository": { + "type": "git", + "url": "git+https://github.com/strml/async-limiter.git" + }, + "scripts": { + "coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls", + "example": "node example", + "lint": "eslint .", + "test": "mocha --require intelli-espower-loader test/", + "travis": "npm run lint && npm run test" + }, + "version": "1.0.1" +} diff --git a/nodered/rootfs/data/node_modules/async-limiter/readme.md b/nodered/rootfs/data/node_modules/async-limiter/readme.md new file mode 100644 index 0000000..fcaa22f --- /dev/null +++ b/nodered/rootfs/data/node_modules/async-limiter/readme.md @@ -0,0 +1,132 @@ +# Async-Limiter + +A module for limiting concurrent asynchronous actions in flight. Forked from [queue](https://github.com/jessetane/queue). + +[![npm](http://img.shields.io/npm/v/async-limiter.svg?style=flat-square)](http://www.npmjs.org/async-limiter) +[![tests](https://img.shields.io/travis/STRML/async-limiter.svg?style=flat-square&branch=master)](https://travis-ci.org/STRML/async-limiter) +[![coverage](https://img.shields.io/coveralls/STRML/async-limiter.svg?style=flat-square&branch=master)](https://coveralls.io/r/STRML/async-limiter) + +This module exports a class `Limiter` that implements some of the `Array` API. +Pass async functions (ones that accept a callback or return a promise) to an instance's additive array methods. + +## Motivation + +Certain functions, like `zlib`, have [undesirable behavior](https://github.com/nodejs/node/issues/8871#issuecomment-250915913) when +run at infinite concurrency. + +In this case, it is actually faster, and takes far less memory, to limit concurrency. + +This module should do the absolute minimum work necessary to queue up functions. PRs are welcome that would +make this module faster or lighter, but new functionality is not desired. + +Style should confirm to nodejs/node style. + +## Example + +``` javascript +var Limiter = require('async-limiter') + +var t = new Limiter({concurrency: 2}); +var results = [] + +// add jobs using the familiar Array API +t.push(function (cb) { + results.push('two') + cb() +}) + +t.push( + function (cb) { + results.push('four') + cb() + }, + function (cb) { + results.push('five') + cb() + } +) + +t.unshift(function (cb) { + results.push('one') + cb() +}) + +t.splice(2, 0, function (cb) { + results.push('three') + cb() +}) + +// Jobs run automatically. If you want a callback when all are done, +// call 'onDone()'. +t.onDone(function () { + console.log('all done:', results) +}) +``` + +## Zlib Example + +```js +const zlib = require('zlib'); +const Limiter = require('async-limiter'); + +const message = {some: "data"}; +const payload = new Buffer(JSON.stringify(message)); + +// Try with different concurrency values to see how this actually +// slows significantly with higher concurrency! +// +// 5: 1398.607ms +// 10: 1375.668ms +// Infinity: 4423.300ms +// +const t = new Limiter({concurrency: 5}); +function deflate(payload, cb) { + t.push(function(done) { + zlib.deflate(payload, function(err, buffer) { + done(); + cb(err, buffer); + }); + }); +} + +console.time('deflate'); +for(let i = 0; i < 30000; ++i) { + deflate(payload, function (err, buffer) {}); +} +t.onDone(function() { + console.timeEnd('deflate'); +}); +``` + +## Install + +`npm install async-limiter` + +## Test + +`npm test` + +## API + +### `var t = new Limiter([opts])` +Constructor. `opts` may contain inital values for: +* `t.concurrency` + +## Instance methods + +### `t.onDone(fn)` +`fn` will be called once and only once, when the queue is empty. + +## Instance methods mixed in from `Array` +Mozilla has docs on how these methods work [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array). +### `t.push(element1, ..., elementN)` +### `t.unshift(element1, ..., elementN)` +### `t.splice(index , howMany[, element1[, ...[, elementN]]])` + +## Properties +### `t.concurrency` +Max number of jobs the queue should process concurrently, defaults to `Infinity`. + +### `t.length` +Jobs pending + jobs to process (readonly). + diff --git a/nodered/rootfs/data/node_modules/asynckit/LICENSE b/nodered/rootfs/data/node_modules/asynckit/LICENSE new file mode 100644 index 0000000..c9eca5d --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Alex Indigo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/asynckit/README.md b/nodered/rootfs/data/node_modules/asynckit/README.md new file mode 100644 index 0000000..ddcc7e6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/README.md @@ -0,0 +1,233 @@ +# asynckit [![NPM Module](https://img.shields.io/npm/v/asynckit.svg?style=flat)](https://www.npmjs.com/package/asynckit) + +Minimal async jobs utility library, with streams support. + +[![PhantomJS Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=browser&style=flat)](https://travis-ci.org/alexindigo/asynckit) +[![Linux Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=linux:0.12-6.x&style=flat)](https://travis-ci.org/alexindigo/asynckit) +[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/asynckit/v0.4.0.svg?label=windows:0.12-6.x&style=flat)](https://ci.appveyor.com/project/alexindigo/asynckit) + +[![Coverage Status](https://img.shields.io/coveralls/alexindigo/asynckit/v0.4.0.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/asynckit?branch=master) +[![Dependency Status](https://img.shields.io/david/alexindigo/asynckit/v0.4.0.svg?style=flat)](https://david-dm.org/alexindigo/asynckit) +[![bitHound Overall Score](https://www.bithound.io/github/alexindigo/asynckit/badges/score.svg)](https://www.bithound.io/github/alexindigo/asynckit) + + + +AsyncKit provides harness for `parallel` and `serial` iterators over list of items represented by arrays or objects. +Optionally it accepts abort function (should be synchronously return by iterator for each item), and terminates left over jobs upon an error event. For specific iteration order built-in (`ascending` and `descending`) and custom sort helpers also supported, via `asynckit.serialOrdered` method. + +It ensures async operations to keep behavior more stable and prevent `Maximum call stack size exceeded` errors, from sync iterators. + +| compression | size | +| :----------------- | -------: | +| asynckit.js | 12.34 kB | +| asynckit.min.js | 4.11 kB | +| asynckit.min.js.gz | 1.47 kB | + + +## Install + +```sh +$ npm install --save asynckit +``` + +## Examples + +### Parallel Jobs + +Runs iterator over provided array in parallel. Stores output in the `result` array, +on the matching positions. In unlikely event of an error from one of the jobs, +will terminate rest of the active jobs (if abort function is provided) +and return error along with salvaged data to the main callback function. + +#### Input Array + +```javascript +var parallel = require('asynckit').parallel + , assert = require('assert') + ; + +var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] + , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ] + , target = [] + ; + +parallel(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); +}); + +// async job accepts one element from the array +// and a callback function +function asyncJob(item, cb) +{ + // different delays (in ms) per item + var delay = item * 25; + + // pretend different jobs take different time to finish + // and not in consequential order + var timeoutId = setTimeout(function() { + target.push(item); + cb(null, item * 2); + }, delay); + + // allow to cancel "leftover" jobs upon error + // return function, invoking of which will abort this job + return clearTimeout.bind(null, timeoutId); +} +``` + +More examples could be found in [test/test-parallel-array.js](test/test-parallel-array.js). + +#### Input Object + +Also it supports named jobs, listed via object. + +```javascript +var parallel = require('asynckit/parallel') + , assert = require('assert') + ; + +var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 } + , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 } + , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ] + , expectedKeys = [ 'first', 'one', 'two', 'four', 'eight', 'sixteen', 'thirtyTwo', 'sixtyFour' ] + , target = [] + , keys = [] + ; + +parallel(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); + assert.deepEqual(keys, expectedKeys); +}); + +// supports full value, key, callback (shortcut) interface +function asyncJob(item, key, cb) +{ + // different delays (in ms) per item + var delay = item * 25; + + // pretend different jobs take different time to finish + // and not in consequential order + var timeoutId = setTimeout(function() { + keys.push(key); + target.push(item); + cb(null, item * 2); + }, delay); + + // allow to cancel "leftover" jobs upon error + // return function, invoking of which will abort this job + return clearTimeout.bind(null, timeoutId); +} +``` + +More examples could be found in [test/test-parallel-object.js](test/test-parallel-object.js). + +### Serial Jobs + +Runs iterator over provided array sequentially. Stores output in the `result` array, +on the matching positions. In unlikely event of an error from one of the jobs, +will not proceed to the rest of the items in the list +and return error along with salvaged data to the main callback function. + +#### Input Array + +```javascript +var serial = require('asynckit/serial') + , assert = require('assert') + ; + +var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] + , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ] + , target = [] + ; + +serial(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); +}); + +// extended interface (item, key, callback) +// also supported for arrays +function asyncJob(item, key, cb) +{ + target.push(key); + + // it will be automatically made async + // even it iterator "returns" in the same event loop + cb(null, item * 2); +} +``` + +More examples could be found in [test/test-serial-array.js](test/test-serial-array.js). + +#### Input Object + +Also it supports named jobs, listed via object. + +```javascript +var serial = require('asynckit').serial + , assert = require('assert') + ; + +var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] + , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ] + , target = [] + ; + +var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 } + , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 } + , expectedTarget = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , target = [] + ; + + +serial(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); +}); + +// shortcut interface (item, callback) +// works for object as well as for the arrays +function asyncJob(item, cb) +{ + target.push(item); + + // it will be automatically made async + // even it iterator "returns" in the same event loop + cb(null, item * 2); +} +``` + +More examples could be found in [test/test-serial-object.js](test/test-serial-object.js). + +_Note: Since _object_ is an _unordered_ collection of properties, +it may produce unexpected results with sequential iterations. +Whenever order of the jobs' execution is important please use `serialOrdered` method._ + +### Ordered Serial Iterations + +TBD + +For example [compare-property](compare-property) package. + +### Streaming interface + +TBD + +## Want to Know More? + +More examples can be found in [test folder](test/). + +Or open an [issue](https://github.com/alexindigo/asynckit/issues) with questions and/or suggestions. + +## License + +AsyncKit is licensed under the MIT license. diff --git a/nodered/rootfs/data/node_modules/asynckit/bench.js b/nodered/rootfs/data/node_modules/asynckit/bench.js new file mode 100644 index 0000000..c612f1a --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/bench.js @@ -0,0 +1,76 @@ +/* eslint no-console: "off" */ + +var asynckit = require('./') + , async = require('async') + , assert = require('assert') + , expected = 0 + ; + +var Benchmark = require('benchmark'); +var suite = new Benchmark.Suite; + +var source = []; +for (var z = 1; z < 100; z++) +{ + source.push(z); + expected += z; +} + +suite +// add tests + +.add('async.map', function(deferred) +{ + var total = 0; + + async.map(source, + function(i, cb) + { + setImmediate(function() + { + total += i; + cb(null, total); + }); + }, + function(err, result) + { + assert.ifError(err); + assert.equal(result[result.length - 1], expected); + deferred.resolve(); + }); +}, {'defer': true}) + + +.add('asynckit.parallel', function(deferred) +{ + var total = 0; + + asynckit.parallel(source, + function(i, cb) + { + setImmediate(function() + { + total += i; + cb(null, total); + }); + }, + function(err, result) + { + assert.ifError(err); + assert.equal(result[result.length - 1], expected); + deferred.resolve(); + }); +}, {'defer': true}) + + +// add listeners +.on('cycle', function(ev) +{ + console.log(String(ev.target)); +}) +.on('complete', function() +{ + console.log('Fastest is ' + this.filter('fastest').map('name')); +}) +// run async +.run({ 'async': true }); diff --git a/nodered/rootfs/data/node_modules/asynckit/index.js b/nodered/rootfs/data/node_modules/asynckit/index.js new file mode 100644 index 0000000..455f945 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/index.js @@ -0,0 +1,6 @@ +module.exports = +{ + parallel : require('./parallel.js'), + serial : require('./serial.js'), + serialOrdered : require('./serialOrdered.js') +}; diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/abort.js b/nodered/rootfs/data/node_modules/asynckit/lib/abort.js new file mode 100644 index 0000000..114367e --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/abort.js @@ -0,0 +1,29 @@ +// API +module.exports = abort; + +/** + * Aborts leftover active jobs + * + * @param {object} state - current state object + */ +function abort(state) +{ + Object.keys(state.jobs).forEach(clean.bind(state)); + + // reset leftover jobs + state.jobs = {}; +} + +/** + * Cleans up leftover job by invoking abort function for the provided job id + * + * @this state + * @param {string|number} key - job id to abort + */ +function clean(key) +{ + if (typeof this.jobs[key] == 'function') + { + this.jobs[key](); + } +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/async.js b/nodered/rootfs/data/node_modules/asynckit/lib/async.js new file mode 100644 index 0000000..7f1288a --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/async.js @@ -0,0 +1,34 @@ +var defer = require('./defer.js'); + +// API +module.exports = async; + +/** + * Runs provided callback asynchronously + * even if callback itself is not + * + * @param {function} callback - callback to invoke + * @returns {function} - augmented callback + */ +function async(callback) +{ + var isAsync = false; + + // check if async happened + defer(function() { isAsync = true; }); + + return function async_callback(err, result) + { + if (isAsync) + { + callback(err, result); + } + else + { + defer(function nextTick_callback() + { + callback(err, result); + }); + } + }; +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/defer.js b/nodered/rootfs/data/node_modules/asynckit/lib/defer.js new file mode 100644 index 0000000..b67110c --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/defer.js @@ -0,0 +1,26 @@ +module.exports = defer; + +/** + * Runs provided function on next iteration of the event loop + * + * @param {function} fn - function to run + */ +function defer(fn) +{ + var nextTick = typeof setImmediate == 'function' + ? setImmediate + : ( + typeof process == 'object' && typeof process.nextTick == 'function' + ? process.nextTick + : null + ); + + if (nextTick) + { + nextTick(fn); + } + else + { + setTimeout(fn, 0); + } +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/iterate.js b/nodered/rootfs/data/node_modules/asynckit/lib/iterate.js new file mode 100644 index 0000000..5d2839a --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/iterate.js @@ -0,0 +1,75 @@ +var async = require('./async.js') + , abort = require('./abort.js') + ; + +// API +module.exports = iterate; + +/** + * Iterates over each job object + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {object} state - current job status + * @param {function} callback - invoked when all elements processed + */ +function iterate(list, iterator, state, callback) +{ + // store current index + var key = state['keyedList'] ? state['keyedList'][state.index] : state.index; + + state.jobs[key] = runJob(iterator, key, list[key], function(error, output) + { + // don't repeat yourself + // skip secondary callbacks + if (!(key in state.jobs)) + { + return; + } + + // clean up jobs + delete state.jobs[key]; + + if (error) + { + // don't process rest of the results + // stop still active jobs + // and reset the list + abort(state); + } + else + { + state.results[key] = output; + } + + // return salvaged results + callback(error, state.results); + }); +} + +/** + * Runs iterator over provided job element + * + * @param {function} iterator - iterator to invoke + * @param {string|number} key - key/index of the element in the list of jobs + * @param {mixed} item - job description + * @param {function} callback - invoked after iterator is done with the job + * @returns {function|mixed} - job abort function or something else + */ +function runJob(iterator, key, item, callback) +{ + var aborter; + + // allow shortcut if iterator expects only two arguments + if (iterator.length == 2) + { + aborter = iterator(item, async(callback)); + } + // otherwise go with full three arguments + else + { + aborter = iterator(item, key, async(callback)); + } + + return aborter; +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/readable_asynckit.js b/nodered/rootfs/data/node_modules/asynckit/lib/readable_asynckit.js new file mode 100644 index 0000000..78ad240 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/readable_asynckit.js @@ -0,0 +1,91 @@ +var streamify = require('./streamify.js') + , defer = require('./defer.js') + ; + +// API +module.exports = ReadableAsyncKit; + +/** + * Base constructor for all streams + * used to hold properties/methods + */ +function ReadableAsyncKit() +{ + ReadableAsyncKit.super_.apply(this, arguments); + + // list of active jobs + this.jobs = {}; + + // add stream methods + this.destroy = destroy; + this._start = _start; + this._read = _read; +} + +/** + * Destroys readable stream, + * by aborting outstanding jobs + * + * @returns {void} + */ +function destroy() +{ + if (this.destroyed) + { + return; + } + + this.destroyed = true; + + if (typeof this.terminator == 'function') + { + this.terminator(); + } +} + +/** + * Starts provided jobs in async manner + * + * @private + */ +function _start() +{ + // first argument – runner function + var runner = arguments[0] + // take away first argument + , args = Array.prototype.slice.call(arguments, 1) + // second argument - input data + , input = args[0] + // last argument - result callback + , endCb = streamify.callback.call(this, args[args.length - 1]) + ; + + args[args.length - 1] = endCb; + // third argument - iterator + args[1] = streamify.iterator.call(this, args[1]); + + // allow time for proper setup + defer(function() + { + if (!this.destroyed) + { + this.terminator = runner.apply(null, args); + } + else + { + endCb(null, Array.isArray(input) ? [] : {}); + } + }.bind(this)); +} + + +/** + * Implement _read to comply with Readable streams + * Doesn't really make sense for flowing object mode + * + * @private + */ +function _read() +{ + +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/readable_parallel.js b/nodered/rootfs/data/node_modules/asynckit/lib/readable_parallel.js new file mode 100644 index 0000000..5d2929f --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/readable_parallel.js @@ -0,0 +1,25 @@ +var parallel = require('../parallel.js'); + +// API +module.exports = ReadableParallel; + +/** + * Streaming wrapper to `asynckit.parallel` + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {stream.Readable#} + */ +function ReadableParallel(list, iterator, callback) +{ + if (!(this instanceof ReadableParallel)) + { + return new ReadableParallel(list, iterator, callback); + } + + // turn on object mode + ReadableParallel.super_.call(this, {objectMode: true}); + + this._start(parallel, list, iterator, callback); +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/readable_serial.js b/nodered/rootfs/data/node_modules/asynckit/lib/readable_serial.js new file mode 100644 index 0000000..7822698 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/readable_serial.js @@ -0,0 +1,25 @@ +var serial = require('../serial.js'); + +// API +module.exports = ReadableSerial; + +/** + * Streaming wrapper to `asynckit.serial` + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {stream.Readable#} + */ +function ReadableSerial(list, iterator, callback) +{ + if (!(this instanceof ReadableSerial)) + { + return new ReadableSerial(list, iterator, callback); + } + + // turn on object mode + ReadableSerial.super_.call(this, {objectMode: true}); + + this._start(serial, list, iterator, callback); +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/readable_serial_ordered.js b/nodered/rootfs/data/node_modules/asynckit/lib/readable_serial_ordered.js new file mode 100644 index 0000000..3de89c4 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/readable_serial_ordered.js @@ -0,0 +1,29 @@ +var serialOrdered = require('../serialOrdered.js'); + +// API +module.exports = ReadableSerialOrdered; +// expose sort helpers +module.exports.ascending = serialOrdered.ascending; +module.exports.descending = serialOrdered.descending; + +/** + * Streaming wrapper to `asynckit.serialOrdered` + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} sortMethod - custom sort function + * @param {function} callback - invoked when all elements processed + * @returns {stream.Readable#} + */ +function ReadableSerialOrdered(list, iterator, sortMethod, callback) +{ + if (!(this instanceof ReadableSerialOrdered)) + { + return new ReadableSerialOrdered(list, iterator, sortMethod, callback); + } + + // turn on object mode + ReadableSerialOrdered.super_.call(this, {objectMode: true}); + + this._start(serialOrdered, list, iterator, sortMethod, callback); +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/state.js b/nodered/rootfs/data/node_modules/asynckit/lib/state.js new file mode 100644 index 0000000..cbea7ad --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/state.js @@ -0,0 +1,37 @@ +// API +module.exports = state; + +/** + * Creates initial state object + * for iteration over list + * + * @param {array|object} list - list to iterate over + * @param {function|null} sortMethod - function to use for keys sort, + * or `null` to keep them as is + * @returns {object} - initial state object + */ +function state(list, sortMethod) +{ + var isNamedList = !Array.isArray(list) + , initState = + { + index : 0, + keyedList: isNamedList || sortMethod ? Object.keys(list) : null, + jobs : {}, + results : isNamedList ? {} : [], + size : isNamedList ? Object.keys(list).length : list.length + } + ; + + if (sortMethod) + { + // sort array keys based on it's values + // sort object's keys just on own merit + initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) + { + return sortMethod(list[a], list[b]); + }); + } + + return initState; +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/streamify.js b/nodered/rootfs/data/node_modules/asynckit/lib/streamify.js new file mode 100644 index 0000000..f56a1c9 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/streamify.js @@ -0,0 +1,141 @@ +var async = require('./async.js'); + +// API +module.exports = { + iterator: wrapIterator, + callback: wrapCallback +}; + +/** + * Wraps iterators with long signature + * + * @this ReadableAsyncKit# + * @param {function} iterator - function to wrap + * @returns {function} - wrapped function + */ +function wrapIterator(iterator) +{ + var stream = this; + + return function(item, key, cb) + { + var aborter + , wrappedCb = async(wrapIteratorCallback.call(stream, cb, key)) + ; + + stream.jobs[key] = wrappedCb; + + // it's either shortcut (item, cb) + if (iterator.length == 2) + { + aborter = iterator(item, wrappedCb); + } + // or long format (item, key, cb) + else + { + aborter = iterator(item, key, wrappedCb); + } + + return aborter; + }; +} + +/** + * Wraps provided callback function + * allowing to execute snitch function before + * real callback + * + * @this ReadableAsyncKit# + * @param {function} callback - function to wrap + * @returns {function} - wrapped function + */ +function wrapCallback(callback) +{ + var stream = this; + + var wrapped = function(error, result) + { + return finisher.call(stream, error, result, callback); + }; + + return wrapped; +} + +/** + * Wraps provided iterator callback function + * makes sure snitch only called once, + * but passes secondary calls to the original callback + * + * @this ReadableAsyncKit# + * @param {function} callback - callback to wrap + * @param {number|string} key - iteration key + * @returns {function} wrapped callback + */ +function wrapIteratorCallback(callback, key) +{ + var stream = this; + + return function(error, output) + { + // don't repeat yourself + if (!(key in stream.jobs)) + { + callback(error, output); + return; + } + + // clean up jobs + delete stream.jobs[key]; + + return streamer.call(stream, error, {key: key, value: output}, callback); + }; +} + +/** + * Stream wrapper for iterator callback + * + * @this ReadableAsyncKit# + * @param {mixed} error - error response + * @param {mixed} output - iterator output + * @param {function} callback - callback that expects iterator results + */ +function streamer(error, output, callback) +{ + if (error && !this.error) + { + this.error = error; + this.pause(); + this.emit('error', error); + // send back value only, as expected + callback(error, output && output.value); + return; + } + + // stream stuff + this.push(output); + + // back to original track + // send back value only, as expected + callback(error, output && output.value); +} + +/** + * Stream wrapper for finishing callback + * + * @this ReadableAsyncKit# + * @param {mixed} error - error response + * @param {mixed} output - iterator output + * @param {function} callback - callback that expects final results + */ +function finisher(error, output, callback) +{ + // signal end of the stream + // only for successfully finished streams + if (!error) + { + this.push(null); + } + + // back to original track + callback(error, output); +} diff --git a/nodered/rootfs/data/node_modules/asynckit/lib/terminator.js b/nodered/rootfs/data/node_modules/asynckit/lib/terminator.js new file mode 100644 index 0000000..d6eb992 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/lib/terminator.js @@ -0,0 +1,29 @@ +var abort = require('./abort.js') + , async = require('./async.js') + ; + +// API +module.exports = terminator; + +/** + * Terminates jobs in the attached state context + * + * @this AsyncKitState# + * @param {function} callback - final callback to invoke after termination + */ +function terminator(callback) +{ + if (!Object.keys(this.jobs).length) + { + return; + } + + // fast forward iteration index + this.index = this.size; + + // abort jobs + abort(this); + + // send back results we have so far + async(callback)(null, this.results); +} diff --git a/nodered/rootfs/data/node_modules/asynckit/package.json b/nodered/rootfs/data/node_modules/asynckit/package.json new file mode 100644 index 0000000..dbd8f44 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/package.json @@ -0,0 +1,91 @@ +{ + "_from": "asynckit@^0.4.0", + "_id": "asynckit@0.4.0", + "_inBundle": false, + "_integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "_location": "/asynckit", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "asynckit@^0.4.0", + "name": "asynckit", + "escapedName": "asynckit", + "rawSpec": "^0.4.0", + "saveSpec": null, + "fetchSpec": "^0.4.0" + }, + "_requiredBy": [ + "/form-data" + ], + "_resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "_shasum": "c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79", + "_spec": "asynckit@^0.4.0", + "_where": "/data/node_modules/form-data", + "author": { + "name": "Alex Indigo", + "email": "iam@alexindigo.com" + }, + "bugs": { + "url": "https://github.com/alexindigo/asynckit/issues" + }, + "bundleDependencies": false, + "dependencies": {}, + "deprecated": false, + "description": "Minimal async jobs utility library, with streams support", + "devDependencies": { + "browserify": "^13.0.0", + "browserify-istanbul": "^2.0.0", + "coveralls": "^2.11.9", + "eslint": "^2.9.0", + "istanbul": "^0.4.3", + "obake": "^0.1.2", + "phantomjs-prebuilt": "^2.1.7", + "pre-commit": "^1.1.3", + "reamde": "^1.1.0", + "rimraf": "^2.5.2", + "size-table": "^0.2.0", + "tap-spec": "^4.1.1", + "tape": "^4.5.1" + }, + "homepage": "https://github.com/alexindigo/asynckit#readme", + "keywords": [ + "async", + "jobs", + "parallel", + "serial", + "iterator", + "array", + "object", + "stream", + "destroy", + "terminate", + "abort" + ], + "license": "MIT", + "main": "index.js", + "name": "asynckit", + "pre-commit": [ + "clean", + "lint", + "test", + "browser", + "report", + "size" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/alexindigo/asynckit.git" + }, + "scripts": { + "browser": "browserify -t browserify-istanbul test/lib/browserify_adjustment.js test/test-*.js | obake --coverage | tap-spec", + "clean": "rimraf coverage", + "debug": "tape test/test-*.js", + "lint": "eslint *.js lib/*.js test/*.js", + "report": "istanbul report", + "size": "browserify index.js | size-table asynckit", + "test": "istanbul cover --reporter=json tape -- 'test/test-*.js' | tap-spec", + "win-test": "tape test/test-*.js" + }, + "version": "0.4.0" +} diff --git a/nodered/rootfs/data/node_modules/asynckit/parallel.js b/nodered/rootfs/data/node_modules/asynckit/parallel.js new file mode 100644 index 0000000..3c50344 --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/parallel.js @@ -0,0 +1,43 @@ +var iterate = require('./lib/iterate.js') + , initState = require('./lib/state.js') + , terminator = require('./lib/terminator.js') + ; + +// Public API +module.exports = parallel; + +/** + * Runs iterator over provided array elements in parallel + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {function} - jobs terminator + */ +function parallel(list, iterator, callback) +{ + var state = initState(list); + + while (state.index < (state['keyedList'] || list).length) + { + iterate(list, iterator, state, function(error, result) + { + if (error) + { + callback(error, result); + return; + } + + // looks like it's the last one + if (Object.keys(state.jobs).length === 0) + { + callback(null, state.results); + return; + } + }); + + state.index++; + } + + return terminator.bind(state, callback); +} diff --git a/nodered/rootfs/data/node_modules/asynckit/serial.js b/nodered/rootfs/data/node_modules/asynckit/serial.js new file mode 100644 index 0000000..6cd949a --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/serial.js @@ -0,0 +1,17 @@ +var serialOrdered = require('./serialOrdered.js'); + +// Public API +module.exports = serial; + +/** + * Runs iterator over provided array elements in series + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {function} - jobs terminator + */ +function serial(list, iterator, callback) +{ + return serialOrdered(list, iterator, null, callback); +} diff --git a/nodered/rootfs/data/node_modules/asynckit/serialOrdered.js b/nodered/rootfs/data/node_modules/asynckit/serialOrdered.js new file mode 100644 index 0000000..607eafe --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/serialOrdered.js @@ -0,0 +1,75 @@ +var iterate = require('./lib/iterate.js') + , initState = require('./lib/state.js') + , terminator = require('./lib/terminator.js') + ; + +// Public API +module.exports = serialOrdered; +// sorting helpers +module.exports.ascending = ascending; +module.exports.descending = descending; + +/** + * Runs iterator over provided sorted array elements in series + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} sortMethod - custom sort function + * @param {function} callback - invoked when all elements processed + * @returns {function} - jobs terminator + */ +function serialOrdered(list, iterator, sortMethod, callback) +{ + var state = initState(list, sortMethod); + + iterate(list, iterator, state, function iteratorHandler(error, result) + { + if (error) + { + callback(error, result); + return; + } + + state.index++; + + // are we there yet? + if (state.index < (state['keyedList'] || list).length) + { + iterate(list, iterator, state, iteratorHandler); + return; + } + + // done here + callback(null, state.results); + }); + + return terminator.bind(state, callback); +} + +/* + * -- Sort methods + */ + +/** + * sort helper to sort array elements in ascending order + * + * @param {mixed} a - an item to compare + * @param {mixed} b - an item to compare + * @returns {number} - comparison result + */ +function ascending(a, b) +{ + return a < b ? -1 : a > b ? 1 : 0; +} + +/** + * sort helper to sort array elements in descending order + * + * @param {mixed} a - an item to compare + * @param {mixed} b - an item to compare + * @returns {number} - comparison result + */ +function descending(a, b) +{ + return -1 * ascending(a, b); +} diff --git a/nodered/rootfs/data/node_modules/asynckit/stream.js b/nodered/rootfs/data/node_modules/asynckit/stream.js new file mode 100644 index 0000000..d43465f --- /dev/null +++ b/nodered/rootfs/data/node_modules/asynckit/stream.js @@ -0,0 +1,21 @@ +var inherits = require('util').inherits + , Readable = require('stream').Readable + , ReadableAsyncKit = require('./lib/readable_asynckit.js') + , ReadableParallel = require('./lib/readable_parallel.js') + , ReadableSerial = require('./lib/readable_serial.js') + , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js') + ; + +// API +module.exports = +{ + parallel : ReadableParallel, + serial : ReadableSerial, + serialOrdered : ReadableSerialOrdered, +}; + +inherits(ReadableAsyncKit, Readable); + +inherits(ReadableParallel, ReadableAsyncKit); +inherits(ReadableSerial, ReadableAsyncKit); +inherits(ReadableSerialOrdered, ReadableAsyncKit); diff --git a/nodered/rootfs/data/node_modules/aws-sign2/LICENSE b/nodered/rootfs/data/node_modules/aws-sign2/LICENSE new file mode 100644 index 0000000..a4a9aee --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws-sign2/LICENSE @@ -0,0 +1,55 @@ +Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/aws-sign2/README.md b/nodered/rootfs/data/node_modules/aws-sign2/README.md new file mode 100644 index 0000000..763564e --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws-sign2/README.md @@ -0,0 +1,4 @@ +aws-sign +======== + +AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module. diff --git a/nodered/rootfs/data/node_modules/aws-sign2/index.js b/nodered/rootfs/data/node_modules/aws-sign2/index.js new file mode 100644 index 0000000..fb35f6d --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws-sign2/index.js @@ -0,0 +1,212 @@ + +/*! + * Copyright 2010 LearnBoost + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Module dependencies. + */ + +var crypto = require('crypto') + , parse = require('url').parse + ; + +/** + * Valid keys. + */ + +var keys = + [ 'acl' + , 'location' + , 'logging' + , 'notification' + , 'partNumber' + , 'policy' + , 'requestPayment' + , 'torrent' + , 'uploadId' + , 'uploads' + , 'versionId' + , 'versioning' + , 'versions' + , 'website' + ] + +/** + * Return an "Authorization" header value with the given `options` + * in the form of "AWS :" + * + * @param {Object} options + * @return {String} + * @api private + */ + +function authorization (options) { + return 'AWS ' + options.key + ':' + sign(options) +} + +module.exports = authorization +module.exports.authorization = authorization + +/** + * Simple HMAC-SHA1 Wrapper + * + * @param {Object} options + * @return {String} + * @api private + */ + +function hmacSha1 (options) { + return crypto.createHmac('sha1', options.secret).update(options.message).digest('base64') +} + +module.exports.hmacSha1 = hmacSha1 + +/** + * Create a base64 sha1 HMAC for `options`. + * + * @param {Object} options + * @return {String} + * @api private + */ + +function sign (options) { + options.message = stringToSign(options) + return hmacSha1(options) +} +module.exports.sign = sign + +/** + * Create a base64 sha1 HMAC for `options`. + * + * Specifically to be used with S3 presigned URLs + * + * @param {Object} options + * @return {String} + * @api private + */ + +function signQuery (options) { + options.message = queryStringToSign(options) + return hmacSha1(options) +} +module.exports.signQuery= signQuery + +/** + * Return a string for sign() with the given `options`. + * + * Spec: + * + * \n + * \n + * \n + * \n + * [headers\n] + * + * + * @param {Object} options + * @return {String} + * @api private + */ + +function stringToSign (options) { + var headers = options.amazonHeaders || '' + if (headers) headers += '\n' + var r = + [ options.verb + , options.md5 + , options.contentType + , options.date ? options.date.toUTCString() : '' + , headers + options.resource + ] + return r.join('\n') +} +module.exports.stringToSign = stringToSign + +/** + * Return a string for sign() with the given `options`, but is meant exclusively + * for S3 presigned URLs + * + * Spec: + * + * \n + * + * + * @param {Object} options + * @return {String} + * @api private + */ + +function queryStringToSign (options){ + return 'GET\n\n\n' + options.date + '\n' + options.resource +} +module.exports.queryStringToSign = queryStringToSign + +/** + * Perform the following: + * + * - ignore non-amazon headers + * - lowercase fields + * - sort lexicographically + * - trim whitespace between ":" + * - join with newline + * + * @param {Object} headers + * @return {String} + * @api private + */ + +function canonicalizeHeaders (headers) { + var buf = [] + , fields = Object.keys(headers) + ; + for (var i = 0, len = fields.length; i < len; ++i) { + var field = fields[i] + , val = headers[field] + , field = field.toLowerCase() + ; + if (0 !== field.indexOf('x-amz')) continue + buf.push(field + ':' + val) + } + return buf.sort().join('\n') +} +module.exports.canonicalizeHeaders = canonicalizeHeaders + +/** + * Perform the following: + * + * - ignore non sub-resources + * - sort lexicographically + * + * @param {String} resource + * @return {String} + * @api private + */ + +function canonicalizeResource (resource) { + var url = parse(resource, true) + , path = url.pathname + , buf = [] + ; + + Object.keys(url.query).forEach(function(key){ + if (!~keys.indexOf(key)) return + var val = '' == url.query[key] ? '' : '=' + encodeURIComponent(url.query[key]) + buf.push(key + val) + }) + + return path + (buf.length ? '?' + buf.sort().join('&') : '') +} +module.exports.canonicalizeResource = canonicalizeResource diff --git a/nodered/rootfs/data/node_modules/aws-sign2/package.json b/nodered/rootfs/data/node_modules/aws-sign2/package.json new file mode 100644 index 0000000..b2bec33 --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws-sign2/package.json @@ -0,0 +1,50 @@ +{ + "_from": "aws-sign2@~0.7.0", + "_id": "aws-sign2@0.7.0", + "_inBundle": false, + "_integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "_location": "/aws-sign2", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "aws-sign2@~0.7.0", + "name": "aws-sign2", + "escapedName": "aws-sign2", + "rawSpec": "~0.7.0", + "saveSpec": null, + "fetchSpec": "~0.7.0" + }, + "_requiredBy": [ + "/request" + ], + "_resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "_shasum": "b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8", + "_spec": "aws-sign2@~0.7.0", + "_where": "/data/node_modules/request", + "author": { + "name": "Mikeal Rogers", + "email": "mikeal.rogers@gmail.com", + "url": "http://www.futurealoof.com" + }, + "bugs": { + "url": "https://github.com/mikeal/aws-sign/issues" + }, + "bundleDependencies": false, + "dependencies": {}, + "deprecated": false, + "description": "AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.", + "devDependencies": {}, + "engines": { + "node": "*" + }, + "homepage": "https://github.com/mikeal/aws-sign#readme", + "license": "Apache-2.0", + "main": "index.js", + "name": "aws-sign2", + "optionalDependencies": {}, + "repository": { + "url": "git+https://github.com/mikeal/aws-sign.git" + }, + "version": "0.7.0" +} diff --git a/nodered/rootfs/data/node_modules/aws4/.travis.yml b/nodered/rootfs/data/node_modules/aws4/.travis.yml new file mode 100644 index 0000000..178bf31 --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws4/.travis.yml @@ -0,0 +1,9 @@ +language: node_js +node_js: + - "0.10" + - "0.12" + - "4" + - "6" + - "8" + - "10" + - "12" diff --git a/nodered/rootfs/data/node_modules/aws4/LICENSE b/nodered/rootfs/data/node_modules/aws4/LICENSE new file mode 100644 index 0000000..4f321e5 --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws4/LICENSE @@ -0,0 +1,19 @@ +Copyright 2013 Michael Hart (michael.hart.au@gmail.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/aws4/README.md b/nodered/rootfs/data/node_modules/aws4/README.md new file mode 100644 index 0000000..6b002d0 --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws4/README.md @@ -0,0 +1,523 @@ +aws4 +---- + +[![Build Status](https://secure.travis-ci.org/mhart/aws4.png?branch=master)](http://travis-ci.org/mhart/aws4) + +A small utility to sign vanilla node.js http(s) request options using Amazon's +[AWS Signature Version 4](http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html). + +Can also be used [in the browser](./browser). + +This signature is supported by nearly all Amazon services, including +[S3](http://docs.aws.amazon.com/AmazonS3/latest/API/), +[EC2](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/), +[DynamoDB](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/API.html), +[Kinesis](http://docs.aws.amazon.com/kinesis/latest/APIReference/), +[Lambda](http://docs.aws.amazon.com/lambda/latest/dg/API_Reference.html), +[SQS](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/), +[SNS](http://docs.aws.amazon.com/sns/latest/api/), +[IAM](http://docs.aws.amazon.com/IAM/latest/APIReference/), +[STS](http://docs.aws.amazon.com/STS/latest/APIReference/), +[RDS](http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/), +[CloudWatch](http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/), +[CloudWatch Logs](http://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/), +[CodeDeploy](http://docs.aws.amazon.com/codedeploy/latest/APIReference/), +[CloudFront](http://docs.aws.amazon.com/AmazonCloudFront/latest/APIReference/), +[CloudTrail](http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/), +[ElastiCache](http://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/), +[EMR](http://docs.aws.amazon.com/ElasticMapReduce/latest/API/), +[Glacier](http://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-api.html), +[CloudSearch](http://docs.aws.amazon.com/cloudsearch/latest/developerguide/APIReq.html), +[Elastic Load Balancing](http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/), +[Elastic Transcoder](http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/api-reference.html), +[CloudFormation](http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/), +[Elastic Beanstalk](http://docs.aws.amazon.com/elasticbeanstalk/latest/api/), +[Storage Gateway](http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html), +[Data Pipeline](http://docs.aws.amazon.com/datapipeline/latest/APIReference/), +[Direct Connect](http://docs.aws.amazon.com/directconnect/latest/APIReference/), +[Redshift](http://docs.aws.amazon.com/redshift/latest/APIReference/), +[OpsWorks](http://docs.aws.amazon.com/opsworks/latest/APIReference/), +[SES](http://docs.aws.amazon.com/ses/latest/APIReference/), +[SWF](http://docs.aws.amazon.com/amazonswf/latest/apireference/), +[AutoScaling](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/), +[Mobile Analytics](http://docs.aws.amazon.com/mobileanalytics/latest/ug/server-reference.html), +[Cognito Identity](http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/), +[Cognito Sync](http://docs.aws.amazon.com/cognitosync/latest/APIReference/), +[Container Service](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/), +[AppStream](http://docs.aws.amazon.com/appstream/latest/developerguide/appstream-api-rest.html), +[Key Management Service](http://docs.aws.amazon.com/kms/latest/APIReference/), +[Config](http://docs.aws.amazon.com/config/latest/APIReference/), +[CloudHSM](http://docs.aws.amazon.com/cloudhsm/latest/dg/api-ref.html), +[Route53](http://docs.aws.amazon.com/Route53/latest/APIReference/requests-rest.html) and +[Route53 Domains](http://docs.aws.amazon.com/Route53/latest/APIReference/requests-rpc.html). + +Indeed, the only AWS services that *don't* support v4 as of 2014-12-30 are +[Import/Export](http://docs.aws.amazon.com/AWSImportExport/latest/DG/api-reference.html) and +[SimpleDB](http://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API.html) +(they only support [AWS Signature Version 2](https://github.com/mhart/aws2)). + +It also provides defaults for a number of core AWS headers and +request parameters, making it very easy to query AWS services, or +build out a fully-featured AWS library. + +Example +------- + +```javascript +var http = require('http'), + https = require('https'), + aws4 = require('aws4') + +// given an options object you could pass to http.request +var opts = {host: 'sqs.us-east-1.amazonaws.com', path: '/?Action=ListQueues'} + +// alternatively (as aws4 can infer the host): +opts = {service: 'sqs', region: 'us-east-1', path: '/?Action=ListQueues'} + +// alternatively (as us-east-1 is default): +opts = {service: 'sqs', path: '/?Action=ListQueues'} + +aws4.sign(opts) // assumes AWS credentials are available in process.env + +console.log(opts) +/* +{ + host: 'sqs.us-east-1.amazonaws.com', + path: '/?Action=ListQueues', + headers: { + Host: 'sqs.us-east-1.amazonaws.com', + 'X-Amz-Date': '20121226T061030Z', + Authorization: 'AWS4-HMAC-SHA256 Credential=ABCDEF/20121226/us-east-1/sqs/aws4_request, ...' + } +} +*/ + +// we can now use this to query AWS using the standard node.js http API +http.request(opts, function(res) { res.pipe(process.stdout) }).end() +/* + + +... +*/ +``` + +More options +------------ + +```javascript +// you can also pass AWS credentials in explicitly (otherwise taken from process.env) +aws4.sign(opts, {accessKeyId: '', secretAccessKey: ''}) + +// can also add the signature to query strings +aws4.sign({service: 's3', path: '/my-bucket?X-Amz-Expires=12345', signQuery: true}) + +// create a utility function to pipe to stdout (with https this time) +function request(o) { https.request(o, function(res) { res.pipe(process.stdout) }).end(o.body || '') } + +// aws4 can infer the HTTP method if a body is passed in +// method will be POST and Content-Type: 'application/x-www-form-urlencoded; charset=utf-8' +request(aws4.sign({service: 'iam', body: 'Action=ListGroups&Version=2010-05-08'})) +/* + +... +*/ + +// can specify any custom option or header as per usual +request(aws4.sign({ + service: 'dynamodb', + region: 'ap-southeast-2', + method: 'POST', + path: '/', + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'DynamoDB_20120810.ListTables' + }, + body: '{}' +})) +/* +{"TableNames":[]} +... +*/ + +// works with all other services that support Signature Version 4 + +request(aws4.sign({service: 's3', path: '/', signQuery: true})) +/* + +... +*/ + +request(aws4.sign({service: 'ec2', path: '/?Action=DescribeRegions&Version=2014-06-15'})) +/* + +... +*/ + +request(aws4.sign({service: 'sns', path: '/?Action=ListTopics&Version=2010-03-31'})) +/* + +... +*/ + +request(aws4.sign({service: 'sts', path: '/?Action=GetSessionToken&Version=2011-06-15'})) +/* + +... +*/ + +request(aws4.sign({service: 'cloudsearch', path: '/?Action=ListDomainNames&Version=2013-01-01'})) +/* + +... +*/ + +request(aws4.sign({service: 'ses', path: '/?Action=ListIdentities&Version=2010-12-01'})) +/* + +... +*/ + +request(aws4.sign({service: 'autoscaling', path: '/?Action=DescribeAutoScalingInstances&Version=2011-01-01'})) +/* + +... +*/ + +request(aws4.sign({service: 'elasticloadbalancing', path: '/?Action=DescribeLoadBalancers&Version=2012-06-01'})) +/* + +... +*/ + +request(aws4.sign({service: 'cloudformation', path: '/?Action=ListStacks&Version=2010-05-15'})) +/* + +... +*/ + +request(aws4.sign({service: 'elasticbeanstalk', path: '/?Action=ListAvailableSolutionStacks&Version=2010-12-01'})) +/* + +... +*/ + +request(aws4.sign({service: 'rds', path: '/?Action=DescribeDBInstances&Version=2012-09-17'})) +/* + +... +*/ + +request(aws4.sign({service: 'monitoring', path: '/?Action=ListMetrics&Version=2010-08-01'})) +/* + +... +*/ + +request(aws4.sign({service: 'redshift', path: '/?Action=DescribeClusters&Version=2012-12-01'})) +/* + +... +*/ + +request(aws4.sign({service: 'cloudfront', path: '/2014-05-31/distribution'})) +/* + +... +*/ + +request(aws4.sign({service: 'elasticache', path: '/?Action=DescribeCacheClusters&Version=2014-07-15'})) +/* + +... +*/ + +request(aws4.sign({service: 'elasticmapreduce', path: '/?Action=DescribeJobFlows&Version=2009-03-31'})) +/* + +... +*/ + +request(aws4.sign({service: 'route53', path: '/2013-04-01/hostedzone'})) +/* + +... +*/ + +request(aws4.sign({service: 'appstream', path: '/applications'})) +/* +{"_links":{"curie":[{"href":"http://docs.aws.amazon.com/appstream/latest/... +... +*/ + +request(aws4.sign({service: 'cognito-sync', path: '/identitypools'})) +/* +{"Count":0,"IdentityPoolUsages":[],"MaxResults":16,"NextToken":null} +... +*/ + +request(aws4.sign({service: 'elastictranscoder', path: '/2012-09-25/pipelines'})) +/* +{"NextPageToken":null,"Pipelines":[]} +... +*/ + +request(aws4.sign({service: 'lambda', path: '/2014-11-13/functions/'})) +/* +{"Functions":[],"NextMarker":null} +... +*/ + +request(aws4.sign({service: 'ecs', path: '/?Action=ListClusters&Version=2014-11-13'})) +/* + +... +*/ + +request(aws4.sign({service: 'glacier', path: '/-/vaults', headers: {'X-Amz-Glacier-Version': '2012-06-01'}})) +/* +{"Marker":null,"VaultList":[]} +... +*/ + +request(aws4.sign({service: 'storagegateway', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'StorageGateway_20120630.ListGateways' +}})) +/* +{"Gateways":[]} +... +*/ + +request(aws4.sign({service: 'datapipeline', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'DataPipeline.ListPipelines' +}})) +/* +{"hasMoreResults":false,"pipelineIdList":[]} +... +*/ + +request(aws4.sign({service: 'opsworks', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'OpsWorks_20130218.DescribeStacks' +}})) +/* +{"Stacks":[]} +... +*/ + +request(aws4.sign({service: 'route53domains', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'Route53Domains_v20140515.ListDomains' +}})) +/* +{"Domains":[]} +... +*/ + +request(aws4.sign({service: 'kinesis', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'Kinesis_20131202.ListStreams' +}})) +/* +{"HasMoreStreams":false,"StreamNames":[]} +... +*/ + +request(aws4.sign({service: 'cloudtrail', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'CloudTrail_20131101.DescribeTrails' +}})) +/* +{"trailList":[]} +... +*/ + +request(aws4.sign({service: 'logs', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'Logs_20140328.DescribeLogGroups' +}})) +/* +{"logGroups":[]} +... +*/ + +request(aws4.sign({service: 'codedeploy', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'CodeDeploy_20141006.ListApplications' +}})) +/* +{"applications":[]} +... +*/ + +request(aws4.sign({service: 'directconnect', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'OvertureService.DescribeConnections' +}})) +/* +{"connections":[]} +... +*/ + +request(aws4.sign({service: 'kms', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'TrentService.ListKeys' +}})) +/* +{"Keys":[],"Truncated":false} +... +*/ + +request(aws4.sign({service: 'config', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'StarlingDoveService.DescribeDeliveryChannels' +}})) +/* +{"DeliveryChannels":[]} +... +*/ + +request(aws4.sign({service: 'cloudhsm', body: '{}', headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'CloudHsmFrontendService.ListAvailableZones' +}})) +/* +{"AZList":["us-east-1a","us-east-1b","us-east-1c"]} +... +*/ + +request(aws4.sign({ + service: 'swf', + body: '{"registrationStatus":"REGISTERED"}', + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'SimpleWorkflowService.ListDomains' + } +})) +/* +{"domainInfos":[]} +... +*/ + +request(aws4.sign({ + service: 'cognito-identity', + body: '{"MaxResults": 1}', + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'AWSCognitoIdentityService.ListIdentityPools' + } +})) +/* +{"IdentityPools":[]} +... +*/ + +request(aws4.sign({ + service: 'mobileanalytics', + path: '/2014-06-05/events', + body: JSON.stringify({events:[{ + eventType: 'a', + timestamp: new Date().toISOString(), + session: {}, + }]}), + headers: { + 'Content-Type': 'application/json', + 'X-Amz-Client-Context': JSON.stringify({ + client: {client_id: 'a', app_title: 'a'}, + custom: {}, + env: {platform: 'a'}, + services: {}, + }), + } +})) +/* +(HTTP 202, empty response) +*/ + +// Generate CodeCommit Git access password +var signer = new aws4.RequestSigner({ + service: 'codecommit', + host: 'git-codecommit.us-east-1.amazonaws.com', + method: 'GIT', + path: '/v1/repos/MyAwesomeRepo', +}) +var password = signer.getDateTime() + 'Z' + signer.signature() +``` + +API +--- + +### aws4.sign(requestOptions, [credentials]) + +This calculates and populates the `Authorization` header of +`requestOptions`, and any other necessary AWS headers and/or request +options. Returns `requestOptions` as a convenience for chaining. + +`requestOptions` is an object holding the same options that the node.js +[http.request](http://nodejs.org/docs/latest/api/http.html#http_http_request_options_callback) +function takes. + +The following properties of `requestOptions` are used in the signing or +populated if they don't already exist: + +- `hostname` or `host` (will be determined from `service` and `region` if not given) +- `method` (will use `'GET'` if not given or `'POST'` if there is a `body`) +- `path` (will use `'/'` if not given) +- `body` (will use `''` if not given) +- `service` (will be calculated from `hostname` or `host` if not given) +- `region` (will be calculated from `hostname` or `host` or use `'us-east-1'` if not given) +- `headers['Host']` (will use `hostname` or `host` or be calculated if not given) +- `headers['Content-Type']` (will use `'application/x-www-form-urlencoded; charset=utf-8'` + if not given and there is a `body`) +- `headers['Date']` (used to calculate the signature date if given, otherwise `new Date` is used) + +Your AWS credentials (which can be found in your +[AWS console](https://portal.aws.amazon.com/gp/aws/securityCredentials)) +can be specified in one of two ways: + +- As the second argument, like this: + +```javascript +aws4.sign(requestOptions, { + secretAccessKey: "", + accessKeyId: "", + sessionToken: "" +}) +``` + +- From `process.env`, such as this: + +``` +export AWS_SECRET_ACCESS_KEY="" +export AWS_ACCESS_KEY_ID="" +export AWS_SESSION_TOKEN="" +``` + +(will also use `AWS_ACCESS_KEY` and `AWS_SECRET_KEY` if available) + +The `sessionToken` property and `AWS_SESSION_TOKEN` environment variable are optional for signing +with [IAM STS temporary credentials](http://docs.aws.amazon.com/STS/latest/UsingSTS/using-temp-creds.html). + +Installation +------------ + +With [npm](http://npmjs.org/) do: + +``` +npm install aws4 +``` + +Can also be used [in the browser](./browser). + +Thanks +------ + +Thanks to [@jed](https://github.com/jed) for his +[dynamo-client](https://github.com/jed/dynamo-client) lib where I first +committed and subsequently extracted this code. + +Also thanks to the +[official node.js AWS SDK](https://github.com/aws/aws-sdk-js) for giving +me a start on implementing the v4 signature. + diff --git a/nodered/rootfs/data/node_modules/aws4/aws4.js b/nodered/rootfs/data/node_modules/aws4/aws4.js new file mode 100644 index 0000000..1caafe3 --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws4/aws4.js @@ -0,0 +1,341 @@ +var aws4 = exports, + url = require('url'), + querystring = require('querystring'), + crypto = require('crypto'), + lru = require('./lru'), + credentialsCache = lru(1000) + +// http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html + +function hmac(key, string, encoding) { + return crypto.createHmac('sha256', key).update(string, 'utf8').digest(encoding) +} + +function hash(string, encoding) { + return crypto.createHash('sha256').update(string, 'utf8').digest(encoding) +} + +// This function assumes the string has already been percent encoded +function encodeRfc3986(urlEncodedString) { + return urlEncodedString.replace(/[!'()*]/g, function(c) { + return '%' + c.charCodeAt(0).toString(16).toUpperCase() + }) +} + +// request: { path | body, [host], [method], [headers], [service], [region] } +// credentials: { accessKeyId, secretAccessKey, [sessionToken] } +function RequestSigner(request, credentials) { + + if (typeof request === 'string') request = url.parse(request) + + var headers = request.headers = (request.headers || {}), + hostParts = this.matchHost(request.hostname || request.host || headers.Host || headers.host) + + this.request = request + this.credentials = credentials || this.defaultCredentials() + + this.service = request.service || hostParts[0] || '' + this.region = request.region || hostParts[1] || 'us-east-1' + + // SES uses a different domain from the service name + if (this.service === 'email') this.service = 'ses' + + if (!request.method && request.body) + request.method = 'POST' + + if (!headers.Host && !headers.host) { + headers.Host = request.hostname || request.host || this.createHost() + + // If a port is specified explicitly, use it as is + if (request.port) + headers.Host += ':' + request.port + } + if (!request.hostname && !request.host) + request.hostname = headers.Host || headers.host + + this.isCodeCommitGit = this.service === 'codecommit' && request.method === 'GIT' +} + +RequestSigner.prototype.matchHost = function(host) { + var match = (host || '').match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/) + var hostParts = (match || []).slice(1, 3) + + // ES's hostParts are sometimes the other way round, if the value that is expected + // to be region equals ‘es’ switch them back + // e.g. search-cluster-name-aaaa00aaaa0aaa0aaaaaaa0aaa.us-east-1.es.amazonaws.com + if (hostParts[1] === 'es') + hostParts = hostParts.reverse() + + return hostParts +} + +// http://docs.aws.amazon.com/general/latest/gr/rande.html +RequestSigner.prototype.isSingleRegion = function() { + // Special case for S3 and SimpleDB in us-east-1 + if (['s3', 'sdb'].indexOf(this.service) >= 0 && this.region === 'us-east-1') return true + + return ['cloudfront', 'ls', 'route53', 'iam', 'importexport', 'sts'] + .indexOf(this.service) >= 0 +} + +RequestSigner.prototype.createHost = function() { + var region = this.isSingleRegion() ? '' : + (this.service === 's3' && this.region !== 'us-east-1' ? '-' : '.') + this.region, + service = this.service === 'ses' ? 'email' : this.service + return service + region + '.amazonaws.com' +} + +RequestSigner.prototype.prepareRequest = function() { + this.parsePath() + + var request = this.request, headers = request.headers, query + + if (request.signQuery) { + + this.parsedPath.query = query = this.parsedPath.query || {} + + if (this.credentials.sessionToken) + query['X-Amz-Security-Token'] = this.credentials.sessionToken + + if (this.service === 's3' && !query['X-Amz-Expires']) + query['X-Amz-Expires'] = 86400 + + if (query['X-Amz-Date']) + this.datetime = query['X-Amz-Date'] + else + query['X-Amz-Date'] = this.getDateTime() + + query['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256' + query['X-Amz-Credential'] = this.credentials.accessKeyId + '/' + this.credentialString() + query['X-Amz-SignedHeaders'] = this.signedHeaders() + + } else { + + if (!request.doNotModifyHeaders && !this.isCodeCommitGit) { + if (request.body && !headers['Content-Type'] && !headers['content-type']) + headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8' + + if (request.body && !headers['Content-Length'] && !headers['content-length']) + headers['Content-Length'] = Buffer.byteLength(request.body) + + if (this.credentials.sessionToken && !headers['X-Amz-Security-Token'] && !headers['x-amz-security-token']) + headers['X-Amz-Security-Token'] = this.credentials.sessionToken + + if (this.service === 's3' && !headers['X-Amz-Content-Sha256'] && !headers['x-amz-content-sha256']) + headers['X-Amz-Content-Sha256'] = hash(this.request.body || '', 'hex') + + if (headers['X-Amz-Date'] || headers['x-amz-date']) + this.datetime = headers['X-Amz-Date'] || headers['x-amz-date'] + else + headers['X-Amz-Date'] = this.getDateTime() + } + + delete headers.Authorization + delete headers.authorization + } +} + +RequestSigner.prototype.sign = function() { + if (!this.parsedPath) this.prepareRequest() + + if (this.request.signQuery) { + this.parsedPath.query['X-Amz-Signature'] = this.signature() + } else { + this.request.headers.Authorization = this.authHeader() + } + + this.request.path = this.formatPath() + + return this.request +} + +RequestSigner.prototype.getDateTime = function() { + if (!this.datetime) { + var headers = this.request.headers, + date = new Date(headers.Date || headers.date || new Date) + + this.datetime = date.toISOString().replace(/[:\-]|\.\d{3}/g, '') + + // Remove the trailing 'Z' on the timestamp string for CodeCommit git access + if (this.isCodeCommitGit) this.datetime = this.datetime.slice(0, -1) + } + return this.datetime +} + +RequestSigner.prototype.getDate = function() { + return this.getDateTime().substr(0, 8) +} + +RequestSigner.prototype.authHeader = function() { + return [ + 'AWS4-HMAC-SHA256 Credential=' + this.credentials.accessKeyId + '/' + this.credentialString(), + 'SignedHeaders=' + this.signedHeaders(), + 'Signature=' + this.signature(), + ].join(', ') +} + +RequestSigner.prototype.signature = function() { + var date = this.getDate(), + cacheKey = [this.credentials.secretAccessKey, date, this.region, this.service].join(), + kDate, kRegion, kService, kCredentials = credentialsCache.get(cacheKey) + if (!kCredentials) { + kDate = hmac('AWS4' + this.credentials.secretAccessKey, date) + kRegion = hmac(kDate, this.region) + kService = hmac(kRegion, this.service) + kCredentials = hmac(kService, 'aws4_request') + credentialsCache.set(cacheKey, kCredentials) + } + return hmac(kCredentials, this.stringToSign(), 'hex') +} + +RequestSigner.prototype.stringToSign = function() { + return [ + 'AWS4-HMAC-SHA256', + this.getDateTime(), + this.credentialString(), + hash(this.canonicalString(), 'hex'), + ].join('\n') +} + +RequestSigner.prototype.canonicalString = function() { + if (!this.parsedPath) this.prepareRequest() + + var pathStr = this.parsedPath.path, + query = this.parsedPath.query, + headers = this.request.headers, + queryStr = '', + normalizePath = this.service !== 's3', + decodePath = this.service === 's3' || this.request.doNotEncodePath, + decodeSlashesInPath = this.service === 's3', + firstValOnly = this.service === 's3', + bodyHash + + if (this.service === 's3' && this.request.signQuery) { + bodyHash = 'UNSIGNED-PAYLOAD' + } else if (this.isCodeCommitGit) { + bodyHash = '' + } else { + bodyHash = headers['X-Amz-Content-Sha256'] || headers['x-amz-content-sha256'] || + hash(this.request.body || '', 'hex') + } + + if (query) { + var reducedQuery = Object.keys(query).reduce(function(obj, key) { + if (!key) return obj + obj[key] = !Array.isArray(query[key]) ? query[key] : + (firstValOnly ? query[key][0] : query[key].slice().sort()) + return obj + }, {}) + var encodedQueryPieces = [] + Object.keys(reducedQuery).forEach(function(key) { + var encodedPrefix = encodeURIComponent(key) + '=' + if (!Array.isArray(reducedQuery[key])) { + encodedQueryPieces.push(encodeRfc3986(encodedPrefix + encodeURIComponent(reducedQuery[key]))) + } else { + reducedQuery[key].forEach(function(val) { encodedQueryPieces.push(encodeRfc3986(encodedPrefix + encodeURIComponent(val))) }) + } + }) + queryStr = encodedQueryPieces.sort().join('&') + } + if (pathStr !== '/') { + if (normalizePath) pathStr = pathStr.replace(/\/{2,}/g, '/') + pathStr = pathStr.split('/').reduce(function(path, piece) { + if (normalizePath && piece === '..') { + path.pop() + } else if (!normalizePath || piece !== '.') { + if (decodePath) piece = decodeURIComponent(piece).replace(/\+/g, ' ') + path.push(encodeRfc3986(encodeURIComponent(piece))) + } + return path + }, []).join('/') + if (pathStr[0] !== '/') pathStr = '/' + pathStr + if (decodeSlashesInPath) pathStr = pathStr.replace(/%2F/g, '/') + } + + return [ + this.request.method || 'GET', + pathStr, + queryStr, + this.canonicalHeaders() + '\n', + this.signedHeaders(), + bodyHash, + ].join('\n') +} + +RequestSigner.prototype.canonicalHeaders = function() { + var headers = this.request.headers + function trimAll(header) { + return header.toString().trim().replace(/\s+/g, ' ') + } + return Object.keys(headers) + .sort(function(a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : 1 }) + .map(function(key) { return key.toLowerCase() + ':' + trimAll(headers[key]) }) + .join('\n') +} + +RequestSigner.prototype.signedHeaders = function() { + return Object.keys(this.request.headers) + .map(function(key) { return key.toLowerCase() }) + .sort() + .join(';') +} + +RequestSigner.prototype.credentialString = function() { + return [ + this.getDate(), + this.region, + this.service, + 'aws4_request', + ].join('/') +} + +RequestSigner.prototype.defaultCredentials = function() { + var env = process.env + return { + accessKeyId: env.AWS_ACCESS_KEY_ID || env.AWS_ACCESS_KEY, + secretAccessKey: env.AWS_SECRET_ACCESS_KEY || env.AWS_SECRET_KEY, + sessionToken: env.AWS_SESSION_TOKEN, + } +} + +RequestSigner.prototype.parsePath = function() { + var path = this.request.path || '/' + + // S3 doesn't always encode characters > 127 correctly and + // all services don't encode characters > 255 correctly + // So if there are non-reserved chars (and it's not already all % encoded), just encode them all + if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path)) { + path = encodeURI(decodeURI(path)) + } + + var queryIx = path.indexOf('?'), + query = null + + if (queryIx >= 0) { + query = querystring.parse(path.slice(queryIx + 1)) + path = path.slice(0, queryIx) + } + + this.parsedPath = { + path: path, + query: query, + } +} + +RequestSigner.prototype.formatPath = function() { + var path = this.parsedPath.path, + query = this.parsedPath.query + + if (!query) return path + + // Services don't support empty query string keys + if (query[''] != null) delete query[''] + + return path + '?' + encodeRfc3986(querystring.stringify(query)) +} + +aws4.RequestSigner = RequestSigner + +aws4.sign = function(request, credentials) { + return new RequestSigner(request, credentials).sign() +} diff --git a/nodered/rootfs/data/node_modules/aws4/lru.js b/nodered/rootfs/data/node_modules/aws4/lru.js new file mode 100644 index 0000000..333f66a --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws4/lru.js @@ -0,0 +1,96 @@ +module.exports = function(size) { + return new LruCache(size) +} + +function LruCache(size) { + this.capacity = size | 0 + this.map = Object.create(null) + this.list = new DoublyLinkedList() +} + +LruCache.prototype.get = function(key) { + var node = this.map[key] + if (node == null) return undefined + this.used(node) + return node.val +} + +LruCache.prototype.set = function(key, val) { + var node = this.map[key] + if (node != null) { + node.val = val + } else { + if (!this.capacity) this.prune() + if (!this.capacity) return false + node = new DoublyLinkedNode(key, val) + this.map[key] = node + this.capacity-- + } + this.used(node) + return true +} + +LruCache.prototype.used = function(node) { + this.list.moveToFront(node) +} + +LruCache.prototype.prune = function() { + var node = this.list.pop() + if (node != null) { + delete this.map[node.key] + this.capacity++ + } +} + + +function DoublyLinkedList() { + this.firstNode = null + this.lastNode = null +} + +DoublyLinkedList.prototype.moveToFront = function(node) { + if (this.firstNode == node) return + + this.remove(node) + + if (this.firstNode == null) { + this.firstNode = node + this.lastNode = node + node.prev = null + node.next = null + } else { + node.prev = null + node.next = this.firstNode + node.next.prev = node + this.firstNode = node + } +} + +DoublyLinkedList.prototype.pop = function() { + var lastNode = this.lastNode + if (lastNode != null) { + this.remove(lastNode) + } + return lastNode +} + +DoublyLinkedList.prototype.remove = function(node) { + if (this.firstNode == node) { + this.firstNode = node.next + } else if (node.prev != null) { + node.prev.next = node.next + } + if (this.lastNode == node) { + this.lastNode = node.prev + } else if (node.next != null) { + node.next.prev = node.prev + } +} + + +function DoublyLinkedNode(key, val) { + this.key = key + this.val = val + this.prev = null + this.next = null +} diff --git a/nodered/rootfs/data/node_modules/aws4/package.json b/nodered/rootfs/data/node_modules/aws4/package.json new file mode 100644 index 0000000..1180343 --- /dev/null +++ b/nodered/rootfs/data/node_modules/aws4/package.json @@ -0,0 +1,104 @@ +{ + "_from": "aws4@^1.8.0", + "_id": "aws4@1.9.0", + "_inBundle": false, + "_integrity": "sha512-Uvq6hVe90D0B2WEnUqtdgY1bATGz3mw33nH9Y+dmA+w5DHvUmBgkr5rM/KCHpCsiFNRUfokW/szpPPgMK2hm4A==", + "_location": "/aws4", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "aws4@^1.8.0", + "name": "aws4", + "escapedName": "aws4", + "rawSpec": "^1.8.0", + "saveSpec": null, + "fetchSpec": "^1.8.0" + }, + "_requiredBy": [ + "/request" + ], + "_resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.0.tgz", + "_shasum": "24390e6ad61386b0a747265754d2a17219de862c", + "_spec": "aws4@^1.8.0", + "_where": "/data/node_modules/request", + "author": { + "name": "Michael Hart", + "email": "michael.hart.au@gmail.com", + "url": "http://github.com/mhart" + }, + "bugs": { + "url": "https://github.com/mhart/aws4/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "Signs and prepares requests using AWS Signature Version 4", + "devDependencies": { + "mocha": "^2.4.5", + "should": "^8.2.2" + }, + "homepage": "https://github.com/mhart/aws4#readme", + "keywords": [ + "amazon", + "aws", + "signature", + "s3", + "ec2", + "autoscaling", + "cloudformation", + "elasticloadbalancing", + "elb", + "elasticbeanstalk", + "cloudsearch", + "dynamodb", + "kinesis", + "lambda", + "glacier", + "sqs", + "sns", + "iam", + "sts", + "ses", + "swf", + "storagegateway", + "datapipeline", + "directconnect", + "redshift", + "opsworks", + "rds", + "monitoring", + "cloudtrail", + "cloudfront", + "codedeploy", + "elasticache", + "elasticmapreduce", + "elastictranscoder", + "emr", + "cloudwatch", + "mobileanalytics", + "cognitoidentity", + "cognitosync", + "cognito", + "containerservice", + "ecs", + "appstream", + "keymanagementservice", + "kms", + "config", + "cloudhsm", + "route53", + "route53domains", + "logs" + ], + "license": "MIT", + "main": "aws4.js", + "name": "aws4", + "repository": { + "type": "git", + "url": "git+https://github.com/mhart/aws4.git" + }, + "scripts": { + "test": "mocha ./test/fast.js -b -t 100s -R list" + }, + "version": "1.9.0" +} diff --git a/nodered/rootfs/data/node_modules/backo2/.npmignore b/nodered/rootfs/data/node_modules/backo2/.npmignore new file mode 100644 index 0000000..c2658d7 --- /dev/null +++ b/nodered/rootfs/data/node_modules/backo2/.npmignore @@ -0,0 +1 @@ +node_modules/ diff --git a/nodered/rootfs/data/node_modules/backo2/History.md b/nodered/rootfs/data/node_modules/backo2/History.md new file mode 100644 index 0000000..8eb28b8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/backo2/History.md @@ -0,0 +1,12 @@ + +1.0.1 / 2014-02-17 +================== + + * go away decimal point + * history + +1.0.0 / 2014-02-17 +================== + + * add jitter option + * Initial commit diff --git a/nodered/rootfs/data/node_modules/backo2/Makefile b/nodered/rootfs/data/node_modules/backo2/Makefile new file mode 100644 index 0000000..9987df8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/backo2/Makefile @@ -0,0 +1,8 @@ + +test: + @./node_modules/.bin/mocha \ + --require should \ + --reporter dot \ + --bail + +.PHONY: test \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/backo2/Readme.md b/nodered/rootfs/data/node_modules/backo2/Readme.md new file mode 100644 index 0000000..0df2a39 --- /dev/null +++ b/nodered/rootfs/data/node_modules/backo2/Readme.md @@ -0,0 +1,34 @@ +# backo + + Simple exponential backoff because the others seem to have weird abstractions. + +## Installation + +``` +$ npm install backo +``` + +## Options + + - `min` initial timeout in milliseconds [100] + - `max` max timeout [10000] + - `jitter` [0] + - `factor` [2] + +## Example + +```js +var Backoff = require('backo'); +var backoff = new Backoff({ min: 100, max: 20000 }); + +setTimeout(function(){ + something.reconnect(); +}, backoff.duration()); + +// later when something works +backoff.reset() +``` + +# License + + MIT diff --git a/nodered/rootfs/data/node_modules/backo2/component.json b/nodered/rootfs/data/node_modules/backo2/component.json new file mode 100644 index 0000000..994845a --- /dev/null +++ b/nodered/rootfs/data/node_modules/backo2/component.json @@ -0,0 +1,11 @@ +{ + "name": "backo", + "repo": "segmentio/backo", + "dependencies": {}, + "version": "1.0.1", + "description": "simple backoff without the weird abstractions", + "keywords": ["backoff"], + "license": "MIT", + "scripts": ["index.js"], + "main": "index.js" +} diff --git a/nodered/rootfs/data/node_modules/backo2/index.js b/nodered/rootfs/data/node_modules/backo2/index.js new file mode 100644 index 0000000..fac4429 --- /dev/null +++ b/nodered/rootfs/data/node_modules/backo2/index.js @@ -0,0 +1,85 @@ + +/** + * Expose `Backoff`. + */ + +module.exports = Backoff; + +/** + * Initialize backoff timer with `opts`. + * + * - `min` initial timeout in milliseconds [100] + * - `max` max timeout [10000] + * - `jitter` [0] + * - `factor` [2] + * + * @param {Object} opts + * @api public + */ + +function Backoff(opts) { + opts = opts || {}; + this.ms = opts.min || 100; + this.max = opts.max || 10000; + this.factor = opts.factor || 2; + this.jitter = opts.jitter > 0 && opts.jitter <= 1 ? opts.jitter : 0; + this.attempts = 0; +} + +/** + * Return the backoff duration. + * + * @return {Number} + * @api public + */ + +Backoff.prototype.duration = function(){ + var ms = this.ms * Math.pow(this.factor, this.attempts++); + if (this.jitter) { + var rand = Math.random(); + var deviation = Math.floor(rand * this.jitter * ms); + ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation; + } + return Math.min(ms, this.max) | 0; +}; + +/** + * Reset the number of attempts. + * + * @api public + */ + +Backoff.prototype.reset = function(){ + this.attempts = 0; +}; + +/** + * Set the minimum duration + * + * @api public + */ + +Backoff.prototype.setMin = function(min){ + this.ms = min; +}; + +/** + * Set the maximum duration + * + * @api public + */ + +Backoff.prototype.setMax = function(max){ + this.max = max; +}; + +/** + * Set the jitter + * + * @api public + */ + +Backoff.prototype.setJitter = function(jitter){ + this.jitter = jitter; +}; + diff --git a/nodered/rootfs/data/node_modules/backo2/package.json b/nodered/rootfs/data/node_modules/backo2/package.json new file mode 100644 index 0000000..11d5c3f --- /dev/null +++ b/nodered/rootfs/data/node_modules/backo2/package.json @@ -0,0 +1,47 @@ +{ + "_from": "backo2@1.0.2", + "_id": "backo2@1.0.2", + "_inBundle": false, + "_integrity": "sha1-MasayLEpNjRj41s+u2n038+6eUc=", + "_location": "/backo2", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "backo2@1.0.2", + "name": "backo2", + "escapedName": "backo2", + "rawSpec": "1.0.2", + "saveSpec": null, + "fetchSpec": "1.0.2" + }, + "_requiredBy": [ + "/socket.io-client" + ], + "_resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", + "_shasum": "31ab1ac8b129363463e35b3ebb69f4dfcfba7947", + "_spec": "backo2@1.0.2", + "_where": "/data/node_modules/socket.io-client", + "bugs": { + "url": "https://github.com/mokesmokes/backo/issues" + }, + "bundleDependencies": false, + "dependencies": {}, + "deprecated": false, + "description": "simple backoff based on segmentio/backo", + "devDependencies": { + "mocha": "*", + "should": "*" + }, + "homepage": "https://github.com/mokesmokes/backo#readme", + "keywords": [ + "backoff" + ], + "license": "MIT", + "name": "backo2", + "repository": { + "type": "git", + "url": "git+https://github.com/mokesmokes/backo.git" + }, + "version": "1.0.2" +} diff --git a/nodered/rootfs/data/node_modules/backo2/test/index.js b/nodered/rootfs/data/node_modules/backo2/test/index.js new file mode 100644 index 0000000..ea1f6de --- /dev/null +++ b/nodered/rootfs/data/node_modules/backo2/test/index.js @@ -0,0 +1,18 @@ + +var Backoff = require('..'); +var assert = require('assert'); + +describe('.duration()', function(){ + it('should increase the backoff', function(){ + var b = new Backoff; + + assert(100 == b.duration()); + assert(200 == b.duration()); + assert(400 == b.duration()); + assert(800 == b.duration()); + + b.reset(); + assert(100 == b.duration()); + assert(200 == b.duration()); + }) +}) \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/base64-arraybuffer/.npmignore b/nodered/rootfs/data/node_modules/base64-arraybuffer/.npmignore new file mode 100644 index 0000000..332ee5a --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64-arraybuffer/.npmignore @@ -0,0 +1,3 @@ +/node_modules/ +Gruntfile.js +/test/ diff --git a/nodered/rootfs/data/node_modules/base64-arraybuffer/.travis.yml b/nodered/rootfs/data/node_modules/base64-arraybuffer/.travis.yml new file mode 100644 index 0000000..19259a5 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64-arraybuffer/.travis.yml @@ -0,0 +1,19 @@ +language: node_js +node_js: +- '0.12' +- iojs-1 +- iojs-2 +- iojs-3 +- '4.1' +before_script: +- npm install +before_install: npm install -g npm@'>=2.13.5' +deploy: + provider: npm + email: niklasvh@gmail.com + api_key: + secure: oHV9ArprTj5WOk7MP1UF7QMJ70huXw+y7xXb5wF4+V2H8Hyfa5TfE0DiOmqrube1WXTeH1FLgq54shp/sJWi47Hkg/GyeoB5NnsPhYEaJkaON9UG5blML+ODiNVsEnq/1kNBQ8e0+0JItMPLGySKyFmuZ3yflulXKS8O88mfINo= + on: + tags: true + branch: master + repo: niklasvh/base64-arraybuffer diff --git a/nodered/rootfs/data/node_modules/base64-arraybuffer/LICENSE-MIT b/nodered/rootfs/data/node_modules/base64-arraybuffer/LICENSE-MIT new file mode 100644 index 0000000..ed27b41 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64-arraybuffer/LICENSE-MIT @@ -0,0 +1,22 @@ +Copyright (c) 2012 Niklas von Hertzen + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/base64-arraybuffer/README.md b/nodered/rootfs/data/node_modules/base64-arraybuffer/README.md new file mode 100644 index 0000000..50009e4 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64-arraybuffer/README.md @@ -0,0 +1,20 @@ +# base64-arraybuffer + +[![Build Status](https://travis-ci.org/niklasvh/base64-arraybuffer.png)](https://travis-ci.org/niklasvh/base64-arraybuffer) +[![NPM Downloads](https://img.shields.io/npm/dm/base64-arraybuffer.svg)](https://www.npmjs.org/package/base64-arraybuffer) +[![NPM Version](https://img.shields.io/npm/v/base64-arraybuffer.svg)](https://www.npmjs.org/package/base64-arraybuffer) + +Encode/decode base64 data into ArrayBuffers + +## Getting Started +Install the module with: `npm install base64-arraybuffer` + +## API +The library encodes and decodes base64 to and from ArrayBuffers + + - __encode(buffer)__ - Encodes `ArrayBuffer` into base64 string + - __decode(str)__ - Decodes base64 string to `ArrayBuffer` + +## License +Copyright (c) 2012 Niklas von Hertzen +Licensed under the MIT license. diff --git a/nodered/rootfs/data/node_modules/base64-arraybuffer/lib/base64-arraybuffer.js b/nodered/rootfs/data/node_modules/base64-arraybuffer/lib/base64-arraybuffer.js new file mode 100644 index 0000000..e6b6306 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64-arraybuffer/lib/base64-arraybuffer.js @@ -0,0 +1,67 @@ +/* + * base64-arraybuffer + * https://github.com/niklasvh/base64-arraybuffer + * + * Copyright (c) 2012 Niklas von Hertzen + * Licensed under the MIT license. + */ +(function(){ + "use strict"; + + var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + + // Use a lookup table to find the index. + var lookup = new Uint8Array(256); + for (var i = 0; i < chars.length; i++) { + lookup[chars.charCodeAt(i)] = i; + } + + exports.encode = function(arraybuffer) { + var bytes = new Uint8Array(arraybuffer), + i, len = bytes.length, base64 = ""; + + for (i = 0; i < len; i+=3) { + base64 += chars[bytes[i] >> 2]; + base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)]; + base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)]; + base64 += chars[bytes[i + 2] & 63]; + } + + if ((len % 3) === 2) { + base64 = base64.substring(0, base64.length - 1) + "="; + } else if (len % 3 === 1) { + base64 = base64.substring(0, base64.length - 2) + "=="; + } + + return base64; + }; + + exports.decode = function(base64) { + var bufferLength = base64.length * 0.75, + len = base64.length, i, p = 0, + encoded1, encoded2, encoded3, encoded4; + + if (base64[base64.length - 1] === "=") { + bufferLength--; + if (base64[base64.length - 2] === "=") { + bufferLength--; + } + } + + var arraybuffer = new ArrayBuffer(bufferLength), + bytes = new Uint8Array(arraybuffer); + + for (i = 0; i < len; i+=4) { + encoded1 = lookup[base64.charCodeAt(i)]; + encoded2 = lookup[base64.charCodeAt(i+1)]; + encoded3 = lookup[base64.charCodeAt(i+2)]; + encoded4 = lookup[base64.charCodeAt(i+3)]; + + bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); + bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); + bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); + } + + return arraybuffer; + }; +})(); diff --git a/nodered/rootfs/data/node_modules/base64-arraybuffer/package.json b/nodered/rootfs/data/node_modules/base64-arraybuffer/package.json new file mode 100644 index 0000000..33e01d1 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64-arraybuffer/package.json @@ -0,0 +1,65 @@ +{ + "_from": "base64-arraybuffer@0.1.5", + "_id": "base64-arraybuffer@0.1.5", + "_inBundle": false, + "_integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg=", + "_location": "/base64-arraybuffer", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "base64-arraybuffer@0.1.5", + "name": "base64-arraybuffer", + "escapedName": "base64-arraybuffer", + "rawSpec": "0.1.5", + "saveSpec": null, + "fetchSpec": "0.1.5" + }, + "_requiredBy": [ + "/engine.io-parser", + "/socket.io-client" + ], + "_resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", + "_shasum": "73926771923b5a19747ad666aa5cd4bf9c6e9ce8", + "_spec": "base64-arraybuffer@0.1.5", + "_where": "/data/node_modules/engine.io-parser", + "author": { + "name": "Niklas von Hertzen", + "email": "niklasvh@gmail.com", + "url": "http://hertzen.com" + }, + "bugs": { + "url": "https://github.com/niklasvh/base64-arraybuffer/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "Encode/decode base64 data into ArrayBuffers", + "devDependencies": { + "grunt": "^0.4.5", + "grunt-cli": "^0.1.13", + "grunt-contrib-jshint": "^0.11.2", + "grunt-contrib-nodeunit": "^0.4.1", + "grunt-contrib-watch": "^0.6.1" + }, + "engines": { + "node": ">= 0.6.0" + }, + "homepage": "https://github.com/niklasvh/base64-arraybuffer", + "keywords": [], + "licenses": [ + { + "type": "MIT", + "url": "https://github.com/niklasvh/base64-arraybuffer/blob/master/LICENSE-MIT" + } + ], + "main": "lib/base64-arraybuffer", + "name": "base64-arraybuffer", + "repository": { + "type": "git", + "url": "git+https://github.com/niklasvh/base64-arraybuffer.git" + }, + "scripts": { + "test": "grunt nodeunit" + }, + "version": "0.1.5" +} diff --git a/nodered/rootfs/data/node_modules/base64id/CHANGELOG.md b/nodered/rootfs/data/node_modules/base64id/CHANGELOG.md new file mode 100644 index 0000000..b2b8332 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64id/CHANGELOG.md @@ -0,0 +1,16 @@ +# [2.0.0](https://github.com/faeldt/base64id/compare/1.0.0...2.0.0) (2019-05-27) + + +### Code Refactoring + +* **buffer:** replace deprecated Buffer constructor usage ([#11](https://github.com/faeldt/base64id/issues/11)) ([ccfba54](https://github.com/faeldt/base64id/commit/ccfba54)) + + +### BREAKING CHANGES + +* **buffer:** drop support for Node.js ≤ 4.4.x and 5.0.0 - 5.9.x + +See: https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/ + + + diff --git a/nodered/rootfs/data/node_modules/base64id/LICENSE b/nodered/rootfs/data/node_modules/base64id/LICENSE new file mode 100644 index 0000000..0d03c83 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64id/LICENSE @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2012-2016 Kristian Faeldt + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/base64id/README.md b/nodered/rootfs/data/node_modules/base64id/README.md new file mode 100644 index 0000000..17689e6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64id/README.md @@ -0,0 +1,18 @@ +base64id +======== + +Node.js module that generates a base64 id. + +Uses crypto.randomBytes when available, falls back to unsafe methods for node.js <= 0.4. + +To increase performance, random bytes are buffered to minimize the number of synchronous calls to crypto.randomBytes. + +## Installation + + $ npm install base64id + +## Usage + + var base64id = require('base64id'); + + var id = base64id.generateId(); diff --git a/nodered/rootfs/data/node_modules/base64id/lib/base64id.js b/nodered/rootfs/data/node_modules/base64id/lib/base64id.js new file mode 100644 index 0000000..15afe74 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64id/lib/base64id.js @@ -0,0 +1,103 @@ +/*! + * base64id v0.1.0 + */ + +/** + * Module dependencies + */ + +var crypto = require('crypto'); + +/** + * Constructor + */ + +var Base64Id = function() { }; + +/** + * Get random bytes + * + * Uses a buffer if available, falls back to crypto.randomBytes + */ + +Base64Id.prototype.getRandomBytes = function(bytes) { + + var BUFFER_SIZE = 4096 + var self = this; + + bytes = bytes || 12; + + if (bytes > BUFFER_SIZE) { + return crypto.randomBytes(bytes); + } + + var bytesInBuffer = parseInt(BUFFER_SIZE/bytes); + var threshold = parseInt(bytesInBuffer*0.85); + + if (!threshold) { + return crypto.randomBytes(bytes); + } + + if (this.bytesBufferIndex == null) { + this.bytesBufferIndex = -1; + } + + if (this.bytesBufferIndex == bytesInBuffer) { + this.bytesBuffer = null; + this.bytesBufferIndex = -1; + } + + // No buffered bytes available or index above threshold + if (this.bytesBufferIndex == -1 || this.bytesBufferIndex > threshold) { + + if (!this.isGeneratingBytes) { + this.isGeneratingBytes = true; + crypto.randomBytes(BUFFER_SIZE, function(err, bytes) { + self.bytesBuffer = bytes; + self.bytesBufferIndex = 0; + self.isGeneratingBytes = false; + }); + } + + // Fall back to sync call when no buffered bytes are available + if (this.bytesBufferIndex == -1) { + return crypto.randomBytes(bytes); + } + } + + var result = this.bytesBuffer.slice(bytes*this.bytesBufferIndex, bytes*(this.bytesBufferIndex+1)); + this.bytesBufferIndex++; + + return result; +} + +/** + * Generates a base64 id + * + * (Original version from socket.io ) + */ + +Base64Id.prototype.generateId = function () { + var rand = Buffer.alloc(15); // multiple of 3 for base64 + if (!rand.writeInt32BE) { + return Math.abs(Math.random() * Math.random() * Date.now() | 0).toString() + + Math.abs(Math.random() * Math.random() * Date.now() | 0).toString(); + } + this.sequenceNumber = (this.sequenceNumber + 1) | 0; + rand.writeInt32BE(this.sequenceNumber, 11); + if (crypto.randomBytes) { + this.getRandomBytes(12).copy(rand); + } else { + // not secure for node 0.4 + [0, 4, 8].forEach(function(i) { + rand.writeInt32BE(Math.random() * Math.pow(2, 32) | 0, i); + }); + } + return rand.toString('base64').replace(/\//g, '_').replace(/\+/g, '-'); +}; + +/** + * Export + */ + +exports = module.exports = new Base64Id(); diff --git a/nodered/rootfs/data/node_modules/base64id/package.json b/nodered/rootfs/data/node_modules/base64id/package.json new file mode 100644 index 0000000..d7cb647 --- /dev/null +++ b/nodered/rootfs/data/node_modules/base64id/package.json @@ -0,0 +1,47 @@ +{ + "_from": "base64id@2.0.0", + "_id": "base64id@2.0.0", + "_inBundle": false, + "_integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", + "_location": "/base64id", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "base64id@2.0.0", + "name": "base64id", + "escapedName": "base64id", + "rawSpec": "2.0.0", + "saveSpec": null, + "fetchSpec": "2.0.0" + }, + "_requiredBy": [ + "/engine.io" + ], + "_resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", + "_shasum": "2770ac6bc47d312af97a8bf9a634342e0cd25cb6", + "_spec": "base64id@2.0.0", + "_where": "/data/node_modules/engine.io", + "author": { + "name": "Kristian Faeldt", + "email": "faeldt_kristian@cyberagent.co.jp" + }, + "bugs": { + "url": "https://github.com/faeldt/base64id/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "Generates a base64 id", + "engines": { + "node": "^4.5.0 || >= 5.9" + }, + "homepage": "https://github.com/faeldt/base64id#readme", + "license": "MIT", + "main": "./lib/base64id.js", + "name": "base64id", + "repository": { + "type": "git", + "url": "git+https://github.com/faeldt/base64id.git" + }, + "version": "2.0.0" +} diff --git a/nodered/rootfs/data/node_modules/bcrypt-pbkdf/CONTRIBUTING.md b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/CONTRIBUTING.md new file mode 100644 index 0000000..401d34e --- /dev/null +++ b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/CONTRIBUTING.md @@ -0,0 +1,13 @@ +# Contributing + +This repository uses [cr.joyent.us](https://cr.joyent.us) (Gerrit) for new +changes. Anyone can submit changes. To get started, see the [cr.joyent.us user +guide](https://github.com/joyent/joyent-gerrit/blob/master/docs/user/README.md). +This repo does not use GitHub pull requests. + +See the [Joyent Engineering +Guidelines](https://github.com/joyent/eng/blob/master/docs/index.md) for general +best practices expected in this repository. + +If you're changing something non-trivial or user-facing, you may want to submit +an issue first. diff --git a/nodered/rootfs/data/node_modules/bcrypt-pbkdf/LICENSE b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/LICENSE new file mode 100644 index 0000000..fc58d2a --- /dev/null +++ b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/LICENSE @@ -0,0 +1,66 @@ +The Blowfish portions are under the following license: + +Blowfish block cipher for OpenBSD +Copyright 1997 Niels Provos +All rights reserved. + +Implementation advice by David Mazieres . + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + +The bcrypt_pbkdf portions are under the following license: + +Copyright (c) 2013 Ted Unangst + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + + +Performance improvements (Javascript-specific): + +Copyright 2016, Joyent Inc +Author: Alex Wilson + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/bcrypt-pbkdf/README.md b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/README.md new file mode 100644 index 0000000..7551f33 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/README.md @@ -0,0 +1,45 @@ +Port of the OpenBSD `bcrypt_pbkdf` function to pure Javascript. `npm`-ified +version of [Devi Mandiri's port](https://github.com/devi/tmp/blob/master/js/bcrypt_pbkdf.js), +with some minor performance improvements. The code is copied verbatim (and +un-styled) from Devi's work. + +This product includes software developed by Niels Provos. + +## API + +### `bcrypt_pbkdf.pbkdf(pass, passlen, salt, saltlen, key, keylen, rounds)` + +Derive a cryptographic key of arbitrary length from a given password and salt, +using the OpenBSD `bcrypt_pbkdf` function. This is a combination of Blowfish and +SHA-512. + +See [this article](http://www.tedunangst.com/flak/post/bcrypt-pbkdf) for +further information. + +Parameters: + + * `pass`, a Uint8Array of length `passlen` + * `passlen`, an integer Number + * `salt`, a Uint8Array of length `saltlen` + * `saltlen`, an integer Number + * `key`, a Uint8Array of length `keylen`, will be filled with output + * `keylen`, an integer Number + * `rounds`, an integer Number, number of rounds of the PBKDF to run + +### `bcrypt_pbkdf.hash(sha2pass, sha2salt, out)` + +Calculate a Blowfish hash, given SHA2-512 output of a password and salt. Used as +part of the inner round function in the PBKDF. + +Parameters: + + * `sha2pass`, a Uint8Array of length 64 + * `sha2salt`, a Uint8Array of length 64 + * `out`, a Uint8Array of length 32, will be filled with output + +## License + +This source form is a 1:1 port from the OpenBSD `blowfish.c` and `bcrypt_pbkdf.c`. +As a result, it retains the original copyright and license. The two files are +under slightly different (but compatible) licenses, and are here combined in +one file. For each of the full license texts see `LICENSE`. diff --git a/nodered/rootfs/data/node_modules/bcrypt-pbkdf/index.js b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/index.js new file mode 100644 index 0000000..b1b5ad4 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/index.js @@ -0,0 +1,556 @@ +'use strict'; + +var crypto_hash_sha512 = require('tweetnacl').lowlevel.crypto_hash; + +/* + * This file is a 1:1 port from the OpenBSD blowfish.c and bcrypt_pbkdf.c. As a + * result, it retains the original copyright and license. The two files are + * under slightly different (but compatible) licenses, and are here combined in + * one file. + * + * Credit for the actual porting work goes to: + * Devi Mandiri + */ + +/* + * The Blowfish portions are under the following license: + * + * Blowfish block cipher for OpenBSD + * Copyright 1997 Niels Provos + * All rights reserved. + * + * Implementation advice by David Mazieres . + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* + * The bcrypt_pbkdf portions are under the following license: + * + * Copyright (c) 2013 Ted Unangst + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/* + * Performance improvements (Javascript-specific): + * + * Copyright 2016, Joyent Inc + * Author: Alex Wilson + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +// Ported from OpenBSD bcrypt_pbkdf.c v1.9 + +var BLF_J = 0; + +var Blowfish = function() { + this.S = [ + new Uint32Array([ + 0xd1310ba6, 0x98dfb5ac, 0x2ffd72db, 0xd01adfb7, + 0xb8e1afed, 0x6a267e96, 0xba7c9045, 0xf12c7f99, + 0x24a19947, 0xb3916cf7, 0x0801f2e2, 0x858efc16, + 0x636920d8, 0x71574e69, 0xa458fea3, 0xf4933d7e, + 0x0d95748f, 0x728eb658, 0x718bcd58, 0x82154aee, + 0x7b54a41d, 0xc25a59b5, 0x9c30d539, 0x2af26013, + 0xc5d1b023, 0x286085f0, 0xca417918, 0xb8db38ef, + 0x8e79dcb0, 0x603a180e, 0x6c9e0e8b, 0xb01e8a3e, + 0xd71577c1, 0xbd314b27, 0x78af2fda, 0x55605c60, + 0xe65525f3, 0xaa55ab94, 0x57489862, 0x63e81440, + 0x55ca396a, 0x2aab10b6, 0xb4cc5c34, 0x1141e8ce, + 0xa15486af, 0x7c72e993, 0xb3ee1411, 0x636fbc2a, + 0x2ba9c55d, 0x741831f6, 0xce5c3e16, 0x9b87931e, + 0xafd6ba33, 0x6c24cf5c, 0x7a325381, 0x28958677, + 0x3b8f4898, 0x6b4bb9af, 0xc4bfe81b, 0x66282193, + 0x61d809cc, 0xfb21a991, 0x487cac60, 0x5dec8032, + 0xef845d5d, 0xe98575b1, 0xdc262302, 0xeb651b88, + 0x23893e81, 0xd396acc5, 0x0f6d6ff3, 0x83f44239, + 0x2e0b4482, 0xa4842004, 0x69c8f04a, 0x9e1f9b5e, + 0x21c66842, 0xf6e96c9a, 0x670c9c61, 0xabd388f0, + 0x6a51a0d2, 0xd8542f68, 0x960fa728, 0xab5133a3, + 0x6eef0b6c, 0x137a3be4, 0xba3bf050, 0x7efb2a98, + 0xa1f1651d, 0x39af0176, 0x66ca593e, 0x82430e88, + 0x8cee8619, 0x456f9fb4, 0x7d84a5c3, 0x3b8b5ebe, + 0xe06f75d8, 0x85c12073, 0x401a449f, 0x56c16aa6, + 0x4ed3aa62, 0x363f7706, 0x1bfedf72, 0x429b023d, + 0x37d0d724, 0xd00a1248, 0xdb0fead3, 0x49f1c09b, + 0x075372c9, 0x80991b7b, 0x25d479d8, 0xf6e8def7, + 0xe3fe501a, 0xb6794c3b, 0x976ce0bd, 0x04c006ba, + 0xc1a94fb6, 0x409f60c4, 0x5e5c9ec2, 0x196a2463, + 0x68fb6faf, 0x3e6c53b5, 0x1339b2eb, 0x3b52ec6f, + 0x6dfc511f, 0x9b30952c, 0xcc814544, 0xaf5ebd09, + 0xbee3d004, 0xde334afd, 0x660f2807, 0x192e4bb3, + 0xc0cba857, 0x45c8740f, 0xd20b5f39, 0xb9d3fbdb, + 0x5579c0bd, 0x1a60320a, 0xd6a100c6, 0x402c7279, + 0x679f25fe, 0xfb1fa3cc, 0x8ea5e9f8, 0xdb3222f8, + 0x3c7516df, 0xfd616b15, 0x2f501ec8, 0xad0552ab, + 0x323db5fa, 0xfd238760, 0x53317b48, 0x3e00df82, + 0x9e5c57bb, 0xca6f8ca0, 0x1a87562e, 0xdf1769db, + 0xd542a8f6, 0x287effc3, 0xac6732c6, 0x8c4f5573, + 0x695b27b0, 0xbbca58c8, 0xe1ffa35d, 0xb8f011a0, + 0x10fa3d98, 0xfd2183b8, 0x4afcb56c, 0x2dd1d35b, + 0x9a53e479, 0xb6f84565, 0xd28e49bc, 0x4bfb9790, + 0xe1ddf2da, 0xa4cb7e33, 0x62fb1341, 0xcee4c6e8, + 0xef20cada, 0x36774c01, 0xd07e9efe, 0x2bf11fb4, + 0x95dbda4d, 0xae909198, 0xeaad8e71, 0x6b93d5a0, + 0xd08ed1d0, 0xafc725e0, 0x8e3c5b2f, 0x8e7594b7, + 0x8ff6e2fb, 0xf2122b64, 0x8888b812, 0x900df01c, + 0x4fad5ea0, 0x688fc31c, 0xd1cff191, 0xb3a8c1ad, + 0x2f2f2218, 0xbe0e1777, 0xea752dfe, 0x8b021fa1, + 0xe5a0cc0f, 0xb56f74e8, 0x18acf3d6, 0xce89e299, + 0xb4a84fe0, 0xfd13e0b7, 0x7cc43b81, 0xd2ada8d9, + 0x165fa266, 0x80957705, 0x93cc7314, 0x211a1477, + 0xe6ad2065, 0x77b5fa86, 0xc75442f5, 0xfb9d35cf, + 0xebcdaf0c, 0x7b3e89a0, 0xd6411bd3, 0xae1e7e49, + 0x00250e2d, 0x2071b35e, 0x226800bb, 0x57b8e0af, + 0x2464369b, 0xf009b91e, 0x5563911d, 0x59dfa6aa, + 0x78c14389, 0xd95a537f, 0x207d5ba2, 0x02e5b9c5, + 0x83260376, 0x6295cfa9, 0x11c81968, 0x4e734a41, + 0xb3472dca, 0x7b14a94a, 0x1b510052, 0x9a532915, + 0xd60f573f, 0xbc9bc6e4, 0x2b60a476, 0x81e67400, + 0x08ba6fb5, 0x571be91f, 0xf296ec6b, 0x2a0dd915, + 0xb6636521, 0xe7b9f9b6, 0xff34052e, 0xc5855664, + 0x53b02d5d, 0xa99f8fa1, 0x08ba4799, 0x6e85076a]), + new Uint32Array([ + 0x4b7a70e9, 0xb5b32944, 0xdb75092e, 0xc4192623, + 0xad6ea6b0, 0x49a7df7d, 0x9cee60b8, 0x8fedb266, + 0xecaa8c71, 0x699a17ff, 0x5664526c, 0xc2b19ee1, + 0x193602a5, 0x75094c29, 0xa0591340, 0xe4183a3e, + 0x3f54989a, 0x5b429d65, 0x6b8fe4d6, 0x99f73fd6, + 0xa1d29c07, 0xefe830f5, 0x4d2d38e6, 0xf0255dc1, + 0x4cdd2086, 0x8470eb26, 0x6382e9c6, 0x021ecc5e, + 0x09686b3f, 0x3ebaefc9, 0x3c971814, 0x6b6a70a1, + 0x687f3584, 0x52a0e286, 0xb79c5305, 0xaa500737, + 0x3e07841c, 0x7fdeae5c, 0x8e7d44ec, 0x5716f2b8, + 0xb03ada37, 0xf0500c0d, 0xf01c1f04, 0x0200b3ff, + 0xae0cf51a, 0x3cb574b2, 0x25837a58, 0xdc0921bd, + 0xd19113f9, 0x7ca92ff6, 0x94324773, 0x22f54701, + 0x3ae5e581, 0x37c2dadc, 0xc8b57634, 0x9af3dda7, + 0xa9446146, 0x0fd0030e, 0xecc8c73e, 0xa4751e41, + 0xe238cd99, 0x3bea0e2f, 0x3280bba1, 0x183eb331, + 0x4e548b38, 0x4f6db908, 0x6f420d03, 0xf60a04bf, + 0x2cb81290, 0x24977c79, 0x5679b072, 0xbcaf89af, + 0xde9a771f, 0xd9930810, 0xb38bae12, 0xdccf3f2e, + 0x5512721f, 0x2e6b7124, 0x501adde6, 0x9f84cd87, + 0x7a584718, 0x7408da17, 0xbc9f9abc, 0xe94b7d8c, + 0xec7aec3a, 0xdb851dfa, 0x63094366, 0xc464c3d2, + 0xef1c1847, 0x3215d908, 0xdd433b37, 0x24c2ba16, + 0x12a14d43, 0x2a65c451, 0x50940002, 0x133ae4dd, + 0x71dff89e, 0x10314e55, 0x81ac77d6, 0x5f11199b, + 0x043556f1, 0xd7a3c76b, 0x3c11183b, 0x5924a509, + 0xf28fe6ed, 0x97f1fbfa, 0x9ebabf2c, 0x1e153c6e, + 0x86e34570, 0xeae96fb1, 0x860e5e0a, 0x5a3e2ab3, + 0x771fe71c, 0x4e3d06fa, 0x2965dcb9, 0x99e71d0f, + 0x803e89d6, 0x5266c825, 0x2e4cc978, 0x9c10b36a, + 0xc6150eba, 0x94e2ea78, 0xa5fc3c53, 0x1e0a2df4, + 0xf2f74ea7, 0x361d2b3d, 0x1939260f, 0x19c27960, + 0x5223a708, 0xf71312b6, 0xebadfe6e, 0xeac31f66, + 0xe3bc4595, 0xa67bc883, 0xb17f37d1, 0x018cff28, + 0xc332ddef, 0xbe6c5aa5, 0x65582185, 0x68ab9802, + 0xeecea50f, 0xdb2f953b, 0x2aef7dad, 0x5b6e2f84, + 0x1521b628, 0x29076170, 0xecdd4775, 0x619f1510, + 0x13cca830, 0xeb61bd96, 0x0334fe1e, 0xaa0363cf, + 0xb5735c90, 0x4c70a239, 0xd59e9e0b, 0xcbaade14, + 0xeecc86bc, 0x60622ca7, 0x9cab5cab, 0xb2f3846e, + 0x648b1eaf, 0x19bdf0ca, 0xa02369b9, 0x655abb50, + 0x40685a32, 0x3c2ab4b3, 0x319ee9d5, 0xc021b8f7, + 0x9b540b19, 0x875fa099, 0x95f7997e, 0x623d7da8, + 0xf837889a, 0x97e32d77, 0x11ed935f, 0x16681281, + 0x0e358829, 0xc7e61fd6, 0x96dedfa1, 0x7858ba99, + 0x57f584a5, 0x1b227263, 0x9b83c3ff, 0x1ac24696, + 0xcdb30aeb, 0x532e3054, 0x8fd948e4, 0x6dbc3128, + 0x58ebf2ef, 0x34c6ffea, 0xfe28ed61, 0xee7c3c73, + 0x5d4a14d9, 0xe864b7e3, 0x42105d14, 0x203e13e0, + 0x45eee2b6, 0xa3aaabea, 0xdb6c4f15, 0xfacb4fd0, + 0xc742f442, 0xef6abbb5, 0x654f3b1d, 0x41cd2105, + 0xd81e799e, 0x86854dc7, 0xe44b476a, 0x3d816250, + 0xcf62a1f2, 0x5b8d2646, 0xfc8883a0, 0xc1c7b6a3, + 0x7f1524c3, 0x69cb7492, 0x47848a0b, 0x5692b285, + 0x095bbf00, 0xad19489d, 0x1462b174, 0x23820e00, + 0x58428d2a, 0x0c55f5ea, 0x1dadf43e, 0x233f7061, + 0x3372f092, 0x8d937e41, 0xd65fecf1, 0x6c223bdb, + 0x7cde3759, 0xcbee7460, 0x4085f2a7, 0xce77326e, + 0xa6078084, 0x19f8509e, 0xe8efd855, 0x61d99735, + 0xa969a7aa, 0xc50c06c2, 0x5a04abfc, 0x800bcadc, + 0x9e447a2e, 0xc3453484, 0xfdd56705, 0x0e1e9ec9, + 0xdb73dbd3, 0x105588cd, 0x675fda79, 0xe3674340, + 0xc5c43465, 0x713e38d8, 0x3d28f89e, 0xf16dff20, + 0x153e21e7, 0x8fb03d4a, 0xe6e39f2b, 0xdb83adf7]), + new Uint32Array([ + 0xe93d5a68, 0x948140f7, 0xf64c261c, 0x94692934, + 0x411520f7, 0x7602d4f7, 0xbcf46b2e, 0xd4a20068, + 0xd4082471, 0x3320f46a, 0x43b7d4b7, 0x500061af, + 0x1e39f62e, 0x97244546, 0x14214f74, 0xbf8b8840, + 0x4d95fc1d, 0x96b591af, 0x70f4ddd3, 0x66a02f45, + 0xbfbc09ec, 0x03bd9785, 0x7fac6dd0, 0x31cb8504, + 0x96eb27b3, 0x55fd3941, 0xda2547e6, 0xabca0a9a, + 0x28507825, 0x530429f4, 0x0a2c86da, 0xe9b66dfb, + 0x68dc1462, 0xd7486900, 0x680ec0a4, 0x27a18dee, + 0x4f3ffea2, 0xe887ad8c, 0xb58ce006, 0x7af4d6b6, + 0xaace1e7c, 0xd3375fec, 0xce78a399, 0x406b2a42, + 0x20fe9e35, 0xd9f385b9, 0xee39d7ab, 0x3b124e8b, + 0x1dc9faf7, 0x4b6d1856, 0x26a36631, 0xeae397b2, + 0x3a6efa74, 0xdd5b4332, 0x6841e7f7, 0xca7820fb, + 0xfb0af54e, 0xd8feb397, 0x454056ac, 0xba489527, + 0x55533a3a, 0x20838d87, 0xfe6ba9b7, 0xd096954b, + 0x55a867bc, 0xa1159a58, 0xcca92963, 0x99e1db33, + 0xa62a4a56, 0x3f3125f9, 0x5ef47e1c, 0x9029317c, + 0xfdf8e802, 0x04272f70, 0x80bb155c, 0x05282ce3, + 0x95c11548, 0xe4c66d22, 0x48c1133f, 0xc70f86dc, + 0x07f9c9ee, 0x41041f0f, 0x404779a4, 0x5d886e17, + 0x325f51eb, 0xd59bc0d1, 0xf2bcc18f, 0x41113564, + 0x257b7834, 0x602a9c60, 0xdff8e8a3, 0x1f636c1b, + 0x0e12b4c2, 0x02e1329e, 0xaf664fd1, 0xcad18115, + 0x6b2395e0, 0x333e92e1, 0x3b240b62, 0xeebeb922, + 0x85b2a20e, 0xe6ba0d99, 0xde720c8c, 0x2da2f728, + 0xd0127845, 0x95b794fd, 0x647d0862, 0xe7ccf5f0, + 0x5449a36f, 0x877d48fa, 0xc39dfd27, 0xf33e8d1e, + 0x0a476341, 0x992eff74, 0x3a6f6eab, 0xf4f8fd37, + 0xa812dc60, 0xa1ebddf8, 0x991be14c, 0xdb6e6b0d, + 0xc67b5510, 0x6d672c37, 0x2765d43b, 0xdcd0e804, + 0xf1290dc7, 0xcc00ffa3, 0xb5390f92, 0x690fed0b, + 0x667b9ffb, 0xcedb7d9c, 0xa091cf0b, 0xd9155ea3, + 0xbb132f88, 0x515bad24, 0x7b9479bf, 0x763bd6eb, + 0x37392eb3, 0xcc115979, 0x8026e297, 0xf42e312d, + 0x6842ada7, 0xc66a2b3b, 0x12754ccc, 0x782ef11c, + 0x6a124237, 0xb79251e7, 0x06a1bbe6, 0x4bfb6350, + 0x1a6b1018, 0x11caedfa, 0x3d25bdd8, 0xe2e1c3c9, + 0x44421659, 0x0a121386, 0xd90cec6e, 0xd5abea2a, + 0x64af674e, 0xda86a85f, 0xbebfe988, 0x64e4c3fe, + 0x9dbc8057, 0xf0f7c086, 0x60787bf8, 0x6003604d, + 0xd1fd8346, 0xf6381fb0, 0x7745ae04, 0xd736fccc, + 0x83426b33, 0xf01eab71, 0xb0804187, 0x3c005e5f, + 0x77a057be, 0xbde8ae24, 0x55464299, 0xbf582e61, + 0x4e58f48f, 0xf2ddfda2, 0xf474ef38, 0x8789bdc2, + 0x5366f9c3, 0xc8b38e74, 0xb475f255, 0x46fcd9b9, + 0x7aeb2661, 0x8b1ddf84, 0x846a0e79, 0x915f95e2, + 0x466e598e, 0x20b45770, 0x8cd55591, 0xc902de4c, + 0xb90bace1, 0xbb8205d0, 0x11a86248, 0x7574a99e, + 0xb77f19b6, 0xe0a9dc09, 0x662d09a1, 0xc4324633, + 0xe85a1f02, 0x09f0be8c, 0x4a99a025, 0x1d6efe10, + 0x1ab93d1d, 0x0ba5a4df, 0xa186f20f, 0x2868f169, + 0xdcb7da83, 0x573906fe, 0xa1e2ce9b, 0x4fcd7f52, + 0x50115e01, 0xa70683fa, 0xa002b5c4, 0x0de6d027, + 0x9af88c27, 0x773f8641, 0xc3604c06, 0x61a806b5, + 0xf0177a28, 0xc0f586e0, 0x006058aa, 0x30dc7d62, + 0x11e69ed7, 0x2338ea63, 0x53c2dd94, 0xc2c21634, + 0xbbcbee56, 0x90bcb6de, 0xebfc7da1, 0xce591d76, + 0x6f05e409, 0x4b7c0188, 0x39720a3d, 0x7c927c24, + 0x86e3725f, 0x724d9db9, 0x1ac15bb4, 0xd39eb8fc, + 0xed545578, 0x08fca5b5, 0xd83d7cd3, 0x4dad0fc4, + 0x1e50ef5e, 0xb161e6f8, 0xa28514d9, 0x6c51133c, + 0x6fd5c7e7, 0x56e14ec4, 0x362abfce, 0xddc6c837, + 0xd79a3234, 0x92638212, 0x670efa8e, 0x406000e0]), + new Uint32Array([ + 0x3a39ce37, 0xd3faf5cf, 0xabc27737, 0x5ac52d1b, + 0x5cb0679e, 0x4fa33742, 0xd3822740, 0x99bc9bbe, + 0xd5118e9d, 0xbf0f7315, 0xd62d1c7e, 0xc700c47b, + 0xb78c1b6b, 0x21a19045, 0xb26eb1be, 0x6a366eb4, + 0x5748ab2f, 0xbc946e79, 0xc6a376d2, 0x6549c2c8, + 0x530ff8ee, 0x468dde7d, 0xd5730a1d, 0x4cd04dc6, + 0x2939bbdb, 0xa9ba4650, 0xac9526e8, 0xbe5ee304, + 0xa1fad5f0, 0x6a2d519a, 0x63ef8ce2, 0x9a86ee22, + 0xc089c2b8, 0x43242ef6, 0xa51e03aa, 0x9cf2d0a4, + 0x83c061ba, 0x9be96a4d, 0x8fe51550, 0xba645bd6, + 0x2826a2f9, 0xa73a3ae1, 0x4ba99586, 0xef5562e9, + 0xc72fefd3, 0xf752f7da, 0x3f046f69, 0x77fa0a59, + 0x80e4a915, 0x87b08601, 0x9b09e6ad, 0x3b3ee593, + 0xe990fd5a, 0x9e34d797, 0x2cf0b7d9, 0x022b8b51, + 0x96d5ac3a, 0x017da67d, 0xd1cf3ed6, 0x7c7d2d28, + 0x1f9f25cf, 0xadf2b89b, 0x5ad6b472, 0x5a88f54c, + 0xe029ac71, 0xe019a5e6, 0x47b0acfd, 0xed93fa9b, + 0xe8d3c48d, 0x283b57cc, 0xf8d56629, 0x79132e28, + 0x785f0191, 0xed756055, 0xf7960e44, 0xe3d35e8c, + 0x15056dd4, 0x88f46dba, 0x03a16125, 0x0564f0bd, + 0xc3eb9e15, 0x3c9057a2, 0x97271aec, 0xa93a072a, + 0x1b3f6d9b, 0x1e6321f5, 0xf59c66fb, 0x26dcf319, + 0x7533d928, 0xb155fdf5, 0x03563482, 0x8aba3cbb, + 0x28517711, 0xc20ad9f8, 0xabcc5167, 0xccad925f, + 0x4de81751, 0x3830dc8e, 0x379d5862, 0x9320f991, + 0xea7a90c2, 0xfb3e7bce, 0x5121ce64, 0x774fbe32, + 0xa8b6e37e, 0xc3293d46, 0x48de5369, 0x6413e680, + 0xa2ae0810, 0xdd6db224, 0x69852dfd, 0x09072166, + 0xb39a460a, 0x6445c0dd, 0x586cdecf, 0x1c20c8ae, + 0x5bbef7dd, 0x1b588d40, 0xccd2017f, 0x6bb4e3bb, + 0xdda26a7e, 0x3a59ff45, 0x3e350a44, 0xbcb4cdd5, + 0x72eacea8, 0xfa6484bb, 0x8d6612ae, 0xbf3c6f47, + 0xd29be463, 0x542f5d9e, 0xaec2771b, 0xf64e6370, + 0x740e0d8d, 0xe75b1357, 0xf8721671, 0xaf537d5d, + 0x4040cb08, 0x4eb4e2cc, 0x34d2466a, 0x0115af84, + 0xe1b00428, 0x95983a1d, 0x06b89fb4, 0xce6ea048, + 0x6f3f3b82, 0x3520ab82, 0x011a1d4b, 0x277227f8, + 0x611560b1, 0xe7933fdc, 0xbb3a792b, 0x344525bd, + 0xa08839e1, 0x51ce794b, 0x2f32c9b7, 0xa01fbac9, + 0xe01cc87e, 0xbcc7d1f6, 0xcf0111c3, 0xa1e8aac7, + 0x1a908749, 0xd44fbd9a, 0xd0dadecb, 0xd50ada38, + 0x0339c32a, 0xc6913667, 0x8df9317c, 0xe0b12b4f, + 0xf79e59b7, 0x43f5bb3a, 0xf2d519ff, 0x27d9459c, + 0xbf97222c, 0x15e6fc2a, 0x0f91fc71, 0x9b941525, + 0xfae59361, 0xceb69ceb, 0xc2a86459, 0x12baa8d1, + 0xb6c1075e, 0xe3056a0c, 0x10d25065, 0xcb03a442, + 0xe0ec6e0e, 0x1698db3b, 0x4c98a0be, 0x3278e964, + 0x9f1f9532, 0xe0d392df, 0xd3a0342b, 0x8971f21e, + 0x1b0a7441, 0x4ba3348c, 0xc5be7120, 0xc37632d8, + 0xdf359f8d, 0x9b992f2e, 0xe60b6f47, 0x0fe3f11d, + 0xe54cda54, 0x1edad891, 0xce6279cf, 0xcd3e7e6f, + 0x1618b166, 0xfd2c1d05, 0x848fd2c5, 0xf6fb2299, + 0xf523f357, 0xa6327623, 0x93a83531, 0x56cccd02, + 0xacf08162, 0x5a75ebb5, 0x6e163697, 0x88d273cc, + 0xde966292, 0x81b949d0, 0x4c50901b, 0x71c65614, + 0xe6c6c7bd, 0x327a140a, 0x45e1d006, 0xc3f27b9a, + 0xc9aa53fd, 0x62a80f00, 0xbb25bfe2, 0x35bdd2f6, + 0x71126905, 0xb2040222, 0xb6cbcf7c, 0xcd769c2b, + 0x53113ec0, 0x1640e3d3, 0x38abbd60, 0x2547adf0, + 0xba38209c, 0xf746ce76, 0x77afa1c5, 0x20756060, + 0x85cbfe4e, 0x8ae88dd8, 0x7aaaf9b0, 0x4cf9aa7e, + 0x1948c25c, 0x02fb8a8c, 0x01c36ae4, 0xd6ebe1f9, + 0x90d4f869, 0xa65cdea0, 0x3f09252d, 0xc208e69f, + 0xb74e6132, 0xce77e25b, 0x578fdfe3, 0x3ac372e6]) + ]; + this.P = new Uint32Array([ + 0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, + 0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89, + 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c, + 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917, + 0x9216d5d9, 0x8979fb1b]); +}; + +function F(S, x8, i) { + return (((S[0][x8[i+3]] + + S[1][x8[i+2]]) ^ + S[2][x8[i+1]]) + + S[3][x8[i]]); +}; + +Blowfish.prototype.encipher = function(x, x8) { + if (x8 === undefined) { + x8 = new Uint8Array(x.buffer); + if (x.byteOffset !== 0) + x8 = x8.subarray(x.byteOffset); + } + x[0] ^= this.P[0]; + for (var i = 1; i < 16; i += 2) { + x[1] ^= F(this.S, x8, 0) ^ this.P[i]; + x[0] ^= F(this.S, x8, 4) ^ this.P[i+1]; + } + var t = x[0]; + x[0] = x[1] ^ this.P[17]; + x[1] = t; +}; + +Blowfish.prototype.decipher = function(x) { + var x8 = new Uint8Array(x.buffer); + if (x.byteOffset !== 0) + x8 = x8.subarray(x.byteOffset); + x[0] ^= this.P[17]; + for (var i = 16; i > 0; i -= 2) { + x[1] ^= F(this.S, x8, 0) ^ this.P[i]; + x[0] ^= F(this.S, x8, 4) ^ this.P[i-1]; + } + var t = x[0]; + x[0] = x[1] ^ this.P[0]; + x[1] = t; +}; + +function stream2word(data, databytes){ + var i, temp = 0; + for (i = 0; i < 4; i++, BLF_J++) { + if (BLF_J >= databytes) BLF_J = 0; + temp = (temp << 8) | data[BLF_J]; + } + return temp; +}; + +Blowfish.prototype.expand0state = function(key, keybytes) { + var d = new Uint32Array(2), i, k; + var d8 = new Uint8Array(d.buffer); + + for (i = 0, BLF_J = 0; i < 18; i++) { + this.P[i] ^= stream2word(key, keybytes); + } + BLF_J = 0; + + for (i = 0; i < 18; i += 2) { + this.encipher(d, d8); + this.P[i] = d[0]; + this.P[i+1] = d[1]; + } + + for (i = 0; i < 4; i++) { + for (k = 0; k < 256; k += 2) { + this.encipher(d, d8); + this.S[i][k] = d[0]; + this.S[i][k+1] = d[1]; + } + } +}; + +Blowfish.prototype.expandstate = function(data, databytes, key, keybytes) { + var d = new Uint32Array(2), i, k; + + for (i = 0, BLF_J = 0; i < 18; i++) { + this.P[i] ^= stream2word(key, keybytes); + } + + for (i = 0, BLF_J = 0; i < 18; i += 2) { + d[0] ^= stream2word(data, databytes); + d[1] ^= stream2word(data, databytes); + this.encipher(d); + this.P[i] = d[0]; + this.P[i+1] = d[1]; + } + + for (i = 0; i < 4; i++) { + for (k = 0; k < 256; k += 2) { + d[0] ^= stream2word(data, databytes); + d[1] ^= stream2word(data, databytes); + this.encipher(d); + this.S[i][k] = d[0]; + this.S[i][k+1] = d[1]; + } + } + BLF_J = 0; +}; + +Blowfish.prototype.enc = function(data, blocks) { + for (var i = 0; i < blocks; i++) { + this.encipher(data.subarray(i*2)); + } +}; + +Blowfish.prototype.dec = function(data, blocks) { + for (var i = 0; i < blocks; i++) { + this.decipher(data.subarray(i*2)); + } +}; + +var BCRYPT_BLOCKS = 8, + BCRYPT_HASHSIZE = 32; + +function bcrypt_hash(sha2pass, sha2salt, out) { + var state = new Blowfish(), + cdata = new Uint32Array(BCRYPT_BLOCKS), i, + ciphertext = new Uint8Array([79,120,121,99,104,114,111,109,97,116,105, + 99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109, + 105,116,101]); //"OxychromaticBlowfishSwatDynamite" + + state.expandstate(sha2salt, 64, sha2pass, 64); + for (i = 0; i < 64; i++) { + state.expand0state(sha2salt, 64); + state.expand0state(sha2pass, 64); + } + + for (i = 0; i < BCRYPT_BLOCKS; i++) + cdata[i] = stream2word(ciphertext, ciphertext.byteLength); + for (i = 0; i < 64; i++) + state.enc(cdata, cdata.byteLength / 8); + + for (i = 0; i < BCRYPT_BLOCKS; i++) { + out[4*i+3] = cdata[i] >>> 24; + out[4*i+2] = cdata[i] >>> 16; + out[4*i+1] = cdata[i] >>> 8; + out[4*i+0] = cdata[i]; + } +}; + +function bcrypt_pbkdf(pass, passlen, salt, saltlen, key, keylen, rounds) { + var sha2pass = new Uint8Array(64), + sha2salt = new Uint8Array(64), + out = new Uint8Array(BCRYPT_HASHSIZE), + tmpout = new Uint8Array(BCRYPT_HASHSIZE), + countsalt = new Uint8Array(saltlen+4), + i, j, amt, stride, dest, count, + origkeylen = keylen; + + if (rounds < 1) + return -1; + if (passlen === 0 || saltlen === 0 || keylen === 0 || + keylen > (out.byteLength * out.byteLength) || saltlen > (1<<20)) + return -1; + + stride = Math.floor((keylen + out.byteLength - 1) / out.byteLength); + amt = Math.floor((keylen + stride - 1) / stride); + + for (i = 0; i < saltlen; i++) + countsalt[i] = salt[i]; + + crypto_hash_sha512(sha2pass, pass, passlen); + + for (count = 1; keylen > 0; count++) { + countsalt[saltlen+0] = count >>> 24; + countsalt[saltlen+1] = count >>> 16; + countsalt[saltlen+2] = count >>> 8; + countsalt[saltlen+3] = count; + + crypto_hash_sha512(sha2salt, countsalt, saltlen + 4); + bcrypt_hash(sha2pass, sha2salt, tmpout); + for (i = out.byteLength; i--;) + out[i] = tmpout[i]; + + for (i = 1; i < rounds; i++) { + crypto_hash_sha512(sha2salt, tmpout, tmpout.byteLength); + bcrypt_hash(sha2pass, sha2salt, tmpout); + for (j = 0; j < out.byteLength; j++) + out[j] ^= tmpout[j]; + } + + amt = Math.min(amt, keylen); + for (i = 0; i < amt; i++) { + dest = i * stride + (count - 1); + if (dest >= origkeylen) + break; + key[dest] = out[i]; + } + keylen -= i; + } + + return 0; +}; + +module.exports = { + BLOCKS: BCRYPT_BLOCKS, + HASHSIZE: BCRYPT_HASHSIZE, + hash: bcrypt_hash, + pbkdf: bcrypt_pbkdf +}; diff --git a/nodered/rootfs/data/node_modules/bcrypt-pbkdf/package.json b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/package.json new file mode 100644 index 0000000..77970f4 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bcrypt-pbkdf/package.json @@ -0,0 +1,44 @@ +{ + "_from": "bcrypt-pbkdf@^1.0.0", + "_id": "bcrypt-pbkdf@1.0.2", + "_inBundle": false, + "_integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "_location": "/bcrypt-pbkdf", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "bcrypt-pbkdf@^1.0.0", + "name": "bcrypt-pbkdf", + "escapedName": "bcrypt-pbkdf", + "rawSpec": "^1.0.0", + "saveSpec": null, + "fetchSpec": "^1.0.0" + }, + "_requiredBy": [ + "/sshpk" + ], + "_resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "_shasum": "a4301d389b6a43f9b67ff3ca11a3f6637e360e9e", + "_spec": "bcrypt-pbkdf@^1.0.0", + "_where": "/data/node_modules/sshpk", + "bugs": { + "url": "https://github.com/joyent/node-bcrypt-pbkdf/issues" + }, + "bundleDependencies": false, + "dependencies": { + "tweetnacl": "^0.14.3" + }, + "deprecated": false, + "description": "Port of the OpenBSD bcrypt_pbkdf function to pure JS", + "devDependencies": {}, + "homepage": "https://github.com/joyent/node-bcrypt-pbkdf#readme", + "license": "BSD-3-Clause", + "main": "index.js", + "name": "bcrypt-pbkdf", + "repository": { + "type": "git", + "url": "git://github.com/joyent/node-bcrypt-pbkdf.git" + }, + "version": "1.0.2" +} diff --git a/nodered/rootfs/data/node_modules/better-assert/.npmignore b/nodered/rootfs/data/node_modules/better-assert/.npmignore new file mode 100644 index 0000000..f1250e5 --- /dev/null +++ b/nodered/rootfs/data/node_modules/better-assert/.npmignore @@ -0,0 +1,4 @@ +support +test +examples +*.sock diff --git a/nodered/rootfs/data/node_modules/better-assert/History.md b/nodered/rootfs/data/node_modules/better-assert/History.md new file mode 100644 index 0000000..cbb579b --- /dev/null +++ b/nodered/rootfs/data/node_modules/better-assert/History.md @@ -0,0 +1,15 @@ + +1.0.0 / 2013-02-03 +================== + + * Stop using the removed magic __stack global getter + +0.1.0 / 2012-10-04 +================== + + * add throwing of AssertionError for test frameworks etc + +0.0.1 / 2010-01-03 +================== + + * Initial release diff --git a/nodered/rootfs/data/node_modules/better-assert/Makefile b/nodered/rootfs/data/node_modules/better-assert/Makefile new file mode 100644 index 0000000..36a3ed7 --- /dev/null +++ b/nodered/rootfs/data/node_modules/better-assert/Makefile @@ -0,0 +1,5 @@ + +test: + @echo "populate me" + +.PHONY: test \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/better-assert/Readme.md b/nodered/rootfs/data/node_modules/better-assert/Readme.md new file mode 100644 index 0000000..d8d3a63 --- /dev/null +++ b/nodered/rootfs/data/node_modules/better-assert/Readme.md @@ -0,0 +1,61 @@ + +# better-assert + + Better c-style assertions using [callsite](https://github.com/visionmedia/callsite) for + self-documenting failure messages. + +## Installation + + $ npm install better-assert + +## Example + + By default assertions are enabled, however the __NO_ASSERT__ environment variable + will deactivate them when truthy. + +```js +var assert = require('better-assert'); + +test(); + +function test() { + var user = { name: 'tobi' }; + assert('tobi' == user.name); + assert('number' == typeof user.age); +} + +AssertionError: 'number' == typeof user.age + at test (/Users/tj/projects/better-assert/example.js:9:3) + at Object. (/Users/tj/projects/better-assert/example.js:4:1) + at Module._compile (module.js:449:26) + at Object.Module._extensions..js (module.js:467:10) + at Module.load (module.js:356:32) + at Function.Module._load (module.js:312:12) + at Module.runMain (module.js:492:10) + at process.startup.processNextTick.process._tickCallback (node.js:244:9) +``` + +## License + +(The MIT License) + +Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca> + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/better-assert/example.js b/nodered/rootfs/data/node_modules/better-assert/example.js new file mode 100644 index 0000000..688c29e --- /dev/null +++ b/nodered/rootfs/data/node_modules/better-assert/example.js @@ -0,0 +1,10 @@ + +var assert = require('./'); + +test(); + +function test() { + var user = { name: 'tobi' }; + assert('tobi' == user.name); + assert('number' == typeof user.age); +} \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/better-assert/index.js b/nodered/rootfs/data/node_modules/better-assert/index.js new file mode 100644 index 0000000..fd1c9b7 --- /dev/null +++ b/nodered/rootfs/data/node_modules/better-assert/index.js @@ -0,0 +1,38 @@ +/** + * Module dependencies. + */ + +var AssertionError = require('assert').AssertionError + , callsite = require('callsite') + , fs = require('fs') + +/** + * Expose `assert`. + */ + +module.exports = process.env.NO_ASSERT + ? function(){} + : assert; + +/** + * Assert the given `expr`. + */ + +function assert(expr) { + if (expr) return; + + var stack = callsite(); + var call = stack[1]; + var file = call.getFileName(); + var lineno = call.getLineNumber(); + var src = fs.readFileSync(file, 'utf8'); + var line = src.split('\n')[lineno-1]; + var src = line.match(/assert\((.*)\)/)[1]; + + var err = new AssertionError({ + message: src, + stackStartFunction: stack[0].getFunction() + }); + + throw err; +} diff --git a/nodered/rootfs/data/node_modules/better-assert/package.json b/nodered/rootfs/data/node_modules/better-assert/package.json new file mode 100644 index 0000000..9146702 --- /dev/null +++ b/nodered/rootfs/data/node_modules/better-assert/package.json @@ -0,0 +1,65 @@ +{ + "_from": "better-assert@~1.0.0", + "_id": "better-assert@1.0.2", + "_inBundle": false, + "_integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=", + "_location": "/better-assert", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "better-assert@~1.0.0", + "name": "better-assert", + "escapedName": "better-assert", + "rawSpec": "~1.0.0", + "saveSpec": null, + "fetchSpec": "~1.0.0" + }, + "_requiredBy": [ + "/parseqs", + "/parseuri" + ], + "_resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", + "_shasum": "40866b9e1b9e0b55b481894311e68faffaebc522", + "_spec": "better-assert@~1.0.0", + "_where": "/data/node_modules/parseqs", + "author": { + "name": "TJ Holowaychuk", + "email": "tj@vision-media.ca" + }, + "bugs": { + "url": "https://github.com/visionmedia/better-assert/issues" + }, + "bundleDependencies": false, + "contributors": [ + { + "name": "TonyHe", + "email": "coolhzb@163.com" + }, + { + "name": "ForbesLindesay" + } + ], + "dependencies": { + "callsite": "1.0.0" + }, + "deprecated": false, + "description": "Better assertions for node, reporting the expr, filename, lineno etc", + "engines": { + "node": "*" + }, + "homepage": "https://github.com/visionmedia/better-assert#readme", + "keywords": [ + "assert", + "stack", + "trace", + "debug" + ], + "main": "index", + "name": "better-assert", + "repository": { + "type": "git", + "url": "git+https://github.com/visionmedia/better-assert.git" + }, + "version": "1.0.2" +} diff --git a/nodered/rootfs/data/node_modules/bignumber.js/CHANGELOG.md b/nodered/rootfs/data/node_modules/bignumber.js/CHANGELOG.md new file mode 100644 index 0000000..4759fdd --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/CHANGELOG.md @@ -0,0 +1,222 @@ +#### 7.2.1 +* 24/05/2018 +* Add `browser` field to *package.json*. + +#### 7.2.0 +* 22/05/2018 +* #166 Correct *.mjs* file. Remove extension from `main` field in *package.json*. + +#### 7.1.0 +* 18/05/2018 +* Add `module` field to *package.json* for *bignumber.mjs*. + +#### 7.0.2 +* 17/05/2018 +* #165 Bugfix: upper-case letters for bases 11-36 in a custom alphabet. +* Add note to *README* regarding creating BigNumbers from Number values. + +#### 7.0.1 +* 26/04/2018 +* #158 Fix global object variable name typo. + +#### 7.0.0 +* 26/04/2018 +* #143 Remove global BigNumber from typings. +* #144 Enable compatibility with `Object.freeze(Object.prototype)`. +* #148 #123 #11 Only throw on a number primitive with more than 15 significant digits if `BigNumber.DEBUG` is `true`. +* Only throw on an invalid BigNumber value if `BigNumber.DEBUG` is `true`. Return BigNumber `NaN` instead. +* #154 `exponentiatedBy`: allow BigNumber exponent. +* #156 Prevent Content Security Policy *unsafe-eval* issue. +* `toFraction`: allow `Infinity` maximum denominator. +* Comment-out some excess tests to reduce test time. +* Amend indentation and other spacing. + +#### 6.0.0 +* 26/01/2018 +* #137 Implement `APLHABET` configuration option. +* Remove `ERRORS` configuration option. +* Remove `toDigits` method; extend `precision` method accordingly. +* Remove s`round` method; extend `decimalPlaces` method accordingly. +* Remove methods: `ceil`, `floor`, and `truncated`. +* Remove method aliases: `add`, `cmp`, `isInt`, `isNeg`, `trunc`, `mul`, `neg` and `sub`. +* Rename methods: `shift` to `shiftedBy`, `another` to `clone`, `toPower` to `exponentiatedBy`, and `equals` to `isEqualTo`. +* Rename methods: add `is` prefix to `greaterThan`, `greaterThanOrEqualTo`, `lessThan` and `lessThanOrEqualTo`. +* Add methods: `multipliedBy`, `isBigNumber`, `isPositive`, `integerValue`, `maximum` and `minimum`. +* Refactor test suite. +* Add *CHANGELOG.md*. +* Rewrite *bignumber.d.ts*. +* Redo API image. + +#### 5.0.0 +* 27/11/2017 +* #81 Don't throw on constructor call without `new`. + +#### 4.1.0 +* 26/09/2017 +* Remove node 0.6 from *.travis.yml*. +* Add *bignumber.mjs*. + +#### 4.0.4 +* 03/09/2017 +* Add missing aliases to *bignumber.d.ts*. + +#### 4.0.3 +* 30/08/2017 +* Add types: *bignumber.d.ts*. + +#### 4.0.2 +* 03/05/2017 +* #120 Workaround Safari/Webkit bug. + +#### 4.0.1 +* 05/04/2017 +* #121 BigNumber.default to BigNumber['default']. + +#### 4.0.0 +* 09/01/2017 +* Replace BigNumber.isBigNumber method with isBigNumber prototype property. + +#### 3.1.2 +* 08/01/2017 +* Minor documentation edit. + +#### 3.1.1 +* 08/01/2017 +* Uncomment `isBigNumber` tests. +* Ignore dot files. + +#### 3.1.0 +* 08/01/2017 +* Add `isBigNumber` method. + +#### 3.0.2 +* 08/01/2017 +* Bugfix: Possible incorrect value of `ERRORS` after a `BigNumber.another` call (due to `parseNumeric` declaration in outer scope). + +#### 3.0.1 +* 23/11/2016 +* Apply fix for old ipads with `%` issue, see #57 and #102. +* Correct error message. + +#### 3.0.0 +* 09/11/2016 +* Remove `require('crypto')` - leave it to the user. +* Add `BigNumber.set` as `BigNumber.config` alias. +* Default `POW_PRECISION` to `0`. + +#### 2.4.0 +* 14/07/2016 +* #97 Add exports to support ES6 imports. + +#### 2.3.0 +* 07/03/2016 +* #86 Add modulus parameter to `toPower`. + +#### 2.2.0 +* 03/03/2016 +* #91 Permit larger JS integers. + +#### 2.1.4 +* 15/12/2015 +* Correct UMD. + +#### 2.1.3 +* 13/12/2015 +* Refactor re global object and crypto availability when bundling. + +#### 2.1.2 +* 10/12/2015 +* Bugfix: `window.crypto` not assigned to `crypto`. + +#### 2.1.1 +* 09/12/2015 +* Prevent code bundler from adding `crypto` shim. + +#### 2.1.0 +* 26/10/2015 +* For `valueOf` and `toJSON`, include the minus sign with negative zero. + +#### 2.0.8 +* 2/10/2015 +* Internal round function bugfix. + +#### 2.0.6 +* 31/03/2015 +* Add bower.json. Tweak division after in-depth review. + +#### 2.0.5 +* 25/03/2015 +* Amend README. Remove bitcoin address. + +#### 2.0.4 +* 25/03/2015 +* Critical bugfix #58: division. + +#### 2.0.3 +* 18/02/2015 +* Amend README. Add source map. + +#### 2.0.2 +* 18/02/2015 +* Correct links. + +#### 2.0.1 +* 18/02/2015 +* Add `max`, `min`, `precision`, `random`, `shiftedBy`, `toDigits` and `truncated` methods. +* Add the short-forms: `add`, `mul`, `sd`, `sub` and `trunc`. +* Add an `another` method to enable multiple independent constructors to be created. +* Add support for the base 2, 8 and 16 prefixes `0b`, `0o` and `0x`. +* Enable a rounding mode to be specified as a second parameter to `toExponential`, `toFixed`, `toFormat` and `toPrecision`. +* Add a `CRYPTO` configuration property so cryptographically-secure pseudo-random number generation can be specified. +* Add a `MODULO_MODE` configuration property to enable the rounding mode used by the `modulo` operation to be specified. +* Add a `POW_PRECISION` configuration property to enable the number of significant digits calculated by the power operation to be limited. +* Improve code quality. +* Improve documentation. + +#### 2.0.0 +* 29/12/2014 +* Add `dividedToIntegerBy`, `isInteger` and `toFormat` methods. +* Remove the following short-forms: `isF`, `isZ`, `toE`, `toF`, `toFr`, `toN`, `toP`, `toS`. +* Store a BigNumber's coefficient in base 1e14, rather than base 10. +* Add fast path for integers to BigNumber constructor. +* Incorporate the library into the online documentation. + +#### 1.5.0 +* 13/11/2014 +* Add `toJSON` and `decimalPlaces` methods. + +#### 1.4.1 +* 08/06/2014 +* Amend README. + +#### 1.4.0 +* 08/05/2014 +* Add `toNumber`. + +#### 1.3.0 +* 08/11/2013 +* Ensure correct rounding of `sqrt` in all, rather than almost all, cases. +* Maximum radix to 64. + +#### 1.2.1 +* 17/10/2013 +* Sign of zero when x < 0 and x + (-x) = 0. + +#### 1.2.0 +* 19/9/2013 +* Throw Error objects for stack. + +#### 1.1.1 +* 22/8/2013 +* Show original value in constructor error message. + +#### 1.1.0 +* 1/8/2013 +* Allow numbers with trailing radix point. + +#### 1.0.1 +* Bugfix: error messages with incorrect method name + +#### 1.0.0 +* 8/11/2012 +* Initial release diff --git a/nodered/rootfs/data/node_modules/bignumber.js/LICENCE b/nodered/rootfs/data/node_modules/bignumber.js/LICENCE new file mode 100644 index 0000000..3a2a4de --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/LICENCE @@ -0,0 +1,23 @@ +The MIT Licence. + +Copyright (c) 2018 Michael Mclaughlin + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/nodered/rootfs/data/node_modules/bignumber.js/README.md b/nodered/rootfs/data/node_modules/bignumber.js/README.md new file mode 100644 index 0000000..0adaa79 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/README.md @@ -0,0 +1,266 @@ +![bignumber.js](https://raw.githubusercontent.com/MikeMcl/bignumber.js/gh-pages/bignumberjs.png) + +A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic. + +[![Build Status](https://travis-ci.org/MikeMcl/bignumber.js.svg)](https://travis-ci.org/MikeMcl/bignumber.js) + +
+ +## Features + + - Integers and decimals + - Simple API but full-featured + - Faster, smaller, and perhaps easier to use than JavaScript versions of Java's BigDecimal + - 8 KB minified and gzipped + - Replicates the `toExponential`, `toFixed`, `toPrecision` and `toString` methods of JavaScript's Number type + - Includes a `toFraction` and a correctly-rounded `squareRoot` method + - Supports cryptographically-secure pseudo-random number generation + - No dependencies + - Wide platform compatibility: uses JavaScript 1.5 (ECMAScript 3) features only + - Comprehensive [documentation](http://mikemcl.github.io/bignumber.js/) and test set + +![API](https://raw.githubusercontent.com/MikeMcl/bignumber.js/gh-pages/API.png) + +If a smaller and simpler library is required see [big.js](https://github.com/MikeMcl/big.js/). +It's less than half the size but only works with decimal numbers and only has half the methods. +It also does not allow `NaN` or `Infinity`, or have the configuration options of this library. + +See also [decimal.js](https://github.com/MikeMcl/decimal.js/), which among other things adds support for non-integer powers, and performs all operations to a specified number of significant digits. + +## Load + +The library is the single JavaScript file *bignumber.js* (or minified, *bignumber.min.js*). + +Browser: + +```html + +``` + +[Node.js](http://nodejs.org): + +```bash +$ npm install --save bignumber.js +``` + +```javascript +var BigNumber = require('bignumber.js'); +``` + +ES6 module (*bignumber.mjs*): + +```javascript +//import BigNumber from 'bignumber.js'; +import {BigNumber} from 'bignumber.js'; +``` + +AMD loader libraries such as [requireJS](http://requirejs.org/): + +```javascript +require(['bignumber'], function(BigNumber) { + // Use BigNumber here in local scope. No global BigNumber. +}); +``` + +## Use + +*In all examples below, `var`, semicolons and `toString` calls are not shown. +If a commented-out value is in quotes it means `toString` has been called on the preceding expression.* + +The library exports a single function: `BigNumber`, the constructor of BigNumber instances. + +It accepts a value of type Number, String or BigNumber, + +```javascript +x = new BigNumber(123.4567) +y = BigNumber('123456.7e-3') +z = new BigNumber(x) +x.isEqualTo(y) && y.isEqualTo(z) && x.isEqualTo(z) // true +``` + +and a base can be specified. + +```javascript +a = new BigNumber(1011, 2) // "11" +b = new BigNumber('zz.9', 36) // "1295.25" +c = x.plus(y) // "1306.25" +``` + +Note that a BigNumber is created from a Number's decimal `toString()` value not from its underlying binary value. If the latter is required, then pass the Number's `toString(2)` value and specify base 2. + +```javascript +new BigNumber(Number.MAX_VALUE.toString(2), 2) +``` + +If the limited precision of Number values is not well understood, **it is recommended to pass String values rather than Number values** to avoid a potential loss of precision. + +```javascript +// Precision loss from using numeric literals with more than 15 significant digits. +new BigNumber(1.0000000000000001); // '1' +new BigNumber(88259496234518.57); // '88259496234518.56' +new BigNumber(99999999999999999999); // '100000000000000000000' + +// Precision loss from using numeric literals outside the range of Number values. +new BigNumber(2e+308); // 'Infinity' +new BigNumber(1e-324); // '0' + +// Precision loss from the unexpected result of arithmetic with Number values. +new BigNumber(0.7 + 0.1); // '0.7999999999999999' +``` + +A BigNumber is immutable in the sense that it is not changed by its methods. + +```javascript +0.3 - 0.1 // 0.19999999999999998 +x = new BigNumber(0.3) +x.minus(0.1) // "0.2" +x // "0.3" +``` + +The methods that return a BigNumber can be chained. + +```javascript +x.dividedBy(y).plus(z).times(9) +x.times('1.23456780123456789e+9').plus(9876.5432321).dividedBy('4444562598.111772').integerValue() +``` + +Some of the longer method names have a shorter alias. + +```javascript +x.squareRoot().dividedBy(y).exponentiatedBy(3).isEqualTo( x.sqrt().div(y).pow(3) ) // true +x.modulo(y).multipliedBy(z).eq( x.mod(y).times(z) ) // true +``` + +As with JavaScript's Number type, there are `toExponential`, `toFixed` and `toPrecision` methods + +```javascript +x = new BigNumber(255.5) +x.toExponential(5) // "2.55500e+2" +x.toFixed(5) // "255.50000" +x.toPrecision(5) // "255.50" +x.toNumber() // 255.5 +``` + + and a base can be specified for `toString`. + + ```javascript + x.toString(16) // "ff.8" + ``` + +There is also a `toFormat` method which may be useful for internationalisation + +```javascript +y = new BigNumber('1234567.898765') +y.toFormat(2) // "1,234,567.90" +``` + +The maximum number of decimal places of the result of an operation involving division (i.e. a division, square root, base conversion or negative power operation) is set using the `config` method of the `BigNumber` constructor. + +The other arithmetic operations always give the exact result. + +```javascript +BigNumber.config({ DECIMAL_PLACES: 10, ROUNDING_MODE: 4 }) + +x = new BigNumber(2); +y = new BigNumber(3); +z = x.dividedBy(y) // "0.6666666667" +z.squareRoot() // "0.8164965809" +z.exponentiatedBy(-3) // "3.3749999995" +z.toString(2) // "0.1010101011" +z.multipliedBy(z) // "0.44444444448888888889" +z.multipliedBy(z).decimalPlaces(10) // "0.4444444445" +``` + +There is a `toFraction` method with an optional *maximum denominator* argument + +```javascript +y = new BigNumber(355) +pi = y.dividedBy(113) // "3.1415929204" +pi.toFraction() // [ "7853982301", "2500000000" ] +pi.toFraction(1000) // [ "355", "113" ] +``` + +and `isNaN` and `isFinite` methods, as `NaN` and `Infinity` are valid `BigNumber` values. + +```javascript +x = new BigNumber(NaN) // "NaN" +y = new BigNumber(Infinity) // "Infinity" +x.isNaN() && !y.isNaN() && !x.isFinite() && !y.isFinite() // true +``` + +The value of a BigNumber is stored in a decimal floating point format in terms of a coefficient, exponent and sign. + +```javascript +x = new BigNumber(-123.456); +x.c // [ 123, 45600000000000 ] coefficient (i.e. significand) +x.e // 2 exponent +x.s // -1 sign +``` + +For advanced usage, multiple BigNumber constructors can be created, each with their own independent configuration which applies to all BigNumber's created from it. + +```javascript +// Set DECIMAL_PLACES for the original BigNumber constructor +BigNumber.config({ DECIMAL_PLACES: 10 }) + +// Create another BigNumber constructor, optionally passing in a configuration object +BN = BigNumber.clone({ DECIMAL_PLACES: 5 }) + +x = new BigNumber(1) +y = new BN(1) + +x.div(3) // '0.3333333333' +y.div(3) // '0.33333' +``` + +For futher information see the [API](http://mikemcl.github.io/bignumber.js/) reference in the *doc* directory. + +## Test + +The *test/modules* directory contains the test scripts for each method. + +The tests can be run with Node.js or a browser. For Node.js use + + $ npm test + +or + + $ node test/test + +To test a single method, use, for example + + $ node test/methods/toFraction + +For the browser, open *test/test.html*. + +## Performance + +See the [README](https://github.com/MikeMcl/bignumber.js/tree/master/perf) in the *perf* directory. + +## Build + +For Node, if [uglify-js](https://github.com/mishoo/UglifyJS2) is installed + + npm install uglify-js -g + +then + + npm run build + +will create *bignumber.min.js*. + +A source map will also be created in the root directory. + +## Feedback + +Open an issue, or email + +Michael + +M8ch88l@gmail.com + +## Licence + +The MIT Licence. + +See [LICENCE](https://github.com/MikeMcl/bignumber.js/blob/master/LICENCE). diff --git a/nodered/rootfs/data/node_modules/bignumber.js/bignumber.d.ts b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.d.ts new file mode 100644 index 0000000..22ef0b1 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.d.ts @@ -0,0 +1,1797 @@ +// Type definitions for bignumber.js >=6.0.0 +// Project: https://github.com/MikeMcl/bignumber.js +// Definitions by: Michael Mclaughlin +// Definitions: https://github.com/MikeMcl/bignumber.js + +// Documentation: http://mikemcl.github.io/bignumber.js/ +// +// Exports: +// +// class BigNumber (default export) +// type BigNumber.Constructor +// type BigNumber.Instance +// type BigNumber.ModuloMode +// type BigNumber.RoundingMOde +// type BigNumber.Value +// interface BigNumber.Config +// interface BigNumber.Format +// +// Example (alternative syntax commented-out): +// +// import {BigNumber} from "bignumber.js" +// //import BigNumber from "bignumber.js" +// +// let rm: BigNumber.RoundingMode = BigNumber.ROUND_UP; +// let f: BigNumber.Format = { decimalSeparator: ',' }; +// let c: BigNumber.Config = { DECIMAL_PLACES: 4, ROUNDING_MODE: rm, FORMAT: f }; +// BigNumber.config(c); +// +// let v: BigNumber.Value = '12345.6789'; +// let b: BigNumber = new BigNumber(v); +// //let b: BigNumber.Instance = new BigNumber(v); +// +// The use of compiler option `--strictNullChecks` is recommended. + +export default BigNumber; + +export namespace BigNumber { + + /** + * See `BigNumber.config` and `BigNumber.clone`. + */ + export interface Config { + + /** + * An integer, 0 to 1e+9. Default value: 20. + * + * The maximum number of decimal places of the result of operations involving division, i.e. + * division, square root and base conversion operations, and exponentiation when the exponent is + * negative. + * + * ```ts + * BigNumber.config({ DECIMAL_PLACES: 5 }) + * BigNumber.set({ DECIMAL_PLACES: 5 }) + * ``` + */ + DECIMAL_PLACES?: number; + + /** + * An integer, 0 to 8. Default value: `BigNumber.ROUND_HALF_UP` (4). + * + * The rounding mode used in operations that involve division (see `DECIMAL_PLACES`) and the + * default rounding mode of the `decimalPlaces`, `precision`, `toExponential`, `toFixed`, + * `toFormat` and `toPrecision` methods. + * + * The modes are available as enumerated properties of the BigNumber constructor. + * + * ```ts + * BigNumber.config({ ROUNDING_MODE: 0 }) + * BigNumber.set({ ROUNDING_MODE: BigNumber.ROUND_UP }) + * ``` + */ + ROUNDING_MODE?: BigNumber.RoundingMode; + + /** + * An integer, 0 to 1e+9, or an array, [-1e+9 to 0, 0 to 1e+9]. + * Default value: `[-7, 20]`. + * + * The exponent value(s) at which `toString` returns exponential notation. + * + * If a single number is assigned, the value is the exponent magnitude. + * + * If an array of two numbers is assigned then the first number is the negative exponent value at + * and beneath which exponential notation is used, and the second number is the positive exponent + * value at and above which exponential notation is used. + * + * For example, to emulate JavaScript numbers in terms of the exponent values at which they begin + * to use exponential notation, use `[-7, 20]`. + * + * ```ts + * BigNumber.config({ EXPONENTIAL_AT: 2 }) + * new BigNumber(12.3) // '12.3' e is only 1 + * new BigNumber(123) // '1.23e+2' + * new BigNumber(0.123) // '0.123' e is only -1 + * new BigNumber(0.0123) // '1.23e-2' + * + * BigNumber.config({ EXPONENTIAL_AT: [-7, 20] }) + * new BigNumber(123456789) // '123456789' e is only 8 + * new BigNumber(0.000000123) // '1.23e-7' + * + * // Almost never return exponential notation: + * BigNumber.config({ EXPONENTIAL_AT: 1e+9 }) + * + * // Always return exponential notation: + * BigNumber.config({ EXPONENTIAL_AT: 0 }) + * ``` + * + * Regardless of the value of `EXPONENTIAL_AT`, the `toFixed` method will always return a value in + * normal notation and the `toExponential` method will always return a value in exponential form. + * Calling `toString` with a base argument, e.g. `toString(10)`, will also always return normal + * notation. + */ + EXPONENTIAL_AT?: number|[number, number]; + + /** + * An integer, magnitude 1 to 1e+9, or an array, [-1e+9 to -1, 1 to 1e+9]. + * Default value: `[-1e+9, 1e+9]`. + * + * The exponent value(s) beyond which overflow to Infinity and underflow to zero occurs. + * + * If a single number is assigned, it is the maximum exponent magnitude: values wth a positive + * exponent of greater magnitude become Infinity and those with a negative exponent of greater + * magnitude become zero. + * + * If an array of two numbers is assigned then the first number is the negative exponent limit and + * the second number is the positive exponent limit. + * + * For example, to emulate JavaScript numbers in terms of the exponent values at which they + * become zero and Infinity, use [-324, 308]. + * + * ```ts + * BigNumber.config({ RANGE: 500 }) + * BigNumber.config().RANGE // [ -500, 500 ] + * new BigNumber('9.999e499') // '9.999e+499' + * new BigNumber('1e500') // 'Infinity' + * new BigNumber('1e-499') // '1e-499' + * new BigNumber('1e-500') // '0' + * + * BigNumber.config({ RANGE: [-3, 4] }) + * new BigNumber(99999) // '99999' e is only 4 + * new BigNumber(100000) // 'Infinity' e is 5 + * new BigNumber(0.001) // '0.01' e is only -3 + * new BigNumber(0.0001) // '0' e is -4 + * ``` + * The largest possible magnitude of a finite BigNumber is 9.999...e+1000000000. + * The smallest possible magnitude of a non-zero BigNumber is 1e-1000000000. + */ + RANGE?: number|[number, number]; + + /** + * A boolean: `true` or `false`. Default value: `false`. + * + * The value that determines whether cryptographically-secure pseudo-random number generation is + * used. If `CRYPTO` is set to true then the random method will generate random digits using + * `crypto.getRandomValues` in browsers that support it, or `crypto.randomBytes` if using a + * version of Node.js that supports it. + * + * If neither function is supported by the host environment then attempting to set `CRYPTO` to + * `true` will fail and an exception will be thrown. + * + * If `CRYPTO` is `false` then the source of randomness used will be `Math.random` (which is + * assumed to generate at least 30 bits of randomness). + * + * See `BigNumber.random`. + * + * ```ts + * BigNumber.config({ CRYPTO: true }) + * BigNumber.config().CRYPTO // true + * BigNumber.random() // 0.54340758610486147524 + * ``` + */ + CRYPTO?: boolean; + + /** + * An integer, 0, 1, 3, 6 or 9. Default value: `BigNumber.ROUND_DOWN` (1). + * + * The modulo mode used when calculating the modulus: `a mod n`. + * The quotient, `q = a / n`, is calculated according to the `ROUNDING_MODE` that corresponds to + * the chosen `MODULO_MODE`. + * The remainder, `r`, is calculated as: `r = a - n * q`. + * + * The modes that are most commonly used for the modulus/remainder operation are shown in the + * following table. Although the other rounding modes can be used, they may not give useful + * results. + * + * Property | Value | Description + * :------------------|:------|:------------------------------------------------------------------ + * `ROUND_UP` | 0 | The remainder is positive if the dividend is negative. + * `ROUND_DOWN` | 1 | The remainder has the same sign as the dividend. + * | | Uses 'truncating division' and matches JavaScript's `%` operator . + * `ROUND_FLOOR` | 3 | The remainder has the same sign as the divisor. + * | | This matches Python's `%` operator. + * `ROUND_HALF_EVEN` | 6 | The IEEE 754 remainder function. + * `EUCLID` | 9 | The remainder is always positive. + * | | Euclidian division: `q = sign(n) * floor(a / abs(n))` + * + * The rounding/modulo modes are available as enumerated properties of the BigNumber constructor. + * + * See `modulo`. + * + * ```ts + * BigNumber.config({ MODULO_MODE: BigNumber.EUCLID }) + * BigNumber.set({ MODULO_MODE: 9 }) // equivalent + * ``` + */ + MODULO_MODE?: BigNumber.ModuloMode; + + /** + * An integer, 0 to 1e+9. Default value: 0. + * + * The maximum precision, i.e. number of significant digits, of the result of the power operation + * - unless a modulus is specified. + * + * If set to 0, the number of significant digits will not be limited. + * + * See `exponentiatedBy`. + * + * ```ts + * BigNumber.config({ POW_PRECISION: 100 }) + * ``` + */ + POW_PRECISION?: number; + + /** + * An object including any number of the properties shown below. + * + * The object configures the format of the string returned by the `toFormat` method. + * The example below shows the properties of the object that are recognised, and + * their default values. + * + * Unlike the other configuration properties, the values of the properties of the `FORMAT` object + * will not be checked for validity - the existing object will simply be replaced by the object + * that is passed in. + * + * See `toFormat`. + * + * ```ts + * BigNumber.config({ + * FORMAT: { + * // the decimal separator + * decimalSeparator: '.', + * // the grouping separator of the integer part + * groupSeparator: ',', + * // the primary grouping size of the integer part + * groupSize: 3, + * // the secondary grouping size of the integer part + * secondaryGroupSize: 0, + * // the grouping separator of the fraction part + * fractionGroupSeparator: ' ', + * // the grouping size of the fraction part + * fractionGroupSize: 0 + * } + * }) + * ``` + */ + FORMAT?: BigNumber.Format; + + /** + * A string representing the alphabet used for base conversion. + * Default value: `'0123456789abcdefghijklmnopqrstuvwxyz'`. + * + * The length of the alphabet corresponds to the maximum value of the base argument that can be + * passed to the BigNumber constructor or `toString`. There is no maximum length, but it must be + * at least 2 characters long, and it must not contain a repeated character, or `'.'` - the + * decimal separator for all values whatever their base. + * + * ```ts + * // duodecimal (base 12) + * BigNumber.config({ ALPHABET: '0123456789TE' }) + * x = new BigNumber('T', 12) + * x.toString() // '10' + * x.toString(12) // 'T' + * ``` + */ + ALPHABET?: string; + } + + export type Constructor = typeof BigNumber; + + /** + * See `FORMAT` and `toFormat`. + */ + export interface Format { + + /** + * The decimal separator. + */ + decimalSeparator?: string; + + /** + * The grouping separator of the integer part. + */ + groupSeparator?: string; + + /** + * The primary grouping size of the integer part. + */ + groupSize?: number; + + /** + * The secondary grouping size of the integer part. + */ + secondaryGroupSize?: number; + + /** + * The grouping separator of the fraction part. + */ + fractionGroupSeparator?: string; + + /** + * The grouping size of the fraction part. + */ + fractionGroupSize?: number; + } + + export type Instance = BigNumber; + export type ModuloMode = 0 | 1 | 3 | 6 | 9; + export type RoundingMode = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; + export type Value = string | number | BigNumber; +} + +export declare class BigNumber { + + /** + * Used internally by the `BigNumber.isBigNumber` method. + */ + private readonly _isBigNumber: true; + + /** + * The coefficient of the value of this BigNumber, an array of base 1e14 integer numbers. + */ + readonly c: number[]; + + /** + * The exponent of the value of this BigNumber, an integer number, -1000000000 to 1000000000. + */ + readonly e: number; + + /** + * The sign of the value of this BigNumber, -1 or 1. + */ + readonly s: number; + + /** + * Returns a new instance of a BigNumber object with value `n`, where `n` is a numeric value in + * the specified `base`, or base 10 if `base` is omitted or is `null` or `undefined`. + * + * ```ts + * x = new BigNumber(123.4567) // '123.4567' + * // 'new' is optional + * y = BigNumber(x) // '123.4567' + * ``` + * + * If `n` is a base 10 value it can be in normal (fixed-point) or exponential notation. + * Values in other bases must be in normal notation. Values in any base can have fraction digits, + * i.e. digits after the decimal point. + * + * ```ts + * new BigNumber(43210) // '43210' + * new BigNumber('4.321e+4') // '43210' + * new BigNumber('-735.0918e-430') // '-7.350918e-428' + * new BigNumber('123412421.234324', 5) // '607236.557696' + * ``` + * + * Signed `0`, signed `Infinity` and `NaN` are supported. + * + * ```ts + * new BigNumber('-Infinity') // '-Infinity' + * new BigNumber(NaN) // 'NaN' + * new BigNumber(-0) // '0' + * new BigNumber('.5') // '0.5' + * new BigNumber('+2') // '2' + * ``` + * + * String values in hexadecimal literal form, e.g. `'0xff'`, are valid, as are string values with + * the octal and binary prefixs `'0o'` and `'0b'`. String values in octal literal form without the + * prefix will be interpreted as decimals, e.g. `'011'` is interpreted as 11, not 9. + * + * ```ts + * new BigNumber(-10110100.1, 2) // '-180.5' + * new BigNumber('-0b10110100.1') // '-180.5' + * new BigNumber('ff.8', 16) // '255.5' + * new BigNumber('0xff.8') // '255.5' + * ``` + * + * If a base is specified, `n` is rounded according to the current `DECIMAL_PLACES` and + * `ROUNDING_MODE` settings. This includes base 10, so don't include a `base` parameter for decimal + * values unless this behaviour is desired. + * + * ```ts + * BigNumber.config({ DECIMAL_PLACES: 5 }) + * new BigNumber(1.23456789) // '1.23456789' + * new BigNumber(1.23456789, 10) // '1.23457' + * ``` + * + * An error is thrown if `base` is invalid. + * + * There is no limit to the number of digits of a value of type string (other than that of + * JavaScript's maximum array size). See `RANGE` to set the maximum and minimum possible exponent + * value of a BigNumber. + * + * ```ts + * new BigNumber('5032485723458348569331745.33434346346912144534543') + * new BigNumber('4.321e10000000') + * ``` + * + * BigNumber `NaN` is returned if `n` is invalid (unless `BigNumber.DEBUG` is `true`, see below). + * + * ```ts + * new BigNumber('.1*') // 'NaN' + * new BigNumber('blurgh') // 'NaN' + * new BigNumber(9, 2) // 'NaN' + * ``` + * + * To aid in debugging, if `BigNumber.DEBUG` is `true` then an error will be thrown on an + * invalid `n`. An error will also be thrown if `n` is of type number with more than 15 + * significant digits, as calling `toString` or `valueOf` on these numbers may not result in the + * intended value. + * + * ```ts + * console.log(823456789123456.3) // 823456789123456.2 + * new BigNumber(823456789123456.3) // '823456789123456.2' + * BigNumber.DEBUG = true + * // 'Error: Number has more than 15 significant digits' + * new BigNumber(823456789123456.3) + * // 'Error: Not a base 2 number' + * new BigNumber(9, 2) + * ``` + * + * @param n A numeric value. + * @param base The base of `n`, integer, 2 to 36 (or `ALPHABET.length`, see `ALPHABET`). + */ + constructor(n: BigNumber.Value, base?: number); + + /** + * Returns a BigNumber whose value is the absolute value, i.e. the magnitude, of the value of this + * BigNumber. + * + * The return value is always exact and unrounded. + * + * ```ts + * x = new BigNumber(-0.8) + * x.absoluteValue() // '0.8' + * ``` + */ + absoluteValue(): BigNumber; + + /** + * Returns a BigNumber whose value is the absolute value, i.e. the magnitude, of the value of this + * BigNumber. + * + * The return value is always exact and unrounded. + * + * ```ts + * x = new BigNumber(-0.8) + * x.abs() // '0.8' + * ``` + */ + abs(): BigNumber; + + /** + * Returns | | + * :-------:|:--------------------------------------------------------------| + * 1 | If the value of this BigNumber is greater than the value of `n` + * -1 | If the value of this BigNumber is less than the value of `n` + * 0 | If this BigNumber and `n` have the same value + * `null` | If the value of either this BigNumber or `n` is `NaN` + * + * ```ts + * + * x = new BigNumber(Infinity) + * y = new BigNumber(5) + * x.comparedTo(y) // 1 + * x.comparedTo(x.minus(1)) // 0 + * y.comparedTo(NaN) // null + * y.comparedTo('110', 2) // -1 + * ``` + * @param n A numeric value. + * @param [base] The base of n. + */ + comparedTo(n: BigNumber.Value, base?: number): number; + + /** + * Returns a BigNumber whose value is the value of this BigNumber rounded by rounding mode + * `roundingMode` to a maximum of `decimalPlaces` decimal places. + * + * If `decimalPlaces` is omitted, or is `null` or `undefined`, the return value is the number of + * decimal places of the value of this BigNumber, or `null` if the value of this BigNumber is + * ±`Infinity` or `NaN`. + * + * If `roundingMode` is omitted, or is `null` or `undefined`, `ROUNDING_MODE` is used. + * + * Throws if `decimalPlaces` or `roundingMode` is invalid. + * + * ```ts + * x = new BigNumber(1234.56) + * x.decimalPlaces() // 2 + * x.decimalPlaces(1) // '1234.6' + * x.decimalPlaces(2) // '1234.56' + * x.decimalPlaces(10) // '1234.56' + * x.decimalPlaces(0, 1) // '1234' + * x.decimalPlaces(0, 6) // '1235' + * x.decimalPlaces(1, 1) // '1234.5' + * x.decimalPlaces(1, BigNumber.ROUND_HALF_EVEN) // '1234.6' + * x // '1234.56' + * y = new BigNumber('9.9e-101') + * y.decimalPlaces() // 102 + * ``` + * + * @param [decimalPlaces] Decimal places, integer, 0 to 1e+9. + * @param [roundingMode] Rounding mode, integer, 0 to 8. + */ + decimalPlaces(): number; + decimalPlaces(decimalPlaces: number, roundingMode?: BigNumber.RoundingMode): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber rounded by rounding mode + * `roundingMode` to a maximum of `decimalPlaces` decimal places. + * + * If `decimalPlaces` is omitted, or is `null` or `undefined`, the return value is the number of + * decimal places of the value of this BigNumber, or `null` if the value of this BigNumber is + * ±`Infinity` or `NaN`. + * + * If `roundingMode` is omitted, or is `null` or `undefined`, `ROUNDING_MODE` is used. + * + * Throws if `decimalPlaces` or `roundingMode` is invalid. + * + * ```ts + * x = new BigNumber(1234.56) + * x.dp() // 2 + * x.dp(1) // '1234.6' + * x.dp(2) // '1234.56' + * x.dp(10) // '1234.56' + * x.dp(0, 1) // '1234' + * x.dp(0, 6) // '1235' + * x.dp(1, 1) // '1234.5' + * x.dp(1, BigNumber.ROUND_HALF_EVEN) // '1234.6' + * x // '1234.56' + * y = new BigNumber('9.9e-101') + * y.dp() // 102 + * ``` + * + * @param [decimalPlaces] Decimal places, integer, 0 to 1e+9. + * @param [roundingMode] Rounding mode, integer, 0 to 8. + */ + dp(): number; + dp(decimalPlaces: number, roundingMode?: BigNumber.RoundingMode): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber divided by `n`, rounded + * according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` settings. + * + * ```ts + * x = new BigNumber(355) + * y = new BigNumber(113) + * x.dividedBy(y) // '3.14159292035398230088' + * x.dividedBy(5) // '71' + * x.dividedBy(47, 16) // '5' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + dividedBy(n: BigNumber.Value, base?: number): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber divided by `n`, rounded + * according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` settings. + * + * ```ts + * x = new BigNumber(355) + * y = new BigNumber(113) + * x.div(y) // '3.14159292035398230088' + * x.div(5) // '71' + * x.div(47, 16) // '5' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + div(n: BigNumber.Value, base?: number): BigNumber; + + /** + * Returns a BigNumber whose value is the integer part of dividing the value of this BigNumber by + * `n`. + * + * ```ts + * x = new BigNumber(5) + * y = new BigNumber(3) + * x.dividedToIntegerBy(y) // '1' + * x.dividedToIntegerBy(0.7) // '7' + * x.dividedToIntegerBy('0.f', 16) // '5' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + dividedToIntegerBy(n: BigNumber.Value, base?: number): BigNumber; + + /** + * Returns a BigNumber whose value is the integer part of dividing the value of this BigNumber by + * `n`. + * + * ```ts + * x = new BigNumber(5) + * y = new BigNumber(3) + * x.idiv(y) // '1' + * x.idiv(0.7) // '7' + * x.idiv('0.f', 16) // '5' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + idiv(n: BigNumber.Value, base?: number): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber exponentiated by `n`, i.e. + * raised to the power `n`, and optionally modulo a modulus `m`. + * + * If `n` is negative the result is rounded according to the current `DECIMAL_PLACES` and + * `ROUNDING_MODE` settings. + * + * As the number of digits of the result of the power operation can grow so large so quickly, + * e.g. 123.456**10000 has over 50000 digits, the number of significant digits calculated is + * limited to the value of the `POW_PRECISION` setting (unless a modulus `m` is specified). + * + * By default `POW_PRECISION` is set to 0. This means that an unlimited number of significant + * digits will be calculated, and that the method's performance will decrease dramatically for + * larger exponents. + * + * If `m` is specified and the value of `m`, `n` and this BigNumber are integers and `n` is + * positive, then a fast modular exponentiation algorithm is used, otherwise the operation will + * be performed as `x.exponentiatedBy(n).modulo(m)` with a `POW_PRECISION` of 0. + * + * Throws if `n` is not an integer. + * + * ```ts + * Math.pow(0.7, 2) // 0.48999999999999994 + * x = new BigNumber(0.7) + * x.exponentiatedBy(2) // '0.49' + * BigNumber(3).exponentiatedBy(-2) // '0.11111111111111111111' + * ``` + * + * @param n The exponent, an integer. + * @param [m] The modulus. + */ + exponentiatedBy(n: number, m?: BigNumber.Value): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber exponentiated by `n`, i.e. + * raised to the power `n`, and optionally modulo a modulus `m`. + * + * If `n` is negative the result is rounded according to the current `DECIMAL_PLACES` and + * `ROUNDING_MODE` settings. + * + * As the number of digits of the result of the power operation can grow so large so quickly, + * e.g. 123.456**10000 has over 50000 digits, the number of significant digits calculated is + * limited to the value of the `POW_PRECISION` setting (unless a modulus `m` is specified). + * + * By default `POW_PRECISION` is set to 0. This means that an unlimited number of significant + * digits will be calculated, and that the method's performance will decrease dramatically for + * larger exponents. + * + * If `m` is specified and the value of `m`, `n` and this BigNumber are integers and `n` is + * positive, then a fast modular exponentiation algorithm is used, otherwise the operation will + * be performed as `x.pow(n).modulo(m)` with a `POW_PRECISION` of 0. + * + * Throws if `n` is not an integer. + * + * ```ts + * Math.pow(0.7, 2) // 0.48999999999999994 + * x = new BigNumber(0.7) + * x.pow(2) // '0.49' + * BigNumber(3).pow(-2) // '0.11111111111111111111' + * ``` + * + * @param n The exponent, an integer. + * @param [m] The modulus. + */ + pow(n: number, m?: BigNumber.Value): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber rounded to an integer using + * rounding mode `rm`. + * + * If `rm` is omitted, or is `null` or `undefined`, `ROUNDING_MODE` is used. + * + * Throws if `rm` is invalid. + * + * ```ts + * x = new BigNumber(123.456) + * x.integerValue() // '123' + * x.integerValue(BigNumber.ROUND_CEIL) // '124' + * y = new BigNumber(-12.7) + * y.integerValue() // '-13' + * x.integerValue(BigNumber.ROUND_DOWN) // '-12' + * ``` + * + * @param {BigNumber.RoundingMode} [rm] The roundng mode, an integer, 0 to 8. + */ + integerValue(rm?: BigNumber.RoundingMode): BigNumber; + + /** + * Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns + * `false`. + * + * As with JavaScript, `NaN` does not equal `NaN`. + * + * ```ts + * 0 === 1e-324 // true + * x = new BigNumber(0) + * x.isEqualTo('1e-324') // false + * BigNumber(-0).isEqualTo(x) // true ( -0 === 0 ) + * BigNumber(255).isEqualTo('ff', 16) // true + * + * y = new BigNumber(NaN) + * y.isEqualTo(NaN) // false + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + isEqualTo(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns + * `false`. + * + * As with JavaScript, `NaN` does not equal `NaN`. + * + * ```ts + * 0 === 1e-324 // true + * x = new BigNumber(0) + * x.eq('1e-324') // false + * BigNumber(-0).eq(x) // true ( -0 === 0 ) + * BigNumber(255).eq('ff', 16) // true + * + * y = new BigNumber(NaN) + * y.eq(NaN) // false + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + eq(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is a finite number, otherwise returns `false`. + * + * The only possible non-finite values of a BigNumber are `NaN`, `Infinity` and `-Infinity`. + * + * ```ts + * x = new BigNumber(1) + * x.isFinite() // true + * y = new BigNumber(Infinity) + * y.isFinite() // false + * ``` + */ + isFinite(): boolean; + + /** + * Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise + * returns `false`. + * + * ```ts + * 0.1 > (0.3 - 0.2) // true + * x = new BigNumber(0.1) + * x.isGreaterThan(BigNumber(0.3).minus(0.2)) // false + * BigNumber(0).isGreaterThan(x) // false + * BigNumber(11, 3).isGreaterThan(11.1, 2) // true + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + isGreaterThan(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise + * returns `false`. + * + * ```ts + * 0.1 > (0.3 - 0 // true + * x = new BigNumber(0.1) + * x.gt(BigNumber(0.3).minus(0.2)) // false + * BigNumber(0).gt(x) // false + * BigNumber(11, 3).gt(11.1, 2) // true + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + gt(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, + * otherwise returns `false`. + * + * ```ts + * (0.3 - 0.2) >= 0.1 // false + * x = new BigNumber(0.3).minus(0.2) + * x.isGreaterThanOrEqualTo(0.1) // true + * BigNumber(1).isGreaterThanOrEqualTo(x) // true + * BigNumber(10, 18).isGreaterThanOrEqualTo('i', 36) // true + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + isGreaterThanOrEqualTo(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, + * otherwise returns `false`. + * + * ```ts + * (0.3 - 0.2) >= 0.1 // false + * x = new BigNumber(0.3).minus(0.2) + * x.gte(0.1) // true + * BigNumber(1).gte(x) // true + * BigNumber(10, 18).gte('i', 36) // true + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + gte(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is an integer, otherwise returns `false`. + * + * ```ts + * x = new BigNumber(1) + * x.isInteger() // true + * y = new BigNumber(123.456) + * y.isInteger() // false + * ``` + */ + isInteger(): boolean; + + /** + * Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns + * `false`. + * + * ```ts + * (0.3 - 0.2) < 0.1 // true + * x = new BigNumber(0.3).minus(0.2) + * x.isLessThan(0.1) // false + * BigNumber(0).isLessThan(x) // true + * BigNumber(11.1, 2).isLessThan(11, 3) // true + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + isLessThan(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns + * `false`. + * + * ```ts + * (0.3 - 0.2) < 0.1 // true + * x = new BigNumber(0.3).minus(0.2) + * x.lt(0.1) // false + * BigNumber(0).lt(x) // true + * BigNumber(11.1, 2).lt(11, 3) // true + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + lt(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, + * otherwise returns `false`. + * + * ```ts + * 0.1 <= (0.3 - 0.2) // false + * x = new BigNumber(0.1) + * x.isLessThanOrEqualTo(BigNumber(0.3).minus(0.2)) // true + * BigNumber(-1).isLessThanOrEqualTo(x) // true + * BigNumber(10, 18).isLessThanOrEqualTo('i', 36) // true + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + isLessThanOrEqualTo(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, + * otherwise returns `false`. + * + * ```ts + * 0.1 <= (0.3 - 0.2) // false + * x = new BigNumber(0.1) + * x.lte(BigNumber(0.3).minus(0.2)) // true + * BigNumber(-1).lte(x) // true + * BigNumber(10, 18).lte('i', 36) // true + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + lte(n: BigNumber.Value, base?: number): boolean; + + /** + * Returns `true` if the value of this BigNumber is `NaN`, otherwise returns `false`. + * + * ```ts + * x = new BigNumber(NaN) + * x.isNaN() // true + * y = new BigNumber('Infinity') + * y.isNaN() // false + * ``` + */ + isNaN(): boolean; + + /** + * Returns `true` if the value of this BigNumber is negative, otherwise returns `false`. + * + * ```ts + * x = new BigNumber(-0) + * x.isNegative() // true + * y = new BigNumber(2) + * y.isNegative() // false + * ``` + */ + isNegative(): boolean; + + /** + * Returns `true` if the value of this BigNumber is positive, otherwise returns `false`. + * + * ```ts + * x = new BigNumber(-0) + * x.isPositive() // false + * y = new BigNumber(2) + * y.isPositive() // true + * ``` + */ + isPositive(): boolean; + + /** + * Returns `true` if the value of this BigNumber is zero or minus zero, otherwise returns `false`. + * + * ```ts + * x = new BigNumber(-0) + * x.isZero() // true + * ``` + */ + isZero(): boolean; + + /** + * Returns a BigNumber whose value is the value of this BigNumber minus `n`. + * + * The return value is always exact and unrounded. + * + * ```ts + * 0.3 - 0.1 // 0.19999999999999998 + * x = new BigNumber(0.3) + * x.minus(0.1) // '0.2' + * x.minus(0.6, 20) // '0' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + minus(n: BigNumber.Value, base?: number): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber modulo `n`, i.e. the integer + * remainder of dividing this BigNumber by `n`. + * + * The value returned, and in particular its sign, is dependent on the value of the `MODULO_MODE` + * setting of this BigNumber constructor. If it is 1 (default value), the result will have the + * same sign as this BigNumber, and it will match that of Javascript's `%` operator (within the + * limits of double precision) and BigDecimal's `remainder` method. + * + * The return value is always exact and unrounded. + * + * See `MODULO_MODE` for a description of the other modulo modes. + * + * ```ts + * 1 % 0.9 // 0.09999999999999998 + * x = new BigNumber(1) + * x.modulo(0.9) // '0.1' + * y = new BigNumber(33) + * y.modulo('a', 33) // '3' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + modulo(n: BigNumber.Value, base?: number): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber modulo `n`, i.e. the integer + * remainder of dividing this BigNumber by `n`. + * + * The value returned, and in particular its sign, is dependent on the value of the `MODULO_MODE` + * setting of this BigNumber constructor. If it is 1 (default value), the result will have the + * same sign as this BigNumber, and it will match that of Javascript's `%` operator (within the + * limits of double precision) and BigDecimal's `remainder` method. + * + * The return value is always exact and unrounded. + * + * See `MODULO_MODE` for a description of the other modulo modes. + * + * ```ts + * 1 % 0.9 // 0.09999999999999998 + * x = new BigNumber(1) + * x.mod(0.9) // '0.1' + * y = new BigNumber(33) + * y.mod('a', 33) // '3' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + mod(n: BigNumber.Value, base?: number): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber multiplied by `n`. + * + * The return value is always exact and unrounded. + * + * ```ts + * 0.6 * 3 // 1.7999999999999998 + * x = new BigNumber(0.6) + * y = x.multipliedBy(3) // '1.8' + * BigNumber('7e+500').multipliedBy(y) // '1.26e+501' + * x.multipliedBy('-a', 16) // '-6' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + multipliedBy(n: BigNumber.Value, base?: number) : BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber multiplied by `n`. + * + * The return value is always exact and unrounded. + * + * ```ts + * 0.6 * 3 // 1.7999999999999998 + * x = new BigNumber(0.6) + * y = x.times(3) // '1.8' + * BigNumber('7e+500').times(y) // '1.26e+501' + * x.times('-a', 16) // '-6' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + times(n: BigNumber.Value, base?: number): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber negated, i.e. multiplied by -1. + * + * ```ts + * x = new BigNumber(1.8) + * x.negated() // '-1.8' + * y = new BigNumber(-1.3) + * y.negated() // '1.3' + * ``` + */ + negated(): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber plus `n`. + * + * The return value is always exact and unrounded. + * + * ```ts + * 0.1 + 0.2 // 0.30000000000000004 + * x = new BigNumber(0.1) + * y = x.plus(0.2) // '0.3' + * BigNumber(0.7).plus(x).plus(y) // '1' + * x.plus('0.1', 8) // '0.225' + * ``` + * + * @param n A numeric value. + * @param [base] The base of n. + */ + plus(n: BigNumber.Value, base?: number): BigNumber; + + /** + * Returns the number of significant digits of the value of this BigNumber, or `null` if the value + * of this BigNumber is ±`Infinity` or `NaN`. + * + * If `includeZeros` is true then any trailing zeros of the integer part of the value of this + * BigNumber are counted as significant digits, otherwise they are not. + * + * Throws if `includeZeros` is invalid. + * + * ```ts + * x = new BigNumber(9876.54321) + * x.precision() // 9 + * y = new BigNumber(987000) + * y.precision(false) // 3 + * y.precision(true) // 6 + * ``` + * + * @param [includeZeros] Whether to include integer trailing zeros in the significant digit count. + */ + precision(includeZeros?: boolean): number; + + /** + * Returns a BigNumber whose value is the value of this BigNumber rounded to a precision of + * `significantDigits` significant digits using rounding mode `roundingMode`. + * + * If `roundingMode` is omitted or is `null` or `undefined`, `ROUNDING_MODE` will be used. + * + * Throws if `significantDigits` or `roundingMode` is invalid. + * + * ```ts + * x = new BigNumber(9876.54321) + * x.precision(6) // '9876.54' + * x.precision(6, BigNumber.ROUND_UP) // '9876.55' + * x.precision(2) // '9900' + * x.precision(2, 1) // '9800' + * x // '9876.54321' + * ``` + * + * @param significantDigits Significant digits, integer, 1 to 1e+9. + * @param [roundingMode] Rounding mode, integer, 0 to 8. + */ + precision(significantDigits: number, roundingMode?: BigNumber.RoundingMode): BigNumber; + + /** + * Returns the number of significant digits of the value of this BigNumber, + * or `null` if the value of this BigNumber is ±`Infinity` or `NaN`. + * + * If `includeZeros` is true then any trailing zeros of the integer part of + * the value of this BigNumber are counted as significant digits, otherwise + * they are not. + * + * Throws if `includeZeros` is invalid. + * + * ```ts + * x = new BigNumber(9876.54321) + * x.sd() // 9 + * y = new BigNumber(987000) + * y.sd(false) // 3 + * y.sd(true) // 6 + * ``` + * + * @param [includeZeros] Whether to include integer trailing zeros in the significant digit count. + */ + sd(includeZeros?: boolean): number; + + /* + * Returns a BigNumber whose value is the value of this BigNumber rounded to a precision of + * `significantDigits` significant digits using rounding mode `roundingMode`. + * + * If `roundingMode` is omitted or is `null` or `undefined`, `ROUNDING_MODE` will be used. + * + * Throws if `significantDigits` or `roundingMode` is invalid. + * + * ```ts + * x = new BigNumber(9876.54321) + * x.sd(6) // '9876.54' + * x.sd(6, BigNumber.ROUND_UP) // '9876.55' + * x.sd(2) // '9900' + * x.sd(2, 1) // '9800' + * x // '9876.54321' + * ``` + * + * @param significantDigits Significant digits, integer, 1 to 1e+9. + * @param [roundingMode] Rounding mode, integer, 0 to 8. + */ + sd(significantDigits: number, roundingMode?: BigNumber.RoundingMode): BigNumber; + + /** + * Returns a BigNumber whose value is the value of this BigNumber shifted by `n` places. + * + * The shift is of the decimal point, i.e. of powers of ten, and is to the left if `n` is negative + * or to the right if `n` is positive. + * + * The return value is always exact and unrounded. + * + * Throws if `n` is invalid. + * + * ```ts + * x = new BigNumber(1.23) + * x.shiftedBy(3) // '1230' + * x.shiftedBy(-3) // '0.00123' + * ``` + * + * @param n The shift value, integer, -9007199254740991 to 9007199254740991. + */ + shiftedBy(n: number): BigNumber; + + /** + * Returns a BigNumber whose value is the square root of the value of this BigNumber, rounded + * according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` settings. + * + * The return value will be correctly rounded, i.e. rounded as if the result was first calculated + * to an infinite number of correct digits before rounding. + * + * ```ts + * x = new BigNumber(16) + * x.squareRoot() // '4' + * y = new BigNumber(3) + * y.squareRoot() // '1.73205080756887729353' + * ``` + */ + squareRoot(): BigNumber; + + /** + * Returns a BigNumber whose value is the square root of the value of this BigNumber, rounded + * according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` settings. + * + * The return value will be correctly rounded, i.e. rounded as if the result was first calculated + * to an infinite number of correct digits before rounding. + * + * ```ts + * x = new BigNumber(16) + * x.sqrt() // '4' + * y = new BigNumber(3) + * y.sqrt() // '1.73205080756887729353' + * ``` + */ + sqrt(): BigNumber; + + /** + * Returns a string representing the value of this BigNumber in exponential notation rounded using + * rounding mode `roundingMode` to `decimalPlaces` decimal places, i.e with one digit before the + * decimal point and `decimalPlaces` digits after it. + * + * If the value of this BigNumber in exponential notation has fewer than `decimalPlaces` fraction + * digits, the return value will be appended with zeros accordingly. + * + * If `decimalPlaces` is omitted, or is `null` or `undefined`, the number of digits after the + * decimal point defaults to the minimum number of digits necessary to represent the value + * exactly. + * + * If `roundingMode` is omitted or is `null` or `undefined`, `ROUNDING_MODE` is used. + * + * Throws if `decimalPlaces` or `roundingMode` is invalid. + * + * ```ts + * x = 45.6 + * y = new BigNumber(x) + * x.toExponential() // '4.56e+1' + * y.toExponential() // '4.56e+1' + * x.toExponential(0) // '5e+1' + * y.toExponential(0) // '5e+1' + * x.toExponential(1) // '4.6e+1' + * y.toExponential(1) // '4.6e+1' + * y.toExponential(1, 1) // '4.5e+1' (ROUND_DOWN) + * x.toExponential(3) // '4.560e+1' + * y.toExponential(3) // '4.560e+1' + * ``` + * + * @param [decimalPlaces] Decimal places, integer, 0 to 1e+9. + * @param [roundingMode] Rounding mode, integer, 0 to 8. + */ + toExponential(decimalPlaces?: number, roundingMode?: BigNumber.RoundingMode): string; + + /** + * Returns a string representing the value of this BigNumber in normal (fixed-point) notation + * rounded to `decimalPlaces` decimal places using rounding mode `roundingMode`. + * + * If the value of this BigNumber in normal notation has fewer than `decimalPlaces` fraction + * digits, the return value will be appended with zeros accordingly. + * + * Unlike `Number.prototype.toFixed`, which returns exponential notation if a number is greater or + * equal to 10**21, this method will always return normal notation. + * + * If `decimalPlaces` is omitted or is `null` or `undefined`, the return value will be unrounded + * and in normal notation. This is also unlike `Number.prototype.toFixed`, which returns the value + * to zero decimal places. It is useful when normal notation is required and the current + * `EXPONENTIAL_AT` setting causes `toString` to return exponential notation. + * + * If `roundingMode` is omitted or is `null` or `undefined`, `ROUNDING_MODE` is used. + * + * Throws if `decimalPlaces` or `roundingMode` is invalid. + * + * ```ts + * x = 3.456 + * y = new BigNumber(x) + * x.toFixed() // '3' + * y.toFixed() // '3.456' + * y.toFixed(0) // '3' + * x.toFixed(2) // '3.46' + * y.toFixed(2) // '3.46' + * y.toFixed(2, 1) // '3.45' (ROUND_DOWN) + * x.toFixed(5) // '3.45600' + * y.toFixed(5) // '3.45600' + * ``` + * + * @param [decimalPlaces] Decimal places, integer, 0 to 1e+9. + * @param [roundingMode] Rounding mode, integer, 0 to 8. + */ + toFixed(decimalPlaces?: number, roundingMode?: BigNumber.RoundingMode): string; + + /** + * Returns a string representing the value of this BigNumber in normal (fixed-point) notation + * rounded to `decimalPlaces` decimal places using rounding mode `roundingMode`, and formatted + * according to the properties of the `FORMAT` object. + * + * The properties of the `FORMAT` object are shown in the examples below. + * + * If `decimalPlaces` is omitted or is `null` or `undefined`, then the return value is not + * rounded to a fixed number of decimal places. + * + * If `roundingMode` is omitted or is `null` or `undefined`, `ROUNDING_MODE` is used. + * + * Throws if `decimalPlaces` or `roundingMode` is invalid. + * + * ```ts + * format = { + * decimalSeparator: '.', + * groupSeparator: ',', + * groupSize: 3, + * secondaryGroupSize: 0, + * fractionGroupSeparator: ' ', + * fractionGroupSize: 0 + * } + * BigNumber.config({ FORMAT: format }) + * + * x = new BigNumber('123456789.123456789') + * x.toFormat() // '123,456,789.123456789' + * x.toFormat(1) // '123,456,789.1' + * + * format.groupSeparator = ' ' + * format.fractionGroupSize = 5 + * x.toFormat() // '123 456 789.12345 6789' + * + * BigNumber.config({ + * FORMAT: { + * decimalSeparator: ',', + * groupSeparator: '.', + * groupSize: 3, + * secondaryGroupSize: 2 + * } + * }) + * + * x.toFormat(6) // '12.34.56.789,123' + * ``` + * + * @param [decimalPlaces] Decimal places, integer, 0 to 1e+9. + * @param [roundingMode] Rounding mode, integer, 0 to 8. + */ + toFormat(decimalPlaces?: number, roundingMode?: BigNumber.RoundingMode): string; + + /** + * Returns a string array representing the value of this BigNumber as a simple fraction with an + * integer numerator and an integer denominator. The denominator will be a positive non-zero value + * less than or equal to `max_denominator`. + * + * If a maximum denominator, `max_denominator`, is not specified, or is `null` or `undefined`, the + * denominator will be the lowest value necessary to represent the number exactly. + * + * Throws if `max_denominator` is invalid. + * + * ```ts + * x = new BigNumber(1.75) + * x.toFraction() // '7, 4' + * + * pi = new BigNumber('3.14159265358') + * pi.toFraction() // '157079632679,50000000000' + * pi.toFraction(100000) // '312689, 99532' + * pi.toFraction(10000) // '355, 113' + * pi.toFraction(100) // '311, 99' + * pi.toFraction(10) // '22, 7' + * pi.toFraction(1) // '3, 1' + * ``` + * + * @param [max_denominator] The maximum denominator, integer > 0, or Infinity. + */ + toFraction(max_denominator?: BigNumber.Value): BigNumber[]; + + /** + * As `valueOf`. + */ + toJSON(): string; + + /** + * Returns the value of this BigNumber as a JavaScript primitive number. + * + * Using the unary plus operator gives the same result. + * + * ```ts + * x = new BigNumber(456.789) + * x.toNumber() // 456.789 + * +x // 456.789 + * + * y = new BigNumber('45987349857634085409857349856430985') + * y.toNumber() // 4.598734985763409e+34 + * + * z = new BigNumber(-0) + * 1 / z.toNumber() // -Infinity + * 1 / +z // -Infinity + * ``` + */ + toNumber(): number; + + /** + * Returns a string representing the value of this BigNumber rounded to `significantDigits` + * significant digits using rounding mode `roundingMode`. + * + * If `significantDigits` is less than the number of digits necessary to represent the integer + * part of the value in normal (fixed-point) notation, then exponential notation is used. + * + * If `significantDigits` is omitted, or is `null` or `undefined`, then the return value is the + * same as `n.toString()`. + * + * If `roundingMode` is omitted or is `null` or `undefined`, `ROUNDING_MODE` is used. + * + * Throws if `significantDigits` or `roundingMode` is invalid. + * + * ```ts + * x = 45.6 + * y = new BigNumber(x) + * x.toPrecision() // '45.6' + * y.toPrecision() // '45.6' + * x.toPrecision(1) // '5e+1' + * y.toPrecision(1) // '5e+1' + * y.toPrecision(2, 0) // '4.6e+1' (ROUND_UP) + * y.toPrecision(2, 1) // '4.5e+1' (ROUND_DOWN) + * x.toPrecision(5) // '45.600' + * y.toPrecision(5) // '45.600' + * ``` + * + * @param [significantDigits] Significant digits, integer, 1 to 1e+9. + * @param [roundingMode] Rounding mode, integer 0 to 8. + */ + toPrecision(significantDigits?: number, roundingMode?: BigNumber.RoundingMode): string; + + /** + * Returns a string representing the value of this BigNumber in base `base`, or base 10 if `base` + * is omitted or is `null` or `undefined`. + * + * For bases above 10, and using the default base conversion alphabet (see `ALPHABET`), values + * from 10 to 35 are represented by a-z (the same as `Number.prototype.toString`). + * + * If a base is specified the value is rounded according to the current `DECIMAL_PLACES` and + * `ROUNDING_MODE` settings, otherwise it is not. + * + * If a base is not specified, and this BigNumber has a positive exponent that is equal to or + * greater than the positive component of the current `EXPONENTIAL_AT` setting, or a negative + * exponent equal to or less than the negative component of the setting, then exponential notation + * is returned. + * + * If `base` is `null` or `undefined` it is ignored. + * + * Throws if `base` is invalid. + * + * ```ts + * x = new BigNumber(750000) + * x.toString() // '750000' + * BigNumber.config({ EXPONENTIAL_AT: 5 }) + * x.toString() // '7.5e+5' + * + * y = new BigNumber(362.875) + * y.toString(2) // '101101010.111' + * y.toString(9) // '442.77777777777777777778' + * y.toString(32) // 'ba.s' + * + * BigNumber.config({ DECIMAL_PLACES: 4 }); + * z = new BigNumber('1.23456789') + * z.toString() // '1.23456789' + * z.toString(10) // '1.2346' + * ``` + * + * @param [base] The base, integer, 2 to 36 (or `ALPHABET.length`, see `ALPHABET`). + */ + toString(base?: number): string; + + /** + * As `toString`, but does not accept a base argument and includes the minus sign for negative + * zero. + * + * ``ts + * x = new BigNumber('-0') + * x.toString() // '0' + * x.valueOf() // '-0' + * y = new BigNumber('1.777e+457') + * y.valueOf() // '1.777e+457' + * ``` + */ + valueOf(): string; + + /** + * Returns a new independent BigNumber constructor with configuration as described by `object`, or + * with the default configuration if object is `null` or `undefined`. + * + * Throws if `object` is not an object. + * + * ```ts + * BigNumber.config({ DECIMAL_PLACES: 5 }) + * BN = BigNumber.clone({ DECIMAL_PLACES: 9 }) + * + * x = new BigNumber(1) + * y = new BN(1) + * + * x.div(3) // 0.33333 + * y.div(3) // 0.333333333 + * + * // BN = BigNumber.clone({ DECIMAL_PLACES: 9 }) is equivalent to: + * BN = BigNumber.clone() + * BN.config({ DECIMAL_PLACES: 9 }) + * ``` + * + * @param [object] The configuration object. + */ + static clone(object?: BigNumber.Config): BigNumber.Constructor; + + /** + * Configures the settings that apply to this BigNumber constructor. + * + * The configuration object, `object`, contains any number of the properties shown in the example + * below. + * + * Returns an object with the above properties and their current values. + * + * Throws if `object` is not an object, or if an invalid value is assigned to one or more of the + * properties. + * + * ```ts + * BigNumber.config({ + * DECIMAL_PLACES: 40, + * ROUNDING_MODE: BigNumber.ROUND_HALF_CEIL, + * EXPONENTIAL_AT: [-10, 20], + * RANGE: [-500, 500], + * CRYPTO: true, + * MODULO_MODE: BigNumber.ROUND_FLOOR, + * POW_PRECISION: 80, + * FORMAT: { + * groupSize: 3, + * groupSeparator: ' ', + * decimalSeparator: ',' + * }, + * ALPHABET: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_' + * }); + * + * BigNumber.config().DECIMAL_PLACES // 40 + * ``` + * + * @param object The configuration object. + */ + static config(object: BigNumber.Config): BigNumber.Config; + + /** + * Returns `true` if `value` is a BigNumber instance, otherwise returns `false`. + * + * ```ts + * x = 42 + * y = new BigNumber(x) + * + * BigNumber.isBigNumber(x) // false + * y instanceof BigNumber // true + * BigNumber.isBigNumber(y) // true + * + * BN = BigNumber.clone(); + * z = new BN(x) + * z instanceof BigNumber // false + * BigNumber.isBigNumber(z) // true + * ``` + * + * @param value The value to test. + */ + static isBigNumber(value: any): boolean; + + /** + * + * Returns a BigNumber whose value is the maximum of the arguments. + * + * Accepts either an argument list or an array of values. + * + * The return value is always exact and unrounded. + * + * ```ts + * x = new BigNumber('3257869345.0378653') + * BigNumber.maximum(4e9, x, '123456789.9') // '4000000000' + * + * arr = [12, '13', new BigNumber(14)] + * BigNumber.maximum(arr) // '14' + * ``` + * + * @param n A numeric value. + */ + static maximum(...n: BigNumber.Value[]): BigNumber; + + /** + * Returns a BigNumber whose value is the maximum of the arguments. + * + * Accepts either an argument list or an array of values. + * + * The return value is always exact and unrounded. + * + * ```ts + * x = new BigNumber('3257869345.0378653') + * BigNumber.max(4e9, x, '123456789.9') // '4000000000' + * + * arr = [12, '13', new BigNumber(14)] + * BigNumber.max(arr) // '14' + * ``` + * + * @param n A numeric value. + */ + static max(...n: BigNumber.Value[]): BigNumber; + + /** + * Returns a BigNumber whose value is the minimum of the arguments. + * + * Accepts either an argument list or an array of values. + * + * The return value is always exact and unrounded. + * + * ```ts + * x = new BigNumber('3257869345.0378653') + * BigNumber.minimum(4e9, x, '123456789.9') // '123456789.9' + * + * arr = [2, new BigNumber(-14), '-15.9999', -12] + * BigNumber.minimum(arr) // '-15.9999' + * ``` + * + * @param n A numeric value. + */ + static minimum(...n: BigNumber.Value[]): BigNumber; + + /** + * Returns a BigNumber whose value is the minimum of the arguments. + * + * Accepts either an argument list or an array of values. + * + * The return value is always exact and unrounded. + * + * ```ts + * x = new BigNumber('3257869345.0378653') + * BigNumber.min(4e9, x, '123456789.9') // '123456789.9' + * + * arr = [2, new BigNumber(-14), '-15.9999', -12] + * BigNumber.min(arr) // '-15.9999' + * ``` + * + * @param n A numeric value. + */ + static min(...n: BigNumber.Value[]): BigNumber; + + /** + * Returns a new BigNumber with a pseudo-random value equal to or greater than 0 and less than 1. + * + * The return value will have `decimalPlaces` decimal places, or less if trailing zeros are + * produced. If `decimalPlaces` is omitted, the current `DECIMAL_PLACES` setting will be used. + * + * Depending on the value of this BigNumber constructor's `CRYPTO` setting and the support for the + * `crypto` object in the host environment, the random digits of the return value are generated by + * either `Math.random` (fastest), `crypto.getRandomValues` (Web Cryptography API in recent + * browsers) or `crypto.randomBytes` (Node.js). + * + * If `CRYPTO` is true, i.e. one of the `crypto` methods is to be used, the value of a returned + * BigNumber should be cryptographically secure and statistically indistinguishable from a random + * value. + * + * Throws if `decimalPlaces` is invalid. + * + * ```ts + * BigNumber.config({ DECIMAL_PLACES: 10 }) + * BigNumber.random() // '0.4117936847' + * BigNumber.random(20) // '0.78193327636914089009' + * ``` + * + * @param [decimalPlaces] Decimal places, integer, 0 to 1e+9. + */ + static random(decimalPlaces?: number): BigNumber; + + /** + * Configures the settings that apply to this BigNumber constructor. + * + * The configuration object, `object`, contains any number of the properties shown in the example + * below. + * + * Returns an object with the above properties and their current values. + * + * Throws if `object` is not an object, or if an invalid value is assigned to one or more of the + * properties. + * + * ```ts + * BigNumber.set({ + * DECIMAL_PLACES: 40, + * ROUNDING_MODE: BigNumber.ROUND_HALF_CEIL, + * EXPONENTIAL_AT: [-10, 20], + * RANGE: [-500, 500], + * CRYPTO: true, + * MODULO_MODE: BigNumber.ROUND_FLOOR, + * POW_PRECISION: 80, + * FORMAT: { + * groupSize: 3, + * groupSeparator: ' ', + * decimalSeparator: ',' + * }, + * ALPHABET: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_' + * }); + * + * BigNumber.set().DECIMAL_PLACES // 40 + * ``` + * + * @param object The configuration object. + */ + static set(object: BigNumber.Config): BigNumber.Config; + + /** + * Helps ES6 import. + */ + private static readonly default?: BigNumber.Constructor; + + /** + * Helps ES6 import. + */ + private static readonly BigNumber?: BigNumber.Constructor; + + /** + * Rounds away from zero. + */ + static readonly ROUND_UP: 0; + + /** + * Rounds towards zero. + */ + static readonly ROUND_DOWN: 1; + + /** + * Rounds towards Infinity. + */ + static readonly ROUND_CEIL: 2; + + /** + * Rounds towards -Infinity. + */ + static readonly ROUND_FLOOR: 3; + + /** + * Rounds towards nearest neighbour. If equidistant, rounds away from zero . + */ + static readonly ROUND_HALF_UP: 4; + + /** + * Rounds towards nearest neighbour. If equidistant, rounds towards zero. + */ + static readonly ROUND_HALF_DOWN: 5; + + /** + * Rounds towards nearest neighbour. If equidistant, rounds towards even neighbour. + */ + static readonly ROUND_HALF_EVEN: 6; + + /** + * Rounds towards nearest neighbour. If equidistant, rounds towards Infinity. + */ + static readonly ROUND_HALF_CEIL: 7; + + /** + * Rounds towards nearest neighbour. If equidistant, rounds towards -Infinity. + */ + static readonly ROUND_HALF_FLOOR: 8; + + /** + * See `MODULO_MODE`. + */ + static readonly EUCLID: 9; + + /** + * To aid in debugging, if a `BigNumber.DEBUG` property is `true` then an error will be thrown + * on an invalid `BigNumber.Value`. + * + * ```ts + * // No error, and BigNumber NaN is returned. + * new BigNumber('blurgh') // 'NaN' + * new BigNumber(9, 2) // 'NaN' + * BigNumber.DEBUG = true + * new BigNumber('blurgh') // '[BigNumber Error] Not a number' + * new BigNumber(9, 2) // '[BigNumber Error] Not a base 2 number' + * ``` + * + * An error will also be thrown if a `BigNumber.Value` is of type number with more than 15 + * significant digits, as calling `toString` or `valueOf` on such numbers may not result + * in the intended value. + * + * ```ts + * console.log(823456789123456.3) // 823456789123456.2 + * // No error, and the returned BigNumber does not have the same value as the number literal. + * new BigNumber(823456789123456.3) // '823456789123456.2' + * BigNumber.DEBUG = true + * new BigNumber(823456789123456.3) + * // '[BigNumber Error] Number primitive has more than 15 significant digits' + * ``` + * + */ + static DEBUG?: boolean; +} diff --git a/nodered/rootfs/data/node_modules/bignumber.js/bignumber.js b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.js new file mode 100644 index 0000000..78bb97f --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.js @@ -0,0 +1,2814 @@ +;(function (globalObject) { + 'use strict'; + +/* + * bignumber.js v7.2.1 + * A JavaScript library for arbitrary-precision arithmetic. + * https://github.com/MikeMcl/bignumber.js + * Copyright (c) 2018 Michael Mclaughlin + * MIT Licensed. + * + * BigNumber.prototype methods | BigNumber methods + * | + * absoluteValue abs | clone + * comparedTo | config set + * decimalPlaces dp | DECIMAL_PLACES + * dividedBy div | ROUNDING_MODE + * dividedToIntegerBy idiv | EXPONENTIAL_AT + * exponentiatedBy pow | RANGE + * integerValue | CRYPTO + * isEqualTo eq | MODULO_MODE + * isFinite | POW_PRECISION + * isGreaterThan gt | FORMAT + * isGreaterThanOrEqualTo gte | ALPHABET + * isInteger | isBigNumber + * isLessThan lt | maximum max + * isLessThanOrEqualTo lte | minimum min + * isNaN | random + * isNegative | + * isPositive | + * isZero | + * minus | + * modulo mod | + * multipliedBy times | + * negated | + * plus | + * precision sd | + * shiftedBy | + * squareRoot sqrt | + * toExponential | + * toFixed | + * toFormat | + * toFraction | + * toJSON | + * toNumber | + * toPrecision | + * toString | + * valueOf | + * + */ + + + var BigNumber, + isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, + + mathceil = Math.ceil, + mathfloor = Math.floor, + + bignumberError = '[BigNumber Error] ', + tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ', + + BASE = 1e14, + LOG_BASE = 14, + MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1 + // MAX_INT32 = 0x7fffffff, // 2^31 - 1 + POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], + SQRT_BASE = 1e7, + + // EDITABLE + // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and + // the arguments to toExponential, toFixed, toFormat, and toPrecision. + MAX = 1E9; // 0 to MAX_INT32 + + + /* + * Create and return a BigNumber constructor. + */ + function clone(configObject) { + var div, convertBase, parseNumeric, + P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null }, + ONE = new BigNumber(1), + + + //----------------------------- EDITABLE CONFIG DEFAULTS ------------------------------- + + + // The default values below must be integers within the inclusive ranges stated. + // The values can also be changed at run-time using BigNumber.set. + + // The maximum number of decimal places for operations involving division. + DECIMAL_PLACES = 20, // 0 to MAX + + // The rounding mode used when rounding to the above decimal places, and when using + // toExponential, toFixed, toFormat and toPrecision, and round (default value). + // UP 0 Away from zero. + // DOWN 1 Towards zero. + // CEIL 2 Towards +Infinity. + // FLOOR 3 Towards -Infinity. + // HALF_UP 4 Towards nearest neighbour. If equidistant, up. + // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. + // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. + // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. + // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. + ROUNDING_MODE = 4, // 0 to 8 + + // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS] + + // The exponent value at and beneath which toString returns exponential notation. + // Number type: -7 + TO_EXP_NEG = -7, // 0 to -MAX + + // The exponent value at and above which toString returns exponential notation. + // Number type: 21 + TO_EXP_POS = 21, // 0 to MAX + + // RANGE : [MIN_EXP, MAX_EXP] + + // The minimum exponent value, beneath which underflow to zero occurs. + // Number type: -324 (5e-324) + MIN_EXP = -1e7, // -1 to -MAX + + // The maximum exponent value, above which overflow to Infinity occurs. + // Number type: 308 (1.7976931348623157e+308) + // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow. + MAX_EXP = 1e7, // 1 to MAX + + // Whether to use cryptographically-secure random number generation, if available. + CRYPTO = false, // true or false + + // The modulo mode used when calculating the modulus: a mod n. + // The quotient (q = a / n) is calculated according to the corresponding rounding mode. + // The remainder (r) is calculated as: r = a - n * q. + // + // UP 0 The remainder is positive if the dividend is negative, else is negative. + // DOWN 1 The remainder has the same sign as the dividend. + // This modulo mode is commonly known as 'truncated division' and is + // equivalent to (a % n) in JavaScript. + // FLOOR 3 The remainder has the same sign as the divisor (Python %). + // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function. + // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). + // The remainder is always positive. + // + // The truncated division, floored division, Euclidian division and IEEE 754 remainder + // modes are commonly used for the modulus operation. + // Although the other rounding modes can also be used, they may not give useful results. + MODULO_MODE = 1, // 0 to 9 + + // The maximum number of significant digits of the result of the exponentiatedBy operation. + // If POW_PRECISION is 0, there will be unlimited significant digits. + POW_PRECISION = 0, // 0 to MAX + + // The format specification used by the BigNumber.prototype.toFormat method. + FORMAT = { + decimalSeparator: '.', + groupSeparator: ',', + groupSize: 3, + secondaryGroupSize: 0, + fractionGroupSeparator: '\xA0', // non-breaking space + fractionGroupSize: 0 + }, + + // The alphabet used for base conversion. + // It must be at least 2 characters long, with no '.' or repeated character. + // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_' + ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz'; + + + //------------------------------------------------------------------------------------------ + + + // CONSTRUCTOR + + + /* + * The BigNumber constructor and exported function. + * Create and return a new instance of a BigNumber object. + * + * n {number|string|BigNumber} A numeric value. + * [b] {number} The base of n. Integer, 2 to ALPHABET.length inclusive. + */ + function BigNumber(n, b) { + var alphabet, c, caseChanged, e, i, isNum, len, str, + x = this; + + // Enable constructor usage without new. + if (!(x instanceof BigNumber)) { + + // Don't throw on constructor call without new (#81). + // '[BigNumber Error] Constructor call without new: {n}' + //throw Error(bignumberError + ' Constructor call without new: ' + n); + return new BigNumber(n, b); + } + + if (b == null) { + + // Duplicate. + if (n instanceof BigNumber) { + x.s = n.s; + x.e = n.e; + x.c = (n = n.c) ? n.slice() : n; + return; + } + + isNum = typeof n == 'number'; + + if (isNum && n * 0 == 0) { + + // Use `1 / n` to handle minus zero also. + x.s = 1 / n < 0 ? (n = -n, -1) : 1; + + // Faster path for integers. + if (n === ~~n) { + for (e = 0, i = n; i >= 10; i /= 10, e++); + x.e = e; + x.c = [n]; + return; + } + + str = n + ''; + } else { + if (!isNumeric.test(str = n + '')) return parseNumeric(x, str, isNum); + x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1; + } + + // Decimal point? + if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + + // Exponential form? + if ((i = str.search(/e/i)) > 0) { + + // Determine exponent. + if (e < 0) e = i; + e += +str.slice(i + 1); + str = str.substring(0, i); + } else if (e < 0) { + + // Integer. + e = str.length; + } + + } else { + + // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' + intCheck(b, 2, ALPHABET.length, 'Base'); + str = n + ''; + + // Allow exponential notation to be used with base 10 argument, while + // also rounding to DECIMAL_PLACES as with other bases. + if (b == 10) { + x = new BigNumber(n instanceof BigNumber ? n : str); + return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE); + } + + isNum = typeof n == 'number'; + + if (isNum) { + + // Avoid potential interpretation of Infinity and NaN as base 44+ values. + if (n * 0 != 0) return parseNumeric(x, str, isNum, b); + + x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1; + + // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' + if (BigNumber.DEBUG && str.replace(/^0\.0*|\./, '').length > 15) { + throw Error + (tooManyDigits + n); + } + + // Prevent later check for length on converted number. + isNum = false; + } else { + x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1; + } + + alphabet = ALPHABET.slice(0, b); + e = i = 0; + + // Check that str is a valid base b number. + // Don't use RegExp so alphabet can contain special characters. + for (len = str.length; i < len; i++) { + if (alphabet.indexOf(c = str.charAt(i)) < 0) { + if (c == '.') { + + // If '.' is not the first character and it has not be found before. + if (i > e) { + e = len; + continue; + } + } else if (!caseChanged) { + + // Allow e.g. hexadecimal 'FF' as well as 'ff'. + if (str == str.toUpperCase() && (str = str.toLowerCase()) || + str == str.toLowerCase() && (str = str.toUpperCase())) { + caseChanged = true; + i = -1; + e = 0; + continue; + } + } + + return parseNumeric(x, n + '', isNum, b); + } + } + + str = convertBase(str, b, 10, x.s); + + // Decimal point? + if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + else e = str.length; + } + + // Determine leading zeros. + for (i = 0; str.charCodeAt(i) === 48; i++); + + // Determine trailing zeros. + for (len = str.length; str.charCodeAt(--len) === 48;); + + str = str.slice(i, ++len); + + if (str) { + len -= i; + + // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' + if (isNum && BigNumber.DEBUG && + len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) { + throw Error + (tooManyDigits + (x.s * n)); + } + + e = e - i - 1; + + // Overflow? + if (e > MAX_EXP) { + + // Infinity. + x.c = x.e = null; + + // Underflow? + } else if (e < MIN_EXP) { + + // Zero. + x.c = [x.e = 0]; + } else { + x.e = e; + x.c = []; + + // Transform base + + // e is the base 10 exponent. + // i is where to slice str to get the first element of the coefficient array. + i = (e + 1) % LOG_BASE; + if (e < 0) i += LOG_BASE; + + if (i < len) { + if (i) x.c.push(+str.slice(0, i)); + + for (len -= LOG_BASE; i < len;) { + x.c.push(+str.slice(i, i += LOG_BASE)); + } + + str = str.slice(i); + i = LOG_BASE - str.length; + } else { + i -= len; + } + + for (; i--; str += '0'); + x.c.push(+str); + } + } else { + + // Zero. + x.c = [x.e = 0]; + } + } + + + // CONSTRUCTOR PROPERTIES + + + BigNumber.clone = clone; + + BigNumber.ROUND_UP = 0; + BigNumber.ROUND_DOWN = 1; + BigNumber.ROUND_CEIL = 2; + BigNumber.ROUND_FLOOR = 3; + BigNumber.ROUND_HALF_UP = 4; + BigNumber.ROUND_HALF_DOWN = 5; + BigNumber.ROUND_HALF_EVEN = 6; + BigNumber.ROUND_HALF_CEIL = 7; + BigNumber.ROUND_HALF_FLOOR = 8; + BigNumber.EUCLID = 9; + + + /* + * Configure infrequently-changing library-wide settings. + * + * Accept an object with the following optional properties (if the value of a property is + * a number, it must be an integer within the inclusive range stated): + * + * DECIMAL_PLACES {number} 0 to MAX + * ROUNDING_MODE {number} 0 to 8 + * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX] + * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX] + * CRYPTO {boolean} true or false + * MODULO_MODE {number} 0 to 9 + * POW_PRECISION {number} 0 to MAX + * ALPHABET {string} A string of two or more unique characters which does + * not contain '.'. + * FORMAT {object} An object with some of the following properties: + * decimalSeparator {string} + * groupSeparator {string} + * groupSize {number} + * secondaryGroupSize {number} + * fractionGroupSeparator {string} + * fractionGroupSize {number} + * + * (The values assigned to the above FORMAT object properties are not checked for validity.) + * + * E.g. + * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 }) + * + * Ignore properties/parameters set to null or undefined, except for ALPHABET. + * + * Return an object with the properties current values. + */ + BigNumber.config = BigNumber.set = function (obj) { + var p, v; + + if (obj != null) { + + if (typeof obj == 'object') { + + // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive. + // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) { + v = obj[p]; + intCheck(v, 0, MAX, p); + DECIMAL_PLACES = v; + } + + // ROUNDING_MODE {number} Integer, 0 to 8 inclusive. + // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) { + v = obj[p]; + intCheck(v, 0, 8, p); + ROUNDING_MODE = v; + } + + // EXPONENTIAL_AT {number|number[]} + // Integer, -MAX to MAX inclusive or + // [integer -MAX to 0 inclusive, 0 to MAX inclusive]. + // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) { + v = obj[p]; + if (isArray(v)) { + intCheck(v[0], -MAX, 0, p); + intCheck(v[1], 0, MAX, p); + TO_EXP_NEG = v[0]; + TO_EXP_POS = v[1]; + } else { + intCheck(v, -MAX, MAX, p); + TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v); + } + } + + // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or + // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive]. + // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}' + if (obj.hasOwnProperty(p = 'RANGE')) { + v = obj[p]; + if (isArray(v)) { + intCheck(v[0], -MAX, -1, p); + intCheck(v[1], 1, MAX, p); + MIN_EXP = v[0]; + MAX_EXP = v[1]; + } else { + intCheck(v, -MAX, MAX, p); + if (v) { + MIN_EXP = -(MAX_EXP = v < 0 ? -v : v); + } else { + throw Error + (bignumberError + p + ' cannot be zero: ' + v); + } + } + } + + // CRYPTO {boolean} true or false. + // '[BigNumber Error] CRYPTO not true or false: {v}' + // '[BigNumber Error] crypto unavailable' + if (obj.hasOwnProperty(p = 'CRYPTO')) { + v = obj[p]; + if (v === !!v) { + if (v) { + if (typeof crypto != 'undefined' && crypto && + (crypto.getRandomValues || crypto.randomBytes)) { + CRYPTO = v; + } else { + CRYPTO = !v; + throw Error + (bignumberError + 'crypto unavailable'); + } + } else { + CRYPTO = v; + } + } else { + throw Error + (bignumberError + p + ' not true or false: ' + v); + } + } + + // MODULO_MODE {number} Integer, 0 to 9 inclusive. + // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'MODULO_MODE')) { + v = obj[p]; + intCheck(v, 0, 9, p); + MODULO_MODE = v; + } + + // POW_PRECISION {number} Integer, 0 to MAX inclusive. + // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'POW_PRECISION')) { + v = obj[p]; + intCheck(v, 0, MAX, p); + POW_PRECISION = v; + } + + // FORMAT {object} + // '[BigNumber Error] FORMAT not an object: {v}' + if (obj.hasOwnProperty(p = 'FORMAT')) { + v = obj[p]; + if (typeof v == 'object') FORMAT = v; + else throw Error + (bignumberError + p + ' not an object: ' + v); + } + + // ALPHABET {string} + // '[BigNumber Error] ALPHABET invalid: {v}' + if (obj.hasOwnProperty(p = 'ALPHABET')) { + v = obj[p]; + + // Disallow if only one character, or contains '.' or a repeated character. + if (typeof v == 'string' && !/^.$|\.|(.).*\1/.test(v)) { + ALPHABET = v; + } else { + throw Error + (bignumberError + p + ' invalid: ' + v); + } + } + + } else { + + // '[BigNumber Error] Object expected: {v}' + throw Error + (bignumberError + 'Object expected: ' + obj); + } + } + + return { + DECIMAL_PLACES: DECIMAL_PLACES, + ROUNDING_MODE: ROUNDING_MODE, + EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS], + RANGE: [MIN_EXP, MAX_EXP], + CRYPTO: CRYPTO, + MODULO_MODE: MODULO_MODE, + POW_PRECISION: POW_PRECISION, + FORMAT: FORMAT, + ALPHABET: ALPHABET + }; + }; + + + /* + * Return true if v is a BigNumber instance, otherwise return false. + * + * v {any} + */ + BigNumber.isBigNumber = function (v) { + return v instanceof BigNumber || v && v._isBigNumber === true || false; + }; + + + /* + * Return a new BigNumber whose value is the maximum of the arguments. + * + * arguments {number|string|BigNumber} + */ + BigNumber.maximum = BigNumber.max = function () { + return maxOrMin(arguments, P.lt); + }; + + + /* + * Return a new BigNumber whose value is the minimum of the arguments. + * + * arguments {number|string|BigNumber} + */ + BigNumber.minimum = BigNumber.min = function () { + return maxOrMin(arguments, P.gt); + }; + + + /* + * Return a new BigNumber with a random value equal to or greater than 0 and less than 1, + * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing + * zeros are produced). + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}' + * '[BigNumber Error] crypto unavailable' + */ + BigNumber.random = (function () { + var pow2_53 = 0x20000000000000; + + // Return a 53 bit integer n, where 0 <= n < 9007199254740992. + // Check if Math.random() produces more than 32 bits of randomness. + // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits. + // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1. + var random53bitInt = (Math.random() * pow2_53) & 0x1fffff + ? function () { return mathfloor(Math.random() * pow2_53); } + : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) + + (Math.random() * 0x800000 | 0); }; + + return function (dp) { + var a, b, e, k, v, + i = 0, + c = [], + rand = new BigNumber(ONE); + + if (dp == null) dp = DECIMAL_PLACES; + else intCheck(dp, 0, MAX); + + k = mathceil(dp / LOG_BASE); + + if (CRYPTO) { + + // Browsers supporting crypto.getRandomValues. + if (crypto.getRandomValues) { + + a = crypto.getRandomValues(new Uint32Array(k *= 2)); + + for (; i < k;) { + + // 53 bits: + // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2) + // 11111 11111111 11111111 11111111 11100000 00000000 00000000 + // ((Math.pow(2, 32) - 1) >>> 11).toString(2) + // 11111 11111111 11111111 + // 0x20000 is 2^21. + v = a[i] * 0x20000 + (a[i + 1] >>> 11); + + // Rejection sampling: + // 0 <= v < 9007199254740992 + // Probability that v >= 9e15, is + // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251 + if (v >= 9e15) { + b = crypto.getRandomValues(new Uint32Array(2)); + a[i] = b[0]; + a[i + 1] = b[1]; + } else { + + // 0 <= v <= 8999999999999999 + // 0 <= (v % 1e14) <= 99999999999999 + c.push(v % 1e14); + i += 2; + } + } + i = k / 2; + + // Node.js supporting crypto.randomBytes. + } else if (crypto.randomBytes) { + + // buffer + a = crypto.randomBytes(k *= 7); + + for (; i < k;) { + + // 0x1000000000000 is 2^48, 0x10000000000 is 2^40 + // 0x100000000 is 2^32, 0x1000000 is 2^24 + // 11111 11111111 11111111 11111111 11111111 11111111 11111111 + // 0 <= v < 9007199254740992 + v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) + + (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) + + (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6]; + + if (v >= 9e15) { + crypto.randomBytes(7).copy(a, i); + } else { + + // 0 <= (v % 1e14) <= 99999999999999 + c.push(v % 1e14); + i += 7; + } + } + i = k / 7; + } else { + CRYPTO = false; + throw Error + (bignumberError + 'crypto unavailable'); + } + } + + // Use Math.random. + if (!CRYPTO) { + + for (; i < k;) { + v = random53bitInt(); + if (v < 9e15) c[i++] = v % 1e14; + } + } + + k = c[--i]; + dp %= LOG_BASE; + + // Convert trailing digits to zeros according to dp. + if (k && dp) { + v = POWS_TEN[LOG_BASE - dp]; + c[i] = mathfloor(k / v) * v; + } + + // Remove trailing elements which are zero. + for (; c[i] === 0; c.pop(), i--); + + // Zero? + if (i < 0) { + c = [e = 0]; + } else { + + // Remove leading elements which are zero and adjust exponent accordingly. + for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE); + + // Count the digits of the first element of c to determine leading zeros, and... + for (i = 1, v = c[0]; v >= 10; v /= 10, i++); + + // adjust the exponent accordingly. + if (i < LOG_BASE) e -= LOG_BASE - i; + } + + rand.e = e; + rand.c = c; + return rand; + }; + })(); + + + // PRIVATE FUNCTIONS + + + // Called by BigNumber and BigNumber.prototype.toString. + convertBase = (function () { + var decimal = '0123456789'; + + /* + * Convert string of baseIn to an array of numbers of baseOut. + * Eg. toBaseOut('255', 10, 16) returns [15, 15]. + * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5]. + */ + function toBaseOut(str, baseIn, baseOut, alphabet) { + var j, + arr = [0], + arrL, + i = 0, + len = str.length; + + for (; i < len;) { + for (arrL = arr.length; arrL--; arr[arrL] *= baseIn); + + arr[0] += alphabet.indexOf(str.charAt(i++)); + + for (j = 0; j < arr.length; j++) { + + if (arr[j] > baseOut - 1) { + if (arr[j + 1] == null) arr[j + 1] = 0; + arr[j + 1] += arr[j] / baseOut | 0; + arr[j] %= baseOut; + } + } + } + + return arr.reverse(); + } + + // Convert a numeric string of baseIn to a numeric string of baseOut. + // If the caller is toString, we are converting from base 10 to baseOut. + // If the caller is BigNumber, we are converting from baseIn to base 10. + return function (str, baseIn, baseOut, sign, callerIsToString) { + var alphabet, d, e, k, r, x, xc, y, + i = str.indexOf('.'), + dp = DECIMAL_PLACES, + rm = ROUNDING_MODE; + + // Non-integer. + if (i >= 0) { + k = POW_PRECISION; + + // Unlimited precision. + POW_PRECISION = 0; + str = str.replace('.', ''); + y = new BigNumber(baseIn); + x = y.pow(str.length - i); + POW_PRECISION = k; + + // Convert str as if an integer, then restore the fraction part by dividing the + // result by its base raised to a power. + + y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'), + 10, baseOut, decimal); + y.e = y.c.length; + } + + // Convert the number as integer. + + xc = toBaseOut(str, baseIn, baseOut, callerIsToString + ? (alphabet = ALPHABET, decimal) + : (alphabet = decimal, ALPHABET)); + + // xc now represents str as an integer and converted to baseOut. e is the exponent. + e = k = xc.length; + + // Remove trailing zeros. + for (; xc[--k] == 0; xc.pop()); + + // Zero? + if (!xc[0]) return alphabet.charAt(0); + + // Does str represent an integer? If so, no need for the division. + if (i < 0) { + --e; + } else { + x.c = xc; + x.e = e; + + // The sign is needed for correct rounding. + x.s = sign; + x = div(x, y, dp, rm, baseOut); + xc = x.c; + r = x.r; + e = x.e; + } + + // xc now represents str converted to baseOut. + + // THe index of the rounding digit. + d = e + dp + 1; + + // The rounding digit: the digit to the right of the digit that may be rounded up. + i = xc[d]; + + // Look at the rounding digits and mode to determine whether to round up. + + k = baseOut / 2; + r = r || d < 0 || xc[d + 1] != null; + + r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) + : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 || + rm == (x.s < 0 ? 8 : 7)); + + // If the index of the rounding digit is not greater than zero, or xc represents + // zero, then the result of the base conversion is zero or, if rounding up, a value + // such as 0.00001. + if (d < 1 || !xc[0]) { + + // 1^-dp or 0 + str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) + : alphabet.charAt(0); + } else { + + // Truncate xc to the required number of decimal places. + xc.length = d; + + // Round up? + if (r) { + + // Rounding up may mean the previous digit has to be rounded up and so on. + for (--baseOut; ++xc[--d] > baseOut;) { + xc[d] = 0; + + if (!d) { + ++e; + xc = [1].concat(xc); + } + } + } + + // Determine trailing zeros. + for (k = xc.length; !xc[--k];); + + // E.g. [4, 11, 15] becomes 4bf. + for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++])); + + // Add leading zeros, decimal point and trailing zeros as required. + str = toFixedPoint(str, e, alphabet.charAt(0)); + } + + // The caller will add the sign. + return str; + }; + })(); + + + // Perform division in the specified base. Called by div and convertBase. + div = (function () { + + // Assume non-zero x and k. + function multiply(x, k, base) { + var m, temp, xlo, xhi, + carry = 0, + i = x.length, + klo = k % SQRT_BASE, + khi = k / SQRT_BASE | 0; + + for (x = x.slice(); i--;) { + xlo = x[i] % SQRT_BASE; + xhi = x[i] / SQRT_BASE | 0; + m = khi * xlo + xhi * klo; + temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry; + carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi; + x[i] = temp % base; + } + + if (carry) x = [carry].concat(x); + + return x; + } + + function compare(a, b, aL, bL) { + var i, cmp; + + if (aL != bL) { + cmp = aL > bL ? 1 : -1; + } else { + + for (i = cmp = 0; i < aL; i++) { + + if (a[i] != b[i]) { + cmp = a[i] > b[i] ? 1 : -1; + break; + } + } + } + + return cmp; + } + + function subtract(a, b, aL, base) { + var i = 0; + + // Subtract b from a. + for (; aL--;) { + a[aL] -= i; + i = a[aL] < b[aL] ? 1 : 0; + a[aL] = i * base + a[aL] - b[aL]; + } + + // Remove leading zeros. + for (; !a[0] && a.length > 1; a.splice(0, 1)); + } + + // x: dividend, y: divisor. + return function (x, y, dp, rm, base) { + var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0, + yL, yz, + s = x.s == y.s ? 1 : -1, + xc = x.c, + yc = y.c; + + // Either NaN, Infinity or 0? + if (!xc || !xc[0] || !yc || !yc[0]) { + + return new BigNumber( + + // Return NaN if either NaN, or both Infinity or 0. + !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : + + // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0. + xc && xc[0] == 0 || !yc ? s * 0 : s / 0 + ); + } + + q = new BigNumber(s); + qc = q.c = []; + e = x.e - y.e; + s = dp + e + 1; + + if (!base) { + base = BASE; + e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE); + s = s / LOG_BASE | 0; + } + + // Result exponent may be one less then the current value of e. + // The coefficients of the BigNumbers from convertBase may have trailing zeros. + for (i = 0; yc[i] == (xc[i] || 0); i++); + + if (yc[i] > (xc[i] || 0)) e--; + + if (s < 0) { + qc.push(1); + more = true; + } else { + xL = xc.length; + yL = yc.length; + i = 0; + s += 2; + + // Normalise xc and yc so highest order digit of yc is >= base / 2. + + n = mathfloor(base / (yc[0] + 1)); + + // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1. + // if (n > 1 || n++ == 1 && yc[0] < base / 2) { + if (n > 1) { + yc = multiply(yc, n, base); + xc = multiply(xc, n, base); + yL = yc.length; + xL = xc.length; + } + + xi = yL; + rem = xc.slice(0, yL); + remL = rem.length; + + // Add zeros to make remainder as long as divisor. + for (; remL < yL; rem[remL++] = 0); + yz = yc.slice(); + yz = [0].concat(yz); + yc0 = yc[0]; + if (yc[1] >= base / 2) yc0++; + // Not necessary, but to prevent trial digit n > base, when using base 3. + // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15; + + do { + n = 0; + + // Compare divisor and remainder. + cmp = compare(yc, rem, yL, remL); + + // If divisor < remainder. + if (cmp < 0) { + + // Calculate trial digit, n. + + rem0 = rem[0]; + if (yL != remL) rem0 = rem0 * base + (rem[1] || 0); + + // n is how many times the divisor goes into the current remainder. + n = mathfloor(rem0 / yc0); + + // Algorithm: + // product = divisor multiplied by trial digit (n). + // Compare product and remainder. + // If product is greater than remainder: + // Subtract divisor from product, decrement trial digit. + // Subtract product from remainder. + // If product was less than remainder at the last compare: + // Compare new remainder and divisor. + // If remainder is greater than divisor: + // Subtract divisor from remainder, increment trial digit. + + if (n > 1) { + + // n may be > base only when base is 3. + if (n >= base) n = base - 1; + + // product = divisor * trial digit. + prod = multiply(yc, n, base); + prodL = prod.length; + remL = rem.length; + + // Compare product and remainder. + // If product > remainder then trial digit n too high. + // n is 1 too high about 5% of the time, and is not known to have + // ever been more than 1 too high. + while (compare(prod, rem, prodL, remL) == 1) { + n--; + + // Subtract divisor from product. + subtract(prod, yL < prodL ? yz : yc, prodL, base); + prodL = prod.length; + cmp = 1; + } + } else { + + // n is 0 or 1, cmp is -1. + // If n is 0, there is no need to compare yc and rem again below, + // so change cmp to 1 to avoid it. + // If n is 1, leave cmp as -1, so yc and rem are compared again. + if (n == 0) { + + // divisor < remainder, so n must be at least 1. + cmp = n = 1; + } + + // product = divisor + prod = yc.slice(); + prodL = prod.length; + } + + if (prodL < remL) prod = [0].concat(prod); + + // Subtract product from remainder. + subtract(rem, prod, remL, base); + remL = rem.length; + + // If product was < remainder. + if (cmp == -1) { + + // Compare divisor and new remainder. + // If divisor < new remainder, subtract divisor from remainder. + // Trial digit n too low. + // n is 1 too low about 5% of the time, and very rarely 2 too low. + while (compare(yc, rem, yL, remL) < 1) { + n++; + + // Subtract divisor from remainder. + subtract(rem, yL < remL ? yz : yc, remL, base); + remL = rem.length; + } + } + } else if (cmp === 0) { + n++; + rem = [0]; + } // else cmp === 1 and n will be 0 + + // Add the next digit, n, to the result array. + qc[i++] = n; + + // Update the remainder. + if (rem[0]) { + rem[remL++] = xc[xi] || 0; + } else { + rem = [xc[xi]]; + remL = 1; + } + } while ((xi++ < xL || rem[0] != null) && s--); + + more = rem[0] != null; + + // Leading zero? + if (!qc[0]) qc.splice(0, 1); + } + + if (base == BASE) { + + // To calculate q.e, first get the number of digits of qc[0]. + for (i = 1, s = qc[0]; s >= 10; s /= 10, i++); + + round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more); + + // Caller is convertBase. + } else { + q.e = e; + q.r = +more; + } + + return q; + }; + })(); + + + /* + * Return a string representing the value of BigNumber n in fixed-point or exponential + * notation rounded to the specified decimal places or significant digits. + * + * n: a BigNumber. + * i: the index of the last digit required (i.e. the digit that may be rounded up). + * rm: the rounding mode. + * id: 1 (toExponential) or 2 (toPrecision). + */ + function format(n, i, rm, id) { + var c0, e, ne, len, str; + + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + if (!n.c) return n.toString(); + + c0 = n.c[0]; + ne = n.e; + + if (i == null) { + str = coeffToString(n.c); + str = id == 1 || id == 2 && ne <= TO_EXP_NEG + ? toExponential(str, ne) + : toFixedPoint(str, ne, '0'); + } else { + n = round(new BigNumber(n), i, rm); + + // n.e may have changed if the value was rounded up. + e = n.e; + + str = coeffToString(n.c); + len = str.length; + + // toPrecision returns exponential notation if the number of significant digits + // specified is less than the number of digits necessary to represent the integer + // part of the value in fixed-point notation. + + // Exponential notation. + if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) { + + // Append zeros? + for (; len < i; str += '0', len++); + str = toExponential(str, e); + + // Fixed-point notation. + } else { + i -= ne; + str = toFixedPoint(str, e, '0'); + + // Append zeros? + if (e + 1 > len) { + if (--i > 0) for (str += '.'; i--; str += '0'); + } else { + i += e - len; + if (i > 0) { + if (e + 1 == len) str += '.'; + for (; i--; str += '0'); + } + } + } + } + + return n.s < 0 && c0 ? '-' + str : str; + } + + + // Handle BigNumber.max and BigNumber.min. + function maxOrMin(args, method) { + var m, n, + i = 0; + + if (isArray(args[0])) args = args[0]; + m = new BigNumber(args[0]); + + for (; ++i < args.length;) { + n = new BigNumber(args[i]); + + // If any number is NaN, return NaN. + if (!n.s) { + m = n; + break; + } else if (method.call(m, n)) { + m = n; + } + } + + return m; + } + + + /* + * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP. + * Called by minus, plus and times. + */ + function normalise(n, c, e) { + var i = 1, + j = c.length; + + // Remove trailing zeros. + for (; !c[--j]; c.pop()); + + // Calculate the base 10 exponent. First get the number of digits of c[0]. + for (j = c[0]; j >= 10; j /= 10, i++); + + // Overflow? + if ((e = i + e * LOG_BASE - 1) > MAX_EXP) { + + // Infinity. + n.c = n.e = null; + + // Underflow? + } else if (e < MIN_EXP) { + + // Zero. + n.c = [n.e = 0]; + } else { + n.e = e; + n.c = c; + } + + return n; + } + + + // Handle values that fail the validity test in BigNumber. + parseNumeric = (function () { + var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, + dotAfter = /^([^.]+)\.$/, + dotBefore = /^\.([^.]+)$/, + isInfinityOrNaN = /^-?(Infinity|NaN)$/, + whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g; + + return function (x, str, isNum, b) { + var base, + s = isNum ? str : str.replace(whitespaceOrPlus, ''); + + // No exception on ±Infinity or NaN. + if (isInfinityOrNaN.test(s)) { + x.s = isNaN(s) ? null : s < 0 ? -1 : 1; + x.c = x.e = null; + } else { + if (!isNum) { + + // basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i + s = s.replace(basePrefix, function (m, p1, p2) { + base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8; + return !b || b == base ? p1 : m; + }); + + if (b) { + base = b; + + // E.g. '1.' to '1', '.1' to '0.1' + s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1'); + } + + if (str != s) return new BigNumber(s, base); + } + + // '[BigNumber Error] Not a number: {n}' + // '[BigNumber Error] Not a base {b} number: {n}' + if (BigNumber.DEBUG) { + throw Error + (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str); + } + + // NaN + x.c = x.e = x.s = null; + } + } + })(); + + + /* + * Round x to sd significant digits using rounding mode rm. Check for over/under-flow. + * If r is truthy, it is known that there are more digits after the rounding digit. + */ + function round(x, sd, rm, r) { + var d, i, j, k, n, ni, rd, + xc = x.c, + pows10 = POWS_TEN; + + // if x is not Infinity or NaN... + if (xc) { + + // rd is the rounding digit, i.e. the digit after the digit that may be rounded up. + // n is a base 1e14 number, the value of the element of array x.c containing rd. + // ni is the index of n within x.c. + // d is the number of digits of n. + // i is the index of rd within n including leading zeros. + // j is the actual index of rd within n (if < 0, rd is a leading zero). + out: { + + // Get the number of digits of the first element of xc. + for (d = 1, k = xc[0]; k >= 10; k /= 10, d++); + i = sd - d; + + // If the rounding digit is in the first element of xc... + if (i < 0) { + i += LOG_BASE; + j = sd; + n = xc[ni = 0]; + + // Get the rounding digit at index j of n. + rd = n / pows10[d - j - 1] % 10 | 0; + } else { + ni = mathceil((i + 1) / LOG_BASE); + + if (ni >= xc.length) { + + if (r) { + + // Needed by sqrt. + for (; xc.length <= ni; xc.push(0)); + n = rd = 0; + d = 1; + i %= LOG_BASE; + j = i - LOG_BASE + 1; + } else { + break out; + } + } else { + n = k = xc[ni]; + + // Get the number of digits of n. + for (d = 1; k >= 10; k /= 10, d++); + + // Get the index of rd within n. + i %= LOG_BASE; + + // Get the index of rd within n, adjusted for leading zeros. + // The number of leading zeros of n is given by LOG_BASE - d. + j = i - LOG_BASE + d; + + // Get the rounding digit at index j of n. + rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0; + } + } + + r = r || sd < 0 || + + // Are there any non-zero digits after the rounding digit? + // The expression n % pows10[d - j - 1] returns all digits of n to the right + // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714. + xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]); + + r = rm < 4 + ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) + : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && + + // Check whether the digit to the left of the rounding digit is odd. + ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 || + rm == (x.s < 0 ? 8 : 7)); + + if (sd < 1 || !xc[0]) { + xc.length = 0; + + if (r) { + + // Convert sd to decimal places. + sd -= x.e + 1; + + // 1, 0.1, 0.01, 0.001, 0.0001 etc. + xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE]; + x.e = -sd || 0; + } else { + + // Zero. + xc[0] = x.e = 0; + } + + return x; + } + + // Remove excess digits. + if (i == 0) { + xc.length = ni; + k = 1; + ni--; + } else { + xc.length = ni + 1; + k = pows10[LOG_BASE - i]; + + // E.g. 56700 becomes 56000 if 7 is the rounding digit. + // j > 0 means i > number of leading zeros of n. + xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0; + } + + // Round up? + if (r) { + + for (; ;) { + + // If the digit to be rounded up is in the first element of xc... + if (ni == 0) { + + // i will be the length of xc[0] before k is added. + for (i = 1, j = xc[0]; j >= 10; j /= 10, i++); + j = xc[0] += k; + for (k = 1; j >= 10; j /= 10, k++); + + // if i != k the length has increased. + if (i != k) { + x.e++; + if (xc[0] == BASE) xc[0] = 1; + } + + break; + } else { + xc[ni] += k; + if (xc[ni] != BASE) break; + xc[ni--] = 0; + k = 1; + } + } + } + + // Remove trailing zeros. + for (i = xc.length; xc[--i] === 0; xc.pop()); + } + + // Overflow? Infinity. + if (x.e > MAX_EXP) { + x.c = x.e = null; + + // Underflow? Zero. + } else if (x.e < MIN_EXP) { + x.c = [x.e = 0]; + } + } + + return x; + } + + + // PROTOTYPE/INSTANCE METHODS + + + /* + * Return a new BigNumber whose value is the absolute value of this BigNumber. + */ + P.absoluteValue = P.abs = function () { + var x = new BigNumber(this); + if (x.s < 0) x.s = 1; + return x; + }; + + + /* + * Return + * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b), + * -1 if the value of this BigNumber is less than the value of BigNumber(y, b), + * 0 if they have the same value, + * or null if the value of either is NaN. + */ + P.comparedTo = function (y, b) { + return compare(this, new BigNumber(y, b)); + }; + + + /* + * If dp is undefined or null or true or false, return the number of decimal places of the + * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. + * + * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this + * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or + * ROUNDING_MODE if rm is omitted. + * + * [dp] {number} Decimal places: integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.decimalPlaces = P.dp = function (dp, rm) { + var c, n, v, + x = this; + + if (dp != null) { + intCheck(dp, 0, MAX); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + return round(new BigNumber(x), dp + x.e + 1, rm); + } + + if (!(c = x.c)) return null; + n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE; + + // Subtract the number of trailing zeros of the last number. + if (v = c[v]) for (; v % 10 == 0; v /= 10, n--); + if (n < 0) n = 0; + + return n; + }; + + + /* + * n / 0 = I + * n / N = N + * n / I = 0 + * 0 / n = 0 + * 0 / 0 = N + * 0 / N = N + * 0 / I = 0 + * N / n = N + * N / 0 = N + * N / N = N + * N / I = N + * I / n = I + * I / 0 = I + * I / N = N + * I / I = N + * + * Return a new BigNumber whose value is the value of this BigNumber divided by the value of + * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE. + */ + P.dividedBy = P.div = function (y, b) { + return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE); + }; + + + /* + * Return a new BigNumber whose value is the integer part of dividing the value of this + * BigNumber by the value of BigNumber(y, b). + */ + P.dividedToIntegerBy = P.idiv = function (y, b) { + return div(this, new BigNumber(y, b), 0, 1); + }; + + + /* + * Return a BigNumber whose value is the value of this BigNumber exponentiated by n. + * + * If m is present, return the result modulo m. + * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE. + * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE. + * + * The modular power operation works efficiently when x, n, and m are integers, otherwise it + * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0. + * + * n {number|string|BigNumber} The exponent. An integer. + * [m] {number|string|BigNumber} The modulus. + * + * '[BigNumber Error] Exponent not an integer: {n}' + */ + P.exponentiatedBy = P.pow = function (n, m) { + var half, isModExp, k, more, nIsBig, nIsNeg, nIsOdd, y, + x = this; + + n = new BigNumber(n); + + // Allow NaN and ±Infinity, but not other non-integers. + if (n.c && !n.isInteger()) { + throw Error + (bignumberError + 'Exponent not an integer: ' + n); + } + + if (m != null) m = new BigNumber(m); + + // Exponent of MAX_SAFE_INTEGER is 15. + nIsBig = n.e > 14; + + // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0. + if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) { + + // The sign of the result of pow when x is negative depends on the evenness of n. + // If +n overflows to ±Infinity, the evenness of n would be not be known. + y = new BigNumber(Math.pow(+x.valueOf(), nIsBig ? 2 - isOdd(n) : +n)); + return m ? y.mod(m) : y; + } + + nIsNeg = n.s < 0; + + if (m) { + + // x % m returns NaN if abs(m) is zero, or m is NaN. + if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN); + + isModExp = !nIsNeg && x.isInteger() && m.isInteger(); + + if (isModExp) x = x.mod(m); + + // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15. + // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15. + } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 + // [1, 240000000] + ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7 + // [80000000000000] [99999750000000] + : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) { + + // If x is negative and n is odd, k = -0, else k = 0. + k = x.s < 0 && isOdd(n) ? -0 : 0; + + // If x >= 1, k = ±Infinity. + if (x.e > -1) k = 1 / k; + + // If n is negative return ±0, else return ±Infinity. + return new BigNumber(nIsNeg ? 1 / k : k); + + } else if (POW_PRECISION) { + + // Truncating each coefficient array to a length of k after each multiplication + // equates to truncating significant digits to POW_PRECISION + [28, 41], + // i.e. there will be a minimum of 28 guard digits retained. + k = mathceil(POW_PRECISION / LOG_BASE + 2); + } + + if (nIsBig) { + half = new BigNumber(0.5); + nIsOdd = isOdd(n); + } else { + nIsOdd = n % 2; + } + + if (nIsNeg) n.s = 1; + + y = new BigNumber(ONE); + + // Performs 54 loop iterations for n of 9007199254740991. + for (; ;) { + + if (nIsOdd) { + y = y.times(x); + if (!y.c) break; + + if (k) { + if (y.c.length > k) y.c.length = k; + } else if (isModExp) { + y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m)); + } + } + + if (nIsBig) { + n = n.times(half); + round(n, n.e + 1, 1); + if (!n.c[0]) break; + nIsBig = n.e > 14; + nIsOdd = isOdd(n); + } else { + n = mathfloor(n / 2); + if (!n) break; + nIsOdd = n % 2; + } + + x = x.times(x); + + if (k) { + if (x.c && x.c.length > k) x.c.length = k; + } else if (isModExp) { + x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m)); + } + } + + if (isModExp) return y; + if (nIsNeg) y = ONE.div(y); + + return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y; + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer + * using rounding mode rm, or ROUNDING_MODE if rm is omitted. + * + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}' + */ + P.integerValue = function (rm) { + var n = new BigNumber(this); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + return round(n, n.e + 1, rm); + }; + + + /* + * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b), + * otherwise return false. + */ + P.isEqualTo = P.eq = function (y, b) { + return compare(this, new BigNumber(y, b)) === 0; + }; + + + /* + * Return true if the value of this BigNumber is a finite number, otherwise return false. + */ + P.isFinite = function () { + return !!this.c; + }; + + + /* + * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b), + * otherwise return false. + */ + P.isGreaterThan = P.gt = function (y, b) { + return compare(this, new BigNumber(y, b)) > 0; + }; + + + /* + * Return true if the value of this BigNumber is greater than or equal to the value of + * BigNumber(y, b), otherwise return false. + */ + P.isGreaterThanOrEqualTo = P.gte = function (y, b) { + return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0; + + }; + + + /* + * Return true if the value of this BigNumber is an integer, otherwise return false. + */ + P.isInteger = function () { + return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2; + }; + + + /* + * Return true if the value of this BigNumber is less than the value of BigNumber(y, b), + * otherwise return false. + */ + P.isLessThan = P.lt = function (y, b) { + return compare(this, new BigNumber(y, b)) < 0; + }; + + + /* + * Return true if the value of this BigNumber is less than or equal to the value of + * BigNumber(y, b), otherwise return false. + */ + P.isLessThanOrEqualTo = P.lte = function (y, b) { + return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0; + }; + + + /* + * Return true if the value of this BigNumber is NaN, otherwise return false. + */ + P.isNaN = function () { + return !this.s; + }; + + + /* + * Return true if the value of this BigNumber is negative, otherwise return false. + */ + P.isNegative = function () { + return this.s < 0; + }; + + + /* + * Return true if the value of this BigNumber is positive, otherwise return false. + */ + P.isPositive = function () { + return this.s > 0; + }; + + + /* + * Return true if the value of this BigNumber is 0 or -0, otherwise return false. + */ + P.isZero = function () { + return !!this.c && this.c[0] == 0; + }; + + + /* + * n - 0 = n + * n - N = N + * n - I = -I + * 0 - n = -n + * 0 - 0 = 0 + * 0 - N = N + * 0 - I = -I + * N - n = N + * N - 0 = N + * N - N = N + * N - I = N + * I - n = I + * I - 0 = I + * I - N = N + * I - I = N + * + * Return a new BigNumber whose value is the value of this BigNumber minus the value of + * BigNumber(y, b). + */ + P.minus = function (y, b) { + var i, j, t, xLTy, + x = this, + a = x.s; + + y = new BigNumber(y, b); + b = y.s; + + // Either NaN? + if (!a || !b) return new BigNumber(NaN); + + // Signs differ? + if (a != b) { + y.s = -b; + return x.plus(y); + } + + var xe = x.e / LOG_BASE, + ye = y.e / LOG_BASE, + xc = x.c, + yc = y.c; + + if (!xe || !ye) { + + // Either Infinity? + if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN); + + // Either zero? + if (!xc[0] || !yc[0]) { + + // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. + return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x : + + // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity + ROUNDING_MODE == 3 ? -0 : 0); + } + } + + xe = bitFloor(xe); + ye = bitFloor(ye); + xc = xc.slice(); + + // Determine which is the bigger number. + if (a = xe - ye) { + + if (xLTy = a < 0) { + a = -a; + t = xc; + } else { + ye = xe; + t = yc; + } + + t.reverse(); + + // Prepend zeros to equalise exponents. + for (b = a; b--; t.push(0)); + t.reverse(); + } else { + + // Exponents equal. Check digit by digit. + j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b; + + for (a = b = 0; b < j; b++) { + + if (xc[b] != yc[b]) { + xLTy = xc[b] < yc[b]; + break; + } + } + } + + // x < y? Point xc to the array of the bigger number. + if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s; + + b = (j = yc.length) - (i = xc.length); + + // Append zeros to xc if shorter. + // No need to add zeros to yc if shorter as subtract only needs to start at yc.length. + if (b > 0) for (; b--; xc[i++] = 0); + b = BASE - 1; + + // Subtract yc from xc. + for (; j > a;) { + + if (xc[--j] < yc[j]) { + for (i = j; i && !xc[--i]; xc[i] = b); + --xc[i]; + xc[j] += BASE; + } + + xc[j] -= yc[j]; + } + + // Remove leading zeros and adjust exponent accordingly. + for (; xc[0] == 0; xc.splice(0, 1), --ye); + + // Zero? + if (!xc[0]) { + + // Following IEEE 754 (2008) 6.3, + // n - n = +0 but n - n = -0 when rounding towards -Infinity. + y.s = ROUNDING_MODE == 3 ? -1 : 1; + y.c = [y.e = 0]; + return y; + } + + // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity + // for finite x and y. + return normalise(y, xc, ye); + }; + + + /* + * n % 0 = N + * n % N = N + * n % I = n + * 0 % n = 0 + * -0 % n = -0 + * 0 % 0 = N + * 0 % N = N + * 0 % I = 0 + * N % n = N + * N % 0 = N + * N % N = N + * N % I = N + * I % n = N + * I % 0 = N + * I % N = N + * I % I = N + * + * Return a new BigNumber whose value is the value of this BigNumber modulo the value of + * BigNumber(y, b). The result depends on the value of MODULO_MODE. + */ + P.modulo = P.mod = function (y, b) { + var q, s, + x = this; + + y = new BigNumber(y, b); + + // Return NaN if x is Infinity or NaN, or y is NaN or zero. + if (!x.c || !y.s || y.c && !y.c[0]) { + return new BigNumber(NaN); + + // Return x if y is Infinity or x is zero. + } else if (!y.c || x.c && !x.c[0]) { + return new BigNumber(x); + } + + if (MODULO_MODE == 9) { + + // Euclidian division: q = sign(y) * floor(x / abs(y)) + // r = x - qy where 0 <= r < abs(y) + s = y.s; + y.s = 1; + q = div(x, y, 0, 3); + y.s = s; + q.s *= s; + } else { + q = div(x, y, 0, MODULO_MODE); + } + + y = x.minus(q.times(y)); + + // To match JavaScript %, ensure sign of zero is sign of dividend. + if (!y.c[0] && MODULO_MODE == 1) y.s = x.s; + + return y; + }; + + + /* + * n * 0 = 0 + * n * N = N + * n * I = I + * 0 * n = 0 + * 0 * 0 = 0 + * 0 * N = N + * 0 * I = N + * N * n = N + * N * 0 = N + * N * N = N + * N * I = N + * I * n = I + * I * 0 = N + * I * N = N + * I * I = I + * + * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value + * of BigNumber(y, b). + */ + P.multipliedBy = P.times = function (y, b) { + var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc, + base, sqrtBase, + x = this, + xc = x.c, + yc = (y = new BigNumber(y, b)).c; + + // Either NaN, ±Infinity or ±0? + if (!xc || !yc || !xc[0] || !yc[0]) { + + // Return NaN if either is NaN, or one is 0 and the other is Infinity. + if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) { + y.c = y.e = y.s = null; + } else { + y.s *= x.s; + + // Return ±Infinity if either is ±Infinity. + if (!xc || !yc) { + y.c = y.e = null; + + // Return ±0 if either is ±0. + } else { + y.c = [0]; + y.e = 0; + } + } + + return y; + } + + e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE); + y.s *= x.s; + xcL = xc.length; + ycL = yc.length; + + // Ensure xc points to longer array and xcL to its length. + if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i; + + // Initialise the result array with zeros. + for (i = xcL + ycL, zc = []; i--; zc.push(0)); + + base = BASE; + sqrtBase = SQRT_BASE; + + for (i = ycL; --i >= 0;) { + c = 0; + ylo = yc[i] % sqrtBase; + yhi = yc[i] / sqrtBase | 0; + + for (k = xcL, j = i + k; j > i;) { + xlo = xc[--k] % sqrtBase; + xhi = xc[k] / sqrtBase | 0; + m = yhi * xlo + xhi * ylo; + xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c; + c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi; + zc[j--] = xlo % base; + } + + zc[j] = c; + } + + if (c) { + ++e; + } else { + zc.splice(0, 1); + } + + return normalise(y, zc, e); + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber negated, + * i.e. multiplied by -1. + */ + P.negated = function () { + var x = new BigNumber(this); + x.s = -x.s || null; + return x; + }; + + + /* + * n + 0 = n + * n + N = N + * n + I = I + * 0 + n = n + * 0 + 0 = 0 + * 0 + N = N + * 0 + I = I + * N + n = N + * N + 0 = N + * N + N = N + * N + I = N + * I + n = I + * I + 0 = I + * I + N = N + * I + I = I + * + * Return a new BigNumber whose value is the value of this BigNumber plus the value of + * BigNumber(y, b). + */ + P.plus = function (y, b) { + var t, + x = this, + a = x.s; + + y = new BigNumber(y, b); + b = y.s; + + // Either NaN? + if (!a || !b) return new BigNumber(NaN); + + // Signs differ? + if (a != b) { + y.s = -b; + return x.minus(y); + } + + var xe = x.e / LOG_BASE, + ye = y.e / LOG_BASE, + xc = x.c, + yc = y.c; + + if (!xe || !ye) { + + // Return ±Infinity if either ±Infinity. + if (!xc || !yc) return new BigNumber(a / 0); + + // Either zero? + // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. + if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0); + } + + xe = bitFloor(xe); + ye = bitFloor(ye); + xc = xc.slice(); + + // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts. + if (a = xe - ye) { + if (a > 0) { + ye = xe; + t = yc; + } else { + a = -a; + t = xc; + } + + t.reverse(); + for (; a--; t.push(0)); + t.reverse(); + } + + a = xc.length; + b = yc.length; + + // Point xc to the longer array, and b to the shorter length. + if (a - b < 0) t = yc, yc = xc, xc = t, b = a; + + // Only start adding at yc.length - 1 as the further digits of xc can be ignored. + for (a = 0; b;) { + a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0; + xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE; + } + + if (a) { + xc = [a].concat(xc); + ++ye; + } + + // No need to check for zero, as +x + +y != 0 && -x + -y != 0 + // ye = MAX_EXP + 1 possible + return normalise(y, xc, ye); + }; + + + /* + * If sd is undefined or null or true or false, return the number of significant digits of + * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. + * If sd is true include integer-part trailing zeros in the count. + * + * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this + * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or + * ROUNDING_MODE if rm is omitted. + * + * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive. + * boolean: whether to count integer-part trailing zeros: true or false. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' + */ + P.precision = P.sd = function (sd, rm) { + var c, n, v, + x = this; + + if (sd != null && sd !== !!sd) { + intCheck(sd, 1, MAX); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + return round(new BigNumber(x), sd, rm); + } + + if (!(c = x.c)) return null; + v = c.length - 1; + n = v * LOG_BASE + 1; + + if (v = c[v]) { + + // Subtract the number of trailing zeros of the last element. + for (; v % 10 == 0; v /= 10, n--); + + // Add the number of digits of the first element. + for (v = c[0]; v >= 10; v /= 10, n++); + } + + if (sd && x.e + 1 > n) n = x.e + 1; + + return n; + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber shifted by k places + * (powers of 10). Shift to the right if n > 0, and to the left if n < 0. + * + * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}' + */ + P.shiftedBy = function (k) { + intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER); + return this.times('1e' + k); + }; + + + /* + * sqrt(-n) = N + * sqrt(N) = N + * sqrt(-I) = N + * sqrt(I) = I + * sqrt(0) = 0 + * sqrt(-0) = -0 + * + * Return a new BigNumber whose value is the square root of the value of this BigNumber, + * rounded according to DECIMAL_PLACES and ROUNDING_MODE. + */ + P.squareRoot = P.sqrt = function () { + var m, n, r, rep, t, + x = this, + c = x.c, + s = x.s, + e = x.e, + dp = DECIMAL_PLACES + 4, + half = new BigNumber('0.5'); + + // Negative/NaN/Infinity/zero? + if (s !== 1 || !c || !c[0]) { + return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); + } + + // Initial estimate. + s = Math.sqrt(+x); + + // Math.sqrt underflow/overflow? + // Pass x to Math.sqrt as integer, then adjust the exponent of the result. + if (s == 0 || s == 1 / 0) { + n = coeffToString(c); + if ((n.length + e) % 2 == 0) n += '0'; + s = Math.sqrt(n); + e = bitFloor((e + 1) / 2) - (e < 0 || e % 2); + + if (s == 1 / 0) { + n = '1e' + e; + } else { + n = s.toExponential(); + n = n.slice(0, n.indexOf('e') + 1) + e; + } + + r = new BigNumber(n); + } else { + r = new BigNumber(s + ''); + } + + // Check for zero. + // r could be zero if MIN_EXP is changed after the this value was created. + // This would cause a division by zero (x/t) and hence Infinity below, which would cause + // coeffToString to throw. + if (r.c[0]) { + e = r.e; + s = e + dp; + if (s < 3) s = 0; + + // Newton-Raphson iteration. + for (; ;) { + t = r; + r = half.times(t.plus(div(x, t, dp, 1))); + + if (coeffToString(t.c ).slice(0, s) === (n = + coeffToString(r.c)).slice(0, s)) { + + // The exponent of r may here be one less than the final result exponent, + // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits + // are indexed correctly. + if (r.e < e) --s; + n = n.slice(s - 3, s + 1); + + // The 4th rounding digit may be in error by -1 so if the 4 rounding digits + // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the + // iteration. + if (n == '9999' || !rep && n == '4999') { + + // On the first iteration only, check to see if rounding up gives the + // exact result as the nines may infinitely repeat. + if (!rep) { + round(t, t.e + DECIMAL_PLACES + 2, 0); + + if (t.times(t).eq(x)) { + r = t; + break; + } + } + + dp += 4; + s += 4; + rep = 1; + } else { + + // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact + // result. If not, then there are further digits and m will be truthy. + if (!+n || !+n.slice(1) && n.charAt(0) == '5') { + + // Truncate to the first rounding digit. + round(r, r.e + DECIMAL_PLACES + 2, 1); + m = !r.times(r).eq(x); + } + + break; + } + } + } + } + + return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m); + }; + + + /* + * Return a string representing the value of this BigNumber in exponential notation and + * rounded using ROUNDING_MODE to dp fixed decimal places. + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toExponential = function (dp, rm) { + if (dp != null) { + intCheck(dp, 0, MAX); + dp++; + } + return format(this, dp, rm, 1); + }; + + + /* + * Return a string representing the value of this BigNumber in fixed-point notation rounding + * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted. + * + * Note: as with JavaScript's number type, (-0).toFixed(0) is '0', + * but e.g. (-0.00001).toFixed(0) is '-0'. + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toFixed = function (dp, rm) { + if (dp != null) { + intCheck(dp, 0, MAX); + dp = dp + this.e + 1; + } + return format(this, dp, rm); + }; + + + /* + * Return a string representing the value of this BigNumber in fixed-point notation rounded + * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties + * of the FORMAT object (see BigNumber.set). + * + * FORMAT = { + * decimalSeparator : '.', + * groupSeparator : ',', + * groupSize : 3, + * secondaryGroupSize : 0, + * fractionGroupSeparator : '\xA0', // non-breaking space + * fractionGroupSize : 0 + * }; + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toFormat = function (dp, rm) { + var str = this.toFixed(dp, rm); + + if (this.c) { + var i, + arr = str.split('.'), + g1 = +FORMAT.groupSize, + g2 = +FORMAT.secondaryGroupSize, + groupSeparator = FORMAT.groupSeparator, + intPart = arr[0], + fractionPart = arr[1], + isNeg = this.s < 0, + intDigits = isNeg ? intPart.slice(1) : intPart, + len = intDigits.length; + + if (g2) i = g1, g1 = g2, g2 = i, len -= i; + + if (g1 > 0 && len > 0) { + i = len % g1 || g1; + intPart = intDigits.substr(0, i); + + for (; i < len; i += g1) { + intPart += groupSeparator + intDigits.substr(i, g1); + } + + if (g2 > 0) intPart += groupSeparator + intDigits.slice(i); + if (isNeg) intPart = '-' + intPart; + } + + str = fractionPart + ? intPart + FORMAT.decimalSeparator + ((g2 = +FORMAT.fractionGroupSize) + ? fractionPart.replace(new RegExp('\\d{' + g2 + '}\\B', 'g'), + '$&' + FORMAT.fractionGroupSeparator) + : fractionPart) + : intPart; + } + + return str; + }; + + + /* + * Return a string array representing the value of this BigNumber as a simple fraction with + * an integer numerator and an integer denominator. The denominator will be a positive + * non-zero value less than or equal to the specified maximum denominator. If a maximum + * denominator is not specified, the denominator will be the lowest value necessary to + * represent the number exactly. + * + * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator. + * + * '[BigNumber Error] Argument {not an integer|out of range} : {md}' + */ + P.toFraction = function (md) { + var arr, d, d0, d1, d2, e, exp, n, n0, n1, q, s, + x = this, + xc = x.c; + + if (md != null) { + n = new BigNumber(md); + + // Throw if md is less than one or is not an integer, unless it is Infinity. + if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) { + throw Error + (bignumberError + 'Argument ' + + (n.isInteger() ? 'out of range: ' : 'not an integer: ') + md); + } + } + + if (!xc) return x.toString(); + + d = new BigNumber(ONE); + n1 = d0 = new BigNumber(ONE); + d1 = n0 = new BigNumber(ONE); + s = coeffToString(xc); + + // Determine initial denominator. + // d is a power of 10 and the minimum max denominator that specifies the value exactly. + e = d.e = s.length - x.e - 1; + d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp]; + md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n; + + exp = MAX_EXP; + MAX_EXP = 1 / 0; + n = new BigNumber(s); + + // n0 = d1 = 0 + n0.c[0] = 0; + + for (; ;) { + q = div(n, d, 0, 1); + d2 = d0.plus(q.times(d1)); + if (d2.comparedTo(md) == 1) break; + d0 = d1; + d1 = d2; + n1 = n0.plus(q.times(d2 = n1)); + n0 = d2; + d = n.minus(q.times(d2 = d)); + n = d2; + } + + d2 = div(md.minus(d0), d1, 0, 1); + n0 = n0.plus(d2.times(n1)); + d0 = d0.plus(d2.times(d1)); + n0.s = n1.s = x.s; + e *= 2; + + // Determine which fraction is closer to x, n0/d0 or n1/d1 + arr = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo( + div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1 + ? [n1.toString(), d1.toString()] + : [n0.toString(), d0.toString()]; + + MAX_EXP = exp; + return arr; + }; + + + /* + * Return the value of this BigNumber converted to a number primitive. + */ + P.toNumber = function () { + return +this; + }; + + + /* + * Return a string representing the value of this BigNumber rounded to sd significant digits + * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits + * necessary to represent the integer part of the value in fixed-point notation, then use + * exponential notation. + * + * [sd] {number} Significant digits. Integer, 1 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' + */ + P.toPrecision = function (sd, rm) { + if (sd != null) intCheck(sd, 1, MAX); + return format(this, sd, rm, 2); + }; + + + /* + * Return a string representing the value of this BigNumber in base b, or base 10 if b is + * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and + * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent + * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than + * TO_EXP_NEG, return exponential notation. + * + * [b] {number} Integer, 2 to ALPHABET.length inclusive. + * + * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' + */ + P.toString = function (b) { + var str, + n = this, + s = n.s, + e = n.e; + + // Infinity or NaN? + if (e === null) { + + if (s) { + str = 'Infinity'; + if (s < 0) str = '-' + str; + } else { + str = 'NaN'; + } + } else { + str = coeffToString(n.c); + + if (b == null) { + str = e <= TO_EXP_NEG || e >= TO_EXP_POS + ? toExponential(str, e) + : toFixedPoint(str, e, '0'); + } else { + intCheck(b, 2, ALPHABET.length, 'Base'); + str = convertBase(toFixedPoint(str, e, '0'), 10, b, s, true); + } + + if (s < 0 && n.c[0]) str = '-' + str; + } + + return str; + }; + + + /* + * Return as toString, but do not accept a base argument, and include the minus sign for + * negative zero. + */ + P.valueOf = P.toJSON = function () { + var str, + n = this, + e = n.e; + + if (e === null) return n.toString(); + + str = coeffToString(n.c); + + str = e <= TO_EXP_NEG || e >= TO_EXP_POS + ? toExponential(str, e) + : toFixedPoint(str, e, '0'); + + return n.s < 0 ? '-' + str : str; + }; + + + P._isBigNumber = true; + + if (configObject != null) BigNumber.set(configObject); + + return BigNumber; + } + + + // PRIVATE HELPER FUNCTIONS + + + function bitFloor(n) { + var i = n | 0; + return n > 0 || n === i ? i : i - 1; + } + + + // Return a coefficient array as a string of base 10 digits. + function coeffToString(a) { + var s, z, + i = 1, + j = a.length, + r = a[0] + ''; + + for (; i < j;) { + s = a[i++] + ''; + z = LOG_BASE - s.length; + for (; z--; s = '0' + s); + r += s; + } + + // Determine trailing zeros. + for (j = r.length; r.charCodeAt(--j) === 48;); + return r.slice(0, j + 1 || 1); + } + + + // Compare the value of BigNumbers x and y. + function compare(x, y) { + var a, b, + xc = x.c, + yc = y.c, + i = x.s, + j = y.s, + k = x.e, + l = y.e; + + // Either NaN? + if (!i || !j) return null; + + a = xc && !xc[0]; + b = yc && !yc[0]; + + // Either zero? + if (a || b) return a ? b ? 0 : -j : i; + + // Signs differ? + if (i != j) return i; + + a = i < 0; + b = k == l; + + // Either Infinity? + if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1; + + // Compare exponents. + if (!b) return k > l ^ a ? 1 : -1; + + j = (k = xc.length) < (l = yc.length) ? k : l; + + // Compare digit by digit. + for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1; + + // Compare lengths. + return k == l ? 0 : k > l ^ a ? 1 : -1; + } + + + /* + * Check that n is a primitive number, an integer, and in range, otherwise throw. + */ + function intCheck(n, min, max, name) { + if (n < min || n > max || n !== (n < 0 ? mathceil(n) : mathfloor(n))) { + throw Error + (bignumberError + (name || 'Argument') + (typeof n == 'number' + ? n < min || n > max ? ' out of range: ' : ' not an integer: ' + : ' not a primitive number: ') + n); + } + } + + + function isArray(obj) { + return Object.prototype.toString.call(obj) == '[object Array]'; + } + + + // Assumes finite n. + function isOdd(n) { + var k = n.c.length - 1; + return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0; + } + + + function toExponential(str, e) { + return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) + + (e < 0 ? 'e' : 'e+') + e; + } + + + function toFixedPoint(str, e, z) { + var len, zs; + + // Negative exponent? + if (e < 0) { + + // Prepend zeros. + for (zs = z + '.'; ++e; zs += z); + str = zs + str; + + // Positive exponent + } else { + len = str.length; + + // Append zeros. + if (++e > len) { + for (zs = z, e -= len; --e; zs += z); + str += zs; + } else if (e < len) { + str = str.slice(0, e) + '.' + str.slice(e); + } + } + + return str; + } + + + // EXPORT + + + BigNumber = clone(); + BigNumber['default'] = BigNumber.BigNumber = BigNumber; + + // AMD. + if (typeof define == 'function' && define.amd) { + define(function () { return BigNumber; }); + + // Node.js and other environments that support module.exports. + } else if (typeof module != 'undefined' && module.exports) { + module.exports = BigNumber; + + // Browser. + } else { + if (!globalObject) { + globalObject = typeof self != 'undefined' && self ? self : window; + } + + globalObject.BigNumber = BigNumber; + } +})(this); diff --git a/nodered/rootfs/data/node_modules/bignumber.js/bignumber.js.map b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.js.map new file mode 100644 index 0000000..fcf56f7 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bignumber.min.js","sources":["bignumber.js"],"names":["globalObject","clone","configObject","BigNumber","n","b","alphabet","c","caseChanged","e","i","isNum","len","str","x","this","s","slice","isNumeric","test","parseNumeric","charCodeAt","indexOf","replace","search","substring","length","intCheck","ALPHABET","round","DECIMAL_PLACES","ROUNDING_MODE","DEBUG","Error","tooManyDigits","charAt","toUpperCase","toLowerCase","convertBase","MAX_SAFE_INTEGER","mathfloor","MAX_EXP","MIN_EXP","LOG_BASE","push","format","rm","id","c0","ne","toString","coeffToString","TO_EXP_NEG","toExponential","toFixedPoint","maxOrMin","args","method","m","isArray","call","normalise","j","pop","sd","r","d","k","ni","rd","xc","pows10","POWS_TEN","out","mathceil","BASE","div","P","prototype","constructor","valueOf","ONE","TO_EXP_POS","CRYPTO","MODULO_MODE","POW_PRECISION","FORMAT","decimalSeparator","groupSeparator","groupSize","secondaryGroupSize","fractionGroupSeparator","fractionGroupSize","ROUND_UP","ROUND_DOWN","ROUND_CEIL","ROUND_FLOOR","ROUND_HALF_UP","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_CEIL","ROUND_HALF_FLOOR","EUCLID","config","set","obj","p","v","bignumberError","hasOwnProperty","MAX","crypto","getRandomValues","randomBytes","EXPONENTIAL_AT","RANGE","isBigNumber","_isBigNumber","maximum","max","arguments","lt","minimum","min","gt","random","pow2_53","random53bitInt","Math","dp","a","rand","Uint32Array","copy","splice","toBaseOut","baseIn","baseOut","arrL","arr","reverse","decimal","sign","callerIsToString","y","pow","concat","multiply","base","temp","xlo","xhi","carry","klo","SQRT_BASE","khi","compare","aL","bL","cmp","subtract","more","prod","prodL","q","qc","rem","remL","rem0","xi","xL","yc0","yL","yz","yc","NaN","bitFloor","basePrefix","dotAfter","dotBefore","isInfinityOrNaN","whitespaceOrPlus","isNaN","p1","p2","absoluteValue","abs","comparedTo","decimalPlaces","dividedBy","dividedToIntegerBy","idiv","exponentiatedBy","half","isModExp","nIsBig","nIsNeg","nIsOdd","isInteger","isOdd","mod","times","integerValue","isEqualTo","eq","isFinite","isGreaterThan","isGreaterThanOrEqualTo","gte","isLessThan","isLessThanOrEqualTo","lte","isNegative","isPositive","isZero","minus","t","xLTy","plus","xe","ye","modulo","multipliedBy","xcL","ycL","ylo","yhi","zc","sqrtBase","negated","precision","shiftedBy","squareRoot","sqrt","rep","toFixed","toFormat","split","g1","g2","intPart","fractionPart","isNeg","intDigits","substr","RegExp","toFraction","md","d0","d1","d2","exp","n0","n1","toNumber","toPrecision","toJSON","z","l","name","Object","zs","ceil","floor","define","amd","module","exports","self","window"],"mappings":";CAAC,SAAWA,GACV,YA2EA,SAASC,GAAMC,GAuGb,QAASC,GAAUC,EAAGC,GACpB,GAAIC,GAAUC,EAAGC,EAAaC,EAAGC,EAAGC,EAAOC,EAAKC,EAC9CC,EAAIC,IAGN,MAAMD,YAAaX,IAKjB,MAAO,IAAIA,GAAUC,EAAGC,EAG1B,IAAS,MAALA,EAAW,CAGb,GAAID,YAAaD,GAIf,MAHAW,GAAEE,EAAIZ,EAAEY,EACRF,EAAEL,EAAIL,EAAEK,OACRK,EAAEP,GAAKH,EAAIA,EAAEG,GAAKH,EAAEa,QAAUb,EAMhC,IAFAO,EAAoB,gBAALP,GAEXO,GAAa,EAAJP,GAAS,EAAG,CAMvB,GAHAU,EAAEE,EAAY,EAAR,EAAIZ,GAASA,GAAKA,EAAG,IAAM,EAG7BA,MAAQA,EAAG,CACb,IAAKK,EAAI,EAAGC,EAAIN,EAAGM,GAAK,GAAIA,GAAK,GAAID,KAGrC,MAFAK,GAAEL,EAAIA,OACNK,EAAEP,GAAKH,IAITS,EAAMT,EAAI,OACL,CACL,IAAKc,EAAUC,KAAKN,EAAMT,EAAI,IAAK,MAAOgB,GAAaN,EAAGD,EAAKF,EAC/DG,GAAEE,EAAyB,IAArBH,EAAIQ,WAAW,IAAYR,EAAMA,EAAII,MAAM,GAAI,IAAM,GAIxDR,EAAII,EAAIS,QAAQ,MAAQ,KAAIT,EAAMA,EAAIU,QAAQ,IAAK,MAGnDb,EAAIG,EAAIW,OAAO,OAAS,GAGnB,EAAJf,IAAOA,EAAIC,GACfD,IAAMI,EAAII,MAAMP,EAAI,GACpBG,EAAMA,EAAIY,UAAU,EAAGf,IACV,EAAJD,IAGTA,EAAII,EAAIa,YAGL,CAQL,GALAC,EAAStB,EAAG,EAAGuB,EAASF,OAAQ,QAChCb,EAAMT,EAAI,GAID,IAALC,EAEF,MADAS,GAAI,GAAIX,GAAUC,YAAaD,GAAYC,EAAIS,GACxCgB,EAAMf,EAAGgB,EAAiBhB,EAAEL,EAAI,EAAGsB,EAK5C,IAFApB,EAAoB,gBAALP,GAEJ,CAGT,GAAQ,EAAJA,GAAS,EAAG,MAAOgB,GAAaN,EAAGD,EAAKF,EAAON,EAKnD,IAHAS,EAAEE,EAAY,EAAR,EAAIZ,GAASS,EAAMA,EAAII,MAAM,GAAI,IAAM,EAGzCd,EAAU6B,OAASnB,EAAIU,QAAQ,YAAa,IAAIG,OAAS,GAC3D,KAAMO,OACJC,EAAgB9B,EAIpBO,IAAQ,MAERG,GAAEE,EAA0B,KAAtBH,EAAIQ,WAAW,IAAaR,EAAMA,EAAII,MAAM,GAAI,IAAM,CAQ9D,KALAX,EAAWsB,EAASX,MAAM,EAAGZ,GAC7BI,EAAIC,EAAI,EAIHE,EAAMC,EAAIa,OAAYd,EAAJF,EAASA,IAC9B,GAAIJ,EAASgB,QAAQf,EAAIM,EAAIsB,OAAOzB,IAAM,EAAG,CAC3C,GAAS,KAALH,GAGF,GAAIG,EAAID,EAAG,CACTA,EAAIG,CACJ,eAEG,KAAKJ,IAGNK,GAAOA,EAAIuB,gBAAkBvB,EAAMA,EAAIwB,gBACvCxB,GAAOA,EAAIwB,gBAAkBxB,EAAMA,EAAIuB,gBAAgB,CACzD5B,GAAc,EACdE,EAAI,GACJD,EAAI,CACJ,UAIJ,MAAOW,GAAaN,EAAGV,EAAI,GAAIO,EAAON,GAI1CQ,EAAMyB,EAAYzB,EAAKR,EAAG,GAAIS,EAAEE,IAG3BP,EAAII,EAAIS,QAAQ,MAAQ,GAAIT,EAAMA,EAAIU,QAAQ,IAAK,IACnDd,EAAII,EAAIa,OAIf,IAAKhB,EAAI,EAAyB,KAAtBG,EAAIQ,WAAWX,GAAWA,KAGtC,IAAKE,EAAMC,EAAIa,OAAkC,KAA1Bb,EAAIQ,aAAaT,KAIxC,GAFAC,EAAMA,EAAII,MAAMP,IAAKE,GAEZ,CAIP,GAHAA,GAAOF,EAGHC,GAASR,EAAU6B,OACrBpB,EAAM,KAAOR,EAAImC,GAAoBnC,IAAMoC,EAAUpC,IACnD,KAAM6B,OACJC,EAAiBpB,EAAEE,EAAIZ,EAM7B,IAHAK,EAAIA,EAAIC,EAAI,EAGRD,EAAIgC,EAGN3B,EAAEP,EAAIO,EAAEL,EAAI,SAGP,IAAQiC,EAAJjC,EAGTK,EAAEP,GAAKO,EAAEL,EAAI,OACR,CAWL,GAVAK,EAAEL,EAAIA,EACNK,EAAEP,KAMFG,GAAKD,EAAI,GAAKkC,EACN,EAAJlC,IAAOC,GAAKiC,GAER/B,EAAJF,EAAS,CAGX,IAFIA,GAAGI,EAAEP,EAAEqC,MAAM/B,EAAII,MAAM,EAAGP,IAEzBE,GAAO+B,EAAc/B,EAAJF,GACpBI,EAAEP,EAAEqC,MAAM/B,EAAII,MAAMP,EAAGA,GAAKiC,GAG9B9B,GAAMA,EAAII,MAAMP,GAChBA,EAAIiC,EAAW9B,EAAIa,WAEnBhB,IAAKE,CAGP,MAAOF,IAAKG,GAAO,KACnBC,EAAEP,EAAEqC,MAAM/B,QAKZC,GAAEP,GAAKO,EAAEL,EAAI,GA8xBjB,QAASoC,GAAOzC,EAAGM,EAAGoC,EAAIC,GACxB,GAAIC,GAAIvC,EAAGwC,EAAIrC,EAAKC,CAKpB,IAHU,MAANiC,EAAYA,EAAKf,EAChBJ,EAASmB,EAAI,EAAG,IAEhB1C,EAAEG,EAAG,MAAOH,GAAE8C,UAKnB,IAHAF,EAAK5C,EAAEG,EAAE,GACT0C,EAAK7C,EAAEK,EAEE,MAALC,EACFG,EAAMsC,EAAc/C,EAAEG,GACtBM,EAAY,GAANkC,GAAiB,GAANA,GAAiBK,GAANH,EACzBI,EAAcxC,EAAKoC,GACnBK,EAAazC,EAAKoC,EAAI,SAezB,IAbA7C,EAAIyB,EAAM,GAAI1B,GAAUC,GAAIM,EAAGoC,GAG/BrC,EAAIL,EAAEK,EAENI,EAAMsC,EAAc/C,EAAEG,GACtBK,EAAMC,EAAIa,OAOA,GAANqB,GAAiB,GAANA,IAAiBtC,GAALC,GAAe0C,GAAL3C,GAAkB,CAGrD,KAAaC,EAANE,EAASC,GAAO,IAAKD,KAC5BC,EAAMwC,EAAcxC,EAAKJ,OAQzB,IAJAC,GAAKuC,EACLpC,EAAMyC,EAAazC,EAAKJ,EAAG,KAGvBA,EAAI,EAAIG,GACV,KAAMF,EAAI,EAAG,IAAKG,GAAO,IAAKH,IAAKG,GAAO,UAG1C,IADAH,GAAKD,EAAIG,EACLF,EAAI,EAEN,IADID,EAAI,GAAKG,IAAKC,GAAO,KAClBH,IAAKG,GAAO,KAM3B,MAAOT,GAAEY,EAAI,GAAKgC,EAAK,IAAMnC,EAAMA,EAKrC,QAAS0C,GAASC,EAAMC,GACtB,GAAIC,GAAGtD,EACLM,EAAI,CAKN,KAHIiD,EAAQH,EAAK,MAAKA,EAAOA,EAAK,IAClCE,EAAI,GAAIvD,GAAUqD,EAAK,MAEd9C,EAAI8C,EAAK9B,QAAS,CAIzB,GAHAtB,EAAI,GAAID,GAAUqD,EAAK9C,KAGlBN,EAAEY,EAAG,CACR0C,EAAItD,CACJ,OACSqD,EAAOG,KAAKF,EAAGtD,KACxBsD,EAAItD,GAIR,MAAOsD,GAQT,QAASG,GAAUzD,EAAGG,EAAGE,GAKvB,IAJA,GAAIC,GAAI,EACNoD,EAAIvD,EAAEmB,QAGAnB,IAAIuD,GAAIvD,EAAEwD,OAGlB,IAAKD,EAAIvD,EAAE,GAAIuD,GAAK,GAAIA,GAAK,GAAIpD,KAkBjC,OAfKD,EAAIC,EAAID,EAAIkC,EAAW,GAAKF,EAG/BrC,EAAEG,EAAIH,EAAEK,EAAI,KAGCiC,EAAJjC,EAGTL,EAAEG,GAAKH,EAAEK,EAAI,IAEbL,EAAEK,EAAIA,EACNL,EAAEG,EAAIA,GAGDH,EAyDT,QAASyB,GAAMf,EAAGkD,EAAIlB,EAAImB,GACxB,GAAIC,GAAGxD,EAAGoD,EAAGK,EAAG/D,EAAGgE,EAAIC,EACrBC,EAAKxD,EAAEP,EACPgE,EAASC,CAGX,IAAIF,EAAI,CAQNG,EAAK,CAGH,IAAKP,EAAI,EAAGC,EAAIG,EAAG,GAAIH,GAAK,GAAIA,GAAK,GAAID,KAIzC,GAHAxD,EAAIsD,EAAKE,EAGD,EAAJxD,EACFA,GAAKiC,EACLmB,EAAIE,EACJ5D,EAAIkE,EAAGF,EAAK,GAGZC,EAAKjE,EAAImE,EAAOL,EAAIJ,EAAI,GAAK,GAAK,MAIlC,IAFAM,EAAKM,GAAUhE,EAAI,GAAKiC,GAEpByB,GAAME,EAAG5C,OAAQ,CAEnB,IAAIuC,EASF,KAAMQ,EANN,MAAOH,EAAG5C,QAAU0C,EAAIE,EAAG1B,KAAK,IAChCxC,EAAIiE,EAAK,EACTH,EAAI,EACJxD,GAAKiC,EACLmB,EAAIpD,EAAIiC,EAAW,MAIhB,CAIL,IAHAvC,EAAI+D,EAAIG,EAAGF,GAGNF,EAAI,EAAGC,GAAK,GAAIA,GAAK,GAAID,KAG9BxD,GAAKiC,EAILmB,EAAIpD,EAAIiC,EAAWuB,EAGnBG,EAAS,EAAJP,EAAQ,EAAI1D,EAAImE,EAAOL,EAAIJ,EAAI,GAAK,GAAK,EAmBlD,GAfAG,EAAIA,GAAU,EAALD,GAKM,MAAdM,EAAGF,EAAK,KAAmB,EAAJN,EAAQ1D,EAAIA,EAAImE,EAAOL,EAAIJ,EAAI,IAEvDG,EAAS,EAALnB,GACAuB,GAAMJ,KAAa,GAANnB,GAAWA,IAAOhC,EAAEE,EAAI,EAAI,EAAI,IAC9CqD,EAAK,GAAW,GAANA,IAAkB,GAANvB,GAAWmB,GAAW,GAANnB,IAGrCpC,EAAI,EAAIoD,EAAI,EAAI1D,EAAImE,EAAOL,EAAIJ,GAAK,EAAIQ,EAAGF,EAAK,IAAM,GAAM,GAC7DtB,IAAOhC,EAAEE,EAAI,EAAI,EAAI,IAEf,EAALgD,IAAWM,EAAG,GAiBhB,MAhBAA,GAAG5C,OAAS,EAERuC,GAGFD,GAAMlD,EAAEL,EAAI,EAGZ6D,EAAG,GAAKC,GAAQ5B,EAAWqB,EAAKrB,GAAYA,GAC5C7B,EAAEL,GAAKuD,GAAM,GAIbM,EAAG,GAAKxD,EAAEL,EAAI,EAGTK,CAkBT,IAdS,GAALJ,GACF4D,EAAG5C,OAAS0C,EACZD,EAAI,EACJC,MAEAE,EAAG5C,OAAS0C,EAAK,EACjBD,EAAII,EAAO5B,EAAWjC,GAItB4D,EAAGF,GAAMN,EAAI,EAAItB,EAAUpC,EAAImE,EAAOL,EAAIJ,GAAKS,EAAOT,IAAMK,EAAI,GAI9DF,EAEF,OAAU,CAGR,GAAU,GAANG,EAAS,CAGX,IAAK1D,EAAI,EAAGoD,EAAIQ,EAAG,GAAIR,GAAK,GAAIA,GAAK,GAAIpD,KAEzC,IADAoD,EAAIQ,EAAG,IAAMH,EACRA,EAAI,EAAGL,GAAK,GAAIA,GAAK,GAAIK,KAG1BzD,GAAKyD,IACPrD,EAAEL,IACE6D,EAAG,IAAMK,IAAML,EAAG,GAAK,GAG7B,OAGA,GADAA,EAAGF,IAAOD,EACNG,EAAGF,IAAOO,EAAM,KACpBL,GAAGF,KAAQ,EACXD,EAAI,EAMV,IAAKzD,EAAI4D,EAAG5C,OAAoB,IAAZ4C,IAAK5D,GAAU4D,EAAGP,QAIpCjD,EAAEL,EAAIgC,EACR3B,EAAEP,EAAIO,EAAEL,EAAI,KAGHK,EAAEL,EAAIiC,IACf5B,EAAEP,GAAKO,EAAEL,EAAI,IAIjB,MAAOK,GAv4CT,GAAI8D,GAAKtC,EAAalB,EACpByD,EAAI1E,EAAU2E,WAAcC,YAAa5E,EAAW+C,SAAU,KAAM8B,QAAS,MAC7EC,EAAM,GAAI9E,GAAU,GAUpB2B,EAAiB,GAajBC,EAAgB,EAMhBqB,EAAa,GAIb8B,EAAa,GAMbxC,EAAU,KAKVD,EAAU,IAGV0C,GAAS,EAkBTC,EAAc,EAIdC,EAAgB,EAGhBC,GACEC,iBAAkB,IAClBC,eAAgB,IAChBC,UAAW,EACXC,mBAAoB,EACpBC,uBAAwB,IACxBC,kBAAmB,GAMrBhE,EAAW,sCAg8Eb,OAxuEAzB,GAAUF,MAAQA,EAElBE,EAAU0F,SAAW,EACrB1F,EAAU2F,WAAa,EACvB3F,EAAU4F,WAAa,EACvB5F,EAAU6F,YAAc,EACxB7F,EAAU8F,cAAgB,EAC1B9F,EAAU+F,gBAAkB,EAC5B/F,EAAUgG,gBAAkB,EAC5BhG,EAAUiG,gBAAkB,EAC5BjG,EAAUkG,iBAAmB,EAC7BlG,EAAUmG,OAAS,EAmCnBnG,EAAUoG,OAASpG,EAAUqG,IAAM,SAAUC,GAC3C,GAAIC,GAAGC,CAEP,IAAW,MAAPF,EAAa,CAEf,GAAkB,gBAAPA,GA0HT,KAAMxE,OACJ2E,EAAiB,oBAAsBH,EArFzC,IAlCIA,EAAII,eAAeH,EAAI,oBACzBC,EAAIF,EAAIC,GACR/E,EAASgF,EAAG,EAAGG,EAAKJ,GACpB5E,EAAiB6E,GAKfF,EAAII,eAAeH,EAAI,mBACzBC,EAAIF,EAAIC,GACR/E,EAASgF,EAAG,EAAG,EAAGD,GAClB3E,EAAgB4E,GAOdF,EAAII,eAAeH,EAAI,oBACzBC,EAAIF,EAAIC,GACJ/C,EAAQgD,IACVhF,EAASgF,EAAE,IAAKG,EAAK,EAAGJ,GACxB/E,EAASgF,EAAE,GAAI,EAAGG,EAAKJ,GACvBtD,EAAauD,EAAE,GACfzB,EAAayB,EAAE,KAEfhF,EAASgF,GAAIG,EAAKA,EAAKJ,GACvBtD,IAAe8B,EAAiB,EAAJyB,GAASA,EAAIA,KAOzCF,EAAII,eAAeH,EAAI,SAEzB,GADAC,EAAIF,EAAIC,GACJ/C,EAAQgD,GACVhF,EAASgF,EAAE,IAAKG,EAAK,GAAIJ,GACzB/E,EAASgF,EAAE,GAAI,EAAGG,EAAKJ,GACvBhE,EAAUiE,EAAE,GACZlE,EAAUkE,EAAE,OACP,CAEL,GADAhF,EAASgF,GAAIG,EAAKA,EAAKJ,IACnBC,EAGF,KAAM1E,OACJ2E,EAAiBF,EAAI,oBAAsBC,EAH7CjE,KAAYD,EAAc,EAAJkE,GAASA,EAAIA,GAWzC,GAAIF,EAAII,eAAeH,EAAI,UAAW,CAEpC,GADAC,EAAIF,EAAIC,GACJC,MAAQA,EAcV,KAAM1E,OACJ2E,EAAiBF,EAAI,uBAAyBC,EAdhD,IAAIA,EAAG,CACL,GAAqB,mBAAVI,UAAyBA,SAClCA,OAAOC,kBAAmBD,OAAOE,YAIjC,KADA9B,IAAUwB,EACJ1E,MACJ2E,EAAiB,qBAJnBzB,GAASwB,MAOXxB,GAASwB,EA0Bf,GAhBIF,EAAII,eAAeH,EAAI,iBACzBC,EAAIF,EAAIC,GACR/E,EAASgF,EAAG,EAAG,EAAGD,GAClBtB,EAAcuB,GAKZF,EAAII,eAAeH,EAAI,mBACzBC,EAAIF,EAAIC,GACR/E,EAASgF,EAAG,EAAGG,EAAKJ,GACpBrB,EAAgBsB,GAKdF,EAAII,eAAeH,EAAI,UAAW,CAEpC,GADAC,EAAIF,EAAIC,GACQ,gBAALC,GACN,KAAM1E,OACT2E,EAAiBF,EAAI,mBAAqBC,EAFlBrB,GAASqB,EAOrC,GAAIF,EAAII,eAAeH,EAAI,YAAa,CAItC,GAHAC,EAAIF,EAAIC,GAGQ,gBAALC,IAAkB,iBAAiBxF,KAAKwF,GAGjD,KAAM1E,OACJ2E,EAAiBF,EAAI,aAAeC,EAHtC/E,GAAW+E,GAenB,OACE7E,eAAgBA,EAChBC,cAAeA,EACfmF,gBAAiB9D,EAAY8B,GAC7BiC,OAAQzE,EAASD,GACjB0C,OAAQA,EACRC,YAAaA,EACbC,cAAeA,EACfC,OAAQA,EACR1D,SAAUA,IAUdzB,EAAUiH,YAAc,SAAUT,GAChC,MAAOA,aAAaxG,IAAawG,GAAKA,EAAEU,gBAAiB,IAAQ,GASnElH,EAAUmH,QAAUnH,EAAUoH,IAAM,WAClC,MAAOhE,GAASiE,UAAW3C,EAAE4C,KAS/BtH,EAAUuH,QAAUvH,EAAUwH,IAAM,WAClC,MAAOpE,GAASiE,UAAW3C,EAAE+C,KAc/BzH,EAAU0H,OAAS,WACjB,GAAIC,GAAU,iBAMVC,EAAkBC,KAAKH,SAAWC,EAAW,QAC9C,WAAc,MAAOtF,GAAUwF,KAAKH,SAAWC,IAC/C,WAAc,MAA2C,UAAlB,WAAhBE,KAAKH,SAAwB,IACnC,QAAhBG,KAAKH,SAAsB,GAE/B,OAAO,UAAUI,GACf,GAAIC,GAAG7H,EAAGI,EAAG0D,EAAGwC,EACdjG,EAAI,EACJH,KACA4H,EAAO,GAAIhI,GAAU8E,EAOvB,IALU,MAANgD,EAAYA,EAAKnG,EAChBH,EAASsG,EAAI,EAAGnB,GAErB3C,EAAIO,EAASuD,EAAKtF,GAEdwC,EAGF,GAAI4B,OAAOC,gBAAiB,CAI1B,IAFAkB,EAAInB,OAAOC,gBAAgB,GAAIoB,aAAYjE,GAAK,IAErCA,EAAJzD,GAQLiG,EAAW,OAAPuB,EAAExH,IAAgBwH,EAAExH,EAAI,KAAO,IAM/BiG,GAAK,MACPtG,EAAI0G,OAAOC,gBAAgB,GAAIoB,aAAY,IAC3CF,EAAExH,GAAKL,EAAE,GACT6H,EAAExH,EAAI,GAAKL,EAAE,KAKbE,EAAEqC,KAAK+D,EAAI,MACXjG,GAAK,EAGTA,GAAIyD,EAAI,MAGH,CAAA,IAAI4C,OAAOE,YA2BhB,KADA9B,IAAS,EACHlD,MACJ2E,EAAiB,qBAvBnB,KAFAsB,EAAInB,OAAOE,YAAY9C,GAAK,GAEjBA,EAAJzD,GAMLiG,EAAmB,iBAAN,GAAPuB,EAAExH,IAA0C,cAAXwH,EAAExH,EAAI,GAC9B,WAAXwH,EAAExH,EAAI,GAAgC,SAAXwH,EAAExH,EAAI,IACjCwH,EAAExH,EAAI,IAAM,KAAOwH,EAAExH,EAAI,IAAM,GAAKwH,EAAExH,EAAI,GAE1CiG,GAAK,KACPI,OAAOE,YAAY,GAAGoB,KAAKH,EAAGxH,IAI9BH,EAAEqC,KAAK+D,EAAI,MACXjG,GAAK,EAGTA,GAAIyD,EAAI,EASZ,IAAKgB,EAEH,KAAWhB,EAAJzD,GACLiG,EAAIoB,IACI,KAAJpB,IAAUpG,EAAEG,KAAOiG,EAAI,KAc/B,KAVAxC,EAAI5D,IAAIG,GACRuH,GAAMtF,EAGFwB,GAAK8D,IACPtB,EAAInC,EAAS7B,EAAWsF,GACxB1H,EAAEG,GAAK8B,EAAU2B,EAAIwC,GAAKA,GAIZ,IAATpG,EAAEG,GAAUH,EAAEwD,MAAOrD,KAG5B,GAAQ,EAAJA,EACFH,GAAKE,EAAI,OACJ,CAGL,IAAKA,EAAI,GAAc,IAATF,EAAE,GAAUA,EAAE+H,OAAO,EAAG,GAAI7H,GAAKkC,GAG/C,IAAKjC,EAAI,EAAGiG,EAAIpG,EAAE,GAAIoG,GAAK,GAAIA,GAAK,GAAIjG,KAGhCiC,EAAJjC,IAAcD,GAAKkC,EAAWjC,GAKpC,MAFAyH,GAAK1H,EAAIA,EACT0H,EAAK5H,EAAIA,EACF4H,MASX7F,EAAc,WAQZ,QAASiG,GAAU1H,EAAK2H,EAAQC,EAASnI,GAOvC,IANA,GAAIwD,GAEF4E,EADAC,GAAO,GAEPjI,EAAI,EACJE,EAAMC,EAAIa,OAEDd,EAAJF,GAAU,CACf,IAAKgI,EAAOC,EAAIjH,OAAQgH,IAAQC,EAAID,IAASF,GAI7C,IAFAG,EAAI,IAAMrI,EAASgB,QAAQT,EAAIsB,OAAOzB,MAEjCoD,EAAI,EAAGA,EAAI6E,EAAIjH,OAAQoC,IAEtB6E,EAAI7E,GAAK2E,EAAU,IACH,MAAdE,EAAI7E,EAAI,KAAY6E,EAAI7E,EAAI,GAAK,GACrC6E,EAAI7E,EAAI,IAAM6E,EAAI7E,GAAK2E,EAAU,EACjCE,EAAI7E,IAAM2E,GAKhB,MAAOE,GAAIC,UA7Bb,GAAIC,GAAU,YAmCd,OAAO,UAAUhI,EAAK2H,EAAQC,EAASK,EAAMC,GAC3C,GAAIzI,GAAU4D,EAAGzD,EAAG0D,EAAGF,EAAGnD,EAAGwD,EAAI0E,EAC/BtI,EAAIG,EAAIS,QAAQ,KAChB2G,EAAKnG,EACLgB,EAAKf,CA+BP,KA5BIrB,GAAK,IACPyD,EAAIkB,EAGJA,EAAgB,EAChBxE,EAAMA,EAAIU,QAAQ,IAAK,IACvByH,EAAI,GAAI7I,GAAUqI,GAClB1H,EAAIkI,EAAEC,IAAIpI,EAAIa,OAAShB,GACvB2E,EAAgBlB,EAKhB6E,EAAEzI,EAAIgI,EAAUjF,EAAaH,EAAcrC,EAAEP,GAAIO,EAAEL,EAAG,KACrD,GAAIgI,EAASI,GACdG,EAAEvI,EAAIuI,EAAEzI,EAAEmB,QAKZ4C,EAAKiE,EAAU1H,EAAK2H,EAAQC,EAASM,GACjCzI,EAAWsB,EAAUiH,IACrBvI,EAAWuI,EAASjH,IAGxBnB,EAAI0D,EAAIG,EAAG5C,OAGO,GAAX4C,IAAKH,GAASG,EAAGP,OAGxB,IAAKO,EAAG,GAAI,MAAOhE,GAAS6B,OAAO,EAqCnC,IAlCQ,EAAJzB,IACAD,GAEFK,EAAEP,EAAI+D,EACNxD,EAAEL,EAAIA,EAGNK,EAAEE,EAAI8H,EACNhI,EAAI8D,EAAI9D,EAAGkI,EAAGf,EAAInF,EAAI2F,GACtBnE,EAAKxD,EAAEP,EACP0D,EAAInD,EAAEmD,EACNxD,EAAIK,EAAEL,GAMRyD,EAAIzD,EAAIwH,EAAK,EAGbvH,EAAI4D,EAAGJ,GAIPC,EAAIsE,EAAU,EACdxE,EAAIA,GAAS,EAAJC,GAAsB,MAAbI,EAAGJ,EAAI,GAEzBD,EAAS,EAALnB,GAAe,MAALpC,GAAauD,KAAa,GAANnB,GAAWA,IAAOhC,EAAEE,EAAI,EAAI,EAAI,IAC1DN,EAAIyD,GAAKzD,GAAKyD,IAAW,GAANrB,GAAWmB,GAAW,GAANnB,GAAuB,EAAZwB,EAAGJ,EAAI,IACtDpB,IAAOhC,EAAEE,EAAI,EAAI,EAAI,IAKpB,EAAJkD,IAAUI,EAAG,GAGfzD,EAAMoD,EAAIX,EAAahD,EAAS6B,OAAO,IAAK8F,EAAI3H,EAAS6B,OAAO,IAC1D7B,EAAS6B,OAAO,OACjB,CAML,GAHAmC,EAAG5C,OAASwC,EAGRD,EAGF,MAAOwE,IAAWnE,IAAKJ,GAAKuE,GAC1BnE,EAAGJ,GAAK,EAEHA,MACDzD,EACF6D,GAAM,GAAG4E,OAAO5E,GAMtB,KAAKH,EAAIG,EAAG5C,QAAS4C,IAAKH,KAG1B,IAAKzD,EAAI,EAAGG,EAAM,GAASsD,GAALzD,EAAQG,GAAOP,EAAS6B,OAAOmC,EAAG5D,OAGxDG,EAAMyC,EAAazC,EAAKJ,EAAGH,EAAS6B,OAAO,IAI7C,MAAOtB,OAMX+D,EAAM,WAGJ,QAASuE,GAASrI,EAAGqD,EAAGiF,GACtB,GAAI1F,GAAG2F,EAAMC,EAAKC,EAChBC,EAAQ,EACR9I,EAAII,EAAEY,OACN+H,EAAMtF,EAAIuF,EACVC,EAAMxF,EAAIuF,EAAY,CAExB,KAAK5I,EAAIA,EAAEG,QAASP,KAClB4I,EAAMxI,EAAEJ,GAAKgJ,EACbH,EAAMzI,EAAEJ,GAAKgJ,EAAY,EACzBhG,EAAIiG,EAAML,EAAMC,EAAME,EACtBJ,EAAOI,EAAMH,EAAQ5F,EAAIgG,EAAaA,EAAaF,EACnDA,GAASH,EAAOD,EAAO,IAAM1F,EAAIgG,EAAY,GAAKC,EAAMJ,EACxDzI,EAAEJ,GAAK2I,EAAOD,CAKhB,OAFII,KAAO1I,GAAK0I,GAAON,OAAOpI,IAEvBA,EAGT,QAAS8I,GAAQ1B,EAAG7H,EAAGwJ,EAAIC,GACzB,GAAIpJ,GAAGqJ,CAEP,IAAIF,GAAMC,EACRC,EAAMF,EAAKC,EAAK,EAAI,OAGpB,KAAKpJ,EAAIqJ,EAAM,EAAOF,EAAJnJ,EAAQA,IAExB,GAAIwH,EAAExH,IAAML,EAAEK,GAAI,CAChBqJ,EAAM7B,EAAExH,GAAKL,EAAEK,GAAK,EAAI,EACxB,OAKN,MAAOqJ,GAGT,QAASC,GAAS9B,EAAG7H,EAAGwJ,EAAIT,GAI1B,IAHA,GAAI1I,GAAI,EAGDmJ,KACL3B,EAAE2B,IAAOnJ,EACTA,EAAIwH,EAAE2B,GAAMxJ,EAAEwJ,GAAM,EAAI,EACxB3B,EAAE2B,GAAMnJ,EAAI0I,EAAOlB,EAAE2B,GAAMxJ,EAAEwJ,EAI/B,OAAQ3B,EAAE,IAAMA,EAAExG,OAAS,EAAGwG,EAAEI,OAAO,EAAG,KAI5C,MAAO,UAAUxH,EAAGkI,EAAGf,EAAInF,EAAIsG,GAC7B,GAAIW,GAAKtJ,EAAGC,EAAGuJ,EAAM7J,EAAG8J,EAAMC,EAAOC,EAAGC,EAAIC,EAAKC,EAAMC,EAAMC,EAAIC,EAAIC,EACnEC,EAAIC,EACJ7J,EAAIF,EAAEE,GAAKgI,EAAEhI,EAAI,EAAI,GACrBsD,EAAKxD,EAAEP,EACPuK,EAAK9B,EAAEzI,CAGT,MAAK+D,GAAOA,EAAG,IAAOwG,GAAOA,EAAG,IAE9B,MAAO,IAAI3K,GAGTW,EAAEE,GAAMgI,EAAEhI,IAAMsD,GAAKwG,GAAMxG,EAAG,IAAMwG,EAAG,GAAMA,GAG7CxG,GAAe,GAATA,EAAG,KAAYwG,EAAS,EAAJ9J,EAAQA,EAAI,EAHa+J,IAoBvD,KAbAX,EAAI,GAAIjK,GAAUa,GAClBqJ,EAAKD,EAAE7J,KACPE,EAAIK,EAAEL,EAAIuI,EAAEvI,EACZO,EAAIiH,EAAKxH,EAAI,EAER2I,IACHA,EAAOzE,EACPlE,EAAIuK,EAASlK,EAAEL,EAAIkC,GAAYqI,EAAShC,EAAEvI,EAAIkC,GAC9C3B,EAAIA,EAAI2B,EAAW,GAKhBjC,EAAI,EAAGoK,EAAGpK,KAAO4D,EAAG5D,IAAM,GAAIA,KAInC,GAFIoK,EAAGpK,IAAM4D,EAAG5D,IAAM,IAAID,IAElB,EAAJO,EACFqJ,EAAGzH,KAAK,GACRqH,GAAO,MACF,CAwBL,IAvBAS,EAAKpG,EAAG5C,OACRkJ,EAAKE,EAAGpJ,OACRhB,EAAI,EACJM,GAAK,EAILZ,EAAIoC,EAAU4G,GAAQ0B,EAAG,GAAK,IAI1B1K,EAAI,IACN0K,EAAK3B,EAAS2B,EAAI1K,EAAGgJ,GACrB9E,EAAK6E,EAAS7E,EAAIlE,EAAGgJ,GACrBwB,EAAKE,EAAGpJ,OACRgJ,EAAKpG,EAAG5C,QAGV+I,EAAKG,EACLN,EAAMhG,EAAGrD,MAAM,EAAG2J,GAClBL,EAAOD,EAAI5I,OAGGkJ,EAAPL,EAAWD,EAAIC,KAAU,GAChCM,EAAKC,EAAG7J,QACR4J,GAAM,GAAG3B,OAAO2B,GAChBF,EAAMG,EAAG,GACLA,EAAG,IAAM1B,EAAO,GAAGuB,GAIvB,GAAG,CAOD,GANAvK,EAAI,EAGJ2J,EAAMH,EAAQkB,EAAIR,EAAKM,EAAIL,GAGjB,EAANR,EAAS,CAqBX,GAjBAS,EAAOF,EAAI,GACPM,GAAML,IAAMC,EAAOA,EAAOpB,GAAQkB,EAAI,IAAM,IAGhDlK,EAAIoC,EAAUgI,EAAOG,GAajBvK,EAAI,EAcN,IAXIA,GAAKgJ,IAAMhJ,EAAIgJ,EAAO,GAG1Bc,EAAOf,EAAS2B,EAAI1K,EAAGgJ,GACvBe,EAAQD,EAAKxI,OACb6I,EAAOD,EAAI5I,OAM+B,GAAnCkI,EAAQM,EAAMI,EAAKH,EAAOI,IAC/BnK,IAGA4J,EAASE,EAAWC,EAALS,EAAaC,EAAKC,EAAIX,EAAOf,GAC5Ce,EAAQD,EAAKxI,OACbqI,EAAM,MAQC,IAAL3J,IAGF2J,EAAM3J,EAAI,GAIZ8J,EAAOY,EAAG7J,QACVkJ,EAAQD,EAAKxI,MAUf,IAPY6I,EAARJ,IAAcD,GAAQ,GAAGhB,OAAOgB,IAGpCF,EAASM,EAAKJ,EAAMK,EAAMnB,GAC1BmB,EAAOD,EAAI5I,OAGA,IAAPqI,EAMF,KAAOH,EAAQkB,EAAIR,EAAKM,EAAIL,GAAQ,GAClCnK,IAGA4J,EAASM,EAAUC,EAALK,EAAYC,EAAKC,EAAIP,EAAMnB,GACzCmB,EAAOD,EAAI5I,WAGE,KAARqI,IACT3J,IACAkK,GAAO,GAITD,GAAG3J,KAAON,EAGNkK,EAAI,GACNA,EAAIC,KAAUjG,EAAGmG,IAAO,GAExBH,GAAOhG,EAAGmG,IACVF,EAAO,UAEDE,IAAOC,GAAgB,MAAVJ,EAAI,KAAetJ,IAE1CiJ,GAAiB,MAAVK,EAAI,GAGND,EAAG,IAAIA,EAAG/B,OAAO,EAAG,GAG3B,GAAIc,GAAQzE,EAAM,CAGhB,IAAKjE,EAAI,EAAGM,EAAIqJ,EAAG,GAAIrJ,GAAK,GAAIA,GAAK,GAAIN,KAEzCmB,EAAMuI,EAAGnC,GAAMmC,EAAE3J,EAAIC,EAAID,EAAIkC,EAAW,GAAK,EAAGG,EAAImH,OAIpDG,GAAE3J,EAAIA,EACN2J,EAAEnG,GAAKgG,CAGT,OAAOG,OAmIXhJ,EAAe,WACb,GAAI6J,GAAa,8BACfC,EAAW,cACXC,EAAY,cACZC,EAAkB,qBAClBC,EAAmB,4BAErB,OAAO,UAAUvK,EAAGD,EAAKF,EAAON,GAC9B,GAAI+I,GACFpI,EAAIL,EAAQE,EAAMA,EAAIU,QAAQ8J,EAAkB,GAGlD,IAAID,EAAgBjK,KAAKH,GACvBF,EAAEE,EAAIsK,MAAMtK,GAAK,KAAW,EAAJA,EAAQ,GAAK,EACrCF,EAAEP,EAAIO,EAAEL,EAAI,SACP,CACL,IAAKE,IAGHK,EAAIA,EAAEO,QAAQ0J,EAAY,SAAUvH,EAAG6H,EAAIC,GAEzC,MADApC,GAAkC,MAA1BoC,EAAKA,EAAGnJ,eAAwB,GAAW,KAANmJ,EAAY,EAAI,EACrDnL,GAAKA,GAAK+I,EAAY1F,EAAL6H,IAGvBlL,IACF+I,EAAO/I,EAGPW,EAAIA,EAAEO,QAAQ2J,EAAU,MAAM3J,QAAQ4J,EAAW,SAG/CtK,GAAOG,GAAG,MAAO,IAAIb,GAAUa,EAAGoI,EAKxC,IAAIjJ,EAAU6B,MACZ,KAAMC,OACH2E,EAAiB,SAAWvG,EAAI,SAAWA,EAAI,IAAM,YAAcQ,EAIxEC,GAAEP,EAAIO,EAAEL,EAAIK,EAAEE,EAAI,UA8KxB6D,EAAE4G,cAAgB5G,EAAE6G,IAAM,WACxB,GAAI5K,GAAI,GAAIX,GAAUY,KAEtB,OADID,GAAEE,EAAI,IAAGF,EAAEE,EAAI,GACZF,GAWT+D,EAAE8G,WAAa,SAAU3C,EAAG3I,GAC1B,MAAOuJ,GAAQ7I,KAAM,GAAIZ,GAAU6I,EAAG3I,KAiBxCwE,EAAE+G,cAAgB/G,EAAEoD,GAAK,SAAUA,EAAInF,GACrC,GAAIvC,GAAGH,EAAGuG,EACR7F,EAAIC,IAEN,IAAU,MAANkH,EAKF,MAJAtG,GAASsG,EAAI,EAAGnB,GACN,MAANhE,EAAYA,EAAKf,EAChBJ,EAASmB,EAAI,EAAG,GAEdjB,EAAM,GAAI1B,GAAUW,GAAImH,EAAKnH,EAAEL,EAAI,EAAGqC,EAG/C,MAAMvC,EAAIO,EAAEP,GAAI,MAAO,KAIvB,IAHAH,IAAMuG,EAAIpG,EAAEmB,OAAS,GAAKsJ,EAASjK,KAAKN,EAAIkC,IAAaA,EAGrDgE,EAAIpG,EAAEoG,GAAI,KAAOA,EAAI,IAAM,EAAGA,GAAK,GAAIvG,KAG3C,MAFQ,GAAJA,IAAOA,EAAI,GAERA,GAwBTyE,EAAEgH,UAAYhH,EAAED,IAAM,SAAUoE,EAAG3I,GACjC,MAAOuE,GAAI7D,KAAM,GAAIZ,GAAU6I,EAAG3I,GAAIyB,EAAgBC,IAQxD8C,EAAEiH,mBAAqBjH,EAAEkH,KAAO,SAAU/C,EAAG3I,GAC3C,MAAOuE,GAAI7D,KAAM,GAAIZ,GAAU6I,EAAG3I,GAAI,EAAG,IAmB3CwE,EAAEmH,gBAAkBnH,EAAEoE,IAAM,SAAU7I,EAAGsD,GACvC,GAAIuI,GAAMC,EAAU/H,EAAG8F,EAAMkC,EAAQC,EAAQC,EAAQrD,EACnDlI,EAAIC,IAKN,IAHAX,EAAI,GAAID,GAAUC,GAGdA,EAAEG,IAAMH,EAAEkM,YACZ,KAAMrK,OACH2E,EAAiB,4BAA8BxG,EASpD,IANS,MAALsD,IAAWA,EAAI,GAAIvD,GAAUuD,IAGjCyI,EAAS/L,EAAEK,EAAI,IAGVK,EAAEP,IAAMO,EAAEP,EAAE,IAAgB,GAAVO,EAAEP,EAAE,KAAYO,EAAEL,GAAmB,GAAdK,EAAEP,EAAEmB,SAAgBtB,EAAEG,IAAMH,EAAEG,EAAE,GAK5E,MADAyI,GAAI,GAAI7I,GAAU6H,KAAKiB,KAAKnI,EAAEkE,UAAWmH,EAAS,EAAII,EAAMnM,IAAMA,IAC3DsD,EAAIsF,EAAEwD,IAAI9I,GAAKsF,CAKxB,IAFAoD,EAAShM,EAAEY,EAAI,EAEX0C,EAAG,CAGL,GAAIA,EAAEnD,GAAKmD,EAAEnD,EAAE,IAAMmD,EAAE1C,EAAG,MAAO,IAAIb,GAAU4K,IAE/CmB,IAAYE,GAAUtL,EAAEwL,aAAe5I,EAAE4I,YAErCJ,IAAUpL,EAAIA,EAAE0L,IAAI9I,QAInB,CAAA,GAAItD,EAAEK,EAAI,IAAMK,EAAEL,EAAI,GAAKK,EAAEL,EAAI,KAAc,GAAPK,EAAEL,EAE7CK,EAAEP,EAAE,GAAK,GAAK4L,GAAUrL,EAAEP,EAAE,IAAM,KAElCO,EAAEP,EAAE,GAAK,MAAQ4L,GAAUrL,EAAEP,EAAE,IAAM,YASvC,MANA4D,GAAIrD,EAAEE,EAAI,GAAKuL,EAAMnM,IAAM,EAAI,EAG3BU,EAAEL,EAAI,KAAI0D,EAAI,EAAIA,GAGf,GAAIhE,GAAUiM,EAAS,EAAIjI,EAAIA,EAE7BkB,KAKTlB,EAAIO,EAASW,EAAgB1C,EAAW,IAe1C,IAZIwJ,GACFF,EAAO,GAAI9L,GAAU,IACrBkM,EAASE,EAAMnM,IAEfiM,EAASjM,EAAI,EAGXgM,IAAQhM,EAAEY,EAAI,GAElBgI,EAAI,GAAI7I,GAAU8E,KAGR,CAER,GAAIoH,EAAQ,CAEV,GADArD,EAAIA,EAAEyD,MAAM3L,IACPkI,EAAEzI,EAAG,KAEN4D,GACE6E,EAAEzI,EAAEmB,OAASyC,IAAG6E,EAAEzI,EAAEmB,OAASyC,GACxB+H,IACTlD,EAAIA,EAAEwD,IAAI9I,IAId,GAAIyI,EAAQ,CAGV,GAFA/L,EAAIA,EAAEqM,MAAMR,GACZpK,EAAMzB,EAAGA,EAAEK,EAAI,EAAG,IACbL,EAAEG,EAAE,GAAI,KACb4L,GAAS/L,EAAEK,EAAI,GACf4L,EAASE,EAAMnM,OACV,CAEL,GADAA,EAAIoC,EAAUpC,EAAI,IACbA,EAAG,KACRiM,GAASjM,EAAI,EAGfU,EAAIA,EAAE2L,MAAM3L,GAERqD,EACErD,EAAEP,GAAKO,EAAEP,EAAEmB,OAASyC,IAAGrD,EAAEP,EAAEmB,OAASyC,GAC/B+H,IACTpL,EAAIA,EAAE0L,IAAI9I,IAId,MAAIwI,GAAiBlD,GACjBoD,IAAQpD,EAAI/D,EAAIL,IAAIoE,IAEjBtF,EAAIsF,EAAEwD,IAAI9I,GAAKS,EAAItC,EAAMmH,EAAG3D,EAAetD,EAAekI,GAAQjB,IAY3EnE,EAAE6H,aAAe,SAAU5J,GACzB,GAAI1C,GAAI,GAAID,GAAUY,KAGtB,OAFU,OAAN+B,EAAYA,EAAKf,EAChBJ,EAASmB,EAAI,EAAG,GACdjB,EAAMzB,EAAGA,EAAEK,EAAI,EAAGqC,IAQ3B+B,EAAE8H,UAAY9H,EAAE+H,GAAK,SAAU5D,EAAG3I,GAChC,MAA8C,KAAvCuJ,EAAQ7I,KAAM,GAAIZ,GAAU6I,EAAG3I,KAOxCwE,EAAEgI,SAAW,WACX,QAAS9L,KAAKR,GAQhBsE,EAAEiI,cAAgBjI,EAAE+C,GAAK,SAAUoB,EAAG3I,GACpC,MAAOuJ,GAAQ7I,KAAM,GAAIZ,GAAU6I,EAAG3I,IAAM,GAQ9CwE,EAAEkI,uBAAyBlI,EAAEmI,IAAM,SAAUhE,EAAG3I,GAC9C,MAAoD,MAA5CA,EAAIuJ,EAAQ7I,KAAM,GAAIZ,GAAU6I,EAAG3I,MAAoB,IAANA,GAQ3DwE,EAAEyH,UAAY,WACZ,QAASvL,KAAKR,GAAKyK,EAASjK,KAAKN,EAAIkC,GAAY5B,KAAKR,EAAEmB,OAAS,GAQnEmD,EAAEoI,WAAapI,EAAE4C,GAAK,SAAUuB,EAAG3I,GACjC,MAAOuJ,GAAQ7I,KAAM,GAAIZ,GAAU6I,EAAG3I,IAAM,GAQ9CwE,EAAEqI,oBAAsBrI,EAAEsI,IAAM,SAAUnE,EAAG3I,GAC3C,MAAoD,MAA5CA,EAAIuJ,EAAQ7I,KAAM,GAAIZ,GAAU6I,EAAG3I,MAAqB,IAANA,GAO5DwE,EAAEyG,MAAQ,WACR,OAAQvK,KAAKC,GAOf6D,EAAEuI,WAAa,WACb,MAAOrM,MAAKC,EAAI,GAOlB6D,EAAEwI,WAAa,WACb,MAAOtM,MAAKC,EAAI,GAOlB6D,EAAEyI,OAAS,WACT,QAASvM,KAAKR,GAAkB,GAAbQ,KAAKR,EAAE,IAwB5BsE,EAAE0I,MAAQ,SAAUvE,EAAG3I,GACrB,GAAIK,GAAGoD,EAAG0J,EAAGC,EACX3M,EAAIC,KACJmH,EAAIpH,EAAEE,CAMR,IAJAgI,EAAI,GAAI7I,GAAU6I,EAAG3I,GACrBA,EAAI2I,EAAEhI,GAGDkH,IAAM7H,EAAG,MAAO,IAAIF,GAAU4K,IAGnC,IAAI7C,GAAK7H,EAEP,MADA2I,GAAEhI,GAAKX,EACAS,EAAE4M,KAAK1E,EAGhB,IAAI2E,GAAK7M,EAAEL,EAAIkC,EACbiL,EAAK5E,EAAEvI,EAAIkC,EACX2B,EAAKxD,EAAEP,EACPuK,EAAK9B,EAAEzI,CAET,KAAKoN,IAAOC,EAAI,CAGd,IAAKtJ,IAAOwG,EAAI,MAAOxG,IAAM0E,EAAEhI,GAAKX,EAAG2I,GAAK,GAAI7I,GAAU2K,EAAKhK,EAAIiK,IAGnE,KAAKzG,EAAG,KAAOwG,EAAG,GAGhB,MAAOA,GAAG,IAAM9B,EAAEhI,GAAKX,EAAG2I,GAAK,GAAI7I,GAAUmE,EAAG,GAAKxD,EAGnC,GAAjBiB,GAAsB,EAAI,GAS/B,GALA4L,EAAK3C,EAAS2C,GACdC,EAAK5C,EAAS4C,GACdtJ,EAAKA,EAAGrD,QAGJiH,EAAIyF,EAAKC,EAAI,CAaf,KAXIH,EAAW,EAAJvF,IACTA,GAAKA,EACLsF,EAAIlJ,IAEJsJ,EAAKD,EACLH,EAAI1C,GAGN0C,EAAE5E,UAGGvI,EAAI6H,EAAG7H,IAAKmN,EAAE5K,KAAK,IACxB4K,EAAE5E,cAMF,KAFA9E,GAAK2J,GAAQvF,EAAI5D,EAAG5C,SAAWrB,EAAIyK,EAAGpJ,SAAWwG,EAAI7H,EAEhD6H,EAAI7H,EAAI,EAAOyD,EAAJzD,EAAOA,IAErB,GAAIiE,EAAGjE,IAAMyK,EAAGzK,GAAI,CAClBoN,EAAOnJ,EAAGjE,GAAKyK,EAAGzK,EAClB,OAYN,GANIoN,IAAMD,EAAIlJ,EAAIA,EAAKwG,EAAIA,EAAK0C,EAAGxE,EAAEhI,GAAKgI,EAAEhI,GAE5CX,GAAKyD,EAAIgH,EAAGpJ,SAAWhB,EAAI4D,EAAG5C,QAI1BrB,EAAI,EAAG,KAAOA,IAAKiE,EAAG5D,KAAO,GAIjC,IAHAL,EAAIsE,EAAO,EAGJb,EAAIoE,GAAI,CAEb,GAAI5D,IAAKR,GAAKgH,EAAGhH,GAAI,CACnB,IAAKpD,EAAIoD,EAAGpD,IAAM4D,IAAK5D,GAAI4D,EAAG5D,GAAKL,KACjCiE,EAAG5D,GACL4D,EAAGR,IAAMa,EAGXL,EAAGR,IAAMgH,EAAGhH,GAId,KAAgB,GAATQ,EAAG,GAASA,EAAGgE,OAAO,EAAG,KAAMsF,GAGtC,MAAKtJ,GAAG,GAWDT,EAAUmF,EAAG1E,EAAIsJ,IAPtB5E,EAAEhI,EAAqB,GAAjBe,EAAqB,GAAK,EAChCiH,EAAEzI,GAAKyI,EAAEvI,EAAI,GACNuI,IA8BXnE,EAAEgJ,OAAShJ,EAAE2H,IAAM,SAAUxD,EAAG3I,GAC9B,GAAI+J,GAAGpJ,EACLF,EAAIC,IAKN,OAHAiI,GAAI,GAAI7I,GAAU6I,EAAG3I,IAGhBS,EAAEP,IAAMyI,EAAEhI,GAAKgI,EAAEzI,IAAMyI,EAAEzI,EAAE,GACvB,GAAIJ,GAAU4K,MAGX/B,EAAEzI,GAAKO,EAAEP,IAAMO,EAAEP,EAAE,GACtB,GAAIJ,GAAUW,IAGJ,GAAfsE,GAIFpE,EAAIgI,EAAEhI,EACNgI,EAAEhI,EAAI,EACNoJ,EAAIxF,EAAI9D,EAAGkI,EAAG,EAAG,GACjBA,EAAEhI,EAAIA,EACNoJ,EAAEpJ,GAAKA,GAEPoJ,EAAIxF,EAAI9D,EAAGkI,EAAG,EAAG5D,GAGnB4D,EAAIlI,EAAEyM,MAAMnD,EAAEqC,MAAMzD,IAGfA,EAAEzI,EAAE,IAAqB,GAAf6E,IAAkB4D,EAAEhI,EAAIF,EAAEE,GAElCgI,IAwBTnE,EAAEiJ,aAAejJ,EAAE4H,MAAQ,SAAUzD,EAAG3I,GACtC,GAAIE,GAAGE,EAAGC,EAAGoD,EAAGK,EAAGT,EAAGqK,EAAKzE,EAAKC,EAAKyE,EAAKC,EAAKC,EAAKC,EAClD/E,EAAMgF,EACNtN,EAAIC,KACJuD,EAAKxD,EAAEP,EACPuK,GAAM9B,EAAI,GAAI7I,GAAU6I,EAAG3I,IAAIE,CAGjC,MAAK+D,GAAOwG,GAAOxG,EAAG,IAAOwG,EAAG,IAmB9B,OAhBKhK,EAAEE,IAAMgI,EAAEhI,GAAKsD,IAAOA,EAAG,KAAOwG,GAAMA,IAAOA,EAAG,KAAOxG,EAC1D0E,EAAEzI,EAAIyI,EAAEvI,EAAIuI,EAAEhI,EAAI,MAElBgI,EAAEhI,GAAKF,EAAEE,EAGJsD,GAAOwG,GAKV9B,EAAEzI,GAAK,GACPyI,EAAEvI,EAAI,GALNuI,EAAEzI,EAAIyI,EAAEvI,EAAI,MASTuI,CAYT,KATAvI,EAAIuK,EAASlK,EAAEL,EAAIkC,GAAYqI,EAAShC,EAAEvI,EAAIkC,GAC9CqG,EAAEhI,GAAKF,EAAEE,EACT+M,EAAMzJ,EAAG5C,OACTsM,EAAMlD,EAAGpJ,OAGCsM,EAAND,IAAWI,EAAK7J,EAAIA,EAAKwG,EAAIA,EAAKqD,EAAIzN,EAAIqN,EAAKA,EAAMC,EAAKA,EAAMtN,GAG/DA,EAAIqN,EAAMC,EAAKG,KAASzN,IAAKyN,EAAGvL,KAAK,IAK1C,IAHAwG,EAAOzE,EACPyJ,EAAW1E,EAENhJ,EAAIsN,IAAOtN,GAAK,GAAI,CAKvB,IAJAH,EAAI,EACJ0N,EAAMnD,EAAGpK,GAAK0N,EACdF,EAAMpD,EAAGpK,GAAK0N,EAAW,EAEpBjK,EAAI4J,EAAKjK,EAAIpD,EAAIyD,EAAGL,EAAIpD,GAC3B4I,EAAMhF,IAAKH,GAAKiK,EAChB7E,EAAMjF,EAAGH,GAAKiK,EAAW,EACzB1K,EAAIwK,EAAM5E,EAAMC,EAAM0E,EACtB3E,EAAM2E,EAAM3E,EAAQ5F,EAAI0K,EAAYA,EAAYD,EAAGrK,GAAKvD,EACxDA,GAAK+I,EAAMF,EAAO,IAAM1F,EAAI0K,EAAW,GAAKF,EAAM3E,EAClD4E,EAAGrK,KAAOwF,EAAMF,CAGlB+E,GAAGrK,GAAKvD,EASV,MANIA,KACAE,EAEF0N,EAAG7F,OAAO,EAAG,GAGRzE,EAAUmF,EAAGmF,EAAI1N,IAQ1BoE,EAAEwJ,QAAU,WACV,GAAIvN,GAAI,GAAIX,GAAUY,KAEtB,OADAD,GAAEE,GAAKF,EAAEE,GAAK,KACPF,GAwBT+D,EAAE6I,KAAO,SAAU1E,EAAG3I,GACpB,GAAImN,GACF1M,EAAIC,KACJmH,EAAIpH,EAAEE,CAMR,IAJAgI,EAAI,GAAI7I,GAAU6I,EAAG3I,GACrBA,EAAI2I,EAAEhI,GAGDkH,IAAM7H,EAAG,MAAO,IAAIF,GAAU4K,IAGlC,IAAI7C,GAAK7H,EAER,MADA2I,GAAEhI,GAAKX,EACAS,EAAEyM,MAAMvE,EAGjB,IAAI2E,GAAK7M,EAAEL,EAAIkC,EACbiL,EAAK5E,EAAEvI,EAAIkC,EACX2B,EAAKxD,EAAEP,EACPuK,EAAK9B,EAAEzI,CAET,KAAKoN,IAAOC,EAAI,CAGd,IAAKtJ,IAAOwG,EAAI,MAAO,IAAI3K,GAAU+H,EAAI,EAIzC,KAAK5D,EAAG,KAAOwG,EAAG,GAAI,MAAOA,GAAG,GAAK9B,EAAI,GAAI7I,GAAUmE,EAAG,GAAKxD,EAAQ,EAAJoH,GAQrE,GALAyF,EAAK3C,EAAS2C,GACdC,EAAK5C,EAAS4C,GACdtJ,EAAKA,EAAGrD,QAGJiH,EAAIyF,EAAKC,EAAI,CAUf,IATI1F,EAAI,GACN0F,EAAKD,EACLH,EAAI1C,IAEJ5C,GAAKA,EACLsF,EAAIlJ,GAGNkJ,EAAE5E,UACKV,IAAKsF,EAAE5K,KAAK,IACnB4K,EAAE5E,UAUJ,IAPAV,EAAI5D,EAAG5C,OACPrB,EAAIyK,EAAGpJ,OAGK,EAARwG,EAAI7H,IAAOmN,EAAI1C,EAAIA,EAAKxG,EAAIA,EAAKkJ,EAAGnN,EAAI6H,GAGvCA,EAAI,EAAG7H,GACV6H,GAAK5D,IAAKjE,GAAKiE,EAAGjE,GAAKyK,EAAGzK,GAAK6H,GAAKvD,EAAO,EAC3CL,EAAGjE,GAAKsE,IAASL,EAAGjE,GAAK,EAAIiE,EAAGjE,GAAKsE,CAUvC,OAPIuD,KACF5D,GAAM4D,GAAGgB,OAAO5E,KACdsJ,GAKG/J,EAAUmF,EAAG1E,EAAIsJ,IAmB1B/I,EAAEyJ,UAAYzJ,EAAEb,GAAK,SAAUA,EAAIlB,GACjC,GAAIvC,GAAGH,EAAGuG,EACR7F,EAAIC,IAEN,IAAU,MAANiD,GAAcA,MAASA,EAKzB,MAJArC,GAASqC,EAAI,EAAG8C,GACN,MAANhE,EAAYA,EAAKf,EAChBJ,EAASmB,EAAI,EAAG,GAEdjB,EAAM,GAAI1B,GAAUW,GAAIkD,EAAIlB,EAGrC,MAAMvC,EAAIO,EAAEP,GAAI,MAAO,KAIvB,IAHAoG,EAAIpG,EAAEmB,OAAS,EACftB,EAAIuG,EAAIhE,EAAW,EAEfgE,EAAIpG,EAAEoG,GAAI,CAGZ,KAAOA,EAAI,IAAM,EAAGA,GAAK,GAAIvG,KAG7B,IAAKuG,EAAIpG,EAAE,GAAIoG,GAAK,GAAIA,GAAK,GAAIvG,MAKnC,MAFI4D,IAAMlD,EAAEL,EAAI,EAAIL,IAAGA,EAAIU,EAAEL,EAAI,GAE1BL,GAYTyE,EAAE0J,UAAY,SAAUpK,GAEtB,MADAxC,GAASwC,GAAI5B,EAAkBA,GACxBxB,KAAK0L,MAAM,KAAOtI,IAe3BU,EAAE2J,WAAa3J,EAAE4J,KAAO,WACtB,GAAI/K,GAAGtD,EAAG6D,EAAGyK,EAAKlB,EAChB1M,EAAIC,KACJR,EAAIO,EAAEP,EACNS,EAAIF,EAAEE,EACNP,EAAIK,EAAEL,EACNwH,EAAKnG,EAAiB,EACtBmK,EAAO,GAAI9L,GAAU,MAGvB,IAAU,IAANa,IAAYT,IAAMA,EAAE,GACtB,MAAO,IAAIJ,IAAWa,GAAS,EAAJA,KAAWT,GAAKA,EAAE,IAAMwK,IAAMxK,EAAIO,EAAI,EAAI,EA8BvE,IA1BAE,EAAIgH,KAAKyG,MAAM3N,GAIN,GAALE,GAAUA,GAAK,EAAI,GACrBZ,EAAI+C,EAAc5C,IACbH,EAAEsB,OAASjB,GAAK,GAAK,IAAGL,GAAK,KAClCY,EAAIgH,KAAKyG,KAAKrO,GACdK,EAAIuK,GAAUvK,EAAI,GAAK,IAAU,EAAJA,GAASA,EAAI,GAEtCO,GAAK,EAAI,EACXZ,EAAI,KAAOK,GAEXL,EAAIY,EAAEqC,gBACNjD,EAAIA,EAAEa,MAAM,EAAGb,EAAEkB,QAAQ,KAAO,GAAKb,GAGvCwD,EAAI,GAAI9D,GAAUC,IAElB6D,EAAI,GAAI9D,GAAUa,EAAI,IAOpBiD,EAAE1D,EAAE,GAMN,IALAE,EAAIwD,EAAExD,EACNO,EAAIP,EAAIwH,EACA,EAAJjH,IAAOA,EAAI,KAOb,GAHAwM,EAAIvJ,EACJA,EAAIgI,EAAKQ,MAAMe,EAAEE,KAAK9I,EAAI9D,EAAG0M,EAAGvF,EAAI,KAEhC9E,EAAcqK,EAAEjN,GAAKU,MAAM,EAAGD,MAAQZ,EACvC+C,EAAcc,EAAE1D,IAAIU,MAAM,EAAGD,GAAI,CAWlC,GANIiD,EAAExD,EAAIA,KAAKO,EACfZ,EAAIA,EAAEa,MAAMD,EAAI,EAAGA,EAAI,GAKd,QAALZ,IAAgBsO,GAAY,QAALtO,GAgBpB,IAICA,KAAOA,EAAEa,MAAM,IAAqB,KAAfb,EAAE+B,OAAO,MAGlCN,EAAMoC,EAAGA,EAAExD,EAAIqB,EAAiB,EAAG,GACnC4B,GAAKO,EAAEwI,MAAMxI,GAAG2I,GAAG9L,GAGrB,OAvBA,IAAK4N,IACH7M,EAAM2L,EAAGA,EAAE/M,EAAIqB,EAAiB,EAAG,GAE/B0L,EAAEf,MAAMe,GAAGZ,GAAG9L,IAAI,CACpBmD,EAAIuJ,CACJ,OAIJvF,GAAM,EACNjH,GAAK,EACL0N,EAAM,EAkBd,MAAO7M,GAAMoC,EAAGA,EAAExD,EAAIqB,EAAiB,EAAGC,EAAe2B,IAa3DmB,EAAExB,cAAgB,SAAU4E,EAAInF,GAK9B,MAJU,OAANmF,IACFtG,EAASsG,EAAI,EAAGnB,GAChBmB,KAEKpF,EAAO9B,KAAMkH,EAAInF,EAAI,IAgB9B+B,EAAE8J,QAAU,SAAU1G,EAAInF,GAKxB,MAJU,OAANmF,IACFtG,EAASsG,EAAI,EAAGnB,GAChBmB,EAAKA,EAAKlH,KAAKN,EAAI,GAEdoC,EAAO9B,KAAMkH,EAAInF,IAuB1B+B,EAAE+J,SAAW,SAAU3G,EAAInF,GACzB,GAAIjC,GAAME,KAAK4N,QAAQ1G,EAAInF,EAE3B,IAAI/B,KAAKR,EAAG,CACV,GAAIG,GACFiI,EAAM9H,EAAIgO,MAAM,KAChBC,GAAMxJ,EAAOG,UACbsJ,GAAMzJ,EAAOI,mBACbF,EAAiBF,EAAOE,eACxBwJ,EAAUrG,EAAI,GACdsG,EAAetG,EAAI,GACnBuG,EAAQnO,KAAKC,EAAI,EACjBmO,EAAYD,EAAQF,EAAQ/N,MAAM,GAAK+N,EACvCpO,EAAMuO,EAAUzN,MAIlB,IAFIqN,IAAIrO,EAAIoO,EAAIA,EAAKC,EAAIA,EAAKrO,EAAGE,GAAOF,GAEpCoO,EAAK,GAAKlO,EAAM,EAAG,CAIrB,IAHAF,EAAIE,EAAMkO,GAAMA,EAChBE,EAAUG,EAAUC,OAAO,EAAG1O,GAEnBE,EAAJF,EAASA,GAAKoO,EACnBE,GAAWxJ,EAAiB2J,EAAUC,OAAO1O,EAAGoO,EAG9CC,GAAK,IAAGC,GAAWxJ,EAAiB2J,EAAUlO,MAAMP,IACpDwO,IAAOF,EAAU,IAAMA,GAG7BnO,EAAMoO,EACHD,EAAU1J,EAAOC,mBAAqBwJ,GAAMzJ,EAAOM,mBAClDqJ,EAAa1N,QAAQ,GAAI8N,QAAO,OAASN,EAAK,OAAQ,KACvD,KAAOzJ,EAAOK,wBACbsJ,GACDD,EAGL,MAAOnO,IAeTgE,EAAEyK,WAAa,SAAUC,GACvB,GAAI5G,GAAKzE,EAAGsL,EAAIC,EAAIC,EAAIjP,EAAGkP,EAAKvP,EAAGwP,EAAIC,EAAIzF,EAAGpJ,EAC5CF,EAAIC,KACJuD,EAAKxD,EAAEP,CAET,IAAU,MAANgP,IACFnP,EAAI,GAAID,GAAUoP,IAGbnP,EAAEkM,cAAgBlM,EAAEG,GAAa,IAARH,EAAEY,IAAYZ,EAAEqH,GAAGxC,IAC/C,KAAMhD,OACH2E,EAAiB,aACfxG,EAAEkM,YAAc,iBAAmB,oBAAsBiD,EAIlE,KAAKjL,EAAI,MAAOxD,GAAEoC,UAoBlB,KAlBAgB,EAAI,GAAI/D,GAAU8E,GAClB4K,EAAKL,EAAK,GAAIrP,GAAU8E,GACxBwK,EAAKG,EAAK,GAAIzP,GAAU8E,GACxBjE,EAAImC,EAAcmB,GAIlB7D,EAAIyD,EAAEzD,EAAIO,EAAEU,OAASZ,EAAEL,EAAI,EAC3ByD,EAAE3D,EAAE,GAAKiE,GAAUmL,EAAMlP,EAAIkC,GAAY,EAAIA,EAAWgN,EAAMA,GAC9DJ,GAAMA,GAAMnP,EAAEuL,WAAWzH,GAAK,EAAKzD,EAAI,EAAIyD,EAAI2L,EAAMzP,EAErDuP,EAAMlN,EACNA,EAAU,EAAI,EACdrC,EAAI,GAAID,GAAUa,GAGlB4O,EAAGrP,EAAE,GAAK,EAGR6J,EAAIxF,EAAIxE,EAAG8D,EAAG,EAAG,GACjBwL,EAAKF,EAAG9B,KAAKtD,EAAEqC,MAAMgD,IACI,GAArBC,EAAG/D,WAAW4D,IAClBC,EAAKC,EACLA,EAAKC,EACLG,EAAKD,EAAGlC,KAAKtD,EAAEqC,MAAMiD,EAAKG,IAC1BD,EAAKF,EACLxL,EAAI9D,EAAEmN,MAAMnD,EAAEqC,MAAMiD,EAAKxL,IACzB9D,EAAIsP,CAgBN,OAbAA,GAAK9K,EAAI2K,EAAGhC,MAAMiC,GAAKC,EAAI,EAAG,GAC9BG,EAAKA,EAAGlC,KAAKgC,EAAGjD,MAAMoD,IACtBL,EAAKA,EAAG9B,KAAKgC,EAAGjD,MAAMgD,IACtBG,EAAG5O,EAAI6O,EAAG7O,EAAIF,EAAEE,EAChBP,GAAK,EAGLkI,EAAM/D,EAAIiL,EAAIJ,EAAIhP,EAAGsB,GAAewL,MAAMzM,GAAG4K,MAAMC,WAChD/G,EAAIgL,EAAIJ,EAAI/O,EAAGsB,GAAewL,MAAMzM,GAAG4K,OAAS,GAC5CmE,EAAG3M,WAAYuM,EAAGvM,aAClB0M,EAAG1M,WAAYsM,EAAGtM,YAEzBT,EAAUkN,EACHhH,GAOT9D,EAAEiL,SAAW,WACX,OAAQ/O,MAeV8D,EAAEkL,YAAc,SAAU/L,EAAIlB,GAE5B,MADU,OAANkB,GAAYrC,EAASqC,EAAI,EAAG8C,GACzBjE,EAAO9B,KAAMiD,EAAIlB,EAAI,IAe9B+B,EAAE3B,SAAW,SAAU7C,GACrB,GAAIQ,GACFT,EAAIW,KACJC,EAAIZ,EAAEY,EACNP,EAAIL,EAAEK,CA0BR,OAvBU,QAANA,EAEEO,GACFH,EAAM,WACE,EAAJG,IAAOH,EAAM,IAAMA,IAEvBA,EAAM,OAGRA,EAAMsC,EAAc/C,EAAEG,GAEb,MAALF,EACFQ,EAAWuC,GAAL3C,GAAmBA,GAAKyE,EAC3B7B,EAAcxC,EAAKJ,GACnB6C,EAAazC,EAAKJ,EAAG,MAExBkB,EAAStB,EAAG,EAAGuB,EAASF,OAAQ,QAChCb,EAAMyB,EAAYgB,EAAazC,EAAKJ,EAAG,KAAM,GAAIJ,EAAGW,GAAG,IAGjD,EAAJA,GAASZ,EAAEG,EAAE,KAAIM,EAAM,IAAMA,IAG5BA,GAQTgE,EAAEG,QAAUH,EAAEmL,OAAS,WACrB,GAAInP,GACFT,EAAIW,KACJN,EAAIL,EAAEK,CAER,OAAU,QAANA,EAAmBL,EAAE8C,YAEzBrC,EAAMsC,EAAc/C,EAAEG,GAEtBM,EAAWuC,GAAL3C,GAAmBA,GAAKyE,EAC1B7B,EAAcxC,EAAKJ,GACnB6C,EAAazC,EAAKJ,EAAG,KAElBL,EAAEY,EAAI,EAAI,IAAMH,EAAMA,IAI/BgE,EAAEwC,cAAe,EAEG,MAAhBnH,GAAsBC,EAAUqG,IAAItG,GAEjCC,EAOT,QAAS6K,GAAS5K,GAChB,GAAIM,GAAQ,EAAJN,CACR,OAAOA,GAAI,GAAKA,IAAMM,EAAIA,EAAIA,EAAI,EAKpC,QAASyC,GAAc+E,GAMrB,IALA,GAAIlH,GAAGiP,EACLvP,EAAI,EACJoD,EAAIoE,EAAExG,OACNuC,EAAIiE,EAAE,GAAK,GAEFpE,EAAJpD,GAAQ,CAGb,IAFAM,EAAIkH,EAAExH,KAAO,GACbuP,EAAItN,EAAW3B,EAAEU,OACVuO,IAAKjP,EAAI,IAAMA,GACtBiD,GAAKjD,EAIP,IAAK8C,EAAIG,EAAEvC,OAA8B,KAAtBuC,EAAE5C,aAAayC,KAClC,MAAOG,GAAEhD,MAAM,EAAG6C,EAAI,GAAK,GAK7B,QAAS8F,GAAQ9I,EAAGkI,GAClB,GAAId,GAAG7H,EACLiE,EAAKxD,EAAEP,EACPuK,EAAK9B,EAAEzI,EACPG,EAAII,EAAEE,EACN8C,EAAIkF,EAAEhI,EACNmD,EAAIrD,EAAEL,EACNyP,EAAIlH,EAAEvI,CAGR,KAAKC,IAAMoD,EAAG,MAAO,KAMrB,IAJAoE,EAAI5D,IAAOA,EAAG,GACdjE,EAAIyK,IAAOA,EAAG,GAGV5C,GAAK7H,EAAG,MAAO6H,GAAI7H,EAAI,GAAKyD,EAAIpD,CAGpC,IAAIA,GAAKoD,EAAG,MAAOpD,EAMnB,IAJAwH,EAAQ,EAAJxH,EACJL,EAAI8D,GAAK+L,GAGJ5L,IAAOwG,EAAI,MAAOzK,GAAI,GAAKiE,EAAK4D,EAAI,EAAI,EAG7C,KAAK7H,EAAG,MAAO8D,GAAI+L,EAAIhI,EAAI,EAAI,EAK/B,KAHApE,GAAKK,EAAIG,EAAG5C,SAAWwO,EAAIpF,EAAGpJ,QAAUyC,EAAI+L,EAGvCxP,EAAI,EAAOoD,EAAJpD,EAAOA,IAAK,GAAI4D,EAAG5D,IAAMoK,EAAGpK,GAAI,MAAO4D,GAAG5D,GAAKoK,EAAGpK,GAAKwH,EAAI,EAAI,EAG3E,OAAO/D,IAAK+L,EAAI,EAAI/L,EAAI+L,EAAIhI,EAAI,EAAI,GAOtC,QAASvG,GAASvB,EAAGuH,EAAKJ,EAAK4I,GAC7B,GAAQxI,EAAJvH,GAAWA,EAAImH,GAAOnH,KAAW,EAAJA,EAAQsE,EAAStE,GAAKoC,EAAUpC,IAC/D,KAAM6B,OACJ2E,GAAkBuJ,GAAQ,aAA2B,gBAAL/P,GACzCuH,EAAJvH,GAAWA,EAAImH,EAAM,kBAAoB,oBACzC,6BAA+BnH,GAKxC,QAASuD,GAAQ8C,GACf,MAA8C,kBAAvC2J,OAAOtL,UAAU5B,SAASU,KAAK6C,GAKxC,QAAS8F,GAAMnM,GACb,GAAI+D,GAAI/D,EAAEG,EAAEmB,OAAS,CACrB,OAAOsJ,GAAS5K,EAAEK,EAAIkC,IAAawB,GAAK/D,EAAEG,EAAE4D,GAAK,GAAK,EAIxD,QAASd,GAAcxC,EAAKJ,GAC1B,OAAQI,EAAIa,OAAS,EAAIb,EAAIsB,OAAO,GAAK,IAAMtB,EAAII,MAAM,GAAKJ,IACxD,EAAJJ,EAAQ,IAAM,MAAQA,EAI1B,QAAS6C,GAAazC,EAAKJ,EAAGwP,GAC5B,GAAIrP,GAAKyP,CAGT,IAAQ,EAAJ5P,EAAO,CAGT,IAAK4P,EAAKJ,EAAI,MAAOxP,EAAG4P,GAAMJ,GAC9BpP,EAAMwP,EAAKxP,MAOX,IAHAD,EAAMC,EAAIa,SAGJjB,EAAIG,EAAK,CACb,IAAKyP,EAAKJ,EAAGxP,GAAKG,IAAOH,EAAG4P,GAAMJ,GAClCpP,GAAOwP,MACMzP,GAAJH,IACTI,EAAMA,EAAII,MAAM,EAAGR,GAAK,IAAMI,EAAII,MAAMR,GAI5C,OAAOI,GAhrFT,GAAIV,GACFe,EAAY,6CAEZwD,EAAWsD,KAAKsI,KAChB9N,EAAYwF,KAAKuI,MAEjB3J,EAAiB,qBACjB1E,EAAgB0E,EAAiB,yDAEjCjC,EAAO,KACPhC,EAAW,GACXJ,EAAmB,iBAEnBiC,GAAY,EAAG,GAAI,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,KAAM,KAAM,KAAM,MAC7EkF,EAAY,IAKZ5C,EAAM,GAoqFR3G,GAAYF,IACZE,EAAU,WAAaA,EAAUA,UAAYA,EAGxB,kBAAVqQ,SAAwBA,OAAOC,IACxCD,OAAO,WAAc,MAAOrQ,KAGF,mBAAVuQ,SAAyBA,OAAOC,QAChDD,OAAOC,QAAUxQ,GAIZH,IACHA,EAA8B,mBAAR4Q,OAAuBA,KAAOA,KAAOC,QAG7D7Q,EAAaG,UAAYA,IAE1BY"} \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/bignumber.js/bignumber.min.js b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.min.js new file mode 100644 index 0000000..5f60c0c --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.min.js @@ -0,0 +1,3 @@ +/* bignumber.js v7.2.1 https://github.com/MikeMcl/bignumber.js/LICENCE */ +!function(e){"use strict";function r(e){function l(e,r){var n,t,i,s,f,u,c,h,p=this;if(!(p instanceof l))return new l(e,r);if(null==r){if(e instanceof l)return p.s=e.s,p.e=e.e,void(p.c=(e=e.c)?e.slice():e);if(u="number"==typeof e,u&&0*e==0){if(p.s=0>1/e?(e=-e,-1):1,e===~~e){for(s=0,f=e;f>=10;f/=10,s++);return p.e=s,void(p.c=[e])}h=e+""}else{if(!a.test(h=e+""))return _(p,h,u);p.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(s=h.indexOf("."))>-1&&(h=h.replace(".","")),(f=h.search(/e/i))>0?(0>s&&(s=f),s+=+h.slice(f+1),h=h.substring(0,f)):0>s&&(s=h.length)}else{if(o(r,2,q.length,"Base"),h=e+"",10==r)return p=new l(e instanceof l?e:h),R(p,B+p.e+1,U);if(u="number"==typeof e){if(0*e!=0)return _(p,h,u,r);if(p.s=0>1/e?(h=h.slice(1),-1):1,l.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(w+e);u=!1}else p.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(n=q.slice(0,r),s=f=0,c=h.length;c>f;f++)if(n.indexOf(t=h.charAt(f))<0){if("."==t){if(f>s){s=c;continue}}else if(!i&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){i=!0,f=-1,s=0;continue}return _(p,e+"",u,r)}h=P(h,r,10,p.s),(s=h.indexOf("."))>-1?h=h.replace(".",""):s=h.length}for(f=0;48===h.charCodeAt(f);f++);for(c=h.length;48===h.charCodeAt(--c););if(h=h.slice(f,++c)){if(c-=f,u&&l.DEBUG&&c>15&&(e>v||e!==g(e)))throw Error(w+p.s*e);if(s=s-f-1,s>C)p.c=p.e=null;else if(x>s)p.c=[p.e=0];else{if(p.e=s,p.c=[],f=(s+1)%m,0>s&&(f+=m),c>f){for(f&&p.c.push(+h.slice(0,f)),c-=m;c>f;)p.c.push(+h.slice(f,f+=m));h=h.slice(f),f=m-h.length}else f-=c;for(;f--;h+="0");p.c.push(+h)}}else p.c=[p.e=0]}function E(e,r,n,i){var s,f,a,h,g;if(null==n?n=U:o(n,0,8),!e.c)return e.toString();if(s=e.c[0],a=e.e,null==r)g=t(e.c),g=1==i||2==i&&I>=a?u(g,a):c(g,a,"0");else if(e=R(new l(e),r,n),f=e.e,g=t(e.c),h=g.length,1==i||2==i&&(f>=r||I>=f)){for(;r>h;g+="0",h++);g=u(g,f)}else if(r-=a,g=c(g,f,"0"),f+1>h){if(--r>0)for(g+=".";r--;g+="0");}else if(r+=f-h,r>0)for(f+1==h&&(g+=".");r--;g+="0");return e.s<0&&s?"-"+g:g}function b(e,r){var n,t,i=0;for(s(e[0])&&(e=e[0]),n=new l(e[0]);++i=10;i/=10,t++);return(n=t+n*m-1)>C?e.c=e.e=null:x>n?e.c=[e.e=0]:(e.e=n,e.c=r),e}function R(e,r,n,t){var i,o,s,f,u,c,l,a=e.c,p=O;if(a){e:{for(i=1,f=a[0];f>=10;f/=10,i++);if(o=r-i,0>o)o+=m,s=r,u=a[c=0],l=u/p[i-s-1]%10|0;else if(c=h((o+1)/m),c>=a.length){if(!t)break e;for(;a.length<=c;a.push(0));u=l=0,i=1,o%=m,s=o-m+1}else{for(u=f=a[c],i=1;f>=10;f/=10,i++);o%=m,s=o-m+i,l=0>s?0:u/p[i-s-1]%10|0}if(t=t||0>r||null!=a[c+1]||(0>s?u:u%p[i-s-1]),t=4>n?(l||t)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||t||6==n&&(o>0?s>0?u/p[i-s]:0:a[c-1])%10&1||n==(e.s<0?8:7)),1>r||!a[0])return a.length=0,t?(r-=e.e+1,a[0]=p[(m-r%m)%m],e.e=-r||0):a[0]=e.e=0,e;if(0==o?(a.length=c,f=1,c--):(a.length=c+1,f=p[m-o],a[c]=s>0?g(u/p[i-s]%p[s])*f:0),t)for(;;){if(0==c){for(o=1,s=a[0];s>=10;s/=10,o++);for(s=a[0]+=f,f=1;s>=10;s/=10,f++);o!=f&&(e.e++,a[0]==d&&(a[0]=1));break}if(a[c]+=f,a[c]!=d)break;a[c--]=0,f=1}for(o=a.length;0===a[--o];a.pop());}e.e>C?e.c=e.e=null:e.en?-n:n))),e.hasOwnProperty(r="RANGE"))if(n=e[r],s(n))o(n[0],-y,-1,r),o(n[1],1,y,r),x=n[0],C=n[1];else{if(o(n,-y,y,r),!n)throw Error(p+r+" cannot be zero: "+n);x=-(C=0>n?-n:n)}if(e.hasOwnProperty(r="CRYPTO")){if(n=e[r],n!==!!n)throw Error(p+r+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw M=!n,Error(p+"crypto unavailable");M=n}else M=n}if(e.hasOwnProperty(r="MODULO_MODE")&&(n=e[r],o(n,0,9,r),G=n),e.hasOwnProperty(r="POW_PRECISION")&&(n=e[r],o(n,0,y,r),F=n),e.hasOwnProperty(r="FORMAT")){if(n=e[r],"object"!=typeof n)throw Error(p+r+" not an object: "+n);k=n}if(e.hasOwnProperty(r="ALPHABET")){if(n=e[r],"string"!=typeof n||/^.$|\.|(.).*\1/.test(n))throw Error(p+r+" invalid: "+n);q=n}}return{DECIMAL_PLACES:B,ROUNDING_MODE:U,EXPONENTIAL_AT:[I,T],RANGE:[x,C],CRYPTO:M,MODULO_MODE:G,POW_PRECISION:F,FORMAT:k,ALPHABET:q}},l.isBigNumber=function(e){return e instanceof l||e&&e._isBigNumber===!0||!1},l.maximum=l.max=function(){return b(arguments,D.lt)},l.minimum=l.min=function(){return b(arguments,D.gt)},l.random=function(){var e=9007199254740992,r=Math.random()*e&2097151?function(){return g(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,t,i,s,f,u=0,c=[],a=new l(L);if(null==e?e=B:o(e,0,y),s=h(e/m),M)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(s*=2));s>u;)f=131072*n[u]+(n[u+1]>>>11),f>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),n[u]=t[0],n[u+1]=t[1]):(c.push(f%1e14),u+=2);u=s/2}else{if(!crypto.randomBytes)throw M=!1,Error(p+"crypto unavailable");for(n=crypto.randomBytes(s*=7);s>u;)f=281474976710656*(31&n[u])+1099511627776*n[u+1]+4294967296*n[u+2]+16777216*n[u+3]+(n[u+4]<<16)+(n[u+5]<<8)+n[u+6],f>=9e15?crypto.randomBytes(7).copy(n,u):(c.push(f%1e14),u+=7);u=s/7}if(!M)for(;s>u;)f=r(),9e15>f&&(c[u++]=f%1e14);for(s=c[--u],e%=m,s&&e&&(f=O[m-e],c[u]=g(s/f)*f);0===c[u];c.pop(),u--);if(0>u)c=[i=0];else{for(i=-1;0===c[0];c.splice(0,1),i-=m);for(u=1,f=c[0];f>=10;f/=10,u++);m>u&&(i-=m-u)}return a.e=i,a.c=c,a}}(),P=function(){function e(e,r,n,t){for(var i,o,s=[0],f=0,u=e.length;u>f;){for(o=s.length;o--;s[o]*=r);for(s[0]+=t.indexOf(e.charAt(f++)),i=0;in-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}var r="0123456789";return function(n,i,o,s,f){var u,a,h,g,p,w,d,m,v=n.indexOf("."),O=B,N=U;for(v>=0&&(g=F,F=0,n=n.replace(".",""),m=new l(i),w=m.pow(n.length-v),F=g,m.c=e(c(t(w.c),w.e,"0"),10,o,r),m.e=m.c.length),d=e(n,i,o,f?(u=q,r):(u=r,q)),h=g=d.length;0==d[--g];d.pop());if(!d[0])return u.charAt(0);if(0>v?--h:(w.c=d,w.e=h,w.s=s,w=S(w,m,O,N,o),d=w.c,p=w.r,h=w.e),a=h+O+1,v=d[a],g=o/2,p=p||0>a||null!=d[a+1],p=4>N?(null!=v||p)&&(0==N||N==(w.s<0?3:2)):v>g||v==g&&(4==N||p||6==N&&1&d[a-1]||N==(w.s<0?8:7)),1>a||!d[0])n=p?c(u.charAt(1),-O,u.charAt(0)):u.charAt(0);else{if(d.length=a,p)for(--o;++d[--a]>o;)d[a]=0,a||(++h,d=[1].concat(d));for(g=d.length;!d[--g];);for(v=0,n="";g>=v;n+=u.charAt(d[v++]));n=c(n,h,u.charAt(0))}return n}}(),S=function(){function e(e,r,n){var t,i,o,s,f=0,u=e.length,c=r%N,l=r/N|0;for(e=e.slice();u--;)o=e[u]%N,s=e[u]/N|0,t=l*o+s*c,i=c*o+t%N*N+f,f=(i/n|0)+(t/N|0)+l*s,e[u]=i%n;return f&&(e=[f].concat(e)),e}function r(e,r,n,t){var i,o;if(n!=t)o=n>t?1:-1;else for(i=o=0;n>i;i++)if(e[i]!=r[i]){o=e[i]>r[i]?1:-1;break}return o}function t(e,r,n,t){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(i,o,s,f,u){var c,a,h,p,w,v,O,N,y,E,b,A,S,P,_,D,L,B=i.s==o.s?1:-1,U=i.c,I=o.c;if(!(U&&U[0]&&I&&I[0]))return new l(i.s&&o.s&&(U?!I||U[0]!=I[0]:I)?U&&0==U[0]||!I?0*B:B/0:NaN);for(N=new l(B),y=N.c=[],a=i.e-o.e,B=s+a+1,u||(u=d,a=n(i.e/m)-n(o.e/m),B=B/m|0),h=0;I[h]==(U[h]||0);h++);if(I[h]>(U[h]||0)&&a--,0>B)y.push(1),p=!0;else{for(P=U.length,D=I.length,h=0,B+=2,w=g(u/(I[0]+1)),w>1&&(I=e(I,w,u),U=e(U,w,u),D=I.length,P=U.length),S=D,E=U.slice(0,D),b=E.length;D>b;E[b++]=0);L=I.slice(),L=[0].concat(L),_=I[0],I[1]>=u/2&&_++;do{if(w=0,c=r(I,E,D,b),0>c){if(A=E[0],D!=b&&(A=A*u+(E[1]||0)),w=g(A/_),w>1)for(w>=u&&(w=u-1),v=e(I,w,u),O=v.length,b=E.length;1==r(v,E,O,b);)w--,t(v,O>D?L:I,O,u),O=v.length,c=1;else 0==w&&(c=w=1),v=I.slice(),O=v.length;if(b>O&&(v=[0].concat(v)),t(E,v,b,u),b=E.length,-1==c)for(;r(I,E,D,b)<1;)w++,t(E,b>D?L:I,b,u),b=E.length}else 0===c&&(w++,E=[0]);y[h++]=w,E[0]?E[b++]=U[S]||0:(E=[U[S]],b=1)}while((S++=10;B/=10,h++);R(N,s+(N.e=h+a*m-1)+1,f,p)}else N.e=a,N.r=+p;return N}}(),_=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,n=/^\.([^.]+)$/,t=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,s,f,u){var c,a=f?s:s.replace(i,"");if(t.test(a))o.s=isNaN(a)?null:0>a?-1:1,o.c=o.e=null;else{if(!f&&(a=a.replace(e,function(e,r,n){return c="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=c?e:r}),u&&(c=u,a=a.replace(r,"$1").replace(n,"0.$1")),s!=a))return new l(a,c);if(l.DEBUG)throw Error(p+"Not a"+(u?" base "+u:"")+" number: "+s);o.c=o.e=o.s=null}}}(),D.absoluteValue=D.abs=function(){var e=new l(this);return e.s<0&&(e.s=1),e},D.comparedTo=function(e,r){return i(this,new l(e,r))},D.decimalPlaces=D.dp=function(e,r){var t,i,s,f=this;if(null!=e)return o(e,0,y),null==r?r=U:o(r,0,8),R(new l(f),e+f.e+1,r);if(!(t=f.c))return null;if(i=((s=t.length-1)-n(this.e/m))*m,s=t[s])for(;s%10==0;s/=10,i--);return 0>i&&(i=0),i},D.dividedBy=D.div=function(e,r){return S(this,new l(e,r),B,U)},D.dividedToIntegerBy=D.idiv=function(e,r){return S(this,new l(e,r),0,1)},D.exponentiatedBy=D.pow=function(e,r){var n,t,i,o,s,u,c,a,w=this;if(e=new l(e),e.c&&!e.isInteger())throw Error(p+"Exponent not an integer: "+e);if(null!=r&&(r=new l(r)),s=e.e>14,!w.c||!w.c[0]||1==w.c[0]&&!w.e&&1==w.c.length||!e.c||!e.c[0])return a=new l(Math.pow(+w.valueOf(),s?2-f(e):+e)),r?a.mod(r):a;if(u=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new l(NaN);t=!u&&w.isInteger()&&r.isInteger(),t&&(w=w.mod(r))}else{if(e.e>9&&(w.e>0||w.e<-1||(0==w.e?w.c[0]>1||s&&w.c[1]>=24e7:w.c[0]<8e13||s&&w.c[0]<=9999975e7)))return i=w.s<0&&f(e)?-0:0,w.e>-1&&(i=1/i),new l(u?1/i:i);F&&(i=h(F/m+2))}for(s?(n=new l(.5),c=f(e)):c=e%2,u&&(e.s=1),a=new l(L);;){if(c){if(a=a.times(w),!a.c)break;i?a.c.length>i&&(a.c.length=i):t&&(a=a.mod(r))}if(s){if(e=e.times(n),R(e,e.e+1,1),!e.c[0])break;s=e.e>14,c=f(e)}else{if(e=g(e/2),!e)break;c=e%2}w=w.times(w),i?w.c&&w.c.length>i&&(w.c.length=i):t&&(w=w.mod(r))}return t?a:(u&&(a=L.div(a)),r?a.mod(r):i?R(a,F,U,o):a)},D.integerValue=function(e){var r=new l(this);return null==e?e=U:o(e,0,8),R(r,r.e+1,e)},D.isEqualTo=D.eq=function(e,r){return 0===i(this,new l(e,r))},D.isFinite=function(){return!!this.c},D.isGreaterThan=D.gt=function(e,r){return i(this,new l(e,r))>0},D.isGreaterThanOrEqualTo=D.gte=function(e,r){return 1===(r=i(this,new l(e,r)))||0===r},D.isInteger=function(){return!!this.c&&n(this.e/m)>this.c.length-2},D.isLessThan=D.lt=function(e,r){return i(this,new l(e,r))<0},D.isLessThanOrEqualTo=D.lte=function(e,r){return-1===(r=i(this,new l(e,r)))||0===r},D.isNaN=function(){return!this.s},D.isNegative=function(){return this.s<0},D.isPositive=function(){return this.s>0},D.isZero=function(){return!!this.c&&0==this.c[0]},D.minus=function(e,r){var t,i,o,s,f=this,u=f.s;if(e=new l(e,r),r=e.s,!u||!r)return new l(NaN);if(u!=r)return e.s=-r,f.plus(e);var c=f.e/m,a=e.e/m,h=f.c,g=e.c;if(!c||!a){if(!h||!g)return h?(e.s=-r,e):new l(g?f:NaN);if(!h[0]||!g[0])return g[0]?(e.s=-r,e):new l(h[0]?f:3==U?-0:0)}if(c=n(c),a=n(a),h=h.slice(),u=c-a){for((s=0>u)?(u=-u,o=h):(a=c,o=g),o.reverse(),r=u;r--;o.push(0));o.reverse()}else for(i=(s=(u=h.length)<(r=g.length))?u:r,u=r=0;i>r;r++)if(h[r]!=g[r]){s=h[r]0)for(;r--;h[t++]=0);for(r=d-1;i>u;){if(h[--i]c&&(v=b,b=R,R=v,o=c,c=g,g=o),o=c+g,v=[];o--;v.push(0));for(O=d,y=N,o=g;--o>=0;){for(t=0,p=R[o]%y,w=R[o]/y|0,f=c,s=o+f;s>o;)a=b[--f]%y,h=b[f]/y|0,u=w*a+h*p,a=p*a+u%y*y+v[s]+t,t=(a/O|0)+(u/y|0)+w*h,v[s--]=a%O;v[s]=t}return t?++i:v.splice(0,1),A(e,v,i)},D.negated=function(){var e=new l(this);return e.s=-e.s||null,e},D.plus=function(e,r){var t,i=this,o=i.s;if(e=new l(e,r),r=e.s,!o||!r)return new l(NaN);if(o!=r)return e.s=-r,i.minus(e);var s=i.e/m,f=e.e/m,u=i.c,c=e.c;if(!s||!f){if(!u||!c)return new l(o/0);if(!u[0]||!c[0])return c[0]?e:new l(u[0]?i:0*o)}if(s=n(s),f=n(f),u=u.slice(),o=s-f){for(o>0?(f=s,t=c):(o=-o,t=u),t.reverse();o--;t.push(0));t.reverse()}for(o=u.length,r=c.length,0>o-r&&(t=c,c=u,u=t,r=o),o=0;r;)o=(u[--r]=u[r]+c[r]+o)/d|0,u[r]=d===u[r]?0:u[r]%d;return o&&(u=[o].concat(u),++f),A(e,u,f)},D.precision=D.sd=function(e,r){var n,t,i,s=this;if(null!=e&&e!==!!e)return o(e,1,y),null==r?r=U:o(r,0,8),R(new l(s),e,r);if(!(n=s.c))return null;if(i=n.length-1,t=i*m+1,i=n[i]){for(;i%10==0;i/=10,t--);for(i=n[0];i>=10;i/=10,t++);}return e&&s.e+1>t&&(t=s.e+1),t},D.shiftedBy=function(e){return o(e,-v,v),this.times("1e"+e)},D.squareRoot=D.sqrt=function(){var e,r,i,o,s,f=this,u=f.c,c=f.s,a=f.e,h=B+4,g=new l("0.5");if(1!==c||!u||!u[0])return new l(!c||0>c&&(!u||u[0])?NaN:u?f:1/0);if(c=Math.sqrt(+f),0==c||c==1/0?(r=t(u),(r.length+a)%2==0&&(r+="0"),c=Math.sqrt(r),a=n((a+1)/2)-(0>a||a%2),c==1/0?r="1e"+a:(r=c.toExponential(),r=r.slice(0,r.indexOf("e")+1)+a),i=new l(r)):i=new l(c+""),i.c[0])for(a=i.e,c=a+h,3>c&&(c=0);;)if(s=i,i=g.times(s.plus(S(f,s,h,1))),t(s.c).slice(0,c)===(r=t(i.c)).slice(0,c)){if(i.e0&&h>0){for(t=h%o||o,u=a.substr(0,t);h>t;t+=o)u+=f+a.substr(t,o);s>0&&(u+=f+a.slice(t)),l&&(u="-"+u)}n=c?u+k.decimalSeparator+((s=+k.fractionGroupSize)?c.replace(new RegExp("\\d{"+s+"}\\B","g"),"$&"+k.fractionGroupSeparator):c):u}return n},D.toFraction=function(e){var r,n,i,o,s,f,u,c,a,h,g,w,d=this,v=d.c;if(null!=e&&(c=new l(e),!c.isInteger()&&(c.c||1!==c.s)||c.lt(L)))throw Error(p+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+e);if(!v)return d.toString();for(n=new l(L),h=i=new l(L),o=a=new l(L),w=t(v),f=n.e=w.length-d.e-1,n.c[0]=O[(u=f%m)<0?m+u:u],e=!e||c.comparedTo(n)>0?f>0?n:h:c,u=C,C=1/0,c=new l(w),a.c[0]=0;g=S(c,n,0,1),s=i.plus(g.times(o)),1!=s.comparedTo(e);)i=o,o=s,h=a.plus(g.times(s=h)),a=s,n=c.minus(g.times(s=n)),c=s;return s=S(e.minus(i),o,0,1),a=a.plus(s.times(h)),i=i.plus(s.times(o)),a.s=h.s=d.s,f*=2,r=S(h,o,f,U).minus(d).abs().comparedTo(S(a,i,f,U).minus(d).abs())<1?[h.toString(),o.toString()]:[a.toString(),i.toString()],C=u,r},D.toNumber=function(){return+this},D.toPrecision=function(e,r){return null!=e&&o(e,1,y),E(this,e,r,2)},D.toString=function(e){var r,n=this,i=n.s,s=n.e;return null===s?i?(r="Infinity",0>i&&(r="-"+r)):r="NaN":(r=t(n.c),null==e?r=I>=s||s>=T?u(r,s):c(r,s,"0"):(o(e,2,q.length,"Base"),r=P(c(r,s,"0"),10,e,i,!0)),0>i&&n.c[0]&&(r="-"+r)),r},D.valueOf=D.toJSON=function(){var e,r=this,n=r.e;return null===n?r.toString():(e=t(r.c),e=I>=n||n>=T?u(e,n):c(e,n,"0"),r.s<0?"-"+e:e)},D._isBigNumber=!0,null!=e&&l.set(e),l}function n(e){var r=0|e;return e>0||e===r?r:r-1}function t(e){for(var r,n,t=1,i=e.length,o=e[0]+"";i>t;){for(r=e[t++]+"",n=m-r.length;n--;r="0"+r);o+=r}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function i(e,r){var n,t,i=e.c,o=r.c,s=e.s,f=r.s,u=e.e,c=r.e;if(!s||!f)return null;if(n=i&&!i[0],t=o&&!o[0],n||t)return n?t?0:-f:s;if(s!=f)return s;if(n=0>s,t=u==c,!i||!o)return t?0:!i^n?1:-1;if(!t)return u>c^n?1:-1;for(f=(u=i.length)<(c=o.length)?u:c,s=0;f>s;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return u==c?0:u>c^n?1:-1}function o(e,r,n,t){if(r>e||e>n||e!==(0>e?h(e):g(e)))throw Error(p+(t||"Argument")+("number"==typeof e?r>e||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+e)}function s(e){return"[object Array]"==Object.prototype.toString.call(e)}function f(e){var r=e.c.length-1;return n(e.e/m)==r&&e.c[r]%2!=0}function u(e,r){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(0>r?"e":"e+")+r}function c(e,r,n){var t,i;if(0>r){for(i=n+".";++r;i+=n);e=i+e}else if(t=e.length,++r>t){for(i=n,r-=t;--r;i+=n);e+=i}else t>r&&(e=e.slice(0,r)+"."+e.slice(r));return e}var l,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,h=Math.ceil,g=Math.floor,p="[BigNumber Error] ",w=p+"Number primitive has more than 15 significant digits: ",d=1e14,m=14,v=9007199254740991,O=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],N=1e7,y=1e9;l=r(),l["default"]=l.BigNumber=l,"function"==typeof define&&define.amd?define(function(){return l}):"undefined"!=typeof module&&module.exports?module.exports=l:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=l)}(this); +//# sourceMappingURL=bignumber.js.map \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/bignumber.js/bignumber.mjs b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.mjs new file mode 100644 index 0000000..826b910 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/bignumber.mjs @@ -0,0 +1,2793 @@ +/* + * bignumber.js v7.2.1 + * A JavaScript library for arbitrary-precision arithmetic. + * https://github.com/MikeMcl/bignumber.js + * Copyright (c) 2018 Michael Mclaughlin + * MIT Licensed. + * + * BigNumber.prototype methods | BigNumber methods + * | + * absoluteValue abs | clone + * comparedTo | config set + * decimalPlaces dp | DECIMAL_PLACES + * dividedBy div | ROUNDING_MODE + * dividedToIntegerBy idiv | EXPONENTIAL_AT + * exponentiatedBy pow | RANGE + * integerValue | CRYPTO + * isEqualTo eq | MODULO_MODE + * isFinite | POW_PRECISION + * isGreaterThan gt | FORMAT + * isGreaterThanOrEqualTo gte | ALPHABET + * isInteger | isBigNumber + * isLessThan lt | maximum max + * isLessThanOrEqualTo lte | minimum min + * isNaN | random + * isNegative | + * isPositive | + * isZero | + * minus | + * modulo mod | + * multipliedBy times | + * negated | + * plus | + * precision sd | + * shiftedBy | + * squareRoot sqrt | + * toExponential | + * toFixed | + * toFormat | + * toFraction | + * toJSON | + * toNumber | + * toPrecision | + * toString | + * valueOf | + * + */ + + +var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, + + mathceil = Math.ceil, + mathfloor = Math.floor, + + bignumberError = '[BigNumber Error] ', + tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ', + + BASE = 1e14, + LOG_BASE = 14, + MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1 + // MAX_INT32 = 0x7fffffff, // 2^31 - 1 + POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], + SQRT_BASE = 1e7, + + // EDITABLE + // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and + // the arguments to toExponential, toFixed, toFormat, and toPrecision. + MAX = 1E9; // 0 to MAX_INT32 + + +/* + * Create and return a BigNumber constructor. + */ +function clone(configObject) { + var div, convertBase, parseNumeric, + P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null }, + ONE = new BigNumber(1), + + + //----------------------------- EDITABLE CONFIG DEFAULTS ------------------------------- + + + // The default values below must be integers within the inclusive ranges stated. + // The values can also be changed at run-time using BigNumber.set. + + // The maximum number of decimal places for operations involving division. + DECIMAL_PLACES = 20, // 0 to MAX + + // The rounding mode used when rounding to the above decimal places, and when using + // toExponential, toFixed, toFormat and toPrecision, and round (default value). + // UP 0 Away from zero. + // DOWN 1 Towards zero. + // CEIL 2 Towards +Infinity. + // FLOOR 3 Towards -Infinity. + // HALF_UP 4 Towards nearest neighbour. If equidistant, up. + // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. + // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. + // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. + // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. + ROUNDING_MODE = 4, // 0 to 8 + + // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS] + + // The exponent value at and beneath which toString returns exponential notation. + // Number type: -7 + TO_EXP_NEG = -7, // 0 to -MAX + + // The exponent value at and above which toString returns exponential notation. + // Number type: 21 + TO_EXP_POS = 21, // 0 to MAX + + // RANGE : [MIN_EXP, MAX_EXP] + + // The minimum exponent value, beneath which underflow to zero occurs. + // Number type: -324 (5e-324) + MIN_EXP = -1e7, // -1 to -MAX + + // The maximum exponent value, above which overflow to Infinity occurs. + // Number type: 308 (1.7976931348623157e+308) + // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow. + MAX_EXP = 1e7, // 1 to MAX + + // Whether to use cryptographically-secure random number generation, if available. + CRYPTO = false, // true or false + + // The modulo mode used when calculating the modulus: a mod n. + // The quotient (q = a / n) is calculated according to the corresponding rounding mode. + // The remainder (r) is calculated as: r = a - n * q. + // + // UP 0 The remainder is positive if the dividend is negative, else is negative. + // DOWN 1 The remainder has the same sign as the dividend. + // This modulo mode is commonly known as 'truncated division' and is + // equivalent to (a % n) in JavaScript. + // FLOOR 3 The remainder has the same sign as the divisor (Python %). + // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function. + // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). + // The remainder is always positive. + // + // The truncated division, floored division, Euclidian division and IEEE 754 remainder + // modes are commonly used for the modulus operation. + // Although the other rounding modes can also be used, they may not give useful results. + MODULO_MODE = 1, // 0 to 9 + + // The maximum number of significant digits of the result of the exponentiatedBy operation. + // If POW_PRECISION is 0, there will be unlimited significant digits. + POW_PRECISION = 0, // 0 to MAX + + // The format specification used by the BigNumber.prototype.toFormat method. + FORMAT = { + decimalSeparator: '.', + groupSeparator: ',', + groupSize: 3, + secondaryGroupSize: 0, + fractionGroupSeparator: '\xA0', // non-breaking space + fractionGroupSize: 0 + }, + + // The alphabet used for base conversion. + // It must be at least 2 characters long, with no '.' or repeated character. + // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_' + ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz'; + + + //------------------------------------------------------------------------------------------ + + + // CONSTRUCTOR + + + /* + * The BigNumber constructor and exported function. + * Create and return a new instance of a BigNumber object. + * + * n {number|string|BigNumber} A numeric value. + * [b] {number} The base of n. Integer, 2 to ALPHABET.length inclusive. + */ + function BigNumber(n, b) { + var alphabet, c, caseChanged, e, i, isNum, len, str, + x = this; + + // Enable constructor usage without new. + if (!(x instanceof BigNumber)) { + + // Don't throw on constructor call without new (#81). + // '[BigNumber Error] Constructor call without new: {n}' + //throw Error(bignumberError + ' Constructor call without new: ' + n); + return new BigNumber(n, b); + } + + if (b == null) { + + // Duplicate. + if (n instanceof BigNumber) { + x.s = n.s; + x.e = n.e; + x.c = (n = n.c) ? n.slice() : n; + return; + } + + isNum = typeof n == 'number'; + + if (isNum && n * 0 == 0) { + + // Use `1 / n` to handle minus zero also. + x.s = 1 / n < 0 ? (n = -n, -1) : 1; + + // Faster path for integers. + if (n === ~~n) { + for (e = 0, i = n; i >= 10; i /= 10, e++); + x.e = e; + x.c = [n]; + return; + } + + str = n + ''; + } else { + if (!isNumeric.test(str = n + '')) return parseNumeric(x, str, isNum); + x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1; + } + + // Decimal point? + if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + + // Exponential form? + if ((i = str.search(/e/i)) > 0) { + + // Determine exponent. + if (e < 0) e = i; + e += +str.slice(i + 1); + str = str.substring(0, i); + } else if (e < 0) { + + // Integer. + e = str.length; + } + + } else { + + // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' + intCheck(b, 2, ALPHABET.length, 'Base'); + str = n + ''; + + // Allow exponential notation to be used with base 10 argument, while + // also rounding to DECIMAL_PLACES as with other bases. + if (b == 10) { + x = new BigNumber(n instanceof BigNumber ? n : str); + return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE); + } + + isNum = typeof n == 'number'; + + if (isNum) { + + // Avoid potential interpretation of Infinity and NaN as base 44+ values. + if (n * 0 != 0) return parseNumeric(x, str, isNum, b); + + x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1; + + // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' + if (BigNumber.DEBUG && str.replace(/^0\.0*|\./, '').length > 15) { + throw Error + (tooManyDigits + n); + } + + // Prevent later check for length on converted number. + isNum = false; + } else { + x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1; + } + + alphabet = ALPHABET.slice(0, b); + e = i = 0; + + // Check that str is a valid base b number. + // Don't use RegExp so alphabet can contain special characters. + for (len = str.length; i < len; i++) { + if (alphabet.indexOf(c = str.charAt(i)) < 0) { + if (c == '.') { + + // If '.' is not the first character and it has not be found before. + if (i > e) { + e = len; + continue; + } + } else if (!caseChanged) { + + // Allow e.g. hexadecimal 'FF' as well as 'ff'. + if (str == str.toUpperCase() && (str = str.toLowerCase()) || + str == str.toLowerCase() && (str = str.toUpperCase())) { + caseChanged = true; + i = -1; + e = 0; + continue; + } + } + + return parseNumeric(x, n + '', isNum, b); + } + } + + str = convertBase(str, b, 10, x.s); + + // Decimal point? + if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + else e = str.length; + } + + // Determine leading zeros. + for (i = 0; str.charCodeAt(i) === 48; i++); + + // Determine trailing zeros. + for (len = str.length; str.charCodeAt(--len) === 48;); + + str = str.slice(i, ++len); + + if (str) { + len -= i; + + // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' + if (isNum && BigNumber.DEBUG && + len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) { + throw Error + (tooManyDigits + (x.s * n)); + } + + e = e - i - 1; + + // Overflow? + if (e > MAX_EXP) { + + // Infinity. + x.c = x.e = null; + + // Underflow? + } else if (e < MIN_EXP) { + + // Zero. + x.c = [x.e = 0]; + } else { + x.e = e; + x.c = []; + + // Transform base + + // e is the base 10 exponent. + // i is where to slice str to get the first element of the coefficient array. + i = (e + 1) % LOG_BASE; + if (e < 0) i += LOG_BASE; + + if (i < len) { + if (i) x.c.push(+str.slice(0, i)); + + for (len -= LOG_BASE; i < len;) { + x.c.push(+str.slice(i, i += LOG_BASE)); + } + + str = str.slice(i); + i = LOG_BASE - str.length; + } else { + i -= len; + } + + for (; i--; str += '0'); + x.c.push(+str); + } + } else { + + // Zero. + x.c = [x.e = 0]; + } + } + + + // CONSTRUCTOR PROPERTIES + + + BigNumber.clone = clone; + + BigNumber.ROUND_UP = 0; + BigNumber.ROUND_DOWN = 1; + BigNumber.ROUND_CEIL = 2; + BigNumber.ROUND_FLOOR = 3; + BigNumber.ROUND_HALF_UP = 4; + BigNumber.ROUND_HALF_DOWN = 5; + BigNumber.ROUND_HALF_EVEN = 6; + BigNumber.ROUND_HALF_CEIL = 7; + BigNumber.ROUND_HALF_FLOOR = 8; + BigNumber.EUCLID = 9; + + + /* + * Configure infrequently-changing library-wide settings. + * + * Accept an object with the following optional properties (if the value of a property is + * a number, it must be an integer within the inclusive range stated): + * + * DECIMAL_PLACES {number} 0 to MAX + * ROUNDING_MODE {number} 0 to 8 + * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX] + * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX] + * CRYPTO {boolean} true or false + * MODULO_MODE {number} 0 to 9 + * POW_PRECISION {number} 0 to MAX + * ALPHABET {string} A string of two or more unique characters which does + * not contain '.'. + * FORMAT {object} An object with some of the following properties: + * decimalSeparator {string} + * groupSeparator {string} + * groupSize {number} + * secondaryGroupSize {number} + * fractionGroupSeparator {string} + * fractionGroupSize {number} + * + * (The values assigned to the above FORMAT object properties are not checked for validity.) + * + * E.g. + * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 }) + * + * Ignore properties/parameters set to null or undefined, except for ALPHABET. + * + * Return an object with the properties current values. + */ + BigNumber.config = BigNumber.set = function (obj) { + var p, v; + + if (obj != null) { + + if (typeof obj == 'object') { + + // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive. + // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) { + v = obj[p]; + intCheck(v, 0, MAX, p); + DECIMAL_PLACES = v; + } + + // ROUNDING_MODE {number} Integer, 0 to 8 inclusive. + // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) { + v = obj[p]; + intCheck(v, 0, 8, p); + ROUNDING_MODE = v; + } + + // EXPONENTIAL_AT {number|number[]} + // Integer, -MAX to MAX inclusive or + // [integer -MAX to 0 inclusive, 0 to MAX inclusive]. + // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) { + v = obj[p]; + if (isArray(v)) { + intCheck(v[0], -MAX, 0, p); + intCheck(v[1], 0, MAX, p); + TO_EXP_NEG = v[0]; + TO_EXP_POS = v[1]; + } else { + intCheck(v, -MAX, MAX, p); + TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v); + } + } + + // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or + // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive]. + // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}' + if (obj.hasOwnProperty(p = 'RANGE')) { + v = obj[p]; + if (isArray(v)) { + intCheck(v[0], -MAX, -1, p); + intCheck(v[1], 1, MAX, p); + MIN_EXP = v[0]; + MAX_EXP = v[1]; + } else { + intCheck(v, -MAX, MAX, p); + if (v) { + MIN_EXP = -(MAX_EXP = v < 0 ? -v : v); + } else { + throw Error + (bignumberError + p + ' cannot be zero: ' + v); + } + } + } + + // CRYPTO {boolean} true or false. + // '[BigNumber Error] CRYPTO not true or false: {v}' + // '[BigNumber Error] crypto unavailable' + if (obj.hasOwnProperty(p = 'CRYPTO')) { + v = obj[p]; + if (v === !!v) { + if (v) { + if (typeof crypto != 'undefined' && crypto && + (crypto.getRandomValues || crypto.randomBytes)) { + CRYPTO = v; + } else { + CRYPTO = !v; + throw Error + (bignumberError + 'crypto unavailable'); + } + } else { + CRYPTO = v; + } + } else { + throw Error + (bignumberError + p + ' not true or false: ' + v); + } + } + + // MODULO_MODE {number} Integer, 0 to 9 inclusive. + // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'MODULO_MODE')) { + v = obj[p]; + intCheck(v, 0, 9, p); + MODULO_MODE = v; + } + + // POW_PRECISION {number} Integer, 0 to MAX inclusive. + // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'POW_PRECISION')) { + v = obj[p]; + intCheck(v, 0, MAX, p); + POW_PRECISION = v; + } + + // FORMAT {object} + // '[BigNumber Error] FORMAT not an object: {v}' + if (obj.hasOwnProperty(p = 'FORMAT')) { + v = obj[p]; + if (typeof v == 'object') FORMAT = v; + else throw Error + (bignumberError + p + ' not an object: ' + v); + } + + // ALPHABET {string} + // '[BigNumber Error] ALPHABET invalid: {v}' + if (obj.hasOwnProperty(p = 'ALPHABET')) { + v = obj[p]; + + // Disallow if only one character, or contains '.' or a repeated character. + if (typeof v == 'string' && !/^.$|\.|(.).*\1/.test(v)) { + ALPHABET = v; + } else { + throw Error + (bignumberError + p + ' invalid: ' + v); + } + } + + } else { + + // '[BigNumber Error] Object expected: {v}' + throw Error + (bignumberError + 'Object expected: ' + obj); + } + } + + return { + DECIMAL_PLACES: DECIMAL_PLACES, + ROUNDING_MODE: ROUNDING_MODE, + EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS], + RANGE: [MIN_EXP, MAX_EXP], + CRYPTO: CRYPTO, + MODULO_MODE: MODULO_MODE, + POW_PRECISION: POW_PRECISION, + FORMAT: FORMAT, + ALPHABET: ALPHABET + }; + }; + + + /* + * Return true if v is a BigNumber instance, otherwise return false. + * + * v {any} + */ + BigNumber.isBigNumber = function (v) { + return v instanceof BigNumber || v && v._isBigNumber === true || false; + }; + + + /* + * Return a new BigNumber whose value is the maximum of the arguments. + * + * arguments {number|string|BigNumber} + */ + BigNumber.maximum = BigNumber.max = function () { + return maxOrMin(arguments, P.lt); + }; + + + /* + * Return a new BigNumber whose value is the minimum of the arguments. + * + * arguments {number|string|BigNumber} + */ + BigNumber.minimum = BigNumber.min = function () { + return maxOrMin(arguments, P.gt); + }; + + + /* + * Return a new BigNumber with a random value equal to or greater than 0 and less than 1, + * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing + * zeros are produced). + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}' + * '[BigNumber Error] crypto unavailable' + */ + BigNumber.random = (function () { + var pow2_53 = 0x20000000000000; + + // Return a 53 bit integer n, where 0 <= n < 9007199254740992. + // Check if Math.random() produces more than 32 bits of randomness. + // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits. + // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1. + var random53bitInt = (Math.random() * pow2_53) & 0x1fffff + ? function () { return mathfloor(Math.random() * pow2_53); } + : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) + + (Math.random() * 0x800000 | 0); }; + + return function (dp) { + var a, b, e, k, v, + i = 0, + c = [], + rand = new BigNumber(ONE); + + if (dp == null) dp = DECIMAL_PLACES; + else intCheck(dp, 0, MAX); + + k = mathceil(dp / LOG_BASE); + + if (CRYPTO) { + + // Browsers supporting crypto.getRandomValues. + if (crypto.getRandomValues) { + + a = crypto.getRandomValues(new Uint32Array(k *= 2)); + + for (; i < k;) { + + // 53 bits: + // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2) + // 11111 11111111 11111111 11111111 11100000 00000000 00000000 + // ((Math.pow(2, 32) - 1) >>> 11).toString(2) + // 11111 11111111 11111111 + // 0x20000 is 2^21. + v = a[i] * 0x20000 + (a[i + 1] >>> 11); + + // Rejection sampling: + // 0 <= v < 9007199254740992 + // Probability that v >= 9e15, is + // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251 + if (v >= 9e15) { + b = crypto.getRandomValues(new Uint32Array(2)); + a[i] = b[0]; + a[i + 1] = b[1]; + } else { + + // 0 <= v <= 8999999999999999 + // 0 <= (v % 1e14) <= 99999999999999 + c.push(v % 1e14); + i += 2; + } + } + i = k / 2; + + // Node.js supporting crypto.randomBytes. + } else if (crypto.randomBytes) { + + // buffer + a = crypto.randomBytes(k *= 7); + + for (; i < k;) { + + // 0x1000000000000 is 2^48, 0x10000000000 is 2^40 + // 0x100000000 is 2^32, 0x1000000 is 2^24 + // 11111 11111111 11111111 11111111 11111111 11111111 11111111 + // 0 <= v < 9007199254740992 + v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) + + (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) + + (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6]; + + if (v >= 9e15) { + crypto.randomBytes(7).copy(a, i); + } else { + + // 0 <= (v % 1e14) <= 99999999999999 + c.push(v % 1e14); + i += 7; + } + } + i = k / 7; + } else { + CRYPTO = false; + throw Error + (bignumberError + 'crypto unavailable'); + } + } + + // Use Math.random. + if (!CRYPTO) { + + for (; i < k;) { + v = random53bitInt(); + if (v < 9e15) c[i++] = v % 1e14; + } + } + + k = c[--i]; + dp %= LOG_BASE; + + // Convert trailing digits to zeros according to dp. + if (k && dp) { + v = POWS_TEN[LOG_BASE - dp]; + c[i] = mathfloor(k / v) * v; + } + + // Remove trailing elements which are zero. + for (; c[i] === 0; c.pop(), i--); + + // Zero? + if (i < 0) { + c = [e = 0]; + } else { + + // Remove leading elements which are zero and adjust exponent accordingly. + for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE); + + // Count the digits of the first element of c to determine leading zeros, and... + for (i = 1, v = c[0]; v >= 10; v /= 10, i++); + + // adjust the exponent accordingly. + if (i < LOG_BASE) e -= LOG_BASE - i; + } + + rand.e = e; + rand.c = c; + return rand; + }; + })(); + + + // PRIVATE FUNCTIONS + + + // Called by BigNumber and BigNumber.prototype.toString. + convertBase = (function () { + var decimal = '0123456789'; + + /* + * Convert string of baseIn to an array of numbers of baseOut. + * Eg. toBaseOut('255', 10, 16) returns [15, 15]. + * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5]. + */ + function toBaseOut(str, baseIn, baseOut, alphabet) { + var j, + arr = [0], + arrL, + i = 0, + len = str.length; + + for (; i < len;) { + for (arrL = arr.length; arrL--; arr[arrL] *= baseIn); + + arr[0] += alphabet.indexOf(str.charAt(i++)); + + for (j = 0; j < arr.length; j++) { + + if (arr[j] > baseOut - 1) { + if (arr[j + 1] == null) arr[j + 1] = 0; + arr[j + 1] += arr[j] / baseOut | 0; + arr[j] %= baseOut; + } + } + } + + return arr.reverse(); + } + + // Convert a numeric string of baseIn to a numeric string of baseOut. + // If the caller is toString, we are converting from base 10 to baseOut. + // If the caller is BigNumber, we are converting from baseIn to base 10. + return function (str, baseIn, baseOut, sign, callerIsToString) { + var alphabet, d, e, k, r, x, xc, y, + i = str.indexOf('.'), + dp = DECIMAL_PLACES, + rm = ROUNDING_MODE; + + // Non-integer. + if (i >= 0) { + k = POW_PRECISION; + + // Unlimited precision. + POW_PRECISION = 0; + str = str.replace('.', ''); + y = new BigNumber(baseIn); + x = y.pow(str.length - i); + POW_PRECISION = k; + + // Convert str as if an integer, then restore the fraction part by dividing the + // result by its base raised to a power. + + y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'), + 10, baseOut, decimal); + y.e = y.c.length; + } + + // Convert the number as integer. + + xc = toBaseOut(str, baseIn, baseOut, callerIsToString + ? (alphabet = ALPHABET, decimal) + : (alphabet = decimal, ALPHABET)); + + // xc now represents str as an integer and converted to baseOut. e is the exponent. + e = k = xc.length; + + // Remove trailing zeros. + for (; xc[--k] == 0; xc.pop()); + + // Zero? + if (!xc[0]) return alphabet.charAt(0); + + // Does str represent an integer? If so, no need for the division. + if (i < 0) { + --e; + } else { + x.c = xc; + x.e = e; + + // The sign is needed for correct rounding. + x.s = sign; + x = div(x, y, dp, rm, baseOut); + xc = x.c; + r = x.r; + e = x.e; + } + + // xc now represents str converted to baseOut. + + // THe index of the rounding digit. + d = e + dp + 1; + + // The rounding digit: the digit to the right of the digit that may be rounded up. + i = xc[d]; + + // Look at the rounding digits and mode to determine whether to round up. + + k = baseOut / 2; + r = r || d < 0 || xc[d + 1] != null; + + r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) + : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 || + rm == (x.s < 0 ? 8 : 7)); + + // If the index of the rounding digit is not greater than zero, or xc represents + // zero, then the result of the base conversion is zero or, if rounding up, a value + // such as 0.00001. + if (d < 1 || !xc[0]) { + + // 1^-dp or 0 + str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) + : alphabet.charAt(0); + } else { + + // Truncate xc to the required number of decimal places. + xc.length = d; + + // Round up? + if (r) { + + // Rounding up may mean the previous digit has to be rounded up and so on. + for (--baseOut; ++xc[--d] > baseOut;) { + xc[d] = 0; + + if (!d) { + ++e; + xc = [1].concat(xc); + } + } + } + + // Determine trailing zeros. + for (k = xc.length; !xc[--k];); + + // E.g. [4, 11, 15] becomes 4bf. + for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++])); + + // Add leading zeros, decimal point and trailing zeros as required. + str = toFixedPoint(str, e, alphabet.charAt(0)); + } + + // The caller will add the sign. + return str; + }; + })(); + + + // Perform division in the specified base. Called by div and convertBase. + div = (function () { + + // Assume non-zero x and k. + function multiply(x, k, base) { + var m, temp, xlo, xhi, + carry = 0, + i = x.length, + klo = k % SQRT_BASE, + khi = k / SQRT_BASE | 0; + + for (x = x.slice(); i--;) { + xlo = x[i] % SQRT_BASE; + xhi = x[i] / SQRT_BASE | 0; + m = khi * xlo + xhi * klo; + temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry; + carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi; + x[i] = temp % base; + } + + if (carry) x = [carry].concat(x); + + return x; + } + + function compare(a, b, aL, bL) { + var i, cmp; + + if (aL != bL) { + cmp = aL > bL ? 1 : -1; + } else { + + for (i = cmp = 0; i < aL; i++) { + + if (a[i] != b[i]) { + cmp = a[i] > b[i] ? 1 : -1; + break; + } + } + } + + return cmp; + } + + function subtract(a, b, aL, base) { + var i = 0; + + // Subtract b from a. + for (; aL--;) { + a[aL] -= i; + i = a[aL] < b[aL] ? 1 : 0; + a[aL] = i * base + a[aL] - b[aL]; + } + + // Remove leading zeros. + for (; !a[0] && a.length > 1; a.splice(0, 1)); + } + + // x: dividend, y: divisor. + return function (x, y, dp, rm, base) { + var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0, + yL, yz, + s = x.s == y.s ? 1 : -1, + xc = x.c, + yc = y.c; + + // Either NaN, Infinity or 0? + if (!xc || !xc[0] || !yc || !yc[0]) { + + return new BigNumber( + + // Return NaN if either NaN, or both Infinity or 0. + !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : + + // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0. + xc && xc[0] == 0 || !yc ? s * 0 : s / 0 + ); + } + + q = new BigNumber(s); + qc = q.c = []; + e = x.e - y.e; + s = dp + e + 1; + + if (!base) { + base = BASE; + e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE); + s = s / LOG_BASE | 0; + } + + // Result exponent may be one less then the current value of e. + // The coefficients of the BigNumbers from convertBase may have trailing zeros. + for (i = 0; yc[i] == (xc[i] || 0); i++); + + if (yc[i] > (xc[i] || 0)) e--; + + if (s < 0) { + qc.push(1); + more = true; + } else { + xL = xc.length; + yL = yc.length; + i = 0; + s += 2; + + // Normalise xc and yc so highest order digit of yc is >= base / 2. + + n = mathfloor(base / (yc[0] + 1)); + + // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1. + // if (n > 1 || n++ == 1 && yc[0] < base / 2) { + if (n > 1) { + yc = multiply(yc, n, base); + xc = multiply(xc, n, base); + yL = yc.length; + xL = xc.length; + } + + xi = yL; + rem = xc.slice(0, yL); + remL = rem.length; + + // Add zeros to make remainder as long as divisor. + for (; remL < yL; rem[remL++] = 0); + yz = yc.slice(); + yz = [0].concat(yz); + yc0 = yc[0]; + if (yc[1] >= base / 2) yc0++; + // Not necessary, but to prevent trial digit n > base, when using base 3. + // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15; + + do { + n = 0; + + // Compare divisor and remainder. + cmp = compare(yc, rem, yL, remL); + + // If divisor < remainder. + if (cmp < 0) { + + // Calculate trial digit, n. + + rem0 = rem[0]; + if (yL != remL) rem0 = rem0 * base + (rem[1] || 0); + + // n is how many times the divisor goes into the current remainder. + n = mathfloor(rem0 / yc0); + + // Algorithm: + // product = divisor multiplied by trial digit (n). + // Compare product and remainder. + // If product is greater than remainder: + // Subtract divisor from product, decrement trial digit. + // Subtract product from remainder. + // If product was less than remainder at the last compare: + // Compare new remainder and divisor. + // If remainder is greater than divisor: + // Subtract divisor from remainder, increment trial digit. + + if (n > 1) { + + // n may be > base only when base is 3. + if (n >= base) n = base - 1; + + // product = divisor * trial digit. + prod = multiply(yc, n, base); + prodL = prod.length; + remL = rem.length; + + // Compare product and remainder. + // If product > remainder then trial digit n too high. + // n is 1 too high about 5% of the time, and is not known to have + // ever been more than 1 too high. + while (compare(prod, rem, prodL, remL) == 1) { + n--; + + // Subtract divisor from product. + subtract(prod, yL < prodL ? yz : yc, prodL, base); + prodL = prod.length; + cmp = 1; + } + } else { + + // n is 0 or 1, cmp is -1. + // If n is 0, there is no need to compare yc and rem again below, + // so change cmp to 1 to avoid it. + // If n is 1, leave cmp as -1, so yc and rem are compared again. + if (n == 0) { + + // divisor < remainder, so n must be at least 1. + cmp = n = 1; + } + + // product = divisor + prod = yc.slice(); + prodL = prod.length; + } + + if (prodL < remL) prod = [0].concat(prod); + + // Subtract product from remainder. + subtract(rem, prod, remL, base); + remL = rem.length; + + // If product was < remainder. + if (cmp == -1) { + + // Compare divisor and new remainder. + // If divisor < new remainder, subtract divisor from remainder. + // Trial digit n too low. + // n is 1 too low about 5% of the time, and very rarely 2 too low. + while (compare(yc, rem, yL, remL) < 1) { + n++; + + // Subtract divisor from remainder. + subtract(rem, yL < remL ? yz : yc, remL, base); + remL = rem.length; + } + } + } else if (cmp === 0) { + n++; + rem = [0]; + } // else cmp === 1 and n will be 0 + + // Add the next digit, n, to the result array. + qc[i++] = n; + + // Update the remainder. + if (rem[0]) { + rem[remL++] = xc[xi] || 0; + } else { + rem = [xc[xi]]; + remL = 1; + } + } while ((xi++ < xL || rem[0] != null) && s--); + + more = rem[0] != null; + + // Leading zero? + if (!qc[0]) qc.splice(0, 1); + } + + if (base == BASE) { + + // To calculate q.e, first get the number of digits of qc[0]. + for (i = 1, s = qc[0]; s >= 10; s /= 10, i++); + + round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more); + + // Caller is convertBase. + } else { + q.e = e; + q.r = +more; + } + + return q; + }; + })(); + + + /* + * Return a string representing the value of BigNumber n in fixed-point or exponential + * notation rounded to the specified decimal places or significant digits. + * + * n: a BigNumber. + * i: the index of the last digit required (i.e. the digit that may be rounded up). + * rm: the rounding mode. + * id: 1 (toExponential) or 2 (toPrecision). + */ + function format(n, i, rm, id) { + var c0, e, ne, len, str; + + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + if (!n.c) return n.toString(); + + c0 = n.c[0]; + ne = n.e; + + if (i == null) { + str = coeffToString(n.c); + str = id == 1 || id == 2 && ne <= TO_EXP_NEG + ? toExponential(str, ne) + : toFixedPoint(str, ne, '0'); + } else { + n = round(new BigNumber(n), i, rm); + + // n.e may have changed if the value was rounded up. + e = n.e; + + str = coeffToString(n.c); + len = str.length; + + // toPrecision returns exponential notation if the number of significant digits + // specified is less than the number of digits necessary to represent the integer + // part of the value in fixed-point notation. + + // Exponential notation. + if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) { + + // Append zeros? + for (; len < i; str += '0', len++); + str = toExponential(str, e); + + // Fixed-point notation. + } else { + i -= ne; + str = toFixedPoint(str, e, '0'); + + // Append zeros? + if (e + 1 > len) { + if (--i > 0) for (str += '.'; i--; str += '0'); + } else { + i += e - len; + if (i > 0) { + if (e + 1 == len) str += '.'; + for (; i--; str += '0'); + } + } + } + } + + return n.s < 0 && c0 ? '-' + str : str; + } + + + // Handle BigNumber.max and BigNumber.min. + function maxOrMin(args, method) { + var m, n, + i = 0; + + if (isArray(args[0])) args = args[0]; + m = new BigNumber(args[0]); + + for (; ++i < args.length;) { + n = new BigNumber(args[i]); + + // If any number is NaN, return NaN. + if (!n.s) { + m = n; + break; + } else if (method.call(m, n)) { + m = n; + } + } + + return m; + } + + + /* + * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP. + * Called by minus, plus and times. + */ + function normalise(n, c, e) { + var i = 1, + j = c.length; + + // Remove trailing zeros. + for (; !c[--j]; c.pop()); + + // Calculate the base 10 exponent. First get the number of digits of c[0]. + for (j = c[0]; j >= 10; j /= 10, i++); + + // Overflow? + if ((e = i + e * LOG_BASE - 1) > MAX_EXP) { + + // Infinity. + n.c = n.e = null; + + // Underflow? + } else if (e < MIN_EXP) { + + // Zero. + n.c = [n.e = 0]; + } else { + n.e = e; + n.c = c; + } + + return n; + } + + + // Handle values that fail the validity test in BigNumber. + parseNumeric = (function () { + var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, + dotAfter = /^([^.]+)\.$/, + dotBefore = /^\.([^.]+)$/, + isInfinityOrNaN = /^-?(Infinity|NaN)$/, + whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g; + + return function (x, str, isNum, b) { + var base, + s = isNum ? str : str.replace(whitespaceOrPlus, ''); + + // No exception on ±Infinity or NaN. + if (isInfinityOrNaN.test(s)) { + x.s = isNaN(s) ? null : s < 0 ? -1 : 1; + x.c = x.e = null; + } else { + if (!isNum) { + + // basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i + s = s.replace(basePrefix, function (m, p1, p2) { + base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8; + return !b || b == base ? p1 : m; + }); + + if (b) { + base = b; + + // E.g. '1.' to '1', '.1' to '0.1' + s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1'); + } + + if (str != s) return new BigNumber(s, base); + } + + // '[BigNumber Error] Not a number: {n}' + // '[BigNumber Error] Not a base {b} number: {n}' + if (BigNumber.DEBUG) { + throw Error + (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str); + } + + // NaN + x.c = x.e = x.s = null; + } + } + })(); + + + /* + * Round x to sd significant digits using rounding mode rm. Check for over/under-flow. + * If r is truthy, it is known that there are more digits after the rounding digit. + */ + function round(x, sd, rm, r) { + var d, i, j, k, n, ni, rd, + xc = x.c, + pows10 = POWS_TEN; + + // if x is not Infinity or NaN... + if (xc) { + + // rd is the rounding digit, i.e. the digit after the digit that may be rounded up. + // n is a base 1e14 number, the value of the element of array x.c containing rd. + // ni is the index of n within x.c. + // d is the number of digits of n. + // i is the index of rd within n including leading zeros. + // j is the actual index of rd within n (if < 0, rd is a leading zero). + out: { + + // Get the number of digits of the first element of xc. + for (d = 1, k = xc[0]; k >= 10; k /= 10, d++); + i = sd - d; + + // If the rounding digit is in the first element of xc... + if (i < 0) { + i += LOG_BASE; + j = sd; + n = xc[ni = 0]; + + // Get the rounding digit at index j of n. + rd = n / pows10[d - j - 1] % 10 | 0; + } else { + ni = mathceil((i + 1) / LOG_BASE); + + if (ni >= xc.length) { + + if (r) { + + // Needed by sqrt. + for (; xc.length <= ni; xc.push(0)); + n = rd = 0; + d = 1; + i %= LOG_BASE; + j = i - LOG_BASE + 1; + } else { + break out; + } + } else { + n = k = xc[ni]; + + // Get the number of digits of n. + for (d = 1; k >= 10; k /= 10, d++); + + // Get the index of rd within n. + i %= LOG_BASE; + + // Get the index of rd within n, adjusted for leading zeros. + // The number of leading zeros of n is given by LOG_BASE - d. + j = i - LOG_BASE + d; + + // Get the rounding digit at index j of n. + rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0; + } + } + + r = r || sd < 0 || + + // Are there any non-zero digits after the rounding digit? + // The expression n % pows10[d - j - 1] returns all digits of n to the right + // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714. + xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]); + + r = rm < 4 + ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) + : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && + + // Check whether the digit to the left of the rounding digit is odd. + ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 || + rm == (x.s < 0 ? 8 : 7)); + + if (sd < 1 || !xc[0]) { + xc.length = 0; + + if (r) { + + // Convert sd to decimal places. + sd -= x.e + 1; + + // 1, 0.1, 0.01, 0.001, 0.0001 etc. + xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE]; + x.e = -sd || 0; + } else { + + // Zero. + xc[0] = x.e = 0; + } + + return x; + } + + // Remove excess digits. + if (i == 0) { + xc.length = ni; + k = 1; + ni--; + } else { + xc.length = ni + 1; + k = pows10[LOG_BASE - i]; + + // E.g. 56700 becomes 56000 if 7 is the rounding digit. + // j > 0 means i > number of leading zeros of n. + xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0; + } + + // Round up? + if (r) { + + for (; ;) { + + // If the digit to be rounded up is in the first element of xc... + if (ni == 0) { + + // i will be the length of xc[0] before k is added. + for (i = 1, j = xc[0]; j >= 10; j /= 10, i++); + j = xc[0] += k; + for (k = 1; j >= 10; j /= 10, k++); + + // if i != k the length has increased. + if (i != k) { + x.e++; + if (xc[0] == BASE) xc[0] = 1; + } + + break; + } else { + xc[ni] += k; + if (xc[ni] != BASE) break; + xc[ni--] = 0; + k = 1; + } + } + } + + // Remove trailing zeros. + for (i = xc.length; xc[--i] === 0; xc.pop()); + } + + // Overflow? Infinity. + if (x.e > MAX_EXP) { + x.c = x.e = null; + + // Underflow? Zero. + } else if (x.e < MIN_EXP) { + x.c = [x.e = 0]; + } + } + + return x; + } + + + // PROTOTYPE/INSTANCE METHODS + + + /* + * Return a new BigNumber whose value is the absolute value of this BigNumber. + */ + P.absoluteValue = P.abs = function () { + var x = new BigNumber(this); + if (x.s < 0) x.s = 1; + return x; + }; + + + /* + * Return + * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b), + * -1 if the value of this BigNumber is less than the value of BigNumber(y, b), + * 0 if they have the same value, + * or null if the value of either is NaN. + */ + P.comparedTo = function (y, b) { + return compare(this, new BigNumber(y, b)); + }; + + + /* + * If dp is undefined or null or true or false, return the number of decimal places of the + * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. + * + * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this + * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or + * ROUNDING_MODE if rm is omitted. + * + * [dp] {number} Decimal places: integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.decimalPlaces = P.dp = function (dp, rm) { + var c, n, v, + x = this; + + if (dp != null) { + intCheck(dp, 0, MAX); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + return round(new BigNumber(x), dp + x.e + 1, rm); + } + + if (!(c = x.c)) return null; + n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE; + + // Subtract the number of trailing zeros of the last number. + if (v = c[v]) for (; v % 10 == 0; v /= 10, n--); + if (n < 0) n = 0; + + return n; + }; + + + /* + * n / 0 = I + * n / N = N + * n / I = 0 + * 0 / n = 0 + * 0 / 0 = N + * 0 / N = N + * 0 / I = 0 + * N / n = N + * N / 0 = N + * N / N = N + * N / I = N + * I / n = I + * I / 0 = I + * I / N = N + * I / I = N + * + * Return a new BigNumber whose value is the value of this BigNumber divided by the value of + * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE. + */ + P.dividedBy = P.div = function (y, b) { + return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE); + }; + + + /* + * Return a new BigNumber whose value is the integer part of dividing the value of this + * BigNumber by the value of BigNumber(y, b). + */ + P.dividedToIntegerBy = P.idiv = function (y, b) { + return div(this, new BigNumber(y, b), 0, 1); + }; + + + /* + * Return a BigNumber whose value is the value of this BigNumber exponentiated by n. + * + * If m is present, return the result modulo m. + * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE. + * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE. + * + * The modular power operation works efficiently when x, n, and m are integers, otherwise it + * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0. + * + * n {number|string|BigNumber} The exponent. An integer. + * [m] {number|string|BigNumber} The modulus. + * + * '[BigNumber Error] Exponent not an integer: {n}' + */ + P.exponentiatedBy = P.pow = function (n, m) { + var half, isModExp, k, more, nIsBig, nIsNeg, nIsOdd, y, + x = this; + + n = new BigNumber(n); + + // Allow NaN and ±Infinity, but not other non-integers. + if (n.c && !n.isInteger()) { + throw Error + (bignumberError + 'Exponent not an integer: ' + n); + } + + if (m != null) m = new BigNumber(m); + + // Exponent of MAX_SAFE_INTEGER is 15. + nIsBig = n.e > 14; + + // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0. + if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) { + + // The sign of the result of pow when x is negative depends on the evenness of n. + // If +n overflows to ±Infinity, the evenness of n would be not be known. + y = new BigNumber(Math.pow(+x.valueOf(), nIsBig ? 2 - isOdd(n) : +n)); + return m ? y.mod(m) : y; + } + + nIsNeg = n.s < 0; + + if (m) { + + // x % m returns NaN if abs(m) is zero, or m is NaN. + if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN); + + isModExp = !nIsNeg && x.isInteger() && m.isInteger(); + + if (isModExp) x = x.mod(m); + + // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15. + // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15. + } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 + // [1, 240000000] + ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7 + // [80000000000000] [99999750000000] + : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) { + + // If x is negative and n is odd, k = -0, else k = 0. + k = x.s < 0 && isOdd(n) ? -0 : 0; + + // If x >= 1, k = ±Infinity. + if (x.e > -1) k = 1 / k; + + // If n is negative return ±0, else return ±Infinity. + return new BigNumber(nIsNeg ? 1 / k : k); + + } else if (POW_PRECISION) { + + // Truncating each coefficient array to a length of k after each multiplication + // equates to truncating significant digits to POW_PRECISION + [28, 41], + // i.e. there will be a minimum of 28 guard digits retained. + k = mathceil(POW_PRECISION / LOG_BASE + 2); + } + + if (nIsBig) { + half = new BigNumber(0.5); + nIsOdd = isOdd(n); + } else { + nIsOdd = n % 2; + } + + if (nIsNeg) n.s = 1; + + y = new BigNumber(ONE); + + // Performs 54 loop iterations for n of 9007199254740991. + for (; ;) { + + if (nIsOdd) { + y = y.times(x); + if (!y.c) break; + + if (k) { + if (y.c.length > k) y.c.length = k; + } else if (isModExp) { + y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m)); + } + } + + if (nIsBig) { + n = n.times(half); + round(n, n.e + 1, 1); + if (!n.c[0]) break; + nIsBig = n.e > 14; + nIsOdd = isOdd(n); + } else { + n = mathfloor(n / 2); + if (!n) break; + nIsOdd = n % 2; + } + + x = x.times(x); + + if (k) { + if (x.c && x.c.length > k) x.c.length = k; + } else if (isModExp) { + x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m)); + } + } + + if (isModExp) return y; + if (nIsNeg) y = ONE.div(y); + + return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y; + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer + * using rounding mode rm, or ROUNDING_MODE if rm is omitted. + * + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}' + */ + P.integerValue = function (rm) { + var n = new BigNumber(this); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + return round(n, n.e + 1, rm); + }; + + + /* + * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b), + * otherwise return false. + */ + P.isEqualTo = P.eq = function (y, b) { + return compare(this, new BigNumber(y, b)) === 0; + }; + + + /* + * Return true if the value of this BigNumber is a finite number, otherwise return false. + */ + P.isFinite = function () { + return !!this.c; + }; + + + /* + * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b), + * otherwise return false. + */ + P.isGreaterThan = P.gt = function (y, b) { + return compare(this, new BigNumber(y, b)) > 0; + }; + + + /* + * Return true if the value of this BigNumber is greater than or equal to the value of + * BigNumber(y, b), otherwise return false. + */ + P.isGreaterThanOrEqualTo = P.gte = function (y, b) { + return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0; + + }; + + + /* + * Return true if the value of this BigNumber is an integer, otherwise return false. + */ + P.isInteger = function () { + return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2; + }; + + + /* + * Return true if the value of this BigNumber is less than the value of BigNumber(y, b), + * otherwise return false. + */ + P.isLessThan = P.lt = function (y, b) { + return compare(this, new BigNumber(y, b)) < 0; + }; + + + /* + * Return true if the value of this BigNumber is less than or equal to the value of + * BigNumber(y, b), otherwise return false. + */ + P.isLessThanOrEqualTo = P.lte = function (y, b) { + return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0; + }; + + + /* + * Return true if the value of this BigNumber is NaN, otherwise return false. + */ + P.isNaN = function () { + return !this.s; + }; + + + /* + * Return true if the value of this BigNumber is negative, otherwise return false. + */ + P.isNegative = function () { + return this.s < 0; + }; + + + /* + * Return true if the value of this BigNumber is positive, otherwise return false. + */ + P.isPositive = function () { + return this.s > 0; + }; + + + /* + * Return true if the value of this BigNumber is 0 or -0, otherwise return false. + */ + P.isZero = function () { + return !!this.c && this.c[0] == 0; + }; + + + /* + * n - 0 = n + * n - N = N + * n - I = -I + * 0 - n = -n + * 0 - 0 = 0 + * 0 - N = N + * 0 - I = -I + * N - n = N + * N - 0 = N + * N - N = N + * N - I = N + * I - n = I + * I - 0 = I + * I - N = N + * I - I = N + * + * Return a new BigNumber whose value is the value of this BigNumber minus the value of + * BigNumber(y, b). + */ + P.minus = function (y, b) { + var i, j, t, xLTy, + x = this, + a = x.s; + + y = new BigNumber(y, b); + b = y.s; + + // Either NaN? + if (!a || !b) return new BigNumber(NaN); + + // Signs differ? + if (a != b) { + y.s = -b; + return x.plus(y); + } + + var xe = x.e / LOG_BASE, + ye = y.e / LOG_BASE, + xc = x.c, + yc = y.c; + + if (!xe || !ye) { + + // Either Infinity? + if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN); + + // Either zero? + if (!xc[0] || !yc[0]) { + + // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. + return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x : + + // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity + ROUNDING_MODE == 3 ? -0 : 0); + } + } + + xe = bitFloor(xe); + ye = bitFloor(ye); + xc = xc.slice(); + + // Determine which is the bigger number. + if (a = xe - ye) { + + if (xLTy = a < 0) { + a = -a; + t = xc; + } else { + ye = xe; + t = yc; + } + + t.reverse(); + + // Prepend zeros to equalise exponents. + for (b = a; b--; t.push(0)); + t.reverse(); + } else { + + // Exponents equal. Check digit by digit. + j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b; + + for (a = b = 0; b < j; b++) { + + if (xc[b] != yc[b]) { + xLTy = xc[b] < yc[b]; + break; + } + } + } + + // x < y? Point xc to the array of the bigger number. + if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s; + + b = (j = yc.length) - (i = xc.length); + + // Append zeros to xc if shorter. + // No need to add zeros to yc if shorter as subtract only needs to start at yc.length. + if (b > 0) for (; b--; xc[i++] = 0); + b = BASE - 1; + + // Subtract yc from xc. + for (; j > a;) { + + if (xc[--j] < yc[j]) { + for (i = j; i && !xc[--i]; xc[i] = b); + --xc[i]; + xc[j] += BASE; + } + + xc[j] -= yc[j]; + } + + // Remove leading zeros and adjust exponent accordingly. + for (; xc[0] == 0; xc.splice(0, 1), --ye); + + // Zero? + if (!xc[0]) { + + // Following IEEE 754 (2008) 6.3, + // n - n = +0 but n - n = -0 when rounding towards -Infinity. + y.s = ROUNDING_MODE == 3 ? -1 : 1; + y.c = [y.e = 0]; + return y; + } + + // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity + // for finite x and y. + return normalise(y, xc, ye); + }; + + + /* + * n % 0 = N + * n % N = N + * n % I = n + * 0 % n = 0 + * -0 % n = -0 + * 0 % 0 = N + * 0 % N = N + * 0 % I = 0 + * N % n = N + * N % 0 = N + * N % N = N + * N % I = N + * I % n = N + * I % 0 = N + * I % N = N + * I % I = N + * + * Return a new BigNumber whose value is the value of this BigNumber modulo the value of + * BigNumber(y, b). The result depends on the value of MODULO_MODE. + */ + P.modulo = P.mod = function (y, b) { + var q, s, + x = this; + + y = new BigNumber(y, b); + + // Return NaN if x is Infinity or NaN, or y is NaN or zero. + if (!x.c || !y.s || y.c && !y.c[0]) { + return new BigNumber(NaN); + + // Return x if y is Infinity or x is zero. + } else if (!y.c || x.c && !x.c[0]) { + return new BigNumber(x); + } + + if (MODULO_MODE == 9) { + + // Euclidian division: q = sign(y) * floor(x / abs(y)) + // r = x - qy where 0 <= r < abs(y) + s = y.s; + y.s = 1; + q = div(x, y, 0, 3); + y.s = s; + q.s *= s; + } else { + q = div(x, y, 0, MODULO_MODE); + } + + y = x.minus(q.times(y)); + + // To match JavaScript %, ensure sign of zero is sign of dividend. + if (!y.c[0] && MODULO_MODE == 1) y.s = x.s; + + return y; + }; + + + /* + * n * 0 = 0 + * n * N = N + * n * I = I + * 0 * n = 0 + * 0 * 0 = 0 + * 0 * N = N + * 0 * I = N + * N * n = N + * N * 0 = N + * N * N = N + * N * I = N + * I * n = I + * I * 0 = N + * I * N = N + * I * I = I + * + * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value + * of BigNumber(y, b). + */ + P.multipliedBy = P.times = function (y, b) { + var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc, + base, sqrtBase, + x = this, + xc = x.c, + yc = (y = new BigNumber(y, b)).c; + + // Either NaN, ±Infinity or ±0? + if (!xc || !yc || !xc[0] || !yc[0]) { + + // Return NaN if either is NaN, or one is 0 and the other is Infinity. + if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) { + y.c = y.e = y.s = null; + } else { + y.s *= x.s; + + // Return ±Infinity if either is ±Infinity. + if (!xc || !yc) { + y.c = y.e = null; + + // Return ±0 if either is ±0. + } else { + y.c = [0]; + y.e = 0; + } + } + + return y; + } + + e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE); + y.s *= x.s; + xcL = xc.length; + ycL = yc.length; + + // Ensure xc points to longer array and xcL to its length. + if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i; + + // Initialise the result array with zeros. + for (i = xcL + ycL, zc = []; i--; zc.push(0)); + + base = BASE; + sqrtBase = SQRT_BASE; + + for (i = ycL; --i >= 0;) { + c = 0; + ylo = yc[i] % sqrtBase; + yhi = yc[i] / sqrtBase | 0; + + for (k = xcL, j = i + k; j > i;) { + xlo = xc[--k] % sqrtBase; + xhi = xc[k] / sqrtBase | 0; + m = yhi * xlo + xhi * ylo; + xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c; + c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi; + zc[j--] = xlo % base; + } + + zc[j] = c; + } + + if (c) { + ++e; + } else { + zc.splice(0, 1); + } + + return normalise(y, zc, e); + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber negated, + * i.e. multiplied by -1. + */ + P.negated = function () { + var x = new BigNumber(this); + x.s = -x.s || null; + return x; + }; + + + /* + * n + 0 = n + * n + N = N + * n + I = I + * 0 + n = n + * 0 + 0 = 0 + * 0 + N = N + * 0 + I = I + * N + n = N + * N + 0 = N + * N + N = N + * N + I = N + * I + n = I + * I + 0 = I + * I + N = N + * I + I = I + * + * Return a new BigNumber whose value is the value of this BigNumber plus the value of + * BigNumber(y, b). + */ + P.plus = function (y, b) { + var t, + x = this, + a = x.s; + + y = new BigNumber(y, b); + b = y.s; + + // Either NaN? + if (!a || !b) return new BigNumber(NaN); + + // Signs differ? + if (a != b) { + y.s = -b; + return x.minus(y); + } + + var xe = x.e / LOG_BASE, + ye = y.e / LOG_BASE, + xc = x.c, + yc = y.c; + + if (!xe || !ye) { + + // Return ±Infinity if either ±Infinity. + if (!xc || !yc) return new BigNumber(a / 0); + + // Either zero? + // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. + if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0); + } + + xe = bitFloor(xe); + ye = bitFloor(ye); + xc = xc.slice(); + + // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts. + if (a = xe - ye) { + if (a > 0) { + ye = xe; + t = yc; + } else { + a = -a; + t = xc; + } + + t.reverse(); + for (; a--; t.push(0)); + t.reverse(); + } + + a = xc.length; + b = yc.length; + + // Point xc to the longer array, and b to the shorter length. + if (a - b < 0) t = yc, yc = xc, xc = t, b = a; + + // Only start adding at yc.length - 1 as the further digits of xc can be ignored. + for (a = 0; b;) { + a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0; + xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE; + } + + if (a) { + xc = [a].concat(xc); + ++ye; + } + + // No need to check for zero, as +x + +y != 0 && -x + -y != 0 + // ye = MAX_EXP + 1 possible + return normalise(y, xc, ye); + }; + + + /* + * If sd is undefined or null or true or false, return the number of significant digits of + * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. + * If sd is true include integer-part trailing zeros in the count. + * + * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this + * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or + * ROUNDING_MODE if rm is omitted. + * + * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive. + * boolean: whether to count integer-part trailing zeros: true or false. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' + */ + P.precision = P.sd = function (sd, rm) { + var c, n, v, + x = this; + + if (sd != null && sd !== !!sd) { + intCheck(sd, 1, MAX); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + return round(new BigNumber(x), sd, rm); + } + + if (!(c = x.c)) return null; + v = c.length - 1; + n = v * LOG_BASE + 1; + + if (v = c[v]) { + + // Subtract the number of trailing zeros of the last element. + for (; v % 10 == 0; v /= 10, n--); + + // Add the number of digits of the first element. + for (v = c[0]; v >= 10; v /= 10, n++); + } + + if (sd && x.e + 1 > n) n = x.e + 1; + + return n; + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber shifted by k places + * (powers of 10). Shift to the right if n > 0, and to the left if n < 0. + * + * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}' + */ + P.shiftedBy = function (k) { + intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER); + return this.times('1e' + k); + }; + + + /* + * sqrt(-n) = N + * sqrt(N) = N + * sqrt(-I) = N + * sqrt(I) = I + * sqrt(0) = 0 + * sqrt(-0) = -0 + * + * Return a new BigNumber whose value is the square root of the value of this BigNumber, + * rounded according to DECIMAL_PLACES and ROUNDING_MODE. + */ + P.squareRoot = P.sqrt = function () { + var m, n, r, rep, t, + x = this, + c = x.c, + s = x.s, + e = x.e, + dp = DECIMAL_PLACES + 4, + half = new BigNumber('0.5'); + + // Negative/NaN/Infinity/zero? + if (s !== 1 || !c || !c[0]) { + return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); + } + + // Initial estimate. + s = Math.sqrt(+x); + + // Math.sqrt underflow/overflow? + // Pass x to Math.sqrt as integer, then adjust the exponent of the result. + if (s == 0 || s == 1 / 0) { + n = coeffToString(c); + if ((n.length + e) % 2 == 0) n += '0'; + s = Math.sqrt(n); + e = bitFloor((e + 1) / 2) - (e < 0 || e % 2); + + if (s == 1 / 0) { + n = '1e' + e; + } else { + n = s.toExponential(); + n = n.slice(0, n.indexOf('e') + 1) + e; + } + + r = new BigNumber(n); + } else { + r = new BigNumber(s + ''); + } + + // Check for zero. + // r could be zero if MIN_EXP is changed after the this value was created. + // This would cause a division by zero (x/t) and hence Infinity below, which would cause + // coeffToString to throw. + if (r.c[0]) { + e = r.e; + s = e + dp; + if (s < 3) s = 0; + + // Newton-Raphson iteration. + for (; ;) { + t = r; + r = half.times(t.plus(div(x, t, dp, 1))); + + if (coeffToString(t.c ).slice(0, s) === (n = + coeffToString(r.c)).slice(0, s)) { + + // The exponent of r may here be one less than the final result exponent, + // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits + // are indexed correctly. + if (r.e < e) --s; + n = n.slice(s - 3, s + 1); + + // The 4th rounding digit may be in error by -1 so if the 4 rounding digits + // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the + // iteration. + if (n == '9999' || !rep && n == '4999') { + + // On the first iteration only, check to see if rounding up gives the + // exact result as the nines may infinitely repeat. + if (!rep) { + round(t, t.e + DECIMAL_PLACES + 2, 0); + + if (t.times(t).eq(x)) { + r = t; + break; + } + } + + dp += 4; + s += 4; + rep = 1; + } else { + + // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact + // result. If not, then there are further digits and m will be truthy. + if (!+n || !+n.slice(1) && n.charAt(0) == '5') { + + // Truncate to the first rounding digit. + round(r, r.e + DECIMAL_PLACES + 2, 1); + m = !r.times(r).eq(x); + } + + break; + } + } + } + } + + return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m); + }; + + + /* + * Return a string representing the value of this BigNumber in exponential notation and + * rounded using ROUNDING_MODE to dp fixed decimal places. + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toExponential = function (dp, rm) { + if (dp != null) { + intCheck(dp, 0, MAX); + dp++; + } + return format(this, dp, rm, 1); + }; + + + /* + * Return a string representing the value of this BigNumber in fixed-point notation rounding + * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted. + * + * Note: as with JavaScript's number type, (-0).toFixed(0) is '0', + * but e.g. (-0.00001).toFixed(0) is '-0'. + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toFixed = function (dp, rm) { + if (dp != null) { + intCheck(dp, 0, MAX); + dp = dp + this.e + 1; + } + return format(this, dp, rm); + }; + + + /* + * Return a string representing the value of this BigNumber in fixed-point notation rounded + * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties + * of the FORMAT object (see BigNumber.set). + * + * FORMAT = { + * decimalSeparator : '.', + * groupSeparator : ',', + * groupSize : 3, + * secondaryGroupSize : 0, + * fractionGroupSeparator : '\xA0', // non-breaking space + * fractionGroupSize : 0 + * }; + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toFormat = function (dp, rm) { + var str = this.toFixed(dp, rm); + + if (this.c) { + var i, + arr = str.split('.'), + g1 = +FORMAT.groupSize, + g2 = +FORMAT.secondaryGroupSize, + groupSeparator = FORMAT.groupSeparator, + intPart = arr[0], + fractionPart = arr[1], + isNeg = this.s < 0, + intDigits = isNeg ? intPart.slice(1) : intPart, + len = intDigits.length; + + if (g2) i = g1, g1 = g2, g2 = i, len -= i; + + if (g1 > 0 && len > 0) { + i = len % g1 || g1; + intPart = intDigits.substr(0, i); + + for (; i < len; i += g1) { + intPart += groupSeparator + intDigits.substr(i, g1); + } + + if (g2 > 0) intPart += groupSeparator + intDigits.slice(i); + if (isNeg) intPart = '-' + intPart; + } + + str = fractionPart + ? intPart + FORMAT.decimalSeparator + ((g2 = +FORMAT.fractionGroupSize) + ? fractionPart.replace(new RegExp('\\d{' + g2 + '}\\B', 'g'), + '$&' + FORMAT.fractionGroupSeparator) + : fractionPart) + : intPart; + } + + return str; + }; + + + /* + * Return a string array representing the value of this BigNumber as a simple fraction with + * an integer numerator and an integer denominator. The denominator will be a positive + * non-zero value less than or equal to the specified maximum denominator. If a maximum + * denominator is not specified, the denominator will be the lowest value necessary to + * represent the number exactly. + * + * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator. + * + * '[BigNumber Error] Argument {not an integer|out of range} : {md}' + */ + P.toFraction = function (md) { + var arr, d, d0, d1, d2, e, exp, n, n0, n1, q, s, + x = this, + xc = x.c; + + if (md != null) { + n = new BigNumber(md); + + // Throw if md is less than one or is not an integer, unless it is Infinity. + if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) { + throw Error + (bignumberError + 'Argument ' + + (n.isInteger() ? 'out of range: ' : 'not an integer: ') + md); + } + } + + if (!xc) return x.toString(); + + d = new BigNumber(ONE); + n1 = d0 = new BigNumber(ONE); + d1 = n0 = new BigNumber(ONE); + s = coeffToString(xc); + + // Determine initial denominator. + // d is a power of 10 and the minimum max denominator that specifies the value exactly. + e = d.e = s.length - x.e - 1; + d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp]; + md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n; + + exp = MAX_EXP; + MAX_EXP = 1 / 0; + n = new BigNumber(s); + + // n0 = d1 = 0 + n0.c[0] = 0; + + for (; ;) { + q = div(n, d, 0, 1); + d2 = d0.plus(q.times(d1)); + if (d2.comparedTo(md) == 1) break; + d0 = d1; + d1 = d2; + n1 = n0.plus(q.times(d2 = n1)); + n0 = d2; + d = n.minus(q.times(d2 = d)); + n = d2; + } + + d2 = div(md.minus(d0), d1, 0, 1); + n0 = n0.plus(d2.times(n1)); + d0 = d0.plus(d2.times(d1)); + n0.s = n1.s = x.s; + e *= 2; + + // Determine which fraction is closer to x, n0/d0 or n1/d1 + arr = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo( + div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1 + ? [n1.toString(), d1.toString()] + : [n0.toString(), d0.toString()]; + + MAX_EXP = exp; + return arr; + }; + + + /* + * Return the value of this BigNumber converted to a number primitive. + */ + P.toNumber = function () { + return +this; + }; + + + /* + * Return a string representing the value of this BigNumber rounded to sd significant digits + * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits + * necessary to represent the integer part of the value in fixed-point notation, then use + * exponential notation. + * + * [sd] {number} Significant digits. Integer, 1 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' + */ + P.toPrecision = function (sd, rm) { + if (sd != null) intCheck(sd, 1, MAX); + return format(this, sd, rm, 2); + }; + + + /* + * Return a string representing the value of this BigNumber in base b, or base 10 if b is + * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and + * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent + * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than + * TO_EXP_NEG, return exponential notation. + * + * [b] {number} Integer, 2 to ALPHABET.length inclusive. + * + * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' + */ + P.toString = function (b) { + var str, + n = this, + s = n.s, + e = n.e; + + // Infinity or NaN? + if (e === null) { + + if (s) { + str = 'Infinity'; + if (s < 0) str = '-' + str; + } else { + str = 'NaN'; + } + } else { + str = coeffToString(n.c); + + if (b == null) { + str = e <= TO_EXP_NEG || e >= TO_EXP_POS + ? toExponential(str, e) + : toFixedPoint(str, e, '0'); + } else { + intCheck(b, 2, ALPHABET.length, 'Base'); + str = convertBase(toFixedPoint(str, e, '0'), 10, b, s, true); + } + + if (s < 0 && n.c[0]) str = '-' + str; + } + + return str; + }; + + + /* + * Return as toString, but do not accept a base argument, and include the minus sign for + * negative zero. + */ + P.valueOf = P.toJSON = function () { + var str, + n = this, + e = n.e; + + if (e === null) return n.toString(); + + str = coeffToString(n.c); + + str = e <= TO_EXP_NEG || e >= TO_EXP_POS + ? toExponential(str, e) + : toFixedPoint(str, e, '0'); + + return n.s < 0 ? '-' + str : str; + }; + + + P._isBigNumber = true; + + if (configObject != null) BigNumber.set(configObject); + + return BigNumber; +} + + +// PRIVATE HELPER FUNCTIONS + + +function bitFloor(n) { + var i = n | 0; + return n > 0 || n === i ? i : i - 1; +} + + +// Return a coefficient array as a string of base 10 digits. +function coeffToString(a) { + var s, z, + i = 1, + j = a.length, + r = a[0] + ''; + + for (; i < j;) { + s = a[i++] + ''; + z = LOG_BASE - s.length; + for (; z--; s = '0' + s); + r += s; + } + + // Determine trailing zeros. + for (j = r.length; r.charCodeAt(--j) === 48;); + return r.slice(0, j + 1 || 1); +} + + +// Compare the value of BigNumbers x and y. +function compare(x, y) { + var a, b, + xc = x.c, + yc = y.c, + i = x.s, + j = y.s, + k = x.e, + l = y.e; + + // Either NaN? + if (!i || !j) return null; + + a = xc && !xc[0]; + b = yc && !yc[0]; + + // Either zero? + if (a || b) return a ? b ? 0 : -j : i; + + // Signs differ? + if (i != j) return i; + + a = i < 0; + b = k == l; + + // Either Infinity? + if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1; + + // Compare exponents. + if (!b) return k > l ^ a ? 1 : -1; + + j = (k = xc.length) < (l = yc.length) ? k : l; + + // Compare digit by digit. + for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1; + + // Compare lengths. + return k == l ? 0 : k > l ^ a ? 1 : -1; +} + + +/* + * Check that n is a primitive number, an integer, and in range, otherwise throw. + */ +function intCheck(n, min, max, name) { + if (n < min || n > max || n !== (n < 0 ? mathceil(n) : mathfloor(n))) { + throw Error + (bignumberError + (name || 'Argument') + (typeof n == 'number' + ? n < min || n > max ? ' out of range: ' : ' not an integer: ' + : ' not a primitive number: ') + n); + } +} + + +function isArray(obj) { + return Object.prototype.toString.call(obj) == '[object Array]'; +} + + +// Assumes finite n. +function isOdd(n) { + var k = n.c.length - 1; + return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0; +} + + +function toExponential(str, e) { + return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) + + (e < 0 ? 'e' : 'e+') + e; +} + + +function toFixedPoint(str, e, z) { + var len, zs; + + // Negative exponent? + if (e < 0) { + + // Prepend zeros. + for (zs = z + '.'; ++e; zs += z); + str = zs + str; + + // Positive exponent + } else { + len = str.length; + + // Append zeros. + if (++e > len) { + for (zs = z, e -= len; --e; zs += z); + str += zs; + } else if (e < len) { + str = str.slice(0, e) + '.' + str.slice(e); + } + } + + return str; +} + + +// EXPORTS + + +export var BigNumber = clone(); + +export default BigNumber; diff --git a/nodered/rootfs/data/node_modules/bignumber.js/bower.json b/nodered/rootfs/data/node_modules/bignumber.js/bower.json new file mode 100644 index 0000000..5fb671a --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/bower.json @@ -0,0 +1,36 @@ +{ + "name": "bignumber.js", + "main": "bignumber.js", + "version": "7.2.1", + "homepage": "https://github.com/MikeMcl/bignumber.js", + "authors": [ + "Michael Mclaughlin " + ], + "description": "A library for arbitrary-precision decimal and non-decimal arithmetic", + "moduleType": [ + "amd", + "globals", + "node" + ], + "keywords": [ + "arbitrary", + "precision", + "arithmetic", + "big", + "number", + "decimal", + "float", + "biginteger", + "bigdecimal", + "bignumber", + "bigint", + "bignum" + ], + "license": "MIT", + "ignore": [ + ".*", + "*.json", + "test" + ] +} + diff --git a/nodered/rootfs/data/node_modules/bignumber.js/doc/API.html b/nodered/rootfs/data/node_modules/bignumber.js/doc/API.html new file mode 100644 index 0000000..ee1a4d1 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/doc/API.html @@ -0,0 +1,2118 @@ + + + + + + +bignumber.js API + + + + + + +
+ +

bignumber.js

+ +

A JavaScript library for arbitrary-precision arithmetic.

+

Hosted on GitHub.

+ +

API

+ +

+ See the README on GitHub for a + quick-start introduction. +

+

+ In all examples below, var and semicolons are not shown, and if a commented-out + value is in quotes it means toString has been called on the preceding expression. +

+ + +

CONSTRUCTOR

+ + +
+ BigNumberBigNumber(n [, base]) ⇒ BigNumber +
+

+ n: number|string|BigNumber
+ base: number: integer, 2 to 36 inclusive. (See + ALPHABET to extend this range). +

+

+ Returns a new instance of a BigNumber object with value n, where n + is a numeric value in the specified base, or base 10 if + base is omitted or is null or undefined. +

+
+x = new BigNumber(123.4567)                // '123.4567'
+// 'new' is optional
+y = BigNumber(x)                           // '123.4567'
+

+ If n is a base 10 value it can be in normal (fixed-point) or + exponential notation. Values in other bases must be in normal notation. Values in any base can + have fraction digits, i.e. digits after the decimal point. +

+
+new BigNumber(43210)                       // '43210'
+new BigNumber('4.321e+4')                  // '43210'
+new BigNumber('-735.0918e-430')            // '-7.350918e-428'
+new BigNumber('123412421.234324', 5)       // '607236.557696'
+

+ Signed 0, signed Infinity and NaN are supported. +

+
+new BigNumber('-Infinity')                 // '-Infinity'
+new BigNumber(NaN)                         // 'NaN'
+new BigNumber(-0)                          // '0'
+new BigNumber('.5')                        // '0.5'
+new BigNumber('+2')                        // '2'
+

+ String values in hexadecimal literal form, e.g. '0xff', are valid, as are + string values with the octal and binary prefixs '0o' and '0b'. + String values in octal literal form without the prefix will be interpreted as + decimals, e.g. '011' is interpreted as 11, not 9. +

+
+new BigNumber(-10110100.1, 2)              // '-180.5'
+new BigNumber('-0b10110100.1')             // '-180.5'
+new BigNumber('ff.8', 16)                  // '255.5'
+new BigNumber('0xff.8')                    // '255.5'
+

+ If a base is specified, n is rounded according to the current + DECIMAL_PLACES and + ROUNDING_MODE settings. This includes base + 10 so don't include a base parameter for decimal values unless + this behaviour is wanted. +

+
BigNumber.config({ DECIMAL_PLACES: 5 })
+new BigNumber(1.23456789)                  // '1.23456789'
+new BigNumber(1.23456789, 10)              // '1.23457'
+

An error is thrown if base is invalid. See Errors.

+

+ There is no limit to the number of digits of a value of type string (other than + that of JavaScript's maximum array size). See RANGE to set + the maximum and minimum possible exponent value of a BigNumber. +

+
+new BigNumber('5032485723458348569331745.33434346346912144534543')
+new BigNumber('4.321e10000000')
+

BigNumber NaN is returned if n is invalid + (unless BigNumber.DEBUG is true, see below).

+
+new BigNumber('.1*')                       // 'NaN'
+new BigNumber('blurgh')                    // 'NaN'
+new BigNumber(9, 2)                        // 'NaN'
+

+ To aid in debugging, if BigNumber.DEBUG is true then an error will + be thrown on an invalid n. An error will also be thrown if n is of + type number with more than 15 significant digits, as calling + toString or valueOf on + these numbers may not result in the intended value. +

+
+console.log(823456789123456.3)            //  823456789123456.2
+new BigNumber(823456789123456.3)          // '823456789123456.2'
+BigNumber.DEBUG = true
+// '[BigNumber Error] Number primitive has more than 15 significant digits'
+new BigNumber(823456789123456.3)
+// '[BigNumber Error] Not a base 2 number'
+new BigNumber(9, 2)
+ + + + +

Methods

+

The static methods of a BigNumber constructor.

+ + + + +
clone + .clone([object]) ⇒ BigNumber constructor +
+

object: object

+

+ Returns a new independent BigNumber constructor with configuration as described by + object (see config), or with the default + configuration if object is null or undefined. +

+

+ Throws if object is not an object. See Errors. +

+
BigNumber.config({ DECIMAL_PLACES: 5 })
+BN = BigNumber.clone({ DECIMAL_PLACES: 9 })
+
+x = new BigNumber(1)
+y = new BN(1)
+
+x.div(3)                        // 0.33333
+y.div(3)                        // 0.333333333
+
+// BN = BigNumber.clone({ DECIMAL_PLACES: 9 }) is equivalent to:
+BN = BigNumber.clone()
+BN.config({ DECIMAL_PLACES: 9 })
+ + + +
configset([object]) ⇒ object
+

+ object: object: an object that contains some or all of the following + properties. +

+

Configures the settings for this particular BigNumber constructor.

+ +
+
DECIMAL_PLACES
+
+ number: integer, 0 to 1e+9 inclusive
+ Default value: 20 +
+
+ The maximum number of decimal places of the results of operations involving + division, i.e. division, square root and base conversion operations, and power + operations with negative exponents.
+
+
+
BigNumber.config({ DECIMAL_PLACES: 5 })
+BigNumber.set({ DECIMAL_PLACES: 5 })    // equivalent
+
+ + + +
ROUNDING_MODE
+
+ number: integer, 0 to 8 inclusive
+ Default value: 4 (ROUND_HALF_UP) +
+
+ The rounding mode used in the above operations and the default rounding mode of + decimalPlaces, + precision, + toExponential, + toFixed, + toFormat and + toPrecision. +
+
The modes are available as enumerated properties of the BigNumber constructor.
+
+
BigNumber.config({ ROUNDING_MODE: 0 })
+BigNumber.set({ ROUNDING_MODE: BigNumber.ROUND_UP })    // equivalent
+
+ + + +
EXPONENTIAL_AT
+
+ number: integer, magnitude 0 to 1e+9 inclusive, or +
+ number[]: [ integer -1e+9 to 0 inclusive, integer + 0 to 1e+9 inclusive ]
+ Default value: [-7, 20] +
+
+ The exponent value(s) at which toString returns exponential notation. +
+
+ If a single number is assigned, the value is the exponent magnitude.
+ If an array of two numbers is assigned then the first number is the negative exponent + value at and beneath which exponential notation is used, and the second number is the + positive exponent value at and above which the same. +
+
+ For example, to emulate JavaScript numbers in terms of the exponent values at which they + begin to use exponential notation, use [-7, 20]. +
+
+
BigNumber.config({ EXPONENTIAL_AT: 2 })
+new BigNumber(12.3)         // '12.3'        e is only 1
+new BigNumber(123)          // '1.23e+2'
+new BigNumber(0.123)        // '0.123'       e is only -1
+new BigNumber(0.0123)       // '1.23e-2'
+
+BigNumber.config({ EXPONENTIAL_AT: [-7, 20] })
+new BigNumber(123456789)    // '123456789'   e is only 8
+new BigNumber(0.000000123)  // '1.23e-7'
+
+// Almost never return exponential notation:
+BigNumber.config({ EXPONENTIAL_AT: 1e+9 })
+
+// Always return exponential notation:
+BigNumber.config({ EXPONENTIAL_AT: 0 })
+
+
+ Regardless of the value of EXPONENTIAL_AT, the toFixed method + will always return a value in normal notation and the toExponential method + will always return a value in exponential form. +
+
+ Calling toString with a base argument, e.g. toString(10), will + also always return normal notation. +
+ + + +
RANGE
+
+ number: integer, magnitude 1 to 1e+9 inclusive, or +
+ number[]: [ integer -1e+9 to -1 inclusive, integer + 1 to 1e+9 inclusive ]
+ Default value: [-1e+9, 1e+9] +
+
+ The exponent value(s) beyond which overflow to Infinity and underflow to + zero occurs. +
+
+ If a single number is assigned, it is the maximum exponent magnitude: values wth a + positive exponent of greater magnitude become Infinity and those with a + negative exponent of greater magnitude become zero. +
+ If an array of two numbers is assigned then the first number is the negative exponent + limit and the second number is the positive exponent limit. +
+
+ For example, to emulate JavaScript numbers in terms of the exponent values at which they + become zero and Infinity, use [-324, 308]. +
+
+
BigNumber.config({ RANGE: 500 })
+BigNumber.config().RANGE     // [ -500, 500 ]
+new BigNumber('9.999e499')   // '9.999e+499'
+new BigNumber('1e500')       // 'Infinity'
+new BigNumber('1e-499')      // '1e-499'
+new BigNumber('1e-500')      // '0'
+
+BigNumber.config({ RANGE: [-3, 4] })
+new BigNumber(99999)         // '99999'      e is only 4
+new BigNumber(100000)        // 'Infinity'   e is 5
+new BigNumber(0.001)         // '0.01'       e is only -3
+new BigNumber(0.0001)        // '0'          e is -4
+
+
+ The largest possible magnitude of a finite BigNumber is + 9.999...e+1000000000.
+ The smallest possible magnitude of a non-zero BigNumber is 1e-1000000000. +
+ + + +
CRYPTO
+
+ boolean: true or false.
+ Default value: false +
+
+ The value that determines whether cryptographically-secure pseudo-random number + generation is used. +
+
+ If CRYPTO is set to true then the + random method will generate random digits using + crypto.getRandomValues in browsers that support it, or + crypto.randomBytes if using a version of Node.js that supports it. +
+
+ If neither function is supported by the host environment then attempting to set + CRYPTO to true will fail and an exception will be thrown. +
+
+ If CRYPTO is false then the source of randomness used will be + Math.random (which is assumed to generate at least 30 bits of + randomness). +
+
See random.
+
+
BigNumber.config({ CRYPTO: true })
+BigNumber.config().CRYPTO       // true
+BigNumber.random()              // 0.54340758610486147524
+
+ + + +
MODULO_MODE
+
+ number: integer, 0 to 9 inclusive
+ Default value: 1 (ROUND_DOWN) +
+
The modulo mode used when calculating the modulus: a mod n.
+
+ The quotient, q = a / n, is calculated according to the + ROUNDING_MODE that corresponds to the chosen + MODULO_MODE. +
+
The remainder, r, is calculated as: r = a - n * q.
+
+ The modes that are most commonly used for the modulus/remainder operation are shown in + the following table. Although the other rounding modes can be used, they may not give + useful results. +
+
+ + + + + + + + + + + + + + + + + + + + + + +
PropertyValueDescription
ROUND_UP0 + The remainder is positive if the dividend is negative, otherwise it is negative. +
ROUND_DOWN1 + The remainder has the same sign as the dividend.
+ This uses 'truncating division' and matches the behaviour of JavaScript's + remainder operator %. +
ROUND_FLOOR3 + The remainder has the same sign as the divisor.
+ This matches Python's % operator. +
ROUND_HALF_EVEN6The IEEE 754 remainder function.
EUCLID9 + The remainder is always positive. Euclidian division:
+ q = sign(n) * floor(a / abs(n)) +
+
+
+ The rounding/modulo modes are available as enumerated properties of the BigNumber + constructor. +
+
See modulo.
+
+
BigNumber.config({ MODULO_MODE: BigNumber.EUCLID })
+BigNumber.config({ MODULO_MODE: 9 })          // equivalent
+
+ + + +
POW_PRECISION
+
+ number: integer, 0 to 1e+9 inclusive.
+ Default value: 0 +
+
+ The maximum precision, i.e. number of significant digits, of the result of the power + operation (unless a modulus is specified). +
+
If set to 0, the number of significant digits will not be limited.
+
See exponentiatedBy.
+
BigNumber.config({ POW_PRECISION: 100 })
+ + + +
FORMAT
+
object
+
+ The FORMAT object configures the format of the string returned by the + toFormat method. +
+
+ The example below shows the properties of the FORMAT object that are + recognised, and their default values. +
+
+ Unlike the other configuration properties, the values of the properties of the + FORMAT object will not be checked for validity. The existing + FORMAT object will simply be replaced by the object that is passed in. + The object can include any number of the properties shown below. +
+
See toFormat for examples of usage.
+
+
+BigNumber.config({
+    FORMAT: {
+        // the decimal separator
+        decimalSeparator: '.',
+        // the grouping separator of the integer part
+        groupSeparator: ',',
+        // the primary grouping size of the integer part
+        groupSize: 3,
+        // the secondary grouping size of the integer part
+        secondaryGroupSize: 0,
+        // the grouping separator of the fraction part
+        fractionGroupSeparator: ' ',
+        // the grouping size of the fraction part
+        fractionGroupSize: 0
+    }
+});
+
+ + + +
ALPHABET
+
+ string
+ Default value: '0123456789abcdefghijklmnopqrstuvwxyz' +
+
+ The alphabet used for base conversion. The length of the alphabet corresponds to the + maximum value of the base argument that can be passed to the + BigNumber constructor or + toString. +
+
+ There is no maximum length for the alphabet, but it must be at least 2 characters long, and + it must not contain a repeated character, or '.', as that is used as the + decimal separator for all values whatever their base. +
+
+
// duodecimal (base 12)
+BigNumber.config({ ALPHABET: '0123456789TE' })
+x = new BigNumber('T', 12)
+x.toString()                // '10'
+x.toString(12)              // 'T'
+
+ + + +
+

+

Returns an object with the above properties and their current values.

+

+ Throws if object is not an object, or if an invalid value is assigned to + one or more of the above properties. See Errors. +

+
+BigNumber.config({
+    DECIMAL_PLACES: 40,
+    ROUNDING_MODE: BigNumber.ROUND_HALF_CEIL,
+    EXPONENTIAL_AT: [-10, 20],
+    RANGE: [-500, 500],
+    CRYPTO: true,
+    MODULO_MODE: BigNumber.ROUND_FLOOR,
+    POW_PRECISION: 80,
+    FORMAT: {
+        groupSize: 3,
+        groupSeparator: ' ',
+        decimalSeparator: ','
+    },
+    ALPHABET: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'
+});
+
+obj = BigNumber.config();
+obj.DECIMAL_PLACES        // 40
+obj.RANGE                 // [-500, 500]
+ + + +
+ isBigNumber.isBigNumber(value) ⇒ boolean +
+

value: any

+

+ Returns true if value is a BigNumber instance, otherwise returns + false. +

+
x = 42
+y = new BigNumber(x)
+
+BigNumber.isBigNumber(x)             // false
+y instanceof BigNumber               // true
+BigNumber.isBigNumber(y)             // true
+
+BN = BigNumber.clone();
+z = new BN(x)
+z instanceof BigNumber               // false
+BigNumber.isBigNumber(z)             // true
+ + + +
+ maximum.max([arg1 [, arg2, ...]]) ⇒ BigNumber +
+

+ arg1, arg2, ...: number|string|BigNumber
+ See BigNumber for further parameter details. +

+

+ Returns a BigNumber whose value is the maximum of arg1, + arg2,... . +

+

The argument to this method can also be an array of values.

+

The return value is always exact and unrounded.

+
x = new BigNumber('3257869345.0378653')
+BigNumber.maximum(4e9, x, '123456789.9')      // '4000000000'
+
+arr = [12, '13', new BigNumber(14)]
+BigNumber.max(arr)                            // '14'
+ + + +
+ minimum.min([arg1 [, arg2, ...]]) ⇒ BigNumber +
+

+ arg1, arg2, ...: number|string|BigNumber
+ See BigNumber for further parameter details. +

+

+ Returns a BigNumber whose value is the minimum of arg1, + arg2,... . +

+

The argument to this method can also be an array of values.

+

The return value is always exact and unrounded.

+
x = new BigNumber('3257869345.0378653')
+BigNumber.minimum(4e9, x, '123456789.9')      // '123456789.9'
+
+arr = [2, new BigNumber(-14), '-15.9999', -12]
+BigNumber.min(arr)                            // '-15.9999'
+ + + +
+ random.random([dp]) ⇒ BigNumber +
+

dp: number: integer, 0 to 1e+9 inclusive

+

+ Returns a new BigNumber with a pseudo-random value equal to or greater than 0 and + less than 1. +

+

+ The return value will have dp decimal places (or less if trailing zeros are + produced).
+ If dp is omitted then the number of decimal places will default to the current + DECIMAL_PLACES setting. +

+

+ Depending on the value of this BigNumber constructor's + CRYPTO setting and the support for the + crypto object in the host environment, the random digits of the return value are + generated by either Math.random (fastest), crypto.getRandomValues + (Web Cryptography API in recent browsers) or crypto.randomBytes (Node.js). +

+

+ If CRYPTO is true, i.e. one of the + crypto methods is to be used, the value of a returned BigNumber should be + cryptographically-secure and statistically indistinguishable from a random value. +

+

+ Throws if dp is invalid. See Errors. +

+
BigNumber.config({ DECIMAL_PLACES: 10 })
+BigNumber.random()              // '0.4117936847'
+BigNumber.random(20)            // '0.78193327636914089009'
+ + + +

Properties

+

+ The library's enumerated rounding modes are stored as properties of the constructor.
+ (They are not referenced internally by the library itself.) +

+

+ Rounding modes 0 to 6 (inclusive) are the same as those of Java's + BigDecimal class. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyValueDescription
ROUND_UP0Rounds away from zero
ROUND_DOWN1Rounds towards zero
ROUND_CEIL2Rounds towards Infinity
ROUND_FLOOR3Rounds towards -Infinity
ROUND_HALF_UP4 + Rounds towards nearest neighbour.
+ If equidistant, rounds away from zero +
ROUND_HALF_DOWN5 + Rounds towards nearest neighbour.
+ If equidistant, rounds towards zero +
ROUND_HALF_EVEN6 + Rounds towards nearest neighbour.
+ If equidistant, rounds towards even neighbour +
ROUND_HALF_CEIL7 + Rounds towards nearest neighbour.
+ If equidistant, rounds towards Infinity +
ROUND_HALF_FLOOR8 + Rounds towards nearest neighbour.
+ If equidistant, rounds towards -Infinity +
+
+BigNumber.config({ ROUNDING_MODE: BigNumber.ROUND_CEIL })
+BigNumber.config({ ROUNDING_MODE: 2 })     // equivalent
+ + +

INSTANCE

+ +

Methods

+

The methods inherited by a BigNumber instance from its constructor's prototype object.

+

A BigNumber is immutable in the sense that it is not changed by its methods.

+

+ The treatment of ±0, ±Infinity and NaN is + consistent with how JavaScript treats these values. +

+

Many method names have a shorter alias.

+ + + +
absoluteValue.abs() ⇒ BigNumber
+

+ Returns a BigNumber whose value is the absolute value, i.e. the magnitude, of the value of + this BigNumber. +

+

The return value is always exact and unrounded.

+
+x = new BigNumber(-0.8)
+y = x.absoluteValue()           // '0.8'
+z = y.abs()                     // '0.8'
+ + + +
+ comparedTo.comparedTo(n [, base]) ⇒ number +
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+ + + + + + + + + + + + + + + + + + +
Returns 
1If the value of this BigNumber is greater than the value of n
-1If the value of this BigNumber is less than the value of n
0If this BigNumber and n have the same value
nullIf the value of either this BigNumber or n is NaN
+
+x = new BigNumber(Infinity)
+y = new BigNumber(5)
+x.comparedTo(y)                 // 1
+x.comparedTo(x.minus(1))        // 0
+y.comparedTo(NaN)               // null
+y.comparedTo('110', 2)          // -1
+ + + +
+ decimalPlaces.dp([dp [, rm]]) ⇒ BigNumber|number +
+

+ dp: number: integer, 0 to 1e+9 inclusive
+ rm: number: integer, 0 to 8 inclusive +

+

+ If dp is a number, returns a BigNumber whose value is the value of this BigNumber + rounded by rounding mode rm to a maximum of dp decimal places. +

+

+ If dp is omitted, or is null or undefined, the return + value is the number of decimal places of the value of this BigNumber, or null if + the value of this BigNumber is ±Infinity or NaN. +

+

+ If rm is omitted, or is null or undefined, + ROUNDING_MODE is used. +

+

+ Throws if dp or rm is invalid. See Errors. +

+
+x = new BigNumber(1234.56)
+x.decimalPlaces(1)                     // '1234.6'
+x.dp()                                 // 2
+x.decimalPlaces(2)                     // '1234.56'
+x.dp(10)                               // '1234.56'
+x.decimalPlaces(0, 1)                  // '1234'
+x.dp(0, 6)                             // '1235'
+x.decimalPlaces(1, 1)                  // '1234.5'
+x.dp(1, BigNumber.ROUND_HALF_EVEN)     // '1234.6'
+x                                      // '1234.56'
+y = new BigNumber('9.9e-101')
+y.dp()                                 // 102
+ + + +
dividedBy.div(n [, base]) ⇒ BigNumber +
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

+ Returns a BigNumber whose value is the value of this BigNumber divided by + n, rounded according to the current + DECIMAL_PLACES and + ROUNDING_MODE settings. +

+
+x = new BigNumber(355)
+y = new BigNumber(113)
+x.dividedBy(y)                  // '3.14159292035398230088'
+x.div(5)                        // '71'
+x.div(47, 16)                   // '5'
+ + + +
+ dividedToIntegerBy.idiv(n [, base]) ⇒ + BigNumber +
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

+ Returns a BigNumber whose value is the integer part of dividing the value of this BigNumber by + n. +

+
+x = new BigNumber(5)
+y = new BigNumber(3)
+x.dividedToIntegerBy(y)         // '1'
+x.idiv(0.7)                     // '7'
+x.idiv('0.f', 16)               // '5'
+ + + +
+ exponentiatedBy.pow(n [, m]) ⇒ BigNumber +
+

+ n: number|string|BigNumber: integer
+ m: number|string|BigNumber +

+

+ Returns a BigNumber whose value is the value of this BigNumber exponentiated by + n, i.e. raised to the power n, and optionally modulo a modulus + m. +

+

+ Throws if n is not an integer. See Errors. +

+

+ If n is negative the result is rounded according to the current + DECIMAL_PLACES and + ROUNDING_MODE settings. +

+

+ As the number of digits of the result of the power operation can grow so large so quickly, + e.g. 123.45610000 has over 50000 digits, the number of significant + digits calculated is limited to the value of the + POW_PRECISION setting (unless a modulus + m is specified). +

+

+ By default POW_PRECISION is set to 0. + This means that an unlimited number of significant digits will be calculated, and that the + method's performance will decrease dramatically for larger exponents. +

+

+ If m is specified and the value of m, n and this + BigNumber are integers, and n is positive, then a fast modular exponentiation + algorithm is used, otherwise the operation will be performed as + x.exponentiatedBy(n).modulo(m) with a + POW_PRECISION of 0. +

+
+Math.pow(0.7, 2)                // 0.48999999999999994
+x = new BigNumber(0.7)
+x.exponentiatedBy(2)            // '0.49'
+BigNumber(3).pow(-2)            // '0.11111111111111111111'
+ + + +
+ integerValue.integerValue([rm]) ⇒ BigNumber +
+

+ rm: number: integer, 0 to 8 inclusive +

+

+ Returns a BigNumber whose value is the value of this BigNumber rounded to an integer using + rounding mode rm. +

+

+ If rm is omitted, or is null or undefined, + ROUNDING_MODE is used. +

+

+ Throws if rm is invalid. See Errors. +

+
+x = new BigNumber(123.456)
+x.integerValue()                        // '123'
+x.integerValue(BigNumber.ROUND_CEIL)    // '124'
+y = new BigNumber(-12.7)
+y.integerValue()                        // '-13'
+y.integerValue(BigNumber.ROUND_DOWN)    // '-12'
+

+ The following is an example of how to add a prototype method that emulates JavaScript's + Math.round function. Math.ceil, Math.floor and + Math.trunc can be emulated in the same way with + BigNumber.ROUND_CEIL, BigNumber.ROUND_FLOOR and + BigNumber.ROUND_DOWN respectively. +

+
+BigNumber.prototype.round = function (n) {
+  return n.integerValue(BigNumber.ROUND_HALF_CEIL);
+};
+x.round()                               // '123'
+ + + +
isEqualTo.eq(n [, base]) ⇒ boolean
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

+ Returns true if the value of this BigNumber is equal to the value of + n, otherwise returns false.
+ As with JavaScript, NaN does not equal NaN. +

+

Note: This method uses the comparedTo method internally.

+
+0 === 1e-324                    // true
+x = new BigNumber(0)
+x.isEqualTo('1e-324')           // false
+BigNumber(-0).eq(x)             // true  ( -0 === 0 )
+BigNumber(255).eq('ff', 16)     // true
+
+y = new BigNumber(NaN)
+y.isEqualTo(NaN)                // false
+ + + +
isFinite.isFinite() ⇒ boolean
+

+ Returns true if the value of this BigNumber is a finite number, otherwise + returns false. +

+

+ The only possible non-finite values of a BigNumber are NaN, Infinity + and -Infinity. +

+
+x = new BigNumber(1)
+x.isFinite()                    // true
+y = new BigNumber(Infinity)
+y.isFinite()                    // false
+

+ Note: The native method isFinite() can be used if + n <= Number.MAX_VALUE. +

+ + + +
isGreaterThan.gt(n [, base]) ⇒ boolean
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

+ Returns true if the value of this BigNumber is greater than the value of + n, otherwise returns false. +

+

Note: This method uses the comparedTo method internally.

+
+0.1 > (0.3 - 0.2)                             // true
+x = new BigNumber(0.1)
+x.isGreaterThan(BigNumber(0.3).minus(0.2))    // false
+BigNumber(0).gt(x)                            // false
+BigNumber(11, 3).gt(11.1, 2)                  // true
+ + + +
+ isGreaterThanOrEqualTo.gte(n [, base]) ⇒ boolean +
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

+ Returns true if the value of this BigNumber is greater than or equal to the value + of n, otherwise returns false. +

+

Note: This method uses the comparedTo method internally.

+
+(0.3 - 0.2) >= 0.1                     // false
+x = new BigNumber(0.3).minus(0.2)
+x.isGreaterThanOrEqualTo(0.1)          // true
+BigNumber(1).gte(x)                    // true
+BigNumber(10, 18).gte('i', 36)         // true
+ + + +
isInteger.isInteger() ⇒ boolean
+

+ Returns true if the value of this BigNumber is an integer, otherwise returns + false. +

+
+x = new BigNumber(1)
+x.isInteger()                   // true
+y = new BigNumber(123.456)
+y.isInteger()                   // false
+ + + +
isLessThan.lt(n [, base]) ⇒ boolean
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

+ Returns true if the value of this BigNumber is less than the value of + n, otherwise returns false. +

+

Note: This method uses the comparedTo method internally.

+
+(0.3 - 0.2) < 0.1                       // true
+x = new BigNumber(0.3).minus(0.2)
+x.isLessThan(0.1)                       // false
+BigNumber(0).lt(x)                      // true
+BigNumber(11.1, 2).lt(11, 3)            // true
+ + + +
+ isLessThanOrEqualTo.lte(n [, base]) ⇒ boolean +
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

+ Returns true if the value of this BigNumber is less than or equal to the value of + n, otherwise returns false. +

+

Note: This method uses the comparedTo method internally.

+
+0.1 <= (0.3 - 0.2)                                // false
+x = new BigNumber(0.1)
+x.isLessThanOrEqualTo(BigNumber(0.3).minus(0.2))  // true
+BigNumber(-1).lte(x)                              // true
+BigNumber(10, 18).lte('i', 36)                    // true
+ + + +
isNaN.isNaN() ⇒ boolean
+

+ Returns true if the value of this BigNumber is NaN, otherwise + returns false. +

+
+x = new BigNumber(NaN)
+x.isNaN()                       // true
+y = new BigNumber('Infinity')
+y.isNaN()                       // false
+

Note: The native method isNaN() can also be used.

+ + + +
isNegative.isNegative() ⇒ boolean
+

+ Returns true if the value of this BigNumber is negative, otherwise returns + false. +

+
+x = new BigNumber(-0)
+x.isNegative()                  // true
+y = new BigNumber(2)
+y.isNegative()                  // false
+

Note: n < 0 can be used if n <= -Number.MIN_VALUE.

+ + + +
isPositive.isPositive() ⇒ boolean
+

+ Returns true if the value of this BigNumber is positive, otherwise returns + false. +

+
+x = new BigNumber(-0)
+x.isPositive()                  // false
+y = new BigNumber(2)
+y.isPositive()                  // true
+ + + +
isZero.isZero() ⇒ boolean
+

+ Returns true if the value of this BigNumber is zero or minus zero, otherwise + returns false. +

+
+x = new BigNumber(-0)
+x.isZero() && x.isneg()         // true
+y = new BigNumber(Infinity)
+y.isZero()                      // false
+

Note: n == 0 can be used if n >= Number.MIN_VALUE.

+ + + +
+ minus.minus(n [, base]) ⇒ BigNumber +
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

Returns a BigNumber whose value is the value of this BigNumber minus n.

+

The return value is always exact and unrounded.

+
+0.3 - 0.1                       // 0.19999999999999998
+x = new BigNumber(0.3)
+x.minus(0.1)                    // '0.2'
+x.minus(0.6, 20)                // '0'
+ + + +
modulo.mod(n [, base]) ⇒ BigNumber
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

+ Returns a BigNumber whose value is the value of this BigNumber modulo n, i.e. + the integer remainder of dividing this BigNumber by n. +

+

+ The value returned, and in particular its sign, is dependent on the value of the + MODULO_MODE setting of this BigNumber constructor. + If it is 1 (default value), the result will have the same sign as this BigNumber, + and it will match that of Javascript's % operator (within the limits of double + precision) and BigDecimal's remainder method. +

+

The return value is always exact and unrounded.

+

+ See MODULO_MODE for a description of the other + modulo modes. +

+
+1 % 0.9                         // 0.09999999999999998
+x = new BigNumber(1)
+x.modulo(0.9)                   // '0.1'
+y = new BigNumber(33)
+y.mod('a', 33)                  // '3'
+ + + +
+ multipliedBy.times(n [, base]) ⇒ BigNumber +
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

+ Returns a BigNumber whose value is the value of this BigNumber multiplied by n. +

+

The return value is always exact and unrounded.

+
+0.6 * 3                         // 1.7999999999999998
+x = new BigNumber(0.6)
+y = x.multipliedBy(3)           // '1.8'
+BigNumber('7e+500').times(y)    // '1.26e+501'
+x.multipliedBy('-a', 16)        // '-6'
+ + + +
negated.negated() ⇒ BigNumber
+

+ Returns a BigNumber whose value is the value of this BigNumber negated, i.e. multiplied by + -1. +

+
+x = new BigNumber(1.8)
+x.negated()                     // '-1.8'
+y = new BigNumber(-1.3)
+y.negated()                     // '1.3'
+ + + +
plus.plus(n [, base]) ⇒ BigNumber
+

+ n: number|string|BigNumber
+ base: number
+ See BigNumber for further parameter details. +

+

Returns a BigNumber whose value is the value of this BigNumber plus n.

+

The return value is always exact and unrounded.

+
+0.1 + 0.2                       // 0.30000000000000004
+x = new BigNumber(0.1)
+y = x.plus(0.2)                 // '0.3'
+BigNumber(0.7).plus(x).plus(y)  // '1'
+x.plus('0.1', 8)                // '0.225'
+ + + +
+ precision.sd([d [, rm]]) ⇒ BigNumber|number +
+

+ d: number|boolean: integer, 1 to 1e+9 + inclusive, or true or false
+ rm: number: integer, 0 to 8 inclusive. +

+

+ If d is a number, returns a BigNumber whose value is the value of this BigNumber + rounded to a precision of d significant digits using rounding mode + rm. +

+

+ If d is omitted or is null or undefined, the return + value is the number of significant digits of the value of this BigNumber, or null + if the value of this BigNumber is ±Infinity or NaN.

+

+

+ If d is true then any trailing zeros of the integer + part of a number are counted as significant digits, otherwise they are not. +

+

+ If rm is omitted or is null or undefined, + ROUNDING_MODE will be used. +

+

+ Throws if d or rm is invalid. See Errors. +

+
+x = new BigNumber(9876.54321)
+x.precision(6)                         // '9876.54'
+x.sd()                                 // 9
+x.precision(6, BigNumber.ROUND_UP)     // '9876.55'
+x.sd(2)                                // '9900'
+x.precision(2, 1)                      // '9800'
+x                                      // '9876.54321'
+y = new BigNumber(987000)
+y.precision()                          // 3
+y.sd(true)                             // 6
+ + + +
shiftedBy.shiftedBy(n) ⇒ BigNumber
+

+ n: number: integer, + -9007199254740991 to 9007199254740991 inclusive +

+

+ Returns a BigNumber whose value is the value of this BigNumber shifted by n + places. +

+ The shift is of the decimal point, i.e. of powers of ten, and is to the left if n + is negative or to the right if n is positive. +

+

The return value is always exact and unrounded.

+

+ Throws if n is invalid. See Errors. +

+
+x = new BigNumber(1.23)
+x.shiftedBy(3)                      // '1230'
+x.shiftedBy(-3)                     // '0.00123'
+ + + +
squareRoot.sqrt() ⇒ BigNumber
+

+ Returns a BigNumber whose value is the square root of the value of this BigNumber, + rounded according to the current + DECIMAL_PLACES and + ROUNDING_MODE settings. +

+

+ The return value will be correctly rounded, i.e. rounded as if the result was first calculated + to an infinite number of correct digits before rounding. +

+
+x = new BigNumber(16)
+x.squareRoot()                  // '4'
+y = new BigNumber(3)
+y.sqrt()                        // '1.73205080756887729353'
+ + + +
+ toExponential.toExponential([dp [, rm]]) ⇒ string +
+

+ dp: number: integer, 0 to 1e+9 inclusive
+ rm: number: integer, 0 to 8 inclusive +

+

+ Returns a string representing the value of this BigNumber in exponential notation rounded + using rounding mode rm to dp decimal places, i.e with one digit + before the decimal point and dp digits after it. +

+

+ If the value of this BigNumber in exponential notation has fewer than dp fraction + digits, the return value will be appended with zeros accordingly. +

+

+ If dp is omitted, or is null or undefined, the number + of digits after the decimal point defaults to the minimum number of digits necessary to + represent the value exactly.
+ If rm is omitted or is null or undefined, + ROUNDING_MODE is used. +

+

+ Throws if dp or rm is invalid. See Errors. +

+
+x = 45.6
+y = new BigNumber(x)
+x.toExponential()               // '4.56e+1'
+y.toExponential()               // '4.56e+1'
+x.toExponential(0)              // '5e+1'
+y.toExponential(0)              // '5e+1'
+x.toExponential(1)              // '4.6e+1'
+y.toExponential(1)              // '4.6e+1'
+y.toExponential(1, 1)           // '4.5e+1'  (ROUND_DOWN)
+x.toExponential(3)              // '4.560e+1'
+y.toExponential(3)              // '4.560e+1'
+ + + +
+ toFixed.toFixed([dp [, rm]]) ⇒ string +
+

+ dp: number: integer, 0 to 1e+9 inclusive
+ rm: number: integer, 0 to 8 inclusive +

+

+ Returns a string representing the value of this BigNumber in normal (fixed-point) notation + rounded to dp decimal places using rounding mode rm. +

+

+ If the value of this BigNumber in normal notation has fewer than dp fraction + digits, the return value will be appended with zeros accordingly. +

+

+ Unlike Number.prototype.toFixed, which returns exponential notation if a number + is greater or equal to 1021, this method will always return normal + notation. +

+

+ If dp is omitted or is null or undefined, the return + value will be unrounded and in normal notation. This is also unlike + Number.prototype.toFixed, which returns the value to zero decimal places.
+ It is useful when fixed-point notation is required and the current + EXPONENTIAL_AT setting causes + toString to return exponential notation.
+ If rm is omitted or is null or undefined, + ROUNDING_MODE is used. +

+

+ Throws if dp or rm is invalid. See Errors. +

+
+x = 3.456
+y = new BigNumber(x)
+x.toFixed()                     // '3'
+y.toFixed()                     // '3.456'
+y.toFixed(0)                    // '3'
+x.toFixed(2)                    // '3.46'
+y.toFixed(2)                    // '3.46'
+y.toFixed(2, 1)                 // '3.45'  (ROUND_DOWN)
+x.toFixed(5)                    // '3.45600'
+y.toFixed(5)                    // '3.45600'
+ + + +
+ toFormat.toFormat([dp [, rm]]) ⇒ string +
+

+ dp: number: integer, 0 to 1e+9 inclusive
+ rm: number: integer, 0 to 8 inclusive +

+

+

+ Returns a string representing the value of this BigNumber in normal (fixed-point) notation + rounded to dp decimal places using rounding mode rm, and formatted + according to the properties of the FORMAT object. +

+

+ See the examples below for the properties of the + FORMAT object, their types and their usage. +

+

+ If dp is omitted or is null or undefined, then the + return value is not rounded to a fixed number of decimal places.
+ If rm is omitted or is null or undefined, + ROUNDING_MODE is used. +

+

+ Throws if dp or rm is invalid. See Errors. +

+
+format = {
+    decimalSeparator: '.',
+    groupSeparator: ',',
+    groupSize: 3,
+    secondaryGroupSize: 0,
+    fractionGroupSeparator: ' ',
+    fractionGroupSize: 0
+}
+BigNumber.config({ FORMAT: format })
+
+x = new BigNumber('123456789.123456789')
+x.toFormat()                    // '123,456,789.123456789'
+x.toFormat(1)                   // '123,456,789.1'
+
+// If a reference to the object assigned to FORMAT has been retained,
+// the format properties can be changed directly
+format.groupSeparator = ' '
+format.fractionGroupSize = 5
+x.toFormat()                    // '123 456 789.12345 6789'
+
+BigNumber.config({
+    FORMAT: {
+        decimalSeparator: ',',
+        groupSeparator: '.',
+        groupSize: 3,
+        secondaryGroupSize: 2
+    }
+})
+
+x.toFormat(6)                   // '12.34.56.789,123'
+ + + +
+ toFraction.toFraction([max]) ⇒ [string, string] +
+

+ max: number|string|BigNumber: integer >= 1 and <= + Infinity +

+

+ Returns a string array representing the value of this BigNumber as a simple fraction with an + integer numerator and an integer denominator. The denominator will be a positive non-zero + value less than or equal to max. +

+

+ If a maximum denominator, max, is not specified, or is null or + undefined, the denominator will be the lowest value necessary to represent the + number exactly. +

+

+ Throws if max is invalid. See Errors. +

+
+x = new BigNumber(1.75)
+x.toFraction()                  // '7, 4'
+
+pi = new BigNumber('3.14159265358')
+pi.toFraction()                 // '157079632679,50000000000'
+pi.toFraction(100000)           // '312689, 99532'
+pi.toFraction(10000)            // '355, 113'
+pi.toFraction(100)              // '311, 99'
+pi.toFraction(10)               // '22, 7'
+pi.toFraction(1)                // '3, 1'
+ + + +
toJSON.toJSON() ⇒ string
+

As valueOf.

+
+x = new BigNumber('177.7e+457')
+y = new BigNumber(235.4325)
+z = new BigNumber('0.0098074')
+
+// Serialize an array of three BigNumbers
+str = JSON.stringify( [x, y, z] )
+// "["1.777e+459","235.4325","0.0098074"]"
+
+// Return an array of three BigNumbers
+JSON.parse(str, function (key, val) {
+    return key === '' ? val : new BigNumber(val)
+})
+ + + +
toNumber.toNumber() ⇒ number
+

Returns the value of this BigNumber as a JavaScript number primitive.

+

+ This method is identical to using type coercion with the unary plus operator. +

+
+x = new BigNumber(456.789)
+x.toNumber()                    // 456.789
++x                              // 456.789
+
+y = new BigNumber('45987349857634085409857349856430985')
+y.toNumber()                    // 4.598734985763409e+34
+
+z = new BigNumber(-0)
+1 / z.toNumber()                // -Infinity
+1 / +z                          // -Infinity
+ + + +
+ toPrecision.toPrecision([sd [, rm]]) ⇒ string +
+

+ sd: number: integer, 1 to 1e+9 inclusive
+ rm: number: integer, 0 to 8 inclusive +

+

+ Returns a string representing the value of this BigNumber rounded to sd + significant digits using rounding mode rm. +

+

+ If sd is less than the number of digits necessary to represent the integer part + of the value in normal (fixed-point) notation, then exponential notation is used. +

+

+ If sd is omitted, or is null or undefined, then the + return value is the same as n.toString().
+ If rm is omitted or is null or undefined, + ROUNDING_MODE is used. +

+

+ Throws if sd or rm is invalid. See Errors. +

+
+x = 45.6
+y = new BigNumber(x)
+x.toPrecision()                 // '45.6'
+y.toPrecision()                 // '45.6'
+x.toPrecision(1)                // '5e+1'
+y.toPrecision(1)                // '5e+1'
+y.toPrecision(2, 0)             // '4.6e+1'  (ROUND_UP)
+y.toPrecision(2, 1)             // '4.5e+1'  (ROUND_DOWN)
+x.toPrecision(5)                // '45.600'
+y.toPrecision(5)                // '45.600'
+ + + +
toString.toString([base]) ⇒ string
+

+ base: number: integer, 2 to ALPHABET.length + inclusive (see ALPHABET). +

+

+ Returns a string representing the value of this BigNumber in the specified base, or base + 10 if base is omitted or is null or + undefined. +

+

+ For bases above 10, and using the default base conversion alphabet + (see ALPHABET), values from 10 to + 35 are represented by a-z + (as with Number.prototype.toString). +

+

+ If a base is specified the value is rounded according to the current + DECIMAL_PLACES + and ROUNDING_MODE settings. +

+

+ If a base is not specified, and this BigNumber has a positive + exponent that is equal to or greater than the positive component of the + current EXPONENTIAL_AT setting, + or a negative exponent equal to or less than the negative component of the + setting, then exponential notation is returned. +

+

If base is null or undefined it is ignored.

+

+ Throws if base is invalid. See Errors. +

+
+x = new BigNumber(750000)
+x.toString()                    // '750000'
+BigNumber.config({ EXPONENTIAL_AT: 5 })
+x.toString()                    // '7.5e+5'
+
+y = new BigNumber(362.875)
+y.toString(2)                   // '101101010.111'
+y.toString(9)                   // '442.77777777777777777778'
+y.toString(32)                  // 'ba.s'
+
+BigNumber.config({ DECIMAL_PLACES: 4 });
+z = new BigNumber('1.23456789')
+z.toString()                    // '1.23456789'
+z.toString(10)                  // '1.2346'
+ + + +
valueOf.valueOf() ⇒ string
+

+ As toString, but does not accept a base argument and includes the minus sign + for negative zero. +

+
+x = new BigNumber('-0')
+x.toString()                    // '0'
+x.valueOf()                     // '-0'
+y = new BigNumber('1.777e+457')
+y.valueOf()                     // '1.777e+457'
+ + + +

Properties

+

The properties of a BigNumber instance:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyDescriptionTypeValue
ccoefficient*number[] Array of base 1e14 numbers
eexponentnumberInteger, -1000000000 to 1000000000 inclusive
ssignnumber-1 or 1
+

*significand

+

+ The value of any of the c, e and s properties may also + be null. +

+

+ The above properties are best considered to be read-only. In early versions of this library it + was okay to change the exponent of a BigNumber by writing to its exponent property directly, + but this is no longer reliable as the value of the first element of the coefficient array is + now dependent on the exponent. +

+

+ Note that, as with JavaScript numbers, the original exponent and fractional trailing zeros are + not necessarily preserved. +

+
x = new BigNumber(0.123)              // '0.123'
+x.toExponential()                     // '1.23e-1'
+x.c                                   // '1,2,3'
+x.e                                   // -1
+x.s                                   // 1
+
+y = new Number(-123.4567000e+2)       // '-12345.67'
+y.toExponential()                     // '-1.234567e+4'
+z = new BigNumber('-123.4567000e+2')  // '-12345.67'
+z.toExponential()                     // '-1.234567e+4'
+z.c                                   // '1,2,3,4,5,6,7'
+z.e                                   // 4
+z.s                                   // -1
+ + + +

Zero, NaN and Infinity

+

+ The table below shows how ±0, NaN and + ±Infinity are stored. +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ces
±0[0]0±1
NaNnullnullnull
±Infinitynullnull±1
+
+x = new Number(-0)              // 0
+1 / x == -Infinity              // true
+
+y = new BigNumber(-0)           // '0'
+y.c                             // '0' ( [0].toString() )
+y.e                             // 0
+y.s                             // -1
+ + + +

Errors

+

The table below shows the errors that are thrown.

+

+ The errors are generic Error objects whose message begins + '[BigNumber Error]'. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodThrows
+ BigNumber
+ comparedTo
+ dividedBy
+ dividedToIntegerBy
+ isEqualTo
+ isGreaterThan
+ isGreaterThanOrEqualTo
+ isLessThan
+ isLessThanOrEqualTo
+ minus
+ modulo
+ plus
+ multipliedBy +
Base not a primitive number
Base not an integer
Base out of range
Number primitive has more than 15 significant digits*
Not a base... number*
Not a number*
cloneObject expected
configObject expected
DECIMAL_PLACES not a primitive number
DECIMAL_PLACES not an integer
DECIMAL_PLACES out of range
ROUNDING_MODE not a primitive number
ROUNDING_MODE not an integer
ROUNDING_MODE out of range
EXPONENTIAL_AT not a primitive number
EXPONENTIAL_AT not an integer
EXPONENTIAL_AT out of range
RANGE not a primitive number
RANGE not an integer
RANGE cannot be zero
RANGE cannot be zero
CRYPTO not true or false
crypto unavailable
MODULO_MODE not a primitive number
MODULO_MODE not an integer
MODULO_MODE out of range
POW_PRECISION not a primitive number
POW_PRECISION not an integer
POW_PRECISION out of range
FORMAT not an object
ALPHABET invalid
+ decimalPlaces
+ precision
+ random
+ shiftedBy
+ toExponential
+ toFixed
+ toFormat
+ toPrecision +
Argument not a primitive number
Argument not an integer
Argument out of range
+ decimalPlaces
+ precision +
Argument not true or false
exponentiatedByArgument not an integer
+ minimum
+ maximum +
Not a number*
+ random + crypto unavailable
toFractionArgument not an integer
Argument out of range
toStringBase not a primitive number
Base not an integer
Base out of range
+

*Only thrown if BigNumber.DEBUG is true.

+

To determine if an exception is a BigNumber Error:

+
+try {
+    // ...
+} catch (e) {
+    if (e instanceof Error && e.message.indexOf('[BigNumber Error]') === 0) {
+        // ...
+    }
+}
+ + + +

FAQ

+ +
Why are trailing fractional zeros removed from BigNumbers?
+

+ Some arbitrary-precision libraries retain trailing fractional zeros as they can indicate the + precision of a value. This can be useful but the results of arithmetic operations can be + misleading. +

+
+x = new BigDecimal("1.0")
+y = new BigDecimal("1.1000")
+z = x.add(y)                      // 2.1000
+
+x = new BigDecimal("1.20")
+y = new BigDecimal("3.45000")
+z = x.multiply(y)                 // 4.1400000
+

+ To specify the precision of a value is to specify that the value lies + within a certain range. +

+

+ In the first example, x has a value of 1.0. The trailing zero shows + the precision of the value, implying that it is in the range 0.95 to + 1.05. Similarly, the precision indicated by the trailing zeros of y + indicates that the value is in the range 1.09995 to 1.10005. +

+

+ If we add the two lowest values in the ranges we have, 0.95 + 1.09995 = 2.04995, + and if we add the two highest values we have, 1.05 + 1.10005 = 2.15005, so the + range of the result of the addition implied by the precision of its operands is + 2.04995 to 2.15005. +

+

+ The result given by BigDecimal of 2.1000 however, indicates that the value is in + the range 2.09995 to 2.10005 and therefore the precision implied by + its trailing zeros may be misleading. +

+

+ In the second example, the true range is 4.122744 to 4.157256 yet + the BigDecimal answer of 4.1400000 indicates a range of 4.13999995 + to 4.14000005. Again, the precision implied by the trailing zeros may be + misleading. +

+

+ This library, like binary floating point and most calculators, does not retain trailing + fractional zeros. Instead, the toExponential, toFixed and + toPrecision methods enable trailing zeros to be added if and when required.
+

+
+ + + diff --git a/nodered/rootfs/data/node_modules/bignumber.js/package.json b/nodered/rootfs/data/node_modules/bignumber.js/package.json new file mode 100644 index 0000000..4adbcec --- /dev/null +++ b/nodered/rootfs/data/node_modules/bignumber.js/package.json @@ -0,0 +1,68 @@ +{ + "_from": "bignumber.js@7.2.1", + "_id": "bignumber.js@7.2.1", + "_inBundle": false, + "_integrity": "sha512-S4XzBk5sMB+Rcb/LNcpzXr57VRTxgAvaAEDAl1AwRx27j00hT84O6OkteE7u8UB3NuaaygCRrEpqox4uDOrbdQ==", + "_location": "/bignumber.js", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "bignumber.js@7.2.1", + "name": "bignumber.js", + "escapedName": "bignumber.js", + "rawSpec": "7.2.1", + "saveSpec": null, + "fetchSpec": "7.2.1" + }, + "_requiredBy": [ + "/mysql" + ], + "_resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-7.2.1.tgz", + "_shasum": "80c048759d826800807c4bfd521e50edbba57a5f", + "_spec": "bignumber.js@7.2.1", + "_where": "/data/node_modules/mysql", + "author": { + "name": "Michael Mclaughlin", + "email": "M8ch88l@gmail.com" + }, + "browser": "bignumber.js", + "bugs": { + "url": "https://github.com/MikeMcl/bignumber.js/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "A library for arbitrary-precision decimal and non-decimal arithmetic", + "engines": { + "node": "*" + }, + "homepage": "https://github.com/MikeMcl/bignumber.js#readme", + "keywords": [ + "arbitrary", + "precision", + "arithmetic", + "big", + "number", + "decimal", + "float", + "biginteger", + "bigdecimal", + "bignumber", + "bigint", + "bignum" + ], + "license": "MIT", + "main": "bignumber", + "module": "bignumber.mjs", + "name": "bignumber.js", + "repository": { + "type": "git", + "url": "git+https://github.com/MikeMcl/bignumber.js.git" + }, + "scripts": { + "build": "uglifyjs bignumber.js --source-map bignumber.js.map -c -m -o bignumber.min.js --preamble \"/* bignumber.js v7.2.1 https://github.com/MikeMcl/bignumber.js/LICENCE */\"", + "test": "node test/test" + }, + "types": "bignumber.d.ts", + "version": "7.2.1" +} diff --git a/nodered/rootfs/data/node_modules/bl/.jshintrc b/nodered/rootfs/data/node_modules/bl/.jshintrc new file mode 100644 index 0000000..c8ef3ca --- /dev/null +++ b/nodered/rootfs/data/node_modules/bl/.jshintrc @@ -0,0 +1,59 @@ +{ + "predef": [ ] + , "bitwise": false + , "camelcase": false + , "curly": false + , "eqeqeq": false + , "forin": false + , "immed": false + , "latedef": false + , "noarg": true + , "noempty": true + , "nonew": true + , "plusplus": false + , "quotmark": true + , "regexp": false + , "undef": true + , "unused": true + , "strict": false + , "trailing": true + , "maxlen": 120 + , "asi": true + , "boss": true + , "debug": true + , "eqnull": true + , "esnext": true + , "evil": true + , "expr": true + , "funcscope": false + , "globalstrict": false + , "iterator": false + , "lastsemic": true + , "laxbreak": true + , "laxcomma": true + , "loopfunc": true + , "multistr": false + , "onecase": false + , "proto": false + , "regexdash": false + , "scripturl": true + , "smarttabs": false + , "shadow": false + , "sub": true + , "supernew": false + , "validthis": true + , "browser": true + , "couch": false + , "devel": false + , "dojo": false + , "mootools": false + , "node": true + , "nonstandard": true + , "prototypejs": false + , "rhino": false + , "worker": true + , "wsh": false + , "nomen": false + , "onevar": false + , "passfail": false +} \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/bl/.travis.yml b/nodered/rootfs/data/node_modules/bl/.travis.yml new file mode 100644 index 0000000..373bb4a --- /dev/null +++ b/nodered/rootfs/data/node_modules/bl/.travis.yml @@ -0,0 +1,16 @@ +sudo: false +language: node_js +node_js: + - '0.10' + - '0.12' + - '4' + - '6' + - '8' + - '9' +branches: + only: + - master +notifications: + email: + - rod@vagg.org + - matteo.collina@gmail.com diff --git a/nodered/rootfs/data/node_modules/bl/LICENSE.md b/nodered/rootfs/data/node_modules/bl/LICENSE.md new file mode 100644 index 0000000..ff35a34 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bl/LICENSE.md @@ -0,0 +1,13 @@ +The MIT License (MIT) +===================== + +Copyright (c) 2013-2016 bl contributors +---------------------------------- + +*bl contributors listed at * + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/bl/README.md b/nodered/rootfs/data/node_modules/bl/README.md new file mode 100644 index 0000000..9eebd88 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bl/README.md @@ -0,0 +1,208 @@ +# bl *(BufferList)* + +[![Build Status](https://travis-ci.org/rvagg/bl.svg?branch=master)](https://travis-ci.org/rvagg/bl) + +**A Node.js Buffer list collector, reader and streamer thingy.** + +[![NPM](https://nodei.co/npm/bl.png?downloads=true&downloadRank=true)](https://nodei.co/npm/bl/) +[![NPM](https://nodei.co/npm-dl/bl.png?months=6&height=3)](https://nodei.co/npm/bl/) + +**bl** is a storage object for collections of Node Buffers, exposing them with the main Buffer readable API. Also works as a duplex stream so you can collect buffers from a stream that emits them and emit buffers to a stream that consumes them! + +The original buffers are kept intact and copies are only done as necessary. Any reads that require the use of a single original buffer will return a slice of that buffer only (which references the same memory as the original buffer). Reads that span buffers perform concatenation as required and return the results transparently. + +```js +const BufferList = require('bl') + +var bl = new BufferList() +bl.append(new Buffer('abcd')) +bl.append(new Buffer('efg')) +bl.append('hi') // bl will also accept & convert Strings +bl.append(new Buffer('j')) +bl.append(new Buffer([ 0x3, 0x4 ])) + +console.log(bl.length) // 12 + +console.log(bl.slice(0, 10).toString('ascii')) // 'abcdefghij' +console.log(bl.slice(3, 10).toString('ascii')) // 'defghij' +console.log(bl.slice(3, 6).toString('ascii')) // 'def' +console.log(bl.slice(3, 8).toString('ascii')) // 'defgh' +console.log(bl.slice(5, 10).toString('ascii')) // 'fghij' + +// or just use toString! +console.log(bl.toString()) // 'abcdefghij\u0003\u0004' +console.log(bl.toString('ascii', 3, 8)) // 'defgh' +console.log(bl.toString('ascii', 5, 10)) // 'fghij' + +// other standard Buffer readables +console.log(bl.readUInt16BE(10)) // 0x0304 +console.log(bl.readUInt16LE(10)) // 0x0403 +``` + +Give it a callback in the constructor and use it just like **[concat-stream](https://github.com/maxogden/node-concat-stream)**: + +```js +const bl = require('bl') + , fs = require('fs') + +fs.createReadStream('README.md') + .pipe(bl(function (err, data) { // note 'new' isn't strictly required + // `data` is a complete Buffer object containing the full data + console.log(data.toString()) + })) +``` + +Note that when you use the *callback* method like this, the resulting `data` parameter is a concatenation of all `Buffer` objects in the list. If you want to avoid the overhead of this concatenation (in cases of extreme performance consciousness), then avoid the *callback* method and just listen to `'end'` instead, like a standard Stream. + +Or to fetch a URL using [hyperquest](https://github.com/substack/hyperquest) (should work with [request](http://github.com/mikeal/request) and even plain Node http too!): +```js +const hyperquest = require('hyperquest') + , bl = require('bl') + , url = 'https://raw.github.com/rvagg/bl/master/README.md' + +hyperquest(url).pipe(bl(function (err, data) { + console.log(data.toString()) +})) +``` + +Or, use it as a readable stream to recompose a list of Buffers to an output source: + +```js +const BufferList = require('bl') + , fs = require('fs') + +var bl = new BufferList() +bl.append(new Buffer('abcd')) +bl.append(new Buffer('efg')) +bl.append(new Buffer('hi')) +bl.append(new Buffer('j')) + +bl.pipe(fs.createWriteStream('gibberish.txt')) +``` + +## API + + * new BufferList([ callback ]) + * bl.length + * bl.append(buffer) + * bl.get(index) + * bl.slice([ start[, end ] ]) + * bl.shallowSlice([ start[, end ] ]) + * bl.copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ]) + * bl.duplicate() + * bl.consume(bytes) + * bl.toString([encoding, [ start, [ end ]]]) + * bl.readDoubleBE(), bl.readDoubleLE(), bl.readFloatBE(), bl.readFloatLE(), bl.readInt32BE(), bl.readInt32LE(), bl.readUInt32BE(), bl.readUInt32LE(), bl.readInt16BE(), bl.readInt16LE(), bl.readUInt16BE(), bl.readUInt16LE(), bl.readInt8(), bl.readUInt8() + * Streams + +-------------------------------------------------------- + +### new BufferList([ callback | Buffer | Buffer array | BufferList | BufferList array | String ]) +The constructor takes an optional callback, if supplied, the callback will be called with an error argument followed by a reference to the **bl** instance, when `bl.end()` is called (i.e. from a piped stream). This is a convenient method of collecting the entire contents of a stream, particularly when the stream is *chunky*, such as a network stream. + +Normally, no arguments are required for the constructor, but you can initialise the list by passing in a single `Buffer` object or an array of `Buffer` object. + +`new` is not strictly required, if you don't instantiate a new object, it will be done automatically for you so you can create a new instance simply with: + +```js +var bl = require('bl') +var myinstance = bl() + +// equivalent to: + +var BufferList = require('bl') +var myinstance = new BufferList() +``` + +-------------------------------------------------------- + +### bl.length +Get the length of the list in bytes. This is the sum of the lengths of all of the buffers contained in the list, minus any initial offset for a semi-consumed buffer at the beginning. Should accurately represent the total number of bytes that can be read from the list. + +-------------------------------------------------------- + +### bl.append(Buffer | Buffer array | BufferList | BufferList array | String) +`append(buffer)` adds an additional buffer or BufferList to the internal list. `this` is returned so it can be chained. + +-------------------------------------------------------- + +### bl.get(index) +`get()` will return the byte at the specified index. + +-------------------------------------------------------- + +### bl.slice([ start, [ end ] ]) +`slice()` returns a new `Buffer` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively. + +If the requested range spans a single internal buffer then a slice of that buffer will be returned which shares the original memory range of that Buffer. If the range spans multiple buffers then copy operations will likely occur to give you a uniform Buffer. + +-------------------------------------------------------- + +### bl.shallowSlice([ start, [ end ] ]) +`shallowSlice()` returns a new `BufferList` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively. + +No copies will be performed. All buffers in the result share memory with the original list. + +-------------------------------------------------------- + +### bl.copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ]) +`copy()` copies the content of the list in the `dest` buffer, starting from `destStart` and containing the bytes within the range specified with `srcStart` to `srcEnd`. `destStart`, `start` and `end` are optional and will default to the beginning of the `dest` buffer, and the beginning and end of the list respectively. + +-------------------------------------------------------- + +### bl.duplicate() +`duplicate()` performs a **shallow-copy** of the list. The internal Buffers remains the same, so if you change the underlying Buffers, the change will be reflected in both the original and the duplicate. This method is needed if you want to call `consume()` or `pipe()` and still keep the original list.Example: + +```js +var bl = new BufferList() + +bl.append('hello') +bl.append(' world') +bl.append('\n') + +bl.duplicate().pipe(process.stdout, { end: false }) + +console.log(bl.toString()) +``` + +-------------------------------------------------------- + +### bl.consume(bytes) +`consume()` will shift bytes *off the start of the list*. The number of bytes consumed don't need to line up with the sizes of the internal Buffers—initial offsets will be calculated accordingly in order to give you a consistent view of the data. + +-------------------------------------------------------- + +### bl.toString([encoding, [ start, [ end ]]]) +`toString()` will return a string representation of the buffer. The optional `start` and `end` arguments are passed on to `slice()`, while the `encoding` is passed on to `toString()` of the resulting Buffer. See the [Buffer#toString()](http://nodejs.org/docs/latest/api/buffer.html#buffer_buf_tostring_encoding_start_end) documentation for more information. + +-------------------------------------------------------- + +### bl.readDoubleBE(), bl.readDoubleLE(), bl.readFloatBE(), bl.readFloatLE(), bl.readInt32BE(), bl.readInt32LE(), bl.readUInt32BE(), bl.readUInt32LE(), bl.readInt16BE(), bl.readInt16LE(), bl.readUInt16BE(), bl.readUInt16LE(), bl.readInt8(), bl.readUInt8() + +All of the standard byte-reading methods of the `Buffer` interface are implemented and will operate across internal Buffer boundaries transparently. + +See the [Buffer](http://nodejs.org/docs/latest/api/buffer.html) documentation for how these work. + +-------------------------------------------------------- + +### Streams +**bl** is a Node **[Duplex Stream](http://nodejs.org/docs/latest/api/stream.html#stream_class_stream_duplex)**, so it can be read from and written to like a standard Node stream. You can also `pipe()` to and from a **bl** instance. + +-------------------------------------------------------- + +## Contributors + +**bl** is brought to you by the following hackers: + + * [Rod Vagg](https://github.com/rvagg) + * [Matteo Collina](https://github.com/mcollina) + * [Jarett Cruger](https://github.com/jcrugzz) + +======= + + +## License & copyright + +Copyright (c) 2013-2016 bl contributors (listed above). + +bl is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details. diff --git a/nodered/rootfs/data/node_modules/bl/bl.js b/nodered/rootfs/data/node_modules/bl/bl.js new file mode 100644 index 0000000..db536f3 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bl/bl.js @@ -0,0 +1,281 @@ +var DuplexStream = require('readable-stream/duplex') + , util = require('util') + , Buffer = require('safe-buffer').Buffer + + +function BufferList (callback) { + if (!(this instanceof BufferList)) + return new BufferList(callback) + + this._bufs = [] + this.length = 0 + + if (typeof callback == 'function') { + this._callback = callback + + var piper = function piper (err) { + if (this._callback) { + this._callback(err) + this._callback = null + } + }.bind(this) + + this.on('pipe', function onPipe (src) { + src.on('error', piper) + }) + this.on('unpipe', function onUnpipe (src) { + src.removeListener('error', piper) + }) + } else { + this.append(callback) + } + + DuplexStream.call(this) +} + + +util.inherits(BufferList, DuplexStream) + + +BufferList.prototype._offset = function _offset (offset) { + var tot = 0, i = 0, _t + if (offset === 0) return [ 0, 0 ] + for (; i < this._bufs.length; i++) { + _t = tot + this._bufs[i].length + if (offset < _t || i == this._bufs.length - 1) + return [ i, offset - tot ] + tot = _t + } +} + + +BufferList.prototype.append = function append (buf) { + var i = 0 + + if (Buffer.isBuffer(buf)) { + this._appendBuffer(buf); + } else if (Array.isArray(buf)) { + for (; i < buf.length; i++) + this.append(buf[i]) + } else if (buf instanceof BufferList) { + // unwrap argument into individual BufferLists + for (; i < buf._bufs.length; i++) + this.append(buf._bufs[i]) + } else if (buf != null) { + // coerce number arguments to strings, since Buffer(number) does + // uninitialized memory allocation + if (typeof buf == 'number') + buf = buf.toString() + + this._appendBuffer(Buffer.from(buf)); + } + + return this +} + + +BufferList.prototype._appendBuffer = function appendBuffer (buf) { + this._bufs.push(buf) + this.length += buf.length +} + + +BufferList.prototype._write = function _write (buf, encoding, callback) { + this._appendBuffer(buf) + + if (typeof callback == 'function') + callback() +} + + +BufferList.prototype._read = function _read (size) { + if (!this.length) + return this.push(null) + + size = Math.min(size, this.length) + this.push(this.slice(0, size)) + this.consume(size) +} + + +BufferList.prototype.end = function end (chunk) { + DuplexStream.prototype.end.call(this, chunk) + + if (this._callback) { + this._callback(null, this.slice()) + this._callback = null + } +} + + +BufferList.prototype.get = function get (index) { + return this.slice(index, index + 1)[0] +} + + +BufferList.prototype.slice = function slice (start, end) { + if (typeof start == 'number' && start < 0) + start += this.length + if (typeof end == 'number' && end < 0) + end += this.length + return this.copy(null, 0, start, end) +} + + +BufferList.prototype.copy = function copy (dst, dstStart, srcStart, srcEnd) { + if (typeof srcStart != 'number' || srcStart < 0) + srcStart = 0 + if (typeof srcEnd != 'number' || srcEnd > this.length) + srcEnd = this.length + if (srcStart >= this.length) + return dst || Buffer.alloc(0) + if (srcEnd <= 0) + return dst || Buffer.alloc(0) + + var copy = !!dst + , off = this._offset(srcStart) + , len = srcEnd - srcStart + , bytes = len + , bufoff = (copy && dstStart) || 0 + , start = off[1] + , l + , i + + // copy/slice everything + if (srcStart === 0 && srcEnd == this.length) { + if (!copy) { // slice, but full concat if multiple buffers + return this._bufs.length === 1 + ? this._bufs[0] + : Buffer.concat(this._bufs, this.length) + } + + // copy, need to copy individual buffers + for (i = 0; i < this._bufs.length; i++) { + this._bufs[i].copy(dst, bufoff) + bufoff += this._bufs[i].length + } + + return dst + } + + // easy, cheap case where it's a subset of one of the buffers + if (bytes <= this._bufs[off[0]].length - start) { + return copy + ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) + : this._bufs[off[0]].slice(start, start + bytes) + } + + if (!copy) // a slice, we need something to copy in to + dst = Buffer.allocUnsafe(len) + + for (i = off[0]; i < this._bufs.length; i++) { + l = this._bufs[i].length - start + + if (bytes > l) { + this._bufs[i].copy(dst, bufoff, start) + } else { + this._bufs[i].copy(dst, bufoff, start, start + bytes) + break + } + + bufoff += l + bytes -= l + + if (start) + start = 0 + } + + return dst +} + +BufferList.prototype.shallowSlice = function shallowSlice (start, end) { + start = start || 0 + end = end || this.length + + if (start < 0) + start += this.length + if (end < 0) + end += this.length + + var startOffset = this._offset(start) + , endOffset = this._offset(end) + , buffers = this._bufs.slice(startOffset[0], endOffset[0] + 1) + + if (endOffset[1] == 0) + buffers.pop() + else + buffers[buffers.length-1] = buffers[buffers.length-1].slice(0, endOffset[1]) + + if (startOffset[1] != 0) + buffers[0] = buffers[0].slice(startOffset[1]) + + return new BufferList(buffers) +} + +BufferList.prototype.toString = function toString (encoding, start, end) { + return this.slice(start, end).toString(encoding) +} + +BufferList.prototype.consume = function consume (bytes) { + while (this._bufs.length) { + if (bytes >= this._bufs[0].length) { + bytes -= this._bufs[0].length + this.length -= this._bufs[0].length + this._bufs.shift() + } else { + this._bufs[0] = this._bufs[0].slice(bytes) + this.length -= bytes + break + } + } + return this +} + + +BufferList.prototype.duplicate = function duplicate () { + var i = 0 + , copy = new BufferList() + + for (; i < this._bufs.length; i++) + copy.append(this._bufs[i]) + + return copy +} + + +BufferList.prototype.destroy = function destroy () { + this._bufs.length = 0 + this.length = 0 + this.push(null) +} + + +;(function () { + var methods = { + 'readDoubleBE' : 8 + , 'readDoubleLE' : 8 + , 'readFloatBE' : 4 + , 'readFloatLE' : 4 + , 'readInt32BE' : 4 + , 'readInt32LE' : 4 + , 'readUInt32BE' : 4 + , 'readUInt32LE' : 4 + , 'readInt16BE' : 2 + , 'readInt16LE' : 2 + , 'readUInt16BE' : 2 + , 'readUInt16LE' : 2 + , 'readInt8' : 1 + , 'readUInt8' : 1 + } + + for (var m in methods) { + (function (m) { + BufferList.prototype[m] = function (offset) { + return this.slice(offset, offset + methods[m])[m](0) + } + }(m)) + } +}()) + + +module.exports = BufferList diff --git a/nodered/rootfs/data/node_modules/bl/package.json b/nodered/rootfs/data/node_modules/bl/package.json new file mode 100644 index 0000000..3dfc311 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bl/package.json @@ -0,0 +1,63 @@ +{ + "_from": "bl@^1.2.1", + "_id": "bl@1.2.2", + "_inBundle": false, + "_integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==", + "_location": "/bl", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "bl@^1.2.1", + "name": "bl", + "escapedName": "bl", + "rawSpec": "^1.2.1", + "saveSpec": null, + "fetchSpec": "^1.2.1" + }, + "_requiredBy": [ + "/node-telegram-bot-api" + ], + "_resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz", + "_shasum": "a160911717103c07410cef63ef51b397c025af9c", + "_spec": "bl@^1.2.1", + "_where": "/data/node_modules/node-telegram-bot-api", + "authors": [ + "Rod Vagg (https://github.com/rvagg)", + "Matteo Collina (https://github.com/mcollina)", + "Jarett Cruger (https://github.com/jcrugzz)" + ], + "bugs": { + "url": "https://github.com/rvagg/bl/issues" + }, + "bundleDependencies": false, + "dependencies": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + }, + "deprecated": false, + "description": "Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!", + "devDependencies": { + "faucet": "0.0.1", + "hash_file": "~0.1.1", + "tape": "~4.9.0" + }, + "homepage": "https://github.com/rvagg/bl", + "keywords": [ + "buffer", + "buffers", + "stream", + "awesomesauce" + ], + "license": "MIT", + "main": "bl.js", + "name": "bl", + "repository": { + "type": "git", + "url": "git+https://github.com/rvagg/bl.git" + }, + "scripts": { + "test": "node test/test.js | faucet" + }, + "version": "1.2.2" +} diff --git a/nodered/rootfs/data/node_modules/bl/test/test.js b/nodered/rootfs/data/node_modules/bl/test/test.js new file mode 100644 index 0000000..e121487 --- /dev/null +++ b/nodered/rootfs/data/node_modules/bl/test/test.js @@ -0,0 +1,702 @@ +var tape = require('tape') + , crypto = require('crypto') + , fs = require('fs') + , hash = require('hash_file') + , BufferList = require('../') + , Buffer = require('safe-buffer').Buffer + + , encodings = + ('hex utf8 utf-8 ascii binary base64' + + (process.browser ? '' : ' ucs2 ucs-2 utf16le utf-16le')).split(' ') + +tape('single bytes from single buffer', function (t) { + var bl = new BufferList() + bl.append(Buffer.from('abcd')) + + t.equal(bl.length, 4) + + t.equal(bl.get(0), 97) + t.equal(bl.get(1), 98) + t.equal(bl.get(2), 99) + t.equal(bl.get(3), 100) + + t.end() +}) + +tape('single bytes from multiple buffers', function (t) { + var bl = new BufferList() + bl.append(Buffer.from('abcd')) + bl.append(Buffer.from('efg')) + bl.append(Buffer.from('hi')) + bl.append(Buffer.from('j')) + + t.equal(bl.length, 10) + + t.equal(bl.get(0), 97) + t.equal(bl.get(1), 98) + t.equal(bl.get(2), 99) + t.equal(bl.get(3), 100) + t.equal(bl.get(4), 101) + t.equal(bl.get(5), 102) + t.equal(bl.get(6), 103) + t.equal(bl.get(7), 104) + t.equal(bl.get(8), 105) + t.equal(bl.get(9), 106) + t.end() +}) + +tape('multi bytes from single buffer', function (t) { + var bl = new BufferList() + bl.append(Buffer.from('abcd')) + + t.equal(bl.length, 4) + + t.equal(bl.slice(0, 4).toString('ascii'), 'abcd') + t.equal(bl.slice(0, 3).toString('ascii'), 'abc') + t.equal(bl.slice(1, 4).toString('ascii'), 'bcd') + t.equal(bl.slice(-4, -1).toString('ascii'), 'abc') + + t.end() +}) + +tape('multi bytes from single buffer (negative indexes)', function (t) { + var bl = new BufferList() + bl.append(Buffer.from('buffer')) + + t.equal(bl.length, 6) + + t.equal(bl.slice(-6, -1).toString('ascii'), 'buffe') + t.equal(bl.slice(-6, -2).toString('ascii'), 'buff') + t.equal(bl.slice(-5, -2).toString('ascii'), 'uff') + + t.end() +}) + +tape('multiple bytes from multiple buffers', function (t) { + var bl = new BufferList() + + bl.append(Buffer.from('abcd')) + bl.append(Buffer.from('efg')) + bl.append(Buffer.from('hi')) + bl.append(Buffer.from('j')) + + t.equal(bl.length, 10) + + t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') + t.equal(bl.slice(3, 10).toString('ascii'), 'defghij') + t.equal(bl.slice(3, 6).toString('ascii'), 'def') + t.equal(bl.slice(3, 8).toString('ascii'), 'defgh') + t.equal(bl.slice(5, 10).toString('ascii'), 'fghij') + t.equal(bl.slice(-7, -4).toString('ascii'), 'def') + + t.end() +}) + +tape('multiple bytes from multiple buffer lists', function (t) { + var bl = new BufferList() + + bl.append(new BufferList([ Buffer.from('abcd'), Buffer.from('efg') ])) + bl.append(new BufferList([ Buffer.from('hi'), Buffer.from('j') ])) + + t.equal(bl.length, 10) + + t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') + + t.equal(bl.slice(3, 10).toString('ascii'), 'defghij') + t.equal(bl.slice(3, 6).toString('ascii'), 'def') + t.equal(bl.slice(3, 8).toString('ascii'), 'defgh') + t.equal(bl.slice(5, 10).toString('ascii'), 'fghij') + + t.end() +}) + +// same data as previous test, just using nested constructors +tape('multiple bytes from crazy nested buffer lists', function (t) { + var bl = new BufferList() + + bl.append(new BufferList([ + new BufferList([ + new BufferList(Buffer.from('abc')) + , Buffer.from('d') + , new BufferList(Buffer.from('efg')) + ]) + , new BufferList([ Buffer.from('hi') ]) + , new BufferList(Buffer.from('j')) + ])) + + t.equal(bl.length, 10) + + t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') + + t.equal(bl.slice(3, 10).toString('ascii'), 'defghij') + t.equal(bl.slice(3, 6).toString('ascii'), 'def') + t.equal(bl.slice(3, 8).toString('ascii'), 'defgh') + t.equal(bl.slice(5, 10).toString('ascii'), 'fghij') + + t.end() +}) + +tape('append accepts arrays of Buffers', function (t) { + var bl = new BufferList() + bl.append(Buffer.from('abc')) + bl.append([ Buffer.from('def') ]) + bl.append([ Buffer.from('ghi'), Buffer.from('jkl') ]) + bl.append([ Buffer.from('mnop'), Buffer.from('qrstu'), Buffer.from('vwxyz') ]) + t.equal(bl.length, 26) + t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') + t.end() +}) + +tape('append accepts arrays of BufferLists', function (t) { + var bl = new BufferList() + bl.append(Buffer.from('abc')) + bl.append([ new BufferList('def') ]) + bl.append(new BufferList([ Buffer.from('ghi'), new BufferList('jkl') ])) + bl.append([ Buffer.from('mnop'), new BufferList([ Buffer.from('qrstu'), Buffer.from('vwxyz') ]) ]) + t.equal(bl.length, 26) + t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') + t.end() +}) + +tape('append chainable', function (t) { + var bl = new BufferList() + t.ok(bl.append(Buffer.from('abcd')) === bl) + t.ok(bl.append([ Buffer.from('abcd') ]) === bl) + t.ok(bl.append(new BufferList(Buffer.from('abcd'))) === bl) + t.ok(bl.append([ new BufferList(Buffer.from('abcd')) ]) === bl) + t.end() +}) + +tape('append chainable (test results)', function (t) { + var bl = new BufferList('abc') + .append([ new BufferList('def') ]) + .append(new BufferList([ Buffer.from('ghi'), new BufferList('jkl') ])) + .append([ Buffer.from('mnop'), new BufferList([ Buffer.from('qrstu'), Buffer.from('vwxyz') ]) ]) + + t.equal(bl.length, 26) + t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') + t.end() +}) + +tape('consuming from multiple buffers', function (t) { + var bl = new BufferList() + + bl.append(Buffer.from('abcd')) + bl.append(Buffer.from('efg')) + bl.append(Buffer.from('hi')) + bl.append(Buffer.from('j')) + + t.equal(bl.length, 10) + + t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') + + bl.consume(3) + t.equal(bl.length, 7) + t.equal(bl.slice(0, 7).toString('ascii'), 'defghij') + + bl.consume(2) + t.equal(bl.length, 5) + t.equal(bl.slice(0, 5).toString('ascii'), 'fghij') + + bl.consume(1) + t.equal(bl.length, 4) + t.equal(bl.slice(0, 4).toString('ascii'), 'ghij') + + bl.consume(1) + t.equal(bl.length, 3) + t.equal(bl.slice(0, 3).toString('ascii'), 'hij') + + bl.consume(2) + t.equal(bl.length, 1) + t.equal(bl.slice(0, 1).toString('ascii'), 'j') + + t.end() +}) + +tape('complete consumption', function (t) { + var bl = new BufferList() + + bl.append(Buffer.from('a')) + bl.append(Buffer.from('b')) + + bl.consume(2) + + t.equal(bl.length, 0) + t.equal(bl._bufs.length, 0) + + t.end() +}) + +tape('test readUInt8 / readInt8', function (t) { + var buf1 = Buffer.alloc(1) + , buf2 = Buffer.alloc(3) + , buf3 = Buffer.alloc(3) + , bl = new BufferList() + + buf2[1] = 0x3 + buf2[2] = 0x4 + buf3[0] = 0x23 + buf3[1] = 0x42 + + bl.append(buf1) + bl.append(buf2) + bl.append(buf3) + + t.equal(bl.readUInt8(2), 0x3) + t.equal(bl.readInt8(2), 0x3) + t.equal(bl.readUInt8(3), 0x4) + t.equal(bl.readInt8(3), 0x4) + t.equal(bl.readUInt8(4), 0x23) + t.equal(bl.readInt8(4), 0x23) + t.equal(bl.readUInt8(5), 0x42) + t.equal(bl.readInt8(5), 0x42) + t.end() +}) + +tape('test readUInt16LE / readUInt16BE / readInt16LE / readInt16BE', function (t) { + var buf1 = Buffer.alloc(1) + , buf2 = Buffer.alloc(3) + , buf3 = Buffer.alloc(3) + , bl = new BufferList() + + buf2[1] = 0x3 + buf2[2] = 0x4 + buf3[0] = 0x23 + buf3[1] = 0x42 + + bl.append(buf1) + bl.append(buf2) + bl.append(buf3) + + t.equal(bl.readUInt16BE(2), 0x0304) + t.equal(bl.readUInt16LE(2), 0x0403) + t.equal(bl.readInt16BE(2), 0x0304) + t.equal(bl.readInt16LE(2), 0x0403) + t.equal(bl.readUInt16BE(3), 0x0423) + t.equal(bl.readUInt16LE(3), 0x2304) + t.equal(bl.readInt16BE(3), 0x0423) + t.equal(bl.readInt16LE(3), 0x2304) + t.equal(bl.readUInt16BE(4), 0x2342) + t.equal(bl.readUInt16LE(4), 0x4223) + t.equal(bl.readInt16BE(4), 0x2342) + t.equal(bl.readInt16LE(4), 0x4223) + t.end() +}) + +tape('test readUInt32LE / readUInt32BE / readInt32LE / readInt32BE', function (t) { + var buf1 = Buffer.alloc(1) + , buf2 = Buffer.alloc(3) + , buf3 = Buffer.alloc(3) + , bl = new BufferList() + + buf2[1] = 0x3 + buf2[2] = 0x4 + buf3[0] = 0x23 + buf3[1] = 0x42 + + bl.append(buf1) + bl.append(buf2) + bl.append(buf3) + + t.equal(bl.readUInt32BE(2), 0x03042342) + t.equal(bl.readUInt32LE(2), 0x42230403) + t.equal(bl.readInt32BE(2), 0x03042342) + t.equal(bl.readInt32LE(2), 0x42230403) + t.end() +}) + +tape('test readFloatLE / readFloatBE', function (t) { + var buf1 = Buffer.alloc(1) + , buf2 = Buffer.alloc(3) + , buf3 = Buffer.alloc(3) + , bl = new BufferList() + + buf2[1] = 0x00 + buf2[2] = 0x00 + buf3[0] = 0x80 + buf3[1] = 0x3f + + bl.append(buf1) + bl.append(buf2) + bl.append(buf3) + + t.equal(bl.readFloatLE(2), 0x01) + t.end() +}) + +tape('test readDoubleLE / readDoubleBE', function (t) { + var buf1 = Buffer.alloc(1) + , buf2 = Buffer.alloc(3) + , buf3 = Buffer.alloc(10) + , bl = new BufferList() + + buf2[1] = 0x55 + buf2[2] = 0x55 + buf3[0] = 0x55 + buf3[1] = 0x55 + buf3[2] = 0x55 + buf3[3] = 0x55 + buf3[4] = 0xd5 + buf3[5] = 0x3f + + bl.append(buf1) + bl.append(buf2) + bl.append(buf3) + + t.equal(bl.readDoubleLE(2), 0.3333333333333333) + t.end() +}) + +tape('test toString', function (t) { + var bl = new BufferList() + + bl.append(Buffer.from('abcd')) + bl.append(Buffer.from('efg')) + bl.append(Buffer.from('hi')) + bl.append(Buffer.from('j')) + + t.equal(bl.toString('ascii', 0, 10), 'abcdefghij') + t.equal(bl.toString('ascii', 3, 10), 'defghij') + t.equal(bl.toString('ascii', 3, 6), 'def') + t.equal(bl.toString('ascii', 3, 8), 'defgh') + t.equal(bl.toString('ascii', 5, 10), 'fghij') + + t.end() +}) + +tape('test toString encoding', function (t) { + var bl = new BufferList() + , b = Buffer.from('abcdefghij\xff\x00') + + bl.append(Buffer.from('abcd')) + bl.append(Buffer.from('efg')) + bl.append(Buffer.from('hi')) + bl.append(Buffer.from('j')) + bl.append(Buffer.from('\xff\x00')) + + encodings.forEach(function (enc) { + t.equal(bl.toString(enc), b.toString(enc), enc) + }) + + t.end() +}) + +!process.browser && tape('test stream', function (t) { + var random = crypto.randomBytes(65534) + , rndhash = hash(random, 'md5') + , md5sum = crypto.createHash('md5') + , bl = new BufferList(function (err, buf) { + t.ok(Buffer.isBuffer(buf)) + t.ok(err === null) + t.equal(rndhash, hash(bl.slice(), 'md5')) + t.equal(rndhash, hash(buf, 'md5')) + + bl.pipe(fs.createWriteStream('/tmp/bl_test_rnd_out.dat')) + .on('close', function () { + var s = fs.createReadStream('/tmp/bl_test_rnd_out.dat') + s.on('data', md5sum.update.bind(md5sum)) + s.on('end', function() { + t.equal(rndhash, md5sum.digest('hex'), 'woohoo! correct hash!') + t.end() + }) + }) + + }) + + fs.writeFileSync('/tmp/bl_test_rnd.dat', random) + fs.createReadStream('/tmp/bl_test_rnd.dat').pipe(bl) +}) + +tape('instantiation with Buffer', function (t) { + var buf = crypto.randomBytes(1024) + , buf2 = crypto.randomBytes(1024) + , b = BufferList(buf) + + t.equal(buf.toString('hex'), b.slice().toString('hex'), 'same buffer') + b = BufferList([ buf, buf2 ]) + t.equal(b.slice().toString('hex'), Buffer.concat([ buf, buf2 ]).toString('hex'), 'same buffer') + t.end() +}) + +tape('test String appendage', function (t) { + var bl = new BufferList() + , b = Buffer.from('abcdefghij\xff\x00') + + bl.append('abcd') + bl.append('efg') + bl.append('hi') + bl.append('j') + bl.append('\xff\x00') + + encodings.forEach(function (enc) { + t.equal(bl.toString(enc), b.toString(enc)) + }) + + t.end() +}) + +tape('test Number appendage', function (t) { + var bl = new BufferList() + , b = Buffer.from('1234567890') + + bl.append(1234) + bl.append(567) + bl.append(89) + bl.append(0) + + encodings.forEach(function (enc) { + t.equal(bl.toString(enc), b.toString(enc)) + }) + + t.end() +}) + +tape('write nothing, should get empty buffer', function (t) { + t.plan(3) + BufferList(function (err, data) { + t.notOk(err, 'no error') + t.ok(Buffer.isBuffer(data), 'got a buffer') + t.equal(0, data.length, 'got a zero-length buffer') + t.end() + }).end() +}) + +tape('unicode string', function (t) { + t.plan(2) + var inp1 = '\u2600' + , inp2 = '\u2603' + , exp = inp1 + ' and ' + inp2 + , bl = BufferList() + bl.write(inp1) + bl.write(' and ') + bl.write(inp2) + t.equal(exp, bl.toString()) + t.equal(Buffer.from(exp).toString('hex'), bl.toString('hex')) +}) + +tape('should emit finish', function (t) { + var source = BufferList() + , dest = BufferList() + + source.write('hello') + source.pipe(dest) + + dest.on('finish', function () { + t.equal(dest.toString('utf8'), 'hello') + t.end() + }) +}) + +tape('basic copy', function (t) { + var buf = crypto.randomBytes(1024) + , buf2 = Buffer.alloc(1024) + , b = BufferList(buf) + + b.copy(buf2) + t.equal(b.slice().toString('hex'), buf2.toString('hex'), 'same buffer') + t.end() +}) + +tape('copy after many appends', function (t) { + var buf = crypto.randomBytes(512) + , buf2 = Buffer.alloc(1024) + , b = BufferList(buf) + + b.append(buf) + b.copy(buf2) + t.equal(b.slice().toString('hex'), buf2.toString('hex'), 'same buffer') + t.end() +}) + +tape('copy at a precise position', function (t) { + var buf = crypto.randomBytes(1004) + , buf2 = Buffer.alloc(1024) + , b = BufferList(buf) + + b.copy(buf2, 20) + t.equal(b.slice().toString('hex'), buf2.slice(20).toString('hex'), 'same buffer') + t.end() +}) + +tape('copy starting from a precise location', function (t) { + var buf = crypto.randomBytes(10) + , buf2 = Buffer.alloc(5) + , b = BufferList(buf) + + b.copy(buf2, 0, 5) + t.equal(b.slice(5).toString('hex'), buf2.toString('hex'), 'same buffer') + t.end() +}) + +tape('copy in an interval', function (t) { + var rnd = crypto.randomBytes(10) + , b = BufferList(rnd) // put the random bytes there + , actual = Buffer.alloc(3) + , expected = Buffer.alloc(3) + + rnd.copy(expected, 0, 5, 8) + b.copy(actual, 0, 5, 8) + + t.equal(actual.toString('hex'), expected.toString('hex'), 'same buffer') + t.end() +}) + +tape('copy an interval between two buffers', function (t) { + var buf = crypto.randomBytes(10) + , buf2 = Buffer.alloc(10) + , b = BufferList(buf) + + b.append(buf) + b.copy(buf2, 0, 5, 15) + + t.equal(b.slice(5, 15).toString('hex'), buf2.toString('hex'), 'same buffer') + t.end() +}) + +tape('shallow slice across buffer boundaries', function (t) { + var bl = new BufferList(['First', 'Second', 'Third']) + + t.equal(bl.shallowSlice(3, 13).toString(), 'stSecondTh') + t.end() +}) + +tape('shallow slice within single buffer', function (t) { + t.plan(2) + var bl = new BufferList(['First', 'Second', 'Third']) + + t.equal(bl.shallowSlice(5, 10).toString(), 'Secon') + t.equal(bl.shallowSlice(7, 10).toString(), 'con') + t.end() +}) + +tape('shallow slice single buffer', function (t) { + t.plan(3) + var bl = new BufferList(['First', 'Second', 'Third']) + + t.equal(bl.shallowSlice(0, 5).toString(), 'First') + t.equal(bl.shallowSlice(5, 11).toString(), 'Second') + t.equal(bl.shallowSlice(11, 16).toString(), 'Third') +}) + +tape('shallow slice with negative or omitted indices', function (t) { + t.plan(4) + var bl = new BufferList(['First', 'Second', 'Third']) + + t.equal(bl.shallowSlice().toString(), 'FirstSecondThird') + t.equal(bl.shallowSlice(5).toString(), 'SecondThird') + t.equal(bl.shallowSlice(5, -3).toString(), 'SecondTh') + t.equal(bl.shallowSlice(-8).toString(), 'ondThird') +}) + +tape('shallow slice does not make a copy', function (t) { + t.plan(1) + var buffers = [Buffer.from('First'), Buffer.from('Second'), Buffer.from('Third')] + var bl = (new BufferList(buffers)).shallowSlice(5, -3) + + buffers[1].fill('h') + buffers[2].fill('h') + + t.equal(bl.toString(), 'hhhhhhhh') +}) + +tape('duplicate', function (t) { + t.plan(2) + + var bl = new BufferList('abcdefghij\xff\x00') + , dup = bl.duplicate() + + t.equal(bl.prototype, dup.prototype) + t.equal(bl.toString('hex'), dup.toString('hex')) +}) + +tape('destroy no pipe', function (t) { + t.plan(2) + + var bl = new BufferList('alsdkfja;lsdkfja;lsdk') + bl.destroy() + + t.equal(bl._bufs.length, 0) + t.equal(bl.length, 0) +}) + +!process.browser && tape('destroy with pipe before read end', function (t) { + t.plan(2) + + var bl = new BufferList() + fs.createReadStream(__dirname + '/test.js') + .pipe(bl) + + bl.destroy() + + t.equal(bl._bufs.length, 0) + t.equal(bl.length, 0) + +}) + +!process.browser && tape('destroy with pipe before read end with race', function (t) { + t.plan(2) + + var bl = new BufferList() + fs.createReadStream(__dirname + '/test.js') + .pipe(bl) + + setTimeout(function () { + bl.destroy() + setTimeout(function () { + t.equal(bl._bufs.length, 0) + t.equal(bl.length, 0) + }, 500) + }, 500) +}) + +!process.browser && tape('destroy with pipe after read end', function (t) { + t.plan(2) + + var bl = new BufferList() + fs.createReadStream(__dirname + '/test.js') + .on('end', onEnd) + .pipe(bl) + + function onEnd () { + bl.destroy() + + t.equal(bl._bufs.length, 0) + t.equal(bl.length, 0) + } +}) + +!process.browser && tape('destroy with pipe while writing to a destination', function (t) { + t.plan(4) + + var bl = new BufferList() + , ds = new BufferList() + + fs.createReadStream(__dirname + '/test.js') + .on('end', onEnd) + .pipe(bl) + + function onEnd () { + bl.pipe(ds) + + setTimeout(function () { + bl.destroy() + + t.equals(bl._bufs.length, 0) + t.equals(bl.length, 0) + + ds.destroy() + + t.equals(bl._bufs.length, 0) + t.equals(bl.length, 0) + + }, 100) + } +}) + +!process.browser && tape('handle error', function (t) { + t.plan(2) + fs.createReadStream('/does/not/exist').pipe(BufferList(function (err, data) { + t.ok(err instanceof Error, 'has error') + t.notOk(data, 'no data') + })) +}) diff --git a/nodered/rootfs/data/node_modules/blob/.idea/blob.iml b/nodered/rootfs/data/node_modules/blob/.idea/blob.iml new file mode 100644 index 0000000..0b872d8 --- /dev/null +++ b/nodered/rootfs/data/node_modules/blob/.idea/blob.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/blob/.idea/inspectionProfiles/profiles_settings.xml b/nodered/rootfs/data/node_modules/blob/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..0eefe32 --- /dev/null +++ b/nodered/rootfs/data/node_modules/blob/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/blob/.idea/markdown-navigator.xml b/nodered/rootfs/data/node_modules/blob/.idea/markdown-navigator.xml new file mode 100644 index 0000000..24281af --- /dev/null +++ b/nodered/rootfs/data/node_modules/blob/.idea/markdown-navigator.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/blob/.idea/markdown-navigator/profiles_settings.xml b/nodered/rootfs/data/node_modules/blob/.idea/markdown-navigator/profiles_settings.xml new file mode 100644 index 0000000..9c51dfe --- /dev/null +++ b/nodered/rootfs/data/node_modules/blob/.idea/markdown-navigator/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/blob/.idea/modules.xml b/nodered/rootfs/data/node_modules/blob/.idea/modules.xml new file mode 100644 index 0000000..a24a2af --- /dev/null +++ b/nodered/rootfs/data/node_modules/blob/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/blob/.idea/vcs.xml b/nodered/rootfs/data/node_modules/blob/.idea/vcs.xml new file mode 100644 index 0000000..9661ac7 --- /dev/null +++ b/nodered/rootfs/data/node_modules/blob/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/blob/.idea/workspace.xml b/nodered/rootfs/data/node_modules/blob/.idea/workspace.xml new file mode 100644 index 0000000..31e803b --- /dev/null +++ b/nodered/rootfs/data/node_modules/blob/.idea/workspace.xml @@ -0,0 +1,390 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + esprima-six + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '); + res.end(' values + * + * @param {string} str + * @param {object} [options] + * @return {object} + * @public + */ + +function parse(str, options) { + if (typeof str !== 'string') { + throw new TypeError('argument str must be a string'); + } + + var obj = {} + var opt = options || {}; + var pairs = str.split(pairSplitRegExp); + var dec = opt.decode || decode; + + for (var i = 0; i < pairs.length; i++) { + var pair = pairs[i]; + var eq_idx = pair.indexOf('='); + + // skip things that don't look like key=value + if (eq_idx < 0) { + continue; + } + + var key = pair.substr(0, eq_idx).trim() + var val = pair.substr(++eq_idx, pair.length).trim(); + + // quoted values + if ('"' == val[0]) { + val = val.slice(1, -1); + } + + // only assign once + if (undefined == obj[key]) { + obj[key] = tryDecode(val, dec); + } + } + + return obj; +} + +/** + * Serialize data into a cookie header. + * + * Serialize the a name value pair into a cookie string suitable for + * http headers. An optional options object specified cookie parameters. + * + * serialize('foo', 'bar', { httpOnly: true }) + * => "foo=bar; httpOnly" + * + * @param {string} name + * @param {string} val + * @param {object} [options] + * @return {string} + * @public + */ + +function serialize(name, val, options) { + var opt = options || {}; + var enc = opt.encode || encode; + + if (typeof enc !== 'function') { + throw new TypeError('option encode is invalid'); + } + + if (!fieldContentRegExp.test(name)) { + throw new TypeError('argument name is invalid'); + } + + var value = enc(val); + + if (value && !fieldContentRegExp.test(value)) { + throw new TypeError('argument val is invalid'); + } + + var str = name + '=' + value; + + if (null != opt.maxAge) { + var maxAge = opt.maxAge - 0; + if (isNaN(maxAge)) throw new Error('maxAge should be a Number'); + str += '; Max-Age=' + Math.floor(maxAge); + } + + if (opt.domain) { + if (!fieldContentRegExp.test(opt.domain)) { + throw new TypeError('option domain is invalid'); + } + + str += '; Domain=' + opt.domain; + } + + if (opt.path) { + if (!fieldContentRegExp.test(opt.path)) { + throw new TypeError('option path is invalid'); + } + + str += '; Path=' + opt.path; + } + + if (opt.expires) { + if (typeof opt.expires.toUTCString !== 'function') { + throw new TypeError('option expires is invalid'); + } + + str += '; Expires=' + opt.expires.toUTCString(); + } + + if (opt.httpOnly) { + str += '; HttpOnly'; + } + + if (opt.secure) { + str += '; Secure'; + } + + if (opt.sameSite) { + var sameSite = typeof opt.sameSite === 'string' + ? opt.sameSite.toLowerCase() : opt.sameSite; + + switch (sameSite) { + case true: + str += '; SameSite=Strict'; + break; + case 'lax': + str += '; SameSite=Lax'; + break; + case 'strict': + str += '; SameSite=Strict'; + break; + default: + throw new TypeError('option sameSite is invalid'); + } + } + + return str; +} + +/** + * Try decoding a string using a decoding function. + * + * @param {string} str + * @param {function} decode + * @private + */ + +function tryDecode(str, decode) { + try { + return decode(str); + } catch (e) { + return str; + } +} diff --git a/nodered/rootfs/data/node_modules/cookie/package.json b/nodered/rootfs/data/node_modules/cookie/package.json new file mode 100644 index 0000000..95b170d --- /dev/null +++ b/nodered/rootfs/data/node_modules/cookie/package.json @@ -0,0 +1,71 @@ +{ + "_from": "cookie@0.3.1", + "_id": "cookie@0.3.1", + "_inBundle": false, + "_integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=", + "_location": "/cookie", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "cookie@0.3.1", + "name": "cookie", + "escapedName": "cookie", + "rawSpec": "0.3.1", + "saveSpec": null, + "fetchSpec": "0.3.1" + }, + "_requiredBy": [ + "/engine.io" + ], + "_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", + "_shasum": "e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb", + "_spec": "cookie@0.3.1", + "_where": "/data/node_modules/engine.io", + "author": { + "name": "Roman Shtylman", + "email": "shtylman@gmail.com" + }, + "bugs": { + "url": "https://github.com/jshttp/cookie/issues" + }, + "bundleDependencies": false, + "contributors": [ + { + "name": "Douglas Christopher Wilson", + "email": "doug@somethingdoug.com" + } + ], + "deprecated": false, + "description": "HTTP server cookie parsing and serialization", + "devDependencies": { + "istanbul": "0.4.3", + "mocha": "1.21.5" + }, + "engines": { + "node": ">= 0.6" + }, + "files": [ + "HISTORY.md", + "LICENSE", + "README.md", + "index.js" + ], + "homepage": "https://github.com/jshttp/cookie#readme", + "keywords": [ + "cookie", + "cookies" + ], + "license": "MIT", + "name": "cookie", + "repository": { + "type": "git", + "url": "git+https://github.com/jshttp/cookie.git" + }, + "scripts": { + "test": "mocha --reporter spec --bail --check-leaks test/", + "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/", + "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/" + }, + "version": "0.3.1" +} diff --git a/nodered/rootfs/data/node_modules/core-util-is/LICENSE b/nodered/rootfs/data/node_modules/core-util-is/LICENSE new file mode 100644 index 0000000..d8d7f94 --- /dev/null +++ b/nodered/rootfs/data/node_modules/core-util-is/LICENSE @@ -0,0 +1,19 @@ +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/core-util-is/README.md b/nodered/rootfs/data/node_modules/core-util-is/README.md new file mode 100644 index 0000000..5a76b41 --- /dev/null +++ b/nodered/rootfs/data/node_modules/core-util-is/README.md @@ -0,0 +1,3 @@ +# core-util-is + +The `util.is*` functions introduced in Node v0.12. diff --git a/nodered/rootfs/data/node_modules/core-util-is/float.patch b/nodered/rootfs/data/node_modules/core-util-is/float.patch new file mode 100644 index 0000000..a06d5c0 --- /dev/null +++ b/nodered/rootfs/data/node_modules/core-util-is/float.patch @@ -0,0 +1,604 @@ +diff --git a/lib/util.js b/lib/util.js +index a03e874..9074e8e 100644 +--- a/lib/util.js ++++ b/lib/util.js +@@ -19,430 +19,6 @@ + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + +-var formatRegExp = /%[sdj%]/g; +-exports.format = function(f) { +- if (!isString(f)) { +- var objects = []; +- for (var i = 0; i < arguments.length; i++) { +- objects.push(inspect(arguments[i])); +- } +- return objects.join(' '); +- } +- +- var i = 1; +- var args = arguments; +- var len = args.length; +- var str = String(f).replace(formatRegExp, function(x) { +- if (x === '%%') return '%'; +- if (i >= len) return x; +- switch (x) { +- case '%s': return String(args[i++]); +- case '%d': return Number(args[i++]); +- case '%j': +- try { +- return JSON.stringify(args[i++]); +- } catch (_) { +- return '[Circular]'; +- } +- default: +- return x; +- } +- }); +- for (var x = args[i]; i < len; x = args[++i]) { +- if (isNull(x) || !isObject(x)) { +- str += ' ' + x; +- } else { +- str += ' ' + inspect(x); +- } +- } +- return str; +-}; +- +- +-// Mark that a method should not be used. +-// Returns a modified function which warns once by default. +-// If --no-deprecation is set, then it is a no-op. +-exports.deprecate = function(fn, msg) { +- // Allow for deprecating things in the process of starting up. +- if (isUndefined(global.process)) { +- return function() { +- return exports.deprecate(fn, msg).apply(this, arguments); +- }; +- } +- +- if (process.noDeprecation === true) { +- return fn; +- } +- +- var warned = false; +- function deprecated() { +- if (!warned) { +- if (process.throwDeprecation) { +- throw new Error(msg); +- } else if (process.traceDeprecation) { +- console.trace(msg); +- } else { +- console.error(msg); +- } +- warned = true; +- } +- return fn.apply(this, arguments); +- } +- +- return deprecated; +-}; +- +- +-var debugs = {}; +-var debugEnviron; +-exports.debuglog = function(set) { +- if (isUndefined(debugEnviron)) +- debugEnviron = process.env.NODE_DEBUG || ''; +- set = set.toUpperCase(); +- if (!debugs[set]) { +- if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { +- var pid = process.pid; +- debugs[set] = function() { +- var msg = exports.format.apply(exports, arguments); +- console.error('%s %d: %s', set, pid, msg); +- }; +- } else { +- debugs[set] = function() {}; +- } +- } +- return debugs[set]; +-}; +- +- +-/** +- * Echos the value of a value. Trys to print the value out +- * in the best way possible given the different types. +- * +- * @param {Object} obj The object to print out. +- * @param {Object} opts Optional options object that alters the output. +- */ +-/* legacy: obj, showHidden, depth, colors*/ +-function inspect(obj, opts) { +- // default options +- var ctx = { +- seen: [], +- stylize: stylizeNoColor +- }; +- // legacy... +- if (arguments.length >= 3) ctx.depth = arguments[2]; +- if (arguments.length >= 4) ctx.colors = arguments[3]; +- if (isBoolean(opts)) { +- // legacy... +- ctx.showHidden = opts; +- } else if (opts) { +- // got an "options" object +- exports._extend(ctx, opts); +- } +- // set default options +- if (isUndefined(ctx.showHidden)) ctx.showHidden = false; +- if (isUndefined(ctx.depth)) ctx.depth = 2; +- if (isUndefined(ctx.colors)) ctx.colors = false; +- if (isUndefined(ctx.customInspect)) ctx.customInspect = true; +- if (ctx.colors) ctx.stylize = stylizeWithColor; +- return formatValue(ctx, obj, ctx.depth); +-} +-exports.inspect = inspect; +- +- +-// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics +-inspect.colors = { +- 'bold' : [1, 22], +- 'italic' : [3, 23], +- 'underline' : [4, 24], +- 'inverse' : [7, 27], +- 'white' : [37, 39], +- 'grey' : [90, 39], +- 'black' : [30, 39], +- 'blue' : [34, 39], +- 'cyan' : [36, 39], +- 'green' : [32, 39], +- 'magenta' : [35, 39], +- 'red' : [31, 39], +- 'yellow' : [33, 39] +-}; +- +-// Don't use 'blue' not visible on cmd.exe +-inspect.styles = { +- 'special': 'cyan', +- 'number': 'yellow', +- 'boolean': 'yellow', +- 'undefined': 'grey', +- 'null': 'bold', +- 'string': 'green', +- 'date': 'magenta', +- // "name": intentionally not styling +- 'regexp': 'red' +-}; +- +- +-function stylizeWithColor(str, styleType) { +- var style = inspect.styles[styleType]; +- +- if (style) { +- return '\u001b[' + inspect.colors[style][0] + 'm' + str + +- '\u001b[' + inspect.colors[style][1] + 'm'; +- } else { +- return str; +- } +-} +- +- +-function stylizeNoColor(str, styleType) { +- return str; +-} +- +- +-function arrayToHash(array) { +- var hash = {}; +- +- array.forEach(function(val, idx) { +- hash[val] = true; +- }); +- +- return hash; +-} +- +- +-function formatValue(ctx, value, recurseTimes) { +- // Provide a hook for user-specified inspect functions. +- // Check that value is an object with an inspect function on it +- if (ctx.customInspect && +- value && +- isFunction(value.inspect) && +- // Filter out the util module, it's inspect function is special +- value.inspect !== exports.inspect && +- // Also filter out any prototype objects using the circular check. +- !(value.constructor && value.constructor.prototype === value)) { +- var ret = value.inspect(recurseTimes, ctx); +- if (!isString(ret)) { +- ret = formatValue(ctx, ret, recurseTimes); +- } +- return ret; +- } +- +- // Primitive types cannot have properties +- var primitive = formatPrimitive(ctx, value); +- if (primitive) { +- return primitive; +- } +- +- // Look up the keys of the object. +- var keys = Object.keys(value); +- var visibleKeys = arrayToHash(keys); +- +- if (ctx.showHidden) { +- keys = Object.getOwnPropertyNames(value); +- } +- +- // Some type of object without properties can be shortcutted. +- if (keys.length === 0) { +- if (isFunction(value)) { +- var name = value.name ? ': ' + value.name : ''; +- return ctx.stylize('[Function' + name + ']', 'special'); +- } +- if (isRegExp(value)) { +- return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); +- } +- if (isDate(value)) { +- return ctx.stylize(Date.prototype.toString.call(value), 'date'); +- } +- if (isError(value)) { +- return formatError(value); +- } +- } +- +- var base = '', array = false, braces = ['{', '}']; +- +- // Make Array say that they are Array +- if (isArray(value)) { +- array = true; +- braces = ['[', ']']; +- } +- +- // Make functions say that they are functions +- if (isFunction(value)) { +- var n = value.name ? ': ' + value.name : ''; +- base = ' [Function' + n + ']'; +- } +- +- // Make RegExps say that they are RegExps +- if (isRegExp(value)) { +- base = ' ' + RegExp.prototype.toString.call(value); +- } +- +- // Make dates with properties first say the date +- if (isDate(value)) { +- base = ' ' + Date.prototype.toUTCString.call(value); +- } +- +- // Make error with message first say the error +- if (isError(value)) { +- base = ' ' + formatError(value); +- } +- +- if (keys.length === 0 && (!array || value.length == 0)) { +- return braces[0] + base + braces[1]; +- } +- +- if (recurseTimes < 0) { +- if (isRegExp(value)) { +- return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); +- } else { +- return ctx.stylize('[Object]', 'special'); +- } +- } +- +- ctx.seen.push(value); +- +- var output; +- if (array) { +- output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); +- } else { +- output = keys.map(function(key) { +- return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); +- }); +- } +- +- ctx.seen.pop(); +- +- return reduceToSingleString(output, base, braces); +-} +- +- +-function formatPrimitive(ctx, value) { +- if (isUndefined(value)) +- return ctx.stylize('undefined', 'undefined'); +- if (isString(value)) { +- var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '') +- .replace(/'/g, "\\'") +- .replace(/\\"/g, '"') + '\''; +- return ctx.stylize(simple, 'string'); +- } +- if (isNumber(value)) { +- // Format -0 as '-0'. Strict equality won't distinguish 0 from -0, +- // so instead we use the fact that 1 / -0 < 0 whereas 1 / 0 > 0 . +- if (value === 0 && 1 / value < 0) +- return ctx.stylize('-0', 'number'); +- return ctx.stylize('' + value, 'number'); +- } +- if (isBoolean(value)) +- return ctx.stylize('' + value, 'boolean'); +- // For some reason typeof null is "object", so special case here. +- if (isNull(value)) +- return ctx.stylize('null', 'null'); +-} +- +- +-function formatError(value) { +- return '[' + Error.prototype.toString.call(value) + ']'; +-} +- +- +-function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { +- var output = []; +- for (var i = 0, l = value.length; i < l; ++i) { +- if (hasOwnProperty(value, String(i))) { +- output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, +- String(i), true)); +- } else { +- output.push(''); +- } +- } +- keys.forEach(function(key) { +- if (!key.match(/^\d+$/)) { +- output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, +- key, true)); +- } +- }); +- return output; +-} +- +- +-function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { +- var name, str, desc; +- desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }; +- if (desc.get) { +- if (desc.set) { +- str = ctx.stylize('[Getter/Setter]', 'special'); +- } else { +- str = ctx.stylize('[Getter]', 'special'); +- } +- } else { +- if (desc.set) { +- str = ctx.stylize('[Setter]', 'special'); +- } +- } +- if (!hasOwnProperty(visibleKeys, key)) { +- name = '[' + key + ']'; +- } +- if (!str) { +- if (ctx.seen.indexOf(desc.value) < 0) { +- if (isNull(recurseTimes)) { +- str = formatValue(ctx, desc.value, null); +- } else { +- str = formatValue(ctx, desc.value, recurseTimes - 1); +- } +- if (str.indexOf('\n') > -1) { +- if (array) { +- str = str.split('\n').map(function(line) { +- return ' ' + line; +- }).join('\n').substr(2); +- } else { +- str = '\n' + str.split('\n').map(function(line) { +- return ' ' + line; +- }).join('\n'); +- } +- } +- } else { +- str = ctx.stylize('[Circular]', 'special'); +- } +- } +- if (isUndefined(name)) { +- if (array && key.match(/^\d+$/)) { +- return str; +- } +- name = JSON.stringify('' + key); +- if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { +- name = name.substr(1, name.length - 2); +- name = ctx.stylize(name, 'name'); +- } else { +- name = name.replace(/'/g, "\\'") +- .replace(/\\"/g, '"') +- .replace(/(^"|"$)/g, "'"); +- name = ctx.stylize(name, 'string'); +- } +- } +- +- return name + ': ' + str; +-} +- +- +-function reduceToSingleString(output, base, braces) { +- var numLinesEst = 0; +- var length = output.reduce(function(prev, cur) { +- numLinesEst++; +- if (cur.indexOf('\n') >= 0) numLinesEst++; +- return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; +- }, 0); +- +- if (length > 60) { +- return braces[0] + +- (base === '' ? '' : base + '\n ') + +- ' ' + +- output.join(',\n ') + +- ' ' + +- braces[1]; +- } +- +- return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; +-} +- +- + // NOTE: These type checking functions intentionally don't use `instanceof` + // because it is fragile and can be easily faked with `Object.create()`. + function isArray(ar) { +@@ -522,166 +98,10 @@ function isPrimitive(arg) { + exports.isPrimitive = isPrimitive; + + function isBuffer(arg) { +- return arg instanceof Buffer; ++ return Buffer.isBuffer(arg); + } + exports.isBuffer = isBuffer; + + function objectToString(o) { + return Object.prototype.toString.call(o); +-} +- +- +-function pad(n) { +- return n < 10 ? '0' + n.toString(10) : n.toString(10); +-} +- +- +-var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', +- 'Oct', 'Nov', 'Dec']; +- +-// 26 Feb 16:19:34 +-function timestamp() { +- var d = new Date(); +- var time = [pad(d.getHours()), +- pad(d.getMinutes()), +- pad(d.getSeconds())].join(':'); +- return [d.getDate(), months[d.getMonth()], time].join(' '); +-} +- +- +-// log is just a thin wrapper to console.log that prepends a timestamp +-exports.log = function() { +- console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); +-}; +- +- +-/** +- * Inherit the prototype methods from one constructor into another. +- * +- * The Function.prototype.inherits from lang.js rewritten as a standalone +- * function (not on Function.prototype). NOTE: If this file is to be loaded +- * during bootstrapping this function needs to be rewritten using some native +- * functions as prototype setup using normal JavaScript does not work as +- * expected during bootstrapping (see mirror.js in r114903). +- * +- * @param {function} ctor Constructor function which needs to inherit the +- * prototype. +- * @param {function} superCtor Constructor function to inherit prototype from. +- */ +-exports.inherits = function(ctor, superCtor) { +- ctor.super_ = superCtor; +- ctor.prototype = Object.create(superCtor.prototype, { +- constructor: { +- value: ctor, +- enumerable: false, +- writable: true, +- configurable: true +- } +- }); +-}; +- +-exports._extend = function(origin, add) { +- // Don't do anything if add isn't an object +- if (!add || !isObject(add)) return origin; +- +- var keys = Object.keys(add); +- var i = keys.length; +- while (i--) { +- origin[keys[i]] = add[keys[i]]; +- } +- return origin; +-}; +- +-function hasOwnProperty(obj, prop) { +- return Object.prototype.hasOwnProperty.call(obj, prop); +-} +- +- +-// Deprecated old stuff. +- +-exports.p = exports.deprecate(function() { +- for (var i = 0, len = arguments.length; i < len; ++i) { +- console.error(exports.inspect(arguments[i])); +- } +-}, 'util.p: Use console.error() instead'); +- +- +-exports.exec = exports.deprecate(function() { +- return require('child_process').exec.apply(this, arguments); +-}, 'util.exec is now called `child_process.exec`.'); +- +- +-exports.print = exports.deprecate(function() { +- for (var i = 0, len = arguments.length; i < len; ++i) { +- process.stdout.write(String(arguments[i])); +- } +-}, 'util.print: Use console.log instead'); +- +- +-exports.puts = exports.deprecate(function() { +- for (var i = 0, len = arguments.length; i < len; ++i) { +- process.stdout.write(arguments[i] + '\n'); +- } +-}, 'util.puts: Use console.log instead'); +- +- +-exports.debug = exports.deprecate(function(x) { +- process.stderr.write('DEBUG: ' + x + '\n'); +-}, 'util.debug: Use console.error instead'); +- +- +-exports.error = exports.deprecate(function(x) { +- for (var i = 0, len = arguments.length; i < len; ++i) { +- process.stderr.write(arguments[i] + '\n'); +- } +-}, 'util.error: Use console.error instead'); +- +- +-exports.pump = exports.deprecate(function(readStream, writeStream, callback) { +- var callbackCalled = false; +- +- function call(a, b, c) { +- if (callback && !callbackCalled) { +- callback(a, b, c); +- callbackCalled = true; +- } +- } +- +- readStream.addListener('data', function(chunk) { +- if (writeStream.write(chunk) === false) readStream.pause(); +- }); +- +- writeStream.addListener('drain', function() { +- readStream.resume(); +- }); +- +- readStream.addListener('end', function() { +- writeStream.end(); +- }); +- +- readStream.addListener('close', function() { +- call(); +- }); +- +- readStream.addListener('error', function(err) { +- writeStream.end(); +- call(err); +- }); +- +- writeStream.addListener('error', function(err) { +- readStream.destroy(); +- call(err); +- }); +-}, 'util.pump(): Use readableStream.pipe() instead'); +- +- +-var uv; +-exports._errnoException = function(err, syscall) { +- if (isUndefined(uv)) uv = process.binding('uv'); +- var errname = uv.errname(err); +- var e = new Error(syscall + ' ' + errname); +- e.code = errname; +- e.errno = errname; +- e.syscall = syscall; +- return e; +-}; ++} \ No newline at end of file diff --git a/nodered/rootfs/data/node_modules/core-util-is/lib/util.js b/nodered/rootfs/data/node_modules/core-util-is/lib/util.js new file mode 100644 index 0000000..ff4c851 --- /dev/null +++ b/nodered/rootfs/data/node_modules/core-util-is/lib/util.js @@ -0,0 +1,107 @@ +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// NOTE: These type checking functions intentionally don't use `instanceof` +// because it is fragile and can be easily faked with `Object.create()`. + +function isArray(arg) { + if (Array.isArray) { + return Array.isArray(arg); + } + return objectToString(arg) === '[object Array]'; +} +exports.isArray = isArray; + +function isBoolean(arg) { + return typeof arg === 'boolean'; +} +exports.isBoolean = isBoolean; + +function isNull(arg) { + return arg === null; +} +exports.isNull = isNull; + +function isNullOrUndefined(arg) { + return arg == null; +} +exports.isNullOrUndefined = isNullOrUndefined; + +function isNumber(arg) { + return typeof arg === 'number'; +} +exports.isNumber = isNumber; + +function isString(arg) { + return typeof arg === 'string'; +} +exports.isString = isString; + +function isSymbol(arg) { + return typeof arg === 'symbol'; +} +exports.isSymbol = isSymbol; + +function isUndefined(arg) { + return arg === void 0; +} +exports.isUndefined = isUndefined; + +function isRegExp(re) { + return objectToString(re) === '[object RegExp]'; +} +exports.isRegExp = isRegExp; + +function isObject(arg) { + return typeof arg === 'object' && arg !== null; +} +exports.isObject = isObject; + +function isDate(d) { + return objectToString(d) === '[object Date]'; +} +exports.isDate = isDate; + +function isError(e) { + return (objectToString(e) === '[object Error]' || e instanceof Error); +} +exports.isError = isError; + +function isFunction(arg) { + return typeof arg === 'function'; +} +exports.isFunction = isFunction; + +function isPrimitive(arg) { + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; +} +exports.isPrimitive = isPrimitive; + +exports.isBuffer = Buffer.isBuffer; + +function objectToString(o) { + return Object.prototype.toString.call(o); +} diff --git a/nodered/rootfs/data/node_modules/core-util-is/package.json b/nodered/rootfs/data/node_modules/core-util-is/package.json new file mode 100644 index 0000000..869e783 --- /dev/null +++ b/nodered/rootfs/data/node_modules/core-util-is/package.json @@ -0,0 +1,62 @@ +{ + "_from": "core-util-is@1.0.2", + "_id": "core-util-is@1.0.2", + "_inBundle": false, + "_integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "_location": "/core-util-is", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "core-util-is@1.0.2", + "name": "core-util-is", + "escapedName": "core-util-is", + "rawSpec": "1.0.2", + "saveSpec": null, + "fetchSpec": "1.0.2" + }, + "_requiredBy": [ + "/verror" + ], + "_resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "_shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7", + "_spec": "core-util-is@1.0.2", + "_where": "/root/.node-red/node_modules/verror", + "author": { + "name": "Isaac Z. Schlueter", + "email": "i@izs.me", + "url": "http://blog.izs.me/" + }, + "bugs": { + "url": "https://github.com/isaacs/core-util-is/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "The `util.is*` functions introduced in Node v0.12.", + "devDependencies": { + "tap": "^2.3.0" + }, + "homepage": "https://github.com/isaacs/core-util-is#readme", + "keywords": [ + "util", + "isBuffer", + "isArray", + "isNumber", + "isString", + "isRegExp", + "isThis", + "isThat", + "polyfill" + ], + "license": "MIT", + "main": "lib/util.js", + "name": "core-util-is", + "repository": { + "type": "git", + "url": "git://github.com/isaacs/core-util-is.git" + }, + "scripts": { + "test": "tap test.js" + }, + "version": "1.0.2" +} diff --git a/nodered/rootfs/data/node_modules/core-util-is/test.js b/nodered/rootfs/data/node_modules/core-util-is/test.js new file mode 100644 index 0000000..1a490c6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/core-util-is/test.js @@ -0,0 +1,68 @@ +var assert = require('tap'); + +var t = require('./lib/util'); + +assert.equal(t.isArray([]), true); +assert.equal(t.isArray({}), false); + +assert.equal(t.isBoolean(null), false); +assert.equal(t.isBoolean(true), true); +assert.equal(t.isBoolean(false), true); + +assert.equal(t.isNull(null), true); +assert.equal(t.isNull(undefined), false); +assert.equal(t.isNull(false), false); +assert.equal(t.isNull(), false); + +assert.equal(t.isNullOrUndefined(null), true); +assert.equal(t.isNullOrUndefined(undefined), true); +assert.equal(t.isNullOrUndefined(false), false); +assert.equal(t.isNullOrUndefined(), true); + +assert.equal(t.isNumber(null), false); +assert.equal(t.isNumber('1'), false); +assert.equal(t.isNumber(1), true); + +assert.equal(t.isString(null), false); +assert.equal(t.isString('1'), true); +assert.equal(t.isString(1), false); + +assert.equal(t.isSymbol(null), false); +assert.equal(t.isSymbol('1'), false); +assert.equal(t.isSymbol(1), false); +assert.equal(t.isSymbol(Symbol()), true); + +assert.equal(t.isUndefined(null), false); +assert.equal(t.isUndefined(undefined), true); +assert.equal(t.isUndefined(false), false); +assert.equal(t.isUndefined(), true); + +assert.equal(t.isRegExp(null), false); +assert.equal(t.isRegExp('1'), false); +assert.equal(t.isRegExp(new RegExp()), true); + +assert.equal(t.isObject({}), true); +assert.equal(t.isObject([]), true); +assert.equal(t.isObject(new RegExp()), true); +assert.equal(t.isObject(new Date()), true); + +assert.equal(t.isDate(null), false); +assert.equal(t.isDate('1'), false); +assert.equal(t.isDate(new Date()), true); + +assert.equal(t.isError(null), false); +assert.equal(t.isError({ err: true }), false); +assert.equal(t.isError(new Error()), true); + +assert.equal(t.isFunction(null), false); +assert.equal(t.isFunction({ }), false); +assert.equal(t.isFunction(function() {}), true); + +assert.equal(t.isPrimitive(null), true); +assert.equal(t.isPrimitive(''), true); +assert.equal(t.isPrimitive(0), true); +assert.equal(t.isPrimitive(new Date()), false); + +assert.equal(t.isBuffer(null), false); +assert.equal(t.isBuffer({}), false); +assert.equal(t.isBuffer(new Buffer(0)), true); diff --git a/nodered/rootfs/data/node_modules/cross-spawn/CHANGELOG.md b/nodered/rootfs/data/node_modules/cross-spawn/CHANGELOG.md new file mode 100644 index 0000000..ded9620 --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/CHANGELOG.md @@ -0,0 +1,100 @@ +# Change Log + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + + +## [6.0.5](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.4...v6.0.5) (2018-03-02) + + +### Bug Fixes + +* avoid using deprecated Buffer constructor ([#94](https://github.com/moxystudio/node-cross-spawn/issues/94)) ([d5770df](https://github.com/moxystudio/node-cross-spawn/commit/d5770df)), closes [/nodejs.org/api/deprecations.html#deprecations_dep0005](https://github.com//nodejs.org/api/deprecations.html/issues/deprecations_dep0005) + + + + +## [6.0.4](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.3...v6.0.4) (2018-01-31) + + +### Bug Fixes + +* fix paths being incorrectly normalized on unix ([06ee3c6](https://github.com/moxystudio/node-cross-spawn/commit/06ee3c6)), closes [#90](https://github.com/moxystudio/node-cross-spawn/issues/90) + + + + +## [6.0.3](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.2...v6.0.3) (2018-01-23) + + + + +## [6.0.2](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.1...v6.0.2) (2018-01-23) + + + + +## [6.0.1](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.0...v6.0.1) (2018-01-23) + + + + +# [6.0.0](https://github.com/moxystudio/node-cross-spawn/compare/5.1.0...6.0.0) (2018-01-23) + + +### Bug Fixes + +* fix certain arguments not being correctly escaped or causing batch syntax error ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)), closes [#82](https://github.com/moxystudio/node-cross-spawn/issues/82) [#51](https://github.com/moxystudio/node-cross-spawn/issues/51) +* fix commands as posix relatixe paths not working correctly, e.g.: `./my-command` ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) +* fix `options` argument being mutated ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) +* fix commands resolution when PATH was actually Path ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) + + +### Features + +* improve compliance with node's ENOENT errors ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) +* improve detection of node's shell option support ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) + + +### Chores + +* upgrade tooling +* upgrate project to es6 (node v4) + + +### BREAKING CHANGES + +* remove support for older nodejs versions, only `node >= 4` is supported + + + +## [5.1.0](https://github.com/moxystudio/node-cross-spawn/compare/5.0.1...5.1.0) (2017-02-26) + + +### Bug Fixes + +* fix `options.shell` support for NodeJS [v4.8](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.0) + + + +## [5.0.1](https://github.com/moxystudio/node-cross-spawn/compare/5.0.0...5.0.1) (2016-11-04) + + +### Bug Fixes + +* fix `options.shell` support for NodeJS v7 + + + +# [5.0.0](https://github.com/moxystudio/node-cross-spawn/compare/4.0.2...5.0.0) (2016-10-30) + + +## Features + +* add support for `options.shell` +* improve parsing of shebangs by using [`shebang-command`](https://github.com/kevva/shebang-command) module + + +## Chores + +* refactor some code to make it more clear +* update README caveats diff --git a/nodered/rootfs/data/node_modules/cross-spawn/LICENSE b/nodered/rootfs/data/node_modules/cross-spawn/LICENSE new file mode 100644 index 0000000..8407b9a --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018 Made With MOXY Lda + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/nodered/rootfs/data/node_modules/cross-spawn/README.md b/nodered/rootfs/data/node_modules/cross-spawn/README.md new file mode 100644 index 0000000..e895cd7 --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/README.md @@ -0,0 +1,94 @@ +# cross-spawn + +[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Build status][appveyor-image]][appveyor-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url] [![Greenkeeper badge][greenkeeper-image]][greenkeeper-url] + +[npm-url]:https://npmjs.org/package/cross-spawn +[downloads-image]:http://img.shields.io/npm/dm/cross-spawn.svg +[npm-image]:http://img.shields.io/npm/v/cross-spawn.svg +[travis-url]:https://travis-ci.org/moxystudio/node-cross-spawn +[travis-image]:http://img.shields.io/travis/moxystudio/node-cross-spawn/master.svg +[appveyor-url]:https://ci.appveyor.com/project/satazor/node-cross-spawn +[appveyor-image]:https://img.shields.io/appveyor/ci/satazor/node-cross-spawn/master.svg +[codecov-url]:https://codecov.io/gh/moxystudio/node-cross-spawn +[codecov-image]:https://img.shields.io/codecov/c/github/moxystudio/node-cross-spawn/master.svg +[david-dm-url]:https://david-dm.org/moxystudio/node-cross-spawn +[david-dm-image]:https://img.shields.io/david/moxystudio/node-cross-spawn.svg +[david-dm-dev-url]:https://david-dm.org/moxystudio/node-cross-spawn?type=dev +[david-dm-dev-image]:https://img.shields.io/david/dev/moxystudio/node-cross-spawn.svg +[greenkeeper-image]:https://badges.greenkeeper.io/moxystudio/node-cross-spawn.svg +[greenkeeper-url]:https://greenkeeper.io/ + +A cross platform solution to node's spawn and spawnSync. + + +## Installation + +`$ npm install cross-spawn` + + +## Why + +Node has issues when using spawn on Windows: + +- It ignores [PATHEXT](https://github.com/joyent/node/issues/2318) +- It does not support [shebangs](https://en.wikipedia.org/wiki/Shebang_(Unix)) +- Has problems running commands with [spaces](https://github.com/nodejs/node/issues/7367) +- Has problems running commands with posix relative paths (e.g.: `./my-folder/my-executable`) +- Has an [issue](https://github.com/moxystudio/node-cross-spawn/issues/82) with command shims (files in `node_modules/.bin/`), where arguments with quotes and parenthesis would result in [invalid syntax error](https://github.com/moxystudio/node-cross-spawn/blob/e77b8f22a416db46b6196767bcd35601d7e11d54/test/index.test.js#L149) +- No `options.shell` support on node `` where `` must not contain any arguments. +If you would like to have the shebang support improved, feel free to contribute via a pull-request. + +Remember to always test your code on Windows! + + +## Tests + +`$ npm test` +`$ npm test -- --watch` during development + +## License + +Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php). diff --git a/nodered/rootfs/data/node_modules/cross-spawn/index.js b/nodered/rootfs/data/node_modules/cross-spawn/index.js new file mode 100644 index 0000000..5509742 --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/index.js @@ -0,0 +1,39 @@ +'use strict'; + +const cp = require('child_process'); +const parse = require('./lib/parse'); +const enoent = require('./lib/enoent'); + +function spawn(command, args, options) { + // Parse the arguments + const parsed = parse(command, args, options); + + // Spawn the child process + const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); + + // Hook into child process "exit" event to emit an error if the command + // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 + enoent.hookChildProcess(spawned, parsed); + + return spawned; +} + +function spawnSync(command, args, options) { + // Parse the arguments + const parsed = parse(command, args, options); + + // Spawn the child process + const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); + + // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 + result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); + + return result; +} + +module.exports = spawn; +module.exports.spawn = spawn; +module.exports.sync = spawnSync; + +module.exports._parse = parse; +module.exports._enoent = enoent; diff --git a/nodered/rootfs/data/node_modules/cross-spawn/lib/enoent.js b/nodered/rootfs/data/node_modules/cross-spawn/lib/enoent.js new file mode 100644 index 0000000..14df9b6 --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/lib/enoent.js @@ -0,0 +1,59 @@ +'use strict'; + +const isWin = process.platform === 'win32'; + +function notFoundError(original, syscall) { + return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { + code: 'ENOENT', + errno: 'ENOENT', + syscall: `${syscall} ${original.command}`, + path: original.command, + spawnargs: original.args, + }); +} + +function hookChildProcess(cp, parsed) { + if (!isWin) { + return; + } + + const originalEmit = cp.emit; + + cp.emit = function (name, arg1) { + // If emitting "exit" event and exit code is 1, we need to check if + // the command exists and emit an "error" instead + // See https://github.com/IndigoUnited/node-cross-spawn/issues/16 + if (name === 'exit') { + const err = verifyENOENT(arg1, parsed, 'spawn'); + + if (err) { + return originalEmit.call(cp, 'error', err); + } + } + + return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params + }; +} + +function verifyENOENT(status, parsed) { + if (isWin && status === 1 && !parsed.file) { + return notFoundError(parsed.original, 'spawn'); + } + + return null; +} + +function verifyENOENTSync(status, parsed) { + if (isWin && status === 1 && !parsed.file) { + return notFoundError(parsed.original, 'spawnSync'); + } + + return null; +} + +module.exports = { + hookChildProcess, + verifyENOENT, + verifyENOENTSync, + notFoundError, +}; diff --git a/nodered/rootfs/data/node_modules/cross-spawn/lib/parse.js b/nodered/rootfs/data/node_modules/cross-spawn/lib/parse.js new file mode 100644 index 0000000..962827a --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/lib/parse.js @@ -0,0 +1,125 @@ +'use strict'; + +const path = require('path'); +const niceTry = require('nice-try'); +const resolveCommand = require('./util/resolveCommand'); +const escape = require('./util/escape'); +const readShebang = require('./util/readShebang'); +const semver = require('semver'); + +const isWin = process.platform === 'win32'; +const isExecutableRegExp = /\.(?:com|exe)$/i; +const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; + +// `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0 +const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false; + +function detectShebang(parsed) { + parsed.file = resolveCommand(parsed); + + const shebang = parsed.file && readShebang(parsed.file); + + if (shebang) { + parsed.args.unshift(parsed.file); + parsed.command = shebang; + + return resolveCommand(parsed); + } + + return parsed.file; +} + +function parseNonShell(parsed) { + if (!isWin) { + return parsed; + } + + // Detect & add support for shebangs + const commandFile = detectShebang(parsed); + + // We don't need a shell if the command filename is an executable + const needsShell = !isExecutableRegExp.test(commandFile); + + // If a shell is required, use cmd.exe and take care of escaping everything correctly + // Note that `forceShell` is an hidden option used only in tests + if (parsed.options.forceShell || needsShell) { + // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/` + // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument + // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called, + // we need to double escape them + const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); + + // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar) + // This is necessary otherwise it will always fail with ENOENT in those cases + parsed.command = path.normalize(parsed.command); + + // Escape command & arguments + parsed.command = escape.command(parsed.command); + parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars)); + + const shellCommand = [parsed.command].concat(parsed.args).join(' '); + + parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; + parsed.command = process.env.comspec || 'cmd.exe'; + parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped + } + + return parsed; +} + +function parseShell(parsed) { + // If node supports the shell option, there's no need to mimic its behavior + if (supportsShellOption) { + return parsed; + } + + // Mimic node shell option + // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335 + const shellCommand = [parsed.command].concat(parsed.args).join(' '); + + if (isWin) { + parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe'; + parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; + parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped + } else { + if (typeof parsed.options.shell === 'string') { + parsed.command = parsed.options.shell; + } else if (process.platform === 'android') { + parsed.command = '/system/bin/sh'; + } else { + parsed.command = '/bin/sh'; + } + + parsed.args = ['-c', shellCommand]; + } + + return parsed; +} + +function parse(command, args, options) { + // Normalize arguments, similar to nodejs + if (args && !Array.isArray(args)) { + options = args; + args = null; + } + + args = args ? args.slice(0) : []; // Clone array to avoid changing the original + options = Object.assign({}, options); // Clone object to avoid changing the original + + // Build our parsed object + const parsed = { + command, + args, + options, + file: undefined, + original: { + command, + args, + }, + }; + + // Delegate further parsing to shell or non-shell + return options.shell ? parseShell(parsed) : parseNonShell(parsed); +} + +module.exports = parse; diff --git a/nodered/rootfs/data/node_modules/cross-spawn/lib/util/escape.js b/nodered/rootfs/data/node_modules/cross-spawn/lib/util/escape.js new file mode 100644 index 0000000..b0bb84c --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/lib/util/escape.js @@ -0,0 +1,45 @@ +'use strict'; + +// See http://www.robvanderwoude.com/escapechars.php +const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; + +function escapeCommand(arg) { + // Escape meta chars + arg = arg.replace(metaCharsRegExp, '^$1'); + + return arg; +} + +function escapeArgument(arg, doubleEscapeMetaChars) { + // Convert to string + arg = `${arg}`; + + // Algorithm below is based on https://qntm.org/cmd + + // Sequence of backslashes followed by a double quote: + // double up all the backslashes and escape the double quote + arg = arg.replace(/(\\*)"/g, '$1$1\\"'); + + // Sequence of backslashes followed by the end of the string + // (which will become a double quote later): + // double up all the backslashes + arg = arg.replace(/(\\*)$/, '$1$1'); + + // All other backslashes occur literally + + // Quote the whole thing: + arg = `"${arg}"`; + + // Escape meta chars + arg = arg.replace(metaCharsRegExp, '^$1'); + + // Double escape meta chars if necessary + if (doubleEscapeMetaChars) { + arg = arg.replace(metaCharsRegExp, '^$1'); + } + + return arg; +} + +module.exports.command = escapeCommand; +module.exports.argument = escapeArgument; diff --git a/nodered/rootfs/data/node_modules/cross-spawn/lib/util/readShebang.js b/nodered/rootfs/data/node_modules/cross-spawn/lib/util/readShebang.js new file mode 100644 index 0000000..bd4f128 --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/lib/util/readShebang.js @@ -0,0 +1,32 @@ +'use strict'; + +const fs = require('fs'); +const shebangCommand = require('shebang-command'); + +function readShebang(command) { + // Read the first 150 bytes from the file + const size = 150; + let buffer; + + if (Buffer.alloc) { + // Node.js v4.5+ / v5.10+ + buffer = Buffer.alloc(size); + } else { + // Old Node.js API + buffer = new Buffer(size); + buffer.fill(0); // zero-fill + } + + let fd; + + try { + fd = fs.openSync(command, 'r'); + fs.readSync(fd, buffer, 0, size, 0); + fs.closeSync(fd); + } catch (e) { /* Empty */ } + + // Attempt to extract shebang (null is returned if not a shebang) + return shebangCommand(buffer.toString()); +} + +module.exports = readShebang; diff --git a/nodered/rootfs/data/node_modules/cross-spawn/lib/util/resolveCommand.js b/nodered/rootfs/data/node_modules/cross-spawn/lib/util/resolveCommand.js new file mode 100644 index 0000000..2fd5ad2 --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/lib/util/resolveCommand.js @@ -0,0 +1,47 @@ +'use strict'; + +const path = require('path'); +const which = require('which'); +const pathKey = require('path-key')(); + +function resolveCommandAttempt(parsed, withoutPathExt) { + const cwd = process.cwd(); + const hasCustomCwd = parsed.options.cwd != null; + + // If a custom `cwd` was specified, we need to change the process cwd + // because `which` will do stat calls but does not support a custom cwd + if (hasCustomCwd) { + try { + process.chdir(parsed.options.cwd); + } catch (err) { + /* Empty */ + } + } + + let resolved; + + try { + resolved = which.sync(parsed.command, { + path: (parsed.options.env || process.env)[pathKey], + pathExt: withoutPathExt ? path.delimiter : undefined, + }); + } catch (e) { + /* Empty */ + } finally { + process.chdir(cwd); + } + + // If we successfully resolved, ensure that an absolute path is returned + // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it + if (resolved) { + resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved); + } + + return resolved; +} + +function resolveCommand(parsed) { + return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); +} + +module.exports = resolveCommand; diff --git a/nodered/rootfs/data/node_modules/cross-spawn/package.json b/nodered/rootfs/data/node_modules/cross-spawn/package.json new file mode 100644 index 0000000..65b613b --- /dev/null +++ b/nodered/rootfs/data/node_modules/cross-spawn/package.json @@ -0,0 +1,107 @@ +{ + "_from": "cross-spawn@^6.0.0", + "_id": "cross-spawn@6.0.5", + "_inBundle": false, + "_integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "_location": "/cross-spawn", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "cross-spawn@^6.0.0", + "name": "cross-spawn", + "escapedName": "cross-spawn", + "rawSpec": "^6.0.0", + "saveSpec": null, + "fetchSpec": "^6.0.0" + }, + "_requiredBy": [ + "/execa" + ], + "_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "_shasum": "4a5ec7c64dfae22c3a14124dbacdee846d80cbc4", + "_spec": "cross-spawn@^6.0.0", + "_where": "/data/node_modules/execa", + "author": { + "name": "André Cruz", + "email": "andre@moxy.studio" + }, + "bugs": { + "url": "https://github.com/moxystudio/node-cross-spawn/issues" + }, + "bundleDependencies": false, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] + }, + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "deprecated": false, + "description": "Cross platform child_process#spawn and child_process#spawnSync", + "devDependencies": { + "@commitlint/cli": "^6.0.0", + "@commitlint/config-conventional": "^6.0.2", + "babel-core": "^6.26.0", + "babel-jest": "^22.1.0", + "babel-preset-moxy": "^2.2.1", + "eslint": "^4.3.0", + "eslint-config-moxy": "^5.0.0", + "husky": "^0.14.3", + "jest": "^22.0.0", + "lint-staged": "^7.0.0", + "mkdirp": "^0.5.1", + "regenerator-runtime": "^0.11.1", + "rimraf": "^2.6.2", + "standard-version": "^4.2.0" + }, + "engines": { + "node": ">=4.8" + }, + "files": [ + "lib" + ], + "homepage": "https://github.com/moxystudio/node-cross-spawn", + "keywords": [ + "spawn", + "spawnSync", + "windows", + "cross-platform", + "path-ext", + "shebang", + "cmd", + "execute" + ], + "license": "MIT", + "lint-staged": { + "*.js": [ + "eslint --fix", + "git add" + ] + }, + "main": "index.js", + "name": "cross-spawn", + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/moxystudio/node-cross-spawn.git" + }, + "scripts": { + "commitmsg": "commitlint -e $GIT_PARAMS", + "lint": "eslint .", + "precommit": "lint-staged", + "prerelease": "npm t && npm run lint", + "release": "standard-version", + "test": "jest --env node --coverage" + }, + "standard-version": { + "scripts": { + "posttag": "git push --follow-tags origin master && npm publish" + } + }, + "version": "6.0.5" +} diff --git a/nodered/rootfs/data/node_modules/dashdash/CHANGES.md b/nodered/rootfs/data/node_modules/dashdash/CHANGES.md new file mode 100644 index 0000000..d7c8f4e --- /dev/null +++ b/nodered/rootfs/data/node_modules/dashdash/CHANGES.md @@ -0,0 +1,364 @@ +# node-dashdash changelog + +## not yet released + +(nothing yet) + +## 1.14.1 + +- [issue #30] Change the output used by dashdash's Bash completion support to + indicate "there are no completions for this argument" to cope with different + sorting rules on different Bash/platforms. For example: + + $ triton -v -p test2 package get # before + ##-no -tritonpackage- completions-## + + $ triton -v -p test2 package get # after + ##-no-completion- -results-## + +## 1.14.0 + +- New `synopsisFromOpt(