"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attachApp = exports.SYSTEM_APP_ID = void 0;
exports.SYSTEM_APP_ID = '__SYSTEM__APP__';
function attachApp(system) {
    const { root, api: { document: { createElement }, }, } = system;
    const app = createElement('div');
    app.id = exports.SYSTEM_APP_ID;
    app.style.position = 'absolute';
    app.style.width = '100%';
    app.style.height = '100%';
    app.style.top = '0';
    app.style.left = '0';
    app.style.zIndex = '1';
    root.shadowRoot.appendChild(app);
    system.foreground.app = app;
}
exports.attachApp = attachApp;
//# sourceMappingURL=attachApp.js.map