indexeddbshim 15.2.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 +794 -696
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +301 -489
- 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 +794 -696
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +301 -489
- 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 +301 -489
- 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 +1 -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 +1 -2
- 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 +1 -0
package/dist/indexeddbshim.js
CHANGED
|
@@ -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();
|
|
@@ -498,7 +307,7 @@
|
|
|
498
307
|
if ("object" != typeof t || !t) return t;
|
|
499
308
|
var e = t[Symbol.toPrimitive];
|
|
500
309
|
if (void 0 !== e) {
|
|
501
|
-
var i = e.call(t, r
|
|
310
|
+
var i = e.call(t, r);
|
|
502
311
|
if ("object" != typeof i) return i;
|
|
503
312
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
504
313
|
}
|
|
@@ -1680,8 +1489,16 @@
|
|
|
1680
1489
|
function getDefaultExportFromCjs(x) {
|
|
1681
1490
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1682
1491
|
}
|
|
1683
|
-
var regex
|
|
1684
|
-
var
|
|
1492
|
+
var regex$1;
|
|
1493
|
+
var hasRequiredRegex;
|
|
1494
|
+
function requireRegex() {
|
|
1495
|
+
if (hasRequiredRegex) return regex$1;
|
|
1496
|
+
hasRequiredRegex = 1;
|
|
1497
|
+
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]/;
|
|
1498
|
+
return regex$1;
|
|
1499
|
+
}
|
|
1500
|
+
var regexExports = requireRegex();
|
|
1501
|
+
var regex = /*@__PURE__*/getDefaultExportFromCjs(regexExports);
|
|
1685
1502
|
|
|
1686
1503
|
/**
|
|
1687
1504
|
* @typedef {number} Integer
|
|
@@ -1776,7 +1593,7 @@
|
|
|
1776
1593
|
db = 'D' + escapeNameForSQLiteIdentifier(db);
|
|
1777
1594
|
if (CFG.escapeNFDForDatabaseNames !== false) {
|
|
1778
1595
|
// ES6 copying of regex with different flags
|
|
1779
|
-
db = db.replaceAll(new RegExp(regex
|
|
1596
|
+
db = db.replaceAll(new RegExp(regex, 'gu'), function (expandable) {
|
|
1780
1597
|
return '^4' + /** @type {Integer} */expandable.codePointAt(0).toString(16).padStart(6, '0');
|
|
1781
1598
|
});
|
|
1782
1599
|
}
|
|
@@ -2594,7 +2411,6 @@
|
|
|
2594
2411
|
// Native DOMException works as expected
|
|
2595
2412
|
useNativeDOMException = true;
|
|
2596
2413
|
}
|
|
2597
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
2598
2414
|
} catch (err) {}
|
|
2599
2415
|
var createDOMException = useNativeDOMException
|
|
2600
2416
|
// eslint-disable-next-line @stylistic/operator-linebreak -- Need JSDoc
|
|
@@ -3350,7 +3166,7 @@
|
|
|
3350
3166
|
key = key.slice(2);
|
|
3351
3167
|
if (inArray) {
|
|
3352
3168
|
// remove the space at the end, and the dash before each character
|
|
3353
|
-
key = key.slice(0, -1).replaceAll(
|
|
3169
|
+
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');
|
|
3354
3170
|
}
|
|
3355
3171
|
return key;
|
|
3356
3172
|
}
|
|
@@ -3743,7 +3559,7 @@
|
|
|
3743
3559
|
value: date.getTime()
|
|
3744
3560
|
} : {
|
|
3745
3561
|
type: type,
|
|
3746
|
-
value: new Date(date
|
|
3562
|
+
value: new Date(date)
|
|
3747
3563
|
};
|
|
3748
3564
|
}
|
|
3749
3565
|
return {
|
|
@@ -4576,7 +4392,6 @@
|
|
|
4576
4392
|
if (testObject.test) {
|
|
4577
4393
|
cleanInterface = true;
|
|
4578
4394
|
}
|
|
4579
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
4580
4395
|
} catch (err) {
|
|
4581
4396
|
// Object.defineProperty does not work as intended.
|
|
4582
4397
|
}
|
|
@@ -4707,25 +4522,24 @@
|
|
|
4707
4522
|
}
|
|
4708
4523
|
this.sortList();
|
|
4709
4524
|
}
|
|
4710
|
-
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/
|
|
4525
|
+
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4711
4526
|
var i;
|
|
4712
|
-
return
|
|
4713
|
-
while (1) switch (_context.
|
|
4527
|
+
return _regenerator().w(function (_context) {
|
|
4528
|
+
while (1) switch (_context.n) {
|
|
4714
4529
|
case 0:
|
|
4715
4530
|
i = 0;
|
|
4716
4531
|
case 1:
|
|
4717
4532
|
if (!(i < this._items.length)) {
|
|
4718
|
-
_context.
|
|
4533
|
+
_context.n = 3;
|
|
4719
4534
|
break;
|
|
4720
4535
|
}
|
|
4721
|
-
_context.
|
|
4536
|
+
_context.n = 2;
|
|
4722
4537
|
return this._items[i++];
|
|
4723
|
-
case
|
|
4724
|
-
_context.
|
|
4538
|
+
case 2:
|
|
4539
|
+
_context.n = 1;
|
|
4725
4540
|
break;
|
|
4726
|
-
case
|
|
4727
|
-
|
|
4728
|
-
return _context.stop();
|
|
4541
|
+
case 3:
|
|
4542
|
+
return _context.a(2);
|
|
4729
4543
|
}
|
|
4730
4544
|
}, _callee, this);
|
|
4731
4545
|
}));
|
|
@@ -5455,7 +5269,6 @@
|
|
|
5455
5269
|
}
|
|
5456
5270
|
try {
|
|
5457
5271
|
me.__tx.executeSql('ROLLBACK', [], abort, /** @type {SQLStatementErrorCallback} */abort); // Not working in some circumstances, even in Node
|
|
5458
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
5459
5272
|
} catch (err) {
|
|
5460
5273
|
// Browser errs when transaction has ended and since it most likely already erred here,
|
|
5461
5274
|
// we call to abort
|
|
@@ -5582,7 +5395,7 @@
|
|
|
5582
5395
|
function _objectSpread2(e) {
|
|
5583
5396
|
for (var t = 1; t < arguments.length; t++) {
|
|
5584
5397
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
5585
|
-
t % 2 ? ownKeys(Object(r),
|
|
5398
|
+
t % 2 ? ownKeys(Object(r), true).forEach(function (t) {
|
|
5586
5399
|
_defineProperty(e, t, r[t]);
|
|
5587
5400
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ownKeys(Object(r)).forEach(function (t) {
|
|
5588
5401
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
@@ -5604,18 +5417,18 @@
|
|
|
5604
5417
|
return t && function _defineProperties(e, t) {
|
|
5605
5418
|
for (var r = 0; r < t.length; r++) {
|
|
5606
5419
|
var n = t[r];
|
|
5607
|
-
n.enumerable = n.enumerable ||
|
|
5420
|
+
n.enumerable = n.enumerable || false, n.configurable = true, "value" in n && (n.writable = true), Object.defineProperty(e, _toPropertyKey(n.key), n);
|
|
5608
5421
|
}
|
|
5609
5422
|
}(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
5610
|
-
writable:
|
|
5423
|
+
writable: false
|
|
5611
5424
|
}), e;
|
|
5612
5425
|
}
|
|
5613
5426
|
function _defineProperty(e, t, r) {
|
|
5614
5427
|
return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
|
|
5615
5428
|
value: r,
|
|
5616
|
-
enumerable:
|
|
5617
|
-
configurable:
|
|
5618
|
-
writable:
|
|
5429
|
+
enumerable: true,
|
|
5430
|
+
configurable: true,
|
|
5431
|
+
writable: true
|
|
5619
5432
|
}) : e[t] = r, e;
|
|
5620
5433
|
}
|
|
5621
5434
|
function _slicedToArray(e, t) {
|
|
@@ -5629,15 +5442,15 @@
|
|
|
5629
5442
|
o,
|
|
5630
5443
|
i,
|
|
5631
5444
|
c = [],
|
|
5632
|
-
s =
|
|
5633
|
-
u =
|
|
5445
|
+
s = true,
|
|
5446
|
+
u = false;
|
|
5634
5447
|
try {
|
|
5635
5448
|
if (o = (r = r.call(e)).next, 0 === t) {
|
|
5636
5449
|
if (Object(r) !== r) return;
|
|
5637
5450
|
s = !1;
|
|
5638
5451
|
} else for (; !(s = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); s = !0);
|
|
5639
5452
|
} catch (e) {
|
|
5640
|
-
u =
|
|
5453
|
+
u = true, a = e;
|
|
5641
5454
|
} finally {
|
|
5642
5455
|
try {
|
|
5643
5456
|
if (!s && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
|
|
@@ -5724,13 +5537,13 @@
|
|
|
5724
5537
|
var t = Object.hasOwn,
|
|
5725
5538
|
r = Object.getPrototypeOf;
|
|
5726
5539
|
function isThenable(e, t) {
|
|
5727
|
-
return isObject(e) && "function" == typeof e.then && (
|
|
5540
|
+
return isObject(e) && "function" == typeof e.then && (true || "function" == typeof e["catch"]);
|
|
5728
5541
|
}
|
|
5729
5542
|
function toStringTag(e) {
|
|
5730
5543
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
5731
5544
|
}
|
|
5732
5545
|
function hasConstructorOf(e, n) {
|
|
5733
|
-
if (!e || "object" !== _typeof(e)) return
|
|
5546
|
+
if (!e || "object" !== _typeof(e)) return false;
|
|
5734
5547
|
var a = r(e);
|
|
5735
5548
|
if (!a) return null === n;
|
|
5736
5549
|
var o = t(a, "constructor") && a.constructor;
|
|
@@ -5740,7 +5553,7 @@
|
|
|
5740
5553
|
return !(!e || "Object" !== toStringTag(e)) && (!r(e) || hasConstructorOf(e, Object));
|
|
5741
5554
|
}
|
|
5742
5555
|
function isUserObject(e) {
|
|
5743
|
-
if (!e || "Object" !== toStringTag(e)) return
|
|
5556
|
+
if (!e || "Object" !== toStringTag(e)) return false;
|
|
5744
5557
|
var t = r(e);
|
|
5745
5558
|
return !t || hasConstructorOf(e, Object) || isUserObject(t);
|
|
5746
5559
|
}
|
|
@@ -5804,7 +5617,7 @@
|
|
|
5804
5617
|
key: "stringify",
|
|
5805
5618
|
value: function stringify(e, t, r, n) {
|
|
5806
5619
|
n = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), n), {}, {
|
|
5807
|
-
stringification:
|
|
5620
|
+
stringification: true
|
|
5808
5621
|
});
|
|
5809
5622
|
var a = this.encapsulate(e, null, n);
|
|
5810
5623
|
return o(a) ? JSON.stringify(a[0], t, r) : a.then(function (e) {
|
|
@@ -5815,63 +5628,63 @@
|
|
|
5815
5628
|
key: "stringifySync",
|
|
5816
5629
|
value: function stringifySync(e, t, r, n) {
|
|
5817
5630
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5818
|
-
throwOnBadSyncType:
|
|
5631
|
+
throwOnBadSyncType: true
|
|
5819
5632
|
}, n), {}, {
|
|
5820
|
-
sync:
|
|
5633
|
+
sync: true
|
|
5821
5634
|
}));
|
|
5822
5635
|
}
|
|
5823
5636
|
}, {
|
|
5824
5637
|
key: "stringifyAsync",
|
|
5825
5638
|
value: function stringifyAsync(e, t, r, n) {
|
|
5826
5639
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5827
|
-
throwOnBadSyncType:
|
|
5640
|
+
throwOnBadSyncType: true
|
|
5828
5641
|
}, n), {}, {
|
|
5829
|
-
sync:
|
|
5642
|
+
sync: false
|
|
5830
5643
|
}));
|
|
5831
5644
|
}
|
|
5832
5645
|
}, {
|
|
5833
5646
|
key: "parse",
|
|
5834
5647
|
value: function parse(e, t, r) {
|
|
5835
5648
|
return r = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), r), {}, {
|
|
5836
|
-
parse:
|
|
5649
|
+
parse: true
|
|
5837
5650
|
}), this.revive(JSON.parse(e, t), r);
|
|
5838
5651
|
}
|
|
5839
5652
|
}, {
|
|
5840
5653
|
key: "parseSync",
|
|
5841
5654
|
value: function parseSync(e, t, r) {
|
|
5842
5655
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5843
|
-
throwOnBadSyncType:
|
|
5656
|
+
throwOnBadSyncType: true
|
|
5844
5657
|
}, r), {}, {
|
|
5845
|
-
sync:
|
|
5658
|
+
sync: true
|
|
5846
5659
|
}));
|
|
5847
5660
|
}
|
|
5848
5661
|
}, {
|
|
5849
5662
|
key: "parseAsync",
|
|
5850
5663
|
value: function parseAsync(e, t, r) {
|
|
5851
5664
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5852
|
-
throwOnBadSyncType:
|
|
5665
|
+
throwOnBadSyncType: true
|
|
5853
5666
|
}, r), {}, {
|
|
5854
|
-
sync:
|
|
5667
|
+
sync: false
|
|
5855
5668
|
}));
|
|
5856
5669
|
}
|
|
5857
5670
|
}, {
|
|
5858
5671
|
key: "specialTypeNames",
|
|
5859
5672
|
value: function specialTypeNames(e, t) {
|
|
5860
5673
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5861
|
-
return r.returnTypeNames =
|
|
5674
|
+
return r.returnTypeNames = true, this.encapsulate(e, t, r);
|
|
5862
5675
|
}
|
|
5863
5676
|
}, {
|
|
5864
5677
|
key: "rootTypeName",
|
|
5865
5678
|
value: function rootTypeName(e, t) {
|
|
5866
5679
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5867
|
-
return r.iterateNone =
|
|
5680
|
+
return r.iterateNone = true, this.encapsulate(e, t, r);
|
|
5868
5681
|
}
|
|
5869
5682
|
}, {
|
|
5870
5683
|
key: "encapsulate",
|
|
5871
5684
|
value: function encapsulate(t, r, c) {
|
|
5872
5685
|
var s = this,
|
|
5873
5686
|
u = _objectSpread2(_objectSpread2({
|
|
5874
|
-
sync:
|
|
5687
|
+
sync: true
|
|
5875
5688
|
}, this.options), c),
|
|
5876
5689
|
l = u.sync,
|
|
5877
5690
|
f = {},
|
|
@@ -5879,8 +5692,8 @@
|
|
|
5879
5692
|
p = [],
|
|
5880
5693
|
d = [],
|
|
5881
5694
|
v = !("cyclic" in u) || u.cyclic,
|
|
5882
|
-
|
|
5883
|
-
|
|
5695
|
+
b = u.encapsulateObserver,
|
|
5696
|
+
m = function finish(e) {
|
|
5884
5697
|
var t = Object.values(f);
|
|
5885
5698
|
if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
|
|
5886
5699
|
if (t.length) {
|
|
@@ -5901,7 +5714,7 @@
|
|
|
5901
5714
|
};
|
|
5902
5715
|
} else isObject(e) && a(e, "$types") && (e = {
|
|
5903
5716
|
$: e,
|
|
5904
|
-
$types:
|
|
5717
|
+
$types: true
|
|
5905
5718
|
});
|
|
5906
5719
|
return !u.returnTypeNames && e;
|
|
5907
5720
|
},
|
|
@@ -5910,7 +5723,7 @@
|
|
|
5910
5723
|
return e[1].p;
|
|
5911
5724
|
})), function (n) {
|
|
5912
5725
|
return _await(Promise.all(n.map(_async(function (n) {
|
|
5913
|
-
var a =
|
|
5726
|
+
var a = false,
|
|
5914
5727
|
o = [],
|
|
5915
5728
|
i = _slicedToArray(r.splice(0, 1), 1),
|
|
5916
5729
|
c = _slicedToArray(i[0], 7),
|
|
@@ -5920,7 +5733,7 @@
|
|
|
5920
5733
|
f = c[4],
|
|
5921
5734
|
y = c[5],
|
|
5922
5735
|
p = c[6],
|
|
5923
|
-
d = O(s, n, u, l, o,
|
|
5736
|
+
d = O(s, n, u, l, o, true, p),
|
|
5924
5737
|
v = hasConstructorOf(d, e);
|
|
5925
5738
|
return function _invoke(e, t) {
|
|
5926
5739
|
var r = e();
|
|
@@ -5929,7 +5742,7 @@
|
|
|
5929
5742
|
if (s && v) return _await(d.p, function (e) {
|
|
5930
5743
|
f[y] = e;
|
|
5931
5744
|
var r = h(t, o);
|
|
5932
|
-
return a =
|
|
5745
|
+
return a = true, r;
|
|
5933
5746
|
});
|
|
5934
5747
|
}, function (e) {
|
|
5935
5748
|
return a ? e : (s ? f[y] = d : t = v ? d.p : d, h(t, o));
|
|
@@ -5950,13 +5763,13 @@
|
|
|
5950
5763
|
});
|
|
5951
5764
|
},
|
|
5952
5765
|
O = function _encapsulate(t, r, i, c, l, d, v) {
|
|
5953
|
-
var
|
|
5766
|
+
var m,
|
|
5954
5767
|
h = {},
|
|
5955
5768
|
O = _typeof(r),
|
|
5956
|
-
_ =
|
|
5769
|
+
_ = b ? function (n) {
|
|
5957
5770
|
var a,
|
|
5958
5771
|
o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
|
|
5959
|
-
|
|
5772
|
+
b(Object.assign(null != n ? n : h, {
|
|
5960
5773
|
keypath: t,
|
|
5961
5774
|
value: r,
|
|
5962
5775
|
cyclic: i,
|
|
@@ -5968,30 +5781,30 @@
|
|
|
5968
5781
|
type: o
|
|
5969
5782
|
}));
|
|
5970
5783
|
} : null;
|
|
5971
|
-
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (
|
|
5972
|
-
replaced:
|
|
5973
|
-
}) :
|
|
5784
|
+
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 = {
|
|
5785
|
+
replaced: m
|
|
5786
|
+
}) : m = r, _ && _(), m;
|
|
5974
5787
|
if (null === r) return _ && _(), r;
|
|
5975
5788
|
if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
|
|
5976
5789
|
var A = y.indexOf(r);
|
|
5977
5790
|
if (!(A < 0)) return f[t] = "#", _ && _({
|
|
5978
5791
|
cyclicKeypath: p[A]
|
|
5979
5792
|
}), "#" + p[A];
|
|
5980
|
-
|
|
5793
|
+
true === i && (y.push(r), p.push(t));
|
|
5981
5794
|
}
|
|
5982
5795
|
var S,
|
|
5983
5796
|
j,
|
|
5984
5797
|
T = isPlainObject(r),
|
|
5985
5798
|
I = o(r),
|
|
5986
5799
|
N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
|
|
5987
|
-
if (N !== r ? (
|
|
5800
|
+
if (N !== r ? (m = N, h = {
|
|
5988
5801
|
replaced: N
|
|
5989
|
-
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]),
|
|
5802
|
+
}) : "" === 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 = {
|
|
5990
5803
|
clone: S
|
|
5991
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ?
|
|
5804
|
+
}) : (["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 = {
|
|
5992
5805
|
clone: S
|
|
5993
|
-
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j :
|
|
5994
|
-
if (!S) return
|
|
5806
|
+
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : m;
|
|
5807
|
+
if (!S) return m;
|
|
5995
5808
|
if (c.iterateIn) {
|
|
5996
5809
|
var P = function _loop(n) {
|
|
5997
5810
|
var o = {
|
|
@@ -6005,27 +5818,27 @@
|
|
|
6005
5818
|
};
|
|
6006
5819
|
for (var x in r) P(x);
|
|
6007
5820
|
_ && _({
|
|
6008
|
-
endIterateIn:
|
|
6009
|
-
end:
|
|
5821
|
+
endIterateIn: true,
|
|
5822
|
+
end: true
|
|
6010
5823
|
});
|
|
6011
5824
|
} else n(r).forEach(function (n) {
|
|
6012
5825
|
var a = t + (t ? "." : "") + escapeKeyPathComponent(n);
|
|
6013
5826
|
g(c, {
|
|
6014
|
-
ownKeys:
|
|
5827
|
+
ownKeys: true
|
|
6015
5828
|
}, function () {
|
|
6016
5829
|
var t = _encapsulate(a, r[n], Boolean(i), c, l, d);
|
|
6017
5830
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
6018
5831
|
});
|
|
6019
5832
|
}), _ && _({
|
|
6020
|
-
endIterateOwn:
|
|
6021
|
-
end:
|
|
5833
|
+
endIterateOwn: true,
|
|
5834
|
+
end: true
|
|
6022
5835
|
});
|
|
6023
5836
|
if (c.iterateUnsetNumeric) {
|
|
6024
5837
|
for (var E = r.length, C = function _loop2(n) {
|
|
6025
5838
|
if (!(n in r)) {
|
|
6026
5839
|
var a = "".concat(t).concat(t ? "." : "").concat(n);
|
|
6027
5840
|
g(c, {
|
|
6028
|
-
ownKeys:
|
|
5841
|
+
ownKeys: false
|
|
6029
5842
|
}, function () {
|
|
6030
5843
|
var t = _encapsulate(a, void 0, Boolean(i), c, l, d);
|
|
6031
5844
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
@@ -6033,8 +5846,8 @@
|
|
|
6033
5846
|
}
|
|
6034
5847
|
}, B = 0; B < E; B++) C(B);
|
|
6035
5848
|
_ && _({
|
|
6036
|
-
endIterateUnsetNumeric:
|
|
6037
|
-
end:
|
|
5849
|
+
endIterateUnsetNumeric: true,
|
|
5850
|
+
end: true
|
|
6038
5851
|
});
|
|
6039
5852
|
}
|
|
6040
5853
|
return S;
|
|
@@ -6050,19 +5863,19 @@
|
|
|
6050
5863
|
}
|
|
6051
5864
|
if (Object.assign(r, {
|
|
6052
5865
|
type: p,
|
|
6053
|
-
replaced:
|
|
5866
|
+
replaced: true
|
|
6054
5867
|
}), (l || !y.replaceAsync) && !y.replace) return i && i({
|
|
6055
|
-
typeDetected:
|
|
5868
|
+
typeDetected: true
|
|
6056
5869
|
}), O(e, t, v && "readonly", r, n, o, p);
|
|
6057
5870
|
i && i({
|
|
6058
|
-
replacing:
|
|
5871
|
+
replacing: true
|
|
6059
5872
|
});
|
|
6060
|
-
var
|
|
5873
|
+
var b = void 0;
|
|
6061
5874
|
if (l || !y.replaceAsync) {
|
|
6062
5875
|
if (void 0 === y.replace) throw new TypeError("Missing replacer");
|
|
6063
|
-
|
|
6064
|
-
} else
|
|
6065
|
-
return O(e,
|
|
5876
|
+
b = y.replace(t, r);
|
|
5877
|
+
} else b = y.replaceAsync(t, r);
|
|
5878
|
+
return O(e, b, v && "readonly", r, n, o, p);
|
|
6066
5879
|
}
|
|
6067
5880
|
}
|
|
6068
5881
|
return t;
|
|
@@ -6070,26 +5883,26 @@
|
|
|
6070
5883
|
_ = O("", t, v, null != r ? r : {}, d);
|
|
6071
5884
|
if (d.length) return l && u.throwOnBadSyncType ? function () {
|
|
6072
5885
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6073
|
-
}() : Promise.resolve(h(_, d)).then(
|
|
5886
|
+
}() : Promise.resolve(h(_, d)).then(m);
|
|
6074
5887
|
if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6075
|
-
return u.stringification && l ? [
|
|
5888
|
+
return u.stringification && l ? [m(_)] : l ? m(_) : Promise.resolve(m(_));
|
|
6076
5889
|
}
|
|
6077
5890
|
}, {
|
|
6078
5891
|
key: "encapsulateSync",
|
|
6079
5892
|
value: function encapsulateSync(e, t, r) {
|
|
6080
5893
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6081
|
-
throwOnBadSyncType:
|
|
5894
|
+
throwOnBadSyncType: true
|
|
6082
5895
|
}, r), {}, {
|
|
6083
|
-
sync:
|
|
5896
|
+
sync: true
|
|
6084
5897
|
}));
|
|
6085
5898
|
}
|
|
6086
5899
|
}, {
|
|
6087
5900
|
key: "encapsulateAsync",
|
|
6088
5901
|
value: function encapsulateAsync(e, t, r) {
|
|
6089
5902
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6090
|
-
throwOnBadSyncType:
|
|
5903
|
+
throwOnBadSyncType: true
|
|
6091
5904
|
}, r), {}, {
|
|
6092
|
-
sync:
|
|
5905
|
+
sync: false
|
|
6093
5906
|
}));
|
|
6094
5907
|
}
|
|
6095
5908
|
}, {
|
|
@@ -6097,7 +5910,7 @@
|
|
|
6097
5910
|
value: function revive(t, r) {
|
|
6098
5911
|
var a = this,
|
|
6099
5912
|
i = _objectSpread2(_objectSpread2({
|
|
6100
|
-
sync:
|
|
5913
|
+
sync: true
|
|
6101
5914
|
}, this.options), r),
|
|
6102
5915
|
c = i.sync;
|
|
6103
5916
|
function finishRevival(e) {
|
|
@@ -6107,12 +5920,12 @@
|
|
|
6107
5920
|
}
|
|
6108
5921
|
if (!t || "object" !== _typeof(t) || Array.isArray(t)) return finishRevival(t);
|
|
6109
5922
|
var u = t.$types;
|
|
6110
|
-
if (
|
|
5923
|
+
if (true === u) return finishRevival(t.$);
|
|
6111
5924
|
if (!u || "object" !== _typeof(u) || Array.isArray(u)) return finishRevival(t);
|
|
6112
5925
|
var l = [],
|
|
6113
5926
|
f = {},
|
|
6114
|
-
y =
|
|
6115
|
-
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y =
|
|
5927
|
+
y = true;
|
|
5928
|
+
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y = false);
|
|
6116
5929
|
var p = function executeReviver(e, t) {
|
|
6117
5930
|
var r,
|
|
6118
5931
|
n = _slicedToArray(null !== (r = a.revivers[e]) && void 0 !== r ? r : [], 1)[0];
|
|
@@ -6127,7 +5940,7 @@
|
|
|
6127
5940
|
return hasConstructorOf(e, s) ? void 0 : e;
|
|
6128
5941
|
}
|
|
6129
5942
|
var v,
|
|
6130
|
-
|
|
5943
|
+
b = function revivePlainObjects() {
|
|
6131
5944
|
var r = [];
|
|
6132
5945
|
if (!u) throw new Error("Found bad `types`");
|
|
6133
5946
|
if (Object.entries(u).forEach(function (e) {
|
|
@@ -6159,28 +5972,28 @@
|
|
|
6159
5972
|
c === i && (t = c);
|
|
6160
5973
|
}, void 0);
|
|
6161
5974
|
}();
|
|
6162
|
-
return hasConstructorOf(
|
|
5975
|
+
return hasConstructorOf(b, e) ? v = b.then(function () {
|
|
6163
5976
|
return t;
|
|
6164
5977
|
}) : (v = function _revive(t, r, a, i, c) {
|
|
6165
5978
|
if (!y || "$types" !== t) {
|
|
6166
5979
|
var f = u[t],
|
|
6167
5980
|
v = o(r);
|
|
6168
5981
|
if (v || isPlainObject(r)) {
|
|
6169
|
-
var
|
|
5982
|
+
var b = v ? new Array(r.length) : {};
|
|
6170
5983
|
for (n(r).forEach(function (n) {
|
|
6171
|
-
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a :
|
|
5984
|
+
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
|
|
6172
5985
|
i = function set(e) {
|
|
6173
|
-
return hasConstructorOf(e, s) ?
|
|
5986
|
+
return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
|
|
6174
5987
|
};
|
|
6175
5988
|
hasConstructorOf(o, e) ? d.push(o.then(function (e) {
|
|
6176
5989
|
return i(e);
|
|
6177
5990
|
})) : i(o);
|
|
6178
|
-
}), r =
|
|
6179
|
-
var
|
|
6180
|
-
h =
|
|
6181
|
-
g =
|
|
6182
|
-
O =
|
|
6183
|
-
w =
|
|
5991
|
+
}), r = b; l.length;) {
|
|
5992
|
+
var m = _slicedToArray(l[0], 4),
|
|
5993
|
+
h = m[0],
|
|
5994
|
+
g = m[1],
|
|
5995
|
+
O = m[2],
|
|
5996
|
+
w = m[3],
|
|
6184
5997
|
_ = getByKeyPath(h, g);
|
|
6185
5998
|
if (void 0 === _) break;
|
|
6186
5999
|
O[w] = _, l.splice(0, 1);
|
|
@@ -6213,18 +6026,18 @@
|
|
|
6213
6026
|
key: "reviveSync",
|
|
6214
6027
|
value: function reviveSync(e, t) {
|
|
6215
6028
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6216
|
-
throwOnBadSyncType:
|
|
6029
|
+
throwOnBadSyncType: true
|
|
6217
6030
|
}, t), {}, {
|
|
6218
|
-
sync:
|
|
6031
|
+
sync: true
|
|
6219
6032
|
}));
|
|
6220
6033
|
}
|
|
6221
6034
|
}, {
|
|
6222
6035
|
key: "reviveAsync",
|
|
6223
6036
|
value: function reviveAsync(e, t) {
|
|
6224
6037
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6225
|
-
throwOnBadSyncType:
|
|
6038
|
+
throwOnBadSyncType: true
|
|
6226
6039
|
}, t), {}, {
|
|
6227
|
-
sync:
|
|
6040
|
+
sync: false
|
|
6228
6041
|
}));
|
|
6229
6042
|
}
|
|
6230
6043
|
}, {
|
|
@@ -6323,19 +6136,20 @@
|
|
|
6323
6136
|
index: r
|
|
6324
6137
|
} : (t.buffers.push(e), {
|
|
6325
6138
|
s: p(e),
|
|
6326
|
-
maxByteLength: e.maxByteLength
|
|
6139
|
+
maxByteLength: e.maxByteLength,
|
|
6140
|
+
resizable: e.resizable
|
|
6327
6141
|
});
|
|
6328
6142
|
},
|
|
6329
6143
|
revive: function revive(e, t) {
|
|
6330
6144
|
if (t.buffers || (t.buffers = []), Object.hasOwn(e, "index")) return t.buffers[e.index];
|
|
6331
|
-
var r = d(e.s, {
|
|
6145
|
+
var r = d(e.s, e.resizable ? {
|
|
6332
6146
|
maxByteLength: e.maxByteLength
|
|
6333
|
-
});
|
|
6147
|
+
} : void 0);
|
|
6334
6148
|
return t.buffers.push(r), r;
|
|
6335
6149
|
}
|
|
6336
6150
|
}
|
|
6337
6151
|
},
|
|
6338
|
-
|
|
6152
|
+
b = {
|
|
6339
6153
|
bigintObject: {
|
|
6340
6154
|
test: function test(e) {
|
|
6341
6155
|
return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
|
|
@@ -6346,7 +6160,7 @@
|
|
|
6346
6160
|
}
|
|
6347
6161
|
}
|
|
6348
6162
|
},
|
|
6349
|
-
|
|
6163
|
+
m = {
|
|
6350
6164
|
bigint: {
|
|
6351
6165
|
test: function test(e) {
|
|
6352
6166
|
return "bigint" == typeof e;
|
|
@@ -6374,7 +6188,7 @@
|
|
|
6374
6188
|
},
|
|
6375
6189
|
replace: function replace(e) {
|
|
6376
6190
|
var t = new XMLHttpRequest();
|
|
6377
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6191
|
+
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);
|
|
6378
6192
|
return {
|
|
6379
6193
|
type: e.type,
|
|
6380
6194
|
stringContents: t.responseText
|
|
@@ -6409,33 +6223,32 @@
|
|
|
6409
6223
|
},
|
|
6410
6224
|
replaceAsync: function replaceAsync(t) {
|
|
6411
6225
|
return new e(/*#__PURE__*/function () {
|
|
6412
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
6413
|
-
var n;
|
|
6414
|
-
return
|
|
6415
|
-
while (1) switch (_context.
|
|
6226
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e, r) {
|
|
6227
|
+
var n, _t;
|
|
6228
|
+
return _regenerator().w(function (_context) {
|
|
6229
|
+
while (1) switch (_context.n) {
|
|
6416
6230
|
case 0:
|
|
6417
|
-
_context.
|
|
6418
|
-
_context.
|
|
6231
|
+
_context.p = 0;
|
|
6232
|
+
_context.n = 1;
|
|
6419
6233
|
return crypto.subtle.exportKey("jwk", t);
|
|
6420
|
-
case
|
|
6421
|
-
n = _context.
|
|
6422
|
-
_context.
|
|
6234
|
+
case 1:
|
|
6235
|
+
n = _context.v;
|
|
6236
|
+
_context.n = 3;
|
|
6423
6237
|
break;
|
|
6424
|
-
case
|
|
6425
|
-
_context.
|
|
6426
|
-
|
|
6427
|
-
return _context.
|
|
6428
|
-
case
|
|
6238
|
+
case 2:
|
|
6239
|
+
_context.p = 2;
|
|
6240
|
+
_t = _context.v;
|
|
6241
|
+
return _context.a(2, void r(_t));
|
|
6242
|
+
case 3:
|
|
6429
6243
|
e({
|
|
6430
6244
|
jwk: n,
|
|
6431
6245
|
algorithm: t.algorithm,
|
|
6432
6246
|
usages: t.usages
|
|
6433
6247
|
});
|
|
6434
|
-
case
|
|
6435
|
-
|
|
6436
|
-
return _context.stop();
|
|
6248
|
+
case 4:
|
|
6249
|
+
return _context.a(2);
|
|
6437
6250
|
}
|
|
6438
|
-
}, _callee, null, [[0,
|
|
6251
|
+
}, _callee, null, [[0, 2]]);
|
|
6439
6252
|
}));
|
|
6440
6253
|
return function (_x, _x2) {
|
|
6441
6254
|
return _ref.apply(this, arguments);
|
|
@@ -6446,7 +6259,7 @@
|
|
|
6446
6259
|
var t = e.jwk,
|
|
6447
6260
|
r = e.algorithm,
|
|
6448
6261
|
n = e.usages;
|
|
6449
|
-
return crypto.subtle.importKey("jwk", t, r,
|
|
6262
|
+
return crypto.subtle.importKey("jwk", t, r, true, n);
|
|
6450
6263
|
}
|
|
6451
6264
|
}
|
|
6452
6265
|
},
|
|
@@ -6468,6 +6281,7 @@
|
|
|
6468
6281
|
} : (n.buffers.push(e), {
|
|
6469
6282
|
encoded: p(e),
|
|
6470
6283
|
maxByteLength: e.maxByteLength,
|
|
6284
|
+
resizable: e.resizable,
|
|
6471
6285
|
byteOffset: t,
|
|
6472
6286
|
byteLength: r
|
|
6473
6287
|
});
|
|
@@ -6478,11 +6292,12 @@
|
|
|
6478
6292
|
n = e.byteLength,
|
|
6479
6293
|
a = e.encoded,
|
|
6480
6294
|
o = e.index,
|
|
6481
|
-
i = e.maxByteLength
|
|
6482
|
-
|
|
6483
|
-
|
|
6295
|
+
i = e.maxByteLength,
|
|
6296
|
+
c = e.resizable;
|
|
6297
|
+
var s;
|
|
6298
|
+
return "index" in e ? s = t.buffers[o] : (s = d(a, c ? {
|
|
6484
6299
|
maxByteLength: i
|
|
6485
|
-
}), t.buffers.push(
|
|
6300
|
+
} : i), t.buffers.push(s)), new DataView(s, r, n);
|
|
6486
6301
|
}
|
|
6487
6302
|
}
|
|
6488
6303
|
},
|
|
@@ -6698,7 +6513,7 @@
|
|
|
6698
6513
|
},
|
|
6699
6514
|
replace: function replace(e) {
|
|
6700
6515
|
var t = new XMLHttpRequest();
|
|
6701
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6516
|
+
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);
|
|
6702
6517
|
return {
|
|
6703
6518
|
type: e.type,
|
|
6704
6519
|
stringContents: t.responseText,
|
|
@@ -6794,31 +6609,31 @@
|
|
|
6794
6609
|
return a.addEventListener("load", function () {
|
|
6795
6610
|
n.drawImage(a, 0, 0);
|
|
6796
6611
|
}), a.src = t.dataURL, new e(/*#__PURE__*/function () {
|
|
6797
|
-
var
|
|
6798
|
-
|
|
6799
|
-
|
|
6612
|
+
var _ref0 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e, t) {
|
|
6613
|
+
var _t2, _t3, _t4;
|
|
6614
|
+
return _regenerator().w(function (_context2) {
|
|
6615
|
+
while (1) switch (_context2.n) {
|
|
6800
6616
|
case 0:
|
|
6801
|
-
_context2.
|
|
6802
|
-
|
|
6803
|
-
_context2.
|
|
6617
|
+
_context2.p = 0;
|
|
6618
|
+
_t2 = e;
|
|
6619
|
+
_context2.n = 1;
|
|
6804
6620
|
return createImageBitmap(r);
|
|
6805
|
-
case
|
|
6806
|
-
|
|
6807
|
-
(
|
|
6808
|
-
_context2.
|
|
6621
|
+
case 1:
|
|
6622
|
+
_t3 = _context2.v;
|
|
6623
|
+
_t2(_t3);
|
|
6624
|
+
_context2.n = 3;
|
|
6809
6625
|
break;
|
|
6810
|
-
case
|
|
6811
|
-
_context2.
|
|
6812
|
-
|
|
6813
|
-
t(
|
|
6814
|
-
case
|
|
6815
|
-
|
|
6816
|
-
return _context2.stop();
|
|
6626
|
+
case 2:
|
|
6627
|
+
_context2.p = 2;
|
|
6628
|
+
_t4 = _context2.v;
|
|
6629
|
+
t(_t4);
|
|
6630
|
+
case 3:
|
|
6631
|
+
return _context2.a(2);
|
|
6817
6632
|
}
|
|
6818
|
-
}, _callee2, null, [[0,
|
|
6633
|
+
}, _callee2, null, [[0, 2]]);
|
|
6819
6634
|
}));
|
|
6820
6635
|
return function (_x3, _x4) {
|
|
6821
|
-
return
|
|
6636
|
+
return _ref0.apply(this, arguments);
|
|
6822
6637
|
};
|
|
6823
6638
|
}());
|
|
6824
6639
|
}
|
|
@@ -6906,7 +6721,7 @@
|
|
|
6906
6721
|
}
|
|
6907
6722
|
}
|
|
6908
6723
|
},
|
|
6909
|
-
|
|
6724
|
+
J = {
|
|
6910
6725
|
StringObject: {
|
|
6911
6726
|
test: function test(e) {
|
|
6912
6727
|
return "String" === toStringTag(e) && "object" == _typeof$2(e);
|
|
@@ -6937,7 +6752,7 @@
|
|
|
6937
6752
|
}
|
|
6938
6753
|
}
|
|
6939
6754
|
},
|
|
6940
|
-
|
|
6755
|
+
q = {
|
|
6941
6756
|
regexp: {
|
|
6942
6757
|
test: function test(e) {
|
|
6943
6758
|
return "RegExp" === toStringTag(e);
|
|
@@ -6948,14 +6763,14 @@
|
|
|
6948
6763
|
flags: (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "")
|
|
6949
6764
|
};
|
|
6950
6765
|
},
|
|
6951
|
-
revive: function revive(
|
|
6952
|
-
var e =
|
|
6953
|
-
t =
|
|
6766
|
+
revive: function revive(_ref10) {
|
|
6767
|
+
var e = _ref10.source,
|
|
6768
|
+
t = _ref10.flags;
|
|
6954
6769
|
return new RegExp(e, t);
|
|
6955
6770
|
}
|
|
6956
6771
|
}
|
|
6957
6772
|
},
|
|
6958
|
-
|
|
6773
|
+
G = {
|
|
6959
6774
|
set: {
|
|
6960
6775
|
test: function test(e) {
|
|
6961
6776
|
return "Set" === toStringTag(e);
|
|
@@ -6993,10 +6808,10 @@
|
|
|
6993
6808
|
test: function test(e) {
|
|
6994
6809
|
return toStringTag(e) === t;
|
|
6995
6810
|
},
|
|
6996
|
-
replace: function replace(
|
|
6997
|
-
var e =
|
|
6998
|
-
t =
|
|
6999
|
-
r =
|
|
6811
|
+
replace: function replace(_ref11, n) {
|
|
6812
|
+
var e = _ref11.buffer,
|
|
6813
|
+
t = _ref11.byteOffset,
|
|
6814
|
+
r = _ref11.length;
|
|
7000
6815
|
n.buffers || (n.buffers = []);
|
|
7001
6816
|
var a = n.buffers.indexOf(e);
|
|
7002
6817
|
return a > -1 ? {
|
|
@@ -7005,6 +6820,7 @@
|
|
|
7005
6820
|
length: r
|
|
7006
6821
|
} : (n.buffers.push(e), {
|
|
7007
6822
|
maxByteLength: e.maxByteLength,
|
|
6823
|
+
resizable: e.resizable,
|
|
7008
6824
|
encoded: p(e),
|
|
7009
6825
|
byteOffset: t,
|
|
7010
6826
|
length: r
|
|
@@ -7016,11 +6832,12 @@
|
|
|
7016
6832
|
a = t.length,
|
|
7017
6833
|
o = t.encoded,
|
|
7018
6834
|
i = t.index,
|
|
7019
|
-
c = t.maxByteLength
|
|
7020
|
-
|
|
7021
|
-
|
|
6835
|
+
c = t.maxByteLength,
|
|
6836
|
+
s = t.resizable;
|
|
6837
|
+
var u;
|
|
6838
|
+
return "index" in t ? u = r.buffers[i] : (u = d(o, s ? {
|
|
7022
6839
|
maxByteLength: c
|
|
7023
|
-
}), r.buffers.push(
|
|
6840
|
+
} : void 0), r.buffers.push(u)), new e(u, n, a);
|
|
7024
6841
|
}
|
|
7025
6842
|
};
|
|
7026
6843
|
}(e);
|
|
@@ -7053,22 +6870,22 @@
|
|
|
7053
6870
|
},
|
|
7054
6871
|
te = [{
|
|
7055
6872
|
arrayNonindexKeys: {
|
|
7056
|
-
testPlainObjects:
|
|
6873
|
+
testPlainObjects: true,
|
|
7057
6874
|
test: function test(e, t) {
|
|
7058
6875
|
return !!Array.isArray(e) && (Object.keys(e).some(function (e) {
|
|
7059
6876
|
return String(Number.parseInt(e)) !== e;
|
|
7060
|
-
}) && (t.iterateIn = "object", t.addLength =
|
|
6877
|
+
}) && (t.iterateIn = "object", t.addLength = true), true);
|
|
7061
6878
|
},
|
|
7062
6879
|
replace: function replace(e, t) {
|
|
7063
|
-
return t.iterateUnsetNumeric =
|
|
6880
|
+
return t.iterateUnsetNumeric = true, e;
|
|
7064
6881
|
},
|
|
7065
6882
|
revive: function revive(e) {
|
|
7066
6883
|
if (Array.isArray(e)) return e;
|
|
7067
6884
|
var t = [];
|
|
7068
|
-
return Object.entries(e).forEach(function (
|
|
7069
|
-
var
|
|
7070
|
-
e =
|
|
7071
|
-
r =
|
|
6885
|
+
return Object.entries(e).forEach(function (_ref12) {
|
|
6886
|
+
var _ref13 = _slicedToArray$1(_ref12, 2),
|
|
6887
|
+
e = _ref13[0],
|
|
6888
|
+
r = _ref13[1];
|
|
7072
6889
|
t[e] = r;
|
|
7073
6890
|
}), t;
|
|
7074
6891
|
}
|
|
@@ -7076,7 +6893,7 @@
|
|
|
7076
6893
|
}, {
|
|
7077
6894
|
sparseUndefined: {
|
|
7078
6895
|
test: function test(e, t) {
|
|
7079
|
-
return void 0 === e &&
|
|
6896
|
+
return void 0 === e && false === t.ownKeys;
|
|
7080
6897
|
},
|
|
7081
6898
|
replace: function replace() {
|
|
7082
6899
|
return 0;
|
|
@@ -7085,13 +6902,13 @@
|
|
|
7085
6902
|
}
|
|
7086
6903
|
}],
|
|
7087
6904
|
re = [K, U, F, $],
|
|
7088
|
-
ce = [ee, Z, te,
|
|
6905
|
+
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 : []),
|
|
7089
6906
|
se = ce.concat({
|
|
7090
6907
|
checkDataCloneException: {
|
|
7091
6908
|
test: function test(e) {
|
|
7092
6909
|
var t = {}.toString.call(e).slice(8, -1);
|
|
7093
6910
|
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");
|
|
7094
|
-
return
|
|
6911
|
+
return false;
|
|
7095
6912
|
}
|
|
7096
6913
|
}
|
|
7097
6914
|
});
|
|
@@ -7433,7 +7250,6 @@
|
|
|
7433
7250
|
tx.executeSql('UPDATE ' + escapeStoreNameForSQL(storeName) + ' SET ' + escapeIndexNameForSQL(indexName) + ' = ? WHERE "key" = ?', [escapeSQLiteStatement(indexKeyStr), data.rows.item(i).key], function () {
|
|
7434
7251
|
addIndexEntry(i + 1);
|
|
7435
7252
|
}, /** @type {SQLStatementErrorCallback} */error);
|
|
7436
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
7437
7253
|
} catch (err) {
|
|
7438
7254
|
// Not a valid value to insert into index, so just continue
|
|
7439
7255
|
addIndexEntry(i + 1);
|
|
@@ -7558,7 +7374,6 @@
|
|
|
7558
7374
|
IDBIndex.__updateIndexList = function (store, tx, success, failure) {
|
|
7559
7375
|
/** @type {IndexList} **/
|
|
7560
7376
|
var indexList = {};
|
|
7561
|
-
// eslint-disable-next-line sonarjs/prefer-for-of -- Implement iterability?
|
|
7562
7377
|
for (var i = 0; i < store.indexNames.length; i++) {
|
|
7563
7378
|
var idx = store.__indexes[store.indexNames[i]];
|
|
7564
7379
|
indexList[idx.name] = {
|
|
@@ -8540,7 +8355,6 @@
|
|
|
8540
8355
|
if ('invalid' in indexKey && indexKey.invalid || 'failure' in indexKey && indexKey.failure) {
|
|
8541
8356
|
throw new Error('Go to catch');
|
|
8542
8357
|
}
|
|
8543
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
8544
8358
|
} catch (err) {
|
|
8545
8359
|
resolve(undefined);
|
|
8546
8360
|
return;
|
|
@@ -9874,7 +9688,7 @@
|
|
|
9874
9688
|
*/
|
|
9875
9689
|
function getLatestCachedWebSQLVersion(name) {
|
|
9876
9690
|
return Object.keys(websqlDBCache[name]).map(Number).reduce(function (prev, curr) {
|
|
9877
|
-
return curr
|
|
9691
|
+
return Math.max(curr, prev);
|
|
9878
9692
|
}, 0);
|
|
9879
9693
|
}
|
|
9880
9694
|
|
|
@@ -10156,7 +9970,6 @@
|
|
|
10156
9970
|
if (err) {
|
|
10157
9971
|
try {
|
|
10158
9972
|
systx.executeSql('ROLLBACK', [], cb, cb);
|
|
10159
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
10160
9973
|
} catch (err) {
|
|
10161
9974
|
// Browser may fail with expired transaction above so
|
|
10162
9975
|
// no choice but to manually revert
|
|
@@ -10264,7 +10077,7 @@
|
|
|
10264
10077
|
// eslint-disable-next-line camelcase -- Clear API
|
|
10265
10078
|
req.transaction.on__complete = function () {
|
|
10266
10079
|
var pos = connection.__transactions.indexOf(req.transaction);
|
|
10267
|
-
if (pos
|
|
10080
|
+
if (pos !== -1) {
|
|
10268
10081
|
connection.__transactions.splice(pos, 1);
|
|
10269
10082
|
}
|
|
10270
10083
|
if (/** @type {import('./IDBDatabase.js').IDBDatabaseFull} */req.__result.__closePending) {
|
|
@@ -11698,7 +11511,6 @@
|
|
|
11698
11511
|
Object.getOwnPropertyDescriptor(o, name);
|
|
11699
11512
|
}
|
|
11700
11513
|
Object.defineProperty(IDB, name, desc);
|
|
11701
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
11702
11514
|
} catch (err) {
|
|
11703
11515
|
// With `indexedDB`, PhantomJS fails here and below but
|
|
11704
11516
|
// not above, while Chrome is reverse (and Firefox doesn't
|