@glimmer/object
Advanced tools
Comparing version 0.23.0-alpha.11 to 0.23.0-alpha.14
@@ -80,2 +80,2 @@ 'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OzsyQ0FBUyxBQUFPLEFBQUksQUFBTzs7Ozs7O21CQUFFLEFBQVM7Ozs7OzttQkFBRSxBQUFZLEFBQXdCLEFBQU0sQUFBYyxBQUFDLEFBQ2pHLEFBQU87Ozs7Ozs7OztxQkFBRSxBQUFROzs7Ozs7cUJBQUUsQUFBUSxBQUFFLEFBQU0sQUFBZ0IsQUFBQyxBQUNwRCxBQUFPOzs7Ozs7Ozs7a0JBQUUsQUFBSzs7Ozs7O2tCQUFFLEFBQVM7Ozs7OztrQkFBRSxBQUFPLEFBQUUsQUFBTSxBQUFhLEFBQUMsQUFDeEQsQUFBTzs7Ozs7Ozs7O3dCQUFFLEFBQVc7Ozs7Ozt3QkFBRSxBQUFLLEFBQUUsQUFBTSxBQUFtQixBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgZGVmYXVsdCBhcyBkZWZhdWx0LCBDbGFzc01ldGEsIEluc3RhbmNlTWV0YSwgR2xpbW1lck9iamVjdEZhY3RvcnkgfSBmcm9tICcuL2xpYi9vYmplY3QnO1xuZXhwb3J0IHsgY29tcHV0ZWQsIG9ic2VydmVyIH0gZnJvbSAnLi9saWIvY29tcHV0ZWQnO1xuZXhwb3J0IHsgTWl4aW4sIEJsdWVwcmludCwgdG9NaXhpbiB9IGZyb20gJy4vbGliL21peGluJztcbmV4cG9ydCB7IGFsaWFzTWV0aG9kLCBhbGlhcyB9IGZyb20gJy4vbGliL2Rlc2NyaXB0b3JzJztcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbImRlZmF1bHQiLCJDbGFzc01ldGEiLCJJbnN0YW5jZU1ldGEiLCJjb21wdXRlZCIsIm9ic2VydmVyIiwiTWl4aW4iLCJCbHVlcHJpbnQiLCJ0b01peGluIiwiYWxpYXNNZXRob2QiLCJhbGlhcyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7MkNBQVNBLE87Ozs7OzttQkFBU0MsUzs7Ozs7O21CQUFXQyxZOzs7Ozs7Ozs7cUJBQ3BCQyxROzs7Ozs7cUJBQVVDLFE7Ozs7Ozs7OztrQkFDVkMsSzs7Ozs7O2tCQUFPQyxTOzs7Ozs7a0JBQVdDLE87Ozs7Ozs7Ozt3QkFDbEJDLFc7Ozs7Ozt3QkFBYUMsSyIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IGRlZmF1bHQsIENsYXNzTWV0YSwgSW5zdGFuY2VNZXRhIH0gZnJvbSAnLi9saWIvb2JqZWN0JztcbmV4cG9ydCB7IGNvbXB1dGVkLCBvYnNlcnZlciB9IGZyb20gJy4vbGliL2NvbXB1dGVkJztcbmV4cG9ydCB7IE1peGluLCBCbHVlcHJpbnQsIHRvTWl4aW4gfSBmcm9tICcuL2xpYi9taXhpbic7XG5leHBvcnQgeyBhbGlhc01ldGhvZCwgYWxpYXMgfSBmcm9tICcuL2xpYi9kZXNjcmlwdG9ycyc7Il19 |
@@ -151,2 +151,2 @@ 'use strict'; | ||
function observer(..._args) {} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcHV0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjb21wdXRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdz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V0IHByb3RvID0gT2JqZWN0LmdldFByb3RvdHlwZU9mKHN1YmplY3QpO1xuICAgIHdoaWxlICh0eXBlb2YgcGQgPT09ICd1bmRlZmluZWQnICYmIHByb3RvICE9PSBudWxsKSB7XG4gICAgICAgIHBkID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihwcm90bywgbmFtZSk7XG4gICAgICAgIHByb3RvID0gT2JqZWN0LmdldFByb3RvdHlwZU9mKHByb3RvKTtcbiAgICB9XG4gICAgcmV0dXJuIHBkO1xufVxuZXhwb3J0IGZ1bmN0aW9uIGNvbXB1dGVkKC4uLmFyZ3MpIHtcbiAgICBsZXQgbGFzdCA9IGFyZ3MucG9wKCk7XG4gICAgbGV0IGRlcHMgPSBhcmdzO1xuICAgIGlmICh0eXBlb2YgbGFzdCA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICByZXR1cm4gbmV3IENvbXB1dGVkQmx1ZXByaW50KHtcbiAgICAgICAgICAgIGdldDogbGFzdFxuICAgICAgICB9KS5wcm9wZXJ0eSguLi5kZXBzKTtcbiAgICB9IGVsc2UgaWYgKHR5cGVvZiBsYXN0ID09PSAnb2JqZWN0Jykge1xuICAgICAgICByZXR1cm4gbmV3IENvbXB1dGVkQmx1ZXByaW50KGxhc3QpLnByb3BlcnR5KC4uLmRlcHMpO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoXCJjb21wdXRlZCBleHBlY3RzIGEgZnVuY3Rpb24gb3IgYW4gb2JqZWN0IGFzIGxhc3QgYXJndW1lbnRcIik7XG4gICAgfVxufVxuZXhwb3J0IGZ1bmN0aW9uIG9ic2VydmVyKC4uLl9hcmdzKSB7fSJdfQ== |
@@ -63,2 +63,2 @@ 'use strict'; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzY3JpcHRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic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O1xufVxuY2xhc3MgQWxpYXNCbHVlcHJpbnQgZXh0ZW5kcyBDb21wdXRlZEJsdWVwcmludCB7XG4gICAgY29uc3RydWN0b3IobmFtZSkge1xuICAgICAgICBsZXQgcGFyZW50ID0gbmFtZS5zbGljZSgwLCAtMSk7XG4gICAgICAgIGxldCBsYXN0ID0gbmFtZVtuYW1lLmxlbmd0aCAtIDFdO1xuICAgICAgICBsZXQgZ2V0ID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIG5hbWUucmVkdWNlKChvYmosIG4pID0+IG9ialtuXSwgdGhpcyk7XG4gICAgICAgIH07XG4gICAgICAgIGxldCBzZXQgPSBmdW5jdGlvbiAodmFsdWUpIHtcbiAgICAgICAgICAgIGxldCBwID0gcGFyZW50LnJlZHVjZSgob2JqLCBuKSA9PiBvYmpbbl0sIHRoaXMpO1xuICAgICAgICAgICAgcFtsYXN0XSA9IHZhbHVlO1xuICAgICAgICB9O1xuICAgICAgICBzdXBlcih7IGdldCwgc2V0IH0sIFtuYW1lXSk7XG4gICAgICAgIHRoaXMubmFtZSA9IG5hbWU7XG4gICAgfVxuICAgIGRlc2NyaXB0b3IodGFyZ2V0LCBrZXksIG1ldGEpIHtcbiAgICAgICAgaWYgKHRoaXMubmFtZVswXSA9PT0ga2V5KSB0aHJvdyBuZXcgRXJyb3IoYFNldHRpbmcgYWxpYXMgJyR7a2V5fScgb24gc2VsZmApO1xuICAgICAgICByZXR1cm4gc3VwZXIuZGVzY3JpcHRvcih0YXJnZXQsIGtleSwgbWV0YSk7XG4gICAgfVxufVxuZXhwb3J0IGZ1bmN0aW9uIGFsaWFzKG5hbWUpIHtcbiAgICByZXR1cm4gbmV3IEFsaWFzQmx1ZXByaW50KG5hbWUuc3BsaXQoJy4nKSk7XG59Il19 |
@@ -278,2 +278,2 @@ 'use strict'; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWl4aW4uan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4gICAgICAgIGlmICh0aGlzLmV4dGVuc2lvbnMpIHtcbiAgICAgICAgICAgIHRoaXMuZGVwZW5kZW5jaWVzLnB1c2godG9NaXhpbih0aGlzLmV4dGVuc2lvbnMpKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAodHlwZW9mIGV4dGVuc2lvbnMgPT09ICdvYmplY3QnICYmICdjb25jYXRlbmF0ZWRQcm9wZXJ0aWVzJyBpbiBleHRlbnNpb25zKSB7XG4gICAgICAgICAgICBsZXQgY29uY2F0O1xuICAgICAgICAgICAgbGV0IHJhd0NvbmNhdCA9IGV4dGVuc2lvbnMuY29uY2F0ZW5hdGVkUHJvcGVydGllcztcbiAgICAgICAgICAgIGlmIChpc0FycmF5KHJhd0NvbmNhdCkpIHtcbiAgICAgICAgICAgICAgICBjb25jYXQgPSByYXdDb25jYXQuc2xpY2UoKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAocmF3Q29uY2F0ID09PSBudWxsIHx8IHJhd0NvbmNhdCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgY29uY2F0ID0gW107XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGNvbmNhdCA9IFtyYXdDb25jYXRdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGVsZXRlIGV4dGVuc2lvbnMuY29uY2F0ZW5hdGVkUHJvcGVydGllcztcbiAgICAgICAgICAgIHRoaXMuY29uY2F0ZW5hdGVkUHJvcGVydGllcyA9IGNvbmNhdDtcbiAgICAgICAgfVxuICAgICAgICBpZiAodHlwZW9mIGV4dGVuc2lvbnMgPT09ICdvYmplY3QnICYmICdtZXJnZWRQcm9wZXJ0aWVzJyBpbiBleHRlbnNpb25zKSB7XG4gICAgICAgICAgICBsZXQgbWVyZ2VkO1xuICAgICAgICAgICAgbGV0IHJhd01lcmdlZCA9IGV4dGVuc2lvbnMubWVyZ2VkUHJvcGVydGllcztcbiAgICAgICAgICAgIGlmIChpc0FycmF5KHJhd01lcmdlZCkpIHtcbiAgICAgICAgICAgICAgICBtZXJnZWQgPSByYXdNZXJnZWQuc2xpY2UoKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAocmF3TWVyZ2VkID09PSBudWxsIHx8IHJhd01lcmdlZCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgbWVyZ2VkID0gW107XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIG1lcmdlZCA9IFtyYXdNZXJnZWRdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGVsZXRlIGV4dGVuc2lvbnMubWVyZ2VkUHJvcGVydGllcztcbiAgICAgICAgICAgIHRoaXMubWVyZ2VkUHJvcGVydGllcyA9IG1lcmdlZDtcbiAgICAgICAgfVxuICAgICAgICBsZXQgbm9ybWFsaXplZCA9IE9iamVjdC5rZXlzKGV4dGVuc2lvbnMpLnJlZHVjZSgob2JqLCBrZXkpID0+IHtcbiAgICAgICAgICAgIGxldCB2YWx1ZSA9IGV4dGVuc2lvbnNba2V5XTtcbiAgICAgICAgICAgIHN3aXRjaCAodHlwZW9mIHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgY2FzZSAnZnVuY3Rpb24nOlxuICAgICAgICAgICAgICAgICAgICBvYmpba2V5XSA9IG5ldyBNZXRob2RCbHVlcHJpbnQoeyB2YWx1ZSB9KTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSAnb2JqZWN0JzpcbiAgICAgICAgICAgICAgICAgICAgaWYgKHZhbHVlICYmIEJMVUVQUklOVCBpbiB2YWx1ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgb2JqW2tleV0gPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgLyogZmFsbHMgdGhyb3VnaCAqL1xuICAgICAgICAgICAgICAgIG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7XG4gICAgICAgICAgICByZXR1cm4gb3JpZ2luYWwuYXBwbHkodGhpcywgYXJncyk7XG4gICAgICAgIH0gZmluYWxseSB7XG4gICAgICAgICAgICB0aGlzLl9zdXBlciA9IGxhc3RTdXBlcjtcbiAgICAgICAgfVxuICAgIH07XG4gICAgZnVuYy5fX3dyYXBwZWQgPSB0cnVlO1xuICAgIHJldHVybiBmdW5jO1xufVxuZnVuY3Rpb24gbWF5YmVXcmFwKG9yaWdpbmFsKSB7XG4gICAgaWYgKCdfX3dyYXBwZWQnIGluIG9yaWdpbmFsKSByZXR1cm4gb3JpZ2luYWw7XG4gICAgcmV0dXJuIGZ1bmN0aW9uICguLi5hcmdzKSB7XG4gICAgICAgIGlmICghdGhpcykgcmV0dXJuIG9yaWdpbmFsLmFwcGx5KHRoaXMsIGFyZ3MpO1xuICAgICAgICBsZXQgbGFzdFN1cGVyID0gdGhpcy5fc3VwZXI7XG4gICAgICAgIHRoaXMuX3N1cGVyID0gUk9PVDtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHJldHVybiBvcmlnaW5hbC5hcHBseSh0aGlzLCBhcmdzKTtcbiAgICAgICAgfSBmaW5hbGx5IHtcbiAgICAgICAgICAgIHRoaXMuX3N1cGVyID0gbGFzdFN1cGVyO1xuICAgICAgICB9XG4gICAgfTtcbn0iXX0= |
@@ -311,2 +311,2 @@ 'use strict'; | ||
GlimmerObject.isClass = true; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsib2JqZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEsQUFBTyxBQUNMLEFBQUksQUFFSixBQUFpQixBQUNsQixBQUFNLEFBQTJCLEFBQUM7O0FBQ25DLEFBQU8sQUFBUSxBQUFJLEFBQUUsQUFBTSxBQUFFLEFBQWMsQUF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BpbiBhdHRycykge1xuICAgICAgICAgIGxldCBtZXJnZWQgPSBhc3NpZ24oe30sIG1lcmdlZFByb3BzW3Byb3BdKTtcbiAgICAgICAgICBvYmplY3RbcHJvcF0gPSBhc3NpZ24obWVyZ2VkLCBhdHRyc1twcm9wXSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBhZGRTdGF0aWNNaXhpbihtaXhpbjogTWl4aW4pIHtcbiAgICB0aGlzLnN0YXRpY01peGlucy5wdXNoKG1peGluKTtcbiAgfVxuXG4gIGFkZE1peGluKG1peGluOiBNaXhpbikge1xuICAgIHRoaXMubWl4aW5zLnB1c2gobWl4aW4pO1xuICB9XG5cbiAgZ2V0U3RhdGljTWl4aW5zKCk6IE1peGluW10ge1xuICAgIHJldHVybiB0aGlzLnN0YXRpY01peGlucztcbiAgfVxuXG4gIGdldE1peGlucygpOiBNaXhpbltdIHtcbiAgICByZXR1cm4gdGhpcy5taXhpbnM7XG4gIH1cblxuICBhZGRBcHBsaWVkTWl4aW4obWl4aW46IE1peGluKSB7XG4gICAgdGhpcy5hcHBsaWVkTWl4aW5zLnB1c2gobWl4aW4pO1xuICB9XG5cbiAgaGFzQXBwbGllZE1peGluKG1peGluOiBNaXhpbik6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLmFwcGxpZWRNaXhpbnMuaW5kZXhPZihtaXhpbikgIT09IC0xO1xuICB9XG5cbiAgZ2V0QXBwbGllZE1peGlucygpOiBNaXhpbltdIHtcbiAgICByZXR1cm4gdGhpcy5hcHBsaWVkTWl4aW5zO1xuICB9XG5cbiAgaGFzU3RhdGljTWl4aW4obWl4aW46IE1peGluKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuc3RhdGljTWl4aW5zLmluZGV4T2YobWl4aW4pICE9PSAtMTtcbiAgfVxuXG4gIHN0YXRpYyBhcHBseUFsbE1peGlucyhTdWJjbGFzczogR2xpbW1lck9iamVjdEZhY3Rvcnk8YW55P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gICAgICAgZm9yIChsZXQgcHJvcCBpbiBjb25jYXRQcm9wcykge1xuICAgICAgICAgICAgICAgIGlmIChwcm9wIGluIGF0dHJzKSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBjb25jYXQgPSBjb25jYXRQcm9wc1twcm9wXS5zbGljZSgpO1xuICAgICAgICAgICAgICAgICAgICBvYmplY3RbcHJvcF0gPSBjb25jYXQuY29uY2F0KGF0dHJzW3Byb3BdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMuaGFzTWVyZ2VkUHJvcGVydGllcykge1xuICAgICAgICAgICAgbGV0IG1lcmdlZFByb3BzID0gdGhpcy5tZXJnZWRQcm9wZXJ0aWVzO1xuICAgICAgICAgICAgZm9yIChsZXQgcHJvcCBpbiBtZXJnZWRQcm9wcykge1xuICAgICAgICAgICAgICAgIGlmIChwcm9wIGluIGF0dHJzKSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBtZXJnZWQgPSBhc3NpZ24oe30sIG1lcmdlZFByb3BzW3Byb3BdKTtcbiAgICAgICAgICAgICAgICAgICAgb2JqZWN0W3Byb3BdID0gYXNzaWduKG1lcmdlZCwgYXR0cnNbcHJvcF0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbiAgICBhZGRTdGF0aWNNaXhpbihtaXhpbikge1xuICAgICAgICB0aGlzLnN0YXRpY01peGlucy5wdXNoKG1peGluKTtcbiAgICB9XG4gICAgYWRkTWl4aW4obWl4aW4pIHtcbiAgICAgICAgdGhpcy5taXhpbnMucHVzaChtaXhpbik7XG4gICAgfVxuICAgIGdldFN0YXRpY01peGlucygpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuc3RhdGljTWl4aW5zO1xuICAgIH1cbiAgICBnZXRNaXhpbnMoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLm1peGlucztcbiAgICB9XG4gIC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ygpKSk7XG4gICAgfVxuICAgIHNlYWwoKSB7XG4gICAgICAgIGxldCByZWZlcmVuY2VUeXBlcyA9IHR1cmJvY2hhcmdlKGFzc2lnbih7fSwgdGhpcy5yZWZlcmVuY2VUeXBlcykpO1xuICAgICAgICB0dXJib2NoYXJnZSh0aGlzLmNvbmNhdGVuYXRlZFByb3BlcnRpZXMpO1xuICAgICAgICB0dXJib2NoYXJnZSh0aGlzLm1lcmdlZFByb3BlcnRpZXMpO1xuICAgICAgICBpZiAoIXRoaXMuaGFzTWVyZ2VkUHJvcGVydGllcyAmJiAhdGhpcy5oYXNDb25jYXRlbmF0ZWRQcm9wZXJ0aWVzKSB7XG4gICAgICAgICAgICB0aGlzLmluaXQgPSBmdW5jdGlvbiAoKSB7fTtcbiAgICAgICAgfVxuICAgICAgICBsZXQgc2xvdHMgPSB0aGlzLnNsb3RzO1xuICAgICAgICBjbGFzcyBTbG90cyB7XG4gICAgICAgICAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgICAgICAgICBzbG90cy5mb3JFYWNoKG5hbWUgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzW25hbWVdID0gRU1QVFlfQ0FDSEU7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5JbnN0YW5jZU1ldGFDb25zdHJ1Y3RvciA9IGNsYXNzIGV4dGVuZHMgU2VhbGVkTWV0YSB7XG4gICAgICAgICAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgICAgICAgICBzdXBlciguLi5hcmd1bWVudHMpO1xuICAgICAgICAgICAgICAgIHRoaXMuc2xvdHMgPSBuZXcgU2xvdHMoKTtcbiAgICAgICAgICAgICAgICB0aGlzLnJlZmVyZW5jZVR5cGVzID0gcmVmZXJlbmNlVHlwZXM7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBnZXRSZWZlcmVuY2VUeXBlcygpIHtcbiAgICAgICAgICAgICAg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iB0cnVlO1xuICAgIH07XG59KCk7XG5leHBvcnQgZnVuY3Rpb24gUk9PVCguLi5fYXJncykge31cblJPT1QuX19oYXNTdXBlciA9IGZhbHNlO1xuZXhwb3J0IGZ1bmN0aW9uIGhhc1N1cGVyKGZ1bmMpIHtcbiAgICBpZiAoZnVuY1snX19oYXNTdXBlciddID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgZnVuY1snX19oYXNTdXBlciddID0gY2hlY2tIYXNTdXBlcihmdW5jKTtcbiAgICB9XG4gICAgcmV0dXJuIGZ1bmNbJ19faGFzU3VwZXInXTtcbn0iXX0= |
@@ -80,2 +80,2 @@ 'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OzsyQ0FBUyxBQUFPLEFBQUksQUFBTzs7Ozs7O21CQUFFLEFBQVM7Ozs7OzttQkFBRSxBQUFZLEFBQXdCLEFBQU0sQUFBYyxBQUFDLEFBQ2pHLEFBQU87Ozs7Ozs7OztxQkFBRSxBQUFROzs7Ozs7cUJBQUUsQUFBUSxBQUFFLEFBQU0sQUFBZ0IsQUFBQyxBQUNwRCxBQUFPOzs7Ozs7Ozs7a0JBQUUsQUFBSzs7Ozs7O2tCQUFFLEFBQVM7Ozs7OztrQkFBRSxBQUFPLEFBQUUsQUFBTSxBQUFhLEFBQUMsQUFDeEQsQUFBTzs7Ozs7Ozs7O3dCQUFFLEFBQVc7Ozs7Ozt3QkFBRSxBQUFLLEFBQUUsQUFBTSxBQUFtQixBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgZGVmYXVsdCBhcyBkZWZhdWx0LCBDbGFzc01ldGEsIEluc3Rhbm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G4gICAgICAgICAgICBwW2xhc3RdID0gdmFsdWU7XG4gICAgICAgIH07XG4gICAgICAgIHN1cGVyKHsgZ2V0LCBzZXQgfSwgW25hbWVdKTtcbiAgICAgICAgdGhpcy5uYW1lID0gbmFtZTtcbiAgICB9XG4gICAgZGVzY3JpcHRvcih0YXJnZXQsIGtleSwgbWV0YSkge1xuICAgICAgICBpZiAodGhpcy5uYW1lWzBdID09PSBrZXkpIHRocm93IG5ldyBFcnJvcihgU2V0dGluZyBhbGlhcyAnJHtrZXl9JyBvbiBzZWxmYCk7XG4gICAgICAgIHJldHVybiBzdXBlci5kZXNjcmlwdG9yKHRhcmdldCwga2V5LCBtZXRhKTtcbiAgICB9XG59XG5leHBvcnQgZnVuY3Rpb24gYWxpYXMobmFtZSkge1xuICAgIHJldHVybiBuZXcgQWxpYXNCbHVlcHJpbnQobmFtZS5zcGxpdCgnLicpKTtcbn0iXX0= |
@@ -437,2 +437,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWl4aW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJtaXhpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBLEFBQU8sQUFBRSxBQUFVLEFBQUUsQUFBTSxBQUEyQixBQUFDOztBQUN2RCxBQUFPLEFBQVEsQUFBSSxBQUFFLEFBQU0sQUFBRSxBQUFNLEFBQWUsQUFBQzs7QUFDbkQsQUFBc0IsQUFFcEIsQUFBUyxBQUNULEFBQVksQUFDWixBQUFXLEFBQ1osQUFBTSxBQUFVLEFBQUM7O0FBRWxCLEFBQU8sQUFBRSxBQUFJLEFBQUUsQUFBTSxBQUFTLEFBQUMsQUFHL0IsQUFBTTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUFFLEFBQU8sQUFBRSxVQUFHLEFBQUssQUFBQyxNQUU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AwKSB7XG4gICAgICAgICAgICByZXR1cm4gbmV3IHRoaXMoe30sIFtdKTtcbiAgICAgICAgfSBlbHNlIGlmIChleHRlbnNpb25zIGluc3RhbmNlb2YgTWl4aW4pIHtcbiAgICAgICAgICAgIHJldHVybiBuZXcgdGhpcyh7fSwgYXJncyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBsZXQgZGVwcyA9IGFyZ3Muc2xpY2UoMCwgLTEpLm1hcCh0b01peGluKTtcbiAgICAgICAgICAgIHJldHVybiBuZXcgdGhpcyhleHRlbnNpb25zLCBkZXBzKTtcbiAgICAgICAgfVxuICAgIH1cbiAgICBzdGF0aWMgbWl4aW5zKG9iaikge1xuICAgICAgICBpZiAodHlwZW9mIG9iaiAhPT0gJ29iamVjdCcgfHwgb2JqID09PSBudWxsKSByZXR1cm4gW107XG4gICAgICAgIGxldCBtZXRhID0gQ2xhc3NNZXRhLmZvcihvYmopO1xuICAgICAgICBpZiAoIW1ldGEpIHJldHVybiBbXTtcbiAgICAgICAgcmV0dXJuIG1ldGEuZ2V0QXBwbGllZE1peGlucygpO1xuICAgIH1cbiAgICBkZXRlY3Qob2JqKSB7XG4gICAgICAgIGlmICh0eXBlb2Ygb2JqICE9PSAnb2JqZWN0JyB8fCBvYmogPT09IG51bGwpIHJldHVybiBmYWxzZTtcbiAgICAgICAgaWYgKG9iaiBpbnN0YW5jZW9mIE1peGluKSB7XG4gICAgICAgICAgICByZXR1cm4gb2JqLmRlcGVuZGVuY2llcy5pbmRleE9mKHRoaXMpICE9PSAtMTtcbiAgICAgICAgfVxuICAgICAgICBsZXQgbWV0YSA9IENsYXNzTWV0YS5mb3Iob2JqKTtcbiAgICAgICAgcmV0dXJuICEhbWV0YSAmJiBtZXRhLmhhc0FwcGxpZWRNaXhpbih0aGlzKTtcbiAgICB9XG4gICAgcmVvcGVuKGV4dGVuc2lvbnMpIHtcbiAgICAgICAgaWYgKHRoaXMuZXh0ZW5zaW9ucykge1xuICAgICAgICA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AgICAgICAgICAgIG1lcmdlZCA9IHJhd01lcmdlZC5zbGljZSgpO1xuICAgICAgICAgICAgfSBlbHNlIGlmIChyYXdNZXJnZWQgPT09IG51bGwgfHwgcmF3TWVyZ2VkID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICBtZXJnZWQgPSBbXTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgbWVyZ2VkID0gW3Jhd01lcmdlZF07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBkZWxldGUgZXh0ZW5zaW9ucy5tZXJnZWRQcm9wZXJ0aWVzO1xuICAgICAgICAgICAgdGhpcy5tZXJnZWRQcm9wZXJ0aWVzID0gbWVyZ2VkO1xuICAgICAgICB9XG4gICAgICAgIGxldCBub3JtYWxpemVkID0gT2JqZWN0LmtleXMoZXh0ZW5zaW9ucykucmVkdWNlKChvYmosIGtleSkgPT4ge1xuICAgICAgICAgICAgbGV0IHZhbHVlID0gZXh0ZW5zaW9uc1trZXldO1xuICAgICAgICAgICAgc3dpdGNoICh0eXBlb2YgdmFsdWUpIHtcbiAgICAgICAgICAgICAgICBjYXNlICdmdW5jdGlvbic6XG4gICAgICAgICAgICAgICAgICAgIG9ialtrZXldID0gbmV3IE1ldGhvZEJsdWVwcmludCh7IHZhbHVlIH0pO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlICdvYmplY3QnOlxuICAgICAgICAgICAgICAgICAgICBpZiAodmFsdWUgJiYgQkxVRVBSSU5UIGluIHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBvYmpba2V5XSA9IHZhbHVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvKiBmYWxscyB0aHJvdWdoICovXG4gICAgICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICAgICAgb2JqW2tleV0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maW5hbGx5IHtcbiAgICAgICAgICAgIHRoaXMuX3N1cGVyID0gbGFzdFN1cGVyO1xuICAgICAgICB9XG4gICAgfTtcbiAgICBmdW5jLl9fd3JhcHBlZCA9IHRydWU7XG4gICAgcmV0dXJuIGZ1bmM7XG59XG5mdW5jdGlvbiBtYXliZVdyYXAob3JpZ2luYWwpIHtcbiAgICBpZiAoJ19fd3JhcHBlZCcgaW4gb3JpZ2luYWwpIHJldHVybiBvcmlnaW5hbDtcbiAgICByZXR1cm4gZnVuY3Rpb24gKC4uLmFyZ3MpIHtcbiAgICAgICAgaWYgKCF0aGlzKSByZXR1cm4gb3JpZ2luYWwuYXBwbHkodGhpcywgYXJncyk7XG4gICAgICAgIGxldCBsYXN0U3VwZXIgPSB0aGlzLl9zdXBlcjtcbiAgICAgICAgdGhpcy5fc3VwZXIgPSBST09UO1xuICAgICAgICB0cnkge1xuICAgICAgICAgICAgcmV0dXJuIG9yaWdpbmFsLmFwcGx5KHRoaXMsIGFyZ3MpO1xuICAgICAgICB9IGZpbmFsbHkge1xuICAgICAgICAgICAgdGhpcy5fc3VwZXIgPSBsYXN0U3VwZXI7XG4gICAgICAgIH1cbiAgICB9O1xufSJdfQ== |
@@ -436,2 +436,2 @@ "use strict"; | ||
GlimmerObject.isClass = true; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsib2JqZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEsQUFBTyxBQUNMLEFBQUksQUFFSixBQUFpQixBQUNsQixBQUFNLEFBQTJCLEFBQUM7O0FBQ25DLEFBQU8sQUFBUSxBQUFJLEFBQUUsQUFBTSxBQUFFLEFBQWMsQUFBRSxBQUFNLEFBQWUsQUFBQzs7QUFDbkUsQUFBTyxBQUVMLEFBQU0sQUFBSSxBQUFXLEFBQ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ljZSgpO1xuICAgICAgICAgIG9iamVjdFtwcm9wXSA9IGNvbmNhdC5jb25jYXQoYXR0cnNbcHJvcF0pO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKHRoaXMuaGFzTWVyZ2VkUHJvcGVydGllcykge1xuICAgICAgbGV0IG1lcmdlZFByb3BzID0gdGhpcy5tZXJnZWRQcm9wZXJ0aWVzO1xuICAgICAgZm9yIChsZXQgcHJvcCBpbiBtZXJnZWRQcm9wcykge1xuICAgICAgICBpZiAocHJvcCBpbiBhdHRycykge1xuICAgICAgICAgIGxldCBtZXJnZWQgPSBhc3NpZ24oe30sIG1lcmdlZFByb3BzW3Byb3BdKTtcbiAgICAgICAgICBvYmplY3RbcHJvcF0gPSBhc3NpZ24obWVyZ2VkLCBhdHRyc1twcm9wXSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBhZGRTdGF0aWNNaXhpbihtaXhpbjogTWl4aW4pIHtcbiAgICB0aGlzLnN0YXRpY01peGlucy5wdXNoKG1peGluKTtcbiAgfVxuXG4gIGFkZE1peGluKG1peGluOiBNaXhpbikge1xuICAgIHRoaXMubWl4aW5zLnB1c2gobWl4aW4pO1xuICB9XG5cbiAgZ2V0U3RhdGljTWl4aW5zKCk6IE1peGluW10ge1xuICAgIHJldHVybiB0aGlzLnN0YXRpY01peGlucztcbiAgfVxuXG4gIGdldE1peGlucygpOiBNaXhpbltdIHtcbiAgICByZXR1cm4gdGhpcy5taXhpbnM7XG4gIH1cblxuICBhZGRBcHBsaWVkTWl4aW4obWl4aW46IE1peGluKSB7XG4gICAgdGhpcy5hcHBsaWVkTWl4aW5zLnB1c2gobWl4aW4pO1xuICB9XG5cbiAgaGFzQXBwbGllZE1peGluKG1peGluOiBNaXhpbik6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLmFwcGxpZWRNaXhpbnMuaW5kZXhPZihtaXhpbikgIT09IC0xO1xuICB9XG5cbiAgZ2V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W0NMQVNTX01FVEFdIHx8IG51bGw7ZWxzZSByZXR1cm4gbnVsbDtcbiAgICB9XG4gICAgaW5pdChvYmplY3QsIGF0dHJzKSB7XG4gICAgICAgIGlmICh0eXBlb2YgYXR0cnMgIT09ICdvYmplY3QnIHx8IGF0dHJzID09PSBudWxsKSByZXR1cm47XG4gICAgICAgIGlmICh0aGlzLmhhc0NvbmNhdGVuYXRlZFByb3BlcnRpZXMpIHtcbiAgICAgICAgICAgIGxldCBjb25jYXRQcm9wcyA9IHRoaXMuY29uY2F0ZW5hdGVkUHJvcGVydGllcztcbiAgICAgICAgICAgIGZvciAobGV0IHByb3AgaW4gY29uY2F0UHJvcHMpIHtcbiAgICAgICAgICAgICAgICBpZiAocHJvcCBpbiBhdHRycykge1xuICAgICAgICAgICAgICAgICAgICBsZXQgY29uY2F0ID0gY29uY2F0UHJvcHNbcHJvcF0uc2xpY2UoKTtcbiAgICAgICAgICAgICAgICAgICAgb2JqZWN0W3Byb3BdID0gY29uY2F0LmNvbmNhdChhdHRyc1twcm9wXSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmICh0aGlzLmhhc01lcmdlZFByb3BlcnRpZXMpIHtcbiAgICAgICAgICAgIGxldCBtZXJnZWRQcm9wcyA9IHRoaXMubWVyZ2VkUHJvcGVydGllcztcbiAgICAgICAgICAgIGZvciAobGV0IHByb3AgaW4gbWVyZ2VkUHJvcHMpIHtcbiAgICAgICAgICAgICAgICBpZiAocHJvcCBpbiBhdHRycykge1xuICAgICAgICAgICAgICAgICAgICBsZXQgbWVyZ2VkID0gYXNzaWduKHt9LCBtZXJnZWRQcm9wc1twcm9wXSk7XG4gICAgICAgICAgICAgICAgICAgIG9iamVjdFtwcm9wXSA9IGFzc2lnbihtZXJnZWQsIGF0dHJzW3Byb3BdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgYWR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hQ29uc3RydWN0b3IgPSBjbGFzcyBleHRlbmRzIFNlYWxlZE1ldGEge1xuICAgICAgICAgICAgY29uc3RydWN0b3IoKSB7XG4gICAgICAgICAgICAgICAgc3VwZXIoLi4uYXJndW1lbnRzKTtcbiAgICAgICAgICAgICAgICB0aGlzLnNsb3RzID0gbmV3IFNsb3RzKCk7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2VUeXBlcyA9IHJlZmVyZW5jZVR5cGVzO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZ2V0UmVmZXJlbmNlVHlwZXMoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMucmVmZXJlbmNlVHlwZXM7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZWZlcmVuY2VUeXBlRm9yKHByb3BlcnR5KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMucmVmZXJlbmNlVHlwZXNbcHJvcGVydHldIHx8IFByb3BlcnR5UmVmZXJlbmNlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZ2V0U2xvdHMoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuc2xvdHM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgICAgIHR1cmJvY2hhcmdlKHRoaXMpO1xuICAgIH1cbn1cbmZ1bmN0aW9uIG1lcmdlTWVyZ2VkUHJvcGVydGllcyhhdHRycywgcGFyZW50KSB7XG4gICAgbGV0IG1lcmdlZCA9IGFzc2lnbih7fSwgcGFyZW50KTtcbiAgICBmb3IgKGxldCBwcm9wIGluIGF0dHJzKSB7XG4gICAgICAgIGlmIChwcm9wIGluIHBhcmVudCAmJiB0eXBlb2YgcGFyZW50W3Byb3BdID09PSAnZnVuY3Rpb24nICYmIHR5cGVvZiBhdHRyc1twcm9wXSA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgICAgbGV0IHdyYXBwZWQgPSB3cmFwTWV0aG9kKHBhcmVudCw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4gICAgfVxuICAgIHN0YXRpYyBlYWNoQ29tcHV0ZWRQcm9wZXJ0eShjYWxsYmFjaykge1xuICAgICAgICBsZXQgbWV0YWRhdGEgPSB0aGlzW0NMQVNTX01FVEFdLmdldFByb3BlcnR5TWV0YWRhdGEoKTtcbiAgICAgICAgaWYgKCFtZXRhZGF0YSkgcmV0dXJuO1xuICAgICAgICBmb3IgKGxldCBwcm9wIGluIG1ldGFkYXRhKSB7XG4gICAgICAgICAgICBjYWxsYmFjayhwcm9wLCBtZXRhZGF0YVtwcm9wXSk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgaW5pdCgpIHt9XG4gICAgZ2V0KGtleSkge1xuICAgICAgICByZXR1cm4gdGhpc1trZXldO1xuICAgIH1cbiAgICBzZXQoa2V5LCB2YWx1ZSkge1xuICAgICAgICB0aGlzW2tleV0gPSB2YWx1ZTtcbiAgICB9XG4gICAgc2V0UHJvcGVydGllcyhhdHRycykge1xuICAgICAgICBhc3NpZ24odGhpcywgYXR0cnMpO1xuICAgIH1cbiAgICBkZXN0cm95KCkge31cbn1cbkdsaW1tZXJPYmplY3RbXCJkZjhiZTRjOC00ZTg5LTQ0ZTItYThmOS01NTBjOGRhY2RjYTdcIl0gPSBJbnN0YW5jZU1ldGEuZnJvbVBhcmVudChudWxsKTtcbkdsaW1tZXJPYmplY3QuaXNDbGFzcyA9IHRydWU7Il19 |
@@ -30,2 +30,2 @@ 'use strict'; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ1dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztRQWtCcUIsQUFBRyxBQUFZOztBQWxCcEMsSUFBTSxBQUFpQixvQkFBRyxBQUFtQyxBQUFDLEFBRTlELEFBQU07SUFBTyxBQUFhLEFBQUcsb0RBQzNCO1FBQUksQUFBZSw4QkFD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4gLTE7XG4gICAgaWYgKHNvdXJjZUF2YWlsYWJsZSkge1xuICAgICAgICByZXR1cm4gZnVuY3Rpb24gY2hlY2tIYXNTdXBlcihmdW5jKSB7XG4gICAgICAgICAgICByZXR1cm4gSEFTX1NVUEVSX1BBVFRFUk4udGVzdChmdW5jLnRvU3RyaW5nKCkpO1xuICAgICAgICB9O1xuICAgIH1cbiAgICByZXR1cm4gZnVuY3Rpb24gY2hlY2tIYXNTdXBlcigpIHtcbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgfTtcbn0oKTtcbmV4cG9ydCBmdW5jdGlvbiBST09UKC4uLl9hcmdzKSB7fVxuUk9PVC5fX2hhc1N1cGVyID0gZmFsc2U7XG5leHBvcnQgZnVuY3Rpb24gaGFzU3VwZXIoZnVuYykge1xuICAgIGlmIChmdW5jWydfX2hhc1N1cGVyJ10gPT09IHVuZGVmaW5lZCkge1xuICAgICAgICBmdW5jWydfX2hhc1N1cGVyJ10gPSBjaGVja0hhc1N1cGVyKGZ1bmMpO1xuICAgIH1cbiAgICByZXR1cm4gZnVuY1snX19oYXNTdXBlciddO1xufSJdfQ== |
@@ -1,5 +0,4 @@ | ||
export { default as default, ClassMeta, InstanceMeta } from './lib/object'; | ||
export { default, ClassMeta, InstanceMeta } from './lib/object'; | ||
export { computed, observer } from './lib/computed'; | ||
export { Mixin, Blueprint, toMixin } from './lib/mixin'; | ||
export { aliasMethod, alias } from './lib/descriptors'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxJQUFJLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUF3QixNQUFNLGNBQWMsQ0FBQztBQUNqRyxPQUFPLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3BELE9BQU8sRUFBRSxLQUFLLEVBQUUsU0FBUyxFQUFFLE9BQU8sRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUN4RCxPQUFPLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxNQUFNLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgZGVmYXVsdCBhcyBkZWZhdWx0LCBDbGFzc01ldGEsIEluc3RhbmNlTWV0YSwgR2xpbW1lck9iamVjdEZhY3RvcnkgfSBmcm9tICcuL2xpYi9vYmplY3QnO1xuZXhwb3J0IHsgY29tcHV0ZWQsIG9ic2VydmVyIH0gZnJvbSAnLi9saWIvY29tcHV0ZWQnO1xuZXhwb3J0IHsgTWl4aW4sIEJsdWVwcmludCwgdG9NaXhpbiB9IGZyb20gJy4vbGliL21peGluJztcbmV4cG9ydCB7IGFsaWFzTWV0aG9kLCBhbGlhcyB9IGZyb20gJy4vbGliL2Rlc2NyaXB0b3JzJztcbiJdfQ== | ||
export { aliasMethod, alias } from './lib/descriptors'; |
@@ -44,9 +44,10 @@ import { ComputedReferenceBlueprint, Meta } from '@glimmer/object-reference'; | ||
enumerable: true, | ||
configurable: true, | ||
configurable: true | ||
}; | ||
let get = _desc.get; | ||
if (get && get.length > 0) { | ||
originalGet = function () { return get.call(this, accessorName); }; | ||
} | ||
else { | ||
originalGet = function () { | ||
return get.call(this, accessorName); | ||
}; | ||
} else { | ||
originalGet = _desc.get; | ||
@@ -59,4 +60,3 @@ } | ||
}; | ||
} | ||
else { | ||
} else { | ||
originalSet = _desc.set; | ||
@@ -67,4 +67,3 @@ } | ||
let slot = Meta.for(this).getSlots()[accessorName]; | ||
if (slot !== EMPTY_CACHE) | ||
return slot; | ||
if (slot !== EMPTY_CACHE) return slot; | ||
} | ||
@@ -83,9 +82,7 @@ return originalGet.call(this); | ||
}; | ||
} | ||
else { | ||
} else { | ||
cacheSet = function (value) { | ||
let meta = Meta.for(this); | ||
let slots = meta.getSlots(); | ||
if (value !== undefined) | ||
slots[accessorName] = value; | ||
if (value !== undefined) slots[accessorName] = value; | ||
}; | ||
@@ -105,4 +102,3 @@ } | ||
return cacheGet.call(this); | ||
} | ||
finally { | ||
} finally { | ||
this._super = lastSuper; | ||
@@ -118,4 +114,3 @@ } | ||
return cacheSet.call(this, val); | ||
} | ||
finally { | ||
} finally { | ||
this._super = lastSuper; | ||
@@ -142,12 +137,8 @@ } | ||
}).property(...deps); | ||
} | ||
else if (typeof last === 'object') { | ||
} else if (typeof last === 'object') { | ||
return new ComputedBlueprint(last).property(...deps); | ||
} | ||
else { | ||
} else { | ||
throw new TypeError("computed expects a function or an object as last argument"); | ||
} | ||
} | ||
export function observer(..._args) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcHV0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjb21wdXRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsSUFBSSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDN0UsT0FBTyxFQUFFLFdBQVcsRUFBYSxNQUFNLFVBQVUsQ0FBQztBQUNsRCxPQUFPLEVBQWMsU0FBUyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBeUJoRCxNQUFNLHdCQUF5QixTQUFRLFNBQVM7SUFLOUMsWUFBWSxRQUE0QixFQUFFLE9BQW1CLEVBQUU7UUFDN0QsS0FBSyxFQUFFLENBQUM7UUFIRixhQUFRLEdBQVcsRUFBRSxDQUFDO1FBSTVCLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO0lBQ25CLENBQUM7SUFFRCxVQUFVLENBQUMsT0FBZSxFQUFFLEdBQVcsRUFBRSxTQUFv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5wcm9wZXJ0eSguLi5kZXBzKTtcbiAgfSBlbHNlIHtcbiAgICB0aHJvdyBuZXcgVHlwZUVycm9yKFwiY29tcHV0ZWQgZXhwZWN0cyBhIGZ1bmN0aW9uIG9yIGFuIG9iamVjdCBhcyBsYXN0IGFyZ3VtZW50XCIpO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBvYnNlcnZlciguLi5fYXJnczogYW55W10pIHtcblxufVxuIl19 | ||
export function observer(..._args) {} |
@@ -46,4 +46,3 @@ import { Blueprint, Descriptor } from './mixin'; | ||
descriptor(target, key, meta) { | ||
if (this.name[0] === key) | ||
throw new Error(`Setting alias '${key}' on self`); | ||
if (this.name[0] === key) throw new Error(`Setting alias '${key}' on self`); | ||
return super.descriptor(target, key, meta); | ||
@@ -54,3 +53,2 @@ } | ||
return new AliasBlueprint(name.split('.')); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzY3JpcHRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXNjcmlwdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUVoRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFL0MsMkJBQTRCLFNBQVEsVUFBVTtJQUc1QyxZQUFZLElBQVk7UUFDdEIsS0FBSyxFQUFFLENBQUM7UUFDUixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztJQUNuQixDQUFDO0lBRUQsTUFBTSxDQUFDLE1BQWMsRUFBRSxHQUFXLEVBQUUsS0FBYTtRQUMvQyxJQUFJLElBQUksR0FBVyxJQUFJLENBQUMsSUFBSSxDQUFDO1FBRTdCLE1BQU0sQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLEdBQUcsRU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||
} |
@@ -31,7 +31,5 @@ import { CLASS_META } from '@glimmer/object-reference'; | ||
return new this({}, []); | ||
} | ||
else if (extensions instanceof Mixin) { | ||
} else if (extensions instanceof Mixin) { | ||
return new this({}, args); | ||
} | ||
else { | ||
} else { | ||
let deps = args.slice(0, -1).map(toMixin); | ||
@@ -42,12 +40,9 @@ return new this(extensions, deps); | ||
static mixins(obj) { | ||
if (typeof obj !== 'object' || obj === null) | ||
return []; | ||
if (typeof obj !== 'object' || obj === null) return []; | ||
let meta = ClassMeta.for(obj); | ||
if (!meta) | ||
return []; | ||
if (!meta) return []; | ||
return meta.getAppliedMixins(); | ||
} | ||
detect(obj) { | ||
if (typeof obj !== 'object' || obj === null) | ||
return false; | ||
if (typeof obj !== 'object' || obj === null) return false; | ||
if (obj instanceof Mixin) { | ||
@@ -68,7 +63,5 @@ return obj.dependencies.indexOf(this) !== -1; | ||
concat = rawConcat.slice(); | ||
} | ||
else if (rawConcat === null || rawConcat === undefined) { | ||
} else if (rawConcat === null || rawConcat === undefined) { | ||
concat = []; | ||
} | ||
else { | ||
} else { | ||
concat = [rawConcat]; | ||
@@ -84,7 +77,5 @@ } | ||
merged = rawMerged.slice(); | ||
} | ||
else if (rawMerged === null || rawMerged === undefined) { | ||
} else if (rawMerged === null || rawMerged === undefined) { | ||
merged = []; | ||
} | ||
else { | ||
} else { | ||
merged = [rawMerged]; | ||
@@ -140,4 +131,3 @@ } | ||
mergeProperties(target, parent, meta) { | ||
if (meta.hasAppliedMixin(this)) | ||
return; | ||
if (meta.hasAppliedMixin(this)) return; | ||
meta.addAppliedMixin(this); | ||
@@ -158,4 +148,3 @@ this.mergedProperties.forEach(k => meta.addMergedProperty(k, parent[k])); | ||
let Super = Parent; | ||
let Subclass = class extends Super { | ||
}; | ||
let Subclass = class extends Super {}; | ||
Subclass[CLASS_META] = InstanceMeta.fromParent(Parent[CLASS_META]); | ||
@@ -169,3 +158,3 @@ let mixins = extensions.map(toMixin); | ||
export function relinkSubclasses(Parent) { | ||
Parent[CLASS_META].getSubclasses().forEach((Subclass) => { | ||
Parent[CLASS_META].getSubclasses().forEach(Subclass => { | ||
Subclass[CLASS_META].reset(Parent[CLASS_META]); | ||
@@ -179,6 +168,3 @@ Subclass.prototype = Object.create(Parent.prototype); | ||
export function toMixin(extension) { | ||
if (extension instanceof Mixin) | ||
return extension; | ||
else | ||
return new Mixin(extension, []); | ||
if (extension instanceof Mixin) return extension;else return new Mixin(extension, []); | ||
} | ||
@@ -215,4 +201,3 @@ class ValueDescriptor extends Descriptor { | ||
value = classMeta.getConcatenatedProperty(key); | ||
} | ||
else if (classMeta.hasMergedProperty(key)) { | ||
} else if (classMeta.hasMergedProperty(key)) { | ||
classMeta.addMergedProperty(key, value); | ||
@@ -254,8 +239,6 @@ value = classMeta.getMergedProperty(key); | ||
export function wrapMethod(home, methodName, original) { | ||
if (!(methodName in home)) | ||
return maybeWrap(original); | ||
if (!(methodName in home)) return maybeWrap(original); | ||
let superMethod = home[methodName]; | ||
let func = function (...args) { | ||
if (!this) | ||
return original.apply(this, args); | ||
if (!this) return original.apply(this, args); | ||
let lastSuper = this._super; | ||
@@ -265,4 +248,3 @@ this._super = superMethod; | ||
return original.apply(this, args); | ||
} | ||
finally { | ||
} finally { | ||
this._super = lastSuper; | ||
@@ -275,7 +257,5 @@ } | ||
function maybeWrap(original) { | ||
if ('__wrapped' in original) | ||
return original; | ||
if ('__wrapped' in original) return original; | ||
return function (...args) { | ||
if (!this) | ||
return original.apply(this, args); | ||
if (!this) return original.apply(this, args); | ||
let lastSuper = this._super; | ||
@@ -285,8 +265,6 @@ this._super = ROOT; | ||
return original.apply(this, args); | ||
} | ||
finally { | ||
} finally { | ||
this._super = lastSuper; | ||
} | ||
}; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWl4aW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJtaXhpbi50cyJdLCJuYW1lcyI6W10sIm1hc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0aGlzLl9zdXBlciA9IHN1cGVyTWV0aG9kO1xuXG4gICAgdHJ5IHtcbiAgICAgIHJldHVybiBvcmlnaW5hbC5hcHBseSh0aGlzLCBhcmdzKTtcbiAgICB9IGZpbmFsbHkge1xuICAgICAgdGhpcy5fc3VwZXIgPSBsYXN0U3VwZXI7XG4gICAgfVxuICB9O1xuXG4gICg8YW55PmZ1bmMpLl9fd3JhcHBlZCA9IHRydWU7XG5cbiAgcmV0dXJuIGZ1bmM7XG59XG5cbmZ1bmN0aW9uIG1heWJlV3JhcChvcmlnaW5hbDogRnVuY3Rpb24pIHtcbiAgaWYgKCdfX3dyYXBwZWQnIGluIG9yaWdpbmFsKSByZXR1cm4gb3JpZ2luYWw7XG5cbiAgcmV0dXJuIGZ1bmN0aW9uKHRoaXM6IEdsaW1tZXJPYmplY3QsIC4uLmFyZ3M6IGFueVtdKSB7XG4gICAgaWYgKCF0aGlzKSByZXR1cm4gb3JpZ2luYWwuYXBwbHkodGhpcywgYXJncyk7XG5cbiAgICBsZXQgbGFzdFN1cGVyID0gdGhpcy5fc3VwZXI7XG4gICAgdGhpcy5fc3VwZXIgPSBST09UO1xuXG4gICAgdHJ5IHtcbiAgICAgIHJldHVybiBvcmlnaW5hbC5hcHBseSh0aGlzLCBhcmdzKTtcbiAgICB9IGZpbmFsbHkge1xuICAgICAgdGhpcy5fc3VwZXIgPSBsYXN0U3VwZXI7XG4gICAgfVxuICB9O1xufVxuIl19 | ||
} |
@@ -6,3 +6,3 @@ import { Meta, PropertyReference } from '@glimmer/object-reference'; | ||
import { ROOT } from './utils'; | ||
export const EMPTY_CACHE = function EMPTY_CACHE() { }; | ||
export const EMPTY_CACHE = function EMPTY_CACHE() {}; | ||
const CLASS_META = "df8be4c8-4e89-44e2-a8f9-550c8dacdca7"; | ||
@@ -40,12 +40,6 @@ export function turbocharge(obj) { | ||
static for(object) { | ||
if (CLASS_META in object) | ||
return object[CLASS_META]; | ||
else if (object.constructor) | ||
return object.constructor[CLASS_META] || null; | ||
else | ||
return null; | ||
if (CLASS_META in object) return object[CLASS_META];else if (object.constructor) return object.constructor[CLASS_META] || null;else return null; | ||
} | ||
init(object, attrs) { | ||
if (typeof attrs !== 'object' || attrs === null) | ||
return; | ||
if (typeof attrs !== 'object' || attrs === null) return; | ||
if (this.hasConcatenatedProperties) { | ||
@@ -118,4 +112,3 @@ let concatProps = this.concatenatedProperties; | ||
hasConcatenatedProperty(property) { | ||
if (!this.hasConcatenatedProperties) | ||
return false; | ||
if (!this.hasConcatenatedProperties) return false; | ||
return property in this.concatenatedProperties; | ||
@@ -134,4 +127,3 @@ } | ||
this.concatenatedProperties[property] = val; | ||
} | ||
else { | ||
} else { | ||
this.concatenatedProperties[property] = value; | ||
@@ -141,4 +133,3 @@ } | ||
hasMergedProperty(property) { | ||
if (!this.hasMergedProperties) | ||
return false; | ||
if (!this.hasMergedProperties) return false; | ||
return property in this.mergedProperties; | ||
@@ -159,4 +150,3 @@ } | ||
this.mergedProperties[property] = mergeMergedProperties(value, this.mergedProperties[property]); | ||
} | ||
else { | ||
} else { | ||
value = value === null ? value : value || {}; | ||
@@ -203,3 +193,3 @@ this.mergedProperties[property] = value; | ||
if (!this.hasMergedProperties && !this.hasConcatenatedProperties) { | ||
this.init = function () { }; | ||
this.init = function () {}; | ||
} | ||
@@ -239,4 +229,3 @@ let slots = this.slots; | ||
merged[prop] = wrapped; | ||
} | ||
else { | ||
} else { | ||
merged[prop] = attrs[prop]; | ||
@@ -257,4 +246,3 @@ } | ||
super.reset(parent); | ||
if (parent) | ||
this[CLASS_META].reset(parent[CLASS_META]); | ||
if (parent) this[CLASS_META].reset(parent[CLASS_META]); | ||
} | ||
@@ -270,4 +258,3 @@ seal() { | ||
this._meta = null; | ||
if (attrs) | ||
assign(this, attrs); | ||
if (attrs) assign(this, attrs); | ||
this.constructor[CLASS_META].init(this, attrs || null); | ||
@@ -295,4 +282,3 @@ this._super = ROOT; | ||
let value = this[CLASS_META].metadataForProperty(property); | ||
if (!value) | ||
throw new Error(`metaForProperty() could not find a computed property with key '${property}'.`); | ||
if (!value) throw new Error(`metaForProperty() could not find a computed property with key '${property}'.`); | ||
return value; | ||
@@ -302,4 +288,3 @@ } | ||
let metadata = this[CLASS_META].getPropertyMetadata(); | ||
if (!metadata) | ||
return; | ||
if (!metadata) return; | ||
for (let prop in metadata) { | ||
@@ -309,3 +294,3 @@ callback(prop, metadata[prop]); | ||
} | ||
init() { } | ||
init() {} | ||
get(key) { | ||
@@ -320,6 +305,5 @@ return this[key]; | ||
} | ||
destroy() { } | ||
destroy() {} | ||
} | ||
GlimmerObject["df8be4c8-4e89-44e2-a8f9-550c8dacdca7"] = InstanceMeta.fromParent(null); | ||
GlimmerObject.isClass = true; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsib2JqZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxJQUFJLEVBRUosaUJBQWlCLEVBQ2xCLE1BQU0sMkJBQTJCLENBQUM7QUFDbkMsT0FBTyxFQUFRLElBQUksRUFBRSxNQUFNLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25FLE9BQU8sRUFFTCxNQUFNLElBQUksV0FBVyxFQUNyQixPQUFPLEVBQ1AsZ0JBQWdCLEVBQ2hCLFVBQVUsRUFDWCxNQUFNLFNBQVMsQ0FBQztBQUVqQixNQUFNLEVBQUUsT0FBTyxFQUFFLEdBQUcsS0FBSyxDQUFDO0FBRTFCLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFHL0IsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFHLHlCQUF3QixDQUFDLENBQUM7QUFFckQsTUFBTSxVQUFVLEdBQUcsc0NBQXNDLENBQUM7QUF3QjFELE1BQU0sc0JBQXlCLEdBQU07S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E9iamVjdCkgPT4gdm9pZCkge1xuICAgIGxldCBtZXRhZGF0YSA9IHRoaXNbQ0xBU1NfTUVUQV0uZ2V0UHJvcGVydHlNZXRhZGF0YSgpO1xuICAgIGlmICghbWV0YWRhdGEpIHJldHVybjtcblxuICAgIGZvciAobGV0IHByb3AgaW4gbWV0YWRhdGEpIHtcbiAgICAgIGNhbGxiYWNrKHByb3AsIG1ldGFkYXRhW3Byb3BdKTtcbiAgICB9XG4gIH1cblxuICBfc3VwZXIgPSBST09UO1xuICBfbWV0YSA9IG51bGw7XG4gIF9ndWlkOiBudW1iZXI7XG5cbiAgaW5pdCgpIHt9XG5cbiAgY29uc3RydWN0b3IoYXR0cnM/OiBPYmplY3QpIHtcbiAgICBpZiAoYXR0cnMpIGFzc2lnbih0aGlzLCBhdHRycyk7XG4gICAgKDx0eXBlb2YgR2xpbW1lck9iamVjdD50aGlzLmNvbnN0cnVjdG9yKVtDTEFTU19NRVRBXS5pbml0KHRoaXMsIGF0dHJzIHx8IG51bGwpO1xuICAgIHRoaXMuX3N1cGVyID0gUk9PVDtcbiAgICBpbml0aWFsaXplR3VpZCh0aGlzKTtcbiAgICB0aGlzLmluaXQoKTtcbiAgfVxuXG4gIGdldChrZXk6IHN0cmluZyk6IGFueSB7XG4gICAgcmV0dXJuIHRoaXNba2V5XTtcbiAgfVxuXG4gIHNldChrZXk6IHN0cmluZywgdmFsdWU6IGFueSkge1xuICAgIHRoaXNba2V5XSA9IHZhbHVlO1xuICB9XG5cbiAgc2V0UHJvcGVydGllcyhhdHRyczogT2JqZWN0KSB7XG4gICAgYXNzaWduKHRoaXMsIGF0dHJzKTtcbiAgfVxuXG4gIGRlc3Ryb3koKSB7fVxufVxuIl19 | ||
GlimmerObject.isClass = true; |
const HAS_SUPER_PATTERN = /\.(_super|call\(this|apply\(this)/; | ||
export const checkHasSuper = (function () { | ||
let sourceAvailable = (function () { | ||
export const checkHasSuper = function () { | ||
let sourceAvailable = function () { | ||
return this; | ||
}).toString().indexOf('return this') > -1; | ||
}.toString().indexOf('return this') > -1; | ||
if (sourceAvailable) { | ||
@@ -14,4 +14,4 @@ return function checkHasSuper(func) { | ||
}; | ||
}()); | ||
export function ROOT(..._args) { } | ||
}(); | ||
export function ROOT(..._args) {} | ||
ROOT.__hasSuper = false; | ||
@@ -23,3 +23,2 @@ export function hasSuper(func) { | ||
return func['__hasSuper']; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ1dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLGlCQUFpQixHQUFHLG1DQUFtQyxDQUFDO0FBRTlELE1BQU0sQ0FBQyxNQUFNLGFBQWEsR0FBRyxDQUFDO0lBQzVCLElBQUksZUFBZSxHQUFHLENBQUM7UUFDckIsTUFBTSxDQUFDLElBQUksQ0FBQztJQUNkLENBQUMsQ0FBQyxDQUFDLFFBQVEsRUFBRSxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztJQUUxQyxFQUFFLENBQUMsQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDO1FBQ3BCLE1BQU0sQ0FBQyx1QkFBdUIsSUFBYztZQUMxQyxNQUFNLENBQUMsaUJBQWlCLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDO1FBQ2pELENBQUMsQ0FBQztJQUNKLENBQUM7SUFFRCxNQUFNLENBQUM7UUFDTCxNQUFNLENBQUMsSUFBSSxDQUFDO0lBQ2QsQ0FBQyxDQUFDO0FBQ0osQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVMLE1BQU0sZUFBZSxHQUFHLEtBQVksSUFBRyxDQUFDO0FBQ2xDLElBQUssQ0FBQyxVQUFVLEdBQUcsS0FBSyxDQUFDO0FBRS9CLE1BQU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XInXSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgZnVuY1snX19oYXNTdXBlciddID0gY2hlY2tIYXNTdXBlcihmdW5jKTtcbiAgfVxuICByZXR1cm4gZnVuY1snX19oYXNTdXBlciddO1xufSJdfQ== | ||
} |
@@ -5,2 +5,2 @@ export { default, ClassMeta, InstanceMeta } from './lib/object'; | ||
export { aliasMethod, alias } from './lib/descriptors'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxBQUFPLFNBQUUsQUFBTyxBQUFJLEFBQU8sU0FBRSxBQUFTLFdBQUUsQUFBWSxBQUF3QixvQkFBTSxBQUFjLEFBQUM7QUFDakcsQUFBTyxTQUFFLEFBQVEsVUFBRSxBQUFRLEFBQUUsZ0JBQU0sQUFBZ0IsQUFBQztBQUNwRCxBQUFPLFNBQUUsQUFBSyxPQUFFLEFBQVMsV0FBRSxBQUFPLEFBQUUsZUFBTSxBQUFhLEFBQUM7QUFDeEQsQUFBTyxTQUFFLEFBQVcsYUFBRSxBQUFLLEFBQUUsYUFBTSxBQUFtQixBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgZGVmYXVsdCBhcyBkZWZhdWx0LCBDbGFzc01ldGEsIEluc3RhbmNlTWV0YSwgR2xpbW1lck9iamVjdEZhY3RvcnkgfSBmcm9tICcuL2xpYi9vYmplY3QnO1xuZXhwb3J0IHsgY29tcHV0ZWQsIG9ic2VydmVyIH0gZnJvbSAnLi9saWIvY29tcHV0ZWQnO1xuZXhwb3J0IHsgTWl4aW4sIEJsdWVwcmludCwgdG9NaXhpbiB9IGZyb20gJy4vbGliL21peGluJztcbmV4cG9ydCB7IGFsaWFzTWV0aG9kLCBhbGlhcyB9IGZyb20gJy4vbGliL2Rlc2NyaXB0b3JzJztcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbImRlZmF1bHQiLCJDbGFzc01ldGEiLCJJbnN0YW5jZU1ldGEiLCJjb21wdXRlZCIsIm9ic2VydmVyIiwiTWl4aW4iLCJCbHVlcHJpbnQiLCJ0b01peGluIiwiYWxpYXNNZXRob2QiLCJhbGlhcyJdLCJtYXBwaW5ncyI6IkFBQUEsU0FBU0EsT0FBVCxFQUFrQkMsU0FBbEIsRUFBNkJDLFlBQTdCLFFBQWlELGNBQWpEO0FBQ0EsU0FBU0MsUUFBVCxFQUFtQkMsUUFBbkIsUUFBbUMsZ0JBQW5DO0FBQ0EsU0FBU0MsS0FBVCxFQUFnQkMsU0FBaEIsRUFBMkJDLE9BQTNCLFFBQTBDLGFBQTFDO0FBQ0EsU0FBU0MsV0FBVCxFQUFzQkMsS0FBdEIsUUFBbUMsbUJBQW5DIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgZGVmYXVsdCwgQ2xhc3NNZXRhLCBJbnN0YW5jZU1ldGEgfSBmcm9tICcuL2xpYi9vYmplY3QnO1xuZXhwb3J0IHsgY29tcHV0ZWQsIG9ic2VydmVyIH0gZnJvbSAnLi9saWIvY29tcHV0ZWQnO1xuZXhwb3J0IHsgTWl4aW4sIEJsdWVwcmludCwgdG9NaXhpbiB9IGZyb20gJy4vbGliL21peGluJztcbmV4cG9ydCB7IGFsaWFzTWV0aG9kLCBhbGlhcyB9IGZyb20gJy4vbGliL2Rlc2NyaXB0b3JzJzsiXX0= |
@@ -181,2 +181,2 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return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bHVlcHJpbnQoe1xuICAgICAgICAgICAgZ2V0OiBsYXN0XG4gICAgICAgIH0pLnByb3BlcnR5KC4uLmRlcHMpO1xuICAgIH0gZWxzZSBpZiAodHlwZW9mIGxhc3QgPT09ICdvYmplY3QnKSB7XG4gICAgICAgIHJldHVybiBuZXcgQ29tcHV0ZWRCbHVlcHJpbnQobGFzdCkucHJvcGVydHkoLi4uZGVwcyk7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihcImNvbXB1dGVkIGV4cGVjdHMgYSBmdW5jdGlvbiBvciBhbiBvYmplY3QgYXMgbGFzdCBhcmd1bWVudFwiKTtcbiAgICB9XG59XG5leHBvcnQgZnVuY3Rpb24gb2JzZXJ2ZXIoLi4uX2FyZ3MpIHt9Il19 |
@@ -98,2 +98,2 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzY3JpcHRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXNjcmlwdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBLEFBQU8sU0FBRSxBQUFTLFdBQUUsQUFBVSxBQUFFLGtCQUFNLEFBQVMsQUFBQztBQUVoRCxBQUFPLFNBQUUsQUFBaUIsQUFBRSx5QkFBTSxBQUFZLEFBQUMsQUFFL0M7O0lBQTRCOzs7QUFHMUIsbUNBQVksQUFBWTs7O3FEQUN0QixBQUFLLEFBQUUsQUFBQzs7QUFDUixBQUFJLGNBQUMsQUFBSSxPQUFHLEFBQUksQUFBQyxBQUNuQjs7QUFBQzs7b0NBRUQsQUFBTSx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saWNlKDAsIC0xKTtcbiAgICAgICAgbGV0IGxhc3QgPSBuYW1lW25hbWUubGVuZ3RoIC0gMV07XG4gICAgICAgIGxldCBnZXQgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICByZXR1cm4gbmFtZS5yZWR1Y2UoKG9iaiwgbikgPT4gb2JqW25dLCB0aGlzKTtcbiAgICAgICAgfTtcbiAgICAgICAgbGV0IHNldCA9IGZ1bmN0aW9uICh2YWx1ZSkge1xuICAgICAgICAgICAgbGV0IHAgPSBwYXJlbnQucmVkdWNlKChvYmosIG4pID0+IG9ialtuXSwgdGhpcyk7XG4gICAgICAgICAgICBwW2xhc3RdID0gdmFsdWU7XG4gICAgICAgIH07XG4gICAgICAgIHN1cGVyKHsgZ2V0LCBzZXQgfSwgW25hbWVdKTtcbiAgICAgICAgdGhpcy5uYW1lID0gbmFtZTtcbiAgICB9XG4gICAgZGVzY3JpcHRvcih0YXJnZXQsIGtleSwgbWV0YSkge1xuICAgICAgICBpZiAodGhpcy5uYW1lWzBdID09PSBrZXkpIHRocm93IG5ldyBFcnJvcihgU2V0dGluZyBhbGlhcyAnJHtrZXl9JyBvbiBzZWxmYCk7XG4gICAgICAgIHJldHVybiBzdXBlci5kZXNjcmlwdG9yKHRhcmdldCwga2V5LCBtZXRhKTtcbiAgICB9XG59XG5leHBvcnQgZnVuY3Rpb24gYWxpYXMobmFtZSkge1xuICAgIHJldHVybiBuZXcgQWxpYXNCbHVlcHJpbnQobmFtZS5zcGxpdCgnLicpKTtcbn0iXX0= |
@@ -404,2 +404,2 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWl4aW4uanMiLCJzb3V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b2JqZWN0JyB8fCBvYmogPT09IG51bGwpIHJldHVybiBbXTtcbiAgICAgICAgbGV0IG1ldGEgPSBDbGFzc01ldGEuZm9yKG9iaik7XG4gICAgICAgIGlmICghbWV0YSkgcmV0dXJuIFtdO1xuICAgICAgICByZXR1cm4gbWV0YS5nZXRBcHBsaWVkTWl4aW5zKCk7XG4gICAgfVxuICAgIGRldGVjdChvYmopIHtcbiAgICAgICAgaWYgKHR5cGVvZiBvYmogIT09ICdvYmplY3QnIHx8IG9iaiA9PT0gbnVsbCkgcmV0dXJuIGZhbHNlO1xuICAgICAgICBpZiAob2JqIGluc3RhbmNlb2YgTWl4aW4pIHtcbiAgICAgICAgICAgIHJldHVybiBvYmouZGVwZW5kZW5jaWVzLmluZGV4T2YodGhpcykgIT09IC0xO1xuICAgICAgICB9XG4gICAgICAgIGxldCBtZXRhID0gQ2xhc3NNZXRhLmZvcihvYmopO1xuICAgICAgICByZXR1cm4gISFtZXRhICYmIG1ldGEuaGFzQXBwbGllZE1peGluKHRoaXMpO1xuICAgIH1cbiAgICByZW9wZW4oZXh0ZW5zaW9ucykge1xuICAgICAgICBpZiAodGhpcy5leHRlbnNpb25zKSB7XG4gICAgICAgICAgICB0aGlzLmRlcGVuZGVuY2llcy5wdXNoKHRvTWl4aW4odGhpcy5leHRlbnNpb25zKSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHR5cGVvZiBleHRlbnNpb25zID09PSAnb2JqZWN0JyAmJiAnY29uY2F0ZW5hdGVkUHJvcGVydGllcycgaW4gZXh0ZW5zaW9ucykge1xuICAgICAgICAgICAgbGV0IGNvbmNhdDtcbiAgICAgICAgICAgIGxldCByYXdDb25jYXQgPSBleHRlbnNpb25zLmNvbmNhdGVuYXRlZFByb3BlcnRpZXM7XG4gICAgICAgICAgICBpZiAoaXNBcnJheShyYXdDb25jYXQpKSB7XG4gICAgICAgICAgICAgICAgY29uY2F0ID0gcmF3Q29uY2F0LnNsaWNlKCk7XG4gICAgICAgICAgICB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YmplY3Qua2V5cyhleHRlbnNpb25zKS5yZWR1Y2UoKG9iaiwga2V5KSA9PiB7XG4gICAgICAgICAgICBsZXQgdmFsdWUgPSBleHRlbnNpb25zW2tleV07XG4gICAgICAgICAgICBzd2l0Y2ggKHR5cGVvZiB2YWx1ZSkge1xuICAgICAgICAgICAgICAgIGNhc2UgJ2Z1bmN0aW9uJzpcbiAgICAgICAgICAgICAgICAgICAgb2JqW2tleV0gPSBuZXcgTWV0aG9kQmx1ZXByaW50KHsgdmFsdWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGNhc2UgJ29iamVjdCc6XG4gICAgICAgICAgICAgICAgICAgIGlmICh2YWx1ZSAmJiBCTFVFUFJJTlQgaW4gdmFsdWUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9ialtrZXldID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIC8qIGZhbGxzIHRocm91Z2ggKi9cbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICBvYmpba2V5XSA9IG5ldyBEYXRhQmx1ZXByaW50KHsgdmFsdWUgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gb2JqO1xuICAgICAgICB9LCBkaWN0KCkpO1xuICAgICAgICB0aGlzLmV4dGVuc2lvbnMgPSBkaWN0KCk7XG4gICAgICAgIGFzc2lnbih0aGlzLmV4dGVuc2lvbnMsIHR1cmJvY2hhcmdlKG5vcm1hbGl6ZWQpKTtcbiAgICB9XG4gICAgYXBwbHkodGFyZ2V0KSB7XG4gICAgICAgIGxldCBtZXRhID0gdGFyZ2V0W0NMQVNTX01FVEFdID0gdGFyZ2V0W0NMQVNTX01FVEFdIHx8IG5ldyBDbGFzc01ldGEoKTtcbiAgICAgICAgdGhpcy5kZXBlbmRlbmNpZXMuZm9y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uX3N1cGVyO1xuICAgICAgICB0aGlzLl9zdXBlciA9IFJPT1Q7XG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgICByZXR1cm4gb3JpZ2luYWwuYXBwbHkodGhpcywgYXJncyk7XG4gICAgICAgIH0gZmluYWxseSB7XG4gICAgICAgICAgICB0aGlzLl9zdXBlciA9IGxhc3RTdXBlcjtcbiAgICAgICAgfVxuICAgIH07XG59Il19 |
@@ -405,2 +405,2 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } | ||
GlimmerObject.isClass = true; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsib2JqZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEsQUFBTyxTQUNMLEFBQUksTUFFSixBQUFpQixBQUNsQix5QkFBTSxBQUEyQixBQUFDO0FBQ25DLEFBQU8sU0FBUSxBQUFJLE1BQUUsQUFBTSxRQUFFLEFBQWMsQUFBRSxzQkFBTSxBQUFlLEFBQUM7QUFDbkUsQUFBTyxTQUVMLEFBQU0sVUFBSSxBQUFXLGFBQ3JCLEFBQU8sU0FDUCxBQUFnQixrQkFDaEIsQUFBVSxBQUNYLGtCQUFNLEFBQVMsQUFBQyxBQUVqQixBQUFNO0lBQUUsQUFBTyxBQUFFLFVBQUcsQUFBSyxBQUFDOztBQUUxQixBQUFPLFNBQUUsQUFBSSxBQUFFLFlBQU0sQUFBUyxBQUFDO0FBRy9CLEFBQU0sT0FBQyxJQUFNLEFBQVcsY0FBRyx1QkFBd0IsQ0FBQyxBQUFDO0FBRXJELElBQU0sQUFBVSxhQUFHLEFBQXNDL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ByZXR1cm4gbnVsbDtcbiAgICB9XG4gICAgaW5pdChvYmplY3QsIGF0dHJzKSB7XG4gICAgICAgIGlmICh0eXBlb2YgYXR0cnMgIT09ICdvYmplY3QnIHx8IGF0dHJzID09PSBudWxsKSByZXR1cm47XG4gICAgICAgIGlmICh0aGlzLmhhc0NvbmNhdGVuYXRlZFByb3BlcnRpZXMpIHtcbiAgICAgICAgICAgIGxldCBjb25jYXRQcm9wcyA9IHRoaXMuY29uY2F0ZW5hdGVkUHJvcGVydGllcztcbiAgICAgICAgICAgIGZvciAobGV0IHByb3AgaW4gY29uY2F0UHJvcHMpIHtcbiAgICAgICAgICAgICAgICBpZiAocHJvcCBpbiBhdHRycykge1xuICAgICAgICAgICAgICAgICAgICBsZXQgY29uY2F0ID0gY29uY2F0UHJvcHNbcHJvcF0uc2xpY2UoKTtcbiAgICAgICAgICAgICAgICAgICAgb2JqZWN0W3Byb3BdID0gY29uY2F0LmNvbmNhdChhdHRyc1twcm9wXSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmICh0aGlzLmhhc01lcmdlZFByb3BlcnRpZXMpIHtcbiAgICAgICAgICAgIGxldCBtZXJnZWRQcm9wcyA9IHRoaXMubWVyZ2VkUHJvcGVydGllcztcbiAgICAgICAgICAgIGZvciAobGV0IHByb3AgaW4gbWVyZ2VkUHJvcHMpIHtcbiAgICAgICAgICAgICAgICBpZiAocHJvcCBpbiBhdHRycykge1xuICAgICAgICAgICAgICAgICAgICBsZXQgbWVyZ2VkID0gYXNzaWduKHt9LCBtZXJnZWRQcm9wc1twcm9wXSk7XG4gICAgICAgICAgICAgICAgICAgIG9iamVjdFtwcm9wXSA9IGFzc2lnbihtZXJnZWQsIGF0dHJzW3Byb3BdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgYWRkU3RhdGljTWl4aW4obWl4aW4pIHtcbiAgICA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RzIFNlYWxlZE1ldGEge1xuICAgICAgICAgICAgY29uc3RydWN0b3IoKSB7XG4gICAgICAgICAgICAgICAgc3VwZXIoLi4uYXJndW1lbnRzKTtcbiAgICAgICAgICAgICAgICB0aGlzLnNsb3RzID0gbmV3IFNsb3RzKCk7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2VUeXBlcyA9IHJlZmVyZW5jZVR5cGVzO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZ2V0UmVmZXJlbmNlVHlwZXMoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMucmVmZXJlbmNlVHlwZXM7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZWZlcmVuY2VUeXBlRm9yKHByb3BlcnR5KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMucmVmZXJlbmNlVHlwZXNbcHJvcGVydHldIHx8IFByb3BlcnR5UmVmZXJlbmNlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZ2V0U2xvdHMoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuc2xvdHM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgICAgIHR1cmJvY2hhcmdlKHRoaXMpO1xuICAgIH1cbn1cbmZ1bmN0aW9uIG1lcmdlTWVyZ2VkUHJvcGVydGllcyhhdHRycywgcGFyZW50KSB7XG4gICAgbGV0IG1lcmdlZCA9IGFzc2lnbih7fSwgcGFyZW50KTtcbiAgICBmb3IgKGxldCBwcm9wIGluIGF0dHJzKSB7XG4gICAgICAgIGlmIChwcm9wIGluIHBhcmVudCAmJiB0eXBlb2YgcGFyZW50W3Byb3BdID09PSAnZnVuY3Rpb24nICYmIHR5cGVvZiBhdHRyc1twcm9wXSA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgICAgbGV0IHdyYXBwZWQgPSB3cmFwTWV0aG9kKHBhcmVudCwgcHJvcCwgYXR0cnNbcHJvcF0pO1xuICAgIC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HV0ZWRQcm9wZXJ0eShjYWxsYmFjaykge1xuICAgICAgICBsZXQgbWV0YWRhdGEgPSB0aGlzW0NMQVNTX01FVEFdLmdldFByb3BlcnR5TWV0YWRhdGEoKTtcbiAgICAgICAgaWYgKCFtZXRhZGF0YSkgcmV0dXJuO1xuICAgICAgICBmb3IgKGxldCBwcm9wIGluIG1ldGFkYXRhKSB7XG4gICAgICAgICAgICBjYWxsYmFjayhwcm9wLCBtZXRhZGF0YVtwcm9wXSk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgaW5pdCgpIHt9XG4gICAgZ2V0KGtleSkge1xuICAgICAgICByZXR1cm4gdGhpc1trZXldO1xuICAgIH1cbiAgICBzZXQoa2V5LCB2YWx1ZSkge1xuICAgICAgICB0aGlzW2tleV0gPSB2YWx1ZTtcbiAgICB9XG4gICAgc2V0UHJvcGVydGllcyhhdHRycykge1xuICAgICAgICBhc3NpZ24odGhpcywgYXR0cnMpO1xuICAgIH1cbiAgICBkZXN0cm95KCkge31cbn1cbkdsaW1tZXJPYmplY3RbXCJkZjhiZTRjOC00ZTg5LTQ0ZTItYThmOS01NTBjOGRhY2RjYTdcIl0gPSBJbnN0YW5jZU1ldGEuZnJvbVBhcmVudChudWxsKTtcbkdsaW1tZXJPYmplY3QuaXNDbGFzcyA9IHRydWU7Il19 |
@@ -23,2 +23,2 @@ var HAS_SUPER_PATTERN = /\.(_super|call\(this|apply\(this)/; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ1dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFNLEFBQWlCLG9CQUFHLEFBQW1DLEFBQUM7QUFFOUQsQUFBTSxXQUFPLEFBQWEsQUFBRztBQUMzQixRQUFJLEFBQWUsa0JBQUk7QUFDckIsQUFBTSxlQUFDLEFBQUksQUFBQy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MTtcbiAgICBpZiAoc291cmNlQXZhaWxhYmxlKSB7XG4gICAgICAgIHJldHVybiBmdW5jdGlvbiBjaGVja0hhc1N1cGVyKGZ1bmMpIHtcbiAgICAgICAgICAgIHJldHVybiBIQVNfU1VQRVJfUEFUVEVSTi50ZXN0KGZ1bmMudG9TdHJpbmcoKSk7XG4gICAgICAgIH07XG4gICAgfVxuICAgIHJldHVybiBmdW5jdGlvbiBjaGVja0hhc1N1cGVyKCkge1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9O1xufSgpO1xuZXhwb3J0IGZ1bmN0aW9uIFJPT1QoLi4uX2FyZ3MpIHt9XG5ST09ULl9faGFzU3VwZXIgPSBmYWxzZTtcbmV4cG9ydCBmdW5jdGlvbiBoYXNTdXBlcihmdW5jKSB7XG4gICAgaWYgKGZ1bmNbJ19faGFzU3VwZXInXSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGZ1bmNbJ19faGFzU3VwZXInXSA9IGNoZWNrSGFzU3VwZXIoZnVuYyk7XG4gICAgfVxuICAgIHJldHVybiBmdW5jWydfX2hhc1N1cGVyJ107XG59Il19 |
{ | ||
"name": "@glimmer/object", | ||
"version": "0.23.0-alpha.11", | ||
"repository": "https://github.com/tildeio/glimmer/tree/master/packages/@glimmer/object", | ||
"version": "0.23.0-alpha.14", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/object", | ||
"dependencies": { | ||
"@glimmer/object-reference": "^0.23.0-alpha.11", | ||
"@glimmer/util": "^0.23.0-alpha.11" | ||
"@glimmer/object-reference": "^0.23.0-alpha.14", | ||
"@glimmer/util": "^0.23.0-alpha.14" | ||
}, | ||
@@ -16,3 +16,4 @@ "devDependencies": { | ||
"module": "dist/modules/es5/index.js", | ||
"typings": "dist/types/index.d.ts" | ||
"typings": "dist/types/index.d.ts", | ||
"license": "MIT" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
33
0
415474
4784