"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Definition = void 0;
const lodash_1 = require("lodash");
const session_1 = require("../../../../session");
const dates_and_calendars_1 = require("../dates-and-calendars");
function Definition(params) {
    return {
        getData(session = (0, session_1.getDefault)()) {
            const datesAndCalendarsProvider = new dates_and_calendars_1.DatesAndCalendarsProvider(session);
            return datesAndCalendarsProvider.getIsWorkingDay([params]);
        },
        /** @internal */
        getInstrument() {
            return (0, lodash_1.cloneDeep)(params);
        },
    };
}
exports.Definition = Definition;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jb250ZW50L2lwYS9kYXRlcy1hbmQtY2FsZW5kYXJzL2lzLXdvcmtpbmctZGF5L2RlZmluaXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsbUNBQW1DO0FBSW5DLGlEQUEwRDtBQUMxRCxnRUFBbUU7QUFFbkUsU0FBZ0IsVUFBVSxDQUFDLE1BQWM7SUFDckMsT0FBTztRQUNILE9BQU8sQ0FBQyxVQUFtQixJQUFBLG9CQUFVLEdBQUU7WUFDbkMsTUFBTSx5QkFBeUIsR0FBRyxJQUFJLCtDQUF5QixDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBRXpFLE9BQU8seUJBQXlCLENBQUMsZUFBZSxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQztRQUMvRCxDQUFDO1FBRUQsZ0JBQWdCO1FBQ2hCLGFBQWE7WUFDVCxPQUFPLElBQUEsa0JBQVMsRUFBQyxNQUFNLENBQUMsQ0FBQztRQUM3QixDQUFDO0tBQ0osQ0FBQztBQUNOLENBQUM7QUFiRCxnQ0FhQyJ9