From 7dd1abb9bf6922146804de1f193c46083ce89c15 Mon Sep 17 00:00:00 2001 From: suil Date: Mon, 15 Jan 2018 09:30:16 +0000 Subject: [PATCH 01/10] to test on testbed --- package-lock.json | 72 ++++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7ee048d..e74e342 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1008,7 +1008,7 @@ "babel-plugin-transform-es2015-unicode-regex": "6.24.1", "babel-plugin-transform-exponentiation-operator": "6.24.1", "babel-plugin-transform-regenerator": "6.26.0", - "browserslist": "2.11.1", + "browserslist": "2.11.2", "invariant": "2.2.2", "semver": "5.4.1" } @@ -1669,12 +1669,12 @@ } }, "browserslist": { - "version": "2.11.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.1.tgz", - "integrity": "sha512-Gp4oJOQOby5TpOJJuUtCrGE0KSJOUYVa/I+/3eD/TRWEK8jqZuJPAK1t+VuG6jp0keudrqtxlH4MbYbmylun9g==", + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.2.tgz", + "integrity": "sha512-BWT1zhRqq8BG/HrUQWB4pgkU6u27OyC1r5ErMn8zRaYTLtRS4cDtDCdZA3XYLsSmYWP2PPlBR8sggzrofImzgg==", "dev": true, "requires": { - "caniuse-lite": "1.0.30000791", + "caniuse-lite": "1.0.30000792", "electron-to-chromium": "1.3.30" } }, @@ -1839,9 +1839,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30000791", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000791.tgz", - "integrity": "sha1-jjV0Xv1IOj4ju301CZAybSMZ/BY=", + "version": "1.0.30000792", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000792.tgz", + "integrity": "sha1-0M6pgfgRjzlhRxr7tDyaHlu/AzI=", "dev": true }, "capture-stack-trace": { @@ -3943,9 +3943,9 @@ } }, "extglob": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.3.tgz", - "integrity": "sha512-AyptZexgu7qppEPq59DtN/XJGZDrLcVxSHai+4hdgMMS9EpF4GBvygcWWApno8lL9qSjVpYt7Raao28qzJX1ww==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", "dev": true, "requires": { "array-unique": "0.3.2", @@ -4087,7 +4087,7 @@ "braces": "2.3.0", "define-property": "1.0.0", "extend-shallow": "2.0.1", - "extglob": "2.0.3", + "extglob": "2.0.4", "fragment-cache": "0.2.1", "kind-of": "6.0.2", "nanomatch": "1.2.7", @@ -5012,7 +5012,7 @@ "ncname": "1.0.0", "param-case": "2.1.1", "relateurl": "0.2.7", - "uglify-js": "3.3.5" + "uglify-js": "3.3.7" }, "dependencies": { "commander": { @@ -5028,13 +5028,21 @@ "dev": true }, "uglify-js": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.3.5.tgz", - "integrity": "sha512-ZebM2kgBL/UI9rKeAbsS2J0UPPv7SBy5hJNZml/YxB1zC6JK8IztcPs+cxilE4pu0li6vadVSFqiO7xFTKuSrg==", + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.3.7.tgz", + "integrity": "sha512-esJIpNQIC44EFSrbeFPhiXHy2HJ+dTcnn0Zdkn+5meuLsvoV0mFJffKlyezNIIHNfhF0NpgbifygCfEyAogIhQ==", "dev": true, "requires": { - "commander": "2.12.2", + "commander": "2.13.0", "source-map": "0.6.1" + }, + "dependencies": { + "commander": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz", + "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==", + "dev": true + } } } } @@ -7509,9 +7517,9 @@ } }, "extglob": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.3.tgz", - "integrity": "sha512-AyptZexgu7qppEPq59DtN/XJGZDrLcVxSHai+4hdgMMS9EpF4GBvygcWWApno8lL9qSjVpYt7Raao28qzJX1ww==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", "dev": true, "requires": { "array-unique": "0.3.2", @@ -7674,7 +7682,7 @@ "braces": "2.3.0", "define-property": "1.0.0", "extend-shallow": "2.0.1", - "extglob": "2.0.3", + "extglob": "2.0.4", "fragment-cache": "0.2.1", "kind-of": "6.0.2", "nanomatch": "1.2.7", @@ -9145,17 +9153,17 @@ } }, "runtime-browser": { - "version": "github:rethink-project/dev-runtime-browser#20ea367717dae8c8255639310f4c32426f8519da", + "version": "github:rethink-project/dev-runtime-browser#9f9d7544ea2684e4aa047c48051f6c8d86d92fbf", "requires": { "browserify": "14.5.0", "dexie": "1.5.1", - "runtime-core": "github:reTHINK-project/dev-runtime-core#b9ef28972af0730b12a1bedb772b2bd4f0b12cb9", + "runtime-core": "github:reTHINK-project/dev-runtime-core#edac36df284fb7dee535d971c035b5626b6167fa", "service-framework": "github:reTHINK-project/dev-service-framework#a4a893f585cc16064157db4bc9d91c3bc47285ef", "webrtcsupport": "2.2.0" }, "dependencies": { "runtime-core": { - "version": "github:reTHINK-project/dev-runtime-core#b9ef28972af0730b12a1bedb772b2bd4f0b12cb9", + "version": "github:reTHINK-project/dev-runtime-core#edac36df284fb7dee535d971c035b5626b6167fa", "requires": { "loglevel": "1.6.1", "service-framework": "github:rethink-project/dev-service-framework#a4a893f585cc16064157db4bc9d91c3bc47285ef" @@ -10566,17 +10574,11 @@ "schema-utils": "0.4.3", "serialize-javascript": "1.4.0", "source-map": "0.6.1", - "uglify-es": "3.3.5", + "uglify-es": "3.3.7", "webpack-sources": "1.1.0", "worker-farm": "1.5.2" }, "dependencies": { - "commander": { - "version": "2.12.2", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.12.2.tgz", - "integrity": "sha512-BFnaq5ZOGcDN7FlrtBT4xxkgIToalIIxwjxLWVJ8bGTpe1LroqMiqQXdA7ygc7CRvaYS+9zfPGFnJqFSayx+AA==", - "dev": true - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -10584,12 +10586,12 @@ "dev": true }, "uglify-es": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.5.tgz", - "integrity": "sha512-7IvaFuYtfbcXm0fGb13mmRYVQdzQDXETAtvYHbCDPt2V88Y8l2HaULOyW6ueoYA0JhGIcLK7dtHkDcBWySqnBw==", + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.7.tgz", + "integrity": "sha512-fGMnE6SsDRsCjxm78C+lv7MuXsse/dtF7QuTUT43BYf4jlxPjd+XTnGB8YjaCQJ3sv2LT4zk0mwpp9+QJocU6g==", "dev": true, "requires": { - "commander": "2.12.2", + "commander": "2.13.0", "source-map": "0.6.1" } } diff --git a/package.json b/package.json index 1f9a430..4886226 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dependencies": { "JSONStream": "^1.3.2", "express": "^4.16.2", - "runtime-browser": "github:rethink-project/dev-runtime-browser#v0.8.0", + "runtime-browser": "github:rethink-project/dev-runtime-browser#develop", "runtime-core": "github:rethink-project/dev-runtime-core#v0.11.1", "service-framework": "github:rethink-project/dev-service-framework#v0.8.0" }, From 7b2fc5419513461c5bbd9b3e146d8da8dfec21e0 Mon Sep 17 00:00:00 2001 From: suil Date: Thu, 18 Jan 2018 17:31:34 +0000 Subject: [PATCH 02/10] new version of runtime --- env | 8 +- package-lock.json | 145 +- resources/Runtime.js | 4854 +------------------------ resources/descriptors/IDPProxys.json | 16 +- resources/descriptors/ProtoStubs.json | 12 +- resources/descriptors/Runtimes.json | 4 +- 6 files changed, 102 insertions(+), 4937 deletions(-) diff --git a/env b/env index 66c0684..97fffa7 100644 --- a/env +++ b/env @@ -1,8 +1,8 @@ DEVELOPMENT=true -RUNTIME_URL=hyperty-catalogue://catalogue.localhost/.well-known/runtime/Runtime -DOMAIN=localhost -INDEX_URL=https://localhost/.well-known/runtime/index.html -SANDBOX_URL=https://localhost/.well-known/runtime/sandbox.html +RUNTIME_URL=hyperty-catalogue://catalogue.rethink.localhost.com/.well-known/runtime/Runtime +DOMAIN=rethink.localhost.com +INDEX_URL=https://rethink.localhost.com/.well-known/runtime/index.html +SANDBOX_URL=https://rethink.localhost.com/.well-known/runtime/sandbox.html HYPERTY_REPO=../dev-hyperty HYPERTY_TEMPLATES_PATH=examples diff --git a/package-lock.json b/package-lock.json index e74e342..e290cfc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1008,9 +1008,9 @@ "babel-plugin-transform-es2015-unicode-regex": "6.24.1", "babel-plugin-transform-exponentiation-operator": "6.24.1", "babel-plugin-transform-regenerator": "6.26.0", - "browserslist": "2.11.2", + "browserslist": "2.11.3", "invariant": "2.2.2", - "semver": "5.4.1" + "semver": "5.5.0" } }, "babel-register": { @@ -1357,13 +1357,14 @@ "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" }, "browser-pack": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.0.2.tgz", - "integrity": "sha1-+GzWzvT1MAyOY+B6TVEvZfv/RTE=", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.0.3.tgz", + "integrity": "sha512-Jo+RYsn8X8OhyP9tMXXg0ueR2fW696HUu1Hf3/DeiwNean1oGiPtdgGRNuUHBpPHzBH3x4n1kzAlgOgHSIq88g==", "requires": { "JSONStream": "1.3.2", - "combine-source-map": "0.7.2", + "combine-source-map": "0.8.0", "defined": "1.0.0", + "safe-buffer": "5.1.1", "through2": "2.0.3", "umd": "3.0.1" } @@ -1557,7 +1558,7 @@ "requires": { "JSONStream": "1.3.2", "assert": "1.4.1", - "browser-pack": "6.0.2", + "browser-pack": "6.0.3", "browser-resolve": "1.11.2", "browserify-zlib": "0.2.0", "buffer": "5.0.8", @@ -1591,7 +1592,7 @@ "shasum": "1.0.2", "shell-quote": "1.6.1", "stream-browserify": "2.0.1", - "stream-http": "2.7.2", + "stream-http": "2.8.0", "string_decoder": "1.0.3", "subarg": "1.0.0", "syntax-error": "1.3.0", @@ -1669,13 +1670,13 @@ } }, "browserslist": { - "version": "2.11.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.2.tgz", - "integrity": "sha512-BWT1zhRqq8BG/HrUQWB4pgkU6u27OyC1r5ErMn8zRaYTLtRS4cDtDCdZA3XYLsSmYWP2PPlBR8sggzrofImzgg==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.3.tgz", + "integrity": "sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA==", "dev": true, "requires": { "caniuse-lite": "1.0.30000792", - "electron-to-chromium": "1.3.30" + "electron-to-chromium": "1.3.31" } }, "bs-recipes": { @@ -1885,7 +1886,7 @@ "deep-eql": "3.0.1", "get-func-name": "2.0.0", "pathval": "1.1.0", - "type-detect": "4.0.5" + "type-detect": "4.0.6" } }, "chai-as-promised": { @@ -2157,9 +2158,9 @@ } }, "combine-source-map": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.7.2.tgz", - "integrity": "sha1-CHAxKFazB6h8xKxIbzqaYq7MwJ4=", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", + "integrity": "sha1-pY0N8ELBhvz4IqjoAV9UUNLXmos=", "requires": { "convert-source-map": "1.1.3", "inline-source-map": "0.6.2", @@ -2516,7 +2517,7 @@ "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { - "es5-ext": "0.10.37" + "es5-ext": "0.10.38" } }, "dashdash": { @@ -2573,7 +2574,7 @@ "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", "dev": true, "requires": { - "type-detect": "4.0.5" + "type-detect": "4.0.6" } }, "deep-equal": { @@ -2952,20 +2953,11 @@ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" }, - "electron-releases": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/electron-releases/-/electron-releases-2.1.0.tgz", - "integrity": "sha512-cyKFD1bTE/UgULXfaueIN1k5EPFzs+FRc/rvCY5tIynefAPqopQEgjr0EzY+U3Dqrk/G4m9tXSPuZ77v6dL/Rw==", - "dev": true - }, "electron-to-chromium": { - "version": "1.3.30", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.30.tgz", - "integrity": "sha512-zx1Prv7kYLfc4OA60FhxGbSo4qrEjgSzpo1/37i7l9ltXPYOoQBtjQxY9KmsgfHnBxHlBGXwLlsbt/gub1w5lw==", - "dev": true, - "requires": { - "electron-releases": "2.1.0" - } + "version": "1.3.31", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.31.tgz", + "integrity": "sha512-XE4CLbswkZgZFn34cKFy1xaX+F5LHxeDLjY1+rsK9asDzknhbrd9g/n/01/acbU25KTsUSiLKwvlLyA+6XLUOA==", + "dev": true }, "elliptic": { "version": "6.4.0", @@ -3120,9 +3112,9 @@ } }, "es5-ext": { - "version": "0.10.37", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.37.tgz", - "integrity": "sha1-DudB0Ui4AGm6J9AgOTdWryV978M=", + "version": "0.10.38", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.38.tgz", + "integrity": "sha512-jCMyePo7AXbUESwbl8Qi01VSH2piY9s/a3rSU/5w/MlTIx8HPL1xn2InGN8ejt/xulcJgnTO7vqNtOAxzYd2Kg==", "dev": true, "requires": { "es6-iterator": "2.0.3", @@ -3136,7 +3128,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.37", + "es5-ext": "0.10.38", "es6-symbol": "3.1.1" } }, @@ -3147,7 +3139,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.37", + "es5-ext": "0.10.38", "es6-iterator": "2.0.3", "es6-set": "0.1.5", "es6-symbol": "3.1.1", @@ -3161,7 +3153,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.37", + "es5-ext": "0.10.38", "es6-iterator": "2.0.3", "es6-symbol": "3.1.1", "event-emitter": "0.3.5" @@ -3174,7 +3166,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.37" + "es5-ext": "0.10.38" } }, "es6-weak-map": { @@ -3184,7 +3176,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.37", + "es5-ext": "0.10.38", "es6-iterator": "2.0.3", "es6-symbol": "3.1.1" } @@ -3250,7 +3242,7 @@ "pluralize": "7.0.0", "progress": "2.0.0", "require-uncached": "1.0.3", - "semver": "5.4.1", + "semver": "5.5.0", "strip-ansi": "4.0.0", "strip-json-comments": "2.0.1", "table": "4.0.2", @@ -3558,7 +3550,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.37" + "es5-ext": "0.10.38" } }, "event-stream": { @@ -5352,6 +5344,19 @@ "process": "0.11.10", "through2": "2.0.3", "xtend": "4.0.1" + }, + "dependencies": { + "combine-source-map": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.7.2.tgz", + "integrity": "sha1-CHAxKFazB6h8xKxIbzqaYq7MwJ4=", + "requires": { + "convert-source-map": "1.1.3", + "inline-source-map": "0.6.2", + "lodash.memoize": "3.0.4", + "source-map": "0.5.7" + } + } } }, "interpret": { @@ -7019,7 +7024,7 @@ "from2": "2.3.0", "parallel-transform": "1.1.0", "pump": "1.0.3", - "pumpify": "1.3.6", + "pumpify": "1.4.0", "stream-each": "1.2.2", "through2": "2.0.3" }, @@ -7365,7 +7370,7 @@ "querystring-es3": "0.2.1", "readable-stream": "2.3.3", "stream-browserify": "2.0.1", - "stream-http": "2.7.2", + "stream-http": "2.8.0", "string_decoder": "1.0.3", "timers-browserify": "2.0.4", "tty-browserify": "0.0.0", @@ -7407,7 +7412,7 @@ "ignore-by-default": "1.0.1", "minimatch": "3.0.4", "pstree.remy": "1.1.0", - "semver": "5.4.1", + "semver": "5.5.0", "touch": "3.1.0", "undefsafe": "2.0.1", "update-notifier": "2.3.0" @@ -7711,7 +7716,7 @@ "requires": { "hosted-git-info": "2.5.0", "is-builtin-module": "1.0.0", - "semver": "5.4.1", + "semver": "5.5.0", "validate-npm-package-license": "3.0.1" } }, @@ -8113,7 +8118,7 @@ "got": "6.7.1", "registry-auth-token": "3.3.1", "registry-url": "3.1.0", - "semver": "5.4.1" + "semver": "5.5.0" } }, "pako": { @@ -8598,9 +8603,9 @@ } }, "pumpify": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.3.6.tgz", - "integrity": "sha512-BurGAcvezsINL5US9T9wGHHcLNrG6MCp//ECtxron3vcR+Rfx5Anqq7HbZXNJvFQli8FGVsWCAvywEJFV5Hx/Q==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.4.0.tgz", + "integrity": "sha512-2kmNR9ry+Pf45opRVirpNuIFotsxUGLaYqxIwuR77AYrYRMuFCz9eryHBS52L360O+NcR383CL4QYlMKPq4zYA==", "dev": true, "requires": { "duplexify": "3.5.3", @@ -8730,9 +8735,9 @@ } }, "rc": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.3.tgz", - "integrity": "sha1-UVdakA+N1oOBxxC0cSwhVMPiA1s=", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.4.tgz", + "integrity": "sha1-oPYGyq4qO4YrvQ74VILAElsxX6M=", "dev": true, "requires": { "deep-extend": "0.4.2", @@ -8884,7 +8889,7 @@ "integrity": "sha1-+w0yie4Nmtosu1KvXf5mywcNMAY=", "dev": true, "requires": { - "rc": "1.2.3", + "rc": "1.2.4", "safe-buffer": "5.1.1" } }, @@ -8894,7 +8899,7 @@ "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", "dev": true, "requires": { - "rc": "1.2.3" + "rc": "1.2.4" } }, "regjsgen": { @@ -9007,7 +9012,7 @@ "stringstream": "0.0.5", "tough-cookie": "2.3.3", "tunnel-agent": "0.6.0", - "uuid": "3.1.0" + "uuid": "3.2.1" }, "dependencies": { "qs": { @@ -9249,9 +9254,9 @@ "dev": true }, "semver": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true }, "semver-diff": { @@ -9260,7 +9265,7 @@ "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", "dev": true, "requires": { - "semver": "5.4.1" + "semver": "5.5.0" } }, "send": { @@ -9477,7 +9482,7 @@ "path-to-regexp": "1.7.0", "samsam": "1.3.0", "text-encoding": "0.6.4", - "type-detect": "4.0.5" + "type-detect": "4.0.6" }, "dependencies": { "isarray": { @@ -9983,9 +9988,9 @@ } }, "stream-http": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.7.2.tgz", - "integrity": "sha512-c0yTD2rbQzXtSsFSVhtpvY/vS6u066PcXOX9kBB3mSO76RiUQzL340uJkGBWnlBg4/HZzqiUXtaVA7wcRcJgEw==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.0.tgz", + "integrity": "sha512-sZOFxI/5xw058XIRHl4dU3dZ+TTOIGJR78Dvo0oEAejIt4ou27k+3ne1zYmCV+v7UucbxIFQuOgnkTVHh8YPnw==", "requires": { "builtin-status-codes": "3.0.0", "inherits": "2.0.3", @@ -10484,9 +10489,9 @@ } }, "type-detect": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.5.tgz", - "integrity": "sha512-N9IvkQslUGYGC24RkJk1ba99foK6TkwC2FHAEBlQFBP0RxQZS8ZpJuAZcwiY/w9ZJHFQb1aOXBI60OdxhTrwEQ==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.6.tgz", + "integrity": "sha512-qZ3bAurt2IXGPR3c57PyaSYEnQiLRwPeS60G9TahElBZsdOABo+iKYch/PhRjSTZJ5/DF08x43XMt9qec2g3ig==", "dev": true }, "type-is": { @@ -10977,9 +10982,9 @@ "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" }, "uuid": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", - "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz", + "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==", "dev": true }, "uws": { @@ -11542,7 +11547,7 @@ "querystring-es3": "0.2.1", "readable-stream": "2.3.3", "stream-browserify": "2.0.1", - "stream-http": "2.7.2", + "stream-http": "2.8.0", "string_decoder": "0.10.31", "timers-browserify": "2.0.4", "tty-browserify": "0.0.0", diff --git a/resources/Runtime.js b/resources/Runtime.js index 23040d7..f740e77 100644 --- a/resources/Runtime.js +++ b/resources/Runtime.js @@ -1,5 +1,5 @@ // version: 0.11.1 -// date: Fri Jan 12 2018 12:42:38 GMT+0000 (WET) +// date: Thu Jan 18 2018 12:51:37 GMT+0000 (WET) // licence: /** * Copyright 2016 PT Inovação e Sistemas SA @@ -26,7 +26,7 @@ // version: 0.11.1 -// date: Fri Jan 12 2018 12:42:38 GMT+0000 (WET) +// date: Thu Jan 18 2018 12:51:37 GMT+0000 (WET) // licence: /** * Copyright 2016 PT Inovação e Sistemas SA @@ -53,7 +53,7 @@ // version: 0.11.1 -// date: Fri Jan 12 2018 12:41:34 GMT+0000 (WET) +// date: Thu Jan 18 2018 12:51:20 GMT+0000 (WET) // licence: /** * Copyright 2016 PT Inovação e Sistemas SA @@ -80,7 +80,7 @@ // version: 0.11.1 -// date: Fri Jan 12 2018 12:41:34 GMT+0000 (WET) +// date: Thu Jan 18 2018 12:51:20 GMT+0000 (WET) // licence: /** * Copyright 2016 PT Inovação e Sistemas SA @@ -106,1927 +106,8 @@ **/ -// version: 0.11.0 -// date: Fri Jan 12 2018 12:21:50 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Fri Jan 12 2018 12:21:50 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Fri Jan 12 2018 12:17:17 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Fri Jan 12 2018 12:17:17 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Fri Jan 12 2018 12:14:42 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Fri Jan 12 2018 12:14:42 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 16:54:02 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 16:54:02 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 16:48:46 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 16:48:47 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 16:31:02 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 16:31:02 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 15:19:01 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 15:19:01 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 15:13:30 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 15:13:31 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 09:10:09 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Wed Jan 10 2018 09:10:09 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -// version: 0.11.0 -// date: Tue Jan 09 2018 17:50:56 GMT+0000 (WET) -// licence: -/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ - - -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Runtime",[],t):"object"==typeof exports?exports.Runtime=t():e.Runtime=t()}("undefined"!=typeof self?self:this,function(){/******/ -return function(e){/******/ -/******/ -// The require function -/******/ -function __webpack_require__(r){/******/ -/******/ -// Check if module is in cache -/******/ -if(t[r])/******/ -return t[r].exports;/******/ -// Create a new module (and put it into the cache) -/******/ -var n=t[r]={/******/ -i:r,/******/ -l:!1,/******/ -exports:{}};/******/ -/******/ -// Return the exports of the module -/******/ -/******/ -/******/ -// Execute the module function -/******/ -/******/ -/******/ -// Flag the module as loaded -/******/ -return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}// webpackBootstrap -/******/ -// The module cache -/******/ -var t={};/******/ -/******/ -// Load entry module and return exports -/******/ -/******/ -/******/ -/******/ -// expose the modules object (__webpack_modules__) -/******/ -/******/ -/******/ -// expose the module cache -/******/ -/******/ -/******/ -// define getter function for harmony exports -/******/ -/******/ -/******/ -// getDefaultExport function for compatibility with non-harmony modules -/******/ -/******/ -/******/ -// Object.prototype.hasOwnProperty.call -/******/ -/******/ -/******/ -// __webpack_public_path__ -/******/ -return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,r){/******/ -__webpack_require__.o(e,t)||/******/ -Object.defineProperty(e,t,{/******/ -configurable:!1,/******/ -enumerable:!0,/******/ -get:r})},__webpack_require__.n=function(e){/******/ -var t=e&&e.__esModule?/******/ -function(){return e.default}:/******/ -function(){return e};/******/ -/******/ -return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=212)}([/* 0 */ -/***/ -function(e,t,r){var n=r(4),i=r(30),o=r(18),s=r(19),a=r(27),u=function(e,t,r){var c,f,l,d,p=e&u.F,y=e&u.G,h=e&u.S,v=e&u.P,g=e&u.B,b=y?n:h?n[t]||(n[t]={}):(n[t]||{}).prototype,m=y?i:i[t]||(i[t]={}),_=m.prototype||(m.prototype={});y&&(r=t);for(c in r) -// contains in native -f=!p&&b&&void 0!==b[c], -// export native or passed -l=(f?b:r)[c], -// bind timers to global for call from export context -d=g&&f?a(l,n):v&&"function"==typeof l?a(Function.call,l):l, -// extend global -b&&s(b,c,l,e&u.U), -// export -m[c]!=l&&o(m,c,d),v&&_[c]!=l&&(_[c]=l)};n.core=i, -// type bitmap -u.F=1,// forced -u.G=2,// global -u.S=4,// static -u.P=8,// proto -u.B=16,// bind -u.W=32,// wrap -u.U=64,// safe -u.R=128,// real proto method for `library` -e.exports=u},/* 1 */ -/***/ -function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},/* 2 */ -/***/ -function(e,t,r){"use strict";t.__esModule=!0;var n=r(200),i=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=function(){function defineProperties(e,t){for(var r=0;r=0&&r<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==n&&// defaults to true -persistLevelIfPossible(r),replaceLoggingMethods.call(s,r,e),typeof console===t&&r0?i(n(e),9007199254740991):0}},/* 13 */ -/***/ -function(e,t){var r=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=r)},/* 14 */ -/***/ -function(e,t,r){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}/** -* Copyright 2016 PT Inovação e Sistemas SA -* Copyright 2016 INESC-ID -* Copyright 2016 QUOBIS NETWORKS SL -* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V -* Copyright 2016 ORANGE SA -* Copyright 2016 Deutsche Telekom AG -* Copyright 2016 Apizee -* Copyright 2016 TECHNISCHE UNIVERSITAT BERLIN -* -* 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. -**/ -/** - * Support module with some functions will be useful - * @module utils - */ -/** - * @typedef divideURL - * @type Object - * @property {string} type The type of URL - * @property {string} domain The domain of URL - * @property {string} identity The identity of URL - */ -/** - * Divide an url in type, domain and identity - * @param {URL.URL} url - url address - * @return {divideURL} the result of divideURL - */ -function divideURL(e){function recurse(e){var t=/([a-zA-Z-]*)(:\/\/(?:\.)?|:)([-a-zA-Z0-9@:%._+~#=]{2,256})([-a-zA-Z0-9@:%._+~#=\/]*)/gi;return e.replace(t,"$1,$3,$4").split(",")}var t=recurse(e); -// If the url has no scheme -if(t[0]===e&&!t[0].includes("@")){return{type:"",domain:e,identity:""}} -// check if the url has the scheme and includes an @ -if(t[0]===e&&t[0].includes("@")){t=recurse((t[0]===e?"smtp":t[0])+"://"+t[0])} -// if the domain includes an @, divide it to domain and identity respectively -return t[1].includes("@")&&(t[2]=t[0]+"://"+t[1],t[1]=t[1].substr(t[1].indexOf("@")+1)),{type:t[0],domain:t[1],identity:t[2]}}/** - * Check if an Object is empty - * @param {Object} object Object to be checked - * @return {Boolean} status of Object, empty or not (true|false); - */ -function emptyObject(e){return!((0,s.default)(e).length>0)}function secondsSinceEpoch(){return Math.floor(Date.now()/1e3)}/** - * Make a COPY of the original data - * @param {Object} obj - object to be cloned - * @return {Object} - */ -function deepClone(e){ -//TODO: simple but inefficient JSON deep clone... -if(e)return JSON.parse((0,i.default)(e))}function removePathFromURL(e){var t=e.split("/");return t[0]+"//"+t[2]+"/"+t[3]}/** - * Obtains the user URL that corresponds to a given email - * @param {string} userEmail The user email - * @return {URL.URL} userURL The user URL - */ -function getUserURLFromEmail(e){var t=e.indexOf("@");return"user://"+e.substring(t+1,e.length)+"/"+e.substring(0,t)}/** - * Obtains the user email that corresponds to a given URL - * @param {URL.URL} userURL The user URL - * @return {string} userEmail The user email - */ -function getUserEmailFromURL(e){var t=divideURL(e);return t.identity.replace("/","")+"@"+t.domain}/** - * Check if the user identifier is already in the URL format, if not, convert to URL format - * @param {string} identifier user identifier - * @return {string} userURL the user URL - */ -function convertToUserURL(e){ -// check if the identifier is already in the url format -if("user://"===e.substring(0,7)){var t=divideURL(e); -//check if the url is well formated -if(t.domain&&t.identity)return e;throw"userURL with wrong format"}return getUserURLFromEmail(e)}function isDataObjectURL(e){var t=["domain-idp","runtime","domain","hyperty"],r=e.split("://"),n=r[0];return-1===t.indexOf(n)}function isLegacy(e){return e.split("@").length>1}function isURL(e){return e.split("/").length>=3}function isUserURL(e){return"user"===divideURL(e).type}function isHypertyURL(e){return"hyperty"===divideURL(e).type}/** - * get information relative each component configured on runtime configuration; - * @param {object} configuration object with all configuration - * @param {string} component string with the component to get the configuration, like, runtimeURLS, catalogueURLs, msgNodeURL, domainRegistryURL; - * @param {string} resource type of resource to get, like, catalogue, runtimeUA, protocolstub, idpProxy - * @return {object} return an object with all configurations; - */ -function getConfigurationResources(e,t,r){return e[t][r]}/** - * Build a full url with the runtime configuration; - * @param {object} configuration object with all configuration - * @param {string} component string with the component to get the configuration, like, runtimeURLS, catalogueURLs, msgNodeURL, domainRegistryURL; - * @param {string} resource type of resource to get, like, catalogue, runtimeUA, protocolstub, idpProxy - * @param {string} type resource to get, like a hyperty name or protocolstub name; - * @param {boolean} useFallback if true the function will check if have a fallback url; - * @return {string} partial url to contact the resource; - */ -function buildURL(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=e[t],a=void 0;if(!s.hasOwnProperty(r))throw Error("The configuration "+(0,i.default)(s,"",2)+" don't have the "+r+" resource you are looking for");var u=s[r]; -// console.log(url); -return n?(a=u.prefix+e.domain+u.suffix+n,u.hasOwnProperty("fallback")&&o&&(a=u.fallback.indexOf("%domain%")?u.fallback.replace(/(%domain%)/g,e.domain)+n:u.fallback+n)):a=u.prefix+e.domain+u.suffix,a}/** - * Generate a Global Unique ID - * - * @returns String; - */ -function generateGUID(){function s4(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return s4()+s4()+"-"+s4()+"-"+s4()+"-"+s4()+"-"+s4()+s4()+s4()}function getUserIdentityDomain(e){var t=divideURL(e),r=t.domain.split("."),n=r.length;return 1==n?r[n-1]:r[n-2]+"."+r[n-1]}/** - * Check if URL is from a backend service - * @param {string} url URL to be processed - * @return {boolean} - */ -function isBackendServiceURL(e){var t=divideURL(e),r=t.domain.split("."),n=["domain","global","domain-idp"],i=["registry","msg-node"],o=void 0;return r.length>1&&(o=r.filter(function(e){return-1!==i.indexOf(e)})[0]),!(!o||-1===i.indexOf(o))||!!t.type&&-1!==n.indexOf(t.type)}function divideEmail(e){var t=e.indexOf("@");return{username:e.substring(0,t),domain:e.substring(t+1,e.length)}}function assign(e,t,r){e||(e={}),"string"==typeof t&&(t=parseAttributes(t));for(var n=t.length-1,i=0;i"+i+""};e.exports=function(e,t){var r={};r[e]=t(a),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},/* 21 */ -/***/ -function(e,t,r){var n=r(22),i=r(13),o=r(65),s=r(58),a=function(e,t,r){var u,c,f,l=e&a.F,d=e&a.G,p=e&a.S,y=e&a.P,h=e&a.B,v=e&a.W,g=d?i:i[t]||(i[t]={}),b=g.prototype,m=d?n:p?n[t]:(n[t]||{}).prototype;d&&(r=t);for(u in r) -// contains in native -(c=!l&&m&&void 0!==m[u])&&u in g||( -// export native or passed -f=c?m[u]:r[u], -// prevent global pollution for namespaces -g[u]=d&&"function"!=typeof m[u]?r[u]:h&&c?o(f,n):v&&m[u]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):y&&"function"==typeof f?o(Function.call,f):f, -// export proto methods to core.%CONSTRUCTOR%.methods.%NAME% -y&&((g.virtual||(g.virtual={}))[u]=f, -// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% -e&a.R&&b&&!b[u]&&s(b,u,f)))}; -// type bitmap -a.F=1,// forced -a.G=2,// global -a.S=4,// static -a.P=8,// proto -a.B=16,// bind -a.W=32,// wrap -a.U=64,// safe -a.R=128,// real proto method for `library` -e.exports=a},/* 22 */ -/***/ -function(e,t){ -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},/* 23 */ -/***/ -function(e,t,r){var n=r(136)("wks"),i=r(94),o=r(22).Symbol,s="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=n},/* 24 */ -/***/ -function(e,t,r){ -// to indexed object, toObject with fallback for non-array-like ES3 strings -var n=r(70),i=r(32);e.exports=function(e){return n(i(e))}},/* 25 */ -/***/ -function(e,t,r){var n=r(71),i=r(47),o=r(24),s=r(31),a=r(17),u=r(148),c=Object.getOwnPropertyDescriptor;t.f=r(10)?c:function(e,t){if(e=o(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(a(e,t))return i(!n.f.call(e,t),e[t])}},/* 26 */ -/***/ -function(e,t,r){ -// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) -var n=r(17),i=r(15),o=r(103)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},/* 27 */ -/***/ -function(e,t,r){ -// optional / simple context binding -var n=r(16);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},/* 28 */ -/***/ -function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},/* 29 */ -/***/ -function(e,t,r){"use strict";var n=r(5);e.exports=function(e,t){return!!e&&n(function(){ -// eslint-disable-next-line no-useless-call -t?e.call(null,function(){},1):e.call(null)})}},/* 30 */ -/***/ -function(e,t){var r=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=r)},/* 31 */ -/***/ -function(e,t,r){ -// 7.1.1 ToPrimitive(input [, PreferredType]) -var n=r(6); -// instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string -e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},/* 32 */ -/***/ -function(e,t){ -// 7.2.1 RequireObjectCoercible(argument) -e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},/* 33 */ -/***/ -function(e,t){ -// 7.1.4 ToInteger -var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},/* 34 */ -/***/ -function(e,t,r){ -// most Object methods by ES6 should accept primitives -var n=r(0),i=r(30),o=r(5);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],s={};s[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},/* 35 */ -/***/ -function(e,t,r){ -// 0 -> Array#forEach -// 1 -> Array#map -// 2 -> Array#filter -// 3 -> Array#some -// 4 -> Array#every -// 5 -> Array#find -// 6 -> Array#findIndex -var n=r(27),i=r(70),o=r(15),s=r(12),a=r(120);e.exports=function(e,t){var r=1==e,u=2==e,c=3==e,f=4==e,l=6==e,d=5==e||l,p=t||a;return function(t,a,y){for(var h,v,g=o(t),b=i(g),m=n(a,y,3),_=s(b.length),R=0,w=r?p(t,_):u?p(t,0):void 0;_>R;R++)if((d||R in b)&&(h=b[R],v=m(h,R,g),e))if(r)w[R]=v;else if(v)switch(e){case 3:return!0;// some -case 5:return h;// find -case 6:return R;// findIndex -case 2:w.push(h)}else if(f)return!1;return l?-1:c||f?f:w}}},/* 36 */ -/***/ -function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},/* 37 */ -/***/ -function(e,t,r){e.exports={default:r(440),__esModule:!0}},/* 38 */ -/***/ -function(e,t,r){"use strict";if(r(10)){var n=r(49),i=r(4),o=r(5),s=r(0),a=r(88),u=r(126),c=r(27),f=r(55),l=r(47),d=r(18),p=r(57),y=r(33),h=r(12),v=r(174),g=r(51),b=r(31),m=r(17),_=r(72),R=r(6),w=r(15),S=r(117),P=r(52),O=r(26),M=r(53).f,k=r(119),L=r(48),x=r(8),E=r(35),A=r(79),U=r(86),D=r(122),I=r(63),j=r(83),T=r(54),C=r(121),F=r(164),N=r(11),q=r(25),H=N.f,B=q.f,K=i.RangeError,G=i.TypeError,V=i.Uint8Array,W=Array.prototype,Y=u.ArrayBuffer,z=u.DataView,J=E(0),$=E(2),Q=E(3),X=E(4),Z=E(5),ee=E(6),te=A(!0),re=A(!1),ne=D.values,ie=D.keys,oe=D.entries,se=W.lastIndexOf,ae=W.reduce,ue=W.reduceRight,ce=W.join,fe=W.sort,le=W.slice,de=W.toString,pe=W.toLocaleString,ye=x("iterator"),he=x("toStringTag"),ve=L("typed_constructor"),ge=L("def_constructor"),be=a.CONSTR,me=a.TYPED,_e=a.VIEW,Re=E(1,function(e,t){return Me(U(e,e[ge]),t)}),we=o(function(){ -// eslint-disable-next-line no-undef -return 1===new V(new Uint16Array([1]).buffer)[0]}),Se=!!V&&!!V.prototype.set&&o(function(){new V(1).set({})}),Pe=function(e,t){var r=y(e);if(r<0||r%t)throw K("Wrong offset!");return r},Oe=function(e){if(R(e)&&me in e)return e;throw G(e+" is not a typed array!")},Me=function(e,t){if(!(R(e)&&ve in e))throw G("It is not a typed array constructor!");return new e(t)},ke=function(e,t){return Le(U(e,e[ge]),t)},Le=function(e,t){for(var r=0,n=t.length,i=Me(e,n);n>r;)i[r]=t[r++];return i},xe=function(e,t,r){H(e,t,{get:function(){return this._d[r]}})},Ee=function(e){var t,r,n,i,o,s,a=w(e),u=arguments.length,f=u>1?arguments[1]:void 0,l=void 0!==f,d=k(a);if(void 0!=d&&!S(d)){for(s=d.call(a),n=[],t=0;!(o=s.next()).done;t++)n.push(o.value);a=n}for(l&&u>2&&(f=c(f,arguments[2],2)),t=0,r=h(a.length),i=Me(this,r);r>t;t++)i[t]=l?f(a[t],t):a[t];return i},Ae=function(){for(var e=0,t=arguments.length,r=Me(this,t);t>e;)r[e]=arguments[e++];return r},Ue=!!V&&o(function(){pe.call(new V(1))}),De=function(){return pe.apply(Ue?le.call(Oe(this)):Oe(this),arguments)},Ie={copyWithin:function(e,t){return F.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return X(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){// eslint-disable-line no-unused-vars -return C.apply(Oe(this),arguments)},filter:function(e){return ke(this,$(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Z(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){J(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){// eslint-disable-line no-unused-vars -return ce.apply(Oe(this),arguments)},lastIndexOf:function(e){// eslint-disable-line no-unused-vars -return se.apply(Oe(this),arguments)},map:function(e){return Re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){// eslint-disable-line no-unused-vars -return ae.apply(Oe(this),arguments)},reduceRight:function(e){// eslint-disable-line no-unused-vars -return ue.apply(Oe(this),arguments)},reverse:function(){for(var e,t=this,r=Oe(t).length,n=Math.floor(r/2),i=0;i1?arguments[1]:void 0)},sort:function(e){return fe.call(Oe(this),e)},subarray:function(e,t){var r=Oe(this),n=r.length,i=g(e,n);return new(U(r,r[ge]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,h((void 0===t?n:g(t,n))-i))}},je=function(e,t){return ke(this,le.call(Oe(this),e,t))},Te=function(e){Oe(this);var t=Pe(arguments[1],1),r=this.length,n=w(e),i=h(n.length),o=0;if(i+t>r)throw K("Wrong length!");for(;o255?255:255&n),i.v[p](r*t+i.o,n,we)},x=function(e,t){H(e,t,{get:function(){return k(this,t)},set:function(e){return L(this,t,e)},enumerable:!0})};m?(y=r(function(e,r,n,i){f(e,y,c,"_d");var o,s,a,u,l=0,p=0;if(R(r)){if(!(r instanceof Y||"ArrayBuffer"==(u=_(r))||"SharedArrayBuffer"==u))return me in r?Le(y,r):Ee.call(y,r);o=r,p=Pe(n,t);var g=r.byteLength;if(void 0===i){if(g%t)throw K("Wrong length!");if((s=g-p)<0)throw K("Wrong length!")}else if((s=h(i)*t)+p>g)throw K("Wrong length!");a=s/t}else a=v(r),s=a*t,o=new Y(s);for(d(e,"_d",{b:o,o:p,l:s,e:a,v:new z(o)});ldocument.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r; -// add "__proto__" for Object.getPrototypeOf polyfill -return null!==e?(a.prototype=n(e),r=new a,a.prototype=null,r[s]=e):r=u(),void 0===t?r:i(r,t)}},/* 53 */ -/***/ -function(e,t,r){ -// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) -var n=r(150),i=r(104).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},/* 54 */ -/***/ -function(e,t,r){"use strict";var n=r(4),i=r(11),o=r(10),s=r(8)("species");e.exports=function(e){var t=n[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},/* 55 */ -/***/ -function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},/* 56 */ -/***/ -function(e,t,r){var n=r(27),i=r(162),o=r(117),s=r(3),a=r(12),u=r(119),c={},f={},t=e.exports=function(e,t,r,l,d){var p,y,h,v,g=d?function(){return e}:u(e),b=n(r,l,t?2:1),m=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!"); -// fast case for arrays with default iterator -if(o(g)){for(p=a(e.length);p>m;m++)if((v=t?b(s(y=e[m])[0],y[1]):b(e[m]))===c||v===f)return v}else for(h=g.call(e);!(y=h.next()).done;)if((v=i(h,b,y.value,t))===c||v===f)return v};t.BREAK=c,t.RETURN=f},/* 57 */ -/***/ -function(e,t,r){var n=r(19);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},/* 58 */ -/***/ -function(e,t,r){var n=r(40),i=r(73);e.exports=r(44)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},/* 59 */ -/***/ -function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},/* 60 */ -/***/ -function(e,t,r){e.exports={default:r(443),__esModule:!0}},/* 61 */ -/***/ -function(e,t,r){var n=r(11).f,i=r(17),o=r(8)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},/* 62 */ -/***/ -function(e,t,r){var n=r(0),i=r(32),o=r(5),s=r(107),a="["+s+"]",u="​…",c=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(e,t,r){var i={},a=o(function(){return!!s[e]()||u[e]()!=u}),c=i[e]=a?t(d):s[e];r&&(i[r]=c),n(n.P+n.F*a,"String",i)},d=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(f,"")),e};e.exports=l},/* 63 */ -/***/ -function(e,t){e.exports={}},/* 64 */ -/***/ -function(e,t,r){var n=r(6);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},/* 65 */ -/***/ -function(e,t,r){ -// optional / simple context binding -var n=r(93);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},/* 66 */ -/***/ -function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},/* 67 */ -/***/ -function(e,t,r){ -// 19.1.2.14 / 15.2.3.14 Object.keys(O) -var n=r(186),i=r(137);e.exports=Object.keys||function(e){return n(e,i)}},/* 68 */ -/***/ -function(e,t,r){"use strict";t.__esModule=!0;var n=r(98),i=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},/* 69 */ -/***/ -function(e,t,r){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r(456),i=_interopRequireDefault(n),o=r(203),s=_interopRequireDefault(o),a=r(98),u=_interopRequireDefault(a);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,u.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},/* 70 */ -/***/ -function(e,t,r){ -// fallback for non-array-like ES3 and non-enumerable old V8 strings -var n=r(28); -// eslint-disable-next-line no-prototype-builtins -e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},/* 71 */ -/***/ -function(e,t){t.f={}.propertyIsEnumerable},/* 72 */ -/***/ -function(e,t,r){ -// getting tag from 19.1.3.6 Object.prototype.toString() -var n=r(28),i=r(8)("toStringTag"),o="Arguments"==n(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=s(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},/* 73 */ -/***/ -function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},/* 74 */ -/***/ -function(e,t){e.exports={}},/* 75 */ -/***/ -function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},/* 76 */ -/***/ -function(e,t,r){ -// 7.1.13 ToObject(argument) -var n=r(130);e.exports=function(e){return Object(n(e))}},/* 77 */ -/***/ -function(e,t){t.f={}.propertyIsEnumerable},/* 78 */ -/***/ -function(e,t,r){var n=r(4),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},/* 79 */ -/***/ -function(e,t,r){ -// false -> Array#indexOf -// true -> Array#includes -var n=r(24),i=r(12),o=r(51);e.exports=function(e){return function(t,r,s){var a,u=n(t),c=i(u.length),f=o(s,c); -// Array#includes uses SameValueZero equality algorithm -// eslint-disable-next-line no-self-compare -if(e&&r!=r){for(;c>f;) -// eslint-disable-next-line no-self-compare -if((a=u[f++])!=a)return!0}else for(;c>f;f++)if((e||f in u)&&u[f]===r)return e||f||0;return!e&&-1}}},/* 80 */ -/***/ -function(e,t){t.f=Object.getOwnPropertySymbols},/* 81 */ -/***/ -function(e,t,r){ -// 7.2.2 IsArray(argument) -var n=r(28);e.exports=Array.isArray||function(e){return"Array"==n(e)}},/* 82 */ -/***/ -function(e,t,r){ -// 7.2.8 IsRegExp(argument) -var n=r(6),i=r(28),o=r(8)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},/* 83 */ -/***/ -function(e,t,r){var n=r(8)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0}, -// eslint-disable-next-line no-throw-literal -Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:r=!0}},o[n]=function(){return s},e(o)}catch(e){}return r}},/* 84 */ -/***/ -function(e,t,r){"use strict"; -// 21.2.5.3 get RegExp.prototype.flags -var n=r(3);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},/* 85 */ -/***/ -function(e,t,r){"use strict";var n=r(18),i=r(19),o=r(5),s=r(32),a=r(8);e.exports=function(e,t,r){var u=a(e),c=r(s,u,""[e]),f=c[0],l=c[1];o(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,f),n(RegExp.prototype,u,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)}))}},/* 86 */ -/***/ -function(e,t,r){ -// 7.3.20 SpeciesConstructor(O, defaultConstructor) -var n=r(3),i=r(16),o=r(8)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||void 0==(r=n(s)[o])?t:i(r)}},/* 87 */ -/***/ -function(e,t,r){"use strict";var n=r(4),i=r(0),o=r(19),s=r(57),a=r(42),u=r(56),c=r(55),f=r(6),l=r(5),d=r(83),p=r(61),y=r(108);e.exports=function(e,t,r,h,v,g){var b=n[e],m=b,_=v?"set":"add",R=m&&m.prototype,w={},S=function(e){var t=R[e];o(R,e,"delete"==e?function(e){return!(g&&!f(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!f(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!f(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof m&&(g||R.forEach&&!l(function(){(new m).entries().next()}))){var P=new m,O=P[_](g?{}:-0,1)!=P,M=l(function(){P.has(1)}),k=d(function(e){new m(e)}),L=!g&&l(function(){for( -// V8 ~ Chromium 42- fails only with 5+ elements -var e=new m,t=5;t--;)e[_](t,t);return!e.has(-0)});k||(m=t(function(t,r){c(t,m,e);var n=y(new b,t,m);return void 0!=r&&u(r,v,n[_],n),n}),m.prototype=R,R.constructor=m),(M||L)&&(S("delete"),S("has"),v&&S("get")),(L||O)&&S(_), -// weak collections should not contains .clear method -g&&R.clear&&delete R.clear}else -// create collection constructor -m=h.getConstructor(t,e,v,_),s(m.prototype,r),a.NEED=!0;return p(m,e),w[e]=m,i(i.G+i.W+i.F*(m!=b),w),g||h.setStrong(m,e,v),m}},/* 88 */ -/***/ -function(e,t,r){for(var n,i=r(4),o=r(18),s=r(48),a=s("typed_array"),u=s("view"),c=!(!i.ArrayBuffer||!i.DataView),f=c,l=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(n=i[d[l++]])?(o(n.prototype,a,!0),o(n.prototype,u,!0)):f=!1;e.exports={ABV:c,CONSTR:f,TYPED:a,VIEW:u}},/* 89 */ -/***/ -function(e,t,r){"use strict"; -// Forced replacement prototype accessors methods -e.exports=r(49)||!r(5)(function(){var e=Math.random(); -// In FF throws only define methods -// eslint-disable-next-line no-undef, no-useless-call -__defineSetter__.call(null,e,function(){}),delete r(4)[e]})},/* 90 */ -/***/ -function(e,t,r){"use strict"; -// https://tc39.github.io/proposal-setmap-offrom/ -var n=r(0);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},/* 91 */ -/***/ -function(e,t,r){"use strict"; -// https://tc39.github.io/proposal-setmap-offrom/ -var n=r(0),i=r(16),o=r(27),s=r(56);e.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,a,u=arguments[1];return i(this),t=void 0!==u,t&&i(u),void 0==e?new this:(r=[],t?(n=0,a=o(u,arguments[2],2),s(e,!1,function(e){r.push(a(e,n++))})):s(e,!1,r.push,r),new this(r))}})}},/* 92 */ -/***/ -function(e,t){e.exports=!0},/* 93 */ -/***/ -function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},/* 94 */ -/***/ -function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},/* 95 */ -/***/ -function(e,t,r){var n=r(40).f,i=r(59),o=r(23)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},/* 96 */ -/***/ -function(e,t,r){e.exports={default:r(434),__esModule:!0}},/* 97 */ -/***/ -function(e,t,r){ -// most Object methods by ES6 should accept primitives -var n=r(21),i=r(13),o=r(66);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],s={};s[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},/* 98 */ -/***/ -function(e,t,r){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r(445),i=_interopRequireDefault(n),o=r(447),s=_interopRequireDefault(o),a="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===a(i.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":a(e)}},/* 99 */ -/***/ -function(e,t,r){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=_interopRequireDefault(n),o=r(1),s=_interopRequireDefault(o),a=r(2),u=_interopRequireDefault(a),c=r(7),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(c),l=r(14),d=f.getLogger("address-allocation"),p=void 0,y=function(){/* private - _url: URL - _bus: MiniBus - */ -/** - * Create an Address Allocation - * @param {URL.URL} url - url from who is sending the message - * @param {MiniBus} bus - MiniBus used for address allocation - */ -function AddressAllocation(e,t,r){if((0,s.default)(this,AddressAllocation),p)return p;this._url=e+"/address-allocation",this._bus=t,this._registry=r,p=this}return(0,u.default)(AddressAllocation,[{key:"create",/** - * - * Ask for creation of a number of Hyperty addresses, to the domain message node. - * - * @param {Domain} domain - domain of the message node - * @param {Number} number - number of address to be allocated - * @param {Descriptor} info - descriptor to search for the hyperty (TODO:// this should be confirmed) - * @see https://github.com/reTHINK-project/specs/blob/master/datamodel/core/hyperty-catalogue/readme.md#catalogue-data-model - * @param {scheme} scheme - scheme of address to be created or reused, like: hyperty, comm, context, etc; - * @param {boolean|URL.HypertyURL} reuseURL - reuseURL is used to reuse the hypertyURL previously registred; - * @returns {Promise} this is Promise and returns an object with the address information - * - * @memberOf AddressAllocation - */ -value:function(e,t,r,n,i){ -// // console.log('typeof(reuseURL)', typeof(reuseURL), reuseURL); -// // console.log('typeof(reuseURL)', typeof(reuseURL), reuseURL); -return i?"boolean"==typeof i?i?this._reuseAllocatedAddress(e,t,r,n,i):this._allocateNewAddress(e,n,t):"string"==typeof i&&(0,l.isURL)(i)?this._reuseAllocatedAddress(e,t,r,n,i):void 0:(d.info("[AddressAllocation] - new address will be allocated"),this._allocateNewAddress(e,n,t))}},{key:"_reuseAllocatedAddress",value:function(e,t,r,n,o){var s=this;return new i.default(function(i,a){s._registry.checkRegisteredURLs(r,o).then(function(r){if(r){d.info("[AddressAllocation - "+n+"] - Reuse URL");i({newAddress:!1,address:r})}else"string"==typeof o?(d.info("[AddressAllocation - reuseURL] - Object "+o+" not found"),a("URL Not Found")):"boolean"==typeof o?s._allocateNewAddress(e,n,t).then(i).catch(a):a("URL Not Found")})})}},{key:"_allocateNewAddress",value:function(e,t,r){var n=this;return new i.default(function(i,o){var s={type:"create",from:n._url,to:"domain://msg-node."+e+"/address-allocation",body:{value:{number:r}}};"hyperty"!==t&&(s.body.scheme=t),d.info("[AddressAllocation - "+t+"] - Request new URL"),n._bus.postMessage(s,function(e){if(200===e.body.code){var t={newAddress:!0,address:e.body.value.allocated};i(t)}else o(e.body.desc)})})}},{key:"delete",value:function(e,t){var r=this;return new i.default(function(n,i){var o={type:"delete",from:r._url,to:"domain://msg-node."+e+"/address-allocation",body:{childrenResources:t}};r._bus.postMessage(o,function(e){200===e.body.code?n(e.body.code):i(e.body.desc)})})}},{key:"url",/** - * get the URL value - * @return {string} The url value; - */ -get:function(){return this._url}}],[{key:"instance",get:function(){if(!p)throw new Error("The address allocation was not instantiated");return p}}]),AddressAllocation}();t.default=y,e.exports=t.default},/* 100 */ -/***/ -function(e,t,r){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=_interopRequireDefault(n),o=r(1),s=_interopRequireDefault(o),a=r(2),u=_interopRequireDefault(a),c=r(7),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(c),l=r(14),d=r(490),p=_interopRequireDefault(d),y=f.getLogger("CryptoManager"),h=function(){/** - * This is the constructor to initialise the CryptoManager, it does not require any input. - * The init() must called in order to set mandatories attributes - */ -function CryptoManager(e){(0,s.default)(this,CryptoManager),this.storageManager=e,this.userDefaultKeyRef="userAsymmetricKey"}return(0,u.default)(CryptoManager,[{key:"init",value:function(e,t,r,n,i,o,s,a){var u=this;if(!e)throw new Error("[] runtimeURL is missing.");if(!r)throw new Error("storageManager is missing");if(!a)throw new Error("runtimeFactory is missing");u._runtimeURL=e,u._cryptoManagerURL=u._runtimeURL+"/cryptoManager", -//_this._myURL = _this._runtimeURL + '/crypto'; -u.storageManager=r,u.dataObjectsStorage=n,u.runtimeCapabilities=t,u._runtimeFactory=a,u._domain=(0,l.divideURL)(u._runtimeURL).domain,u.crypto=new p.default(u._runtimeFactory), -// hashTable to store all the crypto information between two hyperties -u.chatKeys={}, -// hashTable to store the symmetric keys to be used in the chat group -u.dataObjectSessionKeys={}, -//failsafe to enable/disable all the criptographic functions -u.isToUseEncryption=!0,u._registry=i,u._coreDiscovery=o,u._idm=s}},{key:"loadSessionKeys", -// to be used to initialise IDM with SessionKeys used in previous session -value:function(){var e=this;return new i.default(function(t){e.storageManager.get("dataObjectSessionKeys").then(function(r){e.dataObjectSessionKeys=r||{},t()})})}},{key:"_isFromRemoteSM",value:function(e){return"runtime"===e.split("://")[0]&&e!==this._runtimeURL+"/sm"}},{key:"addCryptoGUIListeners",value:function(){ -//TODO: Change the GUI invocation of this method -var e=this;e._messageBus.addListener(e._cryptoManagerURL,function(t){ -//let returnedValue; -if("generateRSAKeyPair"===t.body.method)return void e._crypto.getMyPublicKey().then(function(r){var n={type:"execute",value:r,code:200},i={id:t.id,type:"response",to:t.from,from:t.to,body:n};try{e._messageBus.postMessage(i)}catch(e){y.error("On addGUIListeners from if generateRSAKeyPair method postMessage error: "+e)}})})}},{key:"_isToEncrypt",value:function(e){y.info("[CryptoManager.istoChyperModule]",e);var t="create"===e.type,r=e.from.includes("hyperty://"),n=e.to.includes("hyperty://"),i=(0,l.isDataObjectURL)(e.to),o=!e.body.hasOwnProperty("mutual")||e.body.mutual; -//if is not to apply encryption, then returns resolve -return!!o&&(this.isToUseEncryption||"handshake"===e.type?"update"===e.type?(y.info("update:encryption disabled"),!1):!(0,l.isLegacy)(e.to)&&(t&&r&&n||t&&r&&i&&o||"handshake"===e.type||"update"===e.type&&o):(y.info("not handshake: encryption disabled"),!1))}},{key:"_isToDecrypt",value:function(e){var t=this;return new i.default(function(r,n){"subscribe"===e.type&t._isFromRemoteSM(e.from)?(y.log("_doMutualAuthenticationPhase1"),t._doMutualAuthenticationPhase1(e).then(function(){r(!1)},function(e){n(e)})):e.hasOwnProperty("body")&&e.body.hasOwnProperty("value")&&"string"==typeof e.body.value?(y.log("_isToDecrypt:true"),r(!0)):(y.log("_isToDecrypt:false"),r(!1))}).catch(function(e){y.error("[CryptoManager._isToDecrypt]",e)})}},{key:"encryptMessage",value:function(e){ -//log.info('encryptMessage:message', message); -var t=this;return y.log("encrypt message "),new i.default(function(r,n){var i="handshake"===e.type; -//if is not to apply encryption, then returns resolve -if(!t._isToEncrypt(e)) -// log.log('decryption disabled'); -return r(e);var o=(0,l.parseMessageURL)(e.to),s=(0,l.isDataObjectURL)(o),a=(0,l.isLegacy)(e.to),u="hyperty"===(0,l.divideURL)(e.from).type,c="hyperty"===(0,l.divideURL)(e.to).type;if("update"===e.type)return y.log("encrypt message: message type update"),r(e);if(a)r(e);else if(u&&c){var f=t._registry.getHypertyOwner(e.from);if(f){ -// check if exists any keys between two users -var d=t.chatKeys[e.from+"<->"+e.to];if(d||(d=t._newChatCrypto(e,f), -//log.log('createChatKey encrypt', message.from + message.to); -t.chatKeys[e.from+"<->"+e.to]=d,e.body.handshakePhase="startHandShake"),d.authenticated&&!i){var p=t.crypto.generateIV();t.crypto.encryptAES(d.keys.hypertyFromSessionKey,(0,l.stringify)(e.body.value),p).then(function(n){var i=t._filterMessageToHash(e,(0,l.stringify)(e.body.value)+(0,l.stringify)(p),d.hypertyFrom.messageInfo);t.crypto.hashHMAC(d.keys.hypertyFromHashKey,i).then(function(t){ -//log.log('result of hash ', hash); -var i={iv:(0,l.encode)(p),value:(0,l.encode)(n),hash:(0,l.encode)(t)};e.body.value=(0,l.encode)(i),r(e)})})}else i?r(e):t._doHandShakePhase(e,d).then(function(r){t.chatKeys[e.from+"<->"+e.to]=r.chatKeys,t._messageBus.postMessage(r.message),n("encrypt handshake protocol phase ")})}else n("In encryptMessage: Hyperty owner URL was not found")}else u&&s&& -//log.log('dataObject value to encrypt: ', message.body.value); -//log.log('IdentityModule - encrypt from hyperty to dataobject ', message); -t.storageManager.get("dataObjectSessionKeys").then(function(i){i=(0,l.chatkeysToArrayCloner)(i||{});var s=i?i[o]:null;t.dataObjectsStorage.getDataObject(o).then(function(i){ -//if no key exists, create a new one if is the reporter of dataObject -if(!s&&i.reporter&&i.reporter===e.from){var a=t.crypto.generateRandom();t.dataObjectSessionKeys[o]={sessionKey:a,isToEncrypt:!0};var u=(0,l.chatkeysToStringCloner)(t.dataObjectSessionKeys); -//TODO: check if this does not need to be stored -t.storageManager.set("dataObjectSessionKeys",0,u).catch(function(e){n("On encryptMessage from method storageManager.set error: "+e)}),s=t.dataObjectSessionKeys[o]} -//check if there is already a session key for the chat room -if(s) -// and if is to apply encryption, encrypt the messages -if(s.isToEncrypt){var c=t.crypto.generateIV(),f=(0,l.stringify)(c),d=(0,l.stringify)(e.body.value);t.crypto.encryptAES(s.sessionKey,d,c).then(function(n){delete e.body.identity.assertion,//TODO: Check why assertion is comming on the message! -delete e.body.identity.expires;//TODO: Check why expires is comming on the message! -var i=t._filterMessageToHash(e,d+f);t.crypto.hashHMAC(s.sessionKey,i).then(function(t){ -// log.log('hash ', hash); -var i={value:(0,l.encode)(n),iv:(0,l.encode)(c),hash:(0,l.encode)(t)};e.body.value=(0,l.stringify)(i),r(e)})})}else r(e);else n("Data object key could not be defined: Failed to decrypt message ")}).catch(function(e){n("On encryptMessage from method dataObjectsStorage.getDataObject error: "+e)})}).catch(function(e){n("On encryptMessage from method storageManager.get error: "+e)})})}},{key:"encryptDataObject",value:function(e,t){var r=this;return new i.default(function(n,i){y.info("dataObject value to encrypt: ",e);var o=(0,l.parseMessageURL)(t);r.storageManager.get("dataObjectSessionKeys").then(function(t){t=(0,l.chatkeysToArrayCloner)(t||{});var s=t?t[o]:null; -//check if there is already a session key for the chat room -if(!s)return i("No dataObjectKey for this dataObjectURL:",o); -// and if is to apply encryption, encrypt the messages -if(!s.isToEncrypt)return y.info("The dataObject is not encrypted"),n(e);var a=r.crypto.generateIV();r.crypto.encryptAES(s.sessionKey,(0,l.stringify)(e),a).then(function(e){var t={value:(0,l.encode)(e),iv:(0,l.encode)(a)}; -//log.log('encrypted dataObject', newValue); -return n(t)}).catch(function(e){i("On encryptDataObject from method encryptAES error: "+e)})}).catch(function(e){i("On encryptDataObject from method storageManager.get error: "+e)})})}},{key:"decryptMessage",value:function(e){var t=this; -// log.log('decryptMessage:message', message); -return new i.default(function(r,n){var i="handshake"===e.type;t._isToDecrypt(e).then(function(o){ -//if is not to apply encryption, then returns resolve -if(!o)return r(e);var s=(0,l.parseMessageURL)(e.to),a=(0,l.isDataObjectURL)(s),u="hyperty"===(0,l.divideURL)(e.from).type,c="hyperty"===(0,l.divideURL)(e.to).type;if("update"===e.type)return r(e); -//is is hyperty to hyperty communication -if(u&&c){ -// log.log('decrypt hyperty to hyperty'); -var f=t._registry.getHypertyOwner(e.to);if(f){var d=t.chatKeys[e.to+"<->"+e.from];if(d||(d=t._newChatCrypto(e,f,"decrypt"),t.chatKeys[e.to+"<->"+e.from]=d),d.authenticated&&!i){var p=(0,l.decode)(e.body.value),h=(0,l.decodeToUint8Array)(p.iv),v=(0,l.decodeToUint8Array)(p.value),g=(0,l.decodeToUint8Array)(p.hash);t.crypto.decryptAES(d.keys.hypertyToSessionKey,v,h).then(function(n){ -// log.log('decrypted value ', decryptedData); -e.body.value=n;var i=t._filterMessageToHash(e,n+h);t.crypto.verifyHMAC(d.keys.hypertyToHashKey,i,g).then(function(t){ -//log.log('result of hash verification! ', result); -e.body.assertedIdentity=!0,r(e)})})}else i?t._doHandShakePhase(e,d).then(function(r){ -//if it was started by doMutualAuthentication then ends the protocol -"handShakeEnd"===r||(t.chatKeys[e.to+"<->"+e.from]=r.chatKeys,t._messageBus.postMessage(r.message))}):n("wrong message do decrypt")}else n("error on decrypt message")}else u&&a? -// log.log('dataObject value to decrypt: ', message.body); -t.storageManager.get("dataObjectSessionKeys").then(function(i){i=(0,l.chatkeysToArrayCloner)(i||{});var o=i?i[s]:null;if(o) -//check if is to apply encryption -if(o.isToEncrypt){var a=(0,l.parse)(e.body.value),u=(0,l.decodeToUint8Array)(a.iv),c=(0,l.decodeToUint8Array)(a.value),f=(0,l.decodeToUint8Array)(a.hash);t.crypto.decryptAES(o.sessionKey,c,u).then(function(i){var s=(0,l.parse)(i); -// log.log('decrypted Value,', parsedValue); -e.body.value=s;var a=t._filterMessageToHash(e,(0,l.stringify)(s)+(0,l.stringify)(u));t.crypto.verifyHMAC(o.sessionKey,a,f).then(function(t){y.log("Received message HMAC result",t),e.body.assertedIdentity=!0,r(e)}).catch(function(e){n("Message HMAC is invalid: "+e)})})}else e.body.assertedIdentity=!0,r(e);else e.body.assertedIdentity=!0,r(e)}):n("wrong message to decrypt")})})}},{key:"decryptDataObject",value:function(e,t){var r=this;return new i.default(function(n,i){ -//if is not to apply encryption, then returns resolve -if(!r.isToUseEncryption) -// log.log('decryption disabled'); -return n(e);var o=(0,l.parseMessageURL)(t); -// log.log('dataObject value to decrypt: ', dataObject); -r.storageManager.get("dataObjectSessionKeys").then(function(t){t=(0,l.chatkeysToArrayCloner)(t);var s=t?t[o]:null;if(!s)return i("No dataObjectKey for this dataObjectURL:",o); -//check if is to apply encryption -if(!s.isToEncrypt) -// log.log('The dataObject is not encrypted'); -return n(e);var a=(0,l.decodeToUint8Array)(e.iv),u=(0,l.decodeToUint8Array)(e.value);r.crypto.decryptAES(s.sessionKey,u,a).then(function(e){var t=(0,l.parse)(e),r={value:t,iv:(0,l.encode)(a)}; -// log.log('decrypted dataObject,', newValue); -return n(r)}).catch(function(e){i("On decryptDataObject from method encryptAES error: "+e)})})})}},{key:"_doMutualAuthenticationPhase1",value:function(e){var t=this;return new i.default(function(r,n){var i=e.to.split("/"); -//let subsIndex = to.indexOf('subscription'); -//let isDataObjectSubscription = subsIndex !== -1; -i.pop();var o=i[0]+"//"+i[2]+"/"+i[3];t._doMutualAuthenticationPhase2(o,e.body.subscriber).then(function(){t._registry.registerSubscriber(o,e.body.subscriber),r()},function(e){n(e)})})}},{key:"_doMutualAuthenticationPhase2",value:function(e,t){y.info("doMutualAuthentication:sender ",e),y.info("doMutualAuthentication:receiver ",t);var r=this;return new i.default(function(n,i){var o=void 0,s=r._registry.getReporterURLSynchonous(e);s&&(o=e,e=s);var a={to:t,from:e,callback:void 0,body:{handshakePhase:"startHandShake",ignore:"ignoreMessage"}};if(!e||!t)return i("sender or receiver missing on doMutualAuthentication");var u=r.chatKeys[e+"<->"+t],c=r._registry.getHypertyOwner(e);if(c){if(!u){ -// callback to resolve when finish the mutual authentication -var f=function(e){ -// log.log('callback value:', value); -n(e)};a.callback=f,a.dataObjectURL=o,u=r._newChatCrypto(a,c),r.chatKeys[e+"<->"+t]=u}if(u.authenticated){var l={to:e,from:t};u.dataObjectURL=o,r._sendReporterSessionKey(l,u).then(function(e){r._messageBus.postMessage(e.message),n("exchange of chat sessionKey initiated")}).catch(function(e){i("On doMutualAuthentication from method _sendReporterSessionKey error: "+e)})}else r._doHandShakePhase(a,u)}else i("Mutual authentication error: Hyperty owner could not be resolved")})}},{key:"_sendReporterSessionKey",value:function(e,t){var r=this;return new i.default(function(n,i){var o=r.dataObjectSessionKeys[t.dataObjectURL],s=void 0,a=void 0,u=void 0,c=void 0,f={}; -//if there is not yet a session Key, generates a new one -if(o)u=o.sessionKey;else{u=r.crypto.generateRandom(),r.dataObjectSessionKeys[t.dataObjectURL]={sessionKey:u,isToEncrypt:!0};var d=(0,l.chatkeysToStringCloner)(r.dataObjectSessionKeys);r.storageManager.set("dataObjectSessionKeys",0,d).catch(function(e){i("On _sendReporterSessionKey from method storageManager.set(dataObjectSessionKeys...) error: "+e)})}try{a=(0,l.encode)({value:(0,l.encode)(u),dataObjectURL:t.dataObjectURL})}catch(e){return i("On _sendReporterSessionKey from method storageManager.set error valueToEncrypt: "+e)}c=r.crypto.generateIV(),f.iv=(0,l.encode)(c),r.crypto.encryptAES(t.keys.hypertyFromSessionKey,a,c).then(function(n){s={type:"handshake",to:e.from,from:e.to,body:{handshakePhase:"reporterSessionKey",value:(0,l.encode)(n)}};var i=r._filterMessageToHash(s,a+c,t.hypertyFrom.messageInfo);return r.crypto.hashHMAC(t.keys.hypertyFromHashKey,i)}).then(function(e){var r=(0,l.encode)({value:s.body.value,hash:(0,l.encode)(e),iv:f.iv});s.body.value=r,n({message:s,chatKeys:t})}).catch(function(e){i("On _sendReporterSessionKey from chained promises encryptAES error: "+e)})})}},{key:"_resolveDomain",value:function(e){return e?"domain-idp://"+e:"domain-idp://google.com"}},{key:"_doHandShakePhase",value:function(e,t){ -// log('_doHandShakePhase:dataObject', message); -// log('_doHandShakePhase:chatKeys', chatKeys); -var r=this;return new i.default(function(n,i){var o=e.body.handshakePhase,s=void 0,a=void 0,u={},c=void 0,f=void 0;switch(y.info("handshake phase: ",o),o){case"startHandShake":t.keys.fromRandom=r.crypto.generateRandom();var d={type:"handshake",to:e.to,from:e.from,body:{handshakePhase:"senderHello",value:(0,l.encode)(t.keys.fromRandom)}};t.handshakeHistory.senderHello=r._filterMessageToHash(d,void 0,t.hypertyFrom.messageInfo), -// check if was the encrypt function or the mutual authentication that request the -// start of the handShakePhase. -t.initialMessage?n({message:d,chatKeys:t}):(r.chatKeys[e.from+"<->"+e.to]=t,r._messageBus.postMessage(d));break;case"senderHello":y.log("senderHello"),t.handshakeHistory.senderHello=r._filterMessageToHash(e),t.keys.fromRandom=(0,l.decodeToUint8Array)(e.body.value),t.keys.toRandom=r.crypto.generateRandom();var p={type:"handshake",to:e.from,from:e.to,body:{handshakePhase:"receiverHello",value:(0,l.encode)(t.keys.toRandom)}};t.handshakeHistory.receiverHello=r._filterMessageToHash(p,void 0,t.hypertyFrom.messageInfo),n({message:p,chatKeys:t});break;case"receiverHello":y.log("receiverHello"),r.getMyPrivateKey().then(function(n){return f=n,t.handshakeHistory.receiverHello=r._filterMessageToHash(e),r._idm.validateAssertion(e.body.identity.assertion,void 0,e.body.identity.idp.domain)}).then(function(n){ -//TODO remove later this verification as soon as all the IdP proxy are updated in the example -var i="string"==typeof n.contents?n.contents:n.contents.nonce,o=(0,l.parseToUint8Array)(i),s=r.crypto.generatePMS(),a=e.body.value;t.hypertyTo.assertion=e.body.identity.assertion,t.hypertyTo.publicKey=o,t.hypertyTo.userID=e.body.identity.userProfile.userURL,t.keys.toRandom=(0,l.decodeToUint8Array)(a),t.keys.premasterKey=s;var u=r.crypto.concatPMSwithRandoms(s,t.keys.toRandom,t.keys.fromRandom);return r.crypto.generateMasterSecret(u,"messageHistoric"+t.keys.toRandom+t.keys.fromRandom)}).then(function(e){return t.keys.masterKey=e,r.crypto.generateKeys(e,"key expansion"+t.keys.toRandom+t.keys.fromRandom)}).then(function(n){t.keys.hypertyToSessionKey=new Uint8Array(n[0]),t.keys.hypertyFromSessionKey=new Uint8Array(n[1]),t.keys.hypertyToHashKey=new Uint8Array(n[2]),t.keys.hypertyFromHashKey=new Uint8Array(n[3]),s=r.crypto.generateIV(),u.iv=(0,l.encode)(s);var i={type:"handshake",to:e.from,from:e.to,body:{handshakePhase:"senderCertificate"}}; -// hash the value and the iv -return c=r._filterMessageToHash(i,"ok"+s,t.hypertyFrom.messageInfo),r.crypto.hashHMAC(t.keys.hypertyFromHashKey,c)}).then(function(e){ -//encrypt the data -return u.hash=(0,l.encode)(e),r.crypto.encryptAES(t.keys.hypertyFromSessionKey,"ok",s)}).then(function(e){return u.symetricEncryption=(0,l.encode)(e),r.crypto.encryptRSA(t.hypertyTo.publicKey,t.keys.premasterKey)}).then(function(n){u.assymetricEncryption=(0,l.encode)(n);var i={type:"handshake",to:e.from,from:e.to,body:{handshakePhase:"senderCertificate"}},o=r._filterMessageToHash(i,t.keys.premasterKey,t.hypertyFrom.messageInfo);return r.crypto.signRSA(f,(0,l.encode)(t.handshakeHistory)+(0,l.encode)(o))}).then(function(i){u.signature=(0,l.encode)(i);var o={type:"handshake",to:e.from,from:e.to,body:{handshakePhase:"senderCertificate",value:(0,l.encode)(u)}};t.handshakeHistory.senderCertificate=r._filterMessageToHash(o,"ok"+s,t.hypertyFrom.messageInfo),n({message:o,chatKeys:t})},function(e){return i(e)});break;case"senderCertificate":y.log("senderCertificate");var h=(0,l.decode)(e.body.value);r.getMyPrivateKey().then(function(t){return f=t,r._idm.validateAssertion(e.body.identity.assertion,void 0,e.body.identity.idp.domain)}).then(function(n){var i=(0,l.decodeToUint8Array)(h.assymetricEncryption),o="string"==typeof n.contents?n.contents:n.contents.nonce,s=(0,l.parseToUint8Array)(o);return t.hypertyTo.assertion=e.body.identity.assertion,t.hypertyTo.publicKey=s,t.hypertyTo.userID=e.body.identity.userProfile.userURL,r.crypto.decryptRSA(f,i)},function(e){ -// log.log(error); -i("Error during authentication of identity: ",e.message)}).then(function(n){t.keys.premasterKey=new Uint8Array(n);var i=(0,l.decodeToUint8Array)(h.signature),o=r._filterMessageToHash(e,t.keys.premasterKey);return r.crypto.verifyRSA(t.hypertyTo.publicKey,(0,l.encode)(t.handshakeHistory)+(0,l.encode)(o),i)}).then(function(e){ -//log.log('SenderCertificate - signature validation result ', signValidationResult); -var n=r.crypto.concatPMSwithRandoms(t.keys.premasterKey,t.keys.toRandom,t.keys.fromRandom);return r.crypto.generateMasterSecret(n,"messageHistoric"+t.keys.toRandom+t.keys.fromRandom)}).then(function(e){return t.keys.masterKey=e,r.crypto.generateKeys(e,"key expansion"+t.keys.toRandom+t.keys.fromRandom)}).then(function(e){t.keys.hypertyFromSessionKey=new Uint8Array(e[0]),t.keys.hypertyToSessionKey=new Uint8Array(e[1]),t.keys.hypertyFromHashKey=new Uint8Array(e[2]),t.keys.hypertyToHashKey=new Uint8Array(e[3]),s=(0,l.decodeToUint8Array)(h.iv);var n=(0,l.decodeToUint8Array)(h.symetricEncryption);return r.crypto.decryptAES(t.keys.hypertyToSessionKey,n,s)}).then(function(n){ -// log.log('decryptedData', decryptedData); -t.handshakeHistory.senderCertificate=r._filterMessageToHash(e,n+s);var i=(0,l.decodeToUint8Array)(h.hash);return c=r._filterMessageToHash(e,n+s),r.crypto.verifyHMAC(t.keys.hypertyToHashKey,c,i)}).then(function(n){ -// log.log('result of hash verification ', verifiedHash); -var i={type:"handshake",to:e.from,from:e.to,body:{handshakePhase:"receiverFinishedMessage"}}; -//log.log('TIAGO: doHandShakePhase verifiedHash'); -return s=r.crypto.generateIV(),u.iv=(0,l.encode)(s),c=r._filterMessageToHash(i,"ok!"+s,t.hypertyFrom.messageInfo),r.crypto.hashHMAC(t.keys.hypertyFromHashKey,c)}).then(function(e){return u.hash=(0,l.encode)(e),r.crypto.encryptAES(t.keys.hypertyFromSessionKey,"ok!",s)}).then(function(i){u.value=(0,l.encode)(i);var o={type:"handshake",to:e.from,from:e.to,body:{handshakePhase:"receiverFinishedMessage",value:(0,l.encode)(u)}};t.handshakeHistory.receiverFinishedMessage=r._filterMessageToHash(o,"ok!"+s,t.hypertyFrom.messageInfo),t.authenticated=!0,n({message:o,chatKeys:t})}).catch(function(e){i("On _doHandShakePhase from senderCertificate error: "+e)});break;case"receiverFinishedMessage":t.authenticated=!0,u=(0,l.decode)(e.body.value),s=(0,l.decodeToUint8Array)(u.iv);var v=(0,l.decodeToUint8Array)(u.value);a=(0,l.decodeToUint8Array)(u.hash),r.crypto.decryptAES(t.keys.hypertyToSessionKey,v,s).then(function(o){ -// log.log('decryptedData', decryptedData); -t.handshakeHistory.receiverFinishedMessage=r._filterMessageToHash(e,o+s);var u=r._filterMessageToHash(e,o+s);r.crypto.verifyHMAC(t.keys.hypertyToHashKey,u,a).then(function(o){ -// check if there was an initial message that was blocked and send it -if(t.initialMessage){var s={type:"create",to:e.from,from:e.to,body:{value:t.initialMessage.body.value}};n({message:s,chatKeys:t})}else r._sendReporterSessionKey(e,t).then(function(e){n(e)}).catch(function(e){i("On _doHandShakePhase from receiverFinishedMessage error: "+e)})})});break;case"reporterSessionKey":y.log("reporterSessionKey");var g=(0,l.decode)(e.body.value);a=(0,l.decodeToUint8Array)(g.hash),s=(0,l.decodeToUint8Array)(g.iv);var b=(0,l.decodeToUint8Array)(g.value),m=void 0,_=void 0,R=void 0,w=void 0; -//log.log('[IdentityModule reporterSessionKey] - decryptAES: ', chatKeys.keys.hypertyToSessionKey, encryptedValue, iv); -r.crypto.decryptAES(t.keys.hypertyToSessionKey,b,s).then(function(n){m=(0,l.decode)(n),_=(0,l.decodeToUint8Array)(m.value),R=m.dataObjectURL;var i=r._filterMessageToHash(e,n+s);return r.crypto.verifyHMAC(t.keys.hypertyToHashKey,i,a)}).then(function(e){ -// log.log('hash successfully validated ', hashResult); -r.dataObjectSessionKeys[R]={sessionKey:_,isToEncrypt:!0};var n=(0,l.chatkeysToStringCloner)(r.dataObjectSessionKeys);return r.storageManager.set("dataObjectSessionKeys",0,n).catch(function(e){i("On _sendReporterSessionKey from method reporterSessionKey error: "+e)}),s=r.crypto.generateIV(),u.iv=(0,l.encode)(s),r.crypto.encryptAES(t.keys.hypertyFromSessionKey,"ok!!",s)}).then(function(n){w={type:"handshake",to:e.from,from:e.to,body:{handshakePhase:"receiverAcknowledge"}},u.value=(0,l.encode)(n);var i=r._filterMessageToHash(w,"ok!!"+s,t.hypertyFrom.messageInfo);return r.crypto.hashHMAC(t.keys.hypertyFromHashKey,i)}).then(function(e){var r=(0,l.encode)({value:u.value,hash:(0,l.encode)(e),iv:u.iv});w.body.value=r,n({message:w,chatKeys:t})}).catch(function(e){i("On _doHandShakePhase from reporterSessionKey error: "+e)});break;case"receiverAcknowledge":y.log("receiverAcknowledge");var S=(0,l.decode)(e.body.value),P=(0,l.decodeToUint8Array)(S.hash);s=(0,l.decodeToUint8Array)(S.iv);var O=(0,l.decodeToUint8Array)(S.value);r.crypto.decryptAES(t.keys.hypertyToSessionKey,O,s).then(function(n){var i=r._filterMessageToHash(e,n+s);return r.crypto.verifyHMAC(t.keys.hypertyToHashKey,i,P)}).then(function(e){ -// log.log('hashResult ', hashResult); -var r=t.callback;r&&r("handShakeEnd"),n("handShakeEnd")}).catch(function(e){i("On _doHandShakePhase from receiverAcknowledge error: "+e)});break;default:i(e)}})}},{key:"_filterMessageToHash",value:function(e,t,r){return{type:e.type,from:e.from,to:e.to,body:{identity:r||e.body.identity,value:t||e.body.value,handshakePhase:e.body.handshakePhase}}}},{key:"_newChatCrypto",value:function(e,t,r){var n=this,i=r?e.to:e.from,o=r?e.from:e.to,s=n._idm.getIdentity(t);return{hypertyFrom:{hyperty:i,userID:s.userProfile.userURL, -//privateKey: "getMyPublicKey", -//publicKey: "getMyPrivateKey", -assertion:s.assertion,messageInfo:s},hypertyTo:{hyperty:o,userID:void 0,publicKey:void 0,assertion:void 0},keys:{hypertyToSessionKey:void 0,hypertyFromSessionKey:void 0,hypertyToHashKey:void 0,hypertyFromHashKey:void 0,toRandom:void 0,fromRandom:void 0,premasterKey:void 0,masterKey:void 0},handshakeHistory:{senderHello:void 0,receiverHello:void 0,senderCertificate:void 0,receiverFinishedMessage:void 0},initialMessage:e.body.ignore?void 0:e,callback:e.callback,authenticated:!1,dataObjectURL:e.dataObjectURL}}},{key:"getMyPublicKey",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userDefaultKeyRef,t=this;return new i.default(function(r,n){t.storageManager.get(e).then(function(i){if(i)return r(i.public);t._generateAndStoreNewAsymetricKey(e).then(function(e){r(e.public)}).catch(function(e){y.error("[getMyPublicKey:_generateAndStoreNewAsymetricKey:err]: "+e.message),n(e)})}).catch(function(e){y.error("[getMyPublicKey:storageManager:err]: "+e.message),n(e)})})}},{key:"getMyPrivateKey",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userDefaultKeyRef,t=this;return new i.default(function(r,n){t.storageManager.get(e).then(function(i){if(i)return r(i.private);t._generateAndStoreNewAsymetricKey(e).then(function(e){r(e.private)}).catch(function(e){y.error("[getMyPrivateKey:_generateAndStoreNewAsymetricKey:err]: "+e.message),n(e)})}).catch(function(e){y.error("[getMyPrivateKey:storageManager:err]: "+e.message),n(e)})})}},{key:"_generateAndStoreNewAsymetricKey",value:function(e){var t=this,r=void 0;return new i.default(function(n,i){t.crypto.generateRSAKeyPair().then(function(n){return y.log("_generateAndStoreNewAsymetricKey:userAsymmetricKeyGenerated",n),r=n,t.storageManager.set(e,0,n)}).then(function(e){y.log("_generateAndStoreNewAsymetricKey:userAsymmetricKeySuccess",e),n(r)}).catch(function(e){y.error("[_generateAndStoreNewAsymetricKey:err]: "+e.message),i(e)})})}},{key:"messageBus",get:function(){return this._messageBus},set:function(e){var t=this;t._messageBus=e,t.addCryptoGUIListeners()}},{key:"coreDiscovery",get:function(){return this._coreDiscovery},set:function(e){this._coreDiscovery=e}},{key:"registry",get:function(){return this._registry},set:function(e){this._registry=e}}]),CryptoManager}();/* -const nodeJSKeyPairPopulate = { public: [48, 130, 1, 34, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 1, 5, 0, 3, 130, 1, 15, 0, 48, 130, 1, 10, 2, 130, 1, 1, 0, 228, 43, 101, 12, 121, 7, 157, 71, 81, 58, 219, 32, 10, 108, 193, 179, 212, 116, 255, 59, 217, 32, 161, 201, 53, 171, 226, 199, 137, 202, 171, 60, 82, 53, 125, 62, 177, 126, 165, 24, 141, 30, 15, 226, 59, 107, 34, 7, 13, 149, 112, 125, 10, 230, 191, 156, 164, 177, 10, 185, 13, 66, 3, 217, 166, 244, 90, 119, 111, 27, 145, 104, 71, 189, 166, 226, 255, 133, 83, 151, 231, 101, 151, 89, 22, 19, 65, 154, 10, 53, 208, 218, 252, 219, 37, 50, 212, 86, 145, 107, 132, 90, 233, 202, 227, 108, 114, 141, 29, 73, 187, 31, 13, 234, 0, 232, 24, 191, 35, 149, 179, 138, 214, 159, 245, 162, 148, 221, 118, 17, 105, 89, 151, 146, 209, 55, 236, 61, 143, 233, 228, 10, 115, 8, 81, 197, 45, 123, 187, 223, 176, 254, 165, 69, 143, 29, 100, 114, 17, 130, 226, 223, 33, 11, 240, 81, 61, 172, 191, 157, 246, 202, 87, 131, 221, 88, 48, 127, 159, 119, 160, 152, 117, 61, 253, 174, 65, 214, 203, 218, 63, 50, 78, 160, 181, 221, 211, 128, 70, 178, 191, 170, 0, 13, 122, 173, 12, 203, 252, 4, 184, 225, 252, 7, 62, 96, 116, 15, 216, 158, 55, 85, 48, 16, 9, 206, 119, 74, 112, 243, 136, 84, 184, 223, 254, 101, 91, 61, 10, 91, 85, 192, 147, 144, 57, 29, 66, 238, 199, 244, 193, 194, 150, 232, 200, 107, 2, 3, 1, 0, 1], - private: [48, 130, 4, 191, 2, 1, 0, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 1, 5, 0, 4, 130, 4, 169, 48, 130, 4, 165, 2, 1, 0, 2, 130, 1, 1, 0, 228, 43, 101, 12, 121, 7, 157, 71, 81, 58, 219, 32, 10, 108, 193, 179, 212, 116, 255, 59, 217, 32, 161, 201, 53, 171, 226, 199, 137, 202, 171, 60, 82, 53, 125, 62, 177, 126, 165, 24, 141, 30, 15, 226, 59, 107, 34, 7, 13, 149, 112, 125, 10, 230, 191, 156, 164, 177, 10, 185, 13, 66, 3, 217, 166, 244, 90, 119, 111, 27, 145, 104, 71, 189, 166, 226, 255, 133, 83, 151, 231, 101, 151, 89, 22, 19, 65, 154, 10, 53, 208, 218, 252, 219, 37, 50, 212, 86, 145, 107, 132, 90, 233, 202, 227, 108, 114, 141, 29, 73, 187, 31, 13, 234, 0, 232, 24, 191, 35, 149, 179, 138, 214, 159, 245, 162, 148, 221, 118, 17, 105, 89, 151, 146, 209, 55, 236, 61, 143, 233, 228, 10, 115, 8, 81, 197, 45, 123, 187, 223, 176, 254, 165, 69, 143, 29, 100, 114, 17, 130, 226, 223, 33, 11, 240, 81, 61, 172, 191, 157, 246, 202, 87, 131, 221, 88, 48, 127, 159, 119, 160, 152, 117, 61, 253, 174, 65, 214, 203, 218, 63, 50, 78, 160, 181, 221, 211, 128, 70, 178, 191, 170, 0, 13, 122, 173, 12, 203, 252, 4, 184, 225, 252, 7, 62, 96, 116, 15, 216, 158, 55, 85, 48, 16, 9, 206, 119, 74, 112, 243, 136, 84, 184, 223, 254, 101, 91, 61, 10, 91, 85, 192, 147, 144, 57, 29, 66, 238, 199, 244, 193, 194, 150, 232, 200, 107, 2, 3, 1, 0, 1, 2, 130, 1, 0, 103, 244, 137, 118, 116, 82, 14, 203, 102, 107, 253, 88, 12, 199, 222, 60, 243, 136, 86, 157, 74, 224, 190, 53, 113, 57, 157, 250, 49, 130, 96, 31, 252, 136, 152, 70, 143, 17, 215, 96, 103, 51, 18, 35, 141, 212, 210, 205, 9, 216, 83, 70, 245, 71, 138, 119, 112, 229, 164, 176, 9, 37, 81, 161, 193, 154, 68, 249, 115, 106, 201, 6, 12, 225, 144, 126, 141, 210, 141, 242, 128, 159, 221, 163, 222, 21, 233, 230, 167, 206, 59, 24, 250, 233, 81, 122, 102, 26, 6, 233, 72, 133, 47, 77, 155, 238, 86, 6, 139, 24, 131, 163, 179, 112, 48, 247, 142, 6, 207, 204, 173, 223, 140, 199, 150, 95, 123, 152, 202, 155, 131, 238, 62, 96, 133, 4, 217, 51, 121, 30, 38, 178, 189, 216, 44, 35, 241, 93, 7, 62, 90, 111, 216, 66, 209, 243, 128, 234, 141, 84, 135, 181, 13, 38, 220, 114, 245, 240, 178, 95, 220, 206, 11, 186, 234, 213, 66, 121, 83, 68, 89, 75, 46, 183, 145, 183, 147, 160, 215, 118, 198, 125, 181, 146, 30, 251, 58, 87, 47, 209, 237, 97, 24, 47, 179, 6, 110, 242, 99, 150, 226, 148, 198, 174, 146, 101, 213, 87, 178, 10, 223, 105, 18, 56, 53, 22, 212, 158, 170, 176, 51, 86, 145, 125, 124, 44, 9, 85, 19, 144, 246, 170, 78, 124, 30, 32, 12, 166, 174, 139, 77, 63, 173, 82, 10, 153, 2, 129, 129, 0, 248, 18, 143, 246, 137, 136, 145, 219, 178, 39, 27, 94, 64, 90, 47, 163, 114, 60, 63, 187, 131, 143, 244, 16, 42, 128, 231, 117, 92, 98, 219, 155, 62, 107, 252, 17, 245, 45, 160, 225, 103, 142, 72, 36, 193, 150, 235, 214, 175, 62, 212, 56, 45, 9, 0, 60, 114, 107, 134, 228, 204, 131, 131, 214, 94, 201, 148, 159, 99, 139, 181, 13, 119, 38, 30, 107, 166, 165, 203, 43, 34, 20, 207, 171, 32, 58, 167, 62, 196, 153, 103, 204, 213, 247, 48, 111, 227, 59, 95, 97, 194, 187, 53, 10, 247, 108, 58, 86, 28, 29, 113, 8, 110, 171, 220, 245, 11, 82, 233, 223, 91, 68, 166, 117, 174, 187, 62, 77, 2, 129, 129, 0, 235, 118, 2, 105, 239, 212, 30, 104, 157, 41, 109, 11, 248, 152, 22, 236, 97, 40, 153, 131, 228, 5, 86, 187, 113, 126, 144, 76, 141, 79, 110, 250, 146, 152, 49, 58, 156, 201, 176, 92, 189, 209, 30, 112, 108, 175, 204, 204, 247, 164, 46, 129, 239, 98, 127, 49, 145, 218, 63, 193, 124, 174, 18, 98, 201, 99, 154, 162, 138, 78, 159, 253, 3, 248, 3, 209, 36, 239, 193, 155, 193, 5, 19, 236, 37, 78, 118, 135, 250, 199, 7, 141, 248, 120, 36, 136, 93, 98, 174, 60, 18, 215, 93, 174, 107, 141, 116, 145, 167, 221, 210, 169, 247, 67, 254, 222, 161, 134, 63, 221, 90, 87, 42, 99, 227, 81, 173, 151, 2, 129, 129, 0, 133, 23, 168, 103, 83, 232, 146, 160, 181, 23, 40, 38, 204, 13, 214, 203, 49, 41, 195, 227, 189, 181, 8, 243, 119, 106, 75, 67, 250, 250, 10, 234, 98, 118, 26, 250, 35, 121, 132, 124, 10, 76, 26, 198, 165, 154, 108, 19, 117, 88, 23, 17, 192, 143, 184, 177, 181, 141, 157, 4, 185, 248, 193, 77, 204, 243, 7, 170, 240, 4, 111, 113, 183, 0, 27, 136, 20, 19, 149, 74, 33, 241, 218, 108, 236, 80, 171, 148, 16, 116, 97, 109, 83, 74, 88, 145, 94, 239, 102, 192, 19, 114, 207, 5, 128, 51, 111, 164, 237, 86, 154, 99, 52, 197, 62, 57, 182, 6, 152, 245, 61, 137, 58, 105, 159, 2, 84, 109, 2, 129, 129, 0, 226, 67, 111, 132, 95, 91, 101, 177, 63, 189, 44, 53, 193, 184, 92, 230, 223, 98, 133, 74, 209, 86, 52, 7, 65, 195, 206, 100, 81, 178, 144, 65, 167, 151, 42, 79, 89, 149, 18, 173, 188, 21, 244, 251, 49, 230, 41, 150, 153, 46, 35, 38, 231, 99, 174, 56, 115, 32, 215, 253, 85, 147, 108, 197, 147, 34, 236, 216, 222, 177, 57, 90, 136, 114, 207, 48, 46, 31, 90, 220, 18, 58, 143, 239, 111, 214, 27, 95, 6, 36, 53, 229, 62, 108, 45, 39, 1, 30, 47, 178, 56, 164, 206, 56, 42, 208, 46, 193, 61, 31, 147, 45, 147, 23, 187, 22, 50, 255, 111, 229, 132, 199, 152, 75, 142, 136, 209, 151, 2, 129, 129, 0, 165, 56, 232, 76, 55, 57, 240, 159, 92, 207, 220, 143, 130, 30, 57, 234, 251, 172, 171, 180, 54, 159, 229, 96, 246, 73, 112, 146, 75, 157, 242, 201, 161, 218, 37, 176, 35, 170, 50, 90, 148, 102, 191, 199, 239, 174, 78, 72, 67, 85, 199, 45, 149, 145, 132, 161, 212, 33, 157, 75, 216, 79, 39, 233, 18, 210, 255, 26, 72, 229, 239, 44, 12, 147, 158, 176, 192, 95, 126, 32, 175, 23, 226, 131, 139, 197, 175, 193, 62, 8, 151, 252, 68, 154, 94, 89, 189, 125, 90, 30, 36, 175, 73, 230, 194, 13, 233, 247, 123, 60, 241, 47, 171, 51, 189, 112, 111, 213, 141, 89, 70, 249, 236, 63, 236, 110, 115, 208]}; -*/ -t.default=new h,e.exports=t.default},/* 101 */ -/***/ -function(e,t,r){var n=r(6),i=r(4).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},/* 102 */ -/***/ -function(e,t,r){var n=r(4),i=r(30),o=r(49),s=r(149),a=r(11).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},/* 103 */ -/***/ -function(e,t,r){var n=r(78)("keys"),i=r(48);e.exports=function(e){return n[e]||(n[e]=i(e))}},/* 104 */ -/***/ -function(e,t){ -// IE 8- don't enum bug keys -e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},/* 105 */ -/***/ -function(e,t,r){var n=r(4).document;e.exports=n&&n.documentElement},/* 106 */ -/***/ -function(e,t,r){ -// Works with __proto__ only. Old v8 can't work with null proto objects. -/* eslint-disable no-proto */ -var n=r(6),i=r(3),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?// eslint-disable-line -function(e,t,n){try{n=r(27)(Function.call,r(25).f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},/* 107 */ -/***/ -function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},/* 108 */ -/***/ -function(e,t,r){var n=r(6),i=r(106).set;e.exports=function(e,t,r){var o,s=t.constructor;return s!==r&&"function"==typeof s&&(o=s.prototype)!==r.prototype&&n(o)&&i&&i(e,o),e}},/* 109 */ -/***/ -function(e,t,r){"use strict";var n=r(33),i=r(32);e.exports=function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},/* 110 */ -/***/ -function(e,t){ -// 20.2.2.28 Math.sign(x) -e.exports=Math.sign||function(e){ -// eslint-disable-next-line no-self-compare -return 0==(e=+e)||e!=e?e:e<0?-1:1}},/* 111 */ -/***/ -function(e,t){ -// 20.2.2.14 Math.expm1(x) -var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},/* 112 */ -/***/ -function(e,t,r){var n=r(33),i=r(32); -// true -> String#at -// false -> String#codePointAt -e.exports=function(e){return function(t,r){var o,s,a=String(i(t)),u=n(r),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},/* 113 */ -/***/ -function(e,t,r){"use strict";var n=r(49),i=r(0),o=r(19),s=r(18),a=r(17),u=r(63),c=r(114),f=r(61),l=r(26),d=r(8)("iterator"),p=!([].keys&&"next"in[].keys()),y=function(){return this};e.exports=function(e,t,r,h,v,g,b){c(r,t,h);var m,_,R,w=function(e){if(!p&&e in M)return M[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",P="values"==v,O=!1,M=e.prototype,k=M[d]||M["@@iterator"]||v&&M[v],L=!p&&k||w(v),x=v?P?w("entries"):L:void 0,E="Array"==t?M.entries||k:k;if( -// Fix native -E&&(R=l(E.call(new e)))!==Object.prototype&&R.next&&( -// Set @@toStringTag to native iterators -f(R,S,!0), -// fix for some old engines -n||a(R,d)||s(R,d,y)), -// fix Array#{values, @@iterator}.name in V8 / FF -P&&k&&"values"!==k.name&&(O=!0,L=function(){return k.call(this)}), -// Define iterator -n&&!b||!p&&!O&&M[d]||s(M,d,L), -// Plug for library -u[t]=L,u[S]=y,v)if(m={values:P?L:w("values"),keys:g?L:w("keys"),entries:x},b)for(_ in m)_ in M||o(M,_,m[_]);else i(i.P+i.F*(p||O),t,m);return m}},/* 114 */ -/***/ -function(e,t,r){"use strict";var n=r(52),i=r(47),o=r(61),s={}; -// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -r(18)(s,r(8)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(s,{next:i(1,r)}),o(e,t+" Iterator")}},/* 115 */ -/***/ -function(e,t,r){ -// helper for String#{startsWith, endsWith, includes} -var n=r(82),i=r(32);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},/* 116 */ -/***/ -function(e,t,r){var n=r(8)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},/* 117 */ -/***/ -function(e,t,r){ -// check on default Array iterator -var n=r(63),i=r(8)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},/* 118 */ -/***/ -function(e,t,r){"use strict";var n=r(11),i=r(47);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},/* 119 */ -/***/ -function(e,t,r){var n=r(72),i=r(8)("iterator"),o=r(63);e.exports=r(30).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},/* 120 */ -/***/ -function(e,t,r){ -// 9.4.2.3 ArraySpeciesCreate(originalArray, length) -var n=r(305);e.exports=function(e,t){return new(n(e))(t)}},/* 121 */ -/***/ -function(e,t,r){"use strict"; -// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) -var n=r(15),i=r(51),o=r(12);e.exports=function(e){for(var t=n(this),r=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),u=s>2?arguments[2]:void 0,c=void 0===u?r:i(u,r);c>a;)t[a++]=e;return t}},/* 122 */ -/***/ -function(e,t,r){"use strict";var n=r(43),i=r(165),o=r(63),s=r(24); -// 22.1.3.4 Array.prototype.entries() -// 22.1.3.13 Array.prototype.keys() -// 22.1.3.29 Array.prototype.values() -// 22.1.3.30 Array.prototype[@@iterator]() -e.exports=r(113)(Array,"Array",function(e,t){this._t=s(e),// target -this._i=0,// next index -this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,r):"values"==t?i(0,e[r]):i(0,[r,e[r]])},"values"), -// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) -o.Arguments=o.Array,n("keys"),n("values"),n("entries")},/* 123 */ -/***/ -function(e,t,r){var n,i,o,s=r(27),a=r(155),u=r(105),c=r(101),f=r(4),l=f.process,d=f.setImmediate,p=f.clearImmediate,y=f.MessageChannel,h=f.Dispatch,v=0,g={},b=function(){var e=+this; -// eslint-disable-next-line no-prototype-builtins -if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},m=function(e){b.call(e.data)}; -// Node.js 0.9+ & IE10+ has setImmediate, otherwise: -d&&p||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++v]=function(){ -// eslint-disable-next-line no-new-func -a("function"==typeof e?e:Function(e),t)},n(v),v},p=function(e){delete g[e]}, -// Node.js 0.8- -"process"==r(28)(l)?n=function(e){l.nextTick(s(b,e,1))}:h&&h.now?n=function(e){h.now(s(b,e,1))}:y?(i=new y,o=i.port2,i.port1.onmessage=m,n=s(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(e){f.postMessage(e+"","*")},f.addEventListener("message",m,!1)):n="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),b.call(e)}}:function(e){setTimeout(s(b,e,1),0)}),e.exports={set:d,clear:p}},/* 124 */ -/***/ -function(e,t,r){var n=r(4),i=r(123).set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,u="process"==r(28)(s);e.exports=function(){var e,t,r,c=function(){var n,i;for(u&&(n=s.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()}; -// Node.js -if(u)r=function(){s.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var f=a.resolve();r=function(){f.then(c)}}else r=function(){ -// strange IE + webpack dev server bug - use .call(global) -i.call(n,c)};else{var l=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),// eslint-disable-line no-new -r=function(){d.data=l=!l}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},/* 125 */ -/***/ -function(e,t,r){"use strict";function PromiseCapability(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)} -// 25.4.1.5 NewPromiseCapability(C) -var n=r(16);e.exports.f=function(e){return new PromiseCapability(e)}},/* 126 */ -/***/ -function(e,t,r){"use strict"; -// IEEE754 conversions based on https://github.com/feross/ieee754 -function packIEEE754(e,t,r){var n,i,o,s=new Array(r),a=8*r-t-1,u=(1<>1,f=23===t?k(2,-24)-k(2,-77):0,l=0,d=e<0||0===e&&1/e<0?1:0;for(e=M(e), -// eslint-disable-next-line no-self-compare -e!=e||e===P?( -// eslint-disable-next-line no-self-compare -i=e!=e?1:0,n=u):(n=L(x(e)/E),e*(o=k(2,-n))<1&&(n--,o*=2),e+=n+c>=1?f/o:f*k(2,1-c),e*o>=2&&(n++,o/=2),n+c>=u?(i=0,n=u):n+c>=1?(i=(e*o-1)*k(2,t),n+=c):(i=e*k(2,c-1)*k(2,t),n=0));t>=8;s[l++]=255&i,i/=256,t-=8);for(n=n<0;s[l++]=255&n,n/=256,a-=8);return s[--l]|=128*d,s}function unpackIEEE754(e,t,r){var n,i=8*r-t-1,o=(1<>1,a=i-7,u=r-1,c=e[u--],f=127&c;for(c>>=7;a>0;f=256*f+e[u],u--,a-=8);for(n=f&(1<<-a)-1,f>>=-a,a+=t;a>0;n=256*n+e[u],u--,a-=8);if(0===f)f=1-s;else{if(f===o)return n?NaN:c?-P:P;n+=k(2,t),f-=s}return(c?-1:1)*n*k(2,f-t)}function unpackI32(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function packI8(e){return[255&e]}function packI16(e){return[255&e,e>>8&255]}function packI32(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function packF64(e){return packIEEE754(e,52,8)}function packF32(e){return packIEEE754(e,23,4)}function addGetter(e,t,r){h(e[b],t,{get:function(){return this[r]}})}function get(e,t,r,n){var i=+r,o=p(i);if(o+t>e[U])throw S(m);var s=e[A]._b,a=o+e[D],u=s.slice(a,a+t);return n?u:u.reverse()}function set(e,t,r,n,i,o){var s=+r,a=p(s);if(a+t>e[U])throw S(m);for(var u=e[A]._b,c=a+e[D],f=n(+i),l=0;lC;)(I=T[C++])in _||a(_,I,O[I]);o||(j.constructor=_)} -// iOS Safari 7.x bug -var F=new R(new _(2)),N=R[b].setInt8;F.setInt8(0,2147483648),F.setInt8(1,2147483649),!F.getInt8(0)&&F.getInt8(1)||u(R[b],{setInt8:function(e,t){N.call(this,e,t<<24>>24)},setUint8:function(e,t){N.call(this,e,t<<24>>24)}},!0)}else _=function(e){f(this,_,"ArrayBuffer");var t=p(e);this._b=v.call(new Array(t),0),this[U]=t},R=function(e,t,r){f(this,R,"DataView"),f(e,_,"DataView");var n=e[U],i=l(t);if(i<0||i>n)throw S("Wrong offset!");if(r=void 0===r?n-i:d(r),i+r>n)throw S("Wrong length!");this[A]=e,this[D]=i,this[U]=r},i&&(addGetter(_,"byteLength","_l"),addGetter(R,"buffer","_b"),addGetter(R,"byteLength","_l"),addGetter(R,"byteOffset","_o")),u(R[b],{getInt8:function(e){return get(this,1,e)[0]<<24>>24},getUint8:function(e){return get(this,1,e)[0]},getInt16:function(e){var t=get(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=get(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return unpackI32(get(this,4,e,arguments[1]))},getUint32:function(e){return unpackI32(get(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return unpackIEEE754(get(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return unpackIEEE754(get(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){set(this,1,e,packI8,t)},setUint8:function(e,t){set(this,1,e,packI8,t)},setInt16:function(e,t){set(this,2,e,packI16,t,arguments[2])},setUint16:function(e,t){set(this,2,e,packI16,t,arguments[2])},setInt32:function(e,t){set(this,4,e,packI32,t,arguments[2])},setUint32:function(e,t){set(this,4,e,packI32,t,arguments[2])},setFloat32:function(e,t){set(this,4,e,packF32,t,arguments[2])},setFloat64:function(e,t){set(this,8,e,packF64,t,arguments[2])}});g(_,"ArrayBuffer"),g(R,"DataView"),a(R[b],s.VIEW,!0),t.ArrayBuffer=_,t.DataView=R},/* 127 */ -/***/ -function(e,t,r){var n=r(4),i=n.navigator;e.exports=i&&i.userAgent||""},/* 128 */ -/***/ -function(e,t,r){"use strict";var n=r(417)(!0); -// 21.1.3.27 String.prototype[@@iterator]() -r(183)(String,"String",function(e){this._t=String(e),// target -this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},/* 129 */ -/***/ -function(e,t){ -// 7.1.4 ToInteger -var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},/* 130 */ -/***/ -function(e,t){ -// 7.2.1 RequireObjectCoercible(argument) -e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},/* 131 */ -/***/ -function(e,t,r){var n=r(36),i=r(22).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},/* 132 */ -/***/ -function(e,t,r){ -// 7.1.1 ToPrimitive(input [, PreferredType]) -var n=r(36); -// instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string -e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},/* 133 */ -/***/ -function(e,t,r){ -// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -var n=r(41),i=r(419),o=r(137),s=r(135)("IE_PROTO"),a=function(){},u=function(){ -// Thrash, waste and sodomy: IE GC bug -var e,t=r(131)("iframe"),n=o.length;for(t.style.display="none",r(188).appendChild(t),t.src="javascript:",// eslint-disable-line no-script-url -// createDict = iframe.contentWindow.Object; -// html.removeChild(iframe); -e=t.contentWindow.document,e.open(),e.write("