From c7a3a2b71ed351068026b7067653c287472ad42f Mon Sep 17 00:00:00 2001 From: sanex3339 Date: Sat, 22 Apr 2017 19:44:28 +0300 Subject: [PATCH] Increased runtime performance with `rc4` `stringArrayEncoding` --- CHANGELOG.md | 4 + dist/index.js | 116 ++---------------- package.json | 2 +- .../StringArrayBase64DecodeNodeTemplate.ts | 6 +- .../StringArrayRC4DecodeNodeTemplate.ts | 8 +- 5 files changed, 26 insertions(+), 110 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68569770..ad3345cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ Change Log === +v0.9.4 +--- +* increased runtime performance with `rc4` `stringArrayEncoding`. + v0.9.3 --- * Switched from `escodegen` to `escodegen-wallaby`, fixed https://github.com/javascript-obfuscator/javascript-obfuscator/pull/50 diff --git a/dist/index.js b/dist/index.js index f2f1db59..4bbe1d6b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -321,7 +321,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var chance_1 = __webpack_require__(121); var Utils_1 = __webpack_require__(8); @@ -459,7 +458,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var NodeType_1 = __webpack_require__(13); var Node = function () { @@ -628,7 +626,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -676,7 +673,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var JSFuck_1 = __webpack_require__(27); var RandomGeneratorUtils_1 = __webpack_require__(4); @@ -846,7 +842,6 @@ var CustomNodes; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -879,7 +874,6 @@ module.exports = require("string-template"); "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var Utils_1 = __webpack_require__(8); exports.NodeType = Utils_1.Utils.strEnumify({ ArrayExpression: 'ArrayExpression', @@ -1255,7 +1249,6 @@ exports.Nodes = Nodes; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); exports.ObfuscationEvents = { AfterObfuscation: 'afterObfuscation', BeforeObfuscation: 'beforeObfuscation' @@ -1268,7 +1261,6 @@ exports.ObfuscationEvents = { "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var ObfuscationReplacers; (function (ObfuscationReplacers) { ObfuscationReplacers[ObfuscationReplacers["BooleanReplacer"] = 0] = "BooleanReplacer"; @@ -1288,7 +1280,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); __webpack_require__(127); var ServiceIdentifiers_1 = __webpack_require__(2); var InversifyContainerFacade_1 = __webpack_require__(44); @@ -1338,7 +1329,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var RandomGeneratorUtils_1 = __webpack_require__(4); var NodeAppender = function () { @@ -1439,7 +1429,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -1489,7 +1478,6 @@ module.exports = require("escodegen-wallaby"); "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); exports.SourceMapMode = { Inline: 'inline', Separate: 'separate' @@ -1504,7 +1492,6 @@ exports.SourceMapMode = { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -1553,7 +1540,6 @@ exports.NO_CUSTOM_NODES_PRESET = Object.freeze({ "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); exports.StringArrayEncoding = { base64: 'base64', rc4: 'rc4' @@ -1568,7 +1554,6 @@ exports.StringArrayEncoding = { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var AbstractCalleeDataExtractor = function AbstractCalleeDataExtractor() { @@ -1684,7 +1669,6 @@ exports.CryptUtils = CryptUtils; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); exports.JSFuck = { False: '![]', True: '!![]', @@ -1721,25 +1705,25 @@ exports.JSFuck = { E: '(RegExp+"")[12]', F: '(+[]+Function)[10]', G: '(false+Function("return Date")()())[30]', - H: "'H'", + H: '\'H\'', I: '(Infinity+"")[0]', - J: "'J'", - K: "'K'", - L: "'L'", + J: '\'J\'', + K: '\'K\'', + L: '\'L\'', M: '(true+Function("return Date")()())[30]', N: '(NaN+"")[0]', O: '(NaN+Function("return{}")())[11]', - P: "'P'", - Q: "'Q'", + P: '\'P\'', + Q: '\'Q\'', R: '(+[]+RegExp)[10]', S: '(+[]+String)[10]', T: '(NaN+Function("return Date")()())[30]', U: '(NaN+Function("return{}")()["toString"]["call"]())[11]', - V: "'V'", - W: "'W'", - X: "'X'", - Y: "'Y'", - Z: "'Z'" + V: '\'V\'', + W: '\'W\'', + X: '\'X\'', + Y: '\'Y\'', + Z: '\'Z\'' }; /***/ }), @@ -1749,7 +1733,6 @@ exports.JSFuck = { "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var CalleeDataExtractors; (function (CalleeDataExtractors) { CalleeDataExtractors[CalleeDataExtractors["FunctionDeclarationCalleeDataExtractor"] = 0] = "FunctionDeclarationCalleeDataExtractor"; @@ -1778,7 +1761,6 @@ var ControlFlowReplacers; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var CustomNodeGroups; (function (CustomNodeGroups) { CustomNodeGroups[CustomNodeGroups["ConsoleOutputCustomNodeGroup"] = 0] = "ConsoleOutputCustomNodeGroup"; @@ -1891,7 +1873,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -1973,7 +1954,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var Initializable_1 = __webpack_require__(5); @@ -2159,7 +2139,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var Initializable_1 = __webpack_require__(5); @@ -2381,7 +2360,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var fs = __webpack_require__(125); var mkdirp = __webpack_require__(126); var path = __webpack_require__(37); @@ -2620,7 +2598,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); var ControlFlowTransformersModule_1 = __webpack_require__(46); @@ -2844,7 +2821,6 @@ exports.nodeTransformersModule = new inversify_1.ContainerModule(function (bind) "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); var ObfuscationReplacers_1 = __webpack_require__(16); @@ -2877,7 +2853,6 @@ exports.obfuscatingTransformersModule = new inversify_1.ContainerModule(function "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); var CalleeDataExtractors_1 = __webpack_require__(28); @@ -2910,7 +2885,6 @@ exports.stackTraceAnalyzerModule = new inversify_1.ContainerModule(function (bin "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); var ControlFlowStorage_1 = __webpack_require__(102); @@ -2943,7 +2917,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3003,7 +2976,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3082,7 +3054,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3135,7 +3106,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3198,7 +3168,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3257,7 +3226,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3312,7 +3280,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3372,7 +3339,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3430,7 +3396,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3488,7 +3453,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3546,7 +3510,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3604,7 +3567,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3662,7 +3624,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3746,7 +3707,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3816,7 +3776,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -3895,7 +3854,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4024,7 +3982,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4103,7 +4060,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4208,7 +4164,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4277,7 +4232,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4359,7 +4313,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4445,7 +4398,6 @@ exports.StringArrayCustomNodeGroup = StringArrayCustomNodeGroup; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var Utils_1 = __webpack_require__(8); exports.VisitorDirection = Utils_1.Utils.strEnumify({ enter: 'enter', @@ -4465,7 +4417,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var events_1 = __webpack_require__(124); @@ -4499,7 +4450,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4728,7 +4678,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4776,7 +4725,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4841,7 +4789,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4907,7 +4854,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -4974,7 +4920,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5040,7 +4985,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5125,7 +5069,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5212,7 +5155,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5321,7 +5263,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5427,7 +5368,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5682,7 +5622,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5803,7 +5742,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5845,7 +5783,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5908,7 +5845,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -5963,7 +5899,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -6310,8 +6245,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); - var ValidationErrorsFormatter = function () { function ValidationErrorsFormatter() { _classCallCheck(this, ValidationErrorsFormatter); @@ -6379,7 +6312,6 @@ var _createClass = (function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -6486,7 +6418,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var estraverse = __webpack_require__(11); @@ -6553,7 +6484,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var estraverse = __webpack_require__(11); @@ -6623,7 +6553,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var estraverse = __webpack_require__(11); @@ -6761,7 +6690,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var Initializable_1 = __webpack_require__(5); @@ -6851,7 +6779,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var MapStorage_1 = __webpack_require__(35); var ControlFlowStorage = function (_MapStorage_1$MapStor) { @@ -6886,7 +6813,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ServiceIdentifiers_1 = __webpack_require__(2); @@ -6948,7 +6874,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var inversify_1 = __webpack_require__(0); var ArrayStorage_1 = __webpack_require__(101); @@ -7002,7 +6927,6 @@ exports.StringArrayStorage = StringArrayStorage; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function AtobTemplate() { return "\n (function () {\n var getGlobal = Function('return (function () ' + '{}.constructor(\"return this\")()' + ');');\n\n var object = getGlobal();\n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n object.atob || (\n object.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 "; } @@ -7015,7 +6939,6 @@ exports.AtobTemplate = AtobTemplate; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function Rc4Template() { 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 "; } @@ -7028,7 +6951,6 @@ exports.Rc4Template = Rc4Template; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function SingleNodeCallControllerTemplate() { return "\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\t\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 "; } @@ -7041,7 +6963,6 @@ exports.SingleNodeCallControllerTemplate = SingleNodeCallControllerTemplate; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function ConsoleOutputDisableExpressionTemplate() { return "\n var {consoleLogDisableFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n var func = function () {};\n var that = getGlobal();\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 "; } @@ -7054,7 +6975,6 @@ exports.ConsoleOutputDisableExpressionTemplate = ConsoleOutputDisableExpressionT "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function DebugProtectionFunctionCallTemplate() { return "{debugProtectionFunctionName}();"; } @@ -7067,7 +6987,6 @@ exports.DebugProtectionFunctionCallTemplate = DebugProtectionFunctionCallTemplat "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function DebugProtectionFunctionIntervalTemplate() { return "\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "; } @@ -7080,7 +6999,6 @@ exports.DebugProtectionFunctionIntervalTemplate = DebugProtectionFunctionInterva "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function DebugProtectionFunctionTemplate() { return "\n var {debugProtectionFunctionName} = function () {\n function debuggerProtection (counter) {\n if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {\n (function () {}.constructor('debugger')());\n } else {\n (function () {}.constructor('debugger')());\n }\n \n debuggerProtection(++counter);\n }\n \n try {\n debuggerProtection(0);\n } catch (y) {}\n };\n "; } @@ -7093,7 +7011,6 @@ exports.DebugProtectionFunctionTemplate = DebugProtectionFunctionTemplate; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function DomainLockNodeTemplate() { return "\n var {domainLockFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var getGlobal = Function('return (function () ' + '{}.constructor(\"return this\")()' + ');');\n\n var func = function () { \n return {\n key: 'item',\n value: 'attribute',\n getAttribute: function () {\n getGlobal()['eval']('while(true){}')();\n }()\n };\n };\n \n var regExp = new RegExp(\"[{diff}]\", \"g\");\n var domains = \"{domains}\".replace(regExp, \"\").split(\";\");\n var eval = [][\"forEach\"][\"constructor\"];\n var windowObject = eval(\"return this\")();\n var document;\n var domain;\n \n for (var d in windowObject) {\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 windowObject[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) || (!windowObject[document] && !windowObject[document][domain])) {\n return;\n }\n \n var currentDomain = windowObject[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 break;\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n "; } @@ -7106,7 +7023,6 @@ exports.DomainLockNodeTemplate = DomainLockNodeTemplate; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var Utils_1 = __webpack_require__(8); function SelfDefendingTemplate() { 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('" + Utils_1.Utils.stringToUnicodeEscapeSequence("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}") + "');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('" + Utils_1.Utils.stringToUnicodeEscapeSequence("(\\\\[x|u](\\w){2,4})+") + "');\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\u0435xOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('ind\u0435xOf');\n }\n })\n \n {selfDefendingFunctionName}();\n "; @@ -7120,7 +7036,6 @@ exports.SelfDefendingTemplate = SelfDefendingTemplate; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var Utils_1 = __webpack_require__(8); function SelfDefendingTemplate() { return "\n var StatesClass = function (rc4Bytes) {\n this.rc4Bytes = rc4Bytes;\n this.states = [1, 0, 0];\n this.newState = function(){return 'newState';};\n this.firstState = '" + Utils_1.Utils.stringToUnicodeEscapeSequence("\\w+ *\\(\\) *{\\w+ *") + "';\n this.secondState = '" + Utils_1.Utils.stringToUnicodeEscapeSequence("['|\"].+['|\"];? *}") + "';\n };\n \n StatesClass.prototype.checkState = function () {\n var regExp = new RegExp(this.firstState + this.secondState);\n\n return this.runState(regExp.test(this.newState.toString()) ? --this.states[1] : --this.states[0]);\n };\n \n StatesClass.prototype.runState = function (stateResult) {\n if (!Boolean(~stateResult)) {\n return stateResult;\n }\n \n return this.getState(this.rc4Bytes);\n };\n\n StatesClass.prototype.getState = function (rc4Bytes) {\n for (var i = 0, len = this.states.length; i < len; i++) {\n this.states.push(Math.round(Math.random()));\n len = this.states.length;\n }\n \n return rc4Bytes(this.states[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).checkState();\n "; @@ -7135,7 +7050,7 @@ exports.SelfDefendingTemplate = SelfDefendingTemplate; function StringArrayBase64DecodeNodeTemplate() { - return " \n if ({stringArrayCallsWrapperName}.initialized === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.base64DecodeUnicode = 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}.data = {};\n \n {stringArrayCallsWrapperName}.initialized = true;\n }\n \n if ({stringArrayCallsWrapperName}.data[index] === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.base64DecodeUnicode(value);\n {stringArrayCallsWrapperName}.data[index] = value;\n } else {\n value = {stringArrayCallsWrapperName}.data[index];\n } \n "; + return " \n if ({stringArrayCallsWrapperName}.initialized === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.base64DecodeUnicode = 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}.data = {};\n \n {stringArrayCallsWrapperName}.initialized = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.data[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.base64DecodeUnicode(value);\n {stringArrayCallsWrapperName}.data[index] = value;\n } else {\n value = cachedValue;\n } \n "; } exports.StringArrayBase64DecodeNodeTemplate = StringArrayBase64DecodeNodeTemplate; @@ -7146,7 +7061,6 @@ exports.StringArrayBase64DecodeNodeTemplate = StringArrayBase64DecodeNodeTemplat "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function StringArrayCallsWrapperTemplate() { 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 "; } @@ -7160,7 +7074,7 @@ exports.StringArrayCallsWrapperTemplate = StringArrayCallsWrapperTemplate; function StringArrayRc4DecodeNodeTemplate() { - return "\n if ({stringArrayCallsWrapperName}.initialized === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.rc4 = rc4;\n \n {stringArrayCallsWrapperName}.data = {};\n \n {stringArrayCallsWrapperName}.initialized = true;\n }\n \n index += key;\n\n if ({stringArrayCallsWrapperName}.data[index] === undefined) {\n if ({stringArrayCallsWrapperName}.once === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.once = true;\n }\n \n value = {stringArrayCallsWrapperName}.rc4(value, key);\n {stringArrayCallsWrapperName}.data[index] = value;\n } else {\n value = {stringArrayCallsWrapperName}.data[index];\n }\n "; + return "\n if ({stringArrayCallsWrapperName}.initialized === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.rc4 = rc4;\n \n {stringArrayCallsWrapperName}.data = {};\n \n {stringArrayCallsWrapperName}.initialized = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.data[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.once === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.once = true;\n }\n \n value = {stringArrayCallsWrapperName}.rc4(value, key);\n {stringArrayCallsWrapperName}.data[index] = value;\n } else {\n value = cachedValue;\n }\n "; } exports.StringArrayRc4DecodeNodeTemplate = StringArrayRc4DecodeNodeTemplate; @@ -7171,7 +7085,6 @@ exports.StringArrayRc4DecodeNodeTemplate = StringArrayRc4DecodeNodeTemplate; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function StringArrayTemplate() { return "\n var {stringArrayName} = [{stringArray}];\n "; } @@ -7184,7 +7097,6 @@ exports.StringArrayTemplate = StringArrayTemplate; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var Utils_1 = __webpack_require__(8); function SelfDefendingTemplate() { 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('" + Utils_1.Utils.stringToUnicodeEscapeSequence("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}") + "');\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 "; @@ -7198,7 +7110,6 @@ exports.SelfDefendingTemplate = SelfDefendingTemplate; "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function StringArrayRotateFunctionTemplate() { 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 "; } @@ -7253,7 +7164,6 @@ module.exports = require("reflect-metadata"); "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); var JavaScriptObfuscator_1 = __webpack_require__(17); module.exports = JavaScriptObfuscator_1.JavaScriptObfuscator; diff --git a/package.json b/package.json index d3a3c1f0..0b51ddcc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "javascript-obfuscator", - "version": "0.9.3", + "version": "0.9.4", "description": "JavaScript obfuscator", "keywords": [ "obfuscator", diff --git a/src/templates/custom-nodes/string-array-nodes/string-array-calls-wrapper/StringArrayBase64DecodeNodeTemplate.ts b/src/templates/custom-nodes/string-array-nodes/string-array-calls-wrapper/StringArrayBase64DecodeNodeTemplate.ts index a1a7e48a..81f593bc 100644 --- a/src/templates/custom-nodes/string-array-nodes/string-array-calls-wrapper/StringArrayBase64DecodeNodeTemplate.ts +++ b/src/templates/custom-nodes/string-array-nodes/string-array-calls-wrapper/StringArrayBase64DecodeNodeTemplate.ts @@ -21,14 +21,16 @@ export function StringArrayBase64DecodeNodeTemplate (): string { {stringArrayCallsWrapperName}.initialized = true; } + + var cachedValue = {stringArrayCallsWrapperName}.data[index]; - if ({stringArrayCallsWrapperName}.data[index] === undefined) { + if (cachedValue === undefined) { {selfDefendingCode} value = {stringArrayCallsWrapperName}.base64DecodeUnicode(value); {stringArrayCallsWrapperName}.data[index] = value; } else { - value = {stringArrayCallsWrapperName}.data[index]; + value = cachedValue; } `; } diff --git a/src/templates/custom-nodes/string-array-nodes/string-array-calls-wrapper/StringArrayRC4DecodeNodeTemplate.ts b/src/templates/custom-nodes/string-array-nodes/string-array-calls-wrapper/StringArrayRC4DecodeNodeTemplate.ts index 8e25a784..088ca230 100644 --- a/src/templates/custom-nodes/string-array-nodes/string-array-calls-wrapper/StringArrayRC4DecodeNodeTemplate.ts +++ b/src/templates/custom-nodes/string-array-nodes/string-array-calls-wrapper/StringArrayRC4DecodeNodeTemplate.ts @@ -13,10 +13,10 @@ export function StringArrayRc4DecodeNodeTemplate (): string { {stringArrayCallsWrapperName}.initialized = true; } - - index += key; + + var cachedValue = {stringArrayCallsWrapperName}.data[index]; - if ({stringArrayCallsWrapperName}.data[index] === undefined) { + if (cachedValue === undefined) { if ({stringArrayCallsWrapperName}.once === undefined) { {selfDefendingCode} @@ -26,7 +26,7 @@ export function StringArrayRc4DecodeNodeTemplate (): string { value = {stringArrayCallsWrapperName}.rc4(value, key); {stringArrayCallsWrapperName}.data[index] = value; } else { - value = {stringArrayCallsWrapperName}.data[index]; + value = cachedValue; } `; }