@powersync/web 0.0.0-dev-20241119081147 → 0.0.0-dev-20241203152232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/24cd027f23123a1360de.wasm +0 -0
  2. package/dist/_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js-_powersync_co-780aa20.index.umd.js +335 -0
  3. package/dist/_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js-_powersync_co-780aa20.index.umd.js.map +1 -0
  4. package/dist/_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js-_powersync_co-780aa21.index.umd.js +335 -0
  5. package/dist/_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js-_powersync_co-780aa21.index.umd.js.map +1 -0
  6. package/dist/f042552714d86563f127.wasm +0 -0
  7. package/dist/index.umd.js +3493 -623
  8. package/dist/index.umd.js.map +1 -1
  9. package/dist/worker/SharedSyncImplementation.umd.js +272 -2198
  10. package/dist/worker/SharedSyncImplementation.umd.js.map +1 -1
  11. package/dist/worker/WASQLiteDB.umd.js +900 -395
  12. package/dist/worker/WASQLiteDB.umd.js.map +1 -1
  13. package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite-async_mjs.umd.js +2 -132
  14. package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite-async_mjs.umd.js.map +1 -1
  15. package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite_mjs.umd.js +45 -0
  16. package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite_mjs.umd.js.map +1 -0
  17. package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js.umd.js +1470 -0
  18. package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js.umd.js.map +1 -0
  19. package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js.umd.js +1707 -1372
  20. package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js.umd.js.map +1 -1
  21. package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_OPFSCoopSyncVFS_js.umd.js +1602 -0
  22. package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_OPFSCoopSyncVFS_js.umd.js.map +1 -0
  23. package/lib/package.json +5 -5
  24. package/lib/src/db/PowerSyncDatabase.d.ts +1 -1
  25. package/lib/src/db/PowerSyncDatabase.js +5 -2
  26. package/lib/src/db/adapters/AbstractWebSQLOpenFactory.d.ts +2 -0
  27. package/lib/src/db/adapters/AbstractWebSQLOpenFactory.js +3 -0
  28. package/lib/src/db/adapters/AsyncDatabaseConnection.d.ts +26 -0
  29. package/lib/src/db/adapters/LockedAsyncDatabaseAdapter.d.ts +82 -0
  30. package/lib/src/db/adapters/LockedAsyncDatabaseAdapter.js +239 -0
  31. package/lib/src/db/adapters/WebDBAdapter.d.ts +17 -0
  32. package/lib/src/db/adapters/WebDBAdapter.js +1 -0
  33. package/lib/src/db/adapters/WorkerWrappedAsyncDatabaseConnection.d.ts +38 -0
  34. package/lib/src/db/adapters/WorkerWrappedAsyncDatabaseConnection.js +45 -0
  35. package/lib/src/db/adapters/wa-sqlite/WASQLiteConnection.d.ts +117 -0
  36. package/lib/src/db/adapters/wa-sqlite/WASQLiteConnection.js +289 -0
  37. package/lib/src/db/adapters/wa-sqlite/WASQLiteDBAdapter.d.ts +7 -43
  38. package/lib/src/db/adapters/wa-sqlite/WASQLiteDBAdapter.js +34 -209
  39. package/lib/src/db/adapters/wa-sqlite/WASQLiteOpenFactory.d.ts +12 -0
  40. package/lib/src/db/adapters/wa-sqlite/WASQLiteOpenFactory.js +57 -4
  41. package/lib/src/db/adapters/web-sql-flags.d.ts +16 -0
  42. package/lib/src/db/adapters/web-sql-flags.js +5 -0
  43. package/lib/src/db/sync/SharedWebStreamingSyncImplementation.d.ts +9 -2
  44. package/lib/src/db/sync/SharedWebStreamingSyncImplementation.js +16 -10
  45. package/lib/src/db/sync/WebStreamingSyncImplementation.d.ts +0 -5
  46. package/lib/src/index.d.ts +8 -7
  47. package/lib/src/index.js +8 -7
  48. package/lib/src/worker/db/WASQLiteDB.worker.js +38 -20
  49. package/lib/src/worker/db/open-worker-database.d.ts +5 -4
  50. package/lib/src/worker/db/open-worker-database.js +5 -3
  51. package/lib/src/worker/sync/AbstractSharedSyncClientProvider.d.ts +1 -0
  52. package/lib/src/worker/sync/SharedSyncImplementation.d.ts +20 -3
  53. package/lib/src/worker/sync/SharedSyncImplementation.js +40 -11
  54. package/lib/tsconfig.tsbuildinfo +1 -1
  55. package/package.json +6 -6
  56. package/dist/5fe5ed837a91c836c24f.wasm +0 -0
  57. package/lib/src/shared/open-db.d.ts +0 -5
  58. package/lib/src/shared/open-db.js +0 -192
  59. package/lib/src/shared/types.d.ts +0 -22
  60. /package/lib/src/{shared/types.js → db/adapters/AsyncDatabaseConnection.js} +0 -0
Binary file
@@ -0,0 +1,335 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("@journeyapps/wa-sqlite"), require("@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"), require("@powersync/common"), require("async-mutex"), require("comlink"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["@journeyapps/wa-sqlite", "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js", "@powersync/common", "async-mutex", "comlink"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["sdk_web"] = factory(require("@journeyapps/wa-sqlite"), require("@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"), require("@powersync/common"), require("async-mutex"), require("comlink"));
8
+ else
9
+ root["sdk_web"] = factory(root["@journeyapps/wa-sqlite"], root["@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"], root["@powersync/common"], root["async-mutex"], root["comlink"]);
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__, __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__, __WEBPACK_EXTERNAL_MODULE__powersync_common__, __WEBPACK_EXTERNAL_MODULE_async_mutex__, __WEBPACK_EXTERNAL_MODULE_comlink__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ "@journeyapps/wa-sqlite":
16
+ /*!*****************************************!*\
17
+ !*** external "@journeyapps/wa-sqlite" ***!
18
+ \*****************************************/
19
+ /***/ ((module) => {
20
+
21
+ module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__;
22
+
23
+ /***/ }),
24
+
25
+ /***/ "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js":
26
+ /*!***************************************************************************!*\
27
+ !*** external "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js" ***!
28
+ \***************************************************************************/
29
+ /***/ ((module) => {
30
+
31
+ module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__;
32
+
33
+ /***/ }),
34
+
35
+ /***/ "@powersync/common":
36
+ /*!************************************!*\
37
+ !*** external "@powersync/common" ***!
38
+ \************************************/
39
+ /***/ ((module) => {
40
+
41
+ module.exports = __WEBPACK_EXTERNAL_MODULE__powersync_common__;
42
+
43
+ /***/ }),
44
+
45
+ /***/ "async-mutex":
46
+ /*!******************************!*\
47
+ !*** external "async-mutex" ***!
48
+ \******************************/
49
+ /***/ ((module) => {
50
+
51
+ module.exports = __WEBPACK_EXTERNAL_MODULE_async_mutex__;
52
+
53
+ /***/ }),
54
+
55
+ /***/ "comlink":
56
+ /*!**************************!*\
57
+ !*** external "comlink" ***!
58
+ \**************************/
59
+ /***/ ((module) => {
60
+
61
+ module.exports = __WEBPACK_EXTERNAL_MODULE_comlink__;
62
+
63
+ /***/ })
64
+
65
+ /******/ });
66
+ /************************************************************************/
67
+ /******/ // The module cache
68
+ /******/ var __webpack_module_cache__ = {};
69
+ /******/
70
+ /******/ // The require function
71
+ /******/ function __webpack_require__(moduleId) {
72
+ /******/ // Check if module is in cache
73
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
74
+ /******/ if (cachedModule !== undefined) {
75
+ /******/ return cachedModule.exports;
76
+ /******/ }
77
+ /******/ // Create a new module (and put it into the cache)
78
+ /******/ var module = __webpack_module_cache__[moduleId] = {
79
+ /******/ id: moduleId,
80
+ /******/ loaded: false,
81
+ /******/ exports: {}
82
+ /******/ };
83
+ /******/
84
+ /******/ // Execute the module function
85
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
86
+ /******/
87
+ /******/ // Flag the module as loaded
88
+ /******/ module.loaded = true;
89
+ /******/
90
+ /******/ // Return the exports of the module
91
+ /******/ return module.exports;
92
+ /******/ }
93
+ /******/
94
+ /******/ // expose the modules object (__webpack_modules__)
95
+ /******/ __webpack_require__.m = __webpack_modules__;
96
+ /******/
97
+ /******/ // the startup function
98
+ /******/ __webpack_require__.x = () => {
99
+ /******/ // Load entry module and return exports
100
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
101
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["lib_src_worker_db_WASQLiteDB_worker_js-lib_src_worker_sync_SharedSyncImplementation_worker_js"], () => (__webpack_require__("./lib/src/worker/db/WASQLiteDB.worker.js")))
102
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
103
+ /******/ return __webpack_exports__;
104
+ /******/ };
105
+ /******/
106
+ /************************************************************************/
107
+ /******/ /* webpack/runtime/chunk loaded */
108
+ /******/ (() => {
109
+ /******/ var deferred = [];
110
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
111
+ /******/ if(chunkIds) {
112
+ /******/ priority = priority || 0;
113
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
114
+ /******/ deferred[i] = [chunkIds, fn, priority];
115
+ /******/ return;
116
+ /******/ }
117
+ /******/ var notFulfilled = Infinity;
118
+ /******/ for (var i = 0; i < deferred.length; i++) {
119
+ /******/ var [chunkIds, fn, priority] = deferred[i];
120
+ /******/ var fulfilled = true;
121
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
122
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
123
+ /******/ chunkIds.splice(j--, 1);
124
+ /******/ } else {
125
+ /******/ fulfilled = false;
126
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
127
+ /******/ }
128
+ /******/ }
129
+ /******/ if(fulfilled) {
130
+ /******/ deferred.splice(i--, 1)
131
+ /******/ var r = fn();
132
+ /******/ if (r !== undefined) result = r;
133
+ /******/ }
134
+ /******/ }
135
+ /******/ return result;
136
+ /******/ };
137
+ /******/ })();
138
+ /******/
139
+ /******/ /* webpack/runtime/compat get default export */
140
+ /******/ (() => {
141
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
142
+ /******/ __webpack_require__.n = (module) => {
143
+ /******/ var getter = module && module.__esModule ?
144
+ /******/ () => (module['default']) :
145
+ /******/ () => (module);
146
+ /******/ __webpack_require__.d(getter, { a: getter });
147
+ /******/ return getter;
148
+ /******/ };
149
+ /******/ })();
150
+ /******/
151
+ /******/ /* webpack/runtime/create fake namespace object */
152
+ /******/ (() => {
153
+ /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
154
+ /******/ var leafPrototypes;
155
+ /******/ // create a fake namespace object
156
+ /******/ // mode & 1: value is a module id, require it
157
+ /******/ // mode & 2: merge all properties of value into the ns
158
+ /******/ // mode & 4: return value when already ns object
159
+ /******/ // mode & 16: return value when it's Promise-like
160
+ /******/ // mode & 8|1: behave like require
161
+ /******/ __webpack_require__.t = function(value, mode) {
162
+ /******/ if(mode & 1) value = this(value);
163
+ /******/ if(mode & 8) return value;
164
+ /******/ if(typeof value === 'object' && value) {
165
+ /******/ if((mode & 4) && value.__esModule) return value;
166
+ /******/ if((mode & 16) && typeof value.then === 'function') return value;
167
+ /******/ }
168
+ /******/ var ns = Object.create(null);
169
+ /******/ __webpack_require__.r(ns);
170
+ /******/ var def = {};
171
+ /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
172
+ /******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
173
+ /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
174
+ /******/ }
175
+ /******/ def['default'] = () => (value);
176
+ /******/ __webpack_require__.d(ns, def);
177
+ /******/ return ns;
178
+ /******/ };
179
+ /******/ })();
180
+ /******/
181
+ /******/ /* webpack/runtime/define property getters */
182
+ /******/ (() => {
183
+ /******/ // define getter functions for harmony exports
184
+ /******/ __webpack_require__.d = (exports, definition) => {
185
+ /******/ for(var key in definition) {
186
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
187
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
188
+ /******/ }
189
+ /******/ }
190
+ /******/ };
191
+ /******/ })();
192
+ /******/
193
+ /******/ /* webpack/runtime/ensure chunk */
194
+ /******/ (() => {
195
+ /******/ __webpack_require__.f = {};
196
+ /******/ // This file contains only the entry chunk.
197
+ /******/ // The chunk loading function for additional chunks
198
+ /******/ __webpack_require__.e = (chunkId) => {
199
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
200
+ /******/ __webpack_require__.f[key](chunkId, promises);
201
+ /******/ return promises;
202
+ /******/ }, []));
203
+ /******/ };
204
+ /******/ })();
205
+ /******/
206
+ /******/ /* webpack/runtime/get javascript chunk filename */
207
+ /******/ (() => {
208
+ /******/ // This function allow to reference async chunks and sibling chunks for the entrypoint
209
+ /******/ __webpack_require__.u = (chunkId) => {
210
+ /******/ // return url for filenames based on template
211
+ /******/ return "index.umd.js";
212
+ /******/ };
213
+ /******/ })();
214
+ /******/
215
+ /******/ /* webpack/runtime/global */
216
+ /******/ (() => {
217
+ /******/ __webpack_require__.g = (function() {
218
+ /******/ if (typeof globalThis === 'object') return globalThis;
219
+ /******/ try {
220
+ /******/ return this || new Function('return this')();
221
+ /******/ } catch (e) {
222
+ /******/ if (typeof window === 'object') return window;
223
+ /******/ }
224
+ /******/ })();
225
+ /******/ })();
226
+ /******/
227
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
228
+ /******/ (() => {
229
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
230
+ /******/ })();
231
+ /******/
232
+ /******/ /* webpack/runtime/make namespace object */
233
+ /******/ (() => {
234
+ /******/ // define __esModule on exports
235
+ /******/ __webpack_require__.r = (exports) => {
236
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
237
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
238
+ /******/ }
239
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
240
+ /******/ };
241
+ /******/ })();
242
+ /******/
243
+ /******/ /* webpack/runtime/node module decorator */
244
+ /******/ (() => {
245
+ /******/ __webpack_require__.nmd = (module) => {
246
+ /******/ module.paths = [];
247
+ /******/ if (!module.children) module.children = [];
248
+ /******/ return module;
249
+ /******/ };
250
+ /******/ })();
251
+ /******/
252
+ /******/ /* webpack/runtime/publicPath */
253
+ /******/ (() => {
254
+ /******/ var scriptUrl;
255
+ /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
256
+ /******/ var document = __webpack_require__.g.document;
257
+ /******/ if (!scriptUrl && document) {
258
+ /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
259
+ /******/ scriptUrl = document.currentScript.src;
260
+ /******/ if (!scriptUrl) {
261
+ /******/ var scripts = document.getElementsByTagName("script");
262
+ /******/ if(scripts.length) {
263
+ /******/ var i = scripts.length - 1;
264
+ /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
265
+ /******/ }
266
+ /******/ }
267
+ /******/ }
268
+ /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
269
+ /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
270
+ /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
271
+ /******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
272
+ /******/ __webpack_require__.p = scriptUrl;
273
+ /******/ })();
274
+ /******/
275
+ /******/ /* webpack/runtime/importScripts chunk loading */
276
+ /******/ (() => {
277
+ /******/ __webpack_require__.b = self.location + "";
278
+ /******/
279
+ /******/ // object to store loaded chunks
280
+ /******/ // "1" means "already loaded"
281
+ /******/ var installedChunks = {
282
+ /******/ "_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js-_powersync_co-780aa20": 1
283
+ /******/ };
284
+ /******/
285
+ /******/ // importScripts chunk loading
286
+ /******/ var installChunk = (data) => {
287
+ /******/ var [chunkIds, moreModules, runtime] = data;
288
+ /******/ for(var moduleId in moreModules) {
289
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
290
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
291
+ /******/ }
292
+ /******/ }
293
+ /******/ if(runtime) runtime(__webpack_require__);
294
+ /******/ while(chunkIds.length)
295
+ /******/ installedChunks[chunkIds.pop()] = 1;
296
+ /******/ parentChunkLoadingFunction(data);
297
+ /******/ };
298
+ /******/ __webpack_require__.f.i = (chunkId, promises) => {
299
+ /******/ // "1" is the signal for "already loaded"
300
+ /******/ if(!installedChunks[chunkId]) {
301
+ /******/ if(true) { // all chunks have JS
302
+ /******/ importScripts(__webpack_require__.p + __webpack_require__.u(chunkId));
303
+ /******/ }
304
+ /******/ }
305
+ /******/ };
306
+ /******/
307
+ /******/ var chunkLoadingGlobal = self["webpackChunksdk_web"] = self["webpackChunksdk_web"] || [];
308
+ /******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
309
+ /******/ chunkLoadingGlobal.push = installChunk;
310
+ /******/
311
+ /******/ // no HMR
312
+ /******/
313
+ /******/ // no HMR manifest
314
+ /******/ })();
315
+ /******/
316
+ /******/ /* webpack/runtime/startup chunk dependencies */
317
+ /******/ (() => {
318
+ /******/ var next = __webpack_require__.x;
319
+ /******/ __webpack_require__.x = () => {
320
+ /******/ return Promise.all([
321
+ /******/
322
+ /******/ ]).then(next);
323
+ /******/ };
324
+ /******/ })();
325
+ /******/
326
+ /************************************************************************/
327
+ /******/
328
+ /******/ // run startup
329
+ /******/ var __webpack_exports__ = __webpack_require__.x();
330
+ /******/
331
+ /******/ return __webpack_exports__;
332
+ /******/ })()
333
+ ;
334
+ });
335
+ //# sourceMappingURL=_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js-_powersync_co-780aa20.index.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js-_powersync_co-780aa20.index.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACVA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACRA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACNA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;;;;;AELA;AACA","sources":["webpack://sdk_web/webpack/universalModuleDefinition","webpack://sdk_web/external umd \"@journeyapps/wa-sqlite\"","webpack://sdk_web/external umd \"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\"","webpack://sdk_web/external umd \"@powersync/common\"","webpack://sdk_web/external umd \"async-mutex\"","webpack://sdk_web/external umd \"comlink\"","webpack://sdk_web/webpack/bootstrap","webpack://sdk_web/webpack/runtime/chunk loaded","webpack://sdk_web/webpack/runtime/compat get default export","webpack://sdk_web/webpack/runtime/create fake namespace object","webpack://sdk_web/webpack/runtime/define property getters","webpack://sdk_web/webpack/runtime/ensure chunk","webpack://sdk_web/webpack/runtime/get javascript chunk filename","webpack://sdk_web/webpack/runtime/global","webpack://sdk_web/webpack/runtime/hasOwnProperty shorthand","webpack://sdk_web/webpack/runtime/make namespace object","webpack://sdk_web/webpack/runtime/node module decorator","webpack://sdk_web/webpack/runtime/publicPath","webpack://sdk_web/webpack/runtime/importScripts chunk loading","webpack://sdk_web/webpack/runtime/startup chunk dependencies","webpack://sdk_web/webpack/before-startup","webpack://sdk_web/webpack/startup","webpack://sdk_web/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@journeyapps/wa-sqlite\"), require(\"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\"), require(\"@powersync/common\"), require(\"async-mutex\"), require(\"comlink\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@journeyapps/wa-sqlite\", \"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\", \"@powersync/common\", \"async-mutex\", \"comlink\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"sdk_web\"] = factory(require(\"@journeyapps/wa-sqlite\"), require(\"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\"), require(\"@powersync/common\"), require(\"async-mutex\"), require(\"comlink\"));\n\telse\n\t\troot[\"sdk_web\"] = factory(root[\"@journeyapps/wa-sqlite\"], root[\"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\"], root[\"@powersync/common\"], root[\"async-mutex\"], root[\"comlink\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__, __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__, __WEBPACK_EXTERNAL_MODULE__powersync_common__, __WEBPACK_EXTERNAL_MODULE_async_mutex__, __WEBPACK_EXTERNAL_MODULE_comlink__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__;","module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__;","module.exports = __WEBPACK_EXTERNAL_MODULE__powersync_common__;","module.exports = __WEBPACK_EXTERNAL_MODULE_async_mutex__;","module.exports = __WEBPACK_EXTERNAL_MODULE_comlink__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = () => {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [\"lib_src_worker_db_WASQLiteDB_worker_js-lib_src_worker_sync_SharedSyncImplementation_worker_js\"], () => (__webpack_require__(\"./lib/src/worker/db/WASQLiteDB.worker.js\")))\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"index.umd.js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = self.location + \"\";\n\n// object to store loaded chunks\n// \"1\" means \"already loaded\"\nvar installedChunks = {\n\t\"_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js-_powersync_co-780aa20\": 1\n};\n\n// importScripts chunk loading\nvar installChunk = (data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\twhile(chunkIds.length)\n\t\tinstalledChunks[chunkIds.pop()] = 1;\n\tparentChunkLoadingFunction(data);\n};\n__webpack_require__.f.i = (chunkId, promises) => {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\timportScripts(__webpack_require__.p + __webpack_require__.u(chunkId));\n\t\t}\n\t}\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunksdk_web\"] = self[\"webpackChunksdk_web\"] || [];\nvar parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);\nchunkLoadingGlobal.push = installChunk;\n\n// no HMR\n\n// no HMR manifest","var next = __webpack_require__.x;\n__webpack_require__.x = () => {\n\treturn Promise.all([\n\n\t]).then(next);\n};","","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n",""],"names":[],"sourceRoot":""}