From 9dada84322fa56b2ea5545ec8883965e132c2eed Mon Sep 17 00:00:00 2001 From: sanex3339 Date: Wed, 23 May 2018 23:44:05 +0300 Subject: [PATCH] Reordering static methods --- dist/index.browser.js | 2 +- dist/index.cli.js | 2 +- dist/index.js | 2 +- .../ObjectExpressionKeysTransformer.ts | 58 +++++++++---------- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/dist/index.browser.js b/dist/index.browser.js index 125988de..579b632d 100644 --- a/dist/index.browser.js +++ b/dist/index.browser.js @@ -35,7 +35,7 @@ var r=n(204),i=n(203),a=n(202);function o(){return u.TYPED_ARRAY_SUPPORT?2147483 * @author Feross Aboukhadijeh * @license MIT */ -e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-a)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,i=0;r>>6-2*i);return t}},e.exports=r},function(e,t,n){var r,i,a,o,s;r=n(208),i=n(130).utf8,a=n(207),o=n(130).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var n=r.bytesToWords(e),u=8*e.length,c=1732584193,l=-271733879,d=-1732584194,f=271733878,p=0;p>>24)|4278255360&(n[p]<<24|n[p]>>>8);n[u>>>5]|=128<>>9<<4)]=u;var h=s._ff,m=s._gg,g=s._hh,y=s._ii;for(p=0;p>>0,l=l+b>>>0,d=d+C>>>0,f=f+S>>>0}return r.endian([c,l,d,f])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(6)),c=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,c.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,s.default)(t,n,o),o},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof o.default)return(0,o.default)(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(1),h=n(4),m=n(131),g=n(54),y=function(){function e(t){(0,i.default)(this,e),this.randomGenerator=t}return(0,a.default)(e,[{key:"btoa",value:function(e){var t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt("".concat(g.Utils.hexadecimalPrefix).concat(t)))});for(var n,r,i=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|i)||(a="=",i%1);t+=a.charAt(63&n>>8-i%1*8)){if((r=e.charCodeAt(i+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");n=n<<8|r}return t}},{key:"hideString",value:function(e,t){var n=this,r=this.randomGenerator.getRandomGenerator().string({length:t,pool:m.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),i=r.split("");return this.randomGenerator.getRandomGenerator().shuffle(i),[function(e,t){for(var r=-1,i=-1,a="";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&&(0,u.default)(t,n,o),o},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof s.default)return(0,s.default)(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(1),m=n(4),g=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,o.default)(e,[{key:"arrayRange",value:function(e){for(var t=[],n=0;n=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,u.default)(t,n,o),o},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof s.default)return(0,s.default)(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(1),m=n(4),g=n(15),y=function(){function e(t,n){(0,a.default)(this,e),this.storageLength=0,this.randomGenerator=t,this.options=n}return(0,o.default)(e,[{key:"initialize",value:function(){this.storage=[],this.storageId=this.randomGenerator.getRandomString(6)}},{key:"get",value:function(e){var t=this.storage[e];if(!t)throw new Error("No value found in array storage with key `".concat(e,"`"));return t}},{key:"getKeyOf",value:function(e){var t=this.storage.indexOf(e);return t>=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,i.default)(this.storage).concat((0,i.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();d([g.initializable(),f("design:type",Array)],y.prototype,"storage",void 0),d([g.initializable(),f("design:type",String)],y.prototype,"storageId",void 0),d([h.postConstruct(),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],y.prototype,"initialize",null),y=d([h.injectable(),p(0,h.inject(m.ServiceIdentifiers.IRandomGenerator)),p(1,h.inject(m.ServiceIdentifiers.IOptions)),f("design:paramtypes",[Object,Object])],y),t.ArrayStorage=y},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(79)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(213),S=y=function(e){function t(e,n,r,a){var o;return(0,i.default)(this,t),(o=(0,s.default)(this,(0,u.default)(t).call(this,r,a))).identifierNamesGenerator=e(a),o.arrayUtils=n,o}return(0,o.default)(t,[{key:"initialize",value:function(){(0,c.default)((0,u.default)(t.prototype),"initialize",this).call(this);var e=this.identifierNamesGenerator.generate().slice(0,y.stringArrayNameLength),n=this.identifierNamesGenerator.generate().slice(0,y.stringArrayNameLength),r="".concat(this.options.identifiersPrefix).concat(e),i="".concat(this.options.identifiersPrefix).concat(n);this.storageId="".concat(r,"|").concat(i)}},{key:"rotateArray",value:function(e){this.storage=this.arrayUtils.arrayRotate(this.storage,e)}},{key:"toString",value:function(){return this.storage.map(function(e){return"'".concat(e,"'")}).toString()}}]),(0,a.default)(t,e),t}(C.ArrayStorage);S.stringArrayNameLength=7,h([v.postConstruct(),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],S.prototype,"initialize",null),S=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IArrayUtils)),g(2,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],S),t.StringArrayStorage=S},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(79)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(151),S=n(132),A=y=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).customNodeGroupFactory=e,a}return(0,o.default)(t,[{key:"initialize",value:function(){var e=this;(0,c.default)((0,u.default)(t.prototype),"initialize",this).call(this),y.customNodeGroupsList.forEach(function(t){var n=e.customNodeGroupFactory(t);n&&e.storage.set(t,n)})}}]),(0,a.default)(t,e),t}(S.MapStorage);A.customNodeGroupsList=[C.CustomNodeGroup.ConsoleOutputCustomNodeGroup,C.CustomNodeGroup.DebugProtectionCustomNodeGroup,C.CustomNodeGroup.DomainLockCustomNodeGroup,C.CustomNodeGroup.SelfDefendingCustomNodeGroup,C.CustomNodeGroup.StringArrayCustomNodeGroup],h([v.postConstruct(),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],A.prototype,"initialize",null),A=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__ICustomNodeGroup)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],A),t.CustomNodeGroupStorage=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(10)),s=r(n(9)),u=r(n(8)),c=r(n(7)),l=r(n(6)),d=r(n(5)),f=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,d.default)(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&&(0,c.default)(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof u.default)return(0,u.default)(e,t)},h=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var m=n(1),g=n(4),y=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,a.default)(t,e),t}(n(132).MapStorage);y=f([m.injectable(),h(0,m.inject(g.ServiceIdentifiers.IRandomGenerator)),h(1,m.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object])],y),t.ControlFlowStorage=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),a=n(216),o=n(215),s=n(214);t.storagesModule=new r.ContainerModule(function(e){e(i.ServiceIdentifiers.TCustomNodeGroupStorage).to(o.CustomNodeGroupStorage).inSingletonScope(),e(i.ServiceIdentifiers.TStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(i.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(a.ControlFlowStorage),e(i.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(function(e){return function(){var t=new(e.container.get(i.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(i.ServiceIdentifiers.IRandomGenerator),e.container.get(i.ServiceIdentifiers.IOptions));return t.initialize(),t}})})},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(17),b=n(19),C=n(14),S=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Preparing:return{enter:function(e,n){return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return C.NodeUtils.parentizeNode(e,t)}}]),(0,a.default)(t,e),t}(b.AbstractNodeTransformer);S=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(1,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],S),t.ParentificationTransformer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(133),C=n(17),S=n(19),A=n(28),E=g=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).obfuscatingGuards=g.obfuscatingGuardsList.map(e),a}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case C.TransformationStage.Preparing:return{enter:function(e,n){return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.obfuscatingGuards.every(function(t){return t.check(e)});return A.NodeMetadata.set(e,{ignoredNode:!n}),e}}]),(0,a.default)(t,e),t}(S.AbstractNodeTransformer);E.obfuscatingGuardsList=[b.ObfuscatingGuard.BlackListNodeGuard,b.ObfuscatingGuard.ConditionalCommentNodeGuard],E=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__INodeGuard)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],E),t.ObfuscatingGuardsTransformer=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(17),b=n(19),C=n(13),S=n(28),A=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Preparing:return{enter:function(e,n){return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return S.NodeMetadata.set(e,{ignoredNode:!1}),C.NodeGuards.isIdentifierNode(e)&&S.NodeMetadata.set(e,{renamedIdentifier:!1}),C.NodeGuards.isLiteralNode(e)&&S.NodeMetadata.set(e,{replacedLiteral:!1}),e}}]),(0,a.default)(t,e),t}(b.AbstractNodeTransformer);A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(1,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],A),t.MetadataTransformer=A},function(e,t){e.exports=function(e){return(""+e).replace(/["'\\\n\r\u2028\u2029]/g,function(e){switch(e){case'"':case"'":case"\\":return"\\"+e;case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})}},function(e,t,n){"use strict";var r=n(0),i=r(n(57)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v,b=n(1),C=n(4),S=y(n(221)),A=n(17),E=n(19),N=n(20),I=n(13),_=n(14),D=v=function(e){function t(e,n){var r;return(0,a.default)(this,t),(r=(0,u.default)(this,(0,c.default)(t).call(this,e,n))).evalRootAstHostNodeSet=new i.default,r}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case A.TransformationStage.Preparing:return{enter:function(e,n){if(n&&I.NodeGuards.isCallExpressionNode(e)&&I.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return t.transformNode(e,n)}};case A.TransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:function(e,n){if(n&&t.isEvalRootAstHostNode(e))return t.restoreNode(e,n)}}:null;default:return null}}},{key:"transformNode",value:function(e,t){var n=e.arguments[0];if(!n)return e;var r,i=v.extractEvalStringFromCallExpressionArgument(n);if(!i)return e;try{r=_.NodeUtils.convertCodeToStructure(i)}catch(t){return e}var a=N.NodeFactory.functionExpressionNode([],N.NodeFactory.blockStatementNode(r));return this.evalRootAstHostNodeSet.add(a),a}},{key:"restoreNode",value:function(e,t){var n=e.body.body,r=_.NodeUtils.convertStructureToCode(n);return N.NodeFactory.callExpressionNode(N.NodeFactory.identifierNode("eval"),[N.NodeFactory.literalNode(S.default(r))])}},{key:"isEvalRootAstHostNode",value:function(e){return I.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}}],[{key:"extractEvalStringFromCallExpressionArgument",value:function(e){return I.NodeGuards.isLiteralNode(e)?v.extractEvalStringFromLiteralNode(e):I.NodeGuards.isTemplateLiteralNode(e)?v.extractEvalStringFromTemplateLiteralNode(e):null}},{key:"extractEvalStringFromLiteralNode",value:function(e){return"string"==typeof e.value?e.value:null}},{key:"extractEvalStringFromTemplateLiteralNode",value:function(e){var t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}}]),(0,o.default)(t,e),t}(E.AbstractNodeTransformer);D=v=h([b.injectable(),g(0,b.inject(C.ServiceIdentifiers.IRandomGenerator)),g(1,b.inject(C.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object,Object])],D),t.EvalCallExpressionTransformer=D},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(44),b=n(17),C=n(19),S=n(13),A=function(e){function t(e,n,r,a,o){var c;return(0,i.default)(this,t),(c=(0,s.default)(this,(0,u.default)(t).call(this,a,o))).stackTraceData=[],c.stackTraceAnalyzer=e,c.obfuscationEventEmitter=n,c.customNodeGroupStorage=r,c}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Preparing:return{leave:function(e,n){if(S.NodeGuards.isProgramNode(e))return t.analyzeNode(e,n),t.appendCustomNodesBeforeObfuscation(e,n),t.transformNode(e,n)}};case b.TransformationStage.Finalizing:return{leave:function(e,n){S.NodeGuards.isProgramNode(e)&&t.appendCustomNodesAfterObfuscation(e,n)}};default:return null}}},{key:"analyzeNode",value:function(e,t){this.stackTraceData=this.stackTraceAnalyzer.analyze(e)}},{key:"transformNode",value:function(e,t){return e}},{key:"appendCustomNodesBeforeObfuscation",value:function(e,t){var n=this;this.customNodeGroupStorage.getStorage().forEach(function(e){e.initialize(),n.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendCustomNodes.bind(e))}),this.obfuscationEventEmitter.emit(v.ObfuscationEvent.BeforeObfuscation,e,this.stackTraceData)}},{key:"appendCustomNodesAfterObfuscation",value:function(e,t){this.obfuscationEventEmitter.emit(v.ObfuscationEvent.AfterObfuscation,e,this.stackTraceData)}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IStackTraceAnalyzer)),m(1,g.inject(y.ServiceIdentifiers.IObfuscationEventEmitter)),m(2,g.inject(y.ServiceIdentifiers.TCustomNodeGroupStorage)),m(3,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(4,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object,Object,Object,Object])],A),t.CustomNodesTransformer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(3)),o=r(n(7)),s=r(n(6)),u=r(n(5)),c=function(e,t,n,r){var i,a=arguments.length,c=a<3?t:null===r?r=(0,u.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(c=(a<3?i(c):a>3?i(t,n,c):i(t,n))||c);return a>3&&c&&(0,o.default)(t,n,c),c};Object.defineProperty(t,"__esModule",{value:!0});var l,d=n(1),f=n(13),p=l=function(){function e(){(0,i.default)(this,e),this.obfuscationAllowedForCurrentNode=!0,this.obfuscationAllowedForNextNode=null}return(0,a.default)(e,[{key:"check",value:function(e){if(this.obfuscationAllowedForNextNode&&(this.obfuscationAllowedForCurrentNode=this.obfuscationAllowedForNextNode,this.obfuscationAllowedForNextNode=null),!f.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowedForCurrentNode;var t=e.leadingComments,n=e.trailingComments;return t&&(this.obfuscationAllowedForCurrentNode=this.checkComments(t)),n&&(this.obfuscationAllowedForNextNode=this.checkComments(n)),this.obfuscationAllowedForCurrentNode}},{key:"checkComments",value:function(e){for(var t=e.length,n=this.obfuscationAllowedForCurrentNode,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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(17),C=n(19),S=n(13),A=g=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Preparing:return{leave:function(e,n){if(n&&S.NodeGuards.isNodeWithComments(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return e.leadingComments&&(e.leadingComments=this.transformComments(e.leadingComments)),e.trailingComments&&(e.trailingComments=this.transformComments(e.trailingComments)),e}},{key:"transformComments",value:function(e){return e.filter(function(e){return g.preservedWords.some(function(t){return e.value.includes(t)})})}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);A.preservedWords=["@license","@preserve"],A=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(1,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],A),t.CommentsTransformer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(6)),c=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,c.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,s.default)(t,n,o),o},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof o.default)return(0,o.default)(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var f,p=n(1),h=n(13),m=f=function(){function e(){(0,i.default)(this,e),this.blackListGuardsLength=f.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;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&&(0,u.default)(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0});var f,p=n(1),h=n(237),m=n(236),g=n(235),y=n(234),v=n(233),b=n(232),C=n(231),S=n(230),A=n(229),E=n(228),N=f=function(){function e(){(0,o.default)(this,e)}return(0,s.default)(e,[{key:"normalize",value:function(e){var t=(0,a.default)({},e),n=!0,r=!1,o=void 0;try{for(var s,u=(0,i.default)(f.normalizerRules);!(n=(s=u.next()).done);n=!0){t=(0,s.value)(t)}}catch(e){r=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}return t}}]),e}();N.normalizerRules=[h.ControlFlowFlatteningThresholdRule,m.DeadCodeInjectionRule,g.DeadCodeInjectionThresholdRule,y.DomainLockRule,v.SelfDefendingRule,b.SourceMapBaseUrlRule,C.SourceMapFileNameRule,S.StringArrayRule,A.StringArrayEncodingRule,E.StringArrayThresholdRule],N=f=d([p.injectable()],N),t.OptionsNormalizer=N},function(e,t,n){"use strict";var r=n(0),i=r(n(103)),a=r(n(59)),o=r(n(2)),s=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(){(0,o.default)(this,e)}return(0,s.default)(e,null,[{key:"format",value:function(t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,u=(0,a.default)(t);!(r=(s=u.next()).done);r=!0){var c=s.value;n.push(e.formatError(c))}}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n.join("\n")}},{key:"formatError",value:function(e){var t=e.constraints,n="`".concat(e.property,"` errors:\n");return(0,i.default)(t).forEach(function(e){n+=" - ".concat(t[e],"\n")}),n}}]),e}();t.ValidationErrorsFormatter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64),i=n(135),a=n(96),o=n(53),s=n(52);t.registerDecorator=function(e){var t;if(e.validator instanceof Function)t=e.validator;else{var n=e.validator;t=function(){function e(){}return e.prototype.validate=function(e,t){return n.validate(e,t)},e.prototype.defaultMessage=function(e){return n.defaultMessage?n.defaultMessage(e):""},e}(),s.getFromContainer(r.MetadataStorage).addConstraintMetadata(new i.ConstraintMetadata(t,e.name,e.async))}var u={type:o.ValidationTypes.CUSTOM_VALIDATION,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};s.getFromContainer(r.MetadataStorage).addValidationMetadata(new a.ValidationMetadata(u))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(53),i=n(96),a=n(135),o=n(52),s=n(64);t.ValidatorConstraint=function(e){return function(t){var n=!(!e||!e.async),r=e&&e.name?e.name:"";r||(r=t.name)||(r=r.replace(/\.?([A-Z]+)/g,function(e,t){return"_"+t.toLowerCase()}).replace(/^_/,""));var i=new a.ConstraintMetadata(t,r,n);o.getFromContainer(s.MetadataStorage).addConstraintMetadata(i)}},t.Validate=function(e,t,n){return function(a,u){var c={type:r.ValidationTypes.CUSTOM_VALIDATION,target:a.constructor,propertyName:u,constraintCls:e,constraints:t instanceof Array?t:void 0,validationOptions:t instanceof Array?n:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(c))}},t.ValidateNested=function(e){return function(t,n){var a={type:r.ValidationTypes.NESTED_VALIDATION,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Allow=function(e){return function(t,n){var a={type:r.ValidationTypes.WHITELIST,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.ValidateIf=function(e,t){return function(n,a){var u={type:r.ValidationTypes.CONDITIONAL_VALIDATION,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsDefined=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_DEFINED,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Equals=function(e,t){return function(n,a){var u={type:r.ValidationTypes.EQUALS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.NotEquals=function(e,t){return function(n,a){var u={type:r.ValidationTypes.NOT_EQUALS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsEmpty=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_EMPTY,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsNotEmpty=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_NOT_EMPTY,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsIn=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_IN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsNotIn=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_NOT_IN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsOptional=function(e){return function(t,n){var a={type:r.ValidationTypes.CONDITIONAL_VALIDATION,target:t.constructor,propertyName:n,constraints:[function(e,t){return null!==e[n]&&void 0!==e[n]}],validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsBoolean=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_BOOLEAN,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsDate=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_DATE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsNumber=function(e,t){return void 0===e&&(e={}),function(n,a){var u={type:r.ValidationTypes.IS_NUMBER,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsInt=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_INT,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsString=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_STRING,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsDateString=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_DATE_STRING,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsArray=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ARRAY,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsEnum=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_ENUM,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsDivisibleBy=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_DIVISIBLE_BY,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsPositive=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_POSITIVE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsNegative=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_NEGATIVE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Min=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MIN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.Max=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MAX,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.MinDate=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MIN_DATE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.MaxDate=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MAX_DATE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsBooleanString=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_BOOLEAN_STRING,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsNumberString=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_NUMBER_STRING,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Contains=function(e,t){return function(n,a){var u={type:r.ValidationTypes.CONTAINS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.NotContains=function(e,t){return function(n,a){var u={type:r.ValidationTypes.NOT_CONTAINS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsAlpha=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ALPHA,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsAlphanumeric=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ALPHANUMERIC,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsAscii=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ASCII,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsBase64=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_BASE64,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsByteLength=function(e,t,n){return function(a,u){var c={type:r.ValidationTypes.IS_BYTE_LENGTH,target:a.constructor,propertyName:u,constraints:[e,t],validationOptions:n};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(c))}},t.IsCreditCard=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_CREDIT_CARD,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsCurrency=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_CURRENCY,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsEmail=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_EMAIL,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsFQDN=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_FQDN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsFullWidth=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_FULL_WIDTH,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsHalfWidth=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_HALF_WIDTH,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsVariableWidth=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_VARIABLE_WIDTH,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsHexColor=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_HEX_COLOR,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsHexadecimal=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_HEXADECIMAL,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsIP=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_IP,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsISBN=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_ISBN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsISIN=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ISIN,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsISO8601=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ISO8601,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsJSON=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_JSON,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsLowercase=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_LOWERCASE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsMobilePhone=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_MOBILE_PHONE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsMongoId=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_MONGO_ID,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsMultibyte=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_MULTIBYTE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsSurrogatePair=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_SURROGATE_PAIR,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsUrl=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_URL,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsUUID=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_UUID,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsUppercase=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_UPPERCASE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Length=function(e,t,n){return function(a,u){var c={type:r.ValidationTypes.LENGTH,target:a.constructor,propertyName:u,constraints:[e,t],validationOptions:n};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(c))}},t.MinLength=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MIN_LENGTH,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.MaxLength=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MAX_LENGTH,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.Matches=function(e,t,n){var a;return t&&t instanceof Object&&!n?n=t:a=t,function(t,u){var c={type:r.ValidationTypes.MATCHES,target:t.constructor,propertyName:u,constraints:[e,a],validationOptions:n};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(c))}},t.IsMilitaryTime=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_MILITARY_TIME,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.ArrayContains=function(e,t){return function(n,a){var u={type:r.ValidationTypes.ARRAY_CONTAINS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.ArrayNotContains=function(e,t){return function(n,a){var u={type:r.ValidationTypes.ARRAY_NOT_CONTAINS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.ArrayNotEmpty=function(e){return function(t,n){var a={type:r.ValidationTypes.ARRAY_NOT_EMPTY,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.ArrayMinSize=function(e,t){return function(n,a){var u={type:r.ValidationTypes.ARRAY_MIN_SIZE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.ArrayMaxSize=function(e,t){return function(n,a){var u={type:r.ValidationTypes.ARRAY_MAX_SIZE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.ArrayUnique=function(e){return function(t,n){var a={type:r.ValidationTypes.ARRAY_UNIQUE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsInstance=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_INSTANCE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,a.default)(t,o);var n=e.split("@"),r=n.pop(),i=[n.join("@"),r];if(i[1]=i[1].toLowerCase(),"gmail.com"===i[1]||"googlemail.com"===i[1]){if(t.gmail_remove_subaddress&&(i[0]=i[0].split("+")[0]),t.gmail_remove_dots&&(i[0]=i[0].replace(/\./g,"")),!i[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(i[0]=i[0].toLowerCase()),i[1]=t.gmail_convert_googlemaildotcom?"gmail.com":i[1]}else if(~s.indexOf(i[1])){if(t.icloud_remove_subaddress&&(i[0]=i[0].split("+")[0]),!i[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(i[0]=i[0].toLowerCase())}else if(~u.indexOf(i[1])){if(t.outlookdotcom_remove_subaddress&&(i[0]=i[0].split("+")[0]),!i[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(i[0]=i[0].toLowerCase())}else if(~c.indexOf(i[1])){if(t.yahoo_remove_subaddress){var l=i[0].split("-");i[0]=l.length>1?l.slice(0,-1).join("-"):l[0]}if(!i[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(i[0]=i[0].toLowerCase())}else t.all_lowercase&&(i[0]=i[0].toLowerCase());return i.join("@")};var r,i=n(51),a=(r=i)&&r.__esModule?r:{default:r};var o={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,icloud_lowercase:!0,icloud_remove_subaddress:!0},s=["icloud.com","me.com"],u=["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"],c=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[^"+t+"]+","g"),"")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=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(12)),i=a(n(136));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)((0,i.default)(e,t),t)};var r=a(n(137)),i=a(n(138));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locales=void 0,t.default=function(e,t){if((0,a.default)(e),t in c)return c[t].test(e);if("any"===t){for(var n in c){if(c.hasOwnProperty(n))if(c[n].test(e))return!0}return!1}throw new Error("Invalid locale '"+t+"'")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^\d{4}$/,s=/^\d{5}$/,u=/^\d{6}$/,c={AT:o,AU:o,BE:o,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:o,CZ:/^\d{3}\s?\d{2}$/,DE:s,DK:o,DZ:s,ES:s,FI:s,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,IL:s,IN:u,IS:/^\d{3}$/,IT:s,JP:/^\d{3}\-\d{4}$/,KE:s,LI:/^(948[5-9]|949[0-7])$/,MX:s,NL:/^\d{4}\s?[a-z]{2}$/i,NO:o,PL:/^\d{2}\-\d{3}$/,PT:/^\d{4}\-\d{3}?$/,RO:u,RU:u,SA:s,SE:/^\d{3}\s?\d{2}$/,TW:/^\d{3}(\d{2})?$/,US:/^\d{5}(-\d{4})?$/,ZA:o,ZM:s};t.locales=Object.keys(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),!e.includes(","))return!1;var t=e.split(",");return o.test(t[0])&&s.test(t[1])};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,s=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||s.test(e)||u.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,s=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,u=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^\s*data:([a-z]+\/[a-z0-9\-\+]+(;[a-z\-]+=[a-z0-9\-]+)?)?(;base64)?,[a-z0-9!\$&',\(\)\*\+,;=\-\._~:@\/\?%\s]*\s*$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.length;if(!t||t%4!=0||o.test(e))return!1;var n=e.indexOf("=");return-1===n||n===t-1||n===t-2&&"="===e[t-1]};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/[^A-Z0-9+\/=]/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.includes(e.toUpperCase())};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),function(e){var t="\\d{"+e.digits_after_decimal[0]+"}";e.digits_after_decimal.forEach(function(e,n){0!==n&&(t=t+"|\\d{"+e+"}")});var n="(\\"+e.symbol.replace(/\./g,"\\.")+")"+(e.require_symbol?"":"?"),r="[1-9]\\d{0,2}(\\"+e.thousands_separator+"\\d{3})*",i="("+["0","[1-9]\\d*",r].join("|")+")?",a="(\\"+e.decimal_separator+"("+t+"))"+(e.require_decimal?"":"?"),o=i+(e.allow_decimal||e.require_decimal?a:"");return e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?o+="-?":e.negative_sign_before_digits&&(o="-?"+o)),e.allow_negative_sign_placeholder?o="( (?!\\-))?"+o:e.allow_space_after_symbol?o=" ?"+o:e.allow_space_after_digits&&(o+="( (?!$))?"),e.symbol_after_digits?o+=n:o=n+o,e.allow_negatives&&(e.parens_for_negatives?o="(\\("+o+"\\)|"+o+")":e.negative_sign_before_digits||e.negative_sign_after_digits||(o="-?"+o)),new RegExp("^(?!-? )(?=.*\\d)"+o+"$")}(t=(0,r.default)(t,o)).test(e)};var r=a(n(51)),i=a(n(12));function a(e){return e&&e.__esModule?e:{default:e}}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in o)return o[t].test(e);if("any"===t){for(var n in o)if(o.hasOwnProperty(n)){var r=o[n];if(r.test(e))return!0}return!1}throw new Error("Invalid locale '"+t+"'")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o={"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-EG":/^((\+?20)|0)?1[012]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-HK":/^(\+?852\-?)?[456789]\d{3}\-?\d{4}$/,"en-IN":/^(\+?91|0)?[789]\d{9}$/,"en-KE":/^(\+?254|0)?[7]\d{8}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)2\d{7,9}$/,"en-PK":/^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[89]\d{7}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"es-ES":/^(\+?34)?(6\d{1}|7[1234])\d{7}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[0248]|77)[1-9]\d{6}/,"hu-HU":/^(\+?36)(20|30|70)\d{7}$/,"id-ID":/^(\+?62|0[1-9])[\s|\d]+$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"ja-JP":/^(\+?81|0)[789]0[ \-]?[1-9]\d{2}[ \-]?\d{5}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"ms-MY":/^(\+?6?01){1}(([145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"nl-BE":/^(\+?32|0)4?\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"vi-VN":/^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,"zh-CN":/^(\+?0?86\-?)?1[345789]\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/};o["en-CA"]=o["en-US"],o["fr-BE"]=o["nl-BE"],o["zh-HK"]=o["en-HK"],e.exports=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,a.default)(e);var n=o;if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;var r=e.replace("-",""),i=8,s=0,u=!0,c=!1,l=void 0;try{for(var d,f=r[Symbol.iterator]();!(u=(d=f.next()).done);u=!0){var p=d.value,h="X"===p.toUpperCase()?10:+p;s+=h*i,--i}}catch(e){c=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(c)throw l}}return s%11==0};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o="^\\d{4}-?\\d{3}[\\dX]$";e.exports=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]:"";(0,a.default)(t);n=String(n);if(!n)return e(t,10)||e(t,13);var r=t.replace(/[\s-]+/g,"");var i=0;var c=void 0;if("10"===n){if(!o.test(r))return!1;for(c=0;c<9;c++)i+=(c+1)*r.charAt(c);if("X"===r.charAt(9)?i+=100:i+=10*r.charAt(9),i%11==0)return!!r}else if("13"===n){if(!s.test(r))return!1;for(c=0;c<12;c++)i+=u[c%2]*r.charAt(c);if(r.charAt(12)-(10-i%10)%10==0)return!!r}return!1};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^(?:[0-9]{9}X|[0-9]{10})$/,s=/^(?:[0-9]{13})$/,u=[1,3];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),!o.test(e))return!1;for(var t=e.replace(/[A-Z]/g,function(e){return parseInt(e,36)}),n=0,r=void 0,i=void 0,s=!0,u=t.length-2;u>=0;u--)r=t.substring(u,u+1),i=parseInt(r,10),n+=s&&(i*=2)>=10?i+1:i,s=!s;return parseInt(e.substr(e.length-1),10)===(1e4-n)%10};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.replace(/[- ]+/g,"");if(!o.test(t))return!1;for(var n=0,r=void 0,i=void 0,s=void 0,u=t.length-1;u>=0;u--)r=t.substring(u,u+1),i=parseInt(r,10),n+=s&&(i*=2)>=10?i%10+1:i,s=!s;return!(n%10!=0||!t)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^(?: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}|62[0-9]{14})$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=function(e,t){(0,i.default)(e);var n=void 0;if("[object Array]"===Object.prototype.toString.call(t)){var o=[];for(n in t)({}).hasOwnProperty.call(t,n)&&(o[n]=(0,a.default)(t[n]));return o.indexOf(e)>=0}if("object"===(void 0===t?"undefined":r(t)))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var i=o(n(12)),a=o(n(94));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=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&&a1&&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(12)),i=a(n(95));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=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(12)),i=a(n(139));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=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,a.default)(e);var n=o[t];return n&&n.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o={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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=function(e,t){(0,o.default)(e);var n=void 0,i=void 0;"object"===(void 0===t?"undefined":r(t))?(n=t.min||0,i=t.max):(n=arguments[1],i=arguments[2]);var a=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],s=e.length-a.length;return s>=n&&(void 0===i||s<=i)};var i,a=n(12),o=(i=a)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),0===e.length};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=function(e){(0,o.default)(e);try{var t=JSON.parse(e);return!!t&&"object"===(void 0===t?"undefined":r(t))}catch(e){}return!1};var i,a=n(12),o=(i=a)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),new RegExp("^[a-f0-9]{"+o[t]+"}$").test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o={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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[a-f0-9]{32}$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;e.exports=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(12)),i=a(n(145));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=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=(0,r.default)(t,s)).locale in a.decimal)return!u.includes(e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\"+a.decimal[e.locale]+"[0-9]{"+e.decimal_digits+"})"+(e.force_decimal?"":"?")+"$")}(t).test(e);throw new Error("Invalid locale '"+t.locale+"'")};var r=o(n(51)),i=o(n(12)),a=n(77);function o(e){return e&&e.__esModule?e:{default:e}}var s={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\"+(t.locale?o.decimal[t.locale]:".")+"[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$");if(""===e||"."===e||"-"===e||"+"===e)return!1;return n.test(e)&&(!t.hasOwnProperty("min")||e>=t.min)&&(!t.hasOwnProperty("max")||e<=t.max)&&(!t.hasOwnProperty("lt")||et.gt)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r},o=n(77);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/[^\x00-\x7F]/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.fullWidth.test(e)&&s.halfWidth.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r},o=n(141),s=n(140);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[\x00-\x7F]+$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toUpperCase()};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toLowerCase()};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e,{min:0,max:65535})};var r,i=n(142),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[-+]?[0-9]+$/;e.exports=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,a.default)(e),t in o.alphanumeric)return o.alphanumeric[t].test(e);throw new Error("Invalid locale '"+t+"'")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r},o=n(77);e.exports=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,a.default)(e),t in o.alpha)return o.alpha[t].test(e);throw new Error("Invalid locale '"+t+"'")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r},o=n(77);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),["true","false","1","0"].indexOf(e)>=0};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;e.exports=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;t=(0,o.default)(t,u);var n=void 0,s=void 0,d=void 0,f=void 0,p=void 0,h=void 0,m=void 0,g=void 0;if(m=e.split("#"),e=m.shift(),m=e.split("?"),e=m.shift(),(m=e.split("://")).length>1){if(n=m.shift(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;t.allow_protocol_relative_urls&&"//"===e.substr(0,2)&&(m[0]=e.substr(2))}if(""===(e=m.join("://")))return!1;if(m=e.split("/"),""===(e=m.shift())&&!t.require_host)return!0;if((m=e.split("@")).length>1&&(s=m.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;f=m.join("@"),h=null,g=null;var y=f.match(c);y?(d="",g=y[1],h=y[2]||null):(m=f.split(":"),d=m.shift(),m.length&&(h=m.join(":")));if(null!==h&&(p=parseInt(h,10),!/^[0-9]+$/.test(h)||p<=0||p>65535))return!1;if(!((0,a.default)(d)||(0,i.default)(d,t)||g&&(0,a.default)(g,6)))return!1;if(d=d||g,t.host_whitelist&&!l(d,t.host_whitelist))return!1;if(t.host_blacklist&&l(d,t.host_blacklist))return!1;return!0};var r=s(n(12)),i=s(n(93)),a=s(n(143)),o=s(n(51));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},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(e,t){for(var n=0;n$/i,l=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,d=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,p=/^([\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;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,a.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return t.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=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(12)),i=a(n(94));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e===t};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t)return"1"===e||"true"===e;return"0"!==e&&"false"!==e&&""!==e};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),parseInt(e,t||10)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=ge(n(95)),i=ge(n(145)),a=ge(n(295)),o=ge(n(294)),s=ge(n(293)),u=ge(n(292)),c=ge(n(291)),l=ge(n(290)),d=ge(n(289)),f=ge(n(288)),p=ge(n(143)),h=ge(n(93)),m=ge(n(287)),g=ge(n(286)),y=ge(n(285)),v=ge(n(284)),b=ge(n(283)),C=ge(n(282)),S=ge(n(281)),A=ge(n(280)),E=ge(n(141)),N=ge(n(140)),I=ge(n(279)),_=ge(n(278)),D=ge(n(277)),x=ge(n(142)),F=ge(n(276)),T=ge(n(275)),M=ge(n(139)),w=ge(n(274)),B=ge(n(273)),k=ge(n(272)),R=ge(n(271)),O=ge(n(270)),P=ge(n(269)),j=ge(n(268)),L=ge(n(267)),G=ge(n(144)),V=ge(n(266)),U=ge(n(265)),z=ge(n(264)),H=ge(n(263)),W=ge(n(262)),J=ge(n(261)),K=ge(n(260)),q=ge(n(259)),$=ge(n(258)),Y=ge(n(257)),Z=ge(n(256)),X=ge(n(255)),Q=ge(n(254)),ee=ge(n(253)),te=ge(n(252)),ne=ge(n(251)),re=ge(n(250)),ie=ge(n(249)),ae=ge(n(138)),oe=ge(n(137)),se=ge(n(248)),ue=ge(n(247)),ce=ge(n(246)),le=ge(n(245)),de=ge(n(244)),fe=ge(n(136)),pe=ge(n(243)),he=ge(n(242)),me=ge(n(94));function ge(e){return e&&e.__esModule?e:{default:e}}var ye={version:"9.2.0",toDate:r.default,toFloat:i.default,toInt:a.default,toBoolean:o.default,equals:s.default,contains:u.default,matches:c.default,isEmail:l.default,isURL:d.default,isMACAddress:f.default,isIP:p.default,isFQDN:h.default,isBoolean:m.default,isAlpha:g.default,isAlphanumeric:y.default,isNumeric:v.default,isPort:b.default,isLowercase:C.default,isUppercase:S.default,isAscii:A.default,isFullWidth:E.default,isHalfWidth:N.default,isVariableWidth:I.default,isMultibyte:_.default,isSurrogatePair:D.default,isInt:x.default,isFloat:F.default,isDecimal:T.default,isHexadecimal:M.default,isDivisibleBy:w.default,isHexColor:B.default,isISRC:k.default,isMD5:R.default,isHash:O.default,isJSON:P.default,isEmpty:j.default,isLength:L.default,isByteLength:G.default,isUUID:V.default,isMongoId:U.default,isAfter:z.default,isBefore:H.default,isIn:W.default,isCreditCard:J.default,isISIN:K.default,isISBN:q.default,isISSN:$.default,isMobilePhone:Y.default,isPostalCode:ie.default,isCurrency:Z.default,isISO8601:X.default,isISO31661Alpha2:Q.default,isBase64:ee.default,isDataURI:te.default,isMimeType:ne.default,isLatLong:re.default,ltrim:ae.default,rtrim:oe.default,trim:se.default,escape:ue.default,unescape:ce.default,stripLow:le.default,whitelist:de.default,blacklist:fe.default,isWhitelisted:pe.default,normalizeEmail:he.default,toString:me.default};t.default=ye,e.exports=t.default},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&&(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});var r=n(146),i=n(64),a=n(52),o=n(53),s=n(297),u=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,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 c=new r.ValidationError;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(c.target=e),c.value=void 0,c.property=void 0,c.children=[],c.constraints={unknownValue:"an unknown value was passed to the validate function"},void n.push(c)}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}),c=s.filter(function(e){return e.type===o.ValidationTypes.CUSTOM_VALIDATION}),l=s.filter(function(e){return e.type===o.ValidationTypes.NESTED_VALIDATION}),d=s.filter(function(e){return e.type===o.ValidationTypes.CONDITIONAL_VALIDATION}),f=i.generateValidationError(e,r,t);n.push(f),i.conditionalValidations(e,r,d)&&(i.defaultValidations(e,r,a,f.constraints),(null!==r&&void 0!==r||!i.validatorOptions||!0!==i.validatorOptions.skipMissingProperties)&&(i.defaultValidations(e,r,s,f.constraints),i.customValidations(e,r,c,f.constraints),i.nestedValidations(r,l,f.children)))})},e.prototype.whitelist=function(e,t,n){var r=[];Object.keys(e).forEach(function(e){t[e]&&0!==t[e].length||r.push(e)}),r.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?r.forEach(function(t){var r;n.push({target:e,property:t,value:e[t],children:void 0,constraints:(r={},r[o.ValidationTypes.WHITELIST]="property "+t+" should not exist",r)})}):r.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.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.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},s=i.instance.validate(t,a);if(s instanceof Promise){var u=s.then(function(a){if(!a){var s=o.createValidationError(e,t,n,i),u=s[0],c=s[1];r[u]=c}});o.awaitingPromises.push(u)}else if(!s){var c=o.createValidationError(e,t,n,i),l=c[0],d=c[1];r[l]=d}}})})},e.prototype.nestedValidations=function(e,t,n){var i=this;void 0!==e&&t.forEach(function(t){if(t.type===o.ValidationTypes.NESTED_VALIDATION){var a,s="string"==typeof t.target?t.target:void 0;if(e instanceof Array)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 c=i.createValidationError(t.target,e,t),l=c[0],d=c[1];u.constraints=((a={})[l]=d,a),n.push(u)}}})},e.prototype.createValidationError=function(e,t,n,r){var i=e.constructor?e.constructor.name:void 0,a=r&&r.name?r.name:n.type,u={targetName:i,property:n.propertyName,object:e,value:t,constraints:n.constraints},c=n.message;return n.message||this.validatorOptions&&(!this.validatorOptions||this.validatorOptions.dismissDefaultMessages)||(r&&r.instance.defaultMessage instanceof Function&&(c=r.instance.defaultMessage(u)),c||(c=o.ValidationTypes.getMessage(a,n.each))),[a,s.ValidationUtils.replaceMessageSpecialTokens(c,u)]},e}();t.ValidationExecutor=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(96),i=n(53),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";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var i=n(64),a=n(147),o=n(52);r(n(52)),r(n(241)),r(n(146)),r(n(53)),r(n(147)),r(n(240)),r(n(64)),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";var r=n(0),i=r(n(18)),a=r(n(2)),o=r(n(8)),s=r(n(7)),u=r(n(6)),c=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,c.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,s.default)(t,n,o),o},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof o.default)return(0,o.default)(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p,h=n(1),m=n(4),g=n(300),y=n(82),v=n(43),b=n(81),C=n(80),S=n(134),A=n(239),E=p=function e(t,n){(0,a.default)(this,e),(0,i.default)(this,S.DEFAULT_PRESET,t);var r=g.validateSync(this,p.validatorOptions);if(r.length)throw new ReferenceError("Validation failed. errors:\n".concat(A.ValidationErrorsFormatter.format(r)));(0,i.default)(this,n.normalize(this))};E.validatorOptions={validationError:{target:!1}},l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"compact",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"controlFlowFlattening",void 0),l([g.IsNumber(),g.Min(0),g.Max(1),d("design:type",Number)],E.prototype,"controlFlowFlatteningThreshold",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"deadCodeInjection",void 0),l([g.IsNumber(),d("design:type",Number)],E.prototype,"deadCodeInjectionThreshold",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"debugProtection",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"debugProtectionInterval",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"disableConsoleOutput",void 0),l([g.IsArray(),g.ArrayUnique(),g.IsString({each:!0}),d("design:type",Array)],E.prototype,"domainLock",void 0),l([g.IsIn([y.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,y.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),d("design:type",String)],E.prototype,"identifierNamesGenerator",void 0),l([g.IsString(),d("design:type",String)],E.prototype,"identifiersPrefix",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"log",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"renameGlobals",void 0),l([g.IsArray(),g.ArrayUnique(),g.IsString({each:!0}),d("design:type",Array)],E.prototype,"reservedNames",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"rotateStringArray",void 0),l([g.IsNumber(),d("design:type",Number)],E.prototype,"seed",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"selfDefending",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"sourceMap",void 0),l([g.IsString(),g.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),g.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),d("design:type",String)],E.prototype,"sourceMapBaseUrl",void 0),l([g.IsString(),d("design:type",String)],E.prototype,"sourceMapFileName",void 0),l([g.IsIn([b.SourceMapMode.Inline,b.SourceMapMode.Separate]),d("design:type",String)],E.prototype,"sourceMapMode",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"stringArray",void 0),l([g.IsIn([!0,!1,C.StringArrayEncoding.Base64,C.StringArrayEncoding.Rc4]),d("design:type",Object)],E.prototype,"stringArrayEncoding",void 0),l([g.IsNumber(),g.Min(0),g.Max(1),d("design:type",Number)],E.prototype,"stringArrayThreshold",void 0),l([g.IsIn([v.ObfuscationTarget.Browser,v.ObfuscationTarget.BrowserNoEval,v.ObfuscationTarget.Node]),d("design:type",String)],E.prototype,"target",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"transformObjectKeys",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"unicodeEscapeSequence",void 0),E=p=l([h.injectable(),f(0,h.inject(m.ServiceIdentifiers.TInputOptions)),f(1,h.inject(m.ServiceIdentifiers.IOptionsNormalizer)),d("design:paramtypes",[Object,Object])],E),t.Options=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),a=n(301),o=n(238);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=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v=n(1),b=n(4),C=y(n(24)),S=n(39),A=n(46),E=n(17),N=n(19),I=n(13),_=n(28),D=n(14),x=function(e){function t(e,n,r){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).replaceableIdentifiers=new i.default,o.identifierObfuscatingReplacer=e(S.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case E.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&I.NodeGuards.isVariableDeclarationNode(e)&&!I.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=D.NodeUtils.getBlockScopesOfNode(e)[0],r=n.type===A.NodeType.Program;if(!this.options.renameGlobals&&r)return e;var i=this.nodeIdentifier++,a="var"===e.kind?n:t;return this.storeVariableNames(e,r,i),this.replaceableIdentifiers.has(a)?this.replaceScopeCachedIdentifiers(e,a,i):this.replaceScopeIdentifiers(a,i),e}},{key:"storeVariableNames",value:function(e,t,n){var r=this;this.traverseDeclarationIdentifiers(e,function(e){t?r.identifierObfuscatingReplacer.storeGlobalName(e.name,n):r.identifierObfuscatingReplacer.storeLocalName(e.name,n)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,n){var r=this,i=this.replaceableIdentifiers.get(t);if(i){var a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var t=i.get(e);if(t)for(var a=t.length,o=0;o=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(80),S=n(78),A=n(28),E=n(20),N=n(54),I=y=function(e){function t(e,n,r,o,s){var l;return(0,a.default)(this,t),(l=(0,u.default)(this,(0,c.default)(t).call(this,s))).nodesCache=new i.default,l.stringLiteralHexadecimalIndexCache=new i.default,l.stringArrayStorage=e,l.escapeSequenceEncoder=n,l.randomGenerator=r,l.cryptUtils=o,l.rc4Keys=l.randomGenerator.getRandomGenerator().n(function(){return l.randomGenerator.getRandomGenerator().string({length:y.rc4KeyLength})},y.rc4KeysCount),l}return(0,s.default)(t,[{key:"replace",value:function(e){var t=this.canUseStringArray(e),n="".concat(e,"-").concat(String(t));if(this.nodesCache.has(n)&&this.options.stringArrayEncoding!==C.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>=y.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=N.Utils.decToHex(t),r="".concat(N.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 C.StringArrayEncoding.Rc4:n=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,n));break;case C.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:n}}},{key:"replaceWithLiteralNode",value:function(e){return E.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),n=t.encodedValue,r=t.key,i=this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),o=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(i,a),u=s.fromCache,c=s.index;u||this.stringArrayStorage.set(a,i);var l=[y.getHexadecimalLiteralNode(c)];r&&l.push(y.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence)));var d=E.NodeFactory.identifierNode(o);return A.NodeMetadata.set(d,{renamedIdentifier:!0}),E.NodeFactory.callExpressionNode(d,l)}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=E.NodeFactory.literalNode(e);return A.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=E.NodeFactory.literalNode(e);return A.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),(0,o.default)(t,e),t}(S.AbstractObfuscatingReplacer);I.minimumLengthForStringArray=3,I.rc4KeyLength=4,I.rc4KeysCount=50,I=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.TStringArrayStorage)),g(1,v.inject(b.ServiceIdentifiers.IEscapeSequenceEncoder)),g(2,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(3,v.inject(b.ServiceIdentifiers.ICryptUtils)),g(4,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object,Object,Object,Object,Object])],I),t.StringLiteralObfuscatingReplacer=I},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(78),C=n(20),S=n(54),A=function(e){function t(e){var n;return(0,a.default)(this,t),(n=(0,u.default)(this,(0,c.default)(t).call(this,e))).numberLiteralCache=new i.default,n}return(0,s.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=S.Utils.isCeilNumber(e)?"".concat(S.Utils.hexadecimalPrefix).concat(S.Utils.decToHex(e)):String(e),this.numberLiteralCache.set(e,t)),C.NodeFactory.literalNode(e,t)}}]),(0,o.default)(t,e),t}(b.AbstractObfuscatingReplacer);A=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object])],A),t.NumberLiteralObfuscatingReplacer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(148),b=n(17),C=n(19),S=n(13),A=n(28),E=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).literalObfuscatingReplacerFactory=e,a}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isLiteralNode(e)&&!A.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;switch((0,d.default)(e.value)){case"boolean":return this.literalObfuscatingReplacerFactory(v.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);case"number":return this.literalObfuscatingReplacerFactory(v.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);case"string":return this.literalObfuscatingReplacerFactory(v.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);default:return e}}},{key:"isProhibitedNode",value:function(e,t){return!(!S.NodeGuards.isPropertyNode(t)||t.key!==e)||!!S.NodeGuards.isImportDeclarationNode(t)}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);E=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IObfuscatingReplacer)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],E),t.LiteralTransformer=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=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 y=n(1),v=n(4),b=g(n(24)),C=n(39),S=n(17),A=n(19),E=n(13),N=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(C.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&E.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++;return this.storeLabeledStatementName(e,n),this.replaceLabeledStatementName(e,n),e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var n=this;b.replace(e,{enter:function(e,r){if(r&&E.NodeGuards.isLabelIdentifierNode(e,r)){var i=n.identifierObfuscatingReplacer.replace(e.name,t);e.name=i.name}}})}}]),(0,a.default)(t,e),t}(A.AbstractNodeTransformer);N=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],N),t.LabeledStatementTransformer=N},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v,b=n(1),C=n(4),S=y(n(24)),A=n(39),E=n(17),N=n(19),I=n(13),_=n(28),D=n(14),x=v=function(e){function t(e,n,r){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).replaceableIdentifiers=new i.default,o.identifierObfuscatingReplacer=e(A.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case E.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&I.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++,r=D.NodeUtils.getBlockScopesOfNode(e)[0];return this.storeImportSpecifierNames(e,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r,n):this.replaceScopeIdentifiers(r,n),e}},{key:"storeImportSpecifierNames",value:function(e,t){var n=this;e.specifiers.forEach(function(e){v.isProhibitedImportSpecifierNode(e)||n.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var n=this;this.replaceableIdentifiers.get(e).forEach(function(e){var r=n.identifierObfuscatingReplacer.replace(e.name,t);e.name=r.name,_.NodeMetadata.set(e,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e,t){var n=this,r=[];S.replace(e,{enter:function(e,i){if(i&&I.NodeGuards.isReplaceableIdentifierNode(e,i)&&!_.NodeMetadata.isRenamedIdentifier(e)){var a=n.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a?(e.name=a,_.NodeMetadata.set(e,{renamedIdentifier:!0})):r.push(e)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return I.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),(0,o.default)(t,e),t}(N.AbstractNodeTransformer);x=v=h([b.injectable(),g(0,b.inject(C.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),g(1,b.inject(C.ServiceIdentifiers.IRandomGenerator)),g(2,b.inject(C.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],x),t.ImportDeclarationTransformer=x},function(e,t,n){"use strict";var r=n(0),i=r(n(57)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v=n(1),b=n(4),C=y(n(24)),S=n(39),A=n(17),E=n(19),N=n(13),I=n(28),_=function(e){function t(e,n,r){var i;return(0,a.default)(this,t),(i=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(S.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case A.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&(N.NodeGuards.isFunctionDeclarationNode(e)||N.NodeGuards.isFunctionExpressionNode(e)||N.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++;return this.storeFunctionParams(e,n),this.replaceFunctionParams(e,n),e}},{key:"storeFunctionParams",value:function(e,t){var n=this;e.params.forEach(function(e){C.traverse(e,{enter:function(r){return N.NodeGuards.isPropertyNode(e)?C.VisitorOption.Skip:N.NodeGuards.isAssignmentPatternNode(r)&&N.NodeGuards.isIdentifierNode(r.left)?(n.identifierObfuscatingReplacer.storeLocalName(r.left.name,t),C.VisitorOption.Skip):void(N.NodeGuards.isIdentifierNode(r)&&n.identifierObfuscatingReplacer.storeLocalName(r.name,t))}})})}},{key:"addIdentifiersToIgnoredIdentifierNamesSet",value:function(e,t){e.forEach(function(e){e.key&&N.NodeGuards.isIdentifierNode(e.key)&&t.add(e.key.name)})}},{key:"replaceFunctionParams",value:function(e,t){var n=this,r=new i.default,a={enter:function(e,i){if(N.NodeGuards.isObjectPatternNode(e)&&n.addIdentifiersToIgnoredIdentifierNamesSet(e.properties,r),i&&N.NodeGuards.isReplaceableIdentifierNode(e,i)&&!r.has(e.name)){var a=n.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a&&(e.name=a,I.NodeMetadata.set(e,{renamedIdentifier:!0}))}}};e.params.forEach(function(e){return C.replace(e,a)}),C.replace(e.body,a)}}]),(0,o.default)(t,e),t}(E.AbstractNodeTransformer);_=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],_),t.FunctionTransformer=_},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v=n(1),b=n(4),C=y(n(24)),S=n(39),A=n(46),E=n(17),N=n(19),I=n(13),_=n(28),D=n(14),x=function(e){function t(e,n,r){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).replaceableIdentifiers=new i.default,o.identifierObfuscatingReplacer=e(S.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case E.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&I.NodeGuards.isFunctionDeclarationNode(e)&&!I.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++,r=D.NodeUtils.getBlockScopesOfNode(e)[0],i=r.type===A.NodeType.Program;return!this.options.renameGlobals&&i?e:(this.storeFunctionName(e,i,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r,n):this.replaceScopeIdentifiers(r,n),e)}},{key:"storeFunctionName",value:function(e,t,n){t?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,n):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,n)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,n){var r=this.replaceableIdentifiers.get(t);if(r){var i=r.get(e.id.name);if(i)for(var a=i.length,o=0;o=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v=n(1),b=n(4),C=y(n(24)),S=n(39),A=n(46),E=n(17),N=n(19),I=n(13),_=n(28),D=n(14),x=function(e){function t(e,n,r){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).replaceableIdentifiers=new i.default,o.identifierObfuscatingReplacer=e(S.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case E.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&I.NodeGuards.isClassDeclarationNode(e)&&!I.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++,r=D.NodeUtils.getBlockScopesOfNode(e)[0],i=r.type===A.NodeType.Program;return!this.options.renameGlobals&&i?e:(this.storeClassName(e,i,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r,n):this.replaceScopeIdentifiers(r,n),e)}},{key:"storeClassName",value:function(e,t,n){t?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,n):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,n)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var n=this;this.replaceableIdentifiers.get(e).forEach(function(e){var r=n.identifierObfuscatingReplacer.replace(e.name,t);e.name=r.name,_.NodeMetadata.set(e,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e,t){var n=this,r=[];C.replace(e,{enter:function(e,i){if(i&&I.NodeGuards.isReplaceableIdentifierNode(e,i)&&!_.NodeMetadata.isRenamedIdentifier(e)){var a=n.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a?(e.name=a,_.NodeMetadata.set(e,{renamedIdentifier:!0})):r.push(e)}}}),this.replaceableIdentifiers.set(e,r)}}]),(0,o.default)(t,e),t}(N.AbstractNodeTransformer);x=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],x),t.ClassDeclarationTransformer=x},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=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 y=n(1),v=n(4),b=g(n(24)),C=n(39),S=n(17),A=n(19),E=n(13),N=n(28),I=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(C.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&E.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++;return this.storeCatchClauseParam(e,n),this.replaceCatchClauseParam(e,n),e}},{key:"storeCatchClauseParam",value:function(e,t){E.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var n=this;b.replace(e,{enter:function(e,r){if(r&&E.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}))}}})}}]),(0,a.default)(t,e),t}(A.AbstractNodeTransformer);I=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],I),t.CatchClauseTransformer=I},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(78),C=n(20),S=g=function(e){function t(e){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e))}return(0,o.default)(t,[{key:"replace",value:function(e){return e?g.getTrueUnaryExpressionNode():g.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return C.NodeFactory.unaryExpressionNode("!",g.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return C.NodeFactory.unaryExpressionNode("!",C.NodeFactory.arrayExpressionNode())}}]),(0,a.default)(t,e),t}(b.AbstractObfuscatingReplacer);S=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object])],S),t.BooleanLiteralObfuscatingReplacer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(78),C=n(20),S=function(e){function t(e,n){var r;return(0,a.default)(this,t),(r=(0,u.default)(this,(0,c.default)(t).call(this,n))).namesMap=new i.default,r.identifierNamesGenerator=e(n),r}return(0,s.default)(t,[{key:"replace",value:function(e,t){var n="".concat(e,"-").concat(String(t));return this.namesMap.has(n)&&(e=this.namesMap.get(n)),C.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var n=this.identifierNamesGenerator.generateWithPrefix();this.namesMap.set("".concat(e,"-").concat(String(t)),n)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var n=this.identifierNamesGenerator.generate();this.namesMap.set("".concat(e,"-").concat(String(t)),n)}}},{key:"isReservedName",value:function(e){return this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),(0,o.default)(t,e),t}(b.AbstractObfuscatingReplacer);S=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object])],S),t.BaseIdentifierObfuscatingReplacer=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),a=n(4),o=n(39),s=n(148),u=n(58),c=n(314),l=n(313),d=n(312),f=n(311),p=n(310),h=n(309),m=n(308),g=n(307),y=n(306),v=n(305),b=n(304),C=n(303);t.obfuscatingTransformersModule=new i.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CatchClauseTransformer).whenTargetNamed(u.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(u.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(h.FunctionTransformer).whenTargetNamed(u.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ImportDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.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(v.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(b.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(c.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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),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";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(79)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(149),S=y=function(e){function t(e,n){var r;return(0,i.default)(this,t),(r=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).previousMangledName=y.initMangledNameCharacter,r}return(0,o.default)(t,[{key:"generate",value:function(){var e=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=e,e}},{key:"generateWithPrefix",value:function(){var e=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",t=this.generate();return"".concat(e).concat(t)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,u.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!y.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=y.nameSequence,n=e.length,r=function(e){return"0".repeat(e)},i=n-1;do{var a=e.charAt(i),o=t.indexOf(a);if(o!==t.length-1)return e.substring(0,i)+t[o+1]+r(n-(i+1));--i}while(i>=0);return"a".concat(r(n))},n=t(e);return this.isValidIdentifierName(n)||(n=this.generateNewMangledName(n)),n}}]),(0,a.default)(t,e),t}(C.AbstractIdentifierNamesGenerator);S.initMangledNameCharacter="9",S.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),S.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],S=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(1,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object,Object])],S),t.MangledIdentifierNamesGenerator=S},function(e,t,n){"use strict";var r=n(0),i=r(n(57)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(149),S=n(54),A=y=function(e){function t(e,n){var r;return(0,a.default)(this,t),(r=(0,u.default)(this,(0,c.default)(t).call(this,e,n))).randomVariableNameSet=new i.default,r}return(0,s.default)(t,[{key:"generate",value:function(){var e=this.randomGenerator.getRandomInteger(1e4,99999999),t=S.Utils.decToHex(e).substr(0,y.baseIdentifierNameLength),n="_".concat(S.Utils.hexadecimalPrefix).concat(t);return this.randomVariableNameSet.has(n)?this.generate():(this.randomVariableNameSet.add(n),n)}},{key:"generateWithPrefix",value:function(){var e=this.generate();return"".concat(this.options.identifiersPrefix).concat(e).replace("__","_")}}]),(0,o.default)(t,e),t}(C.AbstractIdentifierNamesGenerator);A.baseIdentifierNameLength=6,A=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(1,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object,Object])],A),t.HexadecimalIdentifierNamesGenerator=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),a=n(82),o=n(318),s=n(317);t.generatorsModule=new r.ContainerModule(function(e){e(i.ServiceIdentifiers.IIdentifierNamesGenerator).to(o.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(i.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.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.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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.finalizingTransformersModule=new r.ContainerModule(function(e){})},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[C.NodeFactory.expressionStatementNode(C.NodeFactory.literalNode(this.literalValue))]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],S.prototype,"literalValue",void 0),S=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],S),t.StringLiteralNode=S},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=C.NodeFactory.expressionStatementNode(C.NodeFactory.memberExpressionNode(C.NodeFactory.identifierNode(this.controlFlowStorageName),C.NodeFactory.identifierNode(this.controlFlowStorageKey)));return S.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],A.prototype,"controlFlowStorageKey",void 0),p([v.initializable(),h("design:type",String)],A.prototype,"controlFlowStorageName",void 0),A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.StringLiteralControlFlowStorageCallNode=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.False="![]",e.True="!![]",e.a='(false+"")[1]',e.b='([]["entries"]()+"")[2]',e.c='([]["fill"]+"")[3]',e.d='(undefined+"")[2]',e.e='(true+"")[3]',e.f='(false+"")[0]',e.g="(false+[0]+String)[20]",e.h='(+(101))["toString"](21)[1]',e.i="([false]+undefined)[10]",e.j='([]["entries"]()+"")[3]',e.k='(+(20))["toString"](21)',e.l='(false+"")[2]',e.m='(Number+"")[11]',e.n='(undefined+"")[1]',e.o='(true+[]["fill"])[10]',e.p='(+(211))["toString"](31)[1]',e.q='(+(212))["toString"](31)[1]',e.r='(true+"")[1]',e.s='(false+"")[3]',e.t='(true+"")[0]',e.u='(undefined+"")[0]',e.v='(+(31))["toString"](32)',e.w='(+(32))["toString"](33)',e.x='(+(101))["toString"](34)[1]',e.y="(NaN+[Infinity])[10]",e.z='(+(35))["toString"](36)',e.A="(+[]+Array)[10]",e.B="(+[]+Boolean)[10]",e.C='Function("return escape")()(("")["italics"]())[2]',e.D='Function("return escape")()([]["fill"])["slice"]("-1")',e.E='(RegExp+"")[12]',e.F="(+[]+Function)[10]",e.G='(false+Function("return Date")()())[30]',e.H="'H'",e.I='(Infinity+"")[0]',e.J="'J'",e.K="'K'",e.L="'L'",e.M='(true+Function("return Date")()())[30]',e.N='(NaN+"")[0]',e.O='(NaN+Function("return{}")())[11]',e.P="'P'",e.Q="'Q'",e.R="(+[]+RegExp)[10]",e.S="(+[]+String)[10]",e.T='(NaN+Function("return Date")()())[30]',e.U='(NaN+Function("return{}")()["toString"]["call"]())[11]',e.V="'V'",e.W="'W'",e.X="'X'",e.Y="'Y'",e.Z="'Z'"}(t.JSFuck||(t.JSFuck={}))},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";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";var r=n(0),i=r(n(18)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(15),A=n(83),E=n(325),N=n(324),I=n(21),_=n(76),D=n(14),x=n(54),F=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,e,n,i))).escapeSequenceEncoder=r,o}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return D.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),n="";return n=this.options.selfDefending?C.default(E.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),_.JavaScriptObfuscator.obfuscate(C.default(N.StringArrayRotateFunctionTemplate(),{code:n,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:x.Utils.decToHex(this.stringArrayRotateValue),whileFunctionName:t}),(0,i.default)({},A.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),(0,o.default)(t,e),t}(I.AbstractCustomNode);h([S.initializable(),m("design:type",String)],F.prototype,"stringArrayName",void 0),h([S.initializable(),m("design:type",Number)],F.prototype,"stringArrayRotateValue",void 0),F=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IEscapeSequenceEncoder)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],F),t.StringArrayRotateFunctionNode=F},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){var r=n(9);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=n(88),i=n(72),a=n(37),o=n(27),s=n(25),u=n(26);o(o.S,"Reflect",{get:function e(t,n){var o,c,l=arguments.length<3?t:arguments[2];return u(t)===l?t[n]:(o=r.f(t,n))?a(o,"value")?o.value:void 0!==o.get?o.get.call(l):void 0:s(c=i(t))?e(c,n,l):void 0}})},function(e,t,n){n(329),e.exports=n(16).Reflect.get},function(e,t,n){e.exports=n(330)},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(79)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(15),A=n(327),E=n(21),N=n(14),I=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.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,c.default)((0,u.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return C.default(A.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),(0,a.default)(t,e),t}(E.AbstractCustomNode);h([S.initializable(),m("design:type",Object)],I.prototype,"stringArrayStorage",void 0),h([S.initializable(),m("design:type",String)],I.prototype,"stringArrayName",void 0),h([S.initializable(),m("design:type",Number)],I.prototype,"stringArrayRotateValue",void 0),I=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],I),t.StringArrayNode=I},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";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.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.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),c=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(c,"(this.").concat(n,");\n };\n\n StatesClass.prototype.").concat(c," = 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.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.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";var r=n(0),i=r(n(18)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(43),A=n(80),E=n(15),N=n(83),I=n(338),_=n(97),D=n(337),x=n(336),F=n(335),T=n(334),M=n(333),w=n(21),B=n(76),k=n(14),R=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,e,n,i))).escapeSequenceEncoder=r,o}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return k.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return B.JavaScriptObfuscator.obfuscate(C.default(T.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),(0,i.default)({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==S.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():_.GlobalVariableNoEvalTemplate(),t=C.default(I.AtobTemplate(),{globalVariableTemplate:e}),n="",r="";switch(this.options.selfDefending&&(r=C.default(x.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case A.StringArrayEncoding.Rc4:n=C.default(M.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:D.Rc4Template(),selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case A.StringArrayEncoding.Base64:n=C.default(F.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return n}}]),(0,o.default)(t,e),t}(w.AbstractCustomNode);h([E.initializable(),m("design:type",String)],R.prototype,"stringArrayName",void 0),h([E.initializable(),m("design:type",String)],R.prototype,"stringArrayCallsWrapperName",void 0),R=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IEscapeSequenceEncoder)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],R),t.StringArrayCallsWrapper=R},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(18)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(15),A=n(83),E=n(340),N=n(21),I=n(76),_=n(14),D=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,e,n,i))).escapeSequenceEncoder=r,o}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return I.JavaScriptObfuscator.obfuscate(C.default(E.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,i.default)({},A.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),(0,o.default)(t,e),t}(N.AbstractCustomNode);h([S.initializable(),m("design:type",String)],D.prototype,"callsControllerFunctionName",void 0),D=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IEscapeSequenceEncoder)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],D),t.SelfDefendingUnicodeNode=D},function(e,t,n){var r=n(25),i=n(60).onFreeze;n(67)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){n(342),e.exports=n(16).Object.freeze},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(18)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(44),A=n(15),E=n(344),N=n(83),I=n(21),_=n(76),D=n(14),x=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,u.default)(this,(0,c.default)(t).call(this,e,n,r))}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return D.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===S.ObfuscationEvent.AfterObfuscation?_.JavaScriptObfuscator.obfuscate(C.default(E.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,i.default)({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():C.default(E.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,o.default)(t,e),t}(I.AbstractCustomNode);h([A.initializable(),m("design:type",String)],x.prototype,"callsControllerFunctionName",void 0),h([A.initializable(),m("design:type",String)],x.prototype,"appendEvent",void 0),x=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],x),t.NodeCallsControllerFunctionNode=x},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=C.NodeFactory.expressionStatementNode(C.NodeFactory.functionExpressionNode([C.NodeFactory.identifierNode("x"),C.NodeFactory.identifierNode("y")],C.NodeFactory.blockStatementNode([C.NodeFactory.returnStatementNode(C.NodeFactory.logicalExpressionNode(this.operator,C.NodeFactory.identifierNode("x"),C.NodeFactory.identifierNode("y")))])));return S.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],A.prototype,"operator",void 0),A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.LogicalExpressionFunctionNode=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.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=C.NodeFactory.expressionStatementNode(C.NodeFactory.callExpressionNode(C.NodeFactory.memberExpressionNode(C.NodeFactory.identifierNode(this.controlFlowStorageName),C.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return S.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],A.prototype,"controlFlowStorageKey",void 0),p([v.initializable(),h("design:type",String)],A.prototype,"controlFlowStorageName",void 0),p([v.initializable(),h("design:type",Object)],A.prototype,"leftValue",void 0),p([v.initializable(),h("design:type",Object)],A.prototype,"rightValue",void 0),A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.ExpressionWithOperatorControlFlowStorageCallNode=A},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 \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 ((!document && !domain) || (!that[document] && !that[document][domain])) {\n return;\n }\n \n var currentDomain = that[document][domain];\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(56)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(43),A=n(15),E=n(348),N=n(97),I=n(21),_=n(14),D=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,e,n,i))).cryptUtils=r,o}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.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!==S.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():N.GlobalVariableNoEvalTemplate();return C.default(E.DomainLockNodeTemplate(),{domainLockFunctionName:this.identifierNamesGenerator.generate(),diff:a,domains:r,globalVariableTemplate:o,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,o.default)(t,e),t}(I.AbstractCustomNode);h([A.initializable(),m("design:type",String)],D.prototype,"callsControllerFunctionName",void 0),D=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.ICryptUtils)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],D),t.DomainLockNode=D},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";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.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";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=g(n(34)),C=n(43),S=n(15),A=n(352),E=n(351),N=n(350),I=n(21),_=n(14),D=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==C.ObfuscationTarget.BrowserNoEval?A.DebuggerTemplate():E.DebuggerTemplateNoEval();return b.default(N.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(I.AbstractCustomNode);p([S.initializable(),h("design:type",String)],D.prototype,"debugProtectionFunctionName",void 0),D=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],D),t.DebugProtectionFunctionNode=D},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(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=g(n(34)),C=n(15),S=n(354),A=n(21),E=n(14),N=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return E.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return b.default(S.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(A.AbstractCustomNode);p([C.initializable(),h("design:type",String)],N.prototype,"debugProtectionFunctionName",void 0),N=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],N),t.DebugProtectionFunctionIntervalNode=N},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(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=g(n(34)),C=n(15),S=n(356),A=n(21),E=n(14),N=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return E.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return b.default(S.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(A.AbstractCustomNode);p([C.initializable(),h("design:type",String)],N.prototype,"callsControllerFunctionName",void 0),p([C.initializable(),h("design:type",String)],N.prototype,"debugProtectionFunctionName",void 0),N=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],N),t.DebugProtectionFunctionCallNode=N},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(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=g(n(34)),C=n(43),S=n(358),A=n(97),E=n(15),N=n(21),I=n(14),_=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return I.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==C.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():A.GlobalVariableNoEvalTemplate();return b.default(S.ConsoleOutputDisableExpressionTemplate(),{consoleLogDisableFunctionName:this.identifierNamesGenerator.generate(),globalVariableTemplate:e,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(N.AbstractCustomNode);p([E.initializable(),h("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],_),t.ConsoleOutputDisableExpressionNode=_},function(e,t,n){"use strict";var r=n(0),i=r(n(56)),a=r(n(98)),o=r(n(2)),s=r(n(11)),u=r(n(3)),c=r(n(10)),l=r(n(9)),d=r(n(8)),f=r(n(7)),p=r(n(6)),h=r(n(5)),m=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,h.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,p.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&&(0,f.default)(t,n,o),o},g=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,p.default)(Reflect))&&"function"==typeof d.default)return(0,d.default)(e,t)},y=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=n(15),S=n(21),A=n(20),E=n(13),N=n(14),I=function(e){function t(e,n,r){return(0,o.default)(this,t),(0,c.default)(this,(0,l.default)(t).call(this,e,n,r))}return(0,u.default)(t,[{key:"initialize",value:function(e){this.controlFlowStorage=e}},{key:"getNodeStructure",value:function(){var e=(0,a.default)(this.controlFlowStorage.getStorage()).map(function(e){var t=(0,i.default)(e,2),n=t[0],r=t[1].getNode()[0];if(!E.NodeGuards.isExpressionStatementNode(r))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return A.NodeFactory.propertyNode(A.NodeFactory.identifierNode(n),r.expression)}),t=A.NodeFactory.variableDeclarationNode([A.NodeFactory.variableDeclaratorNode(A.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),A.NodeFactory.objectExpressionNode(e))]);return[t=N.NodeUtils.parentize(t)]}}]),(0,s.default)(t,e),t}(S.AbstractCustomNode);m([C.initializable(),g("design:type",Object)],I.prototype,"controlFlowStorage",void 0),I=m([v.injectable(),y(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),y(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),y(2,v.inject(b.ServiceIdentifiers.IOptions)),g("design:paramtypes",[Function,Object,Object])],I),t.ControlFlowStorageNode=I},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=C.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(21),S=n(20),A=n(14),E=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,u.default)(this,(0,c.default)(t).call(this,e,n,r))}return(0,s.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=S.NodeFactory.expressionStatementNode(S.NodeFactory.callExpressionNode(S.NodeFactory.memberExpressionNode(S.NodeFactory.identifierNode(this.controlFlowStorageName),S.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,i.default)(this.expressionArguments))));return A.NodeUtils.parentize(e),[e]}}]),(0,o.default)(t,e),t}(C.AbstractCustomNode);h([b.initializable(),m("design:type",Object)],E.prototype,"callee",void 0),h([b.initializable(),m("design:type",String)],E.prototype,"controlFlowStorageKey",void 0),h([b.initializable(),m("design:type",String)],E.prototype,"controlFlowStorageName",void 0),h([b.initializable(),m("design:type",Array)],E.prototype,"expressionArguments",void 0),E=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(2,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],E),t.CallExpressionControlFlowStorageCallNode=E},function(e,t,n){"use strict";var r=n(0),i=r(n(56)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(21),S=n(20),A=n(14),E=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,u.default)(this,(0,c.default)(t).call(this,e,n,r))}return(0,s.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],c=s[1],l=S.NodeFactory.blockStatementNode([S.NodeFactory.ifStatementNode(S.NodeFactory.binaryExpressionNode(n,S.NodeFactory.literalNode(r),S.NodeFactory.literalNode(a)),u,c)]);return A.NodeUtils.parentize(l),[l]}}]),(0,o.default)(t,e),t}(C.AbstractCustomNode);h([b.initializable(),m("design:type",Object)],E.prototype,"blockStatementNode",void 0),h([b.initializable(),m("design:type",Object)],E.prototype,"deadCodeInjectionRootAstHostNode",void 0),E=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(2,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],E),t.BlockStatementDeadCodeInjectionNode=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(13),A=n(14),E=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.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=C.NodeFactory.blockStatementNode([C.NodeFactory.variableDeclarationNode([C.NodeFactory.variableDeclaratorNode(C.NodeFactory.identifierNode(t),C.NodeFactory.callExpressionNode(C.NodeFactory.memberExpressionNode(C.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),C.NodeFactory.identifierNode("split")),[C.NodeFactory.literalNode("|")])),C.NodeFactory.variableDeclaratorNode(C.NodeFactory.identifierNode(n),C.NodeFactory.literalNode(0))]),C.NodeFactory.whileStatementNode(C.NodeFactory.literalNode(!0),C.NodeFactory.blockStatementNode([C.NodeFactory.switchStatementNode(C.NodeFactory.memberExpressionNode(C.NodeFactory.identifierNode(t),C.NodeFactory.updateExpressionNode("++",C.NodeFactory.identifierNode(n)),!0),this.shuffledKeys.map(function(t,n){var r=e.blockStatementBody[t],i=[r];return S.NodeGuards.isReturnStatementNode(r)||i.push(C.NodeFactory.continueStatement()),C.NodeFactory.switchCaseNode(C.NodeFactory.literalNode(String(n)),i)})),C.NodeFactory.breakStatement()]))]);return A.NodeUtils.parentize(r),[r]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",Array)],E.prototype,"blockStatementBody",void 0),p([v.initializable(),h("design:type",Array)],E.prototype,"originalKeysIndexesInShuffledArray",void 0),p([v.initializable(),h("design:type",Array)],E.prototype,"shuffledKeys",void 0),E=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],E),t.BlockStatementControlFlowFlatteningNode=E},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";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";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=C.NodeFactory.expressionStatementNode(C.NodeFactory.functionExpressionNode([C.NodeFactory.identifierNode("x"),C.NodeFactory.identifierNode("y")],C.NodeFactory.blockStatementNode([C.NodeFactory.returnStatementNode(C.NodeFactory.binaryExpressionNode(this.operator,C.NodeFactory.identifierNode("x"),C.NodeFactory.identifierNode("y")))])));return S.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],A.prototype,"operator",void 0),A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.BinaryExpressionFunctionNode=A},function(e,t,n){"use strict";var r=n(0),i=r(n(56)),a=r(n(23)),o=r(n(2)),s=r(n(11)),u=r(n(3)),c=r(n(10)),l=r(n(9)),d=r(n(8)),f=r(n(7)),p=r(n(6)),h=r(n(5)),m=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,h.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,p.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&&(0,f.default)(t,n,o),o},g=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,p.default)(Reflect))&&"function"==typeof d.default)return(0,d.default)(e,t)},y=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=n(15),S=n(55),A=n(44),E=n(65),N=n(45),I=function(e){function t(e,n,r,i,a){var s;return(0,o.default)(this,t),(s=(0,c.default)(this,(0,l.default)(t).call(this,r,i,a))).appendEvent=A.ObfuscationEvent.AfterObfuscation,s.customNodeFactory=e,s.stringArrayStorage=n,s}return(0,u.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(S.CustomNode.StringArrayNode,function(t){N.NodeAppender.prependNode(e,t.getNode())}),this.appendCustomNodeIfExist(S.CustomNode.StringArrayCallsWrapper,function(t){N.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(S.CustomNode.StringArrayRotateFunctionNode,function(t){N.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new a.default,this.options.stringArray){var e,t=this.customNodeFactory(S.CustomNode.StringArrayNode),n=this.customNodeFactory(S.CustomNode.StringArrayCallsWrapper),r=this.customNodeFactory(S.CustomNode.StringArrayRotateFunctionNode),o=this.stringArrayStorage.getStorageId().split("|"),s=(0,i.default)(o,2),u=s[0],c=s[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,u,e),n.initialize(u,c),r.initialize(u,e),this.customNodes.set(S.CustomNode.StringArrayNode,t),this.customNodes.set(S.CustomNode.StringArrayCallsWrapper,n),this.options.rotateStringArray&&this.customNodes.set(S.CustomNode.StringArrayRotateFunctionNode,r)}}}]),(0,s.default)(t,e),t}(E.AbstractCustomNodeGroup);m([C.initializable(),g("design:type",a.default)],I.prototype,"customNodes",void 0),I=m([v.injectable(),y(0,v.inject(b.ServiceIdentifiers.Factory__ICustomNode)),y(1,v.inject(b.ServiceIdentifiers.TStringArrayStorage)),y(2,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),y(3,v.inject(b.ServiceIdentifiers.IRandomGenerator)),y(4,v.inject(b.ServiceIdentifiers.IOptions)),g("design:paramtypes",[Function,Object,Function,Object,Object])],I),t.StringArrayCustomNodeGroup=I},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(55),S=n(44),A=n(65),E=n(45),N=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r,i))).appendEvent=S.ObfuscationEvent.AfterObfuscation,o.customNodeFactory=e,o}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(C.CustomNode.SelfDefendingUnicodeNode,function(r){E.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(C.CustomNode.NodeCallsControllerFunctionNode,function(r){var i;i=t.length?E.NodeAppender.getOptimalBlockScope(t,n,1):e,E.NodeAppender.prependNode(i,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new i.default,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(C.CustomNode.SelfDefendingUnicodeNode),n=this.customNodeFactory(C.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(C.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(C.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),(0,o.default)(t,e),t}(A.AbstractCustomNodeGroup);h([b.initializable(),m("design:type",i.default)],N.prototype,"customNodes",void 0),N=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__ICustomNode)),g(1,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(2,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(3,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Function,Object,Object])],N),t.SelfDefendingCustomNodeGroup=N},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(55),S=n(44),A=n(65),E=n(45),N=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r,i))).appendEvent=S.ObfuscationEvent.BeforeObfuscation,o.customNodeFactory=e,o}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(C.CustomNode.DomainLockNode,function(r){E.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(C.CustomNode.NodeCallsControllerFunctionNode,function(r){var i;i=t.length?E.NodeAppender.getOptimalBlockScope(t,n,1):e,E.NodeAppender.prependNode(i,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new i.default,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(C.CustomNode.DomainLockNode),n=this.customNodeFactory(C.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(C.CustomNode.DomainLockNode,t),this.customNodes.set(C.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),(0,o.default)(t,e),t}(A.AbstractCustomNodeGroup);h([b.initializable(),m("design:type",i.default)],N.prototype,"customNodes",void 0),N=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__ICustomNode)),g(1,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(2,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(3,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Function,Object,Object])],N),t.DomainLockCustomNodeGroup=N},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(55),S=n(44),A=n(65),E=n(45),N=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r,i))).appendEvent=S.ObfuscationEvent.BeforeObfuscation,o.customNodeFactory=e,o}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this,r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(C.CustomNode.DebugProtectionFunctionCallNode,function(n){E.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(C.CustomNode.DebugProtectionFunctionNode,function(t){E.NodeAppender.appendNode(e,t.getNode())}),this.appendCustomNodeIfExist(C.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var r=e.body.length,i=n.randomGenerator.getRandomInteger(0,r);E.NodeAppender.insertNodeAtIndex(e,t.getNode(),i)}),this.appendCustomNodeIfExist(C.CustomNode.NodeCallsControllerFunctionNode,function(n){var i;i=t.length?E.NodeAppender.getOptimalBlockScope(t,r,1):e,E.NodeAppender.prependNode(i,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new i.default,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),n=this.customNodeFactory(C.CustomNode.DebugProtectionFunctionNode),r=this.customNodeFactory(C.CustomNode.DebugProtectionFunctionCallNode),a=this.customNodeFactory(C.CustomNode.DebugProtectionFunctionIntervalNode),o=this.customNodeFactory(C.CustomNode.NodeCallsControllerFunctionNode);n.initialize(e),r.initialize(e,t),a.initialize(e),o.initialize(this.appendEvent,t),this.customNodes.set(C.CustomNode.DebugProtectionFunctionNode,n),this.customNodes.set(C.CustomNode.DebugProtectionFunctionCallNode,r),this.options.debugProtectionInterval&&this.customNodes.set(C.CustomNode.DebugProtectionFunctionIntervalNode,a),this.customNodes.set(C.CustomNode.NodeCallsControllerFunctionNode,o)}}}]),(0,o.default)(t,e),t}(A.AbstractCustomNodeGroup);h([b.initializable(),m("design:type",i.default)],N.prototype,"customNodes",void 0),N=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__ICustomNode)),g(1,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(2,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(3,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Function,Object,Object])],N),t.DebugProtectionCustomNodeGroup=N},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(55),S=n(44),A=n(65),E=n(45),N=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r,i))).appendEvent=S.ObfuscationEvent.BeforeObfuscation,o.customNodeFactory=e,o}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(C.CustomNode.ConsoleOutputDisableExpressionNode,function(r){E.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(C.CustomNode.NodeCallsControllerFunctionNode,function(r){var i;i=t.length?E.NodeAppender.getOptimalBlockScope(t,n,1):e,E.NodeAppender.prependNode(i,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new i.default,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(C.CustomNode.ConsoleOutputDisableExpressionNode),n=this.customNodeFactory(C.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(C.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(C.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),(0,o.default)(t,e),t}(A.AbstractCustomNodeGroup);h([b.initializable(),m("design:type",i.default)],N.prototype,"customNodes",void 0),N=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__ICustomNode)),g(1,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(2,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(3,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Function,Object,Object])],N),t.ConsoleOutputCustomNodeGroup=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),a=n(4),o=n(40),s=n(55),u=n(151),c=n(152),l=n(372),d=n(371),f=n(370),p=n(369),h=n(368),m=n(367),g=n(364),y=n(363),v=n(362),b=n(361),C=n(360),S=n(359),A=n(357),E=n(355),N=n(353),I=n(349),_=n(347),D=n(346),x=n(345),F=n(341),T=n(339),M=n(332),w=n(326),B=n(322),k=n(321);t.customNodesModule=new i.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(S.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(A.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(E.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(N.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(x.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(T.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(M.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(m.BinaryExpressionFunctionNode).whenTargetNamed(o.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BlockStatementControlFlowFlatteningNode).whenTargetNamed(o.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.CallExpressionControlFlowStorageCallNode).whenTargetNamed(o.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(b.CallExpressionFunctionNode).whenTargetNamed(o.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(C.ControlFlowStorageNode).whenTargetNamed(o.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(o.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(D.LogicalExpressionFunctionNode).whenTargetNamed(o.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(k.StringLiteralNode).whenTargetNamed(o.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(B.StringLiteralControlFlowStorageCallNode).whenTargetNamed(o.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.BlockStatementDeadCodeInjectionNode).whenTargetNamed(c.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.ConsoleOutputCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(d.DebugProtectionCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.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(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(17),C=n(19),S=n(20),A=n(13),E=g=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Converting:return{leave:function(e,n){if(n&&g.isValidTemplateLiteralNode(e,n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=e.expressions,r=[];if(e.quasis.forEach(function(e){r.push(S.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&r.push(t)}),r=r.filter(function(e){return!(A.NodeGuards.isLiteralNode(e)&&""===e.value)}),g.isLiteralNodeWithStringValue(r[0])||g.isLiteralNodeWithStringValue(r[1])||r.unshift(S.NodeFactory.literalNode("")),r.length>1){var i=S.NodeFactory.binaryExpressionNode("+",r.shift(),r.shift());return r.forEach(function(e){i=S.NodeFactory.binaryExpressionNode("+",i,e)}),i}return r[0]}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&A.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return A.NodeGuards.isTemplateLiteralNode(e)&&!A.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);E=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(1,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],E),t.TemplateLiteralTransformer=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(17),b=n(19),C=n(20),S=n(13),A=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Converting:return{enter:function(e,n){if(n&&S.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return e.properties.forEach(function(e){!e.computed&&e.key&&(e.shorthand&&(e.shorthand=!1),S.NodeGuards.isIdentifierNode(e.key)&&(e.key=C.NodeFactory.literalNode(e.key.name)))}),e}}]),(0,a.default)(t,e),t}(b.AbstractNodeTransformer);A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(1,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],A),t.ObjectExpressionTransformer=A},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){var r=n(59);e.exports=function(e,t){var n=[],i=!0,a=!1,o=void 0;try{for(var s,u=r(e);!(i=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw o}}return n}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t,n){"use strict";var r=n(0),i=r(n(56)),a=r(n(23)),o=r(n(2)),s=r(n(11)),u=r(n(3)),c=r(n(10)),l=r(n(9)),d=r(n(8)),f=r(n(7)),p=r(n(6)),h=r(n(5)),m=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,h.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,p.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&&(0,f.default)(t,n,o),o},g=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,p.default)(Reflect))&&"function"==typeof d.default)return(0,d.default)(e,t)},y=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var v,b=n(1),C=n(4),S=n(17),A=n(19),E=n(45),N=n(20),I=n(13),_=n(14),D=v=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,c.default)(this,(0,l.default)(t).call(this,e,n))).cachedScopeNodesMap=new a.default,r}return(0,u.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.Converting:return{enter:function(e,n){if(t.options.transformObjectKeys&&n&&I.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return I.NodeGuards.isVariableDeclaratorNode(t)?this.transformVariableDeclaratorHostObjectExpression(e,t):I.NodeGuards.isAssignmentExpressionNode(t)?this.transformAssignmentExpressionHostObjectExpression(e,t):e}},{key:"transformVariableDeclaratorHostObjectExpression",value:function(e,t){if(!I.NodeGuards.isIdentifierNode(t.id))return e;var n=_.NodeUtils.getScopeOfNode(t);return n&&I.NodeGuards.isNodeHasScope(n)?(this.cachedScopeNodesMap.set(t,n),this.transformObjectExpressionNode(e,t.id,t)):e}},{key:"transformAssignmentExpressionHostObjectExpression",value:function(e,t){var n=t.left;if(!v.isValidExpressionNode(n))return e;var r=_.NodeUtils.getScopeOfNode(t);return r&&I.NodeGuards.isNodeHasScope(r)?(this.cachedScopeNodesMap.set(t,r),this.transformObjectExpressionNode(e,n,t)):e}},{key:"extractPropertiesToExpressionStatements",value:function(e,t,n){for(var r=e.length,i=[],a=[],o=0;o=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(17),C=n(19),S=n(20),A=n(13),E=g=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Converting:return{enter:function(e,n){if(n&&A.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return A.NodeGuards.isIdentifierNode(e.key)&&!g.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=S.NodeFactory.literalNode(e.key.name)),e}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);E.ignoredNames=["constructor"],E=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(1,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],E),t.MethodDefinitionTransformer=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(17),b=n(19),C=n(20),S=n(13),A=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Converting:return{enter:function(e,n){if(n&&S.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(S.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=C.NodeFactory.literalNode(e.property.name)}return e}}]),(0,a.default)(t,e),t}(b.AbstractNodeTransformer);A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(1,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],A),t.MemberExpressionTransformer=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),a=n(58),o=n(381),s=n(380),u=n(379),c=n(375),l=n(374);t.convertingTransformersModule=new r.ContainerModule(function(e){e(i.ServiceIdentifiers.INodeTransformer).to(o.MemberExpressionTransformer).whenTargetNamed(a.NodeTransformer.MemberExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(s.MethodDefinitionTransformer).whenTargetNamed(a.NodeTransformer.MethodDefinitionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.ObjectExpressionKeysTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionKeysTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(c.ObjectExpressionTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(l.TemplateLiteralTransformer).whenTargetNamed(a.NodeTransformer.TemplateLiteralTransformer)})},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(40),C=n(99),S=n(13),A=g=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"replace",value:function(e,t,n){if(S.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var r=String(e.value),i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.StringLiteralNode);i.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(i,n,r,g.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var n=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);n.initialize(e,t);var r=n.getNode()[0];if(!r||!S.NodeGuards.isExpressionStatementNode(r))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return r.expression}}]),(0,a.default)(t,e),t}(C.AbstractControlFlowReplacer);A.usingExistingIdentifierChance=1,A=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.StringLiteralControlFlowReplacer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(40),C=n(153),S=n(13),A=n(14),E=g=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"replace",value:function(e,t,n){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var r=e.operator,i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.LogicalExpressionFunctionNode);i.initialize(r);var a=this.insertCustomNodeToControlFlowStorage(i,n,r,g.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=S.NodeGuards.isUnaryExpressionNode(e)?A.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(S.NodeGuards.isLiteralNode(t)||S.NodeGuards.isIdentifierNode(t)||S.NodeGuards.isObjectExpressionNode(t)||S.NodeGuards.isExpressionStatementNode(t))})}}]),(0,a.default)(t,e),t}(C.ExpressionWithOperatorControlFlowReplacer);E.usingExistingIdentifierChance=.5,E=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],E),t.LogicalExpressionControlFlowReplacer=E},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){var r=n(112),i=n(30)("iterator"),a=n(62);e.exports=n(16).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||a.hasOwnProperty(r(t))}},function(e,t,n){n(71),n(63),e.exports=n(386)},function(e,t,n){e.exports=n(387)},function(e,t,n){var r=n(30)("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(32),i=n(74);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){"use strict";var r=n(50),i=n(27),a=n(61),o=n(173),s=n(172),u=n(91),c=n(390),l=n(113);i(i.S+i.F*!n(389)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,f=a(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,y=0,v=l(f);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==v||p==Array&&s(v))for(n=new p(t=u(f.length));t>y;y++)c(n,y,g?m(f[y],y):f[y]);else for(d=v.call(f),n=new p;!(i=d.next()).done;y++)c(n,y,g?o(d,m,[i.value,y],!0):i.value);return n.length=y,n}})},function(e,t,n){n(63),n(391),e.exports=n(16).Array.from},function(e,t,n){var r=n(98),i=n(388);e.exports=function(e){if(i(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return r(e)}},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&&(0,p.default)(t,n,o),o},y=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,h.default)(Reflect))&&"function"==typeof f.default)return(0,f.default)(e,t)},v=function(e,t){return function(n,r){t(n,r,e)}},b=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 C,S=n(1),A=n(4),E=b(n(24)),N=n(40),I=n(154),_=n(46),D=n(17),x=n(19),F=n(45),T=n(13),M=n(28),w=n(14),B=C=function(e){function t(e,n,r,i,u){var c;return(0,s.default)(this,t),(c=(0,l.default)(this,(0,d.default)(t).call(this,i,u))).controlFlowData=new o.default,c.visitedFunctionNodes=new a.default,c.hostNodesWithControlFlowNode=new a.default,c.controlFlowStorageFactory=e,c.controlFlowReplacerFactory=n,c.controlFlowCustomNodeFactory=r,c}return(0,c.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case D.TransformationStage.ControlFlowFlattening:return{leave:function(e,n){if(n&&(T.NodeGuards.isFunctionDeclarationNode(e)||T.NodeGuards.isFunctionExpressionNode(e)||T.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!T.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(N.ControlFlowCustomNode.ControlFlowStorageNode);return i.initialize(r),F.NodeAppender.prependNode(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)&&e.body.shift();var n=this.controlFlowData.get(e);t.mergeWith(n,!0)}return t}},{key:"getHostNode",value:function(e){var t=w.NodeUtils.getBlockScopesOfNode(e);return 1===t.length?e:(t.pop(),t.length>C.hostNodeSearchMinDepth&&t.splice(0,C.hostNodeSearchMinDepth),t.length>C.hostNodeSearchMaxDepth&&(t.length=C.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(T.NodeGuards.isFunctionDeclarationNode(e)||T.NodeGuards.isFunctionExpressionNode(e)||T.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var n=this;E.replace(e,{enter:function(e,r){if(M.NodeMetadata.isIgnoredNode(e))return E.VisitorOption.Skip;if(n.isVisitedFunctionNode(e)||!r)return E.VisitorOption.Skip;if(!C.controlFlowReplacersMap.has(e.type))return e;if(n.randomGenerator.getMathRandom()>n.options.controlFlowFlatteningThreshold)return e;var a=C.controlFlowReplacersMap.get(e.type);return void 0===a?e:(0,i.default)({},n.controlFlowReplacerFactory(a).replace(e,r,t),{parentNode:r})}})}}]),(0,u.default)(t,e),t}(x.AbstractNodeTransformer);B.controlFlowReplacersMap=new o.default([[_.NodeType.BinaryExpression,I.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[_.NodeType.CallExpression,I.ControlFlowReplacer.CallExpressionControlFlowReplacer],[_.NodeType.LogicalExpression,I.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[_.NodeType.Literal,I.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),B.hostNodeSearchMinDepth=0,B.hostNodeSearchMaxDepth=2,B=C=g([S.injectable(),v(0,S.inject(A.ServiceIdentifiers.Factory__TControlFlowStorage)),v(1,S.inject(A.ServiceIdentifiers.Factory__IControlFlowReplacer)),v(2,S.inject(A.ServiceIdentifiers.Factory__IControlFlowCustomNode)),v(3,S.inject(A.ServiceIdentifiers.IRandomGenerator)),v(4,S.inject(A.ServiceIdentifiers.IOptions)),y("design:paramtypes",[Function,Function,Function,Object,Object])],B),t.FunctionControlFlowTransformer=B},function(e,t,n){"use strict";var r=n(0),i=r(n(57)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v,b=n(1),C=n(4),S=y(n(24)),A=n(152),E=n(58),N=n(46),I=n(17),_=n(19),D=n(20),x=n(13),F=n(14),T=v=function(e){function t(e,n,r,o){var s;return(0,a.default)(this,t),(s=(0,u.default)(this,(0,c.default)(t).call(this,r,o))).deadCodeInjectionRootAstHostNodeSet=new i.default,s.collectedBlockStatements=[],s.collectedBlockStatementsTotalLength=0,s.deadCodeInjectionCustomNodeFactory=e,s.transformersRunner=n,s}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case I.TransformationStage.DeadCodeInjection:return{enter:function(e,n){if(n&&x.NodeGuards.isProgramNode(e))return t.analyzeNode(e,n),e},leave:function(e,n){if(n&&x.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,n)}};case I.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;S.traverse(e,{enter:function(e){if(x.NodeGuards.isBlockStatementNode(e)){var t=F.NodeUtils.clone(e);v.isValidCollectedBlockStatementNode(t)&&(F.NodeUtils.parentizeNode(t,t),t=n.transformersRunner.transform(t,v.transformersToRenameBlockScopeIdentifiers,I.TransformationStage.Obfuscating),n.collectedBlockStatements.push(t))}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!v.isValidWrappedBlockStatementNode(e))return e;var n=this.collectedBlockStatements.length-1,r=this.randomGenerator.getRandomInteger(0,n),i=this.collectedBlockStatements.splice(r,1)[0];return i===e?e:this.replaceBlockStatementNode(e,i,t)}},{key:"restoreNode",value:function(e,t){var n=e.body[0];if(!x.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 x.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"replaceBlockStatementNode",value:function(e,t,n){var r=D.NodeFactory.blockStatementNode([D.NodeFactory.functionDeclarationNode(v.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(r);var i=this.deadCodeInjectionCustomNodeFactory(A.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);i.initialize(e,r);var a=i.getNode()[0];return F.NodeUtils.parentizeNode(a,n),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return x.NodeGuards.isBreakStatementNode(e)||x.NodeGuards.isContinueStatementNode(e)||x.NodeGuards.isAwaitExpressionNode(e)||x.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!x.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=F.NodeUtils.getScopeOfNode(e),n=x.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,r=n.indexOf(e);if(0===r)return!1;var i=n.slice(0,r),a=D.NodeFactory.blockStatementNode(i),o=e.id.name,s=!1;return S.traverse(a,{enter:function(e){if(x.NodeGuards.isIdentifierNode(e)&&e.name===o)return s=!0,S.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,n=!0;return S.traverse(e,{enter:function(e){if(x.NodeGuards.isBlockStatementNode(e)&&t++,t>v.maxNestedBlockStatementsCount||v.isProhibitedNodeInsideCollectedBlockStatement(e)||v.isScopeHoistingFunctionDeclaration(e))return n=!1,S.VisitorOption.Break}}),n}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return S.traverse(e,{enter:function(e){if(v.isScopeHoistingFunctionDeclaration(e))return t=!1,S.VisitorOption.Break}}),!!t&&F.NodeUtils.getBlockScopesOfNode(e)[0].type!==N.NodeType.Program}}]),(0,o.default)(t,e),t}(_.AbstractNodeTransformer);T.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",T.maxNestedBlockStatementsCount=4,T.minCollectedBlockStatementsCount=5,T.transformersToRenameBlockScopeIdentifiers=[E.NodeTransformer.CatchClauseTransformer,E.NodeTransformer.ClassDeclarationTransformer,E.NodeTransformer.FunctionDeclarationTransformer,E.NodeTransformer.FunctionTransformer,E.NodeTransformer.LabeledStatementTransformer,E.NodeTransformer.VariableDeclarationTransformer],T=v=h([b.injectable(),g(0,b.inject(C.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),g(1,b.inject(C.ServiceIdentifiers.ITransformersRunner)),g(2,b.inject(C.ServiceIdentifiers.IRandomGenerator)),g(3,b.inject(C.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],T),t.DeadCodeInjectionTransformer=T},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(40),C=n(99),S=n(13),A=g=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"replace",value:function(e,t,n){var r=e.callee;if(!S.NodeGuards.isIdentifierNode(r))return e;var i=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.CallExpressionFunctionNode),o=e.arguments;a.initialize(o);var s=this.insertCustomNodeToControlFlowStorage(a,n,i,g.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),s,r,o)}},{key:"getControlFlowStorageCallNode",value:function(e,t,n,r){var i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);i.initialize(e,t,n,r);var a=i.getNode()[0];if(!a||!S.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(C.AbstractControlFlowReplacer);A.usingExistingIdentifierChance=.5,A=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.CallExpressionControlFlowReplacer=A},function(e,t,n){n(168)("Set")},function(e,t,n){n(169)("Set")},function(e,t,n){var r=n(27);r(r.P+r.R,"Set",{toJSON:n(170)("Set")})},function(e,t,n){"use strict";var r=n(174),i=n(69);e.exports=n(111)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){n(119),n(63),n(71),n(401),n(400),n(399),n(398),e.exports=n(16).Set},function(e,t,n){var r=n(84),i=n(26),a=n(72),o=r.has,s=r.key,u=function(e,t,n){if(o(e,t,n))return!0;var r=a(t);return null!==r&&u(e,r,n)};r.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){n(403),e.exports=n(16).Reflect.hasMetadata},function(e,t,n){e.exports=n(404)},function(e,t,n){var r=n(84),i=n(26),a=r.key,o=r.set;r.exp({defineMetadata:function(e,t,n,r){o(e,t,i(n),a(r))}})},function(e,t,n){n(406),e.exports=n(16).Reflect.defineMetadata},function(e,t,n){e.exports=n(407)},function(e,t,n){n(67)("getOwnPropertyNames",function(){return n(160).f})},function(e,t,n){n(409);var r=n(16).Object;e.exports=function(e){return r.getOwnPropertyNames(e)}},function(e,t,n){e.exports=n(410)},function(e,t,n){var r=n(84),i=n(26),a=n(72),o=r.has,s=r.get,u=r.key,c=function(e,t,n){if(o(e,t,n))return s(e,t,n);var r=a(t);return null!==r?c(e,r,n):void 0};r.exp({getMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,n){n(412),e.exports=n(16).Reflect.getMetadata},function(e,t,n){e.exports=n(413)},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=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 y,v=n(1),b=n(4),C=g(n(24)),S=n(40),A=n(17),E=n(19),N=n(13),I=n(14),_=y=function(e){function t(e,n,r,a){var o;return(0,i.default)(this,t),(o=(0,s.default)(this,(0,u.default)(t).call(this,r,a))).controlFlowCustomNodeFactory=e,o.arrayUtils=n,o}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case A.TransformationStage.ControlFlowFlattening:return{leave:function(e,n){if(n&&N.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!y.canTransformBlockStatementNode(e))return e;var n=e.body,r=this.arrayUtils.arrayRange(n.length),i=this.arrayUtils.arrayShuffle(r),a=r.map(function(e){return i.indexOf(e)}),o=this.controlFlowCustomNodeFactory(S.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);o.initialize(n,i,a);var s=o.getNode()[0];return I.NodeUtils.parentizeNode(s,t),s}}],[{key:"blockStatementHasProhibitedStatements",value:function(e){return e.body.some(function(e){var t=N.NodeGuards.isBreakStatementNode(e)||N.NodeGuards.isContinueStatementNode(e),n=N.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),r=N.NodeGuards.isClassDeclarationNode(e);return N.NodeGuards.isFunctionDeclarationNode(e)||t||n||r})}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return C.traverse(e,{enter:function(e){if(N.NodeGuards.isWhileStatementNode(e))return C.VisitorOption.Skip;N.NodeGuards.isBlockStatementNode(e)&&y.blockStatementHasProhibitedStatements(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),(0,a.default)(t,e),t}(E.AbstractNodeTransformer);_=y=p([v.injectable(),m(0,v.inject(b.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,v.inject(b.ServiceIdentifiers.IArrayUtils)),m(2,v.inject(b.ServiceIdentifiers.IRandomGenerator)),m(3,v.inject(b.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(40),C=n(153),S=g=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"replace",value:function(e,t,n){var r=e.operator,i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.BinaryExpressionFunctionNode);i.initialize(r);var a=this.insertCustomNodeToControlFlowStorage(i,n,r,g.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a,e.left,e.right)}}]),(0,a.default)(t,e),t}(C.ExpressionWithOperatorControlFlowReplacer);S.usingExistingIdentifierChance=.5,S=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],S),t.BinaryExpressionControlFlowReplacer=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),a=n(4),o=n(154),s=n(58),u=n(416),c=n(415),l=n(397),d=n(396),f=n(395),p=n(384),h=n(383);t.controlFlowTransformersModule=new i.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(c.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(d.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.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(p.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=n(115),i=n(60).getWeak,a=n(26),o=n(25),s=n(114),u=n(70),c=n(110),l=n(37),d=n(69),f=c(5),p=c(6),h=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},y=function(e,t){return f(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,a){var c=e(function(e,r){s(e,c,t,"_i"),e._t=t,e._i=h++,e._l=void 0,void 0!=r&&u(r,n,e[a],e)});return r(c.prototype,{delete:function(e){if(!o(e))return!1;var n=i(e);return!0===n?m(d(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!o(e))return!1;var n=i(e);return!0===n?m(d(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=i(a(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},function(e,t,n){"use strict";var r,i=n(110)(0),a=n(116),o=n(60),s=n(155),u=n(418),c=n(25),l=n(38),d=n(69),f=o.getWeak,p=Object.isExtensible,h=u.ufstore,m={},g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(c(e)){var t=f(e);return!0===t?h(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(d(this,"WeakMap"),e,t)}},v=e.exports=n(111)("WeakMap",g,y,u,!0,!0);l(function(){return 7!=(new v).set((Object.freeze||Object)(m),7).get(m)})&&(s((r=u.getConstructor(g,"WeakMap")).prototype,y),o.NEED=!0,i(["delete","has","get","set"],function(e){var t=v.prototype,n=t[e];a(t,e,function(t,i){if(c(t)&&!p(t)){this._f||(this._f=new r);var a=this._f[e](t,i);return"set"==e?this:a}return n.call(this,t,i)})}))},function(e,t,n){var r=n(84),i=n(26),a=n(75),o=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:a)(n),o(r))}}})},function(e,t,n){n(420),e.exports=n(16).Reflect.metadata},function(e,t,n){"use strict";var r=n(0),i=r(n(18)),a=r(n(2)),o=r(n(3)),s=r(n(8)),u=r(n(7)),c=r(n(6)),l=r(n(5)),d=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,l.default)(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&&(0,u.default)(t,n,o),o},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof s.default)return(0,s.default)(e,t)},p=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 m,g=n(1),y=n(4),v=h(n(24)),b=n(161),C=n(13),S=n(14),A=m=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=m.getLimitIndex(e.length),r=[],i=e.length,a=function(i){if(i>n)return"break";var a=e[i];v.traverse(a,{enter:function(n){if(C.NodeGuards.isCallExpressionNode(n))return a.parentNode!==S.NodeUtils.getBlockScopesOfNode(n)[0]?v.VisitorOption.Skip:void t.analyzeCallExpressionNode(r,e,n)}})},o=0;on&&(r=Math.round(n+t*m.limitThreshold))>t&&(r=t),r}}]),e}();A.calleeDataExtractorsList=[b.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,b.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,b.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],A.limitThresholdActivationLength=25,A.limitThreshold=.002,A=m=d([g.injectable(),p(0,g.inject(y.ServiceIdentifiers.Factory__ICalleeDataExtractor)),f("design:paramtypes",[Function])],A),t.StackTraceAnalyzer=A},function(e,t,n){var r=n(26),i=n(113);e.exports=n(16).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){n(71),n(63),e.exports=n(423)},function(e,t,n){"use strict";var r=n(0),i=r(n(59)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},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 m,g=n(1),y=h(n(24)),v=n(104),b=n(13),C=n(14),S=m=function(e){function t(){return(0,a.default)(this,t),(0,u.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,s.default)(t,[{key:"extract",value:function(e,t){if(!b.NodeGuards.isMemberExpressionNode(t))return null;var n=this.createObjectMembersCallsChain([],t);if(!n.length)return null;var r=n[n.length-1],i=this.getCalleeBlockStatement(C.NodeUtils.getBlockScopesOfNode(e[0])[0],n);return i?{callee:i,name:r}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(b.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!b.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return b.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(b.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 y.traverse(e,{enter:function(e){if(b.NodeGuards.isVariableDeclaratorNode(e)&&b.NodeGuards.isIdentifierNode(e.id)&&e.init&&b.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===r)return i=n.findCalleeBlockStatement(e.init.properties,t),y.VisitorOption.Break}}),i}},{key:"findCalleeBlockStatement",value:function(e,t){var n=t.shift();if(!n)return null;var r=!0,a=!1,o=void 0;try{for(var s,u=(0,i.default)(e);!(r=(s=u.next()).done);r=!0){var c=s.value;if(m.isValidTargetPropertyNode(c,n)){if(b.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(b.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){a=!0,o=e}finally{try{r||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=b.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,r=b.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return n||r}}]),(0,o.default)(t,e),t}(v.AbstractCalleeDataExtractor);S=m=p([g.injectable()],S),t.ObjectExpressionCalleeDataExtractor=S},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(7)),l=r(n(6)),d=r(n(5)),f=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,d.default)(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&&(0,c.default)(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 h=n(1),m=p(n(24)),g=n(104),y=n(13),v=n(14),b=function(e){function t(){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,o.default)(t,[{key:"extract",value:function(e,t){var n=null;return y.NodeGuards.isIdentifierNode(t)&&(n=this.getCalleeBlockStatement(v.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name)),y.NodeGuards.isFunctionExpressionNode(t)&&(n=t.body),n?{callee:n,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var n=null;return m.traverse(e,{enter:function(e,r){if(y.NodeGuards.isFunctionExpressionNode(e)&&r&&y.NodeGuards.isVariableDeclaratorNode(r)&&y.NodeGuards.isIdentifierNode(r.id)&&r.id.name===t)return n=e.body,m.VisitorOption.Break}}),n}}]),(0,a.default)(t,e),t}(g.AbstractCalleeDataExtractor);b=f([h.injectable()],b),t.FunctionExpressionCalleeDataExtractor=b},function(e,t,n){var r=n(27);r(r.S+r.F,"Object",{assign:n(155)})},function(e,t,n){n(427),e.exports=n(16).Object.assign},function(e,t,n){"use strict";e.exports={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],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:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],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"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],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"],JSXIdentifier:[],JSXNamespacedName:["namespace","name"],JSXMemberExpression:["object","property"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXElement:["openingElement","closingElement","children"],JSXClosingElement:["name"],JSXOpeningElement:["name","attributes"],JSXAttribute:["name","value"],JSXText:null,JSXSpreadAttribute:["argument"]}},function(e){e.exports={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:"4.0.0-alpha.0",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:"^5.5.1","acorn-jsx":"^4.1.1"},devDependencies:{browserify:"^7.0.0",chai:"^1.10.0",eslint:"^2.13.1","eslint-config-eslint":"^3.0.0","eslint-release":"^0.10.0",esprima:"latest","esprima-fb":"^8001.2001.0-dev-harmony-fb",istanbul:"~0.2.6","json-diff":"~0.3.1",leche:"^1.0.1",mocha:"^2.0.1",regenerate:"~0.5.4",shelljs:"^0.3.0","shelljs-nodecli":"^0.1.1","unicode-6.3.0":"~0.1.0"},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",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta",browserify:"node Makefile.js browserify"}}},function(e,t,n){"use strict";n.r(t),n.d(t,"version",function(){return Ie}),n.d(t,"parse",function(){return _e}),n.d(t,"parseExpressionAt",function(){return De}),n.d(t,"tokenizer",function(){return xe}),n.d(t,"parse_dammit",function(){return Ae}),n.d(t,"LooseParser",function(){return Ee}),n.d(t,"pluginsLoose",function(){return Ne}),n.d(t,"addLooseExports",function(){return Fe}),n.d(t,"Parser",function(){return G}),n.d(t,"plugins",function(){return j}),n.d(t,"defaultOptions",function(){return O}),n.d(t,"Position",function(){return B}),n.d(t,"SourceLocation",function(){return k}),n.d(t,"getLineInfo",function(){return R}),n.d(t,"Node",function(){return ee}),n.d(t,"TokenType",function(){return g}),n.d(t,"tokTypes",function(){return A}),n.d(t,"keywordTypes",function(){return C}),n.d(t,"TokContext",function(){return re}),n.d(t,"tokContexts",function(){return ie}),n.d(t,"isIdentifierChar",function(){return m}),n.d(t,"isIdentifierStart",function(){return h}),n.d(t,"Token",function(){return ve}),n.d(t,"isNewLine",function(){return I}),n.d(t,"lineBreak",function(){return E}),n.d(t,"lineBreakG",function(){return N}),n.d(t,"nonASCIIwhitespace",function(){return _});var r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",a={5:i,6:i+" const class extends export import super"},o=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄮㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿪ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",c=new RegExp("["+s+"]"),l=new RegExp("["+s+u+"]");s=u=null;var d=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,55,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,698,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,1,31,6124,20,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],f=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,19719,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function p(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}}function h(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,d)))}function m(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&(p(e,d)||p(e,f)))))}var g=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function y(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},b={startsExpr:!0},C={};function S(e,t){return void 0===t&&(t={}),t.keyword=e,C[e]=new g(e,t)}var A={num:new g("num",b),regexp:new g("regexp",b),string:new g("string",b),name:new g("name",b),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",v),semi:new g(";",v),colon:new g(":",v),dot:new g("."),question:new g("?",v),arrow:new g("=>",v),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",v),backQuote:new g("`",b),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("/<=/>=",7),bitShift:y("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),_break:S("break"),_case:S("case",v),_catch:S("catch"),_continue:S("continue"),_debugger:S("debugger"),_default:S("default",v),_do:S("do",{isLoop:!0,beforeExpr:!0}),_else:S("else",v),_finally:S("finally"),_for:S("for",{isLoop:!0}),_function:S("function",b),_if:S("if"),_return:S("return",v),_switch:S("switch"),_throw:S("throw",v),_try:S("try"),_var:S("var"),_const:S("const"),_while:S("while",{isLoop:!0}),_with:S("with"),_new:S("new",{beforeExpr:!0,startsExpr:!0}),_this:S("this",b),_super:S("super",b),_class:S("class",b),_extends:S("extends",v),_export:S("export"),_import:S("import"),_null:S("null",b),_true:S("true",b),_false:S("false",b),_in:S("in",{beforeExpr:!0,binop:7}),_instanceof:S("instanceof",{beforeExpr:!0,binop:7}),_typeof:S("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:S("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:S("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},E=/\r\n?|\n|\u2028|\u2029/,N=new RegExp(E.source,"g");function I(e){return 10===e||13===e||8232===e||8233===e}var _=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,D=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,x=Object.prototype,F=x.hasOwnProperty,T=x.toString;function M(e,t){return F.call(e,t)}var w=Array.isArray||function(e){return"[object Array]"===T.call(e)},B=function(e,t){this.line=e,this.column=t};B.prototype.offset=function(e){return new B(this.line,this.column+e)};var k=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function R(e,t){for(var n=1,r=0;;){N.lastIndex=r;var i=N.exec(e);if(!(i&&i.index=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),w(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return w(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,o,s){var u={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(u.loc=new k(this,o,s)),e.ranges&&(u.range=[i,a]),t.push(u)}}(t,t.onComment)),t}var j={};function L(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var G=function(e,t,n){this.options=e=P(e),this.sourceFile=e.sourceFile,this.keywords=L(a[e.ecmaVersion>=6?6:5]);var i="";if(!e.allowReserved){for(var o=e.ecmaVersion;!(i=r[o]);o--);"module"==e.sourceType&&(i+=" await")}this.reservedWords=L(i);var s=(i?i+" ":"")+r.strict;this.reservedWordsStrict=L(s),this.reservedWordsStrictBind=L(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,this.loadPlugins(e.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(E).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=A.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope(),this.regexpState=null};G.prototype.isKeyword=function(e){return this.keywords.test(e)},G.prototype.isReservedWord=function(e){return this.reservedWords.test(e)},G.prototype.extend=function(e,t){this[e]=t(this[e])},G.prototype.loadPlugins=function(e){for(var t in e){var n=j[t];if(!n)throw new Error("Plugin '"+t+"' not found");n(this,e[t])}},G.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var V=G.prototype,U=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function z(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}V.strictDirective=function(e){for(;;){D.lastIndex=e,e+=D.exec(this.input)[0].length;var t=U.exec(this.input.slice(e));if(!t)return!1;if("use strict"==(t[1]||t[2]))return!0;e+=t[0].length}},V.eat=function(e){return this.type===e&&(this.next(),!0)},V.isContextual=function(e){return this.type===A.name&&this.value===e&&!this.containsEsc},V.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},V.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},V.canInsertSemicolon=function(){return this.type===A.eof||this.type===A.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))},V.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},V.semicolon=function(){this.eat(A.semi)||this.insertSemicolon()||this.unexpected()},V.afterTrailingComma=function(e,t){if(this.type==e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},V.expect=function(e){this.eat(e)||this.unexpected()},V.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},V.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},V.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},V.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var W={kind:"loop"},J={kind:"switch"};H.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;D.lastIndex=this.pos;var e=D.exec(this.input),t=this.pos+e[0].length,n=this.input.charCodeAt(t);if(91===n||123==n)return!0;if(h(n,!0)){for(var r=t+1;m(this.input.charCodeAt(r),!0);)++r;var i=this.input.slice(t,r);if(!o.test(i))return!0}return!1},H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;D.lastIndex=this.pos;var e=D.exec(this.input),t=this.pos+e[0].length;return!(E.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!=this.input.length&&m(this.input.charAt(t+8)))},H.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet()&&(i=A._var,r="let"),i){case A._break:case A._continue:return this.parseBreakContinueStatement(a,i.keyword);case A._debugger:return this.parseDebuggerStatement(a);case A._do:return this.parseDoStatement(a);case A._for:return this.parseForStatement(a);case A._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1);case A._class:return e||this.unexpected(),this.parseClass(a,!0);case A._if:return this.parseIfStatement(a);case A._return:return this.parseReturnStatement(a);case A._switch:return this.parseSwitchStatement(a);case A._throw:return this.parseThrowStatement(a);case A._try:return this.parseTryStatement(a);case A._const:case A._var:return r=r||this.value,e||"var"==r||this.unexpected(),this.parseVarStatement(a,r);case A._while:return this.parseWhileStatement(a);case A._with:return this.parseWithStatement(a);case A.braceL:return this.parseBlock();case A.semi:return this.parseEmptyStatement(a);case A._export:case A._import:return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===A._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e||this.unexpected(),this.next(),this.parseFunctionStatement(a,!0);var o=this.value,s=this.parseExpression();return i===A.name&&"Identifier"===s.type&&this.eat(A.colon)?this.parseLabeledStatement(a,o,s):this.parseExpressionStatement(a,s)}},H.parseBreakContinueStatement=function(e,t){var n="break"==t;this.next(),this.eat(A.semi)||this.insertSemicolon()?e.label=null:this.type!==A.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(A.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},H.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.inAsync&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W),this.enterLexicalScope(),this.expect(A.parenL),this.type===A.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===A._var||this.type===A._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===A._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(t>-1&&this.unexpected(t),this.parseFor(e,r)):(this.options.ecmaVersion>=9&&(this.type===A._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r))}var a=new z,o=this.parseExpression(!0,a);return this.type===A._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===A._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},H.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},H.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.type==A._function),e.alternate=this.eat(A._else)?this.parseStatement(!this.strict&&this.type==A._function):null,this.finishNode(e,"IfStatement")},H.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(A.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},H.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(A.braceL),this.labels.push(J),this.enterLexicalScope();for(var n=!1;this.type!=A.braceR;)if(this.type===A._case||this.type===A._default){var r=this.type===A._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(A.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},H.parseThrowStatement=function(e){return this.next(),E.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var K=[];H.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===A._catch){var t=this.startNode();this.next(),this.expect(A.parenL),t.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(t.param,"let"),this.expect(A.parenR),t.body=this.parseBlock(!1),this.exitLexicalScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(A._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},H.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},H.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(W),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},H.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},H.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},H.parseLabeledStatement=function(e,t,n){for(var r=0,i=this.labels;r=0;o--){var s=this.labels[o];if(s.statementStart!=e.start)break;s.statementStart=this.start,s.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(!0),("ClassDeclaration"==e.body.type||"VariableDeclaration"==e.body.type&&"var"!=e.body.kind||"FunctionDeclaration"==e.body.type&&(this.strict||e.body.generator))&&this.raiseRecoverable(e.body.start,"Invalid labeled declaration"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},H.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},H.parseBlock=function(e){void 0===e&&(e=!0);var t=this.startNode();for(t.body=[],this.expect(A.braceL),e&&this.enterLexicalScope();!this.eat(A.braceR);){var n=this.parseStatement(!0);t.body.push(n)}return e&&this.exitLexicalScope(),this.finishNode(t,"BlockStatement")},H.parseFor=function(e,t){return e.init=t,this.expect(A.semi),e.test=this.type===A.semi?null:this.parseExpression(),this.expect(A.semi),e.update=this.type===A.parenR?null:this.parseExpression(),this.expect(A.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},H.parseForIn=function(e,t){var n=this.type===A._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"==n&&("AssignmentPattern"===t.type||"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(this.strict||"Identifier"!==t.declarations[0].id.type))&&this.raise(t.start,"Invalid assignment in for-in loop head"),e.left=t,e.right="ForInStatement"==n?this.parseExpression():this.parseMaybeAssign(),this.expect(A.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},H.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(A.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===A._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"==r.id.type||t&&(this.type===A._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(A.comma))break}return e},H.parseVarId=function(e,t){e.id=this.parseBindingAtom(t),this.checkLVal(e.id,t,!1)},H.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(e.generator=this.eat(A.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&&(e.id="nullableID"===t&&this.type!=A.name?null:this.parseIdent(),e.id&&this.checkLVal(e.id,"var"));var i=this.inGenerator,a=this.inAsync,o=this.yieldPos,s=this.awaitPos,u=this.inFunction;return this.inGenerator=e.generator,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),t||(e.id=this.type==A.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=i,this.inAsync=a,this.yieldPos=o,this.awaitPos=s,this.inFunction=u,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},H.parseFunctionParams=function(e){this.expect(A.parenL),e.params=this.parseBindingList(A.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(e,t){this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),r=!1;for(n.body=[],this.expect(A.braceL);!this.eat(A.braceR);){var i=this.parseClassMember(n);i&&"MethodDefinition"===i.type&&"constructor"===i.kind&&(r&&this.raise(i.start,"Duplicate constructor in the same class"),r=!0)}return e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},H.parseClassMember=function(e){var t=this;if(this.eat(A.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,a=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===A.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,a),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(A.star),a=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(A.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var o=n.key;return n.computed||n.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?n.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),a&&this.raise(o.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(e,n,i,a),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},H.parseClassMethod=function(e,t,n,r){t.value=this.parseMethod(n,r),e.body.push(this.finishNode(t,"MethodDefinition"))},H.parseClassId=function(e,t){e.id=this.type===A.name?this.parseIdent():!0===t?this.unexpected():null},H.parseClassSuper=function(e){e.superClass=this.eat(A._extends)?this.parseExprSubscripts():null},H.parseExport=function(e,t){if(this.next(),this.eat(A.star))return this.expectContextual("from"),this.type!==A.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(A._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===A._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===A._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(!0),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==A.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];if(o)("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,"Redefinition of property");else o=t[r]={init:!1,get:!1,set:!1};o[a]=!0}}},$.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===A.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(A.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},$.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new z,r=!0);var o=this.start,s=this.startLoc;this.type!=A.parenL&&this.type!=A.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,o,s)),this.type.isAssign){var c=this.startNodeAt(o,s);return c.operator=this.value,c.left=this.type===A.eq?this.toAssignable(u,!1,t):u,r||z.call(t),t.shorthandAssign=-1,this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),u},$.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(A.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(A.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},$.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:i.start==n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},$.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==A._in)&&a>r){var o=this.type===A.logicalOR||this.type===A.logicalAND,s=this.value;this.next();var u=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),u,c,a,i),d=this.buildBinary(t,n,e,l,s,o);return this.parseExprOp(d,t,n,r,i)}return e},$.buildBinary=function(e,t,n,r,i,a){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},$.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.inAsync&&this.isContextual("await"))n=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===A.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(a,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,i);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(A.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},$.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||i)return r;var a=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1)),a},$.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd==e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end),a=void 0;;)if((a=this.eat(A.bracketL))||this.eat(A.dot)){var o=this.startNodeAt(t,n);o.object=e,o.property=a?this.parseExpression():this.parseIdent(!0),o.computed=!!a,a&&this.expect(A.bracketR),e=this.finishNode(o,"MemberExpression")}else if(!r&&this.eat(A.parenL)){var s=new z,u=this.yieldPos,c=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var l=this.parseExprList(A.parenR,this.options.ecmaVersion>=8,!1,s);if(i&&!this.canInsertSemicolon()&&this.eat(A.arrow))return this.checkPatternErrors(s,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=c,this.parseArrowExpression(this.startNodeAt(t,n),l,!0);this.checkExpressionErrors(s,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=c||this.awaitPos;var d=this.startNodeAt(t,n);d.callee=e,d.arguments=l,e=this.finishNode(d,"CallExpression")}else{if(this.type!==A.backQuote)return e;var f=this.startNodeAt(t,n);f.tag=e,f.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(f,"TaggedTemplateExpression")}},$.parseExprAtom=function(e){var t,n=this.potentialArrowAt==this.start;switch(this.type){case A._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),t=this.startNode(),this.next(),this.type!==A.dot&&this.type!==A.bracketL&&this.type!==A.parenL&&this.unexpected(),this.finishNode(t,"Super");case A._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case A.name:var r=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(this.type!==A.name);if(this.options.ecmaVersion>=8&&!a&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(A._function))return this.parseFunction(this.startNodeAt(r,i),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(A.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===A.name&&!a)return o=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(A.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case A.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case A.num:case A.string:return this.parseLiteral(this.value);case A._null:case A._true:case A._false:return(t=this.startNode()).value=this.type===A._null?null:this.type===A._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case A.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case A.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(A.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case A.braceL:return this.parseObj(!1,e);case A._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case A._class:return this.parseClass(this.startNode(),!1);case A._new:return this.parseNew();case A.backQuote:return this.parseTemplate();default:this.unexpected()}},$.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},$.parseParenExpression=function(){this.expect(A.parenL);var e=this.parseExpression();return this.expect(A.parenR),e},$.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,s=this.startLoc,u=[],c=!0,l=!1,d=new z,f=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==A.parenR;){if(c?c=!1:this.expect(A.comma),i&&this.afterTrailingComma(A.parenR,!0)){l=!0;break}if(this.type===A.ellipsis){a=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===A.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.start,m=this.startLoc;if(this.expect(A.parenR),e&&!this.canInsertSemicolon()&&this.eat(A.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,u);u.length&&!l||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,u.length>1?((t=this.startNodeAt(o,s)).expressions=u,this.finishNodeAt(t,"SequenceExpression",h,m)):t=u[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},$.parseParenItem=function(e){return e},$.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Y=[];$.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(A.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||n)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(A.parenL)?e.arguments=this.parseExprList(A.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Y,this.finishNode(e,"NewExpression")},$.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===A.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===A.backQuote,this.finishNode(n,"TemplateElement")},$.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.expect(A.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(A.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},$.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===A.name||this.type===A.num||this.type===A.string||this.type===A.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===A.star)&&!E.test(this.input.slice(this.lastTokEnd,this.start))},$.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(A.braceR);){if(r)r=!1;else if(this.expect(A.comma),this.afterTrailingComma(A.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},$.parseProperty=function(e,t){var n,r,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(A.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===A.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===A.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===A.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(A.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(A.star),this.parsePropertyName(o,t)):r=!1,this.parsePropertyValue(o,e,n,r,i,a,t,s),this.finishNode(o,"Property")},$.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===A.colon&&this.unexpected(),this.eat(A.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===A.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type==A.comma||this.type==A.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?(this.checkUnreserved(e.key),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,e.key):this.type===A.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u="get"===e.kind?0:1;if(e.value.params.length!==u){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},$.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(A.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(A.bracketR),e.key;e.computed=!1}return e.key=this.type===A.num||this.type===A.string?this.parseExprAtom():this.parseIdent(!0)},$.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},$.parseMethod=function(e,t){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,a=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(A.parenL),n.params=this.parseBindingList(A.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=a,this.awaitPos=o,this.inFunction=s,this.finishNode(n,"FunctionExpression")},$.parseArrowExpression=function(e,t,n){var r=this.inGenerator,i=this.inAsync,a=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.enterFunctionScope(),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inGenerator=!1,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=a,this.awaitPos=o,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},$.parseFunctionBody=function(e,t){var n=t&&this.type!==A.braceL,r=this.strict,i=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!a||(i=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!r&&!i&&!t&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=o}this.exitFunctionScope(),this.strict&&e.id&&this.checkLVal(e.id,"none"),this.strict=r},$.isSimpleParamList=function(e){for(var t=0,n=e;t0;)t[n]=arguments[n+1];for(var r=0,i=t;r=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ae.updateContext=function(e){var t,n=this.type;n.keyword&&e==A.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},A.parenR.updateContext=A.braceR.updateContext=function(){if(1!=this.context.length){var e=this.context.pop();e===ie.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},A.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ie.b_stat:ie.b_expr),this.exprAllowed=!0},A.dollarBraceL.updateContext=function(){this.context.push(ie.b_tmpl),this.exprAllowed=!0},A.parenL.updateContext=function(e){var t=e===A._if||e===A._for||e===A._with||e===A._while;this.context.push(t?ie.p_stat:ie.p_expr),this.exprAllowed=!0},A.incDec.updateContext=function(){},A._function.updateContext=A._class.updateContext=function(e){e.beforeExpr&&e!==A.semi&&e!==A._else&&(e!==A.colon&&e!==A.braceL||this.curContext()!==ie.b_stat)?this.context.push(ie.f_expr):this.context.push(ie.f_stat),this.exprAllowed=!1},A.backQuote.updateContext=function(){this.curContext()===ie.q_tmpl?this.context.pop():this.context.push(ie.q_tmpl),this.exprAllowed=!1},A.star.updateContext=function(e){if(e==A._function){var t=this.context.length-1;this.context[t]===ie.f_expr?this.context[t]=ie.f_expr_gen:this.context[t]=ie.f_gen}this.exprAllowed=!0},A.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&("of"==this.value&&!this.exprAllowed||"yield"==this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var oe={$LONE:["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"],General_Category:["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],Script:["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Warang_Citi","Wara","Yi","Yiii","Zanabazar_Square","Zanb"]};Array.prototype.push.apply(oe.$LONE,oe.General_Category),oe.gc=oe.General_Category,oe.sc=oe.Script_Extensions=oe.scx=oe.Script;var se=G.prototype,ue=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function ce(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function le(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function de(e){return e>=65&&e<=90||e>=97&&e<=122}function fe(e){return de(e)||95===e}function pe(e){return fe(e)||he(e)}function he(e){return e>=48&&e<=57}function me(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ge(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function ye(e){return e>=48&&e<=55}ue.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},ue.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},ue.prototype.at=function(e){var t=this.source,n=t.length;if(e>=n)return-1;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?r:(r<<10)+t.charCodeAt(e+1)-56613888},ue.prototype.nextIndex=function(e){var t=this.source,n=t.length;if(e>=n)return n;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?e+1:e+2},ue.prototype.current=function(){return this.at(this.pos)},ue.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},ue.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},ue.prototype.eat=function(e){return this.current()===e&&(this.advance(),!0)},se.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r-1&&this.raise(e.start,"Duplicate regular expression flag")}},se.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},se.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},se.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},se.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},se.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},se.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},se.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},se.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!le(t)&&(e.lastIntValue=t,e.advance(),!0)},se.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!le(n);)e.advance();return e.pos!==t},se.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},se.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},se.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},se.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ce(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ce(e.lastIntValue);return!0}return!1},se.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return h(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},se.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return m(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},se.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},se.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},se.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},se.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},se.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},se.regexp_eatZero=function(e){return 48===e.current()&&!he(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},se.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},se.regexp_eatControlLetter=function(e){var t=e.current();return!!de(t)&&(e.lastIntValue=t%32,e.advance(),!0)},se.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t,n=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(e.switchU&&r>=55296&&r<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(r-55296)+(a-56320)+65536,!0}e.pos=i,e.lastIntValue=r}return!0}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((t=e.lastIntValue)>=0&&t<=1114111))return!0;e.switchU&&e.raise("Invalid unicode escape"),e.pos=n}return!1},se.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},se.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},se.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},se.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},se.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){oe.hasOwnProperty(t)&&-1!==oe[t].indexOf(n)||e.raise("Invalid property name")},se.regexp_validateUnicodePropertyNameOrValue=function(e,t){-1===oe.$LONE.indexOf(t)&&e.raise("Invalid property name")},se.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";fe(t=e.current());)e.lastStringValue+=ce(t),e.advance();return""!==e.lastStringValue},se.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";pe(t=e.current());)e.lastStringValue+=ce(t),e.advance();return""!==e.lastStringValue},se.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},se.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},se.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},se.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||ye(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},se.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},se.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!he(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},se.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},se.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;he(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},se.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;me(n=e.current());)e.lastIntValue=16*e.lastIntValue+ge(n),e.advance();return e.pos!==t},se.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},se.regexp_eatOctalDigit=function(e){var t=e.current();return ye(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},se.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r>10),56320+(1023&e)))}be.next=function(){this.options.onToken&&this.options.onToken(new ve(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},be.getToken=function(){return this.next(),new ve(this)},"undefined"!=typeof Symbol&&(be[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===A.eof,value:t}}}}),be.curContext=function(){return this.context[this.context.length-1]},be.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(A.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},be.readToken=function(e){return h(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},be.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},be.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(N.lastIndex=n;(e=N.exec(this.input))&&e.index8&&e<14||e>=5760&&_.test(String.fromCharCode(e))))break e;++this.pos}}},be.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},be.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(A.ellipsis)):(++this.pos,this.finishToken(A.dot))},be.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(A.assign,2):this.finishOp(A.slash,1)},be.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?A.star:A.modulo;return this.options.ecmaVersion>=7&&42==e&&42===t&&(++n,r=A.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(A.assign,n+1):this.finishOp(r,n)},be.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?A.logicalOR:A.logicalAND,2):61===t?this.finishOp(A.assign,2):this.finishOp(124===e?A.bitwiseOR:A.bitwiseAND,1)},be.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(A.assign,2):this.finishOp(A.bitwiseXOR,1)},be.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!=t||this.inModule||62!=this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!E.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(A.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(A.assign,2):this.finishOp(A.plusMin,1)},be.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(A.assign,n+1):this.finishOp(A.bitShift,n)):33!=t||60!=e||this.inModule||45!=this.input.charCodeAt(this.pos+2)||45!=this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(A.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},be.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(A.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(A.arrow)):this.finishOp(61===e?A.eq:A.prefix,1)},be.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(A.parenL);case 41:return++this.pos,this.finishToken(A.parenR);case 59:return++this.pos,this.finishToken(A.semi);case 44:return++this.pos,this.finishToken(A.comma);case 91:return++this.pos,this.finishToken(A.bracketL);case 93:return++this.pos,this.finishToken(A.bracketR);case 123:return++this.pos,this.finishToken(A.braceL);case 125:return++this.pos,this.finishToken(A.braceR);case 58:return++this.pos,this.finishToken(A.colon);case 63:return++this.pos,this.finishToken(A.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(A.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(A.prefix,1)}this.raise(this.pos,"Unexpected character '"+Ce(e)+"'")},be.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},be.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(E.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new ue(this));s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var u=null;try{u=new RegExp(i,o)}catch(e){}return this.finishToken(A.regexp,{pattern:i,flags:o,value:u})},be.readInt=function(e,t){for(var n=this.pos,r=0,i=0,a=null==t?1/0:t;i=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.pos,r=r*e+s}return this.pos===n||null!=t&&this.pos-n!==t?null:r},be.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(A.num,t)},be.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number"),n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(t,this.pos),a=n?parseInt(i,8):parseFloat(i);return this.finishToken(A.num,a)},be.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},be.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(I(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(A.string,t)};var Se={};be.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Se)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},be.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Se;this.raise(e,t)},be.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==A.template&&this.type!==A.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(A.template,e)):36===n?(this.pos+=2,this.finishToken(A.dollarBraceL)):(++this.pos,this.finishToken(A.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(I(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},be.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!=t&&57!=t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(t)}},be.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},be.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos",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";var r=n(432),i=/^[\da-fA-F]+$/,a=/^\d+$/;e.exports=function(e){var t=e.tokTypes,n=e.tokContexts;n.j_oTag=new e.TokContext("...",!0,!0),t.jsxName=new e.TokenType("jsxName"),t.jsxText=new e.TokenType("jsxText",{beforeExpr:!0}),t.jsxTagStart=new e.TokenType("jsxTagStart"),t.jsxTagEnd=new e.TokenType("jsxTagEnd"),t.jsxTagStart.updateContext=function(){this.context.push(n.j_expr),this.context.push(n.j_oTag),this.exprAllowed=!1},t.jsxTagEnd.updateContext=function(e){var r=this.context.pop();r===n.j_oTag&&e===t.slash||r===n.j_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===n.j_expr):this.exprAllowed=!0};var o=e.Parser.prototype;function s(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?s(e.object)+"."+s(e.property):void 0:e}return o.jsx_readToken=function(){for(var n="",r=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var i=this.input.charCodeAt(this.pos);switch(i){case 60:case 123:return this.pos===this.start?60===i&&this.exprAllowed?(++this.pos,this.finishToken(t.jsxTagStart)):this.getTokenFromCode(i):(n+=this.input.slice(r,this.pos),this.finishToken(t.jsxText,n));case 38:n+=this.input.slice(r,this.pos),n+=this.jsx_readEntity(),r=this.pos;break;default:e.isNewLine(i)?(n+=this.input.slice(r,this.pos),n+=this.jsx_readNewLine(!0),r=this.pos):++this.pos}}},o.jsx_readNewLine=function(e){var 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},o.jsx_readString=function(n){for(var r="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var a=this.input.charCodeAt(this.pos);if(a===n)break;38===a?(r+=this.input.slice(i,this.pos),r+=this.jsx_readEntity(),i=this.pos):e.isNewLine(a)?(r+=this.input.slice(i,this.pos),r+=this.jsx_readNewLine(!1),i=this.pos):++this.pos}return r+=this.input.slice(i,this.pos++),this.finishToken(t.string,r)},o.jsx_readEntity=function(){var e,t="",n=0,o=this.input[this.pos];"&"!==o&&this.raise(this.pos,"Entity must start with an ampersand");for(var s=++this.pos;this.pos")}return r.openingElement=a,r.closingElement=o,r.children=i,this.type===t.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,a.name?"JSXElement":"JSXFragment")},o.jsx_parseText=function(e){var t=this.parseLiteral(e);return t.type="JSXText",t},o.jsx_parseElement=function(){var e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)},e.plugins.jsx=function(r,i){i&&("object"!=typeof i&&(i={}),r.options.plugins.jsx={allowNamespaces:!1!==i.allowNamespaces,allowNamespacedObjects:!!i.allowNamespacedObjects},r.extend("parseExprAtom",function(e){return function(n){return this.type===t.jsxText?this.jsx_parseText(this.value):this.type===t.jsxTagStart?this.jsx_parseElement():e.call(this,n)}}),r.extend("readToken",function(r){return function(i){var a=this.curContext();if(a===n.j_expr)return this.jsx_readToken();if(a===n.j_oTag||a===n.j_cTag){if(e.isIdentifierStart(i))return this.jsx_readWord();if(62==i)return++this.pos,this.finishToken(t.jsxTagEnd);if((34===i||39===i)&&a==n.j_oTag)return this.jsx_readString(i)}return 60===i&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(t.jsxTagStart)):r.call(this,i)}}),r.extend("updateContext",function(e){return function(r){if(this.type==t.braceL){var i=this.curContext();i==n.j_oTag?this.context.push(n.b_expr):i==n.j_expr?this.context.push(n.b_tmpl):e.call(this,r),this.exprAllowed=!0}else{if(this.type!==t.slash||r!==t.jsxTagStart)return e.call(this,r);this.context.length-=2,this.context.push(n.j_cTag),this.exprAllowed=!1}}}))},e}},function(e,t,n){"use strict";var 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:function(e,t){var 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;var a=e.value;e.regex={flags:a.flags,pattern:a.pattern},e.value="/"+a.pattern+"/"+a.flags}return e},onToken:function(e,t){var n=this,i=this._acornTokTypes,a=t.tokens,o=this._tokens;function s(){a.push(function(e,t){var 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,t,n){"use strict";var r=n(156),i={trailingComments:[],leadingComments:[],bottomRightStack:[],previousNode:null};e.exports={reset:function(){i.trailingComments=[],i.leadingComments=[],i.bottomRightStack=[],i.previousNode=null},addComment:function(e){i.trailingComments.push(e),i.leadingComments.push(e)},processComment:function(e){var t,n,a,o;if(!(e.type===r.Program&&e.body.length>0)){for(i.trailingComments.length>0?i.trailingComments[0].range[0]>=e.range[1]?(n=i.trailingComments,i.trailingComments=[]):i.trailingComments.length=0:i.bottomRightStack.length>0&&i.bottomRightStack[i.bottomRightStack.length-1].trailingComments&&i.bottomRightStack[i.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(n=i.bottomRightStack[i.bottomRightStack.length-1].trailingComments,delete i.bottomRightStack[i.bottomRightStack.length-1].trailingComments);i.bottomRightStack.length>0&&i.bottomRightStack[i.bottomRightStack.length-1].range[0]>=e.range[0];)t=i.bottomRightStack.pop();if(t){if(t.leadingComments)if(t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0])e.leadingComments=t.leadingComments,delete t.leadingComments;else for(a=t.leadingComments.length-2;a>=0;--a)if(t.leadingComments[a].range[1]<=e.range[0]){e.leadingComments=t.leadingComments.splice(0,a+1);break}}else if(i.leadingComments.length>0)if(i.leadingComments[i.leadingComments.length-1].range[1]<=e.range[0]){if(i.previousNode)for(o=0;o0&&(e.leadingComments=i.leadingComments,i.leadingComments=[])}else{for(a=0;ae.range[0]);a++);e.leadingComments=i.leadingComments.slice(0,a),0===e.leadingComments.length&&delete e.leadingComments,0===(n=i.leadingComments.slice(a)).length&&(n=null)}i.previousNode=e,n&&(e.trailingComments=n),i.bottomRightStack.push(e)}}}},function(e){e.exports={name:"escodegen-wallaby",description:"ECMAScript code generator with JSX support",homepage:"http://github.com/wallabyjs/escodegen",main:"escodegen.js",bin:{esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},files:["LICENSE.BSD","LICENSE.source-map","README.md","bin","escodegen.js","package.json"],version:"1.6.18",engines:{node:">=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){(function(e){if("function"!=typeof t)var t=n(101)(e,n(100));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()||"")},c=1,l=0,d=null;return t.eachMapping(function(e){if(null!==d){if(!(c0&&(d&&f(d,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 f(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)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(85)(e))},function(e,t,n){(function(e){if("function"!=typeof t)var t=n(101)(e,n(100));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 c=t.source;null==c||s.has(c)||s.add(c);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,c="",l=this._mappings.toArray(),d=0,f=l.length;d0){if(!i.compareByGeneratedPositions(e,l[d-1]))continue;c+=","}c+=r.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(c+=r.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),c+=r.encode(e.originalLine-1-o),o=e.originalLine-1,c+=r.encode(e.originalColumn-a),a=e.originalColumn,null!=e.name&&(c+=r.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return c},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(85)(e))},function(e,t,n){t.SourceMapGenerator=n(439).SourceMapGenerator,t.SourceMapConsumer=n(438).SourceMapConsumer,t.SourceNode=n(437).SourceNode},function(e,t,n){!function(){"use strict";var t=n(158);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){!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";t.ast=n(442),t.code=n(158),t.keyword=n(441)}()},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,c,l;(r=Array.isArray)||(r=function(e){return"[object Array]"===Object.prototype.toString.call(e)});function d(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?d(n):n);return r}function f(e,t){this.parent=e,this.key=t}function p(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function h(){}function m(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function g(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function y(e,t){var n=new h;return n.traverse(e,t)}function v(e,t){var n;return n=function(e,t){var n,r,i,a;r=e.length,i=0;for(;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:c={},Remove:l={}},f.prototype.replace=function(e){this.parent[this.key]=e},f.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(b=o[f=v[h]])if(r(b)){for(y=b.length;(y-=1)>=0;)if(b[y]){if(g(l,v[h]))a=new p(b[y],[f,y],"Property",null);else{if(!m(b[y]))continue;a=new p(b[y],[f,y],null,null)}n.push(a)}}else m(b)&&n.push(new p(b,f,null,null))}}else if(a=i.pop(),d=this.__execute(t.leave,a),this.__state===u||d===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[N=C[v]])if(r(S)){for(b=S.length;(b-=1)>=0;)if(S[b]){if(g(d,C[v]))y=new p(S[b],[N,b],"Property",new f(S,b));else{if(!m(S[b]))continue;y=new p(S[b],[N,b],null,new f(S,b))}i.push(y)}}else m(S)&&i.push(new p(S,N,null,new f(o,N)))}}else if(y=a.pop(),void 0!==(h=this.__execute(t.leave,y))&&h!==u&&h!==c&&h!==l&&y.ref.replace(h),this.__state!==l&&h!==l||n(y),this.__state===u||h===u)return E.root;return E.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){var r=n(61),i=n(73);n(67)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(445),e.exports=n(16).Object.keys},function(e){e.exports={name:"estraverse",description:"ECMAScript JS AST traversal functions",homepage:"https://github.com/estools/estraverse",main:"estraverse.js",version:"4.2.0",engines:{node:">=0.10.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-es2015":"^6.3.13","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.2.1",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){var r=n(48),i=n(88).f;n(67)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){n(448);var r=n(16).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},function(e,t,n){var r=n(61),i=n(72);n(67)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){n(450),e.exports=n(16).Object.getPrototypeOf},function(e,t,n){e.exports=n(451)},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,t,n){n(106)("observable")},function(e,t,n){n(106)("asyncIterator")},function(e,t,n){var r=n(73),i=n(105),a=n(87);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),u=a.f,c=0;s.length>c;)u.call(e,o=s[c++])&&t.push(o);return t}},function(e,t,n){"use strict";var r=n(33),i=n(37),a=n(35),o=n(27),s=n(116),u=n(60).KEY,c=n(38),l=n(90),d=n(86),f=n(89),p=n(30),h=n(107),m=n(106),g=n(456),y=n(171),v=n(26),b=n(25),C=n(48),S=n(127),A=n(74),E=n(92),N=n(160),I=n(88),_=n(32),D=n(73),x=I.f,F=_.f,T=N.f,M=r.Symbol,w=r.JSON,B=w&&w.stringify,k=p("_hidden"),R=p("toPrimitive"),O={}.propertyIsEnumerable,P=l("symbol-registry"),j=l("symbols"),L=l("op-symbols"),G=Object.prototype,V="function"==typeof M,U=r.QObject,z=!U||!U.prototype||!U.prototype.findChild,H=a&&c(function(){return 7!=E(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=x(G,t);r&&delete G[t],F(e,t,n),r&&e!==G&&F(G,t,r)}:F,W=function(e){var t=j[e]=E(M.prototype);return t._k=e,t},J=V&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},K=function(e,t,n){return e===G&&K(L,t,n),v(e),t=S(t,!0),v(n),i(j,t)?(n.enumerable?(i(e,k)&&e[k][t]&&(e[k][t]=!1),n=E(n,{enumerable:A(0,!1)})):(i(e,k)||F(e,k,A(1,{})),e[k][t]=!0),H(e,t,n)):F(e,t,n)},q=function(e,t){v(e);for(var n,r=g(t=C(t)),i=0,a=r.length;a>i;)K(e,n=r[i++],t[n]);return e},$=function(e){var t=O.call(this,e=S(e,!0));return!(this===G&&i(j,e)&&!i(L,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,k)&&this[k][e])||t)},Y=function(e,t){if(e=C(e),t=S(t,!0),e!==G||!i(j,t)||i(L,t)){var n=x(e,t);return!n||!i(j,t)||i(e,k)&&e[k][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=T(C(e)),r=[],a=0;n.length>a;)i(j,t=n[a++])||t==k||t==u||r.push(t);return r},X=function(e){for(var t,n=e===G,r=T(n?L:C(e)),a=[],o=0;r.length>o;)!i(j,t=r[o++])||n&&!i(G,t)||a.push(j[t]);return a};V||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(L,n),i(this,k)&&i(this[k],e)&&(this[k][e]=!1),H(this,e,A(1,n))};return a&&z&&H(G,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),I.f=Y,_.f=K,n(159).f=N.f=Z,n(87).f=$,n(105).f=X,a&&!n(117)&&s(G,"propertyIsEnumerable",$,!0),h.f=function(e){return W(p(e))}),o(o.G+o.W+o.F*!V,{Symbol:M});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)p(Q[ee++]);for(var te=D(p.store),ne=0;te.length>ne;)m(te[ne++]);o(o.S+o.F*!V,"Symbol",{for:function(e){return i(P,e+="")?P[e]:P[e]=M(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in P)if(P[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),o(o.S+o.F*!V,"Object",{create:function(e,t){return void 0===t?E(e):q(E(e),t)},defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z,getOwnPropertySymbols:X}),w&&o(o.S+o.F*(!V||c(function(){var e=M();return"[null]"!=B([e])||"{}"!=B({a:e})||"{}"!=B(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!J(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,B.apply(w,r)}}),M.prototype[R]||n(42)(M.prototype,R,M.prototype.valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){n(457),n(119),n(455),n(454),e.exports=n(16).Symbol},function(e,t,n){e.exports=n(458)},function(e,t,n){n(63),n(71),e.exports=n(107).f("iterator")},function(e,t,n){e.exports=n(460)},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(7)),l=r(n(6)),d=r(n(5)),f=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,d.default)(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&&(0,c.default)(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 h=n(1),m=p(n(24)),g=n(104),y=n(13),v=n(14),b=function(e){function t(){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,o.default)(t,[{key:"extract",value:function(e,t){if(!y.NodeGuards.isIdentifierNode(t))return null;var n=this.getCalleeBlockStatement(v.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name);return n?{callee:n,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var n=null;return m.traverse(e,{enter:function(e){if(y.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return n=e.body,m.VisitorOption.Break}}),n}}]),(0,a.default)(t,e),t}(g.AbstractCalleeDataExtractor);b=f([h.injectable()],b),t.FunctionDeclarationCalleeDataExtractor=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),a=n(4),o=n(161),s=n(462),u=n(426),c=n(425),l=n(422);t.analyzersModule=new i.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(l.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(o.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(u.FunctionExpressionCalleeDataExtractor).whenTargetNamed(o.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.ObjectExpressionCalleeDataExtractor).whenTargetNamed(o.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(r.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},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;r0?t._map.set(r,i):t._map.delete(r)})},e.prototype.hasKey=function(e){if(null===e||void 0===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=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(36),i=n(163),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=n(476),i=n(109),a=n(108),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(29),i=n(36),a=n(477),o=n(163),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(29),i=n(36),a=n(22);t.resolveInstance=function(e,t,n){var o,s,u=null;if(t.length>0){var c=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument}).map(n);s=c,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(29),i=n(36),a=n(166),o=n(68),s=n(479),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}},c=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,a=t.childRequests,l=t.target&&t.target.isArray(),d=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&d)return a.map(function(t){return c(e)(t)});var f=null;if(!t.target.isOptional()||0!==n.length){var p=n[0],h=p.scope===i.BindingScopeEnum.Singleton,m=p.scope===i.BindingScopeEnum.Request;if(h&&p.activated)return p.cache;if(m&&null!==e&&e.has(p.guid))return e.get(p.guid);if(p.type===i.BindingTypeEnum.ConstantValue)f=p.cache;else if(p.type===i.BindingTypeEnum.Function)f=p.cache;else if(p.type===i.BindingTypeEnum.Constructor)f=p.implementationType;else if(p.type===i.BindingTypeEnum.DynamicValue&&null!==p.dynamicValue)f=u("toDynamicValue",p.serviceIdentifier,function(){return p.dynamicValue(t.parentContext)});else if(p.type===i.BindingTypeEnum.Factory&&null!==p.factory)f=u("toFactory",p.serviceIdentifier,function(){return p.factory(t.parentContext)});else if(p.type===i.BindingTypeEnum.Provider&&null!==p.provider)f=u("toProvider",p.serviceIdentifier,function(){return p.provider(t.parentContext)});else{if(p.type!==i.BindingTypeEnum.Instance||null===p.implementationType){var g=o.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+g)}f=s.resolveInstance(p.implementationType,a,c(e))}return"function"==typeof p.onActivation&&(f=p.onActivation(t.parentContext,f)),h&&(p.cache=f,p.activated=!0),m&&null!==e&&!e.has(p.guid)&&e.set(p.guid,f),f}}};t.resolve=function(e){return c(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(47),i=function(){function e(e,t,n,i,a){this.guid=r.guid(),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=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(165),i=n(29),a=n(36),o=n(22),s=n(68);t.getFunctionName=s.getFunctionName;var u=n(164);function c(e,t,n,r){var o=e.getConstructorMetadata(n),s=o.compilerGeneratedMetadata;if(void 0===s){var c=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(c)}var f=o.userGeneratedMetadata,p=Object.keys(f),h=function(e,t,n,r,i){for(var a=[],o=0;o0?p.length:n.length),m=function e(t,n){var r=t.getPropertiesMetadata(n);var i=[];var o=Object.keys(r);for(var s=0,c=o;s0?l:e(t,r)}return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){this.parentContext=e,this.rootRequest=t}}();t.Plan=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(47),i=function(){function e(e){this.guid=r.guid(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(486),i=n(29),a=n(36),o=n(22),s=n(166),u=n(68),c=n(485),l=n(31),d=n(484),f=n(483),p=n(481),h=n(164);function m(e){return e._bindingDictionary}function g(e,t,n,a,o){var s=y(n.container,o.serviceIdentifier),c=[];return s.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof o.serviceIdentifier&&e.getConstructorMetadata(o.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(o.serviceIdentifier).toSelf(),s=y(n.container,o.serviceIdentifier)),c=t?s:s.filter(function(e){var t=new p.Request(e.serviceIdentifier,n,a,e,o);return e.constraint(t)}),function(e,t,n,a){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var o=u.getServiceIdentifierAsString(e),s=i.NOT_REGISTERED;throw s+=u.listMetadataForTarget(o,n),s+=u.listRegisteredBindingsForServiceIdentifier(a,o,y),new Error(s);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;var o=u.getServiceIdentifierAsString(e),s=i.AMBIGUOUS_MATCH+" "+o;throw s+=u.listRegisteredBindingsForServiceIdentifier(a,o,y),new Error(s)}}(o.serviceIdentifier,c,o,n.container),c}function y(e,t){var n=[],r=m(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=y(e.parent,t)),n}t.getBindingDictionary=m,t.plan=function(e,t,n,r,m,y,v,b){void 0===b&&(b=!1);var C=new c.Context(t),S=function(e,t,n,r,i,a){var s=e?o.MULTI_INJECT_TAG:o.INJECT_TAG,u=new l.Metadata(s,n),c=new h.Target(t,r,n,u);if(void 0!==i){var d=new l.Metadata(i,a);c.metadata.push(d)}return c}(n,r,m,"",y,v);try{return function e(t,n,r,o,s,u){var c,l;if(null===s){c=g(t,n,o,null,u),l=new p.Request(r,o,null,c,u);var h=new d.Plan(o,l);o.addPlan(h)}else c=g(t,n,o,s,u),l=s.addChildRequest(u.serviceIdentifier,c,u);c.forEach(function(n){var r=null;if(u.isArray())r=l.addChildRequest(n.serviceIdentifier,n,u);else{if(n.cache)return;r=l}if(n.type===a.BindingTypeEnum.Instance&&null!==n.implementationType){var s=f.getDependencies(t,n.implementationType);if(!o.container.options.skipBaseClassChecks){var c=f.getBaseClassDependencyCount(t,n.implementationType);if(s.length0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(92),i=n(74),a=n(86),o={};n(42)(o,n(30)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(122),i=n(123);e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===c||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){n(119),n(63),n(71),n(175),n(493),n(491),n(490),e.exports=n(16).Map},function(e,t,n){var r=n(25),i=n(26),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(50)(Function.call,n(88).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var r=n(27);r(r.S,"Object",{setPrototypeOf:n(502).set})},function(e,t,n){n(503),e.exports=n(16).Object.setPrototypeOf},function(e,t,n){e.exports=n(504)},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var r=n(75),i=n(25),a=n(506),o=[].slice,s={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),u=function(){var r=n.concat(o.call(arguments));return this instanceof u?function(e,t,n){if(!(t in s)){for(var r=[],i=0;il;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(32),i=n(26),a=n(73);e.exports=n(35)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var r=n(27),i=n(92),a=n(75),o=n(26),s=n(25),u=n(38),c=n(507),l=(n(33).Reflect||{}).construct,d=u(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),f=!u(function(){l(function(){})});r(r.S+r.F*(d||f),"Reflect",{construct:function(e,t){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(f&&!d)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,p=i(s(u)?u:Object.prototype),h=Function.apply.call(e,p,t);return s(h)?h:p}})},function(e,t,n){n(512),e.exports=n(16).Reflect.construct},function(e,t,n){e.exports=n(513)},function(e,t,n){var r=n(514),i=n(177);function a(t,n,o){return"undefined"!=typeof Reflect&&r?e.exports=a=r:e.exports=a=function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&i(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t,n){(function(e,t){ +e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-a)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,i=0;r>>6-2*i);return t}},e.exports=r},function(e,t,n){var r,i,a,o,s;r=n(208),i=n(130).utf8,a=n(207),o=n(130).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var n=r.bytesToWords(e),u=8*e.length,c=1732584193,l=-271733879,d=-1732584194,f=271733878,p=0;p>>24)|4278255360&(n[p]<<24|n[p]>>>8);n[u>>>5]|=128<>>9<<4)]=u;var h=s._ff,m=s._gg,g=s._hh,y=s._ii;for(p=0;p>>0,l=l+b>>>0,d=d+C>>>0,f=f+S>>>0}return r.endian([c,l,d,f])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(6)),c=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,c.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,s.default)(t,n,o),o},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof o.default)return(0,o.default)(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(1),h=n(4),m=n(131),g=n(54),y=function(){function e(t){(0,i.default)(this,e),this.randomGenerator=t}return(0,a.default)(e,[{key:"btoa",value:function(e){var t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt("".concat(g.Utils.hexadecimalPrefix).concat(t)))});for(var n,r,i=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|i)||(a="=",i%1);t+=a.charAt(63&n>>8-i%1*8)){if((r=e.charCodeAt(i+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");n=n<<8|r}return t}},{key:"hideString",value:function(e,t){var n=this,r=this.randomGenerator.getRandomGenerator().string({length:t,pool:m.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),i=r.split("");return this.randomGenerator.getRandomGenerator().shuffle(i),[function(e,t){for(var r=-1,i=-1,a="";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&&(0,u.default)(t,n,o),o},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof s.default)return(0,s.default)(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(1),m=n(4),g=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,o.default)(e,[{key:"arrayRange",value:function(e){for(var t=[],n=0;n=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,u.default)(t,n,o),o},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof s.default)return(0,s.default)(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(1),m=n(4),g=n(15),y=function(){function e(t,n){(0,a.default)(this,e),this.storageLength=0,this.randomGenerator=t,this.options=n}return(0,o.default)(e,[{key:"initialize",value:function(){this.storage=[],this.storageId=this.randomGenerator.getRandomString(6)}},{key:"get",value:function(e){var t=this.storage[e];if(!t)throw new Error("No value found in array storage with key `".concat(e,"`"));return t}},{key:"getKeyOf",value:function(e){var t=this.storage.indexOf(e);return t>=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,i.default)(this.storage).concat((0,i.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();d([g.initializable(),f("design:type",Array)],y.prototype,"storage",void 0),d([g.initializable(),f("design:type",String)],y.prototype,"storageId",void 0),d([h.postConstruct(),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],y.prototype,"initialize",null),y=d([h.injectable(),p(0,h.inject(m.ServiceIdentifiers.IRandomGenerator)),p(1,h.inject(m.ServiceIdentifiers.IOptions)),f("design:paramtypes",[Object,Object])],y),t.ArrayStorage=y},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(79)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(213),S=y=function(e){function t(e,n,r,a){var o;return(0,i.default)(this,t),(o=(0,s.default)(this,(0,u.default)(t).call(this,r,a))).identifierNamesGenerator=e(a),o.arrayUtils=n,o}return(0,o.default)(t,[{key:"initialize",value:function(){(0,c.default)((0,u.default)(t.prototype),"initialize",this).call(this);var e=this.identifierNamesGenerator.generate().slice(0,y.stringArrayNameLength),n=this.identifierNamesGenerator.generate().slice(0,y.stringArrayNameLength),r="".concat(this.options.identifiersPrefix).concat(e),i="".concat(this.options.identifiersPrefix).concat(n);this.storageId="".concat(r,"|").concat(i)}},{key:"rotateArray",value:function(e){this.storage=this.arrayUtils.arrayRotate(this.storage,e)}},{key:"toString",value:function(){return this.storage.map(function(e){return"'".concat(e,"'")}).toString()}}]),(0,a.default)(t,e),t}(C.ArrayStorage);S.stringArrayNameLength=7,h([v.postConstruct(),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],S.prototype,"initialize",null),S=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IArrayUtils)),g(2,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],S),t.StringArrayStorage=S},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(79)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(151),S=n(132),A=y=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).customNodeGroupFactory=e,a}return(0,o.default)(t,[{key:"initialize",value:function(){var e=this;(0,c.default)((0,u.default)(t.prototype),"initialize",this).call(this),y.customNodeGroupsList.forEach(function(t){var n=e.customNodeGroupFactory(t);n&&e.storage.set(t,n)})}}]),(0,a.default)(t,e),t}(S.MapStorage);A.customNodeGroupsList=[C.CustomNodeGroup.ConsoleOutputCustomNodeGroup,C.CustomNodeGroup.DebugProtectionCustomNodeGroup,C.CustomNodeGroup.DomainLockCustomNodeGroup,C.CustomNodeGroup.SelfDefendingCustomNodeGroup,C.CustomNodeGroup.StringArrayCustomNodeGroup],h([v.postConstruct(),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],A.prototype,"initialize",null),A=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__ICustomNodeGroup)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],A),t.CustomNodeGroupStorage=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(10)),s=r(n(9)),u=r(n(8)),c=r(n(7)),l=r(n(6)),d=r(n(5)),f=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,d.default)(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&&(0,c.default)(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof u.default)return(0,u.default)(e,t)},h=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var m=n(1),g=n(4),y=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,a.default)(t,e),t}(n(132).MapStorage);y=f([m.injectable(),h(0,m.inject(g.ServiceIdentifiers.IRandomGenerator)),h(1,m.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object])],y),t.ControlFlowStorage=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),a=n(216),o=n(215),s=n(214);t.storagesModule=new r.ContainerModule(function(e){e(i.ServiceIdentifiers.TCustomNodeGroupStorage).to(o.CustomNodeGroupStorage).inSingletonScope(),e(i.ServiceIdentifiers.TStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(i.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(a.ControlFlowStorage),e(i.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(function(e){return function(){var t=new(e.container.get(i.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(i.ServiceIdentifiers.IRandomGenerator),e.container.get(i.ServiceIdentifiers.IOptions));return t.initialize(),t}})})},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(17),b=n(19),C=n(14),S=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Preparing:return{enter:function(e,n){return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return C.NodeUtils.parentizeNode(e,t)}}]),(0,a.default)(t,e),t}(b.AbstractNodeTransformer);S=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(1,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],S),t.ParentificationTransformer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(133),C=n(17),S=n(19),A=n(28),E=g=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).obfuscatingGuards=g.obfuscatingGuardsList.map(e),a}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case C.TransformationStage.Preparing:return{enter:function(e,n){return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.obfuscatingGuards.every(function(t){return t.check(e)});return A.NodeMetadata.set(e,{ignoredNode:!n}),e}}]),(0,a.default)(t,e),t}(S.AbstractNodeTransformer);E.obfuscatingGuardsList=[b.ObfuscatingGuard.BlackListNodeGuard,b.ObfuscatingGuard.ConditionalCommentNodeGuard],E=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__INodeGuard)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],E),t.ObfuscatingGuardsTransformer=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(17),b=n(19),C=n(13),S=n(28),A=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Preparing:return{enter:function(e,n){return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return S.NodeMetadata.set(e,{ignoredNode:!1}),C.NodeGuards.isIdentifierNode(e)&&S.NodeMetadata.set(e,{renamedIdentifier:!1}),C.NodeGuards.isLiteralNode(e)&&S.NodeMetadata.set(e,{replacedLiteral:!1}),e}}]),(0,a.default)(t,e),t}(b.AbstractNodeTransformer);A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(1,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],A),t.MetadataTransformer=A},function(e,t){e.exports=function(e){return(""+e).replace(/["'\\\n\r\u2028\u2029]/g,function(e){switch(e){case'"':case"'":case"\\":return"\\"+e;case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})}},function(e,t,n){"use strict";var r=n(0),i=r(n(57)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v,b=n(1),C=n(4),S=y(n(221)),A=n(17),E=n(19),N=n(20),I=n(13),_=n(14),D=v=function(e){function t(e,n){var r;return(0,a.default)(this,t),(r=(0,u.default)(this,(0,c.default)(t).call(this,e,n))).evalRootAstHostNodeSet=new i.default,r}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case A.TransformationStage.Preparing:return{enter:function(e,n){if(n&&I.NodeGuards.isCallExpressionNode(e)&&I.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return t.transformNode(e,n)}};case A.TransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:function(e,n){if(n&&t.isEvalRootAstHostNode(e))return t.restoreNode(e,n)}}:null;default:return null}}},{key:"transformNode",value:function(e,t){var n=e.arguments[0];if(!n)return e;var r,i=v.extractEvalStringFromCallExpressionArgument(n);if(!i)return e;try{r=_.NodeUtils.convertCodeToStructure(i)}catch(t){return e}var a=N.NodeFactory.functionExpressionNode([],N.NodeFactory.blockStatementNode(r));return this.evalRootAstHostNodeSet.add(a),a}},{key:"restoreNode",value:function(e,t){var n=e.body.body,r=_.NodeUtils.convertStructureToCode(n);return N.NodeFactory.callExpressionNode(N.NodeFactory.identifierNode("eval"),[N.NodeFactory.literalNode(S.default(r))])}},{key:"isEvalRootAstHostNode",value:function(e){return I.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}}],[{key:"extractEvalStringFromCallExpressionArgument",value:function(e){return I.NodeGuards.isLiteralNode(e)?v.extractEvalStringFromLiteralNode(e):I.NodeGuards.isTemplateLiteralNode(e)?v.extractEvalStringFromTemplateLiteralNode(e):null}},{key:"extractEvalStringFromLiteralNode",value:function(e){return"string"==typeof e.value?e.value:null}},{key:"extractEvalStringFromTemplateLiteralNode",value:function(e){var t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}}]),(0,o.default)(t,e),t}(E.AbstractNodeTransformer);D=v=h([b.injectable(),g(0,b.inject(C.ServiceIdentifiers.IRandomGenerator)),g(1,b.inject(C.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object,Object])],D),t.EvalCallExpressionTransformer=D},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(44),b=n(17),C=n(19),S=n(13),A=function(e){function t(e,n,r,a,o){var c;return(0,i.default)(this,t),(c=(0,s.default)(this,(0,u.default)(t).call(this,a,o))).stackTraceData=[],c.stackTraceAnalyzer=e,c.obfuscationEventEmitter=n,c.customNodeGroupStorage=r,c}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Preparing:return{leave:function(e,n){if(S.NodeGuards.isProgramNode(e))return t.analyzeNode(e,n),t.appendCustomNodesBeforeObfuscation(e,n),t.transformNode(e,n)}};case b.TransformationStage.Finalizing:return{leave:function(e,n){S.NodeGuards.isProgramNode(e)&&t.appendCustomNodesAfterObfuscation(e,n)}};default:return null}}},{key:"analyzeNode",value:function(e,t){this.stackTraceData=this.stackTraceAnalyzer.analyze(e)}},{key:"transformNode",value:function(e,t){return e}},{key:"appendCustomNodesBeforeObfuscation",value:function(e,t){var n=this;this.customNodeGroupStorage.getStorage().forEach(function(e){e.initialize(),n.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendCustomNodes.bind(e))}),this.obfuscationEventEmitter.emit(v.ObfuscationEvent.BeforeObfuscation,e,this.stackTraceData)}},{key:"appendCustomNodesAfterObfuscation",value:function(e,t){this.obfuscationEventEmitter.emit(v.ObfuscationEvent.AfterObfuscation,e,this.stackTraceData)}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IStackTraceAnalyzer)),m(1,g.inject(y.ServiceIdentifiers.IObfuscationEventEmitter)),m(2,g.inject(y.ServiceIdentifiers.TCustomNodeGroupStorage)),m(3,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(4,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object,Object,Object,Object])],A),t.CustomNodesTransformer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(3)),o=r(n(7)),s=r(n(6)),u=r(n(5)),c=function(e,t,n,r){var i,a=arguments.length,c=a<3?t:null===r?r=(0,u.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(c=(a<3?i(c):a>3?i(t,n,c):i(t,n))||c);return a>3&&c&&(0,o.default)(t,n,c),c};Object.defineProperty(t,"__esModule",{value:!0});var l,d=n(1),f=n(13),p=l=function(){function e(){(0,i.default)(this,e),this.obfuscationAllowedForCurrentNode=!0,this.obfuscationAllowedForNextNode=null}return(0,a.default)(e,[{key:"check",value:function(e){if(this.obfuscationAllowedForNextNode&&(this.obfuscationAllowedForCurrentNode=this.obfuscationAllowedForNextNode,this.obfuscationAllowedForNextNode=null),!f.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowedForCurrentNode;var t=e.leadingComments,n=e.trailingComments;return t&&(this.obfuscationAllowedForCurrentNode=this.checkComments(t)),n&&(this.obfuscationAllowedForNextNode=this.checkComments(n)),this.obfuscationAllowedForCurrentNode}},{key:"checkComments",value:function(e){for(var t=e.length,n=this.obfuscationAllowedForCurrentNode,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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(17),C=n(19),S=n(13),A=g=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Preparing:return{leave:function(e,n){if(n&&S.NodeGuards.isNodeWithComments(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return e.leadingComments&&(e.leadingComments=this.transformComments(e.leadingComments)),e.trailingComments&&(e.trailingComments=this.transformComments(e.trailingComments)),e}},{key:"transformComments",value:function(e){return e.filter(function(e){return g.preservedWords.some(function(t){return e.value.includes(t)})})}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);A.preservedWords=["@license","@preserve"],A=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(1,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],A),t.CommentsTransformer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(3)),o=r(n(8)),s=r(n(7)),u=r(n(6)),c=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,c.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,s.default)(t,n,o),o},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof o.default)return(0,o.default)(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var f,p=n(1),h=n(13),m=f=function(){function e(){(0,i.default)(this,e),this.blackListGuardsLength=f.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;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&&(0,u.default)(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0});var f,p=n(1),h=n(237),m=n(236),g=n(235),y=n(234),v=n(233),b=n(232),C=n(231),S=n(230),A=n(229),E=n(228),N=f=function(){function e(){(0,o.default)(this,e)}return(0,s.default)(e,[{key:"normalize",value:function(e){var t=(0,a.default)({},e),n=!0,r=!1,o=void 0;try{for(var s,u=(0,i.default)(f.normalizerRules);!(n=(s=u.next()).done);n=!0){t=(0,s.value)(t)}}catch(e){r=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}return t}}]),e}();N.normalizerRules=[h.ControlFlowFlatteningThresholdRule,m.DeadCodeInjectionRule,g.DeadCodeInjectionThresholdRule,y.DomainLockRule,v.SelfDefendingRule,b.SourceMapBaseUrlRule,C.SourceMapFileNameRule,S.StringArrayRule,A.StringArrayEncodingRule,E.StringArrayThresholdRule],N=f=d([p.injectable()],N),t.OptionsNormalizer=N},function(e,t,n){"use strict";var r=n(0),i=r(n(103)),a=r(n(59)),o=r(n(2)),s=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(){(0,o.default)(this,e)}return(0,s.default)(e,null,[{key:"format",value:function(t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,u=(0,a.default)(t);!(r=(s=u.next()).done);r=!0){var c=s.value;n.push(e.formatError(c))}}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n.join("\n")}},{key:"formatError",value:function(e){var t=e.constraints,n="`".concat(e.property,"` errors:\n");return(0,i.default)(t).forEach(function(e){n+=" - ".concat(t[e],"\n")}),n}}]),e}();t.ValidationErrorsFormatter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64),i=n(135),a=n(96),o=n(53),s=n(52);t.registerDecorator=function(e){var t;if(e.validator instanceof Function)t=e.validator;else{var n=e.validator;t=function(){function e(){}return e.prototype.validate=function(e,t){return n.validate(e,t)},e.prototype.defaultMessage=function(e){return n.defaultMessage?n.defaultMessage(e):""},e}(),s.getFromContainer(r.MetadataStorage).addConstraintMetadata(new i.ConstraintMetadata(t,e.name,e.async))}var u={type:o.ValidationTypes.CUSTOM_VALIDATION,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};s.getFromContainer(r.MetadataStorage).addValidationMetadata(new a.ValidationMetadata(u))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(53),i=n(96),a=n(135),o=n(52),s=n(64);t.ValidatorConstraint=function(e){return function(t){var n=!(!e||!e.async),r=e&&e.name?e.name:"";r||(r=t.name)||(r=r.replace(/\.?([A-Z]+)/g,function(e,t){return"_"+t.toLowerCase()}).replace(/^_/,""));var i=new a.ConstraintMetadata(t,r,n);o.getFromContainer(s.MetadataStorage).addConstraintMetadata(i)}},t.Validate=function(e,t,n){return function(a,u){var c={type:r.ValidationTypes.CUSTOM_VALIDATION,target:a.constructor,propertyName:u,constraintCls:e,constraints:t instanceof Array?t:void 0,validationOptions:t instanceof Array?n:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(c))}},t.ValidateNested=function(e){return function(t,n){var a={type:r.ValidationTypes.NESTED_VALIDATION,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Allow=function(e){return function(t,n){var a={type:r.ValidationTypes.WHITELIST,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.ValidateIf=function(e,t){return function(n,a){var u={type:r.ValidationTypes.CONDITIONAL_VALIDATION,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsDefined=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_DEFINED,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Equals=function(e,t){return function(n,a){var u={type:r.ValidationTypes.EQUALS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.NotEquals=function(e,t){return function(n,a){var u={type:r.ValidationTypes.NOT_EQUALS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsEmpty=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_EMPTY,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsNotEmpty=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_NOT_EMPTY,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsIn=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_IN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsNotIn=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_NOT_IN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsOptional=function(e){return function(t,n){var a={type:r.ValidationTypes.CONDITIONAL_VALIDATION,target:t.constructor,propertyName:n,constraints:[function(e,t){return null!==e[n]&&void 0!==e[n]}],validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsBoolean=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_BOOLEAN,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsDate=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_DATE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsNumber=function(e,t){return void 0===e&&(e={}),function(n,a){var u={type:r.ValidationTypes.IS_NUMBER,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsInt=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_INT,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsString=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_STRING,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsDateString=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_DATE_STRING,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsArray=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ARRAY,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsEnum=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_ENUM,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsDivisibleBy=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_DIVISIBLE_BY,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsPositive=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_POSITIVE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsNegative=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_NEGATIVE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Min=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MIN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.Max=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MAX,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.MinDate=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MIN_DATE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.MaxDate=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MAX_DATE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsBooleanString=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_BOOLEAN_STRING,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsNumberString=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_NUMBER_STRING,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Contains=function(e,t){return function(n,a){var u={type:r.ValidationTypes.CONTAINS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.NotContains=function(e,t){return function(n,a){var u={type:r.ValidationTypes.NOT_CONTAINS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsAlpha=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ALPHA,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsAlphanumeric=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ALPHANUMERIC,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsAscii=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ASCII,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsBase64=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_BASE64,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsByteLength=function(e,t,n){return function(a,u){var c={type:r.ValidationTypes.IS_BYTE_LENGTH,target:a.constructor,propertyName:u,constraints:[e,t],validationOptions:n};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(c))}},t.IsCreditCard=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_CREDIT_CARD,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsCurrency=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_CURRENCY,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsEmail=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_EMAIL,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsFQDN=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_FQDN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsFullWidth=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_FULL_WIDTH,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsHalfWidth=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_HALF_WIDTH,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsVariableWidth=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_VARIABLE_WIDTH,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsHexColor=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_HEX_COLOR,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsHexadecimal=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_HEXADECIMAL,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsIP=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_IP,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsISBN=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_ISBN,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsISIN=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ISIN,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsISO8601=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_ISO8601,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsJSON=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_JSON,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsLowercase=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_LOWERCASE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsMobilePhone=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_MOBILE_PHONE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsMongoId=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_MONGO_ID,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsMultibyte=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_MULTIBYTE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsSurrogatePair=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_SURROGATE_PAIR,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsUrl=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_URL,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsUUID=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_UUID,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.IsUppercase=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_UPPERCASE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.Length=function(e,t,n){return function(a,u){var c={type:r.ValidationTypes.LENGTH,target:a.constructor,propertyName:u,constraints:[e,t],validationOptions:n};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(c))}},t.MinLength=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MIN_LENGTH,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.MaxLength=function(e,t){return function(n,a){var u={type:r.ValidationTypes.MAX_LENGTH,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.Matches=function(e,t,n){var a;return t&&t instanceof Object&&!n?n=t:a=t,function(t,u){var c={type:r.ValidationTypes.MATCHES,target:t.constructor,propertyName:u,constraints:[e,a],validationOptions:n};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(c))}},t.IsMilitaryTime=function(e){return function(t,n){var a={type:r.ValidationTypes.IS_MILITARY_TIME,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.ArrayContains=function(e,t){return function(n,a){var u={type:r.ValidationTypes.ARRAY_CONTAINS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.ArrayNotContains=function(e,t){return function(n,a){var u={type:r.ValidationTypes.ARRAY_NOT_CONTAINS,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.ArrayNotEmpty=function(e){return function(t,n){var a={type:r.ValidationTypes.ARRAY_NOT_EMPTY,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.ArrayMinSize=function(e,t){return function(n,a){var u={type:r.ValidationTypes.ARRAY_MIN_SIZE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.ArrayMaxSize=function(e,t){return function(n,a){var u={type:r.ValidationTypes.ARRAY_MAX_SIZE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}},t.ArrayUnique=function(e){return function(t,n){var a={type:r.ValidationTypes.ARRAY_UNIQUE,target:t.constructor,propertyName:n,validationOptions:e};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(a))}},t.IsInstance=function(e,t){return function(n,a){var u={type:r.ValidationTypes.IS_INSTANCE,target:n.constructor,propertyName:a,constraints:[e],validationOptions:t};o.getFromContainer(s.MetadataStorage).addValidationMetadata(new i.ValidationMetadata(u))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,a.default)(t,o);var n=e.split("@"),r=n.pop(),i=[n.join("@"),r];if(i[1]=i[1].toLowerCase(),"gmail.com"===i[1]||"googlemail.com"===i[1]){if(t.gmail_remove_subaddress&&(i[0]=i[0].split("+")[0]),t.gmail_remove_dots&&(i[0]=i[0].replace(/\./g,"")),!i[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(i[0]=i[0].toLowerCase()),i[1]=t.gmail_convert_googlemaildotcom?"gmail.com":i[1]}else if(~s.indexOf(i[1])){if(t.icloud_remove_subaddress&&(i[0]=i[0].split("+")[0]),!i[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(i[0]=i[0].toLowerCase())}else if(~u.indexOf(i[1])){if(t.outlookdotcom_remove_subaddress&&(i[0]=i[0].split("+")[0]),!i[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(i[0]=i[0].toLowerCase())}else if(~c.indexOf(i[1])){if(t.yahoo_remove_subaddress){var l=i[0].split("-");i[0]=l.length>1?l.slice(0,-1).join("-"):l[0]}if(!i[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(i[0]=i[0].toLowerCase())}else t.all_lowercase&&(i[0]=i[0].toLowerCase());return i.join("@")};var r,i=n(51),a=(r=i)&&r.__esModule?r:{default:r};var o={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,icloud_lowercase:!0,icloud_remove_subaddress:!0},s=["icloud.com","me.com"],u=["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"],c=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[^"+t+"]+","g"),"")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=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(12)),i=a(n(136));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)((0,i.default)(e,t),t)};var r=a(n(137)),i=a(n(138));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locales=void 0,t.default=function(e,t){if((0,a.default)(e),t in c)return c[t].test(e);if("any"===t){for(var n in c){if(c.hasOwnProperty(n))if(c[n].test(e))return!0}return!1}throw new Error("Invalid locale '"+t+"'")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^\d{4}$/,s=/^\d{5}$/,u=/^\d{6}$/,c={AT:o,AU:o,BE:o,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:o,CZ:/^\d{3}\s?\d{2}$/,DE:s,DK:o,DZ:s,ES:s,FI:s,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,IL:s,IN:u,IS:/^\d{3}$/,IT:s,JP:/^\d{3}\-\d{4}$/,KE:s,LI:/^(948[5-9]|949[0-7])$/,MX:s,NL:/^\d{4}\s?[a-z]{2}$/i,NO:o,PL:/^\d{2}\-\d{3}$/,PT:/^\d{4}\-\d{3}?$/,RO:u,RU:u,SA:s,SE:/^\d{3}\s?\d{2}$/,TW:/^\d{3}(\d{2})?$/,US:/^\d{5}(-\d{4})?$/,ZA:o,ZM:s};t.locales=Object.keys(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),!e.includes(","))return!1;var t=e.split(",");return o.test(t[0])&&s.test(t[1])};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,s=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||s.test(e)||u.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,s=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,u=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^\s*data:([a-z]+\/[a-z0-9\-\+]+(;[a-z\-]+=[a-z0-9\-]+)?)?(;base64)?,[a-z0-9!\$&',\(\)\*\+,;=\-\._~:@\/\?%\s]*\s*$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.length;if(!t||t%4!=0||o.test(e))return!1;var n=e.indexOf("=");return-1===n||n===t-1||n===t-2&&"="===e[t-1]};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/[^A-Z0-9+\/=]/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.includes(e.toUpperCase())};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),function(e){var t="\\d{"+e.digits_after_decimal[0]+"}";e.digits_after_decimal.forEach(function(e,n){0!==n&&(t=t+"|\\d{"+e+"}")});var n="(\\"+e.symbol.replace(/\./g,"\\.")+")"+(e.require_symbol?"":"?"),r="[1-9]\\d{0,2}(\\"+e.thousands_separator+"\\d{3})*",i="("+["0","[1-9]\\d*",r].join("|")+")?",a="(\\"+e.decimal_separator+"("+t+"))"+(e.require_decimal?"":"?"),o=i+(e.allow_decimal||e.require_decimal?a:"");return e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?o+="-?":e.negative_sign_before_digits&&(o="-?"+o)),e.allow_negative_sign_placeholder?o="( (?!\\-))?"+o:e.allow_space_after_symbol?o=" ?"+o:e.allow_space_after_digits&&(o+="( (?!$))?"),e.symbol_after_digits?o+=n:o=n+o,e.allow_negatives&&(e.parens_for_negatives?o="(\\("+o+"\\)|"+o+")":e.negative_sign_before_digits||e.negative_sign_after_digits||(o="-?"+o)),new RegExp("^(?!-? )(?=.*\\d)"+o+"$")}(t=(0,r.default)(t,o)).test(e)};var r=a(n(51)),i=a(n(12));function a(e){return e&&e.__esModule?e:{default:e}}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in o)return o[t].test(e);if("any"===t){for(var n in o)if(o.hasOwnProperty(n)){var r=o[n];if(r.test(e))return!0}return!1}throw new Error("Invalid locale '"+t+"'")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o={"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-EG":/^((\+?20)|0)?1[012]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-HK":/^(\+?852\-?)?[456789]\d{3}\-?\d{4}$/,"en-IN":/^(\+?91|0)?[789]\d{9}$/,"en-KE":/^(\+?254|0)?[7]\d{8}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)2\d{7,9}$/,"en-PK":/^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[89]\d{7}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"es-ES":/^(\+?34)?(6\d{1}|7[1234])\d{7}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[0248]|77)[1-9]\d{6}/,"hu-HU":/^(\+?36)(20|30|70)\d{7}$/,"id-ID":/^(\+?62|0[1-9])[\s|\d]+$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"ja-JP":/^(\+?81|0)[789]0[ \-]?[1-9]\d{2}[ \-]?\d{5}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"ms-MY":/^(\+?6?01){1}(([145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"nl-BE":/^(\+?32|0)4?\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"vi-VN":/^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,"zh-CN":/^(\+?0?86\-?)?1[345789]\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/};o["en-CA"]=o["en-US"],o["fr-BE"]=o["nl-BE"],o["zh-HK"]=o["en-HK"],e.exports=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,a.default)(e);var n=o;if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;var r=e.replace("-",""),i=8,s=0,u=!0,c=!1,l=void 0;try{for(var d,f=r[Symbol.iterator]();!(u=(d=f.next()).done);u=!0){var p=d.value,h="X"===p.toUpperCase()?10:+p;s+=h*i,--i}}catch(e){c=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(c)throw l}}return s%11==0};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o="^\\d{4}-?\\d{3}[\\dX]$";e.exports=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]:"";(0,a.default)(t);n=String(n);if(!n)return e(t,10)||e(t,13);var r=t.replace(/[\s-]+/g,"");var i=0;var c=void 0;if("10"===n){if(!o.test(r))return!1;for(c=0;c<9;c++)i+=(c+1)*r.charAt(c);if("X"===r.charAt(9)?i+=100:i+=10*r.charAt(9),i%11==0)return!!r}else if("13"===n){if(!s.test(r))return!1;for(c=0;c<12;c++)i+=u[c%2]*r.charAt(c);if(r.charAt(12)-(10-i%10)%10==0)return!!r}return!1};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^(?:[0-9]{9}X|[0-9]{10})$/,s=/^(?:[0-9]{13})$/,u=[1,3];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),!o.test(e))return!1;for(var t=e.replace(/[A-Z]/g,function(e){return parseInt(e,36)}),n=0,r=void 0,i=void 0,s=!0,u=t.length-2;u>=0;u--)r=t.substring(u,u+1),i=parseInt(r,10),n+=s&&(i*=2)>=10?i+1:i,s=!s;return parseInt(e.substr(e.length-1),10)===(1e4-n)%10};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.replace(/[- ]+/g,"");if(!o.test(t))return!1;for(var n=0,r=void 0,i=void 0,s=void 0,u=t.length-1;u>=0;u--)r=t.substring(u,u+1),i=parseInt(r,10),n+=s&&(i*=2)>=10?i%10+1:i,s=!s;return!(n%10!=0||!t)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^(?: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}|62[0-9]{14})$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=function(e,t){(0,i.default)(e);var n=void 0;if("[object Array]"===Object.prototype.toString.call(t)){var o=[];for(n in t)({}).hasOwnProperty.call(t,n)&&(o[n]=(0,a.default)(t[n]));return o.indexOf(e)>=0}if("object"===(void 0===t?"undefined":r(t)))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var i=o(n(12)),a=o(n(94));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=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&&a1&&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(12)),i=a(n(95));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=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(12)),i=a(n(139));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=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,a.default)(e);var n=o[t];return n&&n.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o={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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=function(e,t){(0,o.default)(e);var n=void 0,i=void 0;"object"===(void 0===t?"undefined":r(t))?(n=t.min||0,i=t.max):(n=arguments[1],i=arguments[2]);var a=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],s=e.length-a.length;return s>=n&&(void 0===i||s<=i)};var i,a=n(12),o=(i=a)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),0===e.length};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=function(e){(0,o.default)(e);try{var t=JSON.parse(e);return!!t&&"object"===(void 0===t?"undefined":r(t))}catch(e){}return!1};var i,a=n(12),o=(i=a)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),new RegExp("^[a-f0-9]{"+o[t]+"}$").test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o={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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[a-f0-9]{32}$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;e.exports=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(12)),i=a(n(145));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=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=(0,r.default)(t,s)).locale in a.decimal)return!u.includes(e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\"+a.decimal[e.locale]+"[0-9]{"+e.decimal_digits+"})"+(e.force_decimal?"":"?")+"$")}(t).test(e);throw new Error("Invalid locale '"+t.locale+"'")};var r=o(n(51)),i=o(n(12)),a=n(77);function o(e){return e&&e.__esModule?e:{default:e}}var s={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\"+(t.locale?o.decimal[t.locale]:".")+"[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$");if(""===e||"."===e||"-"===e||"+"===e)return!1;return n.test(e)&&(!t.hasOwnProperty("min")||e>=t.min)&&(!t.hasOwnProperty("max")||e<=t.max)&&(!t.hasOwnProperty("lt")||et.gt)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r},o=n(77);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/[^\x00-\x7F]/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.fullWidth.test(e)&&s.halfWidth.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r},o=n(141),s=n(140);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[\x00-\x7F]+$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toUpperCase()};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toLowerCase()};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e,{min:0,max:65535})};var r,i=n(142),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^[-+]?[0-9]+$/;e.exports=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,a.default)(e),t in o.alphanumeric)return o.alphanumeric[t].test(e);throw new Error("Invalid locale '"+t+"'")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r},o=n(77);e.exports=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,a.default)(e),t in o.alpha)return o.alpha[t].test(e);throw new Error("Invalid locale '"+t+"'")};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r},o=n(77);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),["true","false","1","0"].indexOf(e)>=0};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};var o=/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;e.exports=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;t=(0,o.default)(t,u);var n=void 0,s=void 0,d=void 0,f=void 0,p=void 0,h=void 0,m=void 0,g=void 0;if(m=e.split("#"),e=m.shift(),m=e.split("?"),e=m.shift(),(m=e.split("://")).length>1){if(n=m.shift(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;t.allow_protocol_relative_urls&&"//"===e.substr(0,2)&&(m[0]=e.substr(2))}if(""===(e=m.join("://")))return!1;if(m=e.split("/"),""===(e=m.shift())&&!t.require_host)return!0;if((m=e.split("@")).length>1&&(s=m.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;f=m.join("@"),h=null,g=null;var y=f.match(c);y?(d="",g=y[1],h=y[2]||null):(m=f.split(":"),d=m.shift(),m.length&&(h=m.join(":")));if(null!==h&&(p=parseInt(h,10),!/^[0-9]+$/.test(h)||p<=0||p>65535))return!1;if(!((0,a.default)(d)||(0,i.default)(d,t)||g&&(0,a.default)(g,6)))return!1;if(d=d||g,t.host_whitelist&&!l(d,t.host_whitelist))return!1;if(t.host_blacklist&&l(d,t.host_blacklist))return!1;return!0};var r=s(n(12)),i=s(n(93)),a=s(n(143)),o=s(n(51));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},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(e,t){for(var n=0;n$/i,l=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,d=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,p=/^([\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;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,a.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return t.test(e)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=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(12)),i=a(n(94));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e===t};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t)return"1"===e||"true"===e;return"0"!==e&&"false"!==e&&""!==e};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),parseInt(e,t||10)};var r,i=n(12),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=ge(n(95)),i=ge(n(145)),a=ge(n(295)),o=ge(n(294)),s=ge(n(293)),u=ge(n(292)),c=ge(n(291)),l=ge(n(290)),d=ge(n(289)),f=ge(n(288)),p=ge(n(143)),h=ge(n(93)),m=ge(n(287)),g=ge(n(286)),y=ge(n(285)),v=ge(n(284)),b=ge(n(283)),C=ge(n(282)),S=ge(n(281)),A=ge(n(280)),E=ge(n(141)),N=ge(n(140)),I=ge(n(279)),_=ge(n(278)),D=ge(n(277)),x=ge(n(142)),F=ge(n(276)),T=ge(n(275)),M=ge(n(139)),w=ge(n(274)),B=ge(n(273)),k=ge(n(272)),R=ge(n(271)),O=ge(n(270)),P=ge(n(269)),j=ge(n(268)),L=ge(n(267)),G=ge(n(144)),V=ge(n(266)),U=ge(n(265)),z=ge(n(264)),H=ge(n(263)),W=ge(n(262)),J=ge(n(261)),K=ge(n(260)),q=ge(n(259)),$=ge(n(258)),Y=ge(n(257)),Z=ge(n(256)),X=ge(n(255)),Q=ge(n(254)),ee=ge(n(253)),te=ge(n(252)),ne=ge(n(251)),re=ge(n(250)),ie=ge(n(249)),ae=ge(n(138)),oe=ge(n(137)),se=ge(n(248)),ue=ge(n(247)),ce=ge(n(246)),le=ge(n(245)),de=ge(n(244)),fe=ge(n(136)),pe=ge(n(243)),he=ge(n(242)),me=ge(n(94));function ge(e){return e&&e.__esModule?e:{default:e}}var ye={version:"9.2.0",toDate:r.default,toFloat:i.default,toInt:a.default,toBoolean:o.default,equals:s.default,contains:u.default,matches:c.default,isEmail:l.default,isURL:d.default,isMACAddress:f.default,isIP:p.default,isFQDN:h.default,isBoolean:m.default,isAlpha:g.default,isAlphanumeric:y.default,isNumeric:v.default,isPort:b.default,isLowercase:C.default,isUppercase:S.default,isAscii:A.default,isFullWidth:E.default,isHalfWidth:N.default,isVariableWidth:I.default,isMultibyte:_.default,isSurrogatePair:D.default,isInt:x.default,isFloat:F.default,isDecimal:T.default,isHexadecimal:M.default,isDivisibleBy:w.default,isHexColor:B.default,isISRC:k.default,isMD5:R.default,isHash:O.default,isJSON:P.default,isEmpty:j.default,isLength:L.default,isByteLength:G.default,isUUID:V.default,isMongoId:U.default,isAfter:z.default,isBefore:H.default,isIn:W.default,isCreditCard:J.default,isISIN:K.default,isISBN:q.default,isISSN:$.default,isMobilePhone:Y.default,isPostalCode:ie.default,isCurrency:Z.default,isISO8601:X.default,isISO31661Alpha2:Q.default,isBase64:ee.default,isDataURI:te.default,isMimeType:ne.default,isLatLong:re.default,ltrim:ae.default,rtrim:oe.default,trim:se.default,escape:ue.default,unescape:ce.default,stripLow:le.default,whitelist:de.default,blacklist:fe.default,isWhitelisted:pe.default,normalizeEmail:he.default,toString:me.default};t.default=ye,e.exports=t.default},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&&(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});var r=n(146),i=n(64),a=n(52),o=n(53),s=n(297),u=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,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 c=new r.ValidationError;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(c.target=e),c.value=void 0,c.property=void 0,c.children=[],c.constraints={unknownValue:"an unknown value was passed to the validate function"},void n.push(c)}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}),c=s.filter(function(e){return e.type===o.ValidationTypes.CUSTOM_VALIDATION}),l=s.filter(function(e){return e.type===o.ValidationTypes.NESTED_VALIDATION}),d=s.filter(function(e){return e.type===o.ValidationTypes.CONDITIONAL_VALIDATION}),f=i.generateValidationError(e,r,t);n.push(f),i.conditionalValidations(e,r,d)&&(i.defaultValidations(e,r,a,f.constraints),(null!==r&&void 0!==r||!i.validatorOptions||!0!==i.validatorOptions.skipMissingProperties)&&(i.defaultValidations(e,r,s,f.constraints),i.customValidations(e,r,c,f.constraints),i.nestedValidations(r,l,f.children)))})},e.prototype.whitelist=function(e,t,n){var r=[];Object.keys(e).forEach(function(e){t[e]&&0!==t[e].length||r.push(e)}),r.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?r.forEach(function(t){var r;n.push({target:e,property:t,value:e[t],children:void 0,constraints:(r={},r[o.ValidationTypes.WHITELIST]="property "+t+" should not exist",r)})}):r.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.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.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},s=i.instance.validate(t,a);if(s instanceof Promise){var u=s.then(function(a){if(!a){var s=o.createValidationError(e,t,n,i),u=s[0],c=s[1];r[u]=c}});o.awaitingPromises.push(u)}else if(!s){var c=o.createValidationError(e,t,n,i),l=c[0],d=c[1];r[l]=d}}})})},e.prototype.nestedValidations=function(e,t,n){var i=this;void 0!==e&&t.forEach(function(t){if(t.type===o.ValidationTypes.NESTED_VALIDATION){var a,s="string"==typeof t.target?t.target:void 0;if(e instanceof Array)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 c=i.createValidationError(t.target,e,t),l=c[0],d=c[1];u.constraints=((a={})[l]=d,a),n.push(u)}}})},e.prototype.createValidationError=function(e,t,n,r){var i=e.constructor?e.constructor.name:void 0,a=r&&r.name?r.name:n.type,u={targetName:i,property:n.propertyName,object:e,value:t,constraints:n.constraints},c=n.message;return n.message||this.validatorOptions&&(!this.validatorOptions||this.validatorOptions.dismissDefaultMessages)||(r&&r.instance.defaultMessage instanceof Function&&(c=r.instance.defaultMessage(u)),c||(c=o.ValidationTypes.getMessage(a,n.each))),[a,s.ValidationUtils.replaceMessageSpecialTokens(c,u)]},e}();t.ValidationExecutor=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(96),i=n(53),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";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var i=n(64),a=n(147),o=n(52);r(n(52)),r(n(241)),r(n(146)),r(n(53)),r(n(147)),r(n(240)),r(n(64)),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";var r=n(0),i=r(n(18)),a=r(n(2)),o=r(n(8)),s=r(n(7)),u=r(n(6)),c=r(n(5)),l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,c.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,s.default)(t,n,o),o},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof o.default)return(0,o.default)(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p,h=n(1),m=n(4),g=n(300),y=n(82),v=n(43),b=n(81),C=n(80),S=n(134),A=n(239),E=p=function e(t,n){(0,a.default)(this,e),(0,i.default)(this,S.DEFAULT_PRESET,t);var r=g.validateSync(this,p.validatorOptions);if(r.length)throw new ReferenceError("Validation failed. errors:\n".concat(A.ValidationErrorsFormatter.format(r)));(0,i.default)(this,n.normalize(this))};E.validatorOptions={validationError:{target:!1}},l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"compact",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"controlFlowFlattening",void 0),l([g.IsNumber(),g.Min(0),g.Max(1),d("design:type",Number)],E.prototype,"controlFlowFlatteningThreshold",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"deadCodeInjection",void 0),l([g.IsNumber(),d("design:type",Number)],E.prototype,"deadCodeInjectionThreshold",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"debugProtection",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"debugProtectionInterval",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"disableConsoleOutput",void 0),l([g.IsArray(),g.ArrayUnique(),g.IsString({each:!0}),d("design:type",Array)],E.prototype,"domainLock",void 0),l([g.IsIn([y.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,y.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),d("design:type",String)],E.prototype,"identifierNamesGenerator",void 0),l([g.IsString(),d("design:type",String)],E.prototype,"identifiersPrefix",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"log",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"renameGlobals",void 0),l([g.IsArray(),g.ArrayUnique(),g.IsString({each:!0}),d("design:type",Array)],E.prototype,"reservedNames",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"rotateStringArray",void 0),l([g.IsNumber(),d("design:type",Number)],E.prototype,"seed",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"selfDefending",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"sourceMap",void 0),l([g.IsString(),g.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),g.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),d("design:type",String)],E.prototype,"sourceMapBaseUrl",void 0),l([g.IsString(),d("design:type",String)],E.prototype,"sourceMapFileName",void 0),l([g.IsIn([b.SourceMapMode.Inline,b.SourceMapMode.Separate]),d("design:type",String)],E.prototype,"sourceMapMode",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"stringArray",void 0),l([g.IsIn([!0,!1,C.StringArrayEncoding.Base64,C.StringArrayEncoding.Rc4]),d("design:type",Object)],E.prototype,"stringArrayEncoding",void 0),l([g.IsNumber(),g.Min(0),g.Max(1),d("design:type",Number)],E.prototype,"stringArrayThreshold",void 0),l([g.IsIn([v.ObfuscationTarget.Browser,v.ObfuscationTarget.BrowserNoEval,v.ObfuscationTarget.Node]),d("design:type",String)],E.prototype,"target",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"transformObjectKeys",void 0),l([g.IsBoolean(),d("design:type",Boolean)],E.prototype,"unicodeEscapeSequence",void 0),E=p=l([h.injectable(),f(0,h.inject(m.ServiceIdentifiers.TInputOptions)),f(1,h.inject(m.ServiceIdentifiers.IOptionsNormalizer)),d("design:paramtypes",[Object,Object])],E),t.Options=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),a=n(301),o=n(238);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=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v=n(1),b=n(4),C=y(n(24)),S=n(39),A=n(46),E=n(17),N=n(19),I=n(13),_=n(28),D=n(14),x=function(e){function t(e,n,r){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).replaceableIdentifiers=new i.default,o.identifierObfuscatingReplacer=e(S.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case E.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&I.NodeGuards.isVariableDeclarationNode(e)&&!I.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=D.NodeUtils.getBlockScopesOfNode(e)[0],r=n.type===A.NodeType.Program;if(!this.options.renameGlobals&&r)return e;var i=this.nodeIdentifier++,a="var"===e.kind?n:t;return this.storeVariableNames(e,r,i),this.replaceableIdentifiers.has(a)?this.replaceScopeCachedIdentifiers(e,a,i):this.replaceScopeIdentifiers(a,i),e}},{key:"storeVariableNames",value:function(e,t,n){var r=this;this.traverseDeclarationIdentifiers(e,function(e){t?r.identifierObfuscatingReplacer.storeGlobalName(e.name,n):r.identifierObfuscatingReplacer.storeLocalName(e.name,n)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,n){var r=this,i=this.replaceableIdentifiers.get(t);if(i){var a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var t=i.get(e);if(t)for(var a=t.length,o=0;o=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(80),S=n(78),A=n(28),E=n(20),N=n(54),I=y=function(e){function t(e,n,r,o,s){var l;return(0,a.default)(this,t),(l=(0,u.default)(this,(0,c.default)(t).call(this,s))).nodesCache=new i.default,l.stringLiteralHexadecimalIndexCache=new i.default,l.stringArrayStorage=e,l.escapeSequenceEncoder=n,l.randomGenerator=r,l.cryptUtils=o,l.rc4Keys=l.randomGenerator.getRandomGenerator().n(function(){return l.randomGenerator.getRandomGenerator().string({length:y.rc4KeyLength})},y.rc4KeysCount),l}return(0,s.default)(t,[{key:"replace",value:function(e){var t=this.canUseStringArray(e),n="".concat(e,"-").concat(String(t));if(this.nodesCache.has(n)&&this.options.stringArrayEncoding!==C.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>=y.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=N.Utils.decToHex(t),r="".concat(N.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 C.StringArrayEncoding.Rc4:n=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,n));break;case C.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:n}}},{key:"replaceWithLiteralNode",value:function(e){return E.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),n=t.encodedValue,r=t.key,i=this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),o=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(i,a),u=s.fromCache,c=s.index;u||this.stringArrayStorage.set(a,i);var l=[y.getHexadecimalLiteralNode(c)];r&&l.push(y.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence)));var d=E.NodeFactory.identifierNode(o);return A.NodeMetadata.set(d,{renamedIdentifier:!0}),E.NodeFactory.callExpressionNode(d,l)}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=E.NodeFactory.literalNode(e);return A.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=E.NodeFactory.literalNode(e);return A.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),(0,o.default)(t,e),t}(S.AbstractObfuscatingReplacer);I.minimumLengthForStringArray=3,I.rc4KeyLength=4,I.rc4KeysCount=50,I=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.TStringArrayStorage)),g(1,v.inject(b.ServiceIdentifiers.IEscapeSequenceEncoder)),g(2,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(3,v.inject(b.ServiceIdentifiers.ICryptUtils)),g(4,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object,Object,Object,Object,Object])],I),t.StringLiteralObfuscatingReplacer=I},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(78),C=n(20),S=n(54),A=function(e){function t(e){var n;return(0,a.default)(this,t),(n=(0,u.default)(this,(0,c.default)(t).call(this,e))).numberLiteralCache=new i.default,n}return(0,s.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=S.Utils.isCeilNumber(e)?"".concat(S.Utils.hexadecimalPrefix).concat(S.Utils.decToHex(e)):String(e),this.numberLiteralCache.set(e,t)),C.NodeFactory.literalNode(e,t)}}]),(0,o.default)(t,e),t}(b.AbstractObfuscatingReplacer);A=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object])],A),t.NumberLiteralObfuscatingReplacer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(148),b=n(17),C=n(19),S=n(13),A=n(28),E=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).literalObfuscatingReplacerFactory=e,a}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isLiteralNode(e)&&!A.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;switch((0,d.default)(e.value)){case"boolean":return this.literalObfuscatingReplacerFactory(v.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);case"number":return this.literalObfuscatingReplacerFactory(v.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);case"string":return this.literalObfuscatingReplacerFactory(v.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);default:return e}}},{key:"isProhibitedNode",value:function(e,t){return!(!S.NodeGuards.isPropertyNode(t)||t.key!==e)||!!S.NodeGuards.isImportDeclarationNode(t)}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);E=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IObfuscatingReplacer)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],E),t.LiteralTransformer=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=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 y=n(1),v=n(4),b=g(n(24)),C=n(39),S=n(17),A=n(19),E=n(13),N=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(C.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&E.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++;return this.storeLabeledStatementName(e,n),this.replaceLabeledStatementName(e,n),e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var n=this;b.replace(e,{enter:function(e,r){if(r&&E.NodeGuards.isLabelIdentifierNode(e,r)){var i=n.identifierObfuscatingReplacer.replace(e.name,t);e.name=i.name}}})}}]),(0,a.default)(t,e),t}(A.AbstractNodeTransformer);N=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],N),t.LabeledStatementTransformer=N},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v,b=n(1),C=n(4),S=y(n(24)),A=n(39),E=n(17),N=n(19),I=n(13),_=n(28),D=n(14),x=v=function(e){function t(e,n,r){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).replaceableIdentifiers=new i.default,o.identifierObfuscatingReplacer=e(A.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case E.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&I.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++,r=D.NodeUtils.getBlockScopesOfNode(e)[0];return this.storeImportSpecifierNames(e,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r,n):this.replaceScopeIdentifiers(r,n),e}},{key:"storeImportSpecifierNames",value:function(e,t){var n=this;e.specifiers.forEach(function(e){v.isProhibitedImportSpecifierNode(e)||n.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var n=this;this.replaceableIdentifiers.get(e).forEach(function(e){var r=n.identifierObfuscatingReplacer.replace(e.name,t);e.name=r.name,_.NodeMetadata.set(e,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e,t){var n=this,r=[];S.replace(e,{enter:function(e,i){if(i&&I.NodeGuards.isReplaceableIdentifierNode(e,i)&&!_.NodeMetadata.isRenamedIdentifier(e)){var a=n.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a?(e.name=a,_.NodeMetadata.set(e,{renamedIdentifier:!0})):r.push(e)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return I.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),(0,o.default)(t,e),t}(N.AbstractNodeTransformer);x=v=h([b.injectable(),g(0,b.inject(C.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),g(1,b.inject(C.ServiceIdentifiers.IRandomGenerator)),g(2,b.inject(C.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],x),t.ImportDeclarationTransformer=x},function(e,t,n){"use strict";var r=n(0),i=r(n(57)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v=n(1),b=n(4),C=y(n(24)),S=n(39),A=n(17),E=n(19),N=n(13),I=n(28),_=function(e){function t(e,n,r){var i;return(0,a.default)(this,t),(i=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(S.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case A.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&(N.NodeGuards.isFunctionDeclarationNode(e)||N.NodeGuards.isFunctionExpressionNode(e)||N.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++;return this.storeFunctionParams(e,n),this.replaceFunctionParams(e,n),e}},{key:"storeFunctionParams",value:function(e,t){var n=this;e.params.forEach(function(e){C.traverse(e,{enter:function(r){return N.NodeGuards.isPropertyNode(e)?C.VisitorOption.Skip:N.NodeGuards.isAssignmentPatternNode(r)&&N.NodeGuards.isIdentifierNode(r.left)?(n.identifierObfuscatingReplacer.storeLocalName(r.left.name,t),C.VisitorOption.Skip):void(N.NodeGuards.isIdentifierNode(r)&&n.identifierObfuscatingReplacer.storeLocalName(r.name,t))}})})}},{key:"addIdentifiersToIgnoredIdentifierNamesSet",value:function(e,t){e.forEach(function(e){e.key&&N.NodeGuards.isIdentifierNode(e.key)&&t.add(e.key.name)})}},{key:"replaceFunctionParams",value:function(e,t){var n=this,r=new i.default,a={enter:function(e,i){if(N.NodeGuards.isObjectPatternNode(e)&&n.addIdentifiersToIgnoredIdentifierNamesSet(e.properties,r),i&&N.NodeGuards.isReplaceableIdentifierNode(e,i)&&!r.has(e.name)){var a=n.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a&&(e.name=a,I.NodeMetadata.set(e,{renamedIdentifier:!0}))}}};e.params.forEach(function(e){return C.replace(e,a)}),C.replace(e.body,a)}}]),(0,o.default)(t,e),t}(E.AbstractNodeTransformer);_=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],_),t.FunctionTransformer=_},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v=n(1),b=n(4),C=y(n(24)),S=n(39),A=n(46),E=n(17),N=n(19),I=n(13),_=n(28),D=n(14),x=function(e){function t(e,n,r){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).replaceableIdentifiers=new i.default,o.identifierObfuscatingReplacer=e(S.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case E.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&I.NodeGuards.isFunctionDeclarationNode(e)&&!I.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++,r=D.NodeUtils.getBlockScopesOfNode(e)[0],i=r.type===A.NodeType.Program;return!this.options.renameGlobals&&i?e:(this.storeFunctionName(e,i,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r,n):this.replaceScopeIdentifiers(r,n),e)}},{key:"storeFunctionName",value:function(e,t,n){t?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,n):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,n)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,n){var r=this.replaceableIdentifiers.get(t);if(r){var i=r.get(e.id.name);if(i)for(var a=i.length,o=0;o=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v=n(1),b=n(4),C=y(n(24)),S=n(39),A=n(46),E=n(17),N=n(19),I=n(13),_=n(28),D=n(14),x=function(e){function t(e,n,r){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r))).replaceableIdentifiers=new i.default,o.identifierObfuscatingReplacer=e(S.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case E.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&I.NodeGuards.isClassDeclarationNode(e)&&!I.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++,r=D.NodeUtils.getBlockScopesOfNode(e)[0],i=r.type===A.NodeType.Program;return!this.options.renameGlobals&&i?e:(this.storeClassName(e,i,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r,n):this.replaceScopeIdentifiers(r,n),e)}},{key:"storeClassName",value:function(e,t,n){t?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,n):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,n)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var n=this;this.replaceableIdentifiers.get(e).forEach(function(e){var r=n.identifierObfuscatingReplacer.replace(e.name,t);e.name=r.name,_.NodeMetadata.set(e,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e,t){var n=this,r=[];C.replace(e,{enter:function(e,i){if(i&&I.NodeGuards.isReplaceableIdentifierNode(e,i)&&!_.NodeMetadata.isRenamedIdentifier(e)){var a=n.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a?(e.name=a,_.NodeMetadata.set(e,{renamedIdentifier:!0})):r.push(e)}}}),this.replaceableIdentifiers.set(e,r)}}]),(0,o.default)(t,e),t}(N.AbstractNodeTransformer);x=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],x),t.ClassDeclarationTransformer=x},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=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 y=n(1),v=n(4),b=g(n(24)),C=n(39),S=n(17),A=n(19),E=n(13),N=n(28),I=function(e){function t(e,n,r){var a;return(0,i.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(C.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&E.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this.nodeIdentifier++;return this.storeCatchClauseParam(e,n),this.replaceCatchClauseParam(e,n),e}},{key:"storeCatchClauseParam",value:function(e,t){E.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var n=this;b.replace(e,{enter:function(e,r){if(r&&E.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}))}}})}}]),(0,a.default)(t,e),t}(A.AbstractNodeTransformer);I=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],I),t.CatchClauseTransformer=I},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(78),C=n(20),S=g=function(e){function t(e){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e))}return(0,o.default)(t,[{key:"replace",value:function(e){return e?g.getTrueUnaryExpressionNode():g.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return C.NodeFactory.unaryExpressionNode("!",g.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return C.NodeFactory.unaryExpressionNode("!",C.NodeFactory.arrayExpressionNode())}}]),(0,a.default)(t,e),t}(b.AbstractObfuscatingReplacer);S=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object])],S),t.BooleanLiteralObfuscatingReplacer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(78),C=n(20),S=function(e){function t(e,n){var r;return(0,a.default)(this,t),(r=(0,u.default)(this,(0,c.default)(t).call(this,n))).namesMap=new i.default,r.identifierNamesGenerator=e(n),r}return(0,s.default)(t,[{key:"replace",value:function(e,t){var n="".concat(e,"-").concat(String(t));return this.namesMap.has(n)&&(e=this.namesMap.get(n)),C.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var n=this.identifierNamesGenerator.generateWithPrefix();this.namesMap.set("".concat(e,"-").concat(String(t)),n)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var n=this.identifierNamesGenerator.generate();this.namesMap.set("".concat(e,"-").concat(String(t)),n)}}},{key:"isReservedName",value:function(e){return this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),(0,o.default)(t,e),t}(b.AbstractObfuscatingReplacer);S=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object])],S),t.BaseIdentifierObfuscatingReplacer=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),a=n(4),o=n(39),s=n(148),u=n(58),c=n(314),l=n(313),d=n(312),f=n(311),p=n(310),h=n(309),m=n(308),g=n(307),y=n(306),v=n(305),b=n(304),C=n(303);t.obfuscatingTransformersModule=new i.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CatchClauseTransformer).whenTargetNamed(u.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(u.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(h.FunctionTransformer).whenTargetNamed(u.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ImportDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.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(v.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(b.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(c.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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),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";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(79)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(149),S=y=function(e){function t(e,n){var r;return(0,i.default)(this,t),(r=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).previousMangledName=y.initMangledNameCharacter,r}return(0,o.default)(t,[{key:"generate",value:function(){var e=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=e,e}},{key:"generateWithPrefix",value:function(){var e=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",t=this.generate();return"".concat(e).concat(t)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,u.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!y.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=y.nameSequence,n=e.length,r=function(e){return"0".repeat(e)},i=n-1;do{var a=e.charAt(i),o=t.indexOf(a);if(o!==t.length-1)return e.substring(0,i)+t[o+1]+r(n-(i+1));--i}while(i>=0);return"a".concat(r(n))},n=t(e);return this.isValidIdentifierName(n)||(n=this.generateNewMangledName(n)),n}}]),(0,a.default)(t,e),t}(C.AbstractIdentifierNamesGenerator);S.initMangledNameCharacter="9",S.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),S.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],S=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(1,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object,Object])],S),t.MangledIdentifierNamesGenerator=S},function(e,t,n){"use strict";var r=n(0),i=r(n(57)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y,v=n(1),b=n(4),C=n(149),S=n(54),A=y=function(e){function t(e,n){var r;return(0,a.default)(this,t),(r=(0,u.default)(this,(0,c.default)(t).call(this,e,n))).randomVariableNameSet=new i.default,r}return(0,s.default)(t,[{key:"generate",value:function(){var e=this.randomGenerator.getRandomInteger(1e4,99999999),t=S.Utils.decToHex(e).substr(0,y.baseIdentifierNameLength),n="_".concat(S.Utils.hexadecimalPrefix).concat(t);return this.randomVariableNameSet.has(n)?this.generate():(this.randomVariableNameSet.add(n),n)}},{key:"generateWithPrefix",value:function(){var e=this.generate();return"".concat(this.options.identifiersPrefix).concat(e).replace("__","_")}}]),(0,o.default)(t,e),t}(C.AbstractIdentifierNamesGenerator);A.baseIdentifierNameLength=6,A=y=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(1,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Object,Object])],A),t.HexadecimalIdentifierNamesGenerator=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),a=n(82),o=n(318),s=n(317);t.generatorsModule=new r.ContainerModule(function(e){e(i.ServiceIdentifiers.IIdentifierNamesGenerator).to(o.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(i.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.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.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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.finalizingTransformersModule=new r.ContainerModule(function(e){})},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[C.NodeFactory.expressionStatementNode(C.NodeFactory.literalNode(this.literalValue))]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],S.prototype,"literalValue",void 0),S=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],S),t.StringLiteralNode=S},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=C.NodeFactory.expressionStatementNode(C.NodeFactory.memberExpressionNode(C.NodeFactory.identifierNode(this.controlFlowStorageName),C.NodeFactory.identifierNode(this.controlFlowStorageKey)));return S.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],A.prototype,"controlFlowStorageKey",void 0),p([v.initializable(),h("design:type",String)],A.prototype,"controlFlowStorageName",void 0),A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.StringLiteralControlFlowStorageCallNode=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.False="![]",e.True="!![]",e.a='(false+"")[1]',e.b='([]["entries"]()+"")[2]',e.c='([]["fill"]+"")[3]',e.d='(undefined+"")[2]',e.e='(true+"")[3]',e.f='(false+"")[0]',e.g="(false+[0]+String)[20]",e.h='(+(101))["toString"](21)[1]',e.i="([false]+undefined)[10]",e.j='([]["entries"]()+"")[3]',e.k='(+(20))["toString"](21)',e.l='(false+"")[2]',e.m='(Number+"")[11]',e.n='(undefined+"")[1]',e.o='(true+[]["fill"])[10]',e.p='(+(211))["toString"](31)[1]',e.q='(+(212))["toString"](31)[1]',e.r='(true+"")[1]',e.s='(false+"")[3]',e.t='(true+"")[0]',e.u='(undefined+"")[0]',e.v='(+(31))["toString"](32)',e.w='(+(32))["toString"](33)',e.x='(+(101))["toString"](34)[1]',e.y="(NaN+[Infinity])[10]",e.z='(+(35))["toString"](36)',e.A="(+[]+Array)[10]",e.B="(+[]+Boolean)[10]",e.C='Function("return escape")()(("")["italics"]())[2]',e.D='Function("return escape")()([]["fill"])["slice"]("-1")',e.E='(RegExp+"")[12]',e.F="(+[]+Function)[10]",e.G='(false+Function("return Date")()())[30]',e.H="'H'",e.I='(Infinity+"")[0]',e.J="'J'",e.K="'K'",e.L="'L'",e.M='(true+Function("return Date")()())[30]',e.N='(NaN+"")[0]',e.O='(NaN+Function("return{}")())[11]',e.P="'P'",e.Q="'Q'",e.R="(+[]+RegExp)[10]",e.S="(+[]+String)[10]",e.T='(NaN+Function("return Date")()())[30]',e.U='(NaN+Function("return{}")()["toString"]["call"]())[11]',e.V="'V'",e.W="'W'",e.X="'X'",e.Y="'Y'",e.Z="'Z'"}(t.JSFuck||(t.JSFuck={}))},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";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";var r=n(0),i=r(n(18)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(15),A=n(83),E=n(325),N=n(324),I=n(21),_=n(76),D=n(14),x=n(54),F=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,e,n,i))).escapeSequenceEncoder=r,o}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return D.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),n="";return n=this.options.selfDefending?C.default(E.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),_.JavaScriptObfuscator.obfuscate(C.default(N.StringArrayRotateFunctionTemplate(),{code:n,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:x.Utils.decToHex(this.stringArrayRotateValue),whileFunctionName:t}),(0,i.default)({},A.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),(0,o.default)(t,e),t}(I.AbstractCustomNode);h([S.initializable(),m("design:type",String)],F.prototype,"stringArrayName",void 0),h([S.initializable(),m("design:type",Number)],F.prototype,"stringArrayRotateValue",void 0),F=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IEscapeSequenceEncoder)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],F),t.StringArrayRotateFunctionNode=F},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){var r=n(9);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=n(88),i=n(72),a=n(37),o=n(27),s=n(25),u=n(26);o(o.S,"Reflect",{get:function e(t,n){var o,c,l=arguments.length<3?t:arguments[2];return u(t)===l?t[n]:(o=r.f(t,n))?a(o,"value")?o.value:void 0!==o.get?o.get.call(l):void 0:s(c=i(t))?e(c,n,l):void 0}})},function(e,t,n){n(329),e.exports=n(16).Reflect.get},function(e,t,n){e.exports=n(330)},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(79)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(15),A=n(327),E=n(21),N=n(14),I=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.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,c.default)((0,u.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return C.default(A.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),(0,a.default)(t,e),t}(E.AbstractCustomNode);h([S.initializable(),m("design:type",Object)],I.prototype,"stringArrayStorage",void 0),h([S.initializable(),m("design:type",String)],I.prototype,"stringArrayName",void 0),h([S.initializable(),m("design:type",Number)],I.prototype,"stringArrayRotateValue",void 0),I=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],I),t.StringArrayNode=I},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";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.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.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),c=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(c,"(this.").concat(n,");\n };\n\n StatesClass.prototype.").concat(c," = 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.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.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";var r=n(0),i=r(n(18)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(43),A=n(80),E=n(15),N=n(83),I=n(338),_=n(97),D=n(337),x=n(336),F=n(335),T=n(334),M=n(333),w=n(21),B=n(76),k=n(14),R=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,e,n,i))).escapeSequenceEncoder=r,o}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return k.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return B.JavaScriptObfuscator.obfuscate(C.default(T.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),(0,i.default)({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==S.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():_.GlobalVariableNoEvalTemplate(),t=C.default(I.AtobTemplate(),{globalVariableTemplate:e}),n="",r="";switch(this.options.selfDefending&&(r=C.default(x.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case A.StringArrayEncoding.Rc4:n=C.default(M.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:D.Rc4Template(),selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case A.StringArrayEncoding.Base64:n=C.default(F.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return n}}]),(0,o.default)(t,e),t}(w.AbstractCustomNode);h([E.initializable(),m("design:type",String)],R.prototype,"stringArrayName",void 0),h([E.initializable(),m("design:type",String)],R.prototype,"stringArrayCallsWrapperName",void 0),R=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IEscapeSequenceEncoder)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],R),t.StringArrayCallsWrapper=R},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(18)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(15),A=n(83),E=n(340),N=n(21),I=n(76),_=n(14),D=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,e,n,i))).escapeSequenceEncoder=r,o}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return I.JavaScriptObfuscator.obfuscate(C.default(E.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,i.default)({},A.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),(0,o.default)(t,e),t}(N.AbstractCustomNode);h([S.initializable(),m("design:type",String)],D.prototype,"callsControllerFunctionName",void 0),D=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IEscapeSequenceEncoder)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],D),t.SelfDefendingUnicodeNode=D},function(e,t,n){var r=n(25),i=n(60).onFreeze;n(67)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){n(342),e.exports=n(16).Object.freeze},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(18)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(44),A=n(15),E=n(344),N=n(83),I=n(21),_=n(76),D=n(14),x=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,u.default)(this,(0,c.default)(t).call(this,e,n,r))}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return D.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===S.ObfuscationEvent.AfterObfuscation?_.JavaScriptObfuscator.obfuscate(C.default(E.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,i.default)({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():C.default(E.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,o.default)(t,e),t}(I.AbstractCustomNode);h([A.initializable(),m("design:type",String)],x.prototype,"callsControllerFunctionName",void 0),h([A.initializable(),m("design:type",String)],x.prototype,"appendEvent",void 0),x=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],x),t.NodeCallsControllerFunctionNode=x},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=C.NodeFactory.expressionStatementNode(C.NodeFactory.functionExpressionNode([C.NodeFactory.identifierNode("x"),C.NodeFactory.identifierNode("y")],C.NodeFactory.blockStatementNode([C.NodeFactory.returnStatementNode(C.NodeFactory.logicalExpressionNode(this.operator,C.NodeFactory.identifierNode("x"),C.NodeFactory.identifierNode("y")))])));return S.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],A.prototype,"operator",void 0),A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.LogicalExpressionFunctionNode=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.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=C.NodeFactory.expressionStatementNode(C.NodeFactory.callExpressionNode(C.NodeFactory.memberExpressionNode(C.NodeFactory.identifierNode(this.controlFlowStorageName),C.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return S.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],A.prototype,"controlFlowStorageKey",void 0),p([v.initializable(),h("design:type",String)],A.prototype,"controlFlowStorageName",void 0),p([v.initializable(),h("design:type",Object)],A.prototype,"leftValue",void 0),p([v.initializable(),h("design:type",Object)],A.prototype,"rightValue",void 0),A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.ExpressionWithOperatorControlFlowStorageCallNode=A},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 \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 ((!document && !domain) || (!that[document] && !that[document][domain])) {\n return;\n }\n \n var currentDomain = that[document][domain];\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(56)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=y(n(34)),S=n(43),A=n(15),E=n(348),N=n(97),I=n(21),_=n(14),D=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,e,n,i))).cryptUtils=r,o}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.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!==S.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():N.GlobalVariableNoEvalTemplate();return C.default(E.DomainLockNodeTemplate(),{domainLockFunctionName:this.identifierNamesGenerator.generate(),diff:a,domains:r,globalVariableTemplate:o,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,o.default)(t,e),t}(I.AbstractCustomNode);h([A.initializable(),m("design:type",String)],D.prototype,"callsControllerFunctionName",void 0),D=h([v.injectable(),g(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),g(2,v.inject(b.ServiceIdentifiers.ICryptUtils)),g(3,v.inject(b.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],D),t.DomainLockNode=D},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";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.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";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=g(n(34)),C=n(43),S=n(15),A=n(352),E=n(351),N=n(350),I=n(21),_=n(14),D=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==C.ObfuscationTarget.BrowserNoEval?A.DebuggerTemplate():E.DebuggerTemplateNoEval();return b.default(N.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(I.AbstractCustomNode);p([S.initializable(),h("design:type",String)],D.prototype,"debugProtectionFunctionName",void 0),D=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],D),t.DebugProtectionFunctionNode=D},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(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=g(n(34)),C=n(15),S=n(354),A=n(21),E=n(14),N=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return E.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return b.default(S.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(A.AbstractCustomNode);p([C.initializable(),h("design:type",String)],N.prototype,"debugProtectionFunctionName",void 0),N=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],N),t.DebugProtectionFunctionIntervalNode=N},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(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=g(n(34)),C=n(15),S=n(356),A=n(21),E=n(14),N=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return E.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return b.default(S.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(A.AbstractCustomNode);p([C.initializable(),h("design:type",String)],N.prototype,"callsControllerFunctionName",void 0),p([C.initializable(),h("design:type",String)],N.prototype,"debugProtectionFunctionName",void 0),N=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],N),t.DebugProtectionFunctionCallNode=N},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(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=g(n(34)),C=n(43),S=n(358),A=n(97),E=n(15),N=n(21),I=n(14),_=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return I.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==C.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():A.GlobalVariableNoEvalTemplate();return b.default(S.ConsoleOutputDisableExpressionTemplate(),{consoleLogDisableFunctionName:this.identifierNamesGenerator.generate(),globalVariableTemplate:e,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(N.AbstractCustomNode);p([E.initializable(),h("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],_),t.ConsoleOutputDisableExpressionNode=_},function(e,t,n){"use strict";var r=n(0),i=r(n(56)),a=r(n(98)),o=r(n(2)),s=r(n(11)),u=r(n(3)),c=r(n(10)),l=r(n(9)),d=r(n(8)),f=r(n(7)),p=r(n(6)),h=r(n(5)),m=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,h.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,p.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&&(0,f.default)(t,n,o),o},g=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,p.default)(Reflect))&&"function"==typeof d.default)return(0,d.default)(e,t)},y=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=n(15),S=n(21),A=n(20),E=n(13),N=n(14),I=function(e){function t(e,n,r){return(0,o.default)(this,t),(0,c.default)(this,(0,l.default)(t).call(this,e,n,r))}return(0,u.default)(t,[{key:"initialize",value:function(e){this.controlFlowStorage=e}},{key:"getNodeStructure",value:function(){var e=(0,a.default)(this.controlFlowStorage.getStorage()).map(function(e){var t=(0,i.default)(e,2),n=t[0],r=t[1].getNode()[0];if(!E.NodeGuards.isExpressionStatementNode(r))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return A.NodeFactory.propertyNode(A.NodeFactory.identifierNode(n),r.expression)}),t=A.NodeFactory.variableDeclarationNode([A.NodeFactory.variableDeclaratorNode(A.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),A.NodeFactory.objectExpressionNode(e))]);return[t=N.NodeUtils.parentize(t)]}}]),(0,s.default)(t,e),t}(S.AbstractCustomNode);m([C.initializable(),g("design:type",Object)],I.prototype,"controlFlowStorage",void 0),I=m([v.injectable(),y(0,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),y(1,v.inject(b.ServiceIdentifiers.IRandomGenerator)),y(2,v.inject(b.ServiceIdentifiers.IOptions)),g("design:paramtypes",[Function,Object,Object])],I),t.ControlFlowStorageNode=I},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=C.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(21),S=n(20),A=n(14),E=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,u.default)(this,(0,c.default)(t).call(this,e,n,r))}return(0,s.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=S.NodeFactory.expressionStatementNode(S.NodeFactory.callExpressionNode(S.NodeFactory.memberExpressionNode(S.NodeFactory.identifierNode(this.controlFlowStorageName),S.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,i.default)(this.expressionArguments))));return A.NodeUtils.parentize(e),[e]}}]),(0,o.default)(t,e),t}(C.AbstractCustomNode);h([b.initializable(),m("design:type",Object)],E.prototype,"callee",void 0),h([b.initializable(),m("design:type",String)],E.prototype,"controlFlowStorageKey",void 0),h([b.initializable(),m("design:type",String)],E.prototype,"controlFlowStorageName",void 0),h([b.initializable(),m("design:type",Array)],E.prototype,"expressionArguments",void 0),E=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(2,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],E),t.CallExpressionControlFlowStorageCallNode=E},function(e,t,n){"use strict";var r=n(0),i=r(n(56)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(21),S=n(20),A=n(14),E=function(e){function t(e,n,r){return(0,a.default)(this,t),(0,u.default)(this,(0,c.default)(t).call(this,e,n,r))}return(0,s.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],c=s[1],l=S.NodeFactory.blockStatementNode([S.NodeFactory.ifStatementNode(S.NodeFactory.binaryExpressionNode(n,S.NodeFactory.literalNode(r),S.NodeFactory.literalNode(a)),u,c)]);return A.NodeUtils.parentize(l),[l]}}]),(0,o.default)(t,e),t}(C.AbstractCustomNode);h([b.initializable(),m("design:type",Object)],E.prototype,"blockStatementNode",void 0),h([b.initializable(),m("design:type",Object)],E.prototype,"deadCodeInjectionRootAstHostNode",void 0),E=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(2,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object])],E),t.BlockStatementDeadCodeInjectionNode=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(13),A=n(14),E=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.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=C.NodeFactory.blockStatementNode([C.NodeFactory.variableDeclarationNode([C.NodeFactory.variableDeclaratorNode(C.NodeFactory.identifierNode(t),C.NodeFactory.callExpressionNode(C.NodeFactory.memberExpressionNode(C.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),C.NodeFactory.identifierNode("split")),[C.NodeFactory.literalNode("|")])),C.NodeFactory.variableDeclaratorNode(C.NodeFactory.identifierNode(n),C.NodeFactory.literalNode(0))]),C.NodeFactory.whileStatementNode(C.NodeFactory.literalNode(!0),C.NodeFactory.blockStatementNode([C.NodeFactory.switchStatementNode(C.NodeFactory.memberExpressionNode(C.NodeFactory.identifierNode(t),C.NodeFactory.updateExpressionNode("++",C.NodeFactory.identifierNode(n)),!0),this.shuffledKeys.map(function(t,n){var r=e.blockStatementBody[t],i=[r];return S.NodeGuards.isReturnStatementNode(r)||i.push(C.NodeFactory.continueStatement()),C.NodeFactory.switchCaseNode(C.NodeFactory.literalNode(String(n)),i)})),C.NodeFactory.breakStatement()]))]);return A.NodeUtils.parentize(r),[r]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",Array)],E.prototype,"blockStatementBody",void 0),p([v.initializable(),h("design:type",Array)],E.prototype,"originalKeysIndexesInShuffledArray",void 0),p([v.initializable(),h("design:type",Array)],E.prototype,"shuffledKeys",void 0),E=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],E),t.BlockStatementControlFlowFlatteningNode=E},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";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";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(15),b=n(21),C=n(20),S=n(14),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=C.NodeFactory.expressionStatementNode(C.NodeFactory.functionExpressionNode([C.NodeFactory.identifierNode("x"),C.NodeFactory.identifierNode("y")],C.NodeFactory.blockStatementNode([C.NodeFactory.returnStatementNode(C.NodeFactory.binaryExpressionNode(this.operator,C.NodeFactory.identifierNode("x"),C.NodeFactory.identifierNode("y")))])));return S.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(b.AbstractCustomNode);p([v.initializable(),h("design:type",String)],A.prototype,"operator",void 0),A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),m(1,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(2,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.BinaryExpressionFunctionNode=A},function(e,t,n){"use strict";var r=n(0),i=r(n(56)),a=r(n(23)),o=r(n(2)),s=r(n(11)),u=r(n(3)),c=r(n(10)),l=r(n(9)),d=r(n(8)),f=r(n(7)),p=r(n(6)),h=r(n(5)),m=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,h.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,p.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&&(0,f.default)(t,n,o),o},g=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,p.default)(Reflect))&&"function"==typeof d.default)return(0,d.default)(e,t)},y=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var v=n(1),b=n(4),C=n(15),S=n(55),A=n(44),E=n(65),N=n(45),I=function(e){function t(e,n,r,i,a){var s;return(0,o.default)(this,t),(s=(0,c.default)(this,(0,l.default)(t).call(this,r,i,a))).appendEvent=A.ObfuscationEvent.AfterObfuscation,s.customNodeFactory=e,s.stringArrayStorage=n,s}return(0,u.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(S.CustomNode.StringArrayNode,function(t){N.NodeAppender.prependNode(e,t.getNode())}),this.appendCustomNodeIfExist(S.CustomNode.StringArrayCallsWrapper,function(t){N.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(S.CustomNode.StringArrayRotateFunctionNode,function(t){N.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new a.default,this.options.stringArray){var e,t=this.customNodeFactory(S.CustomNode.StringArrayNode),n=this.customNodeFactory(S.CustomNode.StringArrayCallsWrapper),r=this.customNodeFactory(S.CustomNode.StringArrayRotateFunctionNode),o=this.stringArrayStorage.getStorageId().split("|"),s=(0,i.default)(o,2),u=s[0],c=s[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,u,e),n.initialize(u,c),r.initialize(u,e),this.customNodes.set(S.CustomNode.StringArrayNode,t),this.customNodes.set(S.CustomNode.StringArrayCallsWrapper,n),this.options.rotateStringArray&&this.customNodes.set(S.CustomNode.StringArrayRotateFunctionNode,r)}}}]),(0,s.default)(t,e),t}(E.AbstractCustomNodeGroup);m([C.initializable(),g("design:type",a.default)],I.prototype,"customNodes",void 0),I=m([v.injectable(),y(0,v.inject(b.ServiceIdentifiers.Factory__ICustomNode)),y(1,v.inject(b.ServiceIdentifiers.TStringArrayStorage)),y(2,v.inject(b.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),y(3,v.inject(b.ServiceIdentifiers.IRandomGenerator)),y(4,v.inject(b.ServiceIdentifiers.IOptions)),g("design:paramtypes",[Function,Object,Function,Object,Object])],I),t.StringArrayCustomNodeGroup=I},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(55),S=n(44),A=n(65),E=n(45),N=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r,i))).appendEvent=S.ObfuscationEvent.AfterObfuscation,o.customNodeFactory=e,o}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(C.CustomNode.SelfDefendingUnicodeNode,function(r){E.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(C.CustomNode.NodeCallsControllerFunctionNode,function(r){var i;i=t.length?E.NodeAppender.getOptimalBlockScope(t,n,1):e,E.NodeAppender.prependNode(i,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new i.default,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(C.CustomNode.SelfDefendingUnicodeNode),n=this.customNodeFactory(C.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(C.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(C.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),(0,o.default)(t,e),t}(A.AbstractCustomNodeGroup);h([b.initializable(),m("design:type",i.default)],N.prototype,"customNodes",void 0),N=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__ICustomNode)),g(1,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(2,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(3,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Function,Object,Object])],N),t.SelfDefendingCustomNodeGroup=N},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(55),S=n(44),A=n(65),E=n(45),N=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r,i))).appendEvent=S.ObfuscationEvent.BeforeObfuscation,o.customNodeFactory=e,o}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(C.CustomNode.DomainLockNode,function(r){E.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(C.CustomNode.NodeCallsControllerFunctionNode,function(r){var i;i=t.length?E.NodeAppender.getOptimalBlockScope(t,n,1):e,E.NodeAppender.prependNode(i,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new i.default,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(C.CustomNode.DomainLockNode),n=this.customNodeFactory(C.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(C.CustomNode.DomainLockNode,t),this.customNodes.set(C.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),(0,o.default)(t,e),t}(A.AbstractCustomNodeGroup);h([b.initializable(),m("design:type",i.default)],N.prototype,"customNodes",void 0),N=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__ICustomNode)),g(1,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(2,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(3,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Function,Object,Object])],N),t.DomainLockCustomNodeGroup=N},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(55),S=n(44),A=n(65),E=n(45),N=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r,i))).appendEvent=S.ObfuscationEvent.BeforeObfuscation,o.customNodeFactory=e,o}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this,r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(C.CustomNode.DebugProtectionFunctionCallNode,function(n){E.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(C.CustomNode.DebugProtectionFunctionNode,function(t){E.NodeAppender.appendNode(e,t.getNode())}),this.appendCustomNodeIfExist(C.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var r=e.body.length,i=n.randomGenerator.getRandomInteger(0,r);E.NodeAppender.insertNodeAtIndex(e,t.getNode(),i)}),this.appendCustomNodeIfExist(C.CustomNode.NodeCallsControllerFunctionNode,function(n){var i;i=t.length?E.NodeAppender.getOptimalBlockScope(t,r,1):e,E.NodeAppender.prependNode(i,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new i.default,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),n=this.customNodeFactory(C.CustomNode.DebugProtectionFunctionNode),r=this.customNodeFactory(C.CustomNode.DebugProtectionFunctionCallNode),a=this.customNodeFactory(C.CustomNode.DebugProtectionFunctionIntervalNode),o=this.customNodeFactory(C.CustomNode.NodeCallsControllerFunctionNode);n.initialize(e),r.initialize(e,t),a.initialize(e),o.initialize(this.appendEvent,t),this.customNodes.set(C.CustomNode.DebugProtectionFunctionNode,n),this.customNodes.set(C.CustomNode.DebugProtectionFunctionCallNode,r),this.options.debugProtectionInterval&&this.customNodes.set(C.CustomNode.DebugProtectionFunctionIntervalNode,a),this.customNodes.set(C.CustomNode.NodeCallsControllerFunctionNode,o)}}}]),(0,o.default)(t,e),t}(A.AbstractCustomNodeGroup);h([b.initializable(),m("design:type",i.default)],N.prototype,"customNodes",void 0),N=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__ICustomNode)),g(1,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(2,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(3,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Function,Object,Object])],N),t.DebugProtectionCustomNodeGroup=N},function(e,t,n){"use strict";var r=n(0),i=r(n(23)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1),v=n(4),b=n(15),C=n(55),S=n(44),A=n(65),E=n(45),N=function(e){function t(e,n,r,i){var o;return(0,a.default)(this,t),(o=(0,u.default)(this,(0,c.default)(t).call(this,n,r,i))).appendEvent=S.ObfuscationEvent.BeforeObfuscation,o.customNodeFactory=e,o}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(C.CustomNode.ConsoleOutputDisableExpressionNode,function(r){E.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(C.CustomNode.NodeCallsControllerFunctionNode,function(r){var i;i=t.length?E.NodeAppender.getOptimalBlockScope(t,n,1):e,E.NodeAppender.prependNode(i,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new i.default,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(C.CustomNode.ConsoleOutputDisableExpressionNode),n=this.customNodeFactory(C.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(C.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(C.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),(0,o.default)(t,e),t}(A.AbstractCustomNodeGroup);h([b.initializable(),m("design:type",i.default)],N.prototype,"customNodes",void 0),N=h([y.injectable(),g(0,y.inject(v.ServiceIdentifiers.Factory__ICustomNode)),g(1,y.inject(v.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),g(2,y.inject(v.ServiceIdentifiers.IRandomGenerator)),g(3,y.inject(v.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Function,Object,Object])],N),t.ConsoleOutputCustomNodeGroup=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),a=n(4),o=n(40),s=n(55),u=n(151),c=n(152),l=n(372),d=n(371),f=n(370),p=n(369),h=n(368),m=n(367),g=n(364),y=n(363),v=n(362),b=n(361),C=n(360),S=n(359),A=n(357),E=n(355),N=n(353),I=n(349),_=n(347),D=n(346),x=n(345),F=n(341),T=n(339),M=n(332),w=n(326),B=n(322),k=n(321);t.customNodesModule=new i.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(S.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(A.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(E.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(N.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(x.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(T.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(M.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(m.BinaryExpressionFunctionNode).whenTargetNamed(o.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BlockStatementControlFlowFlatteningNode).whenTargetNamed(o.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.CallExpressionControlFlowStorageCallNode).whenTargetNamed(o.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(b.CallExpressionFunctionNode).whenTargetNamed(o.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(C.ControlFlowStorageNode).whenTargetNamed(o.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(o.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(D.LogicalExpressionFunctionNode).whenTargetNamed(o.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(k.StringLiteralNode).whenTargetNamed(o.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(B.StringLiteralControlFlowStorageCallNode).whenTargetNamed(o.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.BlockStatementDeadCodeInjectionNode).whenTargetNamed(c.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.ConsoleOutputCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(d.DebugProtectionCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.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(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(17),C=n(19),S=n(20),A=n(13),E=g=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Converting:return{leave:function(e,n){if(n&&g.isValidTemplateLiteralNode(e,n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=e.expressions,r=[];if(e.quasis.forEach(function(e){r.push(S.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&r.push(t)}),r=r.filter(function(e){return!(A.NodeGuards.isLiteralNode(e)&&""===e.value)}),g.isLiteralNodeWithStringValue(r[0])||g.isLiteralNodeWithStringValue(r[1])||r.unshift(S.NodeFactory.literalNode("")),r.length>1){var i=S.NodeFactory.binaryExpressionNode("+",r.shift(),r.shift());return r.forEach(function(e){i=S.NodeFactory.binaryExpressionNode("+",i,e)}),i}return r[0]}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&A.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return A.NodeGuards.isTemplateLiteralNode(e)&&!A.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);E=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(1,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],E),t.TemplateLiteralTransformer=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(17),b=n(19),C=n(20),S=n(13),A=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Converting:return{enter:function(e,n){if(n&&S.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return e.properties.forEach(function(e){!e.computed&&e.key&&(e.shorthand&&(e.shorthand=!1),S.NodeGuards.isIdentifierNode(e.key)&&(e.key=C.NodeFactory.literalNode(e.key.name)))}),e}}]),(0,a.default)(t,e),t}(b.AbstractNodeTransformer);A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(1,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],A),t.ObjectExpressionTransformer=A},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){var r=n(59);e.exports=function(e,t){var n=[],i=!0,a=!1,o=void 0;try{for(var s,u=r(e);!(i=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw o}}return n}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t,n){"use strict";var r=n(0),i=r(n(56)),a=r(n(23)),o=r(n(2)),s=r(n(11)),u=r(n(3)),c=r(n(10)),l=r(n(9)),d=r(n(8)),f=r(n(7)),p=r(n(6)),h=r(n(5)),m=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,h.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,p.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&&(0,f.default)(t,n,o),o},g=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,p.default)(Reflect))&&"function"==typeof d.default)return(0,d.default)(e,t)},y=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var v,b=n(1),C=n(4),S=n(17),A=n(19),E=n(45),N=n(20),I=n(13),_=n(14),D=v=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,c.default)(this,(0,l.default)(t).call(this,e,n))).cachedScopeNodesMap=new a.default,r}return(0,u.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.Converting:return{enter:function(e,n){if(t.options.transformObjectKeys&&n&&I.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return I.NodeGuards.isVariableDeclaratorNode(t)?this.transformVariableDeclaratorHostObjectExpression(e,t):I.NodeGuards.isAssignmentExpressionNode(t)?this.transformAssignmentExpressionHostObjectExpression(e,t):e}},{key:"transformVariableDeclaratorHostObjectExpression",value:function(e,t){if(!I.NodeGuards.isIdentifierNode(t.id))return e;var n=_.NodeUtils.getScopeOfNode(t);return n&&I.NodeGuards.isNodeHasScope(n)?(this.cachedScopeNodesMap.set(t,n),this.transformObjectExpressionNode(e,t.id,t)):e}},{key:"transformAssignmentExpressionHostObjectExpression",value:function(e,t){var n=t.left;if(!v.isValidExpressionNode(n))return e;var r=_.NodeUtils.getScopeOfNode(t);return r&&I.NodeGuards.isNodeHasScope(r)?(this.cachedScopeNodesMap.set(t,r),this.transformObjectExpressionNode(e,n,t)):e}},{key:"extractPropertiesToExpressionStatements",value:function(e,t,n){for(var r=e.length,i=[],a=[],o=0;o=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(17),C=n(19),S=n(20),A=n(13),E=g=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Converting:return{enter:function(e,n){if(n&&A.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return A.NodeGuards.isIdentifierNode(e.key)&&!g.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=S.NodeFactory.literalNode(e.key.name)),e}}]),(0,a.default)(t,e),t}(C.AbstractNodeTransformer);E.ignoredNames=["constructor"],E=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(1,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],E),t.MethodDefinitionTransformer=E},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),y=n(4),v=n(17),b=n(19),C=n(20),S=n(13),A=function(e){function t(e,n){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Converting:return{enter:function(e,n){if(n&&S.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(S.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=C.NodeFactory.literalNode(e.property.name)}return e}}]),(0,a.default)(t,e),t}(b.AbstractNodeTransformer);A=p([g.injectable(),m(0,g.inject(y.ServiceIdentifiers.IRandomGenerator)),m(1,g.inject(y.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Object,Object])],A),t.MemberExpressionTransformer=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),a=n(58),o=n(381),s=n(380),u=n(379),c=n(375),l=n(374);t.convertingTransformersModule=new r.ContainerModule(function(e){e(i.ServiceIdentifiers.INodeTransformer).to(o.MemberExpressionTransformer).whenTargetNamed(a.NodeTransformer.MemberExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(s.MethodDefinitionTransformer).whenTargetNamed(a.NodeTransformer.MethodDefinitionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.ObjectExpressionKeysTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionKeysTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(c.ObjectExpressionTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(l.TemplateLiteralTransformer).whenTargetNamed(a.NodeTransformer.TemplateLiteralTransformer)})},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(40),C=n(99),S=n(13),A=g=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"replace",value:function(e,t,n){if(S.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var r=String(e.value),i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.StringLiteralNode);i.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(i,n,r,g.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var n=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);n.initialize(e,t);var r=n.getNode()[0];if(!r||!S.NodeGuards.isExpressionStatementNode(r))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return r.expression}}]),(0,a.default)(t,e),t}(C.AbstractControlFlowReplacer);A.usingExistingIdentifierChance=1,A=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.StringLiteralControlFlowReplacer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(40),C=n(153),S=n(13),A=n(14),E=g=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"replace",value:function(e,t,n){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var r=e.operator,i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.LogicalExpressionFunctionNode);i.initialize(r);var a=this.insertCustomNodeToControlFlowStorage(i,n,r,g.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=S.NodeGuards.isUnaryExpressionNode(e)?A.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(S.NodeGuards.isLiteralNode(t)||S.NodeGuards.isIdentifierNode(t)||S.NodeGuards.isObjectExpressionNode(t)||S.NodeGuards.isExpressionStatementNode(t))})}}]),(0,a.default)(t,e),t}(C.ExpressionWithOperatorControlFlowReplacer);E.usingExistingIdentifierChance=.5,E=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],E),t.LogicalExpressionControlFlowReplacer=E},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){var r=n(112),i=n(30)("iterator"),a=n(62);e.exports=n(16).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||a.hasOwnProperty(r(t))}},function(e,t,n){n(71),n(63),e.exports=n(386)},function(e,t,n){e.exports=n(387)},function(e,t,n){var r=n(30)("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(32),i=n(74);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){"use strict";var r=n(50),i=n(27),a=n(61),o=n(173),s=n(172),u=n(91),c=n(390),l=n(113);i(i.S+i.F*!n(389)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,f=a(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,y=0,v=l(f);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==v||p==Array&&s(v))for(n=new p(t=u(f.length));t>y;y++)c(n,y,g?m(f[y],y):f[y]);else for(d=v.call(f),n=new p;!(i=d.next()).done;y++)c(n,y,g?o(d,m,[i.value,y],!0):i.value);return n.length=y,n}})},function(e,t,n){n(63),n(391),e.exports=n(16).Array.from},function(e,t,n){var r=n(98),i=n(388);e.exports=function(e){if(i(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return r(e)}},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&&(0,p.default)(t,n,o),o},y=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,h.default)(Reflect))&&"function"==typeof f.default)return(0,f.default)(e,t)},v=function(e,t){return function(n,r){t(n,r,e)}},b=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 C,S=n(1),A=n(4),E=b(n(24)),N=n(40),I=n(154),_=n(46),D=n(17),x=n(19),F=n(45),T=n(13),M=n(28),w=n(14),B=C=function(e){function t(e,n,r,i,u){var c;return(0,s.default)(this,t),(c=(0,l.default)(this,(0,d.default)(t).call(this,i,u))).controlFlowData=new o.default,c.visitedFunctionNodes=new a.default,c.hostNodesWithControlFlowNode=new a.default,c.controlFlowStorageFactory=e,c.controlFlowReplacerFactory=n,c.controlFlowCustomNodeFactory=r,c}return(0,c.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case D.TransformationStage.ControlFlowFlattening:return{leave:function(e,n){if(n&&(T.NodeGuards.isFunctionDeclarationNode(e)||T.NodeGuards.isFunctionExpressionNode(e)||T.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!T.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(N.ControlFlowCustomNode.ControlFlowStorageNode);return i.initialize(r),F.NodeAppender.prependNode(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)&&e.body.shift();var n=this.controlFlowData.get(e);t.mergeWith(n,!0)}return t}},{key:"getHostNode",value:function(e){var t=w.NodeUtils.getBlockScopesOfNode(e);return 1===t.length?e:(t.pop(),t.length>C.hostNodeSearchMinDepth&&t.splice(0,C.hostNodeSearchMinDepth),t.length>C.hostNodeSearchMaxDepth&&(t.length=C.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(T.NodeGuards.isFunctionDeclarationNode(e)||T.NodeGuards.isFunctionExpressionNode(e)||T.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var n=this;E.replace(e,{enter:function(e,r){if(M.NodeMetadata.isIgnoredNode(e))return E.VisitorOption.Skip;if(n.isVisitedFunctionNode(e)||!r)return E.VisitorOption.Skip;if(!C.controlFlowReplacersMap.has(e.type))return e;if(n.randomGenerator.getMathRandom()>n.options.controlFlowFlatteningThreshold)return e;var a=C.controlFlowReplacersMap.get(e.type);return void 0===a?e:(0,i.default)({},n.controlFlowReplacerFactory(a).replace(e,r,t),{parentNode:r})}})}}]),(0,u.default)(t,e),t}(x.AbstractNodeTransformer);B.controlFlowReplacersMap=new o.default([[_.NodeType.BinaryExpression,I.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[_.NodeType.CallExpression,I.ControlFlowReplacer.CallExpressionControlFlowReplacer],[_.NodeType.LogicalExpression,I.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[_.NodeType.Literal,I.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),B.hostNodeSearchMinDepth=0,B.hostNodeSearchMaxDepth=2,B=C=g([S.injectable(),v(0,S.inject(A.ServiceIdentifiers.Factory__TControlFlowStorage)),v(1,S.inject(A.ServiceIdentifiers.Factory__IControlFlowReplacer)),v(2,S.inject(A.ServiceIdentifiers.Factory__IControlFlowCustomNode)),v(3,S.inject(A.ServiceIdentifiers.IRandomGenerator)),v(4,S.inject(A.ServiceIdentifiers.IOptions)),y("design:paramtypes",[Function,Function,Function,Object,Object])],B),t.FunctionControlFlowTransformer=B},function(e,t,n){"use strict";var r=n(0),i=r(n(57)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(8)),d=r(n(7)),f=r(n(6)),p=r(n(5)),h=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,p.default)(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,f.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&&(0,d.default)(t,n,o),o},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,f.default)(Reflect))&&"function"==typeof l.default)return(0,l.default)(e,t)},g=function(e,t){return function(n,r){t(n,r,e)}},y=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 v,b=n(1),C=n(4),S=y(n(24)),A=n(152),E=n(58),N=n(46),I=n(17),_=n(19),D=n(20),x=n(13),F=n(14),T=v=function(e){function t(e,n,r,o){var s;return(0,a.default)(this,t),(s=(0,u.default)(this,(0,c.default)(t).call(this,r,o))).deadCodeInjectionRootAstHostNodeSet=new i.default,s.collectedBlockStatements=[],s.collectedBlockStatementsTotalLength=0,s.deadCodeInjectionCustomNodeFactory=e,s.transformersRunner=n,s}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case I.TransformationStage.DeadCodeInjection:return{enter:function(e,n){if(n&&x.NodeGuards.isProgramNode(e))return t.analyzeNode(e,n),e},leave:function(e,n){if(n&&x.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,n)}};case I.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;S.traverse(e,{enter:function(e){if(x.NodeGuards.isBlockStatementNode(e)){var t=F.NodeUtils.clone(e);v.isValidCollectedBlockStatementNode(t)&&(F.NodeUtils.parentizeNode(t,t),t=n.transformersRunner.transform(t,v.transformersToRenameBlockScopeIdentifiers,I.TransformationStage.Obfuscating),n.collectedBlockStatements.push(t))}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!v.isValidWrappedBlockStatementNode(e))return e;var n=this.collectedBlockStatements.length-1,r=this.randomGenerator.getRandomInteger(0,n),i=this.collectedBlockStatements.splice(r,1)[0];return i===e?e:this.replaceBlockStatementNode(e,i,t)}},{key:"restoreNode",value:function(e,t){var n=e.body[0];if(!x.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 x.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"replaceBlockStatementNode",value:function(e,t,n){var r=D.NodeFactory.blockStatementNode([D.NodeFactory.functionDeclarationNode(v.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(r);var i=this.deadCodeInjectionCustomNodeFactory(A.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);i.initialize(e,r);var a=i.getNode()[0];return F.NodeUtils.parentizeNode(a,n),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return x.NodeGuards.isBreakStatementNode(e)||x.NodeGuards.isContinueStatementNode(e)||x.NodeGuards.isAwaitExpressionNode(e)||x.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!x.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=F.NodeUtils.getScopeOfNode(e),n=x.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,r=n.indexOf(e);if(0===r)return!1;var i=n.slice(0,r),a=D.NodeFactory.blockStatementNode(i),o=e.id.name,s=!1;return S.traverse(a,{enter:function(e){if(x.NodeGuards.isIdentifierNode(e)&&e.name===o)return s=!0,S.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,n=!0;return S.traverse(e,{enter:function(e){if(x.NodeGuards.isBlockStatementNode(e)&&t++,t>v.maxNestedBlockStatementsCount||v.isProhibitedNodeInsideCollectedBlockStatement(e)||v.isScopeHoistingFunctionDeclaration(e))return n=!1,S.VisitorOption.Break}}),n}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return S.traverse(e,{enter:function(e){if(v.isScopeHoistingFunctionDeclaration(e))return t=!1,S.VisitorOption.Break}}),!!t&&F.NodeUtils.getBlockScopesOfNode(e)[0].type!==N.NodeType.Program}}]),(0,o.default)(t,e),t}(_.AbstractNodeTransformer);T.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",T.maxNestedBlockStatementsCount=4,T.minCollectedBlockStatementsCount=5,T.transformersToRenameBlockScopeIdentifiers=[E.NodeTransformer.CatchClauseTransformer,E.NodeTransformer.ClassDeclarationTransformer,E.NodeTransformer.FunctionDeclarationTransformer,E.NodeTransformer.FunctionTransformer,E.NodeTransformer.LabeledStatementTransformer,E.NodeTransformer.VariableDeclarationTransformer],T=v=h([b.injectable(),g(0,b.inject(C.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),g(1,b.inject(C.ServiceIdentifiers.ITransformersRunner)),g(2,b.inject(C.ServiceIdentifiers.IRandomGenerator)),g(3,b.inject(C.ServiceIdentifiers.IOptions)),m("design:paramtypes",[Function,Object,Object,Object])],T),t.DeadCodeInjectionTransformer=T},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(40),C=n(99),S=n(13),A=g=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"replace",value:function(e,t,n){var r=e.callee;if(!S.NodeGuards.isIdentifierNode(r))return e;var i=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.CallExpressionFunctionNode),o=e.arguments;a.initialize(o);var s=this.insertCustomNodeToControlFlowStorage(a,n,i,g.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),s,r,o)}},{key:"getControlFlowStorageCallNode",value:function(e,t,n,r){var i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);i.initialize(e,t,n,r);var a=i.getNode()[0];if(!a||!S.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(C.AbstractControlFlowReplacer);A.usingExistingIdentifierChance=.5,A=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],A),t.CallExpressionControlFlowReplacer=A},function(e,t,n){n(168)("Set")},function(e,t,n){n(169)("Set")},function(e,t,n){var r=n(27);r(r.P+r.R,"Set",{toJSON:n(170)("Set")})},function(e,t,n){"use strict";var r=n(174),i=n(69);e.exports=n(111)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){n(119),n(63),n(71),n(401),n(400),n(399),n(398),e.exports=n(16).Set},function(e,t,n){var r=n(84),i=n(26),a=n(72),o=r.has,s=r.key,u=function(e,t,n){if(o(e,t,n))return!0;var r=a(t);return null!==r&&u(e,r,n)};r.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){n(403),e.exports=n(16).Reflect.hasMetadata},function(e,t,n){e.exports=n(404)},function(e,t,n){var r=n(84),i=n(26),a=r.key,o=r.set;r.exp({defineMetadata:function(e,t,n,r){o(e,t,i(n),a(r))}})},function(e,t,n){n(406),e.exports=n(16).Reflect.defineMetadata},function(e,t,n){e.exports=n(407)},function(e,t,n){n(67)("getOwnPropertyNames",function(){return n(160).f})},function(e,t,n){n(409);var r=n(16).Object;e.exports=function(e){return r.getOwnPropertyNames(e)}},function(e,t,n){e.exports=n(410)},function(e,t,n){var r=n(84),i=n(26),a=n(72),o=r.has,s=r.get,u=r.key,c=function(e,t,n){if(o(e,t,n))return s(e,t,n);var r=a(t);return null!==r?c(e,r,n):void 0};r.exp({getMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,n){n(412),e.exports=n(16).Reflect.getMetadata},function(e,t,n){e.exports=n(413)},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}},g=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 y,v=n(1),b=n(4),C=g(n(24)),S=n(40),A=n(17),E=n(19),N=n(13),I=n(14),_=y=function(e){function t(e,n,r,a){var o;return(0,i.default)(this,t),(o=(0,s.default)(this,(0,u.default)(t).call(this,r,a))).controlFlowCustomNodeFactory=e,o.arrayUtils=n,o}return(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case A.TransformationStage.ControlFlowFlattening:return{leave:function(e,n){if(n&&N.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!y.canTransformBlockStatementNode(e))return e;var n=e.body,r=this.arrayUtils.arrayRange(n.length),i=this.arrayUtils.arrayShuffle(r),a=r.map(function(e){return i.indexOf(e)}),o=this.controlFlowCustomNodeFactory(S.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);o.initialize(n,i,a);var s=o.getNode()[0];return I.NodeUtils.parentizeNode(s,t),s}}],[{key:"blockStatementHasProhibitedStatements",value:function(e){return e.body.some(function(e){var t=N.NodeGuards.isBreakStatementNode(e)||N.NodeGuards.isContinueStatementNode(e),n=N.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),r=N.NodeGuards.isClassDeclarationNode(e);return N.NodeGuards.isFunctionDeclarationNode(e)||t||n||r})}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return C.traverse(e,{enter:function(e){if(N.NodeGuards.isWhileStatementNode(e))return C.VisitorOption.Skip;N.NodeGuards.isBlockStatementNode(e)&&y.blockStatementHasProhibitedStatements(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),(0,a.default)(t,e),t}(E.AbstractNodeTransformer);_=y=p([v.injectable(),m(0,v.inject(b.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,v.inject(b.ServiceIdentifiers.IArrayUtils)),m(2,v.inject(b.ServiceIdentifiers.IRandomGenerator)),m(3,v.inject(b.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(8)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof c.default)return(0,c.default)(e,t)},m=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g,y=n(1),v=n(4),b=n(40),C=n(153),S=g=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,o.default)(t,[{key:"replace",value:function(e,t,n){var r=e.operator,i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.BinaryExpressionFunctionNode);i.initialize(r);var a=this.insertCustomNodeToControlFlowStorage(i,n,r,g.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a,e.left,e.right)}}]),(0,a.default)(t,e),t}(C.ExpressionWithOperatorControlFlowReplacer);S.usingExistingIdentifierChance=.5,S=g=p([y.injectable(),m(0,y.inject(v.ServiceIdentifiers.Factory__IControlFlowCustomNode)),m(1,y.inject(v.ServiceIdentifiers.IRandomGenerator)),m(2,y.inject(v.ServiceIdentifiers.IOptions)),h("design:paramtypes",[Function,Object,Object])],S),t.BinaryExpressionControlFlowReplacer=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),a=n(4),o=n(154),s=n(58),u=n(416),c=n(415),l=n(397),d=n(396),f=n(395),p=n(384),h=n(383);t.controlFlowTransformersModule=new i.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(c.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(d.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.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(p.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=n(115),i=n(60).getWeak,a=n(26),o=n(25),s=n(114),u=n(70),c=n(110),l=n(37),d=n(69),f=c(5),p=c(6),h=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},y=function(e,t){return f(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,a){var c=e(function(e,r){s(e,c,t,"_i"),e._t=t,e._i=h++,e._l=void 0,void 0!=r&&u(r,n,e[a],e)});return r(c.prototype,{delete:function(e){if(!o(e))return!1;var n=i(e);return!0===n?m(d(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!o(e))return!1;var n=i(e);return!0===n?m(d(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=i(a(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},function(e,t,n){"use strict";var r,i=n(110)(0),a=n(116),o=n(60),s=n(155),u=n(418),c=n(25),l=n(38),d=n(69),f=o.getWeak,p=Object.isExtensible,h=u.ufstore,m={},g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(c(e)){var t=f(e);return!0===t?h(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(d(this,"WeakMap"),e,t)}},v=e.exports=n(111)("WeakMap",g,y,u,!0,!0);l(function(){return 7!=(new v).set((Object.freeze||Object)(m),7).get(m)})&&(s((r=u.getConstructor(g,"WeakMap")).prototype,y),o.NEED=!0,i(["delete","has","get","set"],function(e){var t=v.prototype,n=t[e];a(t,e,function(t,i){if(c(t)&&!p(t)){this._f||(this._f=new r);var a=this._f[e](t,i);return"set"==e?this:a}return n.call(this,t,i)})}))},function(e,t,n){var r=n(84),i=n(26),a=n(75),o=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:a)(n),o(r))}}})},function(e,t,n){n(420),e.exports=n(16).Reflect.metadata},function(e,t,n){"use strict";var r=n(0),i=r(n(18)),a=r(n(2)),o=r(n(3)),s=r(n(8)),u=r(n(7)),c=r(n(6)),l=r(n(5)),d=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,l.default)(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&&(0,u.default)(t,n,o),o},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof s.default)return(0,s.default)(e,t)},p=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 m,g=n(1),y=n(4),v=h(n(24)),b=n(161),C=n(13),S=n(14),A=m=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=m.getLimitIndex(e.length),r=[],i=e.length,a=function(i){if(i>n)return"break";var a=e[i];v.traverse(a,{enter:function(n){if(C.NodeGuards.isCallExpressionNode(n))return a.parentNode!==S.NodeUtils.getBlockScopesOfNode(n)[0]?v.VisitorOption.Skip:void t.analyzeCallExpressionNode(r,e,n)}})},o=0;on&&(r=Math.round(n+t*m.limitThreshold))>t&&(r=t),r}}]),e}();A.calleeDataExtractorsList=[b.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,b.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,b.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],A.limitThresholdActivationLength=25,A.limitThreshold=.002,A=m=d([g.injectable(),p(0,g.inject(y.ServiceIdentifiers.Factory__ICalleeDataExtractor)),f("design:paramtypes",[Function])],A),t.StackTraceAnalyzer=A},function(e,t,n){var r=n(26),i=n(113);e.exports=n(16).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){n(71),n(63),e.exports=n(423)},function(e,t,n){"use strict";var r=n(0),i=r(n(59)),a=r(n(2)),o=r(n(11)),s=r(n(3)),u=r(n(10)),c=r(n(9)),l=r(n(7)),d=r(n(6)),f=r(n(5)),p=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,f.default)(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&&(0,l.default)(t,n,o),o},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 m,g=n(1),y=h(n(24)),v=n(104),b=n(13),C=n(14),S=m=function(e){function t(){return(0,a.default)(this,t),(0,u.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,s.default)(t,[{key:"extract",value:function(e,t){if(!b.NodeGuards.isMemberExpressionNode(t))return null;var n=this.createObjectMembersCallsChain([],t);if(!n.length)return null;var r=n[n.length-1],i=this.getCalleeBlockStatement(C.NodeUtils.getBlockScopesOfNode(e[0])[0],n);return i?{callee:i,name:r}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(b.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!b.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return b.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(b.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 y.traverse(e,{enter:function(e){if(b.NodeGuards.isVariableDeclaratorNode(e)&&b.NodeGuards.isIdentifierNode(e.id)&&e.init&&b.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===r)return i=n.findCalleeBlockStatement(e.init.properties,t),y.VisitorOption.Break}}),i}},{key:"findCalleeBlockStatement",value:function(e,t){var n=t.shift();if(!n)return null;var r=!0,a=!1,o=void 0;try{for(var s,u=(0,i.default)(e);!(r=(s=u.next()).done);r=!0){var c=s.value;if(m.isValidTargetPropertyNode(c,n)){if(b.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(b.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){a=!0,o=e}finally{try{r||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=b.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,r=b.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return n||r}}]),(0,o.default)(t,e),t}(v.AbstractCalleeDataExtractor);S=m=p([g.injectable()],S),t.ObjectExpressionCalleeDataExtractor=S},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(7)),l=r(n(6)),d=r(n(5)),f=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,d.default)(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&&(0,c.default)(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 h=n(1),m=p(n(24)),g=n(104),y=n(13),v=n(14),b=function(e){function t(){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,o.default)(t,[{key:"extract",value:function(e,t){var n=null;return y.NodeGuards.isIdentifierNode(t)&&(n=this.getCalleeBlockStatement(v.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name)),y.NodeGuards.isFunctionExpressionNode(t)&&(n=t.body),n?{callee:n,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var n=null;return m.traverse(e,{enter:function(e,r){if(y.NodeGuards.isFunctionExpressionNode(e)&&r&&y.NodeGuards.isVariableDeclaratorNode(r)&&y.NodeGuards.isIdentifierNode(r.id)&&r.id.name===t)return n=e.body,m.VisitorOption.Break}}),n}}]),(0,a.default)(t,e),t}(g.AbstractCalleeDataExtractor);b=f([h.injectable()],b),t.FunctionExpressionCalleeDataExtractor=b},function(e,t,n){var r=n(27);r(r.S+r.F,"Object",{assign:n(155)})},function(e,t,n){n(427),e.exports=n(16).Object.assign},function(e,t,n){"use strict";e.exports={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],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:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],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"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],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"],JSXIdentifier:[],JSXNamespacedName:["namespace","name"],JSXMemberExpression:["object","property"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXElement:["openingElement","closingElement","children"],JSXClosingElement:["name"],JSXOpeningElement:["name","attributes"],JSXAttribute:["name","value"],JSXText:null,JSXSpreadAttribute:["argument"]}},function(e){e.exports={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:"4.0.0-alpha.0",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:"^5.5.1","acorn-jsx":"^4.1.1"},devDependencies:{browserify:"^7.0.0",chai:"^1.10.0",eslint:"^2.13.1","eslint-config-eslint":"^3.0.0","eslint-release":"^0.10.0",esprima:"latest","esprima-fb":"^8001.2001.0-dev-harmony-fb",istanbul:"~0.2.6","json-diff":"~0.3.1",leche:"^1.0.1",mocha:"^2.0.1",regenerate:"~0.5.4",shelljs:"^0.3.0","shelljs-nodecli":"^0.1.1","unicode-6.3.0":"~0.1.0"},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",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta",browserify:"node Makefile.js browserify"}}},function(e,t,n){"use strict";n.r(t),n.d(t,"version",function(){return Ie}),n.d(t,"parse",function(){return _e}),n.d(t,"parseExpressionAt",function(){return De}),n.d(t,"tokenizer",function(){return xe}),n.d(t,"parse_dammit",function(){return Ae}),n.d(t,"LooseParser",function(){return Ee}),n.d(t,"pluginsLoose",function(){return Ne}),n.d(t,"addLooseExports",function(){return Fe}),n.d(t,"Parser",function(){return G}),n.d(t,"plugins",function(){return j}),n.d(t,"defaultOptions",function(){return O}),n.d(t,"Position",function(){return B}),n.d(t,"SourceLocation",function(){return k}),n.d(t,"getLineInfo",function(){return R}),n.d(t,"Node",function(){return ee}),n.d(t,"TokenType",function(){return g}),n.d(t,"tokTypes",function(){return A}),n.d(t,"keywordTypes",function(){return C}),n.d(t,"TokContext",function(){return re}),n.d(t,"tokContexts",function(){return ie}),n.d(t,"isIdentifierChar",function(){return m}),n.d(t,"isIdentifierStart",function(){return h}),n.d(t,"Token",function(){return ve}),n.d(t,"isNewLine",function(){return I}),n.d(t,"lineBreak",function(){return E}),n.d(t,"lineBreakG",function(){return N}),n.d(t,"nonASCIIwhitespace",function(){return _});var r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",a={5:i,6:i+" const class extends export import super"},o=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄮㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿪ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",c=new RegExp("["+s+"]"),l=new RegExp("["+s+u+"]");s=u=null;var d=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,55,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,698,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,1,31,6124,20,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],f=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,19719,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function p(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}}function h(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,d)))}function m(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&(p(e,d)||p(e,f)))))}var g=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function y(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},b={startsExpr:!0},C={};function S(e,t){return void 0===t&&(t={}),t.keyword=e,C[e]=new g(e,t)}var A={num:new g("num",b),regexp:new g("regexp",b),string:new g("string",b),name:new g("name",b),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",v),semi:new g(";",v),colon:new g(":",v),dot:new g("."),question:new g("?",v),arrow:new g("=>",v),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",v),backQuote:new g("`",b),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("/<=/>=",7),bitShift:y("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),_break:S("break"),_case:S("case",v),_catch:S("catch"),_continue:S("continue"),_debugger:S("debugger"),_default:S("default",v),_do:S("do",{isLoop:!0,beforeExpr:!0}),_else:S("else",v),_finally:S("finally"),_for:S("for",{isLoop:!0}),_function:S("function",b),_if:S("if"),_return:S("return",v),_switch:S("switch"),_throw:S("throw",v),_try:S("try"),_var:S("var"),_const:S("const"),_while:S("while",{isLoop:!0}),_with:S("with"),_new:S("new",{beforeExpr:!0,startsExpr:!0}),_this:S("this",b),_super:S("super",b),_class:S("class",b),_extends:S("extends",v),_export:S("export"),_import:S("import"),_null:S("null",b),_true:S("true",b),_false:S("false",b),_in:S("in",{beforeExpr:!0,binop:7}),_instanceof:S("instanceof",{beforeExpr:!0,binop:7}),_typeof:S("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:S("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:S("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},E=/\r\n?|\n|\u2028|\u2029/,N=new RegExp(E.source,"g");function I(e){return 10===e||13===e||8232===e||8233===e}var _=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,D=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,x=Object.prototype,F=x.hasOwnProperty,T=x.toString;function M(e,t){return F.call(e,t)}var w=Array.isArray||function(e){return"[object Array]"===T.call(e)},B=function(e,t){this.line=e,this.column=t};B.prototype.offset=function(e){return new B(this.line,this.column+e)};var k=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function R(e,t){for(var n=1,r=0;;){N.lastIndex=r;var i=N.exec(e);if(!(i&&i.index=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),w(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return w(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,o,s){var u={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(u.loc=new k(this,o,s)),e.ranges&&(u.range=[i,a]),t.push(u)}}(t,t.onComment)),t}var j={};function L(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var G=function(e,t,n){this.options=e=P(e),this.sourceFile=e.sourceFile,this.keywords=L(a[e.ecmaVersion>=6?6:5]);var i="";if(!e.allowReserved){for(var o=e.ecmaVersion;!(i=r[o]);o--);"module"==e.sourceType&&(i+=" await")}this.reservedWords=L(i);var s=(i?i+" ":"")+r.strict;this.reservedWordsStrict=L(s),this.reservedWordsStrictBind=L(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,this.loadPlugins(e.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(E).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=A.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope(),this.regexpState=null};G.prototype.isKeyword=function(e){return this.keywords.test(e)},G.prototype.isReservedWord=function(e){return this.reservedWords.test(e)},G.prototype.extend=function(e,t){this[e]=t(this[e])},G.prototype.loadPlugins=function(e){for(var t in e){var n=j[t];if(!n)throw new Error("Plugin '"+t+"' not found");n(this,e[t])}},G.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var V=G.prototype,U=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function z(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}V.strictDirective=function(e){for(;;){D.lastIndex=e,e+=D.exec(this.input)[0].length;var t=U.exec(this.input.slice(e));if(!t)return!1;if("use strict"==(t[1]||t[2]))return!0;e+=t[0].length}},V.eat=function(e){return this.type===e&&(this.next(),!0)},V.isContextual=function(e){return this.type===A.name&&this.value===e&&!this.containsEsc},V.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},V.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},V.canInsertSemicolon=function(){return this.type===A.eof||this.type===A.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))},V.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},V.semicolon=function(){this.eat(A.semi)||this.insertSemicolon()||this.unexpected()},V.afterTrailingComma=function(e,t){if(this.type==e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},V.expect=function(e){this.eat(e)||this.unexpected()},V.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},V.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},V.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},V.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var W={kind:"loop"},J={kind:"switch"};H.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;D.lastIndex=this.pos;var e=D.exec(this.input),t=this.pos+e[0].length,n=this.input.charCodeAt(t);if(91===n||123==n)return!0;if(h(n,!0)){for(var r=t+1;m(this.input.charCodeAt(r),!0);)++r;var i=this.input.slice(t,r);if(!o.test(i))return!0}return!1},H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;D.lastIndex=this.pos;var e=D.exec(this.input),t=this.pos+e[0].length;return!(E.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!=this.input.length&&m(this.input.charAt(t+8)))},H.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet()&&(i=A._var,r="let"),i){case A._break:case A._continue:return this.parseBreakContinueStatement(a,i.keyword);case A._debugger:return this.parseDebuggerStatement(a);case A._do:return this.parseDoStatement(a);case A._for:return this.parseForStatement(a);case A._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1);case A._class:return e||this.unexpected(),this.parseClass(a,!0);case A._if:return this.parseIfStatement(a);case A._return:return this.parseReturnStatement(a);case A._switch:return this.parseSwitchStatement(a);case A._throw:return this.parseThrowStatement(a);case A._try:return this.parseTryStatement(a);case A._const:case A._var:return r=r||this.value,e||"var"==r||this.unexpected(),this.parseVarStatement(a,r);case A._while:return this.parseWhileStatement(a);case A._with:return this.parseWithStatement(a);case A.braceL:return this.parseBlock();case A.semi:return this.parseEmptyStatement(a);case A._export:case A._import:return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===A._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e||this.unexpected(),this.next(),this.parseFunctionStatement(a,!0);var o=this.value,s=this.parseExpression();return i===A.name&&"Identifier"===s.type&&this.eat(A.colon)?this.parseLabeledStatement(a,o,s):this.parseExpressionStatement(a,s)}},H.parseBreakContinueStatement=function(e,t){var n="break"==t;this.next(),this.eat(A.semi)||this.insertSemicolon()?e.label=null:this.type!==A.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(A.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},H.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.inAsync&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W),this.enterLexicalScope(),this.expect(A.parenL),this.type===A.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===A._var||this.type===A._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===A._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(t>-1&&this.unexpected(t),this.parseFor(e,r)):(this.options.ecmaVersion>=9&&(this.type===A._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r))}var a=new z,o=this.parseExpression(!0,a);return this.type===A._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===A._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},H.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},H.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.type==A._function),e.alternate=this.eat(A._else)?this.parseStatement(!this.strict&&this.type==A._function):null,this.finishNode(e,"IfStatement")},H.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(A.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},H.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(A.braceL),this.labels.push(J),this.enterLexicalScope();for(var n=!1;this.type!=A.braceR;)if(this.type===A._case||this.type===A._default){var r=this.type===A._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(A.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},H.parseThrowStatement=function(e){return this.next(),E.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var K=[];H.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===A._catch){var t=this.startNode();this.next(),this.expect(A.parenL),t.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(t.param,"let"),this.expect(A.parenR),t.body=this.parseBlock(!1),this.exitLexicalScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(A._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},H.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},H.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(W),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},H.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},H.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},H.parseLabeledStatement=function(e,t,n){for(var r=0,i=this.labels;r=0;o--){var s=this.labels[o];if(s.statementStart!=e.start)break;s.statementStart=this.start,s.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(!0),("ClassDeclaration"==e.body.type||"VariableDeclaration"==e.body.type&&"var"!=e.body.kind||"FunctionDeclaration"==e.body.type&&(this.strict||e.body.generator))&&this.raiseRecoverable(e.body.start,"Invalid labeled declaration"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},H.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},H.parseBlock=function(e){void 0===e&&(e=!0);var t=this.startNode();for(t.body=[],this.expect(A.braceL),e&&this.enterLexicalScope();!this.eat(A.braceR);){var n=this.parseStatement(!0);t.body.push(n)}return e&&this.exitLexicalScope(),this.finishNode(t,"BlockStatement")},H.parseFor=function(e,t){return e.init=t,this.expect(A.semi),e.test=this.type===A.semi?null:this.parseExpression(),this.expect(A.semi),e.update=this.type===A.parenR?null:this.parseExpression(),this.expect(A.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},H.parseForIn=function(e,t){var n=this.type===A._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"==n&&("AssignmentPattern"===t.type||"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(this.strict||"Identifier"!==t.declarations[0].id.type))&&this.raise(t.start,"Invalid assignment in for-in loop head"),e.left=t,e.right="ForInStatement"==n?this.parseExpression():this.parseMaybeAssign(),this.expect(A.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},H.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(A.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===A._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"==r.id.type||t&&(this.type===A._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(A.comma))break}return e},H.parseVarId=function(e,t){e.id=this.parseBindingAtom(t),this.checkLVal(e.id,t,!1)},H.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(e.generator=this.eat(A.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&&(e.id="nullableID"===t&&this.type!=A.name?null:this.parseIdent(),e.id&&this.checkLVal(e.id,"var"));var i=this.inGenerator,a=this.inAsync,o=this.yieldPos,s=this.awaitPos,u=this.inFunction;return this.inGenerator=e.generator,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),t||(e.id=this.type==A.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=i,this.inAsync=a,this.yieldPos=o,this.awaitPos=s,this.inFunction=u,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},H.parseFunctionParams=function(e){this.expect(A.parenL),e.params=this.parseBindingList(A.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(e,t){this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),r=!1;for(n.body=[],this.expect(A.braceL);!this.eat(A.braceR);){var i=this.parseClassMember(n);i&&"MethodDefinition"===i.type&&"constructor"===i.kind&&(r&&this.raise(i.start,"Duplicate constructor in the same class"),r=!0)}return e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},H.parseClassMember=function(e){var t=this;if(this.eat(A.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,a=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===A.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,a),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(A.star),a=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(A.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var o=n.key;return n.computed||n.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?n.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),a&&this.raise(o.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(e,n,i,a),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},H.parseClassMethod=function(e,t,n,r){t.value=this.parseMethod(n,r),e.body.push(this.finishNode(t,"MethodDefinition"))},H.parseClassId=function(e,t){e.id=this.type===A.name?this.parseIdent():!0===t?this.unexpected():null},H.parseClassSuper=function(e){e.superClass=this.eat(A._extends)?this.parseExprSubscripts():null},H.parseExport=function(e,t){if(this.next(),this.eat(A.star))return this.expectContextual("from"),this.type!==A.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(A._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===A._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===A._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(!0),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==A.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];if(o)("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,"Redefinition of property");else o=t[r]={init:!1,get:!1,set:!1};o[a]=!0}}},$.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===A.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(A.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},$.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new z,r=!0);var o=this.start,s=this.startLoc;this.type!=A.parenL&&this.type!=A.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,o,s)),this.type.isAssign){var c=this.startNodeAt(o,s);return c.operator=this.value,c.left=this.type===A.eq?this.toAssignable(u,!1,t):u,r||z.call(t),t.shorthandAssign=-1,this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),u},$.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(A.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(A.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},$.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:i.start==n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},$.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==A._in)&&a>r){var o=this.type===A.logicalOR||this.type===A.logicalAND,s=this.value;this.next();var u=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),u,c,a,i),d=this.buildBinary(t,n,e,l,s,o);return this.parseExprOp(d,t,n,r,i)}return e},$.buildBinary=function(e,t,n,r,i,a){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},$.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.inAsync&&this.isContextual("await"))n=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===A.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(a,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,i);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(A.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},$.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||i)return r;var a=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1)),a},$.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd==e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end),a=void 0;;)if((a=this.eat(A.bracketL))||this.eat(A.dot)){var o=this.startNodeAt(t,n);o.object=e,o.property=a?this.parseExpression():this.parseIdent(!0),o.computed=!!a,a&&this.expect(A.bracketR),e=this.finishNode(o,"MemberExpression")}else if(!r&&this.eat(A.parenL)){var s=new z,u=this.yieldPos,c=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var l=this.parseExprList(A.parenR,this.options.ecmaVersion>=8,!1,s);if(i&&!this.canInsertSemicolon()&&this.eat(A.arrow))return this.checkPatternErrors(s,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=c,this.parseArrowExpression(this.startNodeAt(t,n),l,!0);this.checkExpressionErrors(s,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=c||this.awaitPos;var d=this.startNodeAt(t,n);d.callee=e,d.arguments=l,e=this.finishNode(d,"CallExpression")}else{if(this.type!==A.backQuote)return e;var f=this.startNodeAt(t,n);f.tag=e,f.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(f,"TaggedTemplateExpression")}},$.parseExprAtom=function(e){var t,n=this.potentialArrowAt==this.start;switch(this.type){case A._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),t=this.startNode(),this.next(),this.type!==A.dot&&this.type!==A.bracketL&&this.type!==A.parenL&&this.unexpected(),this.finishNode(t,"Super");case A._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case A.name:var r=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(this.type!==A.name);if(this.options.ecmaVersion>=8&&!a&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(A._function))return this.parseFunction(this.startNodeAt(r,i),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(A.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===A.name&&!a)return o=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(A.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case A.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case A.num:case A.string:return this.parseLiteral(this.value);case A._null:case A._true:case A._false:return(t=this.startNode()).value=this.type===A._null?null:this.type===A._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case A.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case A.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(A.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case A.braceL:return this.parseObj(!1,e);case A._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case A._class:return this.parseClass(this.startNode(),!1);case A._new:return this.parseNew();case A.backQuote:return this.parseTemplate();default:this.unexpected()}},$.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},$.parseParenExpression=function(){this.expect(A.parenL);var e=this.parseExpression();return this.expect(A.parenR),e},$.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,s=this.startLoc,u=[],c=!0,l=!1,d=new z,f=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==A.parenR;){if(c?c=!1:this.expect(A.comma),i&&this.afterTrailingComma(A.parenR,!0)){l=!0;break}if(this.type===A.ellipsis){a=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===A.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.start,m=this.startLoc;if(this.expect(A.parenR),e&&!this.canInsertSemicolon()&&this.eat(A.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,u);u.length&&!l||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,u.length>1?((t=this.startNodeAt(o,s)).expressions=u,this.finishNodeAt(t,"SequenceExpression",h,m)):t=u[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},$.parseParenItem=function(e){return e},$.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Y=[];$.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(A.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||n)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(A.parenL)?e.arguments=this.parseExprList(A.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Y,this.finishNode(e,"NewExpression")},$.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===A.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===A.backQuote,this.finishNode(n,"TemplateElement")},$.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.expect(A.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(A.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},$.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===A.name||this.type===A.num||this.type===A.string||this.type===A.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===A.star)&&!E.test(this.input.slice(this.lastTokEnd,this.start))},$.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(A.braceR);){if(r)r=!1;else if(this.expect(A.comma),this.afterTrailingComma(A.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},$.parseProperty=function(e,t){var n,r,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(A.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===A.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===A.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===A.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(A.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(A.star),this.parsePropertyName(o,t)):r=!1,this.parsePropertyValue(o,e,n,r,i,a,t,s),this.finishNode(o,"Property")},$.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===A.colon&&this.unexpected(),this.eat(A.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===A.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type==A.comma||this.type==A.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?(this.checkUnreserved(e.key),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,e.key):this.type===A.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u="get"===e.kind?0:1;if(e.value.params.length!==u){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},$.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(A.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(A.bracketR),e.key;e.computed=!1}return e.key=this.type===A.num||this.type===A.string?this.parseExprAtom():this.parseIdent(!0)},$.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},$.parseMethod=function(e,t){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,a=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(A.parenL),n.params=this.parseBindingList(A.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=a,this.awaitPos=o,this.inFunction=s,this.finishNode(n,"FunctionExpression")},$.parseArrowExpression=function(e,t,n){var r=this.inGenerator,i=this.inAsync,a=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.enterFunctionScope(),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inGenerator=!1,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=a,this.awaitPos=o,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},$.parseFunctionBody=function(e,t){var n=t&&this.type!==A.braceL,r=this.strict,i=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!a||(i=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!r&&!i&&!t&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=o}this.exitFunctionScope(),this.strict&&e.id&&this.checkLVal(e.id,"none"),this.strict=r},$.isSimpleParamList=function(e){for(var t=0,n=e;t0;)t[n]=arguments[n+1];for(var r=0,i=t;r=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ae.updateContext=function(e){var t,n=this.type;n.keyword&&e==A.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},A.parenR.updateContext=A.braceR.updateContext=function(){if(1!=this.context.length){var e=this.context.pop();e===ie.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},A.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ie.b_stat:ie.b_expr),this.exprAllowed=!0},A.dollarBraceL.updateContext=function(){this.context.push(ie.b_tmpl),this.exprAllowed=!0},A.parenL.updateContext=function(e){var t=e===A._if||e===A._for||e===A._with||e===A._while;this.context.push(t?ie.p_stat:ie.p_expr),this.exprAllowed=!0},A.incDec.updateContext=function(){},A._function.updateContext=A._class.updateContext=function(e){e.beforeExpr&&e!==A.semi&&e!==A._else&&(e!==A.colon&&e!==A.braceL||this.curContext()!==ie.b_stat)?this.context.push(ie.f_expr):this.context.push(ie.f_stat),this.exprAllowed=!1},A.backQuote.updateContext=function(){this.curContext()===ie.q_tmpl?this.context.pop():this.context.push(ie.q_tmpl),this.exprAllowed=!1},A.star.updateContext=function(e){if(e==A._function){var t=this.context.length-1;this.context[t]===ie.f_expr?this.context[t]=ie.f_expr_gen:this.context[t]=ie.f_gen}this.exprAllowed=!0},A.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&("of"==this.value&&!this.exprAllowed||"yield"==this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var oe={$LONE:["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"],General_Category:["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],Script:["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Warang_Citi","Wara","Yi","Yiii","Zanabazar_Square","Zanb"]};Array.prototype.push.apply(oe.$LONE,oe.General_Category),oe.gc=oe.General_Category,oe.sc=oe.Script_Extensions=oe.scx=oe.Script;var se=G.prototype,ue=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function ce(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function le(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function de(e){return e>=65&&e<=90||e>=97&&e<=122}function fe(e){return de(e)||95===e}function pe(e){return fe(e)||he(e)}function he(e){return e>=48&&e<=57}function me(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ge(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function ye(e){return e>=48&&e<=55}ue.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},ue.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},ue.prototype.at=function(e){var t=this.source,n=t.length;if(e>=n)return-1;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?r:(r<<10)+t.charCodeAt(e+1)-56613888},ue.prototype.nextIndex=function(e){var t=this.source,n=t.length;if(e>=n)return n;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?e+1:e+2},ue.prototype.current=function(){return this.at(this.pos)},ue.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},ue.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},ue.prototype.eat=function(e){return this.current()===e&&(this.advance(),!0)},se.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r-1&&this.raise(e.start,"Duplicate regular expression flag")}},se.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},se.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},se.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},se.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},se.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},se.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},se.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},se.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!le(t)&&(e.lastIntValue=t,e.advance(),!0)},se.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!le(n);)e.advance();return e.pos!==t},se.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},se.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},se.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},se.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ce(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ce(e.lastIntValue);return!0}return!1},se.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return h(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},se.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return m(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},se.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},se.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},se.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},se.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},se.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},se.regexp_eatZero=function(e){return 48===e.current()&&!he(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},se.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},se.regexp_eatControlLetter=function(e){var t=e.current();return!!de(t)&&(e.lastIntValue=t%32,e.advance(),!0)},se.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t,n=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(e.switchU&&r>=55296&&r<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(r-55296)+(a-56320)+65536,!0}e.pos=i,e.lastIntValue=r}return!0}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((t=e.lastIntValue)>=0&&t<=1114111))return!0;e.switchU&&e.raise("Invalid unicode escape"),e.pos=n}return!1},se.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},se.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},se.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},se.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},se.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){oe.hasOwnProperty(t)&&-1!==oe[t].indexOf(n)||e.raise("Invalid property name")},se.regexp_validateUnicodePropertyNameOrValue=function(e,t){-1===oe.$LONE.indexOf(t)&&e.raise("Invalid property name")},se.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";fe(t=e.current());)e.lastStringValue+=ce(t),e.advance();return""!==e.lastStringValue},se.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";pe(t=e.current());)e.lastStringValue+=ce(t),e.advance();return""!==e.lastStringValue},se.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},se.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},se.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},se.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||ye(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},se.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},se.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!he(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},se.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},se.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;he(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},se.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;me(n=e.current());)e.lastIntValue=16*e.lastIntValue+ge(n),e.advance();return e.pos!==t},se.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},se.regexp_eatOctalDigit=function(e){var t=e.current();return ye(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},se.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r>10),56320+(1023&e)))}be.next=function(){this.options.onToken&&this.options.onToken(new ve(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},be.getToken=function(){return this.next(),new ve(this)},"undefined"!=typeof Symbol&&(be[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===A.eof,value:t}}}}),be.curContext=function(){return this.context[this.context.length-1]},be.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(A.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},be.readToken=function(e){return h(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},be.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},be.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(N.lastIndex=n;(e=N.exec(this.input))&&e.index8&&e<14||e>=5760&&_.test(String.fromCharCode(e))))break e;++this.pos}}},be.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},be.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(A.ellipsis)):(++this.pos,this.finishToken(A.dot))},be.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(A.assign,2):this.finishOp(A.slash,1)},be.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?A.star:A.modulo;return this.options.ecmaVersion>=7&&42==e&&42===t&&(++n,r=A.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(A.assign,n+1):this.finishOp(r,n)},be.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?A.logicalOR:A.logicalAND,2):61===t?this.finishOp(A.assign,2):this.finishOp(124===e?A.bitwiseOR:A.bitwiseAND,1)},be.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(A.assign,2):this.finishOp(A.bitwiseXOR,1)},be.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!=t||this.inModule||62!=this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!E.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(A.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(A.assign,2):this.finishOp(A.plusMin,1)},be.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(A.assign,n+1):this.finishOp(A.bitShift,n)):33!=t||60!=e||this.inModule||45!=this.input.charCodeAt(this.pos+2)||45!=this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(A.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},be.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(A.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(A.arrow)):this.finishOp(61===e?A.eq:A.prefix,1)},be.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(A.parenL);case 41:return++this.pos,this.finishToken(A.parenR);case 59:return++this.pos,this.finishToken(A.semi);case 44:return++this.pos,this.finishToken(A.comma);case 91:return++this.pos,this.finishToken(A.bracketL);case 93:return++this.pos,this.finishToken(A.bracketR);case 123:return++this.pos,this.finishToken(A.braceL);case 125:return++this.pos,this.finishToken(A.braceR);case 58:return++this.pos,this.finishToken(A.colon);case 63:return++this.pos,this.finishToken(A.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(A.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(A.prefix,1)}this.raise(this.pos,"Unexpected character '"+Ce(e)+"'")},be.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},be.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(E.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new ue(this));s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var u=null;try{u=new RegExp(i,o)}catch(e){}return this.finishToken(A.regexp,{pattern:i,flags:o,value:u})},be.readInt=function(e,t){for(var n=this.pos,r=0,i=0,a=null==t?1/0:t;i=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.pos,r=r*e+s}return this.pos===n||null!=t&&this.pos-n!==t?null:r},be.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(A.num,t)},be.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number"),n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(t,this.pos),a=n?parseInt(i,8):parseFloat(i);return this.finishToken(A.num,a)},be.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},be.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(I(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(A.string,t)};var Se={};be.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Se)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},be.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Se;this.raise(e,t)},be.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==A.template&&this.type!==A.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(A.template,e)):36===n?(this.pos+=2,this.finishToken(A.dollarBraceL)):(++this.pos,this.finishToken(A.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(I(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},be.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!=t&&57!=t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(t)}},be.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},be.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos",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";var r=n(432),i=/^[\da-fA-F]+$/,a=/^\d+$/;e.exports=function(e){var t=e.tokTypes,n=e.tokContexts;n.j_oTag=new e.TokContext("...",!0,!0),t.jsxName=new e.TokenType("jsxName"),t.jsxText=new e.TokenType("jsxText",{beforeExpr:!0}),t.jsxTagStart=new e.TokenType("jsxTagStart"),t.jsxTagEnd=new e.TokenType("jsxTagEnd"),t.jsxTagStart.updateContext=function(){this.context.push(n.j_expr),this.context.push(n.j_oTag),this.exprAllowed=!1},t.jsxTagEnd.updateContext=function(e){var r=this.context.pop();r===n.j_oTag&&e===t.slash||r===n.j_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===n.j_expr):this.exprAllowed=!0};var o=e.Parser.prototype;function s(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?s(e.object)+"."+s(e.property):void 0:e}return o.jsx_readToken=function(){for(var n="",r=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var i=this.input.charCodeAt(this.pos);switch(i){case 60:case 123:return this.pos===this.start?60===i&&this.exprAllowed?(++this.pos,this.finishToken(t.jsxTagStart)):this.getTokenFromCode(i):(n+=this.input.slice(r,this.pos),this.finishToken(t.jsxText,n));case 38:n+=this.input.slice(r,this.pos),n+=this.jsx_readEntity(),r=this.pos;break;default:e.isNewLine(i)?(n+=this.input.slice(r,this.pos),n+=this.jsx_readNewLine(!0),r=this.pos):++this.pos}}},o.jsx_readNewLine=function(e){var 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},o.jsx_readString=function(n){for(var r="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var a=this.input.charCodeAt(this.pos);if(a===n)break;38===a?(r+=this.input.slice(i,this.pos),r+=this.jsx_readEntity(),i=this.pos):e.isNewLine(a)?(r+=this.input.slice(i,this.pos),r+=this.jsx_readNewLine(!1),i=this.pos):++this.pos}return r+=this.input.slice(i,this.pos++),this.finishToken(t.string,r)},o.jsx_readEntity=function(){var e,t="",n=0,o=this.input[this.pos];"&"!==o&&this.raise(this.pos,"Entity must start with an ampersand");for(var s=++this.pos;this.pos")}return r.openingElement=a,r.closingElement=o,r.children=i,this.type===t.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,a.name?"JSXElement":"JSXFragment")},o.jsx_parseText=function(e){var t=this.parseLiteral(e);return t.type="JSXText",t},o.jsx_parseElement=function(){var e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)},e.plugins.jsx=function(r,i){i&&("object"!=typeof i&&(i={}),r.options.plugins.jsx={allowNamespaces:!1!==i.allowNamespaces,allowNamespacedObjects:!!i.allowNamespacedObjects},r.extend("parseExprAtom",function(e){return function(n){return this.type===t.jsxText?this.jsx_parseText(this.value):this.type===t.jsxTagStart?this.jsx_parseElement():e.call(this,n)}}),r.extend("readToken",function(r){return function(i){var a=this.curContext();if(a===n.j_expr)return this.jsx_readToken();if(a===n.j_oTag||a===n.j_cTag){if(e.isIdentifierStart(i))return this.jsx_readWord();if(62==i)return++this.pos,this.finishToken(t.jsxTagEnd);if((34===i||39===i)&&a==n.j_oTag)return this.jsx_readString(i)}return 60===i&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(t.jsxTagStart)):r.call(this,i)}}),r.extend("updateContext",function(e){return function(r){if(this.type==t.braceL){var i=this.curContext();i==n.j_oTag?this.context.push(n.b_expr):i==n.j_expr?this.context.push(n.b_tmpl):e.call(this,r),this.exprAllowed=!0}else{if(this.type!==t.slash||r!==t.jsxTagStart)return e.call(this,r);this.context.length-=2,this.context.push(n.j_cTag),this.exprAllowed=!1}}}))},e}},function(e,t,n){"use strict";var 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:function(e,t){var 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;var a=e.value;e.regex={flags:a.flags,pattern:a.pattern},e.value="/"+a.pattern+"/"+a.flags}return e},onToken:function(e,t){var n=this,i=this._acornTokTypes,a=t.tokens,o=this._tokens;function s(){a.push(function(e,t){var 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,t,n){"use strict";var r=n(156),i={trailingComments:[],leadingComments:[],bottomRightStack:[],previousNode:null};e.exports={reset:function(){i.trailingComments=[],i.leadingComments=[],i.bottomRightStack=[],i.previousNode=null},addComment:function(e){i.trailingComments.push(e),i.leadingComments.push(e)},processComment:function(e){var t,n,a,o;if(!(e.type===r.Program&&e.body.length>0)){for(i.trailingComments.length>0?i.trailingComments[0].range[0]>=e.range[1]?(n=i.trailingComments,i.trailingComments=[]):i.trailingComments.length=0:i.bottomRightStack.length>0&&i.bottomRightStack[i.bottomRightStack.length-1].trailingComments&&i.bottomRightStack[i.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(n=i.bottomRightStack[i.bottomRightStack.length-1].trailingComments,delete i.bottomRightStack[i.bottomRightStack.length-1].trailingComments);i.bottomRightStack.length>0&&i.bottomRightStack[i.bottomRightStack.length-1].range[0]>=e.range[0];)t=i.bottomRightStack.pop();if(t){if(t.leadingComments)if(t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0])e.leadingComments=t.leadingComments,delete t.leadingComments;else for(a=t.leadingComments.length-2;a>=0;--a)if(t.leadingComments[a].range[1]<=e.range[0]){e.leadingComments=t.leadingComments.splice(0,a+1);break}}else if(i.leadingComments.length>0)if(i.leadingComments[i.leadingComments.length-1].range[1]<=e.range[0]){if(i.previousNode)for(o=0;o0&&(e.leadingComments=i.leadingComments,i.leadingComments=[])}else{for(a=0;ae.range[0]);a++);e.leadingComments=i.leadingComments.slice(0,a),0===e.leadingComments.length&&delete e.leadingComments,0===(n=i.leadingComments.slice(a)).length&&(n=null)}i.previousNode=e,n&&(e.trailingComments=n),i.bottomRightStack.push(e)}}}},function(e){e.exports={name:"escodegen-wallaby",description:"ECMAScript code generator with JSX support",homepage:"http://github.com/wallabyjs/escodegen",main:"escodegen.js",bin:{esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},files:["LICENSE.BSD","LICENSE.source-map","README.md","bin","escodegen.js","package.json"],version:"1.6.18",engines:{node:">=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){(function(e){if("function"!=typeof t)var t=n(101)(e,n(100));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()||"")},c=1,l=0,d=null;return t.eachMapping(function(e){if(null!==d){if(!(c0&&(d&&f(d,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 f(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)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(85)(e))},function(e,t,n){(function(e){if("function"!=typeof t)var t=n(101)(e,n(100));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 c=t.source;null==c||s.has(c)||s.add(c);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,c="",l=this._mappings.toArray(),d=0,f=l.length;d0){if(!i.compareByGeneratedPositions(e,l[d-1]))continue;c+=","}c+=r.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(c+=r.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),c+=r.encode(e.originalLine-1-o),o=e.originalLine-1,c+=r.encode(e.originalColumn-a),a=e.originalColumn,null!=e.name&&(c+=r.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return c},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(85)(e))},function(e,t,n){t.SourceMapGenerator=n(439).SourceMapGenerator,t.SourceMapConsumer=n(438).SourceMapConsumer,t.SourceNode=n(437).SourceNode},function(e,t,n){!function(){"use strict";var t=n(158);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){!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";t.ast=n(442),t.code=n(158),t.keyword=n(441)}()},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,c,l;(r=Array.isArray)||(r=function(e){return"[object Array]"===Object.prototype.toString.call(e)});function d(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?d(n):n);return r}function f(e,t){this.parent=e,this.key=t}function p(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function h(){}function m(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function g(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function y(e,t){var n=new h;return n.traverse(e,t)}function v(e,t){var n;return n=function(e,t){var n,r,i,a;r=e.length,i=0;for(;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:c={},Remove:l={}},f.prototype.replace=function(e){this.parent[this.key]=e},f.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(b=o[f=v[h]])if(r(b)){for(y=b.length;(y-=1)>=0;)if(b[y]){if(g(l,v[h]))a=new p(b[y],[f,y],"Property",null);else{if(!m(b[y]))continue;a=new p(b[y],[f,y],null,null)}n.push(a)}}else m(b)&&n.push(new p(b,f,null,null))}}else if(a=i.pop(),d=this.__execute(t.leave,a),this.__state===u||d===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[N=C[v]])if(r(S)){for(b=S.length;(b-=1)>=0;)if(S[b]){if(g(d,C[v]))y=new p(S[b],[N,b],"Property",new f(S,b));else{if(!m(S[b]))continue;y=new p(S[b],[N,b],null,new f(S,b))}i.push(y)}}else m(S)&&i.push(new p(S,N,null,new f(o,N)))}}else if(y=a.pop(),void 0!==(h=this.__execute(t.leave,y))&&h!==u&&h!==c&&h!==l&&y.ref.replace(h),this.__state!==l&&h!==l||n(y),this.__state===u||h===u)return E.root;return E.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){var r=n(61),i=n(73);n(67)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(445),e.exports=n(16).Object.keys},function(e){e.exports={name:"estraverse",description:"ECMAScript JS AST traversal functions",homepage:"https://github.com/estools/estraverse",main:"estraverse.js",version:"4.2.0",engines:{node:">=0.10.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-es2015":"^6.3.13","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.2.1",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){var r=n(48),i=n(88).f;n(67)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){n(448);var r=n(16).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},function(e,t,n){var r=n(61),i=n(72);n(67)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){n(450),e.exports=n(16).Object.getPrototypeOf},function(e,t,n){e.exports=n(451)},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,t,n){n(106)("observable")},function(e,t,n){n(106)("asyncIterator")},function(e,t,n){var r=n(73),i=n(105),a=n(87);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),u=a.f,c=0;s.length>c;)u.call(e,o=s[c++])&&t.push(o);return t}},function(e,t,n){"use strict";var r=n(33),i=n(37),a=n(35),o=n(27),s=n(116),u=n(60).KEY,c=n(38),l=n(90),d=n(86),f=n(89),p=n(30),h=n(107),m=n(106),g=n(456),y=n(171),v=n(26),b=n(25),C=n(48),S=n(127),A=n(74),E=n(92),N=n(160),I=n(88),_=n(32),D=n(73),x=I.f,F=_.f,T=N.f,M=r.Symbol,w=r.JSON,B=w&&w.stringify,k=p("_hidden"),R=p("toPrimitive"),O={}.propertyIsEnumerable,P=l("symbol-registry"),j=l("symbols"),L=l("op-symbols"),G=Object.prototype,V="function"==typeof M,U=r.QObject,z=!U||!U.prototype||!U.prototype.findChild,H=a&&c(function(){return 7!=E(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=x(G,t);r&&delete G[t],F(e,t,n),r&&e!==G&&F(G,t,r)}:F,W=function(e){var t=j[e]=E(M.prototype);return t._k=e,t},J=V&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},K=function(e,t,n){return e===G&&K(L,t,n),v(e),t=S(t,!0),v(n),i(j,t)?(n.enumerable?(i(e,k)&&e[k][t]&&(e[k][t]=!1),n=E(n,{enumerable:A(0,!1)})):(i(e,k)||F(e,k,A(1,{})),e[k][t]=!0),H(e,t,n)):F(e,t,n)},q=function(e,t){v(e);for(var n,r=g(t=C(t)),i=0,a=r.length;a>i;)K(e,n=r[i++],t[n]);return e},$=function(e){var t=O.call(this,e=S(e,!0));return!(this===G&&i(j,e)&&!i(L,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,k)&&this[k][e])||t)},Y=function(e,t){if(e=C(e),t=S(t,!0),e!==G||!i(j,t)||i(L,t)){var n=x(e,t);return!n||!i(j,t)||i(e,k)&&e[k][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=T(C(e)),r=[],a=0;n.length>a;)i(j,t=n[a++])||t==k||t==u||r.push(t);return r},X=function(e){for(var t,n=e===G,r=T(n?L:C(e)),a=[],o=0;r.length>o;)!i(j,t=r[o++])||n&&!i(G,t)||a.push(j[t]);return a};V||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(L,n),i(this,k)&&i(this[k],e)&&(this[k][e]=!1),H(this,e,A(1,n))};return a&&z&&H(G,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),I.f=Y,_.f=K,n(159).f=N.f=Z,n(87).f=$,n(105).f=X,a&&!n(117)&&s(G,"propertyIsEnumerable",$,!0),h.f=function(e){return W(p(e))}),o(o.G+o.W+o.F*!V,{Symbol:M});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)p(Q[ee++]);for(var te=D(p.store),ne=0;te.length>ne;)m(te[ne++]);o(o.S+o.F*!V,"Symbol",{for:function(e){return i(P,e+="")?P[e]:P[e]=M(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in P)if(P[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),o(o.S+o.F*!V,"Object",{create:function(e,t){return void 0===t?E(e):q(E(e),t)},defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z,getOwnPropertySymbols:X}),w&&o(o.S+o.F*(!V||c(function(){var e=M();return"[null]"!=B([e])||"{}"!=B({a:e})||"{}"!=B(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!J(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,B.apply(w,r)}}),M.prototype[R]||n(42)(M.prototype,R,M.prototype.valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){n(457),n(119),n(455),n(454),e.exports=n(16).Symbol},function(e,t,n){e.exports=n(458)},function(e,t,n){n(63),n(71),e.exports=n(107).f("iterator")},function(e,t,n){e.exports=n(460)},function(e,t,n){"use strict";var r=n(0),i=r(n(2)),a=r(n(11)),o=r(n(3)),s=r(n(10)),u=r(n(9)),c=r(n(7)),l=r(n(6)),d=r(n(5)),f=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=(0,d.default)(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&&(0,c.default)(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 h=n(1),m=p(n(24)),g=n(104),y=n(13),v=n(14),b=function(e){function t(){return(0,i.default)(this,t),(0,s.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,o.default)(t,[{key:"extract",value:function(e,t){if(!y.NodeGuards.isIdentifierNode(t))return null;var n=this.getCalleeBlockStatement(v.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name);return n?{callee:n,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var n=null;return m.traverse(e,{enter:function(e){if(y.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return n=e.body,m.VisitorOption.Break}}),n}}]),(0,a.default)(t,e),t}(g.AbstractCalleeDataExtractor);b=f([h.injectable()],b),t.FunctionDeclarationCalleeDataExtractor=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(1),a=n(4),o=n(161),s=n(462),u=n(426),c=n(425),l=n(422);t.analyzersModule=new i.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(l.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(o.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(u.FunctionExpressionCalleeDataExtractor).whenTargetNamed(o.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.ObjectExpressionCalleeDataExtractor).whenTargetNamed(o.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(r.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},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;r0?t._map.set(r,i):t._map.delete(r)})},e.prototype.hasKey=function(e){if(null===e||void 0===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=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(36),i=n(163),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=n(476),i=n(109),a=n(108),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(29),i=n(36),a=n(477),o=n(163),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(29),i=n(36),a=n(22);t.resolveInstance=function(e,t,n){var o,s,u=null;if(t.length>0){var c=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument}).map(n);s=c,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(29),i=n(36),a=n(166),o=n(68),s=n(479),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}},c=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,a=t.childRequests,l=t.target&&t.target.isArray(),d=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&d)return a.map(function(t){return c(e)(t)});var f=null;if(!t.target.isOptional()||0!==n.length){var p=n[0],h=p.scope===i.BindingScopeEnum.Singleton,m=p.scope===i.BindingScopeEnum.Request;if(h&&p.activated)return p.cache;if(m&&null!==e&&e.has(p.guid))return e.get(p.guid);if(p.type===i.BindingTypeEnum.ConstantValue)f=p.cache;else if(p.type===i.BindingTypeEnum.Function)f=p.cache;else if(p.type===i.BindingTypeEnum.Constructor)f=p.implementationType;else if(p.type===i.BindingTypeEnum.DynamicValue&&null!==p.dynamicValue)f=u("toDynamicValue",p.serviceIdentifier,function(){return p.dynamicValue(t.parentContext)});else if(p.type===i.BindingTypeEnum.Factory&&null!==p.factory)f=u("toFactory",p.serviceIdentifier,function(){return p.factory(t.parentContext)});else if(p.type===i.BindingTypeEnum.Provider&&null!==p.provider)f=u("toProvider",p.serviceIdentifier,function(){return p.provider(t.parentContext)});else{if(p.type!==i.BindingTypeEnum.Instance||null===p.implementationType){var g=o.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+g)}f=s.resolveInstance(p.implementationType,a,c(e))}return"function"==typeof p.onActivation&&(f=p.onActivation(t.parentContext,f)),h&&(p.cache=f,p.activated=!0),m&&null!==e&&!e.has(p.guid)&&e.set(p.guid,f),f}}};t.resolve=function(e){return c(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(47),i=function(){function e(e,t,n,i,a){this.guid=r.guid(),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=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(165),i=n(29),a=n(36),o=n(22),s=n(68);t.getFunctionName=s.getFunctionName;var u=n(164);function c(e,t,n,r){var o=e.getConstructorMetadata(n),s=o.compilerGeneratedMetadata;if(void 0===s){var c=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(c)}var f=o.userGeneratedMetadata,p=Object.keys(f),h=function(e,t,n,r,i){for(var a=[],o=0;o0?p.length:n.length),m=function e(t,n){var r=t.getPropertiesMetadata(n);var i=[];var o=Object.keys(r);for(var s=0,c=o;s0?l:e(t,r)}return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){this.parentContext=e,this.rootRequest=t}}();t.Plan=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(47),i=function(){function e(e){this.guid=r.guid(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(486),i=n(29),a=n(36),o=n(22),s=n(166),u=n(68),c=n(485),l=n(31),d=n(484),f=n(483),p=n(481),h=n(164);function m(e){return e._bindingDictionary}function g(e,t,n,a,o){var s=y(n.container,o.serviceIdentifier),c=[];return s.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof o.serviceIdentifier&&e.getConstructorMetadata(o.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(o.serviceIdentifier).toSelf(),s=y(n.container,o.serviceIdentifier)),c=t?s:s.filter(function(e){var t=new p.Request(e.serviceIdentifier,n,a,e,o);return e.constraint(t)}),function(e,t,n,a){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var o=u.getServiceIdentifierAsString(e),s=i.NOT_REGISTERED;throw s+=u.listMetadataForTarget(o,n),s+=u.listRegisteredBindingsForServiceIdentifier(a,o,y),new Error(s);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;var o=u.getServiceIdentifierAsString(e),s=i.AMBIGUOUS_MATCH+" "+o;throw s+=u.listRegisteredBindingsForServiceIdentifier(a,o,y),new Error(s)}}(o.serviceIdentifier,c,o,n.container),c}function y(e,t){var n=[],r=m(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=y(e.parent,t)),n}t.getBindingDictionary=m,t.plan=function(e,t,n,r,m,y,v,b){void 0===b&&(b=!1);var C=new c.Context(t),S=function(e,t,n,r,i,a){var s=e?o.MULTI_INJECT_TAG:o.INJECT_TAG,u=new l.Metadata(s,n),c=new h.Target(t,r,n,u);if(void 0!==i){var d=new l.Metadata(i,a);c.metadata.push(d)}return c}(n,r,m,"",y,v);try{return function e(t,n,r,o,s,u){var c,l;if(null===s){c=g(t,n,o,null,u),l=new p.Request(r,o,null,c,u);var h=new d.Plan(o,l);o.addPlan(h)}else c=g(t,n,o,s,u),l=s.addChildRequest(u.serviceIdentifier,c,u);c.forEach(function(n){var r=null;if(u.isArray())r=l.addChildRequest(n.serviceIdentifier,n,u);else{if(n.cache)return;r=l}if(n.type===a.BindingTypeEnum.Instance&&null!==n.implementationType){var s=f.getDependencies(t,n.implementationType);if(!o.container.options.skipBaseClassChecks){var c=f.getBaseClassDependencyCount(t,n.implementationType);if(s.length0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(92),i=n(74),a=n(86),o={};n(42)(o,n(30)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(122),i=n(123);e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===c||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){n(119),n(63),n(71),n(175),n(493),n(491),n(490),e.exports=n(16).Map},function(e,t,n){var r=n(25),i=n(26),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(50)(Function.call,n(88).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var r=n(27);r(r.S,"Object",{setPrototypeOf:n(502).set})},function(e,t,n){n(503),e.exports=n(16).Object.setPrototypeOf},function(e,t,n){e.exports=n(504)},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var r=n(75),i=n(25),a=n(506),o=[].slice,s={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),u=function(){var r=n.concat(o.call(arguments));return this instanceof u?function(e,t,n){if(!(t in s)){for(var r=[],i=0;il;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(32),i=n(26),a=n(73);e.exports=n(35)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var r=n(27),i=n(92),a=n(75),o=n(26),s=n(25),u=n(38),c=n(507),l=(n(33).Reflect||{}).construct,d=u(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),f=!u(function(){l(function(){})});r(r.S+r.F*(d||f),"Reflect",{construct:function(e,t){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(f&&!d)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,p=i(s(u)?u:Object.prototype),h=Function.apply.call(e,p,t);return s(h)?h:p}})},function(e,t,n){n(512),e.exports=n(16).Reflect.construct},function(e,t,n){e.exports=n(513)},function(e,t,n){var r=n(514),i=n(177);function a(t,n,o){return"undefined"!=typeof Reflect&&r?e.exports=a=r:e.exports=a=function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&i(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t,n){(function(e,t){ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use diff --git a/dist/index.cli.js b/dist/index.cli.js index 241a568b..5d84a97c 100644 --- a/dist/index.cli.js +++ b/dist/index.cli.js @@ -21,5 +21,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -require("source-map-support").install(),module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=220)}([function(e,t){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},function(e,t){e.exports=require("inversify")},function(e,t){e.exports=require("@babel/runtime/helpers/classCallCheck")},function(e,t){e.exports=require("@babel/runtime/helpers/createClass")},function(e,t){e.exports=require("tslib")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Factory__ICalleeDataExtractor="Factory",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomNode="Factory",e.Factory__ICustomNodeGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscationResult="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__TControlFlowStorage="Factory",e.IArrayUtils="IArrayUtils",e.ICalleeDataExtractor="ICalleeDataExtractor",e.ICryptUtils="ICryptUtils",e.ICustomNode="ICustomNode",e.ICustomNodeGroup="ICustomNodeGroup",e.IControlFlowReplacer="IControlFlowReplacer",e.IEscapeSequenceEncoder="IEscapeSequenceEncoder",e.IIdentifierNamesGenerator="IIdentifierNamesGenerator",e.IIdentifierObfuscatingReplacer="IIdentifierObfuscatingReplacer",e.IJavaScriptObfuscator="IJavaScriptObfuscator",e.ILogger="ILogger",e.INodeGuard="INodeGuard",e.INodeTransformer="INodeTransformer",e.IObfuscationEventEmitter="IObfuscationEventEmitter",e.IObfuscationResult="IObfuscationResult",e.IOptions="IOptions",e.IOptionsNormalizer="IOptionsNormalizer",e.IObfuscatingReplacer="IObfuscatingReplacer",e.IRandomGenerator="IRandomGenerator",e.ISourceCode="ISourceCode",e.ISourceMapCorrector="ISourceMapCorrector",e.IStackTraceAnalyzer="IStackTraceAnalyzer",e.ITransformersRunner="ITransformersRunner",e.Newable__ICustomNode="Newable",e.Newable__TControlFlowStorage="Newable",e.TCustomNodeGroupStorage="TCustomNodeGroupStorage",e.TInputOptions="TInputOptions",e.TStringArrayStorage="TStringArrayStorage"}(t.ServiceIdentifiers||(t.ServiceIdentifiers={}))},function(e,t){e.exports=require("@babel/runtime/helpers/getPrototypeOf")},function(e,t){e.exports=require("@babel/runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("@babel/runtime/helpers/inherits")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(26),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"isArrayPatternNode",value:function(e){return e.type===i.NodeType.ArrayPattern}},{key:"isArrowFunctionExpressionNode",value:function(e){return e.type===i.NodeType.ArrowFunctionExpression}},{key:"isAssignmentExpressionNode",value:function(e){return e.type===i.NodeType.AssignmentExpression}},{key:"isAssignmentPatternNode",value:function(e){return e.type===i.NodeType.AssignmentPattern}},{key:"isAwaitExpressionNode",value:function(e){return e.type===i.NodeType.AwaitExpression}},{key:"isBlockStatementNode",value:function(e){return e.type===i.NodeType.BlockStatement}},{key:"isBreakStatementNode",value:function(e){return e.type===i.NodeType.BreakStatement}},{key:"isCallExpressionNode",value:function(e){return e.type===i.NodeType.CallExpression}},{key:"isCatchClauseNode",value:function(e){return e.type===i.NodeType.CatchClause}},{key:"isClassDeclarationNode",value:function(e){return e.type===i.NodeType.ClassDeclaration}},{key:"isContinueStatementNode",value:function(e){return e.type===i.NodeType.ContinueStatement}},{key:"isExportNamedDeclarationNode",value:function(e){return e.type===i.NodeType.ExportNamedDeclaration}},{key:"isExpressionStatementNode",value:function(e){return e.type===i.NodeType.ExpressionStatement}},{key:"isFunctionDeclarationNode",value:function(e){return e.type===i.NodeType.FunctionDeclaration}},{key:"isFunctionExpressionNode",value:function(e){return e.type===i.NodeType.FunctionExpression}},{key:"isIdentifierNode",value:function(e){return e.type===i.NodeType.Identifier}},{key:"isIfStatementNode",value:function(e){return e.type===i.NodeType.IfStatement}},{key:"isImportDeclarationNode",value:function(e){return e.type===i.NodeType.ImportDeclaration}},{key:"isImportDefaultSpecifierNode",value:function(e){return e.type===i.NodeType.ImportDefaultSpecifier}},{key:"isImportNamespaceSpecifierNode",value:function(e){return e.type===i.NodeType.ImportNamespaceSpecifier}},{key:"isImportSpecifierNode",value:function(e){return e.type===i.NodeType.ImportSpecifier}},{key:"isLabelIdentifierNode",value:function(t,r){var n=e.isLabeledStatementNode(r)&&r.label===t,o=e.isContinueStatementNode(r)&&r.label===t,a=e.isBreakStatementNode(r)&&r.label===t;return n||o||a}},{key:"isLabeledStatementNode",value:function(e){return e.type===i.NodeType.LabeledStatement}},{key:"isLiteralNode",value:function(e){return e.type===i.NodeType.Literal}},{key:"isMemberExpressionNode",value:function(e){return e.type===i.NodeType.MemberExpression}},{key:"isMethodDefinitionNode",value:function(e){return e.type===i.NodeType.MethodDefinition}},{key:"isNode",value:function(e){return e&&void 0!==!e.type}},{key:"isNodeHasBlockScope",value:function(t,r){return e.isProgramNode(t)||e.isBlockStatementNode(t)&&e.nodesWithBlockScope.includes(r.type)}},{key:"isNodeHasScope",value:function(t){return e.isProgramNode(t)||e.isBlockStatementNode(t)||e.isSwitchCaseNode(t)}},{key:"isNodeWithComments",value:function(e){return Boolean(e.leadingComments)||Boolean(e.trailingComments)}},{key:"isObjectPatternNode",value:function(e){return e.type===i.NodeType.ObjectPattern}},{key:"isObjectExpressionNode",value:function(e){return e.type===i.NodeType.ObjectExpression}},{key:"isProgramNode",value:function(e){return e.type===i.NodeType.Program}},{key:"isPropertyNode",value:function(e){return e.type===i.NodeType.Property}},{key:"isReplaceableIdentifierNode",value:function(t,r){if(!e.isIdentifierNode(t))return!1;var n=e.isPropertyNode(r)&&!r.computed&&r.key===t,o=e.isMemberExpressionNode(r)&&!r.computed&&r.property===t,a=e.isMethodDefinitionNode(r)&&!r.computed,i=e.isLabelIdentifierNode(t,r);return!(n||o||a||i)}},{key:"isRestElementNode",value:function(e){return e.type===i.NodeType.RestElement}},{key:"isReturnStatementNode",value:function(e){return e.type===i.NodeType.ReturnStatement}},{key:"isSuperNode",value:function(e){return e.type===i.NodeType.Super}},{key:"isSwitchCaseNode",value:function(e){return e.type===i.NodeType.SwitchCase}},{key:"isTaggedTemplateExpressionNode",value:function(e){return e.type===i.NodeType.TaggedTemplateExpression}},{key:"isTemplateLiteralNode",value:function(e){return e.type===i.NodeType.TemplateLiteral}},{key:"isUnaryExpressionNode",value:function(e){return e.type===i.NodeType.UnaryExpression}},{key:"isUseStrictOperator",value:function(e){return e.type===i.NodeType.ExpressionStatement&&"use strict"===e.directive}},{key:"isVariableDeclarationNode",value:function(e){return e.type===i.NodeType.VariableDeclaration}},{key:"isVariableDeclaratorNode",value:function(e){return e.type===i.NodeType.VariableDeclarator}},{key:"isWhileStatementNode",value:function(e){return e.type===i.NodeType.WhileStatement}}]),e}();s.nodesWithBlockScope=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition],t.NodeGuards=s},function(e,t,r){"use strict";var n=r(0),o=n(r(62)),a=n(r(36)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=c.__importStar(r(46)),u=c.__importStar(r(61)),l=c.__importStar(r(18)),f=r(9),p=r(19),m=function(){function e(){(0,i.default)(this,e)}return(0,s.default)(e,null,[{key:"addXVerbatimPropertyToLiteralNode",value:function(e){return f.NodeGuards.isLiteralNode(e)&&(e["x-verbatim-property"]={content:e.raw,precedence:d.Precedence.Primary}),e}},{key:"clone",value:function(t){return e.parentize(e.cloneRecursive(t))}},{key:"convertCodeToStructure",value:function(t){var r=u.parse(t,{sourceType:"script"});return l.replace(r,{enter:function(t,r){return e.parentizeNode(t,r),e.addXVerbatimPropertyToLiteralNode(t),p.NodeMetadata.set(t,{ignoredNode:!1}),t}}),r.body}},{key:"convertStructureToCode",value:function(e){return e.reduce(function(e,t){return e+d.generate(t,{sourceMapWithCode:!0}).code},"")}},{key:"getBlockScopesOfNode",value:function(t){return e.getBlockScopesOfNodeRecursive(t)}},{key:"getNextSiblingStatementNode",value:function(t){return e.getSiblingStatementNodeByOffset(t,1)}},{key:"getPreviousSiblingStatementNode",value:function(t){return e.getSiblingStatementNodeByOffset(t,-1)}},{key:"getScopeOfNode",value:function(t){var r=t.parentNode;if(!r)throw new ReferenceError("`parentNode` property of given node is `undefined`");return f.NodeGuards.isNodeHasScope(r)?r:e.getScopeOfNode(r)}},{key:"getUnaryExpressionArgumentNode",value:function(t){return f.NodeGuards.isUnaryExpressionNode(t.argument)?e.getUnaryExpressionArgumentNode(t.argument):t.argument}},{key:"parentize",value:function(t){return l.replace(t,{enter:e.parentizeNode}),t}},{key:"parentizeNode",value:function(e,t){return e.parentNode=t||e,e}},{key:"cloneRecursive",value:function(t){if(null===t)return t;var r={};return(0,a.default)(t).forEach(function(n){if("parentNode"!==n){var a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}},{key:"getBlockScopesOfNodeRecursive",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return f.NodeGuards.isBlockStatementNode(t)&&o===t&&r.push(t),(f.NodeGuards.isProgramNode(t)||n&&f.NodeGuards.isNodeHasBlockScope(t,o))&&r.push(t),t!==o?e.getBlockScopesOfNodeRecursive(o,r,++n):r}},{key:"getSiblingStatementNodeByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=f.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeUtils=m},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(196)),i=n(r(195)),s=n(r(194)),c=n(r(193)),d=n(r(192)),u=n(r(191)),l=n(r(31)),f=n(r(36));Object.defineProperty(t,"__esModule",{value:!0});var p={configurable:!0,enumerable:!0},m="_initialized",g="_initializablePropertiesSet",N="_wrappedMethodsSet",v="constructor";function y(e,t,r){(0,u.default)(e,r)||(0,d.default)(e,t,r)}t.initializable=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initialize",t=(0,f.default)(this)[0];return function(r,n){var u=r[e];if(!u||"function"!=typeof u)throw new Error("`".concat(e,"` method with initialization logic not ")+"found. `@".concat(t,"` decorator requires `").concat(e,"` method"));return y(m,!1,r),y(g,new l.default,r),y(N,new l.default,r),function(e,t){var r=(0,c.default)(e),n=[t,v];r.forEach(function(r){var c=(0,s.default)(g,e),d=(0,s.default)(N,e),u=n.includes(r)||c.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=(0,i.default)(e,r)||p,v=f.value;(0,a.default)(e,r,(0,o.default)({},f,{value:function(){if(!(0,s.default)(m,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return v.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var n=(0,i.default)(e,t)||p,s=n.value;(0,a.default)(e,t,(0,o.default)({},n,{value:function(){(0,d.default)(m,!0,this);var e=s.apply(this,arguments);return this[r],e}}))}(r,e,n),function(e,t){(0,s.default)(g,e).add(t);var r="_".concat(t),n=(0,i.default)(e,r)||p;return(0,a.default)(e,t,(0,o.default)({},n,{get:function(){if(void 0===this[r])throw new Error("Property `".concat(t,"` is not initialized! Initialize it first!"));return this[r]},set:function(e){this[r]=e}})),n}(r,n)}}},function(e,t){e.exports=require("@babel/runtime/core-js/object/assign")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Preparing="Preparing",e.DeadCodeInjection="DeadCodeInjection",e.ControlFlowFlattening="ControlFlowFlattening",e.Converting="Converting",e.Obfuscating="Obfuscating",e.Finalizing="Finalizing"}(t.TransformationStage||(t.TransformationStage={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=r(11),u=function(){function e(t,r){(0,o.default)(this,e),this.randomGenerator=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){this.nodeIdentifier=this.randomGenerator.getRandomInteger(0,1e4)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",Number)],u.prototype,"nodeIdentifier",void 0),i.__decorate([s.postConstruct(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],u.prototype,"initialize",null),u=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],u),t.AbstractNodeTransformer=u},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4).__importStar(r(46)),c=r(26),d=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"programNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.Program,body:e,sourceType:"script",metadata:{ignoredNode:!1}}}},{key:"arrayExpressionNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}},{key:"assignmentExpressionNode",value:function(e,t,r){return{type:c.NodeType.AssignmentExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"binaryExpressionNode",value:function(e,t,r){return{type:c.NodeType.BinaryExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"blockStatementNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}},{key:"breakStatement",value:function(e){var t={type:c.NodeType.BreakStatement,metadata:{ignoredNode:!1}};return e&&(t.label=e),t}},{key:"callExpressionNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:c.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}},{key:"continueStatement",value:function(e){var t={type:c.NodeType.ContinueStatement,metadata:{ignoredNode:!1}};return e&&(t.label=e),t}},{key:"expressionStatementNode",value:function(e){return{type:c.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}},{key:"functionDeclarationNode",value:function(t,r,n){return{type:c.NodeType.FunctionDeclaration,id:e.identifierNode(t),params:r,body:n,generator:!1,metadata:{ignoredNode:!1}}}},{key:"functionExpressionNode",value:function(e,t){return{type:c.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}},{key:"ifStatementNode",value:function(e,t,r){return(0,o.default)({type:c.NodeType.IfStatement,test:e,consequent:t},r&&{alternate:r},{metadata:{ignoredNode:!1}})}},{key:"identifierNode",value:function(e){return{type:c.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}},{key:"literalNode",value:function(e,t){return t=void 0!==t?t:"'".concat(e,"'"),{type:c.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:s.Precedence.Primary},metadata:{ignoredNode:!1}}}},{key:"logicalExpressionNode",value:function(e,t,r){return{type:c.NodeType.LogicalExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"memberExpressionNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:c.NodeType.MemberExpression,computed:r,object:e,property:t,metadata:{ignoredNode:!1}}}},{key:"methodDefinitionNode",value:function(e,t,r,n){return{type:c.NodeType.MethodDefinition,key:e,value:t,kind:r,computed:n,static:!1,metadata:{ignoredNode:!1}}}},{key:"objectExpressionNode",value:function(e){return{type:c.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}},{key:"propertyNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:c.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:r,metadata:{ignoredNode:!1}}}},{key:"returnStatementNode",value:function(e){return{type:c.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}},{key:"switchStatementNode",value:function(e,t){return{type:c.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}},{key:"switchCaseNode",value:function(e,t){return{type:c.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}},{key:"unaryExpressionNode",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:c.NodeType.UnaryExpression,operator:e,argument:t,prefix:r,metadata:{ignoredNode:!1}}}},{key:"updateExpressionNode",value:function(e,t){return{type:c.NodeType.UpdateExpression,operator:e,argument:t,prefix:!1,metadata:{ignoredNode:!1}}}},{key:"variableDeclarationNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"var";return{type:c.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}},{key:"variableDeclaratorNode",value:function(e,t){return{type:c.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}},{key:"whileStatementNode",value:function(e,t){return{type:c.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}]),e}();t.NodeFactory=d},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(5),u=r(172),l=r(171),f=i=function(){function e(t,r,n){(0,o.default)(this,e),this.cachedNode=null,this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(2,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Function,Object,Object])],f),t.AbstractCustomNode=f},function(e,t){e.exports=require("@babel/runtime/core-js/map")},function(e,t){e.exports=require("estraverse")},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"set",value:function(e,t){e.metadata=(0,o.default)(e.metadata||{},t)}},{key:"get",value:function(e,t){return void 0!==e.metadata?e.metadata[t]:void 0}},{key:"isIgnoredNode",value:function(t){return!0===e.get(t,"ignoredNode")}},{key:"isRenamedIdentifier",value:function(t){return!0===e.get(t,"renamedIdentifier")}},{key:"isReplacedLiteral",value:function(t){return!0===e.get(t,"replacedLiteral")}}]),e}();t.NodeMetadata=s},function(e,t){e.exports=require("string-template")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BaseIdentifierObfuscatingReplacer="BaseIdentifierObfuscatingReplacer"}(t.IdentifierObfuscatingReplacer||(t.IdentifierObfuscatingReplacer={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionFunctionNode="BinaryExpressionFunctionNode",e.BlockStatementControlFlowFlatteningNode="BlockStatementControlFlowFlatteningNode",e.CallExpressionControlFlowStorageCallNode="CallExpressionControlFlowStorageCallNode",e.CallExpressionFunctionNode="CallExpressionFunctionNode",e.ControlFlowStorageNode="ControlFlowStorageNode",e.ExpressionWithOperatorControlFlowStorageCallNode="ExpressionWithOperatorControlFlowStorageCallNode",e.LogicalExpressionFunctionNode="LogicalExpressionFunctionNode",e.StringLiteralControlFlowStorageCallNode="StringLiteralControlFlowStorageCallNode",e.StringLiteralNode="StringLiteralNode"}(t.ControlFlowCustomNode||(t.ControlFlowCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Browser="browser",e.BrowserNoEval="browser-no-eval",e.Node="node"}(t.ObfuscationTarget||(t.ObfuscationTarget={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"appendNode",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(e.getScopeNodeStatements(t)).concat((0,o.default)(r)))}},{key:"appendNodeToOptimalBlockScope",value:function(t,r,n){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;o=t.length?e.getOptimalBlockScope(t,a):r,e.prependNode(o,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertNodeAfter",value:function(t,r,n){var o=e.getScopeNodeStatements(t).indexOf(n);e.insertNodeAtIndex(t,r,o+1)}},{key:"insertNodeAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(e.getScopeNodeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeNodeStatements(t).slice(n))))}},{key:"prependNode",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(r).concat((0,o.default)(e.getScopeNodeStatements(t))))}},{key:"getScopeNodeStatements",value:function(e){return s.NodeGuards.isSwitchCaseNode(e)?e.consequent:e.body}},{key:"parentizeScopeStatementsBeforeAppend",value:function(e,t){return t.forEach(function(t){t.parentNode=e}),t}},{key:"setScopeNodeStatements",value:function(e,t){s.NodeGuards.isSwitchCaseNode(e)?e.consequent=t:e.body=t}}]),e}();t.NodeAppender=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassDeclaration="ClassDeclaration",e.ContinueStatement="ContinueStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExpressionStatement="ExpressionStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MethodDefinition="MethodDefinition",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateLiteral="TemplateLiteral",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement"}(t.NodeType||(t.NodeType={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(205)),a=n(r(17)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(1),d=r(5),u=r(204),l=r(199),f=r(185),p=r(179),m=r(132),g=r(131),N=r(128),v=r(127),y=r(114),_=r(99),h=r(89),b=r(84),S=r(78),I=r(65),C=r(75),F=r(73),O=r(72),j=r(71),T=r(70),k=function(){function e(){(0,i.default)(this,e),this.container=new c.Container}return(0,s.default)(e,[{key:"get",value:function(e){return this.container.get(e)}},{key:"getNamed",value:function(e,t){return this.container.getNamed(e,t)}},{key:"load",value:function(e,t){this.container.bind(d.ServiceIdentifiers.ISourceCode).toDynamicValue(function(){return new O.SourceCode(e)}).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.TInputOptions).toDynamicValue(function(){return t}).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.ILogger).to(I.Logger).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IJavaScriptObfuscator).to(S.JavaScriptObfuscator).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.ITransformersRunner).to(T.TransformersRunner).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IObfuscationResult).to(F.ObfuscationResult).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.Factory__IObfuscationResult).toFactory(function(e){return function(t,r){var n=e.container.get(d.ServiceIdentifiers.IObfuscationResult);return n.initialize(t,r),n}}),this.container.bind(d.ServiceIdentifiers.ISourceMapCorrector).to(j.SourceMapCorrector).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IObfuscationEventEmitter).to(C.ObfuscationEventEmitter).inSingletonScope(),this.container.load(u.analyzersModule),this.container.load(l.controlFlowTransformersModule),this.container.load(f.convertingTransformersModule),this.container.load(p.customNodesModule),this.container.load(m.finalizingTransformersModule),this.container.load(g.generatorsModule),this.container.load(N.nodeTransformersModule),this.container.load(v.obfuscatingTransformersModule),this.container.load(y.optionsModule),this.container.load(_.preparingTransformersModule),this.container.load(h.storagesModule),this.container.load(b.utilsModule)}},{key:"unload",value:function(){this.container.unbindAll()}}],[{key:"getFactory",value:function(e){return function(t){return function(r){return t.container.getNamed(e,r)}}}},{key:"getCacheFactory",value:function(e){return function(t){var r=new a.default;return function(n){if(r.has(n))return r.get(n);var o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}},{key:"isCeilNumber",value:function(e){return e%1==0}},{key:"stringRotate",value:function(e,t){if(!e)throw new ReferenceError("Cannot rotate empty string.");for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=new s.InversifyContainerFacade;r.load(e,t);var n=r.get(i.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.17.0-dev.1",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base64="base64",e.Rc4="rc4"}(t.StringArrayEncoding||(t.StringArrayEncoding={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Inline="inline",e.Separate="separate"}(t.SourceMapMode||(t.SourceMapMode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HexadecimalIdentifierNamesGenerator="hexadecimal",e.MangledIdentifierNamesGenerator="mangled"}(t.IdentifierNamesGenerator||(t.IdentifierNamesGenerator={}))},function(e,t,r){"use strict";var n=r(0)(r(2));Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),a=r(1),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object])],s),t.AbstractObfuscatingReplacer=s},function(e,t){e.exports=require("@babel/runtime/helpers/get")},function(e,t,r){"use strict";var n=r(0)(r(55));Object.defineProperty(t,"__esModule",{value:!0});var o=r(40),a=r(23),i=r(39);t.NO_ADDITIONAL_NODES_PRESET=(0,n.default)({compact:!0,controlFlowFlattening:!1,controlFlowFlatteningThreshold:0,deadCodeInjection:!1,deadCodeInjectionThreshold:0,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",log:!1,renameGlobals:!1,reservedNames:[],rotateStringArray:!1,seed:0,selfDefending:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:a.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableNoEvalTemplate=function(){return"\n var that = (typeof window !== 'undefined'\n ? window\n : (typeof process === 'object' &&\n typeof require === 'function' &&\n typeof global === 'object')\n ? global\n : this);\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=s=function(){function e(t,r,n){(0,a.default)(this,e),this.replacerDataByControlFlowStorageId=new o.default,this.controlFlowCustomNodeFactory=t,this.randomGenerator=r,this.options=n}return(0,i.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),i=s.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=i.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(30)),i=n(r(35)),s=n(r(17)),c=n(r(2)),d=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=function(){function e(t,r){(0,c.default)(this,e),this.randomGenerator=t,this.options=r}return(0,d.default)(e,[{key:"initialize",value:function(){this.storage=new s.default,this.storageId=this.randomGenerator.getRandomString(6)}},{key:"get",value:function(e){var t=this.storage.get(e);if(!t)throw new Error("No value found in map storage with key `".concat(e,"`"));return t}},{key:"getKeyOf",value:function(e){var t=!0,r=!1,n=void 0;try{for(var o,s=(0,i.default)(this.storage);!(t=(o=s.next()).done);t=!0){var c=(0,a.default)(o.value,2),d=c[0];if(e===c[1])return d}}catch(e){r=!0,n=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw n}}return null}},{key:"getLength",value:function(){return this.storage.size}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"has",value:function(e){return this.storage.has(e)}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=new s.default((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();u.__decorate([p.initializable(),u.__metadata("design:type",String)],m.prototype,"storageId",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",s.default)],m.prototype,"storage",void 0),u.__decorate([l.postConstruct(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[]),u.__metadata("design:returntype",void 0)],m.prototype,"initialize",null),m=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],m),t.MapStorage=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlackListNodeGuard="BlackListNodeGuard",e.ConditionalCommentNodeGuard="ConditionalCommentNodeGuard"}(t.ObfuscatingGuard||(t.ObfuscatingGuard={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BooleanLiteralObfuscatingReplacer="BooleanLiteralObfuscatingReplacer",e.NumberLiteralObfuscatingReplacer="NumberLiteralObfuscatingReplacer",e.StringLiteralObfuscatingReplacer="StringLiteralObfuscatingReplacer"}(t.LiteralObfuscatingReplacer||(t.LiteralObfuscatingReplacer={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=function(){function e(t,r){(0,o.default)(this,e),this.randomGenerator=t,this.options=r}return(0,a.default)(e,[{key:"isValidIdentifierName",value:function(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),e}();d=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],d),t.AbstractIdentifierNamesGenerator=d},function(e,t){e.exports=require("@babel/runtime/core-js/object/freeze")},function(e,t){e.exports=require("@babel/runtime/core-js/array/from")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ConsoleOutputCustomNodeGroup="ConsoleOutputCustomNodeGroup",e.DebugProtectionCustomNodeGroup="DebugProtectionCustomNodeGroup",e.DomainLockCustomNodeGroup="DomainLockCustomNodeGroup",e.SelfDefendingCustomNodeGroup="SelfDefendingCustomNodeGroup",e.StringArrayCustomNodeGroup="StringArrayCustomNodeGroup"}(t.CustomNodeGroup||(t.CustomNodeGroup={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(22),p=r(45),m=r(9),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(f.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!m.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(p.AbstractControlFlowReplacer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.ExpressionWithOperatorControlFlowReplacer=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionControlFlowReplacer="BinaryExpressionControlFlowReplacer",e.CallExpressionControlFlowReplacer="CallExpressionControlFlowReplacer",e.LogicalExpressionControlFlowReplacer="LogicalExpressionControlFlowReplacer",e.StringLiteralControlFlowReplacer="StringLiteralControlFlowReplacer"}(t.ControlFlowReplacer||(t.ControlFlowReplacer={}))},function(e,t){e.exports=require("espree")},function(e,t){e.exports=require("@babel/runtime/helpers/typeof")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.FunctionDeclarationCalleeDataExtractor="FunctionDeclarationCalleeDataExtractor",e.FunctionExpressionCalleeDataExtractor="FunctionExpressionCalleeDataExtractor",e.ObjectExpressionCalleeDataExtractor="ObjectExpressionCalleeDataExtractor"}(t.CalleeDataExtractor||(t.CalleeDataExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(5),u=s.__importDefault(r(49)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t){e.exports=require("reflect-metadata")},function(e,t){e.exports=require("path")},function(e,t,r){"use strict";var n=r(0),o=n(r(36)),a=n(r(12)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=c.__importStar(r(218)),u=c.__importStar(r(67)),l=r(11),f=r(48),p=r(217),m=r(216),g=r(215),N=r(214),v=r(213),y=r(212),_=r(211),h=r(37),b=r(208),S=function(){function e(t){(0,i.default)(this,e),this.rawArguments=t,this.arguments=t.slice(2)}return(0,s.default)(e,[{key:"initialize",value:function(){this.inputPath=u.normalize(this.arguments[0]||""),this.commands=new d.Command,this.configureCommands(),this.configureHelp(),this.inputCLIOptions=this.commands.opts()}},{key:"run",value:function(){if(!this.arguments.length||this.arguments.includes("--help"))this.commands.outputHelp();else{var e=new b.SourceCodeReader(this.inputCLIOptions).readSourceCode(this.inputPath);this.processSourceCodeData(e)}}},{key:"buildOptions",value:function(){var t=e.filterOptions(this.inputCLIOptions),r=this.inputCLIOptions.config,n=r?u.resolve(r,"."):"",o=n?_.CLIUtils.getUserConfig(n):{};return(0,a.default)({},f.DEFAULT_PRESET,o,t)}},{key:"configureCommands",value:function(){this.commands.usage(" [options]").version("0.17.0-dev.1","-v, --version").option("-o, --output ","Output path for obfuscated code").option("--compact ","Disable one line output code compacting",m.BooleanSanitizer).option("--config ","Name of js / json config file").option("--control-flow-flattening ","Enables control flow flattening",m.BooleanSanitizer).option("--control-flow-flattening-threshold ","The probability that the control flow flattening transformation will be applied to the node",parseFloat).option("--dead-code-injection ","Enables dead code injection",m.BooleanSanitizer).option("--dead-code-injection-threshold ","The probability that the dead code injection transformation will be applied to the node",parseFloat).option("--debug-protection ","Disable browser Debug panel (can cause DevTools enabled browser freeze)",m.BooleanSanitizer).option("--debug-protection-interval ","Disable browser Debug panel even after page was loaded (can cause DevTools enabled browser freeze)",m.BooleanSanitizer).option("--disable-console-output ","Allow console.log, console.info, console.error and console.warn messages output into browser console",m.BooleanSanitizer).option("--domain-lock (comma separated, without whitespaces)","Blocks the execution of the code in domains that do not match the passed RegExp patterns (comma separated)",p.ArraySanitizer).option("--exclude (comma separated, without whitespaces)","A filename or glob which indicates files to exclude from obfuscation",p.ArraySanitizer).option("--identifier-names-generator ","Sets identifier names generator. Values: hexadecimal, mangled. Default: hexadecimal",g.IdentifierNamesGeneratorSanitizer).option("--identifiers-prefix ","Sets prefix for all global identifiers.").option("--log ","Enables logging of the information to the console",m.BooleanSanitizer).option("--reserved-names (comma separated, without whitespaces)","Disables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated)",p.ArraySanitizer).option("--rename-globals ","Allows to enable obfuscation of global variable and function names with declaration.",m.BooleanSanitizer).option("--rotate-string-array ","Disable rotation of unicode array values during obfuscation",m.BooleanSanitizer).option("--seed ","Sets seed for random generator. This is useful for creating repeatable results.",parseFloat).option("--self-defending ","Disables self-defending for obfuscated code",m.BooleanSanitizer).option("--source-map ","Enables source map generation",m.BooleanSanitizer).option("--source-map-base-url ","Sets base url to the source map import url when `--source-map-mode=separate`").option("--source-map-file-name ","Sets file name for output source map when `--source-map-mode=separate`").option("--source-map-mode ","Specify source map output mode. Values: inline, separate. Default: separate",v.SourceMapModeSanitizer).option("--string-array ","Disables gathering of all literal strings into an array and replacing every literal string with an array call",m.BooleanSanitizer).option("--string-array-encoding ","Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed. Values: true, false, base64, rc4. Default: false",y.StringArrayEncodingSanitizer).option("--string-array-threshold ","The probability that the literal string will be inserted into stringArray (Default: 0.8, Min: 0, Max: 1)",parseFloat).option("--target ","Allows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser",N.ObfuscationTargetSanitizer).option("--transform-object-keys ","Enables transformation of object keys",m.BooleanSanitizer).option("--unicode-escape-sequence ","Allows to enable/disable string conversion to unicode escape sequence",m.BooleanSanitizer).parse(this.rawArguments)}},{key:"configureHelp",value:function(){this.commands.on("--help",function(){console.log(" Examples:\n"),console.log(" %> javascript-obfuscator input_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_file_name.js --output output_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_directory_name --compact true --self-defending false"),console.log("")})}},{key:"processSourceCodeData",value:function(e){var t=this,r=this.inputCLIOptions.output?u.normalize(this.inputCLIOptions.output):"";if(Array.isArray(e))e.forEach(function(e,n){var o=e.filePath,a=e.content,i=r?u.join(r,o):_.CLIUtils.getOutputCodePath(o);t.processSourceCode(a,i,n)});else{var n=r||_.CLIUtils.getOutputCodePath(this.inputPath);this.processSourceCode(e,n,null)}}},{key:"processSourceCode",value:function(t,r,n){var o=this.buildOptions();if(null!==n){var i=this.inputCLIOptions.identifiersPrefix||e.baseIdentifiersPrefix,s="".concat(i).concat(n);o=(0,a.default)({},o,{identifiersPrefix:s})}o.sourceMap?e.processSourceCodeWithSourceMap(t,r,o):e.processSourceCodeWithoutSourceMap(t,r,o)}}],[{key:"filterOptions",value:function(e){var t={};return(0,o.default)(e).forEach(function(r){void 0!==e[r]&&(t[r]=e[r])}),t}},{key:"processSourceCodeWithoutSourceMap",value:function(e,t,r){var n=h.JavaScriptObfuscator.obfuscate(e,r).getObfuscatedCode();_.CLIUtils.writeFile(t,n)}},{key:"processSourceCodeWithSourceMap",value:function(e,t,r){var n=_.CLIUtils.getOutputSourceMapPath(t,r.sourceMapFileName||"");r=(0,a.default)({},r,{sourceMapFileName:u.basename(n)});var o=h.JavaScriptObfuscator.obfuscate(e,r);_.CLIUtils.writeFile(t,o.getObfuscatedCode()),"separate"===r.sourceMapMode&&o.getSourceMap()&&_.CLIUtils.writeFile(n,o.getSourceMap())}}]),e}();S.encoding="utf8",S.obfuscatedFilePrefix="-obfuscated",S.baseIdentifiersPrefix="a",c.__decorate([l.initializable(),c.__metadata("design:type",Object)],S.prototype,"commands",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Object)],S.prototype,"inputCLIOptions",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",String)],S.prototype,"inputPath",void 0),t.JavaScriptObfuscatorCLI=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Enter="enter",e.Leave="leave"}(t.VisitorDirection||(t.VisitorDirection={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=i.__importStar(r(18)),u=r(69),l=r(9),f=r(19),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();u.colorError=d.default.red,u.nearestSymbolsCount=15,u.sourceTypes=["script","module"],t.EspreeFacade=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.TransformationStage="Transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=c.__importStar(r(46)),f=r(77),p=r(32),m=r(13),g=r(76),N=r(9),v=s=function(){function e(t,r,n,o,i){(0,a.default)(this,e),this.transformersRunner=t,this.sourceMapCorrector=r,this.randomGenerator=n,this.logger=o,this.options=i}return(0,i.default)(e,[{key:"obfuscate",value:function(e){var t=Date.now();this.logger.info(f.LoggingMessage.Version,"0.16.0"),this.logger.info(f.LoggingMessage.ObfuscationStarted),this.logger.info(f.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getSeed());var r=this.parseCode(e),n=this.transformAstTree(r),o=this.generateCode(e,n),a=(Date.now()-t)/1e3;return this.logger.success(f.LoggingMessage.ObfuscationCompleted,a),this.getObfuscationResult(o)}},{key:"parseCode",value:function(e){return g.EspreeFacade.parse(e,s.espreeParseOptions)}},{key:"transformAstTree",value:function(e){return!N.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runTransformationStage(e,m.TransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runTransformationStage(e,m.TransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runTransformationStage(e,m.TransformationStage.ControlFlowFlattening)),e=this.runTransformationStage(e,m.TransformationStage.Converting),e=this.runTransformationStage(e,m.TransformationStage.Obfuscating),e=this.runTransformationStage(e,m.TransformationStage.Finalizing)):(this.logger.warn(f.LoggingMessage.EmptySourceCode),e)}},{key:"generateCode",value:function(e,t){var r=(0,o.default)({},s.escodegenParams);this.options.sourceMap&&(r.sourceMap="sourceMap",r.sourceContent=e);var n=l.generate(t,(0,o.default)({},r,{format:{compact:this.options.compact}}));return n.map=n.map?n.map.toString():"",n}},{key:"getObfuscationResult",value:function(e){return this.sourceMapCorrector.correct(e.code,e.map)}},{key:"runTransformationStage",value:function(e,t){return this.logger.info(f.LoggingMessage.TransformationStage,t),this.transformersRunner.transform(e,s.transformersList,t)}}]),e}();v.espreeParseOptions={attachComment:!0,comment:!0,ecmaFeatures:{experimentalObjectRestSpread:!0},ecmaVersion:9,loc:!0,range:!0},v.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},v.transformersList=[p.NodeTransformer.BlockStatementControlFlowTransformer,p.NodeTransformer.ClassDeclarationTransformer,p.NodeTransformer.CommentsTransformer,p.NodeTransformer.CustomNodesTransformer,p.NodeTransformer.DeadCodeInjectionTransformer,p.NodeTransformer.EvalCallExpressionTransformer,p.NodeTransformer.FunctionControlFlowTransformer,p.NodeTransformer.CatchClauseTransformer,p.NodeTransformer.FunctionDeclarationTransformer,p.NodeTransformer.FunctionTransformer,p.NodeTransformer.ImportDeclarationTransformer,p.NodeTransformer.LabeledStatementTransformer,p.NodeTransformer.LiteralTransformer,p.NodeTransformer.MemberExpressionTransformer,p.NodeTransformer.MetadataTransformer,p.NodeTransformer.MethodDefinitionTransformer,p.NodeTransformer.ObfuscatingGuardsTransformer,p.NodeTransformer.ObjectExpressionKeysTransformer,p.NodeTransformer.ObjectExpressionTransformer,p.NodeTransformer.ParentificationTransformer,p.NodeTransformer.TemplateLiteralTransformer,p.NodeTransformer.VariableDeclarationTransformer],v=s=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.ITransformersRunner)),c.__param(1,d.inject(u.ServiceIdentifiers.ISourceMapCorrector)),c.__param(2,d.inject(u.ServiceIdentifiers.IRandomGenerator)),c.__param(3,d.inject(u.ServiceIdentifiers.ILogger)),c.__param(4,d.inject(u.ServiceIdentifiers.IOptions)),c.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],v),t.JavaScriptObfuscator=v},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(1),d=function(){function e(){(0,a.default)(this,e),this.stringsCache=new o.default}return(0,i.default)(e,[{key:"encode",value:function(e,t){var r="".concat(e,"-").concat(String(t));if(this.stringsCache.has(r))return this.stringsCache.get(r);var n,o,a=new RegExp("[\\s\\S]","g"),i=new RegExp("['\"\\\\\\s]"),s=new RegExp("[\\x00-\\x7F]"),c=e.replace(a,function(e){return t||i.exec(e)?(s.exec(e)?(n="\\x",o="00"):(n="\\u",o="0000"),"".concat(n).concat((o+e.charCodeAt(0).toString(16)).slice(-o.length))):e});return this.stringsCache.set(r,c),c}}]),e}();d=s.__decorate([c.injectable()],d),t.EscapeSequenceEncoder=d},function(e,t){e.exports=require("chance")},function(e,t){e.exports=require("md5")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=r(50),u=r(28),l=function(){function e(t){(0,o.default)(this,e),this.randomGenerator=t}return(0,a.default)(e,[{key:"btoa",value:function(e){var t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt("".concat(u.Utils.hexadecimalPrefix).concat(t)))});for(var r,n,o=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|o)||(a="=",o%1);t+=a.charAt(63&r>>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(85),g=u=function(e){function t(e,r,n,a){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,c.default)(t).call(this,n,a))).identifierNamesGenerator=e(a),i.arrayUtils=r,i}return(0,i.default)(t,[{key:"initialize",value:function(){(0,d.default)((0,c.default)(t.prototype),"initialize",this).call(this);var e=this.identifierNamesGenerator.generate().slice(0,u.stringArrayNameLength),r=this.identifierNamesGenerator.generate().slice(0,u.stringArrayNameLength),n="".concat(this.options.identifiersPrefix).concat(e),o="".concat(this.options.identifiersPrefix).concat(r);this.storageId="".concat(n,"|").concat(o)}},{key:"rotateArray",value:function(e){this.storage=this.arrayUtils.arrayRotate(this.storage,e)}},{key:"toString",value:function(){return this.storage.map(function(e){return"'".concat(e,"'")}).toString()}}]),(0,a.default)(t,e),t}(m.ArrayStorage);g.stringArrayNameLength=7,l.__decorate([f.postConstruct(),l.__metadata("design:type",Function),l.__metadata("design:paramtypes",[]),l.__metadata("design:returntype",void 0)],g.prototype,"initialize",null),g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IArrayUtils)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object,Object])],g),t.StringArrayStorage=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(57),g=r(51),N=u=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).customNodeGroupFactory=e,a}return(0,i.default)(t,[{key:"initialize",value:function(){var e=this;(0,d.default)((0,c.default)(t.prototype),"initialize",this).call(this),u.customNodeGroupsList.forEach(function(t){var r=e.customNodeGroupFactory(t);r&&e.storage.set(t,r)})}}]),(0,a.default)(t,e),t}(g.MapStorage);N.customNodeGroupsList=[m.CustomNodeGroup.ConsoleOutputCustomNodeGroup,m.CustomNodeGroup.DebugProtectionCustomNodeGroup,m.CustomNodeGroup.DomainLockCustomNodeGroup,m.CustomNodeGroup.SelfDefendingCustomNodeGroup,m.CustomNodeGroup.StringArrayCustomNodeGroup],l.__decorate([f.postConstruct(),l.__metadata("design:type",Function),l.__metadata("design:paramtypes",[]),l.__metadata("design:returntype",void 0)],N.prototype,"initialize",null),N=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__ICustomNodeGroup)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CustomNodeGroupStorage=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(7)),s=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(1),u=r(5),l=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,a.default)(t,e),t}(r(51).MapStorage);l=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.IRandomGenerator)),c.__param(1,d.inject(u.ServiceIdentifiers.IOptions)),c.__metadata("design:paramtypes",[Object,Object])],l),t.ControlFlowStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),a=r(88),i=r(87),s=r(86);t.storagesModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.TCustomNodeGroupStorage).to(i.CustomNodeGroupStorage).inSingletonScope(),e(o.ServiceIdentifiers.TStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(o.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(a.ControlFlowStorage),e(o.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(function(e){return function(){var t=new(e.container.get(o.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(o.ServiceIdentifiers.IRandomGenerator),e.container.get(o.ServiceIdentifiers.IOptions));return t.initialize(),t}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(10),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return m.NodeUtils.parentizeNode(e,t)}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.ParentificationTransformer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(52),m=r(13),g=r(14),N=r(19),v=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).obfuscatingGuards=d.obfuscatingGuardsList.map(e),a}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.obfuscatingGuards.every(function(t){return t.check(e)});return N.NodeMetadata.set(e,{ignoredNode:!r}),e}}]),(0,a.default)(t,e),t}(g.AbstractNodeTransformer);v.obfuscatingGuardsList=[p.ObfuscatingGuard.BlackListNodeGuard,p.ObfuscatingGuard.ConditionalCommentNodeGuard],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__INodeGuard)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.ObfuscatingGuardsTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(9),g=r(19),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return g.NodeMetadata.set(e,{ignoredNode:!1}),m.NodeGuards.isIdentifierNode(e)&&g.NodeMetadata.set(e,{renamedIdentifier:!1}),m.NodeGuards.isLiteralNode(e)&&g.NodeMetadata.set(e,{replacedLiteral:!1}),e}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MetadataTransformer=N},function(e,t){e.exports=require("js-string-escape")},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importDefault(r(93)),g=r(13),N=r(14),v=r(15),y=r(9),_=r(10),h=u=function(e){function t(e,r){var n;return(0,a.default)(this,t),(n=(0,c.default)(this,(0,d.default)(t).call(this,e,r))).evalRootAstHostNodeSet=new o.default,n}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Preparing:return{enter:function(e,r){if(r&&y.NodeGuards.isCallExpressionNode(e)&&y.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return t.transformNode(e,r)}};case g.TransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:function(e,r){if(r&&t.isEvalRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"transformNode",value:function(e,t){var r=e.arguments[0];if(!r)return e;var n,o=u.extractEvalStringFromCallExpressionArgument(r);if(!o)return e;try{n=_.NodeUtils.convertCodeToStructure(o)}catch(t){return e}var a=v.NodeFactory.functionExpressionNode([],v.NodeFactory.blockStatementNode(n));return this.evalRootAstHostNodeSet.add(a),a}},{key:"restoreNode",value:function(e,t){var r=e.body.body,n=_.NodeUtils.convertStructureToCode(r);return v.NodeFactory.callExpressionNode(v.NodeFactory.identifierNode("eval"),[v.NodeFactory.literalNode(m.default(n))])}},{key:"isEvalRootAstHostNode",value:function(e){return y.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}}],[{key:"extractEvalStringFromCallExpressionArgument",value:function(e){return y.NodeGuards.isLiteralNode(e)?u.extractEvalStringFromLiteralNode(e):y.NodeGuards.isTemplateLiteralNode(e)?u.extractEvalStringFromTemplateLiteralNode(e):null}},{key:"extractEvalStringFromLiteralNode",value:function(e){return"string"==typeof e.value?e.value:null}},{key:"extractEvalStringFromTemplateLiteralNode",value:function(e){var t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}}]),(0,i.default)(t,e),t}(N.AbstractNodeTransformer);h=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],h),t.EvalCallExpressionTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(24),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n,a,i){var d;return(0,o.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,a,i))).stackTraceData=[],d.stackTraceAnalyzer=e,d.obfuscationEventEmitter=r,d.customNodeGroupStorage=n,d}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Preparing:return{leave:function(e,r){if(g.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),t.appendCustomNodesBeforeObfuscation(e,r),t.transformNode(e,r)}};case p.TransformationStage.Finalizing:return{leave:function(e,r){g.NodeGuards.isProgramNode(e)&&t.appendCustomNodesAfterObfuscation(e,r)}};default:return null}}},{key:"analyzeNode",value:function(e,t){this.stackTraceData=this.stackTraceAnalyzer.analyze(e)}},{key:"transformNode",value:function(e,t){return e}},{key:"appendCustomNodesBeforeObfuscation",value:function(e,t){var r=this;this.customNodeGroupStorage.getStorage().forEach(function(e){e.initialize(),r.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendCustomNodes.bind(e))}),this.obfuscationEventEmitter.emit(f.ObfuscationEvent.BeforeObfuscation,e,this.stackTraceData)}},{key:"appendCustomNodesAfterObfuscation",value:function(e,t){this.obfuscationEventEmitter.emit(f.ObfuscationEvent.AfterObfuscation,e,this.stackTraceData)}}]),(0,a.default)(t,e),t}(m.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IStackTraceAnalyzer)),d.__param(1,u.inject(l.ServiceIdentifiers.IObfuscationEventEmitter)),d.__param(2,u.inject(l.ServiceIdentifiers.TCustomNodeGroupStorage)),d.__param(3,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(4,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],N),t.CustomNodesTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.obfuscationAllowedForCurrentNode=!0,this.obfuscationAllowedForNextNode=null}return(0,a.default)(e,[{key:"check",value:function(e){if(this.obfuscationAllowedForNextNode&&(this.obfuscationAllowedForCurrentNode=this.obfuscationAllowedForNextNode,this.obfuscationAllowedForNextNode=null),!d.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowedForCurrentNode;var t=e.leadingComments,r=e.trailingComments;return t&&(this.obfuscationAllowedForCurrentNode=this.checkComments(t)),r&&(this.obfuscationAllowedForNextNode=this.checkComments(r)),this.obfuscationAllowedForCurrentNode}},{key:"checkComments",value:function(e){for(var t=e.length,r=this.obfuscationAllowedForCurrentNode,n=0;n=u.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 r=y.Utils.decToHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case m.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return v.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,d=s.index;c||this.stringArrayStorage.set(a,o);var l=[u.getHexadecimalLiteralNode(d)];n&&l.push(u.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=v.NodeFactory.identifierNode(i);return N.NodeMetadata.set(f,{renamedIdentifier:!0}),v.NodeFactory.callExpressionNode(f,l)}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return N.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return N.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),(0,i.default)(t,e),t}(g.AbstractObfuscatingReplacer);_.minimumLengthForStringArray=3,_.rc4KeyLength=4,_.rc4KeysCount=50,_=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.TStringArrayStorage)),l.__param(1,f.inject(p.ServiceIdentifiers.IEscapeSequenceEncoder)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.ICryptUtils)),l.__param(4,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],_),t.StringLiteralObfuscatingReplacer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(41),m=r(15),g=r(28),N=function(e){function t(e){var r;return(0,a.default)(this,t),(r=(0,c.default)(this,(0,d.default)(t).call(this,e))).numberLiteralCache=new o.default,r}return(0,s.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=g.Utils.isCeilNumber(e)?"".concat(g.Utils.hexadecimalPrefix).concat(g.Utils.decToHex(e)):String(e),this.numberLiteralCache.set(e,t)),m.NodeFactory.literalNode(e,t)}}]),(0,i.default)(t,e),t}(p.AbstractObfuscatingReplacer);N=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(62)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(53),m=r(13),g=r(14),N=r(9),v=r(19),y=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;switch((0,o.default)(e.value)){case"boolean":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);case"number":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);case"string":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);default:return e}}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),(0,i.default)(t,e),t}(g.AbstractNodeTransformer);y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importStar(r(18)),p=r(21),m=r(13),g=r(14),N=r(9),v=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++;return this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),(0,a.default)(t,e),t}(g.AbstractNodeTransformer);v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LabeledStatementTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importStar(r(18)),g=r(21),N=r(13),v=r(14),y=r(9),_=r(19),h=r(10),b=u=function(e){function t(e,r,n){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).replaceableIdentifiers=new o.default,i.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&y.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++,n=h.NodeUtils.getBlockScopesOfNode(e)[0];return this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(n,r):this.replaceScopeIdentifiers(n,r),e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){u.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this;this.replaceableIdentifiers.get(e).forEach(function(e){var n=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=n.name,_.NodeMetadata.set(e,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e,t){var r=this,n=[];m.replace(e,{enter:function(e,o){if(o&&y.NodeGuards.isReplaceableIdentifierNode(e,o)&&!_.NodeMetadata.isRenamedIdentifier(e)){var a=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a?(e.name=a,_.NodeMetadata.set(e,{renamedIdentifier:!0})):n.push(e)}}}),this.replaceableIdentifiers.set(e,n)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return y.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),(0,i.default)(t,e),t}(v.AbstractNodeTransformer);b=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],b),t.ImportDeclarationTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(21),g=r(13),N=r(14),v=r(9),y=r(19),_=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&(v.NodeGuards.isFunctionDeclarationNode(e)||v.NodeGuards.isFunctionExpressionNode(e)||v.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++;return this.storeFunctionParams(e,r),this.replaceFunctionParams(e,r),e}},{key:"storeFunctionParams",value:function(e,t){var r=this;e.params.forEach(function(e){p.traverse(e,{enter:function(n){return v.NodeGuards.isPropertyNode(e)?p.VisitorOption.Skip:v.NodeGuards.isAssignmentPatternNode(n)&&v.NodeGuards.isIdentifierNode(n.left)?(r.identifierObfuscatingReplacer.storeLocalName(n.left.name,t),p.VisitorOption.Skip):void(v.NodeGuards.isIdentifierNode(n)&&r.identifierObfuscatingReplacer.storeLocalName(n.name,t))}})})}},{key:"addIdentifiersToIgnoredIdentifierNamesSet",value:function(e,t){e.forEach(function(e){e.key&&v.NodeGuards.isIdentifierNode(e.key)&&t.add(e.key.name)})}},{key:"replaceFunctionParams",value:function(e,t){var r=this,n=new o.default,a={enter:function(e,o){if(v.NodeGuards.isObjectPatternNode(e)&&r.addIdentifiersToIgnoredIdentifierNamesSet(e.properties,n),o&&v.NodeGuards.isReplaceableIdentifierNode(e,o)&&!n.has(e.name)){var a=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a&&(e.name=a,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}};e.params.forEach(function(e){return p.replace(e,a)}),p.replace(e.body,a)}}]),(0,i.default)(t,e),t}(N.AbstractNodeTransformer);_=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.FunctionTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(21),g=r(26),N=r(13),v=r(14),y=r(9),_=r(19),h=r(10),b=function(e){function t(e,r,n){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).replaceableIdentifiers=new o.default,i.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&y.NodeGuards.isFunctionDeclarationNode(e)&&!y.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++,n=h.NodeUtils.getBlockScopesOfNode(e)[0],o=n.type===g.NodeType.Program;return!this.options.renameGlobals&&o?e:(this.storeFunctionName(e,o,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n,r):this.replaceScopeIdentifiers(n,r),e)}},{key:"storeFunctionName",value:function(e,t,r){t?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,r):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,r)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this.replaceableIdentifiers.get(t);if(n){var o=n.get(e.id.name);if(o)for(var a=o.length,i=0;i=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),(0,a.default)(t,e),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(54),g=r(28),N=u=function(e){function t(e,r){var n;return(0,a.default)(this,t),(n=(0,c.default)(this,(0,d.default)(t).call(this,e,r))).randomVariableNameSet=new o.default,n}return(0,s.default)(t,[{key:"generate",value:function(){var e=this.randomGenerator.getRandomInteger(1e4,99999999),t=g.Utils.decToHex(e).substr(0,u.baseIdentifierNameLength),r="_".concat(g.Utils.hexadecimalPrefix).concat(t);return this.randomVariableNameSet.has(r)?this.generate():(this.randomVariableNameSet.add(r),r)}},{key:"generateWithPrefix",value:function(){var e=this.generate();return"".concat(this.options.identifiersPrefix).concat(e).replace("__","_")}}]),(0,i.default)(t,e),t}(m.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),a=r(40),i=r(130),s=r(129);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.StringLiteralNode=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.False="![]",e.True="!![]",e.a='(false+"")[1]',e.b='([]["entries"]()+"")[2]',e.c='([]["fill"]+"")[3]',e.d='(undefined+"")[2]',e.e='(true+"")[3]',e.f='(false+"")[0]',e.g="(false+[0]+String)[20]",e.h='(+(101))["toString"](21)[1]',e.i="([false]+undefined)[10]",e.j='([]["entries"]()+"")[3]',e.k='(+(20))["toString"](21)',e.l='(false+"")[2]',e.m='(Number+"")[11]',e.n='(undefined+"")[1]',e.o='(true+[]["fill"])[10]',e.p='(+(211))["toString"](31)[1]',e.q='(+(212))["toString"](31)[1]',e.r='(true+"")[1]',e.s='(false+"")[3]',e.t='(true+"")[0]',e.u='(undefined+"")[0]',e.v='(+(31))["toString"](32)',e.w='(+(32))["toString"](33)',e.x='(+(101))["toString"](34)[1]',e.y="(NaN+[Infinity])[10]",e.z='(+(35))["toString"](36)',e.A="(+[]+Array)[10]",e.B="(+[]+Boolean)[10]",e.C='Function("return escape")()(("")["italics"]())[2]',e.D='Function("return escape")()([]["fill"])["slice"]("-1")',e.E='(RegExp+"")[12]',e.F="(+[]+Function)[10]",e.G='(false+Function("return Date")()())[30]',e.H="'H'",e.I='(Infinity+"")[0]',e.J="'J'",e.K="'K'",e.L="'L'",e.M='(true+Function("return Date")()())[30]',e.N='(NaN+"")[0]',e.O='(NaN+Function("return{}")())[11]',e.P="'P'",e.Q="'Q'",e.R="(+[]+RegExp)[10]",e.S="(+[]+String)[10]",e.T='(NaN+Function("return Date")()())[30]',e.U='(NaN+Function("return{}")()["toString"]["call"]())[11]',e.V="'V'",e.W="'W'",e.X="'X'",e.Y="'Y'",e.Z="'Z'"}(t.JSFuck||(t.JSFuck={}))},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),g=r(43),N=r(137),v=r(136),y=r(16),_=r(37),h=r(10),b=r(28),S=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?p.default(N.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),_.JavaScriptObfuscator.obfuscate(p.default(v.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:b.Utils.decToHex(this.stringArrayRotateValue),whileFunctionName:t}),(0,o.default)({},g.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",String)],S.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],S.prototype,"stringArrayRotateValue",void 0),S=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],S),t.StringArrayRotateFunctionNode=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),g=r(139),N=r(16),v=r(10),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,d.default)((0,c.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),(0,a.default)(t,e),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = 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(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(23),g=r(38),N=r(11),v=r(43),y=r(146),_=r(44),h=r(145),b=r(144),S=r(143),I=r(142),C=r(141),F=r(16),O=r(37),j=r(10),T=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return j.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return O.JavaScriptObfuscator.obfuscate(p.default(I.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),(0,o.default)({},v.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():_.GlobalVariableNoEvalTemplate(),t=p.default(y.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=p.default(b.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case g.StringArrayEncoding.Rc4:r=p.default(C.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:h.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case g.StringArrayEncoding.Base64:r=p.default(S.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),(0,i.default)(t,e),t}(F.AbstractCustomNode);u.__decorate([N.initializable(),u.__metadata("design:type",String)],T.prototype,"stringArrayName",void 0),u.__decorate([N.initializable(),u.__metadata("design:type",String)],T.prototype,"stringArrayCallsWrapperName",void 0),T=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],T),t.StringArrayCallsWrapper=T},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),g=r(43),N=r(148),v=r(16),y=r(37),_=r(10),h=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return y.JavaScriptObfuscator.obfuscate(p.default(N.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,o.default)({},g.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),(0,i.default)(t,e),t}(v.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.SelfDefendingUnicodeNode=h},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(24),g=r(11),N=r(150),v=r(43),y=r(16),_=r(37),h=r(10),b=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,c.default)(this,(0,d.default)(t).call(this,e,r,n))}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===m.ObfuscationEvent.AfterObfuscation?_.JavaScriptObfuscator.obfuscate(p.default(N.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,o.default)({},v.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():p.default(N.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([g.initializable(),u.__metadata("design:type",String)],b.prototype,"callsControllerFunctionName",void 0),u.__decorate([g.initializable(),u.__metadata("design:type",String)],b.prototype,"appendEvent",void 0),b=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.NodeCallsControllerFunctionNode=b},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"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 \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 ((!document && !domain) || (!that[document] && !that[document][domain])) {\n return;\n }\n \n var currentDomain = that[document][domain];\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,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(23),g=r(11),N=r(154),v=r(44),y=r(16),_=r(10),h=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).cryptUtils=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.domainLock.join(";"),t=this.cryptUtils.hideString(e,3*e.length),r=(0,o.default)(t,2),n=r[0],a=r[1],i=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():v.GlobalVariableNoEvalTemplate();return p.default(N.DomainLockNodeTemplate(),{domainLockFunctionName:this.identifierNamesGenerator.generate(),diff:a,domains:n,globalVariableTemplate:i,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([g.initializable(),u.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.DomainLockNode=h},function(e,t,r){"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,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(23),m=r(11),g=r(158),N=r(157),v=r(156),y=r(16),_=r(10),h=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?g.DebuggerTemplate():N.DebuggerTemplateNoEval();return f.default(v.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(y.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"debugProtectionFunctionName",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.DebugProtectionFunctionNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(11),m=r(160),g=r(16),N=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return f.default(m.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(g.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.DebugProtectionFunctionIntervalNode=v},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(11),m=r(162),g=r(16),N=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return f.default(m.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(g.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"callsControllerFunctionName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.DebugProtectionFunctionCallNode=v},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(23),m=r(164),g=r(44),N=r(11),v=r(16),y=r(10),_=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():g.GlobalVariableNoEvalTemplate();return f.default(m.ConsoleOutputDisableExpressionTemplate(),{consoleLogDisableFunctionName:this.identifierNamesGenerator.generate(),globalVariableTemplate:e,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(v.AbstractCustomNode);d.__decorate([N.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ConsoleOutputDisableExpressionNode=_},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(56)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l=r(4),f=r(1),p=r(5),m=r(11),g=r(16),N=r(15),v=r(9),y=r(10),_=function(e){function t(e,r,n){return(0,i.default)(this,t),(0,d.default)(this,(0,u.default)(t).call(this,e,r,n))}return(0,c.default)(t,[{key:"initialize",value:function(e){this.controlFlowStorage=e}},{key:"getNodeStructure",value:function(){var e=(0,a.default)(this.controlFlowStorage.getStorage()).map(function(e){var t=(0,o.default)(e,2),r=t[0],n=t[1].getNode()[0];if(!v.NodeGuards.isExpressionStatementNode(n))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return N.NodeFactory.propertyNode(N.NodeFactory.identifierNode(r),n.expression)}),t=N.NodeFactory.variableDeclarationNode([N.NodeFactory.variableDeclaratorNode(N.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),N.NodeFactory.objectExpressionNode(e))]);return[t=y.NodeUtils.parentize(t)]}}]),(0,s.default)(t,e),t}(g.AbstractCustomNode);l.__decorate([m.initializable(),l.__metadata("design:type",Object)],_.prototype,"controlFlowStorage",void 0),_=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ControlFlowStorageNode=_},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentize(u),[u]}}]),(0,i.default)(t,e),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(9),N=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentize(n),[n]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(17)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l=r(4),f=r(1),p=r(5),m=r(11),g=r(29),N=r(24),v=r(34),y=r(25),_=function(e){function t(e,r,n,o,a){var s;return(0,i.default)(this,t),(s=(0,d.default)(this,(0,u.default)(t).call(this,n,o,a))).appendEvent=N.ObfuscationEvent.AfterObfuscation,s.customNodeFactory=e,s.stringArrayStorage=r,s}return(0,c.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(g.CustomNode.StringArrayNode,function(t){y.NodeAppender.prependNode(e,t.getNode())}),this.appendCustomNodeIfExist(g.CustomNode.StringArrayCallsWrapper,function(t){y.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(g.CustomNode.StringArrayRotateFunctionNode,function(t){y.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new a.default,this.options.stringArray){var e,t=this.customNodeFactory(g.CustomNode.StringArrayNode),r=this.customNodeFactory(g.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(g.CustomNode.StringArrayRotateFunctionNode),i=this.stringArrayStorage.getStorageId().split("|"),s=(0,o.default)(i,2),c=s[0],d=s[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,c,e),r.initialize(c,d),n.initialize(c,e),this.customNodes.set(g.CustomNode.StringArrayNode,t),this.customNodes.set(g.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(g.CustomNode.StringArrayRotateFunctionNode,n)}}}]),(0,s.default)(t,e),t}(v.AbstractCustomNodeGroup);l.__decorate([m.initializable(),l.__metadata("design:type",a.default)],_.prototype,"customNodes",void 0),_=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__ICustomNode)),l.__param(1,f.inject(p.ServiceIdentifiers.TStringArrayStorage)),l.__param(2,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(4,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],_),t.StringArrayCustomNodeGroup=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),g=r(24),N=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=g.ObfuscationEvent.AfterObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.SelfDefendingUnicodeNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.SelfDefendingCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),g=r(24),N=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=g.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DomainLockNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.DomainLockNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.DomainLockNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DomainLockCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),g=r(24),N=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=g.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionCallNode,function(r){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionNode,function(t){v.NodeAppender.appendNode(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=e.body.length,o=r.randomGenerator.getRandomInteger(0,n);v.NodeAppender.insertNodeAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(r){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e,v.NodeAppender.prependNode(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionCallNode),a=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionIntervalNode),i=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),a.initialize(e),i.initialize(this.appendEvent,t),this.customNodes.set(m.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(m.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(m.CustomNode.DebugProtectionFunctionIntervalNode,a),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,i)}}}]),(0,i.default)(t,e),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),g=r(24),N=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=g.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.ConsoleOutputDisableExpressionNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.ConsoleOutputCustomNodeGroup=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(22),s=r(29),c=r(57),d=r(58),u=r(178),l=r(177),f=r(176),p=r(175),m=r(174),g=r(173),N=r(170),v=r(169),y=r(168),_=r(167),h=r(166),b=r(165),S=r(163),I=r(161),C=r(159),F=r(155),O=r(153),j=r(152),T=r(151),k=r(149),x=r(147),E=r(140),w=r(138),G=r(134),R=r(133);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(T.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(k.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(13),m=r(14),g=r(15),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=e.expressions,n=[];if(e.quasis.forEach(function(e){n.push(g.NodeFactory.literalNode(e.value.cooked));var t=r.shift();t&&n.push(t)}),n=n.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(n[0])||d.isLiteralNodeWithStringValue(n[1])||n.unshift(g.NodeFactory.literalNode("")),n.length>1){var o=g.NodeFactory.binaryExpressionNode("+",n.shift(),n.shift());return n.forEach(function(e){o=g.NodeFactory.binaryExpressionNode("+",o,e)}),o}return n[0]}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),(0,a.default)(t,e),t}(m.AbstractNodeTransformer);v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.TemplateLiteralTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(15),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return e.properties.forEach(function(e){!e.computed&&e.key&&(e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(e.key.name)))}),e}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(17)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l,f=r(4),p=r(1),m=r(5),g=r(13),N=r(14),v=r(25),y=r(15),_=r(9),h=r(10),b=l=function(e){function t(e,r){var n;return(0,i.default)(this,t),(n=(0,d.default)(this,(0,u.default)(t).call(this,e,r))).cachedScopeNodesMap=new a.default,n}return(0,c.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Converting:return{enter:function(e,r){if(t.options.transformObjectKeys&&r&&_.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return _.NodeGuards.isVariableDeclaratorNode(t)?this.transformVariableDeclaratorHostObjectExpression(e,t):_.NodeGuards.isAssignmentExpressionNode(t)?this.transformAssignmentExpressionHostObjectExpression(e,t):e}},{key:"transformVariableDeclaratorHostObjectExpression",value:function(e,t){if(!_.NodeGuards.isIdentifierNode(t.id))return e;var r=h.NodeUtils.getScopeOfNode(t);return r&&_.NodeGuards.isNodeHasScope(r)?(this.cachedScopeNodesMap.set(t,r),this.transformObjectExpressionNode(e,t.id,t)):e}},{key:"transformAssignmentExpressionHostObjectExpression",value:function(e,t){var r=t.left;if(!l.isValidExpressionNode(r))return e;var n=h.NodeUtils.getScopeOfNode(t);return n&&_.NodeGuards.isNodeHasScope(n)?(this.cachedScopeNodesMap.set(t,n),this.transformObjectExpressionNode(e,r,t)):e}},{key:"extractPropertiesToExpressionStatements",value:function(e,t,r){for(var n=e.length,o=[],a=[],i=0;if.hostNodeSearchMinDepth&&t.splice(0,f.hostNodeSearchMinDepth),t.length>f.hostNodeSearchMaxDepth&&(t.length=f.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(I.NodeGuards.isFunctionDeclarationNode(e)||I.NodeGuards.isFunctionExpressionNode(e)||I.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;N.replace(e,{enter:function(e,n){if(C.NodeMetadata.isIgnoredNode(e))return N.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return N.VisitorOption.Skip;if(!f.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var a=f.controlFlowReplacersMap.get(e.type);return void 0===a?e:(0,o.default)({},r.controlFlowReplacerFactory(a).replace(e,n,t),{parentNode:n})}})}}]),(0,c.default)(t,e),t}(b.AbstractNodeTransformer);O.controlFlowReplacersMap=new i.default([[_.NodeType.BinaryExpression,y.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[_.NodeType.CallExpression,y.ControlFlowReplacer.CallExpressionControlFlowReplacer],[_.NodeType.LogicalExpression,y.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[_.NodeType.Literal,y.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),O.hostNodeSearchMinDepth=0,O.hostNodeSearchMaxDepth=2,O=f=p.__decorate([m.injectable(),p.__param(0,m.inject(g.ServiceIdentifiers.Factory__TControlFlowStorage)),p.__param(1,m.inject(g.ServiceIdentifiers.Factory__IControlFlowReplacer)),p.__param(2,m.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),p.__param(3,m.inject(g.ServiceIdentifiers.IRandomGenerator)),p.__param(4,m.inject(g.ServiceIdentifiers.IOptions)),p.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],O),t.FunctionControlFlowTransformer=O},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importStar(r(18)),g=r(58),N=r(32),v=r(26),y=r(13),_=r(14),h=r(15),b=r(9),S=r(10),I=u=function(e){function t(e,r,n,i){var s;return(0,a.default)(this,t),(s=(0,c.default)(this,(0,d.default)(t).call(this,n,i))).deadCodeInjectionRootAstHostNodeSet=new o.default,s.collectedBlockStatements=[],s.collectedBlockStatementsTotalLength=0,s.deadCodeInjectionCustomNodeFactory=e,s.transformersRunner=r,s}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case y.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&b.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&b.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case y.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;m.traverse(e,{enter:function(e){if(b.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);u.isValidCollectedBlockStatementNode(t)&&(S.NodeUtils.parentizeNode(t,t),t=r.transformersRunner.transform(t,u.transformersToRenameBlockScopeIdentifiers,y.TransformationStage.Obfuscating),r.collectedBlockStatements.push(t))}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!u.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!b.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return b.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=h.NodeFactory.blockStatementNode([h.NodeFactory.functionDeclarationNode(u.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(g.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return b.NodeGuards.isBreakStatementNode(e)||b.NodeGuards.isContinueStatementNode(e)||b.NodeGuards.isAwaitExpressionNode(e)||b.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!b.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=S.NodeUtils.getScopeOfNode(e),r=b.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=h.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return m.traverse(a,{enter:function(e){if(b.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,m.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return m.traverse(e,{enter:function(e){if(b.NodeGuards.isBlockStatementNode(e)&&t++,t>u.maxNestedBlockStatementsCount||u.isProhibitedNodeInsideCollectedBlockStatement(e)||u.isScopeHoistingFunctionDeclaration(e))return r=!1,m.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return m.traverse(e,{enter:function(e){if(u.isScopeHoistingFunctionDeclaration(e))return t=!1,m.VisitorOption.Break}}),!!t&&S.NodeUtils.getBlockScopesOfNode(e)[0].type!==v.NodeType.Program}}]),(0,i.default)(t,e),t}(_.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[N.NodeTransformer.CatchClauseTransformer,N.NodeTransformer.ClassDeclarationTransformer,N.NodeTransformer.FunctionDeclarationTransformer,N.NodeTransformer.FunctionTransformer,N.NodeTransformer.LabeledStatementTransformer,N.NodeTransformer.VariableDeclarationTransformer],I=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),l.__param(1,f.inject(p.ServiceIdentifiers.ITransformersRunner)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(22),m=r(45),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/has-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/define-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/object/get-own-property-names")},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/get-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/object/get-own-property-descriptor")},function(e,t){e.exports=require("@babel/runtime/core-js/object/define-property")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(22),g=r(13),N=r(14),v=r(9),y=r(10),_=d=function(e){function t(e,r,n,a){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,c.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,i.arrayUtils=r,i}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.arrayRange(r.length),o=this.arrayUtils.arrayShuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"blockStatementHasProhibitedStatements",value:function(e){return e.body.some(function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n})}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;v.NodeGuards.isBlockStatementNode(e)&&d.blockStatementHasProhibitedStatements(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),(0,a.default)(t,e),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(22),m=r(59),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),(0,a.default)(t,e),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(60),s=r(32),c=r(198),d=r(197),u=r(190),l=r(189),f=r(188),p=r(187),m=r(186);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=c.__importStar(r(18)),f=r(63),p=r(9),m=r(10),g=s=function(){function e(t){(0,a.default)(this,e),this.calleeDataExtractorFactory=t}return(0,i.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=s.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];l.traverse(a,{enter:function(r){if(p.NodeGuards.isCallExpressionNode(r))return a.parentNode!==m.NodeUtils.getBlockScopesOfNode(r)[0]?l.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},i=0;ir&&(n=Math.round(r+t*s.limitThreshold))>t&&(n=t),n}}]),e}();g.calleeDataExtractorsList=[f.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,f.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,f.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],g.limitThresholdActivationLength=25,g.limitThreshold=.002,g=s=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.Factory__ICalleeDataExtractor)),c.__metadata("design:paramtypes",[Function])],g),t.StackTraceAnalyzer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(35)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=l.__importStar(r(18)),m=r(47),g=r(9),N=r(10),v=u=function(e){function t(){return(0,a.default)(this,t),(0,c.default)(this,(0,d.default)(t).apply(this,arguments))}return(0,s.default)(t,[{key:"extract",value:function(e,t){if(!g.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(N.NodeUtils.getBlockScopesOfNode(e[0])[0],r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(g.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!g.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return g.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(g.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return p.traverse(e,{enter:function(e){if(g.NodeGuards.isVariableDeclaratorNode(e)&&g.NodeGuards.isIdentifierNode(e.id)&&e.init&&g.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),p.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,a=!1,i=void 0;try{for(var s,c=(0,o.default)(e);!(n=(s=c.next()).done);n=!0){var d=s.value;if(u.isValidTargetPropertyNode(d,r)){if(g.NodeGuards.isObjectExpressionNode(d.value))return this.findCalleeBlockStatement(d.value.properties,t);if(g.NodeGuards.isFunctionExpressionNode(d.value))return d.value.body}}}catch(e){a=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw i}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=g.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=g.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),(0,i.default)(t,e),t}(m.AbstractCalleeDataExtractor);v=u=l.__decorate([f.injectable()],v),t.ObjectExpressionCalleeDataExtractor=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=d.__importStar(r(18)),f=r(47),p=r(9),m=r(10),g=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,i.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),(0,a.default)(t,e),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=d.__importStar(r(18)),f=r(47),p=r(9),m=r(10),g=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,i.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),(0,a.default)(t,e),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(63),s=r(203),c=r(202),d=r(201),u=r(200);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("multimatch")},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=s.__importStar(r(206)),d=s.__importStar(r(67)),u=s.__importDefault(r(207)),l=r(64),f=r(68),p=r(65),m=function(){function e(t){(0,a.default)(this,e),this.options=t}return(0,i.default)(e,[{key:"readSourceCode",value:function(t){if(e.isFilePath(t)&&this.isValidFile(t))return this.readFile(t);if(e.isDirectoryPath(t)&&this.isValidDirectory(t))return this.readDirectoryRecursive(t);var r=e.availableInputExtensions.map(function(e){return"`".concat(e,"`")}).join(", ");throw new ReferenceError("Given input path must be a valid ".concat(r," file or directory path"))}},{key:"readDirectoryRecursive",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return c.readdirSync(t,f.JavaScriptObfuscatorCLI.encoding).forEach(function(a){var i="".concat(t,"/").concat(a);if(e.isDirectoryPath(i)&&r.isValidDirectory(i))n.push.apply(n,(0,o.default)(r.readDirectoryRecursive(i)));else if(e.isFilePath(i)&&r.isValidFile(i)){var s=r.readFile(i);n.push({filePath:i,content:s})}}),n}},{key:"readFile",value:function(t){return e.logFilePath(t),c.readFileSync(t,f.JavaScriptObfuscatorCLI.encoding)}},{key:"isValidDirectory",value:function(t){return!e.isExcludedPath(t,this.options.exclude)}},{key:"isValidFile",value:function(t){return e.availableInputExtensions.includes(d.extname(t))&&!t.includes(f.JavaScriptObfuscatorCLI.obfuscatedFilePrefix)&&!e.isExcludedPath(t,this.options.exclude)}}],[{key:"isExcludedPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;var r=d.basename(e),n=!!u.default([e],t).length;return t.some(function(t){return e.includes(t)||r.includes(t)})||n}},{key:"isDirectoryPath",value:function(e){try{return c.statSync(e).isDirectory()}catch(e){return!1}}},{key:"isFilePath",value:function(e){try{return c.statSync(e).isFile()}catch(e){return!1}}},{key:"logFilePath",value:function(e){var t=d.normalize(e);p.Logger.log(p.Logger.colorInfo,l.LoggingPrefix.CLI,"Obfuscating file: ".concat(t,"..."))}}]),e}();m.availableInputExtensions=[".js"],t.SourceCodeReader=m},function(e,t){function r(e){var t=new Error('Cannot find module "'+e+'".');throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=209},function(e,t){e.exports=require("mkdirp")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=i.__importStar(r(206)),c=i.__importStar(r(210)),d=i.__importStar(r(67)),u=r(68),l=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"getOutputCodePath",value:function(e){return d.normalize(e).split(".").map(function(e,t){return 0===t?"".concat(e).concat(u.JavaScriptObfuscatorCLI.obfuscatedFilePrefix):e}).join(".")}},{key:"getOutputSourceMapPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t&&(e="".concat(e.substring(0,e.lastIndexOf("/")),"/").concat(t)),/\.js\.map$/.test(e)?/\.js$/.test(e)&&(e+=".map"):e="".concat(e.split(".")[0],".js.map"),e}},{key:"getUserConfig",value:function(e){var t;try{t=r(209)(e)}catch(r){try{t=require(e)}catch(e){throw new ReferenceError("Given config path must be a valid `.js` or `.json` file path")}}return t}},{key:"writeFile",value:function(e,t){c.sync(d.dirname(e)),s.writeFileSync(e,t,{encoding:u.JavaScriptObfuscatorCLI.encoding})}}]),e}();t.CLIUtils=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(38);t.StringArrayEncodingSanitizer=function(e){switch(e){case"true":case"1":case n.StringArrayEncoding.Base64:return!0;case n.StringArrayEncoding.Rc4:return n.StringArrayEncoding.Rc4;default:return!1}}},function(e,t,r){"use strict";var n=r(0)(r(36));Object.defineProperty(t,"__esModule",{value:!0});var o=r(39);t.SourceMapModeSanitizer=function(e){if(!(0,n.default)(o.SourceMapMode).some(function(t){return o.SourceMapMode[t]===e}))throw new ReferenceError("Invalid value of `--source-map-mode` option");return e}},function(e,t,r){"use strict";var n=r(0)(r(36));Object.defineProperty(t,"__esModule",{value:!0});var o=r(23);t.ObfuscationTargetSanitizer=function(e){if(!(0,n.default)(o.ObfuscationTarget).some(function(t){return o.ObfuscationTarget[t]===e}))throw new ReferenceError("Invalid value of `--target` option");return e}},function(e,t,r){"use strict";var n=r(0)(r(36));Object.defineProperty(t,"__esModule",{value:!0});var o=r(40);t.IdentifierNamesGeneratorSanitizer=function(e){if(!(0,n.default)(o.IdentifierNamesGenerator).some(function(t){return o.IdentifierNamesGenerator[t]===e}))throw new ReferenceError("Invalid value of `--identifier-names-generator` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanSanitizer=function(e){return"true"===e||"1"===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArraySanitizer=function(e){if(/,$/.test(e))throw new SyntaxError("Multiple values should be wrapped inside quotes: --option-name 'value1, value2'");return e.split(",").map(function(e){return e.trim()})}},function(e,t){e.exports=require("commander")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(66);var i=r(68),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"obfuscate",value:function(e){var t=new i.JavaScriptObfuscatorCLI(e);t.initialize(),t.run()}}]),e}();t.JavaScriptObfuscatorCLI=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(219);e.exports=n.JavaScriptObfuscatorCLI}]); +require("source-map-support").install(),module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=220)}([function(e,t){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},function(e,t){e.exports=require("inversify")},function(e,t){e.exports=require("@babel/runtime/helpers/classCallCheck")},function(e,t){e.exports=require("@babel/runtime/helpers/createClass")},function(e,t){e.exports=require("tslib")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Factory__ICalleeDataExtractor="Factory",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomNode="Factory",e.Factory__ICustomNodeGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscationResult="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__TControlFlowStorage="Factory",e.IArrayUtils="IArrayUtils",e.ICalleeDataExtractor="ICalleeDataExtractor",e.ICryptUtils="ICryptUtils",e.ICustomNode="ICustomNode",e.ICustomNodeGroup="ICustomNodeGroup",e.IControlFlowReplacer="IControlFlowReplacer",e.IEscapeSequenceEncoder="IEscapeSequenceEncoder",e.IIdentifierNamesGenerator="IIdentifierNamesGenerator",e.IIdentifierObfuscatingReplacer="IIdentifierObfuscatingReplacer",e.IJavaScriptObfuscator="IJavaScriptObfuscator",e.ILogger="ILogger",e.INodeGuard="INodeGuard",e.INodeTransformer="INodeTransformer",e.IObfuscationEventEmitter="IObfuscationEventEmitter",e.IObfuscationResult="IObfuscationResult",e.IOptions="IOptions",e.IOptionsNormalizer="IOptionsNormalizer",e.IObfuscatingReplacer="IObfuscatingReplacer",e.IRandomGenerator="IRandomGenerator",e.ISourceCode="ISourceCode",e.ISourceMapCorrector="ISourceMapCorrector",e.IStackTraceAnalyzer="IStackTraceAnalyzer",e.ITransformersRunner="ITransformersRunner",e.Newable__ICustomNode="Newable",e.Newable__TControlFlowStorage="Newable",e.TCustomNodeGroupStorage="TCustomNodeGroupStorage",e.TInputOptions="TInputOptions",e.TStringArrayStorage="TStringArrayStorage"}(t.ServiceIdentifiers||(t.ServiceIdentifiers={}))},function(e,t){e.exports=require("@babel/runtime/helpers/getPrototypeOf")},function(e,t){e.exports=require("@babel/runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("@babel/runtime/helpers/inherits")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(26),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"isArrayPatternNode",value:function(e){return e.type===i.NodeType.ArrayPattern}},{key:"isArrowFunctionExpressionNode",value:function(e){return e.type===i.NodeType.ArrowFunctionExpression}},{key:"isAssignmentExpressionNode",value:function(e){return e.type===i.NodeType.AssignmentExpression}},{key:"isAssignmentPatternNode",value:function(e){return e.type===i.NodeType.AssignmentPattern}},{key:"isAwaitExpressionNode",value:function(e){return e.type===i.NodeType.AwaitExpression}},{key:"isBlockStatementNode",value:function(e){return e.type===i.NodeType.BlockStatement}},{key:"isBreakStatementNode",value:function(e){return e.type===i.NodeType.BreakStatement}},{key:"isCallExpressionNode",value:function(e){return e.type===i.NodeType.CallExpression}},{key:"isCatchClauseNode",value:function(e){return e.type===i.NodeType.CatchClause}},{key:"isClassDeclarationNode",value:function(e){return e.type===i.NodeType.ClassDeclaration}},{key:"isContinueStatementNode",value:function(e){return e.type===i.NodeType.ContinueStatement}},{key:"isExportNamedDeclarationNode",value:function(e){return e.type===i.NodeType.ExportNamedDeclaration}},{key:"isExpressionStatementNode",value:function(e){return e.type===i.NodeType.ExpressionStatement}},{key:"isFunctionDeclarationNode",value:function(e){return e.type===i.NodeType.FunctionDeclaration}},{key:"isFunctionExpressionNode",value:function(e){return e.type===i.NodeType.FunctionExpression}},{key:"isIdentifierNode",value:function(e){return e.type===i.NodeType.Identifier}},{key:"isIfStatementNode",value:function(e){return e.type===i.NodeType.IfStatement}},{key:"isImportDeclarationNode",value:function(e){return e.type===i.NodeType.ImportDeclaration}},{key:"isImportDefaultSpecifierNode",value:function(e){return e.type===i.NodeType.ImportDefaultSpecifier}},{key:"isImportNamespaceSpecifierNode",value:function(e){return e.type===i.NodeType.ImportNamespaceSpecifier}},{key:"isImportSpecifierNode",value:function(e){return e.type===i.NodeType.ImportSpecifier}},{key:"isLabelIdentifierNode",value:function(t,r){var n=e.isLabeledStatementNode(r)&&r.label===t,o=e.isContinueStatementNode(r)&&r.label===t,a=e.isBreakStatementNode(r)&&r.label===t;return n||o||a}},{key:"isLabeledStatementNode",value:function(e){return e.type===i.NodeType.LabeledStatement}},{key:"isLiteralNode",value:function(e){return e.type===i.NodeType.Literal}},{key:"isMemberExpressionNode",value:function(e){return e.type===i.NodeType.MemberExpression}},{key:"isMethodDefinitionNode",value:function(e){return e.type===i.NodeType.MethodDefinition}},{key:"isNode",value:function(e){return e&&void 0!==!e.type}},{key:"isNodeHasBlockScope",value:function(t,r){return e.isProgramNode(t)||e.isBlockStatementNode(t)&&e.nodesWithBlockScope.includes(r.type)}},{key:"isNodeHasScope",value:function(t){return e.isProgramNode(t)||e.isBlockStatementNode(t)||e.isSwitchCaseNode(t)}},{key:"isNodeWithComments",value:function(e){return Boolean(e.leadingComments)||Boolean(e.trailingComments)}},{key:"isObjectPatternNode",value:function(e){return e.type===i.NodeType.ObjectPattern}},{key:"isObjectExpressionNode",value:function(e){return e.type===i.NodeType.ObjectExpression}},{key:"isProgramNode",value:function(e){return e.type===i.NodeType.Program}},{key:"isPropertyNode",value:function(e){return e.type===i.NodeType.Property}},{key:"isReplaceableIdentifierNode",value:function(t,r){if(!e.isIdentifierNode(t))return!1;var n=e.isPropertyNode(r)&&!r.computed&&r.key===t,o=e.isMemberExpressionNode(r)&&!r.computed&&r.property===t,a=e.isMethodDefinitionNode(r)&&!r.computed,i=e.isLabelIdentifierNode(t,r);return!(n||o||a||i)}},{key:"isRestElementNode",value:function(e){return e.type===i.NodeType.RestElement}},{key:"isReturnStatementNode",value:function(e){return e.type===i.NodeType.ReturnStatement}},{key:"isSuperNode",value:function(e){return e.type===i.NodeType.Super}},{key:"isSwitchCaseNode",value:function(e){return e.type===i.NodeType.SwitchCase}},{key:"isTaggedTemplateExpressionNode",value:function(e){return e.type===i.NodeType.TaggedTemplateExpression}},{key:"isTemplateLiteralNode",value:function(e){return e.type===i.NodeType.TemplateLiteral}},{key:"isUnaryExpressionNode",value:function(e){return e.type===i.NodeType.UnaryExpression}},{key:"isUseStrictOperator",value:function(e){return e.type===i.NodeType.ExpressionStatement&&"use strict"===e.directive}},{key:"isVariableDeclarationNode",value:function(e){return e.type===i.NodeType.VariableDeclaration}},{key:"isVariableDeclaratorNode",value:function(e){return e.type===i.NodeType.VariableDeclarator}},{key:"isWhileStatementNode",value:function(e){return e.type===i.NodeType.WhileStatement}}]),e}();s.nodesWithBlockScope=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition],t.NodeGuards=s},function(e,t,r){"use strict";var n=r(0),o=n(r(62)),a=n(r(36)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=c.__importStar(r(46)),u=c.__importStar(r(61)),l=c.__importStar(r(18)),f=r(9),p=r(19),m=function(){function e(){(0,i.default)(this,e)}return(0,s.default)(e,null,[{key:"addXVerbatimPropertyToLiteralNode",value:function(e){return f.NodeGuards.isLiteralNode(e)&&(e["x-verbatim-property"]={content:e.raw,precedence:d.Precedence.Primary}),e}},{key:"clone",value:function(t){return e.parentize(e.cloneRecursive(t))}},{key:"convertCodeToStructure",value:function(t){var r=u.parse(t,{sourceType:"script"});return l.replace(r,{enter:function(t,r){return e.parentizeNode(t,r),e.addXVerbatimPropertyToLiteralNode(t),p.NodeMetadata.set(t,{ignoredNode:!1}),t}}),r.body}},{key:"convertStructureToCode",value:function(e){return e.reduce(function(e,t){return e+d.generate(t,{sourceMapWithCode:!0}).code},"")}},{key:"getBlockScopesOfNode",value:function(t){return e.getBlockScopesOfNodeRecursive(t)}},{key:"getNextSiblingStatementNode",value:function(t){return e.getSiblingStatementNodeByOffset(t,1)}},{key:"getPreviousSiblingStatementNode",value:function(t){return e.getSiblingStatementNodeByOffset(t,-1)}},{key:"getScopeOfNode",value:function(t){var r=t.parentNode;if(!r)throw new ReferenceError("`parentNode` property of given node is `undefined`");return f.NodeGuards.isNodeHasScope(r)?r:e.getScopeOfNode(r)}},{key:"getUnaryExpressionArgumentNode",value:function(t){return f.NodeGuards.isUnaryExpressionNode(t.argument)?e.getUnaryExpressionArgumentNode(t.argument):t.argument}},{key:"parentize",value:function(t){return l.replace(t,{enter:e.parentizeNode}),t}},{key:"parentizeNode",value:function(e,t){return e.parentNode=t||e,e}},{key:"cloneRecursive",value:function(t){if(null===t)return t;var r={};return(0,a.default)(t).forEach(function(n){if("parentNode"!==n){var a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}},{key:"getBlockScopesOfNodeRecursive",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return f.NodeGuards.isBlockStatementNode(t)&&o===t&&r.push(t),(f.NodeGuards.isProgramNode(t)||n&&f.NodeGuards.isNodeHasBlockScope(t,o))&&r.push(t),t!==o?e.getBlockScopesOfNodeRecursive(o,r,++n):r}},{key:"getSiblingStatementNodeByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=f.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeUtils=m},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(196)),i=n(r(195)),s=n(r(194)),c=n(r(193)),d=n(r(192)),u=n(r(191)),l=n(r(31)),f=n(r(36));Object.defineProperty(t,"__esModule",{value:!0});var p={configurable:!0,enumerable:!0},m="_initialized",g="_initializablePropertiesSet",N="_wrappedMethodsSet",v="constructor";function y(e,t,r){(0,u.default)(e,r)||(0,d.default)(e,t,r)}t.initializable=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initialize",t=(0,f.default)(this)[0];return function(r,n){var u=r[e];if(!u||"function"!=typeof u)throw new Error("`".concat(e,"` method with initialization logic not ")+"found. `@".concat(t,"` decorator requires `").concat(e,"` method"));return y(m,!1,r),y(g,new l.default,r),y(N,new l.default,r),function(e,t){var r=(0,c.default)(e),n=[t,v];r.forEach(function(r){var c=(0,s.default)(g,e),d=(0,s.default)(N,e),u=n.includes(r)||c.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=(0,i.default)(e,r)||p,v=f.value;(0,a.default)(e,r,(0,o.default)({},f,{value:function(){if(!(0,s.default)(m,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return v.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var n=(0,i.default)(e,t)||p,s=n.value;(0,a.default)(e,t,(0,o.default)({},n,{value:function(){(0,d.default)(m,!0,this);var e=s.apply(this,arguments);return this[r],e}}))}(r,e,n),function(e,t){(0,s.default)(g,e).add(t);var r="_".concat(t),n=(0,i.default)(e,r)||p;return(0,a.default)(e,t,(0,o.default)({},n,{get:function(){if(void 0===this[r])throw new Error("Property `".concat(t,"` is not initialized! Initialize it first!"));return this[r]},set:function(e){this[r]=e}})),n}(r,n)}}},function(e,t){e.exports=require("@babel/runtime/core-js/object/assign")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Preparing="Preparing",e.DeadCodeInjection="DeadCodeInjection",e.ControlFlowFlattening="ControlFlowFlattening",e.Converting="Converting",e.Obfuscating="Obfuscating",e.Finalizing="Finalizing"}(t.TransformationStage||(t.TransformationStage={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=r(11),u=function(){function e(t,r){(0,o.default)(this,e),this.randomGenerator=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){this.nodeIdentifier=this.randomGenerator.getRandomInteger(0,1e4)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",Number)],u.prototype,"nodeIdentifier",void 0),i.__decorate([s.postConstruct(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],u.prototype,"initialize",null),u=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],u),t.AbstractNodeTransformer=u},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4).__importStar(r(46)),c=r(26),d=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"programNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.Program,body:e,sourceType:"script",metadata:{ignoredNode:!1}}}},{key:"arrayExpressionNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}},{key:"assignmentExpressionNode",value:function(e,t,r){return{type:c.NodeType.AssignmentExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"binaryExpressionNode",value:function(e,t,r){return{type:c.NodeType.BinaryExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"blockStatementNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}},{key:"breakStatement",value:function(e){var t={type:c.NodeType.BreakStatement,metadata:{ignoredNode:!1}};return e&&(t.label=e),t}},{key:"callExpressionNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:c.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}},{key:"continueStatement",value:function(e){var t={type:c.NodeType.ContinueStatement,metadata:{ignoredNode:!1}};return e&&(t.label=e),t}},{key:"expressionStatementNode",value:function(e){return{type:c.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}},{key:"functionDeclarationNode",value:function(t,r,n){return{type:c.NodeType.FunctionDeclaration,id:e.identifierNode(t),params:r,body:n,generator:!1,metadata:{ignoredNode:!1}}}},{key:"functionExpressionNode",value:function(e,t){return{type:c.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}},{key:"ifStatementNode",value:function(e,t,r){return(0,o.default)({type:c.NodeType.IfStatement,test:e,consequent:t},r&&{alternate:r},{metadata:{ignoredNode:!1}})}},{key:"identifierNode",value:function(e){return{type:c.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}},{key:"literalNode",value:function(e,t){return t=void 0!==t?t:"'".concat(e,"'"),{type:c.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:s.Precedence.Primary},metadata:{ignoredNode:!1}}}},{key:"logicalExpressionNode",value:function(e,t,r){return{type:c.NodeType.LogicalExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"memberExpressionNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:c.NodeType.MemberExpression,computed:r,object:e,property:t,metadata:{ignoredNode:!1}}}},{key:"methodDefinitionNode",value:function(e,t,r,n){return{type:c.NodeType.MethodDefinition,key:e,value:t,kind:r,computed:n,static:!1,metadata:{ignoredNode:!1}}}},{key:"objectExpressionNode",value:function(e){return{type:c.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}},{key:"propertyNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:c.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:r,metadata:{ignoredNode:!1}}}},{key:"returnStatementNode",value:function(e){return{type:c.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}},{key:"switchStatementNode",value:function(e,t){return{type:c.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}},{key:"switchCaseNode",value:function(e,t){return{type:c.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}},{key:"unaryExpressionNode",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:c.NodeType.UnaryExpression,operator:e,argument:t,prefix:r,metadata:{ignoredNode:!1}}}},{key:"updateExpressionNode",value:function(e,t){return{type:c.NodeType.UpdateExpression,operator:e,argument:t,prefix:!1,metadata:{ignoredNode:!1}}}},{key:"variableDeclarationNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"var";return{type:c.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}},{key:"variableDeclaratorNode",value:function(e,t){return{type:c.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}},{key:"whileStatementNode",value:function(e,t){return{type:c.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}]),e}();t.NodeFactory=d},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(5),u=r(172),l=r(171),f=i=function(){function e(t,r,n){(0,o.default)(this,e),this.cachedNode=null,this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(2,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Function,Object,Object])],f),t.AbstractCustomNode=f},function(e,t){e.exports=require("@babel/runtime/core-js/map")},function(e,t){e.exports=require("estraverse")},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"set",value:function(e,t){e.metadata=(0,o.default)(e.metadata||{},t)}},{key:"get",value:function(e,t){return void 0!==e.metadata?e.metadata[t]:void 0}},{key:"isIgnoredNode",value:function(t){return!0===e.get(t,"ignoredNode")}},{key:"isRenamedIdentifier",value:function(t){return!0===e.get(t,"renamedIdentifier")}},{key:"isReplacedLiteral",value:function(t){return!0===e.get(t,"replacedLiteral")}}]),e}();t.NodeMetadata=s},function(e,t){e.exports=require("string-template")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BaseIdentifierObfuscatingReplacer="BaseIdentifierObfuscatingReplacer"}(t.IdentifierObfuscatingReplacer||(t.IdentifierObfuscatingReplacer={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionFunctionNode="BinaryExpressionFunctionNode",e.BlockStatementControlFlowFlatteningNode="BlockStatementControlFlowFlatteningNode",e.CallExpressionControlFlowStorageCallNode="CallExpressionControlFlowStorageCallNode",e.CallExpressionFunctionNode="CallExpressionFunctionNode",e.ControlFlowStorageNode="ControlFlowStorageNode",e.ExpressionWithOperatorControlFlowStorageCallNode="ExpressionWithOperatorControlFlowStorageCallNode",e.LogicalExpressionFunctionNode="LogicalExpressionFunctionNode",e.StringLiteralControlFlowStorageCallNode="StringLiteralControlFlowStorageCallNode",e.StringLiteralNode="StringLiteralNode"}(t.ControlFlowCustomNode||(t.ControlFlowCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Browser="browser",e.BrowserNoEval="browser-no-eval",e.Node="node"}(t.ObfuscationTarget||(t.ObfuscationTarget={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"appendNode",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(e.getScopeNodeStatements(t)).concat((0,o.default)(r)))}},{key:"appendNodeToOptimalBlockScope",value:function(t,r,n){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;o=t.length?e.getOptimalBlockScope(t,a):r,e.prependNode(o,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertNodeAfter",value:function(t,r,n){var o=e.getScopeNodeStatements(t).indexOf(n);e.insertNodeAtIndex(t,r,o+1)}},{key:"insertNodeAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(e.getScopeNodeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeNodeStatements(t).slice(n))))}},{key:"prependNode",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(r).concat((0,o.default)(e.getScopeNodeStatements(t))))}},{key:"getScopeNodeStatements",value:function(e){return s.NodeGuards.isSwitchCaseNode(e)?e.consequent:e.body}},{key:"parentizeScopeStatementsBeforeAppend",value:function(e,t){return t.forEach(function(t){t.parentNode=e}),t}},{key:"setScopeNodeStatements",value:function(e,t){s.NodeGuards.isSwitchCaseNode(e)?e.consequent=t:e.body=t}}]),e}();t.NodeAppender=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassDeclaration="ClassDeclaration",e.ContinueStatement="ContinueStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExpressionStatement="ExpressionStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MethodDefinition="MethodDefinition",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateLiteral="TemplateLiteral",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement"}(t.NodeType||(t.NodeType={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(205)),a=n(r(17)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(1),d=r(5),u=r(204),l=r(199),f=r(185),p=r(179),m=r(132),g=r(131),N=r(128),v=r(127),y=r(114),_=r(99),h=r(89),b=r(84),S=r(78),I=r(65),C=r(75),F=r(73),O=r(72),j=r(71),T=r(70),k=function(){function e(){(0,i.default)(this,e),this.container=new c.Container}return(0,s.default)(e,[{key:"get",value:function(e){return this.container.get(e)}},{key:"getNamed",value:function(e,t){return this.container.getNamed(e,t)}},{key:"load",value:function(e,t){this.container.bind(d.ServiceIdentifiers.ISourceCode).toDynamicValue(function(){return new O.SourceCode(e)}).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.TInputOptions).toDynamicValue(function(){return t}).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.ILogger).to(I.Logger).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IJavaScriptObfuscator).to(S.JavaScriptObfuscator).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.ITransformersRunner).to(T.TransformersRunner).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IObfuscationResult).to(F.ObfuscationResult).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.Factory__IObfuscationResult).toFactory(function(e){return function(t,r){var n=e.container.get(d.ServiceIdentifiers.IObfuscationResult);return n.initialize(t,r),n}}),this.container.bind(d.ServiceIdentifiers.ISourceMapCorrector).to(j.SourceMapCorrector).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IObfuscationEventEmitter).to(C.ObfuscationEventEmitter).inSingletonScope(),this.container.load(u.analyzersModule),this.container.load(l.controlFlowTransformersModule),this.container.load(f.convertingTransformersModule),this.container.load(p.customNodesModule),this.container.load(m.finalizingTransformersModule),this.container.load(g.generatorsModule),this.container.load(N.nodeTransformersModule),this.container.load(v.obfuscatingTransformersModule),this.container.load(y.optionsModule),this.container.load(_.preparingTransformersModule),this.container.load(h.storagesModule),this.container.load(b.utilsModule)}},{key:"unload",value:function(){this.container.unbindAll()}}],[{key:"getFactory",value:function(e){return function(t){return function(r){return t.container.getNamed(e,r)}}}},{key:"getCacheFactory",value:function(e){return function(t){var r=new a.default;return function(n){if(r.has(n))return r.get(n);var o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}},{key:"isCeilNumber",value:function(e){return e%1==0}},{key:"stringRotate",value:function(e,t){if(!e)throw new ReferenceError("Cannot rotate empty string.");for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=new s.InversifyContainerFacade;r.load(e,t);var n=r.get(i.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.17.0-dev.1",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base64="base64",e.Rc4="rc4"}(t.StringArrayEncoding||(t.StringArrayEncoding={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Inline="inline",e.Separate="separate"}(t.SourceMapMode||(t.SourceMapMode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HexadecimalIdentifierNamesGenerator="hexadecimal",e.MangledIdentifierNamesGenerator="mangled"}(t.IdentifierNamesGenerator||(t.IdentifierNamesGenerator={}))},function(e,t,r){"use strict";var n=r(0)(r(2));Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),a=r(1),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object])],s),t.AbstractObfuscatingReplacer=s},function(e,t){e.exports=require("@babel/runtime/helpers/get")},function(e,t,r){"use strict";var n=r(0)(r(55));Object.defineProperty(t,"__esModule",{value:!0});var o=r(40),a=r(23),i=r(39);t.NO_ADDITIONAL_NODES_PRESET=(0,n.default)({compact:!0,controlFlowFlattening:!1,controlFlowFlatteningThreshold:0,deadCodeInjection:!1,deadCodeInjectionThreshold:0,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",log:!1,renameGlobals:!1,reservedNames:[],rotateStringArray:!1,seed:0,selfDefending:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:a.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableNoEvalTemplate=function(){return"\n var that = (typeof window !== 'undefined'\n ? window\n : (typeof process === 'object' &&\n typeof require === 'function' &&\n typeof global === 'object')\n ? global\n : this);\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=s=function(){function e(t,r,n){(0,a.default)(this,e),this.replacerDataByControlFlowStorageId=new o.default,this.controlFlowCustomNodeFactory=t,this.randomGenerator=r,this.options=n}return(0,i.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),i=s.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=i.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(30)),i=n(r(35)),s=n(r(17)),c=n(r(2)),d=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=function(){function e(t,r){(0,c.default)(this,e),this.randomGenerator=t,this.options=r}return(0,d.default)(e,[{key:"initialize",value:function(){this.storage=new s.default,this.storageId=this.randomGenerator.getRandomString(6)}},{key:"get",value:function(e){var t=this.storage.get(e);if(!t)throw new Error("No value found in map storage with key `".concat(e,"`"));return t}},{key:"getKeyOf",value:function(e){var t=!0,r=!1,n=void 0;try{for(var o,s=(0,i.default)(this.storage);!(t=(o=s.next()).done);t=!0){var c=(0,a.default)(o.value,2),d=c[0];if(e===c[1])return d}}catch(e){r=!0,n=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw n}}return null}},{key:"getLength",value:function(){return this.storage.size}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"has",value:function(e){return this.storage.has(e)}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=new s.default((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();u.__decorate([p.initializable(),u.__metadata("design:type",String)],m.prototype,"storageId",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",s.default)],m.prototype,"storage",void 0),u.__decorate([l.postConstruct(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[]),u.__metadata("design:returntype",void 0)],m.prototype,"initialize",null),m=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],m),t.MapStorage=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlackListNodeGuard="BlackListNodeGuard",e.ConditionalCommentNodeGuard="ConditionalCommentNodeGuard"}(t.ObfuscatingGuard||(t.ObfuscatingGuard={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BooleanLiteralObfuscatingReplacer="BooleanLiteralObfuscatingReplacer",e.NumberLiteralObfuscatingReplacer="NumberLiteralObfuscatingReplacer",e.StringLiteralObfuscatingReplacer="StringLiteralObfuscatingReplacer"}(t.LiteralObfuscatingReplacer||(t.LiteralObfuscatingReplacer={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=function(){function e(t,r){(0,o.default)(this,e),this.randomGenerator=t,this.options=r}return(0,a.default)(e,[{key:"isValidIdentifierName",value:function(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),e}();d=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],d),t.AbstractIdentifierNamesGenerator=d},function(e,t){e.exports=require("@babel/runtime/core-js/object/freeze")},function(e,t){e.exports=require("@babel/runtime/core-js/array/from")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ConsoleOutputCustomNodeGroup="ConsoleOutputCustomNodeGroup",e.DebugProtectionCustomNodeGroup="DebugProtectionCustomNodeGroup",e.DomainLockCustomNodeGroup="DomainLockCustomNodeGroup",e.SelfDefendingCustomNodeGroup="SelfDefendingCustomNodeGroup",e.StringArrayCustomNodeGroup="StringArrayCustomNodeGroup"}(t.CustomNodeGroup||(t.CustomNodeGroup={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(22),p=r(45),m=r(9),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(f.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!m.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(p.AbstractControlFlowReplacer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.ExpressionWithOperatorControlFlowReplacer=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionControlFlowReplacer="BinaryExpressionControlFlowReplacer",e.CallExpressionControlFlowReplacer="CallExpressionControlFlowReplacer",e.LogicalExpressionControlFlowReplacer="LogicalExpressionControlFlowReplacer",e.StringLiteralControlFlowReplacer="StringLiteralControlFlowReplacer"}(t.ControlFlowReplacer||(t.ControlFlowReplacer={}))},function(e,t){e.exports=require("espree")},function(e,t){e.exports=require("@babel/runtime/helpers/typeof")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.FunctionDeclarationCalleeDataExtractor="FunctionDeclarationCalleeDataExtractor",e.FunctionExpressionCalleeDataExtractor="FunctionExpressionCalleeDataExtractor",e.ObjectExpressionCalleeDataExtractor="ObjectExpressionCalleeDataExtractor"}(t.CalleeDataExtractor||(t.CalleeDataExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(5),u=s.__importDefault(r(49)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t){e.exports=require("reflect-metadata")},function(e,t){e.exports=require("path")},function(e,t,r){"use strict";var n=r(0),o=n(r(36)),a=n(r(12)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=c.__importStar(r(218)),u=c.__importStar(r(67)),l=r(11),f=r(48),p=r(217),m=r(216),g=r(215),N=r(214),v=r(213),y=r(212),_=r(211),h=r(37),b=r(208),S=function(){function e(t){(0,i.default)(this,e),this.rawArguments=t,this.arguments=t.slice(2)}return(0,s.default)(e,[{key:"initialize",value:function(){this.inputPath=u.normalize(this.arguments[0]||""),this.commands=new d.Command,this.configureCommands(),this.configureHelp(),this.inputCLIOptions=this.commands.opts()}},{key:"run",value:function(){if(!this.arguments.length||this.arguments.includes("--help"))this.commands.outputHelp();else{var e=new b.SourceCodeReader(this.inputCLIOptions).readSourceCode(this.inputPath);this.processSourceCodeData(e)}}},{key:"buildOptions",value:function(){var t=e.filterOptions(this.inputCLIOptions),r=this.inputCLIOptions.config,n=r?u.resolve(r,"."):"",o=n?_.CLIUtils.getUserConfig(n):{};return(0,a.default)({},f.DEFAULT_PRESET,o,t)}},{key:"configureCommands",value:function(){this.commands.usage(" [options]").version("0.17.0-dev.1","-v, --version").option("-o, --output ","Output path for obfuscated code").option("--compact ","Disable one line output code compacting",m.BooleanSanitizer).option("--config ","Name of js / json config file").option("--control-flow-flattening ","Enables control flow flattening",m.BooleanSanitizer).option("--control-flow-flattening-threshold ","The probability that the control flow flattening transformation will be applied to the node",parseFloat).option("--dead-code-injection ","Enables dead code injection",m.BooleanSanitizer).option("--dead-code-injection-threshold ","The probability that the dead code injection transformation will be applied to the node",parseFloat).option("--debug-protection ","Disable browser Debug panel (can cause DevTools enabled browser freeze)",m.BooleanSanitizer).option("--debug-protection-interval ","Disable browser Debug panel even after page was loaded (can cause DevTools enabled browser freeze)",m.BooleanSanitizer).option("--disable-console-output ","Allow console.log, console.info, console.error and console.warn messages output into browser console",m.BooleanSanitizer).option("--domain-lock (comma separated, without whitespaces)","Blocks the execution of the code in domains that do not match the passed RegExp patterns (comma separated)",p.ArraySanitizer).option("--exclude (comma separated, without whitespaces)","A filename or glob which indicates files to exclude from obfuscation",p.ArraySanitizer).option("--identifier-names-generator ","Sets identifier names generator. Values: hexadecimal, mangled. Default: hexadecimal",g.IdentifierNamesGeneratorSanitizer).option("--identifiers-prefix ","Sets prefix for all global identifiers.").option("--log ","Enables logging of the information to the console",m.BooleanSanitizer).option("--reserved-names (comma separated, without whitespaces)","Disables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated)",p.ArraySanitizer).option("--rename-globals ","Allows to enable obfuscation of global variable and function names with declaration.",m.BooleanSanitizer).option("--rotate-string-array ","Disable rotation of unicode array values during obfuscation",m.BooleanSanitizer).option("--seed ","Sets seed for random generator. This is useful for creating repeatable results.",parseFloat).option("--self-defending ","Disables self-defending for obfuscated code",m.BooleanSanitizer).option("--source-map ","Enables source map generation",m.BooleanSanitizer).option("--source-map-base-url ","Sets base url to the source map import url when `--source-map-mode=separate`").option("--source-map-file-name ","Sets file name for output source map when `--source-map-mode=separate`").option("--source-map-mode ","Specify source map output mode. Values: inline, separate. Default: separate",v.SourceMapModeSanitizer).option("--string-array ","Disables gathering of all literal strings into an array and replacing every literal string with an array call",m.BooleanSanitizer).option("--string-array-encoding ","Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed. Values: true, false, base64, rc4. Default: false",y.StringArrayEncodingSanitizer).option("--string-array-threshold ","The probability that the literal string will be inserted into stringArray (Default: 0.8, Min: 0, Max: 1)",parseFloat).option("--target ","Allows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser",N.ObfuscationTargetSanitizer).option("--transform-object-keys ","Enables transformation of object keys",m.BooleanSanitizer).option("--unicode-escape-sequence ","Allows to enable/disable string conversion to unicode escape sequence",m.BooleanSanitizer).parse(this.rawArguments)}},{key:"configureHelp",value:function(){this.commands.on("--help",function(){console.log(" Examples:\n"),console.log(" %> javascript-obfuscator input_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_file_name.js --output output_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_directory_name --compact true --self-defending false"),console.log("")})}},{key:"processSourceCodeData",value:function(e){var t=this,r=this.inputCLIOptions.output?u.normalize(this.inputCLIOptions.output):"";if(Array.isArray(e))e.forEach(function(e,n){var o=e.filePath,a=e.content,i=r?u.join(r,o):_.CLIUtils.getOutputCodePath(o);t.processSourceCode(a,i,n)});else{var n=r||_.CLIUtils.getOutputCodePath(this.inputPath);this.processSourceCode(e,n,null)}}},{key:"processSourceCode",value:function(t,r,n){var o=this.buildOptions();if(null!==n){var i=this.inputCLIOptions.identifiersPrefix||e.baseIdentifiersPrefix,s="".concat(i).concat(n);o=(0,a.default)({},o,{identifiersPrefix:s})}o.sourceMap?e.processSourceCodeWithSourceMap(t,r,o):e.processSourceCodeWithoutSourceMap(t,r,o)}}],[{key:"filterOptions",value:function(e){var t={};return(0,o.default)(e).forEach(function(r){void 0!==e[r]&&(t[r]=e[r])}),t}},{key:"processSourceCodeWithoutSourceMap",value:function(e,t,r){var n=h.JavaScriptObfuscator.obfuscate(e,r).getObfuscatedCode();_.CLIUtils.writeFile(t,n)}},{key:"processSourceCodeWithSourceMap",value:function(e,t,r){var n=_.CLIUtils.getOutputSourceMapPath(t,r.sourceMapFileName||"");r=(0,a.default)({},r,{sourceMapFileName:u.basename(n)});var o=h.JavaScriptObfuscator.obfuscate(e,r);_.CLIUtils.writeFile(t,o.getObfuscatedCode()),"separate"===r.sourceMapMode&&o.getSourceMap()&&_.CLIUtils.writeFile(n,o.getSourceMap())}}]),e}();S.encoding="utf8",S.obfuscatedFilePrefix="-obfuscated",S.baseIdentifiersPrefix="a",c.__decorate([l.initializable(),c.__metadata("design:type",Object)],S.prototype,"commands",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Object)],S.prototype,"inputCLIOptions",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",String)],S.prototype,"inputPath",void 0),t.JavaScriptObfuscatorCLI=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Enter="enter",e.Leave="leave"}(t.VisitorDirection||(t.VisitorDirection={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=i.__importStar(r(18)),u=r(69),l=r(9),f=r(19),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();u.colorError=d.default.red,u.nearestSymbolsCount=15,u.sourceTypes=["script","module"],t.EspreeFacade=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.TransformationStage="Transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=c.__importStar(r(46)),f=r(77),p=r(32),m=r(13),g=r(76),N=r(9),v=s=function(){function e(t,r,n,o,i){(0,a.default)(this,e),this.transformersRunner=t,this.sourceMapCorrector=r,this.randomGenerator=n,this.logger=o,this.options=i}return(0,i.default)(e,[{key:"obfuscate",value:function(e){var t=Date.now();this.logger.info(f.LoggingMessage.Version,"0.16.0"),this.logger.info(f.LoggingMessage.ObfuscationStarted),this.logger.info(f.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getSeed());var r=this.parseCode(e),n=this.transformAstTree(r),o=this.generateCode(e,n),a=(Date.now()-t)/1e3;return this.logger.success(f.LoggingMessage.ObfuscationCompleted,a),this.getObfuscationResult(o)}},{key:"parseCode",value:function(e){return g.EspreeFacade.parse(e,s.espreeParseOptions)}},{key:"transformAstTree",value:function(e){return!N.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runTransformationStage(e,m.TransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runTransformationStage(e,m.TransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runTransformationStage(e,m.TransformationStage.ControlFlowFlattening)),e=this.runTransformationStage(e,m.TransformationStage.Converting),e=this.runTransformationStage(e,m.TransformationStage.Obfuscating),e=this.runTransformationStage(e,m.TransformationStage.Finalizing)):(this.logger.warn(f.LoggingMessage.EmptySourceCode),e)}},{key:"generateCode",value:function(e,t){var r=(0,o.default)({},s.escodegenParams);this.options.sourceMap&&(r.sourceMap="sourceMap",r.sourceContent=e);var n=l.generate(t,(0,o.default)({},r,{format:{compact:this.options.compact}}));return n.map=n.map?n.map.toString():"",n}},{key:"getObfuscationResult",value:function(e){return this.sourceMapCorrector.correct(e.code,e.map)}},{key:"runTransformationStage",value:function(e,t){return this.logger.info(f.LoggingMessage.TransformationStage,t),this.transformersRunner.transform(e,s.transformersList,t)}}]),e}();v.espreeParseOptions={attachComment:!0,comment:!0,ecmaFeatures:{experimentalObjectRestSpread:!0},ecmaVersion:9,loc:!0,range:!0},v.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},v.transformersList=[p.NodeTransformer.BlockStatementControlFlowTransformer,p.NodeTransformer.ClassDeclarationTransformer,p.NodeTransformer.CommentsTransformer,p.NodeTransformer.CustomNodesTransformer,p.NodeTransformer.DeadCodeInjectionTransformer,p.NodeTransformer.EvalCallExpressionTransformer,p.NodeTransformer.FunctionControlFlowTransformer,p.NodeTransformer.CatchClauseTransformer,p.NodeTransformer.FunctionDeclarationTransformer,p.NodeTransformer.FunctionTransformer,p.NodeTransformer.ImportDeclarationTransformer,p.NodeTransformer.LabeledStatementTransformer,p.NodeTransformer.LiteralTransformer,p.NodeTransformer.MemberExpressionTransformer,p.NodeTransformer.MetadataTransformer,p.NodeTransformer.MethodDefinitionTransformer,p.NodeTransformer.ObfuscatingGuardsTransformer,p.NodeTransformer.ObjectExpressionKeysTransformer,p.NodeTransformer.ObjectExpressionTransformer,p.NodeTransformer.ParentificationTransformer,p.NodeTransformer.TemplateLiteralTransformer,p.NodeTransformer.VariableDeclarationTransformer],v=s=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.ITransformersRunner)),c.__param(1,d.inject(u.ServiceIdentifiers.ISourceMapCorrector)),c.__param(2,d.inject(u.ServiceIdentifiers.IRandomGenerator)),c.__param(3,d.inject(u.ServiceIdentifiers.ILogger)),c.__param(4,d.inject(u.ServiceIdentifiers.IOptions)),c.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],v),t.JavaScriptObfuscator=v},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(1),d=function(){function e(){(0,a.default)(this,e),this.stringsCache=new o.default}return(0,i.default)(e,[{key:"encode",value:function(e,t){var r="".concat(e,"-").concat(String(t));if(this.stringsCache.has(r))return this.stringsCache.get(r);var n,o,a=new RegExp("[\\s\\S]","g"),i=new RegExp("['\"\\\\\\s]"),s=new RegExp("[\\x00-\\x7F]"),c=e.replace(a,function(e){return t||i.exec(e)?(s.exec(e)?(n="\\x",o="00"):(n="\\u",o="0000"),"".concat(n).concat((o+e.charCodeAt(0).toString(16)).slice(-o.length))):e});return this.stringsCache.set(r,c),c}}]),e}();d=s.__decorate([c.injectable()],d),t.EscapeSequenceEncoder=d},function(e,t){e.exports=require("chance")},function(e,t){e.exports=require("md5")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=r(50),u=r(28),l=function(){function e(t){(0,o.default)(this,e),this.randomGenerator=t}return(0,a.default)(e,[{key:"btoa",value:function(e){var t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt("".concat(u.Utils.hexadecimalPrefix).concat(t)))});for(var r,n,o=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|o)||(a="=",o%1);t+=a.charAt(63&r>>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(85),g=u=function(e){function t(e,r,n,a){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,c.default)(t).call(this,n,a))).identifierNamesGenerator=e(a),i.arrayUtils=r,i}return(0,i.default)(t,[{key:"initialize",value:function(){(0,d.default)((0,c.default)(t.prototype),"initialize",this).call(this);var e=this.identifierNamesGenerator.generate().slice(0,u.stringArrayNameLength),r=this.identifierNamesGenerator.generate().slice(0,u.stringArrayNameLength),n="".concat(this.options.identifiersPrefix).concat(e),o="".concat(this.options.identifiersPrefix).concat(r);this.storageId="".concat(n,"|").concat(o)}},{key:"rotateArray",value:function(e){this.storage=this.arrayUtils.arrayRotate(this.storage,e)}},{key:"toString",value:function(){return this.storage.map(function(e){return"'".concat(e,"'")}).toString()}}]),(0,a.default)(t,e),t}(m.ArrayStorage);g.stringArrayNameLength=7,l.__decorate([f.postConstruct(),l.__metadata("design:type",Function),l.__metadata("design:paramtypes",[]),l.__metadata("design:returntype",void 0)],g.prototype,"initialize",null),g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IArrayUtils)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object,Object])],g),t.StringArrayStorage=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(57),g=r(51),N=u=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).customNodeGroupFactory=e,a}return(0,i.default)(t,[{key:"initialize",value:function(){var e=this;(0,d.default)((0,c.default)(t.prototype),"initialize",this).call(this),u.customNodeGroupsList.forEach(function(t){var r=e.customNodeGroupFactory(t);r&&e.storage.set(t,r)})}}]),(0,a.default)(t,e),t}(g.MapStorage);N.customNodeGroupsList=[m.CustomNodeGroup.ConsoleOutputCustomNodeGroup,m.CustomNodeGroup.DebugProtectionCustomNodeGroup,m.CustomNodeGroup.DomainLockCustomNodeGroup,m.CustomNodeGroup.SelfDefendingCustomNodeGroup,m.CustomNodeGroup.StringArrayCustomNodeGroup],l.__decorate([f.postConstruct(),l.__metadata("design:type",Function),l.__metadata("design:paramtypes",[]),l.__metadata("design:returntype",void 0)],N.prototype,"initialize",null),N=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__ICustomNodeGroup)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CustomNodeGroupStorage=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(7)),s=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(1),u=r(5),l=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,a.default)(t,e),t}(r(51).MapStorage);l=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.IRandomGenerator)),c.__param(1,d.inject(u.ServiceIdentifiers.IOptions)),c.__metadata("design:paramtypes",[Object,Object])],l),t.ControlFlowStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),a=r(88),i=r(87),s=r(86);t.storagesModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.TCustomNodeGroupStorage).to(i.CustomNodeGroupStorage).inSingletonScope(),e(o.ServiceIdentifiers.TStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(o.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(a.ControlFlowStorage),e(o.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(function(e){return function(){var t=new(e.container.get(o.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(o.ServiceIdentifiers.IRandomGenerator),e.container.get(o.ServiceIdentifiers.IOptions));return t.initialize(),t}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(10),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return m.NodeUtils.parentizeNode(e,t)}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.ParentificationTransformer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(52),m=r(13),g=r(14),N=r(19),v=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).obfuscatingGuards=d.obfuscatingGuardsList.map(e),a}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.obfuscatingGuards.every(function(t){return t.check(e)});return N.NodeMetadata.set(e,{ignoredNode:!r}),e}}]),(0,a.default)(t,e),t}(g.AbstractNodeTransformer);v.obfuscatingGuardsList=[p.ObfuscatingGuard.BlackListNodeGuard,p.ObfuscatingGuard.ConditionalCommentNodeGuard],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__INodeGuard)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.ObfuscatingGuardsTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(9),g=r(19),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return g.NodeMetadata.set(e,{ignoredNode:!1}),m.NodeGuards.isIdentifierNode(e)&&g.NodeMetadata.set(e,{renamedIdentifier:!1}),m.NodeGuards.isLiteralNode(e)&&g.NodeMetadata.set(e,{replacedLiteral:!1}),e}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MetadataTransformer=N},function(e,t){e.exports=require("js-string-escape")},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importDefault(r(93)),g=r(13),N=r(14),v=r(15),y=r(9),_=r(10),h=u=function(e){function t(e,r){var n;return(0,a.default)(this,t),(n=(0,c.default)(this,(0,d.default)(t).call(this,e,r))).evalRootAstHostNodeSet=new o.default,n}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Preparing:return{enter:function(e,r){if(r&&y.NodeGuards.isCallExpressionNode(e)&&y.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return t.transformNode(e,r)}};case g.TransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:function(e,r){if(r&&t.isEvalRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"transformNode",value:function(e,t){var r=e.arguments[0];if(!r)return e;var n,o=u.extractEvalStringFromCallExpressionArgument(r);if(!o)return e;try{n=_.NodeUtils.convertCodeToStructure(o)}catch(t){return e}var a=v.NodeFactory.functionExpressionNode([],v.NodeFactory.blockStatementNode(n));return this.evalRootAstHostNodeSet.add(a),a}},{key:"restoreNode",value:function(e,t){var r=e.body.body,n=_.NodeUtils.convertStructureToCode(r);return v.NodeFactory.callExpressionNode(v.NodeFactory.identifierNode("eval"),[v.NodeFactory.literalNode(m.default(n))])}},{key:"isEvalRootAstHostNode",value:function(e){return y.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}}],[{key:"extractEvalStringFromCallExpressionArgument",value:function(e){return y.NodeGuards.isLiteralNode(e)?u.extractEvalStringFromLiteralNode(e):y.NodeGuards.isTemplateLiteralNode(e)?u.extractEvalStringFromTemplateLiteralNode(e):null}},{key:"extractEvalStringFromLiteralNode",value:function(e){return"string"==typeof e.value?e.value:null}},{key:"extractEvalStringFromTemplateLiteralNode",value:function(e){var t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}}]),(0,i.default)(t,e),t}(N.AbstractNodeTransformer);h=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],h),t.EvalCallExpressionTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(24),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n,a,i){var d;return(0,o.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,a,i))).stackTraceData=[],d.stackTraceAnalyzer=e,d.obfuscationEventEmitter=r,d.customNodeGroupStorage=n,d}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Preparing:return{leave:function(e,r){if(g.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),t.appendCustomNodesBeforeObfuscation(e,r),t.transformNode(e,r)}};case p.TransformationStage.Finalizing:return{leave:function(e,r){g.NodeGuards.isProgramNode(e)&&t.appendCustomNodesAfterObfuscation(e,r)}};default:return null}}},{key:"analyzeNode",value:function(e,t){this.stackTraceData=this.stackTraceAnalyzer.analyze(e)}},{key:"transformNode",value:function(e,t){return e}},{key:"appendCustomNodesBeforeObfuscation",value:function(e,t){var r=this;this.customNodeGroupStorage.getStorage().forEach(function(e){e.initialize(),r.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendCustomNodes.bind(e))}),this.obfuscationEventEmitter.emit(f.ObfuscationEvent.BeforeObfuscation,e,this.stackTraceData)}},{key:"appendCustomNodesAfterObfuscation",value:function(e,t){this.obfuscationEventEmitter.emit(f.ObfuscationEvent.AfterObfuscation,e,this.stackTraceData)}}]),(0,a.default)(t,e),t}(m.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IStackTraceAnalyzer)),d.__param(1,u.inject(l.ServiceIdentifiers.IObfuscationEventEmitter)),d.__param(2,u.inject(l.ServiceIdentifiers.TCustomNodeGroupStorage)),d.__param(3,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(4,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],N),t.CustomNodesTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.obfuscationAllowedForCurrentNode=!0,this.obfuscationAllowedForNextNode=null}return(0,a.default)(e,[{key:"check",value:function(e){if(this.obfuscationAllowedForNextNode&&(this.obfuscationAllowedForCurrentNode=this.obfuscationAllowedForNextNode,this.obfuscationAllowedForNextNode=null),!d.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowedForCurrentNode;var t=e.leadingComments,r=e.trailingComments;return t&&(this.obfuscationAllowedForCurrentNode=this.checkComments(t)),r&&(this.obfuscationAllowedForNextNode=this.checkComments(r)),this.obfuscationAllowedForCurrentNode}},{key:"checkComments",value:function(e){for(var t=e.length,r=this.obfuscationAllowedForCurrentNode,n=0;n=u.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 r=y.Utils.decToHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case m.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return v.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,d=s.index;c||this.stringArrayStorage.set(a,o);var l=[u.getHexadecimalLiteralNode(d)];n&&l.push(u.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=v.NodeFactory.identifierNode(i);return N.NodeMetadata.set(f,{renamedIdentifier:!0}),v.NodeFactory.callExpressionNode(f,l)}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return N.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return N.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),(0,i.default)(t,e),t}(g.AbstractObfuscatingReplacer);_.minimumLengthForStringArray=3,_.rc4KeyLength=4,_.rc4KeysCount=50,_=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.TStringArrayStorage)),l.__param(1,f.inject(p.ServiceIdentifiers.IEscapeSequenceEncoder)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.ICryptUtils)),l.__param(4,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],_),t.StringLiteralObfuscatingReplacer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(41),m=r(15),g=r(28),N=function(e){function t(e){var r;return(0,a.default)(this,t),(r=(0,c.default)(this,(0,d.default)(t).call(this,e))).numberLiteralCache=new o.default,r}return(0,s.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=g.Utils.isCeilNumber(e)?"".concat(g.Utils.hexadecimalPrefix).concat(g.Utils.decToHex(e)):String(e),this.numberLiteralCache.set(e,t)),m.NodeFactory.literalNode(e,t)}}]),(0,i.default)(t,e),t}(p.AbstractObfuscatingReplacer);N=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(62)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(53),m=r(13),g=r(14),N=r(9),v=r(19),y=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;switch((0,o.default)(e.value)){case"boolean":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);case"number":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);case"string":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);default:return e}}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),(0,i.default)(t,e),t}(g.AbstractNodeTransformer);y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importStar(r(18)),p=r(21),m=r(13),g=r(14),N=r(9),v=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++;return this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),(0,a.default)(t,e),t}(g.AbstractNodeTransformer);v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LabeledStatementTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importStar(r(18)),g=r(21),N=r(13),v=r(14),y=r(9),_=r(19),h=r(10),b=u=function(e){function t(e,r,n){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).replaceableIdentifiers=new o.default,i.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&y.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++,n=h.NodeUtils.getBlockScopesOfNode(e)[0];return this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(n,r):this.replaceScopeIdentifiers(n,r),e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){u.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this;this.replaceableIdentifiers.get(e).forEach(function(e){var n=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=n.name,_.NodeMetadata.set(e,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e,t){var r=this,n=[];m.replace(e,{enter:function(e,o){if(o&&y.NodeGuards.isReplaceableIdentifierNode(e,o)&&!_.NodeMetadata.isRenamedIdentifier(e)){var a=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a?(e.name=a,_.NodeMetadata.set(e,{renamedIdentifier:!0})):n.push(e)}}}),this.replaceableIdentifiers.set(e,n)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return y.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),(0,i.default)(t,e),t}(v.AbstractNodeTransformer);b=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],b),t.ImportDeclarationTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(21),g=r(13),N=r(14),v=r(9),y=r(19),_=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&(v.NodeGuards.isFunctionDeclarationNode(e)||v.NodeGuards.isFunctionExpressionNode(e)||v.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++;return this.storeFunctionParams(e,r),this.replaceFunctionParams(e,r),e}},{key:"storeFunctionParams",value:function(e,t){var r=this;e.params.forEach(function(e){p.traverse(e,{enter:function(n){return v.NodeGuards.isPropertyNode(e)?p.VisitorOption.Skip:v.NodeGuards.isAssignmentPatternNode(n)&&v.NodeGuards.isIdentifierNode(n.left)?(r.identifierObfuscatingReplacer.storeLocalName(n.left.name,t),p.VisitorOption.Skip):void(v.NodeGuards.isIdentifierNode(n)&&r.identifierObfuscatingReplacer.storeLocalName(n.name,t))}})})}},{key:"addIdentifiersToIgnoredIdentifierNamesSet",value:function(e,t){e.forEach(function(e){e.key&&v.NodeGuards.isIdentifierNode(e.key)&&t.add(e.key.name)})}},{key:"replaceFunctionParams",value:function(e,t){var r=this,n=new o.default,a={enter:function(e,o){if(v.NodeGuards.isObjectPatternNode(e)&&r.addIdentifiersToIgnoredIdentifierNamesSet(e.properties,n),o&&v.NodeGuards.isReplaceableIdentifierNode(e,o)&&!n.has(e.name)){var a=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a&&(e.name=a,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}};e.params.forEach(function(e){return p.replace(e,a)}),p.replace(e.body,a)}}]),(0,i.default)(t,e),t}(N.AbstractNodeTransformer);_=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.FunctionTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(21),g=r(26),N=r(13),v=r(14),y=r(9),_=r(19),h=r(10),b=function(e){function t(e,r,n){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).replaceableIdentifiers=new o.default,i.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&y.NodeGuards.isFunctionDeclarationNode(e)&&!y.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++,n=h.NodeUtils.getBlockScopesOfNode(e)[0],o=n.type===g.NodeType.Program;return!this.options.renameGlobals&&o?e:(this.storeFunctionName(e,o,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n,r):this.replaceScopeIdentifiers(n,r),e)}},{key:"storeFunctionName",value:function(e,t,r){t?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,r):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,r)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this.replaceableIdentifiers.get(t);if(n){var o=n.get(e.id.name);if(o)for(var a=o.length,i=0;i=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),(0,a.default)(t,e),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(54),g=r(28),N=u=function(e){function t(e,r){var n;return(0,a.default)(this,t),(n=(0,c.default)(this,(0,d.default)(t).call(this,e,r))).randomVariableNameSet=new o.default,n}return(0,s.default)(t,[{key:"generate",value:function(){var e=this.randomGenerator.getRandomInteger(1e4,99999999),t=g.Utils.decToHex(e).substr(0,u.baseIdentifierNameLength),r="_".concat(g.Utils.hexadecimalPrefix).concat(t);return this.randomVariableNameSet.has(r)?this.generate():(this.randomVariableNameSet.add(r),r)}},{key:"generateWithPrefix",value:function(){var e=this.generate();return"".concat(this.options.identifiersPrefix).concat(e).replace("__","_")}}]),(0,i.default)(t,e),t}(m.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),a=r(40),i=r(130),s=r(129);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.StringLiteralNode=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.False="![]",e.True="!![]",e.a='(false+"")[1]',e.b='([]["entries"]()+"")[2]',e.c='([]["fill"]+"")[3]',e.d='(undefined+"")[2]',e.e='(true+"")[3]',e.f='(false+"")[0]',e.g="(false+[0]+String)[20]",e.h='(+(101))["toString"](21)[1]',e.i="([false]+undefined)[10]",e.j='([]["entries"]()+"")[3]',e.k='(+(20))["toString"](21)',e.l='(false+"")[2]',e.m='(Number+"")[11]',e.n='(undefined+"")[1]',e.o='(true+[]["fill"])[10]',e.p='(+(211))["toString"](31)[1]',e.q='(+(212))["toString"](31)[1]',e.r='(true+"")[1]',e.s='(false+"")[3]',e.t='(true+"")[0]',e.u='(undefined+"")[0]',e.v='(+(31))["toString"](32)',e.w='(+(32))["toString"](33)',e.x='(+(101))["toString"](34)[1]',e.y="(NaN+[Infinity])[10]",e.z='(+(35))["toString"](36)',e.A="(+[]+Array)[10]",e.B="(+[]+Boolean)[10]",e.C='Function("return escape")()(("")["italics"]())[2]',e.D='Function("return escape")()([]["fill"])["slice"]("-1")',e.E='(RegExp+"")[12]',e.F="(+[]+Function)[10]",e.G='(false+Function("return Date")()())[30]',e.H="'H'",e.I='(Infinity+"")[0]',e.J="'J'",e.K="'K'",e.L="'L'",e.M='(true+Function("return Date")()())[30]',e.N='(NaN+"")[0]',e.O='(NaN+Function("return{}")())[11]',e.P="'P'",e.Q="'Q'",e.R="(+[]+RegExp)[10]",e.S="(+[]+String)[10]",e.T='(NaN+Function("return Date")()())[30]',e.U='(NaN+Function("return{}")()["toString"]["call"]())[11]',e.V="'V'",e.W="'W'",e.X="'X'",e.Y="'Y'",e.Z="'Z'"}(t.JSFuck||(t.JSFuck={}))},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),g=r(43),N=r(137),v=r(136),y=r(16),_=r(37),h=r(10),b=r(28),S=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?p.default(N.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),_.JavaScriptObfuscator.obfuscate(p.default(v.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:b.Utils.decToHex(this.stringArrayRotateValue),whileFunctionName:t}),(0,o.default)({},g.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",String)],S.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],S.prototype,"stringArrayRotateValue",void 0),S=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],S),t.StringArrayRotateFunctionNode=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),g=r(139),N=r(16),v=r(10),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,d.default)((0,c.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),(0,a.default)(t,e),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = 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(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(23),g=r(38),N=r(11),v=r(43),y=r(146),_=r(44),h=r(145),b=r(144),S=r(143),I=r(142),C=r(141),F=r(16),O=r(37),j=r(10),T=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return j.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return O.JavaScriptObfuscator.obfuscate(p.default(I.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),(0,o.default)({},v.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():_.GlobalVariableNoEvalTemplate(),t=p.default(y.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=p.default(b.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case g.StringArrayEncoding.Rc4:r=p.default(C.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:h.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case g.StringArrayEncoding.Base64:r=p.default(S.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),(0,i.default)(t,e),t}(F.AbstractCustomNode);u.__decorate([N.initializable(),u.__metadata("design:type",String)],T.prototype,"stringArrayName",void 0),u.__decorate([N.initializable(),u.__metadata("design:type",String)],T.prototype,"stringArrayCallsWrapperName",void 0),T=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],T),t.StringArrayCallsWrapper=T},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),g=r(43),N=r(148),v=r(16),y=r(37),_=r(10),h=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return y.JavaScriptObfuscator.obfuscate(p.default(N.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,o.default)({},g.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),(0,i.default)(t,e),t}(v.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.SelfDefendingUnicodeNode=h},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(24),g=r(11),N=r(150),v=r(43),y=r(16),_=r(37),h=r(10),b=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,c.default)(this,(0,d.default)(t).call(this,e,r,n))}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===m.ObfuscationEvent.AfterObfuscation?_.JavaScriptObfuscator.obfuscate(p.default(N.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,o.default)({},v.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():p.default(N.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([g.initializable(),u.__metadata("design:type",String)],b.prototype,"callsControllerFunctionName",void 0),u.__decorate([g.initializable(),u.__metadata("design:type",String)],b.prototype,"appendEvent",void 0),b=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.NodeCallsControllerFunctionNode=b},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"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 \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 ((!document && !domain) || (!that[document] && !that[document][domain])) {\n return;\n }\n \n var currentDomain = that[document][domain];\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,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(23),g=r(11),N=r(154),v=r(44),y=r(16),_=r(10),h=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).cryptUtils=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.domainLock.join(";"),t=this.cryptUtils.hideString(e,3*e.length),r=(0,o.default)(t,2),n=r[0],a=r[1],i=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():v.GlobalVariableNoEvalTemplate();return p.default(N.DomainLockNodeTemplate(),{domainLockFunctionName:this.identifierNamesGenerator.generate(),diff:a,domains:n,globalVariableTemplate:i,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([g.initializable(),u.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.DomainLockNode=h},function(e,t,r){"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,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(23),m=r(11),g=r(158),N=r(157),v=r(156),y=r(16),_=r(10),h=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?g.DebuggerTemplate():N.DebuggerTemplateNoEval();return f.default(v.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(y.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"debugProtectionFunctionName",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.DebugProtectionFunctionNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(11),m=r(160),g=r(16),N=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return f.default(m.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(g.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.DebugProtectionFunctionIntervalNode=v},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(11),m=r(162),g=r(16),N=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return f.default(m.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(g.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"callsControllerFunctionName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.DebugProtectionFunctionCallNode=v},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(23),m=r(164),g=r(44),N=r(11),v=r(16),y=r(10),_=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():g.GlobalVariableNoEvalTemplate();return f.default(m.ConsoleOutputDisableExpressionTemplate(),{consoleLogDisableFunctionName:this.identifierNamesGenerator.generate(),globalVariableTemplate:e,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(v.AbstractCustomNode);d.__decorate([N.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ConsoleOutputDisableExpressionNode=_},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(56)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l=r(4),f=r(1),p=r(5),m=r(11),g=r(16),N=r(15),v=r(9),y=r(10),_=function(e){function t(e,r,n){return(0,i.default)(this,t),(0,d.default)(this,(0,u.default)(t).call(this,e,r,n))}return(0,c.default)(t,[{key:"initialize",value:function(e){this.controlFlowStorage=e}},{key:"getNodeStructure",value:function(){var e=(0,a.default)(this.controlFlowStorage.getStorage()).map(function(e){var t=(0,o.default)(e,2),r=t[0],n=t[1].getNode()[0];if(!v.NodeGuards.isExpressionStatementNode(n))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return N.NodeFactory.propertyNode(N.NodeFactory.identifierNode(r),n.expression)}),t=N.NodeFactory.variableDeclarationNode([N.NodeFactory.variableDeclaratorNode(N.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),N.NodeFactory.objectExpressionNode(e))]);return[t=y.NodeUtils.parentize(t)]}}]),(0,s.default)(t,e),t}(g.AbstractCustomNode);l.__decorate([m.initializable(),l.__metadata("design:type",Object)],_.prototype,"controlFlowStorage",void 0),_=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ControlFlowStorageNode=_},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentize(u),[u]}}]),(0,i.default)(t,e),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(9),N=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentize(n),[n]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),g=r(10),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(17)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l=r(4),f=r(1),p=r(5),m=r(11),g=r(29),N=r(24),v=r(34),y=r(25),_=function(e){function t(e,r,n,o,a){var s;return(0,i.default)(this,t),(s=(0,d.default)(this,(0,u.default)(t).call(this,n,o,a))).appendEvent=N.ObfuscationEvent.AfterObfuscation,s.customNodeFactory=e,s.stringArrayStorage=r,s}return(0,c.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(g.CustomNode.StringArrayNode,function(t){y.NodeAppender.prependNode(e,t.getNode())}),this.appendCustomNodeIfExist(g.CustomNode.StringArrayCallsWrapper,function(t){y.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(g.CustomNode.StringArrayRotateFunctionNode,function(t){y.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new a.default,this.options.stringArray){var e,t=this.customNodeFactory(g.CustomNode.StringArrayNode),r=this.customNodeFactory(g.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(g.CustomNode.StringArrayRotateFunctionNode),i=this.stringArrayStorage.getStorageId().split("|"),s=(0,o.default)(i,2),c=s[0],d=s[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,c,e),r.initialize(c,d),n.initialize(c,e),this.customNodes.set(g.CustomNode.StringArrayNode,t),this.customNodes.set(g.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(g.CustomNode.StringArrayRotateFunctionNode,n)}}}]),(0,s.default)(t,e),t}(v.AbstractCustomNodeGroup);l.__decorate([m.initializable(),l.__metadata("design:type",a.default)],_.prototype,"customNodes",void 0),_=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__ICustomNode)),l.__param(1,f.inject(p.ServiceIdentifiers.TStringArrayStorage)),l.__param(2,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(4,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],_),t.StringArrayCustomNodeGroup=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),g=r(24),N=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=g.ObfuscationEvent.AfterObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.SelfDefendingUnicodeNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.SelfDefendingCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),g=r(24),N=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=g.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DomainLockNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.DomainLockNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.DomainLockNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DomainLockCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),g=r(24),N=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=g.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionCallNode,function(r){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionNode,function(t){v.NodeAppender.appendNode(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=e.body.length,o=r.randomGenerator.getRandomInteger(0,n);v.NodeAppender.insertNodeAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(r){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e,v.NodeAppender.prependNode(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionCallNode),a=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionIntervalNode),i=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),a.initialize(e),i.initialize(this.appendEvent,t),this.customNodes.set(m.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(m.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(m.CustomNode.DebugProtectionFunctionIntervalNode,a),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,i)}}}]),(0,i.default)(t,e),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),g=r(24),N=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=g.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.ConsoleOutputDisableExpressionNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.ConsoleOutputCustomNodeGroup=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(22),s=r(29),c=r(57),d=r(58),u=r(178),l=r(177),f=r(176),p=r(175),m=r(174),g=r(173),N=r(170),v=r(169),y=r(168),_=r(167),h=r(166),b=r(165),S=r(163),I=r(161),C=r(159),F=r(155),O=r(153),j=r(152),T=r(151),k=r(149),x=r(147),E=r(140),w=r(138),G=r(134),R=r(133);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(T.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(k.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(13),m=r(14),g=r(15),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=e.expressions,n=[];if(e.quasis.forEach(function(e){n.push(g.NodeFactory.literalNode(e.value.cooked));var t=r.shift();t&&n.push(t)}),n=n.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(n[0])||d.isLiteralNodeWithStringValue(n[1])||n.unshift(g.NodeFactory.literalNode("")),n.length>1){var o=g.NodeFactory.binaryExpressionNode("+",n.shift(),n.shift());return n.forEach(function(e){o=g.NodeFactory.binaryExpressionNode("+",o,e)}),o}return n[0]}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),(0,a.default)(t,e),t}(m.AbstractNodeTransformer);v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.TemplateLiteralTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(15),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return e.properties.forEach(function(e){!e.computed&&e.key&&(e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(e.key.name)))}),e}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(17)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l,f=r(4),p=r(1),m=r(5),g=r(13),N=r(14),v=r(25),y=r(15),_=r(9),h=r(10),b=l=function(e){function t(e,r){var n;return(0,i.default)(this,t),(n=(0,d.default)(this,(0,u.default)(t).call(this,e,r))).cachedScopeNodesMap=new a.default,n}return(0,c.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Converting:return{enter:function(e,r){if(t.options.transformObjectKeys&&r&&_.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return _.NodeGuards.isVariableDeclaratorNode(t)?this.transformVariableDeclaratorHostObjectExpression(e,t):_.NodeGuards.isAssignmentExpressionNode(t)?this.transformAssignmentExpressionHostObjectExpression(e,t):e}},{key:"transformVariableDeclaratorHostObjectExpression",value:function(e,t){if(!_.NodeGuards.isIdentifierNode(t.id))return e;var r=h.NodeUtils.getScopeOfNode(t);return r&&_.NodeGuards.isNodeHasScope(r)?(this.cachedScopeNodesMap.set(t,r),this.transformObjectExpressionNode(e,t.id,t)):e}},{key:"transformAssignmentExpressionHostObjectExpression",value:function(e,t){var r=t.left;if(!l.isValidExpressionNode(r))return e;var n=h.NodeUtils.getScopeOfNode(t);return n&&_.NodeGuards.isNodeHasScope(n)?(this.cachedScopeNodesMap.set(t,n),this.transformObjectExpressionNode(e,r,t)):e}},{key:"extractPropertiesToExpressionStatements",value:function(e,t,r){for(var n=e.length,o=[],a=[],i=0;if.hostNodeSearchMinDepth&&t.splice(0,f.hostNodeSearchMinDepth),t.length>f.hostNodeSearchMaxDepth&&(t.length=f.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(I.NodeGuards.isFunctionDeclarationNode(e)||I.NodeGuards.isFunctionExpressionNode(e)||I.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;N.replace(e,{enter:function(e,n){if(C.NodeMetadata.isIgnoredNode(e))return N.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return N.VisitorOption.Skip;if(!f.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var a=f.controlFlowReplacersMap.get(e.type);return void 0===a?e:(0,o.default)({},r.controlFlowReplacerFactory(a).replace(e,n,t),{parentNode:n})}})}}]),(0,c.default)(t,e),t}(b.AbstractNodeTransformer);O.controlFlowReplacersMap=new i.default([[_.NodeType.BinaryExpression,y.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[_.NodeType.CallExpression,y.ControlFlowReplacer.CallExpressionControlFlowReplacer],[_.NodeType.LogicalExpression,y.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[_.NodeType.Literal,y.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),O.hostNodeSearchMinDepth=0,O.hostNodeSearchMaxDepth=2,O=f=p.__decorate([m.injectable(),p.__param(0,m.inject(g.ServiceIdentifiers.Factory__TControlFlowStorage)),p.__param(1,m.inject(g.ServiceIdentifiers.Factory__IControlFlowReplacer)),p.__param(2,m.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),p.__param(3,m.inject(g.ServiceIdentifiers.IRandomGenerator)),p.__param(4,m.inject(g.ServiceIdentifiers.IOptions)),p.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],O),t.FunctionControlFlowTransformer=O},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importStar(r(18)),g=r(58),N=r(32),v=r(26),y=r(13),_=r(14),h=r(15),b=r(9),S=r(10),I=u=function(e){function t(e,r,n,i){var s;return(0,a.default)(this,t),(s=(0,c.default)(this,(0,d.default)(t).call(this,n,i))).deadCodeInjectionRootAstHostNodeSet=new o.default,s.collectedBlockStatements=[],s.collectedBlockStatementsTotalLength=0,s.deadCodeInjectionCustomNodeFactory=e,s.transformersRunner=r,s}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case y.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&b.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&b.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case y.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;m.traverse(e,{enter:function(e){if(b.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);u.isValidCollectedBlockStatementNode(t)&&(S.NodeUtils.parentizeNode(t,t),t=r.transformersRunner.transform(t,u.transformersToRenameBlockScopeIdentifiers,y.TransformationStage.Obfuscating),r.collectedBlockStatements.push(t))}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!u.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!b.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return b.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=h.NodeFactory.blockStatementNode([h.NodeFactory.functionDeclarationNode(u.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(g.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return b.NodeGuards.isBreakStatementNode(e)||b.NodeGuards.isContinueStatementNode(e)||b.NodeGuards.isAwaitExpressionNode(e)||b.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!b.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=S.NodeUtils.getScopeOfNode(e),r=b.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=h.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return m.traverse(a,{enter:function(e){if(b.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,m.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return m.traverse(e,{enter:function(e){if(b.NodeGuards.isBlockStatementNode(e)&&t++,t>u.maxNestedBlockStatementsCount||u.isProhibitedNodeInsideCollectedBlockStatement(e)||u.isScopeHoistingFunctionDeclaration(e))return r=!1,m.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return m.traverse(e,{enter:function(e){if(u.isScopeHoistingFunctionDeclaration(e))return t=!1,m.VisitorOption.Break}}),!!t&&S.NodeUtils.getBlockScopesOfNode(e)[0].type!==v.NodeType.Program}}]),(0,i.default)(t,e),t}(_.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[N.NodeTransformer.CatchClauseTransformer,N.NodeTransformer.ClassDeclarationTransformer,N.NodeTransformer.FunctionDeclarationTransformer,N.NodeTransformer.FunctionTransformer,N.NodeTransformer.LabeledStatementTransformer,N.NodeTransformer.VariableDeclarationTransformer],I=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),l.__param(1,f.inject(p.ServiceIdentifiers.ITransformersRunner)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(22),m=r(45),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/has-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/define-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/object/get-own-property-names")},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/get-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/object/get-own-property-descriptor")},function(e,t){e.exports=require("@babel/runtime/core-js/object/define-property")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(22),g=r(13),N=r(14),v=r(9),y=r(10),_=d=function(e){function t(e,r,n,a){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,c.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,i.arrayUtils=r,i}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.arrayRange(r.length),o=this.arrayUtils.arrayShuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"blockStatementHasProhibitedStatements",value:function(e){return e.body.some(function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n})}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;v.NodeGuards.isBlockStatementNode(e)&&d.blockStatementHasProhibitedStatements(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),(0,a.default)(t,e),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(22),m=r(59),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),(0,a.default)(t,e),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(60),s=r(32),c=r(198),d=r(197),u=r(190),l=r(189),f=r(188),p=r(187),m=r(186);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=c.__importStar(r(18)),f=r(63),p=r(9),m=r(10),g=s=function(){function e(t){(0,a.default)(this,e),this.calleeDataExtractorFactory=t}return(0,i.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=s.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];l.traverse(a,{enter:function(r){if(p.NodeGuards.isCallExpressionNode(r))return a.parentNode!==m.NodeUtils.getBlockScopesOfNode(r)[0]?l.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},i=0;ir&&(n=Math.round(r+t*s.limitThreshold))>t&&(n=t),n}}]),e}();g.calleeDataExtractorsList=[f.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,f.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,f.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],g.limitThresholdActivationLength=25,g.limitThreshold=.002,g=s=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.Factory__ICalleeDataExtractor)),c.__metadata("design:paramtypes",[Function])],g),t.StackTraceAnalyzer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(35)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=l.__importStar(r(18)),m=r(47),g=r(9),N=r(10),v=u=function(e){function t(){return(0,a.default)(this,t),(0,c.default)(this,(0,d.default)(t).apply(this,arguments))}return(0,s.default)(t,[{key:"extract",value:function(e,t){if(!g.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(N.NodeUtils.getBlockScopesOfNode(e[0])[0],r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(g.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!g.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return g.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(g.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return p.traverse(e,{enter:function(e){if(g.NodeGuards.isVariableDeclaratorNode(e)&&g.NodeGuards.isIdentifierNode(e.id)&&e.init&&g.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),p.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,a=!1,i=void 0;try{for(var s,c=(0,o.default)(e);!(n=(s=c.next()).done);n=!0){var d=s.value;if(u.isValidTargetPropertyNode(d,r)){if(g.NodeGuards.isObjectExpressionNode(d.value))return this.findCalleeBlockStatement(d.value.properties,t);if(g.NodeGuards.isFunctionExpressionNode(d.value))return d.value.body}}}catch(e){a=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw i}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=g.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=g.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),(0,i.default)(t,e),t}(m.AbstractCalleeDataExtractor);v=u=l.__decorate([f.injectable()],v),t.ObjectExpressionCalleeDataExtractor=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=d.__importStar(r(18)),f=r(47),p=r(9),m=r(10),g=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,i.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),(0,a.default)(t,e),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=d.__importStar(r(18)),f=r(47),p=r(9),m=r(10),g=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,i.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),(0,a.default)(t,e),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(63),s=r(203),c=r(202),d=r(201),u=r(200);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("multimatch")},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=s.__importStar(r(206)),d=s.__importStar(r(67)),u=s.__importDefault(r(207)),l=r(64),f=r(68),p=r(65),m=function(){function e(t){(0,a.default)(this,e),this.options=t}return(0,i.default)(e,[{key:"readSourceCode",value:function(t){if(e.isFilePath(t)&&this.isValidFile(t))return this.readFile(t);if(e.isDirectoryPath(t)&&this.isValidDirectory(t))return this.readDirectoryRecursive(t);var r=e.availableInputExtensions.map(function(e){return"`".concat(e,"`")}).join(", ");throw new ReferenceError("Given input path must be a valid ".concat(r," file or directory path"))}},{key:"readDirectoryRecursive",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return c.readdirSync(t,f.JavaScriptObfuscatorCLI.encoding).forEach(function(a){var i="".concat(t,"/").concat(a);if(e.isDirectoryPath(i)&&r.isValidDirectory(i))n.push.apply(n,(0,o.default)(r.readDirectoryRecursive(i)));else if(e.isFilePath(i)&&r.isValidFile(i)){var s=r.readFile(i);n.push({filePath:i,content:s})}}),n}},{key:"readFile",value:function(t){return e.logFilePath(t),c.readFileSync(t,f.JavaScriptObfuscatorCLI.encoding)}},{key:"isValidDirectory",value:function(t){return!e.isExcludedPath(t,this.options.exclude)}},{key:"isValidFile",value:function(t){return e.availableInputExtensions.includes(d.extname(t))&&!t.includes(f.JavaScriptObfuscatorCLI.obfuscatedFilePrefix)&&!e.isExcludedPath(t,this.options.exclude)}}],[{key:"isExcludedPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;var r=d.basename(e),n=!!u.default([e],t).length;return t.some(function(t){return e.includes(t)||r.includes(t)})||n}},{key:"isDirectoryPath",value:function(e){try{return c.statSync(e).isDirectory()}catch(e){return!1}}},{key:"isFilePath",value:function(e){try{return c.statSync(e).isFile()}catch(e){return!1}}},{key:"logFilePath",value:function(e){var t=d.normalize(e);p.Logger.log(p.Logger.colorInfo,l.LoggingPrefix.CLI,"Obfuscating file: ".concat(t,"..."))}}]),e}();m.availableInputExtensions=[".js"],t.SourceCodeReader=m},function(e,t){function r(e){var t=new Error('Cannot find module "'+e+'".');throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=209},function(e,t){e.exports=require("mkdirp")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=i.__importStar(r(206)),c=i.__importStar(r(210)),d=i.__importStar(r(67)),u=r(68),l=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"getOutputCodePath",value:function(e){return d.normalize(e).split(".").map(function(e,t){return 0===t?"".concat(e).concat(u.JavaScriptObfuscatorCLI.obfuscatedFilePrefix):e}).join(".")}},{key:"getOutputSourceMapPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t&&(e="".concat(e.substring(0,e.lastIndexOf("/")),"/").concat(t)),/\.js\.map$/.test(e)?/\.js$/.test(e)&&(e+=".map"):e="".concat(e.split(".")[0],".js.map"),e}},{key:"getUserConfig",value:function(e){var t;try{t=r(209)(e)}catch(r){try{t=require(e)}catch(e){throw new ReferenceError("Given config path must be a valid `.js` or `.json` file path")}}return t}},{key:"writeFile",value:function(e,t){c.sync(d.dirname(e)),s.writeFileSync(e,t,{encoding:u.JavaScriptObfuscatorCLI.encoding})}}]),e}();t.CLIUtils=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(38);t.StringArrayEncodingSanitizer=function(e){switch(e){case"true":case"1":case n.StringArrayEncoding.Base64:return!0;case n.StringArrayEncoding.Rc4:return n.StringArrayEncoding.Rc4;default:return!1}}},function(e,t,r){"use strict";var n=r(0)(r(36));Object.defineProperty(t,"__esModule",{value:!0});var o=r(39);t.SourceMapModeSanitizer=function(e){if(!(0,n.default)(o.SourceMapMode).some(function(t){return o.SourceMapMode[t]===e}))throw new ReferenceError("Invalid value of `--source-map-mode` option");return e}},function(e,t,r){"use strict";var n=r(0)(r(36));Object.defineProperty(t,"__esModule",{value:!0});var o=r(23);t.ObfuscationTargetSanitizer=function(e){if(!(0,n.default)(o.ObfuscationTarget).some(function(t){return o.ObfuscationTarget[t]===e}))throw new ReferenceError("Invalid value of `--target` option");return e}},function(e,t,r){"use strict";var n=r(0)(r(36));Object.defineProperty(t,"__esModule",{value:!0});var o=r(40);t.IdentifierNamesGeneratorSanitizer=function(e){if(!(0,n.default)(o.IdentifierNamesGenerator).some(function(t){return o.IdentifierNamesGenerator[t]===e}))throw new ReferenceError("Invalid value of `--identifier-names-generator` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanSanitizer=function(e){return"true"===e||"1"===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArraySanitizer=function(e){if(/,$/.test(e))throw new SyntaxError("Multiple values should be wrapped inside quotes: --option-name 'value1, value2'");return e.split(",").map(function(e){return e.trim()})}},function(e,t){e.exports=require("commander")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(66);var i=r(68),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"obfuscate",value:function(e){var t=new i.JavaScriptObfuscatorCLI(e);t.initialize(),t.run()}}]),e}();t.JavaScriptObfuscatorCLI=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(219);e.exports=n.JavaScriptObfuscatorCLI}]); //# sourceMappingURL=index.cli.js.map \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index c6b25b87..e57fc235 100644 --- a/dist/index.js +++ b/dist/index.js @@ -21,5 +21,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -require("source-map-support").install(),module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=221)}([function(e,t){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},function(e,t){e.exports=require("inversify")},function(e,t){e.exports=require("@babel/runtime/helpers/classCallCheck")},function(e,t){e.exports=require("@babel/runtime/helpers/createClass")},function(e,t){e.exports=require("tslib")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Factory__ICalleeDataExtractor="Factory",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomNode="Factory",e.Factory__ICustomNodeGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscationResult="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__TControlFlowStorage="Factory",e.IArrayUtils="IArrayUtils",e.ICalleeDataExtractor="ICalleeDataExtractor",e.ICryptUtils="ICryptUtils",e.ICustomNode="ICustomNode",e.ICustomNodeGroup="ICustomNodeGroup",e.IControlFlowReplacer="IControlFlowReplacer",e.IEscapeSequenceEncoder="IEscapeSequenceEncoder",e.IIdentifierNamesGenerator="IIdentifierNamesGenerator",e.IIdentifierObfuscatingReplacer="IIdentifierObfuscatingReplacer",e.IJavaScriptObfuscator="IJavaScriptObfuscator",e.ILogger="ILogger",e.INodeGuard="INodeGuard",e.INodeTransformer="INodeTransformer",e.IObfuscationEventEmitter="IObfuscationEventEmitter",e.IObfuscationResult="IObfuscationResult",e.IOptions="IOptions",e.IOptionsNormalizer="IOptionsNormalizer",e.IObfuscatingReplacer="IObfuscatingReplacer",e.IRandomGenerator="IRandomGenerator",e.ISourceCode="ISourceCode",e.ISourceMapCorrector="ISourceMapCorrector",e.IStackTraceAnalyzer="IStackTraceAnalyzer",e.ITransformersRunner="ITransformersRunner",e.Newable__ICustomNode="Newable",e.Newable__TControlFlowStorage="Newable",e.TCustomNodeGroupStorage="TCustomNodeGroupStorage",e.TInputOptions="TInputOptions",e.TStringArrayStorage="TStringArrayStorage"}(t.ServiceIdentifiers||(t.ServiceIdentifiers={}))},function(e,t){e.exports=require("@babel/runtime/helpers/getPrototypeOf")},function(e,t){e.exports=require("@babel/runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("@babel/runtime/helpers/inherits")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(26),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"isArrayPatternNode",value:function(e){return e.type===i.NodeType.ArrayPattern}},{key:"isArrowFunctionExpressionNode",value:function(e){return e.type===i.NodeType.ArrowFunctionExpression}},{key:"isAssignmentExpressionNode",value:function(e){return e.type===i.NodeType.AssignmentExpression}},{key:"isAssignmentPatternNode",value:function(e){return e.type===i.NodeType.AssignmentPattern}},{key:"isAwaitExpressionNode",value:function(e){return e.type===i.NodeType.AwaitExpression}},{key:"isBlockStatementNode",value:function(e){return e.type===i.NodeType.BlockStatement}},{key:"isBreakStatementNode",value:function(e){return e.type===i.NodeType.BreakStatement}},{key:"isCallExpressionNode",value:function(e){return e.type===i.NodeType.CallExpression}},{key:"isCatchClauseNode",value:function(e){return e.type===i.NodeType.CatchClause}},{key:"isClassDeclarationNode",value:function(e){return e.type===i.NodeType.ClassDeclaration}},{key:"isContinueStatementNode",value:function(e){return e.type===i.NodeType.ContinueStatement}},{key:"isExportNamedDeclarationNode",value:function(e){return e.type===i.NodeType.ExportNamedDeclaration}},{key:"isExpressionStatementNode",value:function(e){return e.type===i.NodeType.ExpressionStatement}},{key:"isFunctionDeclarationNode",value:function(e){return e.type===i.NodeType.FunctionDeclaration}},{key:"isFunctionExpressionNode",value:function(e){return e.type===i.NodeType.FunctionExpression}},{key:"isIdentifierNode",value:function(e){return e.type===i.NodeType.Identifier}},{key:"isIfStatementNode",value:function(e){return e.type===i.NodeType.IfStatement}},{key:"isImportDeclarationNode",value:function(e){return e.type===i.NodeType.ImportDeclaration}},{key:"isImportDefaultSpecifierNode",value:function(e){return e.type===i.NodeType.ImportDefaultSpecifier}},{key:"isImportNamespaceSpecifierNode",value:function(e){return e.type===i.NodeType.ImportNamespaceSpecifier}},{key:"isImportSpecifierNode",value:function(e){return e.type===i.NodeType.ImportSpecifier}},{key:"isLabelIdentifierNode",value:function(t,r){var n=e.isLabeledStatementNode(r)&&r.label===t,o=e.isContinueStatementNode(r)&&r.label===t,a=e.isBreakStatementNode(r)&&r.label===t;return n||o||a}},{key:"isLabeledStatementNode",value:function(e){return e.type===i.NodeType.LabeledStatement}},{key:"isLiteralNode",value:function(e){return e.type===i.NodeType.Literal}},{key:"isMemberExpressionNode",value:function(e){return e.type===i.NodeType.MemberExpression}},{key:"isMethodDefinitionNode",value:function(e){return e.type===i.NodeType.MethodDefinition}},{key:"isNode",value:function(e){return e&&void 0!==!e.type}},{key:"isNodeHasBlockScope",value:function(t,r){return e.isProgramNode(t)||e.isBlockStatementNode(t)&&e.nodesWithBlockScope.includes(r.type)}},{key:"isNodeHasScope",value:function(t){return e.isProgramNode(t)||e.isBlockStatementNode(t)||e.isSwitchCaseNode(t)}},{key:"isNodeWithComments",value:function(e){return Boolean(e.leadingComments)||Boolean(e.trailingComments)}},{key:"isObjectPatternNode",value:function(e){return e.type===i.NodeType.ObjectPattern}},{key:"isObjectExpressionNode",value:function(e){return e.type===i.NodeType.ObjectExpression}},{key:"isProgramNode",value:function(e){return e.type===i.NodeType.Program}},{key:"isPropertyNode",value:function(e){return e.type===i.NodeType.Property}},{key:"isReplaceableIdentifierNode",value:function(t,r){if(!e.isIdentifierNode(t))return!1;var n=e.isPropertyNode(r)&&!r.computed&&r.key===t,o=e.isMemberExpressionNode(r)&&!r.computed&&r.property===t,a=e.isMethodDefinitionNode(r)&&!r.computed,i=e.isLabelIdentifierNode(t,r);return!(n||o||a||i)}},{key:"isRestElementNode",value:function(e){return e.type===i.NodeType.RestElement}},{key:"isReturnStatementNode",value:function(e){return e.type===i.NodeType.ReturnStatement}},{key:"isSuperNode",value:function(e){return e.type===i.NodeType.Super}},{key:"isSwitchCaseNode",value:function(e){return e.type===i.NodeType.SwitchCase}},{key:"isTaggedTemplateExpressionNode",value:function(e){return e.type===i.NodeType.TaggedTemplateExpression}},{key:"isTemplateLiteralNode",value:function(e){return e.type===i.NodeType.TemplateLiteral}},{key:"isUnaryExpressionNode",value:function(e){return e.type===i.NodeType.UnaryExpression}},{key:"isUseStrictOperator",value:function(e){return e.type===i.NodeType.ExpressionStatement&&"use strict"===e.directive}},{key:"isVariableDeclarationNode",value:function(e){return e.type===i.NodeType.VariableDeclaration}},{key:"isVariableDeclaratorNode",value:function(e){return e.type===i.NodeType.VariableDeclarator}},{key:"isWhileStatementNode",value:function(e){return e.type===i.NodeType.WhileStatement}}]),e}();s.nodesWithBlockScope=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition],t.NodeGuards=s},function(e,t,r){"use strict";var n=r(0),o=n(r(62)),a=n(r(36)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=c.__importStar(r(46)),u=c.__importStar(r(61)),l=c.__importStar(r(18)),f=r(9),p=r(19),m=function(){function e(){(0,i.default)(this,e)}return(0,s.default)(e,null,[{key:"addXVerbatimPropertyToLiteralNode",value:function(e){return f.NodeGuards.isLiteralNode(e)&&(e["x-verbatim-property"]={content:e.raw,precedence:d.Precedence.Primary}),e}},{key:"clone",value:function(t){return e.parentize(e.cloneRecursive(t))}},{key:"convertCodeToStructure",value:function(t){var r=u.parse(t,{sourceType:"script"});return l.replace(r,{enter:function(t,r){return e.parentizeNode(t,r),e.addXVerbatimPropertyToLiteralNode(t),p.NodeMetadata.set(t,{ignoredNode:!1}),t}}),r.body}},{key:"convertStructureToCode",value:function(e){return e.reduce(function(e,t){return e+d.generate(t,{sourceMapWithCode:!0}).code},"")}},{key:"getBlockScopesOfNode",value:function(t){return e.getBlockScopesOfNodeRecursive(t)}},{key:"getNextSiblingStatementNode",value:function(t){return e.getSiblingStatementNodeByOffset(t,1)}},{key:"getPreviousSiblingStatementNode",value:function(t){return e.getSiblingStatementNodeByOffset(t,-1)}},{key:"getScopeOfNode",value:function(t){var r=t.parentNode;if(!r)throw new ReferenceError("`parentNode` property of given node is `undefined`");return f.NodeGuards.isNodeHasScope(r)?r:e.getScopeOfNode(r)}},{key:"getUnaryExpressionArgumentNode",value:function(t){return f.NodeGuards.isUnaryExpressionNode(t.argument)?e.getUnaryExpressionArgumentNode(t.argument):t.argument}},{key:"parentize",value:function(t){return l.replace(t,{enter:e.parentizeNode}),t}},{key:"parentizeNode",value:function(e,t){return e.parentNode=t||e,e}},{key:"cloneRecursive",value:function(t){if(null===t)return t;var r={};return(0,a.default)(t).forEach(function(n){if("parentNode"!==n){var a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}},{key:"getBlockScopesOfNodeRecursive",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return f.NodeGuards.isBlockStatementNode(t)&&o===t&&r.push(t),(f.NodeGuards.isProgramNode(t)||n&&f.NodeGuards.isNodeHasBlockScope(t,o))&&r.push(t),t!==o?e.getBlockScopesOfNodeRecursive(o,r,++n):r}},{key:"getSiblingStatementNodeByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=f.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeUtils=m},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(196)),i=n(r(195)),s=n(r(194)),c=n(r(193)),d=n(r(192)),u=n(r(191)),l=n(r(31)),f=n(r(36));Object.defineProperty(t,"__esModule",{value:!0});var p={configurable:!0,enumerable:!0},m="_initialized",N="_initializablePropertiesSet",g="_wrappedMethodsSet",v="constructor";function y(e,t,r){(0,u.default)(e,r)||(0,d.default)(e,t,r)}t.initializable=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initialize",t=(0,f.default)(this)[0];return function(r,n){var u=r[e];if(!u||"function"!=typeof u)throw new Error("`".concat(e,"` method with initialization logic not ")+"found. `@".concat(t,"` decorator requires `").concat(e,"` method"));return y(m,!1,r),y(N,new l.default,r),y(g,new l.default,r),function(e,t){var r=(0,c.default)(e),n=[t,v];r.forEach(function(r){var c=(0,s.default)(N,e),d=(0,s.default)(g,e),u=n.includes(r)||c.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=(0,i.default)(e,r)||p,v=f.value;(0,a.default)(e,r,(0,o.default)({},f,{value:function(){if(!(0,s.default)(m,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return v.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var n=(0,i.default)(e,t)||p,s=n.value;(0,a.default)(e,t,(0,o.default)({},n,{value:function(){(0,d.default)(m,!0,this);var e=s.apply(this,arguments);return this[r],e}}))}(r,e,n),function(e,t){(0,s.default)(N,e).add(t);var r="_".concat(t),n=(0,i.default)(e,r)||p;return(0,a.default)(e,t,(0,o.default)({},n,{get:function(){if(void 0===this[r])throw new Error("Property `".concat(t,"` is not initialized! Initialize it first!"));return this[r]},set:function(e){this[r]=e}})),n}(r,n)}}},function(e,t){e.exports=require("@babel/runtime/core-js/object/assign")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Preparing="Preparing",e.DeadCodeInjection="DeadCodeInjection",e.ControlFlowFlattening="ControlFlowFlattening",e.Converting="Converting",e.Obfuscating="Obfuscating",e.Finalizing="Finalizing"}(t.TransformationStage||(t.TransformationStage={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=r(11),u=function(){function e(t,r){(0,o.default)(this,e),this.randomGenerator=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){this.nodeIdentifier=this.randomGenerator.getRandomInteger(0,1e4)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",Number)],u.prototype,"nodeIdentifier",void 0),i.__decorate([s.postConstruct(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],u.prototype,"initialize",null),u=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],u),t.AbstractNodeTransformer=u},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4).__importStar(r(46)),c=r(26),d=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"programNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.Program,body:e,sourceType:"script",metadata:{ignoredNode:!1}}}},{key:"arrayExpressionNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}},{key:"assignmentExpressionNode",value:function(e,t,r){return{type:c.NodeType.AssignmentExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"binaryExpressionNode",value:function(e,t,r){return{type:c.NodeType.BinaryExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"blockStatementNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}},{key:"breakStatement",value:function(e){var t={type:c.NodeType.BreakStatement,metadata:{ignoredNode:!1}};return e&&(t.label=e),t}},{key:"callExpressionNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:c.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}},{key:"continueStatement",value:function(e){var t={type:c.NodeType.ContinueStatement,metadata:{ignoredNode:!1}};return e&&(t.label=e),t}},{key:"expressionStatementNode",value:function(e){return{type:c.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}},{key:"functionDeclarationNode",value:function(t,r,n){return{type:c.NodeType.FunctionDeclaration,id:e.identifierNode(t),params:r,body:n,generator:!1,metadata:{ignoredNode:!1}}}},{key:"functionExpressionNode",value:function(e,t){return{type:c.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}},{key:"ifStatementNode",value:function(e,t,r){return(0,o.default)({type:c.NodeType.IfStatement,test:e,consequent:t},r&&{alternate:r},{metadata:{ignoredNode:!1}})}},{key:"identifierNode",value:function(e){return{type:c.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}},{key:"literalNode",value:function(e,t){return t=void 0!==t?t:"'".concat(e,"'"),{type:c.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:s.Precedence.Primary},metadata:{ignoredNode:!1}}}},{key:"logicalExpressionNode",value:function(e,t,r){return{type:c.NodeType.LogicalExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"memberExpressionNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:c.NodeType.MemberExpression,computed:r,object:e,property:t,metadata:{ignoredNode:!1}}}},{key:"methodDefinitionNode",value:function(e,t,r,n){return{type:c.NodeType.MethodDefinition,key:e,value:t,kind:r,computed:n,static:!1,metadata:{ignoredNode:!1}}}},{key:"objectExpressionNode",value:function(e){return{type:c.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}},{key:"propertyNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:c.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:r,metadata:{ignoredNode:!1}}}},{key:"returnStatementNode",value:function(e){return{type:c.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}},{key:"switchStatementNode",value:function(e,t){return{type:c.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}},{key:"switchCaseNode",value:function(e,t){return{type:c.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}},{key:"unaryExpressionNode",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:c.NodeType.UnaryExpression,operator:e,argument:t,prefix:r,metadata:{ignoredNode:!1}}}},{key:"updateExpressionNode",value:function(e,t){return{type:c.NodeType.UpdateExpression,operator:e,argument:t,prefix:!1,metadata:{ignoredNode:!1}}}},{key:"variableDeclarationNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"var";return{type:c.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}},{key:"variableDeclaratorNode",value:function(e,t){return{type:c.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}},{key:"whileStatementNode",value:function(e,t){return{type:c.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}]),e}();t.NodeFactory=d},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(5),u=r(172),l=r(171),f=i=function(){function e(t,r,n){(0,o.default)(this,e),this.cachedNode=null,this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(2,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Function,Object,Object])],f),t.AbstractCustomNode=f},function(e,t){e.exports=require("@babel/runtime/core-js/map")},function(e,t){e.exports=require("estraverse")},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"set",value:function(e,t){e.metadata=(0,o.default)(e.metadata||{},t)}},{key:"get",value:function(e,t){return void 0!==e.metadata?e.metadata[t]:void 0}},{key:"isIgnoredNode",value:function(t){return!0===e.get(t,"ignoredNode")}},{key:"isRenamedIdentifier",value:function(t){return!0===e.get(t,"renamedIdentifier")}},{key:"isReplacedLiteral",value:function(t){return!0===e.get(t,"replacedLiteral")}}]),e}();t.NodeMetadata=s},function(e,t){e.exports=require("string-template")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BaseIdentifierObfuscatingReplacer="BaseIdentifierObfuscatingReplacer"}(t.IdentifierObfuscatingReplacer||(t.IdentifierObfuscatingReplacer={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionFunctionNode="BinaryExpressionFunctionNode",e.BlockStatementControlFlowFlatteningNode="BlockStatementControlFlowFlatteningNode",e.CallExpressionControlFlowStorageCallNode="CallExpressionControlFlowStorageCallNode",e.CallExpressionFunctionNode="CallExpressionFunctionNode",e.ControlFlowStorageNode="ControlFlowStorageNode",e.ExpressionWithOperatorControlFlowStorageCallNode="ExpressionWithOperatorControlFlowStorageCallNode",e.LogicalExpressionFunctionNode="LogicalExpressionFunctionNode",e.StringLiteralControlFlowStorageCallNode="StringLiteralControlFlowStorageCallNode",e.StringLiteralNode="StringLiteralNode"}(t.ControlFlowCustomNode||(t.ControlFlowCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Browser="browser",e.BrowserNoEval="browser-no-eval",e.Node="node"}(t.ObfuscationTarget||(t.ObfuscationTarget={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"appendNode",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(e.getScopeNodeStatements(t)).concat((0,o.default)(r)))}},{key:"appendNodeToOptimalBlockScope",value:function(t,r,n){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;o=t.length?e.getOptimalBlockScope(t,a):r,e.prependNode(o,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertNodeAfter",value:function(t,r,n){var o=e.getScopeNodeStatements(t).indexOf(n);e.insertNodeAtIndex(t,r,o+1)}},{key:"insertNodeAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(e.getScopeNodeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeNodeStatements(t).slice(n))))}},{key:"prependNode",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(r).concat((0,o.default)(e.getScopeNodeStatements(t))))}},{key:"getScopeNodeStatements",value:function(e){return s.NodeGuards.isSwitchCaseNode(e)?e.consequent:e.body}},{key:"parentizeScopeStatementsBeforeAppend",value:function(e,t){return t.forEach(function(t){t.parentNode=e}),t}},{key:"setScopeNodeStatements",value:function(e,t){s.NodeGuards.isSwitchCaseNode(e)?e.consequent=t:e.body=t}}]),e}();t.NodeAppender=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassDeclaration="ClassDeclaration",e.ContinueStatement="ContinueStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExpressionStatement="ExpressionStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MethodDefinition="MethodDefinition",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateLiteral="TemplateLiteral",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement"}(t.NodeType||(t.NodeType={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(205)),a=n(r(17)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(1),d=r(5),u=r(204),l=r(199),f=r(185),p=r(179),m=r(132),N=r(131),g=r(128),v=r(127),y=r(114),_=r(99),h=r(89),b=r(84),S=r(78),I=r(65),C=r(75),F=r(73),O=r(72),j=r(71),T=r(70),k=function(){function e(){(0,i.default)(this,e),this.container=new c.Container}return(0,s.default)(e,[{key:"get",value:function(e){return this.container.get(e)}},{key:"getNamed",value:function(e,t){return this.container.getNamed(e,t)}},{key:"load",value:function(e,t){this.container.bind(d.ServiceIdentifiers.ISourceCode).toDynamicValue(function(){return new O.SourceCode(e)}).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.TInputOptions).toDynamicValue(function(){return t}).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.ILogger).to(I.Logger).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IJavaScriptObfuscator).to(S.JavaScriptObfuscator).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.ITransformersRunner).to(T.TransformersRunner).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IObfuscationResult).to(F.ObfuscationResult).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.Factory__IObfuscationResult).toFactory(function(e){return function(t,r){var n=e.container.get(d.ServiceIdentifiers.IObfuscationResult);return n.initialize(t,r),n}}),this.container.bind(d.ServiceIdentifiers.ISourceMapCorrector).to(j.SourceMapCorrector).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IObfuscationEventEmitter).to(C.ObfuscationEventEmitter).inSingletonScope(),this.container.load(u.analyzersModule),this.container.load(l.controlFlowTransformersModule),this.container.load(f.convertingTransformersModule),this.container.load(p.customNodesModule),this.container.load(m.finalizingTransformersModule),this.container.load(N.generatorsModule),this.container.load(g.nodeTransformersModule),this.container.load(v.obfuscatingTransformersModule),this.container.load(y.optionsModule),this.container.load(_.preparingTransformersModule),this.container.load(h.storagesModule),this.container.load(b.utilsModule)}},{key:"unload",value:function(){this.container.unbindAll()}}],[{key:"getFactory",value:function(e){return function(t){return function(r){return t.container.getNamed(e,r)}}}},{key:"getCacheFactory",value:function(e){return function(t){var r=new a.default;return function(n){if(r.has(n))return r.get(n);var o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}},{key:"isCeilNumber",value:function(e){return e%1==0}},{key:"stringRotate",value:function(e,t){if(!e)throw new ReferenceError("Cannot rotate empty string.");for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=new s.InversifyContainerFacade;r.load(e,t);var n=r.get(i.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.17.0-dev.1",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base64="base64",e.Rc4="rc4"}(t.StringArrayEncoding||(t.StringArrayEncoding={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Inline="inline",e.Separate="separate"}(t.SourceMapMode||(t.SourceMapMode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HexadecimalIdentifierNamesGenerator="hexadecimal",e.MangledIdentifierNamesGenerator="mangled"}(t.IdentifierNamesGenerator||(t.IdentifierNamesGenerator={}))},function(e,t,r){"use strict";var n=r(0)(r(2));Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),a=r(1),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object])],s),t.AbstractObfuscatingReplacer=s},function(e,t){e.exports=require("@babel/runtime/helpers/get")},function(e,t,r){"use strict";var n=r(0)(r(55));Object.defineProperty(t,"__esModule",{value:!0});var o=r(40),a=r(23),i=r(39);t.NO_ADDITIONAL_NODES_PRESET=(0,n.default)({compact:!0,controlFlowFlattening:!1,controlFlowFlatteningThreshold:0,deadCodeInjection:!1,deadCodeInjectionThreshold:0,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",log:!1,renameGlobals:!1,reservedNames:[],rotateStringArray:!1,seed:0,selfDefending:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:a.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableNoEvalTemplate=function(){return"\n var that = (typeof window !== 'undefined'\n ? window\n : (typeof process === 'object' &&\n typeof require === 'function' &&\n typeof global === 'object')\n ? global\n : this);\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=s=function(){function e(t,r,n){(0,a.default)(this,e),this.replacerDataByControlFlowStorageId=new o.default,this.controlFlowCustomNodeFactory=t,this.randomGenerator=r,this.options=n}return(0,i.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),i=s.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=i.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(30)),i=n(r(35)),s=n(r(17)),c=n(r(2)),d=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=function(){function e(t,r){(0,c.default)(this,e),this.randomGenerator=t,this.options=r}return(0,d.default)(e,[{key:"initialize",value:function(){this.storage=new s.default,this.storageId=this.randomGenerator.getRandomString(6)}},{key:"get",value:function(e){var t=this.storage.get(e);if(!t)throw new Error("No value found in map storage with key `".concat(e,"`"));return t}},{key:"getKeyOf",value:function(e){var t=!0,r=!1,n=void 0;try{for(var o,s=(0,i.default)(this.storage);!(t=(o=s.next()).done);t=!0){var c=(0,a.default)(o.value,2),d=c[0];if(e===c[1])return d}}catch(e){r=!0,n=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw n}}return null}},{key:"getLength",value:function(){return this.storage.size}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"has",value:function(e){return this.storage.has(e)}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=new s.default((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();u.__decorate([p.initializable(),u.__metadata("design:type",String)],m.prototype,"storageId",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",s.default)],m.prototype,"storage",void 0),u.__decorate([l.postConstruct(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[]),u.__metadata("design:returntype",void 0)],m.prototype,"initialize",null),m=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],m),t.MapStorage=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlackListNodeGuard="BlackListNodeGuard",e.ConditionalCommentNodeGuard="ConditionalCommentNodeGuard"}(t.ObfuscatingGuard||(t.ObfuscatingGuard={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BooleanLiteralObfuscatingReplacer="BooleanLiteralObfuscatingReplacer",e.NumberLiteralObfuscatingReplacer="NumberLiteralObfuscatingReplacer",e.StringLiteralObfuscatingReplacer="StringLiteralObfuscatingReplacer"}(t.LiteralObfuscatingReplacer||(t.LiteralObfuscatingReplacer={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=function(){function e(t,r){(0,o.default)(this,e),this.randomGenerator=t,this.options=r}return(0,a.default)(e,[{key:"isValidIdentifierName",value:function(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),e}();d=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],d),t.AbstractIdentifierNamesGenerator=d},function(e,t){e.exports=require("@babel/runtime/core-js/object/freeze")},function(e,t){e.exports=require("@babel/runtime/core-js/array/from")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ConsoleOutputCustomNodeGroup="ConsoleOutputCustomNodeGroup",e.DebugProtectionCustomNodeGroup="DebugProtectionCustomNodeGroup",e.DomainLockCustomNodeGroup="DomainLockCustomNodeGroup",e.SelfDefendingCustomNodeGroup="SelfDefendingCustomNodeGroup",e.StringArrayCustomNodeGroup="StringArrayCustomNodeGroup"}(t.CustomNodeGroup||(t.CustomNodeGroup={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(22),p=r(45),m=r(9),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(f.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!m.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(p.AbstractControlFlowReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionControlFlowReplacer="BinaryExpressionControlFlowReplacer",e.CallExpressionControlFlowReplacer="CallExpressionControlFlowReplacer",e.LogicalExpressionControlFlowReplacer="LogicalExpressionControlFlowReplacer",e.StringLiteralControlFlowReplacer="StringLiteralControlFlowReplacer"}(t.ControlFlowReplacer||(t.ControlFlowReplacer={}))},function(e,t){e.exports=require("espree")},function(e,t){e.exports=require("@babel/runtime/helpers/typeof")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.FunctionDeclarationCalleeDataExtractor="FunctionDeclarationCalleeDataExtractor",e.FunctionExpressionCalleeDataExtractor="FunctionExpressionCalleeDataExtractor",e.ObjectExpressionCalleeDataExtractor="ObjectExpressionCalleeDataExtractor"}(t.CalleeDataExtractor||(t.CalleeDataExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(5),u=s.__importDefault(r(49)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t){e.exports=require("reflect-metadata")},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Enter="enter",e.Leave="leave"}(t.VisitorDirection||(t.VisitorDirection={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=i.__importStar(r(18)),u=r(69),l=r(9),f=r(19),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();u.colorError=d.default.red,u.nearestSymbolsCount=15,u.sourceTypes=["script","module"],t.EspreeFacade=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.TransformationStage="Transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=c.__importStar(r(46)),f=r(77),p=r(32),m=r(13),N=r(76),g=r(9),v=s=function(){function e(t,r,n,o,i){(0,a.default)(this,e),this.transformersRunner=t,this.sourceMapCorrector=r,this.randomGenerator=n,this.logger=o,this.options=i}return(0,i.default)(e,[{key:"obfuscate",value:function(e){var t=Date.now();this.logger.info(f.LoggingMessage.Version,"0.16.0"),this.logger.info(f.LoggingMessage.ObfuscationStarted),this.logger.info(f.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getSeed());var r=this.parseCode(e),n=this.transformAstTree(r),o=this.generateCode(e,n),a=(Date.now()-t)/1e3;return this.logger.success(f.LoggingMessage.ObfuscationCompleted,a),this.getObfuscationResult(o)}},{key:"parseCode",value:function(e){return N.EspreeFacade.parse(e,s.espreeParseOptions)}},{key:"transformAstTree",value:function(e){return!g.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runTransformationStage(e,m.TransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runTransformationStage(e,m.TransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runTransformationStage(e,m.TransformationStage.ControlFlowFlattening)),e=this.runTransformationStage(e,m.TransformationStage.Converting),e=this.runTransformationStage(e,m.TransformationStage.Obfuscating),e=this.runTransformationStage(e,m.TransformationStage.Finalizing)):(this.logger.warn(f.LoggingMessage.EmptySourceCode),e)}},{key:"generateCode",value:function(e,t){var r=(0,o.default)({},s.escodegenParams);this.options.sourceMap&&(r.sourceMap="sourceMap",r.sourceContent=e);var n=l.generate(t,(0,o.default)({},r,{format:{compact:this.options.compact}}));return n.map=n.map?n.map.toString():"",n}},{key:"getObfuscationResult",value:function(e){return this.sourceMapCorrector.correct(e.code,e.map)}},{key:"runTransformationStage",value:function(e,t){return this.logger.info(f.LoggingMessage.TransformationStage,t),this.transformersRunner.transform(e,s.transformersList,t)}}]),e}();v.espreeParseOptions={attachComment:!0,comment:!0,ecmaFeatures:{experimentalObjectRestSpread:!0},ecmaVersion:9,loc:!0,range:!0},v.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},v.transformersList=[p.NodeTransformer.BlockStatementControlFlowTransformer,p.NodeTransformer.ClassDeclarationTransformer,p.NodeTransformer.CommentsTransformer,p.NodeTransformer.CustomNodesTransformer,p.NodeTransformer.DeadCodeInjectionTransformer,p.NodeTransformer.EvalCallExpressionTransformer,p.NodeTransformer.FunctionControlFlowTransformer,p.NodeTransformer.CatchClauseTransformer,p.NodeTransformer.FunctionDeclarationTransformer,p.NodeTransformer.FunctionTransformer,p.NodeTransformer.ImportDeclarationTransformer,p.NodeTransformer.LabeledStatementTransformer,p.NodeTransformer.LiteralTransformer,p.NodeTransformer.MemberExpressionTransformer,p.NodeTransformer.MetadataTransformer,p.NodeTransformer.MethodDefinitionTransformer,p.NodeTransformer.ObfuscatingGuardsTransformer,p.NodeTransformer.ObjectExpressionKeysTransformer,p.NodeTransformer.ObjectExpressionTransformer,p.NodeTransformer.ParentificationTransformer,p.NodeTransformer.TemplateLiteralTransformer,p.NodeTransformer.VariableDeclarationTransformer],v=s=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.ITransformersRunner)),c.__param(1,d.inject(u.ServiceIdentifiers.ISourceMapCorrector)),c.__param(2,d.inject(u.ServiceIdentifiers.IRandomGenerator)),c.__param(3,d.inject(u.ServiceIdentifiers.ILogger)),c.__param(4,d.inject(u.ServiceIdentifiers.IOptions)),c.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],v),t.JavaScriptObfuscator=v},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(1),d=function(){function e(){(0,a.default)(this,e),this.stringsCache=new o.default}return(0,i.default)(e,[{key:"encode",value:function(e,t){var r="".concat(e,"-").concat(String(t));if(this.stringsCache.has(r))return this.stringsCache.get(r);var n,o,a=new RegExp("[\\s\\S]","g"),i=new RegExp("['\"\\\\\\s]"),s=new RegExp("[\\x00-\\x7F]"),c=e.replace(a,function(e){return t||i.exec(e)?(s.exec(e)?(n="\\x",o="00"):(n="\\u",o="0000"),"".concat(n).concat((o+e.charCodeAt(0).toString(16)).slice(-o.length))):e});return this.stringsCache.set(r,c),c}}]),e}();d=s.__decorate([c.injectable()],d),t.EscapeSequenceEncoder=d},function(e,t){e.exports=require("chance")},function(e,t){e.exports=require("md5")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=r(50),u=r(28),l=function(){function e(t){(0,o.default)(this,e),this.randomGenerator=t}return(0,a.default)(e,[{key:"btoa",value:function(e){var t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt("".concat(u.Utils.hexadecimalPrefix).concat(t)))});for(var r,n,o=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|o)||(a="=",o%1);t+=a.charAt(63&r>>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(85),N=u=function(e){function t(e,r,n,a){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,c.default)(t).call(this,n,a))).identifierNamesGenerator=e(a),i.arrayUtils=r,i}return(0,i.default)(t,[{key:"initialize",value:function(){(0,d.default)((0,c.default)(t.prototype),"initialize",this).call(this);var e=this.identifierNamesGenerator.generate().slice(0,u.stringArrayNameLength),r=this.identifierNamesGenerator.generate().slice(0,u.stringArrayNameLength),n="".concat(this.options.identifiersPrefix).concat(e),o="".concat(this.options.identifiersPrefix).concat(r);this.storageId="".concat(n,"|").concat(o)}},{key:"rotateArray",value:function(e){this.storage=this.arrayUtils.arrayRotate(this.storage,e)}},{key:"toString",value:function(){return this.storage.map(function(e){return"'".concat(e,"'")}).toString()}}]),(0,a.default)(t,e),t}(m.ArrayStorage);N.stringArrayNameLength=7,l.__decorate([f.postConstruct(),l.__metadata("design:type",Function),l.__metadata("design:paramtypes",[]),l.__metadata("design:returntype",void 0)],N.prototype,"initialize",null),N=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IArrayUtils)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object,Object])],N),t.StringArrayStorage=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(57),N=r(51),g=u=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).customNodeGroupFactory=e,a}return(0,i.default)(t,[{key:"initialize",value:function(){var e=this;(0,d.default)((0,c.default)(t.prototype),"initialize",this).call(this),u.customNodeGroupsList.forEach(function(t){var r=e.customNodeGroupFactory(t);r&&e.storage.set(t,r)})}}]),(0,a.default)(t,e),t}(N.MapStorage);g.customNodeGroupsList=[m.CustomNodeGroup.ConsoleOutputCustomNodeGroup,m.CustomNodeGroup.DebugProtectionCustomNodeGroup,m.CustomNodeGroup.DomainLockCustomNodeGroup,m.CustomNodeGroup.SelfDefendingCustomNodeGroup,m.CustomNodeGroup.StringArrayCustomNodeGroup],l.__decorate([f.postConstruct(),l.__metadata("design:type",Function),l.__metadata("design:paramtypes",[]),l.__metadata("design:returntype",void 0)],g.prototype,"initialize",null),g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__ICustomNodeGroup)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],g),t.CustomNodeGroupStorage=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(7)),s=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(1),u=r(5),l=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,a.default)(t,e),t}(r(51).MapStorage);l=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.IRandomGenerator)),c.__param(1,d.inject(u.ServiceIdentifiers.IOptions)),c.__metadata("design:paramtypes",[Object,Object])],l),t.ControlFlowStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),a=r(88),i=r(87),s=r(86);t.storagesModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.TCustomNodeGroupStorage).to(i.CustomNodeGroupStorage).inSingletonScope(),e(o.ServiceIdentifiers.TStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(o.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(a.ControlFlowStorage),e(o.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(function(e){return function(){var t=new(e.container.get(o.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(o.ServiceIdentifiers.IRandomGenerator),e.container.get(o.ServiceIdentifiers.IOptions));return t.initialize(),t}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(10),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return m.NodeUtils.parentizeNode(e,t)}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.ParentificationTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(52),m=r(13),N=r(14),g=r(19),v=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).obfuscatingGuards=d.obfuscatingGuardsList.map(e),a}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.obfuscatingGuards.every(function(t){return t.check(e)});return g.NodeMetadata.set(e,{ignoredNode:!r}),e}}]),(0,a.default)(t,e),t}(N.AbstractNodeTransformer);v.obfuscatingGuardsList=[p.ObfuscatingGuard.BlackListNodeGuard,p.ObfuscatingGuard.ConditionalCommentNodeGuard],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__INodeGuard)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.ObfuscatingGuardsTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(9),N=r(19),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeMetadata.set(e,{ignoredNode:!1}),m.NodeGuards.isIdentifierNode(e)&&N.NodeMetadata.set(e,{renamedIdentifier:!1}),m.NodeGuards.isLiteralNode(e)&&N.NodeMetadata.set(e,{replacedLiteral:!1}),e}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.MetadataTransformer=g},function(e,t){e.exports=require("js-string-escape")},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importDefault(r(93)),N=r(13),g=r(14),v=r(15),y=r(9),_=r(10),h=u=function(e){function t(e,r){var n;return(0,a.default)(this,t),(n=(0,c.default)(this,(0,d.default)(t).call(this,e,r))).evalRootAstHostNodeSet=new o.default,n}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Preparing:return{enter:function(e,r){if(r&&y.NodeGuards.isCallExpressionNode(e)&&y.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return t.transformNode(e,r)}};case N.TransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:function(e,r){if(r&&t.isEvalRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"transformNode",value:function(e,t){var r=e.arguments[0];if(!r)return e;var n,o=u.extractEvalStringFromCallExpressionArgument(r);if(!o)return e;try{n=_.NodeUtils.convertCodeToStructure(o)}catch(t){return e}var a=v.NodeFactory.functionExpressionNode([],v.NodeFactory.blockStatementNode(n));return this.evalRootAstHostNodeSet.add(a),a}},{key:"restoreNode",value:function(e,t){var r=e.body.body,n=_.NodeUtils.convertStructureToCode(r);return v.NodeFactory.callExpressionNode(v.NodeFactory.identifierNode("eval"),[v.NodeFactory.literalNode(m.default(n))])}},{key:"isEvalRootAstHostNode",value:function(e){return y.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}}],[{key:"extractEvalStringFromCallExpressionArgument",value:function(e){return y.NodeGuards.isLiteralNode(e)?u.extractEvalStringFromLiteralNode(e):y.NodeGuards.isTemplateLiteralNode(e)?u.extractEvalStringFromTemplateLiteralNode(e):null}},{key:"extractEvalStringFromLiteralNode",value:function(e){return"string"==typeof e.value?e.value:null}},{key:"extractEvalStringFromTemplateLiteralNode",value:function(e){var t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}}]),(0,i.default)(t,e),t}(g.AbstractNodeTransformer);h=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],h),t.EvalCallExpressionTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(24),p=r(13),m=r(14),N=r(9),g=function(e){function t(e,r,n,a,i){var d;return(0,o.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,a,i))).stackTraceData=[],d.stackTraceAnalyzer=e,d.obfuscationEventEmitter=r,d.customNodeGroupStorage=n,d}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Preparing:return{leave:function(e,r){if(N.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),t.appendCustomNodesBeforeObfuscation(e,r),t.transformNode(e,r)}};case p.TransformationStage.Finalizing:return{leave:function(e,r){N.NodeGuards.isProgramNode(e)&&t.appendCustomNodesAfterObfuscation(e,r)}};default:return null}}},{key:"analyzeNode",value:function(e,t){this.stackTraceData=this.stackTraceAnalyzer.analyze(e)}},{key:"transformNode",value:function(e,t){return e}},{key:"appendCustomNodesBeforeObfuscation",value:function(e,t){var r=this;this.customNodeGroupStorage.getStorage().forEach(function(e){e.initialize(),r.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendCustomNodes.bind(e))}),this.obfuscationEventEmitter.emit(f.ObfuscationEvent.BeforeObfuscation,e,this.stackTraceData)}},{key:"appendCustomNodesAfterObfuscation",value:function(e,t){this.obfuscationEventEmitter.emit(f.ObfuscationEvent.AfterObfuscation,e,this.stackTraceData)}}]),(0,a.default)(t,e),t}(m.AbstractNodeTransformer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IStackTraceAnalyzer)),d.__param(1,u.inject(l.ServiceIdentifiers.IObfuscationEventEmitter)),d.__param(2,u.inject(l.ServiceIdentifiers.TCustomNodeGroupStorage)),d.__param(3,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(4,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],g),t.CustomNodesTransformer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.obfuscationAllowedForCurrentNode=!0,this.obfuscationAllowedForNextNode=null}return(0,a.default)(e,[{key:"check",value:function(e){if(this.obfuscationAllowedForNextNode&&(this.obfuscationAllowedForCurrentNode=this.obfuscationAllowedForNextNode,this.obfuscationAllowedForNextNode=null),!d.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowedForCurrentNode;var t=e.leadingComments,r=e.trailingComments;return t&&(this.obfuscationAllowedForCurrentNode=this.checkComments(t)),r&&(this.obfuscationAllowedForNextNode=this.checkComments(r)),this.obfuscationAllowedForCurrentNode}},{key:"checkComments",value:function(e){for(var t=e.length,r=this.obfuscationAllowedForCurrentNode,n=0;n=u.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 r=y.Utils.decToHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case m.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return v.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,d=s.index;c||this.stringArrayStorage.set(a,o);var l=[u.getHexadecimalLiteralNode(d)];n&&l.push(u.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=v.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),v.NodeFactory.callExpressionNode(f,l)}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),(0,i.default)(t,e),t}(N.AbstractObfuscatingReplacer);_.minimumLengthForStringArray=3,_.rc4KeyLength=4,_.rc4KeysCount=50,_=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.TStringArrayStorage)),l.__param(1,f.inject(p.ServiceIdentifiers.IEscapeSequenceEncoder)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.ICryptUtils)),l.__param(4,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],_),t.StringLiteralObfuscatingReplacer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(41),m=r(15),N=r(28),g=function(e){function t(e){var r;return(0,a.default)(this,t),(r=(0,c.default)(this,(0,d.default)(t).call(this,e))).numberLiteralCache=new o.default,r}return(0,s.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=N.Utils.isCeilNumber(e)?"".concat(N.Utils.hexadecimalPrefix).concat(N.Utils.decToHex(e)):String(e),this.numberLiteralCache.set(e,t)),m.NodeFactory.literalNode(e,t)}}]),(0,i.default)(t,e),t}(p.AbstractObfuscatingReplacer);g=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.NumberLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(62)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(53),m=r(13),N=r(14),g=r(9),v=r(19),y=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&g.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;switch((0,o.default)(e.value)){case"boolean":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);case"number":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);case"string":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);default:return e}}},{key:"isProhibitedNode",value:function(e,t){return!(!g.NodeGuards.isPropertyNode(t)||t.key!==e)||!!g.NodeGuards.isImportDeclarationNode(t)}}]),(0,i.default)(t,e),t}(N.AbstractNodeTransformer);y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importStar(r(18)),p=r(21),m=r(13),N=r(14),g=r(9),v=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&g.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++;return this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&g.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),(0,a.default)(t,e),t}(N.AbstractNodeTransformer);v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LabeledStatementTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importStar(r(18)),N=r(21),g=r(13),v=r(14),y=r(9),_=r(19),h=r(10),b=u=function(e){function t(e,r,n){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).replaceableIdentifiers=new o.default,i.identifierObfuscatingReplacer=e(N.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&y.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++,n=h.NodeUtils.getBlockScopesOfNode(e)[0];return this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(n,r):this.replaceScopeIdentifiers(n,r),e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){u.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this;this.replaceableIdentifiers.get(e).forEach(function(e){var n=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=n.name,_.NodeMetadata.set(e,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e,t){var r=this,n=[];m.replace(e,{enter:function(e,o){if(o&&y.NodeGuards.isReplaceableIdentifierNode(e,o)&&!_.NodeMetadata.isRenamedIdentifier(e)){var a=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a?(e.name=a,_.NodeMetadata.set(e,{renamedIdentifier:!0})):n.push(e)}}}),this.replaceableIdentifiers.set(e,n)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return y.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),(0,i.default)(t,e),t}(v.AbstractNodeTransformer);b=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],b),t.ImportDeclarationTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(21),N=r(13),g=r(14),v=r(9),y=r(19),_=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&(v.NodeGuards.isFunctionDeclarationNode(e)||v.NodeGuards.isFunctionExpressionNode(e)||v.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++;return this.storeFunctionParams(e,r),this.replaceFunctionParams(e,r),e}},{key:"storeFunctionParams",value:function(e,t){var r=this;e.params.forEach(function(e){p.traverse(e,{enter:function(n){return v.NodeGuards.isPropertyNode(e)?p.VisitorOption.Skip:v.NodeGuards.isAssignmentPatternNode(n)&&v.NodeGuards.isIdentifierNode(n.left)?(r.identifierObfuscatingReplacer.storeLocalName(n.left.name,t),p.VisitorOption.Skip):void(v.NodeGuards.isIdentifierNode(n)&&r.identifierObfuscatingReplacer.storeLocalName(n.name,t))}})})}},{key:"addIdentifiersToIgnoredIdentifierNamesSet",value:function(e,t){e.forEach(function(e){e.key&&v.NodeGuards.isIdentifierNode(e.key)&&t.add(e.key.name)})}},{key:"replaceFunctionParams",value:function(e,t){var r=this,n=new o.default,a={enter:function(e,o){if(v.NodeGuards.isObjectPatternNode(e)&&r.addIdentifiersToIgnoredIdentifierNamesSet(e.properties,n),o&&v.NodeGuards.isReplaceableIdentifierNode(e,o)&&!n.has(e.name)){var a=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a&&(e.name=a,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}};e.params.forEach(function(e){return p.replace(e,a)}),p.replace(e.body,a)}}]),(0,i.default)(t,e),t}(g.AbstractNodeTransformer);_=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.FunctionTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(21),N=r(26),g=r(13),v=r(14),y=r(9),_=r(19),h=r(10),b=function(e){function t(e,r,n){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).replaceableIdentifiers=new o.default,i.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&y.NodeGuards.isFunctionDeclarationNode(e)&&!y.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++,n=h.NodeUtils.getBlockScopesOfNode(e)[0],o=n.type===N.NodeType.Program;return!this.options.renameGlobals&&o?e:(this.storeFunctionName(e,o,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n,r):this.replaceScopeIdentifiers(n,r),e)}},{key:"storeFunctionName",value:function(e,t,r){t?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,r):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,r)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this.replaceableIdentifiers.get(t);if(n){var o=n.get(e.id.name);if(o)for(var a=o.length,i=0;i=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),(0,a.default)(t,e),t}(m.AbstractIdentifierNamesGenerator);N.initMangledNameCharacter="9",N.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),N.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],N=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],N),t.MangledIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(54),N=r(28),g=u=function(e){function t(e,r){var n;return(0,a.default)(this,t),(n=(0,c.default)(this,(0,d.default)(t).call(this,e,r))).randomVariableNameSet=new o.default,n}return(0,s.default)(t,[{key:"generate",value:function(){var e=this.randomGenerator.getRandomInteger(1e4,99999999),t=N.Utils.decToHex(e).substr(0,u.baseIdentifierNameLength),r="_".concat(N.Utils.hexadecimalPrefix).concat(t);return this.randomVariableNameSet.has(r)?this.generate():(this.randomVariableNameSet.add(r),r)}},{key:"generateWithPrefix",value:function(){var e=this.generate();return"".concat(this.options.identifiersPrefix).concat(e).replace("__","_")}}]),(0,i.default)(t,e),t}(m.AbstractIdentifierNamesGenerator);g.baseIdentifierNameLength=6,g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.HexadecimalIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),a=r(40),i=r(130),s=r(129);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"literalValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return N.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"controlFlowStorageName",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.StringLiteralControlFlowStorageCallNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.False="![]",e.True="!![]",e.a='(false+"")[1]',e.b='([]["entries"]()+"")[2]',e.c='([]["fill"]+"")[3]',e.d='(undefined+"")[2]',e.e='(true+"")[3]',e.f='(false+"")[0]',e.g="(false+[0]+String)[20]",e.h='(+(101))["toString"](21)[1]',e.i="([false]+undefined)[10]",e.j='([]["entries"]()+"")[3]',e.k='(+(20))["toString"](21)',e.l='(false+"")[2]',e.m='(Number+"")[11]',e.n='(undefined+"")[1]',e.o='(true+[]["fill"])[10]',e.p='(+(211))["toString"](31)[1]',e.q='(+(212))["toString"](31)[1]',e.r='(true+"")[1]',e.s='(false+"")[3]',e.t='(true+"")[0]',e.u='(undefined+"")[0]',e.v='(+(31))["toString"](32)',e.w='(+(32))["toString"](33)',e.x='(+(101))["toString"](34)[1]',e.y="(NaN+[Infinity])[10]",e.z='(+(35))["toString"](36)',e.A="(+[]+Array)[10]",e.B="(+[]+Boolean)[10]",e.C='Function("return escape")()(("")["italics"]())[2]',e.D='Function("return escape")()([]["fill"])["slice"]("-1")',e.E='(RegExp+"")[12]',e.F="(+[]+Function)[10]",e.G='(false+Function("return Date")()())[30]',e.H="'H'",e.I='(Infinity+"")[0]',e.J="'J'",e.K="'K'",e.L="'L'",e.M='(true+Function("return Date")()())[30]',e.N='(NaN+"")[0]',e.O='(NaN+Function("return{}")())[11]',e.P="'P'",e.Q="'Q'",e.R="(+[]+RegExp)[10]",e.S="(+[]+String)[10]",e.T='(NaN+Function("return Date")()())[30]',e.U='(NaN+Function("return{}")()["toString"]["call"]())[11]',e.V="'V'",e.W="'W'",e.X="'X'",e.Y="'Y'",e.Z="'Z'"}(t.JSFuck||(t.JSFuck={}))},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),N=r(43),g=r(137),v=r(136),y=r(16),_=r(37),h=r(10),b=r(28),S=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?p.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),_.JavaScriptObfuscator.obfuscate(p.default(v.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:b.Utils.decToHex(this.stringArrayRotateValue),whileFunctionName:t}),(0,o.default)({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",String)],S.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],S.prototype,"stringArrayRotateValue",void 0),S=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],S),t.StringArrayRotateFunctionNode=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),N=r(139),g=r(16),v=r(10),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,d.default)((0,c.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(N.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),(0,a.default)(t,e),t}(g.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = 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(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(23),N=r(38),g=r(11),v=r(43),y=r(146),_=r(44),h=r(145),b=r(144),S=r(143),I=r(142),C=r(141),F=r(16),O=r(37),j=r(10),T=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return j.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return O.JavaScriptObfuscator.obfuscate(p.default(I.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),(0,o.default)({},v.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():_.GlobalVariableNoEvalTemplate(),t=p.default(y.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=p.default(b.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case N.StringArrayEncoding.Rc4:r=p.default(C.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:h.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case N.StringArrayEncoding.Base64:r=p.default(S.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),(0,i.default)(t,e),t}(F.AbstractCustomNode);u.__decorate([g.initializable(),u.__metadata("design:type",String)],T.prototype,"stringArrayName",void 0),u.__decorate([g.initializable(),u.__metadata("design:type",String)],T.prototype,"stringArrayCallsWrapperName",void 0),T=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],T),t.StringArrayCallsWrapper=T},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),N=r(43),g=r(148),v=r(16),y=r(37),_=r(10),h=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return y.JavaScriptObfuscator.obfuscate(p.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,o.default)({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),(0,i.default)(t,e),t}(v.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.SelfDefendingUnicodeNode=h},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(24),N=r(11),g=r(150),v=r(43),y=r(16),_=r(37),h=r(10),b=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,c.default)(this,(0,d.default)(t).call(this,e,r,n))}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===m.ObfuscationEvent.AfterObfuscation?_.JavaScriptObfuscator.obfuscate(p.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,o.default)({},v.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():p.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([N.initializable(),u.__metadata("design:type",String)],b.prototype,"callsControllerFunctionName",void 0),u.__decorate([N.initializable(),u.__metadata("design:type",String)],b.prototype,"appendEvent",void 0),b=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.NodeCallsControllerFunctionNode=b},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return N.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"operator",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.LogicalExpressionFunctionNode=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return N.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],g.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],g.prototype,"rightValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.ExpressionWithOperatorControlFlowStorageCallNode=g},function(e,t,r){"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 \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 ((!document && !domain) || (!that[document] && !that[document][domain])) {\n return;\n }\n \n var currentDomain = that[document][domain];\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,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(23),N=r(11),g=r(154),v=r(44),y=r(16),_=r(10),h=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).cryptUtils=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.domainLock.join(";"),t=this.cryptUtils.hideString(e,3*e.length),r=(0,o.default)(t,2),n=r[0],a=r[1],i=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():v.GlobalVariableNoEvalTemplate();return p.default(g.DomainLockNodeTemplate(),{domainLockFunctionName:this.identifierNamesGenerator.generate(),diff:a,domains:n,globalVariableTemplate:i,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([N.initializable(),u.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.DomainLockNode=h},function(e,t,r){"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,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(23),m=r(11),N=r(158),g=r(157),v=r(156),y=r(16),_=r(10),h=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?N.DebuggerTemplate():g.DebuggerTemplateNoEval();return f.default(v.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(y.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"debugProtectionFunctionName",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.DebugProtectionFunctionNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(11),m=r(160),N=r(16),g=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return g.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return f.default(m.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.DebugProtectionFunctionIntervalNode=v},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(11),m=r(162),N=r(16),g=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return g.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return f.default(m.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"callsControllerFunctionName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.DebugProtectionFunctionCallNode=v},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(23),m=r(164),N=r(44),g=r(11),v=r(16),y=r(10),_=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():N.GlobalVariableNoEvalTemplate();return f.default(m.ConsoleOutputDisableExpressionTemplate(),{consoleLogDisableFunctionName:this.identifierNamesGenerator.generate(),globalVariableTemplate:e,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(v.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ConsoleOutputDisableExpressionNode=_},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(56)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l=r(4),f=r(1),p=r(5),m=r(11),N=r(16),g=r(15),v=r(9),y=r(10),_=function(e){function t(e,r,n){return(0,i.default)(this,t),(0,d.default)(this,(0,u.default)(t).call(this,e,r,n))}return(0,c.default)(t,[{key:"initialize",value:function(e){this.controlFlowStorage=e}},{key:"getNodeStructure",value:function(){var e=(0,a.default)(this.controlFlowStorage.getStorage()).map(function(e){var t=(0,o.default)(e,2),r=t[0],n=t[1].getNode()[0];if(!v.NodeGuards.isExpressionStatementNode(n))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return g.NodeFactory.propertyNode(g.NodeFactory.identifierNode(r),n.expression)}),t=g.NodeFactory.variableDeclarationNode([g.NodeFactory.variableDeclaratorNode(g.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),g.NodeFactory.objectExpressionNode(e))]);return[t=y.NodeUtils.parentize(t)]}}]),(0,s.default)(t,e),t}(N.AbstractCustomNode);l.__decorate([m.initializable(),l.__metadata("design:type",Object)],_.prototype,"controlFlowStorage",void 0),_=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ControlFlowStorageNode=_},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=N.NodeFactory.blockStatementNode([N.NodeFactory.ifStatementNode(N.NodeFactory.binaryExpressionNode(r,N.NodeFactory.literalNode(n),N.NodeFactory.literalNode(a)),c,d)]);return g.NodeUtils.parentize(u),[u]}}]),(0,i.default)(t,e),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(9),g=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return N.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return g.NodeUtils.parentize(n),[n]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return N.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"operator",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionFunctionNode=g},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(17)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l=r(4),f=r(1),p=r(5),m=r(11),N=r(29),g=r(24),v=r(34),y=r(25),_=function(e){function t(e,r,n,o,a){var s;return(0,i.default)(this,t),(s=(0,d.default)(this,(0,u.default)(t).call(this,n,o,a))).appendEvent=g.ObfuscationEvent.AfterObfuscation,s.customNodeFactory=e,s.stringArrayStorage=r,s}return(0,c.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(N.CustomNode.StringArrayNode,function(t){y.NodeAppender.prependNode(e,t.getNode())}),this.appendCustomNodeIfExist(N.CustomNode.StringArrayCallsWrapper,function(t){y.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(N.CustomNode.StringArrayRotateFunctionNode,function(t){y.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new a.default,this.options.stringArray){var e,t=this.customNodeFactory(N.CustomNode.StringArrayNode),r=this.customNodeFactory(N.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(N.CustomNode.StringArrayRotateFunctionNode),i=this.stringArrayStorage.getStorageId().split("|"),s=(0,o.default)(i,2),c=s[0],d=s[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,c,e),r.initialize(c,d),n.initialize(c,e),this.customNodes.set(N.CustomNode.StringArrayNode,t),this.customNodes.set(N.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(N.CustomNode.StringArrayRotateFunctionNode,n)}}}]),(0,s.default)(t,e),t}(v.AbstractCustomNodeGroup);l.__decorate([m.initializable(),l.__metadata("design:type",a.default)],_.prototype,"customNodes",void 0),_=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__ICustomNode)),l.__param(1,f.inject(p.ServiceIdentifiers.TStringArrayStorage)),l.__param(2,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(4,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],_),t.StringArrayCustomNodeGroup=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),N=r(24),g=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=N.ObfuscationEvent.AfterObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.SelfDefendingUnicodeNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(g.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.SelfDefendingCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),N=r(24),g=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=N.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DomainLockNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.DomainLockNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.DomainLockNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(g.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DomainLockCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),N=r(24),g=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=N.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionCallNode,function(r){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionNode,function(t){v.NodeAppender.appendNode(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=e.body.length,o=r.randomGenerator.getRandomInteger(0,n);v.NodeAppender.insertNodeAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(r){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e,v.NodeAppender.prependNode(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionCallNode),a=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionIntervalNode),i=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),a.initialize(e),i.initialize(this.appendEvent,t),this.customNodes.set(m.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(m.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(m.CustomNode.DebugProtectionFunctionIntervalNode,a),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,i)}}}]),(0,i.default)(t,e),t}(g.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),N=r(24),g=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=N.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.ConsoleOutputDisableExpressionNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(g.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.ConsoleOutputCustomNodeGroup=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(22),s=r(29),c=r(57),d=r(58),u=r(178),l=r(177),f=r(176),p=r(175),m=r(174),N=r(173),g=r(170),v=r(169),y=r(168),_=r(167),h=r(166),b=r(165),S=r(163),I=r(161),C=r(159),F=r(155),O=r(153),j=r(152),T=r(151),k=r(149),x=r(147),E=r(140),w=r(138),G=r(134),R=r(133);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(T.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(k.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(13),m=r(14),N=r(15),g=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=e.expressions,n=[];if(e.quasis.forEach(function(e){n.push(N.NodeFactory.literalNode(e.value.cooked));var t=r.shift();t&&n.push(t)}),n=n.filter(function(e){return!(g.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(n[0])||d.isLiteralNodeWithStringValue(n[1])||n.unshift(N.NodeFactory.literalNode("")),n.length>1){var o=N.NodeFactory.binaryExpressionNode("+",n.shift(),n.shift());return n.forEach(function(e){o=N.NodeFactory.binaryExpressionNode("+",o,e)}),o}return n[0]}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&g.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return g.NodeGuards.isTemplateLiteralNode(e)&&!g.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),(0,a.default)(t,e),t}(m.AbstractNodeTransformer);v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.TemplateLiteralTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(15),N=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return e.properties.forEach(function(e){!e.computed&&e.key&&(e.shorthand&&(e.shorthand=!1),N.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(e.key.name)))}),e}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.ObjectExpressionTransformer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(17)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l,f=r(4),p=r(1),m=r(5),N=r(13),g=r(14),v=r(25),y=r(15),_=r(9),h=r(10),b=l=function(e){function t(e,r){var n;return(0,i.default)(this,t),(n=(0,d.default)(this,(0,u.default)(t).call(this,e,r))).cachedScopeNodesMap=new a.default,n}return(0,c.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Converting:return{enter:function(e,r){if(t.options.transformObjectKeys&&r&&_.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return _.NodeGuards.isVariableDeclaratorNode(t)?this.transformVariableDeclaratorHostObjectExpression(e,t):_.NodeGuards.isAssignmentExpressionNode(t)?this.transformAssignmentExpressionHostObjectExpression(e,t):e}},{key:"transformVariableDeclaratorHostObjectExpression",value:function(e,t){if(!_.NodeGuards.isIdentifierNode(t.id))return e;var r=h.NodeUtils.getScopeOfNode(t);return r&&_.NodeGuards.isNodeHasScope(r)?(this.cachedScopeNodesMap.set(t,r),this.transformObjectExpressionNode(e,t.id,t)):e}},{key:"transformAssignmentExpressionHostObjectExpression",value:function(e,t){var r=t.left;if(!l.isValidExpressionNode(r))return e;var n=h.NodeUtils.getScopeOfNode(t);return n&&_.NodeGuards.isNodeHasScope(n)?(this.cachedScopeNodesMap.set(t,n),this.transformObjectExpressionNode(e,r,t)):e}},{key:"extractPropertiesToExpressionStatements",value:function(e,t,r){for(var n=e.length,o=[],a=[],i=0;if.hostNodeSearchMinDepth&&t.splice(0,f.hostNodeSearchMinDepth),t.length>f.hostNodeSearchMaxDepth&&(t.length=f.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(I.NodeGuards.isFunctionDeclarationNode(e)||I.NodeGuards.isFunctionExpressionNode(e)||I.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;g.replace(e,{enter:function(e,n){if(C.NodeMetadata.isIgnoredNode(e))return g.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return g.VisitorOption.Skip;if(!f.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var a=f.controlFlowReplacersMap.get(e.type);return void 0===a?e:(0,o.default)({},r.controlFlowReplacerFactory(a).replace(e,n,t),{parentNode:n})}})}}]),(0,c.default)(t,e),t}(b.AbstractNodeTransformer);O.controlFlowReplacersMap=new i.default([[_.NodeType.BinaryExpression,y.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[_.NodeType.CallExpression,y.ControlFlowReplacer.CallExpressionControlFlowReplacer],[_.NodeType.LogicalExpression,y.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[_.NodeType.Literal,y.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),O.hostNodeSearchMinDepth=0,O.hostNodeSearchMaxDepth=2,O=f=p.__decorate([m.injectable(),p.__param(0,m.inject(N.ServiceIdentifiers.Factory__TControlFlowStorage)),p.__param(1,m.inject(N.ServiceIdentifiers.Factory__IControlFlowReplacer)),p.__param(2,m.inject(N.ServiceIdentifiers.Factory__IControlFlowCustomNode)),p.__param(3,m.inject(N.ServiceIdentifiers.IRandomGenerator)),p.__param(4,m.inject(N.ServiceIdentifiers.IOptions)),p.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],O),t.FunctionControlFlowTransformer=O},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importStar(r(18)),N=r(58),g=r(32),v=r(26),y=r(13),_=r(14),h=r(15),b=r(9),S=r(10),I=u=function(e){function t(e,r,n,i){var s;return(0,a.default)(this,t),(s=(0,c.default)(this,(0,d.default)(t).call(this,n,i))).deadCodeInjectionRootAstHostNodeSet=new o.default,s.collectedBlockStatements=[],s.collectedBlockStatementsTotalLength=0,s.deadCodeInjectionCustomNodeFactory=e,s.transformersRunner=r,s}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case y.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&b.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&b.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case y.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;m.traverse(e,{enter:function(e){if(b.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);u.isValidCollectedBlockStatementNode(t)&&(S.NodeUtils.parentizeNode(t,t),t=r.transformersRunner.transform(t,u.transformersToRenameBlockScopeIdentifiers,y.TransformationStage.Obfuscating),r.collectedBlockStatements.push(t))}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!u.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!b.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return b.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=h.NodeFactory.blockStatementNode([h.NodeFactory.functionDeclarationNode(u.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(N.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return b.NodeGuards.isBreakStatementNode(e)||b.NodeGuards.isContinueStatementNode(e)||b.NodeGuards.isAwaitExpressionNode(e)||b.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!b.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=S.NodeUtils.getScopeOfNode(e),r=b.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=h.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return m.traverse(a,{enter:function(e){if(b.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,m.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return m.traverse(e,{enter:function(e){if(b.NodeGuards.isBlockStatementNode(e)&&t++,t>u.maxNestedBlockStatementsCount||u.isProhibitedNodeInsideCollectedBlockStatement(e)||u.isScopeHoistingFunctionDeclaration(e))return r=!1,m.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return m.traverse(e,{enter:function(e){if(u.isScopeHoistingFunctionDeclaration(e))return t=!1,m.VisitorOption.Break}}),!!t&&S.NodeUtils.getBlockScopesOfNode(e)[0].type!==v.NodeType.Program}}]),(0,i.default)(t,e),t}(_.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),l.__param(1,f.inject(p.ServiceIdentifiers.ITransformersRunner)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(22),m=r(45),N=r(9),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!N.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!N.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(m.AbstractControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.CallExpressionControlFlowReplacer=g},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/has-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/define-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/object/get-own-property-names")},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/get-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/object/get-own-property-descriptor")},function(e,t){e.exports=require("@babel/runtime/core-js/object/define-property")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(22),N=r(13),g=r(14),v=r(9),y=r(10),_=d=function(e){function t(e,r,n,a){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,c.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,i.arrayUtils=r,i}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.arrayRange(r.length),o=this.arrayUtils.arrayShuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"blockStatementHasProhibitedStatements",value:function(e){return e.body.some(function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n})}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;v.NodeGuards.isBlockStatementNode(e)&&d.blockStatementHasProhibitedStatements(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),(0,a.default)(t,e),t}(g.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(22),m=r(59),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),(0,a.default)(t,e),t}(m.ExpressionWithOperatorControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(60),s=r(32),c=r(198),d=r(197),u=r(190),l=r(189),f=r(188),p=r(187),m=r(186);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=c.__importStar(r(18)),f=r(63),p=r(9),m=r(10),N=s=function(){function e(t){(0,a.default)(this,e),this.calleeDataExtractorFactory=t}return(0,i.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=s.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];l.traverse(a,{enter:function(r){if(p.NodeGuards.isCallExpressionNode(r))return a.parentNode!==m.NodeUtils.getBlockScopesOfNode(r)[0]?l.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},i=0;ir&&(n=Math.round(r+t*s.limitThreshold))>t&&(n=t),n}}]),e}();N.calleeDataExtractorsList=[f.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,f.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,f.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],N.limitThresholdActivationLength=25,N.limitThreshold=.002,N=s=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.Factory__ICalleeDataExtractor)),c.__metadata("design:paramtypes",[Function])],N),t.StackTraceAnalyzer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(35)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=l.__importStar(r(18)),m=r(47),N=r(9),g=r(10),v=u=function(e){function t(){return(0,a.default)(this,t),(0,c.default)(this,(0,d.default)(t).apply(this,arguments))}return(0,s.default)(t,[{key:"extract",value:function(e,t){if(!N.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeUtils.getBlockScopesOfNode(e[0])[0],r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(N.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!N.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return N.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(N.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return p.traverse(e,{enter:function(e){if(N.NodeGuards.isVariableDeclaratorNode(e)&&N.NodeGuards.isIdentifierNode(e.id)&&e.init&&N.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),p.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,a=!1,i=void 0;try{for(var s,c=(0,o.default)(e);!(n=(s=c.next()).done);n=!0){var d=s.value;if(u.isValidTargetPropertyNode(d,r)){if(N.NodeGuards.isObjectExpressionNode(d.value))return this.findCalleeBlockStatement(d.value.properties,t);if(N.NodeGuards.isFunctionExpressionNode(d.value))return d.value.body}}}catch(e){a=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw i}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=N.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=N.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),(0,i.default)(t,e),t}(m.AbstractCalleeDataExtractor);v=u=l.__decorate([f.injectable()],v),t.ObjectExpressionCalleeDataExtractor=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=d.__importStar(r(18)),f=r(47),p=r(9),m=r(10),N=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,i.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),(0,a.default)(t,e),t}(f.AbstractCalleeDataExtractor);N=d.__decorate([u.injectable()],N),t.FunctionExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=d.__importStar(r(18)),f=r(47),p=r(9),m=r(10),N=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,i.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),(0,a.default)(t,e),t}(f.AbstractCalleeDataExtractor);N=d.__decorate([u.injectable()],N),t.FunctionDeclarationCalleeDataExtractor=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(63),s=r(203),c=r(202),d=r(201),u=r(200);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);e.exports=n.JavaScriptObfuscator}]); +require("source-map-support").install(),module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=221)}([function(e,t){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},function(e,t){e.exports=require("inversify")},function(e,t){e.exports=require("@babel/runtime/helpers/classCallCheck")},function(e,t){e.exports=require("@babel/runtime/helpers/createClass")},function(e,t){e.exports=require("tslib")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Factory__ICalleeDataExtractor="Factory",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomNode="Factory",e.Factory__ICustomNodeGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscationResult="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__TControlFlowStorage="Factory",e.IArrayUtils="IArrayUtils",e.ICalleeDataExtractor="ICalleeDataExtractor",e.ICryptUtils="ICryptUtils",e.ICustomNode="ICustomNode",e.ICustomNodeGroup="ICustomNodeGroup",e.IControlFlowReplacer="IControlFlowReplacer",e.IEscapeSequenceEncoder="IEscapeSequenceEncoder",e.IIdentifierNamesGenerator="IIdentifierNamesGenerator",e.IIdentifierObfuscatingReplacer="IIdentifierObfuscatingReplacer",e.IJavaScriptObfuscator="IJavaScriptObfuscator",e.ILogger="ILogger",e.INodeGuard="INodeGuard",e.INodeTransformer="INodeTransformer",e.IObfuscationEventEmitter="IObfuscationEventEmitter",e.IObfuscationResult="IObfuscationResult",e.IOptions="IOptions",e.IOptionsNormalizer="IOptionsNormalizer",e.IObfuscatingReplacer="IObfuscatingReplacer",e.IRandomGenerator="IRandomGenerator",e.ISourceCode="ISourceCode",e.ISourceMapCorrector="ISourceMapCorrector",e.IStackTraceAnalyzer="IStackTraceAnalyzer",e.ITransformersRunner="ITransformersRunner",e.Newable__ICustomNode="Newable",e.Newable__TControlFlowStorage="Newable",e.TCustomNodeGroupStorage="TCustomNodeGroupStorage",e.TInputOptions="TInputOptions",e.TStringArrayStorage="TStringArrayStorage"}(t.ServiceIdentifiers||(t.ServiceIdentifiers={}))},function(e,t){e.exports=require("@babel/runtime/helpers/getPrototypeOf")},function(e,t){e.exports=require("@babel/runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("@babel/runtime/helpers/inherits")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(26),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"isArrayPatternNode",value:function(e){return e.type===i.NodeType.ArrayPattern}},{key:"isArrowFunctionExpressionNode",value:function(e){return e.type===i.NodeType.ArrowFunctionExpression}},{key:"isAssignmentExpressionNode",value:function(e){return e.type===i.NodeType.AssignmentExpression}},{key:"isAssignmentPatternNode",value:function(e){return e.type===i.NodeType.AssignmentPattern}},{key:"isAwaitExpressionNode",value:function(e){return e.type===i.NodeType.AwaitExpression}},{key:"isBlockStatementNode",value:function(e){return e.type===i.NodeType.BlockStatement}},{key:"isBreakStatementNode",value:function(e){return e.type===i.NodeType.BreakStatement}},{key:"isCallExpressionNode",value:function(e){return e.type===i.NodeType.CallExpression}},{key:"isCatchClauseNode",value:function(e){return e.type===i.NodeType.CatchClause}},{key:"isClassDeclarationNode",value:function(e){return e.type===i.NodeType.ClassDeclaration}},{key:"isContinueStatementNode",value:function(e){return e.type===i.NodeType.ContinueStatement}},{key:"isExportNamedDeclarationNode",value:function(e){return e.type===i.NodeType.ExportNamedDeclaration}},{key:"isExpressionStatementNode",value:function(e){return e.type===i.NodeType.ExpressionStatement}},{key:"isFunctionDeclarationNode",value:function(e){return e.type===i.NodeType.FunctionDeclaration}},{key:"isFunctionExpressionNode",value:function(e){return e.type===i.NodeType.FunctionExpression}},{key:"isIdentifierNode",value:function(e){return e.type===i.NodeType.Identifier}},{key:"isIfStatementNode",value:function(e){return e.type===i.NodeType.IfStatement}},{key:"isImportDeclarationNode",value:function(e){return e.type===i.NodeType.ImportDeclaration}},{key:"isImportDefaultSpecifierNode",value:function(e){return e.type===i.NodeType.ImportDefaultSpecifier}},{key:"isImportNamespaceSpecifierNode",value:function(e){return e.type===i.NodeType.ImportNamespaceSpecifier}},{key:"isImportSpecifierNode",value:function(e){return e.type===i.NodeType.ImportSpecifier}},{key:"isLabelIdentifierNode",value:function(t,r){var n=e.isLabeledStatementNode(r)&&r.label===t,o=e.isContinueStatementNode(r)&&r.label===t,a=e.isBreakStatementNode(r)&&r.label===t;return n||o||a}},{key:"isLabeledStatementNode",value:function(e){return e.type===i.NodeType.LabeledStatement}},{key:"isLiteralNode",value:function(e){return e.type===i.NodeType.Literal}},{key:"isMemberExpressionNode",value:function(e){return e.type===i.NodeType.MemberExpression}},{key:"isMethodDefinitionNode",value:function(e){return e.type===i.NodeType.MethodDefinition}},{key:"isNode",value:function(e){return e&&void 0!==!e.type}},{key:"isNodeHasBlockScope",value:function(t,r){return e.isProgramNode(t)||e.isBlockStatementNode(t)&&e.nodesWithBlockScope.includes(r.type)}},{key:"isNodeHasScope",value:function(t){return e.isProgramNode(t)||e.isBlockStatementNode(t)||e.isSwitchCaseNode(t)}},{key:"isNodeWithComments",value:function(e){return Boolean(e.leadingComments)||Boolean(e.trailingComments)}},{key:"isObjectPatternNode",value:function(e){return e.type===i.NodeType.ObjectPattern}},{key:"isObjectExpressionNode",value:function(e){return e.type===i.NodeType.ObjectExpression}},{key:"isProgramNode",value:function(e){return e.type===i.NodeType.Program}},{key:"isPropertyNode",value:function(e){return e.type===i.NodeType.Property}},{key:"isReplaceableIdentifierNode",value:function(t,r){if(!e.isIdentifierNode(t))return!1;var n=e.isPropertyNode(r)&&!r.computed&&r.key===t,o=e.isMemberExpressionNode(r)&&!r.computed&&r.property===t,a=e.isMethodDefinitionNode(r)&&!r.computed,i=e.isLabelIdentifierNode(t,r);return!(n||o||a||i)}},{key:"isRestElementNode",value:function(e){return e.type===i.NodeType.RestElement}},{key:"isReturnStatementNode",value:function(e){return e.type===i.NodeType.ReturnStatement}},{key:"isSuperNode",value:function(e){return e.type===i.NodeType.Super}},{key:"isSwitchCaseNode",value:function(e){return e.type===i.NodeType.SwitchCase}},{key:"isTaggedTemplateExpressionNode",value:function(e){return e.type===i.NodeType.TaggedTemplateExpression}},{key:"isTemplateLiteralNode",value:function(e){return e.type===i.NodeType.TemplateLiteral}},{key:"isUnaryExpressionNode",value:function(e){return e.type===i.NodeType.UnaryExpression}},{key:"isUseStrictOperator",value:function(e){return e.type===i.NodeType.ExpressionStatement&&"use strict"===e.directive}},{key:"isVariableDeclarationNode",value:function(e){return e.type===i.NodeType.VariableDeclaration}},{key:"isVariableDeclaratorNode",value:function(e){return e.type===i.NodeType.VariableDeclarator}},{key:"isWhileStatementNode",value:function(e){return e.type===i.NodeType.WhileStatement}}]),e}();s.nodesWithBlockScope=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition],t.NodeGuards=s},function(e,t,r){"use strict";var n=r(0),o=n(r(62)),a=n(r(36)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=c.__importStar(r(46)),u=c.__importStar(r(61)),l=c.__importStar(r(18)),f=r(9),p=r(19),m=function(){function e(){(0,i.default)(this,e)}return(0,s.default)(e,null,[{key:"addXVerbatimPropertyToLiteralNode",value:function(e){return f.NodeGuards.isLiteralNode(e)&&(e["x-verbatim-property"]={content:e.raw,precedence:d.Precedence.Primary}),e}},{key:"clone",value:function(t){return e.parentize(e.cloneRecursive(t))}},{key:"convertCodeToStructure",value:function(t){var r=u.parse(t,{sourceType:"script"});return l.replace(r,{enter:function(t,r){return e.parentizeNode(t,r),e.addXVerbatimPropertyToLiteralNode(t),p.NodeMetadata.set(t,{ignoredNode:!1}),t}}),r.body}},{key:"convertStructureToCode",value:function(e){return e.reduce(function(e,t){return e+d.generate(t,{sourceMapWithCode:!0}).code},"")}},{key:"getBlockScopesOfNode",value:function(t){return e.getBlockScopesOfNodeRecursive(t)}},{key:"getNextSiblingStatementNode",value:function(t){return e.getSiblingStatementNodeByOffset(t,1)}},{key:"getPreviousSiblingStatementNode",value:function(t){return e.getSiblingStatementNodeByOffset(t,-1)}},{key:"getScopeOfNode",value:function(t){var r=t.parentNode;if(!r)throw new ReferenceError("`parentNode` property of given node is `undefined`");return f.NodeGuards.isNodeHasScope(r)?r:e.getScopeOfNode(r)}},{key:"getUnaryExpressionArgumentNode",value:function(t){return f.NodeGuards.isUnaryExpressionNode(t.argument)?e.getUnaryExpressionArgumentNode(t.argument):t.argument}},{key:"parentize",value:function(t){return l.replace(t,{enter:e.parentizeNode}),t}},{key:"parentizeNode",value:function(e,t){return e.parentNode=t||e,e}},{key:"cloneRecursive",value:function(t){if(null===t)return t;var r={};return(0,a.default)(t).forEach(function(n){if("parentNode"!==n){var a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}},{key:"getBlockScopesOfNodeRecursive",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return f.NodeGuards.isBlockStatementNode(t)&&o===t&&r.push(t),(f.NodeGuards.isProgramNode(t)||n&&f.NodeGuards.isNodeHasBlockScope(t,o))&&r.push(t),t!==o?e.getBlockScopesOfNodeRecursive(o,r,++n):r}},{key:"getSiblingStatementNodeByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=f.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeUtils=m},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(196)),i=n(r(195)),s=n(r(194)),c=n(r(193)),d=n(r(192)),u=n(r(191)),l=n(r(31)),f=n(r(36));Object.defineProperty(t,"__esModule",{value:!0});var p={configurable:!0,enumerable:!0},m="_initialized",N="_initializablePropertiesSet",g="_wrappedMethodsSet",v="constructor";function y(e,t,r){(0,u.default)(e,r)||(0,d.default)(e,t,r)}t.initializable=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initialize",t=(0,f.default)(this)[0];return function(r,n){var u=r[e];if(!u||"function"!=typeof u)throw new Error("`".concat(e,"` method with initialization logic not ")+"found. `@".concat(t,"` decorator requires `").concat(e,"` method"));return y(m,!1,r),y(N,new l.default,r),y(g,new l.default,r),function(e,t){var r=(0,c.default)(e),n=[t,v];r.forEach(function(r){var c=(0,s.default)(N,e),d=(0,s.default)(g,e),u=n.includes(r)||c.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=(0,i.default)(e,r)||p,v=f.value;(0,a.default)(e,r,(0,o.default)({},f,{value:function(){if(!(0,s.default)(m,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return v.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var n=(0,i.default)(e,t)||p,s=n.value;(0,a.default)(e,t,(0,o.default)({},n,{value:function(){(0,d.default)(m,!0,this);var e=s.apply(this,arguments);return this[r],e}}))}(r,e,n),function(e,t){(0,s.default)(N,e).add(t);var r="_".concat(t),n=(0,i.default)(e,r)||p;return(0,a.default)(e,t,(0,o.default)({},n,{get:function(){if(void 0===this[r])throw new Error("Property `".concat(t,"` is not initialized! Initialize it first!"));return this[r]},set:function(e){this[r]=e}})),n}(r,n)}}},function(e,t){e.exports=require("@babel/runtime/core-js/object/assign")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Preparing="Preparing",e.DeadCodeInjection="DeadCodeInjection",e.ControlFlowFlattening="ControlFlowFlattening",e.Converting="Converting",e.Obfuscating="Obfuscating",e.Finalizing="Finalizing"}(t.TransformationStage||(t.TransformationStage={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=r(11),u=function(){function e(t,r){(0,o.default)(this,e),this.randomGenerator=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){this.nodeIdentifier=this.randomGenerator.getRandomInteger(0,1e4)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",Number)],u.prototype,"nodeIdentifier",void 0),i.__decorate([s.postConstruct(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],u.prototype,"initialize",null),u=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],u),t.AbstractNodeTransformer=u},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4).__importStar(r(46)),c=r(26),d=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"programNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.Program,body:e,sourceType:"script",metadata:{ignoredNode:!1}}}},{key:"arrayExpressionNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}},{key:"assignmentExpressionNode",value:function(e,t,r){return{type:c.NodeType.AssignmentExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"binaryExpressionNode",value:function(e,t,r){return{type:c.NodeType.BinaryExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"blockStatementNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:c.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}},{key:"breakStatement",value:function(e){var t={type:c.NodeType.BreakStatement,metadata:{ignoredNode:!1}};return e&&(t.label=e),t}},{key:"callExpressionNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:c.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}},{key:"continueStatement",value:function(e){var t={type:c.NodeType.ContinueStatement,metadata:{ignoredNode:!1}};return e&&(t.label=e),t}},{key:"expressionStatementNode",value:function(e){return{type:c.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}},{key:"functionDeclarationNode",value:function(t,r,n){return{type:c.NodeType.FunctionDeclaration,id:e.identifierNode(t),params:r,body:n,generator:!1,metadata:{ignoredNode:!1}}}},{key:"functionExpressionNode",value:function(e,t){return{type:c.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}},{key:"ifStatementNode",value:function(e,t,r){return(0,o.default)({type:c.NodeType.IfStatement,test:e,consequent:t},r&&{alternate:r},{metadata:{ignoredNode:!1}})}},{key:"identifierNode",value:function(e){return{type:c.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}},{key:"literalNode",value:function(e,t){return t=void 0!==t?t:"'".concat(e,"'"),{type:c.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:s.Precedence.Primary},metadata:{ignoredNode:!1}}}},{key:"logicalExpressionNode",value:function(e,t,r){return{type:c.NodeType.LogicalExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"memberExpressionNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:c.NodeType.MemberExpression,computed:r,object:e,property:t,metadata:{ignoredNode:!1}}}},{key:"methodDefinitionNode",value:function(e,t,r,n){return{type:c.NodeType.MethodDefinition,key:e,value:t,kind:r,computed:n,static:!1,metadata:{ignoredNode:!1}}}},{key:"objectExpressionNode",value:function(e){return{type:c.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}},{key:"propertyNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:c.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:r,metadata:{ignoredNode:!1}}}},{key:"returnStatementNode",value:function(e){return{type:c.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}},{key:"switchStatementNode",value:function(e,t){return{type:c.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}},{key:"switchCaseNode",value:function(e,t){return{type:c.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}},{key:"unaryExpressionNode",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:c.NodeType.UnaryExpression,operator:e,argument:t,prefix:r,metadata:{ignoredNode:!1}}}},{key:"updateExpressionNode",value:function(e,t){return{type:c.NodeType.UpdateExpression,operator:e,argument:t,prefix:!1,metadata:{ignoredNode:!1}}}},{key:"variableDeclarationNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"var";return{type:c.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}},{key:"variableDeclaratorNode",value:function(e,t){return{type:c.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}},{key:"whileStatementNode",value:function(e,t){return{type:c.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}]),e}();t.NodeFactory=d},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(5),u=r(172),l=r(171),f=i=function(){function e(t,r,n){(0,o.default)(this,e),this.cachedNode=null,this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(2,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Function,Object,Object])],f),t.AbstractCustomNode=f},function(e,t){e.exports=require("@babel/runtime/core-js/map")},function(e,t){e.exports=require("estraverse")},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"set",value:function(e,t){e.metadata=(0,o.default)(e.metadata||{},t)}},{key:"get",value:function(e,t){return void 0!==e.metadata?e.metadata[t]:void 0}},{key:"isIgnoredNode",value:function(t){return!0===e.get(t,"ignoredNode")}},{key:"isRenamedIdentifier",value:function(t){return!0===e.get(t,"renamedIdentifier")}},{key:"isReplacedLiteral",value:function(t){return!0===e.get(t,"replacedLiteral")}}]),e}();t.NodeMetadata=s},function(e,t){e.exports=require("string-template")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BaseIdentifierObfuscatingReplacer="BaseIdentifierObfuscatingReplacer"}(t.IdentifierObfuscatingReplacer||(t.IdentifierObfuscatingReplacer={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionFunctionNode="BinaryExpressionFunctionNode",e.BlockStatementControlFlowFlatteningNode="BlockStatementControlFlowFlatteningNode",e.CallExpressionControlFlowStorageCallNode="CallExpressionControlFlowStorageCallNode",e.CallExpressionFunctionNode="CallExpressionFunctionNode",e.ControlFlowStorageNode="ControlFlowStorageNode",e.ExpressionWithOperatorControlFlowStorageCallNode="ExpressionWithOperatorControlFlowStorageCallNode",e.LogicalExpressionFunctionNode="LogicalExpressionFunctionNode",e.StringLiteralControlFlowStorageCallNode="StringLiteralControlFlowStorageCallNode",e.StringLiteralNode="StringLiteralNode"}(t.ControlFlowCustomNode||(t.ControlFlowCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Browser="browser",e.BrowserNoEval="browser-no-eval",e.Node="node"}(t.ObfuscationTarget||(t.ObfuscationTarget={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"appendNode",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(e.getScopeNodeStatements(t)).concat((0,o.default)(r)))}},{key:"appendNodeToOptimalBlockScope",value:function(t,r,n){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;o=t.length?e.getOptimalBlockScope(t,a):r,e.prependNode(o,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertNodeAfter",value:function(t,r,n){var o=e.getScopeNodeStatements(t).indexOf(n);e.insertNodeAtIndex(t,r,o+1)}},{key:"insertNodeAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(e.getScopeNodeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeNodeStatements(t).slice(n))))}},{key:"prependNode",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeNodeStatements(t,(0,o.default)(r).concat((0,o.default)(e.getScopeNodeStatements(t))))}},{key:"getScopeNodeStatements",value:function(e){return s.NodeGuards.isSwitchCaseNode(e)?e.consequent:e.body}},{key:"parentizeScopeStatementsBeforeAppend",value:function(e,t){return t.forEach(function(t){t.parentNode=e}),t}},{key:"setScopeNodeStatements",value:function(e,t){s.NodeGuards.isSwitchCaseNode(e)?e.consequent=t:e.body=t}}]),e}();t.NodeAppender=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassDeclaration="ClassDeclaration",e.ContinueStatement="ContinueStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExpressionStatement="ExpressionStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MethodDefinition="MethodDefinition",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateLiteral="TemplateLiteral",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement"}(t.NodeType||(t.NodeType={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(205)),a=n(r(17)),i=n(r(2)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(1),d=r(5),u=r(204),l=r(199),f=r(185),p=r(179),m=r(132),N=r(131),g=r(128),v=r(127),y=r(114),_=r(99),h=r(89),b=r(84),S=r(78),I=r(65),C=r(75),F=r(73),O=r(72),j=r(71),T=r(70),k=function(){function e(){(0,i.default)(this,e),this.container=new c.Container}return(0,s.default)(e,[{key:"get",value:function(e){return this.container.get(e)}},{key:"getNamed",value:function(e,t){return this.container.getNamed(e,t)}},{key:"load",value:function(e,t){this.container.bind(d.ServiceIdentifiers.ISourceCode).toDynamicValue(function(){return new O.SourceCode(e)}).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.TInputOptions).toDynamicValue(function(){return t}).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.ILogger).to(I.Logger).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IJavaScriptObfuscator).to(S.JavaScriptObfuscator).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.ITransformersRunner).to(T.TransformersRunner).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IObfuscationResult).to(F.ObfuscationResult).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.Factory__IObfuscationResult).toFactory(function(e){return function(t,r){var n=e.container.get(d.ServiceIdentifiers.IObfuscationResult);return n.initialize(t,r),n}}),this.container.bind(d.ServiceIdentifiers.ISourceMapCorrector).to(j.SourceMapCorrector).inSingletonScope(),this.container.bind(d.ServiceIdentifiers.IObfuscationEventEmitter).to(C.ObfuscationEventEmitter).inSingletonScope(),this.container.load(u.analyzersModule),this.container.load(l.controlFlowTransformersModule),this.container.load(f.convertingTransformersModule),this.container.load(p.customNodesModule),this.container.load(m.finalizingTransformersModule),this.container.load(N.generatorsModule),this.container.load(g.nodeTransformersModule),this.container.load(v.obfuscatingTransformersModule),this.container.load(y.optionsModule),this.container.load(_.preparingTransformersModule),this.container.load(h.storagesModule),this.container.load(b.utilsModule)}},{key:"unload",value:function(){this.container.unbindAll()}}],[{key:"getFactory",value:function(e){return function(t){return function(r){return t.container.getNamed(e,r)}}}},{key:"getCacheFactory",value:function(e){return function(t){var r=new a.default;return function(n){if(r.has(n))return r.get(n);var o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}},{key:"isCeilNumber",value:function(e){return e%1==0}},{key:"stringRotate",value:function(e,t){if(!e)throw new ReferenceError("Cannot rotate empty string.");for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=new s.InversifyContainerFacade;r.load(e,t);var n=r.get(i.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.17.0-dev.1",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base64="base64",e.Rc4="rc4"}(t.StringArrayEncoding||(t.StringArrayEncoding={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Inline="inline",e.Separate="separate"}(t.SourceMapMode||(t.SourceMapMode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HexadecimalIdentifierNamesGenerator="hexadecimal",e.MangledIdentifierNamesGenerator="mangled"}(t.IdentifierNamesGenerator||(t.IdentifierNamesGenerator={}))},function(e,t,r){"use strict";var n=r(0)(r(2));Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),a=r(1),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object])],s),t.AbstractObfuscatingReplacer=s},function(e,t){e.exports=require("@babel/runtime/helpers/get")},function(e,t,r){"use strict";var n=r(0)(r(55));Object.defineProperty(t,"__esModule",{value:!0});var o=r(40),a=r(23),i=r(39);t.NO_ADDITIONAL_NODES_PRESET=(0,n.default)({compact:!0,controlFlowFlattening:!1,controlFlowFlatteningThreshold:0,deadCodeInjection:!1,deadCodeInjectionThreshold:0,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",log:!1,renameGlobals:!1,reservedNames:[],rotateStringArray:!1,seed:0,selfDefending:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:a.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableNoEvalTemplate=function(){return"\n var that = (typeof window !== 'undefined'\n ? window\n : (typeof process === 'object' &&\n typeof require === 'function' &&\n typeof global === 'object')\n ? global\n : this);\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=s=function(){function e(t,r,n){(0,a.default)(this,e),this.replacerDataByControlFlowStorageId=new o.default,this.controlFlowCustomNodeFactory=t,this.randomGenerator=r,this.options=n}return(0,i.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),i=s.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=i.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t,r){"use strict";var n=r(0),o=n(r(33)),a=n(r(30)),i=n(r(35)),s=n(r(17)),c=n(r(2)),d=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=function(){function e(t,r){(0,c.default)(this,e),this.randomGenerator=t,this.options=r}return(0,d.default)(e,[{key:"initialize",value:function(){this.storage=new s.default,this.storageId=this.randomGenerator.getRandomString(6)}},{key:"get",value:function(e){var t=this.storage.get(e);if(!t)throw new Error("No value found in map storage with key `".concat(e,"`"));return t}},{key:"getKeyOf",value:function(e){var t=!0,r=!1,n=void 0;try{for(var o,s=(0,i.default)(this.storage);!(t=(o=s.next()).done);t=!0){var c=(0,a.default)(o.value,2),d=c[0];if(e===c[1])return d}}catch(e){r=!0,n=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw n}}return null}},{key:"getLength",value:function(){return this.storage.size}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"has",value:function(e){return this.storage.has(e)}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=new s.default((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();u.__decorate([p.initializable(),u.__metadata("design:type",String)],m.prototype,"storageId",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",s.default)],m.prototype,"storage",void 0),u.__decorate([l.postConstruct(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[]),u.__metadata("design:returntype",void 0)],m.prototype,"initialize",null),m=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],m),t.MapStorage=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlackListNodeGuard="BlackListNodeGuard",e.ConditionalCommentNodeGuard="ConditionalCommentNodeGuard"}(t.ObfuscatingGuard||(t.ObfuscatingGuard={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BooleanLiteralObfuscatingReplacer="BooleanLiteralObfuscatingReplacer",e.NumberLiteralObfuscatingReplacer="NumberLiteralObfuscatingReplacer",e.StringLiteralObfuscatingReplacer="StringLiteralObfuscatingReplacer"}(t.LiteralObfuscatingReplacer||(t.LiteralObfuscatingReplacer={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=function(){function e(t,r){(0,o.default)(this,e),this.randomGenerator=t,this.options=r}return(0,a.default)(e,[{key:"isValidIdentifierName",value:function(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),e}();d=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],d),t.AbstractIdentifierNamesGenerator=d},function(e,t){e.exports=require("@babel/runtime/core-js/object/freeze")},function(e,t){e.exports=require("@babel/runtime/core-js/array/from")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ConsoleOutputCustomNodeGroup="ConsoleOutputCustomNodeGroup",e.DebugProtectionCustomNodeGroup="DebugProtectionCustomNodeGroup",e.DomainLockCustomNodeGroup="DomainLockCustomNodeGroup",e.SelfDefendingCustomNodeGroup="SelfDefendingCustomNodeGroup",e.StringArrayCustomNodeGroup="StringArrayCustomNodeGroup"}(t.CustomNodeGroup||(t.CustomNodeGroup={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(22),p=r(45),m=r(9),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(f.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!m.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(p.AbstractControlFlowReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionControlFlowReplacer="BinaryExpressionControlFlowReplacer",e.CallExpressionControlFlowReplacer="CallExpressionControlFlowReplacer",e.LogicalExpressionControlFlowReplacer="LogicalExpressionControlFlowReplacer",e.StringLiteralControlFlowReplacer="StringLiteralControlFlowReplacer"}(t.ControlFlowReplacer||(t.ControlFlowReplacer={}))},function(e,t){e.exports=require("espree")},function(e,t){e.exports=require("@babel/runtime/helpers/typeof")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.FunctionDeclarationCalleeDataExtractor="FunctionDeclarationCalleeDataExtractor",e.FunctionExpressionCalleeDataExtractor="FunctionExpressionCalleeDataExtractor",e.ObjectExpressionCalleeDataExtractor="ObjectExpressionCalleeDataExtractor"}(t.CalleeDataExtractor||(t.CalleeDataExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(5),u=s.__importDefault(r(49)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t){e.exports=require("reflect-metadata")},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Enter="enter",e.Leave="leave"}(t.VisitorDirection||(t.VisitorDirection={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=i.__importStar(r(18)),u=r(69),l=r(9),f=r(19),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();u.colorError=d.default.red,u.nearestSymbolsCount=15,u.sourceTypes=["script","module"],t.EspreeFacade=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.TransformationStage="Transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=c.__importStar(r(46)),f=r(77),p=r(32),m=r(13),N=r(76),g=r(9),v=s=function(){function e(t,r,n,o,i){(0,a.default)(this,e),this.transformersRunner=t,this.sourceMapCorrector=r,this.randomGenerator=n,this.logger=o,this.options=i}return(0,i.default)(e,[{key:"obfuscate",value:function(e){var t=Date.now();this.logger.info(f.LoggingMessage.Version,"0.16.0"),this.logger.info(f.LoggingMessage.ObfuscationStarted),this.logger.info(f.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getSeed());var r=this.parseCode(e),n=this.transformAstTree(r),o=this.generateCode(e,n),a=(Date.now()-t)/1e3;return this.logger.success(f.LoggingMessage.ObfuscationCompleted,a),this.getObfuscationResult(o)}},{key:"parseCode",value:function(e){return N.EspreeFacade.parse(e,s.espreeParseOptions)}},{key:"transformAstTree",value:function(e){return!g.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runTransformationStage(e,m.TransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runTransformationStage(e,m.TransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runTransformationStage(e,m.TransformationStage.ControlFlowFlattening)),e=this.runTransformationStage(e,m.TransformationStage.Converting),e=this.runTransformationStage(e,m.TransformationStage.Obfuscating),e=this.runTransformationStage(e,m.TransformationStage.Finalizing)):(this.logger.warn(f.LoggingMessage.EmptySourceCode),e)}},{key:"generateCode",value:function(e,t){var r=(0,o.default)({},s.escodegenParams);this.options.sourceMap&&(r.sourceMap="sourceMap",r.sourceContent=e);var n=l.generate(t,(0,o.default)({},r,{format:{compact:this.options.compact}}));return n.map=n.map?n.map.toString():"",n}},{key:"getObfuscationResult",value:function(e){return this.sourceMapCorrector.correct(e.code,e.map)}},{key:"runTransformationStage",value:function(e,t){return this.logger.info(f.LoggingMessage.TransformationStage,t),this.transformersRunner.transform(e,s.transformersList,t)}}]),e}();v.espreeParseOptions={attachComment:!0,comment:!0,ecmaFeatures:{experimentalObjectRestSpread:!0},ecmaVersion:9,loc:!0,range:!0},v.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},v.transformersList=[p.NodeTransformer.BlockStatementControlFlowTransformer,p.NodeTransformer.ClassDeclarationTransformer,p.NodeTransformer.CommentsTransformer,p.NodeTransformer.CustomNodesTransformer,p.NodeTransformer.DeadCodeInjectionTransformer,p.NodeTransformer.EvalCallExpressionTransformer,p.NodeTransformer.FunctionControlFlowTransformer,p.NodeTransformer.CatchClauseTransformer,p.NodeTransformer.FunctionDeclarationTransformer,p.NodeTransformer.FunctionTransformer,p.NodeTransformer.ImportDeclarationTransformer,p.NodeTransformer.LabeledStatementTransformer,p.NodeTransformer.LiteralTransformer,p.NodeTransformer.MemberExpressionTransformer,p.NodeTransformer.MetadataTransformer,p.NodeTransformer.MethodDefinitionTransformer,p.NodeTransformer.ObfuscatingGuardsTransformer,p.NodeTransformer.ObjectExpressionKeysTransformer,p.NodeTransformer.ObjectExpressionTransformer,p.NodeTransformer.ParentificationTransformer,p.NodeTransformer.TemplateLiteralTransformer,p.NodeTransformer.VariableDeclarationTransformer],v=s=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.ITransformersRunner)),c.__param(1,d.inject(u.ServiceIdentifiers.ISourceMapCorrector)),c.__param(2,d.inject(u.ServiceIdentifiers.IRandomGenerator)),c.__param(3,d.inject(u.ServiceIdentifiers.ILogger)),c.__param(4,d.inject(u.ServiceIdentifiers.IOptions)),c.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],v),t.JavaScriptObfuscator=v},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(1),d=function(){function e(){(0,a.default)(this,e),this.stringsCache=new o.default}return(0,i.default)(e,[{key:"encode",value:function(e,t){var r="".concat(e,"-").concat(String(t));if(this.stringsCache.has(r))return this.stringsCache.get(r);var n,o,a=new RegExp("[\\s\\S]","g"),i=new RegExp("['\"\\\\\\s]"),s=new RegExp("[\\x00-\\x7F]"),c=e.replace(a,function(e){return t||i.exec(e)?(s.exec(e)?(n="\\x",o="00"):(n="\\u",o="0000"),"".concat(n).concat((o+e.charCodeAt(0).toString(16)).slice(-o.length))):e});return this.stringsCache.set(r,c),c}}]),e}();d=s.__decorate([c.injectable()],d),t.EscapeSequenceEncoder=d},function(e,t){e.exports=require("chance")},function(e,t){e.exports=require("md5")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(1),c=r(5),d=r(50),u=r(28),l=function(){function e(t){(0,o.default)(this,e),this.randomGenerator=t}return(0,a.default)(e,[{key:"btoa",value:function(e){var t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt("".concat(u.Utils.hexadecimalPrefix).concat(t)))});for(var r,n,o=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|o)||(a="=",o%1);t+=a.charAt(63&r>>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(85),N=u=function(e){function t(e,r,n,a){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,c.default)(t).call(this,n,a))).identifierNamesGenerator=e(a),i.arrayUtils=r,i}return(0,i.default)(t,[{key:"initialize",value:function(){(0,d.default)((0,c.default)(t.prototype),"initialize",this).call(this);var e=this.identifierNamesGenerator.generate().slice(0,u.stringArrayNameLength),r=this.identifierNamesGenerator.generate().slice(0,u.stringArrayNameLength),n="".concat(this.options.identifiersPrefix).concat(e),o="".concat(this.options.identifiersPrefix).concat(r);this.storageId="".concat(n,"|").concat(o)}},{key:"rotateArray",value:function(e){this.storage=this.arrayUtils.arrayRotate(this.storage,e)}},{key:"toString",value:function(){return this.storage.map(function(e){return"'".concat(e,"'")}).toString()}}]),(0,a.default)(t,e),t}(m.ArrayStorage);N.stringArrayNameLength=7,l.__decorate([f.postConstruct(),l.__metadata("design:type",Function),l.__metadata("design:paramtypes",[]),l.__metadata("design:returntype",void 0)],N.prototype,"initialize",null),N=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IArrayUtils)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object,Object])],N),t.StringArrayStorage=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(57),N=r(51),g=u=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).customNodeGroupFactory=e,a}return(0,i.default)(t,[{key:"initialize",value:function(){var e=this;(0,d.default)((0,c.default)(t.prototype),"initialize",this).call(this),u.customNodeGroupsList.forEach(function(t){var r=e.customNodeGroupFactory(t);r&&e.storage.set(t,r)})}}]),(0,a.default)(t,e),t}(N.MapStorage);g.customNodeGroupsList=[m.CustomNodeGroup.ConsoleOutputCustomNodeGroup,m.CustomNodeGroup.DebugProtectionCustomNodeGroup,m.CustomNodeGroup.DomainLockCustomNodeGroup,m.CustomNodeGroup.SelfDefendingCustomNodeGroup,m.CustomNodeGroup.StringArrayCustomNodeGroup],l.__decorate([f.postConstruct(),l.__metadata("design:type",Function),l.__metadata("design:paramtypes",[]),l.__metadata("design:returntype",void 0)],g.prototype,"initialize",null),g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__ICustomNodeGroup)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],g),t.CustomNodeGroupStorage=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(7)),s=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(1),u=r(5),l=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,a.default)(t,e),t}(r(51).MapStorage);l=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.IRandomGenerator)),c.__param(1,d.inject(u.ServiceIdentifiers.IOptions)),c.__metadata("design:paramtypes",[Object,Object])],l),t.ControlFlowStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),a=r(88),i=r(87),s=r(86);t.storagesModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.TCustomNodeGroupStorage).to(i.CustomNodeGroupStorage).inSingletonScope(),e(o.ServiceIdentifiers.TStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(o.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(a.ControlFlowStorage),e(o.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(function(e){return function(){var t=new(e.container.get(o.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(o.ServiceIdentifiers.IRandomGenerator),e.container.get(o.ServiceIdentifiers.IOptions));return t.initialize(),t}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(10),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return m.NodeUtils.parentizeNode(e,t)}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.ParentificationTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(52),m=r(13),N=r(14),g=r(19),v=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).obfuscatingGuards=d.obfuscatingGuardsList.map(e),a}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.obfuscatingGuards.every(function(t){return t.check(e)});return g.NodeMetadata.set(e,{ignoredNode:!r}),e}}]),(0,a.default)(t,e),t}(N.AbstractNodeTransformer);v.obfuscatingGuardsList=[p.ObfuscatingGuard.BlackListNodeGuard,p.ObfuscatingGuard.ConditionalCommentNodeGuard],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__INodeGuard)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.ObfuscatingGuardsTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(9),N=r(19),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Preparing:return{enter:function(e,r){return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeMetadata.set(e,{ignoredNode:!1}),m.NodeGuards.isIdentifierNode(e)&&N.NodeMetadata.set(e,{renamedIdentifier:!1}),m.NodeGuards.isLiteralNode(e)&&N.NodeMetadata.set(e,{replacedLiteral:!1}),e}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.MetadataTransformer=g},function(e,t){e.exports=require("js-string-escape")},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importDefault(r(93)),N=r(13),g=r(14),v=r(15),y=r(9),_=r(10),h=u=function(e){function t(e,r){var n;return(0,a.default)(this,t),(n=(0,c.default)(this,(0,d.default)(t).call(this,e,r))).evalRootAstHostNodeSet=new o.default,n}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Preparing:return{enter:function(e,r){if(r&&y.NodeGuards.isCallExpressionNode(e)&&y.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return t.transformNode(e,r)}};case N.TransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:function(e,r){if(r&&t.isEvalRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"transformNode",value:function(e,t){var r=e.arguments[0];if(!r)return e;var n,o=u.extractEvalStringFromCallExpressionArgument(r);if(!o)return e;try{n=_.NodeUtils.convertCodeToStructure(o)}catch(t){return e}var a=v.NodeFactory.functionExpressionNode([],v.NodeFactory.blockStatementNode(n));return this.evalRootAstHostNodeSet.add(a),a}},{key:"restoreNode",value:function(e,t){var r=e.body.body,n=_.NodeUtils.convertStructureToCode(r);return v.NodeFactory.callExpressionNode(v.NodeFactory.identifierNode("eval"),[v.NodeFactory.literalNode(m.default(n))])}},{key:"isEvalRootAstHostNode",value:function(e){return y.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}}],[{key:"extractEvalStringFromCallExpressionArgument",value:function(e){return y.NodeGuards.isLiteralNode(e)?u.extractEvalStringFromLiteralNode(e):y.NodeGuards.isTemplateLiteralNode(e)?u.extractEvalStringFromTemplateLiteralNode(e):null}},{key:"extractEvalStringFromLiteralNode",value:function(e){return"string"==typeof e.value?e.value:null}},{key:"extractEvalStringFromTemplateLiteralNode",value:function(e){var t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}}]),(0,i.default)(t,e),t}(g.AbstractNodeTransformer);h=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],h),t.EvalCallExpressionTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(24),p=r(13),m=r(14),N=r(9),g=function(e){function t(e,r,n,a,i){var d;return(0,o.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,a,i))).stackTraceData=[],d.stackTraceAnalyzer=e,d.obfuscationEventEmitter=r,d.customNodeGroupStorage=n,d}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Preparing:return{leave:function(e,r){if(N.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),t.appendCustomNodesBeforeObfuscation(e,r),t.transformNode(e,r)}};case p.TransformationStage.Finalizing:return{leave:function(e,r){N.NodeGuards.isProgramNode(e)&&t.appendCustomNodesAfterObfuscation(e,r)}};default:return null}}},{key:"analyzeNode",value:function(e,t){this.stackTraceData=this.stackTraceAnalyzer.analyze(e)}},{key:"transformNode",value:function(e,t){return e}},{key:"appendCustomNodesBeforeObfuscation",value:function(e,t){var r=this;this.customNodeGroupStorage.getStorage().forEach(function(e){e.initialize(),r.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendCustomNodes.bind(e))}),this.obfuscationEventEmitter.emit(f.ObfuscationEvent.BeforeObfuscation,e,this.stackTraceData)}},{key:"appendCustomNodesAfterObfuscation",value:function(e,t){this.obfuscationEventEmitter.emit(f.ObfuscationEvent.AfterObfuscation,e,this.stackTraceData)}}]),(0,a.default)(t,e),t}(m.AbstractNodeTransformer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IStackTraceAnalyzer)),d.__param(1,u.inject(l.ServiceIdentifiers.IObfuscationEventEmitter)),d.__param(2,u.inject(l.ServiceIdentifiers.TCustomNodeGroupStorage)),d.__param(3,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(4,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],g),t.CustomNodesTransformer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(1),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.obfuscationAllowedForCurrentNode=!0,this.obfuscationAllowedForNextNode=null}return(0,a.default)(e,[{key:"check",value:function(e){if(this.obfuscationAllowedForNextNode&&(this.obfuscationAllowedForCurrentNode=this.obfuscationAllowedForNextNode,this.obfuscationAllowedForNextNode=null),!d.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowedForCurrentNode;var t=e.leadingComments,r=e.trailingComments;return t&&(this.obfuscationAllowedForCurrentNode=this.checkComments(t)),r&&(this.obfuscationAllowedForNextNode=this.checkComments(r)),this.obfuscationAllowedForCurrentNode}},{key:"checkComments",value:function(e){for(var t=e.length,r=this.obfuscationAllowedForCurrentNode,n=0;n=u.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 r=y.Utils.decToHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case m.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return v.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,d=s.index;c||this.stringArrayStorage.set(a,o);var l=[u.getHexadecimalLiteralNode(d)];n&&l.push(u.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=v.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),v.NodeFactory.callExpressionNode(f,l)}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),(0,i.default)(t,e),t}(N.AbstractObfuscatingReplacer);_.minimumLengthForStringArray=3,_.rc4KeyLength=4,_.rc4KeysCount=50,_=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.TStringArrayStorage)),l.__param(1,f.inject(p.ServiceIdentifiers.IEscapeSequenceEncoder)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.ICryptUtils)),l.__param(4,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],_),t.StringLiteralObfuscatingReplacer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(41),m=r(15),N=r(28),g=function(e){function t(e){var r;return(0,a.default)(this,t),(r=(0,c.default)(this,(0,d.default)(t).call(this,e))).numberLiteralCache=new o.default,r}return(0,s.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=N.Utils.isCeilNumber(e)?"".concat(N.Utils.hexadecimalPrefix).concat(N.Utils.decToHex(e)):String(e),this.numberLiteralCache.set(e,t)),m.NodeFactory.literalNode(e,t)}}]),(0,i.default)(t,e),t}(p.AbstractObfuscatingReplacer);g=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.NumberLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(62)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(53),m=r(13),N=r(14),g=r(9),v=r(19),y=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&g.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;switch((0,o.default)(e.value)){case"boolean":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);case"number":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);case"string":return this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);default:return e}}},{key:"isProhibitedNode",value:function(e,t){return!(!g.NodeGuards.isPropertyNode(t)||t.key!==e)||!!g.NodeGuards.isImportDeclarationNode(t)}}]),(0,i.default)(t,e),t}(N.AbstractNodeTransformer);y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importStar(r(18)),p=r(21),m=r(13),N=r(14),g=r(9),v=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&g.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++;return this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&g.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),(0,a.default)(t,e),t}(N.AbstractNodeTransformer);v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LabeledStatementTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importStar(r(18)),N=r(21),g=r(13),v=r(14),y=r(9),_=r(19),h=r(10),b=u=function(e){function t(e,r,n){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).replaceableIdentifiers=new o.default,i.identifierObfuscatingReplacer=e(N.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&y.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++,n=h.NodeUtils.getBlockScopesOfNode(e)[0];return this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(n,r):this.replaceScopeIdentifiers(n,r),e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){u.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this;this.replaceableIdentifiers.get(e).forEach(function(e){var n=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=n.name,_.NodeMetadata.set(e,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e,t){var r=this,n=[];m.replace(e,{enter:function(e,o){if(o&&y.NodeGuards.isReplaceableIdentifierNode(e,o)&&!_.NodeMetadata.isRenamedIdentifier(e)){var a=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a?(e.name=a,_.NodeMetadata.set(e,{renamedIdentifier:!0})):n.push(e)}}}),this.replaceableIdentifiers.set(e,n)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return y.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),(0,i.default)(t,e),t}(v.AbstractNodeTransformer);b=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],b),t.ImportDeclarationTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(21),N=r(13),g=r(14),v=r(9),y=r(19),_=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&(v.NodeGuards.isFunctionDeclarationNode(e)||v.NodeGuards.isFunctionExpressionNode(e)||v.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++;return this.storeFunctionParams(e,r),this.replaceFunctionParams(e,r),e}},{key:"storeFunctionParams",value:function(e,t){var r=this;e.params.forEach(function(e){p.traverse(e,{enter:function(n){return v.NodeGuards.isPropertyNode(e)?p.VisitorOption.Skip:v.NodeGuards.isAssignmentPatternNode(n)&&v.NodeGuards.isIdentifierNode(n.left)?(r.identifierObfuscatingReplacer.storeLocalName(n.left.name,t),p.VisitorOption.Skip):void(v.NodeGuards.isIdentifierNode(n)&&r.identifierObfuscatingReplacer.storeLocalName(n.name,t))}})})}},{key:"addIdentifiersToIgnoredIdentifierNamesSet",value:function(e,t){e.forEach(function(e){e.key&&v.NodeGuards.isIdentifierNode(e.key)&&t.add(e.key.name)})}},{key:"replaceFunctionParams",value:function(e,t){var r=this,n=new o.default,a={enter:function(e,o){if(v.NodeGuards.isObjectPatternNode(e)&&r.addIdentifiersToIgnoredIdentifierNamesSet(e.properties,n),o&&v.NodeGuards.isReplaceableIdentifierNode(e,o)&&!n.has(e.name)){var a=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==a&&(e.name=a,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}};e.params.forEach(function(e){return p.replace(e,a)}),p.replace(e.body,a)}}]),(0,i.default)(t,e),t}(g.AbstractNodeTransformer);_=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.FunctionTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(21),N=r(26),g=r(13),v=r(14),y=r(9),_=r(19),h=r(10),b=function(e){function t(e,r,n){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n))).replaceableIdentifiers=new o.default,i.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&y.NodeGuards.isFunctionDeclarationNode(e)&&!y.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this.nodeIdentifier++,n=h.NodeUtils.getBlockScopesOfNode(e)[0],o=n.type===N.NodeType.Program;return!this.options.renameGlobals&&o?e:(this.storeFunctionName(e,o,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n,r):this.replaceScopeIdentifiers(n,r),e)}},{key:"storeFunctionName",value:function(e,t,r){t?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,r):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,r)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this.replaceableIdentifiers.get(t);if(n){var o=n.get(e.id.name);if(o)for(var a=o.length,i=0;i=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),(0,a.default)(t,e),t}(m.AbstractIdentifierNamesGenerator);N.initMangledNameCharacter="9",N.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),N.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],N=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],N),t.MangledIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=r(54),N=r(28),g=u=function(e){function t(e,r){var n;return(0,a.default)(this,t),(n=(0,c.default)(this,(0,d.default)(t).call(this,e,r))).randomVariableNameSet=new o.default,n}return(0,s.default)(t,[{key:"generate",value:function(){var e=this.randomGenerator.getRandomInteger(1e4,99999999),t=N.Utils.decToHex(e).substr(0,u.baseIdentifierNameLength),r="_".concat(N.Utils.hexadecimalPrefix).concat(t);return this.randomVariableNameSet.has(r)?this.generate():(this.randomVariableNameSet.add(r),r)}},{key:"generateWithPrefix",value:function(){var e=this.generate();return"".concat(this.options.identifiersPrefix).concat(e).replace("__","_")}}]),(0,i.default)(t,e),t}(m.AbstractIdentifierNamesGenerator);g.baseIdentifierNameLength=6,g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.HexadecimalIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),a=r(40),i=r(130),s=r(129);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"literalValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return N.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"controlFlowStorageName",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.StringLiteralControlFlowStorageCallNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.False="![]",e.True="!![]",e.a='(false+"")[1]',e.b='([]["entries"]()+"")[2]',e.c='([]["fill"]+"")[3]',e.d='(undefined+"")[2]',e.e='(true+"")[3]',e.f='(false+"")[0]',e.g="(false+[0]+String)[20]",e.h='(+(101))["toString"](21)[1]',e.i="([false]+undefined)[10]",e.j='([]["entries"]()+"")[3]',e.k='(+(20))["toString"](21)',e.l='(false+"")[2]',e.m='(Number+"")[11]',e.n='(undefined+"")[1]',e.o='(true+[]["fill"])[10]',e.p='(+(211))["toString"](31)[1]',e.q='(+(212))["toString"](31)[1]',e.r='(true+"")[1]',e.s='(false+"")[3]',e.t='(true+"")[0]',e.u='(undefined+"")[0]',e.v='(+(31))["toString"](32)',e.w='(+(32))["toString"](33)',e.x='(+(101))["toString"](34)[1]',e.y="(NaN+[Infinity])[10]",e.z='(+(35))["toString"](36)',e.A="(+[]+Array)[10]",e.B="(+[]+Boolean)[10]",e.C='Function("return escape")()(("")["italics"]())[2]',e.D='Function("return escape")()([]["fill"])["slice"]("-1")',e.E='(RegExp+"")[12]',e.F="(+[]+Function)[10]",e.G='(false+Function("return Date")()())[30]',e.H="'H'",e.I='(Infinity+"")[0]',e.J="'J'",e.K="'K'",e.L="'L'",e.M='(true+Function("return Date")()())[30]',e.N='(NaN+"")[0]',e.O='(NaN+Function("return{}")())[11]',e.P="'P'",e.Q="'Q'",e.R="(+[]+RegExp)[10]",e.S="(+[]+String)[10]",e.T='(NaN+Function("return Date")()())[30]',e.U='(NaN+Function("return{}")()["toString"]["call"]())[11]',e.V="'V'",e.W="'W'",e.X="'X'",e.Y="'Y'",e.Z="'Z'"}(t.JSFuck||(t.JSFuck={}))},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),N=r(43),g=r(137),v=r(136),y=r(16),_=r(37),h=r(10),b=r(28),S=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?p.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),_.JavaScriptObfuscator.obfuscate(p.default(v.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:b.Utils.decToHex(this.stringArrayRotateValue),whileFunctionName:t}),(0,o.default)({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",String)],S.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],S.prototype,"stringArrayRotateValue",void 0),S=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],S),t.StringArrayRotateFunctionNode=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6)),d=n(r(42));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),N=r(139),g=r(16),v=r(10),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,d.default)((0,c.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(N.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),(0,a.default)(t,e),t}(g.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = 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(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(23),N=r(38),g=r(11),v=r(43),y=r(146),_=r(44),h=r(145),b=r(144),S=r(143),I=r(142),C=r(141),F=r(16),O=r(37),j=r(10),T=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return j.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return O.JavaScriptObfuscator.obfuscate(p.default(I.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),(0,o.default)({},v.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():_.GlobalVariableNoEvalTemplate(),t=p.default(y.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=p.default(b.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case N.StringArrayEncoding.Rc4:r=p.default(C.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:h.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case N.StringArrayEncoding.Base64:r=p.default(S.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),(0,i.default)(t,e),t}(F.AbstractCustomNode);u.__decorate([g.initializable(),u.__metadata("design:type",String)],T.prototype,"stringArrayName",void 0),u.__decorate([g.initializable(),u.__metadata("design:type",String)],T.prototype,"stringArrayCallsWrapperName",void 0),T=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],T),t.StringArrayCallsWrapper=T},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(11),N=r(43),g=r(148),v=r(16),y=r(37),_=r(10),h=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).escapeSequenceEncoder=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return y.JavaScriptObfuscator.obfuscate(p.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,o.default)({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),(0,i.default)(t,e),t}(v.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.SelfDefendingUnicodeNode=h},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(24),N=r(11),g=r(150),v=r(43),y=r(16),_=r(37),h=r(10),b=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,c.default)(this,(0,d.default)(t).call(this,e,r,n))}return(0,s.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===m.ObfuscationEvent.AfterObfuscation?_.JavaScriptObfuscator.obfuscate(p.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),(0,o.default)({},v.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():p.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([N.initializable(),u.__metadata("design:type",String)],b.prototype,"callsControllerFunctionName",void 0),u.__decorate([N.initializable(),u.__metadata("design:type",String)],b.prototype,"appendEvent",void 0),b=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.NodeCallsControllerFunctionNode=b},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return N.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"operator",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.LogicalExpressionFunctionNode=g},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return N.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],g.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],g.prototype,"rightValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.ExpressionWithOperatorControlFlowStorageCallNode=g},function(e,t,r){"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 \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 ((!document && !domain) || (!that[document] && !that[document][domain])) {\n return;\n }\n \n var currentDomain = that[document][domain];\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,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=u.__importDefault(r(20)),m=r(23),N=r(11),g=r(154),v=r(44),y=r(16),_=r(10),h=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,e,r,o))).cryptUtils=n,i}return(0,s.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.domainLock.join(";"),t=this.cryptUtils.hideString(e,3*e.length),r=(0,o.default)(t,2),n=r[0],a=r[1],i=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():v.GlobalVariableNoEvalTemplate();return p.default(g.DomainLockNodeTemplate(),{domainLockFunctionName:this.identifierNamesGenerator.generate(),diff:a,domains:n,globalVariableTemplate:i,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,i.default)(t,e),t}(y.AbstractCustomNode);u.__decorate([N.initializable(),u.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.DomainLockNode=h},function(e,t,r){"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,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(23),m=r(11),N=r(158),g=r(157),v=r(156),y=r(16),_=r(10),h=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?N.DebuggerTemplate():g.DebuggerTemplateNoEval();return f.default(v.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(y.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"debugProtectionFunctionName",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.DebugProtectionFunctionNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(11),m=r(160),N=r(16),g=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return g.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return f.default(m.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),(0,a.default)(t,e),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.DebugProtectionFunctionIntervalNode=v},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(11),m=r(162),N=r(16),g=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return g.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return f.default(m.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"callsControllerFunctionName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.DebugProtectionFunctionCallNode=v},function(e,t,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=d.__importDefault(r(20)),p=r(23),m=r(164),N=r(44),g=r(11),v=r(16),y=r(10),_=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():N.GlobalVariableNoEvalTemplate();return f.default(m.ConsoleOutputDisableExpressionTemplate(),{consoleLogDisableFunctionName:this.identifierNamesGenerator.generate(),globalVariableTemplate:e,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),(0,a.default)(t,e),t}(v.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ConsoleOutputDisableExpressionNode=_},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(56)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l=r(4),f=r(1),p=r(5),m=r(11),N=r(16),g=r(15),v=r(9),y=r(10),_=function(e){function t(e,r,n){return(0,i.default)(this,t),(0,d.default)(this,(0,u.default)(t).call(this,e,r,n))}return(0,c.default)(t,[{key:"initialize",value:function(e){this.controlFlowStorage=e}},{key:"getNodeStructure",value:function(){var e=(0,a.default)(this.controlFlowStorage.getStorage()).map(function(e){var t=(0,o.default)(e,2),r=t[0],n=t[1].getNode()[0];if(!v.NodeGuards.isExpressionStatementNode(n))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return g.NodeFactory.propertyNode(g.NodeFactory.identifierNode(r),n.expression)}),t=g.NodeFactory.variableDeclarationNode([g.NodeFactory.variableDeclaratorNode(g.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),g.NodeFactory.objectExpressionNode(e))]);return[t=y.NodeUtils.parentize(t)]}}]),(0,s.default)(t,e),t}(N.AbstractCustomNode);l.__decorate([m.initializable(),l.__metadata("design:type",Object)],_.prototype,"controlFlowStorage",void 0),_=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(2,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ControlFlowStorageNode=_},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=N.NodeFactory.blockStatementNode([N.NodeFactory.ifStatementNode(N.NodeFactory.binaryExpressionNode(r,N.NodeFactory.literalNode(n),N.NodeFactory.literalNode(a)),c,d)]);return g.NodeUtils.parentize(u),[u]}}]),(0,i.default)(t,e),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(9),g=r(10),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return N.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return g.NodeUtils.parentize(n),[n]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"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,r){"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,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(11),p=r(16),m=r(15),N=r(10),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return N.NodeUtils.parentize(e),[e]}}]),(0,a.default)(t,e),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"operator",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionFunctionNode=g},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(17)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l=r(4),f=r(1),p=r(5),m=r(11),N=r(29),g=r(24),v=r(34),y=r(25),_=function(e){function t(e,r,n,o,a){var s;return(0,i.default)(this,t),(s=(0,d.default)(this,(0,u.default)(t).call(this,n,o,a))).appendEvent=g.ObfuscationEvent.AfterObfuscation,s.customNodeFactory=e,s.stringArrayStorage=r,s}return(0,c.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(N.CustomNode.StringArrayNode,function(t){y.NodeAppender.prependNode(e,t.getNode())}),this.appendCustomNodeIfExist(N.CustomNode.StringArrayCallsWrapper,function(t){y.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(N.CustomNode.StringArrayRotateFunctionNode,function(t){y.NodeAppender.insertNodeAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new a.default,this.options.stringArray){var e,t=this.customNodeFactory(N.CustomNode.StringArrayNode),r=this.customNodeFactory(N.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(N.CustomNode.StringArrayRotateFunctionNode),i=this.stringArrayStorage.getStorageId().split("|"),s=(0,o.default)(i,2),c=s[0],d=s[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,c,e),r.initialize(c,d),n.initialize(c,e),this.customNodes.set(N.CustomNode.StringArrayNode,t),this.customNodes.set(N.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(N.CustomNode.StringArrayRotateFunctionNode,n)}}}]),(0,s.default)(t,e),t}(v.AbstractCustomNodeGroup);l.__decorate([m.initializable(),l.__metadata("design:type",a.default)],_.prototype,"customNodes",void 0),_=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__ICustomNode)),l.__param(1,f.inject(p.ServiceIdentifiers.TStringArrayStorage)),l.__param(2,f.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(4,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],_),t.StringArrayCustomNodeGroup=_},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),N=r(24),g=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=N.ObfuscationEvent.AfterObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.SelfDefendingUnicodeNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(g.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.SelfDefendingCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),N=r(24),g=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=N.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DomainLockNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.DomainLockNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.DomainLockNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(g.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DomainLockCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),N=r(24),g=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=N.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionCallNode,function(r){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionNode,function(t){v.NodeAppender.appendNode(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=e.body.length,o=r.randomGenerator.getRandomInteger(0,n);v.NodeAppender.insertNodeAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(r){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e,v.NodeAppender.prependNode(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionCallNode),a=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionIntervalNode),i=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),a.initialize(e),i.initialize(this.appendEvent,t),this.customNodes.set(m.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(m.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(m.CustomNode.DebugProtectionFunctionIntervalNode,a),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,i)}}}]),(0,i.default)(t,e),t}(g.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(17)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(1),f=r(5),p=r(11),m=r(29),N=r(24),g=r(34),v=r(25),y=function(e){function t(e,r,n,o){var i;return(0,a.default)(this,t),(i=(0,c.default)(this,(0,d.default)(t).call(this,r,n,o))).appendEvent=N.ObfuscationEvent.BeforeObfuscation,i.customNodeFactory=e,i}return(0,s.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.ConsoleOutputDisableExpressionNode,function(n){v.NodeAppender.appendNodeToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var o;o=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e,v.NodeAppender.prependNode(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new o.default,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),(0,i.default)(t,e),t}(g.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",o.default)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.ConsoleOutputCustomNodeGroup=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(22),s=r(29),c=r(57),d=r(58),u=r(178),l=r(177),f=r(176),p=r(175),m=r(174),N=r(173),g=r(170),v=r(169),y=r(168),_=r(167),h=r(166),b=r(165),S=r(163),I=r(161),C=r(159),F=r(155),O=r(153),j=r(152),T=r(151),k=r(149),x=r(147),E=r(140),w=r(138),G=r(134),R=r(133);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(T.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(k.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(13),m=r(14),N=r(15),g=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=e.expressions,n=[];if(e.quasis.forEach(function(e){n.push(N.NodeFactory.literalNode(e.value.cooked));var t=r.shift();t&&n.push(t)}),n=n.filter(function(e){return!(g.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(n[0])||d.isLiteralNodeWithStringValue(n[1])||n.unshift(N.NodeFactory.literalNode("")),n.length>1){var o=N.NodeFactory.binaryExpressionNode("+",n.shift(),n.shift());return n.forEach(function(e){o=N.NodeFactory.binaryExpressionNode("+",o,e)}),o}return n[0]}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&g.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return g.NodeGuards.isTemplateLiteralNode(e)&&!g.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),(0,a.default)(t,e),t}(m.AbstractNodeTransformer);v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.TemplateLiteralTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=r(5),f=r(13),p=r(14),m=r(15),N=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r))}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return e.properties.forEach(function(e){!e.computed&&e.key&&(e.shorthand&&(e.shorthand=!1),N.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(e.key.name)))}),e}}]),(0,a.default)(t,e),t}(p.AbstractNodeTransformer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.ObjectExpressionTransformer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(17)),i=n(r(2)),s=n(r(8)),c=n(r(3)),d=n(r(7)),u=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var l,f=r(4),p=r(1),m=r(5),N=r(13),g=r(14),v=r(25),y=r(15),_=r(9),h=r(10),b=l=function(e){function t(e,r){var n;return(0,i.default)(this,t),(n=(0,d.default)(this,(0,u.default)(t).call(this,e,r))).cachedScopeNodesMap=new a.default,n}return(0,c.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.Converting:return{enter:function(e,r){if(t.options.transformObjectKeys&&r&&_.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return _.NodeGuards.isVariableDeclaratorNode(t)?this.transformVariableDeclaratorHostObjectExpression(e,t):_.NodeGuards.isAssignmentExpressionNode(t)?this.transformAssignmentExpressionHostObjectExpression(e,t):e}},{key:"transformVariableDeclaratorHostObjectExpression",value:function(e,t){if(!_.NodeGuards.isIdentifierNode(t.id))return e;var r=h.NodeUtils.getScopeOfNode(t);return r&&_.NodeGuards.isNodeHasScope(r)?(this.cachedScopeNodesMap.set(t,r),this.transformObjectExpressionNode(e,t.id,t)):e}},{key:"transformAssignmentExpressionHostObjectExpression",value:function(e,t){var r=t.left;if(!l.isValidExpressionNode(r))return e;var n=h.NodeUtils.getScopeOfNode(t);return n&&_.NodeGuards.isNodeHasScope(n)?(this.cachedScopeNodesMap.set(t,n),this.transformObjectExpressionNode(e,r,t)):e}},{key:"extractPropertiesToExpressionStatements",value:function(e,t,r){for(var n=e.length,o=[],a=[],i=0;if.hostNodeSearchMinDepth&&t.splice(0,f.hostNodeSearchMinDepth),t.length>f.hostNodeSearchMaxDepth&&(t.length=f.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(I.NodeGuards.isFunctionDeclarationNode(e)||I.NodeGuards.isFunctionExpressionNode(e)||I.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;g.replace(e,{enter:function(e,n){if(C.NodeMetadata.isIgnoredNode(e))return g.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return g.VisitorOption.Skip;if(!f.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var a=f.controlFlowReplacersMap.get(e.type);return void 0===a?e:(0,o.default)({},r.controlFlowReplacerFactory(a).replace(e,n,t),{parentNode:n})}})}}]),(0,c.default)(t,e),t}(b.AbstractNodeTransformer);O.controlFlowReplacersMap=new i.default([[_.NodeType.BinaryExpression,y.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[_.NodeType.CallExpression,y.ControlFlowReplacer.CallExpressionControlFlowReplacer],[_.NodeType.LogicalExpression,y.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[_.NodeType.Literal,y.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),O.hostNodeSearchMinDepth=0,O.hostNodeSearchMaxDepth=2,O=f=p.__decorate([m.injectable(),p.__param(0,m.inject(N.ServiceIdentifiers.Factory__TControlFlowStorage)),p.__param(1,m.inject(N.ServiceIdentifiers.Factory__IControlFlowReplacer)),p.__param(2,m.inject(N.ServiceIdentifiers.Factory__IControlFlowCustomNode)),p.__param(3,m.inject(N.ServiceIdentifiers.IRandomGenerator)),p.__param(4,m.inject(N.ServiceIdentifiers.IOptions)),p.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],O),t.FunctionControlFlowTransformer=O},function(e,t,r){"use strict";var n=r(0),o=n(r(31)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=r(5),m=l.__importStar(r(18)),N=r(58),g=r(32),v=r(26),y=r(13),_=r(14),h=r(15),b=r(9),S=r(10),I=u=function(e){function t(e,r,n,i){var s;return(0,a.default)(this,t),(s=(0,c.default)(this,(0,d.default)(t).call(this,n,i))).deadCodeInjectionRootAstHostNodeSet=new o.default,s.collectedBlockStatements=[],s.collectedBlockStatementsTotalLength=0,s.deadCodeInjectionCustomNodeFactory=e,s.transformersRunner=r,s}return(0,s.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case y.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&b.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&b.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case y.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;m.traverse(e,{enter:function(e){if(b.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);u.isValidCollectedBlockStatementNode(t)&&(S.NodeUtils.parentizeNode(t,t),t=r.transformersRunner.transform(t,u.transformersToRenameBlockScopeIdentifiers,y.TransformationStage.Obfuscating),r.collectedBlockStatements.push(t))}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!u.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!b.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return b.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=h.NodeFactory.blockStatementNode([h.NodeFactory.functionDeclarationNode(u.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(N.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return b.NodeGuards.isBreakStatementNode(e)||b.NodeGuards.isContinueStatementNode(e)||b.NodeGuards.isAwaitExpressionNode(e)||b.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!b.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=S.NodeUtils.getScopeOfNode(e),r=b.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=h.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return m.traverse(a,{enter:function(e){if(b.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,m.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return m.traverse(e,{enter:function(e){if(b.NodeGuards.isBlockStatementNode(e)&&t++,t>u.maxNestedBlockStatementsCount||u.isProhibitedNodeInsideCollectedBlockStatement(e)||u.isScopeHoistingFunctionDeclaration(e))return r=!1,m.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return m.traverse(e,{enter:function(e){if(u.isScopeHoistingFunctionDeclaration(e))return t=!1,m.VisitorOption.Break}}),!!t&&S.NodeUtils.getBlockScopesOfNode(e)[0].type!==v.NodeType.Program}}]),(0,i.default)(t,e),t}(_.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),l.__param(1,f.inject(p.ServiceIdentifiers.ITransformersRunner)),l.__param(2,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(3,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(22),m=r(45),N=r(9),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!N.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!N.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),(0,a.default)(t,e),t}(m.AbstractControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.CallExpressionControlFlowReplacer=g},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/has-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/define-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/object/get-own-property-names")},function(e,t){e.exports=require("@babel/runtime/core-js/reflect/get-metadata")},function(e,t){e.exports=require("@babel/runtime/core-js/object/get-own-property-descriptor")},function(e,t){e.exports=require("@babel/runtime/core-js/object/define-property")},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=u.__importStar(r(18)),m=r(22),N=r(13),g=r(14),v=r(9),y=r(10),_=d=function(e){function t(e,r,n,a){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,c.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,i.arrayUtils=r,i}return(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case N.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.arrayRange(r.length),o=this.arrayUtils.arrayShuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"blockStatementHasProhibitedStatements",value:function(e){return e.body.some(function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n})}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;v.NodeGuards.isBlockStatementNode(e)&&d.blockStatementHasProhibitedStatements(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),(0,a.default)(t,e),t}(g.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(1),f=r(5),p=r(22),m=r(59),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,i.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),(0,a.default)(t,e),t}(m.ExpressionWithOperatorControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(60),s=r(32),c=r(198),d=r(197),u=r(190),l=r(189),f=r(188),p=r(187),m=r(186);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(12)),a=n(r(2)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s,c=r(4),d=r(1),u=r(5),l=c.__importStar(r(18)),f=r(63),p=r(9),m=r(10),N=s=function(){function e(t){(0,a.default)(this,e),this.calleeDataExtractorFactory=t}return(0,i.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=s.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];l.traverse(a,{enter:function(r){if(p.NodeGuards.isCallExpressionNode(r))return a.parentNode!==m.NodeUtils.getBlockScopesOfNode(r)[0]?l.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},i=0;ir&&(n=Math.round(r+t*s.limitThreshold))>t&&(n=t),n}}]),e}();N.calleeDataExtractorsList=[f.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,f.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,f.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],N.limitThresholdActivationLength=25,N.limitThreshold=.002,N=s=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.Factory__ICalleeDataExtractor)),c.__metadata("design:paramtypes",[Function])],N),t.StackTraceAnalyzer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(35)),a=n(r(2)),i=n(r(8)),s=n(r(3)),c=n(r(7)),d=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(1),p=l.__importStar(r(18)),m=r(47),N=r(9),g=r(10),v=u=function(e){function t(){return(0,a.default)(this,t),(0,c.default)(this,(0,d.default)(t).apply(this,arguments))}return(0,s.default)(t,[{key:"extract",value:function(e,t){if(!N.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeUtils.getBlockScopesOfNode(e[0])[0],r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(N.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!N.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return N.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(N.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return p.traverse(e,{enter:function(e){if(N.NodeGuards.isVariableDeclaratorNode(e)&&N.NodeGuards.isIdentifierNode(e.id)&&e.init&&N.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),p.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,a=!1,i=void 0;try{for(var s,c=(0,o.default)(e);!(n=(s=c.next()).done);n=!0){var d=s.value;if(u.isValidTargetPropertyNode(d,r)){if(N.NodeGuards.isObjectExpressionNode(d.value))return this.findCalleeBlockStatement(d.value.properties,t);if(N.NodeGuards.isFunctionExpressionNode(d.value))return d.value.body}}}catch(e){a=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw i}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=N.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=N.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),(0,i.default)(t,e),t}(m.AbstractCalleeDataExtractor);v=u=l.__decorate([f.injectable()],v),t.ObjectExpressionCalleeDataExtractor=v},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=d.__importStar(r(18)),f=r(47),p=r(9),m=r(10),N=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,i.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),(0,a.default)(t,e),t}(f.AbstractCalleeDataExtractor);N=d.__decorate([u.injectable()],N),t.FunctionExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(2)),a=n(r(8)),i=n(r(3)),s=n(r(7)),c=n(r(6));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(1),l=d.__importStar(r(18)),f=r(47),p=r(9),m=r(10),N=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,i.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeUtils.getBlockScopesOfNode(e[0])[0],t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),(0,a.default)(t,e),t}(f.AbstractCalleeDataExtractor);N=d.__decorate([u.injectable()],N),t.FunctionDeclarationCalleeDataExtractor=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=r(1),a=r(5),i=r(63),s=r(203),c=r(202),d=r(201),u=r(200);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);e.exports=n.JavaScriptObfuscator}]); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/src/node-transformers/converting-transformers/ObjectExpressionKeysTransformer.ts b/src/node-transformers/converting-transformers/ObjectExpressionKeysTransformer.ts index b674d6be..4991d168 100644 --- a/src/node-transformers/converting-transformers/ObjectExpressionKeysTransformer.ts +++ b/src/node-transformers/converting-transformers/ObjectExpressionKeysTransformer.ts @@ -35,35 +35,6 @@ export class ObjectExpressionKeysTransformer extends AbstractNodeTransformer { super(randomGenerator, options); } - /** - * Returns host statement of object expression node - * - * @param {NodeGuards} node - * @returns {Node} - */ - public static getHostStatement (node: ESTree.Node): ESTree.Statement { - const parentNode: ESTree.Node | undefined = node.parentNode; - - if (!parentNode) { - throw new ReferenceError('`parentNode` property of given node is `undefined`'); - } - - if (!NodeGuards.isNodeHasScope(parentNode)) { - return ObjectExpressionKeysTransformer.getHostStatement(parentNode); - } - - return node; - } - - /** - * @param {Property[]} properties - * @param {number[]} removablePropertyIds - * @returns {Property[]} - */ - private static filterObjectExpressionProperties (properties: ESTree.Property[], removablePropertyIds: number[]): ESTree.Property[] { - return properties.filter((property: ESTree.Property, index: number) => !removablePropertyIds.includes(index)); - } - /** * @param {TNodeWithScope} scopeNode * @param {Node} hostNode @@ -79,6 +50,35 @@ export class ObjectExpressionKeysTransformer extends AbstractNodeTransformer { NodeAppender.insertNodeAfter(scopeNode, expressionStatements, hostNodeScope); } + /** + * @param {Property[]} properties + * @param {number[]} removablePropertyIds + * @returns {Property[]} + */ + private static filterObjectExpressionProperties (properties: ESTree.Property[], removablePropertyIds: number[]): ESTree.Property[] { + return properties.filter((property: ESTree.Property, index: number) => !removablePropertyIds.includes(index)); + } + + /** + * Returns host statement of object expression node + * + * @param {NodeGuards} node + * @returns {Node} + */ + private static getHostStatement (node: ESTree.Node): ESTree.Statement { + const parentNode: ESTree.Node | undefined = node.parentNode; + + if (!parentNode) { + throw new ReferenceError('`parentNode` property of given node is `undefined`'); + } + + if (!NodeGuards.isNodeHasScope(parentNode)) { + return ObjectExpressionKeysTransformer.getHostStatement(parentNode); + } + + return node; + } + /** * @param {Property} propertyNode * @returns {string | null}