"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cloneUnitClass = exports.cloneUnitBundle = void 0;
const bundleClass_1 = require("./spec/bundleClass");
function cloneUnitBundle(Bundle) {
    const { __bundle } = Bundle;
    const NewClass = cloneUnitClass(Bundle);
    const NewBundle = (0, bundleClass_1.bundleClass)(NewClass, __bundle);
    return NewBundle;
}
exports.cloneUnitBundle = cloneUnitBundle;
function cloneUnitClass(Class) {
    class NewClass extends Class {
    }
    Object.defineProperty(NewClass, 'name', { value: Class.constructor.name });
    return NewClass;
}
exports.cloneUnitClass = cloneUnitClass;
//# sourceMappingURL=cloneUnitClass.js.map