"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSubSystem = void 0;
const Semifunctional_1 = require("../../../../../Class/Semifunctional");
const System_1 = require("../../../../../wrap/System");
const _ids_1 = require("../../../../_ids");
class NewSystem extends Semifunctional_1.Semifunctional {
    constructor(system) {
        super({
            fi: ['init'],
            fo: ['system'],
            i: ['done'],
            o: [],
        }, {
            output: {
                system: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_NEW_SYSTEM);
    }
    f({ init }, done) {
        const { path } = init;
        const _system = this.__system.boot({
            path,
        });
        const system = (0, System_1.wrapSystem)(_system, this.__system);
        done({
            system,
        });
    }
}
exports.default = NewSystem;
function createSubSystem(system, path) { }
exports.createSubSystem = createSubSystem;
//# sourceMappingURL=index.js.map