"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const boot_1 = require("../boot");
const RemoteRef_1 = require("../client/RemoteRef");
const makeRemoteUnitAPI_1 = require("../client/makeRemoteUnitAPI");
const service_1 = require("../client/service");
const none_1 = require("../host/none");
const _classes_1 = require("../system/_classes");
const _specs_1 = require("../system/_specs");
const system = (0, boot_1.boot)(null, (0, none_1.noHost)(), {
    specs: _specs_1.default,
    classes: _classes_1.default,
    components: {},
});
const post = (data) => {
    postMessage(data, null);
};
const api = (0, makeRemoteUnitAPI_1.makeRemoteUnitAPI)(system, ['S']);
const ref = new RemoteRef_1.RemoteRef(api, post);
(0, service_1.init)(() => {
    return ref;
});
//# sourceMappingURL=system.js.map