indexeddbshim 10.1.0 → 11.0.0-beta.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.
@@ -1,10 +1,17 @@
1
- /*! indexeddbshim - v10.0.0 - 12/8/2022 */
1
+ /*! indexeddbshim - v10.1.0 - 1/7/2023 */
2
2
 
3
3
  (function (factory) {
4
4
  typeof define === 'function' && define.amd ? define(factory) :
5
5
  factory();
6
6
  })((function () { 'use strict';
7
7
 
8
+ function _defineAccessor(type, obj, key, fn) {
9
+ var desc = {
10
+ configurable: !0,
11
+ enumerable: !0
12
+ };
13
+ return desc[type] = fn, Object.defineProperty(obj, key, desc);
14
+ }
8
15
  function _iterableToArrayLimit(arr, i) {
9
16
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
10
17
  if (null != _i) {
@@ -404,7 +411,7 @@
404
411
  descriptor.enumerable = descriptor.enumerable || false;
405
412
  descriptor.configurable = true;
406
413
  if ("value" in descriptor) descriptor.writable = true;
407
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
414
+ Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor);
408
415
  }
409
416
  }
410
417
  function _createClass$1(Constructor, protoProps, staticProps) {
@@ -415,27 +422,8 @@
415
422
  });
416
423
  return Constructor;
417
424
  }
418
- function _defineEnumerableProperties(obj, descs) {
419
- for (var key in descs) {
420
- var desc = descs[key];
421
- desc.configurable = desc.enumerable = true;
422
- if ("value" in desc) desc.writable = true;
423
- Object.defineProperty(obj, key, desc);
424
- }
425
- if (Object.getOwnPropertySymbols) {
426
- var objectSymbols = Object.getOwnPropertySymbols(descs);
427
- for (var i = 0; i < objectSymbols.length; i++) {
428
- var sym = objectSymbols[i];
429
- var desc = descs[sym];
430
- desc.configurable = desc.enumerable = true;
431
- if ("value" in desc) desc.writable = true;
432
- Object.defineProperty(obj, sym, desc);
433
- }
434
- }
435
- return obj;
436
- }
437
425
  function _defineProperty$1(obj, key, value) {
438
- key = _toPropertyKey(key);
426
+ key = _toPropertyKey$1(key);
439
427
  if (key in obj) {
440
428
  Object.defineProperty(obj, key, {
441
429
  value: value,
@@ -576,7 +564,7 @@
576
564
  }
577
565
  return (hint === "string" ? String : Number)(input);
578
566
  }
579
- function _toPropertyKey(arg) {
567
+ function _toPropertyKey$1(arg) {
580
568
  var key = _toPrimitive(arg, "string");
581
569
  return typeof key === "symbol" ? key : String(key);
582
570
  }
@@ -1555,22 +1543,21 @@
1555
1543
  }
1556
1544
  function defineOuterInterface(obj, props) {
1557
1545
  props.forEach(function (prop) {
1558
- var _o, _mutatorMap;
1559
- var o = (_o = {}, _mutatorMap = {}, _mutatorMap[prop] = _mutatorMap[prop] || {}, _mutatorMap[prop].get = function () {
1546
+ var _o;
1547
+ var o = (_o = {}, _defineAccessor("get", _o, prop, function () {
1560
1548
  throw new TypeError('Illegal invocation');
1561
- }, _mutatorMap[prop] = _mutatorMap[prop] || {}, _mutatorMap[prop].set = function (val) {
1549
+ }), _defineAccessor("set", _o, prop, function (val) {
1562
1550
  throw new TypeError('Illegal invocation');
1563
- }, _defineEnumerableProperties(_o, _mutatorMap), _o);
1551
+ }), _o);
1564
1552
  var desc = Object.getOwnPropertyDescriptor(o, prop);
1565
1553
  Object.defineProperty(obj, prop, desc);
1566
1554
  });
1567
1555
  }
1568
1556
  function defineReadonlyOuterInterface(obj, props) {
1569
1557
  props.forEach(function (prop) {
1570
- var _o2, _mutatorMap2;
1571
- var o = (_o2 = {}, _mutatorMap2 = {}, _mutatorMap2[prop] = _mutatorMap2[prop] || {}, _mutatorMap2[prop].get = function () {
1558
+ var o = _defineAccessor("get", {}, prop, function () {
1572
1559
  throw new TypeError('Illegal invocation');
1573
- }, _defineEnumerableProperties(_o2, _mutatorMap2), _o2);
1560
+ });
1574
1561
  var desc = Object.getOwnPropertyDescriptor(o, prop);
1575
1562
  Object.defineProperty(obj, prop, desc);
1576
1563
  });
@@ -1578,12 +1565,12 @@
1578
1565
  function defineListenerProperties(obj, listeners) {
1579
1566
  listeners = typeof listeners === 'string' ? [listeners] : listeners;
1580
1567
  listeners.forEach(function (listener) {
1581
- var _o3, _mutatorMap3;
1582
- var o = (_o3 = {}, _mutatorMap3 = {}, _mutatorMap3[listener] = _mutatorMap3[listener] || {}, _mutatorMap3[listener].get = function () {
1568
+ var _o3;
1569
+ var o = (_o3 = {}, _defineAccessor("get", _o3, listener, function () {
1583
1570
  return obj['__' + listener];
1584
- }, _mutatorMap3[listener] = _mutatorMap3[listener] || {}, _mutatorMap3[listener].set = function (val) {
1571
+ }), _defineAccessor("set", _o3, listener, function (val) {
1585
1572
  obj['__' + listener] = val;
1586
- }, _defineEnumerableProperties(_o3, _mutatorMap3), _o3);
1573
+ }), _o3);
1587
1574
  var desc = Object.getOwnPropertyDescriptor(o, listener);
1588
1575
  // desc.enumerable = true; // Default
1589
1576
  // desc.configurable = true; // Default // Needed by support.js in W3C IndexedDB tests (for openListeners)
@@ -1601,7 +1588,6 @@
1601
1588
  if (getter && prop in getter) {
1602
1589
  o = getter[prop];
1603
1590
  } else {
1604
- var _o4, _mutatorMap4;
1605
1591
  Object.defineProperty(obj, '__' + prop, {
1606
1592
  enumerable: false,
1607
1593
  configurable: false,
@@ -1609,9 +1595,9 @@
1609
1595
  });
1610
1596
  // We must resort to this to get "get <name>" as
1611
1597
  // the function `name` for proper IDL
1612
- o = (_o4 = {}, _mutatorMap4 = {}, _mutatorMap4[prop] = _mutatorMap4[prop] || {}, _mutatorMap4[prop].get = function () {
1598
+ o = _defineAccessor("get", {}, prop, function () {
1613
1599
  return this['__' + prop];
1614
- }, _defineEnumerableProperties(_o4, _mutatorMap4), _o4);
1600
+ });
1615
1601
  }
1616
1602
  var desc = Object.getOwnPropertyDescriptor(o, prop);
1617
1603
  // desc.enumerable = true; // Default
@@ -1731,14 +1717,13 @@
1731
1717
  IDBVersionChangeEvent.prototype = Object.create(ShimEvent.prototype);
1732
1718
  IDBVersionChangeEvent.prototype[Symbol.toStringTag] = 'IDBVersionChangeEventPrototype';
1733
1719
  readonlyProperties$6.forEach(function (prop) {
1734
- var _o, _mutatorMap;
1735
1720
  // Ensure for proper interface testing that "get <name>" is the function name
1736
- var o = (_o = {}, _mutatorMap = {}, _mutatorMap[prop] = _mutatorMap[prop] || {}, _mutatorMap[prop].get = function () {
1721
+ var o = _defineAccessor("get", {}, prop, function () {
1737
1722
  if (!(this instanceof IDBVersionChangeEvent)) {
1738
1723
  throw new TypeError('Illegal invocation');
1739
1724
  }
1740
1725
  return this.__eventInitDict && this.__eventInitDict[prop] || (prop === 'oldVersion' ? 0 : null);
1741
- }, _defineEnumerableProperties(_o, _mutatorMap), _o);
1726
+ });
1742
1727
  var desc = Object.getOwnPropertyDescriptor(o, prop);
1743
1728
  // desc.enumerable = true; // Default
1744
1729
  // desc.configurable = true; // Default
@@ -2810,46 +2795,49 @@
2810
2795
  var len = input.length;
2811
2796
  seen.push(input);
2812
2797
  var keys = [];
2813
- for (var i = 0; i < len; i++) {
2798
+ var _loop = function _loop() {
2814
2799
  // We cannot iterate here with array extras as we must ensure sparse arrays are invalidated
2815
2800
  if (!multiEntry && !Object.prototype.hasOwnProperty.call(input, i)) {
2816
2801
  return {
2817
- type: type,
2818
- invalid: true,
2819
- message: 'Does not have own index property'
2802
+ v: {
2803
+ type: type,
2804
+ invalid: true,
2805
+ message: 'Does not have own index property'
2806
+ }
2820
2807
  };
2821
2808
  }
2822
2809
  try {
2823
- var _ret = function () {
2824
- var entry = input[i];
2825
- var key = convertValueToKeyValueDecoded(entry, seen, false, fullKeys); // Though steps do not list rethrowing, the next is returnifabrupt when not multiEntry
2826
- if (key.invalid) {
2827
- if (multiEntry) {
2828
- return "continue";
2829
- }
2830
- return {
2831
- v: {
2832
- type: type,
2833
- invalid: true,
2834
- message: 'Bad array entry value-to-key conversion'
2835
- }
2836
- };
2810
+ var entry = input[i];
2811
+ var key = convertValueToKeyValueDecoded(entry, seen, false, fullKeys); // Though steps do not list rethrowing, the next is returnifabrupt when not multiEntry
2812
+ if (key.invalid) {
2813
+ if (multiEntry) {
2814
+ return "continue";
2837
2815
  }
2838
- if (!multiEntry || !fullKeys && keys.every(function (k) {
2839
- return cmp(k, key.value) !== 0;
2840
- }) || fullKeys && keys.every(function (k) {
2841
- return cmp(k, key) !== 0;
2842
- })) {
2843
- keys.push(fullKeys ? key : key.value);
2844
- }
2845
- }();
2846
- if (_ret === "continue") continue;
2847
- if (_typeof$2(_ret) === "object") return _ret.v;
2816
+ return {
2817
+ v: {
2818
+ type: type,
2819
+ invalid: true,
2820
+ message: 'Bad array entry value-to-key conversion'
2821
+ }
2822
+ };
2823
+ }
2824
+ if (!multiEntry || !fullKeys && keys.every(function (k) {
2825
+ return cmp(k, key.value) !== 0;
2826
+ }) || fullKeys && keys.every(function (k) {
2827
+ return cmp(k, key) !== 0;
2828
+ })) {
2829
+ keys.push(fullKeys ? key : key.value);
2830
+ }
2848
2831
  } catch (err) {
2849
2832
  if (!multiEntry) {
2850
2833
  throw err;
2851
2834
  }
2852
2835
  }
2836
+ };
2837
+ for (var i = 0; i < len; i++) {
2838
+ var _ret = _loop();
2839
+ if (_ret === "continue") continue;
2840
+ if (_typeof$2(_ret) === "object") return _ret.v;
2853
2841
  }
2854
2842
  return {
2855
2843
  type: type,
@@ -3422,26 +3410,26 @@
3422
3410
 
3423
3411
  var Key = /*#__PURE__*/Object.freeze({
3424
3412
  __proto__: null,
3425
- encode: _encode,
3426
- decode: _decode,
3427
- roundTrip: roundTrip,
3413
+ assignCurrentNumber: assignCurrentNumber,
3414
+ checkKeyCouldBeInjectedIntoValue: checkKeyCouldBeInjectedIntoValue,
3428
3415
  convertKeyToValue: convertKeyToValue,
3429
- convertValueToKeyValueDecoded: convertValueToKeyValueDecoded,
3430
- convertValueToMultiEntryKeyDecoded: convertValueToMultiEntryKeyDecoded,
3431
3416
  convertValueToKey: convertValueToKey,
3432
- convertValueToMultiEntryKey: convertValueToMultiEntryKey,
3433
3417
  convertValueToKeyRethrowingAndIfInvalid: convertValueToKeyRethrowingAndIfInvalid,
3434
- extractKeyFromValueUsingKeyPath: extractKeyFromValueUsingKeyPath,
3418
+ convertValueToKeyValueDecoded: convertValueToKeyValueDecoded,
3419
+ convertValueToMultiEntryKey: convertValueToMultiEntryKey,
3420
+ convertValueToMultiEntryKeyDecoded: convertValueToMultiEntryKeyDecoded,
3421
+ decode: _decode,
3422
+ encode: _encode,
3435
3423
  evaluateKeyPathOnValue: evaluateKeyPathOnValue,
3424
+ extractKeyFromValueUsingKeyPath: extractKeyFromValueUsingKeyPath,
3436
3425
  extractKeyValueDecodedFromValueUsingKeyPath: extractKeyValueDecodedFromValueUsingKeyPath,
3437
- injectKeyIntoValueUsingKeyPath: injectKeyIntoValueUsingKeyPath,
3438
- checkKeyCouldBeInjectedIntoValue: checkKeyCouldBeInjectedIntoValue,
3439
- isMultiEntryMatch: isMultiEntryMatch,
3440
- isKeyInRange: isKeyInRange,
3441
3426
  findMultiEntryMatches: findMultiEntryMatches,
3442
- assignCurrentNumber: assignCurrentNumber,
3443
3427
  generateKeyForStore: generateKeyForStore,
3444
- possiblyUpdateKeyGenerator: possiblyUpdateKeyGenerator
3428
+ injectKeyIntoValueUsingKeyPath: injectKeyIntoValueUsingKeyPath,
3429
+ isKeyInRange: isKeyInRange,
3430
+ isMultiEntryMatch: isMultiEntryMatch,
3431
+ possiblyUpdateKeyGenerator: possiblyUpdateKeyGenerator,
3432
+ roundTrip: roundTrip
3445
3433
  });
3446
3434
 
3447
3435
  var readonlyProperties$4 = ['lower', 'upper', 'lowerOpen', 'upperOpen'];
@@ -3530,20 +3518,19 @@
3530
3518
  };
3531
3519
  IDBKeyRange.prototype[Symbol.toStringTag] = 'IDBKeyRangePrototype';
3532
3520
  readonlyProperties$4.forEach(function (prop) {
3533
- var _o, _mutatorMap;
3534
3521
  Object.defineProperty(IDBKeyRange.prototype, '__' + prop, {
3535
3522
  enumerable: false,
3536
3523
  configurable: false,
3537
3524
  writable: true
3538
3525
  });
3539
3526
  // Ensure for proper interface testing that "get <name>" is the function name
3540
- var o = (_o = {}, _mutatorMap = {}, _mutatorMap[prop] = _mutatorMap[prop] || {}, _mutatorMap[prop].get = function () {
3527
+ var o = _defineAccessor("get", {}, prop, function () {
3541
3528
  // We can't do a regular instanceof check as it will create a loop given our hasInstance implementation
3542
3529
  if (!isObj(this) || typeof this.__lowerOpen !== 'boolean') {
3543
3530
  throw new TypeError('Illegal invocation');
3544
3531
  }
3545
3532
  return this['__' + prop];
3546
- }, _defineEnumerableProperties(_o, _mutatorMap), _o);
3533
+ });
3547
3534
  var desc = Object.getOwnPropertyDescriptor(o, prop);
3548
3535
  // desc.enumerable = true; // Default
3549
3536
  // desc.configurable = true; // Default
@@ -3698,24 +3685,22 @@
3698
3685
  }, _defineProperty$1(_DOMStringList$protot, Symbol.toStringTag, 'DOMStringListPrototype'), _defineProperty$1(_DOMStringList$protot, Symbol.iterator, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3699
3686
  var i;
3700
3687
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3701
- while (1) {
3702
- switch (_context.prev = _context.next) {
3703
- case 0:
3704
- i = 0;
3705
- case 1:
3706
- if (!(i < this._items.length)) {
3707
- _context.next = 6;
3708
- break;
3709
- }
3710
- _context.next = 4;
3711
- return this._items[i++];
3712
- case 4:
3713
- _context.next = 1;
3688
+ while (1) switch (_context.prev = _context.next) {
3689
+ case 0:
3690
+ i = 0;
3691
+ case 1:
3692
+ if (!(i < this._items.length)) {
3693
+ _context.next = 6;
3714
3694
  break;
3715
- case 6:
3716
- case "end":
3717
- return _context.stop();
3718
- }
3695
+ }
3696
+ _context.next = 4;
3697
+ return this._items[i++];
3698
+ case 4:
3699
+ _context.next = 1;
3700
+ break;
3701
+ case 6:
3702
+ case "end":
3703
+ return _context.stop();
3719
3704
  }
3720
3705
  }, _callee, this);
3721
3706
  })), _DOMStringList$protot);
@@ -3869,6 +3854,7 @@
3869
3854
  // Do not set __active flag to false yet: https://github.com/w3c/IndexedDB/issues/87
3870
3855
  if (e.__legacyOutputDidListenersThrowError) {
3871
3856
  logError('Error', 'An error occurred in a success handler attached to request chain', e.__legacyOutputDidListenersThrowError); // We do nothing else with this error as per spec
3857
+ // me.__active = false;
3872
3858
  me.__abortTransaction(createDOMException('AbortError', 'A request was aborted (in user handler after success).'));
3873
3859
  return;
3874
3860
  }
@@ -4335,11 +4321,11 @@
4335
4321
  return e;
4336
4322
  }
4337
4323
  function _typeof(e) {
4338
- return (_typeof = "function" == typeof Symbol && "symbol" == _typeof$2(Symbol.iterator) ? function (e) {
4324
+ return _typeof = "function" == typeof Symbol && "symbol" == _typeof$2(Symbol.iterator) ? function (e) {
4339
4325
  return _typeof$2(e);
4340
4326
  } : function (e) {
4341
4327
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof$2(e);
4342
- })(e);
4328
+ }, _typeof(e);
4343
4329
  }
4344
4330
  function _classCallCheck(e, t) {
4345
4331
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
@@ -4347,7 +4333,7 @@
4347
4333
  function _defineProperties(e, t) {
4348
4334
  for (var r = 0; r < t.length; r++) {
4349
4335
  var n = t[r];
4350
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
4336
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, _toPropertyKey(n.key), n);
4351
4337
  }
4352
4338
  }
4353
4339
  function _createClass(e, t, r) {
@@ -4356,7 +4342,7 @@
4356
4342
  }), e;
4357
4343
  }
4358
4344
  function _defineProperty(e, t, r) {
4359
- return t in e ? Object.defineProperty(e, t, {
4345
+ return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
4360
4346
  value: r,
4361
4347
  enumerable: !0,
4362
4348
  configurable: !0,
@@ -4371,23 +4357,26 @@
4371
4357
  if (null != r) {
4372
4358
  var n,
4373
4359
  a,
4374
- o = [],
4375
- i = !0,
4376
- c = !1;
4360
+ o,
4361
+ i,
4362
+ c = [],
4363
+ s = !0,
4364
+ u = !1;
4377
4365
  try {
4378
- for (r = r.call(e); !(i = (n = r.next()).done) && (o.push(n.value), !t || o.length !== t); i = !0) {
4379
- ;
4380
- }
4366
+ if (o = (r = r.call(e)).next, 0 === t) {
4367
+ if (Object(r) !== r) return;
4368
+ s = !1;
4369
+ } else for (; !(s = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); s = !0);
4381
4370
  } catch (e) {
4382
- c = !0, a = e;
4371
+ u = !0, a = e;
4383
4372
  } finally {
4384
4373
  try {
4385
- i || null == r["return"] || r["return"]();
4374
+ if (!s && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
4386
4375
  } finally {
4387
- if (c) throw a;
4376
+ if (u) throw a;
4388
4377
  }
4389
4378
  }
4390
- return o;
4379
+ return c;
4391
4380
  }
4392
4381
  }(e, t) || _unsupportedIterableToArray(e, t) || function _nonIterableRest() {
4393
4382
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -4402,11 +4391,22 @@
4402
4391
  }
4403
4392
  function _arrayLikeToArray(e, t) {
4404
4393
  (null == t || t > e.length) && (t = e.length);
4405
- for (var r = 0, n = new Array(t); r < t; r++) {
4406
- n[r] = e[r];
4407
- }
4394
+ for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
4408
4395
  return n;
4409
4396
  }
4397
+ function _toPropertyKey(e) {
4398
+ var t = function _toPrimitive(e, t) {
4399
+ if ("object" != _typeof$2(e) || null === e) return e;
4400
+ var r = e[Symbol.toPrimitive];
4401
+ if (void 0 !== r) {
4402
+ var n = r.call(e, t || "default");
4403
+ if ("object" != _typeof$2(n)) return n;
4404
+ throw new TypeError("@@toPrimitive must return a primitive value.");
4405
+ }
4406
+ return ("string" === t ? String : Number)(e);
4407
+ }(e, "string");
4408
+ return "symbol" == _typeof$2(t) ? t : String(t);
4409
+ }
4410
4410
  var e = _createClass(function TypesonPromise(e) {
4411
4411
  _classCallCheck(this, TypesonPromise), this.p = new Promise(e);
4412
4412
  });
@@ -4467,10 +4467,10 @@
4467
4467
  return e && "object" === _typeof(e);
4468
4468
  }
4469
4469
  function escapeKeyPathComponent(e) {
4470
- return e.replace(/~/g, "~0").replace(/\./g, "~1");
4470
+ return e.replace(/''/g, "''''").replace(/^$/, "''").replace(/~/g, "~0").replace(/\./g, "~1");
4471
4471
  }
4472
4472
  function unescapeKeyPathComponent(e) {
4473
- return e.replace(/~1/g, ".").replace(/~0/g, "~");
4473
+ return e.replace(/~1/g, ".").replace(/~0/g, "~").replace(/^''$/, "").replace(/''''/g, "''");
4474
4474
  }
4475
4475
  function getByKeyPath(e, t) {
4476
4476
  if ("" === t) return e;
@@ -4498,9 +4498,7 @@
4498
4498
  s = ["type", "replaced", "iterateIn", "iterateUnsetNumeric"];
4499
4499
  function _async(e) {
4500
4500
  return function () {
4501
- for (var t = [], r = 0; r < arguments.length; r++) {
4502
- t[r] = arguments[r];
4503
- }
4501
+ for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r];
4504
4502
  try {
4505
4503
  return Promise.resolve(e.apply(this, t));
4506
4504
  } catch (e) {
@@ -4697,14 +4695,14 @@
4697
4695
  !0 === a && (y.push(r), p.push(t));
4698
4696
  }
4699
4697
  var _,
4700
- A = isPlainObject(r),
4701
- w = i(r),
4702
- j = (A || w) && (!l.plainObjectReplacers.length || s.replaced) || s.iterateIn ? r : replace(t, r, s, u, A || w, null, O);
4698
+ w = isPlainObject(r),
4699
+ A = i(r),
4700
+ j = (w || A) && (!l.plainObjectReplacers.length || s.replaced) || s.iterateIn ? r : replace(t, r, s, u, w || A, null, O);
4703
4701
  if (j !== r ? (h = j, g = {
4704
4702
  replaced: j
4705
- }) : "" === t && hasConstructorOf(r, e) ? (u.push([t, r, a, s, void 0, void 0, s.type]), h = r) : w && "object" !== s.iterateIn || "array" === s.iterateIn ? (_ = new Array(r.length), g = {
4703
+ }) : "" === t && hasConstructorOf(r, e) ? (u.push([t, r, a, s, void 0, void 0, s.type]), h = r) : A && "object" !== s.iterateIn || "array" === s.iterateIn ? (_ = new Array(r.length), g = {
4706
4704
  clone: _
4707
- }) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !A && "object" !== s.iterateIn ? h = r : (_ = {}, s.addLength && (_.length = r.length), g = {
4705
+ }) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !w && "object" !== s.iterateIn ? h = r : (_ = {}, s.addLength && (_.length = r.length), g = {
4708
4706
  clone: _
4709
4707
  }), O && O(), n.iterateNone) return _ || h;
4710
4708
  if (!_) return h;
@@ -4719,9 +4717,7 @@
4719
4717
  hasConstructorOf(i, e) ? u.push([o, i, Boolean(a), s, _, n, s.type]) : void 0 !== i && (_[n] = i);
4720
4718
  });
4721
4719
  };
4722
- for (var I in r) {
4723
- T(I);
4724
- }
4720
+ for (var I in r) T(I);
4725
4721
  O && O({
4726
4722
  endIterateIn: !0,
4727
4723
  end: !0
@@ -4749,9 +4745,7 @@
4749
4745
  hasConstructorOf(t, e) ? u.push([o, t, Boolean(a), s, _, n, s.type]) : void 0 !== t && (_[n] = t);
4750
4746
  });
4751
4747
  }
4752
- }, C = 0; C < P; C++) {
4753
- N(C);
4754
- }
4748
+ }, C = 0; C < P; C++) N(C);
4755
4749
  O && O({
4756
4750
  endIterateUnsetNumeric: !0,
4757
4751
  end: !0
@@ -4988,14 +4982,10 @@
4988
4982
  _classCallCheck(this, Undefined);
4989
4983
  });
4990
4984
  l.__typeson__type__ = "TypesonUndefined";
4991
- for (var f = ["null", "boolean", "number", "string", "array", "object"], y = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", p = new Uint8Array(256), d = 0; d < y.length; d++) {
4992
- p[y.codePointAt(d)] = d;
4993
- }
4985
+ for (var f = ["null", "boolean", "number", "string", "array", "object"], y = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", p = new Uint8Array(256), d = 0; d < y.length; d++) p[y.codePointAt(d)] = d;
4994
4986
  var v = function encode(e, t, r) {
4995
4987
  null == r && (r = e.byteLength);
4996
- for (var n = new Uint8Array(e, t || 0, r), a = n.length, o = "", i = 0; i < a; i += 3) {
4997
- o += y[n[i] >> 2], o += y[(3 & n[i]) << 4 | n[i + 1] >> 4], o += y[(15 & n[i + 1]) << 2 | n[i + 2] >> 6], o += y[63 & n[i + 2]];
4998
- }
4988
+ for (var n = new Uint8Array(e, t || 0, r), a = n.length, o = "", i = 0; i < a; i += 3) o += y[n[i] >> 2], o += y[(3 & n[i]) << 4 | n[i + 1] >> 4], o += y[(15 & n[i + 1]) << 2 | n[i + 2] >> 6], o += y[63 & n[i + 2]];
4999
4989
  return a % 3 == 2 ? o = o.slice(0, -1) + "=" : a % 3 == 1 && (o = o.slice(0, -2) + "=="), o;
5000
4990
  },
5001
4991
  b = function decode(e) {
@@ -5007,9 +4997,7 @@
5007
4997
  i = .75 * e.length,
5008
4998
  c = 0;
5009
4999
  "=" === e[e.length - 1] && (i--, "=" === e[e.length - 2] && i--);
5010
- for (var s = new ArrayBuffer(i), u = new Uint8Array(s), l = 0; l < o; l += 4) {
5011
- t = p[e.codePointAt(l)], r = p[e.codePointAt(l + 1)], n = p[e.codePointAt(l + 2)], a = p[e.codePointAt(l + 3)], u[c++] = t << 2 | r >> 4, u[c++] = (15 & r) << 4 | n >> 2, u[c++] = (3 & n) << 6 | 63 & a;
5012
- }
5000
+ for (var s = new ArrayBuffer(i), u = new Uint8Array(s), l = 0; l < o; l += 4) t = p[e.codePointAt(l)], r = p[e.codePointAt(l + 1)], n = p[e.codePointAt(l + 2)], a = p[e.codePointAt(l + 3)], u[c++] = t << 2 | r >> 4, u[c++] = (15 & r) << 4 | n >> 2, u[c++] = (3 & n) << 6 | 63 & a;
5013
5001
  return s;
5014
5002
  };
5015
5003
  var h = {
@@ -5053,9 +5041,7 @@
5053
5041
  };
5054
5042
  function string2arraybuffer(e) {
5055
5043
  var t = new Uint8Array(e.length);
5056
- for (var _r = 0; _r < e.length; _r++) {
5057
- t[_r] = e.charCodeAt(_r);
5058
- }
5044
+ for (var _r = 0; _r < e.length; _r++) t[_r] = e.charCodeAt(_r);
5059
5045
  return t.buffer;
5060
5046
  }
5061
5047
  var O = {
@@ -5093,7 +5079,7 @@
5093
5079
  }
5094
5080
  }
5095
5081
  };
5096
- var A = {
5082
+ var w = {
5097
5083
  cryptokey: {
5098
5084
  test: function test(e) {
5099
5085
  return "CryptoKey" === toStringTag(e) && e.extractable;
@@ -5103,30 +5089,28 @@
5103
5089
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e, r) {
5104
5090
  var n;
5105
5091
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5106
- while (1) {
5107
- switch (_context.prev = _context.next) {
5108
- case 0:
5109
- _context.prev = 0;
5110
- _context.next = 3;
5111
- return crypto.subtle.exportKey("jwk", t);
5112
- case 3:
5113
- n = _context.sent;
5114
- _context.next = 9;
5115
- break;
5116
- case 6:
5117
- _context.prev = 6;
5118
- _context.t0 = _context["catch"](0);
5119
- return _context.abrupt("return", void r(_context.t0));
5120
- case 9:
5121
- e({
5122
- jwk: n,
5123
- algorithm: t.algorithm,
5124
- usages: t.usages
5125
- });
5126
- case 10:
5127
- case "end":
5128
- return _context.stop();
5129
- }
5092
+ while (1) switch (_context.prev = _context.next) {
5093
+ case 0:
5094
+ _context.prev = 0;
5095
+ _context.next = 3;
5096
+ return crypto.subtle.exportKey("jwk", t);
5097
+ case 3:
5098
+ n = _context.sent;
5099
+ _context.next = 9;
5100
+ break;
5101
+ case 6:
5102
+ _context.prev = 6;
5103
+ _context.t0 = _context["catch"](0);
5104
+ return _context.abrupt("return", void r(_context.t0));
5105
+ case 9:
5106
+ e({
5107
+ jwk: n,
5108
+ algorithm: t.algorithm,
5109
+ usages: t.usages
5110
+ });
5111
+ case 10:
5112
+ case "end":
5113
+ return _context.stop();
5130
5114
  }
5131
5115
  }, _callee, null, [[0, 6]]);
5132
5116
  }));
@@ -5143,7 +5127,7 @@
5143
5127
  }
5144
5128
  }
5145
5129
  },
5146
- w = {
5130
+ A = {
5147
5131
  dataview: {
5148
5132
  test: function test(e) {
5149
5133
  return "DataView" === toStringTag(e);
@@ -5256,9 +5240,7 @@
5256
5240
  },
5257
5241
  replace: function replace(e) {
5258
5242
  var t = [];
5259
- for (var _r2 = 0; _r2 < e.length; _r2++) {
5260
- t[_r2] = e.item(_r2);
5261
- }
5243
+ for (var _r2 = 0; _r2 < e.length; _r2++) t[_r2] = e.item(_r2);
5262
5244
  return t;
5263
5245
  },
5264
5246
  revive: function revive(e) {
@@ -5587,7 +5569,7 @@
5587
5569
  }
5588
5570
  }],
5589
5571
  X = [K, x, L],
5590
- te = [G, W, H, D, X, j, M, E, C, P, N, O].concat("function" == typeof Map ? U : [], "function" == typeof Set ? J : [], "function" == typeof ArrayBuffer ? h : [], "function" == typeof Uint8Array ? q : [], "function" == typeof DataView ? w : [], "undefined" != typeof Intl ? B : [], "undefined" != typeof crypto ? A : [], "undefined" != typeof BigInt ? [m, g] : []);
5572
+ te = [G, W, H, D, X, j, M, E, C, P, N, O].concat("function" == typeof Map ? U : [], "function" == typeof Set ? J : [], "function" == typeof ArrayBuffer ? h : [], "function" == typeof Uint8Array ? q : [], "function" == typeof DataView ? A : [], "undefined" != typeof Intl ? B : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [m, g] : []);
5591
5573
  var re = te.concat({
5592
5574
  checkDataCloneException: {
5593
5575
  test: function test(e) {
@@ -5641,9 +5623,9 @@
5641
5623
 
5642
5624
  var Sca = /*#__PURE__*/Object.freeze({
5643
5625
  __proto__: null,
5644
- encode: encode,
5645
- decode: decode,
5646
5626
  clone: clone,
5627
+ decode: decode,
5628
+ encode: encode,
5647
5629
  register: register
5648
5630
  });
5649
5631
 
@@ -6175,10 +6157,10 @@
6175
6157
  if (index.multiEntry) {
6176
6158
  var escapedIndexNameForKeyCol = escapeIndexNameForSQLKeyColumn(index.name);
6177
6159
  var encodedKey = _encode(range, index.multiEntry);
6178
- var _loop = function _loop(i) {
6160
+ var _loop = function _loop() {
6179
6161
  var row = data.rows.item(i);
6180
6162
  var rowKey = _decode(row[escapedIndexNameForKeyCol]);
6181
- var record = void 0;
6163
+ var record;
6182
6164
  if (hasKey && (multiChecks && range.some(function (check) {
6183
6165
  return rowKey.includes(check);
6184
6166
  }) ||
@@ -6200,7 +6182,7 @@
6200
6182
  }
6201
6183
  };
6202
6184
  for (var i = 0; i < data.rows.length; i++) {
6203
- var _ret = _loop(i);
6185
+ var _ret = _loop();
6204
6186
  if (_ret === "break") break;
6205
6187
  }
6206
6188
  } else {
@@ -7299,7 +7281,7 @@
7299
7281
  this.__objectStores = {};
7300
7282
  this.__objectStoreNames = DOMStringList.__createInstance();
7301
7283
  var itemCopy = {};
7302
- var _loop = function _loop(i) {
7284
+ var _loop = function _loop() {
7303
7285
  var item = storeProperties.rows.item(i);
7304
7286
  // Safari implements `item` getter return object's properties
7305
7287
  // as readonly, so we copy all its properties (except our
@@ -7320,7 +7302,7 @@
7320
7302
  _this.objectStoreNames.push(store.name);
7321
7303
  };
7322
7304
  for (var i = 0; i < storeProperties.rows.length; i++) {
7323
- _loop(i);
7305
+ _loop();
7324
7306
  }
7325
7307
  this.__oldObjectStoreNames = this.objectStoreNames.clone();
7326
7308
  }
@@ -8879,10 +8861,9 @@
8879
8861
  desc.writable = true;
8880
8862
  }
8881
8863
  } else {
8882
- var _o, _mutatorMap;
8883
- var o = (_o = {}, _mutatorMap = {}, _mutatorMap[name] = _mutatorMap[name] || {}, _mutatorMap[name].get = function () {
8864
+ var o = _defineAccessor("get", {}, name, function () {
8884
8865
  return propDesc.get.call(this);
8885
- }, _defineEnumerableProperties(_o, _mutatorMap), _o);
8866
+ });
8886
8867
  desc = Object.getOwnPropertyDescriptor(o, name);
8887
8868
  }
8888
8869
  Object.defineProperty(IDB, name, desc);