"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _wrap_1 = require("../../../../../$wrap");
const Semifunctional_1 = require("../../../../../Class/Semifunctional");
const _ids_1 = require("../../../../_ids");
class Start extends Semifunctional_1.Semifunctional {
    constructor(system) {
        super({
            fi: ['bundle', 'system'],
            fo: ['graph'],
            i: ['done'],
            o: [],
        }, {
            input: {
                system: {
                    ref: true,
                },
            },
            output: {
                graph: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_START);
    }
    f({ bundle, system }, done) {
        const $graph = system.$newGraph({ bundle, _: ['$G', '$C', '$U'] });
        const graph = (0, _wrap_1.$wrap)(this.__system, $graph);
        done({ graph });
    }
    onIterDataInputData(name, data) {
        // if (name === 'done') {
        this._forward_empty('graph');
        // }
    }
}
exports.default = Start;
//# sourceMappingURL=index.js.map