@iota-pico/core
Advanced tools
Comparing version 0.9.7 to 0.9.8
# Changelog | ||
## v0.9.8 | ||
* Revert ASCII extension to retain compatibility with official libs | ||
## v0.9.7 | ||
@@ -4,0 +8,0 @@ |
@@ -22,3 +22,3 @@ /** | ||
*/ | ||
static isAscii(value: string): boolean; | ||
static isASCII(value: string): boolean; | ||
/** | ||
@@ -25,0 +25,0 @@ * Encode non ASCII characters with control characters. |
@@ -28,5 +28,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
*/ | ||
static isAscii(value) { | ||
static isASCII(value) { | ||
return value === null || value === undefined | ||
? false : /^[\x00-\xFF]*$/.test(value); | ||
? false : /^[\x00-\x7F]*$/.test(value); | ||
} | ||
@@ -39,3 +39,3 @@ /** | ||
static encodeNonASCII(value) { | ||
return StringHelper.isString(value) ? value.replace(/[\u0100-\uFFFF]/g, (chr) => `\\u${(`0000${chr.charCodeAt(0).toString(16)}`).substr(-4)}`) : undefined; | ||
return StringHelper.isString(value) ? value.replace(/[\u0080-\uFFFF]/g, (chr) => `\\u${(`0000${chr.charCodeAt(0).toString(16)}`).substr(-4)}`) : undefined; | ||
} | ||
@@ -42,0 +42,0 @@ /** |
@@ -17,3 +17,3 @@ [@iota-pico/core](../README.md) > [StringHelper](../classes/stringhelper.md) | ||
* [encodeNonASCII](stringhelper.md#encodenonascii) | ||
* [isAscii](stringhelper.md#isascii) | ||
* [isASCII](stringhelper.md#isascii) | ||
* [isEmpty](stringhelper.md#isempty) | ||
@@ -68,5 +68,5 @@ * [isString](stringhelper.md#isstring) | ||
### `<Static>` isAscii | ||
### `<Static>` isASCII | ||
▸ **isAscii**(value: *`string`*): `boolean` | ||
▸ **isASCII**(value: *`string`*): `boolean` | ||
@@ -73,0 +73,0 @@ *Defined in [helpers/stringHelper.ts:29](https://github.com/iota-pico/core/tree/master/src/helpers/stringHelper.ts#L29* |
{ | ||
"name": "@iota-pico/core", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"description": "IOTA Pico Framework Core", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@iota-pico/core",[],e):"object"==typeof exports?exports["@iota-pico/core"]=e():t.IotaPicoCore=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=21)}([function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&o(t,n)}(t,0,[{key:"isEmpty",value:function(t){return null===t||void 0===t}},{key:"isObject",value:function(t){return null!==t&&void 0!==t&&"object"===r(t)&&!Array.isArray(t)}},{key:"isType",value:function(e,n){var r=t.getClassName(e);return void 0!==r&&r===t.getClassName(n)}},{key:"getClassName",value:function(t){if(null!==t&&void 0!==t){var e=("function"==typeof t?t.toString():t.constructor.toString()).match(/\w+/g);return e&&e.length>1?e[1]:void 0}}}]),t}();e.ObjectHelper=i},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&r(t,n)}(t,0,[{key:"isString",value:function(t){return null!==t&&void 0!==t&&"[object String]"===Object.prototype.toString.call(t)}},{key:"isEmpty",value:function(e){return!t.isString(e)||0===e.length}},{key:"isAscii",value:function(t){return null!==t&&void 0!==t&&/^[\x00-\xFF]*$/.test(t)}},{key:"encodeNonASCII",value:function(e){return t.isString(e)?e.replace(/[\u0100-\uFFFF]/g,function(t){return"\\u".concat("0000".concat(t.charCodeAt(0).toString(16)).substr(-4))}):void 0}},{key:"decodeNonASCII",value:function(e){return t.isString(e)?e.replace(/\\u([\d\w]{4})/gi,function(t,e){return String.fromCharCode(parseInt(e,16))}):void 0}}]),t}();e.StringHelper=o},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._types={}}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"register",value:function(t,e){this.getInstance()._types[t]=e}},{key:"unregister",value:function(t){delete this.getInstance()._types[t]}},{key:"exists",value:function(t){return void 0!==this.getInstance()._types[t]}},{key:"types",value:function(){return Object.keys(this.getInstance()._types)}},{key:"create",value:function(t){var e=this.getInstance();if(e._types[t]){for(var n,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(n=e._types)[t].apply(n,o)}}}]),t}();e.FactoryBase=o},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),f=n(1),l=function(t){function e(t,n,r){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(o=i(this,c(e).call(this,t))).additional=n||{},o.innerError=r,o.domain="Core",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Error)),function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(e,[{key:"format",value:function(){var t=this,e="";f.StringHelper.isEmpty(this.domain)||(e+="".concat(this.domain,": ")),f.StringHelper.isEmpty(this.message)||(e+="".concat(this.message));var n=Object.keys(this.additional);return n.length>0&&(e.length>0&&(e+="\n"),n.forEach(function(n){e+="\t".concat(n,": ").concat(a.JsonHelper.stringify(t.additional[n]),"\n")})),e}}],[{key:"isError",value:function(t){return void 0!==t&&null!==t&&"object"===r(t)&&"message"in t&&"additional"in t}}]),e}();e.CoreError=l},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&o(t,n)}(t,0,[{key:"stringify",value:function(t,e,n){var o=[];return JSON.stringify(t,function(n,i){if("object"===r(i)&&null!==t&&void 0!==i){if(-1!==o.indexOf(i))return;o.push(i)}return e?e(n,i):i},n)}}]),t}();e.JsonHelper=i},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&r(t,n)}(t,0,[{key:"isInteger",value:function(t){return Number.isInteger(t)&&!Number.isNaN(t)&&Number.isFinite(t)}},{key:"isNumber",value:function(t){return void 0!==t&&null!==t&&"number"==typeof t&&!Number.isNaN(t)&&Number.isFinite(t)}},{key:"isFloatString",value:function(t){return/^-?\d*\.?\d+$/.test(t)}},{key:"isIntegerString",value:function(t){return/^-?\d+$/.test(t)}}]),t}();e.NumberHelper=o},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=n(4),c=n(0),u=n(1),a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&r(t,n)}(t,0,[{key:"format",value:function(t,e){if(null===t||void 0===t)return"unknown error";if(o.CoreError.isError(t)){var n=t.format();if(e&&t.stack){n+="\nStack Trace";var r=t.stack.split("\n");r.shift(),n+="\n".concat(r.join("\n"))}return c.ObjectHelper.isEmpty(t.innerError)||(e&&!c.ObjectHelper.isEmpty(t.innerError.stack)?(n+="\n\n-----------------------------------------------",n+="\nInner Stack Trace\n",n+=t.innerError.stack):n+="\nInner Error: ".concat(t.innerError.message,"\n")),n}if(t instanceof Error){var a="";return e&&!c.ObjectHelper.isEmpty(t.stack)?a+=t.stack:a+=t.message,a}return u.StringHelper.isString(t)?t:i.JsonHelper.stringify(t,void 0,"\t")}}]),t}();e.ErrorHelper=a},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&r(t,n)}(t,0,[{key:"isArray",value:function(t){return null!==t&&void 0!==t&&Array.isArray(t)}},{key:"isEmpty",value:function(e){return!t.isArray(e)||0===e.length}},{key:"isTyped",value:function(e,n){return!t.isEmpty(e)&&!e.includes(void 0)&&!e.includes(null)&&e.every(function(t){return o.ObjectHelper.isType(t,n)})}}]),t}();e.ArrayHelper=i},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(3),a=function(t){function e(t,n,r){var c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(c=o(this,i(e).call(this,t,n,r))).domain="Network",c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.CoreError),e}();e.NetworkError=a},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"msSinceEpoch",value:function(){return Date.now()}}]),t}();e.TimeService=o},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",f="object"==typeof t,l=e.regeneratorRuntime;if(l)f&&(t.exports=l);else{(l=e.regeneratorRuntime=f?t.exports:{}).wrap=w;var s="suspendedStart",y="suspendedYield",p="executing",h="completed",b={},v={};v[c]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(C([])));m&&m!==r&&o.call(m,c)&&(v=m);var d=E.prototype=O.prototype=Object.create(v);j.prototype=d.constructor=E,E.constructor=j,E[a]=j.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(d),t},l.awrap=function(t){return{__await:t}},k(S.prototype),S.prototype[u]=function(){return this},l.AsyncIterator=S,l.async=function(t,e,n,r){var o=new S(w(t,e,n,r));return l.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},k(d),d[a]="Generator",d[c]=function(){return this},d.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=C,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return r("end");if(c.tryLoc<=this.prev){var a=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(a&&f){if(this.prev<c.catchLoc)return r(c.catchLoc,!0);if(this.prev<c.finallyLoc)return r(c.finallyLoc)}else if(a){if(this.prev<c.catchLoc)return r(c.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return r(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),b}}}function w(t,e,n,r){var o=e&&e.prototype instanceof O?e:O,i=Object.create(o.prototype),c=new N(r||[]);return i._invoke=function(t,e,n){var r=s;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return H()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===s)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var a=_(t,e,n);if("normal"===a.type){if(r=n.done?h:y,a.arg===b)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r=h,n.method="throw",n.arg=a.arg)}}}(t,n,c),i}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function O(){}function j(){}function E(){}function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function S(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,c){var u=_(t[n],t,r);if("throw"!==u.type){var a=u.arg,f=a.value;return f&&"object"==typeof f&&o.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,i,c)},function(t){e("throw",t,i,c)}):Promise.resolve(f).then(function(t){a.value=t,i(a)},c)}c(u.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function P(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,P(t,e),"throw"===e.method))return b;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var o=_(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,b;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,b):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:H}}function H(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(10),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e,n){t.exports=n(11)},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(12));function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){e&&o(t.prototype,e)}(t,[{key:"create",value:function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t,e){try{var n=i[t](e),c=n.value}catch(t){return void o(t)}n.done?r(c):Promise.resolve(c).then(u,a)}function u(t){c("next",t)}function a(t){c("throw",t)}u()})}}(r.default.mark(function t(e,n){return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,r){setTimeout(function(){try{t(e())}catch(t){r(t)}},n)}));case 1:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}()}]),t}();e.BackgroundTaskService=i},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=n(5),c=n(0),u=n(1),a=function(){function t(e,n,r,a){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!u.StringHelper.isString(e)||!/http|https/.test(e))throw new o.NetworkError("The protocol must be defined as http or https");if(!u.StringHelper.isString(n))throw new o.NetworkError("The host must be defined");if(!i.NumberHelper.isInteger(r)||r<=0)throw new o.NetworkError("The port must be a number greater than zero");if(!c.ObjectHelper.isEmpty(a)&&!u.StringHelper.isString(a))throw new o.NetworkError("The rootPath must be a valid string");this._protocol=e,this._host=n.replace(/^\/*/,"").replace(/\/*$/,""),this._port=r,this._rootPath=(a||"").replace(/^\/*/,"").replace(/\/*$/,"")}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"getProtocol",value:function(){return this._protocol}},{key:"getHost",value:function(){return this._host}},{key:"getRootPath",value:function(){return this._rootPath}},{key:"getPort",value:function(){return this._port}},{key:"getUri",value:function(){var t="".concat(this._protocol,"://").concat(this._host,":").concat(this._port);return this._rootPath.length>0&&(t+="/".concat(this._rootPath)),t}}]),t}();e.NetworkEndPoint=a},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"banner",value:function(t){}},{key:"log",value:function(t){}},{key:"info",value:function(t){}},{key:"warning",value:function(t){}},{key:"error",value:function(t,e){}}]),t}();e.NullLogger=o},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),i=n(6),c=n(0),u=n(1),a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._loggingObject=e||console}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"banner",value:function(t){this._loggingObject.log("=".repeat(80)),this._loggingObject.log(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.logArgs(this._loggingObject.log,n),this._loggingObject.log("=".repeat(80))}},{key:"log",value:function(t){this._loggingObject.log(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.logArgs(this._loggingObject.log,n)}},{key:"info",value:function(t){this._loggingObject.info(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.logArgs(this._loggingObject.info,n)}},{key:"warning",value:function(t){this._loggingObject.warn(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.logArgs(this._loggingObject.warn,n)}},{key:"error",value:function(t,e){var n=this;this._loggingObject.error(t),c.ObjectHelper.isEmpty(e)||i.ErrorHelper.format(e,!0).split("\n").forEach(function(t){n._loggingObject.error("\t".concat(t))});for(var r=arguments.length,o=new Array(r>2?r-2:0),u=2;u<r;u++)o[u-2]=arguments[u];this.logArgs(this._loggingObject.error,o)}},{key:"logArgs",value:function(t,e){var n=this;if(!o.ArrayHelper.isEmpty(e)){var r="";e.forEach(function(t,o){r+=n.createItem("\t","",t),o<e.length-1&&(r+="".concat("\t").concat("-".repeat(70),"\n"))}),t(r)}}},{key:"createItem",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"\n",a="";if(o.ArrayHelper.isArray(n)){var f="".concat(t,"\t");u.StringHelper.isEmpty(e)?a+="".concat(t,"[\n"):a+="".concat(t).concat(e,": [\n"),n.forEach(function(t,e){a+=r.createItem(f,"",t,"".concat(e<n.length-1?",":"","\n"))}),a+="".concat(t,"]\n")}else if(c.ObjectHelper.isObject(n)){var l=n.toString();if("[object Object]"===l){var s="".concat(t,"\t");u.StringHelper.isEmpty(e)?a+="".concat(t,"{\n"):a+="".concat(t).concat(e,": {\n");var y=Object.keys(n);y.forEach(function(t,e){a+=r.createItem(s,t,n[t],"".concat(e<y.length-1?",":"","\n"))}),a+="".concat(t,"}\n")}else a+=this.createItem(t,e,l.replace(/\n/g,"\n".concat(t)),i)}else u.StringHelper.isEmpty(e)?a+="".concat(t).concat(c.ObjectHelper.isEmpty(n)?n:n.toString()).concat(i):a+="".concat(t).concat(e,": ").concat(c.ObjectHelper.isEmpty(n)?n:n.toString()).concat(i);return a}}]),t}();e.ConsoleLogger=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(2),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,i(e).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.FactoryBase),function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(e,[{key:"getInstance",value:function(){return e.instance()}}],[{key:"instance",value:function(){return e._instance||(e._instance=new e),e._instance}}]),e}();e.RngServiceFactory=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(2),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,i(e).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.FactoryBase),function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(e,[{key:"getInstance",value:function(){return e.instance()}}],[{key:"instance",value:function(){return e._instance||(e._instance=new e),e._instance}}]),e}();e.PlatformCryptoFactory=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(2),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,i(e).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.FactoryBase),function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(e,[{key:"getInstance",value:function(){return e.instance()}}],[{key:"instance",value:function(){return e._instance||(e._instance=new e),e._instance}}]),e}();e.NetworkClientFactory=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(3),a=function(t){function e(t,n,r){var c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(c=o(this,i(e).call(this,t,n,r))).domain="Platform",c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.CoreError),e}();e.PlatformError=a},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(3)),r(n(8)),r(n(20)),r(n(2)),r(n(19)),r(n(18)),r(n(17)),r(n(7)),r(n(6)),r(n(4)),r(n(5)),r(n(1)),r(n(0)),r(n(16)),r(n(15)),r(n(14)),r(n(13)),r(n(9))}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@iota-pico/core",[],e):"object"==typeof exports?exports["@iota-pico/core"]=e():t.IotaPicoCore=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=21)}([function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&o(t,n)}(t,0,[{key:"isEmpty",value:function(t){return null===t||void 0===t}},{key:"isObject",value:function(t){return null!==t&&void 0!==t&&"object"===r(t)&&!Array.isArray(t)}},{key:"isType",value:function(e,n){var r=t.getClassName(e);return void 0!==r&&r===t.getClassName(n)}},{key:"getClassName",value:function(t){if(null!==t&&void 0!==t){var e=("function"==typeof t?t.toString():t.constructor.toString()).match(/\w+/g);return e&&e.length>1?e[1]:void 0}}}]),t}();e.ObjectHelper=i},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&r(t,n)}(t,0,[{key:"isString",value:function(t){return null!==t&&void 0!==t&&"[object String]"===Object.prototype.toString.call(t)}},{key:"isEmpty",value:function(e){return!t.isString(e)||0===e.length}},{key:"isASCII",value:function(t){return null!==t&&void 0!==t&&/^[\x00-\x7F]*$/.test(t)}},{key:"encodeNonASCII",value:function(e){return t.isString(e)?e.replace(/[\u0080-\uFFFF]/g,function(t){return"\\u".concat("0000".concat(t.charCodeAt(0).toString(16)).substr(-4))}):void 0}},{key:"decodeNonASCII",value:function(e){return t.isString(e)?e.replace(/\\u([\d\w]{4})/gi,function(t,e){return String.fromCharCode(parseInt(e,16))}):void 0}}]),t}();e.StringHelper=o},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._types={}}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"register",value:function(t,e){this.getInstance()._types[t]=e}},{key:"unregister",value:function(t){delete this.getInstance()._types[t]}},{key:"exists",value:function(t){return void 0!==this.getInstance()._types[t]}},{key:"types",value:function(){return Object.keys(this.getInstance()._types)}},{key:"create",value:function(t){var e=this.getInstance();if(e._types[t]){for(var n,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(n=e._types)[t].apply(n,o)}}}]),t}();e.FactoryBase=o},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),f=n(1),l=function(t){function e(t,n,r){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(o=i(this,c(e).call(this,t))).additional=n||{},o.innerError=r,o.domain="Core",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Error)),function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(e,[{key:"format",value:function(){var t=this,e="";f.StringHelper.isEmpty(this.domain)||(e+="".concat(this.domain,": ")),f.StringHelper.isEmpty(this.message)||(e+="".concat(this.message));var n=Object.keys(this.additional);return n.length>0&&(e.length>0&&(e+="\n"),n.forEach(function(n){e+="\t".concat(n,": ").concat(a.JsonHelper.stringify(t.additional[n]),"\n")})),e}}],[{key:"isError",value:function(t){return void 0!==t&&null!==t&&"object"===r(t)&&"message"in t&&"additional"in t}}]),e}();e.CoreError=l},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&o(t,n)}(t,0,[{key:"stringify",value:function(t,e,n){var o=[];return JSON.stringify(t,function(n,i){if("object"===r(i)&&null!==t&&void 0!==i){if(-1!==o.indexOf(i))return;o.push(i)}return e?e(n,i):i},n)}}]),t}();e.JsonHelper=i},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&r(t,n)}(t,0,[{key:"isInteger",value:function(t){return Number.isInteger(t)&&!Number.isNaN(t)&&Number.isFinite(t)}},{key:"isNumber",value:function(t){return void 0!==t&&null!==t&&"number"==typeof t&&!Number.isNaN(t)&&Number.isFinite(t)}},{key:"isFloatString",value:function(t){return/^-?\d*\.?\d+$/.test(t)}},{key:"isIntegerString",value:function(t){return/^-?\d+$/.test(t)}}]),t}();e.NumberHelper=o},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=n(4),c=n(0),u=n(1),a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&r(t,n)}(t,0,[{key:"format",value:function(t,e){if(null===t||void 0===t)return"unknown error";if(o.CoreError.isError(t)){var n=t.format();if(e&&t.stack){n+="\nStack Trace";var r=t.stack.split("\n");r.shift(),n+="\n".concat(r.join("\n"))}return c.ObjectHelper.isEmpty(t.innerError)||(e&&!c.ObjectHelper.isEmpty(t.innerError.stack)?(n+="\n\n-----------------------------------------------",n+="\nInner Stack Trace\n",n+=t.innerError.stack):n+="\nInner Error: ".concat(t.innerError.message,"\n")),n}if(t instanceof Error){var a="";return e&&!c.ObjectHelper.isEmpty(t.stack)?a+=t.stack:a+=t.message,a}return u.StringHelper.isString(t)?t:i.JsonHelper.stringify(t,void 0,"\t")}}]),t}();e.ErrorHelper=a},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){n&&r(t,n)}(t,0,[{key:"isArray",value:function(t){return null!==t&&void 0!==t&&Array.isArray(t)}},{key:"isEmpty",value:function(e){return!t.isArray(e)||0===e.length}},{key:"isTyped",value:function(e,n){return!t.isEmpty(e)&&!e.includes(void 0)&&!e.includes(null)&&e.every(function(t){return o.ObjectHelper.isType(t,n)})}}]),t}();e.ArrayHelper=i},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(3),a=function(t){function e(t,n,r){var c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(c=o(this,i(e).call(this,t,n,r))).domain="Network",c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.CoreError),e}();e.NetworkError=a},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"msSinceEpoch",value:function(){return Date.now()}}]),t}();e.TimeService=o},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",f="object"==typeof t,l=e.regeneratorRuntime;if(l)f&&(t.exports=l);else{(l=e.regeneratorRuntime=f?t.exports:{}).wrap=w;var s="suspendedStart",y="suspendedYield",p="executing",h="completed",b={},v={};v[c]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(N([])));m&&m!==r&&o.call(m,c)&&(v=m);var d=E.prototype=O.prototype=Object.create(v);j.prototype=d.constructor=E,E.constructor=j,E[a]=j.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(d),t},l.awrap=function(t){return{__await:t}},k(S.prototype),S.prototype[u]=function(){return this},l.AsyncIterator=S,l.async=function(t,e,n,r){var o=new S(w(t,e,n,r));return l.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},k(d),d[a]="Generator",d[c]=function(){return this},d.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=N,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return r("end");if(c.tryLoc<=this.prev){var a=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(a&&f){if(this.prev<c.catchLoc)return r(c.catchLoc,!0);if(this.prev<c.finallyLoc)return r(c.finallyLoc)}else if(a){if(this.prev<c.catchLoc)return r(c.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return r(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),b}}}function w(t,e,n,r){var o=e&&e.prototype instanceof O?e:O,i=Object.create(o.prototype),c=new C(r||[]);return i._invoke=function(t,e,n){var r=s;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return H()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===s)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var a=_(t,e,n);if("normal"===a.type){if(r=n.done?h:y,a.arg===b)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r=h,n.method="throw",n.arg=a.arg)}}}(t,n,c),i}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function O(){}function j(){}function E(){}function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function S(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,c){var u=_(t[n],t,r);if("throw"!==u.type){var a=u.arg,f=a.value;return f&&"object"==typeof f&&o.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,i,c)},function(t){e("throw",t,i,c)}):Promise.resolve(f).then(function(t){a.value=t,i(a)},c)}c(u.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function P(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,P(t,e),"throw"===e.method))return b;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var o=_(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,b;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,b):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function N(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:H}}function H(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(10),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e,n){t.exports=n(11)},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(12));function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){e&&o(t.prototype,e)}(t,[{key:"create",value:function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t,e){try{var n=i[t](e),c=n.value}catch(t){return void o(t)}n.done?r(c):Promise.resolve(c).then(u,a)}function u(t){c("next",t)}function a(t){c("throw",t)}u()})}}(r.default.mark(function t(e,n){return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,r){setTimeout(function(){try{t(e())}catch(t){r(t)}},n)}));case 1:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}()}]),t}();e.BackgroundTaskService=i},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=n(5),c=n(0),u=n(1),a=function(){function t(e,n,r,a){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!u.StringHelper.isString(e)||!/http|https/.test(e))throw new o.NetworkError("The protocol must be defined as http or https");if(!u.StringHelper.isString(n))throw new o.NetworkError("The host must be defined");if(!i.NumberHelper.isInteger(r)||r<=0)throw new o.NetworkError("The port must be a number greater than zero");if(!c.ObjectHelper.isEmpty(a)&&!u.StringHelper.isString(a))throw new o.NetworkError("The rootPath must be a valid string");this._protocol=e,this._host=n.replace(/^\/*/,"").replace(/\/*$/,""),this._port=r,this._rootPath=(a||"").replace(/^\/*/,"").replace(/\/*$/,"")}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"getProtocol",value:function(){return this._protocol}},{key:"getHost",value:function(){return this._host}},{key:"getRootPath",value:function(){return this._rootPath}},{key:"getPort",value:function(){return this._port}},{key:"getUri",value:function(){var t="".concat(this._protocol,"://").concat(this._host,":").concat(this._port);return this._rootPath.length>0&&(t+="/".concat(this._rootPath)),t}}]),t}();e.NetworkEndPoint=a},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"banner",value:function(t){}},{key:"log",value:function(t){}},{key:"info",value:function(t){}},{key:"warning",value:function(t){}},{key:"error",value:function(t,e){}}]),t}();e.NullLogger=o},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),i=n(6),c=n(0),u=n(1),a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._loggingObject=e||console}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"banner",value:function(t){this._loggingObject.log("=".repeat(80)),this._loggingObject.log(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.logArgs(this._loggingObject.log,n),this._loggingObject.log("=".repeat(80))}},{key:"log",value:function(t){this._loggingObject.log(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.logArgs(this._loggingObject.log,n)}},{key:"info",value:function(t){this._loggingObject.info(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.logArgs(this._loggingObject.info,n)}},{key:"warning",value:function(t){this._loggingObject.warn(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.logArgs(this._loggingObject.warn,n)}},{key:"error",value:function(t,e){var n=this;this._loggingObject.error(t),c.ObjectHelper.isEmpty(e)||i.ErrorHelper.format(e,!0).split("\n").forEach(function(t){n._loggingObject.error("\t".concat(t))});for(var r=arguments.length,o=new Array(r>2?r-2:0),u=2;u<r;u++)o[u-2]=arguments[u];this.logArgs(this._loggingObject.error,o)}},{key:"logArgs",value:function(t,e){var n=this;if(!o.ArrayHelper.isEmpty(e)){var r="";e.forEach(function(t,o){r+=n.createItem("\t","",t),o<e.length-1&&(r+="".concat("\t").concat("-".repeat(70),"\n"))}),t(r)}}},{key:"createItem",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"\n",a="";if(o.ArrayHelper.isArray(n)){var f="".concat(t,"\t");u.StringHelper.isEmpty(e)?a+="".concat(t,"[\n"):a+="".concat(t).concat(e,": [\n"),n.forEach(function(t,e){a+=r.createItem(f,"",t,"".concat(e<n.length-1?",":"","\n"))}),a+="".concat(t,"]\n")}else if(c.ObjectHelper.isObject(n)){var l=n.toString();if("[object Object]"===l){var s="".concat(t,"\t");u.StringHelper.isEmpty(e)?a+="".concat(t,"{\n"):a+="".concat(t).concat(e,": {\n");var y=Object.keys(n);y.forEach(function(t,e){a+=r.createItem(s,t,n[t],"".concat(e<y.length-1?",":"","\n"))}),a+="".concat(t,"}\n")}else a+=this.createItem(t,e,l.replace(/\n/g,"\n".concat(t)),i)}else u.StringHelper.isEmpty(e)?a+="".concat(t).concat(c.ObjectHelper.isEmpty(n)?n:n.toString()).concat(i):a+="".concat(t).concat(e,": ").concat(c.ObjectHelper.isEmpty(n)?n:n.toString()).concat(i);return a}}]),t}();e.ConsoleLogger=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(2),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,i(e).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.FactoryBase),function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(e,[{key:"getInstance",value:function(){return e.instance()}}],[{key:"instance",value:function(){return e._instance||(e._instance=new e),e._instance}}]),e}();e.RngServiceFactory=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(2),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,i(e).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.FactoryBase),function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(e,[{key:"getInstance",value:function(){return e.instance()}}],[{key:"instance",value:function(){return e._instance||(e._instance=new e),e._instance}}]),e}();e.PlatformCryptoFactory=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(2),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,i(e).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.FactoryBase),function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(e,[{key:"getInstance",value:function(){return e.instance()}}],[{key:"instance",value:function(){return e._instance||(e._instance=new e),e._instance}}]),e}();e.NetworkClientFactory=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(3),a=function(t){function e(t,n,r){var c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(c=o(this,i(e).call(this,t,n,r))).domain="Platform",c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u.CoreError),e}();e.PlatformError=a},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(3)),r(n(8)),r(n(20)),r(n(2)),r(n(19)),r(n(18)),r(n(17)),r(n(7)),r(n(6)),r(n(4)),r(n(5)),r(n(1)),r(n(0)),r(n(16)),r(n(15)),r(n(14)),r(n(13)),r(n(9))}])}); |
Sorry, the diff of this file is too big to display
416117