7913e630d6
`session.state` is a Svelte store; `$: state = session.state` bound the store object (not its value), so state.capture was undefined and cap.k threw on mount. Bind a local const to the store and use the $ prefix ($stateStore), and use get() in App.onPhotosReady. Verified in Chromium: hero -> batch -> sample uploads show thumbs.