"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.evaluateBundleStr = evaluateBundleStr;
exports.idFromUnitValue = idFromUnitValue;
const evaluate_1 = require("./evaluate");
function evaluateBundleStr(value, specs, classes, evaluate_ = evaluate_1.evaluate) {
    let objectStr = value.substring(1);
    const bundle = evaluate_(objectStr, specs, classes);
    return bundle;
}
function idFromUnitValue(value, specs, classes, evaluate_ = evaluate_1.evaluate) {
    const bundle = evaluateBundleStr(value, specs, classes, evaluate_);
    const { unit } = bundle;
    const { id } = unit;
    return id;
}
//# sourceMappingURL=idFromUnitValue.js.map