indexeddbshim 15.1.0 → 16.0.0
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.
- package/badges/licenses-badge-dev.svg +1 -1
- package/badges/licenses-badge.svg +1 -1
- package/dist/DOMException.d.ts +2 -2
- package/dist/DOMException.d.ts.map +1 -1
- package/dist/DOMStringList.d.ts.map +1 -1
- package/dist/Event.d.ts +1 -1
- package/dist/Event.d.ts.map +1 -1
- package/dist/IDBCursor.d.ts +1 -1
- package/dist/IDBCursor.d.ts.map +1 -1
- package/dist/IDBDatabase.d.ts.map +1 -1
- package/dist/IDBFactory.d.ts +1 -1
- package/dist/IDBFactory.d.ts.map +1 -1
- package/dist/IDBIndex.d.ts +3 -3
- package/dist/IDBIndex.d.ts.map +1 -1
- package/dist/IDBKeyRange.d.ts +2 -2
- package/dist/IDBKeyRange.d.ts.map +1 -1
- package/dist/IDBObjectStore.d.ts +3 -3
- package/dist/IDBObjectStore.d.ts.map +1 -1
- package/dist/IDBTransaction.d.ts.map +1 -1
- package/dist/Key.d.ts +7 -7
- package/dist/Key.d.ts.map +1 -1
- package/dist/Sca.d.ts +1 -1
- package/dist/Sca.d.ts.map +1 -1
- package/dist/indexeddbshim-Key.js +11 -12
- package/dist/indexeddbshim-Key.js.map +1 -1
- package/dist/indexeddbshim-Key.min.js +2 -2
- package/dist/indexeddbshim-Key.min.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +808 -700
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +315 -493
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +4 -2
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +808 -700
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +315 -493
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +4 -2
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +315 -493
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +4 -2
- package/dist/indexeddbshim.min.js.map +1 -1
- package/dist/node-UnicodeIdentifiers.d.ts.map +1 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/setGlobalVars.d.ts +1 -1
- package/dist/setGlobalVars.d.ts.map +1 -1
- package/dist/unicode-regex.d.ts +2 -2
- package/dist/unicode-regex.d.ts.map +1 -1
- package/dist/util.d.ts +2 -1
- package/dist/util.d.ts.map +1 -1
- package/package.json +27 -27
- package/src/DOMException.js +0 -1
- package/src/DOMStringList.js +0 -1
- package/src/IDBCursor.js +1 -1
- package/src/IDBFactory.js +2 -3
- package/src/IDBIndex.js +18 -6
- package/src/IDBKeyRange.js +1 -0
- package/src/IDBObjectStore.js +0 -1
- package/src/IDBTransaction.js +0 -1
- package/src/Key.js +1 -1
- package/src/setGlobalVars.js +1 -1
- package/src/unicode-regex.js +12 -3
- package/src/util.js +3 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v16.0.0 - 6/14/2025 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
function _defineProperties(e, r) {
|
|
55
55
|
for (var t = 0; t < r.length; t++) {
|
|
56
56
|
var o = r[t];
|
|
57
|
-
o.enumerable = o.enumerable ||
|
|
57
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey$1(o.key), o);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function _createClass$1(e, r, t) {
|
|
61
61
|
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
62
|
-
writable:
|
|
62
|
+
writable: false
|
|
63
63
|
}), e;
|
|
64
64
|
}
|
|
65
65
|
function _createForOfIteratorHelper(r, e) {
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
s: F,
|
|
74
74
|
n: function () {
|
|
75
75
|
return n >= r.length ? {
|
|
76
|
-
done:
|
|
76
|
+
done: true
|
|
77
77
|
} : {
|
|
78
|
-
done:
|
|
78
|
+
done: false,
|
|
79
79
|
value: r[n++]
|
|
80
80
|
};
|
|
81
81
|
},
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
89
89
|
}
|
|
90
90
|
var o,
|
|
91
|
-
a =
|
|
92
|
-
u =
|
|
91
|
+
a = true,
|
|
92
|
+
u = false;
|
|
93
93
|
return {
|
|
94
94
|
s: function () {
|
|
95
95
|
t = t.call(r);
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
return a = r.done, r;
|
|
100
100
|
},
|
|
101
101
|
e: function (r) {
|
|
102
|
-
u =
|
|
102
|
+
u = true, o = r;
|
|
103
103
|
},
|
|
104
104
|
f: function () {
|
|
105
105
|
try {
|
|
@@ -112,17 +112,17 @@
|
|
|
112
112
|
}
|
|
113
113
|
function _defineAccessor(e, r, n, t) {
|
|
114
114
|
var c = {
|
|
115
|
-
configurable:
|
|
116
|
-
enumerable:
|
|
115
|
+
configurable: true,
|
|
116
|
+
enumerable: true
|
|
117
117
|
};
|
|
118
118
|
return c[e] = t, Object.defineProperty(r, n, c);
|
|
119
119
|
}
|
|
120
120
|
function _defineProperty$1(e, r, t) {
|
|
121
121
|
return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
|
|
122
122
|
value: t,
|
|
123
|
-
enumerable:
|
|
124
|
-
configurable:
|
|
125
|
-
writable:
|
|
123
|
+
enumerable: true,
|
|
124
|
+
configurable: true,
|
|
125
|
+
writable: true
|
|
126
126
|
}) : e[r] = t, e;
|
|
127
127
|
}
|
|
128
128
|
function _isNativeReflectConstruct() {
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
i,
|
|
145
145
|
u,
|
|
146
146
|
a = [],
|
|
147
|
-
f =
|
|
148
|
-
o =
|
|
147
|
+
f = true,
|
|
148
|
+
o = false;
|
|
149
149
|
try {
|
|
150
150
|
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
151
151
|
} catch (r) {
|
|
152
|
-
o =
|
|
152
|
+
o = true, n = r;
|
|
153
153
|
} finally {
|
|
154
154
|
try {
|
|
155
155
|
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
function _objectSpread2$1(e) {
|
|
180
180
|
for (var r = 1; r < arguments.length; r++) {
|
|
181
181
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
182
|
-
r % 2 ? ownKeys$1(Object(t),
|
|
182
|
+
r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) {
|
|
183
183
|
_defineProperty$1(e, r, t[r]);
|
|
184
184
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
|
|
185
185
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
@@ -187,306 +187,115 @@
|
|
|
187
187
|
}
|
|
188
188
|
return e;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
y = {};
|
|
247
|
-
function Generator() {}
|
|
248
|
-
function GeneratorFunction() {}
|
|
249
|
-
function GeneratorFunctionPrototype() {}
|
|
250
|
-
var p = {};
|
|
251
|
-
define(p, a, function () {
|
|
252
|
-
return this;
|
|
253
|
-
});
|
|
254
|
-
var d = Object.getPrototypeOf,
|
|
255
|
-
v = d && d(d(values([])));
|
|
256
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
257
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
258
|
-
function defineIteratorMethods(t) {
|
|
259
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
260
|
-
define(t, e, function (t) {
|
|
261
|
-
return this._invoke(e, t);
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function AsyncIterator(t, e) {
|
|
266
|
-
function invoke(r, o, i, a) {
|
|
267
|
-
var c = tryCatch(t[r], t, o);
|
|
268
|
-
if ("throw" !== c.type) {
|
|
269
|
-
var u = c.arg,
|
|
270
|
-
h = u.value;
|
|
271
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
272
|
-
invoke("next", t, i, a);
|
|
273
|
-
}, function (t) {
|
|
274
|
-
invoke("throw", t, i, a);
|
|
275
|
-
}) : e.resolve(h).then(function (t) {
|
|
276
|
-
u.value = t, i(u);
|
|
277
|
-
}, function (t) {
|
|
278
|
-
return invoke("throw", t, i, a);
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
a(c.arg);
|
|
282
|
-
}
|
|
283
|
-
var r;
|
|
284
|
-
o(this, "_invoke", {
|
|
285
|
-
value: function (t, n) {
|
|
286
|
-
function callInvokeWithMethodAndArg() {
|
|
287
|
-
return new e(function (e, r) {
|
|
288
|
-
invoke(t, n, e, r);
|
|
289
|
-
});
|
|
190
|
+
function _regenerator() {
|
|
191
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
192
|
+
var e,
|
|
193
|
+
t,
|
|
194
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
195
|
+
n = r.iterator || "@@iterator",
|
|
196
|
+
o = r.toStringTag || "@@toStringTag";
|
|
197
|
+
function i(r, n, o, i) {
|
|
198
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
199
|
+
u = Object.create(c.prototype);
|
|
200
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
201
|
+
var i,
|
|
202
|
+
c,
|
|
203
|
+
u,
|
|
204
|
+
f = 0,
|
|
205
|
+
p = o || [],
|
|
206
|
+
y = false,
|
|
207
|
+
G = {
|
|
208
|
+
p: 0,
|
|
209
|
+
n: 0,
|
|
210
|
+
v: e,
|
|
211
|
+
a: d,
|
|
212
|
+
f: d.bind(e, 4),
|
|
213
|
+
d: function (t, r) {
|
|
214
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
function d(r, n) {
|
|
218
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
219
|
+
var o,
|
|
220
|
+
i = p[t],
|
|
221
|
+
d = G.p,
|
|
222
|
+
l = i[2];
|
|
223
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
224
|
+
}
|
|
225
|
+
if (o || r > 1) return a;
|
|
226
|
+
throw y = true, n;
|
|
227
|
+
}
|
|
228
|
+
return function (o, p, l) {
|
|
229
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
230
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
231
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
232
|
+
try {
|
|
233
|
+
if (f = 2, i) {
|
|
234
|
+
if (c || (o = "next"), t = i[o]) {
|
|
235
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
236
|
+
if (!t.done) return t;
|
|
237
|
+
u = t.value, c < 2 && (c = 0);
|
|
238
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
239
|
+
i = e;
|
|
240
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
241
|
+
} catch (t) {
|
|
242
|
+
i = e, c = 1, u = t;
|
|
243
|
+
} finally {
|
|
244
|
+
f = 1;
|
|
245
|
+
}
|
|
290
246
|
}
|
|
291
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
function makeInvokeMethod(e, r, n) {
|
|
296
|
-
var o = h;
|
|
297
|
-
return function (i, a) {
|
|
298
|
-
if (o === f) throw Error("Generator is already running");
|
|
299
|
-
if (o === s) {
|
|
300
|
-
if ("throw" === i) throw a;
|
|
301
247
|
return {
|
|
302
248
|
value: t,
|
|
303
|
-
done:
|
|
249
|
+
done: y
|
|
304
250
|
};
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
var c = n.delegate;
|
|
308
|
-
if (c) {
|
|
309
|
-
var u = maybeInvokeDelegate(c, n);
|
|
310
|
-
if (u) {
|
|
311
|
-
if (u === y) continue;
|
|
312
|
-
return u;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
316
|
-
if (o === h) throw o = s, n.arg;
|
|
317
|
-
n.dispatchException(n.arg);
|
|
318
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
319
|
-
o = f;
|
|
320
|
-
var p = tryCatch(e, r, n);
|
|
321
|
-
if ("normal" === p.type) {
|
|
322
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
323
|
-
return {
|
|
324
|
-
value: p.arg,
|
|
325
|
-
done: n.done
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
329
|
-
}
|
|
330
|
-
};
|
|
251
|
+
};
|
|
252
|
+
}(r, o, i), true), u;
|
|
331
253
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
function
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
346
|
-
}
|
|
347
|
-
function resetTryEntry(t) {
|
|
348
|
-
var e = t.completion || {};
|
|
349
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
350
|
-
}
|
|
351
|
-
function Context(t) {
|
|
352
|
-
this.tryEntries = [{
|
|
353
|
-
tryLoc: "root"
|
|
354
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
355
|
-
}
|
|
356
|
-
function values(e) {
|
|
357
|
-
if (e || "" === e) {
|
|
358
|
-
var r = e[a];
|
|
359
|
-
if (r) return r.call(e);
|
|
360
|
-
if ("function" == typeof e.next) return e;
|
|
361
|
-
if (!isNaN(e.length)) {
|
|
362
|
-
var o = -1,
|
|
363
|
-
i = function next() {
|
|
364
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
365
|
-
return next.value = t, next.done = !0, next;
|
|
366
|
-
};
|
|
367
|
-
return i.next = i;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
371
|
-
}
|
|
372
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
373
|
-
value: GeneratorFunctionPrototype,
|
|
374
|
-
configurable: !0
|
|
375
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
376
|
-
value: GeneratorFunction,
|
|
377
|
-
configurable: !0
|
|
378
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
379
|
-
var e = "function" == typeof t && t.constructor;
|
|
380
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
381
|
-
}, e.mark = function (t) {
|
|
382
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
383
|
-
}, e.awrap = function (t) {
|
|
384
|
-
return {
|
|
385
|
-
__await: t
|
|
386
|
-
};
|
|
387
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
388
|
-
return this;
|
|
389
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
390
|
-
void 0 === i && (i = Promise);
|
|
391
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
392
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
393
|
-
return t.done ? t.value : a.next();
|
|
394
|
-
});
|
|
395
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
254
|
+
var a = {};
|
|
255
|
+
function Generator() {}
|
|
256
|
+
function GeneratorFunction() {}
|
|
257
|
+
function GeneratorFunctionPrototype() {}
|
|
258
|
+
t = Object.getPrototypeOf;
|
|
259
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
260
|
+
return this;
|
|
261
|
+
}), t),
|
|
262
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
263
|
+
function f(e) {
|
|
264
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
265
|
+
}
|
|
266
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
396
267
|
return this;
|
|
397
|
-
}),
|
|
268
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
398
269
|
return "[object Generator]";
|
|
399
|
-
}),
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
return r.reverse(), function next() {
|
|
404
|
-
for (; r.length;) {
|
|
405
|
-
var t = r.pop();
|
|
406
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
407
|
-
}
|
|
408
|
-
return next.done = !0, next;
|
|
270
|
+
}), (_regenerator = function () {
|
|
271
|
+
return {
|
|
272
|
+
w: i,
|
|
273
|
+
m: f
|
|
409
274
|
};
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
431
|
-
if (i.tryLoc <= this.prev) {
|
|
432
|
-
var c = n.call(i, "catchLoc"),
|
|
433
|
-
u = n.call(i, "finallyLoc");
|
|
434
|
-
if (c && u) {
|
|
435
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
436
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
437
|
-
} else if (c) {
|
|
438
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
439
|
-
} else {
|
|
440
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
441
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
abrupt: function (t, e) {
|
|
447
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
448
|
-
var o = this.tryEntries[r];
|
|
449
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
450
|
-
var i = o;
|
|
451
|
-
break;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
455
|
-
var a = i ? i.completion : {};
|
|
456
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
457
|
-
},
|
|
458
|
-
complete: function (t, e) {
|
|
459
|
-
if ("throw" === t.type) throw t.arg;
|
|
460
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
461
|
-
},
|
|
462
|
-
finish: function (t) {
|
|
463
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
464
|
-
var r = this.tryEntries[e];
|
|
465
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
catch: function (t) {
|
|
469
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
470
|
-
var r = this.tryEntries[e];
|
|
471
|
-
if (r.tryLoc === t) {
|
|
472
|
-
var n = r.completion;
|
|
473
|
-
if ("throw" === n.type) {
|
|
474
|
-
var o = n.arg;
|
|
475
|
-
resetTryEntry(r);
|
|
476
|
-
}
|
|
477
|
-
return o;
|
|
478
|
-
}
|
|
275
|
+
})();
|
|
276
|
+
}
|
|
277
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
278
|
+
var i = Object.defineProperty;
|
|
279
|
+
try {
|
|
280
|
+
i({}, "", {});
|
|
281
|
+
} catch (e) {
|
|
282
|
+
i = 0;
|
|
283
|
+
}
|
|
284
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
285
|
+
if (r) i ? i(e, r, {
|
|
286
|
+
value: n,
|
|
287
|
+
enumerable: !t,
|
|
288
|
+
configurable: !t,
|
|
289
|
+
writable: !t
|
|
290
|
+
}) : e[r] = n;else {
|
|
291
|
+
function o(r, n) {
|
|
292
|
+
_regeneratorDefine(e, r, function (e) {
|
|
293
|
+
return this._invoke(r, n, e);
|
|
294
|
+
});
|
|
479
295
|
}
|
|
480
|
-
|
|
481
|
-
},
|
|
482
|
-
delegateYield: function (e, r, n) {
|
|
483
|
-
return this.delegate = {
|
|
484
|
-
iterator: values(e),
|
|
485
|
-
resultName: r,
|
|
486
|
-
nextLoc: n
|
|
487
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
296
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
488
297
|
}
|
|
489
|
-
}, e;
|
|
298
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
490
299
|
}
|
|
491
300
|
function _slicedToArray$1(r, e) {
|
|
492
301
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
@@ -505,7 +314,7 @@
|
|
|
505
314
|
if ("object" != typeof t || !t) return t;
|
|
506
315
|
var e = t[Symbol.toPrimitive];
|
|
507
316
|
if (void 0 !== e) {
|
|
508
|
-
var i = e.call(t, r
|
|
317
|
+
var i = e.call(t, r);
|
|
509
318
|
if ("object" != typeof i) return i;
|
|
510
319
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
511
320
|
}
|
|
@@ -1700,8 +1509,16 @@
|
|
|
1700
1509
|
function getDefaultExportFromCjs(x) {
|
|
1701
1510
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1702
1511
|
}
|
|
1703
|
-
var regex
|
|
1704
|
-
var
|
|
1512
|
+
var regex$1;
|
|
1513
|
+
var hasRequiredRegex;
|
|
1514
|
+
function requireRegex() {
|
|
1515
|
+
if (hasRequiredRegex) return regex$1;
|
|
1516
|
+
hasRequiredRegex = 1;
|
|
1517
|
+
regex$1 = /[\xC0-\xC5\xC7-\xCF\xD1-\xD6\xD9-\xDD\xE0-\xE5\xE7-\xEF\xF1-\xF6\xF9-\xFD\xFF-\u010F\u0112-\u0125\u0128-\u0130\u0134-\u0137\u0139-\u013E\u0143-\u0148\u014C-\u0151\u0154-\u0165\u0168-\u017E\u01A0\u01A1\u01AF\u01B0\u01CD-\u01DC\u01DE-\u01E3\u01E6-\u01F0\u01F4\u01F5\u01F8-\u021B\u021E\u021F\u0226-\u0233\u0344\u0385\u0386\u0388-\u038A\u038C\u038E-\u0390\u03AA-\u03B0\u03CA-\u03CE\u03D3\u03D4\u0400\u0401\u0403\u0407\u040C-\u040E\u0419\u0439\u0450\u0451\u0453\u0457\u045C-\u045E\u0476\u0477\u04C1\u04C2\u04D0-\u04D3\u04D6\u04D7\u04DA-\u04DF\u04E2-\u04E7\u04EA-\u04F5\u04F8\u04F9\u0622-\u0626\u06C0\u06C2\u06D3\u0929\u0931\u0934\u0958-\u095F\u09CB\u09CC\u09DC\u09DD\u09DF\u0A33\u0A36\u0A59-\u0A5B\u0A5E\u0B48\u0B4B\u0B4C\u0B5C\u0B5D\u0B94\u0BCA-\u0BCC\u0C48\u0CC0\u0CC7\u0CC8\u0CCA\u0CCB\u0D4A-\u0D4C\u0DDA\u0DDC-\u0DDE\u0F43\u0F4D\u0F52\u0F57\u0F5C\u0F69\u0F73\u0F75\u0F76\u0F78\u0F81\u0F93\u0F9D\u0FA2\u0FA7\u0FAC\u0FB9\u1026\u1B06\u1B08\u1B0A\u1B0C\u1B0E\u1B12\u1B3B\u1B3D\u1B40\u1B41\u1B43\u1E00-\u1E99\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FC1-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEE\u1FF2-\u1FF4\u1FF6-\u1FFC\u212B\u219A\u219B\u21AE\u21CD-\u21CF\u2204\u2209\u220C\u2224\u2226\u2241\u2244\u2247\u2249\u2260\u2262\u226D-\u2271\u2274\u2275\u2278\u2279\u2280\u2281\u2284\u2285\u2288\u2289\u22AC-\u22AF\u22E0-\u22E3\u22EA-\u22ED\u2ADC\u304C\u304E\u3050\u3052\u3054\u3056\u3058\u305A\u305C\u305E\u3060\u3062\u3065\u3067\u3069\u3070\u3071\u3073\u3074\u3076\u3077\u3079\u307A\u307C\u307D\u3094\u309E\u30AC\u30AE\u30B0\u30B2\u30B4\u30B6\u30B8\u30BA\u30BC\u30BE\u30C0\u30C2\u30C5\u30C7\u30C9\u30D0\u30D1\u30D3\u30D4\u30D6\u30D7\u30D9\u30DA\u30DC\u30DD\u30F4\u30F7-\u30FA\u30FE\uAC00-\uD7A3\uFB1D\uFB1F\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFB4E]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1518
|
+
return regex$1;
|
|
1519
|
+
}
|
|
1520
|
+
var regexExports = requireRegex();
|
|
1521
|
+
var regex = /*@__PURE__*/getDefaultExportFromCjs(regexExports);
|
|
1705
1522
|
|
|
1706
1523
|
/**
|
|
1707
1524
|
* @typedef {number} Integer
|
|
@@ -1796,7 +1613,7 @@
|
|
|
1796
1613
|
db = 'D' + escapeNameForSQLiteIdentifier(db);
|
|
1797
1614
|
if (CFG.escapeNFDForDatabaseNames !== false) {
|
|
1798
1615
|
// ES6 copying of regex with different flags
|
|
1799
|
-
db = db.replaceAll(new RegExp(regex
|
|
1616
|
+
db = db.replaceAll(new RegExp(regex, 'gu'), function (expandable) {
|
|
1800
1617
|
return '^4' + /** @type {Integer} */expandable.codePointAt(0).toString(16).padStart(6, '0');
|
|
1801
1618
|
});
|
|
1802
1619
|
}
|
|
@@ -1851,12 +1668,13 @@
|
|
|
1851
1668
|
}
|
|
1852
1669
|
|
|
1853
1670
|
/**
|
|
1671
|
+
* @todo Didn't need to escape `%`. Do we still need this escape?
|
|
1854
1672
|
* @param {string} str
|
|
1855
1673
|
* @returns {string}
|
|
1856
1674
|
*/
|
|
1857
1675
|
function sqlLIKEEscape(str) {
|
|
1858
1676
|
// https://www.sqlite.org/lang_expr.html#like
|
|
1859
|
-
return
|
|
1677
|
+
return str.replaceAll('^', '^^');
|
|
1860
1678
|
}
|
|
1861
1679
|
|
|
1862
1680
|
/**
|
|
@@ -2613,7 +2431,6 @@
|
|
|
2613
2431
|
// Native DOMException works as expected
|
|
2614
2432
|
useNativeDOMException = true;
|
|
2615
2433
|
}
|
|
2616
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
2617
2434
|
} catch (err) {}
|
|
2618
2435
|
var createDOMException = useNativeDOMException
|
|
2619
2436
|
// eslint-disable-next-line @stylistic/operator-linebreak -- Need JSDoc
|
|
@@ -3369,7 +3186,7 @@
|
|
|
3369
3186
|
key = key.slice(2);
|
|
3370
3187
|
if (inArray) {
|
|
3371
3188
|
// remove the space at the end, and the dash before each character
|
|
3372
|
-
key = key.slice(0, -1).replaceAll(
|
|
3189
|
+
key = key.slice(0, -1).replaceAll(/-((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g, '$1');
|
|
3373
3190
|
}
|
|
3374
3191
|
return key;
|
|
3375
3192
|
}
|
|
@@ -3762,7 +3579,7 @@
|
|
|
3762
3579
|
value: date.getTime()
|
|
3763
3580
|
} : {
|
|
3764
3581
|
type: type,
|
|
3765
|
-
value: new Date(date
|
|
3582
|
+
value: new Date(date)
|
|
3766
3583
|
};
|
|
3767
3584
|
}
|
|
3768
3585
|
return {
|
|
@@ -4595,7 +4412,6 @@
|
|
|
4595
4412
|
if (testObject.test) {
|
|
4596
4413
|
cleanInterface = true;
|
|
4597
4414
|
}
|
|
4598
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
4599
4415
|
} catch (err) {
|
|
4600
4416
|
// Object.defineProperty does not work as intended.
|
|
4601
4417
|
}
|
|
@@ -4726,25 +4542,24 @@
|
|
|
4726
4542
|
}
|
|
4727
4543
|
this.sortList();
|
|
4728
4544
|
}
|
|
4729
|
-
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/
|
|
4545
|
+
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4730
4546
|
var i;
|
|
4731
|
-
return
|
|
4732
|
-
while (1) switch (_context.
|
|
4547
|
+
return _regenerator().w(function (_context) {
|
|
4548
|
+
while (1) switch (_context.n) {
|
|
4733
4549
|
case 0:
|
|
4734
4550
|
i = 0;
|
|
4735
4551
|
case 1:
|
|
4736
4552
|
if (!(i < this._items.length)) {
|
|
4737
|
-
_context.
|
|
4553
|
+
_context.n = 3;
|
|
4738
4554
|
break;
|
|
4739
4555
|
}
|
|
4740
|
-
_context.
|
|
4556
|
+
_context.n = 2;
|
|
4741
4557
|
return this._items[i++];
|
|
4742
|
-
case
|
|
4743
|
-
_context.
|
|
4558
|
+
case 2:
|
|
4559
|
+
_context.n = 1;
|
|
4744
4560
|
break;
|
|
4745
|
-
case
|
|
4746
|
-
|
|
4747
|
-
return _context.stop();
|
|
4561
|
+
case 3:
|
|
4562
|
+
return _context.a(2);
|
|
4748
4563
|
}
|
|
4749
4564
|
}, _callee, this);
|
|
4750
4565
|
}));
|
|
@@ -5474,7 +5289,6 @@
|
|
|
5474
5289
|
}
|
|
5475
5290
|
try {
|
|
5476
5291
|
me.__tx.executeSql('ROLLBACK', [], abort, /** @type {SQLStatementErrorCallback} */abort); // Not working in some circumstances, even in Node
|
|
5477
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
5478
5292
|
} catch (err) {
|
|
5479
5293
|
// Browser errs when transaction has ended and since it most likely already erred here,
|
|
5480
5294
|
// we call to abort
|
|
@@ -5601,7 +5415,7 @@
|
|
|
5601
5415
|
function _objectSpread2(e) {
|
|
5602
5416
|
for (var t = 1; t < arguments.length; t++) {
|
|
5603
5417
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
5604
|
-
t % 2 ? ownKeys(Object(r),
|
|
5418
|
+
t % 2 ? ownKeys(Object(r), true).forEach(function (t) {
|
|
5605
5419
|
_defineProperty(e, t, r[t]);
|
|
5606
5420
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ownKeys(Object(r)).forEach(function (t) {
|
|
5607
5421
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
@@ -5623,18 +5437,18 @@
|
|
|
5623
5437
|
return t && function _defineProperties(e, t) {
|
|
5624
5438
|
for (var r = 0; r < t.length; r++) {
|
|
5625
5439
|
var n = t[r];
|
|
5626
|
-
n.enumerable = n.enumerable ||
|
|
5440
|
+
n.enumerable = n.enumerable || false, n.configurable = true, "value" in n && (n.writable = true), Object.defineProperty(e, _toPropertyKey(n.key), n);
|
|
5627
5441
|
}
|
|
5628
5442
|
}(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
5629
|
-
writable:
|
|
5443
|
+
writable: false
|
|
5630
5444
|
}), e;
|
|
5631
5445
|
}
|
|
5632
5446
|
function _defineProperty(e, t, r) {
|
|
5633
5447
|
return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
|
|
5634
5448
|
value: r,
|
|
5635
|
-
enumerable:
|
|
5636
|
-
configurable:
|
|
5637
|
-
writable:
|
|
5449
|
+
enumerable: true,
|
|
5450
|
+
configurable: true,
|
|
5451
|
+
writable: true
|
|
5638
5452
|
}) : e[t] = r, e;
|
|
5639
5453
|
}
|
|
5640
5454
|
function _slicedToArray(e, t) {
|
|
@@ -5648,15 +5462,15 @@
|
|
|
5648
5462
|
o,
|
|
5649
5463
|
i,
|
|
5650
5464
|
c = [],
|
|
5651
|
-
s =
|
|
5652
|
-
u =
|
|
5465
|
+
s = true,
|
|
5466
|
+
u = false;
|
|
5653
5467
|
try {
|
|
5654
5468
|
if (o = (r = r.call(e)).next, 0 === t) {
|
|
5655
5469
|
if (Object(r) !== r) return;
|
|
5656
5470
|
s = !1;
|
|
5657
5471
|
} else for (; !(s = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); s = !0);
|
|
5658
5472
|
} catch (e) {
|
|
5659
|
-
u =
|
|
5473
|
+
u = true, a = e;
|
|
5660
5474
|
} finally {
|
|
5661
5475
|
try {
|
|
5662
5476
|
if (!s && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
|
|
@@ -5743,13 +5557,13 @@
|
|
|
5743
5557
|
var t = Object.hasOwn,
|
|
5744
5558
|
r = Object.getPrototypeOf;
|
|
5745
5559
|
function isThenable(e, t) {
|
|
5746
|
-
return isObject(e) && "function" == typeof e.then && (
|
|
5560
|
+
return isObject(e) && "function" == typeof e.then && (true || "function" == typeof e["catch"]);
|
|
5747
5561
|
}
|
|
5748
5562
|
function toStringTag(e) {
|
|
5749
5563
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
5750
5564
|
}
|
|
5751
5565
|
function hasConstructorOf(e, n) {
|
|
5752
|
-
if (!e || "object" !== _typeof(e)) return
|
|
5566
|
+
if (!e || "object" !== _typeof(e)) return false;
|
|
5753
5567
|
var a = r(e);
|
|
5754
5568
|
if (!a) return null === n;
|
|
5755
5569
|
var o = t(a, "constructor") && a.constructor;
|
|
@@ -5759,7 +5573,7 @@
|
|
|
5759
5573
|
return !(!e || "Object" !== toStringTag(e)) && (!r(e) || hasConstructorOf(e, Object));
|
|
5760
5574
|
}
|
|
5761
5575
|
function isUserObject(e) {
|
|
5762
|
-
if (!e || "Object" !== toStringTag(e)) return
|
|
5576
|
+
if (!e || "Object" !== toStringTag(e)) return false;
|
|
5763
5577
|
var t = r(e);
|
|
5764
5578
|
return !t || hasConstructorOf(e, Object) || isUserObject(t);
|
|
5765
5579
|
}
|
|
@@ -5823,7 +5637,7 @@
|
|
|
5823
5637
|
key: "stringify",
|
|
5824
5638
|
value: function stringify(e, t, r, n) {
|
|
5825
5639
|
n = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), n), {}, {
|
|
5826
|
-
stringification:
|
|
5640
|
+
stringification: true
|
|
5827
5641
|
});
|
|
5828
5642
|
var a = this.encapsulate(e, null, n);
|
|
5829
5643
|
return o(a) ? JSON.stringify(a[0], t, r) : a.then(function (e) {
|
|
@@ -5834,63 +5648,63 @@
|
|
|
5834
5648
|
key: "stringifySync",
|
|
5835
5649
|
value: function stringifySync(e, t, r, n) {
|
|
5836
5650
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5837
|
-
throwOnBadSyncType:
|
|
5651
|
+
throwOnBadSyncType: true
|
|
5838
5652
|
}, n), {}, {
|
|
5839
|
-
sync:
|
|
5653
|
+
sync: true
|
|
5840
5654
|
}));
|
|
5841
5655
|
}
|
|
5842
5656
|
}, {
|
|
5843
5657
|
key: "stringifyAsync",
|
|
5844
5658
|
value: function stringifyAsync(e, t, r, n) {
|
|
5845
5659
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5846
|
-
throwOnBadSyncType:
|
|
5660
|
+
throwOnBadSyncType: true
|
|
5847
5661
|
}, n), {}, {
|
|
5848
|
-
sync:
|
|
5662
|
+
sync: false
|
|
5849
5663
|
}));
|
|
5850
5664
|
}
|
|
5851
5665
|
}, {
|
|
5852
5666
|
key: "parse",
|
|
5853
5667
|
value: function parse(e, t, r) {
|
|
5854
5668
|
return r = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), r), {}, {
|
|
5855
|
-
parse:
|
|
5669
|
+
parse: true
|
|
5856
5670
|
}), this.revive(JSON.parse(e, t), r);
|
|
5857
5671
|
}
|
|
5858
5672
|
}, {
|
|
5859
5673
|
key: "parseSync",
|
|
5860
5674
|
value: function parseSync(e, t, r) {
|
|
5861
5675
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5862
|
-
throwOnBadSyncType:
|
|
5676
|
+
throwOnBadSyncType: true
|
|
5863
5677
|
}, r), {}, {
|
|
5864
|
-
sync:
|
|
5678
|
+
sync: true
|
|
5865
5679
|
}));
|
|
5866
5680
|
}
|
|
5867
5681
|
}, {
|
|
5868
5682
|
key: "parseAsync",
|
|
5869
5683
|
value: function parseAsync(e, t, r) {
|
|
5870
5684
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5871
|
-
throwOnBadSyncType:
|
|
5685
|
+
throwOnBadSyncType: true
|
|
5872
5686
|
}, r), {}, {
|
|
5873
|
-
sync:
|
|
5687
|
+
sync: false
|
|
5874
5688
|
}));
|
|
5875
5689
|
}
|
|
5876
5690
|
}, {
|
|
5877
5691
|
key: "specialTypeNames",
|
|
5878
5692
|
value: function specialTypeNames(e, t) {
|
|
5879
5693
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5880
|
-
return r.returnTypeNames =
|
|
5694
|
+
return r.returnTypeNames = true, this.encapsulate(e, t, r);
|
|
5881
5695
|
}
|
|
5882
5696
|
}, {
|
|
5883
5697
|
key: "rootTypeName",
|
|
5884
5698
|
value: function rootTypeName(e, t) {
|
|
5885
5699
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5886
|
-
return r.iterateNone =
|
|
5700
|
+
return r.iterateNone = true, this.encapsulate(e, t, r);
|
|
5887
5701
|
}
|
|
5888
5702
|
}, {
|
|
5889
5703
|
key: "encapsulate",
|
|
5890
5704
|
value: function encapsulate(t, r, c) {
|
|
5891
5705
|
var s = this,
|
|
5892
5706
|
u = _objectSpread2(_objectSpread2({
|
|
5893
|
-
sync:
|
|
5707
|
+
sync: true
|
|
5894
5708
|
}, this.options), c),
|
|
5895
5709
|
l = u.sync,
|
|
5896
5710
|
f = {},
|
|
@@ -5898,8 +5712,8 @@
|
|
|
5898
5712
|
p = [],
|
|
5899
5713
|
d = [],
|
|
5900
5714
|
v = !("cyclic" in u) || u.cyclic,
|
|
5901
|
-
|
|
5902
|
-
|
|
5715
|
+
b = u.encapsulateObserver,
|
|
5716
|
+
m = function finish(e) {
|
|
5903
5717
|
var t = Object.values(f);
|
|
5904
5718
|
if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
|
|
5905
5719
|
if (t.length) {
|
|
@@ -5920,7 +5734,7 @@
|
|
|
5920
5734
|
};
|
|
5921
5735
|
} else isObject(e) && a(e, "$types") && (e = {
|
|
5922
5736
|
$: e,
|
|
5923
|
-
$types:
|
|
5737
|
+
$types: true
|
|
5924
5738
|
});
|
|
5925
5739
|
return !u.returnTypeNames && e;
|
|
5926
5740
|
},
|
|
@@ -5929,7 +5743,7 @@
|
|
|
5929
5743
|
return e[1].p;
|
|
5930
5744
|
})), function (n) {
|
|
5931
5745
|
return _await(Promise.all(n.map(_async(function (n) {
|
|
5932
|
-
var a =
|
|
5746
|
+
var a = false,
|
|
5933
5747
|
o = [],
|
|
5934
5748
|
i = _slicedToArray(r.splice(0, 1), 1),
|
|
5935
5749
|
c = _slicedToArray(i[0], 7),
|
|
@@ -5939,7 +5753,7 @@
|
|
|
5939
5753
|
f = c[4],
|
|
5940
5754
|
y = c[5],
|
|
5941
5755
|
p = c[6],
|
|
5942
|
-
d = O(s, n, u, l, o,
|
|
5756
|
+
d = O(s, n, u, l, o, true, p),
|
|
5943
5757
|
v = hasConstructorOf(d, e);
|
|
5944
5758
|
return function _invoke(e, t) {
|
|
5945
5759
|
var r = e();
|
|
@@ -5948,7 +5762,7 @@
|
|
|
5948
5762
|
if (s && v) return _await(d.p, function (e) {
|
|
5949
5763
|
f[y] = e;
|
|
5950
5764
|
var r = h(t, o);
|
|
5951
|
-
return a =
|
|
5765
|
+
return a = true, r;
|
|
5952
5766
|
});
|
|
5953
5767
|
}, function (e) {
|
|
5954
5768
|
return a ? e : (s ? f[y] = d : t = v ? d.p : d, h(t, o));
|
|
@@ -5969,13 +5783,13 @@
|
|
|
5969
5783
|
});
|
|
5970
5784
|
},
|
|
5971
5785
|
O = function _encapsulate(t, r, i, c, l, d, v) {
|
|
5972
|
-
var
|
|
5786
|
+
var m,
|
|
5973
5787
|
h = {},
|
|
5974
5788
|
O = _typeof(r),
|
|
5975
|
-
_ =
|
|
5789
|
+
_ = b ? function (n) {
|
|
5976
5790
|
var a,
|
|
5977
5791
|
o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
|
|
5978
|
-
|
|
5792
|
+
b(Object.assign(null != n ? n : h, {
|
|
5979
5793
|
keypath: t,
|
|
5980
5794
|
value: r,
|
|
5981
5795
|
cyclic: i,
|
|
@@ -5987,30 +5801,30 @@
|
|
|
5987
5801
|
type: o
|
|
5988
5802
|
}));
|
|
5989
5803
|
} : null;
|
|
5990
|
-
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (
|
|
5991
|
-
replaced:
|
|
5992
|
-
}) :
|
|
5804
|
+
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (m = c.replaced ? r : w(t, r, c, l, false, d, _)) !== r && (h = {
|
|
5805
|
+
replaced: m
|
|
5806
|
+
}) : m = r, _ && _(), m;
|
|
5993
5807
|
if (null === r) return _ && _(), r;
|
|
5994
5808
|
if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
|
|
5995
5809
|
var A = y.indexOf(r);
|
|
5996
5810
|
if (!(A < 0)) return f[t] = "#", _ && _({
|
|
5997
5811
|
cyclicKeypath: p[A]
|
|
5998
5812
|
}), "#" + p[A];
|
|
5999
|
-
|
|
5813
|
+
true === i && (y.push(r), p.push(t));
|
|
6000
5814
|
}
|
|
6001
5815
|
var S,
|
|
6002
5816
|
j,
|
|
6003
5817
|
T = isPlainObject(r),
|
|
6004
5818
|
I = o(r),
|
|
6005
5819
|
N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
|
|
6006
|
-
if (N !== r ? (
|
|
5820
|
+
if (N !== r ? (m = N, h = {
|
|
6007
5821
|
replaced: N
|
|
6008
|
-
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]),
|
|
5822
|
+
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]), m = r) : I && "object" !== c.iterateIn || "array" === c.iterateIn ? (S = new Array(r.length), h = {
|
|
6009
5823
|
clone: S
|
|
6010
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ?
|
|
5824
|
+
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ? m = r : (S = {}, c.addLength && (S.length = r.length), h = {
|
|
6011
5825
|
clone: S
|
|
6012
|
-
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j :
|
|
6013
|
-
if (!S) return
|
|
5826
|
+
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : m;
|
|
5827
|
+
if (!S) return m;
|
|
6014
5828
|
if (c.iterateIn) {
|
|
6015
5829
|
var P = function _loop(n) {
|
|
6016
5830
|
var o = {
|
|
@@ -6024,27 +5838,27 @@
|
|
|
6024
5838
|
};
|
|
6025
5839
|
for (var x in r) P(x);
|
|
6026
5840
|
_ && _({
|
|
6027
|
-
endIterateIn:
|
|
6028
|
-
end:
|
|
5841
|
+
endIterateIn: true,
|
|
5842
|
+
end: true
|
|
6029
5843
|
});
|
|
6030
5844
|
} else n(r).forEach(function (n) {
|
|
6031
5845
|
var a = t + (t ? "." : "") + escapeKeyPathComponent(n);
|
|
6032
5846
|
g(c, {
|
|
6033
|
-
ownKeys:
|
|
5847
|
+
ownKeys: true
|
|
6034
5848
|
}, function () {
|
|
6035
5849
|
var t = _encapsulate(a, r[n], Boolean(i), c, l, d);
|
|
6036
5850
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
6037
5851
|
});
|
|
6038
5852
|
}), _ && _({
|
|
6039
|
-
endIterateOwn:
|
|
6040
|
-
end:
|
|
5853
|
+
endIterateOwn: true,
|
|
5854
|
+
end: true
|
|
6041
5855
|
});
|
|
6042
5856
|
if (c.iterateUnsetNumeric) {
|
|
6043
5857
|
for (var E = r.length, C = function _loop2(n) {
|
|
6044
5858
|
if (!(n in r)) {
|
|
6045
5859
|
var a = "".concat(t).concat(t ? "." : "").concat(n);
|
|
6046
5860
|
g(c, {
|
|
6047
|
-
ownKeys:
|
|
5861
|
+
ownKeys: false
|
|
6048
5862
|
}, function () {
|
|
6049
5863
|
var t = _encapsulate(a, void 0, Boolean(i), c, l, d);
|
|
6050
5864
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
@@ -6052,8 +5866,8 @@
|
|
|
6052
5866
|
}
|
|
6053
5867
|
}, B = 0; B < E; B++) C(B);
|
|
6054
5868
|
_ && _({
|
|
6055
|
-
endIterateUnsetNumeric:
|
|
6056
|
-
end:
|
|
5869
|
+
endIterateUnsetNumeric: true,
|
|
5870
|
+
end: true
|
|
6057
5871
|
});
|
|
6058
5872
|
}
|
|
6059
5873
|
return S;
|
|
@@ -6069,19 +5883,19 @@
|
|
|
6069
5883
|
}
|
|
6070
5884
|
if (Object.assign(r, {
|
|
6071
5885
|
type: p,
|
|
6072
|
-
replaced:
|
|
5886
|
+
replaced: true
|
|
6073
5887
|
}), (l || !y.replaceAsync) && !y.replace) return i && i({
|
|
6074
|
-
typeDetected:
|
|
5888
|
+
typeDetected: true
|
|
6075
5889
|
}), O(e, t, v && "readonly", r, n, o, p);
|
|
6076
5890
|
i && i({
|
|
6077
|
-
replacing:
|
|
5891
|
+
replacing: true
|
|
6078
5892
|
});
|
|
6079
|
-
var
|
|
5893
|
+
var b = void 0;
|
|
6080
5894
|
if (l || !y.replaceAsync) {
|
|
6081
5895
|
if (void 0 === y.replace) throw new TypeError("Missing replacer");
|
|
6082
|
-
|
|
6083
|
-
} else
|
|
6084
|
-
return O(e,
|
|
5896
|
+
b = y.replace(t, r);
|
|
5897
|
+
} else b = y.replaceAsync(t, r);
|
|
5898
|
+
return O(e, b, v && "readonly", r, n, o, p);
|
|
6085
5899
|
}
|
|
6086
5900
|
}
|
|
6087
5901
|
return t;
|
|
@@ -6089,26 +5903,26 @@
|
|
|
6089
5903
|
_ = O("", t, v, null != r ? r : {}, d);
|
|
6090
5904
|
if (d.length) return l && u.throwOnBadSyncType ? function () {
|
|
6091
5905
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6092
|
-
}() : Promise.resolve(h(_, d)).then(
|
|
5906
|
+
}() : Promise.resolve(h(_, d)).then(m);
|
|
6093
5907
|
if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6094
|
-
return u.stringification && l ? [
|
|
5908
|
+
return u.stringification && l ? [m(_)] : l ? m(_) : Promise.resolve(m(_));
|
|
6095
5909
|
}
|
|
6096
5910
|
}, {
|
|
6097
5911
|
key: "encapsulateSync",
|
|
6098
5912
|
value: function encapsulateSync(e, t, r) {
|
|
6099
5913
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6100
|
-
throwOnBadSyncType:
|
|
5914
|
+
throwOnBadSyncType: true
|
|
6101
5915
|
}, r), {}, {
|
|
6102
|
-
sync:
|
|
5916
|
+
sync: true
|
|
6103
5917
|
}));
|
|
6104
5918
|
}
|
|
6105
5919
|
}, {
|
|
6106
5920
|
key: "encapsulateAsync",
|
|
6107
5921
|
value: function encapsulateAsync(e, t, r) {
|
|
6108
5922
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6109
|
-
throwOnBadSyncType:
|
|
5923
|
+
throwOnBadSyncType: true
|
|
6110
5924
|
}, r), {}, {
|
|
6111
|
-
sync:
|
|
5925
|
+
sync: false
|
|
6112
5926
|
}));
|
|
6113
5927
|
}
|
|
6114
5928
|
}, {
|
|
@@ -6116,7 +5930,7 @@
|
|
|
6116
5930
|
value: function revive(t, r) {
|
|
6117
5931
|
var a = this,
|
|
6118
5932
|
i = _objectSpread2(_objectSpread2({
|
|
6119
|
-
sync:
|
|
5933
|
+
sync: true
|
|
6120
5934
|
}, this.options), r),
|
|
6121
5935
|
c = i.sync;
|
|
6122
5936
|
function finishRevival(e) {
|
|
@@ -6126,12 +5940,12 @@
|
|
|
6126
5940
|
}
|
|
6127
5941
|
if (!t || "object" !== _typeof(t) || Array.isArray(t)) return finishRevival(t);
|
|
6128
5942
|
var u = t.$types;
|
|
6129
|
-
if (
|
|
5943
|
+
if (true === u) return finishRevival(t.$);
|
|
6130
5944
|
if (!u || "object" !== _typeof(u) || Array.isArray(u)) return finishRevival(t);
|
|
6131
5945
|
var l = [],
|
|
6132
5946
|
f = {},
|
|
6133
|
-
y =
|
|
6134
|
-
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y =
|
|
5947
|
+
y = true;
|
|
5948
|
+
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y = false);
|
|
6135
5949
|
var p = function executeReviver(e, t) {
|
|
6136
5950
|
var r,
|
|
6137
5951
|
n = _slicedToArray(null !== (r = a.revivers[e]) && void 0 !== r ? r : [], 1)[0];
|
|
@@ -6146,7 +5960,7 @@
|
|
|
6146
5960
|
return hasConstructorOf(e, s) ? void 0 : e;
|
|
6147
5961
|
}
|
|
6148
5962
|
var v,
|
|
6149
|
-
|
|
5963
|
+
b = function revivePlainObjects() {
|
|
6150
5964
|
var r = [];
|
|
6151
5965
|
if (!u) throw new Error("Found bad `types`");
|
|
6152
5966
|
if (Object.entries(u).forEach(function (e) {
|
|
@@ -6178,28 +5992,28 @@
|
|
|
6178
5992
|
c === i && (t = c);
|
|
6179
5993
|
}, void 0);
|
|
6180
5994
|
}();
|
|
6181
|
-
return hasConstructorOf(
|
|
5995
|
+
return hasConstructorOf(b, e) ? v = b.then(function () {
|
|
6182
5996
|
return t;
|
|
6183
5997
|
}) : (v = function _revive(t, r, a, i, c) {
|
|
6184
5998
|
if (!y || "$types" !== t) {
|
|
6185
5999
|
var f = u[t],
|
|
6186
6000
|
v = o(r);
|
|
6187
6001
|
if (v || isPlainObject(r)) {
|
|
6188
|
-
var
|
|
6002
|
+
var b = v ? new Array(r.length) : {};
|
|
6189
6003
|
for (n(r).forEach(function (n) {
|
|
6190
|
-
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a :
|
|
6004
|
+
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
|
|
6191
6005
|
i = function set(e) {
|
|
6192
|
-
return hasConstructorOf(e, s) ?
|
|
6006
|
+
return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
|
|
6193
6007
|
};
|
|
6194
6008
|
hasConstructorOf(o, e) ? d.push(o.then(function (e) {
|
|
6195
6009
|
return i(e);
|
|
6196
6010
|
})) : i(o);
|
|
6197
|
-
}), r =
|
|
6198
|
-
var
|
|
6199
|
-
h =
|
|
6200
|
-
g =
|
|
6201
|
-
O =
|
|
6202
|
-
w =
|
|
6011
|
+
}), r = b; l.length;) {
|
|
6012
|
+
var m = _slicedToArray(l[0], 4),
|
|
6013
|
+
h = m[0],
|
|
6014
|
+
g = m[1],
|
|
6015
|
+
O = m[2],
|
|
6016
|
+
w = m[3],
|
|
6203
6017
|
_ = getByKeyPath(h, g);
|
|
6204
6018
|
if (void 0 === _) break;
|
|
6205
6019
|
O[w] = _, l.splice(0, 1);
|
|
@@ -6232,18 +6046,18 @@
|
|
|
6232
6046
|
key: "reviveSync",
|
|
6233
6047
|
value: function reviveSync(e, t) {
|
|
6234
6048
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6235
|
-
throwOnBadSyncType:
|
|
6049
|
+
throwOnBadSyncType: true
|
|
6236
6050
|
}, t), {}, {
|
|
6237
|
-
sync:
|
|
6051
|
+
sync: true
|
|
6238
6052
|
}));
|
|
6239
6053
|
}
|
|
6240
6054
|
}, {
|
|
6241
6055
|
key: "reviveAsync",
|
|
6242
6056
|
value: function reviveAsync(e, t) {
|
|
6243
6057
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6244
|
-
throwOnBadSyncType:
|
|
6058
|
+
throwOnBadSyncType: true
|
|
6245
6059
|
}, t), {}, {
|
|
6246
|
-
sync:
|
|
6060
|
+
sync: false
|
|
6247
6061
|
}));
|
|
6248
6062
|
}
|
|
6249
6063
|
}, {
|
|
@@ -6342,19 +6156,20 @@
|
|
|
6342
6156
|
index: r
|
|
6343
6157
|
} : (t.buffers.push(e), {
|
|
6344
6158
|
s: p(e),
|
|
6345
|
-
maxByteLength: e.maxByteLength
|
|
6159
|
+
maxByteLength: e.maxByteLength,
|
|
6160
|
+
resizable: e.resizable
|
|
6346
6161
|
});
|
|
6347
6162
|
},
|
|
6348
6163
|
revive: function revive(e, t) {
|
|
6349
6164
|
if (t.buffers || (t.buffers = []), Object.hasOwn(e, "index")) return t.buffers[e.index];
|
|
6350
|
-
var r = d(e.s, {
|
|
6165
|
+
var r = d(e.s, e.resizable ? {
|
|
6351
6166
|
maxByteLength: e.maxByteLength
|
|
6352
|
-
});
|
|
6167
|
+
} : void 0);
|
|
6353
6168
|
return t.buffers.push(r), r;
|
|
6354
6169
|
}
|
|
6355
6170
|
}
|
|
6356
6171
|
},
|
|
6357
|
-
|
|
6172
|
+
b = {
|
|
6358
6173
|
bigintObject: {
|
|
6359
6174
|
test: function test(e) {
|
|
6360
6175
|
return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
|
|
@@ -6365,7 +6180,7 @@
|
|
|
6365
6180
|
}
|
|
6366
6181
|
}
|
|
6367
6182
|
},
|
|
6368
|
-
|
|
6183
|
+
m = {
|
|
6369
6184
|
bigint: {
|
|
6370
6185
|
test: function test(e) {
|
|
6371
6186
|
return "bigint" == typeof e;
|
|
@@ -6393,7 +6208,7 @@
|
|
|
6393
6208
|
},
|
|
6394
6209
|
replace: function replace(e) {
|
|
6395
6210
|
var t = new XMLHttpRequest();
|
|
6396
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6211
|
+
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e), false), t.send(), 200 !== t.status && 0 !== t.status) throw new Error("Bad Blob access: " + t.status);
|
|
6397
6212
|
return {
|
|
6398
6213
|
type: e.type,
|
|
6399
6214
|
stringContents: t.responseText
|
|
@@ -6428,33 +6243,32 @@
|
|
|
6428
6243
|
},
|
|
6429
6244
|
replaceAsync: function replaceAsync(t) {
|
|
6430
6245
|
return new e(/*#__PURE__*/function () {
|
|
6431
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
6432
|
-
var n;
|
|
6433
|
-
return
|
|
6434
|
-
while (1) switch (_context.
|
|
6246
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e, r) {
|
|
6247
|
+
var n, _t;
|
|
6248
|
+
return _regenerator().w(function (_context) {
|
|
6249
|
+
while (1) switch (_context.n) {
|
|
6435
6250
|
case 0:
|
|
6436
|
-
_context.
|
|
6437
|
-
_context.
|
|
6251
|
+
_context.p = 0;
|
|
6252
|
+
_context.n = 1;
|
|
6438
6253
|
return crypto.subtle.exportKey("jwk", t);
|
|
6439
|
-
case
|
|
6440
|
-
n = _context.
|
|
6441
|
-
_context.
|
|
6254
|
+
case 1:
|
|
6255
|
+
n = _context.v;
|
|
6256
|
+
_context.n = 3;
|
|
6442
6257
|
break;
|
|
6443
|
-
case
|
|
6444
|
-
_context.
|
|
6445
|
-
|
|
6446
|
-
return _context.
|
|
6447
|
-
case
|
|
6258
|
+
case 2:
|
|
6259
|
+
_context.p = 2;
|
|
6260
|
+
_t = _context.v;
|
|
6261
|
+
return _context.a(2, void r(_t));
|
|
6262
|
+
case 3:
|
|
6448
6263
|
e({
|
|
6449
6264
|
jwk: n,
|
|
6450
6265
|
algorithm: t.algorithm,
|
|
6451
6266
|
usages: t.usages
|
|
6452
6267
|
});
|
|
6453
|
-
case
|
|
6454
|
-
|
|
6455
|
-
return _context.stop();
|
|
6268
|
+
case 4:
|
|
6269
|
+
return _context.a(2);
|
|
6456
6270
|
}
|
|
6457
|
-
}, _callee, null, [[0,
|
|
6271
|
+
}, _callee, null, [[0, 2]]);
|
|
6458
6272
|
}));
|
|
6459
6273
|
return function (_x, _x2) {
|
|
6460
6274
|
return _ref.apply(this, arguments);
|
|
@@ -6465,7 +6279,7 @@
|
|
|
6465
6279
|
var t = e.jwk,
|
|
6466
6280
|
r = e.algorithm,
|
|
6467
6281
|
n = e.usages;
|
|
6468
|
-
return crypto.subtle.importKey("jwk", t, r,
|
|
6282
|
+
return crypto.subtle.importKey("jwk", t, r, true, n);
|
|
6469
6283
|
}
|
|
6470
6284
|
}
|
|
6471
6285
|
},
|
|
@@ -6487,6 +6301,7 @@
|
|
|
6487
6301
|
} : (n.buffers.push(e), {
|
|
6488
6302
|
encoded: p(e),
|
|
6489
6303
|
maxByteLength: e.maxByteLength,
|
|
6304
|
+
resizable: e.resizable,
|
|
6490
6305
|
byteOffset: t,
|
|
6491
6306
|
byteLength: r
|
|
6492
6307
|
});
|
|
@@ -6497,11 +6312,12 @@
|
|
|
6497
6312
|
n = e.byteLength,
|
|
6498
6313
|
a = e.encoded,
|
|
6499
6314
|
o = e.index,
|
|
6500
|
-
i = e.maxByteLength
|
|
6501
|
-
|
|
6502
|
-
|
|
6315
|
+
i = e.maxByteLength,
|
|
6316
|
+
c = e.resizable;
|
|
6317
|
+
var s;
|
|
6318
|
+
return "index" in e ? s = t.buffers[o] : (s = d(a, c ? {
|
|
6503
6319
|
maxByteLength: i
|
|
6504
|
-
}), t.buffers.push(
|
|
6320
|
+
} : i), t.buffers.push(s)), new DataView(s, r, n);
|
|
6505
6321
|
}
|
|
6506
6322
|
}
|
|
6507
6323
|
},
|
|
@@ -6717,7 +6533,7 @@
|
|
|
6717
6533
|
},
|
|
6718
6534
|
replace: function replace(e) {
|
|
6719
6535
|
var t = new XMLHttpRequest();
|
|
6720
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6536
|
+
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e), false), t.send(), 200 !== t.status && 0 !== t.status) throw new Error("Bad File access: " + t.status);
|
|
6721
6537
|
return {
|
|
6722
6538
|
type: e.type,
|
|
6723
6539
|
stringContents: t.responseText,
|
|
@@ -6813,31 +6629,31 @@
|
|
|
6813
6629
|
return a.addEventListener("load", function () {
|
|
6814
6630
|
n.drawImage(a, 0, 0);
|
|
6815
6631
|
}), a.src = t.dataURL, new e(/*#__PURE__*/function () {
|
|
6816
|
-
var
|
|
6817
|
-
|
|
6818
|
-
|
|
6632
|
+
var _ref0 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e, t) {
|
|
6633
|
+
var _t2, _t3, _t4;
|
|
6634
|
+
return _regenerator().w(function (_context2) {
|
|
6635
|
+
while (1) switch (_context2.n) {
|
|
6819
6636
|
case 0:
|
|
6820
|
-
_context2.
|
|
6821
|
-
|
|
6822
|
-
_context2.
|
|
6637
|
+
_context2.p = 0;
|
|
6638
|
+
_t2 = e;
|
|
6639
|
+
_context2.n = 1;
|
|
6823
6640
|
return createImageBitmap(r);
|
|
6824
|
-
case
|
|
6825
|
-
|
|
6826
|
-
(
|
|
6827
|
-
_context2.
|
|
6641
|
+
case 1:
|
|
6642
|
+
_t3 = _context2.v;
|
|
6643
|
+
_t2(_t3);
|
|
6644
|
+
_context2.n = 3;
|
|
6828
6645
|
break;
|
|
6829
|
-
case
|
|
6830
|
-
_context2.
|
|
6831
|
-
|
|
6832
|
-
t(
|
|
6833
|
-
case
|
|
6834
|
-
|
|
6835
|
-
return _context2.stop();
|
|
6646
|
+
case 2:
|
|
6647
|
+
_context2.p = 2;
|
|
6648
|
+
_t4 = _context2.v;
|
|
6649
|
+
t(_t4);
|
|
6650
|
+
case 3:
|
|
6651
|
+
return _context2.a(2);
|
|
6836
6652
|
}
|
|
6837
|
-
}, _callee2, null, [[0,
|
|
6653
|
+
}, _callee2, null, [[0, 2]]);
|
|
6838
6654
|
}));
|
|
6839
6655
|
return function (_x3, _x4) {
|
|
6840
|
-
return
|
|
6656
|
+
return _ref0.apply(this, arguments);
|
|
6841
6657
|
};
|
|
6842
6658
|
}());
|
|
6843
6659
|
}
|
|
@@ -6925,7 +6741,7 @@
|
|
|
6925
6741
|
}
|
|
6926
6742
|
}
|
|
6927
6743
|
},
|
|
6928
|
-
|
|
6744
|
+
J = {
|
|
6929
6745
|
StringObject: {
|
|
6930
6746
|
test: function test(e) {
|
|
6931
6747
|
return "String" === toStringTag(e) && "object" == _typeof$2(e);
|
|
@@ -6956,7 +6772,7 @@
|
|
|
6956
6772
|
}
|
|
6957
6773
|
}
|
|
6958
6774
|
},
|
|
6959
|
-
|
|
6775
|
+
q = {
|
|
6960
6776
|
regexp: {
|
|
6961
6777
|
test: function test(e) {
|
|
6962
6778
|
return "RegExp" === toStringTag(e);
|
|
@@ -6967,14 +6783,14 @@
|
|
|
6967
6783
|
flags: (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "")
|
|
6968
6784
|
};
|
|
6969
6785
|
},
|
|
6970
|
-
revive: function revive(
|
|
6971
|
-
var e =
|
|
6972
|
-
t =
|
|
6786
|
+
revive: function revive(_ref10) {
|
|
6787
|
+
var e = _ref10.source,
|
|
6788
|
+
t = _ref10.flags;
|
|
6973
6789
|
return new RegExp(e, t);
|
|
6974
6790
|
}
|
|
6975
6791
|
}
|
|
6976
6792
|
},
|
|
6977
|
-
|
|
6793
|
+
G = {
|
|
6978
6794
|
set: {
|
|
6979
6795
|
test: function test(e) {
|
|
6980
6796
|
return "Set" === toStringTag(e);
|
|
@@ -7012,10 +6828,10 @@
|
|
|
7012
6828
|
test: function test(e) {
|
|
7013
6829
|
return toStringTag(e) === t;
|
|
7014
6830
|
},
|
|
7015
|
-
replace: function replace(
|
|
7016
|
-
var e =
|
|
7017
|
-
t =
|
|
7018
|
-
r =
|
|
6831
|
+
replace: function replace(_ref11, n) {
|
|
6832
|
+
var e = _ref11.buffer,
|
|
6833
|
+
t = _ref11.byteOffset,
|
|
6834
|
+
r = _ref11.length;
|
|
7019
6835
|
n.buffers || (n.buffers = []);
|
|
7020
6836
|
var a = n.buffers.indexOf(e);
|
|
7021
6837
|
return a > -1 ? {
|
|
@@ -7024,6 +6840,7 @@
|
|
|
7024
6840
|
length: r
|
|
7025
6841
|
} : (n.buffers.push(e), {
|
|
7026
6842
|
maxByteLength: e.maxByteLength,
|
|
6843
|
+
resizable: e.resizable,
|
|
7027
6844
|
encoded: p(e),
|
|
7028
6845
|
byteOffset: t,
|
|
7029
6846
|
length: r
|
|
@@ -7035,11 +6852,12 @@
|
|
|
7035
6852
|
a = t.length,
|
|
7036
6853
|
o = t.encoded,
|
|
7037
6854
|
i = t.index,
|
|
7038
|
-
c = t.maxByteLength
|
|
7039
|
-
|
|
7040
|
-
|
|
6855
|
+
c = t.maxByteLength,
|
|
6856
|
+
s = t.resizable;
|
|
6857
|
+
var u;
|
|
6858
|
+
return "index" in t ? u = r.buffers[i] : (u = d(o, s ? {
|
|
7041
6859
|
maxByteLength: c
|
|
7042
|
-
}), r.buffers.push(
|
|
6860
|
+
} : void 0), r.buffers.push(u)), new e(u, n, a);
|
|
7043
6861
|
}
|
|
7044
6862
|
};
|
|
7045
6863
|
}(e);
|
|
@@ -7072,22 +6890,22 @@
|
|
|
7072
6890
|
},
|
|
7073
6891
|
te = [{
|
|
7074
6892
|
arrayNonindexKeys: {
|
|
7075
|
-
testPlainObjects:
|
|
6893
|
+
testPlainObjects: true,
|
|
7076
6894
|
test: function test(e, t) {
|
|
7077
6895
|
return !!Array.isArray(e) && (Object.keys(e).some(function (e) {
|
|
7078
6896
|
return String(Number.parseInt(e)) !== e;
|
|
7079
|
-
}) && (t.iterateIn = "object", t.addLength =
|
|
6897
|
+
}) && (t.iterateIn = "object", t.addLength = true), true);
|
|
7080
6898
|
},
|
|
7081
6899
|
replace: function replace(e, t) {
|
|
7082
|
-
return t.iterateUnsetNumeric =
|
|
6900
|
+
return t.iterateUnsetNumeric = true, e;
|
|
7083
6901
|
},
|
|
7084
6902
|
revive: function revive(e) {
|
|
7085
6903
|
if (Array.isArray(e)) return e;
|
|
7086
6904
|
var t = [];
|
|
7087
|
-
return Object.entries(e).forEach(function (
|
|
7088
|
-
var
|
|
7089
|
-
e =
|
|
7090
|
-
r =
|
|
6905
|
+
return Object.entries(e).forEach(function (_ref12) {
|
|
6906
|
+
var _ref13 = _slicedToArray$1(_ref12, 2),
|
|
6907
|
+
e = _ref13[0],
|
|
6908
|
+
r = _ref13[1];
|
|
7091
6909
|
t[e] = r;
|
|
7092
6910
|
}), t;
|
|
7093
6911
|
}
|
|
@@ -7095,7 +6913,7 @@
|
|
|
7095
6913
|
}, {
|
|
7096
6914
|
sparseUndefined: {
|
|
7097
6915
|
test: function test(e, t) {
|
|
7098
|
-
return void 0 === e &&
|
|
6916
|
+
return void 0 === e && false === t.ownKeys;
|
|
7099
6917
|
},
|
|
7100
6918
|
replace: function replace() {
|
|
7101
6919
|
return 0;
|
|
@@ -7104,13 +6922,13 @@
|
|
|
7104
6922
|
}
|
|
7105
6923
|
}],
|
|
7106
6924
|
re = [K, U, F, $],
|
|
7107
|
-
ce = [ee, Z, te,
|
|
6925
|
+
ce = [ee, Z, te, J, re, A, q, k, B, E, C, h, P, x].concat("function" == typeof Map ? D : [], "function" == typeof Set ? G : [], "function" == typeof ArrayBuffer ? v : [], "function" == typeof Uint8Array ? X : [], "function" == typeof DataView ? _ : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [m, b] : [], "undefined" != typeof DOMException ? S : [], "undefined" != typeof DOMRect ? N : [], "undefined" != typeof DOMPoint ? T : [], "undefined" != typeof DOMQuad ? I : [], "undefined" != typeof DOMMatrix ? j : []),
|
|
7108
6926
|
se = ce.concat({
|
|
7109
6927
|
checkDataCloneException: {
|
|
7110
6928
|
test: function test(e) {
|
|
7111
6929
|
var t = {}.toString.call(e).slice(8, -1);
|
|
7112
6930
|
if (["symbol", "function"].includes(_typeof$2(e)) || ["Arguments", "Module", "Promise", "WeakMap", "WeakSet", "Event", "MessageChannel"].includes(t) || e && "object" == _typeof$2(e) && "number" == typeof e.nodeType && "function" == typeof e.insertBefore) throw new DOMException("The object cannot be cloned.", "DataCloneError");
|
|
7113
|
-
return
|
|
6931
|
+
return false;
|
|
7114
6932
|
}
|
|
7115
6933
|
}
|
|
7116
6934
|
});
|
|
@@ -7452,7 +7270,6 @@
|
|
|
7452
7270
|
tx.executeSql('UPDATE ' + escapeStoreNameForSQL(storeName) + ' SET ' + escapeIndexNameForSQL(indexName) + ' = ? WHERE "key" = ?', [escapeSQLiteStatement(indexKeyStr), data.rows.item(i).key], function () {
|
|
7453
7271
|
addIndexEntry(i + 1);
|
|
7454
7272
|
}, /** @type {SQLStatementErrorCallback} */error);
|
|
7455
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
7456
7273
|
} catch (err) {
|
|
7457
7274
|
// Not a valid value to insert into index, so just continue
|
|
7458
7275
|
addIndexEntry(i + 1);
|
|
@@ -7577,7 +7394,6 @@
|
|
|
7577
7394
|
IDBIndex.__updateIndexList = function (store, tx, success, failure) {
|
|
7578
7395
|
/** @type {IndexList} **/
|
|
7579
7396
|
var indexList = {};
|
|
7580
|
-
// eslint-disable-next-line sonarjs/prefer-for-of -- Implement iterability?
|
|
7581
7397
|
for (var i = 0; i < store.indexNames.length; i++) {
|
|
7582
7398
|
var idx = store.__indexes[store.indexNames[i]];
|
|
7583
7399
|
indexList[idx.name] = {
|
|
@@ -7970,8 +7786,11 @@
|
|
|
7970
7786
|
return rowKey.includes(check);
|
|
7971
7787
|
}) ||
|
|
7972
7788
|
// More precise than our SQL
|
|
7973
|
-
isMultiEntryMatch(
|
|
7974
|
-
|
|
7789
|
+
isMultiEntryMatch(
|
|
7790
|
+
// Added `JSON.stringify` as was having problems with
|
|
7791
|
+
// `JSON.stringify` encoding added to nested
|
|
7792
|
+
// array keys
|
|
7793
|
+
JSON.stringify(encodedKey).slice(1, -1), row[escapedIndexNameForKeyCol]))) {
|
|
7975
7794
|
recordCount++;
|
|
7976
7795
|
record = row;
|
|
7977
7796
|
} else if (!hasKey && !multiChecks) {
|
|
@@ -8047,7 +7866,13 @@
|
|
|
8047
7866
|
sql.push(')');
|
|
8048
7867
|
} else if (index.multiEntry) {
|
|
8049
7868
|
sql.push('AND', escapeIndexNameForSQL(index.name), "LIKE ? ESCAPE '^'");
|
|
8050
|
-
|
|
7869
|
+
if (Array.isArray(range)) {
|
|
7870
|
+
// Todo: For nesting deeper than one level, we probably need to
|
|
7871
|
+
// run `JSON.stringify` again
|
|
7872
|
+
sqlValues.push('%' + sqlLIKEEscape(JSON.stringify(/** @type {string} */_encode(range, index.multiEntry)).slice(1, -1)) + '%');
|
|
7873
|
+
} else {
|
|
7874
|
+
sqlValues.push('%' + sqlLIKEEscape(/** @type {string} */_encode(range, index.multiEntry)) + '%');
|
|
7875
|
+
}
|
|
8051
7876
|
} else {
|
|
8052
7877
|
var convertedRange = convertValueToKeyRange(range, nullDisallowed);
|
|
8053
7878
|
setSQLForKeyRange(convertedRange, escapeIndexNameForSQL(index.name), sql, sqlValues, true, false);
|
|
@@ -8550,7 +8375,6 @@
|
|
|
8550
8375
|
if ('invalid' in indexKey && indexKey.invalid || 'failure' in indexKey && indexKey.failure) {
|
|
8551
8376
|
throw new Error('Go to catch');
|
|
8552
8377
|
}
|
|
8553
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
8554
8378
|
} catch (err) {
|
|
8555
8379
|
resolve(undefined);
|
|
8556
8380
|
return;
|
|
@@ -9884,7 +9708,7 @@
|
|
|
9884
9708
|
*/
|
|
9885
9709
|
function getLatestCachedWebSQLVersion(name) {
|
|
9886
9710
|
return Object.keys(websqlDBCache[name]).map(Number).reduce(function (prev, curr) {
|
|
9887
|
-
return curr
|
|
9711
|
+
return Math.max(curr, prev);
|
|
9888
9712
|
}, 0);
|
|
9889
9713
|
}
|
|
9890
9714
|
|
|
@@ -10166,7 +9990,6 @@
|
|
|
10166
9990
|
if (err) {
|
|
10167
9991
|
try {
|
|
10168
9992
|
systx.executeSql('ROLLBACK', [], cb, cb);
|
|
10169
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
10170
9993
|
} catch (err) {
|
|
10171
9994
|
// Browser may fail with expired transaction above so
|
|
10172
9995
|
// no choice but to manually revert
|
|
@@ -10274,7 +10097,7 @@
|
|
|
10274
10097
|
// eslint-disable-next-line camelcase -- Clear API
|
|
10275
10098
|
req.transaction.on__complete = function () {
|
|
10276
10099
|
var pos = connection.__transactions.indexOf(req.transaction);
|
|
10277
|
-
if (pos
|
|
10100
|
+
if (pos !== -1) {
|
|
10278
10101
|
connection.__transactions.splice(pos, 1);
|
|
10279
10102
|
}
|
|
10280
10103
|
if (/** @type {import('./IDBDatabase.js').IDBDatabaseFull} */req.__result.__closePending) {
|
|
@@ -11708,7 +11531,6 @@
|
|
|
11708
11531
|
Object.getOwnPropertyDescriptor(o, name);
|
|
11709
11532
|
}
|
|
11710
11533
|
Object.defineProperty(IDB, name, desc);
|
|
11711
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
11712
11534
|
} catch (err) {
|
|
11713
11535
|
// With `indexedDB`, PhantomJS fails here and below but
|
|
11714
11536
|
// not above, while Chrome is reverse (and Firefox doesn't
|