/* @preserve
		**
		** LICENSE for the sqlite3 WebAssembly/JavaScript APIs.
		**
		** This bundle (typically released as sqlite3.js or sqlite3.mjs)
		** is an amalgamation of JavaScript source code from two projects:
		**
		** 1) https://emscripten.org: the Emscripten "glue code" is covered by
		**    the terms of the MIT license and University of Illinois/NCSA
		**    Open Source License, as described at:
		**
		**    https://emscripten.org/docs/introducing_emscripten/emscripten_license.html
		**
		** 2) https://sqlite.org: all code and documentation labeled as being
		**    from this source are released under the same terms as the sqlite3
		**    C library:
		**
		** 2022-10-16
		**
		** The author disclaims copyright to this source code.  In place of a
		** legal notice, here is a blessing:
		**
		** *   May you do good and not evil.
		** *   May you find forgiveness for yourself and forgive others.
		** *   May you share freely, never taking more than you give.
		*/

/* @preserve
		** This code was built from sqlite3 version...
		**
		** SQLITE_VERSION "3.53.4"
		** SQLITE_VERSION_NUMBER 3053004
		** SQLITE_SOURCE_ID "2026-07-24 19:02:57 bf7c7f30031888f4e796e429ab3978879485813aaca6f641c7b33e4e09459bcc"
		**
		** Emscripten SDK: 5.0.5
		*/

/* @preserve
	2022-09-16
	
	The author disclaims copyright to this source code.  In place of a
	legal notice, here is a blessing:
	
	*   May you do good and not evil.
	*   May you find forgiveness for yourself and forgive others.
	*   May you share freely, never taking more than you give.
	
	***********************************************************************
	
	A Worker which manages asynchronous OPFS handles on behalf of a
	synchronous API which controls it via a combination of Worker
	messages, SharedArrayBuffer, and Atomics. It is the asynchronous
	counterpart of the API defined in sqlite3-vfs-opfs.js.
	
	Highly indebted to:
	
	https://github.com/rhashimoto/wa-sqlite/blob/master/src/examples/OriginPrivateFileSystemVFS.js
	
	for demonstrating how to use the OPFS APIs.
	
	This file is to be loaded as a Worker. It does not have any direct
	access to the sqlite3 JS/WASM bits, so any bits which it needs (most
	notably SQLITE_xxx integer codes) have to be imported into it via an
	initialization process.
	
	This file represents an implementation detail of a larger piece of
	code, and not a public interface. Its details may change at any time
	and are not intended to be used by any client-level code.
	
	2022-11-27: Chrome v108 changes some async methods to synchronous, as
	documented at:
	
	https://developer.chrome.com/blog/sync-methods-for-accesshandles/
	
	Firefox v111 and Safari 16.4, both released in March 2023, also
	include this.
	
	We cannot change to the sync forms at this point without breaking
	clients who use Chrome v104-ish or higher. truncate(), getSize(),
	flush(), and close() are now (as of v108) synchronous. Calling them
	with an "await", as we have to for the async forms, is still legal
	with the sync forms but is superfluous. Calling the async forms with
	theFunc().then(...) is not compatible with the change to
	synchronous, but we do do not use those APIs that way. i.e. we don't
	_need_ to change anything for this, but at some point (after Chrome
	versions (approximately) 104-107 are extinct) we should change our
	usage of those methods to remove the "await".
	*/

/* @preserve
**
** LICENSE for the sqlite3 WebAssembly/JavaScript APIs.
**
** This bundle (typically released as sqlite3.js or sqlite3.mjs)
** is an amalgamation of JavaScript source code from two projects:
**
** 1) https://emscripten.org: the Emscripten "glue code" is covered by
**    the terms of the MIT license and University of Illinois/NCSA
**    Open Source License, as described at:
**
**    https://emscripten.org/docs/introducing_emscripten/emscripten_license.html
**
** 2) https://sqlite.org: all code and documentation labeled as being
**    from this source are released under the same terms as the sqlite3
**    C library:
**
** 2022-10-16
**
** The author disclaims copyright to this source code.  In place of a
** legal notice, here is a blessing:
**
** *   May you do good and not evil.
** *   May you find forgiveness for yourself and forgive others.
** *   May you share freely, never taking more than you give.
*/

/* @preserve
** This code was built from sqlite3 version...
**
** SQLITE_VERSION "3.53.4"
** SQLITE_VERSION_NUMBER 3053004
** SQLITE_SOURCE_ID "2026-07-24 19:02:57 bf7c7f30031888f4e796e429ab3978879485813aaca6f641c7b33e4e09459bcc"
**
** Emscripten SDK: 5.0.5
*/

//! Documented elsewhere in this file.

//! Impl for importDb() when its 2nd arg is a function.
