diff --git a/dist/index.browser.js b/dist/index.browser.js index 75af8a80..305eb820 100644 --- a/dist/index.browser.js +++ b/dist/index.browser.js @@ -36,7 +36,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(n){!function(r){var i="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),a=o(n);function o(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===i.Reflect?i.Reflect=n:a=o(i.Reflect,a),function(t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!o&&!s,d={create:o?function(){return x(Object.create(null))}:s?function(){return x({__proto__:null})}:function(){return x({})},has:u?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:u?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),c="object"==typeof e&&e.env&&"true"===e.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=c||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!S(r)&&!N(r)){if(!D(r))throw new TypeError;t=r}}return t}(e,t)}if(!I(e))throw new TypeError;if(!A(t))throw new TypeError;if(!A(r)&&!S(r)&&!N(r))throw new TypeError;return N(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!S(a)&&!N(a)){if(!A(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)})),t("metadata",(function(e,t){return function(n,r){if(!A(n))throw new TypeError;if(!S(r)&&!function(e){switch(C(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;b(e,t,n,r)}})),t("defineMetadata",(function(e,t,n,r){if(!A(n))throw new TypeError;return S(r)||(r=E(r)),b(e,t,n,r)})),t("hasMetadata",(function(e,t,n){if(!A(t))throw new TypeError;return S(n)||(n=E(n)),function e(t,n,r){if(m(t,n,r))return!0;var i=O(n);return!N(i)&&e(t,i,r)}(e,t,n)})),t("hasOwnMetadata",(function(e,t,n){if(!A(t))throw new TypeError;return S(n)||(n=E(n)),m(e,t,n)})),t("getMetadata",(function(e,t,n){if(!A(t))throw new TypeError;return S(n)||(n=E(n)),function e(t,n,r){if(m(t,n,r))return y(t,n,r);var i=O(n);return N(i)?void 0:e(t,i,r)}(e,t,n)})),t("getOwnMetadata",(function(e,t,n){if(!A(t))throw new TypeError;return S(n)||(n=E(n)),y(e,t,n)})),t("getMetadataKeys",(function(e,t){if(!A(e))throw new TypeError;return S(t)||(t=E(t)),function e(t,n){var r=v(t,n),i=O(t);if(null===i)return r;var a=e(i,n);if(a.length<=0)return r;if(r.length<=0)return a;for(var o=new f,s=[],u=0,d=r;u0)return!0;var i=h.get(t);return i.delete(n),i.size>0||(h.delete(t),!0)}))}(a)}()}(n||(n={}))}).call(this,n(112),n(57))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var u,d=[],l=!1,c=-1;function p(){l&&u&&(l=!1,u.length?d=u.concat(d):c=-1,d.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=d.length;t;){for(u=d,d=[];++c1)for(var n=1;n0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],o=Object.keys(r),s=0,d=o;s0?l:e(t,r)}return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t,n=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},n)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}();t.QueryableString=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=function(){function e(e,t,n,i,a){this.id=r.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=a,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,r){var i=new e(t,this.parentContext,this,n,r);return this.childRequests.push(i),i},e}();t.Request=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(23),a=n(74),o=n(43),s=n(124),u=function(e,t,n){try{return n()}catch(n){throw a.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):n}},d=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,a=t.childRequests,l=t.target&&t.target.isArray(),c=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&c)return a.map((function(t){return d(e)(t)}));var p=null;if(!t.target.isOptional()||0!==n.length){var f=n[0],h=f.scope===i.BindingScopeEnum.Singleton,g=f.scope===i.BindingScopeEnum.Request;if(h&&f.activated)return f.cache;if(g&&null!==e&&e.has(f.id))return e.get(f.id);if(f.type===i.BindingTypeEnum.ConstantValue)p=f.cache;else if(f.type===i.BindingTypeEnum.Function)p=f.cache;else if(f.type===i.BindingTypeEnum.Constructor)p=f.implementationType;else if(f.type===i.BindingTypeEnum.DynamicValue&&null!==f.dynamicValue)p=u("toDynamicValue",f.serviceIdentifier,(function(){return f.dynamicValue(t.parentContext)}));else if(f.type===i.BindingTypeEnum.Factory&&null!==f.factory)p=u("toFactory",f.serviceIdentifier,(function(){return f.factory(t.parentContext)}));else if(f.type===i.BindingTypeEnum.Provider&&null!==f.provider)p=u("toProvider",f.serviceIdentifier,(function(){return f.provider(t.parentContext)}));else{if(f.type!==i.BindingTypeEnum.Instance||null===f.implementationType){var m=o.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+m)}p=s.resolveInstance(f.implementationType,a,d(e))}return"function"==typeof f.onActivation&&(p=f.onActivation(t.parentContext,p)),h&&(f.cache=p,f.activated=!0),g&&null!==e&&!e.has(f.id)&&e.set(f.id,p),p}}};t.resolve=function(e){return d(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(23),a=n(17);t.resolveInstance=function(e,t,n){var o,s,u=null;if(t.length>0){var d=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);s=d,u=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),a=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=a[n];e[r]=i})),e}(u=new((o=e).bind.apply(o,[void 0].concat(s))),t,n)}else u=new e;return function(e,t){if(Reflect.hasMetadata(a.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(a.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,u),u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(23),a=n(126),o=n(77),s=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=e,new a.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new o.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new a.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=e,new o.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=e,new o.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!=typeof e)throw new Error(r.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=i.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},new o.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=e,new o.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue((function(t){return t.container.get(e)}))},e}();t.BindingToSyntax=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(127),i=n(58),a=n(59),o=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new a.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingInWhenOnSyntax=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),i=n(77),a=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.of=function(t,n){var r=new e;return r.bindings=t,r.middleware=n,r},e}();t.ContainerSnapshot=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null==e)throw new Error(r.NULL_ARGUMENT);if(null==t)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(e);void 0!==n?(n.push(t),this._map.set(e,n)):this._map.set(e,[t])},e.prototype.get=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(r.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(r.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach((function(n,r){var i=n.filter((function(t){return!e(t)}));i.length>0?t._map.set(r,i):t._map.delete(r)}))},e.prototype.hasKey=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,n){e.forEach((function(e){return t.add(n,e.clone())}))})),t},e.prototype.traverse=function(e){this._map.forEach((function(t,n){e(n,t)}))},e}();t.Lookup=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=i;var a=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(17);t.injectable=function(){return function(e){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,e))throw new Error(r.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(i.PARAM_TYPES,t,e),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),i=n(27);t.tagged=function(e,t){return function(n,a,o){var s=new r.Metadata(e,t);"number"==typeof o?i.tagParameter(n,a,o,s):i.tagProperty(n,a,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),a=n(27);t.named=function(e){return function(t,n,o){var s=new i.Metadata(r.NAMED_TAG,e);"number"==typeof o?a.tagParameter(t,n,o,s):a.tagProperty(t,n,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),a=n(27);t.optional=function(){return function(e,t,n){var o=new i.Metadata(r.OPTIONAL_TAG,!0);"number"==typeof n?a.tagParameter(e,t,n,o):a.tagProperty(e,t,o)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),a=n(27);t.unmanaged=function(){return function(e,t,n){var o=new i.Metadata(r.UNMANAGED_TAG,!0);a.tagParameter(e,t,n,o)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),a=n(27);t.multiInject=function(e){return function(t,n,o){var s=new i.Metadata(r.MULTI_INJECT_TAG,e);"number"==typeof o?a.tagParameter(t,n,o,s):a.tagProperty(t,n,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),a=n(27);t.targetName=function(e){return function(t,n,o){var s=new i.Metadata(r.NAME_TAG,e);a.tagParameter(t,n,o,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(17),a=n(21);t.postConstruct=function(){return function(e,t,n){var o=new a.Metadata(i.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,e.constructor))throw new Error(r.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,o,e.constructor)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=function(e){return function(t){return function(){for(var n=[],r=0;r=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=c(n(18)),h=n(60),g=n(10),m=n(31),y=function(e){function t(){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!g.NodeGuards.isIdentifierNode(t))return null;var n=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return n?{callee:n,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var n=null;return f.traverse(e,{enter:function(e){if(g.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return n=e.body,f.VisitorOption.Break}}),n}}]),t}(h.AbstractCalleeDataExtractor);y=l([p.injectable()],y),t.FunctionDeclarationCalleeDataExtractor=y},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e){e.exports=JSON.parse('{"name":"estraverse","description":"ECMAScript JS AST traversal functions","homepage":"https://github.com/estools/estraverse","main":"estraverse.js","version":"4.3.0","engines":{"node":">=4.0"},"maintainers":[{"name":"Yusuke Suzuki","email":"utatane.tea@gmail.com","web":"http://github.com/Constellation"}],"repository":{"type":"git","url":"http://github.com/estools/estraverse.git"},"devDependencies":{"babel-preset-env":"^1.6.1","babel-register":"^6.3.13","chai":"^2.1.1","espree":"^1.11.0","gulp":"^3.8.10","gulp-bump":"^0.2.2","gulp-filter":"^2.0.0","gulp-git":"^1.0.1","gulp-tag-version":"^1.3.0","jshint":"^2.5.6","mocha":"^2.1.0"},"license":"BSD-2-Clause","scripts":{"test":"npm run-script lint && npm run-script unit-test","lint":"jshint estraverse.js","unit-test":"mocha --compilers js:babel-register"}}')},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=c(n(18)),h=n(60),g=n(10),m=n(31),y=function(e){function t(){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var n=null;return g.NodeGuards.isIdentifierNode(t)&&(n=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),g.NodeGuards.isFunctionExpressionNode(t)&&(n=t.body),n?{callee:n,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var n=null;return f.traverse(e,{enter:function(e,r){if(g.NodeGuards.isFunctionExpressionNode(e)&&r&&g.NodeGuards.isVariableDeclaratorNode(r)&&g.NodeGuards.isIdentifierNode(r.id)&&r.id.name===t)return n=e.body,f.VisitorOption.Break}}),n}}]),t}(h.AbstractCalleeDataExtractor);y=l([p.injectable()],y),t.FunctionExpressionCalleeDataExtractor=y},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=p(n(18)),g=n(60),m=n(10),y=n(31),b=r=function(e){function t(){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var n=this.createObjectMembersCallsChain([],t);if(!n.length)return null;var r=n[n.length-1],i=this.getCalleeBlockStatement(y.NodeStatementUtils.getParentNodeWithStatements(e[0]),n);return i?{callee:i,name:r}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var n=this,r=t.shift();if(!r)return null;var i=null;return h.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===r)return i=n.findCalleeBlockStatement(e.init.properties,t),h.VisitorOption.Break}}),i}},{key:"findCalleeBlockStatement",value:function(e,t){var n=t.shift();if(!n)return null;var i=!0,a=!1,o=void 0;try{for(var s,u=e[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var d=s.value;if(r.isValidTargetPropertyNode(d,n)){if(m.NodeGuards.isObjectExpressionNode(d.value))return this.findCalleeBlockStatement(d.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(d.value))return d.value.body}}}catch(e){a=!0,o=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw o}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var n=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,r=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return n||r}}]),t}(g.AbstractCalleeDataExtractor);b=r=c([f.injectable()],b),t.ObjectExpressionCalleeDataExtractor=b},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(18)),g=n(79),m=n(10),y=n(31),b=r=function(){function e(t){(0,a.default)(this,e),this.calleeDataExtractorFactory=t}return(0,o.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,n=r.getLimitIndex(e.length),i=[],a=e.length,o=function(r){if(r>n)return"break";var a=e[r];h.traverse(a,{enter:function(n){if(m.NodeGuards.isCallExpressionNode(n))return a.parentNode!==y.NodeStatementUtils.getParentNodeWithStatements(n)?h.VisitorOption.Skip:void t.analyzeCallExpressionNode(i,e,n)}})},s=0;sn&&(i=Math.round(n+t*r.limitThreshold))>t&&(i=t),i}}]),e}();b.calleeDataExtractorsList=[g.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,g.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,g.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],b.limitThresholdActivationLength=25,b.limitThreshold=.002,b=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.Factory__ICalleeDataExtractor)),d("design:paramtypes",[Function])],b),t.StackTraceAnalyzer=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),i=n(2),a=n(4),o=n(80),s=n(32),u=n(148),d=n(149),l=n(167),c=n(168),p=n(169),f=n(173),h=n(174);t.controlFlowTransformersModule=new i.ContainerModule((function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(c.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.BinaryExpressionControlFlowReplacer).whenTargetNamed(o.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(l.CallExpressionControlFlowReplacer).whenTargetNamed(o.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(f.LogicalExpressionControlFlowReplacer).whenTargetNamed(o.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(h.StringLiteralControlFlowReplacer).whenTargetNamed(o.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(r.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))}))},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(28),y=n(81),b=r=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"replace",value:function(e,t,n){var i=e.operator,a=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BinaryExpressionFunctionNode);a.initialize(i);var o=this.insertCustomNodeToControlFlowStorage(a,n,i,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),o,e.left,e.right)}}]),t}(y.ExpressionWithOperatorControlFlowReplacer);b.usingExistingIdentifierChance=.5,b=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],b),t.BinaryExpressionControlFlowReplacer=b},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(28),v=n(13),C=n(14),S=n(10),N=n(12),A=r=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,u.default)(t).call(this,r,i))).controlFlowCustomNodeFactory=e,o.arrayUtils=n,o}return(0,d.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,n){if(n&&S.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!r.canTransformBlockStatementNode(e))return e;var n=e.body,i=this.arrayUtils.createWithRange(n.length),a=this.arrayUtils.shuffle(i),o=i.map((function(e){return a.indexOf(e)})),s=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);s.initialize(n,a,o);var u=s.getNode()[0];return N.NodeUtils.parentizeNode(u,t),u}}],[{key:"isProhibitedStatementNode",value:function(e){var t=S.NodeGuards.isBreakStatementNode(e)||S.NodeGuards.isContinueStatementNode(e),n=S.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),r=S.NodeGuards.isClassDeclarationNode(e);return S.NodeGuards.isFunctionDeclarationNode(e)||t||n||r}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return y.traverse(e,{enter:function(e){if(S.NodeGuards.isWhileStatementNode(e))return y.VisitorOption.Skip;r.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(C.AbstractNodeTransformer);A=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,g.inject(m.ServiceIdentifiers.IArrayUtils)),f(2,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(3,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object,Object])],A),t.BlockStatementControlFlowTransformer=A},function(e,t,n){var r,i,a;!function(n,o){"use strict";i=[t],void 0===(a="function"==typeof(r=function e(t){var n,r,i,a,o,s,u,d,l;(r=Array.isArray)||(r=function(e){return"[object Array]"===Object.prototype.toString.call(e)});function c(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?c(n):n);return r}function p(e,t){this.parent=e,this.key=t}function f(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function h(){}function g(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function m(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function y(e,t){return(new h).traverse(e,t)}function b(e,t){var n;return n=function(e,t){var n,r,i,a;for(r=e.length,i=0;r;)t(e[a=i+(n=r>>>1)])?r=n:(i=a+1,r-=n+1);return i}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}return o=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}(),s=Object.keys||function(e){var t,n=[];for(t in e)n.push(t);return n},n={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportBatchSpecifier:"ExportBatchSpecifier",ExportDeclaration:"ExportDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","defaults","rest","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","body","superClass"],ClassExpression:["id","body","superClass"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportBatchSpecifier:[],ExportDeclaration:["declaration","specifiers","source"],ExportSpecifier:["id","name"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","defaults","rest","body"],FunctionExpression:["id","params","defaults","rest","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["id"],ImportNamespaceSpecifier:["id"],ImportSpecifier:["id","name"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handlers","handler","guardedHandlers","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},i={Break:u={},Skip:d={},Remove:l={}},p.prototype.replace=function(e){this.parent[this.key]=e},p.prototype.remove=function(){return r(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},h.prototype.path=function(){var e,t,n,i,a;function o(e,t){if(r(t))for(n=0,i=t.length;n=0;)if(v=o[p=b[h]])if(r(v)){for(y=v.length;(y-=1)>=0;)if(v[y]){if(m(l,b[h]))a=new f(v[y],[p,y],"Property",null);else{if(!g(v[y]))continue;a=new f(v[y],[p,y],null,null)}n.push(a)}}else g(v)&&n.push(new f(v,p,null,null))}}else if(a=i.pop(),c=this.__execute(t.leave,a),this.__state===u||c===u)return},h.prototype.replace=function(e,t){function n(e){var t,n,r,a;if(e.ref.remove())for(n=e.ref.key,a=e.ref.parent,t=i.length;t--;)if((r=i[t]).ref&&r.ref.parent===a){if(r.ref.key=0;)if(S=o[_=C[b]])if(r(S)){for(v=S.length;(v-=1)>=0;)if(S[v]){if(m(c,C[b]))y=new f(S[v],[_,v],"Property",new p(S,v));else{if(!g(S[v]))continue;y=new f(S[v],[_,v],null,new p(S,v))}i.push(y)}}else g(S)&&i.push(new f(S,_,null,new p(o,_)))}}else if(y=a.pop(),void 0!==(h=this.__execute(t.leave,y))&&h!==u&&h!==d&&h!==l&&y.ref.replace(h),this.__state!==l&&h!==l||n(y),this.__state===u||h===u)return A.root;return A.root},t.version="1.8.1-dev",t.Syntax=n,t.traverse=y,t.replace=function(e,t){return(new h).replace(e,t)},t.attachComments=function(e,t,n){var r,a,o,s,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(o=0,a=t.length;oe.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(s,1)):s+=1;return s===u.length?i.Break:u[s].extendedRange[0]>e.range[1]?i.Skip:void 0}}),s=0,y(e,{leave:function(e){for(var t;se.range[1]?i.Skip:void 0}}),e},t.VisitorKeys=a,t.VisitorOption=i,t.Controller=h,t.cloneEnvironment=function(){return e({})},t})?r.apply(t,i):r)||(e.exports=a)}()},function(e,t,n){!function(){"use strict";t.ast=n(152),t.code=n(82),t.keyword=n(153)}()},function(e,t){!function(){"use strict";function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()},function(e,t,n){!function(){"use strict";var t=n(82);function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function a(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function o(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function s(e){var n,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(a=e.charCodeAt(n))&&a<=57343))return!1;i=1024*(i-55296)+(a-56320)+65536}if(!o(i))return!1;o=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:u,isIdentifierES5:function(e,t){return s(e)&&!a(e,t)},isIdentifierES6:function(e,t){return u(e)&&!o(e,t)}}}()},function(e,t,n){t.SourceMapGenerator=n(155).SourceMapGenerator,t.SourceMapConsumer=n(156).SourceMapConsumer,t.SourceNode=n(157).SourceNode},function(e,t,n){(function(e){if("function"!=typeof t)var t=n(63)(e,n(64));t((function(e,t,n){var r=e("./base64-vlq"),i=e("./util"),a=e("./array-set").ArraySet,o=e("./mapping-list").MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)})),n},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),a=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,a),null==r||this._sources.has(r)||this._sources.add(r),null==a||this._names.has(a)||this._names.add(a),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:a})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var o=this._sourceRoot;null!=o&&(r=i.relative(o,r));var s=new a,u=new a;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=n&&(t.source=i.join(n,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var d=t.source;null==d||s.has(d)||s.add(d);var l=t.name;null==l||u.has(l)||u.add(l)}),this),this._sources=s,this._names=u,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,r))}),this)},s.prototype._validateMapping=function(e,t,n,r){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t=0,n=1,a=0,o=0,s=0,u=0,d="",l=this._mappings.toArray(),c=0,p=l.length;c0){if(!i.compareByGeneratedPositions(e,l[c-1]))continue;d+=","}d+=r.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(d+=r.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),d+=r.encode(e.originalLine-1-o),o=e.originalLine-1,d+=r.encode(e.originalColumn-a),a=e.originalColumn,null!=e.name&&(d+=r.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return d},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this)},t.SourceMapGenerator=s}))}).call(this,n(47)(e))},function(e,t,n){(function(e){if("function"!=typeof t)var t=n(63)(e,n(64));t((function(e,t,n){var r=e("./util");function i(t){var n=t;return"string"==typeof t&&(n=JSON.parse(t.replace(/^\)\]\}'/,""))),null!=n.sections?new(e("./indexed-source-map-consumer").IndexedSourceMapConsumer)(n):new(e("./basic-source-map-consumer").BasicSourceMapConsumer)(n)}i.fromSourceMap=function(t){return e("./basic-source-map-consumer").BasicSourceMapConsumer.fromSourceMap(t)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{get:function(){return this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__originalMappings}}),i.prototype._nextCharIsMappingSeparator=function(e){var t=e.charAt(0);return";"===t||","===t},i.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.prototype.eachMapping=function(e,t,n){var a,o=t||null;switch(n||i.GENERATED_ORDER){case i.GENERATED_ORDER:a=this._generatedMappings;break;case i.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var s=this.sourceRoot;a.map((function(e){var t=e.source;return null!=t&&null!=s&&(t=r.join(s,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name}})).forEach(e,o)},i.prototype.allGeneratedPositionsFor=function(e){var t={source:r.getArg(e,"source"),originalLine:r.getArg(e,"line"),originalColumn:1/0};null!=this.sourceRoot&&(t.source=r.relative(this.sourceRoot,t.source));var n=[],i=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions);if(i>=0)for(var a=this._originalMappings[i];a&&a.originalLine===t.originalLine;)n.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[--i];return n.reverse()},t.SourceMapConsumer=i}))}).call(this,n(47)(e))},function(e,t,n){(function(e){if("function"!=typeof t)var t=n(63)(e,n(64));t((function(e,t,n){var r=e("./source-map-generator").SourceMapGenerator,i=e("./util"),a=/(\r?\n)/,o="$$$isSourceNode$$$";function s(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[o]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(e,t,n){var r=new s,o=e.split(a),u=function(){return o.shift()+(o.shift()||"")},d=1,l=0,c=null;return t.eachMapping((function(e){if(null!==c){if(!(d0&&(c&&p(c,u()),r.add(o.join(""))),t.sources.forEach((function(e){var a=t.sourceContentFor(e);null!=a&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,a))})),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var a=n?i.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,a,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n=0.10.0"},"maintainers":[{"name":"Artem Govorov","email":"artem.govorov@gmail.com","web":"http://dm.gl"}],"repository":{"type":"git","url":"http://github.com/wallabyjs/escodegen.git"},"dependencies":{"estraverse":"^1.9.1","esutils":"^2.0.2","esprima":"^2.7.1","optionator":"^0.8.1"},"optionalDependencies":{"source-map":"~0.2.0"},"devDependencies":{"acorn":"^2.7.0","bluebird":"^2.3.11","bower-registry-client":"^0.2.1","chai":"^1.10.0","commonjs-everywhere":"^0.9.7","gulp":"^3.8.10","gulp-eslint":"^0.2.0","gulp-mocha":"^2.0.0","semver":"^5.1.0"},"licenses":[{"type":"BSD","url":"http://github.com/wallabyjs/escodegen/raw/master/LICENSE.BSD"}],"scripts":{"test":"gulp travis","unit-test":"gulp test","lint":"gulp lint","release":"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js","build":"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"}}')},function(e,t,n){"use strict";const r=n(160),i=/^[\da-fA-F]+$/,a=/^\d+$/,o=new WeakMap;function s(e){e=e.Parser.acorn||e;let t=o.get(e);if(!t){const n=e.tokTypes,r=e.TokContext,i=e.TokenType,a=new r("...",!0,!0),d={tc_oTag:a,tc_cTag:s,tc_expr:u},l={jsxName:new i("jsxName"),jsxText:new i("jsxText",{beforeExpr:!0}),jsxTagStart:new i("jsxTagStart"),jsxTagEnd:new i("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(u),this.context.push(a),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===a&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===u):this.exprAllowed=!0},t={tokContexts:d,tokTypes:l},o.set(e,t)}return t}function u(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?u(e.object)+"."+u(e.property):void 0:e}e.exports=function(e){return e=e||{},function(t){return function(e,t){const o=t.acorn||n(65),d=s(o),l=o.tokTypes,c=d.tokTypes,p=o.tokContexts,f=d.tokContexts.tc_oTag,h=d.tokContexts.tc_cTag,g=d.tokContexts.tc_expr,m=o.isNewLine,y=o.isIdentifierStart,b=o.isIdentifierChar;return class extends t{static get acornJsx(){return d}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?60===n&&this.exprAllowed?(++this.pos,this.finishToken(c.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(c.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;default:m(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let r=this.input.charCodeAt(this.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):m(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e,t="",n=0,o=this.input[this.pos];"&"!==o&&this.raise(this.pos,"Entity must start with an ampersand");let s=++this.pos;for(;this.pos")}let o=i.name?"Element":"Fragment";return n["opening"+o]=i,n["closing"+o]=a,n.children=r,this.type===l.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+o)}jsx_parseText(e){let t=this.parseLiteral(e);return t.type="JSXText",t}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===c.jsxText?this.jsx_parseText(this.value):this.type===c.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===g)return this.jsx_readToken();if(t===f||t===h){if(y(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(c.jsxTagEnd);if((34===e||39===e)&&t==f)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(c.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(p.b_expr):t==g?this.context.push(p.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==l.slash||e!==c.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(h),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(n(65)).tokTypes},configurable:!0,enumerable:!0})},function(e,t){e.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},function(e,t,n){"use strict";e.exports={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression",JSXIdentifier:"JSXIdentifier",JSXNamespacedName:"JSXNamespacedName",JSXMemberExpression:"JSXMemberExpression",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXElement:"JSXElement",JSXClosingElement:"JSXClosingElement",JSXOpeningElement:"JSXOpeningElement",JSXAttribute:"JSXAttribute",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportAllDeclaration:"ExportAllDeclaration",ExportSpecifier:"ExportSpecifier",ImportDeclaration:"ImportDeclaration",ImportSpecifier:"ImportSpecifier",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier"}},function(e,t,n){"use strict";const r=n(163),i=5,a=Symbol("espree's internal state"),o=Symbol("espree's esprimaFinishNode");function s(e){const t=function(e=i){if("number"!=typeof e)throw new Error(`ecmaVersion must be a number. Received value of type ${typeof e} instead.`);let t=e;switch(t>=2015&&(t-=2009),t){case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:return t}throw new Error("Invalid ecmaVersion.")}(e.ecmaVersion),n=function(e="script"){if("script"===e||"module"===e)return e;throw new Error("Invalid sourceType.")}(e.sourceType),r=!0===e.range,a=!0===e.loc;if("module"===n&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:n,ranges:r,locations:a})}e.exports=()=>e=>{const t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,n){"object"==typeof e&&null!==e||(e={}),"string"==typeof n||n instanceof String||(n=String(n));const i=s(e),o=i.ecmaFeatures||{},u=!0===i.tokens?new r(t,n):null;super({ecmaVersion:i.ecmaVersion,sourceType:i.sourceType,ranges:i.ranges,locations:i.locations,allowReturnOutsideFunction:Boolean(o.globalReturn),onToken:e=>{u&&u.onToken(e,this[a]),e.type!==t.eof&&(this[a].lastToken=e)},onComment:(e,t,n,r,i,o)=>{if(this[a].comments){const s=function(e,t,n,r,i,a){const o={type:e?"Block":"Line",value:t};return"number"==typeof n&&(o.start=n,o.end=r,o.range=[n,r]),"object"==typeof i&&(o.loc={start:i,end:a}),o}(e,t,n,r,i,o);this[a].comments.push(s)}}},n),this[a]={tokens:u?[]:null,comments:!0===i.comment?[]:null,impliedStrict:!0===o.impliedStrict&&this.options.ecmaVersion>=5,ecmaVersion:this.options.ecmaVersion,jsxAttrValueToken:!1,lastToken:null}}tokenize(){do{this.next()}while(this.type!==t.eof);this.next();const e=this[a],n=e.tokens;return e.comments&&(n.comments=e.comments),n}finishNode(...e){const t=super.finishNode(...e);return this[o](t)}finishNodeAt(...e){const t=super.finishNodeAt(...e);return this[o](t)}parse(){const e=this[a],t=super.parse();return t.sourceType=this.options.sourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.range&&(t.range[0]=t.body.length?t.body[0].range[0]:t.range[0],t.range[1]=e.lastToken?e.lastToken.range[1]:t.range[1]),t.loc&&(t.loc.start=t.body.length?t.body[0].loc.start:t.loc.start,t.loc.end=e.lastToken?e.lastToken.loc.end:t.loc.end),t}parseTopLevel(e){return this[a].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,n){const r=e.acorn.getLineInfo(this.input,t),i=new SyntaxError(n);throw i.index=t,i.lineNumber=r.line,i.column=r.column+1,i}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t="Unexpected token";if(null!=e){if(this.pos=e,this.options.locations)for(;this.posthis.start&&(t+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,t)}jsx_readString(e){const n=super.jsx_readString(e);return this.type===t.string&&(this[a].jsxAttrValueToken=!0),n}[o](e){if("TemplateElement"===e.type){const t="${"===this.input.slice(e.end,e.end+2);e.range&&(e.range[0]--,e.range[1]+=t?2:1),e.loc&&(e.loc.start.column--,e.loc.end.column+=t?2:1)}return e.type.indexOf("Function")>-1&&!e.generator&&(e.generator=!1),e}}}},function(e,t,n){"use strict";const r={Boolean:"Boolean",EOF:"",Identifier:"Identifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function i(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}i.prototype={constructor:i,translate(e,t){const n=e.type,i=this._acornTokTypes;if(n===i.name)e.type=r.Identifier,"static"===e.value&&(e.type=r.Keyword),t.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=r.Keyword);else if(n===i.semi||n===i.comma||n===i.parenL||n===i.parenR||n===i.braceL||n===i.braceR||n===i.dot||n===i.bracketL||n===i.colon||n===i.question||n===i.bracketR||n===i.ellipsis||n===i.arrow||n===i.jsxTagStart||n===i.incDec||n===i.starstar||n===i.jsxTagEnd||n===i.prefix||n.binop&&!n.keyword||n.isAssign)e.type=r.Punctuator,e.value=this._code.slice(e.start,e.end);else if(n===i.jsxName)e.type=r.JSXIdentifier;else if("jsxText"===n.label||n===i.jsxAttrValueToken)e.type=r.JSXText;else if(n.keyword)"true"===n.keyword||"false"===n.keyword?e.type=r.Boolean:"null"===n.keyword?e.type=r.Null:e.type=r.Keyword;else if(n===i.num)e.type=r.Numeric,e.value=this._code.slice(e.start,e.end);else if(n===i.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=r.JSXText):e.type=r.String,e.value=this._code.slice(e.start,e.end);else if(n===i.regexp){e.type=r.RegularExpression;const t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){const n=this,i=this._acornTokTypes,a=t.tokens,o=this._tokens;function s(){a.push(function(e,t){const n=e[0],i=e[e.length-1],a={type:r.Template,value:t.slice(n.start,i.end)};return n.loc&&(a.loc={start:n.loc.start,end:i.loc.end}),n.range&&(a.start=n.range[0],a.end=i.range[1],a.range=[a.start,a.end]),a}(n._tokens,n._code)),n._tokens=[]}if(e.type!==i.eof){if(e.type===i.backQuote)return this._curlyBrace&&(a.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),o.push(e),void(o.length>1&&s());if(e.type===i.dollarBraceL)return o.push(e),void s();if(e.type===i.braceR)return this._curlyBrace&&a.push(this.translate(this._curlyBrace,t)),void(this._curlyBrace=e);if(e.type===i.template||e.type===i.invalidTemplate)return this._curlyBrace&&(o.push(this._curlyBrace),this._curlyBrace=null),void o.push(e);this._curlyBrace&&(a.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),a.push(this.translate(e,t))}else this._curlyBrace&&a.push(this.translate(this._curlyBrace,t))}},e.exports=i},function(e){e.exports=JSON.parse('{"name":"espree","description":"An Esprima-compatible JavaScript parser built on Acorn","author":"Nicholas C. Zakas ","homepage":"https://github.com/eslint/espree","main":"espree.js","version":"6.1.2","files":["lib","espree.js"],"engines":{"node":">=6.0.0"},"repository":"eslint/espree","bugs":{"url":"http://github.com/eslint/espree.git"},"license":"BSD-2-Clause","dependencies":{"acorn":"^7.1.0","acorn-jsx":"^5.1.0","eslint-visitor-keys":"^1.1.0"},"devDependencies":{"browserify":"^16.5.0","chai":"^4.2.0","eslint":"^6.0.1","eslint-config-eslint":"^5.0.1","eslint-plugin-node":"^9.1.0","eslint-release":"^1.0.0","esprima":"latest","esprima-fb":"^8001.2001.0-dev-harmony-fb","json-diff":"^0.5.4","leche":"^2.3.0","mocha":"^6.2.0","nyc":"^14.1.1","regenerate":"^1.4.0","shelljs":"^0.3.0","shelljs-nodecli":"^0.1.1","unicode-6.3.0":"^0.7.5"},"keywords":["ast","ecmascript","javascript","parser","syntax","acorn"],"scripts":{"generate-regex":"node tools/generate-identifier-regex.js","test":"npm run-script lint && node Makefile.js test","lint":"node Makefile.js lint","browserify":"node Makefile.js browserify","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"}}')},function(e,t,n){"use strict";const r=n(166),i=Object.freeze(Object.keys(r));for(const e of i)Object.freeze(r[e]);Object.freeze(r);const a=new Set(["parent","leadingComments","trailingComments"]);function o(e){return!a.has(e)&&"_"!==e[0]}e.exports=Object.freeze({KEYS:r,getKeys:e=>Object.keys(e).filter(o),unionWith(e){const t=Object.assign({},r);for(const n of Object.keys(e))if(t.hasOwnProperty(n)){const r=new Set(e[n]);for(const e of t[n])r.add(e);t[n]=Object.freeze(Array.from(r))}else t[n]=Object.freeze(Array.from(e[n]));return Object.freeze(t)}})},function(e){e.exports=JSON.parse('{"AssignmentExpression":["left","right"],"AssignmentPattern":["left","right"],"ArrayExpression":["elements"],"ArrayPattern":["elements"],"ArrowFunctionExpression":["params","body"],"AwaitExpression":["argument"],"BlockStatement":["body"],"BinaryExpression":["left","right"],"BreakStatement":["label"],"CallExpression":["callee","arguments"],"CatchClause":["param","body"],"ClassBody":["body"],"ClassDeclaration":["id","superClass","body"],"ClassExpression":["id","superClass","body"],"ConditionalExpression":["test","consequent","alternate"],"ContinueStatement":["label"],"DebuggerStatement":[],"DoWhileStatement":["body","test"],"EmptyStatement":[],"ExportAllDeclaration":["source"],"ExportDefaultDeclaration":["declaration"],"ExportNamedDeclaration":["declaration","specifiers","source"],"ExportSpecifier":["exported","local"],"ExpressionStatement":["expression"],"ExperimentalRestProperty":["argument"],"ExperimentalSpreadProperty":["argument"],"ForStatement":["init","test","update","body"],"ForInStatement":["left","right","body"],"ForOfStatement":["left","right","body"],"FunctionDeclaration":["id","params","body"],"FunctionExpression":["id","params","body"],"Identifier":[],"IfStatement":["test","consequent","alternate"],"ImportDeclaration":["specifiers","source"],"ImportDefaultSpecifier":["local"],"ImportExpression":["source"],"ImportNamespaceSpecifier":["local"],"ImportSpecifier":["imported","local"],"JSXAttribute":["name","value"],"JSXClosingElement":["name"],"JSXElement":["openingElement","children","closingElement"],"JSXEmptyExpression":[],"JSXExpressionContainer":["expression"],"JSXIdentifier":[],"JSXMemberExpression":["object","property"],"JSXNamespacedName":["namespace","name"],"JSXOpeningElement":["name","attributes"],"JSXSpreadAttribute":["argument"],"JSXText":[],"JSXFragment":["openingFragment","children","closingFragment"],"Literal":[],"LabeledStatement":["label","body"],"LogicalExpression":["left","right"],"MemberExpression":["object","property"],"MetaProperty":["meta","property"],"MethodDefinition":["key","value"],"NewExpression":["callee","arguments"],"ObjectExpression":["properties"],"ObjectPattern":["properties"],"Program":["body"],"Property":["key","value"],"RestElement":["argument"],"ReturnStatement":["argument"],"SequenceExpression":["expressions"],"SpreadElement":["argument"],"Super":[],"SwitchStatement":["discriminant","cases"],"SwitchCase":["test","consequent"],"TaggedTemplateExpression":["tag","quasi"],"TemplateElement":[],"TemplateLiteral":["quasis","expressions"],"ThisExpression":[],"ThrowStatement":["argument"],"TryStatement":["block","handler","finalizer"],"UnaryExpression":["argument"],"UpdateExpression":["argument"],"VariableDeclaration":["declarations"],"VariableDeclarator":["id","init"],"WhileStatement":["test","body"],"WithStatement":["object","body"],"YieldExpression":["argument"]}')},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(28),y=n(61),b=n(10),v=r=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"replace",value:function(e,t,n){var i=e.callee;if(!b.NodeGuards.isIdentifierNode(i))return e;var a=String(e.arguments.length),o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.CallExpressionFunctionNode),s=e.arguments;o.initialize(s);var u=this.insertCustomNodeToControlFlowStorage(o,n,a,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),u,i,s)}},{key:"getControlFlowStorageCallNode",value:function(e,t,n,r){var i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);i.initialize(e,t,n,r);var a=i.getNode()[0];if(!a||!b.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),t}(y.AbstractControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowReplacer=v},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(84),v=n(32),C=n(24),S=n(13),N=n(14),A=n(15),_=n(10),E=n(31),I=n(12),T=r=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,u.default)(t).call(this,r,i))).deadCodeInjectionRootAstHostNodeSet=new Set,o.collectedBlockStatements=[],o.collectedBlockStatementsTotalLength=0,o.deadCodeInjectionCustomNodeFactory=e,o.transformersRunner=n,o}return(0,d.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.DeadCodeInjection:return{enter:function(e,n){if(n&&_.NodeGuards.isProgramNode(e))return t.analyzeNode(e,n),e},leave:function(e,n){if(n&&_.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,n)}};case S.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,n){if(n&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,n)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var n=this;y.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)){var t=I.NodeUtils.clone(e);if(r.isValidCollectedBlockStatementNode(t)){var i=n.makeClonedBlockStatementNodeUnique(t);n.collectedBlockStatements.push(i)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!r.isValidWrappedBlockStatementNode(e))return e;var n=this.collectedBlockStatements.length-1,i=this.randomGenerator.getRandomInteger(0,n),a=this.collectedBlockStatements.splice(i,1)[0];return a===e?e:this.replaceBlockStatementNode(e,a,t)}},{key:"restoreNode",value:function(e,t){var n=e.body[0];if(!_.NodeGuards.isFunctionDeclarationNode(n))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return n.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return _.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=A.NodeFactory.functionExpressionNode([],e);return I.NodeUtils.parentizeNode(t,t),I.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,r.transformersToRenameBlockScopeIdentifiers,S.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,n){var i=A.NodeFactory.blockStatementNode([A.NodeFactory.functionDeclarationNode(r.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(i);var a=this.deadCodeInjectionCustomNodeFactory(b.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);a.initialize(e,i);var o=a.getNode()[0];return I.NodeUtils.parentizeNode(o,n),o}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return _.NodeGuards.isBreakStatementNode(e)||_.NodeGuards.isContinueStatementNode(e)||_.NodeGuards.isAwaitExpressionNode(e)||_.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!_.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=E.NodeStatementUtils.getScopeOfNode(e),n=_.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,r=n.indexOf(e);if(0===r)return!1;var i=n.slice(0,r),a=A.NodeFactory.blockStatementNode(i),o=e.id.name,s=!1;return y.traverse(a,{enter:function(e){if(_.NodeGuards.isIdentifierNode(e)&&e.name===o)return s=!0,y.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,n=!0;return y.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)&&t++,t>r.maxNestedBlockStatementsCount||r.isProhibitedNodeInsideCollectedBlockStatement(e)||r.isScopeHoistingFunctionDeclaration(e))return n=!1,y.VisitorOption.Break}}),n}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return y.traverse(e,{enter:function(e){if(r.isScopeHoistingFunctionDeclaration(e))return t=!1,y.VisitorOption.Break}}),!!t&&E.NodeStatementUtils.getParentNodeWithStatements(e).type!==C.NodeType.Program}}]),t}(N.AbstractNodeTransformer);T.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",T.maxNestedBlockStatementsCount=4,T.minCollectedBlockStatementsCount=5,T.transformersToRenameBlockScopeIdentifiers=[v.NodeTransformer.CatchClauseTransformer,v.NodeTransformer.ClassDeclarationTransformer,v.NodeTransformer.FunctionDeclarationTransformer,v.NodeTransformer.FunctionTransformer,v.NodeTransformer.LabeledStatementTransformer,v.NodeTransformer.VariableDeclarationTransformer],T=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),f(1,g.inject(m.ServiceIdentifiers.ITransformersRunner)),f(2,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(3,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object,Object])],T),t.DeadCodeInjectionTransformer=T},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(28),v=n(80),C=n(24),S=n(13),N=n(14),A=n(33),_=n(10),E=n(20),I=n(31),T=r=function(e){function t(e,n,r,i,o){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,u.default)(t).call(this,i,o))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=n,d.controlFlowCustomNodeFactory=r,d}return(0,d.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.ControlFlowFlattening:return{leave:function(e,n){if(n&&(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!_.NodeGuards.isBlockStatementNode(e.body))return e;var n=this.getHostNode(e.body),r=this.getControlFlowStorage(n);if(this.controlFlowData.set(n,r),this.transformFunctionBody(e.body,r),!r.getLength())return e;var i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.ControlFlowStorageNode);return i.initialize(r),A.NodeAppender.prepend(n,i.getNode()),this.hostNodesWithControlFlowNode.add(n),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(_.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var n=this.controlFlowData.get(e);t.mergeWith(n,!0)}return t}},{key:"getHostNode",value:function(e){var t=I.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>r.hostNodeSearchMinDepth&&t.splice(0,r.hostNodeSearchMinDepth),t.length>r.hostNodeSearchMaxDepth&&(t.length=r.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var n=this;y.replace(e,{enter:function(e,i){if(E.NodeMetadata.isIgnoredNode(e))return y.VisitorOption.Skip;if(n.isVisitedFunctionNode(e)||!i)return y.VisitorOption.Skip;if(!r.controlFlowReplacersMap.has(e.type))return e;if(n.randomGenerator.getMathRandom()>n.options.controlFlowFlatteningThreshold)return e;var a=r.controlFlowReplacersMap.get(e.type);return void 0===a?e:Object.assign(Object.assign({},n.controlFlowReplacerFactory(a).replace(e,i,t)),{parentNode:i})}})}}]),t}(N.AbstractNodeTransformer);T.controlFlowReplacersMap=new Map([[C.NodeType.BinaryExpression,v.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[C.NodeType.CallExpression,v.ControlFlowReplacer.CallExpressionControlFlowReplacer],[C.NodeType.LogicalExpression,v.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[C.NodeType.Literal,v.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),T.hostNodeSearchMinDepth=0,T.hostNodeSearchMaxDepth=2,T=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__TControlFlowStorage)),f(1,g.inject(m.ServiceIdentifiers.Factory__IControlFlowReplacer)),f(2,g.inject(m.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(3,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(4,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Function,Function,Object,Object])],T),t.FunctionControlFlowTransformer=T},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(28),y=n(81),b=n(10),v=n(12),C=r=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"replace",value:function(e,t,n){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var i=e.operator,a=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.LogicalExpressionFunctionNode);a.initialize(i);var o=this.insertCustomNodeToControlFlowStorage(a,n,i,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),o,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some((function(e){var t;return t=b.NodeGuards.isUnaryExpressionNode(e)?v.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(b.NodeGuards.isLiteralNode(t)||b.NodeGuards.isIdentifierNode(t)||b.NodeGuards.isObjectExpressionNode(t)||b.NodeGuards.isExpressionStatementNode(t))}))}}]),t}(y.ExpressionWithOperatorControlFlowReplacer);C.usingExistingIdentifierChance=.5,C=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],C),t.LogicalExpressionControlFlowReplacer=C},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(28),y=n(61),b=n(10),v=r=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"replace",value:function(e,t,n){if(b.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var i=String(e.value),a=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.StringLiteralNode);a.initialize(e.value);var o=this.insertCustomNodeToControlFlowStorage(a,n,i,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),o)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var n=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);n.initialize(e,t);var r=n.getNode()[0];if(!r||!b.NodeGuards.isExpressionStatementNode(r))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return r.expression}}]),t}(y.AbstractControlFlowReplacer);v.usingExistingIdentifierChance=1,v=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],v),t.StringLiteralControlFlowReplacer=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(26),a=n(4),o=n(32),s=n(85),u=n(176),d=n(180),l=n(181),c=n(182),p=n(183),f=n(184),h=n(185),g=n(186);t.convertingTransformersModule=new r.ContainerModule((function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(o.NodeTransformer.MemberExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.MethodDefinitionTransformer).whenTargetNamed(o.NodeTransformer.MethodDefinitionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(c.ObjectExpressionKeysTransformer).whenTargetNamed(o.NodeTransformer.ObjectExpressionKeysTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.ObjectExpressionTransformer).whenTargetNamed(o.NodeTransformer.ObjectExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.SplitStringTransformer).whenTargetNamed(o.NodeTransformer.SplitStringTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(h.TemplateLiteralTransformer).whenTargetNamed(o.NodeTransformer.TemplateLiteralTransformer),e(a.ServiceIdentifiers.IPropertiesExtractor).to(u.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(a.ServiceIdentifiers.IPropertiesExtractor).to(g.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(a.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(i.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IPropertiesExtractor))}))},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(86),m=function(e){function t(e,n){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var n=t.parentNode,r=t.left;return g.AbstractPropertiesExtractor.isProhibitedPattern(r)?e:n&&g.AbstractPropertiesExtractor.isProhibitedHostParent(n)?e:this.transformObjectExpressionNode(e,r)}}]),t}(g.AbstractPropertiesExtractor);m=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(1,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object,Object])],m),t.AssignmentExpressionPropertiesExtractor=m},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(13),m=n(14),y=n(15),b=n(10),v=function(e){function t(e,n){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Converting:return{enter:function(e,n){if(n&&b.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(b.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=y.NodeFactory.literalNode(e.property.name)}return e}}]),t}(m.AbstractNodeTransformer);v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(1,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object,Object])],v),t.MemberExpressionTransformer=v},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(13),y=n(14),b=n(15),v=n(10),C=r=function(e){function t(e,n){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Converting:return{enter:function(e,n){if(n&&v.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e.key)&&!r.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=b.NodeFactory.literalNode(e.key.name)),e}}]),t}(y.AbstractNodeTransformer);C.ignoredNames=["constructor"],C=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(1,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object])],C),t.MethodDefinitionTransformer=C},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(24),y=n(85),b=n(13),v=n(14),C=n(10),S=r=function(e){function t(e,n,r){var i;return(0,a.default)(this,t),(i=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).propertiesExtractorFactory=e,i}return(0,d.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==b.TransformationStage.Converting?null:{enter:function(e,n){if(t.options.transformObjectKeys&&n&&C.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,n)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var n=r.propertiesExtractorsMap.get(t.type);return n?this.propertiesExtractorFactory(n).extract(e,t):e}}]),t}(v.AbstractNodeTransformer);S.propertiesExtractorsMap=new Map([[m.NodeType.AssignmentExpression,y.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[m.NodeType.VariableDeclarator,y.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),S=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IPropertiesExtractor)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],S),t.ObjectExpressionKeysTransformer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(13),m=n(14),y=n(15),b=n(10),v=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,o.default)(this,(0,s.default)(t).call(this,n,r))).escapeSequenceEncoder=e,a}return(0,u.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Converting:return{enter:function(e,n){if(n&&b.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this;return e.properties.forEach((function(e){e.key&&(e.computed?n.transformComputedProperty(e):n.transformBaseProperty(e))})),e}},{key:"transformComputedProperty",value:function(e){b.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=y.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),b.NodeGuards.isIdentifierNode(e.key)&&(e.key=y.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(m.AbstractNodeTransformer);v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.IEscapeSequenceEncoder)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object,Object,Object])],v),t.ObjectExpressionTransformer=v},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(32),y=n(13),b=n(14),v=n(15),C=n(10),S=r=function(e){function t(e,n){var r;return(0,a.default)(this,t),(r=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).runAfter=[m.NodeTransformer.ObjectExpressionKeysTransformer,m.NodeTransformer.TemplateLiteralTransformer],r}return(0,d.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case y.TransformationStage.Converting:return{enter:function(e,n){if(t.options.splitStrings)return n&&C.NodeGuards.isLiteralNode(e)?t.transformNode(e,n):void 0}};default:return null}}},{key:"transformNode",value:function(e,t){if("string"!=typeof e.value)return e;if(C.NodeGuards.isPropertyNode(t)&&!t.computed&&t.key===e)return e;if(this.options.splitStringsChunkLength>=e.value.length)return e;var n=r.chunkString(e.value,this.options.splitStringsChunkLength);return this.transformStringChunksToBinaryExpressionNode(n)}},{key:"transformStringChunksToBinaryExpressionNode",value:function(e){var t=e.pop();if(void 0===t)throw new Error("Last chunk value should not be empty");var n=v.NodeFactory.literalNode(t);return 0===e.length?n:v.NodeFactory.binaryExpressionNode("+",this.transformStringChunksToBinaryExpressionNode(e),n)}}],[{key:"chunkString",value:function(e,t){for(var n=Math.ceil(e.length/t),r=[],i=0,a=0;a=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(13),y=n(14),b=n(15),v=n(10),C=n(12),S=r=function(e){function t(e,n){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Converting:return{enter:function(e,n){if(n&&r.isValidTemplateLiteralNode(e,n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n,i=e.expressions,a=[];if(e.quasis.forEach((function(e){a.push(b.NodeFactory.literalNode(e.value.cooked));var t=i.shift();t&&a.push(t)})),a=a.filter((function(e){return!(v.NodeGuards.isLiteralNode(e)&&""===e.value)})),r.isLiteralNodeWithStringValue(a[0])||r.isLiteralNodeWithStringValue(a[1])||a.unshift(b.NodeFactory.literalNode("")),a.length>1){var o=b.NodeFactory.binaryExpressionNode("+",a.shift(),a.shift());a.forEach((function(e){o=b.NodeFactory.binaryExpressionNode("+",o,e)})),n=o}else n=a[0];return C.NodeUtils.parentizeAst(n),n}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&v.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return v.NodeGuards.isTemplateLiteralNode(e)&&!v.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(y.AbstractNodeTransformer);S=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(1,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object])],S),t.TemplateLiteralTransformer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(86),b=n(10),v=function(e){function t(e,n){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){return!b.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!b.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!b.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var n=this.getHostVariableDeclaratorNode(e),r=this.getHostVariableDeclarationNode(n).declarations,i=r.indexOf(n);if(i===r.length-1)return!1;var a=r.slice(i),o=!1;return a.forEach((function(e){m.traverse(e,{enter:function(e){return b.NodeGuards.isMemberExpressionNode(e)&&b.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(o=!0,m.VisitorOption.Break):e}})})),o}}]),t}(y.AbstractPropertiesExtractor);v=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(1,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object,Object])],v),t.VariableDeclaratorPropertiesExtractor=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),i=n(2),a=n(4),o=n(28),s=n(39),u=n(87),d=n(84),l=n(188),c=n(189),p=n(190),f=n(191),h=n(192),g=n(193),m=n(196),y=n(197),b=n(198),v=n(199),C=n(200),S=n(201),N=n(203),A=n(205),_=n(207),E=n(211),I=n(213),T=n(214),D=n(215),P=n(217),M=n(219),F=n(226),O=n(229),x=n(232),R=n(233);t.customNodesModule=new i.ContainerModule((function(e){e(a.ServiceIdentifiers.ICustomNode).to(S.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(N.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(A.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(_.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(E.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(D.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(P.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(M.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(F.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(O.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(o.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(m.BlockStatementControlFlowFlatteningNode).whenTargetNamed(o.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(b.CallExpressionControlFlowStorageCallNode).whenTargetNamed(o.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.CallExpressionFunctionNode).whenTargetNamed(o.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(C.ControlFlowStorageNode).whenTargetNamed(o.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(I.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(o.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(T.LogicalExpressionFunctionNode).whenTargetNamed(o.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(o.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(x.StringLiteralControlFlowStorageCallNode).whenTargetNamed(o.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.ConsoleOutputCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(c.DebugProtectionCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.DomainLockCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.SelfDefendingCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(h.StringArrayCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(r.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(r.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(r.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(r.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))}))},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(39),y=n(34),b=n(44),v=n(33),C=function(e){function t(e,n,r,a){var u;return(0,i.default)(this,t),(u=(0,o.default)(this,(0,s.default)(t).call(this,n,r,a))).appendEvent=y.ObfuscationEvent.BeforeObfuscation,u.customNodeFactory=e,u}return(0,u.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.ConsoleOutputDisableExpressionNode,(function(r){v.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)})),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,(function(r){var i=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e;v.NodeAppender.prepend(i,r.getNode())}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.ConsoleOutputDisableExpressionNode),n=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),t}(b.AbstractCustomNodeGroup);l([g.initializable(),c("design:type",Map)],C.prototype,"customNodes",void 0),C=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__ICustomNode)),p(1,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(2,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(3,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Function,Object,Object])],C),t.ConsoleOutputCustomNodeGroup=C},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(39),y=n(34),b=n(44),v=n(33),C=n(10),S=function(e){function t(e,n,r,a){var u;return(0,i.default)(this,t),(u=(0,o.default)(this,(0,s.default)(t).call(this,n,r,a))).appendEvent=y.ObfuscationEvent.BeforeObfuscation,u.customNodeFactory=e,u}return(0,u.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this,r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionCallNode,(function(n){v.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)})),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionNode,(function(t){v.NodeAppender.append(e,t.getNode())})),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionIntervalNode,(function(t){var r=C.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,i=n.randomGenerator.getRandomInteger(0,r);v.NodeAppender.insertAtIndex(e,t.getNode(),i)})),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,(function(n){var i=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e;v.NodeAppender.prepend(i,n.getNode())}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),n=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionNode),r=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionCallNode),i=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionIntervalNode),a=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);n.initialize(e),r.initialize(e,t),i.initialize(e),a.initialize(this.appendEvent,t),this.customNodes.set(m.CustomNode.DebugProtectionFunctionNode,n),this.customNodes.set(m.CustomNode.DebugProtectionFunctionCallNode,r),this.options.debugProtectionInterval&&this.customNodes.set(m.CustomNode.DebugProtectionFunctionIntervalNode,i),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,a)}}}]),t}(b.AbstractCustomNodeGroup);l([g.initializable(),c("design:type",Map)],S.prototype,"customNodes",void 0),S=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__ICustomNode)),p(1,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(2,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(3,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Function,Object,Object])],S),t.DebugProtectionCustomNodeGroup=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(39),y=n(34),b=n(44),v=n(33),C=function(e){function t(e,n,r,a){var u;return(0,i.default)(this,t),(u=(0,o.default)(this,(0,s.default)(t).call(this,n,r,a))).appendEvent=y.ObfuscationEvent.BeforeObfuscation,u.customNodeFactory=e,u}return(0,u.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DomainLockNode,(function(r){v.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)})),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,(function(r){var i=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e;v.NodeAppender.prepend(i,r.getNode())}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.DomainLockNode),n=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.DomainLockNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),t}(b.AbstractCustomNodeGroup);l([g.initializable(),c("design:type",Map)],C.prototype,"customNodes",void 0),C=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__ICustomNode)),p(1,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(2,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(3,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Function,Object,Object])],C),t.DomainLockCustomNodeGroup=C},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(39),y=n(34),b=n(44),v=n(33),C=function(e){function t(e,n,r,a){var u;return(0,i.default)(this,t),(u=(0,o.default)(this,(0,s.default)(t).call(this,n,r,a))).appendEvent=y.ObfuscationEvent.AfterObfuscation,u.customNodeFactory=e,u}return(0,u.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.SelfDefendingUnicodeNode,(function(r){v.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)})),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,(function(r){var i=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e;v.NodeAppender.prepend(i,r.getNode())}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.SelfDefendingUnicodeNode),n=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),t}(b.AbstractCustomNodeGroup);l([g.initializable(),c("design:type",Map)],C.prototype,"customNodes",void 0),C=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__ICustomNode)),p(1,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(2,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(3,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Function,Object,Object])],C),t.SelfDefendingCustomNodeGroup=C},function(e,t,n){"use strict";var r=n(0),i=r(n(29)),a=r(n(1)),o=r(n(3)),s=r(n(8)),u=r(n(7)),d=r(n(9)),l=r(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(11),y=n(39),b=n(34),v=n(44),C=n(33),S=function(e){function t(e,n,r,i,o){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,u.default)(t).call(this,r,i,o))).appendEvent=b.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=n,d}return(0,d.default)(t,e),(0,o.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(y.CustomNode.StringArrayNode,(function(t){C.NodeAppender.prepend(e,t.getNode())})),this.appendCustomNodeIfExist(y.CustomNode.StringArrayCallsWrapper,(function(t){C.NodeAppender.insertAtIndex(e,t.getNode(),1)})),this.appendCustomNodeIfExist(y.CustomNode.StringArrayRotateFunctionNode,(function(t){C.NodeAppender.insertAtIndex(e,t.getNode(),1)})))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(y.CustomNode.StringArrayNode),n=this.customNodeFactory(y.CustomNode.StringArrayCallsWrapper),r=this.customNodeFactory(y.CustomNode.StringArrayRotateFunctionNode),a=this.stringArrayStorage.getStorageId().split("|"),o=(0,i.default)(a,2),s=o[0],u=o[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),n.initialize(s,u),r.initialize(s,e),this.customNodes.set(y.CustomNode.StringArrayNode,t),this.customNodes.set(y.CustomNode.StringArrayCallsWrapper,n),this.options.rotateStringArray&&this.customNodes.set(y.CustomNode.StringArrayRotateFunctionNode,r)}}}]),t}(v.AbstractCustomNodeGroup);c([m.initializable(),p("design:type",Map)],S.prototype,"customNodes",void 0),S=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__ICustomNode)),f(1,h.inject(g.ServiceIdentifiers.TStringArrayStorage)),f(2,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(3,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(4,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Function,Object,Object])],S),t.StringArrayCustomNodeGroup=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=y.NodeFactory.expressionStatementNode(y.NodeFactory.functionExpressionNode([y.NodeFactory.identifierNode("x"),y.NodeFactory.identifierNode("y")],y.NodeFactory.blockStatementNode([y.NodeFactory.returnStatementNode(y.NodeFactory.binaryExpressionNode(this.operator,y.NodeFactory.identifierNode("x"),y.NodeFactory.identifierNode("y")))])));return b.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],v.prototype,"operator",void 0),v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],v),t.BinaryExpressionFunctionNode=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(10),v=n(12),C=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,n){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=n}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),n=this.randomGenerator.getRandomString(6),r=y.NodeFactory.blockStatementNode([y.NodeFactory.variableDeclarationNode([y.NodeFactory.variableDeclaratorNode(y.NodeFactory.identifierNode(t),y.NodeFactory.callExpressionNode(y.NodeFactory.memberExpressionNode(y.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),y.NodeFactory.identifierNode("split")),[y.NodeFactory.literalNode("|")])),y.NodeFactory.variableDeclaratorNode(y.NodeFactory.identifierNode(n),y.NodeFactory.literalNode(0))]),y.NodeFactory.whileStatementNode(y.NodeFactory.literalNode(!0),y.NodeFactory.blockStatementNode([y.NodeFactory.switchStatementNode(y.NodeFactory.memberExpressionNode(y.NodeFactory.identifierNode(t),y.NodeFactory.updateExpressionNode("++",y.NodeFactory.identifierNode(n)),!0),this.shuffledKeys.map((function(t,n){var r=e.blockStatementBody[t],i=[r];return b.NodeGuards.isReturnStatementNode(r)||i.push(y.NodeFactory.continueStatement()),y.NodeFactory.switchCaseNode(y.NodeFactory.literalNode(String(n)),i)}))),y.NodeFactory.breakStatement()]))]);return v.NodeUtils.parentizeAst(r),[r]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",Array)],C.prototype,"blockStatementBody",void 0),l([g.initializable(),c("design:type",Array)],C.prototype,"originalKeysIndexesInShuffledArray",void 0),l([g.initializable(),c("design:type",Array)],C.prototype,"shuffledKeys",void 0),C=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],C),t.BlockStatementControlFlowFlatteningNode=C},function(e,t,n){"use strict";var r=n(0),i=r(n(29)),a=r(n(1)),o=r(n(3)),s=r(n(8)),u=r(n(7)),d=r(n(9)),l=r(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(11),y=n(16),b=n(15),v=n(12),C=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,n=e?"===":"!==",r=this.randomGenerator.getRandomString(5),a=t?r:this.randomGenerator.getRandomString(5),o=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,i.default)(o,2),u=s[0],d=s[1],l=b.NodeFactory.blockStatementNode([b.NodeFactory.ifStatementNode(b.NodeFactory.binaryExpressionNode(n,b.NodeFactory.literalNode(r),b.NodeFactory.literalNode(a)),u,d)]);return v.NodeUtils.parentizeAst(l),[l]}}]),t}(y.AbstractCustomNode);c([m.initializable(),p("design:type",Object)],C.prototype,"blockStatementNode",void 0),c([m.initializable(),p("design:type",Object)],C.prototype,"deadCodeInjectionRootAstHostNode",void 0),C=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],C),t.BlockStatementDeadCodeInjectionNode=C},function(e,t,n){"use strict";var r=n(0),i=r(n(38)),a=r(n(1)),o=r(n(3)),s=r(n(8)),u=r(n(7)),d=r(n(9)),l=r(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(11),y=n(16),b=n(15),v=n(12),C=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t,n,r){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=n,this.expressionArguments=r}},{key:"getNodeStructure",value:function(){var e=b.NodeFactory.expressionStatementNode(b.NodeFactory.callExpressionNode(b.NodeFactory.memberExpressionNode(b.NodeFactory.identifierNode(this.controlFlowStorageName),b.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,i.default)(this.expressionArguments))));return v.NodeUtils.parentizeAst(e),[e]}}]),t}(y.AbstractCustomNode);c([m.initializable(),p("design:type",Object)],C.prototype,"callee",void 0),c([m.initializable(),p("design:type",String)],C.prototype,"controlFlowStorageKey",void 0),c([m.initializable(),p("design:type",String)],C.prototype,"controlFlowStorageName",void 0),c([m.initializable(),p("design:type",Array)],C.prototype,"expressionArguments",void 0),C=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],C),t.CallExpressionControlFlowStorageCallNode=C},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=y.NodeFactory.identifierNode("callee"),t=[],n=this.expressionArguments.length,r=0;r=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(11),y=n(16),b=n(15),v=n(10),C=n(12),S=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.controlFlowStorage=e}},{key:"getNodeStructure",value:function(){var e=Array.from(this.controlFlowStorage.getStorage()).map((function(e){var t=(0,i.default)(e,2),n=t[0],r=t[1].getNode()[0];if(!v.NodeGuards.isExpressionStatementNode(r))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return b.NodeFactory.propertyNode(b.NodeFactory.identifierNode(n),r.expression)})),t=b.NodeFactory.variableDeclarationNode([b.NodeFactory.variableDeclaratorNode(b.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),b.NodeFactory.objectExpressionNode(e))]);return[t=C.NodeUtils.parentizeAst(t)]}}]),t}(y.AbstractCustomNode);c([m.initializable(),p("design:type",Object)],S.prototype,"controlFlowStorage",void 0),S=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],S),t.ControlFlowStorageNode=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(35),b=n(202),v=n(66),C=n(11),S=n(16),N=n(12),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==y.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():v.GlobalVariableNoEvalTemplate();return m.default(b.ConsoleOutputDisableExpressionTemplate(),{consoleLogDisableFunctionName:this.identifierNamesGenerator.generate(),globalVariableTemplate:e,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(S.AbstractCustomNode);l([C.initializable(),c("design:type",String)],A.prototype,"callsControllerFunctionName",void 0),A=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],A),t.ConsoleOutputDisableExpressionNode=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableExpressionTemplate=function(){return"\n var {consoleLogDisableFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func = function () {};\n \n {globalVariableTemplate}\n \n if (!that.console) {\n that.console = (function (func){\n var c = {};\n \n c.log = func;\n c.warn = func;\n c.debug = func;\n c.info = func;\n c.error = func;\n c.exception = func;\n c.trace = func;\n \n return c;\n })(func);\n } else {\n that.console.log = func;\n that.console.warn = func;\n that.console.debug = func;\n that.console.info = func;\n that.console.error = func;\n that.console.exception = func;\n that.console.trace = func;\n }\n });\n \n {consoleLogDisableFunctionName}();\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(11),b=n(204),v=n(16),C=n(12),S=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return C.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return m.default(b.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);l([y.initializable(),c("design:type",String)],S.prototype,"callsControllerFunctionName",void 0),l([y.initializable(),c("design:type",String)],S.prototype,"debugProtectionFunctionName",void 0),S=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],S),t.DebugProtectionFunctionCallNode=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallTemplate=function(){return"\n (function () {\n {singleNodeCallControllerFunctionName}(this, function () {\n var regExp1 = new RegExp('function *\\\\( *\\\\)');\n var regExp2 = new RegExp('\\\\+\\\\+ *\\(?:_0x(?:[a-f0-9]){4,6}|(?:\\\\b|\\\\d)[a-z0-9]{1,4}(?:\\\\b|\\\\d)\\)', 'i');\n \n var result = {debugProtectionFunctionName}('init');\n \n if (!regExp1.test(result + 'chain') || !regExp2.test(result + 'input')) {\n result('0');\n } else {\n {debugProtectionFunctionName}();\n }\n })();\n })();\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(11),b=n(206),v=n(16),C=n(12),S=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return C.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return m.default(b.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),t}(v.AbstractCustomNode);l([y.initializable(),c("design:type",String)],S.prototype,"debugProtectionFunctionName",void 0),S=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],S),t.DebugProtectionFunctionIntervalNode=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(35),b=n(11),v=n(208),C=n(209),S=n(210),N=n(16),A=n(12),_=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return A.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==y.ObfuscationTarget.BrowserNoEval?v.DebuggerTemplate():C.DebuggerTemplateNoEval();return m.default(S.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),t}(N.AbstractCustomNode);l([b.initializable(),c("design:type",String)],_.prototype,"debugProtectionFunctionName",void 0),_=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],_),t.DebugProtectionFunctionNode=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplate=function(){return"\n if (typeof counter === 'string') {\n return (function (arg) {}.constructor('while (true) {}').apply('counter'));\n } else {\n if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {\n (function () {return true;}.constructor('debu' + 'gger').call('action'));\n } else {\n (function () {return false;}.constructor('debu' + 'gger').apply('stateObject'));\n }\n \n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplateNoEval=function(){return"\n if (typeof counter === 'string') {\n var func = function () {\n while (true) {}\n };\n \n return func();\n } else {\n if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {\n debugger;\n } else {\n debugger;\n }\n \n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionTemplate=function(){return"\n function {debugProtectionFunctionName} (ret) {\n function debuggerProtection (counter) {\n \n {debuggerTemplate}\n \n debuggerProtection(++counter);\n }\n \n try {\n if (ret) {\n return debuggerProtection;\n } else {\n debuggerProtection(0);\n }\n } catch (y) {}\n }\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(29)),a=r(n(1)),o=r(n(3)),s=r(n(8)),u=r(n(7)),d=r(n(9)),l=r(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(22)),b=n(35),v=n(11),C=n(212),S=n(66),N=n(16),A=n(12),_=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,u.default)(t).call(this,e,n,i))).cryptUtils=r,o}return(0,d.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return A.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.domainLock.join(";"),t=this.cryptUtils.hideString(e,3*e.length),n=(0,i.default)(t,2),r=n[0],a=n[1],o=this.options.target!==b.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():S.GlobalVariableNoEvalTemplate();return y.default(C.DomainLockNodeTemplate(),{domainLockFunctionName:this.identifierNamesGenerator.generate(),diff:a,domains:r,globalVariableTemplate:o,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(N.AbstractCustomNode);c([v.initializable(),p("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(2,g.inject(m.ServiceIdentifiers.ICryptUtils)),f(3,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object,Object])],_),t.DomainLockNode=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockNodeTemplate=function(){return'\n var {domainLockFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n \n {globalVariableTemplate}\n \n var func = function () {\n return {\n key: \'item\',\n value: \'attribute\',\n getAttribute: function () {\n for (var i = 0; i < 1000; i--) {\n var isPositive = i > 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,n,r){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=n,this.rightValue=r}},{key:"getNodeStructure",value:function(){var e=y.NodeFactory.expressionStatementNode(y.NodeFactory.callExpressionNode(y.NodeFactory.memberExpressionNode(y.NodeFactory.identifierNode(this.controlFlowStorageName),y.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return b.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),l([g.initializable(),c("design:type",String)],v.prototype,"controlFlowStorageName",void 0),l([g.initializable(),c("design:type",Object)],v.prototype,"leftValue",void 0),l([g.initializable(),c("design:type",Object)],v.prototype,"rightValue",void 0),v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],v),t.ExpressionWithOperatorControlFlowStorageCallNode=v},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=y.NodeFactory.expressionStatementNode(y.NodeFactory.functionExpressionNode([y.NodeFactory.identifierNode("x"),y.NodeFactory.identifierNode("y")],y.NodeFactory.blockStatementNode([y.NodeFactory.returnStatementNode(y.NodeFactory.logicalExpressionNode(this.operator,y.NodeFactory.identifierNode("x"),y.NodeFactory.identifierNode("y")))])));return b.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],v.prototype,"operator",void 0),v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionFunctionNode=v},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(34),b=n(11),v=n(216),C=n(48),S=n(16),N=n(42),A=n(12),_=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return A.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===y.ObfuscationEvent.AfterObfuscation?N.JavaScriptObfuscator.obfuscate(m.default(v.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign(Object.assign({},C.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.options.seed})).getObfuscatedCode():m.default(v.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(S.AbstractCustomNode);l([b.initializable(),c("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),l([b.initializable(),c("design:type",String)],_.prototype,"appendEvent",void 0),_=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],_),t.NodeCallsControllerFunctionNode=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(11),b=n(48),v=n(218),C=n(16),S=n(42),N=n(12),A=function(e){function t(e,n,r,a){var u;return(0,i.default)(this,t),(u=(0,o.default)(this,(0,s.default)(t).call(this,e,n,a))).escapeSequenceEncoder=r,u}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return S.JavaScriptObfuscator.obfuscate(m.default(v.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign(Object.assign({},b.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(C.AbstractCustomNode);l([y.initializable(),c("design:type",String)],A.prototype,"callsControllerFunctionName",void 0),A=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IEscapeSequenceEncoder)),p(3,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object,Object])],A),t.SelfDefendingUnicodeNode=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(35),b=n(51),v=n(11),C=n(48),S=n(220),N=n(66),A=n(221),_=n(222),E=n(223),I=n(224),T=n(225),D=n(16),P=n(42),M=n(12),F=function(e){function t(e,n,r,a){var u;return(0,i.default)(this,t),(u=(0,o.default)(this,(0,s.default)(t).call(this,e,n,a))).escapeSequenceEncoder=r,u}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return M.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return P.JavaScriptObfuscator.obfuscate(m.default(I.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign(Object.assign({},C.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==y.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():N.GlobalVariableNoEvalTemplate(),t=m.default(S.AtobTemplate(),{globalVariableTemplate:e}),n="",r="";switch(this.options.selfDefending&&(r=m.default(_.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case b.StringArrayEncoding.Rc4:n=m.default(T.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:A.Rc4Template(),selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case b.StringArrayEncoding.Base64:n=m.default(E.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return n}}]),t}(D.AbstractCustomNode);l([v.initializable(),c("design:type",String)],F.prototype,"stringArrayName",void 0),l([v.initializable(),c("design:type",String)],F.prototype,"stringArrayCallsWrapperName",void 0),F=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IEscapeSequenceEncoder)),p(3,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object,Object])],F),t.StringArrayCallsWrapper=F},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var i = 0; i < 256; i++) {\n s[i] = i;\n }\n \n for (i = 0; i < 256; i++) {\n j = (j + s[i] + key.charCodeAt(i % key.length)) % 256;\n x = s[i];\n s[i] = s[j];\n s[j] = x;\n }\n \n i = 0;\n j = 0;\n \n for (var y = 0; y < str.length; y++) {\n i = (i + 1) % 256;\n j = (j + s[i]) % 256;\n x = s[i];\n s[i] = s[j];\n s[j] = x;\n res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var n=e.getRandomString(6),r=e.getRandomString(6),i=e.getRandomString(6),a=e.getRandomString(6),o=e.getRandomString(6),s=e.getRandomString(6),u=e.getRandomString(6),d=e.getRandomString(6),l=e.getRandomString(6);return"\n var StatesClass = function (".concat(n,") {\n this.").concat(n," = ").concat(n,";\n this.").concat(r," = [1, 0, 0];\n this.").concat(i," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(o," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(o,");\n var expression = regExp.test(this.").concat(i,".toString())\n ? --this.").concat(r,"[1]\n : --this.").concat(r,"[0];\n \n return this.").concat(u,"(expression);\n };\n \n StatesClass.prototype.").concat(u," = function (").concat(l,") {\n if (!Boolean(~").concat(l,")) {\n return ").concat(l,";\n }\n \n return this.").concat(d,"(this.").concat(n,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(n,") {\n for (var i = 0, len = this.").concat(r,".length; i < len; i++) {\n this.").concat(r,".push(Math.round(Math.random()));\n len = this.").concat(r,".length;\n }\n \n return ").concat(n,"(this.").concat(r,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),n=e.getRandomString(6),r=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(n," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(r," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(r,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(n,"(value);\n {stringArrayCallsWrapperName}.").concat(r,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),n=e.getRandomString(6),r=e.getRandomString(6),i=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(n," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(r," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(r,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(i," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(i," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(n,"(value, key);\n {stringArrayCallsWrapperName}.").concat(r,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(52)),d=r(n(9)),l=r(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(22)),b=n(11),v=n(228),C=n(16),S=n(12),N=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,n){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=n}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,u.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return S.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return y.default(v.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(C.AbstractCustomNode);c([b.initializable(),p("design:type",Object)],N.prototype,"stringArrayStorage",void 0),c([b.initializable(),p("design:type",String)],N.prototype,"stringArrayName",void 0),c([b.initializable(),p("design:type",Number)],N.prototype,"stringArrayRotateValue",void 0),N=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(2,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],N),t.StringArrayNode=N},function(e,t,n){var r=n(7);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(11),b=n(48),v=n(230),C=n(231),S=n(16),N=n(42),A=n(12),_=n(53),E=function(e){function t(e,n,r,a){var u;return(0,i.default)(this,t),(u=(0,o.default)(this,(0,s.default)(t).call(this,e,n,a))).escapeSequenceEncoder=r,u}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return A.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),n="";return n=this.options.selfDefending?m.default(v.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),N.JavaScriptObfuscator.obfuscate(m.default(C.StringArrayRotateFunctionTemplate(),{code:n,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:_.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign(Object.assign({},b.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.options.seed})).getObfuscatedCode()}}]),t}(S.AbstractCustomNode);l([y.initializable(),c("design:type",String)],E.prototype,"stringArrayName",void 0),l([y.initializable(),c("design:type",Number)],E.prototype,"stringArrayRotateValue",void 0),E=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IEscapeSequenceEncoder)),p(3,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object,Object])],E),t.StringArrayRotateFunctionNode=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=y.NodeFactory.expressionStatementNode(y.NodeFactory.memberExpressionNode(y.NodeFactory.identifierNode(this.controlFlowStorageName),y.NodeFactory.identifierNode(this.controlFlowStorageKey)));return b.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),l([g.initializable(),c("design:type",String)],v.prototype,"controlFlowStorageName",void 0),v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],v),t.StringLiteralControlFlowStorageCallNode=v},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,o.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[y.NodeFactory.expressionStatementNode(y.NodeFactory.literalNode(this.literalValue))]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],b.prototype,"literalValue",void 0),b=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],b),t.StringLiteralNode=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.finalizingTransformersModule=new r.ContainerModule((function(e){}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(4),a=n(49),o=n(236),s=n(237),u=n(238);t.generatorsModule=new r.ContainerModule((function(e){e(i.ServiceIdentifiers.IIdentifierNamesGenerator).to(o.DictionaryIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),e(i.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(i.ServiceIdentifiers.IIdentifierNamesGenerator).to(u.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory((function(e){var t=null;return function(n){if(t)return t;var r;switch(n.identifierNamesGenerator){case a.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator:r=e.container.getNamed(i.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:r=e.container.getNamed(i.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:r=e.container.getNamed(i.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=r,r}}))}))},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(67),y=r=function(e){function t(e,n,r){var i;return(0,a.default)(this,t),(i=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).identifierNames=[],i.arrayUtils=r,i.identifierNames=i.getInitialIdentifierNames(i.options.identifiersDictionary),i.identifiersIterator=i.identifierNames.values(),i}return(0,d.default)(t,e),(0,o.default)(t,[{key:"generate",value:function(){if(!this.identifierNames.length)throw new Error("Too many identifiers in the code, add more words to identifiers dictionary");var e=this.identifiersIterator.next();return e.done?(this.identifierNames=this.getIncrementedIdentifierNames(this.identifierNames),this.identifiersIterator=this.identifierNames.values(),this.generate()):e.value}},{key:"generateWithPrefix",value:function(){var e=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",t=this.generate();return"".concat(e).concat(t).replace("__","_")}},{key:"getInitialIdentifierNames",value:function(e){var t=e.map((function(e){return e.toLowerCase()}));return this.arrayUtils.shuffle(t)}},{key:"getIncrementedIdentifierNames",value:function(e){var t=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value,d=r.incrementIdentifierName(u);d&&t.push(d)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return this.arrayUtils.shuffle(t)}}],[{key:"incrementIdentifierName",value:function(e){var t="",n=!1,r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var u=o.value;n||u!==u.toUpperCase()?n||u!==u.toLowerCase()?t+=u:(t+=u.toUpperCase(),n=!0):t+=u.toLowerCase()}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n?t:null}}]),t}(m.AbstractIdentifierNamesGenerator);y=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(1,h.inject(g.ServiceIdentifiers.IOptions)),f(2,h.inject(g.ServiceIdentifiers.IArrayUtils)),p("design:paramtypes",[Object,Object,Object])],y),t.DictionaryIdentifierNamesGenerator=y},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(67),y=n(53),b=n(45),v=r=function(e){function t(e,n){var r;return(0,a.default)(this,t),(r=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).randomVariableNameSet=new Set,r}return(0,d.default)(t,e),(0,o.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),n=y.NumberUtils.toHex(t),i=b.Utils.hexadecimalPrefix.length+1,a=e?e-i:r.baseIdentifierNameLength,o=n.substr(0,a),s="_".concat(b.Utils.hexadecimalPrefix).concat(o);return this.randomVariableNameSet.has(s)?this.generate(e):(this.randomVariableNameSet.add(s),s)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(m.AbstractIdentifierNamesGenerator);v.baseIdentifierNameLength=6,v=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(1,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object])],v),t.HexadecimalIdentifierNamesGenerator=v},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(52)),l=i(n(9)),c=i(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=n(67),b=r=function(e){function t(e,n){var i;return(0,a.default)(this,t),(i=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).previousMangledName=r.initMangledNameCharacter,i}return(0,l.default)(t,e),(0,o.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",n=this.generate(e);return"".concat(t).concat(n)}},{key:"isValidIdentifierName",value:function(e){return(0,d.default)((0,u.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!r.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=r.nameSequence,n=e.length,i=function(e){return"0".repeat(e)},a=n-1;do{var o=e.charAt(a),s=t.indexOf(o);if(s!==t.length-1)return e.substring(0,a)+t[s+1]+i(n-(a+1));--a}while(a>=0);return"a".concat(i(n))},n=t(e);return this.isValidIdentifierName(n)||(n=this.generateNewMangledName(n)),n}}]),t}(y.AbstractIdentifierNamesGenerator);b.initMangledNameCharacter="9",b.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),b.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],b=r=p([g.injectable(),h(0,g.inject(m.ServiceIdentifiers.IRandomGenerator)),h(1,g.inject(m.ServiceIdentifiers.IOptions)),f("design:paramtypes",[Object,Object])],b),t.MangledIdentifierNamesGenerator=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),i=n(2),a=n(4);t.nodeTransformersModule=new i.ContainerModule((function(e){e(a.ServiceIdentifiers.Factory__INodeTransformer).toFactory(r.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeTransformer))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),i=n(2),a=n(4),o=n(25),s=n(88),u=n(32),d=n(241),l=n(242),c=n(243),p=n(244),f=n(245),h=n(246),g=n(247),m=n(248),y=n(249),b=n(250),v=n(251),C=n(252);t.obfuscatingTransformersModule=new i.ContainerModule((function(e){e(a.ServiceIdentifiers.INodeTransformer).to(c.CatchClauseTransformer).whenTargetNamed(u.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.ClassDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionDeclarationTransformer).whenTargetNamed(u.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(h.FunctionTransformer).whenTargetNamed(u.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.LabeledStatementTransformer).whenTargetNamed(u.NodeTransformer.LabeledStatementTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(y.LiteralTransformer).whenTargetNamed(u.NodeTransformer.LiteralTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(C.VariableDeclarationTransformer).whenTargetNamed(u.NodeTransformer.VariableDeclarationTransformer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(l.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(b.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(v.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(o.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(a.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(r.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IObfuscatingReplacer)),e(a.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(r.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer))}))},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(54),m=n(15),y=function(e){function t(e,n){var r;return(0,i.default)(this,t),(r=(0,o.default)(this,(0,s.default)(t).call(this,n))).blockScopesMap=new Map,r.identifierNamesGenerator=e(n),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var n=this.blockScopesMap.get(t);n.has(e)&&(e=n.get(e))}return m.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var n=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,n)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var n=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,n)}}},{key:"preserveName",value:function(e){this.identifierNamesGenerator.preserveName(e)}},{key:"isReservedName",value:function(e){return!!this.options.reservedNames.length&&this.options.reservedNames.some((function(t){return null!==new RegExp(t,"g").exec(e)}))}}]),t}(g.AbstractObfuscatingReplacer);y=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object])],y),t.BaseIdentifierObfuscatingReplacer=y},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(54),y=n(15),b=r=function(e){function t(e){return(0,a.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"replace",value:function(e){return e?r.getTrueUnaryExpressionNode():r.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return y.NodeFactory.unaryExpressionNode("!",r.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return y.NodeFactory.unaryExpressionNode("!",y.NodeFactory.arrayExpressionNode())}}]),t}(m.AbstractObfuscatingReplacer);b=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object])],b),t.BooleanLiteralObfuscatingReplacer=b},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(25),b=n(13),v=n(14),C=n(10),S=n(36),N=n(20),A=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,o.default)(this,(0,s.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,u.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&C.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=S.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeCatchClauseParam(e,n),this.replaceCatchClauseParam(e,n),e):e}},{key:"storeCatchClauseParam",value:function(e,t){C.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var n=this;m.replace(e,{enter:function(e,r){if(r&&C.NodeGuards.isReplaceableIdentifierNode(e,r)){var i=n.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==i&&(e.name=i,N.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(v.AbstractNodeTransformer);A=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],A),t.CatchClauseTransformer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(25),b=n(24),v=n(13),C=n(14),S=n(10),N=n(36),A=n(20),_=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,o.default)(this,(0,s.default)(t).call(this,n,r))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,u.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isClassDeclarationNode(e)&&!S.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=N.NodeLexicalScopeUtils.getLexicalScope(e);if(!n)return e;var r=n.type===b.NodeType.Program;return!this.options.renameGlobals&&r?e:(this.storeClassName(e,n,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n):this.replaceScopeIdentifiers(n),e)}},{key:"storeClassName",value:function(e,t,n){n?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var n=this.replaceableIdentifiers.get(t).get(e.id.name);if(n)for(var r=n.length,i=0;i=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(25),b=n(24),v=n(13),C=n(14),S=n(10),N=n(36),A=n(20),_=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,o.default)(this,(0,s.default)(t).call(this,n,r))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,u.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isFunctionDeclarationNode(e)&&!S.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=N.NodeLexicalScopeUtils.getLexicalScope(t);if(!n)return e;var r=n.type===b.NodeType.Program;return!this.options.renameGlobals&&r?e:(this.storeFunctionName(e,n,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n):this.replaceScopeIdentifiers(n),e)}},{key:"storeFunctionName",value:function(e,t,n){n?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var n=this.replaceableIdentifiers.get(t).get(e.id.name);if(n)for(var r=n.length,i=0;i=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(25),v=n(13),C=n(14),S=n(10),N=n(36),A=n(20),_=n(24),E=r=function(e){function t(e,n,r){var i;return(0,a.default)(this,t),(i=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(b.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,d.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isFunctionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=N.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeFunctionParams(e,n),this.replaceFunctionParams(e,n),e):e}},{key:"isGlobalFunctionDeclarationIdentifier",value:function(e,t){if(!S.NodeGuards.isFunctionDeclarationNode(t)||t.id!==e)return!1;var n=N.NodeLexicalScopeUtils.getLexicalScopes(t)[1];if(!n)return!1;var r=n.type===_.NodeType.Program;return!this.options.renameGlobals&&r}},{key:"storeFunctionParams",value:function(e,t){var n=this,i={enter:function(e,i){if(!r.isProhibitedIdentifierOfPropertyNode(e,i))return S.NodeGuards.isAssignmentPatternNode(e)&&S.NodeGuards.isIdentifierNode(e.left)?(n.identifierObfuscatingReplacer.storeLocalName(e.left.name,t),y.VisitorOption.Skip):void(S.NodeGuards.isIdentifierNode(e)&&n.identifierObfuscatingReplacer.storeLocalName(e.name,t))}};e.params.forEach((function(e){y.traverse(e,i)}))}},{key:"replaceFunctionParams",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,a={enter:function(a,o){if(S.NodeGuards.isFunctionNode(a)&&a!==e)return n.replaceFunctionParams(a,t,new Set(i)),y.VisitorOption.Skip;if(r.isProhibitedIdentifierOfShorthandPropertyNode(a))i.add(a.key.name);else if(o&&S.NodeGuards.isReplaceableIdentifierNode(a,o)&&!A.NodeMetadata.isRenamedIdentifier(a)&&!i.has(a.name)){if(n.isGlobalFunctionDeclarationIdentifier(a,o))return;var s=n.identifierObfuscatingReplacer.replace(a.name,t).name;a.name!==s&&(a.name=s,A.NodeMetadata.set(a,{renamedIdentifier:!0}))}}};y.replace(e,a)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return S.NodeGuards.isIdentifierNode(e)&&!!t&&S.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return S.NodeGuards.isPropertyNode(e)&&e.shorthand&&S.NodeGuards.isIdentifierNode(e.key)}}]),t}(C.AbstractNodeTransformer);E=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),f(1,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(2,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],E),t.FunctionTransformer=E},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(25),v=n(13),C=n(14),S=n(10),N=n(36),A=n(20),_=r=function(e){function t(e,n,r){var i;return(0,a.default)(this,t),(i=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).replaceableIdentifiers=new Map,i.identifierObfuscatingReplacer=e(b.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,d.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=N.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeImportSpecifierNames(e,n),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(n):this.replaceScopeIdentifiers(n),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var n=this;e.specifiers.forEach((function(e){r.isProhibitedImportSpecifierNode(e)||n.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)}))}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach((function(n){var r=t.identifierObfuscatingReplacer.replace(n.name,e);n.name=r.name,A.NodeMetadata.set(n,{renamedIdentifier:!0})}))}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,n=[];y.replace(e,{enter:function(r,i){if(i&&S.NodeGuards.isReplaceableIdentifierNode(r,i)&&!A.NodeMetadata.isRenamedIdentifier(r)){var a=t.identifierObfuscatingReplacer.replace(r.name,e).name;r.name!==a?(r.name=a,A.NodeMetadata.set(r,{renamedIdentifier:!0})):n.push(r)}}}),this.replaceableIdentifiers.set(e,n)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return S.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(C.AbstractNodeTransformer);_=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),f(1,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(2,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],_),t.ImportDeclarationTransformer=_},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(25),b=n(13),v=n(14),C=n(10),S=n(36),N=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,o.default)(this,(0,s.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,u.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&C.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=S.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeLabeledStatementName(e,n),this.replaceLabeledStatementName(e,n),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var n=this;m.replace(e,{enter:function(e,r){if(r&&C.NodeGuards.isLabelIdentifierNode(e,r)){var i=n.identifierObfuscatingReplacer.replace(e.name,t);e.name=i.name}}})}}]),t}(v.AbstractNodeTransformer);N=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],N),t.LabeledStatementTransformer=N},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(88),m=n(13),y=n(14),b=n(10),v=n(20),C=n(12),S=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,o.default)(this,(0,s.default)(t).call(this,n,r))).literalObfuscatingReplacerFactory=e,a}return(0,u.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&b.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var n;switch((0,d.default)(e.value)){case"boolean":n=this.literalObfuscatingReplacerFactory(g.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":n=this.literalObfuscatingReplacerFactory(g.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":n=this.literalObfuscatingReplacerFactory(g.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:n=e}return C.NodeUtils.parentizeNode(n,t),n}},{key:"isProhibitedNode",value:function(e,t){return!(!b.NodeGuards.isPropertyNode(t)||t.key!==e)||!!b.NodeGuards.isImportDeclarationNode(t)}}]),t}(y.AbstractNodeTransformer);S=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IObfuscatingReplacer)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],S),t.LiteralTransformer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(54),m=n(15),y=n(53),b=n(45),v=function(e){function t(e){var n;return(0,i.default)(this,t),(n=(0,o.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,n}return(0,u.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=y.NumberUtils.isCeil(e)?"".concat(b.Utils.hexadecimalPrefix).concat(y.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),m.NodeFactory.literalNode(e,t)}}]),t}(g.AbstractObfuscatingReplacer);v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object])],v),t.NumberLiteralObfuscatingReplacer=v},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(3)),s=i(n(8)),u=i(n(7)),d=i(n(9)),l=i(n(5)),c=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(51),y=n(54),b=n(20),v=n(15),C=n(53),S=n(45),N=r=function(e){function t(e,n,i,o,d){var l;return(0,a.default)(this,t),(l=(0,s.default)(this,(0,u.default)(t).call(this,d))).nodesCache=new Map,l.stringLiteralHexadecimalIndexCache=new Map,l.stringArrayStorage=e,l.escapeSequenceEncoder=n,l.randomGenerator=i,l.cryptUtils=o,l.rc4Keys=l.randomGenerator.getRandomGenerator().n((function(){return l.randomGenerator.getRandomGenerator().string({length:r.rc4KeyLength})}),r.rc4KeysCount),l}return(0,d.default)(t,e),(0,o.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),n="".concat(e,"-").concat(String(t));if(this.nodesCache.has(n)&&this.options.stringArrayEncoding!==m.StringArrayEncoding.Rc4)return this.nodesCache.get(n);var r=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(n,r),r}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=r.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var n=C.NumberUtils.toHex(t),r="".concat(S.Utils.hexadecimalPrefix).concat(n);return this.stringLiteralHexadecimalIndexCache.set(e,r),{fromCache:!1,index:r}}},{key:"getEncodedValue",value:function(e){var t,n=null;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:n=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,n));break;case m.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:n}}},{key:"replaceWithLiteralNode",value:function(e){return v.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return v.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),n=t.encodedValue,i=t.key,a=this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence),o=this.stringArrayStorage.getLength(),s=this.stringArrayStorage.getStorageId().split("|")[1],u=this.getStringArrayHexadecimalIndex(a,o),d=u.fromCache,l=u.index;d||this.stringArrayStorage.set(o,a);var c=[r.getHexadecimalLiteralNode(l)];i&&c.push(r.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(i,this.options.unicodeEscapeSequence)));var p=v.NodeFactory.identifierNode(s);return b.NodeMetadata.set(p,{renamedIdentifier:!0}),v.NodeFactory.callExpressionNode(p,c)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some((function(t){return null!==new RegExp(t,"g").exec(e)}))}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return b.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return b.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(y.AbstractObfuscatingReplacer);N.minimumLengthForStringArray=3,N.rc4KeyLength=4,N.rc4KeysCount=50,N=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.TStringArrayStorage)),f(1,h.inject(g.ServiceIdentifiers.IEscapeSequenceEncoder)),f(2,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(3,h.inject(g.ServiceIdentifiers.ICryptUtils)),f(4,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object,Object,Object,Object])],N),t.StringLiteralObfuscatingReplacer=N},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(9)),d=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(25),b=n(24),v=n(13),C=n(14),S=n(10),N=n(36),A=n(253),_=n(20),E=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,o.default)(this,(0,s.default)(t).call(this,n,r))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,u.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isVariableDeclarationNode(e)&&!S.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n="var"===e.kind?N.NodeLexicalScopeUtils.getLexicalScope(e):A.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!n)return e;var r=n.type===b.NodeType.Program;if(!this.options.renameGlobals&&r)return e;var i="var"===e.kind?n:t;return this.storeVariableNames(e,n,r),this.replaceableIdentifiers.has(i)?this.replaceScopeCachedIdentifiers(e,n,i):this.replaceScopeIdentifiers(i,n),e}},{key:"storeVariableNames",value:function(e,t,n){var r=this;this.traverseDeclarationIdentifiers(e,(function(e){n?r.identifierObfuscatingReplacer.storeGlobalName(e.name,t):r.identifierObfuscatingReplacer.storeLocalName(e.name,t)}))}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,n){var r=this,i=this.replaceableIdentifiers.get(n),a=[];this.traverseDeclarationIdentifiers(e,(function(e){a.push(e.name)})),a.forEach((function(e){var n=i.get(e);if(n)for(var a=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithBlockLexicalScope(t)&&r.push(t),t!==a?e.getLexicalScopesRecursive(a,n,r,++i):r}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(4),a=n(255),o=n(330);t.optionsModule=new r.ContainerModule((function(e){e(i.ServiceIdentifiers.IOptions).to(a.Options).inSingletonScope(),e(i.ServiceIdentifiers.IOptionsNormalizer).to(o.OptionsNormalizer).inSingletonScope()}))},function(e,t,n){"use strict";var r,i=n(0),a=i(n(1)),o=i(n(5)),s=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=n(256),f=n(49),h=n(35),g=n(50),m=n(51),y=n(102),b=n(329),v=r=function e(t,n){(0,a.default)(this,e),Object.assign(this,y.DEFAULT_PRESET,t);var i=p.validateSync(this,r.validatorOptions);if(i.length)throw new ReferenceError("Validation failed. errors:\n".concat(b.ValidationErrorsFormatter.format(i)));Object.assign(this,n.normalize(this))};v.validatorOptions={validationError:{target:!1}},s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"compact",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"controlFlowFlattening",void 0),s([p.IsNumber(),p.Min(0),p.Max(1),u("design:type",Number)],v.prototype,"controlFlowFlatteningThreshold",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"deadCodeInjection",void 0),s([p.IsNumber(),u("design:type",Number)],v.prototype,"deadCodeInjectionThreshold",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"debugProtection",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"debugProtectionInterval",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"disableConsoleOutput",void 0),s([p.IsArray(),p.ArrayUnique(),p.IsString({each:!0}),u("design:type",Array)],v.prototype,"domainLock",void 0),s([p.IsIn([f.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator,f.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,f.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),u("design:type",String)],v.prototype,"identifierNamesGenerator",void 0),s([p.IsString(),u("design:type",String)],v.prototype,"identifiersPrefix",void 0),s([p.IsArray(),p.ArrayUnique(),p.IsString({each:!0}),p.ValidateIf((function(e){return e.identifierNamesGenerator===f.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator})),p.ArrayNotEmpty(),u("design:type",Array)],v.prototype,"identifiersDictionary",void 0),s([p.IsString(),u("design:type",String)],v.prototype,"inputFileName",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"log",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"renameGlobals",void 0),s([p.IsArray(),p.ArrayUnique(),p.IsString({each:!0}),u("design:type",Array)],v.prototype,"reservedNames",void 0),s([p.IsArray(),p.ArrayUnique(),p.IsString({each:!0}),u("design:type",Array)],v.prototype,"reservedStrings",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"rotateStringArray",void 0),s([p.IsNumber(),u("design:type",Number)],v.prototype,"seed",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"selfDefending",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"sourceMap",void 0),s([p.IsString(),p.ValidateIf((function(e){return Boolean(e.sourceMapBaseUrl)})),p.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),u("design:type",String)],v.prototype,"sourceMapBaseUrl",void 0),s([p.IsString(),u("design:type",String)],v.prototype,"sourceMapFileName",void 0),s([p.IsIn([g.SourceMapMode.Inline,g.SourceMapMode.Separate]),u("design:type",String)],v.prototype,"sourceMapMode",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"splitStrings",void 0),s([p.IsNumber(),p.ValidateIf((function(e){return Boolean(e.splitStrings)})),p.Min(1),u("design:type",Number)],v.prototype,"splitStringsChunkLength",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"stringArray",void 0),s([p.IsIn([!0,!1,m.StringArrayEncoding.Base64,m.StringArrayEncoding.Rc4]),u("design:type",Object)],v.prototype,"stringArrayEncoding",void 0),s([p.IsNumber(),p.Min(0),p.Max(1),u("design:type",Number)],v.prototype,"stringArrayThreshold",void 0),s([p.IsIn([h.ObfuscationTarget.Browser,h.ObfuscationTarget.BrowserNoEval,h.ObfuscationTarget.Node]),u("design:type",String)],v.prototype,"target",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"transformObjectKeys",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"unicodeEscapeSequence",void 0),v=r=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.TInputOptions)),d(1,l.inject(c.ServiceIdentifiers.IOptionsNormalizer)),u("design:paramtypes",[Object,Object])],v),t.Options=v},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var i=n(46),a=n(89),o=n(41);r(n(41)),r(n(327)),r(n(90)),r(n(40)),r(n(89)),r(n(328)),r(n(46)),t.validate=function(e,t,n){return"string"==typeof e?o.getFromContainer(a.Validator).validate(e,t,n):o.getFromContainer(a.Validator).validate(e,t)},t.validateOrReject=function(e,t,n){return"string"==typeof e?o.getFromContainer(a.Validator).validateOrReject(e,t,n):o.getFromContainer(a.Validator).validateOrReject(e,t)},t.validateSync=function(e,t,n){return"string"==typeof e?o.getFromContainer(a.Validator).validateSync(e,t,n):o.getFromContainer(a.Validator).validateSync(e,t)},t.registerSchema=function(e){o.getFromContainer(i.MetadataStorage).addValidationSchema(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68),i=n(40),a=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach((function(n){e.properties[n].forEach((function(a){if(!i.ValidationTypes.isValid(a.type))throw new Error("Validation schema "+e.name+"#"+n+" as incorrect type "+a.type);var o={message:a.message,groups:a.groups,always:a.always,each:a.each},s={type:a.type,target:e.name,propertyName:n,constraints:a.constraints,validationTypeOptions:a.options,validationOptions:o};t.push(new r.ValidationMetadata(s))}))})),t},e}();t.ValidationSchemaToMetadataTransformer=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(90),i=n(46),a=n(41),o=n(40),s=n(259),u=n(260),d=function(){function e(e,t){this.validator=e,this.validatorOptions=t,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=a.getFromContainer(i.MetadataStorage)}return e.prototype.execute=function(e,t,n){var i=this;this.metadataStorage.hasValidationMetaData||console.warn("No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.");var a=this.validatorOptions?this.validatorOptions.groups:void 0,s=this.metadataStorage.getTargetValidationMetadatas(e.constructor,t,a),u=this.metadataStorage.groupByPropertyName(s);if(this.validatorOptions&&this.validatorOptions.forbidUnknownValues&&!s.length){var d=new r.ValidationError;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(d.target=e),d.value=void 0,d.property=void 0,d.children=[],d.constraints={unknownValue:"an unknown value was passed to the validate function"},void n.push(d)}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,u,n),Object.keys(u).forEach((function(t){var r=e[t],a=u[t].filter((function(e){return e.type===o.ValidationTypes.IS_DEFINED})),s=u[t].filter((function(e){return e.type!==o.ValidationTypes.IS_DEFINED&&e.type!==o.ValidationTypes.WHITELIST}));r instanceof Promise&&s.find((function(e){return e.type===o.ValidationTypes.PROMISE_VALIDATION}))?i.awaitingPromises.push(r.then((function(r){i.performValidations(e,r,t,a,s,n)}))):i.performValidations(e,r,t,a,s,n)}))},e.prototype.whitelist=function(e,t,n){var r=this,i=[];Object.keys(e).forEach((function(e){t[e]&&0!==t[e].length||i.push(e)})),i.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?i.forEach((function(t){var i,a=r.generateValidationError(e,e[t],t);a.constraints=((i={})[o.ValidationTypes.WHITELIST]="property "+t+" should not exist",i),a.children=void 0,n.push(a)})):i.forEach((function(t){return delete e[t]})))},e.prototype.stripEmptyErrors=function(e){var t=this;return e.filter((function(e){if(e.children&&(e.children=t.stripEmptyErrors(e.children)),0===Object.keys(e.constraints).length){if(0===e.children.length)return!1;delete e.constraints}return!0}))},e.prototype.performValidations=function(e,t,n,r,i,a){var s=i.filter((function(e){return e.type===o.ValidationTypes.CUSTOM_VALIDATION})),u=i.filter((function(e){return e.type===o.ValidationTypes.NESTED_VALIDATION})),d=i.filter((function(e){return e.type===o.ValidationTypes.CONDITIONAL_VALIDATION})),l=this.generateValidationError(e,t,n);a.push(l),this.conditionalValidations(e,t,d)&&(this.defaultValidations(e,t,r,l.constraints),this.mapContexts(e,t,r,l),void 0===t&&this.validatorOptions&&!0===this.validatorOptions.skipUndefinedProperties||null===t&&this.validatorOptions&&!0===this.validatorOptions.skipNullProperties||null==t&&this.validatorOptions&&!0===this.validatorOptions.skipMissingProperties||(this.defaultValidations(e,t,i,l.constraints),this.customValidations(e,t,s,l.constraints),this.nestedValidations(t,u,l.children),this.mapContexts(e,t,i,l),this.mapContexts(e,t,s,l)))},e.prototype.generateValidationError=function(e,t,n){var i=new r.ValidationError;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(i.target=e),this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.value&&!0!==this.validatorOptions.validationError.value||(i.value=t),i.property=n,i.children=[],i.constraints={},i},e.prototype.conditionalValidations=function(e,t,n){return n.map((function(n){return n.constraints[0](e,t)})).reduce((function(e,t){return e&&t}),!0)},e.prototype.defaultValidations=function(e,t,n,r){var i=this;return n.filter((function(e){return e.each?t instanceof Array||t instanceof Set||t instanceof Map?!u.convertToArray(t).every((function(t){return i.validator.validateValueByMetadata(t,e)})):void 0:!i.validator.validateValueByMetadata(t,e)})).forEach((function(n){var a=i.createValidationError(e,t,n),o=a[0],s=a[1];r[o]=s}))},e.prototype.customValidations=function(e,t,n,r){var o=this;n.forEach((function(n){a.getFromContainer(i.MetadataStorage).getTargetValidatorConstraints(n.constraintCls).forEach((function(i){if(!i.async||!o.ignoreAsyncValidations){var a={targetName:e.constructor?e.constructor.name:void 0,property:n.propertyName,object:e,value:t,constraints:n.constraints};if(n.each&&(t instanceof Array||t instanceof Set||t instanceof Map)){var s=u.convertToArray(t).map((function(e){return i.instance.validate(e,a)}));if(s.some((function(e){return u.isPromise(e)}))){var d=s.map((function(e){return u.isPromise(e)?e:Promise.resolve(e)})),l=Promise.all(d).then((function(a){if(!a.every((function(e){return e}))){var s=o.createValidationError(e,t,n,i),u=s[0],d=s[1];r[u]=d}}));o.awaitingPromises.push(l)}else{if(!s.every((function(e){return e}))){var c=o.createValidationError(e,t,n,i);g=c[0],m=c[1];r[g]=m}}}else{var p=i.instance.validate(t,a);if(u.isPromise(p)){var f=p.then((function(a){if(!a){var s=o.createValidationError(e,t,n,i),u=s[0],d=s[1];r[u]=d}}));o.awaitingPromises.push(f)}else if(!p){var h=o.createValidationError(e,t,n,i),g=h[0],m=h[1];r[g]=m}}}}))}))},e.prototype.nestedPromiseValidations=function(e,t,n){var r=this;e instanceof Promise&&this.awaitingPromises.push(e.then((function(e){return r.nestedValidations(e,t,n)})))},e.prototype.nestedValidations=function(e,t,n){var i=this;void 0!==e&&t.forEach((function(t){var a;if(t.type===o.ValidationTypes.NESTED_VALIDATION||t.type===o.ValidationTypes.PROMISE_VALIDATION){var s="string"==typeof t.target?t.target:void 0;if(e instanceof Array||e instanceof Set||e instanceof Map)(e instanceof Set?Array.from(e):e).forEach((function(t,r){var a=i.generateValidationError(e,t,r.toString());n.push(a),i.execute(t,s,a.children)}));else if(e instanceof Object)i.execute(e,s,n);else{var u=new r.ValidationError;u.value=e,u.property=t.propertyName,u.target=t.target;var d=i.createValidationError(t.target,e,t),l=d[0],c=d[1];u.constraints=((a={})[l]=c,a),n.push(u)}}}))},e.prototype.mapContexts=function(e,t,n,r){var i=this;return n.forEach((function(e){if(e.context){var t=void 0;if(e.type===o.ValidationTypes.CUSTOM_VALIDATION)t=i.metadataStorage.getTargetValidatorConstraints(e.constraintCls)[0];var n=i.getConstraintType(e,t);r.constraints[n]&&(r.contexts||(r.contexts={}),r.contexts[n]=Object.assign(r.contexts[n]||{},e.context))}}))},e.prototype.createValidationError=function(e,t,n,r){var i=e.constructor?e.constructor.name:void 0,a=this.getConstraintType(n,r),u={targetName:i,property:n.propertyName,object:e,value:t,constraints:n.constraints},d=n.message;return n.message||this.validatorOptions&&(!this.validatorOptions||this.validatorOptions.dismissDefaultMessages)||(r&&r.instance.defaultMessage instanceof Function&&(d=r.instance.defaultMessage(u)),d||(d=o.ValidationTypes.getMessage(a,n.each))),[a,s.ValidationUtils.replaceMessageSpecialTokens(d,u)]},e.prototype.getConstraintType=function(e,t){return t&&t.name?t.name:e.type},e}();t.ValidationExecutor=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.replaceMessageSpecialTokens=function(e,t){var n;return e instanceof Function?n=e(t):"string"==typeof e&&(n=e),n&&t.constraints instanceof Array&&t.constraints.forEach((function(e,t){n=n.replace(new RegExp("\\$constraint"+(t+1),"g"),e)})),n&&void 0!==t.value&&null!==t.value&&"string"==typeof t.value&&(n=n.replace(/\$value/g,t.value)),n&&(n=n.replace(/\$property/g,t.property)),n&&(n=n.replace(/\$target/g,t.targetName)),n},e}();t.ValidationUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then},t.convertToArray=function(e){return e instanceof Map?Array.from(e.values()):Array.isArray(e)?e:Array.from(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Te(n(69)),i=Te(n(91)),a=Te(n(262)),o=Te(n(263)),s=Te(n(264)),u=Te(n(265)),d=Te(n(266)),l=Te(n(267)),c=Te(n(268)),p=Te(n(269)),f=Te(n(55)),h=Te(n(270)),g=Te(n(70)),m=Te(n(271)),y=Ie(n(272)),b=Ie(n(273)),v=Te(n(274)),C=Te(n(275)),S=Te(n(276)),N=Te(n(277)),A=Te(n(278)),_=Te(n(95)),E=Te(n(96)),I=Te(n(279)),T=Te(n(280)),D=Te(n(281)),P=Te(n(94)),M=Ie(n(282)),F=Te(n(283)),O=Te(n(97)),x=Te(n(284)),R=Te(n(285)),$=Te(n(286)),w=Te(n(287)),B=Te(n(288)),k=Te(n(289)),L=Te(n(290)),j=Te(n(291)),G=Te(n(292)),V=Te(n(293)),U=Te(n(294)),H=Te(n(93)),W=Te(n(295)),z=Te(n(296)),K=Te(n(297)),J=Te(n(298)),Y=Te(n(299)),q=Te(n(300)),Z=Te(n(301)),X=Te(n(302)),Q=Te(n(303)),ee=Te(n(304)),te=Ie(n(305)),ne=Te(n(306)),re=Te(n(307)),ie=Te(n(308)),ae=Te(n(309)),oe=Te(n(310)),se=Te(n(311)),ue=Te(n(312)),de=Te(n(313)),le=Te(n(314)),ce=Te(n(315)),pe=Te(n(316)),fe=Ie(n(317)),he=Te(n(98)),ge=Te(n(99)),me=Te(n(318)),ye=Te(n(319)),be=Te(n(320)),ve=Te(n(321)),Ce=Te(n(322)),Se=Te(n(100)),Ne=Te(n(323)),Ae=Te(n(324)),_e=Te(n(325));function Ee(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ee=function(){return e},e}function Ie(e){if(e&&e.__esModule)return e;var t=Ee();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}}return n.default=e,t&&t.set(e,n),n}function Te(e){return e&&e.__esModule?e:{default:e}}var De={version:"12.0.0",toDate:r.default,toFloat:i.default,toInt:a.default,toBoolean:o.default,equals:s.default,contains:u.default,matches:d.default,isEmail:l.default,isURL:c.default,isMACAddress:p.default,isIP:f.default,isIPRange:h.default,isFQDN:g.default,isBoolean:m.default,isBIC:B.default,isAlpha:y.default,isAlphaLocales:y.locales,isAlphanumeric:b.default,isAlphanumericLocales:b.locales,isNumeric:v.default,isPort:C.default,isLowercase:S.default,isUppercase:N.default,isAscii:A.default,isFullWidth:_.default,isHalfWidth:E.default,isVariableWidth:I.default,isMultibyte:T.default,isSurrogatePair:D.default,isInt:P.default,isFloat:M.default,isFloatLocales:M.locales,isDecimal:F.default,isHexadecimal:O.default,isOctal:x.default,isDivisibleBy:R.default,isHexColor:$.default,isISRC:w.default,isMD5:k.default,isHash:L.default,isJWT:j.default,isJSON:G.default,isEmpty:V.default,isLength:U.default,isByteLength:H.default,isUUID:W.default,isMongoId:z.default,isAfter:K.default,isBefore:J.default,isIn:Y.default,isCreditCard:q.default,isIdentityCard:Z.default,isISIN:X.default,isISBN:Q.default,isISSN:ee.default,isMobilePhone:te.default,isMobilePhoneLocales:te.locales,isPostalCode:fe.default,isPostalCodeLocales:fe.locales,isCurrency:ne.default,isISO8601:re.default,isRFC3339:ie.default,isISO31661Alpha2:ae.default,isISO31661Alpha3:oe.default,isBase32:se.default,isBase64:ue.default,isDataURI:de.default,isMagnetURI:le.default,isMimeType:ce.default,isLatLong:pe.default,ltrim:he.default,rtrim:ge.default,trim:me.default,escape:ye.default,unescape:be.default,stripLow:ve.default,whitelist:Ce.default,blacklist:Se.default,isWhitelisted:Ne.default,normalizeEmail:Ae.default,toString:toString,isSlug:_e.default};t.default=De,e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),parseInt(e,t||10)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),t)return"1"===e||"true"===e;return"0"!==e&&"false"!==e&&""!==e};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),e===t};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.indexOf((0,i.default)(t))>=0};var r=a(n(6)),i=a(n(92));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,i.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return t.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,i.default)(t,d)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var u,y=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(n,3);if(u=y[1],e=y[2],u.endsWith(" ")&&(u=u.substr(0,u.length-1)),!function(e){var t=e.match(/^"(.+)"$/i),n=t?t[1]:e;if(!n.trim())return!1;if(/[\.";<>]/.test(n)){if(!t)return!1;if(!(n.split('"').length===n.split('\\"').length))return!1}return!0}(u))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>m)return!1;var b=e.split("@"),v=b.pop(),C=b.join("@"),S=v.toLowerCase();if(t.domain_specific_validation&&("gmail.com"===S||"googlemail.com"===S)){var N=(C=C.toLowerCase()).split("+")[0];if(!(0,a.default)(N.replace(".",""),{min:6,max:30}))return!1;for(var A=N.split("."),_=0;_$/i,c=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,p=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,m=254;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||e.length>=2083||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;var n,s,c,p,f,h,g,m;if(t=(0,o.default)(t,u),g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.substr(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1}p=g.join("@"),h=null,m=null;var y=p.match(d);y?(c="",m=y[1],h=y[2]||null):(g=p.split(":"),c=g.shift(),g.length&&(h=g.join(":")));if(null!==h&&(f=parseInt(h,10),!/^[0-9]+$/.test(h)||f<=0||f>65535))return!1;if(!((0,a.default)(c)||(0,i.default)(c,t)||m&&(0,a.default)(m,6)))return!1;if(c=c||m,t.host_whitelist&&!l(c,t.host_whitelist))return!1;if(t.host_blacklist&&l(c,t.host_blacklist))return!1;return!0};var r=s(n(6)),i=s(n(70)),a=s(n(55)),o=s(n(37));function s(e){return e&&e.__esModule?e:{default:e}}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},d=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(e,t){for(var n=0;n1&&t[1].startsWith("0"))return!1;return(0,i.default)(t[0],4)&&t[1]<=32&&t[1]>=0};var r=a(n(6)),i=a(n(55));function a(e){return e&&e.__esModule?e:{default:e}}var o=/^\d{1,2}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),["true","false","1","0"].indexOf(e)>=0};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,i.default)(e),t in a.alpha)return a.alpha[t].test(e);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,i=(r=n(6))&&r.__esModule?r:{default:r},a=n(56);var o=Object.keys(a.alpha);t.locales=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,i.default)(e),t in a.alphanumeric)return a.alphanumeric[t].test(e);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,i=(r=n(6))&&r.__esModule?r:{default:r},a=n(56);var o=Object.keys(a.alphanumeric);t.locales=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),t&&t.no_symbols)return o.test(e);return a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^[+-]?([0-9]*[.])?[0-9]+$/,o=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e,{min:0,max:65535})};var r,i=(r=n(94))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e===e.toLowerCase()};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e===e.toUpperCase()};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.fullWidth.test(e)&&o.halfWidth.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r},a=n(95),o=n(96);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?a.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||"-"===e||"+"===e)return!1;var r=parseFloat(e.replace(",","."));return n.test(e)&&(!t.hasOwnProperty("min")||r>=t.min)&&(!t.hasOwnProperty("max")||r<=t.max)&&(!t.hasOwnProperty("lt")||rt.gt)},t.locales=void 0;var r,i=(r=n(6))&&r.__esModule?r:{default:r},a=n(56);var o=Object.keys(a.decimal);t.locales=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),(t=(0,r.default)(t,u)).locale in o.decimal)return!(0,a.default)(d,e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\".concat(o.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"))}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var r=s(n(37)),i=s(n(6)),a=s(n(71)),o=n(56);function s(e){return e&&e.__esModule?e:{default:e}}var u={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},d=["","-","+"];e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(0,i.default)(e)%parseInt(t,10)==0};var r=a(n(6)),i=a(n(91));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^[A-z]{4}[A-z]{2}\w{2}(\w{3})?$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),new RegExp("^[a-fA-F0-9]{".concat(a[t],"}$")).test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^([A-Za-z0-9\-_~+\/]+[=]{0,2})\.([A-Za-z0-9\-_~+\/]+[=]{0,2})(?:\.([A-Za-z0-9\-_~+\/]+[=]{0,2}))?$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(e);try{var t=JSON.parse(e);return!!t&&"object"===a(t)}catch(e){}return!1};var r,i=(r=n(6))&&r.__esModule?r:{default:r};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),0===((t=(0,i.default)(t,o)).ignore_whitespace?e.trim().length:e.length)};var r=a(n(6)),i=a(n(37));function a(e){return e&&e.__esModule?e:{default:e}}var o={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,i.default)(e),"object"===a(t)?(n=t.min||0,r=t.max):(n=arguments[1]||0,r=arguments[2]);var o=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],s=e.length-o.length;return s>=n&&(void 0===r||s<=r)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";(0,i.default)(e);var n=a[t];return n&&n.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),(0,i.default)(e)&&24===e.length};var r=a(n(6)),i=a(n(97));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var n=(0,i.default)(t),a=(0,i.default)(e);return!!(a&&n&&a>n)};var r=a(n(6)),i=a(n(69));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var n=(0,i.default)(t),a=(0,i.default)(e);return!!(a&&n&&a=0}if("object"===o(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=a(n(6)),i=a(n(92));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(e);var t=e.replace(/[- ]+/g,"");if(!a.test(t))return!1;for(var n,r,o,s=0,u=t.length-1;u>=0;u--)n=t.substring(u,u+1),r=parseInt(n,10),s+=o&&(r*=2)>=10?r%10+1:r,o=!o;return!(s%10!=0||!t)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),t in a)return a[t](e);if("any"===t){for(var n in a){if(a.hasOwnProperty(n))if((0,a[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a={ES:function(e){(0,i.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var r=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][r%23])},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var n,r=t,i=0,a=0;a9?n-9:n;return i%10==0},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},n=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(n)&&Array.from(n).reduce((function(e,n,r){if(0===r){var i=t[n];return i%10*9+Math.floor(i/10)}return 9===r?(10-e%10-Number(n))%10==0:e+Number(n)*(9-r)}),0)}};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,i.default)(e),!a.test(e))return!1;for(var t,n,r=e.replace(/[A-Z]/g,(function(e){return parseInt(e,36)})),o=0,s=!0,u=r.length-2;u>=0;u--)t=r.substring(u,u+1),n=parseInt(t,10),o+=s&&(n*=2)>=10?n+1:n,s=!s;return parseInt(e.substr(e.length-1),10)===(1e4-o)%10};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,i.default)(t),!(n=String(n)))return e(t,10)||e(t,13);var r,u=t.replace(/[\s-]+/g,""),d=0;if("10"===n){if(!a.test(u))return!1;for(r=0;r<9;r++)d+=(r+1)*u.charAt(r);if("X"===u.charAt(9)?d+=100:d+=10*u.charAt(9),d%11==0)return!!u}else if("13"===n){if(!o.test(u))return!1;for(r=0;r<12;r++)d+=s[r%2]*u.charAt(r);if(u.charAt(12)-(10-d%10)%10==0)return!!u}return!1};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^(?:[0-9]{9}X|[0-9]{10})$/,o=/^(?:[0-9]{13})$/,s=[1,3];e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.default)(e);var n=a;if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;for(var r=e.replace("-","").toUpperCase(),o=0,s=0;s0&&t%8==0&&a.test(e))return!0;return!1};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^[A-Z2-7]+=*$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(e);var t=e.length;if(!t||t%4!=0||a.test(e))return!1;var n=e.indexOf("=");return-1===n||n===t-1||n===t-2&&"="===e[t-1]};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/[^A-Z0-9+\/=]/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(e);var t=e.split(",");if(t.length<2)return!1;var n=t.shift().trim().split(";"),r=n.shift();if("data:"!==r.substr(0,5))return!1;var u=r.substr(5);if(""!==u&&!a.test(u))return!1;for(var d=0;d/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`")};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,i.default)(e,n)};var r=a(n(6)),i=a(n(100));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r,i=(r=n(6))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,i.default)(t,a);var n=e.split("@"),r=n.pop(),c=[n.join("@"),r];if(c[1]=c[1].toLowerCase(),"gmail.com"===c[1]||"googlemail.com"===c[1]){if(t.gmail_remove_subaddress&&(c[0]=c[0].split("+")[0]),t.gmail_remove_dots&&(c[0]=c[0].replace(/\.+/g,l)),!c[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(c[0]=c[0].toLowerCase()),c[1]=t.gmail_convert_googlemaildotcom?"gmail.com":c[1]}else if(o.indexOf(c[1])>=0){if(t.icloud_remove_subaddress&&(c[0]=c[0].split("+")[0]),!c[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(c[0]=c[0].toLowerCase())}else if(s.indexOf(c[1])>=0){if(t.outlookdotcom_remove_subaddress&&(c[0]=c[0].split("+")[0]),!c[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(c[0]=c[0].toLowerCase())}else if(u.indexOf(c[1])>=0){if(t.yahoo_remove_subaddress){var p=c[0].split("-");c[0]=p.length>1?p.slice(0,-1).join("-"):p[0]}if(!c[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(c[0]=c[0].toLowerCase())}else d.indexOf(c[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(c[0]=c[0].toLowerCase()),c[1]="yandex.ru"):t.all_lowercase&&(c[0]=c[0].toLowerCase());return c.join("@")};var r,i=(r=n(37))&&r.__esModule?r:{default:r};var a={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},o=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],u=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],d=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function l(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),a.test(e)};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/^[^-_](?!.*?[-_]{2,})([a-z0-9\\-]{1,}).*[^-_]$/;e.exports=t.default,e.exports.default=t.default},function(module,exports,__webpack_require__){var require,require,f;f=function(){var define,module,exports;return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(!s&&"function"==typeof require&&require)return require(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[o]={exports:{}};t[o][0].call(d.exports,(function(e){var n=t[o][1][e];return i(n||e)}),d,d.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var n in t="array"==t?[]:{},e)t[n]=goog.cloneObject(e[n]);return t}return e},goog.bindNative_=function(e,t,n){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,n){if(!e)throw Error();if(2Number(t[1]))&&b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')})),a("es6-impl",(function(){return!0})),a("es7",(function(){return b("2 ** 2 == 4")})),a("es8",(function(){return b("async () => 1, true")})),a("es9",(function(){return b("({...rest} = {}), true")})),a("es_next",(function(){return!1})),c},goog.Transpiler.prototype.needsTranspile=function(e,t){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(this.requiresTranspilation_||(this.requiresTranspilation_=this.createRequiresTranspilation_()),e in this.requiresTranspilation_)return!!this.requiresTranspilation_[e]||!(!goog.inHtmlDocument_()||"es6"!=t||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+e)},goog.Transpiler.prototype.transpile=function(e,t){return goog.transpile_(e,t)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,t){function n(){r&&(goog.global.setTimeout(r,0),r=null)}var r=t;if(e.length){for(var i=[],a=0;a<\/script>")}else{var i=t.createElement("script");i.defer=goog.Dependency.defer_,i.async=!1,i.type="text/javascript",(r=goog.getScriptNonce())&&i.setAttribute("nonce",r),goog.DebugLoader_.IS_OLD_IE_?(e.pause(),i.onreadystatechange=function(){"loaded"!=i.readyState&&"complete"!=i.readyState||(e.loaded(),e.resume())}):i.onload=function(){i.onload=null,e.loaded()},i.src=this.path,t.head.appendChild(i)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or seting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,t,n,r,i){goog.Dependency.call(this,e,t,n,r,i)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var t=goog.global.document,n=this;if(goog.isDocumentLoading_()){var r=function(e,n){n?t.write('