import { api, isAbort } from './shared/api.js'; import { connectWs } from './shared/ws.js'; import { el, clear } from './shared/dom.js'; import { Player, logSync } from './player.js'; import { RoomClock } from './shared/clock.js'; import { tryAutoplay, showStartModal, autoplayDismissed } from './shared/playGate.js'; import { mountDebugPane } from './shared/debug.js'; const app = document.getElementById('app'); // Mode model (refactored): two modes only. // solo = local