"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Holder_1 = require("../../../../Class/Holder");
const Async_1 = require("../../../../types/interface/async/Async");
const Date_1 = require("../../../../wrap/Date");
const _ids_1 = require("../../../_ids");
class Date_ extends Holder_1.Holder {
    constructor(system) {
        super({
            fi: ['init'],
            fo: ['date'],
        }, {
            output: {
                date: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_DATE);
    }
    f({ init }, done) {
        const date__ = new Date(init);
        const date_ = (0, Date_1.wrapDate)(date__, this.__system);
        const date = (0, Async_1.Async)(date_, ['D'], this.__system.async);
        done({ date });
    }
}
exports.default = Date_;
//# sourceMappingURL=index.js.map